@genesislcap/grid-pro 14.451.4 → 14.451.5-alpha-ec85af7.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 +186 -0
- package/dist/dts/datasource/base.datasource.d.ts +13 -0
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro-beta.d.ts +13 -0
- package/dist/dts/grid-pro-beta.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +47 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +21 -1
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/datasource/base.datasource.js +13 -0
- package/dist/esm/grid-pro-beta.js +48 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +91 -0
- package/dist/esm/grid-pro.js +44 -0
- package/dist/grid-pro.api.json +156 -0
- package/dist/grid-pro.d.ts +93 -2
- package/package.json +14 -14
|
@@ -8738,6 +8738,16 @@
|
|
|
8738
8738
|
"privacy": "public",
|
|
8739
8739
|
"default": "false"
|
|
8740
8740
|
},
|
|
8741
|
+
{
|
|
8742
|
+
"kind": "field",
|
|
8743
|
+
"name": "requestVisibleColumnsOnly",
|
|
8744
|
+
"type": {
|
|
8745
|
+
"text": "boolean"
|
|
8746
|
+
},
|
|
8747
|
+
"privacy": "public",
|
|
8748
|
+
"default": "false",
|
|
8749
|
+
"description": "Whether the datasource should request data only for the columns that are currently visible."
|
|
8750
|
+
},
|
|
8741
8751
|
{
|
|
8742
8752
|
"kind": "field",
|
|
8743
8753
|
"name": "rowData",
|
|
@@ -8931,6 +8941,26 @@
|
|
|
8931
8941
|
"kind": "method",
|
|
8932
8942
|
"name": "loadMore"
|
|
8933
8943
|
},
|
|
8944
|
+
{
|
|
8945
|
+
"kind": "method",
|
|
8946
|
+
"name": "setVisibleColumns",
|
|
8947
|
+
"return": {
|
|
8948
|
+
"type": {
|
|
8949
|
+
"text": "void"
|
|
8950
|
+
}
|
|
8951
|
+
},
|
|
8952
|
+
"parameters": [
|
|
8953
|
+
{
|
|
8954
|
+
"name": "visibleFields",
|
|
8955
|
+
"type": {
|
|
8956
|
+
"text": "string[]"
|
|
8957
|
+
},
|
|
8958
|
+
"description": "Field names of the currently visible columns."
|
|
8959
|
+
}
|
|
8960
|
+
],
|
|
8961
|
+
"description": "Notifies the datasource of the field names of the currently visible columns.",
|
|
8962
|
+
"privacy": "public"
|
|
8963
|
+
},
|
|
8934
8964
|
{
|
|
8935
8965
|
"kind": "method",
|
|
8936
8966
|
"name": "restart"
|
|
@@ -10220,6 +10250,32 @@
|
|
|
10220
10250
|
"module": "src/datasource/base.datasource.ts"
|
|
10221
10251
|
}
|
|
10222
10252
|
},
|
|
10253
|
+
{
|
|
10254
|
+
"kind": "field",
|
|
10255
|
+
"name": "requestVisibleColumnsOnly",
|
|
10256
|
+
"type": {
|
|
10257
|
+
"text": "boolean"
|
|
10258
|
+
},
|
|
10259
|
+
"privacy": "public",
|
|
10260
|
+
"default": "false",
|
|
10261
|
+
"description": "When enabled and column definitions are provided, the datasource requests data only for the\ncolumns that are currently visible. The visible set is seeded from the column config (columns\nnot flagged with `hide`) and updated by the host grid via `setVisibleColumns`; the data\nis reloaded whenever that set changes.",
|
|
10262
|
+
"inheritedFrom": {
|
|
10263
|
+
"name": "GridProBaseDatasource",
|
|
10264
|
+
"module": "src/datasource/base.datasource.ts"
|
|
10265
|
+
}
|
|
10266
|
+
},
|
|
10267
|
+
{
|
|
10268
|
+
"kind": "field",
|
|
10269
|
+
"name": "_visibleColumns",
|
|
10270
|
+
"type": {
|
|
10271
|
+
"text": "string[] | undefined"
|
|
10272
|
+
},
|
|
10273
|
+
"privacy": "private",
|
|
10274
|
+
"inheritedFrom": {
|
|
10275
|
+
"name": "GridProGenesisDatasource",
|
|
10276
|
+
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
10277
|
+
}
|
|
10278
|
+
},
|
|
10223
10279
|
{
|
|
10224
10280
|
"kind": "field",
|
|
10225
10281
|
"name": "dataSub",
|
|
@@ -10686,6 +10742,30 @@
|
|
|
10686
10742
|
"module": "src/datasource/base.datasource.ts"
|
|
10687
10743
|
}
|
|
10688
10744
|
},
|
|
10745
|
+
{
|
|
10746
|
+
"kind": "method",
|
|
10747
|
+
"name": "setVisibleColumns",
|
|
10748
|
+
"return": {
|
|
10749
|
+
"type": {
|
|
10750
|
+
"text": "void"
|
|
10751
|
+
}
|
|
10752
|
+
},
|
|
10753
|
+
"parameters": [
|
|
10754
|
+
{
|
|
10755
|
+
"name": "visibleFields",
|
|
10756
|
+
"type": {
|
|
10757
|
+
"text": "string[]"
|
|
10758
|
+
},
|
|
10759
|
+
"description": "Field names of the currently visible columns."
|
|
10760
|
+
}
|
|
10761
|
+
],
|
|
10762
|
+
"description": "Updates the set of visible columns and reloads the data when the set changes.",
|
|
10763
|
+
"privacy": "public",
|
|
10764
|
+
"inheritedFrom": {
|
|
10765
|
+
"name": "GridProBaseDatasource",
|
|
10766
|
+
"module": "src/datasource/base.datasource.ts"
|
|
10767
|
+
}
|
|
10768
|
+
},
|
|
10689
10769
|
{
|
|
10690
10770
|
"kind": "method",
|
|
10691
10771
|
"name": "loadMore",
|
|
@@ -11474,6 +11554,19 @@
|
|
|
11474
11554
|
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
11475
11555
|
}
|
|
11476
11556
|
},
|
|
11557
|
+
{
|
|
11558
|
+
"name": "request-visible-columns-only",
|
|
11559
|
+
"type": {
|
|
11560
|
+
"text": "boolean"
|
|
11561
|
+
},
|
|
11562
|
+
"default": "false",
|
|
11563
|
+
"description": "When enabled and column definitions are provided, the datasource requests data only for the\ncolumns that are currently visible. The visible set is seeded from the column config (columns\nnot flagged with `hide`) and updated by the host grid via `setVisibleColumns`; the data\nis reloaded whenever that set changes.",
|
|
11564
|
+
"fieldName": "requestVisibleColumnsOnly",
|
|
11565
|
+
"inheritedFrom": {
|
|
11566
|
+
"name": "GridProGenesisDatasource",
|
|
11567
|
+
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
11568
|
+
}
|
|
11569
|
+
},
|
|
11477
11570
|
{
|
|
11478
11571
|
"name": "criteria",
|
|
11479
11572
|
"type": {
|
|
@@ -12259,6 +12352,20 @@
|
|
|
12259
12352
|
"module": "src/datasource/base.datasource.ts"
|
|
12260
12353
|
}
|
|
12261
12354
|
},
|
|
12355
|
+
{
|
|
12356
|
+
"kind": "field",
|
|
12357
|
+
"name": "requestVisibleColumnsOnly",
|
|
12358
|
+
"type": {
|
|
12359
|
+
"text": "boolean"
|
|
12360
|
+
},
|
|
12361
|
+
"privacy": "public",
|
|
12362
|
+
"default": "false",
|
|
12363
|
+
"description": "Whether the datasource should request data only for the columns that are currently visible.",
|
|
12364
|
+
"inheritedFrom": {
|
|
12365
|
+
"name": "GridProBaseDatasource",
|
|
12366
|
+
"module": "src/datasource/base.datasource.ts"
|
|
12367
|
+
}
|
|
12368
|
+
},
|
|
12262
12369
|
{
|
|
12263
12370
|
"kind": "field",
|
|
12264
12371
|
"name": "rowData",
|
|
@@ -12482,6 +12589,30 @@
|
|
|
12482
12589
|
"module": "src/datasource/base.datasource.ts"
|
|
12483
12590
|
}
|
|
12484
12591
|
},
|
|
12592
|
+
{
|
|
12593
|
+
"kind": "method",
|
|
12594
|
+
"name": "setVisibleColumns",
|
|
12595
|
+
"return": {
|
|
12596
|
+
"type": {
|
|
12597
|
+
"text": "void"
|
|
12598
|
+
}
|
|
12599
|
+
},
|
|
12600
|
+
"parameters": [
|
|
12601
|
+
{
|
|
12602
|
+
"name": "visibleFields",
|
|
12603
|
+
"type": {
|
|
12604
|
+
"text": "string[]"
|
|
12605
|
+
},
|
|
12606
|
+
"description": "Field names of the currently visible columns."
|
|
12607
|
+
}
|
|
12608
|
+
],
|
|
12609
|
+
"description": "Notifies the datasource of the field names of the currently visible columns.",
|
|
12610
|
+
"privacy": "public",
|
|
12611
|
+
"inheritedFrom": {
|
|
12612
|
+
"name": "GridProBaseDatasource",
|
|
12613
|
+
"module": "src/datasource/base.datasource.ts"
|
|
12614
|
+
}
|
|
12615
|
+
},
|
|
12485
12616
|
{
|
|
12486
12617
|
"kind": "field",
|
|
12487
12618
|
"name": "_isDisconnected",
|
|
@@ -16156,6 +16287,28 @@
|
|
|
16156
16287
|
"module": "src/datasource/base.datasource.ts"
|
|
16157
16288
|
}
|
|
16158
16289
|
},
|
|
16290
|
+
{
|
|
16291
|
+
"kind": "field",
|
|
16292
|
+
"name": "requestVisibleColumnsOnly",
|
|
16293
|
+
"type": {
|
|
16294
|
+
"text": "boolean"
|
|
16295
|
+
},
|
|
16296
|
+
"privacy": "public",
|
|
16297
|
+
"default": "false",
|
|
16298
|
+
"description": "When enabled and column definitions are provided, the datasource requests data only for the\ncolumns that are currently visible. The visible set is seeded from the column config (columns\nnot flagged with `hide`) and updated by the host grid via `setVisibleColumns`; the data\nis reloaded whenever that set changes.",
|
|
16299
|
+
"inheritedFrom": {
|
|
16300
|
+
"name": "GridProBaseDatasource",
|
|
16301
|
+
"module": "src/datasource/base.datasource.ts"
|
|
16302
|
+
}
|
|
16303
|
+
},
|
|
16304
|
+
{
|
|
16305
|
+
"kind": "field",
|
|
16306
|
+
"name": "_visibleColumns",
|
|
16307
|
+
"type": {
|
|
16308
|
+
"text": "string[] | undefined"
|
|
16309
|
+
},
|
|
16310
|
+
"privacy": "private"
|
|
16311
|
+
},
|
|
16159
16312
|
{
|
|
16160
16313
|
"kind": "field",
|
|
16161
16314
|
"name": "dataSub",
|
|
@@ -16555,6 +16708,30 @@
|
|
|
16555
16708
|
"module": "src/datasource/base.datasource.ts"
|
|
16556
16709
|
}
|
|
16557
16710
|
},
|
|
16711
|
+
{
|
|
16712
|
+
"kind": "method",
|
|
16713
|
+
"name": "setVisibleColumns",
|
|
16714
|
+
"return": {
|
|
16715
|
+
"type": {
|
|
16716
|
+
"text": "void"
|
|
16717
|
+
}
|
|
16718
|
+
},
|
|
16719
|
+
"parameters": [
|
|
16720
|
+
{
|
|
16721
|
+
"name": "visibleFields",
|
|
16722
|
+
"type": {
|
|
16723
|
+
"text": "string[]"
|
|
16724
|
+
},
|
|
16725
|
+
"description": "Field names of the currently visible columns."
|
|
16726
|
+
}
|
|
16727
|
+
],
|
|
16728
|
+
"description": "Updates the set of visible columns and reloads the data when the set changes.",
|
|
16729
|
+
"privacy": "public",
|
|
16730
|
+
"inheritedFrom": {
|
|
16731
|
+
"name": "GridProBaseDatasource",
|
|
16732
|
+
"module": "src/datasource/base.datasource.ts"
|
|
16733
|
+
}
|
|
16734
|
+
},
|
|
16558
16735
|
{
|
|
16559
16736
|
"kind": "method",
|
|
16560
16737
|
"name": "loadMore",
|
|
@@ -17508,6 +17685,15 @@
|
|
|
17508
17685
|
"default": "false",
|
|
17509
17686
|
"fieldName": "keepColDefsOnClearRowData"
|
|
17510
17687
|
},
|
|
17688
|
+
{
|
|
17689
|
+
"name": "request-visible-columns-only",
|
|
17690
|
+
"type": {
|
|
17691
|
+
"text": "boolean"
|
|
17692
|
+
},
|
|
17693
|
+
"default": "false",
|
|
17694
|
+
"description": "When enabled and column definitions are provided, the datasource requests data only for the\ncolumns that are currently visible. The visible set is seeded from the column config (columns\nnot flagged with `hide`) and updated by the host grid via `setVisibleColumns`; the data\nis reloaded whenever that set changes.",
|
|
17695
|
+
"fieldName": "requestVisibleColumnsOnly"
|
|
17696
|
+
},
|
|
17511
17697
|
{
|
|
17512
17698
|
"name": "criteria",
|
|
17513
17699
|
"type": {
|
|
@@ -547,6 +547,11 @@ interface TransactionData {
|
|
|
547
547
|
export declare class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
548
548
|
protected dataSubWasLoggedOff: boolean;
|
|
549
549
|
keepColDefsOnClearRowData: boolean;
|
|
550
|
+
/**
|
|
551
|
+
* Whether the datasource should request data only for the columns that are currently visible.
|
|
552
|
+
* @remarks Defaults to false. Concrete datasources that support column-scoped requests override this.
|
|
553
|
+
*/
|
|
554
|
+
requestVisibleColumnsOnly: boolean;
|
|
550
555
|
rowData: Map<string, any>;
|
|
551
556
|
protected transactionData: TransactionData;
|
|
552
557
|
protected connectionSub: Subscription | undefined;
|
|
@@ -568,6 +573,14 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
568
573
|
private mapTransaction;
|
|
569
574
|
protected pagination: boolean;
|
|
570
575
|
loadMore(): void;
|
|
576
|
+
/**
|
|
577
|
+
* Notifies the datasource of the field names of the currently visible columns.
|
|
578
|
+
* @remarks No-op by default. Datasources that support column-scoped requests override this to
|
|
579
|
+
* narrow the server query and reload data when the visible column set changes.
|
|
580
|
+
* @param visibleFields - Field names of the currently visible columns.
|
|
581
|
+
* @public
|
|
582
|
+
*/
|
|
583
|
+
setVisibleColumns(visibleFields: string[]): void;
|
|
571
584
|
restart(): void;
|
|
572
585
|
reloadResourceData(): void;
|
|
573
586
|
destroy(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EACL,OAAO,EACP,UAAU,EAGV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,aAAa,EAId,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAUrD,OAAO,EAA4B,KAAK,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAE7F;;;GAGG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC;;;GAGG;AACH,eAAO,MAAM,YAAY,SAAS,CAAC;;;;QAU8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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gB,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG;IAIjD;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IA6BtB,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC;IAE9B,QAAQ;IAIR;;;;;;OAMG;IACH,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,IAAI;IAEhD,OAAO;IAIP,kBAAkB;IAIlB,OAAO;IAIP,OAAO,CAAC,eAAe,CAAS;IAEhC;;;OAGG;IACI,eAAe,CAAC,YAAY,EAAE,OAAO;IAa5C;;OAEG;IACI,cAAc,IAAI,OAAO;IAIhC;;;OAGG;IACH,SAAS,CAAC,wBAAwB,CAAC,CAAC,EAAE,WAAW,EAAE,OAAO,GAAG,CAAC,GAAG,SAAS,GAAG;QAC3E,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,CAAC,EAAE,CAAC,CAAC;KACZ;IAaD;;;;OAIG;IACI,4BAA4B,CAAC,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,GAAG,GAAG,EAAE;CAiExF"}
|
|
@@ -710,6 +710,19 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
710
710
|
* @public
|
|
711
711
|
*/
|
|
712
712
|
get gridProDatasource(): GridProBaseDatasource;
|
|
713
|
+
/**
|
|
714
|
+
* Notifies the datasource of the currently visible columns so it can narrow the server request
|
|
715
|
+
* when `requestVisibleColumnsOnly` is enabled.
|
|
716
|
+
* @internal
|
|
717
|
+
*/
|
|
718
|
+
private notifyDatasourceVisibleColumns;
|
|
719
|
+
/**
|
|
720
|
+
* Resolves the field names of the currently visible columns.
|
|
721
|
+
* @remarks Prefers the live grid columns (reflects runtime visibility toggles); falls back to the
|
|
722
|
+
* current column defs (available earlier in the lifecycle), treating `hide` as not visible.
|
|
723
|
+
* @internal
|
|
724
|
+
*/
|
|
725
|
+
private getVisibleColumnFields;
|
|
713
726
|
set gridOptions(options: GridOptions);
|
|
714
727
|
private setLocalGridOptions;
|
|
715
728
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro-beta.d.ts","sourceRoot":"","sources":["../../src/grid-pro-beta.ts"],"names":[],"mappings":"AAOA,OAAO,EAAyB,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,MAAM,
|
|
1
|
+
{"version":3,"file":"grid-pro-beta.d.ts","sourceRoot":"","sources":["../../src/grid-pro-beta.ts"],"names":[],"mappings":"AAOA,OAAO,EAAyB,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,MAAM,EAEN,WAAW,EAGX,OAAO,EACP,WAAW,EACX,UAAU,EAEX,MAAM,mBAAmB,CAAC;AA2C3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAsBrE,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAKL,iBAAiB,EAEjB,sBAAsB,EACtB,2BAA2B,EAE5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;;;;;;;kBAQvD,CAAA;;;;;;;;8BAsDK,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA2B0B,CAAC;4IAGF,CAAC;wFAGuC,CAAC;+IAMvD,CAAC;2FAEkD,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+B/D,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBAiDQ,CAAC;;;;;;;;;;;;;6BAoBZ,CAAC;8BAE8B,CAAC;kBACA,CAAC;;oBAEnB,CAAA;;sBACyC,CAAC;oBAEjD,CAAC;;;;;;;;gDAcY,CAAA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AQ;IAkBhB;;;;;;;;OAQG;IACG,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+GzF,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,gBAAgB;IA2BxB,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,mBAAmB;IAe3B,OAAO,CAAC,kBAAkB;IAW1B,SAAS,CAAC,2BAA2B,CAAC,WAAW,EAAE,WAAW;IAuC9D,IAAI,kBAAkB,aAWrB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAkBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;CAgBrC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
1
2
|
import { GridProBaseDatasource } from '../datasource/base.datasource';
|
|
2
3
|
/**
|
|
3
4
|
* Interface for transaction data
|
|
@@ -355,7 +356,11 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
355
356
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
356
357
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
357
358
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
358
|
-
ontouchstart
|
|
359
|
+
ontouchstart? /**
|
|
360
|
+
* Returns the field names of the configured columns that are not hidden, used to seed the visible
|
|
361
|
+
* set before the host grid reports runtime visibility.
|
|
362
|
+
* @internal
|
|
363
|
+
*/: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
359
364
|
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
360
365
|
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
361
366
|
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
@@ -405,6 +410,15 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
405
410
|
requestChanged(oldRequest: string, newRequest: string): void;
|
|
406
411
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
407
412
|
keepColDefsOnClearRowData: boolean;
|
|
413
|
+
/**
|
|
414
|
+
* When enabled and column definitions are provided, the datasource requests data only for the
|
|
415
|
+
* columns that are currently visible. The visible set is seeded from the column config (columns
|
|
416
|
+
* not flagged with `hide`) and updated by the host grid via `setVisibleColumns`; the data
|
|
417
|
+
* is reloaded whenever that set changes.
|
|
418
|
+
* @remarks DATASERVER only. Defaults to false.
|
|
419
|
+
*/
|
|
420
|
+
requestVisibleColumnsOnly: boolean;
|
|
421
|
+
private _visibleColumns;
|
|
408
422
|
private dataSub;
|
|
409
423
|
private updateSub;
|
|
410
424
|
private requiresFullRowDataAndColDefs;
|
|
@@ -521,6 +535,38 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
521
535
|
* @param deletes - List of records to remove from the grid stream
|
|
522
536
|
*/
|
|
523
537
|
handleStreamDeletes(deletes?: any[]): void;
|
|
538
|
+
/**
|
|
539
|
+
* Extends the base options to constrain the requested fields to the visible columns when
|
|
540
|
+
* `requestVisibleColumnsOnly` is enabled.
|
|
541
|
+
* @remarks DATASERVER only; for other resource types the derived `fields` are ignored.
|
|
542
|
+
* @internal
|
|
543
|
+
*/
|
|
544
|
+
protected datasourceOptions(): DatasourceOptions;
|
|
545
|
+
/**
|
|
546
|
+
* Builds the DATASERVER `FIELDS` string (space-separated) from the visible columns, always
|
|
547
|
+
* including the `rowId` so rows can be tracked.
|
|
548
|
+
* @internal
|
|
549
|
+
*/
|
|
550
|
+
private getRequestedFields;
|
|
551
|
+
/**
|
|
552
|
+
* Returns the field names of the configured columns that are not hidden, used to seed the visible
|
|
553
|
+
* set before the host grid reports runtime visibility.
|
|
554
|
+
* @internal
|
|
555
|
+
*/
|
|
556
|
+
private getConfiguredVisibleColumns;
|
|
557
|
+
/**
|
|
558
|
+
* Updates the set of visible columns and reloads the data when the set changes.
|
|
559
|
+
* @remarks Called by the host grid on column visibility changes when `requestVisibleColumnsOnly`
|
|
560
|
+
* is enabled. DATASERVER only; no-ops for other resource types.
|
|
561
|
+
* @param visibleFields - Field names of the currently visible columns.
|
|
562
|
+
* @public
|
|
563
|
+
*/
|
|
564
|
+
setVisibleColumns(visibleFields: string[]): void;
|
|
565
|
+
/**
|
|
566
|
+
* Compares two column field lists irrespective of order.
|
|
567
|
+
* @internal
|
|
568
|
+
*/
|
|
569
|
+
private columnsChanged;
|
|
524
570
|
loadMore(): void;
|
|
525
571
|
}
|
|
526
572
|
export {};
|
|
@@ -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":"
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EAUlB,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAqB,MAAM,+BAA+B,CAAC;AAqBzF;;GAEG;AACH,UAAU,eAAe;IACvB,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;;;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CAAC,OAAO,QAAK;IAKhC,mBAAmB,CAAC,OAAO,QAAK;IAKzC;;;OAGG;IACM,mBAAmB,CAAC,OAAO,QAAK;IAKzC;;;;;OAKG;cACgB,iBAAiB,IAAI,iBAAiB;IAazD;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAc1B;;;;OAIG;IACH,OAAO,CAAC,2BAA2B;IAQnC;;;;;;OAMG;IACM,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE;IAqBlD;;;OAGG;IACH,OAAO,CAAC,cAAc;IASb,QAAQ;CA+BlB"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -52,7 +52,13 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
52
52
|
showPopover(): void;
|
|
53
53
|
togglePopover(options?: boolean): boolean;
|
|
54
54
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
55
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options
|
|
55
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options
|
|
56
|
+
/**
|
|
57
|
+
* Boolean attribute to control whether the grid automatically sizes columns to fit their content.
|
|
58
|
+
* This will call AG Grid's autoSizeColumns() method to automatically adjust column widths based on content.
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
?: boolean | AddEventListenerOptions): void;
|
|
56
62
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
57
63
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
58
64
|
readonly attributes: NamedNodeMap;
|
|
@@ -759,6 +765,20 @@ export declare class GridPro extends GridPro_base {
|
|
|
759
765
|
* @public
|
|
760
766
|
*/
|
|
761
767
|
get gridProDatasource(): GridProBaseDatasource;
|
|
768
|
+
/**
|
|
769
|
+
* Notifies the datasource of the currently visible columns so it can narrow the server request
|
|
770
|
+
* when `requestVisibleColumnsOnly` is enabled.
|
|
771
|
+
* @internal
|
|
772
|
+
*/
|
|
773
|
+
private notifyDatasourceVisibleColumns;
|
|
774
|
+
/**
|
|
775
|
+
* Resolves the field names of the currently visible columns.
|
|
776
|
+
* @remarks Prefers the live column API (reflects runtime visibility toggles); falls back to the
|
|
777
|
+
* current column defs (available earlier in the lifecycle than the column API), treating `hide`
|
|
778
|
+
* as not visible.
|
|
779
|
+
* @internal
|
|
780
|
+
*/
|
|
781
|
+
private getVisibleColumnFields;
|
|
762
782
|
set gridOptions(options: GridOptionsConfig);
|
|
763
783
|
private setLocalGridOptions;
|
|
764
784
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EAEN,SAAS,EAGT,OAAO,EACP,WAAW,EACX,UAAU,EAEX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAyB,IAAI,EAAkB,MAAM,yBAAyB,CAAC;AASnG,OAAO,EAAyB,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAuB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAiBrE,OAAO,EACL,aAAa,EAKd,MAAM,wBAAwB,CAAC;AAGhC,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAQL,iBAAiB,EAEjB,sBAAsB,EACtB,2BAA2B,EAE5B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C,kBAAkB;IAW1B,SAAS,CAAC,2BAA2B,CAAC,WAAW,EAAE,WAAW;IAuC9D;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAU1B;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAa7B;;;OAGG;IACH,OAAO,CAAC,2BAA2B;IAUnC;;;OAGG;IACH,OAAO,CAAC,yBAAyB;IAsBjC;;;;;OAKG;IACH,OAAO,CAAC,0BAA0B;IAKlC;;;OAGG;IACH,OAAO,CAAC,YAAY;IAepB,IAAI,kBAAkB,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"}
|
|
@@ -356,6 +356,11 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
356
356
|
super(...arguments);
|
|
357
357
|
this.dataSubWasLoggedOff = false;
|
|
358
358
|
this.keepColDefsOnClearRowData = false;
|
|
359
|
+
/**
|
|
360
|
+
* Whether the datasource should request data only for the columns that are currently visible.
|
|
361
|
+
* @remarks Defaults to false. Concrete datasources that support column-scoped requests override this.
|
|
362
|
+
*/
|
|
363
|
+
this.requestVisibleColumnsOnly = false;
|
|
359
364
|
this.rowData = new Map();
|
|
360
365
|
this.transactionData = {
|
|
361
366
|
add: [],
|
|
@@ -553,6 +558,14 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
553
558
|
loadMore() {
|
|
554
559
|
throw new Error('loadMore() method must be implemented by subclass');
|
|
555
560
|
}
|
|
561
|
+
/**
|
|
562
|
+
* Notifies the datasource of the field names of the currently visible columns.
|
|
563
|
+
* @remarks No-op by default. Datasources that support column-scoped requests override this to
|
|
564
|
+
* narrow the server query and reload data when the visible column set changes.
|
|
565
|
+
* @param visibleFields - Field names of the currently visible columns.
|
|
566
|
+
* @public
|
|
567
|
+
*/
|
|
568
|
+
setVisibleColumns(visibleFields) { }
|
|
556
569
|
restart() {
|
|
557
570
|
throw new Error('restart() method must be implemented by subclass');
|
|
558
571
|
}
|
|
@@ -825,12 +825,49 @@ export class GridProBeta extends LifecycleMixin(FoundationElement) {
|
|
|
825
825
|
this.querySelector('grid-pro-client-side-datasource') ||
|
|
826
826
|
this.querySelector('grid-pro-server-side-datasource'));
|
|
827
827
|
}
|
|
828
|
+
/**
|
|
829
|
+
* Notifies the datasource of the currently visible columns so it can narrow the server request
|
|
830
|
+
* when `requestVisibleColumnsOnly` is enabled.
|
|
831
|
+
* @internal
|
|
832
|
+
*/
|
|
833
|
+
notifyDatasourceVisibleColumns() {
|
|
834
|
+
const datasource = this.gridProDatasource;
|
|
835
|
+
if (!(datasource === null || datasource === void 0 ? void 0 : datasource.requestVisibleColumnsOnly))
|
|
836
|
+
return;
|
|
837
|
+
const visibleFields = this.getVisibleColumnFields();
|
|
838
|
+
// Skip empty results so we never overwrite a known visible set with nothing (e.g. when the
|
|
839
|
+
// grid API/defs aren't populated yet during early lifecycle).
|
|
840
|
+
if (!visibleFields.length)
|
|
841
|
+
return;
|
|
842
|
+
datasource.setVisibleColumns(visibleFields);
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* Resolves the field names of the currently visible columns.
|
|
846
|
+
* @remarks Prefers the live grid columns (reflects runtime visibility toggles); falls back to the
|
|
847
|
+
* current column defs (available earlier in the lifecycle), treating `hide` as not visible.
|
|
848
|
+
* @internal
|
|
849
|
+
*/
|
|
850
|
+
getVisibleColumnFields() {
|
|
851
|
+
var _a, _b, _c, _d, _e;
|
|
852
|
+
const columns = (_b = (_a = this.gridApi) === null || _a === void 0 ? void 0 : _a.getColumns) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
853
|
+
if (columns === null || columns === void 0 ? void 0 : columns.length) {
|
|
854
|
+
return columns
|
|
855
|
+
.filter((column) => column.isVisible())
|
|
856
|
+
.map((column) => column.getColDef().field)
|
|
857
|
+
.filter((field) => !!field);
|
|
858
|
+
}
|
|
859
|
+
const colDefs = ((_e = (_d = (_c = this.gridApi) === null || _c === void 0 ? void 0 : _c.getColumnDefs) === null || _d === void 0 ? void 0 : _d.call(_c)) !== null && _e !== void 0 ? _e : []);
|
|
860
|
+
return colDefs
|
|
861
|
+
.filter((colDef) => 'field' in colDef && !!colDef.field && !colDef.hide)
|
|
862
|
+
.map((colDef) => colDef.field);
|
|
863
|
+
}
|
|
828
864
|
set gridOptions(options) {
|
|
829
865
|
const gridOnChangeCallback = () => {
|
|
830
866
|
if (this.disposed || !this.isConnected)
|
|
831
867
|
return;
|
|
832
868
|
this.debouncedSaveColumnState();
|
|
833
869
|
this.debouncedColumnAutosize();
|
|
870
|
+
this.notifyDatasourceVisibleColumns();
|
|
834
871
|
};
|
|
835
872
|
// Collect attributes and map them to AG Grid properties
|
|
836
873
|
Array.from(this.attributes).forEach((attribute) => {
|
|
@@ -839,7 +876,7 @@ export class GridProBeta extends LifecycleMixin(FoundationElement) {
|
|
|
839
876
|
return;
|
|
840
877
|
this.agAttributes[attrName] = attribute.value;
|
|
841
878
|
});
|
|
842
|
-
const { columnDefs, components, defaultColDef, getRowId, onGridReady, onFilterChanged } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "getRowId", "onGridReady", "onFilterChanged"]);
|
|
879
|
+
const { columnDefs, components, defaultColDef, getRowId, onGridReady, onFilterChanged, onFirstDataRendered } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "getRowId", "onGridReady", "onFilterChanged", "onFirstDataRendered"]);
|
|
843
880
|
const derivedOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.gridOptionsConfig), { defaultColDef: Object.assign({ enableCellChangeFlash: this.enableCellFlashing, filter: true, resizable: true, sortable: true }, defaultColDef), components: this.combineAllGridComponents(components), headerHeight: this.headerHeight, rowHeight: this.rowHeight, animateRows: false, suppressDragLeaveHidesColumns: true }), this.eventsAndCallbacks), { onGridReady: (event) => {
|
|
844
881
|
var _a, _b, _c;
|
|
845
882
|
this.gridApi = event.api;
|
|
@@ -869,12 +906,22 @@ export class GridProBeta extends LifecycleMixin(FoundationElement) {
|
|
|
869
906
|
event,
|
|
870
907
|
gridId: this.id,
|
|
871
908
|
});
|
|
909
|
+
// Seed the datasource with the initially visible columns so the first request can be
|
|
910
|
+
// narrowed (when `requestVisibleColumnsOnly` is enabled), before the load is kicked off.
|
|
911
|
+
this.notifyDatasourceVisibleColumns();
|
|
872
912
|
// TODO: prevent rendering datasource slot until grid is ready
|
|
873
913
|
// so there is no need for this even and handling it in datasources
|
|
874
914
|
(_c = this.gridProDatasource) === null || _c === void 0 ? void 0 : _c.$emit(datasourceEventNames.ready, { pagination: this.pagination });
|
|
875
915
|
this.restoreColumnState();
|
|
876
916
|
this.restoreCachedFilterConfig();
|
|
877
917
|
this.debouncedColumnAutosize();
|
|
918
|
+
}, onFirstDataRendered: (event) => {
|
|
919
|
+
// Safety net: by now the grid columns are populated, so (re)seed the datasource's visible
|
|
920
|
+
// columns in case the initial grid-ready seed ran before columns were available.
|
|
921
|
+
this.notifyDatasourceVisibleColumns();
|
|
922
|
+
if (onFirstDataRendered) {
|
|
923
|
+
onFirstDataRendered(event);
|
|
924
|
+
}
|
|
878
925
|
}, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: (filterChangedEvent) => {
|
|
879
926
|
if (this.disposed || !this.isConnected)
|
|
880
927
|
return;
|
|
@@ -48,6 +48,14 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
48
48
|
addIndex: 0,
|
|
49
49
|
};
|
|
50
50
|
this.keepColDefsOnClearRowData = false;
|
|
51
|
+
/**
|
|
52
|
+
* When enabled and column definitions are provided, the datasource requests data only for the
|
|
53
|
+
* columns that are currently visible. The visible set is seeded from the column config (columns
|
|
54
|
+
* not flagged with `hide`) and updated by the host grid via `setVisibleColumns`; the data
|
|
55
|
+
* is reloaded whenever that set changes.
|
|
56
|
+
* @remarks DATASERVER only. Defaults to false.
|
|
57
|
+
*/
|
|
58
|
+
this.requestVisibleColumnsOnly = false;
|
|
51
59
|
this.requiresFullRowDataAndColDefs = true;
|
|
52
60
|
this._lastMoreRows = false;
|
|
53
61
|
this._isMoreRowsResult = false;
|
|
@@ -176,6 +184,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
176
184
|
this.connectionSub = undefined;
|
|
177
185
|
}
|
|
178
186
|
this._sourceRef = undefined;
|
|
187
|
+
this._visibleColumns = undefined;
|
|
179
188
|
this.clearRowData();
|
|
180
189
|
this._lastMoreRows = false;
|
|
181
190
|
this._isMoreRowsResult = false;
|
|
@@ -564,6 +573,85 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
564
573
|
super.handleStreamDeletes(deletes);
|
|
565
574
|
this.updateCachedRowArray();
|
|
566
575
|
}
|
|
576
|
+
/**
|
|
577
|
+
* Extends the base options to constrain the requested fields to the visible columns when
|
|
578
|
+
* `requestVisibleColumnsOnly` is enabled.
|
|
579
|
+
* @remarks DATASERVER only; for other resource types the derived `fields` are ignored.
|
|
580
|
+
* @internal
|
|
581
|
+
*/
|
|
582
|
+
datasourceOptions() {
|
|
583
|
+
const options = super.datasourceOptions();
|
|
584
|
+
if (this.requestVisibleColumnsOnly) {
|
|
585
|
+
const fields = this.getRequestedFields();
|
|
586
|
+
if (fields) {
|
|
587
|
+
options.fields = fields;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
return options;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Builds the DATASERVER `FIELDS` string (space-separated) from the visible columns, always
|
|
594
|
+
* including the `rowId` so rows can be tracked.
|
|
595
|
+
* @internal
|
|
596
|
+
*/
|
|
597
|
+
getRequestedFields() {
|
|
598
|
+
var _a;
|
|
599
|
+
const visibleColumns = ((_a = this._visibleColumns) === null || _a === void 0 ? void 0 : _a.length)
|
|
600
|
+
? this._visibleColumns
|
|
601
|
+
: this.getConfiguredVisibleColumns();
|
|
602
|
+
if (!visibleColumns.length)
|
|
603
|
+
return undefined;
|
|
604
|
+
const fields = visibleColumns.includes(this.rowId)
|
|
605
|
+
? visibleColumns
|
|
606
|
+
: [this.rowId, ...visibleColumns];
|
|
607
|
+
return fields.join(' ');
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* Returns the field names of the configured columns that are not hidden, used to seed the visible
|
|
611
|
+
* set before the host grid reports runtime visibility.
|
|
612
|
+
* @internal
|
|
613
|
+
*/
|
|
614
|
+
getConfiguredVisibleColumns() {
|
|
615
|
+
var _a, _b;
|
|
616
|
+
const columnDefs = (_b = (_a = this.deferredGridOptions) === null || _a === void 0 ? void 0 : _a.columnDefs) !== null && _b !== void 0 ? _b : [];
|
|
617
|
+
return columnDefs
|
|
618
|
+
.filter((colDef) => !!colDef.field && !colDef.hide)
|
|
619
|
+
.map((colDef) => colDef.field);
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Updates the set of visible columns and reloads the data when the set changes.
|
|
623
|
+
* @remarks Called by the host grid on column visibility changes when `requestVisibleColumnsOnly`
|
|
624
|
+
* is enabled. DATASERVER only; no-ops for other resource types.
|
|
625
|
+
* @param visibleFields - Field names of the currently visible columns.
|
|
626
|
+
* @public
|
|
627
|
+
*/
|
|
628
|
+
setVisibleColumns(visibleFields) {
|
|
629
|
+
var _a;
|
|
630
|
+
if (!this.requestVisibleColumnsOnly)
|
|
631
|
+
return;
|
|
632
|
+
const previous = (_a = this._visibleColumns) !== null && _a !== void 0 ? _a : this.getConfiguredVisibleColumns();
|
|
633
|
+
// Always seed the visible set so the initial request can be narrowed, even before the
|
|
634
|
+
// datasource has initialized and its resource type is known.
|
|
635
|
+
this._visibleColumns = visibleFields;
|
|
636
|
+
// Narrowing applies to DATASERVER only; reload once initialized and the visible set changes.
|
|
637
|
+
if (this.datasource.resourceType !== ResourceType.DATASERVER ||
|
|
638
|
+
!this.datasource.initialized ||
|
|
639
|
+
!this.columnsChanged(previous, visibleFields)) {
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
this.reloadResourceData();
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* Compares two column field lists irrespective of order.
|
|
646
|
+
* @internal
|
|
647
|
+
*/
|
|
648
|
+
columnsChanged(previous, next) {
|
|
649
|
+
if (previous.length !== next.length)
|
|
650
|
+
return true;
|
|
651
|
+
const previousSorted = [...previous].sort();
|
|
652
|
+
const nextSorted = [...next].sort();
|
|
653
|
+
return nextSorted.some((field, index) => field !== previousSorted[index]);
|
|
654
|
+
}
|
|
567
655
|
loadMore() {
|
|
568
656
|
switch (this.datasource.resourceType) {
|
|
569
657
|
case ResourceType.DATASERVER:
|
|
@@ -596,6 +684,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
596
684
|
__decorate([
|
|
597
685
|
attr({ mode: 'boolean', attribute: 'keep-col-defs-on-clear-row-data' })
|
|
598
686
|
], GridProGenesisDatasource.prototype, "keepColDefsOnClearRowData", void 0);
|
|
687
|
+
__decorate([
|
|
688
|
+
attr({ mode: 'boolean', attribute: 'request-visible-columns-only' })
|
|
689
|
+
], GridProGenesisDatasource.prototype, "requestVisibleColumnsOnly", void 0);
|
|
599
690
|
GridProGenesisDatasource = __decorate([
|
|
600
691
|
customElement({
|
|
601
692
|
name: 'grid-pro-genesis-datasource',
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -885,6 +885,43 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
885
885
|
this.querySelector('grid-pro-client-side-datasource') ||
|
|
886
886
|
this.querySelector('grid-pro-server-side-datasource'));
|
|
887
887
|
}
|
|
888
|
+
/**
|
|
889
|
+
* Notifies the datasource of the currently visible columns so it can narrow the server request
|
|
890
|
+
* when `requestVisibleColumnsOnly` is enabled.
|
|
891
|
+
* @internal
|
|
892
|
+
*/
|
|
893
|
+
notifyDatasourceVisibleColumns() {
|
|
894
|
+
const datasource = this.gridProDatasource;
|
|
895
|
+
if (!(datasource === null || datasource === void 0 ? void 0 : datasource.requestVisibleColumnsOnly))
|
|
896
|
+
return;
|
|
897
|
+
const visibleFields = this.getVisibleColumnFields();
|
|
898
|
+
// Skip empty results so we never overwrite a known visible set with nothing (e.g. when the
|
|
899
|
+
// column API/defs aren't populated yet during early lifecycle).
|
|
900
|
+
if (!visibleFields.length)
|
|
901
|
+
return;
|
|
902
|
+
datasource.setVisibleColumns(visibleFields);
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* Resolves the field names of the currently visible columns.
|
|
906
|
+
* @remarks Prefers the live column API (reflects runtime visibility toggles); falls back to the
|
|
907
|
+
* current column defs (available earlier in the lifecycle than the column API), treating `hide`
|
|
908
|
+
* as not visible.
|
|
909
|
+
* @internal
|
|
910
|
+
*/
|
|
911
|
+
getVisibleColumnFields() {
|
|
912
|
+
var _a, _b, _c, _d, _e;
|
|
913
|
+
const columns = (_b = (_a = this.columnApi) === null || _a === void 0 ? void 0 : _a.getColumns) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
914
|
+
if (columns === null || columns === void 0 ? void 0 : columns.length) {
|
|
915
|
+
return columns
|
|
916
|
+
.filter((column) => column.isVisible())
|
|
917
|
+
.map((column) => column.getColDef().field)
|
|
918
|
+
.filter((field) => !!field);
|
|
919
|
+
}
|
|
920
|
+
const colDefs = ((_e = (_d = (_c = this.gridApi) === null || _c === void 0 ? void 0 : _c.getColumnDefs) === null || _d === void 0 ? void 0 : _d.call(_c)) !== null && _e !== void 0 ? _e : []);
|
|
921
|
+
return colDefs
|
|
922
|
+
.filter((colDef) => 'field' in colDef && !!colDef.field && !colDef.hide)
|
|
923
|
+
.map((colDef) => colDef.field);
|
|
924
|
+
}
|
|
888
925
|
set gridOptions(options) {
|
|
889
926
|
const gridOnChangeCallback = () => {
|
|
890
927
|
if (this.disposed || !this.isConnected)
|
|
@@ -892,6 +929,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
892
929
|
this.debouncedSaveColumnState();
|
|
893
930
|
this.debouncedColumnAutosize();
|
|
894
931
|
this.invalidateColumnWidthCache();
|
|
932
|
+
this.notifyDatasourceVisibleColumns();
|
|
895
933
|
};
|
|
896
934
|
Array.from(this.attributes).forEach((attribute) => {
|
|
897
935
|
const attrName = this.agPropertiesMap[attribute.name];
|
|
@@ -931,6 +969,9 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
931
969
|
event,
|
|
932
970
|
gridId: this.id,
|
|
933
971
|
});
|
|
972
|
+
// Seed the datasource with the initially visible columns so the first request can be
|
|
973
|
+
// narrowed (when `requestVisibleColumnsOnly` is enabled), before the load is kicked off.
|
|
974
|
+
this.notifyDatasourceVisibleColumns();
|
|
934
975
|
// Emit datasource ready event, signals that the datasource is ready to be used
|
|
935
976
|
// TODO: prevent rendering datasource slot until grid is ready
|
|
936
977
|
// so there is no need for this even and handling it in datasources
|
|
@@ -941,6 +982,9 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
941
982
|
}, onFirstDataRendered: (event) => {
|
|
942
983
|
// Handle column sizing
|
|
943
984
|
this.handleColumnSizing();
|
|
985
|
+
// Safety net: by now the column API is populated, so (re)seed the datasource's visible
|
|
986
|
+
// columns in case the initial grid-ready seed ran before columns were available.
|
|
987
|
+
this.notifyDatasourceVisibleColumns();
|
|
944
988
|
// Call the original onFirstDataRendered if provided
|
|
945
989
|
if (onFirstDataRendered) {
|
|
946
990
|
onFirstDataRendered(event);
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -14750,6 +14750,36 @@
|
|
|
14750
14750
|
"isAbstract": false,
|
|
14751
14751
|
"name": "reloadResourceData"
|
|
14752
14752
|
},
|
|
14753
|
+
{
|
|
14754
|
+
"kind": "Property",
|
|
14755
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#requestVisibleColumnsOnly:member",
|
|
14756
|
+
"docComment": "/**\n * Whether the datasource should request data only for the columns that are currently visible.\n *\n * @remarks\n *\n * Defaults to false. Concrete datasources that support column-scoped requests override this.\n */\n",
|
|
14757
|
+
"excerptTokens": [
|
|
14758
|
+
{
|
|
14759
|
+
"kind": "Content",
|
|
14760
|
+
"text": "requestVisibleColumnsOnly: "
|
|
14761
|
+
},
|
|
14762
|
+
{
|
|
14763
|
+
"kind": "Content",
|
|
14764
|
+
"text": "boolean"
|
|
14765
|
+
},
|
|
14766
|
+
{
|
|
14767
|
+
"kind": "Content",
|
|
14768
|
+
"text": ";"
|
|
14769
|
+
}
|
|
14770
|
+
],
|
|
14771
|
+
"isReadonly": false,
|
|
14772
|
+
"isOptional": false,
|
|
14773
|
+
"releaseTag": "Public",
|
|
14774
|
+
"name": "requestVisibleColumnsOnly",
|
|
14775
|
+
"propertyTypeTokenRange": {
|
|
14776
|
+
"startIndex": 1,
|
|
14777
|
+
"endIndex": 2
|
|
14778
|
+
},
|
|
14779
|
+
"isStatic": false,
|
|
14780
|
+
"isProtected": false,
|
|
14781
|
+
"isAbstract": false
|
|
14782
|
+
},
|
|
14753
14783
|
{
|
|
14754
14784
|
"kind": "Method",
|
|
14755
14785
|
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#restart:member(1)",
|
|
@@ -14864,6 +14894,54 @@
|
|
|
14864
14894
|
"isAbstract": false,
|
|
14865
14895
|
"name": "setDisconnected"
|
|
14866
14896
|
},
|
|
14897
|
+
{
|
|
14898
|
+
"kind": "Method",
|
|
14899
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#setVisibleColumns:member(1)",
|
|
14900
|
+
"docComment": "/**\n * Notifies the datasource of the field names of the currently visible columns.\n *\n * @remarks\n *\n * No-op by default. Datasources that support column-scoped requests override this to narrow the server query and reload data when the visible column set changes.\n *\n * @param visibleFields - Field names of the currently visible columns.\n *\n * @public\n */\n",
|
|
14901
|
+
"excerptTokens": [
|
|
14902
|
+
{
|
|
14903
|
+
"kind": "Content",
|
|
14904
|
+
"text": "setVisibleColumns(visibleFields: "
|
|
14905
|
+
},
|
|
14906
|
+
{
|
|
14907
|
+
"kind": "Content",
|
|
14908
|
+
"text": "string[]"
|
|
14909
|
+
},
|
|
14910
|
+
{
|
|
14911
|
+
"kind": "Content",
|
|
14912
|
+
"text": "): "
|
|
14913
|
+
},
|
|
14914
|
+
{
|
|
14915
|
+
"kind": "Content",
|
|
14916
|
+
"text": "void"
|
|
14917
|
+
},
|
|
14918
|
+
{
|
|
14919
|
+
"kind": "Content",
|
|
14920
|
+
"text": ";"
|
|
14921
|
+
}
|
|
14922
|
+
],
|
|
14923
|
+
"isStatic": false,
|
|
14924
|
+
"returnTypeTokenRange": {
|
|
14925
|
+
"startIndex": 3,
|
|
14926
|
+
"endIndex": 4
|
|
14927
|
+
},
|
|
14928
|
+
"releaseTag": "Public",
|
|
14929
|
+
"isProtected": false,
|
|
14930
|
+
"overloadIndex": 1,
|
|
14931
|
+
"parameters": [
|
|
14932
|
+
{
|
|
14933
|
+
"parameterName": "visibleFields",
|
|
14934
|
+
"parameterTypeTokenRange": {
|
|
14935
|
+
"startIndex": 1,
|
|
14936
|
+
"endIndex": 2
|
|
14937
|
+
},
|
|
14938
|
+
"isOptional": false
|
|
14939
|
+
}
|
|
14940
|
+
],
|
|
14941
|
+
"isOptional": false,
|
|
14942
|
+
"isAbstract": false,
|
|
14943
|
+
"name": "setVisibleColumns"
|
|
14944
|
+
},
|
|
14867
14945
|
{
|
|
14868
14946
|
"kind": "Method",
|
|
14869
14947
|
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#subscribeToConnection:member(1)",
|
|
@@ -19958,6 +20036,36 @@
|
|
|
19958
20036
|
"isAbstract": false,
|
|
19959
20037
|
"name": "requestChanged"
|
|
19960
20038
|
},
|
|
20039
|
+
{
|
|
20040
|
+
"kind": "Property",
|
|
20041
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#requestVisibleColumnsOnly:member",
|
|
20042
|
+
"docComment": "/**\n * When enabled and column definitions are provided, the datasource requests data only for the columns that are currently visible. The visible set is seeded from the column config (columns not flagged with `hide`) and updated by the host grid via `setVisibleColumns`; the data is reloaded whenever that set changes.\n *\n * @remarks\n *\n * DATASERVER only. Defaults to false.\n */\n",
|
|
20043
|
+
"excerptTokens": [
|
|
20044
|
+
{
|
|
20045
|
+
"kind": "Content",
|
|
20046
|
+
"text": "requestVisibleColumnsOnly: "
|
|
20047
|
+
},
|
|
20048
|
+
{
|
|
20049
|
+
"kind": "Content",
|
|
20050
|
+
"text": "boolean"
|
|
20051
|
+
},
|
|
20052
|
+
{
|
|
20053
|
+
"kind": "Content",
|
|
20054
|
+
"text": ";"
|
|
20055
|
+
}
|
|
20056
|
+
],
|
|
20057
|
+
"isReadonly": false,
|
|
20058
|
+
"isOptional": false,
|
|
20059
|
+
"releaseTag": "Public",
|
|
20060
|
+
"name": "requestVisibleColumnsOnly",
|
|
20061
|
+
"propertyTypeTokenRange": {
|
|
20062
|
+
"startIndex": 1,
|
|
20063
|
+
"endIndex": 2
|
|
20064
|
+
},
|
|
20065
|
+
"isStatic": false,
|
|
20066
|
+
"isProtected": false,
|
|
20067
|
+
"isAbstract": false
|
|
20068
|
+
},
|
|
19961
20069
|
{
|
|
19962
20070
|
"kind": "Method",
|
|
19963
20071
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#reset:member(1)",
|
|
@@ -20153,6 +20261,54 @@
|
|
|
20153
20261
|
"isAbstract": false,
|
|
20154
20262
|
"name": "setFilter"
|
|
20155
20263
|
},
|
|
20264
|
+
{
|
|
20265
|
+
"kind": "Method",
|
|
20266
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#setVisibleColumns:member(1)",
|
|
20267
|
+
"docComment": "/**\n * Updates the set of visible columns and reloads the data when the set changes.\n *\n * @remarks\n *\n * Called by the host grid on column visibility changes when `requestVisibleColumnsOnly` is enabled. DATASERVER only; no-ops for other resource types.\n *\n * @param visibleFields - Field names of the currently visible columns.\n *\n * @public\n */\n",
|
|
20268
|
+
"excerptTokens": [
|
|
20269
|
+
{
|
|
20270
|
+
"kind": "Content",
|
|
20271
|
+
"text": "setVisibleColumns(visibleFields: "
|
|
20272
|
+
},
|
|
20273
|
+
{
|
|
20274
|
+
"kind": "Content",
|
|
20275
|
+
"text": "string[]"
|
|
20276
|
+
},
|
|
20277
|
+
{
|
|
20278
|
+
"kind": "Content",
|
|
20279
|
+
"text": "): "
|
|
20280
|
+
},
|
|
20281
|
+
{
|
|
20282
|
+
"kind": "Content",
|
|
20283
|
+
"text": "void"
|
|
20284
|
+
},
|
|
20285
|
+
{
|
|
20286
|
+
"kind": "Content",
|
|
20287
|
+
"text": ";"
|
|
20288
|
+
}
|
|
20289
|
+
],
|
|
20290
|
+
"isStatic": false,
|
|
20291
|
+
"returnTypeTokenRange": {
|
|
20292
|
+
"startIndex": 3,
|
|
20293
|
+
"endIndex": 4
|
|
20294
|
+
},
|
|
20295
|
+
"releaseTag": "Public",
|
|
20296
|
+
"isProtected": false,
|
|
20297
|
+
"overloadIndex": 1,
|
|
20298
|
+
"parameters": [
|
|
20299
|
+
{
|
|
20300
|
+
"parameterName": "visibleFields",
|
|
20301
|
+
"parameterTypeTokenRange": {
|
|
20302
|
+
"startIndex": 1,
|
|
20303
|
+
"endIndex": 2
|
|
20304
|
+
},
|
|
20305
|
+
"isOptional": false
|
|
20306
|
+
}
|
|
20307
|
+
],
|
|
20308
|
+
"isOptional": false,
|
|
20309
|
+
"isAbstract": false,
|
|
20310
|
+
"name": "setVisibleColumns"
|
|
20311
|
+
},
|
|
20156
20312
|
{
|
|
20157
20313
|
"kind": "Property",
|
|
20158
20314
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#transactionData:member",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -2454,6 +2454,20 @@ export declare class GridPro extends GridPro_base {
|
|
|
2454
2454
|
* @public
|
|
2455
2455
|
*/
|
|
2456
2456
|
get gridProDatasource(): GridProBaseDatasource;
|
|
2457
|
+
/**
|
|
2458
|
+
* Notifies the datasource of the currently visible columns so it can narrow the server request
|
|
2459
|
+
* when `requestVisibleColumnsOnly` is enabled.
|
|
2460
|
+
* @internal
|
|
2461
|
+
*/
|
|
2462
|
+
private notifyDatasourceVisibleColumns;
|
|
2463
|
+
/**
|
|
2464
|
+
* Resolves the field names of the currently visible columns.
|
|
2465
|
+
* @remarks Prefers the live column API (reflects runtime visibility toggles); falls back to the
|
|
2466
|
+
* current column defs (available earlier in the lifecycle than the column API), treating `hide`
|
|
2467
|
+
* as not visible.
|
|
2468
|
+
* @internal
|
|
2469
|
+
*/
|
|
2470
|
+
private getVisibleColumnFields;
|
|
2457
2471
|
set gridOptions(options: GridOptionsConfig);
|
|
2458
2472
|
private setLocalGridOptions;
|
|
2459
2473
|
/**
|
|
@@ -2571,7 +2585,13 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
2571
2585
|
showPopover(): void;
|
|
2572
2586
|
togglePopover(options?: boolean): boolean;
|
|
2573
2587
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2574
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options
|
|
2588
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options
|
|
2589
|
+
/**
|
|
2590
|
+
* Boolean attribute to control whether the grid automatically sizes columns to fit their content.
|
|
2591
|
+
* This will call AG Grid's autoSizeColumns() method to automatically adjust column widths based on content.
|
|
2592
|
+
* @public
|
|
2593
|
+
*/
|
|
2594
|
+
?: boolean | AddEventListenerOptions): void;
|
|
2575
2595
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2576
2596
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2577
2597
|
readonly attributes: NamedNodeMap;
|
|
@@ -2897,6 +2917,11 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
2897
2917
|
export declare class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
2898
2918
|
protected dataSubWasLoggedOff: boolean;
|
|
2899
2919
|
keepColDefsOnClearRowData: boolean;
|
|
2920
|
+
/**
|
|
2921
|
+
* Whether the datasource should request data only for the columns that are currently visible.
|
|
2922
|
+
* @remarks Defaults to false. Concrete datasources that support column-scoped requests override this.
|
|
2923
|
+
*/
|
|
2924
|
+
requestVisibleColumnsOnly: boolean;
|
|
2900
2925
|
rowData: Map<string, any>;
|
|
2901
2926
|
protected transactionData: TransactionData;
|
|
2902
2927
|
protected connectionSub: Subscription | undefined;
|
|
@@ -2918,6 +2943,14 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
2918
2943
|
private mapTransaction;
|
|
2919
2944
|
protected pagination: boolean;
|
|
2920
2945
|
loadMore(): void;
|
|
2946
|
+
/**
|
|
2947
|
+
* Notifies the datasource of the field names of the currently visible columns.
|
|
2948
|
+
* @remarks No-op by default. Datasources that support column-scoped requests override this to
|
|
2949
|
+
* narrow the server query and reload data when the visible column set changes.
|
|
2950
|
+
* @param visibleFields - Field names of the currently visible columns.
|
|
2951
|
+
* @public
|
|
2952
|
+
*/
|
|
2953
|
+
setVisibleColumns(visibleFields: string[]): void;
|
|
2921
2954
|
restart(): void;
|
|
2922
2955
|
reloadResourceData(): void;
|
|
2923
2956
|
destroy(): void;
|
|
@@ -3286,6 +3319,19 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
3286
3319
|
* @public
|
|
3287
3320
|
*/
|
|
3288
3321
|
get gridProDatasource(): GridProBaseDatasource;
|
|
3322
|
+
/**
|
|
3323
|
+
* Notifies the datasource of the currently visible columns so it can narrow the server request
|
|
3324
|
+
* when `requestVisibleColumnsOnly` is enabled.
|
|
3325
|
+
* @internal
|
|
3326
|
+
*/
|
|
3327
|
+
private notifyDatasourceVisibleColumns;
|
|
3328
|
+
/**
|
|
3329
|
+
* Resolves the field names of the currently visible columns.
|
|
3330
|
+
* @remarks Prefers the live grid columns (reflects runtime visibility toggles); falls back to the
|
|
3331
|
+
* current column defs (available earlier in the lifecycle), treating `hide` as not visible.
|
|
3332
|
+
* @internal
|
|
3333
|
+
*/
|
|
3334
|
+
private getVisibleColumnFields;
|
|
3289
3335
|
set gridOptions(options: GridOptions_2);
|
|
3290
3336
|
private setLocalGridOptions;
|
|
3291
3337
|
/**
|
|
@@ -4372,6 +4418,15 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
4372
4418
|
requestChanged(oldRequest: string, newRequest: string): void;
|
|
4373
4419
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
4374
4420
|
keepColDefsOnClearRowData: boolean;
|
|
4421
|
+
/**
|
|
4422
|
+
* When enabled and column definitions are provided, the datasource requests data only for the
|
|
4423
|
+
* columns that are currently visible. The visible set is seeded from the column config (columns
|
|
4424
|
+
* not flagged with `hide`) and updated by the host grid via `setVisibleColumns`; the data
|
|
4425
|
+
* is reloaded whenever that set changes.
|
|
4426
|
+
* @remarks DATASERVER only. Defaults to false.
|
|
4427
|
+
*/
|
|
4428
|
+
requestVisibleColumnsOnly: boolean;
|
|
4429
|
+
private _visibleColumns;
|
|
4375
4430
|
private dataSub;
|
|
4376
4431
|
private updateSub;
|
|
4377
4432
|
private requiresFullRowDataAndColDefs;
|
|
@@ -4488,6 +4543,38 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
4488
4543
|
* @param deletes - List of records to remove from the grid stream
|
|
4489
4544
|
*/
|
|
4490
4545
|
handleStreamDeletes(deletes?: any[]): void;
|
|
4546
|
+
/**
|
|
4547
|
+
* Extends the base options to constrain the requested fields to the visible columns when
|
|
4548
|
+
* `requestVisibleColumnsOnly` is enabled.
|
|
4549
|
+
* @remarks DATASERVER only; for other resource types the derived `fields` are ignored.
|
|
4550
|
+
* @internal
|
|
4551
|
+
*/
|
|
4552
|
+
protected datasourceOptions(): DatasourceOptions;
|
|
4553
|
+
/**
|
|
4554
|
+
* Builds the DATASERVER `FIELDS` string (space-separated) from the visible columns, always
|
|
4555
|
+
* including the `rowId` so rows can be tracked.
|
|
4556
|
+
* @internal
|
|
4557
|
+
*/
|
|
4558
|
+
private getRequestedFields;
|
|
4559
|
+
/**
|
|
4560
|
+
* Returns the field names of the configured columns that are not hidden, used to seed the visible
|
|
4561
|
+
* set before the host grid reports runtime visibility.
|
|
4562
|
+
* @internal
|
|
4563
|
+
*/
|
|
4564
|
+
private getConfiguredVisibleColumns;
|
|
4565
|
+
/**
|
|
4566
|
+
* Updates the set of visible columns and reloads the data when the set changes.
|
|
4567
|
+
* @remarks Called by the host grid on column visibility changes when `requestVisibleColumnsOnly`
|
|
4568
|
+
* is enabled. DATASERVER only; no-ops for other resource types.
|
|
4569
|
+
* @param visibleFields - Field names of the currently visible columns.
|
|
4570
|
+
* @public
|
|
4571
|
+
*/
|
|
4572
|
+
setVisibleColumns(visibleFields: string[]): void;
|
|
4573
|
+
/**
|
|
4574
|
+
* Compares two column field lists irrespective of order.
|
|
4575
|
+
* @internal
|
|
4576
|
+
*/
|
|
4577
|
+
private columnsChanged;
|
|
4491
4578
|
loadMore(): void;
|
|
4492
4579
|
}
|
|
4493
4580
|
|
|
@@ -4838,7 +4925,11 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
4838
4925
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
4839
4926
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
4840
4927
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
4841
|
-
ontouchstart
|
|
4928
|
+
ontouchstart? /**
|
|
4929
|
+
* Returns the field names of the configured columns that are not hidden, used to seed the visible
|
|
4930
|
+
* set before the host grid reports runtime visibility.
|
|
4931
|
+
* @internal
|
|
4932
|
+
*/: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
4842
4933
|
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
4843
4934
|
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
4844
4935
|
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/grid-pro",
|
|
3
3
|
"description": "Genesis Foundation AG Grid",
|
|
4
|
-
"version": "14.451.
|
|
4
|
+
"version": "14.451.5-alpha-ec85af7.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@genesislcap/foundation-testing": "14.451.
|
|
44
|
-
"@genesislcap/genx": "14.451.
|
|
45
|
-
"@genesislcap/rollup-builder": "14.451.
|
|
46
|
-
"@genesislcap/ts-builder": "14.451.
|
|
47
|
-
"@genesislcap/uvu-playwright-builder": "14.451.
|
|
48
|
-
"@genesislcap/vite-builder": "14.451.
|
|
49
|
-
"@genesislcap/webpack-builder": "14.451.
|
|
43
|
+
"@genesislcap/foundation-testing": "14.451.5-alpha-ec85af7.0",
|
|
44
|
+
"@genesislcap/genx": "14.451.5-alpha-ec85af7.0",
|
|
45
|
+
"@genesislcap/rollup-builder": "14.451.5-alpha-ec85af7.0",
|
|
46
|
+
"@genesislcap/ts-builder": "14.451.5-alpha-ec85af7.0",
|
|
47
|
+
"@genesislcap/uvu-playwright-builder": "14.451.5-alpha-ec85af7.0",
|
|
48
|
+
"@genesislcap/vite-builder": "14.451.5-alpha-ec85af7.0",
|
|
49
|
+
"@genesislcap/webpack-builder": "14.451.5-alpha-ec85af7.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@genesislcap/foundation-comms": "14.451.
|
|
53
|
-
"@genesislcap/foundation-criteria": "14.451.
|
|
54
|
-
"@genesislcap/foundation-logger": "14.451.
|
|
55
|
-
"@genesislcap/foundation-ui": "14.451.
|
|
56
|
-
"@genesislcap/foundation-utils": "14.451.
|
|
52
|
+
"@genesislcap/foundation-comms": "14.451.5-alpha-ec85af7.0",
|
|
53
|
+
"@genesislcap/foundation-criteria": "14.451.5-alpha-ec85af7.0",
|
|
54
|
+
"@genesislcap/foundation-logger": "14.451.5-alpha-ec85af7.0",
|
|
55
|
+
"@genesislcap/foundation-ui": "14.451.5-alpha-ec85af7.0",
|
|
56
|
+
"@genesislcap/foundation-utils": "14.451.5-alpha-ec85af7.0",
|
|
57
57
|
"@microsoft/fast-colors": "5.3.1",
|
|
58
58
|
"@microsoft/fast-components": "2.30.6",
|
|
59
59
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"require": "./dist/react.cjs"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "306802b7ae3cccf4f8ace7c3e147e0cc2347d4da"
|
|
95
95
|
}
|