@flexem/fc-gui 3.0.0-alpha.41 → 3.0.0-alpha.43
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 +11 -1
- package/bundles/@flexem/fc-gui.umd.js +13 -10
- 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/historical-curve/historical-curve.element.js +4 -4
- package/elements/numerical-display/numerical-display-element.d.ts +1 -0
- package/elements/numerical-display/numerical-display-element.js +7 -5
- package/elements/numerical-display/numerical-display-element.metadata.json +1 -1
- package/modal/write-value/write-value-modal.component.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -174,4 +174,14 @@
|
|
|
174
174
|
## 3.0.0-alpha.41(2022-10-20)
|
|
175
175
|
### Web端
|
|
176
176
|
#### Features
|
|
177
|
-
1. FLEXCLOUD-2296:组态页面点击刷新后不显示历史曲线组件
|
|
177
|
+
1. FLEXCLOUD-2296:组态页面点击刷新后不显示历史曲线组件
|
|
178
|
+
|
|
179
|
+
## 3.0.0-alpha.42(2022-10-20)
|
|
180
|
+
### Web端
|
|
181
|
+
#### Features
|
|
182
|
+
1. 修改历史曲线图设置刻度字体方式
|
|
183
|
+
|
|
184
|
+
## 3.0.0-alpha.43(2022-10-20)
|
|
185
|
+
### Web端
|
|
186
|
+
#### Features
|
|
187
|
+
1. FLEXCLOUD-2312: fink设备写值异常
|
|
@@ -26980,17 +26980,17 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
26980
26980
|
chart.update();
|
|
26981
26981
|
this.rootElement.selectAll('.nv-noData').attr('x', chartWidth / 2).attr('y', chartHeight / 2 + this.displayOption.operationAreaHeight);
|
|
26982
26982
|
});
|
|
26983
|
-
const fontSize = (
|
|
26983
|
+
const fontSize = (_b = (_a = this.model.displaySetting.axisSetting) === null || _a === void 0 ? void 0 : _a.axisLabelFont) === null || _b === void 0 ? void 0 : _b.fontSize;
|
|
26984
26984
|
this.rootElement.selectAll('.domain').style('stroke-opacity', 1);
|
|
26985
26985
|
if (this.model.displaySetting.showAxis && this.model.displaySetting.axisSetting) {
|
|
26986
26986
|
const axisColor = this.model.displaySetting.axisSetting.axisColor;
|
|
26987
26987
|
this.rootElement.selectAll('.domain').style('stroke', axisColor);
|
|
26988
|
-
if (this.model.displaySetting.axisSetting.showAxisLabel) {
|
|
26988
|
+
if (fontSize && this.model.displaySetting.axisSetting.showAxisLabel) {
|
|
26989
26989
|
this.rootElement.selectAll('.nv-axisMaxMin').select('text').style('font-size', fontSize);
|
|
26990
26990
|
}
|
|
26991
26991
|
}
|
|
26992
|
-
|
|
26993
|
-
|
|
26992
|
+
if (fontSize && this.currentTimePeriod === 3 || this.currentTimePeriod === 4 || this.currentTimePeriod === 5) {
|
|
26993
|
+
const self = this;
|
|
26994
26994
|
this.rootElement
|
|
26995
26995
|
.selectAll('.nv-x')
|
|
26996
26996
|
.selectAll('.tick')
|
|
@@ -27546,11 +27546,13 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
27546
27546
|
});
|
|
27547
27547
|
this.writeValueMmodalRef.content.onClosed = (result) => {
|
|
27548
27548
|
if (result) {
|
|
27549
|
-
|
|
27550
|
-
|
|
27551
|
-
|
|
27549
|
+
const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
|
|
27550
|
+
this.writeValue = writeValue;
|
|
27551
|
+
this.originalValue = result.originalValue;
|
|
27552
|
+
if (this.displayText.toString() !== this.originalValue) {
|
|
27553
|
+
this.variableCommunicator.write(this.writeVariableName, writeValue).subscribe();
|
|
27552
27554
|
setTimeout(() => {
|
|
27553
|
-
if (this.displayText.toString() !== this.
|
|
27555
|
+
if (this.displayText.toString() !== this.originalValue) {
|
|
27554
27556
|
this.writeValueMmodalRef.content.isSubmitting = false;
|
|
27555
27557
|
this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
|
|
27556
27558
|
}
|
|
@@ -27589,7 +27591,7 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
27589
27591
|
var _a;
|
|
27590
27592
|
this.displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
|
|
27591
27593
|
this.updateDisplayText(this.formatDisplayTextUnit(this.displayText));
|
|
27592
|
-
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && this.displayText.toString() === this.
|
|
27594
|
+
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && this.displayText.toString() === this.originalValue) {
|
|
27593
27595
|
this.writeValueMmodalRef.hide();
|
|
27594
27596
|
this.writeValueMmodalRef.content.hideValidationErrorInfo();
|
|
27595
27597
|
this.recordOperation(this.writeValue);
|
|
@@ -41182,6 +41184,7 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
41182
41184
|
}
|
|
41183
41185
|
save() {
|
|
41184
41186
|
this.isSubmitting = true;
|
|
41187
|
+
const originalValue = this.value;
|
|
41185
41188
|
if (this.args.enableDataParsed) {
|
|
41186
41189
|
if (this.enableNumericalOperation) {
|
|
41187
41190
|
this.value = this.numericalOperationService.getWriteValue(this.args.version, this.value, this.numericalOperation, this.dataType, this.fractionDigits);
|
|
@@ -41190,7 +41193,7 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
41190
41193
|
this.value = this.formatWriteValue();
|
|
41191
41194
|
}
|
|
41192
41195
|
}
|
|
41193
|
-
this.onClosed({ value: this.value });
|
|
41196
|
+
this.onClosed({ value: this.value, originalValue });
|
|
41194
41197
|
}
|
|
41195
41198
|
close() {
|
|
41196
41199
|
this.bsModalRef.hide();
|