@signalplus/params-about 1.0.26-alpha16 → 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.
Files changed (2) hide show
  1. package/lib/es/index.js +11 -3
  2. 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-alpha16
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,10 +3437,18 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
3437
3437
  return emptyErrText(i, "delta range's min");
3438
3438
  }
3439
3439
 
3440
+ if (Number(vegaRule.deltaRange.min) < 0) {
3441
+ return zeroErrText(i, "delta range's min", 'max', true);
3442
+ }
3443
+
3440
3444
  if (isEmpty(vegaRule.deltaRange.max)) {
3441
3445
  return emptyErrText(i, "delta range's max");
3442
3446
  }
3443
3447
 
3448
+ if (Number(vegaRule.deltaRange.max) < 0) {
3449
+ return zeroErrText(i, "delta range's max", 'max', true);
3450
+ }
3451
+
3444
3452
  if (isEmpty(vegaRule.bidEdgeSpan.from)) {
3445
3453
  return emptyErrText(i, "bid edge range's from");
3446
3454
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "1.0.26-alpha16",
3
+ "version": "1.0.26-alpha18",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",