@genesislcap/grid-pro 14.451.5-alpha-ec85af7.0 → 14.452.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 -186
- package/dist/dts/datasource/base.datasource.d.ts +0 -13
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro-beta.d.ts +0 -13
- package/dist/dts/grid-pro-beta.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +1 -47
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +1 -21
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/datasource/base.datasource.js +0 -13
- package/dist/esm/grid-pro-beta.js +1 -48
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +0 -91
- package/dist/esm/grid-pro.js +0 -44
- package/dist/grid-pro.api.json +0 -156
- package/dist/grid-pro.d.ts +2 -93
- package/package.json +14 -14
|
@@ -8738,16 +8738,6 @@
|
|
|
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
|
-
},
|
|
8751
8741
|
{
|
|
8752
8742
|
"kind": "field",
|
|
8753
8743
|
"name": "rowData",
|
|
@@ -8941,26 +8931,6 @@
|
|
|
8941
8931
|
"kind": "method",
|
|
8942
8932
|
"name": "loadMore"
|
|
8943
8933
|
},
|
|
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
|
-
},
|
|
8964
8934
|
{
|
|
8965
8935
|
"kind": "method",
|
|
8966
8936
|
"name": "restart"
|
|
@@ -10250,32 +10220,6 @@
|
|
|
10250
10220
|
"module": "src/datasource/base.datasource.ts"
|
|
10251
10221
|
}
|
|
10252
10222
|
},
|
|
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
|
-
},
|
|
10279
10223
|
{
|
|
10280
10224
|
"kind": "field",
|
|
10281
10225
|
"name": "dataSub",
|
|
@@ -10742,30 +10686,6 @@
|
|
|
10742
10686
|
"module": "src/datasource/base.datasource.ts"
|
|
10743
10687
|
}
|
|
10744
10688
|
},
|
|
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
|
-
},
|
|
10769
10689
|
{
|
|
10770
10690
|
"kind": "method",
|
|
10771
10691
|
"name": "loadMore",
|
|
@@ -11554,19 +11474,6 @@
|
|
|
11554
11474
|
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
11555
11475
|
}
|
|
11556
11476
|
},
|
|
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
|
-
},
|
|
11570
11477
|
{
|
|
11571
11478
|
"name": "criteria",
|
|
11572
11479
|
"type": {
|
|
@@ -12352,20 +12259,6 @@
|
|
|
12352
12259
|
"module": "src/datasource/base.datasource.ts"
|
|
12353
12260
|
}
|
|
12354
12261
|
},
|
|
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
|
-
},
|
|
12369
12262
|
{
|
|
12370
12263
|
"kind": "field",
|
|
12371
12264
|
"name": "rowData",
|
|
@@ -12589,30 +12482,6 @@
|
|
|
12589
12482
|
"module": "src/datasource/base.datasource.ts"
|
|
12590
12483
|
}
|
|
12591
12484
|
},
|
|
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
|
-
},
|
|
12616
12485
|
{
|
|
12617
12486
|
"kind": "field",
|
|
12618
12487
|
"name": "_isDisconnected",
|
|
@@ -16287,28 +16156,6 @@
|
|
|
16287
16156
|
"module": "src/datasource/base.datasource.ts"
|
|
16288
16157
|
}
|
|
16289
16158
|
},
|
|
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
|
-
},
|
|
16312
16159
|
{
|
|
16313
16160
|
"kind": "field",
|
|
16314
16161
|
"name": "dataSub",
|
|
@@ -16708,30 +16555,6 @@
|
|
|
16708
16555
|
"module": "src/datasource/base.datasource.ts"
|
|
16709
16556
|
}
|
|
16710
16557
|
},
|
|
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
|
-
},
|
|
16735
16558
|
{
|
|
16736
16559
|
"kind": "method",
|
|
16737
16560
|
"name": "loadMore",
|
|
@@ -17685,15 +17508,6 @@
|
|
|
17685
17508
|
"default": "false",
|
|
17686
17509
|
"fieldName": "keepColDefsOnClearRowData"
|
|
17687
17510
|
},
|
|
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
|
-
},
|
|
17697
17511
|
{
|
|
17698
17512
|
"name": "criteria",
|
|
17699
17513
|
"type": {
|
|
@@ -547,11 +547,6 @@ 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;
|
|
555
550
|
rowData: Map<string, any>;
|
|
556
551
|
protected transactionData: TransactionData;
|
|
557
552
|
protected connectionSub: Subscription | undefined;
|
|
@@ -573,14 +568,6 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
573
568
|
private mapTransaction;
|
|
574
569
|
protected pagination: boolean;
|
|
575
570
|
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;
|
|
584
571
|
restart(): void;
|
|
585
572
|
reloadResourceData(): void;
|
|
586
573
|
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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;IAIjD;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IA6BtB,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC;IAE9B,QAAQ;IAIR,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,19 +710,6 @@ 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;
|
|
726
713
|
set gridOptions(options: GridOptions);
|
|
727
714
|
private setLocalGridOptions;
|
|
728
715
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro-beta.d.ts","sourceRoot":"","sources":["../../src/grid-pro-beta.ts"],"names":[],"mappings":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,4 +1,3 @@
|
|
|
1
|
-
import { DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
2
1
|
import { GridProBaseDatasource } from '../datasource/base.datasource';
|
|
3
2
|
/**
|
|
4
3
|
* Interface for transaction data
|
|
@@ -356,11 +355,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
356
355
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
357
356
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
358
357
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
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;
|
|
358
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
364
359
|
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
365
360
|
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
366
361
|
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
@@ -410,15 +405,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
410
405
|
requestChanged(oldRequest: string, newRequest: string): void;
|
|
411
406
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
412
407
|
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;
|
|
422
408
|
private dataSub;
|
|
423
409
|
private updateSub;
|
|
424
410
|
private requiresFullRowDataAndColDefs;
|
|
@@ -535,38 +521,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
535
521
|
* @param deletes - List of records to remove from the grid stream
|
|
536
522
|
*/
|
|
537
523
|
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;
|
|
570
524
|
loadMore(): void;
|
|
571
525
|
}
|
|
572
526
|
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":"AAgBA,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;;;;;;;kBAsBsE,CAAC;;;;;;;;8BAsDtE,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAiCA,CAAC;4IAGX,CAAN;wFAKiC,CAAC;+IAMrB,CAAC;2FAE2C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgCjC,CAAC;;;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ChC,OAAO,CAAC,cAAc,CAAa;IAEnC,iBAAiB;IAUjB,oBAAoB;IAYX,SAAS,IAAI,IAAI;IAqB1B,OAAO,CAAC,gBAAgB;IAgBxB;;;;;;OAMG;IACG,IAAI,CAAC,yBAAyB,CAAC,EAAE,OAAO;IAiC9C;;;OAGG;IACM,OAAO;IAyChB;;;;OAIG;IACH,MAAM;IAKN;;;;OAIG;IACH,KAAK;IAKL;;;OAGG;IACY,OAAO;IAKtB;;OAEG;IACH,WAAW;IAKX;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;YACW,UAAU;IAwBxB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAI5B;;;OAGG;IACH,OAAO,CAAC,cAAc;IAOtB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAiBvB;;;;;;OAMG;IACU,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoBhD;;;;;;;OAOG;YACW,gBAAgB;IAwG9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,kBAAkB;IAU1B;;;;;;;OAOG;IACH,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,sBAAsB;IAoE9B,OAAO,CAAC,mBAAmB;YA0Bb,eAAe;IAWtB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAK5B,gBAAgB,CAAC,WAAW,EAAE,GAAG;IAI1C,OAAO,CAAC,iBAAiB;IAQhB,mBAAmB,CAAC,OAAO,QAAK;IAKhC,mBAAmB,CAAC,OAAO,QAAK;IAKzC;;;OAGG;IACM,mBAAmB,CAAC,OAAO,QAAK;IAKhC,QAAQ;CA+BlB"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -52,13 +52,7 @@ 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
|
|
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;
|
|
55
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
62
56
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
63
57
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
64
58
|
readonly attributes: NamedNodeMap;
|
|
@@ -765,20 +759,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
765
759
|
* @public
|
|
766
760
|
*/
|
|
767
761
|
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;
|
|
782
762
|
set gridOptions(options: GridOptionsConfig);
|
|
783
763
|
private setLocalGridOptions;
|
|
784
764
|
/**
|
|
@@ -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,EACN,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,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AA8BvD,OAAO,EAAE,aAAa,EAAE,CAAC;;;;;;;kBA1BrB,CAAC;;;;;;;;8BA2CA,CAAC,cAAe,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA8BsC,CAAC;4IAEpB,CAAC;wFAKlC,CAAC;+IAC2F,CAAA;2FAMhG,CAAD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+BC,CAAA;;;;;;;;;;;;;;;;;;;;;;;mBA0DyB,CAAC;;;;;;;;;;;;;6BAuB1B,CAAC;8BAAuE,CAAC;kBAE/B,CAAC;;oBAKjC,CAAC;;sBACX,CAAF;oBAC6D,CAAC;;;;;;;;gDAWzB,CAAC;;;;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EAAE,cAA0B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
|
|
@@ -356,11 +356,6 @@ 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;
|
|
364
359
|
this.rowData = new Map();
|
|
365
360
|
this.transactionData = {
|
|
366
361
|
add: [],
|
|
@@ -558,14 +553,6 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
558
553
|
loadMore() {
|
|
559
554
|
throw new Error('loadMore() method must be implemented by subclass');
|
|
560
555
|
}
|
|
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) { }
|
|
569
556
|
restart() {
|
|
570
557
|
throw new Error('restart() method must be implemented by subclass');
|
|
571
558
|
}
|
|
@@ -825,49 +825,12 @@ 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
|
-
}
|
|
864
828
|
set gridOptions(options) {
|
|
865
829
|
const gridOnChangeCallback = () => {
|
|
866
830
|
if (this.disposed || !this.isConnected)
|
|
867
831
|
return;
|
|
868
832
|
this.debouncedSaveColumnState();
|
|
869
833
|
this.debouncedColumnAutosize();
|
|
870
|
-
this.notifyDatasourceVisibleColumns();
|
|
871
834
|
};
|
|
872
835
|
// Collect attributes and map them to AG Grid properties
|
|
873
836
|
Array.from(this.attributes).forEach((attribute) => {
|
|
@@ -876,7 +839,7 @@ export class GridProBeta extends LifecycleMixin(FoundationElement) {
|
|
|
876
839
|
return;
|
|
877
840
|
this.agAttributes[attrName] = attribute.value;
|
|
878
841
|
});
|
|
879
|
-
const { columnDefs, components, defaultColDef, getRowId, onGridReady, onFilterChanged
|
|
842
|
+
const { columnDefs, components, defaultColDef, getRowId, onGridReady, onFilterChanged } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "getRowId", "onGridReady", "onFilterChanged"]);
|
|
880
843
|
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) => {
|
|
881
844
|
var _a, _b, _c;
|
|
882
845
|
this.gridApi = event.api;
|
|
@@ -906,22 +869,12 @@ export class GridProBeta extends LifecycleMixin(FoundationElement) {
|
|
|
906
869
|
event,
|
|
907
870
|
gridId: this.id,
|
|
908
871
|
});
|
|
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();
|
|
912
872
|
// TODO: prevent rendering datasource slot until grid is ready
|
|
913
873
|
// so there is no need for this even and handling it in datasources
|
|
914
874
|
(_c = this.gridProDatasource) === null || _c === void 0 ? void 0 : _c.$emit(datasourceEventNames.ready, { pagination: this.pagination });
|
|
915
875
|
this.restoreColumnState();
|
|
916
876
|
this.restoreCachedFilterConfig();
|
|
917
877
|
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
|
-
}
|
|
925
878
|
}, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: (filterChangedEvent) => {
|
|
926
879
|
if (this.disposed || !this.isConnected)
|
|
927
880
|
return;
|
|
@@ -48,14 +48,6 @@ 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;
|
|
59
51
|
this.requiresFullRowDataAndColDefs = true;
|
|
60
52
|
this._lastMoreRows = false;
|
|
61
53
|
this._isMoreRowsResult = false;
|
|
@@ -184,7 +176,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
184
176
|
this.connectionSub = undefined;
|
|
185
177
|
}
|
|
186
178
|
this._sourceRef = undefined;
|
|
187
|
-
this._visibleColumns = undefined;
|
|
188
179
|
this.clearRowData();
|
|
189
180
|
this._lastMoreRows = false;
|
|
190
181
|
this._isMoreRowsResult = false;
|
|
@@ -573,85 +564,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
573
564
|
super.handleStreamDeletes(deletes);
|
|
574
565
|
this.updateCachedRowArray();
|
|
575
566
|
}
|
|
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
|
-
}
|
|
655
567
|
loadMore() {
|
|
656
568
|
switch (this.datasource.resourceType) {
|
|
657
569
|
case ResourceType.DATASERVER:
|
|
@@ -684,9 +596,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
684
596
|
__decorate([
|
|
685
597
|
attr({ mode: 'boolean', attribute: 'keep-col-defs-on-clear-row-data' })
|
|
686
598
|
], GridProGenesisDatasource.prototype, "keepColDefsOnClearRowData", void 0);
|
|
687
|
-
__decorate([
|
|
688
|
-
attr({ mode: 'boolean', attribute: 'request-visible-columns-only' })
|
|
689
|
-
], GridProGenesisDatasource.prototype, "requestVisibleColumnsOnly", void 0);
|
|
690
599
|
GridProGenesisDatasource = __decorate([
|
|
691
600
|
customElement({
|
|
692
601
|
name: 'grid-pro-genesis-datasource',
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -885,43 +885,6 @@ 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
|
-
}
|
|
925
888
|
set gridOptions(options) {
|
|
926
889
|
const gridOnChangeCallback = () => {
|
|
927
890
|
if (this.disposed || !this.isConnected)
|
|
@@ -929,7 +892,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
929
892
|
this.debouncedSaveColumnState();
|
|
930
893
|
this.debouncedColumnAutosize();
|
|
931
894
|
this.invalidateColumnWidthCache();
|
|
932
|
-
this.notifyDatasourceVisibleColumns();
|
|
933
895
|
};
|
|
934
896
|
Array.from(this.attributes).forEach((attribute) => {
|
|
935
897
|
const attrName = this.agPropertiesMap[attribute.name];
|
|
@@ -969,9 +931,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
969
931
|
event,
|
|
970
932
|
gridId: this.id,
|
|
971
933
|
});
|
|
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();
|
|
975
934
|
// Emit datasource ready event, signals that the datasource is ready to be used
|
|
976
935
|
// TODO: prevent rendering datasource slot until grid is ready
|
|
977
936
|
// so there is no need for this even and handling it in datasources
|
|
@@ -982,9 +941,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
982
941
|
}, onFirstDataRendered: (event) => {
|
|
983
942
|
// Handle column sizing
|
|
984
943
|
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();
|
|
988
944
|
// Call the original onFirstDataRendered if provided
|
|
989
945
|
if (onFirstDataRendered) {
|
|
990
946
|
onFirstDataRendered(event);
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -14750,36 +14750,6 @@
|
|
|
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
|
-
},
|
|
14783
14753
|
{
|
|
14784
14754
|
"kind": "Method",
|
|
14785
14755
|
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#restart:member(1)",
|
|
@@ -14894,54 +14864,6 @@
|
|
|
14894
14864
|
"isAbstract": false,
|
|
14895
14865
|
"name": "setDisconnected"
|
|
14896
14866
|
},
|
|
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
|
-
},
|
|
14945
14867
|
{
|
|
14946
14868
|
"kind": "Method",
|
|
14947
14869
|
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#subscribeToConnection:member(1)",
|
|
@@ -20036,36 +19958,6 @@
|
|
|
20036
19958
|
"isAbstract": false,
|
|
20037
19959
|
"name": "requestChanged"
|
|
20038
19960
|
},
|
|
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
|
-
},
|
|
20069
19961
|
{
|
|
20070
19962
|
"kind": "Method",
|
|
20071
19963
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#reset:member(1)",
|
|
@@ -20261,54 +20153,6 @@
|
|
|
20261
20153
|
"isAbstract": false,
|
|
20262
20154
|
"name": "setFilter"
|
|
20263
20155
|
},
|
|
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
|
-
},
|
|
20312
20156
|
{
|
|
20313
20157
|
"kind": "Property",
|
|
20314
20158
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#transactionData:member",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -2454,20 +2454,6 @@ 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;
|
|
2471
2457
|
set gridOptions(options: GridOptionsConfig);
|
|
2472
2458
|
private setLocalGridOptions;
|
|
2473
2459
|
/**
|
|
@@ -2585,13 +2571,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
2585
2571
|
showPopover(): void;
|
|
2586
2572
|
togglePopover(options?: boolean): boolean;
|
|
2587
2573
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
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;
|
|
2574
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2595
2575
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2596
2576
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2597
2577
|
readonly attributes: NamedNodeMap;
|
|
@@ -2917,11 +2897,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
2917
2897
|
export declare class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
2918
2898
|
protected dataSubWasLoggedOff: boolean;
|
|
2919
2899
|
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;
|
|
2925
2900
|
rowData: Map<string, any>;
|
|
2926
2901
|
protected transactionData: TransactionData;
|
|
2927
2902
|
protected connectionSub: Subscription | undefined;
|
|
@@ -2943,14 +2918,6 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
2943
2918
|
private mapTransaction;
|
|
2944
2919
|
protected pagination: boolean;
|
|
2945
2920
|
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;
|
|
2954
2921
|
restart(): void;
|
|
2955
2922
|
reloadResourceData(): void;
|
|
2956
2923
|
destroy(): void;
|
|
@@ -3319,19 +3286,6 @@ export declare class GridProBeta extends GridProBeta_base {
|
|
|
3319
3286
|
* @public
|
|
3320
3287
|
*/
|
|
3321
3288
|
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;
|
|
3335
3289
|
set gridOptions(options: GridOptions_2);
|
|
3336
3290
|
private setLocalGridOptions;
|
|
3337
3291
|
/**
|
|
@@ -4418,15 +4372,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
4418
4372
|
requestChanged(oldRequest: string, newRequest: string): void;
|
|
4419
4373
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
4420
4374
|
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;
|
|
4430
4375
|
private dataSub;
|
|
4431
4376
|
private updateSub;
|
|
4432
4377
|
private requiresFullRowDataAndColDefs;
|
|
@@ -4543,38 +4488,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
4543
4488
|
* @param deletes - List of records to remove from the grid stream
|
|
4544
4489
|
*/
|
|
4545
4490
|
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;
|
|
4578
4491
|
loadMore(): void;
|
|
4579
4492
|
}
|
|
4580
4493
|
|
|
@@ -4925,11 +4838,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
4925
4838
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
4926
4839
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
4927
4840
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
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;
|
|
4841
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
4933
4842
|
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
4934
4843
|
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
4935
4844
|
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.
|
|
4
|
+
"version": "14.452.1",
|
|
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.
|
|
44
|
-
"@genesislcap/genx": "14.
|
|
45
|
-
"@genesislcap/rollup-builder": "14.
|
|
46
|
-
"@genesislcap/ts-builder": "14.
|
|
47
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
48
|
-
"@genesislcap/vite-builder": "14.
|
|
49
|
-
"@genesislcap/webpack-builder": "14.
|
|
43
|
+
"@genesislcap/foundation-testing": "14.452.1",
|
|
44
|
+
"@genesislcap/genx": "14.452.1",
|
|
45
|
+
"@genesislcap/rollup-builder": "14.452.1",
|
|
46
|
+
"@genesislcap/ts-builder": "14.452.1",
|
|
47
|
+
"@genesislcap/uvu-playwright-builder": "14.452.1",
|
|
48
|
+
"@genesislcap/vite-builder": "14.452.1",
|
|
49
|
+
"@genesislcap/webpack-builder": "14.452.1"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@genesislcap/foundation-comms": "14.
|
|
53
|
-
"@genesislcap/foundation-criteria": "14.
|
|
54
|
-
"@genesislcap/foundation-logger": "14.
|
|
55
|
-
"@genesislcap/foundation-ui": "14.
|
|
56
|
-
"@genesislcap/foundation-utils": "14.
|
|
52
|
+
"@genesislcap/foundation-comms": "14.452.1",
|
|
53
|
+
"@genesislcap/foundation-criteria": "14.452.1",
|
|
54
|
+
"@genesislcap/foundation-logger": "14.452.1",
|
|
55
|
+
"@genesislcap/foundation-ui": "14.452.1",
|
|
56
|
+
"@genesislcap/foundation-utils": "14.452.1",
|
|
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": "57cd7afd42c9a1554432603c66e4e5f750c3dc08"
|
|
95
95
|
}
|