@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.
Files changed (48) hide show
  1. package/dist/custom-elements.json +651 -95
  2. package/dist/dts/datasource/base.datasource.d.ts +42 -11
  3. package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
  4. package/dist/dts/datasource/base.types.d.ts +22 -0
  5. package/dist/dts/datasource/base.types.d.ts.map +1 -1
  6. package/dist/dts/datasource/error-handler.dialog.d.ts +3 -0
  7. package/dist/dts/datasource/error-handler.dialog.d.ts.map +1 -0
  8. package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
  9. package/dist/dts/datasource/server-side.resource-base.d.ts +1 -0
  10. package/dist/dts/datasource/server-side.resource-base.d.ts.map +1 -1
  11. package/dist/dts/datasource/server-side.resource-dataserver.d.ts.map +1 -1
  12. package/dist/dts/datasource/server-side.resource-reqrep.d.ts.map +1 -1
  13. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +0 -3
  14. package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
  15. package/dist/dts/grid-pro.d.ts +9 -3
  16. package/dist/dts/grid-pro.d.ts.map +1 -1
  17. package/dist/dts/grid-pro.styles.d.ts.map +1 -1
  18. package/dist/dts/grid-pro.template.d.ts +1 -1
  19. package/dist/dts/grid-pro.template.d.ts.map +1 -1
  20. package/dist/esm/datasource/base.datasource.js +162 -1
  21. package/dist/esm/datasource/base.types.js +8 -1
  22. package/dist/esm/datasource/error-handler.dialog.js +116 -0
  23. package/dist/esm/datasource/server-side.datasource.js +15 -4
  24. package/dist/esm/datasource/server-side.resource-base.js +1 -0
  25. package/dist/esm/datasource/server-side.resource-dataserver.js +7 -0
  26. package/dist/esm/datasource/server-side.resource-reqrep.js +7 -0
  27. package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +14 -48
  28. package/dist/esm/grid-pro.js +20 -3
  29. package/dist/esm/grid-pro.styles.js +2 -22
  30. package/dist/esm/grid-pro.template.js +3 -33
  31. package/dist/grid-pro.api.json +307 -79
  32. package/dist/grid-pro.d.ts +60 -17
  33. package/docs/api/grid-pro.genesisgriddatasourceelement.clearerrors.md +17 -0
  34. package/docs/api/grid-pro.genesisgriddatasourceelement.handleerrors.md +25 -0
  35. package/docs/api/grid-pro.genesisgriddatasourceelement.md +3 -0
  36. package/docs/api/grid-pro.genesisgriddatasourceelement.restartonreconnection.md +18 -0
  37. package/docs/api/grid-pro.gridprobasedatasource.connectionsub.md +11 -0
  38. package/docs/api/grid-pro.gridprobasedatasource.isdisconnected.md +17 -0
  39. package/docs/api/grid-pro.gridprobasedatasource.md +5 -0
  40. package/docs/api/grid-pro.gridprobasedatasource.setdisconnected.md +24 -0
  41. package/docs/api/grid-pro.gridprobasedatasource.subscribetoconnection.md +15 -0
  42. package/docs/api/grid-pro.gridprobasedatasource.unsubscribefromconnection.md +15 -0
  43. package/docs/api/grid-pro.gridprogenesisdatasource.md +0 -2
  44. package/docs/api/grid-pro.gridprotemplate.md +1 -1
  45. package/docs/api-report.md +15 -4
  46. package/package.json +13 -13
  47. package/docs/api/grid-pro.gridprogenesisdatasource.handleerrors.md +0 -22
  48. package/docs/api/grid-pro.gridprogenesisdatasource.restartonreconnection.md +0 -11
@@ -226,7 +226,7 @@
226
226
  "type": {
227
227
  "text": "ElementStyles"
228
228
  },
229
- "default": "css`\n ${agExternalStockStyles}\n :host {\n --datasource-error-background-color: var(--neutral-layer-4);\n --datasource-error-background-opacity: 0.5;\n --datasource-error-dialog-max-width: 50%;\n --datasource-error-dialog-min-width: auto;\n --ag-status-bar-height: 32.5px;\n\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n :host([ds-disconnected]) {\n display: block;\n }\n\n :host([ds-disconnected])::part(grid) {\n cursor: not-allowed;\n opacity: 40%;\n pointer-events: none;\n }\n\n .ag-side-bar,\n .ag-menu {\n --ag-subheader-background-color: var(--ag-background-color);\n --ag-control-panel-background-color: var(--ag-background-color);\n }\n\n .ag-cell-inline-editing {\n height: inherit !important;\n }\n\n .hidden {\n display: none;\n }\n\n .grid-datasource-error-dialog::part(dialog) {\n position: absolute;\n z-index: 2;\n max-width: var(--datasource-error-dialog-max-width);\n\n --dialog-min-width: var(--datasource-error-dialog-min-width);\n }\n\n .grid-datasource-error-dialog::before {\n content: '';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 0;\n height: 100%;\n width: 100%;\n border-radius: 2px;\n background-color: var(--datasource-error-background-color);\n opacity: var(--datasource-error-background-opacity);\n z-index: 1;\n }\n\n .error {\n border-color: var(--error-color) !important;\n }\n\n .ag-status-bar {\n height: var(--ag-status-bar-height);\n }\n\n .ag-status-name-value {\n padding-top: var(--ag-grid-size);\n padding-bottom: var(--ag-grid-size);\n }\n\n /* Custom styling for the unsort icon (sortNone) - only for sortable columns */\n .ag-header-cell.ag-header-cell-sortable .ag-icon-none {\n opacity: 100%;\n color: var(--rapid-ag-header-foreground-color, var(--ag-foreground-color, #fff));\n font-size: calc(var(--ag-icon-size, 12px) * 1.2);\n font-weight: bold;\n }\n\n .ag-header-cell.ag-header-cell-sortable:hover .ag-icon-none {\n opacity: 100%;\n color: var(--rapid-ag-header-foreground-color, var(--ag-foreground-color, #fff));\n transform: scale(1.1);\n transition: transform 0.2s ease;\n }\n`",
229
+ "default": "css`\n ${agExternalStockStyles}\n ${errorHandlerDialogStyles}\n :host {\n --datasource-error-background-color: var(--neutral-layer-4);\n --datasource-error-background-opacity: 0.5;\n --datasource-error-dialog-max-width: 50%;\n --datasource-error-dialog-min-width: auto;\n --ag-status-bar-height: 32.5px;\n\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n :host([ds-disconnected]) {\n display: block;\n }\n\n :host([ds-disconnected])::part(grid) {\n cursor: not-allowed;\n opacity: 40%;\n pointer-events: none;\n }\n\n .ag-side-bar,\n .ag-menu {\n --ag-subheader-background-color: var(--ag-background-color);\n --ag-control-panel-background-color: var(--ag-background-color);\n }\n\n .ag-cell-inline-editing {\n height: inherit !important;\n }\n\n .hidden {\n display: none;\n }\n\n .error {\n border-color: var(--error-color) !important;\n }\n\n .ag-status-bar {\n height: var(--ag-status-bar-height);\n }\n\n .ag-status-name-value {\n padding-top: var(--ag-grid-size);\n padding-bottom: var(--ag-grid-size);\n }\n\n /* Custom styling for the unsort icon (sortNone) - only for sortable columns */\n .ag-header-cell.ag-header-cell-sortable .ag-icon-none {\n opacity: 100%;\n color: var(--rapid-ag-header-foreground-color, var(--ag-foreground-color, #fff));\n font-size: calc(var(--ag-icon-size, 12px) * 1.2);\n font-weight: bold;\n }\n\n .ag-header-cell.ag-header-cell-sortable:hover .ag-icon-none {\n opacity: 100%;\n color: var(--rapid-ag-header-foreground-color, var(--ag-foreground-color, #fff));\n transform: scale(1.1);\n transition: transform 0.2s ease;\n }\n`",
230
230
  "description": "The Grid Pro styles.",
231
231
  "privacy": "public"
232
232
  }
@@ -755,6 +755,19 @@
755
755
  }
756
756
  ]
757
757
  },
758
+ {
759
+ "kind": "method",
760
+ "name": "handleBaseDatasourceError",
761
+ "privacy": "private",
762
+ "parameters": [
763
+ {
764
+ "name": "event",
765
+ "type": {
766
+ "text": "BaseDatasourceErrorEvent"
767
+ }
768
+ }
769
+ ]
770
+ },
758
771
  {
759
772
  "kind": "method",
760
773
  "name": "hideDatasourceError"
@@ -6415,6 +6428,15 @@
6415
6428
  "name": "rowIdAttr",
6416
6429
  "description": "Attribute to set an unique identifier for the row.\n\nDefaults to `ROW_REF` or `RECORD_ID` depending on the resource type."
6417
6430
  },
6431
+ {
6432
+ "kind": "field",
6433
+ "name": "restartOnReconnection",
6434
+ "type": {
6435
+ "text": "boolean"
6436
+ },
6437
+ "default": "true",
6438
+ "description": "Attribute to set whether the datasource should restart when it reconnects."
6439
+ },
6418
6440
  {
6419
6441
  "kind": "field",
6420
6442
  "name": "rowId",
@@ -6538,6 +6560,35 @@
6538
6560
  "privacy": "protected",
6539
6561
  "readonly": true
6540
6562
  },
6563
+ {
6564
+ "kind": "method",
6565
+ "name": "handleErrors",
6566
+ "parameters": [
6567
+ {
6568
+ "name": "errors",
6569
+ "type": {
6570
+ "text": "string | any[]"
6571
+ },
6572
+ "description": "The error message or array of error messages"
6573
+ },
6574
+ {
6575
+ "name": "type",
6576
+ "default": "'unknown'",
6577
+ "type": {
6578
+ "text": "BaseDatasourceErrorEventDetail['type']"
6579
+ },
6580
+ "description": "The type of error that occurred"
6581
+ }
6582
+ ],
6583
+ "description": "Handles errors and emits appropriate error events.",
6584
+ "privacy": "public"
6585
+ },
6586
+ {
6587
+ "kind": "method",
6588
+ "name": "clearErrors",
6589
+ "description": "Clears error state and emits connected event.",
6590
+ "privacy": "public"
6591
+ },
6541
6592
  {
6542
6593
  "kind": "field",
6543
6594
  "name": "_presentation",
@@ -6751,6 +6802,15 @@
6751
6802
  "name": "row-id",
6752
6803
  "description": "Attribute to set an unique identifier for the row.\n\nDefaults to `ROW_REF` or `RECORD_ID` depending on the resource type.",
6753
6804
  "fieldName": "rowIdAttr"
6805
+ },
6806
+ {
6807
+ "name": "restart-on-reconnection",
6808
+ "type": {
6809
+ "text": "boolean"
6810
+ },
6811
+ "default": "true",
6812
+ "description": "Attribute to set whether the datasource should restart when it reconnects.",
6813
+ "fieldName": "restartOnReconnection"
6754
6814
  }
6755
6815
  ],
6756
6816
  "mixins": [
@@ -6811,6 +6871,24 @@
6811
6871
  },
6812
6872
  "privacy": "protected"
6813
6873
  },
6874
+ {
6875
+ "kind": "field",
6876
+ "name": "connectionSub",
6877
+ "type": {
6878
+ "text": "Subscription | undefined"
6879
+ },
6880
+ "privacy": "protected"
6881
+ },
6882
+ {
6883
+ "kind": "method",
6884
+ "name": "subscribeToConnection",
6885
+ "privacy": "protected"
6886
+ },
6887
+ {
6888
+ "kind": "method",
6889
+ "name": "unsubscribeFromConnection",
6890
+ "privacy": "protected"
6891
+ },
6814
6892
  {
6815
6893
  "kind": "method",
6816
6894
  "name": "generateColumnDefsFromMetadata",
@@ -7012,6 +7090,32 @@
7012
7090
  "kind": "method",
7013
7091
  "name": "destroy"
7014
7092
  },
7093
+ {
7094
+ "kind": "method",
7095
+ "name": "setDisconnected",
7096
+ "privacy": "public",
7097
+ "parameters": [
7098
+ {
7099
+ "name": "disconnected",
7100
+ "type": {
7101
+ "text": "boolean"
7102
+ },
7103
+ "description": "true to set, false to remove"
7104
+ }
7105
+ ],
7106
+ "description": "Sets or removes the ds-disconnected attribute on the grid element."
7107
+ },
7108
+ {
7109
+ "kind": "method",
7110
+ "name": "isDisconnected",
7111
+ "privacy": "public",
7112
+ "return": {
7113
+ "type": {
7114
+ "text": "boolean"
7115
+ }
7116
+ },
7117
+ "description": "Returns true if the grid has the ds-disconnected attribute."
7118
+ },
7015
7119
  {
7016
7120
  "kind": "method",
7017
7121
  "name": "getDatasourceStatusBarPanels",
@@ -7256,6 +7360,19 @@
7256
7360
  "module": "src/datasource/base.datasource.ts"
7257
7361
  }
7258
7362
  },
7363
+ {
7364
+ "kind": "field",
7365
+ "name": "restartOnReconnection",
7366
+ "type": {
7367
+ "text": "boolean"
7368
+ },
7369
+ "default": "true",
7370
+ "description": "Attribute to set whether the datasource should restart when it reconnects.",
7371
+ "inheritedFrom": {
7372
+ "name": "GenesisGridDatasourceElement",
7373
+ "module": "src/datasource/base.datasource.ts"
7374
+ }
7375
+ },
7259
7376
  {
7260
7377
  "kind": "field",
7261
7378
  "name": "rowId",
@@ -7423,6 +7540,43 @@
7423
7540
  "module": "src/datasource/base.datasource.ts"
7424
7541
  }
7425
7542
  },
7543
+ {
7544
+ "kind": "method",
7545
+ "name": "handleErrors",
7546
+ "parameters": [
7547
+ {
7548
+ "name": "errors",
7549
+ "type": {
7550
+ "text": "string | any[]"
7551
+ },
7552
+ "description": "The error message or array of error messages"
7553
+ },
7554
+ {
7555
+ "name": "type",
7556
+ "default": "'unknown'",
7557
+ "type": {
7558
+ "text": "BaseDatasourceErrorEventDetail['type']"
7559
+ },
7560
+ "description": "The type of error that occurred"
7561
+ }
7562
+ ],
7563
+ "description": "Handles errors and emits appropriate error events.",
7564
+ "privacy": "public",
7565
+ "inheritedFrom": {
7566
+ "name": "GenesisGridDatasourceElement",
7567
+ "module": "src/datasource/base.datasource.ts"
7568
+ }
7569
+ },
7570
+ {
7571
+ "kind": "method",
7572
+ "name": "clearErrors",
7573
+ "description": "Clears error state and emits connected event.",
7574
+ "privacy": "public",
7575
+ "inheritedFrom": {
7576
+ "name": "GenesisGridDatasourceElement",
7577
+ "module": "src/datasource/base.datasource.ts"
7578
+ }
7579
+ },
7426
7580
  {
7427
7581
  "kind": "field",
7428
7582
  "name": "_presentation",
@@ -7696,6 +7850,19 @@
7696
7850
  "name": "GenesisGridDatasourceElement",
7697
7851
  "module": "src/datasource/base.datasource.ts"
7698
7852
  }
7853
+ },
7854
+ {
7855
+ "name": "restart-on-reconnection",
7856
+ "type": {
7857
+ "text": "boolean"
7858
+ },
7859
+ "default": "true",
7860
+ "description": "Attribute to set whether the datasource should restart when it reconnects.",
7861
+ "fieldName": "restartOnReconnection",
7862
+ "inheritedFrom": {
7863
+ "name": "GenesisGridDatasourceElement",
7864
+ "module": "src/datasource/base.datasource.ts"
7865
+ }
7699
7866
  }
7700
7867
  ]
7701
7868
  }
@@ -7738,8 +7905,28 @@
7738
7905
  {
7739
7906
  "kind": "javascript-module",
7740
7907
  "path": "src/datasource/base.types.ts",
7741
- "declarations": [],
7742
- "exports": []
7908
+ "declarations": [
7909
+ {
7910
+ "kind": "variable",
7911
+ "name": "baseDatasourceEventNames",
7912
+ "type": {
7913
+ "text": "{\n error: 'base-datasource-error',\n connected: 'base-datasource-connected',\n}"
7914
+ },
7915
+ "default": "{\n error: 'base-datasource-error',\n connected: 'base-datasource-connected',\n}",
7916
+ "description": "Base datasource error event names.",
7917
+ "privacy": "public"
7918
+ }
7919
+ ],
7920
+ "exports": [
7921
+ {
7922
+ "kind": "js",
7923
+ "name": "baseDatasourceEventNames",
7924
+ "declaration": {
7925
+ "name": "baseDatasourceEventNames",
7926
+ "module": "src/datasource/base.types.ts"
7927
+ }
7928
+ }
7929
+ ]
7743
7930
  },
7744
7931
  {
7745
7932
  "kind": "javascript-module",
@@ -7945,18 +8132,6 @@
7945
8132
  "module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
7946
8133
  }
7947
8134
  },
7948
- {
7949
- "kind": "field",
7950
- "name": "restartOnReconnection",
7951
- "type": {
7952
- "text": "boolean"
7953
- },
7954
- "default": "true",
7955
- "inheritedFrom": {
7956
- "name": "GridProGenesisDatasource",
7957
- "module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
7958
- }
7959
- },
7960
8135
  {
7961
8136
  "kind": "field",
7962
8137
  "name": "keepColDefsOnClearRowData",
@@ -7993,18 +8168,6 @@
7993
8168
  "module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
7994
8169
  }
7995
8170
  },
7996
- {
7997
- "kind": "field",
7998
- "name": "connectionSub",
7999
- "type": {
8000
- "text": "Subscription"
8001
- },
8002
- "privacy": "private",
8003
- "inheritedFrom": {
8004
- "name": "GridProGenesisDatasource",
8005
- "module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
8006
- }
8007
- },
8008
8171
  {
8009
8172
  "kind": "field",
8010
8173
  "name": "requiresFullRowDataAndColDefs",
@@ -8192,22 +8355,6 @@
8192
8355
  "module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
8193
8356
  }
8194
8357
  },
8195
- {
8196
- "kind": "method",
8197
- "name": "handleErrors",
8198
- "parameters": [
8199
- {
8200
- "name": "errors",
8201
- "type": {
8202
- "text": "string | any[]"
8203
- }
8204
- }
8205
- ],
8206
- "inheritedFrom": {
8207
- "name": "GridProGenesisDatasource",
8208
- "module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
8209
- }
8210
- },
8211
8358
  {
8212
8359
  "kind": "method",
8213
8360
  "name": "handleStreamResult",
@@ -8513,6 +8660,36 @@
8513
8660
  "module": "src/datasource/base.datasource.ts"
8514
8661
  }
8515
8662
  },
8663
+ {
8664
+ "kind": "field",
8665
+ "name": "connectionSub",
8666
+ "type": {
8667
+ "text": "Subscription | undefined"
8668
+ },
8669
+ "privacy": "protected",
8670
+ "inheritedFrom": {
8671
+ "name": "GridProBaseDatasource",
8672
+ "module": "src/datasource/base.datasource.ts"
8673
+ }
8674
+ },
8675
+ {
8676
+ "kind": "method",
8677
+ "name": "subscribeToConnection",
8678
+ "privacy": "protected",
8679
+ "inheritedFrom": {
8680
+ "name": "GridProBaseDatasource",
8681
+ "module": "src/datasource/base.datasource.ts"
8682
+ }
8683
+ },
8684
+ {
8685
+ "kind": "method",
8686
+ "name": "unsubscribeFromConnection",
8687
+ "privacy": "protected",
8688
+ "inheritedFrom": {
8689
+ "name": "GridProBaseDatasource",
8690
+ "module": "src/datasource/base.datasource.ts"
8691
+ }
8692
+ },
8516
8693
  {
8517
8694
  "kind": "method",
8518
8695
  "name": "generateColumnDefsFromMetadata",
@@ -8638,6 +8815,40 @@
8638
8815
  "module": "src/datasource/base.datasource.ts"
8639
8816
  }
8640
8817
  },
8818
+ {
8819
+ "kind": "method",
8820
+ "name": "setDisconnected",
8821
+ "privacy": "public",
8822
+ "parameters": [
8823
+ {
8824
+ "name": "disconnected",
8825
+ "type": {
8826
+ "text": "boolean"
8827
+ },
8828
+ "description": "true to set, false to remove"
8829
+ }
8830
+ ],
8831
+ "description": "Sets or removes the ds-disconnected attribute on the grid element.",
8832
+ "inheritedFrom": {
8833
+ "name": "GridProBaseDatasource",
8834
+ "module": "src/datasource/base.datasource.ts"
8835
+ }
8836
+ },
8837
+ {
8838
+ "kind": "method",
8839
+ "name": "isDisconnected",
8840
+ "privacy": "public",
8841
+ "return": {
8842
+ "type": {
8843
+ "text": "boolean"
8844
+ }
8845
+ },
8846
+ "description": "Returns true if the grid has the ds-disconnected attribute.",
8847
+ "inheritedFrom": {
8848
+ "name": "GridProBaseDatasource",
8849
+ "module": "src/datasource/base.datasource.ts"
8850
+ }
8851
+ },
8641
8852
  {
8642
8853
  "kind": "method",
8643
8854
  "name": "getDatasourceStatusBarPanels",
@@ -8888,12 +9099,25 @@
8888
9099
  },
8889
9100
  {
8890
9101
  "kind": "field",
8891
- "name": "rowId",
9102
+ "name": "restartOnReconnection",
8892
9103
  "type": {
8893
- "text": "string"
9104
+ "text": "boolean"
8894
9105
  },
8895
- "privacy": "protected",
8896
- "readonly": true,
9106
+ "default": "true",
9107
+ "description": "Attribute to set whether the datasource should restart when it reconnects.",
9108
+ "inheritedFrom": {
9109
+ "name": "GenesisGridDatasourceElement",
9110
+ "module": "src/datasource/base.datasource.ts"
9111
+ }
9112
+ },
9113
+ {
9114
+ "kind": "field",
9115
+ "name": "rowId",
9116
+ "type": {
9117
+ "text": "string"
9118
+ },
9119
+ "privacy": "protected",
9120
+ "readonly": true,
8897
9121
  "inheritedFrom": {
8898
9122
  "name": "GenesisGridDatasourceElement",
8899
9123
  "module": "src/datasource/base.datasource.ts"
@@ -9013,6 +9237,43 @@
9013
9237
  "module": "src/datasource/base.datasource.ts"
9014
9238
  }
9015
9239
  },
9240
+ {
9241
+ "kind": "method",
9242
+ "name": "handleErrors",
9243
+ "parameters": [
9244
+ {
9245
+ "name": "errors",
9246
+ "type": {
9247
+ "text": "string | any[]"
9248
+ },
9249
+ "description": "The error message or array of error messages"
9250
+ },
9251
+ {
9252
+ "name": "type",
9253
+ "default": "'unknown'",
9254
+ "type": {
9255
+ "text": "BaseDatasourceErrorEventDetail['type']"
9256
+ },
9257
+ "description": "The type of error that occurred"
9258
+ }
9259
+ ],
9260
+ "description": "Handles errors and emits appropriate error events.",
9261
+ "privacy": "public",
9262
+ "inheritedFrom": {
9263
+ "name": "GenesisGridDatasourceElement",
9264
+ "module": "src/datasource/base.datasource.ts"
9265
+ }
9266
+ },
9267
+ {
9268
+ "kind": "method",
9269
+ "name": "clearErrors",
9270
+ "description": "Clears error state and emits connected event.",
9271
+ "privacy": "public",
9272
+ "inheritedFrom": {
9273
+ "name": "GenesisGridDatasourceElement",
9274
+ "module": "src/datasource/base.datasource.ts"
9275
+ }
9276
+ },
9016
9277
  {
9017
9278
  "kind": "field",
9018
9279
  "name": "_presentation",
@@ -9126,18 +9387,6 @@
9126
9387
  }
9127
9388
  ],
9128
9389
  "attributes": [
9129
- {
9130
- "name": "restart-on-reconnection",
9131
- "type": {
9132
- "text": "boolean"
9133
- },
9134
- "default": "true",
9135
- "fieldName": "restartOnReconnection",
9136
- "inheritedFrom": {
9137
- "name": "GridProGenesisDatasource",
9138
- "module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
9139
- }
9140
- },
9141
9390
  {
9142
9391
  "name": "keep-col-defs-on-clear-row-data",
9143
9392
  "type": {
@@ -9306,6 +9555,19 @@
9306
9555
  "name": "GenesisGridDatasourceElement",
9307
9556
  "module": "src/datasource/base.datasource.ts"
9308
9557
  }
9558
+ },
9559
+ {
9560
+ "name": "restart-on-reconnection",
9561
+ "type": {
9562
+ "text": "boolean"
9563
+ },
9564
+ "default": "true",
9565
+ "description": "Attribute to set whether the datasource should restart when it reconnects.",
9566
+ "fieldName": "restartOnReconnection",
9567
+ "inheritedFrom": {
9568
+ "name": "GenesisGridDatasourceElement",
9569
+ "module": "src/datasource/base.datasource.ts"
9570
+ }
9309
9571
  }
9310
9572
  ]
9311
9573
  }
@@ -9370,6 +9632,53 @@
9370
9632
  "declarations": [],
9371
9633
  "exports": []
9372
9634
  },
9635
+ {
9636
+ "kind": "javascript-module",
9637
+ "path": "src/datasource/error-handler.dialog.ts",
9638
+ "declarations": [
9639
+ {
9640
+ "kind": "variable",
9641
+ "name": "errorHandlerDialogStyles",
9642
+ "default": "css`\n .overlay {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: var(--datasource-error-background-color, var(--neutral-layer-4));\n opacity: var(--datasource-error-background-opacity, 0.5);\n z-index: 1000;\n pointer-events: auto;\n border-radius: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .dialog-container {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n z-index: 1001;\n max-width: 90vw;\n max-height: 90vh;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n opacity: 1 !important;\n filter: none !important;\n box-sizing: border-box;\n }\n .grid-datasource-error-dialog {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n margin: 0 auto;\n max-width: 400px;\n width: 100%;\n box-sizing: border-box;\n background: var(--dialog-background, #2d2533);\n box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.45);\n overflow: visible;\n min-height: 120px;\n }\n .error-details {\n max-height: 120px;\n overflow: auto;\n width: 100%;\n margin-top: 8px;\n }\n`"
9643
+ },
9644
+ {
9645
+ "kind": "function",
9646
+ "name": "getErrorHandlerDialogTemplate",
9647
+ "parameters": [
9648
+ {
9649
+ "name": "prefix",
9650
+ "type": {
9651
+ "text": "string"
9652
+ }
9653
+ },
9654
+ {
9655
+ "name": "gridErrorItems",
9656
+ "type": {
9657
+ "text": "any[]"
9658
+ }
9659
+ }
9660
+ ]
9661
+ }
9662
+ ],
9663
+ "exports": [
9664
+ {
9665
+ "kind": "js",
9666
+ "name": "errorHandlerDialogStyles",
9667
+ "declaration": {
9668
+ "name": "errorHandlerDialogStyles",
9669
+ "module": "src/datasource/error-handler.dialog.ts"
9670
+ }
9671
+ },
9672
+ {
9673
+ "kind": "js",
9674
+ "name": "getErrorHandlerDialogTemplate",
9675
+ "declaration": {
9676
+ "name": "getErrorHandlerDialogTemplate",
9677
+ "module": "src/datasource/error-handler.dialog.ts"
9678
+ }
9679
+ }
9680
+ ]
9681
+ },
9373
9682
  {
9374
9683
  "kind": "javascript-module",
9375
9684
  "path": "src/datasource/index.ts",
@@ -9866,6 +10175,36 @@
9866
10175
  "module": "src/datasource/base.datasource.ts"
9867
10176
  }
9868
10177
  },
10178
+ {
10179
+ "kind": "field",
10180
+ "name": "connectionSub",
10181
+ "type": {
10182
+ "text": "Subscription | undefined"
10183
+ },
10184
+ "privacy": "protected",
10185
+ "inheritedFrom": {
10186
+ "name": "GridProBaseDatasource",
10187
+ "module": "src/datasource/base.datasource.ts"
10188
+ }
10189
+ },
10190
+ {
10191
+ "kind": "method",
10192
+ "name": "subscribeToConnection",
10193
+ "privacy": "protected",
10194
+ "inheritedFrom": {
10195
+ "name": "GridProBaseDatasource",
10196
+ "module": "src/datasource/base.datasource.ts"
10197
+ }
10198
+ },
10199
+ {
10200
+ "kind": "method",
10201
+ "name": "unsubscribeFromConnection",
10202
+ "privacy": "protected",
10203
+ "inheritedFrom": {
10204
+ "name": "GridProBaseDatasource",
10205
+ "module": "src/datasource/base.datasource.ts"
10206
+ }
10207
+ },
9869
10208
  {
9870
10209
  "kind": "method",
9871
10210
  "name": "generateColumnDefsFromMetadata",
@@ -10049,6 +10388,40 @@
10049
10388
  "module": "src/datasource/base.datasource.ts"
10050
10389
  }
10051
10390
  },
10391
+ {
10392
+ "kind": "method",
10393
+ "name": "setDisconnected",
10394
+ "privacy": "public",
10395
+ "parameters": [
10396
+ {
10397
+ "name": "disconnected",
10398
+ "type": {
10399
+ "text": "boolean"
10400
+ },
10401
+ "description": "true to set, false to remove"
10402
+ }
10403
+ ],
10404
+ "description": "Sets or removes the ds-disconnected attribute on the grid element.",
10405
+ "inheritedFrom": {
10406
+ "name": "GridProBaseDatasource",
10407
+ "module": "src/datasource/base.datasource.ts"
10408
+ }
10409
+ },
10410
+ {
10411
+ "kind": "method",
10412
+ "name": "isDisconnected",
10413
+ "privacy": "public",
10414
+ "return": {
10415
+ "type": {
10416
+ "text": "boolean"
10417
+ }
10418
+ },
10419
+ "description": "Returns true if the grid has the ds-disconnected attribute.",
10420
+ "inheritedFrom": {
10421
+ "name": "GridProBaseDatasource",
10422
+ "module": "src/datasource/base.datasource.ts"
10423
+ }
10424
+ },
10052
10425
  {
10053
10426
  "kind": "method",
10054
10427
  "name": "getDatasourceStatusBarPanels",
@@ -10286,6 +10659,19 @@
10286
10659
  "module": "src/datasource/base.datasource.ts"
10287
10660
  }
10288
10661
  },
10662
+ {
10663
+ "kind": "field",
10664
+ "name": "restartOnReconnection",
10665
+ "type": {
10666
+ "text": "boolean"
10667
+ },
10668
+ "default": "true",
10669
+ "description": "Attribute to set whether the datasource should restart when it reconnects.",
10670
+ "inheritedFrom": {
10671
+ "name": "GenesisGridDatasourceElement",
10672
+ "module": "src/datasource/base.datasource.ts"
10673
+ }
10674
+ },
10289
10675
  {
10290
10676
  "kind": "field",
10291
10677
  "name": "rowId",
@@ -10453,6 +10839,43 @@
10453
10839
  "module": "src/datasource/base.datasource.ts"
10454
10840
  }
10455
10841
  },
10842
+ {
10843
+ "kind": "method",
10844
+ "name": "handleErrors",
10845
+ "parameters": [
10846
+ {
10847
+ "name": "errors",
10848
+ "type": {
10849
+ "text": "string | any[]"
10850
+ },
10851
+ "description": "The error message or array of error messages"
10852
+ },
10853
+ {
10854
+ "name": "type",
10855
+ "default": "'unknown'",
10856
+ "type": {
10857
+ "text": "BaseDatasourceErrorEventDetail['type']"
10858
+ },
10859
+ "description": "The type of error that occurred"
10860
+ }
10861
+ ],
10862
+ "description": "Handles errors and emits appropriate error events.",
10863
+ "privacy": "public",
10864
+ "inheritedFrom": {
10865
+ "name": "GenesisGridDatasourceElement",
10866
+ "module": "src/datasource/base.datasource.ts"
10867
+ }
10868
+ },
10869
+ {
10870
+ "kind": "method",
10871
+ "name": "clearErrors",
10872
+ "description": "Clears error state and emits connected event.",
10873
+ "privacy": "public",
10874
+ "inheritedFrom": {
10875
+ "name": "GenesisGridDatasourceElement",
10876
+ "module": "src/datasource/base.datasource.ts"
10877
+ }
10878
+ },
10456
10879
  {
10457
10880
  "kind": "field",
10458
10881
  "name": "_presentation",
@@ -10740,6 +11163,19 @@
10740
11163
  "name": "GenesisGridDatasourceElement",
10741
11164
  "module": "src/datasource/base.datasource.ts"
10742
11165
  }
11166
+ },
11167
+ {
11168
+ "name": "restart-on-reconnection",
11169
+ "type": {
11170
+ "text": "boolean"
11171
+ },
11172
+ "default": "true",
11173
+ "description": "Attribute to set whether the datasource should restart when it reconnects.",
11174
+ "fieldName": "restartOnReconnection",
11175
+ "inheritedFrom": {
11176
+ "name": "GenesisGridDatasourceElement",
11177
+ "module": "src/datasource/base.datasource.ts"
11178
+ }
10743
11179
  }
10744
11180
  ],
10745
11181
  "mixins": [
@@ -10864,6 +11300,13 @@
10864
11300
  "text": "(params: DatasourceOptions) => Promise<void>"
10865
11301
  }
10866
11302
  },
11303
+ {
11304
+ "kind": "field",
11305
+ "name": "errorHandlerFunc",
11306
+ "type": {
11307
+ "text": "(message: string, type: string) => void"
11308
+ }
11309
+ },
10867
11310
  {
10868
11311
  "kind": "field",
10869
11312
  "name": "resourceName",
@@ -11359,6 +11802,17 @@
11359
11802
  "module": "src/datasource/server-side.resource-base.ts"
11360
11803
  }
11361
11804
  },
11805
+ {
11806
+ "kind": "field",
11807
+ "name": "errorHandlerFunc",
11808
+ "type": {
11809
+ "text": "(message: string, type: string) => void"
11810
+ },
11811
+ "inheritedFrom": {
11812
+ "name": "BaseServerSideDatasource",
11813
+ "module": "src/datasource/server-side.resource-base.ts"
11814
+ }
11815
+ },
11362
11816
  {
11363
11817
  "kind": "field",
11364
11818
  "name": "resourceName",
@@ -11893,6 +12347,17 @@
11893
12347
  "module": "src/datasource/server-side.resource-base.ts"
11894
12348
  }
11895
12349
  },
12350
+ {
12351
+ "kind": "field",
12352
+ "name": "errorHandlerFunc",
12353
+ "type": {
12354
+ "text": "(message: string, type: string) => void"
12355
+ },
12356
+ "inheritedFrom": {
12357
+ "name": "BaseServerSideDatasource",
12358
+ "module": "src/datasource/server-side.resource-base.ts"
12359
+ }
12360
+ },
11896
12361
  {
11897
12362
  "kind": "field",
11898
12363
  "name": "resourceName",
@@ -12644,14 +13109,6 @@
12644
13109
  }
12645
13110
  ]
12646
13111
  },
12647
- {
12648
- "kind": "field",
12649
- "name": "restartOnReconnection",
12650
- "type": {
12651
- "text": "boolean"
12652
- },
12653
- "default": "true"
12654
- },
12655
13112
  {
12656
13113
  "kind": "field",
12657
13114
  "name": "keepColDefsOnClearRowData",
@@ -12676,14 +13133,6 @@
12676
13133
  },
12677
13134
  "privacy": "private"
12678
13135
  },
12679
- {
12680
- "kind": "field",
12681
- "name": "connectionSub",
12682
- "type": {
12683
- "text": "Subscription"
12684
- },
12685
- "privacy": "private"
12686
- },
12687
13136
  {
12688
13137
  "kind": "field",
12689
13138
  "name": "requiresFullRowDataAndColDefs",
@@ -12844,18 +13293,6 @@
12844
13293
  }
12845
13294
  ]
12846
13295
  },
12847
- {
12848
- "kind": "method",
12849
- "name": "handleErrors",
12850
- "parameters": [
12851
- {
12852
- "name": "errors",
12853
- "type": {
12854
- "text": "string | any[]"
12855
- }
12856
- }
12857
- ]
12858
- },
12859
13296
  {
12860
13297
  "kind": "method",
12861
13298
  "name": "handleStreamResult",
@@ -13208,6 +13645,36 @@
13208
13645
  "module": "src/datasource/base.datasource.ts"
13209
13646
  }
13210
13647
  },
13648
+ {
13649
+ "kind": "field",
13650
+ "name": "connectionSub",
13651
+ "type": {
13652
+ "text": "Subscription | undefined"
13653
+ },
13654
+ "privacy": "protected",
13655
+ "inheritedFrom": {
13656
+ "name": "GridProBaseDatasource",
13657
+ "module": "src/datasource/base.datasource.ts"
13658
+ }
13659
+ },
13660
+ {
13661
+ "kind": "method",
13662
+ "name": "subscribeToConnection",
13663
+ "privacy": "protected",
13664
+ "inheritedFrom": {
13665
+ "name": "GridProBaseDatasource",
13666
+ "module": "src/datasource/base.datasource.ts"
13667
+ }
13668
+ },
13669
+ {
13670
+ "kind": "method",
13671
+ "name": "unsubscribeFromConnection",
13672
+ "privacy": "protected",
13673
+ "inheritedFrom": {
13674
+ "name": "GridProBaseDatasource",
13675
+ "module": "src/datasource/base.datasource.ts"
13676
+ }
13677
+ },
13211
13678
  {
13212
13679
  "kind": "method",
13213
13680
  "name": "generateColumnDefsFromMetadata",
@@ -13333,6 +13800,40 @@
13333
13800
  "module": "src/datasource/base.datasource.ts"
13334
13801
  }
13335
13802
  },
13803
+ {
13804
+ "kind": "method",
13805
+ "name": "setDisconnected",
13806
+ "privacy": "public",
13807
+ "parameters": [
13808
+ {
13809
+ "name": "disconnected",
13810
+ "type": {
13811
+ "text": "boolean"
13812
+ },
13813
+ "description": "true to set, false to remove"
13814
+ }
13815
+ ],
13816
+ "description": "Sets or removes the ds-disconnected attribute on the grid element.",
13817
+ "inheritedFrom": {
13818
+ "name": "GridProBaseDatasource",
13819
+ "module": "src/datasource/base.datasource.ts"
13820
+ }
13821
+ },
13822
+ {
13823
+ "kind": "method",
13824
+ "name": "isDisconnected",
13825
+ "privacy": "public",
13826
+ "return": {
13827
+ "type": {
13828
+ "text": "boolean"
13829
+ }
13830
+ },
13831
+ "description": "Returns true if the grid has the ds-disconnected attribute.",
13832
+ "inheritedFrom": {
13833
+ "name": "GridProBaseDatasource",
13834
+ "module": "src/datasource/base.datasource.ts"
13835
+ }
13836
+ },
13336
13837
  {
13337
13838
  "kind": "method",
13338
13839
  "name": "getDatasourceStatusBarPanels",
@@ -13581,6 +14082,19 @@
13581
14082
  "module": "src/datasource/base.datasource.ts"
13582
14083
  }
13583
14084
  },
14085
+ {
14086
+ "kind": "field",
14087
+ "name": "restartOnReconnection",
14088
+ "type": {
14089
+ "text": "boolean"
14090
+ },
14091
+ "default": "true",
14092
+ "description": "Attribute to set whether the datasource should restart when it reconnects.",
14093
+ "inheritedFrom": {
14094
+ "name": "GenesisGridDatasourceElement",
14095
+ "module": "src/datasource/base.datasource.ts"
14096
+ }
14097
+ },
13584
14098
  {
13585
14099
  "kind": "field",
13586
14100
  "name": "rowId",
@@ -13708,6 +14222,43 @@
13708
14222
  "module": "src/datasource/base.datasource.ts"
13709
14223
  }
13710
14224
  },
14225
+ {
14226
+ "kind": "method",
14227
+ "name": "handleErrors",
14228
+ "parameters": [
14229
+ {
14230
+ "name": "errors",
14231
+ "type": {
14232
+ "text": "string | any[]"
14233
+ },
14234
+ "description": "The error message or array of error messages"
14235
+ },
14236
+ {
14237
+ "name": "type",
14238
+ "default": "'unknown'",
14239
+ "type": {
14240
+ "text": "BaseDatasourceErrorEventDetail['type']"
14241
+ },
14242
+ "description": "The type of error that occurred"
14243
+ }
14244
+ ],
14245
+ "description": "Handles errors and emits appropriate error events.",
14246
+ "privacy": "public",
14247
+ "inheritedFrom": {
14248
+ "name": "GenesisGridDatasourceElement",
14249
+ "module": "src/datasource/base.datasource.ts"
14250
+ }
14251
+ },
14252
+ {
14253
+ "kind": "method",
14254
+ "name": "clearErrors",
14255
+ "description": "Clears error state and emits connected event.",
14256
+ "privacy": "public",
14257
+ "inheritedFrom": {
14258
+ "name": "GenesisGridDatasourceElement",
14259
+ "module": "src/datasource/base.datasource.ts"
14260
+ }
14261
+ },
13711
14262
  {
13712
14263
  "kind": "field",
13713
14264
  "name": "_presentation",
@@ -13821,14 +14372,6 @@
13821
14372
  }
13822
14373
  ],
13823
14374
  "attributes": [
13824
- {
13825
- "name": "restart-on-reconnection",
13826
- "type": {
13827
- "text": "boolean"
13828
- },
13829
- "default": "true",
13830
- "fieldName": "restartOnReconnection"
13831
- },
13832
14375
  {
13833
14376
  "name": "keep-col-defs-on-clear-row-data",
13834
14377
  "type": {
@@ -13993,6 +14536,19 @@
13993
14536
  "name": "GenesisGridDatasourceElement",
13994
14537
  "module": "src/datasource/base.datasource.ts"
13995
14538
  }
14539
+ },
14540
+ {
14541
+ "name": "restart-on-reconnection",
14542
+ "type": {
14543
+ "text": "boolean"
14544
+ },
14545
+ "default": "true",
14546
+ "description": "Attribute to set whether the datasource should restart when it reconnects.",
14547
+ "fieldName": "restartOnReconnection",
14548
+ "inheritedFrom": {
14549
+ "name": "GenesisGridDatasourceElement",
14550
+ "module": "src/datasource/base.datasource.ts"
14551
+ }
13996
14552
  }
13997
14553
  ],
13998
14554
  "mixins": [