@fileverse-dev/fortune-core 1.1.75 → 1.1.78
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.
|
@@ -42,7 +42,7 @@ export declare function fixColumnStyleOverflowInFreeze(ctx: Context, c1: number,
|
|
|
42
42
|
width?: number;
|
|
43
43
|
display?: string;
|
|
44
44
|
};
|
|
45
|
-
export declare function calcSelectionInfo(ctx: Context
|
|
45
|
+
export declare function calcSelectionInfo(ctx: Context): {
|
|
46
46
|
numberC: number;
|
|
47
47
|
count: number;
|
|
48
48
|
sum: number;
|
package/es/modules/selection.js
CHANGED
|
@@ -18,7 +18,6 @@ import { getBorderInfoCompute } from "./border";
|
|
|
18
18
|
import { escapeHTMLTag, getSheetIndex, isAllowEdit, replaceHtml } from "../utils";
|
|
19
19
|
import { hasPartMC } from "./validation";
|
|
20
20
|
import { update } from "./format";
|
|
21
|
-
import SSF from "./ssf";
|
|
22
21
|
import { CFSplitRange } from "./ConditionFormat";
|
|
23
22
|
import { clearCellError } from "./error-state-helpers";
|
|
24
23
|
export var selectionCache = {
|
|
@@ -1900,7 +1899,7 @@ export function fixColumnStyleOverflowInFreeze(ctx, c1, c2, freeze) {
|
|
|
1900
1899
|
}
|
|
1901
1900
|
return ret;
|
|
1902
1901
|
}
|
|
1903
|
-
export function calcSelectionInfo(ctx
|
|
1902
|
+
export function calcSelectionInfo(ctx) {
|
|
1904
1903
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
1905
1904
|
var selection = ctx.luckysheet_select_save;
|
|
1906
1905
|
var numberC = 0;
|
|
@@ -1935,11 +1934,7 @@ export function calcSelectionInfo(ctx, lang) {
|
|
|
1935
1934
|
}
|
|
1936
1935
|
}
|
|
1937
1936
|
}
|
|
1938
|
-
var
|
|
1939
|
-
var average = SSF.format(formatString, sum / numberC);
|
|
1940
|
-
sum = SSF.format(formatString, sum);
|
|
1941
|
-
max = SSF.format(formatString, max);
|
|
1942
|
-
min = SSF.format(formatString, min);
|
|
1937
|
+
var average = String(sum / numberC);
|
|
1943
1938
|
return {
|
|
1944
1939
|
numberC: numberC,
|
|
1945
1940
|
count: count,
|
|
@@ -42,7 +42,7 @@ export declare function fixColumnStyleOverflowInFreeze(ctx: Context, c1: number,
|
|
|
42
42
|
width?: number;
|
|
43
43
|
display?: string;
|
|
44
44
|
};
|
|
45
|
-
export declare function calcSelectionInfo(ctx: Context
|
|
45
|
+
export declare function calcSelectionInfo(ctx: Context): {
|
|
46
46
|
numberC: number;
|
|
47
47
|
count: number;
|
|
48
48
|
sum: number;
|
package/lib/modules/selection.js
CHANGED
|
@@ -40,7 +40,6 @@ var _border = require("./border");
|
|
|
40
40
|
var _utils = require("../utils");
|
|
41
41
|
var _validation = require("./validation");
|
|
42
42
|
var _format = require("./format");
|
|
43
|
-
var _ssf = _interopRequireDefault(require("./ssf"));
|
|
44
43
|
var _ConditionFormat = require("./ConditionFormat");
|
|
45
44
|
var _errorStateHelpers = require("./error-state-helpers");
|
|
46
45
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -1935,7 +1934,7 @@ function fixColumnStyleOverflowInFreeze(ctx, c1, c2, freeze) {
|
|
|
1935
1934
|
}
|
|
1936
1935
|
return ret;
|
|
1937
1936
|
}
|
|
1938
|
-
function calcSelectionInfo(ctx
|
|
1937
|
+
function calcSelectionInfo(ctx) {
|
|
1939
1938
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
1940
1939
|
var selection = ctx.luckysheet_select_save;
|
|
1941
1940
|
var numberC = 0;
|
|
@@ -1970,11 +1969,7 @@ function calcSelectionInfo(ctx, lang) {
|
|
|
1970
1969
|
}
|
|
1971
1970
|
}
|
|
1972
1971
|
}
|
|
1973
|
-
var
|
|
1974
|
-
var average = _ssf.default.format(formatString, sum / numberC);
|
|
1975
|
-
sum = _ssf.default.format(formatString, sum);
|
|
1976
|
-
max = _ssf.default.format(formatString, max);
|
|
1977
|
-
min = _ssf.default.format(formatString, min);
|
|
1972
|
+
var average = String(sum / numberC);
|
|
1978
1973
|
return {
|
|
1979
1974
|
numberC: numberC,
|
|
1980
1975
|
count: count,
|