@openremote/or-dashboard-builder 1.6.0-snapshot.20250512155842 → 1.6.0-snapshot.20250513093322

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.
@@ -5831,91 +5831,113 @@
5831
5831
  },
5832
5832
  {
5833
5833
  "kind": "javascript-module",
5834
- "path": "src/widgets/attribute-input-widget.ts",
5834
+ "path": "src/util/or-asset-widget.ts",
5835
5835
  "declarations": [
5836
5836
  {
5837
5837
  "kind": "class",
5838
5838
  "description": "",
5839
- "name": "AttributeInputWidget",
5839
+ "name": "OrAssetWidget",
5840
5840
  "members": [
5841
5841
  {
5842
5842
  "kind": "field",
5843
- "name": "widgetConfig",
5843
+ "name": "loadedAssets",
5844
5844
  "type": {
5845
- "text": "WidgetConfig"
5845
+ "text": "Asset[]"
5846
5846
  },
5847
5847
  "privacy": "protected",
5848
- "readonly": true,
5849
- "default": "config",
5850
- "inheritedFrom": {
5851
- "name": "OrWidget",
5852
- "module": "src/util/or-widget.ts"
5853
- }
5848
+ "default": "[]"
5854
5849
  },
5855
5850
  {
5856
5851
  "kind": "field",
5857
- "name": "_loading",
5852
+ "name": "assetAttributes",
5858
5853
  "type": {
5859
- "text": "boolean"
5854
+ "text": "[number, Attribute<any>][]"
5860
5855
  },
5861
5856
  "privacy": "protected",
5862
- "default": "false"
5857
+ "default": "[]"
5863
5858
  },
5864
5859
  {
5865
5860
  "kind": "field",
5866
- "name": "widgetWrapperElem",
5861
+ "name": "_error",
5867
5862
  "type": {
5868
- "text": "HTMLElement | undefined"
5863
+ "text": "string | undefined"
5869
5864
  },
5870
5865
  "privacy": "protected"
5871
5866
  },
5872
5867
  {
5873
5868
  "kind": "field",
5874
- "name": "attributeInputElems",
5869
+ "name": "styles",
5875
5870
  "type": {
5876
- "text": "NodeList | undefined"
5871
+ "text": "CSSResult[]"
5877
5872
  },
5878
- "privacy": "protected"
5873
+ "static": true,
5874
+ "readonly": true,
5875
+ "inheritedFrom": {
5876
+ "name": "OrWidget",
5877
+ "module": "src/util/or-widget.ts"
5878
+ }
5879
5879
  },
5880
5880
  {
5881
- "kind": "field",
5882
- "name": "resizeObserver",
5883
- "type": {
5884
- "text": "ResizeObserver | undefined"
5885
- },
5886
- "privacy": "protected"
5881
+ "kind": "method",
5882
+ "name": "fetchAssets",
5883
+ "privacy": "protected",
5884
+ "parameters": [
5885
+ {
5886
+ "name": "attributeRefs",
5887
+ "default": "[]",
5888
+ "type": {
5889
+ "text": "AttributeRef[]"
5890
+ }
5891
+ }
5892
+ ]
5887
5893
  },
5888
5894
  {
5889
5895
  "kind": "method",
5890
- "name": "getManifest",
5891
- "static": true,
5892
- "return": {
5893
- "type": {
5894
- "text": "WidgetManifest"
5896
+ "name": "queryAssets",
5897
+ "privacy": "protected",
5898
+ "parameters": [
5899
+ {
5900
+ "name": "assetQuery",
5901
+ "type": {
5902
+ "text": "AssetQuery"
5903
+ }
5895
5904
  }
5896
- },
5897
- "inheritedFrom": {
5898
- "name": "OrWidget",
5899
- "module": "src/util/or-widget.ts"
5900
- }
5905
+ ]
5901
5906
  },
5902
5907
  {
5903
5908
  "kind": "method",
5904
- "name": "refreshContent",
5905
- "privacy": "public",
5906
- "return": {
5907
- "type": {
5908
- "text": "void"
5909
+ "name": "isAssetLoaded",
5910
+ "privacy": "protected",
5911
+ "parameters": [
5912
+ {
5913
+ "name": "assetId",
5914
+ "type": {
5915
+ "text": "string"
5916
+ }
5909
5917
  }
5910
- },
5918
+ ]
5919
+ },
5920
+ {
5921
+ "kind": "method",
5922
+ "name": "isAttributeRefLoaded",
5923
+ "privacy": "protected",
5911
5924
  "parameters": [
5912
5925
  {
5913
- "name": "force",
5926
+ "name": "attributeRef",
5914
5927
  "type": {
5915
- "text": "boolean"
5928
+ "text": "AttributeRef"
5916
5929
  }
5917
5930
  }
5918
- ],
5931
+ ]
5932
+ },
5933
+ {
5934
+ "kind": "field",
5935
+ "name": "manifest",
5936
+ "type": {
5937
+ "text": "WidgetManifest"
5938
+ },
5939
+ "privacy": "protected",
5940
+ "static": true,
5919
5941
  "inheritedFrom": {
5920
5942
  "name": "OrWidget",
5921
5943
  "module": "src/util/or-widget.ts"
@@ -5923,12 +5945,13 @@
5923
5945
  },
5924
5946
  {
5925
5947
  "kind": "field",
5926
- "name": "styles",
5948
+ "name": "widgetConfig",
5927
5949
  "type": {
5928
- "text": "CSSResult[]"
5950
+ "text": "WidgetConfig"
5929
5951
  },
5930
- "static": true,
5952
+ "privacy": "protected",
5931
5953
  "readonly": true,
5954
+ "default": "config",
5932
5955
  "inheritedFrom": {
5933
5956
  "name": "OrWidget",
5934
5957
  "module": "src/util/or-widget.ts"
@@ -5936,29 +5959,39 @@
5936
5959
  },
5937
5960
  {
5938
5961
  "kind": "method",
5939
- "name": "willUpdate",
5940
- "privacy": "protected",
5941
- "parameters": [
5942
- {
5943
- "name": "changedProps",
5944
- "type": {
5945
- "text": "PropertyValues"
5946
- }
5962
+ "name": "getManifest",
5963
+ "static": true,
5964
+ "return": {
5965
+ "type": {
5966
+ "text": "WidgetManifest"
5947
5967
  }
5948
- ]
5968
+ },
5969
+ "inheritedFrom": {
5970
+ "name": "OrWidget",
5971
+ "module": "src/util/or-widget.ts"
5972
+ }
5949
5973
  },
5950
5974
  {
5951
5975
  "kind": "method",
5952
- "name": "loadAssets",
5953
- "privacy": "protected",
5976
+ "name": "refreshContent",
5977
+ "privacy": "public",
5978
+ "return": {
5979
+ "type": {
5980
+ "text": "void"
5981
+ }
5982
+ },
5954
5983
  "parameters": [
5955
5984
  {
5956
- "name": "attributeRefs",
5985
+ "name": "force",
5957
5986
  "type": {
5958
- "text": "AttributeRef[]"
5987
+ "text": "boolean"
5959
5988
  }
5960
5989
  }
5961
- ]
5990
+ ],
5991
+ "inheritedFrom": {
5992
+ "name": "OrWidget",
5993
+ "module": "src/util/or-widget.ts"
5994
+ }
5962
5995
  },
5963
5996
  {
5964
5997
  "kind": "method",
@@ -5976,41 +6009,59 @@
5976
6009
  },
5977
6010
  {
5978
6011
  "kind": "field",
5979
- "name": "loadedAssets",
6012
+ "name": "getDisplayName",
5980
6013
  "type": {
5981
- "text": "Asset[]"
6014
+ "text": "() => string | undefined | undefined"
5982
6015
  },
5983
- "privacy": "protected",
5984
- "default": "[]",
6016
+ "privacy": "public",
5985
6017
  "inheritedFrom": {
5986
- "name": "OrAssetWidget",
5987
- "module": "src/util/or-asset-widget.ts"
6018
+ "name": "OrWidget",
6019
+ "module": "src/util/or-widget.ts"
5988
6020
  }
5989
6021
  },
5990
6022
  {
5991
6023
  "kind": "field",
5992
- "name": "assetAttributes",
6024
+ "name": "getEditMode",
5993
6025
  "type": {
5994
- "text": "[number, Attribute<any>][]"
6026
+ "text": "() => boolean | undefined"
5995
6027
  },
5996
- "privacy": "protected",
5997
- "default": "[]",
6028
+ "privacy": "public",
5998
6029
  "inheritedFrom": {
5999
- "name": "OrAssetWidget",
6000
- "module": "src/util/or-asset-widget.ts"
6030
+ "name": "OrWidget",
6031
+ "module": "src/util/or-widget.ts"
6001
6032
  }
6002
6033
  },
6003
6034
  {
6004
6035
  "kind": "field",
6005
- "name": "_error",
6036
+ "name": "getWidgetLocation",
6006
6037
  "type": {
6007
- "text": "string | undefined"
6038
+ "text": "() => { x?: number, y?: number, h?: number, w?: number } | undefined"
6008
6039
  },
6009
- "privacy": "protected",
6040
+ "privacy": "public",
6010
6041
  "inheritedFrom": {
6011
- "name": "OrAssetWidget",
6012
- "module": "src/util/or-asset-widget.ts"
6042
+ "name": "OrWidget",
6043
+ "module": "src/util/or-widget.ts"
6013
6044
  }
6045
+ }
6046
+ ],
6047
+ "superclass": {
6048
+ "name": "OrWidget",
6049
+ "module": "/src/util/or-widget"
6050
+ }
6051
+ },
6052
+ {
6053
+ "kind": "class",
6054
+ "description": "",
6055
+ "name": "AssetWidgetSettings",
6056
+ "members": [
6057
+ {
6058
+ "kind": "field",
6059
+ "name": "loadedAssets",
6060
+ "type": {
6061
+ "text": "Asset[]"
6062
+ },
6063
+ "privacy": "protected",
6064
+ "default": "[]"
6014
6065
  },
6015
6066
  {
6016
6067
  "kind": "method",
@@ -6024,11 +6075,7 @@
6024
6075
  "text": "AttributeRef[]"
6025
6076
  }
6026
6077
  }
6027
- ],
6028
- "inheritedFrom": {
6029
- "name": "OrAssetWidget",
6030
- "module": "src/util/or-asset-widget.ts"
6031
- }
6078
+ ]
6032
6079
  },
6033
6080
  {
6034
6081
  "kind": "method",
@@ -6041,11 +6088,7 @@
6041
6088
  "text": "AssetQuery"
6042
6089
  }
6043
6090
  }
6044
- ],
6045
- "inheritedFrom": {
6046
- "name": "OrAssetWidget",
6047
- "module": "src/util/or-asset-widget.ts"
6048
- }
6091
+ ]
6049
6092
  },
6050
6093
  {
6051
6094
  "kind": "method",
@@ -6058,11 +6101,7 @@
6058
6101
  "text": "string"
6059
6102
  }
6060
6103
  }
6061
- ],
6062
- "inheritedFrom": {
6063
- "name": "OrAssetWidget",
6064
- "module": "src/util/or-asset-widget.ts"
6065
- }
6104
+ ]
6066
6105
  },
6067
6106
  {
6068
6107
  "kind": "method",
@@ -6075,47 +6114,106 @@
6075
6114
  "text": "AttributeRef"
6076
6115
  }
6077
6116
  }
6078
- ],
6079
- "inheritedFrom": {
6080
- "name": "OrAssetWidget",
6081
- "module": "src/util/or-asset-widget.ts"
6082
- }
6117
+ ]
6083
6118
  },
6084
6119
  {
6085
6120
  "kind": "field",
6086
- "name": "manifest",
6121
+ "name": "widgetConfig",
6087
6122
  "type": {
6088
- "text": "WidgetManifest"
6123
+ "text": "WidgetConfig"
6089
6124
  },
6090
6125
  "privacy": "protected",
6091
- "static": true,
6126
+ "readonly": true,
6127
+ "default": "config",
6092
6128
  "inheritedFrom": {
6093
- "name": "OrWidget",
6094
- "module": "src/util/or-widget.ts"
6129
+ "name": "WidgetSettings",
6130
+ "module": "src/util/widget-settings.ts"
6095
6131
  }
6096
6132
  },
6097
6133
  {
6098
6134
  "kind": "field",
6099
- "name": "getDisplayName",
6100
- "type": {
6101
- "text": "() => string | undefined | undefined"
6102
- },
6103
- "privacy": "public",
6135
+ "name": "styles",
6136
+ "static": true,
6137
+ "readonly": true,
6104
6138
  "inheritedFrom": {
6105
- "name": "OrWidget",
6106
- "module": "src/util/or-widget.ts"
6139
+ "name": "WidgetSettings",
6140
+ "module": "src/util/widget-settings.ts"
6107
6141
  }
6108
6142
  },
6109
6143
  {
6110
- "kind": "field",
6111
- "name": "getEditMode",
6112
- "type": {
6113
- "text": "() => boolean | undefined"
6144
+ "kind": "method",
6145
+ "name": "render",
6146
+ "privacy": "protected",
6147
+ "return": {
6148
+ "type": {
6149
+ "text": "TemplateResult"
6150
+ }
6151
+ },
6152
+ "inheritedFrom": {
6153
+ "name": "WidgetSettings",
6154
+ "module": "src/util/widget-settings.ts"
6155
+ }
6156
+ },
6157
+ {
6158
+ "kind": "method",
6159
+ "name": "willUpdate",
6160
+ "privacy": "protected",
6161
+ "parameters": [
6162
+ {
6163
+ "name": "changedProps",
6164
+ "type": {
6165
+ "text": "PropertyValues"
6166
+ }
6167
+ }
6168
+ ],
6169
+ "inheritedFrom": {
6170
+ "name": "WidgetSettings",
6171
+ "module": "src/util/widget-settings.ts"
6172
+ }
6173
+ },
6174
+ {
6175
+ "kind": "method",
6176
+ "name": "notifyConfigUpdate",
6177
+ "privacy": "protected",
6178
+ "inheritedFrom": {
6179
+ "name": "WidgetSettings",
6180
+ "module": "src/util/widget-settings.ts"
6181
+ }
6182
+ },
6183
+ {
6184
+ "kind": "field",
6185
+ "name": "getDisplayName",
6186
+ "type": {
6187
+ "text": "() => string | undefined | undefined"
6114
6188
  },
6115
6189
  "privacy": "public",
6116
6190
  "inheritedFrom": {
6117
- "name": "OrWidget",
6118
- "module": "src/util/or-widget.ts"
6191
+ "name": "WidgetSettings",
6192
+ "module": "src/util/widget-settings.ts"
6193
+ }
6194
+ },
6195
+ {
6196
+ "kind": "field",
6197
+ "name": "setDisplayName",
6198
+ "type": {
6199
+ "text": "(name?: string) => void | undefined"
6200
+ },
6201
+ "privacy": "public",
6202
+ "inheritedFrom": {
6203
+ "name": "WidgetSettings",
6204
+ "module": "src/util/widget-settings.ts"
6205
+ }
6206
+ },
6207
+ {
6208
+ "kind": "field",
6209
+ "name": "getEditMode",
6210
+ "type": {
6211
+ "text": "() => boolean | undefined"
6212
+ },
6213
+ "privacy": "public",
6214
+ "inheritedFrom": {
6215
+ "name": "WidgetSettings",
6216
+ "module": "src/util/widget-settings.ts"
6119
6217
  }
6120
6218
  },
6121
6219
  {
@@ -6126,67 +6224,83 @@
6126
6224
  },
6127
6225
  "privacy": "public",
6128
6226
  "inheritedFrom": {
6129
- "name": "OrWidget",
6130
- "module": "src/util/or-widget.ts"
6227
+ "name": "WidgetSettings",
6228
+ "module": "src/util/widget-settings.ts"
6131
6229
  }
6132
6230
  }
6133
6231
  ],
6134
6232
  "superclass": {
6135
- "name": "OrAssetWidget",
6136
- "module": "/src/util/or-asset-widget"
6137
- }
6233
+ "name": "WidgetSettings",
6234
+ "module": "/src/util/widget-settings"
6235
+ },
6236
+ "events": [
6237
+ {
6238
+ "type": {
6239
+ "text": "WidgetSettingsChangedEvent"
6240
+ },
6241
+ "inheritedFrom": {
6242
+ "name": "WidgetSettings",
6243
+ "module": "src/util/widget-settings.ts"
6244
+ }
6245
+ }
6246
+ ]
6138
6247
  }
6139
6248
  ],
6140
6249
  "exports": [
6141
6250
  {
6142
6251
  "kind": "js",
6143
- "name": "AttributeInputWidget",
6252
+ "name": "OrAssetWidget",
6144
6253
  "declaration": {
6145
- "name": "AttributeInputWidget",
6146
- "module": "src/widgets/attribute-input-widget.ts"
6254
+ "name": "OrAssetWidget",
6255
+ "module": "src/util/or-asset-widget.ts"
6256
+ }
6257
+ },
6258
+ {
6259
+ "kind": "js",
6260
+ "name": "AssetWidgetSettings",
6261
+ "declaration": {
6262
+ "name": "AssetWidgetSettings",
6263
+ "module": "src/util/or-asset-widget.ts"
6147
6264
  }
6148
6265
  }
6149
6266
  ]
6150
6267
  },
6151
6268
  {
6152
6269
  "kind": "javascript-module",
6153
- "path": "src/widgets/chart-widget.ts",
6270
+ "path": "src/util/or-widget.ts",
6154
6271
  "declarations": [
6155
6272
  {
6156
6273
  "kind": "class",
6157
6274
  "description": "",
6158
- "name": "ChartWidget",
6275
+ "name": "OrWidget",
6159
6276
  "members": [
6160
6277
  {
6161
6278
  "kind": "field",
6162
- "name": "datapointQuery",
6279
+ "name": "manifest",
6163
6280
  "type": {
6164
- "text": "AssetDatapointQueryUnion"
6281
+ "text": "WidgetManifest"
6165
6282
  },
6166
- "privacy": "protected"
6283
+ "privacy": "protected",
6284
+ "static": true
6167
6285
  },
6168
6286
  {
6169
6287
  "kind": "field",
6170
- "name": "_loading",
6288
+ "name": "widgetConfig",
6171
6289
  "type": {
6172
- "text": "boolean"
6290
+ "text": "WidgetConfig"
6173
6291
  },
6174
6292
  "privacy": "protected",
6175
- "default": "false"
6293
+ "readonly": true,
6294
+ "default": "config"
6176
6295
  },
6177
6296
  {
6178
6297
  "kind": "field",
6179
- "name": "widgetConfig",
6298
+ "name": "styles",
6180
6299
  "type": {
6181
- "text": "WidgetConfig"
6300
+ "text": "CSSResult[]"
6182
6301
  },
6183
- "privacy": "protected",
6184
- "readonly": true,
6185
- "default": "config",
6186
- "inheritedFrom": {
6187
- "name": "OrWidget",
6188
- "module": "src/util/or-widget.ts"
6189
- }
6302
+ "static": true,
6303
+ "readonly": true
6190
6304
  },
6191
6305
  {
6192
6306
  "kind": "method",
@@ -6196,10 +6310,6 @@
6196
6310
  "type": {
6197
6311
  "text": "WidgetManifest"
6198
6312
  }
6199
- },
6200
- "inheritedFrom": {
6201
- "name": "OrWidget",
6202
- "module": "src/util/or-widget.ts"
6203
6313
  }
6204
6314
  },
6205
6315
  {
@@ -6218,41 +6328,6 @@
6218
6328
  "text": "boolean"
6219
6329
  }
6220
6330
  }
6221
- ],
6222
- "inheritedFrom": {
6223
- "name": "OrWidget",
6224
- "module": "src/util/or-widget.ts"
6225
- }
6226
- },
6227
- {
6228
- "kind": "method",
6229
- "name": "willUpdate",
6230
- "privacy": "protected",
6231
- "parameters": [
6232
- {
6233
- "name": "changedProps",
6234
- "type": {
6235
- "text": "PropertyValues"
6236
- }
6237
- }
6238
- ]
6239
- },
6240
- {
6241
- "kind": "method",
6242
- "name": "loadAssets",
6243
- "privacy": "protected",
6244
- "return": {
6245
- "type": {
6246
- "text": "void"
6247
- }
6248
- },
6249
- "parameters": [
6250
- {
6251
- "name": "attributeRefs",
6252
- "type": {
6253
- "text": "AttributeRef[]"
6254
- }
6255
- }
6256
6331
  ]
6257
6332
  },
6258
6333
  {
@@ -6263,166 +6338,247 @@
6263
6338
  "type": {
6264
6339
  "text": "TemplateResult"
6265
6340
  }
6266
- },
6267
- "inheritedFrom": {
6268
- "name": "OrWidget",
6269
- "module": "src/util/or-widget.ts"
6270
6341
  }
6271
6342
  },
6272
6343
  {
6273
- "kind": "method",
6274
- "name": "getDefaultQuery",
6275
- "privacy": "protected",
6276
- "return": {
6277
- "type": {
6278
- "text": "AssetDatapointLTTBQuery"
6279
- }
6280
- }
6344
+ "kind": "field",
6345
+ "name": "getDisplayName",
6346
+ "type": {
6347
+ "text": "() => string | undefined | undefined"
6348
+ },
6349
+ "privacy": "public"
6281
6350
  },
6282
6351
  {
6283
6352
  "kind": "field",
6284
- "name": "loadedAssets",
6353
+ "name": "getEditMode",
6285
6354
  "type": {
6286
- "text": "Asset[]"
6355
+ "text": "() => boolean | undefined"
6287
6356
  },
6288
- "privacy": "protected",
6289
- "default": "[]",
6290
- "inheritedFrom": {
6291
- "name": "OrAssetWidget",
6292
- "module": "src/util/or-asset-widget.ts"
6293
- }
6357
+ "privacy": "public"
6294
6358
  },
6295
6359
  {
6296
6360
  "kind": "field",
6297
- "name": "assetAttributes",
6361
+ "name": "getWidgetLocation",
6298
6362
  "type": {
6299
- "text": "[number, Attribute<any>][]"
6363
+ "text": "() => { x?: number, y?: number, h?: number, w?: number } | undefined"
6300
6364
  },
6301
- "privacy": "protected",
6302
- "default": "[]",
6303
- "inheritedFrom": {
6304
- "name": "OrAssetWidget",
6305
- "module": "src/util/or-asset-widget.ts"
6306
- }
6307
- },
6365
+ "privacy": "public"
6366
+ }
6367
+ ],
6368
+ "superclass": {
6369
+ "name": "LitElement",
6370
+ "package": "lit"
6371
+ },
6372
+ "customElement": true
6373
+ }
6374
+ ],
6375
+ "exports": [
6376
+ {
6377
+ "kind": "js",
6378
+ "name": "OrWidget",
6379
+ "declaration": {
6380
+ "name": "OrWidget",
6381
+ "module": "src/util/or-widget.ts"
6382
+ }
6383
+ }
6384
+ ]
6385
+ },
6386
+ {
6387
+ "kind": "javascript-module",
6388
+ "path": "src/util/settings-panel.ts",
6389
+ "declarations": [
6390
+ {
6391
+ "kind": "class",
6392
+ "description": "",
6393
+ "name": "SettingsPanel",
6394
+ "members": [
6308
6395
  {
6309
6396
  "kind": "field",
6310
- "name": "_error",
6397
+ "name": "expanded",
6311
6398
  "type": {
6312
- "text": "string | undefined"
6399
+ "text": "boolean"
6313
6400
  },
6314
6401
  "privacy": "protected",
6315
- "inheritedFrom": {
6316
- "name": "OrAssetWidget",
6317
- "module": "src/util/or-asset-widget.ts"
6318
- }
6402
+ "default": "false"
6319
6403
  },
6320
6404
  {
6321
6405
  "kind": "field",
6322
- "name": "styles",
6406
+ "name": "displayName",
6323
6407
  "type": {
6324
- "text": "CSSResult[]"
6408
+ "text": "string | undefined"
6325
6409
  },
6410
+ "privacy": "protected"
6411
+ },
6412
+ {
6413
+ "kind": "field",
6414
+ "name": "styles",
6326
6415
  "static": true,
6327
- "readonly": true,
6328
- "inheritedFrom": {
6329
- "name": "OrWidget",
6330
- "module": "src/util/or-widget.ts"
6331
- }
6416
+ "readonly": true
6332
6417
  },
6333
6418
  {
6334
6419
  "kind": "method",
6335
- "name": "fetchAssets",
6420
+ "name": "render",
6336
6421
  "privacy": "protected",
6337
- "parameters": [
6338
- {
6339
- "name": "attributeRefs",
6340
- "default": "[]",
6341
- "type": {
6342
- "text": "AttributeRef[]"
6343
- }
6422
+ "return": {
6423
+ "type": {
6424
+ "text": "TemplateResult"
6344
6425
  }
6345
- ],
6346
- "inheritedFrom": {
6347
- "name": "OrAssetWidget",
6348
- "module": "src/util/or-asset-widget.ts"
6349
6426
  }
6350
6427
  },
6351
6428
  {
6352
6429
  "kind": "method",
6353
- "name": "queryAssets",
6354
- "privacy": "protected",
6430
+ "name": "toggle",
6431
+ "privacy": "public",
6355
6432
  "parameters": [
6356
6433
  {
6357
- "name": "assetQuery",
6434
+ "name": "state",
6435
+ "optional": true,
6358
6436
  "type": {
6359
- "text": "AssetQuery"
6437
+ "text": "boolean"
6360
6438
  }
6361
6439
  }
6362
- ],
6363
- "inheritedFrom": {
6364
- "name": "OrAssetWidget",
6365
- "module": "src/util/or-asset-widget.ts"
6366
- }
6440
+ ]
6367
6441
  },
6368
6442
  {
6369
6443
  "kind": "method",
6370
- "name": "isAssetLoaded",
6444
+ "name": "generateHeader",
6371
6445
  "privacy": "protected",
6446
+ "return": {
6447
+ "type": {
6448
+ "text": "Promise<TemplateResult>"
6449
+ }
6450
+ },
6372
6451
  "parameters": [
6373
6452
  {
6374
- "name": "assetId",
6453
+ "name": "expanded",
6454
+ "type": {
6455
+ "text": "boolean"
6456
+ }
6457
+ },
6458
+ {
6459
+ "name": "title",
6460
+ "optional": true,
6375
6461
  "type": {
6376
6462
  "text": "string"
6377
6463
  }
6378
6464
  }
6379
- ],
6380
- "inheritedFrom": {
6381
- "name": "OrAssetWidget",
6382
- "module": "src/util/or-asset-widget.ts"
6465
+ ]
6466
+ }
6467
+ ],
6468
+ "superclass": {
6469
+ "name": "LitElement",
6470
+ "package": "lit"
6471
+ },
6472
+ "customElement": true
6473
+ }
6474
+ ],
6475
+ "exports": [
6476
+ {
6477
+ "kind": "js",
6478
+ "name": "SettingsPanel",
6479
+ "declaration": {
6480
+ "name": "SettingsPanel",
6481
+ "module": "src/util/settings-panel.ts"
6482
+ }
6483
+ }
6484
+ ]
6485
+ },
6486
+ {
6487
+ "kind": "javascript-module",
6488
+ "path": "src/util/widget-config.ts",
6489
+ "declarations": [],
6490
+ "exports": []
6491
+ },
6492
+ {
6493
+ "kind": "javascript-module",
6494
+ "path": "src/util/widget-settings.ts",
6495
+ "declarations": [
6496
+ {
6497
+ "kind": "class",
6498
+ "description": "",
6499
+ "name": "WidgetSettingsChangedEvent",
6500
+ "members": [
6501
+ {
6502
+ "kind": "field",
6503
+ "name": "NAME",
6504
+ "type": {
6505
+ "text": "string"
6506
+ },
6507
+ "privacy": "public",
6508
+ "static": true,
6509
+ "readonly": true,
6510
+ "default": "\"settings-changed\""
6511
+ }
6512
+ ],
6513
+ "superclass": {
6514
+ "name": "CustomEvent",
6515
+ "module": "src/util/widget-settings.ts"
6516
+ }
6517
+ },
6518
+ {
6519
+ "kind": "class",
6520
+ "description": "",
6521
+ "name": "WidgetSettings",
6522
+ "members": [
6523
+ {
6524
+ "kind": "field",
6525
+ "name": "widgetConfig",
6526
+ "type": {
6527
+ "text": "WidgetConfig"
6528
+ },
6529
+ "privacy": "protected",
6530
+ "readonly": true,
6531
+ "default": "config"
6532
+ },
6533
+ {
6534
+ "kind": "field",
6535
+ "name": "styles",
6536
+ "static": true,
6537
+ "readonly": true
6538
+ },
6539
+ {
6540
+ "kind": "method",
6541
+ "name": "render",
6542
+ "privacy": "protected",
6543
+ "return": {
6544
+ "type": {
6545
+ "text": "TemplateResult"
6546
+ }
6383
6547
  }
6384
6548
  },
6385
6549
  {
6386
6550
  "kind": "method",
6387
- "name": "isAttributeRefLoaded",
6551
+ "name": "willUpdate",
6388
6552
  "privacy": "protected",
6389
6553
  "parameters": [
6390
6554
  {
6391
- "name": "attributeRef",
6555
+ "name": "changedProps",
6392
6556
  "type": {
6393
- "text": "AttributeRef"
6557
+ "text": "PropertyValues"
6394
6558
  }
6395
6559
  }
6396
- ],
6397
- "inheritedFrom": {
6398
- "name": "OrAssetWidget",
6399
- "module": "src/util/or-asset-widget.ts"
6400
- }
6560
+ ]
6561
+ },
6562
+ {
6563
+ "kind": "method",
6564
+ "name": "notifyConfigUpdate",
6565
+ "privacy": "protected"
6401
6566
  },
6402
6567
  {
6403
6568
  "kind": "field",
6404
- "name": "manifest",
6569
+ "name": "getDisplayName",
6405
6570
  "type": {
6406
- "text": "WidgetManifest"
6571
+ "text": "() => string | undefined | undefined"
6407
6572
  },
6408
- "privacy": "protected",
6409
- "static": true,
6410
- "inheritedFrom": {
6411
- "name": "OrWidget",
6412
- "module": "src/util/or-widget.ts"
6413
- }
6573
+ "privacy": "public"
6414
6574
  },
6415
6575
  {
6416
6576
  "kind": "field",
6417
- "name": "getDisplayName",
6577
+ "name": "setDisplayName",
6418
6578
  "type": {
6419
- "text": "() => string | undefined | undefined"
6579
+ "text": "(name?: string) => void | undefined"
6420
6580
  },
6421
- "privacy": "public",
6422
- "inheritedFrom": {
6423
- "name": "OrWidget",
6424
- "module": "src/util/or-widget.ts"
6425
- }
6581
+ "privacy": "public"
6426
6582
  },
6427
6583
  {
6428
6584
  "kind": "field",
@@ -6430,11 +6586,7 @@
6430
6586
  "type": {
6431
6587
  "text": "() => boolean | undefined"
6432
6588
  },
6433
- "privacy": "public",
6434
- "inheritedFrom": {
6435
- "name": "OrWidget",
6436
- "module": "src/util/or-widget.ts"
6437
- }
6589
+ "privacy": "public"
6438
6590
  },
6439
6591
  {
6440
6592
  "kind": "field",
@@ -6442,38 +6594,50 @@
6442
6594
  "type": {
6443
6595
  "text": "() => { x?: number, y?: number, h?: number, w?: number } | undefined"
6444
6596
  },
6445
- "privacy": "public",
6446
- "inheritedFrom": {
6447
- "name": "OrWidget",
6448
- "module": "src/util/or-widget.ts"
6597
+ "privacy": "public"
6598
+ }
6599
+ ],
6600
+ "events": [
6601
+ {
6602
+ "type": {
6603
+ "text": "WidgetSettingsChangedEvent"
6449
6604
  }
6450
6605
  }
6451
6606
  ],
6452
6607
  "superclass": {
6453
- "name": "OrAssetWidget",
6454
- "module": "/src/util/or-asset-widget"
6455
- }
6608
+ "name": "LitElement",
6609
+ "package": "lit"
6610
+ },
6611
+ "customElement": true
6456
6612
  }
6457
6613
  ],
6458
6614
  "exports": [
6459
6615
  {
6460
6616
  "kind": "js",
6461
- "name": "ChartWidget",
6617
+ "name": "WidgetSettingsChangedEvent",
6462
6618
  "declaration": {
6463
- "name": "ChartWidget",
6464
- "module": "src/widgets/chart-widget.ts"
6619
+ "name": "WidgetSettingsChangedEvent",
6620
+ "module": "src/util/widget-settings.ts"
6621
+ }
6622
+ },
6623
+ {
6624
+ "kind": "js",
6625
+ "name": "WidgetSettings",
6626
+ "declaration": {
6627
+ "name": "WidgetSettings",
6628
+ "module": "src/util/widget-settings.ts"
6465
6629
  }
6466
6630
  }
6467
6631
  ]
6468
6632
  },
6469
6633
  {
6470
6634
  "kind": "javascript-module",
6471
- "path": "src/widgets/gateway-widget.ts",
6635
+ "path": "src/widgets/attribute-input-widget.ts",
6472
6636
  "declarations": [
6473
6637
  {
6474
6638
  "kind": "class",
6475
6639
  "description": "",
6476
- "name": "GatewayWidget",
6640
+ "name": "AttributeInputWidget",
6477
6641
  "members": [
6478
6642
  {
6479
6643
  "kind": "field",
@@ -6496,43 +6660,31 @@
6496
6660
  "text": "boolean"
6497
6661
  },
6498
6662
  "privacy": "protected",
6499
- "default": "true"
6663
+ "default": "false"
6500
6664
  },
6501
6665
  {
6502
6666
  "kind": "field",
6503
- "name": "_activeTunnel",
6667
+ "name": "widgetWrapperElem",
6504
6668
  "type": {
6505
- "text": "GatewayTunnelInfo | undefined"
6669
+ "text": "HTMLElement | undefined"
6506
6670
  },
6507
- "privacy": "protected",
6508
- "description": "Cache of the active GatwayTunnelInfo we receive from the HTTP API.\nIt contains all necessary information, such as ID, assigned port, target information, and autoCloseTime."
6671
+ "privacy": "protected"
6509
6672
  },
6510
6673
  {
6511
6674
  "kind": "field",
6512
- "name": "_isReady",
6675
+ "name": "attributeInputElems",
6513
6676
  "type": {
6514
- "text": "boolean"
6677
+ "text": "NodeList | undefined"
6515
6678
  },
6516
- "privacy": "protected",
6517
- "default": "false"
6679
+ "privacy": "protected"
6518
6680
  },
6519
6681
  {
6520
6682
  "kind": "field",
6521
- "name": "_startedByUser",
6683
+ "name": "resizeObserver",
6522
6684
  "type": {
6523
- "text": "boolean"
6685
+ "text": "ResizeObserver | undefined"
6524
6686
  },
6525
- "privacy": "protected",
6526
- "default": "false"
6527
- },
6528
- {
6529
- "kind": "field",
6530
- "name": "_refreshTimer",
6531
- "type": {
6532
- "text": "number | undefined"
6533
- },
6534
- "privacy": "protected",
6535
- "default": "undefined"
6687
+ "privacy": "protected"
6536
6688
  },
6537
6689
  {
6538
6690
  "kind": "method",
@@ -6585,7 +6737,7 @@
6585
6737
  },
6586
6738
  {
6587
6739
  "kind": "method",
6588
- "name": "firstUpdated",
6740
+ "name": "willUpdate",
6589
6741
  "privacy": "protected",
6590
6742
  "parameters": [
6591
6743
  {
@@ -6596,6 +6748,19 @@
6596
6748
  }
6597
6749
  ]
6598
6750
  },
6751
+ {
6752
+ "kind": "method",
6753
+ "name": "loadAssets",
6754
+ "privacy": "protected",
6755
+ "parameters": [
6756
+ {
6757
+ "name": "attributeRefs",
6758
+ "type": {
6759
+ "text": "AttributeRef[]"
6760
+ }
6761
+ }
6762
+ ]
6763
+ },
6599
6764
  {
6600
6765
  "kind": "method",
6601
6766
  "name": "render",
@@ -6611,338 +6776,154 @@
6611
6776
  }
6612
6777
  },
6613
6778
  {
6614
- "kind": "method",
6615
- "name": "_onCopyTunnelAddressClick",
6779
+ "kind": "field",
6780
+ "name": "loadedAssets",
6781
+ "type": {
6782
+ "text": "Asset[]"
6783
+ },
6616
6784
  "privacy": "protected",
6617
- "parameters": [
6618
- {
6619
- "name": "ev",
6620
- "type": {
6621
- "text": "OrInputChangedEvent"
6622
- }
6623
- }
6624
- ],
6625
- "description": "HTML callback function when 'copy address' button is pressed for a TCP tunnel."
6785
+ "default": "[]",
6786
+ "inheritedFrom": {
6787
+ "name": "OrAssetWidget",
6788
+ "module": "src/util/or-asset-widget.ts"
6789
+ }
6626
6790
  },
6627
6791
  {
6628
- "kind": "method",
6629
- "name": "_onStartTunnelClick",
6792
+ "kind": "field",
6793
+ "name": "assetAttributes",
6794
+ "type": {
6795
+ "text": "[number, Attribute<any>][]"
6796
+ },
6630
6797
  "privacy": "protected",
6631
- "parameters": [
6632
- {
6633
- "name": "ev",
6634
- "type": {
6635
- "text": "OrInputChangedEvent"
6636
- }
6637
- }
6638
- ],
6639
- "description": "HTML callback function when 'start' button is pressed, meant to create / start a new tunnel."
6798
+ "default": "[]",
6799
+ "inheritedFrom": {
6800
+ "name": "OrAssetWidget",
6801
+ "module": "src/util/or-asset-widget.ts"
6802
+ }
6640
6803
  },
6641
6804
  {
6642
- "kind": "method",
6643
- "name": "_onStopTunnelClick",
6805
+ "kind": "field",
6806
+ "name": "_error",
6807
+ "type": {
6808
+ "text": "string | undefined"
6809
+ },
6644
6810
  "privacy": "protected",
6645
- "parameters": [
6646
- {
6647
- "name": "ev",
6648
- "type": {
6649
- "text": "OrInputChangedEvent"
6650
- }
6651
- }
6652
- ],
6653
- "description": "HTML callback function when 'stop' button is pressed, meant to destroy the active tunnel."
6811
+ "inheritedFrom": {
6812
+ "name": "OrAssetWidget",
6813
+ "module": "src/util/or-asset-widget.ts"
6814
+ }
6654
6815
  },
6655
6816
  {
6656
6817
  "kind": "method",
6657
- "name": "_onTunnelNavigateClick",
6818
+ "name": "fetchAssets",
6658
6819
  "privacy": "protected",
6659
6820
  "parameters": [
6660
6821
  {
6661
- "name": "ev",
6662
- "type": {
6663
- "text": "OrInputChangedEvent"
6664
- }
6665
- },
6666
- {
6667
- "name": "activeTunnel",
6668
- "optional": true,
6822
+ "name": "attributeRefs",
6823
+ "default": "[]",
6669
6824
  "type": {
6670
- "text": "GatewayTunnelInfo"
6825
+ "text": "AttributeRef[]"
6671
6826
  }
6672
6827
  }
6673
6828
  ],
6674
- "description": "HTML callback function when 'open' button is pressed, meant to start using the tunnel."
6829
+ "inheritedFrom": {
6830
+ "name": "OrAssetWidget",
6831
+ "module": "src/util/or-asset-widget.ts"
6832
+ }
6675
6833
  },
6676
6834
  {
6677
6835
  "kind": "method",
6678
- "name": "_setActiveTunnel",
6836
+ "name": "queryAssets",
6679
6837
  "privacy": "protected",
6680
6838
  "parameters": [
6681
6839
  {
6682
- "name": "tunnelInfo",
6683
- "optional": true,
6840
+ "name": "assetQuery",
6684
6841
  "type": {
6685
- "text": "GatewayTunnelInfo"
6842
+ "text": "AssetQuery"
6686
6843
  }
6687
- },
6688
- {
6689
- "name": "silent",
6690
- "default": "false"
6691
6844
  }
6692
6845
  ],
6693
- "description": "Internal function to set the active tunnel.\nNavigates the user to the tunnel after updating. This can be disabled using the silent parameter."
6846
+ "inheritedFrom": {
6847
+ "name": "OrAssetWidget",
6848
+ "module": "src/util/or-asset-widget.ts"
6849
+ }
6694
6850
  },
6695
6851
  {
6696
6852
  "kind": "method",
6697
- "name": "_tryStartTunnel",
6853
+ "name": "isAssetLoaded",
6698
6854
  "privacy": "protected",
6699
- "return": {
6700
- "type": {
6701
- "text": "void"
6702
- }
6703
- },
6704
6855
  "parameters": [
6705
6856
  {
6706
- "name": "widgetConfig",
6857
+ "name": "assetId",
6707
6858
  "type": {
6708
- "text": "GatewayWidgetConfig"
6859
+ "text": "string"
6709
6860
  }
6710
6861
  }
6711
6862
  ],
6712
- "description": "Function that tries to start the tunnel. It checks the configuration beforehand,\nand acts as a controller to call the correct functions throughout the starting process."
6863
+ "inheritedFrom": {
6864
+ "name": "OrAssetWidget",
6865
+ "module": "src/util/or-asset-widget.ts"
6866
+ }
6713
6867
  },
6714
6868
  {
6715
6869
  "kind": "method",
6716
- "name": "_startTunnel",
6870
+ "name": "isAttributeRefLoaded",
6717
6871
  "privacy": "protected",
6718
- "return": {
6719
- "type": {
6720
- "text": "Promise<GatewayTunnelInfo | undefined>"
6721
- }
6722
- },
6723
6872
  "parameters": [
6724
6873
  {
6725
- "name": "info",
6874
+ "name": "attributeRef",
6726
6875
  "type": {
6727
- "text": "GatewayTunnelInfo"
6876
+ "text": "AttributeRef"
6728
6877
  }
6729
6878
  }
6730
6879
  ],
6731
- "description": "Internal function that starts the tunnel by communicating with the Manager API."
6880
+ "inheritedFrom": {
6881
+ "name": "OrAssetWidget",
6882
+ "module": "src/util/or-asset-widget.ts"
6883
+ }
6732
6884
  },
6733
6885
  {
6734
- "kind": "method",
6735
- "name": "_getActiveTunnel",
6736
- "privacy": "protected",
6737
- "return": {
6738
- "type": {
6739
- "text": "Promise<GatewayTunnelInfo | undefined>"
6740
- }
6886
+ "kind": "field",
6887
+ "name": "manifest",
6888
+ "type": {
6889
+ "text": "WidgetManifest"
6741
6890
  },
6742
- "parameters": [
6743
- {
6744
- "name": "info",
6745
- "type": {
6746
- "text": "GatewayTunnelInfo"
6747
- }
6748
- }
6749
- ],
6750
- "description": "Internal function that requests the Manager API for the active tunnel based on the GatewayTunnelInfo parameter.\nReturns `undefined` if no tunnel could be found on the Manager instance."
6751
- },
6752
- {
6753
- "kind": "method",
6754
- "name": "_getGatewayStatus",
6755
6891
  "privacy": "protected",
6756
- "return": {
6757
- "type": {
6758
- "text": "Promise<string | undefined>"
6759
- }
6760
- },
6761
- "parameters": [
6762
- {
6763
- "name": "info",
6764
- "type": {
6765
- "text": "GatewayTunnelInfo"
6766
- }
6767
- }
6768
- ],
6769
- "description": "Internal function that requests the Manager API for the gatewayStatus of the gatewayId asset in GatewayTunnelInfo.\nReturns undefined if there is misalignment in the linked asset id or unexpected http code."
6892
+ "static": true,
6893
+ "inheritedFrom": {
6894
+ "name": "OrWidget",
6895
+ "module": "src/util/or-widget.ts"
6896
+ }
6770
6897
  },
6771
6898
  {
6772
- "kind": "method",
6773
- "name": "_readyCheck",
6774
- "privacy": "protected",
6775
- "return": {
6776
- "type": {
6777
- "text": "void"
6778
- }
6899
+ "kind": "field",
6900
+ "name": "getDisplayName",
6901
+ "type": {
6902
+ "text": "() => string | undefined | undefined"
6779
6903
  },
6780
- "parameters": [
6781
- {
6782
- "name": "config",
6783
- "type": {
6784
- "text": "GatewayWidgetConfig"
6785
- }
6786
- }
6787
- ],
6788
- "description": "Function that tries to check the gateway status and sets the ready flag to true only if connected."
6904
+ "privacy": "public",
6905
+ "inheritedFrom": {
6906
+ "name": "OrWidget",
6907
+ "module": "src/util/or-widget.ts"
6908
+ }
6789
6909
  },
6790
6910
  {
6791
- "kind": "method",
6792
- "name": "_tryStopTunnel",
6793
- "privacy": "protected",
6794
- "return": {
6795
- "type": {
6796
- "text": "void"
6797
- }
6911
+ "kind": "field",
6912
+ "name": "getEditMode",
6913
+ "type": {
6914
+ "text": "() => boolean | undefined"
6798
6915
  },
6799
- "parameters": [
6800
- {
6801
- "name": "config",
6802
- "type": {
6803
- "text": "GatewayWidgetConfig"
6804
- }
6805
- }
6806
- ],
6807
- "description": "Function that tries to destroy the currently active tunnel."
6916
+ "privacy": "public",
6917
+ "inheritedFrom": {
6918
+ "name": "OrWidget",
6919
+ "module": "src/util/or-widget.ts"
6920
+ }
6808
6921
  },
6809
6922
  {
6810
- "kind": "method",
6811
- "name": "_stopTunnel",
6812
- "privacy": "protected",
6813
- "return": {
6814
- "type": {
6815
- "text": "Promise<void>"
6816
- }
6817
- },
6818
- "parameters": [
6819
- {
6820
- "name": "info",
6821
- "type": {
6822
- "text": "GatewayTunnelInfo"
6823
- }
6824
- }
6825
- ],
6826
- "description": "Internal function that requests the Manager API to destroy a tunnel that is in line with the GatewayTunnelInfo parameter."
6827
- },
6828
- {
6829
- "kind": "method",
6830
- "name": "_navigateToTunnel",
6831
- "privacy": "protected",
6832
- "return": {
6833
- "type": {
6834
- "text": "void"
6835
- }
6836
- },
6837
- "parameters": [
6838
- {
6839
- "name": "info",
6840
- "type": {
6841
- "text": "GatewayTunnelInfo"
6842
- }
6843
- }
6844
- ],
6845
- "description": "Function that navigates the user to an HTTP web page that interacts with a service through the tunnel.\nIt will open in a new browser tab automatically."
6846
- },
6847
- {
6848
- "kind": "method",
6849
- "name": "_getTunnelAddress",
6850
- "privacy": "protected",
6851
- "return": {
6852
- "type": {
6853
- "text": "string | undefined"
6854
- }
6855
- },
6856
- "parameters": [
6857
- {
6858
- "name": "info",
6859
- "type": {
6860
- "text": "GatewayTunnelInfo"
6861
- }
6862
- }
6863
- ],
6864
- "description": "Internal function to get the tunnel address based on GatewayTunnelInfo\nWARNING: Could return incorrect address if not all fields are set."
6865
- },
6866
- {
6867
- "kind": "method",
6868
- "name": "_isConfigComplete",
6869
- "privacy": "protected",
6870
- "return": {
6871
- "type": {
6872
- "text": "boolean"
6873
- }
6874
- },
6875
- "parameters": [
6876
- {
6877
- "name": "widgetConfig",
6878
- "type": {
6879
- "text": "GatewayWidgetConfig"
6880
- }
6881
- }
6882
- ],
6883
- "description": "Internal function to check whether the GatewayWidgetConfig includes the necessary information to control the tunnel.\nUses several `undefined` or empty checks. Useful for checking the object before interacting with Manager APIs."
6884
- },
6885
- {
6886
- "kind": "method",
6887
- "name": "_getTunnelInfoByConfig",
6888
- "privacy": "protected",
6889
- "return": {
6890
- "type": {
6891
- "text": "GatewayTunnelInfo"
6892
- }
6893
- },
6894
- "parameters": [
6895
- {
6896
- "name": "config",
6897
- "type": {
6898
- "text": "GatewayWidgetConfig"
6899
- }
6900
- }
6901
- ],
6902
- "description": "Internal function that parses a GatewayWidgetConfig into a new GatewayTunnelInfo.\nBe aware: this does not information received from the HTTP API such as ID, assigned port, etc. Please use _activeTunnel for this."
6903
- },
6904
- {
6905
- "kind": "field",
6906
- "name": "manifest",
6907
- "type": {
6908
- "text": "WidgetManifest"
6909
- },
6910
- "privacy": "protected",
6911
- "static": true,
6912
- "inheritedFrom": {
6913
- "name": "OrWidget",
6914
- "module": "src/util/or-widget.ts"
6915
- }
6916
- },
6917
- {
6918
- "kind": "field",
6919
- "name": "getDisplayName",
6920
- "type": {
6921
- "text": "() => string | undefined | undefined"
6922
- },
6923
- "privacy": "public",
6924
- "inheritedFrom": {
6925
- "name": "OrWidget",
6926
- "module": "src/util/or-widget.ts"
6927
- }
6928
- },
6929
- {
6930
- "kind": "field",
6931
- "name": "getEditMode",
6932
- "type": {
6933
- "text": "() => boolean | undefined"
6934
- },
6935
- "privacy": "public",
6936
- "inheritedFrom": {
6937
- "name": "OrWidget",
6938
- "module": "src/util/or-widget.ts"
6939
- }
6940
- },
6941
- {
6942
- "kind": "field",
6943
- "name": "getWidgetLocation",
6944
- "type": {
6945
- "text": "() => { x?: number, y?: number, h?: number, w?: number } | undefined"
6923
+ "kind": "field",
6924
+ "name": "getWidgetLocation",
6925
+ "type": {
6926
+ "text": "() => { x?: number, y?: number, h?: number, w?: number } | undefined"
6946
6927
  },
6947
6928
  "privacy": "public",
6948
6929
  "inheritedFrom": {
@@ -6952,44 +6933,38 @@
6952
6933
  }
6953
6934
  ],
6954
6935
  "superclass": {
6955
- "name": "OrWidget",
6956
- "module": "/src/util/or-widget"
6936
+ "name": "OrAssetWidget",
6937
+ "module": "/src/util/or-asset-widget"
6957
6938
  }
6958
6939
  }
6959
6940
  ],
6960
6941
  "exports": [
6961
6942
  {
6962
6943
  "kind": "js",
6963
- "name": "GatewayWidget",
6944
+ "name": "AttributeInputWidget",
6964
6945
  "declaration": {
6965
- "name": "GatewayWidget",
6966
- "module": "src/widgets/gateway-widget.ts"
6946
+ "name": "AttributeInputWidget",
6947
+ "module": "src/widgets/attribute-input-widget.ts"
6967
6948
  }
6968
6949
  }
6969
6950
  ]
6970
6951
  },
6971
6952
  {
6972
6953
  "kind": "javascript-module",
6973
- "path": "src/widgets/gauge-widget.ts",
6954
+ "path": "src/widgets/chart-widget.ts",
6974
6955
  "declarations": [
6975
6956
  {
6976
6957
  "kind": "class",
6977
6958
  "description": "",
6978
- "name": "GaugeWidget",
6959
+ "name": "ChartWidget",
6979
6960
  "members": [
6980
6961
  {
6981
6962
  "kind": "field",
6982
- "name": "widgetConfig",
6963
+ "name": "datapointQuery",
6983
6964
  "type": {
6984
- "text": "WidgetConfig"
6965
+ "text": "AssetDatapointQueryUnion"
6985
6966
  },
6986
- "privacy": "protected",
6987
- "readonly": true,
6988
- "default": "config",
6989
- "inheritedFrom": {
6990
- "name": "OrWidget",
6991
- "module": "src/util/or-widget.ts"
6992
- }
6967
+ "privacy": "protected"
6993
6968
  },
6994
6969
  {
6995
6970
  "kind": "field",
@@ -7000,6 +6975,20 @@
7000
6975
  "privacy": "protected",
7001
6976
  "default": "false"
7002
6977
  },
6978
+ {
6979
+ "kind": "field",
6980
+ "name": "widgetConfig",
6981
+ "type": {
6982
+ "text": "WidgetConfig"
6983
+ },
6984
+ "privacy": "protected",
6985
+ "readonly": true,
6986
+ "default": "config",
6987
+ "inheritedFrom": {
6988
+ "name": "OrWidget",
6989
+ "module": "src/util/or-widget.ts"
6990
+ }
6991
+ },
7003
6992
  {
7004
6993
  "kind": "method",
7005
6994
  "name": "getManifest",
@@ -7036,19 +7025,6 @@
7036
7025
  "module": "src/util/or-widget.ts"
7037
7026
  }
7038
7027
  },
7039
- {
7040
- "kind": "field",
7041
- "name": "styles",
7042
- "type": {
7043
- "text": "CSSResult[]"
7044
- },
7045
- "static": true,
7046
- "readonly": true,
7047
- "inheritedFrom": {
7048
- "name": "OrWidget",
7049
- "module": "src/util/or-widget.ts"
7050
- }
7051
- },
7052
7028
  {
7053
7029
  "kind": "method",
7054
7030
  "name": "willUpdate",
@@ -7057,7 +7033,7 @@
7057
7033
  {
7058
7034
  "name": "changedProps",
7059
7035
  "type": {
7060
- "text": "Map<string, any>"
7036
+ "text": "PropertyValues"
7061
7037
  }
7062
7038
  }
7063
7039
  ]
@@ -7066,6 +7042,11 @@
7066
7042
  "kind": "method",
7067
7043
  "name": "loadAssets",
7068
7044
  "privacy": "protected",
7045
+ "return": {
7046
+ "type": {
7047
+ "text": "void"
7048
+ }
7049
+ },
7069
7050
  "parameters": [
7070
7051
  {
7071
7052
  "name": "attributeRefs",
@@ -7089,6 +7070,16 @@
7089
7070
  "module": "src/util/or-widget.ts"
7090
7071
  }
7091
7072
  },
7073
+ {
7074
+ "kind": "method",
7075
+ "name": "getDefaultQuery",
7076
+ "privacy": "protected",
7077
+ "return": {
7078
+ "type": {
7079
+ "text": "AssetDatapointLTTBQuery"
7080
+ }
7081
+ }
7082
+ },
7092
7083
  {
7093
7084
  "kind": "field",
7094
7085
  "name": "loadedAssets",
@@ -7127,6 +7118,19 @@
7127
7118
  "module": "src/util/or-asset-widget.ts"
7128
7119
  }
7129
7120
  },
7121
+ {
7122
+ "kind": "field",
7123
+ "name": "styles",
7124
+ "type": {
7125
+ "text": "CSSResult[]"
7126
+ },
7127
+ "static": true,
7128
+ "readonly": true,
7129
+ "inheritedFrom": {
7130
+ "name": "OrWidget",
7131
+ "module": "src/util/or-widget.ts"
7132
+ }
7133
+ },
7130
7134
  {
7131
7135
  "kind": "method",
7132
7136
  "name": "fetchAssets",
@@ -7255,22 +7259,22 @@
7255
7259
  "exports": [
7256
7260
  {
7257
7261
  "kind": "js",
7258
- "name": "GaugeWidget",
7262
+ "name": "ChartWidget",
7259
7263
  "declaration": {
7260
- "name": "GaugeWidget",
7261
- "module": "src/widgets/gauge-widget.ts"
7264
+ "name": "ChartWidget",
7265
+ "module": "src/widgets/chart-widget.ts"
7262
7266
  }
7263
7267
  }
7264
7268
  ]
7265
7269
  },
7266
7270
  {
7267
7271
  "kind": "javascript-module",
7268
- "path": "src/widgets/image-widget.ts",
7272
+ "path": "src/widgets/gateway-widget.ts",
7269
7273
  "declarations": [
7270
7274
  {
7271
7275
  "kind": "class",
7272
7276
  "description": "",
7273
- "name": "ImageWidget",
7277
+ "name": "GatewayWidget",
7274
7278
  "members": [
7275
7279
  {
7276
7280
  "kind": "field",
@@ -7287,49 +7291,59 @@
7287
7291
  }
7288
7292
  },
7289
7293
  {
7290
- "kind": "method",
7291
- "name": "getManifest",
7292
- "static": true,
7293
- "return": {
7294
- "type": {
7295
- "text": "WidgetManifest"
7296
- }
7294
+ "kind": "field",
7295
+ "name": "_loading",
7296
+ "type": {
7297
+ "text": "boolean"
7297
7298
  },
7298
- "inheritedFrom": {
7299
- "name": "OrWidget",
7300
- "module": "src/util/or-widget.ts"
7301
- }
7299
+ "privacy": "protected",
7300
+ "default": "true"
7302
7301
  },
7303
7302
  {
7304
- "kind": "method",
7305
- "name": "refreshContent",
7306
- "privacy": "public",
7307
- "return": {
7308
- "type": {
7309
- "text": "void"
7310
- }
7303
+ "kind": "field",
7304
+ "name": "_activeTunnel",
7305
+ "type": {
7306
+ "text": "GatewayTunnelInfo | undefined"
7311
7307
  },
7312
- "parameters": [
7313
- {
7314
- "name": "force",
7315
- "type": {
7316
- "text": "boolean"
7317
- }
7318
- }
7319
- ],
7320
- "inheritedFrom": {
7321
- "name": "OrWidget",
7322
- "module": "src/util/or-widget.ts"
7323
- }
7308
+ "privacy": "protected",
7309
+ "description": "Cache of the active GatwayTunnelInfo we receive from the HTTP API.\nIt contains all necessary information, such as ID, assigned port, target information, and autoCloseTime."
7324
7310
  },
7325
7311
  {
7326
7312
  "kind": "field",
7327
- "name": "styles",
7313
+ "name": "_isReady",
7328
7314
  "type": {
7329
- "text": "CSSResult[]"
7315
+ "text": "boolean"
7316
+ },
7317
+ "privacy": "protected",
7318
+ "default": "false"
7319
+ },
7320
+ {
7321
+ "kind": "field",
7322
+ "name": "_startedByUser",
7323
+ "type": {
7324
+ "text": "boolean"
7325
+ },
7326
+ "privacy": "protected",
7327
+ "default": "false"
7328
+ },
7329
+ {
7330
+ "kind": "field",
7331
+ "name": "_refreshTimer",
7332
+ "type": {
7333
+ "text": "number | undefined"
7330
7334
  },
7335
+ "privacy": "protected",
7336
+ "default": "undefined"
7337
+ },
7338
+ {
7339
+ "kind": "method",
7340
+ "name": "getManifest",
7331
7341
  "static": true,
7332
- "readonly": true,
7342
+ "return": {
7343
+ "type": {
7344
+ "text": "WidgetManifest"
7345
+ }
7346
+ },
7333
7347
  "inheritedFrom": {
7334
7348
  "name": "OrWidget",
7335
7349
  "module": "src/util/or-widget.ts"
@@ -7337,30 +7351,48 @@
7337
7351
  },
7338
7352
  {
7339
7353
  "kind": "method",
7340
- "name": "willUpdate",
7354
+ "name": "refreshContent",
7355
+ "privacy": "public",
7356
+ "return": {
7357
+ "type": {
7358
+ "text": "void"
7359
+ }
7360
+ },
7341
7361
  "parameters": [
7342
7362
  {
7343
- "name": "changedProps",
7363
+ "name": "force",
7344
7364
  "type": {
7345
- "text": "PropertyValues"
7365
+ "text": "boolean"
7346
7366
  }
7347
7367
  }
7348
- ]
7368
+ ],
7369
+ "inheritedFrom": {
7370
+ "name": "OrWidget",
7371
+ "module": "src/util/or-widget.ts"
7372
+ }
7349
7373
  },
7350
7374
  {
7351
- "kind": "method",
7352
- "name": "loadAssets",
7353
- "privacy": "protected"
7375
+ "kind": "field",
7376
+ "name": "styles",
7377
+ "type": {
7378
+ "text": "CSSResult[]"
7379
+ },
7380
+ "static": true,
7381
+ "readonly": true,
7382
+ "inheritedFrom": {
7383
+ "name": "OrWidget",
7384
+ "module": "src/util/or-widget.ts"
7385
+ }
7354
7386
  },
7355
7387
  {
7356
7388
  "kind": "method",
7357
- "name": "handleMarkerPlacement",
7389
+ "name": "firstUpdated",
7358
7390
  "privacy": "protected",
7359
7391
  "parameters": [
7360
7392
  {
7361
- "name": "config",
7393
+ "name": "changedProps",
7362
7394
  "type": {
7363
- "text": "ImageWidgetConfig"
7395
+ "text": "PropertyValues"
7364
7396
  }
7365
7397
  }
7366
7398
  ]
@@ -7380,136 +7412,320 @@
7380
7412
  }
7381
7413
  },
7382
7414
  {
7383
- "kind": "field",
7384
- "name": "loadedAssets",
7385
- "type": {
7386
- "text": "Asset[]"
7387
- },
7415
+ "kind": "method",
7416
+ "name": "_onCopyTunnelAddressClick",
7388
7417
  "privacy": "protected",
7389
- "default": "[]",
7390
- "inheritedFrom": {
7391
- "name": "OrAssetWidget",
7392
- "module": "src/util/or-asset-widget.ts"
7393
- }
7418
+ "parameters": [
7419
+ {
7420
+ "name": "ev",
7421
+ "type": {
7422
+ "text": "OrInputChangedEvent"
7423
+ }
7424
+ }
7425
+ ],
7426
+ "description": "HTML callback function when 'copy address' button is pressed for a TCP tunnel."
7394
7427
  },
7395
7428
  {
7396
- "kind": "field",
7397
- "name": "assetAttributes",
7398
- "type": {
7399
- "text": "[number, Attribute<any>][]"
7400
- },
7429
+ "kind": "method",
7430
+ "name": "_onStartTunnelClick",
7401
7431
  "privacy": "protected",
7402
- "default": "[]",
7403
- "inheritedFrom": {
7404
- "name": "OrAssetWidget",
7405
- "module": "src/util/or-asset-widget.ts"
7406
- }
7432
+ "parameters": [
7433
+ {
7434
+ "name": "ev",
7435
+ "type": {
7436
+ "text": "OrInputChangedEvent"
7437
+ }
7438
+ }
7439
+ ],
7440
+ "description": "HTML callback function when 'start' button is pressed, meant to create / start a new tunnel."
7407
7441
  },
7408
7442
  {
7409
- "kind": "field",
7410
- "name": "_error",
7411
- "type": {
7412
- "text": "string | undefined"
7413
- },
7443
+ "kind": "method",
7444
+ "name": "_onStopTunnelClick",
7414
7445
  "privacy": "protected",
7415
- "inheritedFrom": {
7416
- "name": "OrAssetWidget",
7417
- "module": "src/util/or-asset-widget.ts"
7418
- }
7446
+ "parameters": [
7447
+ {
7448
+ "name": "ev",
7449
+ "type": {
7450
+ "text": "OrInputChangedEvent"
7451
+ }
7452
+ }
7453
+ ],
7454
+ "description": "HTML callback function when 'stop' button is pressed, meant to destroy the active tunnel."
7419
7455
  },
7420
7456
  {
7421
7457
  "kind": "method",
7422
- "name": "fetchAssets",
7458
+ "name": "_onTunnelNavigateClick",
7423
7459
  "privacy": "protected",
7424
7460
  "parameters": [
7425
7461
  {
7426
- "name": "attributeRefs",
7427
- "default": "[]",
7462
+ "name": "ev",
7428
7463
  "type": {
7429
- "text": "AttributeRef[]"
7464
+ "text": "OrInputChangedEvent"
7465
+ }
7466
+ },
7467
+ {
7468
+ "name": "activeTunnel",
7469
+ "optional": true,
7470
+ "type": {
7471
+ "text": "GatewayTunnelInfo"
7430
7472
  }
7431
7473
  }
7432
7474
  ],
7433
- "inheritedFrom": {
7434
- "name": "OrAssetWidget",
7435
- "module": "src/util/or-asset-widget.ts"
7436
- }
7475
+ "description": "HTML callback function when 'open' button is pressed, meant to start using the tunnel."
7437
7476
  },
7438
7477
  {
7439
7478
  "kind": "method",
7440
- "name": "queryAssets",
7479
+ "name": "_setActiveTunnel",
7441
7480
  "privacy": "protected",
7442
7481
  "parameters": [
7443
7482
  {
7444
- "name": "assetQuery",
7483
+ "name": "tunnelInfo",
7484
+ "optional": true,
7445
7485
  "type": {
7446
- "text": "AssetQuery"
7486
+ "text": "GatewayTunnelInfo"
7447
7487
  }
7488
+ },
7489
+ {
7490
+ "name": "silent",
7491
+ "default": "false"
7448
7492
  }
7449
7493
  ],
7450
- "inheritedFrom": {
7451
- "name": "OrAssetWidget",
7452
- "module": "src/util/or-asset-widget.ts"
7453
- }
7494
+ "description": "Internal function to set the active tunnel.\nNavigates the user to the tunnel after updating. This can be disabled using the silent parameter."
7454
7495
  },
7455
7496
  {
7456
7497
  "kind": "method",
7457
- "name": "isAssetLoaded",
7498
+ "name": "_tryStartTunnel",
7458
7499
  "privacy": "protected",
7500
+ "return": {
7501
+ "type": {
7502
+ "text": "void"
7503
+ }
7504
+ },
7459
7505
  "parameters": [
7460
7506
  {
7461
- "name": "assetId",
7507
+ "name": "widgetConfig",
7462
7508
  "type": {
7463
- "text": "string"
7509
+ "text": "GatewayWidgetConfig"
7464
7510
  }
7465
7511
  }
7466
7512
  ],
7467
- "inheritedFrom": {
7468
- "name": "OrAssetWidget",
7469
- "module": "src/util/or-asset-widget.ts"
7470
- }
7513
+ "description": "Function that tries to start the tunnel. It checks the configuration beforehand,\nand acts as a controller to call the correct functions throughout the starting process."
7471
7514
  },
7472
7515
  {
7473
7516
  "kind": "method",
7474
- "name": "isAttributeRefLoaded",
7517
+ "name": "_startTunnel",
7475
7518
  "privacy": "protected",
7519
+ "return": {
7520
+ "type": {
7521
+ "text": "Promise<GatewayTunnelInfo | undefined>"
7522
+ }
7523
+ },
7476
7524
  "parameters": [
7477
7525
  {
7478
- "name": "attributeRef",
7526
+ "name": "info",
7479
7527
  "type": {
7480
- "text": "AttributeRef"
7528
+ "text": "GatewayTunnelInfo"
7481
7529
  }
7482
7530
  }
7483
7531
  ],
7484
- "inheritedFrom": {
7485
- "name": "OrAssetWidget",
7486
- "module": "src/util/or-asset-widget.ts"
7487
- }
7532
+ "description": "Internal function that starts the tunnel by communicating with the Manager API."
7488
7533
  },
7489
7534
  {
7490
- "kind": "field",
7491
- "name": "manifest",
7492
- "type": {
7493
- "text": "WidgetManifest"
7494
- },
7535
+ "kind": "method",
7536
+ "name": "_getActiveTunnel",
7495
7537
  "privacy": "protected",
7496
- "static": true,
7497
- "inheritedFrom": {
7498
- "name": "OrWidget",
7499
- "module": "src/util/or-widget.ts"
7500
- }
7538
+ "return": {
7539
+ "type": {
7540
+ "text": "Promise<GatewayTunnelInfo | undefined>"
7541
+ }
7542
+ },
7543
+ "parameters": [
7544
+ {
7545
+ "name": "info",
7546
+ "type": {
7547
+ "text": "GatewayTunnelInfo"
7548
+ }
7549
+ }
7550
+ ],
7551
+ "description": "Internal function that requests the Manager API for the active tunnel based on the GatewayTunnelInfo parameter.\nReturns `undefined` if no tunnel could be found on the Manager instance."
7501
7552
  },
7502
7553
  {
7503
- "kind": "field",
7504
- "name": "getDisplayName",
7505
- "type": {
7506
- "text": "() => string | undefined | undefined"
7554
+ "kind": "method",
7555
+ "name": "_getGatewayStatus",
7556
+ "privacy": "protected",
7557
+ "return": {
7558
+ "type": {
7559
+ "text": "Promise<string | undefined>"
7560
+ }
7507
7561
  },
7508
- "privacy": "public",
7509
- "inheritedFrom": {
7510
- "name": "OrWidget",
7511
- "module": "src/util/or-widget.ts"
7512
- }
7562
+ "parameters": [
7563
+ {
7564
+ "name": "info",
7565
+ "type": {
7566
+ "text": "GatewayTunnelInfo"
7567
+ }
7568
+ }
7569
+ ],
7570
+ "description": "Internal function that requests the Manager API for the gatewayStatus of the gatewayId asset in GatewayTunnelInfo.\nReturns undefined if there is misalignment in the linked asset id or unexpected http code."
7571
+ },
7572
+ {
7573
+ "kind": "method",
7574
+ "name": "_readyCheck",
7575
+ "privacy": "protected",
7576
+ "return": {
7577
+ "type": {
7578
+ "text": "void"
7579
+ }
7580
+ },
7581
+ "parameters": [
7582
+ {
7583
+ "name": "config",
7584
+ "type": {
7585
+ "text": "GatewayWidgetConfig"
7586
+ }
7587
+ }
7588
+ ],
7589
+ "description": "Function that tries to check the gateway status and sets the ready flag to true only if connected."
7590
+ },
7591
+ {
7592
+ "kind": "method",
7593
+ "name": "_tryStopTunnel",
7594
+ "privacy": "protected",
7595
+ "return": {
7596
+ "type": {
7597
+ "text": "void"
7598
+ }
7599
+ },
7600
+ "parameters": [
7601
+ {
7602
+ "name": "config",
7603
+ "type": {
7604
+ "text": "GatewayWidgetConfig"
7605
+ }
7606
+ }
7607
+ ],
7608
+ "description": "Function that tries to destroy the currently active tunnel."
7609
+ },
7610
+ {
7611
+ "kind": "method",
7612
+ "name": "_stopTunnel",
7613
+ "privacy": "protected",
7614
+ "return": {
7615
+ "type": {
7616
+ "text": "Promise<void>"
7617
+ }
7618
+ },
7619
+ "parameters": [
7620
+ {
7621
+ "name": "info",
7622
+ "type": {
7623
+ "text": "GatewayTunnelInfo"
7624
+ }
7625
+ }
7626
+ ],
7627
+ "description": "Internal function that requests the Manager API to destroy a tunnel that is in line with the GatewayTunnelInfo parameter."
7628
+ },
7629
+ {
7630
+ "kind": "method",
7631
+ "name": "_navigateToTunnel",
7632
+ "privacy": "protected",
7633
+ "return": {
7634
+ "type": {
7635
+ "text": "void"
7636
+ }
7637
+ },
7638
+ "parameters": [
7639
+ {
7640
+ "name": "info",
7641
+ "type": {
7642
+ "text": "GatewayTunnelInfo"
7643
+ }
7644
+ }
7645
+ ],
7646
+ "description": "Function that navigates the user to an HTTP web page that interacts with a service through the tunnel.\nIt will open in a new browser tab automatically."
7647
+ },
7648
+ {
7649
+ "kind": "method",
7650
+ "name": "_getTunnelAddress",
7651
+ "privacy": "protected",
7652
+ "return": {
7653
+ "type": {
7654
+ "text": "string | undefined"
7655
+ }
7656
+ },
7657
+ "parameters": [
7658
+ {
7659
+ "name": "info",
7660
+ "type": {
7661
+ "text": "GatewayTunnelInfo"
7662
+ }
7663
+ }
7664
+ ],
7665
+ "description": "Internal function to get the tunnel address based on GatewayTunnelInfo\nWARNING: Could return incorrect address if not all fields are set."
7666
+ },
7667
+ {
7668
+ "kind": "method",
7669
+ "name": "_isConfigComplete",
7670
+ "privacy": "protected",
7671
+ "return": {
7672
+ "type": {
7673
+ "text": "boolean"
7674
+ }
7675
+ },
7676
+ "parameters": [
7677
+ {
7678
+ "name": "widgetConfig",
7679
+ "type": {
7680
+ "text": "GatewayWidgetConfig"
7681
+ }
7682
+ }
7683
+ ],
7684
+ "description": "Internal function to check whether the GatewayWidgetConfig includes the necessary information to control the tunnel.\nUses several `undefined` or empty checks. Useful for checking the object before interacting with Manager APIs."
7685
+ },
7686
+ {
7687
+ "kind": "method",
7688
+ "name": "_getTunnelInfoByConfig",
7689
+ "privacy": "protected",
7690
+ "return": {
7691
+ "type": {
7692
+ "text": "GatewayTunnelInfo"
7693
+ }
7694
+ },
7695
+ "parameters": [
7696
+ {
7697
+ "name": "config",
7698
+ "type": {
7699
+ "text": "GatewayWidgetConfig"
7700
+ }
7701
+ }
7702
+ ],
7703
+ "description": "Internal function that parses a GatewayWidgetConfig into a new GatewayTunnelInfo.\nBe aware: this does not information received from the HTTP API such as ID, assigned port, etc. Please use _activeTunnel for this."
7704
+ },
7705
+ {
7706
+ "kind": "field",
7707
+ "name": "manifest",
7708
+ "type": {
7709
+ "text": "WidgetManifest"
7710
+ },
7711
+ "privacy": "protected",
7712
+ "static": true,
7713
+ "inheritedFrom": {
7714
+ "name": "OrWidget",
7715
+ "module": "src/util/or-widget.ts"
7716
+ }
7717
+ },
7718
+ {
7719
+ "kind": "field",
7720
+ "name": "getDisplayName",
7721
+ "type": {
7722
+ "text": "() => string | undefined | undefined"
7723
+ },
7724
+ "privacy": "public",
7725
+ "inheritedFrom": {
7726
+ "name": "OrWidget",
7727
+ "module": "src/util/or-widget.ts"
7728
+ }
7513
7729
  },
7514
7730
  {
7515
7731
  "kind": "field",
@@ -7537,30 +7753,30 @@
7537
7753
  }
7538
7754
  ],
7539
7755
  "superclass": {
7540
- "name": "OrAssetWidget",
7541
- "module": "/src/util/or-asset-widget"
7756
+ "name": "OrWidget",
7757
+ "module": "/src/util/or-widget"
7542
7758
  }
7543
7759
  }
7544
7760
  ],
7545
7761
  "exports": [
7546
7762
  {
7547
7763
  "kind": "js",
7548
- "name": "ImageWidget",
7764
+ "name": "GatewayWidget",
7549
7765
  "declaration": {
7550
- "name": "ImageWidget",
7551
- "module": "src/widgets/image-widget.ts"
7766
+ "name": "GatewayWidget",
7767
+ "module": "src/widgets/gateway-widget.ts"
7552
7768
  }
7553
7769
  }
7554
7770
  ]
7555
7771
  },
7556
7772
  {
7557
7773
  "kind": "javascript-module",
7558
- "path": "src/widgets/kpi-widget.ts",
7774
+ "path": "src/widgets/gauge-widget.ts",
7559
7775
  "declarations": [
7560
7776
  {
7561
7777
  "kind": "class",
7562
7778
  "description": "",
7563
- "name": "KpiWidget",
7779
+ "name": "GaugeWidget",
7564
7780
  "members": [
7565
7781
  {
7566
7782
  "kind": "field",
@@ -7621,6 +7837,19 @@
7621
7837
  "module": "src/util/or-widget.ts"
7622
7838
  }
7623
7839
  },
7840
+ {
7841
+ "kind": "field",
7842
+ "name": "styles",
7843
+ "type": {
7844
+ "text": "CSSResult[]"
7845
+ },
7846
+ "static": true,
7847
+ "readonly": true,
7848
+ "inheritedFrom": {
7849
+ "name": "OrWidget",
7850
+ "module": "src/util/or-widget.ts"
7851
+ }
7852
+ },
7624
7853
  {
7625
7854
  "kind": "method",
7626
7855
  "name": "willUpdate",
@@ -7699,19 +7928,6 @@
7699
7928
  "module": "src/util/or-asset-widget.ts"
7700
7929
  }
7701
7930
  },
7702
- {
7703
- "kind": "field",
7704
- "name": "styles",
7705
- "type": {
7706
- "text": "CSSResult[]"
7707
- },
7708
- "static": true,
7709
- "readonly": true,
7710
- "inheritedFrom": {
7711
- "name": "OrWidget",
7712
- "module": "src/util/or-widget.ts"
7713
- }
7714
- },
7715
7931
  {
7716
7932
  "kind": "method",
7717
7933
  "name": "fetchAssets",
@@ -7840,22 +8056,22 @@
7840
8056
  "exports": [
7841
8057
  {
7842
8058
  "kind": "js",
7843
- "name": "KpiWidget",
8059
+ "name": "GaugeWidget",
7844
8060
  "declaration": {
7845
- "name": "KpiWidget",
7846
- "module": "src/widgets/kpi-widget.ts"
8061
+ "name": "GaugeWidget",
8062
+ "module": "src/widgets/gauge-widget.ts"
7847
8063
  }
7848
8064
  }
7849
8065
  ]
7850
8066
  },
7851
8067
  {
7852
8068
  "kind": "javascript-module",
7853
- "path": "src/widgets/map-widget.ts",
8069
+ "path": "src/widgets/image-widget.ts",
7854
8070
  "declarations": [
7855
8071
  {
7856
8072
  "kind": "class",
7857
8073
  "description": "",
7858
- "name": "MapWidget",
8074
+ "name": "ImageWidget",
7859
8075
  "members": [
7860
8076
  {
7861
8077
  "kind": "field",
@@ -7871,15 +8087,6 @@
7871
8087
  "module": "src/util/or-widget.ts"
7872
8088
  }
7873
8089
  },
7874
- {
7875
- "kind": "field",
7876
- "name": "markers",
7877
- "type": {
7878
- "text": "MapMarkerAssetConfig"
7879
- },
7880
- "privacy": "private",
7881
- "default": "{}"
7882
- },
7883
8090
  {
7884
8091
  "kind": "method",
7885
8092
  "name": "getManifest",
@@ -7916,10 +8123,22 @@
7916
8123
  "module": "src/util/or-widget.ts"
7917
8124
  }
7918
8125
  },
8126
+ {
8127
+ "kind": "field",
8128
+ "name": "styles",
8129
+ "type": {
8130
+ "text": "CSSResult[]"
8131
+ },
8132
+ "static": true,
8133
+ "readonly": true,
8134
+ "inheritedFrom": {
8135
+ "name": "OrWidget",
8136
+ "module": "src/util/or-widget.ts"
8137
+ }
8138
+ },
7919
8139
  {
7920
8140
  "kind": "method",
7921
- "name": "updated",
7922
- "privacy": "protected",
8141
+ "name": "willUpdate",
7923
8142
  "parameters": [
7924
8143
  {
7925
8144
  "name": "changedProps",
@@ -7936,51 +8155,20 @@
7936
8155
  },
7937
8156
  {
7938
8157
  "kind": "method",
7939
- "name": "fetchAssetsById",
8158
+ "name": "handleMarkerPlacement",
7940
8159
  "privacy": "protected",
7941
8160
  "parameters": [
7942
8161
  {
7943
- "name": "assetTypes",
7944
- "type": {
7945
- "text": "string[]"
7946
- }
7947
- },
7948
- {
7949
- "name": "attributeName",
7950
- "type": {
7951
- "text": "string"
7952
- }
7953
- },
7954
- {
7955
- "name": "assetIds",
8162
+ "name": "config",
7956
8163
  "type": {
7957
- "text": "string[]"
8164
+ "text": "ImageWidgetConfig"
7958
8165
  }
7959
8166
  }
7960
8167
  ]
7961
8168
  },
7962
8169
  {
7963
8170
  "kind": "method",
7964
- "name": "fetchAssetsByType",
7965
- "privacy": "protected",
7966
- "parameters": [
7967
- {
7968
- "name": "assetTypes",
7969
- "type": {
7970
- "text": "string[]"
7971
- }
7972
- },
7973
- {
7974
- "name": "attributeName",
7975
- "type": {
7976
- "text": "string"
7977
- }
7978
- }
7979
- ]
7980
- },
7981
- {
7982
- "kind": "method",
7983
- "name": "render",
8171
+ "name": "render",
7984
8172
  "privacy": "protected",
7985
8173
  "return": {
7986
8174
  "type": {
@@ -7992,16 +8180,6 @@
7992
8180
  "module": "src/util/or-widget.ts"
7993
8181
  }
7994
8182
  },
7995
- {
7996
- "kind": "method",
7997
- "name": "getMarkerTemplates",
7998
- "privacy": "protected",
7999
- "return": {
8000
- "type": {
8001
- "text": "TemplateResult[]"
8002
- }
8003
- }
8004
- },
8005
8183
  {
8006
8184
  "kind": "field",
8007
8185
  "name": "loadedAssets",
@@ -8040,19 +8218,6 @@
8040
8218
  "module": "src/util/or-asset-widget.ts"
8041
8219
  }
8042
8220
  },
8043
- {
8044
- "kind": "field",
8045
- "name": "styles",
8046
- "type": {
8047
- "text": "CSSResult[]"
8048
- },
8049
- "static": true,
8050
- "readonly": true,
8051
- "inheritedFrom": {
8052
- "name": "OrWidget",
8053
- "module": "src/util/or-widget.ts"
8054
- }
8055
- },
8056
8221
  {
8057
8222
  "kind": "method",
8058
8223
  "name": "fetchAssets",
@@ -8181,22 +8346,22 @@
8181
8346
  "exports": [
8182
8347
  {
8183
8348
  "kind": "js",
8184
- "name": "MapWidget",
8349
+ "name": "ImageWidget",
8185
8350
  "declaration": {
8186
- "name": "MapWidget",
8187
- "module": "src/widgets/map-widget.ts"
8351
+ "name": "ImageWidget",
8352
+ "module": "src/widgets/image-widget.ts"
8188
8353
  }
8189
8354
  }
8190
8355
  ]
8191
8356
  },
8192
8357
  {
8193
8358
  "kind": "javascript-module",
8194
- "path": "src/widgets/table-widget.ts",
8359
+ "path": "src/widgets/kpi-widget.ts",
8195
8360
  "declarations": [
8196
8361
  {
8197
8362
  "kind": "class",
8198
8363
  "description": "",
8199
- "name": "TableWidget",
8364
+ "name": "KpiWidget",
8200
8365
  "members": [
8201
8366
  {
8202
8367
  "kind": "field",
@@ -8212,6 +8377,15 @@
8212
8377
  "module": "src/util/or-widget.ts"
8213
8378
  }
8214
8379
  },
8380
+ {
8381
+ "kind": "field",
8382
+ "name": "_loading",
8383
+ "type": {
8384
+ "text": "boolean"
8385
+ },
8386
+ "privacy": "protected",
8387
+ "default": "false"
8388
+ },
8215
8389
  {
8216
8390
  "kind": "method",
8217
8391
  "name": "getManifest",
@@ -8226,19 +8400,6 @@
8226
8400
  "module": "src/util/or-widget.ts"
8227
8401
  }
8228
8402
  },
8229
- {
8230
- "kind": "field",
8231
- "name": "styles",
8232
- "type": {
8233
- "text": "CSSResult[]"
8234
- },
8235
- "static": true,
8236
- "readonly": true,
8237
- "inheritedFrom": {
8238
- "name": "OrWidget",
8239
- "module": "src/util/or-widget.ts"
8240
- }
8241
- },
8242
8403
  {
8243
8404
  "kind": "method",
8244
8405
  "name": "refreshContent",
@@ -8269,7 +8430,7 @@
8269
8430
  {
8270
8431
  "name": "changedProps",
8271
8432
  "type": {
8272
- "text": "PropertyValues"
8433
+ "text": "Map<string, any>"
8273
8434
  }
8274
8435
  }
8275
8436
  ]
@@ -8277,40 +8438,12 @@
8277
8438
  {
8278
8439
  "kind": "method",
8279
8440
  "name": "loadAssets",
8280
- "privacy": "protected"
8281
- },
8282
- {
8283
- "kind": "method",
8284
- "name": "getColumns",
8285
- "privacy": "protected",
8286
- "return": {
8287
- "type": {
8288
- "text": "TableColumn[]"
8289
- }
8290
- },
8291
- "parameters": [
8292
- {
8293
- "name": "attributeNames",
8294
- "type": {
8295
- "text": "string[]"
8296
- }
8297
- }
8298
- ]
8299
- },
8300
- {
8301
- "kind": "method",
8302
- "name": "getRows",
8303
8441
  "privacy": "protected",
8304
- "return": {
8305
- "type": {
8306
- "text": "TableRow[]"
8307
- }
8308
- },
8309
8442
  "parameters": [
8310
8443
  {
8311
- "name": "attributeNames",
8444
+ "name": "attributeRefs",
8312
8445
  "type": {
8313
- "text": "string[]"
8446
+ "text": "AttributeRef[]"
8314
8447
  }
8315
8448
  }
8316
8449
  ]
@@ -8329,19 +8462,6 @@
8329
8462
  "module": "src/util/or-widget.ts"
8330
8463
  }
8331
8464
  },
8332
- {
8333
- "kind": "method",
8334
- "name": "onTableRowClick",
8335
- "privacy": "protected",
8336
- "parameters": [
8337
- {
8338
- "name": "ev",
8339
- "type": {
8340
- "text": "OrMwcTableRowClickEvent"
8341
- }
8342
- }
8343
- ]
8344
- },
8345
8465
  {
8346
8466
  "kind": "field",
8347
8467
  "name": "loadedAssets",
@@ -8380,6 +8500,19 @@
8380
8500
  "module": "src/util/or-asset-widget.ts"
8381
8501
  }
8382
8502
  },
8503
+ {
8504
+ "kind": "field",
8505
+ "name": "styles",
8506
+ "type": {
8507
+ "text": "CSSResult[]"
8508
+ },
8509
+ "static": true,
8510
+ "readonly": true,
8511
+ "inheritedFrom": {
8512
+ "name": "OrWidget",
8513
+ "module": "src/util/or-widget.ts"
8514
+ }
8515
+ },
8383
8516
  {
8384
8517
  "kind": "method",
8385
8518
  "name": "fetchAssets",
@@ -8508,57 +8641,55 @@
8508
8641
  "exports": [
8509
8642
  {
8510
8643
  "kind": "js",
8511
- "name": "TableWidget",
8644
+ "name": "KpiWidget",
8512
8645
  "declaration": {
8513
- "name": "TableWidget",
8514
- "module": "src/widgets/table-widget.ts"
8646
+ "name": "KpiWidget",
8647
+ "module": "src/widgets/kpi-widget.ts"
8515
8648
  }
8516
8649
  }
8517
8650
  ]
8518
8651
  },
8519
8652
  {
8520
8653
  "kind": "javascript-module",
8521
- "path": "src/util/or-asset-widget.ts",
8654
+ "path": "src/widgets/map-widget.ts",
8522
8655
  "declarations": [
8523
8656
  {
8524
8657
  "kind": "class",
8525
8658
  "description": "",
8526
- "name": "OrAssetWidget",
8659
+ "name": "MapWidget",
8527
8660
  "members": [
8528
8661
  {
8529
8662
  "kind": "field",
8530
- "name": "loadedAssets",
8531
- "type": {
8532
- "text": "Asset[]"
8533
- },
8534
- "privacy": "protected",
8535
- "default": "[]"
8536
- },
8537
- {
8538
- "kind": "field",
8539
- "name": "assetAttributes",
8663
+ "name": "widgetConfig",
8540
8664
  "type": {
8541
- "text": "[number, Attribute<any>][]"
8665
+ "text": "WidgetConfig"
8542
8666
  },
8543
8667
  "privacy": "protected",
8544
- "default": "[]"
8668
+ "readonly": true,
8669
+ "default": "config",
8670
+ "inheritedFrom": {
8671
+ "name": "OrWidget",
8672
+ "module": "src/util/or-widget.ts"
8673
+ }
8545
8674
  },
8546
8675
  {
8547
8676
  "kind": "field",
8548
- "name": "_error",
8677
+ "name": "markers",
8549
8678
  "type": {
8550
- "text": "string | undefined"
8679
+ "text": "MapMarkerAssetConfig"
8551
8680
  },
8552
- "privacy": "protected"
8681
+ "privacy": "private",
8682
+ "default": "{}"
8553
8683
  },
8554
8684
  {
8555
- "kind": "field",
8556
- "name": "styles",
8557
- "type": {
8558
- "text": "CSSResult[]"
8559
- },
8685
+ "kind": "method",
8686
+ "name": "getManifest",
8560
8687
  "static": true,
8561
- "readonly": true,
8688
+ "return": {
8689
+ "type": {
8690
+ "text": "WidgetManifest"
8691
+ }
8692
+ },
8562
8693
  "inheritedFrom": {
8563
8694
  "name": "OrWidget",
8564
8695
  "module": "src/util/or-widget.ts"
@@ -8566,79 +8697,97 @@
8566
8697
  },
8567
8698
  {
8568
8699
  "kind": "method",
8569
- "name": "fetchAssets",
8570
- "privacy": "protected",
8700
+ "name": "refreshContent",
8701
+ "privacy": "public",
8702
+ "return": {
8703
+ "type": {
8704
+ "text": "void"
8705
+ }
8706
+ },
8571
8707
  "parameters": [
8572
8708
  {
8573
- "name": "attributeRefs",
8574
- "default": "[]",
8709
+ "name": "force",
8575
8710
  "type": {
8576
- "text": "AttributeRef[]"
8711
+ "text": "boolean"
8577
8712
  }
8578
8713
  }
8579
- ]
8714
+ ],
8715
+ "inheritedFrom": {
8716
+ "name": "OrWidget",
8717
+ "module": "src/util/or-widget.ts"
8718
+ }
8580
8719
  },
8581
8720
  {
8582
8721
  "kind": "method",
8583
- "name": "queryAssets",
8722
+ "name": "updated",
8584
8723
  "privacy": "protected",
8585
8724
  "parameters": [
8586
8725
  {
8587
- "name": "assetQuery",
8726
+ "name": "changedProps",
8588
8727
  "type": {
8589
- "text": "AssetQuery"
8728
+ "text": "PropertyValues"
8590
8729
  }
8591
8730
  }
8592
8731
  ]
8593
8732
  },
8594
8733
  {
8595
8734
  "kind": "method",
8596
- "name": "isAssetLoaded",
8735
+ "name": "loadAssets",
8736
+ "privacy": "protected"
8737
+ },
8738
+ {
8739
+ "kind": "method",
8740
+ "name": "fetchAssetsById",
8597
8741
  "privacy": "protected",
8598
8742
  "parameters": [
8599
8743
  {
8600
- "name": "assetId",
8744
+ "name": "assetTypes",
8745
+ "type": {
8746
+ "text": "string[]"
8747
+ }
8748
+ },
8749
+ {
8750
+ "name": "attributeName",
8601
8751
  "type": {
8602
8752
  "text": "string"
8603
8753
  }
8754
+ },
8755
+ {
8756
+ "name": "assetIds",
8757
+ "type": {
8758
+ "text": "string[]"
8759
+ }
8604
8760
  }
8605
8761
  ]
8606
8762
  },
8607
8763
  {
8608
8764
  "kind": "method",
8609
- "name": "isAttributeRefLoaded",
8765
+ "name": "fetchAssetsByType",
8610
8766
  "privacy": "protected",
8611
8767
  "parameters": [
8612
8768
  {
8613
- "name": "attributeRef",
8769
+ "name": "assetTypes",
8614
8770
  "type": {
8615
- "text": "AttributeRef"
8771
+ "text": "string[]"
8772
+ }
8773
+ },
8774
+ {
8775
+ "name": "attributeName",
8776
+ "type": {
8777
+ "text": "string"
8616
8778
  }
8617
8779
  }
8618
8780
  ]
8619
8781
  },
8620
8782
  {
8621
- "kind": "field",
8622
- "name": "manifest",
8623
- "type": {
8624
- "text": "WidgetManifest"
8625
- },
8783
+ "kind": "method",
8784
+ "name": "render",
8626
8785
  "privacy": "protected",
8627
- "static": true,
8628
- "inheritedFrom": {
8629
- "name": "OrWidget",
8630
- "module": "src/util/or-widget.ts"
8631
- }
8632
- },
8633
- {
8634
- "kind": "field",
8635
- "name": "widgetConfig",
8636
- "type": {
8637
- "text": "WidgetConfig"
8638
- },
8639
- "privacy": "protected",
8640
- "readonly": true,
8641
- "default": "config",
8786
+ "return": {
8787
+ "type": {
8788
+ "text": "TemplateResult"
8789
+ }
8790
+ },
8642
8791
  "inheritedFrom": {
8643
8792
  "name": "OrWidget",
8644
8793
  "module": "src/util/or-widget.ts"
@@ -8646,109 +8795,64 @@
8646
8795
  },
8647
8796
  {
8648
8797
  "kind": "method",
8649
- "name": "getManifest",
8650
- "static": true,
8798
+ "name": "getMarkerTemplates",
8799
+ "privacy": "protected",
8651
8800
  "return": {
8652
8801
  "type": {
8653
- "text": "WidgetManifest"
8802
+ "text": "TemplateResult[]"
8654
8803
  }
8655
- },
8656
- "inheritedFrom": {
8657
- "name": "OrWidget",
8658
- "module": "src/util/or-widget.ts"
8659
8804
  }
8660
8805
  },
8661
8806
  {
8662
- "kind": "method",
8663
- "name": "refreshContent",
8664
- "privacy": "public",
8665
- "return": {
8666
- "type": {
8667
- "text": "void"
8668
- }
8807
+ "kind": "field",
8808
+ "name": "loadedAssets",
8809
+ "type": {
8810
+ "text": "Asset[]"
8669
8811
  },
8670
- "parameters": [
8671
- {
8672
- "name": "force",
8673
- "type": {
8674
- "text": "boolean"
8675
- }
8676
- }
8677
- ],
8678
- "inheritedFrom": {
8679
- "name": "OrWidget",
8680
- "module": "src/util/or-widget.ts"
8681
- }
8682
- },
8683
- {
8684
- "kind": "method",
8685
- "name": "render",
8686
8812
  "privacy": "protected",
8687
- "return": {
8688
- "type": {
8689
- "text": "TemplateResult"
8690
- }
8691
- },
8813
+ "default": "[]",
8692
8814
  "inheritedFrom": {
8693
- "name": "OrWidget",
8694
- "module": "src/util/or-widget.ts"
8815
+ "name": "OrAssetWidget",
8816
+ "module": "src/util/or-asset-widget.ts"
8695
8817
  }
8696
8818
  },
8697
8819
  {
8698
8820
  "kind": "field",
8699
- "name": "getDisplayName",
8821
+ "name": "assetAttributes",
8700
8822
  "type": {
8701
- "text": "() => string | undefined | undefined"
8823
+ "text": "[number, Attribute<any>][]"
8702
8824
  },
8703
- "privacy": "public",
8825
+ "privacy": "protected",
8826
+ "default": "[]",
8704
8827
  "inheritedFrom": {
8705
- "name": "OrWidget",
8706
- "module": "src/util/or-widget.ts"
8828
+ "name": "OrAssetWidget",
8829
+ "module": "src/util/or-asset-widget.ts"
8707
8830
  }
8708
8831
  },
8709
8832
  {
8710
8833
  "kind": "field",
8711
- "name": "getEditMode",
8834
+ "name": "_error",
8712
8835
  "type": {
8713
- "text": "() => boolean | undefined"
8836
+ "text": "string | undefined"
8714
8837
  },
8715
- "privacy": "public",
8838
+ "privacy": "protected",
8716
8839
  "inheritedFrom": {
8717
- "name": "OrWidget",
8718
- "module": "src/util/or-widget.ts"
8840
+ "name": "OrAssetWidget",
8841
+ "module": "src/util/or-asset-widget.ts"
8719
8842
  }
8720
8843
  },
8721
8844
  {
8722
8845
  "kind": "field",
8723
- "name": "getWidgetLocation",
8846
+ "name": "styles",
8724
8847
  "type": {
8725
- "text": "() => { x?: number, y?: number, h?: number, w?: number } | undefined"
8848
+ "text": "CSSResult[]"
8726
8849
  },
8727
- "privacy": "public",
8850
+ "static": true,
8851
+ "readonly": true,
8728
8852
  "inheritedFrom": {
8729
8853
  "name": "OrWidget",
8730
8854
  "module": "src/util/or-widget.ts"
8731
8855
  }
8732
- }
8733
- ],
8734
- "superclass": {
8735
- "name": "OrWidget",
8736
- "module": "/src/util/or-widget"
8737
- }
8738
- },
8739
- {
8740
- "kind": "class",
8741
- "description": "",
8742
- "name": "AssetWidgetSettings",
8743
- "members": [
8744
- {
8745
- "kind": "field",
8746
- "name": "loadedAssets",
8747
- "type": {
8748
- "text": "Asset[]"
8749
- },
8750
- "privacy": "protected",
8751
- "default": "[]"
8752
8856
  },
8753
8857
  {
8754
8858
  "kind": "method",
@@ -8762,7 +8866,11 @@
8762
8866
  "text": "AttributeRef[]"
8763
8867
  }
8764
8868
  }
8765
- ]
8869
+ ],
8870
+ "inheritedFrom": {
8871
+ "name": "OrAssetWidget",
8872
+ "module": "src/util/or-asset-widget.ts"
8873
+ }
8766
8874
  },
8767
8875
  {
8768
8876
  "kind": "method",
@@ -8775,7 +8883,11 @@
8775
8883
  "text": "AssetQuery"
8776
8884
  }
8777
8885
  }
8778
- ]
8886
+ ],
8887
+ "inheritedFrom": {
8888
+ "name": "OrAssetWidget",
8889
+ "module": "src/util/or-asset-widget.ts"
8890
+ }
8779
8891
  },
8780
8892
  {
8781
8893
  "kind": "method",
@@ -8788,7 +8900,11 @@
8788
8900
  "text": "string"
8789
8901
  }
8790
8902
  }
8791
- ]
8903
+ ],
8904
+ "inheritedFrom": {
8905
+ "name": "OrAssetWidget",
8906
+ "module": "src/util/or-asset-widget.ts"
8907
+ }
8792
8908
  },
8793
8909
  {
8794
8910
  "kind": "method",
@@ -8801,70 +8917,23 @@
8801
8917
  "text": "AttributeRef"
8802
8918
  }
8803
8919
  }
8804
- ]
8805
- },
8806
- {
8807
- "kind": "field",
8808
- "name": "widgetConfig",
8809
- "type": {
8810
- "text": "WidgetConfig"
8811
- },
8812
- "privacy": "protected",
8813
- "readonly": true,
8814
- "default": "config",
8920
+ ],
8815
8921
  "inheritedFrom": {
8816
- "name": "WidgetSettings",
8817
- "module": "src/util/widget-settings.ts"
8922
+ "name": "OrAssetWidget",
8923
+ "module": "src/util/or-asset-widget.ts"
8818
8924
  }
8819
8925
  },
8820
8926
  {
8821
8927
  "kind": "field",
8822
- "name": "styles",
8823
- "static": true,
8824
- "readonly": true,
8825
- "inheritedFrom": {
8826
- "name": "WidgetSettings",
8827
- "module": "src/util/widget-settings.ts"
8828
- }
8829
- },
8830
- {
8831
- "kind": "method",
8832
- "name": "render",
8833
- "privacy": "protected",
8834
- "return": {
8835
- "type": {
8836
- "text": "TemplateResult"
8837
- }
8928
+ "name": "manifest",
8929
+ "type": {
8930
+ "text": "WidgetManifest"
8838
8931
  },
8839
- "inheritedFrom": {
8840
- "name": "WidgetSettings",
8841
- "module": "src/util/widget-settings.ts"
8842
- }
8843
- },
8844
- {
8845
- "kind": "method",
8846
- "name": "willUpdate",
8847
- "privacy": "protected",
8848
- "parameters": [
8849
- {
8850
- "name": "changedProps",
8851
- "type": {
8852
- "text": "PropertyValues"
8853
- }
8854
- }
8855
- ],
8856
- "inheritedFrom": {
8857
- "name": "WidgetSettings",
8858
- "module": "src/util/widget-settings.ts"
8859
- }
8860
- },
8861
- {
8862
- "kind": "method",
8863
- "name": "notifyConfigUpdate",
8864
8932
  "privacy": "protected",
8933
+ "static": true,
8865
8934
  "inheritedFrom": {
8866
- "name": "WidgetSettings",
8867
- "module": "src/util/widget-settings.ts"
8935
+ "name": "OrWidget",
8936
+ "module": "src/util/or-widget.ts"
8868
8937
  }
8869
8938
  },
8870
8939
  {
@@ -8875,20 +8944,8 @@
8875
8944
  },
8876
8945
  "privacy": "public",
8877
8946
  "inheritedFrom": {
8878
- "name": "WidgetSettings",
8879
- "module": "src/util/widget-settings.ts"
8880
- }
8881
- },
8882
- {
8883
- "kind": "field",
8884
- "name": "setDisplayName",
8885
- "type": {
8886
- "text": "(name?: string) => void | undefined"
8887
- },
8888
- "privacy": "public",
8889
- "inheritedFrom": {
8890
- "name": "WidgetSettings",
8891
- "module": "src/util/widget-settings.ts"
8947
+ "name": "OrWidget",
8948
+ "module": "src/util/or-widget.ts"
8892
8949
  }
8893
8950
  },
8894
8951
  {
@@ -8899,8 +8956,8 @@
8899
8956
  },
8900
8957
  "privacy": "public",
8901
8958
  "inheritedFrom": {
8902
- "name": "WidgetSettings",
8903
- "module": "src/util/widget-settings.ts"
8959
+ "name": "OrWidget",
8960
+ "module": "src/util/or-widget.ts"
8904
8961
  }
8905
8962
  },
8906
8963
  {
@@ -8911,83 +8968,50 @@
8911
8968
  },
8912
8969
  "privacy": "public",
8913
8970
  "inheritedFrom": {
8914
- "name": "WidgetSettings",
8915
- "module": "src/util/widget-settings.ts"
8971
+ "name": "OrWidget",
8972
+ "module": "src/util/or-widget.ts"
8916
8973
  }
8917
8974
  }
8918
8975
  ],
8919
8976
  "superclass": {
8920
- "name": "WidgetSettings",
8921
- "module": "/src/util/widget-settings"
8922
- },
8923
- "events": [
8924
- {
8925
- "type": {
8926
- "text": "WidgetSettingsChangedEvent"
8927
- },
8928
- "inheritedFrom": {
8929
- "name": "WidgetSettings",
8930
- "module": "src/util/widget-settings.ts"
8931
- }
8932
- }
8933
- ]
8977
+ "name": "OrAssetWidget",
8978
+ "module": "/src/util/or-asset-widget"
8979
+ }
8934
8980
  }
8935
8981
  ],
8936
8982
  "exports": [
8937
8983
  {
8938
8984
  "kind": "js",
8939
- "name": "OrAssetWidget",
8940
- "declaration": {
8941
- "name": "OrAssetWidget",
8942
- "module": "src/util/or-asset-widget.ts"
8943
- }
8944
- },
8945
- {
8946
- "kind": "js",
8947
- "name": "AssetWidgetSettings",
8985
+ "name": "MapWidget",
8948
8986
  "declaration": {
8949
- "name": "AssetWidgetSettings",
8950
- "module": "src/util/or-asset-widget.ts"
8987
+ "name": "MapWidget",
8988
+ "module": "src/widgets/map-widget.ts"
8951
8989
  }
8952
8990
  }
8953
8991
  ]
8954
8992
  },
8955
8993
  {
8956
8994
  "kind": "javascript-module",
8957
- "path": "src/util/or-widget.ts",
8995
+ "path": "src/widgets/table-widget.ts",
8958
8996
  "declarations": [
8959
8997
  {
8960
8998
  "kind": "class",
8961
8999
  "description": "",
8962
- "name": "OrWidget",
9000
+ "name": "TableWidget",
8963
9001
  "members": [
8964
9002
  {
8965
9003
  "kind": "field",
8966
- "name": "manifest",
9004
+ "name": "widgetConfig",
8967
9005
  "type": {
8968
- "text": "WidgetManifest"
8969
- },
8970
- "privacy": "protected",
8971
- "static": true
8972
- },
8973
- {
8974
- "kind": "field",
8975
- "name": "widgetConfig",
8976
- "type": {
8977
- "text": "WidgetConfig"
9006
+ "text": "WidgetConfig"
8978
9007
  },
8979
9008
  "privacy": "protected",
8980
9009
  "readonly": true,
8981
- "default": "config"
8982
- },
8983
- {
8984
- "kind": "field",
8985
- "name": "styles",
8986
- "type": {
8987
- "text": "CSSResult[]"
8988
- },
8989
- "static": true,
8990
- "readonly": true
9010
+ "default": "config",
9011
+ "inheritedFrom": {
9012
+ "name": "OrWidget",
9013
+ "module": "src/util/or-widget.ts"
9014
+ }
8991
9015
  },
8992
9016
  {
8993
9017
  "kind": "method",
@@ -8997,6 +9021,23 @@
8997
9021
  "type": {
8998
9022
  "text": "WidgetManifest"
8999
9023
  }
9024
+ },
9025
+ "inheritedFrom": {
9026
+ "name": "OrWidget",
9027
+ "module": "src/util/or-widget.ts"
9028
+ }
9029
+ },
9030
+ {
9031
+ "kind": "field",
9032
+ "name": "styles",
9033
+ "type": {
9034
+ "text": "CSSResult[]"
9035
+ },
9036
+ "static": true,
9037
+ "readonly": true,
9038
+ "inheritedFrom": {
9039
+ "name": "OrWidget",
9040
+ "module": "src/util/or-widget.ts"
9000
9041
  }
9001
9042
  },
9002
9043
  {
@@ -9015,257 +9056,224 @@
9015
9056
  "text": "boolean"
9016
9057
  }
9017
9058
  }
9018
- ]
9059
+ ],
9060
+ "inheritedFrom": {
9061
+ "name": "OrWidget",
9062
+ "module": "src/util/or-widget.ts"
9063
+ }
9019
9064
  },
9020
9065
  {
9021
9066
  "kind": "method",
9022
- "name": "render",
9067
+ "name": "willUpdate",
9023
9068
  "privacy": "protected",
9024
- "return": {
9025
- "type": {
9026
- "text": "TemplateResult"
9069
+ "parameters": [
9070
+ {
9071
+ "name": "changedProps",
9072
+ "type": {
9073
+ "text": "PropertyValues"
9074
+ }
9027
9075
  }
9028
- }
9029
- },
9030
- {
9031
- "kind": "field",
9032
- "name": "getDisplayName",
9033
- "type": {
9034
- "text": "() => string | undefined | undefined"
9035
- },
9036
- "privacy": "public"
9037
- },
9038
- {
9039
- "kind": "field",
9040
- "name": "getEditMode",
9041
- "type": {
9042
- "text": "() => boolean | undefined"
9043
- },
9044
- "privacy": "public"
9045
- },
9046
- {
9047
- "kind": "field",
9048
- "name": "getWidgetLocation",
9049
- "type": {
9050
- "text": "() => { x?: number, y?: number, h?: number, w?: number } | undefined"
9051
- },
9052
- "privacy": "public"
9053
- }
9054
- ],
9055
- "superclass": {
9056
- "name": "LitElement",
9057
- "package": "lit"
9058
- },
9059
- "customElement": true
9060
- }
9061
- ],
9062
- "exports": [
9063
- {
9064
- "kind": "js",
9065
- "name": "OrWidget",
9066
- "declaration": {
9067
- "name": "OrWidget",
9068
- "module": "src/util/or-widget.ts"
9069
- }
9070
- }
9071
- ]
9072
- },
9073
- {
9074
- "kind": "javascript-module",
9075
- "path": "src/util/settings-panel.ts",
9076
- "declarations": [
9077
- {
9078
- "kind": "class",
9079
- "description": "",
9080
- "name": "SettingsPanel",
9081
- "members": [
9082
- {
9083
- "kind": "field",
9084
- "name": "expanded",
9085
- "type": {
9086
- "text": "boolean"
9087
- },
9088
- "privacy": "protected",
9089
- "default": "false"
9076
+ ]
9090
9077
  },
9091
9078
  {
9092
- "kind": "field",
9093
- "name": "displayName",
9094
- "type": {
9095
- "text": "string | undefined"
9096
- },
9079
+ "kind": "method",
9080
+ "name": "loadAssets",
9097
9081
  "privacy": "protected"
9098
9082
  },
9099
- {
9100
- "kind": "field",
9101
- "name": "styles",
9102
- "static": true,
9103
- "readonly": true
9104
- },
9105
9083
  {
9106
9084
  "kind": "method",
9107
- "name": "render",
9085
+ "name": "getColumns",
9108
9086
  "privacy": "protected",
9109
9087
  "return": {
9110
9088
  "type": {
9111
- "text": "TemplateResult"
9089
+ "text": "TableColumn[]"
9112
9090
  }
9113
- }
9114
- },
9115
- {
9116
- "kind": "method",
9117
- "name": "toggle",
9118
- "privacy": "public",
9091
+ },
9119
9092
  "parameters": [
9120
9093
  {
9121
- "name": "state",
9122
- "optional": true,
9094
+ "name": "attributeNames",
9123
9095
  "type": {
9124
- "text": "boolean"
9096
+ "text": "string[]"
9125
9097
  }
9126
9098
  }
9127
9099
  ]
9128
9100
  },
9129
9101
  {
9130
9102
  "kind": "method",
9131
- "name": "generateHeader",
9103
+ "name": "getRows",
9132
9104
  "privacy": "protected",
9133
9105
  "return": {
9134
9106
  "type": {
9135
- "text": "Promise<TemplateResult>"
9107
+ "text": "TableRow[]"
9136
9108
  }
9137
9109
  },
9138
9110
  "parameters": [
9139
9111
  {
9140
- "name": "expanded",
9112
+ "name": "attributeNames",
9141
9113
  "type": {
9142
- "text": "boolean"
9114
+ "text": "string[]"
9143
9115
  }
9144
- },
9116
+ }
9117
+ ]
9118
+ },
9119
+ {
9120
+ "kind": "method",
9121
+ "name": "render",
9122
+ "privacy": "protected",
9123
+ "return": {
9124
+ "type": {
9125
+ "text": "TemplateResult"
9126
+ }
9127
+ },
9128
+ "inheritedFrom": {
9129
+ "name": "OrWidget",
9130
+ "module": "src/util/or-widget.ts"
9131
+ }
9132
+ },
9133
+ {
9134
+ "kind": "method",
9135
+ "name": "onTableRowClick",
9136
+ "privacy": "protected",
9137
+ "parameters": [
9145
9138
  {
9146
- "name": "title",
9147
- "optional": true,
9139
+ "name": "ev",
9148
9140
  "type": {
9149
- "text": "string"
9141
+ "text": "OrMwcTableRowClickEvent"
9150
9142
  }
9151
9143
  }
9152
9144
  ]
9153
- }
9154
- ],
9155
- "superclass": {
9156
- "name": "LitElement",
9157
- "package": "lit"
9158
- },
9159
- "customElement": true
9160
- }
9161
- ],
9162
- "exports": [
9163
- {
9164
- "kind": "js",
9165
- "name": "SettingsPanel",
9166
- "declaration": {
9167
- "name": "SettingsPanel",
9168
- "module": "src/util/settings-panel.ts"
9169
- }
9170
- }
9171
- ]
9172
- },
9173
- {
9174
- "kind": "javascript-module",
9175
- "path": "src/util/widget-config.ts",
9176
- "declarations": [],
9177
- "exports": []
9178
- },
9179
- {
9180
- "kind": "javascript-module",
9181
- "path": "src/util/widget-settings.ts",
9182
- "declarations": [
9183
- {
9184
- "kind": "class",
9185
- "description": "",
9186
- "name": "WidgetSettingsChangedEvent",
9187
- "members": [
9145
+ },
9188
9146
  {
9189
9147
  "kind": "field",
9190
- "name": "NAME",
9148
+ "name": "loadedAssets",
9191
9149
  "type": {
9192
- "text": "string"
9150
+ "text": "Asset[]"
9193
9151
  },
9194
- "privacy": "public",
9195
- "static": true,
9196
- "readonly": true,
9197
- "default": "\"settings-changed\""
9198
- }
9199
- ],
9200
- "superclass": {
9201
- "name": "CustomEvent",
9202
- "module": "src/util/widget-settings.ts"
9203
- }
9204
- },
9205
- {
9206
- "kind": "class",
9207
- "description": "",
9208
- "name": "WidgetSettings",
9209
- "members": [
9152
+ "privacy": "protected",
9153
+ "default": "[]",
9154
+ "inheritedFrom": {
9155
+ "name": "OrAssetWidget",
9156
+ "module": "src/util/or-asset-widget.ts"
9157
+ }
9158
+ },
9210
9159
  {
9211
9160
  "kind": "field",
9212
- "name": "widgetConfig",
9161
+ "name": "assetAttributes",
9213
9162
  "type": {
9214
- "text": "WidgetConfig"
9163
+ "text": "[number, Attribute<any>][]"
9215
9164
  },
9216
9165
  "privacy": "protected",
9217
- "readonly": true,
9218
- "default": "config"
9166
+ "default": "[]",
9167
+ "inheritedFrom": {
9168
+ "name": "OrAssetWidget",
9169
+ "module": "src/util/or-asset-widget.ts"
9170
+ }
9219
9171
  },
9220
9172
  {
9221
9173
  "kind": "field",
9222
- "name": "styles",
9223
- "static": true,
9224
- "readonly": true
9174
+ "name": "_error",
9175
+ "type": {
9176
+ "text": "string | undefined"
9177
+ },
9178
+ "privacy": "protected",
9179
+ "inheritedFrom": {
9180
+ "name": "OrAssetWidget",
9181
+ "module": "src/util/or-asset-widget.ts"
9182
+ }
9225
9183
  },
9226
9184
  {
9227
9185
  "kind": "method",
9228
- "name": "render",
9186
+ "name": "fetchAssets",
9229
9187
  "privacy": "protected",
9230
- "return": {
9231
- "type": {
9232
- "text": "TemplateResult"
9188
+ "parameters": [
9189
+ {
9190
+ "name": "attributeRefs",
9191
+ "default": "[]",
9192
+ "type": {
9193
+ "text": "AttributeRef[]"
9194
+ }
9233
9195
  }
9196
+ ],
9197
+ "inheritedFrom": {
9198
+ "name": "OrAssetWidget",
9199
+ "module": "src/util/or-asset-widget.ts"
9234
9200
  }
9235
9201
  },
9236
9202
  {
9237
9203
  "kind": "method",
9238
- "name": "willUpdate",
9204
+ "name": "queryAssets",
9239
9205
  "privacy": "protected",
9240
9206
  "parameters": [
9241
9207
  {
9242
- "name": "changedProps",
9208
+ "name": "assetQuery",
9243
9209
  "type": {
9244
- "text": "PropertyValues"
9210
+ "text": "AssetQuery"
9245
9211
  }
9246
9212
  }
9247
- ]
9213
+ ],
9214
+ "inheritedFrom": {
9215
+ "name": "OrAssetWidget",
9216
+ "module": "src/util/or-asset-widget.ts"
9217
+ }
9248
9218
  },
9249
9219
  {
9250
9220
  "kind": "method",
9251
- "name": "notifyConfigUpdate",
9252
- "privacy": "protected"
9221
+ "name": "isAssetLoaded",
9222
+ "privacy": "protected",
9223
+ "parameters": [
9224
+ {
9225
+ "name": "assetId",
9226
+ "type": {
9227
+ "text": "string"
9228
+ }
9229
+ }
9230
+ ],
9231
+ "inheritedFrom": {
9232
+ "name": "OrAssetWidget",
9233
+ "module": "src/util/or-asset-widget.ts"
9234
+ }
9235
+ },
9236
+ {
9237
+ "kind": "method",
9238
+ "name": "isAttributeRefLoaded",
9239
+ "privacy": "protected",
9240
+ "parameters": [
9241
+ {
9242
+ "name": "attributeRef",
9243
+ "type": {
9244
+ "text": "AttributeRef"
9245
+ }
9246
+ }
9247
+ ],
9248
+ "inheritedFrom": {
9249
+ "name": "OrAssetWidget",
9250
+ "module": "src/util/or-asset-widget.ts"
9251
+ }
9253
9252
  },
9254
9253
  {
9255
9254
  "kind": "field",
9256
- "name": "getDisplayName",
9255
+ "name": "manifest",
9257
9256
  "type": {
9258
- "text": "() => string | undefined | undefined"
9257
+ "text": "WidgetManifest"
9259
9258
  },
9260
- "privacy": "public"
9259
+ "privacy": "protected",
9260
+ "static": true,
9261
+ "inheritedFrom": {
9262
+ "name": "OrWidget",
9263
+ "module": "src/util/or-widget.ts"
9264
+ }
9261
9265
  },
9262
9266
  {
9263
9267
  "kind": "field",
9264
- "name": "setDisplayName",
9268
+ "name": "getDisplayName",
9265
9269
  "type": {
9266
- "text": "(name?: string) => void | undefined"
9270
+ "text": "() => string | undefined | undefined"
9267
9271
  },
9268
- "privacy": "public"
9272
+ "privacy": "public",
9273
+ "inheritedFrom": {
9274
+ "name": "OrWidget",
9275
+ "module": "src/util/or-widget.ts"
9276
+ }
9269
9277
  },
9270
9278
  {
9271
9279
  "kind": "field",
@@ -9273,7 +9281,11 @@
9273
9281
  "type": {
9274
9282
  "text": "() => boolean | undefined"
9275
9283
  },
9276
- "privacy": "public"
9284
+ "privacy": "public",
9285
+ "inheritedFrom": {
9286
+ "name": "OrWidget",
9287
+ "module": "src/util/or-widget.ts"
9288
+ }
9277
9289
  },
9278
9290
  {
9279
9291
  "kind": "field",
@@ -9281,38 +9293,26 @@
9281
9293
  "type": {
9282
9294
  "text": "() => { x?: number, y?: number, h?: number, w?: number } | undefined"
9283
9295
  },
9284
- "privacy": "public"
9285
- }
9286
- ],
9287
- "events": [
9288
- {
9289
- "type": {
9290
- "text": "WidgetSettingsChangedEvent"
9296
+ "privacy": "public",
9297
+ "inheritedFrom": {
9298
+ "name": "OrWidget",
9299
+ "module": "src/util/or-widget.ts"
9291
9300
  }
9292
9301
  }
9293
9302
  ],
9294
9303
  "superclass": {
9295
- "name": "LitElement",
9296
- "package": "lit"
9297
- },
9298
- "customElement": true
9304
+ "name": "OrAssetWidget",
9305
+ "module": "/src/util/or-asset-widget"
9306
+ }
9299
9307
  }
9300
9308
  ],
9301
9309
  "exports": [
9302
9310
  {
9303
9311
  "kind": "js",
9304
- "name": "WidgetSettingsChangedEvent",
9305
- "declaration": {
9306
- "name": "WidgetSettingsChangedEvent",
9307
- "module": "src/util/widget-settings.ts"
9308
- }
9309
- },
9310
- {
9311
- "kind": "js",
9312
- "name": "WidgetSettings",
9312
+ "name": "TableWidget",
9313
9313
  "declaration": {
9314
- "name": "WidgetSettings",
9315
- "module": "src/util/widget-settings.ts"
9314
+ "name": "TableWidget",
9315
+ "module": "src/widgets/table-widget.ts"
9316
9316
  }
9317
9317
  }
9318
9318
  ]