@tanstack/react-table 8.8.2 → 8.8.5

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.
@@ -545,6 +545,8 @@
545
545
 
546
546
  //
547
547
 
548
+ //
549
+
548
550
  const defaultColumnSizing = {
549
551
  size: 150,
550
552
  minSize: 20,
@@ -851,7 +853,7 @@
851
853
  table.setExpanded(defaultState ? {} : (_table$initialState$e = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.expanded) != null ? _table$initialState$e : {});
852
854
  },
853
855
  getCanSomeRowsExpand: () => {
854
- return table.getRowModel().flatRows.some(row => row.getCanExpand());
856
+ return table.getPrePaginationRowModel().flatRows.some(row => row.getCanExpand());
855
857
  },
856
858
  getToggleAllRowsExpandedHandler: () => {
857
859
  return e => {
@@ -955,19 +957,19 @@
955
957
  };
956
958
 
957
959
  const includesString = (row, columnId, filterValue) => {
958
- var _row$getValue;
960
+ var _row$getValue, _row$getValue$toStrin, _row$getValue$toStrin2;
959
961
  const search = filterValue.toLowerCase();
960
- return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search));
962
+ return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : (_row$getValue$toStrin = _row$getValue.toString()) == null ? void 0 : (_row$getValue$toStrin2 = _row$getValue$toStrin.toLowerCase()) == null ? void 0 : _row$getValue$toStrin2.includes(search));
961
963
  };
962
964
  includesString.autoRemove = val => testFalsey(val);
963
965
  const includesStringSensitive = (row, columnId, filterValue) => {
964
- var _row$getValue2;
965
- return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue));
966
+ var _row$getValue2, _row$getValue2$toStri;
967
+ return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : (_row$getValue2$toStri = _row$getValue2.toString()) == null ? void 0 : _row$getValue2$toStri.includes(filterValue));
966
968
  };
967
969
  includesStringSensitive.autoRemove = val => testFalsey(val);
968
970
  const equalsString = (row, columnId, filterValue) => {
969
- var _row$getValue3;
970
- return ((_row$getValue3 = row.getValue(columnId)) == null ? void 0 : _row$getValue3.toLowerCase()) === filterValue.toLowerCase();
971
+ var _row$getValue3, _row$getValue3$toStri;
972
+ return ((_row$getValue3 = row.getValue(columnId)) == null ? void 0 : (_row$getValue3$toStri = _row$getValue3.toString()) == null ? void 0 : _row$getValue3$toStri.toLowerCase()) === (filterValue == null ? void 0 : filterValue.toLowerCase());
971
973
  };
972
974
  equalsString.autoRemove = val => testFalsey(val);
973
975
  const arrIncludes = (row, columnId, filterValue) => {
@@ -2977,7 +2979,6 @@
2977
2979
  // helper.accessor('nested.bar', {
2978
2980
  // cell: info => info.getValue(),
2979
2981
  // })
2980
-
2981
2982
  function createColumnHelper() {
2982
2983
  return {
2983
2984
  accessor: (accessor, column) => {