Files
Stream_PHX_A7/Gateways/FE/projects/.resources/291919c906ad3a643b9814dc59e48a77a497ce8cc4114a8ad312655e6de10e47

234 lines
6.0 KiB
Plaintext

{
"custom": {
"AlarmSeverity": null,
"Val": null
},
"params": {
"FalseText": "No Leak Detected",
"TrueText": "Leak Detected",
"objectName": "DiscreteIn",
"tagPath": "[Ignition_Common_IO_Gtwy]DH5/SATB1_GAL1181_STU_LD"
},
"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.Val": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/Val"
},
"type": "tag"
},
"persistent": true
},
"params.FalseText": {
"paramDirection": "input",
"persistent": true
},
"params.TrueText": {
"paramDirection": "input",
"persistent": true
},
"params.objectName": {
"paramDirection": "input",
"persistent": true
},
"params.tagPath": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 30,
"width": 250
}
},
"root": {
"children": [
{
"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)\t"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Label"
},
"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": "solid",
"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.text": {
"binding": {
"config": {
"expression": "if({view.custom.Val}, {view.params.TrueText}, {view.params.FalseText})"
},
"type": "expr"
}
}
},
"props": {
"style": {
"classes": "containers/HoverOver",
"padding": "0 5px"
},
"textStyle": {
"color": "var(--tagvalue-color)",
"fontSize": 12
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "EmbeddedView"
},
"position": {
"basis": "0.1%",
"grow": 1
},
"propConfig": {
"props.params.AlarmSeverity": {
"binding": {
"config": {
"path": "view.custom.AlarmSeverity"
},
"type": "property"
}
}
},
"props": {
"path": "Library/Alarms/Icons",
"style": {
"marginLeft": -8,
"marginTop": -12,
"overflow": "visible"
},
"useDefaultViewHeight": true,
"useDefaultViewWidth": true
},
"type": "ia.display.view"
}
],
"meta": {
"name": "root"
},
"props": {
"style": {
"overflow": "visible"
}
},
"type": "ia.container.flex"
}
}