@flexem/fc-gui 3.0.0-alpha.48 → 3.0.0-alpha.49
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 +1 -1
- package/bundles/@flexem/fc-gui.umd.js +9 -1
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +4 -4
- package/bundles/@flexem/fc-gui.umd.min.js.map +1 -1
- package/elements/numerical-display/numerical-display-element.d.ts +1 -0
- package/elements/numerical-display/numerical-display-element.js +9 -1
- package/elements/numerical-display/numerical-display-element.metadata.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -27553,6 +27553,10 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
27553
27553
|
});
|
|
27554
27554
|
this.writeValueMmodalRef.content.onClosed = (result) => {
|
|
27555
27555
|
if (result) {
|
|
27556
|
+
if (this.restorationTimer) {
|
|
27557
|
+
clearTimeout(this.restorationTimer);
|
|
27558
|
+
this.restorationTimer = undefined;
|
|
27559
|
+
}
|
|
27556
27560
|
const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
|
|
27557
27561
|
this.writeValue = writeValue;
|
|
27558
27562
|
this.showValue = result.showValue;
|
|
@@ -27561,7 +27565,7 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
27561
27565
|
this.writeValueMmodalRef.hide();
|
|
27562
27566
|
}
|
|
27563
27567
|
else {
|
|
27564
|
-
setTimeout(() => {
|
|
27568
|
+
this.restorationTimer = setTimeout(() => {
|
|
27565
27569
|
if (+this.displayText !== +this.showValue) {
|
|
27566
27570
|
this.writeValueMmodalRef.content.isSubmitting = false;
|
|
27567
27571
|
this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
|
|
@@ -27604,6 +27608,10 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
27604
27608
|
this.displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
|
|
27605
27609
|
this.updateDisplayText(this.formatDisplayTextUnit(this.displayText));
|
|
27606
27610
|
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && +this.displayText === +this.showValue) {
|
|
27611
|
+
if (this.restorationTimer) {
|
|
27612
|
+
clearTimeout(this.restorationTimer);
|
|
27613
|
+
this.restorationTimer = undefined;
|
|
27614
|
+
}
|
|
27607
27615
|
this.writeValueMmodalRef.hide();
|
|
27608
27616
|
this.writeValueMmodalRef.content.hideValidationErrorInfo();
|
|
27609
27617
|
this.recordOperation(this.writeValue);
|