@signalplus/params-about 1.0.26-alpha17 → 1.0.26-alpha18
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 +7 -7
- package/package.json +1 -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-alpha18
|
|
5
5
|
* License: MIT
|
|
6
6
|
* Author: 2631541504@qq.com
|
|
7
7
|
*/
|
|
@@ -3087,8 +3087,8 @@ function emptyErrText(index, key) {
|
|
|
3087
3087
|
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
3088
|
}
|
|
3089
3089
|
|
|
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");
|
|
3090
|
+
function zeroErrText(index, key, type, canZero) {
|
|
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' ? canZero ? '<=' : '<' : canZero ? '>=' : '>', " 0");
|
|
3092
3092
|
}
|
|
3093
3093
|
|
|
3094
3094
|
var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig, ParamType.ParamGroup, {
|
|
@@ -3437,16 +3437,16 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
|
|
|
3437
3437
|
return emptyErrText(i, "delta range's min");
|
|
3438
3438
|
}
|
|
3439
3439
|
|
|
3440
|
-
if (Number(vegaRule.deltaRange.min)
|
|
3441
|
-
return zeroErrText(i, "delta range's min", 'max');
|
|
3440
|
+
if (Number(vegaRule.deltaRange.min) < 0) {
|
|
3441
|
+
return zeroErrText(i, "delta range's min", 'max', true);
|
|
3442
3442
|
}
|
|
3443
3443
|
|
|
3444
3444
|
if (isEmpty(vegaRule.deltaRange.max)) {
|
|
3445
3445
|
return emptyErrText(i, "delta range's max");
|
|
3446
3446
|
}
|
|
3447
3447
|
|
|
3448
|
-
if (Number(vegaRule.deltaRange.max)
|
|
3449
|
-
return zeroErrText(i, "delta range's max", 'max');
|
|
3448
|
+
if (Number(vegaRule.deltaRange.max) < 0) {
|
|
3449
|
+
return zeroErrText(i, "delta range's max", 'max', true);
|
|
3450
3450
|
}
|
|
3451
3451
|
|
|
3452
3452
|
if (isEmpty(vegaRule.bidEdgeSpan.from)) {
|