@tanstack/react-table 8.5.22 → 8.5.24
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 +19 -8
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +19 -8
- 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 +19 -8
- 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
|
@@ -2854,19 +2854,30 @@ function filterRowModelFromLeafs(rowsToFilter, filterRow, table) {
|
|
|
2854
2854
|
for (let i = 0; i < rowsToFilter.length; i++) {
|
|
2855
2855
|
var _row$subRows;
|
|
2856
2856
|
let row = rowsToFilter[i];
|
|
2857
|
+
const newRow = createRow(table, row.id, row.original, row.index, row.depth);
|
|
2858
|
+
newRow.columnFilters = row.columnFilters;
|
|
2857
2859
|
if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
|
|
2858
|
-
const newRow = createRow(table, row.id, row.original, row.index, row.depth);
|
|
2859
|
-
newRow.columnFilters = row.columnFilters;
|
|
2860
2860
|
newRow.subRows = recurseFilterRows(row.subRows);
|
|
2861
|
-
|
|
2861
|
+
row = newRow;
|
|
2862
|
+
if (filterRow(row) && !newRow.subRows.length) {
|
|
2863
|
+
rows.push(row);
|
|
2864
|
+
newFilteredRowsById[row.id] = row;
|
|
2865
|
+
newFilteredRowsById[i] = row;
|
|
2866
|
+
continue;
|
|
2867
|
+
}
|
|
2868
|
+
if (filterRow(row) || newRow.subRows.length) {
|
|
2869
|
+
rows.push(row);
|
|
2870
|
+
newFilteredRowsById[row.id] = row;
|
|
2871
|
+
newFilteredRowsById[i] = row;
|
|
2862
2872
|
continue;
|
|
2863
2873
|
}
|
|
2874
|
+
} else {
|
|
2864
2875
|
row = newRow;
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2876
|
+
if (filterRow(row)) {
|
|
2877
|
+
rows.push(row);
|
|
2878
|
+
newFilteredRowsById[row.id] = row;
|
|
2879
|
+
newFilteredRowsById[i] = row;
|
|
2880
|
+
}
|
|
2870
2881
|
}
|
|
2871
2882
|
}
|
|
2872
2883
|
return rows;
|