@tanstack/react-table 8.1.3 → 8.2.1
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/build/cjs/react-table/src/index.js.map +1 -1
- package/build/cjs/table-core/build/esm/index.js +6 -8
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +6 -8
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +18 -18
- package/build/umd/index.development.js +6 -8
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/index.tsx +10 -6
package/build/stats-html.html
CHANGED
|
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
|
|
|
2669
2669
|
</script>
|
|
2670
2670
|
<script>
|
|
2671
2671
|
/*<!--*/
|
|
2672
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"
|
|
2672
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"5ea7-123"},{"name":"react-table/src/index.tsx","uid":"5ea7-125"}]}]}],"isRoot":true},"nodeParts":{"5ea7-123":{"renderedLength":134397,"gzipLength":23086,"brotliLength":0,"mainUid":"5ea7-122"},"5ea7-125":{"renderedLength":1900,"gzipLength":752,"brotliLength":0,"mainUid":"5ea7-124"}},"nodeMetas":{"5ea7-122":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"5ea7-123"},"imported":[],"importedBy":[{"uid":"5ea7-124"}]},"5ea7-124":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"5ea7-125"},"imported":[{"uid":"5ea7-126"},{"uid":"5ea7-122"}],"importedBy":[],"isEntry":true},"5ea7-126":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"5ea7-124"}],"isExternal":true}},"env":{"rollup":"2.76.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|
package/build/stats-react.json
CHANGED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
13
|
"name": "table-core/build/esm/index.js",
|
|
14
|
-
"uid": "
|
|
14
|
+
"uid": "5ea7-128"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "react-table/src/index.tsx",
|
|
18
|
-
"uid": "
|
|
18
|
+
"uid": "5ea7-130"
|
|
19
19
|
}
|
|
20
20
|
]
|
|
21
21
|
}
|
|
@@ -25,62 +25,62 @@
|
|
|
25
25
|
"isRoot": true
|
|
26
26
|
},
|
|
27
27
|
"nodeParts": {
|
|
28
|
-
"
|
|
29
|
-
"renderedLength":
|
|
30
|
-
"gzipLength":
|
|
28
|
+
"5ea7-128": {
|
|
29
|
+
"renderedLength": 134397,
|
|
30
|
+
"gzipLength": 23086,
|
|
31
31
|
"brotliLength": 0,
|
|
32
|
-
"mainUid": "
|
|
32
|
+
"mainUid": "5ea7-127"
|
|
33
33
|
},
|
|
34
|
-
"
|
|
34
|
+
"5ea7-130": {
|
|
35
35
|
"renderedLength": 1900,
|
|
36
36
|
"gzipLength": 752,
|
|
37
37
|
"brotliLength": 0,
|
|
38
|
-
"mainUid": "
|
|
38
|
+
"mainUid": "5ea7-129"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"nodeMetas": {
|
|
42
|
-
"
|
|
42
|
+
"5ea7-127": {
|
|
43
43
|
"id": "/packages/table-core/build/esm/index.js",
|
|
44
44
|
"moduleParts": {
|
|
45
|
-
"index.production.js": "
|
|
45
|
+
"index.production.js": "5ea7-128"
|
|
46
46
|
},
|
|
47
47
|
"imported": [],
|
|
48
48
|
"importedBy": [
|
|
49
49
|
{
|
|
50
|
-
"uid": "
|
|
50
|
+
"uid": "5ea7-129"
|
|
51
51
|
}
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
-
"
|
|
54
|
+
"5ea7-129": {
|
|
55
55
|
"id": "/packages/react-table/src/index.tsx",
|
|
56
56
|
"moduleParts": {
|
|
57
|
-
"index.production.js": "
|
|
57
|
+
"index.production.js": "5ea7-130"
|
|
58
58
|
},
|
|
59
59
|
"imported": [
|
|
60
60
|
{
|
|
61
|
-
"uid": "
|
|
61
|
+
"uid": "5ea7-131"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
"uid": "
|
|
64
|
+
"uid": "5ea7-127"
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
67
|
"importedBy": [],
|
|
68
68
|
"isEntry": true
|
|
69
69
|
},
|
|
70
|
-
"
|
|
70
|
+
"5ea7-131": {
|
|
71
71
|
"id": "react",
|
|
72
72
|
"moduleParts": {},
|
|
73
73
|
"imported": [],
|
|
74
74
|
"importedBy": [
|
|
75
75
|
{
|
|
76
|
-
"uid": "
|
|
76
|
+
"uid": "5ea7-129"
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"isExternal": true
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"env": {
|
|
83
|
-
"rollup": "2.
|
|
83
|
+
"rollup": "2.76.0"
|
|
84
84
|
},
|
|
85
85
|
"options": {
|
|
86
86
|
"gzip": true,
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
}
|
|
50
50
|
function noop() {//
|
|
51
51
|
}
|
|
52
|
-
function makeStateUpdater(key,
|
|
52
|
+
function makeStateUpdater(key, instance) {
|
|
53
53
|
return updater => {
|
|
54
|
-
|
|
54
|
+
instance.setState(old => {
|
|
55
55
|
return { ...old,
|
|
56
56
|
[key]: functionalUpdate(updater, old[key])
|
|
57
57
|
};
|
|
@@ -2911,9 +2911,9 @@
|
|
|
2911
2911
|
header: props => props.header.column.id,
|
|
2912
2912
|
footer: props => props.header.column.id,
|
|
2913
2913
|
cell: props => {
|
|
2914
|
-
var
|
|
2914
|
+
var _props$renderValue$to, _props$renderValue;
|
|
2915
2915
|
|
|
2916
|
-
return (
|
|
2916
|
+
return (_props$renderValue$to = (_props$renderValue = props.renderValue()) == null ? void 0 : _props$renderValue.toString == null ? void 0 : _props$renderValue.toString()) != null ? _props$renderValue$to : null;
|
|
2917
2917
|
},
|
|
2918
2918
|
...table._features.reduce((obj, feature) => {
|
|
2919
2919
|
return Object.assign(obj, feature.getDefaultColumnDef == null ? void 0 : feature.getDefaultColumnDef());
|
|
@@ -3443,9 +3443,7 @@
|
|
|
3443
3443
|
let facetedMinMaxValues = [firstValue, firstValue];
|
|
3444
3444
|
|
|
3445
3445
|
for (let i = 0; i < facetedRowModel.flatRows.length; i++) {
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
const value = (_facetedRowModel$flat2 = facetedRowModel.flatRows[i]) == null ? void 0 : _facetedRowModel$flat2.getValue(columnId);
|
|
3446
|
+
const value = facetedRowModel.flatRows[i].getValue(columnId);
|
|
3449
3447
|
|
|
3450
3448
|
if (value < facetedMinMaxValues[0]) {
|
|
3451
3449
|
facetedMinMaxValues[0] = value;
|
|
@@ -3595,7 +3593,7 @@
|
|
|
3595
3593
|
const subRows = groupUpRecursively(groupedRows, depth + 1, id); // Flatten the leaf rows of the rows in this group
|
|
3596
3594
|
|
|
3597
3595
|
const leafRows = depth ? flattenBy(groupedRows, row => row.subRows) : groupedRows;
|
|
3598
|
-
const row = createRow(table, id,
|
|
3596
|
+
const row = createRow(table, id, leafRows[0].original, index, depth);
|
|
3599
3597
|
Object.assign(row, {
|
|
3600
3598
|
groupingColumnId: columnId,
|
|
3601
3599
|
groupingValue,
|