@homebound/beam 2.162.0 → 2.163.0

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.
@@ -32,6 +32,8 @@ export declare type GridTableApi<R extends Kinded> = {
32
32
  clearSelections(): void;
33
33
  /** Sets the internal state of 'activeRowId' */
34
34
  setActiveRowId: (id: string | undefined) => void;
35
+ /** Set selected state of a row by id */
36
+ selectRow: (id: string, selected?: boolean) => void;
35
37
  };
36
38
  export declare class GridTableApiImpl<R extends Kinded> implements GridTableApi<R> {
37
39
  readonly rowState: RowState;
@@ -43,4 +45,5 @@ export declare class GridTableApiImpl<R extends Kinded> implements GridTableApi<
43
45
  getSelectedRows(kind?: string): any;
44
46
  clearSelections(id?: string): void;
45
47
  setActiveRowId(id: string | undefined): void;
48
+ selectRow(id: string, selected?: boolean): void;
46
49
  }
@@ -58,5 +58,8 @@ class GridTableApiImpl {
58
58
  setActiveRowId(id) {
59
59
  this.rowState.activeRowId = id;
60
60
  }
61
+ selectRow(id, selected = true) {
62
+ this.rowState.selectRow(id, selected);
63
+ }
61
64
  }
62
65
  exports.GridTableApiImpl = GridTableApiImpl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.162.0",
3
+ "version": "2.163.0",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",