@tanstack/svelte-table 8.5.3 → 8.5.4

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.
@@ -2159,7 +2159,7 @@ const RowSelection = {
2159
2159
  // return table.options.enableGroupingRowSelection ?? false
2160
2160
  // },
2161
2161
  getIsAllRowsSelected: () => {
2162
- const preGroupedFlatRows = table.getPreGroupedRowModel().flatRows;
2162
+ const preGroupedFlatRows = table.getFilteredRowModel().flatRows;
2163
2163
  const {
2164
2164
  rowSelection
2165
2165
  } = table.getState();
@@ -2190,7 +2190,7 @@ const RowSelection = {
2190
2190
  var _table$getState$rowSe;
2191
2191
 
2192
2192
  const totalSelected = Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
2193
- return totalSelected > 0 && totalSelected < table.getCoreRowModel().flatRows.length;
2193
+ return totalSelected > 0 && totalSelected < table.getFilteredRowModel().flatRows.length;
2194
2194
  },
2195
2195
  getIsSomePageRowsSelected: () => {
2196
2196
  const paginationFlatRows = table.getPaginationRowModel().flatRows;