This commit is contained in:
beka makharadze 2025-07-08 19:49:55 +04:00
parent 40aed9c7cf
commit 49a39bc0d4
4 changed files with 416 additions and 1381 deletions

View File

@ -25,7 +25,7 @@
"props": { "props": {
"defaultSize": { "defaultSize": {
"height": 50, "height": 50,
"width": 300 "width": 396
} }
}, },
"root": { "root": {
@ -35,7 +35,7 @@
"component": { "component": {
"onActionPerformed": { "onActionPerformed": {
"config": { "config": {
"script": "\ttags_to_read \u003d system.tag.readBlocking([\"Configuration/FC\"])\n\twhid \u003d tags_to_read[0].value\n\tid \u003d self.view.params.value.tagProps[0]\n\tcommandTarget\u003dstr(id)+\"/0\"#PLC01/0 --\u003etarget is the plc\n\tcommandParams\u003d\"\"\n\tif whid\u003d\u003d\"MAN2\" or whid\u003d\u003d\"BRS1\" or whid\u003d\u003d\"MAD6\":\n\t\tcommandTarget\u003d\"databridge/0\"\n\t\tcommandParams\u003d\"PLC\u003d\"+str(id)#this tells the target to data bridge\n\taction \u003d 1\n\tparameters\u003d{\"commandTarget\":commandTarget,\n\t\t\t\t\"commandCode\":1,\n\t\t\t\t\"commandTimestamp\":system.date.toMillis(system.date.now()),\n\t\t\t\t\"commandParams\":commandParams}\n\tCommands.button_commands.send_request(whid, action, parameters)" "script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Start_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
}, },
"scope": "G", "scope": "G",
"type": "script" "type": "script"
@ -56,7 +56,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if({this.props.enabled},\u0027Start \u0027 + {view.params.value.tagProps[0]},\"Re-Authentication Required - Press \u0027Enable Controls\u0027 button and re-enter password\")" "expression": "if({this.props.enabled},\u0027Start \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
}, },
"type": "expr" "type": "expr"
} }
@ -64,7 +64,7 @@
"props.enabled": { "props.enabled": {
"binding": { "binding": {
"config": { "config": {
"expression": "{session.custom.command_auth.enabled} \u0026\u0026 {parent.custom.has_role}" "expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
}, },
"type": "expr" "type": "expr"
} }
@ -119,7 +119,7 @@
"component": { "component": {
"onActionPerformed": { "onActionPerformed": {
"config": { "config": {
"script": "\ttags_to_read \u003d system.tag.readBlocking([\"Configuration/FC\"])\n\twhid \u003d tags_to_read[0].value\n\tid \u003d self.view.params.value.tagProps[0]\n\tcommandTarget\u003dstr(id)+\"/0\"#PLC01/0 --\u003etarget is the plc\n\tcommandParams\u003d\"\"\n\tif whid\u003d\u003d\"MAN2\" or whid\u003d\u003d\"BRS1\" or whid\u003d\u003d\"MAD6\":\n\t\tcommandTarget\u003d\"databridge/0\"\n\t\tcommandParams\u003d\"PLC\u003d\"+str(id)#this tells the target to data bridge\n\taction \u003d 3\n\tparameters\u003d{\"commandTarget\":commandTarget,\n\t\t\t\t\"commandCode\":3,\n\t\t\t\t\"commandTimestamp\":system.date.toMillis(system.date.now()),\n\t\t\t\t\"commandParams\":commandParams}\n\tCommands.button_commands.send_request(whid, action, parameters)" "script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Stop_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
}, },
"scope": "G", "scope": "G",
"type": "script" "type": "script"
@ -127,7 +127,7 @@
} }
}, },
"meta": { "meta": {
"name": "Reset", "name": "Stop",
"tooltip": { "tooltip": {
"enabled": true, "enabled": true,
"location": "top-left" "location": "top-left"
@ -140,7 +140,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if({this.props.enabled},\u0027Reset \u0027 + {view.params.value.tagProps[0]},\"Re-Authentication Required - Press \u0027Enable Controls\u0027 button and re-enter password\") " "expression": "if({this.props.enabled},\u0027Stop \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
}, },
"type": "expr" "type": "expr"
} }
@ -148,7 +148,91 @@
"props.enabled": { "props.enabled": {
"binding": { "binding": {
"config": { "config": {
"expression": "{session.custom.command_auth.enabled} \u0026\u0026 {parent.custom.has_role}" "expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
},
"type": "expr"
}
},
"props.image.icon.color": {
"binding": {
"config": {
"expression": "if({this.props.enabled},\u0027#4A4A4A\u0027,\u0027#979797\u0027)"
},
"type": "expr"
}
},
"props.style.borderStyle": {
"binding": {
"config": {
"expression": "if({this.props.enabled},\u0027solid\u0027,\u0027none\u0027)"
},
"type": "expr"
}
}
},
"props": {
"image": {
"height": 32,
"icon": {
"path": "material/stop_circle"
},
"position": "top",
"width": 32
},
"style": {
"backgroundColor": "#D4D4D4",
"borderColor": "#4A4A4A",
"borderWidth": 2,
"classes": "\n",
"marginBottom": 5,
"marginLeft": 5,
"marginRight": 5,
"marginTop": 5
},
"text": "",
"textStyle": {
"fontSize": 12,
"fontWeight": "bold",
"textAlign": "center"
}
},
"type": "ia.input.button"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Motor_Fault_Reset_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "MotorFaultReset",
"tooltip": {
"enabled": true,
"location": "top-left"
}
},
"position": {
"basis": "80px"
},
"propConfig": {
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "if({this.props.enabled},\u0027Motor Fault Reset \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
},
"type": "expr"
}
},
"props.enabled": {
"binding": {
"config": {
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
}, },
"type": "expr" "type": "expr"
} }
@ -199,6 +283,185 @@
"type": "ia.input.button" "type": "ia.input.button"
}, },
{ {
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Power_Branch_Fault_Reset_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "PowerBranchFaultReset",
"tooltip": {
"enabled": true,
"location": "top-left"
}
},
"position": {
"basis": "80px"
},
"propConfig": {
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "if({this.props.enabled},\u0027Power Branch Fault Reset \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
},
"type": "expr"
}
},
"props.enabled": {
"binding": {
"config": {
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
},
"type": "expr"
}
},
"props.image.icon.color": {
"binding": {
"config": {
"expression": "if({this.props.enabled},\u0027#4A4A4A\u0027,\u0027#979797\u0027)"
},
"type": "expr"
}
},
"props.style.borderStyle": {
"binding": {
"config": {
"expression": "if({this.props.enabled},\u0027solid\u0027,\u0027none\u0027)"
},
"type": "expr"
}
}
},
"props": {
"image": {
"height": 32,
"icon": {
"path": "material/power"
},
"position": "top",
"width": 32
},
"style": {
"backgroundColor": "#D4D4D4",
"borderColor": "#4A4A4A",
"borderWidth": 2,
"classes": "\n",
"marginBottom": 5,
"marginLeft": 5,
"marginRight": 5,
"marginTop": 5
},
"text": "",
"textStyle": {
"fontSize": 12,
"fontWeight": "bold",
"textAlign": "center"
}
},
"type": "ia.input.button"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Low_Air_Pressure_Reset_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "LowAirPressureReset",
"tooltip": {
"enabled": true,
"location": "top-left"
}
},
"position": {
"basis": "80px"
},
"propConfig": {
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "if({this.props.enabled},\u0027Low Air Pressure Reset \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
},
"type": "expr"
}
},
"props.enabled": {
"binding": {
"config": {
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
},
"type": "expr"
}
},
"props.image.icon.color": {
"binding": {
"config": {
"expression": "if({this.props.enabled},\u0027#4A4A4A\u0027,\u0027#979797\u0027)"
},
"type": "expr"
}
},
"props.style.borderStyle": {
"binding": {
"config": {
"expression": "if({this.props.enabled},\u0027solid\u0027,\u0027none\u0027)"
},
"type": "expr"
}
}
},
"props": {
"image": {
"height": 32,
"icon": {
"path": "material/waves"
},
"position": "top",
"width": 32
},
"style": {
"backgroundColor": "#D4D4D4",
"borderColor": "#4A4A4A",
"borderWidth": 2,
"classes": "\n",
"marginBottom": 5,
"marginLeft": 5,
"marginRight": 5,
"marginTop": 5
},
"text": "",
"textStyle": {
"fontSize": 12,
"fontWeight": "bold",
"textAlign": "center"
}
},
"type": "ia.input.button"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Jam_Restart_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
},
"scope": "G",
"type": "script"
}
}
},
"meta": { "meta": {
"name": "JAM_Reset", "name": "JAM_Reset",
"tooltip": { "tooltip": {
@ -213,7 +476,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if({this.props.enabled},\u0027Jam Reset \u0027 + {view.params.value.tagProps[0]},\"Re-Authentication Required - Press \u0027Enable Controls\u0027 button and re-enter password\")" "expression": "if({this.props.enabled},\u0027Jam Reset \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
}, },
"type": "expr" "type": "expr"
} }
@ -221,7 +484,7 @@
"props.enabled": { "props.enabled": {
"binding": { "binding": {
"config": { "config": {
"expression": "{session.custom.command_auth.enabled} \u0026\u0026 {parent.custom.has_role}" "expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
}, },
"type": "expr" "type": "expr"
} }
@ -276,7 +539,7 @@
"component": { "component": {
"onActionPerformed": { "onActionPerformed": {
"config": { "config": {
"script": "\ttags_to_read \u003d system.tag.readBlocking([\"Configuration/FC\"])\n\twhid \u003d tags_to_read[0].value\n\tid \u003d self.view.params.value.tagProps[0]\n\tcommandTarget\u003dstr(id)+\"/0\"#PLC01/0 --\u003etarget is the plc\n\tcommandParams\u003d\"\"\n\tif whid\u003d\u003d\"MAN2\" or whid\u003d\u003d\"BRS1\" or whid\u003d\u003d\"MAD6\":\n\t\tcommandTarget\u003d\"databridge/0\"\n\t\tcommandParams\u003d\"PLC\u003d\"+str(id)#this tells the target to data bridge\n\taction \u003d 2\n\tparameters\u003d{\"commandTarget\":commandTarget,\n\t\t\t\t\"commandCode\":2,\n\t\t\t\t\"commandTimestamp\":system.date.toMillis(system.date.now()),\n\t\t\t\t\"commandParams\":commandParams}\n\tCommands.button_commands.send_request(whid, action, parameters)" "script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Setup_Motor_Speeds\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
}, },
"scope": "G", "scope": "G",
"type": "script" "type": "script"
@ -284,7 +547,7 @@
} }
}, },
"meta": { "meta": {
"name": "Stop", "name": "SetupMotorSpeeds",
"tooltip": { "tooltip": {
"enabled": true, "enabled": true,
"location": "top-left" "location": "top-left"
@ -297,7 +560,7 @@
"meta.tooltip.text": { "meta.tooltip.text": {
"binding": { "binding": {
"config": { "config": {
"expression": "if({this.props.enabled},\u0027Stop \u0027 + {view.params.value.tagProps[0]},\"Re-Authentication Required - Press \u0027Enable Controls\u0027 button and re-enter password\") " "expression": "if({this.props.enabled},\u0027Setup Motor Speeds \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
}, },
"type": "expr" "type": "expr"
} }
@ -305,7 +568,7 @@
"props.enabled": { "props.enabled": {
"binding": { "binding": {
"config": { "config": {
"expression": "{session.custom.command_auth.enabled} \u0026\u0026 {parent.custom.has_role}" "expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
}, },
"type": "expr" "type": "expr"
} }
@ -331,7 +594,7 @@
"image": { "image": {
"height": 32, "height": 32,
"icon": { "icon": {
"path": "material/stop_circle" "path": "material/speed"
}, },
"position": "top", "position": "top",
"width": 32 "width": 32

View File

@ -1,9 +1,42 @@
{ {
"custom": {}, "custom": {
"state": {
"$": [
"ds",
192,
1751989690818
],
"$columns": [
{
"data": [
null
],
"name": "Location",
"type": "String"
},
{
"data": [
"Low"
],
"name": "Priority",
"type": "String"
},
{
"data": [
1
],
"name": "Count",
"type": "Long"
}
]
},
"status": ""
},
"params": { "params": {
"key": "value",
"value": { "value": {
"tagProps": [ "tagProps": [
"", "value",
"value", "value",
"value", "value",
"value", "value",
@ -17,6 +50,30 @@
} }
}, },
"propConfig": { "propConfig": {
"custom.state": {
"binding": {
"config": {
"polling": {
"enabled": true,
"rate": "1"
},
"queryPath": "GetActiveAlarmsByLocationAndPriority"
},
"type": "query"
},
"onChange": {
"enabled": null,
"script": "\tMCM \u003d self.params.value.tagProps[0]\n\t\n\tqueryData \u003d currentValue.value\n\t\n\tif not queryData:\n\t\tself.custom.status \u003d \"Healty\"\n\t\n\t# Define priority order from highest to lowest\n\tpriority_order \u003d [\"Critical\", \"High\", \"Medium\", \"Low\", \"Diagnostic\"]\n\t\n\t# Set to store which priorities exist for the given MCM\n\texisting_priorities \u003d set()\n\t\n\tmyPriority \u003d \"\"\n\t\n\t# Populate the set\n\tfor row in range(queryData.rowCount):\n\t mcm_val \u003d queryData.getValueAt(row, 0)\n\t severity \u003d queryData.getValueAt(row, 1).capitalize()\n\t count \u003d queryData.getValueAt(row, 2)\n\t\n\t if mcm_val \u003d\u003d MCM and count \u003e 0:\n\t existing_priorities.add(severity)\n\t\n\t# Find the highest one that exists\n\tfor priority in priority_order:\n\t if priority in existing_priorities:\n\t myPriority \u003d priority\n\t\n\tself.custom.status \u003d myPriority"
},
"persistent": true
},
"custom.status": {
"persistent": true
},
"params.key": {
"paramDirection": "input",
"persistent": true
},
"params.value": { "params.value": {
"paramDirection": "input", "paramDirection": "input",
"persistent": true "persistent": true
@ -35,7 +92,7 @@
"dom": { "dom": {
"onClick": { "onClick": {
"config": { "config": {
"script": "\tnavigation.navigate_to_page.detailed_view(self, self.view.params.value.tagProps[0],self.view.params.value.tagProps[0], self.view.params.value.tagProps[3])" "script": "#\tnavigation.navigate_to_page.detailed_view(self, self.view.params.value.tagProps[0],self.view.params.value.tagProps[0], self.view.params.value.tagProps[3])"
}, },
"scope": "G", "scope": "G",
"type": "script" "type": "script"
@ -49,59 +106,35 @@
"grow": 1 "grow": 1
}, },
"propConfig": { "propConfig": {
"custom.status": {
"binding": {
"config": {
"path": "/root.custom.status"
},
"type": "property"
}
},
"props.style.classes": { "props.style.classes": {
"binding": { "binding": {
"config": { "config": {
"path": "this.custom.status" "path": "view.custom.status"
}, },
"transforms": [ "transforms": [
{ {
"fallback": "State-Styles/State0", "fallback": "State-Styles/Background-Fill/State5",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": "High",
"output": "State-Styles/Background-Fill/State1" "output": "State-Styles/Background-Fill/State1"
}, },
{ {
"input": 2, "input": "Medium",
"output": "State-Styles/Background-Fill/State2" "output": "State-Styles/Background-Fill/State2"
}, },
{ {
"input": 3, "input": "Low",
"output": "State-Styles/Background-Fill/State3" "output": "State-Styles/Background-Fill/State3"
}, },
{ {
"input": 4, "input": "Diagnostic",
"output": "State-Styles/Background-Fill/State4" "output": "State-Styles/Background-Fill/State4"
},
{
"input": 5,
"output": "State-Styles/Background-Fill/State5"
},
{
"input": 6,
"output": "State-Styles/Background-Fill/State6"
},
{
"input": 0,
"output": "State-Styles/State0"
} }
], ],
"outputType": "style-list", "outputType": "style-list",
"type": "map" "type": "map"
},
{
"expression": "if({session.custom.colours.colour_impaired},{value}+\u0027_Alt\u0027,{value})",
"type": "expression"
} }
], ],
"type": "property" "type": "property"
@ -110,36 +143,28 @@
"props.text": { "props.text": {
"binding": { "binding": {
"config": { "config": {
"path": "this.custom.status" "path": "view.custom.status"
}, },
"transforms": [ "transforms": [
{ {
"fallback": null, "fallback": "HEALTHY",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 5, "input": "Diagnostic",
"output": "HEALTHY"
},
{
"input": 4,
"output": "DIAGNOSTIC" "output": "DIAGNOSTIC"
}, },
{ {
"input": 3, "input": "Low",
"output": "PROCESS DEGRADED" "output": "HALF WORKFLOW"
}, },
{ {
"input": 2, "input": "Medium",
"output": "STOPPED" "output": "CONTROLLED STOP"
}, },
{ {
"input": 1, "input": "High",
"output": "FAULTED" "output": "UNCONTROLLED STOP"
},
{
"input": 6,
"output": null
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -184,54 +209,6 @@
"type": "expr" "type": "expr"
} }
}, },
"custom.status": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.value.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/ALARMST"
},
"transforms": [
{
"expression": "if(isNull({value}), 0, {value})",
"type": "expression"
},
{
"fallback": null,
"inputType": "scalar",
"mappings": [
{
"input": 4,
"output": 1
},
{
"input": 3,
"output": 2
},
{
"input": 2,
"output": 3
},
{
"input": 1,
"output": 4
},
{
"input": 0,
"output": 5
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
},
"custom.tag_path_to_lookup": { "custom.tag_path_to_lookup": {
"binding": { "binding": {
"config": { "config": {

View File

@ -208,146 +208,43 @@
"type": "ia.display.label" "type": "ia.display.label"
}, },
{ {
"events": {
"dom": {
"onClick": {
"config": {
"script": "\tself.session.custom.covert\u003d False\n\tnavigation.navigate_to_page.detailed_view(self, self.view.params.tagProps[0],self.view.params.tagProps[0], self.view.params.tagProps[3])"
},
"enabled": false,
"scope": "G",
"type": "script"
}
}
},
"meta": { "meta": {
"name": "Label" "name": "EmbeddedView"
}, },
"position": { "position": {
"basis": "236px" "basis": "200px"
}, },
"propConfig": { "propConfig": {
"custom.status": { "props.params.value.tagProps[0]": {
"binding": { "binding": {
"config": { "config": {
"path": "/root.custom.status" "expression": "{view.params.tagProps[0]}"
}, },
"type": "property" "type": "expr"
}
},
"props.style.classes": {
"binding": {
"config": {
"path": "this.custom.status"
},
"transforms": [
{
"fallback": "State-Styles/State0",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "State-Styles/Background-Fill/State1"
},
{
"input": 2,
"output": "State-Styles/Background-Fill/State2"
},
{
"input": 3,
"output": "State-Styles/Background-Fill/State3"
},
{
"input": 4,
"output": "State-Styles/Background-Fill/State4"
},
{
"input": 5,
"output": "State-Styles/Background-Fill/State5"
},
{
"input": 6,
"output": "State-Styles/Background-Fill/State6"
},
{
"input": 0,
"output": "State-Styles/State0"
}
],
"outputType": "style-list",
"type": "map"
},
{
"expression": "if({session.custom.colours.colour_impaired},{value}+\u0027_Alt\u0027,{value})",
"type": "expression"
}
],
"type": "property"
}
},
"props.text": {
"binding": {
"config": {
"path": "this.custom.status"
},
"transforms": [
{
"fallback": null,
"inputType": "scalar",
"mappings": [
{
"input": 5,
"output": "HEALTHY"
},
{
"input": 4,
"output": "DIAGNOSTIC"
},
{
"input": 3,
"output": "PROCESS DEGRADED"
},
{
"input": 2,
"output": "STOPPED"
},
{
"input": 1,
"output": "FAULTED"
},
{
"input": 6,
"output": null
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
} }
} }
}, },
"props": { "props": {
"style": { "params": {
"borderBottomLeftRadius": 5, "key": "value",
"borderBottomRightRadius": 5, "value": {
"borderColor": "#555555", "tagProps": [
"borderStyle": "solid", null,
"borderTopLeftRadius": 5, "value",
"borderTopRightRadius": 5, "value",
"borderWidth": 2, "value",
"marginBottom": 10, "value",
"marginLeft": 50, "value",
"marginRight": 10, "value",
"marginTop": 10 "value",
}, "value",
"textStyle": { "value"
"fontSize": 12, ]
"textAlign": "center"
} }
}, },
"type": "ia.display.label" "path": "Symbol-Views/Controller-Views/CommandControlStatus"
},
"type": "ia.display.view"
} }
], ],
"meta": { "meta": {
@ -357,6 +254,7 @@
"basis": "80px" "basis": "80px"
}, },
"props": { "props": {
"justify": "space-around",
"style": { "style": {
"borderBottomColor": "#555555", "borderBottomColor": "#555555",
"borderBottomStyle": "solid", "borderBottomStyle": "solid",
@ -530,7 +428,7 @@
"basis": "32px" "basis": "32px"
}, },
"props": { "props": {
"text": 2, "text": 0,
"textStyle": { "textStyle": {
"fontSize": 10, "fontSize": 10,
"textAlign": "center" "textAlign": "center"
@ -588,7 +486,7 @@
"basis": "32px" "basis": "32px"
}, },
"props": { "props": {
"text": 3, "text": 0,
"textStyle": { "textStyle": {
"fontSize": 10, "fontSize": 10,
"textAlign": "center" "textAlign": "center"
@ -617,7 +515,7 @@
"basis": "32px" "basis": "32px"
}, },
"props": { "props": {
"text": 1, "text": 0,
"textStyle": { "textStyle": {
"fontSize": 10, "fontSize": 10,
"textAlign": "center" "textAlign": "center"
@ -646,7 +544,7 @@
"basis": "32px" "basis": "32px"
}, },
"props": { "props": {
"text": 6, "text": 0,
"textStyle": { "textStyle": {
"fontSize": 10, "fontSize": 10,
"textAlign": "center" "textAlign": "center"
@ -711,9 +609,9 @@
"custom": { "custom": {
"counts": { "counts": {
"Critical": 0, "Critical": 0,
"Diagnostic": 1, "Diagnostic": 0,
"High": 2, "High": 0,
"Low": 3, "Low": 0,
"Medium": 0 "Medium": 0
} }
}, },