@flexem/fc-gui 3.0.0-alpha.83 → 3.0.0-alpha.84
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 +4 -4
- 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 +3 -3
- package/package.json +1 -1
- package/utils/data-type/fbox-data-type.service.js +1 -1
|
@@ -193,14 +193,14 @@ 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 (
|
|
196
|
+
if (this.displayText.toString().toUpperCase() !== this.showValue.toString().toUpperCase() || 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
|
-
if (this.displayText.toUpperCase() !== this.showValue.toUpperCase()) {
|
|
203
|
+
if (this.displayText.toString().toUpperCase() !== this.showValue.toString().toUpperCase()) {
|
|
204
204
|
this.writeValueMmodalRef.content.isSubmitting = false;
|
|
205
205
|
this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
|
|
206
206
|
}
|
|
@@ -240,7 +240,7 @@ export class NumericalDisplayElement extends ReadableElement {
|
|
|
240
240
|
updateVariableValue(value) {
|
|
241
241
|
var _a;
|
|
242
242
|
const displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
|
|
243
|
-
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) &&
|
|
243
|
+
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && displayText.toString().toUpperCase() === this.showValue.toString().toUpperCase()) {
|
|
244
244
|
if (this.restorationTimer) {
|
|
245
245
|
clearTimeout(this.restorationTimer);
|
|
246
246
|
this.restorationTimer = undefined;
|
package/package.json
CHANGED