@fileverse-dev/fortune-core 1.1.29 → 1.1.30

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.
@@ -1899,7 +1899,7 @@ export function fixColumnStyleOverflowInFreeze(ctx, c1, c2, freeze) {
1899
1899
  return ret;
1900
1900
  }
1901
1901
  export function calcSelectionInfo(ctx, lang) {
1902
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
1902
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
1903
1903
  var selection = ctx.luckysheet_select_save;
1904
1904
  var numberC = 0;
1905
1905
  var count = 0;
@@ -1916,8 +1916,8 @@ export function calcSelectionInfo(ctx, lang) {
1916
1916
  if ((_f = (_e = (_d = data[r][c]) === null || _d === void 0 ? void 0 : _d.ct) === null || _e === void 0 ? void 0 : _e.fa) === null || _f === void 0 ? void 0 : _f.includes("#,##0")) {
1917
1917
  value = (_g = data[r][c]) === null || _g === void 0 ? void 0 : _g.v;
1918
1918
  }
1919
- if (((_j = (_h = data[r][c]) === null || _h === void 0 ? void 0 : _h.ct) === null || _j === void 0 ? void 0 : _j.t) === 'inlineStr' && (value === null || value === undefined || value === '') && ((_l = (_k = data[r][c]) === null || _k === void 0 ? void 0 : _k.ct) === null || _l === void 0 ? void 0 : _l.s)) {
1920
- value = (_p = (_o = (_m = data[r][c]) === null || _m === void 0 ? void 0 : _m.ct) === null || _o === void 0 ? void 0 : _o.s[0]) === null || _p === void 0 ? void 0 : _p.v;
1919
+ if (((_j = (_h = data[r][c]) === null || _h === void 0 ? void 0 : _h.ct) === null || _j === void 0 ? void 0 : _j.t) === "inlineStr" && (value === null || value === undefined || value === "") && ((_l = (_k = data[r][c]) === null || _k === void 0 ? void 0 : _k.ct) === null || _l === void 0 ? void 0 : _l.s) && !((_p = (_o = (_m = data[r][c]) === null || _m === void 0 ? void 0 : _m.ct) === null || _o === void 0 ? void 0 : _o.s[0]) === null || _p === void 0 ? void 0 : _p.v.includes("\r"))) {
1920
+ value = (_s = (_r = (_q = data[r][c]) === null || _q === void 0 ? void 0 : _q.ct) === null || _r === void 0 ? void 0 : _r.s[0]) === null || _s === void 0 ? void 0 : _s.v;
1921
1921
  }
1922
1922
  if (ct === "n" || ct === "g" && parseFloat(value).toString() !== "NaN" || ct === "inlineStr" && parseFloat(value).toString() !== "NaN") {
1923
1923
  var removeComma = (value === null || value === void 0 ? void 0 : value.replace(/,/g, "")) || "0";
@@ -1934,7 +1934,7 @@ function fixColumnStyleOverflowInFreeze(ctx, c1, c2, freeze) {
1934
1934
  return ret;
1935
1935
  }
1936
1936
  function calcSelectionInfo(ctx, lang) {
1937
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
1937
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
1938
1938
  var selection = ctx.luckysheet_select_save;
1939
1939
  var numberC = 0;
1940
1940
  var count = 0;
@@ -1951,8 +1951,8 @@ function calcSelectionInfo(ctx, lang) {
1951
1951
  if ((_f = (_e = (_d = data[r][c]) === null || _d === void 0 ? void 0 : _d.ct) === null || _e === void 0 ? void 0 : _e.fa) === null || _f === void 0 ? void 0 : _f.includes("#,##0")) {
1952
1952
  value = (_g = data[r][c]) === null || _g === void 0 ? void 0 : _g.v;
1953
1953
  }
1954
- if (((_j = (_h = data[r][c]) === null || _h === void 0 ? void 0 : _h.ct) === null || _j === void 0 ? void 0 : _j.t) === 'inlineStr' && (value === null || value === undefined || value === '') && ((_l = (_k = data[r][c]) === null || _k === void 0 ? void 0 : _k.ct) === null || _l === void 0 ? void 0 : _l.s)) {
1955
- value = (_p = (_o = (_m = data[r][c]) === null || _m === void 0 ? void 0 : _m.ct) === null || _o === void 0 ? void 0 : _o.s[0]) === null || _p === void 0 ? void 0 : _p.v;
1954
+ if (((_j = (_h = data[r][c]) === null || _h === void 0 ? void 0 : _h.ct) === null || _j === void 0 ? void 0 : _j.t) === "inlineStr" && (value === null || value === undefined || value === "") && ((_l = (_k = data[r][c]) === null || _k === void 0 ? void 0 : _k.ct) === null || _l === void 0 ? void 0 : _l.s) && !((_p = (_o = (_m = data[r][c]) === null || _m === void 0 ? void 0 : _m.ct) === null || _o === void 0 ? void 0 : _o.s[0]) === null || _p === void 0 ? void 0 : _p.v.includes("\r"))) {
1955
+ value = (_s = (_r = (_q = data[r][c]) === null || _q === void 0 ? void 0 : _q.ct) === null || _r === void 0 ? void 0 : _r.s[0]) === null || _s === void 0 ? void 0 : _s.v;
1956
1956
  }
1957
1957
  if (ct === "n" || ct === "g" && parseFloat(value).toString() !== "NaN" || ct === "inlineStr" && parseFloat(value).toString() !== "NaN") {
1958
1958
  var removeComma = (value === null || value === void 0 ? void 0 : value.replace(/,/g, "")) || "0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.1.29",
3
+ "version": "1.1.30",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",