@leankylin-sheet/core 5.2.15 → 5.2.17

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.
@@ -8,7 +8,7 @@ export declare function initSheetData(draftCtx: Context, index: number, newData:
8
8
  export declare function hideSheet(ctx: Context, sheetId: string): void;
9
9
  export declare function showSheet(ctx: Context, sheetId: string): void;
10
10
  export declare function copySheet(ctx: Context, sheetId: string, hooks: Hooks): void;
11
- export declare function calculateSheetFromula(ctx: Context, id: string): void;
11
+ export declare function calculateSheetFromula(ctx: Context, id: string, isrefresh: boolean): void;
12
12
  export declare function updateFunctionGroup(ctx: Context): void;
13
13
  export declare function calculateSheetByCells(ctx: Context, cells: {
14
14
  r: number;
package/dist/index.esm.js CHANGED
@@ -36118,7 +36118,7 @@ function execfunction(ctx, txt, r, c, id, isrefresh, notInsertFunc) {
36118
36118
  var _data$r;
36119
36119
  var data = getFlowdata(ctx, id);
36120
36120
  var cell = data === null || data === void 0 ? void 0 : (_data$r = data[r]) === null || _data$r === void 0 ? void 0 : _data$r[c];
36121
- if ((cell === null || cell === void 0 ? void 0 : cell.v) !== result) {
36121
+ if ((cell === null || cell === void 0 ? void 0 : cell.v) != result) {
36122
36122
  execFunctionGroup(ctx, r, c, _.isNil(formulaError) ? result : formulaError, id);
36123
36123
  }
36124
36124
  }
@@ -46578,7 +46578,7 @@ function copySheet(ctx, sheetId, hooks) {
46578
46578
  setSheetOrder(ctx, sheetOrderList);
46579
46579
  (_hooks$onCopySheet = hooks.onCopySheet) === null || _hooks$onCopySheet === void 0 ? void 0 : _hooks$onCopySheet.call(hooks, sheetId, copyId);
46580
46580
  }
46581
- function calculateSheetFromula(ctx, id) {
46581
+ function calculateSheetFromula(ctx, id, isrefresh) {
46582
46582
  console.time("calcTime:".concat(id));
46583
46583
  var index$1 = getSheetIndex(ctx, id);
46584
46584
  var luckysheetfile = ctx.luckysheetfile;
@@ -46589,7 +46589,7 @@ function calculateSheetFromula(ctx, id) {
46589
46589
  if (!(cell === null || cell === void 0 ? void 0 : cell.f)) {
46590
46590
  continue;
46591
46591
  }
46592
- var result = execfunction(ctx, cell === null || cell === void 0 ? void 0 : cell.f, r, c, id, false, true);
46592
+ var result = execfunction(ctx, cell === null || cell === void 0 ? void 0 : cell.f, r, c, id, isrefresh, true);
46593
46593
  var newV = result[1];
46594
46594
  if (newV === cell.v) {
46595
46595
  continue;
@@ -57635,7 +57635,7 @@ function handleContextMenu(ctx, settings, e, workbookContainer, container, area)
57635
57635
  }
57636
57636
  }
57637
57637
  function mouseRender(ctx, globalCache, e, cellInput, scrollX, scrollY, container, fxInput) {
57638
- var _ctx$rangeDialog, _ctx$rangeDialog2;
57638
+ var _ctx$rangeDialog;
57639
57639
  var rect = container.getBoundingClientRect();
57640
57640
  if (ctx.luckysheet_scroll_status && !ctx.luckysheet_cols_change_size && !ctx.luckysheet_rows_change_size) {
57641
57641
  var left = ctx.scrollLeft;
@@ -57663,8 +57663,7 @@ function mouseRender(ctx, globalCache, e, cellInput, scrollX, scrollY, container
57663
57663
  scrollX.scrollLeft = sleft;
57664
57664
  }
57665
57665
  }
57666
- console.log('ctx.rangeDialog?.singleSelect', (_ctx$rangeDialog = ctx.rangeDialog) === null || _ctx$rangeDialog === void 0 ? void 0 : _ctx$rangeDialog.singleSelect);
57667
- if ((_ctx$rangeDialog2 = ctx.rangeDialog) === null || _ctx$rangeDialog2 === void 0 ? void 0 : _ctx$rangeDialog2.singleSelect) {
57666
+ if ((_ctx$rangeDialog = ctx.rangeDialog) === null || _ctx$rangeDialog === void 0 ? void 0 : _ctx$rangeDialog.singleSelect) {
57668
57667
  return;
57669
57668
  }
57670
57669
  if (ctx.luckysheet_select_status) {
package/dist/index.js CHANGED
@@ -36128,7 +36128,7 @@ function execfunction(ctx, txt, r, c, id, isrefresh, notInsertFunc) {
36128
36128
  var _data$r;
36129
36129
  var data = getFlowdata(ctx, id);
36130
36130
  var cell = data === null || data === void 0 ? void 0 : (_data$r = data[r]) === null || _data$r === void 0 ? void 0 : _data$r[c];
36131
- if ((cell === null || cell === void 0 ? void 0 : cell.v) !== result) {
36131
+ if ((cell === null || cell === void 0 ? void 0 : cell.v) != result) {
36132
36132
  execFunctionGroup(ctx, r, c, ___default['default'].isNil(formulaError) ? result : formulaError, id);
36133
36133
  }
36134
36134
  }
@@ -46588,7 +46588,7 @@ function copySheet(ctx, sheetId, hooks) {
46588
46588
  setSheetOrder(ctx, sheetOrderList);
46589
46589
  (_hooks$onCopySheet = hooks.onCopySheet) === null || _hooks$onCopySheet === void 0 ? void 0 : _hooks$onCopySheet.call(hooks, sheetId, copyId);
46590
46590
  }
46591
- function calculateSheetFromula(ctx, id) {
46591
+ function calculateSheetFromula(ctx, id, isrefresh) {
46592
46592
  console.time("calcTime:".concat(id));
46593
46593
  var index$1 = getSheetIndex(ctx, id);
46594
46594
  var luckysheetfile = ctx.luckysheetfile;
@@ -46599,7 +46599,7 @@ function calculateSheetFromula(ctx, id) {
46599
46599
  if (!(cell === null || cell === void 0 ? void 0 : cell.f)) {
46600
46600
  continue;
46601
46601
  }
46602
- var result = execfunction(ctx, cell === null || cell === void 0 ? void 0 : cell.f, r, c, id, false, true);
46602
+ var result = execfunction(ctx, cell === null || cell === void 0 ? void 0 : cell.f, r, c, id, isrefresh, true);
46603
46603
  var newV = result[1];
46604
46604
  if (newV === cell.v) {
46605
46605
  continue;
@@ -57645,7 +57645,7 @@ function handleContextMenu(ctx, settings, e, workbookContainer, container, area)
57645
57645
  }
57646
57646
  }
57647
57647
  function mouseRender(ctx, globalCache, e, cellInput, scrollX, scrollY, container, fxInput) {
57648
- var _ctx$rangeDialog, _ctx$rangeDialog2;
57648
+ var _ctx$rangeDialog;
57649
57649
  var rect = container.getBoundingClientRect();
57650
57650
  if (ctx.luckysheet_scroll_status && !ctx.luckysheet_cols_change_size && !ctx.luckysheet_rows_change_size) {
57651
57651
  var left = ctx.scrollLeft;
@@ -57673,8 +57673,7 @@ function mouseRender(ctx, globalCache, e, cellInput, scrollX, scrollY, container
57673
57673
  scrollX.scrollLeft = sleft;
57674
57674
  }
57675
57675
  }
57676
- console.log('ctx.rangeDialog?.singleSelect', (_ctx$rangeDialog = ctx.rangeDialog) === null || _ctx$rangeDialog === void 0 ? void 0 : _ctx$rangeDialog.singleSelect);
57677
- if ((_ctx$rangeDialog2 = ctx.rangeDialog) === null || _ctx$rangeDialog2 === void 0 ? void 0 : _ctx$rangeDialog2.singleSelect) {
57676
+ if ((_ctx$rangeDialog = ctx.rangeDialog) === null || _ctx$rangeDialog === void 0 ? void 0 : _ctx$rangeDialog.singleSelect) {
57678
57677
  return;
57679
57678
  }
57680
57679
  if (ctx.luckysheet_select_status) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "5.2.15",
3
+ "version": "5.2.17",
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.15",
16
+ "@leankylin-sheet/formula-parser": "5.2.17",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",