Updated Project
This commit is contained in:
parent
cd8b7c1b89
commit
0cbd8bd5e2
File diff suppressed because it is too large
Load Diff
@ -455,7 +455,7 @@
|
|||||||
"OutDown": false,
|
"OutDown": false,
|
||||||
"OutRight": true,
|
"OutRight": true,
|
||||||
"OutUp": false,
|
"OutUp": false,
|
||||||
"view": "Windows/Tabs/Enternet Windows/DPMs/DPM Devices/MCM02/DPM2_PS2-1"
|
"view": "Windows/Tabs/Enternet Windows/DPMs/DPM Devices/MCM02/DPM2_PS2_1"
|
||||||
},
|
},
|
||||||
"path": "Windows/Tabs/Enternet Windows/Components/DPM_BLOCK"
|
"path": "Windows/Tabs/Enternet Windows/Components/DPM_BLOCK"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"base": {
|
||||||
|
"animation": {
|
||||||
|
"duration": "2.5s",
|
||||||
|
"keyframes": {
|
||||||
|
"0%": {
|
||||||
|
"boxShadow": "0 0 12px 5px rgba(255, 255, 0, 0.8)"
|
||||||
|
},
|
||||||
|
"50%": {
|
||||||
|
"boxShadow": "0 0 20px 8px rgba(255, 255, 0, 1)"
|
||||||
|
},
|
||||||
|
"100%": {
|
||||||
|
"boxShadow": "0 0 5px 2px rgba(255, 255, 0, 0.3)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -6,9 +6,9 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1759061020328
|
1760453220142
|
||||||
],
|
],
|
||||||
"$ts": 1759061020328
|
"$ts": 1760453220142
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -58,7 +58,7 @@
|
|||||||
{
|
{
|
||||||
"custom": {
|
"custom": {
|
||||||
"Severity": "High",
|
"Severity": "High",
|
||||||
"background_on": "false"
|
"background_on": "true"
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"component": {
|
"component": {
|
||||||
@ -157,7 +157,7 @@
|
|||||||
{
|
{
|
||||||
"custom": {
|
"custom": {
|
||||||
"Severity": "Medium",
|
"Severity": "Medium",
|
||||||
"background_on": "false"
|
"background_on": "true"
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"component": {
|
"component": {
|
||||||
@ -475,16 +475,16 @@
|
|||||||
"custom": {
|
"custom": {
|
||||||
"priorities": {
|
"priorities": {
|
||||||
"diagnostic": false,
|
"diagnostic": false,
|
||||||
"high": false,
|
"high": true,
|
||||||
"low": false,
|
"low": false,
|
||||||
"medium": false
|
"medium": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"system": {
|
"system": {
|
||||||
"onStartup": {
|
"onStartup": {
|
||||||
"config": {
|
"config": {
|
||||||
"script": "\tself.custom.priorities \u003d {\n\t \"diagnostic\": False,\n\t \"low\": False,\n\t \"medium\": False,\n\t \"high\": False,\n\t}"
|
"script": "\tself.custom.priorities \u003d {\n\t \"diagnostic\": False,\n\t \"low\": False,\n\t \"medium\": True,\n\t \"high\": True,\n\t}"
|
||||||
},
|
},
|
||||||
"scope": "G",
|
"scope": "G",
|
||||||
"type": "script"
|
"type": "script"
|
||||||
@ -1660,17 +1660,17 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1760375320766
|
1760443389071
|
||||||
],
|
],
|
||||||
"$ts": 1760375320765
|
"$ts": 1760443389070
|
||||||
},
|
},
|
||||||
"startDate": {
|
"startDate": {
|
||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1760375320766
|
1760443389071
|
||||||
],
|
],
|
||||||
"$ts": 1760373520765
|
"$ts": 1760441589070
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
@ -1844,7 +1844,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"formattedValue": "Oct 13, 2025 8:38 PM",
|
"formattedValue": "Oct 14, 2025 3:33 PM",
|
||||||
"style": {
|
"style": {
|
||||||
"margin": 15
|
"margin": 15
|
||||||
}
|
}
|
||||||
@ -1928,7 +1928,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"formattedValue": "Oct 13, 2025 9:08 PM",
|
"formattedValue": "Oct 14, 2025 4:03 PM",
|
||||||
"style": {
|
"style": {
|
||||||
"margin": 15
|
"margin": 15
|
||||||
},
|
},
|
||||||
@ -1936,9 +1936,9 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1760375320766
|
1760443389071
|
||||||
],
|
],
|
||||||
"$ts": 1760375320765
|
"$ts": 1760443389070
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -3282,17 +3282,17 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1760375320767
|
1760443389071
|
||||||
],
|
],
|
||||||
"$ts": 1760375320764
|
"$ts": 1760443389070
|
||||||
},
|
},
|
||||||
"startDate": {
|
"startDate": {
|
||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1760375320765
|
1760443389071
|
||||||
],
|
],
|
||||||
"$ts": 1760373520764
|
"$ts": 1760441589070
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
@ -3559,9 +3559,9 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1760375320767
|
1760443389071
|
||||||
],
|
],
|
||||||
"$ts": 1760375320764
|
"$ts": 1760443389070
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -3834,7 +3834,7 @@
|
|||||||
"$ts": 1747562336635
|
"$ts": 1747562336635
|
||||||
},
|
},
|
||||||
"page_size": 100,
|
"page_size": 100,
|
||||||
"record_count": 1701,
|
"record_count": 0,
|
||||||
"source_id_filters": null,
|
"source_id_filters": null,
|
||||||
"type_filters": null
|
"type_filters": null
|
||||||
},
|
},
|
||||||
@ -5710,7 +5710,6 @@
|
|||||||
"contentStyle": {
|
"contentStyle": {
|
||||||
"classes": "Background-Styles/Grey-Background"
|
"classes": "Background-Styles/Grey-Background"
|
||||||
},
|
},
|
||||||
"currentTabIndex": 1,
|
|
||||||
"menuType": "modern",
|
"menuType": "modern",
|
||||||
"style": {
|
"style": {
|
||||||
"classes": "Background-Styles/Grey-Background"
|
"classes": "Background-Styles/Grey-Background"
|
||||||
|
|||||||
@ -1311,6 +1311,163 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "ia.container.flex"
|
"type": "ia.container.flex"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"events": {
|
||||||
|
"component": {
|
||||||
|
"onActionPerformed": {
|
||||||
|
"config": {
|
||||||
|
"script": "\ttag_name \u003d self.view.params.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Commands/bBlockHost1\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
|
||||||
|
},
|
||||||
|
"scope": "G",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"name": "Button",
|
||||||
|
"tooltip": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "80px",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"meta.tooltip.text": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"You do not have Maintenance or Administrator role!\")"
|
||||||
|
},
|
||||||
|
"type": "expr"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"backgroundColor": "#C3C3C3",
|
||||||
|
"classes": "Background-Styles/Controller",
|
||||||
|
"color": "#000000"
|
||||||
|
},
|
||||||
|
"text": "BLOCK"
|
||||||
|
},
|
||||||
|
"type": "ia.input.button"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "Block"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "35px"
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"classes": "PopUp-Styles/InfoLabel",
|
||||||
|
"padding": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"events": {
|
||||||
|
"component": {
|
||||||
|
"onActionPerformed": {
|
||||||
|
"config": {
|
||||||
|
"script": "\ttag_name \u003d self.view.params.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Commands/bUnlockHost1\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
|
||||||
|
},
|
||||||
|
"scope": "G",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"name": "Button",
|
||||||
|
"tooltip": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "80px",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"meta.tooltip.text": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"You do not have Maintenance or Administrator role!\")"
|
||||||
|
},
|
||||||
|
"type": "expr"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"backgroundColor": "#C3C3C3",
|
||||||
|
"classes": "Background-Styles/Controller",
|
||||||
|
"color": "#000000"
|
||||||
|
},
|
||||||
|
"text": "UNBLOCK"
|
||||||
|
},
|
||||||
|
"type": "ia.input.button"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "Unblock"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "35px"
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"classes": "PopUp-Styles/InfoLabel",
|
||||||
|
"padding": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "FlexContainer_0"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "100px",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"direction": "column",
|
||||||
|
"style": {
|
||||||
|
"gap": 6,
|
||||||
|
"paddingBottom": 20,
|
||||||
|
"paddingLeft": 10,
|
||||||
|
"paddingRight": 10,
|
||||||
|
"paddingTop": 13
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "Commands"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"tabIndex": 2
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"direction": "column",
|
||||||
|
"style": {
|
||||||
|
"margin-left": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"meta": {
|
"meta": {
|
||||||
@ -1319,22 +1476,6 @@
|
|||||||
"position": {
|
"position": {
|
||||||
"grow": 1
|
"grow": 1
|
||||||
},
|
},
|
||||||
"propConfig": {
|
|
||||||
"props.tabs": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "view.custom.type"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"code": "\t# This script runs whenever view.custom.type changes\n\tif value \u003d\u003d 0 or value \u003d\u003d 3:\n\t\treturn [\"Alarms\", \"Info\"]\n\telse:\n\t\treturn [\"Alarms\", \"Info\", \"Commands\"]",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
"props": {
|
||||||
"menuType": "modern",
|
"menuType": "modern",
|
||||||
"tabSize": {
|
"tabSize": {
|
||||||
@ -1357,7 +1498,12 @@
|
|||||||
"fontWeight": "bold",
|
"fontWeight": "bold",
|
||||||
"paddingLeft": 10
|
"paddingLeft": 10
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"tabs": [
|
||||||
|
"Alarms",
|
||||||
|
"Info",
|
||||||
|
"Commands"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"type": "ia.container.tab"
|
"type": "ia.container.tab"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3159,7 +3159,7 @@
|
|||||||
"grow": 1
|
"grow": 1
|
||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"currentTabIndex": 1,
|
"currentTabIndex": 2,
|
||||||
"menuType": "modern",
|
"menuType": "modern",
|
||||||
"tabSize": {
|
"tabSize": {
|
||||||
"width": 1000
|
"width": 1000
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"custom": {
|
"custom": {
|
||||||
"color": "#FFFF00",
|
"color": "#000000",
|
||||||
"priority": "Low",
|
"priority": "No Active Alarms",
|
||||||
"state": "Half Full"
|
"state": "Inactive"
|
||||||
},
|
},
|
||||||
"params": {
|
"params": {
|
||||||
"tagProps": [
|
"tagProps": [
|
||||||
"Status/Chute/Chute_68",
|
"Status/Chute/Chute_1",
|
||||||
"value",
|
"value",
|
||||||
"value",
|
"value",
|
||||||
"value",
|
"value",
|
||||||
@ -32,7 +32,7 @@
|
|||||||
},
|
},
|
||||||
"transforms": [
|
"transforms": [
|
||||||
{
|
{
|
||||||
"code": "\n data \u003d dict(value) if value else {}\n\n if data.get(\"Jam\"):\n return \"#FF8C00\"\n elif data.get(\"Full\"):\n return \"#0000FF\"\n elif data.get(\"Half_Full\"):\n return \"#FFFF00\"\n elif data.get(\"No_Container\"):\n return \"#D3D3D3\"\n elif data.get(\"Disabled\") \u003d\u003d False:\n return \"#CCFFCC\"\n else:\n return \"#808080\"",
|
"code": "\n data \u003d dict(value) if value else {}\n\n if data.get(\"Jam\"):\n return \"#FFA500\"\n elif data.get(\"Full\"):\n return \"#0000FF\"\n elif data.get(\"Half_Full\"):\n return \"#FFFF00\"\n elif data.get(\"No_Container\"):\n return \"#C2C2C2\"\n elif data.get(\"Disabled\") \u003d\u003d False:\n return \"#00FF00\"\n else:\n return \"#000000\"",
|
||||||
"type": "script"
|
"type": "script"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -53,7 +53,7 @@
|
|||||||
},
|
},
|
||||||
"transforms": [
|
"transforms": [
|
||||||
{
|
{
|
||||||
"code": "\tdata \u003d dict(value) if value else {}\n\t\n\tif data.get(\"Jam\"):\n\t return \"High\"\n\telif data.get(\"Full\"):\n\t return \"Low\"\n\telif data.get(\"Half_Full\"):\n\t return \"Low\"\n\telif data.get(\"No_Container\"):\n\t return \"Low\"\n\telif data.get(\"Disabled\") \u003d\u003d False:\n\t return \"No Active Alarms\"\n\telse:\n\t return \"No Active Alarms\"\n\t\n\treturn \"No Active Alarms\"",
|
"code": "\tdata \u003d dict(value) if value else {}\n\t\n\tif data.get(\"Jam\"):\n\t return \"High\"\n\telif data.get(\"Full\"):\n\t return \"Low\"\n\telif data.get(\"Half_Full\"):\n\t return \"Low\"\n\telif data.get(\"No_Container\"):\n\t return \"Low\"\n\telif data.get(\"Disabled\") \u003d\u003d False:\n\t return \"No Active Alarms\"\n\t\n\treturn \"No Active Alarms\"",
|
||||||
"type": "script"
|
"type": "script"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"scope": "G",
|
||||||
|
"version": 1,
|
||||||
|
"restricted": false,
|
||||||
|
"overridable": true,
|
||||||
|
"files": [
|
||||||
|
"view.json"
|
||||||
|
],
|
||||||
|
"attributes": {
|
||||||
|
"lastModification": {
|
||||||
|
"actor": "admin",
|
||||||
|
"timestamp": "2025-10-14T17:58:50Z"
|
||||||
|
},
|
||||||
|
"lastModificationSignature": "16432e6c47476b70c892793cfa3f8b07686a5ad920dd73a6c0ba89846df88914"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,186 @@
|
|||||||
|
{
|
||||||
|
"custom": {
|
||||||
|
"color": "#00FF00",
|
||||||
|
"priority": "No Active Alarms",
|
||||||
|
"state": "Enabled"
|
||||||
|
},
|
||||||
|
"params": {
|
||||||
|
"tagProps": [
|
||||||
|
"Status/Chute/Chute_1",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"custom.color": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"fallbackDelay": 2.5,
|
||||||
|
"mode": "indirect",
|
||||||
|
"references": {
|
||||||
|
"0": "{view.params.tagProps[0]}",
|
||||||
|
"fc": "{session.custom.fc}"
|
||||||
|
},
|
||||||
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"code": "\n data \u003d dict(value) if value else {}\n\n if data.get(\"Jam\"):\n return \"#FFA500\"\n elif data.get(\"Full\"):\n return \"#0000FF\"\n elif data.get(\"Half_Full\"):\n return \"#FFFF00\"\n elif data.get(\"No_Container\"):\n return \"#C2C2C2\"\n elif data.get(\"Disabled\") \u003d\u003d False:\n return \"#00FF00\"\n else:\n return \"#000000\"",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "tag"
|
||||||
|
},
|
||||||
|
"persistent": true
|
||||||
|
},
|
||||||
|
"custom.priority": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"fallbackDelay": 2.5,
|
||||||
|
"mode": "indirect",
|
||||||
|
"references": {
|
||||||
|
"0": "{view.params.tagProps[0]}",
|
||||||
|
"fc": "{session.custom.fc}"
|
||||||
|
},
|
||||||
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"code": "\tdata \u003d dict(value) if value else {}\n\t\n\tif data.get(\"Jam\"):\n\t return \"High\"\n\telif data.get(\"Full\"):\n\t return \"Low\"\n\telif data.get(\"Half_Full\"):\n\t return \"Low\"\n\telif data.get(\"No_Container\"):\n\t return \"Low\"\n\telif data.get(\"Disabled\") \u003d\u003d False:\n\t return \"No Active Alarms\"\n\t\n\treturn \"No Active Alarms\"",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "tag"
|
||||||
|
},
|
||||||
|
"persistent": true
|
||||||
|
},
|
||||||
|
"custom.state": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"fallbackDelay": 2.5,
|
||||||
|
"mode": "indirect",
|
||||||
|
"references": {
|
||||||
|
"0": "{view.params.tagProps[0]}",
|
||||||
|
"fc": "{session.custom.fc}"
|
||||||
|
},
|
||||||
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"code": " data \u003d dict(value) if value else {}\n\n if data.get(\"Jam\"):\n return \"Jammed\"\n elif data.get(\"Full\"):\n return \"Full\"\n elif data.get(\"Half_Full\"):\n return \"Half Full\"\n elif data.get(\"No_Container\"):\n return \"No Container\"\n elif data.get(\"Disabled\") \u003d\u003d False:\n return \"Enabled\"\n else:\n return \"Inactive\"",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "tag"
|
||||||
|
},
|
||||||
|
"persistent": true
|
||||||
|
},
|
||||||
|
"params.tagProps": {
|
||||||
|
"paramDirection": "inout",
|
||||||
|
"persistent": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"defaultSize": {
|
||||||
|
"height": 52,
|
||||||
|
"width": 19
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"name": "CoordinateContainer"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "200px"
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"props.style.backgroundColor": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "view.custom.color"
|
||||||
|
},
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.container.coord"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"events": {
|
||||||
|
"dom": {
|
||||||
|
"onClick": {
|
||||||
|
"config": {
|
||||||
|
"script": "\tsystem.perspective.openDock(\u0027Docked-East-CH\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})"
|
||||||
|
},
|
||||||
|
"scope": "G",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"name": "root",
|
||||||
|
"tooltip": {
|
||||||
|
"enabled": true,
|
||||||
|
"location": "top-left",
|
||||||
|
"style": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"meta.tooltip.style.classes": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"expression": "{view.custom.priority}"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"fallback": "Alarms-Styles/NoAlarm",
|
||||||
|
"inputType": "scalar",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"input": "High",
|
||||||
|
"output": "Alarms-Styles/High"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "Medium",
|
||||||
|
"output": "Alarms-Styles/Medium"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "Low",
|
||||||
|
"output": "Alarms-Styles/Low"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "Diagnostic",
|
||||||
|
"output": "Alarms-Styles/Diagnostic"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputType": "style-list",
|
||||||
|
"type": "map"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "expr"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta.tooltip.text": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"expression": "if(\n {view.custom.state} !\u003d \"TagError\",\n \"Source Id: \" + {view.params.tagProps[1]} + \", Priority: \" + {view.custom.priority} + \", State: \" + {view.custom.state},\n \"Device Disconnected\"\n)\n"
|
||||||
|
},
|
||||||
|
"type": "expr"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"justify": "center"
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"custom": {
|
"custom": {
|
||||||
"color": "#808080",
|
"color": "#000000",
|
||||||
"priority": "No Active Alarms",
|
"priority": "No Active Alarms",
|
||||||
"state": "Closed",
|
"state": "Closed",
|
||||||
"type": 0
|
"type": 0
|
||||||
@ -38,7 +38,7 @@
|
|||||||
"type": "expression"
|
"type": "expression"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fallback": "#808080",
|
"fallback": "#000000",
|
||||||
"inputType": "scalar",
|
"inputType": "scalar",
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user