1181 lines
42 KiB
Plaintext
1181 lines
42 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 373,
|
|
"width": 400
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Label"
|
|
},
|
|
"position": {
|
|
"basis": "36px",
|
|
"shrink": 0
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"background-color": "#555555",
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
},
|
|
"text": "Status Filters"
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"custom": {
|
|
"buttonid": "status_filters/all"
|
|
},
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": [
|
|
{
|
|
"config": {
|
|
"script": "\tpayload \u003d {}\n\tif self.props.selected:\n\t\tvalue \u003d True\n\telse:\n\t\tvalue \u003d False\n\t\n\tpayload[\"data\"] \u003d value\n\t\n\tsystem.perspective.sendMessage(\"select-all-filters\", \n\t\t\t\t\t\t\t\t\tpayload \u003d payload, \n\t\t\t\t\t\t\t\t\tscope \u003d \"view\")"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
},
|
|
{
|
|
"config": {
|
|
"script": "\tif not self.props.selected:\n\t\tbuttonid \u003d self.custom.buttonid\n\t\tactivityLog.logger.callLogger(self.view, \u0027click\u0027, buttonid)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Select-All",
|
|
"tooltip": {
|
|
"delay": 250
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "36px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({session.custom.alarm_filter.show_map}\u003dTrue \u0026\u0026 {session.custom.view_in_focus}\u003d\u0027/MAP-Home\u0027, True, False)"
|
|
},
|
|
"enabled": false,
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({session.custom.alarm_filter.show_dpm_mcm} \u0026\u0026 \r\n{session.custom.alarm_filter.show_beacons} \u0026\u0026\r\n{session.custom.alarm_filter.show_VFD} \u0026\u0026\r\n{session.custom.alarm_filter.show_buttons} \u0026\u0026\r\n{session.custom.alarm_filter.show_photoeyes} \u0026\u0026\r\n{session.custom.alarm_filter.show_encoders} \u0026\u0026\r\n{session.custom.alarm_filter.show_epc} \u0026\u0026\r\n{session.custom.alarm_filter.show_px} \u0026\u0026\r\n{session.custom.alarm_filter.show_camera_jams} \u0026\u0026\r\n{session.custom.alarm_filter.show_solenoids} \u0026\u0026\r\n{session.custom.alarm_filter.show_fio_safety}, True, False)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"checkedIcon": {
|
|
"color": {
|
|
"disabled": "#FFFFFF",
|
|
"enabled": "#FFFFFF"
|
|
}
|
|
},
|
|
"style": {
|
|
"color": "#FFFFFF",
|
|
"fontFamily": "Arial",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"marginLeft": 10,
|
|
"marginRight": 10
|
|
},
|
|
"text": "Select All"
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
},
|
|
{
|
|
"custom": {
|
|
"buttonid": "status_filters/running_status"
|
|
},
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tif not self.props.selected:\n\t\tbuttonid \u003d self.custom.buttonid\n\t\tactivityLog.logger.callLogger(self.view, \u0027click\u0027, buttonid)\n\t\tactivityLog.productMetrics.callLogger(self.view, \u0027click\u0027, buttonid)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Running",
|
|
"tooltip": {
|
|
"delay": 250
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "36px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({session.custom.alarm_filter.show_map}\u003dTrue \u0026\u0026 {session.custom.view_in_focus}\u003d\u0027/MAP-Home\u0027, True, False)"
|
|
},
|
|
"enabled": false,
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "session.custom.alarm_filter.show_VFD"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"checkedIcon": {
|
|
"color": {
|
|
"disabled": "#FFFFFF",
|
|
"enabled": "#FFFFFF"
|
|
}
|
|
},
|
|
"style": {
|
|
"color": "#FFFFFF",
|
|
"fontFamily": "Arial",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"marginLeft": 10,
|
|
"marginRight": 10
|
|
},
|
|
"text": "Show VFD"
|
|
},
|
|
"scripts": {
|
|
"customMethods": [],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": [
|
|
{
|
|
"messageType": "select-all-filters",
|
|
"pageScope": false,
|
|
"script": "\tdata \u003d payload[\"data\"]\n\tself.props.selected \u003d data",
|
|
"sessionScope": false,
|
|
"viewScope": true
|
|
}
|
|
]
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
},
|
|
{
|
|
"custom": {
|
|
"buttonid": "status_filters/low_alarms"
|
|
},
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tif not self.props.selected:\n\t\tbuttonid \u003d self.custom.buttonid\n\t\tactivityLog.logger.callLogger(self.view, \u0027click\u0027, buttonid)\n\t\tactivityLog.productMetrics.callLogger(self.view, \u0027click\u0027, buttonid)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Show-Buttons",
|
|
"tooltip": {
|
|
"delay": 250
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "36px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({session.custom.alarm_filter.show_map}\u003dTrue \u0026\u0026 {session.custom.view_in_focus}\u003d\u0027/MAP-Home\u0027, True, False)"
|
|
},
|
|
"enabled": false,
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "session.custom.alarm_filter.show_buttons"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"checkedIcon": {
|
|
"color": {
|
|
"disabled": "#FFFFFF",
|
|
"enabled": "#FFFFFF"
|
|
}
|
|
},
|
|
"style": {
|
|
"color": "#FFFFFF",
|
|
"fontFamily": "Arial",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"marginLeft": 10,
|
|
"marginRight": 10
|
|
},
|
|
"text": "Show Buttons"
|
|
},
|
|
"scripts": {
|
|
"customMethods": [],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": [
|
|
{
|
|
"messageType": "select-all-filters",
|
|
"pageScope": false,
|
|
"script": "\tdata \u003d payload[\"data\"]\n\tself.props.selected \u003d data\n\tsystem.perspective.print(data)",
|
|
"sessionScope": false,
|
|
"viewScope": true
|
|
}
|
|
]
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
},
|
|
{
|
|
"custom": {
|
|
"buttonid": "status_filters/estops_pullChords"
|
|
},
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tif not self.props.selected:\n\t\tbuttonid \u003d self.custom.buttonid\n\t\tactivityLog.logger.callLogger(self.view, \u0027click\u0027, buttonid)\n\t\tactivityLog.productMetrics.callLogger(self.view, \u0027click\u0027, buttonid)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "E-Stops",
|
|
"tooltip": {
|
|
"delay": 250
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "36px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({session.custom.alarm_filter.show_map}\u003dTrue \u0026\u0026 {session.custom.view_in_focus}\u003d\u0027/MAP-Home\u0027, True, False)"
|
|
},
|
|
"enabled": false,
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "session.custom.alarm_filter.show_epc"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"checkedIcon": {
|
|
"color": {
|
|
"disabled": "#FFFFFF",
|
|
"enabled": "#FFFFFF"
|
|
}
|
|
},
|
|
"style": {
|
|
"color": "#FFFFFF",
|
|
"fontFamily": "Arial",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"marginLeft": 10,
|
|
"marginRight": 10
|
|
},
|
|
"text": "Show E-Stops \u0026 Pull Chords"
|
|
},
|
|
"scripts": {
|
|
"customMethods": [],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": [
|
|
{
|
|
"messageType": "select-all-filters",
|
|
"pageScope": false,
|
|
"script": "\tdata \u003d payload[\"data\"]\n\tself.props.selected \u003d data",
|
|
"sessionScope": false,
|
|
"viewScope": true
|
|
}
|
|
]
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
},
|
|
{
|
|
"custom": {
|
|
"buttonid": "status_filters/gateways"
|
|
},
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tif not self.props.selected:\n\t\tbuttonid \u003d self.custom.buttonid\n\t\tactivityLog.logger.callLogger(self.view, \u0027click\u0027, buttonid)\n\t\tactivityLog.productMetrics.callLogger(self.view, \u0027click\u0027, buttonid)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Show-DPM-MCM",
|
|
"tooltip": {
|
|
"delay": 250
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "36px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({session.custom.alarm_filter.show_map}\u003dTrue \u0026\u0026 {session.custom.view_in_focus}\u003d\u0027/MAP-Home\u0027, True, False)"
|
|
},
|
|
"enabled": false,
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "session.custom.alarm_filter.show_dpm_mcm"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"checkedIcon": {
|
|
"color": {
|
|
"disabled": "#FFFFFF",
|
|
"enabled": "#FFFFFF"
|
|
}
|
|
},
|
|
"style": {
|
|
"color": "#FFFFFF",
|
|
"fontFamily": "Arial",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"marginLeft": 10,
|
|
"marginRight": 10
|
|
},
|
|
"text": "Show DPM \u0026 MCM"
|
|
},
|
|
"scripts": {
|
|
"customMethods": [],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": [
|
|
{
|
|
"messageType": "select-all-filters",
|
|
"pageScope": false,
|
|
"script": "\tdata \u003d payload[\"data\"]\n\tself.props.selected \u003d data",
|
|
"sessionScope": false,
|
|
"viewScope": true
|
|
}
|
|
]
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
},
|
|
{
|
|
"custom": {
|
|
"buttonid": "status_filters/camera_jams"
|
|
},
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tif not self.props.selected:\n\t\tbuttonid \u003d self.custom.buttonid\n\t\tactivityLog.logger.callLogger(self.view, \u0027click\u0027, buttonid)\n\t\tactivityLog.productMetrics.callLogger(self.view, \u0027click\u0027, buttonid)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Show-Camera-Jams",
|
|
"tooltip": {
|
|
"delay": 250
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "36px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({session.custom.alarm_filter.show_map}\u003dTrue \u0026\u0026 {session.custom.view_in_focus}\u003d\u0027/MAP-Home\u0027, True, False)"
|
|
},
|
|
"enabled": false,
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "session.custom.alarm_filter.show_camera_jams"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"checkedIcon": {
|
|
"color": {
|
|
"disabled": "#FFFFFF",
|
|
"enabled": "#FFFFFF"
|
|
}
|
|
},
|
|
"style": {
|
|
"color": "#FFFFFF",
|
|
"fontFamily": "Arial",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"marginLeft": 10,
|
|
"marginRight": 10
|
|
},
|
|
"text": "Show Camera Jams"
|
|
},
|
|
"scripts": {
|
|
"customMethods": [],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": [
|
|
{
|
|
"messageType": "select-all-filters",
|
|
"pageScope": false,
|
|
"script": "\tdata \u003d payload[\"data\"]\n\tself.props.selected \u003d data",
|
|
"sessionScope": false,
|
|
"viewScope": true
|
|
}
|
|
]
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
},
|
|
{
|
|
"custom": {
|
|
"buttonid": "status_filters/fio_sio"
|
|
},
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tif not self.props.selected:\n\t\tbuttonid \u003d self.custom.buttonid\n\t\tactivityLog.logger.callLogger(self.view, \u0027click\u0027, buttonid)\n\t\tactivityLog.productMetrics.callLogger(self.view, \u0027click\u0027, buttonid)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Show-Fios",
|
|
"tooltip": {
|
|
"delay": 250
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "36px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({session.custom.alarm_filter.show_map}\u003dTrue \u0026\u0026 {session.custom.view_in_focus}\u003d\u0027/MAP-Home\u0027, True, False)"
|
|
},
|
|
"enabled": false,
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "session.custom.alarm_filter.show_fio_safety"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"checkedIcon": {
|
|
"color": {
|
|
"disabled": "#FFFFFF",
|
|
"enabled": "#FFFFFF"
|
|
}
|
|
},
|
|
"style": {
|
|
"color": "#FFFFFF",
|
|
"fontFamily": "Arial",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"marginLeft": 10,
|
|
"marginRight": 10
|
|
},
|
|
"text": "Show FIO \u0026 SIO"
|
|
},
|
|
"scripts": {
|
|
"customMethods": [],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": [
|
|
{
|
|
"messageType": "select-all-filters",
|
|
"pageScope": false,
|
|
"script": "\tdata \u003d payload[\"data\"]\n\tself.props.selected \u003d data",
|
|
"sessionScope": false,
|
|
"viewScope": true
|
|
}
|
|
]
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
},
|
|
{
|
|
"custom": {
|
|
"buttonid": "status_filters/running_status"
|
|
},
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tif not self.props.selected:\n\t\tbuttonid \u003d self.custom.buttonid\n\t\tactivityLog.logger.callLogger(self.view, \u0027click\u0027, buttonid)\n\t\tactivityLog.productMetrics.callLogger(self.view, \u0027click\u0027, buttonid)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Show-Photoeyes",
|
|
"tooltip": {
|
|
"delay": 250
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "36px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({session.custom.alarm_filter.show_map}\u003dTrue \u0026\u0026 {session.custom.view_in_focus}\u003d\u0027/MAP-Home\u0027, True, False)"
|
|
},
|
|
"enabled": false,
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "session.custom.alarm_filter.show_photoeyes"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"checkedIcon": {
|
|
"color": {
|
|
"disabled": "#FFFFFF",
|
|
"enabled": "#FFFFFF"
|
|
}
|
|
},
|
|
"style": {
|
|
"color": "#FFFFFF",
|
|
"fontFamily": "Arial",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"marginLeft": 10,
|
|
"marginRight": 10
|
|
},
|
|
"text": "Show Photoeyes"
|
|
},
|
|
"scripts": {
|
|
"customMethods": [],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": [
|
|
{
|
|
"messageType": "select-all-filters",
|
|
"pageScope": false,
|
|
"script": "\tdata \u003d payload[\"data\"]\n\tself.props.selected \u003d data",
|
|
"sessionScope": false,
|
|
"viewScope": true
|
|
}
|
|
]
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
},
|
|
{
|
|
"custom": {
|
|
"buttonid": "status_filters/running_status"
|
|
},
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tif not self.props.selected:\n\t\tbuttonid \u003d self.custom.buttonid\n\t\tactivityLog.logger.callLogger(self.view, \u0027click\u0027, buttonid)\n\t\tactivityLog.productMetrics.callLogger(self.view, \u0027click\u0027, buttonid)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Show-Beacons",
|
|
"tooltip": {
|
|
"delay": 250
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "36px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({session.custom.alarm_filter.show_map}\u003dTrue \u0026\u0026 {session.custom.view_in_focus}\u003d\u0027/MAP-Home\u0027, True, False)"
|
|
},
|
|
"enabled": false,
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "session.custom.alarm_filter.show_beacons"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"checkedIcon": {
|
|
"color": {
|
|
"disabled": "#FFFFFF",
|
|
"enabled": "#FFFFFF"
|
|
}
|
|
},
|
|
"style": {
|
|
"color": "#FFFFFF",
|
|
"fontFamily": "Arial",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"marginLeft": 10,
|
|
"marginRight": 10
|
|
},
|
|
"text": "Show Beacons"
|
|
},
|
|
"scripts": {
|
|
"customMethods": [],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": [
|
|
{
|
|
"messageType": "select-all-filters",
|
|
"pageScope": false,
|
|
"script": "\tdata \u003d payload[\"data\"]\n\tself.props.selected \u003d data",
|
|
"sessionScope": false,
|
|
"viewScope": true
|
|
}
|
|
]
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
},
|
|
{
|
|
"custom": {
|
|
"buttonid": "status_filters/running_status"
|
|
},
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tif not self.props.selected:\n\t\tbuttonid \u003d self.custom.buttonid\n\t\tactivityLog.logger.callLogger(self.view, \u0027click\u0027, buttonid)\n\t\tactivityLog.productMetrics.callLogger(self.view, \u0027click\u0027, buttonid)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Show-PX",
|
|
"tooltip": {
|
|
"delay": 250
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "36px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({session.custom.alarm_filter.show_map}\u003dTrue \u0026\u0026 {session.custom.view_in_focus}\u003d\u0027/MAP-Home\u0027, True, False)"
|
|
},
|
|
"enabled": false,
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "session.custom.alarm_filter.show_px"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"checkedIcon": {
|
|
"color": {
|
|
"disabled": "#FFFFFF",
|
|
"enabled": "#FFFFFF"
|
|
}
|
|
},
|
|
"style": {
|
|
"color": "#FFFFFF",
|
|
"fontFamily": "Arial",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"marginLeft": 10,
|
|
"marginRight": 10
|
|
},
|
|
"text": "Show Prox Switches"
|
|
},
|
|
"scripts": {
|
|
"customMethods": [],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": [
|
|
{
|
|
"messageType": "select-all-filters",
|
|
"pageScope": false,
|
|
"script": "\tdata \u003d payload[\"data\"]\n\tself.props.selected \u003d data",
|
|
"sessionScope": false,
|
|
"viewScope": true
|
|
}
|
|
]
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
},
|
|
{
|
|
"custom": {
|
|
"buttonid": "status_filters/running_status"
|
|
},
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tif not self.props.selected:\n\t\tbuttonid \u003d self.custom.buttonid\n\t\tactivityLog.logger.callLogger(self.view, \u0027click\u0027, buttonid)\n\t\tactivityLog.productMetrics.callLogger(self.view, \u0027click\u0027, buttonid)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Show-Encoders",
|
|
"tooltip": {
|
|
"delay": 250
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "36px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({session.custom.alarm_filter.show_map}\u003dTrue \u0026\u0026 {session.custom.view_in_focus}\u003d\u0027/MAP-Home\u0027, True, False)"
|
|
},
|
|
"enabled": false,
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "session.custom.alarm_filter.show_encoders"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"checkedIcon": {
|
|
"color": {
|
|
"disabled": "#FFFFFF",
|
|
"enabled": "#FFFFFF"
|
|
}
|
|
},
|
|
"style": {
|
|
"color": "#FFFFFF",
|
|
"fontFamily": "Arial",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"marginLeft": 10,
|
|
"marginRight": 10
|
|
},
|
|
"text": "Show Encoders"
|
|
},
|
|
"scripts": {
|
|
"customMethods": [],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": [
|
|
{
|
|
"messageType": "select-all-filters",
|
|
"pageScope": false,
|
|
"script": "\tdata \u003d payload[\"data\"]\n\tself.props.selected \u003d data",
|
|
"sessionScope": false,
|
|
"viewScope": true
|
|
}
|
|
]
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
},
|
|
{
|
|
"custom": {
|
|
"buttonid": "status_filters/running_status"
|
|
},
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tif not self.props.selected:\n\t\tbuttonid \u003d self.custom.buttonid\n\t\tactivityLog.logger.callLogger(self.view, \u0027click\u0027, buttonid)\n\t\tactivityLog.productMetrics.callLogger(self.view, \u0027click\u0027, buttonid)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Show-Sols",
|
|
"tooltip": {
|
|
"delay": 250
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "36px"
|
|
},
|
|
"propConfig": {
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if ({session.custom.alarm_filter.show_map}\u003dTrue \u0026\u0026 {session.custom.view_in_focus}\u003d\u0027/MAP-Home\u0027, True, False)"
|
|
},
|
|
"enabled": false,
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.selected": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "session.custom.alarm_filter.show_solenoids"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"checkedIcon": {
|
|
"color": {
|
|
"disabled": "#FFFFFF",
|
|
"enabled": "#FFFFFF"
|
|
}
|
|
},
|
|
"style": {
|
|
"color": "#FFFFFF",
|
|
"fontFamily": "Arial",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"marginLeft": 10,
|
|
"marginRight": 10
|
|
},
|
|
"text": "Show Solenoids"
|
|
},
|
|
"scripts": {
|
|
"customMethods": [],
|
|
"extensionFunctions": null,
|
|
"messageHandlers": [
|
|
{
|
|
"messageType": "select-all-filters",
|
|
"pageScope": false,
|
|
"script": "\tdata \u003d payload[\"data\"]\n\tself.props.selected \u003d data",
|
|
"sessionScope": false,
|
|
"viewScope": true
|
|
}
|
|
]
|
|
},
|
|
"type": "ia.input.checkbox"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "FlexContainer"
|
|
},
|
|
"position": {
|
|
"grow": 1
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"justify": "space-between"
|
|
},
|
|
"type": "ia.container.flex"
|
|
},
|
|
{
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tsystem.perspective.closePopup(\u0027\u0027)"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Button"
|
|
},
|
|
"position": {
|
|
"basis": "30px",
|
|
"shrink": 0
|
|
},
|
|
"props": {
|
|
"box-shadow": "5px 5px 5px",
|
|
"style": {
|
|
"backgroundColor": "#555555",
|
|
"classes": "Background-Styles/Controller",
|
|
"marginBottom": 5,
|
|
"marginLeft": 20,
|
|
"marginRight": 20,
|
|
"marginTop": 5
|
|
},
|
|
"text": "Close"
|
|
},
|
|
"type": "ia.input.button"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "Status"
|
|
},
|
|
"position": {
|
|
"basis": "200px",
|
|
"shrink": 0
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"style": {
|
|
"borderColor": "#FFFFFF",
|
|
"borderStyle": "solid",
|
|
"borderWidth": 1
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Label"
|
|
},
|
|
"position": {
|
|
"basis": "36px",
|
|
"shrink": 0
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"background-color": "#555555",
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
},
|
|
"text": "Accessibility"
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Label"
|
|
},
|
|
"position": {
|
|
"basis": "80px",
|
|
"grow": 1
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"textAlign": "center"
|
|
},
|
|
"text": "Rotate Detailed View:"
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\t\n\t# Read current rotation string\n\tcurrentRotation \u003d self.session.custom.rotation\n\t\n\tcurrentAngle \u003d currentRotation.replace(\"deg\", \"\")\n\t\n\t# Increment by 90° and wrap around 360\n\tnewAngle \u003d (int(currentAngle) + 90) % 360\n\t\n\t# Save back as string with \"deg\"\n\tself.session.custom.rotation \u003d str(newAngle) + \"deg\""
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Icon"
|
|
},
|
|
"position": {
|
|
"basis": "30px"
|
|
},
|
|
"props": {
|
|
"path": "material/360",
|
|
"style": {
|
|
"cursor": "pointer"
|
|
}
|
|
},
|
|
"type": "ia.display.icon"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "FlexContainer_0",
|
|
"tooltip": {
|
|
"enabled": true,
|
|
"text": "Click to rotate the view 90° clockwise"
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "65px"
|
|
},
|
|
"props": {
|
|
"justify": "space-between",
|
|
"style": {
|
|
"padding": 10
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Label"
|
|
},
|
|
"position": {
|
|
"basis": "80px",
|
|
"grow": 1
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"textAlign": "center"
|
|
},
|
|
"text": "Reset Rotation"
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\tself.session.custom.rotation \u003d \"0deg\""
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Icon"
|
|
},
|
|
"position": {
|
|
"basis": "30px"
|
|
},
|
|
"props": {
|
|
"path": "material/cached",
|
|
"style": {
|
|
"cursor": "painter"
|
|
}
|
|
},
|
|
"type": "ia.display.icon"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "FlexContainer_1",
|
|
"tooltip": {
|
|
"enabled": true,
|
|
"text": "Reset Rotation"
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "65px"
|
|
},
|
|
"props": {
|
|
"justify": "space-between",
|
|
"style": {
|
|
"padding": 10
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "Accessibility"
|
|
},
|
|
"position": {
|
|
"basis": "200px",
|
|
"shrink": 0
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"style": {
|
|
"borderColor": "#FFFFFF",
|
|
"borderStyle": "solid",
|
|
"borderWidth": 1
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"classes": "Background-Styles/Controller",
|
|
"overflow": "hidden"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |