@tanstack/table-core 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.
@@ -510,6 +510,8 @@ function buildHeaderGroups(allColumns, columnsToGroup, table, headerFamily) {
510
510
 
511
511
  //
512
512
 
513
+ //
514
+
513
515
  const defaultColumnSizing = {
514
516
  size: 150,
515
517
  minSize: 20,
@@ -816,7 +818,7 @@ const Expanding = {
816
818
  table.setExpanded(defaultState ? {} : (_table$initialState$e = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.expanded) != null ? _table$initialState$e : {});
817
819
  },
818
820
  getCanSomeRowsExpand: () => {
819
- return table.getRowModel().flatRows.some(row => row.getCanExpand());
821
+ return table.getPrePaginationRowModel().flatRows.some(row => row.getCanExpand());
820
822
  },
821
823
  getToggleAllRowsExpandedHandler: () => {
822
824
  return e => {
@@ -920,19 +922,19 @@ const Expanding = {
920
922
  };
921
923
 
922
924
  const includesString = (row, columnId, filterValue) => {
923
- var _row$getValue;
925
+ var _row$getValue, _row$getValue$toStrin, _row$getValue$toStrin2;
924
926
  const search = filterValue.toLowerCase();
925
- return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search));
927
+ 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));
926
928
  };
927
929
  includesString.autoRemove = val => testFalsey(val);
928
930
  const includesStringSensitive = (row, columnId, filterValue) => {
929
- var _row$getValue2;
930
- return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue));
931
+ var _row$getValue2, _row$getValue2$toStri;
932
+ return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : (_row$getValue2$toStri = _row$getValue2.toString()) == null ? void 0 : _row$getValue2$toStri.includes(filterValue));
931
933
  };
932
934
  includesStringSensitive.autoRemove = val => testFalsey(val);
933
935
  const equalsString = (row, columnId, filterValue) => {
934
- var _row$getValue3;
935
- return ((_row$getValue3 = row.getValue(columnId)) == null ? void 0 : _row$getValue3.toLowerCase()) === filterValue.toLowerCase();
936
+ var _row$getValue3, _row$getValue3$toStri;
937
+ 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());
936
938
  };
937
939
  equalsString.autoRemove = val => testFalsey(val);
938
940
  const arrIncludes = (row, columnId, filterValue) => {
@@ -2943,7 +2945,6 @@ const createRow = (table, id, original, rowIndex, depth, subRows, parentId) => {
2943
2945
  // helper.accessor('nested.bar', {
2944
2946
  // cell: info => info.getValue(),
2945
2947
  // })
2946
-
2947
2948
  function createColumnHelper() {
2948
2949
  return {
2949
2950
  accessor: (accessor, column) => {