@duro-app/ui 4.5.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Table-BkrgH0jb.js +1199 -0
- package/dist/Table-BkrgH0jb.js.map +1 -0
- package/dist/components/ActionBar/ActionBar.stories.d.ts.map +1 -1
- package/dist/components/ActionBar/styles.css.d.ts +7 -7
- package/dist/components/ActionBar/styles.css.d.ts.map +1 -1
- package/dist/components/Alert/styles.css.d.ts +2 -2
- package/dist/components/Alert/styles.css.d.ts.map +1 -1
- package/dist/components/Badge/styles.css.d.ts +2 -2
- package/dist/components/Button/styles.css.d.ts +5 -5
- package/dist/components/Button/styles.css.d.ts.map +1 -1
- package/dist/components/Callout/styles.css.d.ts +1 -1
- package/dist/components/Callout/styles.css.d.ts.map +1 -1
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Card/styles.css.d.ts +3 -3
- package/dist/components/Card/styles.css.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/styles.css.d.ts +7 -11
- package/dist/components/Checkbox/styles.css.d.ts.map +1 -1
- package/dist/components/Cluster/Cluster.stories.d.ts.map +1 -1
- package/dist/components/ColorInput/styles.css.d.ts +6 -6
- package/dist/components/ColorInput/styles.css.d.ts.map +1 -1
- package/dist/components/ColorMode/styles.css.d.ts +3 -3
- package/dist/components/ColorMode/styles.css.d.ts.map +1 -1
- package/dist/components/Combobox/styles.css.d.ts +3 -3
- package/dist/components/Combobox/styles.css.d.ts.map +1 -1
- package/dist/components/DetailPanel/DetailPanel.d.ts.map +1 -1
- package/dist/components/DetailPanel/DetailPanel.stories.d.ts.map +1 -1
- package/dist/components/DetailPanel/styles.css.d.ts +19 -10
- package/dist/components/DetailPanel/styles.css.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css.d.ts +18 -9
- package/dist/components/Dialog/styles.css.d.ts.map +1 -1
- package/dist/components/DragDrop/DragDrop.d.ts.map +1 -1
- package/dist/components/DragDrop/DragDrop.stories.d.ts.map +1 -1
- package/dist/components/DragDrop/styles.css.d.ts +0 -6
- package/dist/components/DragDrop/styles.css.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css.d.ts +19 -10
- package/dist/components/Drawer/styles.css.d.ts.map +1 -1
- package/dist/components/Field/Field.stories.d.ts.map +1 -1
- package/dist/components/Field/styles.css.d.ts +1 -1
- package/dist/components/Field/styles.css.d.ts.map +1 -1
- package/dist/components/Form/Form.stories.d.ts.map +1 -1
- package/dist/components/Grid/Grid.d.ts +6 -4
- package/dist/components/Grid/Grid.d.ts.map +1 -1
- package/dist/components/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/components/Grid/styles.css.d.ts +5 -5
- package/dist/components/Grid/styles.css.d.ts.map +1 -1
- package/dist/components/Input/Input.stories.d.ts.map +1 -1
- package/dist/components/Input/styles.css.d.ts +3 -3
- package/dist/components/Input/styles.css.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.d.ts +4 -2
- package/dist/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.stories.d.ts.map +1 -1
- package/dist/components/InputGroup/styles.css.d.ts +3 -3
- package/dist/components/InputGroup/styles.css.d.ts.map +1 -1
- package/dist/components/LinkButton/styles.css.d.ts +1 -1
- package/dist/components/LinkButton/styles.css.d.ts.map +1 -1
- package/dist/components/List/List.stories.d.ts.map +1 -1
- package/dist/components/List/styles.css.d.ts +3 -3
- package/dist/components/List/styles.css.d.ts.map +1 -1
- package/dist/components/Menu/styles.css.d.ts +4 -4
- package/dist/components/Menu/styles.css.d.ts.map +1 -1
- package/dist/components/PageShell/styles.css.d.ts +3 -3
- package/dist/components/PageShell/styles.css.d.ts.map +1 -1
- package/dist/components/Panel/styles.css.d.ts +3 -3
- package/dist/components/Panel/styles.css.d.ts.map +1 -1
- package/dist/components/Popover/Popover.stories.d.ts.map +1 -1
- package/dist/components/Popover/styles.css.d.ts +2 -2
- package/dist/components/Popover/styles.css.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup/styles.css.d.ts +5 -9
- package/dist/components/RadioGroup/styles.css.d.ts.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.d.ts +2 -1
- package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.stories.d.ts.map +1 -1
- package/dist/components/ScrollArea/styles.css.d.ts +8 -8
- package/dist/components/ScrollArea/styles.css.d.ts.map +1 -1
- package/dist/components/Select/styles.css.d.ts +4 -4
- package/dist/components/Select/styles.css.d.ts.map +1 -1
- package/dist/components/SideNav/styles.css.d.ts +7 -7
- package/dist/components/SideNav/styles.css.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner/styles.css.d.ts +10 -14
- package/dist/components/Spinner/styles.css.d.ts.map +1 -1
- package/dist/components/StatusIcon/StatusIcon.stories.d.ts.map +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/styles.css.d.ts +10 -14
- package/dist/components/Switch/styles.css.d.ts.map +1 -1
- package/dist/components/Table/ColumnFilter.d.ts.map +1 -1
- package/dist/components/Table/FromTanstack.d.ts +2 -1
- package/dist/components/Table/FromTanstack.d.ts.map +1 -1
- package/dist/components/Table/Pagination.d.ts.map +1 -1
- package/dist/components/Table/SortIndicator.d.ts.map +1 -1
- package/dist/components/Table/Table.d.ts +11 -9
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.stories.d.ts +1 -0
- package/dist/components/Table/Table.stories.d.ts.map +1 -1
- package/dist/components/Table/styles.css.d.ts +6 -6
- package/dist/components/Table/styles.css.d.ts.map +1 -1
- package/dist/components/Tabs/styles.css.d.ts +8 -8
- package/dist/components/Tabs/styles.css.d.ts.map +1 -1
- package/dist/components/Tag/Tag.stories.d.ts.map +1 -1
- package/dist/components/Tag/styles.css.d.ts +4 -4
- package/dist/components/Tag/styles.css.d.ts.map +1 -1
- package/dist/components/TagGroup/TagGroup.d.ts.map +1 -1
- package/dist/components/TagGroup/styles.css.d.ts +4 -10
- package/dist/components/TagGroup/styles.css.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.stories.d.ts.map +1 -1
- package/dist/components/Textarea/styles.css.d.ts +3 -3
- package/dist/components/Textarea/styles.css.d.ts.map +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts.map +1 -1
- package/dist/components/Toast/Toast.stories.d.ts.map +1 -1
- package/dist/components/Toast/styles.css.d.ts +12 -12
- package/dist/components/Toast/styles.css.d.ts.map +1 -1
- package/dist/components/Toggle/styles.css.d.ts +8 -8
- package/dist/components/Toggle/styles.css.d.ts.map +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts.map +1 -1
- package/dist/components/ToggleGroup/styles.css.d.ts +1 -1
- package/dist/components/ToggleGroup/styles.css.d.ts.map +1 -1
- package/dist/components/Tooltip/styles.css.d.ts +1 -1
- package/dist/components/Tooltip/styles.css.d.ts.map +1 -1
- package/dist/components/Tree/styles.css.d.ts +4 -4
- package/dist/components/Tree/styles.css.d.ts.map +1 -1
- package/dist/components/VirtualTable/VirtualTable.d.ts +2 -1
- package/dist/components/VirtualTable/VirtualTable.d.ts.map +1 -1
- package/dist/components/VirtualTable/VirtualTable.stories.d.ts.map +1 -1
- package/dist/components/VirtualTable/styles.css.d.ts +7 -7
- package/dist/components/VirtualTable/styles.css.d.ts.map +1 -1
- package/dist/docs/Spacing.stories.d.ts.map +1 -1
- package/dist/docs/Typography.stories.d.ts.map +1 -1
- package/dist/docs/helpers.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2833 -2828
- package/dist/index.js.map +1 -1
- package/dist/shared/length.d.ts +29 -0
- package/dist/shared/length.d.ts.map +1 -0
- package/dist/shared/length.typecheck.d.ts +31 -0
- package/dist/shared/length.typecheck.d.ts.map +1 -0
- package/dist/styles/visually-hidden.css.d.ts +10 -0
- package/dist/styles/visually-hidden.css.d.ts.map +1 -0
- package/dist/table.js +166 -166
- package/dist/table.js.map +1 -1
- package/package.json +2 -2
- package/src/components/ActionBar/ActionBar.stories.tsx +4 -2
- package/src/components/ActionBar/styles.css.ts +11 -9
- package/src/components/Alert/styles.css.ts +4 -3
- package/src/components/Badge/styles.css.ts +3 -3
- package/src/components/Button/styles.css.ts +8 -7
- package/src/components/Callout/styles.css.ts +2 -1
- package/src/components/Card/Card.stories.tsx +2 -1
- package/src/components/Card/styles.css.ts +4 -3
- package/src/components/Checkbox/Checkbox.tsx +2 -1
- package/src/components/Checkbox/styles.css.ts +10 -11
- package/src/components/Cluster/Cluster.stories.tsx +2 -1
- package/src/components/ColorInput/styles.css.ts +9 -7
- package/src/components/ColorMode/styles.css.ts +4 -3
- package/src/components/Combobox/styles.css.ts +5 -3
- package/src/components/DetailPanel/DetailPanel.stories.tsx +5 -3
- package/src/components/DetailPanel/DetailPanel.tsx +3 -0
- package/src/components/DetailPanel/styles.css.ts +17 -11
- package/src/components/Dialog/Dialog.stories.tsx +2 -1
- package/src/components/Dialog/Dialog.tsx +3 -0
- package/src/components/Dialog/styles.css.ts +14 -9
- package/src/components/DragDrop/DragDrop.stories.tsx +2 -1
- package/src/components/DragDrop/DragDrop.tsx +2 -1
- package/src/components/DragDrop/styles.css.ts +0 -7
- package/src/components/Drawer/Drawer.tsx +3 -0
- package/src/components/Drawer/DrawerScroll.stories.tsx +5 -5
- package/src/components/Drawer/styles.css.ts +15 -10
- package/src/components/Field/Field.stories.tsx +3 -2
- package/src/components/Field/styles.css.ts +2 -1
- package/src/components/Form/Form.stories.tsx +4 -3
- package/src/components/Grid/Grid.meta.ts +2 -2
- package/src/components/Grid/Grid.stories.tsx +3 -2
- package/src/components/Grid/Grid.tsx +8 -6
- package/src/components/Grid/styles.css.ts +5 -4
- package/src/components/Input/Input.stories.tsx +2 -1
- package/src/components/Input/styles.css.ts +4 -3
- package/src/components/InputGroup/InputGroup.stories.tsx +3 -2
- package/src/components/InputGroup/InputGroup.tsx +5 -3
- package/src/components/InputGroup/styles.css.ts +4 -3
- package/src/components/LinkButton/styles.css.ts +2 -1
- package/src/components/List/List.stories.tsx +4 -2
- package/src/components/List/styles.css.ts +6 -4
- package/src/components/Menu/styles.css.ts +6 -4
- package/src/components/PageShell/styles.css.ts +4 -3
- package/src/components/Panel/styles.css.ts +4 -3
- package/src/components/Popover/Popover.stories.tsx +6 -4
- package/src/components/Popover/styles.css.ts +3 -2
- package/src/components/RadioGroup/RadioGroup.tsx +2 -1
- package/src/components/RadioGroup/styles.css.ts +8 -9
- package/src/components/ScrollArea/ScrollArea.meta.ts +1 -1
- package/src/components/ScrollArea/ScrollArea.stories.tsx +7 -5
- package/src/components/ScrollArea/ScrollArea.tsx +7 -2
- package/src/components/ScrollArea/styles.css.ts +10 -9
- package/src/components/Select/styles.css.ts +6 -4
- package/src/components/SideNav/styles.css.ts +10 -8
- package/src/components/Spinner/Spinner.tsx +2 -1
- package/src/components/Spinner/styles.css.ts +14 -14
- package/src/components/StatusIcon/StatusIcon.stories.tsx +2 -2
- package/src/components/Switch/Switch.tsx +2 -1
- package/src/components/Switch/styles.css.ts +15 -15
- package/src/components/Table/ColumnFilter.tsx +5 -4
- package/src/components/Table/FromTanstack.tsx +2 -1
- package/src/components/Table/Pagination.tsx +6 -4
- package/src/components/Table/SortIndicator.tsx +4 -2
- package/src/components/Table/Table.stories.tsx +47 -8
- package/src/components/Table/Table.tsx +19 -15
- package/src/components/Table/styles.css.ts +9 -7
- package/src/components/Tabs/styles.css.ts +11 -9
- package/src/components/Tag/Tag.stories.tsx +4 -2
- package/src/components/Tag/styles.css.ts +6 -5
- package/src/components/TagGroup/TagGroup.tsx +2 -1
- package/src/components/TagGroup/styles.css.ts +6 -10
- package/src/components/Textarea/Textarea.stories.tsx +2 -1
- package/src/components/Textarea/styles.css.ts +4 -3
- package/src/components/ThemeProvider/ThemeProvider.stories.tsx +7 -5
- package/src/components/Toast/Toast.stories.tsx +2 -1
- package/src/components/Toast/styles.css.ts +16 -14
- package/src/components/Toggle/Toggle.meta.ts +1 -1
- package/src/components/Toggle/styles.css.ts +12 -10
- package/src/components/ToggleGroup/ToggleGroup.meta.ts +1 -1
- package/src/components/ToggleGroup/ToggleGroup.stories.tsx +7 -6
- package/src/components/ToggleGroup/styles.css.ts +7 -6
- package/src/components/Tooltip/styles.css.ts +2 -1
- package/src/components/Tree/styles.css.ts +8 -6
- package/src/components/VirtualTable/VirtualTable.stories.tsx +4 -3
- package/src/components/VirtualTable/VirtualTable.tsx +5 -3
- package/src/components/VirtualTable/styles.css.ts +9 -8
- package/src/docs/Spacing.stories.tsx +11 -10
- package/src/docs/Typography.stories.tsx +8 -6
- package/src/docs/helpers.tsx +3 -2
- package/src/shared/length.ts +70 -0
- package/src/shared/length.typecheck.tsx +56 -0
- package/src/styles/visually-hidden.css.ts +16 -0
- package/dist/Table-CUp12BKZ.js +0 -1099
- package/dist/Table-CUp12BKZ.js.map +0 -1
- package/dist/components/Toggle/rowHeight.d.ts +0 -17
- package/dist/components/Toggle/rowHeight.d.ts.map +0 -1
- package/src/components/Toggle/rowHeight.ts +0 -12
package/dist/table.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { M as F,
|
|
2
|
-
import { jsx as u, jsxs as
|
|
1
|
+
import { M as F, a as xt, R as rt, H as kt, c as pt, B as bt, d as ft, C as mt, b as ht, e as yt, r as St, f as Tt } from "./Table-BkrgH0jb.js";
|
|
2
|
+
import { jsx as u, jsxs as q } from "react/jsx-runtime";
|
|
3
3
|
import { c as H, m as p, d as b } from "./compiler-runtime-B2IcI8_O.js";
|
|
4
|
-
import { flexRender as E, useReactTable as it, getPaginationRowModel as
|
|
5
|
-
import { useState as G, useCallback as
|
|
6
|
-
import { useVirtualizer as
|
|
7
|
-
const
|
|
4
|
+
import { flexRender as E, useReactTable as it, getPaginationRowModel as Ct, getFilteredRowModel as vt, getSortedRowModel as at, getCoreRowModel as st } from "@tanstack/react-table";
|
|
5
|
+
import { useState as G, useCallback as wt, useRef as K, useEffect as Z, useLayoutEffect as Vt } from "react";
|
|
6
|
+
import { useVirtualizer as $t } from "@tanstack/react-virtual";
|
|
7
|
+
const A = {
|
|
8
8
|
root: {
|
|
9
9
|
"display-k1xSpc": "display-x78zum5",
|
|
10
10
|
"alignItems-kGNEyG": "alignItems-x6s0dn4",
|
|
@@ -12,7 +12,7 @@ const q = {
|
|
|
12
12
|
"gap-kOIVth": "gap-x175yhtj",
|
|
13
13
|
"paddingTop-kLKAdn": "paddingTop-x5882n6",
|
|
14
14
|
"paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
|
|
15
|
-
$$css: "Table/Pagination.tsx:
|
|
15
|
+
$$css: "Table/Pagination.tsx:11"
|
|
16
16
|
},
|
|
17
17
|
button: {
|
|
18
18
|
"display-k1xSpc": "display-x3nfvp2",
|
|
@@ -22,28 +22,28 @@ const q = {
|
|
|
22
22
|
"paddingBottom-kGO01o": "paddingBottom-x6sojwk",
|
|
23
23
|
"paddingLeft-kE3dHu": "paddingLeft-x6xq64o",
|
|
24
24
|
"paddingRight-kpe85a": "paddingRight-xpkaq21",
|
|
25
|
-
"borderWidth-kMzoRj": "borderWidth-
|
|
25
|
+
"borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
|
|
26
26
|
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
27
27
|
"borderColor-kVAM5u": "borderColor-x15ykms2",
|
|
28
|
-
"borderRadius-kaIpWk": "borderRadius-
|
|
28
|
+
"borderRadius-kaIpWk": "borderRadius-xujdv1e",
|
|
29
29
|
"backgroundColor-kWkggS": "backgroundColor-xjbqb8w backgroundColor-x14zl4n5",
|
|
30
30
|
"color-kMwMTN": "color-x95150z",
|
|
31
31
|
"fontSize-kGuDYH": "fontSize-x1tzajr0",
|
|
32
32
|
"cursor-kkrTdU": "cursor-x1ypdohk",
|
|
33
33
|
"transitionProperty-k1ekBW": "transitionProperty-x15406qy",
|
|
34
|
-
"transitionDuration-kIyJzY": "transitionDuration-
|
|
35
|
-
$$css: "Table/Pagination.tsx:
|
|
34
|
+
"transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
|
|
35
|
+
$$css: "Table/Pagination.tsx:19"
|
|
36
36
|
},
|
|
37
37
|
buttonDisabled: {
|
|
38
38
|
"opacity-kSiTet": "opacity-xti2d7y",
|
|
39
39
|
"cursor-kkrTdU": "cursor-x1h6gzvc",
|
|
40
40
|
"backgroundColor-kWkggS": "backgroundColor-xjbqb8w",
|
|
41
|
-
$$css: "Table/Pagination.tsx:
|
|
41
|
+
$$css: "Table/Pagination.tsx:41"
|
|
42
42
|
},
|
|
43
43
|
pageInfo: {
|
|
44
44
|
"fontSize-kGuDYH": "fontSize-x1tzajr0",
|
|
45
45
|
"color-kMwMTN": "color-x4opovt",
|
|
46
|
-
$$css: "Table/Pagination.tsx:
|
|
46
|
+
$$css: "Table/Pagination.tsx:46"
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
function dt(o) {
|
|
@@ -62,60 +62,60 @@ function dt(o) {
|
|
|
62
62
|
if (e.getFilteredRowModel().rows.length <= r)
|
|
63
63
|
return null;
|
|
64
64
|
let k;
|
|
65
|
-
t[4] !== e ? (k = !e.getCanPreviousPage() &&
|
|
65
|
+
t[4] !== e ? (k = !e.getCanPreviousPage() && A.buttonDisabled, t[4] = e, t[5] = k) : k = t[5];
|
|
66
66
|
let c;
|
|
67
|
-
t[6] !== k ? (c = [
|
|
67
|
+
t[6] !== k ? (c = [A.button, k], t[6] = k, t[7] = c) : c = t[7];
|
|
68
68
|
let x, y;
|
|
69
69
|
t[8] !== e ? (x = () => e.previousPage(), y = e.getCanPreviousPage(), t[8] = e, t[9] = x, t[10] = y) : (x = t[9], y = t[10]);
|
|
70
70
|
const T = !y;
|
|
71
|
-
let
|
|
72
|
-
t[11] !== c || t[12] !== x || t[13] !== T ? (
|
|
73
|
-
const
|
|
71
|
+
let f;
|
|
72
|
+
t[11] !== c || t[12] !== x || t[13] !== T ? (f = /* @__PURE__ */ u("button", { "data-element-src": "Table/Pagination.tsx:65", ...p(b.button, c), onClick: x, disabled: T, type: "button", children: "Previous" }), t[11] = c, t[12] = x, t[13] = T, t[14] = f) : f = t[14];
|
|
73
|
+
const m = l + 1;
|
|
74
74
|
let S;
|
|
75
|
-
t[15] !== s || t[16] !==
|
|
76
|
-
|
|
75
|
+
t[15] !== s || t[16] !== m ? (S = /* @__PURE__ */ q("span", { "data-element-src": "Table/Pagination.tsx:72", ...p(b.span, A.pageInfo), children: [
|
|
76
|
+
m,
|
|
77
77
|
" / ",
|
|
78
78
|
s
|
|
79
|
-
] }), t[15] = s, t[16] =
|
|
79
|
+
] }), t[15] = s, t[16] = m, t[17] = S) : S = t[17];
|
|
80
80
|
let h;
|
|
81
|
-
t[18] !== e ? (h = !e.getCanNextPage() &&
|
|
81
|
+
t[18] !== e ? (h = !e.getCanNextPage() && A.buttonDisabled, t[18] = e, t[19] = h) : h = t[19];
|
|
82
82
|
let V;
|
|
83
|
-
t[20] !== h ? (V = [
|
|
84
|
-
let
|
|
85
|
-
t[22] !== e ? (
|
|
83
|
+
t[20] !== h ? (V = [A.button, h], t[20] = h, t[21] = V) : V = t[21];
|
|
84
|
+
let v, M;
|
|
85
|
+
t[22] !== e ? (v = () => e.nextPage(), M = e.getCanNextPage(), t[22] = e, t[23] = v, t[24] = M) : (v = t[23], M = t[24]);
|
|
86
86
|
const $ = !M;
|
|
87
87
|
let a;
|
|
88
|
-
t[25] !== V || t[26] !==
|
|
88
|
+
t[25] !== V || t[26] !== v || t[27] !== $ ? (a = /* @__PURE__ */ u("button", { "data-element-src": "Table/Pagination.tsx:75", ...p(b.button, V), onClick: v, disabled: $, type: "button", children: "Next" }), t[25] = V, t[26] = v, t[27] = $, t[28] = a) : a = t[28];
|
|
89
89
|
let R;
|
|
90
|
-
return t[29] !== S || t[30] !== a || t[31] !==
|
|
91
|
-
|
|
90
|
+
return t[29] !== S || t[30] !== a || t[31] !== f ? (R = /* @__PURE__ */ q("div", { "data-element-src": "Table/Pagination.tsx:64", ...p(b.div, A.root), children: [
|
|
91
|
+
f,
|
|
92
92
|
S,
|
|
93
93
|
a
|
|
94
|
-
] }), t[29] = S, t[30] = a, t[31] =
|
|
94
|
+
] }), t[29] = S, t[30] = a, t[31] = f, t[32] = R) : R = t[32], R;
|
|
95
95
|
}
|
|
96
96
|
const _ = {
|
|
97
97
|
root: {
|
|
98
98
|
"display-k1xSpc": "display-x3nfvp2",
|
|
99
99
|
"alignItems-kGNEyG": "alignItems-x6s0dn4",
|
|
100
|
-
"marginLeft-koQZXg": "marginLeft-
|
|
100
|
+
"marginLeft-koQZXg": "marginLeft-xfm9slh",
|
|
101
101
|
"fontSize-kGuDYH": "fontSize-x1k6wstc",
|
|
102
102
|
"userSelect-kfSwDN": "userSelect-x87ps6o",
|
|
103
103
|
"opacity-kSiTet": "opacity-xg01cxk",
|
|
104
104
|
"transitionProperty-k1ekBW": "transitionProperty-x19991ni",
|
|
105
|
-
"transitionDuration-kIyJzY": "transitionDuration-
|
|
106
|
-
$$css: "Table/SortIndicator.tsx:
|
|
105
|
+
"transitionDuration-kIyJzY": "transitionDuration-x1b0ou7r",
|
|
106
|
+
$$css: "Table/SortIndicator.tsx:9"
|
|
107
107
|
},
|
|
108
108
|
active: {
|
|
109
109
|
"opacity-kSiTet": "opacity-x1hc1fzr",
|
|
110
110
|
"color-kMwMTN": "color-xf715ks",
|
|
111
|
-
$$css: "Table/SortIndicator.tsx:
|
|
111
|
+
$$css: "Table/SortIndicator.tsx:20"
|
|
112
112
|
},
|
|
113
113
|
inactive: {
|
|
114
114
|
"color-kMwMTN": "color-x4opovt",
|
|
115
|
-
$$css: "Table/SortIndicator.tsx:
|
|
115
|
+
$$css: "Table/SortIndicator.tsx:24"
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
function
|
|
118
|
+
function zt(o) {
|
|
119
119
|
const t = H.c(5), {
|
|
120
120
|
column: e
|
|
121
121
|
} = o;
|
|
@@ -126,17 +126,17 @@ function Vt(o) {
|
|
|
126
126
|
t[0] !== l ? (r = [_.root, l], t[0] = l, t[1] = r) : r = t[1];
|
|
127
127
|
const i = n === "asc" ? "▲" : n === "desc" ? "▼" : "⇅";
|
|
128
128
|
let s;
|
|
129
|
-
return t[2] !== r || t[3] !== i ? (s = /* @__PURE__ */ u("span", { "data-element-src": "Table/SortIndicator.tsx:
|
|
129
|
+
return t[2] !== r || t[3] !== i ? (s = /* @__PURE__ */ u("span", { "data-element-src": "Table/SortIndicator.tsx:48", ...p(b.span, r), "data-sort-indicator": "", children: i }), t[2] = r, t[3] = i, t[4] = s) : s = t[4], s;
|
|
130
130
|
}
|
|
131
|
-
const
|
|
131
|
+
const Mt = {
|
|
132
132
|
input: {
|
|
133
133
|
"width-kzqmXN": "width-xh8yej3",
|
|
134
|
-
"paddingTop-kLKAdn": "paddingTop-
|
|
135
|
-
"paddingBottom-kGO01o": "paddingBottom-
|
|
134
|
+
"paddingTop-kLKAdn": "paddingTop-x1k1w781",
|
|
135
|
+
"paddingBottom-kGO01o": "paddingBottom-x9g41n",
|
|
136
136
|
"paddingLeft-kE3dHu": "paddingLeft-xzmizx3",
|
|
137
137
|
"paddingRight-kpe85a": "paddingRight-x7ulw7g",
|
|
138
138
|
"marginTop-keoZOQ": "marginTop-xuerg7n",
|
|
139
|
-
"borderWidth-kMzoRj": "borderWidth-
|
|
139
|
+
"borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
|
|
140
140
|
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
141
141
|
"borderColor-kVAM5u": "borderColor-x15ykms2",
|
|
142
142
|
"borderRadius-kaIpWk": "borderRadius-xwi0hqr",
|
|
@@ -144,10 +144,10 @@ const $t = {
|
|
|
144
144
|
"color-kMwMTN": "color-x95150z",
|
|
145
145
|
"fontSize-kGuDYH": "fontSize-x1f81oxx",
|
|
146
146
|
"outline-kI3sdo": "outline-x1a2a7pz",
|
|
147
|
-
$$css: "Table/ColumnFilter.tsx:
|
|
147
|
+
$$css: "Table/ColumnFilter.tsx:10"
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
|
-
function
|
|
150
|
+
function Rt(o) {
|
|
151
151
|
const t = H.c(8), {
|
|
152
152
|
column: e,
|
|
153
153
|
placeholder: n
|
|
@@ -161,7 +161,7 @@ function zt(o) {
|
|
|
161
161
|
t[2] !== e ? (i = (k) => e.setFilterValue(k.target.value || void 0), t[2] = e, t[3] = i) : i = t[3];
|
|
162
162
|
const s = n ?? "Filter...";
|
|
163
163
|
let C;
|
|
164
|
-
return t[4] !== r || t[5] !== i || t[6] !== s ? (C = /* @__PURE__ */ u("input", { "data-element-src": "Table/ColumnFilter.tsx:
|
|
164
|
+
return t[4] !== r || t[5] !== i || t[6] !== s ? (C = /* @__PURE__ */ u("input", { "data-element-src": "Table/ColumnFilter.tsx:39", ...p(b.input, Mt.input), type: "text", value: r, onChange: i, placeholder: s, dir: "auto" }), t[4] = r, t[5] = i, t[6] = s, t[7] = C) : C = t[7], C;
|
|
165
165
|
}
|
|
166
166
|
function tt(o) {
|
|
167
167
|
const t = H.c(21), {
|
|
@@ -171,37 +171,37 @@ function tt(o) {
|
|
|
171
171
|
label: r
|
|
172
172
|
} = o, i = r === void 0 ? "Sort by" : r;
|
|
173
173
|
let s;
|
|
174
|
-
t[0] !== e || t[1] !== n ? (s = n ? e.find((
|
|
174
|
+
t[0] !== e || t[1] !== n ? (s = n ? e.find((m) => m.id === n.id) : null, t[0] = e, t[1] = n, t[2] = s) : s = t[2];
|
|
175
175
|
const C = s, k = C ? `${i}: ${C.label} ${n.desc ? "↓" : "↑"}` : i;
|
|
176
176
|
let c;
|
|
177
177
|
t[3] !== k ? (c = /* @__PURE__ */ u(F.Trigger, { children: k }), t[3] = k, t[4] = c) : c = t[4];
|
|
178
178
|
let x;
|
|
179
179
|
if (t[5] !== l || t[6] !== e || t[7] !== n) {
|
|
180
|
-
let
|
|
181
|
-
t[9] !== l || t[10] !== n ? (
|
|
180
|
+
let m;
|
|
181
|
+
t[9] !== l || t[10] !== n ? (m = (S) => {
|
|
182
182
|
const h = n?.id === S.id, V = h ? !n.desc : !1;
|
|
183
|
-
return /* @__PURE__ */
|
|
183
|
+
return /* @__PURE__ */ q(F.Item, { onClick: () => l({
|
|
184
184
|
id: S.id,
|
|
185
185
|
desc: V
|
|
186
186
|
}), children: [
|
|
187
187
|
S.label,
|
|
188
188
|
h ? ` ${n.desc ? "↓" : "↑"}` : ""
|
|
189
189
|
] }, S.id);
|
|
190
|
-
}, t[9] = l, t[10] = n, t[11] =
|
|
190
|
+
}, t[9] = l, t[10] = n, t[11] = m) : m = t[11], x = e.map(m), t[5] = l, t[6] = e, t[7] = n, t[8] = x;
|
|
191
191
|
} else
|
|
192
192
|
x = t[8];
|
|
193
193
|
let y;
|
|
194
194
|
t[12] !== l || t[13] !== n ? (y = n !== null && /* @__PURE__ */ u(F.Item, { onClick: () => l(null), children: "Clear sort" }), t[12] = l, t[13] = n, t[14] = y) : y = t[14];
|
|
195
195
|
let T;
|
|
196
|
-
t[15] !== x || t[16] !== y ? (T = /* @__PURE__ */
|
|
196
|
+
t[15] !== x || t[16] !== y ? (T = /* @__PURE__ */ q(F.Popup, { children: [
|
|
197
197
|
x,
|
|
198
198
|
y
|
|
199
199
|
] }), t[15] = x, t[16] = y, t[17] = T) : T = t[17];
|
|
200
|
-
let
|
|
201
|
-
return t[18] !== c || t[19] !== T ? (
|
|
200
|
+
let f;
|
|
201
|
+
return t[18] !== c || t[19] !== T ? (f = /* @__PURE__ */ u("div", { "data-element-src": "Table/SortChip.tsx:32", ...p(b.div, xt.sortChip), children: /* @__PURE__ */ q(F.Root, { children: [
|
|
202
202
|
c,
|
|
203
203
|
T
|
|
204
|
-
] }) }), t[18] = c, t[19] = T, t[20] =
|
|
204
|
+
] }) }), t[18] = c, t[19] = T, t[20] = f) : f = t[20], f;
|
|
205
205
|
}
|
|
206
206
|
tt.displayName = "SortChip";
|
|
207
207
|
function ct(o) {
|
|
@@ -216,46 +216,46 @@ function ct(o) {
|
|
|
216
216
|
rowKey: k,
|
|
217
217
|
onRowClick: c,
|
|
218
218
|
rowAriaLabel: x
|
|
219
|
-
} = o, y = n === void 0 ? "default" : n, T = l === void 0 ? "md" : l,
|
|
220
|
-
let
|
|
221
|
-
t[0] !== s || t[1] !== e ? (
|
|
222
|
-
const S =
|
|
219
|
+
} = o, y = n === void 0 ? "default" : n, T = l === void 0 ? "md" : l, f = r === void 0 ? !0 : r;
|
|
220
|
+
let m;
|
|
221
|
+
t[0] !== s || t[1] !== e ? (m = s ? qt(e) : void 0, t[0] = s, t[1] = e, t[2] = m) : m = t[2];
|
|
222
|
+
const S = m;
|
|
223
223
|
let h;
|
|
224
224
|
t[3] !== C || t[4] !== e ? (h = C ? /* @__PURE__ */ u(dt, { table: e }) : void 0, t[3] = C, t[4] = e, t[5] = h) : h = t[5];
|
|
225
225
|
const V = h;
|
|
226
|
-
let
|
|
227
|
-
t[6] !== e ? (
|
|
226
|
+
let v;
|
|
227
|
+
t[6] !== e ? (v = e.getHeaderGroups().map(jt), t[6] = e, t[7] = v) : v = t[7];
|
|
228
228
|
let M;
|
|
229
|
-
t[8] !==
|
|
229
|
+
t[8] !== v ? (M = /* @__PURE__ */ u(pt, { children: v }), t[8] = v, t[9] = M) : M = t[9];
|
|
230
230
|
let $;
|
|
231
231
|
if (t[10] !== c || t[11] !== x || t[12] !== k || t[13] !== e) {
|
|
232
232
|
let j;
|
|
233
|
-
t[15] !== c || t[16] !== x || t[17] !== k ? (j = (
|
|
234
|
-
const O = k?.(
|
|
235
|
-
return /* @__PURE__ */ u(rt, { onClick: c ? () => c(
|
|
233
|
+
t[15] !== c || t[16] !== x || t[17] !== k ? (j = (B) => {
|
|
234
|
+
const O = k?.(B) ?? B.id;
|
|
235
|
+
return /* @__PURE__ */ u(rt, { onClick: c ? () => c(B) : void 0, "aria-label": x?.(B), children: B.getVisibleCells().map(It) }, O);
|
|
236
236
|
}, t[15] = c, t[16] = x, t[17] = k, t[18] = j) : j = t[18], $ = e.getRowModel().rows.map(j), t[10] = c, t[11] = x, t[12] = k, t[13] = e, t[14] = $;
|
|
237
237
|
} else
|
|
238
238
|
$ = t[14];
|
|
239
239
|
let a;
|
|
240
240
|
t[19] !== $ ? (a = /* @__PURE__ */ u(bt, { children: $ }), t[19] = $, t[20] = a) : a = t[20];
|
|
241
241
|
let R;
|
|
242
|
-
return t[21] !== i || t[22] !== V || t[23] !==
|
|
242
|
+
return t[21] !== i || t[22] !== V || t[23] !== f || t[24] !== T || t[25] !== S || t[26] !== M || t[27] !== a || t[28] !== y ? (R = /* @__PURE__ */ q(ft, { variant: y, size: T, responsive: f, minColumnWidth: i, sortChip: S, pagination: V, children: [
|
|
243
243
|
M,
|
|
244
244
|
a
|
|
245
|
-
] }), t[21] = i, t[22] = V, t[23] =
|
|
245
|
+
] }), t[21] = i, t[22] = V, t[23] = f, t[24] = T, t[25] = S, t[26] = M, t[27] = a, t[28] = y, t[29] = R) : R = t[29], R;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
return /* @__PURE__ */ u(
|
|
247
|
+
function It(o) {
|
|
248
|
+
return /* @__PURE__ */ u(mt, { isActions: o.column.columnDef.meta?.isActions === !0, children: E(o.column.columnDef.cell, o.getContext()) }, o.id);
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
return /* @__PURE__ */ u(rt, { children: o.headers.map(
|
|
250
|
+
function jt(o) {
|
|
251
|
+
return /* @__PURE__ */ u(rt, { children: o.headers.map(Wt) }, o.id);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function Wt(o) {
|
|
254
254
|
const t = o.column.columnDef, e = t.meta, n = typeof t.header == "string" ? t.header : void 0, l = e?.stackLabel ?? n ?? "";
|
|
255
255
|
return /* @__PURE__ */ u(kt, { label: l, "aria-label": e?.isActions ? l || "Actions" : void 0, children: o.isPlaceholder ? null : E(t.header, o.getContext()) }, o.id);
|
|
256
256
|
}
|
|
257
257
|
ct.displayName = "FromTanstack";
|
|
258
|
-
function
|
|
258
|
+
function qt(o) {
|
|
259
259
|
const t = o.getAllColumns().filter((l) => l.getCanSort()).map((l) => {
|
|
260
260
|
const r = typeof l.columnDef.header == "string" ? l.columnDef.header : l.id;
|
|
261
261
|
return {
|
|
@@ -273,7 +273,7 @@ function jt(o) {
|
|
|
273
273
|
desc: l.desc
|
|
274
274
|
}] : []) });
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Yt(o, t, e = {}) {
|
|
277
277
|
const {
|
|
278
278
|
enableSorting: n = !1,
|
|
279
279
|
enableFiltering: l = !1,
|
|
@@ -282,10 +282,10 @@ function Ht(o, t, e = {}) {
|
|
|
282
282
|
} = e, s = e.pagination != null, [C, k] = G([]), [c, x] = G([]), [y, T] = G({
|
|
283
283
|
pageIndex: e.pagination?.pageIndex ?? 0,
|
|
284
284
|
pageSize: e.pagination?.pageSize ?? 10
|
|
285
|
-
}), [
|
|
286
|
-
|
|
287
|
-
const
|
|
288
|
-
return i?.(
|
|
285
|
+
}), [f, m] = G({}), S = wt((h) => {
|
|
286
|
+
m((V) => {
|
|
287
|
+
const v = typeof h == "function" ? h(V) : h;
|
|
288
|
+
return i?.(v), v;
|
|
289
289
|
});
|
|
290
290
|
}, [i]);
|
|
291
291
|
return it({
|
|
@@ -295,12 +295,12 @@ function Ht(o, t, e = {}) {
|
|
|
295
295
|
sorting: C,
|
|
296
296
|
columnFilters: c,
|
|
297
297
|
pagination: y,
|
|
298
|
-
rowSelection:
|
|
298
|
+
rowSelection: f
|
|
299
299
|
},
|
|
300
300
|
getCoreRowModel: st(),
|
|
301
301
|
getSortedRowModel: at(),
|
|
302
|
-
getFilteredRowModel:
|
|
303
|
-
getPaginationRowModel:
|
|
302
|
+
getFilteredRowModel: vt(),
|
|
303
|
+
getPaginationRowModel: Ct(),
|
|
304
304
|
onSortingChange: k,
|
|
305
305
|
onColumnFiltersChange: x,
|
|
306
306
|
onPaginationChange: T,
|
|
@@ -313,44 +313,44 @@ function Ht(o, t, e = {}) {
|
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
const
|
|
316
|
+
const Bt = {
|
|
317
317
|
"overflowY-kORKVm": "overflowY-x1odjw0f",
|
|
318
318
|
"overscrollBehavior-kZeWKH": "overscrollBehavior-xish69e",
|
|
319
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
320
|
-
},
|
|
319
|
+
$$css: "VirtualTable/styles.css.ts:22"
|
|
320
|
+
}, Dt = {
|
|
321
321
|
"position-kVAEAm": "position-x1n2onr6",
|
|
322
322
|
"width-kzqmXN": "width-xh8yej3",
|
|
323
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
324
|
-
},
|
|
323
|
+
$$css: "VirtualTable/styles.css.ts:65"
|
|
324
|
+
}, Pt = {
|
|
325
325
|
"position-kVAEAm": "position-x10l6tqk",
|
|
326
326
|
"top-k87sOh": "top-x13vifvy",
|
|
327
327
|
"left-kbCHJM": "left-xu96u03",
|
|
328
328
|
"transform-k3aq6I": "transform-xsqj5wx",
|
|
329
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
330
|
-
},
|
|
329
|
+
$$css: "VirtualTable/styles.css.ts:84"
|
|
330
|
+
}, At = {
|
|
331
331
|
"flexShrink-kmuXW": "flexShrink-xs83m0k",
|
|
332
332
|
"flexBasis-kCS8Yb": "flexBasis-x1r8uery",
|
|
333
333
|
"minWidth-k7Eaqz": "minWidth-xeuugli",
|
|
334
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
334
|
+
$$css: "VirtualTable/styles.css.ts:103"
|
|
335
335
|
}, g = {
|
|
336
336
|
wrap: {
|
|
337
337
|
"position-kVAEAm": "position-x1n2onr6",
|
|
338
338
|
"width-kzqmXN": "width-xh8yej3",
|
|
339
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
339
|
+
$$css: "VirtualTable/styles.css.ts:8"
|
|
340
340
|
},
|
|
341
341
|
scroll: {
|
|
342
342
|
"position-kVAEAm": "position-x1n2onr6",
|
|
343
343
|
"width-kzqmXN": "width-xh8yej3",
|
|
344
|
-
"borderWidth-kMzoRj": "borderWidth-
|
|
344
|
+
"borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
|
|
345
345
|
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
346
346
|
"borderColor-kVAM5u": "borderColor-x15ykms2",
|
|
347
347
|
"borderRadius-kaIpWk": "borderRadius-xwbokb3",
|
|
348
348
|
"backgroundColor-kWkggS": "backgroundColor-xuw63hu",
|
|
349
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
349
|
+
$$css: "VirtualTable/styles.css.ts:12"
|
|
350
350
|
},
|
|
351
|
-
scrollMax: (o) => [
|
|
351
|
+
scrollMax: (o) => [Bt, {
|
|
352
352
|
"maxHeight-kskxy": o != null ? "maxHeight-x1jols5v" : o,
|
|
353
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
353
|
+
$$css: "VirtualTable/styles.css.ts:22"
|
|
354
354
|
}, {
|
|
355
355
|
"--x-maxHeight": ((t) => typeof t == "number" ? t + "px" : t ?? void 0)(o)
|
|
356
356
|
}],
|
|
@@ -359,15 +359,15 @@ const Wt = {
|
|
|
359
359
|
"top-k87sOh": "top-x13vifvy",
|
|
360
360
|
"zIndex-kY2c9j": "zIndex-x1vjfegm",
|
|
361
361
|
"backgroundColor-kWkggS": "backgroundColor-xuw63hu",
|
|
362
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
362
|
+
$$css: "VirtualTable/styles.css.ts:27"
|
|
363
363
|
},
|
|
364
364
|
headRow: {
|
|
365
365
|
"display-k1xSpc": "display-x78zum5",
|
|
366
366
|
"flexDirection-kXwgrk": "flexDirection-x1q0g3np",
|
|
367
|
-
"borderBottomWidth-kt9PQ7": "borderBottomWidth-
|
|
367
|
+
"borderBottomWidth-kt9PQ7": "borderBottomWidth-x12yxxv5",
|
|
368
368
|
"borderBottomStyle-kfdmCh": "borderBottomStyle-x1q0q8m5",
|
|
369
369
|
"borderBottomColor-kL6WhQ": "borderBottomColor-x19cyuh1",
|
|
370
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
370
|
+
$$css: "VirtualTable/styles.css.ts:33"
|
|
371
371
|
},
|
|
372
372
|
headCell: {
|
|
373
373
|
"display-k1xSpc": "display-x78zum5",
|
|
@@ -384,22 +384,22 @@ const Wt = {
|
|
|
384
384
|
"textTransform-kP9fke": "textTransform-xtvhhri",
|
|
385
385
|
"letterSpacing-kb6lSQ": "letterSpacing-x3gc2hl",
|
|
386
386
|
"color-kMwMTN": "color-x4opovt",
|
|
387
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
387
|
+
$$css: "VirtualTable/styles.css.ts:40"
|
|
388
388
|
},
|
|
389
389
|
headCellSortable: {
|
|
390
390
|
"cursor-kkrTdU": "cursor-x1ypdohk",
|
|
391
391
|
"userSelect-kfSwDN": "userSelect-x87ps6o",
|
|
392
392
|
"color-kMwMTN": "color-x4opovt color-xtolcfe",
|
|
393
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
393
|
+
$$css: "VirtualTable/styles.css.ts:56"
|
|
394
394
|
},
|
|
395
395
|
sortMark: {
|
|
396
396
|
"fontSize-kGuDYH": "fontSize-x1f81oxx",
|
|
397
397
|
"color-kMwMTN": "color-xf715ks",
|
|
398
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
398
|
+
$$css: "VirtualTable/styles.css.ts:61"
|
|
399
399
|
},
|
|
400
|
-
bodyTotal: (o) => [
|
|
400
|
+
bodyTotal: (o) => [Dt, {
|
|
401
401
|
"height-kZKoxP": o != null ? "height-x16ye13r" : o,
|
|
402
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
402
|
+
$$css: "VirtualTable/styles.css.ts:65"
|
|
403
403
|
}, {
|
|
404
404
|
"--x-height": ((t) => typeof t == "number" ? t + "px" : t ?? void 0)(o)
|
|
405
405
|
}],
|
|
@@ -408,17 +408,17 @@ const Wt = {
|
|
|
408
408
|
"flexDirection-kXwgrk": "flexDirection-x1q0g3np",
|
|
409
409
|
"alignItems-kGNEyG": "alignItems-x6s0dn4",
|
|
410
410
|
"width-kzqmXN": "width-xh8yej3",
|
|
411
|
-
"borderBottomWidth-kt9PQ7": "borderBottomWidth-
|
|
411
|
+
"borderBottomWidth-kt9PQ7": "borderBottomWidth-x12yxxv5",
|
|
412
412
|
"borderBottomStyle-kfdmCh": "borderBottomStyle-x1q0q8m5",
|
|
413
413
|
"borderBottomColor-kL6WhQ": "borderBottomColor-x19cyuh1",
|
|
414
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
414
|
+
$$css: "VirtualTable/styles.css.ts:70"
|
|
415
415
|
},
|
|
416
416
|
rowClickable: {
|
|
417
417
|
"cursor-kkrTdU": "cursor-x1ypdohk",
|
|
418
418
|
"backgroundColor-kWkggS": "backgroundColor-xjbqb8w backgroundColor-x14zl4n5",
|
|
419
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
419
|
+
$$css: "VirtualTable/styles.css.ts:79"
|
|
420
420
|
},
|
|
421
|
-
rowAbsolute: (o) => [
|
|
421
|
+
rowAbsolute: (o) => [Pt, {
|
|
422
422
|
"--x-transform": `translateY(${o}px)` != null ? `translateY(${o}px)` : void 0
|
|
423
423
|
}],
|
|
424
424
|
cell: {
|
|
@@ -432,11 +432,11 @@ const Wt = {
|
|
|
432
432
|
"overflow-kVQacm": "overflow-xb3r6kr",
|
|
433
433
|
"textOverflow-kg5iWk": "textOverflow-xlyipyv",
|
|
434
434
|
"whiteSpace-khDVqt": "whiteSpace-xuxw1ft",
|
|
435
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
435
|
+
$$css: "VirtualTable/styles.css.ts:90"
|
|
436
436
|
},
|
|
437
|
-
cellFlex: (o) => [
|
|
437
|
+
cellFlex: (o) => [At, {
|
|
438
438
|
"flexGrow-kzQI83": o != null ? "flexGrow-xw36f2b" : o,
|
|
439
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
439
|
+
$$css: "VirtualTable/styles.css.ts:103"
|
|
440
440
|
}, {
|
|
441
441
|
"--x-flexGrow": o ?? void 0
|
|
442
442
|
}],
|
|
@@ -444,13 +444,13 @@ const Wt = {
|
|
|
444
444
|
"position-kVAEAm": "position-x1n2onr6",
|
|
445
445
|
"width-kzqmXN": "width-xh8yej3",
|
|
446
446
|
"backgroundColor-kWkggS": "backgroundColor-xjbqb8w",
|
|
447
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
447
|
+
$$css: "VirtualTable/styles.css.ts:112"
|
|
448
448
|
},
|
|
449
449
|
stackBody: {
|
|
450
450
|
"display-k1xSpc": "display-x78zum5",
|
|
451
451
|
"flexDirection-kXwgrk": "flexDirection-xdt5ytf",
|
|
452
452
|
"gap-kOIVth": "gap-x175yhtj",
|
|
453
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
453
|
+
$$css: "VirtualTable/styles.css.ts:117"
|
|
454
454
|
},
|
|
455
455
|
stackRow: {
|
|
456
456
|
"display-k1xSpc": "display-x78zum5",
|
|
@@ -458,12 +458,12 @@ const Wt = {
|
|
|
458
458
|
"gap-kOIVth": "gap-xl5ne8a",
|
|
459
459
|
"width-kzqmXN": "width-xh8yej3",
|
|
460
460
|
"padding-kmVPX3": "padding-xlm5w08",
|
|
461
|
-
"borderWidth-kMzoRj": "borderWidth-
|
|
461
|
+
"borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
|
|
462
462
|
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
463
463
|
"borderColor-kVAM5u": "borderColor-x15ykms2",
|
|
464
464
|
"borderRadius-kaIpWk": "borderRadius-x17rit4p",
|
|
465
465
|
"backgroundColor-kWkggS": "backgroundColor-xuw63hu",
|
|
466
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
466
|
+
$$css: "VirtualTable/styles.css.ts:122"
|
|
467
467
|
},
|
|
468
468
|
stackCell: {
|
|
469
469
|
"display-k1xSpc": "display-xrvj5dj",
|
|
@@ -473,18 +473,18 @@ const Wt = {
|
|
|
473
473
|
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
474
474
|
"fontSize-kGuDYH": "fontSize-x1tzajr0",
|
|
475
475
|
"color-kMwMTN": "color-x95150z",
|
|
476
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
476
|
+
$$css: "VirtualTable/styles.css.ts:134"
|
|
477
477
|
},
|
|
478
478
|
stackCellLabel: {
|
|
479
479
|
"color-kMwMTN": "color-x4opovt",
|
|
480
480
|
"fontWeight-k63SB2": "fontWeight-x120ksxs",
|
|
481
481
|
"fontSize-kGuDYH": "fontSize-x1f81oxx",
|
|
482
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
482
|
+
$$css: "VirtualTable/styles.css.ts:143"
|
|
483
483
|
},
|
|
484
484
|
stackCellValue: {
|
|
485
485
|
"minWidth-k7Eaqz": "minWidth-xeuugli",
|
|
486
486
|
"overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
|
|
487
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
487
|
+
$$css: "VirtualTable/styles.css.ts:148"
|
|
488
488
|
},
|
|
489
489
|
empty: {
|
|
490
490
|
"paddingTop-kLKAdn": "paddingTop-x1v4wg84",
|
|
@@ -493,29 +493,29 @@ const Wt = {
|
|
|
493
493
|
"color-kMwMTN": "color-x4opovt",
|
|
494
494
|
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
495
495
|
"fontSize-kGuDYH": "fontSize-x1tzajr0",
|
|
496
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
496
|
+
$$css: "VirtualTable/styles.css.ts:152"
|
|
497
497
|
},
|
|
498
498
|
pos: {
|
|
499
499
|
"position-kVAEAm": "position-x10l6tqk",
|
|
500
500
|
"right-kCIrl2": "right-x192tdk8",
|
|
501
501
|
"bottom-krVfgx": "bottom-x85g1lr",
|
|
502
|
-
"paddingTop-kLKAdn": "paddingTop-
|
|
503
|
-
"paddingBottom-kGO01o": "paddingBottom-
|
|
502
|
+
"paddingTop-kLKAdn": "paddingTop-xpnerg0",
|
|
503
|
+
"paddingBottom-kGO01o": "paddingBottom-xaz41i2",
|
|
504
504
|
"paddingLeft-kE3dHu": "paddingLeft-x6xq64o",
|
|
505
505
|
"paddingRight-kpe85a": "paddingRight-xpkaq21",
|
|
506
506
|
"borderRadius-kaIpWk": "borderRadius-x1k4pcc6",
|
|
507
507
|
"backgroundColor-kWkggS": "backgroundColor-xlyqa1p",
|
|
508
|
-
"borderWidth-kMzoRj": "borderWidth-
|
|
508
|
+
"borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
|
|
509
509
|
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
510
510
|
"borderColor-kVAM5u": "borderColor-x15ykms2",
|
|
511
511
|
"color-kMwMTN": "color-x4opovt",
|
|
512
512
|
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
513
513
|
"fontSize-kGuDYH": "fontSize-x1f81oxx",
|
|
514
514
|
"pointerEvents-kfzvcC": "pointerEvents-x47corl",
|
|
515
|
-
$$css: "VirtualTable/styles.css.ts:
|
|
515
|
+
$$css: "VirtualTable/styles.css.ts:161"
|
|
516
516
|
}
|
|
517
|
-
},
|
|
518
|
-
function
|
|
517
|
+
}, Gt = typeof window < "u" ? Vt : Z;
|
|
518
|
+
function Xt({
|
|
519
519
|
data: o,
|
|
520
520
|
columns: t,
|
|
521
521
|
sorting: e,
|
|
@@ -527,11 +527,11 @@ function Ot({
|
|
|
527
527
|
onVisiblePageChange: C,
|
|
528
528
|
rangeLabel: k,
|
|
529
529
|
pageSize: c = 50,
|
|
530
|
-
estimateRowHeight: x =
|
|
530
|
+
estimateRowHeight: x = yt.touchTarget,
|
|
531
531
|
maxHeight: y = "70vh",
|
|
532
532
|
virtualizeThreshold: T = 150,
|
|
533
|
-
stackBelow:
|
|
534
|
-
responsive:
|
|
533
|
+
stackBelow: f = "sm",
|
|
534
|
+
responsive: m = !0,
|
|
535
535
|
emptyLabel: S
|
|
536
536
|
}) {
|
|
537
537
|
const [h, V] = G([]), $ = it({
|
|
@@ -544,34 +544,34 @@ function Ot({
|
|
|
544
544
|
getRowId: l,
|
|
545
545
|
getCoreRowModel: st(),
|
|
546
546
|
getSortedRowModel: at()
|
|
547
|
-
}), a = $.getRowModel().rows, R = K(null), [j,
|
|
548
|
-
|
|
549
|
-
if (!
|
|
550
|
-
|
|
547
|
+
}), a = $.getRowModel().rows, R = K(null), [j, B] = G(!1), O = typeof f == "number" ? f : ht[f];
|
|
548
|
+
Gt(() => {
|
|
549
|
+
if (!m) {
|
|
550
|
+
B(!1);
|
|
551
551
|
return;
|
|
552
552
|
}
|
|
553
553
|
const d = R.current;
|
|
554
554
|
if (!d || typeof ResizeObserver > "u") return;
|
|
555
|
-
const
|
|
556
|
-
I > 0 &&
|
|
555
|
+
const w = (I) => {
|
|
556
|
+
I > 0 && B(I < O);
|
|
557
557
|
};
|
|
558
|
-
|
|
558
|
+
w(d.getBoundingClientRect().width);
|
|
559
559
|
const W = new ResizeObserver((I) => {
|
|
560
560
|
const z = I[0];
|
|
561
561
|
if (!z) return;
|
|
562
562
|
const L = z.contentBoxSize?.[0];
|
|
563
|
-
|
|
563
|
+
w(L ? L.inlineSize : z.contentRect.width);
|
|
564
564
|
});
|
|
565
565
|
return W.observe(d), () => W.disconnect();
|
|
566
|
-
}, [
|
|
567
|
-
const
|
|
566
|
+
}, [m, O]);
|
|
567
|
+
const D = a.length > T && !j, et = K(null), Y = $t({
|
|
568
568
|
count: a.length,
|
|
569
569
|
getScrollElement: () => et.current,
|
|
570
570
|
estimateSize: () => x,
|
|
571
571
|
overscan: 12
|
|
572
572
|
}), Q = K(!0);
|
|
573
573
|
Z(() => {
|
|
574
|
-
if (!
|
|
574
|
+
if (!D) {
|
|
575
575
|
Q.current = !1;
|
|
576
576
|
return;
|
|
577
577
|
}
|
|
@@ -582,65 +582,65 @@ function Ot({
|
|
|
582
582
|
Q.current = !1;
|
|
583
583
|
}, 300);
|
|
584
584
|
return () => clearTimeout(d);
|
|
585
|
-
}, [
|
|
586
|
-
const N = Y.getVirtualItems(), U = N[0]?.index ?? 0, ot = N.length ? N[N.length - 1].index : 0, lt = Math.max(1, Math.ceil(a.length / c)),
|
|
585
|
+
}, [D]);
|
|
586
|
+
const N = Y.getVirtualItems(), U = N[0]?.index ?? 0, ot = N.length ? N[N.length - 1].index : 0, lt = Math.max(1, Math.ceil(a.length / c)), P = Math.floor(Math.max(0, U) / c) + 1, X = {
|
|
587
587
|
from: a.length ? U + 1 : 0,
|
|
588
588
|
to: a.length ? ot + 1 : 0,
|
|
589
589
|
total: a.length,
|
|
590
|
-
page:
|
|
590
|
+
page: P,
|
|
591
591
|
pages: lt
|
|
592
592
|
}, J = K(null);
|
|
593
593
|
Z(() => {
|
|
594
|
-
if (!(!
|
|
594
|
+
if (!(!D || !C)) {
|
|
595
595
|
if (Q.current) {
|
|
596
|
-
J.current =
|
|
596
|
+
J.current = P;
|
|
597
597
|
return;
|
|
598
598
|
}
|
|
599
|
-
J.current !==
|
|
599
|
+
J.current !== P && (J.current = P, C({
|
|
600
600
|
from: a.length ? U + 1 : 0,
|
|
601
601
|
to: a.length ? ot + 1 : 0,
|
|
602
602
|
total: a.length,
|
|
603
|
-
page:
|
|
603
|
+
page: P,
|
|
604
604
|
pages: lt
|
|
605
605
|
}));
|
|
606
606
|
}
|
|
607
|
-
}, [
|
|
607
|
+
}, [P, D]);
|
|
608
608
|
const ut = (d) => {
|
|
609
|
-
const
|
|
610
|
-
return typeof
|
|
611
|
-
}, nt = (d,
|
|
609
|
+
const w = d.meta;
|
|
610
|
+
return typeof w?.stackLabel == "string" ? w.stackLabel : typeof w?.label == "string" ? w.label : typeof d.header == "string" ? d.header : "";
|
|
611
|
+
}, nt = (d, w, W, I) => j ? /* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:242", role: "row", "aria-label": i?.(d.original), onClick: r ? () => r(d.original) : void 0, ...p(b.div, g.stackRow, !!r && g.rowClickable), children: d.getVisibleCells().map((z) => {
|
|
612
612
|
const L = ut(z.column.columnDef);
|
|
613
|
-
return /* @__PURE__ */
|
|
614
|
-
L ? /* @__PURE__ */ u("span", { "data-element-src": "VirtualTable/VirtualTable.tsx:
|
|
615
|
-
/* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:
|
|
613
|
+
return /* @__PURE__ */ q("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:252", role: "cell", ...p(b.div, g.stackCell), children: [
|
|
614
|
+
L ? /* @__PURE__ */ u("span", { "data-element-src": "VirtualTable/VirtualTable.tsx:253", ...p(b.span, g.stackCellLabel), children: L }) : null,
|
|
615
|
+
/* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:254", ...p(b.div, g.stackCellValue), children: E(z.column.columnDef.cell, z.getContext()) })
|
|
616
616
|
] }, z.id);
|
|
617
|
-
}) }, d.id) : /* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:
|
|
618
|
-
return /* @__PURE__ */
|
|
619
|
-
/* @__PURE__ */
|
|
620
|
-
j ? null : /* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:
|
|
621
|
-
const W =
|
|
622
|
-
return /* @__PURE__ */
|
|
623
|
-
|
|
624
|
-
I ? /* @__PURE__ */ u("span", { "data-element-src": "VirtualTable/VirtualTable.tsx:
|
|
625
|
-
] },
|
|
617
|
+
}) }, d.id) : /* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:262", ref: I, "data-index": w, role: "row", "aria-label": i?.(d.original), onClick: r ? () => r(d.original) : void 0, ...p(b.div, g.row, !!r && g.rowClickable, W), children: d.getVisibleCells().map((z) => /* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:272", role: "cell", ...p(b.div, g.cell, g.cellFlex(z.column.getSize())), children: E(z.column.columnDef.cell, z.getContext()) }, z.id)) }, d.id), gt = k?.(X) ?? (a.length ? `${X.from}–${X.to} / ${X.total}` : "");
|
|
618
|
+
return /* @__PURE__ */ q("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:287", ref: R, ...p(b.div, g.wrap), children: [
|
|
619
|
+
/* @__PURE__ */ q("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:288", ref: et, role: "table", ...p(b.div, j ? g.stackScroll : g.scroll, D && g.scrollMax(St(y))), children: [
|
|
620
|
+
j ? null : /* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:297", role: "rowgroup", ...p(b.div, g.head), children: $.getHeaderGroups().map((d) => /* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:299", role: "row", ...p(b.div, g.headRow), children: d.headers.map((w) => {
|
|
621
|
+
const W = w.column, I = W.getIsSorted();
|
|
622
|
+
return /* @__PURE__ */ q("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:304", role: "columnheader", "aria-sort": I === "asc" ? "ascending" : I === "desc" ? "descending" : void 0, onClick: W.getCanSort() ? W.getToggleSortingHandler() : void 0, ...p(b.div, g.headCell, W.getCanSort() && g.headCellSortable, g.cellFlex(w.getSize())), children: [
|
|
623
|
+
w.isPlaceholder ? null : E(W.columnDef.header, w.getContext()),
|
|
624
|
+
I ? /* @__PURE__ */ u("span", { "data-element-src": "VirtualTable/VirtualTable.tsx:325", ...p(b.span, g.sortMark), children: I === "asc" ? "↑" : "↓" }) : null
|
|
625
|
+
] }, w.id);
|
|
626
626
|
}) }, d.id)) }),
|
|
627
|
-
a.length === 0 ? /* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:
|
|
627
|
+
a.length === 0 ? /* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:338", ...p(b.div, g.empty), children: S }) : /* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:340", role: "rowgroup", ...p(b.div, j ? g.stackBody : D ? g.bodyTotal(Y.getTotalSize()) : void 0), children: D ? N.map((d) => nt(a[d.index], d.index, g.rowAbsolute(d.start), Y.measureElement)) : a.map((d, w) => nt(d, w)) })
|
|
628
628
|
] }),
|
|
629
|
-
|
|
629
|
+
D && a.length > 0 ? /* @__PURE__ */ u("div", { "data-element-src": "VirtualTable/VirtualTable.tsx:365", "aria-live": "polite", ...p(b.div, g.pos), children: gt }) : null
|
|
630
630
|
] });
|
|
631
631
|
}
|
|
632
|
-
const
|
|
633
|
-
...
|
|
632
|
+
const Kt = {
|
|
633
|
+
...Tt,
|
|
634
634
|
Pagination: dt,
|
|
635
|
-
SortIndicator:
|
|
636
|
-
ColumnFilter:
|
|
635
|
+
SortIndicator: zt,
|
|
636
|
+
ColumnFilter: Rt,
|
|
637
637
|
SortChip: tt,
|
|
638
638
|
/** Renders a styled Table directly from a TanStack table instance. */
|
|
639
639
|
FromTanstack: ct
|
|
640
640
|
};
|
|
641
641
|
export {
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
642
|
+
Kt as Table,
|
|
643
|
+
Xt as VirtualTable,
|
|
644
|
+
Yt as useDataTable
|
|
645
645
|
};
|
|
646
646
|
//# sourceMappingURL=table.js.map
|