px-jspreadsheet-ce 0.0.17 → 0.0.18

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.js CHANGED
@@ -3556,7 +3556,7 @@ const getFreezeColumnLeft = function (colNumber, options) {
3556
3556
  while (colNumber > 0) {
3557
3557
  const obj = columns[colNumber - 1]; // 左侧单元格
3558
3558
  if (obj.type !== 'hidden') {
3559
- left += parseInt(obj.width || defaultWidth);
3559
+ left += parseInt(obj.width || defaultWidth || 100);
3560
3560
  }
3561
3561
  colNumber -= 1;
3562
3562
  }
@@ -3568,7 +3568,7 @@ const getFreezeRowTop = function (rowNumber, options) {
3568
3568
  let top = hiddenColumnLabel ? 0 : 30; // 距离顶部的位置
3569
3569
  while (rowNumber > 0) {
3570
3570
  const obj = rows[rowNumber - 1]; // 左侧单元格
3571
- top += parseInt(obj.height || defaultHeight);
3571
+ top += parseInt(obj.height || defaultHeight || 36);
3572
3572
  rowNumber -= 1;
3573
3573
  }
3574
3574
  return top + 'px';
@@ -4993,8 +4993,6 @@ const lib = {
4993
4993
  var utils_dispatch = __webpack_require__(805);
4994
4994
  // EXTERNAL MODULE: ./src/utils/internal.js
4995
4995
  var internal = __webpack_require__(530);
4996
- // EXTERNAL MODULE: ./src/utils/history.js
4997
- var utils_history = __webpack_require__(911);
4998
4996
  // EXTERNAL MODULE: ./src/utils/helpers.js
4999
4997
  var helpers = __webpack_require__(978);
5000
4998
  ;// ./src/utils/editor.js
@@ -5011,7 +5009,7 @@ var helpers = __webpack_require__(978);
5011
5009
  * @param object cell
5012
5010
  * @return void
5013
5011
  */
5014
- const openEditor = function (cell, empty, e) {
5012
+ const editor_openEditor = function (cell, empty, e) {
5015
5013
  const obj = this;
5016
5014
 
5017
5015
  // Get cell position
@@ -5387,7 +5385,7 @@ const editor_closeEditor = function (cell, save) {
5387
5385
  /**
5388
5386
  * Toogle
5389
5387
  */
5390
- const setCheckRadioValue = function () {
5388
+ const editor_setCheckRadioValue = function () {
5391
5389
  const obj = this;
5392
5390
 
5393
5391
  const records = [];
@@ -5397,7 +5395,7 @@ const setCheckRadioValue = function () {
5397
5395
  const y = obj.highlighted[i].element.getAttribute('data-y');
5398
5396
 
5399
5397
  let config = obj.options.columns && obj.options.columns[x];
5400
- const cellName = (0,helpers.getCellNameFromCoords)(x, y);
5398
+ const cellName = getCellNameFromCoords(x, y);
5401
5399
  const cells = obj.options.cells;
5402
5400
  if (typeof cells === 'object' && cells[cellName]) {
5403
5401
  config = cells[cellName];
@@ -5405,13 +5403,13 @@ const setCheckRadioValue = function () {
5405
5403
 
5406
5404
  if (config.type == 'checkbox' || config.type == 'radio') {
5407
5405
  // Update cell
5408
- records.push(internal/* updateCell */.k9.call(obj, x, y, !obj.options.data[y][x]));
5406
+ records.push(updateCell.call(obj, x, y, !obj.options.data[y][x]));
5409
5407
  }
5410
5408
  }
5411
5409
 
5412
5410
  if (records.length) {
5413
5411
  // Update history
5414
- utils_history/* setHistory */.Dh.call(obj, {
5412
+ setHistory.call(obj, {
5415
5413
  action: 'setValue',
5416
5414
  records: records,
5417
5415
  selection: obj.selectedCell,
@@ -5427,10 +5425,16 @@ const setCheckRadioValue = function () {
5427
5425
  };
5428
5426
  });
5429
5427
 
5430
- utils_dispatch/* default */.A.call(obj, 'onafterchanges', obj, onafterchangesRecords);
5428
+ dispatch.call(obj, 'onafterchanges', obj, onafterchangesRecords);
5431
5429
  }
5432
5430
  };
5433
5431
 
5432
+ // EXTERNAL MODULE: ./src/utils/merges.js
5433
+ var merges = __webpack_require__(910);
5434
+ // EXTERNAL MODULE: ./src/utils/selection.js
5435
+ var selection = __webpack_require__(657);
5436
+ // EXTERNAL MODULE: ./src/utils/history.js
5437
+ var utils_history = __webpack_require__(911);
5434
5438
  // EXTERNAL MODULE: ./src/utils/lazyLoading.js
5435
5439
  var lazyLoading = __webpack_require__(497);
5436
5440
  ;// ./src/utils/keys.js
@@ -5490,7 +5494,7 @@ const upVisible = function (group, direction) {
5490
5494
  }
5491
5495
  };
5492
5496
 
5493
- const up = function (shiftKey, ctrlKey) {
5497
+ const keys_up = function (shiftKey, ctrlKey) {
5494
5498
  const obj = this;
5495
5499
 
5496
5500
  if (shiftKey) {
@@ -5588,7 +5592,7 @@ const rightVisible = function (group, direction) {
5588
5592
  }
5589
5593
  };
5590
5594
 
5591
- const right = function (shiftKey, ctrlKey) {
5595
+ const keys_right = function (shiftKey, ctrlKey) {
5592
5596
  const obj = this;
5593
5597
 
5594
5598
  if (shiftKey) {
@@ -5660,7 +5664,7 @@ const downVisible = function (group, direction) {
5660
5664
  }
5661
5665
  };
5662
5666
 
5663
- const down = function (shiftKey, ctrlKey) {
5667
+ const keys_down = function (shiftKey, ctrlKey) {
5664
5668
  const obj = this;
5665
5669
 
5666
5670
  if (shiftKey) {
@@ -5756,7 +5760,7 @@ const leftVisible = function (group, direction) {
5756
5760
  }
5757
5761
  };
5758
5762
 
5759
- const left = function (shiftKey, ctrlKey) {
5763
+ const keys_left = function (shiftKey, ctrlKey) {
5760
5764
  const obj = this;
5761
5765
 
5762
5766
  if (shiftKey) {
@@ -5775,7 +5779,7 @@ const left = function (shiftKey, ctrlKey) {
5775
5779
  internal/* updateScroll */.Rs.call(obj, 0);
5776
5780
  };
5777
5781
 
5778
- const first = function (shiftKey, ctrlKey) {
5782
+ const keys_first = function (shiftKey, ctrlKey) {
5779
5783
  const obj = this;
5780
5784
 
5781
5785
  if (shiftKey) {
@@ -5808,7 +5812,7 @@ const first = function (shiftKey, ctrlKey) {
5808
5812
  internal/* updateScroll */.Rs.call(obj, 1);
5809
5813
  };
5810
5814
 
5811
- const last = function (shiftKey, ctrlKey) {
5815
+ const keys_last = function (shiftKey, ctrlKey) {
5812
5816
  const obj = this;
5813
5817
 
5814
5818
  if (shiftKey) {
@@ -5841,10 +5845,6 @@ const last = function (shiftKey, ctrlKey) {
5841
5845
  internal/* updateScroll */.Rs.call(obj, 3);
5842
5846
  };
5843
5847
 
5844
- // EXTERNAL MODULE: ./src/utils/merges.js
5845
- var merges = __webpack_require__(910);
5846
- // EXTERNAL MODULE: ./src/utils/selection.js
5847
- var selection = __webpack_require__(657);
5848
5848
  // EXTERNAL MODULE: ./src/utils/internalHelpers.js
5849
5849
  var internalHelpers = __webpack_require__(689);
5850
5850
  ;// ./src/utils/copyPaste.js
@@ -8459,7 +8459,7 @@ const doubleClickControls = function (e) {
8459
8459
  };
8460
8460
  const cell = getCellCoords(e.target);
8461
8461
  if (cell && cell.classList.contains('highlight')) {
8462
- openEditor.call(utils_libraryBase.jspreadsheet.current, cell, undefined, e);
8462
+ editor_openEditor.call(utils_libraryBase.jspreadsheet.current, cell, undefined, e);
8463
8463
  }
8464
8464
  }
8465
8465
  }
@@ -8897,7 +8897,7 @@ const touchStartControls = function (e) {
8897
8897
  } else {
8898
8898
  utils_libraryBase.jspreadsheet.tmpElement = e.target;
8899
8899
  }
8900
- openEditor.call(utils_libraryBase.jspreadsheet.current, e.target, false, e);
8900
+ editor_openEditor.call(utils_libraryBase.jspreadsheet.current, e.target, false, e);
8901
8901
  }, 500);
8902
8902
  }
8903
8903
  }
@@ -8934,9 +8934,9 @@ const cutControls = function (e) {
8934
8934
  };
8935
8935
 
8936
8936
  const copyControls = function (e) {
8937
- if (utils_libraryBase.jspreadsheet.current && copyControls.enabled) {
8938
- if (!utils_libraryBase.jspreadsheet.current.edition) {
8939
- copyPaste_copy.call(utils_libraryBase.jspreadsheet.current, true);
8937
+ if (libraryBase.jspreadsheet.current && copyControls.enabled) {
8938
+ if (!libraryBase.jspreadsheet.current.edition) {
8939
+ copy.call(libraryBase.jspreadsheet.current, true);
8940
8940
  }
8941
8941
  }
8942
8942
  };
@@ -8954,47 +8954,47 @@ const isCtrl = function (e) {
8954
8954
  };
8955
8955
 
8956
8956
  const keyDownControls = function (e) {
8957
- if (utils_libraryBase.jspreadsheet.current) {
8958
- if (utils_libraryBase.jspreadsheet.current.edition) {
8957
+ if (libraryBase.jspreadsheet.current) {
8958
+ if (libraryBase.jspreadsheet.current.edition) {
8959
8959
  if (e.which == 27) {
8960
8960
  // Escape
8961
- if (utils_libraryBase.jspreadsheet.current.edition) {
8961
+ if (libraryBase.jspreadsheet.current.edition) {
8962
8962
  // Exit without saving
8963
- editor_closeEditor.call(utils_libraryBase.jspreadsheet.current, utils_libraryBase.jspreadsheet.current.edition[0], false);
8963
+ closeEditor.call(libraryBase.jspreadsheet.current, libraryBase.jspreadsheet.current.edition[0], false);
8964
8964
  }
8965
8965
  e.preventDefault();
8966
8966
  } else if (e.which == 13) {
8967
8967
  // Enter
8968
8968
  if (
8969
- utils_libraryBase.jspreadsheet.current.options.columns &&
8970
- utils_libraryBase.jspreadsheet.current.options.columns[utils_libraryBase.jspreadsheet.current.edition[2]] &&
8971
- utils_libraryBase.jspreadsheet.current.options.columns[utils_libraryBase.jspreadsheet.current.edition[2]].type == 'calendar'
8969
+ libraryBase.jspreadsheet.current.options.columns &&
8970
+ libraryBase.jspreadsheet.current.options.columns[libraryBase.jspreadsheet.current.edition[2]] &&
8971
+ libraryBase.jspreadsheet.current.options.columns[libraryBase.jspreadsheet.current.edition[2]].type == 'calendar'
8972
8972
  ) {
8973
- editor_closeEditor.call(utils_libraryBase.jspreadsheet.current, utils_libraryBase.jspreadsheet.current.edition[0], true);
8973
+ closeEditor.call(libraryBase.jspreadsheet.current, libraryBase.jspreadsheet.current.edition[0], true);
8974
8974
  } else if (
8975
- utils_libraryBase.jspreadsheet.current.options.columns &&
8976
- utils_libraryBase.jspreadsheet.current.options.columns[utils_libraryBase.jspreadsheet.current.edition[2]] &&
8977
- utils_libraryBase.jspreadsheet.current.options.columns[utils_libraryBase.jspreadsheet.current.edition[2]].type == 'dropdown'
8975
+ libraryBase.jspreadsheet.current.options.columns &&
8976
+ libraryBase.jspreadsheet.current.options.columns[libraryBase.jspreadsheet.current.edition[2]] &&
8977
+ libraryBase.jspreadsheet.current.options.columns[libraryBase.jspreadsheet.current.edition[2]].type == 'dropdown'
8978
8978
  ) {
8979
8979
  // Do nothing
8980
8980
  } else {
8981
8981
  // Alt enter -> do not close editor
8982
8982
  if (
8983
- (utils_libraryBase.jspreadsheet.current.options.wordWrap == true ||
8984
- (utils_libraryBase.jspreadsheet.current.options.columns &&
8985
- utils_libraryBase.jspreadsheet.current.options.columns[utils_libraryBase.jspreadsheet.current.edition[2]] &&
8986
- utils_libraryBase.jspreadsheet.current.options.columns[utils_libraryBase.jspreadsheet.current.edition[2]].wordWrap == true) ||
8987
- (utils_libraryBase.jspreadsheet.current.options.data[utils_libraryBase.jspreadsheet.current.edition[3]][
8988
- utils_libraryBase.jspreadsheet.current.edition[2]
8983
+ (libraryBase.jspreadsheet.current.options.wordWrap == true ||
8984
+ (libraryBase.jspreadsheet.current.options.columns &&
8985
+ libraryBase.jspreadsheet.current.options.columns[libraryBase.jspreadsheet.current.edition[2]] &&
8986
+ libraryBase.jspreadsheet.current.options.columns[libraryBase.jspreadsheet.current.edition[2]].wordWrap == true) ||
8987
+ (libraryBase.jspreadsheet.current.options.data[libraryBase.jspreadsheet.current.edition[3]][
8988
+ libraryBase.jspreadsheet.current.edition[2]
8989
8989
  ] &&
8990
- utils_libraryBase.jspreadsheet.current.options.data[utils_libraryBase.jspreadsheet.current.edition[3]][
8991
- utils_libraryBase.jspreadsheet.current.edition[2]
8990
+ libraryBase.jspreadsheet.current.options.data[libraryBase.jspreadsheet.current.edition[3]][
8991
+ libraryBase.jspreadsheet.current.edition[2]
8992
8992
  ].length > 200)) &&
8993
8993
  e.altKey
8994
8994
  ) {
8995
8995
  // Add new line to the editor
8996
- const editorTextarea = utils_libraryBase.jspreadsheet.current.edition[0].children[0];
8997
- let editorValue = utils_libraryBase.jspreadsheet.current.edition[0].children[0].value;
8996
+ const editorTextarea = libraryBase.jspreadsheet.current.edition[0].children[0];
8997
+ let editorValue = libraryBase.jspreadsheet.current.edition[0].children[0].value;
8998
8998
  const editorIndexOf = editorTextarea.selectionStart;
8999
8999
  editorValue = editorValue.slice(0, editorIndexOf) + '\n' + editorValue.slice(editorIndexOf);
9000
9000
  editorTextarea.value = editorValue;
@@ -9002,62 +9002,62 @@ const keyDownControls = function (e) {
9002
9002
  editorTextarea.selectionStart = editorIndexOf + 1;
9003
9003
  editorTextarea.selectionEnd = editorIndexOf + 1;
9004
9004
  } else {
9005
- utils_libraryBase.jspreadsheet.current.edition[0].children[0].blur();
9005
+ libraryBase.jspreadsheet.current.edition[0].children[0].blur();
9006
9006
  }
9007
9007
  }
9008
9008
  } else if (e.which == 9) {
9009
9009
  // Tab
9010
9010
  if (
9011
- utils_libraryBase.jspreadsheet.current.options.columns &&
9012
- utils_libraryBase.jspreadsheet.current.options.columns[utils_libraryBase.jspreadsheet.current.edition[2]] &&
9013
- ['calendar', 'html'].includes(utils_libraryBase.jspreadsheet.current.options.columns[utils_libraryBase.jspreadsheet.current.edition[2]].type)
9011
+ libraryBase.jspreadsheet.current.options.columns &&
9012
+ libraryBase.jspreadsheet.current.options.columns[libraryBase.jspreadsheet.current.edition[2]] &&
9013
+ ['calendar', 'html'].includes(libraryBase.jspreadsheet.current.options.columns[libraryBase.jspreadsheet.current.edition[2]].type)
9014
9014
  ) {
9015
- editor_closeEditor.call(utils_libraryBase.jspreadsheet.current, utils_libraryBase.jspreadsheet.current.edition[0], true);
9015
+ closeEditor.call(libraryBase.jspreadsheet.current, libraryBase.jspreadsheet.current.edition[0], true);
9016
9016
  } else {
9017
- utils_libraryBase.jspreadsheet.current.edition[0].children[0].blur();
9017
+ libraryBase.jspreadsheet.current.edition[0].children[0].blur();
9018
9018
  }
9019
9019
  }
9020
9020
  }
9021
9021
 
9022
- if (!utils_libraryBase.jspreadsheet.current.edition && utils_libraryBase.jspreadsheet.current.selectedCell) {
9022
+ if (!libraryBase.jspreadsheet.current.edition && libraryBase.jspreadsheet.current.selectedCell) {
9023
9023
  // Which key
9024
9024
  if (e.which == 37) {
9025
- left.call(utils_libraryBase.jspreadsheet.current, e.shiftKey, e.ctrlKey);
9025
+ left.call(libraryBase.jspreadsheet.current, e.shiftKey, e.ctrlKey);
9026
9026
  e.preventDefault();
9027
9027
  } else if (e.which == 39) {
9028
- right.call(utils_libraryBase.jspreadsheet.current, e.shiftKey, e.ctrlKey);
9028
+ right.call(libraryBase.jspreadsheet.current, e.shiftKey, e.ctrlKey);
9029
9029
  e.preventDefault();
9030
9030
  } else if (e.which == 38) {
9031
- up.call(utils_libraryBase.jspreadsheet.current, e.shiftKey, e.ctrlKey);
9031
+ up.call(libraryBase.jspreadsheet.current, e.shiftKey, e.ctrlKey);
9032
9032
  e.preventDefault();
9033
9033
  } else if (e.which == 40) {
9034
- down.call(utils_libraryBase.jspreadsheet.current, e.shiftKey, e.ctrlKey);
9034
+ down.call(libraryBase.jspreadsheet.current, e.shiftKey, e.ctrlKey);
9035
9035
  e.preventDefault();
9036
9036
  } else if (e.which == 36) {
9037
- first.call(utils_libraryBase.jspreadsheet.current, e.shiftKey, e.ctrlKey);
9037
+ first.call(libraryBase.jspreadsheet.current, e.shiftKey, e.ctrlKey);
9038
9038
  e.preventDefault();
9039
9039
  } else if (e.which == 35) {
9040
- last.call(utils_libraryBase.jspreadsheet.current, e.shiftKey, e.ctrlKey);
9040
+ last.call(libraryBase.jspreadsheet.current, e.shiftKey, e.ctrlKey);
9041
9041
  e.preventDefault();
9042
9042
  } else if (e.which == 46 || e.which == 8) {
9043
9043
  // Delete
9044
- if (utils_libraryBase.jspreadsheet.current.options.editable != false) {
9045
- if (utils_libraryBase.jspreadsheet.current.selectedRow != null) {
9046
- if (utils_libraryBase.jspreadsheet.current.options.allowDeleteRow != false) {
9044
+ if (libraryBase.jspreadsheet.current.options.editable != false) {
9045
+ if (libraryBase.jspreadsheet.current.selectedRow != null) {
9046
+ if (libraryBase.jspreadsheet.current.options.allowDeleteRow != false) {
9047
9047
  if (confirm(jSuites.translate('Are you sure to delete the selected rows?'))) {
9048
- utils_libraryBase.jspreadsheet.current.deleteRow();
9048
+ libraryBase.jspreadsheet.current.deleteRow();
9049
9049
  }
9050
9050
  }
9051
- } else if (utils_libraryBase.jspreadsheet.current.selectedHeader) {
9052
- if (utils_libraryBase.jspreadsheet.current.options.allowDeleteColumn != false) {
9051
+ } else if (libraryBase.jspreadsheet.current.selectedHeader) {
9052
+ if (libraryBase.jspreadsheet.current.options.allowDeleteColumn != false) {
9053
9053
  if (confirm(jSuites.translate('Are you sure to delete the selected columns?'))) {
9054
- utils_libraryBase.jspreadsheet.current.deleteColumn();
9054
+ libraryBase.jspreadsheet.current.deleteColumn();
9055
9055
  }
9056
9056
  }
9057
9057
  } else {
9058
9058
  // Change value
9059
- utils_libraryBase.jspreadsheet.current.setValue(
9060
- utils_libraryBase.jspreadsheet.current.highlighted.map(function (record) {
9059
+ libraryBase.jspreadsheet.current.setValue(
9060
+ libraryBase.jspreadsheet.current.highlighted.map(function (record) {
9061
9061
  return record.element;
9062
9062
  }),
9063
9063
  ''
@@ -9067,62 +9067,62 @@ const keyDownControls = function (e) {
9067
9067
  } else if (e.which == 13) {
9068
9068
  // Move cursor
9069
9069
  if (e.shiftKey) {
9070
- up.call(utils_libraryBase.jspreadsheet.current);
9070
+ up.call(libraryBase.jspreadsheet.current);
9071
9071
  } else {
9072
- if (utils_libraryBase.jspreadsheet.current.options.allowInsertRow != false) {
9073
- if (utils_libraryBase.jspreadsheet.current.options.allowManualInsertRow != false) {
9074
- if (utils_libraryBase.jspreadsheet.current.selectedCell[1] == utils_libraryBase.jspreadsheet.current.options.data.length - 1) {
9072
+ if (libraryBase.jspreadsheet.current.options.allowInsertRow != false) {
9073
+ if (libraryBase.jspreadsheet.current.options.allowManualInsertRow != false) {
9074
+ if (libraryBase.jspreadsheet.current.selectedCell[1] == libraryBase.jspreadsheet.current.options.data.length - 1) {
9075
9075
  // New record in case selectedCell in the last row
9076
- utils_libraryBase.jspreadsheet.current.insertRow();
9076
+ libraryBase.jspreadsheet.current.insertRow();
9077
9077
  }
9078
9078
  }
9079
9079
  }
9080
9080
 
9081
- down.call(utils_libraryBase.jspreadsheet.current);
9081
+ down.call(libraryBase.jspreadsheet.current);
9082
9082
  }
9083
9083
  e.preventDefault();
9084
9084
  } else if (e.which == 9) {
9085
9085
  // Tab
9086
9086
  if (e.shiftKey) {
9087
- left.call(utils_libraryBase.jspreadsheet.current);
9087
+ left.call(libraryBase.jspreadsheet.current);
9088
9088
  } else {
9089
- if (utils_libraryBase.jspreadsheet.current.options.allowInsertColumn != false) {
9090
- if (utils_libraryBase.jspreadsheet.current.options.allowManualInsertColumn != false) {
9091
- if (utils_libraryBase.jspreadsheet.current.selectedCell[0] == utils_libraryBase.jspreadsheet.current.options.data[0].length - 1) {
9089
+ if (libraryBase.jspreadsheet.current.options.allowInsertColumn != false) {
9090
+ if (libraryBase.jspreadsheet.current.options.allowManualInsertColumn != false) {
9091
+ if (libraryBase.jspreadsheet.current.selectedCell[0] == libraryBase.jspreadsheet.current.options.data[0].length - 1) {
9092
9092
  // New record in case selectedCell in the last column
9093
- utils_libraryBase.jspreadsheet.current.insertColumn();
9093
+ libraryBase.jspreadsheet.current.insertColumn();
9094
9094
  }
9095
9095
  }
9096
9096
  }
9097
9097
 
9098
- right.call(utils_libraryBase.jspreadsheet.current);
9098
+ right.call(libraryBase.jspreadsheet.current);
9099
9099
  }
9100
9100
  e.preventDefault();
9101
9101
  } else {
9102
9102
  if ((e.ctrlKey || e.metaKey) && !e.shiftKey) {
9103
9103
  if (e.which == 65) {
9104
9104
  // Ctrl + A
9105
- selection/* selectAll */.Ub.call(utils_libraryBase.jspreadsheet.current);
9105
+ selectAll.call(libraryBase.jspreadsheet.current);
9106
9106
  e.preventDefault();
9107
9107
  } else if (e.which == 83) {
9108
9108
  // Ctrl + S
9109
- utils_libraryBase.jspreadsheet.current.download();
9109
+ libraryBase.jspreadsheet.current.download();
9110
9110
  e.preventDefault();
9111
9111
  } else if (e.which == 89) {
9112
9112
  // Ctrl + Y
9113
- utils_libraryBase.jspreadsheet.current.redo();
9113
+ libraryBase.jspreadsheet.current.redo();
9114
9114
  e.preventDefault();
9115
9115
  } else if (e.which == 90) {
9116
9116
  // Ctrl + Z
9117
- utils_libraryBase.jspreadsheet.current.undo();
9117
+ libraryBase.jspreadsheet.current.undo();
9118
9118
  e.preventDefault();
9119
9119
  } else if (e.which == 67) {
9120
9120
  // Ctrl + C
9121
- copyPaste_copy.call(utils_libraryBase.jspreadsheet.current, true);
9121
+ copy.call(libraryBase.jspreadsheet.current, true);
9122
9122
  e.preventDefault();
9123
9123
  } else if (e.which == 88) {
9124
9124
  // Ctrl + X
9125
- if (utils_libraryBase.jspreadsheet.current.options.editable != false) {
9125
+ if (libraryBase.jspreadsheet.current.options.editable != false) {
9126
9126
  cutControls();
9127
9127
  } else {
9128
9128
  copyControls();
@@ -9133,40 +9133,40 @@ const keyDownControls = function (e) {
9133
9133
  pasteControls();
9134
9134
  }
9135
9135
  } else {
9136
- if (utils_libraryBase.jspreadsheet.current.selectedCell) {
9137
- if (utils_libraryBase.jspreadsheet.current.options.editable != false) {
9138
- const rowId = utils_libraryBase.jspreadsheet.current.selectedCell[1];
9139
- const columnId = utils_libraryBase.jspreadsheet.current.selectedCell[0];
9136
+ if (libraryBase.jspreadsheet.current.selectedCell) {
9137
+ if (libraryBase.jspreadsheet.current.options.editable != false) {
9138
+ const rowId = libraryBase.jspreadsheet.current.selectedCell[1];
9139
+ const columnId = libraryBase.jspreadsheet.current.selectedCell[0];
9140
9140
 
9141
9141
  // Characters able to start a edition
9142
9142
  if (e.keyCode == 32) {
9143
9143
  // Space
9144
9144
  e.preventDefault();
9145
9145
  if (
9146
- utils_libraryBase.jspreadsheet.current.options.columns[columnId].type == 'checkbox' ||
9147
- utils_libraryBase.jspreadsheet.current.options.columns[columnId].type == 'radio'
9146
+ libraryBase.jspreadsheet.current.options.columns[columnId].type == 'checkbox' ||
9147
+ libraryBase.jspreadsheet.current.options.columns[columnId].type == 'radio'
9148
9148
  ) {
9149
- setCheckRadioValue.call(utils_libraryBase.jspreadsheet.current);
9149
+ setCheckRadioValue.call(libraryBase.jspreadsheet.current);
9150
9150
  } else {
9151
9151
  // Start edition
9152
9152
  openEditor.call(
9153
- utils_libraryBase.jspreadsheet.current,
9154
- utils_libraryBase.jspreadsheet.current.records[rowId][columnId].element,
9153
+ libraryBase.jspreadsheet.current,
9154
+ libraryBase.jspreadsheet.current.records[rowId][columnId].element,
9155
9155
  true,
9156
9156
  e
9157
9157
  );
9158
9158
  }
9159
9159
  } else if (e.keyCode == 113) {
9160
9160
  // Start edition with current content F2
9161
- openEditor.call(utils_libraryBase.jspreadsheet.current, utils_libraryBase.jspreadsheet.current.records[rowId][columnId].element, false, e);
9161
+ openEditor.call(libraryBase.jspreadsheet.current, libraryBase.jspreadsheet.current.records[rowId][columnId].element, false, e);
9162
9162
  } else if ((e.key.length === 1 || e.key === 'Process') && !(e.altKey || isCtrl(e))) {
9163
9163
  // Start edition
9164
- openEditor.call(utils_libraryBase.jspreadsheet.current, utils_libraryBase.jspreadsheet.current.records[rowId][columnId].element, true, e);
9164
+ openEditor.call(libraryBase.jspreadsheet.current, libraryBase.jspreadsheet.current.records[rowId][columnId].element, true, e);
9165
9165
  // Prevent entries in the calendar
9166
9166
  if (
9167
- utils_libraryBase.jspreadsheet.current.options.columns &&
9168
- utils_libraryBase.jspreadsheet.current.options.columns[columnId] &&
9169
- utils_libraryBase.jspreadsheet.current.options.columns[columnId].type == 'calendar'
9167
+ libraryBase.jspreadsheet.current.options.columns &&
9168
+ libraryBase.jspreadsheet.current.options.columns[columnId] &&
9169
+ libraryBase.jspreadsheet.current.options.columns[columnId].type == 'calendar'
9170
9170
  ) {
9171
9171
  e.preventDefault();
9172
9172
  }
@@ -9177,12 +9177,12 @@ const keyDownControls = function (e) {
9177
9177
  }
9178
9178
  } else {
9179
9179
  if (e.target.classList.contains('jss_search')) {
9180
- if (utils_libraryBase.jspreadsheet.timeControl) {
9181
- clearTimeout(utils_libraryBase.jspreadsheet.timeControl);
9180
+ if (libraryBase.jspreadsheet.timeControl) {
9181
+ clearTimeout(libraryBase.jspreadsheet.timeControl);
9182
9182
  }
9183
9183
 
9184
- utils_libraryBase.jspreadsheet.timeControl = setTimeout(function () {
9185
- utils_libraryBase.jspreadsheet.current.search(e.target.value);
9184
+ libraryBase.jspreadsheet.timeControl = setTimeout(function () {
9185
+ libraryBase.jspreadsheet.current.search(e.target.value);
9186
9186
  }, 200);
9187
9187
  }
9188
9188
  }
@@ -9296,7 +9296,7 @@ const setEvents = function (root) {
9296
9296
  root.addEventListener('touchend', touchEndControls);
9297
9297
  root.addEventListener('touchcancel', touchEndControls);
9298
9298
  root.addEventListener('touchmove', touchEndControls);
9299
- document.addEventListener('keydown', keyDownControls);
9299
+ // document.addEventListener('keydown', keyDownControls);
9300
9300
  };
9301
9301
 
9302
9302
  const destroyEvents = function (root) {
@@ -9310,7 +9310,7 @@ const destroyEvents = function (root) {
9310
9310
  root.removeEventListener('touchstart', touchStartControls);
9311
9311
  root.removeEventListener('touchend', touchEndControls);
9312
9312
  root.removeEventListener('touchcancel', touchEndControls);
9313
- document.removeEventListener('keydown', keyDownControls);
9313
+ // document.removeEventListener('keydown', keyDownControls);
9314
9314
  };
9315
9315
 
9316
9316
  // EXTERNAL MODULE: ./src/utils/toolbar.js
@@ -11057,7 +11057,7 @@ const worksheetPublicMethods = [
11057
11057
  ['showIndex', internal/* showIndex */.C6],
11058
11058
  ['hideIndex', internal/* hideIndex */.TI],
11059
11059
  ['getWorksheetActive', internal/* getWorksheetActive */.$O],
11060
- ['openEditor', openEditor],
11060
+ ['openEditor', editor_openEditor],
11061
11061
  ['closeEditor', editor_closeEditor],
11062
11062
  ['createWorksheet', createWorksheet],
11063
11063
  ['openWorksheet', openWorksheet],
@@ -11083,12 +11083,12 @@ const worksheetPublicMethods = [
11083
11083
  ['isReadOnly', isReadOnly],
11084
11084
  ['getHighlighted', selection/* getHighlighted */.kV],
11085
11085
  ['dispatch', utils_dispatch/* default */.A],
11086
- ['down', down],
11087
- ['first', first],
11088
- ['last', last],
11089
- ['left', left],
11090
- ['right', right],
11091
- ['up', up],
11086
+ ['down', keys_down],
11087
+ ['first', keys_first],
11088
+ ['last', keys_last],
11089
+ ['left', keys_left],
11090
+ ['right', keys_right],
11091
+ ['up', keys_up],
11092
11092
  ['openFilter', filter/* openFilter */.N$],
11093
11093
  ['resetFilters', filter/* resetFilters */.dr],
11094
11094
  ];