handsontable 0.0.0-next-bfb0e3a-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 (280) 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/overlays.js +1 -1
  15. package/3rdparty/walkontable/src/overlays.mjs +1 -1
  16. package/3rdparty/walkontable/src/scroll.js +17 -15
  17. package/3rdparty/walkontable/src/scroll.mjs +17 -15
  18. package/3rdparty/walkontable/src/selection/manager.js +69 -48
  19. package/3rdparty/walkontable/src/selection/manager.mjs +69 -48
  20. package/3rdparty/walkontable/src/selection/scanner.js +42 -33
  21. package/3rdparty/walkontable/src/selection/scanner.mjs +42 -33
  22. package/3rdparty/walkontable/src/utils/columnStretching.js +44 -27
  23. package/3rdparty/walkontable/src/utils/columnStretching.mjs +44 -27
  24. package/3rdparty/walkontable/src/utils/orderView/view.js +1 -1
  25. package/3rdparty/walkontable/src/utils/orderView/view.mjs +1 -1
  26. package/base.js +2 -2
  27. package/base.mjs +2 -2
  28. package/core/viewportScroll/index.js +1 -4
  29. package/core/viewportScroll/index.mjs +1 -4
  30. package/core.d.ts +3 -4
  31. package/core.js +22 -77
  32. package/core.mjs +22 -77
  33. package/dataMap/dataSource.js +1 -1
  34. package/dataMap/dataSource.mjs +1 -1
  35. package/dataMap/metaManager/metaLayers/cellMeta.js +1 -1
  36. package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -1
  37. package/dataMap/metaManager/metaSchema.js +1 -1
  38. package/dataMap/metaManager/metaSchema.mjs +1 -1
  39. package/dataMap/replaceData.js +1 -1
  40. package/dataMap/replaceData.mjs +1 -1
  41. package/dist/handsontable.css +4 -4
  42. package/dist/handsontable.full.css +4 -4
  43. package/dist/handsontable.full.js +9117 -8969
  44. package/dist/handsontable.full.min.css +3 -3
  45. package/dist/handsontable.full.min.js +292 -292
  46. package/dist/handsontable.js +6569 -6874
  47. package/dist/handsontable.min.css +3 -3
  48. package/dist/handsontable.min.js +25 -25
  49. package/dist/languages/all.min.js +1 -1
  50. package/dist/languages/ar-AR.min.js +1 -1
  51. package/dist/languages/cs-CZ.min.js +1 -1
  52. package/dist/languages/de-CH.min.js +1 -1
  53. package/dist/languages/de-DE.min.js +1 -1
  54. package/dist/languages/en-US.min.js +1 -1
  55. package/dist/languages/es-MX.min.js +1 -1
  56. package/dist/languages/fr-FR.min.js +1 -1
  57. package/dist/languages/hr-HR.min.js +1 -1
  58. package/dist/languages/it-IT.min.js +1 -1
  59. package/dist/languages/ja-JP.min.js +1 -1
  60. package/dist/languages/ko-KR.min.js +1 -1
  61. package/dist/languages/lv-LV.min.js +1 -1
  62. package/dist/languages/nb-NO.min.js +1 -1
  63. package/dist/languages/nl-NL.min.js +1 -1
  64. package/dist/languages/pl-PL.min.js +1 -1
  65. package/dist/languages/pt-BR.min.js +1 -1
  66. package/dist/languages/ru-RU.min.js +1 -1
  67. package/dist/languages/sr-SP.min.js +1 -1
  68. package/dist/languages/zh-CN.min.js +1 -1
  69. package/dist/languages/zh-TW.min.js +1 -1
  70. package/editorManager.js +23 -25
  71. package/editorManager.mjs +23 -25
  72. package/editors/autocompleteEditor/autocompleteEditor.js +10 -6
  73. package/editors/autocompleteEditor/autocompleteEditor.mjs +10 -6
  74. package/editors/selectEditor/selectEditor.js +19 -20
  75. package/editors/selectEditor/selectEditor.mjs +19 -20
  76. package/eventManager.js +1 -1
  77. package/eventManager.mjs +1 -1
  78. package/focusManager.js +82 -64
  79. package/focusManager.mjs +82 -64
  80. package/helpers/dom/element.js +1 -1
  81. package/helpers/dom/element.mjs +1 -1
  82. package/helpers/mixed.js +1 -1
  83. package/helpers/mixed.mjs +1 -1
  84. package/helpers/object.js +2 -2
  85. package/helpers/object.mjs +2 -2
  86. package/index.d.ts +0 -10
  87. package/package.json +2 -7
  88. package/pluginHooks.d.ts +3 -4
  89. package/pluginHooks.js +38 -99
  90. package/pluginHooks.mjs +38 -99
  91. package/plugins/autoColumnSize/autoColumnSize.js +65 -49
  92. package/plugins/autoColumnSize/autoColumnSize.mjs +65 -49
  93. package/plugins/autoRowSize/autoRowSize.js +34 -28
  94. package/plugins/autoRowSize/autoRowSize.mjs +34 -28
  95. package/plugins/autofill/autofill.js +38 -30
  96. package/plugins/autofill/autofill.mjs +38 -30
  97. package/plugins/base/base.js +17 -12
  98. package/plugins/base/base.mjs +17 -12
  99. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +5 -5
  100. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +5 -5
  101. package/plugins/collapsibleColumns/collapsibleColumns.js +50 -59
  102. package/plugins/collapsibleColumns/collapsibleColumns.mjs +50 -59
  103. package/plugins/columnSorting/columnSorting.js +45 -49
  104. package/plugins/columnSorting/columnSorting.mjs +45 -49
  105. package/plugins/columnSummary/columnSummary.js +26 -22
  106. package/plugins/columnSummary/columnSummary.mjs +26 -22
  107. package/plugins/comments/comments.js +158 -116
  108. package/plugins/comments/comments.mjs +158 -116
  109. package/plugins/contextMenu/contextMenu.js +26 -20
  110. package/plugins/contextMenu/contextMenu.mjs +26 -20
  111. package/plugins/contextMenu/itemsFactory.js +1 -1
  112. package/plugins/contextMenu/itemsFactory.mjs +1 -1
  113. package/plugins/contextMenu/menu/defaultShortcutsList.js +10 -26
  114. package/plugins/contextMenu/menu/defaultShortcutsList.mjs +10 -26
  115. package/plugins/contextMenu/menu/menu.js +21 -13
  116. package/plugins/contextMenu/menu/menu.mjs +21 -13
  117. package/plugins/contextMenu/menu/positioner.js +58 -41
  118. package/plugins/contextMenu/menu/positioner.mjs +58 -41
  119. package/plugins/copyPaste/copyPaste.js +157 -116
  120. package/plugins/copyPaste/copyPaste.mjs +157 -116
  121. package/plugins/copyPaste/copyableRanges.js +66 -43
  122. package/plugins/copyPaste/copyableRanges.mjs +66 -43
  123. package/plugins/customBorders/customBorders.js +13 -11
  124. package/plugins/customBorders/customBorders.mjs +13 -11
  125. package/plugins/dragToScroll/dragToScroll.js +6 -6
  126. package/plugins/dragToScroll/dragToScroll.mjs +6 -6
  127. package/plugins/dropdownMenu/dropdownMenu.js +106 -80
  128. package/plugins/dropdownMenu/dropdownMenu.mjs +106 -80
  129. package/plugins/exportFile/dataProvider.js +1 -1
  130. package/plugins/exportFile/dataProvider.mjs +1 -1
  131. package/plugins/filters/component/actionBar.js +9 -9
  132. package/plugins/filters/component/actionBar.mjs +8 -8
  133. package/plugins/filters/component/condition.js +15 -13
  134. package/plugins/filters/component/condition.mjs +15 -13
  135. package/plugins/filters/component/operators.js +6 -6
  136. package/plugins/filters/component/operators.mjs +6 -6
  137. package/plugins/filters/component/value.js +28 -24
  138. package/plugins/filters/component/value.mjs +28 -24
  139. package/plugins/filters/conditionUpdateObserver.js +24 -22
  140. package/plugins/filters/conditionUpdateObserver.mjs +24 -22
  141. package/plugins/filters/dataFilter.js +1 -1
  142. package/plugins/filters/dataFilter.mjs +1 -1
  143. package/plugins/filters/filters.js +95 -81
  144. package/plugins/filters/filters.mjs +95 -81
  145. package/plugins/filters/ui/input.js +19 -13
  146. package/plugins/filters/ui/input.mjs +19 -13
  147. package/plugins/filters/ui/link.js +13 -8
  148. package/plugins/filters/ui/link.mjs +13 -8
  149. package/plugins/filters/ui/multipleSelect.js +112 -85
  150. package/plugins/filters/ui/multipleSelect.mjs +112 -85
  151. package/plugins/filters/ui/radioInput.js +20 -12
  152. package/plugins/filters/ui/radioInput.mjs +20 -12
  153. package/plugins/filters/ui/select.js +72 -50
  154. package/plugins/filters/ui/select.mjs +71 -49
  155. package/plugins/formulas/formulas.js +326 -268
  156. package/plugins/formulas/formulas.mjs +327 -269
  157. package/plugins/formulas/indexSyncer/axisSyncer.js +61 -38
  158. package/plugins/formulas/indexSyncer/axisSyncer.mjs +61 -38
  159. package/plugins/formulas/indexSyncer/index.js +48 -25
  160. package/plugins/formulas/indexSyncer/index.mjs +48 -25
  161. package/plugins/hiddenColumns/hiddenColumns.js +83 -64
  162. package/plugins/hiddenColumns/hiddenColumns.mjs +83 -64
  163. package/plugins/hiddenRows/hiddenRows.js +82 -63
  164. package/plugins/hiddenRows/hiddenRows.mjs +82 -63
  165. package/plugins/manualColumnFreeze/manualColumnFreeze.js +32 -24
  166. package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +33 -25
  167. package/plugins/manualColumnMove/manualColumnMove.js +170 -126
  168. package/plugins/manualColumnMove/manualColumnMove.mjs +170 -126
  169. package/plugins/manualColumnResize/manualColumnResize.js +230 -169
  170. package/plugins/manualColumnResize/manualColumnResize.mjs +230 -169
  171. package/plugins/manualRowMove/manualRowMove.js +128 -99
  172. package/plugins/manualRowMove/manualRowMove.mjs +128 -99
  173. package/plugins/manualRowResize/manualRowResize.js +209 -150
  174. package/plugins/manualRowResize/manualRowResize.mjs +209 -150
  175. package/plugins/mergeCells/calculations/selection.js +71 -2
  176. package/plugins/mergeCells/calculations/selection.mjs +71 -2
  177. package/plugins/mergeCells/cellsCollection.js +1 -117
  178. package/plugins/mergeCells/cellsCollection.mjs +1 -117
  179. package/plugins/mergeCells/contextMenuItem/toggleMerge.js +1 -11
  180. package/plugins/mergeCells/contextMenuItem/toggleMerge.mjs +1 -11
  181. package/plugins/mergeCells/mergeCells.js +397 -499
  182. package/plugins/mergeCells/mergeCells.mjs +397 -499
  183. package/plugins/multiColumnSorting/multiColumnSorting.js +2 -8
  184. package/plugins/multiColumnSorting/multiColumnSorting.mjs +2 -8
  185. package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +1 -1
  186. package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +1 -1
  187. package/plugins/nestedHeaders/nestedHeaders.js +253 -205
  188. package/plugins/nestedHeaders/nestedHeaders.mjs +254 -206
  189. package/plugins/nestedHeaders/stateManager/headersTree.js +32 -21
  190. package/plugins/nestedHeaders/stateManager/headersTree.mjs +32 -21
  191. package/plugins/nestedHeaders/stateManager/index.js +41 -30
  192. package/plugins/nestedHeaders/stateManager/index.mjs +41 -30
  193. package/plugins/nestedHeaders/stateManager/sourceSettings.js +30 -19
  194. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +30 -19
  195. package/plugins/nestedRows/data/dataManager.js +1 -1
  196. package/plugins/nestedRows/data/dataManager.mjs +1 -1
  197. package/plugins/nestedRows/nestedRows.js +182 -151
  198. package/plugins/nestedRows/nestedRows.mjs +183 -152
  199. package/plugins/nestedRows/ui/contextMenu.js +15 -11
  200. package/plugins/nestedRows/ui/contextMenu.mjs +14 -10
  201. package/plugins/nestedRows/utils/rowMoveController.js +1 -1
  202. package/plugins/nestedRows/utils/rowMoveController.mjs +1 -1
  203. package/plugins/persistentState/storage.js +2 -2
  204. package/plugins/persistentState/storage.mjs +2 -2
  205. package/plugins/search/search.js +7 -7
  206. package/plugins/search/search.mjs +7 -7
  207. package/plugins/touchScroll/touchScroll.js +19 -15
  208. package/plugins/touchScroll/touchScroll.mjs +20 -16
  209. package/plugins/trimRows/trimRows.js +6 -6
  210. package/plugins/trimRows/trimRows.mjs +6 -6
  211. package/renderers/checkboxRenderer/checkboxRenderer.js +5 -8
  212. package/renderers/checkboxRenderer/checkboxRenderer.mjs +5 -8
  213. package/selection/highlight/highlight.js +14 -14
  214. package/selection/highlight/highlight.mjs +13 -13
  215. package/selection/highlight/visualSelection.js +0 -2
  216. package/selection/highlight/visualSelection.mjs +0 -2
  217. package/selection/selection.js +67 -225
  218. package/selection/selection.mjs +66 -224
  219. package/selection/transformation.js +118 -149
  220. package/selection/transformation.mjs +118 -149
  221. package/shortcutContexts/commands/editor/closeAndSave.js +2 -2
  222. package/shortcutContexts/commands/editor/closeAndSave.mjs +2 -2
  223. package/shortcutContexts/commands/editor/open.js +3 -18
  224. package/shortcutContexts/commands/editor/open.mjs +3 -18
  225. package/shortcutContexts/commands/extendCellsSelection/down.js +1 -1
  226. package/shortcutContexts/commands/extendCellsSelection/down.mjs +1 -1
  227. package/shortcutContexts/commands/extendCellsSelection/left.js +1 -1
  228. package/shortcutContexts/commands/extendCellsSelection/left.mjs +1 -1
  229. package/shortcutContexts/commands/extendCellsSelection/right.js +1 -1
  230. package/shortcutContexts/commands/extendCellsSelection/right.mjs +1 -1
  231. package/shortcutContexts/commands/extendCellsSelection/toColumns.js +1 -1
  232. package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +1 -1
  233. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +1 -3
  234. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +1 -3
  235. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +3 -9
  236. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +3 -9
  237. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +3 -10
  238. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +3 -10
  239. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +1 -3
  240. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +1 -3
  241. package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +1 -3
  242. package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +1 -3
  243. package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +1 -3
  244. package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +1 -3
  245. package/shortcutContexts/commands/extendCellsSelection/toRows.js +1 -1
  246. package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +1 -1
  247. package/shortcutContexts/commands/extendCellsSelection/up.js +1 -1
  248. package/shortcutContexts/commands/extendCellsSelection/up.mjs +1 -1
  249. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +1 -6
  250. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +1 -6
  251. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +1 -6
  252. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +1 -6
  253. package/shortcutContexts/grid.js +3 -9
  254. package/shortcutContexts/grid.mjs +3 -9
  255. package/shortcuts/context.js +1 -2
  256. package/shortcuts/context.mjs +1 -2
  257. package/tableView.js +78 -52
  258. package/tableView.mjs +78 -52
  259. package/translations/changesObservable/observable.js +38 -21
  260. package/translations/changesObservable/observable.mjs +38 -21
  261. package/translations/changesObservable/observer.js +12 -7
  262. package/translations/changesObservable/observer.mjs +11 -6
  263. package/translations/mapCollections/aggregatedCollection.js +1 -1
  264. package/translations/mapCollections/aggregatedCollection.mjs +1 -1
  265. package/translations/maps/indexMap.js +1 -1
  266. package/translations/maps/indexMap.mjs +1 -1
  267. package/utils/dataStructures/linkedList.js +1 -6
  268. package/utils/dataStructures/linkedList.mjs +1 -6
  269. package/utils/dataStructures/tree.js +1 -1
  270. package/utils/dataStructures/tree.mjs +1 -1
  271. package/utils/interval.js +44 -26
  272. package/utils/interval.mjs +44 -26
  273. package/core/viewportScroll/scrollStrategies/focusScroll.js +0 -15
  274. package/core/viewportScroll/scrollStrategies/focusScroll.mjs +0 -11
  275. package/i18n/languages/ar-AR.d.ts +0 -5
  276. package/i18n/languages/cs-CZ.d.ts +0 -5
  277. package/i18n/languages/hr-HR.d.ts +0 -5
  278. package/i18n/languages/sr-SP.d.ts +0 -5
  279. package/plugins/mergeCells/focusOrder.js +0 -305
  280. package/plugins/mergeCells/focusOrder.mjs +0 -300
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
+ require("core-js/modules/es.json.stringify.js");
4
5
  require("core-js/modules/es.error.cause.js");
5
6
  require("core-js/modules/es.array.push.js");
6
- require("core-js/modules/es.json.stringify.js");
7
7
  var _base = require("../base");
8
8
  var _staticRegister = _interopRequireDefault(require("../../utils/staticRegister"));
9
9
  var _console = require("../../helpers/console");
@@ -23,9 +23,12 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
23
23
  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); }
24
24
  function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
25
25
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
26
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
27
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
28
- 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"); }
26
+ function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
27
+ 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; } }
28
+ function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
29
+ function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
30
+ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
31
+ function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
29
32
  const PLUGIN_KEY = exports.PLUGIN_KEY = 'formulas';
30
33
  const SETTING_KEYS = exports.SETTING_KEYS = ['maxRows', 'maxColumns', 'language'];
31
34
  const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 260;
@@ -55,12 +58,228 @@ const isBlockedSource = source => source === 'UndoRedo.undo' || source === 'Undo
55
58
  var _internalOperationPending = /*#__PURE__*/new WeakMap();
56
59
  var _hotWasInitializedWithEmptyData = /*#__PURE__*/new WeakMap();
57
60
  var _engineListeners = /*#__PURE__*/new WeakMap();
58
- var _Formulas_brand = /*#__PURE__*/new WeakSet();
61
+ var _onBeforeValidate = /*#__PURE__*/new WeakSet();
62
+ var _onBeforeAutofill = /*#__PURE__*/new WeakSet();
63
+ var _onBeforeLoadData = /*#__PURE__*/new WeakSet();
64
+ var _onAfterCellMetaReset = /*#__PURE__*/new WeakSet();
65
+ var _onAfterLoadData = /*#__PURE__*/new WeakSet();
66
+ var _onModifyData = /*#__PURE__*/new WeakSet();
67
+ var _onModifySourceData = /*#__PURE__*/new WeakSet();
68
+ var _onAfterSetDataAtCell = /*#__PURE__*/new WeakSet();
69
+ var _onAfterSetSourceDataAtCell = /*#__PURE__*/new WeakSet();
70
+ var _onBeforeCreateRow = /*#__PURE__*/new WeakSet();
71
+ var _onBeforeCreateCol = /*#__PURE__*/new WeakSet();
72
+ var _onBeforeRemoveRow = /*#__PURE__*/new WeakSet();
73
+ var _onBeforeRemoveCol = /*#__PURE__*/new WeakSet();
74
+ var _onAfterCreateRow = /*#__PURE__*/new WeakSet();
75
+ var _onAfterCreateCol = /*#__PURE__*/new WeakSet();
76
+ var _onAfterRemoveRow = /*#__PURE__*/new WeakSet();
77
+ var _onAfterRemoveCol = /*#__PURE__*/new WeakSet();
78
+ var _onAfterDetachChild = /*#__PURE__*/new WeakSet();
79
+ var _onEngineValuesUpdated = /*#__PURE__*/new WeakSet();
80
+ var _onEngineNamedExpressionsAdded = /*#__PURE__*/new WeakSet();
81
+ var _onEngineNamedExpressionsRemoved = /*#__PURE__*/new WeakSet();
82
+ var _onEngineSheetAdded = /*#__PURE__*/new WeakSet();
83
+ var _onEngineSheetRenamed = /*#__PURE__*/new WeakSet();
84
+ var _onEngineSheetRemoved = /*#__PURE__*/new WeakSet();
59
85
  class Formulas extends _base.BasePlugin {
60
86
  constructor() {
61
87
  var _this;
62
88
  super(...arguments);
63
89
  _this = this;
90
+ /**
91
+ * Called when a sheet is removed from the engine instance.
92
+ *
93
+ * @fires Hooks#afterSheetRemoved
94
+ * @param {string} removedSheetDisplayName The removed sheet name.
95
+ * @param {Array} changes The values and location of applied changes.
96
+ */
97
+ _classPrivateMethodInitSpec(this, _onEngineSheetRemoved);
98
+ /**
99
+ * Called when a sheet in the engine instance is renamed.
100
+ *
101
+ * @fires Hooks#afterSheetRenamed
102
+ * @param {string} oldDisplayName The old name of the sheet.
103
+ * @param {string} newDisplayName The new name of the sheet.
104
+ */
105
+ _classPrivateMethodInitSpec(this, _onEngineSheetRenamed);
106
+ /**
107
+ * Called when a new sheet is added to the engine instance.
108
+ *
109
+ * @fires Hooks#afterSheetAdded
110
+ * @param {string} addedSheetDisplayName The name of the added sheet.
111
+ */
112
+ _classPrivateMethodInitSpec(this, _onEngineSheetAdded);
113
+ /**
114
+ * Called when a named expression is removed from the engine instance.
115
+ *
116
+ * @fires Hooks#afterNamedExpressionRemoved
117
+ * @param {string} namedExpressionName The name of the removed expression.
118
+ * @param {Array} changes The values and location of applied changes.
119
+ */
120
+ _classPrivateMethodInitSpec(this, _onEngineNamedExpressionsRemoved);
121
+ /**
122
+ * Called when a named expression is added to the engine instance.
123
+ *
124
+ * @fires Hooks#afterNamedExpressionAdded
125
+ * @param {string} namedExpressionName The name of the added expression.
126
+ * @param {Array} changes The values and location of applied changes.
127
+ */
128
+ _classPrivateMethodInitSpec(this, _onEngineNamedExpressionsAdded);
129
+ /**
130
+ * Called when a value is updated in the engine.
131
+ *
132
+ * @fires Hooks#afterFormulasValuesUpdate
133
+ * @param {Array} changes The values and location of applied changes.
134
+ */
135
+ _classPrivateMethodInitSpec(this, _onEngineValuesUpdated);
136
+ /**
137
+ * `afterDetachChild` hook callback.
138
+ * Used to sync the data of the rows detached in the Nested Rows plugin with the engine's dataset.
139
+ *
140
+ * @param {object} parent An object representing the parent from which the element was detached.
141
+ * @param {object} element The detached element.
142
+ * @param {number} finalElementRowIndex The final row index of the detached element.
143
+ */
144
+ _classPrivateMethodInitSpec(this, _onAfterDetachChild);
145
+ /**
146
+ * `afterRemoveCol` hook callback.
147
+ *
148
+ * @param {number} col Visual index of starter column.
149
+ * @param {number} amount An amount of removed columns.
150
+ * @param {number[]} physicalColumns An array of physical columns removed from the data source.
151
+ * @param {string} [source] String that identifies source of hook call
152
+ * ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
153
+ */
154
+ _classPrivateMethodInitSpec(this, _onAfterRemoveCol);
155
+ /**
156
+ * `afterRemoveRow` hook callback.
157
+ *
158
+ * @param {number} row Visual index of starter row.
159
+ * @param {number} amount An amount of removed rows.
160
+ * @param {number[]} physicalRows An array of physical rows removed from the data source.
161
+ * @param {string} [source] String that identifies source of hook call
162
+ * ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
163
+ */
164
+ _classPrivateMethodInitSpec(this, _onAfterRemoveRow);
165
+ /**
166
+ * `afterCreateCol` hook callback.
167
+ *
168
+ * @param {number} visualColumn Represents the visual index of first newly created column in the data source.
169
+ * @param {number} amount Number of newly created columns in the data source.
170
+ * @param {string} [source] String that identifies source of hook call
171
+ * ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
172
+ */
173
+ _classPrivateMethodInitSpec(this, _onAfterCreateCol);
174
+ /**
175
+ * `afterCreateRow` hook callback.
176
+ *
177
+ * @param {number} visualRow Represents the visual index of first newly created row in the data source array.
178
+ * @param {number} amount Number of newly created rows in the data source array.
179
+ * @param {string} [source] String that identifies source of hook call
180
+ * ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
181
+ */
182
+ _classPrivateMethodInitSpec(this, _onAfterCreateRow);
183
+ /**
184
+ * `beforeRemoveCol` hook callback.
185
+ *
186
+ * @param {number} col Visual index of starter column.
187
+ * @param {number} amount Amount of columns to be removed.
188
+ * @param {number[]} physicalColumns An array of physical columns removed from the data source.
189
+ * @returns {*|boolean} If false is returned the action is canceled.
190
+ */
191
+ _classPrivateMethodInitSpec(this, _onBeforeRemoveCol);
192
+ /**
193
+ * `beforeRemoveRow` hook callback.
194
+ *
195
+ * @param {number} row Visual index of starter row.
196
+ * @param {number} amount Amount of rows to be removed.
197
+ * @param {number[]} physicalRows An array of physical rows removed from the data source.
198
+ * @returns {*|boolean} If false is returned the action is canceled.
199
+ */
200
+ _classPrivateMethodInitSpec(this, _onBeforeRemoveRow);
201
+ /**
202
+ * `beforeCreateCol` hook callback.
203
+ *
204
+ * @param {number} visualColumn Represents the visual index of first newly created column in the data source.
205
+ * @param {number} amount Number of newly created columns in the data source.
206
+ * @returns {*|boolean} If false is returned the action is canceled.
207
+ */
208
+ _classPrivateMethodInitSpec(this, _onBeforeCreateCol);
209
+ /**
210
+ * `beforeCreateRow` hook callback.
211
+ *
212
+ * @param {number} visualRow Represents the visual index of first newly created row in the data source array.
213
+ * @param {number} amount Number of newly created rows in the data source array.
214
+ * @returns {*|boolean} If false is returned the action is canceled.
215
+ */
216
+ _classPrivateMethodInitSpec(this, _onBeforeCreateRow);
217
+ /**
218
+ * `onAfterSetSourceDataAtCell` hook callback.
219
+ *
220
+ * @param {Array[]} changes An array of changes in format [[row, column, oldValue, value], ...].
221
+ * @param {string} [source] String that identifies source of hook call
222
+ * ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
223
+ */
224
+ _classPrivateMethodInitSpec(this, _onAfterSetSourceDataAtCell);
225
+ /**
226
+ * `onAfterSetDataAtCell` hook callback.
227
+ *
228
+ * @param {Array[]} changes An array of changes in format [[row, prop, oldValue, value], ...].
229
+ * @param {string} [source] String that identifies source of hook call
230
+ * ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
231
+ */
232
+ _classPrivateMethodInitSpec(this, _onAfterSetDataAtCell);
233
+ /**
234
+ * `modifySourceData` hook callback.
235
+ *
236
+ * @param {number} row Physical row index.
237
+ * @param {number|string} columnOrProp Physical column index or prop.
238
+ * @param {object} valueHolder Object which contains original value which can be modified by overwriting `.value`
239
+ * property.
240
+ * @param {string} ioMode String which indicates for what operation hook is fired (`get` or `set`).
241
+ */
242
+ _classPrivateMethodInitSpec(this, _onModifySourceData);
243
+ /**
244
+ * `modifyData` hook callback.
245
+ *
246
+ * @param {number} physicalRow Physical row index.
247
+ * @param {number} visualColumn Visual column index.
248
+ * @param {object} valueHolder Object which contains original value which can be modified by overwriting `.value`
249
+ * property.
250
+ * @param {string} ioMode String which indicates for what operation hook is fired (`get` or `set`).
251
+ */
252
+ _classPrivateMethodInitSpec(this, _onModifyData);
253
+ /**
254
+ * `afterLoadData` hook callback.
255
+ *
256
+ * @param {Array} sourceData Array of arrays or array of objects containing data.
257
+ * @param {boolean} initialLoad Flag that determines whether the data has been loaded during the initialization.
258
+ * @param {string} [source] Source of the call.
259
+ */
260
+ _classPrivateMethodInitSpec(this, _onAfterLoadData);
261
+ /**
262
+ * Callback to `afterCellMetaReset` hook which is triggered after setting cell meta.
263
+ */
264
+ _classPrivateMethodInitSpec(this, _onAfterCellMetaReset);
265
+ /**
266
+ * `beforeLoadData` hook callback.
267
+ *
268
+ * @param {Array} sourceData Array of arrays or array of objects containing data.
269
+ * @param {boolean} initialLoad Flag that determines whether the data has been loaded during the initialization.
270
+ * @param {string} [source] Source of the call.
271
+ */
272
+ _classPrivateMethodInitSpec(this, _onBeforeLoadData);
273
+ /**
274
+ * `onBeforeAutofill` hook callback.
275
+ *
276
+ * @param {Array[]} fillData The data that was used to fill the `targetRange`. If `beforeAutofill` was used
277
+ * and returned `[[]]`, this will be the same object that was returned from `beforeAutofill`.
278
+ * @param {CellRange} sourceRange The range values will be filled from.
279
+ * @param {CellRange} targetRange The range new values will be filled into.
280
+ * @returns {boolean|*}
281
+ */
282
+ _classPrivateMethodInitSpec(this, _onBeforeAutofill);
64
283
  /**
65
284
  * The hook allows to translate the formula value to calculated value before it goes to the
66
285
  * validator function.
@@ -70,57 +289,66 @@ class Formulas extends _base.BasePlugin {
70
289
  * @param {number|string} prop The visual column index or property name of the column.
71
290
  * @returns {*} Returns value to validate.
72
291
  */
73
- _classPrivateMethodInitSpec(this, _Formulas_brand);
292
+ _classPrivateMethodInitSpec(this, _onBeforeValidate);
74
293
  /**
75
294
  * Flag used to bypass hooks in internal operations.
76
295
  *
77
296
  * @private
78
297
  * @type {boolean}
79
298
  */
80
- _classPrivateFieldInitSpec(this, _internalOperationPending, false);
299
+ _classPrivateFieldInitSpec(this, _internalOperationPending, {
300
+ writable: true,
301
+ value: false
302
+ });
81
303
  /**
82
304
  * Flag needed to mark if Handsontable was initialized with no data.
83
305
  * (Required to work around the fact, that Handsontable auto-generates sample data, when no data is provided).
84
306
  *
85
307
  * @type {boolean}
86
308
  */
87
- _classPrivateFieldInitSpec(this, _hotWasInitializedWithEmptyData, false);
309
+ _classPrivateFieldInitSpec(this, _hotWasInitializedWithEmptyData, {
310
+ writable: true,
311
+ value: false
312
+ });
88
313
  /**
89
314
  * The list of the HyperFormula listeners.
90
315
  *
91
316
  * @type {Array}
92
317
  */
93
- _classPrivateFieldInitSpec(this, _engineListeners, [['valuesUpdated', function () {
94
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
95
- args[_key] = arguments[_key];
96
- }
97
- return _assertClassBrand(_Formulas_brand, _this, _onEngineValuesUpdated).call(_this, ...args);
98
- }], ['namedExpressionAdded', function () {
99
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
100
- args[_key2] = arguments[_key2];
101
- }
102
- return _assertClassBrand(_Formulas_brand, _this, _onEngineNamedExpressionsAdded).call(_this, ...args);
103
- }], ['namedExpressionRemoved', function () {
104
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
105
- args[_key3] = arguments[_key3];
106
- }
107
- return _assertClassBrand(_Formulas_brand, _this, _onEngineNamedExpressionsRemoved).call(_this, ...args);
108
- }], ['sheetAdded', function () {
109
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
110
- args[_key4] = arguments[_key4];
111
- }
112
- return _assertClassBrand(_Formulas_brand, _this, _onEngineSheetAdded).call(_this, ...args);
113
- }], ['sheetRenamed', function () {
114
- for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
115
- args[_key5] = arguments[_key5];
116
- }
117
- return _assertClassBrand(_Formulas_brand, _this, _onEngineSheetRenamed).call(_this, ...args);
118
- }], ['sheetRemoved', function () {
119
- for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
120
- args[_key6] = arguments[_key6];
121
- }
122
- return _assertClassBrand(_Formulas_brand, _this, _onEngineSheetRemoved).call(_this, ...args);
123
- }]]);
318
+ _classPrivateFieldInitSpec(this, _engineListeners, {
319
+ writable: true,
320
+ value: [['valuesUpdated', function () {
321
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
322
+ args[_key] = arguments[_key];
323
+ }
324
+ return _classPrivateMethodGet(_this, _onEngineValuesUpdated, _onEngineValuesUpdated2).call(_this, ...args);
325
+ }], ['namedExpressionAdded', function () {
326
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
327
+ args[_key2] = arguments[_key2];
328
+ }
329
+ return _classPrivateMethodGet(_this, _onEngineNamedExpressionsAdded, _onEngineNamedExpressionsAdded2).call(_this, ...args);
330
+ }], ['namedExpressionRemoved', function () {
331
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
332
+ args[_key3] = arguments[_key3];
333
+ }
334
+ return _classPrivateMethodGet(_this, _onEngineNamedExpressionsRemoved, _onEngineNamedExpressionsRemoved2).call(_this, ...args);
335
+ }], ['sheetAdded', function () {
336
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
337
+ args[_key4] = arguments[_key4];
338
+ }
339
+ return _classPrivateMethodGet(_this, _onEngineSheetAdded, _onEngineSheetAdded2).call(_this, ...args);
340
+ }], ['sheetRenamed', function () {
341
+ for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
342
+ args[_key5] = arguments[_key5];
343
+ }
344
+ return _classPrivateMethodGet(_this, _onEngineSheetRenamed, _onEngineSheetRenamed2).call(_this, ...args);
345
+ }], ['sheetRemoved', function () {
346
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
347
+ args[_key6] = arguments[_key6];
348
+ }
349
+ return _classPrivateMethodGet(_this, _onEngineSheetRemoved, _onEngineSheetRemoved2).call(_this, ...args);
350
+ }]]
351
+ });
124
352
  /**
125
353
  * Static register used to set up one global HyperFormula instance.
126
354
  * TODO: currently used in tests, might be removed later.
@@ -215,13 +443,13 @@ class Formulas extends _base.BasePlugin {
215
443
  for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
216
444
  args[_key7] = arguments[_key7];
217
445
  }
218
- return _assertClassBrand(_Formulas_brand, _this2, _onBeforeLoadData).call(_this2, ...args);
446
+ return _classPrivateMethodGet(_this2, _onBeforeLoadData, _onBeforeLoadData2).call(_this2, ...args);
219
447
  });
220
448
  this.addHook('afterLoadData', function () {
221
449
  for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
222
450
  args[_key8] = arguments[_key8];
223
451
  }
224
- return _assertClassBrand(_Formulas_brand, _this2, _onAfterLoadData).call(_this2, ...args);
452
+ return _classPrivateMethodGet(_this2, _onAfterLoadData, _onAfterLoadData2).call(_this2, ...args);
225
453
  });
226
454
 
227
455
  // The `updateData` hooks utilize the same logic as the `loadData` hooks.
@@ -229,97 +457,97 @@ class Formulas extends _base.BasePlugin {
229
457
  for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
230
458
  args[_key9] = arguments[_key9];
231
459
  }
232
- return _assertClassBrand(_Formulas_brand, _this2, _onBeforeLoadData).call(_this2, ...args);
460
+ return _classPrivateMethodGet(_this2, _onBeforeLoadData, _onBeforeLoadData2).call(_this2, ...args);
233
461
  });
234
462
  this.addHook('afterUpdateData', function () {
235
463
  for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
236
464
  args[_key10] = arguments[_key10];
237
465
  }
238
- return _assertClassBrand(_Formulas_brand, _this2, _onAfterLoadData).call(_this2, ...args);
466
+ return _classPrivateMethodGet(_this2, _onAfterLoadData, _onAfterLoadData2).call(_this2, ...args);
239
467
  });
240
468
  this.addHook('modifyData', function () {
241
469
  for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
242
470
  args[_key11] = arguments[_key11];
243
471
  }
244
- return _assertClassBrand(_Formulas_brand, _this2, _onModifyData).call(_this2, ...args);
472
+ return _classPrivateMethodGet(_this2, _onModifyData, _onModifyData2).call(_this2, ...args);
245
473
  });
246
474
  this.addHook('modifySourceData', function () {
247
475
  for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
248
476
  args[_key12] = arguments[_key12];
249
477
  }
250
- return _assertClassBrand(_Formulas_brand, _this2, _onModifySourceData).call(_this2, ...args);
478
+ return _classPrivateMethodGet(_this2, _onModifySourceData, _onModifySourceData2).call(_this2, ...args);
251
479
  });
252
480
  this.addHook('beforeValidate', function () {
253
481
  for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
254
482
  args[_key13] = arguments[_key13];
255
483
  }
256
- return _assertClassBrand(_Formulas_brand, _this2, _onBeforeValidate).call(_this2, ...args);
484
+ return _classPrivateMethodGet(_this2, _onBeforeValidate, _onBeforeValidate2).call(_this2, ...args);
257
485
  });
258
486
  this.addHook('afterSetSourceDataAtCell', function () {
259
487
  for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
260
488
  args[_key14] = arguments[_key14];
261
489
  }
262
- return _assertClassBrand(_Formulas_brand, _this2, _onAfterSetSourceDataAtCell).call(_this2, ...args);
490
+ return _classPrivateMethodGet(_this2, _onAfterSetSourceDataAtCell, _onAfterSetSourceDataAtCell2).call(_this2, ...args);
263
491
  });
264
492
  this.addHook('afterSetDataAtCell', function () {
265
493
  for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
266
494
  args[_key15] = arguments[_key15];
267
495
  }
268
- return _assertClassBrand(_Formulas_brand, _this2, _onAfterSetDataAtCell).call(_this2, ...args);
496
+ return _classPrivateMethodGet(_this2, _onAfterSetDataAtCell, _onAfterSetDataAtCell2).call(_this2, ...args);
269
497
  });
270
498
  this.addHook('afterSetDataAtRowProp', function () {
271
499
  for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
272
500
  args[_key16] = arguments[_key16];
273
501
  }
274
- return _assertClassBrand(_Formulas_brand, _this2, _onAfterSetDataAtCell).call(_this2, ...args);
502
+ return _classPrivateMethodGet(_this2, _onAfterSetDataAtCell, _onAfterSetDataAtCell2).call(_this2, ...args);
275
503
  });
276
504
  this.addHook('beforeCreateRow', function () {
277
505
  for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
278
506
  args[_key17] = arguments[_key17];
279
507
  }
280
- return _assertClassBrand(_Formulas_brand, _this2, _onBeforeCreateRow).call(_this2, ...args);
508
+ return _classPrivateMethodGet(_this2, _onBeforeCreateRow, _onBeforeCreateRow2).call(_this2, ...args);
281
509
  });
282
510
  this.addHook('beforeCreateCol', function () {
283
511
  for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
284
512
  args[_key18] = arguments[_key18];
285
513
  }
286
- return _assertClassBrand(_Formulas_brand, _this2, _onBeforeCreateCol).call(_this2, ...args);
514
+ return _classPrivateMethodGet(_this2, _onBeforeCreateCol, _onBeforeCreateCol2).call(_this2, ...args);
287
515
  });
288
516
  this.addHook('afterCreateRow', function () {
289
517
  for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
290
518
  args[_key19] = arguments[_key19];
291
519
  }
292
- return _assertClassBrand(_Formulas_brand, _this2, _onAfterCreateRow).call(_this2, ...args);
520
+ return _classPrivateMethodGet(_this2, _onAfterCreateRow, _onAfterCreateRow2).call(_this2, ...args);
293
521
  });
294
522
  this.addHook('afterCreateCol', function () {
295
523
  for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
296
524
  args[_key20] = arguments[_key20];
297
525
  }
298
- return _assertClassBrand(_Formulas_brand, _this2, _onAfterCreateCol).call(_this2, ...args);
526
+ return _classPrivateMethodGet(_this2, _onAfterCreateCol, _onAfterCreateCol2).call(_this2, ...args);
299
527
  });
300
528
  this.addHook('beforeRemoveRow', function () {
301
529
  for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
302
530
  args[_key21] = arguments[_key21];
303
531
  }
304
- return _assertClassBrand(_Formulas_brand, _this2, _onBeforeRemoveRow).call(_this2, ...args);
532
+ return _classPrivateMethodGet(_this2, _onBeforeRemoveRow, _onBeforeRemoveRow2).call(_this2, ...args);
305
533
  });
306
534
  this.addHook('beforeRemoveCol', function () {
307
535
  for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
308
536
  args[_key22] = arguments[_key22];
309
537
  }
310
- return _assertClassBrand(_Formulas_brand, _this2, _onBeforeRemoveCol).call(_this2, ...args);
538
+ return _classPrivateMethodGet(_this2, _onBeforeRemoveCol, _onBeforeRemoveCol2).call(_this2, ...args);
311
539
  });
312
540
  this.addHook('afterRemoveRow', function () {
313
541
  for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
314
542
  args[_key23] = arguments[_key23];
315
543
  }
316
- return _assertClassBrand(_Formulas_brand, _this2, _onAfterRemoveRow).call(_this2, ...args);
544
+ return _classPrivateMethodGet(_this2, _onAfterRemoveRow, _onAfterRemoveRow2).call(_this2, ...args);
317
545
  });
318
546
  this.addHook('afterRemoveCol', function () {
319
547
  for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
320
548
  args[_key24] = arguments[_key24];
321
549
  }
322
- return _assertClassBrand(_Formulas_brand, _this2, _onAfterRemoveCol).call(_this2, ...args);
550
+ return _classPrivateMethodGet(_this2, _onAfterRemoveCol, _onAfterRemoveCol2).call(_this2, ...args);
323
551
  });
324
552
  this.indexSyncer = new _indexSyncer.default(this.hot.rowIndexMapper, this.hot.columnIndexMapper, postponedAction => {
325
553
  this.hot.addHookOnce('init', () => {
@@ -364,7 +592,7 @@ class Formulas extends _base.BasePlugin {
364
592
  for (var _len25 = arguments.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {
365
593
  args[_key25] = arguments[_key25];
366
594
  }
367
- return _assertClassBrand(_Formulas_brand, _this2, _onAfterCellMetaReset).call(_this2, ...args);
595
+ return _classPrivateMethodGet(_this2, _onAfterCellMetaReset, _onAfterCellMetaReset2).call(_this2, ...args);
368
596
  });
369
597
 
370
598
  // Handling undo actions on data just using HyperFormula's UndoRedo mechanism
@@ -388,15 +616,15 @@ class Formulas extends _base.BasePlugin {
388
616
  for (var _len26 = arguments.length, args = new Array(_len26), _key26 = 0; _key26 < _len26; _key26++) {
389
617
  args[_key26] = arguments[_key26];
390
618
  }
391
- return _assertClassBrand(_Formulas_brand, _this2, _onAfterDetachChild).call(_this2, ...args);
619
+ return _classPrivateMethodGet(_this2, _onAfterDetachChild, _onAfterDetachChild2).call(_this2, ...args);
392
620
  });
393
621
  this.addHook('beforeAutofill', function () {
394
622
  for (var _len27 = arguments.length, args = new Array(_len27), _key27 = 0; _key27 < _len27; _key27++) {
395
623
  args[_key27] = arguments[_key27];
396
624
  }
397
- return _assertClassBrand(_Formulas_brand, _this2, _onBeforeAutofill).call(_this2, ...args);
625
+ return _classPrivateMethodGet(_this2, _onBeforeAutofill, _onBeforeAutofill2).call(_this2, ...args);
398
626
  });
399
- _classPrivateFieldGet(_engineListeners, this).forEach(_ref => {
627
+ _classPrivateFieldGet(this, _engineListeners).forEach(_ref => {
400
628
  let [eventName, listener] = _ref;
401
629
  return this.engine.on(eventName, listener);
402
630
  });
@@ -407,7 +635,7 @@ class Formulas extends _base.BasePlugin {
407
635
  * Disables the plugin functionality for this Handsontable instance.
408
636
  */
409
637
  disablePlugin() {
410
- _classPrivateFieldGet(_engineListeners, this).forEach(_ref2 => {
638
+ _classPrivateFieldGet(this, _engineListeners).forEach(_ref2 => {
411
639
  let [eventName, listener] = _ref2;
412
640
  return this.engine.off(eventName, listener);
413
641
  });
@@ -449,12 +677,12 @@ class Formulas extends _base.BasePlugin {
449
677
  * Destroys the plugin instance.
450
678
  */
451
679
  destroy() {
452
- _classPrivateFieldGet(_engineListeners, this).forEach(_ref3 => {
680
+ _classPrivateFieldGet(this, _engineListeners).forEach(_ref3 => {
453
681
  var _this$engine;
454
682
  let [eventName, listener] = _ref3;
455
683
  return (_this$engine = this.engine) === null || _this$engine === void 0 ? void 0 : _this$engine.off(eventName, listener);
456
684
  });
457
- _classPrivateFieldSet(_engineListeners, this, null);
685
+ _classPrivateFieldSet(this, _engineListeners, null);
458
686
  (0, _register.unregisterEngine)(this.engine, this.hot);
459
687
  this.engine = null;
460
688
  super.destroy();
@@ -664,7 +892,7 @@ class Formulas extends _base.BasePlugin {
664
892
  }
665
893
  }
666
894
  exports.Formulas = Formulas;
667
- function _onBeforeValidate(value, visualRow, prop) {
895
+ function _onBeforeValidate2(value, visualRow, prop) {
668
896
  const visualColumn = this.hot.propToCol(prop);
669
897
  if (this.isFormulaCellType(visualRow, visualColumn)) {
670
898
  const address = {
@@ -684,16 +912,7 @@ function _onBeforeValidate(value, visualRow, prop) {
684
912
  }
685
913
  return value;
686
914
  }
687
- /**
688
- * `onBeforeAutofill` hook callback.
689
- *
690
- * @param {Array[]} fillData The data that was used to fill the `targetRange`. If `beforeAutofill` was used
691
- * and returned `[[]]`, this will be the same object that was returned from `beforeAutofill`.
692
- * @param {CellRange} sourceRange The range values will be filled from.
693
- * @param {CellRange} targetRange The range new values will be filled into.
694
- * @returns {boolean|*}
695
- */
696
- function _onBeforeAutofill(fillData, sourceRange, targetRange) {
915
+ function _onBeforeAutofill2(fillData, sourceRange, targetRange) {
697
916
  const {
698
917
  row: sourceTopStartRow,
699
918
  col: sourceTopStartColumn
@@ -770,14 +989,7 @@ function _onBeforeAutofill(fillData, sourceRange, targetRange) {
770
989
  }
771
990
  return fillRangeData;
772
991
  }
773
- /**
774
- * `beforeLoadData` hook callback.
775
- *
776
- * @param {Array} sourceData Array of arrays or array of objects containing data.
777
- * @param {boolean} initialLoad Flag that determines whether the data has been loaded during the initialization.
778
- * @param {string} [source] Source of the call.
779
- */
780
- function _onBeforeLoadData(sourceData, initialLoad) {
992
+ function _onBeforeLoadData2(sourceData, initialLoad) {
781
993
  let source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
782
994
  if (source.includes((0, _string.toUpperCaseFirst)(PLUGIN_KEY))) {
783
995
  return;
@@ -785,12 +997,9 @@ function _onBeforeLoadData(sourceData, initialLoad) {
785
997
 
786
998
  // This flag needs to be defined, because not passing data to HOT results in HOT auto-generating a `null`-filled
787
999
  // initial dataset.
788
- _classPrivateFieldSet(_hotWasInitializedWithEmptyData, this, (0, _mixed.isUndefined)(this.hot.getSettings().data));
1000
+ _classPrivateFieldSet(this, _hotWasInitializedWithEmptyData, (0, _mixed.isUndefined)(this.hot.getSettings().data));
789
1001
  }
790
- /**
791
- * Callback to `afterCellMetaReset` hook which is triggered after setting cell meta.
792
- */
793
- function _onAfterCellMetaReset() {
1002
+ function _onAfterCellMetaReset2() {
794
1003
  const sourceDataArray = this.hot.getSourceDataArray();
795
1004
  let valueChanged = false;
796
1005
  sourceDataArray.forEach((rowData, rowIndex) => {
@@ -810,48 +1019,32 @@ function _onAfterCellMetaReset() {
810
1019
  });
811
1020
  });
812
1021
  if (valueChanged === true) {
813
- _classPrivateFieldSet(_internalOperationPending, this, true);
1022
+ _classPrivateFieldSet(this, _internalOperationPending, true);
814
1023
  this.engine.setSheetContent(this.sheetId, sourceDataArray);
815
- _classPrivateFieldSet(_internalOperationPending, this, false);
1024
+ _classPrivateFieldSet(this, _internalOperationPending, false);
816
1025
  }
817
1026
  }
818
- /**
819
- * `afterLoadData` hook callback.
820
- *
821
- * @param {Array} sourceData Array of arrays or array of objects containing data.
822
- * @param {boolean} initialLoad Flag that determines whether the data has been loaded during the initialization.
823
- * @param {string} [source] Source of the call.
824
- */
825
- function _onAfterLoadData(sourceData, initialLoad) {
1027
+ function _onAfterLoadData2(sourceData, initialLoad) {
826
1028
  let source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
827
1029
  if (source.includes((0, _string.toUpperCaseFirst)(PLUGIN_KEY))) {
828
1030
  return;
829
1031
  }
830
1032
  this.sheetName = (0, _register.setupSheet)(this.engine, this.hot.getSettings()[PLUGIN_KEY].sheetName);
831
- if (!_classPrivateFieldGet(_hotWasInitializedWithEmptyData, this)) {
1033
+ if (!_classPrivateFieldGet(this, _hotWasInitializedWithEmptyData)) {
832
1034
  const sourceDataArray = this.hot.getSourceDataArray();
833
1035
  if (this.engine.isItPossibleToReplaceSheetContent(this.sheetId, sourceDataArray)) {
834
- _classPrivateFieldSet(_internalOperationPending, this, true);
1036
+ _classPrivateFieldSet(this, _internalOperationPending, true);
835
1037
  const dependentCells = this.engine.setSheetContent(this.sheetId, sourceDataArray);
836
1038
  this.indexSyncer.setupSyncEndpoint(this.engine, this.sheetId);
837
1039
  this.renderDependentSheets(dependentCells);
838
- _classPrivateFieldSet(_internalOperationPending, this, false);
1040
+ _classPrivateFieldSet(this, _internalOperationPending, false);
839
1041
  }
840
1042
  } else {
841
1043
  this.switchSheet(this.sheetName);
842
1044
  }
843
1045
  }
844
- /**
845
- * `modifyData` hook callback.
846
- *
847
- * @param {number} physicalRow Physical row index.
848
- * @param {number} visualColumn Visual column index.
849
- * @param {object} valueHolder Object which contains original value which can be modified by overwriting `.value`
850
- * property.
851
- * @param {string} ioMode String which indicates for what operation hook is fired (`get` or `set`).
852
- */
853
- function _onModifyData(physicalRow, visualColumn, valueHolder, ioMode) {
854
- if (ioMode !== 'get' || _classPrivateFieldGet(_internalOperationPending, this) || this.sheetName === null || !this.engine.doesSheetExist(this.sheetName)) {
1046
+ function _onModifyData2(physicalRow, visualColumn, valueHolder, ioMode) {
1047
+ if (ioMode !== 'get' || _classPrivateFieldGet(this, _internalOperationPending) || this.sheetName === null || !this.engine.doesSheetExist(this.sheetName)) {
855
1048
  return;
856
1049
  }
857
1050
  const visualRow = this.hot.toVisualRow(physicalRow);
@@ -893,17 +1086,8 @@ function _onModifyData(physicalRow, visualColumn, valueHolder, ioMode) {
893
1086
  const value = typeof cellValue === 'object' && cellValue !== null ? cellValue.value : cellValue;
894
1087
  valueHolder.value = value;
895
1088
  }
896
- /**
897
- * `modifySourceData` hook callback.
898
- *
899
- * @param {number} row Physical row index.
900
- * @param {number|string} columnOrProp Physical column index or prop.
901
- * @param {object} valueHolder Object which contains original value which can be modified by overwriting `.value`
902
- * property.
903
- * @param {string} ioMode String which indicates for what operation hook is fired (`get` or `set`).
904
- */
905
- function _onModifySourceData(row, columnOrProp, valueHolder, ioMode) {
906
- if (ioMode !== 'get' || _classPrivateFieldGet(_internalOperationPending, this) || this.sheetName === null || !this.engine.doesSheetExist(this.sheetName)) {
1089
+ function _onModifySourceData2(row, columnOrProp, valueHolder, ioMode) {
1090
+ if (ioMode !== 'get' || _classPrivateFieldGet(this, _internalOperationPending) || this.sheetName === null || !this.engine.doesSheetExist(this.sheetName)) {
907
1091
  return;
908
1092
  }
909
1093
  const visualRow = this.hot.toVisualRow(row);
@@ -936,14 +1120,7 @@ function _onModifySourceData(row, columnOrProp, valueHolder, ioMode) {
936
1120
  };
937
1121
  valueHolder.value = this.engine.getCellSerialized(address);
938
1122
  }
939
- /**
940
- * `onAfterSetDataAtCell` hook callback.
941
- *
942
- * @param {Array[]} changes An array of changes in format [[row, prop, oldValue, value], ...].
943
- * @param {string} [source] String that identifies source of hook call
944
- * ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
945
- */
946
- function _onAfterSetDataAtCell(changes, source) {
1123
+ function _onAfterSetDataAtCell2(changes, source) {
947
1124
  if (isBlockedSource(source)) {
948
1125
  return;
949
1126
  }
@@ -986,14 +1163,7 @@ function _onAfterSetDataAtCell(changes, source) {
986
1163
  this.renderDependentSheets(dependentCells);
987
1164
  this.validateDependentCells(dependentCells, changedCells);
988
1165
  }
989
- /**
990
- * `onAfterSetSourceDataAtCell` hook callback.
991
- *
992
- * @param {Array[]} changes An array of changes in format [[row, column, oldValue, value], ...].
993
- * @param {string} [source] String that identifies source of hook call
994
- * ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
995
- */
996
- function _onAfterSetSourceDataAtCell(changes, source) {
1166
+ function _onAfterSetSourceDataAtCell2(changes, source) {
997
1167
  if (isBlockedSource(source)) {
998
1168
  return;
999
1169
  }
@@ -1022,14 +1192,7 @@ function _onAfterSetSourceDataAtCell(changes, source) {
1022
1192
  this.renderDependentSheets(dependentCells);
1023
1193
  this.validateDependentCells(dependentCells, changedCells);
1024
1194
  }
1025
- /**
1026
- * `beforeCreateRow` hook callback.
1027
- *
1028
- * @param {number} visualRow Represents the visual index of first newly created row in the data source array.
1029
- * @param {number} amount Number of newly created rows in the data source array.
1030
- * @returns {*|boolean} If false is returned the action is canceled.
1031
- */
1032
- function _onBeforeCreateRow(visualRow, amount) {
1195
+ function _onBeforeCreateRow2(visualRow, amount) {
1033
1196
  let hfRowIndex = this.rowAxisSyncer.getHfIndexFromVisualIndex(visualRow);
1034
1197
  if (visualRow >= this.hot.countRows()) {
1035
1198
  hfRowIndex = visualRow; // Row beyond the table boundaries.
@@ -1038,14 +1201,7 @@ function _onBeforeCreateRow(visualRow, amount) {
1038
1201
  return false;
1039
1202
  }
1040
1203
  }
1041
- /**
1042
- * `beforeCreateCol` hook callback.
1043
- *
1044
- * @param {number} visualColumn Represents the visual index of first newly created column in the data source.
1045
- * @param {number} amount Number of newly created columns in the data source.
1046
- * @returns {*|boolean} If false is returned the action is canceled.
1047
- */
1048
- function _onBeforeCreateCol(visualColumn, amount) {
1204
+ function _onBeforeCreateCol2(visualColumn, amount) {
1049
1205
  let hfColumnIndex = this.columnAxisSyncer.getHfIndexFromVisualIndex(visualColumn);
1050
1206
  if (visualColumn >= this.hot.countCols()) {
1051
1207
  hfColumnIndex = visualColumn; // Column beyond the table boundaries.
@@ -1054,76 +1210,35 @@ function _onBeforeCreateCol(visualColumn, amount) {
1054
1210
  return false;
1055
1211
  }
1056
1212
  }
1057
- /**
1058
- * `beforeRemoveRow` hook callback.
1059
- *
1060
- * @param {number} row Visual index of starter row.
1061
- * @param {number} amount Amount of rows to be removed.
1062
- * @param {number[]} physicalRows An array of physical rows removed from the data source.
1063
- * @returns {*|boolean} If false is returned the action is canceled.
1064
- */
1065
- function _onBeforeRemoveRow(row, amount, physicalRows) {
1213
+ function _onBeforeRemoveRow2(row, amount, physicalRows) {
1066
1214
  const hfRows = this.rowAxisSyncer.setRemovedHfIndexes(physicalRows);
1067
1215
  const possible = hfRows.every(hfRow => {
1068
1216
  return this.engine.isItPossibleToRemoveRows(this.sheetId, [hfRow, 1]);
1069
1217
  });
1070
1218
  return possible === false ? false : undefined;
1071
1219
  }
1072
- /**
1073
- * `beforeRemoveCol` hook callback.
1074
- *
1075
- * @param {number} col Visual index of starter column.
1076
- * @param {number} amount Amount of columns to be removed.
1077
- * @param {number[]} physicalColumns An array of physical columns removed from the data source.
1078
- * @returns {*|boolean} If false is returned the action is canceled.
1079
- */
1080
- function _onBeforeRemoveCol(col, amount, physicalColumns) {
1220
+ function _onBeforeRemoveCol2(col, amount, physicalColumns) {
1081
1221
  const hfColumns = this.columnAxisSyncer.setRemovedHfIndexes(physicalColumns);
1082
1222
  const possible = hfColumns.every(hfColumn => {
1083
1223
  return this.engine.isItPossibleToRemoveColumns(this.sheetId, [hfColumn, 1]);
1084
1224
  });
1085
1225
  return possible === false ? false : undefined;
1086
1226
  }
1087
- /**
1088
- * `afterCreateRow` hook callback.
1089
- *
1090
- * @param {number} visualRow Represents the visual index of first newly created row in the data source array.
1091
- * @param {number} amount Number of newly created rows in the data source array.
1092
- * @param {string} [source] String that identifies source of hook call
1093
- * ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
1094
- */
1095
- function _onAfterCreateRow(visualRow, amount, source) {
1227
+ function _onAfterCreateRow2(visualRow, amount, source) {
1096
1228
  if (isBlockedSource(source)) {
1097
1229
  return;
1098
1230
  }
1099
1231
  const changes = this.engine.addRows(this.sheetId, [this.rowAxisSyncer.getHfIndexFromVisualIndex(visualRow), amount]);
1100
1232
  this.renderDependentSheets(changes);
1101
1233
  }
1102
- /**
1103
- * `afterCreateCol` hook callback.
1104
- *
1105
- * @param {number} visualColumn Represents the visual index of first newly created column in the data source.
1106
- * @param {number} amount Number of newly created columns in the data source.
1107
- * @param {string} [source] String that identifies source of hook call
1108
- * ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
1109
- */
1110
- function _onAfterCreateCol(visualColumn, amount, source) {
1234
+ function _onAfterCreateCol2(visualColumn, amount, source) {
1111
1235
  if (isBlockedSource(source)) {
1112
1236
  return;
1113
1237
  }
1114
1238
  const changes = this.engine.addColumns(this.sheetId, [this.columnAxisSyncer.getHfIndexFromVisualIndex(visualColumn), amount]);
1115
1239
  this.renderDependentSheets(changes);
1116
1240
  }
1117
- /**
1118
- * `afterRemoveRow` hook callback.
1119
- *
1120
- * @param {number} row Visual index of starter row.
1121
- * @param {number} amount An amount of removed rows.
1122
- * @param {number[]} physicalRows An array of physical rows removed from the data source.
1123
- * @param {string} [source] String that identifies source of hook call
1124
- * ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
1125
- */
1126
- function _onAfterRemoveRow(row, amount, physicalRows, source) {
1241
+ function _onAfterRemoveRow2(row, amount, physicalRows, source) {
1127
1242
  if (isBlockedSource(source)) {
1128
1243
  return;
1129
1244
  }
@@ -1135,16 +1250,7 @@ function _onAfterRemoveRow(row, amount, physicalRows, source) {
1135
1250
  });
1136
1251
  this.renderDependentSheets(changes);
1137
1252
  }
1138
- /**
1139
- * `afterRemoveCol` hook callback.
1140
- *
1141
- * @param {number} col Visual index of starter column.
1142
- * @param {number} amount An amount of removed columns.
1143
- * @param {number[]} physicalColumns An array of physical columns removed from the data source.
1144
- * @param {string} [source] String that identifies source of hook call
1145
- * ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
1146
- */
1147
- function _onAfterRemoveCol(col, amount, physicalColumns, source) {
1253
+ function _onAfterRemoveCol2(col, amount, physicalColumns, source) {
1148
1254
  if (isBlockedSource(source)) {
1149
1255
  return;
1150
1256
  }
@@ -1156,19 +1262,11 @@ function _onAfterRemoveCol(col, amount, physicalColumns, source) {
1156
1262
  });
1157
1263
  this.renderDependentSheets(changes);
1158
1264
  }
1159
- /**
1160
- * `afterDetachChild` hook callback.
1161
- * Used to sync the data of the rows detached in the Nested Rows plugin with the engine's dataset.
1162
- *
1163
- * @param {object} parent An object representing the parent from which the element was detached.
1164
- * @param {object} element The detached element.
1165
- * @param {number} finalElementRowIndex The final row index of the detached element.
1166
- */
1167
- function _onAfterDetachChild(parent, element, finalElementRowIndex) {
1265
+ function _onAfterDetachChild2(parent, element, finalElementRowIndex) {
1168
1266
  var _element$__children;
1169
- _classPrivateFieldSet(_internalOperationPending, this, true);
1267
+ _classPrivateFieldSet(this, _internalOperationPending, true);
1170
1268
  const rowsData = this.hot.getSourceDataArray(finalElementRowIndex, 0, finalElementRowIndex + (((_element$__children = element.__children) === null || _element$__children === void 0 ? void 0 : _element$__children.length) || 0), this.hot.countSourceCols());
1171
- _classPrivateFieldSet(_internalOperationPending, this, false);
1269
+ _classPrivateFieldSet(this, _internalOperationPending, false);
1172
1270
  rowsData.forEach((row, relativeRowIndex) => {
1173
1271
  row.forEach((value, colIndex) => {
1174
1272
  this.engine.setCellContents({
@@ -1179,62 +1277,22 @@ function _onAfterDetachChild(parent, element, finalElementRowIndex) {
1179
1277
  });
1180
1278
  });
1181
1279
  }
1182
- /**
1183
- * Called when a value is updated in the engine.
1184
- *
1185
- * @fires Hooks#afterFormulasValuesUpdate
1186
- * @param {Array} changes The values and location of applied changes.
1187
- */
1188
- function _onEngineValuesUpdated(changes) {
1280
+ function _onEngineValuesUpdated2(changes) {
1189
1281
  this.hot.runHooks('afterFormulasValuesUpdate', changes);
1190
1282
  }
1191
- /**
1192
- * Called when a named expression is added to the engine instance.
1193
- *
1194
- * @fires Hooks#afterNamedExpressionAdded
1195
- * @param {string} namedExpressionName The name of the added expression.
1196
- * @param {Array} changes The values and location of applied changes.
1197
- */
1198
- function _onEngineNamedExpressionsAdded(namedExpressionName, changes) {
1283
+ function _onEngineNamedExpressionsAdded2(namedExpressionName, changes) {
1199
1284
  this.hot.runHooks('afterNamedExpressionAdded', namedExpressionName, changes);
1200
1285
  }
1201
- /**
1202
- * Called when a named expression is removed from the engine instance.
1203
- *
1204
- * @fires Hooks#afterNamedExpressionRemoved
1205
- * @param {string} namedExpressionName The name of the removed expression.
1206
- * @param {Array} changes The values and location of applied changes.
1207
- */
1208
- function _onEngineNamedExpressionsRemoved(namedExpressionName, changes) {
1286
+ function _onEngineNamedExpressionsRemoved2(namedExpressionName, changes) {
1209
1287
  this.hot.runHooks('afterNamedExpressionRemoved', namedExpressionName, changes);
1210
1288
  }
1211
- /**
1212
- * Called when a new sheet is added to the engine instance.
1213
- *
1214
- * @fires Hooks#afterSheetAdded
1215
- * @param {string} addedSheetDisplayName The name of the added sheet.
1216
- */
1217
- function _onEngineSheetAdded(addedSheetDisplayName) {
1289
+ function _onEngineSheetAdded2(addedSheetDisplayName) {
1218
1290
  this.hot.runHooks('afterSheetAdded', addedSheetDisplayName);
1219
1291
  }
1220
- /**
1221
- * Called when a sheet in the engine instance is renamed.
1222
- *
1223
- * @fires Hooks#afterSheetRenamed
1224
- * @param {string} oldDisplayName The old name of the sheet.
1225
- * @param {string} newDisplayName The new name of the sheet.
1226
- */
1227
- function _onEngineSheetRenamed(oldDisplayName, newDisplayName) {
1292
+ function _onEngineSheetRenamed2(oldDisplayName, newDisplayName) {
1228
1293
  this.sheetName = newDisplayName;
1229
1294
  this.hot.runHooks('afterSheetRenamed', oldDisplayName, newDisplayName);
1230
1295
  }
1231
- /**
1232
- * Called when a sheet is removed from the engine instance.
1233
- *
1234
- * @fires Hooks#afterSheetRemoved
1235
- * @param {string} removedSheetDisplayName The removed sheet name.
1236
- * @param {Array} changes The values and location of applied changes.
1237
- */
1238
- function _onEngineSheetRemoved(removedSheetDisplayName, changes) {
1296
+ function _onEngineSheetRemoved2(removedSheetDisplayName, changes) {
1239
1297
  this.hot.runHooks('afterSheetRemoved', removedSheetDisplayName, changes);
1240
1298
  }