@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.
@@ -23,7 +23,7 @@ export declare class NumericalDisplayElement extends ReadableElement {
23
23
  private displayForeignObject;
24
24
  private enableDataParsed;
25
25
  private writeValueMmodalRef;
26
- private writeValue;
26
+ private recordValue;
27
27
  private showValue;
28
28
  private numericalOperation;
29
29
  private restorationTimer;
@@ -190,11 +190,12 @@ export class NumericalDisplayElement extends ReadableElement {
190
190
  clearTimeout(this.restorationTimer);
191
191
  this.restorationTimer = undefined;
192
192
  }
193
+ this.recordValue = result.value;
193
194
  const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
194
- this.writeValue = writeValue;
195
195
  this.showValue = result.showValue;
196
196
  if (+this.displayText !== +this.showValue || result.variableRwType === variableRwTypeEnum.witer) {
197
197
  if (this.numericalOperation || result.enableNumericalOperation || result.isNumericalOperation || result.variableRwType === variableRwTypeEnum.witer) {
198
+ this.recordOperation(result.value);
198
199
  this.writeValueMmodalRef.hide();
199
200
  }
200
201
  else {
@@ -238,17 +239,18 @@ export class NumericalDisplayElement extends ReadableElement {
238
239
  }
239
240
  updateVariableValue(value) {
240
241
  var _a;
241
- this.displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
242
- this.updateDisplayText(this.formatDisplayTextUnit(this.displayText));
243
- if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && +this.displayText === +this.showValue) {
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) && +displayText === +this.showValue) {
244
244
  if (this.restorationTimer) {
245
245
  clearTimeout(this.restorationTimer);
246
246
  this.restorationTimer = undefined;
247
+ this.recordOperation(this.recordValue);
247
248
  }
248
249
  this.writeValueMmodalRef.hide();
249
250
  this.writeValueMmodalRef.content.hideValidationErrorInfo();
250
- this.recordOperation(this.writeValue);
251
251
  }
252
+ this.displayText = displayText;
253
+ this.updateDisplayText(this.formatDisplayTextUnit(this.displayText));
252
254
  }
253
255
  updateDisplayText(text) {
254
256
  if (!this.displayForeignObject) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.78",
3
+ "version": "3.0.0-alpha.79",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",