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