@genesislcap/grid-pro 14.199.2-alpha-1ab46f4.0 → 14.199.2

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 (44) hide show
  1. package/README.md +111 -117
  2. package/dist/custom-elements.json +841 -2743
  3. package/dist/dts/datasource/base.datasource.d.ts +6 -22
  4. package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
  5. package/dist/dts/datasource/server-side.datasource.d.ts +83 -27
  6. package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
  7. package/dist/dts/datasource/server-side.grid-definitions.d.ts.map +1 -1
  8. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +13 -13
  9. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
  10. package/dist/dts/grid-pro.d.ts +2 -16
  11. package/dist/dts/grid-pro.d.ts.map +1 -1
  12. package/dist/esm/datasource/base.datasource.js +9 -79
  13. package/dist/esm/datasource/client-side.grid-definitions.js +1 -1
  14. package/dist/esm/datasource/server-side.datasource.js +396 -220
  15. package/dist/esm/datasource/server-side.grid-definitions.js +7 -42
  16. package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +60 -54
  17. package/dist/esm/grid-pro.js +4 -7
  18. package/dist/grid-pro.api.json +142 -21
  19. package/dist/grid-pro.d.ts +112 -77
  20. package/docs/api/grid-pro.gridpro.addeventlistener.md +2 -2
  21. package/docs/api/grid-pro.gridpro.md +1 -1
  22. package/docs/api/{grid-pro.gridprogenesisdatasource.destroy.md → grid-pro.gridprogenesisdatasource.auth.md} +3 -9
  23. package/docs/api/grid-pro.gridprogenesisdatasource.datasource.md +11 -0
  24. package/docs/api/grid-pro.gridprogenesisdatasource.deinit.md +0 -5
  25. package/docs/api/grid-pro.gridprogenesisdatasource.disablepolling.md +11 -0
  26. package/docs/api/grid-pro.gridprogenesisdatasource.handleerrors.md +2 -2
  27. package/docs/api/grid-pro.gridprogenesisdatasource.md +6 -2
  28. package/docs/api/grid-pro.gridprogenesisdatasource.pollinginterval.md +11 -0
  29. package/docs/api/grid-pro.gridprogenesisdatasource.request.md +11 -0
  30. package/docs/api/grid-pro.gridprogenesisdatasource.reset.md +1 -1
  31. package/docs/api-report.md +68 -19
  32. package/package.json +13 -13
  33. package/dist/dts/datasource/base.types.d.ts +0 -22
  34. package/dist/dts/datasource/base.types.d.ts.map +0 -1
  35. package/dist/dts/datasource/server-side.resource-base.d.ts +0 -55
  36. package/dist/dts/datasource/server-side.resource-base.d.ts.map +0 -1
  37. package/dist/dts/datasource/server-side.resource-dataserver.d.ts +0 -20
  38. package/dist/dts/datasource/server-side.resource-dataserver.d.ts.map +0 -1
  39. package/dist/dts/datasource/server-side.resource-reqrep.d.ts +0 -17
  40. package/dist/dts/datasource/server-side.resource-reqrep.d.ts.map +0 -1
  41. package/dist/esm/datasource/base.types.js +0 -1
  42. package/dist/esm/datasource/server-side.resource-base.js +0 -285
  43. package/dist/esm/datasource/server-side.resource-dataserver.js +0 -132
  44. package/dist/esm/datasource/server-side.resource-reqrep.js +0 -131
@@ -1,5 +1,5 @@
1
1
  import { ActionMenuItem } from '@genesislcap/foundation-ui';
2
- import { BehaviorSubject } from 'rxjs';
2
+ import { Auth } from '@genesislcap/foundation-comms';
3
3
  import { Binding } from '@microsoft/fast-element';
4
4
  import { CaptureType } from '@microsoft/fast-element';
5
5
  import { ColDef } from '@ag-grid-community/core';
@@ -18,6 +18,7 @@ import { DatasourceStatusChangedEvent } from '@genesislcap/foundation-comms';
18
18
  import { DOMContainer } from '@genesislcap/foundation-utils';
19
19
  import { ElementStyles } from '@microsoft/fast-element';
20
20
  import { FieldMetadata } from '@genesislcap/foundation-comms';
21
+ import { FilteredDataServerResult } from '@genesislcap/foundation-comms';
21
22
  import { FoundationElement } from '@microsoft/fast-foundation';
22
23
  import { FoundationElementRegistry } from '@microsoft/fast-foundation';
23
24
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
@@ -31,19 +32,23 @@ import { ICellRendererComp } from '@ag-grid-community/core';
31
32
  import { ICellRendererFunc } from '@ag-grid-community/core';
32
33
  import { ICellRendererParams } from '@ag-grid-community/core';
33
34
  import { InterfaceSymbol } from '@microsoft/fast-foundation';
34
- import { IServerSideRowModel } from '@ag-grid-community/core';
35
+ import type { IServerSideDatasource } from '@ag-grid-community/core';
36
+ import type { IServerSideGetRowsParams } from '@ag-grid-community/core';
37
+ import type { IServerSideRowModel } from '@ag-grid-community/core';
35
38
  import { ITooltipComp } from '@ag-grid-community/core';
36
39
  import { ITooltipParams } from '@ag-grid-community/core';
37
40
  import { KVStorage } from '@genesislcap/foundation-comms';
38
41
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
39
42
  import { Logger } from '@genesislcap/foundation-logger';
43
+ import { MetadataDetail } from '@genesislcap/foundation-comms';
40
44
  import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
41
- import { PaginationChangedEvent } from '@ag-grid-community/core';
42
- import { RowDataTransaction } from '@ag-grid-community/core';
43
- import { RowNodeTransaction } from '@ag-grid-community/core';
45
+ import type { RowDataTransaction } from '@ag-grid-community/core';
46
+ import type { RowNodeTransaction } from '@ag-grid-community/core';
44
47
  import type { ServerSideTransaction } from '@ag-grid-community/core';
45
- import { ServerSideTransactionResult } from '@ag-grid-community/core';
48
+ import type { ServerSideTransactionResult } from '@ag-grid-community/core';
46
49
  import { Session } from '@genesislcap/foundation-comms';
50
+ import { SocketObservable } from '@genesislcap/foundation-comms';
51
+ import { SocketSubscription } from '@genesislcap/foundation-comms';
47
52
  import { Swatch } from '@microsoft/fast-components';
48
53
  import { SwatchRGB } from '@microsoft/fast-components';
49
54
  import { TextField } from '@genesislcap/foundation-ui';
@@ -973,7 +978,6 @@ declare interface FuiCellRendererParams extends ICellRendererParams {
973
978
 
974
979
  declare class GenesisGridDatasourceElement extends GenesisGridDatasourceElement_base {
975
980
  connect: Connect;
976
- datasource: Datasource;
977
981
  deferredGridOptions: GridOptions;
978
982
  deferredColumnStates: ColumnState[];
979
983
  /**
@@ -989,16 +993,6 @@ declare class GenesisGridDatasourceElement extends GenesisGridDatasourceElement_
989
993
  orderBy: string;
990
994
  resourceName: string;
991
995
  reverse: boolean;
992
- viewNumber: number;
993
- pollingInterval: number;
994
- disablePolling: boolean;
995
- request: any;
996
- /**
997
- * Attribute to set whether the REQUEST object should be automatically set up.
998
- * @remarks Defaults to `true`. Only applies to REQUEST_SERVER (REQ-REP) resources.
999
- * @privateRemarks To avoid breaking changes for now, once V15 is out this will be removed and the default behavior will be the same as `false` here.
1000
- */
1001
- requestAutoSetup: boolean;
1002
996
  /**
1003
997
  * Attribute to set an unique identifier for the row.
1004
998
  *
@@ -1013,13 +1007,7 @@ declare class GenesisGridDatasourceElement extends GenesisGridDatasourceElement_
1013
1007
  */
1014
1008
  protected get hasDefaultRowId(): boolean;
1015
1009
  protected get defaultRowIdByResourceType(): string;
1016
- protected criteriaFromFilters: Map<string, string>;
1017
- protected update: BehaviorSubject<Map<string, string>>;
1018
- protected datasourceOptions(): DatasourceOptions;
1019
- private buildCriteria;
1020
- setFilter(fieldName: string, newFilter: string): void;
1021
- removeFilter(fieldName: string): void;
1022
- get isRequestServer(): boolean;
1010
+ protected isRequestServer: boolean;
1023
1011
  datasourceStatusChanged(prev: DatasourceStatus, next: DatasourceStatus): void;
1024
1012
  protected get agGrid(): GridPro | null;
1025
1013
  }
@@ -1649,7 +1637,7 @@ export declare class GridPro extends GridPro_base {
1649
1637
  */
1650
1638
  gridOptionsConfig: GridOptionsConfig;
1651
1639
  constructor();
1652
- addEventListener(eventType: string, listener: any, options?: boolean | AddEventListenerOptions): void;
1640
+ addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
1653
1641
  private addGridEventListener;
1654
1642
  private handleError;
1655
1643
  hideDatasourceError(): void;
@@ -1923,12 +1911,7 @@ declare const GridPro_base: (new (...args: any[]) => {
1923
1911
  ariaValueNow: string;
1924
1912
  ariaValueText: string;
1925
1913
  role: string;
1926
- animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation; /**
1927
- * Gets the saved grid ColumnState[] from storage
1928
- * @remarks This is used to restore the grid state when the grid is rehydrated
1929
- * @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
1930
- * @public
1931
- */
1914
+ animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
1932
1915
  getAnimations(options?: GetAnimationsOptions): Animation[];
1933
1916
  after(...nodes: (string | Node)[]): void;
1934
1917
  before(...nodes: (string | Node)[]): void;
@@ -2021,15 +2004,6 @@ declare const GridPro_base: (new (...args: any[]) => {
2021
2004
  onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
2022
2005
  onratechange: (this: GlobalEventHandlers, ev: Event) => any;
2023
2006
  onreset: (this: GlobalEventHandlers, ev: Event) => any;
2024
- /**
2025
- * Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
2026
- * @public
2027
- * @remarks This will favor the column state from the browser's local storage over the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
2028
- * @param columnDefs - The column definitions to apply to the grid.
2029
- * @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property
2030
- * on the `grid-pro-genesis-datasource` element. Defaults to false but `grid-pro-genesis-datasource` will set this to true.
2031
- * @returns The merged column definitions.
2032
- */
2033
2007
  onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
2034
2008
  onscroll: (this: GlobalEventHandlers, ev: Event) => any;
2035
2009
  onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
@@ -2540,9 +2514,14 @@ export declare type GridProEventsListeners = {
2540
2514
  * @public
2541
2515
  */
2542
2516
  export declare class GridProGenesisDatasource extends GridProGenesisDatasource_base {
2517
+ auth: Auth;
2518
+ datasource: Datasource;
2543
2519
  applyFuncName: string;
2544
2520
  applyAsyncFuncName: string;
2545
2521
  criteriaChanged(oldCriteria: string, newCriteria: string): void;
2522
+ pollingInterval: number;
2523
+ disablePolling: boolean;
2524
+ request: any;
2546
2525
  requestChanged(oldRequest: string, newRequest: string): void;
2547
2526
  resourceNameChanged(oldValue: string, newValue: string): void;
2548
2527
  restartOnReconnection: boolean;
@@ -2551,6 +2530,8 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
2551
2530
  private updateSub;
2552
2531
  private connectionSub;
2553
2532
  private requiresFullRowDataAndColDefs;
2533
+ private criteriaFromFilters;
2534
+ private update;
2554
2535
  connectedCallback(): void;
2555
2536
  disconnectedCallback(): void;
2556
2537
  deepClone(): Node;
@@ -2563,21 +2544,15 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
2563
2544
  * @remarks This method is called automatically when the element is connected to the DOM.
2564
2545
  */
2565
2546
  init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
2566
- /**
2567
- * Destroys the datasource, resetting it to its initial state.
2568
- * @public
2569
- */
2570
- destroy(): void;
2571
2547
  /**
2572
2548
  * Deinitialises the datasource, resetting it to its initial state.
2573
- * @deprecated Use `destroy` instead
2574
2549
  * @public
2575
2550
  */
2576
2551
  deinit(): void;
2577
2552
  /**
2578
2553
  * Resets the datasource to its initial state.
2579
2554
  * @public
2580
- * @deprecated Use `destroy` instead
2555
+ * @deprecated Use `deinit` instead
2581
2556
  */
2582
2557
  reset(): void;
2583
2558
  /**
@@ -2618,11 +2593,13 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
2618
2593
  */
2619
2594
  private loadResourceData;
2620
2595
  private handleSnapshot;
2621
- handleErrors(errors: string | any[]): void;
2596
+ handleErrors(message: string): void;
2597
+ private datasourceOptions;
2622
2598
  private handleStreamResult;
2623
2599
  private applyRequestServerData;
2624
2600
  private applyDataserverData;
2625
2601
  private getAgColumnDefs;
2602
+ private buildCriteria;
2626
2603
  setFilter(fieldName: string, newFilter: string): void;
2627
2604
  removeFilter(fieldName: string): void;
2628
2605
  applyTransaction(agTransaction: RowDataTransaction): RowNodeTransaction | null | undefined;
@@ -2675,10 +2652,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
2675
2652
  readonly classList: DOMTokenList;
2676
2653
  className: string;
2677
2654
  readonly clientHeight: number;
2678
- /**
2679
- * Destroys the datasource, resetting it to its initial state.
2680
- * @public
2681
- */
2682
2655
  readonly clientLeft: number;
2683
2656
  readonly clientTop: number;
2684
2657
  readonly clientWidth: number;
@@ -3010,42 +2983,30 @@ export declare enum GridProRendererTypes {
3010
2983
  export declare class GridProServerSideDatasource extends GridProServerSideDatasource_base {
3011
2984
  applyFuncName: string;
3012
2985
  applyAsyncFuncName: string;
3013
- pagination: boolean;
3014
- /**
3015
- * The starting VIEW_NUMBER of the data to be fetched.
3016
- * @remarks The VIEW_NUMBER isincremented by the grid as the user scrolls or changes pages.
3017
- */
3018
- zeroBasedViewNumber: boolean;
3019
- /**
3020
- * Enable live updates for the grid.
3021
- * @remarks Only works with DATASERVER resources (StreamDatasource) right now.
3022
- */
3023
- liveUpdates: boolean;
3024
- request: any;
3025
- private indexes;
3026
- private ssrmDatasource;
3027
- private liveUpdatesStream;
3028
- resourceNameChanged(oldValue: string, newValue: string): void;
3029
2986
  criteriaChanged(oldCriteria: string, newCriteria: string): void;
3030
- connectedCallback(): void;
3031
- disconnectedCallback(): void;
3032
- deepClone(): Node;
3033
2987
  /**
3034
2988
  * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
3035
2989
  * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
3036
2990
  * @internal
3037
2991
  */
3038
2992
  private reloadResourceData;
3039
- init(): Promise<void>;
3040
- onPaginationChanged(event: PaginationChangedEvent): void;
3041
- destroy(): Promise<void>;
3042
- restart(): Promise<void>;
2993
+ resourceNameChanged(oldValue: string, newValue: string): void;
2994
+ pagination: boolean;
2995
+ private indexes;
2996
+ private ssrmDatasource;
2997
+ private originalFieldDef;
2998
+ connectedCallback(): void;
2999
+ disconnectedCallback(): void;
3000
+ deepClone(): Node;
3001
+ deinit(): void;
3002
+ init(): void;
3003
+ restart(): void;
3043
3004
  private clearRowData;
3044
3005
  private getResourceIndexes;
3045
3006
  get params(): any;
3046
3007
  get rowModel(): IServerSideRowModel;
3047
- private createReqRepRequest;
3048
3008
  private createDataserverStream;
3009
+ private handleStreamDeletesTemp;
3049
3010
  private getAgColumnDefs;
3050
3011
  applyTransaction(agTransaction: RowDataTransaction): ServerSideTransactionResult;
3051
3012
  applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: ServerSideTransactionResult) => void): void;
@@ -3260,7 +3221,11 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
3260
3221
  readonly children: HTMLCollection;
3261
3222
  readonly firstElementChild: Element;
3262
3223
  readonly lastElementChild: Element;
3263
- append(...nodes: (string | Node)[]): void;
3224
+ append(...nodes: (string | Node)[]): void; /**
3225
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
3226
+ * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
3227
+ * @internal
3228
+ */
3264
3229
  prepend(...nodes: (string | Node)[]): void;
3265
3230
  querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
3266
3231
  querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
@@ -3619,6 +3584,76 @@ export declare interface StatePersistence {
3619
3584
  */
3620
3585
  export declare const StatePersistence: InterfaceSymbol<StatePersistence>;
3621
3586
 
3587
+ declare class StreamBaseDatasource {
3588
+ protected rowId: string;
3589
+ rowData: Map<string, any>;
3590
+ }
3591
+
3592
+ /**
3593
+ * The IServerSideDatasource implementation, used for SSRM (Server-Side Row Model) in the grid.
3594
+ * @alpha
3595
+ */
3596
+ export declare class StreamDatasource extends StreamBaseDatasource implements IServerSideDatasource {
3597
+ auth: Auth;
3598
+ connect: Connect;
3599
+ dataserverStream: SocketObservable<FilteredDataServerResult>;
3600
+ dataserverStreamSubscription: SocketSubscription;
3601
+ createDataserverStreamFunc: (existingParams?: any) => Promise<SocketObservable<FilteredDataServerResult>>;
3602
+ private resourceName;
3603
+ resourceParams: any;
3604
+ private resourceIndexes;
3605
+ private resourceColDefs;
3606
+ private maxRows;
3607
+ private maxView;
3608
+ private pagination;
3609
+ streamSourceRef: string;
3610
+ /**
3611
+ * The number of rows in the grid. THIS DO NOT CONSIDER CRITERIA_MATCH scenarios.
3612
+ * @internal
3613
+ */
3614
+ server_ROWS_COUNT: number;
3615
+ /**
3616
+ * The number of rows in the grid. THIS IS A LOCAL COUNT CONSIDERING CONSIDER CRITERIA_MATCH scenarios.
3617
+ * @internal
3618
+ */
3619
+ client_ROWS_COUNT: number;
3620
+ private moreRows;
3621
+ private calculatedRowsCount;
3622
+ private lastSequenceId;
3623
+ private currentFilterModel;
3624
+ private originalCriteriaMatch;
3625
+ private currentSortModel;
3626
+ constructor(options: StreamDatasourceOptions);
3627
+ getRows(params: IServerSideGetRowsParams): Promise<void>;
3628
+ private applyServerSideData;
3629
+ private sortMapByNumericKey;
3630
+ deinit(): Promise<void>;
3631
+ private refreshDatasource;
3632
+ private getOrderByAndToBeSortedColIds;
3633
+ private handleCurrentStreamLoad;
3634
+ private buildCriteriaMatchFromFilters;
3635
+ private criteriaFromFilters;
3636
+ private getFiltersByType;
3637
+ }
3638
+
3639
+ /**
3640
+ * Type definition for configuration options used for streams.
3641
+ * @remarks
3642
+ * Used by {@link @genesislcap/grid-pro#StreamDatasource} constructor to configure options for the stream.
3643
+ * @alpha
3644
+ */
3645
+ export declare type StreamDatasourceOptions = {
3646
+ createDataserverStreamFunc: (existingParams?: any) => Promise<SocketObservable<FilteredDataServerResult>>;
3647
+ resourceName: string;
3648
+ resourceParams?: any;
3649
+ resourceIndexes?: Map<string, [string]>;
3650
+ resourceColDefs?: MetadataDetail[];
3651
+ maxRows?: number;
3652
+ maxView?: number;
3653
+ rowId?: string;
3654
+ pagination?: boolean;
3655
+ };
3656
+
3622
3657
  /**
3623
3658
  * The AG String Editor element.
3624
3659
  * @public
@@ -7,14 +7,14 @@
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
- addEventListener(eventType: string, listener: any, options?: boolean | AddEventListenerOptions): void;
10
+ addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
11
11
  ```
12
12
 
13
13
  ## Parameters
14
14
 
15
15
  | Parameter | Type | Description |
16
16
  | --- | --- | --- |
17
- | eventType | string | |
17
+ | type | any | |
18
18
  | listener | any | |
19
19
  | options | boolean \| AddEventListenerOptions | _(Optional)_ |
20
20
 
@@ -69,7 +69,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
69
69
 
70
70
  | Method | Modifiers | Description |
71
71
  | --- | --- | --- |
72
- | [addEventListener(eventType, listener, options)](./grid-pro.gridpro.addeventlistener.md) | | |
72
+ | [addEventListener(type, listener, options)](./grid-pro.gridpro.addeventlistener.md) | | |
73
73
  | [agAttributeChangedCallback(attName, oldValue, newValue)](./grid-pro.gridpro.agattributechangedcallback.md) | | |
74
74
  | [applyTemplateDefinitions(columnDefs, deferredColumnDefsOrState)](./grid-pro.gridpro.applytemplatedefinitions.md) | | Will merge templated column definitions with <code>columnDefs</code> plus localStorage's column state or <code>deferredColumnStates</code>. |
75
75
  | [combineAllGridComponents(gridOptionsComponents)](./grid-pro.gridpro.combineallgridcomponents.md) | | |
@@ -1,17 +1,11 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) &gt; [destroy](./grid-pro.gridprogenesisdatasource.destroy.md)
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) &gt; [auth](./grid-pro.gridprogenesisdatasource.auth.md)
4
4
 
5
- ## GridProGenesisDatasource.destroy() method
6
-
7
- Destroys the datasource, resetting it to its initial state.
5
+ ## GridProGenesisDatasource.auth property
8
6
 
9
7
  **Signature:**
10
8
 
11
9
  ```typescript
12
- destroy(): void;
10
+ auth: Auth;
13
11
  ```
14
- **Returns:**
15
-
16
- void
17
-
@@ -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; [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) &gt; [datasource](./grid-pro.gridprogenesisdatasource.datasource.md)
4
+
5
+ ## GridProGenesisDatasource.datasource property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ datasource: Datasource;
11
+ ```
@@ -4,11 +4,6 @@
4
4
 
5
5
  ## GridProGenesisDatasource.deinit() method
6
6
 
7
- > Warning: This API is now obsolete.
8
- >
9
- > Use `destroy` instead
10
- >
11
-
12
7
  Deinitialises the datasource, resetting it to its initial state.
13
8
 
14
9
  **Signature:**
@@ -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; [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) &gt; [disablePolling](./grid-pro.gridprogenesisdatasource.disablepolling.md)
4
+
5
+ ## GridProGenesisDatasource.disablePolling property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ disablePolling: boolean;
11
+ ```
@@ -7,14 +7,14 @@
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
- handleErrors(errors: string | any[]): void;
10
+ handleErrors(message: string): void;
11
11
  ```
12
12
 
13
13
  ## Parameters
14
14
 
15
15
  | Parameter | Type | Description |
16
16
  | --- | --- | --- |
17
- | errors | string \| any\[\] | |
17
+ | message | string | |
18
18
 
19
19
  **Returns:**
20
20
 
@@ -23,7 +23,12 @@ Only supports Client-Side Row Model.
23
23
  | --- | --- | --- | --- |
24
24
  | [applyAsyncFuncName](./grid-pro.gridprogenesisdatasource.applyasyncfuncname.md) | | string | |
25
25
  | [applyFuncName](./grid-pro.gridprogenesisdatasource.applyfuncname.md) | | string | |
26
+ | [auth](./grid-pro.gridprogenesisdatasource.auth.md) | | Auth | |
27
+ | [datasource](./grid-pro.gridprogenesisdatasource.datasource.md) | | Datasource | |
28
+ | [disablePolling](./grid-pro.gridprogenesisdatasource.disablepolling.md) | | boolean | |
26
29
  | [keepColDefsOnClearRowData](./grid-pro.gridprogenesisdatasource.keepcoldefsonclearrowdata.md) | | boolean | |
30
+ | [pollingInterval](./grid-pro.gridprogenesisdatasource.pollinginterval.md) | | number | |
31
+ | [request](./grid-pro.gridprogenesisdatasource.request.md) | | any | |
27
32
  | [restartOnReconnection](./grid-pro.gridprogenesisdatasource.restartonreconnection.md) | | boolean | |
28
33
 
29
34
  ## Methods
@@ -36,9 +41,8 @@ Only supports Client-Side Row Model.
36
41
  | [criteriaChanged(oldCriteria, newCriteria)](./grid-pro.gridprogenesisdatasource.criteriachanged.md) | | |
37
42
  | [deepClone()](./grid-pro.gridprogenesisdatasource.deepclone.md) | | |
38
43
  | [deinit()](./grid-pro.gridprogenesisdatasource.deinit.md) | | Deinitialises the datasource, resetting it to its initial state. |
39
- | [destroy()](./grid-pro.gridprogenesisdatasource.destroy.md) | | Destroys the datasource, resetting it to its initial state. |
40
44
  | [disconnectedCallback()](./grid-pro.gridprogenesisdatasource.disconnectedcallback.md) | | |
41
- | [handleErrors(errors)](./grid-pro.gridprogenesisdatasource.handleerrors.md) | | |
45
+ | [handleErrors(message)](./grid-pro.gridprogenesisdatasource.handleerrors.md) | | |
42
46
  | [init(columnDefinitions, columnStates)](./grid-pro.gridprogenesisdatasource.init.md) | | Initializes the datasource. |
43
47
  | [refreshRows()](./grid-pro.gridprogenesisdatasource.refreshrows.md) | | Force the grid to redispatch the current rows |
44
48
  | [removeFilter(fieldName)](./grid-pro.gridprogenesisdatasource.removefilter.md) | | |
@@ -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; [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) &gt; [pollingInterval](./grid-pro.gridprogenesisdatasource.pollinginterval.md)
4
+
5
+ ## GridProGenesisDatasource.pollingInterval property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ pollingInterval: number;
11
+ ```
@@ -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; [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) &gt; [request](./grid-pro.gridprogenesisdatasource.request.md)
4
+
5
+ ## GridProGenesisDatasource.request property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ request: any;
11
+ ```
@@ -6,7 +6,7 @@
6
6
 
7
7
  > Warning: This API is now obsolete.
8
8
  >
9
- > Use `destroy` instead
9
+ > Use `deinit` instead
10
10
  >
11
11
 
12
12
  Resets the datasource to its initial state.