@genesislcap/grid-pro 14.50.2 → 14.50.4

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.
@@ -3427,16 +3427,7 @@
3427
3427
  "kind": "field",
3428
3428
  "name": "agGrid",
3429
3429
  "type": {
3430
- "text": "GridPro"
3431
- },
3432
- "privacy": "private",
3433
- "readonly": true
3434
- },
3435
- {
3436
- "kind": "field",
3437
- "name": "rowId",
3438
- "type": {
3439
- "text": "string"
3430
+ "text": "GridPro | null"
3440
3431
  },
3441
3432
  "privacy": "private",
3442
3433
  "readonly": true
@@ -3471,40 +3462,6 @@
3471
3462
  "name": "refreshRows",
3472
3463
  "description": "Force the grid to redispatch the current rows"
3473
3464
  },
3474
- {
3475
- "kind": "method",
3476
- "name": "clearRowData",
3477
- "privacy": "private"
3478
- },
3479
- {
3480
- "kind": "method",
3481
- "name": "updateRowData",
3482
- "privacy": "private",
3483
- "parameters": [
3484
- {
3485
- "name": "rowData",
3486
- "type": {
3487
- "text": "any[]"
3488
- }
3489
- }
3490
- ]
3491
- },
3492
- {
3493
- "kind": "method",
3494
- "name": "loadResourceData",
3495
- "privacy": "private",
3496
- "return": {
3497
- "type": {
3498
- "text": "Promise<void>"
3499
- }
3500
- },
3501
- "parameters": [
3502
- {
3503
- "name": "withFullInit",
3504
- "default": "true"
3505
- }
3506
- ]
3507
- },
3508
3465
  {
3509
3466
  "kind": "method",
3510
3467
  "name": "handleSnapshot",
@@ -6,12 +6,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
6
6
  cloneNode(deep?: boolean): Node;
7
7
  deepClone(): Node;
8
8
  readonly shouldRunDisconnect: boolean;
9
- readonly shouldRunConnect: boolean; /**
10
- * Attribute to set an unique identifier for the row.
11
- *
12
- * Defaults to `ROW_REF` or `RECORD_ID` depending on the resource type.
13
- * @privateRemarks Attribute-only, not to be used as a property. Use `rowId` getter instead.
14
- */
9
+ readonly shouldRunConnect: boolean;
15
10
  "__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
16
11
  connectedCallback(): void;
17
12
  readonly $fastController: import("@microsoft/fast-element").Controller;
@@ -77,9 +72,21 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
77
72
  getBoundingClientRect(): DOMRect;
78
73
  getClientRects(): DOMRectList;
79
74
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
80
- getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
81
- getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
82
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
75
+ getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>; /**
76
+ * Resets the datasource to its initial state.
77
+ * @public
78
+ * @deprecated Use `deinit` instead
79
+ */
80
+ getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>; /**
81
+ * Resets the datasource to its initial state.
82
+ * @public
83
+ * @deprecated Use `deinit` instead
84
+ */
85
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; /**
86
+ * Resets the datasource to its initial state.
87
+ * @public
88
+ * @deprecated Use `deinit` instead
89
+ */
83
90
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
84
91
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
85
92
  getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
@@ -375,6 +382,11 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
375
382
  disconnectedCallback(): void;
376
383
  deepClone(): Node;
377
384
  private get agGrid();
385
+ /**
386
+ * Returns the row id attribute, depending on the resource type.
387
+ * @remarks Will favour the `row-id` attribute if set.
388
+ * @internal
389
+ */
378
390
  private get rowId();
379
391
  /**
380
392
  * Initializes the datasource.
@@ -408,8 +420,33 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
408
420
  * @internal
409
421
  */
410
422
  private dataLogoff;
423
+ /**
424
+ * Clears the rowData and columnDefs for the grid.
425
+ * @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
426
+ * @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
427
+ * @internal
428
+ */
411
429
  private clearRowData;
412
- private updateRowData;
430
+ /**
431
+ * Sets the columnDefs and rowData for the grid.
432
+ * @remarks This should only happen once, when the grid is first initialized. Follow up updates will use the agTransaction.
433
+ * @internal
434
+ */
435
+ private setRowData;
436
+ /**
437
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
438
+ * Proxies to {@link @genesislcap/grid-pro#GridProGenesisDatasource.loadResourceData} but without the full init (no metadata fetch).
439
+ * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
440
+ * @internal
441
+ */
442
+ private reloadResourceData;
443
+ /**
444
+ * Initializes the datasource and loads the data for the grid.
445
+ * Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
446
+ *
447
+ * @param withFullInit - if true, will call datasource.init() with requiresMetadataFetch = true, fetching fresh metadata
448
+ * @internal
449
+ */
413
450
  private loadResourceData;
414
451
  private handleSnapshot;
415
452
  private datasourceOptions;
@@ -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,EAAU,WAAW,EAAsB,MAAM,yBAAyB,CAAC;AAClF,OAAO,E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S,CAAe;IAChC,OAAO,CAAC,aAAa,CAAe;IAEpC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,6BAA6B,CAAQ;IAC7C,OAAO,CAAC,mBAAmB,CAAS;IAEpC,OAAO,CAAC,IAAI,CAA+B;IAC3C,OAAO,CAAC,aAAa,CAAqB;IAE1C,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,mBAAmB,CAAkC;IAC7D,OAAO,CAAC,MAAM,CAAwE;IAEtF,iBAAiB;IAuBjB,oBAAoB;IASX,SAAS,IAAI,IAAI;IAO1B,OAAO,KAAK,MAAM,GAEjB;IAGD,OAAO,KAAK,KAAK,GAIhB;IAED;;;;OAIG;IACG,IAAI;IAyCV;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IA6BL;;;OAGG;IACH,OAAO;IAKP;;OAEG;IACH,WAAW;IAIX;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,aAAa;YAYP,gBAAgB;IAiD9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IA2C9B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IA6CvB,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
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,EAAU,WAAW,EAAsB,MAAM,yBAAyB,CAAC;AAClF,OAAO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, ColDef, ColumnState } from '@ag-grid-community/core';
1
+ import type { ColDef, ColumnApi, ColumnState, GridApi, GridOptions } from '@ag-grid-community/core';
2
+ import { Grid } from '@ag-grid-community/core';
2
3
  import { FoundationElement } from '@microsoft/fast-foundation';
3
4
  import { GridProGenesisDatasource } from './grid-pro-genesis-datasource';
4
5
  import { GridComponents } from './grid-pro.types';
@@ -74,6 +75,11 @@ declare const GridPro_base: (new (...args: any[]) => {
74
75
  closest<E extends Element = Element>(selectors: string): E;
75
76
  getAttribute(qualifiedName: string): string;
76
77
  getAttributeNS(namespace: string, localName: string): string;
78
+ /**
79
+ * Because we try and resize the grid to fit using callbacks on events, this will cause
80
+ * a stack overflow of calls to resize, so we need to debounce it.
81
+ * @internal
82
+ */
77
83
  getAttributeNames(): string[];
78
84
  getAttributeNode(qualifiedName: string): Attr;
79
85
  getAttributeNodeNS(namespace: string, localName: string): Attr;
@@ -90,12 +96,7 @@ declare const GridPro_base: (new (...args: any[]) => {
90
96
  hasAttributeNS(namespace: string, localName: string): boolean;
91
97
  hasAttributes(): boolean;
92
98
  hasPointerCapture(pointerId: number): boolean;
93
- insertAdjacentElement(where: InsertPosition, element: Element): Element; /**
94
- * Gets the saved grid ColumnState[] from local storage
95
- * @remarks This is used to restore the grid state when the grid is rehydrated
96
- * @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
97
- * @public
98
- */
99
+ insertAdjacentElement(where: InsertPosition, element: Element): Element;
99
100
  insertAdjacentHTML(position: InsertPosition, text: string): void;
100
101
  insertAdjacentText(where: InsertPosition, data: string): void;
101
102
  matches(selectors: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EACJ,SAAS,EACT,OAAO,EAEP,WAAW,EACX,MAAM,EAIN,WAAW,EACZ,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBA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,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,wBAAwB,IAAI,wBAAwB,CAEvD;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EAiFnC;IAED,OAAO,CAAC,kBAAkB;IAiB1B,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,kBAAkB,UAAQ;IA8CzE,IAAI,kBAAkB,aAerB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAqBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAiBpC,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;CAMxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,cAA0B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
@@ -11,6 +11,7 @@ import { logger } from '../utils/logger';
11
11
  const criteriaDelimiter = ';';
12
12
  const criteriaJoin = ' && ';
13
13
  const withoutFullInit = null;
14
+ const withoutColumnDefs = null;
14
15
  /**
15
16
  * The Genesis Datasource element, for CSRM-compatible data fetching and used exclusively by the GridPro element.
16
17
  * @remarks Only supports Client-Side Row Model.
@@ -36,11 +37,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
36
37
  criteriaChanged(oldCriteria, newCriteria) {
37
38
  const criteriaIsNotDuplicate = oldCriteria !== normaliseCriteria(newCriteria, criteriaDelimiter);
38
39
  if (this.datasource.initialized && criteriaIsNotDuplicate) {
39
- if (this.dataSub) {
40
- this.dataSub.unsubscribe();
41
- this.dataSub = undefined;
42
- }
43
- this.loadResourceData(withoutFullInit);
40
+ this.reloadResourceData();
44
41
  }
45
42
  }
46
43
  resourceNameChanged(oldValue, newValue) {
@@ -57,10 +54,11 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
57
54
  this.init();
58
55
  });
59
56
  this.connectionSub = this.connect.isConnected$.subscribe((isConnected) => {
60
- if (isConnected && this.agGrid.attributes['ds-disconnected']) {
57
+ var _a;
58
+ if (isConnected && ((_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.attributes['ds-disconnected'])) {
61
59
  this.agGrid.removeAttribute('ds-disconnected');
62
60
  if (this.restartOnReconnection) {
63
- this.restart();
61
+ this.reloadResourceData();
64
62
  }
65
63
  }
66
64
  if (!isConnected) {
@@ -87,12 +85,17 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
87
85
  return this.parentElement;
88
86
  }
89
87
  // Genesis Specific
88
+ /**
89
+ * Returns the row id attribute, depending on the resource type.
90
+ * @remarks Will favour the `row-id` attribute if set.
91
+ * @internal
92
+ */
90
93
  get rowId() {
91
94
  if (this.rowIdAttr)
92
- return this.rowIdAttr; // Allow user to override
95
+ return this.rowIdAttr;
93
96
  if (this.isRequestServer)
94
- return 'RECORD_ID'; // REQUEST_SERVER default record id
95
- return 'ROW_REF'; // DATASERVER default record id
97
+ return DatasourceDefaults.REQUEST_SERVER_ROW_ID;
98
+ return DatasourceDefaults.DATASERVER_ROW_ID;
96
99
  }
97
100
  /**
98
101
  * Initializes the datasource.
@@ -114,8 +117,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
114
117
  const filterDebounceTime = 600;
115
118
  this.updateSub = this.update
116
119
  .pipe(skip(1), debounceTime(filterDebounceTime), tap((f) => logger.debug('filters (debounced): ', f)))
117
- .subscribe((value) => {
118
- this.loadResourceData(withoutFullInit);
120
+ .subscribe((_) => {
121
+ this.reloadResourceData();
119
122
  });
120
123
  return;
121
124
  }
@@ -150,10 +153,10 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
150
153
  this.isRequestServer = false;
151
154
  this.requiresFullRowDataAndColDefs = true;
152
155
  this.dataSubWasLoggedOff = false;
153
- this.dataLogoff();
154
- this.clearRowData();
155
156
  this.criteriaFromFilters = new Map();
156
157
  this.update = new BehaviorSubject(new Map());
158
+ this.dataLogoff();
159
+ this.clearRowData();
157
160
  this.datasource.deinit();
158
161
  }
159
162
  /**
@@ -168,7 +171,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
168
171
  * Force the grid to redispatch the current rows
169
172
  */
170
173
  refreshRows() {
171
- this.updateRowData(Array.from(this.rows.values()));
174
+ this.setRowData(Array.from(this.rows.values()));
172
175
  }
173
176
  /**
174
177
  * Sends a DATA_LOGOFF when the resource is an active stream
@@ -181,13 +184,27 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
181
184
  }
182
185
  this.sourceRef = undefined;
183
186
  }
184
- clearRowData() {
185
- var _a, _b;
187
+ /**
188
+ * Clears the rowData and columnDefs for the grid.
189
+ * @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
190
+ * @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
191
+ * @internal
192
+ */
193
+ clearRowData(withColumnDefs = true) {
194
+ var _a, _b, _c, _d;
186
195
  this.rows = new Map();
187
196
  this.agTransaction = undefined;
188
- (_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setRowData([]);
197
+ if (withColumnDefs) {
198
+ (_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setColumnDefs([]);
199
+ }
200
+ (_d = (_c = this.agGrid) === null || _c === void 0 ? void 0 : _c.gridApi) === null || _d === void 0 ? void 0 : _d.setRowData([]);
189
201
  }
190
- updateRowData(rowData) {
202
+ /**
203
+ * Sets the columnDefs and rowData for the grid.
204
+ * @remarks This should only happen once, when the grid is first initialized. Follow up updates will use the agTransaction.
205
+ * @internal
206
+ */
207
+ setRowData(rowData) {
191
208
  const agColumnDefs = this.getAgColumnDefs(this.datasource.fieldMetadata);
192
209
  if (agColumnDefs) {
193
210
  this.agGrid.gridApi.setColumnDefs(agColumnDefs);
@@ -196,13 +213,33 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
196
213
  this.agGrid.gridApi.setRowData(data);
197
214
  this.requiresFullRowDataAndColDefs = false;
198
215
  }
216
+ /**
217
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
218
+ * Proxies to {@link @genesislcap/grid-pro#GridProGenesisDatasource.loadResourceData} but without the full init (no metadata fetch).
219
+ * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
220
+ * @internal
221
+ */
222
+ reloadResourceData() {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ if (this.dataSub) {
225
+ this.dataSub.unsubscribe();
226
+ this.dataSub = undefined;
227
+ }
228
+ this.dataLogoff();
229
+ this.clearRowData(withoutColumnDefs);
230
+ this.loadResourceData(withoutFullInit);
231
+ });
232
+ }
233
+ /**
234
+ * Initializes the datasource and loads the data for the grid.
235
+ * Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
236
+ *
237
+ * @param withFullInit - if true, will call datasource.init() with requiresMetadataFetch = true, fetching fresh metadata
238
+ * @internal
239
+ */
199
240
  loadResourceData(withFullInit = true) {
200
241
  return __awaiter(this, void 0, void 0, function* () {
201
242
  const requiresMetadataFetch = withFullInit || !this.datasource.initialized;
202
- if (!requiresMetadataFetch) {
203
- this.dataLogoff();
204
- this.clearRowData();
205
- }
206
243
  const initOK = yield this.datasource.init(this.datasourceOptions(), requiresMetadataFetch);
207
244
  if (!initOK) {
208
245
  logger.debug(`Genesis Datasource init failed for ${this.resourceName}`);
@@ -213,7 +250,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
213
250
  const result = yield this.datasource.snapshot();
214
251
  if (result) {
215
252
  const rowData = this.handleSnapshot(result);
216
- this.updateRowData(rowData);
253
+ this.setRowData(rowData);
217
254
  }
218
255
  return;
219
256
  }
@@ -285,7 +322,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
285
322
  this.rows.set(insertData[this.rowId], insertData);
286
323
  });
287
324
  const rowData = this.rows.size > 0 ? Array.from(this.rows.values()) : requestServerData;
288
- this.updateRowData(rowData);
325
+ this.setRowData(rowData);
289
326
  return;
290
327
  }
291
328
  this.agTransaction = { add: [], remove: [], update: [] };
@@ -311,7 +348,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
311
348
  this.rows.set(insertData[this.rowId], insertData);
312
349
  });
313
350
  const rowData = Array.from(this.rows.values());
314
- this.updateRowData(rowData);
351
+ this.setRowData(rowData);
315
352
  return;
316
353
  }
317
354
  this.agTransaction = { add: [], remove: [], update: [] };
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __rest } from "tslib";
2
2
  import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
3
- import { Grid, ComponentUtil, Events, ModuleRegistry, } from '@ag-grid-community/core';
3
+ import { ComponentUtil, Events, Grid, ModuleRegistry, } from '@ag-grid-community/core';
4
4
  import { CsvExportModule } from '@ag-grid-community/csv-export';
5
5
  import { Session } from '@genesislcap/foundation-comms';
6
6
  import { insertDocumentCSSRule, LifecycleMixin, respondToVisibility, } from '@genesislcap/foundation-utils';
@@ -88,7 +88,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
88
88
  ComponentUtil.ALL_PROPERTIES.forEach((key) => {
89
89
  Object.defineProperty(this, key, {
90
90
  set: (v) => {
91
- this.agAttributeChangedCallback(key.toLowerCase(), undefined, v);
91
+ this.agAttributeChangedCallback(convertToKebabCase(key), undefined, v);
92
92
  },
93
93
  enumerable: true,
94
94
  configurable: true,
@@ -202,26 +202,29 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
202
202
  return;
203
203
  this.agAttributes[attrName] = attribute.value;
204
204
  });
205
- const { columnDefs, components, onGridReady } = options, rest = __rest(options, ["columnDefs", "components", "onGridReady"]);
205
+ const { columnDefs, components, onGridReady, onFirstDataRendered } = options, rest = __rest(options, ["columnDefs", "components", "onGridReady", "onFirstDataRendered"]);
206
206
  const derivedOptions = Object.assign(Object.assign(Object.assign({ defaultColDef: {
207
207
  filter: true,
208
208
  resizable: true,
209
209
  sortable: true,
210
- }, components: this.combineAllGridComponents(components), suppressDragLeaveHidesColumns: true }, this.eventsAndCallbacks), { onGridReady: (params) => {
210
+ }, components: this.combineAllGridComponents(components), suppressDragLeaveHidesColumns: true }, this.eventsAndCallbacks), { onGridReady: (event) => {
211
211
  var _a, _b;
212
- this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : params.api;
213
- this.columnApi = (_b = options.columnApi) !== null && _b !== void 0 ? _b : params.columnApi;
212
+ this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
213
+ this.columnApi = (_b = options.columnApi) !== null && _b !== void 0 ? _b : event.columnApi;
214
214
  if (onGridReady) {
215
- onGridReady(params);
215
+ onGridReady(event);
216
216
  }
217
217
  this.$emit('onGridReady', {
218
- params,
218
+ event,
219
219
  gridId: this.id,
220
220
  });
221
221
  this.restoreColumnState.bind(this)();
222
222
  this.debouncedColumnAutosize.bind(this)();
223
- }, onFirstDataRendered: () => {
224
- this.enableFlashingRows.bind(this)();
223
+ }, onFirstDataRendered: (event) => {
224
+ this.enableFlashingRows.bind(this);
225
+ if (onFirstDataRendered) {
226
+ onFirstDataRendered(event);
227
+ }
225
228
  }, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: gridOnChangeCallback, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback }), rest);
226
229
  if (!this.gridProGenesisDatasource) {
227
230
  derivedOptions.columnDefs = this.applyTemplateDefinitions(columnDefs);
@@ -2,7 +2,7 @@ import { ActionMenuItem } from '@genesislcap/foundation-ui';
2
2
  import { Binding } from '@microsoft/fast-element';
3
3
  import { CaptureType } from '@microsoft/fast-element';
4
4
  import { ColDef } from '@ag-grid-community/core';
5
- import { ColumnApi } from '@ag-grid-community/core';
5
+ import type { ColumnApi } from '@ag-grid-community/core';
6
6
  import { ColumnState } from '@ag-grid-community/core';
7
7
  import { Connect } from '@genesislcap/foundation-comms';
8
8
  import type { Container } from '@microsoft/fast-foundation';
@@ -17,7 +17,7 @@ import { FoundationElement } from '@microsoft/fast-foundation';
17
17
  import { FoundationElementRegistry } from '@microsoft/fast-foundation';
18
18
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
19
19
  import { Grid } from '@ag-grid-community/core';
20
- import { GridApi } from '@ag-grid-community/core';
20
+ import type { GridApi } from '@ag-grid-community/core';
21
21
  import { GridOptions } from '@ag-grid-community/core';
22
22
  import { ICellRendererComp } from '@ag-grid-community/core';
23
23
  import { ICellRendererFunc } from '@ag-grid-community/core';
@@ -925,6 +925,11 @@ declare const GridPro_base: (new (...args: any[]) => {
925
925
  closest<E extends Element = Element>(selectors: string): E;
926
926
  getAttribute(qualifiedName: string): string;
927
927
  getAttributeNS(namespace: string, localName: string): string;
928
+ /**
929
+ * Because we try and resize the grid to fit using callbacks on events, this will cause
930
+ * a stack overflow of calls to resize, so we need to debounce it.
931
+ * @internal
932
+ */
928
933
  getAttributeNames(): string[];
929
934
  getAttributeNode(qualifiedName: string): Attr;
930
935
  getAttributeNodeNS(namespace: string, localName: string): Attr;
@@ -941,12 +946,7 @@ declare const GridPro_base: (new (...args: any[]) => {
941
946
  hasAttributeNS(namespace: string, localName: string): boolean;
942
947
  hasAttributes(): boolean;
943
948
  hasPointerCapture(pointerId: number): boolean;
944
- insertAdjacentElement(where: InsertPosition, element: Element): Element; /**
945
- * Gets the saved grid ColumnState[] from local storage
946
- * @remarks This is used to restore the grid state when the grid is rehydrated
947
- * @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
948
- * @public
949
- */
949
+ insertAdjacentElement(where: InsertPosition, element: Element): Element;
950
950
  insertAdjacentHTML(position: InsertPosition, text: string): void;
951
951
  insertAdjacentText(where: InsertPosition, data: string): void;
952
952
  matches(selectors: string): boolean;
@@ -1261,6 +1261,11 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
1261
1261
  disconnectedCallback(): void;
1262
1262
  deepClone(): Node;
1263
1263
  private get agGrid();
1264
+ /**
1265
+ * Returns the row id attribute, depending on the resource type.
1266
+ * @remarks Will favour the `row-id` attribute if set.
1267
+ * @internal
1268
+ */
1264
1269
  private get rowId();
1265
1270
  /**
1266
1271
  * Initializes the datasource.
@@ -1294,8 +1299,33 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
1294
1299
  * @internal
1295
1300
  */
1296
1301
  private dataLogoff;
1302
+ /**
1303
+ * Clears the rowData and columnDefs for the grid.
1304
+ * @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
1305
+ * @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
1306
+ * @internal
1307
+ */
1297
1308
  private clearRowData;
1298
- private updateRowData;
1309
+ /**
1310
+ * Sets the columnDefs and rowData for the grid.
1311
+ * @remarks This should only happen once, when the grid is first initialized. Follow up updates will use the agTransaction.
1312
+ * @internal
1313
+ */
1314
+ private setRowData;
1315
+ /**
1316
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
1317
+ * Proxies to {@link @genesislcap/grid-pro#GridProGenesisDatasource.loadResourceData} but without the full init (no metadata fetch).
1318
+ * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
1319
+ * @internal
1320
+ */
1321
+ private reloadResourceData;
1322
+ /**
1323
+ * Initializes the datasource and loads the data for the grid.
1324
+ * Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
1325
+ *
1326
+ * @param withFullInit - if true, will call datasource.init() with requiresMetadataFetch = true, fetching fresh metadata
1327
+ * @internal
1328
+ */
1299
1329
  private loadResourceData;
1300
1330
  private handleSnapshot;
1301
1331
  private datasourceOptions;
@@ -1317,12 +1347,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
1317
1347
  cloneNode(deep?: boolean): Node;
1318
1348
  deepClone(): Node;
1319
1349
  readonly shouldRunDisconnect: boolean;
1320
- readonly shouldRunConnect: boolean; /**
1321
- * Attribute to set an unique identifier for the row.
1322
- *
1323
- * Defaults to `ROW_REF` or `RECORD_ID` depending on the resource type.
1324
- * @privateRemarks Attribute-only, not to be used as a property. Use `rowId` getter instead.
1325
- */
1350
+ readonly shouldRunConnect: boolean;
1326
1351
  "__#1@#_tryFindContainingLayout"(e: Element): FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
1327
1352
  connectedCallback(): void;
1328
1353
  readonly $fastController: Controller;
@@ -1388,9 +1413,21 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
1388
1413
  getBoundingClientRect(): DOMRect;
1389
1414
  getClientRects(): DOMRectList;
1390
1415
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
1391
- getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
1392
- getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
1393
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
1416
+ getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>; /**
1417
+ * Resets the datasource to its initial state.
1418
+ * @public
1419
+ * @deprecated Use `deinit` instead
1420
+ */
1421
+ getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>; /**
1422
+ * Resets the datasource to its initial state.
1423
+ * @public
1424
+ * @deprecated Use `deinit` instead
1425
+ */
1426
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; /**
1427
+ * Resets the datasource to its initial state.
1428
+ * @public
1429
+ * @deprecated Use `deinit` instead
1430
+ */
1394
1431
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
1395
1432
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
1396
1433
  getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
@@ -8,7 +8,7 @@ import { ActionMenuItem } from '@genesislcap/foundation-ui';
8
8
  import { Binding } from '@microsoft/fast-element';
9
9
  import { CaptureType } from '@microsoft/fast-element';
10
10
  import { ColDef } from '@ag-grid-community/core';
11
- import { ColumnApi } from '@ag-grid-community/core';
11
+ import type { ColumnApi } from '@ag-grid-community/core';
12
12
  import { ColumnState } from '@ag-grid-community/core';
13
13
  import { Connect } from '@genesislcap/foundation-comms';
14
14
  import type { Container } from '@microsoft/fast-foundation';
@@ -23,7 +23,7 @@ import { FoundationElement } from '@microsoft/fast-foundation';
23
23
  import { FoundationElementRegistry } from '@microsoft/fast-foundation';
24
24
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
25
25
  import { Grid } from '@ag-grid-community/core';
26
- import { GridApi } from '@ag-grid-community/core';
26
+ import type { GridApi } from '@ag-grid-community/core';
27
27
  import { GridOptions } from '@ag-grid-community/core';
28
28
  import { ICellRendererComp } from '@ag-grid-community/core';
29
29
  import { ICellRendererFunc } from '@ag-grid-community/core';
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.50.2",
4
+ "version": "14.50.4",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -18,17 +18,23 @@
18
18
  "dev:rollup": "genx dev -b rollup",
19
19
  "dev:tsc": "genx dev -b ts",
20
20
  "dev:webpack": "genx dev -b webpack",
21
- "serve": "genx serve"
21
+ "serve": "genx serve",
22
+ "test": "genx test --browser",
23
+ "test:coverage": "genx test --browser --coverage",
24
+ "test:coverage:browser": "genx test --coverage --browser",
25
+ "test:unit:browser": "genx test --browser",
26
+ "test:unit:browser:watch": "genx test --browser --watch",
27
+ "test:unit:watch": "genx test --watch",
28
+ "test:debug": "genx test --debug"
22
29
  },
23
30
  "devDependencies": {
24
- "@genesislcap/foundation-testing": "^14.50.2",
25
- "@genesislcap/genx": "^14.50.2",
26
- "bulma": "^0.9.3"
31
+ "@genesislcap/foundation-testing": "^14.50.4",
32
+ "@genesislcap/genx": "^14.50.4"
27
33
  },
28
34
  "dependencies": {
29
- "@genesislcap/foundation-comms": "^14.50.2",
30
- "@genesislcap/foundation-ui": "^14.50.2",
31
- "@genesislcap/foundation-utils": "^14.50.2",
35
+ "@genesislcap/foundation-comms": "^14.50.4",
36
+ "@genesislcap/foundation-ui": "^14.50.4",
37
+ "@genesislcap/foundation-utils": "^14.50.4",
32
38
  "@microsoft/fast-colors": "^5.1.4",
33
39
  "@microsoft/fast-components": "^2.21.3",
34
40
  "@microsoft/fast-element": "^1.7.0",
@@ -51,5 +57,5 @@
51
57
  "access": "public"
52
58
  },
53
59
  "customElements": "dist/custom-elements.json",
54
- "gitHead": "14856e432ab40a9e95f9073703a046f42288d06f"
60
+ "gitHead": "9f53680f79af05dbba4ee9a383c602c200d97c73"
55
61
  }