@tanstack/svelte-table 8.2.2 → 8.2.3
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 +7 -1
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +7 -1
- 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 +7 -1
- 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
|
@@ -1992,6 +1992,10 @@ const RowSelection = {
|
|
|
1992
1992
|
|
|
1993
1993
|
if (value) {
|
|
1994
1994
|
preGroupedFlatRows.forEach(row => {
|
|
1995
|
+
if (!row.getCanSelect()) {
|
|
1996
|
+
return;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1995
1999
|
rowSelection[row.id] = true;
|
|
1996
2000
|
});
|
|
1997
2001
|
} else {
|
|
@@ -2266,7 +2270,9 @@ const mutateRowIsSelected = (selectedRowIds, id, value, table) => {
|
|
|
2266
2270
|
Object.keys(selectedRowIds).forEach(key => delete selectedRowIds[key]);
|
|
2267
2271
|
}
|
|
2268
2272
|
|
|
2269
|
-
|
|
2273
|
+
if (row.getCanSelect()) {
|
|
2274
|
+
selectedRowIds[id] = true;
|
|
2275
|
+
}
|
|
2270
2276
|
} else {
|
|
2271
2277
|
delete selectedRowIds[id];
|
|
2272
2278
|
} // }
|