@genesislcap/grid-pro 14.137.1 → 14.138.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.
@@ -5189,229 +5189,6 @@
5189
5189
  }
5190
5190
  ]
5191
5191
  },
5192
- {
5193
- "kind": "javascript-module",
5194
- "path": "src/column/column.template.ts",
5195
- "declarations": [
5196
- {
5197
- "kind": "variable",
5198
- "name": "ColumnTemplate",
5199
- "default": "html<GridProColumn>`\n <template>\n <slot ${slotted('slottedAgCell')} @slotchange=\"${(x) => x.slottedAgCellChanged()}\"></slot>\n </template>\n`",
5200
- "description": "The Grid Pro Column Template.",
5201
- "privacy": "public"
5202
- }
5203
- ],
5204
- "exports": [
5205
- {
5206
- "kind": "js",
5207
- "name": "ColumnTemplate",
5208
- "declaration": {
5209
- "name": "ColumnTemplate",
5210
- "module": "src/column/column.template.ts"
5211
- }
5212
- }
5213
- ]
5214
- },
5215
- {
5216
- "kind": "javascript-module",
5217
- "path": "src/column/column.ts",
5218
- "declarations": [
5219
- {
5220
- "kind": "class",
5221
- "description": "The Grid Pro Column element.",
5222
- "name": "GridProColumn",
5223
- "members": [
5224
- {
5225
- "kind": "field",
5226
- "name": "slottedAgCell",
5227
- "type": {
5228
- "text": "HTMLElement[]"
5229
- },
5230
- "privacy": "public"
5231
- },
5232
- {
5233
- "kind": "field",
5234
- "name": "definition",
5235
- "type": {
5236
- "text": "ColDef"
5237
- },
5238
- "default": "{}"
5239
- },
5240
- {
5241
- "kind": "method",
5242
- "name": "slottedAgCellChanged",
5243
- "privacy": "public"
5244
- },
5245
- {
5246
- "kind": "field",
5247
- "name": "_presentation",
5248
- "type": {
5249
- "text": "ComponentPresentation | null | undefined"
5250
- },
5251
- "privacy": "private",
5252
- "default": "void 0",
5253
- "inheritedFrom": {
5254
- "name": "FoundationElement",
5255
- "module": "src/foundation-element/foundation-element.ts"
5256
- }
5257
- },
5258
- {
5259
- "kind": "field",
5260
- "name": "$presentation",
5261
- "type": {
5262
- "text": "ComponentPresentation | null"
5263
- },
5264
- "privacy": "public",
5265
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
5266
- "inheritedFrom": {
5267
- "name": "FoundationElement",
5268
- "module": "src/foundation-element/foundation-element.ts"
5269
- }
5270
- },
5271
- {
5272
- "kind": "field",
5273
- "name": "template",
5274
- "type": {
5275
- "text": "ElementViewTemplate | void | null"
5276
- },
5277
- "privacy": "public",
5278
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
5279
- "inheritedFrom": {
5280
- "name": "FoundationElement",
5281
- "module": "src/foundation-element/foundation-element.ts"
5282
- }
5283
- },
5284
- {
5285
- "kind": "method",
5286
- "name": "templateChanged",
5287
- "privacy": "protected",
5288
- "return": {
5289
- "type": {
5290
- "text": "void"
5291
- }
5292
- },
5293
- "inheritedFrom": {
5294
- "name": "FoundationElement",
5295
- "module": "src/foundation-element/foundation-element.ts"
5296
- }
5297
- },
5298
- {
5299
- "kind": "field",
5300
- "name": "styles",
5301
- "type": {
5302
- "text": "ElementStyles | void | null"
5303
- },
5304
- "privacy": "public",
5305
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
5306
- "inheritedFrom": {
5307
- "name": "FoundationElement",
5308
- "module": "src/foundation-element/foundation-element.ts"
5309
- }
5310
- },
5311
- {
5312
- "kind": "method",
5313
- "name": "stylesChanged",
5314
- "privacy": "protected",
5315
- "return": {
5316
- "type": {
5317
- "text": "void"
5318
- }
5319
- },
5320
- "inheritedFrom": {
5321
- "name": "FoundationElement",
5322
- "module": "src/foundation-element/foundation-element.ts"
5323
- }
5324
- },
5325
- {
5326
- "kind": "method",
5327
- "name": "compose",
5328
- "privacy": "public",
5329
- "static": true,
5330
- "return": {
5331
- "type": {
5332
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
5333
- }
5334
- },
5335
- "parameters": [
5336
- {
5337
- "name": "this",
5338
- "type": {
5339
- "text": "K"
5340
- }
5341
- },
5342
- {
5343
- "name": "elementDefinition",
5344
- "type": {
5345
- "text": "T"
5346
- },
5347
- "description": "The definition of the element to create the registry\nfunction for."
5348
- }
5349
- ],
5350
- "description": "Defines an element registry function with a set of element definition defaults.",
5351
- "inheritedFrom": {
5352
- "name": "FoundationElement",
5353
- "module": "src/foundation-element/foundation-element.ts"
5354
- }
5355
- }
5356
- ],
5357
- "superclass": {
5358
- "name": "FoundationElement",
5359
- "package": "@microsoft/fast-foundation"
5360
- },
5361
- "tagName": "grid-pro-column",
5362
- "customElement": true
5363
- }
5364
- ],
5365
- "exports": [
5366
- {
5367
- "kind": "js",
5368
- "name": "GridProColumn",
5369
- "declaration": {
5370
- "name": "GridProColumn",
5371
- "module": "src/column/column.ts"
5372
- }
5373
- },
5374
- {
5375
- "kind": "custom-element-definition",
5376
- "name": "grid-pro-column",
5377
- "declaration": {
5378
- "name": "GridProColumn",
5379
- "module": "src/column/column.ts"
5380
- }
5381
- }
5382
- ]
5383
- },
5384
- {
5385
- "kind": "javascript-module",
5386
- "path": "src/column/index.ts",
5387
- "declarations": [],
5388
- "exports": [
5389
- {
5390
- "kind": "js",
5391
- "name": "*",
5392
- "declaration": {
5393
- "name": "*",
5394
- "package": "./column.template"
5395
- }
5396
- },
5397
- {
5398
- "kind": "js",
5399
- "name": "*",
5400
- "declaration": {
5401
- "name": "*",
5402
- "package": "./column"
5403
- }
5404
- },
5405
- {
5406
- "kind": "js",
5407
- "name": "*",
5408
- "declaration": {
5409
- "name": "*",
5410
- "package": "./utils"
5411
- }
5412
- }
5413
- ]
5414
- },
5415
5192
  {
5416
5193
  "kind": "javascript-module",
5417
5194
  "path": "src/datasource/base.datasource.ts",
@@ -8150,6 +7927,229 @@
8150
7927
  }
8151
7928
  ]
8152
7929
  },
7930
+ {
7931
+ "kind": "javascript-module",
7932
+ "path": "src/column/column.template.ts",
7933
+ "declarations": [
7934
+ {
7935
+ "kind": "variable",
7936
+ "name": "ColumnTemplate",
7937
+ "default": "html<GridProColumn>`\n <template>\n <slot ${slotted('slottedAgCell')} @slotchange=\"${(x) => x.slottedAgCellChanged()}\"></slot>\n </template>\n`",
7938
+ "description": "The Grid Pro Column Template.",
7939
+ "privacy": "public"
7940
+ }
7941
+ ],
7942
+ "exports": [
7943
+ {
7944
+ "kind": "js",
7945
+ "name": "ColumnTemplate",
7946
+ "declaration": {
7947
+ "name": "ColumnTemplate",
7948
+ "module": "src/column/column.template.ts"
7949
+ }
7950
+ }
7951
+ ]
7952
+ },
7953
+ {
7954
+ "kind": "javascript-module",
7955
+ "path": "src/column/column.ts",
7956
+ "declarations": [
7957
+ {
7958
+ "kind": "class",
7959
+ "description": "The Grid Pro Column element.",
7960
+ "name": "GridProColumn",
7961
+ "members": [
7962
+ {
7963
+ "kind": "field",
7964
+ "name": "slottedAgCell",
7965
+ "type": {
7966
+ "text": "HTMLElement[]"
7967
+ },
7968
+ "privacy": "public"
7969
+ },
7970
+ {
7971
+ "kind": "field",
7972
+ "name": "definition",
7973
+ "type": {
7974
+ "text": "ColDef"
7975
+ },
7976
+ "default": "{}"
7977
+ },
7978
+ {
7979
+ "kind": "method",
7980
+ "name": "slottedAgCellChanged",
7981
+ "privacy": "public"
7982
+ },
7983
+ {
7984
+ "kind": "field",
7985
+ "name": "_presentation",
7986
+ "type": {
7987
+ "text": "ComponentPresentation | null | undefined"
7988
+ },
7989
+ "privacy": "private",
7990
+ "default": "void 0",
7991
+ "inheritedFrom": {
7992
+ "name": "FoundationElement",
7993
+ "module": "src/foundation-element/foundation-element.ts"
7994
+ }
7995
+ },
7996
+ {
7997
+ "kind": "field",
7998
+ "name": "$presentation",
7999
+ "type": {
8000
+ "text": "ComponentPresentation | null"
8001
+ },
8002
+ "privacy": "public",
8003
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
8004
+ "inheritedFrom": {
8005
+ "name": "FoundationElement",
8006
+ "module": "src/foundation-element/foundation-element.ts"
8007
+ }
8008
+ },
8009
+ {
8010
+ "kind": "field",
8011
+ "name": "template",
8012
+ "type": {
8013
+ "text": "ElementViewTemplate | void | null"
8014
+ },
8015
+ "privacy": "public",
8016
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
8017
+ "inheritedFrom": {
8018
+ "name": "FoundationElement",
8019
+ "module": "src/foundation-element/foundation-element.ts"
8020
+ }
8021
+ },
8022
+ {
8023
+ "kind": "method",
8024
+ "name": "templateChanged",
8025
+ "privacy": "protected",
8026
+ "return": {
8027
+ "type": {
8028
+ "text": "void"
8029
+ }
8030
+ },
8031
+ "inheritedFrom": {
8032
+ "name": "FoundationElement",
8033
+ "module": "src/foundation-element/foundation-element.ts"
8034
+ }
8035
+ },
8036
+ {
8037
+ "kind": "field",
8038
+ "name": "styles",
8039
+ "type": {
8040
+ "text": "ElementStyles | void | null"
8041
+ },
8042
+ "privacy": "public",
8043
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
8044
+ "inheritedFrom": {
8045
+ "name": "FoundationElement",
8046
+ "module": "src/foundation-element/foundation-element.ts"
8047
+ }
8048
+ },
8049
+ {
8050
+ "kind": "method",
8051
+ "name": "stylesChanged",
8052
+ "privacy": "protected",
8053
+ "return": {
8054
+ "type": {
8055
+ "text": "void"
8056
+ }
8057
+ },
8058
+ "inheritedFrom": {
8059
+ "name": "FoundationElement",
8060
+ "module": "src/foundation-element/foundation-element.ts"
8061
+ }
8062
+ },
8063
+ {
8064
+ "kind": "method",
8065
+ "name": "compose",
8066
+ "privacy": "public",
8067
+ "static": true,
8068
+ "return": {
8069
+ "type": {
8070
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
8071
+ }
8072
+ },
8073
+ "parameters": [
8074
+ {
8075
+ "name": "this",
8076
+ "type": {
8077
+ "text": "K"
8078
+ }
8079
+ },
8080
+ {
8081
+ "name": "elementDefinition",
8082
+ "type": {
8083
+ "text": "T"
8084
+ },
8085
+ "description": "The definition of the element to create the registry\nfunction for."
8086
+ }
8087
+ ],
8088
+ "description": "Defines an element registry function with a set of element definition defaults.",
8089
+ "inheritedFrom": {
8090
+ "name": "FoundationElement",
8091
+ "module": "src/foundation-element/foundation-element.ts"
8092
+ }
8093
+ }
8094
+ ],
8095
+ "superclass": {
8096
+ "name": "FoundationElement",
8097
+ "package": "@microsoft/fast-foundation"
8098
+ },
8099
+ "tagName": "grid-pro-column",
8100
+ "customElement": true
8101
+ }
8102
+ ],
8103
+ "exports": [
8104
+ {
8105
+ "kind": "js",
8106
+ "name": "GridProColumn",
8107
+ "declaration": {
8108
+ "name": "GridProColumn",
8109
+ "module": "src/column/column.ts"
8110
+ }
8111
+ },
8112
+ {
8113
+ "kind": "custom-element-definition",
8114
+ "name": "grid-pro-column",
8115
+ "declaration": {
8116
+ "name": "GridProColumn",
8117
+ "module": "src/column/column.ts"
8118
+ }
8119
+ }
8120
+ ]
8121
+ },
8122
+ {
8123
+ "kind": "javascript-module",
8124
+ "path": "src/column/index.ts",
8125
+ "declarations": [],
8126
+ "exports": [
8127
+ {
8128
+ "kind": "js",
8129
+ "name": "*",
8130
+ "declaration": {
8131
+ "name": "*",
8132
+ "package": "./column.template"
8133
+ }
8134
+ },
8135
+ {
8136
+ "kind": "js",
8137
+ "name": "*",
8138
+ "declaration": {
8139
+ "name": "*",
8140
+ "package": "./column"
8141
+ }
8142
+ },
8143
+ {
8144
+ "kind": "js",
8145
+ "name": "*",
8146
+ "declaration": {
8147
+ "name": "*",
8148
+ "package": "./utils"
8149
+ }
8150
+ }
8151
+ ]
8152
+ },
8153
8153
  {
8154
8154
  "kind": "javascript-module",
8155
8155
  "path": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts",
@@ -24,6 +24,11 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
24
24
  connectedCallback(): void;
25
25
  readonly $fastController: import("@microsoft/fast-element").Controller;
26
26
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
27
+ /**
28
+ * Returns the `row-id` attribute, depending on the resource type.
29
+ * @remarks Will favour the `row-id` attribute if set.
30
+ * @internal
31
+ */
27
32
  disconnectedCallback(): void;
28
33
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
29
34
  accessKey: string;
@@ -92,13 +97,23 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
92
97
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
93
98
  getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
94
99
  hasAttribute(qualifiedName: string): boolean;
100
+ /**
101
+ * Sends a DATA_LOGOFF when the resource is an active stream
102
+ * @remarks Will only happen for streaming DATASERER resources.
103
+ * @internal
104
+ */
95
105
  hasAttributeNS(namespace: string, localName: string): boolean;
96
106
  hasAttributes(): boolean;
97
107
  hasPointerCapture(pointerId: number): boolean;
98
108
  insertAdjacentElement(where: InsertPosition, element: Element): Element;
99
109
  insertAdjacentHTML(position: InsertPosition, text: string): void;
100
110
  insertAdjacentText(where: InsertPosition, data: string): void;
101
- matches(selectors: string): boolean;
111
+ matches(selectors: string): boolean; /**
112
+ * Clears the rowData and columnDefs for the grid.
113
+ * @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
114
+ * @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
115
+ * @internal
116
+ */
102
117
  releasePointerCapture(pointerId: number): void;
103
118
  removeAttribute(qualifiedName: string): void;
104
119
  removeAttributeNS(namespace: string, localName: string): void;
@@ -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":"AACA,OAAO,EACL,IAAI,EACJ,UAAU,EAaX,MAAM,+BAA+B,CA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MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
@@ -2,8 +2,8 @@ import { __awaiter, __decorate } from "tslib";
2
2
  import { Auth, Datasource, DatasourceDefaults, FieldTypeEnum, MessageType, ResourceType, dataServerResultFilter, normaliseCriteria, } from '@genesislcap/foundation-comms';
3
3
  import { LifecycleMixin } from '@genesislcap/foundation-utils';
4
4
  import { DOM, attr, customElement, observable } from '@microsoft/fast-element';
5
- import { BehaviorSubject } from 'rxjs';
6
- import { debounceTime, skip, tap } from 'rxjs/operators';
5
+ import { BehaviorSubject, EMPTY } from 'rxjs';
6
+ import { catchError, debounceTime, skip, tap } from 'rxjs/operators';
7
7
  import { GridProBaseDatasource } from '../datasource/base.datasource';
8
8
  import { dateTimeValueFormatter, dateValueFormatter, getFilterParamsByFieldType, } from '../grid-pro.definitions';
9
9
  import { GridProRendererTypes } from '../grid-pro.types';
@@ -131,7 +131,10 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
131
131
  this.connect.isConnected) {
132
132
  const meta = yield this.connect.getMetadata(this.resourceName);
133
133
  if (!meta) {
134
- logger.warn(`No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`);
134
+ // TODO: improve getMetadata implementation to return error details
135
+ const message = `No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`;
136
+ logger.warn(message);
137
+ this.handleErrors({ ERROR: message });
135
138
  return;
136
139
  }
137
140
  this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
@@ -183,6 +186,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
183
186
  this.dataSubWasLoggedOff = false;
184
187
  this.criteriaFromFilters = new Map();
185
188
  this.update = new BehaviorSubject(new Map());
189
+ this.agGrid.removeAttribute('ds-disconnected');
186
190
  this.datasource.deinit();
187
191
  }
188
192
  /**
@@ -260,6 +264,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
260
264
  this.dataLogoff();
261
265
  this.clearRowData(withoutColumnDefs);
262
266
  (_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.showLoadingOverlay();
267
+ this.agGrid.removeAttribute('ds-disconnected');
263
268
  this.loadResourceData(withoutFullInit);
264
269
  });
265
270
  }
@@ -280,16 +285,27 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
280
285
  return;
281
286
  }
282
287
  if (this.isSnapshot) {
283
- const result = yield this.datasource.snapshot();
284
- if (result) {
285
- this.handleErrors(result);
286
- const rowData = this.handleSnapshot(result);
287
- this.setRowData(rowData);
288
+ try {
289
+ const result = yield this.datasource.snapshot();
290
+ if (result) {
291
+ const rowData = this.handleSnapshot(result);
292
+ this.setRowData(rowData);
293
+ }
294
+ }
295
+ catch (err) {
296
+ if (err.receivedMessage) {
297
+ this.handleErrors(err.receivedMessage);
298
+ }
288
299
  }
289
300
  return;
290
301
  }
291
302
  logger.debug(`requesting stream for ${this.resourceName}`);
292
- this.dataSub = this.datasource.stream.subscribe((result) => {
303
+ this.dataSub = this.datasource.stream
304
+ .pipe(catchError((err) => {
305
+ this.handleErrors(err.receivedMessage);
306
+ return EMPTY;
307
+ }))
308
+ .subscribe((result) => {
293
309
  this.handleErrors(result);
294
310
  this.sourceRef = result.SOURCE_REF;
295
311
  const messageType = result.MESSAGE_TYPE;
@@ -321,8 +337,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
321
337
  }
322
338
  handleErrors(result) {
323
339
  if (result.ERROR) {
324
- this.agGrid.gridApi.showNoRowsOverlay();
325
340
  this.agGrid.gridApi.setRowData([]);
341
+ this.agGrid.setAttribute('ds-disconnected', 'ds-disconnected');
326
342
  }
327
343
  }
328
344
  datasourceOptions() {
@@ -404,6 +420,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
404
420
  !this.agTransaction.update.length &&
405
421
  !this.agTransaction.remove.length) {
406
422
  this.agGrid.gridApi.hideOverlay();
423
+ if (this.rows.size === 0) {
424
+ this.agGrid.gridApi.showNoRowsOverlay();
425
+ }
407
426
  return;
408
427
  }
409
428
  if (this.agTransaction.add.length > 0) {
@@ -1813,6 +1813,11 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
1813
1813
  connectedCallback(): void;
1814
1814
  readonly $fastController: Controller;
1815
1815
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
1816
+ /**
1817
+ * Returns the `row-id` attribute, depending on the resource type.
1818
+ * @remarks Will favour the `row-id` attribute if set.
1819
+ * @internal
1820
+ */
1816
1821
  disconnectedCallback(): void;
1817
1822
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1818
1823
  accessKey: string;
@@ -1881,13 +1886,23 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
1881
1886
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
1882
1887
  getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
1883
1888
  hasAttribute(qualifiedName: string): boolean;
1889
+ /**
1890
+ * Sends a DATA_LOGOFF when the resource is an active stream
1891
+ * @remarks Will only happen for streaming DATASERER resources.
1892
+ * @internal
1893
+ */
1884
1894
  hasAttributeNS(namespace: string, localName: string): boolean;
1885
1895
  hasAttributes(): boolean;
1886
1896
  hasPointerCapture(pointerId: number): boolean;
1887
1897
  insertAdjacentElement(where: InsertPosition, element: Element): Element;
1888
1898
  insertAdjacentHTML(position: InsertPosition, text: string): void;
1889
1899
  insertAdjacentText(where: InsertPosition, data: string): void;
1890
- matches(selectors: string): boolean;
1900
+ matches(selectors: string): boolean; /**
1901
+ * Clears the rowData and columnDefs for the grid.
1902
+ * @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
1903
+ * @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
1904
+ * @internal
1905
+ */
1891
1906
  releasePointerCapture(pointerId: number): void;
1892
1907
  removeAttribute(qualifiedName: string): void;
1893
1908
  removeAttributeNS(namespace: string, localName: string): void;
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.137.1",
4
+ "version": "14.138.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -30,15 +30,15 @@
30
30
  "test:debug": "genx test --debug"
31
31
  },
32
32
  "devDependencies": {
33
- "@genesislcap/foundation-testing": "14.137.1",
34
- "@genesislcap/genx": "14.137.1",
33
+ "@genesislcap/foundation-testing": "14.138.0",
34
+ "@genesislcap/genx": "14.138.0",
35
35
  "rimraf": "^3.0.2"
36
36
  },
37
37
  "dependencies": {
38
- "@genesislcap/foundation-comms": "14.137.1",
39
- "@genesislcap/foundation-logger": "14.137.1",
40
- "@genesislcap/foundation-ui": "14.137.1",
41
- "@genesislcap/foundation-utils": "14.137.1",
38
+ "@genesislcap/foundation-comms": "14.138.0",
39
+ "@genesislcap/foundation-logger": "14.138.0",
40
+ "@genesislcap/foundation-ui": "14.138.0",
41
+ "@genesislcap/foundation-utils": "14.138.0",
42
42
  "@microsoft/fast-colors": "^5.3.1",
43
43
  "@microsoft/fast-components": "^2.30.6",
44
44
  "@microsoft/fast-element": "^1.12.0",
@@ -62,5 +62,5 @@
62
62
  "access": "public"
63
63
  },
64
64
  "customElements": "dist/custom-elements.json",
65
- "gitHead": "518e1b48a6dce0a411fcdafd7cb79f9098744aff"
65
+ "gitHead": "216927472cee1a5088da5f2442878ece50d398d4"
66
66
  }