@tanstack/react-table 8.0.0-beta.5 → 8.0.0-beta.6
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/table-core/build/esm/index.js +7 -10
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +7 -10
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +17 -17
- package/build/umd/index.development.js +7 -10
- 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/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":"c1f5-127"},{"name":"react-table/src/index.tsx","uid":"c1f5-129"}]}]}],"isRoot":true},"nodeParts":{"c1f5-127":{"renderedLength":138812,"gzipLength":23634,"brotliLength":0,"mainUid":"c1f5-126"},"c1f5-129":{"renderedLength":2135,"gzipLength":854,"brotliLength":0,"mainUid":"c1f5-128"}},"nodeMetas":{"c1f5-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"c1f5-127"},"imported":[],"importedBy":[{"uid":"c1f5-128"}]},"c1f5-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"c1f5-129"},"imported":[{"uid":"c1f5-130"},{"uid":"c1f5-126"}],"importedBy":[],"isEntry":true},"c1f5-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"c1f5-128"}],"isExternal":true}},"env":{"rollup":"2.70.2"},"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": "c1f5-132"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "react-table/src/index.tsx",
|
|
18
|
-
"uid": "
|
|
18
|
+
"uid": "c1f5-134"
|
|
19
19
|
}
|
|
20
20
|
]
|
|
21
21
|
}
|
|
@@ -25,55 +25,55 @@
|
|
|
25
25
|
"isRoot": true
|
|
26
26
|
},
|
|
27
27
|
"nodeParts": {
|
|
28
|
-
"
|
|
29
|
-
"renderedLength":
|
|
30
|
-
"gzipLength":
|
|
28
|
+
"c1f5-132": {
|
|
29
|
+
"renderedLength": 138812,
|
|
30
|
+
"gzipLength": 23634,
|
|
31
31
|
"brotliLength": 0,
|
|
32
|
-
"mainUid": "
|
|
32
|
+
"mainUid": "c1f5-131"
|
|
33
33
|
},
|
|
34
|
-
"
|
|
34
|
+
"c1f5-134": {
|
|
35
35
|
"renderedLength": 2135,
|
|
36
36
|
"gzipLength": 854,
|
|
37
37
|
"brotliLength": 0,
|
|
38
|
-
"mainUid": "
|
|
38
|
+
"mainUid": "c1f5-133"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"nodeMetas": {
|
|
42
|
-
"
|
|
42
|
+
"c1f5-131": {
|
|
43
43
|
"id": "/packages/table-core/build/esm/index.js",
|
|
44
44
|
"moduleParts": {
|
|
45
|
-
"index.production.js": "
|
|
45
|
+
"index.production.js": "c1f5-132"
|
|
46
46
|
},
|
|
47
47
|
"imported": [],
|
|
48
48
|
"importedBy": [
|
|
49
49
|
{
|
|
50
|
-
"uid": "
|
|
50
|
+
"uid": "c1f5-133"
|
|
51
51
|
}
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
-
"
|
|
54
|
+
"c1f5-133": {
|
|
55
55
|
"id": "/packages/react-table/src/index.tsx",
|
|
56
56
|
"moduleParts": {
|
|
57
|
-
"index.production.js": "
|
|
57
|
+
"index.production.js": "c1f5-134"
|
|
58
58
|
},
|
|
59
59
|
"imported": [
|
|
60
60
|
{
|
|
61
|
-
"uid": "
|
|
61
|
+
"uid": "c1f5-135"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
"uid": "
|
|
64
|
+
"uid": "c1f5-131"
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
67
|
"importedBy": [],
|
|
68
68
|
"isEntry": true
|
|
69
69
|
},
|
|
70
|
-
"
|
|
70
|
+
"c1f5-135": {
|
|
71
71
|
"id": "react",
|
|
72
72
|
"moduleParts": {},
|
|
73
73
|
"imported": [],
|
|
74
74
|
"importedBy": [
|
|
75
75
|
{
|
|
76
|
-
"uid": "
|
|
76
|
+
"uid": "c1f5-133"
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"isExternal": true
|
|
@@ -848,7 +848,6 @@
|
|
|
848
848
|
getDefaultOptions: instance => {
|
|
849
849
|
return {
|
|
850
850
|
onExpandedChange: makeStateUpdater('expanded', instance),
|
|
851
|
-
autoResetExpanded: true,
|
|
852
851
|
paginateExpandedRows: true
|
|
853
852
|
};
|
|
854
853
|
},
|
|
@@ -857,6 +856,8 @@
|
|
|
857
856
|
let queued = false;
|
|
858
857
|
return {
|
|
859
858
|
_autoResetExpanded: () => {
|
|
859
|
+
var _ref, _instance$options$aut;
|
|
860
|
+
|
|
860
861
|
if (!registered) {
|
|
861
862
|
instance._queue(() => {
|
|
862
863
|
registered = true;
|
|
@@ -865,11 +866,7 @@
|
|
|
865
866
|
return;
|
|
866
867
|
}
|
|
867
868
|
|
|
868
|
-
if (instance.options.autoResetAll
|
|
869
|
-
return;
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
if (instance.options.autoResetAll === true || instance.options.autoResetExpanded) {
|
|
869
|
+
if ((_ref = (_instance$options$aut = instance.options.autoResetAll) != null ? _instance$options$aut : instance.options.autoResetExpanded) != null ? _ref : !instance.options.manualExpanding) {
|
|
873
870
|
if (queued) return;
|
|
874
871
|
queued = true;
|
|
875
872
|
|
|
@@ -933,7 +930,7 @@
|
|
|
933
930
|
});
|
|
934
931
|
return maxDepth;
|
|
935
932
|
},
|
|
936
|
-
getPreExpandedRowModel: () => instance.
|
|
933
|
+
getPreExpandedRowModel: () => instance.getSortedRowModel(),
|
|
937
934
|
getExpandedRowModel: () => {
|
|
938
935
|
if (!instance._getExpandedRowModel && instance.options.getExpandedRowModel) {
|
|
939
936
|
instance._getExpandedRowModel = instance.options.getExpandedRowModel(instance);
|
|
@@ -1534,7 +1531,7 @@
|
|
|
1534
1531
|
|
|
1535
1532
|
instance.setGrouping(defaultState ? [] : (_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.grouping) != null ? _instance$initialStat : []);
|
|
1536
1533
|
},
|
|
1537
|
-
getPreGroupedRowModel: () => instance.
|
|
1534
|
+
getPreGroupedRowModel: () => instance.getFilteredRowModel(),
|
|
1538
1535
|
getGroupedRowModel: () => {
|
|
1539
1536
|
if (!instance._getGroupedRowModel && instance.options.getGroupedRowModel) {
|
|
1540
1537
|
instance._getGroupedRowModel = instance.options.getGroupedRowModel(instance);
|
|
@@ -2147,7 +2144,7 @@
|
|
|
2147
2144
|
return (_instance$options$deb2 = instance.options.debugAll) != null ? _instance$options$deb2 : instance.options.debugTable;
|
|
2148
2145
|
}
|
|
2149
2146
|
}),
|
|
2150
|
-
getGroupedSelectedRowModel: memo(() => [instance.getState().rowSelection, instance.
|
|
2147
|
+
getGroupedSelectedRowModel: memo(() => [instance.getState().rowSelection, instance.getSortedRowModel()], (rowSelection, rowModel) => {
|
|
2151
2148
|
if (!Object.keys(rowSelection).length) {
|
|
2152
2149
|
return {
|
|
2153
2150
|
rows: [],
|
|
@@ -2697,7 +2694,7 @@
|
|
|
2697
2694
|
|
|
2698
2695
|
instance.setSorting(defaultState ? [] : (_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.sorting) != null ? _instance$initialStat : []);
|
|
2699
2696
|
},
|
|
2700
|
-
getPreSortedRowModel: () => instance.
|
|
2697
|
+
getPreSortedRowModel: () => instance.getGroupedRowModel(),
|
|
2701
2698
|
getSortedRowModel: () => {
|
|
2702
2699
|
if (!instance._getSortedRowModel && instance.options.getSortedRowModel) {
|
|
2703
2700
|
instance._getSortedRowModel = instance.options.getSortedRowModel(instance);
|