@ -43,7 +43,7 @@
},
},
{
{
"tag": "maxValue",
"tag": "maxValue",
"stateRenderFunction": "if (ctx.properties.minMaxValue) {\n ctx.api.text(element, ctx.properties.maxValue);\n}",
"stateRenderFunction": "if (ctx.properties.minMaxValue) {\n ctx.api.text(element, ctx.api.convertUnitValue(ctx. properties.maxValue, ctx.properties.units).toFixed(0) );\n}",
"actions": null
"actions": null
},
},
{
{
@ -53,7 +53,7 @@
},
},
{
{
"tag": "minValue",
"tag": "minValue",
"stateRenderFunction": "if (ctx.properties.minMaxValue) {\n ctx.api.text(element, ctx.properties.minValue);\n}",
"stateRenderFunction": "if (ctx.properties.minMaxValue) {\n ctx.api.text(element, ctx.api.convertUnitValue(ctx. properties.minValue, ctx.properties.units).toFixed(0) );\n}",
"actions": null
"actions": null
},
},
{
{
@ -73,12 +73,12 @@
},
},
{
{
"tag": "units",
"tag": "units",
"stateRenderFunction": "if (ctx.properties.showUnits) {\n element.show();\n ctx.api.font(element, ctx.properties.unitsFont, ctx.properties.unitsColor);\n ctx.api.text(element, ctx.properties.units);\n} else {\n element.hide();\n}",
"stateRenderFunction": "if (ctx.properties.showUnits) {\n element.show();\n ctx.api.font(element, ctx.properties.unitsFont, ctx.properties.unitsColor);\n ctx.api.text(element, ctx.api.unitSymbol(ctx. properties.units) );\n} else {\n element.hide();\n}",
"actions": null
"actions": null
},
},
{
{
"tag": "value",
"tag": "value",
"stateRenderFunction": "if (ctx.properties.value) {\n element.show();\n ctx.api.font(element, ctx.properties.valueFont, ctx.properties.valueColor);\n ctx.api.text(element, ctx.api.formatValue(ctx.values.value, ctx.properties.valueDecimals, null, ctx.properties.valueDecimals ));\n} else {\n element.hide();\n}",
"stateRenderFunction": "if (ctx.properties.value) {\n element.show();\n ctx.api.font(element, ctx.properties.valueFont, ctx.properties.valueColor);\n ctx.api.text(element, ctx.api.formatValue(ctx.values.value, {units: ctx.properties.units, decimals: ctx.properties.valueDecimals, ignoreUnitSymbol: true} ));\n} else {\n element.hide();\n}",
"actions": null
"actions": null
},
},
{
{
@ -193,16 +193,8 @@
"name": "{i18n:scada.symbol.min-max-value}",
"name": "{i18n:scada.symbol.min-max-value}",
"type": "switch",
"type": "switch",
"default": false,
"default": false,
"required": null,
"disabled": false,
"subLabel": null,
"visible": true
"divider": null,
"fieldSuffix": null,
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "minValue",
"id": "minValue",
@ -211,14 +203,9 @@
"default": 0,
"default": 0,
"required": true,
"required": true,
"subLabel": "{i18n:scada.symbol.min-value}",
"subLabel": "{i18n:scada.symbol.min-value}",
"divider": null,
"step": 1,
"fieldSuffix": null,
"disabled": false,
"disableOnProperty": null,
"visible": true
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": 1
},
},
{
{
"id": "maxValue",
"id": "maxValue",
@ -227,158 +214,89 @@
"default": 100,
"default": 100,
"required": true,
"required": true,
"subLabel": "{i18n:scada.symbol.max-value}",
"subLabel": "{i18n:scada.symbol.max-value}",
"divider": null,
"step": 1,
"fieldSuffix": null,
"disabled": false,
"disableOnProperty": null,
"visible": true
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": 1
},
},
{
{
"id": "showHighCriticalScale",
"id": "showHighCriticalScale",
"name": "{i18n:scada.symbol.high-critical-scale}",
"name": "{i18n:scada.symbol.high-critical-scale}",
"type": "switch",
"type": "switch",
"default": true,
"default": true,
"required": null,
"disabled": false,
"subLabel": null,
"visible": true
"divider": null,
"fieldSuffix": null,
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "highCriticalScale",
"id": "highCriticalScale",
"name": "{i18n:scada.symbol.high-critical-scale}",
"name": "{i18n:scada.symbol.high-critical-scale}",
"type": "number",
"type": "number",
"default": 85,
"default": 85,
"required": null,
"subLabel": "",
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "showHighCriticalScale",
"disableOnProperty": "showHighCriticalScale",
"rowClass": "",
"step": 1,
"fieldClass": "",
"disabled": false,
"min": null,
"visible": true
"max": null,
"step": 1
},
},
{
{
"id": "showHighWarningScale",
"id": "showHighWarningScale",
"name": "{i18n:scada.symbol.high-warning-scale}",
"name": "{i18n:scada.symbol.high-warning-scale}",
"type": "switch",
"type": "switch",
"default": true,
"default": true,
"required": null,
"disabled": false,
"subLabel": null,
"visible": true
"divider": null,
"fieldSuffix": null,
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "highWarningScale",
"id": "highWarningScale",
"name": "{i18n:scada.symbol.high-warning-scale}",
"name": "{i18n:scada.symbol.high-warning-scale}",
"type": "number",
"type": "number",
"default": 70,
"default": 70,
"required": null,
"subLabel": "",
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "showHighWarningScale",
"disableOnProperty": "showHighWarningScale",
"rowClass": "",
"step": 1,
"fieldClass": "",
"disabled": false,
"min": null,
"visible": true
"max": null,
"step": 1
},
},
{
{
"id": "showLowWarningScale",
"id": "showLowWarningScale",
"name": "{i18n:scada.symbol.low-warning-scale}",
"name": "{i18n:scada.symbol.low-warning-scale}",
"type": "switch",
"type": "switch",
"default": true,
"default": true,
"required": null,
"disabled": false,
"subLabel": null,
"visible": true
"divider": null,
"fieldSuffix": null,
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "lowWarningScale",
"id": "lowWarningScale",
"name": "{i18n:scada.symbol.low-warning-scale}",
"name": "{i18n:scada.symbol.low-warning-scale}",
"type": "number",
"type": "number",
"default": 30,
"default": 30,
"required": null,
"subLabel": "",
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "showLowWarningScale",
"disableOnProperty": "showLowWarningScale",
"rowClass": "",
"step": 1,
"fieldClass": "",
"disabled": false,
"min": null,
"visible": true
"max": null,
"step": 1
},
},
{
{
"id": "showLowCriticalScale",
"id": "showLowCriticalScale",
"name": "{i18n:scada.symbol.low-critical-scale}",
"name": "{i18n:scada.symbol.low-critical-scale}",
"type": "switch",
"type": "switch",
"default": true,
"default": true,
"required": null,
"disabled": false,
"subLabel": null,
"visible": true
"divider": null,
"fieldSuffix": null,
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "lowCriticalScale",
"id": "lowCriticalScale",
"name": "{i18n:scada.symbol.low-critical-scale}",
"name": "{i18n:scada.symbol.low-critical-scale}",
"type": "number",
"type": "number",
"default": 15,
"default": 15,
"required": null,
"subLabel": "",
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "showLowCriticalScale",
"disableOnProperty": "showLowCriticalScale",
"rowClass": "",
"step": 1,
"fieldClass": "",
"disabled": false,
"min": null,
"visible": true
"max": null,
"step": 1
},
},
{
{
"id": "value",
"id": "value",
"name": "{i18n:scada.symbol.value}",
"name": "{i18n:scada.symbol.value}",
"type": "switch",
"type": "switch",
"default": true,
"default": true,
"required": null,
"disabled": false,
"subLabel": null,
"visible": true
"divider": null,
"fieldSuffix": null,
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "valueDecimals",
"id": "valueDecimals",
@ -387,14 +305,12 @@
"default": 0,
"default": 0,
"required": true,
"required": true,
"subLabel": "Decimals",
"subLabel": "Decimals",
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "value",
"disableOnProperty": "value",
"rowClass": "",
"fieldClass": "",
"min": 0,
"min": 0,
"max": 10,
"max": 10,
"step": 1
"step": 1,
"disabled": false,
"visible": true
},
},
{
{
"id": "valueFont",
"id": "valueFont",
@ -407,64 +323,36 @@
"weight": "400",
"weight": "400",
"style": "normal"
"style": "normal"
},
},
"required": null,
"subLabel": null,
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "value",
"disableOnProperty": "value",
"rowClass": "",
"disabled": false,
"fieldClass": "",
"visible": true
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "valueColor",
"id": "valueColor",
"name": "{i18n:scada.symbol.value}",
"name": "{i18n:scada.symbol.value}",
"type": "color",
"type": "color",
"default": "#002878",
"default": "#002878",
"required": null,
"subLabel": null,
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "value",
"disableOnProperty": "value",
"rowClass": "",
"disabled": false,
"fieldClass": "",
"visible": true
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "label",
"id": "label",
"name": "{i18n:scada.symbol.label}",
"name": "{i18n:scada.symbol.label}",
"type": "switch",
"type": "switch",
"default": true,
"default": true,
"required": null,
"disabled": false,
"subLabel": null,
"visible": true
"divider": null,
"fieldSuffix": null,
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "labelText",
"id": "labelText",
"name": "{i18n:scada.symbol.label}",
"name": "{i18n:scada.symbol.label}",
"type": "text",
"type": "text",
"default": "Outdoor",
"default": "Outdoor",
"required": null,
"subLabel": null,
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "label",
"disableOnProperty": "label",
"rowClass": "",
"fieldClass": "flex",
"fieldClass": "flex",
"min": null,
"disabled": false,
"max": null,
"visible": true
"step": null
},
},
{
{
"id": "labelFont",
"id": "labelFont",
@ -477,64 +365,35 @@
"weight": "500",
"weight": "500",
"style": "normal"
"style": "normal"
},
},
"required": null,
"subLabel": null,
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "label",
"disableOnProperty": "label",
"rowClass": "",
"disabled": false,
"fieldClass": "",
"visible": true
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "labelColor",
"id": "labelColor",
"name": "{i18n:scada.symbol.label}",
"name": "{i18n:scada.symbol.label}",
"type": "color",
"type": "color",
"default": "#000000DE",
"default": "#000000DE",
"required": null,
"subLabel": null,
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "label",
"disableOnProperty": "label",
"rowClass": "",
"disabled": false,
"fieldClass": "",
"visible": true
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "showUnits",
"id": "showUnits",
"name": "{i18n:scada.symbol.units}",
"name": "{i18n:scada.symbol.units}",
"type": "switch",
"type": "switch",
"default": true,
"default": true,
"required": null,
"disabled": false,
"subLabel": null,
"visible": true
"divider": null,
"fieldSuffix": null,
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "units",
"id": "units",
"name": "{i18n:scada.symbol.units}",
"name": "{i18n:scada.symbol.units}",
"type": "units",
"type": "units",
"default": "°C",
"default": "°C",
"required": null,
"supportsUnitConversion": true,
"subLabel": null,
"disabled": false,
"divider": null,
"visible": true
"fieldSuffix": null,
"disableOnProperty": "showUnits",
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "unitsFont",
"id": "unitsFont",
@ -547,160 +406,87 @@
"weight": "500",
"weight": "500",
"style": "normal"
"style": "normal"
},
},
"required": null,
"subLabel": null,
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "showUnits",
"disableOnProperty": "showUnits",
"rowClass": "",
"disabled": false,
"fieldClass": "",
"visible": true
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "unitsColor",
"id": "unitsColor",
"name": "{i18n:scada.symbol.units}",
"name": "{i18n:scada.symbol.units}",
"type": "color",
"type": "color",
"default": "#000000DE",
"default": "#000000DE",
"required": null,
"subLabel": null,
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "showUnits",
"disableOnProperty": "showUnits",
"rowClass": "",
"disabled": false,
"fieldClass": "",
"visible": true
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "arrowColor",
"id": "arrowColor",
"name": "{i18n:scada.symbol.arrow-color}",
"name": "{i18n:scada.symbol.arrow-color}",
"type": "color",
"type": "color",
"default": "#666666",
"default": "#666666",
"required": null,
"disabled": false,
"subLabel": null,
"visible": true
"divider": null,
"fieldSuffix": null,
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "showTarget",
"id": "showTarget",
"name": "{i18n:scada.symbol.target}",
"name": "{i18n:scada.symbol.target}",
"type": "switch",
"type": "switch",
"default": false,
"default": false,
"required": null,
"disabled": false,
"subLabel": null,
"visible": true
"divider": null,
"fieldSuffix": null,
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "targetColor",
"id": "targetColor",
"name": "{i18n:scada.symbol.target}",
"name": "{i18n:scada.symbol.target}",
"type": "color",
"type": "color",
"default": "#DEDEDE",
"default": "#DEDEDE",
"required": null,
"subLabel": null,
"divider": null,
"fieldSuffix": null,
"disableOnProperty": "showTarget",
"disableOnProperty": "showTarget",
"rowClass": "",
"disabled": true,
"fieldClass": "",
"visible": true
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "scaleColor",
"id": "scaleColor",
"name": "{i18n:scada.symbol.scale-color}",
"name": "{i18n:scada.symbol.scale-color}",
"type": "color",
"type": "color",
"default": "#C8DFF7",
"default": "#C8DFF7",
"required": null,
"disabled": false,
"subLabel": null,
"visible": true
"divider": null,
"fieldSuffix": null,
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "defaultWarningScaleColor",
"id": "defaultWarningScaleColor",
"name": "{i18n:scada.symbol.warning-scale-color}",
"name": "{i18n:scada.symbol.warning-scale-color}",
"type": "color",
"type": "color",
"default": "#EBEBEB",
"default": "#EBEBEB",
"required": null,
"subLabel": "Default",
"subLabel": "Default",
"divider": null,
"disabled": false,
"fieldSuffix": null,
"visible": true
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "activeWarningScaleColor",
"id": "activeWarningScaleColor",
"name": "{i18n:scada.symbol.warning-scale-color}",
"name": "{i18n:scada.symbol.warning-scale-color}",
"type": "color",
"type": "color",
"default": "#FAA405",
"default": "#FAA405",
"required": null,
"subLabel": "Active",
"subLabel": "Active",
"divider": null,
"disabled": false,
"fieldSuffix": null,
"visible": true
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "defaultCriticalScaleColor",
"id": "defaultCriticalScaleColor",
"name": "{i18n:scada.symbol.critical-scale-color}",
"name": "{i18n:scada.symbol.critical-scale-color}",
"type": "color",
"type": "color",
"default": "#666666",
"default": "#666666",
"required": null,
"subLabel": "Default",
"subLabel": "Default",
"divider": null,
"disabled": false,
"fieldSuffix": null,
"visible": true
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
},
},
{
{
"id": "activeCriticalScaleColor",
"id": "activeCriticalScaleColor",
"name": "{i18n:scada.symbol.critical-scale-color}",
"name": "{i18n:scada.symbol.critical-scale-color}",
"type": "color",
"type": "color",
"default": "#D12730",
"default": "#D12730",
"required": null,
"subLabel": "Active",
"subLabel": "Active",
"divider": null,
"disabled": false,
"fieldSuffix": null,
"visible": true
"disableOnProperty": null,
"rowClass": "",
"fieldClass": "",
"min": null,
"max": null,
"step": null
}
}
]
]
}]]></tb:metadata>
}]]></tb:metadata>