@genesislcap/grid-pro 14.147.1-alpha-bc4deec.0 → 14.147.1-alpha-e3b7ca7.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;
@@ -397,6 +397,12 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
397
397
  applyFuncName: string;
398
398
  applyAsyncFuncName: string;
399
399
  criteriaChanged(oldCriteria: string, newCriteria: string): void;
400
+ /**
401
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
402
+ * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
403
+ * @internal
404
+ */
405
+ private reloadResourceData;
400
406
  resourceNameChanged(oldValue: string, newValue: string): void;
401
407
  pagination: boolean;
402
408
  private indexes;
@@ -405,8 +411,8 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
405
411
  connectedCallback(): void;
406
412
  disconnectedCallback(): void;
407
413
  deepClone(): Node;
414
+ deinit(): void;
408
415
  init(): void;
409
- reset(): void;
410
416
  restart(): void;
411
417
  private clearRowData;
412
418
  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,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,oBAAqB,YAAW,qBAAqB;IACnF,IAAI,EAAG,IAAI,CAAC;IACT,OAAO,EAAG,OAAO,CAAC;IAE3B,gBAAgB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC7D,OAAO,CAAC,YAAY,CAAS;IAC7B,cAAc,EAAE,GAAG,CAAC;IACpB,OAAO,CAAC,eAAe,CAAwB;IAC/C,OAAO,CAAC,eAAe,CAAmB;IAE1C,OAAO,CAAC,OAAO,CAA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AAG,EAAE,2BAA2B,KAAK,IAAI;CAIxD"}
@@ -126,7 +126,9 @@ export class StreamDatasource extends StreamBaseDatasource {
126
126
  const successRowData = {
127
127
  rowData: Array.from(this.sortMapByNumericKey(this.rowData).values()),
128
128
  };
129
- if (this.pagination) {
129
+ if (this.pagination && !this.resourceParams.CRITERIA_MATCH) {
130
+ // TODO: Will add a PA for server team, we're at a stage where Criteria Match needs to affect ROWS_COUNT
131
+ // This will cause "pagination" scenarios to show "of more" instead of actual count, less misleading.
130
132
  successRowData.rowCount = Math.min(this.server_ROWS_COUNT, this.maxView);
131
133
  }
132
134
  if (params.request.endRow > this.maxView ||
@@ -287,6 +289,7 @@ __decorate([
287
289
  Connect
288
290
  ], StreamDatasource.prototype, "connect", void 0);
289
291
  const criteriaDelimiter = ';';
292
+ const withoutColumnDefs = null;
290
293
  /**
291
294
  * A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
292
295
  * @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
@@ -300,14 +303,27 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
300
303
  this.pagination = false;
301
304
  }
302
305
  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();
306
+ const criteriaIsNotDuplicate = oldCriteria !== normaliseCriteria(newCriteria, criteriaDelimiter);
307
+ if (this.ssrmDatasource && criteriaIsNotDuplicate) {
308
+ this.reloadResourceData();
309
309
  }
310
310
  }
311
+ /**
312
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
313
+ * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
314
+ * @internal
315
+ */
316
+ reloadResourceData() {
317
+ var _a, _b, _c;
318
+ return __awaiter(this, void 0, void 0, function* () {
319
+ this.ssrmDatasource.dataLogoff();
320
+ this.clearRowData(withoutColumnDefs);
321
+ this.ssrmDatasource = undefined;
322
+ (_a = this.agGrid.gridApi) === null || _a === void 0 ? void 0 : _a.refreshServerSide({ purge: true });
323
+ (_c = (_b = this.agGrid) === null || _b === void 0 ? void 0 : _b.gridApi) === null || _c === void 0 ? void 0 : _c.showLoadingOverlay();
324
+ this.init();
325
+ });
326
+ }
311
327
  resourceNameChanged(oldValue, newValue) {
312
328
  if (!oldValue || oldValue === newValue)
313
329
  return;
@@ -328,7 +344,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
328
344
  DOM.queueUpdate(() => {
329
345
  if (!shouldRunDisconnect)
330
346
  return;
331
- this.reset();
347
+ this.deinit();
332
348
  });
333
349
  }
334
350
  deepClone() {
@@ -337,6 +353,13 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
337
353
  copy.deferredColumnStates = structuredClone(this.deferredColumnStates);
338
354
  return copy;
339
355
  }
356
+ deinit() {
357
+ var _a;
358
+ this.clearRowData();
359
+ this.ssrmDatasource = undefined;
360
+ this.originalFieldDef = undefined;
361
+ (_a = this.agGrid.gridApi) === null || _a === void 0 ? void 0 : _a.refreshServerSide({ purge: true });
362
+ }
340
363
  init() {
341
364
  if (this.agGrid && this.resourceName && this.connect.isConnected) {
342
365
  this.agGrid.gridOptions = Object.assign({ getRowId: (params) => {
@@ -383,25 +406,22 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
383
406
  }
384
407
  logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
385
408
  }
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
409
  restart() {
394
- this.reset();
410
+ this.deinit();
395
411
  this.init();
396
412
  }
397
- clearRowData() {
413
+ clearRowData(withColumnDefs = true) {
398
414
  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: [] };
415
+ this.rowData = new Map();
416
+ if (withColumnDefs) {
417
+ (_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setColumnDefs([]);
418
+ }
419
+ this.agTransaction = { remove: [] };
401
420
  (_c = this.agGrid.gridApi) === null || _c === void 0 ? void 0 : _c.forEachNode((node) => {
402
- agTransaction.remove.push(node.data);
421
+ this.agTransaction.remove.push(node.data);
403
422
  });
404
- (_d = this.agGrid.gridApi) === null || _d === void 0 ? void 0 : _d.applyServerSideTransaction(agTransaction);
423
+ (_d = this.agGrid.gridApi) === null || _d === void 0 ? void 0 : _d.applyServerSideTransaction(this.agTransaction);
424
+ this.agTransaction = undefined;
405
425
  }
406
426
  getResourceIndexes(avaialbleIndexes) {
407
427
  const resourceIndexesMap = new Map();
@@ -453,6 +473,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
453
473
  const updatedInfo = yield this.connect.snapshot(this.resourceName, {
454
474
  MAX_ROWS: 1,
455
475
  MAX_VIEW: 1,
476
+ CRITERIA_MATCH: this.criteria,
456
477
  });
457
478
  this.ssrmDatasource.server_ROWS_COUNT = updatedInfo.ROWS_COUNT;
458
479
  }
@@ -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;
@@ -2701,7 +2707,7 @@ export declare class StreamDatasource extends StreamBaseDatasource implements IS
2701
2707
  constructor(options: StreamDatasourceOptions);
2702
2708
  getRows(params: IServerSideGetRowsParams): Promise<void>;
2703
2709
  private sortMapByNumericKey;
2704
- private dataLogoff;
2710
+ dataLogoff(): void;
2705
2711
  private restartSubscription;
2706
2712
  private getOrderByAndToBeSortedColIds;
2707
2713
  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-e3b7ca7.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-e3b7ca7.0",
34
+ "@genesislcap/genx": "14.147.1-alpha-e3b7ca7.0",
35
+ "@genesislcap/rollup-builder": "14.147.1-alpha-e3b7ca7.0",
36
+ "@genesislcap/ts-builder": "14.147.1-alpha-e3b7ca7.0",
37
+ "@genesislcap/uvu-playwright-builder": "14.147.1-alpha-e3b7ca7.0",
38
+ "@genesislcap/vite-builder": "14.147.1-alpha-e3b7ca7.0",
39
+ "@genesislcap/webpack-builder": "14.147.1-alpha-e3b7ca7.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-e3b7ca7.0",
44
+ "@genesislcap/foundation-logger": "14.147.1-alpha-e3b7ca7.0",
45
+ "@genesislcap/foundation-ui": "14.147.1-alpha-e3b7ca7.0",
46
+ "@genesislcap/foundation-utils": "14.147.1-alpha-e3b7ca7.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": "843eb1b1f6b9ab5e1f2725dd4175e1478d9c9c0b"
72
72
  }