@flexem/fc-gui 3.0.0-alpha.85 → 3.0.0-alpha.86
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 +9 -3
- 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 +9 -3
- package/package.json +1 -1
|
@@ -193,14 +193,17 @@ export class NumericalDisplayElement extends ReadableElement {
|
|
|
193
193
|
this.recordValue = result.value;
|
|
194
194
|
const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
|
|
195
195
|
this.showValue = result.showValue;
|
|
196
|
-
if (this.displayText
|
|
196
|
+
if (this.displayText !== this.showValue || result.variableRwType === variableRwTypeEnum.witer) {
|
|
197
197
|
if (this.numericalOperation || result.enableNumericalOperation || result.isNumericalOperation || result.variableRwType === variableRwTypeEnum.witer) {
|
|
198
198
|
this.recordOperation(result.value);
|
|
199
199
|
this.writeValueMmodalRef.hide();
|
|
200
200
|
}
|
|
201
201
|
else {
|
|
202
202
|
this.restorationTimer = setTimeout(() => {
|
|
203
|
-
|
|
203
|
+
const isEquation = this.model.fractionDigits ?
|
|
204
|
+
parseFloat(this.displayText) === parseFloat(this.showValue) :
|
|
205
|
+
parseInt(this.displayText, 16) === parseInt(this.showValue, 16);
|
|
206
|
+
if (!isEquation) {
|
|
204
207
|
this.writeValueMmodalRef.content.isSubmitting = false;
|
|
205
208
|
this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
|
|
206
209
|
}
|
|
@@ -240,7 +243,10 @@ export class NumericalDisplayElement extends ReadableElement {
|
|
|
240
243
|
updateVariableValue(value) {
|
|
241
244
|
var _a;
|
|
242
245
|
const displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
|
|
243
|
-
|
|
246
|
+
const isEquation = this.model.fractionDigits ?
|
|
247
|
+
parseFloat(displayText) === parseFloat(this.showValue) :
|
|
248
|
+
parseInt(displayText, 16) === parseInt(this.showValue, 16);
|
|
249
|
+
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && isEquation) {
|
|
244
250
|
if (this.restorationTimer) {
|
|
245
251
|
clearTimeout(this.restorationTimer);
|
|
246
252
|
this.restorationTimer = undefined;
|