@flexem/fc-gui 3.0.0-alpha.43 → 3.0.0-alpha.44
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 +6 -6
- 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 -1
- package/elements/numerical-display/numerical-display-element.js +4 -4
- package/modal/write-value/write-value-modal.component.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -27548,11 +27548,11 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
27548
27548
|
if (result) {
|
|
27549
27549
|
const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
|
|
27550
27550
|
this.writeValue = writeValue;
|
|
27551
|
-
this.
|
|
27552
|
-
if (this.displayText.toString() !== this.
|
|
27551
|
+
this.showValue = result.showValue;
|
|
27552
|
+
if (this.displayText.toString() !== this.showValue) {
|
|
27553
27553
|
this.variableCommunicator.write(this.writeVariableName, writeValue).subscribe();
|
|
27554
27554
|
setTimeout(() => {
|
|
27555
|
-
if (this.displayText.toString() !== this.
|
|
27555
|
+
if (this.displayText.toString() !== this.showValue) {
|
|
27556
27556
|
this.writeValueMmodalRef.content.isSubmitting = false;
|
|
27557
27557
|
this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
|
|
27558
27558
|
}
|
|
@@ -27591,7 +27591,7 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
27591
27591
|
var _a;
|
|
27592
27592
|
this.displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
|
|
27593
27593
|
this.updateDisplayText(this.formatDisplayTextUnit(this.displayText));
|
|
27594
|
-
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && this.displayText.toString() === this.
|
|
27594
|
+
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && this.displayText.toString() === this.showValue) {
|
|
27595
27595
|
this.writeValueMmodalRef.hide();
|
|
27596
27596
|
this.writeValueMmodalRef.content.hideValidationErrorInfo();
|
|
27597
27597
|
this.recordOperation(this.writeValue);
|
|
@@ -41184,7 +41184,7 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
41184
41184
|
}
|
|
41185
41185
|
save() {
|
|
41186
41186
|
this.isSubmitting = true;
|
|
41187
|
-
const
|
|
41187
|
+
const showValue = this.value;
|
|
41188
41188
|
if (this.args.enableDataParsed) {
|
|
41189
41189
|
if (this.enableNumericalOperation) {
|
|
41190
41190
|
this.value = this.numericalOperationService.getWriteValue(this.args.version, this.value, this.numericalOperation, this.dataType, this.fractionDigits);
|
|
@@ -41193,7 +41193,7 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
41193
41193
|
this.value = this.formatWriteValue();
|
|
41194
41194
|
}
|
|
41195
41195
|
}
|
|
41196
|
-
this.onClosed({ value: this.value,
|
|
41196
|
+
this.onClosed({ value: this.value, showValue });
|
|
41197
41197
|
}
|
|
41198
41198
|
close() {
|
|
41199
41199
|
this.bsModalRef.hide();
|