@genesislcap/grid-pro 14.172.3 → 14.173.1

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 (26) hide show
  1. package/dist/custom-elements.json +10 -5
  2. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.config.d.ts +1 -1
  3. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +1 -1
  4. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
  5. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.types.d.ts +0 -12
  6. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.types.d.ts.map +1 -1
  7. package/dist/dts/grid-pro.d.ts +7 -10
  8. package/dist/dts/grid-pro.d.ts.map +1 -1
  9. package/dist/dts/grid-pro.template.d.ts.map +1 -1
  10. package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.config.js +1 -1
  11. package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +62 -55
  12. package/dist/esm/grid-pro.js +1 -1
  13. package/dist/esm/grid-pro.template.js +10 -8
  14. package/dist/grid-pro.api.json +56 -73
  15. package/dist/grid-pro.d.ts +7 -25
  16. package/docs/api/grid-pro.gridpro.gridprodatasource.md +1 -1
  17. package/docs/api/grid-pro.gridpro.hidedatasourceerror.md +15 -0
  18. package/docs/api/grid-pro.gridpro.md +2 -1
  19. package/docs/api/grid-pro.gridprogenesisdatasource.handleerrors.md +2 -2
  20. package/docs/api/grid-pro.gridprogenesisdatasource.md +1 -1
  21. package/docs/api/grid-pro.gridprogenesisdatasourceeventnames.md +1 -1
  22. package/docs/api/grid-pro.md +0 -2
  23. package/docs/api-report.md +6 -12
  24. package/package.json +13 -13
  25. package/docs/api/grid-pro.gridprogenesisdatasourcerowdatasetevent.md +0 -15
  26. package/docs/api/grid-pro.gridprogenesisdatasourcerowdataseteventdetail.md +0 -15
@@ -697,8 +697,7 @@
697
697
  },
698
698
  {
699
699
  "kind": "method",
700
- "name": "hideDatasourceError",
701
- "privacy": "private"
700
+ "name": "hideDatasourceError"
702
701
  },
703
702
  {
704
703
  "kind": "method",
@@ -788,7 +787,7 @@
788
787
  "kind": "field",
789
788
  "name": "gridProDatasource",
790
789
  "type": {
791
- "text": "GridProBaseDatasource"
790
+ "text": "| GridProGenesisDatasource\n | GridProClientSideDatasource\n | GridProServerSideDatasource"
792
791
  },
793
792
  "readonly": true
794
793
  },
@@ -7173,7 +7172,10 @@
7173
7172
  "name": "handleErrors",
7174
7173
  "parameters": [
7175
7174
  {
7176
- "name": "result"
7175
+ "name": "message",
7176
+ "type": {
7177
+ "text": "string"
7178
+ }
7177
7179
  }
7178
7180
  ],
7179
7181
  "inheritedFrom": {
@@ -10032,7 +10034,10 @@
10032
10034
  "name": "handleErrors",
10033
10035
  "parameters": [
10034
10036
  {
10035
- "name": "result"
10037
+ "name": "message",
10038
+ "type": {
10039
+ "text": "string"
10040
+ }
10036
10041
  }
10037
10042
  ]
10038
10043
  },
@@ -4,7 +4,7 @@
4
4
  */
5
5
  export declare const gridProGenesisDatasourceEventNames: {
6
6
  error: string;
7
- rowDataSet: string;
7
+ dataInit: string;
8
8
  sizeChanged: string;
9
9
  };
10
10
  //# sourceMappingURL=grid-pro-genesis-datasource.config.d.ts.map
@@ -417,7 +417,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
417
417
  */
418
418
  private loadResourceData;
419
419
  private handleSnapshot;
420
- handleErrors(result: any): void;
420
+ handleErrors(message: string): void;
421
421
  private datasourceOptions;
422
422
  private handleStreamResult;
423
423
  private applyRequestServerData;
@@ -1 +1 @@
1
- {"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EAEX,kBAAkB,EAClB,kBA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IAqB1B,OAAO,CAAC,gBAAgB;IAgBxB;;;;;;OAMG;IACG,IAAI,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,YAAY,CAAC,EAAE,WAAW,EAAE;IAyDrE;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IAmCL;;;OAGG;IACH,OAAO;IAYP;;OAEG;IACH,WAAW;IAIX;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAUlB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;YACW,UAAU;IAqCxB;;;;;OAKG;YACW,kBAAkB;IAahC;;;;;;OAMG;YACW,gBAAgB;IA0D9B,OAAO,CAAC,cAAc;IActB,YAAY,CAAC,MAAM,KAAA;IAYnB,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IA6C9B,OAAO,CAAC,mBAAmB;YAyBb,eAAe;IAc7B,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAK5B,gBAAgB,CACvB,aAAa,EAAE,kBAAkB,GAChC,kBAAkB,GAAG,IAAI,GAAG,SAAS;IAI/B,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,GAC3C,IAAI;IAIP,OAAO,CAAC,iBAAiB;CAO1B"}
1
+ {"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EAEX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,UAAU,EAYX,MAAM,+BAA+B,CAAC;AAKvC,OAA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,YAAY,CAAC,EAAE,WAAW,EAAE;IA2DrE;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IAmCL;;;OAGG;IACH,OAAO;IAYP;;OAEG;IACH,WAAW;IAIX;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAUlB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;YACW,UAAU;IAmCxB;;;;;OAKG;YACW,kBAAkB;IAahC;;;;;;OAMG;YACW,gBAAgB;IAkE9B,OAAO,CAAC,cAAc;IActB,YAAY,CAAC,OAAO,EAAE,MAAM;IAW5B,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IA6C9B,OAAO,CAAC,mBAAmB;YAyBb,eAAe;IAc7B,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAK5B,gBAAgB,CACvB,aAAa,EAAE,kBAAkB,GAChC,kBAAkB,GAAG,IAAI,GAAG,SAAS;IAI/B,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,GAC3C,IAAI;IAIP,OAAO,CAAC,iBAAiB;CAO1B"}
@@ -10,18 +10,6 @@ export type GridProGenesisDatasourceErrorEventDetail = {
10
10
  * @public
11
11
  */
12
12
  export type GridProGenesisDatasourceErrorEvent = CustomEvent<GridProGenesisDatasourceErrorEventDetail>;
13
- /**
14
- * The event detail for the grid pro genesis datasource `rowDataSet` event.
15
- * @public
16
- */
17
- export type GridProGenesisDatasourceRowDataSetEventDetail = {
18
- data: any[];
19
- };
20
- /**
21
- * The rowDataSet event grid pro genesis datasource.
22
- * @public
23
- */
24
- export type GridProGenesisDatasourceRowDataSetEvent = CustomEvent<GridProGenesisDatasourceRowDataSetEventDetail>;
25
13
  /**
26
14
  * The event detail for the grid pro genesis datasource `sizeChanged` event.
27
15
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"grid-pro-genesis-datasource.types.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,wCAAwC,GAAG;IACrD,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,kCAAkC,GAC5C,WAAW,CAAC,wCAAwC,CAAC,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,6CAA6C,GAAG;IAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;CACb,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,uCAAuC,GACjD,WAAW,CAAC,6CAA6C,CAAC,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,8CAA8C,GAAG;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,wCAAwC,GAClD,WAAW,CAAC,8CAA8C,CAAC,CAAC"}
1
+ {"version":3,"file":"grid-pro-genesis-datasource.types.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,wCAAwC,GAAG;IACrD,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,kCAAkC,GAC5C,WAAW,CAAC,wCAAwC,CAAC,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,8CAA8C,GAAG;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,wCAAwC,GAClD,WAAW,CAAC,8CAA8C,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { ColDef, ColumnApi, ColumnState, Grid, GridApi, GridOptions } from '@ag-grid-community/core';
2
2
  import { FoundationElement } from '@microsoft/fast-foundation';
3
- import { GridProBaseDatasource } from './datasource/base.datasource';
3
+ import { GridProClientSideDatasource, GridProServerSideDatasource } from './datasource';
4
+ import { GridProGenesisDatasource } from './grid-pro-genesis-datasource';
4
5
  import { GridComponents, GridOptionsConfig, GridProCaseType, GridProErrorItem, GridProErrorEvent } from './grid-pro.types';
5
6
  import { StatePersistence } from './state-persistence';
6
7
  declare const GridPro_base: (new (...args: any[]) => {
@@ -15,9 +16,6 @@ declare const GridPro_base: (new (...args: any[]) => {
15
16
  readonly shouldRunConnect: boolean;
16
17
  "__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
17
18
  "__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
18
- /**
19
- * @deprecated - use `enableRowFlashing` instead.
20
- */
21
19
  connectedCallback(): void;
22
20
  readonly $fastController: import("@microsoft/fast-element").Controller;
23
21
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
@@ -26,6 +24,9 @@ declare const GridPro_base: (new (...args: any[]) => {
26
24
  accessKey: string;
27
25
  readonly accessKeyLabel: string;
28
26
  autocapitalize: string;
27
+ /**
28
+ * The key to use for persisting the filter model in local browser or KV storage.
29
+ */
29
30
  dir: string;
30
31
  draggable: boolean;
31
32
  hidden: boolean;
@@ -156,10 +157,6 @@ declare const GridPro_base: (new (...args: any[]) => {
156
157
  readonly DOCUMENT_POSITION_PRECEDING: number;
157
158
  readonly DOCUMENT_TYPE_NODE: number;
158
159
  readonly ELEMENT_NODE: number;
159
- /**
160
- * If {@link @genesislcap/grid-pro#GridPro.gridAutosizingEnabled} is true, will remove the widths from the column states.
161
- * @internal
162
- */
163
160
  readonly ENTITY_NODE: number;
164
161
  readonly ENTITY_REFERENCE_NODE: number;
165
162
  readonly NOTATION_NODE: number;
@@ -452,7 +449,7 @@ export declare class GridPro extends GridPro_base {
452
449
  addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
453
450
  private addGridEventListener;
454
451
  private handleError;
455
- private hideDatasourceError;
452
+ hideDatasourceError(): void;
456
453
  connectedCallback(): void;
457
454
  disconnectedCallback(): void;
458
455
  combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
@@ -483,7 +480,7 @@ export declare class GridPro extends GridPro_base {
483
480
  * @public
484
481
  */
485
482
  get gridOptions(): GridOptions;
486
- get gridProDatasource(): GridProBaseDatasource;
483
+ get gridProDatasource(): GridProGenesisDatasource | GridProClientSideDatasource | GridProServerSideDatasource;
487
484
  set gridOptions(options: GridOptions);
488
485
  private initGridOptions;
489
486
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,SAAS,EACT,WAAW,EAGX,IAAI,EACJ,OAAO,EACP,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAqB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAarE,OAAO,EAKL,cAAc,EAId,iBAAiB,EACjB,eAAe,EAEf,gBAAgB,EAChB,iBAAiB,EAElB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;IA2ErD;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2OH;;;OAGG;;;;;;;;;;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;;;;;;;;;;kBAM5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"grid-pro.template.d.ts","sourceRoot":"","sources":["../../src/grid-pro.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,iDAoC9B,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,YAAmC,CAAC"}
1
+ {"version":3,"file":"grid-pro.template.d.ts","sourceRoot":"","sources":["../../src/grid-pro.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,iDAqC9B,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,YAAmC,CAAC"}
@@ -4,6 +4,6 @@
4
4
  */
5
5
  export const gridProGenesisDatasourceEventNames = {
6
6
  error: 'datasource-error',
7
- rowDataSet: 'datasource-row-data-set',
7
+ dataInit: 'datasource-init',
8
8
  sizeChanged: 'datasource-size-changed',
9
9
  };
@@ -119,15 +119,18 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
119
119
  if (this.agGrid &&
120
120
  this.datasource.validResourceName(this.resourceName) &&
121
121
  this.connect.isConnected) {
122
- const meta = yield this.connect.getMetadata(this.resourceName);
123
- if (!meta) {
124
- // TODO: improve getMetadata implementation to return error details
125
- const message = `No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`;
126
- logger.warn(message);
127
- this.handleErrors({ ERROR: message });
128
- return;
122
+ try {
123
+ const meta = yield this.connect.getMetadata(this.resourceName);
124
+ if (!meta) {
125
+ // TODO: improve getMetadata implementation to return error details
126
+ this.handleErrors(`No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`);
127
+ return;
128
+ }
129
+ this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
130
+ }
131
+ catch ({ receivedMessage: { ERROR: errors } }) {
132
+ this.handleErrors(errors.join(', '));
129
133
  }
130
- this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
131
134
  const gridOptions = Object.assign(Object.assign({ getRowId: (params) => params.data[this.rowId] }, (columnDefinitions && { columnDefs: columnDefinitions })), this.deferredGridOptions);
132
135
  this.agGrid.gridOptions = Object.assign({}, gridOptions);
133
136
  this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
@@ -144,7 +147,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
144
147
  });
145
148
  return;
146
149
  }
147
- logger.warn(`Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.`);
150
+ this.handleErrors('Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.');
148
151
  });
149
152
  }
150
153
  /**
@@ -264,7 +267,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
264
267
  this.agTransaction = { add: [...data], remove: [], update: [], addIndex: 0 };
265
268
  this.applyAllAgTransactions();
266
269
  this.requiresFullRowDataAndColDefs = false;
267
- this.$emit(gridProGenesisDatasourceEventNames.rowDataSet, { data });
268
270
  });
269
271
  }
270
272
  /**
@@ -298,50 +300,58 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
298
300
  loadResourceData(withFullInit = true) {
299
301
  return __awaiter(this, void 0, void 0, function* () {
300
302
  const requiresMetadataFetch = withFullInit || !this.datasource.initialized;
301
- const initOK = yield this.datasource.init(this.datasourceOptions(), requiresMetadataFetch);
302
- if (!initOK) {
303
- logger.debug(`Genesis Datasource init failed for ${this.resourceName}`);
304
- this.clearRowData();
305
- return;
306
- }
307
- if (this.isSnapshot) {
308
- try {
303
+ try {
304
+ const initOK = yield this.datasource.init(this.datasourceOptions(), requiresMetadataFetch);
305
+ if (!initOK) {
306
+ logger.debug(`Genesis Datasource init failed for ${this.resourceName}`);
307
+ this.clearRowData();
308
+ return;
309
+ }
310
+ this.$emit(gridProGenesisDatasourceEventNames.dataInit);
311
+ if (this.isSnapshot) {
309
312
  const result = yield this.datasource.snapshot();
310
313
  if (result) {
311
314
  const rowData = this.handleSnapshot(result);
312
315
  this.setRowData(rowData);
313
316
  }
317
+ return;
314
318
  }
315
- catch (err) {
316
- if (err.receivedMessage) {
317
- this.handleErrors(err.receivedMessage);
319
+ logger.debug(`requesting stream for ${this.resourceName}`);
320
+ this.dataSub = this.datasource.stream
321
+ .pipe(catchError((err) => {
322
+ var _a;
323
+ this.handleErrors((_a = err === null || err === void 0 ? void 0 : err.receivedMessage) === null || _a === void 0 ? void 0 : _a.ERROR.join(', '));
324
+ return EMPTY;
325
+ }))
326
+ .subscribe((result) => {
327
+ if (result === null || result === void 0 ? void 0 : result.ERROR) {
328
+ this.handleErrors(result.ERROR.join(', '));
318
329
  }
319
- }
320
- return;
330
+ this.sourceRef = result.SOURCE_REF;
331
+ const messageType = result.MESSAGE_TYPE;
332
+ if (messageType && messageType === MessageType.LOGOFF_ACK) {
333
+ this.handleErrors(`Genesis datasource for ${this.resourceName} disconnected.`);
334
+ this.dataSubWasLoggedOff = true;
335
+ return;
336
+ }
337
+ this.dataSubWasLoggedOff = false;
338
+ if (result.ROW) {
339
+ const nextMessage = dataServerResultFilter(result);
340
+ this.handleStreamResult(nextMessage);
341
+ }
342
+ else {
343
+ this.handleStreamResult(result);
344
+ }
345
+ });
321
346
  }
322
- logger.debug(`requesting stream for ${this.resourceName}`);
323
- this.dataSub = this.datasource.stream
324
- .pipe(catchError((err) => {
325
- this.handleErrors(err.receivedMessage);
326
- return EMPTY;
327
- }))
328
- .subscribe((result) => {
329
- this.handleErrors(result);
330
- this.sourceRef = result.SOURCE_REF;
331
- const messageType = result.MESSAGE_TYPE;
332
- if (messageType && messageType === MessageType.LOGOFF_ACK) {
333
- this.dataSubWasLoggedOff = true;
334
- return;
335
- }
336
- this.dataSubWasLoggedOff = false;
337
- if (result.ROW) {
338
- const nextMessage = dataServerResultFilter(result);
339
- this.handleStreamResult(nextMessage);
347
+ catch (error) {
348
+ let { message } = error;
349
+ if (error.receivedMessage) {
350
+ message = error.receivedMessage.ERROR;
340
351
  }
341
- else {
342
- this.handleStreamResult(result);
343
- }
344
- });
352
+ logger.error(message);
353
+ this.handleErrors(message);
354
+ }
345
355
  });
346
356
  }
347
357
  handleSnapshot(result) {
@@ -355,16 +365,13 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
355
365
  }
356
366
  return result.inserts;
357
367
  }
358
- handleErrors(result) {
359
- var _a;
360
- if (result.ERROR) {
361
- if (this.agGrid) {
362
- (_a = this.agGrid.gridApi) === null || _a === void 0 ? void 0 : _a.setRowData([]);
363
- this.agGrid.setAttribute('ds-disconnected', 'ds-disconnected');
364
- }
365
- this.$emit(gridProGenesisDatasourceEventNames.error, {
366
- message: result.ERROR,
367
- });
368
+ handleErrors(message) {
369
+ if (this.agGrid) {
370
+ this.agGrid.setAttribute('ds-disconnected', 'ds-disconnected');
371
+ }
372
+ if (message) {
373
+ logger.warn(message);
374
+ this.$emit(gridProGenesisDatasourceEventNames.error, { message });
368
375
  }
369
376
  }
370
377
  datasourceOptions() {
@@ -122,7 +122,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
122
122
  return map;
123
123
  }, {});
124
124
  const hideDataSourceError = this.hideDatasourceError.bind(this);
125
- this.rootEventsListeners.push({ key: gridProGenesisDatasourceEventNames.rowDataSet, action: hideDataSourceError }, { key: gridProEventNames.datasourceErrorClose, action: hideDataSourceError }, {
125
+ this.rootEventsListeners.push({ key: gridProGenesisDatasourceEventNames.dataInit, action: hideDataSourceError }, { key: gridProEventNames.datasourceErrorClose, action: hideDataSourceError }, {
126
126
  key: gridProGenesisDatasourceEventNames.error,
127
127
  action: this.handleError.bind(this, gridProErrorNames.datasource),
128
128
  });
@@ -30,15 +30,17 @@ export const getGridProTemplate = (prefix = 'foundation') => html `
30
30
  Data is not current and may be incomplete.
31
31
  </p>
32
32
  <div slot="bottom">
33
- <${prefix}-button
34
- appearance="lightweight"
35
- @click=${() => {
36
- window.location.reload();
33
+ <${prefix}-button
34
+ appearance="lightweight"
35
+ @click=${(x) => {
36
+ var _a;
37
+ x.hideDatasourceError();
38
+ (_a = x.gridProDatasource) === null || _a === void 0 ? void 0 : _a.restart();
37
39
  }}
38
- >
39
- Refresh
40
- </${prefix}-button>
41
- </div>
40
+ >
41
+ Refresh
42
+ </${prefix}-button>
43
+ </div>
42
44
  </${prefix}-dialog>
43
45
  </slot>
44
46
  </template>
@@ -8708,8 +8708,26 @@
8708
8708
  },
8709
8709
  {
8710
8710
  "kind": "Reference",
8711
- "text": "GridProBaseDatasource",
8712
- "canonicalReference": "@genesislcap/grid-pro!~GridProBaseDatasource:class"
8711
+ "text": "GridProGenesisDatasource",
8712
+ "canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource:class"
8713
+ },
8714
+ {
8715
+ "kind": "Content",
8716
+ "text": " | "
8717
+ },
8718
+ {
8719
+ "kind": "Reference",
8720
+ "text": "GridProClientSideDatasource",
8721
+ "canonicalReference": "@genesislcap/grid-pro!GridProClientSideDatasource:class"
8722
+ },
8723
+ {
8724
+ "kind": "Content",
8725
+ "text": " | "
8726
+ },
8727
+ {
8728
+ "kind": "Reference",
8729
+ "text": "GridProServerSideDatasource",
8730
+ "canonicalReference": "@genesislcap/grid-pro!GridProServerSideDatasource:class"
8713
8731
  },
8714
8732
  {
8715
8733
  "kind": "Content",
@@ -8722,7 +8740,7 @@
8722
8740
  "name": "gridProDatasource",
8723
8741
  "propertyTypeTokenRange": {
8724
8742
  "startIndex": 1,
8725
- "endIndex": 2
8743
+ "endIndex": 6
8726
8744
  },
8727
8745
  "isStatic": false,
8728
8746
  "isProtected": false,
@@ -8820,6 +8838,37 @@
8820
8838
  "isProtected": false,
8821
8839
  "isAbstract": false
8822
8840
  },
8841
+ {
8842
+ "kind": "Method",
8843
+ "canonicalReference": "@genesislcap/grid-pro!GridPro#hideDatasourceError:member(1)",
8844
+ "docComment": "",
8845
+ "excerptTokens": [
8846
+ {
8847
+ "kind": "Content",
8848
+ "text": "hideDatasourceError(): "
8849
+ },
8850
+ {
8851
+ "kind": "Content",
8852
+ "text": "void"
8853
+ },
8854
+ {
8855
+ "kind": "Content",
8856
+ "text": ";"
8857
+ }
8858
+ ],
8859
+ "isStatic": false,
8860
+ "returnTypeTokenRange": {
8861
+ "startIndex": 1,
8862
+ "endIndex": 2
8863
+ },
8864
+ "releaseTag": "Public",
8865
+ "isProtected": false,
8866
+ "overloadIndex": 1,
8867
+ "parameters": [],
8868
+ "isOptional": false,
8869
+ "isAbstract": false,
8870
+ "name": "hideDatasourceError"
8871
+ },
8823
8872
  {
8824
8873
  "kind": "Property",
8825
8874
  "canonicalReference": "@genesislcap/grid-pro!GridPro#initialised:member",
@@ -10943,11 +10992,11 @@
10943
10992
  "excerptTokens": [
10944
10993
  {
10945
10994
  "kind": "Content",
10946
- "text": "handleErrors(result: "
10995
+ "text": "handleErrors(message: "
10947
10996
  },
10948
10997
  {
10949
10998
  "kind": "Content",
10950
- "text": "any"
10999
+ "text": "string"
10951
11000
  },
10952
11001
  {
10953
11002
  "kind": "Content",
@@ -10972,7 +11021,7 @@
10972
11021
  "overloadIndex": 1,
10973
11022
  "parameters": [
10974
11023
  {
10975
- "parameterName": "result",
11024
+ "parameterName": "message",
10976
11025
  "parameterTypeTokenRange": {
10977
11026
  "startIndex": 1,
10978
11027
  "endIndex": 2
@@ -11536,7 +11585,7 @@
11536
11585
  },
11537
11586
  {
11538
11587
  "kind": "Content",
11539
- "text": "{\n error: string;\n rowDataSet: string;\n sizeChanged: string;\n}"
11588
+ "text": "{\n error: string;\n dataInit: string;\n sizeChanged: string;\n}"
11540
11589
  }
11541
11590
  ],
11542
11591
  "fileUrlPath": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.config.ts",
@@ -11548,72 +11597,6 @@
11548
11597
  "endIndex": 2
11549
11598
  }
11550
11599
  },
11551
- {
11552
- "kind": "TypeAlias",
11553
- "canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasourceRowDataSetEvent:type",
11554
- "docComment": "/**\n * The rowDataSet event grid pro genesis datasource.\n *\n * @public\n */\n",
11555
- "excerptTokens": [
11556
- {
11557
- "kind": "Content",
11558
- "text": "export type GridProGenesisDatasourceRowDataSetEvent = "
11559
- },
11560
- {
11561
- "kind": "Reference",
11562
- "text": "CustomEvent",
11563
- "canonicalReference": "!CustomEvent:interface"
11564
- },
11565
- {
11566
- "kind": "Content",
11567
- "text": "<"
11568
- },
11569
- {
11570
- "kind": "Reference",
11571
- "text": "GridProGenesisDatasourceRowDataSetEventDetail",
11572
- "canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasourceRowDataSetEventDetail:type"
11573
- },
11574
- {
11575
- "kind": "Content",
11576
- "text": ">"
11577
- },
11578
- {
11579
- "kind": "Content",
11580
- "text": ";"
11581
- }
11582
- ],
11583
- "fileUrlPath": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.types.ts",
11584
- "releaseTag": "Public",
11585
- "name": "GridProGenesisDatasourceRowDataSetEvent",
11586
- "typeTokenRange": {
11587
- "startIndex": 1,
11588
- "endIndex": 5
11589
- }
11590
- },
11591
- {
11592
- "kind": "TypeAlias",
11593
- "canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasourceRowDataSetEventDetail:type",
11594
- "docComment": "/**\n * The event detail for the grid pro genesis datasource `rowDataSet` event.\n *\n * @public\n */\n",
11595
- "excerptTokens": [
11596
- {
11597
- "kind": "Content",
11598
- "text": "export type GridProGenesisDatasourceRowDataSetEventDetail = "
11599
- },
11600
- {
11601
- "kind": "Content",
11602
- "text": "{\n data: any[];\n}"
11603
- },
11604
- {
11605
- "kind": "Content",
11606
- "text": ";"
11607
- }
11608
- ],
11609
- "fileUrlPath": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.types.ts",
11610
- "releaseTag": "Public",
11611
- "name": "GridProGenesisDatasourceRowDataSetEventDetail",
11612
- "typeTokenRange": {
11613
- "startIndex": 1,
11614
- "endIndex": 2
11615
- }
11616
- },
11617
11600
  {
11618
11601
  "kind": "Enum",
11619
11602
  "canonicalReference": "@genesislcap/grid-pro!GridProRendererTypes:enum",
@@ -1276,7 +1276,7 @@ export declare class GridPro extends GridPro_base {
1276
1276
  addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
1277
1277
  private addGridEventListener;
1278
1278
  private handleError;
1279
- private hideDatasourceError;
1279
+ hideDatasourceError(): void;
1280
1280
  connectedCallback(): void;
1281
1281
  disconnectedCallback(): void;
1282
1282
  combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
@@ -1307,7 +1307,7 @@ export declare class GridPro extends GridPro_base {
1307
1307
  * @public
1308
1308
  */
1309
1309
  get gridOptions(): GridOptions;
1310
- get gridProDatasource(): GridProBaseDatasource;
1310
+ get gridProDatasource(): GridProGenesisDatasource | GridProClientSideDatasource | GridProServerSideDatasource;
1311
1311
  set gridOptions(options: GridOptions);
1312
1312
  private initGridOptions;
1313
1313
  /**
@@ -1348,9 +1348,6 @@ declare const GridPro_base: (new (...args: any[]) => {
1348
1348
  readonly shouldRunConnect: boolean;
1349
1349
  "__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
1350
1350
  "__#1@#_tryFindContainingLayout"(e: Element): FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
1351
- /**
1352
- * @deprecated - use `enableRowFlashing` instead.
1353
- */
1354
1351
  connectedCallback(): void;
1355
1352
  readonly $fastController: Controller;
1356
1353
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
@@ -1359,6 +1356,9 @@ declare const GridPro_base: (new (...args: any[]) => {
1359
1356
  accessKey: string;
1360
1357
  readonly accessKeyLabel: string;
1361
1358
  autocapitalize: string;
1359
+ /**
1360
+ * The key to use for persisting the filter model in local browser or KV storage.
1361
+ */
1362
1362
  dir: string;
1363
1363
  draggable: boolean;
1364
1364
  hidden: boolean;
@@ -1489,10 +1489,6 @@ declare const GridPro_base: (new (...args: any[]) => {
1489
1489
  readonly DOCUMENT_POSITION_PRECEDING: number;
1490
1490
  readonly DOCUMENT_TYPE_NODE: number;
1491
1491
  readonly ELEMENT_NODE: number;
1492
- /**
1493
- * If {@link @genesislcap/grid-pro#GridPro.gridAutosizingEnabled} is true, will remove the widths from the column states.
1494
- * @internal
1495
- */
1496
1492
  readonly ENTITY_NODE: number;
1497
1493
  readonly ENTITY_REFERENCE_NODE: number;
1498
1494
  readonly NOTATION_NODE: number;
@@ -2220,7 +2216,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
2220
2216
  */
2221
2217
  private loadResourceData;
2222
2218
  private handleSnapshot;
2223
- handleErrors(result: any): void;
2219
+ handleErrors(message: string): void;
2224
2220
  private datasourceOptions;
2225
2221
  private handleStreamResult;
2226
2222
  private applyRequestServerData;
@@ -2580,24 +2576,10 @@ export declare type GridProGenesisDatasourceErrorEventDetail = {
2580
2576
  */
2581
2577
  export declare const gridProGenesisDatasourceEventNames: {
2582
2578
  error: string;
2583
- rowDataSet: string;
2579
+ dataInit: string;
2584
2580
  sizeChanged: string;
2585
2581
  };
2586
2582
 
2587
- /**
2588
- * The rowDataSet event grid pro genesis datasource.
2589
- * @public
2590
- */
2591
- export declare type GridProGenesisDatasourceRowDataSetEvent = CustomEvent<GridProGenesisDatasourceRowDataSetEventDetail>;
2592
-
2593
- /**
2594
- * The event detail for the grid pro genesis datasource `rowDataSet` event.
2595
- * @public
2596
- */
2597
- export declare type GridProGenesisDatasourceRowDataSetEventDetail = {
2598
- data: any[];
2599
- };
2600
-
2601
2583
  /**
2602
2584
  * The available Grid Pro Renderer Types
2603
2585
  * @public
@@ -7,5 +7,5 @@
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
- get gridProDatasource(): GridProBaseDatasource;
10
+ get gridProDatasource(): GridProGenesisDatasource | GridProClientSideDatasource | GridProServerSideDatasource;
11
11
  ```
@@ -0,0 +1,15 @@
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; [hideDatasourceError](./grid-pro.gridpro.hidedatasourceerror.md)
4
+
5
+ ## GridPro.hideDatasourceError() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ hideDatasourceError(): void;
11
+ ```
12
+ **Returns:**
13
+
14
+ void
15
+
@@ -50,7 +50,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
50
50
  | [gridFontFace](./grid-pro.gridpro.gridfontface.md) | | string | |
51
51
  | [gridOptions](./grid-pro.gridpro.gridoptions.md) | | GridOptions | |
52
52
  | [gridOptionsConfig](./grid-pro.gridpro.gridoptionsconfig.md) | | [GridOptionsConfig](./grid-pro.gridoptionsconfig.md) | Injectable config that allows to change grid options on an app level basis To modify options, register instance of the config in DOM container that is above the grid or on the top level of the application, so it applies to all grids. |
53
- | [gridProDatasource](./grid-pro.gridpro.gridprodatasource.md) | <code>readonly</code> | GridProBaseDatasource | |
53
+ | [gridProDatasource](./grid-pro.gridpro.gridprodatasource.md) | <code>readonly</code> | [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) \| [GridProClientSideDatasource](./grid-pro.gridproclientsidedatasource.md) \| GridProServerSideDatasource | |
54
54
  | [gridSlot](./grid-pro.gridpro.gridslot.md) | | HTMLSlotElement | |
55
55
  | [headerCaseType](./grid-pro.gridpro.headercasetype.md) | | [GridProCaseType](./grid-pro.gridprocasetype.md) | The case type to use for the header names. If not set, the default CONSTANT\_CASE will be used. |
56
56
  | [headerHeight](./grid-pro.gridpro.headerheight.md) | | number | |
@@ -76,6 +76,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
76
76
  | [getfilterModel()](./grid-pro.gridpro.getfiltermodel.md) | | |
77
77
  | [getSavedColumnState()](./grid-pro.gridpro.getsavedcolumnstate.md) | | Gets the saved grid ColumnState\[\] from storage |
78
78
  | [globalEventListener(eventType, event)](./grid-pro.gridpro.globaleventlistener.md) | | |
79
+ | [hideDatasourceError()](./grid-pro.gridpro.hidedatasourceerror.md) | | |
79
80
  | [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>. |
80
81
  | [restoreCachedFilterConfig()](./grid-pro.gridpro.restorecachedfilterconfig.md) | | |
81
82
  | [setFilterModel(value)](./grid-pro.gridpro.setfiltermodel.md) | | |
@@ -7,14 +7,14 @@
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
- handleErrors(result: any): void;
10
+ handleErrors(message: string): void;
11
11
  ```
12
12
 
13
13
  ## Parameters
14
14
 
15
15
  | Parameter | Type | Description |
16
16
  | --- | --- | --- |
17
- | result | any | |
17
+ | message | string | |
18
18
 
19
19
  **Returns:**
20
20
 
@@ -42,7 +42,7 @@ Only supports Client-Side Row Model.
42
42
  | [deepClone()](./grid-pro.gridprogenesisdatasource.deepclone.md) | | |
43
43
  | [deinit()](./grid-pro.gridprogenesisdatasource.deinit.md) | | Deinitialises the datasource, resetting it to its initial state. |
44
44
  | [disconnectedCallback()](./grid-pro.gridprogenesisdatasource.disconnectedcallback.md) | | |
45
- | [handleErrors(result)](./grid-pro.gridprogenesisdatasource.handleerrors.md) | | |
45
+ | [handleErrors(message)](./grid-pro.gridprogenesisdatasource.handleerrors.md) | | |
46
46
  | [init(columnDefinitions, columnStates)](./grid-pro.gridprogenesisdatasource.init.md) | | Initializes the datasource. |
47
47
  | [refreshRows()](./grid-pro.gridprogenesisdatasource.refreshrows.md) | | Force the grid to redispatch the current rows |
48
48
  | [removeFilter(fieldName)](./grid-pro.gridprogenesisdatasource.removefilter.md) | | |
@@ -11,7 +11,7 @@ The Genesis Datasource events names.
11
11
  ```typescript
12
12
  gridProGenesisDatasourceEventNames: {
13
13
  error: string;
14
- rowDataSet: string;
14
+ dataInit: string;
15
15
  sizeChanged: string;
16
16
  }
17
17
  ```
@@ -145,8 +145,6 @@
145
145
  | [GridProErrorTypes](./grid-pro.gridproerrortypes.md) | Grid Pro Error Types |
146
146
  | [GridProGenesisDatasourceErrorEvent](./grid-pro.gridprogenesisdatasourceerrorevent.md) | The error event grid pro genesis datasource. |
147
147
  | [GridProGenesisDatasourceErrorEventDetail](./grid-pro.gridprogenesisdatasourceerroreventdetail.md) | The event detail for the grid pro genesis datasource <code>error</code> event. |
148
- | [GridProGenesisDatasourceRowDataSetEvent](./grid-pro.gridprogenesisdatasourcerowdatasetevent.md) | The rowDataSet event grid pro genesis datasource. |
149
- | [GridProGenesisDatasourceRowDataSetEventDetail](./grid-pro.gridprogenesisdatasourcerowdataseteventdetail.md) | The event detail for the grid pro genesis datasource <code>rowDataSet</code> event. |
150
148
  | [GrigProGenesisDatasourceSizeChangedEvent](./grid-pro.grigprogenesisdatasourcesizechangedevent.md) | The change size event grid pro genesis datasource. |
151
149
  | [GrigProGenesisDatasourceSizeChangedEventDetail](./grid-pro.grigprogenesisdatasourcesizechangedeventdetail.md) | The event detail for the grid pro genesis datasource <code>sizeChanged</code> event. |
152
150
 
@@ -847,16 +847,18 @@ export class GridPro extends GridPro_base {
847
847
  get gridOptions(): GridOptions;
848
848
  set gridOptions(options: GridOptions);
849
849
  gridOptionsConfig: GridOptionsConfig;
850
- // Warning: (ae-forgotten-export) The symbol "GridProBaseDatasource" needs to be exported by the entry point index.d.ts
850
+ // Warning: (ae-incompatible-release-tags) The symbol "gridProDatasource" is marked as @public, but its signature references "GridProServerSideDatasource" which is marked as @alpha
851
851
  //
852
852
  // (undocumented)
853
- get gridProDatasource(): GridProBaseDatasource;
853
+ get gridProDatasource(): GridProGenesisDatasource | GridProClientSideDatasource | GridProServerSideDatasource;
854
854
  // (undocumented)
855
855
  gridSlot: HTMLSlotElement;
856
856
  headerCaseType: GridProCaseType;
857
857
  // (undocumented)
858
858
  headerHeight: number;
859
859
  // (undocumented)
860
+ hideDatasourceError(): void;
861
+ // (undocumented)
860
862
  protected initialised: boolean;
861
863
  mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
862
864
  // (undocumented)
@@ -1011,7 +1013,7 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
1011
1013
  // (undocumented)
1012
1014
  disconnectedCallback(): void;
1013
1015
  // (undocumented)
1014
- handleErrors(result: any): void;
1016
+ handleErrors(message: string): void;
1015
1017
  init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
1016
1018
  // (undocumented)
1017
1019
  keepColDefsOnClearRowData: boolean;
@@ -1044,18 +1046,10 @@ export type GridProGenesisDatasourceErrorEventDetail = {
1044
1046
  // @public
1045
1047
  export const gridProGenesisDatasourceEventNames: {
1046
1048
  error: string;
1047
- rowDataSet: string;
1049
+ dataInit: string;
1048
1050
  sizeChanged: string;
1049
1051
  };
1050
1052
 
1051
- // @public
1052
- export type GridProGenesisDatasourceRowDataSetEvent = CustomEvent<GridProGenesisDatasourceRowDataSetEventDetail>;
1053
-
1054
- // @public
1055
- export type GridProGenesisDatasourceRowDataSetEventDetail = {
1056
- data: any[];
1057
- };
1058
-
1059
1053
  // @public
1060
1054
  export enum GridProRendererTypes {
1061
1055
  // (undocumented)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/grid-pro",
3
3
  "description": "Genesis Foundation AG Grid",
4
- "version": "14.172.3",
4
+ "version": "14.173.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -30,20 +30,20 @@
30
30
  "test:debug": "genx test --debug"
31
31
  },
32
32
  "devDependencies": {
33
- "@genesislcap/foundation-testing": "14.172.3",
34
- "@genesislcap/genx": "14.172.3",
35
- "@genesislcap/rollup-builder": "14.172.3",
36
- "@genesislcap/ts-builder": "14.172.3",
37
- "@genesislcap/uvu-playwright-builder": "14.172.3",
38
- "@genesislcap/vite-builder": "14.172.3",
39
- "@genesislcap/webpack-builder": "14.172.3",
33
+ "@genesislcap/foundation-testing": "14.173.1",
34
+ "@genesislcap/genx": "14.173.1",
35
+ "@genesislcap/rollup-builder": "14.173.1",
36
+ "@genesislcap/ts-builder": "14.173.1",
37
+ "@genesislcap/uvu-playwright-builder": "14.173.1",
38
+ "@genesislcap/vite-builder": "14.173.1",
39
+ "@genesislcap/webpack-builder": "14.173.1",
40
40
  "rimraf": "^3.0.2"
41
41
  },
42
42
  "dependencies": {
43
- "@genesislcap/foundation-comms": "14.172.3",
44
- "@genesislcap/foundation-logger": "14.172.3",
45
- "@genesislcap/foundation-ui": "14.172.3",
46
- "@genesislcap/foundation-utils": "14.172.3",
43
+ "@genesislcap/foundation-comms": "14.173.1",
44
+ "@genesislcap/foundation-logger": "14.173.1",
45
+ "@genesislcap/foundation-ui": "14.173.1",
46
+ "@genesislcap/foundation-utils": "14.173.1",
47
47
  "@microsoft/fast-colors": "^5.3.1",
48
48
  "@microsoft/fast-components": "^2.30.6",
49
49
  "@microsoft/fast-element": "^1.12.0",
@@ -69,5 +69,5 @@
69
69
  "access": "public"
70
70
  },
71
71
  "customElements": "dist/custom-elements.json",
72
- "gitHead": "cc9b93fba1c80a063df18cbd70752c921f9bad0a"
72
+ "gitHead": "f5103964572a3612e77c069dd8b41cec6980d89f"
73
73
  }
@@ -1,15 +0,0 @@
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; [GridProGenesisDatasourceRowDataSetEvent](./grid-pro.gridprogenesisdatasourcerowdatasetevent.md)
4
-
5
- ## GridProGenesisDatasourceRowDataSetEvent type
6
-
7
- The rowDataSet event grid pro genesis datasource.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export type GridProGenesisDatasourceRowDataSetEvent = CustomEvent<GridProGenesisDatasourceRowDataSetEventDetail>;
13
- ```
14
- **References:** [GridProGenesisDatasourceRowDataSetEventDetail](./grid-pro.gridprogenesisdatasourcerowdataseteventdetail.md)
15
-
@@ -1,15 +0,0 @@
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; [GridProGenesisDatasourceRowDataSetEventDetail](./grid-pro.gridprogenesisdatasourcerowdataseteventdetail.md)
4
-
5
- ## GridProGenesisDatasourceRowDataSetEventDetail type
6
-
7
- The event detail for the grid pro genesis datasource `rowDataSet` event.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export type GridProGenesisDatasourceRowDataSetEventDetail = {
13
- data: any[];
14
- };
15
- ```