@leankylin-sheet/core 2.0.22 → 2.0.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
@@ -66933,7 +66933,8 @@ function handleContextMenu(ctx, settings, e, workbookContainer, container, area)
66933
66933
  var _row_pre = _row_location[0];
66934
66934
  var _row_index = _row_location[2];
66935
66935
  var _isInSelection = _.some(ctx.luckysheet_select_save, function (obj_s) {
66936
- return obj_s.row != null && _row_index >= obj_s.row[0] && _row_index <= obj_s.row[1] && !obj_s.column_select;
66936
+ var _flowdata$0$length, _flowdata$;
66937
+ return obj_s.row != null && _row_index >= obj_s.row[0] && _row_index <= obj_s.row[1] && obj_s.column[0] === 0 && obj_s.column[1] === ((_flowdata$0$length = flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$ = flowdata[0]) === null || _flowdata$ === void 0 ? void 0 : _flowdata$.length) !== null && _flowdata$0$length !== void 0 ? _flowdata$0$length : 0) - 1;
66937
66938
  });
66938
66939
  if (_isInSelection) return;
66939
66940
  var _col_index = ctx.visibledatacolumn.length - 1;
@@ -66974,7 +66975,8 @@ function handleContextMenu(ctx, settings, e, workbookContainer, container, area)
66974
66975
  var _col_pre2 = _col_location[0];
66975
66976
  var _col_index2 = _col_location[2];
66976
66977
  var _isInSelection2 = _.some(ctx.luckysheet_select_save, function (obj_s) {
66977
- return obj_s.row != null && _col_index2 >= obj_s.column[0] && _col_index2 <= obj_s.column[1] && !obj_s.row_select;
66978
+ var _flowdata$length;
66979
+ return obj_s.column != null && _col_index2 >= obj_s.column[0] && _col_index2 <= obj_s.column[1] && obj_s.row[0] === 0 && obj_s.row[1] === ((_flowdata$length = flowdata === null || flowdata === void 0 ? void 0 : flowdata.length) !== null && _flowdata$length !== void 0 ? _flowdata$length : 0) - 1;
66978
66980
  });
66979
66981
  if (_isInSelection2) return;
66980
66982
  var _left4 = _col_pre2;
@@ -67495,8 +67497,8 @@ function handleRowHeaderMouseDown(ctx, globalCache, e, container, cellInput, fxI
67495
67497
  if (e.button === 2) {
67496
67498
  var flowdata = getFlowdata(ctx);
67497
67499
  var isInSelection = _.some(ctx.luckysheet_select_save, function (obj_s) {
67498
- var _flowdata$0$length, _flowdata$;
67499
- return obj_s.row != null && row_index >= obj_s.row[0] && row_index <= obj_s.row[1] && obj_s.column[0] === 0 && obj_s.column[1] === ((_flowdata$0$length = flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$ = flowdata[0]) === null || _flowdata$ === void 0 ? void 0 : _flowdata$.length) !== null && _flowdata$0$length !== void 0 ? _flowdata$0$length : 0) - 1;
67500
+ var _flowdata$0$length2, _flowdata$2;
67501
+ return obj_s.row != null && row_index >= obj_s.row[0] && row_index <= obj_s.row[1] && obj_s.column[0] === 0 && obj_s.column[1] === ((_flowdata$0$length2 = flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$2 = flowdata[0]) === null || _flowdata$2 === void 0 ? void 0 : _flowdata$2.length) !== null && _flowdata$0$length2 !== void 0 ? _flowdata$0$length2 : 0) - 1;
67500
67502
  });
67501
67503
  if (isInSelection) return;
67502
67504
  }
@@ -67733,8 +67735,8 @@ function handleColumnHeaderMouseDown(ctx, globalCache, e, container, cellInput,
67733
67735
  if (e.button === 2) {
67734
67736
  var flowdata = getFlowdata(ctx);
67735
67737
  var isInSelection = _.some(ctx.luckysheet_select_save, function (obj_s) {
67736
- var _flowdata$length;
67737
- return obj_s.column != null && col_index >= obj_s.column[0] && col_index <= obj_s.column[1] && obj_s.row[0] === 0 && obj_s.row[1] === ((_flowdata$length = flowdata === null || flowdata === void 0 ? void 0 : flowdata.length) !== null && _flowdata$length !== void 0 ? _flowdata$length : 0) - 1;
67738
+ var _flowdata$length2;
67739
+ return obj_s.column != null && col_index >= obj_s.column[0] && col_index <= obj_s.column[1] && obj_s.row[0] === 0 && obj_s.row[1] === ((_flowdata$length2 = flowdata === null || flowdata === void 0 ? void 0 : flowdata.length) !== null && _flowdata$length2 !== void 0 ? _flowdata$length2 : 0) - 1;
67738
67740
  });
67739
67741
  if (isInSelection) return;
67740
67742
  }
package/dist/index.js CHANGED
@@ -66943,7 +66943,8 @@ function handleContextMenu(ctx, settings, e, workbookContainer, container, area)
66943
66943
  var _row_pre = _row_location[0];
66944
66944
  var _row_index = _row_location[2];
66945
66945
  var _isInSelection = ___default['default'].some(ctx.luckysheet_select_save, function (obj_s) {
66946
- return obj_s.row != null && _row_index >= obj_s.row[0] && _row_index <= obj_s.row[1] && !obj_s.column_select;
66946
+ var _flowdata$0$length, _flowdata$;
66947
+ return obj_s.row != null && _row_index >= obj_s.row[0] && _row_index <= obj_s.row[1] && obj_s.column[0] === 0 && obj_s.column[1] === ((_flowdata$0$length = flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$ = flowdata[0]) === null || _flowdata$ === void 0 ? void 0 : _flowdata$.length) !== null && _flowdata$0$length !== void 0 ? _flowdata$0$length : 0) - 1;
66947
66948
  });
66948
66949
  if (_isInSelection) return;
66949
66950
  var _col_index = ctx.visibledatacolumn.length - 1;
@@ -66984,7 +66985,8 @@ function handleContextMenu(ctx, settings, e, workbookContainer, container, area)
66984
66985
  var _col_pre2 = _col_location[0];
66985
66986
  var _col_index2 = _col_location[2];
66986
66987
  var _isInSelection2 = ___default['default'].some(ctx.luckysheet_select_save, function (obj_s) {
66987
- return obj_s.row != null && _col_index2 >= obj_s.column[0] && _col_index2 <= obj_s.column[1] && !obj_s.row_select;
66988
+ var _flowdata$length;
66989
+ return obj_s.column != null && _col_index2 >= obj_s.column[0] && _col_index2 <= obj_s.column[1] && obj_s.row[0] === 0 && obj_s.row[1] === ((_flowdata$length = flowdata === null || flowdata === void 0 ? void 0 : flowdata.length) !== null && _flowdata$length !== void 0 ? _flowdata$length : 0) - 1;
66988
66990
  });
66989
66991
  if (_isInSelection2) return;
66990
66992
  var _left4 = _col_pre2;
@@ -67505,8 +67507,8 @@ function handleRowHeaderMouseDown(ctx, globalCache, e, container, cellInput, fxI
67505
67507
  if (e.button === 2) {
67506
67508
  var flowdata = getFlowdata(ctx);
67507
67509
  var isInSelection = ___default['default'].some(ctx.luckysheet_select_save, function (obj_s) {
67508
- var _flowdata$0$length, _flowdata$;
67509
- return obj_s.row != null && row_index >= obj_s.row[0] && row_index <= obj_s.row[1] && obj_s.column[0] === 0 && obj_s.column[1] === ((_flowdata$0$length = flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$ = flowdata[0]) === null || _flowdata$ === void 0 ? void 0 : _flowdata$.length) !== null && _flowdata$0$length !== void 0 ? _flowdata$0$length : 0) - 1;
67510
+ var _flowdata$0$length2, _flowdata$2;
67511
+ return obj_s.row != null && row_index >= obj_s.row[0] && row_index <= obj_s.row[1] && obj_s.column[0] === 0 && obj_s.column[1] === ((_flowdata$0$length2 = flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$2 = flowdata[0]) === null || _flowdata$2 === void 0 ? void 0 : _flowdata$2.length) !== null && _flowdata$0$length2 !== void 0 ? _flowdata$0$length2 : 0) - 1;
67510
67512
  });
67511
67513
  if (isInSelection) return;
67512
67514
  }
@@ -67743,8 +67745,8 @@ function handleColumnHeaderMouseDown(ctx, globalCache, e, container, cellInput,
67743
67745
  if (e.button === 2) {
67744
67746
  var flowdata = getFlowdata(ctx);
67745
67747
  var isInSelection = ___default['default'].some(ctx.luckysheet_select_save, function (obj_s) {
67746
- var _flowdata$length;
67747
- return obj_s.column != null && col_index >= obj_s.column[0] && col_index <= obj_s.column[1] && obj_s.row[0] === 0 && obj_s.row[1] === ((_flowdata$length = flowdata === null || flowdata === void 0 ? void 0 : flowdata.length) !== null && _flowdata$length !== void 0 ? _flowdata$length : 0) - 1;
67748
+ var _flowdata$length2;
67749
+ return obj_s.column != null && col_index >= obj_s.column[0] && col_index <= obj_s.column[1] && obj_s.row[0] === 0 && obj_s.row[1] === ((_flowdata$length2 = flowdata === null || flowdata === void 0 ? void 0 : flowdata.length) !== null && _flowdata$length2 !== void 0 ? _flowdata$length2 : 0) - 1;
67748
67750
  });
67749
67751
  if (isInSelection) return;
67750
67752
  }
@@ -91,7 +91,7 @@ export type Settings = {
91
91
  toolbarItems?: string[];
92
92
  cellContextMenu?: () => string[];
93
93
  headerContextMenu?: string[];
94
- cellCustomContextMenu?: (selectSave?: any) => {
94
+ cellCustomContextMenu?: (selectSave?: any, headMenu?: any) => {
95
95
  key: string;
96
96
  element: any;
97
97
  onClick: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "2.0.22",
3
+ "version": "2.0.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": "^2.0.22",
16
+ "@leankylin-sheet/formula-parser": "^2.0.24",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",