@genesislcap/grid-pro 14.79.0 → 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.
- package/dist/custom-elements.json +686 -561
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +2 -0
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +44 -10
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +13 -8
- package/dist/esm/grid-pro.js +62 -14
- package/dist/grid-pro.api.json +153 -3
- package/dist/grid-pro.d.ts +46 -10
- package/docs/api/grid-pro.gridpro.addindex.md +13 -0
- package/docs/api/grid-pro.gridpro.asyncadd.md +18 -0
- package/docs/api/grid-pro.gridpro.asyncremove.md +18 -0
- package/docs/api/grid-pro.gridpro.asyncupdate.md +18 -0
- package/docs/api/grid-pro.gridpro.enablecellflashing.md +6 -1
- package/docs/api/grid-pro.gridpro.enabledrowflashing.md +5 -0
- package/docs/api/grid-pro.gridpro.enablerowflashing.md +18 -0
- package/docs/api/grid-pro.gridpro.md +7 -2
- package/docs/api/grid-pro.gridpro.persistcolumnstatekey.md +2 -0
- package/docs/api-report.md +6 -2
- package/package.json +7 -7
|
@@ -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-genes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AAC;IAC3D,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAI3B,OAAO,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,OAA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B;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"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
352
|
+
* Timeout function used to debounce resize calls
|
|
353
|
+
* @internal
|
|
353
354
|
*/
|
|
354
|
-
|
|
355
|
-
|
|
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
|
-
*
|
|
364
|
-
* @internal
|
|
365
|
+
* The index to add new rows to when using `applyTransaction` or `applyTransactionAsync`
|
|
365
366
|
*/
|
|
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
|
+
* @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"],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AC,oBAAoB,CAAS;IAErC,OAAO,CAAC,YAAY,CAAiD;;IAarE,iBAAiB,IAAI,IAAI;IAyBzB,oBAAoB,IAAI,IAAI;IAS5B,wBAAwB,CAAC,qBAAqB,EAAE,cAAc,GAAG,cAAc;IAc/E,uBAAuB,IAAI,OAAO;IAOlC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;;OAGG;IACH,OAAO,CAAC,4BAA4B;IAIpC,OAAO,CAAC,eAAe;IAkBvB;;;;;OAKG;IACH,mBAAmB,IAAI,WAAW,EAAE;IAapC,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,yBAAyB;IAOjC;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,wBAAwB,IAAI,wBAAwB,CAEvD;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EAmFnC;IAED,OAAO,CAAC,kBAAkB;IAwB1B,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,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.
|
|
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.
|
|
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.
|
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 { 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
|
-
|
|
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
|
-
|
|
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, "
|
|
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);
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -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
|
|
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",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
787
|
+
* Timeout function used to debounce resize calls
|
|
788
|
+
* @internal
|
|
791
789
|
*/
|
|
792
|
-
|
|
793
|
-
|
|
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
|
-
*
|
|
802
|
-
* @internal
|
|
800
|
+
* The index to add new rows to when using `applyTransaction` or `applyTransactionAsync`
|
|
803
801
|
*/
|
|
804
|
-
|
|
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) > [@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
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
|
|
@@ -4,10 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
## GridPro.enableCellFlashing property
|
|
6
6
|
|
|
7
|
-
If
|
|
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
|
+
|