@flexem/fc-gui 3.0.0-alpha.83 → 3.0.0-alpha.85

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
@@ -370,4 +370,15 @@
370
370
  ## 3.0.0-alpha.83(2023-05-05)
371
371
  ### Web端
372
372
  #### Bug Fix
373
- 1. FLEXCLOUD-2329 组件应兼容64位数据类型
373
+ 1. FLEXCLOUD-2329 组件应兼容64位数据类型
374
+
375
+ ## 3.0.0-alpha.84(2023-05-11)
376
+ ### Web端
377
+ #### Bug Fix
378
+ 1. FLEXCLOUD-2609 double类型数值输入元件无法写负数
379
+
380
+ ## 3.0.0-alpha.85(2023-05-11)
381
+ ### Web端
382
+ #### Bug Fix
383
+ 1. FLEXCLOUD-2609 double类型数值输入元件无法写负数
384
+ - 修改写值提示的格式
@@ -37160,14 +37160,14 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
37160
37160
  this.recordValue = result.value;
37161
37161
  const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
37162
37162
  this.showValue = result.showValue;
37163
- if (+this.displayText !== +this.showValue || result.variableRwType === variableRwTypeEnum.witer) {
37163
+ if (this.displayText.toString().toUpperCase() !== this.showValue.toString().toUpperCase() || result.variableRwType === variableRwTypeEnum.witer) {
37164
37164
  if (this.numericalOperation || result.enableNumericalOperation || result.isNumericalOperation || result.variableRwType === variableRwTypeEnum.witer) {
37165
37165
  this.recordOperation(result.value);
37166
37166
  this.writeValueMmodalRef.hide();
37167
37167
  }
37168
37168
  else {
37169
37169
  this.restorationTimer = setTimeout(() => {
37170
- if (this.displayText.toUpperCase() !== this.showValue.toUpperCase()) {
37170
+ if (this.displayText.toString().toUpperCase() !== this.showValue.toString().toUpperCase()) {
37171
37171
  this.writeValueMmodalRef.content.isSubmitting = false;
37172
37172
  this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
37173
37173
  }
@@ -37207,7 +37207,7 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
37207
37207
  updateVariableValue(value) {
37208
37208
  var _a;
37209
37209
  const displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
37210
- if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && +displayText === +this.showValue) {
37210
+ if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && displayText.toString().toUpperCase() === this.showValue.toString().toUpperCase()) {
37211
37211
  if (this.restorationTimer) {
37212
37212
  clearTimeout(this.restorationTimer);
37213
37213
  this.restorationTimer = undefined;
@@ -41759,7 +41759,7 @@ __decorate([
41759
41759
  WriteValueModalComponent = __decorate([
41760
41760
  Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
41761
41761
  selector: 'writeValueModal',
41762
- template: "<form #writeValueForm=\"ngForm\" novalidate (ngSubmit)=\"save()\" bs-modal-drag> <div class=\"modal-header\"> <h4 class=\"modal-title\"> <span>{{localization.setting}}</span> <span>{{variableName}}</span> </h4> <button type=\"button\" class=\"close pull-right\" aria-label=\"Close\" (click)=\"close()\"> <span aria-hidden=\"true\">&times;</span> </button> </div> <div class=\"modal-body\"> <span class=\"write-value-range\">{{localization.writeValueRange}}:&nbsp;{{writeValueRangeText}} <span *ngIf=\"valueType\">({{valueType}})</span> </span> <input type=\"text\" name=\"valueInput\" autoFocus class=\"form-control write-value\" [(ngModel)]=\"value\" (keyup)=\"validate($event)\" autocomplete=\"off\"> <span class=\"help-block text-danger\" [hidden]=\"!validationError\">{{validationErrorText}}</span> </div> <div class=\"modal-footer\"> <button type=\"submit\" class=\"btn md-skip btn-primary btn-block\" [disabled]=\"validationError || isSubmitting\"> <ng-container *ngIf=\"!isSubmitting\">{{localization.submit}}</ng-container> <ng-container *ngIf=\"isSubmitting\">{{localization.submitting}}</ng-container> </button> </div> </form> ",
41762
+ template: "<form #writeValueForm=\"ngForm\" novalidate (ngSubmit)=\"save()\" bs-modal-drag> <div class=\"modal-header\"> <h4 class=\"modal-title\"> <span>{{localization.setting}}</span> <span>{{variableName}}</span> </h4> <button type=\"button\" class=\"close pull-right\" aria-label=\"Close\" (click)=\"close()\"> <span aria-hidden=\"true\">&times;</span> </button> </div> <div class=\"modal-body\"> <span class=\"write-value-range\">{{localization.writeValueRange}}:</span> <div class=\"write-value-range\"> {{writeValueRangeText}} <span *ngIf=\"valueType\">({{valueType}})</span> </div> <input type=\"text\" name=\"valueInput\" autoFocus class=\"form-control write-value\" [(ngModel)]=\"value\" (keyup)=\"validate($event)\" autocomplete=\"off\"> <span class=\"help-block text-danger\" [hidden]=\"!validationError\">{{validationErrorText}}</span> </div> <div class=\"modal-footer\"> <button type=\"submit\" class=\"btn md-skip btn-primary btn-block\" [disabled]=\"validationError || isSubmitting\"> <ng-container *ngIf=\"!isSubmitting\">{{localization.submit}}</ng-container> <ng-container *ngIf=\"isSubmitting\">{{localization.submitting}}</ng-container> </button> </div> </form> ",
41763
41763
  styles: [".modal-header { padding: 10px; border-color: transparent; } .modal-body { position: relative; padding: 0px 5px !important; padding-top: 10px !important; } .modal-title { display: unset; margin-left: -6px; font-size: 16px !important; } .form-control { margin: 0 5%; float: none; width: 90%; } .modal-footer { padding: 10px 4px 20px 5px !important; text-align: right; border-color: transparent; } .text-danger { display: block; color: #ed6b75; font-size: 14px; margin: 5px 0px 0px 15px; } .btn-primary { background-color: #3B97FC; border-color: #3B97FC; padding: 5px 30px; width: 90%; margin: 0 5%; height: 32px; } .write-value-range { color: #7f939e; font-size: 14px; margin-left: 15px; } .write-value { padding-left: 8px; margin-left: 16px; height: 32px; } "]
41764
41764
  }),
41765
41765
  __param(0, Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"])(_localization__WEBPACK_IMPORTED_MODULE_1__[/* LOCALIZATION */ "b"]))
@@ -62546,7 +62546,7 @@ let FBoxDataTypeService = class FBoxDataTypeService {
62546
62546
  minValue = Number.MIN_SAFE_INTEGER;
62547
62547
  break;
62548
62548
  case 26: // Double
62549
- minValue = Number.MIN_VALUE;
62549
+ minValue = -Number.MAX_VALUE;
62550
62550
  break;
62551
62551
  }
62552
62552
  if (integerDigits) {