handsontable 0.0.0-next-93e34dc-20230601 → 0.0.0-next-b7cca45-20230605

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

Files changed (216) hide show
  1. package/3rdparty/walkontable/src/{selection/border/border.js → border.js} +12 -7
  2. package/3rdparty/walkontable/src/{selection/border/border.mjs → border.mjs} +12 -7
  3. package/3rdparty/walkontable/src/cell/coords.d.ts +1 -6
  4. package/3rdparty/walkontable/src/cell/coords.js +12 -61
  5. package/3rdparty/walkontable/src/cell/coords.mjs +12 -61
  6. package/3rdparty/walkontable/src/cell/range.d.ts +2 -9
  7. package/3rdparty/walkontable/src/cell/range.js +7 -44
  8. package/3rdparty/walkontable/src/cell/range.mjs +7 -44
  9. package/3rdparty/walkontable/src/core/_base.js +3 -9
  10. package/3rdparty/walkontable/src/core/_base.mjs +3 -9
  11. package/3rdparty/walkontable/src/core/clone.js +2 -2
  12. package/3rdparty/walkontable/src/core/clone.mjs +2 -2
  13. package/3rdparty/walkontable/src/core/core.js +2 -3
  14. package/3rdparty/walkontable/src/core/core.mjs +2 -3
  15. package/3rdparty/walkontable/src/event.js +7 -7
  16. package/3rdparty/walkontable/src/event.mjs +7 -7
  17. package/3rdparty/walkontable/src/facade/core.js +2 -2
  18. package/3rdparty/walkontable/src/facade/core.mjs +2 -2
  19. package/3rdparty/walkontable/src/index.js +2 -10
  20. package/3rdparty/walkontable/src/index.mjs +2 -2
  21. package/3rdparty/walkontable/src/overlay/_base.js +1 -1
  22. package/3rdparty/walkontable/src/overlay/_base.mjs +1 -1
  23. package/3rdparty/walkontable/src/overlay/inlineStart.js +4 -2
  24. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +4 -2
  25. package/3rdparty/walkontable/src/overlay/top.js +4 -2
  26. package/3rdparty/walkontable/src/overlay/top.mjs +4 -2
  27. package/3rdparty/walkontable/src/selection.js +354 -0
  28. package/3rdparty/walkontable/src/selection.mjs +348 -0
  29. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +0 -9
  30. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +0 -9
  31. package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +0 -9
  32. package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +0 -9
  33. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +0 -9
  34. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +0 -9
  35. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +0 -9
  36. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +0 -9
  37. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +0 -9
  38. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +0 -9
  39. package/3rdparty/walkontable/src/table.js +79 -7
  40. package/3rdparty/walkontable/src/table.mjs +80 -8
  41. package/base.js +2 -2
  42. package/base.mjs +2 -2
  43. package/core.d.ts +3 -5
  44. package/core.js +300 -82
  45. package/core.mjs +300 -82
  46. package/dataMap/metaManager/metaSchema.js +0 -15
  47. package/dataMap/metaManager/metaSchema.mjs +0 -15
  48. package/dist/handsontable.css +3 -8
  49. package/dist/handsontable.full.css +3 -8
  50. package/dist/handsontable.full.js +9926 -12218
  51. package/dist/handsontable.full.min.css +3 -3
  52. package/dist/handsontable.full.min.js +120 -120
  53. package/dist/handsontable.js +14628 -16920
  54. package/dist/handsontable.min.css +3 -3
  55. package/dist/handsontable.min.js +4 -4
  56. package/editorManager.js +82 -20
  57. package/editorManager.mjs +86 -25
  58. package/editors/textEditor/textEditor.js +11 -3
  59. package/editors/textEditor/textEditor.mjs +12 -4
  60. package/helpers/mixed.js +1 -1
  61. package/helpers/mixed.mjs +1 -1
  62. package/helpers/number.d.ts +0 -1
  63. package/helpers/number.js +0 -18
  64. package/helpers/number.mjs +0 -17
  65. package/package.json +1 -1
  66. package/pluginHooks.js +1 -1
  67. package/pluginHooks.mjs +1 -1
  68. package/plugins/copyPaste/copyPaste.js +1 -5
  69. package/plugins/copyPaste/copyPaste.mjs +1 -5
  70. package/plugins/customBorders/customBorders.js +52 -18
  71. package/plugins/customBorders/customBorders.mjs +53 -19
  72. package/plugins/mergeCells/mergeCells.js +18 -5
  73. package/plugins/mergeCells/mergeCells.mjs +18 -5
  74. package/plugins/nestedHeaders/nestedHeaders.js +9 -89
  75. package/plugins/nestedHeaders/nestedHeaders.mjs +9 -89
  76. package/plugins/nestedHeaders/stateManager/index.js +0 -37
  77. package/plugins/nestedHeaders/stateManager/index.mjs +0 -37
  78. package/renderers/checkboxRenderer/checkboxRenderer.js +2 -2
  79. package/renderers/checkboxRenderer/checkboxRenderer.mjs +1 -1
  80. package/selection/highlight/constants.js +16 -0
  81. package/selection/highlight/constants.mjs +6 -0
  82. package/selection/highlight/highlight.js +88 -311
  83. package/selection/highlight/highlight.mjs +84 -301
  84. package/selection/highlight/types/activeHeader.js +9 -10
  85. package/selection/highlight/types/activeHeader.mjs +8 -10
  86. package/selection/highlight/types/area.js +27 -12
  87. package/selection/highlight/types/area.mjs +30 -16
  88. package/selection/highlight/types/{focus.js → cell.js} +8 -5
  89. package/selection/highlight/types/{focus.mjs → cell.mjs} +7 -5
  90. package/selection/highlight/types/customSelection.js +10 -7
  91. package/selection/highlight/types/customSelection.mjs +9 -7
  92. package/selection/highlight/types/fill.js +8 -5
  93. package/selection/highlight/types/fill.mjs +7 -5
  94. package/selection/highlight/types/header.js +20 -10
  95. package/selection/highlight/types/header.mjs +19 -10
  96. package/selection/highlight/types/{row.js → index.js} +31 -27
  97. package/selection/highlight/types/{row.mjs → index.mjs} +29 -24
  98. package/selection/highlight/visualSelection.js +28 -23
  99. package/selection/highlight/visualSelection.mjs +28 -23
  100. package/selection/index.js +7 -4
  101. package/selection/index.mjs +3 -2
  102. package/selection/mouseEventHandler.js +1 -1
  103. package/selection/mouseEventHandler.mjs +1 -1
  104. package/selection/range.js +8 -8
  105. package/selection/range.mjs +8 -8
  106. package/selection/selection.js +180 -296
  107. package/selection/selection.mjs +179 -291
  108. package/selection/transformation.js +96 -233
  109. package/selection/transformation.mjs +93 -230
  110. package/selection/utils.js +35 -12
  111. package/selection/utils.mjs +35 -13
  112. package/settings.d.ts +0 -1
  113. package/tableView.js +9 -58
  114. package/tableView.mjs +9 -58
  115. package/3rdparty/walkontable/src/selection/border/constants.js +0 -18
  116. package/3rdparty/walkontable/src/selection/border/constants.mjs +0 -13
  117. package/3rdparty/walkontable/src/selection/constants.js +0 -63
  118. package/3rdparty/walkontable/src/selection/constants.mjs +0 -51
  119. package/3rdparty/walkontable/src/selection/index.js +0 -30
  120. package/3rdparty/walkontable/src/selection/index.mjs +0 -5
  121. package/3rdparty/walkontable/src/selection/manager.js +0 -328
  122. package/3rdparty/walkontable/src/selection/manager.mjs +0 -322
  123. package/3rdparty/walkontable/src/selection/scanner.js +0 -363
  124. package/3rdparty/walkontable/src/selection/scanner.mjs +0 -359
  125. package/3rdparty/walkontable/src/selection/selection.js +0 -133
  126. package/3rdparty/walkontable/src/selection/selection.mjs +0 -127
  127. package/selection/highlight/types/areaLayered.js +0 -54
  128. package/selection/highlight/types/areaLayered.mjs +0 -49
  129. package/selection/highlight/types/column.js +0 -50
  130. package/selection/highlight/types/column.mjs +0 -45
  131. package/shortcutContexts/commands/editor/closeAndSave.js +0 -15
  132. package/shortcutContexts/commands/editor/closeAndSave.mjs +0 -10
  133. package/shortcutContexts/commands/editor/closeWithoutSaving.js +0 -13
  134. package/shortcutContexts/commands/editor/closeWithoutSaving.mjs +0 -8
  135. package/shortcutContexts/commands/editor/fastOpen.js +0 -16
  136. package/shortcutContexts/commands/editor/fastOpen.mjs +0 -11
  137. package/shortcutContexts/commands/editor/index.js +0 -16
  138. package/shortcutContexts/commands/editor/index.mjs +0 -12
  139. package/shortcutContexts/commands/editor/open.js +0 -29
  140. package/shortcutContexts/commands/editor/open.mjs +0 -24
  141. package/shortcutContexts/commands/emptySelectedCells.js +0 -12
  142. package/shortcutContexts/commands/emptySelectedCells.mjs +0 -7
  143. package/shortcutContexts/commands/extendCellsSelection/down.js +0 -15
  144. package/shortcutContexts/commands/extendCellsSelection/down.mjs +0 -10
  145. package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +0 -21
  146. package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +0 -16
  147. package/shortcutContexts/commands/extendCellsSelection/index.js +0 -24
  148. package/shortcutContexts/commands/extendCellsSelection/index.mjs +0 -20
  149. package/shortcutContexts/commands/extendCellsSelection/left.js +0 -15
  150. package/shortcutContexts/commands/extendCellsSelection/left.mjs +0 -10
  151. package/shortcutContexts/commands/extendCellsSelection/right.js +0 -15
  152. package/shortcutContexts/commands/extendCellsSelection/right.mjs +0 -10
  153. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +0 -22
  154. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +0 -17
  155. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +0 -17
  156. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +0 -12
  157. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +0 -17
  158. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +0 -12
  159. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +0 -39
  160. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +0 -34
  161. package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +0 -39
  162. package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +0 -34
  163. package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +0 -22
  164. package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +0 -17
  165. package/shortcutContexts/commands/extendCellsSelection/up.js +0 -15
  166. package/shortcutContexts/commands/extendCellsSelection/up.mjs +0 -10
  167. package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +0 -21
  168. package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +0 -16
  169. package/shortcutContexts/commands/index.js +0 -51
  170. package/shortcutContexts/commands/index.mjs +0 -47
  171. package/shortcutContexts/commands/moveCellSelection/down.js +0 -12
  172. package/shortcutContexts/commands/moveCellSelection/down.mjs +0 -7
  173. package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.js +0 -11
  174. package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.mjs +0 -6
  175. package/shortcutContexts/commands/moveCellSelection/index.js +0 -28
  176. package/shortcutContexts/commands/moveCellSelection/index.mjs +0 -24
  177. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +0 -13
  178. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +0 -8
  179. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +0 -13
  180. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +0 -8
  181. package/shortcutContexts/commands/moveCellSelection/left.js +0 -11
  182. package/shortcutContexts/commands/moveCellSelection/left.mjs +0 -6
  183. package/shortcutContexts/commands/moveCellSelection/right.js +0 -11
  184. package/shortcutContexts/commands/moveCellSelection/right.mjs +0 -6
  185. package/shortcutContexts/commands/moveCellSelection/toMostBottom.js +0 -16
  186. package/shortcutContexts/commands/moveCellSelection/toMostBottom.mjs +0 -11
  187. package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.js +0 -17
  188. package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.mjs +0 -12
  189. package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.js +0 -13
  190. package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.mjs +0 -8
  191. package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.js +0 -16
  192. package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.mjs +0 -11
  193. package/shortcutContexts/commands/moveCellSelection/toMostLeft.js +0 -35
  194. package/shortcutContexts/commands/moveCellSelection/toMostLeft.mjs +0 -30
  195. package/shortcutContexts/commands/moveCellSelection/toMostRight.js +0 -35
  196. package/shortcutContexts/commands/moveCellSelection/toMostRight.mjs +0 -30
  197. package/shortcutContexts/commands/moveCellSelection/toMostTop.js +0 -16
  198. package/shortcutContexts/commands/moveCellSelection/toMostTop.mjs +0 -11
  199. package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.js +0 -18
  200. package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.mjs +0 -13
  201. package/shortcutContexts/commands/moveCellSelection/up.js +0 -12
  202. package/shortcutContexts/commands/moveCellSelection/up.mjs +0 -7
  203. package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.js +0 -11
  204. package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.mjs +0 -6
  205. package/shortcutContexts/commands/populateSelectedCellsData.js +0 -35
  206. package/shortcutContexts/commands/populateSelectedCellsData.mjs +0 -30
  207. package/shortcutContexts/commands/selectAll.js +0 -11
  208. package/shortcutContexts/commands/selectAll.mjs +0 -6
  209. package/shortcutContexts/constants.js +0 -19
  210. package/shortcutContexts/constants.mjs +0 -12
  211. package/shortcutContexts/editor.js +0 -29
  212. package/shortcutContexts/editor.mjs +0 -25
  213. package/shortcutContexts/grid.js +0 -232
  214. package/shortcutContexts/grid.mjs +0 -228
  215. package/shortcutContexts/index.js +0 -29
  216. package/shortcutContexts/index.mjs +0 -15
@@ -17,11 +17,10 @@ require("core-js/modules/es.symbol.js");
17
17
  require("core-js/modules/es.symbol.description.js");
18
18
  require("core-js/modules/es.object.to-string.js");
19
19
  require("core-js/modules/es.number.constructor.js");
20
- var _element = require("../../../../../helpers/dom/element");
21
- var _event = require("../../../../../helpers/dom/event");
22
- var _object = require("../../../../../helpers/object");
23
- var _browser = require("../../../../../helpers/browser");
24
- var _constants = require("./constants");
20
+ var _element = require("../../../helpers/dom/element");
21
+ var _event = require("../../../helpers/dom/event");
22
+ var _object = require("../../../helpers/object");
23
+ var _browser = require("../../../helpers/browser");
25
24
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
26
25
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
27
26
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -64,7 +63,13 @@ var Border = /*#__PURE__*/function () {
64
63
  this.bottomStyle = null;
65
64
  this.startStyle = null;
66
65
  this.endStyle = null;
67
- this.cornerDefaultStyle = _constants.CORNER_DEFAULT_STYLE;
66
+ this.cornerDefaultStyle = {
67
+ width: '6px',
68
+ height: '6px',
69
+ borderWidth: '1px',
70
+ borderStyle: 'solid',
71
+ borderColor: '#FFF'
72
+ };
68
73
  // Offset to moving the corner to be centered relative to the grid.
69
74
  this.cornerCenterPointOffset = -(parseInt(this.cornerDefaultStyle.width, 10) / 2);
70
75
  this.corner = null;
@@ -293,7 +298,7 @@ var Border = /*#__PURE__*/function () {
293
298
  }, {
294
299
  key: "isPartRange",
295
300
  value: function isPartRange(row, col) {
296
- var areaSelection = this.wot.selectionManager.getAreaSelection();
301
+ var areaSelection = this.wot.selections.createOrGetArea();
297
302
  if (areaSelection.cellRange) {
298
303
  if (row !== areaSelection.cellRange.to.row || col !== areaSelection.cellRange.to.col) {
299
304
  return true;
@@ -25,11 +25,10 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
25
25
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
26
26
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27
27
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
28
- import { addClass, hasClass, removeClass, getComputedStyle, getTrimmingContainer, innerWidth, innerHeight, offset, outerHeight, outerWidth } from "../../../../../helpers/dom/element.mjs";
29
- import { stopImmediatePropagation } from "../../../../../helpers/dom/event.mjs";
30
- import { objectEach } from "../../../../../helpers/object.mjs";
31
- import { isMobileBrowser } from "../../../../../helpers/browser.mjs";
32
- import { CORNER_DEFAULT_STYLE } from "./constants.mjs";
28
+ import { addClass, hasClass, removeClass, getComputedStyle, getTrimmingContainer, innerWidth, innerHeight, offset, outerHeight, outerWidth } from "../../../helpers/dom/element.mjs";
29
+ import { stopImmediatePropagation } from "../../../helpers/dom/event.mjs";
30
+ import { objectEach } from "../../../helpers/object.mjs";
31
+ import { isMobileBrowser } from "../../../helpers/browser.mjs";
33
32
  /**
34
33
  *
35
34
  */
@@ -60,7 +59,13 @@ var Border = /*#__PURE__*/function () {
60
59
  this.bottomStyle = null;
61
60
  this.startStyle = null;
62
61
  this.endStyle = null;
63
- this.cornerDefaultStyle = CORNER_DEFAULT_STYLE;
62
+ this.cornerDefaultStyle = {
63
+ width: '6px',
64
+ height: '6px',
65
+ borderWidth: '1px',
66
+ borderStyle: 'solid',
67
+ borderColor: '#FFF'
68
+ };
64
69
  // Offset to moving the corner to be centered relative to the grid.
65
70
  this.cornerCenterPointOffset = -(parseInt(this.cornerDefaultStyle.width, 10) / 2);
66
71
  this.corner = null;
@@ -289,7 +294,7 @@ var Border = /*#__PURE__*/function () {
289
294
  }, {
290
295
  key: "isPartRange",
291
296
  value: function isPartRange(row, col) {
292
- var areaSelection = this.wot.selectionManager.getAreaSelection();
297
+ var areaSelection = this.wot.selections.createOrGetArea();
293
298
  if (areaSelection.cellRange) {
294
299
  if (row !== areaSelection.cellRange.to.row || col !== areaSelection.cellRange.to.col) {
295
300
  return true;
@@ -4,12 +4,7 @@ export default class CellCoords {
4
4
  row: number;
5
5
  col: number;
6
6
 
7
- isValid(tableParams: {
8
- countRows?: number;
9
- countCols?: number;
10
- countRowHeaders?: number;
11
- countColHeaders?: number;
12
- }): boolean;
7
+ isValid(wot: any): boolean;
13
8
  isEqual(cellCoords: CellCoords): boolean;
14
9
  isSouthEastOf(testedCoords: any): boolean;
15
10
  isNorthWestOf(testedCoords: any): boolean;
@@ -4,24 +4,16 @@ require("core-js/modules/es.symbol.to-primitive.js");
4
4
  require("core-js/modules/es.date.to-primitive.js");
5
5
  require("core-js/modules/es.symbol.js");
6
6
  require("core-js/modules/es.symbol.description.js");
7
- require("core-js/modules/es.object.keys.js");
8
- require("core-js/modules/es.array.filter.js");
9
- require("core-js/modules/es.object.get-own-property-descriptor.js");
10
- require("core-js/modules/web.dom-collections.for-each.js");
11
- require("core-js/modules/es.object.get-own-property-descriptors.js");
7
+ require("core-js/modules/es.number.constructor.js");
12
8
  require("core-js/modules/es.symbol.iterator.js");
13
9
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
14
10
  exports.__esModule = true;
15
11
  exports.default = void 0;
16
- require("core-js/modules/es.number.is-integer.js");
17
- require("core-js/modules/es.number.constructor.js");
18
12
  require("core-js/modules/es.array.iterator.js");
19
13
  require("core-js/modules/es.object.to-string.js");
20
14
  require("core-js/modules/es.string.iterator.js");
21
15
  require("core-js/modules/es.weak-map.js");
22
16
  require("core-js/modules/web.dom-collections.iterator.js");
23
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25
17
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
26
18
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
27
19
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -86,45 +78,28 @@ var CellCoords = /*#__PURE__*/function () {
86
78
 
87
79
  /**
88
80
  * Checks if the coordinates in your `CellCoords` instance are valid
89
- * in the context of a given table parameters.
81
+ * in the context of a given Walkontable instance.
90
82
  *
91
83
  * The `row` index:
92
- * - Cannot be a type other than Integer.
93
- * - Can't be lower than the number of column headers in the table.
94
- * - Can't be higher than the total number of rows in the table.
84
+ * - Can't be negative.
85
+ * - Can't be higher than the total number of rows in the Walkontable instance.
95
86
  *
96
87
  * The `col` index:
97
- * - Cannot be a type other than Integer.
98
- * - Can't be lower than the number of rows headers in the table.
99
- * - Can't be higher than the total number of columns in the table.
88
+ * - Can't be negative.
89
+ * - Can't be higher than the total number of columns in the Walkontable instance.
100
90
  *
101
- * @param {object} [tableParams] An object with defined table size.
102
- * @param {number} [tableParams.countRows=0] Total number of rows.
103
- * @param {number} [tableParams.countCols=0] Total number of columns.
104
- * @param {number} [tableParams.countRowHeaders=0] A number of row headers
105
- * @param {number} [tableParams.countColHeaders=0] A number of column headers
91
+ * @param {Walkontable} wot A Walkontable instance.
106
92
  * @returns {boolean} `true`: The coordinates are valid.
107
93
  */
108
94
  _createClass(CellCoords, [{
109
95
  key: "isValid",
110
- value: function isValid(tableParams) {
111
- var _countRows$countCols$ = _objectSpread({
112
- countRows: 0,
113
- countCols: 0,
114
- countRowHeaders: 0,
115
- countColHeaders: 0
116
- }, tableParams),
117
- countRows = _countRows$countCols$.countRows,
118
- countCols = _countRows$countCols$.countCols,
119
- countRowHeaders = _countRows$countCols$.countRowHeaders,
120
- countColHeaders = _countRows$countCols$.countColHeaders;
121
- if (!Number.isInteger(this.row) || !Number.isInteger(this.col)) {
96
+ value: function isValid(wot) {
97
+ // check if the row and column indexes are valid (0 or higher)
98
+ if (this.row < 0 || this.col < 0) {
122
99
  return false;
123
100
  }
124
- if (this.row < -countColHeaders || this.col < -countRowHeaders) {
125
- return false;
126
- }
127
- if (this.row >= countRows || this.col >= countCols) {
101
+ // check if the selection fits in the total of rows and columns
102
+ if (this.row >= wot.getSetting('totalRows') || this.col >= wot.getSetting('totalColumns')) {
128
103
  return false;
129
104
  }
130
105
  return true;
@@ -146,30 +121,6 @@ var CellCoords = /*#__PURE__*/function () {
146
121
  return this.row === cellCoords.row && this.col === cellCoords.col;
147
122
  }
148
123
 
149
- /**
150
- * Checks if the coordinates point to the headers range. If one of the axis (row or col) point to
151
- * the header (negative value) then method returns `true`.
152
- *
153
- * @returns {boolean}
154
- */
155
- }, {
156
- key: "isHeader",
157
- value: function isHeader() {
158
- return !this.isCell();
159
- }
160
-
161
- /**
162
- * Checks if the coordinates point to the cells range. If all axis (row and col) point to
163
- * the cell (positive value) then method returns `true`.
164
- *
165
- * @returns {boolean}
166
- */
167
- }, {
168
- key: "isCell",
169
- value: function isCell() {
170
- return this.row >= 0 && this.col >= 0;
171
- }
172
-
173
124
  /**
174
125
  * Checks if another set of coordinates (`testedCoords`)
175
126
  * is south-east of the coordinates in your `CellCoords` instance.
@@ -1,6 +1,4 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- import "core-js/modules/es.number.is-integer.js";
3
- import "core-js/modules/es.number.constructor.js";
4
2
  import "core-js/modules/es.array.iterator.js";
5
3
  import "core-js/modules/es.object.to-string.js";
6
4
  import "core-js/modules/es.string.iterator.js";
@@ -10,14 +8,8 @@ import "core-js/modules/es.symbol.to-primitive.js";
10
8
  import "core-js/modules/es.date.to-primitive.js";
11
9
  import "core-js/modules/es.symbol.js";
12
10
  import "core-js/modules/es.symbol.description.js";
13
- import "core-js/modules/es.object.keys.js";
14
- import "core-js/modules/es.array.filter.js";
15
- import "core-js/modules/es.object.get-own-property-descriptor.js";
16
- import "core-js/modules/web.dom-collections.for-each.js";
17
- import "core-js/modules/es.object.get-own-property-descriptors.js";
11
+ import "core-js/modules/es.number.constructor.js";
18
12
  import "core-js/modules/es.symbol.iterator.js";
19
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
22
14
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
23
15
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -82,45 +74,28 @@ var CellCoords = /*#__PURE__*/function () {
82
74
 
83
75
  /**
84
76
  * Checks if the coordinates in your `CellCoords` instance are valid
85
- * in the context of a given table parameters.
77
+ * in the context of a given Walkontable instance.
86
78
  *
87
79
  * The `row` index:
88
- * - Cannot be a type other than Integer.
89
- * - Can't be lower than the number of column headers in the table.
90
- * - Can't be higher than the total number of rows in the table.
80
+ * - Can't be negative.
81
+ * - Can't be higher than the total number of rows in the Walkontable instance.
91
82
  *
92
83
  * The `col` index:
93
- * - Cannot be a type other than Integer.
94
- * - Can't be lower than the number of rows headers in the table.
95
- * - Can't be higher than the total number of columns in the table.
84
+ * - Can't be negative.
85
+ * - Can't be higher than the total number of columns in the Walkontable instance.
96
86
  *
97
- * @param {object} [tableParams] An object with defined table size.
98
- * @param {number} [tableParams.countRows=0] Total number of rows.
99
- * @param {number} [tableParams.countCols=0] Total number of columns.
100
- * @param {number} [tableParams.countRowHeaders=0] A number of row headers
101
- * @param {number} [tableParams.countColHeaders=0] A number of column headers
87
+ * @param {Walkontable} wot A Walkontable instance.
102
88
  * @returns {boolean} `true`: The coordinates are valid.
103
89
  */
104
90
  _createClass(CellCoords, [{
105
91
  key: "isValid",
106
- value: function isValid(tableParams) {
107
- var _countRows$countCols$ = _objectSpread({
108
- countRows: 0,
109
- countCols: 0,
110
- countRowHeaders: 0,
111
- countColHeaders: 0
112
- }, tableParams),
113
- countRows = _countRows$countCols$.countRows,
114
- countCols = _countRows$countCols$.countCols,
115
- countRowHeaders = _countRows$countCols$.countRowHeaders,
116
- countColHeaders = _countRows$countCols$.countColHeaders;
117
- if (!Number.isInteger(this.row) || !Number.isInteger(this.col)) {
92
+ value: function isValid(wot) {
93
+ // check if the row and column indexes are valid (0 or higher)
94
+ if (this.row < 0 || this.col < 0) {
118
95
  return false;
119
96
  }
120
- if (this.row < -countColHeaders || this.col < -countRowHeaders) {
121
- return false;
122
- }
123
- if (this.row >= countRows || this.col >= countCols) {
97
+ // check if the selection fits in the total of rows and columns
98
+ if (this.row >= wot.getSetting('totalRows') || this.col >= wot.getSetting('totalColumns')) {
124
99
  return false;
125
100
  }
126
101
  return true;
@@ -142,30 +117,6 @@ var CellCoords = /*#__PURE__*/function () {
142
117
  return this.row === cellCoords.row && this.col === cellCoords.col;
143
118
  }
144
119
 
145
- /**
146
- * Checks if the coordinates point to the headers range. If one of the axis (row or col) point to
147
- * the header (negative value) then method returns `true`.
148
- *
149
- * @returns {boolean}
150
- */
151
- }, {
152
- key: "isHeader",
153
- value: function isHeader() {
154
- return !this.isCell();
155
- }
156
-
157
- /**
158
- * Checks if the coordinates point to the cells range. If all axis (row and col) point to
159
- * the cell (positive value) then method returns `true`.
160
- *
161
- * @returns {boolean}
162
- */
163
- }, {
164
- key: "isCell",
165
- value: function isCell() {
166
- return this.row >= 0 && this.col >= 0;
167
- }
168
-
169
120
  /**
170
121
  * Checks if another set of coordinates (`testedCoords`)
171
122
  * is south-east of the coordinates in your `CellCoords` instance.
@@ -12,15 +12,8 @@ export default class CellRange {
12
12
  setHighlight(coords: CellCoords): CellRange;
13
13
  setFrom(coords: CellCoords): CellRange;
14
14
  setTo(coords: CellCoords): CellRange;
15
- isValid(tableParams: {
16
- countRows?: number;
17
- countCols?: number;
18
- countRowHeaders?: number;
19
- countColHeaders?: number;
20
- }): boolean;
21
- isSingleCell(): boolean;
22
- isSingleHeader(): boolean;
23
- containsHeaders(): boolean;
15
+ isValid(wot: any): boolean;
16
+ isSingle(): boolean;
24
17
  getOuterHeight(): number;
25
18
  getOuterWidth(): number;
26
19
  getHeight(): number;
@@ -89,7 +89,7 @@ var CellRange = /*#__PURE__*/function () {
89
89
  writable: true,
90
90
  value: false
91
91
  });
92
- this.highlight = highlight.clone();
92
+ this.highlight = highlight.clone().normalize();
93
93
  this.from = from.clone();
94
94
  this.to = to.clone();
95
95
  _classPrivateFieldSet(this, _isRtl, isRtl);
@@ -104,7 +104,7 @@ var CellRange = /*#__PURE__*/function () {
104
104
  _createClass(CellRange, [{
105
105
  key: "setHighlight",
106
106
  value: function setHighlight(coords) {
107
- this.highlight = coords.clone();
107
+ this.highlight = coords.clone().normalize();
108
108
  return this;
109
109
  }
110
110
 
@@ -136,67 +136,30 @@ var CellRange = /*#__PURE__*/function () {
136
136
 
137
137
  /**
138
138
  * Checks if the coordinates in your `CellRange` instance are valid
139
- * in the context of a given table parameters.
139
+ * in the context of a given Walkontable instance.
140
140
  *
141
141
  * See the [`isValid()`](@/api/cellCoords.md#isvalid) method of the [`CellCoords`](@/api/cellCoords.md) class.
142
142
  *
143
- * @param {object} tableParams An object with defined table size.
144
- * @param {number} tableParams.countRows Total number of rows.
145
- * @param {number} tableParams.countCols Total number of columns.
146
- * @param {number} tableParams.countRowHeaders A number of row headers
147
- * @param {number} tableParams.countColHeaders A number of column headers
143
+ * @param {Walkontable} wot A Walkontable instance.
148
144
  * @returns {boolean}
149
145
  */
150
146
  }, {
151
147
  key: "isValid",
152
- value: function isValid(tableParams) {
153
- return this.from.isValid(tableParams) && this.to.isValid(tableParams);
148
+ value: function isValid(wot) {
149
+ return this.from.isValid(wot) && this.to.isValid(wot);
154
150
  }
155
151
 
156
152
  /**
157
- * Checks if your range is just a single cell or header.
153
+ * Checks if your range is just a single cell.
158
154
  *
159
155
  * @returns {boolean}
160
156
  */
161
157
  }, {
162
158
  key: "isSingle",
163
159
  value: function isSingle() {
164
- return this.isSingleCell() || this.isSingleHeader();
165
- }
166
-
167
- /**
168
- * Checks if your range is just a single cell.
169
- *
170
- * @returns {boolean}
171
- */
172
- }, {
173
- key: "isSingleCell",
174
- value: function isSingleCell() {
175
160
  return this.from.row >= 0 && this.from.row === this.to.row && this.from.col >= 0 && this.from.col === this.to.col;
176
161
  }
177
162
 
178
- /**
179
- * Checks if your range is just a single header.
180
- *
181
- * @returns {boolean}
182
- */
183
- }, {
184
- key: "isSingleHeader",
185
- value: function isSingleHeader() {
186
- return (this.from.row < 0 || this.from.col < 0) && this.from.row === this.to.row && this.from.col === this.to.col;
187
- }
188
-
189
- /**
190
- * Checks if your range overlaps headers range (negative coordinates).
191
- *
192
- * @returns {boolean}
193
- */
194
- }, {
195
- key: "containsHeaders",
196
- value: function containsHeaders() {
197
- return this.from.isHeader() || this.to.isHeader();
198
- }
199
-
200
163
  /**
201
164
  * Returns the height of your range (as a number of rows, including row headers).
202
165
  *
@@ -84,7 +84,7 @@ var CellRange = /*#__PURE__*/function () {
84
84
  writable: true,
85
85
  value: false
86
86
  });
87
- this.highlight = highlight.clone();
87
+ this.highlight = highlight.clone().normalize();
88
88
  this.from = from.clone();
89
89
  this.to = to.clone();
90
90
  _classPrivateFieldSet(this, _isRtl, isRtl);
@@ -99,7 +99,7 @@ var CellRange = /*#__PURE__*/function () {
99
99
  _createClass(CellRange, [{
100
100
  key: "setHighlight",
101
101
  value: function setHighlight(coords) {
102
- this.highlight = coords.clone();
102
+ this.highlight = coords.clone().normalize();
103
103
  return this;
104
104
  }
105
105
 
@@ -131,67 +131,30 @@ var CellRange = /*#__PURE__*/function () {
131
131
 
132
132
  /**
133
133
  * Checks if the coordinates in your `CellRange` instance are valid
134
- * in the context of a given table parameters.
134
+ * in the context of a given Walkontable instance.
135
135
  *
136
136
  * See the [`isValid()`](@/api/cellCoords.md#isvalid) method of the [`CellCoords`](@/api/cellCoords.md) class.
137
137
  *
138
- * @param {object} tableParams An object with defined table size.
139
- * @param {number} tableParams.countRows Total number of rows.
140
- * @param {number} tableParams.countCols Total number of columns.
141
- * @param {number} tableParams.countRowHeaders A number of row headers
142
- * @param {number} tableParams.countColHeaders A number of column headers
138
+ * @param {Walkontable} wot A Walkontable instance.
143
139
  * @returns {boolean}
144
140
  */
145
141
  }, {
146
142
  key: "isValid",
147
- value: function isValid(tableParams) {
148
- return this.from.isValid(tableParams) && this.to.isValid(tableParams);
143
+ value: function isValid(wot) {
144
+ return this.from.isValid(wot) && this.to.isValid(wot);
149
145
  }
150
146
 
151
147
  /**
152
- * Checks if your range is just a single cell or header.
148
+ * Checks if your range is just a single cell.
153
149
  *
154
150
  * @returns {boolean}
155
151
  */
156
152
  }, {
157
153
  key: "isSingle",
158
154
  value: function isSingle() {
159
- return this.isSingleCell() || this.isSingleHeader();
160
- }
161
-
162
- /**
163
- * Checks if your range is just a single cell.
164
- *
165
- * @returns {boolean}
166
- */
167
- }, {
168
- key: "isSingleCell",
169
- value: function isSingleCell() {
170
155
  return this.from.row >= 0 && this.from.row === this.to.row && this.from.col >= 0 && this.from.col === this.to.col;
171
156
  }
172
157
 
173
- /**
174
- * Checks if your range is just a single header.
175
- *
176
- * @returns {boolean}
177
- */
178
- }, {
179
- key: "isSingleHeader",
180
- value: function isSingleHeader() {
181
- return (this.from.row < 0 || this.from.col < 0) && this.from.row === this.to.row && this.from.col === this.to.col;
182
- }
183
-
184
- /**
185
- * Checks if your range overlaps headers range (negative coordinates).
186
- *
187
- * @returns {boolean}
188
- */
189
- }, {
190
- key: "containsHeaders",
191
- value: function containsHeaders() {
192
- return this.from.isHeader() || this.to.isHeader();
193
- }
194
-
195
158
  /**
196
159
  * Returns the height of your range (as a number of rows, including row headers).
197
160
  *
@@ -41,7 +41,7 @@ var CoreAbstract = /*#__PURE__*/function () {
41
41
  _defineProperty(this, "wtScroll", void 0);
42
42
  _defineProperty(this, "wtViewport", void 0);
43
43
  _defineProperty(this, "wtOverlays", void 0);
44
- _defineProperty(this, "selectionManager", void 0);
44
+ _defineProperty(this, "selections", void 0);
45
45
  _defineProperty(this, "wtEvent", void 0);
46
46
  /**
47
47
  * The walkontable instance id.
@@ -348,8 +348,8 @@ var CoreAbstract = /*#__PURE__*/function () {
348
348
  return wot.wtOverlays; // TODO refactoring: move outside dao, use IOC
349
349
  },
350
350
 
351
- get selectionManager() {
352
- return wot.selectionManager; // TODO refactoring: move outside dao, use IOC
351
+ get selections() {
352
+ return wot.selections; // TODO refactoring: move outside dao, use IOC
353
353
  },
354
354
 
355
355
  get drawn() {
@@ -398,12 +398,6 @@ var CoreAbstract = /*#__PURE__*/function () {
398
398
  },
399
399
  get countRowsVisible() {
400
400
  return wot.wtViewport.rowsVisibleCalculator.count;
401
- },
402
- get columnHeaders() {
403
- return wot.wtSettings.getSetting('columnHeaders');
404
- },
405
- get rowHeaders() {
406
- return wot.wtSettings.getSetting('rowHeaders');
407
401
  }
408
402
  };
409
403
  }
@@ -36,7 +36,7 @@ var CoreAbstract = /*#__PURE__*/function () {
36
36
  _defineProperty(this, "wtScroll", void 0);
37
37
  _defineProperty(this, "wtViewport", void 0);
38
38
  _defineProperty(this, "wtOverlays", void 0);
39
- _defineProperty(this, "selectionManager", void 0);
39
+ _defineProperty(this, "selections", void 0);
40
40
  _defineProperty(this, "wtEvent", void 0);
41
41
  /**
42
42
  * The walkontable instance id.
@@ -343,8 +343,8 @@ var CoreAbstract = /*#__PURE__*/function () {
343
343
  return wot.wtOverlays; // TODO refactoring: move outside dao, use IOC
344
344
  },
345
345
 
346
- get selectionManager() {
347
- return wot.selectionManager; // TODO refactoring: move outside dao, use IOC
346
+ get selections() {
347
+ return wot.selections; // TODO refactoring: move outside dao, use IOC
348
348
  },
349
349
 
350
350
  get drawn() {
@@ -393,12 +393,6 @@ var CoreAbstract = /*#__PURE__*/function () {
393
393
  },
394
394
  get countRowsVisible() {
395
395
  return wot.wtViewport.rowsVisibleCalculator.count;
396
- },
397
- get columnHeaders() {
398
- return wot.wtSettings.getSetting('columnHeaders');
399
- },
400
- get rowHeaders() {
401
- return wot.wtSettings.getSetting('rowHeaders');
402
396
  }
403
397
  };
404
398
  }
@@ -54,8 +54,8 @@ var Clone = /*#__PURE__*/function (_CoreAbstract) {
54
54
  _this.cloneOverlay = clone.overlay;
55
55
  _this.wtTable = _this.cloneOverlay.createTable(_this.getTableDao(), facadeGetter, _this.domBindings, _this.wtSettings);
56
56
  _this.wtViewport = clone.viewport;
57
- _this.selectionManager = clone.selectionManager;
58
- _this.wtEvent = new _event.default(facadeGetter, _this.domBindings, _this.wtSettings, _this.eventManager, _this.wtTable, _this.selectionManager, clone.event);
57
+ _this.selections = clone.selections;
58
+ _this.wtEvent = new _event.default(facadeGetter, _this.domBindings, _this.wtSettings, _this.eventManager, _this.wtTable, _this.selections, clone.event);
59
59
  _this.findOriginalHeaders();
60
60
  return _this;
61
61
  }
@@ -49,8 +49,8 @@ var Clone = /*#__PURE__*/function (_CoreAbstract) {
49
49
  _this.cloneOverlay = clone.overlay;
50
50
  _this.wtTable = _this.cloneOverlay.createTable(_this.getTableDao(), facadeGetter, _this.domBindings, _this.wtSettings);
51
51
  _this.wtViewport = clone.viewport;
52
- _this.selectionManager = clone.selectionManager;
53
- _this.wtEvent = new Event(facadeGetter, _this.domBindings, _this.wtSettings, _this.eventManager, _this.wtTable, _this.selectionManager, clone.event);
52
+ _this.selections = clone.selections;
53
+ _this.wtEvent = new Event(facadeGetter, _this.domBindings, _this.wtSettings, _this.eventManager, _this.wtTable, _this.selections, clone.event);
54
54
  _this.findOriginalHeaders();
55
55
  return _this;
56
56
  }
@@ -22,7 +22,6 @@ var _settings = _interopRequireDefault(require("../settings"));
22
22
  var _master = _interopRequireDefault(require("../table/master"));
23
23
  var _viewport = _interopRequireDefault(require("../viewport"));
24
24
  var _base = _interopRequireDefault(require("./_base"));
25
- var _manager = require("../selection/manager");
26
25
  var _object = require("../../../../helpers/object");
27
26
  var _element = require("../../../../helpers/dom/element");
28
27
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -56,8 +55,8 @@ var Walkontable = /*#__PURE__*/function (_CoreAbstract) {
56
55
 
57
56
  _this.wtTable = new _master.default(_this.getTableDao(), facadeGetter, _this.domBindings, _this.wtSettings);
58
57
  _this.wtViewport = new _viewport.default(_this.getViewportDao(), _this.domBindings, _this.wtSettings, _this.eventManager, _this.wtTable);
59
- _this.selectionManager = new _manager.SelectionManager(_this.wtSettings.getSetting('selections'));
60
- _this.wtEvent = new _event.default(facadeGetter, _this.domBindings, _this.wtSettings, _this.eventManager, _this.wtTable, _this.selectionManager);
58
+ _this.selections = _this.wtSettings.getSetting('selections');
59
+ _this.wtEvent = new _event.default(facadeGetter, _this.domBindings, _this.wtSettings, _this.eventManager, _this.wtTable, _this.selections);
61
60
  _this.wtOverlays = new _overlays.default( // TODO create DAO and remove reference to the Walkontable instance.
62
61
  _assertThisInitialized(_this), facadeGetter, _this.domBindings, _this.wtSettings, _this.eventManager, _this.wtTable);
63
62
  _this.exportSettingsAsClassNames();