@genesislcap/grid-pro 14.78.2 → 14.78.4-alpha-b87d7d2.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,36 +328,74 @@
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`."
336
337
  },
337
338
  {
338
339
  "kind": "field",
339
- "name": "enableCellFlashing",
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",
340
350
  "type": {
341
351
  "text": "boolean"
342
352
  },
343
353
  "default": "false",
344
- "description": "If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef"
354
+ "description": "Whether to use the `applyTransactionAsync` function for *add* transactions"
345
355
  },
346
356
  {
347
357
  "kind": "field",
348
- "name": "persistColumnStateKey",
358
+ "name": "asyncRemove",
349
359
  "type": {
350
- "text": "string"
351
- }
360
+ "text": "boolean"
361
+ },
362
+ "default": "false",
363
+ "description": "Whether to use the `applyTransactionAsync` function for *remove* transactions"
352
364
  },
353
365
  {
354
366
  "kind": "field",
355
- "name": "gridAutosizingEnabled",
367
+ "name": "asyncUpdate",
368
+ "type": {
369
+ "text": "boolean"
370
+ },
371
+ "default": "true",
372
+ "description": "Whether to use the `applyTransactionAsync` function for *update* transactions"
373
+ },
374
+ {
375
+ "kind": "field",
376
+ "name": "enableCellFlashing",
356
377
  "type": {
357
378
  "text": "boolean"
358
379
  },
359
380
  "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`."
381
+ "description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef"
382
+ },
383
+ {
384
+ "kind": "field",
385
+ "name": "enableRowFlashing",
386
+ "type": {
387
+ "text": "boolean"
388
+ },
389
+ "default": "false",
390
+ "description": "If true, will enable row flashing for all rows for `add` async transactions"
391
+ },
392
+ {
393
+ "kind": "field",
394
+ "name": "persistColumnStateKey",
395
+ "type": {
396
+ "text": "string"
397
+ },
398
+ "description": "The key to use for persisting the column state in local storage."
361
399
  },
362
400
  {
363
401
  "kind": "field",
@@ -878,36 +916,75 @@
878
916
  "fieldName": "onlyTemplateColDefs"
879
917
  },
880
918
  {
919
+ "name": "grid-autosizing",
881
920
  "type": {
882
921
  "text": "boolean"
883
922
  },
884
923
  "default": "false",
885
- "fieldName": "enabledRowFlashing"
924
+ "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`.",
925
+ "fieldName": "gridAutosizingEnabled"
886
926
  },
887
927
  {
888
- "name": "enable-cell-flashing",
928
+ "name": "add-index",
929
+ "type": {
930
+ "text": "number"
931
+ },
932
+ "default": "0",
933
+ "description": "The index to add new rows to when using `applyTransaction` or `applyTransactionAsync`",
934
+ "fieldName": "addIndex"
935
+ },
936
+ {
937
+ "name": "async-add",
889
938
  "type": {
890
939
  "text": "boolean"
891
940
  },
892
941
  "default": "false",
893
- "description": "If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef",
894
- "fieldName": "enableCellFlashing"
942
+ "description": "Whether to use the `applyTransactionAsync` function for *add* transactions",
943
+ "fieldName": "asyncAdd"
895
944
  },
896
945
  {
897
- "name": "persist-column-state-key",
946
+ "name": "async-remove",
898
947
  "type": {
899
- "text": "string"
948
+ "text": "boolean"
900
949
  },
901
- "fieldName": "persistColumnStateKey"
950
+ "default": "false",
951
+ "description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
952
+ "fieldName": "asyncRemove"
902
953
  },
903
954
  {
904
- "name": "grid-autosizing",
955
+ "name": "async-update",
956
+ "type": {
957
+ "text": "boolean"
958
+ },
959
+ "default": "true",
960
+ "description": "Whether to use the `applyTransactionAsync` function for *update* transactions",
961
+ "fieldName": "asyncUpdate"
962
+ },
963
+ {
964
+ "name": "enable-cell-flashing",
905
965
  "type": {
906
966
  "text": "boolean"
907
967
  },
908
968
  "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"
969
+ "description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef",
970
+ "fieldName": "enableCellFlashing"
971
+ },
972
+ {
973
+ "name": "enable-row-flashing",
974
+ "type": {
975
+ "text": "boolean"
976
+ },
977
+ "default": "false",
978
+ "description": "If true, will enable row flashing for all rows for `add` async transactions",
979
+ "fieldName": "enableRowFlashing"
980
+ },
981
+ {
982
+ "name": "persist-column-state-key",
983
+ "type": {
984
+ "text": "string"
985
+ },
986
+ "description": "The key to use for persisting the column state in local storage.",
987
+ "fieldName": "persistColumnStateKey"
911
988
  },
912
989
  {
913
990
  "name": "columnComponentName",
@@ -4839,6 +4916,36 @@
4839
4916
  }
4840
4917
  ]
4841
4918
  },
4919
+ {
4920
+ "kind": "method",
4921
+ "name": "applyAllAgTransactions",
4922
+ "privacy": "private"
4923
+ },
4924
+ {
4925
+ "kind": "method",
4926
+ "name": "applyMappedAgTransaction",
4927
+ "privacy": "private",
4928
+ "parameters": [
4929
+ {
4930
+ "name": "agTransaction",
4931
+ "type": {
4932
+ "text": "RowDataTransaction"
4933
+ }
4934
+ },
4935
+ {
4936
+ "name": "operation",
4937
+ "type": {
4938
+ "text": "OperationType"
4939
+ }
4940
+ },
4941
+ {
4942
+ "name": "isAsync",
4943
+ "type": {
4944
+ "text": "boolean"
4945
+ }
4946
+ }
4947
+ ]
4948
+ },
4842
4949
  {
4843
4950
  "kind": "method",
4844
4951
  "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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA3NL;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAiC;IACvE,IAAI,EAAG,IAAI,CAAC;IACT,OAAO,EAAG,OAAO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H,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEA0NC;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BAAoB;IASX,SAAS,IAAI,IAAI;IAO1B,OAAO,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;IA2C9B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,sBAAsB;IAoB9B,OAAO,CAAC,wBAAwB;IAUhC;;;;;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"}
@@ -17,7 +17,10 @@ declare const GridPro_base: (new (...args: any[]) => {
17
17
  "__#1@#_cleanupTimeout": NodeJS.Timeout;
18
18
  "__#1@#_shouldForceLifecycle": boolean;
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,38 @@ 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
+ * If true, will enable row flashing for all rows for `add` async transactions
390
+ * @remarks Requires `asyncAdd` to be `true`
391
+ */
392
+ enableRowFlashing: boolean;
393
+ /**
394
+ * The key to use for persisting the column state in local storage.
395
+ */
396
+ persistColumnStateKey: string;
367
397
  gridFontFace: string;
368
398
  columnComponentName: string;
369
399
  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,YAAiC;IAChD,SAAS,EAAG,SAAS,CAAC;IACtB,OAAO,EAAG,OAAO,CAAC;IACrB,OAAO,CAAC,OAAO,CAAU;IAIlC,sBAAsB,EAAE,OAAO,CAAS;IACwB,mBAAmB,EAAE,OAAO,CACpF;IACmB,kBAAkB,EAAE,OAAO,CAAS;IAE/D;;OAEG;IAC2D,kBAAkB,EAAE,OAAO,CAAS;IAEjD,qBAAqB,EAAE,MAAM,CAAC;IAE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,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,42 @@ 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
+ * If true, will enable row flashing for all rows for `add` async transactions
86
+ * @remarks Requires `asyncAdd` to be `true`
87
+ */
88
+ this.enableRowFlashing = false;
65
89
  this.gridFontFace = defaultAgGridFontFace;
66
90
  this.columnComponentName = 'grid-pro-column';
67
91
  this.theme = AgGridTheme.alpine;
@@ -217,6 +241,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
217
241
  });
218
242
  const { columnDefs, components, onGridReady, onFirstDataRendered } = options, rest = __rest(options, ["columnDefs", "components", "onGridReady", "onFirstDataRendered"]);
219
243
  const derivedOptions = Object.assign(Object.assign(Object.assign({ defaultColDef: {
244
+ enableCellChangeFlash: this.enableCellFlashing,
220
245
  filter: true,
221
246
  resizable: true,
222
247
  sortable: true,
@@ -234,7 +259,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
234
259
  this.restoreColumnState.bind(this)();
235
260
  this.debouncedColumnAutosize.bind(this)();
236
261
  }, onFirstDataRendered: (event) => {
237
- this.enableFlashingRows.bind(this);
262
+ this.enableFlashingRows.bind(this)();
238
263
  this.restoreCachedFilterConfig.bind(this)();
239
264
  if (onFirstDataRendered) {
240
265
  onFirstDataRendered(event);
@@ -260,7 +285,11 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
260
285
  });
261
286
  }
262
287
  enableFlashingRows() {
263
- if (this.enabledRowFlashing) {
288
+ if (this.enableRowFlashing) {
289
+ if (!this.asyncAdd) {
290
+ logger.warn('Row Flashing (enableRowFlashing) only works when Grid has async Add Transactions (asyncAdd) enabled');
291
+ return;
292
+ }
264
293
  this.gridApi.addEventListener(Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED, (e) => {
265
294
  e.results.forEach((result) => {
266
295
  if (result.add.length) {
@@ -378,17 +407,29 @@ __decorate([
378
407
  attr({ attribute: 'only-template-col-defs', mode: 'boolean' })
379
408
  ], GridPro.prototype, "onlyTemplateColDefs", void 0);
380
409
  __decorate([
381
- attr({ mode: 'boolean' })
382
- ], GridPro.prototype, "enabledRowFlashing", void 0);
410
+ attr({ mode: 'boolean', attribute: 'grid-autosizing' })
411
+ ], GridPro.prototype, "gridAutosizingEnabled", void 0);
412
+ __decorate([
413
+ attr({ attribute: 'add-index' })
414
+ ], GridPro.prototype, "addIndex", void 0);
415
+ __decorate([
416
+ attr({ mode: 'boolean', attribute: 'async-add' })
417
+ ], GridPro.prototype, "asyncAdd", void 0);
418
+ __decorate([
419
+ attr({ mode: 'boolean', attribute: 'async-remove' })
420
+ ], GridPro.prototype, "asyncRemove", void 0);
421
+ __decorate([
422
+ attr({ mode: 'boolean', attribute: 'async-update' })
423
+ ], GridPro.prototype, "asyncUpdate", void 0);
383
424
  __decorate([
384
425
  attr({ mode: 'boolean', attribute: 'enable-cell-flashing' })
385
426
  ], GridPro.prototype, "enableCellFlashing", void 0);
427
+ __decorate([
428
+ attr({ mode: 'boolean', attribute: 'enable-row-flashing' })
429
+ ], GridPro.prototype, "enableRowFlashing", void 0);
386
430
  __decorate([
387
431
  attr({ attribute: 'persist-column-state-key' })
388
432
  ], GridPro.prototype, "persistColumnStateKey", void 0);
389
- __decorate([
390
- attr({ mode: 'boolean', attribute: 'grid-autosizing' })
391
- ], GridPro.prototype, "gridAutosizingEnabled", void 0);
392
433
  __decorate([
393
434
  observable
394
435
  ], 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",
@@ -5339,12 +5459,12 @@
5339
5459
  },
5340
5460
  {
5341
5461
  "kind": "Property",
5342
- "canonicalReference": "@genesislcap/grid-pro!GridPro#enabledRowFlashing:member",
5343
- "docComment": "",
5462
+ "canonicalReference": "@genesislcap/grid-pro!GridPro#enableRowFlashing:member",
5463
+ "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",
5344
5464
  "excerptTokens": [
5345
5465
  {
5346
5466
  "kind": "Content",
5347
- "text": "enabledRowFlashing: "
5467
+ "text": "enableRowFlashing: "
5348
5468
  },
5349
5469
  {
5350
5470
  "kind": "Content",
@@ -5358,7 +5478,7 @@
5358
5478
  "isReadonly": false,
5359
5479
  "isOptional": false,
5360
5480
  "releaseTag": "Public",
5361
- "name": "enabledRowFlashing",
5481
+ "name": "enableRowFlashing",
5362
5482
  "propertyTypeTokenRange": {
5363
5483
  "startIndex": 1,
5364
5484
  "endIndex": 2
@@ -5843,7 +5963,7 @@
5843
5963
  {
5844
5964
  "kind": "Property",
5845
5965
  "canonicalReference": "@genesislcap/grid-pro!GridPro#persistColumnStateKey:member",
5846
- "docComment": "",
5966
+ "docComment": "/**\n * The key to use for persisting the column state in local storage.\n */\n",
5847
5967
  "excerptTokens": [
5848
5968
  {
5849
5969
  "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,38 @@ 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
+ * If true, will enable row flashing for all rows for `add` async transactions
825
+ * @remarks Requires `asyncAdd` to be `true`
826
+ */
827
+ enableRowFlashing: boolean;
828
+ /**
829
+ * The key to use for persisting the column state in local storage.
830
+ */
831
+ persistColumnStateKey: string;
805
832
  gridFontFace: string;
806
833
  columnComponentName: string;
807
834
  eventsAndCallbacks: any;
@@ -871,7 +898,10 @@ declare const GridPro_base: (new (...args: any[]) => {
871
898
  "__#1@#_cleanupTimeout": NodeJS.Timeout;
872
899
  "__#1@#_shouldForceLifecycle": boolean;
873
900
  cloneNode(deep?: boolean): Node;
874
- deepClone(): Node;
901
+ deepClone(): Node; /**
902
+ * Whether to use the `applyTransactionAsync` function for *remove* transactions
903
+ * @remarks Defaults to false
904
+ */
875
905
  readonly shouldRunDisconnect: boolean;
876
906
  readonly shouldRunConnect: boolean;
877
907
  "__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
@@ -1337,6 +1367,8 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
1337
1367
  private handleStreamResult;
1338
1368
  private applyRequestServerData;
1339
1369
  private applyDataserverData;
1370
+ private applyAllAgTransactions;
1371
+ private applyMappedAgTransaction;
1340
1372
  /**
1341
1373
  * Maps the transaction data to the row data mapper function, if it exists.
1342
1374
  * @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
+
@@ -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,20 @@ 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 |
39
- | [enabledRowFlashing](./grid-pro.gridpro.enabledrowflashing.md) | | boolean | |
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 |
43
+ | [enableRowFlashing](./grid-pro.gridpro.enablerowflashing.md) | | boolean | If true, will enable row flashing for all rows for <code>add</code> async transactions |
40
44
  | [eventsAndCallbacks](./grid-pro.gridpro.eventsandcallbacks.md) | | any | |
41
45
  | [gridApi](./grid-pro.gridpro.gridapi.md) | | GridApi | |
42
46
  | [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 +53,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
49
53
  | [initialised](./grid-pro.gridpro.initialised.md) | <code>protected</code> | boolean | |
50
54
  | [observedAttributes](./grid-pro.gridpro.observedattributes.md) | <code>readonly</code> | string\[\] | |
51
55
  | [onlyTemplateColDefs](./grid-pro.gridpro.onlytemplatecoldefs.md) | | boolean | |
52
- | [persistColumnStateKey](./grid-pro.gridpro.persistcolumnstatekey.md) | | string | |
56
+ | [persistColumnStateKey](./grid-pro.gridpro.persistcolumnstatekey.md) | | string | The key to use for persisting the column state in local storage. |
53
57
  | [rowHeight](./grid-pro.gridpro.rowheight.md) | | number | |
54
58
  | [theme](./grid-pro.gridpro.theme.md) | | string | |
55
59
 
@@ -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,7 @@ export class GridPro extends GridPro_base {
557
561
  // (undocumented)
558
562
  disconnectedCallback(): void;
559
563
  enableCellFlashing: boolean;
560
- // (undocumented)
561
- enabledRowFlashing: boolean;
564
+ enableRowFlashing: boolean;
562
565
  // (undocumented)
563
566
  eventsAndCallbacks: any;
564
567
  getSavedColumnState(): ColumnState[];
@@ -588,7 +591,6 @@ export class GridPro extends GridPro_base {
588
591
  get observedAttributes(): string[];
589
592
  // (undocumented)
590
593
  onlyTemplateColDefs: boolean;
591
- // (undocumented)
592
594
  persistColumnStateKey: string;
593
595
  // (undocumented)
594
596
  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.78.2",
4
+ "version": "14.78.4-alpha-b87d7d2.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.78.2",
32
- "@genesislcap/genx": "14.78.2",
31
+ "@genesislcap/foundation-testing": "14.78.4-alpha-b87d7d2.0",
32
+ "@genesislcap/genx": "14.78.4-alpha-b87d7d2.0",
33
33
  "rimraf": "^3.0.2"
34
34
  },
35
35
  "dependencies": {
36
- "@genesislcap/foundation-comms": "14.78.2",
37
- "@genesislcap/foundation-ui": "14.78.2",
38
- "@genesislcap/foundation-utils": "14.78.2",
36
+ "@genesislcap/foundation-comms": "14.78.4-alpha-b87d7d2.0",
37
+ "@genesislcap/foundation-ui": "14.78.4-alpha-b87d7d2.0",
38
+ "@genesislcap/foundation-utils": "14.78.4-alpha-b87d7d2.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": "4236befb5fba6e6f3c2b06be9cae588d46b7204d"
61
+ "gitHead": "f1db3abee2153a56a4c39a93639c28f5aab008a4"
62
62
  }
@@ -1,11 +0,0 @@
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; [enabledRowFlashing](./grid-pro.gridpro.enabledrowflashing.md)
4
-
5
- ## GridPro.enabledRowFlashing property
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- enabledRowFlashing: boolean;
11
- ```