@genesislcap/grid-pro 14.147.1-alpha-bc4deec.0 → 14.147.1-alpha-e9dbeac.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.
@@ -5250,6 +5250,229 @@
5250
5250
  }
5251
5251
  ]
5252
5252
  },
5253
+ {
5254
+ "kind": "javascript-module",
5255
+ "path": "src/column/column.template.ts",
5256
+ "declarations": [
5257
+ {
5258
+ "kind": "variable",
5259
+ "name": "ColumnTemplate",
5260
+ "default": "html<GridProColumn>`\n <template>\n <slot ${slotted('slottedAgCell')} @slotchange=\"${(x) => x.slottedAgCellChanged()}\"></slot>\n </template>\n`",
5261
+ "description": "The Grid Pro Column Template.",
5262
+ "privacy": "public"
5263
+ }
5264
+ ],
5265
+ "exports": [
5266
+ {
5267
+ "kind": "js",
5268
+ "name": "ColumnTemplate",
5269
+ "declaration": {
5270
+ "name": "ColumnTemplate",
5271
+ "module": "src/column/column.template.ts"
5272
+ }
5273
+ }
5274
+ ]
5275
+ },
5276
+ {
5277
+ "kind": "javascript-module",
5278
+ "path": "src/column/column.ts",
5279
+ "declarations": [
5280
+ {
5281
+ "kind": "class",
5282
+ "description": "The Grid Pro Column element.",
5283
+ "name": "GridProColumn",
5284
+ "members": [
5285
+ {
5286
+ "kind": "field",
5287
+ "name": "slottedAgCell",
5288
+ "type": {
5289
+ "text": "HTMLElement[]"
5290
+ },
5291
+ "privacy": "public"
5292
+ },
5293
+ {
5294
+ "kind": "field",
5295
+ "name": "definition",
5296
+ "type": {
5297
+ "text": "ColDef"
5298
+ },
5299
+ "default": "{}"
5300
+ },
5301
+ {
5302
+ "kind": "method",
5303
+ "name": "slottedAgCellChanged",
5304
+ "privacy": "public"
5305
+ },
5306
+ {
5307
+ "kind": "field",
5308
+ "name": "_presentation",
5309
+ "type": {
5310
+ "text": "ComponentPresentation | null | undefined"
5311
+ },
5312
+ "privacy": "private",
5313
+ "default": "void 0",
5314
+ "inheritedFrom": {
5315
+ "name": "FoundationElement",
5316
+ "module": "src/foundation-element/foundation-element.ts"
5317
+ }
5318
+ },
5319
+ {
5320
+ "kind": "field",
5321
+ "name": "$presentation",
5322
+ "type": {
5323
+ "text": "ComponentPresentation | null"
5324
+ },
5325
+ "privacy": "public",
5326
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
5327
+ "inheritedFrom": {
5328
+ "name": "FoundationElement",
5329
+ "module": "src/foundation-element/foundation-element.ts"
5330
+ }
5331
+ },
5332
+ {
5333
+ "kind": "field",
5334
+ "name": "template",
5335
+ "type": {
5336
+ "text": "ElementViewTemplate | void | null"
5337
+ },
5338
+ "privacy": "public",
5339
+ "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.",
5340
+ "inheritedFrom": {
5341
+ "name": "FoundationElement",
5342
+ "module": "src/foundation-element/foundation-element.ts"
5343
+ }
5344
+ },
5345
+ {
5346
+ "kind": "method",
5347
+ "name": "templateChanged",
5348
+ "privacy": "protected",
5349
+ "return": {
5350
+ "type": {
5351
+ "text": "void"
5352
+ }
5353
+ },
5354
+ "inheritedFrom": {
5355
+ "name": "FoundationElement",
5356
+ "module": "src/foundation-element/foundation-element.ts"
5357
+ }
5358
+ },
5359
+ {
5360
+ "kind": "field",
5361
+ "name": "styles",
5362
+ "type": {
5363
+ "text": "ElementStyles | void | null"
5364
+ },
5365
+ "privacy": "public",
5366
+ "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.",
5367
+ "inheritedFrom": {
5368
+ "name": "FoundationElement",
5369
+ "module": "src/foundation-element/foundation-element.ts"
5370
+ }
5371
+ },
5372
+ {
5373
+ "kind": "method",
5374
+ "name": "stylesChanged",
5375
+ "privacy": "protected",
5376
+ "return": {
5377
+ "type": {
5378
+ "text": "void"
5379
+ }
5380
+ },
5381
+ "inheritedFrom": {
5382
+ "name": "FoundationElement",
5383
+ "module": "src/foundation-element/foundation-element.ts"
5384
+ }
5385
+ },
5386
+ {
5387
+ "kind": "method",
5388
+ "name": "compose",
5389
+ "privacy": "public",
5390
+ "static": true,
5391
+ "return": {
5392
+ "type": {
5393
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
5394
+ }
5395
+ },
5396
+ "parameters": [
5397
+ {
5398
+ "name": "this",
5399
+ "type": {
5400
+ "text": "K"
5401
+ }
5402
+ },
5403
+ {
5404
+ "name": "elementDefinition",
5405
+ "type": {
5406
+ "text": "T"
5407
+ },
5408
+ "description": "The definition of the element to create the registry\nfunction for."
5409
+ }
5410
+ ],
5411
+ "description": "Defines an element registry function with a set of element definition defaults.",
5412
+ "inheritedFrom": {
5413
+ "name": "FoundationElement",
5414
+ "module": "src/foundation-element/foundation-element.ts"
5415
+ }
5416
+ }
5417
+ ],
5418
+ "superclass": {
5419
+ "name": "FoundationElement",
5420
+ "package": "@microsoft/fast-foundation"
5421
+ },
5422
+ "tagName": "grid-pro-column",
5423
+ "customElement": true
5424
+ }
5425
+ ],
5426
+ "exports": [
5427
+ {
5428
+ "kind": "js",
5429
+ "name": "GridProColumn",
5430
+ "declaration": {
5431
+ "name": "GridProColumn",
5432
+ "module": "src/column/column.ts"
5433
+ }
5434
+ },
5435
+ {
5436
+ "kind": "custom-element-definition",
5437
+ "name": "grid-pro-column",
5438
+ "declaration": {
5439
+ "name": "GridProColumn",
5440
+ "module": "src/column/column.ts"
5441
+ }
5442
+ }
5443
+ ]
5444
+ },
5445
+ {
5446
+ "kind": "javascript-module",
5447
+ "path": "src/column/index.ts",
5448
+ "declarations": [],
5449
+ "exports": [
5450
+ {
5451
+ "kind": "js",
5452
+ "name": "*",
5453
+ "declaration": {
5454
+ "name": "*",
5455
+ "package": "./column.template"
5456
+ }
5457
+ },
5458
+ {
5459
+ "kind": "js",
5460
+ "name": "*",
5461
+ "declaration": {
5462
+ "name": "*",
5463
+ "package": "./column"
5464
+ }
5465
+ },
5466
+ {
5467
+ "kind": "js",
5468
+ "name": "*",
5469
+ "declaration": {
5470
+ "name": "*",
5471
+ "package": "./utils"
5472
+ }
5473
+ }
5474
+ ]
5475
+ },
5253
5476
  {
5254
5477
  "kind": "javascript-module",
5255
5478
  "path": "src/datasource/base.datasource.ts",
@@ -7711,8 +7934,7 @@
7711
7934
  },
7712
7935
  {
7713
7936
  "kind": "method",
7714
- "name": "dataLogoff",
7715
- "privacy": "private"
7937
+ "name": "dataLogoff"
7716
7938
  },
7717
7939
  {
7718
7940
  "kind": "method",
@@ -7963,11 +8185,11 @@
7963
8185
  },
7964
8186
  {
7965
8187
  "kind": "method",
7966
- "name": "init"
8188
+ "name": "deinit"
7967
8189
  },
7968
8190
  {
7969
8191
  "kind": "method",
7970
- "name": "reset"
8192
+ "name": "init"
7971
8193
  },
7972
8194
  {
7973
8195
  "kind": "method",
@@ -7976,7 +8198,13 @@
7976
8198
  {
7977
8199
  "kind": "method",
7978
8200
  "name": "clearRowData",
7979
- "privacy": "private"
8201
+ "privacy": "private",
8202
+ "parameters": [
8203
+ {
8204
+ "name": "withColumnDefs",
8205
+ "default": "true"
8206
+ }
8207
+ ]
7980
8208
  },
7981
8209
  {
7982
8210
  "kind": "method",
@@ -8908,229 +9136,6 @@
8908
9136
  }
8909
9137
  ]
8910
9138
  },
8911
- {
8912
- "kind": "javascript-module",
8913
- "path": "src/column/column.template.ts",
8914
- "declarations": [
8915
- {
8916
- "kind": "variable",
8917
- "name": "ColumnTemplate",
8918
- "default": "html<GridProColumn>`\n <template>\n <slot ${slotted('slottedAgCell')} @slotchange=\"${(x) => x.slottedAgCellChanged()}\"></slot>\n </template>\n`",
8919
- "description": "The Grid Pro Column Template.",
8920
- "privacy": "public"
8921
- }
8922
- ],
8923
- "exports": [
8924
- {
8925
- "kind": "js",
8926
- "name": "ColumnTemplate",
8927
- "declaration": {
8928
- "name": "ColumnTemplate",
8929
- "module": "src/column/column.template.ts"
8930
- }
8931
- }
8932
- ]
8933
- },
8934
- {
8935
- "kind": "javascript-module",
8936
- "path": "src/column/column.ts",
8937
- "declarations": [
8938
- {
8939
- "kind": "class",
8940
- "description": "The Grid Pro Column element.",
8941
- "name": "GridProColumn",
8942
- "members": [
8943
- {
8944
- "kind": "field",
8945
- "name": "slottedAgCell",
8946
- "type": {
8947
- "text": "HTMLElement[]"
8948
- },
8949
- "privacy": "public"
8950
- },
8951
- {
8952
- "kind": "field",
8953
- "name": "definition",
8954
- "type": {
8955
- "text": "ColDef"
8956
- },
8957
- "default": "{}"
8958
- },
8959
- {
8960
- "kind": "method",
8961
- "name": "slottedAgCellChanged",
8962
- "privacy": "public"
8963
- },
8964
- {
8965
- "kind": "field",
8966
- "name": "_presentation",
8967
- "type": {
8968
- "text": "ComponentPresentation | null | undefined"
8969
- },
8970
- "privacy": "private",
8971
- "default": "void 0",
8972
- "inheritedFrom": {
8973
- "name": "FoundationElement",
8974
- "module": "src/foundation-element/foundation-element.ts"
8975
- }
8976
- },
8977
- {
8978
- "kind": "field",
8979
- "name": "$presentation",
8980
- "type": {
8981
- "text": "ComponentPresentation | null"
8982
- },
8983
- "privacy": "public",
8984
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
8985
- "inheritedFrom": {
8986
- "name": "FoundationElement",
8987
- "module": "src/foundation-element/foundation-element.ts"
8988
- }
8989
- },
8990
- {
8991
- "kind": "field",
8992
- "name": "template",
8993
- "type": {
8994
- "text": "ElementViewTemplate | void | null"
8995
- },
8996
- "privacy": "public",
8997
- "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.",
8998
- "inheritedFrom": {
8999
- "name": "FoundationElement",
9000
- "module": "src/foundation-element/foundation-element.ts"
9001
- }
9002
- },
9003
- {
9004
- "kind": "method",
9005
- "name": "templateChanged",
9006
- "privacy": "protected",
9007
- "return": {
9008
- "type": {
9009
- "text": "void"
9010
- }
9011
- },
9012
- "inheritedFrom": {
9013
- "name": "FoundationElement",
9014
- "module": "src/foundation-element/foundation-element.ts"
9015
- }
9016
- },
9017
- {
9018
- "kind": "field",
9019
- "name": "styles",
9020
- "type": {
9021
- "text": "ElementStyles | void | null"
9022
- },
9023
- "privacy": "public",
9024
- "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.",
9025
- "inheritedFrom": {
9026
- "name": "FoundationElement",
9027
- "module": "src/foundation-element/foundation-element.ts"
9028
- }
9029
- },
9030
- {
9031
- "kind": "method",
9032
- "name": "stylesChanged",
9033
- "privacy": "protected",
9034
- "return": {
9035
- "type": {
9036
- "text": "void"
9037
- }
9038
- },
9039
- "inheritedFrom": {
9040
- "name": "FoundationElement",
9041
- "module": "src/foundation-element/foundation-element.ts"
9042
- }
9043
- },
9044
- {
9045
- "kind": "method",
9046
- "name": "compose",
9047
- "privacy": "public",
9048
- "static": true,
9049
- "return": {
9050
- "type": {
9051
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
9052
- }
9053
- },
9054
- "parameters": [
9055
- {
9056
- "name": "this",
9057
- "type": {
9058
- "text": "K"
9059
- }
9060
- },
9061
- {
9062
- "name": "elementDefinition",
9063
- "type": {
9064
- "text": "T"
9065
- },
9066
- "description": "The definition of the element to create the registry\nfunction for."
9067
- }
9068
- ],
9069
- "description": "Defines an element registry function with a set of element definition defaults.",
9070
- "inheritedFrom": {
9071
- "name": "FoundationElement",
9072
- "module": "src/foundation-element/foundation-element.ts"
9073
- }
9074
- }
9075
- ],
9076
- "superclass": {
9077
- "name": "FoundationElement",
9078
- "package": "@microsoft/fast-foundation"
9079
- },
9080
- "tagName": "grid-pro-column",
9081
- "customElement": true
9082
- }
9083
- ],
9084
- "exports": [
9085
- {
9086
- "kind": "js",
9087
- "name": "GridProColumn",
9088
- "declaration": {
9089
- "name": "GridProColumn",
9090
- "module": "src/column/column.ts"
9091
- }
9092
- },
9093
- {
9094
- "kind": "custom-element-definition",
9095
- "name": "grid-pro-column",
9096
- "declaration": {
9097
- "name": "GridProColumn",
9098
- "module": "src/column/column.ts"
9099
- }
9100
- }
9101
- ]
9102
- },
9103
- {
9104
- "kind": "javascript-module",
9105
- "path": "src/column/index.ts",
9106
- "declarations": [],
9107
- "exports": [
9108
- {
9109
- "kind": "js",
9110
- "name": "*",
9111
- "declaration": {
9112
- "name": "*",
9113
- "package": "./column.template"
9114
- }
9115
- },
9116
- {
9117
- "kind": "js",
9118
- "name": "*",
9119
- "declaration": {
9120
- "name": "*",
9121
- "package": "./column"
9122
- }
9123
- },
9124
- {
9125
- "kind": "js",
9126
- "name": "*",
9127
- "declaration": {
9128
- "name": "*",
9129
- "package": "./utils"
9130
- }
9131
- }
9132
- ]
9133
- },
9134
9139
  {
9135
9140
  "kind": "javascript-module",
9136
9141
  "path": "src/external/ag-grid-css.ts",
@@ -53,7 +53,7 @@ export declare class StreamDatasource extends StreamBaseDatasource implements IS
53
53
  constructor(options: StreamDatasourceOptions);
54
54
  getRows(params: IServerSideGetRowsParams): Promise<void>;
55
55
  private sortMapByNumericKey;
56
- private dataLogoff;
56
+ dataLogoff(): void;
57
57
  private restartSubscription;
58
58
  private getOrderByAndToBeSortedColIds;
59
59
  private getAvailableIndexes;
@@ -258,7 +258,11 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
258
258
  ariaValueMin: string;
259
259
  ariaValueNow: string;
260
260
  ariaValueText: string;
261
- role: string;
261
+ role: string; /**
262
+ * A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
263
+ * @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
264
+ * @alpha
265
+ */
262
266
  animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
263
267
  getAnimations(options?: GetAnimationsOptions): Animation[];
264
268
  after(...nodes: (string | Node)[]): void;
@@ -397,6 +401,12 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
397
401
  applyFuncName: string;
398
402
  applyAsyncFuncName: string;
399
403
  criteriaChanged(oldCriteria: string, newCriteria: string): void;
404
+ /**
405
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
406
+ * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
407
+ * @internal
408
+ */
409
+ private reloadResourceData;
400
410
  resourceNameChanged(oldValue: string, newValue: string): void;
401
411
  pagination: boolean;
402
412
  private indexes;
@@ -405,8 +415,8 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
405
415
  connectedCallback(): void;
406
416
  disconnectedCallback(): void;
407
417
  deepClone(): Node;
418
+ deinit(): void;
408
419
  init(): void;
409
- reset(): void;
410
420
  restart(): void;
411
421
  private clearRowData;
412
422
  private getResourceIndexes;
@@ -1 +1 @@
1
- {"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EAEnB,kBAAkB,EAClB,2BAA2B,EAG5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,OAAO,EAKP,wBAAwB,EAIxB,cAAc,EAGd,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAOhF;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACxC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IAEnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,C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OAAO,CAAC,gBAAgB,CAAmB;IAE3C,iBAAiB;IASjB,oBAAoB;IASX,SAAS,IAAI,IAAI;IAO1B,MAAM;IAON,IAAI;IAsEJ,OAAO;IAKP,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,kBAAkB;IAU1B,IAAI,MAAM,QA2BT;IAED,IAAI,QAAQ,IAAI,mBAAmB,CAElC;YAEa,sBAAsB;IAoCpC,OAAO,CAAC,uBAAuB;IAU/B,OAAO,CAAC,eAAe;IA6Dd,gBAAgB,CAAC,aAAa,EAAE,kBAAkB,GAAG,2BAA2B;IAIhF,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,2BAA2B,KAAK,IAAI;CAIxD"}
@@ -287,6 +287,7 @@ __decorate([
287
287
  Connect
288
288
  ], StreamDatasource.prototype, "connect", void 0);
289
289
  const criteriaDelimiter = ';';
290
+ const withoutColumnDefs = null;
290
291
  /**
291
292
  * A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
292
293
  * @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
@@ -300,14 +301,27 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
300
301
  this.pagination = false;
301
302
  }
302
303
  criteriaChanged(oldCriteria, newCriteria) {
303
- const startingCriteria = !oldCriteria && newCriteria;
304
- const criteriaNotDuplicate = oldCriteria !== normaliseCriteria(newCriteria, criteriaDelimiter);
305
- // TODO: FUI-1323 - account for linked grid scenarios too.
306
- // TODO: check grid-pro-genesis-datasource criteriaChanged
307
- if (!startingCriteria && criteriaNotDuplicate) {
308
- this.restart();
304
+ const criteriaIsNotDuplicate = oldCriteria !== normaliseCriteria(newCriteria, criteriaDelimiter);
305
+ if (this.ssrmDatasource && criteriaIsNotDuplicate) {
306
+ this.reloadResourceData();
309
307
  }
310
308
  }
309
+ /**
310
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
311
+ * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
312
+ * @internal
313
+ */
314
+ reloadResourceData() {
315
+ var _a, _b, _c;
316
+ return __awaiter(this, void 0, void 0, function* () {
317
+ this.ssrmDatasource.dataLogoff();
318
+ this.clearRowData(withoutColumnDefs);
319
+ this.ssrmDatasource = undefined;
320
+ (_a = this.agGrid.gridApi) === null || _a === void 0 ? void 0 : _a.refreshServerSide({ purge: true });
321
+ (_c = (_b = this.agGrid) === null || _b === void 0 ? void 0 : _b.gridApi) === null || _c === void 0 ? void 0 : _c.showLoadingOverlay();
322
+ this.init();
323
+ });
324
+ }
311
325
  resourceNameChanged(oldValue, newValue) {
312
326
  if (!oldValue || oldValue === newValue)
313
327
  return;
@@ -328,7 +342,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
328
342
  DOM.queueUpdate(() => {
329
343
  if (!shouldRunDisconnect)
330
344
  return;
331
- this.reset();
345
+ this.deinit();
332
346
  });
333
347
  }
334
348
  deepClone() {
@@ -337,6 +351,13 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
337
351
  copy.deferredColumnStates = structuredClone(this.deferredColumnStates);
338
352
  return copy;
339
353
  }
354
+ deinit() {
355
+ var _a;
356
+ this.clearRowData();
357
+ this.ssrmDatasource = undefined;
358
+ this.originalFieldDef = undefined;
359
+ (_a = this.agGrid.gridApi) === null || _a === void 0 ? void 0 : _a.refreshServerSide({ purge: true });
360
+ }
340
361
  init() {
341
362
  if (this.agGrid && this.resourceName && this.connect.isConnected) {
342
363
  this.agGrid.gridOptions = Object.assign({ getRowId: (params) => {
@@ -383,25 +404,22 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
383
404
  }
384
405
  logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
385
406
  }
386
- reset() {
387
- var _a;
388
- this.clearRowData();
389
- this.ssrmDatasource = undefined;
390
- this.originalFieldDef = undefined;
391
- (_a = this.agGrid.gridApi) === null || _a === void 0 ? void 0 : _a.refreshServerSide({ purge: true });
392
- }
393
407
  restart() {
394
- this.reset();
408
+ this.deinit();
395
409
  this.init();
396
410
  }
397
- clearRowData() {
411
+ clearRowData(withColumnDefs = true) {
398
412
  var _a, _b, _c, _d;
399
- (_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setColumnDefs([]);
400
- const agTransaction = { remove: [] };
413
+ this.rowData = new Map();
414
+ if (withColumnDefs) {
415
+ (_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setColumnDefs([]);
416
+ }
417
+ this.agTransaction = { remove: [] };
401
418
  (_c = this.agGrid.gridApi) === null || _c === void 0 ? void 0 : _c.forEachNode((node) => {
402
- agTransaction.remove.push(node.data);
419
+ this.agTransaction.remove.push(node.data);
403
420
  });
404
- (_d = this.agGrid.gridApi) === null || _d === void 0 ? void 0 : _d.applyServerSideTransaction(agTransaction);
421
+ (_d = this.agGrid.gridApi) === null || _d === void 0 ? void 0 : _d.applyServerSideTransaction(this.agTransaction);
422
+ this.agTransaction = undefined;
405
423
  }
406
424
  getResourceIndexes(avaialbleIndexes) {
407
425
  const resourceIndexesMap = new Map();
@@ -2170,6 +2170,12 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
2170
2170
  applyFuncName: string;
2171
2171
  applyAsyncFuncName: string;
2172
2172
  criteriaChanged(oldCriteria: string, newCriteria: string): void;
2173
+ /**
2174
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
2175
+ * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
2176
+ * @internal
2177
+ */
2178
+ private reloadResourceData;
2173
2179
  resourceNameChanged(oldValue: string, newValue: string): void;
2174
2180
  pagination: boolean;
2175
2181
  private indexes;
@@ -2178,8 +2184,8 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
2178
2184
  connectedCallback(): void;
2179
2185
  disconnectedCallback(): void;
2180
2186
  deepClone(): Node;
2187
+ deinit(): void;
2181
2188
  init(): void;
2182
- reset(): void;
2183
2189
  restart(): void;
2184
2190
  private clearRowData;
2185
2191
  private getResourceIndexes;
@@ -2387,7 +2393,11 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
2387
2393
  ariaValueMin: string;
2388
2394
  ariaValueNow: string;
2389
2395
  ariaValueText: string;
2390
- role: string;
2396
+ role: string; /**
2397
+ * A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
2398
+ * @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
2399
+ * @alpha
2400
+ */
2391
2401
  animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
2392
2402
  getAnimations(options?: GetAnimationsOptions): Animation[];
2393
2403
  after(...nodes: (string | Node)[]): void;
@@ -2701,7 +2711,7 @@ export declare class StreamDatasource extends StreamBaseDatasource implements IS
2701
2711
  constructor(options: StreamDatasourceOptions);
2702
2712
  getRows(params: IServerSideGetRowsParams): Promise<void>;
2703
2713
  private sortMapByNumericKey;
2704
- private dataLogoff;
2714
+ dataLogoff(): void;
2705
2715
  private restartSubscription;
2706
2716
  private getOrderByAndToBeSortedColIds;
2707
2717
  private getAvailableIndexes;
@@ -1015,6 +1015,8 @@ export class GridProServerSideDatasource extends GridProServerSideDatasource_bas
1015
1015
  // (undocumented)
1016
1016
  deepClone(): Node;
1017
1017
  // (undocumented)
1018
+ deinit(): void;
1019
+ // (undocumented)
1018
1020
  disconnectedCallback(): void;
1019
1021
  // (undocumented)
1020
1022
  init(): void;
@@ -1023,8 +1025,6 @@ export class GridProServerSideDatasource extends GridProServerSideDatasource_bas
1023
1025
  // (undocumented)
1024
1026
  get params(): any;
1025
1027
  // (undocumented)
1026
- reset(): void;
1027
- // (undocumented)
1028
1028
  resourceNameChanged(oldValue: string, newValue: string): void;
1029
1029
  // (undocumented)
1030
1030
  restart(): void;
@@ -1199,6 +1199,8 @@ export class StreamDatasource extends StreamBaseDatasource implements IServerSid
1199
1199
  // (undocumented)
1200
1200
  connect: Connect;
1201
1201
  // (undocumented)
1202
+ dataLogoff(): void;
1203
+ // (undocumented)
1202
1204
  dataserverStream: SocketObservable<FilteredDataServerResult>;
1203
1205
  // (undocumented)
1204
1206
  getRows(params: IServerSideGetRowsParams): Promise<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.147.1-alpha-bc4deec.0",
4
+ "version": "14.147.1-alpha-e9dbeac.0",
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.147.1-alpha-bc4deec.0",
34
- "@genesislcap/genx": "14.147.1-alpha-bc4deec.0",
35
- "@genesislcap/rollup-builder": "14.147.1-alpha-bc4deec.0",
36
- "@genesislcap/ts-builder": "14.147.1-alpha-bc4deec.0",
37
- "@genesislcap/uvu-playwright-builder": "14.147.1-alpha-bc4deec.0",
38
- "@genesislcap/vite-builder": "14.147.1-alpha-bc4deec.0",
39
- "@genesislcap/webpack-builder": "14.147.1-alpha-bc4deec.0",
33
+ "@genesislcap/foundation-testing": "14.147.1-alpha-e9dbeac.0",
34
+ "@genesislcap/genx": "14.147.1-alpha-e9dbeac.0",
35
+ "@genesislcap/rollup-builder": "14.147.1-alpha-e9dbeac.0",
36
+ "@genesislcap/ts-builder": "14.147.1-alpha-e9dbeac.0",
37
+ "@genesislcap/uvu-playwright-builder": "14.147.1-alpha-e9dbeac.0",
38
+ "@genesislcap/vite-builder": "14.147.1-alpha-e9dbeac.0",
39
+ "@genesislcap/webpack-builder": "14.147.1-alpha-e9dbeac.0",
40
40
  "rimraf": "^3.0.2"
41
41
  },
42
42
  "dependencies": {
43
- "@genesislcap/foundation-comms": "14.147.1-alpha-bc4deec.0",
44
- "@genesislcap/foundation-logger": "14.147.1-alpha-bc4deec.0",
45
- "@genesislcap/foundation-ui": "14.147.1-alpha-bc4deec.0",
46
- "@genesislcap/foundation-utils": "14.147.1-alpha-bc4deec.0",
43
+ "@genesislcap/foundation-comms": "14.147.1-alpha-e9dbeac.0",
44
+ "@genesislcap/foundation-logger": "14.147.1-alpha-e9dbeac.0",
45
+ "@genesislcap/foundation-ui": "14.147.1-alpha-e9dbeac.0",
46
+ "@genesislcap/foundation-utils": "14.147.1-alpha-e9dbeac.0",
47
47
  "@microsoft/fast-colors": "^5.3.1",
48
48
  "@microsoft/fast-components": "^2.30.6",
49
49
  "@microsoft/fast-element": "^1.12.0",
@@ -68,5 +68,5 @@
68
68
  "access": "public"
69
69
  },
70
70
  "customElements": "dist/custom-elements.json",
71
- "gitHead": "5f487868bb64bf833d81296fd70423c32398b03c"
71
+ "gitHead": "409d501207d5051f3a556b0a6062feb84a84ae99"
72
72
  }