@signalplus/params-about 1.0.26-alpha17 → 1.0.26-alpha19
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/lib/es/index.js +12 -8
- package/package.json +4 -1
package/lib/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Bundle of @signalplus/params-about
|
|
3
3
|
* Generated: 2025-11-07
|
|
4
|
-
* Version: 1.0.26-
|
|
4
|
+
* Version: 1.0.26-alpha19
|
|
5
5
|
* License: MIT
|
|
6
6
|
* Author: 2631541504@qq.com
|
|
7
7
|
*/
|
|
@@ -2887,7 +2887,7 @@ var ExpiryVegaAlphaByEdgeList = /*#__PURE__*/function (_PureComponent) {
|
|
|
2887
2887
|
style: {
|
|
2888
2888
|
width: 60
|
|
2889
2889
|
}
|
|
2890
|
-
}, "
|
|
2890
|
+
}, "Disable")), this.value.map(function (it, i) {
|
|
2891
2891
|
var _this2$props$value, _this2$props$value$i;
|
|
2892
2892
|
|
|
2893
2893
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -3033,6 +3033,8 @@ var ExpiryVegaAlphaByEdgeList = /*#__PURE__*/function (_PureComponent) {
|
|
|
3033
3033
|
onBlur: _this2.props.onBlur
|
|
3034
3034
|
})), /*#__PURE__*/React.createElement("div", {
|
|
3035
3035
|
style: {
|
|
3036
|
+
display: 'flex',
|
|
3037
|
+
justifyContent: 'center',
|
|
3036
3038
|
width: 74
|
|
3037
3039
|
}
|
|
3038
3040
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
@@ -3042,6 +3044,8 @@ var ExpiryVegaAlphaByEdgeList = /*#__PURE__*/function (_PureComponent) {
|
|
|
3042
3044
|
}
|
|
3043
3045
|
})), /*#__PURE__*/React.createElement("div", {
|
|
3044
3046
|
style: {
|
|
3047
|
+
display: 'flex',
|
|
3048
|
+
justifyContent: 'center',
|
|
3045
3049
|
position: 'relative',
|
|
3046
3050
|
width: 60
|
|
3047
3051
|
}
|
|
@@ -3087,8 +3091,8 @@ function emptyErrText(index, key) {
|
|
|
3087
3091
|
return "The ".concat(index + 1).concat(index === 0 ? 'st' : index === 1 ? 'nd' : index === 2 ? 'rd' : 'th', " item: ").concat(key ? key + ' ' : '', "should not be empty");
|
|
3088
3092
|
}
|
|
3089
3093
|
|
|
3090
|
-
function zeroErrText(index, key, type) {
|
|
3091
|
-
return "The ".concat(index + 1).concat(index === 0 ? 'st' : index === 1 ? 'nd' : index === 2 ? 'rd' : 'th', " item: ").concat(key ? key + ' ' : '', "should be ").concat(type === 'min' ? '<' : '>', " 0");
|
|
3094
|
+
function zeroErrText(index, key, type, canZero) {
|
|
3095
|
+
return "The ".concat(index + 1).concat(index === 0 ? 'st' : index === 1 ? 'nd' : index === 2 ? 'rd' : 'th', " item: ").concat(key ? key + ' ' : '', "should be ").concat(type === 'min' ? canZero ? '<=' : '<' : canZero ? '>=' : '>', " 0");
|
|
3092
3096
|
}
|
|
3093
3097
|
|
|
3094
3098
|
var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig, ParamType.ParamGroup, {
|
|
@@ -3437,16 +3441,16 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
|
|
|
3437
3441
|
return emptyErrText(i, "delta range's min");
|
|
3438
3442
|
}
|
|
3439
3443
|
|
|
3440
|
-
if (Number(vegaRule.deltaRange.min)
|
|
3441
|
-
return zeroErrText(i, "delta range's min", 'max');
|
|
3444
|
+
if (Number(vegaRule.deltaRange.min) < 0) {
|
|
3445
|
+
return zeroErrText(i, "delta range's min", 'max', true);
|
|
3442
3446
|
}
|
|
3443
3447
|
|
|
3444
3448
|
if (isEmpty(vegaRule.deltaRange.max)) {
|
|
3445
3449
|
return emptyErrText(i, "delta range's max");
|
|
3446
3450
|
}
|
|
3447
3451
|
|
|
3448
|
-
if (Number(vegaRule.deltaRange.max)
|
|
3449
|
-
return zeroErrText(i, "delta range's max", 'max');
|
|
3452
|
+
if (Number(vegaRule.deltaRange.max) < 0) {
|
|
3453
|
+
return zeroErrText(i, "delta range's max", 'max', true);
|
|
3450
3454
|
}
|
|
3451
3455
|
|
|
3452
3456
|
if (isEmpty(vegaRule.bidEdgeSpan.from)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalplus/params-about",
|
|
3
|
-
"version": "1.0.26-
|
|
3
|
+
"version": "1.0.26-alpha19",
|
|
4
4
|
"description": "A description for the module",
|
|
5
5
|
"main": "./lib/umd/index.js",
|
|
6
6
|
"module": "./lib/es/index.js",
|
|
@@ -89,5 +89,8 @@
|
|
|
89
89
|
"dayjs": "^1.11.0",
|
|
90
90
|
"lodash-es": "^4.17.21",
|
|
91
91
|
"react-global-comp": "^2.0.1"
|
|
92
|
+
},
|
|
93
|
+
"dependencies": {
|
|
94
|
+
"@signalplus/params-about": "1.0.26-alpha18"
|
|
92
95
|
}
|
|
93
96
|
}
|