@flexem/fc-gui 3.0.0-alpha.43 → 3.0.0-alpha.44
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 +1 -1
- package/bundles/@flexem/fc-gui.umd.js +6 -6
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +4 -4
- 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 +4 -4
- package/modal/write-value/write-value-modal.component.js +2 -2
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ export declare class NumericalDisplayElement extends ReadableElement {
|
|
|
23
23
|
private enableDataParsed;
|
|
24
24
|
private writeValueMmodalRef;
|
|
25
25
|
private writeValue;
|
|
26
|
-
private
|
|
26
|
+
private showValue;
|
|
27
27
|
get writeVariableName(): string;
|
|
28
28
|
constructor(element: HTMLElement, injector: Injector, modalService: BsModalService, permissionChecker: PermissionChecker, variableCommunicator: VariableCommunicator, graphStore: GraphStore, operationRecordService: OperationRecordService, securityChecker: SecurityChecker, variableStore: VariableStore, localization: Localization, signalRAppId: string);
|
|
29
29
|
dispose(): void;
|
|
@@ -181,11 +181,11 @@ export class NumericalDisplayElement extends ReadableElement {
|
|
|
181
181
|
if (result) {
|
|
182
182
|
const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
|
|
183
183
|
this.writeValue = writeValue;
|
|
184
|
-
this.
|
|
185
|
-
if (this.displayText.toString() !== this.
|
|
184
|
+
this.showValue = result.showValue;
|
|
185
|
+
if (this.displayText.toString() !== this.showValue) {
|
|
186
186
|
this.variableCommunicator.write(this.writeVariableName, writeValue).subscribe();
|
|
187
187
|
setTimeout(() => {
|
|
188
|
-
if (this.displayText.toString() !== this.
|
|
188
|
+
if (this.displayText.toString() !== this.showValue) {
|
|
189
189
|
this.writeValueMmodalRef.content.isSubmitting = false;
|
|
190
190
|
this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
|
|
191
191
|
}
|
|
@@ -224,7 +224,7 @@ export class NumericalDisplayElement extends ReadableElement {
|
|
|
224
224
|
var _a;
|
|
225
225
|
this.displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
|
|
226
226
|
this.updateDisplayText(this.formatDisplayTextUnit(this.displayText));
|
|
227
|
-
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && this.displayText.toString() === this.
|
|
227
|
+
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && this.displayText.toString() === this.showValue) {
|
|
228
228
|
this.writeValueMmodalRef.hide();
|
|
229
229
|
this.writeValueMmodalRef.content.hideValidationErrorInfo();
|
|
230
230
|
this.recordOperation(this.writeValue);
|
|
@@ -100,7 +100,7 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
100
100
|
}
|
|
101
101
|
save() {
|
|
102
102
|
this.isSubmitting = true;
|
|
103
|
-
const
|
|
103
|
+
const showValue = this.value;
|
|
104
104
|
if (this.args.enableDataParsed) {
|
|
105
105
|
if (this.enableNumericalOperation) {
|
|
106
106
|
this.value = this.numericalOperationService.getWriteValue(this.args.version, this.value, this.numericalOperation, this.dataType, this.fractionDigits);
|
|
@@ -109,7 +109,7 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
109
109
|
this.value = this.formatWriteValue();
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
this.onClosed({ value: this.value,
|
|
112
|
+
this.onClosed({ value: this.value, showValue });
|
|
113
113
|
}
|
|
114
114
|
close() {
|
|
115
115
|
this.bsModalRef.hide();
|