@bsol-oss/react-datatable5 1.0.26 → 1.0.27
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/README.md +20 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,18 +12,18 @@ npm install @tanstack/react-table @chakra-ui/react @bsol-oss/react-datatable5
|
|
|
12
12
|
|
|
13
13
|
```tsx
|
|
14
14
|
<DataTable columns={columns} data={data}>
|
|
15
|
-
<Flex
|
|
15
|
+
<Flex>
|
|
16
16
|
<TablePagination />
|
|
17
17
|
<ButtonGroup isAttached>
|
|
18
18
|
<EditViewButton />
|
|
19
19
|
<EditFilterButton />
|
|
20
|
-
<EditSortingButton />
|
|
21
20
|
</ButtonGroup>
|
|
22
21
|
<EditOrderButton />
|
|
23
22
|
<PageSizeControl />
|
|
24
23
|
<ButtonGroup isAttached>
|
|
25
24
|
<TableSelector />
|
|
26
25
|
</ButtonGroup>
|
|
26
|
+
<GlobalFilter />
|
|
27
27
|
</Flex>
|
|
28
28
|
<Table>
|
|
29
29
|
<TableHeader canResize />
|
|
@@ -42,31 +42,43 @@ npm install @tanstack/react-table @chakra-ui/react @bsol-oss/react-datatable5
|
|
|
42
42
|
columns={columns}
|
|
43
43
|
url={"http://localhost:8333/api/v1/gpt/chat/history/all"}
|
|
44
44
|
>
|
|
45
|
-
<Flex
|
|
45
|
+
<Flex>
|
|
46
46
|
<TablePagination />
|
|
47
47
|
<ButtonGroup isAttached>
|
|
48
48
|
<EditViewButton />
|
|
49
49
|
<EditFilterButton />
|
|
50
|
-
<
|
|
50
|
+
<DensityToggleButton />
|
|
51
51
|
</ButtonGroup>
|
|
52
52
|
<EditOrderButton />
|
|
53
53
|
<PageSizeControl />
|
|
54
54
|
<ButtonGroup isAttached>
|
|
55
55
|
<TableSelector />
|
|
56
56
|
</ButtonGroup>
|
|
57
|
+
<GlobalFilter />
|
|
57
58
|
</Flex>
|
|
58
59
|
<Table>
|
|
59
60
|
<TableHeader canResize />
|
|
60
61
|
<TableBody />
|
|
61
62
|
<TableFooter />
|
|
62
63
|
</Table>
|
|
63
|
-
<
|
|
64
|
-
|
|
64
|
+
<Flex gap="0.25rem">
|
|
65
|
+
<TablePagination />
|
|
66
|
+
<ButtonGroup isAttached>
|
|
67
|
+
<EditViewButton />
|
|
68
|
+
<EditFilterButton />
|
|
69
|
+
</ButtonGroup>
|
|
70
|
+
<EditOrderButton />
|
|
71
|
+
<PageSizeControl />
|
|
72
|
+
<ButtonGroup isAttached>
|
|
73
|
+
<TableSelector />
|
|
74
|
+
</ButtonGroup>
|
|
75
|
+
</Flex>
|
|
65
76
|
</DataTableServer>
|
|
66
77
|
```
|
|
67
78
|
|
|
68
79
|
Example Url generated by the DataTableServer
|
|
69
80
|
|
|
70
81
|
```
|
|
71
|
-
GET
|
|
72
|
-
|
|
82
|
+
GET
|
|
83
|
+
http://localhost:8333/api/v1/gpt/chat/history/all?pagination={"offset":0,"rows":10}&sorting={}&where={}&searching=hello
|
|
84
|
+
```
|
package/dist/index.js
CHANGED
|
@@ -580,7 +580,7 @@ const TableSelector = () => {
|
|
|
580
580
|
|
|
581
581
|
const TextCell = ({ label, noOfLines = [1], padding = "0rem", children, }) => {
|
|
582
582
|
if (label) {
|
|
583
|
-
return (jsxRuntime.jsx(react$1.Box, { padding: padding, children: jsxRuntime.jsx(react$1.Tooltip, { label: jsxRuntime.jsx(react$1.Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", noOfLines: [5], children: label }), placement: "auto", children: jsxRuntime.jsx(react$1.Text, { as: "span", textOverflow: "ellipsis", noOfLines: noOfLines, children: children }) }) }));
|
|
583
|
+
return (jsxRuntime.jsx(react$1.Box, { padding: padding, children: jsxRuntime.jsx(react$1.Tooltip, { label: jsxRuntime.jsx(react$1.Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", noOfLines: [5], children: label }), placement: "auto", children: jsxRuntime.jsx(react$1.Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", wordBreak: "break-all", noOfLines: noOfLines, children: children }) }) }));
|
|
584
584
|
}
|
|
585
585
|
return (jsxRuntime.jsx(react$1.Box, { padding: padding, children: jsxRuntime.jsx(react$1.Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", wordBreak: "break-all", noOfLines: noOfLines, children: children }) }));
|
|
586
586
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -578,7 +578,7 @@ const TableSelector = () => {
|
|
|
578
578
|
|
|
579
579
|
const TextCell = ({ label, noOfLines = [1], padding = "0rem", children, }) => {
|
|
580
580
|
if (label) {
|
|
581
|
-
return (jsx(Box, { padding: padding, children: jsx(Tooltip, { label: jsx(Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", noOfLines: [5], children: label }), placement: "auto", children: jsx(Text, { as: "span", textOverflow: "ellipsis", noOfLines: noOfLines, children: children }) }) }));
|
|
581
|
+
return (jsx(Box, { padding: padding, children: jsx(Tooltip, { label: jsx(Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", noOfLines: [5], children: label }), placement: "auto", children: jsx(Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", wordBreak: "break-all", noOfLines: noOfLines, children: children }) }) }));
|
|
582
582
|
}
|
|
583
583
|
return (jsx(Box, { padding: padding, children: jsx(Text, { as: "span", overflow: "hidden", textOverflow: "ellipsis", wordBreak: "break-all", noOfLines: noOfLines, children: children }) }));
|
|
584
584
|
};
|