@genesislcap/grid-pro 14.200.1-alpha-599cb19.0 → 14.200.1-alpha-e974201.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 +16 -88
- package/dist/dts/cell-renderers/boolean.renderer.d.ts.map +1 -1
- package/dist/dts/datasource/base.datasource.d.ts +1 -6
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/external/index.d.ts +1 -0
- package/dist/dts/external/index.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +31 -25
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.template.d.ts.map +1 -1
- package/dist/esm/cell-renderers/boolean.renderer.js +6 -7
- package/dist/esm/datasource/base.datasource.js +2 -25
- package/dist/esm/datasource/server-side.datasource.js +10 -10
- package/dist/esm/external/index.js +5 -0
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +8 -10
- package/dist/esm/grid-pro.js +47 -52
- package/dist/esm/grid-pro.template.js +1 -2
- package/dist/grid-pro.api.json +7 -129
- package/dist/grid-pro.d.ts +32 -32
- package/docs/api/grid-pro.gridpro.applytemplatedefinitions.md +2 -2
- package/docs/api/grid-pro.gridpro.gridapi.md +1 -1
- package/docs/api/grid-pro.gridpro.md +2 -6
- package/docs/api/grid-pro.gridpro.mergeallcolumndefsandstates.md +2 -2
- package/docs/api/grid-pro.gridpro.themechanged.md +2 -2
- package/docs/api-report.md +7 -19
- package/package.json +16 -16
- package/docs/api/grid-pro.gridpro.aggrid.md +0 -11
- package/docs/api/grid-pro.gridpro.columnapi.md +0 -11
- package/docs/api/grid-pro.gridpro.selectedcolid.md +0 -11
- package/docs/api/grid-pro.gridpro.selectedrowid.md +0 -11
|
@@ -303,32 +303,34 @@
|
|
|
303
303
|
"members": [
|
|
304
304
|
{
|
|
305
305
|
"kind": "field",
|
|
306
|
-
"name": "
|
|
306
|
+
"name": "gridErrorItems",
|
|
307
307
|
"type": {
|
|
308
|
-
"text": "
|
|
309
|
-
}
|
|
308
|
+
"text": "GridProErrorItem<GridProErrorEvent['detail']>[]"
|
|
309
|
+
},
|
|
310
|
+
"default": "[]"
|
|
310
311
|
},
|
|
311
312
|
{
|
|
312
313
|
"kind": "field",
|
|
313
|
-
"name": "
|
|
314
|
+
"name": "statePersistence",
|
|
314
315
|
"type": {
|
|
315
|
-
"text": "
|
|
316
|
+
"text": "StatePersistence"
|
|
316
317
|
}
|
|
317
318
|
},
|
|
318
319
|
{
|
|
319
320
|
"kind": "field",
|
|
320
|
-
"name": "
|
|
321
|
+
"name": "_gridApi",
|
|
321
322
|
"type": {
|
|
322
|
-
"text": "
|
|
323
|
+
"text": "GridApi"
|
|
323
324
|
},
|
|
324
|
-
"
|
|
325
|
+
"privacy": "private"
|
|
325
326
|
},
|
|
326
327
|
{
|
|
327
328
|
"kind": "field",
|
|
328
|
-
"name": "
|
|
329
|
+
"name": "gridApi",
|
|
329
330
|
"type": {
|
|
330
|
-
"text": "
|
|
331
|
-
}
|
|
331
|
+
"text": "GridApi"
|
|
332
|
+
},
|
|
333
|
+
"readonly": true
|
|
332
334
|
},
|
|
333
335
|
{
|
|
334
336
|
"kind": "field",
|
|
@@ -510,7 +512,7 @@
|
|
|
510
512
|
"name": "themeChanged",
|
|
511
513
|
"parameters": [
|
|
512
514
|
{
|
|
513
|
-
"name": "
|
|
515
|
+
"name": "_oldValue",
|
|
514
516
|
"type": {
|
|
515
517
|
"text": "string"
|
|
516
518
|
}
|
|
@@ -523,15 +525,6 @@
|
|
|
523
525
|
}
|
|
524
526
|
]
|
|
525
527
|
},
|
|
526
|
-
{
|
|
527
|
-
"kind": "field",
|
|
528
|
-
"name": "blockScrollingOnContextMenu",
|
|
529
|
-
"type": {
|
|
530
|
-
"text": "boolean"
|
|
531
|
-
},
|
|
532
|
-
"default": "false",
|
|
533
|
-
"description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records"
|
|
534
|
-
},
|
|
535
528
|
{
|
|
536
529
|
"kind": "field",
|
|
537
530
|
"name": "classNames",
|
|
@@ -539,13 +532,6 @@
|
|
|
539
532
|
"text": "string"
|
|
540
533
|
}
|
|
541
534
|
},
|
|
542
|
-
{
|
|
543
|
-
"kind": "field",
|
|
544
|
-
"name": "agGrid",
|
|
545
|
-
"type": {
|
|
546
|
-
"text": "Grid"
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
535
|
{
|
|
550
536
|
"kind": "field",
|
|
551
537
|
"name": "gridSlot",
|
|
@@ -663,20 +649,6 @@
|
|
|
663
649
|
}
|
|
664
650
|
]
|
|
665
651
|
},
|
|
666
|
-
{
|
|
667
|
-
"kind": "field",
|
|
668
|
-
"name": "selectedRowId",
|
|
669
|
-
"type": {
|
|
670
|
-
"text": "string"
|
|
671
|
-
}
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
"kind": "field",
|
|
675
|
-
"name": "selectedColId",
|
|
676
|
-
"type": {
|
|
677
|
-
"text": "string"
|
|
678
|
-
}
|
|
679
|
-
},
|
|
680
652
|
{
|
|
681
653
|
"kind": "field",
|
|
682
654
|
"name": "gridOptionsConfig",
|
|
@@ -713,10 +685,7 @@
|
|
|
713
685
|
"privacy": "private",
|
|
714
686
|
"parameters": [
|
|
715
687
|
{
|
|
716
|
-
"name": "type"
|
|
717
|
-
"type": {
|
|
718
|
-
"text": "string"
|
|
719
|
-
}
|
|
688
|
+
"name": "type"
|
|
720
689
|
}
|
|
721
690
|
]
|
|
722
691
|
},
|
|
@@ -1304,15 +1273,6 @@
|
|
|
1304
1273
|
"text": "string"
|
|
1305
1274
|
},
|
|
1306
1275
|
"fieldName": "theme"
|
|
1307
|
-
},
|
|
1308
|
-
{
|
|
1309
|
-
"name": "block-scrolling-on-context-menu",
|
|
1310
|
-
"type": {
|
|
1311
|
-
"text": "boolean"
|
|
1312
|
-
},
|
|
1313
|
-
"default": "false",
|
|
1314
|
-
"description": "If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records",
|
|
1315
|
-
"fieldName": "blockScrollingOnContextMenu"
|
|
1316
1276
|
}
|
|
1317
1277
|
],
|
|
1318
1278
|
"mixins": [
|
|
@@ -6318,11 +6278,6 @@
|
|
|
6318
6278
|
}
|
|
6319
6279
|
]
|
|
6320
6280
|
},
|
|
6321
|
-
{
|
|
6322
|
-
"kind": "method",
|
|
6323
|
-
"name": "setPreviouslySelectedCell",
|
|
6324
|
-
"privacy": "private"
|
|
6325
|
-
},
|
|
6326
6281
|
{
|
|
6327
6282
|
"kind": "method",
|
|
6328
6283
|
"name": "applyTransaction",
|
|
@@ -7750,15 +7705,6 @@
|
|
|
7750
7705
|
"module": "src/datasource/base.datasource.ts"
|
|
7751
7706
|
}
|
|
7752
7707
|
},
|
|
7753
|
-
{
|
|
7754
|
-
"kind": "method",
|
|
7755
|
-
"name": "setPreviouslySelectedCell",
|
|
7756
|
-
"privacy": "private",
|
|
7757
|
-
"inheritedFrom": {
|
|
7758
|
-
"name": "GridProBaseDatasource",
|
|
7759
|
-
"module": "src/datasource/base.datasource.ts"
|
|
7760
|
-
}
|
|
7761
|
-
},
|
|
7762
7708
|
{
|
|
7763
7709
|
"kind": "method",
|
|
7764
7710
|
"name": "mapTransaction",
|
|
@@ -9206,15 +9152,6 @@
|
|
|
9206
9152
|
"module": "src/datasource/base.datasource.ts"
|
|
9207
9153
|
}
|
|
9208
9154
|
},
|
|
9209
|
-
{
|
|
9210
|
-
"kind": "method",
|
|
9211
|
-
"name": "setPreviouslySelectedCell",
|
|
9212
|
-
"privacy": "private",
|
|
9213
|
-
"inheritedFrom": {
|
|
9214
|
-
"name": "GridProBaseDatasource",
|
|
9215
|
-
"module": "src/datasource/base.datasource.ts"
|
|
9216
|
-
}
|
|
9217
|
-
},
|
|
9218
9155
|
{
|
|
9219
9156
|
"kind": "method",
|
|
9220
9157
|
"name": "mapTransaction",
|
|
@@ -9985,7 +9922,7 @@
|
|
|
9985
9922
|
{
|
|
9986
9923
|
"kind": "variable",
|
|
9987
9924
|
"name": "agExternalStockStyles",
|
|
9988
|
-
"default": "css`\n ${agGridCSS}\n ${agHeadCSS}\n ${agThemeAlpineNofontsCSS}\n ${agThemeBalhamNofontsCSS}\n ${agThemeMaterialNofontsCSS}\n`",
|
|
9925
|
+
"default": "css`\n ${agGridCSS}\n ${agHeadCSS}\n ${agThemeAlpineNofontsCSS}\n ${agThemeBalhamNofontsCSS}\n ${agThemeMaterialNofontsCSS}\n .ag-body-viewport::-webkit-scrollbar, \n .ag-center-cols-viewport::-webkit-scrollbar {\n display: none !important;\n }\n`",
|
|
9989
9926
|
"description": "All External AG Grid Stock in one CSS.",
|
|
9990
9927
|
"privacy": "public"
|
|
9991
9928
|
}
|
|
@@ -10762,15 +10699,6 @@
|
|
|
10762
10699
|
"module": "src/datasource/base.datasource.ts"
|
|
10763
10700
|
}
|
|
10764
10701
|
},
|
|
10765
|
-
{
|
|
10766
|
-
"kind": "method",
|
|
10767
|
-
"name": "setPreviouslySelectedCell",
|
|
10768
|
-
"privacy": "private",
|
|
10769
|
-
"inheritedFrom": {
|
|
10770
|
-
"name": "GridProBaseDatasource",
|
|
10771
|
-
"module": "src/datasource/base.datasource.ts"
|
|
10772
|
-
}
|
|
10773
|
-
},
|
|
10774
10702
|
{
|
|
10775
10703
|
"kind": "method",
|
|
10776
10704
|
"name": "mapTransaction",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/boolean.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"boolean.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/boolean.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EACjB,mBAAmB,EAEpB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAI/D;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC;CACxC,CAAC;AAEF;;;;GAIG;AACH,qBAAa,eAAgB,SAAQ,iBAAkB,YAAW,iBAAiB;IAE1E,MAAM,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;IAG3D,QAAQ,EAAE,OAAO,CAAC;IAEX,UAAU,CAAC,IAAI,KAAA,GAAG,OAAO;IAWzB,IAAI,CAAC,MAAM,EAAE,mBAAmB;IAMhC,aAAa,CAAC,CAAC,KAAA;IAgDf,MAAM,IAAI,WAAW;IAIrB,OAAO;IAEP,OAAO,CAAC,MAAM,EAAE,mBAAmB;IAK1C,QAAQ;IAIR,mBAAmB;CAGpB;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,iDAMnC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,iGASxC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;0BAItC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColDef, ColumnState, GridOptions, RowDataTransaction, ServerSideTransaction } from '@ag-grid-community/core';
|
|
1
|
+
import type { ColDef, ColumnState, GridOptions, RowDataTransaction, ServerSideTransaction } from '@ag-grid-community/core';
|
|
2
2
|
import { DatasourceStatus, FieldMetadata } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
4
|
import type { GridPro } from '../grid-pro';
|
|
@@ -10,10 +10,6 @@ declare const GenesisGridDatasourceElement_base: new () => {
|
|
|
10
10
|
connectedCallback(): void;
|
|
11
11
|
disconnectedCallback(): void;
|
|
12
12
|
accessKey: string;
|
|
13
|
-
/**
|
|
14
|
-
* Returns whether the `row-id` attribute is the default one, depending on the resource type.
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
13
|
readonly accessKeyLabel: string;
|
|
18
14
|
autocapitalize: string;
|
|
19
15
|
dir: string;
|
|
@@ -382,7 +378,6 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
382
378
|
protected applyAllAgTransactions(): void;
|
|
383
379
|
private flashAddedCells;
|
|
384
380
|
private applyMappedAgTransaction;
|
|
385
|
-
private setPreviouslySelectedCell;
|
|
386
381
|
protected applyTransaction(agTransaction: RowDataTransaction): any;
|
|
387
382
|
protected applyTransactionAsync(agTransaction: RowDataTransaction, callback?: (res: any) => void): void;
|
|
388
383
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,gBAAgB,EAChB,aAAa,EAId,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAIxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,QAAQ,GACnC,MAAM,EAAE;IAsEX,SAAS,CAAC,mBAAmB,CAAC,YAAY,EAAE,GAAG,EAAE;IAgBjD,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAgBhD,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAuBhD,SAAS,CAAC,sBAAsB;IAsChC,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,wBAAwB;IAoBhC,SAAS,CAAC,gBAAgB,CAAC,aAAa,EAAE,kBAAkB,GAAG,GAAG;IAIlE,SAAS,CAAC,qBAAqB,CAAC,aAAa,EAAE,kBAAkB,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI;IAI3F;;;;;OAKG;IACH,OAAO,CAAC,cAAc;CAwBvB;AAED,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAa;CACvC"}
|
|
@@ -7,6 +7,7 @@ export * from './fonts';
|
|
|
7
7
|
/**
|
|
8
8
|
* All External AG Grid Stock in one CSS.
|
|
9
9
|
* @remarks This is a collection of multiple AG themes, only needed if the target element needs more than one stock theme.
|
|
10
|
+
* @privateRemarks See https://github.com/ag-grid/ag-grid/issues/7324 about the viewport scrollbar.
|
|
10
11
|
* @public
|
|
11
12
|
*/
|
|
12
13
|
export declare const agExternalStockStyles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/external/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,cAAc,SAAS,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/external/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,cAAc,SAAS,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,iDAUjC,CAAC;AAEF;;;GAGG;AACH,OAAO,EACL,SAAS,EACT,SAAS,EACT,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,GAC1B,CAAC"}
|
|
@@ -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,KAAK,EACV,MAAM,EACN,WAAW,
|
|
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,KAAK,EACV,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,UAAU,EAWX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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OAEG;IACH,WAAW;IAIX;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;YACW,UAAU;IAoCxB;;;;;OAKG;YACW,kBAAkB;IAahC;;;;;;OAMG;YACW,gBAAgB;IAiE9B,OAAO,CAAC,cAAc;IActB,YAAY,CAAC,OAAO,EAAE,MAAM;IAW5B,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IA6C9B,OAAO,CAAC,mBAAmB;YAyBb,eAAe;IAc7B,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAK5B,gBAAgB,CACvB,aAAa,EAAE,kBAAkB,GAChC,kBAAkB,GAAG,IAAI,GAAG,SAAS;IAI/B,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,GAC3C,IAAI;IAIP,OAAO,CAAC,iBAAiB;CAO1B"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColumnState
|
|
2
|
-
import type { ColDef,
|
|
1
|
+
import { ColumnState } from '@ag-grid-community/core';
|
|
2
|
+
import type { ColDef, GridApi, GridOptions, GridParams } from '@ag-grid-community/core';
|
|
3
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
4
|
import { GridProClientSideDatasource, GridProServerSideDatasource } from './datasource';
|
|
5
5
|
import { GridProGenesisDatasource } from './grid-pro-genesis-datasource';
|
|
@@ -11,7 +11,7 @@ import { StatePersistence } from './state-persistence';
|
|
|
11
11
|
* @privateRemarks We're excluding rowData as it's a special case that we handle separately
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
|
-
export declare const AG_PROPERTIES: (
|
|
14
|
+
export declare const AG_PROPERTIES: (keyof GridOptions<any>)[];
|
|
15
15
|
declare const GridPro_base: (new (...args: any[]) => {
|
|
16
16
|
"__#1@#_container": import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
17
17
|
"__#1@#_latestTokenCode": string;
|
|
@@ -20,11 +20,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
20
20
|
"__#1@#_shouldForceLifecycle": boolean;
|
|
21
21
|
cloneNode(deep?: boolean): Node;
|
|
22
22
|
deepClone(): Node;
|
|
23
|
-
/**
|
|
24
|
-
* Boolean attribute to control whether the grid autosizes the columns upon interaction.
|
|
25
|
-
* This will disable the column widths from being manually set, and doesn't save the widths
|
|
26
|
-
* in local storage if you are using `persist-column-state-key`.
|
|
27
|
-
*/
|
|
28
23
|
readonly shouldRunDisconnect: boolean;
|
|
29
24
|
readonly shouldRunConnect: boolean;
|
|
30
25
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
@@ -71,6 +66,11 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
71
66
|
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
72
67
|
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
73
68
|
outerHTML: string;
|
|
69
|
+
/**
|
|
70
|
+
* The row data to display in the grid.
|
|
71
|
+
* @remarks For scenarios where you want to set data manually, without relying on `<grid-pro-client-side-datasource>`.
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
74
|
readonly ownerDocument: Document;
|
|
75
75
|
readonly part: DOMTokenList;
|
|
76
76
|
readonly prefix: string;
|
|
@@ -101,7 +101,20 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
101
101
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
102
102
|
hasAttribute(qualifiedName: string): boolean;
|
|
103
103
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
104
|
-
hasAttributes(): boolean;
|
|
104
|
+
hasAttributes(): boolean; /**
|
|
105
|
+
* Injectable config that allows to change grid options on an app level basis
|
|
106
|
+
* To modify options, register instance of the config in DOM container that is
|
|
107
|
+
* above the grid or on the top level of the application, so it applies to all grids.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```
|
|
111
|
+
* DI.getOrCreateDOMContainer().register([
|
|
112
|
+
* Registration.instance<GridOptionsConfig>(GridOptionsConfig, {
|
|
113
|
+
* headerHeight: 50,
|
|
114
|
+
* }),
|
|
115
|
+
* ]);
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
105
118
|
hasPointerCapture(pointerId: number): boolean;
|
|
106
119
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
107
120
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
@@ -243,7 +256,9 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
243
256
|
contentEditable: string;
|
|
244
257
|
enterKeyHint: string;
|
|
245
258
|
inputMode: string;
|
|
246
|
-
readonly isContentEditable: boolean;
|
|
259
|
+
readonly isContentEditable: boolean; /**
|
|
260
|
+
* @public
|
|
261
|
+
*/
|
|
247
262
|
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
248
263
|
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
249
264
|
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
@@ -349,10 +364,10 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
349
364
|
* @tagname %%prefix%%-grid-pro
|
|
350
365
|
*/
|
|
351
366
|
export declare class GridPro extends GridPro_base {
|
|
352
|
-
columnApi: ColumnApi;
|
|
353
|
-
gridApi: GridApi;
|
|
354
367
|
gridErrorItems: GridProErrorItem<GridProErrorEvent['detail']>[];
|
|
355
368
|
statePersistence: StatePersistence;
|
|
369
|
+
private _gridApi;
|
|
370
|
+
get gridApi(): GridApi;
|
|
356
371
|
/**
|
|
357
372
|
* Timeout function used to debounce resize calls
|
|
358
373
|
* @internal
|
|
@@ -425,15 +440,8 @@ export declare class GridPro extends GridPro_base {
|
|
|
425
440
|
headerHeight: number;
|
|
426
441
|
rowHeight: number;
|
|
427
442
|
theme: string;
|
|
428
|
-
themeChanged(
|
|
429
|
-
/**
|
|
430
|
-
* If true, will block scrolling when context menu is open and keep the grid in the same position without scrolling to new records
|
|
431
|
-
* @remarks Defaults to false
|
|
432
|
-
* @alpha
|
|
433
|
-
*/
|
|
434
|
-
blockScrollingOnContextMenu: boolean;
|
|
443
|
+
themeChanged(_oldValue: string, newValue: string): void;
|
|
435
444
|
classNames: string;
|
|
436
|
-
agGrid: Grid;
|
|
437
445
|
gridSlot: HTMLSlotElement;
|
|
438
446
|
gridComponents: {
|
|
439
447
|
[componentName: string]: any;
|
|
@@ -453,8 +461,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
453
461
|
setFilterModel(value: {
|
|
454
462
|
[key: string]: any;
|
|
455
463
|
}): Promise<void>;
|
|
456
|
-
selectedRowId: string;
|
|
457
|
-
selectedColId: string;
|
|
458
464
|
/**
|
|
459
465
|
* Injectable config that allows to change grid options on an app level basis
|
|
460
466
|
* To modify options, register instance of the config in DOM container that is
|
|
@@ -494,7 +500,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
494
500
|
/**
|
|
495
501
|
* Gets the saved grid ColumnState[] from storage
|
|
496
502
|
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
497
|
-
* @privateRemarks Not using `
|
|
503
|
+
* @privateRemarks Not using `gridApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
498
504
|
* @public
|
|
499
505
|
*/
|
|
500
506
|
getSavedColumnState(): Promise<ColumnState[]>;
|
|
@@ -525,7 +531,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
525
531
|
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
526
532
|
* @returns The merged column definitions.
|
|
527
533
|
*/
|
|
528
|
-
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
|
|
534
|
+
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any, any>[]>;
|
|
529
535
|
/**
|
|
530
536
|
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
531
537
|
* @public
|
|
@@ -535,7 +541,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
535
541
|
* on the `grid-pro-genesis-datasource` element. Defaults to false but `grid-pro-genesis-datasource` will set this to true.
|
|
536
542
|
* @returns The merged column definitions.
|
|
537
543
|
*/
|
|
538
|
-
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
|
|
544
|
+
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any, any>[]>;
|
|
539
545
|
get observedAttributes(): string[];
|
|
540
546
|
agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
|
|
541
547
|
globalEventListener(eventType: any, event: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EAIZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,MAAM,EAEN,OAAO,EACP,WAAW,EACX,UAAU,EAEX,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAoB/D,OAAO,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAExF,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,aAWrB;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.template.d.ts","sourceRoot":"","sources":["../../src/grid-pro.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"grid-pro.template.d.ts","sourceRoot":"","sources":["../../src/grid-pro.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,iDAoC9B,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,YAAmC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { Events, } from '@ag-grid-community/core';
|
|
3
2
|
import { css, html, observable } from '@microsoft/fast-element';
|
|
4
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
5
4
|
import { EDITED_COLUMN_FIELD } from '../grid-pro.types';
|
|
@@ -31,31 +30,31 @@ export class BooleanRenderer extends FoundationElement {
|
|
|
31
30
|
changeHandler(e) {
|
|
32
31
|
this.selected = e.target.checked;
|
|
33
32
|
const editedCells = this.params.api.getEditingCells();
|
|
34
|
-
const changingCurrentlyEditedCell = !!editedCells.find((cell) => cell.rowIndex === this.params.rowIndex &&
|
|
33
|
+
const changingCurrentlyEditedCell = !!editedCells.find((cell) => cell.rowIndex === this.params.node.rowIndex &&
|
|
35
34
|
cell.column.getInstanceId() === this.params.column.getInstanceId());
|
|
36
35
|
if (!changingCurrentlyEditedCell) {
|
|
37
36
|
// below section allows grid renderer to act as grid editor so users can edit data without requesting edit
|
|
38
37
|
// heavily inspired by https://github.com/ag-grid/ag-grid/blob/latest/grid-community-modules/core/src/ts/rendering/cellRenderers/checkboxCellRenderer.ts#L104
|
|
39
|
-
const { column, node,
|
|
38
|
+
const { column, node, value } = this.params;
|
|
40
39
|
const eventStarted = {
|
|
41
|
-
type:
|
|
40
|
+
type: 'cellEditingStarted',
|
|
42
41
|
column: column,
|
|
43
42
|
colDef: column === null || column === void 0 ? void 0 : column.getColDef(),
|
|
44
43
|
data: node.data,
|
|
45
44
|
node,
|
|
46
|
-
rowIndex,
|
|
45
|
+
rowIndex: this.params.node.rowIndex,
|
|
47
46
|
rowPinned: node.rowPinned,
|
|
48
47
|
value,
|
|
49
48
|
};
|
|
50
49
|
this.params.api.dispatchEvent(eventStarted);
|
|
51
50
|
const valueChanged = this.params.node.setDataValue(this.params.column, this.selected, 'edit');
|
|
52
51
|
const eventStopped = {
|
|
53
|
-
type:
|
|
52
|
+
type: 'cellEditingStopped',
|
|
54
53
|
column: column,
|
|
55
54
|
colDef: column === null || column === void 0 ? void 0 : column.getColDef(),
|
|
56
55
|
data: node.data,
|
|
57
56
|
node,
|
|
58
|
-
rowIndex,
|
|
57
|
+
rowIndex: this.params.node.rowIndex,
|
|
59
58
|
rowPinned: node.rowPinned,
|
|
60
59
|
value,
|
|
61
60
|
oldValue: value,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { Events, } from '@ag-grid-community/core';
|
|
3
2
|
import { DatasourceDefaults, DatasourceEventHandler, FieldTypeEnum, logger, ResourceType, } from '@genesislcap/foundation-comms';
|
|
4
3
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
5
|
-
import { attr,
|
|
4
|
+
import { attr, observable } from '@microsoft/fast-element';
|
|
6
5
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
7
6
|
import { dateValueFormatter, dateTimeValueFormatter, getColumnType, getFilterByFieldType, } from '../grid-pro.definitions';
|
|
8
7
|
import { GridProRendererTypes } from '../grid-pro.types';
|
|
@@ -236,34 +235,12 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
236
235
|
this.applyTransactionAsync(this.mapTransaction(agTransaction, [operation]), (changedNodes) => {
|
|
237
236
|
this.flashAddedCells(changedNodes.add);
|
|
238
237
|
});
|
|
239
|
-
if (this.agGrid.blockScrollingOnContextMenu) {
|
|
240
|
-
const listenerEvent = (e) => {
|
|
241
|
-
e.results.forEach((result) => {
|
|
242
|
-
if (result.add.length || result.remove.length) {
|
|
243
|
-
this.setPreviouslySelectedCell();
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
};
|
|
247
|
-
this.agGrid.gridApi.addEventListener(Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED, listenerEvent);
|
|
248
|
-
}
|
|
249
238
|
}
|
|
250
239
|
else {
|
|
251
240
|
const changedNodes = this.applyTransaction(this.mapTransaction(agTransaction, [operation]));
|
|
252
241
|
this.flashAddedCells(changedNodes.add);
|
|
253
|
-
if (this.agGrid.blockScrollingOnContextMenu) {
|
|
254
|
-
this.setPreviouslySelectedCell();
|
|
255
|
-
}
|
|
256
242
|
}
|
|
257
|
-
|
|
258
|
-
setPreviouslySelectedCell() {
|
|
259
|
-
const previouslySelectedRowNode = this.agGrid.gridApi.getRowNode(this.agGrid.selectedRowId);
|
|
260
|
-
const previouslySelectedColId = this.agGrid.selectedColId;
|
|
261
|
-
if (!previouslySelectedRowNode || !previouslySelectedColId)
|
|
262
|
-
return;
|
|
263
|
-
DOM.queueUpdate(() => {
|
|
264
|
-
this.agGrid.gridApi.setFocusedCell(previouslySelectedRowNode.rowIndex, previouslySelectedColId);
|
|
265
|
-
this.agGrid.gridApi.ensureIndexVisible(previouslySelectedRowNode.rowIndex, 'middle');
|
|
266
|
-
});
|
|
243
|
+
this.agGrid.gridApi.hideOverlay();
|
|
267
244
|
}
|
|
268
245
|
applyTransaction(agTransaction) {
|
|
269
246
|
throw new Error('Method not implemented.');
|
|
@@ -345,12 +345,12 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
345
345
|
return copy;
|
|
346
346
|
}
|
|
347
347
|
deinit() {
|
|
348
|
-
var _a;
|
|
348
|
+
var _a, _b;
|
|
349
349
|
this.clearRowData();
|
|
350
|
-
this.ssrmDatasource.deinit();
|
|
350
|
+
(_a = this.ssrmDatasource) === null || _a === void 0 ? void 0 : _a.deinit();
|
|
351
351
|
this.ssrmDatasource = undefined;
|
|
352
352
|
this.originalFieldDef = undefined;
|
|
353
|
-
(
|
|
353
|
+
(_b = this.agGrid.gridApi) === null || _b === void 0 ? void 0 : _b.refreshServerSide({ purge: true });
|
|
354
354
|
}
|
|
355
355
|
init() {
|
|
356
356
|
if (this.agGrid && this.resourceName && this.connect.isConnected) {
|
|
@@ -368,7 +368,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
368
368
|
filter: true,
|
|
369
369
|
resizable: true,
|
|
370
370
|
sortable: false,
|
|
371
|
-
}, pagination: this.pagination, paginationPageSize: this.maxRows, rowBuffer: 0, rowModelType: 'serverSide',
|
|
371
|
+
}, pagination: this.pagination, paginationPageSize: this.maxRows, paginationPageSizeSelector: false, rowBuffer: 0, rowModelType: 'serverSide', suppressMultiSort: true, onFilterChanged: (params) => { }, onSortChanged: (params) => { } }, this.agGrid['agGridOptions']), this.deferredGridOptions);
|
|
372
372
|
this.agGrid['initGrid']();
|
|
373
373
|
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
374
374
|
/**
|
|
@@ -385,7 +385,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
385
385
|
this.originalFieldDef = extractFieldDefinitions(meta);
|
|
386
386
|
const fieldMetadata = toFieldMetadata(this.originalFieldDef);
|
|
387
387
|
const agColumnDefs = yield this.getAgColumnDefs(fieldMetadata);
|
|
388
|
-
this.agGrid.gridApi.
|
|
388
|
+
this.agGrid.gridApi.updateGridOptions({ columnDefs: agColumnDefs });
|
|
389
389
|
this.ssrmDatasource = new StreamDatasource({
|
|
390
390
|
createDataserverStreamFunc: this.createDataserverStream.bind(this),
|
|
391
391
|
resourceName: this.resourceName,
|
|
@@ -397,7 +397,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
397
397
|
rowId: this.rowId,
|
|
398
398
|
pagination: this.pagination,
|
|
399
399
|
});
|
|
400
|
-
this.agGrid.gridApi.
|
|
400
|
+
this.agGrid.gridApi.updateGridOptions({ serverSideDatasource: this.ssrmDatasource });
|
|
401
401
|
}), { once: true });
|
|
402
402
|
return;
|
|
403
403
|
}
|
|
@@ -408,16 +408,16 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
408
408
|
this.init();
|
|
409
409
|
}
|
|
410
410
|
clearRowData(withColumnDefs = true) {
|
|
411
|
-
var _a, _b
|
|
411
|
+
var _a, _b;
|
|
412
412
|
this.rowData = new Map();
|
|
413
413
|
if (withColumnDefs) {
|
|
414
|
-
|
|
414
|
+
this.agGrid.gridApi.updateGridOptions({ columnDefs: [] });
|
|
415
415
|
}
|
|
416
416
|
this.agTransaction = { remove: [] };
|
|
417
|
-
(
|
|
417
|
+
(_a = this.agGrid.gridApi) === null || _a === void 0 ? void 0 : _a.forEachNode((node) => {
|
|
418
418
|
this.agTransaction.remove.push(node.data);
|
|
419
419
|
});
|
|
420
|
-
(
|
|
420
|
+
(_b = this.agGrid.gridApi) === null || _b === void 0 ? void 0 : _b.applyServerSideTransaction(this.agTransaction);
|
|
421
421
|
this.agTransaction = undefined;
|
|
422
422
|
}
|
|
423
423
|
getResourceIndexes(avaialbleIndexes) {
|
|
@@ -8,6 +8,7 @@ export * from './fonts';
|
|
|
8
8
|
/**
|
|
9
9
|
* All External AG Grid Stock in one CSS.
|
|
10
10
|
* @remarks This is a collection of multiple AG themes, only needed if the target element needs more than one stock theme.
|
|
11
|
+
* @privateRemarks See https://github.com/ag-grid/ag-grid/issues/7324 about the viewport scrollbar.
|
|
11
12
|
* @public
|
|
12
13
|
*/
|
|
13
14
|
export const agExternalStockStyles = css `
|
|
@@ -16,6 +17,10 @@ export const agExternalStockStyles = css `
|
|
|
16
17
|
${agThemeAlpineNofontsCSS}
|
|
17
18
|
${agThemeBalhamNofontsCSS}
|
|
18
19
|
${agThemeMaterialNofontsCSS}
|
|
20
|
+
.ag-body-viewport::-webkit-scrollbar,
|
|
21
|
+
.ag-center-cols-viewport::-webkit-scrollbar {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
19
24
|
`;
|
|
20
25
|
/**
|
|
21
26
|
* All available External AG Grid Stock CSS.
|