@leankylin-sheet/react 3.1.17 → 3.1.19

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
@@ -7424,7 +7424,7 @@ var ContextMenu = function ContextMenu() {
7424
7424
  show: canShowHidePs
7425
7425
  }].filter(function (item) {
7426
7426
  var _context$hooks2, _context$hooks3;
7427
- return ((_context$hooks2 = context.hooks) === null || _context$hooks2 === void 0 ? void 0 : _context$hooks2.showCommentsMenu) ? (_context$hooks3 = context.hooks) === null || _context$hooks3 === void 0 ? void 0 : _context$hooks3.showCommentsMenu(item) : item.show;
7427
+ return ((_context$hooks2 = context.hooks) === null || _context$hooks2 === void 0 ? void 0 : _context$hooks2.showCommentsMenu) ? (_context$hooks3 = context.hooks) === null || _context$hooks3 === void 0 ? void 0 : _context$hooks3.showCommentsMenu(item, row_index, col_index) : item.show;
7428
7428
  });
7429
7429
  return itemData.map(function (item) {
7430
7430
  return /*#__PURE__*/React.createElement(Menu, {
@@ -9663,6 +9663,17 @@ var MoreItemsContaier = function MoreItemsContaier(_ref) {
9663
9663
 
9664
9664
  function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cellInput, scrollbarX, scrollbarY, refs) {
9665
9665
  return {
9666
+ scrollToHighlightCell: function scrollToHighlightCell$1(r, c, selected) {
9667
+ setContext(function (ctx) {
9668
+ scrollToHighlightCell(ctx, r, c);
9669
+ if (selected) {
9670
+ api.setSelection(ctx, [{
9671
+ row: [r, r],
9672
+ column: [c, c]
9673
+ }], {});
9674
+ }
9675
+ });
9676
+ },
9666
9677
  getRefs: function getRefs() {
9667
9678
  return refs;
9668
9679
  },
package/dist/index.js CHANGED
@@ -7434,7 +7434,7 @@ var ContextMenu = function ContextMenu() {
7434
7434
  show: canShowHidePs
7435
7435
  }].filter(function (item) {
7436
7436
  var _context$hooks2, _context$hooks3;
7437
- return ((_context$hooks2 = context.hooks) === null || _context$hooks2 === void 0 ? void 0 : _context$hooks2.showCommentsMenu) ? (_context$hooks3 = context.hooks) === null || _context$hooks3 === void 0 ? void 0 : _context$hooks3.showCommentsMenu(item) : item.show;
7437
+ return ((_context$hooks2 = context.hooks) === null || _context$hooks2 === void 0 ? void 0 : _context$hooks2.showCommentsMenu) ? (_context$hooks3 = context.hooks) === null || _context$hooks3 === void 0 ? void 0 : _context$hooks3.showCommentsMenu(item, row_index, col_index) : item.show;
7438
7438
  });
7439
7439
  return itemData.map(function (item) {
7440
7440
  return /*#__PURE__*/React__default['default'].createElement(Menu, {
@@ -9673,6 +9673,17 @@ var MoreItemsContaier = function MoreItemsContaier(_ref) {
9673
9673
 
9674
9674
  function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cellInput, scrollbarX, scrollbarY, refs) {
9675
9675
  return {
9676
+ scrollToHighlightCell: function scrollToHighlightCell(r, c, selected) {
9677
+ setContext(function (ctx) {
9678
+ core.scrollToHighlightCell(ctx, r, c);
9679
+ if (selected) {
9680
+ core.api.setSelection(ctx, [{
9681
+ row: [r, r],
9682
+ column: [c, c]
9683
+ }], {});
9684
+ }
9685
+ });
9686
+ },
9676
9687
  getRefs: function getRefs() {
9677
9688
  return refs;
9678
9689
  },
package/dist/index.umd.js CHANGED
@@ -110470,7 +110470,7 @@
110470
110470
  show: canShowHidePs
110471
110471
  }].filter(function (item) {
110472
110472
  var _context$hooks2, _context$hooks3;
110473
- return ((_context$hooks2 = context.hooks) === null || _context$hooks2 === void 0 ? void 0 : _context$hooks2.showCommentsMenu) ? (_context$hooks3 = context.hooks) === null || _context$hooks3 === void 0 ? void 0 : _context$hooks3.showCommentsMenu(item) : item.show;
110473
+ return ((_context$hooks2 = context.hooks) === null || _context$hooks2 === void 0 ? void 0 : _context$hooks2.showCommentsMenu) ? (_context$hooks3 = context.hooks) === null || _context$hooks3 === void 0 ? void 0 : _context$hooks3.showCommentsMenu(item, row_index, col_index) : item.show;
110474
110474
  });
110475
110475
  return itemData.map(function (item) {
110476
110476
  return /*#__PURE__*/React__default['default'].createElement(Menu, {
@@ -112709,6 +112709,17 @@
112709
112709
 
112710
112710
  function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cellInput, scrollbarX, scrollbarY, refs) {
112711
112711
  return {
112712
+ scrollToHighlightCell: function scrollToHighlightCell$1(r, c, selected) {
112713
+ setContext(function (ctx) {
112714
+ scrollToHighlightCell(ctx, r, c);
112715
+ if (selected) {
112716
+ index.setSelection(ctx, [{
112717
+ row: [r, r],
112718
+ column: [c, c]
112719
+ }], {});
112720
+ }
112721
+ });
112722
+ },
112712
112723
  getRefs: function getRefs() {
112713
112724
  return refs;
112714
112725
  },