rapid-spreadjs 1.0.79 → 1.0.81

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/dist/index.cjs.js CHANGED
@@ -19854,7 +19854,7 @@ const FormulaUtils = {
19854
19854
  return '/';
19855
19855
  }
19856
19856
  // 验证operator参数的有效性
19857
- const validOperators = ['>', '<', '>=', '<=', '=', '±'];
19857
+ const validOperators = ['>', '>', '<', '<', '>=', '≥', '≧', '<=', '≤', '≦', '=', '=', '±'];
19858
19858
  if (!validOperators.includes(operator)) {
19859
19859
  return '/';
19860
19860
  }
@@ -19874,6 +19874,7 @@ const FormulaUtils = {
19874
19874
  }
19875
19875
  switch (operator) {
19876
19876
  case '>':
19877
+ case '>':
19877
19878
  if (isSingleValue1) {
19878
19879
  conditionMet = num1 > num2;
19879
19880
  }
@@ -19882,6 +19883,7 @@ const FormulaUtils = {
19882
19883
  }
19883
19884
  break;
19884
19885
  case '<':
19886
+ case '<':
19885
19887
  if (isSingleValue1) {
19886
19888
  conditionMet = num1 < num2;
19887
19889
  }
@@ -19890,6 +19892,8 @@ const FormulaUtils = {
19890
19892
  }
19891
19893
  break;
19892
19894
  case '>=':
19895
+ case '≥':
19896
+ case '≧':
19893
19897
  if (isSingleValue1) {
19894
19898
  conditionMet = num1 >= num2;
19895
19899
  }
@@ -19898,6 +19902,8 @@ const FormulaUtils = {
19898
19902
  }
19899
19903
  break;
19900
19904
  case '<=':
19905
+ case '≤':
19906
+ case '≦':
19901
19907
  if (isSingleValue1) {
19902
19908
  conditionMet = num1 <= num2;
19903
19909
  }
@@ -19906,6 +19912,7 @@ const FormulaUtils = {
19906
19912
  }
19907
19913
  break;
19908
19914
  case '=':
19915
+ case '=':
19909
19916
  if (isSingleValue1) {
19910
19917
  conditionMet = num1 === num2;
19911
19918
  }
@@ -19938,7 +19945,7 @@ const FormulaUtils = {
19938
19945
  }
19939
19946
  return '';
19940
19947
  })
19941
- .filter((val) => val !== ''); // 过滤空值
19948
+ .filter((val) => val !== '' && val != '/' && val != 'null' && val != null && val != undefined); // 过滤空值
19942
19949
  // 使用指定的分隔符连接结果[2,3,5](@ref)
19943
19950
  return resultValues.join(delimiter);
19944
19951
  }