@homebound/beam 2.313.0 → 2.313.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.
|
@@ -48,11 +48,11 @@ class GridTableApiImpl {
|
|
|
48
48
|
}
|
|
49
49
|
// The `any` is not great, but getting the overload to handle the optional kind is annoying
|
|
50
50
|
getSelectedRows(kind) {
|
|
51
|
-
return this.tableState.selectedRows.filter((
|
|
51
|
+
return this.tableState.selectedRows.filter((rs) => !kind || rs.kind === kind).map((rs) => rs.row);
|
|
52
52
|
}
|
|
53
53
|
// The `any` is not great, but getting the overload to handle the optional kind is annoying
|
|
54
54
|
getVisibleRows(kind) {
|
|
55
|
-
return this.tableState.visibleRows.filter((row) => !kind || row.kind === kind);
|
|
55
|
+
return this.tableState.visibleRows.filter((row) => !kind || row.kind === kind).map((rs) => rs.row);
|
|
56
56
|
}
|
|
57
57
|
clearSelections(id) {
|
|
58
58
|
this.tableState.selectRow("header", false);
|
|
@@ -65,7 +65,7 @@ export declare class TableState<R extends Kinded> {
|
|
|
65
65
|
* Returns selected data rows (non-header, non-totals, etc.), ignoring rows that
|
|
66
66
|
* have `row.selectable !== false`.
|
|
67
67
|
*/
|
|
68
|
-
get selectedRows():
|
|
68
|
+
get selectedRows(): RowState<R>[];
|
|
69
69
|
/** Returns kept group row, with the latest kept children, if any. */
|
|
70
70
|
get keptRowGroup(): GridDataRow<R>;
|
|
71
71
|
/** Returns kept rows, i.e. those that were user-selected but then client-side or server-side filtered. */
|
|
@@ -179,9 +179,7 @@ class TableState {
|
|
|
179
179
|
* have `row.selectable !== false`.
|
|
180
180
|
*/
|
|
181
181
|
get selectedRows() {
|
|
182
|
-
return this.rowStates.allStates
|
|
183
|
-
.filter((rs) => rs.isSelected && !utils_1.reservedRowKinds.includes(rs.row.kind))
|
|
184
|
-
.map((rs) => rs.row);
|
|
182
|
+
return this.rowStates.allStates.filter((rs) => rs.isSelected && !utils_1.reservedRowKinds.includes(rs.row.kind));
|
|
185
183
|
}
|
|
186
184
|
/** Returns kept group row, with the latest kept children, if any. */
|
|
187
185
|
get keptRowGroup() {
|