{ "custom": {}, "params": { "ASdata": "value", "Browser": "Amazon", "Color": 0, "DeviceType": "value", "FolderPath": "value", "Vendor": "value", "Visibility": true, "tagPath": "value" }, "propConfig": { "params.ASdata": { "paramDirection": "input", "persistent": true }, "params.Browser": { "paramDirection": "output", "persistent": true }, "params.Color": { "paramDirection": "inout", "persistent": true }, "params.DeviceType": { "paramDirection": "input", "persistent": true }, "params.FolderPath": { "paramDirection": "inout", "persistent": true }, "params.Vendor": { "paramDirection": "input", "persistent": true }, "params.Visibility": { "paramDirection": "inout", "persistent": true }, "params.tagPath": { "paramDirection": "inout", "persistent": true } }, "props": { "defaultSize": { "height": 20, "width": 50 }, "loading": { "mode": "blocking" } }, "root": { "children": [ { "meta": { "name": "Photoeye" }, "position": { "basis": "100%" }, "propConfig": { "meta.visible": { "binding": { "config": { "expression": "{session.custom.show.PhotoEyes} || {view.params.Visibility}" }, "type": "expr" } }, "props.elements[0].fill.paint": { "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" }, { "input": 101, "output": null } ], "outputType": "color", "type": "map" }, { "expression": "if({view.params.Color} \u003d 1, // TODO: Bind fire alarm tags here\r\n if(getSecond(now()) % 2 \u003d 1,\r\n \u0027#FF0000\u0027,\r\n \u0027#1AEA1C\u0027\r\n ),\r\nif({view.params.Color} \u003d 4, // TODO: Bind fire alarm tags here\r\n if(getSecond(now()) % 2 \u003d 1,\r\n \u0027#FF0000\u0027,\r\n \u0027#000000\u0027\r\n ),\r\n\t{value}\r\n))", "type": "expression" } ], "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": { "elements": [ { "elements": [ { "name": "polygon", "points": "29.95 15.23 0.5 29.32 0.5 1.15 29.95 15.23", "type": "polygon" }, { "elements": [ { "elements": [ { "height": 1.5, "name": "rect", "type": "rect", "width": "2.66", "x": "88.23", "y": "14.26" }, { "height": 1.5, "name": "rect", "type": "rect", "width": "2.66", "x": "93", "y": "14.26" }, { "height": "1.5", "name": "rect", "type": "rect", "width": "2.66", "x": "97.74", "y": "14.26" } ], "name": "group", "type": "group" }, { "elements": [ { "height": "1.5", "name": "rect", "type": "rect", "width": "2.66", "x": "73.93", "y": "14.26" }, { "height": "1.5", "name": "rect", "type": "rect", "width": "2.66", "x": "78.69", "y": "14.26" }, { "height": "1.5", "name": "rect", "type": "rect", "width": "2.66", "x": "83.44", "y": "14.26" } ], "name": "group", "type": "group" }, { "elements": [ { "height": "1.5", "name": "rect", "type": "rect", "width": 2.66, "x": "59.62", "y": "14.26" }, { "height": "1.5", "name": "rect", "type": "rect", "width": "2.66", "x": "64.38", "y": "14.26" }, { "height": "1.5", "name": "rect", "type": "rect", "width": "2.66", "x": "69.13", "y": "14.26" } ], "name": "group", "type": "group" }, { "elements": [ { "height": "1.5", "name": "rect", "type": "rect", "width": "2.66", "x": "45.32", "y": "14.26" }, { "height": "1.5", "name": "rect", "type": "rect", "width": "2.66", "x": "50.08", "y": "14.26" }, { "height": "1.5", "name": "rect", "type": "rect", "width": "2.66", "x": "54.83", "y": "14.26" } ], "name": "group", "type": "group" }, { "elements": [ { "height": "1.5", "name": "rect", "type": "rect", "width": "2.66", "x": "31.01", "y": "14.26" }, { "height": "1.5", "name": "rect", "type": "rect", "width": "2.66", "x": "35.77", "y": "14.26" }, { "height": "1.5", "name": "rect", "type": "rect", "width": "2.66", "x": "40.52", "y": "14.26" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group" }, { "height": 29.46, "name": "rect", "type": "rect", "width": "8.42", "x": "101.48", "y": "0.5" } ], "fill": {}, "name": "group", "type": "group" } ], "preserveAspectRatio": "none", "style": {}, "viewBox": "0 0 110.4 30.46" }, "type": "ia.shapes.svg" } ], "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" } } }, "propConfig": { "meta.tooltip.text": { "binding": { "config": { "expression": "replace({view.params.tagPath}, \"_\", \"-\")+\r\n\"\\n Status: \"+ \r\nif ({view.params.ASdata} \u003d \"PE\",\r\n\tif (!tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Alarm/JAM\") \u0026\u0026 \r\n\t\ttag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/AutoInductPE\"),\r\n\t\t\"Full\",\r\n\t\tif (!tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/Alarm/JAM\") \u0026\u0026 \r\n\t\t\t!tag(\"[\"+{view.params.Browser}+\"]\"+{view.params.FolderPath}+{view.params.tagPath}+\"/HMI/AutoInductPE\"),\r\n\t\t\t\"Clear\",\r\n\t\t\t\"Jammed\"\r\n\t\t\t)\r\n\t\t),\r\nif ({view.params.ASdata} \u003d \"ChutePE_CP\" || {view.params.ASdata} \u003d \"ChutePE_PJ\" || {view.params.ASdata} \u003d \"ChutePE_GP\",\r\n\t\t\t\"Jammed\",\r\n\t\t\tif ({view.params.DeviceType} \u003d \"ChutePE_PF50\" || {view.params.DeviceType} \u003d \"ChutePE_PF2\" || \r\n\t\t\t\t{view.params.DeviceType} \u003d \"ChutePE_PF\" || {view.params.DeviceType} \u003d \"ChutePE_GF\" ,\r\n\t\t\t\t\"Full\",\r\n\t\t\t\t\"Clear\")))" }, "type": "expr" } } }, "props": { "direction": "column", "justify": "center", "style": { "cursor": "pointer", "transform": "translate3d(0,0,0)" } }, "type": "ia.container.flex" } }