Files
Oracle-TX11-TX21/gateway_frontend/projects/.resources/069b6df086dfa07c5627a6b2d4b84e2c97c4639f7d14555d4a971ce1ee5bcc0e

345 lines
8.8 KiB
Plaintext

{
"custom": {
"alarm_active": 7,
"udt_type": "_template"
},
"params": {
"tagPath": "[Ignition_TX21_BE]DM11/TX21_DM11_CDU02"
},
"propConfig": {
"custom.alarm_active": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"tagPath": "{view.params.tagPath}"
},
"tagPath": "{tagPath}/Alarm Metrics.activeUnackCount"
},
"type": "tag"
},
"persistent": true
},
"custom.udt_type": {
"binding": {
"config": {
"path": "view.params.tagPath"
},
"enabled": false,
"transforms": [
{
"code": "\tconfig \u003d system.tag.getConfiguration(value, 0)\n\treturn config[0][\u0027typeId\u0027].split(\u0027/\u0027)[-1]",
"type": "script"
}
],
"type": "property"
},
"persistent": true
},
"params.tagPath": {
"paramDirection": "input",
"persistent": true
}
},
"props": {},
"root": {
"children": [
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"grow": 1,
"shrink": 0
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"path": "view.params.tagPath"
},
"enabled": false,
"type": "property"
}
}
},
"props": {
"style": {
"classes": "Common/Static/text"
},
"text": "script ran"
},
"type": "ia.display.label"
},
{
"events": {
"dom": {
"onClick": {
"config": {
"id": "L4",
"type": "close"
},
"scope": "C",
"type": "dock"
}
}
},
"meta": {
"name": "Icon"
},
"position": {
"basis": "30px",
"shrink": 0
},
"props": {
"path": "material/close",
"style": {
"color": "var(--icon)"
}
},
"type": "ia.display.icon"
}
],
"meta": {
"name": "Information"
},
"position": {
"basis": "30px",
"shrink": 0
},
"props": {
"style": {
"padding": "var(--space-xs)"
}
},
"type": "ia.container.flex"
},
{
"meta": {
"name": "Divider_1"
},
"position": {
"basis": "1px"
},
"props": {
"style": {
"border": "var(--container-border)",
"classes": "Common/Static/text_muted"
}
},
"type": "ia.display.label"
},
{
"children": [
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"basis": "90%"
},
"props": {
"style": {
"classes": "Common/Static/Text"
},
"text": "Active Alarms"
},
"type": "ia.display.label"
},
{
"events": {
"dom": {
"onClick": {
"config": {
"script": "\tself.parent.parent.parent.getChild(\"AlarmsSection\").custom.is_collapsed \u003d not self.parent.parent.parent.getChild(\"AlarmsSection\").custom.is_collapsed"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Icon"
},
"position": {
"basis": "30px"
},
"propConfig": {
"props.path": {
"binding": {
"config": {
"path": "..../AlarmsSection.custom.is_collapsed"
},
"transforms": [
{
"fallback": "material/keyboard_arrow_up",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "material/keyboard_arrow_down"
},
{
"input": false,
"output": "material/keyboard_arrow_up"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "property"
}
}
},
"props": {
"style": {
"color": "var(--icon)"
}
},
"type": "ia.display.icon"
}
],
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "30px"
},
"props": {
"justify": "space-between"
},
"type": "ia.container.flex"
},
{
"meta": {
"name": "AlarmStatusTable"
},
"position": {
"grow": 1
},
"propConfig": {
"position.display": {
"binding": {
"config": {
"expression": "!{parent.custom.is_collapsed}"
},
"type": "expr"
}
}
},
"props": {
"enableAcknowledge": false,
"enableDetails": false,
"enableHeader": false,
"enableShelve": false,
"enableUnshelve": false,
"style": {
"borderTopRightRadius": "var(--border-radius)",
"boxShadow": "var(--box-shadow-2)",
"classes": "Common/Static/card"
},
"toolbar": {
"enabled": false
}
},
"type": "ia.display.alarmstatustable"
}
],
"custom": {
"is_collapsed": false
},
"meta": {
"name": "AlarmsSection"
},
"position": {
"shrink": 0
},
"props": {
"direction": "column",
"style": {
"overflow": "visible",
"padding": "var(--space-xs)"
}
},
"type": "ia.container.flex"
},
{
"meta": {
"name": "Divider_2"
},
"position": {
"basis": "1px"
},
"props": {
"style": {
"border": "var(--container-border)"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Body"
},
"position": {
"grow": 1
},
"propConfig": {
"props.params.tagpath": {
"binding": {
"config": {
"path": "view.params.tagPath"
},
"type": "property"
}
},
"props.path": {
"binding": {
"config": {
"expression": "\"Components/Faceplates/\"+ {view.custom.udt_type} +\"/body\""
},
"type": "expr"
}
}
},
"props": {
"params": {
"udt_type": "_template"
}
},
"type": "ia.display.view"
}
],
"meta": {
"name": "root"
},
"props": {
"direction": "column",
"style": {
"background": "var(--container-root)",
"gap": "var(--space-sm)",
"padding": "var(--space-sm)"
}
},
"scripts": {
"customMethods": [],
"extensionFunctions": null,
"messageHandlers": [
{
"messageType": "TAB_CHANGE",
"pageScope": true,
"script": "\t# implement your handler here\n\tself.view.custom.selected_tab \u003d payload[\u0027newTab\u0027]",
"sessionScope": false,
"viewScope": false
}
]
},
"type": "ia.container.flex"
}
}