handsontable 0.0.0-next-b66c79f-20230713 → 0.0.0-next-08765b9-20230714

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

Files changed (373) hide show
  1. package/3rdparty/walkontable/src/cell/coords.d.ts +6 -1
  2. package/3rdparty/walkontable/src/cell/coords.js +87 -33
  3. package/3rdparty/walkontable/src/cell/coords.mjs +87 -33
  4. package/3rdparty/walkontable/src/cell/range.d.ts +9 -2
  5. package/3rdparty/walkontable/src/cell/range.js +92 -46
  6. package/3rdparty/walkontable/src/cell/range.mjs +92 -46
  7. package/3rdparty/walkontable/src/core/_base.js +41 -33
  8. package/3rdparty/walkontable/src/core/_base.mjs +41 -33
  9. package/3rdparty/walkontable/src/core/clone.js +8 -5
  10. package/3rdparty/walkontable/src/core/clone.mjs +8 -5
  11. package/3rdparty/walkontable/src/core/core.js +3 -2
  12. package/3rdparty/walkontable/src/core/core.mjs +3 -2
  13. package/3rdparty/walkontable/src/event.js +9 -8
  14. package/3rdparty/walkontable/src/event.mjs +9 -8
  15. package/3rdparty/walkontable/src/facade/core.js +2 -2
  16. package/3rdparty/walkontable/src/facade/core.mjs +2 -2
  17. package/3rdparty/walkontable/src/index.js +10 -2
  18. package/3rdparty/walkontable/src/index.mjs +2 -2
  19. package/3rdparty/walkontable/src/overlay/_base.js +11 -9
  20. package/3rdparty/walkontable/src/overlay/_base.mjs +11 -9
  21. package/3rdparty/walkontable/src/overlay/bottom.js +10 -8
  22. package/3rdparty/walkontable/src/overlay/bottom.mjs +10 -8
  23. package/3rdparty/walkontable/src/overlay/inlineStart.js +2 -6
  24. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +2 -6
  25. package/3rdparty/walkontable/src/overlay/top.js +12 -14
  26. package/3rdparty/walkontable/src/overlay/top.mjs +12 -14
  27. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +16 -13
  28. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +16 -13
  29. package/3rdparty/walkontable/src/overlays.js +75 -80
  30. package/3rdparty/walkontable/src/overlays.mjs +75 -80
  31. package/3rdparty/walkontable/src/scroll.js +27 -24
  32. package/3rdparty/walkontable/src/scroll.mjs +27 -24
  33. package/3rdparty/walkontable/src/{border.js → selection/border/border.js} +7 -12
  34. package/3rdparty/walkontable/src/{border.mjs → selection/border/border.mjs} +7 -12
  35. package/3rdparty/walkontable/src/selection/border/constants.js +16 -0
  36. package/3rdparty/walkontable/src/selection/border/constants.mjs +12 -0
  37. package/3rdparty/walkontable/src/selection/constants.js +62 -0
  38. package/3rdparty/walkontable/src/selection/constants.mjs +51 -0
  39. package/3rdparty/walkontable/src/selection/index.js +26 -0
  40. package/3rdparty/walkontable/src/selection/index.mjs +5 -0
  41. package/3rdparty/walkontable/src/selection/manager.js +259 -0
  42. package/3rdparty/walkontable/src/selection/manager.mjs +254 -0
  43. package/3rdparty/walkontable/src/selection/scanner.js +270 -0
  44. package/3rdparty/walkontable/src/selection/scanner.mjs +267 -0
  45. package/3rdparty/walkontable/src/selection/selection.js +101 -0
  46. package/3rdparty/walkontable/src/selection/selection.mjs +96 -0
  47. package/3rdparty/walkontable/src/settings.js +18 -17
  48. package/3rdparty/walkontable/src/settings.mjs +18 -17
  49. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +9 -0
  50. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +9 -0
  51. package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +9 -0
  52. package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +9 -0
  53. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +9 -0
  54. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +9 -0
  55. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +9 -0
  56. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +9 -0
  57. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +9 -0
  58. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +9 -0
  59. package/3rdparty/walkontable/src/table.js +48 -115
  60. package/3rdparty/walkontable/src/table.mjs +49 -116
  61. package/base.js +2 -2
  62. package/base.mjs +2 -2
  63. package/core/focusCatcher/focusDetector.js +58 -0
  64. package/core/focusCatcher/focusDetector.mjs +54 -0
  65. package/core/focusCatcher/index.js +142 -0
  66. package/core/focusCatcher/index.mjs +138 -0
  67. package/core/index.js +9 -0
  68. package/core/index.mjs +1 -0
  69. package/core.d.ts +6 -3
  70. package/core.js +181 -298
  71. package/core.mjs +181 -298
  72. package/dataMap/metaManager/metaLayers/cellMeta.js +2 -1
  73. package/dataMap/metaManager/metaLayers/cellMeta.mjs +2 -1
  74. package/dataMap/metaManager/metaLayers/globalMeta.js +1 -1
  75. package/dataMap/metaManager/metaLayers/globalMeta.mjs +1 -1
  76. package/dataMap/metaManager/metaSchema.js +41 -0
  77. package/dataMap/metaManager/metaSchema.mjs +41 -0
  78. package/dataMap/metaManager/mods/dynamicCellMeta.js +3 -2
  79. package/dataMap/metaManager/mods/dynamicCellMeta.mjs +3 -2
  80. package/dataMap/metaManager/utils.js +4 -2
  81. package/dataMap/metaManager/utils.mjs +4 -2
  82. package/dist/handsontable.css +19 -3
  83. package/dist/handsontable.full.css +19 -3
  84. package/dist/handsontable.full.js +10739 -7037
  85. package/dist/handsontable.full.min.css +3 -3
  86. package/dist/handsontable.full.min.js +25 -25
  87. package/dist/handsontable.js +24884 -21182
  88. package/dist/handsontable.min.css +3 -3
  89. package/dist/handsontable.min.js +19 -19
  90. package/editorManager.js +11 -75
  91. package/editorManager.mjs +11 -74
  92. package/editors/autocompleteEditor/autocompleteEditor.js +70 -67
  93. package/editors/autocompleteEditor/autocompleteEditor.mjs +70 -67
  94. package/editors/baseEditor/baseEditor.js +1 -1
  95. package/editors/baseEditor/baseEditor.mjs +1 -1
  96. package/editors/dateEditor/dateEditor.js +2 -1
  97. package/editors/dateEditor/dateEditor.mjs +2 -1
  98. package/editors/textEditor/textEditor.js +3 -11
  99. package/editors/textEditor/textEditor.mjs +4 -12
  100. package/helpers/mixed.js +1 -1
  101. package/helpers/mixed.mjs +1 -1
  102. package/helpers/number.d.ts +1 -0
  103. package/helpers/number.js +18 -0
  104. package/helpers/number.mjs +17 -0
  105. package/helpers/object.js +1 -0
  106. package/helpers/object.mjs +1 -0
  107. package/index.js +5 -5
  108. package/index.mjs +5 -5
  109. package/package.json +1 -1
  110. package/pluginHooks.d.ts +7 -1
  111. package/pluginHooks.js +106 -1
  112. package/pluginHooks.mjs +106 -1
  113. package/plugins/autoColumnSize/autoColumnSize.js +4 -1
  114. package/plugins/autoColumnSize/autoColumnSize.mjs +4 -1
  115. package/plugins/collapsibleColumns/collapsibleColumns.js +110 -40
  116. package/plugins/collapsibleColumns/collapsibleColumns.mjs +110 -40
  117. package/plugins/columnSorting/columnSorting.js +40 -1
  118. package/plugins/columnSorting/columnSorting.mjs +40 -3
  119. package/plugins/columnSorting/columnStatesManager.js +2 -1
  120. package/plugins/columnSorting/columnStatesManager.mjs +2 -1
  121. package/plugins/columnSorting/index.js +3 -1
  122. package/plugins/columnSorting/index.mjs +1 -1
  123. package/plugins/comments/commentEditor.js +1 -0
  124. package/plugins/comments/commentEditor.mjs +1 -0
  125. package/plugins/comments/comments.js +253 -191
  126. package/plugins/comments/comments.mjs +252 -192
  127. package/plugins/comments/contextMenuItem/addEditComment.js +41 -0
  128. package/plugins/comments/contextMenuItem/addEditComment.mjs +35 -0
  129. package/plugins/comments/contextMenuItem/readOnlyComment.js +49 -0
  130. package/plugins/comments/contextMenuItem/readOnlyComment.mjs +43 -0
  131. package/plugins/comments/contextMenuItem/removeComment.js +38 -0
  132. package/plugins/comments/contextMenuItem/removeComment.mjs +32 -0
  133. package/plugins/contextMenu/contextMenu.d.ts +1 -1
  134. package/plugins/contextMenu/contextMenu.js +72 -30
  135. package/plugins/contextMenu/contextMenu.mjs +73 -31
  136. package/plugins/contextMenu/predefinedItems/alignment.js +7 -0
  137. package/plugins/contextMenu/predefinedItems/alignment.mjs +7 -0
  138. package/plugins/contextMenu/predefinedItems/clearColumn.js +5 -3
  139. package/plugins/contextMenu/predefinedItems/clearColumn.mjs +5 -3
  140. package/plugins/contextMenu/predefinedItems/columnLeft.js +5 -3
  141. package/plugins/contextMenu/predefinedItems/columnLeft.mjs +5 -3
  142. package/plugins/contextMenu/predefinedItems/columnRight.js +5 -3
  143. package/plugins/contextMenu/predefinedItems/columnRight.mjs +5 -3
  144. package/plugins/contextMenu/predefinedItems/readOnly.js +7 -0
  145. package/plugins/contextMenu/predefinedItems/readOnly.mjs +7 -0
  146. package/plugins/contextMenu/predefinedItems/removeColumn.js +7 -5
  147. package/plugins/contextMenu/predefinedItems/removeColumn.mjs +5 -3
  148. package/plugins/contextMenu/predefinedItems/removeRow.js +7 -5
  149. package/plugins/contextMenu/predefinedItems/removeRow.mjs +5 -3
  150. package/plugins/contextMenu/predefinedItems/rowAbove.js +5 -3
  151. package/plugins/contextMenu/predefinedItems/rowAbove.mjs +5 -3
  152. package/plugins/contextMenu/predefinedItems/rowBelow.js +5 -3
  153. package/plugins/contextMenu/predefinedItems/rowBelow.mjs +5 -3
  154. package/plugins/contextMenu/utils.js +28 -16
  155. package/plugins/contextMenu/utils.mjs +27 -15
  156. package/plugins/copyPaste/contextMenuItem/copy.js +7 -0
  157. package/plugins/copyPaste/contextMenuItem/copy.mjs +7 -0
  158. package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.js +9 -1
  159. package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.mjs +9 -1
  160. package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.js +9 -1
  161. package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.mjs +9 -1
  162. package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.js +9 -1
  163. package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.mjs +9 -1
  164. package/plugins/copyPaste/contextMenuItem/cut.js +7 -0
  165. package/plugins/copyPaste/contextMenuItem/cut.mjs +7 -0
  166. package/plugins/copyPaste/copyPaste.js +12 -6
  167. package/plugins/copyPaste/copyPaste.mjs +12 -6
  168. package/plugins/customBorders/customBorders.js +36 -29
  169. package/plugins/customBorders/customBorders.mjs +37 -30
  170. package/plugins/customBorders/utils.js +3 -3
  171. package/plugins/customBorders/utils.mjs +3 -3
  172. package/plugins/dropdownMenu/dropdownMenu.d.ts +1 -1
  173. package/plugins/dropdownMenu/dropdownMenu.js +89 -32
  174. package/plugins/dropdownMenu/dropdownMenu.mjs +89 -32
  175. package/plugins/filters/conditionCollection.js +6 -5
  176. package/plugins/filters/conditionCollection.mjs +6 -5
  177. package/plugins/filters/filters.js +44 -21
  178. package/plugins/filters/filters.mjs +43 -20
  179. package/plugins/formulas/engine/register.js +3 -3
  180. package/plugins/formulas/engine/register.mjs +3 -3
  181. package/plugins/formulas/engine/settings.js +6 -3
  182. package/plugins/formulas/engine/settings.mjs +6 -3
  183. package/plugins/formulas/formulas.js +151 -143
  184. package/plugins/formulas/formulas.mjs +151 -143
  185. package/plugins/formulas/indexSyncer/axisSyncer.js +115 -79
  186. package/plugins/formulas/indexSyncer/axisSyncer.mjs +115 -79
  187. package/plugins/formulas/indexSyncer/index.js +100 -64
  188. package/plugins/formulas/indexSyncer/index.mjs +100 -64
  189. package/plugins/hiddenColumns/contextMenuItem/showColumn.js +2 -2
  190. package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +2 -2
  191. package/plugins/hiddenColumns/hiddenColumns.js +51 -34
  192. package/plugins/hiddenColumns/hiddenColumns.mjs +51 -34
  193. package/plugins/hiddenRows/contextMenuItem/showRow.js +2 -2
  194. package/plugins/hiddenRows/contextMenuItem/showRow.mjs +2 -2
  195. package/plugins/hiddenRows/hiddenRows.js +50 -33
  196. package/plugins/hiddenRows/hiddenRows.mjs +50 -33
  197. package/plugins/manualRowResize/manualRowResize.js +2 -1
  198. package/plugins/manualRowResize/manualRowResize.mjs +2 -1
  199. package/plugins/mergeCells/mergeCells.js +6 -17
  200. package/plugins/mergeCells/mergeCells.mjs +6 -17
  201. package/plugins/multiColumnSorting/multiColumnSorting.js +37 -2
  202. package/plugins/multiColumnSorting/multiColumnSorting.mjs +37 -2
  203. package/plugins/nestedHeaders/nestedHeaders.js +209 -75
  204. package/plugins/nestedHeaders/nestedHeaders.mjs +208 -74
  205. package/plugins/nestedHeaders/stateManager/headersTree.js +58 -38
  206. package/plugins/nestedHeaders/stateManager/headersTree.mjs +58 -38
  207. package/plugins/nestedHeaders/stateManager/index.js +107 -49
  208. package/plugins/nestedHeaders/stateManager/index.mjs +105 -47
  209. package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.js +1 -1
  210. package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.mjs +1 -1
  211. package/plugins/nestedHeaders/stateManager/sourceSettings.js +57 -37
  212. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +57 -37
  213. package/plugins/nestedHeaders/utils/ghostTable.js +39 -35
  214. package/plugins/nestedHeaders/utils/ghostTable.mjs +39 -35
  215. package/plugins/nestedRows/data/dataManager.js +4 -2
  216. package/plugins/nestedRows/data/dataManager.mjs +4 -2
  217. package/plugins/nestedRows/nestedRows.js +41 -0
  218. package/plugins/nestedRows/nestedRows.mjs +41 -0
  219. package/plugins/persistentState/storage.js +1 -0
  220. package/plugins/persistentState/storage.mjs +1 -0
  221. package/plugins/undoRedo/undoRedo.js +2 -1
  222. package/plugins/undoRedo/undoRedo.mjs +2 -1
  223. package/renderers/checkboxRenderer/checkboxRenderer.js +2 -2
  224. package/renderers/checkboxRenderer/checkboxRenderer.mjs +1 -1
  225. package/selection/highlight/highlight.js +256 -71
  226. package/selection/highlight/highlight.mjs +250 -71
  227. package/selection/highlight/types/activeHeader.js +10 -8
  228. package/selection/highlight/types/activeHeader.mjs +10 -8
  229. package/selection/highlight/types/area.js +6 -18
  230. package/selection/highlight/types/area.mjs +6 -18
  231. package/selection/highlight/types/areaLayered.js +31 -0
  232. package/selection/highlight/types/areaLayered.mjs +26 -0
  233. package/selection/highlight/types/column.js +27 -0
  234. package/selection/highlight/types/column.mjs +22 -0
  235. package/selection/highlight/types/customSelection.js +7 -9
  236. package/selection/highlight/types/customSelection.mjs +7 -9
  237. package/selection/highlight/types/fill.js +5 -7
  238. package/selection/highlight/types/fill.mjs +5 -7
  239. package/selection/highlight/types/{cell.js → focus.js} +5 -7
  240. package/selection/highlight/types/{cell.mjs → focus.mjs} +5 -7
  241. package/selection/highlight/types/header.js +9 -18
  242. package/selection/highlight/types/header.mjs +9 -18
  243. package/selection/highlight/types/row.js +27 -0
  244. package/selection/highlight/types/row.mjs +22 -0
  245. package/selection/highlight/visualSelection.js +41 -33
  246. package/selection/highlight/visualSelection.mjs +41 -33
  247. package/selection/index.js +4 -7
  248. package/selection/index.mjs +2 -3
  249. package/selection/mouseEventHandler.js +1 -1
  250. package/selection/mouseEventHandler.mjs +1 -1
  251. package/selection/range.js +8 -8
  252. package/selection/range.mjs +8 -8
  253. package/selection/selection.js +290 -154
  254. package/selection/selection.mjs +287 -153
  255. package/selection/transformation.js +232 -90
  256. package/selection/transformation.mjs +232 -90
  257. package/selection/utils.js +15 -21
  258. package/selection/utils.mjs +16 -21
  259. package/settings.d.ts +2 -0
  260. package/shortcutContexts/commands/editor/closeAndSave.js +12 -0
  261. package/shortcutContexts/commands/editor/closeAndSave.mjs +8 -0
  262. package/shortcutContexts/commands/editor/closeWithoutSaving.js +12 -0
  263. package/shortcutContexts/commands/editor/closeWithoutSaving.mjs +8 -0
  264. package/shortcutContexts/commands/editor/fastOpen.js +16 -0
  265. package/shortcutContexts/commands/editor/fastOpen.mjs +12 -0
  266. package/shortcutContexts/commands/editor/index.js +16 -0
  267. package/shortcutContexts/commands/editor/index.mjs +12 -0
  268. package/shortcutContexts/commands/editor/open.js +27 -0
  269. package/shortcutContexts/commands/editor/open.mjs +23 -0
  270. package/shortcutContexts/commands/emptySelectedCells.js +11 -0
  271. package/shortcutContexts/commands/emptySelectedCells.mjs +7 -0
  272. package/shortcutContexts/commands/extendCellsSelection/down.js +15 -0
  273. package/shortcutContexts/commands/extendCellsSelection/down.mjs +11 -0
  274. package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +21 -0
  275. package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +17 -0
  276. package/shortcutContexts/commands/extendCellsSelection/index.js +26 -0
  277. package/shortcutContexts/commands/extendCellsSelection/index.mjs +22 -0
  278. package/shortcutContexts/commands/extendCellsSelection/left.js +15 -0
  279. package/shortcutContexts/commands/extendCellsSelection/left.mjs +11 -0
  280. package/shortcutContexts/commands/extendCellsSelection/right.js +15 -0
  281. package/shortcutContexts/commands/extendCellsSelection/right.mjs +11 -0
  282. package/shortcutContexts/commands/extendCellsSelection/toColumns.js +19 -0
  283. package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +15 -0
  284. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +29 -0
  285. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +25 -0
  286. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +19 -0
  287. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +15 -0
  288. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +19 -0
  289. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +15 -0
  290. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +29 -0
  291. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +25 -0
  292. package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +29 -0
  293. package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +25 -0
  294. package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +29 -0
  295. package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +25 -0
  296. package/shortcutContexts/commands/extendCellsSelection/toRows.js +19 -0
  297. package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +15 -0
  298. package/shortcutContexts/commands/extendCellsSelection/up.js +15 -0
  299. package/shortcutContexts/commands/extendCellsSelection/up.mjs +11 -0
  300. package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +21 -0
  301. package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +17 -0
  302. package/shortcutContexts/commands/index.js +35 -0
  303. package/shortcutContexts/commands/index.mjs +31 -0
  304. package/shortcutContexts/commands/moveCellSelection/down.js +13 -0
  305. package/shortcutContexts/commands/moveCellSelection/down.mjs +9 -0
  306. package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.js +31 -0
  307. package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.mjs +27 -0
  308. package/shortcutContexts/commands/moveCellSelection/index.js +28 -0
  309. package/shortcutContexts/commands/moveCellSelection/index.mjs +24 -0
  310. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +12 -0
  311. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +8 -0
  312. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +12 -0
  313. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +8 -0
  314. package/shortcutContexts/commands/moveCellSelection/left.js +10 -0
  315. package/shortcutContexts/commands/moveCellSelection/left.mjs +6 -0
  316. package/shortcutContexts/commands/moveCellSelection/right.js +10 -0
  317. package/shortcutContexts/commands/moveCellSelection/right.mjs +6 -0
  318. package/shortcutContexts/commands/moveCellSelection/toMostBottom.js +17 -0
  319. package/shortcutContexts/commands/moveCellSelection/toMostBottom.mjs +13 -0
  320. package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.js +18 -0
  321. package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.mjs +14 -0
  322. package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.js +14 -0
  323. package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.mjs +10 -0
  324. package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.js +17 -0
  325. package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.mjs +13 -0
  326. package/shortcutContexts/commands/moveCellSelection/toMostLeft.js +19 -0
  327. package/shortcutContexts/commands/moveCellSelection/toMostLeft.mjs +15 -0
  328. package/shortcutContexts/commands/moveCellSelection/toMostRight.js +21 -0
  329. package/shortcutContexts/commands/moveCellSelection/toMostRight.mjs +17 -0
  330. package/shortcutContexts/commands/moveCellSelection/toMostTop.js +17 -0
  331. package/shortcutContexts/commands/moveCellSelection/toMostTop.mjs +13 -0
  332. package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.js +19 -0
  333. package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.mjs +15 -0
  334. package/shortcutContexts/commands/moveCellSelection/up.js +13 -0
  335. package/shortcutContexts/commands/moveCellSelection/up.mjs +9 -0
  336. package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.js +31 -0
  337. package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.mjs +27 -0
  338. package/shortcutContexts/commands/populateSelectedCellsData.js +29 -0
  339. package/shortcutContexts/commands/populateSelectedCellsData.mjs +25 -0
  340. package/shortcutContexts/commands/scrollToFocusedCell.js +36 -0
  341. package/shortcutContexts/commands/scrollToFocusedCell.mjs +32 -0
  342. package/shortcutContexts/commands/selectAll.js +10 -0
  343. package/shortcutContexts/commands/selectAll.mjs +6 -0
  344. package/shortcutContexts/constants.js +13 -0
  345. package/shortcutContexts/constants.mjs +8 -0
  346. package/shortcutContexts/editor.js +25 -0
  347. package/shortcutContexts/editor.mjs +21 -0
  348. package/shortcutContexts/grid.js +163 -0
  349. package/shortcutContexts/grid.mjs +159 -0
  350. package/shortcutContexts/index.js +24 -0
  351. package/shortcutContexts/index.mjs +11 -0
  352. package/shortcuts/manager.js +2 -0
  353. package/shortcuts/manager.mjs +2 -0
  354. package/shortcuts/recorder.js +2 -2
  355. package/shortcuts/recorder.mjs +2 -2
  356. package/shortcuts/utils.js +19 -5
  357. package/shortcuts/utils.mjs +18 -4
  358. package/tableView.js +163 -91
  359. package/tableView.mjs +163 -91
  360. package/translations/changesObservable/observable.js +82 -54
  361. package/translations/changesObservable/observable.mjs +82 -54
  362. package/translations/changesObservable/observer.js +24 -11
  363. package/translations/changesObservable/observer.mjs +24 -11
  364. package/translations/maps/linkedPhysicalIndexToValueMap.js +14 -8
  365. package/translations/maps/linkedPhysicalIndexToValueMap.mjs +14 -8
  366. package/utils/dataStructures/tree.js +21 -18
  367. package/utils/dataStructures/tree.mjs +21 -18
  368. package/3rdparty/walkontable/src/selection.js +0 -295
  369. package/3rdparty/walkontable/src/selection.mjs +0 -290
  370. package/selection/highlight/constants.js +0 -15
  371. package/selection/highlight/constants.mjs +0 -6
  372. package/selection/highlight/types/index.js +0 -35
  373. package/selection/highlight/types/index.mjs +0 -31
@@ -1,4 +1,16 @@
1
+ import "core-js/modules/es.json.stringify.js";
1
2
  import "core-js/modules/es.array.push.js";
3
+ import "core-js/modules/es.error.cause.js";
4
+ 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; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
8
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
9
+ function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
10
+ 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; } }
11
+ function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
12
+ function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
13
+ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
2
14
  import { BasePlugin } from "../base/index.mjs";
3
15
  import staticRegister from "../../utils/staticRegister.mjs";
4
16
  import { error, warn } from "../../helpers/console.mjs";
@@ -37,7 +49,94 @@ const isBlockedSource = source => source === 'UndoRedo.undo' || source === 'Undo
37
49
  * @plugin Formulas
38
50
  * @class Formulas
39
51
  */
52
+ var _internalOperationPending = /*#__PURE__*/new WeakMap();
53
+ var _hotWasInitializedWithEmptyData = /*#__PURE__*/new WeakMap();
54
+ var _engineListeners = /*#__PURE__*/new WeakMap();
40
55
  export class Formulas extends BasePlugin {
56
+ constructor() {
57
+ var _this;
58
+ super(...arguments);
59
+ _this = this;
60
+ /**
61
+ * Flag used to bypass hooks in internal operations.
62
+ *
63
+ * @private
64
+ * @type {boolean}
65
+ */
66
+ _classPrivateFieldInitSpec(this, _internalOperationPending, {
67
+ writable: true,
68
+ value: false
69
+ });
70
+ /**
71
+ * Flag needed to mark if Handsontable was initialized with no data.
72
+ * (Required to work around the fact, that Handsontable auto-generates sample data, when no data is provided).
73
+ *
74
+ * @type {boolean}
75
+ */
76
+ _classPrivateFieldInitSpec(this, _hotWasInitializedWithEmptyData, {
77
+ writable: true,
78
+ value: false
79
+ });
80
+ /**
81
+ * The list of the HyperFormula listeners.
82
+ *
83
+ * @type {Array}
84
+ */
85
+ _classPrivateFieldInitSpec(this, _engineListeners, {
86
+ writable: true,
87
+ value: [['valuesUpdated', function () {
88
+ return _this.onEngineValuesUpdated(...arguments);
89
+ }], ['namedExpressionAdded', function () {
90
+ return _this.onEngineNamedExpressionsAdded(...arguments);
91
+ }], ['namedExpressionRemoved', function () {
92
+ return _this.onEngineNamedExpressionsRemoved(...arguments);
93
+ }], ['sheetAdded', function () {
94
+ return _this.onEngineSheetAdded(...arguments);
95
+ }], ['sheetRenamed', function () {
96
+ return _this.onEngineSheetRenamed(...arguments);
97
+ }], ['sheetRemoved', function () {
98
+ return _this.onEngineSheetRemoved(...arguments);
99
+ }]]
100
+ });
101
+ /**
102
+ * Static register used to set up one global HyperFormula instance.
103
+ * TODO: currently used in tests, might be removed later.
104
+ *
105
+ * @private
106
+ * @type {object}
107
+ */
108
+ _defineProperty(this, "staticRegister", staticRegister('formulas'));
109
+ /**
110
+ * The engine instance that will be used for this instance of Handsontable.
111
+ *
112
+ * @type {HyperFormula|null}
113
+ */
114
+ _defineProperty(this, "engine", null);
115
+ /**
116
+ * HyperFormula's sheet name.
117
+ *
118
+ * @type {string|null}
119
+ */
120
+ _defineProperty(this, "sheetName", null);
121
+ /**
122
+ * Index synchronizer responsible for manipulating with some general options related to indexes synchronization.
123
+ *
124
+ * @type {IndexSyncer|null}
125
+ */
126
+ _defineProperty(this, "indexSyncer", null);
127
+ /**
128
+ * Index synchronizer responsible for syncing the order of HOT and HF's data for the axis of the rows.
129
+ *
130
+ * @type {AxisSyncer|null}
131
+ */
132
+ _defineProperty(this, "rowAxisSyncer", null);
133
+ /**
134
+ * Index synchronizer responsible for syncing the order of HOT and HF's data for the axis of the columns.
135
+ *
136
+ * @type {AxisSyncer|null}
137
+ */
138
+ _defineProperty(this, "columnAxisSyncer", null);
139
+ }
41
140
  static get PLUGIN_KEY() {
42
141
  return PLUGIN_KEY;
43
142
  }
@@ -47,101 +146,6 @@ export class Formulas extends BasePlugin {
47
146
  static get SETTING_KEYS() {
48
147
  return [PLUGIN_KEY, ...SETTING_KEYS];
49
148
  }
50
-
51
- /**
52
- * Flag used to bypass hooks in internal operations.
53
- *
54
- * @private
55
- * @type {boolean}
56
- */
57
- #internalOperationPending = false;
58
-
59
- /**
60
- * Flag needed to mark if Handsontable was initialized with no data.
61
- * (Required to work around the fact, that Handsontable auto-generates sample data, when no data is provided).
62
- *
63
- * @type {boolean}
64
- */
65
- #hotWasInitializedWithEmptyData = false;
66
-
67
- /**
68
- * The list of the HyperFormula listeners.
69
- *
70
- * @type {Array}
71
- */
72
- #engineListeners = [['valuesUpdated', (() => {
73
- var _this = this;
74
- return function () {
75
- return _this.onEngineValuesUpdated(...arguments);
76
- };
77
- })()], ['namedExpressionAdded', (() => {
78
- var _this2 = this;
79
- return function () {
80
- return _this2.onEngineNamedExpressionsAdded(...arguments);
81
- };
82
- })()], ['namedExpressionRemoved', (() => {
83
- var _this3 = this;
84
- return function () {
85
- return _this3.onEngineNamedExpressionsRemoved(...arguments);
86
- };
87
- })()], ['sheetAdded', (() => {
88
- var _this4 = this;
89
- return function () {
90
- return _this4.onEngineSheetAdded(...arguments);
91
- };
92
- })()], ['sheetRenamed', (() => {
93
- var _this5 = this;
94
- return function () {
95
- return _this5.onEngineSheetRenamed(...arguments);
96
- };
97
- })()], ['sheetRemoved', (() => {
98
- var _this6 = this;
99
- return function () {
100
- return _this6.onEngineSheetRemoved(...arguments);
101
- };
102
- })()]];
103
-
104
- /**
105
- * Static register used to set up one global HyperFormula instance.
106
- * TODO: currently used in tests, might be removed later.
107
- *
108
- * @private
109
- * @type {object}
110
- */
111
- staticRegister = staticRegister('formulas');
112
-
113
- /**
114
- * The engine instance that will be used for this instance of Handsontable.
115
- *
116
- * @type {HyperFormula|null}
117
- */
118
- engine = null;
119
-
120
- /**
121
- * HyperFormula's sheet name.
122
- *
123
- * @type {string|null}
124
- */
125
- sheetName = null;
126
- /**
127
- * Index synchronizer responsible for manipulating with some general options related to indexes synchronization.
128
- *
129
- * @type {IndexSyncer|null}
130
- */
131
- indexSyncer = null;
132
- /**
133
- * Index synchronizer responsible for syncing the order of HOT and HF's data for the axis of the rows.
134
- *
135
- * @type {AxisSyncer|null}
136
- */
137
- rowAxisSyncer = null;
138
- /**
139
- * Index synchronizer responsible for syncing the order of HOT and HF's data for the axis of the columns.
140
- *
141
- * @type {AxisSyncer|null}
142
- */
143
- columnAxisSyncer = null;
144
-
145
149
  /**
146
150
  * HyperFormula's sheet id.
147
151
  *
@@ -167,11 +171,11 @@ export class Formulas extends BasePlugin {
167
171
  */
168
172
  enablePlugin() {
169
173
  var _setupEngine,
170
- _this7 = this;
174
+ _this2 = this;
171
175
  if (this.enabled) {
172
176
  return;
173
177
  }
174
- this.engine = (_setupEngine = setupEngine(this.hot)) != null ? _setupEngine : this.engine;
178
+ this.engine = (_setupEngine = setupEngine(this.hot)) !== null && _setupEngine !== void 0 ? _setupEngine : this.engine;
175
179
  if (!this.engine) {
176
180
  warn('Missing the required `engine` key in the Formulas settings. Please fill it with either an' + ' engine class or an engine instance.');
177
181
  return;
@@ -185,60 +189,60 @@ export class Formulas extends BasePlugin {
185
189
  }
186
190
  }
187
191
  this.addHook('beforeLoadData', function () {
188
- return _this7.onBeforeLoadData(...arguments);
192
+ return _this2.onBeforeLoadData(...arguments);
189
193
  });
190
194
  this.addHook('afterLoadData', function () {
191
- return _this7.onAfterLoadData(...arguments);
195
+ return _this2.onAfterLoadData(...arguments);
192
196
  });
193
197
 
194
198
  // The `updateData` hooks utilize the same logic as the `loadData` hooks.
195
199
  this.addHook('beforeUpdateData', function () {
196
- return _this7.onBeforeLoadData(...arguments);
200
+ return _this2.onBeforeLoadData(...arguments);
197
201
  });
198
202
  this.addHook('afterUpdateData', function () {
199
- return _this7.onAfterLoadData(...arguments);
203
+ return _this2.onAfterLoadData(...arguments);
200
204
  });
201
205
  this.addHook('modifyData', function () {
202
- return _this7.onModifyData(...arguments);
206
+ return _this2.onModifyData(...arguments);
203
207
  });
204
208
  this.addHook('modifySourceData', function () {
205
- return _this7.onModifySourceData(...arguments);
209
+ return _this2.onModifySourceData(...arguments);
206
210
  });
207
211
  this.addHook('beforeValidate', function () {
208
- return _this7.onBeforeValidate(...arguments);
212
+ return _this2.onBeforeValidate(...arguments);
209
213
  });
210
214
  this.addHook('afterSetSourceDataAtCell', function () {
211
- return _this7.onAfterSetSourceDataAtCell(...arguments);
215
+ return _this2.onAfterSetSourceDataAtCell(...arguments);
212
216
  });
213
217
  this.addHook('afterSetDataAtCell', function () {
214
- return _this7.onAfterSetDataAtCell(...arguments);
218
+ return _this2.onAfterSetDataAtCell(...arguments);
215
219
  });
216
220
  this.addHook('afterSetDataAtRowProp', function () {
217
- return _this7.onAfterSetDataAtCell(...arguments);
221
+ return _this2.onAfterSetDataAtCell(...arguments);
218
222
  });
219
223
  this.addHook('beforeCreateRow', function () {
220
- return _this7.onBeforeCreateRow(...arguments);
224
+ return _this2.onBeforeCreateRow(...arguments);
221
225
  });
222
226
  this.addHook('beforeCreateCol', function () {
223
- return _this7.onBeforeCreateCol(...arguments);
227
+ return _this2.onBeforeCreateCol(...arguments);
224
228
  });
225
229
  this.addHook('afterCreateRow', function () {
226
- return _this7.onAfterCreateRow(...arguments);
230
+ return _this2.onAfterCreateRow(...arguments);
227
231
  });
228
232
  this.addHook('afterCreateCol', function () {
229
- return _this7.onAfterCreateCol(...arguments);
233
+ return _this2.onAfterCreateCol(...arguments);
230
234
  });
231
235
  this.addHook('beforeRemoveRow', function () {
232
- return _this7.onBeforeRemoveRow(...arguments);
236
+ return _this2.onBeforeRemoveRow(...arguments);
233
237
  });
234
238
  this.addHook('beforeRemoveCol', function () {
235
- return _this7.onBeforeRemoveCol(...arguments);
239
+ return _this2.onBeforeRemoveCol(...arguments);
236
240
  });
237
241
  this.addHook('afterRemoveRow', function () {
238
- return _this7.onAfterRemoveRow(...arguments);
242
+ return _this2.onAfterRemoveRow(...arguments);
239
243
  });
240
244
  this.addHook('afterRemoveCol', function () {
241
- return _this7.onAfterRemoveCol(...arguments);
245
+ return _this2.onAfterRemoveCol(...arguments);
242
246
  });
243
247
  this.indexSyncer = new IndexSyncer(this.hot.rowIndexMapper, this.hot.columnIndexMapper, postponedAction => {
244
248
  this.hot.addHookOnce('init', () => {
@@ -280,7 +284,7 @@ export class Formulas extends BasePlugin {
280
284
  // hook, because some hooks, such as `afterLoadData` doesn't have information about composed cell properties.
281
285
  // Another hooks are triggered to late for setting HF's engine data needed for some actions.
282
286
  this.addHook('afterCellMetaReset', function () {
283
- return _this7.onAfterCellMetaReset(...arguments);
287
+ return _this2.onAfterCellMetaReset(...arguments);
284
288
  });
285
289
 
286
290
  // Handling undo actions on data just using HyperFormula's UndoRedo mechanism
@@ -301,12 +305,12 @@ export class Formulas extends BasePlugin {
301
305
  this.indexSyncer.setPerformRedo(false);
302
306
  });
303
307
  this.addHook('afterDetachChild', function () {
304
- return _this7.onAfterDetachChild(...arguments);
308
+ return _this2.onAfterDetachChild(...arguments);
305
309
  });
306
310
  this.addHook('beforeAutofill', function () {
307
- return _this7.onBeforeAutofill(...arguments);
311
+ return _this2.onBeforeAutofill(...arguments);
308
312
  });
309
- this.#engineListeners.forEach(_ref => {
313
+ _classPrivateFieldGet(this, _engineListeners).forEach(_ref => {
310
314
  let [eventName, listener] = _ref;
311
315
  return this.engine.on(eventName, listener);
312
316
  });
@@ -317,7 +321,7 @@ export class Formulas extends BasePlugin {
317
321
  * Disables the plugin functionality for this Handsontable instance.
318
322
  */
319
323
  disablePlugin() {
320
- this.#engineListeners.forEach(_ref2 => {
324
+ _classPrivateFieldGet(this, _engineListeners).forEach(_ref2 => {
321
325
  let [eventName, listener] = _ref2;
322
326
  return this.engine.off(eventName, listener);
323
327
  });
@@ -349,7 +353,7 @@ export class Formulas extends BasePlugin {
349
353
  if (sheetName && this.engine.doesSheetExist(sheetName)) {
350
354
  this.switchSheet(this.sheetName);
351
355
  } else {
352
- this.sheetName = this.addSheet(sheetName != null ? sheetName : void 0, this.hot.getSourceDataArray());
356
+ this.sheetName = this.addSheet(sheetName !== null && sheetName !== void 0 ? sheetName : void 0, this.hot.getSourceDataArray());
353
357
  }
354
358
  }
355
359
  super.updatePlugin(newSettings);
@@ -359,11 +363,12 @@ export class Formulas extends BasePlugin {
359
363
  * Destroys the plugin instance.
360
364
  */
361
365
  destroy() {
362
- this.#engineListeners.forEach(_ref3 => {
366
+ _classPrivateFieldGet(this, _engineListeners).forEach(_ref3 => {
367
+ var _this$engine;
363
368
  let [eventName, listener] = _ref3;
364
- return this.engine?.off(eventName, listener);
369
+ return (_this$engine = this.engine) === null || _this$engine === void 0 ? void 0 : _this$engine.off(eventName, listener);
365
370
  });
366
- this.#engineListeners = null;
371
+ _classPrivateFieldSet(this, _engineListeners, null);
367
372
  unregisterEngine(this.engine, this.hot);
368
373
  this.engine = null;
369
374
  super.destroy();
@@ -389,7 +394,7 @@ export class Formulas extends BasePlugin {
389
394
  return false;
390
395
  }
391
396
  try {
392
- const actualSheetName = this.engine.addSheet(sheetName != null ? sheetName : void 0);
397
+ const actualSheetName = this.engine.addSheet(sheetName !== null && sheetName !== void 0 ? sheetName : void 0);
393
398
  if (sheetData) {
394
399
  this.engine.setSheetContent(this.engine.getSheetId(actualSheetName), sheetData);
395
400
  }
@@ -471,8 +476,9 @@ export class Formulas extends BasePlugin {
471
476
  let renderSelf = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
472
477
  const affectedSheetIds = new Set();
473
478
  dependentCells.forEach(change => {
479
+ var _change$address;
474
480
  // For the Named expression the address is empty, hence the `sheetId` is undefined.
475
- const sheetId = change?.address?.sheet;
481
+ const sheetId = change === null || change === void 0 || (_change$address = change.address) === null || _change$address === void 0 ? void 0 : _change$address.sheet;
476
482
  if (sheetId !== void 0) {
477
483
  if (!affectedSheetIds.has(sheetId)) {
478
484
  affectedSheetIds.add(sheetId);
@@ -481,8 +487,9 @@ export class Formulas extends BasePlugin {
481
487
  });
482
488
  getRegisteredHotInstances(this.engine).forEach((relatedHot, sheetId) => {
483
489
  if ((renderSelf || sheetId !== this.sheetId) && affectedSheetIds.has(sheetId)) {
490
+ var _relatedHot$view;
484
491
  relatedHot.render();
485
- relatedHot.view?.adjustElementsSize();
492
+ (_relatedHot$view = relatedHot.view) === null || _relatedHot$view === void 0 ? void 0 : _relatedHot$view.adjustElementsSize();
486
493
  }
487
494
  });
488
495
  }
@@ -497,21 +504,21 @@ export class Formulas extends BasePlugin {
497
504
  validateDependentCells(dependentCells) {
498
505
  let changedCells = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
499
506
  const stringifyAddress = change => {
500
- var _change$address;
507
+ var _change$address2;
501
508
  const {
502
509
  row,
503
510
  col,
504
511
  sheet
505
- } = (_change$address = change?.address) != null ? _change$address : {};
512
+ } = (_change$address2 = change === null || change === void 0 ? void 0 : change.address) !== null && _change$address2 !== void 0 ? _change$address2 : {};
506
513
  return isDefined(sheet) ? `${sheet}:${row}x${col}` : '';
507
514
  };
508
515
  const changedCellsSet = new Set(changedCells.map(change => stringifyAddress(change)));
509
516
  dependentCells.forEach(change => {
510
- var _change$address2;
517
+ var _change$address3, _change$address4;
511
518
  const {
512
519
  row,
513
520
  col
514
- } = (_change$address2 = change.address) != null ? _change$address2 : {};
521
+ } = (_change$address3 = change.address) !== null && _change$address3 !== void 0 ? _change$address3 : {};
515
522
 
516
523
  // Don't try to validate cells outside of the visual part of the table.
517
524
  if (isDefined(row) === false || isDefined(col) === false || row >= this.hot.countRows() || col >= this.hot.countCols()) {
@@ -519,7 +526,7 @@ export class Formulas extends BasePlugin {
519
526
  }
520
527
 
521
528
  // For the Named expression the address is empty, hence the `sheetId` is undefined.
522
- const sheetId = change?.address?.sheet;
529
+ const sheetId = change === null || change === void 0 || (_change$address4 = change.address) === null || _change$address4 === void 0 ? void 0 : _change$address4.sheet;
523
530
  const addressId = stringifyAddress(change);
524
531
 
525
532
  // Validate the cells that depend on the calculated formulas. Skip that cells
@@ -705,7 +712,7 @@ export class Formulas extends BasePlugin {
705
712
 
706
713
  // This flag needs to be defined, because not passing data to HOT results in HOT auto-generating a `null`-filled
707
714
  // initial dataset.
708
- this.#hotWasInitializedWithEmptyData = isUndefined(this.hot.getSettings().data);
715
+ _classPrivateFieldSet(this, _hotWasInitializedWithEmptyData, isUndefined(this.hot.getSettings().data));
709
716
  }
710
717
 
711
718
  /**
@@ -733,9 +740,9 @@ export class Formulas extends BasePlugin {
733
740
  });
734
741
  });
735
742
  if (valueChanged === true) {
736
- this.#internalOperationPending = true;
743
+ _classPrivateFieldSet(this, _internalOperationPending, true);
737
744
  this.engine.setSheetContent(this.sheetId, sourceDataArray);
738
- this.#internalOperationPending = false;
745
+ _classPrivateFieldSet(this, _internalOperationPending, false);
739
746
  }
740
747
  }
741
748
 
@@ -753,14 +760,14 @@ export class Formulas extends BasePlugin {
753
760
  return;
754
761
  }
755
762
  this.sheetName = setupSheet(this.engine, this.hot.getSettings()[PLUGIN_KEY].sheetName);
756
- if (!this.#hotWasInitializedWithEmptyData) {
763
+ if (!_classPrivateFieldGet(this, _hotWasInitializedWithEmptyData)) {
757
764
  const sourceDataArray = this.hot.getSourceDataArray();
758
765
  if (this.engine.isItPossibleToReplaceSheetContent(this.sheetId, sourceDataArray)) {
759
- this.#internalOperationPending = true;
766
+ _classPrivateFieldSet(this, _internalOperationPending, true);
760
767
  const dependentCells = this.engine.setSheetContent(this.sheetId, sourceDataArray);
761
768
  this.indexSyncer.setupSyncEndpoint(this.engine, this.sheetId);
762
769
  this.renderDependentSheets(dependentCells);
763
- this.#internalOperationPending = false;
770
+ _classPrivateFieldSet(this, _internalOperationPending, false);
764
771
  }
765
772
  } else {
766
773
  this.switchSheet(this.sheetName);
@@ -778,7 +785,7 @@ export class Formulas extends BasePlugin {
778
785
  * @param {string} ioMode String which indicates for what operation hook is fired (`get` or `set`).
779
786
  */
780
787
  onModifyData(physicalRow, visualColumn, valueHolder, ioMode) {
781
- if (ioMode !== 'get' || this.#internalOperationPending || this.sheetName === null || !this.engine.doesSheetExist(this.sheetName)) {
788
+ if (ioMode !== 'get' || _classPrivateFieldGet(this, _internalOperationPending) || this.sheetName === null || !this.engine.doesSheetExist(this.sheetName)) {
782
789
  return;
783
790
  }
784
791
  const visualRow = this.hot.toVisualRow(physicalRow);
@@ -824,7 +831,7 @@ export class Formulas extends BasePlugin {
824
831
  * @param {string} ioMode String which indicates for what operation hook is fired (`get` or `set`).
825
832
  */
826
833
  onModifySourceData(row, columnOrProp, valueHolder, ioMode) {
827
- if (ioMode !== 'get' || this.#internalOperationPending || this.sheetName === null || !this.engine.doesSheetExist(this.sheetName)) {
834
+ if (ioMode !== 'get' || _classPrivateFieldGet(this, _internalOperationPending) || this.sheetName === null || !this.engine.doesSheetExist(this.sheetName)) {
828
835
  return;
829
836
  }
830
837
  const visualRow = this.hot.toVisualRow(row);
@@ -1110,9 +1117,10 @@ export class Formulas extends BasePlugin {
1110
1117
  * @param {number} finalElementRowIndex The final row index of the detached element.
1111
1118
  */
1112
1119
  onAfterDetachChild(parent, element, finalElementRowIndex) {
1113
- this.#internalOperationPending = true;
1114
- const rowsData = this.hot.getSourceDataArray(finalElementRowIndex, 0, finalElementRowIndex + (element.__children?.length || 0), this.hot.countSourceCols());
1115
- this.#internalOperationPending = false;
1120
+ var _element$__children;
1121
+ _classPrivateFieldSet(this, _internalOperationPending, true);
1122
+ 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());
1123
+ _classPrivateFieldSet(this, _internalOperationPending, false);
1116
1124
  rowsData.forEach((row, relativeRowIndex) => {
1117
1125
  row.forEach((value, colIndex) => {
1118
1126
  this.engine.setCellContents({