@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.
- package/build/cjs/table-core/build/esm/index.js +2 -2
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +2 -2
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +46 -46
- package/build/umd/index.development.js +2 -2
- 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
|
@@ -2159,7 +2159,7 @@ const RowSelection = {
|
|
|
2159
2159
|
// return table.options.enableGroupingRowSelection ?? false
|
|
2160
2160
|
// },
|
|
2161
2161
|
getIsAllRowsSelected: () => {
|
|
2162
|
-
const preGroupedFlatRows = table.
|
|
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.
|
|
2193
|
+
return totalSelected > 0 && totalSelected < table.getFilteredRowModel().flatRows.length;
|
|
2194
2194
|
},
|
|
2195
2195
|
getIsSomePageRowsSelected: () => {
|
|
2196
2196
|
const paginationFlatRows = table.getPaginationRowModel().flatRows;
|