@tanstack/react-table 8.10.2 → 8.10.3
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.
|
@@ -2001,7 +2001,7 @@
|
|
|
2001
2001
|
...old
|
|
2002
2002
|
};
|
|
2003
2003
|
table.getRowModel().rows.forEach(row => {
|
|
2004
|
-
mutateRowIsSelected(rowSelection, row.id, resolvedValue, table);
|
|
2004
|
+
mutateRowIsSelected(rowSelection, row.id, resolvedValue, true, table);
|
|
2005
2005
|
});
|
|
2006
2006
|
return rowSelection;
|
|
2007
2007
|
});
|
|
@@ -2186,9 +2186,7 @@
|
|
|
2186
2186
|
const selectedRowIds = {
|
|
2187
2187
|
...old
|
|
2188
2188
|
};
|
|
2189
|
-
|
|
2190
|
-
mutateRowIsSelected(selectedRowIds, row.id, value, table);
|
|
2191
|
-
}
|
|
2189
|
+
mutateRowIsSelected(selectedRowIds, row.id, value, (_opts$selectChildren = opts == null ? void 0 : opts.selectChildren) != null ? _opts$selectChildren : true, table);
|
|
2192
2190
|
return selectedRowIds;
|
|
2193
2191
|
});
|
|
2194
2192
|
};
|
|
@@ -2241,7 +2239,7 @@
|
|
|
2241
2239
|
};
|
|
2242
2240
|
}
|
|
2243
2241
|
};
|
|
2244
|
-
const mutateRowIsSelected = (selectedRowIds, id, value, table) => {
|
|
2242
|
+
const mutateRowIsSelected = (selectedRowIds, id, value, includeChildren, table) => {
|
|
2245
2243
|
var _row$subRows;
|
|
2246
2244
|
const row = table.getRow(id);
|
|
2247
2245
|
|
|
@@ -2263,8 +2261,8 @@
|
|
|
2263
2261
|
}
|
|
2264
2262
|
// }
|
|
2265
2263
|
|
|
2266
|
-
if ((_row$subRows = row.subRows) != null && _row$subRows.length && row.getCanSelectSubRows()) {
|
|
2267
|
-
row.subRows.forEach(row => mutateRowIsSelected(selectedRowIds, row.id, value, table));
|
|
2264
|
+
if (includeChildren && (_row$subRows = row.subRows) != null && _row$subRows.length && row.getCanSelectSubRows()) {
|
|
2265
|
+
row.subRows.forEach(row => mutateRowIsSelected(selectedRowIds, row.id, value, includeChildren, table));
|
|
2268
2266
|
}
|
|
2269
2267
|
};
|
|
2270
2268
|
function selectRowsFn(table, rowModel) {
|