@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.
@@ -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.toString().toUpperCase() !== this.showValue.toString().toUpperCase() || result.variableRwType === variableRwTypeEnum.witer) {
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
- if (this.displayText.toString().toUpperCase() !== this.showValue.toString().toUpperCase()) {
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
- if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && displayText.toString().toUpperCase() === this.showValue.toString().toUpperCase()) {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.85",
3
+ "version": "3.0.0-alpha.86",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",