@flexem/fc-gui 3.0.0-alpha.97 → 3.0.0-alpha.98
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 +27 -1
- package/bundles/@flexem/fc-gui.umd.js +89 -2
- 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/historical-curve/historical-curve.element.d.ts +3 -0
- package/elements/historical-curve/historical-curve.element.js +71 -0
- package/elements/historical-curve/historical-curve.element.metadata.json +1 -1
- package/elements/video/video-element.js +6 -1
- package/modal/write-value/write-value-modal.component.js +12 -1
- package/model/historical-curve/historical-curve-chanel.model.d.ts +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -410,7 +410,33 @@
|
|
|
410
410
|
2. 修复在鸿蒙系统的手机上,视频元件的控制按钮显示异常的问题
|
|
411
411
|
3. 修复ios系统中视频放大缩小后,画面会变形的问题
|
|
412
412
|
|
|
413
|
+
## 3.0.0-alpha.92(2023-07-18)
|
|
414
|
+
### Web端
|
|
415
|
+
#### Features
|
|
416
|
+
1. FLEXCLOUD-2710 【氚云20230621000600】组态历史曲线表:历史曲线增加点位标记,便于直观看到曲线采样点的变化
|
|
417
|
+
|
|
418
|
+
## 3.0.0-alpha.93(2023-07-21)
|
|
419
|
+
### Web端
|
|
420
|
+
#### Features
|
|
421
|
+
1. FLEXCLOUD-2741 【氚云20230714001409】模板的模拟功能,无法进行写值,一直提示提交中
|
|
422
|
+
|
|
423
|
+
## 3.0.0-alpha.94(2023-07-21)
|
|
424
|
+
### Web端
|
|
425
|
+
#### Features
|
|
426
|
+
1. FLEXCLOUD-2710 【氚云20230621000600】组态历史曲线表:历史曲线增加点位标记,便于直观看到曲线采样点的变化
|
|
427
|
+
- 修改标记点大小
|
|
428
|
+
|
|
429
|
+
## 3.0.0-alpha.96(2023-09-26)
|
|
430
|
+
### Web端
|
|
431
|
+
#### Bug Fix
|
|
432
|
+
1. FLEXCLOUD-2864 2018年创建的模板组态写值失败(在补丁包v2.22.0-Hotfix5中使用,其它分支不要用)
|
|
433
|
+
|
|
413
434
|
## 3.0.0-alpha.97(2023-09-26)
|
|
414
435
|
### Web端
|
|
415
436
|
#### Bug Fix
|
|
416
|
-
1. FLEXCLOUD-2864 2018年创建的模板组态写值失败(给APP补丁包v2.8.0中使用)
|
|
437
|
+
1. FLEXCLOUD-2864 2018年创建的模板组态写值失败(给APP补丁包v2.8.0中使用)
|
|
438
|
+
|
|
439
|
+
## 3.0.0-alpha.98(2023-09-26)
|
|
440
|
+
### Web端
|
|
441
|
+
#### Bug Fix
|
|
442
|
+
1. FLEXCLOUD-2864 2018年创建的模板组态写值失败(在开发分支上使用)
|
|
@@ -36357,6 +36357,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
36357
36357
|
operationButtonMargin: 4
|
|
36358
36358
|
};
|
|
36359
36359
|
this.elementStatus = HistoricalCurveElementStatus.Loading;
|
|
36360
|
+
this.data = [];
|
|
36360
36361
|
this.logger = injector.get(logger["b" /* LOGGER_SERVICE_TOKEN */]);
|
|
36361
36362
|
this.localization = injector.get(_tmp_localization["b" /* LOCALIZATION */]);
|
|
36362
36363
|
this.timePeriods = this.getValidTimePeriods();
|
|
@@ -36468,6 +36469,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
36468
36469
|
Object(lodash["each"])(result, v => values.push({ x: moment(v.time).local().toDate().valueOf(), y: v.values[key] }));
|
|
36469
36470
|
data.push({ key: channel.name, area: channel.projectEnabled, values: values });
|
|
36470
36471
|
});
|
|
36472
|
+
this.data = data;
|
|
36471
36473
|
nv_d3["addGraph"](() => {
|
|
36472
36474
|
if (this.model.displaySetting.curveType === CurveType.BarGroup || this.model.displaySetting.curveType === CurveType.BarStack) {
|
|
36473
36475
|
return this.getMultiBarWithFocusChart(chartWidth, chartHeight, data);
|
|
@@ -36477,6 +36479,50 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
36477
36479
|
}
|
|
36478
36480
|
});
|
|
36479
36481
|
}
|
|
36482
|
+
initPoint() {
|
|
36483
|
+
try {
|
|
36484
|
+
const legendList = this.$element
|
|
36485
|
+
.find('.nv-legend')
|
|
36486
|
+
.find('.nv-series');
|
|
36487
|
+
let hiddenCount = 0;
|
|
36488
|
+
for (let i = 0; i < this.data.length; i++) {
|
|
36489
|
+
const channel = this.model.dataSetting.channels[i];
|
|
36490
|
+
if (legendList.eq(i).children().eq(0).css('fill-opacity') === '1') {
|
|
36491
|
+
const pointList = this.$element
|
|
36492
|
+
.find('.nv-scatterWrap')
|
|
36493
|
+
.find('.nv-series-' + (i - hiddenCount))
|
|
36494
|
+
.find('.nv-point');
|
|
36495
|
+
if (pointList && pointList.length) {
|
|
36496
|
+
for (let j = 0; j < pointList.length; j++) {
|
|
36497
|
+
const point = pointList.eq(j);
|
|
36498
|
+
const previousPoint = pointList.eq(j - 1);
|
|
36499
|
+
if (j && point.attr('transform').split(',')[1] !== previousPoint.attr('transform').split(',')[1]) {
|
|
36500
|
+
if (channel.enablePoint && channel.pointColor) {
|
|
36501
|
+
const pointStyle = {
|
|
36502
|
+
'stroke-opacity': 1,
|
|
36503
|
+
'stroke-width': '2px',
|
|
36504
|
+
'stroke': channel.pointColor,
|
|
36505
|
+
'fill-opacity': 1,
|
|
36506
|
+
'fill': channel.pointColor
|
|
36507
|
+
};
|
|
36508
|
+
point.addClass('nv-mark-point');
|
|
36509
|
+
point.css(pointStyle);
|
|
36510
|
+
previousPoint.addClass('nv-mark-point');
|
|
36511
|
+
previousPoint.css(pointStyle);
|
|
36512
|
+
}
|
|
36513
|
+
}
|
|
36514
|
+
}
|
|
36515
|
+
}
|
|
36516
|
+
}
|
|
36517
|
+
else {
|
|
36518
|
+
hiddenCount++;
|
|
36519
|
+
}
|
|
36520
|
+
}
|
|
36521
|
+
}
|
|
36522
|
+
catch (e) {
|
|
36523
|
+
console.log(e);
|
|
36524
|
+
}
|
|
36525
|
+
}
|
|
36480
36526
|
getLineChart(chartWidth, chartHeight, data) {
|
|
36481
36527
|
const chart = nv_d3["models"].lineChart().showLegend(true)
|
|
36482
36528
|
.margin({ top: 0, bottom: 0, left: this.displayOption.marginLeft, right: this.displayOption.marginRight })
|
|
@@ -36492,6 +36538,19 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
36492
36538
|
}
|
|
36493
36539
|
this.renderCommonProperty(chart, chartWidth, chartHeight, data);
|
|
36494
36540
|
this.renderOperationArea(chartWidth, chartHeight);
|
|
36541
|
+
this.initPoint();
|
|
36542
|
+
chart.legend.dispatch.on('legendClick', () => {
|
|
36543
|
+
setTimeout(() => {
|
|
36544
|
+
this.$element.find('.nv-mark-point').css({
|
|
36545
|
+
'stroke-opacity': 0,
|
|
36546
|
+
'stroke-width': 0,
|
|
36547
|
+
'stroke': 'unset',
|
|
36548
|
+
'fill-opacity': 0,
|
|
36549
|
+
'fill': 'unset'
|
|
36550
|
+
}).removeClass('nv-mark-point');
|
|
36551
|
+
this.initPoint();
|
|
36552
|
+
}, 1);
|
|
36553
|
+
});
|
|
36495
36554
|
return chart;
|
|
36496
36555
|
}
|
|
36497
36556
|
getMultiBarWithFocusChart(chartWidth, chartHeight, data) {
|
|
@@ -36535,6 +36594,18 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
36535
36594
|
chart.tooltip.headerFormatter(d => this.timeFormat(d, '%x %X'));
|
|
36536
36595
|
if (this.model.displaySetting.showAxis) {
|
|
36537
36596
|
chart.xAxis.showMaxMin(true).tickFormat(d => {
|
|
36597
|
+
this.$element.find('.nv-mark-point').css({
|
|
36598
|
+
'stroke-opacity': 0,
|
|
36599
|
+
'stroke-width': 0,
|
|
36600
|
+
'stroke': 'unset',
|
|
36601
|
+
'fill-opacity': 0,
|
|
36602
|
+
'fill': 'unset'
|
|
36603
|
+
}).removeClass('nv-mark-point');
|
|
36604
|
+
clearTimeout(this.timer);
|
|
36605
|
+
this.timer = undefined;
|
|
36606
|
+
this.timer = setTimeout(() => {
|
|
36607
|
+
this.initPoint();
|
|
36608
|
+
}, 100);
|
|
36538
36609
|
if (this.currentTimePeriod === 3 || this.currentTimePeriod === 4 || this.currentTimePeriod === 5) {
|
|
36539
36610
|
return this.timeFormat(d, '%y-%m-%d');
|
|
36540
36611
|
}
|
|
@@ -39576,7 +39647,12 @@ class video_element_VideoElement extends conditional_display_element_Conditional
|
|
|
39576
39647
|
else if (isIos) {
|
|
39577
39648
|
this.setIosVideo(this.videoUrl, videoId);
|
|
39578
39649
|
}
|
|
39579
|
-
|
|
39650
|
+
try {
|
|
39651
|
+
this.videoPlayer = new EZUIPlayer(videoId);
|
|
39652
|
+
}
|
|
39653
|
+
catch (err) {
|
|
39654
|
+
console.log(err);
|
|
39655
|
+
}
|
|
39580
39656
|
}, 1000);
|
|
39581
39657
|
const style = document.createElement('style');
|
|
39582
39658
|
style.innerHTML = `#${videoId}::-webkit-media-controls-enclosure {
|
|
@@ -41715,13 +41791,24 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
41715
41791
|
value = this.formatWriteValue();
|
|
41716
41792
|
}
|
|
41717
41793
|
}
|
|
41794
|
+
if (!this.args.releasedVariableService) {
|
|
41795
|
+
this.onClosed({
|
|
41796
|
+
value: value,
|
|
41797
|
+
showValue: showValue,
|
|
41798
|
+
enableNumericalOperation: false,
|
|
41799
|
+
isNumericalOperation: this.isNumericalOperation,
|
|
41800
|
+
variableRwType: 6
|
|
41801
|
+
});
|
|
41802
|
+
return;
|
|
41803
|
+
}
|
|
41718
41804
|
this.args.releasedVariableService.getVariableWithValueTransform(this.variableName).subscribe(result => {
|
|
41719
41805
|
const valueTransform = JSON.parse(result.valueTransform);
|
|
41720
41806
|
if ((valueTransform === null || valueTransform === void 0 ? void 0 : valueTransform.Type) !== 0) {
|
|
41721
41807
|
this.isNumericalOperation = true;
|
|
41722
41808
|
}
|
|
41723
41809
|
this.onClosed({
|
|
41724
|
-
value
|
|
41810
|
+
value: value,
|
|
41811
|
+
showValue: showValue,
|
|
41725
41812
|
enableNumericalOperation: this.enableNumericalOperation,
|
|
41726
41813
|
isNumericalOperation: this.isNumericalOperation,
|
|
41727
41814
|
variableRwType: result.variableRwType
|