@fileverse-dev/fortune-core 1.1.28 → 1.1.29

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.
@@ -1916,10 +1916,10 @@ 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)) {
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
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;
1921
1921
  }
1922
- if (ct === "n" || ct === "g" && parseFloat(value).toString() !== "NaN") {
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";
1924
1924
  var valueNumber = parseFloat(removeComma);
1925
1925
  count += 1;
@@ -1951,10 +1951,10 @@ 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)) {
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
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;
1956
1956
  }
1957
- if (ct === "n" || ct === "g" && parseFloat(value).toString() !== "NaN") {
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";
1959
1959
  var valueNumber = parseFloat(removeComma);
1960
1960
  count += 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.1.28",
3
+ "version": "1.1.29",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",