@genesislcap/grid-pro 14.25.0 → 14.25.1-alpha-3c26bb7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -263,6 +263,16 @@
263
263
  "kind": "javascript-module",
264
264
  "path": "src/grid-pro.ts",
265
265
  "declarations": [
266
+ {
267
+ "kind": "function",
268
+ "name": "hypenateAndLowercase",
269
+ "parameters": [
270
+ {
271
+ "name": "property"
272
+ }
273
+ ],
274
+ "privacy": "public"
275
+ },
266
276
  {
267
277
  "kind": "class",
268
278
  "description": "The Grid Pro element.",
@@ -429,15 +439,18 @@
429
439
  {
430
440
  "kind": "field",
431
441
  "name": "agAttributes",
432
- "privacy": "protected",
433
442
  "type": {
434
- "text": "object"
443
+ "text": "Record<string, string>"
435
444
  },
445
+ "privacy": "protected",
436
446
  "default": "{}"
437
447
  },
438
448
  {
439
449
  "kind": "field",
440
450
  "name": "agPropertiesMap",
451
+ "type": {
452
+ "text": "Record<string, string>"
453
+ },
441
454
  "privacy": "protected"
442
455
  },
443
456
  {
@@ -885,6 +898,14 @@
885
898
  }
886
899
  ],
887
900
  "exports": [
901
+ {
902
+ "kind": "js",
903
+ "name": "hypenateAndLowercase",
904
+ "declaration": {
905
+ "name": "hypenateAndLowercase",
906
+ "module": "src/grid-pro.ts"
907
+ }
908
+ },
888
909
  {
889
910
  "kind": "js",
890
911
  "name": "GridPro",
@@ -4548,7 +4569,7 @@
4548
4569
  "kind": "field",
4549
4570
  "name": "agGrid",
4550
4571
  "type": {
4551
- "text": "GridPro"
4572
+ "text": "GridPro | null"
4552
4573
  },
4553
4574
  "privacy": "private",
4554
4575
  "readonly": true
@@ -4581,30 +4602,10 @@
4581
4602
  {
4582
4603
  "kind": "method",
4583
4604
  "name": "clearRowData",
4584
- "privacy": "private"
4585
- },
4586
- {
4587
- "kind": "method",
4588
- "name": "updateRowData",
4589
4605
  "privacy": "private",
4590
4606
  "parameters": [
4591
4607
  {
4592
- "name": "rowData"
4593
- }
4594
- ]
4595
- },
4596
- {
4597
- "kind": "method",
4598
- "name": "loadResourceData",
4599
- "privacy": "private",
4600
- "return": {
4601
- "type": {
4602
- "text": "Promise<void>"
4603
- }
4604
- },
4605
- "parameters": [
4606
- {
4607
- "name": "withFullInit",
4608
+ "name": "withColumnDefs",
4608
4609
  "default": "true"
4609
4610
  }
4610
4611
  ]
@@ -23,12 +23,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
23
23
  innerText: string;
24
24
  lang: string;
25
25
  readonly offsetHeight: number;
26
+ readonly offsetLeft: number;
26
27
  /**
27
28
  * Initializes the datasource.
28
29
  * @public
29
30
  * @remarks This method is called automatically when the element is connected to the DOM.
30
31
  */
31
- readonly offsetLeft: number;
32
32
  readonly offsetParent: Element;
33
33
  readonly offsetTop: number;
34
34
  readonly offsetWidth: number;
@@ -384,8 +384,32 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
384
384
  * @public
385
385
  */
386
386
  restart(): void;
387
+ /**
388
+ * Sends a DATA_LOGOFF when the resource is an active stream
389
+ * @remarks Will only happen for DATASERER resources.
390
+ * @internal
391
+ */
392
+ private dataLogoff;
387
393
  private clearRowData;
388
- private updateRowData;
394
+ /**
395
+ * Sets the columnDefs and rowData for the grid.
396
+ * @remarks This should only happen once, when the grid is first initialized. Follow up updates will use the agTransaction.
397
+ * @internal
398
+ */
399
+ private setRowData;
400
+ /**
401
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
402
+ * Proxies to {@link @genesislcap/grid-pro#GridProGenesisDatasource.loadResourceData} but without the full init (no metadata fetch).
403
+ * @internal
404
+ */
405
+ private reloadResourceData;
406
+ /**
407
+ * Initializes the datasource and loads the data for the grid.
408
+ * Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
409
+ *
410
+ * @param withFullInit - if true, will call datasource.init() with requiresMetadataFetch = true, fetching fresh metadata
411
+ * @internal
412
+ */
389
413
  private loadResourceData;
390
414
  private handleSnapshot;
391
415
  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,EACL,OAAO,EAEP,UAAU,EAWX,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;;;;;;;;;;;;;;;;;;;;;;;IA0G7D;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA7FL;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAiC;IACpE,OAAO,EAAG,OAAO,CAAC;IACf,UAAU,EAAG,UAAU,CAAC;IAExB,mBAAmB,EAAE,WAAW,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACgC,UAAU,UAAS;IACvC,OAAO,EAAE,MAAM,CAAmC;IAClD,OAAO,EAAE,MAAM,CAAoC;IAC/B,UAAU,UAAS;IACvC,OAAO,EAAE,MAAM,CAAC;IACrC,OAAO,EAAE,GAAG,CAAC;IACa,YAAY,EAAE,MAAM,CAAC;IAC3D,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK3B,OAAO,UAAS;IACZ,KAAK,SAAa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,CAAqB;IAE1C,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,mBAAmB,CAAkC;IAC7D,OAAO,CAAC,MAAM,CAAwE;IAEtF,iBAAiB;IAsBjB,oBAAoB;IAQX,SAAS,IAAI,IAAI;IAO1B,OAAO,KAAK,MAAM,GAEjB;IAID;;;;OAIG;IACH,IAAI;IAkCJ;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IA0BL;;;OAGG;IACH,OAAO;IAKP;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAUlB;;;;OAIG;YACW,kBAAkB;IAMhC;;;;;;OAMG;YACW,gBAAgB;IA4C9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,kBAAkB;IAY1B,OAAO,CAAC,sBAAsB;IAmC9B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IA0CvB,OAAO,CAAC,aAAa;IAMrB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAUjD,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
@@ -1,9 +1,19 @@
1
- import { Grid, ColumnApi, GridApi, GridOptions, ColDef } from '@ag-grid-community/core';
1
+ import type { ColDef, ColumnApi, 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 { GridComponents } from './grid-pro.types';
5
+ /**
6
+ * @public
7
+ */
8
+ export declare const hypenateAndLowercase: (property: any) => any;
4
9
  declare const GridPro_base: (new (...args: any[]) => {
5
10
  "__#1@#_container": import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
6
- cloneNode(deep?: boolean): Node;
11
+ cloneNode(deep?: boolean): Node; /**
12
+ * The Grid Pro element.
13
+ * @remarks Grid Pro is a Web Component wrapper around the AG Grid Community library.
14
+ * @public
15
+ * @tagname %%prefix%%-grid-pro
16
+ */
7
17
  deepClone(): Node;
8
18
  readonly shouldRunDisconnect: boolean;
9
19
  readonly shouldRunConnect: boolean;
@@ -363,8 +373,8 @@ export declare class GridPro extends GridPro_base {
363
373
  gridComponents: {
364
374
  [componentName: string]: any;
365
375
  };
366
- protected agAttributes: any;
367
- protected agPropertiesMap: any;
376
+ protected agAttributes: Record<string, string>;
377
+ protected agPropertiesMap: Record<string, string>;
368
378
  protected agGridOptions: GridOptions;
369
379
  protected initialised: boolean;
370
380
  private rehydrationAttempted;
@@ -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,EAKP,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAc/D,OAAO,EAKL,cAAc,EACf,MAAM,kBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,OAAO,CAAC,oBAAoB,CAAS;;IAarC,iBAAiB,IAAI,IAAI;IAyBzB,oBAAoB,IAAI,IAAI;IAQ5B,wBAAwB,CAAC,qBAAqB,EAAE,cAAc,GAAG,cAAc;IAc/E,uBAAuB,IAAI,OAAO;IAOlC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;;OAGG;IACH,OAAO,CAAC,4BAA4B;IAIpC,OAAO,CAAC,yBAAyB;IAcjC,OAAO,CAAC,oBAAoB;IAa5B;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EA+EnC;IAED,OAAO,CAAC,kBAAkB;IAiB1B,wBAAwB,CAAC,UAAU,GAAE,MAAM,EAAO;IAgClD,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.
@@ -45,7 +46,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
45
46
  this.init();
46
47
  });
47
48
  this.connectionSub = this.connect.isConnectedSubject.subscribe((isConnected) => {
48
- if (isConnected && this.agGrid.attributes['ds-disconnected']) {
49
+ var _a;
50
+ if (isConnected && ((_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.attributes['ds-disconnected'])) {
49
51
  this.agGrid.removeAttribute('ds-disconnected');
50
52
  if (this.restartOnReconnection) {
51
53
  this.restart();
@@ -89,8 +91,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
89
91
  const filterDebounceTime = 600;
90
92
  this.updateSub = this.update
91
93
  .pipe(skip(1), debounceTime(filterDebounceTime), tap((f) => logger.debug('filters (debounced): ', f)))
92
- .subscribe((value) => {
93
- this.loadResourceData(withoutFullInit);
94
+ .subscribe((_) => {
95
+ this.reloadResourceData();
94
96
  });
95
97
  return;
96
98
  }
@@ -123,13 +125,10 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
123
125
  }
124
126
  this.requiresFullRowDataAndColDefs = true;
125
127
  this.dataSubWasLoggedOff = false;
126
- this.clearRowData();
127
- if (this.sourceRef) {
128
- this.connect.dataLogoff(this.sourceRef);
129
- this.sourceRef = undefined;
130
- }
131
128
  this.criteriaFromFilters = new Map();
132
129
  this.update = new BehaviorSubject(new Map());
130
+ this.dataLogoff();
131
+ this.clearRowData();
133
132
  }
134
133
  /**
135
134
  * Restarts the datasource, uses `deinit` and `init` in sequence.
@@ -139,13 +138,32 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
139
138
  this.deinit();
140
139
  this.init();
141
140
  }
142
- clearRowData() {
143
- var _a, _b;
141
+ /**
142
+ * Sends a DATA_LOGOFF when the resource is an active stream
143
+ * @remarks Will only happen for DATASERER resources.
144
+ * @internal
145
+ */
146
+ dataLogoff() {
147
+ if (this.sourceRef) {
148
+ this.connect.dataLogoff(this.sourceRef);
149
+ this.sourceRef = undefined;
150
+ }
151
+ }
152
+ clearRowData(withColumnDefs = true) {
153
+ var _a, _b, _c, _d;
144
154
  this.rows = new Map();
145
155
  this.agTransaction = undefined;
146
- (_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setRowData([]);
156
+ if (withColumnDefs) {
157
+ (_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setColumnDefs([]);
158
+ }
159
+ (_d = (_c = this.agGrid) === null || _c === void 0 ? void 0 : _c.gridApi) === null || _d === void 0 ? void 0 : _d.setRowData([]);
147
160
  }
148
- updateRowData(rowData) {
161
+ /**
162
+ * Sets the columnDefs and rowData for the grid.
163
+ * @remarks This should only happen once, when the grid is first initialized. Follow up updates will use the agTransaction.
164
+ * @internal
165
+ */
166
+ setRowData(rowData) {
149
167
  const agColumnDefs = this.getAgColumnDefs(this.datasource.fieldMetadata);
150
168
  if (agColumnDefs) {
151
169
  this.agGrid.gridApi.setColumnDefs(agColumnDefs);
@@ -153,13 +171,28 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
153
171
  this.agGrid.gridApi.setRowData(rowData);
154
172
  this.requiresFullRowDataAndColDefs = false;
155
173
  }
174
+ /**
175
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
176
+ * Proxies to {@link @genesislcap/grid-pro#GridProGenesisDatasource.loadResourceData} but without the full init (no metadata fetch).
177
+ * @internal
178
+ */
179
+ reloadResourceData() {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ this.dataLogoff();
182
+ this.clearRowData(withoutColumnDefs);
183
+ this.loadResourceData(withoutFullInit);
184
+ });
185
+ }
186
+ /**
187
+ * Initializes the datasource and loads the data for the grid.
188
+ * Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
189
+ *
190
+ * @param withFullInit - if true, will call datasource.init() with requiresMetadataFetch = true, fetching fresh metadata
191
+ * @internal
192
+ */
156
193
  loadResourceData(withFullInit = true) {
157
194
  return __awaiter(this, void 0, void 0, function* () {
158
195
  const requiresMetadataFetch = withFullInit || !this.datasource.initialized;
159
- if (!requiresMetadataFetch) {
160
- this.connect.dataLogoff(this.sourceRef);
161
- this.clearRowData();
162
- }
163
196
  const initOK = yield this.datasource.init(this.datasourceOptions(), requiresMetadataFetch);
164
197
  if (!initOK) {
165
198
  logger.debug(`Genesis Datasource init failed for ${this.resourceName}`);
@@ -170,7 +203,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
170
203
  const result = yield this.datasource.snapshot();
171
204
  if (result) {
172
205
  const rowData = this.handleSnapshot(result);
173
- this.updateRowData(rowData);
206
+ this.setRowData(rowData);
174
207
  }
175
208
  return;
176
209
  }
@@ -243,7 +276,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
243
276
  });
244
277
  }
245
278
  const rowData = this.rows.size > 0 ? Array.from(this.rows.values()) : requestServerResult.REPLY;
246
- this.updateRowData(rowData);
279
+ this.setRowData(rowData);
247
280
  return;
248
281
  }
249
282
  this.agTransaction = { add: [], remove: [], update: [] };
@@ -259,7 +292,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
259
292
  this.rows.set(insertData[this.rowId], insertData);
260
293
  });
261
294
  const rowData = Array.from(this.rows.values());
262
- this.updateRowData(rowData);
295
+ this.setRowData(rowData);
263
296
  return;
264
297
  }
265
298
  this.agTransaction = { add: [], remove: [], update: [] };
@@ -339,7 +372,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
339
372
  const firstCriteria = !oldCriteria && newCriteria;
340
373
  const criteriaNotDuplicate = oldCriteria !== normaliseCriteria(newCriteria, criteriaDelimiter);
341
374
  if (firstCriteria || criteriaNotDuplicate) {
342
- DOM.queueUpdate(() => this.loadResourceData(withoutFullInit));
375
+ // DOM.queueUpdate(() => this.reloadResourceData());
376
+ this.reloadResourceData();
343
377
  }
344
378
  }
345
379
  setFilter(fieldName, newFilter) {
@@ -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';
@@ -21,7 +21,10 @@ GridProGenesisDatasourceNext;
21
21
  GridProCell;
22
22
  GridColumn;
23
23
  ModuleRegistry.registerModules([CsvExportModule, ClientSideRowModelModule]);
24
- const hypenateAndLowercase = (property) => property.replace('/([a-z])([A-Z])/g', '$1-$2').toLowerCase();
24
+ /**
25
+ * @public
26
+ */
27
+ export const hypenateAndLowercase = (property) => property.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
25
28
  /**
26
29
  * The Grid Pro element.
27
30
  * @remarks Grid Pro is a Web Component wrapper around the AG Grid Community library.
@@ -81,7 +84,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
81
84
  ComponentUtil.ALL_PROPERTIES.forEach((key) => {
82
85
  Object.defineProperty(this, key, {
83
86
  set: (v) => {
84
- this.agAttributeChangedCallback(key.toLowerCase(), undefined, v);
87
+ this.agAttributeChangedCallback(hypenateAndLowercase(key), undefined, v);
85
88
  },
86
89
  enumerable: true,
87
90
  configurable: true,
@@ -176,26 +179,29 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
176
179
  return;
177
180
  this.agAttributes[attrName] = attribute.value;
178
181
  });
179
- const { columnDefs, components, onGridReady } = options, rest = __rest(options, ["columnDefs", "components", "onGridReady"]);
182
+ const { columnDefs, components, onGridReady, onFirstDataRendered } = options, rest = __rest(options, ["columnDefs", "components", "onGridReady", "onFirstDataRendered"]);
180
183
  const derivedOptions = Object.assign(Object.assign(Object.assign({ defaultColDef: {
181
184
  filter: true,
182
185
  resizable: true,
183
186
  sortable: true,
184
- }, columnDefs: this.applyTemplateDefinitions(columnDefs), components: this.combineAllGridComponents(components), suppressDragLeaveHidesColumns: true }, this.eventsAndCallbacks), { onGridReady: (params) => {
187
+ }, columnDefs: this.applyTemplateDefinitions(columnDefs), components: this.combineAllGridComponents(components), suppressDragLeaveHidesColumns: true }, this.eventsAndCallbacks), { onGridReady: (event) => {
185
188
  var _a, _b;
186
- this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : params.api;
187
- this.columnApi = (_b = options.columnApi) !== null && _b !== void 0 ? _b : params.columnApi;
189
+ this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
190
+ this.columnApi = (_b = options.columnApi) !== null && _b !== void 0 ? _b : event.columnApi;
188
191
  if (onGridReady) {
189
- onGridReady(params);
192
+ onGridReady(event);
190
193
  }
191
194
  this.$emit('onGridReady', {
192
- params,
195
+ event,
193
196
  gridId: this.id,
194
197
  });
195
198
  rehydrateTableConfig();
196
199
  this.debouncedColumnAutosize.bind(this)();
197
- }, onFirstDataRendered: () => {
200
+ }, onFirstDataRendered: (event) => {
198
201
  this.enableFlashingRows.bind(this);
202
+ if (onFirstDataRendered) {
203
+ onFirstDataRendered(event);
204
+ }
199
205
  }, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: gridOnChangeCallback, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback }), rest);
200
206
  this.agGridOptions = Object.assign(Object.assign({}, this.agGridOptions), ComponentUtil.copyAttributesToGridOptions(derivedOptions, this.agAttributes));
201
207
  const gridParams = {
@@ -4848,9 +4848,14 @@
4848
4848
  "kind": "Content",
4849
4849
  "text": "protected agAttributes: "
4850
4850
  },
4851
+ {
4852
+ "kind": "Reference",
4853
+ "text": "Record",
4854
+ "canonicalReference": "!Record:type"
4855
+ },
4851
4856
  {
4852
4857
  "kind": "Content",
4853
- "text": "any"
4858
+ "text": "<string, string>"
4854
4859
  },
4855
4860
  {
4856
4861
  "kind": "Content",
@@ -4863,7 +4868,7 @@
4863
4868
  "name": "agAttributes",
4864
4869
  "propertyTypeTokenRange": {
4865
4870
  "startIndex": 1,
4866
- "endIndex": 2
4871
+ "endIndex": 3
4867
4872
  },
4868
4873
  "isStatic": false,
4869
4874
  "isProtected": true,
@@ -4940,9 +4945,14 @@
4940
4945
  "kind": "Content",
4941
4946
  "text": "protected agPropertiesMap: "
4942
4947
  },
4948
+ {
4949
+ "kind": "Reference",
4950
+ "text": "Record",
4951
+ "canonicalReference": "!Record:type"
4952
+ },
4943
4953
  {
4944
4954
  "kind": "Content",
4945
- "text": "any"
4955
+ "text": "<string, string>"
4946
4956
  },
4947
4957
  {
4948
4958
  "kind": "Content",
@@ -4955,7 +4965,7 @@
4955
4965
  "name": "agPropertiesMap",
4956
4966
  "propertyTypeTokenRange": {
4957
4967
  "startIndex": 1,
4958
- "endIndex": 2
4968
+ "endIndex": 3
4959
4969
  },
4960
4970
  "isStatic": false,
4961
4971
  "isProtected": true,
@@ -7475,6 +7485,29 @@
7475
7485
  "endIndex": 2
7476
7486
  }
7477
7487
  },
7488
+ {
7489
+ "kind": "Variable",
7490
+ "canonicalReference": "@genesislcap/grid-pro!hypenateAndLowercase:var",
7491
+ "docComment": "/**\n * @public\n */\n",
7492
+ "excerptTokens": [
7493
+ {
7494
+ "kind": "Content",
7495
+ "text": "hypenateAndLowercase: "
7496
+ },
7497
+ {
7498
+ "kind": "Content",
7499
+ "text": "(property: any) => any"
7500
+ }
7501
+ ],
7502
+ "fileUrlPath": "src/grid-pro.ts",
7503
+ "isReadonly": true,
7504
+ "releaseTag": "Public",
7505
+ "name": "hypenateAndLowercase",
7506
+ "variableTypeTokenRange": {
7507
+ "startIndex": 1,
7508
+ "endIndex": 2
7509
+ }
7510
+ },
7478
7511
  {
7479
7512
  "kind": "Variable",
7480
7513
  "canonicalReference": "@genesislcap/grid-pro!logger:var",
@@ -8,7 +8,7 @@ import { ServerSideRowModelModule as AgeSSRMModule } from '@ag-grid-enterprise/s
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 { Connect } from '@genesislcap/foundation-comms';
13
13
  import type { Container } from '@microsoft/fast-foundation';
14
14
  import { Controller } from '@microsoft/fast-element';
@@ -22,7 +22,7 @@ import { FoundationElement } from '@microsoft/fast-foundation';
22
22
  import { FoundationElementRegistry } from '@microsoft/fast-foundation';
23
23
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
24
24
  import { Grid } from '@ag-grid-community/core';
25
- import { GridApi } from '@ag-grid-community/core';
25
+ import type { GridApi } from '@ag-grid-community/core';
26
26
  import { GridOptions } from '@ag-grid-community/core';
27
27
  import { ICellRendererComp } from '@ag-grid-community/core';
28
28
  import { ICellRendererFunc } from '@ag-grid-community/core';
@@ -819,8 +819,8 @@ export declare class GridPro extends GridPro_base {
819
819
  gridComponents: {
820
820
  [componentName: string]: any;
821
821
  };
822
- protected agAttributes: any;
823
- protected agPropertiesMap: any;
822
+ protected agAttributes: Record<string, string>;
823
+ protected agPropertiesMap: Record<string, string>;
824
824
  protected agGridOptions: GridOptions;
825
825
  protected initialised: boolean;
826
826
  private rehydrationAttempted;
@@ -859,7 +859,12 @@ export declare class GridPro extends GridPro_base {
859
859
 
860
860
  declare const GridPro_base: (new (...args: any[]) => {
861
861
  "__#1@#_container": FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
862
- cloneNode(deep?: boolean): Node;
862
+ cloneNode(deep?: boolean): Node; /**
863
+ * The Grid Pro element.
864
+ * @remarks Grid Pro is a Web Component wrapper around the AG Grid Community library.
865
+ * @public
866
+ * @tagname %%prefix%%-grid-pro
867
+ */
863
868
  deepClone(): Node;
864
869
  readonly shouldRunDisconnect: boolean;
865
870
  readonly shouldRunConnect: boolean;
@@ -1262,8 +1267,32 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
1262
1267
  * @public
1263
1268
  */
1264
1269
  restart(): void;
1270
+ /**
1271
+ * Sends a DATA_LOGOFF when the resource is an active stream
1272
+ * @remarks Will only happen for DATASERER resources.
1273
+ * @internal
1274
+ */
1275
+ private dataLogoff;
1265
1276
  private clearRowData;
1266
- private updateRowData;
1277
+ /**
1278
+ * Sets the columnDefs and rowData for the grid.
1279
+ * @remarks This should only happen once, when the grid is first initialized. Follow up updates will use the agTransaction.
1280
+ * @internal
1281
+ */
1282
+ private setRowData;
1283
+ /**
1284
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
1285
+ * Proxies to {@link @genesislcap/grid-pro#GridProGenesisDatasource.loadResourceData} but without the full init (no metadata fetch).
1286
+ * @internal
1287
+ */
1288
+ private reloadResourceData;
1289
+ /**
1290
+ * Initializes the datasource and loads the data for the grid.
1291
+ * Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
1292
+ *
1293
+ * @param withFullInit - if true, will call datasource.init() with requiresMetadataFetch = true, fetching fresh metadata
1294
+ * @internal
1295
+ */
1267
1296
  private loadResourceData;
1268
1297
  private handleSnapshot;
1269
1298
  private datasourceOptions;
@@ -1302,12 +1331,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
1302
1331
  innerText: string;
1303
1332
  lang: string;
1304
1333
  readonly offsetHeight: number;
1334
+ readonly offsetLeft: number;
1305
1335
  /**
1306
1336
  * Initializes the datasource.
1307
1337
  * @public
1308
1338
  * @remarks This method is called automatically when the element is connected to the DOM.
1309
1339
  */
1310
- readonly offsetLeft: number;
1311
1340
  readonly offsetParent: Element;
1312
1341
  readonly offsetTop: number;
1313
1342
  readonly offsetWidth: number;
@@ -1978,6 +2007,11 @@ export declare enum GridProRendererTypes {
1978
2007
  */
1979
2008
  export declare const gridProTemplate: ViewTemplate;
1980
2009
 
2010
+ /**
2011
+ * @public
2012
+ */
2013
+ export declare const hypenateAndLowercase: (property: any) => any;
2014
+
1981
2015
  /**
1982
2016
  * Logger for the grid-pro package
1983
2017
  * @public
@@ -7,5 +7,5 @@
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
- protected agAttributes: any;
10
+ protected agAttributes: Record<string, string>;
11
11
  ```
@@ -7,5 +7,5 @@
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
- protected agPropertiesMap: any;
10
+ protected agPropertiesMap: Record<string, string>;
11
11
  ```
@@ -27,10 +27,10 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
27
27
 
28
28
  | Property | Modifiers | Type | Description |
29
29
  | --- | --- | --- | --- |
30
- | [agAttributes](./grid-pro.gridpro.agattributes.md) | <code>protected</code> | any | |
30
+ | [agAttributes](./grid-pro.gridpro.agattributes.md) | <code>protected</code> | Record&lt;string, string&gt; | |
31
31
  | [agGrid](./grid-pro.gridpro.aggrid.md) | | Grid | |
32
32
  | [agGridOptions](./grid-pro.gridpro.aggridoptions.md) | <code>protected</code> | GridOptions | |
33
- | [agPropertiesMap](./grid-pro.gridpro.agpropertiesmap.md) | <code>protected</code> | any | |
33
+ | [agPropertiesMap](./grid-pro.gridpro.agpropertiesmap.md) | <code>protected</code> | Record&lt;string, string&gt; | |
34
34
  | [autoCellRendererByType](./grid-pro.gridpro.autocellrendererbytype.md) | | boolean | |
35
35
  | [classNames](./grid-pro.gridpro.classnames.md) | | string | |
36
36
  | [columnApi](./grid-pro.gridpro.columnapi.md) | | ColumnApi | |
@@ -0,0 +1,12 @@
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; [hypenateAndLowercase](./grid-pro.hypenateandlowercase.md)
4
+
5
+ ## hypenateAndLowercase variable
6
+
7
+
8
+ **Signature:**
9
+
10
+ ```typescript
11
+ hypenateAndLowercase: (property: any) => any
12
+ ```
@@ -76,6 +76,7 @@
76
76
  | [getTextFieldRendererTemplate](./grid-pro.gettextfieldrenderertemplate.md) | Get a Design System prefixed Text Field template. |
77
77
  | [getTextRendererTemplate](./grid-pro.gettextrenderertemplate.md) | |
78
78
  | [gridProTemplate](./grid-pro.gridprotemplate.md) | The Grid Pro Template. |
79
+ | [hypenateAndLowercase](./grid-pro.hypenateandlowercase.md) | |
79
80
  | [logger](./grid-pro.logger.md) | Logger for the grid-pro package |
80
81
  | [textFieldRendererStyles](./grid-pro.textfieldrendererstyles.md) | The AG Text Field Renderer Styles. |
81
82
  | [textRendererStyles](./grid-pro.textrendererstyles.md) | |
@@ -14,7 +14,7 @@ import { ServerSideRowModelModule as AgeSSRMModule } from '@ag-grid-enterprise/s
14
14
  import { Binding } from '@microsoft/fast-element';
15
15
  import { CaptureType } from '@microsoft/fast-element';
16
16
  import { ColDef } from '@ag-grid-community/core';
17
- import { ColumnApi } from '@ag-grid-community/core';
17
+ import type { ColumnApi } from '@ag-grid-community/core';
18
18
  import { Connect } from '@genesislcap/foundation-comms';
19
19
  import type { Container } from '@microsoft/fast-foundation';
20
20
  import { Controller } from '@microsoft/fast-element';
@@ -28,7 +28,7 @@ import { FoundationElement } from '@microsoft/fast-foundation';
28
28
  import { FoundationElementRegistry } from '@microsoft/fast-foundation';
29
29
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
30
30
  import { Grid } from '@ag-grid-community/core';
31
- import { GridApi } from '@ag-grid-community/core';
31
+ import type { GridApi } from '@ag-grid-community/core';
32
32
  import { GridOptions } from '@ag-grid-community/core';
33
33
  import { ICellRendererComp } from '@ag-grid-community/core';
34
34
  import { ICellRendererFunc } from '@ag-grid-community/core';
@@ -545,13 +545,13 @@ export class GridPro extends GridPro_base {
545
545
  // (undocumented)
546
546
  agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
547
547
  // (undocumented)
548
- protected agAttributes: any;
548
+ protected agAttributes: Record<string, string>;
549
549
  // (undocumented)
550
550
  agGrid: Grid;
551
551
  // (undocumented)
552
552
  protected agGridOptions: GridOptions;
553
553
  // (undocumented)
554
- protected agPropertiesMap: any;
554
+ protected agPropertiesMap: Record<string, string>;
555
555
  // (undocumented)
556
556
  applyTemplateDefinitions(columnDefs?: ColDef[]): ColDef<any>[];
557
557
  // (undocumented)
@@ -746,6 +746,9 @@ export enum GridProRendererTypes {
746
746
  // @public
747
747
  export const gridProTemplate: ViewTemplate;
748
748
 
749
+ // @public (undocumented)
750
+ export const hypenateAndLowercase: (property: any) => any;
751
+
749
752
  // @public
750
753
  export const logger: Logger;
751
754
 
package/jsdom.setup.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@genesislcap/foundation-testing/jsdom';
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.25.0",
4
+ "version": "14.25.1-alpha-3c26bb7.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -18,11 +18,23 @@
18
18
  "dev:rollup": "genx dev -b rollup",
19
19
  "dev:tsc": "genx dev",
20
20
  "dev:webpack": "genx dev -b webpack",
21
- "serve": "genx serve"
21
+ "serve": "genx serve",
22
+ "test": "npm run test:unit",
23
+ "test:coverage": "c8 --include=src npm run test:unit",
24
+ "test:coverage:report": "npm run test:coverage && c8 report --reporter=text-lcov > coverage.lcov",
25
+ "test:coverage:report:nyc": "npm run test:unit:browser -- --cov && npx nyc report --reporter=html",
26
+ "test:unit": "npm run test:unit:browser",
27
+ "test:unit:browser": "playwright-test \"./**/*.test.ts\" --runner uvu",
28
+ "test:unit:browser:watch": "npm run test:unit:browser -- -w -d",
29
+ "test:unit:node": "npm run test:unit:node:src && npm run test:unit:node:test",
30
+ "test:unit:node:src": "uvu -r tsm -r esm -r ./jsdom.setup.ts ./src \".*.test.ts\"",
31
+ "test:unit:node:test": "uvu -r tsm -r esm -r ./jsdom.setup.ts ./test \".*.test.ts\"",
32
+ "test:unit:watch": "watchlist src test -- npm run test:unit",
33
+ "test:debug": "node --inspect-brk ../../../node_modules/uvu/bin.js -r tsm -r esm -r ./jsdom.setup.ts ./src \".*.test.ts\""
22
34
  },
23
35
  "devDependencies": {
24
- "@genesislcap/foundation-testing": "^14.25.0",
25
- "@genesislcap/genx": "^14.25.0",
36
+ "@genesislcap/foundation-testing": "14.25.1-alpha-3c26bb7.0",
37
+ "@genesislcap/genx": "14.25.1-alpha-3c26bb7.0",
26
38
  "@playwright/test": "^1.18.1",
27
39
  "bulma": "^0.9.3",
28
40
  "c8": "^7.11.0",
@@ -38,9 +50,9 @@
38
50
  "watchlist": "^0.3.1"
39
51
  },
40
52
  "dependencies": {
41
- "@genesislcap/foundation-comms": "^14.25.0",
42
- "@genesislcap/foundation-ui": "^14.25.0",
43
- "@genesislcap/foundation-utils": "^14.25.0",
53
+ "@genesislcap/foundation-comms": "14.25.1-alpha-3c26bb7.0",
54
+ "@genesislcap/foundation-ui": "14.25.1-alpha-3c26bb7.0",
55
+ "@genesislcap/foundation-utils": "14.25.1-alpha-3c26bb7.0",
44
56
  "@microsoft/fast-colors": "^5.1.4",
45
57
  "@microsoft/fast-components": "^2.21.3",
46
58
  "@microsoft/fast-element": "^1.7.0",
@@ -66,5 +78,5 @@
66
78
  "access": "public"
67
79
  },
68
80
  "customElements": "dist/custom-elements.json",
69
- "gitHead": "ee636dcc509e1cd2ab564462cb147819e7043154"
81
+ "gitHead": "b6c823b4ea994c87daea91aee563858162469ebd"
70
82
  }
package/test/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Test
2
+
3
+ See [@genesislcap/foundation-testing](../../../../foundation-testing/README.md) for more information.