@brightlocal/ui-components 2.6.1 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/component-meta.json +4 -5
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.d.ts +110 -83
- package/dist/blocks/data-table.d.ts.map +1 -1
- package/dist/blocks/data-table.js +428 -389
- package/dist/index.cjs +1 -1
- package/dist/index.js +169 -173
- package/dist/table.cjs +1 -1
- package/dist/table.js +28 -28
- package/package.json +1 -1
- package/src/blocks/data-table.tsx +462 -293
- package/src/components/table.tsx +1 -1
|
@@ -1,280 +1,265 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { ArrowDown as re, ArrowUp as se, ArrowUpDown as ce, Ellipsis as de, Search as ge } from "@brightlocal/icons";
|
|
1
|
+
import { jsx as e, jsxs as f, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { useReactTable as ne, getExpandedRowModel as oe, getFilteredRowModel as le, getSortedRowModel as ie, getPaginationRowModel as re, getCoreRowModel as se, flexRender as H } from "@tanstack/react-table";
|
|
4
|
+
import { useVirtualizer as ce } from "@tanstack/react-virtual";
|
|
5
|
+
import { ArrowDown as de, ArrowUp as ue, ArrowUpDown as ge, Ellipsis as pe, Search as he, X as me } from "@brightlocal/icons";
|
|
7
6
|
import { cn as b } from "@brightlocal/ui-components/lib/utils";
|
|
8
|
-
import { Button as
|
|
9
|
-
import { Checkbox as
|
|
10
|
-
import { DropdownMenu as
|
|
11
|
-
import { InputGroup as
|
|
12
|
-
import { usePagination as
|
|
13
|
-
import { Skeleton as
|
|
14
|
-
import { Table as V,
|
|
15
|
-
function
|
|
16
|
-
const [
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
import { Button as F } from "../button.js";
|
|
8
|
+
import { Checkbox as E } from "../checkbox.js";
|
|
9
|
+
import { DropdownMenu as fe, DropdownMenuTrigger as be, DropdownMenuContent as Se } from "../dropdown-menu.js";
|
|
10
|
+
import { InputGroup as we, InputGroupAddon as A, InputGroupInput as Ce } from "../input-group.js";
|
|
11
|
+
import { usePagination as xe, Pagination as Pe, PaginationContent as Re, PaginationItem as z, PaginationPrevious as ve, PaginationNext as ke, PaginationEllipsis as Te, PaginationLink as De } from "../pagination.js";
|
|
12
|
+
import { Skeleton as ye } from "../skeleton.js";
|
|
13
|
+
import { Table as V, TableBody as j, TableRow as C, TableCell as x, TableHeader as Ne, TableHead as ze } from "../table.js";
|
|
14
|
+
function v(t, n, i) {
|
|
15
|
+
const [a, l] = p.useState(n), o = t !== void 0 ? t : a, r = p.useRef(o);
|
|
16
|
+
p.useEffect(() => {
|
|
17
|
+
r.current = o;
|
|
19
18
|
});
|
|
20
|
-
const c = t !== void 0, d =
|
|
21
|
-
(
|
|
22
|
-
const
|
|
23
|
-
c ||
|
|
19
|
+
const c = t !== void 0, d = p.useCallback(
|
|
20
|
+
(s) => {
|
|
21
|
+
const u = typeof s == "function" ? s(r.current) : s;
|
|
22
|
+
c || l(u), i?.(u);
|
|
24
23
|
},
|
|
25
|
-
[c,
|
|
24
|
+
[c, i]
|
|
26
25
|
);
|
|
27
|
-
return [
|
|
26
|
+
return [o, d];
|
|
28
27
|
}
|
|
29
|
-
function
|
|
28
|
+
function Ze(t) {
|
|
30
29
|
const {
|
|
31
|
-
columns:
|
|
32
|
-
data:
|
|
33
|
-
enableSorting:
|
|
34
|
-
enableGlobalFiltering:
|
|
35
|
-
enableRowSelection:
|
|
36
|
-
enablePagination:
|
|
30
|
+
columns: n,
|
|
31
|
+
data: i,
|
|
32
|
+
enableSorting: a = !0,
|
|
33
|
+
enableGlobalFiltering: l = !1,
|
|
34
|
+
enableRowSelection: o = !1,
|
|
35
|
+
enablePagination: r = !1,
|
|
37
36
|
pageSize: c = 10,
|
|
38
37
|
manualSorting: d = !1,
|
|
39
|
-
manualFiltering:
|
|
40
|
-
manualPagination:
|
|
41
|
-
rowCount:
|
|
42
|
-
pageCount:
|
|
43
|
-
enableExpanding:
|
|
38
|
+
manualFiltering: s = !1,
|
|
39
|
+
manualPagination: u = !1,
|
|
40
|
+
rowCount: h,
|
|
41
|
+
pageCount: g,
|
|
42
|
+
enableExpanding: m = !1,
|
|
44
43
|
getSubRows: w,
|
|
45
|
-
getRowId:
|
|
46
|
-
pagination:
|
|
47
|
-
onPaginationChange:
|
|
48
|
-
sorting:
|
|
49
|
-
onSortingChange:
|
|
50
|
-
globalFilter:
|
|
51
|
-
onGlobalFilterChange:
|
|
52
|
-
rowSelection:
|
|
53
|
-
onRowSelectionChange:
|
|
54
|
-
expanded:
|
|
55
|
-
onExpandedChange:
|
|
56
|
-
} = t, [
|
|
57
|
-
|
|
44
|
+
getRowId: P,
|
|
45
|
+
pagination: R,
|
|
46
|
+
onPaginationChange: T,
|
|
47
|
+
sorting: S,
|
|
48
|
+
onSortingChange: $,
|
|
49
|
+
globalFilter: D,
|
|
50
|
+
onGlobalFilterChange: y,
|
|
51
|
+
rowSelection: I,
|
|
52
|
+
onRowSelectionChange: N,
|
|
53
|
+
expanded: O,
|
|
54
|
+
onExpandedChange: X
|
|
55
|
+
} = t, [q, J] = v(
|
|
56
|
+
R,
|
|
58
57
|
{ pageIndex: 0, pageSize: c },
|
|
59
|
-
|
|
60
|
-
), [
|
|
61
|
-
|
|
58
|
+
T
|
|
59
|
+
), [K, Q] = v(
|
|
60
|
+
S,
|
|
62
61
|
[],
|
|
63
|
-
|
|
64
|
-
), [
|
|
65
|
-
|
|
62
|
+
$
|
|
63
|
+
), [W, Y] = v(
|
|
64
|
+
D,
|
|
66
65
|
"",
|
|
67
|
-
|
|
68
|
-
), [
|
|
69
|
-
|
|
66
|
+
y
|
|
67
|
+
), [Z, ee] = v(I, {}, N), [te, ae] = v(
|
|
68
|
+
O,
|
|
70
69
|
{},
|
|
71
|
-
|
|
70
|
+
X
|
|
72
71
|
);
|
|
73
|
-
return
|
|
74
|
-
data:
|
|
75
|
-
columns:
|
|
76
|
-
getCoreRowModel:
|
|
77
|
-
...
|
|
78
|
-
...(
|
|
79
|
-
onPaginationChange:
|
|
72
|
+
return ne({
|
|
73
|
+
data: i,
|
|
74
|
+
columns: n,
|
|
75
|
+
getCoreRowModel: se(),
|
|
76
|
+
...P && { getRowId: P },
|
|
77
|
+
...(r || u) && {
|
|
78
|
+
onPaginationChange: J
|
|
80
79
|
},
|
|
81
|
-
...
|
|
82
|
-
...!
|
|
83
|
-
getPaginationRowModel:
|
|
80
|
+
...r && {
|
|
81
|
+
...!u && {
|
|
82
|
+
getPaginationRowModel: re()
|
|
84
83
|
}
|
|
85
84
|
},
|
|
86
|
-
...
|
|
85
|
+
...u && {
|
|
87
86
|
manualPagination: !0,
|
|
88
|
-
...
|
|
89
|
-
...
|
|
87
|
+
...h != null && { rowCount: h },
|
|
88
|
+
...g != null && { pageCount: g }
|
|
90
89
|
},
|
|
91
|
-
...
|
|
90
|
+
...a && {
|
|
92
91
|
...!d && {
|
|
93
|
-
getSortedRowModel:
|
|
92
|
+
getSortedRowModel: ie()
|
|
94
93
|
},
|
|
95
|
-
onSortingChange:
|
|
94
|
+
onSortingChange: Q,
|
|
96
95
|
...d && { manualSorting: !0 }
|
|
97
96
|
},
|
|
98
|
-
...
|
|
99
|
-
...!
|
|
100
|
-
getFilteredRowModel:
|
|
97
|
+
...l && {
|
|
98
|
+
...!s && {
|
|
99
|
+
getFilteredRowModel: le()
|
|
101
100
|
},
|
|
102
|
-
...
|
|
103
|
-
onGlobalFilterChange:
|
|
101
|
+
...s && { manualFiltering: !0 },
|
|
102
|
+
onGlobalFilterChange: Y,
|
|
104
103
|
globalFilterFn: "includesString"
|
|
105
104
|
},
|
|
106
|
-
...
|
|
105
|
+
...o && {
|
|
107
106
|
enableRowSelection: !0,
|
|
108
|
-
onRowSelectionChange:
|
|
107
|
+
onRowSelectionChange: ee
|
|
109
108
|
},
|
|
110
|
-
...
|
|
111
|
-
getExpandedRowModel:
|
|
112
|
-
onExpandedChange:
|
|
109
|
+
...m && {
|
|
110
|
+
getExpandedRowModel: oe(),
|
|
111
|
+
onExpandedChange: ae,
|
|
113
112
|
getSubRows: w
|
|
114
113
|
},
|
|
115
114
|
state: {
|
|
116
|
-
pagination:
|
|
117
|
-
sorting:
|
|
118
|
-
globalFilter:
|
|
119
|
-
rowSelection:
|
|
120
|
-
expanded:
|
|
115
|
+
pagination: q,
|
|
116
|
+
sorting: K,
|
|
117
|
+
globalFilter: W,
|
|
118
|
+
rowSelection: Z,
|
|
119
|
+
expanded: te
|
|
121
120
|
}
|
|
122
121
|
});
|
|
123
122
|
}
|
|
124
|
-
function
|
|
123
|
+
function $e({
|
|
125
124
|
table: t,
|
|
126
|
-
dataHook:
|
|
127
|
-
trackingEl:
|
|
128
|
-
trackingLabel:
|
|
129
|
-
isLoading:
|
|
130
|
-
skeletonRowCount:
|
|
131
|
-
noResultsMessage:
|
|
125
|
+
dataHook: n,
|
|
126
|
+
trackingEl: i,
|
|
127
|
+
trackingLabel: a,
|
|
128
|
+
isLoading: l = !1,
|
|
129
|
+
skeletonRowCount: o,
|
|
130
|
+
noResultsMessage: r = "No results.",
|
|
132
131
|
stickyHeader: c = !1,
|
|
133
132
|
className: d,
|
|
134
|
-
footer:
|
|
133
|
+
footer: s
|
|
135
134
|
}) {
|
|
136
|
-
const
|
|
135
|
+
const u = t.getVisibleLeafColumns().length, h = o ?? t.getState().pagination.pageSize ?? 10;
|
|
137
136
|
return /* @__PURE__ */ e(
|
|
138
137
|
"div",
|
|
139
138
|
{
|
|
140
|
-
"aria-busy":
|
|
141
|
-
className: b("border-border rounded-md border", d),
|
|
142
|
-
"data-hook":
|
|
139
|
+
"aria-busy": l || void 0,
|
|
140
|
+
className: b("border-border overflow-auto rounded-md border", d),
|
|
141
|
+
"data-hook": n,
|
|
143
142
|
"data-slot": "data-table-view",
|
|
144
|
-
"data-tracking-el":
|
|
145
|
-
"data-tracking-label":
|
|
146
|
-
children: /* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */ e(
|
|
148
|
-
|
|
149
|
-
{
|
|
150
|
-
className: b(c && "bg-background sticky top-0 z-10"),
|
|
151
|
-
children: t.getHeaderGroups().map((u) => /* @__PURE__ */ e(k, { children: u.headers.map((s) => {
|
|
152
|
-
const w = s.column.getCanSort() ? s.column.getIsSorted() : !1, f = w === "asc" ? "ascending" : w === "desc" ? "descending" : s.column.getCanSort() ? "none" : void 0;
|
|
153
|
-
return /* @__PURE__ */ e(
|
|
154
|
-
G,
|
|
155
|
-
{
|
|
156
|
-
"aria-sort": f,
|
|
157
|
-
colSpan: s.colSpan,
|
|
158
|
-
children: s.isPlaceholder ? null : A(
|
|
159
|
-
s.column.columnDef.header,
|
|
160
|
-
s.getContext()
|
|
161
|
-
)
|
|
162
|
-
},
|
|
163
|
-
s.id
|
|
164
|
-
);
|
|
165
|
-
}) }, u.id))
|
|
166
|
-
}
|
|
167
|
-
),
|
|
168
|
-
/* @__PURE__ */ e(L, { children: o ? /* @__PURE__ */ S(D, { children: [
|
|
143
|
+
"data-tracking-el": i,
|
|
144
|
+
"data-tracking-label": a,
|
|
145
|
+
children: /* @__PURE__ */ f(V, { dataHook: `${n}-table`, children: [
|
|
146
|
+
/* @__PURE__ */ e(G, { stickyHeader: c, table: t }),
|
|
147
|
+
/* @__PURE__ */ e(j, { children: l ? /* @__PURE__ */ f(k, { children: [
|
|
169
148
|
/* @__PURE__ */ e(
|
|
170
|
-
|
|
149
|
+
B,
|
|
171
150
|
{
|
|
172
|
-
colCount:
|
|
173
|
-
rowCount:
|
|
151
|
+
colCount: u,
|
|
152
|
+
rowCount: h
|
|
174
153
|
}
|
|
175
154
|
),
|
|
176
|
-
/* @__PURE__ */ e(
|
|
177
|
-
] }) : /* @__PURE__ */ e(
|
|
178
|
-
|
|
155
|
+
/* @__PURE__ */ e(C, { className: "sr-only", children: /* @__PURE__ */ e(x, { colSpan: u, children: /* @__PURE__ */ e("div", { "aria-live": "polite", role: "status", children: "Loading data…" }) }) })
|
|
156
|
+
] }) : /* @__PURE__ */ e(k, { children: t.getRowModel().rows.length > 0 ? t.getRowModel().rows.map((g) => /* @__PURE__ */ e(L, { row: g }, g.id)) : /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(x, { colSpan: u, children: /* @__PURE__ */ e("div", { "aria-live": "polite", role: "status", children: r }) }) }) }) }),
|
|
157
|
+
s
|
|
179
158
|
] })
|
|
180
159
|
}
|
|
181
160
|
);
|
|
182
161
|
}
|
|
183
|
-
|
|
184
|
-
function
|
|
185
|
-
|
|
162
|
+
$e.displayName = "DataTable";
|
|
163
|
+
function G({
|
|
164
|
+
table: t,
|
|
165
|
+
stickyHeader: n
|
|
166
|
+
}) {
|
|
167
|
+
return /* @__PURE__ */ e(
|
|
168
|
+
Ne,
|
|
169
|
+
{
|
|
170
|
+
className: b(n && "bg-background sticky top-0 z-10"),
|
|
171
|
+
children: t.getHeaderGroups().map((i) => /* @__PURE__ */ e(C, { children: i.headers.map((a) => {
|
|
172
|
+
const l = a.column.getCanSort() ? a.column.getIsSorted() : !1, o = l === "asc" ? "ascending" : l === "desc" ? "descending" : a.column.getCanSort() ? "none" : void 0;
|
|
173
|
+
return /* @__PURE__ */ e(
|
|
174
|
+
ze,
|
|
175
|
+
{
|
|
176
|
+
"aria-sort": o,
|
|
177
|
+
colSpan: a.colSpan,
|
|
178
|
+
children: a.isPlaceholder ? null : H(
|
|
179
|
+
a.column.columnDef.header,
|
|
180
|
+
a.getContext()
|
|
181
|
+
)
|
|
182
|
+
},
|
|
183
|
+
a.id
|
|
184
|
+
);
|
|
185
|
+
}) }, i.id))
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
function L({ row: t }) {
|
|
190
|
+
return /* @__PURE__ */ e(C, { "data-state": t.getIsSelected() ? "selected" : void 0, children: t.getVisibleCells().map((n) => /* @__PURE__ */ e(x, { children: H(n.column.columnDef.cell, n.getContext()) }, n.id)) });
|
|
186
191
|
}
|
|
187
|
-
function
|
|
192
|
+
function B({
|
|
188
193
|
rowCount: t,
|
|
189
|
-
colCount:
|
|
194
|
+
colCount: n
|
|
190
195
|
}) {
|
|
191
|
-
return /* @__PURE__ */ e(
|
|
196
|
+
return /* @__PURE__ */ e(k, { children: Array.from({ length: t }).map((i, a) => /* @__PURE__ */ e(C, { children: Array.from({ length: n }).map((l, o) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(ye, { className: "h-4 w-full" }) }, `skeleton-${a}-${o}`)) }, `skeleton-${a}`)) });
|
|
192
197
|
}
|
|
193
|
-
function
|
|
198
|
+
function Ie({
|
|
194
199
|
table: t,
|
|
195
|
-
dataHook:
|
|
196
|
-
trackingEl:
|
|
197
|
-
trackingLabel:
|
|
198
|
-
isLoading:
|
|
199
|
-
skeletonRowCount:
|
|
200
|
-
noResultsMessage:
|
|
200
|
+
dataHook: n,
|
|
201
|
+
trackingEl: i,
|
|
202
|
+
trackingLabel: a,
|
|
203
|
+
isLoading: l = !1,
|
|
204
|
+
skeletonRowCount: o,
|
|
205
|
+
noResultsMessage: r = "No results.",
|
|
201
206
|
stickyHeader: c = !1,
|
|
202
207
|
className: d,
|
|
203
|
-
footer:
|
|
204
|
-
height:
|
|
205
|
-
estimateSize:
|
|
206
|
-
overscan:
|
|
208
|
+
footer: s,
|
|
209
|
+
height: u,
|
|
210
|
+
estimateSize: h = 48,
|
|
211
|
+
overscan: g = 5
|
|
207
212
|
}) {
|
|
208
|
-
const
|
|
209
|
-
count:
|
|
210
|
-
getScrollElement: () =>
|
|
211
|
-
estimateSize: () =>
|
|
212
|
-
overscan:
|
|
213
|
-
}),
|
|
213
|
+
const m = t.getVisibleLeafColumns().length, w = o ?? t.getState().pagination.pageSize ?? 10, P = p.useRef(null), R = t.getRowModel().rows, T = ce({
|
|
214
|
+
count: R.length,
|
|
215
|
+
getScrollElement: () => P.current,
|
|
216
|
+
estimateSize: () => h,
|
|
217
|
+
overscan: g
|
|
218
|
+
}), S = T.getVirtualItems(), $ = T.getTotalSize(), D = S.length > 0 ? S[0].start : 0, y = S.length > 0 ? $ - S[S.length - 1].end : 0;
|
|
214
219
|
return /* @__PURE__ */ e(
|
|
215
220
|
"div",
|
|
216
221
|
{
|
|
217
|
-
ref:
|
|
218
|
-
"aria-busy":
|
|
222
|
+
ref: P,
|
|
223
|
+
"aria-busy": l || void 0,
|
|
219
224
|
className: b("border-border overflow-auto rounded-md border", d),
|
|
220
|
-
"data-hook":
|
|
225
|
+
"data-hook": n,
|
|
221
226
|
"data-slot": "data-table-view",
|
|
222
|
-
"data-tracking-el":
|
|
223
|
-
"data-tracking-label":
|
|
224
|
-
style:
|
|
225
|
-
children: /* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */ e(
|
|
227
|
-
|
|
228
|
-
{
|
|
229
|
-
className: b(c && "bg-background sticky top-0 z-10"),
|
|
230
|
-
children: t.getHeaderGroups().map((R) => /* @__PURE__ */ e(k, { children: R.headers.map((p) => {
|
|
231
|
-
const I = p.column.getCanSort() ? p.column.getIsSorted() : !1, M = I === "asc" ? "ascending" : I === "desc" ? "descending" : p.column.getCanSort() ? "none" : void 0;
|
|
232
|
-
return /* @__PURE__ */ e(
|
|
233
|
-
G,
|
|
234
|
-
{
|
|
235
|
-
"aria-sort": M,
|
|
236
|
-
colSpan: p.colSpan,
|
|
237
|
-
children: p.isPlaceholder ? null : A(
|
|
238
|
-
p.column.columnDef.header,
|
|
239
|
-
p.getContext()
|
|
240
|
-
)
|
|
241
|
-
},
|
|
242
|
-
p.id
|
|
243
|
-
);
|
|
244
|
-
}) }, R.id))
|
|
245
|
-
}
|
|
246
|
-
),
|
|
247
|
-
/* @__PURE__ */ e(L, { children: o ? /* @__PURE__ */ S(D, { children: [
|
|
227
|
+
"data-tracking-el": i,
|
|
228
|
+
"data-tracking-label": a,
|
|
229
|
+
style: u != null ? { height: u } : void 0,
|
|
230
|
+
children: /* @__PURE__ */ f(V, { dataHook: `${n}-table`, children: [
|
|
231
|
+
/* @__PURE__ */ e(G, { stickyHeader: c, table: t }),
|
|
232
|
+
/* @__PURE__ */ e(j, { children: l ? /* @__PURE__ */ f(k, { children: [
|
|
248
233
|
/* @__PURE__ */ e(
|
|
249
|
-
|
|
234
|
+
B,
|
|
250
235
|
{
|
|
251
|
-
colCount:
|
|
236
|
+
colCount: m,
|
|
252
237
|
rowCount: w
|
|
253
238
|
}
|
|
254
239
|
),
|
|
255
|
-
/* @__PURE__ */ e(
|
|
256
|
-
] }) :
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
const
|
|
260
|
-
return /* @__PURE__ */ e(
|
|
240
|
+
/* @__PURE__ */ e(C, { className: "sr-only", children: /* @__PURE__ */ e(x, { colSpan: m, children: /* @__PURE__ */ e("div", { "aria-live": "polite", role: "status", children: "Loading data…" }) }) })
|
|
241
|
+
] }) : R.length > 0 ? /* @__PURE__ */ f(k, { children: [
|
|
242
|
+
D > 0 && /* @__PURE__ */ e("tr", { "aria-hidden": "true", children: /* @__PURE__ */ e("td", { colSpan: m, style: { height: D } }) }),
|
|
243
|
+
S.map((I) => {
|
|
244
|
+
const N = R[I.index];
|
|
245
|
+
return /* @__PURE__ */ e(L, { row: N }, N.id);
|
|
261
246
|
}),
|
|
262
|
-
|
|
263
|
-
] }) : /* @__PURE__ */ e(
|
|
264
|
-
|
|
247
|
+
y > 0 && /* @__PURE__ */ e("tr", { "aria-hidden": "true", children: /* @__PURE__ */ e("td", { colSpan: m, style: { height: y } }) })
|
|
248
|
+
] }) : /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(x, { colSpan: m, children: /* @__PURE__ */ e("div", { "aria-live": "polite", role: "status", children: r }) }) }) }),
|
|
249
|
+
s
|
|
265
250
|
] })
|
|
266
251
|
}
|
|
267
252
|
);
|
|
268
253
|
}
|
|
269
|
-
|
|
270
|
-
function
|
|
254
|
+
Ie.displayName = "VirtualizedDataTable";
|
|
255
|
+
function Me({
|
|
271
256
|
column: t,
|
|
272
|
-
title:
|
|
273
|
-
className:
|
|
274
|
-
dataHook:
|
|
275
|
-
trackingEl:
|
|
276
|
-
trackingLabel:
|
|
277
|
-
align:
|
|
257
|
+
title: n,
|
|
258
|
+
className: i,
|
|
259
|
+
dataHook: a,
|
|
260
|
+
trackingEl: l,
|
|
261
|
+
trackingLabel: o,
|
|
262
|
+
align: r = "left"
|
|
278
263
|
}) {
|
|
279
264
|
if (!t.getCanSort())
|
|
280
265
|
return /* @__PURE__ */ e(
|
|
@@ -282,47 +267,47 @@ function De({
|
|
|
282
267
|
{
|
|
283
268
|
className: b(
|
|
284
269
|
"text-muted-foreground text-left text-sm leading-normal font-medium",
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
270
|
+
r === "right" && "text-right",
|
|
271
|
+
r === "center" && "text-center",
|
|
272
|
+
i
|
|
288
273
|
),
|
|
289
|
-
"data-hook":
|
|
274
|
+
"data-hook": a,
|
|
290
275
|
"data-slot": "data-table-column-header",
|
|
291
|
-
"data-tracking-el":
|
|
292
|
-
"data-tracking-label":
|
|
293
|
-
children:
|
|
276
|
+
"data-tracking-el": l,
|
|
277
|
+
"data-tracking-label": o,
|
|
278
|
+
children: n
|
|
294
279
|
}
|
|
295
280
|
);
|
|
296
|
-
const c = t.getIsSorted(), d = c === "desc" ? `Sort by ${
|
|
281
|
+
const c = t.getIsSorted(), d = c === "desc" ? `Sort by ${n}, currently descending` : c === "asc" ? `Sort by ${n}, currently ascending` : `Sort by ${n}`;
|
|
297
282
|
return /* @__PURE__ */ e(
|
|
298
283
|
"div",
|
|
299
284
|
{
|
|
300
285
|
className: b(
|
|
301
286
|
"flex items-center",
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
287
|
+
r === "right" && "justify-end",
|
|
288
|
+
r === "center" && "justify-center",
|
|
289
|
+
i
|
|
305
290
|
),
|
|
306
291
|
"data-slot": "data-table-column-header",
|
|
307
|
-
"data-tracking-el":
|
|
308
|
-
"data-tracking-label":
|
|
309
|
-
children: /* @__PURE__ */
|
|
310
|
-
|
|
292
|
+
"data-tracking-el": l,
|
|
293
|
+
"data-tracking-label": o,
|
|
294
|
+
children: /* @__PURE__ */ f(
|
|
295
|
+
F,
|
|
311
296
|
{
|
|
312
297
|
"aria-label": d,
|
|
313
298
|
className: "text-muted-foreground h-auto p-0 text-sm font-medium",
|
|
314
|
-
dataHook:
|
|
299
|
+
dataHook: a || `column-header-${t.id}`,
|
|
315
300
|
size: "sm",
|
|
316
301
|
variant: "ghost",
|
|
317
302
|
onClick: () => t.toggleSorting(c === "asc"),
|
|
318
303
|
children: [
|
|
319
|
-
/* @__PURE__ */ e("span", { "aria-hidden": "true", children:
|
|
304
|
+
/* @__PURE__ */ e("span", { "aria-hidden": "true", children: n }),
|
|
320
305
|
/* @__PURE__ */ e(
|
|
321
306
|
"span",
|
|
322
307
|
{
|
|
323
308
|
"aria-hidden": "true",
|
|
324
309
|
className: "flex size-3 items-center justify-center",
|
|
325
|
-
children: c === "desc" ? /* @__PURE__ */ e(
|
|
310
|
+
children: c === "desc" ? /* @__PURE__ */ e(de, { size: 12 }) : c === "asc" ? /* @__PURE__ */ e(ue, { size: 12 }) : /* @__PURE__ */ e(ge, { size: 12 })
|
|
326
311
|
}
|
|
327
312
|
)
|
|
328
313
|
]
|
|
@@ -331,235 +316,289 @@ function De({
|
|
|
331
316
|
}
|
|
332
317
|
);
|
|
333
318
|
}
|
|
334
|
-
|
|
335
|
-
function
|
|
319
|
+
Me.displayName = "DataTableColumnHeader";
|
|
320
|
+
function Fe({
|
|
336
321
|
row: t,
|
|
337
|
-
dataHook:
|
|
338
|
-
trackingEl:
|
|
339
|
-
trackingLabel:
|
|
340
|
-
ariaLabel:
|
|
341
|
-
children:
|
|
322
|
+
dataHook: n,
|
|
323
|
+
trackingEl: i,
|
|
324
|
+
trackingLabel: a,
|
|
325
|
+
ariaLabel: l = "Open row actions menu",
|
|
326
|
+
children: o
|
|
342
327
|
}) {
|
|
343
|
-
return /* @__PURE__ */
|
|
344
|
-
/* @__PURE__ */ e(
|
|
345
|
-
|
|
328
|
+
return /* @__PURE__ */ f(fe, { children: [
|
|
329
|
+
/* @__PURE__ */ e(be, { asChild: !0, "data-slot": "data-table-row-actions", children: /* @__PURE__ */ e(
|
|
330
|
+
F,
|
|
346
331
|
{
|
|
347
|
-
"aria-label":
|
|
348
|
-
dataHook:
|
|
332
|
+
"aria-label": l,
|
|
333
|
+
dataHook: n || `row-actions-${t.id}`,
|
|
349
334
|
size: "sm",
|
|
350
|
-
trackingEl:
|
|
351
|
-
trackingLabel:
|
|
335
|
+
trackingEl: i,
|
|
336
|
+
trackingLabel: a,
|
|
352
337
|
variant: "ghost",
|
|
353
|
-
children: /* @__PURE__ */ e(
|
|
338
|
+
children: /* @__PURE__ */ e(pe, {})
|
|
354
339
|
}
|
|
355
340
|
) }),
|
|
356
341
|
/* @__PURE__ */ e(
|
|
357
|
-
|
|
342
|
+
Se,
|
|
358
343
|
{
|
|
359
344
|
align: "end",
|
|
360
|
-
dataHook:
|
|
361
|
-
children:
|
|
345
|
+
dataHook: n ? `${n}-menu` : `row-actions-${t.id}-menu`,
|
|
346
|
+
children: o
|
|
362
347
|
}
|
|
363
348
|
)
|
|
364
349
|
] });
|
|
365
350
|
}
|
|
366
|
-
|
|
367
|
-
function
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
children: o
|
|
351
|
+
Fe.displayName = "DataTableRowActions";
|
|
352
|
+
function Ae({
|
|
353
|
+
table: t,
|
|
354
|
+
ariaLabel: n = "Search table",
|
|
355
|
+
placeholder: i = "Search...",
|
|
356
|
+
...a
|
|
373
357
|
}) {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
358
|
+
const l = t.getState().globalFilter ?? "", o = (r) => {
|
|
359
|
+
t.setGlobalFilter(r);
|
|
360
|
+
};
|
|
361
|
+
return /* @__PURE__ */ f(we, { "data-slot": "data-table-search", ...a, children: [
|
|
362
|
+
/* @__PURE__ */ e(A, { className: "pl-3", children: /* @__PURE__ */ e(he, {}) }),
|
|
363
|
+
/* @__PURE__ */ e(
|
|
364
|
+
Ce,
|
|
365
|
+
{
|
|
366
|
+
"aria-label": n,
|
|
367
|
+
placeholder: i,
|
|
368
|
+
type: "text",
|
|
369
|
+
value: l,
|
|
370
|
+
onChange: (r) => o(r.target.value)
|
|
371
|
+
}
|
|
372
|
+
),
|
|
373
|
+
l && /* @__PURE__ */ e(A, { className: "pr-1", children: /* @__PURE__ */ e(
|
|
374
|
+
F,
|
|
375
|
+
{
|
|
376
|
+
"aria-label": "Clear search",
|
|
377
|
+
className: "h-auto p-1",
|
|
378
|
+
"data-slot": "data-table-search-clear",
|
|
379
|
+
dataHook: `${a.dataHook}-clear`,
|
|
380
|
+
variant: "ghost",
|
|
381
|
+
onClick: () => o(""),
|
|
382
|
+
children: /* @__PURE__ */ e(me, { size: 14 })
|
|
383
|
+
}
|
|
384
|
+
) })
|
|
385
|
+
] });
|
|
386
|
+
}
|
|
387
|
+
Ae.displayName = "DataTableSearch";
|
|
388
|
+
function He(t) {
|
|
389
|
+
const { pageIndex: n, pageSize: i } = t.getState().pagination, a = t.getRowCount(), l = t.getPageCount(), o = t.getCanPreviousPage(), r = t.getCanNextPage(), c = n + 1, d = a === 0 ? 0 : n * i + 1, s = Math.min(c * i, a), u = p.useCallback(
|
|
390
|
+
(w) => t.setPageIndex(w - 1),
|
|
391
|
+
[t]
|
|
392
|
+
), h = p.useCallback(() => t.nextPage(), [t]), g = p.useCallback(() => t.previousPage(), [t]), m = p.useCallback(
|
|
393
|
+
(w) => t.setPageSize(w),
|
|
394
|
+
[t]
|
|
395
|
+
);
|
|
396
|
+
return p.useMemo(
|
|
397
|
+
() => ({
|
|
398
|
+
pageIndex: n,
|
|
399
|
+
pageSize: i,
|
|
400
|
+
totalRows: a,
|
|
401
|
+
totalPages: l,
|
|
402
|
+
startRow: d,
|
|
403
|
+
endRow: s,
|
|
404
|
+
currentPage: c,
|
|
405
|
+
canPrev: o,
|
|
406
|
+
canNext: r,
|
|
407
|
+
goToPage: u,
|
|
408
|
+
nextPage: h,
|
|
409
|
+
previousPage: g,
|
|
410
|
+
setPageSize: m
|
|
411
|
+
}),
|
|
412
|
+
[
|
|
413
|
+
n,
|
|
414
|
+
i,
|
|
415
|
+
a,
|
|
416
|
+
l,
|
|
417
|
+
d,
|
|
418
|
+
s,
|
|
419
|
+
c,
|
|
420
|
+
o,
|
|
421
|
+
r,
|
|
422
|
+
u,
|
|
423
|
+
h,
|
|
424
|
+
g,
|
|
425
|
+
m
|
|
426
|
+
]
|
|
384
427
|
);
|
|
385
428
|
}
|
|
386
|
-
|
|
387
|
-
function
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
429
|
+
const M = p.createContext(null);
|
|
430
|
+
function U() {
|
|
431
|
+
const t = p.useContext(M);
|
|
432
|
+
if (!t)
|
|
433
|
+
throw new Error(
|
|
434
|
+
"DataTablePagination sub-components must be used within <DataTablePagination>"
|
|
435
|
+
);
|
|
436
|
+
return t;
|
|
437
|
+
}
|
|
438
|
+
function Ee({
|
|
439
|
+
renderText: t,
|
|
440
|
+
className: n
|
|
393
441
|
}) {
|
|
394
|
-
|
|
395
|
-
|
|
442
|
+
const { info: i } = U(), { startRow: a, endRow: l, totalRows: o, pageIndex: r, pageSize: c } = i, d = t ? t({ startRow: a, endRow: l, totalRows: o, pageIndex: r, pageSize: c }) : o === 0 ? null : `${a}-${l} of ${o}`;
|
|
443
|
+
return d == null ? null : /* @__PURE__ */ e(
|
|
444
|
+
"span",
|
|
396
445
|
{
|
|
397
|
-
className: b("
|
|
398
|
-
"data-
|
|
399
|
-
|
|
400
|
-
"data-tracking-el": a,
|
|
401
|
-
"data-tracking-label": l,
|
|
402
|
-
children: o
|
|
446
|
+
className: b("text-muted-foreground text-sm", n),
|
|
447
|
+
"data-slot": "data-table-pagination-row-count",
|
|
448
|
+
children: d
|
|
403
449
|
}
|
|
404
450
|
);
|
|
405
451
|
}
|
|
406
|
-
|
|
407
|
-
function
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
className: n,
|
|
412
|
-
children: o
|
|
452
|
+
Ee.displayName = "DataTablePaginationRowCount";
|
|
453
|
+
function _({
|
|
454
|
+
ariaLabel: t = "Table pagination",
|
|
455
|
+
dataHook: n,
|
|
456
|
+
className: i
|
|
413
457
|
}) {
|
|
458
|
+
const { info: a } = U(), l = xe({
|
|
459
|
+
page: a.currentPage,
|
|
460
|
+
totalPages: a.totalPages,
|
|
461
|
+
siblingCount: 1,
|
|
462
|
+
boundaryCount: 1
|
|
463
|
+
});
|
|
414
464
|
return /* @__PURE__ */ e(
|
|
415
|
-
|
|
465
|
+
Pe,
|
|
416
466
|
{
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
),
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
467
|
+
ariaLabel: t,
|
|
468
|
+
className: b("mx-0 w-auto justify-end", i),
|
|
469
|
+
dataHook: n ?? "pagination-nav",
|
|
470
|
+
children: /* @__PURE__ */ e(Re, { children: l.map((o, r) => o === "previous" ? /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
|
|
471
|
+
ve,
|
|
472
|
+
{
|
|
473
|
+
disabled: !a.canPrev,
|
|
474
|
+
onClick: () => a.previousPage()
|
|
475
|
+
}
|
|
476
|
+
) }, "previous") : o === "next" ? /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
|
|
477
|
+
ke,
|
|
478
|
+
{
|
|
479
|
+
disabled: !a.canNext,
|
|
480
|
+
onClick: () => a.nextPage()
|
|
481
|
+
}
|
|
482
|
+
) }, "next") : o === "ellipsis" ? /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(Te, {}) }, `ellipsis-${r}`) : /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
|
|
483
|
+
De,
|
|
484
|
+
{
|
|
485
|
+
isActive: o === a.currentPage,
|
|
486
|
+
page: o,
|
|
487
|
+
onClick: () => a.goToPage(o)
|
|
488
|
+
}
|
|
489
|
+
) }, o)) })
|
|
426
490
|
}
|
|
427
491
|
);
|
|
428
492
|
}
|
|
429
|
-
|
|
430
|
-
function
|
|
493
|
+
_.displayName = "DataTablePaginationNav";
|
|
494
|
+
function Ve({
|
|
431
495
|
table: t,
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
496
|
+
dataHook: n,
|
|
497
|
+
showRowCount: i = !0,
|
|
498
|
+
renderRowCount: a,
|
|
499
|
+
trackingEl: l,
|
|
500
|
+
trackingLabel: o,
|
|
501
|
+
className: r,
|
|
502
|
+
ariaLabel: c = "Table pagination",
|
|
503
|
+
children: d
|
|
435
504
|
}) {
|
|
436
|
-
const
|
|
437
|
-
|
|
505
|
+
const s = He(t), u = p.useMemo(
|
|
506
|
+
() => ({ info: s }),
|
|
507
|
+
[s]
|
|
508
|
+
), h = {
|
|
509
|
+
"data-hook": n,
|
|
510
|
+
"data-slot": "data-table-pagination",
|
|
511
|
+
"data-tracking-el": l,
|
|
512
|
+
"data-tracking-label": o
|
|
438
513
|
};
|
|
439
|
-
|
|
440
|
-
/* @__PURE__ */ e(
|
|
441
|
-
|
|
514
|
+
if (d)
|
|
515
|
+
return /* @__PURE__ */ e(M.Provider, { value: u, children: /* @__PURE__ */ e(
|
|
516
|
+
"div",
|
|
442
517
|
{
|
|
443
|
-
"
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
value: o,
|
|
447
|
-
onChange: (i) => r(i.target.value)
|
|
518
|
+
className: b("flex items-center gap-4", r),
|
|
519
|
+
...h,
|
|
520
|
+
children: d
|
|
448
521
|
}
|
|
449
|
-
)
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
trackingLabel: n,
|
|
459
|
-
className: o,
|
|
460
|
-
ariaLabel: r = "Table pagination"
|
|
461
|
-
}) {
|
|
462
|
-
const { pageIndex: i, pageSize: c } = t.getState().pagination, d = t.getRowCount(), h = t.getPageCount(), g = t.getCanPreviousPage(), C = t.getCanNextPage(), u = i + 1, s = d === 0 ? 0 : i * c + 1, w = Math.min(u * c, d), f = Se({
|
|
463
|
-
page: u,
|
|
464
|
-
totalPages: h,
|
|
465
|
-
siblingCount: 1,
|
|
466
|
-
boundaryCount: 1
|
|
467
|
-
});
|
|
468
|
-
return /* @__PURE__ */ S(
|
|
522
|
+
) });
|
|
523
|
+
const g = !i || a === null ? null : a ? a({
|
|
524
|
+
startRow: s.startRow,
|
|
525
|
+
endRow: s.endRow,
|
|
526
|
+
totalRows: s.totalRows,
|
|
527
|
+
pageIndex: s.pageIndex,
|
|
528
|
+
pageSize: s.pageSize
|
|
529
|
+
}) : s.totalRows === 0 ? null : `${s.startRow}-${s.endRow} of ${s.totalRows}`;
|
|
530
|
+
return /* @__PURE__ */ e(M.Provider, { value: u, children: /* @__PURE__ */ f(
|
|
469
531
|
"div",
|
|
470
532
|
{
|
|
471
|
-
className: b(
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
533
|
+
className: b(
|
|
534
|
+
"flex items-center gap-4",
|
|
535
|
+
g != null ? "justify-between" : "justify-end",
|
|
536
|
+
r
|
|
537
|
+
),
|
|
538
|
+
...h,
|
|
476
539
|
children: [
|
|
477
|
-
/* @__PURE__ */ e("span", { className: "text-muted-foreground text-sm", children:
|
|
540
|
+
g != null && /* @__PURE__ */ e("span", { className: "text-muted-foreground text-sm", children: g }),
|
|
478
541
|
/* @__PURE__ */ e(
|
|
479
|
-
|
|
542
|
+
_,
|
|
480
543
|
{
|
|
481
|
-
ariaLabel:
|
|
482
|
-
|
|
483
|
-
dataHook: `${a}-nav`,
|
|
484
|
-
children: /* @__PURE__ */ e(we, { children: f.map((m, v) => m === "previous" ? /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(
|
|
485
|
-
xe,
|
|
486
|
-
{
|
|
487
|
-
disabled: !g,
|
|
488
|
-
onClick: () => t.previousPage()
|
|
489
|
-
}
|
|
490
|
-
) }, "previous") : m === "next" ? /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(
|
|
491
|
-
ke,
|
|
492
|
-
{
|
|
493
|
-
disabled: !C,
|
|
494
|
-
onClick: () => t.nextPage()
|
|
495
|
-
}
|
|
496
|
-
) }, "next") : m === "ellipsis" ? /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(ve, {}) }, `ellipsis-${v}`) : /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(
|
|
497
|
-
Re,
|
|
498
|
-
{
|
|
499
|
-
isActive: m === u,
|
|
500
|
-
page: m,
|
|
501
|
-
onClick: () => t.setPageIndex(m - 1)
|
|
502
|
-
}
|
|
503
|
-
) }, m)) })
|
|
544
|
+
ariaLabel: c,
|
|
545
|
+
dataHook: `${n}-nav`
|
|
504
546
|
}
|
|
505
547
|
)
|
|
506
548
|
]
|
|
507
549
|
}
|
|
508
|
-
);
|
|
550
|
+
) });
|
|
509
551
|
}
|
|
510
|
-
|
|
511
|
-
function
|
|
552
|
+
Ve.displayName = "DataTablePagination";
|
|
553
|
+
function je({
|
|
512
554
|
table: t,
|
|
513
|
-
dataHook:
|
|
514
|
-
trackingEl:
|
|
515
|
-
trackingLabel:
|
|
555
|
+
dataHook: n,
|
|
556
|
+
trackingEl: i,
|
|
557
|
+
trackingLabel: a
|
|
516
558
|
}) {
|
|
517
559
|
return /* @__PURE__ */ e(
|
|
518
|
-
|
|
560
|
+
E,
|
|
519
561
|
{
|
|
520
562
|
"aria-label": "Select all",
|
|
521
563
|
checked: t.getIsAllPageRowsSelected() || t.getIsSomePageRowsSelected() && "indeterminate",
|
|
522
|
-
dataHook:
|
|
523
|
-
trackingEl:
|
|
524
|
-
trackingLabel:
|
|
525
|
-
onCheckedChange: (
|
|
564
|
+
dataHook: n || "select-all-checkbox",
|
|
565
|
+
trackingEl: i,
|
|
566
|
+
trackingLabel: a,
|
|
567
|
+
onCheckedChange: (l) => t.toggleAllPageRowsSelected(!!l)
|
|
526
568
|
}
|
|
527
569
|
);
|
|
528
570
|
}
|
|
529
|
-
|
|
530
|
-
function
|
|
571
|
+
je.displayName = "DataTableSelectAllCheckbox";
|
|
572
|
+
function Ge({
|
|
531
573
|
row: t,
|
|
532
|
-
dataHook:
|
|
533
|
-
trackingEl:
|
|
534
|
-
trackingLabel:
|
|
574
|
+
dataHook: n,
|
|
575
|
+
trackingEl: i,
|
|
576
|
+
trackingLabel: a
|
|
535
577
|
}) {
|
|
536
578
|
return /* @__PURE__ */ e(
|
|
537
|
-
|
|
579
|
+
E,
|
|
538
580
|
{
|
|
539
581
|
"aria-label": "Select row",
|
|
540
582
|
checked: t.getIsSelected(),
|
|
541
|
-
dataHook:
|
|
583
|
+
dataHook: n || `select-row-${t.id}`,
|
|
542
584
|
disabled: !t.getCanSelect(),
|
|
543
|
-
trackingEl:
|
|
544
|
-
trackingLabel:
|
|
545
|
-
onCheckedChange: (
|
|
585
|
+
trackingEl: i,
|
|
586
|
+
trackingLabel: a,
|
|
587
|
+
onCheckedChange: (l) => t.toggleSelected(!!l)
|
|
546
588
|
}
|
|
547
589
|
);
|
|
548
590
|
}
|
|
549
|
-
|
|
591
|
+
Ge.displayName = "DataTableSelectRowCheckbox";
|
|
550
592
|
export {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
Ie as
|
|
561
|
-
|
|
562
|
-
Ye as createColumnHelper,
|
|
563
|
-
Ze as flexRender,
|
|
564
|
-
Qe as useDataTable
|
|
593
|
+
$e as DataTable,
|
|
594
|
+
Me as DataTableColumnHeader,
|
|
595
|
+
Ve as DataTablePagination,
|
|
596
|
+
_ as DataTablePaginationNav,
|
|
597
|
+
Ee as DataTablePaginationRowCount,
|
|
598
|
+
Fe as DataTableRowActions,
|
|
599
|
+
Ae as DataTableSearch,
|
|
600
|
+
je as DataTableSelectAllCheckbox,
|
|
601
|
+
Ge as DataTableSelectRowCheckbox,
|
|
602
|
+
Ie as VirtualizedDataTable,
|
|
603
|
+
Ze as useDataTable
|
|
565
604
|
};
|