@leankylin-sheet/core 5.2.24 → 5.2.25
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/dist/index.esm.js +4 -1
- package/dist/index.js +4 -1
- package/dist/modules/formula.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -35545,7 +35545,10 @@ var FormulaCache = /*#__PURE__*/function () {
|
|
|
35545
35545
|
key: "tryGetCellAsNumber",
|
|
35546
35546
|
value: function tryGetCellAsNumber(cell) {
|
|
35547
35547
|
var _cell$ct;
|
|
35548
|
-
if ((cell === null || cell === void 0 ? void 0 :
|
|
35548
|
+
if (_.isNil(cell === null || cell === void 0 ? void 0 : cell.v)) {
|
|
35549
|
+
return null;
|
|
35550
|
+
}
|
|
35551
|
+
if ((cell === null || cell === void 0 ? void 0 : (_cell$ct = cell.ct) === null || _cell$ct === void 0 ? void 0 : _cell$ct.t) === "n" && (cell === null || cell === void 0 ? void 0 : cell.v)) {
|
|
35549
35552
|
var n = Number(cell === null || cell === void 0 ? void 0 : cell.v);
|
|
35550
35553
|
return Number.isNaN(n) ? cell.v : n;
|
|
35551
35554
|
}
|
package/dist/index.js
CHANGED
|
@@ -35555,7 +35555,10 @@ var FormulaCache = /*#__PURE__*/function () {
|
|
|
35555
35555
|
key: "tryGetCellAsNumber",
|
|
35556
35556
|
value: function tryGetCellAsNumber(cell) {
|
|
35557
35557
|
var _cell$ct;
|
|
35558
|
-
if ((cell === null || cell === void 0 ? void 0 :
|
|
35558
|
+
if (___default['default'].isNil(cell === null || cell === void 0 ? void 0 : cell.v)) {
|
|
35559
|
+
return null;
|
|
35560
|
+
}
|
|
35561
|
+
if ((cell === null || cell === void 0 ? void 0 : (_cell$ct = cell.ct) === null || _cell$ct === void 0 ? void 0 : _cell$ct.t) === "n" && (cell === null || cell === void 0 ? void 0 : cell.v)) {
|
|
35559
35562
|
var n = Number(cell === null || cell === void 0 ? void 0 : cell.v);
|
|
35560
35563
|
return Number.isNaN(n) ? cell.v : n;
|
|
35561
35564
|
}
|
|
@@ -25,7 +25,7 @@ export declare class FormulaCache {
|
|
|
25
25
|
execFunctionExist?: any[];
|
|
26
26
|
execFunctionGlobalData: any;
|
|
27
27
|
constructor();
|
|
28
|
-
tryGetCellAsNumber(cell: Cell): string | number | boolean |
|
|
28
|
+
tryGetCellAsNumber(cell: Cell): string | number | boolean | null;
|
|
29
29
|
}
|
|
30
30
|
export declare function iscelldata(txt: string): boolean;
|
|
31
31
|
export declare function getcellrange(ctx: Context, txt: string, formulaId?: string): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.25",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"build": "father-build"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@leankylin-sheet/formula-parser": "5.2.
|
|
16
|
+
"@leankylin-sheet/formula-parser": "5.2.25",
|
|
17
17
|
"dayjs": "^1.11.0",
|
|
18
18
|
"immer": "^9.0.12",
|
|
19
19
|
"lodash": "^4.17.21",
|