{ "custom": { "AlarmSeverity": 1, "DepletingTime": null, "Mode": null, "TES_Color": "var(--state-faulted)", "shownTime": 0 }, "params": { "TES": [ "TES01", "TES02", "TES03" ], "objectName": "TES", "tagPath": "[Ignition_Common_IO_Gtwy]MPR1140/SATB1_DH5_Thermal_System" }, "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" }, "persistent": true }, "custom.DepletingTime": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Depleting Elapsed Time" }, "type": "tag" }, "persistent": true }, "custom.ElapsedTime": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Recharge Fail Elapsed Time" }, "type": "tag" } }, "custom.Mode": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Mode" }, "type": "tag" }, "persistent": true }, "custom.TES_Color": { "binding": { "config": { "expression": "if({view.custom.AlarmSeverity}\u003e0, 5, {view.custom.Mode})" }, "transforms": [ { "fallback": "purple", "inputType": "scalar", "mappings": [ { "input": 0, "output": "var(--state-standby)" }, { "input": 1, "output": "var(--state-running)" }, { "input": 2, "output": "var(--state-faulted)" }, { "input": 3, "output": "var(--hpBlue)" }, { "input": 5, "output": "var(--state-faulted)" } ], "outputType": "scalar", "type": "map" } ], "type": "expr" }, "persistent": true }, "custom.shownTime": { "binding": { "config": { "struct": { "depleting": "{view.custom.DepletingTime}", "elapsed": "{view.custom.ElapsedTime}" }, "waitOnAll": true }, "transforms": [ { "code": "\tif value[\"depleting\"] \u003e 0:\n\t\toutput \u003d value[\"depleting\"]\n\telif value[\"elapsed\"] \u003e 0:\n\t\toutput \u003d value[\"elapsed\"]\n\telse:\n\t\toutput \u003d 0\n\treturn output", "type": "script" } ], "type": "expr-struct" }, "persistent": true }, "params.TES": { "paramDirection": "input", "persistent": true }, "params.objectName": { "paramDirection": "input", "persistent": true }, "params.tagPath": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 97, "width": 300 } }, "root": { "children": [ { "meta": { "name": "Label" }, "position": { "height": 17, "rotate": { "anchor": "25% 25%" }, "width": 50, "x": 228, "y": -2 }, "propConfig": { "props.text": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Mode" }, "transforms": [ { "fallback": "Unknown", "inputType": "scalar", "mappings": [ { "input": 0, "output": "Off" }, { "input": 1, "output": "Normal" }, { "input": 2, "output": "Depleted" }, { "input": 3, "output": "Recharging" } ], "outputType": "scalar", "type": "map" } ], "type": "tag" } } }, "props": { "style": { "overflow": "visible" }, "textStyle": { "color": "var(--tagvalue-color)", "fontFamily": "Arial", "fontSize": 12 } }, "type": "ia.display.label" }, { "meta": { "name": "Text" }, "position": { "height": 17, "rotate": { "anchor": "25% 25%" }, "width": 50, "x": 239, "y": 21 }, "propConfig": { "meta.visible": { "binding": { "config": { "path": "view.custom.shownTime" }, "transforms": [ { "code": "\tif value \u003e 0:\n\t\toutput \u003d True\n\telse:\n\t\toutput \u003d False\n\treturn output", "type": "script" } ], "type": "property" } }, "props.text": { "binding": { "config": { "path": "view.custom.Mode" }, "transforms": [ { "fallback": "", "inputType": "scalar", "mappings": [ { "input": 0, "output": false }, { "input": 1, "output": "Depleting" }, { "input": 2, "output": "" }, { "input": 3, "output": "Fail Elapsed" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } } }, "props": { "style": { "overflow": "visible" }, "textStyle": { "fontFamily": "Arial", "fontSize": 12 } }, "type": "ia.display.label" }, { "meta": { "name": "EU" }, "position": { "height": 17, "rotate": { "anchor": "25% 25%" }, "width": 25, "x": 262.99, "y": 40 }, "propConfig": { "meta.visible": { "binding": { "config": { "path": "view.custom.shownTime" }, "transforms": [ { "code": "\tif value \u003e 0:\n\t\toutput \u003d True\n\telse:\n\t\toutput \u003d False\n\treturn output", "type": "script" } ], "type": "property" } } }, "props": { "style": { "overflow": "visible" }, "text": "sec", "textStyle": { "fontFamily": "Arial", "fontSize": 12 } }, "type": "ia.display.label" }, { "meta": { "name": "Variable" }, "position": { "height": 17, "rotate": { "anchor": "25% 25%" }, "width": 33, "x": 233, "y": 40 }, "propConfig": { "meta.visible": { "binding": { "config": { "path": "view.custom.shownTime" }, "transforms": [ { "code": "\tif value \u003e 0:\n\t\toutput \u003d True\n\telse:\n\t\toutput \u003d False\n\treturn output", "type": "script" } ], "type": "property" } }, "props.text": { "binding": { "config": { "path": "view.custom.shownTime" }, "type": "property" } } }, "props": { "style": { "overflow": "visible" }, "textStyle": { "color": "var(--tagvalue-color)", "fontFamily": "Arial", "fontSize": 12, "textAlign": "center" } }, "type": "ia.display.label" }, { "meta": { "name": "TES" }, "position": { "height": 70, "width": 55, "x": -2, "y": 10 }, "propConfig": { "props.elements[0].elements[0].fill.paint": { "binding": { "config": { "path": "view.custom.TES_Color" }, "type": "property" } }, "props.elements[0].elements[1].fill.paint": { "binding": { "config": { "path": "view.custom.TES_Color" }, "type": "property" } }, "props.elements[0].elements[2].fill.paint": { "binding": { "config": { "path": "view.custom.TES_Color" }, "type": "property" } } }, "props": { "elements": [ { "elements": [ { "fill": {}, "height": "40.833", "name": "rect", "stroke": { "paint": "#000", "width": "0.75px" }, "type": "rect", "width": "37.5", "x": "0.417", "y": "6.25" }, { "d": "M37.911,5.978C37.673,2.896 29.365,0.417 19.167,0.417C8.968,0.417 0.66,2.896 0.422,5.978L37.911,5.978Z", "fill": {}, "name": "path", "stroke": { "paint": "#000", "width": "0.83px" }, "type": "path" }, { "d": "M37.906,47.083C37.668,50.165 29.36,52.644 19.161,52.644C8.963,52.644 0.655,50.165 0.417,47.083L37.906,47.083Z", "fill": {}, "name": "path", "stroke": { "paint": "#000", "width": "0.83px" }, "type": "path" } ], "id": "TES", "name": "TES", "type": "group" } ], "fill": { "rule": "evenodd" }, "stroke": { "linecap": "round", "linejoin": "round", "miterlimit": "1.5" }, "style": { "clipRule": "evenodd", "overflow": "visible" }, "viewBox": "0 0 39 54" }, "type": "ia.shapes.svg" }, { "meta": { "name": "TES_0" }, "position": { "height": 70, "width": 55, "x": 88, "y": 10 }, "propConfig": { "props.elements[0].elements[0].fill.paint": { "binding": { "config": { "path": "view.custom.TES_Color" }, "type": "property" } }, "props.elements[0].elements[1].fill.paint": { "binding": { "config": { "path": "view.custom.TES_Color" }, "type": "property" } }, "props.elements[0].elements[2].fill.paint": { "binding": { "config": { "path": "view.custom.TES_Color" }, "type": "property" } } }, "props": { "elements": [ { "elements": [ { "fill": {}, "height": "40.833", "name": "rect", "stroke": { "paint": "#000", "width": "0.75px" }, "type": "rect", "width": "37.5", "x": "0.417", "y": "6.25" }, { "d": "M37.911,5.978C37.673,2.896 29.365,0.417 19.167,0.417C8.968,0.417 0.66,2.896 0.422,5.978L37.911,5.978Z", "fill": {}, "name": "path", "stroke": { "paint": "#000", "width": "0.83px" }, "type": "path" }, { "d": "M37.906,47.083C37.668,50.165 29.36,52.644 19.161,52.644C8.963,52.644 0.655,50.165 0.417,47.083L37.906,47.083Z", "fill": {}, "name": "path", "stroke": { "paint": "#000", "width": "0.83px" }, "type": "path" } ], "id": "TES", "name": "TES", "type": "group" } ], "fill": { "rule": "evenodd" }, "stroke": { "linecap": "round", "linejoin": "round", "miterlimit": "1.5" }, "style": { "clipRule": "evenodd", "overflow": "visible" }, "viewBox": "0 0 39 54" }, "type": "ia.shapes.svg" }, { "meta": { "name": "TES_1" }, "position": { "height": 70, "width": 55, "x": 177, "y": 10 }, "propConfig": { "props.elements[0].elements[0].fill.paint": { "binding": { "config": { "path": "view.custom.TES_Color" }, "type": "property" } }, "props.elements[0].elements[1].fill.paint": { "binding": { "config": { "path": "view.custom.TES_Color" }, "type": "property" } }, "props.elements[0].elements[2].fill.paint": { "binding": { "config": { "path": "view.custom.TES_Color" }, "type": "property" } } }, "props": { "elements": [ { "elements": [ { "fill": {}, "height": "40.833", "name": "rect", "stroke": { "paint": "#000", "width": "0.75px" }, "type": "rect", "width": "37.5", "x": "0.417", "y": "6.25" }, { "d": "M37.911,5.978C37.673,2.896 29.365,0.417 19.167,0.417C8.968,0.417 0.66,2.896 0.422,5.978L37.911,5.978Z", "fill": {}, "name": "path", "stroke": { "paint": "#000", "width": "0.83px" }, "type": "path" }, { "d": "M37.906,47.083C37.668,50.165 29.36,52.644 19.161,52.644C8.963,52.644 0.655,50.165 0.417,47.083L37.906,47.083Z", "fill": {}, "name": "path", "stroke": { "paint": "#000", "width": "0.83px" }, "type": "path" } ], "id": "TES", "name": "TES", "type": "group" } ], "fill": { "rule": "evenodd" }, "stroke": { "linecap": "round", "linejoin": "round", "miterlimit": "1.5" }, "style": { "clipRule": "evenodd", "overflow": "visible" }, "viewBox": "0 0 39 54" }, "type": "ia.shapes.svg" }, { "meta": { "name": "Label_3" }, "position": { "height": 17, "rotate": { "anchor": "25% 25%" }, "width": 50, "x": 37.9988, "y": 79 }, "propConfig": { "props.text": { "binding": { "config": { "path": "view.params.TES[0]" }, "type": "property" } } }, "props": { "style": { "overflow": "visible" }, "textStyle": { "fontFamily": "Arial", "fontSize": 12 } }, "type": "ia.display.label" }, { "meta": { "name": "Label_4" }, "position": { "height": 17, "rotate": { "anchor": "25% 25%" }, "width": 50, "x": 126.995, "y": 79 }, "propConfig": { "props.text": { "binding": { "config": { "path": "view.params.TES[1]" }, "type": "property" } } }, "props": { "style": { "overflow": "visible" }, "textStyle": { "fontFamily": "Arial", "fontSize": 12 } }, "type": "ia.display.label" }, { "meta": { "name": "Label_5" }, "position": { "height": 17, "rotate": { "anchor": "25% 25%" }, "width": 50, "x": 216.995, "y": 79 }, "propConfig": { "props.text": { "binding": { "config": { "path": "view.params.TES[2]" }, "type": "property" } } }, "props": { "style": { "overflow": "visible" }, "textStyle": { "fontFamily": "Arial", "fontSize": 12 } }, "type": "ia.display.label" }, { "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": "AlarmBorder" }, "position": { "height": 72, "width": 230, "y": 9 }, "propConfig": { "props.style.outlineColor": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "transforms": [ { "fallback": "none", "inputType": "scalar", "mappings": [ { "input": -1, "output": "white" }, { "input": 0, "output": "white" }, { "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.style.outlineStyle": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "transforms": [ { "fallback": "none", "inputType": "scalar", "mappings": [ { "input": -1, "output": "none" }, { "input": 0, "output": "none" }, { "input": 1, "output": "solid" }, { "input": 2, "output": "solid" }, { "input": 3, "output": "solid" }, { "input": 4, "output": "solid" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } } }, "props": { "style": { "classes": "containers/HoverOver" } }, "type": "ia.display.label" }, { "meta": { "name": "EmbeddedView" }, "position": { "height": "auto", "width": "auto", "x": 222, "y": -10 }, "propConfig": { "props.params.AlarmSeverity": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "type": "property" } } }, "props": { "path": "Library/Alarms/Icons", "useDefaultViewHeight": true, "useDefaultViewWidth": true }, "type": "ia.display.view" } ], "meta": { "name": "root" }, "position": { "x": 20, "y": 0 }, "props": { "style": { "overflow": "visible" } }, "type": "ia.container.coord" } }