@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/esm/index.js
CHANGED
|
@@ -826,7 +826,6 @@ const Expanding = {
|
|
|
826
826
|
getDefaultOptions: instance => {
|
|
827
827
|
return {
|
|
828
828
|
onExpandedChange: makeStateUpdater('expanded', instance),
|
|
829
|
-
autoResetExpanded: true,
|
|
830
829
|
paginateExpandedRows: true
|
|
831
830
|
};
|
|
832
831
|
},
|
|
@@ -835,6 +834,8 @@ const Expanding = {
|
|
|
835
834
|
let queued = false;
|
|
836
835
|
return {
|
|
837
836
|
_autoResetExpanded: () => {
|
|
837
|
+
var _ref, _instance$options$aut;
|
|
838
|
+
|
|
838
839
|
if (!registered) {
|
|
839
840
|
instance._queue(() => {
|
|
840
841
|
registered = true;
|
|
@@ -843,11 +844,7 @@ const Expanding = {
|
|
|
843
844
|
return;
|
|
844
845
|
}
|
|
845
846
|
|
|
846
|
-
if (instance.options.autoResetAll
|
|
847
|
-
return;
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
if (instance.options.autoResetAll === true || instance.options.autoResetExpanded) {
|
|
847
|
+
if ((_ref = (_instance$options$aut = instance.options.autoResetAll) != null ? _instance$options$aut : instance.options.autoResetExpanded) != null ? _ref : !instance.options.manualExpanding) {
|
|
851
848
|
if (queued) return;
|
|
852
849
|
queued = true;
|
|
853
850
|
|
|
@@ -911,7 +908,7 @@ const Expanding = {
|
|
|
911
908
|
});
|
|
912
909
|
return maxDepth;
|
|
913
910
|
},
|
|
914
|
-
getPreExpandedRowModel: () => instance.
|
|
911
|
+
getPreExpandedRowModel: () => instance.getSortedRowModel(),
|
|
915
912
|
getExpandedRowModel: () => {
|
|
916
913
|
if (!instance._getExpandedRowModel && instance.options.getExpandedRowModel) {
|
|
917
914
|
instance._getExpandedRowModel = instance.options.getExpandedRowModel(instance);
|
|
@@ -1512,7 +1509,7 @@ const Grouping = {
|
|
|
1512
1509
|
|
|
1513
1510
|
instance.setGrouping(defaultState ? [] : (_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.grouping) != null ? _instance$initialStat : []);
|
|
1514
1511
|
},
|
|
1515
|
-
getPreGroupedRowModel: () => instance.
|
|
1512
|
+
getPreGroupedRowModel: () => instance.getFilteredRowModel(),
|
|
1516
1513
|
getGroupedRowModel: () => {
|
|
1517
1514
|
if (!instance._getGroupedRowModel && instance.options.getGroupedRowModel) {
|
|
1518
1515
|
instance._getGroupedRowModel = instance.options.getGroupedRowModel(instance);
|
|
@@ -2125,7 +2122,7 @@ const RowSelection = {
|
|
|
2125
2122
|
return (_instance$options$deb2 = instance.options.debugAll) != null ? _instance$options$deb2 : instance.options.debugTable;
|
|
2126
2123
|
}
|
|
2127
2124
|
}),
|
|
2128
|
-
getGroupedSelectedRowModel: memo(() => [instance.getState().rowSelection, instance.
|
|
2125
|
+
getGroupedSelectedRowModel: memo(() => [instance.getState().rowSelection, instance.getSortedRowModel()], (rowSelection, rowModel) => {
|
|
2129
2126
|
if (!Object.keys(rowSelection).length) {
|
|
2130
2127
|
return {
|
|
2131
2128
|
rows: [],
|
|
@@ -2675,7 +2672,7 @@ const Sorting = {
|
|
|
2675
2672
|
|
|
2676
2673
|
instance.setSorting(defaultState ? [] : (_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.sorting) != null ? _instance$initialStat : []);
|
|
2677
2674
|
},
|
|
2678
|
-
getPreSortedRowModel: () => instance.
|
|
2675
|
+
getPreSortedRowModel: () => instance.getGroupedRowModel(),
|
|
2679
2676
|
getSortedRowModel: () => {
|
|
2680
2677
|
if (!instance._getSortedRowModel && instance.options.getSortedRowModel) {
|
|
2681
2678
|
instance._getSortedRowModel = instance.options.getSortedRowModel(instance);
|