@tanstack/table-core 9.0.0-beta.53 → 9.0.0-beta.54
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/dist/features/row-selection/rowSelectionFeature.utils.d.ts +2 -1
- package/dist/features/row-selection/rowSelectionFeature.utils.js +3 -2
- package/package.json +1 -1
- package/skills/aggregation/SKILL.md +1 -1
- package/skills/api-not-found/SKILL.md +1 -1
- package/skills/client-vs-server/SKILL.md +1 -1
- package/skills/column-faceting/SKILL.md +1 -1
- package/skills/column-filtering/SKILL.md +1 -1
- package/skills/column-ordering/SKILL.md +1 -1
- package/skills/column-pinning/SKILL.md +1 -1
- package/skills/column-resizing/SKILL.md +1 -1
- package/skills/column-sizing/SKILL.md +1 -1
- package/skills/column-visibility/SKILL.md +1 -1
- package/skills/core/SKILL.md +1 -1
- package/skills/custom-features/SKILL.md +1 -1
- package/skills/expanding/SKILL.md +1 -1
- package/skills/global-filtering/SKILL.md +1 -1
- package/skills/grouping/SKILL.md +1 -1
- package/skills/migrate-v8-to-v9/SKILL.md +1 -1
- package/skills/pagination/SKILL.md +1 -1
- package/skills/row-pinning/SKILL.md +1 -1
- package/skills/row-selection/SKILL.md +1 -1
- package/skills/sorting/SKILL.md +1 -1
- package/skills/table-features/SKILL.md +1 -1
- package/skills/typescript/SKILL.md +1 -1
|
@@ -211,7 +211,8 @@ declare function table_getToggleAllPageRowsSelectedHandler<TFeatures extends Tab
|
|
|
211
211
|
* Selects or deselects this row.
|
|
212
212
|
*
|
|
213
213
|
* Omitting `value` toggles the row. Child rows are selected recursively unless
|
|
214
|
-
* `opts.selectChildren` is `false
|
|
214
|
+
* `opts.selectChildren` is `false`, sub-row selection is disabled, or the row
|
|
215
|
+
* only supports single selection.
|
|
215
216
|
*
|
|
216
217
|
* @example
|
|
217
218
|
* ```ts
|
|
@@ -277,7 +277,8 @@ function table_getToggleAllPageRowsSelectedHandler(table) {
|
|
|
277
277
|
* Selects or deselects this row.
|
|
278
278
|
*
|
|
279
279
|
* Omitting `value` toggles the row. Child rows are selected recursively unless
|
|
280
|
-
* `opts.selectChildren` is `false
|
|
280
|
+
* `opts.selectChildren` is `false`, sub-row selection is disabled, or the row
|
|
281
|
+
* only supports single selection.
|
|
281
282
|
*
|
|
282
283
|
* @example
|
|
283
284
|
* ```ts
|
|
@@ -293,7 +294,7 @@ function row_toggleSelected(row, value, opts) {
|
|
|
293
294
|
table_setRowSelection(row.table, (old) => {
|
|
294
295
|
value = typeof value !== "undefined" ? value : !isSelected;
|
|
295
296
|
const rowSelection = Object.assign(makeObjectMap(), old);
|
|
296
|
-
mutateRowIsSelected(rowSelection, row.id, value, opts?.selectChildren ?? true, row.table);
|
|
297
|
+
mutateRowIsSelected(rowSelection, row.id, value, (opts?.selectChildren ?? true) && row_getCanMultiSelect(row), row.table);
|
|
297
298
|
return rowSelection;
|
|
298
299
|
});
|
|
299
300
|
}
|
package/package.json
CHANGED
package/skills/core/SKILL.md
CHANGED
|
@@ -5,7 +5,7 @@ description: >
|
|
|
5
5
|
metadata:
|
|
6
6
|
type: sub-skill
|
|
7
7
|
library: '@tanstack/table-core'
|
|
8
|
-
library_version: '9.0.0-beta.
|
|
8
|
+
library_version: '9.0.0-beta.54'
|
|
9
9
|
requires: ['core', 'table-features', 'typescript']
|
|
10
10
|
sources:
|
|
11
11
|
- 'TanStack/table:docs/framework/react/guide/custom-features.md'
|
package/skills/grouping/SKILL.md
CHANGED
|
@@ -5,7 +5,7 @@ description: >
|
|
|
5
5
|
metadata:
|
|
6
6
|
type: lifecycle
|
|
7
7
|
library: '@tanstack/table-core'
|
|
8
|
-
library_version: '9.0.0-beta.
|
|
8
|
+
library_version: '9.0.0-beta.54'
|
|
9
9
|
requires: ['core', 'table-features', 'typescript']
|
|
10
10
|
sources:
|
|
11
11
|
- 'TanStack/table:docs/framework/react/guide/migrating.md'
|
package/skills/sorting/SKILL.md
CHANGED