@genesislcap/grid-pro 15.8.3 → 15.9.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 +1 -286
- package/dist/dts/datasource/base.types.d.ts +0 -4
- package/dist/dts/datasource/base.types.d.ts.map +1 -1
- package/dist/dts/datasource/datasource.types.d.ts +0 -8
- package/dist/dts/datasource/datasource.types.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.datasource.d.ts +27 -14
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-base.d.ts +0 -9
- package/dist/dts/datasource/server-side.resource-base.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-reqrep.d.ts +9 -9
- package/dist/dts/datasource/server-side.resource-reqrep.d.ts.map +1 -1
- package/dist/esm/datasource/server-side.datasource.js +40 -15
- package/dist/esm/datasource/server-side.resource-base.js +1 -24
- package/dist/esm/datasource/server-side.resource-reqrep.js +25 -102
- package/dist/grid-pro.api.json +3 -103
- package/dist/grid-pro.d.ts +27 -25
- package/package.json +14 -14
|
@@ -11884,15 +11884,6 @@
|
|
|
11884
11884
|
"text": "Datasource"
|
|
11885
11885
|
}
|
|
11886
11886
|
},
|
|
11887
|
-
{
|
|
11888
|
-
"kind": "field",
|
|
11889
|
-
"name": "zeroBasedViewNumber",
|
|
11890
|
-
"type": {
|
|
11891
|
-
"text": "boolean"
|
|
11892
|
-
},
|
|
11893
|
-
"default": "false",
|
|
11894
|
-
"description": "The starting VIEW_NUMBER of the data to be fetched."
|
|
11895
|
-
},
|
|
11896
11887
|
{
|
|
11897
11888
|
"kind": "field",
|
|
11898
11889
|
"name": "liveUpdates",
|
|
@@ -11902,14 +11893,6 @@
|
|
|
11902
11893
|
"default": "false",
|
|
11903
11894
|
"description": "Enable live updates for the grid."
|
|
11904
11895
|
},
|
|
11905
|
-
{
|
|
11906
|
-
"kind": "field",
|
|
11907
|
-
"name": "pagingMode",
|
|
11908
|
-
"type": {
|
|
11909
|
-
"text": "PagingMode | undefined"
|
|
11910
|
-
},
|
|
11911
|
-
"description": "The paging mode to use for data fetching."
|
|
11912
|
-
},
|
|
11913
11896
|
{
|
|
11914
11897
|
"kind": "field",
|
|
11915
11898
|
"name": "request",
|
|
@@ -13246,15 +13229,6 @@
|
|
|
13246
13229
|
}
|
|
13247
13230
|
],
|
|
13248
13231
|
"attributes": [
|
|
13249
|
-
{
|
|
13250
|
-
"name": "zero-based-view-number",
|
|
13251
|
-
"type": {
|
|
13252
|
-
"text": "boolean"
|
|
13253
|
-
},
|
|
13254
|
-
"default": "false",
|
|
13255
|
-
"description": "The starting VIEW_NUMBER of the data to be fetched.",
|
|
13256
|
-
"fieldName": "zeroBasedViewNumber"
|
|
13257
|
-
},
|
|
13258
13232
|
{
|
|
13259
13233
|
"name": "live-updates",
|
|
13260
13234
|
"type": {
|
|
@@ -13264,14 +13238,6 @@
|
|
|
13264
13238
|
"description": "Enable live updates for the grid.",
|
|
13265
13239
|
"fieldName": "liveUpdates"
|
|
13266
13240
|
},
|
|
13267
|
-
{
|
|
13268
|
-
"name": "paging-mode",
|
|
13269
|
-
"type": {
|
|
13270
|
-
"text": "PagingMode | undefined"
|
|
13271
|
-
},
|
|
13272
|
-
"description": "The paging mode to use for data fetching.",
|
|
13273
|
-
"fieldName": "pagingMode"
|
|
13274
|
-
},
|
|
13275
13241
|
{
|
|
13276
13242
|
"name": "criteria",
|
|
13277
13243
|
"type": {
|
|
@@ -13673,30 +13639,6 @@
|
|
|
13673
13639
|
},
|
|
13674
13640
|
"privacy": "protected"
|
|
13675
13641
|
},
|
|
13676
|
-
{
|
|
13677
|
-
"kind": "field",
|
|
13678
|
-
"name": "zeroBasedViewNumber",
|
|
13679
|
-
"type": {
|
|
13680
|
-
"text": "boolean"
|
|
13681
|
-
},
|
|
13682
|
-
"privacy": "protected"
|
|
13683
|
-
},
|
|
13684
|
-
{
|
|
13685
|
-
"kind": "field",
|
|
13686
|
-
"name": "pagingMode",
|
|
13687
|
-
"type": {
|
|
13688
|
-
"text": "PagingMode | undefined | undefined"
|
|
13689
|
-
},
|
|
13690
|
-
"privacy": "protected"
|
|
13691
|
-
},
|
|
13692
|
-
{
|
|
13693
|
-
"kind": "field",
|
|
13694
|
-
"name": "criteriaOnlyRequest",
|
|
13695
|
-
"type": {
|
|
13696
|
-
"text": "boolean | undefined"
|
|
13697
|
-
},
|
|
13698
|
-
"privacy": "protected"
|
|
13699
|
-
},
|
|
13700
13642
|
{
|
|
13701
13643
|
"kind": "field",
|
|
13702
13644
|
"name": "sourceRef",
|
|
@@ -14036,15 +13978,6 @@
|
|
|
14036
13978
|
}
|
|
14037
13979
|
]
|
|
14038
13980
|
},
|
|
14039
|
-
{
|
|
14040
|
-
"kind": "field",
|
|
14041
|
-
"name": "isNotFirstViewNumber",
|
|
14042
|
-
"type": {
|
|
14043
|
-
"text": "boolean"
|
|
14044
|
-
},
|
|
14045
|
-
"privacy": "protected",
|
|
14046
|
-
"readonly": true
|
|
14047
|
-
},
|
|
14048
13981
|
{
|
|
14049
13982
|
"kind": "method",
|
|
14050
13983
|
"name": "completeEmptyResult",
|
|
@@ -14108,17 +14041,6 @@
|
|
|
14108
14041
|
"text": "void"
|
|
14109
14042
|
}
|
|
14110
14043
|
}
|
|
14111
|
-
},
|
|
14112
|
-
{
|
|
14113
|
-
"kind": "method",
|
|
14114
|
-
"name": "getEffectivePagingMode",
|
|
14115
|
-
"privacy": "protected",
|
|
14116
|
-
"return": {
|
|
14117
|
-
"type": {
|
|
14118
|
-
"text": "PagingMode"
|
|
14119
|
-
}
|
|
14120
|
-
},
|
|
14121
|
-
"description": "Determines the effective paging mode based on criteriaOnlyRequest availability and user settings"
|
|
14122
14044
|
}
|
|
14123
14045
|
]
|
|
14124
14046
|
}
|
|
@@ -14434,42 +14356,6 @@
|
|
|
14434
14356
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
14435
14357
|
}
|
|
14436
14358
|
},
|
|
14437
|
-
{
|
|
14438
|
-
"kind": "field",
|
|
14439
|
-
"name": "zeroBasedViewNumber",
|
|
14440
|
-
"type": {
|
|
14441
|
-
"text": "boolean"
|
|
14442
|
-
},
|
|
14443
|
-
"privacy": "protected",
|
|
14444
|
-
"inheritedFrom": {
|
|
14445
|
-
"name": "BaseServerSideDatasource",
|
|
14446
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
14447
|
-
}
|
|
14448
|
-
},
|
|
14449
|
-
{
|
|
14450
|
-
"kind": "field",
|
|
14451
|
-
"name": "pagingMode",
|
|
14452
|
-
"type": {
|
|
14453
|
-
"text": "PagingMode | undefined | undefined"
|
|
14454
|
-
},
|
|
14455
|
-
"privacy": "protected",
|
|
14456
|
-
"inheritedFrom": {
|
|
14457
|
-
"name": "BaseServerSideDatasource",
|
|
14458
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
14459
|
-
}
|
|
14460
|
-
},
|
|
14461
|
-
{
|
|
14462
|
-
"kind": "field",
|
|
14463
|
-
"name": "criteriaOnlyRequest",
|
|
14464
|
-
"type": {
|
|
14465
|
-
"text": "boolean | undefined"
|
|
14466
|
-
},
|
|
14467
|
-
"privacy": "protected",
|
|
14468
|
-
"inheritedFrom": {
|
|
14469
|
-
"name": "BaseServerSideDatasource",
|
|
14470
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
14471
|
-
}
|
|
14472
|
-
},
|
|
14473
14359
|
{
|
|
14474
14360
|
"kind": "field",
|
|
14475
14361
|
"name": "sourceRef",
|
|
@@ -14827,19 +14713,6 @@
|
|
|
14827
14713
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
14828
14714
|
}
|
|
14829
14715
|
},
|
|
14830
|
-
{
|
|
14831
|
-
"kind": "field",
|
|
14832
|
-
"name": "isNotFirstViewNumber",
|
|
14833
|
-
"type": {
|
|
14834
|
-
"text": "boolean"
|
|
14835
|
-
},
|
|
14836
|
-
"privacy": "protected",
|
|
14837
|
-
"readonly": true,
|
|
14838
|
-
"inheritedFrom": {
|
|
14839
|
-
"name": "BaseServerSideDatasource",
|
|
14840
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
14841
|
-
}
|
|
14842
|
-
},
|
|
14843
14716
|
{
|
|
14844
14717
|
"kind": "method",
|
|
14845
14718
|
"name": "completeEmptyResult",
|
|
@@ -14919,21 +14792,6 @@
|
|
|
14919
14792
|
"name": "BaseServerSideDatasource",
|
|
14920
14793
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
14921
14794
|
}
|
|
14922
|
-
},
|
|
14923
|
-
{
|
|
14924
|
-
"kind": "method",
|
|
14925
|
-
"name": "getEffectivePagingMode",
|
|
14926
|
-
"privacy": "protected",
|
|
14927
|
-
"return": {
|
|
14928
|
-
"type": {
|
|
14929
|
-
"text": "PagingMode"
|
|
14930
|
-
}
|
|
14931
|
-
},
|
|
14932
|
-
"description": "Determines the effective paging mode based on criteriaOnlyRequest availability and user settings",
|
|
14933
|
-
"inheritedFrom": {
|
|
14934
|
-
"name": "BaseServerSideDatasource",
|
|
14935
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
14936
|
-
}
|
|
14937
14795
|
}
|
|
14938
14796
|
],
|
|
14939
14797
|
"superclass": {
|
|
@@ -15059,15 +14917,6 @@
|
|
|
15059
14917
|
"privacy": "private",
|
|
15060
14918
|
"default": "null"
|
|
15061
14919
|
},
|
|
15062
|
-
{
|
|
15063
|
-
"kind": "field",
|
|
15064
|
-
"name": "currentNextOffset",
|
|
15065
|
-
"type": {
|
|
15066
|
-
"text": "number"
|
|
15067
|
-
},
|
|
15068
|
-
"privacy": "private",
|
|
15069
|
-
"default": "0"
|
|
15070
|
-
},
|
|
15071
14920
|
{
|
|
15072
14921
|
"kind": "method",
|
|
15073
14922
|
"name": "getRows",
|
|
@@ -15089,62 +14938,6 @@
|
|
|
15089
14938
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
15090
14939
|
}
|
|
15091
14940
|
},
|
|
15092
|
-
{
|
|
15093
|
-
"kind": "method",
|
|
15094
|
-
"name": "advancePagingPosition",
|
|
15095
|
-
"privacy": "private",
|
|
15096
|
-
"return": {
|
|
15097
|
-
"type": {
|
|
15098
|
-
"text": "void"
|
|
15099
|
-
}
|
|
15100
|
-
},
|
|
15101
|
-
"parameters": [
|
|
15102
|
-
{
|
|
15103
|
-
"name": "params",
|
|
15104
|
-
"type": {
|
|
15105
|
-
"text": "IServerSideGetRowsParams"
|
|
15106
|
-
}
|
|
15107
|
-
},
|
|
15108
|
-
{
|
|
15109
|
-
"name": "effectivePagingMode",
|
|
15110
|
-
"type": {
|
|
15111
|
-
"text": "PagingMode"
|
|
15112
|
-
}
|
|
15113
|
-
}
|
|
15114
|
-
],
|
|
15115
|
-
"description": "Advance the view/offset position based on paging mode"
|
|
15116
|
-
},
|
|
15117
|
-
{
|
|
15118
|
-
"kind": "method",
|
|
15119
|
-
"name": "determineIsLastView",
|
|
15120
|
-
"privacy": "private",
|
|
15121
|
-
"return": {
|
|
15122
|
-
"type": {
|
|
15123
|
-
"text": "Promise<boolean>"
|
|
15124
|
-
}
|
|
15125
|
-
},
|
|
15126
|
-
"parameters": [
|
|
15127
|
-
{
|
|
15128
|
-
"name": "requestResult",
|
|
15129
|
-
"type": {
|
|
15130
|
-
"text": "RequestServerResult"
|
|
15131
|
-
}
|
|
15132
|
-
},
|
|
15133
|
-
{
|
|
15134
|
-
"name": "requestParams",
|
|
15135
|
-
"type": {
|
|
15136
|
-
"text": "RequestParams"
|
|
15137
|
-
}
|
|
15138
|
-
},
|
|
15139
|
-
{
|
|
15140
|
-
"name": "effectivePagingMode",
|
|
15141
|
-
"type": {
|
|
15142
|
-
"text": "PagingMode"
|
|
15143
|
-
}
|
|
15144
|
-
}
|
|
15145
|
-
],
|
|
15146
|
-
"description": "Determine if this is the last view/page"
|
|
15147
|
-
},
|
|
15148
14941
|
{
|
|
15149
14942
|
"kind": "method",
|
|
15150
14943
|
"name": "schedulePollingStream",
|
|
@@ -15180,12 +14973,6 @@
|
|
|
15180
14973
|
"type": {
|
|
15181
14974
|
"text": "RequestServerResult"
|
|
15182
14975
|
}
|
|
15183
|
-
},
|
|
15184
|
-
{
|
|
15185
|
-
"name": "isLastView",
|
|
15186
|
-
"type": {
|
|
15187
|
-
"text": "boolean"
|
|
15188
|
-
}
|
|
15189
14976
|
}
|
|
15190
14977
|
]
|
|
15191
14978
|
},
|
|
@@ -15315,15 +15102,7 @@
|
|
|
15315
15102
|
"type": {
|
|
15316
15103
|
"text": "any"
|
|
15317
15104
|
}
|
|
15318
|
-
}
|
|
15319
|
-
"parameters": [
|
|
15320
|
-
{
|
|
15321
|
-
"name": "effectivePagingMode",
|
|
15322
|
-
"type": {
|
|
15323
|
-
"text": "PagingMode"
|
|
15324
|
-
}
|
|
15325
|
-
}
|
|
15326
|
-
]
|
|
15105
|
+
}
|
|
15327
15106
|
},
|
|
15328
15107
|
{
|
|
15329
15108
|
"kind": "field",
|
|
@@ -15499,42 +15278,6 @@
|
|
|
15499
15278
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
15500
15279
|
}
|
|
15501
15280
|
},
|
|
15502
|
-
{
|
|
15503
|
-
"kind": "field",
|
|
15504
|
-
"name": "zeroBasedViewNumber",
|
|
15505
|
-
"type": {
|
|
15506
|
-
"text": "boolean"
|
|
15507
|
-
},
|
|
15508
|
-
"privacy": "protected",
|
|
15509
|
-
"inheritedFrom": {
|
|
15510
|
-
"name": "BaseServerSideDatasource",
|
|
15511
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
15512
|
-
}
|
|
15513
|
-
},
|
|
15514
|
-
{
|
|
15515
|
-
"kind": "field",
|
|
15516
|
-
"name": "pagingMode",
|
|
15517
|
-
"type": {
|
|
15518
|
-
"text": "PagingMode | undefined | undefined"
|
|
15519
|
-
},
|
|
15520
|
-
"privacy": "protected",
|
|
15521
|
-
"inheritedFrom": {
|
|
15522
|
-
"name": "BaseServerSideDatasource",
|
|
15523
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
15524
|
-
}
|
|
15525
|
-
},
|
|
15526
|
-
{
|
|
15527
|
-
"kind": "field",
|
|
15528
|
-
"name": "criteriaOnlyRequest",
|
|
15529
|
-
"type": {
|
|
15530
|
-
"text": "boolean | undefined"
|
|
15531
|
-
},
|
|
15532
|
-
"privacy": "protected",
|
|
15533
|
-
"inheritedFrom": {
|
|
15534
|
-
"name": "BaseServerSideDatasource",
|
|
15535
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
15536
|
-
}
|
|
15537
|
-
},
|
|
15538
15281
|
{
|
|
15539
15282
|
"kind": "field",
|
|
15540
15283
|
"name": "sourceRef",
|
|
@@ -15875,19 +15618,6 @@
|
|
|
15875
15618
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
15876
15619
|
}
|
|
15877
15620
|
},
|
|
15878
|
-
{
|
|
15879
|
-
"kind": "field",
|
|
15880
|
-
"name": "isNotFirstViewNumber",
|
|
15881
|
-
"type": {
|
|
15882
|
-
"text": "boolean"
|
|
15883
|
-
},
|
|
15884
|
-
"privacy": "protected",
|
|
15885
|
-
"readonly": true,
|
|
15886
|
-
"inheritedFrom": {
|
|
15887
|
-
"name": "BaseServerSideDatasource",
|
|
15888
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
15889
|
-
}
|
|
15890
|
-
},
|
|
15891
15621
|
{
|
|
15892
15622
|
"kind": "method",
|
|
15893
15623
|
"name": "completeEmptyResult",
|
|
@@ -15967,21 +15697,6 @@
|
|
|
15967
15697
|
"name": "BaseServerSideDatasource",
|
|
15968
15698
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
15969
15699
|
}
|
|
15970
|
-
},
|
|
15971
|
-
{
|
|
15972
|
-
"kind": "method",
|
|
15973
|
-
"name": "getEffectivePagingMode",
|
|
15974
|
-
"privacy": "protected",
|
|
15975
|
-
"return": {
|
|
15976
|
-
"type": {
|
|
15977
|
-
"text": "PagingMode"
|
|
15978
|
-
}
|
|
15979
|
-
},
|
|
15980
|
-
"description": "Determines the effective paging mode based on criteriaOnlyRequest availability and user settings",
|
|
15981
|
-
"inheritedFrom": {
|
|
15982
|
-
"name": "BaseServerSideDatasource",
|
|
15983
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
15984
|
-
}
|
|
15985
15700
|
}
|
|
15986
15701
|
],
|
|
15987
15702
|
"superclass": {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SocketObservable, FilteredDataServerResult, MetadataDetail, RequestServerResult, DataserverParams, RequestParams, Datasource } from '@genesislcap/foundation-comms';
|
|
2
|
-
import { PagingMode } from './datasource.types';
|
|
3
2
|
/**
|
|
4
3
|
* Type definition for configuration options used for streams.
|
|
5
4
|
* @remarks
|
|
@@ -40,9 +39,6 @@ export type ServerSideDatasourceOptions = {
|
|
|
40
39
|
maxRows?: number;
|
|
41
40
|
maxView?: number;
|
|
42
41
|
rowId?: string;
|
|
43
|
-
zeroBasedViewNumber?: boolean;
|
|
44
|
-
pagingMode?: PagingMode | undefined;
|
|
45
|
-
criteriaOnlyRequest?: boolean;
|
|
46
42
|
usePolling?: boolean;
|
|
47
43
|
};
|
|
48
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,UAAU,EACX,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"base.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,UAAU,EACX,MAAM,+BAA+B,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,0BAA0B,CAAC,EAAE,CAC3B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACzD,uBAAuB,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACjF;;;OAGG;IACH,sBAAsB,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC;QACjD,MAAM,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;QAC9C,UAAU,EAAE,UAAU,CAAC;KACxB,CAAC,CAAC;IACH;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC5D;;;OAGG;IACH,2BAA2B,CAAC,EAAE,MAAM,IAAI,CAAC;IACzC,sBAAsB,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,8DAA8D;IAC9D,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,qEAAqE;IACrE,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,gBAAgB,GAAG,aAAa,CAAC;IAClD,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACxC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IAEnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EACA,YAAY,GACZ,qBAAqB,GACrB,eAAe,GACf,UAAU,GACV,QAAQ,GACR,UAAU,GACV,SAAS,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,8BAA8B,CAAC,CAAC"}
|
|
@@ -5,12 +5,4 @@
|
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
7
|
export type DatasourceType = 'client' | 'server';
|
|
8
|
-
/**
|
|
9
|
-
* Available paging modes for server-side datasources
|
|
10
|
-
* @remarks - This type defines the paging approach used for server-side data fetching
|
|
11
|
-
* - 'viewBased': Uses VIEW_NUMBER and NEXT_VIEW (1 by 1 increment)
|
|
12
|
-
* - 'offsetBased': Uses OFFSET and NEXT_OFFSET (based on maxRows increment)
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export type PagingMode = 'viewBased' | 'offsetBased';
|
|
16
8
|
//# sourceMappingURL=datasource.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,CAAC
|
|
1
|
+
{"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Datasource, DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
2
2
|
import { JSONSerializer } from '@genesislcap/foundation-utils';
|
|
3
3
|
import { GridProBaseDatasource } from './base.datasource';
|
|
4
|
-
import { PagingMode } from './datasource.types';
|
|
5
4
|
declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
6
5
|
#_container: import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
7
6
|
#_latestTokenCode: string;
|
|
@@ -373,6 +372,10 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
|
373
372
|
* A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
|
|
374
373
|
* @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
|
|
375
374
|
*
|
|
375
|
+
* **Supported resources**: DATASERVER resources, and REQUEST_SERVER (req/rep) resources that declare
|
|
376
|
+
* `criteriaOnlyRequest`. A req/rep resource without it reports a `resource-type` error and no
|
|
377
|
+
* datasource is attached to the grid.
|
|
378
|
+
*
|
|
376
379
|
* **Custom Sort Indicators**: This datasource automatically applies custom sort indicators that are always visible (instead of only on hover).
|
|
377
380
|
* Sortable columns will show a subtle sort icon even when not sorted, and active sort indicators will be more prominent.
|
|
378
381
|
* The custom styling uses AG Grid's native icon font for consistency with the grid theme.
|
|
@@ -402,24 +405,11 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
|
402
405
|
export declare class GridProServerSideDatasource extends GridProServerSideDatasource_base {
|
|
403
406
|
serializer: JSONSerializer;
|
|
404
407
|
pollingDatasource: Datasource;
|
|
405
|
-
/**
|
|
406
|
-
* The starting VIEW_NUMBER of the data to be fetched.
|
|
407
|
-
* @remarks The VIEW_NUMBER isincremented by the grid as the user scrolls or changes pages.
|
|
408
|
-
*/
|
|
409
|
-
zeroBasedViewNumber: boolean;
|
|
410
408
|
/**
|
|
411
409
|
* Enable live updates for the grid.
|
|
412
410
|
* @remarks Only works with DATASERVER resources (StreamDatasource) right now.
|
|
413
411
|
*/
|
|
414
412
|
liveUpdates: boolean;
|
|
415
|
-
/**
|
|
416
|
-
* The paging mode to use for data fetching.
|
|
417
|
-
* @remarks
|
|
418
|
-
* - "viewBased": Uses VIEW_NUMBER and NEXT_VIEW (1 by 1 increment)
|
|
419
|
-
* - "offsetBased": Uses OFFSET and NEXT_OFFSET (based on maxRows increment)
|
|
420
|
-
* - undefined: Auto-determines based on criteriaOnlyRequest availability
|
|
421
|
-
*/
|
|
422
|
-
pagingMode: PagingMode | undefined;
|
|
423
413
|
request: any;
|
|
424
414
|
private indexes;
|
|
425
415
|
private ssrmDatasource;
|
|
@@ -450,6 +440,29 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
|
|
|
450
440
|
destroy(): Promise<void>;
|
|
451
441
|
restart(): Promise<void>;
|
|
452
442
|
private clearRowData;
|
|
443
|
+
/**
|
|
444
|
+
* Checks whether the resolved resource can be served through the Server-Side Row Model.
|
|
445
|
+
* @remarks
|
|
446
|
+
* REQUEST_SERVER (req/rep) resources are only supported when the request reply declares
|
|
447
|
+
* `criteriaOnlyRequest` (`CRITERIA_ONLY_REQUEST` in its metadata). SSRM drives a req/rep
|
|
448
|
+
* resource purely through `DETAILS` - `CRITERIA_MATCH` for the grid filter model, `ORDER_BY`
|
|
449
|
+
* for the sort model and `OFFSET` for paging - and sends an empty `REQUEST`
|
|
450
|
+
* payload. A request reply without `criteriaOnlyRequest` expects its inputs in `REQUEST`
|
|
451
|
+
* instead, so filtering, sorting and paging would silently do nothing.
|
|
452
|
+
*
|
|
453
|
+
* DATASERVER resources are always supported.
|
|
454
|
+
* @returns `true` when SSRM can be used, `false` after reporting a `resource-type` error.
|
|
455
|
+
* @internal
|
|
456
|
+
*/
|
|
457
|
+
private isSsrmSupportedForResource;
|
|
458
|
+
/**
|
|
459
|
+
* Leaves the grid with no server-side datasource, for a resource SSRM cannot serve.
|
|
460
|
+
* @remarks
|
|
461
|
+
* Clears any rows and hands the grid a `null` datasource, so AG Grid never calls `getRows()` for
|
|
462
|
+
* this resource.
|
|
463
|
+
* @internal
|
|
464
|
+
*/
|
|
465
|
+
private refuseServerSideDatasource;
|
|
453
466
|
private getResourceIndexes;
|
|
454
467
|
private createReqRepRequest;
|
|
455
468
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EACV,iBAAiB,EAYlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,cAAc,EAEf,MAAM,+BAA+B,CAAC;AAYvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC
|
|
1
|
+
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EACV,iBAAiB,EAYlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,cAAc,EAEf,MAAM,+BAA+B,CAAC;AAYvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;kBA8DhC,CAAA;;;;;;;;8BAmBgD,CAAC,cAAe,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAgB3E,CAAC;4IAGwC,CAAA;wFAKlB,CAAC;+IAIT,CAAC;2FAGV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwCqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBA+CvB,CAAC;;;;;;;;;;;;;6BA2BT,CAAC;8BACgB,CAAC;kBAGjB,CAAC;;oBAEK,CAAC;;sBAMW,CAAC;oBAGE,CAAC;;;;;;;;gDAgB3B,CAAC;;;;;;;;;;;;;;;;;;uBA2BsC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAgFU,CAAC;yBAI7C,CAAC;UACF,GAAG;WAGR,GADA;;gBACG,GAAG;;;;;;;WAec,GAAG;YACM,GACrC;;;;;;;;;;;oBA0CG,GAAD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6KkB,CAAC;cAEG,CAAC;eACa,CAAC;gBAC6B,CAAC;;;;;;;;;;;;;;SAsC7D,CAAA;;;iBACe,CAAC;;AA/kBxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAGa,2BAA4B,SAAQ,gCAAqC;IACpE,UAAU,EAAG,cAAc,CAAC;IAChC,iBAAiB,EAAG,UAAU,CAAC;IAC3C;;;OAGG;IACmD,WAAW,UAAS;IAE9D,OAAO,EAAE,GAAG,CAAM;IAE9B,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,cAAc,CAA8D;IACpF,OAAO,CAAC,iBAAiB,CAAqB;IAC9C,OAAO,CAAC,uBAAuB,CAA6B;IAE5D,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAOtD,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAaxD,iBAAiB;IAUjB,oBAAoB;IAUX,SAAS,IAAI,IAAI;IAO1B;;;;OAIG;IACG,kBAAkB,CAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwDnE;;;OAGG;IACH,OAAO,CAAC,mCAAmC;IAgB3C;;;OAGG;IACH,OAAO,CAAC,oCAAoC;IAatC,IAAI;IAmIK,OAAO;IAqBP,OAAO;IAKtB,OAAO,CAAC,YAAY;IAmBpB;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,0BAA0B;IAYlC;;;;;;OAMG;IACH,OAAO,CAAC,0BAA0B;IAKlC,OAAO,CAAC,kBAAkB;YAgDZ,mBAAmB;IAKjC;;;;;;;;;;;;OAYG;YACW,kBAAkB;IA+BhC;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB,CAA+B;IAEzD;;;;;;;;;OASG;IACH,OAAO,CAAC,0BAA0B,CAAS;IAE3C;;;;;;OAMG;IACI,uBAAuB;IAM9B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,wBAAwB;IAsEhC,OAAO,CAAC,yBAAyB;YAyCnB,sBAAsB;YA2DtB,eAAe;IAmBpB,gBAAgB,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG;IAIvC,QAAQ;CAGlB"}
|
|
@@ -2,7 +2,6 @@ import { IServerSideDatasource, LoadSuccessParams, SetFilterModel, SortModelItem
|
|
|
2
2
|
import { Auth, Connect, MetadataDetail, DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { UUID } from '@genesislcap/foundation-utils';
|
|
4
4
|
import { ServerSideDatasourceOptions } from './base.types';
|
|
5
|
-
import { PagingMode } from './datasource.types';
|
|
6
5
|
/**
|
|
7
6
|
* Base class for server-side resource datasources used in Grid Pro SSRM implementations.
|
|
8
7
|
* Provides common logic for filtering, sorting, and infinite-scroll row counting.
|
|
@@ -25,9 +24,6 @@ export declare abstract class BaseServerSideDatasource implements IServerSideDat
|
|
|
25
24
|
protected resourceColDefs: MetadataDetail[];
|
|
26
25
|
protected maxRows: number;
|
|
27
26
|
protected maxView: number;
|
|
28
|
-
protected zeroBasedViewNumber: boolean;
|
|
29
|
-
protected pagingMode?: PagingMode | undefined;
|
|
30
|
-
protected criteriaOnlyRequest?: boolean;
|
|
31
27
|
sourceRef: string;
|
|
32
28
|
lastSuccessRowData: LoadSuccessParams;
|
|
33
29
|
/**
|
|
@@ -106,16 +102,11 @@ export declare abstract class BaseServerSideDatasource implements IServerSideDat
|
|
|
106
102
|
protected criteriaForDateModel(k: string, model: any): string | null;
|
|
107
103
|
protected getFiltersByType(filterType: string): string[];
|
|
108
104
|
protected getCorrectRowCount(params: IServerSideGetRowsParams<any, any>): any;
|
|
109
|
-
protected get isNotFirstViewNumber(): boolean;
|
|
110
105
|
/** Completes an SSRM request with zero rows and invokes `onNoDataAvailableFunc` on the first block only. @internal */
|
|
111
106
|
protected completeEmptyResult(params: IServerSideGetRowsParams): void;
|
|
112
107
|
/** Invokes `onNoDataAvailableFunc` when the first SSRM block has no rows. @internal */
|
|
113
108
|
protected notifyNoDataAvailableIfEmpty(params: IServerSideGetRowsParams, successRowData: LoadSuccessParams): void;
|
|
114
109
|
protected notifyNoDataAvailable(): void;
|
|
115
110
|
protected notifyDataAvailable(): void;
|
|
116
|
-
/**
|
|
117
|
-
* Determines the effective paging mode based on criteriaOnlyRequest availability and user settings
|
|
118
|
-
*/
|
|
119
|
-
protected getEffectivePagingMode(): PagingMode;
|
|
120
111
|
}
|
|
121
112
|
//# sourceMappingURL=server-side.resource-base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.resource-base.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,
|
|
1
|
+
{"version":3,"file":"server-side.resource-base.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACjG,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAE3D;;;;;GAKG;AACH,8BAAsB,wBAAyB,YAAW,qBAAqB;IACvE,IAAI,EAAG,IAAI,CAAC;IACT,OAAO,EAAG,OAAO,CAAC;IACrB,IAAI,EAAG,IAAI,CAAC;IAElB,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAa;IAEtC,sBAAsB,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7C,SAAS,CAAC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE3C,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,GAAG,CAAC;IACpB,SAAS,CAAC,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACjD,SAAS,CAAC,eAAe,EAAE,cAAc,EAAE,CAAC;IAE5C,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAE1B,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,iBAAiB,CAAC;IAEtC;;;OAGG;IACH,eAAe,SAAK;IAEpB;;;OAGG;IACH,eAAe,SAAK;IAEpB,SAAS,CAAC,QAAQ,UAAS;IAC3B,SAAS,CAAC,mBAAmB,SAAK;IAClC,SAAS,CAAC,iBAAiB,MAAQ;IAEnC,SAAS,CAAC,kBAAkB,EAAE,cAAc,CAAC;IAC7C,SAAS,CAAC,qBAAqB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACnD,SAAS,CAAC,gBAAgB,EAAE,aAAa,EAAE,CAAC;gBAEhC,OAAO,EAAE,2BAA2B;IAmBhD;;;;;OAKG;IACH,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG;IAS5C;;;;;OAKG;IACH,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;IAUzD,OAAO,CAAC,MAAM,EAAE,wBAAwB,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI;IAIzD;;;;;;OAMG;cACa,cAAc,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC;IAyBlF;;;;;;;OAOG;IACH,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC;IAEnF;;;;OAIG;cACa,wBAAwB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKzF,OAAO,CAAC,IAAI,IAAI;IAWV,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAWjE,OAAO,CAAC,oBAAoB;IAa5B,SAAS,CAAC,6BAA6B,CAAC,GAAG,KAAA,EAAE,WAAW,KAAA;;;;IAWxD,SAAS,CAAC,6BAA6B,IAAI,MAAM;IAkBjD,SAAS,CAAC,mBAAmB,IAAI,MAAM,EAAE;IAqDzC;;;;OAIG;IACH,SAAS,CAAC,sBAAsB,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI;IAiBtE,SAAS,CAAC,oBAAoB,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI;IAyBpE,SAAS,CAAC,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI;IAqCnE,SAAS,CAAC,sBAAsB,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI;IA4BtE,SAAS,CAAC,oBAAoB,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI;IA4BpE,SAAS,CAAC,gBAAgB,CAAC,UAAU,EAAE,MAAM;IAM7C,SAAS,CAAC,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,CAAC,GAAG,EAAE,GAAG,CAAC;IAyBvE,sHAAsH;IACtH,SAAS,CAAC,mBAAmB,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI;IAWrE,uFAAuF;IACvF,SAAS,CAAC,4BAA4B,CACpC,MAAM,EAAE,wBAAwB,EAChC,cAAc,EAAE,iBAAiB,GAChC,IAAI;IAWP,SAAS,CAAC,qBAAqB,IAAI,IAAI;IAIvC,SAAS,CAAC,mBAAmB,IAAI,IAAI;CAGtC"}
|
|
@@ -4,6 +4,15 @@ import { ServerSideDatasourceOptions } from './base.types';
|
|
|
4
4
|
import { BaseServerSideDatasource } from './server-side.resource-base';
|
|
5
5
|
/**
|
|
6
6
|
* The REQUEST_SERVER IServerSideDatasource implementation, used for SSRM (Server-Side Row Model) in the grid.
|
|
7
|
+
* @remarks
|
|
8
|
+
* Only request replies supporting criteria-only requests (`criteriaOnlyRequest`) can be served this
|
|
9
|
+
* way: every SSRM concern is expressed through `DETAILS` (`CRITERIA_MATCH` for the filter model,
|
|
10
|
+
* `ORDER_BY` for the sort model, `OFFSET` for paging) with an empty `REQUEST` payload.
|
|
11
|
+
* {@link @genesislcap/grid-pro#GridProServerSideDatasource} enforces this before constructing the
|
|
12
|
+
* datasource.
|
|
13
|
+
*
|
|
14
|
+
* Paging is therefore always offset-based - `criteriaOnlyRequest` guarantees `OFFSET` support, so
|
|
15
|
+
* there is no `VIEW_NUMBER` fallback to choose between.
|
|
7
16
|
* @beta
|
|
8
17
|
*/
|
|
9
18
|
export declare class ReqRepServerSideDatasource extends BaseServerSideDatasource implements IServerSideDatasource {
|
|
@@ -49,17 +58,8 @@ export declare class ReqRepServerSideDatasource extends BaseServerSideDatasource
|
|
|
49
58
|
*/
|
|
50
59
|
private debouncedCreateStream;
|
|
51
60
|
private discoveredTotalRowCount;
|
|
52
|
-
private currentNextOffset;
|
|
53
61
|
constructor(options: ServerSideDatasourceOptions);
|
|
54
62
|
getRows(params: IServerSideGetRowsParams): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Advance the view/offset position based on paging mode
|
|
57
|
-
*/
|
|
58
|
-
private advancePagingPosition;
|
|
59
|
-
/**
|
|
60
|
-
* Determine if this is the last view/page
|
|
61
|
-
*/
|
|
62
|
-
private determineIsLastView;
|
|
63
63
|
/**
|
|
64
64
|
* Schedules polling stream creation if enabled.
|
|
65
65
|
* @remarks
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.resource-reqrep.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-reqrep.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAInB,iBAAiB,EAGlB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"server-side.resource-reqrep.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-reqrep.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAInB,iBAAiB,EAGlB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAOvE;;;;;;;;;;;;GAYG;AACH,qBAAa,0BACX,SAAQ,wBACR,YAAW,qBAAqB;IAEhC,uBAAuB,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhF;;;OAGG;IACH,OAAO,CAAC,sBAAsB,CAAC,CAG5B;IAEH;;OAEG;IACH,OAAO,CAAC,mBAAmB,CAAC,CAAwC;IAEpE;;OAEG;IACH,OAAO,CAAC,yBAAyB,CAAC,CAAqB;IAEvD;;;OAGG;IACH,OAAO,CAAC,uBAAuB,CAAC,CAAM;IAEtC;;OAEG;IACH,OAAO,CAAC,UAAU,CAAU;IAE5B;;OAEG;IACH,OAAO,CAAC,eAAe,CAAC,CAAwC;IAEhE;;OAEG;IACH,OAAO,CAAC,uBAAuB,CAAC,CAAa;IAE7C;;;OAGG;IACH,OAAO,CAAC,mBAAmB,CAAC,CAAgB;IAE5C;;;OAGG;IACH,OAAO,CAAC,qBAAqB,CAA8B;IAG3D,OAAO,CAAC,uBAAuB,CAAuB;gBAE1C,OAAO,EAAE,2BAA2B;IAmB1C,OAAO,CAAC,MAAM,EAAE,wBAAwB;IA2B9C;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAO7B,OAAO,CAAC,mBAAmB;IAyD3B,SAAS,CAAC,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM;IActE,OAAO,CAAC,uBAAuB;IAoB/B;;;OAGG;cACa,YAAY,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC;IAgC1E,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAc3D,OAAO;IAUb;;;;;;;;;;OAUG;YACW,mBAAmB;IAkCjC;;;;;;;;OAQG;IACH,OAAO,CAAC,oBAAoB;IAqB5B,OAAO,CAAC,mBAAmB;CAQ5B"}
|
|
@@ -59,6 +59,10 @@ const serverSideSortIndicatorCSS = `
|
|
|
59
59
|
* A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
|
|
60
60
|
* @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
|
|
61
61
|
*
|
|
62
|
+
* **Supported resources**: DATASERVER resources, and REQUEST_SERVER (req/rep) resources that declare
|
|
63
|
+
* `criteriaOnlyRequest`. A req/rep resource without it reports a `resource-type` error and no
|
|
64
|
+
* datasource is attached to the grid.
|
|
65
|
+
*
|
|
62
66
|
* **Custom Sort Indicators**: This datasource automatically applies custom sort indicators that are always visible (instead of only on hover).
|
|
63
67
|
* Sortable columns will show a subtle sort icon even when not sorted, and active sort indicators will be more prominent.
|
|
64
68
|
* The custom styling uses AG Grid's native icon font for consistency with the grid theme.
|
|
@@ -88,11 +92,6 @@ const serverSideSortIndicatorCSS = `
|
|
|
88
92
|
let GridProServerSideDatasource = class GridProServerSideDatasource extends LifecycleMixin(GridProBaseDatasource) {
|
|
89
93
|
constructor() {
|
|
90
94
|
super(...arguments);
|
|
91
|
-
/**
|
|
92
|
-
* The starting VIEW_NUMBER of the data to be fetched.
|
|
93
|
-
* @remarks The VIEW_NUMBER isincremented by the grid as the user scrolls or changes pages.
|
|
94
|
-
*/
|
|
95
|
-
this.zeroBasedViewNumber = false;
|
|
96
95
|
/**
|
|
97
96
|
* Enable live updates for the grid.
|
|
98
97
|
* @remarks Only works with DATASERVER resources (StreamDatasource) right now.
|
|
@@ -279,6 +278,10 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
279
278
|
this.setDisconnected(true);
|
|
280
279
|
return;
|
|
281
280
|
}
|
|
281
|
+
if (!this.isSsrmSupportedForResource()) {
|
|
282
|
+
this.refuseServerSideDatasource();
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
282
285
|
this.$emit(gridProGenesisDatasourceEventNames.dataInit);
|
|
283
286
|
this.setDisconnected(false);
|
|
284
287
|
this.indexes = this.getResourceIndexes(this.datasource.availableIndexes, this.datasource.availableSortableFields);
|
|
@@ -311,9 +314,6 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
311
314
|
maxRows: +this.maxRows,
|
|
312
315
|
maxView: +this.maxView,
|
|
313
316
|
rowId: this.rowId,
|
|
314
|
-
zeroBasedViewNumber: this.zeroBasedViewNumber,
|
|
315
|
-
pagingMode: this.pagingMode,
|
|
316
|
-
criteriaOnlyRequest: this.datasource.criteriaOnlyRequest,
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
else {
|
|
@@ -330,7 +330,6 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
330
330
|
maxRows: +this.maxRows,
|
|
331
331
|
maxView: +this.maxView,
|
|
332
332
|
rowId: this.rowId,
|
|
333
|
-
zeroBasedViewNumber: this.zeroBasedViewNumber,
|
|
334
333
|
});
|
|
335
334
|
}
|
|
336
335
|
// Emit event to set server side datasource
|
|
@@ -389,6 +388,38 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
389
388
|
});
|
|
390
389
|
this.transactionData = undefined;
|
|
391
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* Checks whether the resolved resource can be served through the Server-Side Row Model.
|
|
393
|
+
* @remarks
|
|
394
|
+
* REQUEST_SERVER (req/rep) resources are only supported when the request reply declares
|
|
395
|
+
* `criteriaOnlyRequest` (`CRITERIA_ONLY_REQUEST` in its metadata). SSRM drives a req/rep
|
|
396
|
+
* resource purely through `DETAILS` - `CRITERIA_MATCH` for the grid filter model, `ORDER_BY`
|
|
397
|
+
* for the sort model and `OFFSET` for paging - and sends an empty `REQUEST`
|
|
398
|
+
* payload. A request reply without `criteriaOnlyRequest` expects its inputs in `REQUEST`
|
|
399
|
+
* instead, so filtering, sorting and paging would silently do nothing.
|
|
400
|
+
*
|
|
401
|
+
* DATASERVER resources are always supported.
|
|
402
|
+
* @returns `true` when SSRM can be used, `false` after reporting a `resource-type` error.
|
|
403
|
+
* @internal
|
|
404
|
+
*/
|
|
405
|
+
isSsrmSupportedForResource() {
|
|
406
|
+
if (!this.isRequestServer || this.datasource.criteriaOnlyRequest) {
|
|
407
|
+
return true;
|
|
408
|
+
}
|
|
409
|
+
this.handleErrors(`Server-side row model is not supported for the REQUEST_SERVER resource '${this.resourceName}' because it does not support criteria-only requests. Set 'criteriaOnlyRequest = true' on the request reply definition, or use a client-side datasource for this resource.`, 'resource-type');
|
|
410
|
+
return false;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Leaves the grid with no server-side datasource, for a resource SSRM cannot serve.
|
|
414
|
+
* @remarks
|
|
415
|
+
* Clears any rows and hands the grid a `null` datasource, so AG Grid never calls `getRows()` for
|
|
416
|
+
* this resource.
|
|
417
|
+
* @internal
|
|
418
|
+
*/
|
|
419
|
+
refuseServerSideDatasource() {
|
|
420
|
+
this.clearRowData();
|
|
421
|
+
this.$emit(datasourceEventNames.setServerSideDatasource, { datasource: null });
|
|
422
|
+
}
|
|
392
423
|
getResourceIndexes(avaialbleIndexes, availableSortableFields) {
|
|
393
424
|
const resourceIndexesMap = new Map();
|
|
394
425
|
const allSortableFields = new Set();
|
|
@@ -668,15 +699,9 @@ __decorate([
|
|
|
668
699
|
__decorate([
|
|
669
700
|
Datasource
|
|
670
701
|
], GridProServerSideDatasource.prototype, "pollingDatasource", void 0);
|
|
671
|
-
__decorate([
|
|
672
|
-
attr({ mode: 'boolean', attribute: 'zero-based-view-number' })
|
|
673
|
-
], GridProServerSideDatasource.prototype, "zeroBasedViewNumber", void 0);
|
|
674
702
|
__decorate([
|
|
675
703
|
attr({ mode: 'boolean', attribute: 'live-updates' })
|
|
676
704
|
], GridProServerSideDatasource.prototype, "liveUpdates", void 0);
|
|
677
|
-
__decorate([
|
|
678
|
-
attr({ attribute: 'paging-mode' })
|
|
679
|
-
], GridProServerSideDatasource.prototype, "pagingMode", void 0);
|
|
680
705
|
__decorate([
|
|
681
706
|
observable
|
|
682
707
|
], GridProServerSideDatasource.prototype, "request", void 0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { Auth, Connect
|
|
2
|
+
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { UUID } from '@genesislcap/foundation-utils';
|
|
4
4
|
/**
|
|
5
5
|
* Base class for server-side resource datasources used in Grid Pro SSRM implementations.
|
|
@@ -9,7 +9,6 @@ import { UUID } from '@genesislcap/foundation-utils';
|
|
|
9
9
|
*/
|
|
10
10
|
export class BaseServerSideDatasource {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
var _a;
|
|
13
12
|
this.rowData = new Map();
|
|
14
13
|
/**
|
|
15
14
|
* The number of rows in the grid. THIS DO NOT CONSIDER CRITERIA_MATCH scenarios.
|
|
@@ -36,9 +35,6 @@ export class BaseServerSideDatasource {
|
|
|
36
35
|
this.maxRows = options.maxRows;
|
|
37
36
|
this.maxView = options.maxView;
|
|
38
37
|
this.rowId = options.rowId;
|
|
39
|
-
this.zeroBasedViewNumber = options.zeroBasedViewNumber;
|
|
40
|
-
this.pagingMode = options.pagingMode;
|
|
41
|
-
this.criteriaOnlyRequest = (_a = options.criteriaOnlyRequest) !== null && _a !== void 0 ? _a : false;
|
|
42
38
|
}
|
|
43
39
|
/**
|
|
44
40
|
* Gets a resource parameter, handling both REQUEST_SERVER (DETAILS structure) and DATASERVER (flat structure)
|
|
@@ -385,9 +381,6 @@ export class BaseServerSideDatasource {
|
|
|
385
381
|
}
|
|
386
382
|
return rowCount;
|
|
387
383
|
}
|
|
388
|
-
get isNotFirstViewNumber() {
|
|
389
|
-
return this.zeroBasedViewNumber ? this.currentSequenceId > 0 : this.currentSequenceId > 1;
|
|
390
|
-
}
|
|
391
384
|
/** Completes an SSRM request with zero rows and invokes `onNoDataAvailableFunc` on the first block only. @internal */
|
|
392
385
|
completeEmptyResult(params) {
|
|
393
386
|
var _a, _b;
|
|
@@ -420,22 +413,6 @@ export class BaseServerSideDatasource {
|
|
|
420
413
|
var _a;
|
|
421
414
|
(_a = this.onDataAvailableFunc) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
422
415
|
}
|
|
423
|
-
/**
|
|
424
|
-
* Determines the effective paging mode based on criteriaOnlyRequest availability and user settings
|
|
425
|
-
*/
|
|
426
|
-
getEffectivePagingMode() {
|
|
427
|
-
// If user explicitly set a paging mode
|
|
428
|
-
if (this.pagingMode) {
|
|
429
|
-
// If criteriaOnlyRequest is not available but user wants offsetBased, warn and use viewBased
|
|
430
|
-
if (this.pagingMode === 'offsetBased' && !this.criteriaOnlyRequest) {
|
|
431
|
-
logger.warn('offsetBased paging mode requires criteriaOnlyRequest support. Falling back to viewBased mode.');
|
|
432
|
-
return 'viewBased';
|
|
433
|
-
}
|
|
434
|
-
return this.pagingMode;
|
|
435
|
-
}
|
|
436
|
-
// Auto-determine based on criteriaOnlyRequest availability
|
|
437
|
-
return this.criteriaOnlyRequest ? 'offsetBased' : 'viewBased';
|
|
438
|
-
}
|
|
439
416
|
}
|
|
440
417
|
__decorate([
|
|
441
418
|
Auth
|
|
@@ -9,15 +9,23 @@ import { BaseServerSideDatasource } from './server-side.resource-base';
|
|
|
9
9
|
const POLLING_STREAM_DEBOUNCE_MS = 300;
|
|
10
10
|
/**
|
|
11
11
|
* The REQUEST_SERVER IServerSideDatasource implementation, used for SSRM (Server-Side Row Model) in the grid.
|
|
12
|
+
* @remarks
|
|
13
|
+
* Only request replies supporting criteria-only requests (`criteriaOnlyRequest`) can be served this
|
|
14
|
+
* way: every SSRM concern is expressed through `DETAILS` (`CRITERIA_MATCH` for the filter model,
|
|
15
|
+
* `ORDER_BY` for the sort model, `OFFSET` for paging) with an empty `REQUEST` payload.
|
|
16
|
+
* {@link @genesislcap/grid-pro#GridProServerSideDatasource} enforces this before constructing the
|
|
17
|
+
* datasource.
|
|
18
|
+
*
|
|
19
|
+
* Paging is therefore always offset-based - `criteriaOnlyRequest` guarantees `OFFSET` support, so
|
|
20
|
+
* there is no `VIEW_NUMBER` fallback to choose between.
|
|
12
21
|
* @beta
|
|
13
22
|
*/
|
|
14
23
|
export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
15
24
|
constructor(options) {
|
|
16
|
-
var _a, _b, _c
|
|
25
|
+
var _a, _b, _c;
|
|
17
26
|
super(options);
|
|
18
27
|
// Track the total discovered row count when we reach the last page
|
|
19
28
|
this.discoveredTotalRowCount = null;
|
|
20
|
-
this.currentNextOffset = 0;
|
|
21
29
|
this.createReqRepRequestFunc = options.createReqRepRequestFunc;
|
|
22
30
|
this.createReqRepStreamFunc = options.createReqRepStreamFunc;
|
|
23
31
|
this.onPollingUpdate = options.onPollingUpdateFunc;
|
|
@@ -25,18 +33,8 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
25
33
|
this.usePolling = (_a = options.usePolling) !== null && _a !== void 0 ? _a : false;
|
|
26
34
|
// Initialize debounced stream creation function
|
|
27
35
|
this.debouncedCreateStream = debounce((params) => this.createPollingStream(params), POLLING_STREAM_DEBOUNCE_MS);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (effectivePagingMode === 'viewBased') {
|
|
31
|
-
if (!((_c = (_b = options.resourceParams) === null || _b === void 0 ? void 0 : _b.DETAILS) === null || _c === void 0 ? void 0 : _c.VIEW_NUMBER)) {
|
|
32
|
-
this.resourceParams.DETAILS.VIEW_NUMBER = this.zeroBasedViewNumber ? 0 : 1;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
// offsetBased
|
|
37
|
-
if (!((_e = (_d = options.resourceParams) === null || _d === void 0 ? void 0 : _d.DETAILS) === null || _e === void 0 ? void 0 : _e.OFFSET)) {
|
|
38
|
-
this.resourceParams.DETAILS.OFFSET = 0;
|
|
39
|
-
}
|
|
36
|
+
if (!((_c = (_b = options.resourceParams) === null || _b === void 0 ? void 0 : _b.DETAILS) === null || _c === void 0 ? void 0 : _c.OFFSET)) {
|
|
37
|
+
this.resourceParams.DETAILS.OFFSET = 0;
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
40
|
getRows(params) {
|
|
@@ -49,67 +47,19 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
49
47
|
params.fail();
|
|
50
48
|
return;
|
|
51
49
|
}
|
|
52
|
-
|
|
53
|
-
//
|
|
54
|
-
this.
|
|
50
|
+
// Use startRow as the OFFSET to ensure correct block-to-offset mapping, even when blocks are
|
|
51
|
+
// re-requested out of order (e.g. polling refresh of block 0)
|
|
52
|
+
this.resourceParams.DETAILS.OFFSET = params.request.startRow;
|
|
55
53
|
const requestParams = {
|
|
56
|
-
DETAILS: this.buildRequestDetails(
|
|
54
|
+
DETAILS: this.buildRequestDetails(),
|
|
57
55
|
};
|
|
58
56
|
const requestResult = yield this.createReqRepRequestFunc(requestParams);
|
|
59
|
-
// Determine if this is the last view/page
|
|
60
|
-
const isLastView = yield this.determineIsLastView(requestResult, requestParams, effectivePagingMode);
|
|
61
57
|
// Apply the result to the grid
|
|
62
|
-
this.applyServerSideData(params, requestResult
|
|
58
|
+
this.applyServerSideData(params, requestResult);
|
|
63
59
|
// If polling enabled, schedule stream creation after user stops scrolling
|
|
64
60
|
this.schedulePollingStream(requestParams);
|
|
65
61
|
});
|
|
66
62
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Advance the view/offset position based on paging mode
|
|
69
|
-
*/
|
|
70
|
-
advancePagingPosition(params, effectivePagingMode) {
|
|
71
|
-
if (effectivePagingMode === 'viewBased') {
|
|
72
|
-
if (this.currentSequenceId !== null && this.currentSequenceId >= 0 && this.moreRows) {
|
|
73
|
-
this.resourceParams.DETAILS.VIEW_NUMBER += 1;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
// offsetBased: use startRow as the OFFSET to ensure correct block-to-offset mapping,
|
|
78
|
-
// even when blocks are re-requested out of order (e.g. polling refresh of block 0)
|
|
79
|
-
this.resourceParams.DETAILS.OFFSET = params.request.startRow;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Determine if this is the last view/page
|
|
84
|
-
*/
|
|
85
|
-
determineIsLastView(requestResult, requestParams, effectivePagingMode) {
|
|
86
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
var _a;
|
|
88
|
-
const hasMoreRowsInResult = 'MORE_ROWS' in requestResult;
|
|
89
|
-
let isLastView = false;
|
|
90
|
-
if (effectivePagingMode === 'viewBased') {
|
|
91
|
-
if (hasMoreRowsInResult) {
|
|
92
|
-
isLastView = !requestResult.MORE_ROWS;
|
|
93
|
-
}
|
|
94
|
-
else if (requestResult.NEXT_VIEW !== -1) {
|
|
95
|
-
const preCheckRequestParams = Object.assign(Object.assign({}, requestParams), { DETAILS: Object.assign(Object.assign({}, requestParams.DETAILS), { VIEW_NUMBER: requestResult.NEXT_VIEW }) });
|
|
96
|
-
const moreRowsPreCheck = yield this.createReqRepRequestFunc(preCheckRequestParams);
|
|
97
|
-
isLastView = moreRowsPreCheck.NEXT_VIEW === -1 && ((_a = moreRowsPreCheck.REPLY) === null || _a === void 0 ? void 0 : _a.length) === 0;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
// offsetBased
|
|
102
|
-
isLastView = hasMoreRowsInResult && !requestResult.MORE_ROWS;
|
|
103
|
-
if ('NEXT_OFFSET' in requestResult && requestResult.NEXT_OFFSET !== -1) {
|
|
104
|
-
this.currentNextOffset = requestResult.NEXT_OFFSET;
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
this.currentNextOffset = 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return isLastView;
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
63
|
/**
|
|
114
64
|
* Schedules polling stream creation if enabled.
|
|
115
65
|
* @remarks
|
|
@@ -122,7 +72,7 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
122
72
|
this.debouncedCreateStream(requestParams);
|
|
123
73
|
}
|
|
124
74
|
}
|
|
125
|
-
applyServerSideData(params, result
|
|
75
|
+
applyServerSideData(params, result) {
|
|
126
76
|
var _a, _b;
|
|
127
77
|
const messageType = result.MESSAGE_TYPE;
|
|
128
78
|
if (messageType &&
|
|
@@ -137,26 +87,14 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
137
87
|
params.fail();
|
|
138
88
|
return;
|
|
139
89
|
}
|
|
140
|
-
const effectivePagingMode = this.getEffectivePagingMode();
|
|
141
90
|
// TODO: the code below will be tweaked/removed when gsf <8.14 is no longer supported
|
|
142
91
|
if ('MORE_ROWS' in result) {
|
|
143
92
|
this.moreRows = result.MORE_ROWS;
|
|
144
93
|
}
|
|
145
94
|
else {
|
|
146
|
-
// Fall back to
|
|
147
|
-
|
|
148
|
-
this.
|
|
149
|
-
!isLastView &&
|
|
150
|
-
result.NEXT_VIEW !== -1 &&
|
|
151
|
-
result.NEXT_VIEW > this.resourceParams.DETAILS.VIEW_NUMBER;
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
// offsetBased
|
|
155
|
-
this.moreRows =
|
|
156
|
-
!isLastView &&
|
|
157
|
-
result.NEXT_OFFSET !== -1 &&
|
|
158
|
-
result.NEXT_OFFSET > this.resourceParams.DETAILS.OFFSET;
|
|
159
|
-
}
|
|
95
|
+
// Fall back to NEXT_OFFSET for backwards compatibility
|
|
96
|
+
this.moreRows =
|
|
97
|
+
result.NEXT_OFFSET !== -1 && result.NEXT_OFFSET > this.resourceParams.DETAILS.OFFSET;
|
|
160
98
|
}
|
|
161
99
|
if ((_a = result.REPLY) === null || _a === void 0 ? void 0 : _a.length) {
|
|
162
100
|
this.handleCurrentStreamLoad(result.REPLY);
|
|
@@ -165,14 +103,7 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
165
103
|
this.completeEmptyResult(params);
|
|
166
104
|
return;
|
|
167
105
|
}
|
|
168
|
-
|
|
169
|
-
if (effectivePagingMode === 'viewBased') {
|
|
170
|
-
this.currentSequenceId = this.resourceParams.DETAILS.VIEW_NUMBER;
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
// For offsetBased, use OFFSET / maxRows to get the sequence
|
|
174
|
-
this.currentSequenceId = Math.floor(this.resourceParams.DETAILS.OFFSET / this.maxRows);
|
|
175
|
-
}
|
|
106
|
+
this.currentSequenceId = Math.floor(this.resourceParams.DETAILS.OFFSET / this.maxRows);
|
|
176
107
|
this.sourceRef = result.SOURCE_REF;
|
|
177
108
|
// For req-rep, store the total row count when we reach the last page
|
|
178
109
|
if (!this.moreRows) {
|
|
@@ -261,8 +192,6 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
261
192
|
this.debouncedCreateStream.cancel();
|
|
262
193
|
}
|
|
263
194
|
this.discoveredTotalRowCount = null;
|
|
264
|
-
this.currentNextOffset = 0;
|
|
265
|
-
this.resourceParams.DETAILS.VIEW_NUMBER = this.zeroBasedViewNumber ? 0 : 1;
|
|
266
195
|
this.resourceParams.DETAILS.OFFSET = 0;
|
|
267
196
|
yield _super.refreshDatasource.call(this, params);
|
|
268
197
|
});
|
|
@@ -348,18 +277,12 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
348
277
|
this.resetPreviousPollResult();
|
|
349
278
|
}
|
|
350
279
|
}
|
|
351
|
-
buildRequestDetails(
|
|
352
|
-
|
|
280
|
+
buildRequestDetails() {
|
|
281
|
+
return {
|
|
353
282
|
CRITERIA_MATCH: this.resourceParams.DETAILS.CRITERIA_MATCH,
|
|
354
283
|
MAX_ROWS: this.resourceParams.DETAILS.MAX_ROWS,
|
|
355
284
|
ORDER_BY: this.resourceParams.DETAILS.ORDER_BY,
|
|
285
|
+
OFFSET: this.resourceParams.DETAILS.OFFSET,
|
|
356
286
|
};
|
|
357
|
-
if (effectivePagingMode === 'viewBased') {
|
|
358
|
-
return Object.assign(Object.assign({}, baseDetails), { VIEW_NUMBER: this.resourceParams.DETAILS.VIEW_NUMBER });
|
|
359
|
-
}
|
|
360
|
-
else {
|
|
361
|
-
// offsetBased
|
|
362
|
-
return Object.assign(Object.assign({}, baseDetails), { OFFSET: this.resourceParams.DETAILS.OFFSET });
|
|
363
|
-
}
|
|
364
287
|
}
|
|
365
288
|
}
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -20729,7 +20729,7 @@
|
|
|
20729
20729
|
{
|
|
20730
20730
|
"kind": "Class",
|
|
20731
20731
|
"canonicalReference": "@genesislcap/grid-pro!GridProServerSideDatasource:class",
|
|
20732
|
-
"docComment": "/**\n * A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.\n *\n * @remarks\n *\n * Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.\n *\n * **Custom Sort Indicators**: This datasource automatically applies custom sort indicators that are always visible (instead of only on hover). Sortable columns will show a subtle sort icon even when not sorted, and active sort indicators will be more prominent. The custom styling uses AG Grid's native icon font for consistency with the grid theme.\n *\n * @fires\n *\n * base-datasource-error - Fired when a datasource error is reported. detail: `BaseDatasourceErrorEventDetail`\n *\n * @fires\n *\n * datasource-error - Fired when a datasource error occurs (for grid integration). detail: `DatasourceErrorEventDetail`\n *\n * @fires\n *\n * base-datasource-connected - Fired when error state is cleared after connection succeeds\n *\n * @fires\n *\n * datasource-loading-finished - Fired when pending stream transactions are flushed with no row changes\n *\n * @fires\n *\n * datasource-no-data-available - Fired when loading finishes with an empty row set\n *\n * @fires\n *\n * datasource-data-changed - Fired when row data changes from applied stream transactions. detail: `DataChangedEventDetail`\n *\n * @fires\n *\n * cache-filter-config - Fired to persist filter configuration for the grid\n *\n * @fires\n *\n * refresh-server-side - Fired to request a server-side refresh. detail: `RefreshServerSideEventDetail`\n *\n * @fires\n *\n * set-server-side-datasource - Fired to attach or clear the server-side row model datasource\n *\n * @fires\n *\n * datasource-loading-started - Fired when a server-side load cycle starts\n *\n * @fires\n *\n * add-grid-css-class - Fired to add a CSS class on the grid host (e.g. server-side styling). detail: `GridCssClassEventDetail`\n *\n * @fires\n *\n * remove-grid-css-class - Fired to remove a CSS class from the grid host. detail: `GridCssClassEventDetail`\n *\n * @fires\n *\n * datasource-initialize - Fired to hand off server-side grid options. detail: `InitializeEventDetail`\n *\n * @fires\n *\n * datasource-init - Fired when the server-side grid model should initialize data\n *\n * @fires\n *\n * datasource-schema-updated - Fired when column metadata or defs are updated. detail: `SchemaUpdatedEventDetail`\n *\n * @fires\n *\n * datasource-filters-restored - Fired when persisted filters are reapplied\n *\n * @fires\n *\n * datasource-data-cleared - Fired when server-side row data is cleared. detail: `DataClearedEventDetail`\n *\n * @fires\n *\n * apply-server-side-transaction - Fired to apply a server-side row transaction\n *\n * @fires\n *\n * datasource-ready - Fired when the host grid is ready to start loading data\n *\n * @beta\n */\n",
|
|
20732
|
+
"docComment": "/**\n * A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.\n *\n * @remarks\n *\n * Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.\n *\n * **Supported resources**: DATASERVER resources, and REQUEST_SERVER (req/rep) resources that declare `criteriaOnlyRequest`. A req/rep resource without it reports a `resource-type` error and no datasource is attached to the grid.\n *\n * **Custom Sort Indicators**: This datasource automatically applies custom sort indicators that are always visible (instead of only on hover). Sortable columns will show a subtle sort icon even when not sorted, and active sort indicators will be more prominent. The custom styling uses AG Grid's native icon font for consistency with the grid theme.\n *\n * @fires\n *\n * base-datasource-error - Fired when a datasource error is reported. detail: `BaseDatasourceErrorEventDetail`\n *\n * @fires\n *\n * datasource-error - Fired when a datasource error occurs (for grid integration). detail: `DatasourceErrorEventDetail`\n *\n * @fires\n *\n * base-datasource-connected - Fired when error state is cleared after connection succeeds\n *\n * @fires\n *\n * datasource-loading-finished - Fired when pending stream transactions are flushed with no row changes\n *\n * @fires\n *\n * datasource-no-data-available - Fired when loading finishes with an empty row set\n *\n * @fires\n *\n * datasource-data-changed - Fired when row data changes from applied stream transactions. detail: `DataChangedEventDetail`\n *\n * @fires\n *\n * cache-filter-config - Fired to persist filter configuration for the grid\n *\n * @fires\n *\n * refresh-server-side - Fired to request a server-side refresh. detail: `RefreshServerSideEventDetail`\n *\n * @fires\n *\n * set-server-side-datasource - Fired to attach or clear the server-side row model datasource\n *\n * @fires\n *\n * datasource-loading-started - Fired when a server-side load cycle starts\n *\n * @fires\n *\n * add-grid-css-class - Fired to add a CSS class on the grid host (e.g. server-side styling). detail: `GridCssClassEventDetail`\n *\n * @fires\n *\n * remove-grid-css-class - Fired to remove a CSS class from the grid host. detail: `GridCssClassEventDetail`\n *\n * @fires\n *\n * datasource-initialize - Fired to hand off server-side grid options. detail: `InitializeEventDetail`\n *\n * @fires\n *\n * datasource-init - Fired when the server-side grid model should initialize data\n *\n * @fires\n *\n * datasource-schema-updated - Fired when column metadata or defs are updated. detail: `SchemaUpdatedEventDetail`\n *\n * @fires\n *\n * datasource-filters-restored - Fired when persisted filters are reapplied\n *\n * @fires\n *\n * datasource-data-cleared - Fired when server-side row data is cleared. detail: `DataClearedEventDetail`\n *\n * @fires\n *\n * apply-server-side-transaction - Fired to apply a server-side row transaction\n *\n * @fires\n *\n * datasource-ready - Fired when the host grid is ready to start loading data\n *\n * @beta\n */\n",
|
|
20733
20733
|
"excerptTokens": [
|
|
20734
20734
|
{
|
|
20735
20735
|
"kind": "Content",
|
|
@@ -21090,41 +21090,6 @@
|
|
|
21090
21090
|
"isAbstract": false,
|
|
21091
21091
|
"name": "loadMore"
|
|
21092
21092
|
},
|
|
21093
|
-
{
|
|
21094
|
-
"kind": "Property",
|
|
21095
|
-
"canonicalReference": "@genesislcap/grid-pro!GridProServerSideDatasource#pagingMode:member",
|
|
21096
|
-
"docComment": "/**\n * The paging mode to use for data fetching.\n *\n * @remarks\n *\n * - \"viewBased\": Uses VIEW_NUMBER and NEXT_VIEW (1 by 1 increment) - \"offsetBased\": Uses OFFSET and NEXT_OFFSET (based on maxRows increment) - undefined: Auto-determines based on criteriaOnlyRequest availability\n */\n",
|
|
21097
|
-
"excerptTokens": [
|
|
21098
|
-
{
|
|
21099
|
-
"kind": "Content",
|
|
21100
|
-
"text": "pagingMode: "
|
|
21101
|
-
},
|
|
21102
|
-
{
|
|
21103
|
-
"kind": "Reference",
|
|
21104
|
-
"text": "PagingMode",
|
|
21105
|
-
"canonicalReference": "@genesislcap/grid-pro!PagingMode:type"
|
|
21106
|
-
},
|
|
21107
|
-
{
|
|
21108
|
-
"kind": "Content",
|
|
21109
|
-
"text": " | undefined"
|
|
21110
|
-
},
|
|
21111
|
-
{
|
|
21112
|
-
"kind": "Content",
|
|
21113
|
-
"text": ";"
|
|
21114
|
-
}
|
|
21115
|
-
],
|
|
21116
|
-
"isReadonly": false,
|
|
21117
|
-
"isOptional": false,
|
|
21118
|
-
"releaseTag": "Beta",
|
|
21119
|
-
"name": "pagingMode",
|
|
21120
|
-
"propertyTypeTokenRange": {
|
|
21121
|
-
"startIndex": 1,
|
|
21122
|
-
"endIndex": 3
|
|
21123
|
-
},
|
|
21124
|
-
"isStatic": false,
|
|
21125
|
-
"isProtected": false,
|
|
21126
|
-
"isAbstract": false
|
|
21127
|
-
},
|
|
21128
21093
|
{
|
|
21129
21094
|
"kind": "Property",
|
|
21130
21095
|
"canonicalReference": "@genesislcap/grid-pro!GridProServerSideDatasource#pollingDatasource:member",
|
|
@@ -21370,36 +21335,6 @@
|
|
|
21370
21335
|
"isStatic": false,
|
|
21371
21336
|
"isProtected": false,
|
|
21372
21337
|
"isAbstract": false
|
|
21373
|
-
},
|
|
21374
|
-
{
|
|
21375
|
-
"kind": "Property",
|
|
21376
|
-
"canonicalReference": "@genesislcap/grid-pro!GridProServerSideDatasource#zeroBasedViewNumber:member",
|
|
21377
|
-
"docComment": "/**\n * The starting VIEW_NUMBER of the data to be fetched.\n *\n * @remarks\n *\n * The VIEW_NUMBER isincremented by the grid as the user scrolls or changes pages.\n */\n",
|
|
21378
|
-
"excerptTokens": [
|
|
21379
|
-
{
|
|
21380
|
-
"kind": "Content",
|
|
21381
|
-
"text": "zeroBasedViewNumber: "
|
|
21382
|
-
},
|
|
21383
|
-
{
|
|
21384
|
-
"kind": "Content",
|
|
21385
|
-
"text": "boolean"
|
|
21386
|
-
},
|
|
21387
|
-
{
|
|
21388
|
-
"kind": "Content",
|
|
21389
|
-
"text": ";"
|
|
21390
|
-
}
|
|
21391
|
-
],
|
|
21392
|
-
"isReadonly": false,
|
|
21393
|
-
"isOptional": false,
|
|
21394
|
-
"releaseTag": "Beta",
|
|
21395
|
-
"name": "zeroBasedViewNumber",
|
|
21396
|
-
"propertyTypeTokenRange": {
|
|
21397
|
-
"startIndex": 1,
|
|
21398
|
-
"endIndex": 2
|
|
21399
|
-
},
|
|
21400
|
-
"isStatic": false,
|
|
21401
|
-
"isProtected": false,
|
|
21402
|
-
"isAbstract": false
|
|
21403
21338
|
}
|
|
21404
21339
|
],
|
|
21405
21340
|
"extendsTokenRange": {
|
|
@@ -26406,32 +26341,6 @@
|
|
|
26406
26341
|
"endIndex": 0
|
|
26407
26342
|
}
|
|
26408
26343
|
},
|
|
26409
|
-
{
|
|
26410
|
-
"kind": "TypeAlias",
|
|
26411
|
-
"canonicalReference": "@genesislcap/grid-pro!PagingMode:type",
|
|
26412
|
-
"docComment": "/**\n * Available paging modes for server-side datasources\n *\n * @remarks\n *\n * - This type defines the paging approach used for server-side data fetching - 'viewBased': Uses VIEW_NUMBER and NEXT_VIEW (1 by 1 increment) - 'offsetBased': Uses OFFSET and NEXT_OFFSET (based on maxRows increment)\n *\n * @public\n */\n",
|
|
26413
|
-
"excerptTokens": [
|
|
26414
|
-
{
|
|
26415
|
-
"kind": "Content",
|
|
26416
|
-
"text": "export type PagingMode = "
|
|
26417
|
-
},
|
|
26418
|
-
{
|
|
26419
|
-
"kind": "Content",
|
|
26420
|
-
"text": "'viewBased' | 'offsetBased'"
|
|
26421
|
-
},
|
|
26422
|
-
{
|
|
26423
|
-
"kind": "Content",
|
|
26424
|
-
"text": ";"
|
|
26425
|
-
}
|
|
26426
|
-
],
|
|
26427
|
-
"fileUrlPath": "src/datasource/datasource.types.ts",
|
|
26428
|
-
"releaseTag": "Public",
|
|
26429
|
-
"name": "PagingMode",
|
|
26430
|
-
"typeTokenRange": {
|
|
26431
|
-
"startIndex": 1,
|
|
26432
|
-
"endIndex": 2
|
|
26433
|
-
}
|
|
26434
|
-
},
|
|
26435
26344
|
{
|
|
26436
26345
|
"kind": "Interface",
|
|
26437
26346
|
"canonicalReference": "@genesislcap/grid-pro!RefreshServerSideEventDetail:interface",
|
|
@@ -28597,16 +28506,7 @@
|
|
|
28597
28506
|
},
|
|
28598
28507
|
{
|
|
28599
28508
|
"kind": "Content",
|
|
28600
|
-
"text": "[];\n maxRows?: number;\n maxView?: number;\n rowId?: string;\n
|
|
28601
|
-
},
|
|
28602
|
-
{
|
|
28603
|
-
"kind": "Reference",
|
|
28604
|
-
"text": "PagingMode",
|
|
28605
|
-
"canonicalReference": "@genesislcap/grid-pro!PagingMode:type"
|
|
28606
|
-
},
|
|
28607
|
-
{
|
|
28608
|
-
"kind": "Content",
|
|
28609
|
-
"text": " | undefined;\n criteriaOnlyRequest?: boolean;\n usePolling?: boolean;\n}"
|
|
28509
|
+
"text": "[];\n maxRows?: number;\n maxView?: number;\n rowId?: string;\n usePolling?: boolean;\n}"
|
|
28610
28510
|
},
|
|
28611
28511
|
{
|
|
28612
28512
|
"kind": "Content",
|
|
@@ -28618,7 +28518,7 @@
|
|
|
28618
28518
|
"name": "ServerSideDatasourceOptions",
|
|
28619
28519
|
"typeTokenRange": {
|
|
28620
28520
|
"startIndex": 1,
|
|
28621
|
-
"endIndex":
|
|
28521
|
+
"endIndex": 32
|
|
28622
28522
|
}
|
|
28623
28523
|
},
|
|
28624
28524
|
{
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -4980,6 +4980,10 @@ export declare enum GridProRendererTypes {
|
|
|
4980
4980
|
* A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
|
|
4981
4981
|
* @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
|
|
4982
4982
|
*
|
|
4983
|
+
* **Supported resources**: DATASERVER resources, and REQUEST_SERVER (req/rep) resources that declare
|
|
4984
|
+
* `criteriaOnlyRequest`. A req/rep resource without it reports a `resource-type` error and no
|
|
4985
|
+
* datasource is attached to the grid.
|
|
4986
|
+
*
|
|
4983
4987
|
* **Custom Sort Indicators**: This datasource automatically applies custom sort indicators that are always visible (instead of only on hover).
|
|
4984
4988
|
* Sortable columns will show a subtle sort icon even when not sorted, and active sort indicators will be more prominent.
|
|
4985
4989
|
* The custom styling uses AG Grid's native icon font for consistency with the grid theme.
|
|
@@ -5009,24 +5013,11 @@ export declare enum GridProRendererTypes {
|
|
|
5009
5013
|
export declare class GridProServerSideDatasource extends GridProServerSideDatasource_base {
|
|
5010
5014
|
serializer: JSONSerializer;
|
|
5011
5015
|
pollingDatasource: Datasource;
|
|
5012
|
-
/**
|
|
5013
|
-
* The starting VIEW_NUMBER of the data to be fetched.
|
|
5014
|
-
* @remarks The VIEW_NUMBER isincremented by the grid as the user scrolls or changes pages.
|
|
5015
|
-
*/
|
|
5016
|
-
zeroBasedViewNumber: boolean;
|
|
5017
5016
|
/**
|
|
5018
5017
|
* Enable live updates for the grid.
|
|
5019
5018
|
* @remarks Only works with DATASERVER resources (StreamDatasource) right now.
|
|
5020
5019
|
*/
|
|
5021
5020
|
liveUpdates: boolean;
|
|
5022
|
-
/**
|
|
5023
|
-
* The paging mode to use for data fetching.
|
|
5024
|
-
* @remarks
|
|
5025
|
-
* - "viewBased": Uses VIEW_NUMBER and NEXT_VIEW (1 by 1 increment)
|
|
5026
|
-
* - "offsetBased": Uses OFFSET and NEXT_OFFSET (based on maxRows increment)
|
|
5027
|
-
* - undefined: Auto-determines based on criteriaOnlyRequest availability
|
|
5028
|
-
*/
|
|
5029
|
-
pagingMode: PagingMode | undefined;
|
|
5030
5021
|
request: any;
|
|
5031
5022
|
private indexes;
|
|
5032
5023
|
private ssrmDatasource;
|
|
@@ -5057,6 +5048,29 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
|
|
|
5057
5048
|
destroy(): Promise<void>;
|
|
5058
5049
|
restart(): Promise<void>;
|
|
5059
5050
|
private clearRowData;
|
|
5051
|
+
/**
|
|
5052
|
+
* Checks whether the resolved resource can be served through the Server-Side Row Model.
|
|
5053
|
+
* @remarks
|
|
5054
|
+
* REQUEST_SERVER (req/rep) resources are only supported when the request reply declares
|
|
5055
|
+
* `criteriaOnlyRequest` (`CRITERIA_ONLY_REQUEST` in its metadata). SSRM drives a req/rep
|
|
5056
|
+
* resource purely through `DETAILS` - `CRITERIA_MATCH` for the grid filter model, `ORDER_BY`
|
|
5057
|
+
* for the sort model and `OFFSET` for paging - and sends an empty `REQUEST`
|
|
5058
|
+
* payload. A request reply without `criteriaOnlyRequest` expects its inputs in `REQUEST`
|
|
5059
|
+
* instead, so filtering, sorting and paging would silently do nothing.
|
|
5060
|
+
*
|
|
5061
|
+
* DATASERVER resources are always supported.
|
|
5062
|
+
* @returns `true` when SSRM can be used, `false` after reporting a `resource-type` error.
|
|
5063
|
+
* @internal
|
|
5064
|
+
*/
|
|
5065
|
+
private isSsrmSupportedForResource;
|
|
5066
|
+
/**
|
|
5067
|
+
* Leaves the grid with no server-side datasource, for a resource SSRM cannot serve.
|
|
5068
|
+
* @remarks
|
|
5069
|
+
* Clears any rows and hands the grid a `null` datasource, so AG Grid never calls `getRows()` for
|
|
5070
|
+
* this resource.
|
|
5071
|
+
* @internal
|
|
5072
|
+
*/
|
|
5073
|
+
private refuseServerSideDatasource;
|
|
5060
5074
|
private getResourceIndexes;
|
|
5061
5075
|
private createReqRepRequest;
|
|
5062
5076
|
/**
|
|
@@ -6431,15 +6445,6 @@ export declare enum OperationType {
|
|
|
6431
6445
|
/** The CSS class to use for the options element's class in the dropdown */
|
|
6432
6446
|
export declare const optionsClass = "options";
|
|
6433
6447
|
|
|
6434
|
-
/**
|
|
6435
|
-
* Available paging modes for server-side datasources
|
|
6436
|
-
* @remarks - This type defines the paging approach used for server-side data fetching
|
|
6437
|
-
* - 'viewBased': Uses VIEW_NUMBER and NEXT_VIEW (1 by 1 increment)
|
|
6438
|
-
* - 'offsetBased': Uses OFFSET and NEXT_OFFSET (based on maxRows increment)
|
|
6439
|
-
* @public
|
|
6440
|
-
*/
|
|
6441
|
-
export declare type PagingMode = 'viewBased' | 'offsetBased';
|
|
6442
|
-
|
|
6443
6448
|
/**
|
|
6444
6449
|
* Event detail for requesting a server-side row model refresh.
|
|
6445
6450
|
*/
|
|
@@ -6643,9 +6648,6 @@ export declare type ServerSideDatasourceOptions = {
|
|
|
6643
6648
|
maxRows?: number;
|
|
6644
6649
|
maxView?: number;
|
|
6645
6650
|
rowId?: string;
|
|
6646
|
-
zeroBasedViewNumber?: boolean;
|
|
6647
|
-
pagingMode?: PagingMode | undefined;
|
|
6648
|
-
criteriaOnlyRequest?: boolean;
|
|
6649
6651
|
usePolling?: boolean;
|
|
6650
6652
|
};
|
|
6651
6653
|
|
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": "15.
|
|
4
|
+
"version": "15.9.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": "15.
|
|
44
|
-
"@genesislcap/genx": "15.
|
|
45
|
-
"@genesislcap/rollup-builder": "15.
|
|
46
|
-
"@genesislcap/ts-builder": "15.
|
|
47
|
-
"@genesislcap/uvu-playwright-builder": "15.
|
|
48
|
-
"@genesislcap/vite-builder": "15.
|
|
49
|
-
"@genesislcap/webpack-builder": "15.
|
|
43
|
+
"@genesislcap/foundation-testing": "15.9.0",
|
|
44
|
+
"@genesislcap/genx": "15.9.0",
|
|
45
|
+
"@genesislcap/rollup-builder": "15.9.0",
|
|
46
|
+
"@genesislcap/ts-builder": "15.9.0",
|
|
47
|
+
"@genesislcap/uvu-playwright-builder": "15.9.0",
|
|
48
|
+
"@genesislcap/vite-builder": "15.9.0",
|
|
49
|
+
"@genesislcap/webpack-builder": "15.9.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@genesislcap/foundation-comms": "15.
|
|
53
|
-
"@genesislcap/foundation-criteria": "15.
|
|
54
|
-
"@genesislcap/foundation-logger": "15.
|
|
55
|
-
"@genesislcap/foundation-ui": "15.
|
|
56
|
-
"@genesislcap/foundation-utils": "15.
|
|
52
|
+
"@genesislcap/foundation-comms": "15.9.0",
|
|
53
|
+
"@genesislcap/foundation-criteria": "15.9.0",
|
|
54
|
+
"@genesislcap/foundation-logger": "15.9.0",
|
|
55
|
+
"@genesislcap/foundation-ui": "15.9.0",
|
|
56
|
+
"@genesislcap/foundation-utils": "15.9.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": "640fddb70d899b01c9337563ae874ddb5226cbcd"
|
|
95
95
|
}
|