@homebound/beam 2.272.3 → 2.273.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.
@@ -42,6 +42,7 @@ export type GridTableApi<R extends Kinded> = {
42
42
  isCollapsedRow: (id: string) => boolean;
43
43
  setVisibleColumns: (ids: string[]) => void;
44
44
  getVisibleColumnIds: () => string[];
45
+ refetchExpandedColumns: () => void;
45
46
  };
46
47
  export declare class GridTableApiImpl<R extends Kinded> implements GridTableApi<R> {
47
48
  readonly tableState: TableState;
@@ -59,4 +60,5 @@ export declare class GridTableApiImpl<R extends Kinded> implements GridTableApi<
59
60
  isCollapsedRow(id: string): boolean;
60
61
  setVisibleColumns(ids: string[]): void;
61
62
  getVisibleColumnIds(): string[];
63
+ refetchExpandedColumns(): void;
62
64
  }
@@ -77,5 +77,8 @@ class GridTableApiImpl {
77
77
  getVisibleColumnIds() {
78
78
  return this.tableState.visibleColumnIds;
79
79
  }
80
+ refetchExpandedColumns() {
81
+ this.tableState.refetchExpandedColumns();
82
+ }
80
83
  }
81
84
  exports.GridTableApiImpl = GridTableApiImpl;
@@ -47,6 +47,7 @@ export declare class TableState {
47
47
  get sortState(): SortState | undefined;
48
48
  setRows(rows: GridDataRow<any>[]): void;
49
49
  setColumns(columns: GridColumnWithId<any>[], visibleColumnsStorageKey: string | undefined): void;
50
+ refetchExpandedColumns(): void;
50
51
  /** Determines which columns to expand immediately vs async */
51
52
  parseAndUpdateExpandedColumns(columnsToExpand: GridColumnWithId<any>[]): Promise<void>;
52
53
  /** Updates the state of which columns are expanded */
@@ -200,6 +200,10 @@ class TableState {
200
200
  this.columns = columns;
201
201
  }
202
202
  }
203
+ refetchExpandedColumns() {
204
+ this.loadedColumns.clear();
205
+ this.parseAndUpdateExpandedColumns(this.columns.filter((c) => this.expandedColumnIds.includes(c.id)));
206
+ }
203
207
  /** Determines which columns to expand immediately vs async */
204
208
  async parseAndUpdateExpandedColumns(columnsToExpand) {
205
209
  // Separate out which columns need to be loaded async vs which can be loaded immediately.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.272.3",
3
+ "version": "2.273.0",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",