@flexem/fc-gui 3.0.0-alpha.71 → 3.0.0-alpha.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -1
- package/bundles/@flexem/fc-gui.umd.js +11 -14
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js.map +1 -1
- package/elements/alarm/alarm-element.js +7 -10
- package/elements/alarm/alarm-element.metadata.json +1 -1
- package/package.json +1 -1
- package/remote/communication/variable/remote-variable-communicator.js +4 -4
- package/remote/communication/variable/remote-variable-protocol.d.ts +3 -3
- package/elements/alarm/alarm-state-enum.d.ts +0 -4
- package/elements/alarm/alarm-state-enum.js +0 -5
- package/elements/alarm/alarm-state-enum.metadata.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -40032,7 +40032,6 @@ C140,111.8,99.2,158.4,78,178.6z M78,40.4c-17.8,0-32.4,14.4-32.4,32.2s14.5,32.2,3
|
|
|
40032
40032
|
|
|
40033
40033
|
|
|
40034
40034
|
|
|
40035
|
-
|
|
40036
40035
|
class alarm_element_AlarmElement extends conditional_display_element_ConditionalDisplayElement {
|
|
40037
40036
|
constructor(element, injector, permissionChecker, variableCommunicator, variableStore, alarmsStore, signalRAppId) {
|
|
40038
40037
|
var _a;
|
|
@@ -40074,15 +40073,13 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
|
|
|
40074
40073
|
}, this.model.filterSetting.refreshCycle * 60 * 1000);
|
|
40075
40074
|
}
|
|
40076
40075
|
else {
|
|
40077
|
-
variableCommunicator.subscribeUserDeviceAlarms(signalRAppId).subscribe(
|
|
40078
|
-
|
|
40079
|
-
|
|
40080
|
-
|
|
40081
|
-
|
|
40082
|
-
|
|
40083
|
-
|
|
40084
|
-
}
|
|
40085
|
-
this.init();
|
|
40076
|
+
variableCommunicator.subscribeUserDeviceAlarms(signalRAppId).subscribe(alarms => {
|
|
40077
|
+
alarms.forEach(alarm => {
|
|
40078
|
+
if (this.alarmNames.indexOf(alarm.name) !== -1) {
|
|
40079
|
+
this.init();
|
|
40080
|
+
return;
|
|
40081
|
+
}
|
|
40082
|
+
});
|
|
40086
40083
|
});
|
|
40087
40084
|
}
|
|
40088
40085
|
this.init();
|
|
@@ -63173,9 +63170,9 @@ class remote_variable_communicator_RemoteVariableCommunicator {
|
|
|
63173
63170
|
if (this.alarmChangedSubscription !== undefined) {
|
|
63174
63171
|
this.alarmChangedSubscription.unsubscribe();
|
|
63175
63172
|
}
|
|
63176
|
-
this.alarmChangedSubscription = this.remoteVariableProtocol.
|
|
63173
|
+
this.alarmChangedSubscription = this.remoteVariableProtocol.virtualDeviceAlarmsChanged.subscribe((alarms) => {
|
|
63177
63174
|
Object(lodash["each"])(this.alarmObservers, ob => {
|
|
63178
|
-
ob.next(
|
|
63175
|
+
ob.next(alarms);
|
|
63179
63176
|
});
|
|
63180
63177
|
});
|
|
63181
63178
|
}
|
|
@@ -63361,9 +63358,9 @@ class remote_variable_communicator_RemoteVariableCommunicator {
|
|
|
63361
63358
|
subscribeUserDeviceAlarms(appId = '') {
|
|
63362
63359
|
return new Observable["a" /* Observable */](observer => {
|
|
63363
63360
|
this.alarmObservers.push(observer);
|
|
63364
|
-
this.remoteVariableProtocol.
|
|
63361
|
+
this.remoteVariableProtocol.subscribeVirtualDeviceAlarms(appId);
|
|
63365
63362
|
return () => {
|
|
63366
|
-
this.remoteVariableProtocol.
|
|
63363
|
+
this.remoteVariableProtocol.unsubscribeVirtualDeviceAlarms(appId);
|
|
63367
63364
|
};
|
|
63368
63365
|
});
|
|
63369
63366
|
}
|