@ianicdev/datatables2 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Comparison-D6HBNU3H.cjs → Comparison-CUHPaBeZ.cjs} +1 -1
- package/dist/{Comparison-BG-Av227.js → Comparison-ClV-Y6zD.js} +1 -1
- package/dist/{Datepicker-r5gSym8T.cjs → Datepicker-BNZwF6pJ.cjs} +1 -1
- package/dist/{Datepicker-DSLpt4OB.js → Datepicker-Bg_2UpWO.js} +2 -2
- package/dist/{Options-XguddjK3.cjs → Options-BTKDHsLo.cjs} +1 -1
- package/dist/{Options-Blrlw7tQ.js → Options-iTd26TLq.js} +3 -3
- package/dist/{RefreshTable-C2WfhpKs.cjs → RefreshTable-CX-obTqR.cjs} +1 -1
- package/dist/{RefreshTable-R52OZtTl.js → RefreshTable-DRWO4mC8.js} +1 -1
- package/dist/{Search-IT89uB83.js → Search-Cp0yrKdI.js} +2 -2
- package/dist/{Search-Cczo6dCN.cjs → Search-D5tE7xgg.cjs} +1 -1
- package/dist/{Table-Bif19r-B.js → Table-BLwUrk4W.js} +3 -3
- package/dist/{Table-BXJLnWb1.cjs → Table-DqI3UZlh.cjs} +1 -1
- package/dist/{TableServer-CB-wtcXC.cjs → TableServer-BfMKkbvl.cjs} +1 -1
- package/dist/{TableServer-CuNWyWO4.js → TableServer-COwfMyyt.js} +3 -3
- package/dist/{cellRender-BmjgEfnE.cjs → cellRender-C5onTgxP.cjs} +1 -1
- package/dist/{cellRender-BF5KH9lc.js → cellRender-Da8qBdLb.js} +2 -2
- package/dist/{dataTables-D9OFlimC.cjs → dataTables-Btp6KEgl.cjs} +1 -1
- package/dist/{dataTables-CjXckK5A.js → dataTables-DhfPIkYc.js} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-tzUV9WuN.cjs → index-BB2n2yz0.cjs} +1 -1
- package/dist/{index-uDBhDSNL.cjs → index-CJJTJLNz.cjs} +1 -1
- package/dist/{index-D_QdF2Rl.cjs → index-CKM0UqXO.cjs} +1 -1
- package/dist/{index-Nt9U3f_Q.js → index-CQZZydTl.js} +1 -1
- package/dist/{index-BB3QPzYD.js → index-DqhqpIKX.js} +453 -450
- package/dist/{index-KUJXI_uc.js → index-FryEY3Et.js} +2 -2
- package/dist/{index-B1Nh-PaB.cjs → index-eBj5Qtr0.cjs} +1 -1
- package/dist/{index-DZTxINzs.js → index-lDtSiB_e.js} +2 -2
- package/dist/{useColumns-C659ZaSh.cjs → useColumns-ClAwCK9C.cjs} +1 -1
- package/dist/{useColumns-BrzQtJ3S.js → useColumns-IaxoDnvH.js} +2 -2
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as j, inject as Pe, 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
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import { u as Ft, m as Kt, P as
|
|
4
|
-
import { useEventBus as
|
|
1
|
+
import { ref as j, inject as Pe, 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 L, withDirectives as Ue, vShow as _t, Fragment as ce, toDisplayString as Vt, useModel as Pt, openBlock as oe, createBlock as pe, withCtx as Ce, createElementBlock as Ke, renderList as Wt, unref as N, mergeModels as qt, useId as Xe, provide as We, onScopeDispose as rt, nextTick as ke, onBeforeMount as wn, onBeforeUnmount as kl, onMounted as at, cloneVNode as _n, watchEffect as zt, toValue as Ut, createTextVNode as Sl, defineAsyncComponent as Ee, resolveDynamicComponent as $e, onUnmounted as Pn, isRef as xt, createCommentVNode as Me, defineComponent as At, useTemplateRef as Cl } from "vue";
|
|
2
|
+
import { defineStore as Vl } from "pinia";
|
|
3
|
+
import { u as Ft, m as Kt, P as xl, c as Ne, a as An, e as Fn, r as Dn, g as ie, b as Il, d as wl, f as It, I as ct, h as de, V as rl, i as Se, j as _l, p as X, k as ye, l as Pl, n as Oe, o as Tn, 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 Bn, E as Ve, F as cl, G as Al, H as Fl, J as Dl, K as Tl, L as Fe, M as nt, N as Rn, O as Bl, Q as yt, S as En, T as Zt, U as ht, W as el, X as Le, Y as Tt, Z as bt, _ as tl, $ as Rl, a0 as El, a1 as ll, a2 as pt, a3 as Ol, a4 as Te, a5 as kt, a6 as dt, a7 as Ye, a8 as $l, a9 as nl, aa as Bt, ab as Ml, ac as Nl, ad as Ll, ae as jt, af as On, ag as Hl, ah as $n, ai as Mn, aj as Nn, ak as zl, al as et, am as Ul, an as Ln, ao as dl, ap as St, aq as Kl, ar as Hn, as as zn, at as jl, au as Gl, av as al, aw as vt, ax as Un, ay as ze, az as Wl, aA as ql, aB as wt, aC as Jl, aD as Kn, aE as jn, aF as Gn, aG as Wn, aH as qn, aI as Jn, aJ as vl, aK as Xn, aL as Yn, aM as tt, aN as Qn, aO as Zn, aP as ea, aQ as ta } from "./dataTables-DhfPIkYc.js";
|
|
4
|
+
import { useEventBus as Xl, createSharedComposable as la, useResizeObserver as na } from "@vueuse/core";
|
|
5
5
|
import { useI18n as aa } from "vue-i18n";
|
|
6
|
-
const Rt =
|
|
7
|
-
const e = j([]), a = ({ table_id:
|
|
8
|
-
const
|
|
6
|
+
const Rt = Vl("datatables", () => {
|
|
7
|
+
const e = j([]), a = ({ table_id: i }) => {
|
|
8
|
+
const o = e.value.findIndex((d) => d.id === i), r = {
|
|
9
9
|
search: {
|
|
10
10
|
query: ""
|
|
11
11
|
},
|
|
@@ -21,18 +21,18 @@ const Rt = Cl("datatables", () => {
|
|
|
21
21
|
state: {}
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
}, t = async (
|
|
26
|
-
const r = new TextEncoder().encode(
|
|
24
|
+
o !== -1 && e.value.splice(o, 1), e.value.push({ id: i, ...r });
|
|
25
|
+
}, t = async (i) => {
|
|
26
|
+
const r = new TextEncoder().encode(i), d = await crypto.subtle.digest("SHA-256", r);
|
|
27
27
|
return Array.from(new Uint8Array(d)).map((v) => v.toString(16).padStart(2, "0")).join("");
|
|
28
|
-
}, n = ({ table_id:
|
|
29
|
-
t(JSON.stringify(
|
|
30
|
-
l({ table_id:
|
|
28
|
+
}, n = ({ table_id: i, headers: o }) => {
|
|
29
|
+
t(JSON.stringify(o ?? [])).then((r) => {
|
|
30
|
+
l({ table_id: i, name: "options", value: { hash: r } });
|
|
31
31
|
});
|
|
32
|
-
}, l = ({ table_id:
|
|
32
|
+
}, l = ({ table_id: i, name: o, value: r }) => {
|
|
33
33
|
e.value = e.value.map((d) => {
|
|
34
|
-
if (d.id ===
|
|
35
|
-
const c = d[
|
|
34
|
+
if (d.id === i && d.hasOwnProperty(o)) {
|
|
35
|
+
const c = d[o];
|
|
36
36
|
if (c && typeof r == "object")
|
|
37
37
|
for (const m in r)
|
|
38
38
|
m in c && (c[m] = r[m]);
|
|
@@ -46,10 +46,10 @@ const Rt = Cl("datatables", () => {
|
|
|
46
46
|
// Store Methods
|
|
47
47
|
addTable: a,
|
|
48
48
|
setData: l,
|
|
49
|
-
restoreData: ({ table_id:
|
|
50
|
-
e.value = e.value.map((r) => (r.id ===
|
|
49
|
+
restoreData: ({ table_id: i, data: o }) => {
|
|
50
|
+
e.value = e.value.map((r) => (r.id === i && (r = o), r));
|
|
51
51
|
},
|
|
52
|
-
getCurrentTable: (
|
|
52
|
+
getCurrentTable: (i) => e.value.find((o) => o.id === i),
|
|
53
53
|
// Hash
|
|
54
54
|
hashString: t,
|
|
55
55
|
setTableHash: n
|
|
@@ -62,11 +62,11 @@ function Et() {
|
|
|
62
62
|
return (n.value.options?.columns.sorted ?? []).filter((m) => r.includes(m)).map(
|
|
63
63
|
(m) => t.headers.find((v) => v.key === m)
|
|
64
64
|
);
|
|
65
|
-
}), s = I(() => n.value.hardFilters?.query),
|
|
65
|
+
}), s = I(() => n.value.hardFilters?.query), i = I(() => n.value.advancedFilters?.query);
|
|
66
66
|
return {
|
|
67
67
|
tableState: n,
|
|
68
68
|
searchState: l,
|
|
69
|
-
advancedFiltersState:
|
|
69
|
+
advancedFiltersState: i,
|
|
70
70
|
hardFiltersState: s,
|
|
71
71
|
headersState: u,
|
|
72
72
|
saveTableOptions: (r) => {
|
|
@@ -105,25 +105,25 @@ function Nt(e, a, t) {
|
|
|
105
105
|
return l;
|
|
106
106
|
}
|
|
107
107
|
async function fl(e, a, t, n) {
|
|
108
|
-
const l = t ? "scrollLeft" : "scrollTop", u = Kt(n?.options ?? ia(), a), s = n?.rtl.value,
|
|
108
|
+
const l = t ? "scrollLeft" : "scrollTop", u = Kt(n?.options ?? ia(), a), s = n?.rtl.value, i = (typeof e == "number" ? e : ol(e)) ?? 0, o = u.container === "parent" && i instanceof HTMLElement ? i.parentElement : ua(u.container), r = xl() ? u.patterns.instant : typeof u.easing == "function" ? u.easing : u.patterns[u.easing];
|
|
109
109
|
if (!r) throw new TypeError(`Easing function "${u.easing}" not found.`);
|
|
110
110
|
let d;
|
|
111
|
-
if (typeof
|
|
112
|
-
d = Nt(
|
|
113
|
-
else if (d = Nt(
|
|
114
|
-
const y = window.getComputedStyle(
|
|
111
|
+
if (typeof i == "number")
|
|
112
|
+
d = Nt(i, t, s);
|
|
113
|
+
else if (d = Nt(i, t, s) - Nt(o, t, s), u.layout) {
|
|
114
|
+
const y = window.getComputedStyle(i).getPropertyValue("--v-layout-top");
|
|
115
115
|
y && (d -= parseInt(y, 10));
|
|
116
116
|
}
|
|
117
|
-
d += u.offset, d = ra(
|
|
118
|
-
const c =
|
|
117
|
+
d += u.offset, d = ra(o, d, !!s, !!t);
|
|
118
|
+
const c = o[l] ?? 0;
|
|
119
119
|
if (d === c) return Promise.resolve(d);
|
|
120
120
|
const m = performance.now();
|
|
121
121
|
return new Promise((v) => requestAnimationFrame(function y(h) {
|
|
122
122
|
const w = (h - m) / u.duration, P = Math.floor(c + (d - c) * r(Ne(w, 0, 1)));
|
|
123
|
-
if (
|
|
123
|
+
if (o[l] = P, w >= 1 && Math.abs(P - o[l]) < 10)
|
|
124
124
|
return v(d);
|
|
125
125
|
if (w > 2)
|
|
126
|
-
return An("Scroll target is not reachable"), v(
|
|
126
|
+
return An("Scroll target is not reachable"), v(o[l]);
|
|
127
127
|
requestAnimationFrame(y);
|
|
128
128
|
}));
|
|
129
129
|
}
|
|
@@ -147,9 +147,9 @@ function ra(e, a, t, n) {
|
|
|
147
147
|
const {
|
|
148
148
|
scrollWidth: l,
|
|
149
149
|
scrollHeight: u
|
|
150
|
-
} = e, [s,
|
|
151
|
-
let
|
|
152
|
-
return n ? t ? (
|
|
150
|
+
} = e, [s, i] = e === document.scrollingElement ? [window.innerWidth, window.innerHeight] : [e.offsetWidth, e.offsetHeight];
|
|
151
|
+
let o, r;
|
|
152
|
+
return n ? t ? (o = -(l - s), r = 0) : (o = 0, r = l - s) : (o = 0, r = u + -i), Ne(a, o, r);
|
|
153
153
|
}
|
|
154
154
|
function ca(e) {
|
|
155
155
|
let {
|
|
@@ -158,8 +158,8 @@ function ca(e) {
|
|
|
158
158
|
isRtl: n,
|
|
159
159
|
isHorizontal: l
|
|
160
160
|
} = e;
|
|
161
|
-
const u = ft(l, t), s =
|
|
162
|
-
return s >
|
|
161
|
+
const u = ft(l, t), s = Yl(l, n, t), i = ft(l, a), o = Ql(l, a), r = i * 0.4;
|
|
162
|
+
return s > o ? o - r : s + u < o + i ? o - u + i + r : s;
|
|
163
163
|
}
|
|
164
164
|
function da(e) {
|
|
165
165
|
let {
|
|
@@ -167,7 +167,7 @@ function da(e) {
|
|
|
167
167
|
containerElement: t,
|
|
168
168
|
isHorizontal: n
|
|
169
169
|
} = e;
|
|
170
|
-
const l = ft(n, t), u =
|
|
170
|
+
const l = ft(n, t), u = Ql(n, a), s = ft(n, a);
|
|
171
171
|
return u - l / 2 + s / 2;
|
|
172
172
|
}
|
|
173
173
|
function ml(e, a) {
|
|
@@ -176,7 +176,7 @@ function ml(e, a) {
|
|
|
176
176
|
function va(e, a) {
|
|
177
177
|
return a?.[e ? "clientWidth" : "clientHeight"] || 0;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Yl(e, a, t) {
|
|
180
180
|
if (!t)
|
|
181
181
|
return 0;
|
|
182
182
|
const {
|
|
@@ -189,10 +189,10 @@ function Xl(e, a, t) {
|
|
|
189
189
|
function ft(e, a) {
|
|
190
190
|
return a?.[e ? "offsetWidth" : "offsetHeight"] || 0;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Ql(e, a) {
|
|
193
193
|
return a?.[e ? "offsetLeft" : "offsetTop"] || 0;
|
|
194
194
|
}
|
|
195
|
-
const
|
|
195
|
+
const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
196
196
|
centerActive: Boolean,
|
|
197
197
|
scrollToActive: {
|
|
198
198
|
type: Boolean,
|
|
@@ -205,7 +205,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
205
205
|
},
|
|
206
206
|
symbol: {
|
|
207
207
|
type: null,
|
|
208
|
-
default:
|
|
208
|
+
default: Zl
|
|
209
209
|
},
|
|
210
210
|
nextIcon: {
|
|
211
211
|
type: ye,
|
|
@@ -224,12 +224,12 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
224
224
|
mobile: null
|
|
225
225
|
}),
|
|
226
226
|
...Oe(),
|
|
227
|
-
...
|
|
227
|
+
...Pl({
|
|
228
228
|
selectedClass: "v-slide-group-item--active"
|
|
229
229
|
})
|
|
230
230
|
}, "VSlideGroup"), gl = ie()({
|
|
231
231
|
name: "VSlideGroup",
|
|
232
|
-
props:
|
|
232
|
+
props: en(),
|
|
233
233
|
emits: {
|
|
234
234
|
"update:modelValue": (e) => !0
|
|
235
235
|
},
|
|
@@ -242,7 +242,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
242
242
|
} = Ft(), {
|
|
243
243
|
displayClasses: l,
|
|
244
244
|
mobile: u
|
|
245
|
-
} =
|
|
245
|
+
} = Il(e), s = wl(e, e.symbol), i = ee(!1), o = ee(0), r = ee(0), d = ee(0), c = I(() => e.direction === "horizontal"), {
|
|
246
246
|
resizeRef: m,
|
|
247
247
|
contentRect: v
|
|
248
248
|
} = It(), {
|
|
@@ -259,7 +259,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
259
259
|
cancelAnimationFrame(k), k = requestAnimationFrame(() => {
|
|
260
260
|
if (v.value && h.value) {
|
|
261
261
|
const f = c.value ? "width" : "height";
|
|
262
|
-
r.value = v.value[f], d.value = h.value[f],
|
|
262
|
+
r.value = v.value[f], d.value = h.value[f], i.value = r.value + 1 < d.value;
|
|
263
263
|
}
|
|
264
264
|
if (e.scrollToActive && P.value >= 0 && y.el) {
|
|
265
265
|
const f = y.el.children[C.value];
|
|
@@ -284,7 +284,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
284
284
|
}
|
|
285
285
|
function U(k) {
|
|
286
286
|
if (!ct || !m.el) return;
|
|
287
|
-
const f = ft(c.value, m.el), A =
|
|
287
|
+
const f = ft(c.value, m.el), A = Yl(c.value, n.value, m.el);
|
|
288
288
|
if (!(ml(c.value, m.el) <= f || // Prevent scrolling by only a couple of pixels, which doesn't look smooth
|
|
289
289
|
Math.abs(k - A) < 16)) {
|
|
290
290
|
if (c.value && n.value && m.el) {
|
|
@@ -302,10 +302,10 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
302
302
|
scrollTop: f,
|
|
303
303
|
scrollLeft: A
|
|
304
304
|
} = k.target;
|
|
305
|
-
|
|
305
|
+
o.value = c.value ? A : f;
|
|
306
306
|
}
|
|
307
307
|
function V(k) {
|
|
308
|
-
if (F.value = !0, !(!
|
|
308
|
+
if (F.value = !0, !(!i.value || !y.el)) {
|
|
309
309
|
for (const f of k.composedPath())
|
|
310
310
|
for (const A of y.el.children)
|
|
311
311
|
if (A === f) {
|
|
@@ -343,7 +343,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
343
343
|
if (!y.el) return;
|
|
344
344
|
let f;
|
|
345
345
|
if (!k)
|
|
346
|
-
f =
|
|
346
|
+
f = _l(y.el)[0];
|
|
347
347
|
else if (k === "next") {
|
|
348
348
|
if (f = W(y.el.querySelector(":focus"), k), !f) return K("first");
|
|
349
349
|
} else if (k === "prev") {
|
|
@@ -355,7 +355,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
355
355
|
}
|
|
356
356
|
function ue(k) {
|
|
357
357
|
const f = c.value && n.value ? -1 : 1, A = (k === "prev" ? -f : f) * r.value;
|
|
358
|
-
let J =
|
|
358
|
+
let J = o.value + A;
|
|
359
359
|
if (c.value && n.value && m.el) {
|
|
360
360
|
const {
|
|
361
361
|
scrollWidth: ve,
|
|
@@ -370,7 +370,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
370
370
|
prev: s.prev,
|
|
371
371
|
select: s.select,
|
|
372
372
|
isSelected: s.isSelected
|
|
373
|
-
})), z = I(() =>
|
|
373
|
+
})), z = I(() => i.value || Math.abs(o.value) > 0), fe = I(() => {
|
|
374
374
|
switch (e.showArrows) {
|
|
375
375
|
case "never":
|
|
376
376
|
return !1;
|
|
@@ -393,16 +393,16 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
393
393
|
default:
|
|
394
394
|
return !u.value && z.value;
|
|
395
395
|
}
|
|
396
|
-
}), B = I(() => Math.abs(
|
|
396
|
+
}), B = I(() => Math.abs(o.value) > 1), O = I(() => {
|
|
397
397
|
if (!m.value || !z.value) return !1;
|
|
398
398
|
const k = ml(c.value, m.el), f = va(c.value, m.el);
|
|
399
|
-
return k - f - Math.abs(
|
|
399
|
+
return k - f - Math.abs(o.value) > 1;
|
|
400
400
|
});
|
|
401
401
|
return de(() => g(e.tag, {
|
|
402
402
|
class: re(["v-slide-group", {
|
|
403
403
|
"v-slide-group--vertical": !c.value,
|
|
404
404
|
"v-slide-group--has-affixes": fe.value,
|
|
405
|
-
"v-slide-group--is-overflowing":
|
|
405
|
+
"v-slide-group--is-overflowing": i.value
|
|
406
406
|
}, l.value, e.class]),
|
|
407
407
|
style: xe(e.style),
|
|
408
408
|
tabindex: F.value || s.selected.value.length ? -1 : 0,
|
|
@@ -445,13 +445,13 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
445
445
|
})), {
|
|
446
446
|
selected: s.selected,
|
|
447
447
|
scrollTo: ue,
|
|
448
|
-
scrollOffset:
|
|
448
|
+
scrollOffset: o,
|
|
449
449
|
focus: K,
|
|
450
450
|
hasPrev: B,
|
|
451
451
|
hasNext: O
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
-
}),
|
|
454
|
+
}), tn = /* @__PURE__ */ Symbol.for("vuetify:v-chip-group"), fa = X({
|
|
455
455
|
baseColor: String,
|
|
456
456
|
column: Boolean,
|
|
457
457
|
filter: Boolean,
|
|
@@ -459,11 +459,11 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
459
459
|
type: Function,
|
|
460
460
|
default: qe
|
|
461
461
|
},
|
|
462
|
-
...
|
|
462
|
+
...en({
|
|
463
463
|
scrollToActive: !1
|
|
464
464
|
}),
|
|
465
465
|
...he(),
|
|
466
|
-
...
|
|
466
|
+
...Pl({
|
|
467
467
|
selectedClass: "v-chip--selected"
|
|
468
468
|
}),
|
|
469
469
|
...Oe(),
|
|
@@ -487,9 +487,9 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
487
487
|
isSelected: l,
|
|
488
488
|
select: u,
|
|
489
489
|
next: s,
|
|
490
|
-
prev:
|
|
491
|
-
selected:
|
|
492
|
-
} =
|
|
490
|
+
prev: i,
|
|
491
|
+
selected: o
|
|
492
|
+
} = wl(e, tn);
|
|
493
493
|
return Jt({
|
|
494
494
|
VChip: {
|
|
495
495
|
baseColor: R(() => e.baseColor),
|
|
@@ -500,7 +500,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
500
500
|
}
|
|
501
501
|
}), de(() => {
|
|
502
502
|
const r = gl.filterProps(e);
|
|
503
|
-
return g(gl,
|
|
503
|
+
return g(gl, L(r, {
|
|
504
504
|
class: ["v-chip-group", {
|
|
505
505
|
"v-chip-group--column": e.column
|
|
506
506
|
}, n.value, e.class],
|
|
@@ -510,8 +510,8 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
510
510
|
isSelected: l,
|
|
511
511
|
select: u,
|
|
512
512
|
next: s,
|
|
513
|
-
prev:
|
|
514
|
-
selected:
|
|
513
|
+
prev: i,
|
|
514
|
+
selected: o.value
|
|
515
515
|
})]
|
|
516
516
|
});
|
|
517
517
|
}), {};
|
|
@@ -564,7 +564,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
564
564
|
...Zt(),
|
|
565
565
|
...En(),
|
|
566
566
|
...yt(),
|
|
567
|
-
...
|
|
567
|
+
...Bl(),
|
|
568
568
|
...Rn(),
|
|
569
569
|
...Oe({
|
|
570
570
|
tag: "span"
|
|
@@ -596,16 +596,16 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
596
596
|
} = it(), {
|
|
597
597
|
borderClasses: s
|
|
598
598
|
} = Yt(e), {
|
|
599
|
-
densityClasses:
|
|
599
|
+
densityClasses: i
|
|
600
600
|
} = Dt(e), {
|
|
601
|
-
elevationClasses:
|
|
601
|
+
elevationClasses: o
|
|
602
602
|
} = Qt(e), {
|
|
603
603
|
roundedClasses: r
|
|
604
604
|
} = gt(e), {
|
|
605
605
|
sizeClasses: d
|
|
606
606
|
} = Bn(e), {
|
|
607
607
|
themeClasses: c
|
|
608
|
-
} = ot(e), m = Ve(e, "modelValue"), v = cl(e,
|
|
608
|
+
} = ot(e), m = Ve(e, "modelValue"), v = cl(e, tn, !1), y = cl(e, Zl, !1), h = Al(e, t), p = R(() => e.link !== !1 && h.isLink.value), w = I(() => !e.disabled && e.link !== !1 && (!!v || e.link || h.isClickable.value)), P = R(() => ({
|
|
609
609
|
"aria-label": u(e.closeLabel),
|
|
610
610
|
disabled: e.disabled,
|
|
611
611
|
onClick(V) {
|
|
@@ -619,7 +619,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
619
619
|
colorClasses: C,
|
|
620
620
|
colorStyles: F,
|
|
621
621
|
variantClasses: E
|
|
622
|
-
} =
|
|
622
|
+
} = Fl(() => ({
|
|
623
623
|
color: !v || v.isSelected.value ? e.color ?? e.baseColor : e.baseColor,
|
|
624
624
|
variant: e.variant
|
|
625
625
|
}));
|
|
@@ -631,7 +631,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
631
631
|
}
|
|
632
632
|
return () => {
|
|
633
633
|
const V = h.isLink.value ? "a" : e.tag, $ = !!(e.appendIcon || e.appendAvatar), D = !!($ || l.append), G = !!(l.close || e.closable), ne = !!(l.filter || e.filter) && v, H = !!(e.prependIcon || e.prependAvatar), W = !!(H || l.prepend);
|
|
634
|
-
return m.value && Ue(g(V,
|
|
634
|
+
return m.value && Ue(g(V, L(h.linkProps, {
|
|
635
635
|
class: ["v-chip", {
|
|
636
636
|
"v-chip--disabled": e.disabled,
|
|
637
637
|
"v-chip--label": e.label,
|
|
@@ -639,7 +639,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
639
639
|
"v-chip--filter": ne,
|
|
640
640
|
"v-chip--pill": e.pill,
|
|
641
641
|
[`${e.activeClass}`]: e.activeClass && h.isActive?.value
|
|
642
|
-
}, c.value, s.value, C.value,
|
|
642
|
+
}, c.value, s.value, C.value, i.value, o.value, r.value, d.value, E.value, v?.selectedClass.value, e.class],
|
|
643
643
|
style: [F.value, e.style],
|
|
644
644
|
disabled: e.disabled || void 0,
|
|
645
645
|
draggable: e.draggable,
|
|
@@ -647,7 +647,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
647
647
|
onClick: U,
|
|
648
648
|
onKeydown: w.value && !p.value && _
|
|
649
649
|
}), {
|
|
650
|
-
default: () => [
|
|
650
|
+
default: () => [Dl(w.value, "v-chip"), ne && g(Tl, {
|
|
651
651
|
key: "filter"
|
|
652
652
|
}, {
|
|
653
653
|
default: () => [Ue(b("div", {
|
|
@@ -722,7 +722,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
722
722
|
key: "append-avatar",
|
|
723
723
|
end: !0,
|
|
724
724
|
image: e.appendAvatar
|
|
725
|
-
}, null)])]), G && b("button",
|
|
725
|
+
}, null)])]), G && b("button", L({
|
|
726
726
|
key: "close",
|
|
727
727
|
class: "v-chip__close",
|
|
728
728
|
type: "button",
|
|
@@ -750,7 +750,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
750
750
|
...pt(),
|
|
751
751
|
...Zt(),
|
|
752
752
|
...ll(),
|
|
753
|
-
...
|
|
753
|
+
...El(),
|
|
754
754
|
...yt(),
|
|
755
755
|
...Oe(),
|
|
756
756
|
...He()
|
|
@@ -769,19 +769,19 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
769
769
|
} = Tt(() => e.color), {
|
|
770
770
|
borderClasses: s
|
|
771
771
|
} = Yt(e), {
|
|
772
|
-
dimensionStyles:
|
|
772
|
+
dimensionStyles: i
|
|
773
773
|
} = bt(e), {
|
|
774
|
-
elevationClasses:
|
|
774
|
+
elevationClasses: o
|
|
775
775
|
} = Qt(e), {
|
|
776
776
|
locationStyles: r
|
|
777
777
|
} = tl(e), {
|
|
778
778
|
positionClasses: d
|
|
779
|
-
} =
|
|
779
|
+
} = Rl(e), {
|
|
780
780
|
roundedClasses: c
|
|
781
781
|
} = gt(e);
|
|
782
782
|
return de(() => g(e.tag, {
|
|
783
|
-
class: re(["v-sheet", n.value, l.value, s.value,
|
|
784
|
-
style: xe([u.value,
|
|
783
|
+
class: re(["v-sheet", n.value, l.value, s.value, o.value, d.value, c.value, e.class]),
|
|
784
|
+
style: xe([u.value, i.value, r.value, e.style])
|
|
785
785
|
}, t)), {};
|
|
786
786
|
}
|
|
787
787
|
}), ha = {
|
|
@@ -792,8 +792,8 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
792
792
|
},
|
|
793
793
|
emits: /* @__PURE__ */ qt("save", ["update:modelValue"]),
|
|
794
794
|
setup(e, { emit: a }) {
|
|
795
|
-
const { advancedFiltersState: t } = Et(), n = Pe("table_props"), l = Pt(e, "modelValue"), u = (
|
|
796
|
-
const d = n.headers.find((y) => (y.advancedFilter?.key ?? y.key) === r), c =
|
|
795
|
+
const { advancedFiltersState: t } = Et(), n = Pe("table_props"), l = Pt(e, "modelValue"), u = (o, r) => {
|
|
796
|
+
const d = n.headers.find((y) => (y.advancedFilter?.key ?? y.key) === r), c = o.comparison === "=" ? ":" : " " + o.comparison, m = Array.isArray(o.value) ? o.value : [o.value], v = m.filter((y, h) => !(d.advancedFilter?.component === "datepicker" && h !== 0 && h !== m.length - 1)).map((y) => {
|
|
797
797
|
const h = d.advancedFilter?.options?.items ?? [];
|
|
798
798
|
let p = y, w;
|
|
799
799
|
return h.length && (w = h.find((P) => P.value === y), w && (p = w.title)), typeof d.advancedFilter?.valueFormatter == "function" && (p = d.advancedFilter.valueFormatter({
|
|
@@ -802,14 +802,14 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
802
802
|
})), p;
|
|
803
803
|
});
|
|
804
804
|
return `${d.title}${c} ${v.join(", ")}`;
|
|
805
|
-
}, s = (
|
|
806
|
-
l.value[
|
|
807
|
-
},
|
|
808
|
-
return (
|
|
805
|
+
}, s = (o) => {
|
|
806
|
+
l.value[o] = { comparison: "=", value: null }, i("save");
|
|
807
|
+
}, i = a;
|
|
808
|
+
return (o, r) => (oe(), pe(il, null, {
|
|
809
809
|
default: Ce(() => [
|
|
810
810
|
g(ma, null, {
|
|
811
811
|
default: Ce(() => [
|
|
812
|
-
(oe(!0), Ke(ce, null, Wt(
|
|
812
|
+
(oe(!0), Ke(ce, null, Wt(N(t), (d, c) => (oe(), pe(mt, {
|
|
813
813
|
key: c,
|
|
814
814
|
class: "my-0",
|
|
815
815
|
text: u(d, c),
|
|
@@ -830,7 +830,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
830
830
|
onClick: Le(),
|
|
831
831
|
...he(),
|
|
832
832
|
...He()
|
|
833
|
-
}, "VLabel"),
|
|
833
|
+
}, "VLabel"), ln = ie()({
|
|
834
834
|
name: "VLabel",
|
|
835
835
|
props: ba(),
|
|
836
836
|
setup(e, a) {
|
|
@@ -845,7 +845,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
845
845
|
onClick: e.onClick
|
|
846
846
|
}, [e.text, t.default?.()])), {};
|
|
847
847
|
}
|
|
848
|
-
}),
|
|
848
|
+
}), nn = /* @__PURE__ */ Symbol.for("vuetify:selection-control-group"), an = X({
|
|
849
849
|
color: String,
|
|
850
850
|
disabled: {
|
|
851
851
|
type: Boolean,
|
|
@@ -880,7 +880,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
880
880
|
...ht(),
|
|
881
881
|
...He()
|
|
882
882
|
}, "SelectionControlGroup"), pa = X({
|
|
883
|
-
...
|
|
883
|
+
...an({
|
|
884
884
|
defaultsTarget: "VSelectionControl"
|
|
885
885
|
})
|
|
886
886
|
}, "VSelectionControlGroup");
|
|
@@ -894,15 +894,15 @@ ie()({
|
|
|
894
894
|
let {
|
|
895
895
|
slots: t
|
|
896
896
|
} = a;
|
|
897
|
-
const n = Ve(e, "modelValue"), l = Xe(), u = R(() => e.id || `v-selection-control-group-${l}`), s = R(() => e.name || u.value),
|
|
898
|
-
return We(
|
|
897
|
+
const n = Ve(e, "modelValue"), l = Xe(), u = R(() => e.id || `v-selection-control-group-${l}`), s = R(() => e.name || u.value), i = /* @__PURE__ */ new Set();
|
|
898
|
+
return We(nn, {
|
|
899
899
|
modelValue: n,
|
|
900
900
|
forceUpdate: () => {
|
|
901
|
-
|
|
901
|
+
i.forEach((o) => o());
|
|
902
902
|
},
|
|
903
|
-
onForceUpdate: (
|
|
904
|
-
|
|
905
|
-
|
|
903
|
+
onForceUpdate: (o) => {
|
|
904
|
+
i.add(o), rt(() => {
|
|
905
|
+
i.delete(o);
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
}), Jt({
|
|
@@ -931,19 +931,19 @@ ie()({
|
|
|
931
931
|
}, [t.default?.()])), {};
|
|
932
932
|
}
|
|
933
933
|
});
|
|
934
|
-
const
|
|
934
|
+
const on = X({
|
|
935
935
|
label: String,
|
|
936
936
|
baseColor: String,
|
|
937
937
|
trueValue: null,
|
|
938
938
|
falseValue: null,
|
|
939
939
|
value: null,
|
|
940
940
|
...he(),
|
|
941
|
-
...
|
|
941
|
+
...an()
|
|
942
942
|
}, "VSelectionControl");
|
|
943
943
|
function ka(e) {
|
|
944
|
-
const a = Pe(
|
|
944
|
+
const a = Pe(nn, void 0), {
|
|
945
945
|
densityClasses: t
|
|
946
|
-
} = Dt(e), n = Ve(e, "modelValue"), l = I(() => e.trueValue !== void 0 ? e.trueValue : e.value !== void 0 ? e.value : !0), u = I(() => e.falseValue !== void 0 ? e.falseValue : !1), s = I(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)),
|
|
946
|
+
} = Dt(e), n = Ve(e, "modelValue"), l = I(() => e.trueValue !== void 0 ? e.trueValue : e.value !== void 0 ? e.value : !0), u = I(() => e.falseValue !== void 0 ? e.falseValue : !1), s = I(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)), i = I({
|
|
947
947
|
get() {
|
|
948
948
|
const v = a ? a.modelValue.value : n.value;
|
|
949
949
|
return s.value ? Te(v).some((y) => e.valueComparator(y, l.value)) : e.valueComparator(v, l.value);
|
|
@@ -955,22 +955,22 @@ function ka(e) {
|
|
|
955
955
|
s.value && (h = v ? [...Te(n.value), y] : Te(n.value).filter((p) => !e.valueComparator(p, l.value))), a ? a.modelValue.value = h : n.value = h;
|
|
956
956
|
}
|
|
957
957
|
}), {
|
|
958
|
-
textColorClasses:
|
|
958
|
+
textColorClasses: o,
|
|
959
959
|
textColorStyles: r
|
|
960
960
|
} = kt(() => {
|
|
961
961
|
if (!(e.error || e.disabled))
|
|
962
|
-
return
|
|
962
|
+
return i.value ? e.color : e.baseColor;
|
|
963
963
|
}), {
|
|
964
964
|
backgroundColorClasses: d,
|
|
965
965
|
backgroundColorStyles: c
|
|
966
|
-
} = Tt(() =>
|
|
966
|
+
} = Tt(() => i.value && !e.error && !e.disabled ? e.color : e.baseColor), m = I(() => i.value ? e.trueIcon : e.falseIcon);
|
|
967
967
|
return {
|
|
968
968
|
group: a,
|
|
969
969
|
densityClasses: t,
|
|
970
970
|
trueValue: l,
|
|
971
971
|
falseValue: u,
|
|
972
|
-
model:
|
|
973
|
-
textColorClasses:
|
|
972
|
+
model: i,
|
|
973
|
+
textColorClasses: o,
|
|
974
974
|
textColorStyles: r,
|
|
975
975
|
backgroundColorClasses: d,
|
|
976
976
|
backgroundColorStyles: c,
|
|
@@ -983,7 +983,7 @@ const yl = ie()({
|
|
|
983
983
|
vRipple: lt
|
|
984
984
|
},
|
|
985
985
|
inheritAttrs: !1,
|
|
986
|
-
props:
|
|
986
|
+
props: on(),
|
|
987
987
|
emits: {
|
|
988
988
|
"update:modelValue": (e) => !0
|
|
989
989
|
},
|
|
@@ -996,15 +996,15 @@ const yl = ie()({
|
|
|
996
996
|
group: l,
|
|
997
997
|
densityClasses: u,
|
|
998
998
|
icon: s,
|
|
999
|
-
model:
|
|
1000
|
-
textColorClasses:
|
|
999
|
+
model: i,
|
|
1000
|
+
textColorClasses: o,
|
|
1001
1001
|
textColorStyles: r,
|
|
1002
1002
|
backgroundColorClasses: d,
|
|
1003
1003
|
backgroundColorStyles: c,
|
|
1004
1004
|
trueValue: m
|
|
1005
1005
|
} = ka(e), v = Xe(), y = ee(!1), h = ee(!1), p = j(), w = R(() => e.id || `input-${v}`), P = R(() => !e.disabled && !e.readonly);
|
|
1006
1006
|
l?.onForceUpdate(() => {
|
|
1007
|
-
p.value && (p.value.checked =
|
|
1007
|
+
p.value && (p.value.checked = i.value);
|
|
1008
1008
|
});
|
|
1009
1009
|
function C(_) {
|
|
1010
1010
|
P.value && (y.value = !0, dt(_.target, ":focus-visible") !== !1 && (h.value = !0));
|
|
@@ -1017,10 +1017,10 @@ const yl = ie()({
|
|
|
1017
1017
|
}
|
|
1018
1018
|
function U(_) {
|
|
1019
1019
|
if (!P.value) {
|
|
1020
|
-
p.value && (p.value.checked =
|
|
1020
|
+
p.value && (p.value.checked = i.value);
|
|
1021
1021
|
return;
|
|
1022
1022
|
}
|
|
1023
|
-
e.readonly && l && ke(() => l.forceUpdate()),
|
|
1023
|
+
e.readonly && l && ke(() => l.forceUpdate()), i.value = _.target.checked;
|
|
1024
1024
|
}
|
|
1025
1025
|
return de(() => {
|
|
1026
1026
|
const _ = n.label ? n.label({
|
|
@@ -1028,9 +1028,9 @@ const yl = ie()({
|
|
|
1028
1028
|
props: {
|
|
1029
1029
|
for: w.value
|
|
1030
1030
|
}
|
|
1031
|
-
}) : e.label, [V, $] =
|
|
1031
|
+
}) : e.label, [V, $] = Ol(t), D = b("input", L({
|
|
1032
1032
|
ref: p,
|
|
1033
|
-
checked:
|
|
1033
|
+
checked: i.value,
|
|
1034
1034
|
disabled: !!e.disabled,
|
|
1035
1035
|
id: w.value,
|
|
1036
1036
|
onBlur: F,
|
|
@@ -1041,11 +1041,11 @@ const yl = ie()({
|
|
|
1041
1041
|
type: e.type,
|
|
1042
1042
|
value: m.value,
|
|
1043
1043
|
name: e.name,
|
|
1044
|
-
"aria-checked": e.type === "checkbox" ?
|
|
1044
|
+
"aria-checked": e.type === "checkbox" ? i.value : void 0
|
|
1045
1045
|
}, $), null);
|
|
1046
|
-
return b("div",
|
|
1046
|
+
return b("div", L({
|
|
1047
1047
|
class: ["v-selection-control", {
|
|
1048
|
-
"v-selection-control--dirty":
|
|
1048
|
+
"v-selection-control--dirty": i.value,
|
|
1049
1049
|
"v-selection-control--disabled": e.disabled,
|
|
1050
1050
|
"v-selection-control--error": e.error,
|
|
1051
1051
|
"v-selection-control--focused": y.value,
|
|
@@ -1055,7 +1055,7 @@ const yl = ie()({
|
|
|
1055
1055
|
}, V, {
|
|
1056
1056
|
style: e.style
|
|
1057
1057
|
}), [b("div", {
|
|
1058
|
-
class: re(["v-selection-control__wrapper",
|
|
1058
|
+
class: re(["v-selection-control__wrapper", o.value]),
|
|
1059
1059
|
style: xe(r.value)
|
|
1060
1060
|
}, [n.default?.({
|
|
1061
1061
|
backgroundColorClasses: d,
|
|
@@ -1063,8 +1063,8 @@ const yl = ie()({
|
|
|
1063
1063
|
}), Ue(b("div", {
|
|
1064
1064
|
class: re(["v-selection-control__input"])
|
|
1065
1065
|
}, [n.input?.({
|
|
1066
|
-
model:
|
|
1067
|
-
textColorClasses:
|
|
1066
|
+
model: i,
|
|
1067
|
+
textColorClasses: o,
|
|
1068
1068
|
textColorStyles: r,
|
|
1069
1069
|
backgroundColorClasses: d,
|
|
1070
1070
|
backgroundColorStyles: c,
|
|
@@ -1081,7 +1081,7 @@ const yl = ie()({
|
|
|
1081
1081
|
}, null), D])]), [[lt, !e.disabled && !e.readonly && e.ripple, null, {
|
|
1082
1082
|
center: !0,
|
|
1083
1083
|
circle: !0
|
|
1084
|
-
}]])]), _ && g(
|
|
1084
|
+
}]])]), _ && g(ln, {
|
|
1085
1085
|
for: w.value,
|
|
1086
1086
|
onClick: E
|
|
1087
1087
|
}, {
|
|
@@ -1098,11 +1098,11 @@ const yl = ie()({
|
|
|
1098
1098
|
type: ye,
|
|
1099
1099
|
default: "$checkboxIndeterminate"
|
|
1100
1100
|
},
|
|
1101
|
-
...
|
|
1101
|
+
...on({
|
|
1102
1102
|
falseIcon: "$checkboxOff",
|
|
1103
1103
|
trueIcon: "$checkboxOn"
|
|
1104
1104
|
})
|
|
1105
|
-
}, "VCheckboxBtn"),
|
|
1105
|
+
}, "VCheckboxBtn"), un = ie()({
|
|
1106
1106
|
name: "VCheckboxBtn",
|
|
1107
1107
|
props: Sa(),
|
|
1108
1108
|
emits: {
|
|
@@ -1114,20 +1114,20 @@ const yl = ie()({
|
|
|
1114
1114
|
slots: t
|
|
1115
1115
|
} = a;
|
|
1116
1116
|
const n = Ve(e, "indeterminate"), l = Ve(e, "modelValue");
|
|
1117
|
-
function u(
|
|
1117
|
+
function u(o) {
|
|
1118
1118
|
n.value && (n.value = !1);
|
|
1119
1119
|
}
|
|
1120
|
-
const s = R(() => n.value ? e.indeterminateIcon : e.falseIcon),
|
|
1120
|
+
const s = R(() => n.value ? e.indeterminateIcon : e.falseIcon), i = R(() => n.value ? e.indeterminateIcon : e.trueIcon);
|
|
1121
1121
|
return de(() => {
|
|
1122
|
-
const
|
|
1123
|
-
return g(yl,
|
|
1122
|
+
const o = Ye(yl.filterProps(e), ["modelValue"]);
|
|
1123
|
+
return g(yl, L(o, {
|
|
1124
1124
|
modelValue: l.value,
|
|
1125
1125
|
"onUpdate:modelValue": [(r) => l.value = r, u],
|
|
1126
1126
|
class: ["v-checkbox-btn", e.class],
|
|
1127
1127
|
style: e.style,
|
|
1128
1128
|
type: "checkbox",
|
|
1129
1129
|
falseIcon: s.value,
|
|
1130
|
-
trueIcon:
|
|
1130
|
+
trueIcon: i.value,
|
|
1131
1131
|
"aria-checked": n.value ? "mixed" : void 0
|
|
1132
1132
|
}), t);
|
|
1133
1133
|
}), {};
|
|
@@ -1143,21 +1143,21 @@ function Ot(e) {
|
|
|
1143
1143
|
color: u,
|
|
1144
1144
|
...s
|
|
1145
1145
|
} = n;
|
|
1146
|
-
const
|
|
1146
|
+
const i = {
|
|
1147
1147
|
prepend: "prependAction",
|
|
1148
1148
|
prependInner: "prependAction",
|
|
1149
1149
|
append: "appendAction",
|
|
1150
1150
|
appendInner: "appendAction",
|
|
1151
1151
|
clear: "clear"
|
|
1152
|
-
}[l],
|
|
1152
|
+
}[l], o = e[`onClick:${l}`];
|
|
1153
1153
|
function r(c) {
|
|
1154
|
-
c.key !== "Enter" && c.key !== " " || (c.preventDefault(), c.stopPropagation(),
|
|
1154
|
+
c.key !== "Enter" && c.key !== " " || (c.preventDefault(), c.stopPropagation(), $l(o, new PointerEvent("click", c)));
|
|
1155
1155
|
}
|
|
1156
|
-
const d =
|
|
1157
|
-
return g(Se,
|
|
1156
|
+
const d = o && i ? a(`$vuetify.input.${i}`, e.label ?? "") : void 0;
|
|
1157
|
+
return g(Se, L({
|
|
1158
1158
|
icon: e[`${l}Icon`],
|
|
1159
1159
|
"aria-label": d,
|
|
1160
|
-
onClick:
|
|
1160
|
+
onClick: o,
|
|
1161
1161
|
onKeydown: r,
|
|
1162
1162
|
color: u
|
|
1163
1163
|
}, s), null);
|
|
@@ -1176,7 +1176,7 @@ const Ca = X({
|
|
|
1176
1176
|
...he(),
|
|
1177
1177
|
...Bt({
|
|
1178
1178
|
transition: {
|
|
1179
|
-
component:
|
|
1179
|
+
component: Ml,
|
|
1180
1180
|
leaveAbsolute: !0,
|
|
1181
1181
|
group: !0
|
|
1182
1182
|
}
|
|
@@ -1198,20 +1198,20 @@ const Ca = X({
|
|
|
1198
1198
|
class: re(["v-messages", l.value, e.class]),
|
|
1199
1199
|
style: xe([u.value, e.style])
|
|
1200
1200
|
}, {
|
|
1201
|
-
default: () => [e.active && n.value.map((s,
|
|
1201
|
+
default: () => [e.active && n.value.map((s, i) => b("div", {
|
|
1202
1202
|
class: "v-messages__message",
|
|
1203
|
-
key: `${
|
|
1203
|
+
key: `${i}-${n.value}`
|
|
1204
1204
|
}, [t.message ? t.message({
|
|
1205
1205
|
message: s
|
|
1206
1206
|
}) : s]))]
|
|
1207
1207
|
})), {};
|
|
1208
1208
|
}
|
|
1209
|
-
}),
|
|
1209
|
+
}), sn = X({
|
|
1210
1210
|
focused: Boolean,
|
|
1211
1211
|
"onUpdate:focused": Le()
|
|
1212
1212
|
}, "focus");
|
|
1213
|
-
function
|
|
1214
|
-
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
1213
|
+
function rn(e) {
|
|
1214
|
+
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Nl();
|
|
1215
1215
|
const t = Ve(e, "focused"), n = R(() => ({
|
|
1216
1216
|
[`${a}--focused`]: t.value
|
|
1217
1217
|
}));
|
|
@@ -1274,11 +1274,11 @@ const _a = X({
|
|
|
1274
1274
|
modelValue: null,
|
|
1275
1275
|
validateOn: String,
|
|
1276
1276
|
validationValue: null,
|
|
1277
|
-
...
|
|
1277
|
+
...sn()
|
|
1278
1278
|
}, "validation");
|
|
1279
1279
|
function Pa(e) {
|
|
1280
|
-
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
1281
|
-
const n = Ve(e, "modelValue"), l = I(() => e.validationValue === void 0 ? n.value : e.validationValue), u = $t(e), s = wa(() => e.rules),
|
|
1280
|
+
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Nl(), t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Xe();
|
|
1281
|
+
const n = Ve(e, "modelValue"), l = I(() => e.validationValue === void 0 ? n.value : e.validationValue), u = $t(e), s = wa(() => e.rules), i = j([]), o = ee(!0), r = I(() => !!(Te(n.value === "" ? null : n.value).length || Te(l.value === "" ? null : l.value).length)), d = I(() => e.errorMessages?.length ? Te(e.errorMessages).concat(i.value).slice(0, Math.max(0, Number(e.maxErrors))) : i.value), c = I(() => {
|
|
1282
1282
|
let F = (e.validateOn ?? u.validateOn?.value) || "input";
|
|
1283
1283
|
F === "lazy" && (F = "input lazy"), F === "eager" && (F = "input eager");
|
|
1284
1284
|
const E = new Set(F?.split(" ") ?? []);
|
|
@@ -1289,13 +1289,13 @@ function Pa(e) {
|
|
|
1289
1289
|
lazy: E.has("lazy"),
|
|
1290
1290
|
eager: E.has("eager")
|
|
1291
1291
|
};
|
|
1292
|
-
}), m = I(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ?
|
|
1292
|
+
}), m = I(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ? o.value ? i.value.length || c.value.lazy ? null : !0 : !i.value.length : !0), v = ee(!1), y = I(() => ({
|
|
1293
1293
|
[`${a}--error`]: m.value === !1,
|
|
1294
1294
|
[`${a}--dirty`]: r.value,
|
|
1295
1295
|
[`${a}--disabled`]: u.isDisabled.value,
|
|
1296
1296
|
[`${a}--readonly`]: u.isReadonly.value
|
|
1297
|
-
})), h =
|
|
1298
|
-
|
|
1297
|
+
})), h = Ll("validation"), p = I(() => e.name ?? N(t));
|
|
1298
|
+
wn(() => {
|
|
1299
1299
|
u.register?.({
|
|
1300
1300
|
id: p.value,
|
|
1301
1301
|
vm: h,
|
|
@@ -1303,7 +1303,7 @@ function Pa(e) {
|
|
|
1303
1303
|
reset: w,
|
|
1304
1304
|
resetValidation: P
|
|
1305
1305
|
});
|
|
1306
|
-
}),
|
|
1306
|
+
}), kl(() => {
|
|
1307
1307
|
u.unregister?.(p.value);
|
|
1308
1308
|
}), at(async () => {
|
|
1309
1309
|
c.value.lazy || await C(!c.value.eager), u.update?.(p.value, m.value, d.value);
|
|
@@ -1328,7 +1328,7 @@ function Pa(e) {
|
|
|
1328
1328
|
n.value = null, await ke(), await P();
|
|
1329
1329
|
}
|
|
1330
1330
|
async function P() {
|
|
1331
|
-
|
|
1331
|
+
o.value = !0, c.value.lazy ? i.value = [] : await C(!c.value.eager);
|
|
1332
1332
|
}
|
|
1333
1333
|
async function C() {
|
|
1334
1334
|
let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
@@ -1346,14 +1346,14 @@ function Pa(e) {
|
|
|
1346
1346
|
E.push(V || "");
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
|
-
return
|
|
1349
|
+
return i.value = E, v.value = !1, o.value = F, i.value;
|
|
1350
1350
|
}
|
|
1351
1351
|
return {
|
|
1352
1352
|
errorMessages: d,
|
|
1353
1353
|
isDirty: r,
|
|
1354
1354
|
isDisabled: u.isDisabled,
|
|
1355
1355
|
isReadonly: u.isReadonly,
|
|
1356
|
-
isPristine:
|
|
1356
|
+
isPristine: o,
|
|
1357
1357
|
isValid: m,
|
|
1358
1358
|
isValidating: v,
|
|
1359
1359
|
reset: w,
|
|
@@ -1362,7 +1362,7 @@ function Pa(e) {
|
|
|
1362
1362
|
validationClasses: y
|
|
1363
1363
|
};
|
|
1364
1364
|
}
|
|
1365
|
-
const
|
|
1365
|
+
const cn = X({
|
|
1366
1366
|
id: String,
|
|
1367
1367
|
appendIcon: ye,
|
|
1368
1368
|
baseColor: String,
|
|
@@ -1397,7 +1397,7 @@ const rn = X({
|
|
|
1397
1397
|
}, "VInput"), hl = ie()({
|
|
1398
1398
|
name: "VInput",
|
|
1399
1399
|
props: {
|
|
1400
|
-
...
|
|
1400
|
+
...cn()
|
|
1401
1401
|
},
|
|
1402
1402
|
emits: {
|
|
1403
1403
|
"update:modelValue": (e) => !0
|
|
@@ -1413,9 +1413,9 @@ const rn = X({
|
|
|
1413
1413
|
} = Dt(e), {
|
|
1414
1414
|
dimensionStyles: s
|
|
1415
1415
|
} = bt(e), {
|
|
1416
|
-
themeClasses:
|
|
1416
|
+
themeClasses: i
|
|
1417
1417
|
} = ot(e), {
|
|
1418
|
-
rtlClasses:
|
|
1418
|
+
rtlClasses: o
|
|
1419
1419
|
} = Ft(), {
|
|
1420
1420
|
InputIcon: r
|
|
1421
1421
|
} = Ot(e), d = Xe(), c = I(() => e.id || `input-${d}`), {
|
|
@@ -1455,7 +1455,7 @@ const rn = 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
|
-
}, u.value,
|
|
1458
|
+
}, u.value, i.value, o.value, U.value, e.class]),
|
|
1459
1459
|
style: xe([s.value, e.style])
|
|
1460
1460
|
}, [W && b("div", {
|
|
1461
1461
|
key: "prepend",
|
|
@@ -1503,7 +1503,7 @@ const rn = X({
|
|
|
1503
1503
|
...he(),
|
|
1504
1504
|
...Bt({
|
|
1505
1505
|
transition: {
|
|
1506
|
-
component:
|
|
1506
|
+
component: Ml
|
|
1507
1507
|
}
|
|
1508
1508
|
})
|
|
1509
1509
|
}, "VCounter"), Fa = ie()({
|
|
@@ -1540,14 +1540,14 @@ const rn = X({
|
|
|
1540
1540
|
let {
|
|
1541
1541
|
slots: t
|
|
1542
1542
|
} = a;
|
|
1543
|
-
return de(() => g(
|
|
1543
|
+
return de(() => g(ln, {
|
|
1544
1544
|
class: re(["v-field-label", {
|
|
1545
1545
|
"v-field-label--floating": e.floating
|
|
1546
1546
|
}, e.class]),
|
|
1547
1547
|
style: xe(e.style)
|
|
1548
1548
|
}, t)), {};
|
|
1549
1549
|
}
|
|
1550
|
-
}), Ta = ["underlined", "outlined", "filled", "solo", "solo-inverted", "solo-filled", "plain"],
|
|
1550
|
+
}), Ta = ["underlined", "outlined", "filled", "solo", "solo-inverted", "solo-filled", "plain"], dn = X({
|
|
1551
1551
|
appendInnerIcon: ye,
|
|
1552
1552
|
bgColor: String,
|
|
1553
1553
|
clearable: Boolean,
|
|
@@ -1585,7 +1585,7 @@ const rn = X({
|
|
|
1585
1585
|
"onClick:appendInner": Le(),
|
|
1586
1586
|
"onClick:prependInner": Le(),
|
|
1587
1587
|
...he(),
|
|
1588
|
-
...
|
|
1588
|
+
...Ul(),
|
|
1589
1589
|
...yt(),
|
|
1590
1590
|
...He()
|
|
1591
1591
|
}, "VField"), bl = ie()({
|
|
@@ -1595,8 +1595,8 @@ const rn = X({
|
|
|
1595
1595
|
id: String,
|
|
1596
1596
|
details: Boolean,
|
|
1597
1597
|
labelId: String,
|
|
1598
|
-
...
|
|
1599
|
-
...
|
|
1598
|
+
...sn(),
|
|
1599
|
+
...dn()
|
|
1600
1600
|
},
|
|
1601
1601
|
emits: {
|
|
1602
1602
|
"update:focused": (e) => !0,
|
|
@@ -1612,19 +1612,19 @@ const rn = X({
|
|
|
1612
1612
|
themeClasses: u
|
|
1613
1613
|
} = ot(e), {
|
|
1614
1614
|
loaderClasses: s
|
|
1615
|
-
} =
|
|
1616
|
-
focusClasses:
|
|
1617
|
-
isFocused:
|
|
1615
|
+
} = Hl(e), {
|
|
1616
|
+
focusClasses: i,
|
|
1617
|
+
isFocused: o,
|
|
1618
1618
|
focus: r,
|
|
1619
1619
|
blur: d
|
|
1620
|
-
} =
|
|
1620
|
+
} = rn(e), {
|
|
1621
1621
|
InputIcon: c
|
|
1622
1622
|
} = Ot(e), {
|
|
1623
1623
|
roundedClasses: m
|
|
1624
1624
|
} = gt(e), {
|
|
1625
1625
|
rtlClasses: v
|
|
1626
|
-
} = Ft(), y = R(() => e.dirty || e.active), h = R(() => !!(e.label || l.label)), p = R(() => !e.singleLine && h.value), w = Xe(), P = I(() => e.id || `input-${w}`), C = R(() => e.details ? `${P.value}-messages` : void 0), F = j(), E = j(), U = j(), _ = I(() => ["plain", "underlined"].includes(e.variant)), V = I(() => e.error || e.disabled ? void 0 : y.value &&
|
|
1627
|
-
if (!(!e.iconColor || e.glow && !
|
|
1626
|
+
} = Ft(), y = R(() => e.dirty || e.active), h = R(() => !!(e.label || l.label)), p = R(() => !e.singleLine && h.value), w = Xe(), P = I(() => e.id || `input-${w}`), C = R(() => e.details ? `${P.value}-messages` : void 0), F = j(), E = j(), U = j(), _ = I(() => ["plain", "underlined"].includes(e.variant)), V = I(() => e.error || e.disabled ? void 0 : y.value && o.value ? e.color : e.baseColor), $ = I(() => {
|
|
1627
|
+
if (!(!e.iconColor || e.glow && !o.value))
|
|
1628
1628
|
return e.iconColor === !0 ? V.value : e.iconColor;
|
|
1629
1629
|
}), {
|
|
1630
1630
|
backgroundColorClasses: D,
|
|
@@ -1634,7 +1634,7 @@ const rn = X({
|
|
|
1634
1634
|
textColorStyles: H
|
|
1635
1635
|
} = kt(V);
|
|
1636
1636
|
se(y, (z) => {
|
|
1637
|
-
if (p.value && !
|
|
1637
|
+
if (p.value && !xl()) {
|
|
1638
1638
|
const fe = F.value.$el, B = E.value.$el;
|
|
1639
1639
|
requestAnimationFrame(() => {
|
|
1640
1640
|
const O = $n(fe), k = new Mn(B), f = k.x - O.x, A = k.y - O.y - (O.height / 2 - k.height / 2), J = k.width / 0.75, ve = Math.abs(J - O.width) > 1 ? {
|
|
@@ -1658,7 +1658,7 @@ const rn = X({
|
|
|
1658
1658
|
});
|
|
1659
1659
|
const W = I(() => ({
|
|
1660
1660
|
isActive: y,
|
|
1661
|
-
isFocused:
|
|
1661
|
+
isFocused: o,
|
|
1662
1662
|
controlRef: U,
|
|
1663
1663
|
iconColor: $,
|
|
1664
1664
|
blur: d,
|
|
@@ -1687,7 +1687,7 @@ const rn = X({
|
|
|
1687
1687
|
for: P.value
|
|
1688
1688
|
}
|
|
1689
1689
|
}) : e.label;
|
|
1690
|
-
return b("div",
|
|
1690
|
+
return b("div", L({
|
|
1691
1691
|
class: ["v-field", {
|
|
1692
1692
|
"v-field--active": y.value,
|
|
1693
1693
|
"v-field--appended": O,
|
|
@@ -1704,12 +1704,12 @@ const rn = X({
|
|
|
1704
1704
|
"v-field--single-line": e.singleLine,
|
|
1705
1705
|
"v-field--no-label": !k(),
|
|
1706
1706
|
[`v-field--variant-${e.variant}`]: !0
|
|
1707
|
-
}, u.value, D.value,
|
|
1707
|
+
}, u.value, D.value, i.value, s.value, m.value, v.value, e.class],
|
|
1708
1708
|
style: [G.value, e.style],
|
|
1709
1709
|
onClick: q
|
|
1710
1710
|
}, t), [b("div", {
|
|
1711
1711
|
class: "v-field__overlay"
|
|
1712
|
-
}, null), g(
|
|
1712
|
+
}, null), g(zl, {
|
|
1713
1713
|
name: "v-field",
|
|
1714
1714
|
active: !!e.loading,
|
|
1715
1715
|
color: e.error ? "error" : typeof e.loading == "string" ? e.loading : e.color
|
|
@@ -1725,7 +1725,7 @@ const rn = X({
|
|
|
1725
1725
|
}, null)]), b("div", {
|
|
1726
1726
|
class: "v-field__field",
|
|
1727
1727
|
"data-no-activator": ""
|
|
1728
|
-
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && p.value && g(Ct,
|
|
1728
|
+
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && p.value && g(Ct, L({
|
|
1729
1729
|
key: "floating-label",
|
|
1730
1730
|
ref: E,
|
|
1731
1731
|
class: [ne.value],
|
|
@@ -1734,7 +1734,7 @@ const rn = X({
|
|
|
1734
1734
|
style: H.value
|
|
1735
1735
|
}), {
|
|
1736
1736
|
default: () => [k()]
|
|
1737
|
-
}), h.value && g(Ct,
|
|
1737
|
+
}), h.value && g(Ct, L({
|
|
1738
1738
|
key: "label",
|
|
1739
1739
|
ref: F,
|
|
1740
1740
|
id: e.labelId
|
|
@@ -1753,7 +1753,7 @@ const rn = X({
|
|
|
1753
1753
|
id: P.value,
|
|
1754
1754
|
class: "v-field__input",
|
|
1755
1755
|
"aria-describedby": C.value
|
|
1756
|
-
}, null)]), B && g(
|
|
1756
|
+
}, null)]), B && g(Tl, {
|
|
1757
1757
|
key: "clear"
|
|
1758
1758
|
}, {
|
|
1759
1759
|
default: () => [Ue(b("div", {
|
|
@@ -1797,14 +1797,14 @@ const rn = X({
|
|
|
1797
1797
|
class: "v-field__outline__start"
|
|
1798
1798
|
}, null), p.value && b("div", {
|
|
1799
1799
|
class: "v-field__outline__notch"
|
|
1800
|
-
}, [g(Ct,
|
|
1800
|
+
}, [g(Ct, L({
|
|
1801
1801
|
ref: E,
|
|
1802
1802
|
floating: !0
|
|
1803
1803
|
}, K.value), {
|
|
1804
1804
|
default: () => [k()]
|
|
1805
1805
|
})]), b("div", {
|
|
1806
1806
|
class: "v-field__outline__end"
|
|
1807
|
-
}, null)]), _.value && p.value && g(Ct,
|
|
1807
|
+
}, null)]), _.value && p.value && g(Ct, L({
|
|
1808
1808
|
ref: E,
|
|
1809
1809
|
floating: !0
|
|
1810
1810
|
}, K.value), {
|
|
@@ -1818,7 +1818,7 @@ const rn = X({
|
|
|
1818
1818
|
}), Ba = X({
|
|
1819
1819
|
autocomplete: String
|
|
1820
1820
|
}, "autocomplete");
|
|
1821
|
-
function
|
|
1821
|
+
function vn(e) {
|
|
1822
1822
|
const a = Xe(), t = ee(0), n = R(() => e.autocomplete === "suppress"), l = R(() => {
|
|
1823
1823
|
if (e.name)
|
|
1824
1824
|
return n.value ? `${e.name}-${a}-${t.value}` : e.name;
|
|
@@ -1856,8 +1856,8 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1856
1856
|
},
|
|
1857
1857
|
modelModifiers: Object,
|
|
1858
1858
|
...Ba(),
|
|
1859
|
-
...Ye(
|
|
1860
|
-
...
|
|
1859
|
+
...Ye(cn(), ["direction"]),
|
|
1860
|
+
...dn()
|
|
1861
1861
|
}, "VTextField"), Je = ie()({
|
|
1862
1862
|
name: "VTextField",
|
|
1863
1863
|
directives: {
|
|
@@ -1879,17 +1879,17 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1879
1879
|
} = a;
|
|
1880
1880
|
const u = Ve(e, "modelValue", void 0, (_) => Object.is(_, -0) ? "-0" : _), {
|
|
1881
1881
|
isFocused: s,
|
|
1882
|
-
focus:
|
|
1883
|
-
blur:
|
|
1884
|
-
} =
|
|
1882
|
+
focus: i,
|
|
1883
|
+
blur: o
|
|
1884
|
+
} = rn(e), {
|
|
1885
1885
|
onIntersect: r
|
|
1886
1886
|
} = Ra(e), d = I(() => typeof e.counterValue == "function" ? e.counterValue(u.value) : typeof e.counterValue == "number" ? e.counterValue : (u.value ?? "").toString().length), c = 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 = j(), y = j(), h = j(), p =
|
|
1890
|
+
}), m = I(() => ["plain", "underlined"].includes(e.variant)), v = j(), y = j(), h = j(), p = vn(e), w = I(() => Ea.includes(e.type) || e.persistentPlaceholder || s.value || e.active);
|
|
1891
1891
|
function P() {
|
|
1892
|
-
p.isSuppressing.value && p.update(), s.value ||
|
|
1892
|
+
p.isSuppressing.value && p.update(), s.value || i(), ke(() => {
|
|
1893
1893
|
h.value !== document.activeElement && h.value?.focus();
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
@@ -1901,7 +1901,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1901
1901
|
}
|
|
1902
1902
|
function E(_, V) {
|
|
1903
1903
|
_.stopPropagation(), P(), ke(() => {
|
|
1904
|
-
V(),
|
|
1904
|
+
V(), $l(e["onClick:clear"], _);
|
|
1905
1905
|
});
|
|
1906
1906
|
}
|
|
1907
1907
|
function U(_) {
|
|
@@ -1917,11 +1917,11 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1917
1917
|
});
|
|
1918
1918
|
}
|
|
1919
1919
|
return de(() => {
|
|
1920
|
-
const _ = !!(l.counter || e.counter !== !1 && e.counter != null), V = !!(_ || l.details), [$, D] =
|
|
1920
|
+
const _ = !!(l.counter || e.counter !== !1 && e.counter != null), V = !!(_ || l.details), [$, D] = Ol(t), {
|
|
1921
1921
|
modelValue: G,
|
|
1922
1922
|
...ne
|
|
1923
1923
|
} = hl.filterProps(e), H = bl.filterProps(e);
|
|
1924
|
-
return g(hl,
|
|
1924
|
+
return g(hl, L({
|
|
1925
1925
|
ref: v,
|
|
1926
1926
|
modelValue: u.value,
|
|
1927
1927
|
"onUpdate:modelValue": (W) => u.value = W,
|
|
@@ -1946,7 +1946,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1946
1946
|
hasDetails: B,
|
|
1947
1947
|
reset: O
|
|
1948
1948
|
} = W;
|
|
1949
|
-
return g(bl,
|
|
1949
|
+
return g(bl, L({
|
|
1950
1950
|
ref: y,
|
|
1951
1951
|
onMousedown: C,
|
|
1952
1952
|
onClick: F,
|
|
@@ -1971,7 +1971,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1971
1971
|
},
|
|
1972
1972
|
controlRef: J
|
|
1973
1973
|
} = k;
|
|
1974
|
-
const ve = b("input",
|
|
1974
|
+
const ve = b("input", L({
|
|
1975
1975
|
ref: (ge) => h.value = J.value = ge,
|
|
1976
1976
|
value: u.value,
|
|
1977
1977
|
onInput: U,
|
|
@@ -1984,8 +1984,8 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1984
1984
|
size: 1,
|
|
1985
1985
|
role: e.role,
|
|
1986
1986
|
type: e.type,
|
|
1987
|
-
onFocus:
|
|
1988
|
-
onBlur:
|
|
1987
|
+
onFocus: i,
|
|
1988
|
+
onBlur: o,
|
|
1989
1989
|
"aria-labelledby": `${K.value}-label`
|
|
1990
1990
|
}, A, D), null);
|
|
1991
1991
|
return b(ce, null, [e.prefix && b("span", {
|
|
@@ -2038,11 +2038,11 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2038
2038
|
resizeRef: u,
|
|
2039
2039
|
contentRect: s
|
|
2040
2040
|
} = It(void 0, "border");
|
|
2041
|
-
se(() => s.value?.height, (
|
|
2042
|
-
|
|
2041
|
+
se(() => s.value?.height, (i) => {
|
|
2042
|
+
i != null && n("update:height", i);
|
|
2043
2043
|
}), de(() => e.renderless ? b(ce, null, [l.default?.({
|
|
2044
2044
|
itemRef: u
|
|
2045
|
-
})]) : b("div",
|
|
2045
|
+
})]) : b("div", L({
|
|
2046
2046
|
ref: u,
|
|
2047
2047
|
class: ["v-virtual-scroll__item", e.class],
|
|
2048
2048
|
style: e.style
|
|
@@ -2060,7 +2060,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2060
2060
|
height: [Number, String]
|
|
2061
2061
|
}, "virtual");
|
|
2062
2062
|
function Ha(e, a) {
|
|
2063
|
-
const t =
|
|
2063
|
+
const t = Il(), n = ee(0);
|
|
2064
2064
|
zt(() => {
|
|
2065
2065
|
n.value = parseFloat(e.itemHeight || 0);
|
|
2066
2066
|
});
|
|
@@ -2070,16 +2070,16 @@ function Ha(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), s = ee(0),
|
|
2073
|
+
) || 1), s = ee(0), i = ee(0), o = j(), r = j();
|
|
2074
2074
|
let d = 0;
|
|
2075
2075
|
const {
|
|
2076
2076
|
resizeRef: c,
|
|
2077
2077
|
contentRect: m
|
|
2078
2078
|
} = It();
|
|
2079
2079
|
zt(() => {
|
|
2080
|
-
c.value =
|
|
2080
|
+
c.value = o.value;
|
|
2081
2081
|
});
|
|
2082
|
-
const v = I(() =>
|
|
2082
|
+
const v = I(() => o.value === document.documentElement ? t.height.value : m.value?.height || parseInt(e.height) || 0), y = I(() => !!(o.value && r.value && v.value && n.value));
|
|
2083
2083
|
let h = Array.from({
|
|
2084
2084
|
length: a.value.length
|
|
2085
2085
|
}), p = Array.from({
|
|
@@ -2127,19 +2127,19 @@ function Ha(e, a) {
|
|
|
2127
2127
|
});
|
|
2128
2128
|
let ne = -1;
|
|
2129
2129
|
function H() {
|
|
2130
|
-
if (!
|
|
2131
|
-
const B =
|
|
2130
|
+
if (!o.value || !r.value) return;
|
|
2131
|
+
const B = o.value.scrollTop, O = performance.now();
|
|
2132
2132
|
O - G > 500 ? (D = Math.sign(B - $), d = r.value.offsetTop) : D = B - $, $ = B, G = O, window.clearTimeout(ne), ne = window.setTimeout(W, 500), ue();
|
|
2133
2133
|
}
|
|
2134
2134
|
function W() {
|
|
2135
|
-
!
|
|
2135
|
+
!o.value || !r.value || (D = 0, G = 0, window.clearTimeout(ne), ue());
|
|
2136
2136
|
}
|
|
2137
2137
|
let K = -1;
|
|
2138
2138
|
function ue() {
|
|
2139
2139
|
cancelAnimationFrame(K), K = requestAnimationFrame(q);
|
|
2140
2140
|
}
|
|
2141
2141
|
function q() {
|
|
2142
|
-
if (!
|
|
2142
|
+
if (!o.value || !v.value || !n.value) return;
|
|
2143
2143
|
const B = $ - d, O = Math.sign(D), k = Math.max(0, B - Lt), f = Ne(V(k), 0, a.value.length), A = B + v.value + Lt, J = Ne(V(A) + 1, f + 1, a.value.length);
|
|
2144
2144
|
if (
|
|
2145
2145
|
// Only update the side we're scrolling towards,
|
|
@@ -2149,18 +2149,18 @@ function Ha(e, a) {
|
|
|
2149
2149
|
const ve = _(l.value) - _(f), ge = _(J) - _(u.value);
|
|
2150
2150
|
Math.max(ve, ge) > Lt ? (l.value = f, u.value = J) : (f <= 0 && (l.value = f), J >= a.value.length && (u.value = J));
|
|
2151
2151
|
}
|
|
2152
|
-
s.value = _(l.value),
|
|
2152
|
+
s.value = _(l.value), i.value = _(a.value.length) - _(u.value);
|
|
2153
2153
|
}
|
|
2154
2154
|
function z(B) {
|
|
2155
2155
|
const O = _(B);
|
|
2156
|
-
!
|
|
2156
|
+
!o.value || B && !O ? P = B : o.value.scrollTop = O;
|
|
2157
2157
|
}
|
|
2158
2158
|
const fe = I(() => a.value.slice(l.value, u.value).map((B, O) => {
|
|
2159
2159
|
const k = O + l.value;
|
|
2160
2160
|
return {
|
|
2161
2161
|
raw: B,
|
|
2162
2162
|
index: k,
|
|
2163
|
-
key:
|
|
2163
|
+
key: Kl(B, e.itemKey, k)
|
|
2164
2164
|
};
|
|
2165
2165
|
}));
|
|
2166
2166
|
return se(a, () => {
|
|
@@ -2173,11 +2173,11 @@ function Ha(e, a) {
|
|
|
2173
2173
|
deep: 1
|
|
2174
2174
|
}), {
|
|
2175
2175
|
calculateVisibleItems: ue,
|
|
2176
|
-
containerRef:
|
|
2176
|
+
containerRef: o,
|
|
2177
2177
|
markerRef: r,
|
|
2178
2178
|
computedItems: fe,
|
|
2179
2179
|
paddingTop: s,
|
|
2180
|
-
paddingBottom:
|
|
2180
|
+
paddingBottom: i,
|
|
2181
2181
|
scrollToIndex: z,
|
|
2182
2182
|
handleScroll: H,
|
|
2183
2183
|
handleScrollend: W,
|
|
@@ -2205,20 +2205,20 @@ const Ua = X({
|
|
|
2205
2205
|
...La(),
|
|
2206
2206
|
...he(),
|
|
2207
2207
|
...pt()
|
|
2208
|
-
}, "VVirtualScroll"),
|
|
2208
|
+
}, "VVirtualScroll"), fn = ie()({
|
|
2209
2209
|
name: "VVirtualScroll",
|
|
2210
2210
|
props: Ua(),
|
|
2211
2211
|
setup(e, a) {
|
|
2212
2212
|
let {
|
|
2213
2213
|
slots: t
|
|
2214
2214
|
} = a;
|
|
2215
|
-
const n =
|
|
2215
|
+
const n = Ll("VVirtualScroll"), {
|
|
2216
2216
|
dimensionStyles: l
|
|
2217
2217
|
} = bt(e), {
|
|
2218
2218
|
calculateVisibleItems: u,
|
|
2219
2219
|
containerRef: s,
|
|
2220
|
-
markerRef:
|
|
2221
|
-
handleScroll:
|
|
2220
|
+
markerRef: i,
|
|
2221
|
+
handleScroll: o,
|
|
2222
2222
|
handleScrollend: r,
|
|
2223
2223
|
handleItemResize: d,
|
|
2224
2224
|
scrollToIndex: c,
|
|
@@ -2229,9 +2229,9 @@ const Ua = X({
|
|
|
2229
2229
|
return jt(() => e.renderless, () => {
|
|
2230
2230
|
function h() {
|
|
2231
2231
|
const w = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
|
|
2232
|
-
s.value === document.documentElement ? (document[w]("scroll",
|
|
2232
|
+
s.value === document.documentElement ? (document[w]("scroll", o, {
|
|
2233
2233
|
passive: !0
|
|
2234
|
-
}), document[w]("scrollend", r)) : (s.value?.[w]("scroll",
|
|
2234
|
+
}), document[w]("scrollend", r)) : (s.value?.[w]("scroll", o, {
|
|
2235
2235
|
passive: !0
|
|
2236
2236
|
}), s.value?.[w]("scrollend", r));
|
|
2237
2237
|
}
|
|
@@ -2251,7 +2251,7 @@ const Ua = X({
|
|
|
2251
2251
|
})
|
|
2252
2252
|
}));
|
|
2253
2253
|
return e.renderless ? b(ce, null, [b("div", {
|
|
2254
|
-
ref:
|
|
2254
|
+
ref: i,
|
|
2255
2255
|
class: "v-virtual-scroll__spacer",
|
|
2256
2256
|
style: {
|
|
2257
2257
|
paddingTop: et(m.value)
|
|
@@ -2264,11 +2264,11 @@ const Ua = X({
|
|
|
2264
2264
|
}, null)]) : b("div", {
|
|
2265
2265
|
ref: s,
|
|
2266
2266
|
class: re(["v-virtual-scroll", e.class]),
|
|
2267
|
-
onScrollPassive:
|
|
2267
|
+
onScrollPassive: o,
|
|
2268
2268
|
onScrollend: r,
|
|
2269
2269
|
style: xe([l.value, e.style])
|
|
2270
2270
|
}, [b("div", {
|
|
2271
|
-
ref:
|
|
2271
|
+
ref: i,
|
|
2272
2272
|
class: "v-virtual-scroll__container",
|
|
2273
2273
|
style: {
|
|
2274
2274
|
paddingTop: et(m.value),
|
|
@@ -2281,10 +2281,10 @@ const Ua = X({
|
|
|
2281
2281
|
};
|
|
2282
2282
|
}
|
|
2283
2283
|
});
|
|
2284
|
-
function
|
|
2284
|
+
function mn(e, a) {
|
|
2285
2285
|
const t = ee(!1);
|
|
2286
2286
|
let n;
|
|
2287
|
-
function l(
|
|
2287
|
+
function l(i) {
|
|
2288
2288
|
cancelAnimationFrame(n), t.value = !0, n = requestAnimationFrame(() => {
|
|
2289
2289
|
n = requestAnimationFrame(() => {
|
|
2290
2290
|
t.value = !1;
|
|
@@ -2292,32 +2292,32 @@ function fn(e, a) {
|
|
|
2292
2292
|
});
|
|
2293
2293
|
}
|
|
2294
2294
|
async function u() {
|
|
2295
|
-
await new Promise((
|
|
2295
|
+
await new Promise((i) => requestAnimationFrame(i)), await new Promise((i) => requestAnimationFrame(i)), await new Promise((i) => requestAnimationFrame(i)), await new Promise((i) => {
|
|
2296
2296
|
if (t.value) {
|
|
2297
|
-
const
|
|
2298
|
-
|
|
2297
|
+
const o = se(t, () => {
|
|
2298
|
+
o(), i();
|
|
2299
2299
|
});
|
|
2300
|
-
} else
|
|
2300
|
+
} else i();
|
|
2301
2301
|
});
|
|
2302
2302
|
}
|
|
2303
|
-
async function s(
|
|
2304
|
-
if (
|
|
2305
|
-
const
|
|
2306
|
-
if (!
|
|
2307
|
-
(
|
|
2308
|
-
top:
|
|
2303
|
+
async function s(i) {
|
|
2304
|
+
if (i.key === "Tab" && a.value?.focus(), !["PageDown", "PageUp", "Home", "End"].includes(i.key)) return;
|
|
2305
|
+
const o = e.value?.$el;
|
|
2306
|
+
if (!o) return;
|
|
2307
|
+
(i.key === "Home" || i.key === "End") && o.scrollTo({
|
|
2308
|
+
top: i.key === "Home" ? 0 : o.scrollHeight,
|
|
2309
2309
|
behavior: "smooth"
|
|
2310
2310
|
}), await u();
|
|
2311
|
-
const r =
|
|
2312
|
-
if (
|
|
2313
|
-
const d =
|
|
2311
|
+
const r = o.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");
|
|
2312
|
+
if (i.key === "PageDown" || i.key === "Home") {
|
|
2313
|
+
const d = o.getBoundingClientRect().top;
|
|
2314
2314
|
for (const c of r)
|
|
2315
2315
|
if (c.getBoundingClientRect().top >= d) {
|
|
2316
2316
|
c.focus();
|
|
2317
2317
|
break;
|
|
2318
2318
|
}
|
|
2319
2319
|
} else {
|
|
2320
|
-
const d =
|
|
2320
|
+
const d = o.getBoundingClientRect().bottom;
|
|
2321
2321
|
for (const c of [...r].reverse())
|
|
2322
2322
|
if (c.getBoundingClientRect().bottom <= d) {
|
|
2323
2323
|
c.focus();
|
|
@@ -2330,25 +2330,25 @@ function fn(e, a) {
|
|
|
2330
2330
|
onKeydown: s
|
|
2331
2331
|
};
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function gn(e) {
|
|
2334
2334
|
let {
|
|
2335
2335
|
groups: a,
|
|
2336
2336
|
onLeave: t
|
|
2337
2337
|
} = e;
|
|
2338
|
-
function n(
|
|
2339
|
-
return
|
|
2338
|
+
function n(i) {
|
|
2339
|
+
return i.type === "list" ? i.contentRef.value?.$el : i.contentRef.value;
|
|
2340
2340
|
}
|
|
2341
|
-
function l(
|
|
2342
|
-
const
|
|
2343
|
-
return
|
|
2341
|
+
function l(i) {
|
|
2342
|
+
const o = n(i);
|
|
2343
|
+
return o ? _l(o) : [];
|
|
2344
2344
|
}
|
|
2345
|
-
function u(
|
|
2346
|
-
const
|
|
2345
|
+
function u(i) {
|
|
2346
|
+
const o = i.target, r = i.shiftKey ? "backward" : "forward", d = a.map(l), c = a.map((v) => v.type === "list" ? v.contentRef.value?.$el : v.contentRef.value).findIndex((v) => v?.contains(o)), m = s(d, c, r, o);
|
|
2347
2347
|
if (m === null) {
|
|
2348
2348
|
const v = a[c], y = d[c];
|
|
2349
|
-
(v.type === "list" || (r === "forward" ? y.at(-1) ===
|
|
2349
|
+
(v.type === "list" || (r === "forward" ? y.at(-1) === i.target : y.at(0) === i.target)) && t();
|
|
2350
2350
|
} else {
|
|
2351
|
-
|
|
2351
|
+
i.preventDefault(), i.stopImmediatePropagation();
|
|
2352
2352
|
const v = a[m];
|
|
2353
2353
|
if (v.type === "list" && Ut(v.displayItemsCount) > 0)
|
|
2354
2354
|
v.contentRef.value?.focus(0);
|
|
@@ -2358,14 +2358,14 @@ function mn(e) {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
|
-
function s(
|
|
2362
|
-
const c = a[
|
|
2361
|
+
function s(i, o, r, d) {
|
|
2362
|
+
const c = a[o], m = i[o];
|
|
2363
2363
|
if (c.type !== "list" && !(r === "forward" ? m.at(-1) === d : m.at(0) === d))
|
|
2364
2364
|
return null;
|
|
2365
2365
|
const v = r === "forward" ? 1 : -1;
|
|
2366
|
-
for (let y =
|
|
2366
|
+
for (let y = o + v; y >= 0 && y < a.length; y += v) {
|
|
2367
2367
|
const h = a[y];
|
|
2368
|
-
if (
|
|
2368
|
+
if (i[y].length > 0 || h.type === "list" && Ut(h.displayItemsCount) > 0)
|
|
2369
2369
|
return y;
|
|
2370
2370
|
}
|
|
2371
2371
|
return null;
|
|
@@ -2388,7 +2388,7 @@ 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
|
}
|
|
2391
|
-
const
|
|
2391
|
+
const yn = X({
|
|
2392
2392
|
customFilter: Function,
|
|
2393
2393
|
customKeyFilter: Object,
|
|
2394
2394
|
filterKeys: [Array, String],
|
|
@@ -2401,16 +2401,16 @@ const gn = X({
|
|
|
2401
2401
|
function ja(e, a, t) {
|
|
2402
2402
|
const n = [], l = t?.default ?? Ka, u = t?.filterKeys ? Te(t.filterKeys) : !1, s = Object.keys(t?.customKeyFilter ?? {}).length;
|
|
2403
2403
|
if (!e?.length) return n;
|
|
2404
|
-
let
|
|
2405
|
-
e: for (let
|
|
2406
|
-
const [r, d = r] = Te(e[
|
|
2404
|
+
let i = [];
|
|
2405
|
+
e: for (let o = 0; o < e.length; o++) {
|
|
2406
|
+
const [r, d = r] = Te(e[o]), c = {}, m = {};
|
|
2407
2407
|
let v = -1;
|
|
2408
2408
|
if ((a || s > 0) && !t?.noFilter) {
|
|
2409
2409
|
let y = !1;
|
|
2410
2410
|
if (typeof r == "object") {
|
|
2411
2411
|
if (r.type === "divider" || r.type === "subheader") {
|
|
2412
|
-
(
|
|
2413
|
-
index:
|
|
2412
|
+
(i.at(-1)?.type !== "divider" || r.type !== "subheader") && (i = []), i.push({
|
|
2413
|
+
index: o,
|
|
2414
2414
|
matches: {},
|
|
2415
2415
|
type: r.type
|
|
2416
2416
|
});
|
|
@@ -2419,7 +2419,7 @@ function ja(e, a, t) {
|
|
|
2419
2419
|
const w = u || Object.keys(d);
|
|
2420
2420
|
y = w.length === s;
|
|
2421
2421
|
for (const P of w) {
|
|
2422
|
-
const C =
|
|
2422
|
+
const C = Kl(d, P), F = t?.customKeyFilter?.[P];
|
|
2423
2423
|
if (v = F ? F(C, a, r) : l(C, a, r), v !== -1 && v !== !1)
|
|
2424
2424
|
F ? c[P] = Ht(v, a) : m[P] = Ht(v, a);
|
|
2425
2425
|
else if (t?.filterMode === "every")
|
|
@@ -2430,8 +2430,8 @@ function ja(e, a, t) {
|
|
|
2430
2430
|
const h = Object.keys(m).length, p = Object.keys(c).length;
|
|
2431
2431
|
if (!h && !p || t?.filterMode === "union" && p !== s && !h || t?.filterMode === "intersection" && (p !== s || !h && s > 0 && !y)) continue;
|
|
2432
2432
|
}
|
|
2433
|
-
|
|
2434
|
-
index:
|
|
2433
|
+
i.length && (n.push(...i), i = []), n.push({
|
|
2434
|
+
index: o,
|
|
2435
2435
|
matches: {
|
|
2436
2436
|
...m,
|
|
2437
2437
|
...c
|
|
@@ -2440,19 +2440,19 @@ function ja(e, a, t) {
|
|
|
2440
2440
|
}
|
|
2441
2441
|
return n;
|
|
2442
2442
|
}
|
|
2443
|
-
function
|
|
2444
|
-
const l = ee([]), u = ee(/* @__PURE__ */ new Map()), s = I(() => n?.transform ?
|
|
2443
|
+
function hn(e, a, t, n) {
|
|
2444
|
+
const l = ee([]), u = ee(/* @__PURE__ */ new Map()), s = I(() => n?.transform ? N(a).map((o) => [o, n.transform(o)]) : N(a));
|
|
2445
2445
|
zt(() => {
|
|
2446
|
-
const
|
|
2446
|
+
const o = typeof t == "function" ? t() : N(t), r = typeof o != "string" && typeof o != "number" ? "" : String(o), d = ja(s.value, r, {
|
|
2447
2447
|
customKeyFilter: {
|
|
2448
2448
|
...e.customKeyFilter,
|
|
2449
|
-
...
|
|
2449
|
+
...N(n?.customKeyFilter)
|
|
2450
2450
|
},
|
|
2451
2451
|
default: e.customFilter,
|
|
2452
2452
|
filterKeys: e.filterKeys,
|
|
2453
2453
|
filterMode: e.filterMode,
|
|
2454
2454
|
noFilter: e.noFilter
|
|
2455
|
-
}), c =
|
|
2455
|
+
}), c = N(a), m = [], v = /* @__PURE__ */ new Map();
|
|
2456
2456
|
d.forEach((y) => {
|
|
2457
2457
|
let {
|
|
2458
2458
|
index: h,
|
|
@@ -2462,16 +2462,16 @@ function yn(e, a, t, n) {
|
|
|
2462
2462
|
m.push(w), v.set(w.value, p);
|
|
2463
2463
|
}), l.value = m, u.value = v;
|
|
2464
2464
|
});
|
|
2465
|
-
function o
|
|
2466
|
-
return u.value.get(
|
|
2465
|
+
function i(o) {
|
|
2466
|
+
return u.value.get(o.value);
|
|
2467
2467
|
}
|
|
2468
2468
|
return {
|
|
2469
2469
|
filteredItems: l,
|
|
2470
2470
|
filteredMatches: u,
|
|
2471
|
-
getMatches:
|
|
2471
|
+
getMatches: i
|
|
2472
2472
|
};
|
|
2473
2473
|
}
|
|
2474
|
-
function
|
|
2474
|
+
function bn(e, a, t) {
|
|
2475
2475
|
return t == null || !t.length ? a : t.map((n, l) => {
|
|
2476
2476
|
const u = l === 0 ? 0 : t[l - 1][1], s = [b("span", {
|
|
2477
2477
|
class: re(`${e}__unmask`)
|
|
@@ -2493,7 +2493,7 @@ const Ga = X({
|
|
|
2493
2493
|
default: "$vuetify.open"
|
|
2494
2494
|
}
|
|
2495
2495
|
}, "autocomplete");
|
|
2496
|
-
function
|
|
2496
|
+
function pn(e, a) {
|
|
2497
2497
|
const t = Xe(), n = I(() => `menu-${t}`), l = R(() => Ut(a)), u = R(() => n.value);
|
|
2498
2498
|
return {
|
|
2499
2499
|
menuId: n,
|
|
@@ -2501,7 +2501,7 @@ function bn(e, a) {
|
|
|
2501
2501
|
ariaControls: u
|
|
2502
2502
|
};
|
|
2503
2503
|
}
|
|
2504
|
-
const
|
|
2504
|
+
const kn = X({
|
|
2505
2505
|
chips: Boolean,
|
|
2506
2506
|
closableChips: Boolean,
|
|
2507
2507
|
eager: Boolean,
|
|
@@ -2532,17 +2532,17 @@ const pn = X({
|
|
|
2532
2532
|
})
|
|
2533
2533
|
}, "Select"), Wa = X({
|
|
2534
2534
|
search: String,
|
|
2535
|
-
...
|
|
2535
|
+
...yn({
|
|
2536
2536
|
filterKeys: ["title"]
|
|
2537
2537
|
}),
|
|
2538
|
-
...
|
|
2538
|
+
...kn(),
|
|
2539
2539
|
...Ye(Mt({
|
|
2540
2540
|
modelValue: null,
|
|
2541
2541
|
role: "combobox"
|
|
2542
2542
|
}), ["validationValue", "dirty"]),
|
|
2543
2543
|
...Bt({
|
|
2544
2544
|
transition: {
|
|
2545
|
-
component:
|
|
2545
|
+
component: Jl
|
|
2546
2546
|
}
|
|
2547
2547
|
})
|
|
2548
2548
|
}, "VSelect"), Bo = ie()({
|
|
@@ -2560,17 +2560,17 @@ const pn = X({
|
|
|
2560
2560
|
} = a;
|
|
2561
2561
|
const {
|
|
2562
2562
|
t: n
|
|
2563
|
-
} = it(), l = j(), u = j(), s = j(),
|
|
2563
|
+
} = it(), l = j(), u = j(), s = j(), i = j(), o = j(), {
|
|
2564
2564
|
items: r,
|
|
2565
2565
|
transformIn: d,
|
|
2566
2566
|
transformOut: c
|
|
2567
|
-
} =
|
|
2567
|
+
} = jl(e), m = Ve(e, "search", ""), {
|
|
2568
2568
|
filteredItems: v,
|
|
2569
2569
|
getMatches: y
|
|
2570
|
-
} =
|
|
2570
|
+
} = hn(e, r, () => m.value), h = Ve(e, "modelValue", [], (x) => d(x === null ? [null] : Te(x)), (x) => {
|
|
2571
2571
|
const Q = c(x);
|
|
2572
2572
|
return e.multiple ? Q : Q[0] ?? null;
|
|
2573
|
-
}), p = I(() => typeof e.counterValue == "function" ? e.counterValue(h.value) : typeof e.counterValue == "number" ? e.counterValue : h.value.length), w = $t(e), P =
|
|
2573
|
+
}), p = I(() => typeof e.counterValue == "function" ? e.counterValue(h.value) : typeof e.counterValue == "number" ? e.counterValue : h.value.length), w = $t(e), P = vn(e), C = I(() => h.value.map((x) => x.value)), F = ee(!1), E = R(() => e.closableChips && !w.isReadonly.value && !w.isDisabled.value), {
|
|
2574
2574
|
InputIcon: U
|
|
2575
2575
|
} = Ot(e);
|
|
2576
2576
|
let _ = "", V = 0, $;
|
|
@@ -2586,16 +2586,16 @@ const pn = X({
|
|
|
2586
2586
|
menuId: W,
|
|
2587
2587
|
ariaExpanded: K,
|
|
2588
2588
|
ariaControls: ue
|
|
2589
|
-
} =
|
|
2589
|
+
} = pn(e, H), q = I(() => ({
|
|
2590
2590
|
...e.menuProps,
|
|
2591
2591
|
activatorProps: {
|
|
2592
2592
|
...e.menuProps?.activatorProps || {},
|
|
2593
2593
|
"aria-haspopup": "listbox"
|
|
2594
2594
|
// Set aria-haspopup to 'listbox'
|
|
2595
2595
|
}
|
|
2596
|
-
})), z = j(), fe =
|
|
2596
|
+
})), z = j(), fe = mn(z, l), {
|
|
2597
2597
|
onTabKeydown: B
|
|
2598
|
-
} =
|
|
2598
|
+
} = gn({
|
|
2599
2599
|
groups: [{
|
|
2600
2600
|
type: "element",
|
|
2601
2601
|
contentRef: s
|
|
@@ -2605,7 +2605,7 @@ const pn = X({
|
|
|
2605
2605
|
displayItemsCount: () => D.value.length
|
|
2606
2606
|
}, {
|
|
2607
2607
|
type: "element",
|
|
2608
|
-
contentRef:
|
|
2608
|
+
contentRef: i
|
|
2609
2609
|
}],
|
|
2610
2610
|
onLeave: () => {
|
|
2611
2611
|
H.value = !1, l.value?.focus();
|
|
@@ -2682,7 +2682,7 @@ const pn = X({
|
|
|
2682
2682
|
return -1;
|
|
2683
2683
|
}
|
|
2684
2684
|
function Ie() {
|
|
2685
|
-
if (e.eager &&
|
|
2685
|
+
if (e.eager && o.value?.calculateVisibleItems(), z.value && F.value) {
|
|
2686
2686
|
const x = be();
|
|
2687
2687
|
z.value.focus(x >= 0 ? x : "first");
|
|
2688
2688
|
}
|
|
@@ -2707,7 +2707,7 @@ const pn = X({
|
|
|
2707
2707
|
if (!e.hideSelected && H.value && h.value.length) {
|
|
2708
2708
|
const x = ge();
|
|
2709
2709
|
ct && !e.noAutoScroll && window.requestAnimationFrame(() => {
|
|
2710
|
-
x >= 0 &&
|
|
2710
|
+
x >= 0 && o.value?.scrollToIndex(x);
|
|
2711
2711
|
});
|
|
2712
2712
|
}
|
|
2713
2713
|
}), se(r, (x, Q) => {
|
|
@@ -2717,7 +2717,7 @@ const pn = X({
|
|
|
2717
2717
|
search: m,
|
|
2718
2718
|
filteredItems: v.value
|
|
2719
2719
|
};
|
|
2720
|
-
return g(Je,
|
|
2720
|
+
return g(Je, L({
|
|
2721
2721
|
ref: l
|
|
2722
2722
|
}, Be, {
|
|
2723
2723
|
modelValue: h.value.map((S) => S.props.title).join(", "),
|
|
@@ -2758,7 +2758,7 @@ const pn = X({
|
|
|
2758
2758
|
key: M.value,
|
|
2759
2759
|
value: M.value,
|
|
2760
2760
|
selected: C.value.includes(M.value)
|
|
2761
|
-
}, null))]), g(
|
|
2761
|
+
}, null))]), g(Gl, L({
|
|
2762
2762
|
id: W.value,
|
|
2763
2763
|
ref: u,
|
|
2764
2764
|
modelValue: H.value,
|
|
@@ -2781,7 +2781,7 @@ const pn = X({
|
|
|
2781
2781
|
}, {
|
|
2782
2782
|
default: () => [t["menu-header"] && b("header", {
|
|
2783
2783
|
ref: s
|
|
2784
|
-
}, [t["menu-header"](we)]), Q && g(al,
|
|
2784
|
+
}, [t["menu-header"](we)]), Q && g(al, L({
|
|
2785
2785
|
key: "select-list",
|
|
2786
2786
|
ref: z,
|
|
2787
2787
|
selected: C.value,
|
|
@@ -2796,8 +2796,8 @@ const pn = X({
|
|
|
2796
2796
|
default: () => [t["prepend-item"]?.(), !D.value.length && !e.hideNoData && (t["no-data"]?.() ?? g(vt, {
|
|
2797
2797
|
key: "no-data",
|
|
2798
2798
|
title: n(e.noDataText)
|
|
2799
|
-
}, null)), g(
|
|
2800
|
-
ref:
|
|
2799
|
+
}, null)), g(fn, {
|
|
2800
|
+
ref: o,
|
|
2801
2801
|
renderless: !0,
|
|
2802
2802
|
items: D.value,
|
|
2803
2803
|
itemKey: "value"
|
|
@@ -2808,7 +2808,7 @@ const pn = X({
|
|
|
2808
2808
|
index: le,
|
|
2809
2809
|
itemRef: Re
|
|
2810
2810
|
} = M;
|
|
2811
|
-
const ae = Un(T.props), Z =
|
|
2811
|
+
const ae = Un(T.props), Z = L(T.props, {
|
|
2812
2812
|
ref: Re,
|
|
2813
2813
|
key: T.value,
|
|
2814
2814
|
onClick: () => J(T, null),
|
|
@@ -2818,25 +2818,25 @@ const pn = X({
|
|
|
2818
2818
|
return T.type === "divider" ? t.divider?.({
|
|
2819
2819
|
props: T.raw,
|
|
2820
2820
|
index: le
|
|
2821
|
-
}) ?? g(ze,
|
|
2821
|
+
}) ?? g(ze, L(T.props, {
|
|
2822
2822
|
key: `divider-${le}`
|
|
2823
2823
|
}), null) : T.type === "subheader" ? t.subheader?.({
|
|
2824
2824
|
props: T.raw,
|
|
2825
2825
|
index: le
|
|
2826
|
-
}) ?? g(
|
|
2826
|
+
}) ?? g(Wl, L(T.props, {
|
|
2827
2827
|
key: `subheader-${le}`
|
|
2828
2828
|
}), null) : t.item?.({
|
|
2829
2829
|
item: T,
|
|
2830
2830
|
index: le,
|
|
2831
2831
|
props: Z
|
|
2832
|
-
}) ?? g(vt,
|
|
2832
|
+
}) ?? g(vt, L(Z, {
|
|
2833
2833
|
role: "option"
|
|
2834
2834
|
}), {
|
|
2835
2835
|
prepend: (me) => {
|
|
2836
2836
|
let {
|
|
2837
2837
|
isSelected: Ze
|
|
2838
2838
|
} = me;
|
|
2839
|
-
return b(ce, null, [e.multiple && !e.hideSelected ? g(
|
|
2839
|
+
return b(ce, null, [e.multiple && !e.hideSelected ? g(un, {
|
|
2840
2840
|
key: T.value,
|
|
2841
2841
|
modelValue: Ze,
|
|
2842
2842
|
ripple: !1,
|
|
@@ -2849,19 +2849,19 @@ const pn = X({
|
|
|
2849
2849
|
icon: ae.prependIcon
|
|
2850
2850
|
}, null)]);
|
|
2851
2851
|
},
|
|
2852
|
-
title: () => m.value ?
|
|
2852
|
+
title: () => m.value ? bn("v-select", T.title, y(T)?.title) : T.title
|
|
2853
2853
|
});
|
|
2854
2854
|
}
|
|
2855
2855
|
}), t["append-item"]?.()]
|
|
2856
2856
|
}), t["menu-footer"] && b("footer", {
|
|
2857
|
-
ref:
|
|
2857
|
+
ref: i
|
|
2858
2858
|
}, [t["menu-footer"](we)])]
|
|
2859
2859
|
})]
|
|
2860
2860
|
}), h.value.map((M, T) => {
|
|
2861
2861
|
function le(me) {
|
|
2862
2862
|
me.stopPropagation(), me.preventDefault(), J(M, !1);
|
|
2863
2863
|
}
|
|
2864
|
-
const Re =
|
|
2864
|
+
const Re = L(mt.filterProps(M.props), {
|
|
2865
2865
|
"onClick:close": le,
|
|
2866
2866
|
onKeydown(me) {
|
|
2867
2867
|
me.key !== "Enter" && me.key !== " " || (me.preventDefault(), me.stopPropagation(), le(me));
|
|
@@ -2871,7 +2871,7 @@ const pn = X({
|
|
|
2871
2871
|
},
|
|
2872
2872
|
modelValue: !0,
|
|
2873
2873
|
"onUpdate:modelValue": void 0
|
|
2874
|
-
}), ae = x ? !!t.chip : !!t.selection, Z = ae ?
|
|
2874
|
+
}), ae = x ? !!t.chip : !!t.selection, Z = ae ? ql(x ? t.chip({
|
|
2875
2875
|
item: M,
|
|
2876
2876
|
index: T,
|
|
2877
2877
|
props: Re
|
|
@@ -2894,7 +2894,7 @@ const pn = X({
|
|
|
2894
2894
|
}
|
|
2895
2895
|
}, {
|
|
2896
2896
|
default: () => [Z]
|
|
2897
|
-
}) : g(mt,
|
|
2897
|
+
}) : g(mt, L({
|
|
2898
2898
|
key: "chip",
|
|
2899
2899
|
closable: E.value,
|
|
2900
2900
|
size: "small",
|
|
@@ -2904,7 +2904,7 @@ const pn = X({
|
|
|
2904
2904
|
class: "v-select__selection-text"
|
|
2905
2905
|
}, [M.title, e.multiple && T < h.value.length - 1 && b("span", {
|
|
2906
2906
|
class: "v-select__selection-comma"
|
|
2907
|
-
}, [
|
|
2907
|
+
}, [Sl(",")])])]);
|
|
2908
2908
|
})]);
|
|
2909
2909
|
},
|
|
2910
2910
|
"append-inner": function() {
|
|
@@ -2936,10 +2936,10 @@ const pn = X({
|
|
|
2936
2936
|
},
|
|
2937
2937
|
clearOnSelect: Boolean,
|
|
2938
2938
|
search: String,
|
|
2939
|
-
...
|
|
2939
|
+
...yn({
|
|
2940
2940
|
filterKeys: ["title"]
|
|
2941
2941
|
}),
|
|
2942
|
-
...
|
|
2942
|
+
...kn(),
|
|
2943
2943
|
...Ye(Mt({
|
|
2944
2944
|
modelValue: null,
|
|
2945
2945
|
role: "combobox"
|
|
@@ -2959,11 +2959,11 @@ const pn = X({
|
|
|
2959
2959
|
} = a;
|
|
2960
2960
|
const {
|
|
2961
2961
|
t: n
|
|
2962
|
-
} = it(), l = j(), u = ee(!1), s = ee(!0),
|
|
2962
|
+
} = it(), l = j(), u = ee(!1), s = ee(!0), i = ee(!1), o = j(), r = j(), d = ee(-1), c = ee(null), {
|
|
2963
2963
|
items: m,
|
|
2964
2964
|
transformIn: v,
|
|
2965
2965
|
transformOut: y
|
|
2966
|
-
} =
|
|
2966
|
+
} = jl(e), {
|
|
2967
2967
|
textColorClasses: h,
|
|
2968
2968
|
textColorStyles: p
|
|
2969
2969
|
} = kt(() => l.value?.color), {
|
|
@@ -2974,18 +2974,18 @@ const pn = X({
|
|
|
2974
2974
|
}), F = I(() => typeof e.counterValue == "function" ? e.counterValue(C.value) : typeof e.counterValue == "number" ? e.counterValue : C.value.length), E = $t(e), {
|
|
2975
2975
|
filteredItems: U,
|
|
2976
2976
|
getMatches: _
|
|
2977
|
-
} =
|
|
2977
|
+
} = hn(e, m, () => c.value ?? (s.value ? "" : P.value)), V = I(() => e.hideSelected && c.value === null ? U.value.filter((S) => !C.value.some((Y) => Y.value === S.value)) : U.value), $ = R(() => e.closableChips && !E.isReadonly.value && !E.isDisabled.value), D = I(() => !!(e.chips || t.chip)), G = I(() => D.value || !!t.selection), ne = I(() => C.value.map((S) => S.props.value)), H = I(() => V.value.find((S) => S.type === "item" && !S.props.disabled)), W = I(() => (e.autoSelectFirst === !0 || e.autoSelectFirst === "exact" && P.value === H.value?.title) && V.value.length > 0 && !s.value && !i.value), K = I(() => e.hideNoData && !V.value.length || E.isReadonly.value || E.isDisabled.value), ue = Ve(e, "menu"), q = I({
|
|
2978
2978
|
get: () => ue.value,
|
|
2979
2979
|
set: (S) => {
|
|
2980
|
-
ue.value && !S &&
|
|
2980
|
+
ue.value && !S && o.value?.ΨopenChildren.size || S && K.value || (ue.value = S);
|
|
2981
2981
|
}
|
|
2982
2982
|
}), {
|
|
2983
2983
|
menuId: z,
|
|
2984
2984
|
ariaExpanded: fe,
|
|
2985
2985
|
ariaControls: B
|
|
2986
|
-
} =
|
|
2986
|
+
} = pn(e, q), O = j(), k = j(), f = j(), A = mn(O, l), {
|
|
2987
2987
|
onTabKeydown: J
|
|
2988
|
-
} =
|
|
2988
|
+
} = gn({
|
|
2989
2989
|
groups: [{
|
|
2990
2990
|
type: "element",
|
|
2991
2991
|
contentRef: k
|
|
@@ -3060,17 +3060,17 @@ const pn = X({
|
|
|
3060
3060
|
}
|
|
3061
3061
|
function x(S) {
|
|
3062
3062
|
u.value = !0, setTimeout(() => {
|
|
3063
|
-
|
|
3063
|
+
i.value = !0;
|
|
3064
3064
|
});
|
|
3065
3065
|
}
|
|
3066
3066
|
function Q(S) {
|
|
3067
|
-
|
|
3067
|
+
i.value = !1, l.value?.$el.contains(S.relatedTarget) || (u.value = !1);
|
|
3068
3068
|
}
|
|
3069
3069
|
function te(S) {
|
|
3070
3070
|
(S == null || S === "" && !e.multiple && !G.value) && (C.value = []);
|
|
3071
3071
|
}
|
|
3072
3072
|
function Be(S) {
|
|
3073
|
-
|
|
3073
|
+
o.value?.contentEl?.contains(S.relatedTarget) && (u.value = !0);
|
|
3074
3074
|
}
|
|
3075
3075
|
const _e = ee(!1);
|
|
3076
3076
|
function we(S) {
|
|
@@ -3109,7 +3109,7 @@ const pn = X({
|
|
|
3109
3109
|
search: P,
|
|
3110
3110
|
filteredItems: U.value
|
|
3111
3111
|
};
|
|
3112
|
-
return g(Je,
|
|
3112
|
+
return g(Je, L({
|
|
3113
3113
|
ref: l
|
|
3114
3114
|
}, M, {
|
|
3115
3115
|
modelValue: P.value,
|
|
@@ -3141,9 +3141,9 @@ const pn = X({
|
|
|
3141
3141
|
let {
|
|
3142
3142
|
id: Re
|
|
3143
3143
|
} = le;
|
|
3144
|
-
return b(ce, null, [g(
|
|
3144
|
+
return b(ce, null, [g(Gl, L({
|
|
3145
3145
|
id: z.value,
|
|
3146
|
-
ref:
|
|
3146
|
+
ref: o,
|
|
3147
3147
|
modelValue: q.value,
|
|
3148
3148
|
"onUpdate:modelValue": (ae) => q.value = ae,
|
|
3149
3149
|
activator: "parent",
|
|
@@ -3162,7 +3162,7 @@ const pn = X({
|
|
|
3162
3162
|
}, {
|
|
3163
3163
|
default: () => [t["menu-header"] && b("header", {
|
|
3164
3164
|
ref: k
|
|
3165
|
-
}, [t["menu-header"](T)]), S && g(al,
|
|
3165
|
+
}, [t["menu-header"](T)]), S && g(al, L({
|
|
3166
3166
|
key: "autocomplete-list",
|
|
3167
3167
|
ref: O,
|
|
3168
3168
|
filterable: !0,
|
|
@@ -3180,7 +3180,7 @@ const pn = X({
|
|
|
3180
3180
|
default: () => [t["prepend-item"]?.(), !V.value.length && !e.hideNoData && (t["no-data"]?.() ?? g(vt, {
|
|
3181
3181
|
key: "no-data",
|
|
3182
3182
|
title: n(e.noDataText)
|
|
3183
|
-
}, null)), g(
|
|
3183
|
+
}, null)), g(fn, {
|
|
3184
3184
|
ref: r,
|
|
3185
3185
|
renderless: !0,
|
|
3186
3186
|
items: V.value,
|
|
@@ -3192,7 +3192,7 @@ const pn = X({
|
|
|
3192
3192
|
index: me,
|
|
3193
3193
|
itemRef: Ze
|
|
3194
3194
|
} = ae;
|
|
3195
|
-
const Ge =
|
|
3195
|
+
const Ge = L(Z.props, {
|
|
3196
3196
|
ref: Ze,
|
|
3197
3197
|
key: Z.value,
|
|
3198
3198
|
active: W.value && Z === H.value ? !0 : void 0,
|
|
@@ -3203,38 +3203,38 @@ const pn = X({
|
|
|
3203
3203
|
return Z.type === "divider" ? t.divider?.({
|
|
3204
3204
|
props: Z.raw,
|
|
3205
3205
|
index: me
|
|
3206
|
-
}) ?? g(ze,
|
|
3206
|
+
}) ?? g(ze, L(Z.props, {
|
|
3207
3207
|
key: `divider-${me}`
|
|
3208
3208
|
}), null) : Z.type === "subheader" ? t.subheader?.({
|
|
3209
3209
|
props: Z.raw,
|
|
3210
3210
|
index: me
|
|
3211
|
-
}) ?? g(
|
|
3211
|
+
}) ?? g(Wl, L(Z.props, {
|
|
3212
3212
|
key: `subheader-${me}`
|
|
3213
3213
|
}), null) : t.item?.({
|
|
3214
3214
|
item: Z,
|
|
3215
3215
|
index: me,
|
|
3216
3216
|
props: Ge
|
|
3217
|
-
}) ?? g(vt,
|
|
3217
|
+
}) ?? g(vt, L(Ge, {
|
|
3218
3218
|
role: "option"
|
|
3219
3219
|
}), {
|
|
3220
3220
|
prepend: (st) => {
|
|
3221
3221
|
let {
|
|
3222
3222
|
isSelected: Ae
|
|
3223
3223
|
} = st;
|
|
3224
|
-
return b(ce, null, [e.multiple && !e.hideSelected ? g(
|
|
3224
|
+
return b(ce, null, [e.multiple && !e.hideSelected ? g(un, {
|
|
3225
3225
|
key: Z.value,
|
|
3226
3226
|
modelValue: Ae,
|
|
3227
3227
|
ripple: !1,
|
|
3228
3228
|
tabindex: "-1",
|
|
3229
3229
|
"aria-hidden": !0,
|
|
3230
|
-
onClick: (
|
|
3230
|
+
onClick: (In) => In.preventDefault()
|
|
3231
3231
|
}, null) : void 0, Z.props.prependAvatar && g(nt, {
|
|
3232
3232
|
image: Z.props.prependAvatar
|
|
3233
3233
|
}, null), Z.props.prependIcon && g(Se, {
|
|
3234
3234
|
icon: Z.props.prependIcon
|
|
3235
3235
|
}, null)]);
|
|
3236
3236
|
},
|
|
3237
|
-
title: () => s.value ? Z.title :
|
|
3237
|
+
title: () => s.value ? Z.title : bn("v-autocomplete", Z.title, _(Z)?.title)
|
|
3238
3238
|
});
|
|
3239
3239
|
}
|
|
3240
3240
|
}), t["append-item"]?.()]
|
|
@@ -3246,7 +3246,7 @@ const pn = X({
|
|
|
3246
3246
|
function me(Ae) {
|
|
3247
3247
|
Ae.stopPropagation(), Ae.preventDefault(), we(ae, !1);
|
|
3248
3248
|
}
|
|
3249
|
-
const Ze =
|
|
3249
|
+
const Ze = L(mt.filterProps(ae.props), {
|
|
3250
3250
|
"onClick:close": me,
|
|
3251
3251
|
onKeydown(Ae) {
|
|
3252
3252
|
Ae.key !== "Enter" && Ae.key !== " " || (Ae.preventDefault(), Ae.stopPropagation(), me(Ae));
|
|
@@ -3256,7 +3256,7 @@ const pn = X({
|
|
|
3256
3256
|
},
|
|
3257
3257
|
modelValue: !0,
|
|
3258
3258
|
"onUpdate:modelValue": void 0
|
|
3259
|
-
}), Ge = D.value ? !!t.chip : !!t.selection, st = Ge ?
|
|
3259
|
+
}), Ge = D.value ? !!t.chip : !!t.selection, st = Ge ? ql(D.value ? t.chip({
|
|
3260
3260
|
item: ae,
|
|
3261
3261
|
index: Z,
|
|
3262
3262
|
props: Ze
|
|
@@ -3280,7 +3280,7 @@ const pn = X({
|
|
|
3280
3280
|
}
|
|
3281
3281
|
}, {
|
|
3282
3282
|
default: () => [st]
|
|
3283
|
-
}) : g(mt,
|
|
3283
|
+
}) : g(mt, L({
|
|
3284
3284
|
key: "chip",
|
|
3285
3285
|
closable: $.value,
|
|
3286
3286
|
size: "small",
|
|
@@ -3290,7 +3290,7 @@ const pn = X({
|
|
|
3290
3290
|
class: "v-autocomplete__selection-text"
|
|
3291
3291
|
}, [ae.title, e.multiple && Z < C.value.length - 1 && b("span", {
|
|
3292
3292
|
class: "v-autocomplete__selection-comma"
|
|
3293
|
-
}, [
|
|
3293
|
+
}, [Sl(",")])])]);
|
|
3294
3294
|
})]);
|
|
3295
3295
|
},
|
|
3296
3296
|
"append-inner": function() {
|
|
@@ -3365,9 +3365,9 @@ const pn = X({
|
|
|
3365
3365
|
t: u
|
|
3366
3366
|
} = it(), {
|
|
3367
3367
|
textColorClasses: s,
|
|
3368
|
-
textColorStyles:
|
|
3368
|
+
textColorStyles: i
|
|
3369
3369
|
} = kt(() => e.textColor), {
|
|
3370
|
-
themeClasses:
|
|
3370
|
+
themeClasses: o
|
|
3371
3371
|
} = Gn(), {
|
|
3372
3372
|
locationStyles: r
|
|
3373
3373
|
} = tl(e, !0, (c) => (e.floating ? e.dot ? 2 : 4 : e.dot ? 8 : 12) + (["top", "bottom"].includes(c) ? Number(e.offsetY ?? 0) : ["left", "right"].includes(c) ? Number(e.offsetX ?? 0) : 0)), {
|
|
@@ -3375,7 +3375,7 @@ const pn = X({
|
|
|
3375
3375
|
} = bt(e);
|
|
3376
3376
|
return de(() => {
|
|
3377
3377
|
const c = Number(e.content), m = !e.max || isNaN(c) ? e.content : c <= Number(e.max) ? c : `${e.max}+`, [v, y] = Wn(a.attrs, ["aria-atomic", "aria-label", "aria-live", "role", "title"]);
|
|
3378
|
-
return g(e.tag,
|
|
3378
|
+
return g(e.tag, L({
|
|
3379
3379
|
class: ["v-badge", {
|
|
3380
3380
|
"v-badge--bordered": e.bordered,
|
|
3381
3381
|
"v-badge--dot": e.dot,
|
|
@@ -3390,9 +3390,9 @@ const pn = X({
|
|
|
3390
3390
|
}, [a.slots.default?.(), g(nl, {
|
|
3391
3391
|
transition: e.transition
|
|
3392
3392
|
}, {
|
|
3393
|
-
default: () => [Ue(b("span",
|
|
3394
|
-
class: ["v-badge__badge",
|
|
3395
|
-
style: [n.value,
|
|
3393
|
+
default: () => [Ue(b("span", L({
|
|
3394
|
+
class: ["v-badge__badge", o.value, t.value, l.value, s.value],
|
|
3395
|
+
style: [n.value, i.value, d.value, e.inline ? {} : r.value],
|
|
3396
3396
|
"aria-atomic": "true",
|
|
3397
3397
|
"aria-label": u(e.label, c),
|
|
3398
3398
|
"aria-live": "polite",
|
|
@@ -3412,12 +3412,12 @@ const pn = X({
|
|
|
3412
3412
|
origin: "center center",
|
|
3413
3413
|
scrollStrategy: "block",
|
|
3414
3414
|
transition: {
|
|
3415
|
-
component:
|
|
3415
|
+
component: Jl
|
|
3416
3416
|
},
|
|
3417
3417
|
zIndex: 2400,
|
|
3418
3418
|
retainFocus: !0
|
|
3419
3419
|
}), ["disableInitialFocus"])
|
|
3420
|
-
}, "VDialog"),
|
|
3420
|
+
}, "VDialog"), Sn = ie()({
|
|
3421
3421
|
name: "VDialog",
|
|
3422
3422
|
props: Qa(),
|
|
3423
3423
|
emits: {
|
|
@@ -3433,12 +3433,12 @@ const pn = X({
|
|
|
3433
3433
|
const l = Ve(e, "modelValue"), {
|
|
3434
3434
|
scopeId: u
|
|
3435
3435
|
} = qn(), s = j();
|
|
3436
|
-
function
|
|
3436
|
+
function i() {
|
|
3437
3437
|
t("afterEnter"), (e.scrim || e.retainFocus) && s.value?.contentEl && !s.value.contentEl.contains(document.activeElement) && s.value.contentEl.focus({
|
|
3438
3438
|
preventScroll: !0
|
|
3439
3439
|
});
|
|
3440
3440
|
}
|
|
3441
|
-
function
|
|
3441
|
+
function o() {
|
|
3442
3442
|
t("afterLeave");
|
|
3443
3443
|
}
|
|
3444
3444
|
return se(l, async (r) => {
|
|
@@ -3446,12 +3446,12 @@ const pn = X({
|
|
|
3446
3446
|
preventScroll: !0
|
|
3447
3447
|
}));
|
|
3448
3448
|
}), de(() => {
|
|
3449
|
-
const r = vl.filterProps(e), d =
|
|
3449
|
+
const r = vl.filterProps(e), d = L({
|
|
3450
3450
|
"aria-haspopup": "dialog"
|
|
3451
|
-
}, e.activatorProps), c =
|
|
3451
|
+
}, e.activatorProps), c = L({
|
|
3452
3452
|
tabindex: -1
|
|
3453
3453
|
}, e.contentProps);
|
|
3454
|
-
return g(vl,
|
|
3454
|
+
return g(vl, L({
|
|
3455
3455
|
ref: s,
|
|
3456
3456
|
class: ["v-dialog", {
|
|
3457
3457
|
"v-dialog--fullscreen": e.fullscreen,
|
|
@@ -3469,8 +3469,8 @@ const pn = X({
|
|
|
3469
3469
|
maxHeight: e.fullscreen ? void 0 : e.maxHeight,
|
|
3470
3470
|
maxWidth: e.fullscreen ? void 0 : e.maxWidth,
|
|
3471
3471
|
role: "dialog",
|
|
3472
|
-
onAfterEnter:
|
|
3473
|
-
onAfterLeave:
|
|
3472
|
+
onAfterEnter: i,
|
|
3473
|
+
onAfterLeave: o
|
|
3474
3474
|
}, u), {
|
|
3475
3475
|
activator: n.activator,
|
|
3476
3476
|
default: function() {
|
|
@@ -3488,7 +3488,7 @@ const pn = X({
|
|
|
3488
3488
|
}), Za = X({
|
|
3489
3489
|
...he(),
|
|
3490
3490
|
...Oe()
|
|
3491
|
-
}, "VCardActions"),
|
|
3491
|
+
}, "VCardActions"), Cn = ie()({
|
|
3492
3492
|
name: "VCardActions",
|
|
3493
3493
|
props: Za(),
|
|
3494
3494
|
setup(e, a) {
|
|
@@ -3547,7 +3547,7 @@ const pn = X({
|
|
|
3547
3547
|
slots: t
|
|
3548
3548
|
} = a;
|
|
3549
3549
|
return de(() => {
|
|
3550
|
-
const n = !!(e.prependAvatar || e.prependIcon), l = !!(n || t.prepend), u = !!(e.appendAvatar || e.appendIcon), s = !!(u || t.append),
|
|
3550
|
+
const n = !!(e.prependAvatar || e.prependIcon), l = !!(n || t.prepend), u = !!(e.appendAvatar || e.appendIcon), s = !!(u || t.append), i = !!(e.title != null || t.title), o = !!(e.subtitle != null || t.subtitle);
|
|
3551
3551
|
return g(e.tag, {
|
|
3552
3552
|
class: re(["v-card-item", e.class]),
|
|
3553
3553
|
style: xe(e.style)
|
|
@@ -3578,11 +3578,11 @@ const pn = X({
|
|
|
3578
3578
|
icon: e.prependIcon
|
|
3579
3579
|
}, null)])]), b("div", {
|
|
3580
3580
|
class: "v-card-item__content"
|
|
3581
|
-
}, [
|
|
3581
|
+
}, [i && g(ul, {
|
|
3582
3582
|
key: "title"
|
|
3583
3583
|
}, {
|
|
3584
3584
|
default: () => [t.title?.() ?? Vt(e.title)]
|
|
3585
|
-
}),
|
|
3585
|
+
}), o && g(to, {
|
|
3586
3586
|
key: "subtitle"
|
|
3587
3587
|
}, {
|
|
3588
3588
|
default: () => [t.subtitle?.() ?? Vt(e.subtitle)]
|
|
@@ -3666,17 +3666,17 @@ const pn = X({
|
|
|
3666
3666
|
...ht(),
|
|
3667
3667
|
...pt(),
|
|
3668
3668
|
...Zt(),
|
|
3669
|
-
...
|
|
3669
|
+
...Ul(),
|
|
3670
3670
|
...ll(),
|
|
3671
|
-
...
|
|
3671
|
+
...El(),
|
|
3672
3672
|
...yt(),
|
|
3673
|
-
...
|
|
3673
|
+
...Bl(),
|
|
3674
3674
|
...Oe(),
|
|
3675
3675
|
...He(),
|
|
3676
3676
|
...Xt({
|
|
3677
3677
|
variant: "elevated"
|
|
3678
3678
|
})
|
|
3679
|
-
}, "VCard"),
|
|
3679
|
+
}, "VCard"), Vn = ie()({
|
|
3680
3680
|
name: "VCard",
|
|
3681
3681
|
directives: {
|
|
3682
3682
|
vRipple: lt
|
|
@@ -3693,9 +3693,9 @@ const pn = X({
|
|
|
3693
3693
|
borderClasses: u
|
|
3694
3694
|
} = Yt(e), {
|
|
3695
3695
|
colorClasses: s,
|
|
3696
|
-
colorStyles:
|
|
3697
|
-
variantClasses:
|
|
3698
|
-
} =
|
|
3696
|
+
colorStyles: i,
|
|
3697
|
+
variantClasses: o
|
|
3698
|
+
} = Fl(e), {
|
|
3699
3699
|
densityClasses: r
|
|
3700
3700
|
} = Dt(e), {
|
|
3701
3701
|
dimensionStyles: d
|
|
@@ -3703,27 +3703,27 @@ const pn = X({
|
|
|
3703
3703
|
elevationClasses: c
|
|
3704
3704
|
} = Qt(e), {
|
|
3705
3705
|
loaderClasses: m
|
|
3706
|
-
} =
|
|
3706
|
+
} = Hl(e), {
|
|
3707
3707
|
locationStyles: v
|
|
3708
3708
|
} = tl(e), {
|
|
3709
3709
|
positionClasses: y
|
|
3710
|
-
} =
|
|
3710
|
+
} = Rl(e), {
|
|
3711
3711
|
roundedClasses: h
|
|
3712
|
-
} = gt(e), p =
|
|
3712
|
+
} = gt(e), p = Al(e, t), w = ee(void 0);
|
|
3713
3713
|
return se(() => e.loading, (P, C) => {
|
|
3714
3714
|
w.value = !P && typeof C == "string" ? C : typeof P == "boolean" ? void 0 : P;
|
|
3715
3715
|
}, {
|
|
3716
3716
|
immediate: !0
|
|
3717
3717
|
}), de(() => {
|
|
3718
3718
|
const P = e.link !== !1 && p.isLink.value, C = !e.disabled && e.link !== !1 && (e.link || p.isClickable.value), F = P ? "a" : e.tag, E = !!(n.title || e.title != null), U = !!(n.subtitle || e.subtitle != null), _ = E || U, V = !!(n.append || e.appendAvatar || e.appendIcon), $ = !!(n.prepend || e.prependAvatar || e.prependIcon), D = !!(n.image || e.image), G = _ || $ || V, ne = !!(n.text || e.text != null);
|
|
3719
|
-
return Ue(g(F,
|
|
3719
|
+
return Ue(g(F, L(p.linkProps, {
|
|
3720
3720
|
class: ["v-card", {
|
|
3721
3721
|
"v-card--disabled": e.disabled,
|
|
3722
3722
|
"v-card--flat": e.flat,
|
|
3723
3723
|
"v-card--hover": e.hover && !(e.disabled || e.flat),
|
|
3724
3724
|
"v-card--link": C
|
|
3725
|
-
}, l.value, u.value, s.value, r.value, c.value, m.value, y.value, h.value,
|
|
3726
|
-
style: [
|
|
3725
|
+
}, l.value, u.value, s.value, r.value, c.value, m.value, y.value, h.value, o.value, e.class],
|
|
3726
|
+
style: [i.value, d.value, v.value, {
|
|
3727
3727
|
"--v-card-height": et(e.height)
|
|
3728
3728
|
}, e.style],
|
|
3729
3729
|
onClick: C && p.navigate.value,
|
|
@@ -3745,7 +3745,7 @@ const pn = X({
|
|
|
3745
3745
|
key: "image-img",
|
|
3746
3746
|
cover: !0,
|
|
3747
3747
|
src: e.image
|
|
3748
|
-
}, null)]), g(
|
|
3748
|
+
}, null)]), g(zl, {
|
|
3749
3749
|
name: "v-card",
|
|
3750
3750
|
active: !!e.loading,
|
|
3751
3751
|
color: w.value
|
|
@@ -3769,9 +3769,9 @@ const pn = X({
|
|
|
3769
3769
|
key: "text"
|
|
3770
3770
|
}, {
|
|
3771
3771
|
default: () => [n.text?.() ?? e.text]
|
|
3772
|
-
}), n.default?.(), n.actions && g(
|
|
3772
|
+
}), n.default?.(), n.actions && g(Cn, null, {
|
|
3773
3773
|
default: n.actions
|
|
3774
|
-
}),
|
|
3774
|
+
}), Dl(C, "v-card")]
|
|
3775
3775
|
}), [[lt, C && e.ripple]]);
|
|
3776
3776
|
}), {};
|
|
3777
3777
|
}
|
|
@@ -3781,17 +3781,17 @@ function so(e) {
|
|
|
3781
3781
|
toggleUpDown: a
|
|
3782
3782
|
} = e, t = -1, n = -1;
|
|
3783
3783
|
rt(u);
|
|
3784
|
-
function l(
|
|
3785
|
-
u(), s(
|
|
3786
|
-
n = window.setInterval(() => s(
|
|
3784
|
+
function l(i) {
|
|
3785
|
+
u(), s(i), window.addEventListener("pointerup", u), document.addEventListener("blur", u), t = window.setTimeout(() => {
|
|
3786
|
+
n = window.setInterval(() => s(i), io);
|
|
3787
3787
|
}, uo);
|
|
3788
3788
|
}
|
|
3789
3789
|
function u() {
|
|
3790
3790
|
window.clearTimeout(t), window.clearInterval(n), window.removeEventListener("pointerup", u), document.removeEventListener("blur", u);
|
|
3791
3791
|
}
|
|
3792
3792
|
rt(u);
|
|
3793
|
-
function s(
|
|
3794
|
-
a(
|
|
3793
|
+
function s(i) {
|
|
3794
|
+
a(i === "up");
|
|
3795
3795
|
}
|
|
3796
3796
|
return {
|
|
3797
3797
|
holdStart: l,
|
|
@@ -3852,13 +3852,13 @@ const ro = X({
|
|
|
3852
3852
|
holdStop: u
|
|
3853
3853
|
} = so({
|
|
3854
3854
|
toggleUpDown: G
|
|
3855
|
-
}), s = $t(e),
|
|
3855
|
+
}), s = $t(e), i = I(() => s.isDisabled.value || s.isReadonly.value), o = ee(e.focused), {
|
|
3856
3856
|
decimalSeparator: r
|
|
3857
3857
|
} = it(), d = I(() => e.decimalSeparator?.[0] || r.value);
|
|
3858
3858
|
function c(f) {
|
|
3859
3859
|
let A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.precision, J = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
3860
3860
|
const ve = A == null ? String(f) : f.toFixed(A);
|
|
3861
|
-
if (
|
|
3861
|
+
if (o.value && J)
|
|
3862
3862
|
return Number(ve).toString().replace(".", d.value);
|
|
3863
3863
|
if (e.minFractionDigits === null || A !== null && A < e.minFractionDigits)
|
|
3864
3864
|
return ve.replace(".", d.value);
|
|
@@ -3867,7 +3867,7 @@ const ro = X({
|
|
|
3867
3867
|
}
|
|
3868
3868
|
const m = Ve(e, "modelValue", null, (f) => f ?? null, (f) => f == null ? f ?? null : Ne(Number(f), e.min, e.max)), v = ee(null), y = ee(null);
|
|
3869
3869
|
se(m, (f) => {
|
|
3870
|
-
|
|
3870
|
+
o.value && !i.value && Number(v.value?.replace(d.value, ".")) === f || (f == null ? (v.value = null, y.value = null) : isNaN(f) || (v.value = c(f), y.value = Number(v.value.replace(d.value, "."))));
|
|
3871
3871
|
}, {
|
|
3872
3872
|
immediate: !0
|
|
3873
3873
|
});
|
|
@@ -3885,7 +3885,7 @@ const ro = X({
|
|
|
3885
3885
|
if (y.value === null) return !1;
|
|
3886
3886
|
const f = Number(v.value?.replace(d.value, "."));
|
|
3887
3887
|
return f !== Ne(f, e.min, e.max);
|
|
3888
|
-
}), w = I(() =>
|
|
3888
|
+
}), w = I(() => i.value ? !1 : (m.value ?? 0) + e.step <= e.max), P = I(() => i.value ? !1 : (m.value ?? 0) - e.step >= e.min), C = I(() => e.hideInput ? "stacked" : e.controlVariant), F = R(() => C.value === "split" ? "$plus" : "$collapse"), E = R(() => C.value === "split" ? "$minus" : "$expand"), U = R(() => C.value === "split" ? "default" : "small"), _ = R(() => C.value === "stacked" ? "auto" : "100%"), V = {
|
|
3889
3889
|
props: {
|
|
3890
3890
|
onClick: W,
|
|
3891
3891
|
onPointerup: K,
|
|
@@ -3910,7 +3910,7 @@ const ro = X({
|
|
|
3910
3910
|
}
|
|
3911
3911
|
function G() {
|
|
3912
3912
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
3913
|
-
if (
|
|
3913
|
+
if (i.value) return;
|
|
3914
3914
|
if (m.value == null) {
|
|
3915
3915
|
h.value = c(Ne(0, e.min, e.max));
|
|
3916
3916
|
return;
|
|
@@ -3919,7 +3919,7 @@ const ro = X({
|
|
|
3919
3919
|
e.precision != null && (A = Math.max(A, e.precision)), f ? w.value && (h.value = c(m.value + e.step, A)) : P.value && (h.value = c(m.value - e.step, A));
|
|
3920
3920
|
}
|
|
3921
3921
|
function ne(f) {
|
|
3922
|
-
if (
|
|
3922
|
+
if (i.value || !f.data) return;
|
|
3923
3923
|
const A = f.target, {
|
|
3924
3924
|
value: J,
|
|
3925
3925
|
selectionStart: ve,
|
|
@@ -3950,15 +3950,15 @@ const ro = X({
|
|
|
3950
3950
|
f.currentTarget?.setPointerCapture(f.pointerId), f.preventDefault(), f.stopPropagation(), l("down");
|
|
3951
3951
|
}
|
|
3952
3952
|
function z() {
|
|
3953
|
-
if (
|
|
3953
|
+
if (i.value || !n.value) return;
|
|
3954
3954
|
const f = n.value.value, A = Number(f.replace(d.value, "."));
|
|
3955
3955
|
f && !isNaN(A) ? h.value = c(Ne(A, e.min, e.max)) : h.value = null;
|
|
3956
3956
|
}
|
|
3957
3957
|
function fe() {
|
|
3958
|
-
|
|
3958
|
+
i.value || (h.value = m.value !== null && !isNaN(m.value) ? c(m.value, e.precision, !1) : null);
|
|
3959
3959
|
}
|
|
3960
3960
|
function B() {
|
|
3961
|
-
if (!
|
|
3961
|
+
if (!i.value) {
|
|
3962
3962
|
if (m.value === null || isNaN(m.value)) {
|
|
3963
3963
|
h.value = null;
|
|
3964
3964
|
return;
|
|
@@ -4059,13 +4059,13 @@ const ro = X({
|
|
|
4059
4059
|
}, [ge(), g(ze, {
|
|
4060
4060
|
vertical: !0
|
|
4061
4061
|
}, null)]) : e.reverse && C.value !== "hidden" ? b(ce, null, [be(), Ie()]) : void 0, ut = t["prepend-inner"] || Qe;
|
|
4062
|
-
return g(Je,
|
|
4062
|
+
return g(Je, L({
|
|
4063
4063
|
ref: n
|
|
4064
4064
|
}, J, {
|
|
4065
4065
|
modelValue: h.value,
|
|
4066
4066
|
"onUpdate:modelValue": (x) => h.value = x,
|
|
4067
|
-
focused:
|
|
4068
|
-
"onUpdate:focused": (x) =>
|
|
4067
|
+
focused: o.value,
|
|
4068
|
+
"onUpdate:focused": (x) => o.value = x,
|
|
4069
4069
|
validationValue: m.value,
|
|
4070
4070
|
error: e.error || p.value || void 0,
|
|
4071
4071
|
onBeforeinput: ne,
|
|
@@ -4110,14 +4110,14 @@ const ro = X({
|
|
|
4110
4110
|
select: Ja,
|
|
4111
4111
|
number: co,
|
|
4112
4112
|
datepicker: Ee(
|
|
4113
|
-
() => import("./Datepicker-
|
|
4113
|
+
() => import("./Datepicker-Bg_2UpWO.js")
|
|
4114
4114
|
),
|
|
4115
4115
|
comparison: Ee(
|
|
4116
|
-
() => import("./Comparison-
|
|
4116
|
+
() => import("./Comparison-ClV-Y6zD.js")
|
|
4117
4117
|
)
|
|
4118
|
-
},
|
|
4118
|
+
}, i = I(() => t.headers.filter((r) => r.advancedFilter !== !1 && !r.hidden)), o = (r) => r ? typeof r == "string" ? s[r] : r : s.textfield;
|
|
4119
4119
|
return se(
|
|
4120
|
-
|
|
4120
|
+
i,
|
|
4121
4121
|
(r) => {
|
|
4122
4122
|
r.forEach((d) => {
|
|
4123
4123
|
const c = d.advancedFilter?.key ?? d.key;
|
|
@@ -4130,13 +4130,13 @@ const ro = X({
|
|
|
4130
4130
|
{ immediate: !0 }
|
|
4131
4131
|
), at(async () => {
|
|
4132
4132
|
await t.options.advancedFilters?.onMounted();
|
|
4133
|
-
}), (r, d) => (oe(), pe(
|
|
4133
|
+
}), (r, d) => (oe(), pe(Vn, { rounded: "lg" }, {
|
|
4134
4134
|
default: Ce(() => [
|
|
4135
4135
|
g(ul, { class: "d-flex justify-space-between align-center" }, {
|
|
4136
4136
|
default: Ce(() => [
|
|
4137
4137
|
b("div", vo, Vt(r.$t("$datatables.advancedFilters")), 1),
|
|
4138
4138
|
g(tt, {
|
|
4139
|
-
icon:
|
|
4139
|
+
icon: N(n).header.icons.close,
|
|
4140
4140
|
variant: "text",
|
|
4141
4141
|
onClick: d[0] || (d[0] = (c) => u("closeDialog"))
|
|
4142
4142
|
}, null, 8, ["icon"])
|
|
@@ -4146,12 +4146,12 @@ const ro = X({
|
|
|
4146
4146
|
g(ze),
|
|
4147
4147
|
g(sl, { class: "overflow-auto pt-8" }, {
|
|
4148
4148
|
default: Ce(() => [
|
|
4149
|
-
(oe(!0), Ke(ce, null, Wt(
|
|
4149
|
+
(oe(!0), Ke(ce, null, Wt(N(i), (c, m) => (oe(), Ke("div", {
|
|
4150
4150
|
id: `advanced-filter-${c.key}`,
|
|
4151
4151
|
key: `filter-${m}`,
|
|
4152
4152
|
class: re(`advanced-filter advanced-filter--${c.key}`)
|
|
4153
4153
|
}, [
|
|
4154
|
-
(oe(), pe($e(
|
|
4154
|
+
(oe(), pe($e(o(c.advancedFilter?.component)), L({
|
|
4155
4155
|
modelValue: l.value[c.advancedFilter?.key ?? c.key].value,
|
|
4156
4156
|
"onUpdate:modelValue": (v) => l.value[c.advancedFilter?.key ?? c.key].value = v,
|
|
4157
4157
|
comparison: l.value[c.advancedFilter?.key ?? c.key].comparison,
|
|
@@ -4166,7 +4166,7 @@ const ro = X({
|
|
|
4166
4166
|
_: 1
|
|
4167
4167
|
}),
|
|
4168
4168
|
g(ze, { class: "mt-2" }),
|
|
4169
|
-
g(
|
|
4169
|
+
g(Cn, { class: "my-2 d-flex justify-end" }, {
|
|
4170
4170
|
default: Ce(() => [
|
|
4171
4171
|
g(tt, {
|
|
4172
4172
|
class: "text-none",
|
|
@@ -4224,8 +4224,8 @@ const go = {
|
|
|
4224
4224
|
},
|
|
4225
4225
|
emits: ["update:modelValue"],
|
|
4226
4226
|
setup(e) {
|
|
4227
|
-
const a = Pe("table_props"), t = Pe("busEmits"), n = Rt(), { advancedFiltersState: l } = Et(), u =
|
|
4228
|
-
const m = Object.entries(
|
|
4227
|
+
const a = Pe("table_props"), t = Pe("busEmits"), n = Rt(), { advancedFiltersState: l } = Et(), u = Xl("advancedFilters"), { setData: s } = n, i = Pt(e, "modelValue"), o = j({}), r = () => {
|
|
4228
|
+
const m = Object.entries(o.value).filter(([, v]) => {
|
|
4229
4229
|
const y = v.value;
|
|
4230
4230
|
return Array.isArray(y) || typeof y == "string" ? y.length > 0 : y != null && y !== "";
|
|
4231
4231
|
}).reduce((v, [y, h]) => (v[y] = h, v), {});
|
|
@@ -4233,35 +4233,35 @@ const go = {
|
|
|
4233
4233
|
table_id: a.id,
|
|
4234
4234
|
name: "advancedFilters",
|
|
4235
4235
|
value: { query: pl(m) }
|
|
4236
|
-
}), t("advancedFilters:update", m)),
|
|
4236
|
+
}), t("advancedFilters:update", m)), i.value = !1;
|
|
4237
4237
|
}, d = (m, v) => {
|
|
4238
|
-
m === "save" && (
|
|
4238
|
+
m === "save" && (o.value[v.key] = { comparison: v.comparison, value: v.value }, r());
|
|
4239
4239
|
}, c = u.on(d);
|
|
4240
4240
|
return at(() => {
|
|
4241
|
-
|
|
4241
|
+
o.value = pl(l.value);
|
|
4242
4242
|
}), Pn(c), (m, v) => {
|
|
4243
4243
|
const y = mo, h = ha;
|
|
4244
4244
|
return oe(), Ke("div", null, [
|
|
4245
|
-
g(
|
|
4246
|
-
modelValue:
|
|
4247
|
-
"onUpdate:modelValue": v[1] || (v[1] = (p) =>
|
|
4245
|
+
g(Sn, {
|
|
4246
|
+
modelValue: i.value,
|
|
4247
|
+
"onUpdate:modelValue": v[1] || (v[1] = (p) => i.value = p),
|
|
4248
4248
|
"max-width": "550",
|
|
4249
4249
|
"retain-focus": !1
|
|
4250
4250
|
}, {
|
|
4251
4251
|
default: Ce(({ isActive: p }) => [
|
|
4252
4252
|
g(y, {
|
|
4253
|
-
modelValue:
|
|
4254
|
-
"onUpdate:modelValue": v[0] || (v[0] = (w) => xt(
|
|
4253
|
+
modelValue: N(o),
|
|
4254
|
+
"onUpdate:modelValue": v[0] || (v[0] = (w) => xt(o) ? o.value = w : null),
|
|
4255
4255
|
onSave: r,
|
|
4256
4256
|
onCloseDialog: (w) => p.value = !1
|
|
4257
4257
|
}, null, 8, ["modelValue", "onCloseDialog"])
|
|
4258
4258
|
]),
|
|
4259
4259
|
_: 1
|
|
4260
4260
|
}, 8, ["modelValue"]),
|
|
4261
|
-
Object.keys(
|
|
4261
|
+
Object.keys(N(l)).length ? (oe(), pe(h, {
|
|
4262
4262
|
key: 0,
|
|
4263
|
-
modelValue:
|
|
4264
|
-
"onUpdate:modelValue": v[2] || (v[2] = (p) => xt(
|
|
4263
|
+
modelValue: N(o),
|
|
4264
|
+
"onUpdate:modelValue": v[2] || (v[2] = (p) => xt(o) ? o.value = p : null),
|
|
4265
4265
|
onSave: r
|
|
4266
4266
|
}, null, 8, ["modelValue"])) : Me("", !0)
|
|
4267
4267
|
]);
|
|
@@ -4288,35 +4288,35 @@ const ho = {
|
|
|
4288
4288
|
return (l, u) => {
|
|
4289
4289
|
const s = go;
|
|
4290
4290
|
return oe(), Ke("div", ho, [
|
|
4291
|
-
(oe(!0), Ke(ce, null, Wt(
|
|
4292
|
-
key:
|
|
4291
|
+
(oe(!0), Ke(ce, null, Wt(N(a), (i, o) => (oe(), pe(tt, L({
|
|
4292
|
+
key: o,
|
|
4293
4293
|
icon: "",
|
|
4294
4294
|
variant: "text",
|
|
4295
|
-
color:
|
|
4295
|
+
color: N(n) ? "primary" : "dark",
|
|
4296
4296
|
density: "comfortable"
|
|
4297
|
-
}, { ref_for: !0 },
|
|
4297
|
+
}, { ref_for: !0 }, i), {
|
|
4298
4298
|
default: Ce(() => [
|
|
4299
|
-
|
|
4299
|
+
N(n) ? (oe(), pe(Ya, {
|
|
4300
4300
|
key: 0,
|
|
4301
4301
|
color: "primary",
|
|
4302
|
-
content:
|
|
4302
|
+
content: N(n)
|
|
4303
4303
|
}, {
|
|
4304
4304
|
default: Ce(() => [
|
|
4305
4305
|
g(Se, {
|
|
4306
|
-
icon:
|
|
4306
|
+
icon: i.prependIcon
|
|
4307
4307
|
}, null, 8, ["icon"])
|
|
4308
4308
|
]),
|
|
4309
4309
|
_: 2
|
|
4310
4310
|
}, 1032, ["content"])) : (oe(), pe(Se, {
|
|
4311
4311
|
key: 1,
|
|
4312
|
-
icon:
|
|
4312
|
+
icon: i.prependIcon
|
|
4313
4313
|
}, null, 8, ["icon"]))
|
|
4314
4314
|
]),
|
|
4315
4315
|
_: 2
|
|
4316
4316
|
}, 1040, ["color"]))), 128)),
|
|
4317
4317
|
g(s, {
|
|
4318
|
-
modelValue:
|
|
4319
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
4318
|
+
modelValue: N(t),
|
|
4319
|
+
"onUpdate:modelValue": u[0] || (u[0] = (i) => xt(t) ? t.value = i : null)
|
|
4320
4320
|
}, null, 8, ["modelValue"])
|
|
4321
4321
|
]);
|
|
4322
4322
|
};
|
|
@@ -4330,42 +4330,42 @@ const ho = {
|
|
|
4330
4330
|
responsiveHeader: { type: Boolean }
|
|
4331
4331
|
},
|
|
4332
4332
|
setup(e) {
|
|
4333
|
-
const a = Ee(() => import("./Search-
|
|
4333
|
+
const a = Ee(() => import("./Search-Cp0yrKdI.js")), t = Ee(() => import("./RefreshTable-DRWO4mC8.js")), n = Ee(() => import("./Options-iTd26TLq.js")), l = Ee(() => import("./index-lDtSiB_e.js")), u = Ee(() => import("./index-FryEY3Et.js")), s = Ee(() => import("./index-CQZZydTl.js")), i = Pe("table_props"), o = j(null), r = i.options?.header?.components ?? {};
|
|
4334
4334
|
return (d, c) => {
|
|
4335
4335
|
const m = bo;
|
|
4336
4336
|
return oe(), Ke("div", po, [
|
|
4337
4337
|
e.responsiveHeader ? Me("", !0) : (oe(), pe(m, { key: 0 })),
|
|
4338
|
-
|
|
4338
|
+
N(i).hardFilters.length ? (oe(), pe($e(N(r).hardFilters ?? N(l)), {
|
|
4339
4339
|
key: 1,
|
|
4340
4340
|
id: "header-hardFilters"
|
|
4341
4341
|
})) : Me("", !0),
|
|
4342
|
-
(oe(), pe($e(
|
|
4342
|
+
(oe(), pe($e(N(r).toolbar), { id: "header-toolbar" })),
|
|
4343
4343
|
b("div", ko, [
|
|
4344
|
-
(oe(), pe($e(
|
|
4345
|
-
e.responsiveHeader ? Me("", !0) : (oe(), pe($e(
|
|
4344
|
+
(oe(), pe($e(N(r).search ?? N(a)), { id: "header-search" })),
|
|
4345
|
+
e.responsiveHeader ? Me("", !0) : (oe(), pe($e(N(r).columns ?? N(u)), {
|
|
4346
4346
|
key: 0,
|
|
4347
|
-
"component-refs": { columns:
|
|
4347
|
+
"component-refs": { columns: N(o) }
|
|
4348
4348
|
}, null, 8, ["component-refs"])),
|
|
4349
|
-
e.responsiveHeader ? Me("", !0) : (oe(), pe($e(
|
|
4350
|
-
e.responsiveHeader ? Me("", !0) : (oe(), pe($e(
|
|
4351
|
-
(oe(), pe($e(
|
|
4349
|
+
e.responsiveHeader ? Me("", !0) : (oe(), pe($e(N(r).download ?? N(s)), { key: 1 })),
|
|
4350
|
+
e.responsiveHeader ? Me("", !0) : (oe(), pe($e(N(r).refreshTable ?? N(t)), { key: 2 })),
|
|
4351
|
+
(oe(), pe($e(N(r).options ?? N(n)), { "responsive-header": e.responsiveHeader }, null, 8, ["responsive-header"]))
|
|
4352
4352
|
])
|
|
4353
4353
|
]);
|
|
4354
4354
|
};
|
|
4355
4355
|
}
|
|
4356
4356
|
});
|
|
4357
4357
|
function Co(e) {
|
|
4358
|
-
const a = Rt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, u = j(!1), s = 5,
|
|
4358
|
+
const a = Rt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, u = j(!1), s = 5, i = I(() => t(e.id));
|
|
4359
4359
|
se(
|
|
4360
|
-
|
|
4360
|
+
i,
|
|
4361
4361
|
async (v) => {
|
|
4362
|
-
v.options.hash && await
|
|
4362
|
+
v.options.hash && await o(v);
|
|
4363
4363
|
},
|
|
4364
4364
|
{
|
|
4365
4365
|
deep: !0
|
|
4366
4366
|
}
|
|
4367
4367
|
);
|
|
4368
|
-
const
|
|
4368
|
+
const o = async (v) => {
|
|
4369
4369
|
if (u.value) return;
|
|
4370
4370
|
u.value = !0, await ke();
|
|
4371
4371
|
const y = r(), h = y.findIndex((p) => p.id === e.id);
|
|
@@ -4377,7 +4377,7 @@ function Co(e) {
|
|
|
4377
4377
|
return {
|
|
4378
4378
|
saving: u,
|
|
4379
4379
|
dataStateGet: d,
|
|
4380
|
-
tableDataState:
|
|
4380
|
+
tableDataState: i,
|
|
4381
4381
|
checkTableState: async () => {
|
|
4382
4382
|
const v = localStorage.getItem("datatables-state-v");
|
|
4383
4383
|
parseInt(v) !== parseInt(s) && (localStorage.removeItem("datatables-state"), localStorage.setItem("datatables-state-v", s));
|
|
@@ -4393,7 +4393,7 @@ function Co(e) {
|
|
|
4393
4393
|
}
|
|
4394
4394
|
};
|
|
4395
4395
|
}
|
|
4396
|
-
const
|
|
4396
|
+
const xn = la(() => {
|
|
4397
4397
|
const e = ee({}), a = ee({});
|
|
4398
4398
|
return {
|
|
4399
4399
|
storeOptions: {
|
|
@@ -4418,40 +4418,43 @@ const Vn = la(() => {
|
|
|
4418
4418
|
},
|
|
4419
4419
|
emits: /* @__PURE__ */ qt(["refreshTable", "refetchData", "advancedFilters:update", "hardFilters:update"], ["update:modelValue"]),
|
|
4420
4420
|
setup(e, { expose: a, emit: t }) {
|
|
4421
|
-
const n = Ee(() => import("./Table-
|
|
4421
|
+
const n = Ee(() => import("./Table-BLwUrk4W.js")), l = Ee(() => import("./TableServer-COwfMyyt.js")), { storeOptions: u } = xn(), { saveTableOptions: s } = Et(), i = Pt(e, "modelValue"), o = Pe("table_props"), r = Pe("datatablesPluginOptions"), d = Cl("tableRef"), c = j(!1), m = j(!1), v = j(!1), y = t, h = Rt(), { dataStateGet: p, tableDataState: w, checkTableState: P } = Co(o), { addTable: C, restoreData: F } = h, E = j(!1);
|
|
4422
4422
|
na(d, (_) => {
|
|
4423
|
+
if (!v.value) return;
|
|
4423
4424
|
const V = _[0], { width: $ } = V.contentRect;
|
|
4424
4425
|
E.value = $ < 950;
|
|
4425
4426
|
});
|
|
4426
4427
|
const U = I(() => {
|
|
4427
|
-
const _ =
|
|
4428
|
+
const _ = o.options?.header;
|
|
4428
4429
|
return _ === void 0 || typeof _ == "object" && _ !== null;
|
|
4429
4430
|
});
|
|
4430
4431
|
return at(async () => {
|
|
4431
|
-
C({ table_id:
|
|
4432
|
+
C({ table_id: o.id }), await P();
|
|
4432
4433
|
const _ = p();
|
|
4433
|
-
_ && F({ table_id:
|
|
4434
|
+
_ && F({ table_id: o.id, data: _ });
|
|
4434
4435
|
const $ = w.value.options.columns;
|
|
4435
|
-
$.sorted?.length || ($.selected?.length || ($.selected =
|
|
4436
|
+
$.sorted?.length || ($.selected?.length || ($.selected = o.headers.filter((D) => !D.hidden).map((D) => D.key)), $.sorted = o.headers.map((D) => D.key)), s(ea(u.state.value, w.value.options.state)), m.value = !0, await ke(), v.value = !0;
|
|
4437
|
+
}), kl(() => {
|
|
4438
|
+
v.value = !1;
|
|
4436
4439
|
}), We("busEmits", y), We("tableRef", d), We("tableState", w), We("downloadModal", c), a({ tableRef: d }), (_, V) => {
|
|
4437
4440
|
const $ = So;
|
|
4438
|
-
return
|
|
4439
|
-
g(
|
|
4441
|
+
return N(m) ? (oe(), Ke("div", Vo, [
|
|
4442
|
+
g(Vn, null, {
|
|
4440
4443
|
default: Ce(() => [
|
|
4441
|
-
|
|
4444
|
+
N(U) ? (oe(), pe(ul, { key: 0 }, {
|
|
4442
4445
|
default: Ce(() => [
|
|
4443
|
-
g($, { "responsive-header":
|
|
4446
|
+
g($, { "responsive-header": N(E) }, null, 8, ["responsive-header"])
|
|
4444
4447
|
]),
|
|
4445
4448
|
_: 1
|
|
4446
4449
|
})) : Me("", !0),
|
|
4447
4450
|
g(sl, { class: "pa-0" }, {
|
|
4448
4451
|
default: Ce(() => [
|
|
4449
|
-
|
|
4450
|
-
key: 0,
|
|
4452
|
+
N(v) ? (oe(), pe($e(N(o).api ? N(l) : N(n)), {
|
|
4451
4453
|
ref_key: "tableRef",
|
|
4452
4454
|
ref: d,
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
+
key: N(o).api ? "server" : "client",
|
|
4456
|
+
modelValue: i.value,
|
|
4457
|
+
"onUpdate:modelValue": V[0] || (V[0] = (D) => i.value = D)
|
|
4455
4458
|
}, null, 8, ["modelValue"])) : Me("", !0)
|
|
4456
4459
|
]),
|
|
4457
4460
|
_: 1
|
|
@@ -4459,8 +4462,8 @@ const Vn = la(() => {
|
|
|
4459
4462
|
]),
|
|
4460
4463
|
_: 1
|
|
4461
4464
|
}),
|
|
4462
|
-
g(
|
|
4463
|
-
modelValue:
|
|
4465
|
+
g(Sn, {
|
|
4466
|
+
modelValue: N(c),
|
|
4464
4467
|
"onUpdate:modelValue": V[1] || (V[1] = (D) => xt(c) ? c.value = D : null),
|
|
4465
4468
|
"max-width": "350",
|
|
4466
4469
|
persistent: ""
|
|
@@ -4474,7 +4477,7 @@ const Vn = la(() => {
|
|
|
4474
4477
|
}, {
|
|
4475
4478
|
default: Ce(() => [
|
|
4476
4479
|
g(vt, {
|
|
4477
|
-
"prepend-icon":
|
|
4480
|
+
"prepend-icon": N(r).header.icons.download,
|
|
4478
4481
|
title: _.$t("$datatables.preparing_download_file")
|
|
4479
4482
|
}, {
|
|
4480
4483
|
prepend: Ce(() => [
|
|
@@ -4504,7 +4507,7 @@ const Vn = la(() => {
|
|
|
4504
4507
|
])) : Me("", !0);
|
|
4505
4508
|
};
|
|
4506
4509
|
}
|
|
4507
|
-
}), wo =
|
|
4510
|
+
}), wo = Vl("datatablesHooks", () => {
|
|
4508
4511
|
const e = j({});
|
|
4509
4512
|
return {
|
|
4510
4513
|
hooks: e,
|
|
@@ -4562,20 +4565,20 @@ const Vn = la(() => {
|
|
|
4562
4565
|
},
|
|
4563
4566
|
emits: ["refreshTable", "refetchData"],
|
|
4564
4567
|
setup(e, { expose: a, emit: t }) {
|
|
4565
|
-
const n = e, { triggerHook: l } = wo(), { storeOptions: u, setUserOptions: s } =
|
|
4568
|
+
const n = e, { triggerHook: l } = wo(), { storeOptions: u, setUserOptions: s } = xn(), i = Xl("advancedFilters"), o = Cl("table"), r = j(0), d = async (y = {}) => {
|
|
4566
4569
|
s(y), r.value < 99 && (v("refreshTable"), await ke(), r.value++);
|
|
4567
4570
|
}, c = async (y = {}) => {
|
|
4568
|
-
await ke(), !(!
|
|
4571
|
+
await ke(), !(!o.value || !o.value?.tableRef) && (s(y), "reloadItems" in o.value.tableRef && (o.value.tableRef.reloadItems(u.state.value), v("refetchData")));
|
|
4569
4572
|
}, m = (y, h, p = "=") => {
|
|
4570
|
-
|
|
4573
|
+
i.emit("save", { key: y, value: h, comparison: p });
|
|
4571
4574
|
}, v = t;
|
|
4572
4575
|
return We("table_props", n), We("triggerHook", l), a({ refreshTable: d, refetchData: c, triggerHook: l, updateAdvancedFilter: m }), (y, h) => {
|
|
4573
4576
|
const p = Io;
|
|
4574
4577
|
return oe(), pe(p, {
|
|
4575
4578
|
id: e.id,
|
|
4576
4579
|
ref_key: "table",
|
|
4577
|
-
ref:
|
|
4578
|
-
key: `${e.id}-${
|
|
4580
|
+
ref: o,
|
|
4581
|
+
key: `${e.id}-${N(r)}`,
|
|
4579
4582
|
onRefreshTable: d,
|
|
4580
4583
|
onRefetchData: c
|
|
4581
4584
|
}, null, 8, ["id"]);
|
|
@@ -4587,31 +4590,31 @@ const Vn = la(() => {
|
|
|
4587
4590
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4588
4591
|
export {
|
|
4589
4592
|
Mt as A,
|
|
4590
|
-
|
|
4593
|
+
sn as B,
|
|
4591
4594
|
co as C,
|
|
4592
4595
|
Ro as D,
|
|
4593
4596
|
Bo as V,
|
|
4594
4597
|
go as _,
|
|
4595
4598
|
Gt as a,
|
|
4596
4599
|
mt as b,
|
|
4597
|
-
|
|
4600
|
+
un as c,
|
|
4598
4601
|
pl as d,
|
|
4599
|
-
|
|
4602
|
+
hn as e,
|
|
4600
4603
|
Rt as f,
|
|
4601
|
-
|
|
4604
|
+
Vn as g,
|
|
4602
4605
|
sl as h,
|
|
4603
4606
|
Je as i,
|
|
4604
|
-
|
|
4607
|
+
Sn as j,
|
|
4605
4608
|
ul as k,
|
|
4606
|
-
|
|
4607
|
-
|
|
4609
|
+
Cn as l,
|
|
4610
|
+
yn as m,
|
|
4608
4611
|
yo as n,
|
|
4609
4612
|
wo as o,
|
|
4610
4613
|
il as p,
|
|
4611
4614
|
ma as q,
|
|
4612
|
-
|
|
4615
|
+
rn as r,
|
|
4613
4616
|
Sa as s,
|
|
4614
|
-
|
|
4617
|
+
cn as t,
|
|
4615
4618
|
Et as u,
|
|
4616
4619
|
hl as v,
|
|
4617
4620
|
Co as w,
|