@tanstack/svelte-table 8.3.0 → 8.3.1
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 -2
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +3 -2
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +47 -47
- package/build/umd/index.development.js +3 -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
|
@@ -2157,7 +2157,7 @@ const RowSelection = {
|
|
|
2157
2157
|
let isAllRowsSelected = Boolean(preFilteredFlatRows.length && Object.keys(rowSelection).length);
|
|
2158
2158
|
|
|
2159
2159
|
if (isAllRowsSelected) {
|
|
2160
|
-
if (preFilteredFlatRows.some(row => !rowSelection[row.id])) {
|
|
2160
|
+
if (preFilteredFlatRows.some(row => row.getCanSelect() && !rowSelection[row.id])) {
|
|
2161
2161
|
isAllRowsSelected = false;
|
|
2162
2162
|
}
|
|
2163
2163
|
}
|
|
@@ -2180,7 +2180,8 @@ const RowSelection = {
|
|
|
2180
2180
|
getIsSomeRowsSelected: () => {
|
|
2181
2181
|
var _table$getState$rowSe;
|
|
2182
2182
|
|
|
2183
|
-
|
|
2183
|
+
const totalSelected = Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
|
|
2184
|
+
return totalSelected < table.getCoreRowModel().flatRows.length;
|
|
2184
2185
|
},
|
|
2185
2186
|
getIsSomePageRowsSelected: () => {
|
|
2186
2187
|
const paginationFlatRows = table.getPaginationRowModel().flatRows;
|