@pantograph/vue 0.12.0 → 0.12.2
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/DataTable/index.js +333 -319
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/package.json +1 -1
package/dist/DataTable/index.js
CHANGED
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
import { createColumnHelper as
|
|
3
|
-
import { b as
|
|
4
|
-
import { i as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { c as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { o as
|
|
10
|
-
import { u as
|
|
11
|
-
import { i as
|
|
12
|
-
import { getBemBlock as
|
|
13
|
-
import { getBreakpoints as
|
|
14
|
-
import { useBreakpoints as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { _ as
|
|
19
|
-
import { _ as
|
|
1
|
+
import { h as Ee, ref as Z, computed as D, watch as le, defineComponent as He, useSlots as Le, unref as t, useTemplateRef as Me, onBeforeUnmount as Ve, shallowRef as Ne, createElementBlock as v, openBlock as a, normalizeClass as y, createVNode as d, withCtx as m, createElementVNode as $, normalizeStyle as Oe, createBlock as A, createCommentVNode as I, Fragment as z, renderList as V, mergeProps as _, renderSlot as T, createSlots as ge, withModifiers as ye, toDisplayString as qe, normalizeProps as Fe, guardReactiveProps as xe, nextTick as oe } from "vue";
|
|
2
|
+
import { createColumnHelper as Ge, flattenBy as Ze, useVueTable as Ue, getSortedRowModel as Je, getCoreRowModel as Qe } from "@tanstack/vue-table";
|
|
3
|
+
import { b as Xe } from "../_baseIsEqual-BknLKouD.js";
|
|
4
|
+
import { i as Ye, b as eo, a as te } from "../isArray-CdbPONHA.js";
|
|
5
|
+
import { _ as we } from "../Checkbox.vue_vue_type_style_index_0_lang-D6HTNzfn.js";
|
|
6
|
+
import { c as he, _ as oo, a as ne } from "../Menu.vue_vue_type_style_index_0_lang-BSR_8MKN.js";
|
|
7
|
+
import { _ as to } from "../ActionButton.vue_vue_type_script_setup_true_lang-CiJO-TtM.js";
|
|
8
|
+
import { _ as no } from "../Empty.vue_vue_type_style_index_0_lang-BlW5utb2.js";
|
|
9
|
+
import { o as se } from "../omit-CD3OjwFx.js";
|
|
10
|
+
import { u as ro } from "../uniq-DSVd52ma.js";
|
|
11
|
+
import { i as U, a as K } from "../_flatRest-Dx0ZZgOx.js";
|
|
12
|
+
import { getBemBlock as lo, wgt_pre as so, generateVariantClassList as io, getBemElement as C, usePCId as co } from "@pantograph/utils";
|
|
13
|
+
import { getBreakpoints as ao } from "@pantograph/tokens";
|
|
14
|
+
import { useBreakpoints as uo, useIntersectionObserver as mo } from "@vueuse/core";
|
|
15
|
+
import { _ as fo } from "../Skeleton.vue_vue_type_style_index_0_lang-aSGb2hn6.js";
|
|
16
|
+
import { _ as be } from "../Popover.vue_vue_type_style_index_0_lang-CIv6R_D2.js";
|
|
17
|
+
import { _ as po } from "../Badge.vue_vue_type_script_setup_true_lang-Bad9nnGa.js";
|
|
18
|
+
import { _ as ve } from "../Divider.vue_vue_type_style_index_0_lang-DapqjSGc.js";
|
|
19
|
+
import { _ as Ce } from "../IconButton.vue_vue_type_script_setup_true_lang-BhMR_Y-g.js";
|
|
20
20
|
import { _ as re } from "../Icon.vue_vue_type_style_index_0_lang-BlmMv3wD.js";
|
|
21
|
-
import { _ as
|
|
22
|
-
import { g as
|
|
23
|
-
import { cva as
|
|
24
|
-
import { _ as
|
|
25
|
-
function
|
|
26
|
-
return
|
|
21
|
+
import { _ as go } from "../Switch.vue_vue_type_style_index_0_lang-DnmgMCHT.js";
|
|
22
|
+
import { g as Se } from "../get-B14Mml42.js";
|
|
23
|
+
import { cva as yo } from "class-variance-authority";
|
|
24
|
+
import { _ as wo, e as ho, c as x, a as bo, d as vo, b as G } from "../THead.vue_vue_type_style_index_0_lang-B4yro5EP.js";
|
|
25
|
+
function _e(B, k) {
|
|
26
|
+
return Xe(B, k);
|
|
27
27
|
}
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
var
|
|
31
|
-
const
|
|
28
|
+
const Co = (B, { isColumnWrapped: k, selectionId: l }) => {
|
|
29
|
+
const N = (o) => {
|
|
30
|
+
var f;
|
|
31
|
+
const c = (w) => w === "list" ? "md" : "sm";
|
|
32
32
|
return {
|
|
33
33
|
...(o == null ? void 0 : o.skeletonProps) ?? {},
|
|
34
34
|
style: "width: 100%",
|
|
35
|
-
size:
|
|
35
|
+
size: c((f = o == null ? void 0 : o.skeletonProps) == null ? void 0 : f.type)
|
|
36
36
|
};
|
|
37
37
|
}, S = (o) => {
|
|
38
|
-
var
|
|
39
|
-
const
|
|
40
|
-
return
|
|
38
|
+
var f, w;
|
|
39
|
+
const c = (f = o.props) == null ? void 0 : f.column.columnDef;
|
|
40
|
+
return K(c == null ? void 0 : c.render) && o.props.row ? (w = c == null ? void 0 : c.render) == null ? void 0 : w.call(c, {
|
|
41
41
|
index: o.props.row.index,
|
|
42
42
|
record: o.props.row.original,
|
|
43
|
-
column:
|
|
44
|
-
}) : typeof o.render == "function" || typeof o.render == "object" ?
|
|
43
|
+
column: se(c, "render")
|
|
44
|
+
}) : typeof o.render == "function" || typeof o.render == "object" ? Ee(o.render, o.props) : o.render;
|
|
45
45
|
}, u = (o) => {
|
|
46
|
-
let
|
|
46
|
+
let c = {};
|
|
47
47
|
if (o) {
|
|
48
|
-
const
|
|
49
|
-
(
|
|
50
|
-
width:
|
|
51
|
-
maxWidth:
|
|
52
|
-
minWidth:
|
|
53
|
-
overflow:
|
|
48
|
+
const f = (j) => Number(j) >= 0 ? `${j}px` : j, { width: w, maxWidth: W, minWidth: P } = o;
|
|
49
|
+
(w || W || P) && (c = {
|
|
50
|
+
width: f(w),
|
|
51
|
+
maxWidth: f(W),
|
|
52
|
+
minWidth: f(P),
|
|
53
|
+
overflow: w || W ? "hidden" : void 0
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
return
|
|
57
|
-
},
|
|
58
|
-
var
|
|
59
|
-
let
|
|
60
|
-
return ((
|
|
61
|
-
},
|
|
62
|
-
var
|
|
56
|
+
return c;
|
|
57
|
+
}, R = {}, i = (o, c = !0) => {
|
|
58
|
+
var w;
|
|
59
|
+
let f = 1;
|
|
60
|
+
return ((w = o == null ? void 0 : o.subHeaders) == null ? void 0 : w.length) === 1 && o.column.id === o.subHeaders[0].column.id && (f += i(o.subHeaders[0], !1)), c && (!R[o.column.id] || R[o.column.id] < f) && (R[o.column.id] = f), f;
|
|
61
|
+
}, g = (o, c = {}) => {
|
|
62
|
+
var f;
|
|
63
63
|
if (o != null && o.column) {
|
|
64
|
-
const
|
|
65
|
-
if (
|
|
66
|
-
let j =
|
|
67
|
-
const { customCell: E, class:
|
|
68
|
-
if (
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
71
|
-
const { wrap: H, colSpan:
|
|
72
|
-
j = j || (H ?? !1),
|
|
64
|
+
const w = (f = o == null ? void 0 : o.column) == null ? void 0 : f.columnDef, W = [], P = {};
|
|
65
|
+
if (U(w)) {
|
|
66
|
+
let j = k(o.column.id);
|
|
67
|
+
const { customCell: E, class: F } = w;
|
|
68
|
+
if (he(F) || W.push(F), E && (U(E) || K(E))) {
|
|
69
|
+
const q = (h) => {
|
|
70
|
+
if (U(h)) {
|
|
71
|
+
const { wrap: H, colSpan: Q, rowSpan: X } = h;
|
|
72
|
+
j = j || (H ?? !1), P.colSpan = Q, P.rowSpan = X;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
|
|
75
|
+
K(E) && o.row ? q(
|
|
76
76
|
E({
|
|
77
77
|
index: o.row.index,
|
|
78
78
|
record: o.row.original,
|
|
79
|
-
column:
|
|
79
|
+
column: w
|
|
80
80
|
})
|
|
81
|
-
) :
|
|
81
|
+
) : q(E);
|
|
82
82
|
}
|
|
83
|
-
o.header ?
|
|
83
|
+
o.header ? P.rowSpan = i(o.header) : j && (P.wrap = !0);
|
|
84
84
|
}
|
|
85
85
|
return {
|
|
86
|
-
class:
|
|
87
|
-
...
|
|
88
|
-
...
|
|
86
|
+
class: he(W) ? void 0 : W,
|
|
87
|
+
...P,
|
|
88
|
+
...c
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
return {};
|
|
92
92
|
};
|
|
93
93
|
return {
|
|
94
|
-
getSkeletonProps:
|
|
94
|
+
getSkeletonProps: N,
|
|
95
95
|
RenderCell: S,
|
|
96
96
|
getThProps: (o) => {
|
|
97
|
-
var
|
|
98
|
-
return
|
|
99
|
-
colSpan: (
|
|
100
|
-
"data-has-children": ((
|
|
97
|
+
var c, f, w;
|
|
98
|
+
return g(o, {
|
|
99
|
+
colSpan: (c = o == null ? void 0 : o.header) == null ? void 0 : c.colSpan,
|
|
100
|
+
"data-has-children": ((w = (f = o == null ? void 0 : o.column) == null ? void 0 : f.columns) == null ? void 0 : w.length) > 1 ? !0 : void 0
|
|
101
101
|
});
|
|
102
102
|
},
|
|
103
|
-
getTdProps: (o) =>
|
|
103
|
+
getTdProps: (o) => g(o),
|
|
104
104
|
getColProps: (o) => {
|
|
105
|
-
const
|
|
106
|
-
return o.id ===
|
|
107
|
-
style:
|
|
105
|
+
const c = u(o.columnDef);
|
|
106
|
+
return o.id === l && (c.width = "var(--pt-dimension-2800)"), {
|
|
107
|
+
style: c
|
|
108
108
|
};
|
|
109
109
|
},
|
|
110
|
-
isThVisible: (o,
|
|
110
|
+
isThVisible: (o, c, f) => R[f] === 1 ? !0 : c - o === R[f]
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
|
-
var
|
|
114
|
-
function
|
|
115
|
-
return B === !0 || B === !1 ||
|
|
113
|
+
var So = "[object Boolean]";
|
|
114
|
+
function _o(B) {
|
|
115
|
+
return B === !0 || B === !1 || Ye(B) && eo(B) == So;
|
|
116
116
|
}
|
|
117
|
-
const
|
|
118
|
-
const
|
|
119
|
-
if (i) return
|
|
117
|
+
const ko = (B) => {
|
|
118
|
+
const k = Z([]), l = (i) => i ? k.value.findIndex((g) => g.id === i) : -1, N = (i) => {
|
|
119
|
+
if (i) return k.value.find((g) => g.id === i);
|
|
120
120
|
}, S = (i) => {
|
|
121
|
-
var
|
|
122
|
-
return !!((
|
|
121
|
+
var g;
|
|
122
|
+
return !!((g = N(i)) != null && g.wrap);
|
|
123
123
|
}, u = (i) => {
|
|
124
|
-
const { id:
|
|
125
|
-
if (!
|
|
126
|
-
const
|
|
127
|
-
return
|
|
128
|
-
},
|
|
129
|
-
() => (B.columns ?? []).filter((i) =>
|
|
124
|
+
const { id: g } = i;
|
|
125
|
+
if (!g) return !1;
|
|
126
|
+
const M = i.wrap ?? !S(g), O = l(g);
|
|
127
|
+
return O >= 0 ? k.value[O] = { id: g, wrap: M } : k.value.push({ id: g, wrap: M }), !0;
|
|
128
|
+
}, R = D(
|
|
129
|
+
() => (B.columns ?? []).filter((i) => _o(i.wrap)).map((i) => ({
|
|
130
130
|
id: i.id,
|
|
131
131
|
wrap: !!i.wrap
|
|
132
132
|
}))
|
|
133
133
|
);
|
|
134
134
|
return le(
|
|
135
|
-
|
|
135
|
+
R,
|
|
136
136
|
(i) => {
|
|
137
|
-
|
|
137
|
+
k.value = [...k.value, ...i];
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
immediate: !0,
|
|
@@ -144,7 +144,7 @@ const _o = (B) => {
|
|
|
144
144
|
isColumnWrapped: S,
|
|
145
145
|
toggleWrap: u
|
|
146
146
|
};
|
|
147
|
-
},
|
|
147
|
+
}, Uo = /* @__PURE__ */ He({
|
|
148
148
|
__name: "DataTable",
|
|
149
149
|
props: {
|
|
150
150
|
columns: {},
|
|
@@ -169,308 +169,318 @@ const _o = (B) => {
|
|
|
169
169
|
zebra: { type: Boolean, default: !0 },
|
|
170
170
|
tableLayout: { default: "fixed" },
|
|
171
171
|
actionCol: {},
|
|
172
|
-
noHeader: { type: Boolean }
|
|
172
|
+
noHeader: { type: Boolean },
|
|
173
|
+
rowProps: {}
|
|
173
174
|
},
|
|
174
|
-
emits: ["fetch"],
|
|
175
|
-
setup(B, { emit:
|
|
176
|
-
const
|
|
175
|
+
emits: ["fetch", "rowClick"],
|
|
176
|
+
setup(B, { emit: k }) {
|
|
177
|
+
const l = B, N = k, S = Le(), u = lo("data_table", so), R = Ge(), i = `$${u}_selection$`, g = D(() => {
|
|
177
178
|
var e;
|
|
178
|
-
return ((e =
|
|
179
|
-
}),
|
|
180
|
-
var
|
|
179
|
+
return ((e = l.actionCol) == null ? void 0 : e.id) ?? `$${u}_action$`;
|
|
180
|
+
}), M = (e) => se(e ?? {}, "title", "sorter", "columns", "id", "dataIndex"), O = D(() => {
|
|
181
|
+
var p;
|
|
181
182
|
const e = (n) => {
|
|
182
183
|
var L;
|
|
183
|
-
const b = n.id ??
|
|
184
|
-
return
|
|
184
|
+
const b = n.id ?? co(`${u}--col`);
|
|
185
|
+
return te(Se(n, l.childrenColumnName)) ? R.group({
|
|
185
186
|
header: n.title,
|
|
186
187
|
id: b,
|
|
187
|
-
columns: (L =
|
|
188
|
+
columns: (L = Se(n, l.childrenColumnName) ?? []) == null ? void 0 : L.map(e),
|
|
188
189
|
enableSorting: !1,
|
|
189
|
-
...
|
|
190
|
-
}) :
|
|
190
|
+
...M(n)
|
|
191
|
+
}) : R.accessor(n.dataIndex ?? n.id, {
|
|
191
192
|
header: n.title,
|
|
192
193
|
id: b,
|
|
193
|
-
sortingFn: typeof n.sorter == "function" ? (
|
|
194
|
+
sortingFn: typeof n.sorter == "function" ? (ee, je) => n.sorter(ee.original, je.original) : n.sorter,
|
|
194
195
|
enableSorting: !!n.sorter,
|
|
195
|
-
...
|
|
196
|
+
...M(n)
|
|
196
197
|
});
|
|
197
198
|
};
|
|
198
|
-
if (!
|
|
199
|
-
const
|
|
200
|
-
if (
|
|
199
|
+
if (!te(l.columns)) throw "no columns";
|
|
200
|
+
const r = l.columns.map(({ id: n }) => n);
|
|
201
|
+
if (ro(r).length !== r.length) throw "no uniq column ids";
|
|
201
202
|
const s = [];
|
|
202
|
-
return
|
|
203
|
-
|
|
203
|
+
return l.rowSelection && l.rowKey && s.push(
|
|
204
|
+
R.accessor(i, {
|
|
204
205
|
id: i,
|
|
205
206
|
enableSorting: !1
|
|
206
207
|
})
|
|
207
|
-
),
|
|
208
|
+
), l.columns.forEach((n) => {
|
|
208
209
|
s.push(e(n));
|
|
209
210
|
}), (S.action || S.hoverAction) && s.push(
|
|
210
|
-
|
|
211
|
-
id:
|
|
212
|
-
header: (
|
|
211
|
+
R.accessor(g.value, {
|
|
212
|
+
id: g.value,
|
|
213
|
+
header: (p = l.actionCol) == null ? void 0 : p.title,
|
|
213
214
|
enableSorting: !1,
|
|
214
|
-
...
|
|
215
|
+
...M(l.actionCol)
|
|
215
216
|
})
|
|
216
217
|
), s;
|
|
217
|
-
}), { toggleWrap:
|
|
218
|
-
() =>
|
|
219
|
-
(e) => e[
|
|
218
|
+
}), { toggleWrap: ie, isColumnWrapped: J } = ko(l), o = Z({}), c = D(() => Object.keys(o.value)), f = D(
|
|
219
|
+
() => l.rowKey ? Ze(l.data, (e) => e.children).map(
|
|
220
|
+
(e) => e[l.rowKey]
|
|
220
221
|
) : []
|
|
221
|
-
),
|
|
222
|
+
), w = () => {
|
|
222
223
|
const e = Object.fromEntries(
|
|
223
|
-
|
|
224
|
+
c.value.filter((r) => {
|
|
224
225
|
var s;
|
|
225
|
-
return !((s =
|
|
226
|
-
}).map((
|
|
226
|
+
return !((s = l.rowSelection) != null && s.preserveSelectedRowKeys) && l.rowKey ? f.value.includes(r) : !0;
|
|
227
|
+
}).map((r) => [r, !0])
|
|
227
228
|
);
|
|
228
|
-
Object.keys(e).length !==
|
|
229
|
-
var
|
|
230
|
-
|
|
229
|
+
Object.keys(e).length !== c.value.length && (o.value = e, oe(() => {
|
|
230
|
+
var r;
|
|
231
|
+
K((r = l.rowSelection) == null ? void 0 : r.onChange) && l.rowSelection.onChange(H.value);
|
|
231
232
|
}));
|
|
232
|
-
},
|
|
233
|
+
}, W = D(() => (w(), [...l.data])), P = ao(), E = uo(
|
|
233
234
|
Object.fromEntries(
|
|
234
|
-
Object.keys(
|
|
235
|
+
Object.keys(P).map((e) => [e, P[e].minWidth])
|
|
235
236
|
),
|
|
236
237
|
{ strategy: "min-width" }
|
|
237
|
-
).active(),
|
|
238
|
+
).active(), F = Z({});
|
|
238
239
|
le(
|
|
239
240
|
E,
|
|
240
241
|
(e) => {
|
|
241
|
-
|
|
242
|
-
|
|
242
|
+
F.value = Object.fromEntries(
|
|
243
|
+
O.value.map((r) => {
|
|
243
244
|
var s;
|
|
244
245
|
return [
|
|
245
|
-
|
|
246
|
-
|
|
246
|
+
r.id,
|
|
247
|
+
te(r == null ? void 0 : r.responsive) ? (s = r.responsive) == null ? void 0 : s.includes(e) : !0
|
|
247
248
|
];
|
|
248
249
|
})
|
|
249
250
|
);
|
|
250
251
|
},
|
|
251
252
|
{ immediate: !0 }
|
|
252
253
|
);
|
|
253
|
-
const
|
|
254
|
+
const q = Z([]), h = Ue({
|
|
254
255
|
// debugTable: true,
|
|
255
256
|
getSubRows: (e) => e.children,
|
|
256
257
|
enableSorting: !0,
|
|
257
258
|
enableMultiSort: !0,
|
|
258
259
|
get data() {
|
|
259
|
-
return
|
|
260
|
+
return W.value;
|
|
260
261
|
},
|
|
261
262
|
onSortingChange: (e) => {
|
|
262
|
-
|
|
263
|
+
q.value = typeof e == "function" ? e(q.value) : e;
|
|
263
264
|
},
|
|
264
265
|
state: {
|
|
265
266
|
get sorting() {
|
|
266
|
-
return
|
|
267
|
+
return q.value;
|
|
267
268
|
},
|
|
268
269
|
get rowSelection() {
|
|
269
270
|
return o.value;
|
|
270
271
|
},
|
|
271
272
|
get columnVisibility() {
|
|
272
|
-
return
|
|
273
|
+
return F.value;
|
|
273
274
|
}
|
|
274
275
|
},
|
|
275
276
|
enableRowSelection: !0,
|
|
276
277
|
get columns() {
|
|
277
|
-
return
|
|
278
|
+
return O.value;
|
|
278
279
|
},
|
|
279
|
-
getRowId(e,
|
|
280
|
-
return
|
|
280
|
+
getRowId(e, r) {
|
|
281
|
+
return l.rowKey ? e[l.rowKey] : r;
|
|
281
282
|
},
|
|
282
283
|
getRowCanExpand: () => !0,
|
|
283
|
-
getCoreRowModel:
|
|
284
|
-
getSortedRowModel:
|
|
284
|
+
getCoreRowModel: Qe(),
|
|
285
|
+
getSortedRowModel: Je(),
|
|
285
286
|
onRowSelectionChange: (e) => {
|
|
286
287
|
o.value = typeof e == "function" ? e(o.value) : e;
|
|
287
288
|
}
|
|
288
289
|
}), H = D(() => ({
|
|
289
|
-
selectedRowKeys:
|
|
290
|
-
selectedRows:
|
|
290
|
+
selectedRowKeys: c.value,
|
|
291
|
+
selectedRows: h.getFilteredSelectedRowModel().flatRows.map((e) => e.original)
|
|
291
292
|
}));
|
|
292
293
|
le(
|
|
293
294
|
() => {
|
|
294
295
|
var e;
|
|
295
|
-
return (e =
|
|
296
|
+
return (e = l.rowSelection) == null ? void 0 : e.selectedRowKeys;
|
|
296
297
|
},
|
|
297
|
-
(e,
|
|
298
|
-
var s,
|
|
299
|
-
if ((
|
|
298
|
+
(e, r) => {
|
|
299
|
+
var s, p;
|
|
300
|
+
if ((p = (s = l.rowSelection) == null ? void 0 : s.selectedRowKeys) != null && p.length && !_e(e, r)) {
|
|
300
301
|
const n = Object.fromEntries(
|
|
301
|
-
t(
|
|
302
|
+
t(l.rowSelection.selectedRowKeys ?? Object.keys(o.value)).map(
|
|
302
303
|
(b) => [b, !0]
|
|
303
304
|
)
|
|
304
305
|
);
|
|
305
|
-
|
|
306
|
+
_e(n, o.value) || (o.value = n);
|
|
306
307
|
}
|
|
307
308
|
},
|
|
308
309
|
{ immediate: !0 }
|
|
309
310
|
);
|
|
310
|
-
const
|
|
311
|
-
|
|
312
|
-
var
|
|
313
|
-
|
|
311
|
+
const Q = D(() => h.getIsAllRowsSelected() ? !0 : h.getIsSomeRowsSelected() ? "indeterminate" : !1), X = (e) => {
|
|
312
|
+
h.getIsSomeRowsSelected() || h.getIsAllRowsSelected() ? h.toggleAllRowsSelected(!1) : h.toggleAllRowsSelected(!0), oe(() => {
|
|
313
|
+
var r, s;
|
|
314
|
+
K((r = l.rowSelection) == null ? void 0 : r.onSelectAll) && l.rowSelection.onSelectAll({ ...H.value, selected: e }), K((s = l.rowSelection) == null ? void 0 : s.onChange) && l.rowSelection.onChange(H.value);
|
|
314
315
|
});
|
|
315
|
-
},
|
|
316
|
+
}, ke = (e, r) => {
|
|
316
317
|
var s;
|
|
317
|
-
|
|
318
|
-
selectChildren: !((s =
|
|
319
|
-
}),
|
|
320
|
-
var
|
|
321
|
-
|
|
318
|
+
r.toggleSelected(e, {
|
|
319
|
+
selectChildren: !((s = l.rowSelection) != null && s.checkStrictly)
|
|
320
|
+
}), oe(() => {
|
|
321
|
+
var p, n;
|
|
322
|
+
K((p = l.rowSelection) == null ? void 0 : p.onSelect) && l.rowSelection.onSelect({
|
|
322
323
|
...H.value,
|
|
323
324
|
selected: e,
|
|
324
|
-
record:
|
|
325
|
-
}),
|
|
325
|
+
record: r.original
|
|
326
|
+
}), K((n = l.rowSelection) == null ? void 0 : n.onChange) && l.rowSelection.onChange(H.value);
|
|
326
327
|
});
|
|
327
|
-
},
|
|
328
|
-
var
|
|
329
|
-
return
|
|
330
|
-
},
|
|
331
|
-
var
|
|
328
|
+
}, Re = (e) => {
|
|
329
|
+
var r, s;
|
|
330
|
+
return K((r = l.rowSelection) == null ? void 0 : r.getCheckboxProps) && ((s = l.rowSelection) == null || s.getCheckboxProps(e)), {};
|
|
331
|
+
}, ce = (e) => {
|
|
332
|
+
var r;
|
|
332
333
|
if (e.getIsSelected()) return !0;
|
|
333
|
-
if ((
|
|
334
|
+
if ((r = e.subRows) != null && r.length) {
|
|
334
335
|
if (e.getIsAllSubRowsSelected()) return !0;
|
|
335
336
|
if (e.getIsSomeSelected()) return "indeterminate";
|
|
336
337
|
}
|
|
337
338
|
return !1;
|
|
338
|
-
}, ae =
|
|
339
|
-
|
|
339
|
+
}, ae = Me("target"), { stop: $e } = mo(ae, ([e]) => {
|
|
340
|
+
l.lazyLoading && !l.loading && (e != null && e.isIntersecting) && N("fetch");
|
|
340
341
|
});
|
|
341
|
-
|
|
342
|
-
const { getSkeletonProps:
|
|
342
|
+
Ve($e);
|
|
343
|
+
const { getSkeletonProps: ze, getThProps: Be, RenderCell: ue, getTdProps: Y, getColProps: Pe, isThVisible: Ae } = Co(l, {
|
|
343
344
|
selectionId: i,
|
|
344
|
-
isColumnWrapped:
|
|
345
|
-
}),
|
|
345
|
+
isColumnWrapped: J
|
|
346
|
+
}), me = D(() => Object.keys(o.value).length), Ie = () => {
|
|
346
347
|
o.value = {};
|
|
347
|
-
},
|
|
348
|
+
}, Te = yo(u, {
|
|
348
349
|
variants: {
|
|
349
|
-
empty:
|
|
350
|
+
empty: io("empty", u)
|
|
350
351
|
}
|
|
351
|
-
}),
|
|
352
|
-
e.key === "a-z" &&
|
|
353
|
-
},
|
|
354
|
-
const
|
|
355
|
-
if (!
|
|
356
|
-
if (
|
|
357
|
-
if (
|
|
352
|
+
}), fe = Ne(0), De = ({ item: e }, r) => {
|
|
353
|
+
e.key === "a-z" && r.toggleSorting(!1, !1), e.key === "z-a" && r.toggleSorting(!0, !1), e.key === "wrap" && ie({ id: r.id }), fe.value++;
|
|
354
|
+
}, Ke = (e) => {
|
|
355
|
+
const r = e.getIsSorted();
|
|
356
|
+
if (!r) return "tabler:arrows-up-down";
|
|
357
|
+
if (r === "desc") return "tabler:arrow-down";
|
|
358
|
+
if (r === "asc") return "tabler:arrow-up";
|
|
358
359
|
}, de = D(
|
|
359
|
-
() =>
|
|
360
|
+
() => h.getHeaderGroups().map((e) => ({
|
|
360
361
|
...e,
|
|
361
|
-
headers: e.headers.map((
|
|
362
|
-
...
|
|
363
|
-
bindings:
|
|
362
|
+
headers: e.headers.map((r) => ({
|
|
363
|
+
...r,
|
|
364
|
+
bindings: Be(r.getContext())
|
|
364
365
|
}))
|
|
365
366
|
}))
|
|
366
|
-
)
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
), pe = (e, r) => {
|
|
368
|
+
const s = se(r ?? {}, "row");
|
|
369
|
+
if (l.rowProps) {
|
|
370
|
+
if (K(l.rowProps))
|
|
371
|
+
return { ...l.rowProps(e, r == null ? void 0 : r.row) ?? {}, ...s };
|
|
372
|
+
if (U(l.rowProps)) return { ...l.rowProps, ...s };
|
|
373
|
+
}
|
|
374
|
+
return s;
|
|
375
|
+
}, We = (e, r) => N("rowClick", e, r);
|
|
376
|
+
return (e, r) => (a(), v("div", {
|
|
377
|
+
class: y([t(C)(t(u), "root"), e.rootCls])
|
|
369
378
|
}, [
|
|
370
|
-
|
|
379
|
+
d(be, {
|
|
371
380
|
"z-index": "1",
|
|
372
|
-
open: !!(
|
|
381
|
+
open: !!(me.value && S.batchActions),
|
|
373
382
|
placement: "bottom",
|
|
374
383
|
"side-offset": -54,
|
|
375
384
|
"container-cls": "pantograph-tokens pantograph-dark"
|
|
376
385
|
}, {
|
|
377
386
|
content: m(() => [
|
|
378
|
-
|
|
379
|
-
class:
|
|
387
|
+
$("div", {
|
|
388
|
+
class: y(t(C)(t(u), "batch_actions"))
|
|
380
389
|
}, [
|
|
381
|
-
|
|
382
|
-
text:
|
|
390
|
+
d(po, {
|
|
391
|
+
text: me.value,
|
|
383
392
|
size: "xsm"
|
|
384
393
|
}, null, 8, ["text"]),
|
|
385
|
-
|
|
386
|
-
class:
|
|
387
|
-
},
|
|
388
|
-
|
|
389
|
-
class:
|
|
394
|
+
$("div", {
|
|
395
|
+
class: y(t(C)(t(u), "batch_actions__title"))
|
|
396
|
+
}, qe(e.batchActionsTitle), 3),
|
|
397
|
+
$("div", {
|
|
398
|
+
class: y(t(C)(t(u), "batch_actions__actions"))
|
|
390
399
|
}, [
|
|
391
|
-
T(e.$slots, "batchActions",
|
|
400
|
+
T(e.$slots, "batchActions", Fe(xe(H.value)))
|
|
392
401
|
], 2),
|
|
393
|
-
|
|
402
|
+
d(ve, {
|
|
394
403
|
type: "vertical",
|
|
395
|
-
class:
|
|
404
|
+
class: y(t(C)(t(u), "batch_actions__divider"))
|
|
396
405
|
}, null, 8, ["class"]),
|
|
397
|
-
|
|
406
|
+
d(Ce, {
|
|
398
407
|
icon: "tabler:x",
|
|
399
408
|
color: "gray",
|
|
400
409
|
type: "ghost",
|
|
401
|
-
onClick:
|
|
410
|
+
onClick: Ie
|
|
402
411
|
})
|
|
403
412
|
], 2)
|
|
404
413
|
]),
|
|
405
414
|
default: m(() => [
|
|
406
|
-
|
|
407
|
-
class:
|
|
415
|
+
$("div", {
|
|
416
|
+
class: y([t(C)(t(u), "scroll_area"), e.scrollAreaCls])
|
|
408
417
|
}, [
|
|
409
|
-
|
|
410
|
-
class:
|
|
418
|
+
$("div", {
|
|
419
|
+
class: y([t(C)(t(u), "scroll_viewport"), e.scrollViewportCls])
|
|
411
420
|
}, [
|
|
412
|
-
|
|
421
|
+
d(t(wo), {
|
|
413
422
|
size: e.size,
|
|
414
|
-
style:
|
|
423
|
+
style: Oe({
|
|
415
424
|
tableLayout: e.tableLayout
|
|
416
425
|
}),
|
|
417
|
-
class:
|
|
418
|
-
t(
|
|
419
|
-
empty: !t(
|
|
426
|
+
class: y([
|
|
427
|
+
t(Te)({
|
|
428
|
+
empty: !t(h).getRowModel().rows.length
|
|
420
429
|
}),
|
|
421
|
-
|
|
430
|
+
l.class
|
|
422
431
|
])
|
|
423
432
|
}, {
|
|
424
433
|
default: m(() => [
|
|
425
|
-
|
|
426
|
-
(
|
|
434
|
+
$("colgroup", null, [
|
|
435
|
+
(a(!0), v(z, null, V(t(h).getVisibleLeafColumns(), (s, p) => (a(), v("col", _({
|
|
427
436
|
key: s.id,
|
|
428
437
|
ref_for: !0
|
|
429
|
-
}, t(
|
|
438
|
+
}, t(Pe)(s)), null, 16))), 128))
|
|
430
439
|
]),
|
|
431
|
-
e.noHeader ?
|
|
440
|
+
e.noHeader ? I("", !0) : (a(), A(t(ho), {
|
|
432
441
|
key: 0,
|
|
433
|
-
class:
|
|
442
|
+
class: y(e.theadCls),
|
|
434
443
|
sticky: e.stickyHeader
|
|
435
444
|
}, {
|
|
436
445
|
default: m(() => [
|
|
437
|
-
(
|
|
438
|
-
key: s.id
|
|
439
|
-
|
|
446
|
+
(a(!0), v(z, null, V(de.value, (s, p) => (a(), A(t(x), _({
|
|
447
|
+
key: s.id,
|
|
448
|
+
ref_for: !0
|
|
449
|
+
}, pe(p * -1 - 1)), {
|
|
440
450
|
default: m(() => [
|
|
441
|
-
(
|
|
451
|
+
(a(!0), v(z, null, V(s.headers, (n) => (a(), v(z, {
|
|
442
452
|
key: n.id
|
|
443
453
|
}, [
|
|
444
|
-
t(
|
|
454
|
+
t(Ae)(p, de.value.length, n.column.id) ? (a(), A(t(bo), _({
|
|
445
455
|
key: 0,
|
|
446
456
|
ref_for: !0
|
|
447
457
|
}, n.bindings, {
|
|
448
458
|
"data-selection": n.column.id === i
|
|
449
459
|
}), {
|
|
450
460
|
default: m(() => [
|
|
451
|
-
|
|
452
|
-
class:
|
|
461
|
+
$("div", {
|
|
462
|
+
class: y(t(C)(t(u), "header"))
|
|
453
463
|
}, [
|
|
454
|
-
|
|
455
|
-
class:
|
|
464
|
+
$("div", {
|
|
465
|
+
class: y(t(C)(t(u), "header__content"))
|
|
456
466
|
}, [
|
|
457
|
-
n.column.id !== i ? (
|
|
458
|
-
|
|
459
|
-
class:
|
|
467
|
+
n.column.id !== i ? (a(), v(z, { key: 0 }, [
|
|
468
|
+
$("div", {
|
|
469
|
+
class: y(t(C)(t(u), "header__content__title"))
|
|
460
470
|
}, [
|
|
461
|
-
T(e.$slots, "headerCell",
|
|
471
|
+
T(e.$slots, "headerCell", _({ ref_for: !0 }, {
|
|
462
472
|
column: n.column.columnDef
|
|
463
473
|
}), () => [
|
|
464
|
-
|
|
474
|
+
d(t(ue), {
|
|
465
475
|
props: n.getContext(),
|
|
466
476
|
render: n.column.columnDef.header
|
|
467
477
|
}, null, 8, ["props", "render"])
|
|
468
478
|
])
|
|
469
479
|
], 2),
|
|
470
|
-
n.column.getCanSort() ? (
|
|
480
|
+
n.column.getCanSort() ? (a(), A(to, {
|
|
471
481
|
key: 0,
|
|
472
|
-
class:
|
|
473
|
-
icon:
|
|
482
|
+
class: y({ hide_filter_action: !n.column.getIsSorted() }),
|
|
483
|
+
icon: Ke(n.column),
|
|
474
484
|
size: "sm",
|
|
475
485
|
type: "ghost",
|
|
476
486
|
variant: "icon",
|
|
@@ -479,72 +489,72 @@ const _o = (B) => {
|
|
|
479
489
|
var L;
|
|
480
490
|
return (L = n.column.getToggleSortingHandler()) == null ? void 0 : L(b);
|
|
481
491
|
}
|
|
482
|
-
}, null, 8, ["class", "icon", "active", "onClick"])) :
|
|
483
|
-
], 64)) : (
|
|
484
|
-
|
|
485
|
-
class:
|
|
492
|
+
}, null, 8, ["class", "icon", "active", "onClick"])) : I("", !0)
|
|
493
|
+
], 64)) : (a(), v(z, { key: 1 }, [
|
|
494
|
+
$("div", {
|
|
495
|
+
class: y(t(C)(t(u), "selection_space"))
|
|
486
496
|
}, null, 2),
|
|
487
|
-
|
|
497
|
+
d(we, {
|
|
488
498
|
rootCls: "w-fit",
|
|
489
|
-
checked:
|
|
490
|
-
onChange:
|
|
499
|
+
checked: Q.value,
|
|
500
|
+
onChange: X
|
|
491
501
|
}, null, 8, ["checked"])
|
|
492
502
|
], 64))
|
|
493
503
|
], 2),
|
|
494
|
-
![
|
|
504
|
+
![g.value, i].includes(n.column.id) && !n.column.columns.length ? (a(), v("div", {
|
|
495
505
|
key: 0,
|
|
496
|
-
class:
|
|
506
|
+
class: y(t(C)(t(u), "header__action"))
|
|
497
507
|
}, [
|
|
498
|
-
(
|
|
508
|
+
(a(), A(be, {
|
|
499
509
|
"z-index": "1",
|
|
500
510
|
placement: "bottom-end",
|
|
501
|
-
key:
|
|
511
|
+
key: fe.value
|
|
502
512
|
}, {
|
|
503
513
|
content: m(() => [
|
|
504
|
-
|
|
505
|
-
onSelect: (b) =>
|
|
514
|
+
d(oo, {
|
|
515
|
+
onSelect: (b) => De(b, n.column)
|
|
506
516
|
}, {
|
|
507
517
|
default: m(() => [
|
|
508
|
-
n.column.getCanSort() ? (
|
|
509
|
-
|
|
518
|
+
n.column.getCanSort() ? (a(), v(z, { key: 0 }, [
|
|
519
|
+
d(ne, {
|
|
510
520
|
title: "Sort A → Z",
|
|
511
521
|
key: "a-z"
|
|
512
522
|
}, {
|
|
513
523
|
leading: m(({ iconSize: b }) => [
|
|
514
|
-
|
|
524
|
+
d(re, {
|
|
515
525
|
icon: "tabler:arrow-up",
|
|
516
526
|
size: b
|
|
517
527
|
}, null, 8, ["size"])
|
|
518
528
|
]),
|
|
519
529
|
_: 1
|
|
520
530
|
}),
|
|
521
|
-
|
|
531
|
+
d(ne, {
|
|
522
532
|
title: "Sort Z → A",
|
|
523
533
|
key: "z-a"
|
|
524
534
|
}, {
|
|
525
535
|
leading: m(({ iconSize: b }) => [
|
|
526
|
-
|
|
536
|
+
d(re, {
|
|
527
537
|
icon: "tabler:arrow-down",
|
|
528
538
|
size: b
|
|
529
539
|
}, null, 8, ["size"])
|
|
530
540
|
]),
|
|
531
541
|
_: 1
|
|
532
542
|
}),
|
|
533
|
-
|
|
534
|
-
], 64)) :
|
|
535
|
-
|
|
543
|
+
d(ve)
|
|
544
|
+
], 64)) : I("", !0),
|
|
545
|
+
d(ne, {
|
|
536
546
|
title: "Wrap Column",
|
|
537
547
|
key: "wrap"
|
|
538
548
|
}, {
|
|
539
549
|
leading: m(({ iconSize: b }) => [
|
|
540
|
-
|
|
550
|
+
d(re, {
|
|
541
551
|
icon: "tabler:text-wrap",
|
|
542
552
|
size: b
|
|
543
553
|
}, null, 8, ["size"])
|
|
544
554
|
]),
|
|
545
555
|
trailing: m(() => [
|
|
546
|
-
|
|
547
|
-
checked: t(
|
|
556
|
+
d(go, {
|
|
557
|
+
checked: t(J)(n.column.id)
|
|
548
558
|
}, null, 8, ["checked"])
|
|
549
559
|
]),
|
|
550
560
|
_: 2
|
|
@@ -554,73 +564,75 @@ const _o = (B) => {
|
|
|
554
564
|
}, 1032, ["onSelect"])
|
|
555
565
|
]),
|
|
556
566
|
default: m(() => [
|
|
557
|
-
|
|
567
|
+
d(Ce, {
|
|
558
568
|
icon: "tabler:dots-vertical",
|
|
559
569
|
size: "sm",
|
|
560
570
|
color: "gray",
|
|
561
571
|
type: "ghost",
|
|
562
|
-
class:
|
|
572
|
+
class: y(t(C)(t(u), "header__action__hover"))
|
|
563
573
|
}, null, 8, ["class"])
|
|
564
574
|
]),
|
|
565
575
|
_: 2
|
|
566
576
|
}, 1024))
|
|
567
|
-
], 2)) :
|
|
577
|
+
], 2)) : I("", !0)
|
|
568
578
|
], 2)
|
|
569
579
|
]),
|
|
570
580
|
_: 2
|
|
571
|
-
}, 1040, ["data-selection"])) :
|
|
581
|
+
}, 1040, ["data-selection"])) : I("", !0)
|
|
572
582
|
], 64))), 128))
|
|
573
583
|
]),
|
|
574
584
|
_: 2
|
|
575
|
-
},
|
|
585
|
+
}, 1040))), 128))
|
|
576
586
|
]),
|
|
577
587
|
_: 3
|
|
578
588
|
}, 8, ["class", "sticky"])),
|
|
579
|
-
|
|
580
|
-
class:
|
|
589
|
+
d(t(vo), {
|
|
590
|
+
class: y(e.tbodyCls)
|
|
581
591
|
}, {
|
|
582
592
|
default: m(() => [
|
|
583
|
-
(
|
|
593
|
+
(a(!0), v(z, null, V(t(h).getRowModel().rows, (s, p) => (a(), A(t(x), _({
|
|
584
594
|
key: s.id,
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
}, {
|
|
595
|
+
onClick: (n) => We(s.original, n),
|
|
596
|
+
ref_for: !0
|
|
597
|
+
}, pe(p, { zebra: e.zebra, checked: !!ce(s) })), {
|
|
588
598
|
default: m(() => [
|
|
589
|
-
(
|
|
599
|
+
(a(!0), v(z, null, V(s.getVisibleCells(), (n) => {
|
|
590
600
|
var b, L;
|
|
591
|
-
return
|
|
601
|
+
return a(), v(z, {
|
|
592
602
|
key: n.id
|
|
593
603
|
}, [
|
|
594
|
-
((b = t(
|
|
604
|
+
((b = t(Y)(n.getContext())) == null ? void 0 : b.colSpan) !== 0 && ((L = t(Y)(n.getContext())) == null ? void 0 : L.rowSpan) !== 0 ? (a(), A(t(G), _({
|
|
595
605
|
key: 0,
|
|
596
606
|
ref_for: !0
|
|
597
|
-
}, t(
|
|
607
|
+
}, t(Y)(n.getContext())), ge({
|
|
598
608
|
default: m(() => [
|
|
599
|
-
n.column.id ===
|
|
609
|
+
n.column.id === g.value && (S.hoverAction || S.action) ? (a(), v("div", {
|
|
600
610
|
key: 0,
|
|
601
|
-
|
|
611
|
+
onClick: r[0] || (r[0] = ye(() => {
|
|
612
|
+
}, ["stop"])),
|
|
613
|
+
class: y(t(C)(t(u), "action_cell"))
|
|
602
614
|
}, [
|
|
603
|
-
|
|
604
|
-
class:
|
|
615
|
+
$("div", {
|
|
616
|
+
class: y([t(C)(t(u), "action_cell__hover"), e.actionHoverCls])
|
|
605
617
|
}, [
|
|
606
|
-
T(e.$slots, "hoverAction",
|
|
618
|
+
T(e.$slots, "hoverAction", _(
|
|
607
619
|
{ ref_for: !0 },
|
|
608
620
|
{
|
|
609
621
|
column: n.column.columnDef,
|
|
610
622
|
record: s.original,
|
|
611
|
-
index:
|
|
623
|
+
index: p
|
|
612
624
|
}
|
|
613
625
|
))
|
|
614
626
|
], 2),
|
|
615
|
-
T(e.$slots, "action",
|
|
627
|
+
T(e.$slots, "action", _(
|
|
616
628
|
{ ref_for: !0 },
|
|
617
629
|
{
|
|
618
630
|
column: n.column.columnDef,
|
|
619
631
|
record: s.original,
|
|
620
|
-
index:
|
|
632
|
+
index: p
|
|
621
633
|
}
|
|
622
634
|
))
|
|
623
|
-
], 2)) : n.column.id !== i ? T(e.$slots, "bodyCell",
|
|
635
|
+
], 2)) : n.column.id !== i ? T(e.$slots, "bodyCell", _(
|
|
624
636
|
{
|
|
625
637
|
key: 1,
|
|
626
638
|
ref_for: !0
|
|
@@ -628,81 +640,83 @@ const _o = (B) => {
|
|
|
628
640
|
{
|
|
629
641
|
column: n.column.columnDef,
|
|
630
642
|
record: s.original,
|
|
631
|
-
index:
|
|
643
|
+
index: p
|
|
632
644
|
}
|
|
633
645
|
), () => [
|
|
634
|
-
|
|
646
|
+
d(t(ue), {
|
|
635
647
|
render: n.column.columnDef.cell,
|
|
636
648
|
props: n.getContext()
|
|
637
649
|
}, null, 8, ["render", "props"])
|
|
638
|
-
]) : e.rowKey && s.original[e.rowKey] ? (
|
|
650
|
+
]) : e.rowKey && s.original[e.rowKey] ? (a(), v("div", {
|
|
639
651
|
key: 2,
|
|
640
|
-
class:
|
|
652
|
+
class: y(t(C)(t(u), "selection")),
|
|
653
|
+
onClick: r[1] || (r[1] = ye(() => {
|
|
654
|
+
}, ["stop"]))
|
|
641
655
|
}, [
|
|
642
|
-
|
|
643
|
-
class:
|
|
656
|
+
$("div", {
|
|
657
|
+
class: y(t(C)(t(u), "selection_space"))
|
|
644
658
|
}, null, 2),
|
|
645
|
-
|
|
659
|
+
d(we, _({
|
|
646
660
|
rootCls: "w-fit",
|
|
647
661
|
disabled: !s.getCanSelect(),
|
|
648
|
-
checked:
|
|
649
|
-
onChange: (
|
|
662
|
+
checked: ce(s),
|
|
663
|
+
onChange: (ee) => ke(ee, s),
|
|
650
664
|
ref_for: !0
|
|
651
|
-
},
|
|
652
|
-
], 2)) :
|
|
665
|
+
}, Re(s.original)), null, 16, ["disabled", "checked", "onChange"])
|
|
666
|
+
], 2)) : I("", !0)
|
|
653
667
|
]),
|
|
654
668
|
_: 2
|
|
655
669
|
}, [
|
|
656
|
-
S.cellAction && ![
|
|
670
|
+
S.cellAction && ![g.value, i].includes(n.column.id) ? {
|
|
657
671
|
name: "absoluteAction",
|
|
658
672
|
fn: m(() => [
|
|
659
|
-
T(e.$slots, "cellAction",
|
|
673
|
+
T(e.$slots, "cellAction", _(
|
|
660
674
|
{ ref_for: !0 },
|
|
661
675
|
{
|
|
662
676
|
column: n.column.columnDef,
|
|
663
677
|
record: s.original,
|
|
664
|
-
index:
|
|
678
|
+
index: p
|
|
665
679
|
}
|
|
666
680
|
))
|
|
667
681
|
]),
|
|
668
682
|
key: "0"
|
|
669
683
|
} : void 0
|
|
670
|
-
]), 1040)) :
|
|
684
|
+
]), 1040)) : I("", !0)
|
|
671
685
|
], 64);
|
|
672
686
|
}), 128))
|
|
673
687
|
]),
|
|
674
688
|
_: 2
|
|
675
|
-
},
|
|
676
|
-
|
|
689
|
+
}, 1040, ["onClick"]))), 128)),
|
|
690
|
+
l.loading ? (a(!0), v(z, { key: 0 }, V(t(h).getRowModel().rows.length ? 2 : e.loadingRowCount, (s) => (a(), A(t(x), {
|
|
677
691
|
key: s,
|
|
678
692
|
zebra: e.zebra
|
|
679
693
|
}, {
|
|
680
694
|
default: m(() => [
|
|
681
|
-
(
|
|
695
|
+
(a(!0), v(z, null, V(t(h).getVisibleLeafColumns(), (p, n) => (a(), A(t(G), { key: n }, {
|
|
682
696
|
default: m(() => [
|
|
683
|
-
|
|
697
|
+
p.id !== i ? T(e.$slots, "skeleton", _({
|
|
684
698
|
key: 0,
|
|
685
699
|
ref_for: !0
|
|
686
|
-
}, { index: n, column:
|
|
687
|
-
|
|
688
|
-
]) :
|
|
700
|
+
}, { index: n, column: p.columnDef }), () => [
|
|
701
|
+
d(fo, _({ ref_for: !0 }, t(ze)(p.columnDef)), null, 16)
|
|
702
|
+
]) : I("", !0)
|
|
689
703
|
]),
|
|
690
704
|
_: 2
|
|
691
705
|
}, 1024))), 128))
|
|
692
706
|
]),
|
|
693
707
|
_: 2
|
|
694
|
-
}, 1032, ["zebra"]))), 128)) :
|
|
695
|
-
t(
|
|
708
|
+
}, 1032, ["zebra"]))), 128)) : I("", !0),
|
|
709
|
+
t(h).getRowModel().rows.length ? I("", !0) : (a(), A(t(x), {
|
|
696
710
|
key: 1,
|
|
697
711
|
empty: ""
|
|
698
712
|
}, {
|
|
699
713
|
default: m(() => [
|
|
700
|
-
|
|
701
|
-
colspan: t(
|
|
714
|
+
d(t(G), {
|
|
715
|
+
colspan: t(h).getVisibleLeafColumns().length,
|
|
702
716
|
empty: ""
|
|
703
717
|
}, {
|
|
704
718
|
default: m(() => [
|
|
705
|
-
|
|
719
|
+
d(no, _({ type: "advance" }, e.emptyProps), ge({ _: 2 }, [
|
|
706
720
|
S.emptyTitle ? {
|
|
707
721
|
name: "title",
|
|
708
722
|
fn: m(() => [
|
|
@@ -738,19 +752,19 @@ const _o = (B) => {
|
|
|
738
752
|
]),
|
|
739
753
|
_: 3
|
|
740
754
|
})),
|
|
741
|
-
e.lazyLoading ? (
|
|
755
|
+
e.lazyLoading ? (a(), A(t(x), {
|
|
742
756
|
key: 2,
|
|
743
757
|
"lazy-load-observer": ""
|
|
744
758
|
}, {
|
|
745
759
|
default: m(() => [
|
|
746
|
-
|
|
760
|
+
d(t(G), {
|
|
747
761
|
ref_key: "target",
|
|
748
762
|
ref: ae,
|
|
749
763
|
"lazy-load-observer": ""
|
|
750
764
|
}, null, 512)
|
|
751
765
|
]),
|
|
752
766
|
_: 1
|
|
753
|
-
})) :
|
|
767
|
+
})) : I("", !0)
|
|
754
768
|
]),
|
|
755
769
|
_: 3
|
|
756
770
|
}, 8, ["class"])
|
|
@@ -766,6 +780,6 @@ const _o = (B) => {
|
|
|
766
780
|
}
|
|
767
781
|
});
|
|
768
782
|
export {
|
|
769
|
-
|
|
770
|
-
|
|
783
|
+
Uo as DataTable,
|
|
784
|
+
Uo as default
|
|
771
785
|
};
|