handsontable 0.0.0-next-53a190b-20240403 → 0.0.0-next-5a535ed-20240403

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.

Potentially problematic release.


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

Files changed (284) hide show
  1. package/3rdparty/walkontable/src/calculator/viewportColumns.js +17 -12
  2. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +17 -12
  3. package/3rdparty/walkontable/src/calculator/viewportRows.js +15 -10
  4. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +15 -10
  5. package/3rdparty/walkontable/src/cell/coords.js +17 -12
  6. package/3rdparty/walkontable/src/cell/coords.mjs +17 -12
  7. package/3rdparty/walkontable/src/cell/range.d.ts +1 -2
  8. package/3rdparty/walkontable/src/cell/range.js +28 -40
  9. package/3rdparty/walkontable/src/cell/range.mjs +28 -40
  10. package/3rdparty/walkontable/src/core/_base.js +1 -1
  11. package/3rdparty/walkontable/src/core/_base.mjs +1 -1
  12. package/3rdparty/walkontable/src/event.js +104 -72
  13. package/3rdparty/walkontable/src/event.mjs +104 -72
  14. package/3rdparty/walkontable/src/overlay/inlineStart.js +1 -15
  15. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +2 -16
  16. package/3rdparty/walkontable/src/overlay/top.js +0 -11
  17. package/3rdparty/walkontable/src/overlay/top.mjs +1 -12
  18. package/3rdparty/walkontable/src/overlays.js +4 -46
  19. package/3rdparty/walkontable/src/overlays.mjs +4 -46
  20. package/3rdparty/walkontable/src/scroll.js +17 -15
  21. package/3rdparty/walkontable/src/scroll.mjs +17 -15
  22. package/3rdparty/walkontable/src/selection/manager.js +69 -48
  23. package/3rdparty/walkontable/src/selection/manager.mjs +69 -48
  24. package/3rdparty/walkontable/src/selection/scanner.js +42 -33
  25. package/3rdparty/walkontable/src/selection/scanner.mjs +42 -33
  26. package/3rdparty/walkontable/src/utils/columnStretching.js +44 -27
  27. package/3rdparty/walkontable/src/utils/columnStretching.mjs +44 -27
  28. package/3rdparty/walkontable/src/utils/orderView/view.js +1 -1
  29. package/3rdparty/walkontable/src/utils/orderView/view.mjs +1 -1
  30. package/base.js +2 -2
  31. package/base.mjs +2 -2
  32. package/core/viewportScroll/index.js +1 -4
  33. package/core/viewportScroll/index.mjs +1 -4
  34. package/core.d.ts +3 -4
  35. package/core.js +22 -77
  36. package/core.mjs +22 -77
  37. package/dataMap/dataSource.js +1 -1
  38. package/dataMap/dataSource.mjs +1 -1
  39. package/dataMap/metaManager/metaLayers/cellMeta.js +1 -1
  40. package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -1
  41. package/dataMap/metaManager/metaSchema.js +1 -1
  42. package/dataMap/metaManager/metaSchema.mjs +1 -1
  43. package/dataMap/replaceData.js +1 -1
  44. package/dataMap/replaceData.mjs +1 -1
  45. package/dist/handsontable.css +4 -4
  46. package/dist/handsontable.full.css +4 -4
  47. package/dist/handsontable.full.js +9121 -9062
  48. package/dist/handsontable.full.min.css +3 -3
  49. package/dist/handsontable.full.min.js +292 -292
  50. package/dist/handsontable.js +6573 -6967
  51. package/dist/handsontable.min.css +3 -3
  52. package/dist/handsontable.min.js +25 -25
  53. package/dist/languages/all.min.js +1 -1
  54. package/dist/languages/ar-AR.min.js +1 -1
  55. package/dist/languages/cs-CZ.min.js +1 -1
  56. package/dist/languages/de-CH.min.js +1 -1
  57. package/dist/languages/de-DE.min.js +1 -1
  58. package/dist/languages/en-US.min.js +1 -1
  59. package/dist/languages/es-MX.min.js +1 -1
  60. package/dist/languages/fr-FR.min.js +1 -1
  61. package/dist/languages/hr-HR.min.js +1 -1
  62. package/dist/languages/it-IT.min.js +1 -1
  63. package/dist/languages/ja-JP.min.js +1 -1
  64. package/dist/languages/ko-KR.min.js +1 -1
  65. package/dist/languages/lv-LV.min.js +1 -1
  66. package/dist/languages/nb-NO.min.js +1 -1
  67. package/dist/languages/nl-NL.min.js +1 -1
  68. package/dist/languages/pl-PL.min.js +1 -1
  69. package/dist/languages/pt-BR.min.js +1 -1
  70. package/dist/languages/ru-RU.min.js +1 -1
  71. package/dist/languages/sr-SP.min.js +1 -1
  72. package/dist/languages/zh-CN.min.js +1 -1
  73. package/dist/languages/zh-TW.min.js +1 -1
  74. package/editorManager.js +23 -25
  75. package/editorManager.mjs +23 -25
  76. package/editors/autocompleteEditor/autocompleteEditor.js +10 -6
  77. package/editors/autocompleteEditor/autocompleteEditor.mjs +10 -6
  78. package/editors/selectEditor/selectEditor.js +19 -20
  79. package/editors/selectEditor/selectEditor.mjs +19 -20
  80. package/eventManager.js +1 -1
  81. package/eventManager.mjs +1 -1
  82. package/focusManager.js +82 -64
  83. package/focusManager.mjs +82 -64
  84. package/helpers/dom/element.js +1 -23
  85. package/helpers/dom/element.mjs +1 -21
  86. package/helpers/mixed.js +1 -1
  87. package/helpers/mixed.mjs +1 -1
  88. package/helpers/object.js +2 -2
  89. package/helpers/object.mjs +2 -2
  90. package/index.d.ts +0 -10
  91. package/package.json +2 -7
  92. package/pluginHooks.d.ts +3 -4
  93. package/pluginHooks.js +38 -99
  94. package/pluginHooks.mjs +38 -99
  95. package/plugins/autoColumnSize/autoColumnSize.js +65 -49
  96. package/plugins/autoColumnSize/autoColumnSize.mjs +65 -49
  97. package/plugins/autoRowSize/autoRowSize.js +34 -28
  98. package/plugins/autoRowSize/autoRowSize.mjs +34 -28
  99. package/plugins/autofill/autofill.js +38 -30
  100. package/plugins/autofill/autofill.mjs +38 -30
  101. package/plugins/base/base.js +17 -12
  102. package/plugins/base/base.mjs +17 -12
  103. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +5 -5
  104. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +5 -5
  105. package/plugins/collapsibleColumns/collapsibleColumns.js +50 -59
  106. package/plugins/collapsibleColumns/collapsibleColumns.mjs +50 -59
  107. package/plugins/columnSorting/columnSorting.js +45 -49
  108. package/plugins/columnSorting/columnSorting.mjs +45 -49
  109. package/plugins/columnSummary/columnSummary.js +26 -22
  110. package/plugins/columnSummary/columnSummary.mjs +26 -22
  111. package/plugins/comments/comments.js +158 -116
  112. package/plugins/comments/comments.mjs +158 -116
  113. package/plugins/contextMenu/contextMenu.js +26 -20
  114. package/plugins/contextMenu/contextMenu.mjs +26 -20
  115. package/plugins/contextMenu/itemsFactory.js +1 -1
  116. package/plugins/contextMenu/itemsFactory.mjs +1 -1
  117. package/plugins/contextMenu/menu/defaultShortcutsList.js +10 -26
  118. package/plugins/contextMenu/menu/defaultShortcutsList.mjs +10 -26
  119. package/plugins/contextMenu/menu/menu.js +21 -13
  120. package/plugins/contextMenu/menu/menu.mjs +21 -13
  121. package/plugins/contextMenu/menu/positioner.js +58 -41
  122. package/plugins/contextMenu/menu/positioner.mjs +58 -41
  123. package/plugins/copyPaste/copyPaste.js +157 -116
  124. package/plugins/copyPaste/copyPaste.mjs +157 -116
  125. package/plugins/copyPaste/copyableRanges.js +66 -43
  126. package/plugins/copyPaste/copyableRanges.mjs +66 -43
  127. package/plugins/customBorders/customBorders.js +13 -11
  128. package/plugins/customBorders/customBorders.mjs +13 -11
  129. package/plugins/dragToScroll/dragToScroll.js +6 -6
  130. package/plugins/dragToScroll/dragToScroll.mjs +6 -6
  131. package/plugins/dropdownMenu/dropdownMenu.js +106 -80
  132. package/plugins/dropdownMenu/dropdownMenu.mjs +106 -80
  133. package/plugins/exportFile/dataProvider.js +1 -1
  134. package/plugins/exportFile/dataProvider.mjs +1 -1
  135. package/plugins/filters/component/actionBar.js +9 -9
  136. package/plugins/filters/component/actionBar.mjs +8 -8
  137. package/plugins/filters/component/condition.js +15 -13
  138. package/plugins/filters/component/condition.mjs +15 -13
  139. package/plugins/filters/component/operators.js +6 -6
  140. package/plugins/filters/component/operators.mjs +6 -6
  141. package/plugins/filters/component/value.js +28 -24
  142. package/plugins/filters/component/value.mjs +28 -24
  143. package/plugins/filters/conditionUpdateObserver.js +24 -22
  144. package/plugins/filters/conditionUpdateObserver.mjs +24 -22
  145. package/plugins/filters/dataFilter.js +1 -1
  146. package/plugins/filters/dataFilter.mjs +1 -1
  147. package/plugins/filters/filters.js +95 -81
  148. package/plugins/filters/filters.mjs +95 -81
  149. package/plugins/filters/ui/input.js +19 -13
  150. package/plugins/filters/ui/input.mjs +19 -13
  151. package/plugins/filters/ui/link.js +13 -8
  152. package/plugins/filters/ui/link.mjs +13 -8
  153. package/plugins/filters/ui/multipleSelect.js +112 -85
  154. package/plugins/filters/ui/multipleSelect.mjs +112 -85
  155. package/plugins/filters/ui/radioInput.js +20 -12
  156. package/plugins/filters/ui/radioInput.mjs +20 -12
  157. package/plugins/filters/ui/select.js +72 -50
  158. package/plugins/filters/ui/select.mjs +71 -49
  159. package/plugins/formulas/formulas.js +326 -268
  160. package/plugins/formulas/formulas.mjs +327 -269
  161. package/plugins/formulas/indexSyncer/axisSyncer.js +61 -38
  162. package/plugins/formulas/indexSyncer/axisSyncer.mjs +61 -38
  163. package/plugins/formulas/indexSyncer/index.js +48 -25
  164. package/plugins/formulas/indexSyncer/index.mjs +48 -25
  165. package/plugins/hiddenColumns/hiddenColumns.js +83 -64
  166. package/plugins/hiddenColumns/hiddenColumns.mjs +83 -64
  167. package/plugins/hiddenRows/hiddenRows.js +82 -63
  168. package/plugins/hiddenRows/hiddenRows.mjs +82 -63
  169. package/plugins/manualColumnFreeze/manualColumnFreeze.js +32 -24
  170. package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +33 -25
  171. package/plugins/manualColumnMove/manualColumnMove.js +170 -126
  172. package/plugins/manualColumnMove/manualColumnMove.mjs +170 -126
  173. package/plugins/manualColumnResize/manualColumnResize.js +230 -169
  174. package/plugins/manualColumnResize/manualColumnResize.mjs +230 -169
  175. package/plugins/manualRowMove/manualRowMove.js +128 -99
  176. package/plugins/manualRowMove/manualRowMove.mjs +128 -99
  177. package/plugins/manualRowResize/manualRowResize.js +209 -150
  178. package/plugins/manualRowResize/manualRowResize.mjs +209 -150
  179. package/plugins/mergeCells/calculations/selection.js +71 -2
  180. package/plugins/mergeCells/calculations/selection.mjs +71 -2
  181. package/plugins/mergeCells/cellsCollection.js +1 -117
  182. package/plugins/mergeCells/cellsCollection.mjs +1 -117
  183. package/plugins/mergeCells/contextMenuItem/toggleMerge.js +1 -11
  184. package/plugins/mergeCells/contextMenuItem/toggleMerge.mjs +1 -11
  185. package/plugins/mergeCells/mergeCells.js +397 -499
  186. package/plugins/mergeCells/mergeCells.mjs +397 -499
  187. package/plugins/multiColumnSorting/multiColumnSorting.js +2 -8
  188. package/plugins/multiColumnSorting/multiColumnSorting.mjs +2 -8
  189. package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +1 -1
  190. package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +1 -1
  191. package/plugins/nestedHeaders/nestedHeaders.js +253 -205
  192. package/plugins/nestedHeaders/nestedHeaders.mjs +254 -206
  193. package/plugins/nestedHeaders/stateManager/headersTree.js +32 -21
  194. package/plugins/nestedHeaders/stateManager/headersTree.mjs +32 -21
  195. package/plugins/nestedHeaders/stateManager/index.js +41 -30
  196. package/plugins/nestedHeaders/stateManager/index.mjs +41 -30
  197. package/plugins/nestedHeaders/stateManager/sourceSettings.js +30 -19
  198. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +30 -19
  199. package/plugins/nestedRows/data/dataManager.js +1 -1
  200. package/plugins/nestedRows/data/dataManager.mjs +1 -1
  201. package/plugins/nestedRows/nestedRows.js +182 -151
  202. package/plugins/nestedRows/nestedRows.mjs +183 -152
  203. package/plugins/nestedRows/ui/contextMenu.js +15 -11
  204. package/plugins/nestedRows/ui/contextMenu.mjs +14 -10
  205. package/plugins/nestedRows/utils/rowMoveController.js +1 -1
  206. package/plugins/nestedRows/utils/rowMoveController.mjs +1 -1
  207. package/plugins/persistentState/storage.js +2 -2
  208. package/plugins/persistentState/storage.mjs +2 -2
  209. package/plugins/search/search.js +7 -7
  210. package/plugins/search/search.mjs +7 -7
  211. package/plugins/touchScroll/touchScroll.js +19 -15
  212. package/plugins/touchScroll/touchScroll.mjs +20 -16
  213. package/plugins/trimRows/trimRows.js +6 -6
  214. package/plugins/trimRows/trimRows.mjs +6 -6
  215. package/renderers/checkboxRenderer/checkboxRenderer.js +5 -8
  216. package/renderers/checkboxRenderer/checkboxRenderer.mjs +5 -8
  217. package/selection/highlight/highlight.js +14 -14
  218. package/selection/highlight/highlight.mjs +13 -13
  219. package/selection/highlight/visualSelection.js +0 -2
  220. package/selection/highlight/visualSelection.mjs +0 -2
  221. package/selection/selection.js +67 -225
  222. package/selection/selection.mjs +66 -224
  223. package/selection/transformation.js +118 -149
  224. package/selection/transformation.mjs +118 -149
  225. package/shortcutContexts/commands/editor/closeAndSave.js +2 -2
  226. package/shortcutContexts/commands/editor/closeAndSave.mjs +2 -2
  227. package/shortcutContexts/commands/editor/open.js +3 -18
  228. package/shortcutContexts/commands/editor/open.mjs +3 -18
  229. package/shortcutContexts/commands/extendCellsSelection/down.js +1 -1
  230. package/shortcutContexts/commands/extendCellsSelection/down.mjs +1 -1
  231. package/shortcutContexts/commands/extendCellsSelection/left.js +1 -1
  232. package/shortcutContexts/commands/extendCellsSelection/left.mjs +1 -1
  233. package/shortcutContexts/commands/extendCellsSelection/right.js +1 -1
  234. package/shortcutContexts/commands/extendCellsSelection/right.mjs +1 -1
  235. package/shortcutContexts/commands/extendCellsSelection/toColumns.js +1 -1
  236. package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +1 -1
  237. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +1 -3
  238. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +1 -3
  239. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +3 -9
  240. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +3 -9
  241. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +3 -10
  242. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +3 -10
  243. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +1 -3
  244. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +1 -3
  245. package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +1 -3
  246. package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +1 -3
  247. package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +1 -3
  248. package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +1 -3
  249. package/shortcutContexts/commands/extendCellsSelection/toRows.js +1 -1
  250. package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +1 -1
  251. package/shortcutContexts/commands/extendCellsSelection/up.js +1 -1
  252. package/shortcutContexts/commands/extendCellsSelection/up.mjs +1 -1
  253. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +1 -6
  254. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +1 -6
  255. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +1 -6
  256. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +1 -6
  257. package/shortcutContexts/grid.js +3 -9
  258. package/shortcutContexts/grid.mjs +3 -9
  259. package/shortcuts/context.js +1 -2
  260. package/shortcuts/context.mjs +1 -2
  261. package/tableView.js +78 -52
  262. package/tableView.mjs +78 -52
  263. package/translations/changesObservable/observable.js +38 -21
  264. package/translations/changesObservable/observable.mjs +38 -21
  265. package/translations/changesObservable/observer.js +12 -7
  266. package/translations/changesObservable/observer.mjs +11 -6
  267. package/translations/mapCollections/aggregatedCollection.js +1 -1
  268. package/translations/mapCollections/aggregatedCollection.mjs +1 -1
  269. package/translations/maps/indexMap.js +1 -1
  270. package/translations/maps/indexMap.mjs +1 -1
  271. package/utils/dataStructures/linkedList.js +1 -6
  272. package/utils/dataStructures/linkedList.mjs +1 -6
  273. package/utils/dataStructures/tree.js +1 -1
  274. package/utils/dataStructures/tree.mjs +1 -1
  275. package/utils/interval.js +44 -26
  276. package/utils/interval.mjs +44 -26
  277. package/core/viewportScroll/scrollStrategies/focusScroll.js +0 -15
  278. package/core/viewportScroll/scrollStrategies/focusScroll.mjs +0 -11
  279. package/i18n/languages/ar-AR.d.ts +0 -5
  280. package/i18n/languages/cs-CZ.d.ts +0 -5
  281. package/i18n/languages/hr-HR.d.ts +0 -5
  282. package/i18n/languages/sr-SP.d.ts +0 -5
  283. package/plugins/mergeCells/focusOrder.js +0 -305
  284. package/plugins/mergeCells/focusOrder.mjs +0 -300
@@ -1,11 +1,14 @@
1
- import "core-js/modules/es.error.cause.js";
2
1
  import "core-js/modules/es.array.push.js";
2
+ import "core-js/modules/es.error.cause.js";
3
3
  function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
4
4
  function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
5
5
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
6
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
7
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
8
- function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
6
+ function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
7
+ function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
8
+ 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; } }
9
+ function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
10
+ function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
11
+ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
9
12
  import { BasePlugin } from "../base/index.mjs";
10
13
  import { addClass, closest, hasClass, removeClass, outerWidth, isDetached } from "../../helpers/dom/element.mjs";
11
14
  import { arrayEach } from "../../helpers/array.mjs";
@@ -46,7 +49,13 @@ var _dblclick = /*#__PURE__*/new WeakMap();
46
49
  var _autoresizeTimeout = /*#__PURE__*/new WeakMap();
47
50
  var _rowHeightsMap = /*#__PURE__*/new WeakMap();
48
51
  var _config = /*#__PURE__*/new WeakMap();
49
- var _ManualRowResize_brand = /*#__PURE__*/new WeakSet();
52
+ var _onMouseOver = /*#__PURE__*/new WeakSet();
53
+ var _onMouseDown = /*#__PURE__*/new WeakSet();
54
+ var _onMouseMove = /*#__PURE__*/new WeakSet();
55
+ var _onMouseUp = /*#__PURE__*/new WeakSet();
56
+ var _onContextMenu = /*#__PURE__*/new WeakSet();
57
+ var _onModifyRowHeight = /*#__PURE__*/new WeakSet();
58
+ var _onMapInit = /*#__PURE__*/new WeakSet();
50
59
  export class ManualRowResize extends BasePlugin {
51
60
  static get PLUGIN_KEY() {
52
61
  return PLUGIN_KEY;
@@ -61,79 +70,162 @@ export class ManualRowResize extends BasePlugin {
61
70
 
62
71
  constructor(hotInstance) {
63
72
  super(hotInstance);
73
+ /**
74
+ * Callback to call on map's `init` local hook.
75
+ */
76
+ _classPrivateMethodInitSpec(this, _onMapInit);
77
+ /**
78
+ * Modifies the provided row height, based on the plugin settings.
79
+ *
80
+ * @param {number} height Row height.
81
+ * @param {number} row Visual row index.
82
+ * @returns {number}
83
+ */
84
+ _classPrivateMethodInitSpec(this, _onModifyRowHeight);
85
+ /**
86
+ * Callback for "contextmenu" event triggered on element showing move handle. It removes handle and guide elements.
87
+ */
88
+ _classPrivateMethodInitSpec(this, _onContextMenu);
89
+ /**
90
+ * 'mouseup' event callback - apply the row resizing.
91
+ *
92
+ * @fires Hooks#beforeRowResize
93
+ * @fires Hooks#afterRowResize
94
+ */
95
+ _classPrivateMethodInitSpec(this, _onMouseUp);
96
+ /**
97
+ * 'mousemove' event callback - refresh the handle and guide positions, cache the new row height.
98
+ *
99
+ * @param {MouseEvent} event The mouse event.
100
+ */
101
+ _classPrivateMethodInitSpec(this, _onMouseMove);
102
+ /**
103
+ * 'mousedown' event callback.
104
+ *
105
+ * @param {MouseEvent} event The mouse event.
106
+ */
107
+ _classPrivateMethodInitSpec(this, _onMouseDown);
64
108
  /**
65
109
  * 'mouseover' event callback - set the handle position.
66
110
  *
67
111
  * @param {MouseEvent} event The mouse event.
68
112
  */
69
- _classPrivateMethodInitSpec(this, _ManualRowResize_brand);
70
- _classPrivateFieldInitSpec(this, _currentTH, null);
113
+ _classPrivateMethodInitSpec(this, _onMouseOver);
114
+ _classPrivateFieldInitSpec(this, _currentTH, {
115
+ writable: true,
116
+ value: null
117
+ });
71
118
  /**
72
119
  * @type {number}
73
120
  */
74
- _classPrivateFieldInitSpec(this, _currentRow, null);
121
+ _classPrivateFieldInitSpec(this, _currentRow, {
122
+ writable: true,
123
+ value: null
124
+ });
75
125
  /**
76
126
  * @type {number[]}
77
127
  */
78
- _classPrivateFieldInitSpec(this, _selectedRows, []);
128
+ _classPrivateFieldInitSpec(this, _selectedRows, {
129
+ writable: true,
130
+ value: []
131
+ });
79
132
  /**
80
133
  * @type {number}
81
134
  */
82
- _classPrivateFieldInitSpec(this, _currentHeight, null);
135
+ _classPrivateFieldInitSpec(this, _currentHeight, {
136
+ writable: true,
137
+ value: null
138
+ });
83
139
  /**
84
140
  * @type {number}
85
141
  */
86
- _classPrivateFieldInitSpec(this, _newSize, null);
142
+ _classPrivateFieldInitSpec(this, _newSize, {
143
+ writable: true,
144
+ value: null
145
+ });
87
146
  /**
88
147
  * @type {number}
89
148
  */
90
- _classPrivateFieldInitSpec(this, _startY, null);
149
+ _classPrivateFieldInitSpec(this, _startY, {
150
+ writable: true,
151
+ value: null
152
+ });
91
153
  /**
92
154
  * @type {number}
93
155
  */
94
- _classPrivateFieldInitSpec(this, _startHeight, null);
156
+ _classPrivateFieldInitSpec(this, _startHeight, {
157
+ writable: true,
158
+ value: null
159
+ });
95
160
  /**
96
161
  * @type {number}
97
162
  */
98
- _classPrivateFieldInitSpec(this, _startOffset, null);
163
+ _classPrivateFieldInitSpec(this, _startOffset, {
164
+ writable: true,
165
+ value: null
166
+ });
99
167
  /**
100
168
  * @type {HTMLElement}
101
169
  */
102
- _classPrivateFieldInitSpec(this, _handle, this.hot.rootDocument.createElement('DIV'));
170
+ _classPrivateFieldInitSpec(this, _handle, {
171
+ writable: true,
172
+ value: this.hot.rootDocument.createElement('DIV')
173
+ });
103
174
  /**
104
175
  * @type {HTMLElement}
105
176
  */
106
- _classPrivateFieldInitSpec(this, _guide, this.hot.rootDocument.createElement('DIV'));
177
+ _classPrivateFieldInitSpec(this, _guide, {
178
+ writable: true,
179
+ value: this.hot.rootDocument.createElement('DIV')
180
+ });
107
181
  /**
108
182
  * @type {boolean}
109
183
  */
110
- _classPrivateFieldInitSpec(this, _pressed, false);
184
+ _classPrivateFieldInitSpec(this, _pressed, {
185
+ writable: true,
186
+ value: false
187
+ });
111
188
  /**
112
189
  * @type {boolean}
113
190
  */
114
- _classPrivateFieldInitSpec(this, _isTriggeredByRMB, false);
191
+ _classPrivateFieldInitSpec(this, _isTriggeredByRMB, {
192
+ writable: true,
193
+ value: false
194
+ });
115
195
  /**
116
196
  * @type {number}
117
197
  */
118
- _classPrivateFieldInitSpec(this, _dblclick, 0);
198
+ _classPrivateFieldInitSpec(this, _dblclick, {
199
+ writable: true,
200
+ value: 0
201
+ });
119
202
  /**
120
203
  * @type {number}
121
204
  */
122
- _classPrivateFieldInitSpec(this, _autoresizeTimeout, null);
205
+ _classPrivateFieldInitSpec(this, _autoresizeTimeout, {
206
+ writable: true,
207
+ value: null
208
+ });
123
209
  /**
124
210
  * PhysicalIndexToValueMap to keep and track widths for physical row indexes.
125
211
  *
126
212
  * @type {PhysicalIndexToValueMap}
127
213
  */
128
- _classPrivateFieldInitSpec(this, _rowHeightsMap, void 0);
214
+ _classPrivateFieldInitSpec(this, _rowHeightsMap, {
215
+ writable: true,
216
+ value: void 0
217
+ });
129
218
  /**
130
219
  * Private pool to save configuration from updateSettings.
131
220
  *
132
221
  * @type {object}
133
222
  */
134
- _classPrivateFieldInitSpec(this, _config, void 0);
135
- addClass(_classPrivateFieldGet(_handle, this), 'manualRowResizer');
136
- addClass(_classPrivateFieldGet(_guide, this), 'manualRowResizerGuide');
223
+ _classPrivateFieldInitSpec(this, _config, {
224
+ writable: true,
225
+ value: void 0
226
+ });
227
+ addClass(_classPrivateFieldGet(this, _handle), 'manualRowResizer');
228
+ addClass(_classPrivateFieldGet(this, _guide), 'manualRowResizerGuide');
137
229
  }
138
230
 
139
231
  /**
@@ -161,10 +253,10 @@ export class ManualRowResize extends BasePlugin {
161
253
  if (this.enabled) {
162
254
  return;
163
255
  }
164
- _classPrivateFieldSet(_rowHeightsMap, this, new IndexToValueMap());
165
- _classPrivateFieldGet(_rowHeightsMap, this).addLocalHook('init', () => _assertClassBrand(_ManualRowResize_brand, this, _onMapInit).call(this));
166
- this.hot.rowIndexMapper.registerMap(this.pluginName, _classPrivateFieldGet(_rowHeightsMap, this));
167
- this.addHook('modifyRowHeight', (height, row) => _assertClassBrand(_ManualRowResize_brand, this, _onModifyRowHeight).call(this, height, row));
256
+ _classPrivateFieldSet(this, _rowHeightsMap, new IndexToValueMap());
257
+ _classPrivateFieldGet(this, _rowHeightsMap).addLocalHook('init', () => _classPrivateMethodGet(this, _onMapInit, _onMapInit2).call(this));
258
+ this.hot.rowIndexMapper.registerMap(this.pluginName, _classPrivateFieldGet(this, _rowHeightsMap));
259
+ this.addHook('modifyRowHeight', (height, row) => _classPrivateMethodGet(this, _onModifyRowHeight, _onModifyRowHeight2).call(this, height, row));
168
260
  this.bindEvents();
169
261
  super.enablePlugin();
170
262
  }
@@ -185,7 +277,7 @@ export class ManualRowResize extends BasePlugin {
185
277
  * Disables the plugin functionality for this Handsontable instance.
186
278
  */
187
279
  disablePlugin() {
188
- _classPrivateFieldSet(_config, this, _classPrivateFieldGet(_rowHeightsMap, this).getValues());
280
+ _classPrivateFieldSet(this, _config, _classPrivateFieldGet(this, _rowHeightsMap).getValues());
189
281
  this.hot.rowIndexMapper.unregisterMap(this.pluginName);
190
282
  super.disablePlugin();
191
283
  }
@@ -197,7 +289,7 @@ export class ManualRowResize extends BasePlugin {
197
289
  * @fires Hooks#persistentStateSave
198
290
  */
199
291
  saveManualRowHeights() {
200
- this.hot.runHooks('persistentStateSave', PERSISTENT_STATE_KEY, _classPrivateFieldGet(_rowHeightsMap, this).getValues());
292
+ this.hot.runHooks('persistentStateSave', PERSISTENT_STATE_KEY, _classPrivateFieldGet(this, _rowHeightsMap).getValues());
201
293
  }
202
294
 
203
295
  /**
@@ -223,7 +315,7 @@ export class ManualRowResize extends BasePlugin {
223
315
  setManualSize(row, height) {
224
316
  const physicalRow = this.hot.toPhysicalRow(row);
225
317
  const newHeight = Math.max(height, ViewportRowsCalculator.DEFAULT_HEIGHT);
226
- _classPrivateFieldGet(_rowHeightsMap, this).setValueAtIndex(physicalRow, newHeight);
318
+ _classPrivateFieldGet(this, _rowHeightsMap).setValueAtIndex(physicalRow, newHeight);
227
319
  return newHeight;
228
320
  }
229
321
 
@@ -234,40 +326,40 @@ export class ManualRowResize extends BasePlugin {
234
326
  * @param {HTMLCellElement} TH TH HTML element.
235
327
  */
236
328
  setupHandlePosition(TH) {
237
- _classPrivateFieldSet(_currentTH, this, TH);
329
+ _classPrivateFieldSet(this, _currentTH, TH);
238
330
  const {
239
331
  view
240
332
  } = this.hot;
241
333
  const {
242
334
  _wt: wt
243
335
  } = view;
244
- const cellCoords = wt.wtTable.getCoords(_classPrivateFieldGet(_currentTH, this));
336
+ const cellCoords = wt.wtTable.getCoords(_classPrivateFieldGet(this, _currentTH));
245
337
  const row = cellCoords.row;
246
338
 
247
339
  // Ignore row headers.
248
340
  if (row < 0) {
249
341
  return;
250
342
  }
251
- const headerWidth = outerWidth(_classPrivateFieldGet(_currentTH, this));
252
- const box = _classPrivateFieldGet(_currentTH, this).getBoundingClientRect();
343
+ const headerWidth = outerWidth(_classPrivateFieldGet(this, _currentTH));
344
+ const box = _classPrivateFieldGet(this, _currentTH).getBoundingClientRect();
253
345
  // Read "fixedRowsTop" and "fixedRowsBottom" through the Walkontable as in that context, the fixed
254
346
  // rows are modified (reduced by the number of hidden rows) by TableView module.
255
347
  const fixedRowTop = row < wt.getSetting('fixedRowsTop');
256
348
  const fixedRowBottom = row >= view.countNotHiddenRowIndexes(0, 1) - wt.getSetting('fixedRowsBottom');
257
349
  let relativeHeaderPosition;
258
350
  if (fixedRowTop) {
259
- relativeHeaderPosition = wt.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(_classPrivateFieldGet(_currentTH, this), cellCoords.row, cellCoords.col);
351
+ relativeHeaderPosition = wt.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(_classPrivateFieldGet(this, _currentTH), cellCoords.row, cellCoords.col);
260
352
  } else if (fixedRowBottom) {
261
- relativeHeaderPosition = wt.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(_classPrivateFieldGet(_currentTH, this), cellCoords.row, cellCoords.col);
353
+ relativeHeaderPosition = wt.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(_classPrivateFieldGet(this, _currentTH), cellCoords.row, cellCoords.col);
262
354
  }
263
355
 
264
356
  // If the TH is not a child of the top-left/bottom-left overlay, recalculate using
265
357
  // the left overlay - as this overlay contains the rest of the headers.
266
358
  if (!relativeHeaderPosition) {
267
- relativeHeaderPosition = wt.wtOverlays.inlineStartOverlay.getRelativeCellPosition(_classPrivateFieldGet(_currentTH, this), cellCoords.row, cellCoords.col);
359
+ relativeHeaderPosition = wt.wtOverlays.inlineStartOverlay.getRelativeCellPosition(_classPrivateFieldGet(this, _currentTH), cellCoords.row, cellCoords.col);
268
360
  }
269
- _classPrivateFieldSet(_currentRow, this, this.hot.rowIndexMapper.getVisualFromRenderableIndex(row));
270
- _classPrivateFieldSet(_selectedRows, this, []);
361
+ _classPrivateFieldSet(this, _currentRow, this.hot.rowIndexMapper.getVisualFromRenderableIndex(row));
362
+ _classPrivateFieldSet(this, _selectedRows, []);
271
363
  const isFullRowSelected = this.hot.selection.isSelectedByCorner() || this.hot.selection.isSelectedByRowHeader();
272
364
  if (this.hot.selection.isSelected() && isFullRowSelected) {
273
365
  const selectionRanges = this.hot.getSelectedRange();
@@ -277,23 +369,23 @@ export class ManualRowResize extends BasePlugin {
277
369
 
278
370
  // Add every selected row for resize action.
279
371
  rangeEach(fromRow, toRow, rowIndex => {
280
- if (!_classPrivateFieldGet(_selectedRows, this).includes(rowIndex)) {
281
- _classPrivateFieldGet(_selectedRows, this).push(rowIndex);
372
+ if (!_classPrivateFieldGet(this, _selectedRows).includes(rowIndex)) {
373
+ _classPrivateFieldGet(this, _selectedRows).push(rowIndex);
282
374
  }
283
375
  });
284
376
  });
285
377
  }
286
378
 
287
379
  // Resizing element beyond the current selection (also when there is no selection).
288
- if (!_classPrivateFieldGet(_selectedRows, this).includes(_classPrivateFieldGet(_currentRow, this))) {
289
- _classPrivateFieldSet(_selectedRows, this, [_classPrivateFieldGet(_currentRow, this)]);
380
+ if (!_classPrivateFieldGet(this, _selectedRows).includes(_classPrivateFieldGet(this, _currentRow))) {
381
+ _classPrivateFieldSet(this, _selectedRows, [_classPrivateFieldGet(this, _currentRow)]);
290
382
  }
291
- _classPrivateFieldSet(_startOffset, this, relativeHeaderPosition.top - 6);
292
- _classPrivateFieldSet(_startHeight, this, parseInt(box.height, 10));
293
- _classPrivateFieldGet(_handle, this).style.top = `${_classPrivateFieldGet(_startOffset, this) + _classPrivateFieldGet(_startHeight, this)}px`;
294
- _classPrivateFieldGet(_handle, this).style[this.inlineDir] = `${relativeHeaderPosition.start}px`;
295
- _classPrivateFieldGet(_handle, this).style.width = `${headerWidth}px`;
296
- this.hot.rootElement.appendChild(_classPrivateFieldGet(_handle, this));
383
+ _classPrivateFieldSet(this, _startOffset, relativeHeaderPosition.top - 6);
384
+ _classPrivateFieldSet(this, _startHeight, parseInt(box.height, 10));
385
+ _classPrivateFieldGet(this, _handle).style.top = `${_classPrivateFieldGet(this, _startOffset) + _classPrivateFieldGet(this, _startHeight)}px`;
386
+ _classPrivateFieldGet(this, _handle).style[this.inlineDir] = `${relativeHeaderPosition.start}px`;
387
+ _classPrivateFieldGet(this, _handle).style.width = `${headerWidth}px`;
388
+ this.hot.rootElement.appendChild(_classPrivateFieldGet(this, _handle));
297
389
  }
298
390
 
299
391
  /**
@@ -302,7 +394,7 @@ export class ManualRowResize extends BasePlugin {
302
394
  * @private
303
395
  */
304
396
  refreshHandlePosition() {
305
- _classPrivateFieldGet(_handle, this).style.top = `${_classPrivateFieldGet(_startOffset, this) + _classPrivateFieldGet(_currentHeight, this)}px`;
397
+ _classPrivateFieldGet(this, _handle).style.top = `${_classPrivateFieldGet(this, _startOffset) + _classPrivateFieldGet(this, _currentHeight)}px`;
306
398
  }
307
399
 
308
400
  /**
@@ -311,15 +403,15 @@ export class ManualRowResize extends BasePlugin {
311
403
  * @private
312
404
  */
313
405
  setupGuidePosition() {
314
- const handleWidth = parseInt(outerWidth(_classPrivateFieldGet(_handle, this)), 10);
315
- const handleEndPosition = parseInt(_classPrivateFieldGet(_handle, this).style[this.inlineDir], 10) + handleWidth;
406
+ const handleWidth = parseInt(outerWidth(_classPrivateFieldGet(this, _handle)), 10);
407
+ const handleEndPosition = parseInt(_classPrivateFieldGet(this, _handle).style[this.inlineDir], 10) + handleWidth;
316
408
  const maximumVisibleElementWidth = parseInt(this.hot.view.maximumVisibleElementWidth(0), 10);
317
- addClass(_classPrivateFieldGet(_handle, this), 'active');
318
- addClass(_classPrivateFieldGet(_guide, this), 'active');
319
- _classPrivateFieldGet(_guide, this).style.top = _classPrivateFieldGet(_handle, this).style.top;
320
- _classPrivateFieldGet(_guide, this).style[this.inlineDir] = `${handleEndPosition}px`;
321
- _classPrivateFieldGet(_guide, this).style.width = `${maximumVisibleElementWidth - handleWidth}px`;
322
- this.hot.rootElement.appendChild(_classPrivateFieldGet(_guide, this));
409
+ addClass(_classPrivateFieldGet(this, _handle), 'active');
410
+ addClass(_classPrivateFieldGet(this, _guide), 'active');
411
+ _classPrivateFieldGet(this, _guide).style.top = _classPrivateFieldGet(this, _handle).style.top;
412
+ _classPrivateFieldGet(this, _guide).style[this.inlineDir] = `${handleEndPosition}px`;
413
+ _classPrivateFieldGet(this, _guide).style.width = `${maximumVisibleElementWidth - handleWidth}px`;
414
+ this.hot.rootElement.appendChild(_classPrivateFieldGet(this, _guide));
323
415
  }
324
416
 
325
417
  /**
@@ -328,7 +420,7 @@ export class ManualRowResize extends BasePlugin {
328
420
  * @private
329
421
  */
330
422
  refreshGuidePosition() {
331
- _classPrivateFieldGet(_guide, this).style.top = _classPrivateFieldGet(_handle, this).style.top;
423
+ _classPrivateFieldGet(this, _guide).style.top = _classPrivateFieldGet(this, _handle).style.top;
332
424
  }
333
425
 
334
426
  /**
@@ -337,8 +429,8 @@ export class ManualRowResize extends BasePlugin {
337
429
  * @private
338
430
  */
339
431
  hideHandleAndGuide() {
340
- removeClass(_classPrivateFieldGet(_handle, this), 'active');
341
- removeClass(_classPrivateFieldGet(_guide, this), 'active');
432
+ removeClass(_classPrivateFieldGet(this, _handle), 'active');
433
+ removeClass(_classPrivateFieldGet(this, _guide), 'active');
342
434
  }
343
435
 
344
436
  /**
@@ -385,10 +477,10 @@ export class ManualRowResize extends BasePlugin {
385
477
  getActualRowHeight(row) {
386
478
  // TODO: this should utilize `this.hot.getRowHeight` after it's fixed and working properly.
387
479
  const walkontableHeight = this.hot.view._wt.wtTable.getRowHeight(row);
388
- if (walkontableHeight !== undefined && _classPrivateFieldGet(_newSize, this) < walkontableHeight) {
480
+ if (walkontableHeight !== undefined && _classPrivateFieldGet(this, _newSize) < walkontableHeight) {
389
481
  return walkontableHeight;
390
482
  }
391
- return _classPrivateFieldGet(_newSize, this);
483
+ return _classPrivateFieldGet(this, _newSize);
392
484
  }
393
485
  /**
394
486
  * Auto-size row after doubleclick - callback.
@@ -406,38 +498,31 @@ export class ManualRowResize extends BasePlugin {
406
498
  const resize = (row, forceRender) => {
407
499
  const hookNewSize = this.hot.runHooks('beforeRowResize', this.getActualRowHeight(row), row, true);
408
500
  if (hookNewSize !== undefined) {
409
- _classPrivateFieldSet(_newSize, this, hookNewSize);
501
+ _classPrivateFieldSet(this, _newSize, hookNewSize);
410
502
  }
411
- this.setManualSize(row, _classPrivateFieldGet(_newSize, this)); // double click sets auto row size
503
+ this.setManualSize(row, _classPrivateFieldGet(this, _newSize)); // double click sets auto row size
412
504
 
413
505
  this.hot.runHooks('afterRowResize', this.getActualRowHeight(row), row, true);
414
506
  if (forceRender) {
415
507
  render();
416
508
  }
417
509
  };
418
- if (_classPrivateFieldGet(_dblclick, this) >= 2) {
419
- const selectedRowsLength = _classPrivateFieldGet(_selectedRows, this).length;
510
+ if (_classPrivateFieldGet(this, _dblclick) >= 2) {
511
+ const selectedRowsLength = _classPrivateFieldGet(this, _selectedRows).length;
420
512
  if (selectedRowsLength > 1) {
421
- arrayEach(_classPrivateFieldGet(_selectedRows, this), selectedRow => {
513
+ arrayEach(_classPrivateFieldGet(this, _selectedRows), selectedRow => {
422
514
  resize(selectedRow);
423
515
  });
424
516
  render();
425
517
  } else {
426
- arrayEach(_classPrivateFieldGet(_selectedRows, this), selectedRow => {
518
+ arrayEach(_classPrivateFieldGet(this, _selectedRows), selectedRow => {
427
519
  resize(selectedRow, true);
428
520
  });
429
521
  }
430
522
  }
431
- _classPrivateFieldSet(_dblclick, this, 0);
432
- _classPrivateFieldSet(_autoresizeTimeout, this, null);
523
+ _classPrivateFieldSet(this, _dblclick, 0);
524
+ _classPrivateFieldSet(this, _autoresizeTimeout, null);
433
525
  }
434
-
435
- /**
436
- * 'mousedown' event callback.
437
- *
438
- * @param {MouseEvent} event The mouse event.
439
- */
440
-
441
526
  /**
442
527
  * Binds the mouse events.
443
528
  *
@@ -448,21 +533,12 @@ export class ManualRowResize extends BasePlugin {
448
533
  rootElement,
449
534
  rootWindow
450
535
  } = this.hot;
451
- this.eventManager.addEventListener(rootElement, 'mouseover', e => _assertClassBrand(_ManualRowResize_brand, this, _onMouseOver).call(this, e));
452
- this.eventManager.addEventListener(rootElement, 'mousedown', e => _assertClassBrand(_ManualRowResize_brand, this, _onMouseDown).call(this, e));
453
- this.eventManager.addEventListener(rootWindow, 'mousemove', e => _assertClassBrand(_ManualRowResize_brand, this, _onMouseMove).call(this, e));
454
- this.eventManager.addEventListener(rootWindow, 'mouseup', () => _assertClassBrand(_ManualRowResize_brand, this, _onMouseUp).call(this));
455
- this.eventManager.addEventListener(_classPrivateFieldGet(_handle, this), 'contextmenu', () => _assertClassBrand(_ManualRowResize_brand, this, _onContextMenu).call(this));
536
+ this.eventManager.addEventListener(rootElement, 'mouseover', e => _classPrivateMethodGet(this, _onMouseOver, _onMouseOver2).call(this, e));
537
+ this.eventManager.addEventListener(rootElement, 'mousedown', e => _classPrivateMethodGet(this, _onMouseDown, _onMouseDown2).call(this, e));
538
+ this.eventManager.addEventListener(rootWindow, 'mousemove', e => _classPrivateMethodGet(this, _onMouseMove, _onMouseMove2).call(this, e));
539
+ this.eventManager.addEventListener(rootWindow, 'mouseup', () => _classPrivateMethodGet(this, _onMouseUp, _onMouseUp2).call(this));
540
+ this.eventManager.addEventListener(_classPrivateFieldGet(this, _handle), 'contextmenu', () => _classPrivateMethodGet(this, _onContextMenu, _onContextMenu2).call(this));
456
541
  }
457
-
458
- /**
459
- * Modifies the provided row height, based on the plugin settings.
460
- *
461
- * @param {number} height Row height.
462
- * @param {number} row Visual row index.
463
- * @returns {number}
464
- */
465
-
466
542
  /**
467
543
  * Destroys the plugin instance.
468
544
  */
@@ -470,7 +546,7 @@ export class ManualRowResize extends BasePlugin {
470
546
  super.destroy();
471
547
  }
472
548
  }
473
- function _onMouseOver(event) {
549
+ function _onMouseOver2(event) {
474
550
  // Workaround for #6926 - if the `event.target` is temporarily detached, we can skip this callback and wait for
475
551
  // the next `onmouseover`.
476
552
  if (isDetached(event.target)) {
@@ -478,54 +554,43 @@ function _onMouseOver(event) {
478
554
  }
479
555
 
480
556
  // A "mouseover" action is triggered right after executing "contextmenu" event. It should be ignored.
481
- if (_classPrivateFieldGet(_isTriggeredByRMB, this) === true) {
557
+ if (_classPrivateFieldGet(this, _isTriggeredByRMB) === true) {
482
558
  return;
483
559
  }
484
560
  if (this.checkIfRowHeader(event.target)) {
485
561
  const th = this.getClosestTHParent(event.target);
486
562
  if (th) {
487
- if (!_classPrivateFieldGet(_pressed, this)) {
563
+ if (!_classPrivateFieldGet(this, _pressed)) {
488
564
  this.setupHandlePosition(th);
489
565
  }
490
566
  }
491
567
  }
492
568
  }
493
- function _onMouseDown(event) {
569
+ function _onMouseDown2(event) {
494
570
  if (hasClass(event.target, 'manualRowResizer')) {
495
- this.setupHandlePosition(_classPrivateFieldGet(_currentTH, this));
571
+ this.setupHandlePosition(_classPrivateFieldGet(this, _currentTH));
496
572
  this.setupGuidePosition();
497
- _classPrivateFieldSet(_pressed, this, true);
498
- if (_classPrivateFieldGet(_autoresizeTimeout, this) === null) {
499
- _classPrivateFieldSet(_autoresizeTimeout, this, setTimeout(() => this.afterMouseDownTimeout(), 500));
500
- this.hot._registerTimeout(_classPrivateFieldGet(_autoresizeTimeout, this));
573
+ _classPrivateFieldSet(this, _pressed, true);
574
+ if (_classPrivateFieldGet(this, _autoresizeTimeout) === null) {
575
+ _classPrivateFieldSet(this, _autoresizeTimeout, setTimeout(() => this.afterMouseDownTimeout(), 500));
576
+ this.hot._registerTimeout(_classPrivateFieldGet(this, _autoresizeTimeout));
501
577
  }
502
- _classPrivateFieldSet(_dblclick, this, _classPrivateFieldGet(_dblclick, this) + 1);
503
- _classPrivateFieldSet(_startY, this, event.pageY);
504
- _classPrivateFieldSet(_newSize, this, _classPrivateFieldGet(_startHeight, this));
578
+ _classPrivateFieldSet(this, _dblclick, _classPrivateFieldGet(this, _dblclick) + 1);
579
+ _classPrivateFieldSet(this, _startY, event.pageY);
580
+ _classPrivateFieldSet(this, _newSize, _classPrivateFieldGet(this, _startHeight));
505
581
  }
506
582
  }
507
- /**
508
- * 'mousemove' event callback - refresh the handle and guide positions, cache the new row height.
509
- *
510
- * @param {MouseEvent} event The mouse event.
511
- */
512
- function _onMouseMove(event) {
513
- if (_classPrivateFieldGet(_pressed, this)) {
514
- _classPrivateFieldSet(_currentHeight, this, _classPrivateFieldGet(_startHeight, this) + (event.pageY - _classPrivateFieldGet(_startY, this)));
515
- arrayEach(_classPrivateFieldGet(_selectedRows, this), selectedRow => {
516
- _classPrivateFieldSet(_newSize, this, this.setManualSize(selectedRow, _classPrivateFieldGet(_currentHeight, this)));
583
+ function _onMouseMove2(event) {
584
+ if (_classPrivateFieldGet(this, _pressed)) {
585
+ _classPrivateFieldSet(this, _currentHeight, _classPrivateFieldGet(this, _startHeight) + (event.pageY - _classPrivateFieldGet(this, _startY)));
586
+ arrayEach(_classPrivateFieldGet(this, _selectedRows), selectedRow => {
587
+ _classPrivateFieldSet(this, _newSize, this.setManualSize(selectedRow, _classPrivateFieldGet(this, _currentHeight)));
517
588
  });
518
589
  this.refreshHandlePosition();
519
590
  this.refreshGuidePosition();
520
591
  }
521
592
  }
522
- /**
523
- * 'mouseup' event callback - apply the row resizing.
524
- *
525
- * @fires Hooks#beforeRowResize
526
- * @fires Hooks#afterRowResize
527
- */
528
- function _onMouseUp() {
593
+ function _onMouseUp2() {
529
594
  const render = () => {
530
595
  this.hot.forceFullRender = true;
531
596
  this.hot.view.render(); // updates all
@@ -539,71 +604,65 @@ function _onMouseUp() {
539
604
  this.saveManualRowHeights();
540
605
  this.hot.runHooks('afterRowResize', this.getActualRowHeight(row), row, false);
541
606
  };
542
- if (_classPrivateFieldGet(_pressed, this)) {
607
+ if (_classPrivateFieldGet(this, _pressed)) {
543
608
  this.hideHandleAndGuide();
544
- _classPrivateFieldSet(_pressed, this, false);
545
- if (_classPrivateFieldGet(_newSize, this) !== _classPrivateFieldGet(_startHeight, this)) {
546
- const selectedRowsLength = _classPrivateFieldGet(_selectedRows, this).length;
609
+ _classPrivateFieldSet(this, _pressed, false);
610
+ if (_classPrivateFieldGet(this, _newSize) !== _classPrivateFieldGet(this, _startHeight)) {
611
+ const selectedRowsLength = _classPrivateFieldGet(this, _selectedRows).length;
547
612
  if (selectedRowsLength > 1) {
548
- arrayEach(_classPrivateFieldGet(_selectedRows, this), selectedRow => {
613
+ arrayEach(_classPrivateFieldGet(this, _selectedRows), selectedRow => {
549
614
  runHooks(selectedRow);
550
615
  });
551
616
  render();
552
617
  } else {
553
- arrayEach(_classPrivateFieldGet(_selectedRows, this), selectedRow => {
618
+ arrayEach(_classPrivateFieldGet(this, _selectedRows), selectedRow => {
554
619
  runHooks(selectedRow, true);
555
620
  });
556
621
  }
557
622
  }
558
- this.setupHandlePosition(_classPrivateFieldGet(_currentTH, this));
623
+ this.setupHandlePosition(_classPrivateFieldGet(this, _currentTH));
559
624
  }
560
625
  }
561
- /**
562
- * Callback for "contextmenu" event triggered on element showing move handle. It removes handle and guide elements.
563
- */
564
- function _onContextMenu() {
626
+ function _onContextMenu2() {
565
627
  this.hideHandleAndGuide();
566
- this.hot.rootElement.removeChild(_classPrivateFieldGet(_handle, this));
567
- this.hot.rootElement.removeChild(_classPrivateFieldGet(_guide, this));
568
- _classPrivateFieldSet(_pressed, this, false);
569
- _classPrivateFieldSet(_isTriggeredByRMB, this, true);
628
+ this.hot.rootElement.removeChild(_classPrivateFieldGet(this, _handle));
629
+ this.hot.rootElement.removeChild(_classPrivateFieldGet(this, _guide));
630
+ _classPrivateFieldSet(this, _pressed, false);
631
+ _classPrivateFieldSet(this, _isTriggeredByRMB, true);
570
632
 
571
633
  // There is thrown "mouseover" event right after opening a context menu. This flag inform that handle
572
634
  // shouldn't be drawn just after removing it.
573
635
  this.hot._registerImmediate(() => {
574
- _classPrivateFieldSet(_isTriggeredByRMB, this, false);
636
+ _classPrivateFieldSet(this, _isTriggeredByRMB, false);
575
637
  });
576
638
  }
577
- function _onModifyRowHeight(height, row) {
639
+ function _onModifyRowHeight2(height, row) {
578
640
  let newHeight = height;
579
641
  if (this.enabled) {
580
642
  const physicalRow = this.hot.toPhysicalRow(row);
581
- const rowHeight = _classPrivateFieldGet(_rowHeightsMap, this).getValueAtIndex(physicalRow);
643
+ const rowHeight = _classPrivateFieldGet(this, _rowHeightsMap).getValueAtIndex(physicalRow);
582
644
  if (this.hot.getSettings()[PLUGIN_KEY] && rowHeight) {
583
645
  newHeight = rowHeight;
584
646
  }
585
647
  }
586
648
  return newHeight;
587
649
  }
588
- /**
589
- * Callback to call on map's `init` local hook.
590
- */
591
- function _onMapInit() {
650
+ function _onMapInit2() {
592
651
  const initialSetting = this.hot.getSettings()[PLUGIN_KEY];
593
652
  const loadedManualRowHeights = this.loadManualRowHeights();
594
653
  this.hot.batchExecution(() => {
595
654
  if (typeof loadedManualRowHeights !== 'undefined') {
596
655
  loadedManualRowHeights.forEach((height, index) => {
597
- _classPrivateFieldGet(_rowHeightsMap, this).setValueAtIndex(index, height);
656
+ _classPrivateFieldGet(this, _rowHeightsMap).setValueAtIndex(index, height);
598
657
  });
599
658
  } else if (Array.isArray(initialSetting)) {
600
659
  initialSetting.forEach((height, index) => {
601
- _classPrivateFieldGet(_rowHeightsMap, this).setValueAtIndex(index, height);
660
+ _classPrivateFieldGet(this, _rowHeightsMap).setValueAtIndex(index, height);
602
661
  });
603
- _classPrivateFieldSet(_config, this, initialSetting);
604
- } else if (initialSetting === true && Array.isArray(_classPrivateFieldGet(_config, this))) {
605
- _classPrivateFieldGet(_config, this).forEach((height, index) => {
606
- _classPrivateFieldGet(_rowHeightsMap, this).setValueAtIndex(index, height);
662
+ _classPrivateFieldSet(this, _config, initialSetting);
663
+ } else if (initialSetting === true && Array.isArray(_classPrivateFieldGet(this, _config))) {
664
+ _classPrivateFieldGet(this, _config).forEach((height, index) => {
665
+ _classPrivateFieldGet(this, _rowHeightsMap).setValueAtIndex(index, height);
607
666
  });
608
667
  }
609
668
  }, true);