@tanstack/table-core 8.5.25 → 8.5.27
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/filterFns.js +2 -2
- package/build/cjs/filterFns.js.map +1 -1
- package/build/cjs/utils/getSortedRowModel.js +3 -3
- package/build/cjs/utils/getSortedRowModel.js.map +1 -1
- package/build/esm/index.js +5 -5
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +314 -314
- package/build/umd/index.development.js +5 -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 +1 -1
- package/src/filterFns.ts +2 -2
- package/src/utils/getSortedRowModel.ts +2 -3
|
@@ -858,12 +858,12 @@
|
|
|
858
858
|
const includesString = (row, columnId, filterValue) => {
|
|
859
859
|
var _row$getValue;
|
|
860
860
|
const search = filterValue.toLowerCase();
|
|
861
|
-
return (_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search);
|
|
861
|
+
return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search));
|
|
862
862
|
};
|
|
863
863
|
includesString.autoRemove = val => testFalsey(val);
|
|
864
864
|
const includesStringSensitive = (row, columnId, filterValue) => {
|
|
865
865
|
var _row$getValue2;
|
|
866
|
-
return (_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue);
|
|
866
|
+
return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue));
|
|
867
867
|
};
|
|
868
868
|
includesStringSensitive.autoRemove = val => testFalsey(val);
|
|
869
869
|
const equalsString = (row, columnId, filterValue) => {
|
|
@@ -3142,11 +3142,11 @@
|
|
|
3142
3142
|
|
|
3143
3143
|
// If there are sub-rows, sort them
|
|
3144
3144
|
sortedData.forEach(row => {
|
|
3145
|
+
var _row$subRows;
|
|
3145
3146
|
sortedFlatRows.push(row);
|
|
3146
|
-
if (
|
|
3147
|
-
|
|
3147
|
+
if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
|
|
3148
|
+
row.subRows = sortData(row.subRows);
|
|
3148
3149
|
}
|
|
3149
|
-
row.subRows = sortData(row.subRows);
|
|
3150
3150
|
});
|
|
3151
3151
|
return sortedData;
|
|
3152
3152
|
};
|