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