vs-datatable 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/VsDataTableFilterDropdown.vue.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/vs-datatable.es.js +316 -297
- package/dist/vs-datatable.umd.js +2 -2
- package/package.json +4 -3
- package/plugins/export/VsDataTableExportDropdown.vue +8 -9
- package/plugins/export/shims-jspdf-autotable.d.ts +1 -0
- package/plugins/export/shims-jspdf.d.ts +1 -0
- package/plugins/export/useDataTableExport.ts +51 -2
- package/src/styles/base.scss +0 -1
package/dist/vs-datatable.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as _, computed as T, createElementBlock as w, openBlock as h, createElementVNode as g, createCommentVNode as P, Fragment as K, renderList as
|
|
1
|
+
import { defineComponent as _, computed as T, createElementBlock as w, openBlock as h, createElementVNode as g, createCommentVNode as P, Fragment as K, renderList as z, normalizeClass as W, toDisplayString as D, unref as R, mergeProps as xt, renderSlot as q, ref as L, watch as G, createVNode as j, withModifiers as le, withCtx as I, withDirectives as U, vModelText as oe, nextTick as Ct, onMounted as st, onUnmounted as lt, createBlock as fe, Teleport as kt, Transition as Rt, vModelSelect as Me, normalizeStyle as St, createSlots as Ne, createTextVNode as je, isRef as ye, shallowRef as at, useAttrs as Tt, onBeforeMount as $t, normalizeProps as ze, guardReactiveProps as Ze } from "vue";
|
|
2
2
|
import './index.css';function Vt(e, t) {
|
|
3
3
|
return t.split(".").reduce((n, o) => n?.[o], e) ?? "";
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function X(e, t, n = "id") {
|
|
6
6
|
return typeof n == "function" ? n(e, t) : e[n] || t;
|
|
7
7
|
}
|
|
8
8
|
function rt(e, t, n = "id") {
|
|
9
9
|
return t.some(
|
|
10
|
-
(o) =>
|
|
10
|
+
(o) => X(o, -1, n) === X(e, -1, n)
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
13
|
function Ot(e, t, n) {
|
|
@@ -50,7 +50,7 @@ const Dt = ["id"], Lt = ["disabled"], Ft = {
|
|
|
50
50
|
}, Bt = ["id", "onClick"], Mt = {
|
|
51
51
|
key: 2,
|
|
52
52
|
class: "vs-pagination-ellipsis"
|
|
53
|
-
},
|
|
53
|
+
}, qt = ["disabled"], Nt = /* @__PURE__ */ _({
|
|
54
54
|
__name: "VsPagination",
|
|
55
55
|
props: {
|
|
56
56
|
modelValue: {},
|
|
@@ -76,7 +76,7 @@ const Dt = ["id"], Lt = ["disabled"], Ft = {
|
|
|
76
76
|
v >= 1 && v <= u.value && (l.value = v);
|
|
77
77
|
}, i = () => {
|
|
78
78
|
l.value > 1 && l.value--;
|
|
79
|
-
},
|
|
79
|
+
}, p = () => {
|
|
80
80
|
l.value < u.value && l.value++;
|
|
81
81
|
};
|
|
82
82
|
return (v, d) => (h(), w("div", {
|
|
@@ -93,32 +93,32 @@ const Dt = ["id"], Lt = ["disabled"], Ft = {
|
|
|
93
93
|
key: 0,
|
|
94
94
|
type: "button",
|
|
95
95
|
class: "vs-pagination-button",
|
|
96
|
-
onClick: d[0] || (d[0] = (
|
|
96
|
+
onClick: d[0] || (d[0] = (m) => f(1))
|
|
97
97
|
}, " 1 ")) : P("", !0),
|
|
98
98
|
a.value > 2 ? (h(), w("span", Ft, "...")) : P("", !0),
|
|
99
|
-
(h(!0), w(K, null,
|
|
100
|
-
key:
|
|
99
|
+
(h(!0), w(K, null, z(c.value, (m) => (h(), w("button", {
|
|
100
|
+
key: m,
|
|
101
101
|
type: "button",
|
|
102
102
|
class: W([
|
|
103
103
|
"vs-pagination-button",
|
|
104
|
-
{ "vs-active": l.value ===
|
|
104
|
+
{ "vs-active": l.value === m }
|
|
105
105
|
]),
|
|
106
|
-
id: e.tablename + "-page-" +
|
|
107
|
-
onClick: (b) => f(
|
|
108
|
-
}, D(
|
|
106
|
+
id: e.tablename + "-page-" + m,
|
|
107
|
+
onClick: (b) => f(m)
|
|
108
|
+
}, D(m), 11, Bt))), 128)),
|
|
109
109
|
r.value < u.value - 1 ? (h(), w("span", Mt, "...")) : P("", !0),
|
|
110
110
|
r.value < u.value ? (h(), w("button", {
|
|
111
111
|
key: 3,
|
|
112
112
|
type: "button",
|
|
113
113
|
class: "vs-pagination-button",
|
|
114
|
-
onClick: d[1] || (d[1] = (
|
|
114
|
+
onClick: d[1] || (d[1] = (m) => f(u.value))
|
|
115
115
|
}, D(u.value), 1)) : P("", !0),
|
|
116
116
|
g("button", {
|
|
117
|
-
onClick:
|
|
117
|
+
onClick: p,
|
|
118
118
|
type: "button",
|
|
119
119
|
class: "vs-pagination-button vs-pagination-nav",
|
|
120
120
|
disabled: l.value === u.value
|
|
121
|
-
}, " ›› ", 8,
|
|
121
|
+
}, " ›› ", 8, qt)
|
|
122
122
|
], 8, Dt));
|
|
123
123
|
}
|
|
124
124
|
}), ne = (e, t) => {
|
|
@@ -126,7 +126,7 @@ const Dt = ["id"], Lt = ["disabled"], Ft = {
|
|
|
126
126
|
for (const [o, s] of t)
|
|
127
127
|
n[o] = s;
|
|
128
128
|
return n;
|
|
129
|
-
},
|
|
129
|
+
}, It = /* @__PURE__ */ ne(Nt, [["__scopeId", "data-v-b327b254"]]), Ht = { class: "vs-rows-per-page" }, Kt = ["value"], Wt = ["value"], Ut = /* @__PURE__ */ _({
|
|
130
130
|
__name: "VsRowsPerPage",
|
|
131
131
|
props: {
|
|
132
132
|
modelValue: {},
|
|
@@ -145,14 +145,14 @@ const Dt = ["id"], Lt = ["disabled"], Ft = {
|
|
|
145
145
|
value: e.modelValue,
|
|
146
146
|
onChange: l
|
|
147
147
|
}, [
|
|
148
|
-
(h(!0), w(K, null,
|
|
148
|
+
(h(!0), w(K, null, z(R(s), (u) => (h(), w("option", {
|
|
149
149
|
key: u,
|
|
150
150
|
value: u
|
|
151
151
|
}, D(u), 9, Wt))), 128))
|
|
152
152
|
], 40, Kt)
|
|
153
153
|
]));
|
|
154
154
|
}
|
|
155
|
-
}), jt = /* @__PURE__ */ ne(Ut, [["__scopeId", "data-v-0c2bdd9c"]]), Te = Math.min,
|
|
155
|
+
}), jt = /* @__PURE__ */ ne(Ut, [["__scopeId", "data-v-0c2bdd9c"]]), Te = Math.min, ie = Math.max, $e = Math.round, Re = Math.floor, Y = (e) => ({
|
|
156
156
|
x: e,
|
|
157
157
|
y: e
|
|
158
158
|
}), zt = {
|
|
@@ -165,12 +165,12 @@ const Dt = ["id"], Lt = ["disabled"], Ft = {
|
|
|
165
165
|
end: "start"
|
|
166
166
|
};
|
|
167
167
|
function Xe(e, t, n) {
|
|
168
|
-
return
|
|
168
|
+
return ie(e, Te(t, n));
|
|
169
169
|
}
|
|
170
170
|
function Ee(e, t) {
|
|
171
171
|
return typeof e == "function" ? e(t) : e;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function ue(e) {
|
|
174
174
|
return e.split("-")[0];
|
|
175
175
|
}
|
|
176
176
|
function Pe(e) {
|
|
@@ -184,7 +184,7 @@ function ct(e) {
|
|
|
184
184
|
}
|
|
185
185
|
const Qt = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
186
186
|
function se(e) {
|
|
187
|
-
return Qt.has(
|
|
187
|
+
return Qt.has(ue(e)) ? "y" : "x";
|
|
188
188
|
}
|
|
189
189
|
function dt(e) {
|
|
190
190
|
return ut(se(e));
|
|
@@ -197,9 +197,9 @@ function Xt(e, t, n) {
|
|
|
197
197
|
}
|
|
198
198
|
function Yt(e) {
|
|
199
199
|
const t = Ve(e);
|
|
200
|
-
return [
|
|
200
|
+
return [Ie(e), t, Ie(t)];
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function Ie(e) {
|
|
203
203
|
return e.replace(/start|end/g, (t) => Zt[t]);
|
|
204
204
|
}
|
|
205
205
|
const Ye = ["left", "right"], Ge = ["right", "left"], Gt = ["top", "bottom"], Jt = ["bottom", "top"];
|
|
@@ -217,8 +217,8 @@ function _t(e, t, n) {
|
|
|
217
217
|
}
|
|
218
218
|
function en(e, t, n, o) {
|
|
219
219
|
const s = Pe(e);
|
|
220
|
-
let l = _t(
|
|
221
|
-
return s && (l = l.map((a) => a + "-" + s), t && (l = l.concat(l.map(
|
|
220
|
+
let l = _t(ue(e), n === "start", o);
|
|
221
|
+
return s && (l = l.map((a) => a + "-" + s), t && (l = l.concat(l.map(Ie)))), l;
|
|
222
222
|
}
|
|
223
223
|
function Ve(e) {
|
|
224
224
|
return e.replace(/left|right|bottom|top/g, (t) => zt[t]);
|
|
@@ -263,7 +263,7 @@ function Je(e, t, n) {
|
|
|
263
263
|
reference: o,
|
|
264
264
|
floating: s
|
|
265
265
|
} = e;
|
|
266
|
-
const l = se(t), a = dt(t), r = ct(a), u =
|
|
266
|
+
const l = se(t), a = dt(t), r = ct(a), u = ue(t), c = l === "y", f = o.x + o.width / 2 - s.width / 2, i = o.y + o.height / 2 - s.height / 2, p = o[r] / 2 - s[r] / 2;
|
|
267
267
|
let v;
|
|
268
268
|
switch (u) {
|
|
269
269
|
case "top":
|
|
@@ -298,10 +298,10 @@ function Je(e, t, n) {
|
|
|
298
298
|
}
|
|
299
299
|
switch (Pe(t)) {
|
|
300
300
|
case "start":
|
|
301
|
-
v[a] -=
|
|
301
|
+
v[a] -= p * (n && c ? -1 : 1);
|
|
302
302
|
break;
|
|
303
303
|
case "end":
|
|
304
|
-
v[a] +=
|
|
304
|
+
v[a] += p * (n && c ? -1 : 1);
|
|
305
305
|
break;
|
|
306
306
|
}
|
|
307
307
|
return v;
|
|
@@ -320,12 +320,12 @@ const on = async (e, t, n) => {
|
|
|
320
320
|
}), {
|
|
321
321
|
x: f,
|
|
322
322
|
y: i
|
|
323
|
-
} = Je(c, o, u),
|
|
324
|
-
for (let
|
|
323
|
+
} = Je(c, o, u), p = o, v = {}, d = 0;
|
|
324
|
+
for (let m = 0; m < r.length; m++) {
|
|
325
325
|
const {
|
|
326
326
|
name: b,
|
|
327
327
|
fn: C
|
|
328
|
-
} = r[
|
|
328
|
+
} = r[m], {
|
|
329
329
|
x: k,
|
|
330
330
|
y: S,
|
|
331
331
|
data: O,
|
|
@@ -334,7 +334,7 @@ const on = async (e, t, n) => {
|
|
|
334
334
|
x: f,
|
|
335
335
|
y: i,
|
|
336
336
|
initialPlacement: o,
|
|
337
|
-
placement:
|
|
337
|
+
placement: p,
|
|
338
338
|
strategy: s,
|
|
339
339
|
middlewareData: v,
|
|
340
340
|
rects: c,
|
|
@@ -350,19 +350,19 @@ const on = async (e, t, n) => {
|
|
|
350
350
|
...v[b],
|
|
351
351
|
...O
|
|
352
352
|
}
|
|
353
|
-
}, A && d <= 50 && (d++, typeof A == "object" && (A.placement && (
|
|
353
|
+
}, A && d <= 50 && (d++, typeof A == "object" && (A.placement && (p = A.placement), A.rects && (c = A.rects === !0 ? await a.getElementRects({
|
|
354
354
|
reference: e,
|
|
355
355
|
floating: t,
|
|
356
356
|
strategy: s
|
|
357
357
|
}) : A.rects), {
|
|
358
358
|
x: f,
|
|
359
359
|
y: i
|
|
360
|
-
} = Je(c,
|
|
360
|
+
} = Je(c, p, u)), m = -1);
|
|
361
361
|
}
|
|
362
362
|
return {
|
|
363
363
|
x: f,
|
|
364
364
|
y: i,
|
|
365
|
-
placement:
|
|
365
|
+
placement: p,
|
|
366
366
|
strategy: s,
|
|
367
367
|
middlewareData: v
|
|
368
368
|
};
|
|
@@ -381,9 +381,9 @@ async function ft(e, t) {
|
|
|
381
381
|
boundary: c = "clippingAncestors",
|
|
382
382
|
rootBoundary: f = "viewport",
|
|
383
383
|
elementContext: i = "floating",
|
|
384
|
-
altBoundary:
|
|
384
|
+
altBoundary: p = !1,
|
|
385
385
|
padding: v = 0
|
|
386
|
-
} = Ee(t, e), d = nn(v), b = r[
|
|
386
|
+
} = Ee(t, e), d = nn(v), b = r[p ? i === "floating" ? "reference" : "floating" : i], C = Oe(await l.getClippingRect({
|
|
387
387
|
element: (n = await (l.isElement == null ? void 0 : l.isElement(b))) == null || n ? b : b.contextElement || await (l.getDocumentElement == null ? void 0 : l.getDocumentElement(r.floating)),
|
|
388
388
|
boundary: c,
|
|
389
389
|
rootBoundary: f,
|
|
@@ -428,46 +428,46 @@ const sn = function(e) {
|
|
|
428
428
|
} = t, {
|
|
429
429
|
mainAxis: f = !0,
|
|
430
430
|
crossAxis: i = !0,
|
|
431
|
-
fallbackPlacements:
|
|
431
|
+
fallbackPlacements: p,
|
|
432
432
|
fallbackStrategy: v = "bestFit",
|
|
433
433
|
fallbackAxisSideDirection: d = "none",
|
|
434
|
-
flipAlignment:
|
|
434
|
+
flipAlignment: m = !0,
|
|
435
435
|
...b
|
|
436
436
|
} = Ee(e, t);
|
|
437
437
|
if ((n = l.arrow) != null && n.alignmentOffset)
|
|
438
438
|
return {};
|
|
439
|
-
const C =
|
|
440
|
-
!
|
|
439
|
+
const C = ue(s), k = se(r), S = ue(r) === r, O = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), A = p || (S || !m ? [Ve(r)] : Yt(r)), M = d !== "none";
|
|
440
|
+
!p && M && A.push(...en(r, m, d, O));
|
|
441
441
|
const $ = [r, ...A], x = await ft(t, b), y = [];
|
|
442
|
-
let
|
|
442
|
+
let N = ((o = l.flip) == null ? void 0 : o.overflows) || [];
|
|
443
443
|
if (f && y.push(x[C]), i) {
|
|
444
444
|
const te = Xt(s, a, O);
|
|
445
445
|
y.push(x[te[0]], x[te[1]]);
|
|
446
446
|
}
|
|
447
|
-
if (
|
|
447
|
+
if (N = [...N, {
|
|
448
448
|
placement: s,
|
|
449
449
|
overflows: y
|
|
450
450
|
}], !y.every((te) => te <= 0)) {
|
|
451
|
-
var
|
|
452
|
-
const te = (((
|
|
451
|
+
var de, Ce;
|
|
452
|
+
const te = (((de = l.flip) == null ? void 0 : de.index) || 0) + 1, he = $[te];
|
|
453
453
|
if (he && (!(i === "alignment" ? k !== se(he) : !1) || // We leave the current main axis only if every placement on that axis
|
|
454
454
|
// overflows the main axis.
|
|
455
|
-
|
|
455
|
+
N.every((V) => se(V.placement) === k ? V.overflows[0] > 0 : !0)))
|
|
456
456
|
return {
|
|
457
457
|
data: {
|
|
458
458
|
index: te,
|
|
459
|
-
overflows:
|
|
459
|
+
overflows: N
|
|
460
460
|
},
|
|
461
461
|
reset: {
|
|
462
462
|
placement: he
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
let B = (Ce =
|
|
465
|
+
let B = (Ce = N.filter((E) => E.overflows[0] <= 0).sort((E, V) => E.overflows[1] - V.overflows[1])[0]) == null ? void 0 : Ce.placement;
|
|
466
466
|
if (!B)
|
|
467
467
|
switch (v) {
|
|
468
468
|
case "bestFit": {
|
|
469
469
|
var ke;
|
|
470
|
-
const E = (ke =
|
|
470
|
+
const E = (ke = N.filter((V) => {
|
|
471
471
|
if (M) {
|
|
472
472
|
const F = se(V.placement);
|
|
473
473
|
return F === k || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -499,9 +499,9 @@ async function an(e, t) {
|
|
|
499
499
|
placement: n,
|
|
500
500
|
platform: o,
|
|
501
501
|
elements: s
|
|
502
|
-
} = e, l = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), a =
|
|
502
|
+
} = e, l = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), a = ue(n), r = Pe(n), u = se(n) === "y", c = ln.has(a) ? -1 : 1, f = l && u ? -1 : 1, i = Ee(t, e);
|
|
503
503
|
let {
|
|
504
|
-
mainAxis:
|
|
504
|
+
mainAxis: p,
|
|
505
505
|
crossAxis: v,
|
|
506
506
|
alignmentAxis: d
|
|
507
507
|
} = typeof i == "number" ? {
|
|
@@ -515,9 +515,9 @@ async function an(e, t) {
|
|
|
515
515
|
};
|
|
516
516
|
return r && typeof d == "number" && (v = r === "end" ? d * -1 : d), u ? {
|
|
517
517
|
x: v * f,
|
|
518
|
-
y:
|
|
518
|
+
y: p * c
|
|
519
519
|
} : {
|
|
520
|
-
x:
|
|
520
|
+
x: p * c,
|
|
521
521
|
y: v * f
|
|
522
522
|
};
|
|
523
523
|
}
|
|
@@ -571,28 +571,28 @@ const rn = function(e) {
|
|
|
571
571
|
} = Ee(e, t), c = {
|
|
572
572
|
x: n,
|
|
573
573
|
y: o
|
|
574
|
-
}, f = await ft(t, u), i = se(
|
|
575
|
-
let v = c[
|
|
574
|
+
}, f = await ft(t, u), i = se(ue(s)), p = ut(i);
|
|
575
|
+
let v = c[p], d = c[i];
|
|
576
576
|
if (l) {
|
|
577
|
-
const b =
|
|
577
|
+
const b = p === "y" ? "top" : "left", C = p === "y" ? "bottom" : "right", k = v + f[b], S = v - f[C];
|
|
578
578
|
v = Xe(k, v, S);
|
|
579
579
|
}
|
|
580
580
|
if (a) {
|
|
581
581
|
const b = i === "y" ? "top" : "left", C = i === "y" ? "bottom" : "right", k = d + f[b], S = d - f[C];
|
|
582
582
|
d = Xe(k, d, S);
|
|
583
583
|
}
|
|
584
|
-
const
|
|
584
|
+
const m = r.fn({
|
|
585
585
|
...t,
|
|
586
|
-
[
|
|
586
|
+
[p]: v,
|
|
587
587
|
[i]: d
|
|
588
588
|
});
|
|
589
589
|
return {
|
|
590
|
-
...
|
|
590
|
+
...m,
|
|
591
591
|
data: {
|
|
592
|
-
x:
|
|
593
|
-
y:
|
|
592
|
+
x: m.x - n,
|
|
593
|
+
y: m.y - o,
|
|
594
594
|
enabled: {
|
|
595
|
-
[
|
|
595
|
+
[p]: l,
|
|
596
596
|
[i]: a
|
|
597
597
|
}
|
|
598
598
|
}
|
|
@@ -606,7 +606,7 @@ function De() {
|
|
|
606
606
|
function ge(e) {
|
|
607
607
|
return vt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function H(e) {
|
|
610
610
|
var t;
|
|
611
611
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
612
612
|
}
|
|
@@ -615,16 +615,16 @@ function ee(e) {
|
|
|
615
615
|
return (t = (vt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
616
616
|
}
|
|
617
617
|
function vt(e) {
|
|
618
|
-
return De() ? e instanceof Node || e instanceof
|
|
618
|
+
return De() ? e instanceof Node || e instanceof H(e).Node : !1;
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return De() ? e instanceof Element || e instanceof
|
|
620
|
+
function Z(e) {
|
|
621
|
+
return De() ? e instanceof Element || e instanceof H(e).Element : !1;
|
|
622
622
|
}
|
|
623
623
|
function J(e) {
|
|
624
|
-
return De() ? e instanceof HTMLElement || e instanceof
|
|
624
|
+
return De() ? e instanceof HTMLElement || e instanceof H(e).HTMLElement : !1;
|
|
625
625
|
}
|
|
626
626
|
function _e(e) {
|
|
627
|
-
return !De() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
627
|
+
return !De() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof H(e).ShadowRoot;
|
|
628
628
|
}
|
|
629
629
|
const cn = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
630
630
|
function xe(e) {
|
|
@@ -633,7 +633,7 @@ function xe(e) {
|
|
|
633
633
|
overflowX: n,
|
|
634
634
|
overflowY: o,
|
|
635
635
|
display: s
|
|
636
|
-
} =
|
|
636
|
+
} = Q(e);
|
|
637
637
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !cn.has(s);
|
|
638
638
|
}
|
|
639
639
|
const dn = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
@@ -650,14 +650,14 @@ function Le(e) {
|
|
|
650
650
|
}
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
|
-
const
|
|
653
|
+
const pn = ["transform", "translate", "scale", "rotate", "perspective"], mn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], gn = ["paint", "layout", "strict", "content"];
|
|
654
654
|
function Ke(e) {
|
|
655
|
-
const t = We(), n =
|
|
656
|
-
return
|
|
655
|
+
const t = We(), n = Z(e) ? Q(e) : e;
|
|
656
|
+
return pn.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || mn.some((o) => (n.willChange || "").includes(o)) || gn.some((o) => (n.contain || "").includes(o));
|
|
657
657
|
}
|
|
658
658
|
function hn(e) {
|
|
659
659
|
let t = ae(e);
|
|
660
|
-
for (; J(t) && !
|
|
660
|
+
for (; J(t) && !me(t); ) {
|
|
661
661
|
if (Ke(t))
|
|
662
662
|
return t;
|
|
663
663
|
if (Le(t))
|
|
@@ -670,14 +670,14 @@ function We() {
|
|
|
670
670
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
671
671
|
}
|
|
672
672
|
const wn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
673
|
-
function
|
|
673
|
+
function me(e) {
|
|
674
674
|
return wn.has(ge(e));
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
return
|
|
676
|
+
function Q(e) {
|
|
677
|
+
return H(e).getComputedStyle(e);
|
|
678
678
|
}
|
|
679
679
|
function Fe(e) {
|
|
680
|
-
return
|
|
680
|
+
return Z(e) ? {
|
|
681
681
|
scrollLeft: e.scrollLeft,
|
|
682
682
|
scrollTop: e.scrollTop
|
|
683
683
|
} : {
|
|
@@ -697,14 +697,14 @@ function ae(e) {
|
|
|
697
697
|
);
|
|
698
698
|
return _e(t) ? t.host : t;
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function pt(e) {
|
|
701
701
|
const t = ae(e);
|
|
702
|
-
return
|
|
702
|
+
return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) && xe(t) ? t : pt(t);
|
|
703
703
|
}
|
|
704
704
|
function be(e, t, n) {
|
|
705
705
|
var o;
|
|
706
706
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
707
|
-
const s =
|
|
707
|
+
const s = pt(e), l = s === ((o = e.ownerDocument) == null ? void 0 : o.body), a = H(s);
|
|
708
708
|
if (l) {
|
|
709
709
|
const r = He(a);
|
|
710
710
|
return t.concat(a, a.visualViewport || [], xe(s) ? s : [], r && n ? be(r) : []);
|
|
@@ -714,8 +714,8 @@ function be(e, t, n) {
|
|
|
714
714
|
function He(e) {
|
|
715
715
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
const t =
|
|
717
|
+
function mt(e) {
|
|
718
|
+
const t = Q(e);
|
|
719
719
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
720
720
|
const s = J(e), l = s ? e.offsetWidth : n, a = s ? e.offsetHeight : o, r = $e(n) !== l || $e(o) !== a;
|
|
721
721
|
return r && (n = l, o = a), {
|
|
@@ -725,7 +725,7 @@ function pt(e) {
|
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
727
|
function Ue(e) {
|
|
728
|
-
return
|
|
728
|
+
return Z(e) ? e : e.contextElement;
|
|
729
729
|
}
|
|
730
730
|
function ve(e) {
|
|
731
731
|
const t = Ue(e);
|
|
@@ -735,7 +735,7 @@ function ve(e) {
|
|
|
735
735
|
width: o,
|
|
736
736
|
height: s,
|
|
737
737
|
$: l
|
|
738
|
-
} =
|
|
738
|
+
} = mt(t);
|
|
739
739
|
let a = (l ? $e(n.width) : n.width) / o, r = (l ? $e(n.height) : n.height) / s;
|
|
740
740
|
return (!a || !Number.isFinite(a)) && (a = 1), (!r || !Number.isFinite(r)) && (r = 1), {
|
|
741
741
|
x: a,
|
|
@@ -744,28 +744,28 @@ function ve(e) {
|
|
|
744
744
|
}
|
|
745
745
|
const yn = /* @__PURE__ */ Y(0);
|
|
746
746
|
function gt(e) {
|
|
747
|
-
const t =
|
|
747
|
+
const t = H(e);
|
|
748
748
|
return !We() || !t.visualViewport ? yn : {
|
|
749
749
|
x: t.visualViewport.offsetLeft,
|
|
750
750
|
y: t.visualViewport.offsetTop
|
|
751
751
|
};
|
|
752
752
|
}
|
|
753
753
|
function bn(e, t, n) {
|
|
754
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
754
|
+
return t === void 0 && (t = !1), !n || t && n !== H(e) ? !1 : t;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function ce(e, t, n, o) {
|
|
757
757
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
758
758
|
const s = e.getBoundingClientRect(), l = Ue(e);
|
|
759
759
|
let a = Y(1);
|
|
760
|
-
t && (o ?
|
|
760
|
+
t && (o ? Z(o) && (a = ve(o)) : a = ve(e));
|
|
761
761
|
const r = bn(l, n, o) ? gt(l) : Y(0);
|
|
762
762
|
let u = (s.left + r.x) / a.x, c = (s.top + r.y) / a.y, f = s.width / a.x, i = s.height / a.y;
|
|
763
763
|
if (l) {
|
|
764
|
-
const
|
|
765
|
-
let d =
|
|
766
|
-
for (;
|
|
767
|
-
const b = ve(
|
|
768
|
-
u *= b.x, c *= b.y, f *= b.x, i *= b.y, u += S, c += O, d =
|
|
764
|
+
const p = H(l), v = o && Z(o) ? H(o) : o;
|
|
765
|
+
let d = p, m = He(d);
|
|
766
|
+
for (; m && o && v !== d; ) {
|
|
767
|
+
const b = ve(m), C = m.getBoundingClientRect(), k = Q(m), S = C.left + (m.clientLeft + parseFloat(k.paddingLeft)) * b.x, O = C.top + (m.clientTop + parseFloat(k.paddingTop)) * b.y;
|
|
768
|
+
u *= b.x, c *= b.y, f *= b.x, i *= b.y, u += S, c += O, d = H(m), m = He(d);
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
771
|
return Oe({
|
|
@@ -777,7 +777,7 @@ function ue(e, t, n, o) {
|
|
|
777
777
|
}
|
|
778
778
|
function Be(e, t) {
|
|
779
779
|
const n = Fe(e).scrollLeft;
|
|
780
|
-
return t ? t.left + n :
|
|
780
|
+
return t ? t.left + n : ce(ee(e)).left + n;
|
|
781
781
|
}
|
|
782
782
|
function ht(e, t) {
|
|
783
783
|
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Be(e, n), s = n.top + t.scrollTop;
|
|
@@ -802,25 +802,25 @@ function xn(e) {
|
|
|
802
802
|
}, c = Y(1);
|
|
803
803
|
const f = Y(0), i = J(o);
|
|
804
804
|
if ((i || !i && !l) && ((ge(o) !== "body" || xe(a)) && (u = Fe(o)), J(o))) {
|
|
805
|
-
const v =
|
|
805
|
+
const v = ce(o);
|
|
806
806
|
c = ve(o), f.x = v.x + o.clientLeft, f.y = v.y + o.clientTop;
|
|
807
807
|
}
|
|
808
|
-
const
|
|
808
|
+
const p = a && !i && !l ? ht(a, u) : Y(0);
|
|
809
809
|
return {
|
|
810
810
|
width: n.width * c.x,
|
|
811
811
|
height: n.height * c.y,
|
|
812
|
-
x: n.x * c.x - u.scrollLeft * c.x + f.x +
|
|
813
|
-
y: n.y * c.y - u.scrollTop * c.y + f.y +
|
|
812
|
+
x: n.x * c.x - u.scrollLeft * c.x + f.x + p.x,
|
|
813
|
+
y: n.y * c.y - u.scrollTop * c.y + f.y + p.y
|
|
814
814
|
};
|
|
815
815
|
}
|
|
816
816
|
function Cn(e) {
|
|
817
817
|
return Array.from(e.getClientRects());
|
|
818
818
|
}
|
|
819
819
|
function kn(e) {
|
|
820
|
-
const t = ee(e), n = Fe(e), o = e.ownerDocument.body, s =
|
|
820
|
+
const t = ee(e), n = Fe(e), o = e.ownerDocument.body, s = ie(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), l = ie(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
821
821
|
let a = -n.scrollLeft + Be(e);
|
|
822
822
|
const r = -n.scrollTop;
|
|
823
|
-
return
|
|
823
|
+
return Q(o).direction === "rtl" && (a += ie(t.clientWidth, o.clientWidth) - s), {
|
|
824
824
|
width: s,
|
|
825
825
|
height: l,
|
|
826
826
|
x: a,
|
|
@@ -829,7 +829,7 @@ function kn(e) {
|
|
|
829
829
|
}
|
|
830
830
|
const et = 25;
|
|
831
831
|
function Rn(e, t) {
|
|
832
|
-
const n =
|
|
832
|
+
const n = H(e), o = ee(e), s = n.visualViewport;
|
|
833
833
|
let l = o.clientWidth, a = o.clientHeight, r = 0, u = 0;
|
|
834
834
|
if (s) {
|
|
835
835
|
l = s.width, a = s.height;
|
|
@@ -838,7 +838,7 @@ function Rn(e, t) {
|
|
|
838
838
|
}
|
|
839
839
|
const c = Be(o);
|
|
840
840
|
if (c <= 0) {
|
|
841
|
-
const f = o.ownerDocument, i = f.body,
|
|
841
|
+
const f = o.ownerDocument, i = f.body, p = getComputedStyle(i), v = f.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, d = Math.abs(o.clientWidth - i.clientWidth - v);
|
|
842
842
|
d <= et && (l -= d);
|
|
843
843
|
} else c <= et && (l += c);
|
|
844
844
|
return {
|
|
@@ -850,7 +850,7 @@ function Rn(e, t) {
|
|
|
850
850
|
}
|
|
851
851
|
const Sn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
852
852
|
function Tn(e, t) {
|
|
853
|
-
const n =
|
|
853
|
+
const n = ce(e, !0, t === "fixed"), o = n.top + e.clientTop, s = n.left + e.clientLeft, l = J(e) ? ve(e) : Y(1), a = e.clientWidth * l.x, r = e.clientHeight * l.y, u = s * l.x, c = o * l.y;
|
|
854
854
|
return {
|
|
855
855
|
width: a,
|
|
856
856
|
height: r,
|
|
@@ -864,7 +864,7 @@ function tt(e, t, n) {
|
|
|
864
864
|
o = Rn(e, n);
|
|
865
865
|
else if (t === "document")
|
|
866
866
|
o = kn(ee(e));
|
|
867
|
-
else if (
|
|
867
|
+
else if (Z(t))
|
|
868
868
|
o = Tn(t, n);
|
|
869
869
|
else {
|
|
870
870
|
const s = gt(e);
|
|
@@ -879,17 +879,17 @@ function tt(e, t, n) {
|
|
|
879
879
|
}
|
|
880
880
|
function wt(e, t) {
|
|
881
881
|
const n = ae(e);
|
|
882
|
-
return n === t || !
|
|
882
|
+
return n === t || !Z(n) || me(n) ? !1 : Q(n).position === "fixed" || wt(n, t);
|
|
883
883
|
}
|
|
884
884
|
function $n(e, t) {
|
|
885
885
|
const n = t.get(e);
|
|
886
886
|
if (n)
|
|
887
887
|
return n;
|
|
888
|
-
let o = be(e, [], !1).filter((r) =>
|
|
889
|
-
const l =
|
|
888
|
+
let o = be(e, [], !1).filter((r) => Z(r) && ge(r) !== "body"), s = null;
|
|
889
|
+
const l = Q(e).position === "fixed";
|
|
890
890
|
let a = l ? ae(e) : e;
|
|
891
|
-
for (;
|
|
892
|
-
const r =
|
|
891
|
+
for (; Z(a) && !me(a); ) {
|
|
892
|
+
const r = Q(a), u = Ke(a);
|
|
893
893
|
!u && r.position === "fixed" && (s = null), (l ? !u && !s : !u && r.position === "static" && !!s && Sn.has(s.position) || xe(a) && !u && wt(e, a)) ? o = o.filter((f) => f !== a) : s = r, a = ae(a);
|
|
894
894
|
}
|
|
895
895
|
return t.set(e, o), o;
|
|
@@ -903,7 +903,7 @@ function Vn(e) {
|
|
|
903
903
|
} = e;
|
|
904
904
|
const a = [...n === "clippingAncestors" ? Le(t) ? [] : $n(t, this._c) : [].concat(n), o], r = a[0], u = a.reduce((c, f) => {
|
|
905
905
|
const i = tt(t, f, s);
|
|
906
|
-
return c.top =
|
|
906
|
+
return c.top = ie(i.top, c.top), c.right = Te(i.right, c.right), c.bottom = Te(i.bottom, c.bottom), c.left = ie(i.left, c.left), c;
|
|
907
907
|
}, tt(t, r, s));
|
|
908
908
|
return {
|
|
909
909
|
width: u.right - u.left,
|
|
@@ -916,14 +916,14 @@ function On(e) {
|
|
|
916
916
|
const {
|
|
917
917
|
width: t,
|
|
918
918
|
height: n
|
|
919
|
-
} =
|
|
919
|
+
} = mt(e);
|
|
920
920
|
return {
|
|
921
921
|
width: t,
|
|
922
922
|
height: n
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
925
|
function An(e, t, n) {
|
|
926
|
-
const o = J(t), s = ee(t), l = n === "fixed", a =
|
|
926
|
+
const o = J(t), s = ee(t), l = n === "fixed", a = ce(e, !0, l, t);
|
|
927
927
|
let r = {
|
|
928
928
|
scrollLeft: 0,
|
|
929
929
|
scrollTop: 0
|
|
@@ -934,23 +934,23 @@ function An(e, t, n) {
|
|
|
934
934
|
}
|
|
935
935
|
if (o || !o && !l)
|
|
936
936
|
if ((ge(t) !== "body" || xe(s)) && (r = Fe(t)), o) {
|
|
937
|
-
const v =
|
|
937
|
+
const v = ce(t, !0, l, t);
|
|
938
938
|
u.x = v.x + t.clientLeft, u.y = v.y + t.clientTop;
|
|
939
939
|
} else s && c();
|
|
940
940
|
l && !o && s && c();
|
|
941
|
-
const f = s && !o && !l ? ht(s, r) : Y(0), i = a.left + r.scrollLeft - u.x - f.x,
|
|
941
|
+
const f = s && !o && !l ? ht(s, r) : Y(0), i = a.left + r.scrollLeft - u.x - f.x, p = a.top + r.scrollTop - u.y - f.y;
|
|
942
942
|
return {
|
|
943
943
|
x: i,
|
|
944
|
-
y:
|
|
944
|
+
y: p,
|
|
945
945
|
width: a.width,
|
|
946
946
|
height: a.height
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
|
-
function
|
|
950
|
-
return
|
|
949
|
+
function qe(e) {
|
|
950
|
+
return Q(e).position === "static";
|
|
951
951
|
}
|
|
952
952
|
function nt(e, t) {
|
|
953
|
-
if (!J(e) ||
|
|
953
|
+
if (!J(e) || Q(e).position === "fixed")
|
|
954
954
|
return null;
|
|
955
955
|
if (t)
|
|
956
956
|
return t(e);
|
|
@@ -958,22 +958,22 @@ function nt(e, t) {
|
|
|
958
958
|
return ee(e) === n && (n = n.ownerDocument.body), n;
|
|
959
959
|
}
|
|
960
960
|
function yt(e, t) {
|
|
961
|
-
const n =
|
|
961
|
+
const n = H(e);
|
|
962
962
|
if (Le(e))
|
|
963
963
|
return n;
|
|
964
964
|
if (!J(e)) {
|
|
965
965
|
let s = ae(e);
|
|
966
|
-
for (; s && !
|
|
967
|
-
if (
|
|
966
|
+
for (; s && !me(s); ) {
|
|
967
|
+
if (Z(s) && !qe(s))
|
|
968
968
|
return s;
|
|
969
969
|
s = ae(s);
|
|
970
970
|
}
|
|
971
971
|
return n;
|
|
972
972
|
}
|
|
973
973
|
let o = nt(e, t);
|
|
974
|
-
for (; o && fn(o) &&
|
|
974
|
+
for (; o && fn(o) && qe(o); )
|
|
975
975
|
o = nt(o, t);
|
|
976
|
-
return o &&
|
|
976
|
+
return o && me(o) && qe(o) && !Ke(o) ? n : o || hn(e) || n;
|
|
977
977
|
}
|
|
978
978
|
const En = async function(e) {
|
|
979
979
|
const t = this.getOffsetParent || yt, n = this.getDimensions, o = await n(e.floating);
|
|
@@ -988,7 +988,7 @@ const En = async function(e) {
|
|
|
988
988
|
};
|
|
989
989
|
};
|
|
990
990
|
function Pn(e) {
|
|
991
|
-
return
|
|
991
|
+
return Q(e).direction === "rtl";
|
|
992
992
|
}
|
|
993
993
|
const Dn = {
|
|
994
994
|
convertOffsetParentRelativeRectToViewportRelativeRect: xn,
|
|
@@ -999,7 +999,7 @@ const Dn = {
|
|
|
999
999
|
getClientRects: Cn,
|
|
1000
1000
|
getDimensions: On,
|
|
1001
1001
|
getScale: ve,
|
|
1002
|
-
isElement:
|
|
1002
|
+
isElement: Z,
|
|
1003
1003
|
isRTL: Pn
|
|
1004
1004
|
};
|
|
1005
1005
|
function bt(e, t) {
|
|
@@ -1017,14 +1017,14 @@ function Ln(e, t) {
|
|
|
1017
1017
|
const c = e.getBoundingClientRect(), {
|
|
1018
1018
|
left: f,
|
|
1019
1019
|
top: i,
|
|
1020
|
-
width:
|
|
1020
|
+
width: p,
|
|
1021
1021
|
height: v
|
|
1022
1022
|
} = c;
|
|
1023
|
-
if (r || t(), !
|
|
1023
|
+
if (r || t(), !p || !v)
|
|
1024
1024
|
return;
|
|
1025
|
-
const d = Re(i),
|
|
1026
|
-
rootMargin: -d + "px " + -
|
|
1027
|
-
threshold:
|
|
1025
|
+
const d = Re(i), m = Re(s.clientWidth - (f + p)), b = Re(s.clientHeight - (i + v)), C = Re(f), S = {
|
|
1026
|
+
rootMargin: -d + "px " + -m + "px " + -b + "px " + -C + "px",
|
|
1027
|
+
threshold: ie(0, Te(1, u)) || 1
|
|
1028
1028
|
};
|
|
1029
1029
|
let O = !0;
|
|
1030
1030
|
function A(M) {
|
|
@@ -1066,19 +1066,19 @@ function Fn(e, t, n, o) {
|
|
|
1066
1066
|
}), l && C.addEventListener("resize", n);
|
|
1067
1067
|
});
|
|
1068
1068
|
const i = c && r ? Ln(c, n) : null;
|
|
1069
|
-
let
|
|
1069
|
+
let p = -1, v = null;
|
|
1070
1070
|
a && (v = new ResizeObserver((C) => {
|
|
1071
1071
|
let [k] = C;
|
|
1072
|
-
k && k.target === c && v && (v.unobserve(t), cancelAnimationFrame(
|
|
1072
|
+
k && k.target === c && v && (v.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
1073
1073
|
var S;
|
|
1074
1074
|
(S = v) == null || S.observe(t);
|
|
1075
1075
|
})), n();
|
|
1076
1076
|
}), c && !u && v.observe(c), v.observe(t));
|
|
1077
|
-
let d,
|
|
1077
|
+
let d, m = u ? ce(e) : null;
|
|
1078
1078
|
u && b();
|
|
1079
1079
|
function b() {
|
|
1080
|
-
const C =
|
|
1081
|
-
|
|
1080
|
+
const C = ce(e);
|
|
1081
|
+
m && !bt(m, C) && n(), m = C, d = requestAnimationFrame(b);
|
|
1082
1082
|
}
|
|
1083
1083
|
return n(), () => {
|
|
1084
1084
|
var C;
|
|
@@ -1087,7 +1087,7 @@ function Fn(e, t, n, o) {
|
|
|
1087
1087
|
}), i?.(), (C = v) == null || C.disconnect(), v = null, u && cancelAnimationFrame(d);
|
|
1088
1088
|
};
|
|
1089
1089
|
}
|
|
1090
|
-
const Bn = rn, Mn = un,
|
|
1090
|
+
const Bn = rn, Mn = un, qn = sn, Nn = (e, t, n) => {
|
|
1091
1091
|
const o = /* @__PURE__ */ new Map(), s = {
|
|
1092
1092
|
platform: Dn,
|
|
1093
1093
|
...n
|
|
@@ -1183,7 +1183,7 @@ const Bn = rn, Mn = un, Nn = sn, In = (e, t, n) => {
|
|
|
1183
1183
|
return !0;
|
|
1184
1184
|
}
|
|
1185
1185
|
};
|
|
1186
|
-
function
|
|
1186
|
+
function pe(e, t) {
|
|
1187
1187
|
const n = {
|
|
1188
1188
|
operator: t?.operator,
|
|
1189
1189
|
value: t?.value ?? null
|
|
@@ -1228,7 +1228,7 @@ function ot(e) {
|
|
|
1228
1228
|
return !1;
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
|
-
const
|
|
1231
|
+
const In = _({
|
|
1232
1232
|
name: "VsDFlex",
|
|
1233
1233
|
inheritAttrs: !1,
|
|
1234
1234
|
props: {
|
|
@@ -1252,10 +1252,10 @@ const qn = _({
|
|
|
1252
1252
|
});
|
|
1253
1253
|
function Hn(e, t, n, o, s, l) {
|
|
1254
1254
|
return h(), w("div", xt({ class: e.flexClasses }, e.attrs), [
|
|
1255
|
-
|
|
1255
|
+
q(e.$slots, "default")
|
|
1256
1256
|
], 16);
|
|
1257
1257
|
}
|
|
1258
|
-
const
|
|
1258
|
+
const re = /* @__PURE__ */ ne(In, [["render", Hn]]), Kn = { class: "vs-multiselect" }, Wn = { class: "vs-multiselect-actions" }, Un = {
|
|
1259
1259
|
key: 0,
|
|
1260
1260
|
class: "vs-py-4 vs-text-center vs-text-primary"
|
|
1261
1261
|
}, jn = {
|
|
@@ -1288,7 +1288,7 @@ const fe = /* @__PURE__ */ ne(qn, [["render", Hn]]), Kn = { class: "vs-multisele
|
|
|
1288
1288
|
d > -1 ? l.value.splice(d, 1) : l.value.push(v), o("update:modelValue", [...l.value]);
|
|
1289
1289
|
}, i = () => {
|
|
1290
1290
|
l.value = [...a.value], o("update:modelValue", [...l.value]);
|
|
1291
|
-
},
|
|
1291
|
+
}, p = () => {
|
|
1292
1292
|
l.value = [], o("update:modelValue", []);
|
|
1293
1293
|
};
|
|
1294
1294
|
return G(
|
|
@@ -1302,14 +1302,14 @@ const fe = /* @__PURE__ */ ne(qn, [["render", Hn]]), Kn = { class: "vs-multisele
|
|
|
1302
1302
|
onClick: le(i, ["stop"])
|
|
1303
1303
|
}, "Select All (" + D(c.value) + ")", 1),
|
|
1304
1304
|
g("button", {
|
|
1305
|
-
onClick: le(
|
|
1305
|
+
onClick: le(p, ["stop"])
|
|
1306
1306
|
}, "Deselect All (" + D(u.value) + ")", 1)
|
|
1307
1307
|
]),
|
|
1308
|
-
|
|
1309
|
-
default:
|
|
1308
|
+
j(re, { direction: "row" }, {
|
|
1309
|
+
default: I(() => [
|
|
1310
1310
|
U(g("input", {
|
|
1311
1311
|
type: "text",
|
|
1312
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1312
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => s.value = m),
|
|
1313
1313
|
placeholder: "Search...",
|
|
1314
1314
|
class: "vs-multiselect-search vs-w-full"
|
|
1315
1315
|
}, null, 512), [
|
|
@@ -1319,13 +1319,13 @@ const fe = /* @__PURE__ */ ne(qn, [["render", Hn]]), Kn = { class: "vs-multisele
|
|
|
1319
1319
|
_: 1
|
|
1320
1320
|
}),
|
|
1321
1321
|
e.isLoading ? (h(), w("div", Un, "Loading options...")) : (h(), w("ul", jn, [
|
|
1322
|
-
(h(!0), w(K, null,
|
|
1323
|
-
key:
|
|
1324
|
-
onClick: le((b) => f(
|
|
1325
|
-
class: W({ selected: l.value.includes(
|
|
1322
|
+
(h(!0), w(K, null, z(r.value, (m) => (h(), w("li", {
|
|
1323
|
+
key: m,
|
|
1324
|
+
onClick: le((b) => f(m), ["stop"]),
|
|
1325
|
+
class: W({ selected: l.value.includes(m) })
|
|
1326
1326
|
}, [
|
|
1327
|
-
g("span", Zn, D(
|
|
1328
|
-
l.value.includes(
|
|
1327
|
+
g("span", Zn, D(m), 1),
|
|
1328
|
+
l.value.includes(m) ? (h(), w("svg", Qn, [...d[1] || (d[1] = [
|
|
1329
1329
|
g("path", {
|
|
1330
1330
|
"stroke-linecap": "round",
|
|
1331
1331
|
"stroke-linejoin": "round",
|
|
@@ -1392,10 +1392,10 @@ const Gn = {
|
|
|
1392
1392
|
}, uo = ["value"], co = { key: 1 }, fo = { class: "vs-operator-fixed" }, vo = {
|
|
1393
1393
|
key: 4,
|
|
1394
1394
|
class: "vs-muted vs-text-center vs-pt-sm"
|
|
1395
|
-
},
|
|
1395
|
+
}, po = {
|
|
1396
1396
|
key: 4,
|
|
1397
1397
|
class: "vs-filter-actions"
|
|
1398
|
-
},
|
|
1398
|
+
}, mo = /* @__PURE__ */ _({
|
|
1399
1399
|
__name: "VsDataTableFilterDropdown",
|
|
1400
1400
|
props: {
|
|
1401
1401
|
modelValue: {},
|
|
@@ -1450,7 +1450,7 @@ const Gn = {
|
|
|
1450
1450
|
return $.charAt(0).toUpperCase() + $.slice(1);
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
|
-
const c = T(() => n.type === "custom" ? [] : n.operators?.length ? n.operators : r[n.type]), f = L(null), i = L(null),
|
|
1453
|
+
const c = T(() => n.type === "custom" ? [] : n.operators?.length ? n.operators : r[n.type]), f = L(null), i = L(null), p = L(), v = L(!1);
|
|
1454
1454
|
G(
|
|
1455
1455
|
() => n.visible,
|
|
1456
1456
|
async ($) => {
|
|
@@ -1458,31 +1458,31 @@ const Gn = {
|
|
|
1458
1458
|
},
|
|
1459
1459
|
{ immediate: !0 }
|
|
1460
1460
|
);
|
|
1461
|
-
const d = L(
|
|
1461
|
+
const d = L(pe(n.type, n.modelValue));
|
|
1462
1462
|
G(
|
|
1463
1463
|
() => n.modelValue,
|
|
1464
1464
|
($) => {
|
|
1465
|
-
d.value =
|
|
1465
|
+
d.value = pe(n.type, $);
|
|
1466
1466
|
},
|
|
1467
1467
|
{ immediate: !0 }
|
|
1468
1468
|
);
|
|
1469
|
-
function
|
|
1469
|
+
function m() {
|
|
1470
1470
|
o("open");
|
|
1471
1471
|
}
|
|
1472
1472
|
function b() {
|
|
1473
1473
|
o("update:modelValue", { ...d.value }), o("apply", { ...d.value });
|
|
1474
1474
|
}
|
|
1475
1475
|
function C() {
|
|
1476
|
-
d.value =
|
|
1476
|
+
d.value = pe(n.type), o("update:modelValue", { ...d.value }), o("clear"), k();
|
|
1477
1477
|
}
|
|
1478
1478
|
function k() {
|
|
1479
1479
|
o("close");
|
|
1480
1480
|
}
|
|
1481
1481
|
function S() {
|
|
1482
|
-
!f.value || !i.value || (
|
|
1483
|
-
|
|
1482
|
+
!f.value || !i.value || (p.value = Fn(f.value, i.value, () => {
|
|
1483
|
+
Nn(f.value, i.value, {
|
|
1484
1484
|
placement: "bottom-start",
|
|
1485
|
-
middleware: [Bn(6),
|
|
1485
|
+
middleware: [Bn(6), qn(), Mn({ padding: 8 })]
|
|
1486
1486
|
}).then(({ x: $, y: x }) => {
|
|
1487
1487
|
Object.assign(i.value.style, {
|
|
1488
1488
|
left: `${$}px`,
|
|
@@ -1494,7 +1494,7 @@ const Gn = {
|
|
|
1494
1494
|
}));
|
|
1495
1495
|
}
|
|
1496
1496
|
function O() {
|
|
1497
|
-
|
|
1497
|
+
p.value?.(), p.value = void 0;
|
|
1498
1498
|
}
|
|
1499
1499
|
function A($) {
|
|
1500
1500
|
const x = $.target;
|
|
@@ -1515,7 +1515,7 @@ const Gn = {
|
|
|
1515
1515
|
"is-active": R(ot)(d.value),
|
|
1516
1516
|
"in-active": !R(ot)(d.value)
|
|
1517
1517
|
}]),
|
|
1518
|
-
onClick: le(
|
|
1518
|
+
onClick: le(m, ["stop"])
|
|
1519
1519
|
}, [...x[13] || (x[13] = [
|
|
1520
1520
|
g("svg", {
|
|
1521
1521
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1527,9 +1527,9 @@ const Gn = {
|
|
|
1527
1527
|
g("path", { d: "M440-160q-17 0-28.5-11.5T400-200v-240L168-736q-15-20-4.5-42t36.5-22h560q26 0 36.5 22t-4.5 42L560-440v240q0 17-11.5 28.5T520-160h-80Zm40-308 198-252H282l198 252Zm0 0Z" })
|
|
1528
1528
|
], -1)
|
|
1529
1529
|
])], 2),
|
|
1530
|
-
(h(),
|
|
1531
|
-
|
|
1532
|
-
default:
|
|
1530
|
+
(h(), fe(kt, { to: "body" }, [
|
|
1531
|
+
j(Rt, { name: "fade" }, {
|
|
1532
|
+
default: I(() => [
|
|
1533
1533
|
v.value ? (h(), w("div", {
|
|
1534
1534
|
key: 0,
|
|
1535
1535
|
ref_key: "floatingRef",
|
|
@@ -1545,7 +1545,7 @@ const Gn = {
|
|
|
1545
1545
|
"onUpdate:modelValue": x[0] || (x[0] = (y) => d.value.operator = y),
|
|
1546
1546
|
class: "vs-operator-select vs-mx-auto vs-w-full"
|
|
1547
1547
|
}, [
|
|
1548
|
-
(h(!0), w(K, null,
|
|
1548
|
+
(h(!0), w(K, null, z(c.value, (y) => (h(), w("option", {
|
|
1549
1549
|
key: y,
|
|
1550
1550
|
value: y
|
|
1551
1551
|
}, D(u(y)), 9, _n))), 128))
|
|
@@ -1553,11 +1553,11 @@ const Gn = {
|
|
|
1553
1553
|
[Me, d.value.operator]
|
|
1554
1554
|
])
|
|
1555
1555
|
])) : P("", !0),
|
|
1556
|
-
|
|
1556
|
+
j(re, {
|
|
1557
1557
|
direction: "row",
|
|
1558
1558
|
class: "mb-6"
|
|
1559
1559
|
}, {
|
|
1560
|
-
default:
|
|
1560
|
+
default: I(() => [
|
|
1561
1561
|
U(g("input", {
|
|
1562
1562
|
type: "text",
|
|
1563
1563
|
"onUpdate:modelValue": x[1] || (x[1] = (y) => d.value.value = y),
|
|
@@ -1570,11 +1570,30 @@ const Gn = {
|
|
|
1570
1570
|
_: 1
|
|
1571
1571
|
})
|
|
1572
1572
|
])) : d.value.type === "multi-select" ? (h(), w("div", eo, [
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
},
|
|
1577
|
-
|
|
1573
|
+
j(re, {
|
|
1574
|
+
direction: "row",
|
|
1575
|
+
class: "mb-6 vs-align-center vs-justify-end"
|
|
1576
|
+
}, {
|
|
1577
|
+
default: I(() => [
|
|
1578
|
+
e.asyncOptions ? (h(), w("span", {
|
|
1579
|
+
key: 0,
|
|
1580
|
+
onClick: x[2] || (x[2] = (y) => R(a)(!0)),
|
|
1581
|
+
class: "vs-cursor-pointer"
|
|
1582
|
+
}, [...x[14] || (x[14] = [
|
|
1583
|
+
g("svg", {
|
|
1584
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1585
|
+
height: "24px",
|
|
1586
|
+
viewBox: "0 -960 960 960",
|
|
1587
|
+
width: "24px",
|
|
1588
|
+
fill: "var(--vs-inactive)"
|
|
1589
|
+
}, [
|
|
1590
|
+
g("path", { d: "M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-110h80v280H520v-80h168q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q77 0 139-44t87-116h84q-28 106-114 173t-196 67Z" })
|
|
1591
|
+
], -1)
|
|
1592
|
+
])])) : P("", !0)
|
|
1593
|
+
]),
|
|
1594
|
+
_: 1
|
|
1595
|
+
}),
|
|
1596
|
+
j(Xn, {
|
|
1578
1597
|
isLoading: R(l),
|
|
1579
1598
|
columnData: R(s),
|
|
1580
1599
|
modelValue: d.value.value,
|
|
@@ -1587,7 +1606,7 @@ const Gn = {
|
|
|
1587
1606
|
"onUpdate:modelValue": x[4] || (x[4] = (y) => d.value.operator = y),
|
|
1588
1607
|
class: "vs-operator-select vs-w-full"
|
|
1589
1608
|
}, [
|
|
1590
|
-
(h(!0), w(K, null,
|
|
1609
|
+
(h(!0), w(K, null, z(c.value, (y) => (h(), w("option", {
|
|
1591
1610
|
key: y,
|
|
1592
1611
|
value: y
|
|
1593
1612
|
}, D(u(y)), 9, oo))), 128))
|
|
@@ -1597,14 +1616,14 @@ const Gn = {
|
|
|
1597
1616
|
])) : (h(), w("div", so, [
|
|
1598
1617
|
g("span", lo, D(d.value.operator), 1)
|
|
1599
1618
|
])),
|
|
1600
|
-
d.value.operator === "between" ? (h(),
|
|
1619
|
+
d.value.operator === "between" ? (h(), fe(re, {
|
|
1601
1620
|
key: 2,
|
|
1602
1621
|
justify: "between",
|
|
1603
1622
|
align: "center",
|
|
1604
1623
|
gap: "4",
|
|
1605
1624
|
class: "mb-6"
|
|
1606
1625
|
}, {
|
|
1607
|
-
default:
|
|
1626
|
+
default: I(() => [
|
|
1608
1627
|
U(g("input", {
|
|
1609
1628
|
type: "number",
|
|
1610
1629
|
"onUpdate:modelValue": x[5] || (x[5] = (y) => d.value.min = y),
|
|
@@ -1618,7 +1637,7 @@ const Gn = {
|
|
|
1618
1637
|
{ number: !0 }
|
|
1619
1638
|
]
|
|
1620
1639
|
]),
|
|
1621
|
-
x[
|
|
1640
|
+
x[15] || (x[15] = g("span", null, "-", -1)),
|
|
1622
1641
|
U(g("input", {
|
|
1623
1642
|
type: "number",
|
|
1624
1643
|
"onUpdate:modelValue": x[6] || (x[6] = (y) => d.value.max = y),
|
|
@@ -1634,11 +1653,11 @@ const Gn = {
|
|
|
1634
1653
|
])
|
|
1635
1654
|
]),
|
|
1636
1655
|
_: 1
|
|
1637
|
-
})) : ["equals", "notEqual", "greaterThan", "lessThan"].includes(d.value.operator || "") ? (h(),
|
|
1656
|
+
})) : ["equals", "notEqual", "greaterThan", "lessThan"].includes(d.value.operator || "") ? (h(), fe(re, {
|
|
1638
1657
|
key: 3,
|
|
1639
1658
|
direction: "row"
|
|
1640
1659
|
}, {
|
|
1641
|
-
default:
|
|
1660
|
+
default: I(() => [
|
|
1642
1661
|
U(g("input", {
|
|
1643
1662
|
type: "number",
|
|
1644
1663
|
"onUpdate:modelValue": x[7] || (x[7] = (y) => d.value.value = y),
|
|
@@ -1654,7 +1673,7 @@ const Gn = {
|
|
|
1654
1673
|
])
|
|
1655
1674
|
]),
|
|
1656
1675
|
_: 1
|
|
1657
|
-
})) : ["empty", "notEmpty"].includes(d.value.operator || "") ? (h(), w("div", ao, [...x[
|
|
1676
|
+
})) : ["empty", "notEmpty"].includes(d.value.operator || "") ? (h(), w("div", ao, [...x[16] || (x[16] = [
|
|
1658
1677
|
g("div", { class: "vs-muted vs-text-center vs-pt-sm" }, "No input required", -1)
|
|
1659
1678
|
])])) : P("", !0)
|
|
1660
1679
|
])) : d.value.type === "date-range" ? (h(), w("div", ro, [
|
|
@@ -1663,7 +1682,7 @@ const Gn = {
|
|
|
1663
1682
|
"onUpdate:modelValue": x[8] || (x[8] = (y) => d.value.operator = y),
|
|
1664
1683
|
class: "vs-operator-select vs-w-full"
|
|
1665
1684
|
}, [
|
|
1666
|
-
(h(!0), w(K, null,
|
|
1685
|
+
(h(!0), w(K, null, z(c.value, (y) => (h(), w("option", {
|
|
1667
1686
|
key: y,
|
|
1668
1687
|
value: y
|
|
1669
1688
|
}, D(u(y)), 9, uo))), 128))
|
|
@@ -1673,14 +1692,14 @@ const Gn = {
|
|
|
1673
1692
|
])) : (h(), w("div", co, [
|
|
1674
1693
|
g("span", fo, D(d.value.operator), 1)
|
|
1675
1694
|
])),
|
|
1676
|
-
d.value.operator === "between" ? (h(),
|
|
1695
|
+
d.value.operator === "between" ? (h(), fe(re, {
|
|
1677
1696
|
key: 2,
|
|
1678
1697
|
justify: "between",
|
|
1679
1698
|
align: "center",
|
|
1680
1699
|
gap: "4",
|
|
1681
1700
|
class: "mb-6"
|
|
1682
1701
|
}, {
|
|
1683
|
-
default:
|
|
1702
|
+
default: I(() => [
|
|
1684
1703
|
U(g("input", {
|
|
1685
1704
|
type: "date",
|
|
1686
1705
|
"onUpdate:modelValue": x[9] || (x[9] = (y) => d.value.start = y),
|
|
@@ -1688,7 +1707,7 @@ const Gn = {
|
|
|
1688
1707
|
}, null, 512), [
|
|
1689
1708
|
[oe, d.value.start]
|
|
1690
1709
|
]),
|
|
1691
|
-
x[
|
|
1710
|
+
x[17] || (x[17] = g("span", null, "-", -1)),
|
|
1692
1711
|
U(g("input", {
|
|
1693
1712
|
type: "date",
|
|
1694
1713
|
"onUpdate:modelValue": x[10] || (x[10] = (y) => d.value.end = y),
|
|
@@ -1698,12 +1717,12 @@ const Gn = {
|
|
|
1698
1717
|
])
|
|
1699
1718
|
]),
|
|
1700
1719
|
_: 1
|
|
1701
|
-
})) : ["equals", "notEqual", "before", "after"].includes(d.value.operator || "") ? (h(),
|
|
1720
|
+
})) : ["equals", "notEqual", "before", "after"].includes(d.value.operator || "") ? (h(), fe(re, {
|
|
1702
1721
|
key: 3,
|
|
1703
1722
|
direction: "row",
|
|
1704
1723
|
class: "vs-filter-single-date"
|
|
1705
1724
|
}, {
|
|
1706
|
-
default:
|
|
1725
|
+
default: I(() => [
|
|
1707
1726
|
U(g("input", {
|
|
1708
1727
|
type: "date",
|
|
1709
1728
|
"onUpdate:modelValue": x[11] || (x[11] = (y) => d.value.value = y),
|
|
@@ -1715,7 +1734,7 @@ const Gn = {
|
|
|
1715
1734
|
_: 1
|
|
1716
1735
|
})) : ["empty", "notEmpty"].includes(d.value.operator || "") ? (h(), w("div", vo, " No date input required ")) : P("", !0)
|
|
1717
1736
|
])) : P("", !0),
|
|
1718
|
-
d.value.type !== "custom" ? (h(), w("div",
|
|
1737
|
+
d.value.type !== "custom" ? (h(), w("div", po, [
|
|
1719
1738
|
g("button", {
|
|
1720
1739
|
class: "vs-btn vs-btn-primary",
|
|
1721
1740
|
onClick: b
|
|
@@ -1725,7 +1744,7 @@ const Gn = {
|
|
|
1725
1744
|
onClick: C
|
|
1726
1745
|
}, "Clear")
|
|
1727
1746
|
])) : P("", !0),
|
|
1728
|
-
|
|
1747
|
+
q($.$slots, "custom", {
|
|
1729
1748
|
filter: d.value,
|
|
1730
1749
|
apply: b,
|
|
1731
1750
|
clear: C
|
|
@@ -1737,7 +1756,7 @@ const Gn = {
|
|
|
1737
1756
|
]))
|
|
1738
1757
|
], 64));
|
|
1739
1758
|
}
|
|
1740
|
-
}), go = /* @__PURE__ */ ne(
|
|
1759
|
+
}), go = /* @__PURE__ */ ne(mo, [["__scopeId", "data-v-bdeb98d2"]]), ho = {
|
|
1741
1760
|
key: 0,
|
|
1742
1761
|
class: "vs-expand-column",
|
|
1743
1762
|
style: { width: "5%" }
|
|
@@ -1799,13 +1818,13 @@ const Gn = {
|
|
|
1799
1818
|
}, null, 8, xo)
|
|
1800
1819
|
])
|
|
1801
1820
|
])) : P("", !0),
|
|
1802
|
-
(h(!0), w(K, null,
|
|
1821
|
+
(h(!0), w(K, null, z(e.columns, (i) => (h(), w("th", {
|
|
1803
1822
|
key: i.field,
|
|
1804
|
-
onClick: (
|
|
1823
|
+
onClick: (p) => i.sortable ? e.sortHelpers.handleSort(i.field, p) : null,
|
|
1805
1824
|
style: St({ width: i.width + "%" }),
|
|
1806
1825
|
class: W([i.sortable ? "vs-sortable" : "", e.headerClass])
|
|
1807
1826
|
}, [
|
|
1808
|
-
|
|
1827
|
+
q(c.$slots, `header-${i.field}`, { column: i }, () => [
|
|
1809
1828
|
g("div", ko, [
|
|
1810
1829
|
g("span", Ro, D(i.label), 1),
|
|
1811
1830
|
i.sortable ? (h(), w("div", So, [
|
|
@@ -1840,30 +1859,30 @@ const Gn = {
|
|
|
1840
1859
|
])], 2)
|
|
1841
1860
|
])) : P("", !0),
|
|
1842
1861
|
e.sortHelpers.getSortPriority(i.field) !== null ? (h(), w("span", To, D(e.sortHelpers.getSortPriority(i.field)), 1)) : P("", !0),
|
|
1843
|
-
i.filter ? (h(),
|
|
1862
|
+
i.filter ? (h(), fe(go, {
|
|
1844
1863
|
key: 2,
|
|
1845
1864
|
type: i.filter.type,
|
|
1846
1865
|
"async-options": i.filter.asyncOptions,
|
|
1847
1866
|
field: i.field,
|
|
1848
1867
|
operators: i.filter.operators,
|
|
1849
1868
|
modelValue: l.value[i.field],
|
|
1850
|
-
"onUpdate:modelValue": (
|
|
1869
|
+
"onUpdate:modelValue": (p) => l.value[i.field] = p,
|
|
1851
1870
|
visible: a.value === i.field,
|
|
1852
|
-
"column-data": e.rows.map((
|
|
1853
|
-
onApply: (
|
|
1854
|
-
o("applyFilter", i.field,
|
|
1871
|
+
"column-data": e.rows.map((p) => p[i.field]),
|
|
1872
|
+
onApply: (p) => {
|
|
1873
|
+
o("applyFilter", i.field, p);
|
|
1855
1874
|
},
|
|
1856
1875
|
onClear: () => {
|
|
1857
1876
|
o("clearFilter", i.field);
|
|
1858
1877
|
},
|
|
1859
|
-
onClose: (
|
|
1860
|
-
onOpen: (
|
|
1861
|
-
},
|
|
1878
|
+
onClose: (p) => u(i.field),
|
|
1879
|
+
onOpen: (p) => r(i.field)
|
|
1880
|
+
}, Ne({ _: 2 }, [
|
|
1862
1881
|
i.filter.custom ? {
|
|
1863
1882
|
name: "custom",
|
|
1864
|
-
fn:
|
|
1865
|
-
|
|
1866
|
-
filter:
|
|
1883
|
+
fn: I(({ filter: p, apply: v, clear: d }) => [
|
|
1884
|
+
q(c.$slots, i.filter.custom, {
|
|
1885
|
+
filter: p,
|
|
1867
1886
|
apply: v,
|
|
1868
1887
|
clear: d
|
|
1869
1888
|
}, void 0, !0)
|
|
@@ -1877,7 +1896,7 @@ const Gn = {
|
|
|
1877
1896
|
])
|
|
1878
1897
|
]));
|
|
1879
1898
|
}
|
|
1880
|
-
}), Vo = /* @__PURE__ */ ne($o, [["__scopeId", "data-v-1776a5d5"]]), Oo = { key: 0 }, Ao = ["colspan"], Eo = { key: 1 }, Po = ["colspan"], Do = { class: "vs-no-data-message" }, Lo = { class: "vs-no-data-description" }, Fo = ["onClick"], Bo = ["aria-expanded", "aria-controls", "onClick"], Mo = { key: 0 },
|
|
1899
|
+
}), Vo = /* @__PURE__ */ ne($o, [["__scopeId", "data-v-1776a5d5"]]), Oo = { key: 0 }, Ao = ["colspan"], Eo = { key: 1 }, Po = ["colspan"], Do = { class: "vs-no-data-message" }, Lo = { class: "vs-no-data-description" }, Fo = ["onClick"], Bo = ["aria-expanded", "aria-controls", "onClick"], Mo = { key: 0 }, qo = { key: 1 }, No = { class: "vs-checkbox" }, Io = ["id", "value", "checked", "onChange"], Ho = ["for"], Ko = {
|
|
1881
1900
|
key: 0,
|
|
1882
1901
|
class: "vs-row-expanded"
|
|
1883
1902
|
}, Wo = ["colspan"], Uo = {
|
|
@@ -1921,7 +1940,7 @@ const Gn = {
|
|
|
1921
1940
|
l[2] || (l[2] = g("div", { class: "vs-spinner" }, null, -1)),
|
|
1922
1941
|
g("span", null, D(e.loadingText), 1)
|
|
1923
1942
|
], 8, Ao)
|
|
1924
|
-
])) : e.paginatedRows.length ? (h(!0), w(K, { key: 2 },
|
|
1943
|
+
])) : e.paginatedRows.length ? (h(!0), w(K, { key: 2 }, z(e.paginatedRows, (a, r) => (h(), w(K, {
|
|
1925
1944
|
key: e.getRowKey(a, r)
|
|
1926
1945
|
}, [
|
|
1927
1946
|
g("tr", {
|
|
@@ -1955,7 +1974,7 @@ const Gn = {
|
|
|
1955
1974
|
}, [
|
|
1956
1975
|
g("path", { d: "M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z" })
|
|
1957
1976
|
], -1)
|
|
1958
|
-
])])) : (h(), w("span",
|
|
1977
|
+
])])) : (h(), w("span", qo, [...l[5] || (l[5] = [
|
|
1959
1978
|
g("svg", {
|
|
1960
1979
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1961
1980
|
height: "24px",
|
|
@@ -1974,24 +1993,24 @@ const Gn = {
|
|
|
1974
1993
|
}, ["stop"])),
|
|
1975
1994
|
class: "vs-checkbox-column"
|
|
1976
1995
|
}, [
|
|
1977
|
-
g("div",
|
|
1996
|
+
g("div", No, [
|
|
1978
1997
|
g("input", {
|
|
1979
1998
|
type: "checkbox",
|
|
1980
1999
|
id: e.tablename + "-checkbox-" + e.getRowKey(a, r),
|
|
1981
2000
|
value: a,
|
|
1982
2001
|
checked: e.selectedItems.some((u, c) => e.getRowKey(u, c) === e.getRowKey(a, r)),
|
|
1983
2002
|
onChange: (u) => e.toggleRow(a, r)
|
|
1984
|
-
}, null, 40,
|
|
2003
|
+
}, null, 40, Io),
|
|
1985
2004
|
g("label", {
|
|
1986
2005
|
for: e.tablename + "-checkbox-" + e.getRowKey(a, r)
|
|
1987
2006
|
}, null, 8, Ho)
|
|
1988
2007
|
])
|
|
1989
2008
|
])) : P("", !0),
|
|
1990
|
-
(h(!0), w(K, null,
|
|
2009
|
+
(h(!0), w(K, null, z(e.columns, (u) => (h(), w("td", {
|
|
1991
2010
|
key: u.field,
|
|
1992
2011
|
class: W(e.cellClass)
|
|
1993
2012
|
}, [
|
|
1994
|
-
|
|
2013
|
+
q(s.$slots, `cell-${u.field}`, {
|
|
1995
2014
|
item: a,
|
|
1996
2015
|
value: e.getValue(a, u.field),
|
|
1997
2016
|
column: u,
|
|
@@ -2007,7 +2026,7 @@ const Gn = {
|
|
|
2007
2026
|
colspan: e.totalColumns,
|
|
2008
2027
|
class: "vs-expanded-cell"
|
|
2009
2028
|
}, [
|
|
2010
|
-
e.isRowLoading(a, r) ?
|
|
2029
|
+
e.isRowLoading(a, r) ? q(s.$slots, "row-expanded-loader", {
|
|
2011
2030
|
key: 0,
|
|
2012
2031
|
item: a,
|
|
2013
2032
|
index: r
|
|
@@ -2016,7 +2035,7 @@ const Gn = {
|
|
|
2016
2035
|
g("div", { class: "vs-loader-bar-inner" })
|
|
2017
2036
|
], -1))
|
|
2018
2037
|
], !0) : (h(), w("div", Uo, [
|
|
2019
|
-
|
|
2038
|
+
q(s.$slots, "row-expanded", {
|
|
2020
2039
|
item: a,
|
|
2021
2040
|
index: r
|
|
2022
2041
|
}, () => [
|
|
@@ -2032,7 +2051,7 @@ const Gn = {
|
|
|
2032
2051
|
colspan: e.totalColumns,
|
|
2033
2052
|
class: "vs-no-data"
|
|
2034
2053
|
}, [
|
|
2035
|
-
|
|
2054
|
+
q(s.$slots, "no-data", {}, () => [
|
|
2036
2055
|
l[3] || (l[3] = g("div", { class: "vs-no-data-icon" }, [
|
|
2037
2056
|
g("svg", {
|
|
2038
2057
|
viewBox: "0 0 24 24",
|
|
@@ -2100,17 +2119,17 @@ const Gn = {
|
|
|
2100
2119
|
return (s, l) => (h(), w("div", Go, [
|
|
2101
2120
|
g("div", Jo, [
|
|
2102
2121
|
e.showSearch ? (h(), w("div", _o, [
|
|
2103
|
-
|
|
2122
|
+
j(Yo, {
|
|
2104
2123
|
"model-value": e.searchQuery,
|
|
2105
2124
|
"onUpdate:modelValue": o,
|
|
2106
2125
|
placeholder: e.searchPlaceholder,
|
|
2107
2126
|
class: W(e.searchClass)
|
|
2108
2127
|
}, null, 8, ["model-value", "placeholder", "class"])
|
|
2109
2128
|
])) : P("", !0),
|
|
2110
|
-
|
|
2129
|
+
q(s.$slots, "left", {}, void 0, !0)
|
|
2111
2130
|
]),
|
|
2112
2131
|
g("div", es, [
|
|
2113
|
-
|
|
2132
|
+
q(s.$slots, "right", {}, void 0, !0)
|
|
2114
2133
|
])
|
|
2115
2134
|
]));
|
|
2116
2135
|
}
|
|
@@ -2130,16 +2149,16 @@ function os(e, t, n) {
|
|
|
2130
2149
|
return {
|
|
2131
2150
|
activeSort: l,
|
|
2132
2151
|
sortHelpers: {
|
|
2133
|
-
isColumnSorted: (i) => l.value.some((
|
|
2152
|
+
isColumnSorted: (i) => l.value.some((p) => p.field === i),
|
|
2134
2153
|
getSortPriority: (i) => {
|
|
2135
|
-
const
|
|
2136
|
-
return
|
|
2154
|
+
const p = l.value.find((v) => v.field === i);
|
|
2155
|
+
return p ? p.priority ?? null : null;
|
|
2137
2156
|
},
|
|
2138
|
-
getSortOrder: (i) => l.value.find((
|
|
2139
|
-
handleSort: (i,
|
|
2157
|
+
getSortOrder: (i) => l.value.find((p) => p.field === i)?.order ?? null,
|
|
2158
|
+
handleSort: (i, p) => {
|
|
2140
2159
|
let v = [...s.value];
|
|
2141
|
-
const d = v.findIndex((
|
|
2142
|
-
|
|
2160
|
+
const d = v.findIndex((m) => m.field === i);
|
|
2161
|
+
p.shiftKey ? d === -1 ? v.push({ field: i, order: "asc" }) : v[d]?.order === "asc" ? v[d].order = "desc" : v.splice(d, 1) : d === -1 ? v = [{ field: i, order: "asc" }] : v[d]?.order === "asc" ? v = [{ field: i, order: "desc" }] : v = [], v = v.map((m, b) => ({ ...m, priority: b + 1 })), s.value = [...v], e.serverOptions ? t("update:serverOptions", { ...e.serverOptions, sort: v }) : t("update:sort", v), n.value = o.value, t("sortChanged", { sort: v });
|
|
2143
2162
|
}
|
|
2144
2163
|
}
|
|
2145
2164
|
};
|
|
@@ -2219,17 +2238,17 @@ function rs(e, t) {
|
|
|
2219
2238
|
return typeof e.rowKey == "function" ? e.rowKey(f, i) : typeof e.rowKey == "string" && f[e.rowKey] !== void 0 ? f[e.rowKey] : i;
|
|
2220
2239
|
}
|
|
2221
2240
|
function a(f, i) {
|
|
2222
|
-
const
|
|
2223
|
-
return s.value.includes(
|
|
2241
|
+
const p = l(f, i);
|
|
2242
|
+
return s.value.includes(p);
|
|
2224
2243
|
}
|
|
2225
2244
|
function r(f, i) {
|
|
2226
|
-
const
|
|
2245
|
+
const p = l(f, i), v = s.value.includes(p);
|
|
2227
2246
|
let d;
|
|
2228
|
-
v ? (d = s.value.filter((
|
|
2247
|
+
v ? (d = s.value.filter((m) => m !== p), t("collapseRow", { row: f, index: i, rowId: p })) : (d = e.accordion ? [p] : [...s.value, p], t("expandRow", { row: f, index: i, rowId: p })), s.value = d;
|
|
2229
2248
|
}
|
|
2230
2249
|
function u(f, i) {
|
|
2231
|
-
const
|
|
2232
|
-
return o.value.get(
|
|
2250
|
+
const p = l(f, i);
|
|
2251
|
+
return o.value.get(p) === !0;
|
|
2233
2252
|
}
|
|
2234
2253
|
function c(f, i) {
|
|
2235
2254
|
o.value.set(f, i);
|
|
@@ -2251,8 +2270,8 @@ function is(e, t, n) {
|
|
|
2251
2270
|
if (u.filter?.filterFn)
|
|
2252
2271
|
return u.filter.filterFn(f, c.value, r);
|
|
2253
2272
|
if (c.type === "custom" && u.filter?.filterKey) {
|
|
2254
|
-
const
|
|
2255
|
-
return typeof
|
|
2273
|
+
const p = Ae[u.filter.filterKey];
|
|
2274
|
+
return typeof p == "function" ? p(r, u.field, c) : !0;
|
|
2256
2275
|
}
|
|
2257
2276
|
const i = Ae[c.type];
|
|
2258
2277
|
return typeof i == "function" ? i(r, u.field, c) : !0;
|
|
@@ -2264,26 +2283,26 @@ function is(e, t, n) {
|
|
|
2264
2283
|
const u = Object.entries(r).reduce(
|
|
2265
2284
|
(c, [f, i]) => {
|
|
2266
2285
|
if (!i?.type) return c;
|
|
2267
|
-
const
|
|
2286
|
+
const p = {
|
|
2268
2287
|
type: i.type,
|
|
2269
2288
|
operator: i.operator
|
|
2270
2289
|
};
|
|
2271
2290
|
switch (i.type) {
|
|
2272
2291
|
case "text":
|
|
2273
2292
|
c[f] = {
|
|
2274
|
-
...
|
|
2293
|
+
...p,
|
|
2275
2294
|
value: i.value ?? null
|
|
2276
2295
|
};
|
|
2277
2296
|
break;
|
|
2278
2297
|
case "multi-select":
|
|
2279
2298
|
c[f] = {
|
|
2280
|
-
...
|
|
2299
|
+
...p,
|
|
2281
2300
|
value: i.value ?? []
|
|
2282
2301
|
};
|
|
2283
2302
|
break;
|
|
2284
2303
|
case "number-range":
|
|
2285
2304
|
c[f] = {
|
|
2286
|
-
...
|
|
2305
|
+
...p,
|
|
2287
2306
|
value: i.value ?? null,
|
|
2288
2307
|
min: i.min ?? null,
|
|
2289
2308
|
max: i.max ?? null
|
|
@@ -2291,7 +2310,7 @@ function is(e, t, n) {
|
|
|
2291
2310
|
break;
|
|
2292
2311
|
case "date-range":
|
|
2293
2312
|
c[f] = {
|
|
2294
|
-
...
|
|
2313
|
+
...p,
|
|
2295
2314
|
value: i.value ?? null,
|
|
2296
2315
|
start: i.start ?? null,
|
|
2297
2316
|
end: i.end ?? null
|
|
@@ -2299,7 +2318,7 @@ function is(e, t, n) {
|
|
|
2299
2318
|
break;
|
|
2300
2319
|
case "custom":
|
|
2301
2320
|
c[f] = {
|
|
2302
|
-
...
|
|
2321
|
+
...p,
|
|
2303
2322
|
value: i.value,
|
|
2304
2323
|
filterKey: i.filterKey
|
|
2305
2324
|
};
|
|
@@ -2315,10 +2334,10 @@ function is(e, t, n) {
|
|
|
2315
2334
|
{ deep: !0 }
|
|
2316
2335
|
);
|
|
2317
2336
|
function l(r, u, c) {
|
|
2318
|
-
u ? o.value[r] =
|
|
2337
|
+
u ? o.value[r] = pe(u.type, u) : c && (o.value[r] = pe(c));
|
|
2319
2338
|
}
|
|
2320
2339
|
function a(r, u) {
|
|
2321
|
-
u ? o.value[r] =
|
|
2340
|
+
u ? o.value[r] = pe(u) : delete o.value[r];
|
|
2322
2341
|
}
|
|
2323
2342
|
return {
|
|
2324
2343
|
filters: o,
|
|
@@ -2328,7 +2347,7 @@ function is(e, t, n) {
|
|
|
2328
2347
|
};
|
|
2329
2348
|
}
|
|
2330
2349
|
function us(e, t) {
|
|
2331
|
-
const n = ye(e.rows) ? e.rows : at(e.rows), o = L(1), s = L(e.serverOptions?.rowsPerPage ?? e.rowsPerPage), l = L(""), { isRowExpanded: a, toggleRowExpansion: r, getRowId: u, setRowLoading: c, isRowLoading: f } = rs(e, t), { filters: i, filteredData:
|
|
2350
|
+
const n = ye(e.rows) ? e.rows : at(e.rows), o = L(1), s = L(e.serverOptions?.rowsPerPage ?? e.rowsPerPage), l = L(""), { isRowExpanded: a, toggleRowExpansion: r, getRowId: u, setRowLoading: c, isRowLoading: f } = rs(e, t), { filters: i, filteredData: p, setFilter: v, clearFilter: d } = is(
|
|
2332
2351
|
T(() => R(n)),
|
|
2333
2352
|
e.columns,
|
|
2334
2353
|
{
|
|
@@ -2337,20 +2356,20 @@ function us(e, t) {
|
|
|
2337
2356
|
t("filterChange", y);
|
|
2338
2357
|
}
|
|
2339
2358
|
}
|
|
2340
|
-
), { activeSort:
|
|
2359
|
+
), { activeSort: m, sortHelpers: b } = os(e, t, o), { onInputTyped: C } = as(t, l), { totalRecords: k, recordRange: S, handlePageChange: O } = ss(
|
|
2341
2360
|
e,
|
|
2342
2361
|
t,
|
|
2343
2362
|
o,
|
|
2344
2363
|
s,
|
|
2345
2364
|
T(() => $.value)
|
|
2346
2365
|
), { handleRowsPerPage: A } = ls(e, t, o, s), M = T(() => {
|
|
2347
|
-
let y =
|
|
2366
|
+
let y = p.value;
|
|
2348
2367
|
return l.value && (y = Qe(y, l.value)), y;
|
|
2349
2368
|
}), $ = T(() => {
|
|
2350
2369
|
let y = M.value;
|
|
2351
|
-
return e.serverOptions || (l.value && (y = Qe(y, l.value)),
|
|
2352
|
-
...
|
|
2353
|
-
isExpanded: a(
|
|
2370
|
+
return e.serverOptions || (l.value && (y = Qe(y, l.value)), m.value.length && (y = At(y, m.value))), y = y.map((N, de) => ({
|
|
2371
|
+
...N,
|
|
2372
|
+
isExpanded: a(N, de)
|
|
2354
2373
|
// pass index here
|
|
2355
2374
|
})), y;
|
|
2356
2375
|
});
|
|
@@ -2383,7 +2402,7 @@ function us(e, t) {
|
|
|
2383
2402
|
isRowLoading: f,
|
|
2384
2403
|
// Column filters
|
|
2385
2404
|
filters: i,
|
|
2386
|
-
filteredData:
|
|
2405
|
+
filteredData: p,
|
|
2387
2406
|
setFilter: v,
|
|
2388
2407
|
clearFilter: d
|
|
2389
2408
|
};
|
|
@@ -2392,31 +2411,31 @@ function cs(e, t) {
|
|
|
2392
2411
|
const n = L(e.itemSelected || []);
|
|
2393
2412
|
G(
|
|
2394
2413
|
() => e.itemSelected,
|
|
2395
|
-
(
|
|
2396
|
-
|
|
2414
|
+
(m) => {
|
|
2415
|
+
m ? n.value = [...m] : n.value = [];
|
|
2397
2416
|
},
|
|
2398
2417
|
{ immediate: !0, deep: !0 }
|
|
2399
2418
|
);
|
|
2400
2419
|
const o = T({
|
|
2401
2420
|
get: () => n.value,
|
|
2402
|
-
set: (
|
|
2403
|
-
n.value =
|
|
2421
|
+
set: (m) => {
|
|
2422
|
+
n.value = m, t("update:itemSelected", m);
|
|
2404
2423
|
}
|
|
2405
2424
|
}), s = T(() => e.itemSelected !== null), l = T(
|
|
2406
2425
|
() => e.rows.length > 0 && o.value.length === e.rows.length
|
|
2407
2426
|
), a = T(() => !e.rows.length || !o.value.length ? !1 : !l.value && e.rows.some(
|
|
2408
|
-
(
|
|
2409
|
-
(C, k) =>
|
|
2427
|
+
(m, b) => o.value.some(
|
|
2428
|
+
(C, k) => X(C, k, e.rowKey) === X(m, b, e.rowKey)
|
|
2410
2429
|
)
|
|
2411
|
-
)), r = (
|
|
2412
|
-
const C =
|
|
2430
|
+
)), r = (m, b) => {
|
|
2431
|
+
const C = X(m, b, e.rowKey);
|
|
2413
2432
|
o.value.some(
|
|
2414
|
-
(S, O) =>
|
|
2433
|
+
(S, O) => X(S, O, e.rowKey) === C
|
|
2415
2434
|
) ? (o.value = o.value.filter(
|
|
2416
|
-
(S, O) =>
|
|
2417
|
-
), t("rowDeselected",
|
|
2418
|
-
}, u = (
|
|
2419
|
-
const b =
|
|
2435
|
+
(S, O) => X(S, O, e.rowKey) !== C
|
|
2436
|
+
), t("rowDeselected", m, b)) : (o.value = [...o.value, m], t("rowSelected", m, b));
|
|
2437
|
+
}, u = (m) => {
|
|
2438
|
+
const b = m.target;
|
|
2420
2439
|
o.value = b.checked ? [...e.rows] : [], t("allRowsSelected", o.value);
|
|
2421
2440
|
};
|
|
2422
2441
|
return {
|
|
@@ -2426,14 +2445,14 @@ function cs(e, t) {
|
|
|
2426
2445
|
isSomeChecked: a,
|
|
2427
2446
|
toggleRow: r,
|
|
2428
2447
|
toggleAll: u,
|
|
2429
|
-
selectRow: (
|
|
2430
|
-
rt(
|
|
2448
|
+
selectRow: (m, b) => {
|
|
2449
|
+
rt(m, o.value, e.rowKey) || (o.value = [...o.value, m], t("rowSelected", m, b));
|
|
2431
2450
|
},
|
|
2432
|
-
deselectRow: (
|
|
2433
|
-
const C =
|
|
2451
|
+
deselectRow: (m, b) => {
|
|
2452
|
+
const C = X(m, b, e.rowKey);
|
|
2434
2453
|
o.value = o.value.filter(
|
|
2435
|
-
(k, S) =>
|
|
2436
|
-
), t("rowDeselected",
|
|
2454
|
+
(k, S) => X(k, S, e.rowKey) !== C
|
|
2455
|
+
), t("rowDeselected", m, b);
|
|
2437
2456
|
},
|
|
2438
2457
|
selectAll: () => {
|
|
2439
2458
|
o.value = [...e.rows], t("allRowsSelected", o.value);
|
|
@@ -2460,7 +2479,7 @@ const ds = { class: "vs-datatable" }, fs = {
|
|
|
2460
2479
|
}, vs = {
|
|
2461
2480
|
key: 0,
|
|
2462
2481
|
class: "vs-table-footer"
|
|
2463
|
-
},
|
|
2482
|
+
}, ps = { class: "vs-footer-left" }, ms = { class: "vs-table-info" }, gs = /* @__PURE__ */ _({
|
|
2464
2483
|
__name: "VsDataTable",
|
|
2465
2484
|
props: {
|
|
2466
2485
|
rows: { default: () => [] },
|
|
@@ -2509,10 +2528,10 @@ const ds = { class: "vs-datatable" }, fs = {
|
|
|
2509
2528
|
rowsPerPage: c,
|
|
2510
2529
|
totalRecords: f,
|
|
2511
2530
|
recordRange: i,
|
|
2512
|
-
handlePageChange:
|
|
2531
|
+
handlePageChange: p,
|
|
2513
2532
|
handleRowsPerPage: v,
|
|
2514
2533
|
paginatedRows: d,
|
|
2515
|
-
sortHelpers:
|
|
2534
|
+
sortHelpers: m,
|
|
2516
2535
|
searchQuery: b,
|
|
2517
2536
|
onInputTyped: C,
|
|
2518
2537
|
isRowExpanded: k,
|
|
@@ -2524,13 +2543,13 @@ const ds = { class: "vs-datatable" }, fs = {
|
|
|
2524
2543
|
clearFilter: x
|
|
2525
2544
|
} = us({ ...o, rows: s.value }, l), {
|
|
2526
2545
|
selectedItems: y,
|
|
2527
|
-
isItemSelectedControlled:
|
|
2528
|
-
isAllChecked:
|
|
2546
|
+
isItemSelectedControlled: N,
|
|
2547
|
+
isAllChecked: de,
|
|
2529
2548
|
isSomeChecked: Ce,
|
|
2530
2549
|
toggleAll: ke,
|
|
2531
2550
|
toggleRow: te
|
|
2532
2551
|
} = cs(o, l), he = T(
|
|
2533
|
-
() => Ot(o.columns,
|
|
2552
|
+
() => Ot(o.columns, N.value, o.expandable)
|
|
2534
2553
|
);
|
|
2535
2554
|
return t({
|
|
2536
2555
|
toggleRowExpansion: S,
|
|
@@ -2547,7 +2566,7 @@ const ds = { class: "vs-datatable" }, fs = {
|
|
|
2547
2566
|
}), $t(() => {
|
|
2548
2567
|
l("tableBeforeMount");
|
|
2549
2568
|
}), (B, E) => (h(), w("div", ds, [
|
|
2550
|
-
|
|
2569
|
+
j(ns, {
|
|
2551
2570
|
"show-search": e.showSearch,
|
|
2552
2571
|
"search-query": R(b),
|
|
2553
2572
|
"onUpdate:searchQuery": E[0] || (E[0] = (V) => ye(b) ? b.value = V : null),
|
|
@@ -2555,11 +2574,11 @@ const ds = { class: "vs-datatable" }, fs = {
|
|
|
2555
2574
|
"search-placeholder": e.searchPlaceholder,
|
|
2556
2575
|
"search-class": e.searchClass
|
|
2557
2576
|
}, {
|
|
2558
|
-
left:
|
|
2559
|
-
|
|
2577
|
+
left: I(() => [
|
|
2578
|
+
q(B.$slots, "filterAreaLeft", {}, void 0, !0)
|
|
2560
2579
|
]),
|
|
2561
|
-
right:
|
|
2562
|
-
|
|
2580
|
+
right: I(() => [
|
|
2581
|
+
q(B.$slots, "filterAreaRight", {}, void 0, !0)
|
|
2563
2582
|
]),
|
|
2564
2583
|
_: 3
|
|
2565
2584
|
}, 8, ["show-search", "search-query", "onSearch", "search-placeholder", "search-class"]),
|
|
@@ -2570,14 +2589,14 @@ const ds = { class: "vs-datatable" }, fs = {
|
|
|
2570
2589
|
g("table", {
|
|
2571
2590
|
class: W(["vs-table", e.tableClass])
|
|
2572
2591
|
}, [
|
|
2573
|
-
|
|
2592
|
+
j(Vo, {
|
|
2574
2593
|
columns: e.columns,
|
|
2575
2594
|
expandable: e.expandable,
|
|
2576
|
-
"is-item-selected-controlled": R(
|
|
2577
|
-
"is-all-checked": R(
|
|
2595
|
+
"is-item-selected-controlled": R(N),
|
|
2596
|
+
"is-all-checked": R(de),
|
|
2578
2597
|
"is-some-checked": R(Ce),
|
|
2579
2598
|
tablename: e.tablename,
|
|
2580
|
-
"sort-helpers": R(
|
|
2599
|
+
"sort-helpers": R(m),
|
|
2581
2600
|
filters: R(M),
|
|
2582
2601
|
"onUpdate:filters": E[1] || (E[1] = (V) => ye(M) ? M.value = V : null),
|
|
2583
2602
|
rows: e.rows,
|
|
@@ -2589,15 +2608,15 @@ const ds = { class: "vs-datatable" }, fs = {
|
|
|
2589
2608
|
onClearFilter: E[3] || (E[3] = (V) => {
|
|
2590
2609
|
R(x)(V), u.value = 1;
|
|
2591
2610
|
})
|
|
2592
|
-
},
|
|
2593
|
-
|
|
2611
|
+
}, Ne({ _: 2 }, [
|
|
2612
|
+
z(B.$slots, (V, F) => ({
|
|
2594
2613
|
name: F,
|
|
2595
|
-
fn:
|
|
2596
|
-
|
|
2614
|
+
fn: I((we) => [
|
|
2615
|
+
q(B.$slots, F, ze(Ze(we)), void 0, !0)
|
|
2597
2616
|
])
|
|
2598
2617
|
}))
|
|
2599
2618
|
]), 1032, ["columns", "expandable", "is-item-selected-controlled", "is-all-checked", "is-some-checked", "tablename", "sort-helpers", "filters", "rows", "header-class", "onToggleAll"]),
|
|
2600
|
-
|
|
2619
|
+
j(zo, {
|
|
2601
2620
|
loading: e.loading,
|
|
2602
2621
|
"loading-text": e.loadingText,
|
|
2603
2622
|
"no-data-text": e.noDataText,
|
|
@@ -2605,7 +2624,7 @@ const ds = { class: "vs-datatable" }, fs = {
|
|
|
2605
2624
|
"paginated-rows": R(d),
|
|
2606
2625
|
"total-columns": he.value,
|
|
2607
2626
|
expandable: e.expandable,
|
|
2608
|
-
"is-item-selected-controlled": R(
|
|
2627
|
+
"is-item-selected-controlled": R(N),
|
|
2609
2628
|
"selected-items": R(y),
|
|
2610
2629
|
tablename: e.tablename,
|
|
2611
2630
|
columns: e.columns,
|
|
@@ -2613,7 +2632,7 @@ const ds = { class: "vs-datatable" }, fs = {
|
|
|
2613
2632
|
"row-class": e.rowClass,
|
|
2614
2633
|
"cell-class": e.cellClass,
|
|
2615
2634
|
"has-row-click": r.value,
|
|
2616
|
-
"get-row-key": R(
|
|
2635
|
+
"get-row-key": R(X),
|
|
2617
2636
|
"get-value": R(Vt),
|
|
2618
2637
|
"is-row-expanded": R(k),
|
|
2619
2638
|
"is-row-loading": R(A),
|
|
@@ -2621,11 +2640,11 @@ const ds = { class: "vs-datatable" }, fs = {
|
|
|
2621
2640
|
"toggle-row": R(te),
|
|
2622
2641
|
"is-row-selected": R(rt),
|
|
2623
2642
|
onRowClick: E[4] || (E[4] = (V, F) => B.$emit("rowClick", V, F))
|
|
2624
|
-
},
|
|
2625
|
-
|
|
2643
|
+
}, Ne({ _: 2 }, [
|
|
2644
|
+
z(B.$slots, (V, F) => ({
|
|
2626
2645
|
name: F,
|
|
2627
|
-
fn:
|
|
2628
|
-
|
|
2646
|
+
fn: I((we) => [
|
|
2647
|
+
q(B.$slots, F, ze(Ze(we)), void 0, !0)
|
|
2629
2648
|
])
|
|
2630
2649
|
}))
|
|
2631
2650
|
]), 1032, ["loading", "loading-text", "no-data-text", "no-data-description", "paginated-rows", "total-columns", "expandable", "is-item-selected-controlled", "selected-items", "tablename", "columns", "row-key", "row-class", "cell-class", "has-row-click", "get-row-key", "get-value", "is-row-expanded", "is-row-loading", "toggle-row-expansion", "toggle-row", "is-row-selected"])
|
|
@@ -2633,16 +2652,16 @@ const ds = { class: "vs-datatable" }, fs = {
|
|
|
2633
2652
|
], 512)
|
|
2634
2653
|
], 2),
|
|
2635
2654
|
e.showFooter ? (h(), w("div", vs, [
|
|
2636
|
-
g("div",
|
|
2637
|
-
|
|
2655
|
+
g("div", ps, [
|
|
2656
|
+
j(jt, {
|
|
2638
2657
|
modelValue: R(c),
|
|
2639
2658
|
"onUpdate:modelValue": E[5] || (E[5] = (V) => ye(c) ? c.value = V : null),
|
|
2640
2659
|
onRowsPerPageChanged: R(v)
|
|
2641
2660
|
}, null, 8, ["modelValue", "onRowsPerPageChanged"]),
|
|
2642
2661
|
E[7] || (E[7] = g("div", { class: "vs-divider" }, null, -1)),
|
|
2643
|
-
g("div",
|
|
2662
|
+
g("div", ms, D(R(i).start < 1 ? 0 : R(i).start) + " - " + D(R(i).end) + " of " + D(R(f)) + " " + D(e.entriesText), 1)
|
|
2644
2663
|
]),
|
|
2645
|
-
|
|
2664
|
+
j(It, {
|
|
2646
2665
|
modelValue: R(u),
|
|
2647
2666
|
"onUpdate:modelValue": E[6] || (E[6] = (V) => ye(u) ? u.value = V : null),
|
|
2648
2667
|
totalRecords: R(f),
|
|
@@ -2650,7 +2669,7 @@ const ds = { class: "vs-datatable" }, fs = {
|
|
|
2650
2669
|
maxVisible: e.maxVisiblePages,
|
|
2651
2670
|
tablename: e.tablename,
|
|
2652
2671
|
class: W(e.paginationClass),
|
|
2653
|
-
onPageChanged: R(
|
|
2672
|
+
onPageChanged: R(p)
|
|
2654
2673
|
}, null, 8, ["modelValue", "totalRecords", "rowsPerPage", "maxVisible", "tablename", "class", "onPageChanged"])
|
|
2655
2674
|
])) : P("", !0)
|
|
2656
2675
|
]));
|