@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.
@@ -1,140 +1,140 @@
1
- import { h as Ke, ref as Z, computed as D, watch as le, defineComponent as We, useSlots as je, unref as t, useTemplateRef as Ee, onBeforeUnmount as He, shallowRef as Le, createElementBlock as v, openBlock as c, normalizeClass as g, createVNode as f, withCtx as m, createElementVNode as R, normalizeStyle as Ve, createBlock as I, createCommentVNode as P, Fragment as $, renderList as M, mergeProps as z, renderSlot as T, createSlots as fe, toDisplayString as Me, normalizeProps as Ne, guardReactiveProps as Oe, nextTick as ee } from "vue";
2
- import { createColumnHelper as xe, flattenBy as qe, useVueTable as Fe, getSortedRowModel as Ge, getCoreRowModel as Ze } from "@tanstack/vue-table";
3
- import { b as Ue } from "../_baseIsEqual-BknLKouD.js";
4
- import { i as Je, b as Qe, 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 Xe, a as te } from "../Menu.vue_vue_type_style_index_0_lang-BSR_8MKN.js";
7
- import { _ as Ye } from "../ActionButton.vue_vue_type_script_setup_true_lang-CiJO-TtM.js";
8
- import { _ as eo } from "../Empty.vue_vue_type_style_index_0_lang-BlW5utb2.js";
9
- import { o as _e } from "../omit-CD3OjwFx.js";
10
- import { u as oo } from "../uniq-DSVd52ma.js";
11
- import { i as ne, a as W } from "../_flatRest-Dx0ZZgOx.js";
12
- import { getBemBlock as to, wgt_pre as no, generateVariantClassList as ro, getBemElement as _, usePCId as lo } from "@pantograph/utils";
13
- import { getBreakpoints as so } from "@pantograph/tokens";
14
- import { useBreakpoints as io, useIntersectionObserver as ao } from "@vueuse/core";
15
- import { _ as co } 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 uo } 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 mo } from "../Switch.vue_vue_type_style_index_0_lang-DnmgMCHT.js";
22
- import { g as be } from "../get-B14Mml42.js";
23
- import { cva as fo } from "class-variance-authority";
24
- import { _ as po, e as go, c as F, a as yo, d as ho, b as G } from "../THead.vue_vue_type_style_index_0_lang-B4yro5EP.js";
25
- function ve(B, C) {
26
- return Ue(B, C);
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 wo = (B, { isColumnWrapped: C, selectionId: r }) => {
29
- const x = (o) => {
30
- var d;
31
- const a = (y) => y === "list" ? "md" : "sm";
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: 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
37
  }, S = (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, {
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: _e(a, "render")
44
- }) : typeof o.render == "function" || typeof o.render == "object" ? Ke(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 = C(o.column.id);
67
- const { customCell: E, class: q } = y;
68
- if (ge(q) || K.push(q), E && (ne(E) || W(E))) {
69
- const O = (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 ? O(
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
- ) : O(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
- getSkeletonProps: x,
94
+ getSkeletonProps: N,
95
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 === r && (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 bo = "[object Boolean]";
114
- function vo(B) {
115
- return B === !0 || B === !1 || Je(B) && Qe(B) == bo;
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 C = Z([]), r = (i) => i ? C.value.findIndex((p) => p.id === i) : -1, x = (i) => {
119
- if (i) return C.value.find((p) => p.id === i);
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 p;
122
- return !!((p = x(i)) != null && p.wrap);
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 ?? !S(p), N = r(p);
127
- return N >= 0 ? C.value[N] = { id: p, wrap: V } : C.value.push({ id: p, wrap: V }), !0;
128
- }, k = D(
129
- () => (B.columns ?? []).filter((i) => vo(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
- C.value = [...C.value, ...i];
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
- }, Fo = /* @__PURE__ */ We({
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: C }) {
176
- const r = B, x = C, S = je(), u = to("data_table", no), k = xe(), i = `$${u}_selection$`, p = D(() => {
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 = r.actionCol) == null ? void 0 : e.id) ?? `$${u}_action$`;
179
- }), V = (e) => _e(e ?? {}, "title", "sorter", "columns", "id", "dataIndex"), N = D(() => {
180
- var h;
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 ?? lo(`${u}--col`);
184
- return oe(be(n, r.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, r.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, De) => n.sorter(Y.original, De.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(r.columns)) throw "no columns";
199
- const l = r.columns.map(({ id: n }) => n);
200
- if (oo(l).length !== l.length) throw "no uniq column ids";
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 r.rowSelection && r.rowKey && s.push(
203
- k.accessor(i, {
203
+ return l.rowSelection && l.rowKey && s.push(
204
+ R.accessor(i, {
204
205
  id: i,
205
206
  enableSorting: !1
206
207
  })
207
- ), r.columns.forEach((n) => {
208
+ ), l.columns.forEach((n) => {
208
209
  s.push(e(n));
209
210
  }), (S.action || S.hoverAction) && s.push(
210
- k.accessor(p.value, {
211
- id: p.value,
212
- header: (h = r.actionCol) == null ? void 0 : h.title,
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(r.actionCol)
215
+ ...M(l.actionCol)
215
216
  })
216
217
  ), s;
217
- }), { toggleWrap: se, isColumnWrapped: U } = _o(r), o = Z({}), a = D(() => Object.keys(o.value)), d = D(
218
- () => r.rowKey ? qe(r.data, (e) => e.children).map(
219
- (e) => e[r.rowKey]
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
- ), y = () => {
222
+ ), w = () => {
222
223
  const e = Object.fromEntries(
223
- a.value.filter((l) => {
224
+ c.value.filter((r) => {
224
225
  var s;
225
- return !((s = r.rowSelection) != null && s.preserveSelectedRowKeys) && r.rowKey ? d.value.includes(l) : !0;
226
- }).map((l) => [l, !0])
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 !== a.value.length && (o.value = e, ee(() => {
229
- var l;
230
- W((l = r.rowSelection) == null ? void 0 : l.onChange) && r.rowSelection.onChange(H.value);
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
- }, K = D(() => (y(), [...r.data])), A = so(), E = io(
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
- N.value.map((l) => {
242
+ F.value = Object.fromEntries(
243
+ O.value.map((r) => {
243
244
  var s;
244
245
  return [
245
- l.id,
246
- oe(l == null ? void 0 : l.responsive) ? (s = l.responsive) == null ? void 0 : s.includes(e) : !0
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 O = Z([]), w = Fe({
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
- O.value = typeof e == "function" ? e(O.value) : e;
263
+ q.value = typeof e == "function" ? e(q.value) : e;
263
264
  },
264
265
  state: {
265
266
  get sorting() {
266
- return O.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,
276
277
  get columns() {
277
- return N.value;
278
+ return O.value;
278
279
  },
279
- getRowId(e, l) {
280
- return r.rowKey ? e[r.rowKey] : l;
280
+ getRowId(e, r) {
281
+ return l.rowKey ? e[l.rowKey] : r;
281
282
  },
282
283
  getRowCanExpand: () => !0,
283
- getCoreRowModel: Ze(),
284
- getSortedRowModel: Ge(),
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
  () => {
294
295
  var e;
295
- return (e = r.rowSelection) == null ? void 0 : e.selectedRowKeys;
296
+ return (e = l.rowSelection) == null ? void 0 : e.selectedRowKeys;
296
297
  },
297
- (e, l) => {
298
- var s, h;
299
- if ((h = (s = r.rowSelection) == null ? void 0 : s.selectedRowKeys) != null && h.length && !ve(e, l)) {
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(r.rowSelection.selectedRowKeys ?? Object.keys(o.value)).map(
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(() => {
312
- var l, s;
313
- W((l = r.rowSelection) == null ? void 0 : l.onSelectAll) && r.rowSelection.onSelectAll({ ...H.value, selected: e }), W((s = r.rowSelection) == null ? void 0 : s.onChange) && r.rowSelection.onChange(H.value);
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
- }, Se = (e, l) => {
316
+ }, ke = (e, r) => {
316
317
  var s;
317
- l.toggleSelected(e, {
318
- selectChildren: !((s = r.rowSelection) != null && s.checkStrictly)
319
- }), ee(() => {
320
- var h, n;
321
- W((h = r.rowSelection) == null ? void 0 : h.onSelect) && r.rowSelection.onSelect({
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: l.original
325
- }), W((n = r.rowSelection) == null ? void 0 : n.onChange) && r.rowSelection.onChange(H.value);
325
+ record: r.original
326
+ }), K((n = l.rowSelection) == null ? void 0 : n.onChange) && l.rowSelection.onChange(H.value);
326
327
  });
327
- }, Ce = (e) => {
328
- var l, s;
329
- return W((l = r.rowSelection) == null ? void 0 : l.getCheckboxProps) && ((s = r.rowSelection) == null || s.getCheckboxProps(e)), {};
330
- }, ie = (e) => {
331
- var l;
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 ((l = e.subRows) != null && l.length) {
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 = Ee("target"), { stop: ke } = ao(ae, ([e]) => {
339
- r.lazyLoading && !r.loading && (e != null && e.isIntersecting) && x("fetch");
339
+ }, ae = Me("target"), { stop: $e } = mo(ae, ([e]) => {
340
+ l.lazyLoading && !l.loading && (e != null && e.isIntersecting) && N("fetch");
340
341
  });
341
- He(ke);
342
- const { getSkeletonProps: Re, getThProps: $e, RenderCell: ce, getTdProps: X, getColProps: ze, isThVisible: Be } = wo(r, {
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 = fo(u, {
348
+ }, Te = yo(u, {
348
349
  variants: {
349
- empty: ro("empty", u)
350
+ empty: io("empty", u)
350
351
  }
351
- }), me = Le(0), Pe = ({ item: e }, l) => {
352
- e.key === "a-z" && l.toggleSorting(!1, !1), e.key === "z-a" && l.toggleSorting(!0, !1), e.key === "wrap" && se({ id: l.id }), me.value++;
353
- }, Te = (e) => {
354
- const l = e.getIsSorted();
355
- if (!l) return "tabler:arrows-up-down";
356
- if (l === "desc") return "tabler:arrow-down";
357
- if (l === "asc") return "tabler:arrow-up";
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
- () => w.getHeaderGroups().map((e) => ({
360
+ () => h.getHeaderGroups().map((e) => ({
360
361
  ...e,
361
- headers: e.headers.map((l) => ({
362
- ...l,
363
- bindings: $e(l.getContext())
362
+ headers: e.headers.map((r) => ({
363
+ ...r,
364
+ bindings: Be(r.getContext())
364
365
  }))
365
366
  }))
366
- );
367
- return (e, l) => (c(), v("div", {
368
- class: g([t(_)(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 && S.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(_)(t(u), "batch_actions"))
387
+ $("div", {
388
+ class: y(t(C)(t(u), "batch_actions"))
380
389
  }, [
381
- f(uo, {
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(_)(t(u), "batch_actions__title"))
387
- }, Me(e.batchActionsTitle), 3),
388
- R("div", {
389
- class: g(t(_)(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", Ne(Oe(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(_)(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(_)(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(_)(t(u), "scroll_viewport"), e.scrollViewportCls])
418
+ $("div", {
419
+ class: y([t(C)(t(u), "scroll_viewport"), e.scrollViewportCls])
411
420
  }, [
412
- f(t(po), {
421
+ d(t(wo), {
413
422
  size: e.size,
414
- style: Ve({
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
- r.class
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(go), {
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(yo), 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(_)(t(u), "header"))
461
+ $("div", {
462
+ class: y(t(C)(t(u), "header"))
453
463
  }, [
454
- R("div", {
455
- class: g(t(_)(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(_)(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(Ye, {
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(_)(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(_)(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(Xe, {
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(mo, {
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,73 +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(_)(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(ho), {
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
- }, {
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
- (c(!0), v($, null, M(s.getVisibleCells(), (n) => {
599
+ (a(!0), v(z, null, V(s.getVisibleCells(), (n) => {
590
600
  var b, L;
591
- return c(), v($, {
601
+ return a(), v(z, {
592
602
  key: n.id
593
603
  }, [
594
- ((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), _({
595
605
  key: 0,
596
606
  ref_for: !0
597
- }, t(X)(n.getContext())), fe({
607
+ }, t(Y)(n.getContext())), ge({
598
608
  default: m(() => [
599
- n.column.id === p.value && (S.hoverAction || S.action) ? (c(), v("div", {
609
+ n.column.id === g.value && (S.hoverAction || S.action) ? (a(), v("div", {
600
610
  key: 0,
601
- class: g(t(_)(t(u), "action_cell"))
611
+ onClick: r[0] || (r[0] = ye(() => {
612
+ }, ["stop"])),
613
+ class: y(t(C)(t(u), "action_cell"))
602
614
  }, [
603
- R("div", {
604
- class: g([t(_)(t(u), "action_cell__hover"), e.actionHoverCls])
615
+ $("div", {
616
+ class: y([t(C)(t(u), "action_cell__hover"), e.actionHoverCls])
605
617
  }, [
606
- T(e.$slots, "hoverAction", z(
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: h
623
+ index: p
612
624
  }
613
625
  ))
614
626
  ], 2),
615
- T(e.$slots, "action", z(
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: h
632
+ index: p
621
633
  }
622
634
  ))
623
- ], 2)) : n.column.id !== i ? T(e.$slots, "bodyCell", z(
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: h
643
+ index: p
632
644
  }
633
645
  ), () => [
634
- f(t(ce), {
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] ? (c(), v("div", {
650
+ ]) : e.rowKey && s.original[e.rowKey] ? (a(), v("div", {
639
651
  key: 2,
640
- class: g(t(_)(t(u), "selection"))
652
+ class: y(t(C)(t(u), "selection")),
653
+ onClick: r[1] || (r[1] = ye(() => {
654
+ }, ["stop"]))
641
655
  }, [
642
- R("div", {
643
- class: g(t(_)(t(u), "selection_space"))
656
+ $("div", {
657
+ class: y(t(C)(t(u), "selection_space"))
644
658
  }, null, 2),
645
- f(pe, z({
659
+ d(we, _({
646
660
  rootCls: "w-fit",
647
661
  disabled: !s.getCanSelect(),
648
- checked: ie(s),
649
- onChange: (Y) => Se(Y, s),
662
+ checked: ce(s),
663
+ onChange: (ee) => ke(ee, s),
650
664
  ref_for: !0
651
- }, Ce(s.original)), null, 16, ["disabled", "checked", "onChange"])
652
- ], 2)) : P("", !0)
665
+ }, Re(s.original)), null, 16, ["disabled", "checked", "onChange"])
666
+ ], 2)) : I("", !0)
653
667
  ]),
654
668
  _: 2
655
669
  }, [
656
- S.cellAction && ![p.value, i].includes(n.column.id) ? {
670
+ S.cellAction && ![g.value, i].includes(n.column.id) ? {
657
671
  name: "absoluteAction",
658
672
  fn: m(() => [
659
- T(e.$slots, "cellAction", z(
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: h
678
+ index: p
665
679
  }
666
680
  ))
667
681
  ]),
668
682
  key: "0"
669
683
  } : void 0
670
- ]), 1040)) : P("", !0)
684
+ ]), 1040)) : I("", !0)
671
685
  ], 64);
672
686
  }), 128))
673
687
  ]),
674
688
  _: 2
675
- }, 1032, ["zebra", "checked"]))), 128)),
676
- r.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), {
677
691
  key: s,
678
692
  zebra: e.zebra
679
693
  }, {
680
694
  default: m(() => [
681
- (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 }, {
682
696
  default: m(() => [
683
- h.id !== i ? T(e.$slots, "skeleton", z({
697
+ p.id !== i ? T(e.$slots, "skeleton", _({
684
698
  key: 0,
685
699
  ref_for: !0
686
- }, { index: n, column: h.columnDef }), () => [
687
- f(co, z({ ref_for: !0 }, t(Re)(h.columnDef)), null, 16)
688
- ]) : P("", !0)
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)) : P("", !0),
695
- 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), {
696
710
  key: 1,
697
711
  empty: ""
698
712
  }, {
699
713
  default: m(() => [
700
- f(t(G), {
701
- colspan: t(w).getVisibleLeafColumns().length,
714
+ d(t(G), {
715
+ colspan: t(h).getVisibleLeafColumns().length,
702
716
  empty: ""
703
717
  }, {
704
718
  default: m(() => [
705
- f(eo, z({ type: "advance" }, e.emptyProps), fe({ _: 2 }, [
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 ? (c(), I(t(F), {
755
+ e.lazyLoading ? (a(), A(t(x), {
742
756
  key: 2,
743
757
  "lazy-load-observer": ""
744
758
  }, {
745
759
  default: m(() => [
746
- f(t(G), {
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
- })) : P("", !0)
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
- Fo as DataTable,
770
- Fo as default
783
+ Uo as DataTable,
784
+ Uo as default
771
785
  };