@flexem/fc-gui 3.0.0-alpha.51 → 3.0.0-alpha.53

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 CHANGED
@@ -204,4 +204,14 @@
204
204
  ## 3.0.0-alpha.51(2022-10-25)
205
205
  ### Web端
206
206
  #### Features
207
- 1. 解决一个偶发问题,在云组态的元件中设置了增益时,可能出现写完值后会先显示增益后的值并提示超过长度,再关掉弹窗的问题
207
+ 1. 解决一个偶发问题,在云组态的元件中设置了增益时,可能出现写完值后会先显示增益后的值并提示超过长度,再关掉弹窗的问题
208
+
209
+ ## 3.0.0-alpha.52(2022-10-31)
210
+ ### Web端
211
+ #### Features
212
+ 1. FLEXCLOUD-2331: android切换时间后,不显示时间筛选组件,ios切换筛选时间大于24小时,时间格式为增加年月日
213
+
214
+ ## 3.0.0-alpha.53(2022-11-04)
215
+ ### Web端
216
+ #### Features
217
+ 1. FLEXCLOUD-2347【Web端】组态页面:组态页面监控点比较多,导致组态页面切换不生效问题
@@ -27024,12 +27024,13 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
27024
27024
  .text((d) => d);
27025
27025
  const focusWrap = this.rootElement.selectAll('.nv-focusWrap');
27026
27026
  if (focusWrap.size()) {
27027
- const h = focusWrap.attr('transform')
27028
- .slice(0, -1)
27029
- .split(',')[1];
27030
- this.rootElement
27031
- .selectAll('.nv-focusWrap')
27032
- .attr('transform', `translate(0,${Number(h) + 15})`);
27027
+ let h = focusWrap.attr('transform');
27028
+ if (h && h.length && h.indexOf(',') !== -1) {
27029
+ h = h.slice(0, -1).split(',')[1];
27030
+ this.rootElement
27031
+ .selectAll('.nv-focusWrap')
27032
+ .attr('transform', `translate(0,${Number(h) + 15})`);
27033
+ }
27033
27034
  }
27034
27035
  const resizeObserver = new window.MutationObserver(() => {
27035
27036
  this.rootElement
@@ -27346,7 +27347,7 @@ meter_element_MeterElement.DEFAULT_MAX_VALUE = 100;
27346
27347
 
27347
27348
  // CONCATENATED MODULE: ./.tmp/modal/write-value/write-value-modal-args.ts
27348
27349
  class WriteValueModalArgs {
27349
- constructor(variableName, dataType, fBoxDataType, integerDigits, fractionDigits, numericalOperation, version, enableDataParsed) {
27350
+ constructor(variableName, dataType, fBoxDataType, integerDigits, fractionDigits, numericalOperation, version, enableDataParsed, releasedVariableService) {
27350
27351
  this.variableName = variableName;
27351
27352
  this.dataType = dataType;
27352
27353
  this.fBoxDataType = fBoxDataType;
@@ -27355,6 +27356,7 @@ class WriteValueModalArgs {
27355
27356
  this.numericalOperation = numericalOperation;
27356
27357
  this.version = version;
27357
27358
  this.enableDataParsed = enableDataParsed;
27359
+ this.releasedVariableService = releasedVariableService;
27358
27360
  }
27359
27361
  }
27360
27362
 
@@ -27419,12 +27421,6 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
27419
27421
  }
27420
27422
  }
27421
27423
  initElement() {
27422
- this.releasedVariableService.getVariablesWithValueTransform().subscribe(result => {
27423
- const variablesTransform = result.filter(item => item.name === this.writeVariableName);
27424
- if (variablesTransform && variablesTransform.length && JSON.parse(variablesTransform[0].valueTransform).Type !== 0) {
27425
- this.numericalOperation = true;
27426
- }
27427
- });
27428
27424
  const { rootElement } = this;
27429
27425
  rootElement.selectAll('*').remove();
27430
27426
  let width = null, height = null;
@@ -27547,7 +27543,7 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
27547
27543
  if (null == this.writeVariableName) {
27548
27544
  return;
27549
27545
  }
27550
- const args = new WriteValueModalArgs(this.writeVariableName, this.model.dataType, this.model.fBoxDataType, this.model.integerDigits, this.model.fractionDigits, this.numericalOperationService.getNumericalOperations(this.model), this.model.version, this.enableDataParsed);
27546
+ const args = new WriteValueModalArgs(this.writeVariableName, this.model.dataType, this.model.fBoxDataType, this.model.integerDigits, this.model.fractionDigits, this.numericalOperationService.getNumericalOperations(this.model), this.model.version, this.enableDataParsed, this.releasedVariableService);
27551
27547
  this.writeValueMmodalRef = this.modalService.show(write_value_modal_component["a" /* WriteValueModalComponent */], {
27552
27548
  initialState: { args: args }, backdrop: 'static', class: 'gui-modal-dialog-position', animated: false
27553
27549
  });
@@ -27561,7 +27557,7 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
27561
27557
  this.writeValue = writeValue;
27562
27558
  this.showValue = result.showValue;
27563
27559
  if (+this.displayText !== +this.showValue) {
27564
- if (this.numericalOperation || result.enableNumericalOperation) {
27560
+ if (this.numericalOperation || result.enableNumericalOperation || result.isNumericalOperation) {
27565
27561
  this.writeValueMmodalRef.hide();
27566
27562
  }
27567
27563
  else {
@@ -41214,7 +41210,13 @@ let WriteValueModalComponent = class WriteValueModalComponent {
41214
41210
  value = this.formatWriteValue();
41215
41211
  }
41216
41212
  }
41217
- this.onClosed({ value, showValue, enableNumericalOperation: this.enableNumericalOperation });
41213
+ this.args.releasedVariableService.getVariablesWithValueTransform().subscribe(result => {
41214
+ const variablesTransform = result.filter(item => item.name === this.args.variableName);
41215
+ if (variablesTransform && variablesTransform.length && JSON.parse(variablesTransform[0].valueTransform).Type !== 0) {
41216
+ this.isNumericalOperation = true;
41217
+ }
41218
+ this.onClosed({ value, showValue, enableNumericalOperation: this.enableNumericalOperation, isNumericalOperation: this.isNumericalOperation });
41219
+ });
41218
41220
  }
41219
41221
  close() {
41220
41222
  this.bsModalRef.hide();