@leankylin-sheet/core 3.1.23 → 3.1.24

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 CHANGED
@@ -58845,10 +58845,14 @@ function removeEditingComment(ctx, globalCache) {
58845
58845
  return v.rc !== "".concat(r, "_").concat(c);
58846
58846
  });
58847
58847
  }
58848
+ if (ctx.hooks.afterUpdateComment) {
58849
+ var _ctx$hooks$afterUpdat, _ctx$hooks2;
58850
+ (_ctx$hooks$afterUpdat = (_ctx$hooks2 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat === void 0 ? void 0 : _ctx$hooks$afterUpdat.call(_ctx$hooks2, r, c, _objectSpread2({}, cell.ps), true);
58851
+ }
58848
58852
  }
58849
58853
  function newComment(ctx, globalCache, r, c) {
58850
- var _ctx$hooks$beforeInse, _ctx$hooks2;
58851
- if (((_ctx$hooks$beforeInse = (_ctx$hooks2 = ctx.hooks).beforeInsertComment) === null || _ctx$hooks$beforeInse === void 0 ? void 0 : _ctx$hooks$beforeInse.call(_ctx$hooks2, r, c)) === false) {
58854
+ var _ctx$hooks$beforeInse, _ctx$hooks3;
58855
+ if (((_ctx$hooks$beforeInse = (_ctx$hooks3 = ctx.hooks).beforeInsertComment) === null || _ctx$hooks$beforeInse === void 0 ? void 0 : _ctx$hooks$beforeInse.call(_ctx$hooks3, r, c)) === false) {
58852
58856
  return;
58853
58857
  }
58854
58858
  removeEditingComment(ctx, globalCache);
@@ -58878,13 +58882,13 @@ function newComment(ctx, globalCache, r, c) {
58878
58882
  });
58879
58883
  if (ctx.hooks.afterInsertComment) {
58880
58884
  setTimeout(function () {
58881
- var _ctx$hooks$afterInser, _ctx$hooks3;
58882
- (_ctx$hooks$afterInser = (_ctx$hooks3 = ctx.hooks).afterInsertComment) === null || _ctx$hooks$afterInser === void 0 ? void 0 : _ctx$hooks$afterInser.call(_ctx$hooks3, r, c);
58885
+ var _ctx$hooks$afterInser, _ctx$hooks4;
58886
+ (_ctx$hooks$afterInser = (_ctx$hooks4 = ctx.hooks).afterInsertComment) === null || _ctx$hooks$afterInser === void 0 ? void 0 : _ctx$hooks$afterInser.call(_ctx$hooks4, r, c);
58883
58887
  });
58884
58888
  }
58885
58889
  if (ctx.hooks.afterUpdateComment) {
58886
- var _ctx$hooks$afterUpdat, _ctx$hooks4;
58887
- (_ctx$hooks$afterUpdat = (_ctx$hooks4 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat === void 0 ? void 0 : _ctx$hooks$afterUpdat.call(_ctx$hooks4, r, c, _objectSpread2({}, cell.ps), true);
58890
+ var _ctx$hooks$afterUpdat2, _ctx$hooks5;
58891
+ (_ctx$hooks$afterUpdat2 = (_ctx$hooks5 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat2 === void 0 ? void 0 : _ctx$hooks$afterUpdat2.call(_ctx$hooks5, r, c, _objectSpread2({}, cell.ps), true);
58888
58892
  }
58889
58893
  }
58890
58894
  function editComment(ctx, globalCache, r, c) {
@@ -58906,8 +58910,8 @@ function editComment(ctx, globalCache, r, c) {
58906
58910
  }
58907
58911
  }
58908
58912
  function deleteComment(ctx, globalCache, r, c) {
58909
- var _ctx$hooks$beforeDele, _ctx$hooks5;
58910
- if (((_ctx$hooks$beforeDele = (_ctx$hooks5 = ctx.hooks).beforeDeleteComment) === null || _ctx$hooks$beforeDele === void 0 ? void 0 : _ctx$hooks$beforeDele.call(_ctx$hooks5, r, c)) === false) {
58913
+ var _ctx$hooks$beforeDele, _ctx$hooks6;
58914
+ if (((_ctx$hooks$beforeDele = (_ctx$hooks6 = ctx.hooks).beforeDeleteComment) === null || _ctx$hooks$beforeDele === void 0 ? void 0 : _ctx$hooks$beforeDele.call(_ctx$hooks6, r, c)) === false) {
58911
58915
  return;
58912
58916
  }
58913
58917
  var flowdata = getFlowdata(ctx);
@@ -58917,13 +58921,13 @@ function deleteComment(ctx, globalCache, r, c) {
58917
58921
  cell.ps = undefined;
58918
58922
  if (ctx.hooks.afterDeleteComment) {
58919
58923
  setTimeout(function () {
58920
- var _ctx$hooks$afterDelet, _ctx$hooks6;
58921
- (_ctx$hooks$afterDelet = (_ctx$hooks6 = ctx.hooks).afterDeleteComment) === null || _ctx$hooks$afterDelet === void 0 ? void 0 : _ctx$hooks$afterDelet.call(_ctx$hooks6, r, c);
58924
+ var _ctx$hooks$afterDelet, _ctx$hooks7;
58925
+ (_ctx$hooks$afterDelet = (_ctx$hooks7 = ctx.hooks).afterDeleteComment) === null || _ctx$hooks$afterDelet === void 0 ? void 0 : _ctx$hooks$afterDelet.call(_ctx$hooks7, r, c);
58922
58926
  });
58923
58927
  }
58924
58928
  if (ctx.hooks.afterUpdateComment) {
58925
- var _ctx$hooks$afterUpdat2, _ctx$hooks7;
58926
- (_ctx$hooks$afterUpdat2 = (_ctx$hooks7 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat2 === void 0 ? void 0 : _ctx$hooks$afterUpdat2.call(_ctx$hooks7, r, c, null, true);
58929
+ var _ctx$hooks$afterUpdat3, _ctx$hooks8;
58930
+ (_ctx$hooks$afterUpdat3 = (_ctx$hooks8 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat3 === void 0 ? void 0 : _ctx$hooks$afterUpdat3.call(_ctx$hooks8, r, c, null, true);
58927
58931
  }
58928
58932
  }
58929
58933
  function showComments(ctx, commentShowCells) {
@@ -58953,8 +58957,8 @@ function showHideComment(ctx, globalCache, r, c) {
58953
58957
  comment.isShow = true;
58954
58958
  }
58955
58959
  if (ctx.hooks.afterUpdateComment) {
58956
- var _ctx$hooks$afterUpdat3, _ctx$hooks8;
58957
- (_ctx$hooks$afterUpdat3 = (_ctx$hooks8 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat3 === void 0 ? void 0 : _ctx$hooks$afterUpdat3.call(_ctx$hooks8, r, c, _objectSpread2({}, comment), true);
58960
+ var _ctx$hooks$afterUpdat4, _ctx$hooks9;
58961
+ (_ctx$hooks$afterUpdat4 = (_ctx$hooks9 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat4 === void 0 ? void 0 : _ctx$hooks$afterUpdat4.call(_ctx$hooks9, r, c, _objectSpread2({}, comment), true);
58958
58962
  }
58959
58963
  }
58960
58964
  function showHideAllComments(ctx) {
@@ -59178,8 +59182,8 @@ function onCommentBoxResizeEnd(ctx, globalCache) {
59178
59182
  cell.ps.height = height / ctx.zoomRatio;
59179
59183
  setEditingComment(ctx, flowdata, r, c);
59180
59184
  if (ctx.hooks.afterUpdateComment) {
59181
- var _ctx$hooks$afterUpdat4, _ctx$hooks9;
59182
- (_ctx$hooks$afterUpdat4 = (_ctx$hooks9 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat4 === void 0 ? void 0 : _ctx$hooks$afterUpdat4.call(_ctx$hooks9, r, c, _objectSpread2({}, cell.ps), true);
59185
+ var _ctx$hooks$afterUpdat5, _ctx$hooks10;
59186
+ (_ctx$hooks$afterUpdat5 = (_ctx$hooks10 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat5 === void 0 ? void 0 : _ctx$hooks$afterUpdat5.call(_ctx$hooks10, r, c, _objectSpread2({}, cell.ps), true);
59183
59187
  }
59184
59188
  }
59185
59189
  }
@@ -59249,8 +59253,8 @@ function onCommentBoxMoveEnd(ctx, globalCache) {
59249
59253
  cell.ps.top = top / ctx.zoomRatio;
59250
59254
  setEditingComment(ctx, flowdata, r, c);
59251
59255
  if (ctx.hooks.afterUpdateComment) {
59252
- var _ctx$hooks$afterUpdat5, _ctx$hooks10;
59253
- (_ctx$hooks$afterUpdat5 = (_ctx$hooks10 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat5 === void 0 ? void 0 : _ctx$hooks$afterUpdat5.call(_ctx$hooks10, r, c, _objectSpread2({}, cell.ps), true);
59256
+ var _ctx$hooks$afterUpdat6, _ctx$hooks11;
59257
+ (_ctx$hooks$afterUpdat6 = (_ctx$hooks11 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat6 === void 0 ? void 0 : _ctx$hooks$afterUpdat6.call(_ctx$hooks11, r, c, _objectSpread2({}, cell.ps), true);
59254
59258
  }
59255
59259
  }
59256
59260
  }
package/dist/index.js CHANGED
@@ -58855,10 +58855,14 @@ function removeEditingComment(ctx, globalCache) {
58855
58855
  return v.rc !== "".concat(r, "_").concat(c);
58856
58856
  });
58857
58857
  }
58858
+ if (ctx.hooks.afterUpdateComment) {
58859
+ var _ctx$hooks$afterUpdat, _ctx$hooks2;
58860
+ (_ctx$hooks$afterUpdat = (_ctx$hooks2 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat === void 0 ? void 0 : _ctx$hooks$afterUpdat.call(_ctx$hooks2, r, c, _objectSpread2({}, cell.ps), true);
58861
+ }
58858
58862
  }
58859
58863
  function newComment(ctx, globalCache, r, c) {
58860
- var _ctx$hooks$beforeInse, _ctx$hooks2;
58861
- if (((_ctx$hooks$beforeInse = (_ctx$hooks2 = ctx.hooks).beforeInsertComment) === null || _ctx$hooks$beforeInse === void 0 ? void 0 : _ctx$hooks$beforeInse.call(_ctx$hooks2, r, c)) === false) {
58864
+ var _ctx$hooks$beforeInse, _ctx$hooks3;
58865
+ if (((_ctx$hooks$beforeInse = (_ctx$hooks3 = ctx.hooks).beforeInsertComment) === null || _ctx$hooks$beforeInse === void 0 ? void 0 : _ctx$hooks$beforeInse.call(_ctx$hooks3, r, c)) === false) {
58862
58866
  return;
58863
58867
  }
58864
58868
  removeEditingComment(ctx, globalCache);
@@ -58888,13 +58892,13 @@ function newComment(ctx, globalCache, r, c) {
58888
58892
  });
58889
58893
  if (ctx.hooks.afterInsertComment) {
58890
58894
  setTimeout(function () {
58891
- var _ctx$hooks$afterInser, _ctx$hooks3;
58892
- (_ctx$hooks$afterInser = (_ctx$hooks3 = ctx.hooks).afterInsertComment) === null || _ctx$hooks$afterInser === void 0 ? void 0 : _ctx$hooks$afterInser.call(_ctx$hooks3, r, c);
58895
+ var _ctx$hooks$afterInser, _ctx$hooks4;
58896
+ (_ctx$hooks$afterInser = (_ctx$hooks4 = ctx.hooks).afterInsertComment) === null || _ctx$hooks$afterInser === void 0 ? void 0 : _ctx$hooks$afterInser.call(_ctx$hooks4, r, c);
58893
58897
  });
58894
58898
  }
58895
58899
  if (ctx.hooks.afterUpdateComment) {
58896
- var _ctx$hooks$afterUpdat, _ctx$hooks4;
58897
- (_ctx$hooks$afterUpdat = (_ctx$hooks4 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat === void 0 ? void 0 : _ctx$hooks$afterUpdat.call(_ctx$hooks4, r, c, _objectSpread2({}, cell.ps), true);
58900
+ var _ctx$hooks$afterUpdat2, _ctx$hooks5;
58901
+ (_ctx$hooks$afterUpdat2 = (_ctx$hooks5 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat2 === void 0 ? void 0 : _ctx$hooks$afterUpdat2.call(_ctx$hooks5, r, c, _objectSpread2({}, cell.ps), true);
58898
58902
  }
58899
58903
  }
58900
58904
  function editComment(ctx, globalCache, r, c) {
@@ -58916,8 +58920,8 @@ function editComment(ctx, globalCache, r, c) {
58916
58920
  }
58917
58921
  }
58918
58922
  function deleteComment(ctx, globalCache, r, c) {
58919
- var _ctx$hooks$beforeDele, _ctx$hooks5;
58920
- if (((_ctx$hooks$beforeDele = (_ctx$hooks5 = ctx.hooks).beforeDeleteComment) === null || _ctx$hooks$beforeDele === void 0 ? void 0 : _ctx$hooks$beforeDele.call(_ctx$hooks5, r, c)) === false) {
58923
+ var _ctx$hooks$beforeDele, _ctx$hooks6;
58924
+ if (((_ctx$hooks$beforeDele = (_ctx$hooks6 = ctx.hooks).beforeDeleteComment) === null || _ctx$hooks$beforeDele === void 0 ? void 0 : _ctx$hooks$beforeDele.call(_ctx$hooks6, r, c)) === false) {
58921
58925
  return;
58922
58926
  }
58923
58927
  var flowdata = getFlowdata(ctx);
@@ -58927,13 +58931,13 @@ function deleteComment(ctx, globalCache, r, c) {
58927
58931
  cell.ps = undefined;
58928
58932
  if (ctx.hooks.afterDeleteComment) {
58929
58933
  setTimeout(function () {
58930
- var _ctx$hooks$afterDelet, _ctx$hooks6;
58931
- (_ctx$hooks$afterDelet = (_ctx$hooks6 = ctx.hooks).afterDeleteComment) === null || _ctx$hooks$afterDelet === void 0 ? void 0 : _ctx$hooks$afterDelet.call(_ctx$hooks6, r, c);
58934
+ var _ctx$hooks$afterDelet, _ctx$hooks7;
58935
+ (_ctx$hooks$afterDelet = (_ctx$hooks7 = ctx.hooks).afterDeleteComment) === null || _ctx$hooks$afterDelet === void 0 ? void 0 : _ctx$hooks$afterDelet.call(_ctx$hooks7, r, c);
58932
58936
  });
58933
58937
  }
58934
58938
  if (ctx.hooks.afterUpdateComment) {
58935
- var _ctx$hooks$afterUpdat2, _ctx$hooks7;
58936
- (_ctx$hooks$afterUpdat2 = (_ctx$hooks7 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat2 === void 0 ? void 0 : _ctx$hooks$afterUpdat2.call(_ctx$hooks7, r, c, null, true);
58939
+ var _ctx$hooks$afterUpdat3, _ctx$hooks8;
58940
+ (_ctx$hooks$afterUpdat3 = (_ctx$hooks8 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat3 === void 0 ? void 0 : _ctx$hooks$afterUpdat3.call(_ctx$hooks8, r, c, null, true);
58937
58941
  }
58938
58942
  }
58939
58943
  function showComments(ctx, commentShowCells) {
@@ -58963,8 +58967,8 @@ function showHideComment(ctx, globalCache, r, c) {
58963
58967
  comment.isShow = true;
58964
58968
  }
58965
58969
  if (ctx.hooks.afterUpdateComment) {
58966
- var _ctx$hooks$afterUpdat3, _ctx$hooks8;
58967
- (_ctx$hooks$afterUpdat3 = (_ctx$hooks8 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat3 === void 0 ? void 0 : _ctx$hooks$afterUpdat3.call(_ctx$hooks8, r, c, _objectSpread2({}, comment), true);
58970
+ var _ctx$hooks$afterUpdat4, _ctx$hooks9;
58971
+ (_ctx$hooks$afterUpdat4 = (_ctx$hooks9 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat4 === void 0 ? void 0 : _ctx$hooks$afterUpdat4.call(_ctx$hooks9, r, c, _objectSpread2({}, comment), true);
58968
58972
  }
58969
58973
  }
58970
58974
  function showHideAllComments(ctx) {
@@ -59188,8 +59192,8 @@ function onCommentBoxResizeEnd(ctx, globalCache) {
59188
59192
  cell.ps.height = height / ctx.zoomRatio;
59189
59193
  setEditingComment(ctx, flowdata, r, c);
59190
59194
  if (ctx.hooks.afterUpdateComment) {
59191
- var _ctx$hooks$afterUpdat4, _ctx$hooks9;
59192
- (_ctx$hooks$afterUpdat4 = (_ctx$hooks9 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat4 === void 0 ? void 0 : _ctx$hooks$afterUpdat4.call(_ctx$hooks9, r, c, _objectSpread2({}, cell.ps), true);
59195
+ var _ctx$hooks$afterUpdat5, _ctx$hooks10;
59196
+ (_ctx$hooks$afterUpdat5 = (_ctx$hooks10 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat5 === void 0 ? void 0 : _ctx$hooks$afterUpdat5.call(_ctx$hooks10, r, c, _objectSpread2({}, cell.ps), true);
59193
59197
  }
59194
59198
  }
59195
59199
  }
@@ -59259,8 +59263,8 @@ function onCommentBoxMoveEnd(ctx, globalCache) {
59259
59263
  cell.ps.top = top / ctx.zoomRatio;
59260
59264
  setEditingComment(ctx, flowdata, r, c);
59261
59265
  if (ctx.hooks.afterUpdateComment) {
59262
- var _ctx$hooks$afterUpdat5, _ctx$hooks10;
59263
- (_ctx$hooks$afterUpdat5 = (_ctx$hooks10 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat5 === void 0 ? void 0 : _ctx$hooks$afterUpdat5.call(_ctx$hooks10, r, c, _objectSpread2({}, cell.ps), true);
59266
+ var _ctx$hooks$afterUpdat6, _ctx$hooks11;
59267
+ (_ctx$hooks$afterUpdat6 = (_ctx$hooks11 = ctx.hooks).afterUpdateComment) === null || _ctx$hooks$afterUpdat6 === void 0 ? void 0 : _ctx$hooks$afterUpdat6.call(_ctx$hooks11, r, c, _objectSpread2({}, cell.ps), true);
59264
59268
  }
59265
59269
  }
59266
59270
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "3.1.23",
3
+ "version": "3.1.24",
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": "^3.1.23",
16
+ "@leankylin-sheet/formula-parser": "^3.1.24",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",