@genesislcap/grid-pro 14.79.1 → 14.79.2-alpha-ca658e8.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.
@@ -328,11 +328,48 @@
328
328
  },
329
329
  {
330
330
  "kind": "field",
331
- "name": "enabledRowFlashing",
331
+ "name": "gridAutosizingEnabled",
332
332
  "type": {
333
333
  "text": "boolean"
334
334
  },
335
- "default": "false"
335
+ "default": "false",
336
+ "description": "Boolean attribute to control whether the grid autosizes the columns upon interaction.\nThis will disable the column widths from being manually set, and doesn't save the widths\nin local storage if you are using `persist-column-state-key`."
337
+ },
338
+ {
339
+ "kind": "field",
340
+ "name": "addIndex",
341
+ "type": {
342
+ "text": "number"
343
+ },
344
+ "default": "0",
345
+ "description": "The index to add new rows to when using `applyTransaction` or `applyTransactionAsync`"
346
+ },
347
+ {
348
+ "kind": "field",
349
+ "name": "asyncAdd",
350
+ "type": {
351
+ "text": "boolean"
352
+ },
353
+ "default": "false",
354
+ "description": "Whether to use the `applyTransactionAsync` function for *add* transactions"
355
+ },
356
+ {
357
+ "kind": "field",
358
+ "name": "asyncRemove",
359
+ "type": {
360
+ "text": "boolean"
361
+ },
362
+ "default": "false",
363
+ "description": "Whether to use the `applyTransactionAsync` function for *remove* transactions"
364
+ },
365
+ {
366
+ "kind": "field",
367
+ "name": "asyncUpdate",
368
+ "type": {
369
+ "text": "boolean"
370
+ },
371
+ "default": "true",
372
+ "description": "Whether to use the `applyTransactionAsync` function for *update* transactions"
336
373
  },
337
374
  {
338
375
  "kind": "field",
@@ -341,23 +378,33 @@
341
378
  "text": "boolean"
342
379
  },
343
380
  "default": "false",
344
- "description": "If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef"
381
+ "description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef"
345
382
  },
346
383
  {
347
384
  "kind": "field",
348
- "name": "persistColumnStateKey",
385
+ "name": "enabledRowFlashing",
349
386
  "type": {
350
- "text": "string"
351
- }
387
+ "text": "boolean"
388
+ },
389
+ "default": "false",
390
+ "deprecated": "- use `enableRowFlashing` instead."
352
391
  },
353
392
  {
354
393
  "kind": "field",
355
- "name": "gridAutosizingEnabled",
394
+ "name": "enableRowFlashing",
356
395
  "type": {
357
396
  "text": "boolean"
358
397
  },
359
398
  "default": "false",
360
- "description": "Boolean attribute to control whether the grid autosizes the columns upon interaction.\nThis will disable the column widths from being manually set, and doesn't save the widths\nin local storage if you are using `persist-column-state-key`."
399
+ "description": "If true, will enable row flashing for all rows for `add` async transactions"
400
+ },
401
+ {
402
+ "kind": "field",
403
+ "name": "persistColumnStateKey",
404
+ "type": {
405
+ "text": "string"
406
+ },
407
+ "description": "The key to use for persisting the column state in local storage."
361
408
  },
362
409
  {
363
410
  "kind": "field",
@@ -878,11 +925,49 @@
878
925
  "fieldName": "onlyTemplateColDefs"
879
926
  },
880
927
  {
928
+ "name": "grid-autosizing",
881
929
  "type": {
882
930
  "text": "boolean"
883
931
  },
884
932
  "default": "false",
885
- "fieldName": "enabledRowFlashing"
933
+ "description": "Boolean attribute to control whether the grid autosizes the columns upon interaction.\nThis will disable the column widths from being manually set, and doesn't save the widths\nin local storage if you are using `persist-column-state-key`.",
934
+ "fieldName": "gridAutosizingEnabled"
935
+ },
936
+ {
937
+ "name": "add-index",
938
+ "type": {
939
+ "text": "number"
940
+ },
941
+ "default": "0",
942
+ "description": "The index to add new rows to when using `applyTransaction` or `applyTransactionAsync`",
943
+ "fieldName": "addIndex"
944
+ },
945
+ {
946
+ "name": "async-add",
947
+ "type": {
948
+ "text": "boolean"
949
+ },
950
+ "default": "false",
951
+ "description": "Whether to use the `applyTransactionAsync` function for *add* transactions",
952
+ "fieldName": "asyncAdd"
953
+ },
954
+ {
955
+ "name": "async-remove",
956
+ "type": {
957
+ "text": "boolean"
958
+ },
959
+ "default": "false",
960
+ "description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
961
+ "fieldName": "asyncRemove"
962
+ },
963
+ {
964
+ "name": "async-update",
965
+ "type": {
966
+ "text": "boolean"
967
+ },
968
+ "default": "true",
969
+ "description": "Whether to use the `applyTransactionAsync` function for *update* transactions",
970
+ "fieldName": "asyncUpdate"
886
971
  },
887
972
  {
888
973
  "name": "enable-cell-flashing",
@@ -890,24 +975,34 @@
890
975
  "text": "boolean"
891
976
  },
892
977
  "default": "false",
893
- "description": "If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef",
978
+ "description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef",
894
979
  "fieldName": "enableCellFlashing"
895
980
  },
896
981
  {
897
- "name": "persist-column-state-key",
982
+ "name": "enabled-row-flashing",
898
983
  "type": {
899
- "text": "string"
984
+ "text": "boolean"
900
985
  },
901
- "fieldName": "persistColumnStateKey"
986
+ "default": "false",
987
+ "deprecated": "- use `enableRowFlashing` instead.",
988
+ "fieldName": "enabledRowFlashing"
902
989
  },
903
990
  {
904
- "name": "grid-autosizing",
991
+ "name": "enable-row-flashing",
905
992
  "type": {
906
993
  "text": "boolean"
907
994
  },
908
995
  "default": "false",
909
- "description": "Boolean attribute to control whether the grid autosizes the columns upon interaction.\nThis will disable the column widths from being manually set, and doesn't save the widths\nin local storage if you are using `persist-column-state-key`.",
910
- "fieldName": "gridAutosizingEnabled"
996
+ "description": "If true, will enable row flashing for all rows for `add` async transactions",
997
+ "fieldName": "enableRowFlashing"
998
+ },
999
+ {
1000
+ "name": "persist-column-state-key",
1001
+ "type": {
1002
+ "text": "string"
1003
+ },
1004
+ "description": "The key to use for persisting the column state in local storage.",
1005
+ "fieldName": "persistColumnStateKey"
911
1006
  },
912
1007
  {
913
1008
  "name": "columnComponentName",
@@ -4839,6 +4934,36 @@
4839
4934
  }
4840
4935
  ]
4841
4936
  },
4937
+ {
4938
+ "kind": "method",
4939
+ "name": "applyAllAgTransactions",
4940
+ "privacy": "private"
4941
+ },
4942
+ {
4943
+ "kind": "method",
4944
+ "name": "applyMappedAgTransaction",
4945
+ "privacy": "private",
4946
+ "parameters": [
4947
+ {
4948
+ "name": "agTransaction",
4949
+ "type": {
4950
+ "text": "RowDataTransaction"
4951
+ }
4952
+ },
4953
+ {
4954
+ "name": "operation",
4955
+ "type": {
4956
+ "text": "OperationType"
4957
+ }
4958
+ },
4959
+ {
4960
+ "name": "isAsync",
4961
+ "type": {
4962
+ "text": "boolean"
4963
+ }
4964
+ }
4965
+ ]
4966
+ },
4842
4967
  {
4843
4968
  "kind": "method",
4844
4969
  "name": "mapTransaction",
@@ -459,6 +459,8 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
459
459
  private handleStreamResult;
460
460
  private applyRequestServerData;
461
461
  private applyDataserverData;
462
+ private applyAllAgTransactions;
463
+ private applyMappedAgTransaction;
462
464
  /**
463
465
  * Maps the transaction data to the row data mapper function, if it exists.
464
466
  * @param transaction - The transaction data to be mapped.
@@ -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,IAAI,EACJ,OAAO,EAEP,UAAU,EAYX,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAkB/D;;;GAGG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEA0NC;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AO,KAAK,MAAM,GAEjB;IAID;;;;OAIG;IACH,OAAO,KAAK,KAAK,GAIhB;IAED;;;;OAIG;IACG,IAAI;IAyCV;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IA6BL;;;OAGG;IACH,OAAO;IAKP;;OAEG;IACH,WAAW;IAIX;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAUlB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAYlB;;;;;OAKG;YACW,kBAAkB;IAWhC;;;;;;OAMG;YACW,gBAAgB;IA4C9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IAmD9B,OAAO,CAAC,mBAAmB;IA2B3B;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAyBtB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IA6CvB,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
1
+ {"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAsB,MAAM,yBAAyB,CAAC;AAClF,OAAO,EACL,IAAI,EACJ,OAAO,EAEP,UAAU,EAYX,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAkB/D;;;GAGG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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19
19
  cloneNode(deep?: boolean): Node;
20
- deepClone(): Node;
20
+ deepClone(): Node; /**
21
+ * Whether to use the `applyTransactionAsync` function for *remove* transactions
22
+ * @remarks Defaults to false
23
+ */
21
24
  readonly shouldRunDisconnect: boolean;
22
25
  readonly shouldRunConnect: boolean;
23
26
  "__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
@@ -345,14 +348,13 @@ export declare class GridPro extends GridPro_base {
345
348
  columnApi: ColumnApi;
346
349
  gridApi: GridApi;
347
350
  private session;
348
- autoCellRendererByType: boolean;
349
- onlyTemplateColDefs: boolean;
350
- enabledRowFlashing: boolean;
351
351
  /**
352
- * If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef
352
+ * Timeout function used to debounce resize calls
353
+ * @internal
353
354
  */
354
- enableCellFlashing: boolean;
355
- persistColumnStateKey: string;
355
+ private debounced;
356
+ autoCellRendererByType: boolean;
357
+ onlyTemplateColDefs: boolean;
356
358
  /**
357
359
  * Boolean attribute to control whether the grid autosizes the columns upon interaction.
358
360
  * This will disable the column widths from being manually set, and doesn't save the widths
@@ -360,10 +362,42 @@ export declare class GridPro extends GridPro_base {
360
362
  */
361
363
  gridAutosizingEnabled: boolean;
362
364
  /**
363
- * Timeout function used to debounce resize calls
364
- * @internal
365
+ * The index to add new rows to when using `applyTransaction` or `applyTransactionAsync`
365
366
  */
366
- private debounced;
367
+ addIndex: number;
368
+ /**
369
+ * Whether to use the `applyTransactionAsync` function for *add* transactions
370
+ * @remarks Defaults to false
371
+ */
372
+ asyncAdd: boolean;
373
+ /**
374
+ * Whether to use the `applyTransactionAsync` function for *remove* transactions
375
+ * @remarks Defaults to false
376
+ */
377
+ asyncRemove: boolean;
378
+ /**
379
+ * Whether to use the `applyTransactionAsync` function for *update* transactions
380
+ * @remarks Defaults to true
381
+ */
382
+ asyncUpdate: boolean;
383
+ /**
384
+ * If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef
385
+ * @remarks Defaults to true
386
+ */
387
+ enableCellFlashing: boolean;
388
+ /**
389
+ * @deprecated - use `enableRowFlashing` instead.
390
+ */
391
+ enabledRowFlashing: boolean;
392
+ /**
393
+ * If true, will enable row flashing for all rows for `add` async transactions
394
+ * @remarks Requires `asyncAdd` to be `true`
395
+ */
396
+ enableRowFlashing: boolean;
397
+ /**
398
+ * The key to use for persisting the column state in local storage.
399
+ */
400
+ persistColumnStateKey: string;
367
401
  gridFontFace: string;
368
402
  columnComponentName: string;
369
403
  eventsAndCallbacks: any;
@@ -1 +1 @@
1
- {"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,WAAW,EAEX,OAAO,EACP,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAIL,IAAI,EAEL,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAO/D,OAAO,EACL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAKL,cAAc,EACf,MAAM,kBAAkB,CAAC;AAU1B;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,MAAM,WACa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAM9D;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ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A;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"}
@@ -348,13 +348,11 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
348
348
  return true; // delete rows that don't exist in requestServerData
349
349
  });
350
350
  const rowsToInsert = requestServerData.filter((data) => !this.rows.has(data[this.rowId]));
351
- this.agTransaction = { add: [], remove: [] };
351
+ this.agTransaction = { add: [], remove: [], update: [] };
352
352
  this.handleStreamInserts(rowsToInsert);
353
353
  this.handleStreamDeletes(rowsToDelete);
354
- this.agGrid.gridApi.applyTransaction(this.mapTransaction(this.agTransaction, [OperationType.Add, OperationType.Remove]));
355
- this.agTransaction = { update: [] };
356
354
  this.handleStreamUpdates(rowsToUpdate);
357
- this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(this.agTransaction, [OperationType.Update]));
355
+ this.applyAllAgTransactions();
358
356
  }
359
357
  applyDataserverData(dataServerResult) {
360
358
  var _a;
@@ -366,13 +364,20 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
366
364
  this.setRowData(rowData);
367
365
  return;
368
366
  }
369
- this.agTransaction = { add: [], remove: [] };
367
+ this.agTransaction = { add: [], remove: [], update: [] };
370
368
  this.handleStreamInserts(dataServerResult.inserts);
371
369
  this.handleStreamDeletes(dataServerResult.deletes);
372
- this.agGrid.gridApi.applyTransaction(this.mapTransaction(this.agTransaction, [OperationType.Add, OperationType.Remove]));
373
- this.agTransaction = { update: [] };
374
370
  this.handleStreamUpdates(dataServerResult.updates);
375
- this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(this.agTransaction, [OperationType.Update]));
371
+ this.applyAllAgTransactions();
372
+ }
373
+ applyAllAgTransactions() {
374
+ this.applyMappedAgTransaction({ add: this.agTransaction.add, addIndex: this.agGrid.addIndex }, OperationType.Add, this.agGrid.asyncAdd);
375
+ this.applyMappedAgTransaction({ remove: this.agTransaction.remove }, OperationType.Remove, this.agGrid.asyncRemove);
376
+ this.applyMappedAgTransaction({ update: this.agTransaction.update }, OperationType.Update, this.agGrid.asyncUpdate);
377
+ }
378
+ applyMappedAgTransaction(agTransaction, operation, isAsync) {
379
+ const applyTransaction = isAsync ? 'applyTransactionAsync' : 'applyTransaction';
380
+ this.agGrid.gridApi[applyTransaction](this.mapTransaction(agTransaction, [operation]));
376
381
  }
377
382
  /**
378
383
  * Maps the transaction data to the row data mapper function, if it exists.
@@ -16,7 +16,7 @@ import { DEBOUNCED_RESIZE_TIME } from './grid-pro.definitions';
16
16
  import { foundationGridProStyles as styles } from './grid-pro.styles';
17
17
  import { gridProTemplate as template } from './grid-pro.template';
18
18
  import { AgGridTheme, GridProRendererTypes, agThemeFontsId, agThemeTokenMapClassname, } from './grid-pro.types';
19
- import { mergeAndDedupColDefWithColumnState } from './utils';
19
+ import { logger, mergeAndDedupColDefWithColumnState } from './utils';
20
20
  GridProGenesisDatasource;
21
21
  GridProGenesisDatasourceNext;
22
22
  GridProCell;
@@ -50,18 +50,46 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
50
50
  // Genesis-specific attrs
51
51
  this.autoCellRendererByType = false;
52
52
  this.onlyTemplateColDefs = false;
53
- this.enabledRowFlashing = false;
54
- /**
55
- * If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef
56
- */
57
- this.enableCellFlashing = false;
53
+ // AG-specific attrs
58
54
  /**
59
55
  * Boolean attribute to control whether the grid autosizes the columns upon interaction.
60
56
  * This will disable the column widths from being manually set, and doesn't save the widths
61
57
  * in local storage if you are using `persist-column-state-key`.
62
58
  */
63
59
  this.gridAutosizingEnabled = false;
64
- // AG-specific attrs
60
+ /**
61
+ * The index to add new rows to when using `applyTransaction` or `applyTransactionAsync`
62
+ */
63
+ this.addIndex = 0;
64
+ /**
65
+ * Whether to use the `applyTransactionAsync` function for *add* transactions
66
+ * @remarks Defaults to false
67
+ */
68
+ this.asyncAdd = false;
69
+ /**
70
+ * Whether to use the `applyTransactionAsync` function for *remove* transactions
71
+ * @remarks Defaults to false
72
+ */
73
+ this.asyncRemove = false;
74
+ /**
75
+ * Whether to use the `applyTransactionAsync` function for *update* transactions
76
+ * @remarks Defaults to true
77
+ */
78
+ this.asyncUpdate = true;
79
+ /**
80
+ * If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef
81
+ * @remarks Defaults to true
82
+ */
83
+ this.enableCellFlashing = false;
84
+ /**
85
+ * @deprecated - use `enableRowFlashing` instead.
86
+ */
87
+ this.enabledRowFlashing = false;
88
+ /**
89
+ * If true, will enable row flashing for all rows for `add` async transactions
90
+ * @remarks Requires `asyncAdd` to be `true`
91
+ */
92
+ this.enableRowFlashing = false;
65
93
  this.gridFontFace = defaultAgGridFontFace;
66
94
  this.columnComponentName = 'grid-pro-column';
67
95
  this.theme = AgGridTheme.alpine;
@@ -217,6 +245,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
217
245
  });
218
246
  const { columnDefs, components, onGridReady, onFirstDataRendered } = options, rest = __rest(options, ["columnDefs", "components", "onGridReady", "onFirstDataRendered"]);
219
247
  const derivedOptions = Object.assign(Object.assign(Object.assign({ defaultColDef: {
248
+ enableCellChangeFlash: this.enableCellFlashing,
220
249
  filter: true,
221
250
  resizable: true,
222
251
  sortable: true,
@@ -234,7 +263,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
234
263
  this.restoreColumnState.bind(this)();
235
264
  this.debouncedColumnAutosize.bind(this)();
236
265
  }, onFirstDataRendered: (event) => {
237
- this.enableFlashingRows.bind(this);
266
+ this.enableFlashingRows.bind(this)();
238
267
  this.restoreCachedFilterConfig.bind(this)();
239
268
  if (onFirstDataRendered) {
240
269
  onFirstDataRendered(event);
@@ -260,7 +289,11 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
260
289
  });
261
290
  }
262
291
  enableFlashingRows() {
263
- if (this.enabledRowFlashing) {
292
+ if (this.enableRowFlashing || this.enabledRowFlashing) {
293
+ if (!this.asyncAdd) {
294
+ logger.warn('Row Flashing (enableRowFlashing) only works when Grid has async Add Transactions (asyncAdd) enabled');
295
+ return;
296
+ }
264
297
  this.gridApi.addEventListener(Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED, (e) => {
265
298
  e.results.forEach((result) => {
266
299
  if (result.add.length) {
@@ -378,17 +411,32 @@ __decorate([
378
411
  attr({ attribute: 'only-template-col-defs', mode: 'boolean' })
379
412
  ], GridPro.prototype, "onlyTemplateColDefs", void 0);
380
413
  __decorate([
381
- attr({ mode: 'boolean' })
382
- ], GridPro.prototype, "enabledRowFlashing", void 0);
414
+ attr({ mode: 'boolean', attribute: 'grid-autosizing' })
415
+ ], GridPro.prototype, "gridAutosizingEnabled", void 0);
416
+ __decorate([
417
+ attr({ attribute: 'add-index' })
418
+ ], GridPro.prototype, "addIndex", void 0);
419
+ __decorate([
420
+ attr({ mode: 'boolean', attribute: 'async-add' })
421
+ ], GridPro.prototype, "asyncAdd", void 0);
422
+ __decorate([
423
+ attr({ mode: 'boolean', attribute: 'async-remove' })
424
+ ], GridPro.prototype, "asyncRemove", void 0);
425
+ __decorate([
426
+ attr({ mode: 'boolean', attribute: 'async-update' })
427
+ ], GridPro.prototype, "asyncUpdate", void 0);
383
428
  __decorate([
384
429
  attr({ mode: 'boolean', attribute: 'enable-cell-flashing' })
385
430
  ], GridPro.prototype, "enableCellFlashing", void 0);
431
+ __decorate([
432
+ attr({ mode: 'boolean', attribute: 'enabled-row-flashing' })
433
+ ], GridPro.prototype, "enabledRowFlashing", void 0);
434
+ __decorate([
435
+ attr({ mode: 'boolean', attribute: 'enable-row-flashing' })
436
+ ], GridPro.prototype, "enableRowFlashing", void 0);
386
437
  __decorate([
387
438
  attr({ attribute: 'persist-column-state-key' })
388
439
  ], GridPro.prototype, "persistColumnStateKey", void 0);
389
- __decorate([
390
- attr({ mode: 'boolean', attribute: 'grid-autosizing' })
391
- ], GridPro.prototype, "gridAutosizingEnabled", void 0);
392
440
  __decorate([
393
441
  observable
394
442
  ], GridPro.prototype, "gridFontFace", void 0);
@@ -4788,6 +4788,36 @@
4788
4788
  "overloadIndex": 1,
4789
4789
  "parameters": []
4790
4790
  },
4791
+ {
4792
+ "kind": "Property",
4793
+ "canonicalReference": "@genesislcap/grid-pro!GridPro#addIndex:member",
4794
+ "docComment": "/**\n * The index to add new rows to when using `applyTransaction` or `applyTransactionAsync`\n */\n",
4795
+ "excerptTokens": [
4796
+ {
4797
+ "kind": "Content",
4798
+ "text": "addIndex: "
4799
+ },
4800
+ {
4801
+ "kind": "Content",
4802
+ "text": "number"
4803
+ },
4804
+ {
4805
+ "kind": "Content",
4806
+ "text": ";"
4807
+ }
4808
+ ],
4809
+ "isReadonly": false,
4810
+ "isOptional": false,
4811
+ "releaseTag": "Public",
4812
+ "name": "addIndex",
4813
+ "propertyTypeTokenRange": {
4814
+ "startIndex": 1,
4815
+ "endIndex": 2
4816
+ },
4817
+ "isStatic": false,
4818
+ "isProtected": false,
4819
+ "isAbstract": false
4820
+ },
4791
4821
  {
4792
4822
  "kind": "Method",
4793
4823
  "canonicalReference": "@genesislcap/grid-pro!GridPro#agAttributeChangedCallback:member(1)",
@@ -5074,6 +5104,96 @@
5074
5104
  "isAbstract": false,
5075
5105
  "name": "applyTemplateDefinitions"
5076
5106
  },
5107
+ {
5108
+ "kind": "Property",
5109
+ "canonicalReference": "@genesislcap/grid-pro!GridPro#asyncAdd:member",
5110
+ "docComment": "/**\n * Whether to use the `applyTransactionAsync` function for *add* transactions\n *\n * @remarks\n *\n * Defaults to false\n */\n",
5111
+ "excerptTokens": [
5112
+ {
5113
+ "kind": "Content",
5114
+ "text": "asyncAdd: "
5115
+ },
5116
+ {
5117
+ "kind": "Content",
5118
+ "text": "boolean"
5119
+ },
5120
+ {
5121
+ "kind": "Content",
5122
+ "text": ";"
5123
+ }
5124
+ ],
5125
+ "isReadonly": false,
5126
+ "isOptional": false,
5127
+ "releaseTag": "Public",
5128
+ "name": "asyncAdd",
5129
+ "propertyTypeTokenRange": {
5130
+ "startIndex": 1,
5131
+ "endIndex": 2
5132
+ },
5133
+ "isStatic": false,
5134
+ "isProtected": false,
5135
+ "isAbstract": false
5136
+ },
5137
+ {
5138
+ "kind": "Property",
5139
+ "canonicalReference": "@genesislcap/grid-pro!GridPro#asyncRemove:member",
5140
+ "docComment": "/**\n * Whether to use the `applyTransactionAsync` function for *remove* transactions\n *\n * @remarks\n *\n * Defaults to false\n */\n",
5141
+ "excerptTokens": [
5142
+ {
5143
+ "kind": "Content",
5144
+ "text": "asyncRemove: "
5145
+ },
5146
+ {
5147
+ "kind": "Content",
5148
+ "text": "boolean"
5149
+ },
5150
+ {
5151
+ "kind": "Content",
5152
+ "text": ";"
5153
+ }
5154
+ ],
5155
+ "isReadonly": false,
5156
+ "isOptional": false,
5157
+ "releaseTag": "Public",
5158
+ "name": "asyncRemove",
5159
+ "propertyTypeTokenRange": {
5160
+ "startIndex": 1,
5161
+ "endIndex": 2
5162
+ },
5163
+ "isStatic": false,
5164
+ "isProtected": false,
5165
+ "isAbstract": false
5166
+ },
5167
+ {
5168
+ "kind": "Property",
5169
+ "canonicalReference": "@genesislcap/grid-pro!GridPro#asyncUpdate:member",
5170
+ "docComment": "/**\n * Whether to use the `applyTransactionAsync` function for *update* transactions\n *\n * @remarks\n *\n * Defaults to true\n */\n",
5171
+ "excerptTokens": [
5172
+ {
5173
+ "kind": "Content",
5174
+ "text": "asyncUpdate: "
5175
+ },
5176
+ {
5177
+ "kind": "Content",
5178
+ "text": "boolean"
5179
+ },
5180
+ {
5181
+ "kind": "Content",
5182
+ "text": ";"
5183
+ }
5184
+ ],
5185
+ "isReadonly": false,
5186
+ "isOptional": false,
5187
+ "releaseTag": "Public",
5188
+ "name": "asyncUpdate",
5189
+ "propertyTypeTokenRange": {
5190
+ "startIndex": 1,
5191
+ "endIndex": 2
5192
+ },
5193
+ "isStatic": false,
5194
+ "isProtected": false,
5195
+ "isAbstract": false
5196
+ },
5077
5197
  {
5078
5198
  "kind": "Property",
5079
5199
  "canonicalReference": "@genesislcap/grid-pro!GridPro#autoCellRendererByType:member",
@@ -5310,7 +5430,7 @@
5310
5430
  {
5311
5431
  "kind": "Property",
5312
5432
  "canonicalReference": "@genesislcap/grid-pro!GridPro#enableCellFlashing:member",
5313
- "docComment": "/**\n * If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef\n */\n",
5433
+ "docComment": "/**\n * If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef\n *\n * @remarks\n *\n * Defaults to true\n */\n",
5314
5434
  "excerptTokens": [
5315
5435
  {
5316
5436
  "kind": "Content",
@@ -5340,7 +5460,7 @@
5340
5460
  {
5341
5461
  "kind": "Property",
5342
5462
  "canonicalReference": "@genesislcap/grid-pro!GridPro#enabledRowFlashing:member",
5343
- "docComment": "",
5463
+ "docComment": "/**\n * @deprecated\n *\n * - use `enableRowFlashing` instead.\n */\n",
5344
5464
  "excerptTokens": [
5345
5465
  {
5346
5466
  "kind": "Content",
@@ -5367,6 +5487,36 @@
5367
5487
  "isProtected": false,
5368
5488
  "isAbstract": false
5369
5489
  },
5490
+ {
5491
+ "kind": "Property",
5492
+ "canonicalReference": "@genesislcap/grid-pro!GridPro#enableRowFlashing:member",
5493
+ "docComment": "/**\n * If true, will enable row flashing for all rows for `add` async transactions\n *\n * @remarks\n *\n * Requires `asyncAdd` to be `true`\n */\n",
5494
+ "excerptTokens": [
5495
+ {
5496
+ "kind": "Content",
5497
+ "text": "enableRowFlashing: "
5498
+ },
5499
+ {
5500
+ "kind": "Content",
5501
+ "text": "boolean"
5502
+ },
5503
+ {
5504
+ "kind": "Content",
5505
+ "text": ";"
5506
+ }
5507
+ ],
5508
+ "isReadonly": false,
5509
+ "isOptional": false,
5510
+ "releaseTag": "Public",
5511
+ "name": "enableRowFlashing",
5512
+ "propertyTypeTokenRange": {
5513
+ "startIndex": 1,
5514
+ "endIndex": 2
5515
+ },
5516
+ "isStatic": false,
5517
+ "isProtected": false,
5518
+ "isAbstract": false
5519
+ },
5370
5520
  {
5371
5521
  "kind": "Property",
5372
5522
  "canonicalReference": "@genesislcap/grid-pro!GridPro#eventsAndCallbacks:member",
@@ -5843,7 +5993,7 @@
5843
5993
  {
5844
5994
  "kind": "Property",
5845
5995
  "canonicalReference": "@genesislcap/grid-pro!GridPro#persistColumnStateKey:member",
5846
- "docComment": "",
5996
+ "docComment": "/**\n * The key to use for persisting the column state in local storage.\n */\n",
5847
5997
  "excerptTokens": [
5848
5998
  {
5849
5999
  "kind": "Content",
@@ -783,14 +783,13 @@ export declare class GridPro extends GridPro_base {
783
783
  columnApi: ColumnApi;
784
784
  gridApi: GridApi;
785
785
  private session;
786
- autoCellRendererByType: boolean;
787
- onlyTemplateColDefs: boolean;
788
- enabledRowFlashing: boolean;
789
786
  /**
790
- * If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef
787
+ * Timeout function used to debounce resize calls
788
+ * @internal
791
789
  */
792
- enableCellFlashing: boolean;
793
- persistColumnStateKey: string;
790
+ private debounced;
791
+ autoCellRendererByType: boolean;
792
+ onlyTemplateColDefs: boolean;
794
793
  /**
795
794
  * Boolean attribute to control whether the grid autosizes the columns upon interaction.
796
795
  * This will disable the column widths from being manually set, and doesn't save the widths
@@ -798,10 +797,42 @@ export declare class GridPro extends GridPro_base {
798
797
  */
799
798
  gridAutosizingEnabled: boolean;
800
799
  /**
801
- * Timeout function used to debounce resize calls
802
- * @internal
800
+ * The index to add new rows to when using `applyTransaction` or `applyTransactionAsync`
803
801
  */
804
- private debounced;
802
+ addIndex: number;
803
+ /**
804
+ * Whether to use the `applyTransactionAsync` function for *add* transactions
805
+ * @remarks Defaults to false
806
+ */
807
+ asyncAdd: boolean;
808
+ /**
809
+ * Whether to use the `applyTransactionAsync` function for *remove* transactions
810
+ * @remarks Defaults to false
811
+ */
812
+ asyncRemove: boolean;
813
+ /**
814
+ * Whether to use the `applyTransactionAsync` function for *update* transactions
815
+ * @remarks Defaults to true
816
+ */
817
+ asyncUpdate: boolean;
818
+ /**
819
+ * If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef
820
+ * @remarks Defaults to true
821
+ */
822
+ enableCellFlashing: boolean;
823
+ /**
824
+ * @deprecated - use `enableRowFlashing` instead.
825
+ */
826
+ enabledRowFlashing: boolean;
827
+ /**
828
+ * If true, will enable row flashing for all rows for `add` async transactions
829
+ * @remarks Requires `asyncAdd` to be `true`
830
+ */
831
+ enableRowFlashing: boolean;
832
+ /**
833
+ * The key to use for persisting the column state in local storage.
834
+ */
835
+ persistColumnStateKey: string;
805
836
  gridFontFace: string;
806
837
  columnComponentName: string;
807
838
  eventsAndCallbacks: any;
@@ -871,7 +902,10 @@ declare const GridPro_base: (new (...args: any[]) => {
871
902
  "__#1@#_cleanupTimeout": NodeJS.Timeout;
872
903
  "__#1@#_shouldForceLifecycle": boolean;
873
904
  cloneNode(deep?: boolean): Node;
874
- deepClone(): Node;
905
+ deepClone(): Node; /**
906
+ * Whether to use the `applyTransactionAsync` function for *remove* transactions
907
+ * @remarks Defaults to false
908
+ */
875
909
  readonly shouldRunDisconnect: boolean;
876
910
  readonly shouldRunConnect: boolean;
877
911
  "__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
@@ -1337,6 +1371,8 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
1337
1371
  private handleStreamResult;
1338
1372
  private applyRequestServerData;
1339
1373
  private applyDataserverData;
1374
+ private applyAllAgTransactions;
1375
+ private applyMappedAgTransaction;
1340
1376
  /**
1341
1377
  * Maps the transaction data to the row data mapper function, if it exists.
1342
1378
  * @param transaction - The transaction data to be mapped.
@@ -0,0 +1,13 @@
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; [GridPro](./grid-pro.gridpro.md) &gt; [addIndex](./grid-pro.gridpro.addindex.md)
4
+
5
+ ## GridPro.addIndex property
6
+
7
+ The index to add new rows to when using `applyTransaction` or `applyTransactionAsync`
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ addIndex: number;
13
+ ```
@@ -0,0 +1,18 @@
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; [GridPro](./grid-pro.gridpro.md) &gt; [asyncAdd](./grid-pro.gridpro.asyncadd.md)
4
+
5
+ ## GridPro.asyncAdd property
6
+
7
+ Whether to use the `applyTransactionAsync` function for \*add\* transactions
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ asyncAdd: boolean;
13
+ ```
14
+
15
+ ## Remarks
16
+
17
+ Defaults to false
18
+
@@ -0,0 +1,18 @@
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; [GridPro](./grid-pro.gridpro.md) &gt; [asyncRemove](./grid-pro.gridpro.asyncremove.md)
4
+
5
+ ## GridPro.asyncRemove property
6
+
7
+ Whether to use the `applyTransactionAsync` function for \*remove\* transactions
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ asyncRemove: boolean;
13
+ ```
14
+
15
+ ## Remarks
16
+
17
+ Defaults to false
18
+
@@ -0,0 +1,18 @@
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; [GridPro](./grid-pro.gridpro.md) &gt; [asyncUpdate](./grid-pro.gridpro.asyncupdate.md)
4
+
5
+ ## GridPro.asyncUpdate property
6
+
7
+ Whether to use the `applyTransactionAsync` function for \*update\* transactions
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ asyncUpdate: boolean;
13
+ ```
14
+
15
+ ## Remarks
16
+
17
+ Defaults to true
18
+
@@ -4,10 +4,15 @@
4
4
 
5
5
  ## GridPro.enableCellFlashing property
6
6
 
7
- If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef
7
+ If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef
8
8
 
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
12
  enableCellFlashing: boolean;
13
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ Defaults to true
18
+
@@ -4,6 +4,11 @@
4
4
 
5
5
  ## GridPro.enabledRowFlashing property
6
6
 
7
+ > Warning: This API is now obsolete.
8
+ >
9
+ > - use `enableRowFlashing` instead.
10
+ >
11
+
7
12
  **Signature:**
8
13
 
9
14
  ```typescript
@@ -0,0 +1,18 @@
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; [GridPro](./grid-pro.gridpro.md) &gt; [enableRowFlashing](./grid-pro.gridpro.enablerowflashing.md)
4
+
5
+ ## GridPro.enableRowFlashing property
6
+
7
+ If true, will enable row flashing for all rows for `add` async transactions
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ enableRowFlashing: boolean;
13
+ ```
14
+
15
+ ## Remarks
16
+
17
+ Requires `asyncAdd` to be `true`
18
+
@@ -27,16 +27,21 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
27
27
 
28
28
  | Property | Modifiers | Type | Description |
29
29
  | --- | --- | --- | --- |
30
+ | [addIndex](./grid-pro.gridpro.addindex.md) | | number | The index to add new rows to when using <code>applyTransaction</code> or <code>applyTransactionAsync</code> |
30
31
  | [agAttributes](./grid-pro.gridpro.agattributes.md) | <code>protected</code> | Record&lt;string, string&gt; | |
31
32
  | [agGrid](./grid-pro.gridpro.aggrid.md) | | Grid | |
32
33
  | [agGridOptions](./grid-pro.gridpro.aggridoptions.md) | <code>protected</code> | GridOptions | |
33
34
  | [agPropertiesMap](./grid-pro.gridpro.agpropertiesmap.md) | <code>protected</code> | Record&lt;string, string&gt; | |
35
+ | [asyncAdd](./grid-pro.gridpro.asyncadd.md) | | boolean | Whether to use the <code>applyTransactionAsync</code> function for \*add\* transactions |
36
+ | [asyncRemove](./grid-pro.gridpro.asyncremove.md) | | boolean | Whether to use the <code>applyTransactionAsync</code> function for \*remove\* transactions |
37
+ | [asyncUpdate](./grid-pro.gridpro.asyncupdate.md) | | boolean | Whether to use the <code>applyTransactionAsync</code> function for \*update\* transactions |
34
38
  | [autoCellRendererByType](./grid-pro.gridpro.autocellrendererbytype.md) | | boolean | |
35
39
  | [classNames](./grid-pro.gridpro.classnames.md) | | string | |
36
40
  | [columnApi](./grid-pro.gridpro.columnapi.md) | | ColumnApi | |
37
41
  | [columnComponentName](./grid-pro.gridpro.columncomponentname.md) | | string | |
38
- | [enableCellFlashing](./grid-pro.gridpro.enablecellflashing.md) | | boolean | If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef |
42
+ | [enableCellFlashing](./grid-pro.gridpro.enablecellflashing.md) | | boolean | If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef |
39
43
  | [enabledRowFlashing](./grid-pro.gridpro.enabledrowflashing.md) | | boolean | |
44
+ | [enableRowFlashing](./grid-pro.gridpro.enablerowflashing.md) | | boolean | If true, will enable row flashing for all rows for <code>add</code> async transactions |
40
45
  | [eventsAndCallbacks](./grid-pro.gridpro.eventsandcallbacks.md) | | any | |
41
46
  | [gridApi](./grid-pro.gridpro.gridapi.md) | | GridApi | |
42
47
  | [gridAutosizingEnabled](./grid-pro.gridpro.gridautosizingenabled.md) | | boolean | Boolean attribute to control whether the grid autosizes the columns upon interaction. This will disable the column widths from being manually set, and doesn't save the widths in local storage if you are using <code>persist-column-state-key</code>. |
@@ -49,7 +54,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
49
54
  | [initialised](./grid-pro.gridpro.initialised.md) | <code>protected</code> | boolean | |
50
55
  | [observedAttributes](./grid-pro.gridpro.observedattributes.md) | <code>readonly</code> | string\[\] | |
51
56
  | [onlyTemplateColDefs](./grid-pro.gridpro.onlytemplatecoldefs.md) | | boolean | |
52
- | [persistColumnStateKey](./grid-pro.gridpro.persistcolumnstatekey.md) | | string | |
57
+ | [persistColumnStateKey](./grid-pro.gridpro.persistcolumnstatekey.md) | | string | The key to use for persisting the column state in local storage. |
53
58
  | [rowHeight](./grid-pro.gridpro.rowheight.md) | | number | |
54
59
  | [theme](./grid-pro.gridpro.theme.md) | | string | |
55
60
 
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## GridPro.persistColumnStateKey property
6
6
 
7
+ The key to use for persisting the column state in local storage.
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -530,6 +530,7 @@ export type GridComponents = {
530
530
  // @public
531
531
  export class GridPro extends GridPro_base {
532
532
  constructor();
533
+ addIndex: number;
533
534
  // (undocumented)
534
535
  agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
535
536
  // (undocumented)
@@ -542,6 +543,9 @@ export class GridPro extends GridPro_base {
542
543
  protected agPropertiesMap: Record<string, string>;
543
544
  // (undocumented)
544
545
  applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefs?: boolean): ColDef<any>[];
546
+ asyncAdd: boolean;
547
+ asyncRemove: boolean;
548
+ asyncUpdate: boolean;
545
549
  // (undocumented)
546
550
  autoCellRendererByType: boolean;
547
551
  // (undocumented)
@@ -557,8 +561,9 @@ export class GridPro extends GridPro_base {
557
561
  // (undocumented)
558
562
  disconnectedCallback(): void;
559
563
  enableCellFlashing: boolean;
560
- // (undocumented)
564
+ // @deprecated (undocumented)
561
565
  enabledRowFlashing: boolean;
566
+ enableRowFlashing: boolean;
562
567
  // (undocumented)
563
568
  eventsAndCallbacks: any;
564
569
  getSavedColumnState(): ColumnState[];
@@ -588,7 +593,6 @@ export class GridPro extends GridPro_base {
588
593
  get observedAttributes(): string[];
589
594
  // (undocumented)
590
595
  onlyTemplateColDefs: boolean;
591
- // (undocumented)
592
596
  persistColumnStateKey: string;
593
597
  // (undocumented)
594
598
  rowHeight: number;
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.79.1",
4
+ "version": "14.79.2-alpha-ca658e8.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -28,14 +28,14 @@
28
28
  "test:debug": "genx test --debug"
29
29
  },
30
30
  "devDependencies": {
31
- "@genesislcap/foundation-testing": "14.79.1",
32
- "@genesislcap/genx": "14.79.1",
31
+ "@genesislcap/foundation-testing": "14.79.2-alpha-ca658e8.0",
32
+ "@genesislcap/genx": "14.79.2-alpha-ca658e8.0",
33
33
  "rimraf": "^3.0.2"
34
34
  },
35
35
  "dependencies": {
36
- "@genesislcap/foundation-comms": "14.79.1",
37
- "@genesislcap/foundation-ui": "14.79.1",
38
- "@genesislcap/foundation-utils": "14.79.1",
36
+ "@genesislcap/foundation-comms": "14.79.2-alpha-ca658e8.0",
37
+ "@genesislcap/foundation-ui": "14.79.2-alpha-ca658e8.0",
38
+ "@genesislcap/foundation-utils": "14.79.2-alpha-ca658e8.0",
39
39
  "@microsoft/fast-colors": "^5.1.4",
40
40
  "@microsoft/fast-components": "^2.21.3",
41
41
  "@microsoft/fast-element": "^1.7.0",
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "f6631dc2350244ee9f1ea5fe24ef0eaadca32c1a"
61
+ "gitHead": "661e12b401aacf5b3f1c11e50d4d22dbeda577d9"
62
62
  }