@flexem/fc-gui 3.0.0-alpha.45 → 3.0.0-alpha.47
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 +11 -1
- package/bundles/@flexem/fc-gui.umd.js +13 -8
- 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/numerical-display/numerical-display-element.js +13 -8
- package/package.json +1 -1
|
@@ -189,14 +189,19 @@ export class NumericalDisplayElement extends ReadableElement {
|
|
|
189
189
|
const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
|
|
190
190
|
this.writeValue = writeValue;
|
|
191
191
|
this.showValue = result.showValue;
|
|
192
|
-
if (
|
|
192
|
+
if (+this.displayText !== +this.showValue) {
|
|
193
193
|
this.variableCommunicator.write(this.writeVariableName, writeValue).subscribe();
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
194
|
+
if (this.numericalOperation) {
|
|
195
|
+
this.writeValueMmodalRef.hide();
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
setTimeout(() => {
|
|
199
|
+
if (+this.displayText !== +this.showValue) {
|
|
200
|
+
this.writeValueMmodalRef.content.isSubmitting = false;
|
|
201
|
+
this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
|
|
202
|
+
}
|
|
203
|
+
}, 10000);
|
|
204
|
+
}
|
|
200
205
|
}
|
|
201
206
|
else {
|
|
202
207
|
this.writeValueMmodalRef.hide();
|
|
@@ -231,7 +236,7 @@ export class NumericalDisplayElement extends ReadableElement {
|
|
|
231
236
|
var _a;
|
|
232
237
|
this.displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
|
|
233
238
|
this.updateDisplayText(this.formatDisplayTextUnit(this.displayText));
|
|
234
|
-
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && +this.displayText
|
|
239
|
+
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && +this.displayText === +this.showValue) {
|
|
235
240
|
this.writeValueMmodalRef.hide();
|
|
236
241
|
this.writeValueMmodalRef.content.hideValidationErrorInfo();
|
|
237
242
|
this.recordOperation(this.writeValue);
|