BNA8/.resources/e0393519564c11bf068687cf7e4b4f9ad397f196235c39121c1767f30c303acf

318 lines
8.7 KiB
Plaintext

{
"custom": {},
"params": {
"ASdata": "Beacon",
"Browser": "Amazon",
"Color": 13,
"DeviceType": "Beacon",
"FolderPath": "PE/",
"Font-size": 14,
"TName": "value",
"Text": "H",
"Vendor": "AS",
"Visibility": null,
"blinktime": "value",
"bool": null,
"tagPath": "PE1_PS2_3"
},
"propConfig": {
"params.ASdata": {
"paramDirection": "input",
"persistent": true
},
"params.Browser": {
"paramDirection": "inout",
"persistent": true
},
"params.Color": {
"binding": {
"config": {
"expression": "if ({view.params.bool} \u003d true,\r\n\tcase ({view.params.Text},\r\n\t\t\"H\", 0,\r\n\t\t\"R\", 2,\r\n\t\t\"B\", 6,\r\n\t\t\"A\", 4,\r\n\t\t\"G\", 10,\r\n\t\t\"P\", 5,\r\n\t\t100),\r\n13)"
},
"type": "expr"
},
"paramDirection": "output",
"persistent": true
},
"params.DeviceType": {
"paramDirection": "input",
"persistent": true
},
"params.FolderPath": {
"paramDirection": "inout",
"persistent": true
},
"params.Font-size": {
"paramDirection": "inout",
"persistent": true
},
"params.TName": {
"paramDirection": "input",
"persistent": true
},
"params.Text": {
"paramDirection": "input",
"persistent": true
},
"params.Vendor": {
"paramDirection": "input",
"persistent": true
},
"params.Visibility": {
"binding": {
"config": {
"expression": "if ({view.params.bool}, true, false)"
},
"type": "expr"
},
"paramDirection": "output",
"persistent": true
},
"params.blinktime": {
"onChange": {
"enabled": null,
"script": "\t\n\t\n\tif self.params.blinktime \u003d\u003d 0:\n\t\tself.params.bool \u003d 0\n\telif self.params.blinktime \u003d\u003d 1:\n\t\tself.params.bool \u003d 1\n\telif self.params.bool \u003d\u003d 0:\n\t\tself.params.bool \u003d 1\n\telse:\n\t\tself.params.bool \u003d 0"
},
"paramDirection": "inout",
"persistent": true
},
"params.bool": {
"binding": {
"config": {
"bidirectional": true,
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"Browse": "{view.params.Browser}",
"FolderPath": "{view.params.FolderPath}",
"tagPath": "{view.params.tagPath}"
},
"tagPath": "[{Browse}]{FolderPath}{tagPath}/HMI/Beacon"
},
"type": "tag"
},
"paramDirection": "output",
"persistent": true
},
"params.tagPath": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 25,
"width": 25
}
},
"root": {
"children": [
{
"meta": {
"name": "Beacon"
},
"position": {
"height": 1,
"width": 1
},
"propConfig": {
"meta.visible": {
"binding": {
"config": {
"expression": "{session.custom.show.Beacons} || {view.params.Visibility}"
},
"type": "expr"
}
},
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "view.params.Color"
},
"transforms": [
{
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{
"input": 0,
"output": "#808080"
},
{
"input": 1,
"output": "#FF0000"
},
{
"input": 2,
"output": "#FF0000"
},
{
"input": 3,
"output": "#FF0000"
},
{
"input": 4,
"output": "#FF8C00"
},
{
"input": 5,
"output": "#D900D9"
},
{
"input": 6,
"output": "#0000FF"
},
{
"input": 7,
"output": "#FFFF00"
},
{
"input": 8,
"output": "#FFFF00"
},
{
"input": 9,
"output": "#FFFF00"
},
{
"input": 10,
"output": "#00D900"
},
{
"input": 11,
"output": "#87CEFA"
},
{
"input": 12,
"output": "#CCFFCC"
},
{
"input": 13,
"output": "#D3D3D3"
},
{
"input": 14,
"output": "#AC5F00"
},
{
"input": 100,
"output": "#FFFFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "property"
}
},
"props.style.classes": {
"binding": {
"config": {
"expression": "if ({view.params.tagPath} \u003d {session.custom.Search},\r\n\"table/SearchTaghighlight\", \"table/highlight\")"
},
"type": "expr"
}
},
"props.style.fontSize": {
"binding": {
"config": {
"path": "view.params.Font-size"
},
"type": "property"
}
},
"props.style.transform": {
"binding": {
"config": {
"expression": "if ({session.custom.RotateText} \u003d 180,\r\n\"rotate(180deg)\",\r\n\"rotate(0deg)\")"
},
"type": "expr"
}
},
"props.text": {
"binding": {
"config": {
"path": "view.params.Text"
},
"type": "property"
}
}
},
"props": {
"style": {
"borderStyle": "solid",
"borderWidth": 2,
"color": "#000000",
"cursor": "pointer",
"fontFamily": "Arial",
"fontWeight": "bold",
"textAlign": "center"
}
},
"type": "ia.display.label"
}
],
"events": {
"dom": {
"onClick": {
"config": {
"draggable": false,
"id": "information",
"modal": false,
"overlayDismiss": false,
"resizable": false,
"showCloseIcon": false,
"type": "open",
"viewParams": {
"ASdata": "{view.params.ASdata}",
"Browser": "{view.params.Browser}",
"DeviceType": "{view.params.DeviceType}",
"FolderPath": "{view.params.FolderPath}",
"Vendor": "{view.params.Vendor}",
"tagPath": "{view.params.tagPath}"
},
"viewPath": "Windows/Information/Information",
"viewportBound": false
},
"scope": "C",
"type": "popup"
}
}
},
"meta": {
"name": "root",
"tooltip": {
"enabled": true,
"style": {
"backgroundColor": "#2B2B2BBF",
"color": "#FFFFFF",
"fontSize": 12,
"textAlign": "left",
"white-space": "pre"
}
}
},
"position": {
"x": -1.16,
"y": 0.28
},
"propConfig": {
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "if({view.params.Text}\u003d\"P\",replace({view.params.TName}, \"_\", \"-\"),replace({view.params.tagPath}, \"_\", \"-\"))+\r\n\"\\nStatus: \"+ \r\ncase (tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Beacon\"),\r\n1 ,\"On\", \r\n0 ,\"Off\", \r\n\"not response\")"
},
"type": "expr"
}
}
},
"props": {
"mode": "percent",
"style": {
"transform": "translate3d(0,0,0)"
}
},
"type": "ia.container.coord"
}
}