@genesislcap/grid-pro 14.151.2-alpha-6dc6e2c.0 → 14.152.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.
Files changed (50) hide show
  1. package/dist/custom-elements.json +245 -73
  2. package/dist/dts/datasource/base.datasource.d.ts +1 -2
  3. package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
  4. package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
  5. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
  6. package/dist/dts/grid-pro.d.ts +22 -13
  7. package/dist/dts/grid-pro.d.ts.map +1 -1
  8. package/dist/dts/index.d.ts +1 -0
  9. package/dist/dts/index.d.ts.map +1 -1
  10. package/dist/dts/state-persistence/index.d.ts +4 -0
  11. package/dist/dts/state-persistence/index.d.ts.map +1 -0
  12. package/dist/dts/state-persistence/kv-state.d.ts +15 -0
  13. package/dist/dts/state-persistence/kv-state.d.ts.map +1 -0
  14. package/dist/dts/state-persistence/local-state.d.ts +13 -0
  15. package/dist/dts/state-persistence/local-state.d.ts.map +1 -0
  16. package/dist/dts/state-persistence/state-persistence.d.ts +24 -0
  17. package/dist/dts/state-persistence/state-persistence.d.ts.map +1 -0
  18. package/dist/esm/datasource/base.datasource.js +1 -25
  19. package/dist/esm/datasource/server-side.datasource.js +41 -39
  20. package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +65 -61
  21. package/dist/esm/grid-pro.js +104 -114
  22. package/dist/esm/index.js +1 -0
  23. package/dist/esm/state-persistence/index.js +3 -0
  24. package/dist/esm/state-persistence/kv-state.js +58 -0
  25. package/dist/esm/state-persistence/local-state.js +30 -0
  26. package/dist/esm/state-persistence/state-persistence.js +7 -0
  27. package/dist/grid-pro.api.json +780 -203
  28. package/dist/grid-pro.d.ts +71 -16
  29. package/docs/api/grid-pro.gridpro.applytemplatedefinitions.md +2 -2
  30. package/docs/api/grid-pro.gridpro.getsavedcolumnstate.md +3 -3
  31. package/docs/api/grid-pro.gridpro.md +2 -3
  32. package/docs/api/grid-pro.gridpro.mergeallcolumndefsandstates.md +2 -2
  33. package/docs/api/grid-pro.gridpro.statepersistence.md +11 -0
  34. package/docs/api/grid-pro.kvstoragestatepersistence.getcolumnstate.md +22 -0
  35. package/docs/api/grid-pro.kvstoragestatepersistence.kvstorage.md +11 -0
  36. package/docs/api/grid-pro.kvstoragestatepersistence.md +29 -0
  37. package/docs/api/grid-pro.kvstoragestatepersistence.savecolumnstate.md +23 -0
  38. package/docs/api/grid-pro.kvstoragestatepersistence.session.md +11 -0
  39. package/docs/api/grid-pro.localstoragestatepersistence.getcolumnstate.md +22 -0
  40. package/docs/api/grid-pro.localstoragestatepersistence.md +28 -0
  41. package/docs/api/grid-pro.localstoragestatepersistence.savecolumnstate.md +23 -0
  42. package/docs/api/grid-pro.localstoragestatepersistence.session.md +11 -0
  43. package/docs/api/grid-pro.md +3 -0
  44. package/docs/api/grid-pro.statepersistence.getcolumnstate.md +24 -0
  45. package/docs/api/grid-pro.statepersistence.md +21 -0
  46. package/docs/api/grid-pro.statepersistence.savecolumnstate.md +25 -0
  47. package/docs/api-report.md +42 -11
  48. package/package.json +14 -13
  49. package/docs/api/grid-pro.gridpro.selectedcolid.md +0 -11
  50. package/docs/api/grid-pro.gridpro.selectedrowid.md +0 -11
@@ -33,14 +33,16 @@ import type { IServerSideGetRowsParams } from '@ag-grid-community/core';
33
33
  import type { IServerSideRowModel } from '@ag-grid-community/core';
34
34
  import { ITooltipComp } from '@ag-grid-community/core';
35
35
  import { ITooltipParams } from '@ag-grid-community/core';
36
+ import { KVStorage } from '@genesislcap/foundation-comms';
36
37
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
37
38
  import { Logger } from '@genesislcap/foundation-logger';
38
39
  import { MetadataDetail } from '@genesislcap/foundation-comms';
39
40
  import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
40
- import { RowDataTransaction } from '@ag-grid-community/core';
41
+ import type { RowDataTransaction } from '@ag-grid-community/core';
41
42
  import type { RowNodeTransaction } from '@ag-grid-community/core';
42
- import { ServerSideTransaction } from '@ag-grid-community/core';
43
+ import type { ServerSideTransaction } from '@ag-grid-community/core';
43
44
  import type { ServerSideTransactionResult } from '@ag-grid-community/core';
45
+ import { Session } from '@genesislcap/foundation-comms';
44
46
  import { SocketObservable } from '@genesislcap/foundation-comms';
45
47
  import { Swatch } from '@microsoft/fast-components';
46
48
  import { SwatchRGB } from '@microsoft/fast-components';
@@ -1166,7 +1168,7 @@ export declare const GridOptionsConfig: InterfaceSymbol<GridOptionsConfig>;
1166
1168
  export declare class GridPro extends GridPro_base {
1167
1169
  columnApi: ColumnApi;
1168
1170
  gridApi: GridApi;
1169
- private session;
1171
+ statePersistence: StatePersistence;
1170
1172
  /**
1171
1173
  * Timeout function used to debounce resize calls
1172
1174
  * @internal
@@ -1229,18 +1231,13 @@ export declare class GridPro extends GridPro_base {
1229
1231
  rowHeight: number;
1230
1232
  theme: string;
1231
1233
  themeChanged(oldValue: string, newValue: string): void;
1232
- /**
1233
- * If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
1234
- * @remarks Defaults to false
1235
- * @alpha
1236
- */
1237
- blockScrollingOnContextMenu: boolean;
1238
1234
  classNames: string;
1239
1235
  agGrid: Grid;
1240
1236
  gridSlot: HTMLSlotElement;
1241
1237
  gridComponents: {
1242
1238
  [componentName: string]: any;
1243
1239
  };
1240
+ private columnState;
1244
1241
  protected agAttributes: Record<string, string>;
1245
1242
  protected agPropertiesMap: Record<string, string>;
1246
1243
  protected agGridOptions: GridOptions;
@@ -1248,8 +1245,6 @@ export declare class GridPro extends GridPro_base {
1248
1245
  private rehydrationAttempted;
1249
1246
  private gridEventsQueue;
1250
1247
  private filterConfig;
1251
- selectedRowId: string;
1252
- selectedColId: string;
1253
1248
  /**
1254
1249
  * Injectable config that allows to change grid options on an app level basis
1255
1250
  * To modify options, register instance of the config in DOM container that is
@@ -1285,12 +1280,12 @@ export declare class GridPro extends GridPro_base {
1285
1280
  private removeConfigWidthsToAutosize;
1286
1281
  private saveColumnState;
1287
1282
  /**
1288
- * Gets the saved grid ColumnState[] from local storage
1283
+ * Gets the saved grid ColumnState[] from storage
1289
1284
  * @remarks This is used to restore the grid state when the grid is rehydrated
1290
1285
  * @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
1291
1286
  * @public
1292
1287
  */
1293
- getSavedColumnState(): ColumnState[];
1288
+ getSavedColumnState(): Promise<ColumnState[]>;
1294
1289
  private restoreColumnState;
1295
1290
  private cacheFilterConfig;
1296
1291
  private restoreCachedFilterConfig;
@@ -1300,6 +1295,7 @@ export declare class GridPro extends GridPro_base {
1300
1295
  get gridOptions(): GridOptions;
1301
1296
  get gridProDatasource(): GridProBaseDatasource;
1302
1297
  set gridOptions(options: GridOptions);
1298
+ private initGridOptions;
1303
1299
  /**
1304
1300
  * Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
1305
1301
  * @deprecated use `applyTemplateDefinitions` instead.
@@ -1307,7 +1303,7 @@ export declare class GridPro extends GridPro_base {
1307
1303
  * @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
1308
1304
  * @returns The merged column definitions.
1309
1305
  */
1310
- applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): ColDef<any>[];
1306
+ applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
1311
1307
  /**
1312
1308
  * Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
1313
1309
  * @public
@@ -1317,7 +1313,7 @@ export declare class GridPro extends GridPro_base {
1317
1313
  * on the `grid-pro-genesis-datasource` element. Defaults to false but `grid-pro-genesis-datasource` will set this to true.
1318
1314
  * @returns The merged column definitions.
1319
1315
  */
1320
- mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): ColDef<any>[];
1316
+ mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
1321
1317
  get observedAttributes(): string[];
1322
1318
  agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
1323
1319
  globalEventListener(eventType: any, event: any): void;
@@ -1368,6 +1364,20 @@ declare const GridPro_base: (new (...args: any[]) => {
1368
1364
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
1369
1365
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1370
1366
  readonly attributes: NamedNodeMap;
1367
+ /**
1368
+ * Injectable config that allows to change grid options on an app level basis
1369
+ * To modify options, register instance of the config in DOM container that is
1370
+ * above the grid or on the top level of the application, so it applies to all grids.
1371
+ *
1372
+ * @example
1373
+ * ```
1374
+ * DI.getOrCreateDOMContainer().register([
1375
+ * Registration.instance<GridOptionsConfig>(GridOptionsConfig, {
1376
+ * headerHeight: 50,
1377
+ * }),
1378
+ * ]);
1379
+ * ```
1380
+ */
1371
1381
  readonly classList: DOMTokenList;
1372
1382
  className: string;
1373
1383
  readonly clientHeight: number;
@@ -1664,7 +1674,6 @@ declare class GridProBaseDatasource extends GenesisGridDatasourceElement {
1664
1674
  protected applyAllAgTransactions(): void;
1665
1675
  private flashAddedCells;
1666
1676
  private applyMappedAgTransaction;
1667
- private setPreviouslySelectedCell;
1668
1677
  protected applyTransaction(agTransaction: RowDataTransaction): any;
1669
1678
  protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
1670
1679
  /**
@@ -2555,6 +2564,28 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
2555
2564
  */
2556
2565
  export declare const gridProTemplate: ViewTemplate;
2557
2566
 
2567
+ /**
2568
+ * Implementation for the KV Storage State Persistence interface.
2569
+ * @public
2570
+ */
2571
+ export declare class KVStorageStatePersistence implements StatePersistence {
2572
+ kvStorage: KVStorage;
2573
+ session: Session;
2574
+ getColumnState(persistColumnStateKey: string): Promise<ColumnState[]>;
2575
+ saveColumnState(persistColumnStateKey: string, columnState: ColumnState[]): Promise<void>;
2576
+ private migrateLocalStorageToKVStorage;
2577
+ }
2578
+
2579
+ /**
2580
+ * Implementation for the Local Storage State Persistence interface.
2581
+ * @public
2582
+ */
2583
+ export declare class LocalStorageStatePersistence implements StatePersistence {
2584
+ session: Session;
2585
+ getColumnState(persistColumnStateKey: string): Promise<ColumnState[]>;
2586
+ saveColumnState(persistColumnStateKey: string, columnState: ColumnState[]): Promise<void>;
2587
+ }
2588
+
2558
2589
  /**
2559
2590
  * Logger for the grid-pro package
2560
2591
  * @public
@@ -2692,6 +2723,30 @@ export declare class SelectRenderer extends FoundationElement implements ICellRe
2692
2723
  selectionChanged: (e: any) => void;
2693
2724
  }
2694
2725
 
2726
+ /**
2727
+ * Represents a state persistence and its capabilities.
2728
+ * Provides methods to set and get columns from the storage.
2729
+ * @public
2730
+ */
2731
+ export declare interface StatePersistence {
2732
+ /**
2733
+ * Returns the column state for the given key.
2734
+ * @public
2735
+ */
2736
+ getColumnState(persistColumnStateKey: string): Promise<ColumnState[]>;
2737
+ /**
2738
+ * Saves the column state for the given key.
2739
+ * @public
2740
+ */
2741
+ saveColumnState(persistColumnStateKey: string, columnState: ColumnState[]): Promise<void>;
2742
+ }
2743
+
2744
+ /**
2745
+ * The DI token for the StatePersistence interface.
2746
+ * @internal
2747
+ */
2748
+ export declare const StatePersistence: InterfaceSymbol<StatePersistence>;
2749
+
2695
2750
  declare class StreamBaseDatasource {
2696
2751
  protected rowId: string;
2697
2752
  rowData: Map<string, any>;
@@ -14,7 +14,7 @@ Will merge templated column definitions with `columnDefs` plus localStorage's co
14
14
  **Signature:**
15
15
 
16
16
  ```typescript
17
- applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): ColDef<any>[];
17
+ applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
18
18
  ```
19
19
 
20
20
  ## Parameters
@@ -26,7 +26,7 @@ applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boole
26
26
 
27
27
  **Returns:**
28
28
 
29
- ColDef&lt;any&gt;\[\]
29
+ Promise&lt;ColDef&lt;any&gt;\[\]&gt;
30
30
 
31
31
  The merged column definitions.
32
32
 
@@ -4,16 +4,16 @@
4
4
 
5
5
  ## GridPro.getSavedColumnState() method
6
6
 
7
- Gets the saved grid ColumnState\[\] from local storage
7
+ Gets the saved grid ColumnState\[\] from storage
8
8
 
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getSavedColumnState(): ColumnState[];
12
+ getSavedColumnState(): Promise<ColumnState[]>;
13
13
  ```
14
14
  **Returns:**
15
15
 
16
- ColumnState\[\]
16
+ Promise&lt;ColumnState\[\]&gt;
17
17
 
18
18
  ## Remarks
19
19
 
@@ -58,8 +58,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
58
58
  | [onlyTemplateColDefs](./grid-pro.gridpro.onlytemplatecoldefs.md) | | boolean | |
59
59
  | [persistColumnStateKey](./grid-pro.gridpro.persistcolumnstatekey.md) | | string | The key to use for persisting the column state in local storage. |
60
60
  | [rowHeight](./grid-pro.gridpro.rowheight.md) | | number | |
61
- | [selectedColId](./grid-pro.gridpro.selectedcolid.md) | | string | |
62
- | [selectedRowId](./grid-pro.gridpro.selectedrowid.md) | | string | |
61
+ | [statePersistence](./grid-pro.gridpro.statepersistence.md) | | [StatePersistence](./grid-pro.statepersistence.md) | |
63
62
  | [theme](./grid-pro.gridpro.theme.md) | | string | |
64
63
 
65
64
  ## Methods
@@ -72,7 +71,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
72
71
  | [combineAllGridComponents(gridOptionsComponents)](./grid-pro.gridpro.combineallgridcomponents.md) | | |
73
72
  | [connectedCallback()](./grid-pro.gridpro.connectedcallback.md) | | |
74
73
  | [disconnectedCallback()](./grid-pro.gridpro.disconnectedcallback.md) | | |
75
- | [getSavedColumnState()](./grid-pro.gridpro.getsavedcolumnstate.md) | | Gets the saved grid ColumnState\[\] from local storage |
74
+ | [getSavedColumnState()](./grid-pro.gridpro.getsavedcolumnstate.md) | | Gets the saved grid ColumnState\[\] from storage |
76
75
  | [globalEventListener(eventType, event)](./grid-pro.gridpro.globaleventlistener.md) | | |
77
76
  | [mergeAllColumnDefsAndStates(columnDefs, deferredColumnDefsOrState)](./grid-pro.gridpro.mergeallcolumndefsandstates.md) | | Will merge templated column definitions with <code>columnDefs</code> plus localStorage's column state or <code>deferredColumnStates</code>. |
78
77
  | [statePersistanceEnabled()](./grid-pro.gridpro.statepersistanceenabled.md) | | |
@@ -9,7 +9,7 @@ Will merge templated column definitions with `columnDefs` plus localStorage's co
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): ColDef<any>[];
12
+ mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -21,7 +21,7 @@ mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: bo
21
21
 
22
22
  **Returns:**
23
23
 
24
- ColDef&lt;any&gt;\[\]
24
+ Promise&lt;ColDef&lt;any&gt;\[\]&gt;
25
25
 
26
26
  The merged column definitions.
27
27
 
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [GridPro](./grid-pro.gridpro.md) &gt; [statePersistence](./grid-pro.gridpro.statepersistence.md)
4
+
5
+ ## GridPro.statePersistence property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ statePersistence: StatePersistence;
11
+ ```
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [KVStorageStatePersistence](./grid-pro.kvstoragestatepersistence.md) &gt; [getColumnState](./grid-pro.kvstoragestatepersistence.getcolumnstate.md)
4
+
5
+ ## KVStorageStatePersistence.getColumnState() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ getColumnState(persistColumnStateKey: string): Promise<ColumnState[]>;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | persistColumnStateKey | string | |
18
+
19
+ **Returns:**
20
+
21
+ Promise&lt;ColumnState\[\]&gt;
22
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [KVStorageStatePersistence](./grid-pro.kvstoragestatepersistence.md) &gt; [kvStorage](./grid-pro.kvstoragestatepersistence.kvstorage.md)
4
+
5
+ ## KVStorageStatePersistence.kvStorage property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ kvStorage: KVStorage;
11
+ ```
@@ -0,0 +1,29 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [KVStorageStatePersistence](./grid-pro.kvstoragestatepersistence.md)
4
+
5
+ ## KVStorageStatePersistence class
6
+
7
+ Implementation for the KV Storage State Persistence interface.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export declare class KVStorageStatePersistence implements StatePersistence
13
+ ```
14
+ **Implements:** [StatePersistence](./grid-pro.statepersistence.md)
15
+
16
+ ## Properties
17
+
18
+ | Property | Modifiers | Type | Description |
19
+ | --- | --- | --- | --- |
20
+ | [kvStorage](./grid-pro.kvstoragestatepersistence.kvstorage.md) | | KVStorage | |
21
+ | [session](./grid-pro.kvstoragestatepersistence.session.md) | | Session | |
22
+
23
+ ## Methods
24
+
25
+ | Method | Modifiers | Description |
26
+ | --- | --- | --- |
27
+ | [getColumnState(persistColumnStateKey)](./grid-pro.kvstoragestatepersistence.getcolumnstate.md) | | |
28
+ | [saveColumnState(persistColumnStateKey, columnState)](./grid-pro.kvstoragestatepersistence.savecolumnstate.md) | | |
29
+
@@ -0,0 +1,23 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [KVStorageStatePersistence](./grid-pro.kvstoragestatepersistence.md) &gt; [saveColumnState](./grid-pro.kvstoragestatepersistence.savecolumnstate.md)
4
+
5
+ ## KVStorageStatePersistence.saveColumnState() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ saveColumnState(persistColumnStateKey: string, columnState: ColumnState[]): Promise<void>;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | persistColumnStateKey | string | |
18
+ | columnState | ColumnState\[\] | |
19
+
20
+ **Returns:**
21
+
22
+ Promise&lt;void&gt;
23
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [KVStorageStatePersistence](./grid-pro.kvstoragestatepersistence.md) &gt; [session](./grid-pro.kvstoragestatepersistence.session.md)
4
+
5
+ ## KVStorageStatePersistence.session property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ session: Session;
11
+ ```
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [LocalStorageStatePersistence](./grid-pro.localstoragestatepersistence.md) &gt; [getColumnState](./grid-pro.localstoragestatepersistence.getcolumnstate.md)
4
+
5
+ ## LocalStorageStatePersistence.getColumnState() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ getColumnState(persistColumnStateKey: string): Promise<ColumnState[]>;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | persistColumnStateKey | string | |
18
+
19
+ **Returns:**
20
+
21
+ Promise&lt;ColumnState\[\]&gt;
22
+
@@ -0,0 +1,28 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [LocalStorageStatePersistence](./grid-pro.localstoragestatepersistence.md)
4
+
5
+ ## LocalStorageStatePersistence class
6
+
7
+ Implementation for the Local Storage State Persistence interface.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export declare class LocalStorageStatePersistence implements StatePersistence
13
+ ```
14
+ **Implements:** [StatePersistence](./grid-pro.statepersistence.md)
15
+
16
+ ## Properties
17
+
18
+ | Property | Modifiers | Type | Description |
19
+ | --- | --- | --- | --- |
20
+ | [session](./grid-pro.localstoragestatepersistence.session.md) | | Session | |
21
+
22
+ ## Methods
23
+
24
+ | Method | Modifiers | Description |
25
+ | --- | --- | --- |
26
+ | [getColumnState(persistColumnStateKey)](./grid-pro.localstoragestatepersistence.getcolumnstate.md) | | |
27
+ | [saveColumnState(persistColumnStateKey, columnState)](./grid-pro.localstoragestatepersistence.savecolumnstate.md) | | |
28
+
@@ -0,0 +1,23 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [LocalStorageStatePersistence](./grid-pro.localstoragestatepersistence.md) &gt; [saveColumnState](./grid-pro.localstoragestatepersistence.savecolumnstate.md)
4
+
5
+ ## LocalStorageStatePersistence.saveColumnState() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ saveColumnState(persistColumnStateKey: string, columnState: ColumnState[]): Promise<void>;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | persistColumnStateKey | string | |
18
+ | columnState | ColumnState\[\] | |
19
+
20
+ **Returns:**
21
+
22
+ Promise&lt;void&gt;
23
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [LocalStorageStatePersistence](./grid-pro.localstoragestatepersistence.md) &gt; [session](./grid-pro.localstoragestatepersistence.session.md)
4
+
5
+ ## LocalStorageStatePersistence.session property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ session: Session;
11
+ ```
@@ -20,6 +20,8 @@
20
20
  | [GridProClientSideDatasource](./grid-pro.gridproclientsidedatasource.md) | The Genesis Datasource element, for client-side \| CSRM-compatible data fetching and used exclusively by the GridPro element. |
21
21
  | [GridProColumn](./grid-pro.gridprocolumn.md) | The Grid Pro Column element. |
22
22
  | [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) | The Genesis Datasource element, for CSRM-compatible data fetching and used exclusively by the GridPro element. |
23
+ | [KVStorageStatePersistence](./grid-pro.kvstoragestatepersistence.md) | Implementation for the KV Storage State Persistence interface. |
24
+ | [LocalStorageStatePersistence](./grid-pro.localstoragestatepersistence.md) | Implementation for the Local Storage State Persistence interface. |
23
25
  | [MultiselectEditor](./grid-pro.multiselecteditor.md) | The AG Multiselect Editor element. |
24
26
  | [NumberEditor](./grid-pro.numbereditor.md) | The AG Number Editor element. |
25
27
  | [SelectEditor](./grid-pro.selecteditor.md) | The AG Select Editor element. |
@@ -55,6 +57,7 @@
55
57
  | [MultiselectEditorParams](./grid-pro.multiselecteditorparams.md) | Parameters used to configure [MultiselectEditor](./grid-pro.multiselecteditor.md) |
56
58
  | [NumberEditorParams](./grid-pro.numbereditorparams.md) | Parameters used to configure [NumberEditor](./grid-pro.numbereditor.md) |
57
59
  | [SelectEditorParams](./grid-pro.selecteditorparams.md) | Parameters used to configure [SelectEditor](./grid-pro.selecteditor.md) |
60
+ | [StatePersistence](./grid-pro.statepersistence.md) | Represents a state persistence and its capabilities. Provides methods to set and get columns from the storage. |
58
61
  | [StringEditorParams](./grid-pro.stringeditorparams.md) | Parameters used to configure [StringEditor](./grid-pro.stringeditor.md) |
59
62
 
60
63
  ## Variables
@@ -0,0 +1,24 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [StatePersistence](./grid-pro.statepersistence.md) &gt; [getColumnState](./grid-pro.statepersistence.getcolumnstate.md)
4
+
5
+ ## StatePersistence.getColumnState() method
6
+
7
+ Returns the column state for the given key.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getColumnState(persistColumnStateKey: string): Promise<ColumnState[]>;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | persistColumnStateKey | string | |
20
+
21
+ **Returns:**
22
+
23
+ Promise&lt;ColumnState\[\]&gt;
24
+
@@ -0,0 +1,21 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [StatePersistence](./grid-pro.statepersistence.md)
4
+
5
+ ## StatePersistence interface
6
+
7
+ Represents a state persistence and its capabilities. Provides methods to set and get columns from the storage.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface StatePersistence
13
+ ```
14
+
15
+ ## Methods
16
+
17
+ | Method | Description |
18
+ | --- | --- |
19
+ | [getColumnState(persistColumnStateKey)](./grid-pro.statepersistence.getcolumnstate.md) | Returns the column state for the given key. |
20
+ | [saveColumnState(persistColumnStateKey, columnState)](./grid-pro.statepersistence.savecolumnstate.md) | Saves the column state for the given key. |
21
+
@@ -0,0 +1,25 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [StatePersistence](./grid-pro.statepersistence.md) &gt; [saveColumnState](./grid-pro.statepersistence.savecolumnstate.md)
4
+
5
+ ## StatePersistence.saveColumnState() method
6
+
7
+ Saves the column state for the given key.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ saveColumnState(persistColumnStateKey: string, columnState: ColumnState[]): Promise<void>;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | persistColumnStateKey | string | |
20
+ | columnState | ColumnState\[\] | |
21
+
22
+ **Returns:**
23
+
24
+ Promise&lt;void&gt;
25
+