{ "custom": { "colorHandler": "value" }, "params": { "boxColor": "var(--olGray)", "inputPower": 0, "objectName": "Breaker", "outputPower": 0, "tagPath": "[Ignition_SATB1_IO1_default]ER1244/SWBD/SATB1_ER1244_CB-52U", "textColor": "var(--olGray)", "textHandler": { "Breaker1": "3000AF", "Breaker2": "3000AT", "Breaker3": "LSIG, EO", "Breaker4": "NC, ERMS", "DL_TOP-Bottm": true } }, "propConfig": { "custom.colorHandler": { "persistent": true }, "params.boxColor": { "paramDirection": "input", "persistent": true }, "params.inputPower": { "paramDirection": "input", "persistent": true }, "params.objectName": { "paramDirection": "input", "persistent": true }, "params.outputPower": { "binding": { "config": { "struct": { "CB": "{/root/SWBD_CB_B.custom.BreakerClosed}", "inputPower": "{view.params.inputPower}" }, "waitOnAll": true }, "transforms": [ { "code": "\tif (value[\u0027inputPower\u0027]\u003d\u003d0) or (value[\u0027CB\u0027] is None):\n\t\treturn 0\n\tif value[\u0027inputPower\u0027] and value[\u0027CB\u0027]:\n\t\treturn 1\n\telse: \n\t\treturn 0", "type": "script" } ], "type": "expr-struct" }, "paramDirection": "output", "persistent": true }, "params.tagPath": { "paramDirection": "input", "persistent": true }, "params.textColor": { "paramDirection": "input", "persistent": true }, "params.textHandler": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 84, "width": 81 } }, "root": { "children": [ { "custom": { "colorHandler": {} }, "events": { "dom": { "onClick": { "config": { "script": "\tpageId \u003d self.page.props.pageId\n\tsystem.perspective.print(\u0027pageId: {}\u0027.format(pageId))\n\t\n\ttagPath \u003d self.view.params.tagPath\n\tobjectName \u003d self.view.params.objectName\n\tutils.nav.openEQPopup(objectName, tagPath)" }, "scope": "G", "type": "script" } } }, "meta": { "name": "SWBD_CB_B" }, "position": { "height": 50, "width": 52 }, "propConfig": { "custom.BreakerClosed": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Breaker Status" }, "overlayOptOut": true, "type": "tag" } }, "custom.colorHandler.breakerIn": { "binding": { "config": { "path": "view.params.inputPower" }, "transforms": [ { "fallback": null, "inputType": "scalar", "mappings": [ { "input": 1, "output": "var(--olRed)" }, { "input": 0, "output": "var(--olGreen)" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "custom.colorHandler.breakerOut": { "binding": { "config": { "expression": "{view.params.inputPower} \u0026\u0026 {this.custom.BreakerClosed}" }, "transforms": [ { "fallback": "var(--olGray)", "inputType": "scalar", "mappings": [ { "input": true, "output": "var(--olRed)" }, { "input": false, "output": "var(--olGreen)" } ], "outputType": "scalar", "type": "map" } ], "type": "expr" } }, "props.elements[0].elements[0].stroke.paint": { "binding": { "config": { "path": "this.custom.colorHandler.breakerOut" }, "transforms": [ { "code": "\tif value is None:\n\t\treturn \u0027purple\u0027\n\treturn value", "type": "script" } ], "type": "property" } }, "props.elements[0].elements[0].visibility": { "binding": { "config": { "path": "this.custom.BreakerClosed" }, "transforms": [ { "code": "\tif value is None:\n\t\treturn \u0027hidden\u0027\n\treturn value", "type": "script" }, { "fallback": "visible", "inputType": "scalar", "mappings": [ { "input": false, "output": "visible" }, { "input": true, "output": "hidden" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "props.elements[0].elements[1].stroke.paint": { "binding": { "config": { "path": "this.custom.colorHandler.breakerOut" }, "transforms": [ { "code": "\tif value is None:\n\t\treturn \u0027purple\u0027\n\treturn value", "type": "script" } ], "type": "property" } }, "props.elements[0].elements[1].visibility": { "binding": { "config": { "path": "this.custom.BreakerClosed" }, "transforms": [ { "fallback": "visible", "inputType": "scalar", "mappings": [ { "input": true, "output": "visible" }, { "input": false, "output": "hidden" } ], "outputType": "scalar", "type": "map" }, { "code": "\tif value is None:\n\t\treturn False\n\treturn value", "type": "script" } ], "type": "property" } }, "props.elements[0].elements[2].stroke.paint": { "binding": { "config": { "path": "this.custom.colorHandler.breakerIn" }, "type": "property" } }, "props.elements[0].elements[3].stroke.paint": { "binding": { "config": { "path": "this.custom.colorHandler.breakerOut" }, "transforms": [ { "code": "\tif value is None:\n\t\treturn \u0027purple\u0027\n\treturn value", "type": "script" } ], "type": "property" } }, "props.elements[0].elements[4].elements[0].stroke.paint": { "binding": { "config": { "path": "this.custom.colorHandler.breakerIn" }, "type": "property" } }, "props.elements[0].elements[4].elements[1].stroke.paint": { "binding": { "config": { "path": "this.custom.colorHandler.breakerIn" }, "type": "property" } }, "props.elements[0].elements[5].elements[0].stroke.paint": { "binding": { "config": { "path": "this.custom.colorHandler.breakerOut" }, "transforms": [ { "code": "\tif value is None:\n\t\treturn \u0027purple\u0027\n\treturn value", "type": "script" } ], "type": "property" } }, "props.elements[0].elements[5].elements[1].stroke.paint": { "binding": { "config": { "path": "this.custom.colorHandler.breakerOut" }, "transforms": [ { "code": "\tif value is None:\n\t\treturn \u0027purple\u0027\n\treturn value", "type": "script" } ], "type": "property" } }, "props.elements[0].elements[6].elements[1].text": { "binding": { "config": { "path": "view.params.textHandler.Breaker1" }, "type": "property" } }, "props.elements[0].elements[6].elements[3].text": { "binding": { "config": { "path": "view.params.textHandler.Breaker1" }, "type": "property" } }, "props.elements[0].elements[6].elements[5].text": { "binding": { "config": { "path": "view.params.textHandler.Breaker4" }, "type": "property" } }, "props.elements[0].elements[6].elements[7].text": { "binding": { "config": { "path": "view.params.textHandler.Breaker3" }, "type": "property" } }, "props.elements[0].elements[6].fill": { "binding": { "config": { "path": "view.params.textColor" }, "type": "property" } }, "props.elements[1].elements[1].fill.paint": { "binding": { "config": { "expression": "case(\r\n\t{/root.custom.alarmSeverity},\r\n\t1, \"var(--coolpurple)\",\r\n\t2, \"var(--goldenyellow)\",\r\n\t3, \"var(--sunsetorange)\",\r\n\t4, \"var(--alarmred)\",\r\n\t\"transparent\"\r\n)\t" }, "type": "expr" } }, "props.elements[1].elements[2].visibility": { "binding": { "config": { "expression": "if({/root.custom.alarmSeverity}!\u003d3,\u0027hidden\u0027,\u0027visible\u0027)\r\n\r\n\t" }, "type": "expr" } }, "props.elements[1].elements[3].visibility": { "binding": { "config": { "expression": "if({/root.custom.alarmSeverity}!\u003d3,\u0027hidden\u0027,\u0027visible\u0027)\r\n\r\n\t" }, "type": "expr" } }, "props.elements[1].elements[4].visibility": { "binding": { "config": { "expression": "if({/root.custom.alarmSeverity}!\u003d2,\u0027hidden\u0027,\u0027visible\u0027)\r\n\r\n\t" }, "type": "expr" } }, "props.elements[1].elements[5].visibility": { "binding": { "config": { "expression": "if({/root.custom.alarmSeverity}!\u003d1,\u0027hidden\u0027,\u0027visible\u0027)\r\n\r\n\t" }, "type": "expr" } }, "props.elements[1].elements[6].visibility": { "binding": { "config": { "expression": "if({/root.custom.alarmSeverity}!\u003d4,\u0027hidden\u0027,\u0027visible\u0027)\r\n\r\n\t" }, "type": "expr" } }, "props.elements[1].elements[7].visibility": { "binding": { "config": { "expression": "if({/root.custom.alarmSeverity}!\u003d4,\u0027hidden\u0027,\u0027visible\u0027)\r\n\r\n\t" }, "type": "expr" } } }, "props": { "elements": [ { "elements": [ { "d": "M14.91,18c1.262,1.2 1.897,2.695 1.871,4.5c0.008,2.094 -0.592,3.616 -1.871,4.5", "fill": { "paint": "transparent" }, "id": "Open", "name": "Open", "stroke": { "width": "0.75px" }, "type": "path" }, { "d": "M11.25,18c1.53,1.2 2.301,2.695 2.269,4.5c0.011,2.094 -0.718,3.616 -2.269,4.5", "fill": { "paint": "transparent" }, "id": "Closed", "name": "Closed", "stroke": { "width": "0.75px" }, "type": "path" }, { "d": "M11.264,13.5l-0,4.523", "fill": { "paint": "transparent" }, "id": "In", "name": "In", "stroke": { "linecap": "butt", "width": "0.75px" }, "type": "path" }, { "d": "M11.25,27l-0,4.191", "fill": { "paint": "transparent" }, "id": "Out", "name": "Out", "stroke": { "linecap": "butt", "width": "0.75px" }, "type": "path" }, { "elements": [ { "d": "M9.007,13.5l2.257,-1.477l2.256,1.477", "fill": { "paint": "transparent" }, "name": "path", "stroke": { "linecap": "butt", "linejoin": "bevel", "width": "0.75px" }, "type": "path" }, { "d": "M8.993,14.977l2.257,-1.477l2.257,1.477", "fill": { "paint": "transparent" }, "name": "path", "stroke": { "linecap": "butt", "linejoin": "bevel", "width": "0.75px" }, "type": "path" } ], "id": "T1", "name": "T1", "type": "group" }, { "elements": [ { "d": "M13.493,31.523l-2.257,1.477l-2.256,-1.477", "fill": { "paint": "transparent" }, "name": "path", "stroke": { "linecap": "butt", "linejoin": "bevel", "width": "0.75px" }, "type": "path" }, { "d": "M13.507,30.045l-2.257,1.478l-2.257,-1.478", "fill": { "paint": "transparent" }, "name": "path", "stroke": { "linecap": "butt", "linejoin": "bevel", "width": "0.75px" }, "type": "path" } ], "id": "T2", "name": "T2", "type": "group" }, { "elements": [ { "name": "group", "transform": "matrix(4.16667,0,0,4.16667,32.0651,17.9948)", "type": "group" }, { "name": "text", "style": { "fontFamily": "\u0027ArialMT\u0027, \u0027Arial\u0027", "fontSize": "4.167px" }, "type": "text", "x": "17.472px", "y": "17.995px" }, { "name": "group", "transform": "matrix(4.16667,0,0,4.16667,31.7559,21.7448)", "type": "group" }, { "name": "text", "style": { "fontFamily": "\u0027ArialMT\u0027, \u0027Arial\u0027", "fontSize": "4.167px" }, "type": "text", "x": "17.472px", "y": "21.745px" }, { "name": "group", "transform": "matrix(4.16667,0,0,4.16667,37.7007,29.2834)", "type": "group" }, { "name": "text", "style": { "fontFamily": "\u0027ArialMT\u0027, \u0027Arial\u0027", "fontSize": "4.167px" }, "type": "text", "x": "17.329px", "y": "29.283px" }, { "name": "group", "transform": "matrix(4.16667,0,0,4.16667,35.1718,25.5355)", "type": "group" }, { "name": "text", "style": { "fontFamily": "\u0027ArialMT\u0027, \u0027Arial\u0027", "fontSize": "4.167px" }, "type": "text", "x": "17.341px", "y": "25.535px" } ], "id": "Text", "name": "Text", "type": "group" } ], "id": "CB", "name": "CB", "type": "group" }, { "elements": [ { "fill": { "opacity": "0", "paint": "#ebebeb" }, "height": "30", "id": "AlarmBorder", "name": "AlarmBorder", "type": "rect", "width": "22.5", "x": "0", "y": "7.5" }, { "d": "M22.5,7.5l0,30l-22.5,-0l0,-30l22.5,-0Zm-0.75,0.75l-21,0l-0,28.5l21,-0l0,-28.5Z", "fill": {}, "name": "path", "type": "path" }, { "d": "M22.858,0.648l6.489,6.489c0.199,0.199 0.199,0.522 0,0.721l-6.489,6.489c-0.199,0.199 -0.522,0.199 -0.721,0l-6.489,-6.489c-0.199,-0.199 -0.199,-0.522 -0,-0.721l6.489,-6.489c0.199,-0.199 0.522,-0.199 0.721,-0Z", "fill": { "paint": "#de7c33" }, "name": "path", "stroke": { "paint": "#000", "width": "0.48px" }, "type": "path" }, { "elements": [ { "elements": [ { "d": "M22.163,8.96l-0.351,-4.735l1.371,0l-0.34,4.735l-0.68,-0Zm-0.318,1.81l0,-1.105l1.305,0l0,1.105l-1.305,0Z", "fill": { "paint": "#fff", "rule": "nonzero" }, "name": "path", "type": "path" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group" }, { "elements": [ { "d": "M21.855,1.849c0.134,-0.227 0.378,-0.367 0.643,-0.367c0.264,-0 0.508,0.14 0.642,0.367c1.411,2.401 4.768,8.113 6.195,10.541c0.136,0.231 0.137,0.516 0.005,0.748c-0.133,0.232 -0.38,0.375 -0.647,0.375l-12.39,0c-0.268,0 -0.515,-0.143 -0.647,-0.375c-0.133,-0.232 -0.131,-0.517 0.004,-0.748c1.427,-2.428 4.784,-8.14 6.195,-10.541Z", "fill": { "paint": "#f4b834" }, "name": "path", "stroke": { "paint": "#000", "width": "0.48px" }, "type": "path" }, { "elements": [ { "elements": [ { "d": "M22.126,9.942l-0.389,-4.988l1.521,0l-0.377,4.988l-0.755,-0Zm-0.353,1.907l0,-1.164l1.449,0l-0,1.164l-1.449,-0Z", "fill": { "paint": "#fff", "rule": "nonzero" }, "name": "path", "type": "path" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group" }, { "elements": [ { "d": "M27.307,1.181l-0,12.633c-0,0.265 -0.216,0.481 -0.481,0.481l-8.657,-0c-0.265,-0 -0.48,-0.216 -0.48,-0.481l-0,-12.633c-0,-0.265 0.215,-0.48 0.48,-0.48l8.657,-0c0.265,-0 0.481,0.215 0.481,0.48Z", "fill": { "paint": "#7166b7" }, "name": "path", "stroke": { "paint": "#000", "width": "0.48px" }, "type": "path" }, { "elements": [ { "elements": [ { "d": "M22.126,9.042l-0.389,-5.001l1.521,-0l-0.377,5.001l-0.755,0Zm-0.353,1.912l0,-1.167l1.449,0l-0,1.167l-1.449,0Z", "fill": { "paint": "#fff", "rule": "nonzero" }, "name": "path", "type": "path" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group" }, { "cx": "22.498", "cy": "7.498", "fill": { "paint": "#e22028" }, "name": "circle", "r": "7.198", "stroke": { "paint": "#000", "width": "0.48px" }, "type": "circle" }, { "elements": [ { "elements": [ { "d": "M20.712,9.232l-0.389,-5.617l1.521,-0l-0.377,5.617l-0.755,0Zm-0.353,2.148l0,-1.31l1.449,-0l-0,1.31l-1.449,0Z", "fill": { "paint": "#fff", "rule": "nonzero" }, "name": "path", "type": "path" } ], "name": "group", "type": "group" }, { "elements": [ { "d": "M23.597,9.232l-0.389,-5.617l1.521,-0l-0.377,5.617l-0.755,0Zm-0.353,2.148l0,-1.31l1.449,-0l-0,1.31l-1.449,0Z", "fill": { "paint": "#fff", "rule": "nonzero" }, "name": "path", "type": "path" } ], "name": "group", "type": "group" } ], "name": "group", "type": "group" } ], "id": "AlarmItems", "name": "AlarmItems", "type": "group" } ], "fill": { "rule": "evenodd" }, "preserveAspectRatio": "none", "stroke": { "linecap": "round", "linejoin": "round", "miterlimit": "1.5" }, "style": { "backgroundColor": "#00000000", "borderBottomLeftRadius": 10, "borderBottomRightRadius": 10, "borderTopLeftRadius": 10, "borderTopRightRadius": 10, "clipRule": "evenodd" }, "viewBox": "0 0 39 39" }, "type": "ia.shapes.svg" }, { "meta": { "name": "Label_Bottom" }, "position": { "height": 9, "rotate": { "anchor": "50% -34%" }, "width": 50, "x": 17.3, "y": 48 }, "propConfig": { "meta.visible": { "binding": { "config": { "expression": "!{view.params.textHandler.DL_TOP-Bottm}" }, "type": "expr" } }, "props.text": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Meta/EqName" }, "type": "tag" } }, "props.textStyle.color": { "binding": { "config": { "path": "view.params.textColor" }, "type": "property" } } }, "props": { "alignVertical": "bottom", "textStyle": { "fontFamily": "inherit", "fontSize": 6, "textAlign": "left" } }, "type": "ia.display.label" }, { "meta": { "name": "Label_Top" }, "position": { "height": 9, "rotate": { "anchor": "50% -34%" }, "width": 50, "x": 17.3, "y": 8.950000000000001 }, "propConfig": { "meta.visible": { "binding": { "config": { "expression": "{view.params.textHandler.DL_TOP-Bottm}" }, "type": "expr" } }, "props.text": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Meta/EqName" }, "type": "tag" } }, "props.textStyle.color": { "binding": { "config": { "path": "view.params.textColor" }, "type": "property" } } }, "props": { "alignVertical": "bottom", "style": { "overflow": "visible" }, "textStyle": { "fontFamily": "inherit", "fontSize": 6, "textAlign": "left" } }, "type": "ia.display.label" }, { "meta": { "name": "OpenClose" }, "position": { "height": 9, "rotate": { "anchor": "50% -34%" }, "width": 24, "x": 22.9, "y": 39.45 }, "propConfig": { "meta.visible": { "binding": { "config": { "expression": "{view.params.textHandler.DL_TOP-Bottm}" }, "type": "expr" } }, "props.style.backgroundColor": { "binding": { "config": { "path": "../SWBD_CB_B.custom.colorHandler.breakerOut" }, "type": "property" } }, "props.text": { "binding": { "config": { "path": "../SWBD_CB_B.custom.BreakerClosed" }, "transforms": [ { "code": "\tif value is None:\n\t\treturn \"Open\"\n\treturn value", "type": "script" }, { "fallback": "Open", "inputType": "scalar", "mappings": [ { "input": true, "output": "Closed" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "props.textStyle.color": { "binding": { "config": { "struct": { "CB": "{../SWBD_CB_B.custom.BreakerClosed}", "inputPower": "{view.params.inputPower}" }, "waitOnAll": true }, "transforms": [ { "code": "\tif (value[\u0027inputPower\u0027] or value[\u0027CB\u0027]) is None:\n\t\treturn self.view.params.textColor\n\tif (value[\u0027inputPower\u0027] and value[\u0027CB\u0027]):\n\t\treturn \u0027white\u0027\n\telse: \n\t\treturn self.view.params.textColor\n\treturn value", "type": "script" } ], "type": "expr-struct" } } }, "props": { "alignVertical": "bottom", "textStyle": { "fontFamily": "inherit", "fontSize": 6, "textAlign": "left" } }, "type": "ia.display.label" } ], "meta": { "name": "root" }, "propConfig": { "custom.alarmSeverity": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/AlarmSummary/ActiveAlarms" }, "transforms": [ { "code": "\treturn alarm.summary.calcMaxPriority(self.view.params.tagPath)", "type": "script" } ], "type": "tag" } } }, "props": { "style": { "classes": "containers/HoverOver", "overflow": "hidden" } }, "type": "ia.container.coord" } }