@flexem/fc-gui 3.0.0-alpha.78 → 3.0.0-alpha.79
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 +5 -0
- package/bundles/@flexem/fc-gui.umd.js +7 -5
- 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.d.ts +1 -1
- package/elements/numerical-display/numerical-display-element.js +7 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -37143,11 +37143,12 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
37143
37143
|
clearTimeout(this.restorationTimer);
|
|
37144
37144
|
this.restorationTimer = undefined;
|
|
37145
37145
|
}
|
|
37146
|
+
this.recordValue = result.value;
|
|
37146
37147
|
const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
|
|
37147
|
-
this.writeValue = writeValue;
|
|
37148
37148
|
this.showValue = result.showValue;
|
|
37149
37149
|
if (+this.displayText !== +this.showValue || result.variableRwType === variableRwTypeEnum.witer) {
|
|
37150
37150
|
if (this.numericalOperation || result.enableNumericalOperation || result.isNumericalOperation || result.variableRwType === variableRwTypeEnum.witer) {
|
|
37151
|
+
this.recordOperation(result.value);
|
|
37151
37152
|
this.writeValueMmodalRef.hide();
|
|
37152
37153
|
}
|
|
37153
37154
|
else {
|
|
@@ -37191,17 +37192,18 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
37191
37192
|
}
|
|
37192
37193
|
updateVariableValue(value) {
|
|
37193
37194
|
var _a;
|
|
37194
|
-
|
|
37195
|
-
|
|
37196
|
-
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && +this.displayText === +this.showValue) {
|
|
37195
|
+
const displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
|
|
37196
|
+
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && +displayText === +this.showValue) {
|
|
37197
37197
|
if (this.restorationTimer) {
|
|
37198
37198
|
clearTimeout(this.restorationTimer);
|
|
37199
37199
|
this.restorationTimer = undefined;
|
|
37200
|
+
this.recordOperation(this.recordValue);
|
|
37200
37201
|
}
|
|
37201
37202
|
this.writeValueMmodalRef.hide();
|
|
37202
37203
|
this.writeValueMmodalRef.content.hideValidationErrorInfo();
|
|
37203
|
-
this.recordOperation(this.writeValue);
|
|
37204
37204
|
}
|
|
37205
|
+
this.displayText = displayText;
|
|
37206
|
+
this.updateDisplayText(this.formatDisplayTextUnit(this.displayText));
|
|
37205
37207
|
}
|
|
37206
37208
|
updateDisplayText(text) {
|
|
37207
37209
|
if (!this.displayForeignObject) {
|