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
@@ -11,7 +11,6 @@ var _contextMenu = _interopRequireDefault(require("./ui/contextMenu"));
11
11
  var _console = require("../../helpers/console");
12
12
  var _data = require("../../helpers/data");
13
13
  var _translations = require("../../translations");
14
- var _shortcutContexts = require("../../shortcutContexts");
15
14
  var _rowMoveController = _interopRequireDefault(require("./utils/rowMoveController"));
16
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
16
  function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
@@ -20,9 +19,12 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
20
19
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
20
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
22
21
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
24
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
25
- 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"); }
22
+ function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
23
+ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
24
+ function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
25
+ function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
26
+ 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; } }
27
+ function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
26
28
  const PLUGIN_KEY = exports.PLUGIN_KEY = 'nestedRows';
27
29
  const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 300;
28
30
  const SHORTCUTS_GROUP = PLUGIN_KEY;
@@ -42,10 +44,125 @@ const WRONG_DATA_TYPE_ERROR = 'The Nested Rows plugin requires an Array of Objec
42
44
  */
43
45
  var _skipRender = /*#__PURE__*/new WeakMap();
44
46
  var _skipCoreAPIModifiers = /*#__PURE__*/new WeakMap();
45
- var _NestedRows_brand = /*#__PURE__*/new WeakSet();
47
+ var _onBeforeRowMove = /*#__PURE__*/new WeakSet();
48
+ var _onBeforeOnCellMouseDown = /*#__PURE__*/new WeakSet();
49
+ var _onFilterData = /*#__PURE__*/new WeakSet();
50
+ var _onAfterContextMenuDefaultOptions = /*#__PURE__*/new WeakSet();
51
+ var _onAfterGetRowHeader = /*#__PURE__*/new WeakSet();
52
+ var _onModifyRowHeaderWidth = /*#__PURE__*/new WeakSet();
53
+ var _onAfterRemoveRow = /*#__PURE__*/new WeakSet();
54
+ var _onBeforeRemoveRow = /*#__PURE__*/new WeakSet();
55
+ var _onBeforeAddChild = /*#__PURE__*/new WeakSet();
56
+ var _onAfterAddChild = /*#__PURE__*/new WeakSet();
57
+ var _onBeforeDetachChild = /*#__PURE__*/new WeakSet();
58
+ var _onAfterDetachChild = /*#__PURE__*/new WeakSet();
59
+ var _onAfterCreateRow = /*#__PURE__*/new WeakSet();
60
+ var _onAfterInit = /*#__PURE__*/new WeakSet();
61
+ var _onBeforeViewRender = /*#__PURE__*/new WeakSet();
62
+ var _onBeforeLoadData = /*#__PURE__*/new WeakSet();
46
63
  class NestedRows extends _base.BasePlugin {
47
64
  constructor() {
48
65
  super(...arguments);
66
+ /**
67
+ * `beforeLoadData` hook callback.
68
+ *
69
+ * @param {Array} data The source data.
70
+ */
71
+ _classPrivateMethodInitSpec(this, _onBeforeLoadData);
72
+ /**
73
+ * `beforeViewRender` hook callback.
74
+ *
75
+ * @param {boolean} force Indicates if the render call was triggered by a change of settings or data.
76
+ * @param {object} skipRender An object, holder for skipRender functionality.
77
+ */
78
+ _classPrivateMethodInitSpec(this, _onBeforeViewRender);
79
+ /**
80
+ * `afterInit` hook callback.
81
+ */
82
+ _classPrivateMethodInitSpec(this, _onAfterInit);
83
+ /**
84
+ * `afterCreateRow` hook callback.
85
+ */
86
+ _classPrivateMethodInitSpec(this, _onAfterCreateRow);
87
+ /**
88
+ * `afterDetachChild` hook callback.
89
+ *
90
+ * @param {object} parent Parent element.
91
+ * @param {object} element New child element.
92
+ * @param {number} finalElementRowIndex The final row index of the detached element.
93
+ */
94
+ _classPrivateMethodInitSpec(this, _onAfterDetachChild);
95
+ /**
96
+ * `beforeDetachChild` hook callback.
97
+ */
98
+ _classPrivateMethodInitSpec(this, _onBeforeDetachChild);
99
+ /**
100
+ * `afterAddChild` hook callback.
101
+ *
102
+ * @param {object} parent Parent element.
103
+ * @param {object} element New child element.
104
+ */
105
+ _classPrivateMethodInitSpec(this, _onAfterAddChild);
106
+ /**
107
+ * `beforeAddChild` hook callback.
108
+ */
109
+ _classPrivateMethodInitSpec(this, _onBeforeAddChild);
110
+ /**
111
+ * Callback for the `beforeRemoveRow` change list of removed physical indexes by reference. Removing parent node
112
+ * has effect in removing children nodes.
113
+ *
114
+ * @param {number} index Visual index of starter row.
115
+ * @param {number} amount Amount of rows to be removed.
116
+ * @param {Array} physicalRows List of physical indexes.
117
+ */
118
+ _classPrivateMethodInitSpec(this, _onBeforeRemoveRow);
119
+ /**
120
+ * `onAfterRemoveRow` hook callback.
121
+ *
122
+ * @param {number} index Removed row.
123
+ * @param {number} amount Amount of removed rows.
124
+ * @param {Array} logicRows An array of the removed physical rows.
125
+ * @param {string} source Source of action.
126
+ */
127
+ _classPrivateMethodInitSpec(this, _onAfterRemoveRow);
128
+ /**
129
+ * `modifyRowHeaderWidth` hook callback.
130
+ *
131
+ * @param {number} rowHeaderWidth The initial row header width(s).
132
+ * @returns {number}
133
+ */
134
+ _classPrivateMethodInitSpec(this, _onModifyRowHeaderWidth);
135
+ /**
136
+ * `afterGetRowHeader` hook callback.
137
+ *
138
+ * @param {number} row Row index.
139
+ * @param {HTMLElement} TH Row header element.
140
+ */
141
+ _classPrivateMethodInitSpec(this, _onAfterGetRowHeader);
142
+ /**
143
+ * `afterContextMenuDefaultOptions` hook callback.
144
+ *
145
+ * @param {object} defaultOptions The default context menu items order.
146
+ * @returns {boolean}
147
+ */
148
+ _classPrivateMethodInitSpec(this, _onAfterContextMenuDefaultOptions);
149
+ /**
150
+ * Provide custom source data filtering. It's handled by core method and replaces the native filtering.
151
+ *
152
+ * @param {number} index The index where the data filtering starts.
153
+ * @param {number} amount An amount of rows which filtering applies to.
154
+ * @param {number} physicalRows Physical row indexes.
155
+ * @returns {Array}
156
+ */
157
+ _classPrivateMethodInitSpec(this, _onFilterData);
158
+ /**
159
+ * `beforeOnCellMousedown` hook callback.
160
+ *
161
+ * @param {MouseEvent} event Mousedown event.
162
+ * @param {object} coords Cell coords.
163
+ * @param {HTMLElement} TD Clicked cell.
164
+ */
165
+ _classPrivateMethodInitSpec(this, _onBeforeOnCellMouseDown);
49
166
  /**
50
167
  * `beforeRowMove` hook callback.
51
168
  *
@@ -60,7 +177,7 @@ class NestedRows extends _base.BasePlugin {
60
177
  * @fires Hooks#afterRowMove
61
178
  * @returns {boolean}
62
179
  */
63
- _classPrivateMethodInitSpec(this, _NestedRows_brand);
180
+ _classPrivateMethodInitSpec(this, _onBeforeRowMove);
64
181
  /**
65
182
  * Reference to the DataManager instance.
66
183
  *
@@ -87,13 +204,19 @@ class NestedRows extends _base.BasePlugin {
87
204
  *
88
205
  * @type {boolean}
89
206
  */
90
- _classPrivateFieldInitSpec(this, _skipRender, false);
207
+ _classPrivateFieldInitSpec(this, _skipRender, {
208
+ writable: true,
209
+ value: false
210
+ });
91
211
  /**
92
212
  * Allows skipping the internal Core methods call if set as `true`.
93
213
  *
94
214
  * @type {boolean}
95
215
  */
96
- _classPrivateFieldInitSpec(this, _skipCoreAPIModifiers, false);
216
+ _classPrivateFieldInitSpec(this, _skipCoreAPIModifiers, {
217
+ writable: true,
218
+ value: false
219
+ });
97
220
  }
98
221
  static get PLUGIN_KEY() {
99
222
  return PLUGIN_KEY;
@@ -129,13 +252,13 @@ class NestedRows extends _base.BasePlugin {
129
252
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
130
253
  args[_key] = arguments[_key];
131
254
  }
132
- return _assertClassBrand(_NestedRows_brand, _this, _onAfterInit).call(_this, ...args);
255
+ return _classPrivateMethodGet(_this, _onAfterInit, _onAfterInit2).call(_this, ...args);
133
256
  });
134
257
  this.addHook('beforeViewRender', function () {
135
258
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
136
259
  args[_key2] = arguments[_key2];
137
260
  }
138
- return _assertClassBrand(_NestedRows_brand, _this, _onBeforeViewRender).call(_this, ...args);
261
+ return _classPrivateMethodGet(_this, _onBeforeViewRender, _onBeforeViewRender2).call(_this, ...args);
139
262
  });
140
263
  this.addHook('modifyRowData', function () {
141
264
  return _this.onModifyRowData(...arguments);
@@ -150,82 +273,82 @@ class NestedRows extends _base.BasePlugin {
150
273
  for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
151
274
  args[_key3] = arguments[_key3];
152
275
  }
153
- return _assertClassBrand(_NestedRows_brand, _this, _onFilterData).call(_this, ...args);
276
+ return _classPrivateMethodGet(_this, _onFilterData, _onFilterData2).call(_this, ...args);
154
277
  });
155
278
  this.addHook('afterContextMenuDefaultOptions', function () {
156
279
  for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
157
280
  args[_key4] = arguments[_key4];
158
281
  }
159
- return _assertClassBrand(_NestedRows_brand, _this, _onAfterContextMenuDefaultOptions).call(_this, ...args);
282
+ return _classPrivateMethodGet(_this, _onAfterContextMenuDefaultOptions, _onAfterContextMenuDefaultOptions2).call(_this, ...args);
160
283
  });
161
284
  this.addHook('afterGetRowHeader', function () {
162
285
  for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
163
286
  args[_key5] = arguments[_key5];
164
287
  }
165
- return _assertClassBrand(_NestedRows_brand, _this, _onAfterGetRowHeader).call(_this, ...args);
288
+ return _classPrivateMethodGet(_this, _onAfterGetRowHeader, _onAfterGetRowHeader2).call(_this, ...args);
166
289
  });
167
290
  this.addHook('beforeOnCellMouseDown', function () {
168
291
  for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
169
292
  args[_key6] = arguments[_key6];
170
293
  }
171
- return _assertClassBrand(_NestedRows_brand, _this, _onBeforeOnCellMouseDown).call(_this, ...args);
294
+ return _classPrivateMethodGet(_this, _onBeforeOnCellMouseDown, _onBeforeOnCellMouseDown2).call(_this, ...args);
172
295
  });
173
296
  this.addHook('beforeRemoveRow', function () {
174
297
  for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
175
298
  args[_key7] = arguments[_key7];
176
299
  }
177
- return _assertClassBrand(_NestedRows_brand, _this, _onBeforeRemoveRow).call(_this, ...args);
300
+ return _classPrivateMethodGet(_this, _onBeforeRemoveRow, _onBeforeRemoveRow2).call(_this, ...args);
178
301
  });
179
302
  this.addHook('afterRemoveRow', function () {
180
303
  for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
181
304
  args[_key8] = arguments[_key8];
182
305
  }
183
- return _assertClassBrand(_NestedRows_brand, _this, _onAfterRemoveRow).call(_this, ...args);
306
+ return _classPrivateMethodGet(_this, _onAfterRemoveRow, _onAfterRemoveRow2).call(_this, ...args);
184
307
  });
185
308
  this.addHook('beforeAddChild', function () {
186
309
  for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
187
310
  args[_key9] = arguments[_key9];
188
311
  }
189
- return _assertClassBrand(_NestedRows_brand, _this, _onBeforeAddChild).call(_this, ...args);
312
+ return _classPrivateMethodGet(_this, _onBeforeAddChild, _onBeforeAddChild2).call(_this, ...args);
190
313
  });
191
314
  this.addHook('afterAddChild', function () {
192
315
  for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
193
316
  args[_key10] = arguments[_key10];
194
317
  }
195
- return _assertClassBrand(_NestedRows_brand, _this, _onAfterAddChild).call(_this, ...args);
318
+ return _classPrivateMethodGet(_this, _onAfterAddChild, _onAfterAddChild2).call(_this, ...args);
196
319
  });
197
320
  this.addHook('beforeDetachChild', function () {
198
321
  for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
199
322
  args[_key11] = arguments[_key11];
200
323
  }
201
- return _assertClassBrand(_NestedRows_brand, _this, _onBeforeDetachChild).call(_this, ...args);
324
+ return _classPrivateMethodGet(_this, _onBeforeDetachChild, _onBeforeDetachChild2).call(_this, ...args);
202
325
  });
203
326
  this.addHook('afterDetachChild', function () {
204
327
  for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
205
328
  args[_key12] = arguments[_key12];
206
329
  }
207
- return _assertClassBrand(_NestedRows_brand, _this, _onAfterDetachChild).call(_this, ...args);
330
+ return _classPrivateMethodGet(_this, _onAfterDetachChild, _onAfterDetachChild2).call(_this, ...args);
208
331
  });
209
332
  this.addHook('modifyRowHeaderWidth', function () {
210
333
  for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
211
334
  args[_key13] = arguments[_key13];
212
335
  }
213
- return _assertClassBrand(_NestedRows_brand, _this, _onModifyRowHeaderWidth).call(_this, ...args);
336
+ return _classPrivateMethodGet(_this, _onModifyRowHeaderWidth, _onModifyRowHeaderWidth2).call(_this, ...args);
214
337
  });
215
338
  this.addHook('afterCreateRow', function () {
216
339
  for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
217
340
  args[_key14] = arguments[_key14];
218
341
  }
219
- return _assertClassBrand(_NestedRows_brand, _this, _onAfterCreateRow).call(_this, ...args);
342
+ return _classPrivateMethodGet(_this, _onAfterCreateRow, _onAfterCreateRow2).call(_this, ...args);
220
343
  });
221
344
  this.addHook('beforeRowMove', function () {
222
345
  for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
223
346
  args[_key15] = arguments[_key15];
224
347
  }
225
- return _assertClassBrand(_NestedRows_brand, _this, _onBeforeRowMove).call(_this, ...args);
348
+ return _classPrivateMethodGet(_this, _onBeforeRowMove, _onBeforeRowMove2).call(_this, ...args);
226
349
  });
227
- this.addHook('beforeLoadData', data => _assertClassBrand(_NestedRows_brand, this, _onBeforeLoadData).call(this, data));
228
- this.addHook('beforeUpdateData', data => _assertClassBrand(_NestedRows_brand, this, _onBeforeLoadData).call(this, data));
350
+ this.addHook('beforeLoadData', data => _classPrivateMethodGet(this, _onBeforeLoadData, _onBeforeLoadData2).call(this, data));
351
+ this.addHook('beforeUpdateData', data => _classPrivateMethodGet(this, _onBeforeLoadData, _onBeforeLoadData2).call(this, data));
229
352
  this.registerShortcuts();
230
353
  super.enablePlugin();
231
354
  }
@@ -269,24 +392,21 @@ class NestedRows extends _base.BasePlugin {
269
392
  const {
270
393
  highlight
271
394
  } = this.hot.getSelectedRangeLast();
272
- const row = this.collapsingUI.translateTrimmedRow(highlight.row);
273
- if (this.collapsingUI.areChildrenCollapsed(row)) {
274
- this.collapsingUI.expandChildren(row);
275
- } else {
276
- this.collapsingUI.collapseChildren(row);
395
+ if (highlight.col === -1 && highlight.row >= 0) {
396
+ const row = this.collapsingUI.translateTrimmedRow(highlight.row);
397
+ if (this.collapsingUI.areChildrenCollapsed(row)) {
398
+ this.collapsingUI.expandChildren(row);
399
+ } else {
400
+ this.collapsingUI.collapseChildren(row);
401
+ }
277
402
  }
278
-
279
- // prevent default Enter behavior (move to the next row within a selection range)
280
- return false;
281
403
  },
282
404
  runOnlyIf: () => {
283
- var _this$hot$getSelected, _this$hot$getSelected2;
405
+ var _this$hot$getSelected;
284
406
  const highlight = (_this$hot$getSelected = this.hot.getSelectedRangeLast()) === null || _this$hot$getSelected === void 0 ? void 0 : _this$hot$getSelected.highlight;
285
- return highlight && ((_this$hot$getSelected2 = this.hot.getSelectedRangeLast()) === null || _this$hot$getSelected2 === void 0 ? void 0 : _this$hot$getSelected2.isSingle()) && this.hot.selection.isCellVisible(highlight) && highlight.col === -1 && highlight.row >= 0;
407
+ return highlight && this.hot.selection.isCellVisible(highlight) && highlight.isHeader();
286
408
  },
287
- group: SHORTCUTS_GROUP,
288
- relativeToGroup: _shortcutContexts.EDITOR_EDIT_GROUP,
289
- position: 'before'
409
+ group: SHORTCUTS_GROUP
290
410
  });
291
411
  }
292
412
 
@@ -305,7 +425,7 @@ class NestedRows extends _base.BasePlugin {
305
425
  * @private
306
426
  */
307
427
  disableCoreAPIModifiers() {
308
- _classPrivateFieldSet(_skipCoreAPIModifiers, this, true);
428
+ _classPrivateFieldSet(this, _skipCoreAPIModifiers, true);
309
429
  }
310
430
 
311
431
  /**
@@ -314,17 +434,8 @@ class NestedRows extends _base.BasePlugin {
314
434
  * @private
315
435
  */
316
436
  enableCoreAPIModifiers() {
317
- _classPrivateFieldSet(_skipCoreAPIModifiers, this, false);
437
+ _classPrivateFieldSet(this, _skipCoreAPIModifiers, false);
318
438
  }
319
-
320
- /**
321
- * `beforeOnCellMousedown` hook callback.
322
- *
323
- * @param {MouseEvent} event Mousedown event.
324
- * @param {object} coords Cell coords.
325
- * @param {HTMLElement} TD Clicked cell.
326
- */
327
-
328
439
  /**
329
440
  * The modifyRowData hook callback.
330
441
  *
@@ -333,7 +444,7 @@ class NestedRows extends _base.BasePlugin {
333
444
  * @returns {boolean}
334
445
  */
335
446
  onModifyRowData(row) {
336
- if (_classPrivateFieldGet(_skipCoreAPIModifiers, this)) {
447
+ if (_classPrivateFieldGet(this, _skipCoreAPIModifiers)) {
337
448
  return;
338
449
  }
339
450
  return this.dataManager.getDataObject(row);
@@ -346,7 +457,7 @@ class NestedRows extends _base.BasePlugin {
346
457
  * @returns {number}
347
458
  */
348
459
  onModifySourceLength() {
349
- if (_classPrivateFieldGet(_skipCoreAPIModifiers, this)) {
460
+ if (_classPrivateFieldGet(this, _skipCoreAPIModifiers)) {
350
461
  return;
351
462
  }
352
463
  return this.dataManager.countAllRows();
@@ -360,22 +471,12 @@ class NestedRows extends _base.BasePlugin {
360
471
  * @returns {boolean}
361
472
  */
362
473
  onBeforeDataSplice(index, amount, element) {
363
- if (_classPrivateFieldGet(_skipCoreAPIModifiers, this) || this.dataManager.isRowHighestLevel(index)) {
474
+ if (_classPrivateFieldGet(this, _skipCoreAPIModifiers) || this.dataManager.isRowHighestLevel(index)) {
364
475
  return true;
365
476
  }
366
477
  this.dataManager.spliceData(index, amount, element);
367
478
  return false;
368
479
  }
369
-
370
- /**
371
- * Provide custom source data filtering. It's handled by core method and replaces the native filtering.
372
- *
373
- * @param {number} index The index where the data filtering starts.
374
- * @param {number} amount An amount of rows which filtering applies to.
375
- * @param {number} physicalRows Physical row indexes.
376
- * @returns {Array}
377
- */
378
-
379
480
  /**
380
481
  * Destroys the plugin instance.
381
482
  */
@@ -384,74 +485,40 @@ class NestedRows extends _base.BasePlugin {
384
485
  }
385
486
  }
386
487
  exports.NestedRows = NestedRows;
387
- function _onBeforeRowMove(rows, finalIndex, dropIndex, movePossible) {
488
+ function _onBeforeRowMove2(rows, finalIndex, dropIndex, movePossible) {
388
489
  return this.rowMoveController.onBeforeRowMove(rows, finalIndex, dropIndex, movePossible);
389
490
  }
390
- function _onBeforeOnCellMouseDown(event, coords, TD) {
491
+ function _onBeforeOnCellMouseDown2(event, coords, TD) {
391
492
  this.collapsingUI.toggleState(event, coords, TD);
392
493
  }
393
- function _onFilterData(index, amount, physicalRows) {
494
+ function _onFilterData2(index, amount, physicalRows) {
394
495
  this.collapsingUI.collapsedRowsStash.stash();
395
496
  this.collapsingUI.collapsedRowsStash.trimStash(physicalRows[0], amount);
396
497
  this.collapsingUI.collapsedRowsStash.shiftStash(physicalRows[0], null, -1 * amount);
397
498
  this.dataManager.filterData(index, amount, physicalRows);
398
- _classPrivateFieldSet(_skipRender, this, true);
499
+ _classPrivateFieldSet(this, _skipRender, true);
399
500
  return this.dataManager.getData().slice(); // Data contains reference sometimes.
400
501
  }
401
- /**
402
- * `afterContextMenuDefaultOptions` hook callback.
403
- *
404
- * @param {object} defaultOptions The default context menu items order.
405
- * @returns {boolean}
406
- */
407
- function _onAfterContextMenuDefaultOptions(defaultOptions) {
502
+ function _onAfterContextMenuDefaultOptions2(defaultOptions) {
408
503
  return this.contextMenuUI.appendOptions(defaultOptions);
409
504
  }
410
- /**
411
- * `afterGetRowHeader` hook callback.
412
- *
413
- * @param {number} row Row index.
414
- * @param {HTMLElement} TH Row header element.
415
- */
416
- function _onAfterGetRowHeader(row, TH) {
505
+ function _onAfterGetRowHeader2(row, TH) {
417
506
  this.headersUI.appendLevelIndicators(row, TH);
418
507
  }
419
- /**
420
- * `modifyRowHeaderWidth` hook callback.
421
- *
422
- * @param {number} rowHeaderWidth The initial row header width(s).
423
- * @returns {number}
424
- */
425
- function _onModifyRowHeaderWidth(rowHeaderWidth) {
508
+ function _onModifyRowHeaderWidth2(rowHeaderWidth) {
426
509
  return Math.max(this.headersUI.rowHeaderWidthCache, rowHeaderWidth);
427
510
  }
428
- /**
429
- * `onAfterRemoveRow` hook callback.
430
- *
431
- * @param {number} index Removed row.
432
- * @param {number} amount Amount of removed rows.
433
- * @param {Array} logicRows An array of the removed physical rows.
434
- * @param {string} source Source of action.
435
- */
436
- function _onAfterRemoveRow(index, amount, logicRows, source) {
511
+ function _onAfterRemoveRow2(index, amount, logicRows, source) {
437
512
  if (source === this.pluginName) {
438
513
  return;
439
514
  }
440
515
  this.hot._registerTimeout(() => {
441
- _classPrivateFieldSet(_skipRender, this, false);
516
+ _classPrivateFieldSet(this, _skipRender, false);
442
517
  this.headersUI.updateRowHeaderWidth();
443
518
  this.collapsingUI.collapsedRowsStash.applyStash();
444
519
  });
445
520
  }
446
- /**
447
- * Callback for the `beforeRemoveRow` change list of removed physical indexes by reference. Removing parent node
448
- * has effect in removing children nodes.
449
- *
450
- * @param {number} index Visual index of starter row.
451
- * @param {number} amount Amount of rows to be removed.
452
- * @param {Array} physicalRows List of physical indexes.
453
- */
454
- function _onBeforeRemoveRow(index, amount, physicalRows) {
521
+ function _onBeforeRemoveRow2(index, amount, physicalRows) {
455
522
  const modifiedPhysicalRows = Array.from(physicalRows.reduce((removedRows, physicalIndex) => {
456
523
  if (this.dataManager.isParent(physicalIndex)) {
457
524
  const children = this.dataManager.getDataObject(physicalIndex).__children;
@@ -473,70 +540,34 @@ function _onBeforeRemoveRow(index, amount, physicalRows) {
473
540
  physicalRows.length = 0;
474
541
  physicalRows.push(...modifiedPhysicalRows);
475
542
  }
476
- /**
477
- * `beforeAddChild` hook callback.
478
- */
479
- function _onBeforeAddChild() {
543
+ function _onBeforeAddChild2() {
480
544
  this.collapsingUI.collapsedRowsStash.stash();
481
545
  }
482
- /**
483
- * `afterAddChild` hook callback.
484
- *
485
- * @param {object} parent Parent element.
486
- * @param {object} element New child element.
487
- */
488
- function _onAfterAddChild(parent, element) {
546
+ function _onAfterAddChild2(parent, element) {
489
547
  this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(element));
490
548
  this.collapsingUI.collapsedRowsStash.applyStash();
491
549
  this.headersUI.updateRowHeaderWidth();
492
550
  }
493
- /**
494
- * `beforeDetachChild` hook callback.
495
- */
496
- function _onBeforeDetachChild() {
551
+ function _onBeforeDetachChild2() {
497
552
  this.collapsingUI.collapsedRowsStash.stash();
498
553
  }
499
- /**
500
- * `afterDetachChild` hook callback.
501
- *
502
- * @param {object} parent Parent element.
503
- * @param {object} element New child element.
504
- * @param {number} finalElementRowIndex The final row index of the detached element.
505
- */
506
- function _onAfterDetachChild(parent, element, finalElementRowIndex) {
554
+ function _onAfterDetachChild2(parent, element, finalElementRowIndex) {
507
555
  this.collapsingUI.collapsedRowsStash.shiftStash(finalElementRowIndex, null, -1);
508
556
  this.collapsingUI.collapsedRowsStash.applyStash();
509
557
  this.headersUI.updateRowHeaderWidth();
510
558
  }
511
- /**
512
- * `afterCreateRow` hook callback.
513
- */
514
- function _onAfterCreateRow() {
559
+ function _onAfterCreateRow2() {
515
560
  this.dataManager.rewriteCache();
516
561
  }
517
- /**
518
- * `afterInit` hook callback.
519
- */
520
- function _onAfterInit() {
562
+ function _onAfterInit2() {
521
563
  this.headersUI.updateRowHeaderWidth();
522
564
  }
523
- /**
524
- * `beforeViewRender` hook callback.
525
- *
526
- * @param {boolean} force Indicates if the render call was triggered by a change of settings or data.
527
- * @param {object} skipRender An object, holder for skipRender functionality.
528
- */
529
- function _onBeforeViewRender(force, skipRender) {
530
- if (_classPrivateFieldGet(_skipRender, this)) {
565
+ function _onBeforeViewRender2(force, skipRender) {
566
+ if (_classPrivateFieldGet(this, _skipRender)) {
531
567
  skipRender.skipRender = true;
532
568
  }
533
569
  }
534
- /**
535
- * `beforeLoadData` hook callback.
536
- *
537
- * @param {Array} data The source data.
538
- */
539
- function _onBeforeLoadData(data) {
570
+ function _onBeforeLoadData2(data) {
540
571
  if (!(0, _data.isArrayOfObjects)(data)) {
541
572
  (0, _console.error)(WRONG_DATA_TYPE_ERROR);
542
573
  this.hot.getSettings()[PLUGIN_KEY] = false;