@record-evolution/widget-scada 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -0
- package/dist/scada_symbols/3-phase-voltage-relay-hp.svg +549 -0
- package/dist/scada_symbols/apartments-hp.svg +344 -0
- package/dist/scada_symbols/battery-hp.svg +473 -0
- package/dist/scada_symbols/bottom-flow-meter.svg +933 -0
- package/dist/scada_symbols/bottom-light-bulb-hp.svg +346 -0
- package/dist/scada_symbols/bottom-right-elbow-connector-hp.svg +233 -0
- package/dist/scada_symbols/bottom-right-elbow-pipe.svg +532 -0
- package/dist/scada_symbols/bottom-tee-connector-hp.svg +470 -0
- package/dist/scada_symbols/bottom-tee-pipe.svg +857 -0
- package/dist/scada_symbols/centrifugal-pump.svg +626 -0
- package/dist/scada_symbols/conical-tank.svg +1136 -0
- package/dist/scada_symbols/consumers-hp.svg +346 -0
- package/dist/scada_symbols/control-panel-hp.svg +332 -0
- package/dist/scada_symbols/crane-hp.svg +346 -0
- package/dist/scada_symbols/cross-connector-hp.svg +586 -0
- package/dist/scada_symbols/cross-pipe.svg +1051 -0
- package/dist/scada_symbols/curcuit-breaker-hp.svg +444 -0
- package/dist/scada_symbols/cylindrical-tank.svg +1332 -0
- package/dist/scada_symbols/drawwork-hp.svg +355 -0
- package/dist/scada_symbols/drill-hp.svg +354 -0
- package/dist/scada_symbols/drilling-line-hp.svg +361 -0
- package/dist/scada_symbols/drilling-rig-hp.svg +354 -0
- package/dist/scada_symbols/dynamic-horizontal-scale-hp.svg +605 -0
- package/dist/scada_symbols/dynamic-vertical-scale-hp.svg +598 -0
- package/dist/scada_symbols/electrical-distribution-board-hp.svg +332 -0
- package/dist/scada_symbols/electrical-engine-hp.svg +360 -0
- package/dist/scada_symbols/elevated-tank.svg +1564 -0
- package/dist/scada_symbols/energy-meter-hp.svg +488 -0
- package/dist/scada_symbols/extra-long-horizontal-pipe.svg +426 -0
- package/dist/scada_symbols/extra-long-vertical-pipe.svg +438 -0
- package/dist/scada_symbols/filter-hp.svg +287 -0
- package/dist/scada_symbols/four-rate-energy-meter-hp.svg +891 -0
- package/dist/scada_symbols/fuel-generator-hp.svg +359 -0
- package/dist/scada_symbols/gas-preventer-hp.svg +361 -0
- package/dist/scada_symbols/gas-wellhead-hp.svg +363 -0
- package/dist/scada_symbols/heat-exchanger-hp.svg +363 -0
- package/dist/scada_symbols/heat-pump-hp.svg +532 -0
- package/dist/scada_symbols/high-voltage-tower-hp.svg +297 -0
- package/dist/scada_symbols/hook-hp.svg +293 -0
- package/dist/scada_symbols/horizontal-ball-valve.svg +271 -0
- package/dist/scada_symbols/horizontal-broken-pipe.svg +97 -0
- package/dist/scada_symbols/horizontal-connector-hp.svg +268 -0
- package/dist/scada_symbols/horizontal-curcuit-breaker-hp.svg +439 -0
- package/dist/scada_symbols/horizontal-energy-system-controller-hp.svg +378 -0
- package/dist/scada_symbols/horizontal-inline-flow-meter.svg +913 -0
- package/dist/scada_symbols/horizontal-pipe.svg +422 -0
- package/dist/scada_symbols/horizontal-tank-hp.svg +524 -0
- package/dist/scada_symbols/horizontal-tank.svg +1343 -0
- package/dist/scada_symbols/horizontal-valve-hp.svg +392 -0
- package/dist/scada_symbols/horizontal-wheel-valve.svg +300 -0
- package/dist/scada_symbols/house-hp.svg +349 -0
- package/dist/scada_symbols/index.json +702 -0
- package/dist/scada_symbols/industrial-fuel-generator-hp.svg +358 -0
- package/dist/scada_symbols/inverter-hp.svg +578 -0
- package/dist/scada_symbols/large-conical-tank.svg +1146 -0
- package/dist/scada_symbols/large-cylindrical-tank.svg +1323 -0
- package/dist/scada_symbols/large-horizontal-separator-connector-hp.svg +342 -0
- package/dist/scada_symbols/large-horizontal-separator-hp.svg +350 -0
- package/dist/scada_symbols/large-inverter-hp.svg +578 -0
- package/dist/scada_symbols/large-stand-cylindrical-tank.svg +1384 -0
- package/dist/scada_symbols/large-stand-vertical-tank.svg +1386 -0
- package/dist/scada_symbols/large-vertical-separator-connector-hp.svg +350 -0
- package/dist/scada_symbols/large-vertical-separator-hp.svg +350 -0
- package/dist/scada_symbols/large-vertical-tank.svg +1325 -0
- package/dist/scada_symbols/leak-sensor.svg +158 -0
- package/dist/scada_symbols/left-analog-water-level-meter.svg +748 -0
- package/dist/scada_symbols/left-bottom-elbow-connector-hp.svg +233 -0
- package/dist/scada_symbols/left-bottom-elbow-pipe.svg +532 -0
- package/dist/scada_symbols/left-drain-pipe.svg +166 -0
- package/dist/scada_symbols/left-elbow-drain-pipe.svg +181 -0
- package/dist/scada_symbols/left-flow-meter.svg +911 -0
- package/dist/scada_symbols/left-heat-pump.svg +939 -0
- package/dist/scada_symbols/left-motor-pump.svg +541 -0
- package/dist/scada_symbols/left-tee-connector-hp.svg +470 -0
- package/dist/scada_symbols/left-tee-pipe.svg +869 -0
- package/dist/scada_symbols/left-top-elbow-connector-hp.svg +233 -0
- package/dist/scada_symbols/left-top-elbow-pipe.svg +532 -0
- package/dist/scada_symbols/long-bottom-filter.svg +88 -0
- package/dist/scada_symbols/long-horizontal-broken-pipe.svg +97 -0
- package/dist/scada_symbols/long-horizontal-connector-hp.svg +269 -0
- package/dist/scada_symbols/long-horizontal-pipe.svg +488 -0
- package/dist/scada_symbols/long-top-filter.svg +88 -0
- package/dist/scada_symbols/long-vertical-broken-pipe.svg +97 -0
- package/dist/scada_symbols/long-vertical-connector-hp.svg +267 -0
- package/dist/scada_symbols/long-vertical-pipe.svg +485 -0
- package/dist/scada_symbols/low-voltage-tower-hp.svg +278 -0
- package/dist/scada_symbols/low-voltage-transformer-tower-hp.svg +334 -0
- package/dist/scada_symbols/manufacture-hp.svg +344 -0
- package/dist/scada_symbols/meter.svg +751 -0
- package/dist/scada_symbols/oil-pump-hp.svg +357 -0
- package/dist/scada_symbols/platform-hp.svg +267 -0
- package/dist/scada_symbols/pool-hp.svg +523 -0
- package/dist/scada_symbols/pool.svg +998 -0
- package/dist/scada_symbols/power-socket-hp.svg +371 -0
- package/dist/scada_symbols/power-transformer-hp.svg +359 -0
- package/dist/scada_symbols/preventer-hp.svg +343 -0
- package/dist/scada_symbols/pump-hp.svg +368 -0
- package/dist/scada_symbols/right-analog-water-level-meter.svg +748 -0
- package/dist/scada_symbols/right-drain-pipe.svg +167 -0
- package/dist/scada_symbols/right-elbow-drain-pipe.svg +178 -0
- package/dist/scada_symbols/right-flow-meter.svg +911 -0
- package/dist/scada_symbols/right-heat-pump.svg +948 -0
- package/dist/scada_symbols/right-motor-pump.svg +541 -0
- package/dist/scada_symbols/right-tee-connector-hp.svg +470 -0
- package/dist/scada_symbols/right-tee-pipe.svg +857 -0
- package/dist/scada_symbols/rotor-hp.svg +346 -0
- package/dist/scada_symbols/sand-filter-hp.svg +652 -0
- package/dist/scada_symbols/sand-filter.svg +704 -0
- package/dist/scada_symbols/short-bottom-filter.svg +88 -0
- package/dist/scada_symbols/short-left-drain-pipe.svg +160 -0
- package/dist/scada_symbols/short-right-drain-pipe.svg +160 -0
- package/dist/scada_symbols/short-top-filter.svg +88 -0
- package/dist/scada_symbols/short-vertical-tank-hp.svg +522 -0
- package/dist/scada_symbols/simple-horizontal-scale-hp.svg +509 -0
- package/dist/scada_symbols/simple-vertical-scale-hp.svg +509 -0
- package/dist/scada_symbols/single-key-switch-hp.svg +373 -0
- package/dist/scada_symbols/small-cylindrical-tank.svg +1306 -0
- package/dist/scada_symbols/small-horizontal-separator-connector-hp.svg +342 -0
- package/dist/scada_symbols/small-horizontal-separator-hp.svg +342 -0
- package/dist/scada_symbols/small-left-meter.svg +725 -0
- package/dist/scada_symbols/small-left-motor-pump.svg +443 -0
- package/dist/scada_symbols/small-meter.svg +694 -0
- package/dist/scada_symbols/small-power-transformer-hp.svg +359 -0
- package/dist/scada_symbols/small-right-center.svg +725 -0
- package/dist/scada_symbols/small-right-motor-pump.svg +443 -0
- package/dist/scada_symbols/small-spherical-tank.svg +1362 -0
- package/dist/scada_symbols/small-vertical-separator-connector-hp.svg +342 -0
- package/dist/scada_symbols/small-vertical-separator-hp.svg +342 -0
- package/dist/scada_symbols/solar-panel-hp.svg +353 -0
- package/dist/scada_symbols/spherical-tank.svg +1392 -0
- package/dist/scada_symbols/stand-cylindrical-tank.svg +1393 -0
- package/dist/scada_symbols/stand-horizontal-tank.svg +1404 -0
- package/dist/scada_symbols/stand-solar-panel-hp.svg +357 -0
- package/dist/scada_symbols/stand-vertical-short-tank.svg +1366 -0
- package/dist/scada_symbols/stand-vertical-tank.svg +1386 -0
- package/dist/scada_symbols/three-rate-energy-meter-hp.svg +759 -0
- package/dist/scada_symbols/top-flow-meter.svg +927 -0
- package/dist/scada_symbols/top-light-bulb-hp.svg +346 -0
- package/dist/scada_symbols/top-right-elbow-connector-hp.svg +233 -0
- package/dist/scada_symbols/top-right-elbow-pipe.svg +532 -0
- package/dist/scada_symbols/top-tee-connector-hp.svg +470 -0
- package/dist/scada_symbols/top-tee-pipe.svg +857 -0
- package/dist/scada_symbols/turbine-hp.svg +377 -0
- package/dist/scada_symbols/two-key-switch-hp.svg +489 -0
- package/dist/scada_symbols/two-rate-energy-meter-hp.svg +627 -0
- package/dist/scada_symbols/vertical-ball-valve.svg +271 -0
- package/dist/scada_symbols/vertical-broken-pipe.svg +97 -0
- package/dist/scada_symbols/vertical-connector-hp.svg +269 -0
- package/dist/scada_symbols/vertical-energy-system-controller-hp.svg +378 -0
- package/dist/scada_symbols/vertical-inline-flow-meter.svg +913 -0
- package/dist/scada_symbols/vertical-pipe.svg +422 -0
- package/dist/scada_symbols/vertical-short-tank.svg +1305 -0
- package/dist/scada_symbols/vertical-tank-hp.svg +524 -0
- package/dist/scada_symbols/vertical-tank.svg +1326 -0
- package/dist/scada_symbols/vertical-valve-hp.svg +392 -0
- package/dist/scada_symbols/vertical-wheel-valve.svg +300 -0
- package/dist/scada_symbols/voltage-relay-hp.svg +440 -0
- package/dist/scada_symbols/voltage-stabilizer-hp.svg +584 -0
- package/dist/scada_symbols/waterstop.svg +276 -0
- package/dist/scada_symbols/wind-turbine-cluster-hp.svg +370 -0
- package/dist/scada_symbols/wind-turbine-hp.svg +360 -0
- package/dist/widget-scada.js +1331 -0
- package/dist/widget-scada.js.map +1 -0
- package/package.json +61 -0
- package/scada_symbols/3-phase-voltage-relay-hp.svg +549 -0
- package/scada_symbols/apartments-hp.svg +344 -0
- package/scada_symbols/battery-hp.svg +473 -0
- package/scada_symbols/bottom-flow-meter.svg +933 -0
- package/scada_symbols/bottom-light-bulb-hp.svg +346 -0
- package/scada_symbols/bottom-right-elbow-connector-hp.svg +233 -0
- package/scada_symbols/bottom-right-elbow-pipe.svg +532 -0
- package/scada_symbols/bottom-tee-connector-hp.svg +470 -0
- package/scada_symbols/bottom-tee-pipe.svg +857 -0
- package/scada_symbols/centrifugal-pump.svg +626 -0
- package/scada_symbols/conical-tank.svg +1136 -0
- package/scada_symbols/consumers-hp.svg +346 -0
- package/scada_symbols/control-panel-hp.svg +332 -0
- package/scada_symbols/crane-hp.svg +346 -0
- package/scada_symbols/cross-connector-hp.svg +586 -0
- package/scada_symbols/cross-pipe.svg +1051 -0
- package/scada_symbols/curcuit-breaker-hp.svg +444 -0
- package/scada_symbols/cylindrical-tank.svg +1332 -0
- package/scada_symbols/drawwork-hp.svg +355 -0
- package/scada_symbols/drill-hp.svg +354 -0
- package/scada_symbols/drilling-line-hp.svg +361 -0
- package/scada_symbols/drilling-rig-hp.svg +354 -0
- package/scada_symbols/dynamic-horizontal-scale-hp.svg +605 -0
- package/scada_symbols/dynamic-vertical-scale-hp.svg +598 -0
- package/scada_symbols/electrical-distribution-board-hp.svg +332 -0
- package/scada_symbols/electrical-engine-hp.svg +360 -0
- package/scada_symbols/elevated-tank.svg +1564 -0
- package/scada_symbols/energy-meter-hp.svg +488 -0
- package/scada_symbols/extra-long-horizontal-pipe.svg +426 -0
- package/scada_symbols/extra-long-vertical-pipe.svg +438 -0
- package/scada_symbols/filter-hp.svg +287 -0
- package/scada_symbols/four-rate-energy-meter-hp.svg +891 -0
- package/scada_symbols/fuel-generator-hp.svg +359 -0
- package/scada_symbols/gas-preventer-hp.svg +361 -0
- package/scada_symbols/gas-wellhead-hp.svg +363 -0
- package/scada_symbols/heat-exchanger-hp.svg +363 -0
- package/scada_symbols/heat-pump-hp.svg +532 -0
- package/scada_symbols/high-voltage-tower-hp.svg +297 -0
- package/scada_symbols/hook-hp.svg +293 -0
- package/scada_symbols/horizontal-ball-valve.svg +271 -0
- package/scada_symbols/horizontal-broken-pipe.svg +97 -0
- package/scada_symbols/horizontal-connector-hp.svg +268 -0
- package/scada_symbols/horizontal-curcuit-breaker-hp.svg +439 -0
- package/scada_symbols/horizontal-energy-system-controller-hp.svg +378 -0
- package/scada_symbols/horizontal-inline-flow-meter.svg +913 -0
- package/scada_symbols/horizontal-pipe.svg +422 -0
- package/scada_symbols/horizontal-tank-hp.svg +524 -0
- package/scada_symbols/horizontal-tank.svg +1343 -0
- package/scada_symbols/horizontal-valve-hp.svg +392 -0
- package/scada_symbols/horizontal-wheel-valve.svg +300 -0
- package/scada_symbols/house-hp.svg +349 -0
- package/scada_symbols/index.json +702 -0
- package/scada_symbols/industrial-fuel-generator-hp.svg +358 -0
- package/scada_symbols/inverter-hp.svg +578 -0
- package/scada_symbols/large-conical-tank.svg +1146 -0
- package/scada_symbols/large-cylindrical-tank.svg +1323 -0
- package/scada_symbols/large-horizontal-separator-connector-hp.svg +342 -0
- package/scada_symbols/large-horizontal-separator-hp.svg +350 -0
- package/scada_symbols/large-inverter-hp.svg +578 -0
- package/scada_symbols/large-stand-cylindrical-tank.svg +1384 -0
- package/scada_symbols/large-stand-vertical-tank.svg +1386 -0
- package/scada_symbols/large-vertical-separator-connector-hp.svg +350 -0
- package/scada_symbols/large-vertical-separator-hp.svg +350 -0
- package/scada_symbols/large-vertical-tank.svg +1325 -0
- package/scada_symbols/leak-sensor.svg +158 -0
- package/scada_symbols/left-analog-water-level-meter.svg +748 -0
- package/scada_symbols/left-bottom-elbow-connector-hp.svg +233 -0
- package/scada_symbols/left-bottom-elbow-pipe.svg +532 -0
- package/scada_symbols/left-drain-pipe.svg +166 -0
- package/scada_symbols/left-elbow-drain-pipe.svg +181 -0
- package/scada_symbols/left-flow-meter.svg +911 -0
- package/scada_symbols/left-heat-pump.svg +939 -0
- package/scada_symbols/left-motor-pump.svg +541 -0
- package/scada_symbols/left-tee-connector-hp.svg +470 -0
- package/scada_symbols/left-tee-pipe.svg +869 -0
- package/scada_symbols/left-top-elbow-connector-hp.svg +233 -0
- package/scada_symbols/left-top-elbow-pipe.svg +532 -0
- package/scada_symbols/long-bottom-filter.svg +88 -0
- package/scada_symbols/long-horizontal-broken-pipe.svg +97 -0
- package/scada_symbols/long-horizontal-connector-hp.svg +269 -0
- package/scada_symbols/long-horizontal-pipe.svg +488 -0
- package/scada_symbols/long-top-filter.svg +88 -0
- package/scada_symbols/long-vertical-broken-pipe.svg +97 -0
- package/scada_symbols/long-vertical-connector-hp.svg +267 -0
- package/scada_symbols/long-vertical-pipe.svg +485 -0
- package/scada_symbols/low-voltage-tower-hp.svg +278 -0
- package/scada_symbols/low-voltage-transformer-tower-hp.svg +334 -0
- package/scada_symbols/manufacture-hp.svg +344 -0
- package/scada_symbols/meter.svg +751 -0
- package/scada_symbols/oil-pump-hp.svg +357 -0
- package/scada_symbols/platform-hp.svg +267 -0
- package/scada_symbols/pool-hp.svg +523 -0
- package/scada_symbols/pool.svg +998 -0
- package/scada_symbols/power-socket-hp.svg +371 -0
- package/scada_symbols/power-transformer-hp.svg +359 -0
- package/scada_symbols/preventer-hp.svg +343 -0
- package/scada_symbols/pump-hp.svg +368 -0
- package/scada_symbols/right-analog-water-level-meter.svg +748 -0
- package/scada_symbols/right-drain-pipe.svg +167 -0
- package/scada_symbols/right-elbow-drain-pipe.svg +178 -0
- package/scada_symbols/right-flow-meter.svg +911 -0
- package/scada_symbols/right-heat-pump.svg +948 -0
- package/scada_symbols/right-motor-pump.svg +541 -0
- package/scada_symbols/right-tee-connector-hp.svg +470 -0
- package/scada_symbols/right-tee-pipe.svg +857 -0
- package/scada_symbols/rotor-hp.svg +346 -0
- package/scada_symbols/sand-filter-hp.svg +652 -0
- package/scada_symbols/sand-filter.svg +704 -0
- package/scada_symbols/short-bottom-filter.svg +88 -0
- package/scada_symbols/short-left-drain-pipe.svg +160 -0
- package/scada_symbols/short-right-drain-pipe.svg +160 -0
- package/scada_symbols/short-top-filter.svg +88 -0
- package/scada_symbols/short-vertical-tank-hp.svg +522 -0
- package/scada_symbols/simple-horizontal-scale-hp.svg +509 -0
- package/scada_symbols/simple-vertical-scale-hp.svg +509 -0
- package/scada_symbols/single-key-switch-hp.svg +373 -0
- package/scada_symbols/small-cylindrical-tank.svg +1306 -0
- package/scada_symbols/small-horizontal-separator-connector-hp.svg +342 -0
- package/scada_symbols/small-horizontal-separator-hp.svg +342 -0
- package/scada_symbols/small-left-meter.svg +725 -0
- package/scada_symbols/small-left-motor-pump.svg +443 -0
- package/scada_symbols/small-meter.svg +694 -0
- package/scada_symbols/small-power-transformer-hp.svg +359 -0
- package/scada_symbols/small-right-center.svg +725 -0
- package/scada_symbols/small-right-motor-pump.svg +443 -0
- package/scada_symbols/small-spherical-tank.svg +1362 -0
- package/scada_symbols/small-vertical-separator-connector-hp.svg +342 -0
- package/scada_symbols/small-vertical-separator-hp.svg +342 -0
- package/scada_symbols/solar-panel-hp.svg +353 -0
- package/scada_symbols/spherical-tank.svg +1392 -0
- package/scada_symbols/stand-cylindrical-tank.svg +1393 -0
- package/scada_symbols/stand-horizontal-tank.svg +1404 -0
- package/scada_symbols/stand-solar-panel-hp.svg +357 -0
- package/scada_symbols/stand-vertical-short-tank.svg +1366 -0
- package/scada_symbols/stand-vertical-tank.svg +1386 -0
- package/scada_symbols/three-rate-energy-meter-hp.svg +759 -0
- package/scada_symbols/top-flow-meter.svg +927 -0
- package/scada_symbols/top-light-bulb-hp.svg +346 -0
- package/scada_symbols/top-right-elbow-connector-hp.svg +233 -0
- package/scada_symbols/top-right-elbow-pipe.svg +532 -0
- package/scada_symbols/top-tee-connector-hp.svg +470 -0
- package/scada_symbols/top-tee-pipe.svg +857 -0
- package/scada_symbols/turbine-hp.svg +377 -0
- package/scada_symbols/two-key-switch-hp.svg +489 -0
- package/scada_symbols/two-rate-energy-meter-hp.svg +627 -0
- package/scada_symbols/vertical-ball-valve.svg +271 -0
- package/scada_symbols/vertical-broken-pipe.svg +97 -0
- package/scada_symbols/vertical-connector-hp.svg +269 -0
- package/scada_symbols/vertical-energy-system-controller-hp.svg +378 -0
- package/scada_symbols/vertical-inline-flow-meter.svg +913 -0
- package/scada_symbols/vertical-pipe.svg +422 -0
- package/scada_symbols/vertical-short-tank.svg +1305 -0
- package/scada_symbols/vertical-tank-hp.svg +524 -0
- package/scada_symbols/vertical-tank.svg +1326 -0
- package/scada_symbols/vertical-valve-hp.svg +392 -0
- package/scada_symbols/vertical-wheel-valve.svg +300 -0
- package/scada_symbols/voltage-relay-hp.svg +440 -0
- package/scada_symbols/voltage-stabilizer-hp.svg +584 -0
- package/scada_symbols/waterstop.svg +276 -0
- package/scada_symbols/wind-turbine-cluster-hp.svg +370 -0
- package/scada_symbols/wind-turbine-hp.svg +360 -0
- package/src/default-data.json +18 -0
- package/src/definition-schema.d.ts +1521 -0
- package/src/definition-schema.json +5228 -0
- package/src/scada-runtime.ts +1290 -0
- package/src/widget-scada.ts +269 -0
- package/thumbnail.png +0 -0
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:tb="https://thingsboard.io/svg" width="400" height="200" fill="none" version="1.1" viewBox="0 0 400 200"><tb:metadata xmlns=""><![CDATA[{
|
|
2
|
+
"title": "HP Control panel",
|
|
3
|
+
"description": "Sends the command to the device or updates attribute/time series when the user pushes the button. Widget settings will enable you to configure behavior, how to fetch the initial state, and what to trigger when power on/off states.",
|
|
4
|
+
"searchTags": [
|
|
5
|
+
"control"
|
|
6
|
+
],
|
|
7
|
+
"widgetSizeX": 2,
|
|
8
|
+
"widgetSizeY": 1,
|
|
9
|
+
"tags": [
|
|
10
|
+
{
|
|
11
|
+
"tag": "background",
|
|
12
|
+
"stateRenderFunction": "element.fill(ctx.properties.background);",
|
|
13
|
+
"actions": null
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"tag": "label",
|
|
17
|
+
"stateRenderFunction": "if (ctx.properties.label) {\n element.show();\n ctx.api.font(element, ctx.properties.labelFont, ctx.properties.labelColor);\n ctx.api.text(element, ctx.properties.labelText);\n} else {\n element.hide();\n}",
|
|
18
|
+
"actions": null
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"tag": "offButton",
|
|
22
|
+
"stateRenderFunction": "var offButtonChildren = element.children();\nif(ctx.values.value){\n ctx.api.enable(element);\n offButtonChildren[0].fill(ctx.properties.defaultButtonColor);\n} else {\n ctx.api.disable(element);\n offButtonChildren[0].fill(ctx.properties.activeButtonColor);\n}\n\noffButtonChildren[1].stroke(ctx.properties.borderButtonColor);\n\nif (!ctx.properties.label) {\n element.transform({translateY: -37});\n}",
|
|
23
|
+
"actions": {
|
|
24
|
+
"click": {
|
|
25
|
+
"actionFunction": "ctx.api.disable(element);\nctx.api.callAction(event, 'offUpdateState', undefined, {\n next: () => {\n ctx.api.setValue('value', false);\n },\n error: () => {\n ctx.api.enable(element);\n } \n});"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"tag": "offLabel",
|
|
31
|
+
"stateRenderFunction": "ctx.api.text(element, ctx.properties.offLabelText);",
|
|
32
|
+
"actions": null
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"tag": "onButton",
|
|
36
|
+
"stateRenderFunction": "var onButtonChildren = element.children();\nif(ctx.values.value){\n ctx.api.disable(element);\n onButtonChildren[0].fill(ctx.properties.activeButtonColor);\n} else {\n ctx.api.enable(element);\n onButtonChildren[0].fill(ctx.properties.defaultButtonColor);\n}\nonButtonChildren[1].stroke(ctx.properties.borderButtonColor);\nif (!ctx.properties.label) {\n element.transform({translateY: -37});\n}",
|
|
37
|
+
"actions": {
|
|
38
|
+
"click": {
|
|
39
|
+
"actionFunction": "ctx.api.disable(element);\nctx.api.callAction(event, 'onUpdateState', undefined, {\n next: () => {\n ctx.api.setValue('value', true);\n },\n error: () => {\n ctx.api.enable(element);\n } \n});"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"tag": "onLabel",
|
|
45
|
+
"stateRenderFunction": "ctx.api.text(element, ctx.properties.onLabelText);",
|
|
46
|
+
"actions": null
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"behavior": [
|
|
50
|
+
{
|
|
51
|
+
"id": "value",
|
|
52
|
+
"name": "On/Off state",
|
|
53
|
+
"hint": null,
|
|
54
|
+
"group": null,
|
|
55
|
+
"type": "value",
|
|
56
|
+
"valueType": "BOOLEAN",
|
|
57
|
+
"trueLabel": "On",
|
|
58
|
+
"falseLabel": "Off",
|
|
59
|
+
"stateLabel": "On",
|
|
60
|
+
"defaultGetValueSettings": {
|
|
61
|
+
"action": "GET_ATTRIBUTE",
|
|
62
|
+
"defaultValue": false,
|
|
63
|
+
"executeRpc": {
|
|
64
|
+
"method": "getState",
|
|
65
|
+
"requestTimeout": 5000,
|
|
66
|
+
"requestPersistent": false,
|
|
67
|
+
"persistentPollingInterval": 1000
|
|
68
|
+
},
|
|
69
|
+
"getAttribute": {
|
|
70
|
+
"scope": "SHARED_SCOPE",
|
|
71
|
+
"key": "value"
|
|
72
|
+
},
|
|
73
|
+
"getTimeSeries": {
|
|
74
|
+
"key": "state"
|
|
75
|
+
},
|
|
76
|
+
"dataToValue": {
|
|
77
|
+
"type": "NONE",
|
|
78
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;",
|
|
79
|
+
"compareToValue": true
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"defaultSetValueSettings": null,
|
|
83
|
+
"defaultWidgetActionSettings": null
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "onUpdateState",
|
|
87
|
+
"name": "On update state",
|
|
88
|
+
"hint": null,
|
|
89
|
+
"group": null,
|
|
90
|
+
"type": "action",
|
|
91
|
+
"valueType": "BOOLEAN",
|
|
92
|
+
"trueLabel": null,
|
|
93
|
+
"falseLabel": null,
|
|
94
|
+
"stateLabel": null,
|
|
95
|
+
"defaultGetValueSettings": null,
|
|
96
|
+
"defaultSetValueSettings": {
|
|
97
|
+
"action": "SET_ATTRIBUTE",
|
|
98
|
+
"executeRpc": {
|
|
99
|
+
"method": "setState",
|
|
100
|
+
"requestTimeout": 5000,
|
|
101
|
+
"requestPersistent": false,
|
|
102
|
+
"persistentPollingInterval": 1000
|
|
103
|
+
},
|
|
104
|
+
"setAttribute": {
|
|
105
|
+
"scope": "SHARED_SCOPE",
|
|
106
|
+
"key": "value"
|
|
107
|
+
},
|
|
108
|
+
"putTimeSeries": {
|
|
109
|
+
"key": "state"
|
|
110
|
+
},
|
|
111
|
+
"valueToData": {
|
|
112
|
+
"type": "CONSTANT",
|
|
113
|
+
"constantValue": true,
|
|
114
|
+
"valueToDataFunction": "/* Convert input boolean value to RPC parameters or attribute/time-series value */\nreturn value;"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"defaultWidgetActionSettings": null
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"id": "offUpdateState",
|
|
121
|
+
"name": "Off update state",
|
|
122
|
+
"hint": null,
|
|
123
|
+
"group": null,
|
|
124
|
+
"type": "action",
|
|
125
|
+
"valueType": "BOOLEAN",
|
|
126
|
+
"trueLabel": null,
|
|
127
|
+
"falseLabel": null,
|
|
128
|
+
"stateLabel": null,
|
|
129
|
+
"defaultGetValueSettings": null,
|
|
130
|
+
"defaultSetValueSettings": {
|
|
131
|
+
"action": "SET_ATTRIBUTE",
|
|
132
|
+
"executeRpc": {
|
|
133
|
+
"method": "setState",
|
|
134
|
+
"requestTimeout": 5000,
|
|
135
|
+
"requestPersistent": false,
|
|
136
|
+
"persistentPollingInterval": 1000
|
|
137
|
+
},
|
|
138
|
+
"setAttribute": {
|
|
139
|
+
"scope": "SHARED_SCOPE",
|
|
140
|
+
"key": "value"
|
|
141
|
+
},
|
|
142
|
+
"putTimeSeries": {
|
|
143
|
+
"key": "state"
|
|
144
|
+
},
|
|
145
|
+
"valueToData": {
|
|
146
|
+
"type": "CONSTANT",
|
|
147
|
+
"constantValue": false,
|
|
148
|
+
"valueToDataFunction": "/* Convert input boolean value to RPC parameters or attribute/time-series value */\nreturn value;"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"defaultWidgetActionSettings": null
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"properties": [
|
|
155
|
+
{
|
|
156
|
+
"id": "background",
|
|
157
|
+
"name": "{i18n:scada.symbol.background-color}",
|
|
158
|
+
"type": "color",
|
|
159
|
+
"default": "#DEDEDE",
|
|
160
|
+
"required": null,
|
|
161
|
+
"subLabel": null,
|
|
162
|
+
"divider": null,
|
|
163
|
+
"fieldSuffix": null,
|
|
164
|
+
"disableOnProperty": null,
|
|
165
|
+
"rowClass": "",
|
|
166
|
+
"fieldClass": "",
|
|
167
|
+
"min": null,
|
|
168
|
+
"max": null,
|
|
169
|
+
"step": null
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": "label",
|
|
173
|
+
"name": "{i18n:scada.symbol.label}",
|
|
174
|
+
"type": "switch",
|
|
175
|
+
"default": true,
|
|
176
|
+
"required": null,
|
|
177
|
+
"subLabel": null,
|
|
178
|
+
"divider": null,
|
|
179
|
+
"fieldSuffix": null,
|
|
180
|
+
"disableOnProperty": null,
|
|
181
|
+
"rowClass": "",
|
|
182
|
+
"fieldClass": "",
|
|
183
|
+
"min": null,
|
|
184
|
+
"max": null,
|
|
185
|
+
"step": null
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"id": "labelText",
|
|
189
|
+
"name": "{i18n:scada.symbol.label}",
|
|
190
|
+
"type": "text",
|
|
191
|
+
"default": "Heat pump",
|
|
192
|
+
"required": null,
|
|
193
|
+
"subLabel": null,
|
|
194
|
+
"divider": null,
|
|
195
|
+
"fieldSuffix": null,
|
|
196
|
+
"disableOnProperty": null,
|
|
197
|
+
"rowClass": "",
|
|
198
|
+
"fieldClass": "flex",
|
|
199
|
+
"min": null,
|
|
200
|
+
"max": null,
|
|
201
|
+
"step": null
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "labelFont",
|
|
205
|
+
"name": "{i18n:scada.symbol.label}",
|
|
206
|
+
"type": "font",
|
|
207
|
+
"default": {
|
|
208
|
+
"size": 56,
|
|
209
|
+
"sizeUnit": "px",
|
|
210
|
+
"family": "Roboto",
|
|
211
|
+
"weight": "500",
|
|
212
|
+
"style": "normal"
|
|
213
|
+
},
|
|
214
|
+
"required": null,
|
|
215
|
+
"subLabel": null,
|
|
216
|
+
"divider": null,
|
|
217
|
+
"fieldSuffix": null,
|
|
218
|
+
"disableOnProperty": null,
|
|
219
|
+
"rowClass": "",
|
|
220
|
+
"fieldClass": "",
|
|
221
|
+
"min": null,
|
|
222
|
+
"max": null,
|
|
223
|
+
"step": null
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"id": "labelColor",
|
|
227
|
+
"name": "{i18n:scada.symbol.label}",
|
|
228
|
+
"type": "color",
|
|
229
|
+
"default": "#000000DE",
|
|
230
|
+
"required": null,
|
|
231
|
+
"subLabel": null,
|
|
232
|
+
"divider": null,
|
|
233
|
+
"fieldSuffix": null,
|
|
234
|
+
"disableOnProperty": null,
|
|
235
|
+
"rowClass": "",
|
|
236
|
+
"fieldClass": "",
|
|
237
|
+
"min": null,
|
|
238
|
+
"max": null,
|
|
239
|
+
"step": null
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"id": "onLabelText",
|
|
243
|
+
"name": "{i18n:scada.symbol.on-label}",
|
|
244
|
+
"type": "text",
|
|
245
|
+
"default": "On",
|
|
246
|
+
"required": true,
|
|
247
|
+
"subLabel": null,
|
|
248
|
+
"divider": null,
|
|
249
|
+
"fieldSuffix": null,
|
|
250
|
+
"disableOnProperty": null,
|
|
251
|
+
"rowClass": "",
|
|
252
|
+
"fieldClass": "flex",
|
|
253
|
+
"min": null,
|
|
254
|
+
"max": null,
|
|
255
|
+
"step": null
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"id": "offLabelText",
|
|
259
|
+
"name": "{i18n:scada.symbol.off-label}",
|
|
260
|
+
"type": "text",
|
|
261
|
+
"default": "Off",
|
|
262
|
+
"required": true,
|
|
263
|
+
"subLabel": null,
|
|
264
|
+
"divider": null,
|
|
265
|
+
"fieldSuffix": null,
|
|
266
|
+
"disableOnProperty": null,
|
|
267
|
+
"rowClass": "",
|
|
268
|
+
"fieldClass": "flex",
|
|
269
|
+
"min": null,
|
|
270
|
+
"max": null,
|
|
271
|
+
"step": null
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"id": "activeButtonColor",
|
|
275
|
+
"name": "{i18n:scada.symbol.button-color}",
|
|
276
|
+
"type": "color",
|
|
277
|
+
"default": "#999999",
|
|
278
|
+
"required": null,
|
|
279
|
+
"subLabel": "Active",
|
|
280
|
+
"divider": true,
|
|
281
|
+
"fieldSuffix": null,
|
|
282
|
+
"disableOnProperty": null,
|
|
283
|
+
"rowClass": "",
|
|
284
|
+
"fieldClass": "",
|
|
285
|
+
"min": null,
|
|
286
|
+
"max": null,
|
|
287
|
+
"step": null
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"id": "defaultButtonColor",
|
|
291
|
+
"name": "{i18n:scada.symbol.button-color}",
|
|
292
|
+
"type": "color",
|
|
293
|
+
"default": "#DEDEDE",
|
|
294
|
+
"required": null,
|
|
295
|
+
"subLabel": "Default",
|
|
296
|
+
"divider": true,
|
|
297
|
+
"fieldSuffix": null,
|
|
298
|
+
"disableOnProperty": null,
|
|
299
|
+
"rowClass": "",
|
|
300
|
+
"fieldClass": "",
|
|
301
|
+
"min": null,
|
|
302
|
+
"max": null,
|
|
303
|
+
"step": null
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"id": "borderButtonColor",
|
|
307
|
+
"name": "{i18n:scada.symbol.button-color}",
|
|
308
|
+
"type": "color",
|
|
309
|
+
"default": "#999999",
|
|
310
|
+
"required": null,
|
|
311
|
+
"subLabel": "Border",
|
|
312
|
+
"divider": null,
|
|
313
|
+
"fieldSuffix": null,
|
|
314
|
+
"disableOnProperty": null,
|
|
315
|
+
"rowClass": "",
|
|
316
|
+
"fieldClass": "",
|
|
317
|
+
"min": null,
|
|
318
|
+
"max": null,
|
|
319
|
+
"step": null
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
}]]></tb:metadata>
|
|
323
|
+
<rect width="400" height="200" rx="8" fill="#dedede" tb:tag="background"/><rect x="1" y="1" width="398" height="198" rx="7" stroke="#000" stroke-opacity=".87" stroke-width="2"/><text x="198.7832" y="57.511719" fill="#000000" font-family="Roboto, sans-serif" font-size="56px" font-weight="400" text-anchor="middle" tb:tag="label" xml:space="preserve"><tspan dominant-baseline="middle">Heat pump</tspan></text><g tb:tag="onButton">
|
|
324
|
+
<rect x="29" y="100" width="156" height="72" rx="9.8143" fill="#999" style="stroke-width:.95761"/>
|
|
325
|
+
<path d="m29.957 109.03c0-4.4589 3.9482-8.0734 8.8189-8.0734h136.45c4.8707 0 8.8189 3.6144 8.8189 8.0734v53.938c0 4.4589-3.9482 8.0743-8.8189 8.0743h-136.45c-4.8707 0-8.8189-3.6153-8.8189-8.0743z" shape-rendering="crispEdges" stroke="#999" stroke-width="1.9147"/>
|
|
326
|
+
<text x="107.44609" y="138.7375" fill="#000000" font-family="Roboto, sans-serif" font-size="34px" font-weight="500" text-anchor="middle" tb:tag="onLabel" xml:space="preserve"><tspan dominant-baseline="middle">On</tspan></text>
|
|
327
|
+
</g><g tb:tag="offButton">
|
|
328
|
+
<rect x="214" y="100" width="156" height="72" rx="9.8143" fill="#dedede" style="stroke-width:.95761"/>
|
|
329
|
+
<path d="m214.96 109.03c0-4.4589 3.9482-8.0734 8.8189-8.0734h136.45c4.8707 0 8.8189 3.6144 8.8189 8.0734v53.938c0 4.4589-3.9482 8.0743-8.8189 8.0743h-136.45c-4.8707 0-8.8189-3.6153-8.8189-8.0743z" shape-rendering="crispEdges" stroke="#999" stroke-width="1.9147"/>
|
|
330
|
+
<text x="290.68408" y="139.33516" fill="#000000" font-family="Roboto, sans-serif" font-size="34px" font-weight="500" text-anchor="middle" tb:tag="offLabel" xml:space="preserve"><tspan dominant-baseline="middle">Off</tspan></text>
|
|
331
|
+
</g>
|
|
332
|
+
</svg>
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:tb="https://thingsboard.io/svg" width="1e3" height="1200" fill="none" version="1.1" viewBox="0 0 1e3 1200"><tb:metadata xmlns=""><![CDATA[{
|
|
2
|
+
"title": "HP Crane",
|
|
3
|
+
"description": "Crane with various states.",
|
|
4
|
+
"searchTags": [
|
|
5
|
+
"crane"
|
|
6
|
+
],
|
|
7
|
+
"widgetSizeX": 5,
|
|
8
|
+
"widgetSizeY": 6,
|
|
9
|
+
"tags": [
|
|
10
|
+
{
|
|
11
|
+
"tag": "background",
|
|
12
|
+
"stateRenderFunction": "var color = ctx.properties.stoppedColor;\nif (ctx.values.running) {\n color = ctx.properties.runningColor;\n}\nelement.attr({fill: color});",
|
|
13
|
+
"actions": null
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"tag": "clickArea",
|
|
17
|
+
"stateRenderFunction": null,
|
|
18
|
+
"actions": {
|
|
19
|
+
"click": {
|
|
20
|
+
"actionFunction": "ctx.api.callAction(event, 'click');"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"tag": "critical",
|
|
26
|
+
"stateRenderFunction": "element.attr({fill: ctx.properties.criticalColor});\nif (ctx.values.critical) {\n element.show();\n} else {\n element.hide();\n}\n\nvar elementCriticalAnimation = element.remember('criticalAnimation');\nvar criticalAnimation = ctx.values.critical && ctx.values.criticalAnimation;\n\nif (elementCriticalAnimation !== criticalAnimation) {\n element.remember('criticalAnimation', criticalAnimation);\n if (criticalAnimation) {\n ctx.api.cssAnimate(element, 500).attr({opacity: 0.15}).loop(0, true);\n } else {\n ctx.api.resetCssAnimation(element);\n }\n}\n\n",
|
|
27
|
+
"actions": {
|
|
28
|
+
"click": {
|
|
29
|
+
"actionFunction": "ctx.api.callAction(event, 'criticalClick');"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"tag": "warning",
|
|
35
|
+
"stateRenderFunction": "element.attr({fill: ctx.properties.warningColor});\nvar warning = ctx.values.warning && !(ctx.values.warning && ctx.values.critical)\nif (warning) {\n element.show();\n} else {\n element.hide();\n}\n\nvar elementCriticalAnimation = element.remember('criticalAnimation');\nvar criticalAnimation = warning && ctx.values.criticalAnimation;\n\nif (elementCriticalAnimation !== criticalAnimation) {\n element.remember('criticalAnimation', criticalAnimation);\n if (criticalAnimation) {\n ctx.api.cssAnimate(element, 500).attr({opacity: 0.15}).loop(0, true);\n } else {\n ctx.api.resetCssAnimation(element);\n }\n}\n",
|
|
36
|
+
"actions": {
|
|
37
|
+
"click": {
|
|
38
|
+
"actionFunction": "ctx.api.callAction(event, 'warningClick');"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"behavior": [
|
|
44
|
+
{
|
|
45
|
+
"id": "running",
|
|
46
|
+
"name": "{i18n:scada.symbol.running}",
|
|
47
|
+
"hint": "{i18n:scada.symbol.running-hint}",
|
|
48
|
+
"group": null,
|
|
49
|
+
"type": "value",
|
|
50
|
+
"valueType": "BOOLEAN",
|
|
51
|
+
"trueLabel": null,
|
|
52
|
+
"falseLabel": null,
|
|
53
|
+
"stateLabel": "{i18n:scada.symbol.running}",
|
|
54
|
+
"defaultGetValueSettings": {
|
|
55
|
+
"action": "GET_ATTRIBUTE",
|
|
56
|
+
"defaultValue": false,
|
|
57
|
+
"executeRpc": {
|
|
58
|
+
"method": "getState",
|
|
59
|
+
"requestTimeout": 5000,
|
|
60
|
+
"requestPersistent": false,
|
|
61
|
+
"persistentPollingInterval": 1000
|
|
62
|
+
},
|
|
63
|
+
"getAttribute": {
|
|
64
|
+
"scope": "SHARED_SCOPE",
|
|
65
|
+
"key": "running"
|
|
66
|
+
},
|
|
67
|
+
"getTimeSeries": {
|
|
68
|
+
"key": "state"
|
|
69
|
+
},
|
|
70
|
+
"getAlarmStatus": {
|
|
71
|
+
"severityList": null,
|
|
72
|
+
"typeList": null
|
|
73
|
+
},
|
|
74
|
+
"dataToValue": {
|
|
75
|
+
"type": "NONE",
|
|
76
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;",
|
|
77
|
+
"compareToValue": true
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"defaultSetValueSettings": null,
|
|
81
|
+
"defaultWidgetActionSettings": null
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "warning",
|
|
85
|
+
"name": "{i18n:scada.symbol.warning}",
|
|
86
|
+
"hint": "{i18n:scada.symbol.warning-state-hint}",
|
|
87
|
+
"group": "{i18n:scada.symbol.warning-state}",
|
|
88
|
+
"type": "value",
|
|
89
|
+
"valueType": "BOOLEAN",
|
|
90
|
+
"trueLabel": null,
|
|
91
|
+
"falseLabel": null,
|
|
92
|
+
"stateLabel": "{i18n:scada.symbol.warning}",
|
|
93
|
+
"defaultGetValueSettings": {
|
|
94
|
+
"action": "GET_ALARM_STATUS",
|
|
95
|
+
"defaultValue": false,
|
|
96
|
+
"executeRpc": {
|
|
97
|
+
"method": "getState",
|
|
98
|
+
"requestTimeout": 5000,
|
|
99
|
+
"requestPersistent": false,
|
|
100
|
+
"persistentPollingInterval": 1000
|
|
101
|
+
},
|
|
102
|
+
"getAttribute": {
|
|
103
|
+
"scope": null,
|
|
104
|
+
"key": "state"
|
|
105
|
+
},
|
|
106
|
+
"getTimeSeries": {
|
|
107
|
+
"key": "state"
|
|
108
|
+
},
|
|
109
|
+
"getAlarmStatus": {
|
|
110
|
+
"severityList": [
|
|
111
|
+
"MAJOR",
|
|
112
|
+
"MINOR",
|
|
113
|
+
"WARNING",
|
|
114
|
+
"INDETERMINATE"
|
|
115
|
+
],
|
|
116
|
+
"typeList": null
|
|
117
|
+
},
|
|
118
|
+
"dataToValue": {
|
|
119
|
+
"type": "NONE",
|
|
120
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;",
|
|
121
|
+
"compareToValue": true
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"defaultSetValueSettings": null,
|
|
125
|
+
"defaultWidgetActionSettings": null
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"id": "warningClick",
|
|
129
|
+
"name": "{i18n:scada.symbol.warning-click}",
|
|
130
|
+
"hint": "{i18n:scada.symbol.on-click-hint}",
|
|
131
|
+
"group": "{i18n:scada.symbol.warning-state}",
|
|
132
|
+
"type": "widgetAction",
|
|
133
|
+
"valueType": "BOOLEAN",
|
|
134
|
+
"trueLabel": null,
|
|
135
|
+
"falseLabel": null,
|
|
136
|
+
"stateLabel": null,
|
|
137
|
+
"defaultGetValueSettings": null,
|
|
138
|
+
"defaultSetValueSettings": null,
|
|
139
|
+
"defaultWidgetActionSettings": {
|
|
140
|
+
"type": "doNothing",
|
|
141
|
+
"targetDashboardStateId": null,
|
|
142
|
+
"openRightLayout": false,
|
|
143
|
+
"setEntityId": false,
|
|
144
|
+
"stateEntityParamName": null
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "critical",
|
|
149
|
+
"name": "{i18n:scada.symbol.critical}",
|
|
150
|
+
"hint": "{i18n:scada.symbol.critical-state-hint}",
|
|
151
|
+
"group": "{i18n:scada.symbol.critical-state}",
|
|
152
|
+
"type": "value",
|
|
153
|
+
"valueType": "BOOLEAN",
|
|
154
|
+
"trueLabel": null,
|
|
155
|
+
"falseLabel": null,
|
|
156
|
+
"stateLabel": "{i18n:scada.symbol.critical}",
|
|
157
|
+
"defaultGetValueSettings": {
|
|
158
|
+
"action": "GET_ALARM_STATUS",
|
|
159
|
+
"defaultValue": false,
|
|
160
|
+
"executeRpc": {
|
|
161
|
+
"method": "getState",
|
|
162
|
+
"requestTimeout": 5000,
|
|
163
|
+
"requestPersistent": false,
|
|
164
|
+
"persistentPollingInterval": 1000
|
|
165
|
+
},
|
|
166
|
+
"getAttribute": {
|
|
167
|
+
"scope": null,
|
|
168
|
+
"key": "state"
|
|
169
|
+
},
|
|
170
|
+
"getTimeSeries": {
|
|
171
|
+
"key": "state"
|
|
172
|
+
},
|
|
173
|
+
"getAlarmStatus": {
|
|
174
|
+
"severityList": [
|
|
175
|
+
"CRITICAL"
|
|
176
|
+
],
|
|
177
|
+
"typeList": null
|
|
178
|
+
},
|
|
179
|
+
"dataToValue": {
|
|
180
|
+
"type": "NONE",
|
|
181
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;",
|
|
182
|
+
"compareToValue": true
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"defaultSetValueSettings": null,
|
|
186
|
+
"defaultWidgetActionSettings": null
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"id": "criticalClick",
|
|
190
|
+
"name": "{i18n:scada.symbol.critical-click}",
|
|
191
|
+
"hint": "{i18n:scada.symbol.on-click-hint}",
|
|
192
|
+
"group": "{i18n:scada.symbol.critical-state}",
|
|
193
|
+
"type": "widgetAction",
|
|
194
|
+
"valueType": "BOOLEAN",
|
|
195
|
+
"trueLabel": null,
|
|
196
|
+
"falseLabel": null,
|
|
197
|
+
"stateLabel": null,
|
|
198
|
+
"defaultGetValueSettings": null,
|
|
199
|
+
"defaultSetValueSettings": null,
|
|
200
|
+
"defaultWidgetActionSettings": {
|
|
201
|
+
"type": "doNothing",
|
|
202
|
+
"targetDashboardStateId": null,
|
|
203
|
+
"openRightLayout": false,
|
|
204
|
+
"setEntityId": false,
|
|
205
|
+
"stateEntityParamName": null
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"id": "criticalAnimation",
|
|
210
|
+
"name": "{i18n:scada.symbol.warning-critical-state-animation}",
|
|
211
|
+
"hint": "{i18n:scada.symbol.warning-critical-state-animation-hint}",
|
|
212
|
+
"group": null,
|
|
213
|
+
"type": "value",
|
|
214
|
+
"valueType": "BOOLEAN",
|
|
215
|
+
"trueLabel": null,
|
|
216
|
+
"falseLabel": null,
|
|
217
|
+
"stateLabel": "{i18n:scada.symbol.animation}",
|
|
218
|
+
"defaultGetValueSettings": {
|
|
219
|
+
"action": "DO_NOTHING",
|
|
220
|
+
"defaultValue": false,
|
|
221
|
+
"executeRpc": {
|
|
222
|
+
"method": "getState",
|
|
223
|
+
"requestTimeout": 5000,
|
|
224
|
+
"requestPersistent": false,
|
|
225
|
+
"persistentPollingInterval": 1000
|
|
226
|
+
},
|
|
227
|
+
"getAttribute": {
|
|
228
|
+
"key": "state",
|
|
229
|
+
"scope": null
|
|
230
|
+
},
|
|
231
|
+
"getTimeSeries": {
|
|
232
|
+
"key": "state"
|
|
233
|
+
},
|
|
234
|
+
"dataToValue": {
|
|
235
|
+
"type": "NONE",
|
|
236
|
+
"compareToValue": true,
|
|
237
|
+
"dataToValueFunction": "/* Should return boolean value */\nreturn data;"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"defaultSetValueSettings": null,
|
|
241
|
+
"defaultWidgetActionSettings": null
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"id": "click",
|
|
245
|
+
"name": "{i18n:scada.symbol.on-click}",
|
|
246
|
+
"hint": "{i18n:scada.symbol.on-click-hint}",
|
|
247
|
+
"group": null,
|
|
248
|
+
"type": "widgetAction",
|
|
249
|
+
"valueType": "BOOLEAN",
|
|
250
|
+
"trueLabel": null,
|
|
251
|
+
"falseLabel": null,
|
|
252
|
+
"stateLabel": null,
|
|
253
|
+
"defaultGetValueSettings": null,
|
|
254
|
+
"defaultSetValueSettings": null,
|
|
255
|
+
"defaultWidgetActionSettings": {
|
|
256
|
+
"type": "doNothing",
|
|
257
|
+
"targetDashboardStateId": null,
|
|
258
|
+
"openRightLayout": false,
|
|
259
|
+
"setEntityId": false,
|
|
260
|
+
"stateEntityParamName": null
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"properties": [
|
|
265
|
+
{
|
|
266
|
+
"id": "runningColor",
|
|
267
|
+
"name": "{i18n:scada.symbol.colors}",
|
|
268
|
+
"type": "color",
|
|
269
|
+
"default": "#FFFFFF",
|
|
270
|
+
"required": null,
|
|
271
|
+
"subLabel": "{i18n:scada.symbol.running}",
|
|
272
|
+
"divider": true,
|
|
273
|
+
"fieldSuffix": null,
|
|
274
|
+
"disableOnProperty": null,
|
|
275
|
+
"rowClass": "",
|
|
276
|
+
"fieldClass": "",
|
|
277
|
+
"min": null,
|
|
278
|
+
"max": null,
|
|
279
|
+
"step": null
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"id": "stoppedColor",
|
|
283
|
+
"name": "{i18n:scada.symbol.colors}",
|
|
284
|
+
"type": "color",
|
|
285
|
+
"default": "#666666",
|
|
286
|
+
"required": null,
|
|
287
|
+
"subLabel": "{i18n:scada.symbol.stopped}",
|
|
288
|
+
"divider": null,
|
|
289
|
+
"fieldSuffix": null,
|
|
290
|
+
"disableOnProperty": null,
|
|
291
|
+
"rowClass": "",
|
|
292
|
+
"fieldClass": "",
|
|
293
|
+
"min": null,
|
|
294
|
+
"max": null,
|
|
295
|
+
"step": null
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"id": "warningColor",
|
|
299
|
+
"name": "{i18n:scada.symbol.alarm-colors}",
|
|
300
|
+
"type": "color",
|
|
301
|
+
"default": "#FAA405",
|
|
302
|
+
"required": null,
|
|
303
|
+
"subLabel": "{i18n:scada.symbol.warning}",
|
|
304
|
+
"divider": true,
|
|
305
|
+
"fieldSuffix": null,
|
|
306
|
+
"disableOnProperty": null,
|
|
307
|
+
"rowClass": "",
|
|
308
|
+
"fieldClass": "",
|
|
309
|
+
"min": null,
|
|
310
|
+
"max": null,
|
|
311
|
+
"step": null
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"id": "criticalColor",
|
|
315
|
+
"name": "{i18n:scada.symbol.alarm-colors}",
|
|
316
|
+
"type": "color",
|
|
317
|
+
"default": "#D12730",
|
|
318
|
+
"required": null,
|
|
319
|
+
"subLabel": "{i18n:scada.symbol.critical}",
|
|
320
|
+
"divider": null,
|
|
321
|
+
"fieldSuffix": null,
|
|
322
|
+
"disableOnProperty": null,
|
|
323
|
+
"rowClass": "",
|
|
324
|
+
"fieldClass": "",
|
|
325
|
+
"min": null,
|
|
326
|
+
"max": null,
|
|
327
|
+
"step": null
|
|
328
|
+
}
|
|
329
|
+
]
|
|
330
|
+
}]]></tb:metadata>
|
|
331
|
+
<g fill="#fff" stroke="#1a1a1a" stroke-width="2" tb:tag="background">
|
|
332
|
+
<path d="m999 1101h-518v98h518z"/>
|
|
333
|
+
<path d="m89 301h-88v38h88z"/>
|
|
334
|
+
<path d="m38.637 353.25c1.8257-2.795 3.0211-5.169 3.5801-7.616 0.4834-2.115 0.4778-4.225 0.0646-6.636h22.765c0.4236 2.76 0.5531 8.434-2.4543 17.437-1.0074 3.015-3.2478 5.918-6.1765 8.829-2.4452 2.43-5.2981 4.799-8.1981 7.207-0.57 0.473-1.1418 0.948-1.7126 1.425-3.4492 2.882-6.8589 5.843-9.4634 8.969s-4.4841 6.511-4.7352 10.25c-0.4781 7.123 1.5349 12.183 4.5904 15.755 3.0323 3.545 7.0211 5.546 10.381 6.711 2.6292 0.911 7.97 1.542 12.913-0.172 2.4934-0.865 4.9095-2.335 6.8093-4.687 1.9017-2.355 3.2394-5.537 3.6645-9.748 0.2685-2.66 0.4677-4.993 0.639-7.001 0.0914-1.07 0.1749-2.048 0.2566-2.933 0.2394-2.589 0.4634-4.351 0.8094-5.493 0.345-1.138 0.6919-1.294 0.9494-1.334 0.2122-0.033 0.5457-0.012 1.0684 0.146 0.5169 0.156 1.1513 0.424 1.9388 0.814 8.6238 4.272 11.837 11.217 12.524 18.027 0.6932 6.867-1.1952 13.571-2.7777 17.098-6.6047 14.722-20.145 23.7-37.326 23.7-10.333 0-18.218-1.819-24.553-5.103-6.3316-3.283-11.186-8.065-15.404-14.105-3.3703-4.826-6.7534-12.808-7.5927-21.713-0.83751-8.887 0.86149-18.628 7.5566-27.085 6.2949-7.951 12.501-11.818 17.718-14.561 0.9365-0.492 1.8598-0.957 2.7531-1.407 1.5646-0.788 3.0372-1.53 4.3284-2.291 2.0627-1.216 3.8384-2.576 5.0837-4.483z"/>
|
|
335
|
+
</g><path d="m559.64 1101-515.24-1098.3 341.87 221.97 538.94 876.28z" stroke="#1a1a1a" stroke-width="2"/><path d="m148 225h237" stroke="#1a1a1a" stroke-width="2"/><path d="m249 438h269" stroke="#1a1a1a" stroke-width="2"/><path d="m362 680h304" stroke="#1a1a1a" stroke-width="2"/><path d="m491 955h344" stroke="#1a1a1a" stroke-width="2"/><path d="m249 437.92 136.32-212.92" stroke="#1a1a1a" stroke-width="2"/><path d="m362 680.92 155.32-242.92" stroke="#1a1a1a" stroke-width="1.9997"/><path d="m492 954.92 175.31-274.92" stroke="#1a1a1a" stroke-width="2.0018"/><path d="m44 2v299" stroke="#1a1a1a" stroke-width="2"/><path d="m336.32 0s-336.32 0-336.32 201v985.08c0 7.9536 8.9545 13.921 20 13.921h960c11.045 0 20-5.9676 20-13.921v-985.08c0-201-330.35-201-330.35-201h-169.65zm335.35 243.6c-6.4435 0-11.667 3.7608-11.667 8.4v901.2c0 4.6392 5.2235 8.4 11.667 8.4h73.33c6.4435 0 11.667-3.7608 11.667-8.4v-901.2c0-4.6392-5.2235-8.4-11.667-8.4z" fill="#000" fill-opacity="0" tb:tag="clickArea"/><g fill="#d12730" style="display: none;" tb:tag="critical">
|
|
336
|
+
<rect width="84" height="84" rx="4" fill="#fff" style=""/>
|
|
337
|
+
<rect width="84" height="84" rx="4" style=""/>
|
|
338
|
+
<rect x="2" y="2" width="80" height="80" rx="2" stroke="#000" stroke-opacity=".87" stroke-width="4" style=""/>
|
|
339
|
+
<path d="m44.559 27.562-0.4688 20.059h-4.0234l-0.4883-20.059zm-5.1172 26.211c0-0.7161 0.2344-1.3151 0.7031-1.7968 0.4818-0.4948 1.1459-0.7422 1.9922-0.7422 0.8334 0 1.4909 0.2474 1.9727 0.7422 0.4817 0.4817 0.7226 1.0807 0.7226 1.7968 0 0.6901-0.2409 1.2826-0.7226 1.7774-0.4818 0.4818-1.1393 0.7226-1.9727 0.7226-0.8463 0-1.5104-0.2408-1.9922-0.7226-0.4687-0.4948-0.7031-1.0873-0.7031-1.7774z" fill="#000" fill-opacity=".87" style=""/>
|
|
340
|
+
</g><g fill="#faa405" style="display: none;" tb:tag="warning">
|
|
341
|
+
<path d="m38.422 7.1554c1.4741-2.9482 5.6813-2.9482 7.1554 0l35.528 71.056c1.3298 2.6596-0.6042 5.7889-3.5777 5.7889h-71.056c-2.9735 0-4.9075-3.1292-3.5777-5.7889z" fill="#fff" style=""/>
|
|
342
|
+
<path d="m38.422 7.1554c1.4741-2.9482 5.6813-2.9482 7.1554 0l35.528 71.056c1.3298 2.6596-0.6042 5.7889-3.5777 5.7889h-71.056c-2.9735 0-4.9075-3.1292-3.5777-5.7889z" style=""/>
|
|
343
|
+
<path d="m40.211 8.0498c0.7371-1.4741 2.8407-1.4741 3.5778-1e-5l35.528 71.056c0.6649 1.3298-0.3021 2.8944-1.7888 2.8944h-71.056c-1.4868 0-2.4538-1.5646-1.7889-2.8944z" stroke="#000" stroke-opacity=".87" stroke-width="4" style=""/>
|
|
344
|
+
<path d="m44.559 37.562-0.4688 20.059h-4.0234l-0.4883-20.059zm-5.1172 26.211c0-0.7161 0.2344-1.3151 0.7031-1.7968 0.4818-0.4948 1.1459-0.7422 1.9922-0.7422 0.8334 0 1.4909 0.2474 1.9727 0.7422 0.4817 0.4817 0.7226 1.0807 0.7226 1.7968 0 0.6901-0.2409 1.2826-0.7226 1.7774-0.4818 0.4818-1.1393 0.7226-1.9727 0.7226-0.8463 0-1.5104-0.2408-1.9922-0.7226-0.4687-0.4948-0.7031-1.0873-0.7031-1.7774z" fill="#000" fill-opacity=".87" style=""/>
|
|
345
|
+
</g>
|
|
346
|
+
</svg>
|