@genesislcap/grid-pro 14.265.1-alpha-cec5776.0 → 14.265.1
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 +0 -174
- package/dist/dts/cell-renderers/boolean.renderer.d.ts +2 -1
- package/dist/dts/cell-renderers/boolean.renderer.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.datasource.d.ts +0 -12
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +0 -21
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +1 -1
- package/dist/esm/cell-renderers/boolean.renderer.js +14 -3
- package/dist/esm/datasource/server-side.datasource.js +8 -50
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +3 -210
- package/dist/grid-pro.api.json +0 -78
- package/dist/grid-pro.d.ts +3 -35
- package/docs/api/grid-pro.booleanrenderer.md +0 -1
- package/docs/api/grid-pro.gridprogenesisdatasource.md +0 -1
- package/docs/api-report.md +3 -6
- package/package.json +13 -13
- package/docs/api/grid-pro.booleanrenderer.changehandler.md +0 -22
- package/docs/api/grid-pro.gridprogenesisdatasource.clientsidemode.md +0 -11
|
@@ -4045,16 +4045,6 @@
|
|
|
4045
4045
|
}
|
|
4046
4046
|
]
|
|
4047
4047
|
},
|
|
4048
|
-
{
|
|
4049
|
-
"kind": "method",
|
|
4050
|
-
"name": "changeHandler",
|
|
4051
|
-
"privacy": "public",
|
|
4052
|
-
"parameters": [
|
|
4053
|
-
{
|
|
4054
|
-
"name": "e"
|
|
4055
|
-
}
|
|
4056
|
-
]
|
|
4057
|
-
},
|
|
4058
4048
|
{
|
|
4059
4049
|
"kind": "method",
|
|
4060
4050
|
"name": "getGui",
|
|
@@ -7437,69 +7427,6 @@
|
|
|
7437
7427
|
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7438
7428
|
}
|
|
7439
7429
|
},
|
|
7440
|
-
{
|
|
7441
|
-
"kind": "field",
|
|
7442
|
-
"name": "clientSideMode",
|
|
7443
|
-
"type": {
|
|
7444
|
-
"text": "| 'default'\n | 'infinite-scroll'\n | 'pagination'"
|
|
7445
|
-
},
|
|
7446
|
-
"default": "'default'",
|
|
7447
|
-
"inheritedFrom": {
|
|
7448
|
-
"name": "GridProGenesisDatasource",
|
|
7449
|
-
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7450
|
-
}
|
|
7451
|
-
},
|
|
7452
|
-
{
|
|
7453
|
-
"kind": "field",
|
|
7454
|
-
"name": "currentViewNumber",
|
|
7455
|
-
"type": {
|
|
7456
|
-
"text": "number"
|
|
7457
|
-
},
|
|
7458
|
-
"privacy": "private",
|
|
7459
|
-
"default": "1",
|
|
7460
|
-
"inheritedFrom": {
|
|
7461
|
-
"name": "GridProGenesisDatasource",
|
|
7462
|
-
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7463
|
-
}
|
|
7464
|
-
},
|
|
7465
|
-
{
|
|
7466
|
-
"kind": "field",
|
|
7467
|
-
"name": "isLoading",
|
|
7468
|
-
"type": {
|
|
7469
|
-
"text": "boolean"
|
|
7470
|
-
},
|
|
7471
|
-
"privacy": "private",
|
|
7472
|
-
"default": "false",
|
|
7473
|
-
"inheritedFrom": {
|
|
7474
|
-
"name": "GridProGenesisDatasource",
|
|
7475
|
-
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7476
|
-
}
|
|
7477
|
-
},
|
|
7478
|
-
{
|
|
7479
|
-
"kind": "field",
|
|
7480
|
-
"name": "hasMoreRows",
|
|
7481
|
-
"type": {
|
|
7482
|
-
"text": "boolean"
|
|
7483
|
-
},
|
|
7484
|
-
"privacy": "private",
|
|
7485
|
-
"default": "false",
|
|
7486
|
-
"inheritedFrom": {
|
|
7487
|
-
"name": "GridProGenesisDatasource",
|
|
7488
|
-
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7489
|
-
}
|
|
7490
|
-
},
|
|
7491
|
-
{
|
|
7492
|
-
"kind": "field",
|
|
7493
|
-
"name": "infiniteDatasource",
|
|
7494
|
-
"type": {
|
|
7495
|
-
"text": "IDatasource"
|
|
7496
|
-
},
|
|
7497
|
-
"privacy": "private",
|
|
7498
|
-
"inheritedFrom": {
|
|
7499
|
-
"name": "GridProGenesisDatasource",
|
|
7500
|
-
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7501
|
-
}
|
|
7502
|
-
},
|
|
7503
7430
|
{
|
|
7504
7431
|
"kind": "field",
|
|
7505
7432
|
"name": "dataSub",
|
|
@@ -7549,18 +7476,6 @@
|
|
|
7549
7476
|
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7550
7477
|
}
|
|
7551
7478
|
},
|
|
7552
|
-
{
|
|
7553
|
-
"kind": "field",
|
|
7554
|
-
"name": "moreRowsDetail",
|
|
7555
|
-
"type": {
|
|
7556
|
-
"text": "{ moreRows: number; sourceRef: string }"
|
|
7557
|
-
},
|
|
7558
|
-
"privacy": "private",
|
|
7559
|
-
"inheritedFrom": {
|
|
7560
|
-
"name": "GridProGenesisDatasource",
|
|
7561
|
-
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
7562
|
-
}
|
|
7563
|
-
},
|
|
7564
7479
|
{
|
|
7565
7480
|
"kind": "method",
|
|
7566
7481
|
"name": "colDefsDeepClone",
|
|
@@ -8570,18 +8485,6 @@
|
|
|
8570
8485
|
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
8571
8486
|
}
|
|
8572
8487
|
},
|
|
8573
|
-
{
|
|
8574
|
-
"name": "client-side-mode",
|
|
8575
|
-
"type": {
|
|
8576
|
-
"text": "| 'default'\n | 'infinite-scroll'\n | 'pagination'"
|
|
8577
|
-
},
|
|
8578
|
-
"default": "'default'",
|
|
8579
|
-
"fieldName": "clientSideMode",
|
|
8580
|
-
"inheritedFrom": {
|
|
8581
|
-
"name": "GridProGenesisDatasource",
|
|
8582
|
-
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
8583
|
-
}
|
|
8584
|
-
},
|
|
8585
8488
|
{
|
|
8586
8489
|
"name": "criteria",
|
|
8587
8490
|
"type": {
|
|
@@ -8894,15 +8797,6 @@
|
|
|
8894
8797
|
"default": "false",
|
|
8895
8798
|
"description": "Enable live updates for the grid."
|
|
8896
8799
|
},
|
|
8897
|
-
{
|
|
8898
|
-
"kind": "field",
|
|
8899
|
-
"name": "enableClientSideSort",
|
|
8900
|
-
"type": {
|
|
8901
|
-
"text": "boolean"
|
|
8902
|
-
},
|
|
8903
|
-
"default": "false",
|
|
8904
|
-
"description": "Enable client-side sorting for the server-side row model."
|
|
8905
|
-
},
|
|
8906
8800
|
{
|
|
8907
8801
|
"kind": "field",
|
|
8908
8802
|
"name": "request",
|
|
@@ -9945,15 +9839,6 @@
|
|
|
9945
9839
|
"description": "Enable live updates for the grid.",
|
|
9946
9840
|
"fieldName": "liveUpdates"
|
|
9947
9841
|
},
|
|
9948
|
-
{
|
|
9949
|
-
"name": "enable-client-side-sort",
|
|
9950
|
-
"type": {
|
|
9951
|
-
"text": "boolean"
|
|
9952
|
-
},
|
|
9953
|
-
"default": "false",
|
|
9954
|
-
"description": "Enable client-side sorting for the server-side row model.",
|
|
9955
|
-
"fieldName": "enableClientSideSort"
|
|
9956
|
-
},
|
|
9957
9842
|
{
|
|
9958
9843
|
"name": "criteria",
|
|
9959
9844
|
"type": {
|
|
@@ -12010,49 +11895,6 @@
|
|
|
12010
11895
|
},
|
|
12011
11896
|
"default": "false"
|
|
12012
11897
|
},
|
|
12013
|
-
{
|
|
12014
|
-
"kind": "field",
|
|
12015
|
-
"name": "clientSideMode",
|
|
12016
|
-
"type": {
|
|
12017
|
-
"text": "| 'default'\n | 'infinite-scroll'\n | 'pagination'"
|
|
12018
|
-
},
|
|
12019
|
-
"default": "'default'"
|
|
12020
|
-
},
|
|
12021
|
-
{
|
|
12022
|
-
"kind": "field",
|
|
12023
|
-
"name": "currentViewNumber",
|
|
12024
|
-
"type": {
|
|
12025
|
-
"text": "number"
|
|
12026
|
-
},
|
|
12027
|
-
"privacy": "private",
|
|
12028
|
-
"default": "1"
|
|
12029
|
-
},
|
|
12030
|
-
{
|
|
12031
|
-
"kind": "field",
|
|
12032
|
-
"name": "isLoading",
|
|
12033
|
-
"type": {
|
|
12034
|
-
"text": "boolean"
|
|
12035
|
-
},
|
|
12036
|
-
"privacy": "private",
|
|
12037
|
-
"default": "false"
|
|
12038
|
-
},
|
|
12039
|
-
{
|
|
12040
|
-
"kind": "field",
|
|
12041
|
-
"name": "hasMoreRows",
|
|
12042
|
-
"type": {
|
|
12043
|
-
"text": "boolean"
|
|
12044
|
-
},
|
|
12045
|
-
"privacy": "private",
|
|
12046
|
-
"default": "false"
|
|
12047
|
-
},
|
|
12048
|
-
{
|
|
12049
|
-
"kind": "field",
|
|
12050
|
-
"name": "infiniteDatasource",
|
|
12051
|
-
"type": {
|
|
12052
|
-
"text": "IDatasource"
|
|
12053
|
-
},
|
|
12054
|
-
"privacy": "private"
|
|
12055
|
-
},
|
|
12056
11898
|
{
|
|
12057
11899
|
"kind": "field",
|
|
12058
11900
|
"name": "dataSub",
|
|
@@ -12086,14 +11928,6 @@
|
|
|
12086
11928
|
"privacy": "private",
|
|
12087
11929
|
"default": "true"
|
|
12088
11930
|
},
|
|
12089
|
-
{
|
|
12090
|
-
"kind": "field",
|
|
12091
|
-
"name": "moreRowsDetail",
|
|
12092
|
-
"type": {
|
|
12093
|
-
"text": "{ moreRows: number; sourceRef: string }"
|
|
12094
|
-
},
|
|
12095
|
-
"privacy": "private"
|
|
12096
|
-
},
|
|
12097
11931
|
{
|
|
12098
11932
|
"kind": "method",
|
|
12099
11933
|
"name": "deepClone",
|
|
@@ -13123,14 +12957,6 @@
|
|
|
13123
12957
|
"default": "false",
|
|
13124
12958
|
"fieldName": "keepColDefsOnClearRowData"
|
|
13125
12959
|
},
|
|
13126
|
-
{
|
|
13127
|
-
"name": "client-side-mode",
|
|
13128
|
-
"type": {
|
|
13129
|
-
"text": "| 'default'\n | 'infinite-scroll'\n | 'pagination'"
|
|
13130
|
-
},
|
|
13131
|
-
"default": "'default'",
|
|
13132
|
-
"fieldName": "clientSideMode"
|
|
13133
|
-
},
|
|
13134
12960
|
{
|
|
13135
12961
|
"name": "criteria",
|
|
13136
12962
|
"type": {
|
|
@@ -23,7 +23,8 @@ export declare class BooleanRenderer extends FoundationElement implements ICellR
|
|
|
23
23
|
selected: boolean;
|
|
24
24
|
isDisabled(data: any): boolean;
|
|
25
25
|
init(params: ICellRendererParams): void;
|
|
26
|
-
|
|
26
|
+
/** @internal */
|
|
27
|
+
userInputHandler(e: Event): void;
|
|
27
28
|
getGui(): HTMLElement;
|
|
28
29
|
destroy(): void;
|
|
29
30
|
refresh(params: ICellRendererParams): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/boolean.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,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;IACvC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,IAAI,CAAC;CACpC,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;
|
|
1
|
+
{"version":3,"file":"boolean.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/boolean.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,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;IACvC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,IAAI,CAAC;CACpC,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;IAMvC,gBAAgB;IACT,gBAAgB,CAAC,CAAC,EAAE,KAAK;IAsEzB,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,iGAUxC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;0BAItC,CAAC"}
|
|
@@ -344,18 +344,6 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
|
|
|
344
344
|
* @remarks Only works with DATASERVER resources (StreamDatasource) right now.
|
|
345
345
|
*/
|
|
346
346
|
liveUpdates: boolean;
|
|
347
|
-
/**
|
|
348
|
-
* Enable client-side sorting for the server-side row model.
|
|
349
|
-
* @remarks This allows the grid to sort rows client-side if it has all the rows for a group loaded.
|
|
350
|
-
* When enabled, this sets a cache block size of 100 (or less if specified) to optimize for client-side operations.
|
|
351
|
-
* Client-side sorting provides better performance as it avoids server requests when a group has all its rows loaded.
|
|
352
|
-
*
|
|
353
|
-
* For optimal performance:
|
|
354
|
-
* - Groups with fewer than 100 rows will be client-side sortable once loaded
|
|
355
|
-
* - Scrolling through all blocks of a group will enable client-side sorting for that group
|
|
356
|
-
* - Sorting will still be server-side for groups that don't have all rows loaded
|
|
357
|
-
*/
|
|
358
|
-
enableClientSideSort: boolean;
|
|
359
347
|
request: any;
|
|
360
348
|
private indexes;
|
|
361
349
|
private ssrmDatasource;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAkBjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAS1D;;;;GAIG;AACH,qBAGa,2BAA4B,SAAQ,gCAAqC;IACpF,aAAa,SAAgC;IAC7C,kBAAkB,SAAqC;IAE5B,UAAU,UAAS;IAC9C;;;OAGG;IAC6D,mBAAmB,UAAS;IAE5F;;;OAGG;IACmD,WAAW,UAAS;IAE9D,OAAO,EAAE,GAAG,CAAM;IAE9B,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,cAAc,CAA8D;IACpF,OAAO,CAAC,iBAAiB,CAAqB;IAE9C,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAOtD,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAWxD,iBAAiB;IASjB,oBAAoB;IASX,SAAS,IAAI,IAAI;IAO1B;;;;OAIG;YACW,kBAAkB;IAgC1B,IAAI;IA6FV,mBAAmB,CAAC,KAAK,EAAE,sBAAsB;IAM3C,OAAO;IAaP,OAAO;IAKb,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,kBAAkB;IAU1B,IAAI,MAAM,QA2BT;IAED,IAAI,QAAQ,IAAI,mBAAmB,CAElC;YAEa,mBAAmB;YAKnB,sBAAsB;YAgEtB,eAAe;IAoBpB,gBAAgB,CAAC,aAAa,EAAE,kBAAkB,GAAG,2BAA2B;IAIhF,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,2BAA2B,KAAK,IAAI;CAIxD"}
|
|
@@ -338,16 +338,10 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
338
338
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
339
339
|
restartOnReconnection: boolean;
|
|
340
340
|
keepColDefsOnClearRowData: boolean;
|
|
341
|
-
clientSideMode: 'default' | 'infinite-scroll' | 'pagination';
|
|
342
|
-
private currentViewNumber;
|
|
343
|
-
private isLoading;
|
|
344
|
-
private hasMoreRows;
|
|
345
|
-
private infiniteDatasource;
|
|
346
341
|
private dataSub;
|
|
347
342
|
private updateSub;
|
|
348
343
|
private connectionSub;
|
|
349
344
|
private requiresFullRowDataAndColDefs;
|
|
350
|
-
private moreRowsDetail;
|
|
351
345
|
connectedCallback(): void;
|
|
352
346
|
disconnectedCallback(): void;
|
|
353
347
|
deepClone(): Node;
|
|
@@ -360,11 +354,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
360
354
|
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
361
355
|
*/
|
|
362
356
|
init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
|
|
363
|
-
/**
|
|
364
|
-
* Sets up the infinite datasource for the AG Grid
|
|
365
|
-
* @internal
|
|
366
|
-
*/
|
|
367
|
-
private setupInfiniteDatasource;
|
|
368
357
|
/**
|
|
369
358
|
* Destroys the datasource, resetting it to its initial state.
|
|
370
359
|
* @public
|
|
@@ -419,16 +408,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
419
408
|
* @internal
|
|
420
409
|
*/
|
|
421
410
|
private loadResourceData;
|
|
422
|
-
/**
|
|
423
|
-
* Loads more rows for infinite-scroll or pagination by making a getMoreRows request
|
|
424
|
-
* @internal
|
|
425
|
-
*/
|
|
426
|
-
private loadMoreRows;
|
|
427
|
-
/**
|
|
428
|
-
* Handles pagination events for pagination mode
|
|
429
|
-
* @internal
|
|
430
|
-
*/
|
|
431
|
-
private onPaginationChanged;
|
|
432
411
|
private handleSnapshot;
|
|
433
412
|
handleErrors(errors: string | any[]): void;
|
|
434
413
|
private handleStreamResult;
|
|
@@ -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,EACL,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,EACL,MAAM,EACN,WAAW,EAGX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAejC,OAAO,EAAqB,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUzF;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAqC;IACjF,aAAa,SAAsB;IACnC,kBAAkB,SAA2B;IAGvC,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAS9D,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAQrD,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAKW,qBAAqB,UAAQ;IAG9F,yBAAyB,UAAS;IAElC,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,SAAS,CAAe;IAChC,OAAO,CAAC,aAAa,CAAe;IAEpC,OAAO,CAAC,6BAA6B,CAAQ;IAE7C,iBAAiB;IAuBjB,oBAAoB;IAWX,SAAS,IAAI,IAAI;IAqB1B,OAAO,CAAC,gBAAgB;IAgBxB;;;;;;OAMG;IACG,IAAI,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,YAAY,CAAC,EAAE,WAAW,EAAE;IA0CrE;;;OAGG;IACH,OAAO;IAIP;;;;OAIG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IAiCL;;;OAGG;IACH,OAAO;IAYP;;OAEG;IACH,WAAW;IAIX;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAgBpB;;;;OAIG;YACW,UAAU;IAmCxB;;;;;OAKG;YACW,kBAAkB;IAehC;;;;;;OAMG;YACW,gBAAgB;IAuE9B,OAAO,CAAC,cAAc;IActB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,EAAE;IAyBnC,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IAgE9B,OAAO,CAAC,mBAAmB;YAyBb,eAAe;IActB,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
|
@@ -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: ("datasource" | "onGridReady" | "tabIndex" | "api" | "columnApi" | "context" | "
|
|
14
|
+
export declare const AG_PROPERTIES: ("datasource" | "onGridReady" | "tabIndex" | "api" | "columnApi" | "context" | "columnDefs" | "pagination" | "rowData" | "headerHeight" | "rowHeight" | "icons" | "singleClickEdit" | "onCellValueChanged" | "onCellClicked" | "onCellDoubleClicked" | "onCellContextMenu" | "enableCellChangeFlash" | "rowDragText" | "sortingOrder" | "unSortIcon" | "suppressAutoSize" | "statusBar" | "sideBar" | "suppressContextMenu" | "preventDefaultOnContextMenu" | "allowContextMenuWithControlKey" | "suppressMenuHide" | "enableBrowserTooltips" | "tooltipShowDelay" | "tooltipHideDelay" | "tooltipMouseTrack" | "popupParent" | "copyHeadersToClipboard" | "copyGroupHeadersToClipboard" | "clipboardDeliminator" | "clipboardDelimiter" | "suppressCopyRowsToClipboard" | "suppressCopySingleCellRanges" | "suppressLastEmptyLineOnPaste" | "suppressClipboardPaste" | "suppressClipboardApi" | "suppressCutToClipboard" | "defaultColDef" | "defaultColGroupDef" | "columnTypes" | "maintainColumnOrder" | "suppressFieldDotNotation" | "groupHeaderHeight" | "floatingFiltersHeight" | "pivotHeaderHeight" | "pivotGroupHeaderHeight" | "allowDragFromColumnsToolPanel" | "suppressMovableColumns" | "suppressColumnMoveAnimation" | "suppressDragLeaveHidesColumns" | "suppressRowGroupHidesColumns" | "colResizeDefault" | "autoSizePadding" | "skipHeaderOnAutoSize" | "components" | "frameworkComponents" | "reactUi" | "suppressReactUi" | "editType" | "suppressClickEdit" | "readOnlyEdit" | "stopEditingWhenCellsLoseFocus" | "enterMovesDown" | "enterMovesDownAfterEdit" | "enableCellEditingOnBackspace" | "undoRedoCellEditing" | "undoRedoCellEditingLimit" | "defaultCsvExportParams" | "suppressCsvExport" | "defaultExcelExportParams" | "suppressExcelExport" | "excelStyles" | "quickFilterText" | "cacheQuickFilter" | "excludeHiddenColumnsFromQuickFilter" | "excludeChildrenWhenTreeDataFiltering" | "enableCharts" | "chartThemes" | "customChartThemes" | "chartThemeOverrides" | "enableChartToolPanelsButton" | "suppressChartToolPanelsButton" | "chartToolPanelsDef" | "loadingCellRenderer" | "loadingCellRendererFramework" | "loadingCellRendererParams" | "loadingCellRendererSelector" | "localeText" | "masterDetail" | "keepDetailRows" | "keepDetailRowsCount" | "detailCellRenderer" | "detailCellRendererFramework" | "detailCellRendererParams" | "detailRowHeight" | "detailRowAutoHeight" | "alignedGrids" | "rowBuffer" | "valueCache" | "valueCacheNeverExpires" | "enableCellExpressions" | "suppressParentsInRowNodes" | "suppressTouch" | "suppressFocusAfterRefresh" | "suppressAsyncEvents" | "suppressBrowserResizeObserver" | "suppressPropertyNamesCheck" | "suppressChangeDetection" | "debug" | "overlayLoadingTemplate" | "loadingOverlayComponent" | "loadingOverlayComponentFramework" | "loadingOverlayComponentParams" | "suppressLoadingOverlay" | "overlayNoRowsTemplate" | "noRowsOverlayComponent" | "noRowsOverlayComponentFramework" | "noRowsOverlayComponentParams" | "suppressNoRowsOverlay" | "paginationPageSize" | "paginationAutoPageSize" | "paginateChildRows" | "suppressPaginationPanel" | "pivotMode" | "pivotPanelShow" | "pivotColumnGroupTotals" | "pivotRowTotals" | "pivotSuppressAutoColumn" | "suppressExpandablePivotGroups" | "functionsReadOnly" | "aggFuncs" | "suppressAggFuncInHeader" | "suppressAggAtRootLevel" | "aggregateOnlyChangedColumns" | "suppressAggFilteredOnly" | "removePivotHeaderRowWhenSingleValueColumn" | "animateRows" | "cellFlashDelay" | "cellFadeDelay" | "allowShowChangeAfterFilter" | "domLayout" | "ensureDomOrder" | "enableRtl" | "suppressColumnVirtualisation" | "suppressMaxRenderedRowRestriction" | "suppressRowVirtualisation" | "rowDragManaged" | "suppressRowDrag" | "suppressMoveWhenRowDragging" | "rowDragEntireRow" | "rowDragMultiRow" | "fullWidthCellRenderer" | "fullWidthCellRendererFramework" | "fullWidthCellRendererParams" | "embedFullWidthRows" | "groupDisplayType" | "groupDefaultExpanded" | "autoGroupColumnDef" | "groupMaintainOrder" | "groupSelectsChildren" | "groupAggFiltering" | "groupIncludeFooter" | "groupIncludeTotalFooter" | "groupSuppressBlankHeader" | "groupSelectsFiltered" | "showOpenedGroup" | "groupRemoveSingleChildren" | "groupRemoveLowestSingleChildren" | "groupHideOpenParents" | "groupAllowUnbalanced" | "rowGroupPanelShow" | "groupRowRenderer" | "groupRowRendererFramework" | "groupRowRendererParams" | "suppressMakeColumnVisibleAfterUnGroup" | "treeData" | "rowGroupPanelSuppressSort" | "groupRowsSticky" | "rememberGroupStateWhenNewData" | "pinnedTopRowData" | "pinnedBottomRowData" | "rowModelType" | "immutableData" | "asyncTransactionWaitMillis" | "suppressModelUpdateAfterUpdateTransaction" | "cacheOverflowSize" | "infiniteInitialRowCount" | "serverSideInitialRowCount" | "serverSideStoreType" | "suppressServerSideInfiniteScroll" | "cacheBlockSize" | "maxBlocksInCache" | "maxConcurrentDatasourceRequests" | "blockLoadDebounceMillis" | "purgeClosedRowNodes" | "serverSideDatasource" | "serverSideSortAllLevels" | "serverSideFilterAllLevels" | "serverSideSortOnServer" | "serverSideFilterOnServer" | "serverSideSortingAlwaysResets" | "serverSideFilteringAlwaysResets" | "viewportDatasource" | "viewportRowModelPageSize" | "viewportRowModelBufferSize" | "alwaysShowHorizontalScroll" | "alwaysShowVerticalScroll" | "debounceVerticalScrollbar" | "suppressHorizontalScroll" | "suppressScrollOnNewData" | "suppressScrollWhenPopupsAreOpen" | "suppressAnimationFrame" | "suppressMiddleClickScrolls" | "suppressPreventDefaultOnMouseWheel" | "scrollbarWidth" | "rowSelection" | "rowMultiSelectWithClick" | "suppressRowDeselection" | "suppressRowClickSelection" | "suppressCellSelection" | "suppressCellFocus" | "suppressMultiRangeSelection" | "enableCellTextSelection" | "enableRangeSelection" | "enableRangeHandle" | "enableFillHandle" | "fillHandleDirection" | "suppressClearOnFillReduction" | "accentedSort" | "suppressMultiSort" | "alwaysMultiSort" | "multiSortKey" | "suppressMaintainUnsortedOrder" | "rowStyle" | "rowClass" | "rowClassRules" | "suppressRowHoverHighlight" | "suppressRowTransform" | "columnHoverHighlight" | "deltaSort" | "treeDataDisplayType" | "functionsPassive" | "enableGroupEdit" | "getContextMenuItems" | "getMainMenuItems" | "postProcessPopup" | "processCellForClipboard" | "processHeaderForClipboard" | "processGroupHeaderForClipboard" | "processCellFromClipboard" | "sendToClipboard" | "processDataFromClipboard" | "isExternalFilterPresent" | "doesExternalFilterPass" | "getChartToolbarItems" | "createChartContainer" | "navigateToNextHeader" | "tabToNextHeader" | "navigateToNextCell" | "tabToNextCell" | "localeTextFunc" | "getLocaleText" | "getDocument" | "paginationNumberFormatter" | "groupRowAggNodes" | "getGroupRowAgg" | "isGroupOpenByDefault" | "initialGroupOrderComparator" | "defaultGroupOrderComparator" | "processSecondaryColDef" | "processSecondaryColGroupDef" | "processPivotResultColDef" | "processPivotResultColGroupDef" | "getDataPath" | "getChildCount" | "getServerSideGroupLevelParams" | "getServerSideStoreParams" | "isServerSideGroupOpenByDefault" | "isApplyServerSideTransaction" | "isServerSideGroup" | "getServerSideGroupKey" | "getBusinessKeyForNode" | "getRowNodeId" | "getRowId" | "resetRowDataOnUpdate" | "processRowPostCreate" | "isRowSelectable" | "isRowMaster" | "fillOperation" | "postSort" | "postSortRows" | "getRowStyle" | "getRowClass" | "getRowHeight" | "isFullWidthCell" | "isFullWidthRow" | "onToolPanelVisibleChanged" | "onToolPanelSizeChanged" | "onPasteStart" | "onPasteEnd" | "onColumnVisible" | "onColumnPinned" | "onColumnResized" | "onColumnMoved" | "onColumnValueChanged" | "onColumnPivotModeChanged" | "onColumnPivotChanged" | "onColumnGroupOpened" | "onNewColumnsLoaded" | "onGridColumnsChanged" | "onDisplayedColumnsChanged" | "onVirtualColumnsChanged" | "onColumnEverythingChanged" | "onComponentStateChanged" | "onCellEditRequest" | "onRowValueChanged" | "onCellEditingStarted" | "onCellEditingStopped" | "onRowEditingStarted" | "onRowEditingStopped" | "onUndoStarted" | "onUndoEnded" | "onRedoStarted" | "onRedoEnded" | "onFilterOpened" | "onFilterChanged" | "onFilterModified" | "onChartCreated" | "onChartRangeSelectionChanged" | "onChartOptionsChanged" | "onChartDestroyed" | "onCellKeyDown" | "onCellKeyPress" | "onFirstDataRendered" | "onGridSizeChanged" | "onModelUpdated" | "onVirtualRowRemoved" | "onViewportChanged" | "onBodyScroll" | "onBodyScrollEnd" | "onDragStarted" | "onDragStopped" | "onPaginationChanged" | "onRowDragEnter" | "onRowDragMove" | "onRowDragLeave" | "onRowDragEnd" | "onColumnRowGroupChanged" | "onRowGroupOpened" | "onExpandOrCollapseAll" | "onPinnedRowDataChanged" | "onRowDataChanged" | "onRowDataUpdated" | "onAsyncTransactionsFlushed" | "onCellFocused" | "onCellMouseOver" | "onCellMouseOut" | "onCellMouseDown" | "onRowClicked" | "onRowDoubleClicked" | "onRowSelected" | "onSelectionChanged" | "onRangeSelectionChanged" | "onSortChanged" | "onColumnRowGroupChangeRequest" | "onColumnPivotChangeRequest" | "onColumnValueChangeRequest" | "onColumnAggFuncChangeRequest")[];
|
|
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;
|
|
@@ -28,7 +28,8 @@ export class BooleanRenderer extends FoundationElement {
|
|
|
28
28
|
this.params = params;
|
|
29
29
|
this.selected = params.value;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
/** @internal */
|
|
32
|
+
userInputHandler(e) {
|
|
32
33
|
// Strictly prevent any event dispatch or value change if not editable
|
|
33
34
|
if (!this.params.colDef ||
|
|
34
35
|
(typeof this.params.colDef.editable === 'function'
|
|
@@ -37,7 +38,16 @@ export class BooleanRenderer extends FoundationElement {
|
|
|
37
38
|
: this.params.colDef.editable !== true)) {
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
|
-
|
|
41
|
+
if (e instanceof MouseEvent) {
|
|
42
|
+
if (e.type !== 'click' || e.button !== 0)
|
|
43
|
+
return;
|
|
44
|
+
this.selected = e.target.checked;
|
|
45
|
+
}
|
|
46
|
+
if (e instanceof KeyboardEvent) {
|
|
47
|
+
if (e.type !== 'keydown' || (e.key !== ' ' && e.key !== 'Enter'))
|
|
48
|
+
return;
|
|
49
|
+
this.selected = !this.selected;
|
|
50
|
+
}
|
|
41
51
|
const editedCells = this.params.api.getEditingCells();
|
|
42
52
|
const changingCurrentlyEditedCell = !!editedCells.find((cell) => cell.rowIndex === this.params.rowIndex &&
|
|
43
53
|
cell.column.getInstanceId() === this.params.column.getInstanceId());
|
|
@@ -117,7 +127,8 @@ export const getAgBooleanRendererTemplate = (designSystem = 'foundation') => {
|
|
|
117
127
|
const checkboxComponent = `${designSystem}-checkbox`;
|
|
118
128
|
return html `
|
|
119
129
|
<${checkboxComponent}
|
|
120
|
-
@
|
|
130
|
+
@click=${(x, c) => x.userInputHandler(c.event)}
|
|
131
|
+
@keydown=${(x, c) => x.userInputHandler(c.event)}
|
|
121
132
|
:checked=${(x) => x.selected}
|
|
122
133
|
?disabled=${(x) => { var _a; return x.isDisabled((_a = x.params) === null || _a === void 0 ? void 0 : _a.data); }}
|
|
123
134
|
></${checkboxComponent}>
|
|
@@ -12,7 +12,6 @@ import { ReqRepServerSideDatasource } from './server-side.resource-reqrep';
|
|
|
12
12
|
const criteriaDelimiter = ';';
|
|
13
13
|
const withoutColumnDefs = null;
|
|
14
14
|
const timeoutInMs = 500;
|
|
15
|
-
const DEFAULT_CLIENT_SIDE_CACHE_SIZE = 100;
|
|
16
15
|
/**
|
|
17
16
|
* A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
|
|
18
17
|
* @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
|
|
@@ -34,18 +33,6 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
34
33
|
* @remarks Only works with DATASERVER resources (StreamDatasource) right now.
|
|
35
34
|
*/
|
|
36
35
|
this.liveUpdates = false;
|
|
37
|
-
/**
|
|
38
|
-
* Enable client-side sorting for the server-side row model.
|
|
39
|
-
* @remarks This allows the grid to sort rows client-side if it has all the rows for a group loaded.
|
|
40
|
-
* When enabled, this sets a cache block size of 100 (or less if specified) to optimize for client-side operations.
|
|
41
|
-
* Client-side sorting provides better performance as it avoids server requests when a group has all its rows loaded.
|
|
42
|
-
*
|
|
43
|
-
* For optimal performance:
|
|
44
|
-
* - Groups with fewer than 100 rows will be client-side sortable once loaded
|
|
45
|
-
* - Scrolling through all blocks of a group will enable client-side sorting for that group
|
|
46
|
-
* - Sorting will still be server-side for groups that don't have all rows loaded
|
|
47
|
-
*/
|
|
48
|
-
this.enableClientSideSort = false;
|
|
49
36
|
this.request = {};
|
|
50
37
|
}
|
|
51
38
|
resourceNameChanged(oldValue, newValue) {
|
|
@@ -124,11 +111,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
124
111
|
init() {
|
|
125
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
126
113
|
if (this.agGrid) {
|
|
127
|
-
|
|
128
|
-
const cacheBlockSize = this.enableClientSideSort
|
|
129
|
-
? Math.min(Number(this.maxRows), DEFAULT_CLIENT_SIDE_CACHE_SIZE)
|
|
130
|
-
: Number(this.maxRows);
|
|
131
|
-
const gridOptions = Object.assign(Object.assign({ getRowId: (params) => {
|
|
114
|
+
this.agGrid.gridOptions = Object.assign(Object.assign({ getRowId: (params) => {
|
|
132
115
|
if (!params.data) {
|
|
133
116
|
return null;
|
|
134
117
|
}
|
|
@@ -138,16 +121,11 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
138
121
|
if ((_b = (_a = params.data) === null || _a === void 0 ? void 0 : _a.ROW_REF) === null || _b === void 0 ? void 0 : _b.includes('_deleted')) {
|
|
139
122
|
return { color: 'grey' };
|
|
140
123
|
}
|
|
141
|
-
}, cacheBlockSize:
|
|
124
|
+
}, cacheBlockSize: this.maxRows, defaultColDef: {
|
|
142
125
|
filter: true,
|
|
143
126
|
resizable: true,
|
|
144
127
|
sortable: false,
|
|
145
128
|
}, pagination: this.pagination, paginationPageSize: this.maxRows, rowBuffer: 0, rowModelType: 'serverSide', suppressServerSideInfiniteScroll: false, suppressMultiSort: true, onFilterChanged: (params) => { }, onSortChanged: (params) => { }, onPaginationChanged: (event) => this.onPaginationChanged(event) }, this.agGrid['agGridOptions']), this.deferredGridOptions);
|
|
146
|
-
// Add client-side sorting capabilities
|
|
147
|
-
if (this.enableClientSideSort) {
|
|
148
|
-
gridOptions.cacheQuickFilter = true;
|
|
149
|
-
}
|
|
150
|
-
this.agGrid.gridOptions = gridOptions;
|
|
151
129
|
this.agGrid['initGrid']();
|
|
152
130
|
this.agGrid.addEventListener(Events.EVENT_GRID_READY, () => __awaiter(this, void 0, void 0, function* () {
|
|
153
131
|
const initOK = yield this.datasource.init(this.datasourceOptions(), true, false);
|
|
@@ -169,7 +147,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
169
147
|
resourceParams: this.params,
|
|
170
148
|
resourceIndexes: this.indexes,
|
|
171
149
|
resourceColDefs: this.datasource.originalFieldDef,
|
|
172
|
-
maxRows:
|
|
150
|
+
maxRows: +this.maxRows,
|
|
173
151
|
maxView: +this.maxView,
|
|
174
152
|
rowId: this.rowId,
|
|
175
153
|
pagination: this.pagination,
|
|
@@ -184,7 +162,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
184
162
|
resourceParams: this.params,
|
|
185
163
|
resourceIndexes: this.indexes,
|
|
186
164
|
resourceColDefs: this.datasource.originalFieldDef,
|
|
187
|
-
maxRows:
|
|
165
|
+
maxRows: +this.maxRows,
|
|
188
166
|
maxView: +this.maxView,
|
|
189
167
|
rowId: this.rowId,
|
|
190
168
|
pagination: this.pagination,
|
|
@@ -334,29 +312,12 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
334
312
|
// });
|
|
335
313
|
// }
|
|
336
314
|
getAgColumnDefs(fieldsMetadata) {
|
|
337
|
-
var _a;
|
|
338
315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
339
316
|
const colDefsFromGenesisData = this.generateColumnDefsFromMetadata(fieldsMetadata, getServerSideFilterParamsByFieldType);
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
fields.forEach((field) => {
|
|
345
|
-
indexedFields.add(field);
|
|
346
|
-
});
|
|
347
|
-
});
|
|
348
|
-
colDefsFromGenesisData.forEach((colDef) => {
|
|
349
|
-
// If client-side sorting is enabled, make all fields sortable
|
|
350
|
-
// If not enabled, only make indexed fields sortable
|
|
351
|
-
if (this.enableClientSideSort) {
|
|
352
|
-
colDef.sortable = true;
|
|
353
|
-
}
|
|
354
|
-
else if (colDef.field && indexedFields.has(colDef.field)) {
|
|
355
|
-
colDef.sortable = true;
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
colDef.sortable = false;
|
|
359
|
-
}
|
|
317
|
+
colDefsFromGenesisData.map((colDef) => {
|
|
318
|
+
return {
|
|
319
|
+
sortable: [].concat(...this.indexes.values()).includes(colDef.field),
|
|
320
|
+
};
|
|
360
321
|
});
|
|
361
322
|
const colDefsMergedWithTemplateDefs = yield this.agGrid.mergeAllColumnDefsAndStates(colDefsFromGenesisData, true);
|
|
362
323
|
return colDefsMergedWithTemplateDefs;
|
|
@@ -378,9 +339,6 @@ __decorate([
|
|
|
378
339
|
__decorate([
|
|
379
340
|
attr({ mode: 'boolean', attribute: 'live-updates' })
|
|
380
341
|
], GridProServerSideDatasource.prototype, "liveUpdates", void 0);
|
|
381
|
-
__decorate([
|
|
382
|
-
attr({ mode: 'boolean', attribute: 'enable-client-side-sort' })
|
|
383
|
-
], GridProServerSideDatasource.prototype, "enableClientSideSort", void 0);
|
|
384
342
|
__decorate([
|
|
385
343
|
observable
|
|
386
344
|
], GridProServerSideDatasource.prototype, "request", void 0);
|