handsontable 12.3.3-next-e19badf-20230328 → 12.4.0-next-ddbea0c-20230512

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.
Files changed (148) 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/event.js +4 -0
  6. package/3rdparty/walkontable/src/event.mjs +4 -0
  7. package/3rdparty/walkontable/src/overlay/_base.js +6 -7
  8. package/3rdparty/walkontable/src/overlay/_base.mjs +6 -7
  9. package/3rdparty/walkontable/src/overlay/bottom.js +6 -7
  10. package/3rdparty/walkontable/src/overlay/bottom.mjs +6 -7
  11. package/3rdparty/walkontable/src/overlay/top.js +6 -7
  12. package/3rdparty/walkontable/src/overlay/top.mjs +6 -7
  13. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +10 -12
  14. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +10 -12
  15. package/3rdparty/walkontable/src/overlays.js +55 -64
  16. package/3rdparty/walkontable/src/overlays.mjs +55 -64
  17. package/3rdparty/walkontable/src/scroll.js +20 -23
  18. package/3rdparty/walkontable/src/scroll.mjs +20 -23
  19. package/3rdparty/walkontable/src/settings.js +13 -15
  20. package/3rdparty/walkontable/src/settings.mjs +13 -15
  21. package/3rdparty/walkontable/src/table.js +22 -26
  22. package/3rdparty/walkontable/src/table.mjs +22 -26
  23. package/CHANGELOG.md +14 -0
  24. package/base.js +2 -4
  25. package/base.mjs +2 -2
  26. package/core.js +23 -6
  27. package/core.mjs +23 -6
  28. package/dataMap/dataSource.js +5 -5
  29. package/dataMap/dataSource.mjs +5 -5
  30. package/dataMap/metaManager/metaSchema.js +9 -7
  31. package/dataMap/metaManager/metaSchema.mjs +9 -7
  32. package/dist/handsontable.css +2 -2
  33. package/dist/handsontable.full.css +2 -2
  34. package/dist/handsontable.full.js +5047 -4193
  35. package/dist/handsontable.full.min.css +2 -2
  36. package/dist/handsontable.full.min.js +86 -78
  37. package/dist/handsontable.js +4023 -3170
  38. package/dist/handsontable.min.css +2 -2
  39. package/dist/handsontable.min.js +11 -3
  40. package/dist/languages/all.js +133 -0
  41. package/dist/languages/ar-AR.js +7 -0
  42. package/dist/languages/cs-CZ.js +7 -0
  43. package/dist/languages/de-CH.js +7 -0
  44. package/dist/languages/de-DE.js +7 -0
  45. package/dist/languages/en-US.js +7 -0
  46. package/dist/languages/es-MX.js +7 -0
  47. package/dist/languages/fr-FR.js +7 -0
  48. package/dist/languages/it-IT.js +7 -0
  49. package/dist/languages/ja-JP.js +7 -0
  50. package/dist/languages/ko-KR.js +7 -0
  51. package/dist/languages/lv-LV.js +7 -0
  52. package/dist/languages/nb-NO.js +7 -0
  53. package/dist/languages/nl-NL.js +7 -0
  54. package/dist/languages/pl-PL.js +7 -0
  55. package/dist/languages/pt-BR.js +7 -0
  56. package/dist/languages/ru-RU.js +7 -0
  57. package/dist/languages/sr-SP.js +7 -0
  58. package/dist/languages/zh-CN.js +7 -0
  59. package/dist/languages/zh-TW.js +7 -0
  60. package/helpers/mixed.js +2 -2
  61. package/helpers/mixed.mjs +2 -2
  62. package/i18n/languages/ar-AR.js +7 -1
  63. package/i18n/languages/cs-CZ.js +7 -1
  64. package/i18n/languages/de-CH.js +7 -1
  65. package/i18n/languages/de-DE.js +7 -1
  66. package/i18n/languages/en-US.js +7 -1
  67. package/i18n/languages/es-MX.js +7 -1
  68. package/i18n/languages/fr-FR.js +7 -1
  69. package/i18n/languages/it-IT.js +7 -1
  70. package/i18n/languages/ja-JP.js +7 -1
  71. package/i18n/languages/ko-KR.js +7 -1
  72. package/i18n/languages/lv-LV.js +7 -1
  73. package/i18n/languages/nb-NO.js +7 -1
  74. package/i18n/languages/nl-NL.js +7 -1
  75. package/i18n/languages/pl-PL.js +7 -1
  76. package/i18n/languages/pt-BR.js +7 -1
  77. package/i18n/languages/ru-RU.js +7 -1
  78. package/i18n/languages/sr-SP.js +7 -1
  79. package/i18n/languages/zh-CN.js +7 -1
  80. package/i18n/languages/zh-TW.js +7 -1
  81. package/languages/all.js +133 -0
  82. package/languages/ar-AR.js +7 -0
  83. package/languages/cs-CZ.js +7 -0
  84. package/languages/de-CH.js +7 -0
  85. package/languages/de-DE.js +7 -0
  86. package/languages/en-US.js +7 -0
  87. package/languages/es-MX.js +7 -0
  88. package/languages/fr-FR.js +7 -0
  89. package/languages/index.js +133 -0
  90. package/languages/it-IT.js +7 -0
  91. package/languages/ja-JP.js +7 -0
  92. package/languages/ko-KR.js +7 -0
  93. package/languages/lv-LV.js +7 -0
  94. package/languages/nb-NO.js +7 -0
  95. package/languages/nl-NL.js +7 -0
  96. package/languages/pl-PL.js +7 -0
  97. package/languages/pt-BR.js +7 -0
  98. package/languages/ru-RU.js +7 -0
  99. package/languages/sr-SP.js +7 -0
  100. package/languages/zh-CN.js +7 -0
  101. package/languages/zh-TW.js +7 -0
  102. package/package.json +3 -2
  103. package/pluginHooks.js +16 -6
  104. package/pluginHooks.mjs +15 -3
  105. package/plugins/autoRowSize/autoRowSize.js +2 -2
  106. package/plugins/autoRowSize/autoRowSize.mjs +2 -2
  107. package/plugins/copyPaste/copyableRanges.js +25 -31
  108. package/plugins/copyPaste/copyableRanges.mjs +18 -24
  109. package/plugins/customBorders/customBorders.d.ts +2 -0
  110. package/plugins/filters/filters.js +5 -0
  111. package/plugins/filters/filters.mjs +5 -0
  112. package/plugins/formulas/engine/register.js +9 -0
  113. package/plugins/formulas/engine/register.mjs +13 -4
  114. package/plugins/formulas/engine/settings.js +18 -3
  115. package/plugins/formulas/engine/settings.mjs +16 -3
  116. package/plugins/formulas/formulas.js +274 -155
  117. package/plugins/formulas/formulas.mjs +274 -156
  118. package/plugins/formulas/indexSyncer/axisSyncer.js +379 -0
  119. package/plugins/formulas/indexSyncer/axisSyncer.mjs +374 -0
  120. package/plugins/formulas/indexSyncer/index.js +225 -0
  121. package/plugins/formulas/indexSyncer/index.mjs +219 -0
  122. package/plugins/formulas/utils.js +81 -0
  123. package/plugins/formulas/utils.mjs +74 -0
  124. package/plugins/manualRowMove/manualRowMove.js +26 -11
  125. package/plugins/manualRowMove/manualRowMove.mjs +27 -12
  126. package/plugins/nestedHeaders/stateManager/headersTree.js +23 -26
  127. package/plugins/nestedHeaders/stateManager/headersTree.mjs +20 -23
  128. package/plugins/nestedHeaders/stateManager/index.js +3 -3
  129. package/plugins/nestedHeaders/stateManager/matrixGenerator.js +1 -0
  130. package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +1 -1
  131. package/plugins/nestedHeaders/utils/ghostTable.js +30 -35
  132. package/plugins/nestedHeaders/utils/ghostTable.mjs +30 -35
  133. package/plugins/registry.js +3 -1
  134. package/plugins/undoRedo/undoRedo.js +0 -1
  135. package/plugins/undoRedo/undoRedo.mjs +0 -1
  136. package/selection/highlight/visualSelection.js +5 -6
  137. package/selection/highlight/visualSelection.mjs +5 -6
  138. package/tableView.js +62 -72
  139. package/tableView.mjs +62 -72
  140. package/translations/changesObservable/observable.js +41 -46
  141. package/translations/changesObservable/observable.mjs +36 -41
  142. package/translations/changesObservable/observer.js +1 -1
  143. package/translations/indexMapper.js +21 -0
  144. package/translations/indexMapper.mjs +21 -0
  145. package/utils/dataStructures/tree.js +15 -18
  146. package/utils/dataStructures/tree.mjs +15 -18
  147. package/utils/parseTable.js +5 -1
  148. 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
@@ -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;
@@ -37,70 +37,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
37
37
  * @class Overlays
38
38
  */
39
39
  var Overlays = /*#__PURE__*/function () {
40
- /**
41
- * Walkontable instance's reference.
42
- *
43
- * @protected
44
- * @type {Walkontable}
45
- */
46
-
47
- /**
48
- * Refer to the TopOverlay instance.
49
- *
50
- * @protected
51
- * @type {TopOverlay}
52
- */
53
-
54
- /**
55
- * Refer to the BottomOverlay instance.
56
- *
57
- * @protected
58
- * @type {BottomOverlay}
59
- */
60
-
61
- /**
62
- * Refer to the InlineStartOverlay or instance.
63
- *
64
- * @protected
65
- * @type {InlineStartOverlay}
66
- */
67
-
68
- /**
69
- * Refer to the TopInlineStartCornerOverlay instance.
70
- *
71
- * @protected
72
- * @type {TopInlineStartCornerOverlay}
73
- */
74
-
75
- /**
76
- * Refer to the BottomInlineStartCornerOverlay instance.
77
- *
78
- * @protected
79
- * @type {BottomInlineStartCornerOverlay}
80
- */
81
-
82
- /**
83
- * Browser line height for purposes of translating mouse wheel.
84
- *
85
- * @private
86
- * @type {number}
87
- */
88
-
89
- /**
90
- * The walkontable settings.
91
- *
92
- * @protected
93
- * @type {Settings}
94
- */
95
-
96
- /**
97
- * The instance of the ResizeObserver that observes the size of the Walkontable wrapper element.
98
- * In case of the size change detection the `onContainerElementResize` is fired.
99
- *
100
- * @private
101
- * @type {ResizeObserver}
102
- */
103
-
104
40
  /**
105
41
  * @param {Walkontable} wotInstance The Walkontable instance. @todo refactoring remove.
106
42
  * @param {FacadeGetter} facadeGetter Function which return proper facade.
@@ -112,14 +48,69 @@ var Overlays = /*#__PURE__*/function () {
112
48
  function Overlays(wotInstance, facadeGetter, domBindings, wtSettings, eventManager, wtTable) {
113
49
  var _this = this;
114
50
  _classCallCheck(this, Overlays);
51
+ /**
52
+ * Walkontable instance's reference.
53
+ *
54
+ * @protected
55
+ * @type {Walkontable}
56
+ */
115
57
  _defineProperty(this, "wot", null);
58
+ /**
59
+ * Refer to the TopOverlay instance.
60
+ *
61
+ * @protected
62
+ * @type {TopOverlay}
63
+ */
116
64
  _defineProperty(this, "topOverlay", null);
65
+ /**
66
+ * Refer to the BottomOverlay instance.
67
+ *
68
+ * @protected
69
+ * @type {BottomOverlay}
70
+ */
117
71
  _defineProperty(this, "bottomOverlay", null);
72
+ /**
73
+ * Refer to the InlineStartOverlay or instance.
74
+ *
75
+ * @protected
76
+ * @type {InlineStartOverlay}
77
+ */
118
78
  _defineProperty(this, "inlineStartOverlay", null);
79
+ /**
80
+ * Refer to the TopInlineStartCornerOverlay instance.
81
+ *
82
+ * @protected
83
+ * @type {TopInlineStartCornerOverlay}
84
+ */
119
85
  _defineProperty(this, "topInlineStartCornerOverlay", null);
86
+ /**
87
+ * Refer to the BottomInlineStartCornerOverlay instance.
88
+ *
89
+ * @protected
90
+ * @type {BottomInlineStartCornerOverlay}
91
+ */
120
92
  _defineProperty(this, "bottomInlineStartCornerOverlay", null);
93
+ /**
94
+ * Browser line height for purposes of translating mouse wheel.
95
+ *
96
+ * @private
97
+ * @type {number}
98
+ */
121
99
  _defineProperty(this, "browserLineHeight", undefined);
100
+ /**
101
+ * The walkontable settings.
102
+ *
103
+ * @protected
104
+ * @type {Settings}
105
+ */
122
106
  _defineProperty(this, "wtSettings", null);
107
+ /**
108
+ * The instance of the ResizeObserver that observes the size of the Walkontable wrapper element.
109
+ * In case of the size change detection the `onContainerElementResize` is fired.
110
+ *
111
+ * @private
112
+ * @type {ResizeObserver}
113
+ */
123
114
  _defineProperty(this, "resizeObserver", new ResizeObserver(function (entries) {
124
115
  (0, _feature.requestAnimationFrame)(function () {
125
116
  if (!Array.isArray(entries) || !entries.length) {