@fileverse-dev/fortune-core 1.1.31 → 1.1.32
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, _o, _p, _q, _r, _s;
|
|
1902
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
1903
1903
|
var selection = ctx.luckysheet_select_save;
|
|
1904
1904
|
var numberC = 0;
|
|
1905
1905
|
var count = 0;
|
|
@@ -1920,7 +1920,7 @@ export function calcSelectionInfo(ctx, lang) {
|
|
|
1920
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
|
-
var removeComma = (value === null ||
|
|
1923
|
+
var removeComma = ((_t = String(value)) === null || _t === void 0 ? void 0 : _t.replace(/,/g, "")) || "0";
|
|
1924
1924
|
var valueNumber = parseFloat(removeComma);
|
|
1925
1925
|
count += 1;
|
|
1926
1926
|
sum += valueNumber;
|
package/lib/modules/selection.js
CHANGED
|
@@ -43,7 +43,7 @@ var _format = require("./format");
|
|
|
43
43
|
var _ssf = _interopRequireDefault(require("./ssf"));
|
|
44
44
|
var _ConditionFormat = require("./ConditionFormat");
|
|
45
45
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
46
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var
|
|
46
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
47
47
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
48
48
|
var __assign = void 0 && (void 0).__assign || function () {
|
|
49
49
|
__assign = Object.assign || function (t) {
|
|
@@ -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, _q, _r, _s;
|
|
1937
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
1938
1938
|
var selection = ctx.luckysheet_select_save;
|
|
1939
1939
|
var numberC = 0;
|
|
1940
1940
|
var count = 0;
|
|
@@ -1955,7 +1955,7 @@ function calcSelectionInfo(ctx, lang) {
|
|
|
1955
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
|
-
var removeComma = (value === null ||
|
|
1958
|
+
var removeComma = ((_t = String(value)) === null || _t === void 0 ? void 0 : _t.replace(/,/g, "")) || "0";
|
|
1959
1959
|
var valueNumber = parseFloat(removeComma);
|
|
1960
1960
|
count += 1;
|
|
1961
1961
|
sum += valueNumber;
|