@homebound/beam 2.124.3 → 2.125.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.
@@ -28,6 +28,8 @@ export declare type GridTableApi<R extends Kinded> = {
28
28
  /** Returns the currently-selected rows. */
29
29
  getSelectedRows(): GridDataRow<R>[];
30
30
  getSelectedRows<K extends R["kind"]>(kind: K): GridDataRow<DiscriminateUnion<R, "kind", K>>[];
31
+ /** Deselects all rows */
32
+ clearSelections(): void;
31
33
  /** Sets the internal state of 'activeRowId' */
32
34
  setActiveRowId: (id: string | undefined) => void;
33
35
  };
@@ -39,5 +41,6 @@ export declare class GridTableApiImpl<R extends Kinded> implements GridTableApi<
39
41
  scrollToIndex(index: number): void;
40
42
  getSelectedRowIds(kind?: string): string[];
41
43
  getSelectedRows(kind?: string): any;
44
+ clearSelections(id?: string): void;
42
45
  setActiveRowId(id: string | undefined): void;
43
46
  }
@@ -59,6 +59,9 @@ class GridTableApiImpl {
59
59
  });
60
60
  return selected;
61
61
  }
62
+ clearSelections(id) {
63
+ this.rowState.selectRow("header", false);
64
+ }
62
65
  setActiveRowId(id) {
63
66
  this.rowState.activeRowId = id;
64
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.124.3",
3
+ "version": "2.125.0",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",