@flexem/fc-gui 3.0.0-alpha.30 → 3.0.0-alpha.33
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 +16 -0
- package/bundles/@flexem/fc-gui.umd.js +31 -8
- 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/air-quality/air-quality-element.js +3 -3
- package/elements/historical-curve/historical-curve.element.js +7 -0
- package/elements/historical-curve/historical-curve.element.metadata.json +1 -1
- package/elements/ring-graph/ring-graph-element.js +13 -4
- package/elements/ring-graph/ring-graph-element.metadata.json +1 -1
- package/model/historical-curve/historical-curve-axis-settings.d.ts +7 -0
- package/model/historical-curve/historical-curve-axis-settings.js +5 -0
- package/model/historical-curve/historical-curve-axis-settings.metadata.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -129,3 +129,19 @@
|
|
|
129
129
|
### Web端
|
|
130
130
|
#### Bug Fix
|
|
131
131
|
1. FLEXCLOUD-1969: 天津亿晟:组态中的历史曲线增加时间筛选刻度
|
|
132
|
+
|
|
133
|
+
## 3.0.0-alpha.31(2021-12-16)
|
|
134
|
+
### Web端
|
|
135
|
+
#### Bug Fix
|
|
136
|
+
1. FLEXCLOUD-1817: 组件更改其中一变量,其余变量应不生效,模板中删除、更改变量,删除与更改变量应不生效
|
|
137
|
+
|
|
138
|
+
## 3.0.0-alpha.32(2022-05-17)
|
|
139
|
+
### Web端
|
|
140
|
+
#### Bug Fix
|
|
141
|
+
1. FLEXCLOUD-2100: 苏州水星:历史曲线组件支持Y轴自定义设定范围
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
## 3.0.0-alpha.33(2022-07-08)
|
|
145
|
+
### Web端
|
|
146
|
+
#### Bug Fix
|
|
147
|
+
1. FLEXCLOUD-2171: 设备仪表盘:空气质量指数元件数值展示优化
|
|
@@ -26704,6 +26704,13 @@ var CurveType;
|
|
|
26704
26704
|
CurveType[CurveType["BarStack"] = 2] = "BarStack";
|
|
26705
26705
|
})(CurveType || (CurveType = {}));
|
|
26706
26706
|
|
|
26707
|
+
// CONCATENATED MODULE: ./.tmp/model/historical-curve/historical-curve-axis-settings.ts
|
|
26708
|
+
var AxisRangeType;
|
|
26709
|
+
(function (AxisRangeType) {
|
|
26710
|
+
AxisRangeType[AxisRangeType["Auto"] = 0] = "Auto";
|
|
26711
|
+
AxisRangeType[AxisRangeType["Custom"] = 1] = "Custom"; // 自定义范围
|
|
26712
|
+
})(AxisRangeType || (AxisRangeType = {}));
|
|
26713
|
+
|
|
26707
26714
|
// CONCATENATED MODULE: ./.tmp/elements/historical-curve/historical-curve.element.ts
|
|
26708
26715
|
|
|
26709
26716
|
|
|
@@ -26717,6 +26724,7 @@ var CurveType;
|
|
|
26717
26724
|
|
|
26718
26725
|
|
|
26719
26726
|
|
|
26727
|
+
|
|
26720
26728
|
class historical_curve_element_HistoricalCurveElement extends conditional_display_element_ConditionalDisplayElement {
|
|
26721
26729
|
constructor(element, injector, permissionChecker, variableCommunicator, variableStore, historyDataStore, signalRAppId) {
|
|
26722
26730
|
super(element, permissionChecker, variableCommunicator, variableStore, signalRAppId);
|
|
@@ -26859,6 +26867,9 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
26859
26867
|
const chart = nv_d3["models"].lineChart().showLegend(true)
|
|
26860
26868
|
.margin({ top: 0, bottom: 0, left: this.displayOption.marginLeft, right: this.displayOption.marginRight })
|
|
26861
26869
|
.noData(this.localization.chartNoData);
|
|
26870
|
+
if (this.model.displaySetting.axisSetting.yAxisRangeType === AxisRangeType.Custom) {
|
|
26871
|
+
chart.yDomain([this.model.displaySetting.axisSetting.yAxisMin, this.model.displaySetting.axisSetting.yAxisMax]);
|
|
26872
|
+
}
|
|
26862
26873
|
if (!this.isMobileMode) {
|
|
26863
26874
|
chart.focusEnable(true);
|
|
26864
26875
|
chart.focus.margin({ top: 10, right: 0, bottom: 0, left: 0 });
|
|
@@ -26883,6 +26894,9 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
26883
26894
|
chart.multibar.stacked(true);
|
|
26884
26895
|
chart.multibar2.stacked(true);
|
|
26885
26896
|
}
|
|
26897
|
+
if (this.model.displaySetting.axisSetting.yAxisRangeType === AxisRangeType.Custom) {
|
|
26898
|
+
chart.yDomain([this.model.displaySetting.axisSetting.yAxisMin, this.model.displaySetting.axisSetting.yAxisMax]);
|
|
26899
|
+
}
|
|
26886
26900
|
if (!this.isMobileMode) {
|
|
26887
26901
|
chart.focusEnable(true);
|
|
26888
26902
|
chart.focusShowAxisX(false);
|
|
@@ -28008,6 +28022,9 @@ class ring_graph_element_RingGraphElement extends readable_element_ReadableEleme
|
|
|
28008
28022
|
if (!this.model.variableId) {
|
|
28009
28023
|
return '';
|
|
28010
28024
|
}
|
|
28025
|
+
if (!this.model.variableId.variableName || !this.model.variableId.variableName.name) {
|
|
28026
|
+
return undefined;
|
|
28027
|
+
}
|
|
28011
28028
|
const variable = new variable_definition["a" /* VariableDefinition */](this.model.variableId.variableName.name, this.model.variableId.variableName.groupName, this.model.variableId.dataSourceCode, this.model.variableId.variableName.variableVersion);
|
|
28012
28029
|
return variable_util["a" /* VariableUtil */].getConvertedVariableName(this.variableStore, variable);
|
|
28013
28030
|
}
|
|
@@ -28015,14 +28032,20 @@ class ring_graph_element_RingGraphElement extends readable_element_ReadableEleme
|
|
|
28015
28032
|
if (!this.model.minValueType) {
|
|
28016
28033
|
return undefined;
|
|
28017
28034
|
}
|
|
28018
|
-
|
|
28035
|
+
if (!this.model.minVariable || !this.model.minVariable.name) {
|
|
28036
|
+
return undefined;
|
|
28037
|
+
}
|
|
28038
|
+
const variable = new variable_definition["a" /* VariableDefinition */](this.model.minVariable.name, this.model.minVariable.groupName, this.model.minVariable.dataSourceCode, this.model.minVariable.variableVersion);
|
|
28019
28039
|
return variable_util["a" /* VariableUtil */].getConvertedVariableName(this.variableStore, variable);
|
|
28020
28040
|
}
|
|
28021
28041
|
get maxVariableName() {
|
|
28022
28042
|
if (!this.model.maxValueType) {
|
|
28023
28043
|
return undefined;
|
|
28024
28044
|
}
|
|
28025
|
-
|
|
28045
|
+
if (!this.model.maxVariable || !this.model.maxVariable.name) {
|
|
28046
|
+
return undefined;
|
|
28047
|
+
}
|
|
28048
|
+
const variable = new variable_definition["a" /* VariableDefinition */](this.model.maxVariable.name, this.model.maxVariable.groupName, this.model.maxVariable.dataSourceCode, this.model.maxVariable.variableVersion);
|
|
28026
28049
|
return variable_util["a" /* VariableUtil */].getConvertedVariableName(this.variableStore, variable);
|
|
28027
28050
|
}
|
|
28028
28051
|
initFrameNode() {
|
|
@@ -28049,11 +28072,11 @@ class ring_graph_element_RingGraphElement extends readable_element_ReadableEleme
|
|
|
28049
28072
|
this.isNeedUpdateScale = false;
|
|
28050
28073
|
this.valueObj.value = value;
|
|
28051
28074
|
}
|
|
28052
|
-
if (((_b = this.model.minVariable) === null || _b === void 0 ? void 0 : _b.
|
|
28075
|
+
if (((_b = this.model.minVariable) === null || _b === void 0 ? void 0 : _b.name) === variableName) {
|
|
28053
28076
|
this.isNeedUpdateScale = true;
|
|
28054
28077
|
this.valueObj.min = value;
|
|
28055
28078
|
}
|
|
28056
|
-
if (((_c = this.model.maxVariable) === null || _c === void 0 ? void 0 : _c.
|
|
28079
|
+
if (((_c = this.model.maxVariable) === null || _c === void 0 ? void 0 : _c.name) === variableName) {
|
|
28057
28080
|
this.isNeedUpdateScale = true;
|
|
28058
28081
|
this.valueObj.max = value;
|
|
28059
28082
|
}
|
|
@@ -30118,9 +30141,9 @@ class air_quality_element_AirQualityElement extends conditional_display_element_
|
|
|
30118
30141
|
this.buildBackgroudRect(airQualitySvg, backgroundColor);
|
|
30119
30142
|
this.buildLocGroup(airQualitySvg, airQuality.city, fontColor);
|
|
30120
30143
|
this.buildAirQualityText(airQualitySvg, 130, 55, airQuality.aqi, fontColor, 53);
|
|
30121
|
-
this.buildAirQualityText(airQualitySvg,
|
|
30144
|
+
this.buildAirQualityText(airQualitySvg, 220, 28, '空气质量', fontColor);
|
|
30122
30145
|
this.buildRectBackgroundForAqi(airQualitySvg, airQuality.level);
|
|
30123
|
-
this.buildAirQualityText(airQualitySvg,
|
|
30146
|
+
this.buildAirQualityText(airQualitySvg, 220, 49, airQuality.category, fontColor);
|
|
30124
30147
|
this.buildAirQualityText(airQualitySvg, 30, 75, 'PM2.5', fontColor, 12, 0.8);
|
|
30125
30148
|
this.buildAirQualityText(airQualitySvg, 30, 95, airQuality.pm25, fontColor, 15);
|
|
30126
30149
|
this.buildAirQualityText(airQualitySvg, 80, 75, 'PM10', fontColor, 12, 0.8);
|
|
@@ -30183,7 +30206,7 @@ class air_quality_element_AirQualityElement extends conditional_display_element_
|
|
|
30183
30206
|
backgroundColor = '#A10E0E';
|
|
30184
30207
|
}
|
|
30185
30208
|
airQualitySvg.append('rect')
|
|
30186
|
-
.attr('x', '
|
|
30209
|
+
.attr('x', '195')
|
|
30187
30210
|
.attr('y', '35')
|
|
30188
30211
|
.attr('rx', '5')
|
|
30189
30212
|
.attr('width', '50')
|
|
@@ -40776,7 +40799,7 @@ var shared = __webpack_require__(5);
|
|
|
40776
40799
|
// EXTERNAL MODULE: ./.tmp/view/view.service.ts
|
|
40777
40800
|
var view_service = __webpack_require__(31);
|
|
40778
40801
|
|
|
40779
|
-
// EXTERNAL MODULE: ./.tmp/gui/gui-view.ts +
|
|
40802
|
+
// EXTERNAL MODULE: ./.tmp/gui/gui-view.ts + 123 modules
|
|
40780
40803
|
var gui_view = __webpack_require__(29);
|
|
40781
40804
|
|
|
40782
40805
|
// EXTERNAL MODULE: external "rxjs/operators"
|