Files
Stream_PHX_A7/Gateways/FE/projects/.resources/9e513fe7c2eb2ffc8fcd7e56afc72ef48b1d31e7e26953741e908df29d579ee8

1011 lines
31 KiB
Plaintext

{
"custom": {},
"params": {
"boxColor": "var(--olGray)",
"inputPower": 1,
"objectName": "Breaker",
"outputPower": 1,
"tagPath": "[Ignition_SATB1_IO1_default]ER1242/SWBD/SATB1_ER1242_CB-52F13",
"textColor": "var(--olGray)",
"textHandler": {
"Breaker1": "3000AF",
"Breaker2": "3000AT",
"Breaker3": "LSIG, NO",
"Breaker4": "NC, ERMS",
"DL_Left_Right": true,
"DeviceLabel": "DeviceLabel"
}
},
"propConfig": {
"params.boxColor": {
"paramDirection": "input",
"persistent": true
},
"params.inputPower": {
"paramDirection": "input",
"persistent": true
},
"params.objectName": {
"paramDirection": "input",
"persistent": true
},
"params.outputPower": {
"binding": {
"config": {
"struct": {
"CB_Closed": "{/root/SWBD_CB_3.custom.BreakerClosed}",
"inputPower": "{view.params.inputPower}"
},
"waitOnAll": true
},
"transforms": [
{
"code": "\tif value[\u0027inputPower\u0027] is None:\n\t\tif value[\u0027CB_Closed\u0027] is None:\n\t\t\toutput \u003d 0\n\t\t\treturn output\n\tif value[\u0027inputPower\u0027] and value[\u0027CB_Closed\u0027]:\n\t\toutput \u003d 1\n\telse:\n\t\toutput \u003d 0\n\treturn output",
"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": 47,
"width": 91
}
},
"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_3"
},
"position": {
"height": 39,
"width": 60,
"x": 19
},
"propConfig": {
"custom.BreakerClosed": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/Breaker Status"
},
"transforms": [
{
"code": "\tif value is None:\n\t\treturn False\n\treturn value",
"type": "script"
}
],
"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}\r\n"
},
"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[1].fill.paint": {
"binding": {
"config": {
"path": "parent.custom.alarmSeverity"
},
"transforms": [
{
"fallback": "transparent",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "var( --coolpurple)"
},
{
"input": 2,
"output": "var(--goldenyellow)"
},
{
"input": 3,
"output": "var(--sunsetorange)"
},
{
"input": 4,
"output": "var(--alarmred)"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[0].elements[2].visibility": {
"binding": {
"config": {
"path": "parent.custom.alarmSeverity"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": 3,
"output": "visible"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[0].elements[3].visibility": {
"binding": {
"config": {
"path": "parent.custom.alarmSeverity"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": 3,
"output": "visible"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[0].elements[4].visibility": {
"binding": {
"config": {
"path": "parent.custom.alarmSeverity"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": 2,
"output": "visible"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[0].elements[5].visibility": {
"binding": {
"config": {
"path": "parent.custom.alarmSeverity"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "visible"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[0].elements[6].visibility": {
"binding": {
"config": {
"path": "parent.custom.alarmSeverity"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": 4,
"output": "visible"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[0].elements[7].visibility": {
"binding": {
"config": {
"path": "parent.custom.alarmSeverity"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": 4,
"output": "visible"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[1].elements[0].stroke.paint": {
"binding": {
"config": {
"path": "this.custom.colorHandler.breakerOut"
},
"type": "property"
}
},
"props.elements[1].elements[0].visibility": {
"binding": {
"config": {
"path": "this.custom.BreakerClosed"
},
"transforms": [
{
"fallback": "hidden",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "visible"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[1].elements[1].stroke.paint": {
"binding": {
"config": {
"path": "this.custom.colorHandler.breakerOut"
},
"type": "property"
}
},
"props.elements[1].elements[1].visibility": {
"binding": {
"config": {
"path": "this.custom.BreakerClosed"
},
"transforms": [
{
"fallback": "visible",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "hidden"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
},
"props.elements[1].elements[2].stroke.paint": {
"binding": {
"config": {
"path": "this.custom.colorHandler.breakerIn"
},
"type": "property"
}
},
"props.elements[1].elements[3].stroke.paint": {
"binding": {
"config": {
"path": "this.custom.colorHandler.breakerOut"
},
"type": "property"
}
},
"props.elements[1].elements[4].stroke.paint": {
"binding": {
"config": {
"path": "this.custom.colorHandler.breakerIn"
},
"type": "property"
}
},
"props.elements[1].elements[5].stroke.paint": {
"binding": {
"config": {
"path": "this.custom.colorHandler.breakerIn"
},
"type": "property"
}
},
"props.elements[1].elements[6].stroke.paint": {
"binding": {
"config": {
"path": "this.custom.colorHandler.breakerOut"
},
"type": "property"
}
},
"props.elements[1].elements[7].stroke.paint": {
"binding": {
"config": {
"path": "this.custom.colorHandler.breakerOut"
},
"type": "property"
}
},
"props.elements[2].elements[1].fill": {
"binding": {
"config": {
"path": "view.params.textColor"
},
"type": "property"
}
},
"props.elements[2].elements[1].text": {
"binding": {
"config": {
"path": "view.params.textHandler.Breaker1"
},
"type": "property"
}
},
"props.elements[2].elements[3].fill": {
"binding": {
"config": {
"path": "view.params.textColor"
},
"type": "property"
}
},
"props.elements[2].elements[3].text": {
"binding": {
"config": {
"path": "view.params.textHandler.Breaker2"
},
"type": "property"
}
},
"props.elements[2].elements[5].fill": {
"binding": {
"config": {
"path": "view.params.textColor"
},
"type": "property"
}
},
"props.elements[2].elements[5].text": {
"binding": {
"config": {
"path": "view.params.textHandler.Breaker3"
},
"type": "property"
}
},
"props.elements[2].elements[7].fill": {
"binding": {
"config": {
"path": "view.params.textColor"
},
"type": "property"
}
},
"props.elements[2].elements[7].text": {
"binding": {
"config": {
"path": "view.params.textHandler.Breaker4"
},
"type": "property"
}
}
},
"props": {
"elements": [
{
"elements": [
{
"fill": {
"opacity": "0",
"paint": "#ebebeb"
},
"height": "104.167",
"id": "AlarmBorder",
"name": "AlarmBorder",
"type": "rect",
"width": "208.333",
"x": "-0",
"y": "58.333"
},
{
"d": "M208.333,58.333l0,104.167l-208.333,0l-0,-104.167l208.333,0Zm-4.166,4.167l-200,-0l-0,95.833l200,0l-0,-95.833Z",
"fill": {},
"name": "path",
"type": "path"
},
{
"d": "M210.323,20.266l36.051,36.051c1.105,1.106 1.105,2.9 -0,4.006l-36.051,36.051c-1.106,1.105 -2.9,1.105 -4.006,-0l-36.051,-36.051c-1.105,-1.106 -1.105,-2.9 0,-4.006l36.051,-36.051c1.106,-1.105 2.9,-1.105 4.006,0Z",
"fill": {
"paint": "#de7c33"
},
"name": "path",
"stroke": {
"paint": "#000",
"width": "2.67px"
},
"type": "path"
},
{
"elements": [
{
"elements": [
{
"d": "M206.462,66.443l-1.95,-26.303l7.616,-0l-1.889,26.303l-3.777,0Zm-1.767,10.057l-0,-6.137l7.25,-0l-0,6.137l-7.25,0Z",
"fill": {
"paint": "#fff",
"rule": "nonzero"
},
"name": "path",
"type": "path"
}
],
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
},
{
"elements": [
{
"d": "M204.75,26.941c0.744,-1.265 2.102,-2.042 3.57,-2.042c1.468,-0 2.826,0.777 3.57,2.042c7.839,13.339 26.489,45.073 34.417,58.561c0.752,1.281 0.761,2.866 0.024,4.155c-0.738,1.289 -2.109,2.085 -3.595,2.085l-68.832,-0c-1.486,-0 -2.857,-0.796 -3.595,-2.085c-0.737,-1.289 -0.728,-2.874 0.024,-4.155c7.928,-13.488 26.578,-45.222 34.417,-58.561Z",
"fill": {
"paint": "#f4b834"
},
"name": "path",
"stroke": {
"paint": "#000",
"width": "2.67px"
},
"type": "path"
},
{
"elements": [
{
"elements": [
{
"d": "M206.257,71.899l-2.164,-27.709l8.454,-0l-2.097,27.709l-4.193,-0Zm-1.961,10.595l-0,-6.466l8.048,0l0,6.466l-8.048,-0Z",
"fill": {
"paint": "#fff",
"rule": "nonzero"
},
"name": "path",
"type": "path"
}
],
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
},
{
"elements": [
{
"d": "M235.037,23.23l0,70.18c0,1.474 -1.197,2.671 -2.672,2.671l-48.09,0c-1.475,0 -2.672,-1.197 -2.672,-2.671l-0,-70.18c-0,-1.474 1.197,-2.671 2.672,-2.671l48.09,-0c1.475,-0 2.672,1.197 2.672,2.671Z",
"fill": {
"paint": "#7166b7"
},
"name": "path",
"stroke": {
"paint": "#000",
"width": "2.67px"
},
"type": "path"
},
{
"elements": [
{
"elements": [
{
"d": "M206.257,66.901l-2.164,-27.786l8.454,0l-2.097,27.786l-4.193,-0Zm-1.961,10.624l-0,-6.484l8.048,0l0,6.484l-8.048,-0Z",
"fill": {
"paint": "#fff",
"rule": "nonzero"
},
"name": "path",
"type": "path"
}
],
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
},
{
"cx": "208.32",
"cy": "58.32",
"fill": {
"paint": "#e22028"
},
"name": "circle",
"r": "39.987",
"stroke": {
"paint": "#000",
"width": "2.67px"
},
"type": "circle"
},
{
"elements": [
{
"elements": [
{
"d": "M198.401,67.958l-2.165,-31.209l8.454,-0l-2.096,31.209l-4.193,0Zm-1.962,11.933l0,-7.282l8.048,0l0,7.282l-8.048,0Z",
"fill": {
"paint": "#fff",
"rule": "nonzero"
},
"name": "path",
"type": "path"
}
],
"name": "group",
"type": "group"
},
{
"elements": [
{
"d": "M214.429,67.958l-2.164,-31.209l8.454,-0l-2.096,31.209l-4.194,0Zm-1.961,11.933l0,-7.282l8.048,0l0,7.282l-8.048,0Z",
"fill": {
"paint": "#fff",
"rule": "nonzero"
},
"name": "path",
"type": "path"
}
],
"name": "group",
"type": "group"
}
],
"name": "group",
"type": "group"
}
],
"id": "Alarm-Items",
"name": "Alarm-Items",
"type": "group"
},
{
"elements": [
{
"d": "M79.167,116.723c6.667,-8.501 14.971,-12.782 25,-12.607c11.634,-0.059 20.088,3.989 25,12.607",
"fill": {
"paint": "transparent"
},
"id": "Closed",
"name": "Closed",
"stroke": {
"width": "4.17px"
},
"type": "path"
},
{
"d": "M79.167,96.387c6.667,-7.007 14.971,-10.535 25,-10.391c11.634,-0.048 20.088,3.288 25,10.391",
"fill": {
"paint": "transparent"
},
"id": "Open",
"name": "Open",
"stroke": {
"width": "4.17px"
},
"type": "path"
},
{
"d": "M54.167,116.647l25.125,-0",
"fill": {
"paint": "transparent"
},
"name": "path",
"stroke": {
"linecap": "butt",
"width": "4.17px"
},
"type": "path"
},
{
"d": "M129.167,116.685l23.284,-0",
"fill": {
"paint": "transparent"
},
"name": "path",
"stroke": {
"linecap": "butt",
"width": "4.17px"
},
"type": "path"
},
{
"d": "M54.167,129.107l-8.208,-12.536l8.208,-12.536",
"fill": {
"paint": "transparent"
},
"name": "path",
"stroke": {
"linecap": "butt",
"linejoin": "bevel",
"width": "4.17px"
},
"type": "path"
},
{
"d": "M62.375,129.183l-8.208,-12.536l8.208,-12.536",
"fill": {
"paint": "transparent"
},
"name": "path",
"stroke": {
"linecap": "butt",
"linejoin": "bevel",
"width": "4.17px"
},
"type": "path"
},
{
"d": "M154.871,104.187l8.208,12.536l-8.208,12.536",
"fill": {
"paint": "transparent"
},
"name": "path",
"stroke": {
"linecap": "butt",
"linejoin": "bevel",
"width": "4.17px"
},
"type": "path"
},
{
"d": "M146.663,104.111l8.208,12.536l-8.208,12.536",
"fill": {
"paint": "transparent"
},
"name": "path",
"stroke": {
"linecap": "butt",
"linejoin": "bevel",
"width": "4.17px"
},
"type": "path"
}
],
"id": "CB",
"name": "CB",
"type": "group"
},
{
"elements": [
{
"name": "group",
"transform": "matrix(23.3333,0,0,23.3333,139.077,16.7708)",
"type": "group"
},
{
"name": "text",
"style": {
"fontFamily": "\u0027ArialMT\u0027, \u0027Arial\u0027",
"fontSize": "23.333px"
},
"type": "text",
"x": "57.354px",
"y": "16.771px"
},
{
"name": "group",
"transform": "matrix(23.3333,0,0,23.3333,137.345,37.6042)",
"type": "group"
},
{
"name": "text",
"style": {
"fontFamily": "\u0027ArialMT\u0027, \u0027Arial\u0027",
"fontSize": "23.333px"
},
"type": "text",
"x": "57.354px",
"y": "37.604px"
},
{
"name": "group",
"transform": "matrix(23.3333,0,0,23.3333,157.762,58.6654)",
"type": "group"
},
{
"name": "text",
"style": {
"fontFamily": "\u0027ArialMT\u0027, \u0027Arial\u0027",
"fontSize": "23.333px"
},
"type": "text",
"x": "56.624px",
"y": "58.665px"
},
{
"name": "group",
"transform": "matrix(23.3333,0,0,23.3333,123.901,79.4873)",
"type": "group"
},
{
"name": "text",
"style": {
"fontFamily": "\u0027ArialMT\u0027, \u0027Arial\u0027",
"fontSize": "23.333px"
},
"type": "text",
"x": "56.488px",
"y": "79.487px"
}
],
"id": "TagID-Plate",
"name": "TagID-Plate",
"type": "group"
}
],
"fill": {
"rule": "evenodd"
},
"stroke": {
"linecap": "round",
"linejoin": "round",
"miterlimit": "1.5"
},
"style": {
"classes": "containers/HoverOver",
"clipRule": "evenodd"
},
"viewBox": "0 0 250 163"
},
"type": "ia.shapes.svg"
},
{
"meta": {
"name": "DL_Right"
},
"position": {
"height": 13,
"width": 40,
"x": 63.4,
"y": 15.6
},
"propConfig": {
"meta.visible": {
"binding": {
"config": {
"expression": "!{view.params.textHandler.DL_Left_Right}"
},
"type": "expr"
}
},
"props.text": {
"binding": {
"config": {
"path": "view.params.textHandler.DeviceLabel"
},
"type": "property"
}
},
"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": "DL_Left"
},
"position": {
"height": 13,
"width": 40,
"x": -15.6,
"y": 15.6
},
"propConfig": {
"meta.visible": {
"binding": {
"config": {
"expression": "{view.params.textHandler.DL_Left_Right}"
},
"type": "expr"
}
},
"props.text": {
"binding": {
"config": {
"path": "view.params.textHandler.DeviceLabel"
},
"type": "property"
}
},
"props.textStyle.color": {
"binding": {
"config": {
"path": "view.params.textColor"
},
"type": "property"
}
}
},
"props": {
"alignVertical": "bottom",
"textStyle": {
"fontFamily": "inherit",
"fontSize": 6,
"textAlign": "right"
}
},
"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": {
"overflow": "hidden"
}
},
"type": "ia.container.coord"
}
}