@signalplus/params-about 1.0.20-alpha → 1.0.21-alpha

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 +6 -6
  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
- * Generated: 2024-05-06
4
- * Version: 1.0.20-alpha
3
+ * Generated: 2024-05-09
4
+ * Version: 1.0.21-alpha
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -1938,7 +1938,7 @@ var HardLimitHandler = /*#__PURE__*/function (_PureComponent) {
1938
1938
  className: "param-expiries readonly"
1939
1939
  }, /*#__PURE__*/React.createElement("span", {
1940
1940
  className: "param-expiries-val"
1941
- }, "Handing Mode")), /*#__PURE__*/React.createElement("div", {
1941
+ }, "Protection Mode")), /*#__PURE__*/React.createElement("div", {
1942
1942
  className: "param-number-range readonly"
1943
1943
  }, "ProtectThreshold(%)"), /*#__PURE__*/React.createElement("div", {
1944
1944
  className: "param-number-range readonly"
@@ -2590,7 +2590,7 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
2590
2590
  for (var i = 0; i < $val.length; i++) {
2591
2591
  var val = $val[i];
2592
2592
  var error = expiryValidator(val === null || val === void 0 ? void 0 : val.expiry);
2593
- if (isNullLike(val.expiry) && isNullLike(val.value)) return '';
2593
+ if (isEmpty(val.expiry) && isNullLike(val.value)) return '';
2594
2594
 
2595
2595
  if (error) {
2596
2596
  return "Expiry field of the ".concat(i + 1).concat(i === 0 ? 'st' : i === 1 ? 'nd' : i === 2 ? 'rd' : 'th', " item: ").concat(error);
@@ -2654,7 +2654,7 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
2654
2654
 
2655
2655
  for (var i = 0; i < $val.length; i++) {
2656
2656
  var val = $val[i];
2657
- if (isNullLike(val.instrument) && isNullLike(val.value)) return '';
2657
+ if (isEmpty(val.instrument) && isNullLike(val.value)) return '';
2658
2658
 
2659
2659
  if (isNullLike(val.instrument) && !isNullLike(val.value)) {
2660
2660
  return emptyErrText(i, 'instrument');
@@ -2704,7 +2704,7 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
2704
2704
 
2705
2705
  for (var i = 0; i < $val.length; i++) {
2706
2706
  var val = $val[i];
2707
- if (isNullLike(val.key) && isNullLike(val.value)) return '';
2707
+ if (isEmpty(val.key) && isNullLike(val.value)) return '';
2708
2708
 
2709
2709
  if (isNullLike(val.key) && !isNullLike(val.value)) {
2710
2710
  return emptyErrText(i, 'key');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "1.0.20-alpha",
3
+ "version": "1.0.21-alpha",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",