handsontable 0.0.0-next-d1c8e0e-20230621 → 0.0.0-next-c765185-20230622

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 (280) hide show
  1. package/3rdparty/walkontable/src/{selection/border/border.js → border.js} +12 -7
  2. package/3rdparty/walkontable/src/{selection/border/border.mjs → border.mjs} +12 -7
  3. package/3rdparty/walkontable/src/cell/coords.d.ts +1 -6
  4. package/3rdparty/walkontable/src/cell/coords.js +12 -61
  5. package/3rdparty/walkontable/src/cell/coords.mjs +12 -61
  6. package/3rdparty/walkontable/src/cell/range.d.ts +2 -9
  7. package/3rdparty/walkontable/src/cell/range.js +7 -44
  8. package/3rdparty/walkontable/src/cell/range.mjs +7 -44
  9. package/3rdparty/walkontable/src/core/_base.js +3 -9
  10. package/3rdparty/walkontable/src/core/_base.mjs +3 -9
  11. package/3rdparty/walkontable/src/core/clone.js +2 -2
  12. package/3rdparty/walkontable/src/core/clone.mjs +2 -2
  13. package/3rdparty/walkontable/src/core/core.js +2 -3
  14. package/3rdparty/walkontable/src/core/core.mjs +2 -3
  15. package/3rdparty/walkontable/src/event.js +7 -7
  16. package/3rdparty/walkontable/src/event.mjs +7 -7
  17. package/3rdparty/walkontable/src/facade/core.js +2 -2
  18. package/3rdparty/walkontable/src/facade/core.mjs +2 -2
  19. package/3rdparty/walkontable/src/index.js +2 -10
  20. package/3rdparty/walkontable/src/index.mjs +2 -2
  21. package/3rdparty/walkontable/src/overlay/_base.js +1 -1
  22. package/3rdparty/walkontable/src/overlay/_base.mjs +1 -1
  23. package/3rdparty/walkontable/src/overlay/inlineStart.js +4 -2
  24. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +4 -2
  25. package/3rdparty/walkontable/src/overlay/top.js +4 -2
  26. package/3rdparty/walkontable/src/overlay/top.mjs +4 -2
  27. package/3rdparty/walkontable/src/selection.js +355 -0
  28. package/3rdparty/walkontable/src/selection.mjs +349 -0
  29. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +0 -9
  30. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +0 -9
  31. package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +0 -9
  32. package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +0 -9
  33. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +0 -9
  34. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +0 -9
  35. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +0 -9
  36. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +0 -9
  37. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +0 -9
  38. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +0 -9
  39. package/3rdparty/walkontable/src/table.js +79 -7
  40. package/3rdparty/walkontable/src/table.mjs +80 -8
  41. package/CHANGELOG.md +31 -0
  42. package/base.js +2 -2
  43. package/base.mjs +2 -2
  44. package/core.d.ts +3 -5
  45. package/core.js +309 -127
  46. package/core.mjs +309 -127
  47. package/dataMap/metaManager/metaSchema.js +0 -19
  48. package/dataMap/metaManager/metaSchema.mjs +0 -19
  49. package/dist/handsontable.css +3 -8
  50. package/dist/handsontable.full.css +3 -8
  51. package/dist/handsontable.full.js +10826 -13821
  52. package/dist/handsontable.full.min.css +3 -3
  53. package/dist/handsontable.full.min.js +115 -115
  54. package/dist/handsontable.js +13565 -16560
  55. package/dist/handsontable.min.css +3 -3
  56. package/dist/handsontable.min.js +4 -4
  57. package/editorManager.js +94 -21
  58. package/editorManager.mjs +98 -26
  59. package/editors/textEditor/textEditor.js +11 -3
  60. package/editors/textEditor/textEditor.mjs +12 -4
  61. package/helpers/mixed.js +2 -2
  62. package/helpers/mixed.mjs +2 -2
  63. package/helpers/number.d.ts +0 -1
  64. package/helpers/number.js +0 -18
  65. package/helpers/number.mjs +0 -17
  66. package/package.json +1 -1
  67. package/pluginHooks.d.ts +1 -5
  68. package/pluginHooks.js +1 -89
  69. package/pluginHooks.mjs +1 -89
  70. package/plugins/collapsibleColumns/collapsibleColumns.js +24 -81
  71. package/plugins/collapsibleColumns/collapsibleColumns.mjs +24 -81
  72. package/plugins/columnSorting/columnSorting.js +8 -50
  73. package/plugins/columnSorting/columnSorting.mjs +9 -49
  74. package/plugins/columnSorting/index.js +2 -4
  75. package/plugins/columnSorting/index.mjs +1 -1
  76. package/plugins/comments/comments.js +4 -11
  77. package/plugins/comments/comments.mjs +4 -11
  78. package/plugins/contextMenu/contextMenu.d.ts +1 -1
  79. package/plugins/contextMenu/contextMenu.js +29 -80
  80. package/plugins/contextMenu/contextMenu.mjs +30 -81
  81. package/plugins/contextMenu/predefinedItems/alignment.js +0 -7
  82. package/plugins/contextMenu/predefinedItems/alignment.mjs +0 -7
  83. package/plugins/contextMenu/predefinedItems/clearColumn.js +3 -5
  84. package/plugins/contextMenu/predefinedItems/clearColumn.mjs +3 -5
  85. package/plugins/contextMenu/predefinedItems/columnLeft.js +3 -5
  86. package/plugins/contextMenu/predefinedItems/columnLeft.mjs +3 -5
  87. package/plugins/contextMenu/predefinedItems/columnRight.js +3 -5
  88. package/plugins/contextMenu/predefinedItems/columnRight.mjs +3 -5
  89. package/plugins/contextMenu/predefinedItems/readOnly.js +0 -7
  90. package/plugins/contextMenu/predefinedItems/readOnly.mjs +0 -7
  91. package/plugins/contextMenu/predefinedItems/removeColumn.js +5 -7
  92. package/plugins/contextMenu/predefinedItems/removeColumn.mjs +3 -5
  93. package/plugins/contextMenu/predefinedItems/removeRow.js +5 -7
  94. package/plugins/contextMenu/predefinedItems/removeRow.mjs +3 -5
  95. package/plugins/contextMenu/predefinedItems/rowAbove.js +3 -5
  96. package/plugins/contextMenu/predefinedItems/rowAbove.mjs +3 -5
  97. package/plugins/contextMenu/predefinedItems/rowBelow.js +3 -5
  98. package/plugins/contextMenu/predefinedItems/rowBelow.mjs +3 -5
  99. package/plugins/contextMenu/utils.js +16 -25
  100. package/plugins/contextMenu/utils.mjs +15 -24
  101. package/plugins/copyPaste/contextMenuItem/copy.js +0 -7
  102. package/plugins/copyPaste/contextMenuItem/copy.mjs +0 -7
  103. package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.js +1 -9
  104. package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.mjs +1 -9
  105. package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.js +1 -9
  106. package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.mjs +1 -9
  107. package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.js +1 -9
  108. package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.mjs +1 -9
  109. package/plugins/copyPaste/contextMenuItem/cut.js +0 -7
  110. package/plugins/copyPaste/contextMenuItem/cut.mjs +0 -7
  111. package/plugins/copyPaste/copyPaste.js +1 -5
  112. package/plugins/copyPaste/copyPaste.mjs +1 -5
  113. package/plugins/customBorders/customBorders.js +53 -25
  114. package/plugins/customBorders/customBorders.mjs +54 -26
  115. package/plugins/dropdownMenu/dropdownMenu.d.ts +1 -1
  116. package/plugins/dropdownMenu/dropdownMenu.js +30 -94
  117. package/plugins/dropdownMenu/dropdownMenu.mjs +30 -94
  118. package/plugins/filters/filters.js +42 -62
  119. package/plugins/filters/filters.mjs +41 -61
  120. package/plugins/mergeCells/mergeCells.js +18 -5
  121. package/plugins/mergeCells/mergeCells.mjs +18 -5
  122. package/plugins/multiColumnSorting/multiColumnSorting.js +3 -42
  123. package/plugins/multiColumnSorting/multiColumnSorting.mjs +3 -42
  124. package/plugins/nestedHeaders/nestedHeaders.js +10 -132
  125. package/plugins/nestedHeaders/nestedHeaders.mjs +10 -132
  126. package/plugins/nestedHeaders/stateManager/index.js +0 -37
  127. package/plugins/nestedHeaders/stateManager/index.mjs +0 -37
  128. package/plugins/nestedRows/nestedRows.js +7 -52
  129. package/plugins/nestedRows/nestedRows.mjs +7 -52
  130. package/renderers/checkboxRenderer/checkboxRenderer.js +2 -2
  131. package/renderers/checkboxRenderer/checkboxRenderer.mjs +1 -1
  132. package/selection/highlight/constants.js +16 -0
  133. package/selection/highlight/constants.mjs +6 -0
  134. package/selection/highlight/highlight.js +89 -312
  135. package/selection/highlight/highlight.mjs +85 -302
  136. package/selection/highlight/types/activeHeader.js +9 -10
  137. package/selection/highlight/types/activeHeader.mjs +8 -10
  138. package/selection/highlight/types/area.js +27 -12
  139. package/selection/highlight/types/area.mjs +30 -16
  140. package/selection/highlight/types/{focus.js → cell.js} +8 -5
  141. package/selection/highlight/types/{focus.mjs → cell.mjs} +7 -5
  142. package/selection/highlight/types/customSelection.js +10 -7
  143. package/selection/highlight/types/customSelection.mjs +9 -7
  144. package/selection/highlight/types/fill.js +8 -5
  145. package/selection/highlight/types/fill.mjs +7 -5
  146. package/selection/highlight/types/header.js +20 -10
  147. package/selection/highlight/types/header.mjs +19 -10
  148. package/selection/highlight/types/{row.js → index.js} +31 -27
  149. package/selection/highlight/types/{row.mjs → index.mjs} +29 -24
  150. package/selection/highlight/visualSelection.js +27 -31
  151. package/selection/highlight/visualSelection.mjs +27 -31
  152. package/selection/index.js +7 -4
  153. package/selection/index.mjs +3 -2
  154. package/selection/mouseEventHandler.js +1 -1
  155. package/selection/mouseEventHandler.mjs +1 -1
  156. package/selection/range.js +8 -8
  157. package/selection/range.mjs +8 -8
  158. package/selection/selection.js +181 -315
  159. package/selection/selection.mjs +180 -310
  160. package/selection/transformation.js +96 -233
  161. package/selection/transformation.mjs +93 -230
  162. package/selection/utils.js +36 -12
  163. package/selection/utils.mjs +36 -13
  164. package/settings.d.ts +0 -1
  165. package/shortcuts/manager.js +0 -2
  166. package/shortcuts/manager.mjs +0 -2
  167. package/shortcuts/recorder.js +2 -2
  168. package/shortcuts/recorder.mjs +2 -2
  169. package/shortcuts/utils.js +5 -21
  170. package/shortcuts/utils.mjs +4 -20
  171. package/tableView.js +9 -58
  172. package/tableView.mjs +9 -58
  173. package/translations/indexMapper.js +9 -8
  174. package/translations/indexMapper.mjs +9 -8
  175. package/3rdparty/walkontable/src/selection/border/constants.js +0 -18
  176. package/3rdparty/walkontable/src/selection/border/constants.mjs +0 -13
  177. package/3rdparty/walkontable/src/selection/constants.js +0 -63
  178. package/3rdparty/walkontable/src/selection/constants.mjs +0 -51
  179. package/3rdparty/walkontable/src/selection/index.js +0 -30
  180. package/3rdparty/walkontable/src/selection/index.mjs +0 -5
  181. package/3rdparty/walkontable/src/selection/manager.js +0 -329
  182. package/3rdparty/walkontable/src/selection/manager.mjs +0 -323
  183. package/3rdparty/walkontable/src/selection/scanner.js +0 -364
  184. package/3rdparty/walkontable/src/selection/scanner.mjs +0 -360
  185. package/3rdparty/walkontable/src/selection/selection.js +0 -133
  186. package/3rdparty/walkontable/src/selection/selection.mjs +0 -127
  187. package/selection/highlight/types/areaLayered.js +0 -54
  188. package/selection/highlight/types/areaLayered.mjs +0 -49
  189. package/selection/highlight/types/column.js +0 -50
  190. package/selection/highlight/types/column.mjs +0 -45
  191. package/shortcutContexts/commands/editor/closeAndSave.js +0 -15
  192. package/shortcutContexts/commands/editor/closeAndSave.mjs +0 -10
  193. package/shortcutContexts/commands/editor/closeWithoutSaving.js +0 -13
  194. package/shortcutContexts/commands/editor/closeWithoutSaving.mjs +0 -8
  195. package/shortcutContexts/commands/editor/fastOpen.js +0 -16
  196. package/shortcutContexts/commands/editor/fastOpen.mjs +0 -11
  197. package/shortcutContexts/commands/editor/index.js +0 -16
  198. package/shortcutContexts/commands/editor/index.mjs +0 -12
  199. package/shortcutContexts/commands/editor/open.js +0 -29
  200. package/shortcutContexts/commands/editor/open.mjs +0 -24
  201. package/shortcutContexts/commands/emptySelectedCells.js +0 -12
  202. package/shortcutContexts/commands/emptySelectedCells.mjs +0 -7
  203. package/shortcutContexts/commands/extendCellsSelection/down.js +0 -15
  204. package/shortcutContexts/commands/extendCellsSelection/down.mjs +0 -10
  205. package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +0 -21
  206. package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +0 -16
  207. package/shortcutContexts/commands/extendCellsSelection/index.js +0 -26
  208. package/shortcutContexts/commands/extendCellsSelection/index.mjs +0 -22
  209. package/shortcutContexts/commands/extendCellsSelection/left.js +0 -15
  210. package/shortcutContexts/commands/extendCellsSelection/left.mjs +0 -10
  211. package/shortcutContexts/commands/extendCellsSelection/right.js +0 -15
  212. package/shortcutContexts/commands/extendCellsSelection/right.mjs +0 -10
  213. package/shortcutContexts/commands/extendCellsSelection/toColumns.js +0 -19
  214. package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +0 -14
  215. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +0 -22
  216. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +0 -17
  217. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +0 -17
  218. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +0 -12
  219. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +0 -17
  220. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +0 -12
  221. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +0 -40
  222. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +0 -35
  223. package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +0 -40
  224. package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +0 -35
  225. package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +0 -22
  226. package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +0 -17
  227. package/shortcutContexts/commands/extendCellsSelection/toRows.js +0 -19
  228. package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +0 -14
  229. package/shortcutContexts/commands/extendCellsSelection/up.js +0 -15
  230. package/shortcutContexts/commands/extendCellsSelection/up.mjs +0 -10
  231. package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +0 -21
  232. package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +0 -16
  233. package/shortcutContexts/commands/index.js +0 -52
  234. package/shortcutContexts/commands/index.mjs +0 -48
  235. package/shortcutContexts/commands/moveCellSelection/down.js +0 -12
  236. package/shortcutContexts/commands/moveCellSelection/down.mjs +0 -7
  237. package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.js +0 -29
  238. package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.mjs +0 -24
  239. package/shortcutContexts/commands/moveCellSelection/index.js +0 -28
  240. package/shortcutContexts/commands/moveCellSelection/index.mjs +0 -24
  241. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +0 -13
  242. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +0 -8
  243. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +0 -13
  244. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +0 -8
  245. package/shortcutContexts/commands/moveCellSelection/left.js +0 -11
  246. package/shortcutContexts/commands/moveCellSelection/left.mjs +0 -6
  247. package/shortcutContexts/commands/moveCellSelection/right.js +0 -11
  248. package/shortcutContexts/commands/moveCellSelection/right.mjs +0 -6
  249. package/shortcutContexts/commands/moveCellSelection/toMostBottom.js +0 -16
  250. package/shortcutContexts/commands/moveCellSelection/toMostBottom.mjs +0 -11
  251. package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.js +0 -17
  252. package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.mjs +0 -12
  253. package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.js +0 -13
  254. package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.mjs +0 -8
  255. package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.js +0 -16
  256. package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.mjs +0 -11
  257. package/shortcutContexts/commands/moveCellSelection/toMostLeft.js +0 -36
  258. package/shortcutContexts/commands/moveCellSelection/toMostLeft.mjs +0 -31
  259. package/shortcutContexts/commands/moveCellSelection/toMostRight.js +0 -36
  260. package/shortcutContexts/commands/moveCellSelection/toMostRight.mjs +0 -31
  261. package/shortcutContexts/commands/moveCellSelection/toMostTop.js +0 -16
  262. package/shortcutContexts/commands/moveCellSelection/toMostTop.mjs +0 -11
  263. package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.js +0 -18
  264. package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.mjs +0 -13
  265. package/shortcutContexts/commands/moveCellSelection/up.js +0 -12
  266. package/shortcutContexts/commands/moveCellSelection/up.mjs +0 -7
  267. package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.js +0 -29
  268. package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.mjs +0 -24
  269. package/shortcutContexts/commands/populateSelectedCellsData.js +0 -35
  270. package/shortcutContexts/commands/populateSelectedCellsData.mjs +0 -30
  271. package/shortcutContexts/commands/selectAll.js +0 -11
  272. package/shortcutContexts/commands/selectAll.mjs +0 -6
  273. package/shortcutContexts/constants.js +0 -19
  274. package/shortcutContexts/constants.mjs +0 -12
  275. package/shortcutContexts/editor.js +0 -29
  276. package/shortcutContexts/editor.mjs +0 -25
  277. package/shortcutContexts/grid.js +0 -247
  278. package/shortcutContexts/grid.mjs +0 -243
  279. package/shortcutContexts/index.js +0 -29
  280. package/shortcutContexts/index.mjs +0 -15
@@ -10,6 +10,9 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
10
10
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
11
11
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
12
  import "core-js/modules/es.function.name.js";
13
+ import "core-js/modules/es.array.from.js";
14
+ import "core-js/modules/es.string.iterator.js";
15
+ import "core-js/modules/es.array.includes.js";
13
16
  import "core-js/modules/es.object.to-string.js";
14
17
  import "core-js/modules/web.dom-collections.for-each.js";
15
18
  import "core-js/modules/es.symbol.to-primitive.js";
@@ -19,11 +22,9 @@ import "core-js/modules/es.symbol.description.js";
19
22
  import "core-js/modules/es.number.constructor.js";
20
23
  import "core-js/modules/es.symbol.iterator.js";
21
24
  import "core-js/modules/es.array.iterator.js";
22
- import "core-js/modules/es.string.iterator.js";
23
25
  import "core-js/modules/web.dom-collections.iterator.js";
24
26
  import "core-js/modules/es.array.slice.js";
25
27
  import "core-js/modules/es.regexp.to-string.js";
26
- import "core-js/modules/es.array.from.js";
27
28
  import "core-js/modules/es.regexp.exec.js";
28
29
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
30
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
@@ -31,7 +32,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
31
32
  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; }
32
33
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
33
34
  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); }
34
- import { hasClass, index, offset, removeTextNodes, overlayContainsElement, closest, outerHeight, outerWidth, innerHeight, isVisible as _isVisible } from "../../../helpers/dom/element.mjs";
35
+ import { hasClass, index, offset, removeClass, removeTextNodes, overlayContainsElement, closest, outerHeight, outerWidth, innerHeight, isVisible as _isVisible } from "../../../helpers/dom/element.mjs";
35
36
  import { isFunction } from "../../../helpers/function.mjs";
36
37
  import ColumnFilter from "./filter/column.mjs";
37
38
  import RowFilter from "./filter/row.mjs";
@@ -382,7 +383,7 @@ var Table = /*#__PURE__*/function () {
382
383
  wtOverlays.refreshAll(); // `refreshAll()` internally already calls `refreshSelections()` method
383
384
  wtOverlays.adjustElementsSize();
384
385
  } else {
385
- this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(runFastDraw);
386
+ this.refreshSelections(runFastDraw);
386
387
  }
387
388
  if (syncScroll) {
388
389
  wtOverlays.syncScrollWithMaster();
@@ -474,6 +475,74 @@ var Table = /*#__PURE__*/function () {
474
475
  }
475
476
  }
476
477
 
478
+ /**
479
+ * @param {string} className The CSS class name to remove from the table cells.
480
+ */
481
+ }, {
482
+ key: "removeClassFromCells",
483
+ value: function removeClassFromCells(className) {
484
+ var nodes = this.TABLE.querySelectorAll(".".concat(className));
485
+ for (var i = 0, len = nodes.length; i < len; i++) {
486
+ removeClass(nodes[i], className);
487
+ }
488
+ }
489
+
490
+ /**
491
+ * Refresh the table selection by re-rendering Selection instances connected with that instance.
492
+ *
493
+ * @param {boolean} fastDraw If fast drawing is enabled than additionally className clearing is applied.
494
+ */
495
+ }, {
496
+ key: "refreshSelections",
497
+ value: function refreshSelections(fastDraw) {
498
+ var wtSettings = this.wtSettings;
499
+ var selections = this.dataAccessObject.selections;
500
+ if (!selections) {
501
+ return;
502
+ }
503
+ var highlights = Array.from(selections);
504
+ var len = highlights.length;
505
+ if (fastDraw) {
506
+ var classesToRemove = [];
507
+ for (var i = 0; i < len; i++) {
508
+ var _highlights$i$setting = highlights[i].settings,
509
+ highlightHeaderClassName = _highlights$i$setting.highlightHeaderClassName,
510
+ highlightRowClassName = _highlights$i$setting.highlightRowClassName,
511
+ highlightColumnClassName = _highlights$i$setting.highlightColumnClassName;
512
+ var classNames = highlights[i].classNames;
513
+ var classNamesLength = classNames.length;
514
+ for (var j = 0; j < classNamesLength; j++) {
515
+ if (!classesToRemove.includes(classNames[j])) {
516
+ classesToRemove.push(classNames[j]);
517
+ }
518
+ }
519
+ if (highlightHeaderClassName && !classesToRemove.includes(highlightHeaderClassName)) {
520
+ classesToRemove.push(highlightHeaderClassName);
521
+ }
522
+ if (highlightRowClassName && !classesToRemove.includes(highlightRowClassName)) {
523
+ classesToRemove.push(highlightRowClassName);
524
+ }
525
+ if (highlightColumnClassName && !classesToRemove.includes(highlightColumnClassName)) {
526
+ classesToRemove.push(highlightColumnClassName);
527
+ }
528
+ }
529
+ var additionalClassesToRemove = wtSettings.getSetting('onBeforeRemoveCellClassNames');
530
+ if (Array.isArray(additionalClassesToRemove)) {
531
+ for (var _i = 0; _i < additionalClassesToRemove.length; _i++) {
532
+ classesToRemove.push(additionalClassesToRemove[_i]);
533
+ }
534
+ }
535
+ var classesToRemoveLength = classesToRemove.length;
536
+ for (var _i2 = 0; _i2 < classesToRemoveLength; _i2++) {
537
+ // there was no rerender, so we need to remove classNames by ourselves
538
+ this.removeClassFromCells(classesToRemove[_i2]);
539
+ }
540
+ }
541
+ for (var _i3 = 0; _i3 < len; _i3++) {
542
+ highlights[_i3].draw(this.facadeGetter(), fastDraw);
543
+ }
544
+ }
545
+
477
546
  /**
478
547
  * Get cell element at coords.
479
548
  * Negative coords.row or coords.col are used to retrieve header cells. If there are multiple header levels, the
@@ -607,14 +676,14 @@ var Table = /*#__PURE__*/function () {
607
676
  key: "getRowHeader",
608
677
  value: function getRowHeader(row) {
609
678
  var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
679
+ if (this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0) === 0) {
680
+ return;
681
+ }
610
682
  var rowHeadersCount = this.wtSettings.getSetting('rowHeaders').length;
611
683
  if (level >= rowHeadersCount) {
612
684
  return;
613
685
  }
614
- var renderedRow = this.rowFilter.sourceToRendered(row);
615
- var visibleRow = renderedRow < 0 ? this.rowFilter.sourceRowToVisibleColHeadedRow(row) : renderedRow;
616
- var parentElement = renderedRow < 0 ? this.THEAD : this.TBODY;
617
- var TR = parentElement.childNodes[visibleRow];
686
+ var TR = this.TBODY.childNodes[this.rowFilter.sourceToRendered(row)];
618
687
  return TR === null || TR === void 0 ? void 0 : TR.childNodes[level];
619
688
  }
620
689
 
@@ -627,6 +696,9 @@ var Table = /*#__PURE__*/function () {
627
696
  }, {
628
697
  key: "getRowHeaders",
629
698
  value: function getRowHeaders(row) {
699
+ if (this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0) === 0) {
700
+ return [];
701
+ }
630
702
  var THs = [];
631
703
  var rowHeadersCount = this.wtSettings.getSetting('rowHeaders').length;
632
704
  for (var renderedRowIndex = 0; renderedRowIndex < rowHeadersCount; renderedRowIndex++) {
package/CHANGELOG.md CHANGED
@@ -9,6 +9,37 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9
9
 
10
10
  <!-- UNVERSIONED -->
11
11
 
12
+ ## [13.0.0] - 2023-06-22
13
+
14
+ ### Added
15
+
16
+ - Angular: Added support for Angular 16. [#10396](https://github.com/handsontable/handsontable/pull/10396)
17
+
18
+ ### Changed
19
+
20
+ - **Breaking change (React, Angular, Vue 2, Vue 3)**: Changed Handsontable's policy toward older versions of supported frameworks. From now on, Handsontable supports only those versions of any supported frameworks that are officially supported by their respective teams. Dropping Handsontable's support for any older framework versions won't be treated as a breaking change. [#10396](https://github.com/handsontable/handsontable/pull/10396)
21
+ - **Breaking change**: Changed the order in which three hooks are executed: now, the `beforeChange` hook is fired before the `afterSetDataAtCell` and `afterSetDataAtRowProp` hooks. [#10231](https://github.com/handsontable/handsontable/pull/10231)
22
+ - Changed the margins of the context menu in the RTL layout direction. [#10375](https://github.com/handsontable/handsontable/pull/10375)
23
+
24
+ ### Removed
25
+
26
+ - **Breaking change (Angular)**: Dropped support for Angular 13 and lower. From now on, Handsontable supports only those versions of Angular that are officially supported by the Angular team: currently, it's 14-16. However, Handsontable 13.0.0 was thoroughly tested and, to the best of our knowledge, works correctly with versions down to Angular 12. [#10396](https://github.com/handsontable/handsontable/pull/10396)
27
+ - **Breaking change**: Removed the deprecated `beforeAutofillInsidePopulate` hook. [#10407](https://github.com/handsontable/handsontable/pull/10407)
28
+ - **Breaking change**: Removed the deprecated `getFirstNotHiddenIndex` method. Instead, use the `getNearestNotHiddenIndex()` method. [#10407](https://github.com/handsontable/handsontable/pull/10407)
29
+ - **Breaking change**: Removed the deprecated parameters of the `alter()` method: `insert_row` and `insert_col`. Instead, use the following parameters: `insert_row_above`, `insert_row_below`, `insert_col_start`, and `insert_col_end`. [#10407](https://github.com/handsontable/handsontable/pull/10407)
30
+ - **Breaking change**: Removed the deprecated parameters of the `populateFromArray()` method: `direction` and `deltas`. [#10407](https://github.com/handsontable/handsontable/pull/10407)
31
+
32
+ ### Fixed
33
+
34
+ - Fixed an issue where the "Read only" icon of the context menu displayed incorrectly in the RTL layout direction. [#10375](https://github.com/handsontable/handsontable/pull/10375)
35
+
36
+ For more information on Handsontable 13.0.0, see:
37
+
38
+ - [Blog post (13.0.0)](https://handsontable.com/blog/handsontable-13-0-0-support-for-angular-16-and-new-frameworks-support-policy)
39
+ - [Documentation (13.0)](https://handsontable.com/docs/13.0)
40
+ - [Migration guide (12.4 → 13.0)](https://handsontable.com/docs/migration-from-12.4-to-13.0)
41
+ - [Release notes (13.0.0)](https://handsontable.com/docs/release-notes/#_13-0-0)
42
+
12
43
  ## [12.4.0] - 2023-05-23
13
44
 
14
45
  ### Added
package/base.js CHANGED
@@ -44,8 +44,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
44
44
  Handsontable.CellCoords = _src.CellCoords;
45
45
  Handsontable.CellRange = _src.CellRange;
46
46
  Handsontable.packageName = 'handsontable';
47
- Handsontable.buildDate = "21/06/2023 10:11:09";
48
- Handsontable.version = "0.0.0-next-d1c8e0e-20230621";
47
+ Handsontable.buildDate = "22/06/2023 11:27:22";
48
+ Handsontable.version = "0.0.0-next-c765185-20230622";
49
49
  Handsontable.languages = {
50
50
  dictionaryKeys: _registry.dictionaryKeys,
51
51
  getLanguageDictionary: _registry.getLanguageDictionary,
package/base.mjs CHANGED
@@ -35,8 +35,8 @@ Handsontable.hooks = Hooks.getSingleton();
35
35
  Handsontable.CellCoords = CellCoords;
36
36
  Handsontable.CellRange = CellRange;
37
37
  Handsontable.packageName = 'handsontable';
38
- Handsontable.buildDate = "21/06/2023 10:11:24";
39
- Handsontable.version = "0.0.0-next-d1c8e0e-20230621";
38
+ Handsontable.buildDate = "22/06/2023 11:27:37";
39
+ Handsontable.version = "0.0.0-next-c765185-20230622";
40
40
  Handsontable.languages = {
41
41
  dictionaryKeys: dictionaryKeys,
42
42
  getLanguageDictionary: getLanguageDictionary,
package/core.d.ts CHANGED
@@ -45,8 +45,6 @@ export default class Core {
45
45
  countSourceRows(): number;
46
46
  countVisibleCols(): number;
47
47
  countVisibleRows(): number;
48
- countRowHeaders(): number;
49
- countColHeaders(): number;
50
48
  deselectCell(): void;
51
49
  destroy(): void;
52
50
  destroyEditor(revertOriginal?: boolean, prepareEditorIfNeeded?: boolean): void;
@@ -131,12 +129,12 @@ export default class Core {
131
129
  rowIndexMapper: IndexMapper;
132
130
  runHooks(key: keyof Events, p1?: any, p2?: any, p3?: any, p4?: any, p5?: any, p6?: any): any;
133
131
  scrollViewportTo(row?: number, column?: number, snapToBottom?: boolean, snapToRight?: boolean, considerHiddenIndexes?: boolean): boolean;
134
- selectAll(includeRowHeaders?: boolean, includeColumnHeaders?: boolean, focusPosition?: { row?: number, col?: number }): void;
132
+ selectAll(): void;
135
133
  selectCell(row: number, col: number, endRow?: number, endCol?: number, scrollToCell?: boolean, changeListener?: boolean): boolean;
136
134
  selectCellByProp(row: number, prop: string, endRow?: number, endProp?: string, scrollToCell?: boolean): boolean;
137
135
  selectCells(coords: Array<[number, number | string, number, number | string]> | CellRange[], scrollToCell?: boolean, changeListener?: boolean): boolean;
138
- selectColumns(startColumn: number | string, endColumn?: number | string, focusPosition?: number): boolean;
139
- selectRows(startRow: number, endRow?: number, focusPosition?: number): boolean;
136
+ selectColumns(startColumn: number | string, endColumn?: number | string): boolean;
137
+ selectRows(startRow: number, endRow?: number): boolean;
140
138
  setCellMeta(row: number, col: number, key: string, val: any): void;
141
139
  setCellMeta<K extends keyof CellMeta>(row: number, col: number, key: K, val: CellMeta[K]): void;
142
140
  setCellMetaObject(row: number, col: number, prop: CellMeta): void;