@genesislcap/grid-pro 14.78.4-alpha-b87d7d2.0 → 14.78.4-alpha-6421adf.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.
- package/dist/custom-elements.json +19 -126
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +0 -2
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +10 -40
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +8 -13
- package/dist/esm/grid-pro.js +14 -55
- package/dist/grid-pro.api.json +6 -126
- package/dist/grid-pro.d.ts +10 -42
- package/docs/api/grid-pro.gridpro.enablecellflashing.md +1 -6
- package/docs/api/grid-pro.gridpro.enabledrowflashing.md +11 -0
- package/docs/api/grid-pro.gridpro.md +3 -7
- package/docs/api/grid-pro.gridpro.persistcolumnstatekey.md +0 -2
- package/docs/api-report.md +3 -5
- package/package.json +7 -7
- package/docs/api/grid-pro.gridpro.addindex.md +0 -13
- package/docs/api/grid-pro.gridpro.asyncadd.md +0 -18
- package/docs/api/grid-pro.gridpro.asyncremove.md +0 -18
- package/docs/api/grid-pro.gridpro.asyncupdate.md +0 -18
- package/docs/api/grid-pro.gridpro.enablerowflashing.md +0 -18
|
@@ -328,74 +328,36 @@
|
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
330
|
"kind": "field",
|
|
331
|
-
"name": "
|
|
332
|
-
"type": {
|
|
333
|
-
"text": "boolean"
|
|
334
|
-
},
|
|
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",
|
|
331
|
+
"name": "enabledRowFlashing",
|
|
350
332
|
"type": {
|
|
351
333
|
"text": "boolean"
|
|
352
334
|
},
|
|
353
|
-
"default": "false"
|
|
354
|
-
"description": "Whether to use the `applyTransactionAsync` function for *add* transactions"
|
|
335
|
+
"default": "false"
|
|
355
336
|
},
|
|
356
337
|
{
|
|
357
338
|
"kind": "field",
|
|
358
|
-
"name": "
|
|
339
|
+
"name": "enableCellFlashing",
|
|
359
340
|
"type": {
|
|
360
341
|
"text": "boolean"
|
|
361
342
|
},
|
|
362
343
|
"default": "false",
|
|
363
|
-
"description": "
|
|
344
|
+
"description": "If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef"
|
|
364
345
|
},
|
|
365
346
|
{
|
|
366
347
|
"kind": "field",
|
|
367
|
-
"name": "
|
|
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",
|
|
348
|
+
"name": "persistColumnStateKey",
|
|
377
349
|
"type": {
|
|
378
|
-
"text": "
|
|
379
|
-
}
|
|
380
|
-
"default": "false",
|
|
381
|
-
"description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef"
|
|
350
|
+
"text": "string"
|
|
351
|
+
}
|
|
382
352
|
},
|
|
383
353
|
{
|
|
384
354
|
"kind": "field",
|
|
385
|
-
"name": "
|
|
355
|
+
"name": "gridAutosizingEnabled",
|
|
386
356
|
"type": {
|
|
387
357
|
"text": "boolean"
|
|
388
358
|
},
|
|
389
359
|
"default": "false",
|
|
390
|
-
"description": "
|
|
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."
|
|
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
361
|
},
|
|
400
362
|
{
|
|
401
363
|
"kind": "field",
|
|
@@ -916,49 +878,11 @@
|
|
|
916
878
|
"fieldName": "onlyTemplateColDefs"
|
|
917
879
|
},
|
|
918
880
|
{
|
|
919
|
-
"name": "grid-autosizing",
|
|
920
|
-
"type": {
|
|
921
|
-
"text": "boolean"
|
|
922
|
-
},
|
|
923
|
-
"default": "false",
|
|
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"
|
|
926
|
-
},
|
|
927
|
-
{
|
|
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",
|
|
938
881
|
"type": {
|
|
939
882
|
"text": "boolean"
|
|
940
883
|
},
|
|
941
884
|
"default": "false",
|
|
942
|
-
"
|
|
943
|
-
"fieldName": "asyncAdd"
|
|
944
|
-
},
|
|
945
|
-
{
|
|
946
|
-
"name": "async-remove",
|
|
947
|
-
"type": {
|
|
948
|
-
"text": "boolean"
|
|
949
|
-
},
|
|
950
|
-
"default": "false",
|
|
951
|
-
"description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
|
|
952
|
-
"fieldName": "asyncRemove"
|
|
953
|
-
},
|
|
954
|
-
{
|
|
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"
|
|
885
|
+
"fieldName": "enabledRowFlashing"
|
|
962
886
|
},
|
|
963
887
|
{
|
|
964
888
|
"name": "enable-cell-flashing",
|
|
@@ -966,25 +890,24 @@
|
|
|
966
890
|
"text": "boolean"
|
|
967
891
|
},
|
|
968
892
|
"default": "false",
|
|
969
|
-
"description": "If
|
|
893
|
+
"description": "If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef",
|
|
970
894
|
"fieldName": "enableCellFlashing"
|
|
971
895
|
},
|
|
972
896
|
{
|
|
973
|
-
"name": "
|
|
897
|
+
"name": "persist-column-state-key",
|
|
974
898
|
"type": {
|
|
975
|
-
"text": "
|
|
899
|
+
"text": "string"
|
|
976
900
|
},
|
|
977
|
-
"
|
|
978
|
-
"description": "If true, will enable row flashing for all rows for `add` async transactions",
|
|
979
|
-
"fieldName": "enableRowFlashing"
|
|
901
|
+
"fieldName": "persistColumnStateKey"
|
|
980
902
|
},
|
|
981
903
|
{
|
|
982
|
-
"name": "
|
|
904
|
+
"name": "grid-autosizing",
|
|
983
905
|
"type": {
|
|
984
|
-
"text": "
|
|
906
|
+
"text": "boolean"
|
|
985
907
|
},
|
|
986
|
-
"
|
|
987
|
-
"
|
|
908
|
+
"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"
|
|
988
911
|
},
|
|
989
912
|
{
|
|
990
913
|
"name": "columnComponentName",
|
|
@@ -4916,36 +4839,6 @@
|
|
|
4916
4839
|
}
|
|
4917
4840
|
]
|
|
4918
4841
|
},
|
|
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
|
-
},
|
|
4949
4842
|
{
|
|
4950
4843
|
"kind": "method",
|
|
4951
4844
|
"name": "mapTransaction",
|
|
@@ -459,8 +459,6 @@ 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;
|
|
464
462
|
/**
|
|
465
463
|
* Maps the transaction data to the row data mapper function, if it exists.
|
|
466
464
|
* @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,yBA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,UAAS;IAE3C;;;;;OAKG;IAC4B,SAAS,MAAC;IAEwB,qBAAqB,UAAS;IAE/F;;OAEG;IACS,aAAa,EAAE,QAAQ,CAAC;IAEpC,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,SAAS,CAAe;IAChC,OAAO,CAAC,aAAa,CAAe;IAEpC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,6BAA6B,CAAQ;IAC7C,OAAO,CAAC,mBAAmB,CAAS;IAEpC,OAAO,CAAC,IAAI,CAA+B;IAC3C,OAAO,CAAC,aAAa,CAAqB;IAE1C,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,mBAAmB,CAAkC;IAC7D,OAAO,CAAC,MAAM,CAAwE;IAEtF,iBAAiB;IAuBjB,oBAAoB;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;
|
|
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,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M;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -17,10 +17,7 @@ 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;
|
|
21
|
-
* Whether to use the `applyTransactionAsync` function for *remove* transactions
|
|
22
|
-
* @remarks Defaults to false
|
|
23
|
-
*/
|
|
20
|
+
deepClone(): Node;
|
|
24
21
|
readonly shouldRunDisconnect: boolean;
|
|
25
22
|
readonly shouldRunConnect: boolean;
|
|
26
23
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
@@ -348,13 +345,14 @@ export declare class GridPro extends GridPro_base {
|
|
|
348
345
|
columnApi: ColumnApi;
|
|
349
346
|
gridApi: GridApi;
|
|
350
347
|
private session;
|
|
351
|
-
/**
|
|
352
|
-
* Timeout function used to debounce resize calls
|
|
353
|
-
* @internal
|
|
354
|
-
*/
|
|
355
|
-
private debounced;
|
|
356
348
|
autoCellRendererByType: boolean;
|
|
357
349
|
onlyTemplateColDefs: boolean;
|
|
350
|
+
enabledRowFlashing: boolean;
|
|
351
|
+
/**
|
|
352
|
+
* If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef
|
|
353
|
+
*/
|
|
354
|
+
enableCellFlashing: boolean;
|
|
355
|
+
persistColumnStateKey: string;
|
|
358
356
|
/**
|
|
359
357
|
* Boolean attribute to control whether the grid autosizes the columns upon interaction.
|
|
360
358
|
* This will disable the column widths from being manually set, and doesn't save the widths
|
|
@@ -362,38 +360,10 @@ export declare class GridPro extends GridPro_base {
|
|
|
362
360
|
*/
|
|
363
361
|
gridAutosizingEnabled: boolean;
|
|
364
362
|
/**
|
|
365
|
-
*
|
|
366
|
-
|
|
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.
|
|
363
|
+
* Timeout function used to debounce resize calls
|
|
364
|
+
* @internal
|
|
395
365
|
*/
|
|
396
|
-
|
|
366
|
+
private debounced;
|
|
397
367
|
gridFontFace: string;
|
|
398
368
|
columnComponentName: string;
|
|
399
369
|
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,EAC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OAAO,CAAC,yBAAyB;IAOjC;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,wBAAwB,IAAI,wBAAwB,CAEvD;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EAkFnC;IAED,OAAO,CAAC,kBAAkB;IAiB1B,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,kBAAkB,UAAQ;IA8CzE,IAAI,kBAAkB,aAerB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;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,11 +348,13 @@ 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: [] };
|
|
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: [] };
|
|
354
356
|
this.handleStreamUpdates(rowsToUpdate);
|
|
355
|
-
this.
|
|
357
|
+
this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(this.agTransaction, [OperationType.Update]));
|
|
356
358
|
}
|
|
357
359
|
applyDataserverData(dataServerResult) {
|
|
358
360
|
var _a;
|
|
@@ -364,20 +366,13 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
364
366
|
this.setRowData(rowData);
|
|
365
367
|
return;
|
|
366
368
|
}
|
|
367
|
-
this.agTransaction = { add: [], remove: []
|
|
369
|
+
this.agTransaction = { add: [], remove: [] };
|
|
368
370
|
this.handleStreamInserts(dataServerResult.inserts);
|
|
369
371
|
this.handleStreamDeletes(dataServerResult.deletes);
|
|
372
|
+
this.agGrid.gridApi.applyTransaction(this.mapTransaction(this.agTransaction, [OperationType.Add, OperationType.Remove]));
|
|
373
|
+
this.agTransaction = { update: [] };
|
|
370
374
|
this.handleStreamUpdates(dataServerResult.updates);
|
|
371
|
-
this.
|
|
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]));
|
|
375
|
+
this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(this.agTransaction, [OperationType.Update]));
|
|
381
376
|
}
|
|
382
377
|
/**
|
|
383
378
|
* Maps the transaction data to the row data mapper function, if it exists.
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -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 {
|
|
19
|
+
import { mergeAndDedupColDefWithColumnState } from './utils';
|
|
20
20
|
GridProGenesisDatasource;
|
|
21
21
|
GridProGenesisDatasourceNext;
|
|
22
22
|
GridProCell;
|
|
@@ -50,42 +50,18 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
50
50
|
// Genesis-specific attrs
|
|
51
51
|
this.autoCellRendererByType = false;
|
|
52
52
|
this.onlyTemplateColDefs = false;
|
|
53
|
-
|
|
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;
|
|
54
58
|
/**
|
|
55
59
|
* Boolean attribute to control whether the grid autosizes the columns upon interaction.
|
|
56
60
|
* This will disable the column widths from being manually set, and doesn't save the widths
|
|
57
61
|
* in local storage if you are using `persist-column-state-key`.
|
|
58
62
|
*/
|
|
59
63
|
this.gridAutosizingEnabled = false;
|
|
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;
|
|
64
|
+
// AG-specific attrs
|
|
89
65
|
this.gridFontFace = defaultAgGridFontFace;
|
|
90
66
|
this.columnComponentName = 'grid-pro-column';
|
|
91
67
|
this.theme = AgGridTheme.alpine;
|
|
@@ -241,7 +217,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
241
217
|
});
|
|
242
218
|
const { columnDefs, components, onGridReady, onFirstDataRendered } = options, rest = __rest(options, ["columnDefs", "components", "onGridReady", "onFirstDataRendered"]);
|
|
243
219
|
const derivedOptions = Object.assign(Object.assign(Object.assign({ defaultColDef: {
|
|
244
|
-
enableCellChangeFlash: this.enableCellFlashing,
|
|
245
220
|
filter: true,
|
|
246
221
|
resizable: true,
|
|
247
222
|
sortable: true,
|
|
@@ -259,7 +234,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
259
234
|
this.restoreColumnState.bind(this)();
|
|
260
235
|
this.debouncedColumnAutosize.bind(this)();
|
|
261
236
|
}, onFirstDataRendered: (event) => {
|
|
262
|
-
this.enableFlashingRows.bind(this)
|
|
237
|
+
this.enableFlashingRows.bind(this);
|
|
263
238
|
this.restoreCachedFilterConfig.bind(this)();
|
|
264
239
|
if (onFirstDataRendered) {
|
|
265
240
|
onFirstDataRendered(event);
|
|
@@ -285,11 +260,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
285
260
|
});
|
|
286
261
|
}
|
|
287
262
|
enableFlashingRows() {
|
|
288
|
-
if (this.
|
|
289
|
-
if (!this.asyncAdd) {
|
|
290
|
-
logger.warn('Row Flashing (enableRowFlashing) only works when Grid has async Add Transactions (asyncAdd) enabled');
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
263
|
+
if (this.enabledRowFlashing) {
|
|
293
264
|
this.gridApi.addEventListener(Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED, (e) => {
|
|
294
265
|
e.results.forEach((result) => {
|
|
295
266
|
if (result.add.length) {
|
|
@@ -407,29 +378,17 @@ __decorate([
|
|
|
407
378
|
attr({ attribute: 'only-template-col-defs', mode: 'boolean' })
|
|
408
379
|
], GridPro.prototype, "onlyTemplateColDefs", void 0);
|
|
409
380
|
__decorate([
|
|
410
|
-
attr({ mode: 'boolean'
|
|
411
|
-
], GridPro.prototype, "
|
|
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);
|
|
381
|
+
attr({ mode: 'boolean' })
|
|
382
|
+
], GridPro.prototype, "enabledRowFlashing", void 0);
|
|
424
383
|
__decorate([
|
|
425
384
|
attr({ mode: 'boolean', attribute: 'enable-cell-flashing' })
|
|
426
385
|
], GridPro.prototype, "enableCellFlashing", void 0);
|
|
427
|
-
__decorate([
|
|
428
|
-
attr({ mode: 'boolean', attribute: 'enable-row-flashing' })
|
|
429
|
-
], GridPro.prototype, "enableRowFlashing", void 0);
|
|
430
386
|
__decorate([
|
|
431
387
|
attr({ attribute: 'persist-column-state-key' })
|
|
432
388
|
], GridPro.prototype, "persistColumnStateKey", void 0);
|
|
389
|
+
__decorate([
|
|
390
|
+
attr({ mode: 'boolean', attribute: 'grid-autosizing' })
|
|
391
|
+
], GridPro.prototype, "gridAutosizingEnabled", void 0);
|
|
433
392
|
__decorate([
|
|
434
393
|
observable
|
|
435
394
|
], GridPro.prototype, "gridFontFace", void 0);
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -4788,36 +4788,6 @@
|
|
|
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
|
-
},
|
|
4821
4791
|
{
|
|
4822
4792
|
"kind": "Method",
|
|
4823
4793
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#agAttributeChangedCallback:member(1)",
|
|
@@ -5104,96 +5074,6 @@
|
|
|
5104
5074
|
"isAbstract": false,
|
|
5105
5075
|
"name": "applyTemplateDefinitions"
|
|
5106
5076
|
},
|
|
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
|
-
},
|
|
5197
5077
|
{
|
|
5198
5078
|
"kind": "Property",
|
|
5199
5079
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#autoCellRendererByType:member",
|
|
@@ -5430,7 +5310,7 @@
|
|
|
5430
5310
|
{
|
|
5431
5311
|
"kind": "Property",
|
|
5432
5312
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#enableCellFlashing:member",
|
|
5433
|
-
"docComment": "/**\n * If
|
|
5313
|
+
"docComment": "/**\n * If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef\n */\n",
|
|
5434
5314
|
"excerptTokens": [
|
|
5435
5315
|
{
|
|
5436
5316
|
"kind": "Content",
|
|
@@ -5459,12 +5339,12 @@
|
|
|
5459
5339
|
},
|
|
5460
5340
|
{
|
|
5461
5341
|
"kind": "Property",
|
|
5462
|
-
"canonicalReference": "@genesislcap/grid-pro!GridPro#
|
|
5463
|
-
"docComment": "
|
|
5342
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#enabledRowFlashing:member",
|
|
5343
|
+
"docComment": "",
|
|
5464
5344
|
"excerptTokens": [
|
|
5465
5345
|
{
|
|
5466
5346
|
"kind": "Content",
|
|
5467
|
-
"text": "
|
|
5347
|
+
"text": "enabledRowFlashing: "
|
|
5468
5348
|
},
|
|
5469
5349
|
{
|
|
5470
5350
|
"kind": "Content",
|
|
@@ -5478,7 +5358,7 @@
|
|
|
5478
5358
|
"isReadonly": false,
|
|
5479
5359
|
"isOptional": false,
|
|
5480
5360
|
"releaseTag": "Public",
|
|
5481
|
-
"name": "
|
|
5361
|
+
"name": "enabledRowFlashing",
|
|
5482
5362
|
"propertyTypeTokenRange": {
|
|
5483
5363
|
"startIndex": 1,
|
|
5484
5364
|
"endIndex": 2
|
|
@@ -5963,7 +5843,7 @@
|
|
|
5963
5843
|
{
|
|
5964
5844
|
"kind": "Property",
|
|
5965
5845
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#persistColumnStateKey:member",
|
|
5966
|
-
"docComment": "
|
|
5846
|
+
"docComment": "",
|
|
5967
5847
|
"excerptTokens": [
|
|
5968
5848
|
{
|
|
5969
5849
|
"kind": "Content",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -783,13 +783,14 @@ export declare class GridPro extends GridPro_base {
|
|
|
783
783
|
columnApi: ColumnApi;
|
|
784
784
|
gridApi: GridApi;
|
|
785
785
|
private session;
|
|
786
|
-
/**
|
|
787
|
-
* Timeout function used to debounce resize calls
|
|
788
|
-
* @internal
|
|
789
|
-
*/
|
|
790
|
-
private debounced;
|
|
791
786
|
autoCellRendererByType: boolean;
|
|
792
787
|
onlyTemplateColDefs: boolean;
|
|
788
|
+
enabledRowFlashing: boolean;
|
|
789
|
+
/**
|
|
790
|
+
* If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef
|
|
791
|
+
*/
|
|
792
|
+
enableCellFlashing: boolean;
|
|
793
|
+
persistColumnStateKey: string;
|
|
793
794
|
/**
|
|
794
795
|
* Boolean attribute to control whether the grid autosizes the columns upon interaction.
|
|
795
796
|
* This will disable the column widths from being manually set, and doesn't save the widths
|
|
@@ -797,38 +798,10 @@ export declare class GridPro extends GridPro_base {
|
|
|
797
798
|
*/
|
|
798
799
|
gridAutosizingEnabled: boolean;
|
|
799
800
|
/**
|
|
800
|
-
*
|
|
801
|
-
|
|
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.
|
|
801
|
+
* Timeout function used to debounce resize calls
|
|
802
|
+
* @internal
|
|
830
803
|
*/
|
|
831
|
-
|
|
804
|
+
private debounced;
|
|
832
805
|
gridFontFace: string;
|
|
833
806
|
columnComponentName: string;
|
|
834
807
|
eventsAndCallbacks: any;
|
|
@@ -898,10 +871,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
898
871
|
"__#1@#_cleanupTimeout": NodeJS.Timeout;
|
|
899
872
|
"__#1@#_shouldForceLifecycle": boolean;
|
|
900
873
|
cloneNode(deep?: boolean): Node;
|
|
901
|
-
deepClone(): Node;
|
|
902
|
-
* Whether to use the `applyTransactionAsync` function for *remove* transactions
|
|
903
|
-
* @remarks Defaults to false
|
|
904
|
-
*/
|
|
874
|
+
deepClone(): Node;
|
|
905
875
|
readonly shouldRunDisconnect: boolean;
|
|
906
876
|
readonly shouldRunConnect: boolean;
|
|
907
877
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
@@ -1367,8 +1337,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1367
1337
|
private handleStreamResult;
|
|
1368
1338
|
private applyRequestServerData;
|
|
1369
1339
|
private applyDataserverData;
|
|
1370
|
-
private applyAllAgTransactions;
|
|
1371
|
-
private applyMappedAgTransaction;
|
|
1372
1340
|
/**
|
|
1373
1341
|
* Maps the transaction data to the row data mapper function, if it exists.
|
|
1374
1342
|
* @param transaction - The transaction data to be mapped.
|
|
@@ -4,15 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
## GridPro.enableCellFlashing property
|
|
6
6
|
|
|
7
|
-
If
|
|
7
|
+
If true, will enable cell flashing for all cell renderers, 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,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [enabledRowFlashing](./grid-pro.gridpro.enabledrowflashing.md)
|
|
4
|
+
|
|
5
|
+
## GridPro.enabledRowFlashing property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
enabledRowFlashing: boolean;
|
|
11
|
+
```
|
|
@@ -27,20 +27,16 @@ 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> |
|
|
31
30
|
| [agAttributes](./grid-pro.gridpro.agattributes.md) | <code>protected</code> | Record<string, string> | |
|
|
32
31
|
| [agGrid](./grid-pro.gridpro.aggrid.md) | | Grid | |
|
|
33
32
|
| [agGridOptions](./grid-pro.gridpro.aggridoptions.md) | <code>protected</code> | GridOptions | |
|
|
34
33
|
| [agPropertiesMap](./grid-pro.gridpro.agpropertiesmap.md) | <code>protected</code> | Record<string, string> | |
|
|
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 |
|
|
38
34
|
| [autoCellRendererByType](./grid-pro.gridpro.autocellrendererbytype.md) | | boolean | |
|
|
39
35
|
| [classNames](./grid-pro.gridpro.classnames.md) | | string | |
|
|
40
36
|
| [columnApi](./grid-pro.gridpro.columnapi.md) | | ColumnApi | |
|
|
41
37
|
| [columnComponentName](./grid-pro.gridpro.columncomponentname.md) | | string | |
|
|
42
|
-
| [enableCellFlashing](./grid-pro.gridpro.enablecellflashing.md) | | boolean | If
|
|
43
|
-
| [
|
|
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 | |
|
|
44
40
|
| [eventsAndCallbacks](./grid-pro.gridpro.eventsandcallbacks.md) | | any | |
|
|
45
41
|
| [gridApi](./grid-pro.gridpro.gridapi.md) | | GridApi | |
|
|
46
42
|
| [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>. |
|
|
@@ -53,7 +49,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
53
49
|
| [initialised](./grid-pro.gridpro.initialised.md) | <code>protected</code> | boolean | |
|
|
54
50
|
| [observedAttributes](./grid-pro.gridpro.observedattributes.md) | <code>readonly</code> | string\[\] | |
|
|
55
51
|
| [onlyTemplateColDefs](./grid-pro.gridpro.onlytemplatecoldefs.md) | | boolean | |
|
|
56
|
-
| [persistColumnStateKey](./grid-pro.gridpro.persistcolumnstatekey.md) | | string |
|
|
52
|
+
| [persistColumnStateKey](./grid-pro.gridpro.persistcolumnstatekey.md) | | string | |
|
|
57
53
|
| [rowHeight](./grid-pro.gridpro.rowheight.md) | | number | |
|
|
58
54
|
| [theme](./grid-pro.gridpro.theme.md) | | string | |
|
|
59
55
|
|
package/docs/api-report.md
CHANGED
|
@@ -530,7 +530,6 @@ export type GridComponents = {
|
|
|
530
530
|
// @public
|
|
531
531
|
export class GridPro extends GridPro_base {
|
|
532
532
|
constructor();
|
|
533
|
-
addIndex: number;
|
|
534
533
|
// (undocumented)
|
|
535
534
|
agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
|
|
536
535
|
// (undocumented)
|
|
@@ -543,9 +542,6 @@ export class GridPro extends GridPro_base {
|
|
|
543
542
|
protected agPropertiesMap: Record<string, string>;
|
|
544
543
|
// (undocumented)
|
|
545
544
|
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefs?: boolean): ColDef<any>[];
|
|
546
|
-
asyncAdd: boolean;
|
|
547
|
-
asyncRemove: boolean;
|
|
548
|
-
asyncUpdate: boolean;
|
|
549
545
|
// (undocumented)
|
|
550
546
|
autoCellRendererByType: boolean;
|
|
551
547
|
// (undocumented)
|
|
@@ -561,7 +557,8 @@ export class GridPro extends GridPro_base {
|
|
|
561
557
|
// (undocumented)
|
|
562
558
|
disconnectedCallback(): void;
|
|
563
559
|
enableCellFlashing: boolean;
|
|
564
|
-
|
|
560
|
+
// (undocumented)
|
|
561
|
+
enabledRowFlashing: boolean;
|
|
565
562
|
// (undocumented)
|
|
566
563
|
eventsAndCallbacks: any;
|
|
567
564
|
getSavedColumnState(): ColumnState[];
|
|
@@ -591,6 +588,7 @@ export class GridPro extends GridPro_base {
|
|
|
591
588
|
get observedAttributes(): string[];
|
|
592
589
|
// (undocumented)
|
|
593
590
|
onlyTemplateColDefs: boolean;
|
|
591
|
+
// (undocumented)
|
|
594
592
|
persistColumnStateKey: string;
|
|
595
593
|
// (undocumented)
|
|
596
594
|
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.4-alpha-
|
|
4
|
+
"version": "14.78.4-alpha-6421adf.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.4-alpha-
|
|
32
|
-
"@genesislcap/genx": "14.78.4-alpha-
|
|
31
|
+
"@genesislcap/foundation-testing": "14.78.4-alpha-6421adf.0",
|
|
32
|
+
"@genesislcap/genx": "14.78.4-alpha-6421adf.0",
|
|
33
33
|
"rimraf": "^3.0.2"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@genesislcap/foundation-comms": "14.78.4-alpha-
|
|
37
|
-
"@genesislcap/foundation-ui": "14.78.4-alpha-
|
|
38
|
-
"@genesislcap/foundation-utils": "14.78.4-alpha-
|
|
36
|
+
"@genesislcap/foundation-comms": "14.78.4-alpha-6421adf.0",
|
|
37
|
+
"@genesislcap/foundation-ui": "14.78.4-alpha-6421adf.0",
|
|
38
|
+
"@genesislcap/foundation-utils": "14.78.4-alpha-6421adf.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": "
|
|
61
|
+
"gitHead": "c5c240abe00d15484c99df3b9b7c77a03e3be7d9"
|
|
62
62
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [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
|
-
```
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [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
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [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
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [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
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [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
|
-
|