handsontable 0.0.0-next-48677e7-20230509 → 0.0.0-next-834f47e-20230509

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 (227) 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.js +13 -40
  4. package/3rdparty/walkontable/src/cell/coords.mjs +13 -40
  5. package/3rdparty/walkontable/src/cell/range.js +25 -29
  6. package/3rdparty/walkontable/src/cell/range.mjs +24 -28
  7. package/3rdparty/walkontable/src/core/_base.js +3 -9
  8. package/3rdparty/walkontable/src/core/_base.mjs +3 -9
  9. package/3rdparty/walkontable/src/core/clone.js +2 -2
  10. package/3rdparty/walkontable/src/core/clone.mjs +2 -2
  11. package/3rdparty/walkontable/src/core/core.js +2 -3
  12. package/3rdparty/walkontable/src/core/core.mjs +2 -3
  13. package/3rdparty/walkontable/src/event.js +10 -12
  14. package/3rdparty/walkontable/src/event.mjs +10 -12
  15. package/3rdparty/walkontable/src/facade/core.js +2 -2
  16. package/3rdparty/walkontable/src/facade/core.mjs +2 -2
  17. package/3rdparty/walkontable/src/index.js +2 -10
  18. package/3rdparty/walkontable/src/index.mjs +2 -2
  19. package/3rdparty/walkontable/src/overlay/_base.js +7 -8
  20. package/3rdparty/walkontable/src/overlay/_base.mjs +7 -8
  21. package/3rdparty/walkontable/src/overlay/bottom.js +6 -7
  22. package/3rdparty/walkontable/src/overlay/bottom.mjs +6 -7
  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 +10 -9
  26. package/3rdparty/walkontable/src/overlay/top.mjs +10 -9
  27. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +10 -12
  28. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +10 -12
  29. package/3rdparty/walkontable/src/overlays.js +55 -64
  30. package/3rdparty/walkontable/src/overlays.mjs +55 -64
  31. package/3rdparty/walkontable/src/renderer/table.js +0 -2
  32. package/3rdparty/walkontable/src/renderer/table.mjs +0 -2
  33. package/3rdparty/walkontable/src/scroll.js +20 -23
  34. package/3rdparty/walkontable/src/scroll.mjs +20 -23
  35. package/3rdparty/walkontable/src/selection.js +354 -0
  36. package/3rdparty/walkontable/src/selection.mjs +348 -0
  37. package/3rdparty/walkontable/src/settings.js +13 -15
  38. package/3rdparty/walkontable/src/settings.mjs +13 -15
  39. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +0 -9
  40. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +0 -9
  41. package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +0 -9
  42. package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +0 -9
  43. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +0 -9
  44. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +0 -9
  45. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +0 -9
  46. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +0 -9
  47. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +0 -9
  48. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +0 -9
  49. package/3rdparty/walkontable/src/table.js +101 -33
  50. package/3rdparty/walkontable/src/table.mjs +102 -34
  51. package/base.js +2 -4
  52. package/base.mjs +2 -2
  53. package/core.d.ts +0 -4
  54. package/core.js +19 -52
  55. package/core.mjs +19 -52
  56. package/dataMap/dataSource.js +5 -5
  57. package/dataMap/dataSource.mjs +5 -5
  58. package/dataMap/metaManager/metaSchema.js +1 -8
  59. package/dataMap/metaManager/metaSchema.mjs +1 -8
  60. package/dist/handsontable.css +2 -7
  61. package/dist/handsontable.full.css +2 -7
  62. package/dist/handsontable.full.js +9162 -9474
  63. package/dist/handsontable.full.min.css +3 -3
  64. package/dist/handsontable.full.min.js +123 -115
  65. package/dist/handsontable.js +8763 -9076
  66. package/dist/handsontable.min.css +3 -3
  67. package/dist/handsontable.min.js +11 -3
  68. package/dist/languages/all.js +133 -0
  69. package/dist/languages/ar-AR.js +7 -0
  70. package/dist/languages/cs-CZ.js +7 -0
  71. package/dist/languages/de-CH.js +7 -0
  72. package/dist/languages/de-DE.js +7 -0
  73. package/dist/languages/en-US.js +7 -0
  74. package/dist/languages/es-MX.js +7 -0
  75. package/dist/languages/fr-FR.js +7 -0
  76. package/dist/languages/it-IT.js +7 -0
  77. package/dist/languages/ja-JP.js +7 -0
  78. package/dist/languages/ko-KR.js +7 -0
  79. package/dist/languages/lv-LV.js +7 -0
  80. package/dist/languages/nb-NO.js +7 -0
  81. package/dist/languages/nl-NL.js +7 -0
  82. package/dist/languages/pl-PL.js +7 -0
  83. package/dist/languages/pt-BR.js +7 -0
  84. package/dist/languages/ru-RU.js +7 -0
  85. package/dist/languages/sr-SP.js +7 -0
  86. package/dist/languages/zh-CN.js +7 -0
  87. package/dist/languages/zh-TW.js +7 -0
  88. package/editorManager.js +3 -7
  89. package/editorManager.mjs +3 -7
  90. package/editors/textEditor/textEditor.js +16 -3
  91. package/editors/textEditor/textEditor.mjs +17 -4
  92. package/helpers/dom/element.js +0 -11
  93. package/helpers/dom/element.mjs +0 -10
  94. package/helpers/mixed.js +1 -1
  95. package/helpers/mixed.mjs +1 -1
  96. package/i18n/languages/ar-AR.js +7 -1
  97. package/i18n/languages/cs-CZ.js +7 -1
  98. package/i18n/languages/de-CH.js +7 -1
  99. package/i18n/languages/de-DE.js +7 -1
  100. package/i18n/languages/en-US.js +7 -1
  101. package/i18n/languages/es-MX.js +7 -1
  102. package/i18n/languages/fr-FR.js +7 -1
  103. package/i18n/languages/it-IT.js +7 -1
  104. package/i18n/languages/ja-JP.js +7 -1
  105. package/i18n/languages/ko-KR.js +7 -1
  106. package/i18n/languages/lv-LV.js +7 -1
  107. package/i18n/languages/nb-NO.js +7 -1
  108. package/i18n/languages/nl-NL.js +7 -1
  109. package/i18n/languages/pl-PL.js +7 -1
  110. package/i18n/languages/pt-BR.js +7 -1
  111. package/i18n/languages/ru-RU.js +7 -1
  112. package/i18n/languages/sr-SP.js +7 -1
  113. package/i18n/languages/zh-CN.js +7 -1
  114. package/i18n/languages/zh-TW.js +7 -1
  115. package/languages/all.js +133 -0
  116. package/languages/ar-AR.js +7 -0
  117. package/languages/cs-CZ.js +7 -0
  118. package/languages/de-CH.js +7 -0
  119. package/languages/de-DE.js +7 -0
  120. package/languages/en-US.js +7 -0
  121. package/languages/es-MX.js +7 -0
  122. package/languages/fr-FR.js +7 -0
  123. package/languages/index.js +133 -0
  124. package/languages/it-IT.js +7 -0
  125. package/languages/ja-JP.js +7 -0
  126. package/languages/ko-KR.js +7 -0
  127. package/languages/lv-LV.js +7 -0
  128. package/languages/nb-NO.js +7 -0
  129. package/languages/nl-NL.js +7 -0
  130. package/languages/pl-PL.js +7 -0
  131. package/languages/pt-BR.js +7 -0
  132. package/languages/ru-RU.js +7 -0
  133. package/languages/sr-SP.js +7 -0
  134. package/languages/zh-CN.js +7 -0
  135. package/languages/zh-TW.js +7 -0
  136. package/package.json +3 -2
  137. package/pluginHooks.js +17 -7
  138. package/pluginHooks.mjs +16 -4
  139. package/plugins/autoRowSize/autoRowSize.js +2 -2
  140. package/plugins/autoRowSize/autoRowSize.mjs +2 -2
  141. package/plugins/copyPaste/copyPaste.js +93 -12
  142. package/plugins/copyPaste/copyPaste.mjs +93 -12
  143. package/plugins/copyPaste/copyableRanges.js +25 -31
  144. package/plugins/copyPaste/copyableRanges.mjs +18 -24
  145. package/plugins/copyPaste/focusableElement.js +219 -0
  146. package/plugins/copyPaste/focusableElement.mjs +213 -0
  147. package/plugins/customBorders/customBorders.js +2 -6
  148. package/plugins/customBorders/customBorders.mjs +3 -7
  149. package/plugins/filters/filters.js +5 -0
  150. package/plugins/filters/filters.mjs +5 -0
  151. package/plugins/formulas/formulas.js +190 -168
  152. package/plugins/formulas/formulas.mjs +190 -168
  153. package/plugins/formulas/indexSyncer/axisSyncer.js +379 -0
  154. package/plugins/formulas/indexSyncer/axisSyncer.mjs +374 -0
  155. package/plugins/formulas/indexSyncer/index.js +225 -0
  156. package/plugins/formulas/indexSyncer/index.mjs +219 -0
  157. package/plugins/mergeCells/mergeCells.js +16 -0
  158. package/plugins/mergeCells/mergeCells.mjs +16 -0
  159. package/plugins/nestedHeaders/nestedHeaders.js +4 -3
  160. package/plugins/nestedHeaders/nestedHeaders.mjs +4 -3
  161. package/plugins/nestedHeaders/stateManager/headersTree.js +23 -26
  162. package/plugins/nestedHeaders/stateManager/headersTree.mjs +20 -23
  163. package/plugins/nestedHeaders/stateManager/index.js +3 -3
  164. package/plugins/nestedHeaders/stateManager/matrixGenerator.js +1 -0
  165. package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +1 -1
  166. package/plugins/nestedHeaders/utils/ghostTable.js +30 -35
  167. package/plugins/nestedHeaders/utils/ghostTable.mjs +30 -35
  168. package/plugins/registry.js +3 -1
  169. package/plugins/undoRedo/undoRedo.js +0 -1
  170. package/plugins/undoRedo/undoRedo.mjs +0 -1
  171. package/renderers/baseRenderer/baseRenderer.js +0 -3
  172. package/renderers/baseRenderer/baseRenderer.mjs +0 -3
  173. package/selection/highlight/constants.js +16 -0
  174. package/selection/highlight/constants.mjs +6 -0
  175. package/selection/highlight/highlight.js +133 -335
  176. package/selection/highlight/highlight.mjs +129 -325
  177. package/selection/highlight/types/activeHeader.js +9 -10
  178. package/selection/highlight/types/activeHeader.mjs +8 -10
  179. package/selection/highlight/types/area.js +27 -12
  180. package/selection/highlight/types/area.mjs +30 -16
  181. package/selection/highlight/types/{focus.js → cell.js} +8 -5
  182. package/selection/highlight/types/{focus.mjs → cell.mjs} +7 -5
  183. package/selection/highlight/types/customSelection.js +10 -7
  184. package/selection/highlight/types/customSelection.mjs +9 -7
  185. package/selection/highlight/types/fill.js +8 -5
  186. package/selection/highlight/types/fill.mjs +7 -5
  187. package/selection/highlight/types/header.js +20 -10
  188. package/selection/highlight/types/header.mjs +19 -10
  189. package/selection/highlight/types/{row.js → index.js} +31 -27
  190. package/selection/highlight/types/{row.mjs → index.mjs} +29 -24
  191. package/selection/highlight/visualSelection.js +21 -12
  192. package/selection/highlight/visualSelection.mjs +21 -12
  193. package/selection/index.js +7 -4
  194. package/selection/index.mjs +3 -2
  195. package/selection/selection.js +46 -88
  196. package/selection/selection.mjs +44 -82
  197. package/settings.d.ts +0 -1
  198. package/tableView.js +66 -94
  199. package/tableView.mjs +66 -94
  200. package/translations/changesObservable/observable.js +41 -46
  201. package/translations/changesObservable/observable.mjs +36 -41
  202. package/translations/changesObservable/observer.js +1 -1
  203. package/translations/indexMapper.js +21 -0
  204. package/translations/indexMapper.mjs +21 -0
  205. package/utils/dataStructures/tree.js +15 -18
  206. package/utils/dataStructures/tree.mjs +15 -18
  207. package/utils/parseTable.js +5 -1
  208. package/utils/parseTable.mjs +5 -1
  209. package/3rdparty/walkontable/src/selection/border/constants.js +0 -18
  210. package/3rdparty/walkontable/src/selection/border/constants.mjs +0 -13
  211. package/3rdparty/walkontable/src/selection/constants.js +0 -63
  212. package/3rdparty/walkontable/src/selection/constants.mjs +0 -51
  213. package/3rdparty/walkontable/src/selection/index.js +0 -30
  214. package/3rdparty/walkontable/src/selection/index.mjs +0 -5
  215. package/3rdparty/walkontable/src/selection/manager.js +0 -334
  216. package/3rdparty/walkontable/src/selection/manager.mjs +0 -328
  217. package/3rdparty/walkontable/src/selection/scanner.js +0 -363
  218. package/3rdparty/walkontable/src/selection/scanner.mjs +0 -359
  219. package/3rdparty/walkontable/src/selection/selection.js +0 -133
  220. package/3rdparty/walkontable/src/selection/selection.mjs +0 -127
  221. package/focusManager.d.ts +0 -12
  222. package/focusManager.js +0 -249
  223. package/focusManager.mjs +0 -245
  224. package/selection/highlight/types/areaLayered.js +0 -54
  225. package/selection/highlight/types/areaLayered.mjs +0 -49
  226. package/selection/highlight/types/column.js +0 -50
  227. package/selection/highlight/types/column.mjs +0 -45
@@ -23,16 +23,8 @@ exports.CellRange = _range.default;
23
23
  var _core = _interopRequireDefault(require("./facade/core"));
24
24
  exports.default = _core.default;
25
25
  exports.Core = _core.default;
26
- var _selection = require("./selection");
27
- exports.Selection = _selection.Selection;
28
- exports.HIGHLIGHT_ACTIVE_HEADER_TYPE = _selection.ACTIVE_HEADER_TYPE;
29
- exports.HIGHLIGHT_AREA_TYPE = _selection.AREA_TYPE;
30
- exports.HIGHLIGHT_FOCUS_TYPE = _selection.FOCUS_TYPE;
31
- exports.HIGHLIGHT_FILL_TYPE = _selection.FILL_TYPE;
32
- exports.HIGHLIGHT_HEADER_TYPE = _selection.HEADER_TYPE;
33
- exports.HIGHLIGHT_ROW_TYPE = _selection.ROW_TYPE;
34
- exports.HIGHLIGHT_COLUMN_TYPE = _selection.COLUMN_TYPE;
35
- exports.HIGHLIGHT_CUSTOM_SELECTION_TYPE = _selection.CUSTOM_SELECTION_TYPE;
26
+ var _selection = _interopRequireDefault(require("./selection"));
27
+ exports.Selection = _selection.default;
36
28
  var Renderer = _interopRequireWildcard(require("./renderer"));
37
29
  exports.Renderer = Renderer;
38
30
  var _orderView = require("./utils/orderView");
@@ -3,8 +3,8 @@ import ViewportRowsCalculator from "./calculator/viewportRows.mjs";
3
3
  import CellCoords from "./cell/coords.mjs";
4
4
  import CellRange from "./cell/range.mjs";
5
5
  import Walkontable from "./facade/core.mjs";
6
- import { Selection, ACTIVE_HEADER_TYPE, AREA_TYPE, FOCUS_TYPE, FILL_TYPE, HEADER_TYPE, ROW_TYPE, COLUMN_TYPE, CUSTOM_SELECTION_TYPE } from "./selection/index.mjs";
6
+ import Selection from "./selection.mjs";
7
7
  import * as Renderer from "./renderer/index.mjs";
8
8
  import { OrderView, SharedOrderView } from "./utils/orderView/index.mjs";
9
9
  import { getListenersCounter } from "../../../eventManager.mjs";
10
- export { ViewportColumnsCalculator, ViewportRowsCalculator, CellCoords, CellRange, Walkontable as default, Walkontable as Core, Selection, ACTIVE_HEADER_TYPE as HIGHLIGHT_ACTIVE_HEADER_TYPE, AREA_TYPE as HIGHLIGHT_AREA_TYPE, FOCUS_TYPE as HIGHLIGHT_FOCUS_TYPE, FILL_TYPE as HIGHLIGHT_FILL_TYPE, HEADER_TYPE as HIGHLIGHT_HEADER_TYPE, ROW_TYPE as HIGHLIGHT_ROW_TYPE, COLUMN_TYPE as HIGHLIGHT_COLUMN_TYPE, CUSTOM_SELECTION_TYPE as HIGHLIGHT_CUSTOM_SELECTION_TYPE, Renderer, OrderView, SharedOrderView, getListenersCounter };
10
+ export { ViewportColumnsCalculator, ViewportRowsCalculator, CellCoords, CellRange, Walkontable as default, Walkontable as Core, Selection, Renderer, OrderView, SharedOrderView, getListenersCounter };
@@ -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
@@ -308,7 +307,7 @@ var Overlay = /*#__PURE__*/function () {
308
307
  // todo ioc , or factor func if used only here
309
308
  event: this.wot.wtEvent,
310
309
  // todo ioc , or factory func if used only here
311
- selectionManager: this.wot.selectionManager // todo ioc , or factory func if used only here
310
+ selections: this.wot.selections // todo ioc , or factory func if used only here
312
311
  });
313
312
  }
314
313
 
@@ -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
@@ -303,7 +302,7 @@ export var Overlay = /*#__PURE__*/function () {
303
302
  // todo ioc , or factor func if used only here
304
303
  event: this.wot.wtEvent,
305
304
  // todo ioc , or factory func if used only here
306
- selectionManager: this.wot.selectionManager // todo ioc , or factory func if used only here
305
+ selections: this.wot.selections // todo ioc , or factory func if used only here
307
306
  });
308
307
  }
309
308
 
@@ -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;
@@ -19,7 +19,6 @@ require("core-js/modules/es.object.get-prototype-of.js");
19
19
  var _element = require("../../../../helpers/dom/element");
20
20
  var _inlineStart = _interopRequireDefault(require("../table/inlineStart"));
21
21
  var _base = require("./_base");
22
- var _selection = require("../selection");
23
22
  var _constants = require("./constants");
24
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
24
  function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
@@ -212,8 +211,11 @@ var InlineStartOverlay = /*#__PURE__*/function (_Overlay) {
212
211
  }, {
213
212
  key: "adjustRootChildrenSize",
214
213
  value: function adjustRootChildrenSize() {
214
+ var _selections$getCell$g;
215
215
  var holder = this.clone.wtTable.holder;
216
- var selectionCornerOffset = this.wot.selectionManager.getFocusSelection() ? parseInt(_selection.CORNER_DEFAULT_STYLE.width, 10) / 2 : 0;
216
+ var selections = this.wot.selections;
217
+ var facade = this.facadeGetter();
218
+ var selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
217
219
  this.clone.wtTable.hider.style.height = this.hider.style.height;
218
220
  holder.style.height = holder.parentNode.style.height;
219
221
  // Add selection corner protruding part to the holder total width to make sure that
@@ -28,7 +28,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
28
28
  import { addClass, getScrollbarWidth, getScrollLeft, getWindowScrollTop, hasClass, outerWidth, removeClass, setOverlayPosition, resetCssTransform } from "../../../../helpers/dom/element.mjs";
29
29
  import InlineStartOverlayTable from "../table/inlineStart.mjs";
30
30
  import { Overlay } from "./_base.mjs";
31
- import { CORNER_DEFAULT_STYLE } from "../selection/index.mjs";
32
31
  import { CLONE_INLINE_START } from "./constants.mjs";
33
32
  /**
34
33
  * @class InlineStartOverlay
@@ -207,8 +206,11 @@ export var InlineStartOverlay = /*#__PURE__*/function (_Overlay) {
207
206
  }, {
208
207
  key: "adjustRootChildrenSize",
209
208
  value: function adjustRootChildrenSize() {
209
+ var _selections$getCell$g;
210
210
  var holder = this.clone.wtTable.holder;
211
- var selectionCornerOffset = this.wot.selectionManager.getFocusSelection() ? parseInt(CORNER_DEFAULT_STYLE.width, 10) / 2 : 0;
211
+ var selections = this.wot.selections;
212
+ var facade = this.facadeGetter();
213
+ var selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
212
214
  this.clone.wtTable.hider.style.height = this.hider.style.height;
213
215
  holder.style.height = holder.parentNode.style.height;
214
216
  // Add selection corner protruding part to the holder total width to make sure that
@@ -18,7 +18,6 @@ require("core-js/modules/es.number.constructor.js");
18
18
  var _element = require("../../../../helpers/dom/element");
19
19
  var _top = _interopRequireDefault(require("./../table/top"));
20
20
  var _base = require("./_base");
21
- var _selection = require("../selection");
22
21
  var _constants = require("./constants");
23
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
23
  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); }
@@ -42,13 +41,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
42
41
  var TopOverlay = /*#__PURE__*/function (_Overlay) {
43
42
  _inherits(TopOverlay, _Overlay);
44
43
  var _super = _createSuper(TopOverlay);
45
- /**
46
- * Cached value which holds the previous value of the `fixedRowsTop` option.
47
- * It is used as a comparison value that can be used to detect changes in this value.
48
- *
49
- * @type {number}
50
- */
51
-
52
44
  /**
53
45
  * @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
54
46
  * @param {FacadeGetter} facadeGetter Function which return proper facade.
@@ -59,6 +51,12 @@ var TopOverlay = /*#__PURE__*/function (_Overlay) {
59
51
  var _this;
60
52
  _classCallCheck(this, TopOverlay);
61
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
+ */
62
60
  _defineProperty(_assertThisInitialized(_this), "cachedFixedRowsTop", -1);
63
61
  _this.cachedFixedRowsTop = _this.wtSettings.getSetting('fixedRowsTop');
64
62
  return _this;
@@ -242,8 +240,11 @@ var TopOverlay = /*#__PURE__*/function (_Overlay) {
242
240
  }, {
243
241
  key: "adjustRootChildrenSize",
244
242
  value: function adjustRootChildrenSize() {
243
+ var _selections$getCell$g;
245
244
  var holder = this.clone.wtTable.holder;
246
- var selectionCornerOffset = this.wot.selectionManager.getFocusSelection() ? parseInt(_selection.CORNER_DEFAULT_STYLE.height, 10) / 2 : 0;
245
+ var selections = this.wot.selections;
246
+ var facade = this.facadeGetter();
247
+ var selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
247
248
  this.clone.wtTable.hider.style.width = this.hider.style.width;
248
249
  holder.style.width = holder.parentNode.style.width;
249
250
  // Add selection corner protruding part to the holder total height to make sure that
@@ -29,7 +29,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
29
29
  import { addClass, getScrollbarWidth, getScrollTop, getWindowScrollLeft, hasClass, outerHeight, removeClass, setOverlayPosition, resetCssTransform } from "../../../../helpers/dom/element.mjs";
30
30
  import TopOverlayTable from "./../table/top.mjs";
31
31
  import { Overlay } from "./_base.mjs";
32
- import { CORNER_DEFAULT_STYLE } from "../selection/index.mjs";
33
32
  import { CLONE_TOP } from "./constants.mjs";
34
33
  /**
35
34
  * @class TopOverlay
@@ -37,13 +36,6 @@ import { CLONE_TOP } from "./constants.mjs";
37
36
  export var TopOverlay = /*#__PURE__*/function (_Overlay) {
38
37
  _inherits(TopOverlay, _Overlay);
39
38
  var _super = _createSuper(TopOverlay);
40
- /**
41
- * Cached value which holds the previous value of the `fixedRowsTop` option.
42
- * It is used as a comparison value that can be used to detect changes in this value.
43
- *
44
- * @type {number}
45
- */
46
-
47
39
  /**
48
40
  * @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
49
41
  * @param {FacadeGetter} facadeGetter Function which return proper facade.
@@ -54,6 +46,12 @@ export var TopOverlay = /*#__PURE__*/function (_Overlay) {
54
46
  var _this;
55
47
  _classCallCheck(this, TopOverlay);
56
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
+ */
57
55
  _defineProperty(_assertThisInitialized(_this), "cachedFixedRowsTop", -1);
58
56
  _this.cachedFixedRowsTop = _this.wtSettings.getSetting('fixedRowsTop');
59
57
  return _this;
@@ -237,8 +235,11 @@ export var TopOverlay = /*#__PURE__*/function (_Overlay) {
237
235
  }, {
238
236
  key: "adjustRootChildrenSize",
239
237
  value: function adjustRootChildrenSize() {
238
+ var _selections$getCell$g;
240
239
  var holder = this.clone.wtTable.holder;
241
- var selectionCornerOffset = this.wot.selectionManager.getFocusSelection() ? parseInt(CORNER_DEFAULT_STYLE.height, 10) / 2 : 0;
240
+ var selections = this.wot.selections;
241
+ var facade = this.facadeGetter();
242
+ var selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
242
243
  this.clone.wtTable.hider.style.width = this.hider.style.width;
243
244
  holder.style.width = holder.parentNode.style.width;
244
245
  // Add selection corner protruding part to the holder total height to make sure that
@@ -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) {
@@ -33,70 +33,6 @@ import { InlineStartOverlay, TopOverlay, TopInlineStartCornerOverlay, BottomOver
33
33
  * @class Overlays
34
34
  */
35
35
  var Overlays = /*#__PURE__*/function () {
36
- /**
37
- * Walkontable instance's reference.
38
- *
39
- * @protected
40
- * @type {Walkontable}
41
- */
42
-
43
- /**
44
- * Refer to the TopOverlay instance.
45
- *
46
- * @protected
47
- * @type {TopOverlay}
48
- */
49
-
50
- /**
51
- * Refer to the BottomOverlay instance.
52
- *
53
- * @protected
54
- * @type {BottomOverlay}
55
- */
56
-
57
- /**
58
- * Refer to the InlineStartOverlay or instance.
59
- *
60
- * @protected
61
- * @type {InlineStartOverlay}
62
- */
63
-
64
- /**
65
- * Refer to the TopInlineStartCornerOverlay instance.
66
- *
67
- * @protected
68
- * @type {TopInlineStartCornerOverlay}
69
- */
70
-
71
- /**
72
- * Refer to the BottomInlineStartCornerOverlay instance.
73
- *
74
- * @protected
75
- * @type {BottomInlineStartCornerOverlay}
76
- */
77
-
78
- /**
79
- * Browser line height for purposes of translating mouse wheel.
80
- *
81
- * @private
82
- * @type {number}
83
- */
84
-
85
- /**
86
- * The walkontable settings.
87
- *
88
- * @protected
89
- * @type {Settings}
90
- */
91
-
92
- /**
93
- * The instance of the ResizeObserver that observes the size of the Walkontable wrapper element.
94
- * In case of the size change detection the `onContainerElementResize` is fired.
95
- *
96
- * @private
97
- * @type {ResizeObserver}
98
- */
99
-
100
36
  /**
101
37
  * @param {Walkontable} wotInstance The Walkontable instance. @todo refactoring remove.
102
38
  * @param {FacadeGetter} facadeGetter Function which return proper facade.
@@ -108,14 +44,69 @@ var Overlays = /*#__PURE__*/function () {
108
44
  function Overlays(wotInstance, facadeGetter, domBindings, wtSettings, eventManager, wtTable) {
109
45
  var _this = this;
110
46
  _classCallCheck(this, Overlays);
47
+ /**
48
+ * Walkontable instance's reference.
49
+ *
50
+ * @protected
51
+ * @type {Walkontable}
52
+ */
111
53
  _defineProperty(this, "wot", null);
54
+ /**
55
+ * Refer to the TopOverlay instance.
56
+ *
57
+ * @protected
58
+ * @type {TopOverlay}
59
+ */
112
60
  _defineProperty(this, "topOverlay", null);
61
+ /**
62
+ * Refer to the BottomOverlay instance.
63
+ *
64
+ * @protected
65
+ * @type {BottomOverlay}
66
+ */
113
67
  _defineProperty(this, "bottomOverlay", null);
68
+ /**
69
+ * Refer to the InlineStartOverlay or instance.
70
+ *
71
+ * @protected
72
+ * @type {InlineStartOverlay}
73
+ */
114
74
  _defineProperty(this, "inlineStartOverlay", null);
75
+ /**
76
+ * Refer to the TopInlineStartCornerOverlay instance.
77
+ *
78
+ * @protected
79
+ * @type {TopInlineStartCornerOverlay}
80
+ */
115
81
  _defineProperty(this, "topInlineStartCornerOverlay", null);
82
+ /**
83
+ * Refer to the BottomInlineStartCornerOverlay instance.
84
+ *
85
+ * @protected
86
+ * @type {BottomInlineStartCornerOverlay}
87
+ */
116
88
  _defineProperty(this, "bottomInlineStartCornerOverlay", null);
89
+ /**
90
+ * Browser line height for purposes of translating mouse wheel.
91
+ *
92
+ * @private
93
+ * @type {number}
94
+ */
117
95
  _defineProperty(this, "browserLineHeight", undefined);
96
+ /**
97
+ * The walkontable settings.
98
+ *
99
+ * @protected
100
+ * @type {Settings}
101
+ */
118
102
  _defineProperty(this, "wtSettings", null);
103
+ /**
104
+ * The instance of the ResizeObserver that observes the size of the Walkontable wrapper element.
105
+ * In case of the size change detection the `onContainerElementResize` is fired.
106
+ *
107
+ * @private
108
+ * @type {ResizeObserver}
109
+ */
119
110
  _defineProperty(this, "resizeObserver", new ResizeObserver(function (entries) {
120
111
  requestAnimationFrame(function () {
121
112
  if (!Array.isArray(entries) || !entries.length) {
@@ -315,8 +315,6 @@ var TableRenderer = /*#__PURE__*/function () {
315
315
  if (TR.firstChild) {
316
316
  var sourceRowIndex = this.renderedRowToSource(visibleRowIndex);
317
317
  var rowHeight = this.rowUtils.getHeight(sourceRowIndex);
318
- TR.ariaRowIndex = "".concat(sourceRowIndex);
319
- TR.setAttribute('role', 'row');
320
318
  if (rowHeight) {
321
319
  // Decrease height. 1 pixel will be "replaced" by 1px border top
322
320
  TR.firstChild.style.height = "".concat(rowHeight - 1, "px");
@@ -311,8 +311,6 @@ var TableRenderer = /*#__PURE__*/function () {
311
311
  if (TR.firstChild) {
312
312
  var sourceRowIndex = this.renderedRowToSource(visibleRowIndex);
313
313
  var rowHeight = this.rowUtils.getHeight(sourceRowIndex);
314
- TR.ariaRowIndex = "".concat(sourceRowIndex);
315
- TR.setAttribute('role', 'row');
316
314
  if (rowHeight) {
317
315
  // Decrease height. 1 pixel will be "replaced" by 1px border top
318
316
  TR.firstChild.style.height = "".concat(rowHeight - 1, "px");