@ianicdev/datatables2 0.9.10 → 0.10.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.
Files changed (42) hide show
  1. package/dist/{Columns-CPYUVLvE.js → Columns-6xlIFq_S.js} +1 -1
  2. package/dist/{Columns-BaARuW1m.cjs → Columns-DC9bpj0E.cjs} +1 -1
  3. package/dist/{Comparison-BiPlTpXM.js → Comparison-Dq4BkohR.js} +1 -1
  4. package/dist/{Comparison-DDhGIBui.cjs → Comparison-ame-DP3a.cjs} +1 -1
  5. package/dist/Datepicker--ZUiSi7m.js +1411 -0
  6. package/dist/Datepicker-COihnScF.cjs +2 -0
  7. package/dist/{Download-FGUE_z5x.js → Download-2WQpbEfa.js} +2 -2
  8. package/dist/{Download-DZqwXPMb.cjs → Download-zuQjsbMu.cjs} +1 -1
  9. package/dist/{Options-B-Vq57w_.cjs → Options-BjAdXS-q.cjs} +1 -1
  10. package/dist/{Options-CAwRqQpx.js → Options-g9ZSVebW.js} +1 -1
  11. package/dist/{RefreshTable-C-UPC-U5.cjs → RefreshTable-C3L0Baro.cjs} +1 -1
  12. package/dist/{RefreshTable-DyLlkCOt.js → RefreshTable-C966AEK4.js} +2 -2
  13. package/dist/{Search-Tks4mpaH.cjs → Search-BBoxkqD7.cjs} +1 -1
  14. package/dist/{Search-DBOrKgEi.js → Search-BPB-1_Dp.js} +2 -2
  15. package/dist/{Table-DYDzb63V.cjs → Table-BulChdHr.cjs} +1 -1
  16. package/dist/{Table-P8c-sRdr.js → Table-vFGT7Szy.js} +2 -2
  17. package/dist/{TableServer--svcmINA.js → TableServer-DAj4z8yP.js} +1138 -1134
  18. package/dist/TableServer-Dc9U14eJ.cjs +20 -0
  19. package/dist/cellRender-Cfwedens.cjs +1 -0
  20. package/dist/{cellRender-BPzg8pfq.js → cellRender-Ct6pUDNH.js} +986 -921
  21. package/dist/{dataTables-CPrc2H_E.js → dataTables-B-LwTPCL.js} +2409 -2263
  22. package/dist/dataTables-Bk4R-V8b.cjs +4 -0
  23. package/dist/datatables.cjs +1 -1
  24. package/dist/datatables.js +1 -1
  25. package/dist/datatables2.css +1 -1
  26. package/dist/index-3kLkZg7E.js +4101 -0
  27. package/dist/{index-Dn353bZ1.cjs → index-B6qrTNVx.cjs} +1 -1
  28. package/dist/index-B_4Yq7Un.cjs +1 -0
  29. package/dist/{index-CXBiVM0n.js → index-CQy1mX45.js} +1 -1
  30. package/dist/{index.es-DbLPWyn6.cjs → index.es-Ciudu1vj.cjs} +2 -2
  31. package/dist/{index.es-BXudRhtE.js → index.es-eRsZ1LFr.js} +10 -6
  32. package/dist/jspdf-B3ZoDzKb.cjs +79 -0
  33. package/dist/{jspdf-Dt---f5Z.js → jspdf-ooxm5O8S.js} +3905 -3893
  34. package/package.json +13 -13
  35. package/dist/Datepicker-CzJ1wZmm.cjs +0 -1
  36. package/dist/Datepicker-KGlOP9ck.js +0 -1269
  37. package/dist/TableServer-ftB17VAQ.cjs +0 -20
  38. package/dist/cellRender-DpRXHxxv.cjs +0 -1
  39. package/dist/dataTables-CxQh692H.cjs +0 -4
  40. package/dist/index-BTfw-D-T.cjs +0 -1
  41. package/dist/index-BW-yzY3p.js +0 -4106
  42. package/dist/jspdf-DQdhUPLM.cjs +0 -79
@@ -1,11 +1,11 @@
1
- import { shallowRef as ue, computed as V, unref as q, watchEffect as je, toRef as C, provide as Y, toRaw as ne, inject as Q, ref as j, toValue as Tt, watch as ce, onBeforeUpdate as Ct, createVNode as w, normalizeStyle as we, normalizeClass as G, createElementVNode as S, mergeProps as B, nextTick as Ce, capitalize as _t, Fragment as U, createTextVNode as _e, withModifiers as re, toDisplayString as Bt, toRefs as Ot, defineComponent as Lt, h as At } from "vue";
2
- import { aP as Et, U as Nt, p as _, N as z, aA as ee, K as J, aQ as de, _ as Ge, J as Ke, af as ye, aR as Rt, T as Z, aS as se, g as $, a0 as $t, h as Ie, aj as fe, a as Se, al as Mt, aT as oe, u as K, a9 as W, x as Ht, y as Fe, m as We, as as jt, A as Gt, E as ze, f as ae, b as Ue, G as Kt, I as O, aU as Be, aV as Wt, ax as A, aW as zt, o as Ut, P as Je, L as Jt, D as Qt, ao as Ve, d as Oe, H as pe, a1 as Pe, k as Xt, aa as Yt, l as Zt, n as qt, F as ea } from "./dataTables-CPrc2H_E.js";
3
- import { V as Qe, a as ta, b as De, u as aa, d as la } from "./index-BW-yzY3p.js";
4
- import ie from "moment";
5
- function Le(e, t, a) {
6
- return Object.keys(e).filter((l) => Et(l) && l.endsWith(t)).reduce((l, n) => (l[n.slice(0, -t.length)] = (r) => Nt(e[n], r, a(r)), l), {});
1
+ import { shallowRef as de, computed as F, unref as ee, watchEffect as Ke, toRef as T, provide as Y, toRaw as re, inject as Q, ref as H, toValue as _t, watch as ve, onBeforeUpdate as Ot, createVNode as I, normalizeStyle as Ie, normalizeClass as K, createElementVNode as S, mergeProps as O, nextTick as _e, capitalize as Bt, Fragment as U, createTextVNode as Oe, withModifiers as se, toDisplayString as Lt, toRefs as At, defineComponent as Et, h as Nt } from "vue";
2
+ import { aP as Rt, U as $t, p as _, N as z, aA as te, K as J, aQ as ce, _ as Ge, J as We, ad as pe, aR as Mt, T as Z, aS as oe, aT as jt, g as $, a0 as Ht, h as Fe, ah as ge, a as Pe, aj as Kt, aU as ie, u as G, a7 as W, x as Gt, y as De, m as ze, as as Wt, A as zt, E as Ue, f as le, b as Je, G as Ut, I as B, aV as Be, S as Ve, aW as Jt, ax as A, aX as Qt, o as Xt, P as Qe, L as Yt, D as Zt, an as Te, d as Le, H as xe, a1 as ke, k as qt, a8 as ea, l as ta, n as aa, F as la } from "./dataTables-B-LwTPCL.js";
3
+ import { V as Xe, a as na, b as fe, u as ra, d as sa } from "./index-3kLkZg7E.js";
4
+ import ue from "moment";
5
+ function Ae(e, t, a) {
6
+ return Object.keys(e).filter((l) => Rt(l) && l.endsWith(t)).reduce((l, n) => (l[n.slice(0, -t.length)] = (r) => $t(e[n], r, a(r)), l), {});
7
7
  }
8
- const na = (e, t, a) => {
8
+ const oa = (e, t, a) => {
9
9
  if (e == null || t == null) return -1;
10
10
  if (!t.length) return 0;
11
11
  e = e.toString().toLocaleLowerCase(), t = t.toString().toLocaleLowerCase();
@@ -15,11 +15,11 @@ const na = (e, t, a) => {
15
15
  l.push([n, n + t.length]), n = e.indexOf(t, n + t.length);
16
16
  return l.length ? l : -1;
17
17
  };
18
- function xe(e, t) {
18
+ function Se(e, t) {
19
19
  if (!(e == null || typeof e == "boolean" || e === -1))
20
20
  return typeof e == "number" ? [[e, e + t.length]] : Array.isArray(e[0]) ? e : [e];
21
21
  }
22
- const ra = _({
22
+ const ia = _({
23
23
  customFilter: Function,
24
24
  customKeyFilter: Object,
25
25
  filterKeys: [Array, String],
@@ -29,105 +29,105 @@ const ra = _({
29
29
  },
30
30
  noFilter: Boolean
31
31
  }, "filter");
32
- function sa(e, t, a) {
33
- const l = [], n = a?.default ?? na, r = a?.filterKeys ? z(a.filterKeys) : !1, i = Object.keys(a?.customKeyFilter ?? {}).length;
32
+ function ua(e, t, a) {
33
+ const l = [], n = a?.default ?? oa, r = a?.filterKeys ? z(a.filterKeys) : !1, i = Object.keys(a?.customKeyFilter ?? {}).length;
34
34
  if (!e?.length) return l;
35
- let u = null;
36
- e: for (let s = 0; s < e.length; s++) {
37
- const [o, c = o] = z(e[s]), m = {}, d = {};
38
- let f = -1;
35
+ let f = null;
36
+ e: for (let u = 0; u < e.length; u++) {
37
+ const [d, m = d] = z(e[u]), h = {}, s = {};
38
+ let o = -1;
39
39
  if ((t || i > 0) && !a?.noFilter) {
40
- let y = !1;
41
- if (typeof o == "object") {
42
- if (o.type === "divider" || o.type === "subheader") {
43
- u?.type === "divider" && o.type === "subheader" && l.push(u), u = {
44
- index: s,
40
+ let b = !1;
41
+ if (typeof d == "object") {
42
+ if (d.type === "divider" || d.type === "subheader") {
43
+ f?.type === "divider" && d.type === "subheader" && l.push(f), f = {
44
+ index: u,
45
45
  matches: {},
46
- type: o.type
46
+ type: d.type
47
47
  };
48
48
  continue;
49
49
  }
50
- const F = r || Object.keys(c);
51
- y = F.length === i;
52
- for (const h of F) {
53
- const I = ee(c, h), D = a?.customKeyFilter?.[h];
54
- if (f = D ? D(I, t, o) : n(I, t, o), f !== -1 && f !== !1)
55
- D ? m[h] = xe(f, t) : d[h] = xe(f, t);
50
+ const w = r || Object.keys(m);
51
+ b = w.length === i;
52
+ for (const y of w) {
53
+ const P = te(m, y), V = a?.customKeyFilter?.[y];
54
+ if (o = V ? V(P, t, d) : n(P, t, d), o !== -1 && o !== !1)
55
+ V ? h[y] = Se(o, t) : s[y] = Se(o, t);
56
56
  else if (a?.filterMode === "every")
57
57
  continue e;
58
58
  }
59
59
  } else
60
- f = n(o, t, o), f !== -1 && f !== !1 && (d.title = xe(f, t));
61
- const b = Object.keys(d).length, v = Object.keys(m).length;
62
- if (!b && !v || a?.filterMode === "union" && v !== i && !b || a?.filterMode === "intersection" && (v !== i || !b && i > 0 && !y)) continue;
60
+ o = n(d, t, d), o !== -1 && o !== !1 && (s.title = Se(o, t));
61
+ const c = Object.keys(s).length, v = Object.keys(h).length;
62
+ if (!c && !v || a?.filterMode === "union" && v !== i && !c || a?.filterMode === "intersection" && (v !== i || !c && i > 0 && !b)) continue;
63
63
  }
64
- u && (l.push(u), u = null), l.push({
65
- index: s,
64
+ f && (l.push(f), f = null), l.push({
65
+ index: u,
66
66
  matches: {
67
- ...d,
68
- ...m
67
+ ...s,
68
+ ...h
69
69
  }
70
70
  });
71
71
  }
72
72
  return l;
73
73
  }
74
- function oa(e, t, a, l) {
75
- const n = ue([]), r = ue(/* @__PURE__ */ new Map()), i = V(() => l?.transform ? q(t).map((s) => [s, l.transform(s)]) : q(t));
76
- je(() => {
77
- const s = typeof a == "function" ? a() : q(a), o = typeof s != "string" && typeof s != "number" ? "" : String(s), c = sa(i.value, o, {
74
+ function da(e, t, a, l) {
75
+ const n = de([]), r = de(/* @__PURE__ */ new Map()), i = F(() => l?.transform ? ee(t).map((u) => [u, l.transform(u)]) : ee(t));
76
+ Ke(() => {
77
+ const u = typeof a == "function" ? a() : ee(a), d = typeof u != "string" && typeof u != "number" ? "" : String(u), m = ua(i.value, d, {
78
78
  customKeyFilter: {
79
79
  ...e.customKeyFilter,
80
- ...q(l?.customKeyFilter)
80
+ ...ee(l?.customKeyFilter)
81
81
  },
82
82
  default: e.customFilter,
83
83
  filterKeys: e.filterKeys,
84
84
  filterMode: e.filterMode,
85
85
  noFilter: e.noFilter
86
- }), m = q(t), d = [], f = /* @__PURE__ */ new Map();
87
- c.forEach((y) => {
86
+ }), h = ee(t), s = [], o = /* @__PURE__ */ new Map();
87
+ m.forEach((b) => {
88
88
  let {
89
- index: b,
89
+ index: c,
90
90
  matches: v
91
- } = y;
92
- const F = m[b];
93
- d.push(F), f.set(F.value, v);
94
- }), n.value = d, r.value = f;
91
+ } = b;
92
+ const w = h[c];
93
+ s.push(w), o.set(w.value, v);
94
+ }), n.value = s, r.value = o;
95
95
  });
96
- function u(s) {
97
- return r.value.get(s.value);
96
+ function f(u) {
97
+ return r.value.get(u.value);
98
98
  }
99
99
  return {
100
100
  filteredItems: n,
101
101
  filteredMatches: r,
102
- getMatches: u
102
+ getMatches: f
103
103
  };
104
104
  }
105
- const ia = _({
105
+ const ca = _({
106
106
  expandOnClick: Boolean,
107
107
  showExpand: Boolean,
108
108
  expanded: {
109
109
  type: Array,
110
110
  default: () => []
111
111
  }
112
- }, "DataTable-expand"), Xe = Symbol.for("vuetify:datatable:expanded");
113
- function ua(e) {
114
- const t = C(() => e.expandOnClick), a = J(e, "expanded", e.expanded, (u) => new Set(u), (u) => [...u.values()]);
115
- function l(u, s) {
116
- const o = new Set(a.value), c = ne(u.value);
117
- if (s)
118
- o.add(c);
112
+ }, "DataTable-expand"), Ye = Symbol.for("vuetify:datatable:expanded");
113
+ function fa(e) {
114
+ const t = T(() => e.expandOnClick), a = J(e, "expanded", e.expanded, (f) => new Set(f), (f) => [...f.values()]);
115
+ function l(f, u) {
116
+ const d = new Set(a.value), m = re(f.value);
117
+ if (u)
118
+ d.add(m);
119
119
  else {
120
- const m = [...a.value].find((d) => ne(d) === c);
121
- o.delete(m);
120
+ const h = [...a.value].find((s) => re(s) === m);
121
+ d.delete(h);
122
122
  }
123
- a.value = o;
123
+ a.value = d;
124
124
  }
125
- function n(u) {
126
- const s = ne(u.value);
127
- return [...a.value].some((o) => ne(o) === s);
125
+ function n(f) {
126
+ const u = re(f.value);
127
+ return [...a.value].some((d) => re(d) === u);
128
128
  }
129
- function r(u) {
130
- l(u, !n(u));
129
+ function r(f) {
130
+ l(f, !n(f));
131
131
  }
132
132
  const i = {
133
133
  expand: l,
@@ -136,110 +136,110 @@ function ua(e) {
136
136
  isExpanded: n,
137
137
  toggleExpand: r
138
138
  };
139
- return Y(Xe, i), i;
139
+ return Y(Ye, i), i;
140
140
  }
141
- function Ye() {
142
- const e = Q(Xe);
141
+ function Ze() {
142
+ const e = Q(Ye);
143
143
  if (!e) throw new Error("foo");
144
144
  return e;
145
145
  }
146
- const da = _({
146
+ const va = _({
147
147
  groupBy: {
148
148
  type: Array,
149
149
  default: () => []
150
150
  }
151
- }, "DataTable-group"), Ze = Symbol.for("vuetify:data-table-group");
152
- function ca(e) {
151
+ }, "DataTable-group"), qe = Symbol.for("vuetify:data-table-group");
152
+ function ga(e) {
153
153
  return {
154
154
  groupBy: J(e, "groupBy")
155
155
  };
156
156
  }
157
- function fa(e) {
157
+ function ma(e) {
158
158
  const {
159
159
  disableSort: t,
160
160
  groupBy: a,
161
161
  sortBy: l
162
- } = e, n = j(/* @__PURE__ */ new Set()), r = V(() => a.value.map((c) => ({
163
- ...c,
164
- order: c.order ?? !1
162
+ } = e, n = H(/* @__PURE__ */ new Set()), r = F(() => a.value.map((m) => ({
163
+ ...m,
164
+ order: m.order ?? !1
165
165
  })).concat(t?.value ? [] : l.value));
166
- function i(c) {
167
- return n.value.has(c.id);
166
+ function i(m) {
167
+ return n.value.has(m.id);
168
168
  }
169
- function u(c) {
170
- const m = new Set(n.value);
171
- i(c) ? m.delete(c.id) : m.add(c.id), n.value = m;
169
+ function f(m) {
170
+ const h = new Set(n.value);
171
+ i(m) ? h.delete(m.id) : h.add(m.id), n.value = h;
172
172
  }
173
- function s(c) {
174
- function m(d) {
175
- const f = [];
176
- for (const y of d.items)
177
- "type" in y && y.type === "group" ? f.push(...m(y)) : f.push(y);
178
- return [...new Set(f)];
173
+ function u(m) {
174
+ function h(s) {
175
+ const o = [];
176
+ for (const b of s.items)
177
+ "type" in b && b.type === "group" ? o.push(...h(b)) : o.push(b);
178
+ return [...new Set(o)];
179
179
  }
180
- return m({
181
- items: c
180
+ return h({
181
+ items: m
182
182
  });
183
183
  }
184
- const o = {
184
+ const d = {
185
185
  sortByWithGroups: r,
186
- toggleGroup: u,
186
+ toggleGroup: f,
187
187
  opened: n,
188
188
  groupBy: a,
189
- extractRows: s,
189
+ extractRows: u,
190
190
  isGroupOpen: i
191
191
  };
192
- return Y(Ze, o), o;
192
+ return Y(qe, d), d;
193
193
  }
194
- function qe() {
195
- const e = Q(Ze);
194
+ function et() {
195
+ const e = Q(qe);
196
196
  if (!e) throw new Error("Missing group!");
197
197
  return e;
198
198
  }
199
- function va(e, t) {
199
+ function ba(e, t) {
200
200
  if (!e.length) return [];
201
201
  const a = /* @__PURE__ */ new Map();
202
202
  for (const l of e) {
203
- const n = de(l.raw, t);
203
+ const n = ce(l.raw, t);
204
204
  a.has(n) || a.set(n, []), a.get(n).push(l);
205
205
  }
206
206
  return a;
207
207
  }
208
- function et(e, t) {
208
+ function tt(e, t) {
209
209
  let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "root";
210
210
  if (!t.length) return [];
211
- const n = va(e, t[0]), r = [], i = t.slice(1);
212
- return n.forEach((u, s) => {
213
- const o = t[0], c = `${l}_${o}_${s}`;
211
+ const n = ba(e, t[0]), r = [], i = t.slice(1);
212
+ return n.forEach((f, u) => {
213
+ const d = t[0], m = `${l}_${d}_${u}`;
214
214
  r.push({
215
215
  depth: a,
216
- id: c,
217
- key: o,
218
- value: s,
219
- items: i.length ? et(u, i, a + 1, c) : u,
216
+ id: m,
217
+ key: d,
218
+ value: u,
219
+ items: i.length ? tt(f, i, a + 1, m) : f,
220
220
  type: "group"
221
221
  });
222
222
  }), r;
223
223
  }
224
- function tt(e, t, a) {
224
+ function at(e, t, a) {
225
225
  const l = [];
226
226
  for (const n of e)
227
- "type" in n && n.type === "group" ? (n.value != null && l.push(n), (t.has(n.id) || n.value == null) && (l.push(...tt(n.items, t, a)), a && l.push({
227
+ "type" in n && n.type === "group" ? (n.value != null && l.push(n), (t.has(n.id) || n.value == null) && (l.push(...at(n.items, t, a)), a && l.push({
228
228
  ...n,
229
229
  type: "group-summary"
230
230
  }))) : l.push(n);
231
231
  return l;
232
232
  }
233
- function ga(e, t, a, l) {
233
+ function ha(e, t, a, l) {
234
234
  return {
235
- flatItems: V(() => {
235
+ flatItems: F(() => {
236
236
  if (!t.value.length) return e.value;
237
- const r = et(e.value, t.value.map((i) => i.key));
238
- return tt(r, a.value, Tt(l));
237
+ const r = tt(e.value, t.value.map((i) => i.key));
238
+ return at(r, a.value, _t(l));
239
239
  })
240
240
  };
241
241
  }
242
- function ma(e) {
242
+ function ya(e) {
243
243
  let {
244
244
  page: t,
245
245
  itemsPerPage: a,
@@ -247,22 +247,22 @@ function ma(e) {
247
247
  groupBy: n,
248
248
  search: r
249
249
  } = e;
250
- const i = Ge("VDataTable"), u = () => ({
250
+ const i = Ge("VDataTable"), f = () => ({
251
251
  page: t.value,
252
252
  itemsPerPage: a.value,
253
253
  sortBy: l.value,
254
254
  groupBy: n.value,
255
255
  search: r.value
256
256
  });
257
- let s = null;
258
- ce(u, (o) => {
259
- Ke(s, o) || (s && s.search !== o.search && (t.value = 1), i.emit("update:options", o), s = o);
257
+ let u = null;
258
+ ve(f, (d) => {
259
+ We(u, d) || (u && u.search !== d.search && (t.value = 1), i.emit("update:options", d), u = d);
260
260
  }, {
261
261
  deep: !0,
262
262
  immediate: !0
263
263
  });
264
264
  }
265
- const ba = _({
265
+ const pa = _({
266
266
  page: {
267
267
  type: [Number, String],
268
268
  default: 1
@@ -271,70 +271,70 @@ const ba = _({
271
271
  type: [Number, String],
272
272
  default: 10
273
273
  }
274
- }, "DataTable-paginate"), at = Symbol.for("vuetify:data-table-pagination");
275
- function ha(e) {
274
+ }, "DataTable-paginate"), lt = Symbol.for("vuetify:data-table-pagination");
275
+ function xa(e) {
276
276
  const t = J(e, "page", void 0, (l) => Number(l ?? 1)), a = J(e, "itemsPerPage", void 0, (l) => Number(l ?? 10));
277
277
  return {
278
278
  page: t,
279
279
  itemsPerPage: a
280
280
  };
281
281
  }
282
- function ya(e) {
282
+ function Sa(e) {
283
283
  const {
284
284
  page: t,
285
285
  itemsPerPage: a,
286
286
  itemsLength: l
287
- } = e, n = V(() => a.value === -1 ? 0 : a.value * (t.value - 1)), r = V(() => a.value === -1 ? l.value : Math.min(l.value, n.value + a.value)), i = V(() => a.value === -1 || l.value === 0 ? 1 : Math.ceil(l.value / a.value));
288
- ce([t, i], () => {
287
+ } = e, n = F(() => a.value === -1 ? 0 : a.value * (t.value - 1)), r = F(() => a.value === -1 ? l.value : Math.min(l.value, n.value + a.value)), i = F(() => a.value === -1 || l.value === 0 ? 1 : Math.ceil(l.value / a.value));
288
+ ve([t, i], () => {
289
289
  t.value > i.value && (t.value = i.value);
290
290
  });
291
- function u(d) {
292
- a.value = d, t.value = 1;
291
+ function f(s) {
292
+ a.value = s, t.value = 1;
293
293
  }
294
- function s() {
295
- t.value = ye(t.value + 1, 1, i.value);
294
+ function u() {
295
+ t.value = pe(t.value + 1, 1, i.value);
296
296
  }
297
- function o() {
298
- t.value = ye(t.value - 1, 1, i.value);
297
+ function d() {
298
+ t.value = pe(t.value - 1, 1, i.value);
299
299
  }
300
- function c(d) {
301
- t.value = ye(d, 1, i.value);
300
+ function m(s) {
301
+ t.value = pe(s, 1, i.value);
302
302
  }
303
- const m = {
303
+ const h = {
304
304
  page: t,
305
305
  itemsPerPage: a,
306
306
  startIndex: n,
307
307
  stopIndex: r,
308
308
  pageCount: i,
309
309
  itemsLength: l,
310
- nextPage: s,
311
- prevPage: o,
312
- setPage: c,
313
- setItemsPerPage: u
310
+ nextPage: u,
311
+ prevPage: d,
312
+ setPage: m,
313
+ setItemsPerPage: f
314
314
  };
315
- return Y(at, m), m;
315
+ return Y(lt, h), h;
316
316
  }
317
- function pa() {
318
- const e = Q(at);
317
+ function Pa() {
318
+ const e = Q(lt);
319
319
  if (!e) throw new Error("Missing pagination!");
320
320
  return e;
321
321
  }
322
- function xa(e) {
322
+ function ka(e) {
323
323
  const t = Ge("usePaginatedItems"), {
324
324
  items: a,
325
325
  startIndex: l,
326
326
  stopIndex: n,
327
327
  itemsPerPage: r
328
- } = e, i = V(() => r.value <= 0 ? a.value : a.value.slice(l.value, n.value));
329
- return ce(i, (u) => {
330
- t.emit("update:currentItems", u);
328
+ } = e, i = F(() => r.value <= 0 ? a.value : a.value.slice(l.value, n.value));
329
+ return ve(i, (f) => {
330
+ t.emit("update:currentItems", f);
331
331
  }, {
332
332
  immediate: !0
333
333
  }), {
334
334
  paginatedItems: i
335
335
  };
336
336
  }
337
- const Sa = {
337
+ const wa = {
338
338
  showSelectAll: !1,
339
339
  allSelected: () => [],
340
340
  select: (e) => {
@@ -350,7 +350,7 @@ const Sa = {
350
350
  } = e;
351
351
  return t;
352
352
  }
353
- }, lt = {
353
+ }, nt = {
354
354
  showSelectAll: !0,
355
355
  allSelected: (e) => {
356
356
  let {
@@ -374,13 +374,13 @@ const Sa = {
374
374
  currentPage: a,
375
375
  selected: l
376
376
  } = e;
377
- return lt.select({
377
+ return nt.select({
378
378
  items: a,
379
379
  value: t,
380
380
  selected: l
381
381
  });
382
382
  }
383
- }, Pa = {
383
+ }, Ia = {
384
384
  showSelectAll: !0,
385
385
  allSelected: (e) => {
386
386
  let {
@@ -405,7 +405,7 @@ const Sa = {
405
405
  } = e;
406
406
  return new Set(t ? a.map((l) => l.value) : []);
407
407
  }
408
- }, ka = _({
408
+ }, Fa = _({
409
409
  showSelect: Boolean,
410
410
  selectStrategy: {
411
411
  type: [String, Object],
@@ -416,140 +416,177 @@ const Sa = {
416
416
  default: () => []
417
417
  },
418
418
  valueComparator: Function
419
- }, "DataTable-select"), nt = Symbol.for("vuetify:data-table-selection");
420
- function wa(e, t) {
419
+ }, "DataTable-select"), rt = Symbol.for("vuetify:data-table-selection");
420
+ function Da(e, t) {
421
421
  let {
422
422
  allItems: a,
423
423
  currentPage: l
424
424
  } = t;
425
- const n = J(e, "modelValue", e.modelValue, (h) => {
426
- const I = e.valueComparator;
427
- return I ? new Set(z(h).map((D) => a.value.find((P) => I(D, P.value))?.value ?? D)) : new Set(z(h).map((D) => Rt(D) ? a.value.find((P) => D === P.value)?.value ?? D : a.value.find((P) => Ke(D, P.value))?.value ?? D));
428
- }, (h) => [...h.values()]), r = V(() => a.value.filter((h) => h.selectable)), i = V(() => l.value.filter((h) => h.selectable)), u = V(() => {
425
+ const n = J(e, "modelValue", e.modelValue, (y) => {
426
+ const P = e.valueComparator;
427
+ return P ? new Set(z(y).map((V) => a.value.find((k) => P(V, k.value))?.value ?? V)) : new Set(z(y).map((V) => Mt(V) ? a.value.find((k) => V === k.value)?.value ?? V : a.value.find((k) => We(V, k.value))?.value ?? V));
428
+ }, (y) => [...y.values()]), r = F(() => a.value.filter((y) => y.selectable)), i = F(() => l.value.filter((y) => y.selectable)), f = F(() => {
429
429
  if (typeof e.selectStrategy == "object") return e.selectStrategy;
430
430
  switch (e.selectStrategy) {
431
431
  case "single":
432
- return Sa;
432
+ return wa;
433
433
  case "all":
434
- return Pa;
434
+ return Ia;
435
435
  case "page":
436
436
  default:
437
- return lt;
437
+ return nt;
438
438
  }
439
- }), s = ue(null);
440
- function o(h) {
441
- return z(h).every((I) => n.value.has(I.value));
439
+ }), u = de(null);
440
+ function d(y) {
441
+ return z(y).every((P) => n.value.has(P.value));
442
442
  }
443
- function c(h) {
444
- return z(h).some((I) => n.value.has(I.value));
443
+ function m(y) {
444
+ return z(y).some((P) => n.value.has(P.value));
445
445
  }
446
- function m(h, I) {
447
- const D = u.value.select({
448
- items: h,
449
- value: I,
446
+ function h(y, P) {
447
+ const V = f.value.select({
448
+ items: y,
449
+ value: P,
450
450
  selected: new Set(n.value)
451
451
  });
452
- n.value = D;
452
+ n.value = V;
453
453
  }
454
- function d(h, I, D) {
455
- const P = [];
456
- if (I = I ?? l.value.findIndex((L) => L.value === h.value), e.selectStrategy !== "single" && D?.shiftKey && s.value !== null) {
457
- const [L, N] = [s.value, I].sort((p, x) => p - x);
458
- P.push(...l.value.slice(L, N + 1).filter((p) => p.selectable));
454
+ function s(y, P, V) {
455
+ const k = [];
456
+ if (P = P ?? l.value.findIndex((L) => L.value === y.value), e.selectStrategy !== "single" && V?.shiftKey && u.value !== null) {
457
+ const [L, N] = [u.value, P].sort((p, x) => p - x);
458
+ k.push(...l.value.slice(L, N + 1).filter((p) => p.selectable));
459
459
  } else
460
- P.push(h), s.value = I;
461
- m(P, !o([h]));
460
+ k.push(y), u.value = P;
461
+ h(k, !d([y]));
462
462
  }
463
- function f(h) {
464
- const I = u.value.selectAll({
465
- value: h,
463
+ function o(y) {
464
+ const P = f.value.selectAll({
465
+ value: y,
466
466
  allItems: r.value,
467
467
  currentPage: i.value,
468
468
  selected: new Set(n.value)
469
469
  });
470
- n.value = I;
470
+ n.value = P;
471
471
  }
472
- const y = V(() => n.value.size > 0), b = V(() => {
473
- const h = u.value.allSelected({
472
+ const b = F(() => n.value.size > 0), c = F(() => {
473
+ const y = f.value.allSelected({
474
474
  allItems: r.value,
475
475
  currentPage: i.value
476
476
  });
477
- return !!h.length && o(h);
478
- }), v = C(() => u.value.showSelectAll), F = {
479
- toggleSelect: d,
480
- select: m,
481
- selectAll: f,
482
- isSelected: o,
483
- isSomeSelected: c,
484
- someSelected: y,
485
- allSelected: b,
477
+ return !!y.length && d(y);
478
+ }), v = T(() => f.value.showSelectAll), w = {
479
+ toggleSelect: s,
480
+ select: h,
481
+ selectAll: o,
482
+ isSelected: d,
483
+ isSomeSelected: m,
484
+ someSelected: b,
485
+ allSelected: c,
486
486
  showSelectAll: v,
487
- lastSelectedIndex: s,
488
- selectStrategy: u
487
+ lastSelectedIndex: u,
488
+ selectStrategy: f
489
489
  };
490
- return Y(nt, F), F;
490
+ return Y(rt, w), w;
491
491
  }
492
- function ve() {
493
- const e = Q(nt);
492
+ function me() {
493
+ const e = Q(rt);
494
494
  if (!e) throw new Error("Missing selection!");
495
495
  return e;
496
496
  }
497
- const Ia = _({
497
+ const Va = _({
498
+ initialSortOrder: {
499
+ type: String,
500
+ default: "asc",
501
+ validator: (e) => !e || ["asc", "desc"].includes(e)
502
+ },
498
503
  sortBy: {
499
504
  type: Array,
500
505
  default: () => []
501
506
  },
502
507
  customKeySort: Object,
503
- multiSort: Boolean,
508
+ multiSort: {
509
+ type: [Boolean, Object],
510
+ default: !1
511
+ },
504
512
  mustSort: Boolean
505
- }, "DataTable-sort"), rt = Symbol.for("vuetify:data-table-sort");
506
- function Fa(e) {
507
- const t = J(e, "sortBy"), a = C(() => e.mustSort), l = C(() => e.multiSort);
513
+ }, "DataTable-sort"), st = Symbol.for("vuetify:data-table-sort");
514
+ function Ta(e) {
515
+ const t = T(() => e.initialSortOrder), a = J(e, "sortBy"), l = T(() => e.mustSort), n = T(() => e.multiSort);
508
516
  return {
509
- sortBy: t,
510
- mustSort: a,
511
- multiSort: l
517
+ initialSortOrder: t,
518
+ sortBy: a,
519
+ multiSort: n,
520
+ mustSort: l
512
521
  };
513
522
  }
514
- function Va(e) {
523
+ function Ca(e, t) {
524
+ if (!jt(e))
525
+ return {
526
+ active: !!e
527
+ };
515
528
  const {
516
- sortBy: t,
517
- mustSort: a,
518
- multiSort: l,
519
- page: n
520
- } = e, r = (s) => {
521
- if (s.key == null) return;
522
- let o = t.value.map((m) => ({
523
- ...m
529
+ key: a,
530
+ mode: l,
531
+ modifier: n
532
+ } = e, r = n === "alt" && t?.altKey || n === "shift" && t?.shiftKey;
533
+ return {
534
+ active: !a || t?.ctrlKey || t?.metaKey || !1,
535
+ mode: r ? l === "append" ? "prepend" : "append" : l
536
+ };
537
+ }
538
+ function _a(e) {
539
+ const {
540
+ initialSortOrder: t,
541
+ sortBy: a,
542
+ mustSort: l,
543
+ multiSort: n,
544
+ page: r
545
+ } = e, i = (d, m) => {
546
+ if (d.key == null) return;
547
+ let h = a.value.map((c) => ({
548
+ ...c
524
549
  })) ?? [];
525
- const c = o.find((m) => m.key === s.key);
526
- c ? c.order === "desc" ? a.value && o.length === 1 ? c.order = "asc" : o = o.filter((m) => m.key !== s.key) : c.order = "desc" : l.value ? o.push({
527
- key: s.key,
528
- order: "asc"
529
- }) : o = [{
530
- key: s.key,
531
- order: "asc"
532
- }], t.value = o, n && (n.value = 1);
550
+ const s = h.find((c) => c.key === d.key), o = t.value, b = t.value === "desc" ? "asc" : "desc";
551
+ if (s)
552
+ s.order === b ? l.value && h.length === 1 ? s.order = t.value : h = h.filter((c) => c.key !== d.key) : s.order = b;
553
+ else {
554
+ const {
555
+ active: c,
556
+ mode: v
557
+ } = Ca(n.value, m);
558
+ c ? v === "prepend" ? h.unshift({
559
+ key: d.key,
560
+ order: o
561
+ }) : h.push({
562
+ key: d.key,
563
+ order: o
564
+ }) : h = [{
565
+ key: d.key,
566
+ order: o
567
+ }];
568
+ }
569
+ a.value = h, r && (r.value = 1);
533
570
  };
534
- function i(s) {
535
- return !!t.value.find((o) => o.key === s.key);
571
+ function f(d) {
572
+ return !!a.value.find((m) => m.key === d.key);
536
573
  }
537
574
  const u = {
538
- sortBy: t,
539
- toggleSort: r,
540
- isSorted: i
575
+ sortBy: a,
576
+ toggleSort: i,
577
+ isSorted: f
541
578
  };
542
- return Y(rt, u), u;
579
+ return Y(st, u), u;
543
580
  }
544
- function st() {
545
- const e = Q(rt);
581
+ function ot() {
582
+ const e = Q(st);
546
583
  if (!e) throw new Error("Missing sort!");
547
584
  return e;
548
585
  }
549
- function Da(e, t, a, l) {
586
+ function Oa(e, t, a, l) {
550
587
  const n = Z();
551
588
  return {
552
- sortedItems: V(() => a.value.length ? Ta(t.value, a.value, n.current.value, {
589
+ sortedItems: F(() => a.value.length ? Ba(t.value, a.value, n.current.value, {
553
590
  transform: l?.transform,
554
591
  sortFunctions: {
555
592
  ...e.customKeySort,
@@ -559,39 +596,39 @@ function Da(e, t, a, l) {
559
596
  }) : t.value)
560
597
  };
561
598
  }
562
- function Ta(e, t, a, l) {
599
+ function Ba(e, t, a, l) {
563
600
  const n = new Intl.Collator(a, {
564
601
  sensitivity: "accent",
565
602
  usage: "sort"
566
603
  });
567
- return e.map((i) => [i, l?.transform ? l.transform(i) : i]).sort((i, u) => {
568
- for (let s = 0; s < t.length; s++) {
569
- let o = !1;
570
- const c = t[s].key, m = t[s].order ?? "asc";
571
- if (m === !1) continue;
572
- let d = de(i[1], c), f = de(u[1], c), y = i[0].raw, b = u[0].raw;
573
- if (m === "desc" && ([d, f] = [f, d], [y, b] = [b, y]), l?.sortRawFunctions?.[c]) {
574
- const v = l.sortRawFunctions[c](y, b);
604
+ return e.map((i) => [i, l?.transform ? l.transform(i) : i]).sort((i, f) => {
605
+ for (let u = 0; u < t.length; u++) {
606
+ let d = !1;
607
+ const m = t[u].key, h = t[u].order ?? "asc";
608
+ if (h === !1) continue;
609
+ let s = ce(i[1], m), o = ce(f[1], m), b = i[0].raw, c = f[0].raw;
610
+ if (h === "desc" && ([s, o] = [o, s], [b, c] = [c, b]), l?.sortRawFunctions?.[m]) {
611
+ const v = l.sortRawFunctions[m](b, c);
575
612
  if (v == null) continue;
576
- if (o = !0, v) return v;
613
+ if (d = !0, v) return v;
577
614
  }
578
- if (l?.sortFunctions?.[c]) {
579
- const v = l.sortFunctions[c](d, f);
615
+ if (l?.sortFunctions?.[m]) {
616
+ const v = l.sortFunctions[m](s, o);
580
617
  if (v == null) continue;
581
- if (o = !0, v) return v;
618
+ if (d = !0, v) return v;
582
619
  }
583
- if (!o && (d instanceof Date && f instanceof Date && (d = d.getTime(), f = f.getTime()), [d, f] = [d, f].map((v) => v != null ? v.toString().toLocaleLowerCase() : v), d !== f))
584
- return se(d) && se(f) ? 0 : se(d) ? -1 : se(f) ? 1 : !isNaN(d) && !isNaN(f) ? Number(d) - Number(f) : n.compare(d, f);
620
+ if (!d && (s instanceof Date && o instanceof Date && (s = s.getTime(), o = o.getTime()), [s, o] = [s, o].map((v) => v != null ? v.toString().toLocaleLowerCase() : v), s !== o))
621
+ return oe(s) && oe(o) ? 0 : oe(s) ? -1 : oe(o) ? 1 : !isNaN(s) && !isNaN(o) ? Number(s) - Number(o) : n.compare(s, o);
585
622
  }
586
623
  return 0;
587
624
  }).map((i) => {
588
- let [u] = i;
589
- return u;
625
+ let [f] = i;
626
+ return f;
590
627
  });
591
628
  }
592
- function Ca() {
593
- const e = j([]);
594
- Ct(() => e.value = []);
629
+ function La() {
630
+ const e = H([]);
631
+ Ot(() => e.value = []);
595
632
  function t(a, l) {
596
633
  e.value[l] = a;
597
634
  }
@@ -600,7 +637,7 @@ function Ca() {
600
637
  updateRef: t
601
638
  };
602
639
  }
603
- const _a = _({
640
+ const Aa = _({
604
641
  activeColor: String,
605
642
  start: {
606
643
  type: [Number, String],
@@ -618,19 +655,19 @@ const _a = _({
618
655
  },
619
656
  totalVisible: [Number, String],
620
657
  firstIcon: {
621
- type: O,
658
+ type: B,
622
659
  default: "$first"
623
660
  },
624
661
  prevIcon: {
625
- type: O,
662
+ type: B,
626
663
  default: "$prev"
627
664
  },
628
665
  nextIcon: {
629
- type: O,
666
+ type: B,
630
667
  default: "$next"
631
668
  },
632
669
  lastIcon: {
633
- type: O,
670
+ type: B,
634
671
  default: "$last"
635
672
  },
636
673
  ariaLabel: {
@@ -666,22 +703,22 @@ const _a = _({
666
703
  default: "..."
667
704
  },
668
705
  showFirstLastPage: Boolean,
669
- ...Kt(),
706
+ ...Ut(),
707
+ ...Je(),
708
+ ...le(),
670
709
  ...Ue(),
671
- ...ae(),
672
- ...ze(),
673
- ...Gt(),
674
- ...jt(),
675
- ...We({
710
+ ...zt(),
711
+ ...Wt(),
712
+ ...ze({
676
713
  tag: "nav"
677
714
  }),
678
- ...Fe(),
679
- ...Ht({
715
+ ...De(),
716
+ ...Gt({
680
717
  variant: "text"
681
718
  })
682
- }, "VPagination"), Ae = $()({
719
+ }, "VPagination"), Ee = $()({
683
720
  name: "VPagination",
684
- props: _a(),
721
+ props: Aa(),
685
722
  emits: {
686
723
  "update:modelValue": (e) => !0,
687
724
  first: (e) => !0,
@@ -698,71 +735,71 @@ const _a = _({
698
735
  t: r,
699
736
  n: i
700
737
  } = Z(), {
701
- isRtl: u
702
- } = $t(), {
703
- themeClasses: s
704
- } = Ie(e), {
705
- width: o
706
- } = fe(), c = ue(-1);
707
- Se(void 0, {
738
+ isRtl: f
739
+ } = Ht(), {
740
+ themeClasses: u
741
+ } = Fe(e), {
742
+ width: d
743
+ } = ge(), m = de(-1);
744
+ Pe(void 0, {
708
745
  scoped: !0
709
746
  });
710
747
  const {
711
- resizeRef: m
712
- } = Mt((p) => {
748
+ resizeRef: h
749
+ } = Kt((p) => {
713
750
  if (!p.length) return;
714
751
  const {
715
752
  target: x,
716
753
  contentRect: g
717
- } = p[0], k = x.querySelector(".v-pagination__list > *");
718
- if (!k) return;
719
- const T = g.width, R = k.offsetWidth + parseFloat(getComputedStyle(k).marginRight) * 2;
720
- c.value = b(T, R);
721
- }), d = V(() => parseInt(e.length, 10)), f = V(() => parseInt(e.start, 10)), y = V(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : c.value >= 0 ? c.value : b(o.value, 58));
722
- function b(p, x) {
754
+ } = p[0], D = x.querySelector(".v-pagination__list > *");
755
+ if (!D) return;
756
+ const C = g.width, R = D.offsetWidth + parseFloat(getComputedStyle(D).marginRight) * 2;
757
+ m.value = c(C, R);
758
+ }), s = F(() => parseInt(e.length, 10)), o = F(() => parseInt(e.start, 10)), b = F(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : m.value >= 0 ? m.value : c(d.value, 58));
759
+ function c(p, x) {
723
760
  const g = e.showFirstLastPage ? 5 : 3;
724
761
  return Math.max(0, Math.floor(
725
762
  // Round to two decimal places to avoid floating point errors
726
763
  Number(((p - x * g) / x).toFixed(2))
727
764
  ));
728
765
  }
729
- const v = V(() => {
730
- if (d.value <= 0 || isNaN(d.value) || d.value > Number.MAX_SAFE_INTEGER) return [];
731
- if (y.value <= 0) return [];
732
- if (y.value === 1) return [n.value];
733
- if (d.value <= y.value)
734
- return oe(d.value, f.value);
735
- const p = y.value % 2 === 0, x = p ? y.value / 2 : Math.floor(y.value / 2), g = p ? x : x + 1, k = d.value - x;
766
+ const v = F(() => {
767
+ if (s.value <= 0 || isNaN(s.value) || s.value > Number.MAX_SAFE_INTEGER) return [];
768
+ if (b.value <= 0) return [];
769
+ if (b.value === 1) return [n.value];
770
+ if (s.value <= b.value)
771
+ return ie(s.value, o.value);
772
+ const p = b.value % 2 === 0, x = p ? b.value / 2 : Math.floor(b.value / 2), g = p ? x : x + 1, D = s.value - x;
736
773
  if (g - n.value >= 0)
737
- return [...oe(Math.max(1, y.value - 1), f.value), e.ellipsis, d.value];
738
- if (n.value - k >= (p ? 1 : 0)) {
739
- const T = y.value - 1, R = d.value - T + f.value;
740
- return [f.value, e.ellipsis, ...oe(T, R)];
774
+ return [...ie(Math.max(1, b.value - 1), o.value), e.ellipsis, s.value];
775
+ if (n.value - D >= (p ? 1 : 0)) {
776
+ const C = b.value - 1, R = s.value - C + o.value;
777
+ return [o.value, e.ellipsis, ...ie(C, R)];
741
778
  } else {
742
- const T = Math.max(1, y.value - 2), R = T === 1 ? n.value : n.value - Math.ceil(T / 2) + f.value;
743
- return [f.value, e.ellipsis, ...oe(T, R), e.ellipsis, d.value];
779
+ const C = Math.max(1, b.value - 2), R = C === 1 ? n.value : n.value - Math.ceil(C / 2) + o.value;
780
+ return [o.value, e.ellipsis, ...ie(C, R), e.ellipsis, s.value];
744
781
  }
745
782
  });
746
- function F(p, x, g) {
783
+ function w(p, x, g) {
747
784
  p.preventDefault(), n.value = x, g && l(g, x);
748
785
  }
749
786
  const {
750
- refs: h,
751
- updateRef: I
752
- } = Ca();
753
- Se({
787
+ refs: y,
788
+ updateRef: P
789
+ } = La();
790
+ Pe({
754
791
  VPaginationBtn: {
755
- color: C(() => e.color),
756
- border: C(() => e.border),
757
- density: C(() => e.density),
758
- size: C(() => e.size),
759
- variant: C(() => e.variant),
760
- rounded: C(() => e.rounded),
761
- elevation: C(() => e.elevation)
792
+ color: T(() => e.color),
793
+ border: T(() => e.border),
794
+ density: T(() => e.density),
795
+ size: T(() => e.size),
796
+ variant: T(() => e.variant),
797
+ rounded: T(() => e.rounded),
798
+ elevation: T(() => e.elevation)
762
799
  }
763
800
  });
764
- const D = V(() => v.value.map((p, x) => {
765
- const g = (k) => I(k, x);
801
+ const V = F(() => v.value.map((p, x) => {
802
+ const g = (D) => P(D, x);
766
803
  if (typeof p == "string")
767
804
  return {
768
805
  isActive: !1,
@@ -776,9 +813,9 @@ const _a = _({
776
813
  }
777
814
  };
778
815
  {
779
- const k = p === n.value;
816
+ const D = p === n.value;
780
817
  return {
781
- isActive: k,
818
+ isActive: D,
782
819
  key: p,
783
820
  page: i(p),
784
821
  props: {
@@ -786,40 +823,40 @@ const _a = _({
786
823
  ellipsis: !1,
787
824
  icon: !0,
788
825
  disabled: !!e.disabled || Number(e.length) < 2,
789
- color: k ? e.activeColor : e.color,
790
- "aria-current": k,
791
- "aria-label": r(k ? e.currentPageAriaLabel : e.pageAriaLabel, p),
792
- onClick: (T) => F(T, p)
826
+ color: D ? e.activeColor : e.color,
827
+ "aria-current": D,
828
+ "aria-label": r(D ? e.currentPageAriaLabel : e.pageAriaLabel, p),
829
+ onClick: (C) => w(C, p)
793
830
  }
794
831
  };
795
832
  }
796
- })), P = V(() => {
797
- const p = !!e.disabled || n.value <= f.value, x = !!e.disabled || n.value >= f.value + d.value - 1;
833
+ })), k = F(() => {
834
+ const p = !!e.disabled || n.value <= o.value, x = !!e.disabled || n.value >= o.value + s.value - 1;
798
835
  return {
799
836
  first: e.showFirstLastPage ? {
800
- icon: u.value ? e.lastIcon : e.firstIcon,
801
- onClick: (g) => F(g, f.value, "first"),
837
+ icon: f.value ? e.lastIcon : e.firstIcon,
838
+ onClick: (g) => w(g, o.value, "first"),
802
839
  disabled: p,
803
840
  "aria-label": r(e.firstAriaLabel),
804
841
  "aria-disabled": p
805
842
  } : void 0,
806
843
  prev: {
807
- icon: u.value ? e.nextIcon : e.prevIcon,
808
- onClick: (g) => F(g, n.value - 1, "prev"),
844
+ icon: f.value ? e.nextIcon : e.prevIcon,
845
+ onClick: (g) => w(g, n.value - 1, "prev"),
809
846
  disabled: p,
810
847
  "aria-label": r(e.previousAriaLabel),
811
848
  "aria-disabled": p
812
849
  },
813
850
  next: {
814
- icon: u.value ? e.prevIcon : e.nextIcon,
815
- onClick: (g) => F(g, n.value + 1, "next"),
851
+ icon: f.value ? e.prevIcon : e.nextIcon,
852
+ onClick: (g) => w(g, n.value + 1, "next"),
816
853
  disabled: x,
817
854
  "aria-label": r(e.nextAriaLabel),
818
855
  "aria-disabled": x
819
856
  },
820
857
  last: e.showFirstLastPage ? {
821
- icon: u.value ? e.firstIcon : e.lastIcon,
822
- onClick: (g) => F(g, f.value + d.value - 1, "last"),
858
+ icon: f.value ? e.firstIcon : e.lastIcon,
859
+ onClick: (g) => w(g, o.value + s.value - 1, "last"),
823
860
  disabled: x,
824
861
  "aria-label": r(e.lastAriaLabel),
825
862
  "aria-disabled": x
@@ -827,16 +864,16 @@ const _a = _({
827
864
  };
828
865
  });
829
866
  function L() {
830
- const p = n.value - f.value;
831
- h.value[p]?.$el.focus();
867
+ const p = n.value - o.value;
868
+ y.value[p]?.$el.focus();
832
869
  }
833
870
  function N(p) {
834
- p.key === Be.left && !e.disabled && n.value > Number(e.start) ? (n.value = n.value - 1, Ce(L)) : p.key === Be.right && !e.disabled && n.value < f.value + d.value - 1 && (n.value = n.value + 1, Ce(L));
871
+ p.key === Be.left && !e.disabled && n.value > Number(e.start) ? (n.value = n.value - 1, _e(L)) : p.key === Be.right && !e.disabled && n.value < o.value + s.value - 1 && (n.value = n.value + 1, _e(L));
835
872
  }
836
- return K(() => w(e.tag, {
837
- ref: m,
838
- class: G(["v-pagination", s.value, e.class]),
839
- style: we(e.style),
873
+ return G(() => I(e.tag, {
874
+ ref: h,
875
+ class: K(["v-pagination", u.value, e.class]),
876
+ style: Ie(e.style),
840
877
  role: "navigation",
841
878
  "aria-label": r(e.ariaLabel),
842
879
  onKeydown: N,
@@ -848,21 +885,21 @@ const _a = _({
848
885
  key: "first",
849
886
  class: "v-pagination__first",
850
887
  "data-test": "v-pagination-first"
851
- }, [a.first ? a.first(P.value.first) : w(W, B({
888
+ }, [a.first ? a.first(k.value.first) : I(W, O({
852
889
  _as: "VPaginationBtn"
853
- }, P.value.first), null)]), S("li", {
890
+ }, k.value.first), null)]), S("li", {
854
891
  key: "prev",
855
892
  class: "v-pagination__prev",
856
893
  "data-test": "v-pagination-prev"
857
- }, [a.prev ? a.prev(P.value.prev) : w(W, B({
894
+ }, [a.prev ? a.prev(k.value.prev) : I(W, O({
858
895
  _as: "VPaginationBtn"
859
- }, P.value.prev), null)]), D.value.map((p, x) => S("li", {
896
+ }, k.value.prev), null)]), V.value.map((p, x) => S("li", {
860
897
  key: p.key,
861
- class: G(["v-pagination__item", {
898
+ class: K(["v-pagination__item", {
862
899
  "v-pagination__item--is-active": p.isActive
863
900
  }]),
864
901
  "data-test": "v-pagination-item"
865
- }, [a.item ? a.item(p) : w(W, B({
902
+ }, [a.item ? a.item(p) : I(W, O({
866
903
  _as: "VPaginationBtn"
867
904
  }, p.props), {
868
905
  default: () => [p.page]
@@ -870,32 +907,33 @@ const _a = _({
870
907
  key: "next",
871
908
  class: "v-pagination__next",
872
909
  "data-test": "v-pagination-next"
873
- }, [a.next ? a.next(P.value.next) : w(W, B({
910
+ }, [a.next ? a.next(k.value.next) : I(W, O({
874
911
  _as: "VPaginationBtn"
875
- }, P.value.next), null)]), e.showFirstLastPage && S("li", {
912
+ }, k.value.next), null)]), e.showFirstLastPage && S("li", {
876
913
  key: "last",
877
914
  class: "v-pagination__last",
878
915
  "data-test": "v-pagination-last"
879
- }, [a.last ? a.last(P.value.last) : w(W, B({
916
+ }, [a.last ? a.last(k.value.last) : I(W, O({
880
917
  _as: "VPaginationBtn"
881
- }, P.value.last), null)])])]
918
+ }, k.value.last), null)])])]
882
919
  })), {};
883
920
  }
884
- }), ot = _({
921
+ }), it = _({
922
+ color: String,
885
923
  prevIcon: {
886
- type: O,
924
+ type: B,
887
925
  default: "$prev"
888
926
  },
889
927
  nextIcon: {
890
- type: O,
928
+ type: B,
891
929
  default: "$next"
892
930
  },
893
931
  firstIcon: {
894
- type: O,
932
+ type: B,
895
933
  default: "$first"
896
934
  },
897
935
  lastIcon: {
898
- type: O,
936
+ type: B,
899
937
  default: "$last"
900
938
  },
901
939
  itemsPerPageText: {
@@ -942,9 +980,9 @@ const _a = _({
942
980
  }]
943
981
  },
944
982
  showCurrentPage: Boolean
945
- }, "VDataTableFooter"), Ee = $()({
983
+ }, "VDataTableFooter"), Ne = $()({
946
984
  name: "VDataTableFooter",
947
- props: ot(),
985
+ props: it(),
948
986
  setup(e, t) {
949
987
  let {
950
988
  slots: a
@@ -955,39 +993,40 @@ const _a = _({
955
993
  page: n,
956
994
  pageCount: r,
957
995
  startIndex: i,
958
- stopIndex: u,
959
- itemsLength: s,
960
- itemsPerPage: o,
961
- setItemsPerPage: c
962
- } = pa(), m = V(() => e.itemsPerPageOptions.map((d) => typeof d == "number" ? {
963
- value: d,
964
- title: d === -1 ? l("$vuetify.dataFooter.itemsPerPageAll") : String(d)
996
+ stopIndex: f,
997
+ itemsLength: u,
998
+ itemsPerPage: d,
999
+ setItemsPerPage: m
1000
+ } = Pa(), h = F(() => e.itemsPerPageOptions.map((s) => typeof s == "number" ? {
1001
+ value: s,
1002
+ title: s === -1 ? l("$vuetify.dataFooter.itemsPerPageAll") : String(s)
965
1003
  } : {
966
- ...d,
967
- title: isNaN(Number(d.title)) ? l(d.title) : d.title
1004
+ ...s,
1005
+ title: isNaN(Number(s.title)) ? l(s.title) : s.title
968
1006
  }));
969
- return K(() => {
970
- const d = Ae.filterProps(e);
1007
+ return G(() => {
1008
+ const s = Ee.filterProps(e);
971
1009
  return S("div", {
972
1010
  class: "v-data-table-footer"
973
1011
  }, [a.prepend?.(), S("div", {
974
1012
  class: "v-data-table-footer__items-per-page"
975
1013
  }, [S("span", {
976
1014
  "aria-label": l(e.itemsPerPageText)
977
- }, [l(e.itemsPerPageText)]), w(Qe, {
978
- items: m.value,
979
- modelValue: o.value,
980
- "onUpdate:modelValue": (f) => c(Number(f)),
1015
+ }, [l(e.itemsPerPageText)]), I(Xe, {
1016
+ items: h.value,
1017
+ itemColor: e.color,
1018
+ modelValue: d.value,
1019
+ "onUpdate:modelValue": (o) => m(Number(o)),
981
1020
  density: "compact",
982
1021
  variant: "outlined",
983
1022
  hideDetails: !0
984
1023
  }, null)]), S("div", {
985
1024
  class: "v-data-table-footer__info"
986
- }, [S("div", null, [l(e.pageText, s.value ? i.value + 1 : 0, u.value, s.value)])]), S("div", {
1025
+ }, [S("div", null, [l(e.pageText, u.value ? i.value + 1 : 0, f.value, u.value)])]), S("div", {
987
1026
  class: "v-data-table-footer__pagination"
988
- }, [w(Ae, B({
1027
+ }, [I(Ee, O({
989
1028
  modelValue: n.value,
990
- "onUpdate:modelValue": (f) => n.value = f,
1029
+ "onUpdate:modelValue": (o) => n.value = o,
991
1030
  density: "comfortable",
992
1031
  firstAriaLabel: e.firstPageLabel,
993
1032
  lastAriaLabel: e.lastPageLabel,
@@ -998,10 +1037,10 @@ const _a = _({
998
1037
  showFirstLastPage: !0,
999
1038
  totalVisible: e.showCurrentPage ? 1 : 0,
1000
1039
  variant: "plain"
1001
- }, d), null)])]);
1040
+ }, Ve(s, ["color"])), null)])]);
1002
1041
  }), {};
1003
1042
  }
1004
- }), te = Wt({
1043
+ }), ae = Jt({
1005
1044
  align: {
1006
1045
  type: String,
1007
1046
  default: "start"
@@ -1027,8 +1066,8 @@ const _a = _({
1027
1066
  slots: a
1028
1067
  } = t;
1029
1068
  const l = e.tag ?? "td", n = typeof e.fixed == "string" ? e.fixed : e.fixed ? "start" : "none";
1030
- return w(l, {
1031
- class: G(["v-data-table__td", {
1069
+ return I(l, {
1070
+ class: K(["v-data-table__td", {
1032
1071
  "v-data-table-column--fixed": n === "start",
1033
1072
  "v-data-table-column--fixed-end": n === "end",
1034
1073
  "v-data-table-column--last-fixed": e.lastFixed,
@@ -1048,16 +1087,16 @@ const _a = _({
1048
1087
  }, {
1049
1088
  default: () => [a.default?.()]
1050
1089
  });
1051
- }), Ba = _({
1090
+ }), Ea = _({
1052
1091
  headers: Array
1053
- }, "DataTable-header"), it = Symbol.for("vuetify:data-table-headers"), ut = {
1092
+ }, "DataTable-header"), ut = Symbol.for("vuetify:data-table-headers"), dt = {
1054
1093
  title: "",
1055
1094
  sortable: !1
1056
- }, Oa = {
1057
- ...ut,
1095
+ }, Na = {
1096
+ ...dt,
1058
1097
  width: 48
1059
1098
  };
1060
- function La() {
1099
+ function Ra() {
1061
1100
  const t = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []).map((a) => ({
1062
1101
  element: a,
1063
1102
  priority: 0
@@ -1090,53 +1129,53 @@ function La() {
1090
1129
  dequeue: () => t.shift()
1091
1130
  };
1092
1131
  }
1093
- function ke(e) {
1132
+ function we(e) {
1094
1133
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1095
1134
  if (!e.children)
1096
1135
  t.push(e);
1097
1136
  else
1098
1137
  for (const a of e.children)
1099
- ke(a, t);
1138
+ we(a, t);
1100
1139
  return t;
1101
1140
  }
1102
- function dt(e) {
1141
+ function ct(e) {
1103
1142
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : /* @__PURE__ */ new Set();
1104
1143
  for (const a of e)
1105
- a.key && t.add(a.key), a.children && dt(a.children, t);
1144
+ a.key && t.add(a.key), a.children && ct(a.children, t);
1106
1145
  return t;
1107
1146
  }
1108
- function Aa(e) {
1147
+ function $a(e) {
1109
1148
  if (e.key) {
1110
- if (e.key === "data-table-group") return ut;
1111
- if (["data-table-expand", "data-table-select"].includes(e.key)) return Oa;
1149
+ if (e.key === "data-table-group") return dt;
1150
+ if (["data-table-expand", "data-table-select"].includes(e.key)) return Na;
1112
1151
  }
1113
1152
  }
1114
- function Te(e) {
1153
+ function Ce(e) {
1115
1154
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1116
- return e.children ? Math.max(t, ...e.children.map((a) => Te(a, t + 1))) : t;
1155
+ return e.children ? Math.max(t, ...e.children.map((a) => Ce(a, t + 1))) : t;
1117
1156
  }
1118
- function Ea(e) {
1157
+ function Ma(e) {
1119
1158
  let t = !1;
1120
1159
  function a(r, i) {
1121
- let u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none";
1160
+ let f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none";
1122
1161
  if (r)
1123
- if (u !== "none" && (r.fixed = u), r.fixed === !0 && (r.fixed = "start"), r.fixed === i)
1162
+ if (f !== "none" && (r.fixed = f), r.fixed === !0 && (r.fixed = "start"), r.fixed === i)
1124
1163
  if (r.children)
1125
1164
  if (i === "start")
1126
- for (let s = r.children.length - 1; s >= 0; s--)
1127
- a(r.children[s], i, i);
1165
+ for (let u = r.children.length - 1; u >= 0; u--)
1166
+ a(r.children[u], i, i);
1128
1167
  else
1129
- for (let s = 0; s < r.children.length; s++)
1130
- a(r.children[s], i, i);
1168
+ for (let u = 0; u < r.children.length; u++)
1169
+ a(r.children[u], i, i);
1131
1170
  else
1132
- !t && i === "start" ? r.lastFixed = !0 : !t && i === "end" ? r.firstFixedEnd = !0 : isNaN(Number(r.width)) ? zt(`Multiple fixed columns should have a static width (key: ${r.key})`) : r.minWidth = Math.max(Number(r.width) || 0, Number(r.minWidth) || 0), t = !0;
1171
+ !t && i === "start" ? r.lastFixed = !0 : !t && i === "end" ? r.firstFixedEnd = !0 : isNaN(Number(r.width)) ? Qt(`Multiple fixed columns should have a static width (key: ${r.key})`) : r.minWidth = Math.max(Number(r.width) || 0, Number(r.minWidth) || 0), t = !0;
1133
1172
  else if (r.children)
1134
1173
  if (i === "start")
1135
- for (let s = r.children.length - 1; s >= 0; s--)
1136
- a(r.children[s], i);
1174
+ for (let u = r.children.length - 1; u >= 0; u--)
1175
+ a(r.children[u], i);
1137
1176
  else
1138
- for (let s = 0; s < r.children.length; s++)
1139
- a(r.children[s], i);
1177
+ for (let u = 0; u < r.children.length; u++)
1178
+ a(r.children[u], i);
1140
1179
  else
1141
1180
  t = !1;
1142
1181
  }
@@ -1146,127 +1185,127 @@ function Ea(e) {
1146
1185
  a(e[r], "end");
1147
1186
  let l = 0;
1148
1187
  for (let r = 0; r < e.length; r++)
1149
- l = ct(e[r], l);
1188
+ l = ft(e[r], l);
1150
1189
  let n = 0;
1151
1190
  for (let r = e.length - 1; r >= 0; r--)
1152
- n = ft(e[r], n);
1191
+ n = vt(e[r], n);
1153
1192
  }
1154
- function ct(e) {
1193
+ function ft(e) {
1155
1194
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1156
1195
  if (!e) return t;
1157
1196
  if (e.children) {
1158
1197
  e.fixedOffset = t;
1159
1198
  for (const a of e.children)
1160
- t = ct(a, t);
1199
+ t = ft(a, t);
1161
1200
  } else e.fixed && e.fixed !== "end" && (e.fixedOffset = t, t += parseFloat(e.width || "0") || 0);
1162
1201
  return t;
1163
1202
  }
1164
- function ft(e) {
1203
+ function vt(e) {
1165
1204
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1166
1205
  if (!e) return t;
1167
1206
  if (e.children) {
1168
1207
  e.fixedEndOffset = t;
1169
1208
  for (const a of e.children)
1170
- t = ft(a, t);
1209
+ t = vt(a, t);
1171
1210
  } else e.fixed === "end" && (e.fixedEndOffset = t, t += parseFloat(e.width || "0") || 0);
1172
1211
  return t;
1173
1212
  }
1174
- function Na(e, t) {
1213
+ function ja(e, t) {
1175
1214
  const a = [];
1176
1215
  let l = 0;
1177
- const n = La(e);
1216
+ const n = Ra(e);
1178
1217
  for (; n.size() > 0; ) {
1179
1218
  let i = n.count();
1180
- const u = [];
1181
- let s = 1;
1219
+ const f = [];
1220
+ let u = 1;
1182
1221
  for (; i > 0; ) {
1183
1222
  const {
1184
- element: o,
1185
- priority: c
1186
- } = n.dequeue(), m = t - l - Te(o);
1187
- if (u.push({
1188
- ...o,
1189
- rowspan: m ?? 1,
1190
- colspan: o.children ? ke(o).length : 1
1191
- }), o.children)
1192
- for (const d of o.children) {
1193
- const f = c % 1 + s / Math.pow(10, l + 2);
1194
- n.enqueue(d, l + m + f);
1223
+ element: d,
1224
+ priority: m
1225
+ } = n.dequeue(), h = t - l - Ce(d);
1226
+ if (f.push({
1227
+ ...d,
1228
+ rowspan: h ?? 1,
1229
+ colspan: d.children ? we(d).length : 1
1230
+ }), d.children)
1231
+ for (const s of d.children) {
1232
+ const o = m % 1 + u / Math.pow(10, l + 2);
1233
+ n.enqueue(s, l + h + o);
1195
1234
  }
1196
- s += 1, i -= 1;
1235
+ u += 1, i -= 1;
1197
1236
  }
1198
- l += 1, a.push(u);
1237
+ l += 1, a.push(f);
1199
1238
  }
1200
1239
  return {
1201
- columns: e.map((i) => ke(i)).flat(),
1240
+ columns: e.map((i) => we(i)).flat(),
1202
1241
  headers: a
1203
1242
  };
1204
1243
  }
1205
- function vt(e) {
1244
+ function gt(e) {
1206
1245
  const t = [];
1207
1246
  for (const a of e) {
1208
1247
  const l = {
1209
- ...Aa(a),
1248
+ ...$a(a),
1210
1249
  ...a
1211
1250
  }, n = l.key ?? (typeof l.value == "string" ? l.value : null), r = l.value ?? n ?? null, i = {
1212
1251
  ...l,
1213
1252
  key: n,
1214
1253
  value: r,
1215
1254
  sortable: l.sortable ?? (l.key != null || !!l.sort),
1216
- children: l.children ? vt(l.children) : void 0
1255
+ children: l.children ? gt(l.children) : void 0
1217
1256
  };
1218
1257
  t.push(i);
1219
1258
  }
1220
1259
  return t;
1221
1260
  }
1222
- function Ra(e, t) {
1223
- const a = j([]), l = j([]), n = j({}), r = j({}), i = j({});
1224
- je(() => {
1225
- const o = (e.headers || Object.keys(e.items[0] ?? {}).map((b) => ({
1226
- key: b,
1227
- title: _t(b)
1228
- }))).slice(), c = dt(o);
1229
- t?.groupBy?.value.length && !c.has("data-table-group") && o.unshift({
1261
+ function Ha(e, t) {
1262
+ const a = H([]), l = H([]), n = H({}), r = H({}), i = H({});
1263
+ Ke(() => {
1264
+ const d = (e.headers || Object.keys(e.items[0] ?? {}).map((c) => ({
1265
+ key: c,
1266
+ title: Bt(c)
1267
+ }))).slice(), m = ct(d);
1268
+ t?.groupBy?.value.length && !m.has("data-table-group") && d.unshift({
1230
1269
  key: "data-table-group",
1231
1270
  title: "Group"
1232
- }), t?.showSelect?.value && !c.has("data-table-select") && o.unshift({
1271
+ }), t?.showSelect?.value && !m.has("data-table-select") && d.unshift({
1233
1272
  key: "data-table-select"
1234
- }), t?.showExpand?.value && !c.has("data-table-expand") && o.push({
1273
+ }), t?.showExpand?.value && !m.has("data-table-expand") && d.push({
1235
1274
  key: "data-table-expand"
1236
1275
  });
1237
- const m = vt(o);
1238
- Ea(m);
1239
- const d = Math.max(...m.map((b) => Te(b))) + 1, f = Na(m, d);
1240
- a.value = f.headers, l.value = f.columns;
1241
- const y = f.headers.flat(1);
1242
- for (const b of y)
1243
- b.key && (b.sortable && (b.sort && (n.value[b.key] = b.sort), b.sortRaw && (r.value[b.key] = b.sortRaw)), b.filter && (i.value[b.key] = b.filter));
1276
+ const h = gt(d);
1277
+ Ma(h);
1278
+ const s = Math.max(...h.map((c) => Ce(c))) + 1, o = ja(h, s);
1279
+ a.value = o.headers, l.value = o.columns;
1280
+ const b = o.headers.flat(1);
1281
+ for (const c of b)
1282
+ c.key && (c.sortable && (c.sort && (n.value[c.key] = c.sort), c.sortRaw && (r.value[c.key] = c.sortRaw)), c.filter && (i.value[c.key] = c.filter));
1244
1283
  });
1245
- const u = {
1284
+ const f = {
1246
1285
  headers: a,
1247
1286
  columns: l,
1248
1287
  sortFunctions: n,
1249
1288
  sortRawFunctions: r,
1250
1289
  filterFunctions: i
1251
1290
  };
1252
- return Y(it, u), u;
1291
+ return Y(ut, f), f;
1253
1292
  }
1254
- function ge() {
1255
- const e = Q(it);
1293
+ function be() {
1294
+ const e = Q(ut);
1256
1295
  if (!e) throw new Error("Missing headers!");
1257
1296
  return e;
1258
1297
  }
1259
- const gt = _({
1298
+ const mt = _({
1260
1299
  color: String,
1261
1300
  disableSort: Boolean,
1262
1301
  fixedHeader: Boolean,
1263
1302
  multiSort: Boolean,
1264
1303
  sortAscIcon: {
1265
- type: O,
1304
+ type: B,
1266
1305
  default: "$sortAsc"
1267
1306
  },
1268
1307
  sortDescIcon: {
1269
- type: O,
1308
+ type: B,
1270
1309
  default: "$sortDesc"
1271
1310
  },
1272
1311
  headerProps: {
@@ -1274,12 +1313,12 @@ const gt = _({
1274
1313
  },
1275
1314
  /** @deprecated */
1276
1315
  sticky: Boolean,
1277
- ...ae(),
1278
- ...Ve(),
1279
- ...Qt()
1280
- }, "VDataTableHeaders"), Ne = $()({
1316
+ ...le(),
1317
+ ...Te(),
1318
+ ...Zt()
1319
+ }, "VDataTableHeaders"), Re = $()({
1281
1320
  name: "VDataTableHeaders",
1282
- props: gt(),
1321
+ props: mt(),
1283
1322
  setup(e, t) {
1284
1323
  let {
1285
1324
  slots: a
@@ -1290,60 +1329,60 @@ const gt = _({
1290
1329
  toggleSort: n,
1291
1330
  sortBy: r,
1292
1331
  isSorted: i
1293
- } = st(), {
1294
- someSelected: u,
1295
- allSelected: s,
1296
- selectAll: o,
1297
- showSelectAll: c
1298
- } = ve(), {
1299
- columns: m,
1300
- headers: d
1301
- } = ge(), {
1302
- loaderClasses: f
1303
- } = Ut(e);
1304
- function y(x, g) {
1332
+ } = ot(), {
1333
+ someSelected: f,
1334
+ allSelected: u,
1335
+ selectAll: d,
1336
+ showSelectAll: m
1337
+ } = me(), {
1338
+ columns: h,
1339
+ headers: s
1340
+ } = be(), {
1341
+ loaderClasses: o
1342
+ } = Xt(e);
1343
+ function b(x, g) {
1305
1344
  if (!(e.sticky || e.fixedHeader) && !x.fixed) return;
1306
- const k = typeof x.fixed == "string" ? x.fixed : x.fixed ? "start" : "none";
1345
+ const D = typeof x.fixed == "string" ? x.fixed : x.fixed ? "start" : "none";
1307
1346
  return {
1308
1347
  position: "sticky",
1309
- left: k === "start" ? A(x.fixedOffset) : void 0,
1310
- right: k === "end" ? A(x.fixedEndOffset) : void 0,
1348
+ left: D === "start" ? A(x.fixedOffset) : void 0,
1349
+ right: D === "end" ? A(x.fixedEndOffset) : void 0,
1311
1350
  top: e.sticky || e.fixedHeader ? `calc(var(--v-table-header-height) * ${g})` : void 0
1312
1351
  };
1313
1352
  }
1314
- function b(x, g) {
1315
- x.key === "Enter" && !e.disableSort && n(g);
1353
+ function c(x, g) {
1354
+ x.key === "Enter" && !e.disableSort && n(g, x);
1316
1355
  }
1317
1356
  function v(x) {
1318
- const g = r.value.find((k) => k.key === x.key);
1357
+ const g = r.value.find((D) => D.key === x.key);
1319
1358
  return g ? g.order === "asc" ? e.sortAscIcon : e.sortDescIcon : e.sortAscIcon;
1320
1359
  }
1321
1360
  const {
1322
- backgroundColorClasses: F,
1323
- backgroundColorStyles: h
1324
- } = Je(() => e.color), {
1325
- displayClasses: I,
1326
- mobile: D
1327
- } = fe(e), P = V(() => ({
1328
- headers: d.value,
1329
- columns: m.value,
1361
+ backgroundColorClasses: w,
1362
+ backgroundColorStyles: y
1363
+ } = Qe(() => e.color), {
1364
+ displayClasses: P,
1365
+ mobile: V
1366
+ } = ge(e), k = F(() => ({
1367
+ headers: s.value,
1368
+ columns: h.value,
1330
1369
  toggleSort: n,
1331
1370
  isSorted: i,
1332
1371
  sortBy: r.value,
1333
- someSelected: u.value,
1334
- allSelected: s.value,
1335
- selectAll: o,
1372
+ someSelected: f.value,
1373
+ allSelected: u.value,
1374
+ selectAll: d,
1336
1375
  getSortIcon: v
1337
- })), L = V(() => ["v-data-table__th", {
1376
+ })), L = F(() => ["v-data-table__th", {
1338
1377
  "v-data-table__th--sticky": e.sticky || e.fixedHeader
1339
- }, I.value, f.value]), N = (x) => {
1378
+ }, P.value, o.value]), N = (x) => {
1340
1379
  let {
1341
1380
  column: g,
1342
- x: k,
1343
- y: T
1381
+ x: D,
1382
+ y: C
1344
1383
  } = x;
1345
- const R = g.key === "data-table-select" || g.key === "data-table-expand", le = g.key === "data-table-group" && g.width === 0 && !g.title, be = B(e.headerProps ?? {}, g.headerProps ?? {});
1346
- return w(te, B({
1384
+ const R = g.key === "data-table-select" || g.key === "data-table-expand", ne = g.key === "data-table-group" && g.width === 0 && !g.title, ye = O(e.headerProps ?? {}, g.headerProps ?? {});
1385
+ return I(ae, O({
1347
1386
  tag: "th",
1348
1387
  align: g.align,
1349
1388
  class: [{
@@ -1355,7 +1394,7 @@ const gt = _({
1355
1394
  width: A(g.width),
1356
1395
  minWidth: A(g.minWidth),
1357
1396
  maxWidth: A(g.maxWidth),
1358
- ...y(g, T)
1397
+ ...b(g, C)
1359
1398
  },
1360
1399
  colspan: g.colspan,
1361
1400
  rowspan: g.rowspan,
@@ -1364,54 +1403,53 @@ const gt = _({
1364
1403
  lastFixed: g.lastFixed,
1365
1404
  firstFixedEnd: g.firstFixedEnd,
1366
1405
  noPadding: R,
1367
- empty: le,
1406
+ empty: ne,
1368
1407
  tabindex: g.sortable ? 0 : void 0,
1369
- onClick: g.sortable ? () => n(g) : void 0,
1370
- onKeydown: g.sortable ? (M) => b(M, g) : void 0
1371
- }, be), {
1408
+ onClick: g.sortable ? (M) => n(g, M) : void 0,
1409
+ onKeydown: g.sortable ? (M) => c(M, g) : void 0
1410
+ }, ye), {
1372
1411
  default: () => {
1373
1412
  const M = `header.${g.key}`, X = {
1374
1413
  column: g,
1375
- selectAll: o,
1414
+ selectAll: d,
1376
1415
  isSorted: i,
1377
1416
  toggleSort: n,
1378
1417
  sortBy: r.value,
1379
- someSelected: u.value,
1380
- allSelected: s.value,
1418
+ someSelected: f.value,
1419
+ allSelected: u.value,
1381
1420
  getSortIcon: v
1382
1421
  };
1383
- return a[M] ? a[M](X) : le ? "" : g.key === "data-table-select" ? a["header.data-table-select"]?.(X) ?? (c.value && w(De, {
1422
+ return a[M] ? a[M](X) : ne ? "" : g.key === "data-table-select" ? a["header.data-table-select"]?.(X) ?? (m.value && I(fe, {
1423
+ color: e.color,
1384
1424
  density: e.density,
1385
- modelValue: s.value,
1386
- indeterminate: u.value && !s.value,
1387
- "onUpdate:modelValue": o
1425
+ modelValue: u.value,
1426
+ indeterminate: f.value && !u.value,
1427
+ "onUpdate:modelValue": d
1388
1428
  }, null)) : S("div", {
1389
1429
  class: "v-data-table-header__content"
1390
- }, [S("span", null, [g.title]), g.sortable && !e.disableSort && w(Oe, {
1430
+ }, [S("span", null, [g.title]), g.sortable && !e.disableSort && I(Le, {
1391
1431
  key: "icon",
1392
1432
  class: "v-data-table-header__sort-icon",
1393
1433
  icon: v(g)
1394
1434
  }, null), e.multiSort && i(g) && S("div", {
1395
1435
  key: "badge",
1396
- class: G(["v-data-table-header__sort-badge", ...F.value]),
1397
- style: we(h.value)
1398
- }, [r.value.findIndex((he) => he.key === g.key) + 1])]);
1436
+ class: K(["v-data-table-header__sort-badge", ...w.value]),
1437
+ style: Ie(y.value)
1438
+ }, [r.value.findIndex((q) => q.key === g.key) + 1])]);
1399
1439
  }
1400
1440
  });
1401
1441
  }, p = () => {
1402
- const x = V(() => m.value.filter((k) => k?.sortable && !e.disableSort)), g = V(() => {
1403
- if (m.value.find((T) => T.key === "data-table-select") != null)
1404
- return s.value ? "$checkboxOn" : u.value ? "$checkboxIndeterminate" : "$checkboxOff";
1405
- });
1406
- return w(te, B({
1442
+ const x = F(() => h.value.filter((g) => g?.sortable && !e.disableSort));
1443
+ return I(ae, O({
1407
1444
  tag: "th",
1408
1445
  class: [...L.value],
1409
- colspan: d.value.length + 1
1446
+ colspan: s.value.length + 1
1410
1447
  }, e.headerProps), {
1411
1448
  default: () => [S("div", {
1412
1449
  class: "v-data-table-header__content"
1413
- }, [w(Qe, {
1450
+ }, [I(Xe, {
1414
1451
  chips: !0,
1452
+ color: e.color,
1415
1453
  class: "v-data-table__td-sort-select",
1416
1454
  clearable: !0,
1417
1455
  density: "default",
@@ -1420,59 +1458,65 @@ const gt = _({
1420
1458
  multiple: e.multiSort,
1421
1459
  variant: "underlined",
1422
1460
  "onClick:clear": () => r.value = [],
1423
- appendIcon: g.value,
1424
- "onClick:append": () => o(!s.value)
1461
+ "onClick:append": () => d(!u.value)
1425
1462
  }, {
1426
- chip: (k) => w(ta, {
1427
- onClick: k.item.raw?.sortable ? () => n(k.item.raw) : void 0,
1428
- onMousedown: (T) => {
1429
- T.preventDefault(), T.stopPropagation();
1463
+ append: () => I(fe, {
1464
+ color: e.color,
1465
+ density: "compact",
1466
+ modelValue: u.value,
1467
+ indeterminate: f.value && !u.value,
1468
+ "onUpdate:modelValue": d
1469
+ }, null),
1470
+ chip: (g) => I(na, {
1471
+ onClick: g.item.raw?.sortable ? () => n(g.item.raw) : void 0,
1472
+ onMousedown: (D) => {
1473
+ D.preventDefault(), D.stopPropagation();
1430
1474
  }
1431
1475
  }, {
1432
- default: () => [k.item.title, w(Oe, {
1433
- class: G(["v-data-table__td-sort-icon", i(k.item.raw) && "v-data-table__td-sort-icon-active"]),
1434
- icon: v(k.item.raw),
1476
+ default: () => [g.item.title, I(Le, {
1477
+ class: K(["v-data-table__td-sort-icon", i(g.item.raw) && "v-data-table__td-sort-icon-active"]),
1478
+ icon: v(g.item.raw),
1435
1479
  size: "small"
1436
1480
  }, null)]
1437
1481
  })
1438
1482
  })])]
1439
1483
  });
1440
1484
  };
1441
- K(() => D.value ? S("tr", null, [w(p, null, null)]) : S(U, null, [a.headers ? a.headers(P.value) : d.value.map((x, g) => S("tr", null, [x.map((k, T) => w(N, {
1442
- column: k,
1443
- x: T,
1485
+ G(() => V.value ? S("tr", null, [I(p, null, null)]) : S(U, null, [a.headers ? a.headers(k.value) : s.value.map((x, g) => S("tr", null, [x.map((D, C) => I(N, {
1486
+ column: D,
1487
+ x: C,
1444
1488
  y: g
1445
1489
  }, null))])), e.loading && S("tr", {
1446
1490
  class: "v-data-table-progress"
1447
1491
  }, [S("th", {
1448
- colspan: m.value.length
1449
- }, [w(Jt, {
1492
+ colspan: h.value.length
1493
+ }, [I(Yt, {
1450
1494
  name: "v-data-table-progress",
1451
1495
  absolute: !0,
1452
1496
  active: !0,
1453
- color: typeof e.loading == "boolean" ? void 0 : e.loading,
1497
+ color: typeof e.loading == "boolean" || e.loading === "true" ? e.color : e.loading,
1454
1498
  indeterminate: !0
1455
1499
  }, {
1456
1500
  default: a.loader
1457
1501
  })])])]));
1458
1502
  }
1459
- }), mt = _({
1503
+ }), bt = _({
1460
1504
  item: {
1461
1505
  type: Object,
1462
1506
  required: !0
1463
1507
  },
1464
1508
  groupCollapseIcon: {
1465
- type: O,
1509
+ type: B,
1466
1510
  default: "$tableGroupCollapse"
1467
1511
  },
1468
1512
  groupExpandIcon: {
1469
- type: O,
1513
+ type: B,
1470
1514
  default: "$tableGroupExpand"
1471
1515
  },
1472
- ...ae()
1473
- }, "VDataTableGroupHeaderRow"), $a = $()({
1516
+ ...le()
1517
+ }, "VDataTableGroupHeaderRow"), Ka = $()({
1474
1518
  name: "VDataTableGroupHeaderRow",
1475
- props: mt(),
1519
+ props: bt(),
1476
1520
  setup(e, t) {
1477
1521
  let {
1478
1522
  slots: a
@@ -1481,82 +1525,83 @@ const gt = _({
1481
1525
  isGroupOpen: l,
1482
1526
  toggleGroup: n,
1483
1527
  extractRows: r
1484
- } = qe(), {
1528
+ } = et(), {
1485
1529
  isSelected: i,
1486
- isSomeSelected: u,
1487
- select: s
1488
- } = ve(), {
1489
- columns: o
1490
- } = ge(), c = V(() => r([e.item])), m = C(() => o.value.length - (o.value.some((d) => d.key === "data-table-select") ? 1 : 0));
1530
+ isSomeSelected: f,
1531
+ select: u
1532
+ } = me(), {
1533
+ columns: d
1534
+ } = be(), m = F(() => r([e.item])), h = T(() => d.value.length - (d.value.some((s) => s.key === "data-table-select") ? 1 : 0));
1491
1535
  return () => S("tr", {
1492
1536
  class: "v-data-table-group-header-row",
1493
1537
  style: {
1494
1538
  "--v-data-table-group-header-row-depth": e.item.depth
1495
1539
  }
1496
- }, [o.value.map((d) => {
1497
- if (d.key === "data-table-group") {
1498
- const f = l(e.item) ? e.groupCollapseIcon : e.groupExpandIcon, y = () => n(e.item);
1540
+ }, [d.value.map((s) => {
1541
+ if (s.key === "data-table-group") {
1542
+ const o = l(e.item) ? e.groupCollapseIcon : e.groupExpandIcon, b = () => n(e.item);
1499
1543
  return a["data-table-group"]?.({
1500
1544
  item: e.item,
1501
- count: c.value.length,
1545
+ count: m.value.length,
1502
1546
  props: {
1503
- icon: f,
1504
- onClick: y
1547
+ icon: o,
1548
+ onClick: b
1505
1549
  }
1506
- }) ?? w(te, {
1550
+ }) ?? I(ae, {
1507
1551
  class: "v-data-table-group-header-row__column",
1508
- colspan: m.value
1552
+ colspan: h.value
1509
1553
  }, {
1510
- default: () => [w(W, {
1554
+ default: () => [I(W, {
1511
1555
  size: "small",
1512
1556
  variant: "text",
1513
- icon: f,
1514
- onClick: y
1515
- }, null), S("span", null, [e.item.value]), S("span", null, [_e("("), c.value.length, _e(")")])]
1557
+ icon: o,
1558
+ onClick: b
1559
+ }, null), S("span", null, [e.item.value]), S("span", null, [Oe("("), m.value.length, Oe(")")])]
1516
1560
  });
1517
- } else if (d.key === "data-table-select") {
1518
- const f = i(c.value), y = u(c.value) && !f, b = (v) => s(c.value, v);
1561
+ } else if (s.key === "data-table-select") {
1562
+ const o = i(m.value), b = f(m.value) && !o, c = (v) => u(m.value, v);
1519
1563
  return a["data-table-select"]?.({
1520
1564
  props: {
1521
- modelValue: f,
1522
- indeterminate: y,
1523
- "onUpdate:modelValue": b
1565
+ modelValue: o,
1566
+ indeterminate: b,
1567
+ "onUpdate:modelValue": c
1524
1568
  }
1525
- }) ?? w(te, {
1569
+ }) ?? I(ae, {
1526
1570
  class: "v-data-table__td--select-row",
1527
1571
  noPadding: !0
1528
1572
  }, {
1529
- default: () => [w(De, {
1573
+ default: () => [I(fe, {
1530
1574
  density: e.density,
1531
- modelValue: f,
1532
- indeterminate: y,
1533
- "onUpdate:modelValue": b
1575
+ modelValue: o,
1576
+ indeterminate: b,
1577
+ "onUpdate:modelValue": c
1534
1578
  }, null)]
1535
1579
  });
1536
1580
  }
1537
1581
  return "";
1538
1582
  })]);
1539
1583
  }
1540
- }), bt = _({
1584
+ }), ht = _({
1585
+ color: String,
1541
1586
  index: Number,
1542
1587
  item: Object,
1543
1588
  cellProps: [Object, Function],
1544
1589
  collapseIcon: {
1545
- type: O,
1590
+ type: B,
1546
1591
  default: "$collapse"
1547
1592
  },
1548
1593
  expandIcon: {
1549
- type: O,
1594
+ type: B,
1550
1595
  default: "$expand"
1551
1596
  },
1552
- onClick: pe(),
1553
- onContextmenu: pe(),
1554
- onDblclick: pe(),
1555
- ...ae(),
1556
- ...Ve()
1557
- }, "VDataTableRow"), Ma = $()({
1597
+ onClick: xe(),
1598
+ onContextmenu: xe(),
1599
+ onDblclick: xe(),
1600
+ ...le(),
1601
+ ...Te()
1602
+ }, "VDataTableRow"), Ga = $()({
1558
1603
  name: "VDataTableRow",
1559
- props: bt(),
1604
+ props: ht(),
1560
1605
  setup(e, t) {
1561
1606
  let {
1562
1607
  slots: a
@@ -1564,62 +1609,62 @@ const gt = _({
1564
1609
  const {
1565
1610
  displayClasses: l,
1566
1611
  mobile: n
1567
- } = fe(e, "v-data-table__tr"), {
1612
+ } = ge(e, "v-data-table__tr"), {
1568
1613
  isSelected: r,
1569
1614
  toggleSelect: i,
1570
- someSelected: u,
1571
- allSelected: s,
1572
- selectAll: o
1573
- } = ve(), {
1574
- isExpanded: c,
1575
- toggleExpand: m
1576
- } = Ye(), {
1577
- toggleSort: d,
1578
- sortBy: f,
1579
- isSorted: y
1580
- } = st(), {
1581
- columns: b
1582
- } = ge();
1583
- K(() => S("tr", {
1584
- class: G(["v-data-table__tr", {
1615
+ someSelected: f,
1616
+ allSelected: u,
1617
+ selectAll: d
1618
+ } = me(), {
1619
+ isExpanded: m,
1620
+ toggleExpand: h
1621
+ } = Ze(), {
1622
+ toggleSort: s,
1623
+ sortBy: o,
1624
+ isSorted: b
1625
+ } = ot(), {
1626
+ columns: c
1627
+ } = be();
1628
+ G(() => S("tr", {
1629
+ class: K(["v-data-table__tr", {
1585
1630
  "v-data-table__tr--clickable": !!(e.onClick || e.onContextmenu || e.onDblclick)
1586
1631
  }, l.value]),
1587
1632
  onClick: e.onClick,
1588
1633
  onContextmenu: e.onContextmenu,
1589
1634
  onDblclick: e.onDblclick
1590
- }, [e.item && b.value.map((v, F) => {
1591
- const h = e.item, I = `item.${v.key}`, D = `header.${v.key}`, P = {
1635
+ }, [e.item && c.value.map((v, w) => {
1636
+ const y = e.item, P = `item.${v.key}`, V = `header.${v.key}`, k = {
1592
1637
  index: e.index,
1593
- item: h.raw,
1594
- internalItem: h,
1595
- value: de(h.columns, v.key),
1638
+ item: y.raw,
1639
+ internalItem: y,
1640
+ value: ce(y.columns, v.key),
1596
1641
  column: v,
1597
1642
  isSelected: r,
1598
1643
  toggleSelect: i,
1599
- isExpanded: c,
1600
- toggleExpand: m
1644
+ isExpanded: m,
1645
+ toggleExpand: h
1601
1646
  }, L = {
1602
1647
  column: v,
1603
- selectAll: o,
1604
- isSorted: y,
1605
- toggleSort: d,
1606
- sortBy: f.value,
1607
- someSelected: u.value,
1608
- allSelected: s.value,
1648
+ selectAll: d,
1649
+ isSorted: b,
1650
+ toggleSort: s,
1651
+ sortBy: o.value,
1652
+ someSelected: f.value,
1653
+ allSelected: u.value,
1609
1654
  getSortIcon: () => ""
1610
1655
  }, N = typeof e.cellProps == "function" ? e.cellProps({
1611
- index: P.index,
1612
- item: P.item,
1613
- internalItem: P.internalItem,
1614
- value: P.value,
1656
+ index: k.index,
1657
+ item: k.item,
1658
+ internalItem: k.internalItem,
1659
+ value: k.value,
1615
1660
  column: v
1616
1661
  }) : e.cellProps, p = typeof v.cellProps == "function" ? v.cellProps({
1617
- index: P.index,
1618
- item: P.item,
1619
- internalItem: P.internalItem,
1620
- value: P.value
1662
+ index: k.index,
1663
+ item: k.item,
1664
+ internalItem: k.internalItem,
1665
+ value: k.value
1621
1666
  }) : v.cellProps, x = v.key === "data-table-select" || v.key === "data-table-expand", g = v.key === "data-table-group" && v.width === 0 && !v.title;
1622
- return w(te, B({
1667
+ return I(ae, O({
1623
1668
  align: v.align,
1624
1669
  indent: v.intent,
1625
1670
  class: {
@@ -1640,45 +1685,48 @@ const gt = _({
1640
1685
  default: () => {
1641
1686
  if (v.key === "data-table-select")
1642
1687
  return a["item.data-table-select"]?.({
1643
- ...P,
1688
+ ...k,
1644
1689
  props: {
1645
- disabled: !h.selectable,
1646
- modelValue: r([h]),
1647
- onClick: re(() => i(h), ["stop"])
1690
+ color: e.color,
1691
+ disabled: !y.selectable,
1692
+ modelValue: r([y]),
1693
+ onClick: se(() => i(y), ["stop"])
1648
1694
  }
1649
- }) ?? w(De, {
1650
- disabled: !h.selectable,
1695
+ }) ?? I(fe, {
1696
+ color: e.color,
1697
+ disabled: !y.selectable,
1651
1698
  density: e.density,
1652
- modelValue: r([h]),
1653
- onClick: re((T) => i(h, e.index, T), ["stop"])
1699
+ modelValue: r([y]),
1700
+ onClick: se((C) => i(y, e.index, C), ["stop"])
1654
1701
  }, null);
1655
1702
  if (v.key === "data-table-expand")
1656
1703
  return a["item.data-table-expand"]?.({
1657
- ...P,
1704
+ ...k,
1658
1705
  props: {
1659
- icon: c(h) ? e.collapseIcon : e.expandIcon,
1706
+ icon: m(y) ? e.collapseIcon : e.expandIcon,
1660
1707
  size: "small",
1661
1708
  variant: "text",
1662
- onClick: re(() => m(h), ["stop"])
1709
+ onClick: se(() => h(y), ["stop"])
1663
1710
  }
1664
- }) ?? w(W, {
1665
- icon: c(h) ? e.collapseIcon : e.expandIcon,
1711
+ }) ?? I(W, {
1712
+ icon: m(y) ? e.collapseIcon : e.expandIcon,
1666
1713
  size: "small",
1667
1714
  variant: "text",
1668
- onClick: re(() => m(h), ["stop"])
1715
+ onClick: se(() => h(y), ["stop"])
1669
1716
  }, null);
1670
- if (a[I] && !n.value) return a[I](P);
1671
- const k = Bt(P.value);
1717
+ if (a[P] && !n.value) return a[P](k);
1718
+ const D = Lt(k.value);
1672
1719
  return n.value ? S(U, null, [S("div", {
1673
1720
  class: "v-data-table__td-title"
1674
- }, [a[D]?.(L) ?? v.title]), S("div", {
1721
+ }, [a[V]?.(L) ?? v.title]), S("div", {
1675
1722
  class: "v-data-table__td-value"
1676
- }, [a[I]?.(P) ?? k])]) : k;
1723
+ }, [a[P]?.(k) ?? D])]) : D;
1677
1724
  }
1678
1725
  });
1679
1726
  })]));
1680
1727
  }
1681
- }), ht = _({
1728
+ }), yt = _({
1729
+ color: String,
1682
1730
  loading: [Boolean, String],
1683
1731
  loadingText: {
1684
1732
  type: String,
@@ -1695,13 +1743,13 @@ const gt = _({
1695
1743
  },
1696
1744
  rowProps: [Object, Function],
1697
1745
  cellProps: [Object, Function],
1698
- ...Pe(bt(), ["collapseIcon", "expandIcon", "density"]),
1699
- ...Pe(mt(), ["groupCollapseIcon", "groupExpandIcon", "density"]),
1700
- ...Ve()
1701
- }, "VDataTableRows"), Re = $()({
1746
+ ...ke(ht(), ["collapseIcon", "expandIcon", "density"]),
1747
+ ...ke(bt(), ["groupCollapseIcon", "groupExpandIcon", "density"]),
1748
+ ...Te()
1749
+ }, "VDataTableRows"), $e = $()({
1702
1750
  name: "VDataTableRows",
1703
1751
  inheritAttrs: !1,
1704
- props: ht(),
1752
+ props: yt(),
1705
1753
  setup(e, t) {
1706
1754
  let {
1707
1755
  attrs: a,
@@ -1709,96 +1757,97 @@ const gt = _({
1709
1757
  } = t;
1710
1758
  const {
1711
1759
  columns: n
1712
- } = ge(), {
1760
+ } = be(), {
1713
1761
  expandOnClick: r,
1714
1762
  toggleExpand: i,
1715
- isExpanded: u
1716
- } = Ye(), {
1717
- isSelected: s,
1718
- toggleSelect: o
1719
- } = ve(), {
1720
- toggleGroup: c,
1721
- isGroupOpen: m
1722
- } = qe(), {
1723
- t: d
1763
+ isExpanded: f
1764
+ } = Ze(), {
1765
+ isSelected: u,
1766
+ toggleSelect: d
1767
+ } = me(), {
1768
+ toggleGroup: m,
1769
+ isGroupOpen: h
1770
+ } = et(), {
1771
+ t: s
1724
1772
  } = Z(), {
1725
- mobile: f
1726
- } = fe(e);
1727
- return K(() => {
1728
- const y = Pe(e, ["groupCollapseIcon", "groupExpandIcon", "density"]);
1773
+ mobile: o
1774
+ } = ge(e);
1775
+ return G(() => {
1776
+ const b = ke(e, ["groupCollapseIcon", "groupExpandIcon", "density"]);
1729
1777
  return e.loading && (!e.items.length || l.loading) ? S("tr", {
1730
1778
  class: "v-data-table-rows-loading",
1731
1779
  key: "loading"
1732
1780
  }, [S("td", {
1733
1781
  colspan: n.value.length
1734
- }, [l.loading?.() ?? d(e.loadingText)])]) : !e.loading && !e.items.length && !e.hideNoData ? S("tr", {
1782
+ }, [l.loading?.() ?? s(e.loadingText)])]) : !e.loading && !e.items.length && !e.hideNoData ? S("tr", {
1735
1783
  class: "v-data-table-rows-no-data",
1736
1784
  key: "no-data"
1737
1785
  }, [S("td", {
1738
1786
  colspan: n.value.length
1739
- }, [l["no-data"]?.() ?? d(e.noDataText)])]) : S(U, null, [e.items.map((b, v) => {
1740
- if (b.type === "group") {
1741
- const I = {
1787
+ }, [l["no-data"]?.() ?? s(e.noDataText)])]) : S(U, null, [e.items.map((c, v) => {
1788
+ if (c.type === "group") {
1789
+ const P = {
1742
1790
  index: v,
1743
- item: b,
1791
+ item: c,
1744
1792
  columns: n.value,
1745
- isExpanded: u,
1793
+ isExpanded: f,
1746
1794
  toggleExpand: i,
1747
- isSelected: s,
1748
- toggleSelect: o,
1749
- toggleGroup: c,
1750
- isGroupOpen: m
1795
+ isSelected: u,
1796
+ toggleSelect: d,
1797
+ toggleGroup: m,
1798
+ isGroupOpen: h
1751
1799
  };
1752
- return l["group-header"] ? l["group-header"](I) : w($a, B({
1753
- key: `group-header_${b.id}`,
1754
- item: b
1755
- }, Le(a, ":groupHeader", () => I), y), l);
1800
+ return l["group-header"] ? l["group-header"](P) : I(Ka, O({
1801
+ key: `group-header_${c.id}`,
1802
+ item: c
1803
+ }, Ae(a, ":groupHeader", () => P), b), l);
1756
1804
  }
1757
- if (b.type === "group-summary") {
1758
- const I = {
1805
+ if (c.type === "group-summary") {
1806
+ const P = {
1759
1807
  index: v,
1760
- item: b,
1808
+ item: c,
1761
1809
  columns: n.value,
1762
- toggleGroup: c
1810
+ toggleGroup: m
1763
1811
  };
1764
- return l["group-summary"]?.(I) ?? "";
1812
+ return l["group-summary"]?.(P) ?? "";
1765
1813
  }
1766
- const F = {
1814
+ const w = {
1767
1815
  index: v,
1768
- item: b.raw,
1769
- internalItem: b,
1816
+ item: c.raw,
1817
+ internalItem: c,
1770
1818
  columns: n.value,
1771
- isExpanded: u,
1819
+ isExpanded: f,
1772
1820
  toggleExpand: i,
1773
- isSelected: s,
1774
- toggleSelect: o
1775
- }, h = {
1776
- ...F,
1777
- props: B({
1778
- key: `item_${b.key ?? b.index}`,
1821
+ isSelected: u,
1822
+ toggleSelect: d
1823
+ }, y = {
1824
+ ...w,
1825
+ props: O({
1826
+ key: `item_${c.key ?? c.index}`,
1779
1827
  onClick: r.value ? () => {
1780
- i(b);
1828
+ i(c);
1781
1829
  } : void 0,
1782
1830
  index: v,
1783
- item: b,
1831
+ item: c,
1832
+ color: e.color,
1784
1833
  cellProps: e.cellProps,
1785
1834
  collapseIcon: e.collapseIcon,
1786
1835
  expandIcon: e.expandIcon,
1787
1836
  density: e.density,
1788
- mobile: f.value
1789
- }, Le(a, ":row", () => F), typeof e.rowProps == "function" ? e.rowProps({
1790
- item: F.item,
1791
- index: F.index,
1792
- internalItem: F.internalItem
1837
+ mobile: o.value
1838
+ }, Ae(a, ":row", () => w), typeof e.rowProps == "function" ? e.rowProps({
1839
+ item: w.item,
1840
+ index: w.index,
1841
+ internalItem: w.internalItem
1793
1842
  }) : e.rowProps)
1794
1843
  };
1795
1844
  return S(U, {
1796
- key: h.props.key
1797
- }, [l.item ? l.item(h) : w(Ma, h.props, l), u(b) && l["expanded-row"]?.(F)]);
1845
+ key: y.props.key
1846
+ }, [l.item ? l.item(y) : I(Ga, y.props, l), f(c) && l["expanded-row"]?.(w)]);
1798
1847
  })]);
1799
1848
  }), {};
1800
1849
  }
1801
- }), yt = _({
1850
+ }), pt = _({
1802
1851
  fixedHeader: Boolean,
1803
1852
  fixedFooter: Boolean,
1804
1853
  height: [Number, String],
@@ -1808,13 +1857,13 @@ const gt = _({
1808
1857
  default: null,
1809
1858
  validator: (e) => ["even", "odd"].includes(e)
1810
1859
  },
1811
- ...Ue(),
1812
- ...ae(),
1813
- ...We(),
1814
- ...Fe()
1815
- }, "VTable"), $e = $()({
1860
+ ...Je(),
1861
+ ...le(),
1862
+ ...ze(),
1863
+ ...De()
1864
+ }, "VTable"), Me = $()({
1816
1865
  name: "VTable",
1817
- props: yt(),
1866
+ props: pt(),
1818
1867
  setup(e, t) {
1819
1868
  let {
1820
1869
  slots: a,
@@ -1822,11 +1871,11 @@ const gt = _({
1822
1871
  } = t;
1823
1872
  const {
1824
1873
  themeClasses: n
1825
- } = Ie(e), {
1874
+ } = Fe(e), {
1826
1875
  densityClasses: r
1827
- } = Xt(e);
1828
- return K(() => w(e.tag, {
1829
- class: G(["v-table", {
1876
+ } = qt(e);
1877
+ return G(() => I(e.tag, {
1878
+ class: K(["v-table", {
1830
1879
  "v-table--fixed-height": !!e.height,
1831
1880
  "v-table--fixed-header": e.fixedHeader,
1832
1881
  "v-table--fixed-footer": e.fixedFooter,
@@ -1836,7 +1885,7 @@ const gt = _({
1836
1885
  "v-table--striped-even": e.striped === "even",
1837
1886
  "v-table--striped-odd": e.striped === "odd"
1838
1887
  }, n.value, r.value, e.class]),
1839
- style: we(e.style)
1888
+ style: Ie(e.style)
1840
1889
  }, {
1841
1890
  default: () => [a.top?.(), a.default ? S("div", {
1842
1891
  class: "v-table__wrapper",
@@ -1846,7 +1895,7 @@ const gt = _({
1846
1895
  }, [S("table", null, [a.default()])]) : a.wrapper?.(), a.bottom?.()]
1847
1896
  })), {};
1848
1897
  }
1849
- }), Ha = _({
1898
+ }), Wa = _({
1850
1899
  items: {
1851
1900
  type: Array,
1852
1901
  default: () => []
@@ -1863,11 +1912,11 @@ const gt = _({
1863
1912
  cellProps: [Object, Function],
1864
1913
  returnObject: Boolean
1865
1914
  }, "DataTable-items");
1866
- function ja(e, t, a, l) {
1867
- const n = e.returnObject ? t : ee(t, e.itemValue), r = ee(t, e.itemSelectable, !0), i = l.reduce((u, s) => (s.key != null && (u[s.key] = ee(t, s.value)), u), {});
1915
+ function za(e, t, a, l) {
1916
+ const n = e.returnObject ? t : te(t, e.itemValue), r = te(t, e.itemSelectable, !0), i = l.reduce((f, u) => (u.key != null && (f[u.key] = te(t, u.value)), f), {});
1868
1917
  return {
1869
1918
  type: "item",
1870
- key: e.returnObject ? ee(t, e.itemValue) : n,
1919
+ key: e.returnObject ? te(t, e.itemValue) : n,
1871
1920
  index: a,
1872
1921
  value: n,
1873
1922
  selectable: r,
@@ -1875,37 +1924,37 @@ function ja(e, t, a, l) {
1875
1924
  raw: t
1876
1925
  };
1877
1926
  }
1878
- function Ga(e, t, a) {
1879
- return t.map((l, n) => ja(e, l, n, a));
1927
+ function Ua(e, t, a) {
1928
+ return t.map((l, n) => za(e, l, n, a));
1880
1929
  }
1881
- function Ka(e, t) {
1930
+ function Ja(e, t) {
1882
1931
  return {
1883
- items: V(() => Ga(e, e.items, t.value))
1932
+ items: F(() => Ua(e, e.items, t.value))
1884
1933
  };
1885
1934
  }
1886
- const Wa = _({
1887
- ...ht(),
1935
+ const Qa = _({
1936
+ ...yt(),
1888
1937
  hideDefaultBody: Boolean,
1889
1938
  hideDefaultFooter: Boolean,
1890
1939
  hideDefaultHeader: Boolean,
1891
1940
  width: [String, Number],
1892
1941
  search: String,
1893
- ...ia(),
1894
- ...da(),
1895
- ...Ba(),
1896
- ...Ha(),
1897
- ...ka(),
1898
- ...Ia(),
1899
- ...gt(),
1900
- ...yt()
1901
- }, "DataTable"), za = _({
1902
- ...ba(),
1942
+ ...ca(),
1943
+ ...va(),
1944
+ ...Ea(),
1903
1945
  ...Wa(),
1904
- ...ra(),
1905
- ...ot()
1906
- }, "VDataTable"), tl = $()({
1946
+ ...Fa(),
1947
+ ...Va(),
1948
+ ...Ve(mt(), ["multiSort"]),
1949
+ ...pt()
1950
+ }, "DataTable"), Xa = _({
1951
+ ...pa(),
1952
+ ...Qa(),
1953
+ ...ia(),
1954
+ ...it()
1955
+ }, "VDataTable"), rl = $()({
1907
1956
  name: "VDataTable",
1908
- props: za(),
1957
+ props: Xa(),
1909
1958
  emits: {
1910
1959
  "update:modelValue": (e) => !0,
1911
1960
  "update:page": (e) => !0,
@@ -1923,151 +1972,155 @@ const Wa = _({
1923
1972
  } = t;
1924
1973
  const {
1925
1974
  groupBy: n
1926
- } = ca(e), {
1927
- sortBy: r,
1928
- multiSort: i,
1975
+ } = ga(e), {
1976
+ initialSortOrder: r,
1977
+ sortBy: i,
1978
+ multiSort: f,
1929
1979
  mustSort: u
1930
- } = Fa(e), {
1931
- page: s,
1932
- itemsPerPage: o
1933
- } = ha(e), {
1934
- disableSort: c
1935
- } = Ot(e), {
1936
- columns: m,
1937
- headers: d,
1938
- sortFunctions: f,
1939
- sortRawFunctions: y,
1940
- filterFunctions: b
1941
- } = Ra(e, {
1980
+ } = Ta(e), {
1981
+ page: d,
1982
+ itemsPerPage: m
1983
+ } = xa(e), {
1984
+ disableSort: h
1985
+ } = At(e), {
1986
+ columns: s,
1987
+ headers: o,
1988
+ sortFunctions: b,
1989
+ sortRawFunctions: c,
1990
+ filterFunctions: v
1991
+ } = Ha(e, {
1942
1992
  groupBy: n,
1943
- showSelect: C(() => e.showSelect),
1944
- showExpand: C(() => e.showExpand)
1993
+ showSelect: T(() => e.showSelect),
1994
+ showExpand: T(() => e.showExpand)
1945
1995
  }), {
1946
- items: v
1947
- } = Ka(e, m), F = C(() => e.search), {
1948
- filteredItems: h
1949
- } = oa(e, v, F, {
1950
- transform: (H) => H.columns,
1951
- customKeyFilter: b
1996
+ items: w
1997
+ } = Ja(e, s), y = T(() => e.search), {
1998
+ filteredItems: P
1999
+ } = da(e, w, y, {
2000
+ transform: (j) => j.columns,
2001
+ customKeyFilter: v
1952
2002
  }), {
1953
- toggleSort: I
1954
- } = Va({
1955
- sortBy: r,
1956
- multiSort: i,
2003
+ toggleSort: V
2004
+ } = _a({
2005
+ initialSortOrder: r,
2006
+ sortBy: i,
2007
+ multiSort: f,
1957
2008
  mustSort: u,
1958
- page: s
2009
+ page: d
1959
2010
  }), {
1960
- sortByWithGroups: D,
1961
- opened: P,
1962
- extractRows: L,
1963
- isGroupOpen: N,
1964
- toggleGroup: p
1965
- } = fa({
2011
+ sortByWithGroups: k,
2012
+ opened: L,
2013
+ extractRows: N,
2014
+ isGroupOpen: p,
2015
+ toggleGroup: x
2016
+ } = ma({
1966
2017
  groupBy: n,
1967
- sortBy: r,
1968
- disableSort: c
2018
+ sortBy: i,
2019
+ disableSort: h
1969
2020
  }), {
1970
- sortedItems: x
1971
- } = Da(e, h, D, {
1972
- transform: (H) => ({
1973
- ...H.raw,
1974
- ...H.columns
2021
+ sortedItems: g
2022
+ } = Oa(e, P, k, {
2023
+ transform: (j) => ({
2024
+ ...j.raw,
2025
+ ...j.columns
1975
2026
  }),
1976
- sortFunctions: f,
1977
- sortRawFunctions: y
2027
+ sortFunctions: b,
2028
+ sortRawFunctions: c
1978
2029
  }), {
1979
- flatItems: g
1980
- } = ga(x, n, P, () => !!l["group-summary"]), k = V(() => g.value.length), {
1981
- startIndex: T,
1982
- stopIndex: R,
1983
- pageCount: le,
1984
- setItemsPerPage: be
1985
- } = ya({
1986
- page: s,
1987
- itemsPerPage: o,
1988
- itemsLength: k
2030
+ flatItems: D
2031
+ } = ha(g, n, L, () => !!l["group-summary"]), C = F(() => D.value.length), {
2032
+ startIndex: R,
2033
+ stopIndex: ne,
2034
+ pageCount: ye,
2035
+ setItemsPerPage: M
2036
+ } = Sa({
2037
+ page: d,
2038
+ itemsPerPage: m,
2039
+ itemsLength: C
1989
2040
  }), {
1990
- paginatedItems: M
1991
- } = xa({
1992
- items: g,
1993
- startIndex: T,
1994
- stopIndex: R,
1995
- itemsPerPage: o
1996
- }), X = V(() => L(M.value)), {
1997
- isSelected: he,
1998
- select: pt,
1999
- selectAll: xt,
2000
- toggleSelect: St,
2001
- someSelected: Pt,
2002
- allSelected: kt
2003
- } = wa(e, {
2004
- allItems: v,
2005
- currentPage: X
2041
+ paginatedItems: X
2042
+ } = ka({
2043
+ items: D,
2044
+ startIndex: R,
2045
+ stopIndex: ne,
2046
+ itemsPerPage: m
2047
+ }), q = F(() => N(X.value)), {
2048
+ isSelected: xt,
2049
+ select: St,
2050
+ selectAll: Pt,
2051
+ toggleSelect: kt,
2052
+ someSelected: wt,
2053
+ allSelected: It
2054
+ } = Da(e, {
2055
+ allItems: w,
2056
+ currentPage: q
2006
2057
  }), {
2007
- isExpanded: wt,
2008
- toggleExpand: It
2009
- } = ua(e);
2010
- ma({
2011
- page: s,
2012
- itemsPerPage: o,
2013
- sortBy: r,
2058
+ isExpanded: Ft,
2059
+ toggleExpand: Dt
2060
+ } = fa(e);
2061
+ ya({
2062
+ page: d,
2063
+ itemsPerPage: m,
2064
+ sortBy: i,
2014
2065
  groupBy: n,
2015
- search: F
2016
- }), Se({
2066
+ search: y
2067
+ }), Pe({
2017
2068
  VDataTableRows: {
2018
- hideNoData: C(() => e.hideNoData),
2019
- noDataText: C(() => e.noDataText),
2020
- loading: C(() => e.loading),
2021
- loadingText: C(() => e.loadingText)
2069
+ hideNoData: T(() => e.hideNoData),
2070
+ noDataText: T(() => e.noDataText),
2071
+ loading: T(() => e.loading),
2072
+ loadingText: T(() => e.loadingText)
2022
2073
  }
2023
2074
  });
2024
- const E = V(() => ({
2025
- page: s.value,
2026
- itemsPerPage: o.value,
2027
- sortBy: r.value,
2028
- pageCount: le.value,
2029
- toggleSort: I,
2030
- setItemsPerPage: be,
2031
- someSelected: Pt.value,
2032
- allSelected: kt.value,
2033
- isSelected: he,
2034
- select: pt,
2035
- selectAll: xt,
2036
- toggleSelect: St,
2037
- isExpanded: wt,
2038
- toggleExpand: It,
2039
- isGroupOpen: N,
2040
- toggleGroup: p,
2041
- items: X.value.map((H) => H.raw),
2042
- internalItems: X.value,
2043
- groupedItems: M.value,
2044
- columns: m.value,
2045
- headers: d.value
2075
+ const E = F(() => ({
2076
+ page: d.value,
2077
+ itemsPerPage: m.value,
2078
+ sortBy: i.value,
2079
+ pageCount: ye.value,
2080
+ toggleSort: V,
2081
+ setItemsPerPage: M,
2082
+ someSelected: wt.value,
2083
+ allSelected: It.value,
2084
+ isSelected: xt,
2085
+ select: St,
2086
+ selectAll: Pt,
2087
+ toggleSelect: kt,
2088
+ isExpanded: Ft,
2089
+ toggleExpand: Dt,
2090
+ isGroupOpen: p,
2091
+ toggleGroup: x,
2092
+ items: q.value.map((j) => j.raw),
2093
+ internalItems: q.value,
2094
+ groupedItems: X.value,
2095
+ columns: s.value,
2096
+ headers: o.value
2046
2097
  }));
2047
- return K(() => {
2048
- const H = Ee.filterProps(e), Ft = Ne.filterProps(e), Vt = Re.filterProps(e), Dt = $e.filterProps(e);
2049
- return w($e, B({
2098
+ return G(() => {
2099
+ const j = Ne.filterProps(e), Vt = Re.filterProps(Ve(e, ["multiSort"])), Tt = $e.filterProps(e), Ct = Me.filterProps(e);
2100
+ return I(Me, O({
2050
2101
  class: ["v-data-table", {
2051
2102
  "v-data-table--show-select": e.showSelect,
2052
2103
  "v-data-table--loading": e.loading
2053
2104
  }, e.class],
2054
2105
  style: e.style
2055
- }, Dt, {
2106
+ }, Ct, {
2056
2107
  fixedHeader: e.fixedHeader || e.sticky
2057
2108
  }), {
2058
2109
  top: () => l.top?.(E.value),
2059
2110
  default: () => l.default ? l.default(E.value) : S(U, null, [l.colgroup?.(E.value), !e.hideDefaultHeader && S("thead", {
2060
2111
  key: "thead"
2061
- }, [w(Ne, Ft, l)]), l.thead?.(E.value), !e.hideDefaultBody && S("tbody", null, [l["body.prepend"]?.(E.value), l.body ? l.body(E.value) : w(Re, B(a, Vt, {
2062
- items: M.value
2112
+ }, [I(Re, O(Vt, {
2113
+ multiSort: !!e.multiSort
2114
+ }), l)]), l.thead?.(E.value), !e.hideDefaultBody && S("tbody", null, [l["body.prepend"]?.(E.value), l.body ? l.body(E.value) : I($e, O(a, Tt, {
2115
+ items: X.value
2063
2116
  }), l), l["body.append"]?.(E.value)]), l.tbody?.(E.value), l.tfoot?.(E.value)]),
2064
- bottom: () => l.bottom ? l.bottom(E.value) : !e.hideDefaultFooter && S(U, null, [w(Yt, null, null), w(Ee, H, {
2117
+ bottom: () => l.bottom ? l.bottom(E.value) : !e.hideDefaultFooter && S(U, null, [I(ea, null, null), I(Ne, j, {
2065
2118
  prepend: l["footer.prepend"]
2066
2119
  })])
2067
2120
  });
2068
2121
  }), {};
2069
2122
  }
2070
- }), Ua = {
2123
+ }), Ya = {
2071
2124
  actions: "button@2",
2072
2125
  article: "heading, paragraph",
2073
2126
  avatar: "avatar",
@@ -2100,33 +2153,33 @@ const Wa = _({
2100
2153
  "table-tfoot": "text@2, avatar@2",
2101
2154
  text: "text"
2102
2155
  };
2103
- function Ja(e) {
2156
+ function Za(e) {
2104
2157
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
2105
2158
  return S("div", {
2106
- class: G(["v-skeleton-loader__bone", `v-skeleton-loader__${e}`])
2159
+ class: K(["v-skeleton-loader__bone", `v-skeleton-loader__${e}`])
2107
2160
  }, [t]);
2108
2161
  }
2109
- function Me(e) {
2162
+ function je(e) {
2110
2163
  const [t, a] = e.split("@");
2111
2164
  return Array.from({
2112
2165
  length: a
2113
- }).map(() => me(t));
2166
+ }).map(() => he(t));
2114
2167
  }
2115
- function me(e) {
2168
+ function he(e) {
2116
2169
  let t = [];
2117
2170
  if (!e) return t;
2118
- const a = Ua[e];
2171
+ const a = Ya[e];
2119
2172
  if (e !== a) {
2120
2173
  if (e.includes(",")) return He(e);
2121
- if (e.includes("@")) return Me(e);
2122
- a.includes(",") ? t = He(a) : a.includes("@") ? t = Me(a) : a && t.push(me(a));
2174
+ if (e.includes("@")) return je(e);
2175
+ a.includes(",") ? t = He(a) : a.includes("@") ? t = je(a) : a && t.push(he(a));
2123
2176
  }
2124
- return [Ja(e, t)];
2177
+ return [Za(e, t)];
2125
2178
  }
2126
2179
  function He(e) {
2127
- return e.replace(/\s/g, "").split(",").map(me);
2180
+ return e.replace(/\s/g, "").split(",").map(he);
2128
2181
  }
2129
- const Qa = _({
2182
+ const qa = _({
2130
2183
  boilerplate: Boolean,
2131
2184
  color: String,
2132
2185
  loading: Boolean,
@@ -2138,13 +2191,13 @@ const Qa = _({
2138
2191
  type: [String, Array],
2139
2192
  default: "ossein"
2140
2193
  },
2141
- ...ea(),
2142
- ...ze(),
2143
- ...Fe()
2144
- }, "VSkeletonLoader"), al = $()({
2194
+ ...la(),
2195
+ ...Ue(),
2196
+ ...De()
2197
+ }, "VSkeletonLoader"), sl = $()({
2145
2198
  name: "VSkeletonLoader",
2146
2199
  inheritAttrs: !1,
2147
- props: Qa(),
2200
+ props: qa(),
2148
2201
  setup(e, t) {
2149
2202
  let {
2150
2203
  attrs: a,
@@ -2153,31 +2206,31 @@ const Qa = _({
2153
2206
  const {
2154
2207
  backgroundColorClasses: n,
2155
2208
  backgroundColorStyles: r
2156
- } = Je(() => e.color), {
2209
+ } = Qe(() => e.color), {
2157
2210
  dimensionStyles: i
2158
- } = Zt(e), {
2159
- elevationClasses: u
2160
- } = qt(e), {
2161
- themeClasses: s
2162
- } = Ie(e), {
2163
- t: o
2164
- } = Z(), c = V(() => me(z(e.type).join(",")));
2165
- return K(() => {
2166
- const m = !l.default || e.loading, d = e.boilerplate || !m ? {} : {
2211
+ } = ta(e), {
2212
+ elevationClasses: f
2213
+ } = aa(e), {
2214
+ themeClasses: u
2215
+ } = Fe(e), {
2216
+ t: d
2217
+ } = Z(), m = F(() => he(z(e.type).join(",")));
2218
+ return G(() => {
2219
+ const h = !l.default || e.loading, s = e.boilerplate || !h ? {} : {
2167
2220
  ariaLive: "polite",
2168
- ariaLabel: o(e.loadingText),
2221
+ ariaLabel: d(e.loadingText),
2169
2222
  role: "alert"
2170
2223
  };
2171
- return m ? S("div", B({
2224
+ return h ? S("div", O({
2172
2225
  class: ["v-skeleton-loader", {
2173
2226
  "v-skeleton-loader--boilerplate": e.boilerplate
2174
- }, s.value, n.value, u.value],
2227
+ }, u.value, n.value, f.value],
2175
2228
  style: [r.value, i.value]
2176
- }, d, a), [c.value]) : S(U, null, [l.default?.()]);
2229
+ }, s, a), [m.value]) : S(U, null, [l.default?.()]);
2177
2230
  }), {};
2178
2231
  }
2179
2232
  });
2180
- function Xa(e, t, a) {
2233
+ function el(e, t, a) {
2181
2234
  switch (a) {
2182
2235
  case ">":
2183
2236
  return e > t;
@@ -2193,53 +2246,65 @@ function Xa(e, t, a) {
2193
2246
  throw new Error(`Invalid operator: ${a}`);
2194
2247
  }
2195
2248
  }
2196
- function ll() {
2197
- const { advancedFiltersState: e, hardFiltersState: t } = aa(), a = Q("table_props"), l = j(), n = V(() => {
2198
- const i = Object.values(t.value).filter((o) => o.args).map((o) => o.args).reduce((o, c) => ({ ...o, ...c }), {}), u = { ...e.value, ...i };
2249
+ function ol() {
2250
+ const { advancedFiltersState: e, hardFiltersState: t } = ra(), a = Q("table_props"), l = H(), n = F(() => {
2199
2251
  let s = l.value;
2200
- return !u || Object.keys(u).length === 0 || Object.keys(u).forEach((o) => {
2201
- const c = u[o].value, m = u[o]?.comparison ?? "=", d = a.headers.find((f) => (f.advancedFilter?.key ?? f.key) === o);
2202
- c && (s = s.filter((f) => {
2203
- let y = !0;
2204
- if (!d) return y;
2205
- let b = la(f);
2206
- Object.hasOwn(d, "filterReturnValue") && typeof d.filterReturnValue == "function" && (b[o] = d.filterReturnValue({
2207
- value: f[o],
2208
- item: f
2209
- }));
2210
- let v = o.split(".").reduce((F, h) => F && F[h], b);
2211
- switch (console.log(v), d.advancedFilter?.component) {
2212
- case "datepicker":
2213
- y = r(v, c);
2214
- break;
2215
- case "comparison":
2216
- y = Xa(
2217
- Number(v),
2218
- Number(c),
2219
- m
2220
- );
2221
- break;
2222
- default:
2223
- Array.isArray(c) ? y = c.map((F) => F.toString().toLowerCase()).includes(v.toString().toLowerCase()) : y = v?.toString().toLowerCase().includes(c.toString().toLowerCase());
2224
- break;
2225
- }
2226
- return y;
2252
+ if (!s) return s;
2253
+ const o = u(e.value, t.value);
2254
+ return !o || Object.keys(o).length === 0 || Object.keys(o).forEach((b) => {
2255
+ const { value: c, comparison: v = "=" } = o[b];
2256
+ if (!c) return;
2257
+ const w = h(a.headers, b);
2258
+ w && (s = s.filter((y) => {
2259
+ const P = m(y, b, w);
2260
+ return w.advancedFilter?.customFilterFn && typeof w.advancedFilter.customFilterFn == "function" ? w.advancedFilter.customFilterFn({ value: P, filterValue: c, filterComparison: v, header: w, item: y }) : f(P, c, v, w);
2227
2261
  }));
2228
2262
  }), s;
2229
- }), r = (i, u) => {
2230
- const s = Array.isArray(u) ? u : [u], o = ie(s[0]).startOf("day").isSameOrBefore(ie(i).format()), c = ie(s[s.length - 1]).endOf("day").isSameOrAfter(ie(i).format());
2231
- return o && c;
2232
- };
2233
- return ce(
2263
+ });
2264
+ function r(s, o) {
2265
+ const b = Array.isArray(o) ? o : [o], c = ue(b[0]).startOf("day").isSameOrBefore(ue(s).format()), v = ue(b[b.length - 1]).endOf("day").isSameOrAfter(ue(s).format());
2266
+ return c && v;
2267
+ }
2268
+ function i(s, o) {
2269
+ return Array.isArray(o) ? o.map((b) => b.toString().toLowerCase()).includes(s.toString().toLowerCase()) : s?.toString().toLowerCase().includes(o.toString().toLowerCase());
2270
+ }
2271
+ function f(s, o, b, c) {
2272
+ switch (c.advancedFilter?.component) {
2273
+ case "datepicker":
2274
+ return r(s, o);
2275
+ case "comparison":
2276
+ return el(Number(s), Number(o), b);
2277
+ default:
2278
+ return i(s, o);
2279
+ }
2280
+ }
2281
+ function u(s, o) {
2282
+ const b = Object.values(o).filter((c) => c.args).map((c) => c.args).reduce((c, v) => ({ ...c, ...v }), {});
2283
+ return { ...s, ...b };
2284
+ }
2285
+ function d(s, o) {
2286
+ return o.split(".").reduce((b, c) => b && b[c], s);
2287
+ }
2288
+ function m(s, o, b) {
2289
+ const c = sa(s);
2290
+ return Object.hasOwn(b, "filterReturnValue") && typeof b.filterReturnValue == "function" && (c[o] = b.filterReturnValue({
2291
+ value: s[o],
2292
+ item: s
2293
+ })), d(c, o);
2294
+ }
2295
+ function h(s, o) {
2296
+ return s.find((b) => (b.advancedFilter?.key ?? b.key) === o);
2297
+ }
2298
+ return ve(
2234
2299
  () => a.data,
2235
- async (i, u) => {
2236
- const s = i ?? [], o = u ?? [];
2237
- JSON.stringify(s) !== JSON.stringify(o) && (l.value = i);
2300
+ (s, o) => {
2301
+ const b = s ?? [], c = o ?? [];
2302
+ JSON.stringify(b) !== JSON.stringify(c) && (l.value = s);
2238
2303
  },
2239
2304
  { deep: !0, immediate: !0 }
2240
2305
  ), { tableData: l, filteredData: n };
2241
2306
  }
2242
- const nl = Lt({
2307
+ const il = Et({
2243
2308
  props: {
2244
2309
  render: {
2245
2310
  type: [Function, Object, String, Number, Date],
@@ -2256,31 +2321,31 @@ const nl = Lt({
2256
2321
  },
2257
2322
  setup: (e) => () => {
2258
2323
  const t = { ...e.props, ...e.params };
2259
- return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ? At(e.render, t) : e.render;
2324
+ return typeof e.render == "function" ? e.render(t) : typeof e.render == "object" && e.render !== null ? Nt(e.render, t) : e.render;
2260
2325
  }
2261
2326
  });
2262
2327
  export {
2263
- nl as C,
2264
- tl as V,
2265
- al as a,
2266
- Fa as b,
2267
- ca as c,
2268
- ha as d,
2269
- Ra as e,
2270
- Ka as f,
2271
- fa as g,
2272
- ya as h,
2273
- ga as i,
2274
- wa as j,
2275
- ua as k,
2276
- ma as l,
2277
- Ee as m,
2278
- Ne as n,
2279
- Re as o,
2280
- Va as p,
2281
- $e as q,
2282
- ot as r,
2283
- Wa as s,
2284
- ba as t,
2285
- ll as u
2328
+ il as C,
2329
+ rl as V,
2330
+ sl as a,
2331
+ Ta as b,
2332
+ ga as c,
2333
+ xa as d,
2334
+ Ha as e,
2335
+ Ja as f,
2336
+ ma as g,
2337
+ Sa as h,
2338
+ ha as i,
2339
+ Da as j,
2340
+ fa as k,
2341
+ ya as l,
2342
+ Ne as m,
2343
+ Re as n,
2344
+ $e as o,
2345
+ _a as p,
2346
+ Me as q,
2347
+ it as r,
2348
+ Qa as s,
2349
+ pa as t,
2350
+ ol as u
2286
2351
  };