@genesislcap/grid-pro 14.292.0 → 14.293.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +651 -95
- package/dist/dts/datasource/base.datasource.d.ts +42 -11
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/base.types.d.ts +22 -0
- package/dist/dts/datasource/base.types.d.ts.map +1 -1
- package/dist/dts/datasource/error-handler.dialog.d.ts +3 -0
- package/dist/dts/datasource/error-handler.dialog.d.ts.map +1 -0
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-base.d.ts +1 -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/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +0 -3
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +9 -3
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.styles.d.ts.map +1 -1
- package/dist/dts/grid-pro.template.d.ts +1 -1
- package/dist/dts/grid-pro.template.d.ts.map +1 -1
- package/dist/esm/datasource/base.datasource.js +162 -1
- package/dist/esm/datasource/base.types.js +8 -1
- package/dist/esm/datasource/error-handler.dialog.js +116 -0
- package/dist/esm/datasource/server-side.datasource.js +15 -4
- package/dist/esm/datasource/server-side.resource-base.js +1 -0
- package/dist/esm/datasource/server-side.resource-dataserver.js +7 -0
- package/dist/esm/datasource/server-side.resource-reqrep.js +7 -0
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +14 -48
- package/dist/esm/grid-pro.js +20 -3
- package/dist/esm/grid-pro.styles.js +2 -22
- package/dist/esm/grid-pro.template.js +3 -33
- package/dist/grid-pro.api.json +307 -79
- package/dist/grid-pro.d.ts +60 -17
- package/docs/api/grid-pro.genesisgriddatasourceelement.clearerrors.md +17 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.handleerrors.md +25 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.md +3 -0
- package/docs/api/grid-pro.genesisgriddatasourceelement.restartonreconnection.md +18 -0
- package/docs/api/grid-pro.gridprobasedatasource.connectionsub.md +11 -0
- package/docs/api/grid-pro.gridprobasedatasource.isdisconnected.md +17 -0
- package/docs/api/grid-pro.gridprobasedatasource.md +5 -0
- package/docs/api/grid-pro.gridprobasedatasource.setdisconnected.md +24 -0
- package/docs/api/grid-pro.gridprobasedatasource.subscribetoconnection.md +15 -0
- package/docs/api/grid-pro.gridprobasedatasource.unsubscribefromconnection.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.md +0 -2
- package/docs/api/grid-pro.gridprotemplate.md +1 -1
- package/docs/api-report.md +15 -4
- package/package.json +13 -13
- package/docs/api/grid-pro.gridprogenesisdatasource.handleerrors.md +0 -22
- package/docs/api/grid-pro.gridprogenesisdatasource.restartonreconnection.md +0 -11
package/dist/grid-pro.api.json
CHANGED
|
@@ -7184,6 +7184,37 @@
|
|
|
7184
7184
|
"isProtected": true,
|
|
7185
7185
|
"isAbstract": false
|
|
7186
7186
|
},
|
|
7187
|
+
{
|
|
7188
|
+
"kind": "Method",
|
|
7189
|
+
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#clearErrors:member(1)",
|
|
7190
|
+
"docComment": "/**\n * Clears error state and emits connected event.\n *\n * @public\n */\n",
|
|
7191
|
+
"excerptTokens": [
|
|
7192
|
+
{
|
|
7193
|
+
"kind": "Content",
|
|
7194
|
+
"text": "clearErrors(): "
|
|
7195
|
+
},
|
|
7196
|
+
{
|
|
7197
|
+
"kind": "Content",
|
|
7198
|
+
"text": "void"
|
|
7199
|
+
},
|
|
7200
|
+
{
|
|
7201
|
+
"kind": "Content",
|
|
7202
|
+
"text": ";"
|
|
7203
|
+
}
|
|
7204
|
+
],
|
|
7205
|
+
"isStatic": false,
|
|
7206
|
+
"returnTypeTokenRange": {
|
|
7207
|
+
"startIndex": 1,
|
|
7208
|
+
"endIndex": 2
|
|
7209
|
+
},
|
|
7210
|
+
"releaseTag": "Public",
|
|
7211
|
+
"isProtected": false,
|
|
7212
|
+
"overloadIndex": 1,
|
|
7213
|
+
"parameters": [],
|
|
7214
|
+
"isOptional": false,
|
|
7215
|
+
"isAbstract": false,
|
|
7216
|
+
"name": "clearErrors"
|
|
7217
|
+
},
|
|
7187
7218
|
{
|
|
7188
7219
|
"kind": "Property",
|
|
7189
7220
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#connect:member",
|
|
@@ -7565,6 +7596,75 @@
|
|
|
7565
7596
|
"isProtected": false,
|
|
7566
7597
|
"isAbstract": false
|
|
7567
7598
|
},
|
|
7599
|
+
{
|
|
7600
|
+
"kind": "Method",
|
|
7601
|
+
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#handleErrors:member(1)",
|
|
7602
|
+
"docComment": "/**\n * Handles errors and emits appropriate error events.\n *\n * @param errors - The error message or array of error messages\n *\n * @param type - The type of error that occurred\n *\n * @public\n */\n",
|
|
7603
|
+
"excerptTokens": [
|
|
7604
|
+
{
|
|
7605
|
+
"kind": "Content",
|
|
7606
|
+
"text": "handleErrors(errors: "
|
|
7607
|
+
},
|
|
7608
|
+
{
|
|
7609
|
+
"kind": "Content",
|
|
7610
|
+
"text": "string | any[]"
|
|
7611
|
+
},
|
|
7612
|
+
{
|
|
7613
|
+
"kind": "Content",
|
|
7614
|
+
"text": ", type?: "
|
|
7615
|
+
},
|
|
7616
|
+
{
|
|
7617
|
+
"kind": "Reference",
|
|
7618
|
+
"text": "BaseDatasourceErrorEventDetail",
|
|
7619
|
+
"canonicalReference": "@genesislcap/grid-pro!~BaseDatasourceErrorEventDetail:type"
|
|
7620
|
+
},
|
|
7621
|
+
{
|
|
7622
|
+
"kind": "Content",
|
|
7623
|
+
"text": "['type']"
|
|
7624
|
+
},
|
|
7625
|
+
{
|
|
7626
|
+
"kind": "Content",
|
|
7627
|
+
"text": "): "
|
|
7628
|
+
},
|
|
7629
|
+
{
|
|
7630
|
+
"kind": "Content",
|
|
7631
|
+
"text": "void"
|
|
7632
|
+
},
|
|
7633
|
+
{
|
|
7634
|
+
"kind": "Content",
|
|
7635
|
+
"text": ";"
|
|
7636
|
+
}
|
|
7637
|
+
],
|
|
7638
|
+
"isStatic": false,
|
|
7639
|
+
"returnTypeTokenRange": {
|
|
7640
|
+
"startIndex": 6,
|
|
7641
|
+
"endIndex": 7
|
|
7642
|
+
},
|
|
7643
|
+
"releaseTag": "Public",
|
|
7644
|
+
"isProtected": false,
|
|
7645
|
+
"overloadIndex": 1,
|
|
7646
|
+
"parameters": [
|
|
7647
|
+
{
|
|
7648
|
+
"parameterName": "errors",
|
|
7649
|
+
"parameterTypeTokenRange": {
|
|
7650
|
+
"startIndex": 1,
|
|
7651
|
+
"endIndex": 2
|
|
7652
|
+
},
|
|
7653
|
+
"isOptional": false
|
|
7654
|
+
},
|
|
7655
|
+
{
|
|
7656
|
+
"parameterName": "type",
|
|
7657
|
+
"parameterTypeTokenRange": {
|
|
7658
|
+
"startIndex": 3,
|
|
7659
|
+
"endIndex": 5
|
|
7660
|
+
},
|
|
7661
|
+
"isOptional": true
|
|
7662
|
+
}
|
|
7663
|
+
],
|
|
7664
|
+
"isOptional": false,
|
|
7665
|
+
"isAbstract": false,
|
|
7666
|
+
"name": "handleErrors"
|
|
7667
|
+
},
|
|
7568
7668
|
{
|
|
7569
7669
|
"kind": "Property",
|
|
7570
7670
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#isRequestServer:member",
|
|
@@ -7913,6 +8013,36 @@
|
|
|
7913
8013
|
"isProtected": false,
|
|
7914
8014
|
"isAbstract": false
|
|
7915
8015
|
},
|
|
8016
|
+
{
|
|
8017
|
+
"kind": "Property",
|
|
8018
|
+
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#restartOnReconnection:member",
|
|
8019
|
+
"docComment": "/**\n * Attribute to set whether the datasource should restart when it reconnects.\n *\n * @remarks\n *\n * Defaults to `true`.\n */\n",
|
|
8020
|
+
"excerptTokens": [
|
|
8021
|
+
{
|
|
8022
|
+
"kind": "Content",
|
|
8023
|
+
"text": "restartOnReconnection: "
|
|
8024
|
+
},
|
|
8025
|
+
{
|
|
8026
|
+
"kind": "Content",
|
|
8027
|
+
"text": "boolean"
|
|
8028
|
+
},
|
|
8029
|
+
{
|
|
8030
|
+
"kind": "Content",
|
|
8031
|
+
"text": ";"
|
|
8032
|
+
}
|
|
8033
|
+
],
|
|
8034
|
+
"isReadonly": false,
|
|
8035
|
+
"isOptional": false,
|
|
8036
|
+
"releaseTag": "Public",
|
|
8037
|
+
"name": "restartOnReconnection",
|
|
8038
|
+
"propertyTypeTokenRange": {
|
|
8039
|
+
"startIndex": 1,
|
|
8040
|
+
"endIndex": 2
|
|
8041
|
+
},
|
|
8042
|
+
"isStatic": false,
|
|
8043
|
+
"isProtected": false,
|
|
8044
|
+
"isAbstract": false
|
|
8045
|
+
},
|
|
7916
8046
|
{
|
|
7917
8047
|
"kind": "Property",
|
|
7918
8048
|
"canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement#reverse:member",
|
|
@@ -11484,6 +11614,41 @@
|
|
|
11484
11614
|
"isAbstract": false,
|
|
11485
11615
|
"name": "applyTransactionAsync"
|
|
11486
11616
|
},
|
|
11617
|
+
{
|
|
11618
|
+
"kind": "Property",
|
|
11619
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#connectionSub:member",
|
|
11620
|
+
"docComment": "",
|
|
11621
|
+
"excerptTokens": [
|
|
11622
|
+
{
|
|
11623
|
+
"kind": "Content",
|
|
11624
|
+
"text": "protected connectionSub: "
|
|
11625
|
+
},
|
|
11626
|
+
{
|
|
11627
|
+
"kind": "Reference",
|
|
11628
|
+
"text": "Subscription",
|
|
11629
|
+
"canonicalReference": "rxjs!Subscription:class"
|
|
11630
|
+
},
|
|
11631
|
+
{
|
|
11632
|
+
"kind": "Content",
|
|
11633
|
+
"text": " | undefined"
|
|
11634
|
+
},
|
|
11635
|
+
{
|
|
11636
|
+
"kind": "Content",
|
|
11637
|
+
"text": ";"
|
|
11638
|
+
}
|
|
11639
|
+
],
|
|
11640
|
+
"isReadonly": false,
|
|
11641
|
+
"isOptional": false,
|
|
11642
|
+
"releaseTag": "Public",
|
|
11643
|
+
"name": "connectionSub",
|
|
11644
|
+
"propertyTypeTokenRange": {
|
|
11645
|
+
"startIndex": 1,
|
|
11646
|
+
"endIndex": 3
|
|
11647
|
+
},
|
|
11648
|
+
"isStatic": false,
|
|
11649
|
+
"isProtected": true,
|
|
11650
|
+
"isAbstract": false
|
|
11651
|
+
},
|
|
11487
11652
|
{
|
|
11488
11653
|
"kind": "Property",
|
|
11489
11654
|
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#dataSubWasLoggedOff:member",
|
|
@@ -11828,6 +11993,37 @@
|
|
|
11828
11993
|
"isAbstract": false,
|
|
11829
11994
|
"name": "handleStreamUpdates"
|
|
11830
11995
|
},
|
|
11996
|
+
{
|
|
11997
|
+
"kind": "Method",
|
|
11998
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#isDisconnected:member(1)",
|
|
11999
|
+
"docComment": "/**\n * Returns true if the grid has the ds-disconnected attribute.\n */\n",
|
|
12000
|
+
"excerptTokens": [
|
|
12001
|
+
{
|
|
12002
|
+
"kind": "Content",
|
|
12003
|
+
"text": "isDisconnected(): "
|
|
12004
|
+
},
|
|
12005
|
+
{
|
|
12006
|
+
"kind": "Content",
|
|
12007
|
+
"text": "boolean"
|
|
12008
|
+
},
|
|
12009
|
+
{
|
|
12010
|
+
"kind": "Content",
|
|
12011
|
+
"text": ";"
|
|
12012
|
+
}
|
|
12013
|
+
],
|
|
12014
|
+
"isStatic": false,
|
|
12015
|
+
"returnTypeTokenRange": {
|
|
12016
|
+
"startIndex": 1,
|
|
12017
|
+
"endIndex": 2
|
|
12018
|
+
},
|
|
12019
|
+
"releaseTag": "Public",
|
|
12020
|
+
"isProtected": false,
|
|
12021
|
+
"overloadIndex": 1,
|
|
12022
|
+
"parameters": [],
|
|
12023
|
+
"isOptional": false,
|
|
12024
|
+
"isAbstract": false,
|
|
12025
|
+
"name": "isDisconnected"
|
|
12026
|
+
},
|
|
11831
12027
|
{
|
|
11832
12028
|
"kind": "Method",
|
|
11833
12029
|
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#loadMore:member(1)",
|
|
@@ -11985,6 +12181,116 @@
|
|
|
11985
12181
|
"isStatic": false,
|
|
11986
12182
|
"isProtected": false,
|
|
11987
12183
|
"isAbstract": false
|
|
12184
|
+
},
|
|
12185
|
+
{
|
|
12186
|
+
"kind": "Method",
|
|
12187
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#setDisconnected:member(1)",
|
|
12188
|
+
"docComment": "/**\n * Sets or removes the ds-disconnected attribute on the grid element.\n *\n * @param disconnected - true to set, false to remove\n */\n",
|
|
12189
|
+
"excerptTokens": [
|
|
12190
|
+
{
|
|
12191
|
+
"kind": "Content",
|
|
12192
|
+
"text": "setDisconnected(disconnected: "
|
|
12193
|
+
},
|
|
12194
|
+
{
|
|
12195
|
+
"kind": "Content",
|
|
12196
|
+
"text": "boolean"
|
|
12197
|
+
},
|
|
12198
|
+
{
|
|
12199
|
+
"kind": "Content",
|
|
12200
|
+
"text": "): "
|
|
12201
|
+
},
|
|
12202
|
+
{
|
|
12203
|
+
"kind": "Content",
|
|
12204
|
+
"text": "void"
|
|
12205
|
+
},
|
|
12206
|
+
{
|
|
12207
|
+
"kind": "Content",
|
|
12208
|
+
"text": ";"
|
|
12209
|
+
}
|
|
12210
|
+
],
|
|
12211
|
+
"isStatic": false,
|
|
12212
|
+
"returnTypeTokenRange": {
|
|
12213
|
+
"startIndex": 3,
|
|
12214
|
+
"endIndex": 4
|
|
12215
|
+
},
|
|
12216
|
+
"releaseTag": "Public",
|
|
12217
|
+
"isProtected": false,
|
|
12218
|
+
"overloadIndex": 1,
|
|
12219
|
+
"parameters": [
|
|
12220
|
+
{
|
|
12221
|
+
"parameterName": "disconnected",
|
|
12222
|
+
"parameterTypeTokenRange": {
|
|
12223
|
+
"startIndex": 1,
|
|
12224
|
+
"endIndex": 2
|
|
12225
|
+
},
|
|
12226
|
+
"isOptional": false
|
|
12227
|
+
}
|
|
12228
|
+
],
|
|
12229
|
+
"isOptional": false,
|
|
12230
|
+
"isAbstract": false,
|
|
12231
|
+
"name": "setDisconnected"
|
|
12232
|
+
},
|
|
12233
|
+
{
|
|
12234
|
+
"kind": "Method",
|
|
12235
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#subscribeToConnection:member(1)",
|
|
12236
|
+
"docComment": "",
|
|
12237
|
+
"excerptTokens": [
|
|
12238
|
+
{
|
|
12239
|
+
"kind": "Content",
|
|
12240
|
+
"text": "protected subscribeToConnection(): "
|
|
12241
|
+
},
|
|
12242
|
+
{
|
|
12243
|
+
"kind": "Content",
|
|
12244
|
+
"text": "void"
|
|
12245
|
+
},
|
|
12246
|
+
{
|
|
12247
|
+
"kind": "Content",
|
|
12248
|
+
"text": ";"
|
|
12249
|
+
}
|
|
12250
|
+
],
|
|
12251
|
+
"isStatic": false,
|
|
12252
|
+
"returnTypeTokenRange": {
|
|
12253
|
+
"startIndex": 1,
|
|
12254
|
+
"endIndex": 2
|
|
12255
|
+
},
|
|
12256
|
+
"releaseTag": "Public",
|
|
12257
|
+
"isProtected": true,
|
|
12258
|
+
"overloadIndex": 1,
|
|
12259
|
+
"parameters": [],
|
|
12260
|
+
"isOptional": false,
|
|
12261
|
+
"isAbstract": false,
|
|
12262
|
+
"name": "subscribeToConnection"
|
|
12263
|
+
},
|
|
12264
|
+
{
|
|
12265
|
+
"kind": "Method",
|
|
12266
|
+
"canonicalReference": "@genesislcap/grid-pro!GridProBaseDatasource#unsubscribeFromConnection:member(1)",
|
|
12267
|
+
"docComment": "",
|
|
12268
|
+
"excerptTokens": [
|
|
12269
|
+
{
|
|
12270
|
+
"kind": "Content",
|
|
12271
|
+
"text": "protected unsubscribeFromConnection(): "
|
|
12272
|
+
},
|
|
12273
|
+
{
|
|
12274
|
+
"kind": "Content",
|
|
12275
|
+
"text": "void"
|
|
12276
|
+
},
|
|
12277
|
+
{
|
|
12278
|
+
"kind": "Content",
|
|
12279
|
+
"text": ";"
|
|
12280
|
+
}
|
|
12281
|
+
],
|
|
12282
|
+
"isStatic": false,
|
|
12283
|
+
"returnTypeTokenRange": {
|
|
12284
|
+
"startIndex": 1,
|
|
12285
|
+
"endIndex": 2
|
|
12286
|
+
},
|
|
12287
|
+
"releaseTag": "Public",
|
|
12288
|
+
"isProtected": true,
|
|
12289
|
+
"overloadIndex": 1,
|
|
12290
|
+
"parameters": [],
|
|
12291
|
+
"isOptional": false,
|
|
12292
|
+
"isAbstract": false,
|
|
12293
|
+
"name": "unsubscribeFromConnection"
|
|
11988
12294
|
}
|
|
11989
12295
|
],
|
|
11990
12296
|
"extendsTokenRange": {
|
|
@@ -13587,54 +13893,6 @@
|
|
|
13587
13893
|
"isAbstract": false,
|
|
13588
13894
|
"name": "disconnectedCallback"
|
|
13589
13895
|
},
|
|
13590
|
-
{
|
|
13591
|
-
"kind": "Method",
|
|
13592
|
-
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#handleErrors:member(1)",
|
|
13593
|
-
"docComment": "",
|
|
13594
|
-
"excerptTokens": [
|
|
13595
|
-
{
|
|
13596
|
-
"kind": "Content",
|
|
13597
|
-
"text": "handleErrors(errors: "
|
|
13598
|
-
},
|
|
13599
|
-
{
|
|
13600
|
-
"kind": "Content",
|
|
13601
|
-
"text": "string | any[]"
|
|
13602
|
-
},
|
|
13603
|
-
{
|
|
13604
|
-
"kind": "Content",
|
|
13605
|
-
"text": "): "
|
|
13606
|
-
},
|
|
13607
|
-
{
|
|
13608
|
-
"kind": "Content",
|
|
13609
|
-
"text": "void"
|
|
13610
|
-
},
|
|
13611
|
-
{
|
|
13612
|
-
"kind": "Content",
|
|
13613
|
-
"text": ";"
|
|
13614
|
-
}
|
|
13615
|
-
],
|
|
13616
|
-
"isStatic": false,
|
|
13617
|
-
"returnTypeTokenRange": {
|
|
13618
|
-
"startIndex": 3,
|
|
13619
|
-
"endIndex": 4
|
|
13620
|
-
},
|
|
13621
|
-
"releaseTag": "Public",
|
|
13622
|
-
"isProtected": false,
|
|
13623
|
-
"overloadIndex": 1,
|
|
13624
|
-
"parameters": [
|
|
13625
|
-
{
|
|
13626
|
-
"parameterName": "errors",
|
|
13627
|
-
"parameterTypeTokenRange": {
|
|
13628
|
-
"startIndex": 1,
|
|
13629
|
-
"endIndex": 2
|
|
13630
|
-
},
|
|
13631
|
-
"isOptional": false
|
|
13632
|
-
}
|
|
13633
|
-
],
|
|
13634
|
-
"isOptional": false,
|
|
13635
|
-
"isAbstract": false,
|
|
13636
|
-
"name": "handleErrors"
|
|
13637
|
-
},
|
|
13638
13896
|
{
|
|
13639
13897
|
"kind": "Method",
|
|
13640
13898
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#handleStreamDeletes:member(1)",
|
|
@@ -14229,36 +14487,6 @@
|
|
|
14229
14487
|
"isAbstract": false,
|
|
14230
14488
|
"name": "restart"
|
|
14231
14489
|
},
|
|
14232
|
-
{
|
|
14233
|
-
"kind": "Property",
|
|
14234
|
-
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#restartOnReconnection:member",
|
|
14235
|
-
"docComment": "",
|
|
14236
|
-
"excerptTokens": [
|
|
14237
|
-
{
|
|
14238
|
-
"kind": "Content",
|
|
14239
|
-
"text": "restartOnReconnection: "
|
|
14240
|
-
},
|
|
14241
|
-
{
|
|
14242
|
-
"kind": "Content",
|
|
14243
|
-
"text": "boolean"
|
|
14244
|
-
},
|
|
14245
|
-
{
|
|
14246
|
-
"kind": "Content",
|
|
14247
|
-
"text": ";"
|
|
14248
|
-
}
|
|
14249
|
-
],
|
|
14250
|
-
"isReadonly": false,
|
|
14251
|
-
"isOptional": false,
|
|
14252
|
-
"releaseTag": "Public",
|
|
14253
|
-
"name": "restartOnReconnection",
|
|
14254
|
-
"propertyTypeTokenRange": {
|
|
14255
|
-
"startIndex": 1,
|
|
14256
|
-
"endIndex": 2
|
|
14257
|
-
},
|
|
14258
|
-
"isStatic": false,
|
|
14259
|
-
"isProtected": false,
|
|
14260
|
-
"isAbstract": false
|
|
14261
|
-
},
|
|
14262
14490
|
{
|
|
14263
14491
|
"kind": "Method",
|
|
14264
14492
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#setFilter:member(1)",
|
|
@@ -15984,7 +16212,7 @@
|
|
|
15984
16212
|
{
|
|
15985
16213
|
"kind": "Variable",
|
|
15986
16214
|
"canonicalReference": "@genesislcap/grid-pro!gridProTemplate:var",
|
|
15987
|
-
"docComment": "/**\n * @remarks\n *\n * HTML Element:
|
|
16215
|
+
"docComment": "/**\n * @remarks\n *\n * HTML Element: <foundation-grid-pro>\n *\n * @public\n */\n",
|
|
15988
16216
|
"excerptTokens": [
|
|
15989
16217
|
{
|
|
15990
16218
|
"kind": "Content",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ import { RowNodeTransaction } from '@ag-grid-community/core';
|
|
|
46
46
|
import type { ServerSideTransaction } from '@ag-grid-community/core';
|
|
47
47
|
import { ServerSideTransactionResult } from '@ag-grid-community/core';
|
|
48
48
|
import { Session } from '@genesislcap/foundation-comms';
|
|
49
|
+
import { Subscription } from 'rxjs';
|
|
49
50
|
import { Swatch } from '@microsoft/fast-components';
|
|
50
51
|
import { SwatchRGB } from '@microsoft/fast-components';
|
|
51
52
|
import { TextField } from '@genesislcap/foundation-ui';
|
|
@@ -430,6 +431,15 @@ export declare const agThemeTokenMapCSS: (themeName: string, tokenMap: CSSVarTok
|
|
|
430
431
|
*/
|
|
431
432
|
export declare const backgroundSwatch: SwatchRGB;
|
|
432
433
|
|
|
434
|
+
/**
|
|
435
|
+
* Base datasource error event detail.
|
|
436
|
+
* @public
|
|
437
|
+
*/
|
|
438
|
+
declare type BaseDatasourceErrorEventDetail = {
|
|
439
|
+
message: string;
|
|
440
|
+
type: 'connection' | 'resource-validation' | 'resource-type' | 'metadata' | 'stream' | 'criteria' | 'unknown';
|
|
441
|
+
};
|
|
442
|
+
|
|
433
443
|
/**
|
|
434
444
|
* The AG Boolean Renderer element.
|
|
435
445
|
* @public
|
|
@@ -1072,6 +1082,12 @@ export declare class GenesisGridDatasourceElement extends GenesisGridDatasourceE
|
|
|
1072
1082
|
* @privateRemarks Attribute-only, not to be used as a property. Use `rowId` getter instead.
|
|
1073
1083
|
*/
|
|
1074
1084
|
rowIdAttr: any;
|
|
1085
|
+
/**
|
|
1086
|
+
* Attribute to set whether the datasource should restart when it reconnects.
|
|
1087
|
+
* @remarks Defaults to `true`.
|
|
1088
|
+
* @privateRemarks This attribute is shared across all datasources to ensure consistent behavior.
|
|
1089
|
+
*/
|
|
1090
|
+
restartOnReconnection: boolean;
|
|
1075
1091
|
protected get rowId(): string;
|
|
1076
1092
|
/**
|
|
1077
1093
|
* Returns whether the `row-id` attribute is the default one, depending on the resource type.
|
|
@@ -1088,6 +1104,23 @@ export declare class GenesisGridDatasourceElement extends GenesisGridDatasourceE
|
|
|
1088
1104
|
get isRequestServer(): boolean;
|
|
1089
1105
|
datasourceStatusChanged(prev: DatasourceStatus, next: DatasourceStatus): void;
|
|
1090
1106
|
protected get agGrid(): GridPro | null;
|
|
1107
|
+
/**
|
|
1108
|
+
* Handles errors and emits appropriate error events.
|
|
1109
|
+
* @param errors - The error message or array of error messages
|
|
1110
|
+
* @param type - The type of error that occurred
|
|
1111
|
+
* @public
|
|
1112
|
+
*/
|
|
1113
|
+
handleErrors(errors: string | any[], type?: BaseDatasourceErrorEventDetail['type']): void;
|
|
1114
|
+
/**
|
|
1115
|
+
* Clears error state and emits connected event.
|
|
1116
|
+
* @public
|
|
1117
|
+
*/
|
|
1118
|
+
clearErrors(): void;
|
|
1119
|
+
/**
|
|
1120
|
+
* Override datasource initialization to handle errors properly.
|
|
1121
|
+
* @internal
|
|
1122
|
+
*/
|
|
1123
|
+
protected initializeDatasource(options: DatasourceOptions, fetchMeta?: boolean, startStream?: boolean): Promise<boolean>;
|
|
1091
1124
|
}
|
|
1092
1125
|
|
|
1093
1126
|
declare const GenesisGridDatasourceElement_base: new () => {
|
|
@@ -1102,11 +1135,7 @@ declare const GenesisGridDatasourceElement_base: new () => {
|
|
|
1102
1135
|
autocapitalize: string;
|
|
1103
1136
|
dir: string;
|
|
1104
1137
|
draggable: boolean;
|
|
1105
|
-
hidden: boolean;
|
|
1106
|
-
* Attribute to set whether the REQUEST object should be automatically set up.
|
|
1107
|
-
* @remarks Defaults to `true`. Only applies to REQUEST_SERVER (REQ-REP) resources.
|
|
1108
|
-
* @privateRemarks To avoid breaking changes for now, once V15 is out this will be removed and the default behavior will be the same as `false` here.
|
|
1109
|
-
*/
|
|
1138
|
+
hidden: boolean;
|
|
1110
1139
|
inert: boolean;
|
|
1111
1140
|
innerText: string;
|
|
1112
1141
|
lang: string;
|
|
@@ -1262,7 +1291,9 @@ declare const GenesisGridDatasourceElement_base: new () => {
|
|
|
1262
1291
|
ariaModal: string;
|
|
1263
1292
|
ariaMultiLine: string;
|
|
1264
1293
|
ariaMultiSelectable: string;
|
|
1265
|
-
ariaOrientation: string;
|
|
1294
|
+
ariaOrientation: string; /**
|
|
1295
|
+
* @public
|
|
1296
|
+
*/
|
|
1266
1297
|
ariaPlaceholder: string;
|
|
1267
1298
|
ariaPosInSet: string;
|
|
1268
1299
|
ariaPressed: string;
|
|
@@ -1350,10 +1381,7 @@ declare const GenesisGridDatasourceElement_base: new () => {
|
|
|
1350
1381
|
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
1351
1382
|
onload: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1352
1383
|
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1353
|
-
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1354
|
-
* Helper function to extract configuration for status bar actions
|
|
1355
|
-
* @internal
|
|
1356
|
-
*/
|
|
1384
|
+
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1357
1385
|
onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1358
1386
|
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
1359
1387
|
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
@@ -1781,6 +1809,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
1781
1809
|
addEventListener(eventType: string, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
1782
1810
|
private addGridEventListener;
|
|
1783
1811
|
private handleError;
|
|
1812
|
+
private handleBaseDatasourceError;
|
|
1784
1813
|
hideDatasourceError(): void;
|
|
1785
1814
|
connectedCallback(): void;
|
|
1786
1815
|
disconnectedCallback(): void;
|
|
@@ -1902,9 +1931,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1902
1931
|
spellcheck: boolean;
|
|
1903
1932
|
title: string;
|
|
1904
1933
|
translate: boolean;
|
|
1905
|
-
/**
|
|
1906
|
-
* If true, will enable row flashing for all rows for `add` async transactions
|
|
1907
|
-
*/
|
|
1908
1934
|
attachInternals(): ElementInternals;
|
|
1909
1935
|
click(): void;
|
|
1910
1936
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2014,6 +2040,14 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
2014
2040
|
readonly DOCUMENT_NODE: number;
|
|
2015
2041
|
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
2016
2042
|
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
2043
|
+
/**
|
|
2044
|
+
* Adds an event listener to the grid element.
|
|
2045
|
+
* @param eventType - The event type to listen for. Recommened to use the `Events` from AG Grid.
|
|
2046
|
+
* @param listener - The event listener to call when the event is fired.
|
|
2047
|
+
* @param options - An options object that specifies characteristics about the event listener.
|
|
2048
|
+
* @privateRemarks
|
|
2049
|
+
* This will change once we do the AG Upgrade and `eventType` will be correctly typed.
|
|
2050
|
+
*/
|
|
2017
2051
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
2018
2052
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
2019
2053
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
@@ -2205,6 +2239,9 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
2205
2239
|
protected agTransaction: RowDataTransaction | ServerSideTransaction;
|
|
2206
2240
|
protected applyFuncName: string;
|
|
2207
2241
|
protected applyAsyncFuncName: string;
|
|
2242
|
+
protected connectionSub: Subscription | undefined;
|
|
2243
|
+
protected subscribeToConnection(): void;
|
|
2244
|
+
protected unsubscribeFromConnection(): void;
|
|
2208
2245
|
protected generateColumnDefsFromMetadata(fieldsMetadata: FieldMetadata[], getFilterParamsByFieldType: Function): ColDef[];
|
|
2209
2246
|
protected handleStreamInserts(insertedRows: any[], addIndex?: number): void;
|
|
2210
2247
|
protected handleStreamDeletes(deletedRows: any[]): void;
|
|
@@ -2226,6 +2263,15 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
2226
2263
|
restart(): void;
|
|
2227
2264
|
reloadResourceData(): void;
|
|
2228
2265
|
destroy(): void;
|
|
2266
|
+
/**
|
|
2267
|
+
* Sets or removes the ds-disconnected attribute on the grid element.
|
|
2268
|
+
* @param disconnected - true to set, false to remove
|
|
2269
|
+
*/
|
|
2270
|
+
setDisconnected(disconnected: boolean): void;
|
|
2271
|
+
/**
|
|
2272
|
+
* Returns true if the grid has the ds-disconnected attribute.
|
|
2273
|
+
*/
|
|
2274
|
+
isDisconnected(): boolean;
|
|
2229
2275
|
/**
|
|
2230
2276
|
* Helper function to extract configuration for status bar actions
|
|
2231
2277
|
* @internal
|
|
@@ -2697,11 +2743,9 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
2697
2743
|
criteriaChanged(oldCriteria: string, newCriteria: string): Promise<void>;
|
|
2698
2744
|
requestChanged(oldRequest: string, newRequest: string): void;
|
|
2699
2745
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
2700
|
-
restartOnReconnection: boolean;
|
|
2701
2746
|
keepColDefsOnClearRowData: boolean;
|
|
2702
2747
|
private dataSub;
|
|
2703
2748
|
private updateSub;
|
|
2704
|
-
private connectionSub;
|
|
2705
2749
|
private requiresFullRowDataAndColDefs;
|
|
2706
2750
|
private _lastMoreRows;
|
|
2707
2751
|
private _isMoreRowsResult;
|
|
@@ -2780,7 +2824,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
2780
2824
|
*/
|
|
2781
2825
|
private loadResourceData;
|
|
2782
2826
|
private handleSnapshot;
|
|
2783
|
-
handleErrors(errors: string | any[]): void;
|
|
2784
2827
|
private handleStreamResult;
|
|
2785
2828
|
/**
|
|
2786
2829
|
* Updates the status bar based on more rows status
|
|
@@ -3670,7 +3713,7 @@ export declare enum GridProStatusBarTypes {
|
|
|
3670
3713
|
*
|
|
3671
3714
|
* @public
|
|
3672
3715
|
* @remarks
|
|
3673
|
-
* HTML Element:
|
|
3716
|
+
* HTML Element: <foundation-grid-pro>
|
|
3674
3717
|
*/
|
|
3675
3718
|
export declare const gridProTemplate: ViewTemplate;
|
|
3676
3719
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GenesisGridDatasourceElement](./grid-pro.genesisgriddatasourceelement.md) > [clearErrors](./grid-pro.genesisgriddatasourceelement.clearerrors.md)
|
|
4
|
+
|
|
5
|
+
## GenesisGridDatasourceElement.clearErrors() method
|
|
6
|
+
|
|
7
|
+
Clears error state and emits connected event.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
clearErrors(): void;
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
void
|
|
17
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GenesisGridDatasourceElement](./grid-pro.genesisgriddatasourceelement.md) > [handleErrors](./grid-pro.genesisgriddatasourceelement.handleerrors.md)
|
|
4
|
+
|
|
5
|
+
## GenesisGridDatasourceElement.handleErrors() method
|
|
6
|
+
|
|
7
|
+
Handles errors and emits appropriate error events.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
handleErrors(errors: string | any[], type?: BaseDatasourceErrorEventDetail['type']): void;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| errors | string \| any\[\] | The error message or array of error messages |
|
|
20
|
+
| type | BaseDatasourceErrorEventDetail\['type'\] | _(Optional)_ The type of error that occurred |
|
|
21
|
+
|
|
22
|
+
**Returns:**
|
|
23
|
+
|
|
24
|
+
void
|
|
25
|
+
|