@genesislcap/grid-pro 14.447.1 → 14.448.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 +218 -0
- package/dist/dts/datasource/base.types.d.ts +2 -0
- package/dist/dts/datasource/base.types.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-base.d.ts +6 -0
- package/dist/dts/datasource/server-side.resource-base.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-dataserver.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-reqrep.d.ts.map +1 -1
- package/dist/esm/datasource/server-side.datasource.js +2 -0
- package/dist/esm/datasource/server-side.resource-base.js +21 -0
- package/dist/esm/datasource/server-side.resource-dataserver.js +2 -4
- package/dist/esm/datasource/server-side.resource-reqrep.js +6 -8
- package/dist/grid-pro.api.json +1 -1
- package/dist/grid-pro.d.ts +2 -0
- package/package.json +14 -14
|
@@ -13580,6 +13580,14 @@
|
|
|
13580
13580
|
"text": "(message: string, type: string) => void"
|
|
13581
13581
|
}
|
|
13582
13582
|
},
|
|
13583
|
+
{
|
|
13584
|
+
"kind": "field",
|
|
13585
|
+
"name": "onNoDataAvailableFunc",
|
|
13586
|
+
"type": {
|
|
13587
|
+
"text": "() => void | undefined"
|
|
13588
|
+
},
|
|
13589
|
+
"privacy": "protected"
|
|
13590
|
+
},
|
|
13583
13591
|
{
|
|
13584
13592
|
"kind": "field",
|
|
13585
13593
|
"name": "resourceName",
|
|
@@ -13948,6 +13956,60 @@
|
|
|
13948
13956
|
"privacy": "protected",
|
|
13949
13957
|
"readonly": true
|
|
13950
13958
|
},
|
|
13959
|
+
{
|
|
13960
|
+
"kind": "method",
|
|
13961
|
+
"name": "completeEmptyResult",
|
|
13962
|
+
"privacy": "protected",
|
|
13963
|
+
"return": {
|
|
13964
|
+
"type": {
|
|
13965
|
+
"text": "void"
|
|
13966
|
+
}
|
|
13967
|
+
},
|
|
13968
|
+
"parameters": [
|
|
13969
|
+
{
|
|
13970
|
+
"name": "params",
|
|
13971
|
+
"type": {
|
|
13972
|
+
"text": "IServerSideGetRowsParams"
|
|
13973
|
+
}
|
|
13974
|
+
}
|
|
13975
|
+
],
|
|
13976
|
+
"description": "Completes an SSRM request with zero rows and invokes `onNoDataAvailableFunc` on the first block only. @internal"
|
|
13977
|
+
},
|
|
13978
|
+
{
|
|
13979
|
+
"kind": "method",
|
|
13980
|
+
"name": "notifyNoDataAvailableIfEmpty",
|
|
13981
|
+
"privacy": "protected",
|
|
13982
|
+
"return": {
|
|
13983
|
+
"type": {
|
|
13984
|
+
"text": "void"
|
|
13985
|
+
}
|
|
13986
|
+
},
|
|
13987
|
+
"parameters": [
|
|
13988
|
+
{
|
|
13989
|
+
"name": "params",
|
|
13990
|
+
"type": {
|
|
13991
|
+
"text": "IServerSideGetRowsParams"
|
|
13992
|
+
}
|
|
13993
|
+
},
|
|
13994
|
+
{
|
|
13995
|
+
"name": "successRowData",
|
|
13996
|
+
"type": {
|
|
13997
|
+
"text": "LoadSuccessParams"
|
|
13998
|
+
}
|
|
13999
|
+
}
|
|
14000
|
+
],
|
|
14001
|
+
"description": "Invokes `onNoDataAvailableFunc` when the first SSRM block has no rows. @internal"
|
|
14002
|
+
},
|
|
14003
|
+
{
|
|
14004
|
+
"kind": "method",
|
|
14005
|
+
"name": "notifyNoDataAvailable",
|
|
14006
|
+
"privacy": "protected",
|
|
14007
|
+
"return": {
|
|
14008
|
+
"type": {
|
|
14009
|
+
"text": "void"
|
|
14010
|
+
}
|
|
14011
|
+
}
|
|
14012
|
+
},
|
|
13951
14013
|
{
|
|
13952
14014
|
"kind": "method",
|
|
13953
14015
|
"name": "getEffectivePagingMode",
|
|
@@ -14198,6 +14260,18 @@
|
|
|
14198
14260
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
14199
14261
|
}
|
|
14200
14262
|
},
|
|
14263
|
+
{
|
|
14264
|
+
"kind": "field",
|
|
14265
|
+
"name": "onNoDataAvailableFunc",
|
|
14266
|
+
"type": {
|
|
14267
|
+
"text": "() => void | undefined"
|
|
14268
|
+
},
|
|
14269
|
+
"privacy": "protected",
|
|
14270
|
+
"inheritedFrom": {
|
|
14271
|
+
"name": "BaseServerSideDatasource",
|
|
14272
|
+
"module": "src/datasource/server-side.resource-base.ts"
|
|
14273
|
+
}
|
|
14274
|
+
},
|
|
14201
14275
|
{
|
|
14202
14276
|
"kind": "field",
|
|
14203
14277
|
"name": "resourceName",
|
|
@@ -14620,6 +14694,72 @@
|
|
|
14620
14694
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
14621
14695
|
}
|
|
14622
14696
|
},
|
|
14697
|
+
{
|
|
14698
|
+
"kind": "method",
|
|
14699
|
+
"name": "completeEmptyResult",
|
|
14700
|
+
"privacy": "protected",
|
|
14701
|
+
"return": {
|
|
14702
|
+
"type": {
|
|
14703
|
+
"text": "void"
|
|
14704
|
+
}
|
|
14705
|
+
},
|
|
14706
|
+
"parameters": [
|
|
14707
|
+
{
|
|
14708
|
+
"name": "params",
|
|
14709
|
+
"type": {
|
|
14710
|
+
"text": "IServerSideGetRowsParams"
|
|
14711
|
+
}
|
|
14712
|
+
}
|
|
14713
|
+
],
|
|
14714
|
+
"description": "Completes an SSRM request with zero rows and invokes `onNoDataAvailableFunc` on the first block only. @internal",
|
|
14715
|
+
"inheritedFrom": {
|
|
14716
|
+
"name": "BaseServerSideDatasource",
|
|
14717
|
+
"module": "src/datasource/server-side.resource-base.ts"
|
|
14718
|
+
}
|
|
14719
|
+
},
|
|
14720
|
+
{
|
|
14721
|
+
"kind": "method",
|
|
14722
|
+
"name": "notifyNoDataAvailableIfEmpty",
|
|
14723
|
+
"privacy": "protected",
|
|
14724
|
+
"return": {
|
|
14725
|
+
"type": {
|
|
14726
|
+
"text": "void"
|
|
14727
|
+
}
|
|
14728
|
+
},
|
|
14729
|
+
"parameters": [
|
|
14730
|
+
{
|
|
14731
|
+
"name": "params",
|
|
14732
|
+
"type": {
|
|
14733
|
+
"text": "IServerSideGetRowsParams"
|
|
14734
|
+
}
|
|
14735
|
+
},
|
|
14736
|
+
{
|
|
14737
|
+
"name": "successRowData",
|
|
14738
|
+
"type": {
|
|
14739
|
+
"text": "LoadSuccessParams"
|
|
14740
|
+
}
|
|
14741
|
+
}
|
|
14742
|
+
],
|
|
14743
|
+
"description": "Invokes `onNoDataAvailableFunc` when the first SSRM block has no rows. @internal",
|
|
14744
|
+
"inheritedFrom": {
|
|
14745
|
+
"name": "BaseServerSideDatasource",
|
|
14746
|
+
"module": "src/datasource/server-side.resource-base.ts"
|
|
14747
|
+
}
|
|
14748
|
+
},
|
|
14749
|
+
{
|
|
14750
|
+
"kind": "method",
|
|
14751
|
+
"name": "notifyNoDataAvailable",
|
|
14752
|
+
"privacy": "protected",
|
|
14753
|
+
"return": {
|
|
14754
|
+
"type": {
|
|
14755
|
+
"text": "void"
|
|
14756
|
+
}
|
|
14757
|
+
},
|
|
14758
|
+
"inheritedFrom": {
|
|
14759
|
+
"name": "BaseServerSideDatasource",
|
|
14760
|
+
"module": "src/datasource/server-side.resource-base.ts"
|
|
14761
|
+
}
|
|
14762
|
+
},
|
|
14623
14763
|
{
|
|
14624
14764
|
"kind": "method",
|
|
14625
14765
|
"name": "getEffectivePagingMode",
|
|
@@ -15105,6 +15245,18 @@
|
|
|
15105
15245
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
15106
15246
|
}
|
|
15107
15247
|
},
|
|
15248
|
+
{
|
|
15249
|
+
"kind": "field",
|
|
15250
|
+
"name": "onNoDataAvailableFunc",
|
|
15251
|
+
"type": {
|
|
15252
|
+
"text": "() => void | undefined"
|
|
15253
|
+
},
|
|
15254
|
+
"privacy": "protected",
|
|
15255
|
+
"inheritedFrom": {
|
|
15256
|
+
"name": "BaseServerSideDatasource",
|
|
15257
|
+
"module": "src/datasource/server-side.resource-base.ts"
|
|
15258
|
+
}
|
|
15259
|
+
},
|
|
15108
15260
|
{
|
|
15109
15261
|
"kind": "field",
|
|
15110
15262
|
"name": "resourceName",
|
|
@@ -15510,6 +15662,72 @@
|
|
|
15510
15662
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
15511
15663
|
}
|
|
15512
15664
|
},
|
|
15665
|
+
{
|
|
15666
|
+
"kind": "method",
|
|
15667
|
+
"name": "completeEmptyResult",
|
|
15668
|
+
"privacy": "protected",
|
|
15669
|
+
"return": {
|
|
15670
|
+
"type": {
|
|
15671
|
+
"text": "void"
|
|
15672
|
+
}
|
|
15673
|
+
},
|
|
15674
|
+
"parameters": [
|
|
15675
|
+
{
|
|
15676
|
+
"name": "params",
|
|
15677
|
+
"type": {
|
|
15678
|
+
"text": "IServerSideGetRowsParams"
|
|
15679
|
+
}
|
|
15680
|
+
}
|
|
15681
|
+
],
|
|
15682
|
+
"description": "Completes an SSRM request with zero rows and invokes `onNoDataAvailableFunc` on the first block only. @internal",
|
|
15683
|
+
"inheritedFrom": {
|
|
15684
|
+
"name": "BaseServerSideDatasource",
|
|
15685
|
+
"module": "src/datasource/server-side.resource-base.ts"
|
|
15686
|
+
}
|
|
15687
|
+
},
|
|
15688
|
+
{
|
|
15689
|
+
"kind": "method",
|
|
15690
|
+
"name": "notifyNoDataAvailableIfEmpty",
|
|
15691
|
+
"privacy": "protected",
|
|
15692
|
+
"return": {
|
|
15693
|
+
"type": {
|
|
15694
|
+
"text": "void"
|
|
15695
|
+
}
|
|
15696
|
+
},
|
|
15697
|
+
"parameters": [
|
|
15698
|
+
{
|
|
15699
|
+
"name": "params",
|
|
15700
|
+
"type": {
|
|
15701
|
+
"text": "IServerSideGetRowsParams"
|
|
15702
|
+
}
|
|
15703
|
+
},
|
|
15704
|
+
{
|
|
15705
|
+
"name": "successRowData",
|
|
15706
|
+
"type": {
|
|
15707
|
+
"text": "LoadSuccessParams"
|
|
15708
|
+
}
|
|
15709
|
+
}
|
|
15710
|
+
],
|
|
15711
|
+
"description": "Invokes `onNoDataAvailableFunc` when the first SSRM block has no rows. @internal",
|
|
15712
|
+
"inheritedFrom": {
|
|
15713
|
+
"name": "BaseServerSideDatasource",
|
|
15714
|
+
"module": "src/datasource/server-side.resource-base.ts"
|
|
15715
|
+
}
|
|
15716
|
+
},
|
|
15717
|
+
{
|
|
15718
|
+
"kind": "method",
|
|
15719
|
+
"name": "notifyNoDataAvailable",
|
|
15720
|
+
"privacy": "protected",
|
|
15721
|
+
"return": {
|
|
15722
|
+
"type": {
|
|
15723
|
+
"text": "void"
|
|
15724
|
+
}
|
|
15725
|
+
},
|
|
15726
|
+
"inheritedFrom": {
|
|
15727
|
+
"name": "BaseServerSideDatasource",
|
|
15728
|
+
"module": "src/datasource/server-side.resource-base.ts"
|
|
15729
|
+
}
|
|
15730
|
+
},
|
|
15513
15731
|
{
|
|
15514
15732
|
"kind": "method",
|
|
15515
15733
|
"name": "getEffectivePagingMode",
|
|
@@ -29,6 +29,8 @@ export type ServerSideDatasourceOptions = {
|
|
|
29
29
|
resetPreviousPollResultFunc?: () => void;
|
|
30
30
|
reloadResourceDataFunc?: (params: any) => Promise<void>;
|
|
31
31
|
errorHandlerFunc?: (message: string, type: string) => void;
|
|
32
|
+
/** Called when a server-side load finishes with zero rows. */
|
|
33
|
+
onNoDataAvailableFunc?: () => void;
|
|
32
34
|
resourceName: string;
|
|
33
35
|
resourceParams?: DataserverParams | RequestParams;
|
|
34
36
|
resourceIndexes?: Map<string, [string]>;
|
|
@@ -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;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,0BAA0B,CAAC,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O,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,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;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACpC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,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"}
|
|
@@ -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,EAWlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,cAAc,EAE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AkB,CAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAsCnE;;;OAGG;IACH,OAAO,CAAC,mCAAmC;IAc3C;;;OAGG;IACH,OAAO,CAAC,oCAAoC;IAWtC,IAAI;IAqIV,mBAAmB,CAAC,KAAK,EAAE,GAAG;IAMf,OAAO;IAmBP,OAAO;IAKtB,OAAO,CAAC,YAAY;IAmBpB,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;YAsElB,sBAAsB;YAoDtB,eAAe;IAmBpB,gBAAgB,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG;IAIvC,QAAQ;CAGlB"}
|
|
@@ -17,6 +17,7 @@ export declare abstract class BaseServerSideDatasource implements IServerSideDat
|
|
|
17
17
|
protected rowData: Map<string, any>;
|
|
18
18
|
reloadResourceDataFunc: (params: DatasourceOptions) => Promise<void>;
|
|
19
19
|
errorHandlerFunc: (message: string, type: string) => void;
|
|
20
|
+
protected onNoDataAvailableFunc?: () => void;
|
|
20
21
|
protected resourceName: string;
|
|
21
22
|
resourceParams: any;
|
|
22
23
|
protected resourceIndexes: Map<string, [string]>;
|
|
@@ -93,6 +94,11 @@ export declare abstract class BaseServerSideDatasource implements IServerSideDat
|
|
|
93
94
|
protected getPageNumber(start: number, recordsPerPage: number, totalRecords?: number, zeroBasedViewNumber?: boolean): number;
|
|
94
95
|
protected getCorrectRowCount(params: IServerSideGetRowsParams<any, any>): any;
|
|
95
96
|
protected get isNotFirstViewNumber(): boolean;
|
|
97
|
+
/** Completes an SSRM request with zero rows and invokes `onNoDataAvailableFunc` on the first block only. @internal */
|
|
98
|
+
protected completeEmptyResult(params: IServerSideGetRowsParams): void;
|
|
99
|
+
/** Invokes `onNoDataAvailableFunc` when the first SSRM block has no rows. @internal */
|
|
100
|
+
protected notifyNoDataAvailableIfEmpty(params: IServerSideGetRowsParams, successRowData: LoadSuccessParams): void;
|
|
101
|
+
protected notifyNoDataAvailable(): void;
|
|
96
102
|
/**
|
|
97
103
|
* Determines the effective paging mode based on criteriaOnlyRequest availability and user settings
|
|
98
104
|
*/
|
|
@@ -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,EACL,IAAI,EACJ,OAAO,EACP,cAAc,EAEd,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;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,SAAS,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAa;IAEhD,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;
|
|
1
|
+
{"version":3,"file":"server-side.resource-base.d.ts","sourceRoot":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AC;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;IAmKzC,SAAS,CAAC,gBAAgB,CAAC,UAAU,EAAE,MAAM;IAM7C,SAAS,CAAC,aAAa,CACrB,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,YAAY,CAAC,EAAE,MAAM,EACrB,mBAAmB,UAAO;IAS5B,SAAS,CAAC,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,CAAC,GAAG,EAAE,GAAG,CAAC;IAgCvE,SAAS,KAAK,oBAAoB,IAAI,OAAO,CAE5C;IAED,sHAAsH;IACtH,SAAS,CAAC,mBAAmB,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI;IAOrE,uFAAuF;IACvF,SAAS,CAAC,4BAA4B,CACpC,MAAM,EAAE,wBAAwB,EAChC,cAAc,EAAE,iBAAiB,GAChC,IAAI;IASP,SAAS,CAAC,qBAAqB,IAAI,IAAI;IAIvC;;OAEG;IACH,SAAS,CAAC,sBAAsB,IAAI,UAAU;CAgB/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.resource-dataserver.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-dataserver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EAGxB,gBAAgB,EAChB,kBAAkB,EAGnB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;;GAGG;AACH,qBAAa,8BACX,SAAQ,wBACR,YAAW,qBAAqB;IAEhC,gBAAgB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC7D,4BAA4B,EAAE,kBAAkB,CAAC;IACjD,0BAA0B,EAAE,CAC1B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;gBAE7C,OAAO,EAAE,2BAA2B;IAK1C,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAO3D,OAAO,CAAC,MAAM,EAAE,wBAAwB;IAqE9C,OAAO,CAAC,mBAAmB;
|
|
1
|
+
{"version":3,"file":"server-side.resource-dataserver.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-dataserver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EAGxB,gBAAgB,EAChB,kBAAkB,EAGnB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;;GAGG;AACH,qBAAa,8BACX,SAAQ,wBACR,YAAW,qBAAqB;IAEhC,gBAAgB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC7D,4BAA4B,EAAE,kBAAkB,CAAC;IACjD,0BAA0B,EAAE,CAC1B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;gBAE7C,OAAO,EAAE,2BAA2B;IAK1C,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAO3D,OAAO,CAAC,MAAM,EAAE,wBAAwB;IAqE9C,OAAO,CAAC,mBAAmB;IAgD3B;;;OAGG;cACa,YAAY,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAqDvE,OAAO;IAOb,OAAO,CAAC,uBAAuB;CAYhC"}
|
|
@@ -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;AAE3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAOvE;;;GAGG;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;IACtD,OAAO,CAAC,iBAAiB,CAAa;gBAE1B,OAAO,EAAE,2BAA2B;IA6B1C,OAAO,CAAC,MAAM,EAAE,wBAAwB;IAmC9C;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAwB9B;;OAEG;YACW,mBAAmB;IAsCjC;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAO7B,OAAO,CAAC,mBAAmB;
|
|
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;AAE3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAOvE;;;GAGG;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;IACtD,OAAO,CAAC,iBAAiB,CAAa;gBAE1B,OAAO,EAAE,2BAA2B;IA6B1C,OAAO,CAAC,MAAM,EAAE,wBAAwB;IAmC9C;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAwB9B;;OAEG;YACW,mBAAmB;IAsCjC;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAO7B,OAAO,CAAC,mBAAmB;IAoF3B,SAAS,CAAC,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM;IA0BtE,OAAO,CAAC,uBAAuB;IAoB/B;;;OAGG;cACa,YAAY,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IA+BvE,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB3D,OAAO;IAUb;;;;;;;;;;OAUG;YACW,mBAAmB;IAkCjC;;;;;;;;OAQG;IACH,OAAO,CAAC,oBAAoB;IAqB5B,OAAO,CAAC,mBAAmB;CAoB5B"}
|
|
@@ -283,6 +283,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
283
283
|
usePolling: usePolling,
|
|
284
284
|
reloadResourceDataFunc: this.reloadResourceData.bind(this),
|
|
285
285
|
errorHandlerFunc: this.handleErrors.bind(this),
|
|
286
|
+
onNoDataAvailableFunc: () => this.$emit(datasourceEventNames.noDataAvailable),
|
|
286
287
|
resourceName: this.resourceName,
|
|
287
288
|
resourceParams: this.datasource.requestOnlyParams,
|
|
288
289
|
resourceIndexes: this.indexes,
|
|
@@ -301,6 +302,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
301
302
|
createDataserverStreamFunc: this.createDataserverStream.bind(this),
|
|
302
303
|
reloadResourceDataFunc: this.reloadResourceData.bind(this),
|
|
303
304
|
errorHandlerFunc: this.handleErrors.bind(this),
|
|
305
|
+
onNoDataAvailableFunc: () => this.$emit(datasourceEventNames.noDataAvailable),
|
|
304
306
|
resourceName: this.resourceName,
|
|
305
307
|
resourceParams: this.datasource.dataserverOnlyParams,
|
|
306
308
|
resourceIndexes: this.indexes,
|
|
@@ -26,6 +26,7 @@ export class BaseServerSideDatasource {
|
|
|
26
26
|
this.currentSequenceId = null;
|
|
27
27
|
this.reloadResourceDataFunc = options.reloadResourceDataFunc;
|
|
28
28
|
this.errorHandlerFunc = options.errorHandlerFunc;
|
|
29
|
+
this.onNoDataAvailableFunc = options.onNoDataAvailableFunc;
|
|
29
30
|
this.resourceName = options.resourceName;
|
|
30
31
|
this.resourceParams = options.resourceParams;
|
|
31
32
|
this.originalCriteriaMatch = this.getResourceParam('CRITERIA_MATCH');
|
|
@@ -348,6 +349,26 @@ export class BaseServerSideDatasource {
|
|
|
348
349
|
get isNotFirstViewNumber() {
|
|
349
350
|
return this.zeroBasedViewNumber ? this.currentSequenceId > 0 : this.currentSequenceId > 1;
|
|
350
351
|
}
|
|
352
|
+
/** Completes an SSRM request with zero rows and invokes `onNoDataAvailableFunc` on the first block only. @internal */
|
|
353
|
+
completeEmptyResult(params) {
|
|
354
|
+
this.rowData = new Map();
|
|
355
|
+
const successRowData = { rowData: [], rowCount: 0 };
|
|
356
|
+
params.success(successRowData);
|
|
357
|
+
this.notifyNoDataAvailableIfEmpty(params, successRowData);
|
|
358
|
+
}
|
|
359
|
+
/** Invokes `onNoDataAvailableFunc` when the first SSRM block has no rows. @internal */
|
|
360
|
+
notifyNoDataAvailableIfEmpty(params, successRowData) {
|
|
361
|
+
var _a;
|
|
362
|
+
const rowDataEmpty = !((_a = successRowData.rowData) === null || _a === void 0 ? void 0 : _a.length);
|
|
363
|
+
const atStart = params.request.startRow === 0;
|
|
364
|
+
if (atStart && rowDataEmpty) {
|
|
365
|
+
this.notifyNoDataAvailable();
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
notifyNoDataAvailable() {
|
|
369
|
+
var _a;
|
|
370
|
+
(_a = this.onNoDataAvailableFunc) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
371
|
+
}
|
|
351
372
|
/**
|
|
352
373
|
* Determines the effective paging mode based on criteriaOnlyRequest availability and user settings
|
|
353
374
|
*/
|
|
@@ -98,10 +98,7 @@ export class DataserverServerSideDatasource extends BaseServerSideDatasource {
|
|
|
98
98
|
this.handleCurrentStreamLoad(nextMessage);
|
|
99
99
|
}
|
|
100
100
|
else {
|
|
101
|
-
this.
|
|
102
|
-
const successRowData = { rowData: [] };
|
|
103
|
-
successRowData.rowCount = 0;
|
|
104
|
-
params.success(successRowData);
|
|
101
|
+
this.completeEmptyResult(params);
|
|
105
102
|
return;
|
|
106
103
|
}
|
|
107
104
|
this.currentSequenceId = result.SEQUENCE_ID;
|
|
@@ -117,6 +114,7 @@ export class DataserverServerSideDatasource extends BaseServerSideDatasource {
|
|
|
117
114
|
successRowData.rowCount = this.getCorrectRowCount(params);
|
|
118
115
|
this.lastSuccessRowData = successRowData;
|
|
119
116
|
params.success(successRowData);
|
|
117
|
+
this.notifyNoDataAvailableIfEmpty(params, successRowData);
|
|
120
118
|
}
|
|
121
119
|
/**
|
|
122
120
|
* Dataserver-specific sorting setup that validates columns are part of an index.
|
|
@@ -128,7 +128,7 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
applyServerSideData(params, result, isLastView) {
|
|
131
|
-
var _a, _b;
|
|
131
|
+
var _a, _b, _c;
|
|
132
132
|
const messageType = result.MESSAGE_TYPE;
|
|
133
133
|
if (messageType &&
|
|
134
134
|
(messageType === MessageType.LOGOFF_ACK || messageType === MessageType.MSG_NACK)) {
|
|
@@ -163,14 +163,11 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
163
163
|
result.NEXT_OFFSET > this.resourceParams.DETAILS.OFFSET;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
if (result.REPLY) {
|
|
166
|
+
if ((_a = result.REPLY) === null || _a === void 0 ? void 0 : _a.length) {
|
|
167
167
|
this.handleCurrentStreamLoad(result.REPLY);
|
|
168
168
|
}
|
|
169
169
|
else {
|
|
170
|
-
this.
|
|
171
|
-
const successRowData = { rowData: [] };
|
|
172
|
-
successRowData.rowCount = 0;
|
|
173
|
-
params.success(successRowData);
|
|
170
|
+
this.completeEmptyResult(params);
|
|
174
171
|
return;
|
|
175
172
|
}
|
|
176
173
|
// Update current sequence ID based on paging mode
|
|
@@ -189,10 +186,10 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
189
186
|
}
|
|
190
187
|
// Reset serverRowsCount accumulation for req-rep pagination
|
|
191
188
|
if (this.pagination) {
|
|
192
|
-
this.serverRowsCount = (
|
|
189
|
+
this.serverRowsCount = (_b = result.ROWS_COUNT) !== null && _b !== void 0 ? _b : this.rowData.size;
|
|
193
190
|
}
|
|
194
191
|
else {
|
|
195
|
-
this.serverRowsCount += (
|
|
192
|
+
this.serverRowsCount += (_c = result.ROWS_COUNT) !== null && _c !== void 0 ? _c : this.rowData.size;
|
|
196
193
|
}
|
|
197
194
|
const successRowData = {
|
|
198
195
|
rowData: Array.from(this.rowData.values()),
|
|
@@ -200,6 +197,7 @@ export class ReqRepServerSideDatasource extends BaseServerSideDatasource {
|
|
|
200
197
|
successRowData.rowCount = this.getCorrectRowCount(params);
|
|
201
198
|
this.lastSuccessRowData = successRowData;
|
|
202
199
|
params.success(successRowData);
|
|
200
|
+
this.notifyNoDataAvailableIfEmpty(params, successRowData);
|
|
203
201
|
}
|
|
204
202
|
getCorrectRowCount(params) {
|
|
205
203
|
let rowCount;
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -28409,7 +28409,7 @@
|
|
|
28409
28409
|
},
|
|
28410
28410
|
{
|
|
28411
28411
|
"kind": "Content",
|
|
28412
|
-
"text": "<void>;\n errorHandlerFunc?: (message: string, type: string) => void;\n resourceName: string;\n resourceParams?: "
|
|
28412
|
+
"text": "<void>;\n errorHandlerFunc?: (message: string, type: string) => void;\n onNoDataAvailableFunc?: () => void;\n resourceName: string;\n resourceParams?: "
|
|
28413
28413
|
},
|
|
28414
28414
|
{
|
|
28415
28415
|
"kind": "Reference",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -6560,6 +6560,8 @@ export declare type ServerSideDatasourceOptions = {
|
|
|
6560
6560
|
resetPreviousPollResultFunc?: () => void;
|
|
6561
6561
|
reloadResourceDataFunc?: (params: any) => Promise<void>;
|
|
6562
6562
|
errorHandlerFunc?: (message: string, type: string) => void;
|
|
6563
|
+
/** Called when a server-side load finishes with zero rows. */
|
|
6564
|
+
onNoDataAvailableFunc?: () => void;
|
|
6563
6565
|
resourceName: string;
|
|
6564
6566
|
resourceParams?: DataserverParams | RequestParams;
|
|
6565
6567
|
resourceIndexes?: Map<string, [string]>;
|
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.448.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@genesislcap/foundation-testing": "14.
|
|
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.448.0",
|
|
44
|
+
"@genesislcap/genx": "14.448.0",
|
|
45
|
+
"@genesislcap/rollup-builder": "14.448.0",
|
|
46
|
+
"@genesislcap/ts-builder": "14.448.0",
|
|
47
|
+
"@genesislcap/uvu-playwright-builder": "14.448.0",
|
|
48
|
+
"@genesislcap/vite-builder": "14.448.0",
|
|
49
|
+
"@genesislcap/webpack-builder": "14.448.0"
|
|
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.448.0",
|
|
53
|
+
"@genesislcap/foundation-criteria": "14.448.0",
|
|
54
|
+
"@genesislcap/foundation-logger": "14.448.0",
|
|
55
|
+
"@genesislcap/foundation-ui": "14.448.0",
|
|
56
|
+
"@genesislcap/foundation-utils": "14.448.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": "2c815fd566cf24fe967de97e4692a0456f402afa"
|
|
95
95
|
}
|