@tanstack/react-table 8.2.3 → 8.2.4
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 +16 -5
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +16 -5
- 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 +16 -5
- 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
|
@@ -2260,8 +2260,8 @@ const RowSelection = {
|
|
|
2260
2260
|
const mutateRowIsSelected = (selectedRowIds, id, value, table) => {
|
|
2261
2261
|
var _row$subRows;
|
|
2262
2262
|
|
|
2263
|
-
const row = table.getRow(id);
|
|
2264
|
-
|
|
2263
|
+
const row = table.getRow(id); // const isGrouped = row.getIsGrouped()
|
|
2264
|
+
// if ( // TODO: enforce grouping row selection rules
|
|
2265
2265
|
// !isGrouped ||
|
|
2266
2266
|
// (isGrouped && table.options.enableGroupingRowSelection)
|
|
2267
2267
|
// ) {
|
|
@@ -3576,9 +3576,20 @@ function getGroupedRowModel() {
|
|
|
3576
3576
|
depth = 0;
|
|
3577
3577
|
}
|
|
3578
3578
|
|
|
3579
|
-
//
|
|
3580
|
-
|
|
3581
|
-
|
|
3579
|
+
// Grouping depth has been been met
|
|
3580
|
+
// Stop grouping and simply rewrite thd depth and row relationships
|
|
3581
|
+
if (depth >= existingGrouping.length) {
|
|
3582
|
+
return rows.map(row => {
|
|
3583
|
+
row.depth = depth;
|
|
3584
|
+
groupedFlatRows.push(row);
|
|
3585
|
+
groupedRowsById[row.id] = row;
|
|
3586
|
+
|
|
3587
|
+
if (row.subRows) {
|
|
3588
|
+
row.subRows = groupUpRecursively(row.subRows, depth + 1);
|
|
3589
|
+
}
|
|
3590
|
+
|
|
3591
|
+
return row;
|
|
3592
|
+
});
|
|
3582
3593
|
}
|
|
3583
3594
|
|
|
3584
3595
|
const columnId = existingGrouping[depth]; // Group the rows together for this level
|