handsontable 12.3.3 → 12.4.0-next-ddbea0c-20230512

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. package/3rdparty/walkontable/src/cell/coords.js +13 -16
  2. package/3rdparty/walkontable/src/cell/coords.mjs +13 -16
  3. package/3rdparty/walkontable/src/cell/range.js +25 -29
  4. package/3rdparty/walkontable/src/cell/range.mjs +24 -28
  5. package/3rdparty/walkontable/src/core/_base.js +16 -20
  6. package/3rdparty/walkontable/src/core/_base.mjs +16 -20
  7. package/3rdparty/walkontable/src/event.js +4 -0
  8. package/3rdparty/walkontable/src/event.mjs +4 -0
  9. package/3rdparty/walkontable/src/overlay/_base.js +6 -7
  10. package/3rdparty/walkontable/src/overlay/_base.mjs +6 -7
  11. package/3rdparty/walkontable/src/overlay/bottom.js +6 -7
  12. package/3rdparty/walkontable/src/overlay/bottom.mjs +6 -7
  13. package/3rdparty/walkontable/src/overlay/top.js +6 -7
  14. package/3rdparty/walkontable/src/overlay/top.mjs +6 -7
  15. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +10 -12
  16. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +10 -12
  17. package/3rdparty/walkontable/src/overlays.js +55 -64
  18. package/3rdparty/walkontable/src/overlays.mjs +55 -64
  19. package/3rdparty/walkontable/src/scroll.js +20 -23
  20. package/3rdparty/walkontable/src/scroll.mjs +20 -23
  21. package/3rdparty/walkontable/src/settings.js +13 -15
  22. package/3rdparty/walkontable/src/settings.mjs +13 -15
  23. package/3rdparty/walkontable/src/table.js +22 -26
  24. package/3rdparty/walkontable/src/table.mjs +22 -26
  25. package/CHANGELOG.md +14 -0
  26. package/base.js +2 -4
  27. package/base.mjs +2 -2
  28. package/core.js +23 -6
  29. package/core.mjs +23 -6
  30. package/dataMap/dataSource.js +5 -5
  31. package/dataMap/dataSource.mjs +5 -5
  32. package/dataMap/metaManager/metaSchema.js +9 -7
  33. package/dataMap/metaManager/metaSchema.mjs +9 -7
  34. package/dist/handsontable.css +2 -2
  35. package/dist/handsontable.full.css +2 -2
  36. package/dist/handsontable.full.js +7364 -5992
  37. package/dist/handsontable.full.min.css +2 -2
  38. package/dist/handsontable.full.min.js +256 -234
  39. package/dist/handsontable.js +4326 -3275
  40. package/dist/handsontable.min.css +2 -2
  41. package/dist/handsontable.min.js +11 -3
  42. package/dist/languages/all.js +133 -0
  43. package/dist/languages/ar-AR.js +7 -0
  44. package/dist/languages/cs-CZ.js +7 -0
  45. package/dist/languages/de-CH.js +7 -0
  46. package/dist/languages/de-DE.js +7 -0
  47. package/dist/languages/en-US.js +7 -0
  48. package/dist/languages/es-MX.js +7 -0
  49. package/dist/languages/fr-FR.js +7 -0
  50. package/dist/languages/it-IT.js +7 -0
  51. package/dist/languages/ja-JP.js +7 -0
  52. package/dist/languages/ko-KR.js +7 -0
  53. package/dist/languages/lv-LV.js +7 -0
  54. package/dist/languages/nb-NO.js +7 -0
  55. package/dist/languages/nl-NL.js +7 -0
  56. package/dist/languages/pl-PL.js +7 -0
  57. package/dist/languages/pt-BR.js +7 -0
  58. package/dist/languages/ru-RU.js +7 -0
  59. package/dist/languages/sr-SP.js +7 -0
  60. package/dist/languages/zh-CN.js +7 -0
  61. package/dist/languages/zh-TW.js +7 -0
  62. package/editors/autocompleteEditor/autocompleteEditor.js +8 -9
  63. package/editors/autocompleteEditor/autocompleteEditor.mjs +8 -9
  64. package/helpers/mixed.js +2 -2
  65. package/helpers/mixed.mjs +2 -2
  66. package/i18n/languages/ar-AR.js +7 -1
  67. package/i18n/languages/cs-CZ.js +7 -1
  68. package/i18n/languages/de-CH.js +7 -1
  69. package/i18n/languages/de-DE.js +7 -1
  70. package/i18n/languages/en-US.js +7 -1
  71. package/i18n/languages/es-MX.js +7 -1
  72. package/i18n/languages/fr-FR.js +7 -1
  73. package/i18n/languages/it-IT.js +7 -1
  74. package/i18n/languages/ja-JP.js +7 -1
  75. package/i18n/languages/ko-KR.js +7 -1
  76. package/i18n/languages/lv-LV.js +7 -1
  77. package/i18n/languages/nb-NO.js +7 -1
  78. package/i18n/languages/nl-NL.js +7 -1
  79. package/i18n/languages/pl-PL.js +7 -1
  80. package/i18n/languages/pt-BR.js +7 -1
  81. package/i18n/languages/ru-RU.js +7 -1
  82. package/i18n/languages/sr-SP.js +7 -1
  83. package/i18n/languages/zh-CN.js +7 -1
  84. package/i18n/languages/zh-TW.js +7 -1
  85. package/languages/all.js +133 -0
  86. package/languages/ar-AR.js +7 -0
  87. package/languages/cs-CZ.js +7 -0
  88. package/languages/de-CH.js +7 -0
  89. package/languages/de-DE.js +7 -0
  90. package/languages/en-US.js +7 -0
  91. package/languages/es-MX.js +7 -0
  92. package/languages/fr-FR.js +7 -0
  93. package/languages/index.js +133 -0
  94. package/languages/it-IT.js +7 -0
  95. package/languages/ja-JP.js +7 -0
  96. package/languages/ko-KR.js +7 -0
  97. package/languages/lv-LV.js +7 -0
  98. package/languages/nb-NO.js +7 -0
  99. package/languages/nl-NL.js +7 -0
  100. package/languages/pl-PL.js +7 -0
  101. package/languages/pt-BR.js +7 -0
  102. package/languages/ru-RU.js +7 -0
  103. package/languages/sr-SP.js +7 -0
  104. package/languages/zh-CN.js +7 -0
  105. package/languages/zh-TW.js +7 -0
  106. package/package.json +3 -2
  107. package/pluginHooks.js +16 -6
  108. package/pluginHooks.mjs +15 -3
  109. package/plugins/autoRowSize/autoRowSize.js +2 -2
  110. package/plugins/autoRowSize/autoRowSize.mjs +2 -2
  111. package/plugins/base/base.js +9 -10
  112. package/plugins/base/base.mjs +9 -10
  113. package/plugins/collapsibleColumns/collapsibleColumns.js +24 -7
  114. package/plugins/collapsibleColumns/collapsibleColumns.mjs +24 -7
  115. package/plugins/copyPaste/copyPaste.js +92 -16
  116. package/plugins/copyPaste/copyPaste.mjs +92 -16
  117. package/plugins/copyPaste/copyableRanges.js +39 -39
  118. package/plugins/copyPaste/copyableRanges.mjs +32 -32
  119. package/plugins/customBorders/customBorders.d.ts +2 -0
  120. package/plugins/customBorders/customBorders.js +6 -7
  121. package/plugins/customBorders/customBorders.mjs +6 -7
  122. package/plugins/filters/filters.js +5 -0
  123. package/plugins/filters/filters.mjs +5 -0
  124. package/plugins/formulas/engine/register.js +9 -0
  125. package/plugins/formulas/engine/register.mjs +13 -4
  126. package/plugins/formulas/engine/settings.js +18 -3
  127. package/plugins/formulas/engine/settings.mjs +16 -3
  128. package/plugins/formulas/formulas.js +308 -162
  129. package/plugins/formulas/formulas.mjs +308 -163
  130. package/plugins/formulas/indexSyncer/axisSyncer.js +379 -0
  131. package/plugins/formulas/indexSyncer/axisSyncer.mjs +374 -0
  132. package/plugins/formulas/indexSyncer/index.js +225 -0
  133. package/plugins/formulas/indexSyncer/index.mjs +219 -0
  134. package/plugins/formulas/utils.js +81 -0
  135. package/plugins/formulas/utils.mjs +74 -0
  136. package/plugins/hiddenColumns/hiddenColumns.js +12 -7
  137. package/plugins/hiddenColumns/hiddenColumns.mjs +12 -7
  138. package/plugins/hiddenRows/hiddenRows.js +12 -7
  139. package/plugins/hiddenRows/hiddenRows.mjs +12 -7
  140. package/plugins/manualRowMove/manualRowMove.js +26 -11
  141. package/plugins/manualRowMove/manualRowMove.mjs +27 -12
  142. package/plugins/nestedHeaders/nestedHeaders.js +26 -7
  143. package/plugins/nestedHeaders/nestedHeaders.mjs +26 -7
  144. package/plugins/nestedHeaders/stateManager/headersTree.js +23 -26
  145. package/plugins/nestedHeaders/stateManager/headersTree.mjs +20 -23
  146. package/plugins/nestedHeaders/stateManager/index.js +21 -3
  147. package/plugins/nestedHeaders/stateManager/index.mjs +18 -0
  148. package/plugins/nestedHeaders/stateManager/matrixGenerator.js +1 -0
  149. package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +1 -1
  150. package/plugins/nestedHeaders/stateManager/sourceSettings.js +19 -0
  151. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +19 -0
  152. package/plugins/nestedHeaders/utils/ghostTable.js +30 -35
  153. package/plugins/nestedHeaders/utils/ghostTable.mjs +30 -35
  154. package/plugins/registry.js +3 -1
  155. package/plugins/undoRedo/undoRedo.js +0 -1
  156. package/plugins/undoRedo/undoRedo.mjs +0 -1
  157. package/selection/highlight/visualSelection.js +5 -6
  158. package/selection/highlight/visualSelection.mjs +5 -6
  159. package/tableView.js +62 -72
  160. package/tableView.mjs +62 -72
  161. package/translations/changesObservable/observable.js +41 -46
  162. package/translations/changesObservable/observable.mjs +36 -41
  163. package/translations/changesObservable/observer.js +8 -1
  164. package/translations/changesObservable/observer.mjs +7 -0
  165. package/translations/indexMapper.js +21 -0
  166. package/translations/indexMapper.mjs +21 -0
  167. package/translations/maps/linkedPhysicalIndexToValueMap.js +6 -0
  168. package/translations/maps/linkedPhysicalIndexToValueMap.mjs +6 -0
  169. package/utils/dataStructures/tree.js +15 -18
  170. package/utils/dataStructures/tree.mjs +15 -18
  171. package/utils/parseTable.js +5 -1
  172. package/utils/parseTable.mjs +5 -1
@@ -47,27 +47,24 @@ var _isRtl = /*#__PURE__*/new WeakMap();
47
47
  * ```
48
48
  */
49
49
  var CellCoords = /*#__PURE__*/function () {
50
- /**
51
- * A visual row index.
52
- *
53
- * @type {number}
54
- */
55
-
56
- /**
57
- * A visual column index.
58
- *
59
- * @type {number}
60
- */
61
-
62
- /**
63
- * @type {boolean}
64
- */
65
-
66
50
  function CellCoords(row, column) {
67
51
  var isRtl = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
68
52
  _classCallCheck(this, CellCoords);
53
+ /**
54
+ * A visual row index.
55
+ *
56
+ * @type {number}
57
+ */
69
58
  _defineProperty(this, "row", null);
59
+ /**
60
+ * A visual column index.
61
+ *
62
+ * @type {number}
63
+ */
70
64
  _defineProperty(this, "col", null);
65
+ /**
66
+ * @type {boolean}
67
+ */
71
68
  _classPrivateFieldInitSpec(this, _isRtl, {
72
69
  writable: true,
73
70
  value: false
@@ -43,27 +43,24 @@ var _isRtl = /*#__PURE__*/new WeakMap();
43
43
  * ```
44
44
  */
45
45
  var CellCoords = /*#__PURE__*/function () {
46
- /**
47
- * A visual row index.
48
- *
49
- * @type {number}
50
- */
51
-
52
- /**
53
- * A visual column index.
54
- *
55
- * @type {number}
56
- */
57
-
58
- /**
59
- * @type {boolean}
60
- */
61
-
62
46
  function CellCoords(row, column) {
63
47
  var isRtl = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
64
48
  _classCallCheck(this, CellCoords);
49
+ /**
50
+ * A visual row index.
51
+ *
52
+ * @type {number}
53
+ */
65
54
  _defineProperty(this, "row", null);
55
+ /**
56
+ * A visual column index.
57
+ *
58
+ * @type {number}
59
+ */
66
60
  _defineProperty(this, "col", null);
61
+ /**
62
+ * @type {boolean}
63
+ */
67
64
  _classPrivateFieldInitSpec(this, _isRtl, {
68
65
  writable: true,
69
66
  value: false
@@ -32,7 +32,6 @@ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) {
32
32
  function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
33
33
  function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
34
34
  function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
35
- var _isRtl = /*#__PURE__*/new WeakMap();
36
35
  /* eslint-disable jsdoc/require-description-complete-sentence */
37
36
  /**
38
37
  * @description
@@ -52,43 +51,40 @@ var _isRtl = /*#__PURE__*/new WeakMap();
52
51
  * import Handsontable, { CellRange } from '/handsontable/base';
53
52
  * ```
54
53
  */
54
+ var _isRtl = /*#__PURE__*/new WeakMap();
55
55
  var CellRange = /*#__PURE__*/function () {
56
- /**
57
- * Used to draw bold border around a cell where selection was started and to edit the cell
58
- * when you press Enter. The highlight cannot point to headers (negative values) so its
59
- * coordinates object is normalized while assigning.
60
- *
61
- * @private
62
- * @type {CellCoords}
63
- */
64
-
65
- /**
66
- * Usually the same as highlight, but in Excel there is distinction - one can change
67
- * highlight within a selection.
68
- *
69
- * @private
70
- * @type {CellCoords}
71
- */
72
-
73
- /**
74
- * End selection.
75
- *
76
- * @private
77
- * @type {CellCoords}
78
- */
79
-
80
- /**
81
- * @type {boolean}
82
- */
83
-
84
56
  function CellRange(highlight) {
85
57
  var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : highlight;
86
58
  var to = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : highlight;
87
59
  var isRtl = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
88
60
  _classCallCheck(this, CellRange);
61
+ /**
62
+ * Used to draw bold border around a cell where selection was started and to edit the cell
63
+ * when you press Enter. The highlight cannot point to headers (negative values) so its
64
+ * coordinates object is normalized while assigning.
65
+ *
66
+ * @private
67
+ * @type {CellCoords}
68
+ */
89
69
  _defineProperty(this, "highlight", null);
70
+ /**
71
+ * Usually the same as highlight, but in Excel there is distinction - one can change
72
+ * highlight within a selection.
73
+ *
74
+ * @private
75
+ * @type {CellCoords}
76
+ */
90
77
  _defineProperty(this, "from", null);
78
+ /**
79
+ * End selection.
80
+ *
81
+ * @private
82
+ * @type {CellCoords}
83
+ */
91
84
  _defineProperty(this, "to", null);
85
+ /**
86
+ * @type {boolean}
87
+ */
92
88
  _classPrivateFieldInitSpec(this, _isRtl, {
93
89
  writable: true,
94
90
  value: false
@@ -48,42 +48,38 @@ import CellCoords from "./../cell/coords.mjs";
48
48
  */
49
49
  var _isRtl = /*#__PURE__*/new WeakMap();
50
50
  var CellRange = /*#__PURE__*/function () {
51
- /**
52
- * Used to draw bold border around a cell where selection was started and to edit the cell
53
- * when you press Enter. The highlight cannot point to headers (negative values) so its
54
- * coordinates object is normalized while assigning.
55
- *
56
- * @private
57
- * @type {CellCoords}
58
- */
59
-
60
- /**
61
- * Usually the same as highlight, but in Excel there is distinction - one can change
62
- * highlight within a selection.
63
- *
64
- * @private
65
- * @type {CellCoords}
66
- */
67
-
68
- /**
69
- * End selection.
70
- *
71
- * @private
72
- * @type {CellCoords}
73
- */
74
-
75
- /**
76
- * @type {boolean}
77
- */
78
-
79
51
  function CellRange(highlight) {
80
52
  var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : highlight;
81
53
  var to = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : highlight;
82
54
  var isRtl = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
83
55
  _classCallCheck(this, CellRange);
56
+ /**
57
+ * Used to draw bold border around a cell where selection was started and to edit the cell
58
+ * when you press Enter. The highlight cannot point to headers (negative values) so its
59
+ * coordinates object is normalized while assigning.
60
+ *
61
+ * @private
62
+ * @type {CellCoords}
63
+ */
84
64
  _defineProperty(this, "highlight", null);
65
+ /**
66
+ * Usually the same as highlight, but in Excel there is distinction - one can change
67
+ * highlight within a selection.
68
+ *
69
+ * @private
70
+ * @type {CellCoords}
71
+ */
85
72
  _defineProperty(this, "from", null);
73
+ /**
74
+ * End selection.
75
+ *
76
+ * @private
77
+ * @type {CellCoords}
78
+ */
86
79
  _defineProperty(this, "to", null);
80
+ /**
81
+ * @type {boolean}
82
+ */
87
83
  _classPrivateFieldInitSpec(this, _isRtl, {
88
84
  writable: true,
89
85
  value: false
@@ -43,44 +43,40 @@ var CoreAbstract = /*#__PURE__*/function () {
43
43
  _defineProperty(this, "wtOverlays", void 0);
44
44
  _defineProperty(this, "selections", void 0);
45
45
  _defineProperty(this, "wtEvent", void 0);
46
- _defineProperty(this, "guid", "wt_".concat((0, _string.randomString)()));
47
- _defineProperty(this, "drawInterrupted", false);
48
- _defineProperty(this, "drawn", false);
49
- _defineProperty(this, "domBindings", void 0);
50
- _defineProperty(this, "wtSettings", void 0);
51
- this.domBindings = {
52
- rootTable: table,
53
- rootDocument: table.ownerDocument,
54
- rootWindow: table.ownerDocument.defaultView
55
- };
56
- this.wtSettings = settings;
57
- this.wtScroll = new _scroll.default(this.createScrollDao());
58
- }
59
- _createClass(CoreAbstract, [{
60
- key: "eventManager",
61
- get:
62
46
  /**
63
47
  * The walkontable instance id.
64
48
  *
65
49
  * @public
66
50
  * @type {Readonly<string>}
67
51
  */
68
-
52
+ _defineProperty(this, "guid", "wt_".concat((0, _string.randomString)()));
53
+ _defineProperty(this, "drawInterrupted", false);
54
+ _defineProperty(this, "drawn", false);
69
55
  /**
70
56
  * The DOM bindings.
71
57
  *
72
58
  * @public
73
59
  * @type {DomBindings}
74
60
  */
75
-
61
+ _defineProperty(this, "domBindings", void 0);
76
62
  /**
77
63
  * Settings.
78
64
  *
79
65
  * @public
80
66
  * @type {Settings}
81
67
  */
82
-
83
- function get() {
68
+ _defineProperty(this, "wtSettings", void 0);
69
+ this.domBindings = {
70
+ rootTable: table,
71
+ rootDocument: table.ownerDocument,
72
+ rootWindow: table.ownerDocument.defaultView
73
+ };
74
+ this.wtSettings = settings;
75
+ this.wtScroll = new _scroll.default(this.createScrollDao());
76
+ }
77
+ _createClass(CoreAbstract, [{
78
+ key: "eventManager",
79
+ get: function get() {
84
80
  return new _eventManager.default(this);
85
81
  }
86
82
  }, {
@@ -38,44 +38,40 @@ var CoreAbstract = /*#__PURE__*/function () {
38
38
  _defineProperty(this, "wtOverlays", void 0);
39
39
  _defineProperty(this, "selections", void 0);
40
40
  _defineProperty(this, "wtEvent", void 0);
41
- _defineProperty(this, "guid", "wt_".concat(randomString()));
42
- _defineProperty(this, "drawInterrupted", false);
43
- _defineProperty(this, "drawn", false);
44
- _defineProperty(this, "domBindings", void 0);
45
- _defineProperty(this, "wtSettings", void 0);
46
- this.domBindings = {
47
- rootTable: table,
48
- rootDocument: table.ownerDocument,
49
- rootWindow: table.ownerDocument.defaultView
50
- };
51
- this.wtSettings = settings;
52
- this.wtScroll = new Scroll(this.createScrollDao());
53
- }
54
- _createClass(CoreAbstract, [{
55
- key: "eventManager",
56
- get:
57
41
  /**
58
42
  * The walkontable instance id.
59
43
  *
60
44
  * @public
61
45
  * @type {Readonly<string>}
62
46
  */
63
-
47
+ _defineProperty(this, "guid", "wt_".concat(randomString()));
48
+ _defineProperty(this, "drawInterrupted", false);
49
+ _defineProperty(this, "drawn", false);
64
50
  /**
65
51
  * The DOM bindings.
66
52
  *
67
53
  * @public
68
54
  * @type {DomBindings}
69
55
  */
70
-
56
+ _defineProperty(this, "domBindings", void 0);
71
57
  /**
72
58
  * Settings.
73
59
  *
74
60
  * @public
75
61
  * @type {Settings}
76
62
  */
77
-
78
- function get() {
63
+ _defineProperty(this, "wtSettings", void 0);
64
+ this.domBindings = {
65
+ rootTable: table,
66
+ rootDocument: table.ownerDocument,
67
+ rootWindow: table.ownerDocument.defaultView
68
+ };
69
+ this.wtSettings = settings;
70
+ this.wtScroll = new Scroll(this.createScrollDao());
71
+ }
72
+ _createClass(CoreAbstract, [{
73
+ key: "eventManager",
74
+ get: function get() {
79
75
  return new EventManager(this);
80
76
  }
81
77
  }, {
@@ -279,8 +279,12 @@ var Event = /*#__PURE__*/function () {
279
279
  var table = this.wtTable.TABLE;
280
280
  var lastTD = (0, _element.closestDown)(event.target, ['TD', 'TH'], table);
281
281
  var nextTD = (0, _element.closestDown)(event.relatedTarget, ['TD', 'TH'], table);
282
+ var parent = this.parent || this;
282
283
  if (lastTD && lastTD !== nextTD && (0, _element.isChildOf)(lastTD, table)) {
283
284
  this.callListener('onCellMouseOut', event, this.wtTable.getCoords(lastTD), lastTD);
285
+ if (nextTD === null) {
286
+ parent.lastMouseOver = null;
287
+ }
284
288
  }
285
289
  }
286
290
 
@@ -275,8 +275,12 @@ var Event = /*#__PURE__*/function () {
275
275
  var table = this.wtTable.TABLE;
276
276
  var lastTD = closestDown(event.target, ['TD', 'TH'], table);
277
277
  var nextTD = closestDown(event.relatedTarget, ['TD', 'TH'], table);
278
+ var parent = this.parent || this;
278
279
  if (lastTD && lastTD !== nextTD && isChildOf(lastTD, table)) {
279
280
  this.callListener('onCellMouseOut', event, this.wtTable.getCoords(lastTD), lastTD);
281
+ if (nextTD === null) {
282
+ parent.lastMouseOver = null;
283
+ }
280
284
  }
281
285
  }
282
286
 
@@ -36,13 +36,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
36
36
  * @property {Walkontable} wot The Walkontable instance.
37
37
  */
38
38
  var Overlay = /*#__PURE__*/function () {
39
- /**
40
- * The Walkontable settings.
41
- *
42
- * @private
43
- * @type {Settings}
44
- */
45
-
46
39
  /**
47
40
  * @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
48
41
  * @param {FacadeGetter} facadeGetter Function which return proper facade.
@@ -52,6 +45,12 @@ var Overlay = /*#__PURE__*/function () {
52
45
  */
53
46
  function Overlay(wotInstance, facadeGetter, type, wtSettings, domBindings) {
54
47
  _classCallCheck(this, Overlay);
48
+ /**
49
+ * The Walkontable settings.
50
+ *
51
+ * @private
52
+ * @type {Settings}
53
+ */
55
54
  _defineProperty(this, "wtSettings", null);
56
55
  (0, _object.defineGetter)(this, 'wot', wotInstance, {
57
56
  writable: false
@@ -31,13 +31,6 @@ import Clone from "../core/clone.mjs";
31
31
  * @property {Walkontable} wot The Walkontable instance.
32
32
  */
33
33
  export var Overlay = /*#__PURE__*/function () {
34
- /**
35
- * The Walkontable settings.
36
- *
37
- * @private
38
- * @type {Settings}
39
- */
40
-
41
34
  /**
42
35
  * @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
43
36
  * @param {FacadeGetter} facadeGetter Function which return proper facade.
@@ -47,6 +40,12 @@ export var Overlay = /*#__PURE__*/function () {
47
40
  */
48
41
  function Overlay(wotInstance, facadeGetter, type, wtSettings, domBindings) {
49
42
  _classCallCheck(this, Overlay);
43
+ /**
44
+ * The Walkontable settings.
45
+ *
46
+ * @private
47
+ * @type {Settings}
48
+ */
50
49
  _defineProperty(this, "wtSettings", null);
51
50
  defineGetter(this, 'wot', wotInstance, {
52
51
  writable: false
@@ -41,13 +41,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
41
41
  var BottomOverlay = /*#__PURE__*/function (_Overlay) {
42
42
  _inherits(BottomOverlay, _Overlay);
43
43
  var _super = _createSuper(BottomOverlay);
44
- /**
45
- * Cached value which holds the previous value of the `fixedRowsBottom` option.
46
- * It is used as a comparison value that can be used to detect changes in that value.
47
- *
48
- * @type {number}
49
- */
50
-
51
44
  /**
52
45
  * @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
53
46
  * @param {FacadeGetter} facadeGetter Function which return proper facade.
@@ -58,6 +51,12 @@ var BottomOverlay = /*#__PURE__*/function (_Overlay) {
58
51
  var _this;
59
52
  _classCallCheck(this, BottomOverlay);
60
53
  _this = _super.call(this, wotInstance, facadeGetter, _constants.CLONE_BOTTOM, wtSettings, domBindings);
54
+ /**
55
+ * Cached value which holds the previous value of the `fixedRowsBottom` option.
56
+ * It is used as a comparison value that can be used to detect changes in that value.
57
+ *
58
+ * @type {number}
59
+ */
61
60
  _defineProperty(_assertThisInitialized(_this), "cachedFixedRowsBottom", -1);
62
61
  _this.cachedFixedRowsBottom = _this.wtSettings.getSetting('fixedRowsBottom');
63
62
  return _this;
@@ -36,13 +36,6 @@ import { CLONE_BOTTOM } from "./constants.mjs";
36
36
  export var BottomOverlay = /*#__PURE__*/function (_Overlay) {
37
37
  _inherits(BottomOverlay, _Overlay);
38
38
  var _super = _createSuper(BottomOverlay);
39
- /**
40
- * Cached value which holds the previous value of the `fixedRowsBottom` option.
41
- * It is used as a comparison value that can be used to detect changes in that value.
42
- *
43
- * @type {number}
44
- */
45
-
46
39
  /**
47
40
  * @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
48
41
  * @param {FacadeGetter} facadeGetter Function which return proper facade.
@@ -53,6 +46,12 @@ export var BottomOverlay = /*#__PURE__*/function (_Overlay) {
53
46
  var _this;
54
47
  _classCallCheck(this, BottomOverlay);
55
48
  _this = _super.call(this, wotInstance, facadeGetter, CLONE_BOTTOM, wtSettings, domBindings);
49
+ /**
50
+ * Cached value which holds the previous value of the `fixedRowsBottom` option.
51
+ * It is used as a comparison value that can be used to detect changes in that value.
52
+ *
53
+ * @type {number}
54
+ */
56
55
  _defineProperty(_assertThisInitialized(_this), "cachedFixedRowsBottom", -1);
57
56
  _this.cachedFixedRowsBottom = _this.wtSettings.getSetting('fixedRowsBottom');
58
57
  return _this;
@@ -41,13 +41,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
41
41
  var TopOverlay = /*#__PURE__*/function (_Overlay) {
42
42
  _inherits(TopOverlay, _Overlay);
43
43
  var _super = _createSuper(TopOverlay);
44
- /**
45
- * Cached value which holds the previous value of the `fixedRowsTop` option.
46
- * It is used as a comparison value that can be used to detect changes in this value.
47
- *
48
- * @type {number}
49
- */
50
-
51
44
  /**
52
45
  * @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
53
46
  * @param {FacadeGetter} facadeGetter Function which return proper facade.
@@ -58,6 +51,12 @@ var TopOverlay = /*#__PURE__*/function (_Overlay) {
58
51
  var _this;
59
52
  _classCallCheck(this, TopOverlay);
60
53
  _this = _super.call(this, wotInstance, facadeGetter, _constants.CLONE_TOP, wtSettings, domBindings);
54
+ /**
55
+ * Cached value which holds the previous value of the `fixedRowsTop` option.
56
+ * It is used as a comparison value that can be used to detect changes in this value.
57
+ *
58
+ * @type {number}
59
+ */
61
60
  _defineProperty(_assertThisInitialized(_this), "cachedFixedRowsTop", -1);
62
61
  _this.cachedFixedRowsTop = _this.wtSettings.getSetting('fixedRowsTop');
63
62
  return _this;
@@ -36,13 +36,6 @@ import { CLONE_TOP } from "./constants.mjs";
36
36
  export var TopOverlay = /*#__PURE__*/function (_Overlay) {
37
37
  _inherits(TopOverlay, _Overlay);
38
38
  var _super = _createSuper(TopOverlay);
39
- /**
40
- * Cached value which holds the previous value of the `fixedRowsTop` option.
41
- * It is used as a comparison value that can be used to detect changes in this value.
42
- *
43
- * @type {number}
44
- */
45
-
46
39
  /**
47
40
  * @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
48
41
  * @param {FacadeGetter} facadeGetter Function which return proper facade.
@@ -53,6 +46,12 @@ export var TopOverlay = /*#__PURE__*/function (_Overlay) {
53
46
  var _this;
54
47
  _classCallCheck(this, TopOverlay);
55
48
  _this = _super.call(this, wotInstance, facadeGetter, CLONE_TOP, wtSettings, domBindings);
49
+ /**
50
+ * Cached value which holds the previous value of the `fixedRowsTop` option.
51
+ * It is used as a comparison value that can be used to detect changes in this value.
52
+ *
53
+ * @type {number}
54
+ */
56
55
  _defineProperty(_assertThisInitialized(_this), "cachedFixedRowsTop", -1);
57
56
  _this.cachedFixedRowsTop = _this.wtSettings.getSetting('fixedRowsTop');
58
57
  return _this;
@@ -41,18 +41,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
41
41
  var TopInlineStartCornerOverlay = /*#__PURE__*/function (_Overlay) {
42
42
  _inherits(TopInlineStartCornerOverlay, _Overlay);
43
43
  var _super = _createSuper(TopInlineStartCornerOverlay);
44
- /**
45
- * The instance of the Top overlay.
46
- *
47
- * @type {TopOverlay}
48
- */
49
-
50
- /**
51
- * The instance of the InlineStart overlay.
52
- *
53
- * @type {InlineStartOverlay}
54
- */
55
-
56
44
  /**
57
45
  * @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
58
46
  * @param {FacadeGetter} facadeGetter Function which return proper facade.
@@ -65,7 +53,17 @@ var TopInlineStartCornerOverlay = /*#__PURE__*/function (_Overlay) {
65
53
  var _this;
66
54
  _classCallCheck(this, TopInlineStartCornerOverlay);
67
55
  _this = _super.call(this, wotInstance, facadeGetter, _constants.CLONE_TOP_INLINE_START_CORNER, wtSettings, domBindings);
56
+ /**
57
+ * The instance of the Top overlay.
58
+ *
59
+ * @type {TopOverlay}
60
+ */
68
61
  _defineProperty(_assertThisInitialized(_this), "topOverlay", void 0);
62
+ /**
63
+ * The instance of the InlineStart overlay.
64
+ *
65
+ * @type {InlineStartOverlay}
66
+ */
69
67
  _defineProperty(_assertThisInitialized(_this), "inlineStartOverlay", void 0);
70
68
  _this.topOverlay = topOverlay;
71
69
  _this.inlineStartOverlay = inlineStartOverlay;
@@ -36,18 +36,6 @@ import { CLONE_TOP_INLINE_START_CORNER } from "./constants.mjs";
36
36
  export var TopInlineStartCornerOverlay = /*#__PURE__*/function (_Overlay) {
37
37
  _inherits(TopInlineStartCornerOverlay, _Overlay);
38
38
  var _super = _createSuper(TopInlineStartCornerOverlay);
39
- /**
40
- * The instance of the Top overlay.
41
- *
42
- * @type {TopOverlay}
43
- */
44
-
45
- /**
46
- * The instance of the InlineStart overlay.
47
- *
48
- * @type {InlineStartOverlay}
49
- */
50
-
51
39
  /**
52
40
  * @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
53
41
  * @param {FacadeGetter} facadeGetter Function which return proper facade.
@@ -60,7 +48,17 @@ export var TopInlineStartCornerOverlay = /*#__PURE__*/function (_Overlay) {
60
48
  var _this;
61
49
  _classCallCheck(this, TopInlineStartCornerOverlay);
62
50
  _this = _super.call(this, wotInstance, facadeGetter, CLONE_TOP_INLINE_START_CORNER, wtSettings, domBindings);
51
+ /**
52
+ * The instance of the Top overlay.
53
+ *
54
+ * @type {TopOverlay}
55
+ */
63
56
  _defineProperty(_assertThisInitialized(_this), "topOverlay", void 0);
57
+ /**
58
+ * The instance of the InlineStart overlay.
59
+ *
60
+ * @type {InlineStartOverlay}
61
+ */
64
62
  _defineProperty(_assertThisInitialized(_this), "inlineStartOverlay", void 0);
65
63
  _this.topOverlay = topOverlay;
66
64
  _this.inlineStartOverlay = inlineStartOverlay;