@flexem/fc-gui 3.0.0-alpha.82 → 3.0.0-alpha.84
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 +43 -3
- 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/numerical-display/numerical-display-element.js +3 -3
- package/package.json +1 -1
- package/utils/data-type/fbox-data-type.service.js +40 -0
package/CHANGELOG.md
CHANGED
|
@@ -365,4 +365,14 @@
|
|
|
365
365
|
## 3.0.0-alpha.82(2023-04-26)
|
|
366
366
|
### Web端
|
|
367
367
|
#### Bug Fix
|
|
368
|
-
1. FLEXCLOUD-2473 【web端】组态设计:历史曲线组件网格显示设置
|
|
368
|
+
1. FLEXCLOUD-2473 【web端】组态设计:历史曲线组件网格显示设置
|
|
369
|
+
|
|
370
|
+
## 3.0.0-alpha.83(2023-05-05)
|
|
371
|
+
### Web端
|
|
372
|
+
#### Bug Fix
|
|
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类型数值输入元件无法写负数
|
|
@@ -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 (
|
|
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 (
|
|
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) &&
|
|
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;
|
|
@@ -62458,6 +62458,16 @@ let FBoxDataTypeService = class FBoxDataTypeService {
|
|
|
62458
62458
|
return 8;
|
|
62459
62459
|
case 15: // Binary32
|
|
62460
62460
|
return 32;
|
|
62461
|
+
case 21: // UInt64
|
|
62462
|
+
return 16;
|
|
62463
|
+
case 22: // Int64
|
|
62464
|
+
return 16;
|
|
62465
|
+
case 23: // Bcd64
|
|
62466
|
+
return 16;
|
|
62467
|
+
case 24: // Hex64
|
|
62468
|
+
return 8;
|
|
62469
|
+
case 25: // Binary64
|
|
62470
|
+
return 32;
|
|
62461
62471
|
default:
|
|
62462
62472
|
return 0;
|
|
62463
62473
|
}
|
|
@@ -62514,6 +62524,12 @@ let FBoxDataTypeService = class FBoxDataTypeService {
|
|
|
62514
62524
|
case 13: // Bcd32
|
|
62515
62525
|
case 14: // Hex32
|
|
62516
62526
|
case 15: // Binary32
|
|
62527
|
+
case 21: // UInt64
|
|
62528
|
+
case 23: // Bcd64
|
|
62529
|
+
case 14: // Hex32
|
|
62530
|
+
case 15: // Binary32
|
|
62531
|
+
case 24: // Hex64
|
|
62532
|
+
case 25: // Binary64
|
|
62517
62533
|
minValue = 0;
|
|
62518
62534
|
break;
|
|
62519
62535
|
case 2: // Int16
|
|
@@ -62525,6 +62541,13 @@ let FBoxDataTypeService = class FBoxDataTypeService {
|
|
|
62525
62541
|
case 16: // Single
|
|
62526
62542
|
minValue = -1000000000;
|
|
62527
62543
|
break;
|
|
62544
|
+
case 22: // Int64
|
|
62545
|
+
// minValue = -9223372036854775808;
|
|
62546
|
+
minValue = Number.MIN_SAFE_INTEGER;
|
|
62547
|
+
break;
|
|
62548
|
+
case 26: // Double
|
|
62549
|
+
minValue = -Number.MAX_VALUE;
|
|
62550
|
+
break;
|
|
62528
62551
|
}
|
|
62529
62552
|
if (integerDigits) {
|
|
62530
62553
|
let digitsLength = integerDigits;
|
|
@@ -62576,6 +62599,23 @@ let FBoxDataTypeService = class FBoxDataTypeService {
|
|
|
62576
62599
|
case 16: // Single
|
|
62577
62600
|
maxValue = 1000000000;
|
|
62578
62601
|
break;
|
|
62602
|
+
case 21: // UInt64
|
|
62603
|
+
case 24: // Hex64
|
|
62604
|
+
case 25: // Binary64
|
|
62605
|
+
// maxValue = 18446744073709551615;
|
|
62606
|
+
maxValue = Number.MAX_SAFE_INTEGER;
|
|
62607
|
+
break;
|
|
62608
|
+
case 22: // Int64
|
|
62609
|
+
// maxValue = 9223372036854775807;
|
|
62610
|
+
maxValue = Number.MAX_SAFE_INTEGER;
|
|
62611
|
+
break;
|
|
62612
|
+
case 23: // Bcd64
|
|
62613
|
+
// maxValue = 9999999999999999;
|
|
62614
|
+
maxValue = Number.MAX_SAFE_INTEGER;
|
|
62615
|
+
break;
|
|
62616
|
+
case 26: // Double
|
|
62617
|
+
maxValue = Number.MAX_VALUE;
|
|
62618
|
+
break;
|
|
62579
62619
|
}
|
|
62580
62620
|
if (integerDigits) {
|
|
62581
62621
|
let digitsLength = integerDigits;
|