@fileverse-dev/dsheet 1.3.3-right-3 → 1.3.4

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/dist/index.es.js +4 -4
  2. package/package.json +3 -3
package/dist/index.es.js CHANGED
@@ -66125,7 +66125,7 @@ function fle(e, t) {
66125
66125
  var u6 = "ERROR", KD = "DIV/0", Nh = "NAME", ule = "N/A", ZU = "NULL", YU = "NUM", v6 = "REF", am = "VALUE", m6 = (GT = {}, il(il(il(il(il(il(il(il(il(il(GT, "Error: lookup_range and result_range are required", "Lookup range and result range are required"), u6, "Syntax error"), KD, "#DIV/0!"), Nh, "Wrong function name or parameter"), ule, "#N/A"), ZU, "#NULL!"), YU, "#NUM!"), v6, "#REF!"), am, "#VALUE!"), "search_key", "Error: search_key is required"), il(il(il(il(il(il(il(il(GT, "lookup_range", "Error: lookup_range is required"), "result_range", "Error: result_range is required"), "lookup_range_single", "Error: lookup_range must be a singular row or column"), "result_range_invalid", "Error: result_range is invalid"), "lookup_range_and_result_range", "Error: lookup_range and result_range must have the same number of columns"), "match_mode_must", "Error: match_mode must be 0, 1, -1, or 2"), "search_mode_must", "Error: search_mode must be 1, -1, 2, or -2"), "binary_search_and_wildcard", "'Error: Binary search (search_mode ±2) cannot be used with wildcard matching (match_mode 2)"));
66126
66126
  function R9(e) {
66127
66127
  var t;
66128
- return e = (e + "").replace(/#|!|\?/g, ""), m6[e] && (t = m6[e]), t || null;
66128
+ return e = (e + "").replace(/#|!|\?/g, ""), m6[e] && (t = m6[e]), t || e;
66129
66129
  }
66130
66130
  function vle(e) {
66131
66131
  var t = !1;
@@ -69133,14 +69133,14 @@ function $le(e, t, r, i, n, a, l) {
69133
69133
  if (s.map((u) => {
69134
69134
  if (u.length !== f.length)
69135
69135
  return new Error("lookup_range_and_result_range");
69136
- }), n = n !== void 0 ? n : new Error("not_found"), a = a !== void 0 ? a : 0, l = l !== void 0 ? l : 1, c = c !== void 0 ? c : !1, ![0, 1, -1, 2].includes(a))
69136
+ }), n = n !== void 0 ? n : new Error(`Did not find value ${e} in XLOOKUP evaluation.`), a = a !== void 0 ? a : 0, l = l !== void 0 ? l : 1, c = c !== void 0 ? c : !1, ![0, 1, -1, 2].includes(a))
69137
69137
  return new Error("match_mode_must");
69138
69138
  if (![1, -1, 2, -2].includes(l))
69139
69139
  return new Error("search_mode_must");
69140
69140
  if (Math.abs(l) === 2 && a === 2)
69141
69141
  return new Error("binary_search_and_wildcard");
69142
- let o = rse(e, f, s, n, a, l, c);
69143
- return o = c ? Array.isArray(o) ? o.map((u) => [u.toString()]) : o : [o], o;
69142
+ const o = rse(e, f, s, n, a, l, c);
69143
+ return o instanceof Error ? o : c ? Array.isArray(o) ? o.map((u) => [u.toString()]) : o : [o];
69144
69144
  }
69145
69145
  function ese(e) {
69146
69146
  if (!Array.isArray(e))
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "1.3.3-right-3",
5
+ "version": "1.3.4",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@fileverse-dev/dsheets-templates": "^0.0.29",
37
- "@fileverse-dev/formulajs": "4.4.49",
38
- "@fileverse-dev/fortune-react": "1.3.6-right-1",
37
+ "@fileverse-dev/formulajs": "4.4.50",
38
+ "@fileverse-dev/fortune-react": "1.3.7",
39
39
  "@fileverse/ui": "^5.0.0",
40
40
  "classnames": "^2.5.1",
41
41
  "exceljs": "^4.4.0",