227 lines
5.8 KiB
Plaintext
227 lines
5.8 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"tagProps": [
|
|
"",
|
|
"",
|
|
"",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value"
|
|
]
|
|
},
|
|
"propConfig": {
|
|
"params.tagProps": {
|
|
"paramDirection": "inout",
|
|
"persistent": true
|
|
},
|
|
"params.tagProps[0]": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagProps[1]": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagProps[2]": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagProps[3]": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagProps[4]": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagProps[5]": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagProps[6]": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagProps[7]": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagProps[8]": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagProps[9]": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 40,
|
|
"width": 40
|
|
},
|
|
"styles": "value"
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Icon"
|
|
},
|
|
"position": {
|
|
"basis": "264px"
|
|
},
|
|
"propConfig": {
|
|
"meta.visible": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({parent.custom.state}\u003d1||{parent.custom.covert_mode}||{parent.custom.isMatch}\u003e0,true,false)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.style.classes": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "{parent.custom.ref_state}"
|
|
},
|
|
"overlayOptOut": true,
|
|
"transforms": [
|
|
{
|
|
"fallback": "EmergencyStop-Styles/EstopDeactivated",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 0,
|
|
"output": "EmergencyStop-Styles/EstopDeactivated"
|
|
},
|
|
{
|
|
"input": 1,
|
|
"output": "EmergencyStop-Styles/EstopActivated"
|
|
},
|
|
{
|
|
"input": 101,
|
|
"output": "EmergencyStop-Styles/EstopActivated101"
|
|
},
|
|
{
|
|
"input": 100,
|
|
"output": "EmergencyStop-Styles/EstopDeactivated100"
|
|
}
|
|
],
|
|
"outputType": "style-list",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"path": "material/lens"
|
|
},
|
|
"type": "ia.display.icon"
|
|
}
|
|
],
|
|
"custom": {
|
|
"status": "value"
|
|
},
|
|
"events": {
|
|
"dom": {
|
|
"onDoubleClick": {
|
|
"config": {
|
|
"script": "\ttagProps \u003d self.view.params.tagProps\n\tsystem.perspective.openPopup(\"DevicePopUP\", \"PopUp-Views/Device/Information-Device\", params \u003d{\"tagProps\":tagProps},resizable \u003d 1)\n\t"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"propConfig": {
|
|
"custom.alarm_active": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.tagProps[0]}",
|
|
"1": "{view.params.tagProps[1]}"
|
|
},
|
|
"tagPath": "{0}/Alarms/{1}.IsActive"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"custom.alarm_shelved": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.tagProps[0]}",
|
|
"1": "{view.params.tagProps[1]}"
|
|
},
|
|
"tagPath": "{0}/Alarms/{1}.IsShelved"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"custom.covert_mode": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "session.custom.covert"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"custom.isMatch": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({session.custom.deviceSearchId} \u003d {this.custom.search_path},1,0)"
|
|
},
|
|
"type": "expr"
|
|
},
|
|
"onChange": {
|
|
"enabled": null,
|
|
"script": "\tif currentValue.value \u003d\u003d 1:\n\t\tself.print(self.custom.search_path)\n\t\tself.session.custom.searchId \u003d \"\""
|
|
},
|
|
"persistent": false
|
|
},
|
|
"custom.ref_state": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.custom.state}\u003d1 \u0026\u0026 {this.custom.isMatch}\u003d1,101,\nif({this.custom.state}\u003d1 \u0026\u0026 {this.custom.isMatch}\u003d0,1,\nif({this.custom.state}\u003d0 \u0026\u0026 {this.custom.isMatch}\u003d1,100,0)))"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"custom.search_path": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "{view.params.tagProps[0]}+\"/\"+{view.params.tagProps[1]}"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"custom.state": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.custom.alarm_shelved}\u003dTrue,0,\nif({this.custom.alarm_active}\u003dTrue,1,0))"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"direction": "column"
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |