@leankylin-sheet/core 4.0.1 → 4.0.3
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 +5 -8
- package/dist/index.js +5 -8
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -41398,7 +41398,6 @@ function moveHighlightCell(ctx, postion, index, type) {
|
|
|
41398
41398
|
y: moveY
|
|
41399
41399
|
};
|
|
41400
41400
|
normalizeSelection(ctx, ctx.luckysheet_select_save);
|
|
41401
|
-
scrollToHighlightCell(ctx, row_index, col_index);
|
|
41402
41401
|
} else if (type === "rangeOfFormula") {
|
|
41403
41402
|
var _last = ctx.formulaCache.func_selectedrange;
|
|
41404
41403
|
if (!_last) return;
|
|
@@ -46412,7 +46411,9 @@ function calculateSheetFromula(ctx, id) {
|
|
|
46412
46411
|
continue;
|
|
46413
46412
|
}
|
|
46414
46413
|
var result = execfunction(ctx, (_ctx$luckysheetfile$i2 = ctx.luckysheetfile[index$1].data[r][c]) === null || _ctx$luckysheetfile$i2 === void 0 ? void 0 : _ctx$luckysheetfile$i2.f, r, c, id);
|
|
46415
|
-
setCellValue$1(ctx, r, c, result[1], null
|
|
46414
|
+
setCellValue$1(ctx, r, c, result[1], null, {
|
|
46415
|
+
id: id
|
|
46416
|
+
});
|
|
46416
46417
|
insertUpdateFunctionGroup(ctx, r, c, id);
|
|
46417
46418
|
}
|
|
46418
46419
|
}
|
|
@@ -51972,7 +51973,7 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
51972
51973
|
continue;
|
|
51973
51974
|
}
|
|
51974
51975
|
if (((_this$sheetCtx$config = this.sheetCtx.config) === null || _this$sheetCtx$config === void 0 ? void 0 : (_this$sheetCtx$config2 = _this$sheetCtx$config.rowhidden) === null || _this$sheetCtx$config2 === void 0 ? void 0 : _this$sheetCtx$config2[r]) == null) {
|
|
51975
|
-
renderCtx.fillStyle = "#
|
|
51976
|
+
renderCtx.fillStyle = "#F8F9FA";
|
|
51976
51977
|
renderCtx.fillRect(0, start_r + offsetTop + firstOffset, this.sheetCtx.rowHeaderWidth - 1, end_r - start_r + 1 + lastOffset - firstOffset);
|
|
51977
51978
|
renderCtx.fillStyle = "#000000";
|
|
51978
51979
|
renderCtx.save();
|
|
@@ -52065,7 +52066,7 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
52065
52066
|
continue;
|
|
52066
52067
|
}
|
|
52067
52068
|
if (((_this$sheetCtx$config5 = this.sheetCtx.config) === null || _this$sheetCtx$config5 === void 0 ? void 0 : (_this$sheetCtx$config6 = _this$sheetCtx$config5.colhidden) === null || _this$sheetCtx$config6 === void 0 ? void 0 : _this$sheetCtx$config6[c]) == null) {
|
|
52068
|
-
renderCtx.fillStyle = "#
|
|
52069
|
+
renderCtx.fillStyle = "#F8F9FA";
|
|
52069
52070
|
renderCtx.fillRect(start_c + offsetLeft - 1, 0, end_c - start_c, this.sheetCtx.columnHeaderHeight - 1);
|
|
52070
52071
|
renderCtx.fillStyle = "#000000";
|
|
52071
52072
|
renderCtx.save();
|
|
@@ -53818,10 +53819,6 @@ function createFilter(ctx) {
|
|
|
53818
53819
|
if (_.size(ctx.luckysheet_select_save) > 1) {
|
|
53819
53820
|
return;
|
|
53820
53821
|
}
|
|
53821
|
-
if (_.size(ctx.luckysheet_filter_save) > 0) {
|
|
53822
|
-
clearFilter(ctx);
|
|
53823
|
-
return;
|
|
53824
|
-
}
|
|
53825
53822
|
var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
|
|
53826
53823
|
if (sheetIndex == null || ctx.luckysheetfile[sheetIndex].isPivotTable) {
|
|
53827
53824
|
return;
|
package/dist/index.js
CHANGED
|
@@ -41408,7 +41408,6 @@ function moveHighlightCell(ctx, postion, index, type) {
|
|
|
41408
41408
|
y: moveY
|
|
41409
41409
|
};
|
|
41410
41410
|
normalizeSelection(ctx, ctx.luckysheet_select_save);
|
|
41411
|
-
scrollToHighlightCell(ctx, row_index, col_index);
|
|
41412
41411
|
} else if (type === "rangeOfFormula") {
|
|
41413
41412
|
var _last = ctx.formulaCache.func_selectedrange;
|
|
41414
41413
|
if (!_last) return;
|
|
@@ -46422,7 +46421,9 @@ function calculateSheetFromula(ctx, id) {
|
|
|
46422
46421
|
continue;
|
|
46423
46422
|
}
|
|
46424
46423
|
var result = execfunction(ctx, (_ctx$luckysheetfile$i2 = ctx.luckysheetfile[index$1].data[r][c]) === null || _ctx$luckysheetfile$i2 === void 0 ? void 0 : _ctx$luckysheetfile$i2.f, r, c, id);
|
|
46425
|
-
setCellValue$1(ctx, r, c, result[1], null
|
|
46424
|
+
setCellValue$1(ctx, r, c, result[1], null, {
|
|
46425
|
+
id: id
|
|
46426
|
+
});
|
|
46426
46427
|
insertUpdateFunctionGroup(ctx, r, c, id);
|
|
46427
46428
|
}
|
|
46428
46429
|
}
|
|
@@ -51982,7 +51983,7 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
51982
51983
|
continue;
|
|
51983
51984
|
}
|
|
51984
51985
|
if (((_this$sheetCtx$config = this.sheetCtx.config) === null || _this$sheetCtx$config === void 0 ? void 0 : (_this$sheetCtx$config2 = _this$sheetCtx$config.rowhidden) === null || _this$sheetCtx$config2 === void 0 ? void 0 : _this$sheetCtx$config2[r]) == null) {
|
|
51985
|
-
renderCtx.fillStyle = "#
|
|
51986
|
+
renderCtx.fillStyle = "#F8F9FA";
|
|
51986
51987
|
renderCtx.fillRect(0, start_r + offsetTop + firstOffset, this.sheetCtx.rowHeaderWidth - 1, end_r - start_r + 1 + lastOffset - firstOffset);
|
|
51987
51988
|
renderCtx.fillStyle = "#000000";
|
|
51988
51989
|
renderCtx.save();
|
|
@@ -52075,7 +52076,7 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
52075
52076
|
continue;
|
|
52076
52077
|
}
|
|
52077
52078
|
if (((_this$sheetCtx$config5 = this.sheetCtx.config) === null || _this$sheetCtx$config5 === void 0 ? void 0 : (_this$sheetCtx$config6 = _this$sheetCtx$config5.colhidden) === null || _this$sheetCtx$config6 === void 0 ? void 0 : _this$sheetCtx$config6[c]) == null) {
|
|
52078
|
-
renderCtx.fillStyle = "#
|
|
52079
|
+
renderCtx.fillStyle = "#F8F9FA";
|
|
52079
52080
|
renderCtx.fillRect(start_c + offsetLeft - 1, 0, end_c - start_c, this.sheetCtx.columnHeaderHeight - 1);
|
|
52080
52081
|
renderCtx.fillStyle = "#000000";
|
|
52081
52082
|
renderCtx.save();
|
|
@@ -53828,10 +53829,6 @@ function createFilter(ctx) {
|
|
|
53828
53829
|
if (___default['default'].size(ctx.luckysheet_select_save) > 1) {
|
|
53829
53830
|
return;
|
|
53830
53831
|
}
|
|
53831
|
-
if (___default['default'].size(ctx.luckysheet_filter_save) > 0) {
|
|
53832
|
-
clearFilter(ctx);
|
|
53833
|
-
return;
|
|
53834
|
-
}
|
|
53835
53832
|
var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
|
|
53836
53833
|
if (sheetIndex == null || ctx.luckysheetfile[sheetIndex].isPivotTable) {
|
|
53837
53834
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
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": "4.0.
|
|
16
|
+
"@leankylin-sheet/formula-parser": "4.0.3",
|
|
17
17
|
"dayjs": "^1.11.0",
|
|
18
18
|
"immer": "^9.0.12",
|
|
19
19
|
"lodash": "^4.17.21",
|