@fileverse-dev/fortune-core 1.1.27 → 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.
package/es/modules/selection.js
CHANGED
|
@@ -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;
|
|
1902
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1903
1903
|
var selection = ctx.luckysheet_select_save;
|
|
1904
1904
|
var numberC = 0;
|
|
1905
1905
|
var count = 0;
|
|
@@ -1914,13 +1914,12 @@ export function calcSelectionInfo(ctx, lang) {
|
|
|
1914
1914
|
var ct = (_b = (_a = data[r][c]) === null || _a === void 0 ? void 0 : _a.ct) === null || _b === void 0 ? void 0 : _b.t;
|
|
1915
1915
|
var value = (_c = data[r][c]) === null || _c === void 0 ? void 0 : _c.m;
|
|
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
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
}
|
|
1917
|
+
value = (_g = data[r][c]) === null || _g === void 0 ? void 0 : _g.v;
|
|
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;
|
|
1922
1921
|
}
|
|
1923
|
-
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") {
|
|
1924
1923
|
var removeComma = (value === null || value === void 0 ? void 0 : value.replace(/,/g, "")) || "0";
|
|
1925
1924
|
var valueNumber = parseFloat(removeComma);
|
|
1926
1925
|
count += 1;
|
package/lib/modules/selection.js
CHANGED
|
@@ -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;
|
|
1937
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1938
1938
|
var selection = ctx.luckysheet_select_save;
|
|
1939
1939
|
var numberC = 0;
|
|
1940
1940
|
var count = 0;
|
|
@@ -1949,13 +1949,12 @@ function calcSelectionInfo(ctx, lang) {
|
|
|
1949
1949
|
var ct = (_b = (_a = data[r][c]) === null || _a === void 0 ? void 0 : _a.ct) === null || _b === void 0 ? void 0 : _b.t;
|
|
1950
1950
|
var value = (_c = data[r][c]) === null || _c === void 0 ? void 0 : _c.m;
|
|
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
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
}
|
|
1952
|
+
value = (_g = data[r][c]) === null || _g === void 0 ? void 0 : _g.v;
|
|
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;
|
|
1957
1956
|
}
|
|
1958
|
-
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") {
|
|
1959
1958
|
var removeComma = (value === null || value === void 0 ? void 0 : value.replace(/,/g, "")) || "0";
|
|
1960
1959
|
var valueNumber = parseFloat(removeComma);
|
|
1961
1960
|
count += 1;
|