@tanstack/react-table 8.5.24 → 8.5.26
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 +3 -3
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +3 -3
- 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 +3 -3
- 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
|
@@ -865,12 +865,12 @@ const Expanding = {
|
|
|
865
865
|
const includesString = (row, columnId, filterValue) => {
|
|
866
866
|
var _row$getValue;
|
|
867
867
|
const search = filterValue.toLowerCase();
|
|
868
|
-
return (_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search);
|
|
868
|
+
return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search));
|
|
869
869
|
};
|
|
870
870
|
includesString.autoRemove = val => testFalsey(val);
|
|
871
871
|
const includesStringSensitive = (row, columnId, filterValue) => {
|
|
872
872
|
var _row$getValue2;
|
|
873
|
-
return (_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue);
|
|
873
|
+
return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue));
|
|
874
874
|
};
|
|
875
875
|
includesStringSensitive.autoRemove = val => testFalsey(val);
|
|
876
876
|
const equalsString = (row, columnId, filterValue) => {
|
|
@@ -1478,7 +1478,7 @@ const Pagination = {
|
|
|
1478
1478
|
table.setPagination(old => {
|
|
1479
1479
|
let pageIndex = functionalUpdate(updater, old.pageIndex);
|
|
1480
1480
|
const maxPageIndex = typeof table.options.pageCount === 'undefined' || table.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : table.options.pageCount - 1;
|
|
1481
|
-
pageIndex = Math.
|
|
1481
|
+
pageIndex = Math.max(0, Math.min(pageIndex, maxPageIndex));
|
|
1482
1482
|
return {
|
|
1483
1483
|
...old,
|
|
1484
1484
|
pageIndex
|