handsontable 0.0.0-next-b0a4ea2-20231024 → 0.0.0-next-9059914-20231025

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 (446) 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 +11 -50
  5. package/3rdparty/walkontable/src/cell/coords.mjs +11 -50
  6. package/3rdparty/walkontable/src/cell/range.d.ts +2 -9
  7. package/3rdparty/walkontable/src/cell/range.js +7 -38
  8. package/3rdparty/walkontable/src/cell/range.mjs +7 -38
  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 +10 -12
  16. package/3rdparty/walkontable/src/event.mjs +10 -12
  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 +2 -13
  22. package/3rdparty/walkontable/src/overlay/_base.mjs +3 -14
  23. package/3rdparty/walkontable/src/overlay/inlineStart.js +6 -2
  24. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +6 -2
  25. package/3rdparty/walkontable/src/overlay/top.js +6 -2
  26. package/3rdparty/walkontable/src/overlay/top.mjs +6 -2
  27. package/3rdparty/walkontable/src/renderer/cells.js +0 -10
  28. package/3rdparty/walkontable/src/renderer/cells.mjs +1 -11
  29. package/3rdparty/walkontable/src/renderer/columnHeaders.js +0 -10
  30. package/3rdparty/walkontable/src/renderer/columnHeaders.mjs +1 -11
  31. package/3rdparty/walkontable/src/renderer/rowHeaders.js +0 -5
  32. package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +0 -5
  33. package/3rdparty/walkontable/src/renderer/rows.js +0 -13
  34. package/3rdparty/walkontable/src/renderer/rows.mjs +0 -13
  35. package/3rdparty/walkontable/src/renderer/table.js +0 -9
  36. package/3rdparty/walkontable/src/renderer/table.mjs +0 -9
  37. package/3rdparty/walkontable/src/scroll.js +0 -2
  38. package/3rdparty/walkontable/src/scroll.mjs +0 -2
  39. package/3rdparty/walkontable/src/selection.js +295 -0
  40. package/3rdparty/walkontable/src/selection.mjs +290 -0
  41. package/3rdparty/walkontable/src/settings.js +4 -13
  42. package/3rdparty/walkontable/src/settings.mjs +4 -13
  43. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +0 -9
  44. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +0 -9
  45. package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +0 -9
  46. package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +0 -9
  47. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +0 -9
  48. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +0 -9
  49. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +0 -9
  50. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +0 -9
  51. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +0 -9
  52. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +0 -9
  53. package/3rdparty/walkontable/src/table.js +78 -19
  54. package/3rdparty/walkontable/src/table.mjs +79 -20
  55. package/base.js +2 -2
  56. package/base.mjs +2 -2
  57. package/cellTypes/dateType/dateType.d.ts +3 -3
  58. package/cellTypes/dateType/dateType.js +2 -2
  59. package/cellTypes/dateType/dateType.mjs +2 -2
  60. package/cellTypes/handsontableType/handsontableType.d.ts +3 -3
  61. package/cellTypes/handsontableType/handsontableType.js +2 -2
  62. package/cellTypes/handsontableType/handsontableType.mjs +2 -2
  63. package/cellTypes/index.d.ts +0 -3
  64. package/cellTypes/index.js +0 -4
  65. package/cellTypes/index.mjs +1 -3
  66. package/core.d.ts +4 -9
  67. package/core.js +327 -285
  68. package/core.mjs +327 -285
  69. package/dataMap/metaManager/metaSchema.js +0 -65
  70. package/dataMap/metaManager/metaSchema.mjs +0 -65
  71. package/dataMap/metaManager/mods/extendMetaProperties.js +1 -7
  72. package/dataMap/metaManager/mods/extendMetaProperties.mjs +1 -7
  73. package/dataMap/replaceData.js +0 -5
  74. package/dataMap/replaceData.mjs +0 -5
  75. package/dist/handsontable.css +15 -51
  76. package/dist/handsontable.full.css +15 -51
  77. package/dist/handsontable.full.js +8668 -14188
  78. package/dist/handsontable.full.min.css +7 -7
  79. package/dist/handsontable.full.min.js +136 -136
  80. package/dist/handsontable.js +22829 -28349
  81. package/dist/handsontable.min.css +6 -6
  82. package/dist/handsontable.min.js +24 -24
  83. package/dist/languages/all.js +2 -6
  84. package/dist/languages/all.min.js +1 -1
  85. package/dist/languages/en-US.js +1 -3
  86. package/dist/languages/en-US.min.js +1 -1
  87. package/dist/languages/pl-PL.js +1 -3
  88. package/dist/languages/pl-PL.min.js +1 -1
  89. package/editorManager.js +87 -15
  90. package/editorManager.mjs +87 -16
  91. package/editors/autocompleteEditor/autocompleteEditor.js +2 -53
  92. package/editors/autocompleteEditor/autocompleteEditor.mjs +3 -54
  93. package/editors/dateEditor/dateEditor.js +7 -26
  94. package/editors/dateEditor/dateEditor.mjs +8 -27
  95. package/editors/handsontableEditor/handsontableEditor.js +1 -9
  96. package/editors/handsontableEditor/handsontableEditor.mjs +2 -10
  97. package/editors/textEditor/textEditor.js +27 -19
  98. package/editors/textEditor/textEditor.mjs +30 -22
  99. package/helpers/dom/element.js +9 -188
  100. package/helpers/dom/element.mjs +9 -182
  101. package/helpers/mixed.js +1 -1
  102. package/helpers/mixed.mjs +1 -1
  103. package/helpers/number.d.ts +0 -1
  104. package/helpers/number.js +0 -18
  105. package/helpers/number.mjs +0 -17
  106. package/i18n/constants.js +1 -7
  107. package/i18n/constants.mjs +1 -4
  108. package/i18n/languages/en-US.js +1 -3
  109. package/i18n/languages/en-US.mjs +1 -3
  110. package/i18n/languages/pl-PL.js +1 -3
  111. package/i18n/languages/pl-PL.mjs +1 -3
  112. package/languages/all.js +2 -6
  113. package/languages/en-US.js +1 -3
  114. package/languages/en-US.mjs +1 -3
  115. package/languages/index.js +2 -6
  116. package/languages/pl-PL.js +1 -3
  117. package/languages/pl-PL.mjs +1 -3
  118. package/package.json +99 -116
  119. package/pluginHooks.d.ts +1 -12
  120. package/pluginHooks.js +1 -152
  121. package/pluginHooks.mjs +1 -152
  122. package/plugins/collapsibleColumns/collapsibleColumns.js +4 -74
  123. package/plugins/collapsibleColumns/collapsibleColumns.mjs +5 -75
  124. package/plugins/columnSorting/columnSorting.js +0 -43
  125. package/plugins/columnSorting/columnSorting.mjs +3 -44
  126. package/plugins/columnSorting/index.js +1 -3
  127. package/plugins/columnSorting/index.mjs +1 -1
  128. package/plugins/comments/commentEditor.js +0 -1
  129. package/plugins/comments/commentEditor.mjs +0 -1
  130. package/plugins/comments/comments.js +189 -252
  131. package/plugins/comments/comments.mjs +190 -251
  132. package/plugins/contextMenu/commandExecutor.js +3 -2
  133. package/plugins/contextMenu/commandExecutor.mjs +3 -2
  134. package/plugins/contextMenu/contextMenu.d.ts +1 -1
  135. package/plugins/contextMenu/contextMenu.js +36 -75
  136. package/plugins/contextMenu/contextMenu.mjs +35 -74
  137. package/plugins/contextMenu/{menu/cursor.mjs → cursor.js} +10 -4
  138. package/plugins/contextMenu/{menu/cursor.js → cursor.mjs} +4 -6
  139. package/plugins/contextMenu/itemsFactory.js +3 -2
  140. package/plugins/contextMenu/itemsFactory.mjs +4 -3
  141. package/plugins/contextMenu/{menu/menu.js → menu.js} +421 -145
  142. package/plugins/contextMenu/{menu/menu.mjs → menu.mjs} +422 -146
  143. package/plugins/contextMenu/predefinedItems/alignment.js +0 -7
  144. package/plugins/contextMenu/predefinedItems/alignment.mjs +0 -7
  145. package/plugins/contextMenu/predefinedItems/clearColumn.js +3 -5
  146. package/plugins/contextMenu/predefinedItems/clearColumn.mjs +3 -5
  147. package/plugins/contextMenu/predefinedItems/columnLeft.js +3 -5
  148. package/plugins/contextMenu/predefinedItems/columnLeft.mjs +3 -5
  149. package/plugins/contextMenu/predefinedItems/columnRight.js +3 -5
  150. package/plugins/contextMenu/predefinedItems/columnRight.mjs +3 -5
  151. package/plugins/contextMenu/predefinedItems/readOnly.js +0 -7
  152. package/plugins/contextMenu/predefinedItems/readOnly.mjs +0 -7
  153. package/plugins/contextMenu/predefinedItems/removeColumn.js +5 -7
  154. package/plugins/contextMenu/predefinedItems/removeColumn.mjs +3 -5
  155. package/plugins/contextMenu/predefinedItems/removeRow.js +5 -7
  156. package/plugins/contextMenu/predefinedItems/removeRow.mjs +3 -5
  157. package/plugins/contextMenu/predefinedItems/rowAbove.js +3 -5
  158. package/plugins/contextMenu/predefinedItems/rowAbove.mjs +3 -5
  159. package/plugins/contextMenu/predefinedItems/rowBelow.js +3 -5
  160. package/plugins/contextMenu/predefinedItems/rowBelow.mjs +3 -5
  161. package/plugins/contextMenu/{predefinedItems/index.js → predefinedItems.js} +14 -14
  162. package/plugins/contextMenu/predefinedItems.mjs +68 -0
  163. package/plugins/contextMenu/utils.js +151 -35
  164. package/plugins/contextMenu/utils.mjs +144 -35
  165. package/plugins/copyPaste/contextMenuItem/copy.js +0 -7
  166. package/plugins/copyPaste/contextMenuItem/copy.mjs +0 -7
  167. package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.js +1 -9
  168. package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.mjs +1 -9
  169. package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.js +1 -9
  170. package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.mjs +1 -9
  171. package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.js +1 -9
  172. package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.mjs +1 -9
  173. package/plugins/copyPaste/contextMenuItem/cut.js +0 -7
  174. package/plugins/copyPaste/contextMenuItem/cut.mjs +0 -7
  175. package/plugins/copyPaste/copyPaste.js +78 -127
  176. package/plugins/copyPaste/copyPaste.mjs +79 -128
  177. package/plugins/copyPaste/focusableElement.js +186 -0
  178. package/plugins/copyPaste/focusableElement.mjs +180 -0
  179. package/plugins/customBorders/customBorders.js +20 -23
  180. package/plugins/customBorders/customBorders.mjs +21 -24
  181. package/plugins/dropdownMenu/dropdownMenu.d.ts +1 -1
  182. package/plugins/dropdownMenu/dropdownMenu.js +40 -127
  183. package/plugins/dropdownMenu/dropdownMenu.mjs +39 -126
  184. package/plugins/filters/component/_base.js +8 -23
  185. package/plugins/filters/component/_base.mjs +8 -23
  186. package/plugins/filters/component/actionBar.js +27 -29
  187. package/plugins/filters/component/actionBar.mjs +23 -26
  188. package/plugins/filters/component/condition.js +59 -46
  189. package/plugins/filters/component/condition.mjs +52 -40
  190. package/plugins/filters/component/operators.js +22 -21
  191. package/plugins/filters/component/operators.mjs +18 -18
  192. package/plugins/filters/component/value.js +26 -35
  193. package/plugins/filters/component/value.mjs +22 -32
  194. package/plugins/filters/constants.mjs +1 -1
  195. package/plugins/filters/filters.js +62 -106
  196. package/plugins/filters/filters.mjs +55 -99
  197. package/plugins/filters/ui/_base.js +13 -35
  198. package/plugins/filters/ui/_base.mjs +13 -35
  199. package/plugins/filters/ui/input.js +32 -43
  200. package/plugins/filters/ui/input.mjs +30 -42
  201. package/plugins/filters/ui/link.js +12 -44
  202. package/plugins/filters/ui/link.mjs +11 -44
  203. package/plugins/filters/ui/multipleSelect.js +129 -234
  204. package/plugins/filters/ui/multipleSelect.mjs +127 -232
  205. package/plugins/filters/ui/radioInput.js +18 -42
  206. package/plugins/filters/ui/radioInput.mjs +17 -42
  207. package/plugins/filters/ui/select.js +75 -144
  208. package/plugins/filters/ui/select.mjs +72 -142
  209. package/plugins/hiddenColumns/hiddenColumns.mjs +1 -1
  210. package/plugins/hiddenRows/hiddenRows.mjs +1 -1
  211. package/plugins/manualColumnMove/manualColumnMove.js +1 -3
  212. package/plugins/manualColumnMove/manualColumnMove.mjs +1 -3
  213. package/plugins/mergeCells/mergeCells.js +16 -5
  214. package/plugins/mergeCells/mergeCells.mjs +16 -5
  215. package/plugins/multiColumnSorting/multiColumnSorting.js +2 -37
  216. package/plugins/multiColumnSorting/multiColumnSorting.mjs +2 -37
  217. package/plugins/nestedHeaders/nestedHeaders.js +10 -240
  218. package/plugins/nestedHeaders/nestedHeaders.mjs +11 -241
  219. package/plugins/nestedHeaders/stateManager/index.js +3 -102
  220. package/plugins/nestedHeaders/stateManager/index.mjs +3 -102
  221. package/plugins/nestedRows/nestedRows.js +0 -41
  222. package/plugins/nestedRows/nestedRows.mjs +0 -41
  223. package/plugins/nestedRows/ui/headers.js +0 -11
  224. package/plugins/nestedRows/ui/headers.mjs +1 -12
  225. package/renderers/autocompleteRenderer/autocompleteRenderer.js +0 -8
  226. package/renderers/autocompleteRenderer/autocompleteRenderer.mjs +0 -8
  227. package/renderers/baseRenderer/baseRenderer.js +0 -17
  228. package/renderers/baseRenderer/baseRenderer.mjs +1 -18
  229. package/renderers/checkboxRenderer/checkboxRenderer.js +4 -9
  230. package/renderers/checkboxRenderer/checkboxRenderer.mjs +4 -9
  231. package/renderers/index.d.ts +0 -9
  232. package/selection/highlight/constants.js +15 -0
  233. package/selection/highlight/constants.mjs +6 -0
  234. package/selection/highlight/highlight.js +71 -256
  235. package/selection/highlight/highlight.mjs +71 -250
  236. package/selection/highlight/types/activeHeader.js +8 -10
  237. package/selection/highlight/types/activeHeader.mjs +8 -10
  238. package/selection/highlight/types/area.js +18 -6
  239. package/selection/highlight/types/area.mjs +18 -6
  240. package/selection/highlight/types/{focus.js → cell.js} +7 -5
  241. package/selection/highlight/types/{focus.mjs → cell.mjs} +7 -5
  242. package/selection/highlight/types/customSelection.js +9 -7
  243. package/selection/highlight/types/customSelection.mjs +9 -7
  244. package/selection/highlight/types/fill.js +7 -5
  245. package/selection/highlight/types/fill.mjs +7 -5
  246. package/selection/highlight/types/header.js +18 -9
  247. package/selection/highlight/types/header.mjs +18 -9
  248. package/selection/highlight/types/index.js +35 -0
  249. package/selection/highlight/types/index.mjs +31 -0
  250. package/selection/highlight/visualSelection.js +27 -31
  251. package/selection/highlight/visualSelection.mjs +27 -31
  252. package/selection/index.js +7 -4
  253. package/selection/index.mjs +3 -2
  254. package/selection/mouseEventHandler.js +1 -7
  255. package/selection/mouseEventHandler.mjs +1 -7
  256. package/selection/range.js +8 -8
  257. package/selection/range.mjs +8 -8
  258. package/selection/selection.js +152 -321
  259. package/selection/selection.mjs +151 -318
  260. package/selection/transformation.js +90 -232
  261. package/selection/transformation.mjs +90 -232
  262. package/selection/utils.js +21 -15
  263. package/selection/utils.mjs +21 -16
  264. package/settings.d.ts +0 -4
  265. package/shortcuts/context.js +4 -23
  266. package/shortcuts/context.mjs +5 -23
  267. package/shortcuts/manager.js +7 -25
  268. package/shortcuts/manager.mjs +7 -26
  269. package/shortcuts/recorder.js +3 -3
  270. package/shortcuts/recorder.mjs +3 -3
  271. package/shortcuts/utils.js +5 -19
  272. package/shortcuts/utils.mjs +4 -18
  273. package/tableView.js +13 -111
  274. package/tableView.mjs +14 -112
  275. package/3rdparty/walkontable/src/selection/border/constants.js +0 -16
  276. package/3rdparty/walkontable/src/selection/border/constants.mjs +0 -12
  277. package/3rdparty/walkontable/src/selection/constants.js +0 -62
  278. package/3rdparty/walkontable/src/selection/constants.mjs +0 -51
  279. package/3rdparty/walkontable/src/selection/index.js +0 -26
  280. package/3rdparty/walkontable/src/selection/index.mjs +0 -5
  281. package/3rdparty/walkontable/src/selection/manager.js +0 -274
  282. package/3rdparty/walkontable/src/selection/manager.mjs +0 -269
  283. package/3rdparty/walkontable/src/selection/scanner.js +0 -270
  284. package/3rdparty/walkontable/src/selection/scanner.mjs +0 -267
  285. package/3rdparty/walkontable/src/selection/selection.js +0 -101
  286. package/3rdparty/walkontable/src/selection/selection.mjs +0 -96
  287. package/cellTypes/selectType/index.d.ts +0 -1
  288. package/cellTypes/selectType/index.js +0 -6
  289. package/cellTypes/selectType/index.mjs +0 -1
  290. package/cellTypes/selectType/selectType.d.ts +0 -14
  291. package/cellTypes/selectType/selectType.js +0 -13
  292. package/cellTypes/selectType/selectType.mjs +0 -8
  293. package/core/focusCatcher/focusDetector.js +0 -63
  294. package/core/focusCatcher/focusDetector.mjs +0 -59
  295. package/core/focusCatcher/index.js +0 -142
  296. package/core/focusCatcher/index.mjs +0 -138
  297. package/core/index.js +0 -9
  298. package/core/index.mjs +0 -1
  299. package/focusManager.d.ts +0 -12
  300. package/focusManager.js +0 -265
  301. package/focusManager.mjs +0 -261
  302. package/helpers/a11y.js +0 -79
  303. package/helpers/a11y.mjs +0 -38
  304. package/plugins/comments/contextMenuItem/addEditComment.js +0 -41
  305. package/plugins/comments/contextMenuItem/addEditComment.mjs +0 -35
  306. package/plugins/comments/contextMenuItem/readOnlyComment.js +0 -49
  307. package/plugins/comments/contextMenuItem/readOnlyComment.mjs +0 -43
  308. package/plugins/comments/contextMenuItem/removeComment.js +0 -38
  309. package/plugins/comments/contextMenuItem/removeComment.mjs +0 -32
  310. package/plugins/contextMenu/menu/defaultShortcutsList.js +0 -88
  311. package/plugins/contextMenu/menu/defaultShortcutsList.mjs +0 -84
  312. package/plugins/contextMenu/menu/index.js +0 -9
  313. package/plugins/contextMenu/menu/index.mjs +0 -1
  314. package/plugins/contextMenu/menu/menuItemRenderer.js +0 -58
  315. package/plugins/contextMenu/menu/menuItemRenderer.mjs +0 -54
  316. package/plugins/contextMenu/menu/navigator.js +0 -27
  317. package/plugins/contextMenu/menu/navigator.mjs +0 -23
  318. package/plugins/contextMenu/menu/positioner.js +0 -213
  319. package/plugins/contextMenu/menu/positioner.mjs +0 -209
  320. package/plugins/contextMenu/menu/shortcuts.js +0 -114
  321. package/plugins/contextMenu/menu/shortcuts.mjs +0 -110
  322. package/plugins/contextMenu/menu/utils.js +0 -177
  323. package/plugins/contextMenu/menu/utils.mjs +0 -163
  324. package/plugins/contextMenu/predefinedItems/index.mjs +0 -68
  325. package/plugins/filters/menu/focusController.js +0 -123
  326. package/plugins/filters/menu/focusController.mjs +0 -119
  327. package/plugins/filters/menu/focusNavigator.js +0 -30
  328. package/plugins/filters/menu/focusNavigator.mjs +0 -26
  329. package/renderers/dateRenderer/dateRenderer.d.ts +0 -5
  330. package/renderers/dateRenderer/dateRenderer.js +0 -29
  331. package/renderers/dateRenderer/dateRenderer.mjs +0 -24
  332. package/renderers/dateRenderer/index.d.ts +0 -1
  333. package/renderers/dateRenderer/index.js +0 -6
  334. package/renderers/dateRenderer/index.mjs +0 -1
  335. package/renderers/handsontableRenderer/handsontableRenderer.d.ts +0 -5
  336. package/renderers/handsontableRenderer/handsontableRenderer.js +0 -29
  337. package/renderers/handsontableRenderer/handsontableRenderer.mjs +0 -24
  338. package/renderers/handsontableRenderer/index.d.ts +0 -1
  339. package/renderers/handsontableRenderer/index.js +0 -6
  340. package/renderers/handsontableRenderer/index.mjs +0 -1
  341. package/renderers/selectRenderer/index.d.ts +0 -1
  342. package/renderers/selectRenderer/index.js +0 -6
  343. package/renderers/selectRenderer/index.mjs +0 -1
  344. package/renderers/selectRenderer/selectRenderer.d.ts +0 -5
  345. package/renderers/selectRenderer/selectRenderer.js +0 -27
  346. package/renderers/selectRenderer/selectRenderer.mjs +0 -22
  347. package/selection/highlight/types/areaLayered.js +0 -31
  348. package/selection/highlight/types/areaLayered.mjs +0 -26
  349. package/selection/highlight/types/column.js +0 -27
  350. package/selection/highlight/types/column.mjs +0 -22
  351. package/selection/highlight/types/row.js +0 -27
  352. package/selection/highlight/types/row.mjs +0 -22
  353. package/shortcutContexts/commands/editor/closeAndSave.js +0 -12
  354. package/shortcutContexts/commands/editor/closeAndSave.mjs +0 -8
  355. package/shortcutContexts/commands/editor/closeWithoutSaving.js +0 -12
  356. package/shortcutContexts/commands/editor/closeWithoutSaving.mjs +0 -8
  357. package/shortcutContexts/commands/editor/fastOpen.js +0 -16
  358. package/shortcutContexts/commands/editor/fastOpen.mjs +0 -12
  359. package/shortcutContexts/commands/editor/index.js +0 -16
  360. package/shortcutContexts/commands/editor/index.mjs +0 -12
  361. package/shortcutContexts/commands/editor/open.js +0 -27
  362. package/shortcutContexts/commands/editor/open.mjs +0 -23
  363. package/shortcutContexts/commands/emptySelectedCells.js +0 -11
  364. package/shortcutContexts/commands/emptySelectedCells.mjs +0 -7
  365. package/shortcutContexts/commands/extendCellsSelection/down.js +0 -15
  366. package/shortcutContexts/commands/extendCellsSelection/down.mjs +0 -11
  367. package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +0 -25
  368. package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +0 -21
  369. package/shortcutContexts/commands/extendCellsSelection/index.js +0 -26
  370. package/shortcutContexts/commands/extendCellsSelection/index.mjs +0 -22
  371. package/shortcutContexts/commands/extendCellsSelection/left.js +0 -15
  372. package/shortcutContexts/commands/extendCellsSelection/left.mjs +0 -11
  373. package/shortcutContexts/commands/extendCellsSelection/right.js +0 -15
  374. package/shortcutContexts/commands/extendCellsSelection/right.mjs +0 -11
  375. package/shortcutContexts/commands/extendCellsSelection/toColumns.js +0 -19
  376. package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +0 -15
  377. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +0 -29
  378. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +0 -25
  379. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +0 -19
  380. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +0 -15
  381. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +0 -19
  382. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +0 -15
  383. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +0 -29
  384. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +0 -25
  385. package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +0 -29
  386. package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +0 -25
  387. package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +0 -29
  388. package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +0 -25
  389. package/shortcutContexts/commands/extendCellsSelection/toRows.js +0 -19
  390. package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +0 -15
  391. package/shortcutContexts/commands/extendCellsSelection/up.js +0 -15
  392. package/shortcutContexts/commands/extendCellsSelection/up.mjs +0 -11
  393. package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +0 -25
  394. package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +0 -21
  395. package/shortcutContexts/commands/index.js +0 -35
  396. package/shortcutContexts/commands/index.mjs +0 -31
  397. package/shortcutContexts/commands/moveCellSelection/down.js +0 -13
  398. package/shortcutContexts/commands/moveCellSelection/down.mjs +0 -9
  399. package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.js +0 -33
  400. package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.mjs +0 -29
  401. package/shortcutContexts/commands/moveCellSelection/index.js +0 -28
  402. package/shortcutContexts/commands/moveCellSelection/index.mjs +0 -24
  403. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +0 -12
  404. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +0 -8
  405. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +0 -12
  406. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +0 -8
  407. package/shortcutContexts/commands/moveCellSelection/left.js +0 -10
  408. package/shortcutContexts/commands/moveCellSelection/left.mjs +0 -6
  409. package/shortcutContexts/commands/moveCellSelection/right.js +0 -10
  410. package/shortcutContexts/commands/moveCellSelection/right.mjs +0 -6
  411. package/shortcutContexts/commands/moveCellSelection/toMostBottom.js +0 -17
  412. package/shortcutContexts/commands/moveCellSelection/toMostBottom.mjs +0 -13
  413. package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.js +0 -18
  414. package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.mjs +0 -14
  415. package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.js +0 -14
  416. package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.mjs +0 -10
  417. package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.js +0 -17
  418. package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.mjs +0 -13
  419. package/shortcutContexts/commands/moveCellSelection/toMostLeft.js +0 -19
  420. package/shortcutContexts/commands/moveCellSelection/toMostLeft.mjs +0 -15
  421. package/shortcutContexts/commands/moveCellSelection/toMostRight.js +0 -21
  422. package/shortcutContexts/commands/moveCellSelection/toMostRight.mjs +0 -17
  423. package/shortcutContexts/commands/moveCellSelection/toMostTop.js +0 -17
  424. package/shortcutContexts/commands/moveCellSelection/toMostTop.mjs +0 -13
  425. package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.js +0 -19
  426. package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.mjs +0 -15
  427. package/shortcutContexts/commands/moveCellSelection/up.js +0 -13
  428. package/shortcutContexts/commands/moveCellSelection/up.mjs +0 -9
  429. package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.js +0 -33
  430. package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.mjs +0 -29
  431. package/shortcutContexts/commands/populateSelectedCellsData.js +0 -29
  432. package/shortcutContexts/commands/populateSelectedCellsData.mjs +0 -25
  433. package/shortcutContexts/commands/scrollToFocusedCell.js +0 -35
  434. package/shortcutContexts/commands/scrollToFocusedCell.mjs +0 -31
  435. package/shortcutContexts/commands/selectAll.js +0 -12
  436. package/shortcutContexts/commands/selectAll.mjs +0 -8
  437. package/shortcutContexts/constants.js +0 -13
  438. package/shortcutContexts/constants.mjs +0 -8
  439. package/shortcutContexts/editor.js +0 -25
  440. package/shortcutContexts/editor.mjs +0 -21
  441. package/shortcutContexts/grid.js +0 -163
  442. package/shortcutContexts/grid.mjs +0 -159
  443. package/shortcutContexts/index.js +0 -24
  444. package/shortcutContexts/index.mjs +0 -11
  445. package/utils/paginator.js +0 -151
  446. package/utils/paginator.mjs +0 -147
@@ -15,15 +15,15 @@ class Event {
15
15
  * @param {Settings} wtSettings The walkontable settings.
16
16
  * @param {EventManager} eventManager The walkontable event manager.
17
17
  * @param {Table} wtTable The table.
18
- * @param {SelectionManager} selectionManager Selections.
18
+ * @param {Selections} selections Selections.
19
19
  * @param {Event} [parent=null] The main Event instance.
20
20
  */
21
- constructor(facadeGetter, domBindings, wtSettings, eventManager, wtTable, selectionManager) {
21
+ constructor(facadeGetter, domBindings, wtSettings, eventManager, wtTable, selections) {
22
22
  let parent = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
23
23
  this.wtSettings = wtSettings;
24
24
  this.domBindings = domBindings;
25
25
  this.wtTable = wtTable;
26
- this.selectionManager = selectionManager;
26
+ this.selections = selections;
27
27
  this.parent = parent;
28
28
 
29
29
  /**
@@ -38,8 +38,7 @@ class Event {
38
38
  * Should be use only for passing face called external origin methods, like registered event listeners.
39
39
  * It provides backward compatibility by getting instance facade.
40
40
  *
41
- * @todo Consider about removing this from Event class, because it make relationship into facade (implicit circular
42
- * dependency).
41
+ * @todo Consider about removing this from Event class, because it make relationship into facade (implicit circular dependency).
43
42
  * @todo Con. Maybe passing listener caller as an ioc from faced resolves this issue. To rethink later.
44
43
  *
45
44
  * @type {FacadeGetter}
@@ -132,11 +131,11 @@ class Event {
132
131
  cell.coords = this.wtTable.getCoords(TD);
133
132
  cell.TD = TD;
134
133
  } else if (hasClass(elem, 'wtBorder') && hasClass(elem, 'current')) {
135
- cell.coords = this.selectionManager.getFocusSelection().cellRange.highlight;
134
+ cell.coords = this.selections.getCell().cellRange.highlight;
136
135
  cell.TD = this.wtTable.getCell(cell.coords);
137
136
  } else if (hasClass(elem, 'wtBorder') && hasClass(elem, 'area')) {
138
- if (this.selectionManager.getAreaSelection().cellRange) {
139
- cell.coords = this.selectionManager.getAreaSelection().cellRange.to;
137
+ if (this.selections.createOrGetArea().cellRange) {
138
+ cell.coords = this.selections.createOrGetArea().cellRange.to;
140
139
  cell.TD = this.wtTable.getCell(cell.coords);
141
140
  }
142
141
  }
@@ -155,9 +154,8 @@ class Event {
155
154
  const getParentNode = partial(getParent, event.target);
156
155
  const realTarget = event.target;
157
156
 
158
- // ignore non-TD focusable elements from mouse down processing
159
- // (https://github.com/handsontable/handsontable/issues/3555)
160
- if (!['TD', 'TH'].includes(activeElement.nodeName) && (realTarget === activeElement || getParentNode(0) === activeElement || getParentNode(1) === activeElement)) {
157
+ // ignore focusable element from mouse down processing (https://github.com/handsontable/handsontable/issues/3555)
158
+ if (realTarget === activeElement || getParentNode(0) === activeElement || getParentNode(1) === activeElement) {
161
159
  return;
162
160
  }
163
161
  const cell = this.parentCell(realTarget);
@@ -275,7 +273,7 @@ class Event {
275
273
  */
276
274
  onTouchStart(event) {
277
275
  const priv = privatePool.get(this);
278
- priv.selectedCellBeforeTouchEnd = this.selectionManager.getFocusSelection().cellRange;
276
+ priv.selectedCellBeforeTouchEnd = this.selections.getCell().cellRange;
279
277
  this.touchApplied = true;
280
278
  this.onMouseDown(event);
281
279
  }
@@ -50,8 +50,8 @@ class WalkontableFacade {
50
50
  return this._wot.cloneOverlay; // todo create facade
51
51
  }
52
52
 
53
- get selectionManager() {
54
- return this._wot.selectionManager; // todo create facade
53
+ get selections() {
54
+ return this._wot.selections; // todo create facade
55
55
  }
56
56
 
57
57
  get wtViewport() {
@@ -46,8 +46,8 @@ export default class WalkontableFacade {
46
46
  return this._wot.cloneOverlay; // todo create facade
47
47
  }
48
48
 
49
- get selectionManager() {
50
- return this._wot.selectionManager; // todo create facade
49
+ get selections() {
50
+ return this._wot.selections; // todo create facade
51
51
  }
52
52
 
53
53
  get wtViewport() {
@@ -12,16 +12,8 @@ exports.CellRange = _range.default;
12
12
  var _core = _interopRequireDefault(require("./facade/core"));
13
13
  exports.default = _core.default;
14
14
  exports.Core = _core.default;
15
- var _selection = require("./selection");
16
- exports.Selection = _selection.Selection;
17
- exports.HIGHLIGHT_ACTIVE_HEADER_TYPE = _selection.ACTIVE_HEADER_TYPE;
18
- exports.HIGHLIGHT_AREA_TYPE = _selection.AREA_TYPE;
19
- exports.HIGHLIGHT_FOCUS_TYPE = _selection.FOCUS_TYPE;
20
- exports.HIGHLIGHT_FILL_TYPE = _selection.FILL_TYPE;
21
- exports.HIGHLIGHT_HEADER_TYPE = _selection.HEADER_TYPE;
22
- exports.HIGHLIGHT_ROW_TYPE = _selection.ROW_TYPE;
23
- exports.HIGHLIGHT_COLUMN_TYPE = _selection.COLUMN_TYPE;
24
- exports.HIGHLIGHT_CUSTOM_SELECTION_TYPE = _selection.CUSTOM_SELECTION_TYPE;
15
+ var _selection = _interopRequireDefault(require("./selection"));
16
+ exports.Selection = _selection.default;
25
17
  var Renderer = _interopRequireWildcard(require("./renderer"));
26
18
  exports.Renderer = Renderer;
27
19
  var _orderView = require("./utils/orderView");
@@ -3,8 +3,8 @@ import ViewportRowsCalculator from "./calculator/viewportRows.mjs";
3
3
  import CellCoords from "./cell/coords.mjs";
4
4
  import CellRange from "./cell/range.mjs";
5
5
  import Walkontable from "./facade/core.mjs";
6
- import { Selection, ACTIVE_HEADER_TYPE, AREA_TYPE, FOCUS_TYPE, FILL_TYPE, HEADER_TYPE, ROW_TYPE, COLUMN_TYPE, CUSTOM_SELECTION_TYPE } from "./selection/index.mjs";
6
+ import Selection from "./selection.mjs";
7
7
  import * as Renderer from "./renderer/index.mjs";
8
8
  import { OrderView, SharedOrderView } from "./utils/orderView/index.mjs";
9
9
  import { getListenersCounter } from "../../../eventManager.mjs";
10
- export { ViewportColumnsCalculator, ViewportRowsCalculator, CellCoords, CellRange, Walkontable as default, Walkontable as Core, Selection, ACTIVE_HEADER_TYPE as HIGHLIGHT_ACTIVE_HEADER_TYPE, AREA_TYPE as HIGHLIGHT_AREA_TYPE, FOCUS_TYPE as HIGHLIGHT_FOCUS_TYPE, FILL_TYPE as HIGHLIGHT_FILL_TYPE, HEADER_TYPE as HIGHLIGHT_HEADER_TYPE, ROW_TYPE as HIGHLIGHT_ROW_TYPE, COLUMN_TYPE as HIGHLIGHT_COLUMN_TYPE, CUSTOM_SELECTION_TYPE as HIGHLIGHT_CUSTOM_SELECTION_TYPE, Renderer, OrderView, SharedOrderView, getListenersCounter };
10
+ export { ViewportColumnsCalculator, ViewportRowsCalculator, CellCoords, CellRange, Walkontable as default, Walkontable as Core, Selection, Renderer, OrderView, SharedOrderView, getListenersCounter };
@@ -8,7 +8,6 @@ var _array = require("../../../../helpers/array");
8
8
  var _console = require("../../../../helpers/console");
9
9
  var _constants = require("./constants");
10
10
  var _clone = _interopRequireDefault(require("../core/clone"));
11
- var _a11y = require("../../../../helpers/a11y");
12
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
12
  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; }
14
13
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
@@ -242,8 +241,7 @@ class Overlay {
242
241
  throw new Error(`Clone type "${this.type}" is not supported.`);
243
242
  }
244
243
  const {
245
- wtTable,
246
- wtSettings
244
+ wtTable
247
245
  } = this.wot;
248
246
  const {
249
247
  rootDocument,
@@ -262,16 +260,7 @@ class Overlay {
262
260
  } else {
263
261
  clone.style.left = 0;
264
262
  }
265
- if (wtSettings.getSetting('ariaTags')) {
266
- (0, _element.setAttribute)(clone, [(0, _a11y.A11Y_PRESENTATION)()]);
267
- }
268
263
  clonedTable.className = wtTable.TABLE.className;
269
-
270
- // Clone the main table's `role` attribute to the cloned table.
271
- const mainTableRole = wtTable.TABLE.getAttribute('role');
272
- if (mainTableRole) {
273
- clonedTable.setAttribute('role', wtTable.TABLE.getAttribute('role'));
274
- }
275
264
  clone.appendChild(clonedTable);
276
265
  tableParent.appendChild(clone);
277
266
  const preventOverflow = this.wtSettings.getSetting('preventOverflow');
@@ -292,7 +281,7 @@ class Overlay {
292
281
  // todo ioc , or factor func if used only here
293
282
  event: this.wot.wtEvent,
294
283
  // todo ioc , or factory func if used only here
295
- selectionManager: this.wot.selectionManager // todo ioc , or factory func if used only here
284
+ selections: this.wot.selections // todo ioc , or factory func if used only here
296
285
  });
297
286
  }
298
287
 
@@ -2,13 +2,12 @@ import "core-js/modules/es.error.cause.js";
2
2
  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; }
3
3
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
4
  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); }
5
- import { getScrollableElement, getTrimmingContainer, getScrollbarWidth, setAttribute } from "../../../../helpers/dom/element.mjs";
5
+ import { getScrollableElement, getTrimmingContainer, getScrollbarWidth } from "../../../../helpers/dom/element.mjs";
6
6
  import { defineGetter } from "../../../../helpers/object.mjs";
7
7
  import { arrayEach } from "../../../../helpers/array.mjs";
8
8
  import { warn } from "../../../../helpers/console.mjs";
9
9
  import { CLONE_TYPES, CLONE_CLASS_NAMES, CLONE_TOP, CLONE_INLINE_START } from "./constants.mjs";
10
10
  import Clone from "../core/clone.mjs";
11
- import { A11Y_PRESENTATION } from "../../../../helpers/a11y.mjs";
12
11
  /**
13
12
  * Creates an overlay over the original Walkontable instance. The overlay renders the clone of the original Walkontable
14
13
  * and (optionally) implements behavior needed for native horizontal and vertical scrolling.
@@ -238,8 +237,7 @@ export class Overlay {
238
237
  throw new Error(`Clone type "${this.type}" is not supported.`);
239
238
  }
240
239
  const {
241
- wtTable,
242
- wtSettings
240
+ wtTable
243
241
  } = this.wot;
244
242
  const {
245
243
  rootDocument,
@@ -258,16 +256,7 @@ export class Overlay {
258
256
  } else {
259
257
  clone.style.left = 0;
260
258
  }
261
- if (wtSettings.getSetting('ariaTags')) {
262
- setAttribute(clone, [A11Y_PRESENTATION()]);
263
- }
264
259
  clonedTable.className = wtTable.TABLE.className;
265
-
266
- // Clone the main table's `role` attribute to the cloned table.
267
- const mainTableRole = wtTable.TABLE.getAttribute('role');
268
- if (mainTableRole) {
269
- clonedTable.setAttribute('role', wtTable.TABLE.getAttribute('role'));
270
- }
271
260
  clone.appendChild(clonedTable);
272
261
  tableParent.appendChild(clone);
273
262
  const preventOverflow = this.wtSettings.getSetting('preventOverflow');
@@ -288,7 +277,7 @@ export class Overlay {
288
277
  // todo ioc , or factor func if used only here
289
278
  event: this.wot.wtEvent,
290
279
  // todo ioc , or factory func if used only here
291
- selectionManager: this.wot.selectionManager // todo ioc , or factory func if used only here
280
+ selections: this.wot.selections // todo ioc , or factory func if used only here
292
281
  });
293
282
  }
294
283
 
@@ -5,7 +5,6 @@ require("core-js/modules/es.error.cause.js");
5
5
  var _element = require("../../../../helpers/dom/element");
6
6
  var _inlineStart = _interopRequireDefault(require("../table/inlineStart"));
7
7
  var _base = require("./_base");
8
- var _selection = require("../selection");
9
8
  var _constants = require("./constants");
10
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
10
  /**
@@ -173,10 +172,15 @@ class InlineStartOverlay extends _base.Overlay {
173
172
  * Adjust overlay root childs size.
174
173
  */
175
174
  adjustRootChildrenSize() {
175
+ var _selections$getCell$g;
176
176
  const {
177
177
  holder
178
178
  } = this.clone.wtTable;
179
- const selectionCornerOffset = this.wot.selectionManager.getFocusSelection() ? parseInt(_selection.CORNER_DEFAULT_STYLE.width, 10) / 2 : 0;
179
+ const {
180
+ selections
181
+ } = this.wot;
182
+ const facade = this.facadeGetter();
183
+ const selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
180
184
  this.clone.wtTable.hider.style.height = this.hider.style.height;
181
185
  holder.style.height = holder.parentNode.style.height;
182
186
  // Add selection corner protruding part to the holder total width to make sure that
@@ -2,7 +2,6 @@ import "core-js/modules/es.error.cause.js";
2
2
  import { addClass, getScrollbarWidth, getScrollLeft, getWindowScrollTop, hasClass, outerWidth, removeClass, setOverlayPosition, resetCssTransform } from "../../../../helpers/dom/element.mjs";
3
3
  import InlineStartOverlayTable from "../table/inlineStart.mjs";
4
4
  import { Overlay } from "./_base.mjs";
5
- import { CORNER_DEFAULT_STYLE } from "../selection/index.mjs";
6
5
  import { CLONE_INLINE_START } from "./constants.mjs";
7
6
  /**
8
7
  * @class InlineStartOverlay
@@ -169,10 +168,15 @@ export class InlineStartOverlay extends Overlay {
169
168
  * Adjust overlay root childs size.
170
169
  */
171
170
  adjustRootChildrenSize() {
171
+ var _selections$getCell$g;
172
172
  const {
173
173
  holder
174
174
  } = this.clone.wtTable;
175
- const selectionCornerOffset = this.wot.selectionManager.getFocusSelection() ? parseInt(CORNER_DEFAULT_STYLE.width, 10) / 2 : 0;
175
+ const {
176
+ selections
177
+ } = this.wot;
178
+ const facade = this.facadeGetter();
179
+ const selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
176
180
  this.clone.wtTable.hider.style.height = this.hider.style.height;
177
181
  holder.style.height = holder.parentNode.style.height;
178
182
  // Add selection corner protruding part to the holder total width to make sure that
@@ -5,7 +5,6 @@ require("core-js/modules/es.error.cause.js");
5
5
  var _element = require("../../../../helpers/dom/element");
6
6
  var _top = _interopRequireDefault(require("./../table/top"));
7
7
  var _base = require("./_base");
8
- var _selection = require("../selection");
9
8
  var _constants = require("./constants");
10
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
10
  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; }
@@ -200,10 +199,15 @@ class TopOverlay extends _base.Overlay {
200
199
  * Adjust overlay root childs size.
201
200
  */
202
201
  adjustRootChildrenSize() {
202
+ var _selections$getCell$g;
203
203
  const {
204
204
  holder
205
205
  } = this.clone.wtTable;
206
- const selectionCornerOffset = this.wot.selectionManager.getFocusSelection() ? parseInt(_selection.CORNER_DEFAULT_STYLE.height, 10) / 2 : 0;
206
+ const {
207
+ selections
208
+ } = this.wot;
209
+ const facade = this.facadeGetter();
210
+ const selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
207
211
  this.clone.wtTable.hider.style.width = this.hider.style.width;
208
212
  holder.style.width = holder.parentNode.style.width;
209
213
  // Add selection corner protruding part to the holder total height to make sure that
@@ -5,7 +5,6 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
5
5
  import { addClass, getScrollbarWidth, getScrollTop, getWindowScrollLeft, hasClass, outerHeight, removeClass, setOverlayPosition, resetCssTransform } from "../../../../helpers/dom/element.mjs";
6
6
  import TopOverlayTable from "./../table/top.mjs";
7
7
  import { Overlay } from "./_base.mjs";
8
- import { CORNER_DEFAULT_STYLE } from "../selection/index.mjs";
9
8
  import { CLONE_TOP } from "./constants.mjs";
10
9
  /**
11
10
  * @class TopOverlay
@@ -196,10 +195,15 @@ export class TopOverlay extends Overlay {
196
195
  * Adjust overlay root childs size.
197
196
  */
198
197
  adjustRootChildrenSize() {
198
+ var _selections$getCell$g;
199
199
  const {
200
200
  holder
201
201
  } = this.clone.wtTable;
202
- const selectionCornerOffset = this.wot.selectionManager.getFocusSelection() ? parseInt(CORNER_DEFAULT_STYLE.height, 10) / 2 : 0;
202
+ const {
203
+ selections
204
+ } = this.wot;
205
+ const facade = this.facadeGetter();
206
+ const selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
203
207
  this.clone.wtTable.hider.style.width = this.hider.style.width;
204
208
  holder.style.width = holder.parentNode.style.width;
205
209
  // Add selection corner protruding part to the holder total height to make sure that
@@ -4,7 +4,6 @@ exports.__esModule = true;
4
4
  var _element = require("./../../../../helpers/dom/element");
5
5
  var _orderView = require("./../utils/orderView");
6
6
  var _base = _interopRequireDefault(require("./_base"));
7
- var _a11y = require("../../../../helpers/a11y");
8
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
8
  /**
10
9
  * Cell renderer responsible for managing (inserting, tracking, rendering) TD elements.
@@ -83,16 +82,7 @@ class CellsRenderer extends _base.default {
83
82
  }
84
83
  TD.removeAttribute('style');
85
84
  TD.removeAttribute('dir');
86
-
87
- // Remove all accessibility-related attributes for the cell to start fresh.
88
- (0, _element.removeAttribute)(TD, [new RegExp('aria-(.*)'), new RegExp('role')]);
89
85
  this.table.cellRenderer(sourceRowIndex, sourceColumnIndex, TD);
90
- if (this.table.isAriaEnabled()) {
91
- var _this$table$rowUtils$, _this$table$rowUtils;
92
- (0, _element.setAttribute)(TD, [...(TD.hasAttribute('role') ? [] : [(0, _a11y.A11Y_GRIDCELL)()]), (0, _a11y.A11Y_TABINDEX)(-1),
93
- // `aria-colindex` is incremented by both tbody and thead rows.
94
- (0, _a11y.A11Y_COLINDEX)(sourceColumnIndex + ((_this$table$rowUtils$ = (_this$table$rowUtils = this.table.rowUtils) === null || _this$table$rowUtils === void 0 || (_this$table$rowUtils = _this$table$rowUtils.dataAccessObject) === null || _this$table$rowUtils === void 0 ? void 0 : _this$table$rowUtils.rowHeaders.length) !== null && _this$table$rowUtils$ !== void 0 ? _this$table$rowUtils$ : 0) + 1)]);
95
- }
96
86
  }
97
87
  orderView.end();
98
88
  }
@@ -1,7 +1,6 @@
1
- import { hasClass, removeAttribute, setAttribute } from "./../../../../helpers/dom/element.mjs";
1
+ import { hasClass } from "./../../../../helpers/dom/element.mjs";
2
2
  import { SharedOrderView } from "./../utils/orderView/index.mjs";
3
3
  import BaseRenderer from "./_base.mjs";
4
- import { A11Y_COLINDEX, A11Y_GRIDCELL, A11Y_TABINDEX } from "../../../../helpers/a11y.mjs";
5
4
  /**
6
5
  * Cell renderer responsible for managing (inserting, tracking, rendering) TD elements.
7
6
  *
@@ -79,16 +78,7 @@ export default class CellsRenderer extends BaseRenderer {
79
78
  }
80
79
  TD.removeAttribute('style');
81
80
  TD.removeAttribute('dir');
82
-
83
- // Remove all accessibility-related attributes for the cell to start fresh.
84
- removeAttribute(TD, [new RegExp('aria-(.*)'), new RegExp('role')]);
85
81
  this.table.cellRenderer(sourceRowIndex, sourceColumnIndex, TD);
86
- if (this.table.isAriaEnabled()) {
87
- var _this$table$rowUtils$, _this$table$rowUtils;
88
- setAttribute(TD, [...(TD.hasAttribute('role') ? [] : [A11Y_GRIDCELL()]), A11Y_TABINDEX(-1),
89
- // `aria-colindex` is incremented by both tbody and thead rows.
90
- A11Y_COLINDEX(sourceColumnIndex + ((_this$table$rowUtils$ = (_this$table$rowUtils = this.table.rowUtils) === null || _this$table$rowUtils === void 0 || (_this$table$rowUtils = _this$table$rowUtils.dataAccessObject) === null || _this$table$rowUtils === void 0 ? void 0 : _this$table$rowUtils.rowHeaders.length) !== null && _this$table$rowUtils$ !== void 0 ? _this$table$rowUtils$ : 0) + 1)]);
91
- }
92
82
  }
93
83
  orderView.end();
94
84
  }
@@ -3,7 +3,6 @@
3
3
  exports.__esModule = true;
4
4
  var _element = require("./../../../../helpers/dom/element");
5
5
  var _base = _interopRequireDefault(require("./_base"));
6
- var _a11y = require("../../../../helpers/a11y");
7
6
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
7
  /**
9
8
  * Column headers renderer responsible for managing (inserting, tracking, rendering) TR and TH elements.
@@ -70,9 +69,6 @@ class ColumnHeadersRenderer extends _base.default {
70
69
  const {
71
70
  columnHeadersCount
72
71
  } = this.table;
73
- if (this.table.isAriaEnabled()) {
74
- (0, _element.setAttribute)(this.rootNode, [(0, _a11y.A11Y_PRESENTATION)()]);
75
- }
76
72
  for (let rowHeaderIndex = 0; rowHeaderIndex < columnHeadersCount; rowHeaderIndex += 1) {
77
73
  const {
78
74
  columnHeaderFunctions,
@@ -80,18 +76,12 @@ class ColumnHeadersRenderer extends _base.default {
80
76
  rowHeadersCount
81
77
  } = this.table;
82
78
  const TR = this.rootNode.childNodes[rowHeaderIndex];
83
- if (this.table.isAriaEnabled()) {
84
- (0, _element.setAttribute)(TR, [(0, _a11y.A11Y_ROW)(), (0, _a11y.A11Y_ROWINDEX)(rowHeaderIndex + 1)]);
85
- }
86
79
  for (let renderedColumnIndex = -1 * rowHeadersCount; renderedColumnIndex < columnsToRender; renderedColumnIndex += 1) {
87
80
  // eslint-disable-line max-len
88
81
  const sourceColumnIndex = this.table.renderedColumnToSource(renderedColumnIndex);
89
82
  const TH = TR.childNodes[renderedColumnIndex + rowHeadersCount];
90
83
  TH.className = '';
91
84
  TH.removeAttribute('style');
92
- if (this.table.isAriaEnabled()) {
93
- (0, _element.setAttribute)(TH, [(0, _a11y.A11Y_COLINDEX)(renderedColumnIndex + 1 + this.table.rowHeadersCount), (0, _a11y.A11Y_TABINDEX)(-1), ...(renderedColumnIndex < 0 ? [(0, _a11y.A11Y_PRESENTATION)()] : [(0, _a11y.A11Y_COLUMNHEADER)(), (0, _a11y.A11Y_SCOPE_COL)()])]);
94
- }
95
85
  columnHeaderFunctions[rowHeaderIndex](sourceColumnIndex, TH, rowHeaderIndex);
96
86
  }
97
87
  }
@@ -1,6 +1,5 @@
1
- import { empty, setAttribute } from "./../../../../helpers/dom/element.mjs";
1
+ import { empty } from "./../../../../helpers/dom/element.mjs";
2
2
  import BaseRenderer from "./_base.mjs";
3
- import { A11Y_COLINDEX, A11Y_COLUMNHEADER, A11Y_PRESENTATION, A11Y_ROW, A11Y_ROWINDEX, A11Y_SCOPE_COL, A11Y_TABINDEX } from "../../../../helpers/a11y.mjs";
4
3
  /**
5
4
  * Column headers renderer responsible for managing (inserting, tracking, rendering) TR and TH elements.
6
5
  *
@@ -66,9 +65,6 @@ export default class ColumnHeadersRenderer extends BaseRenderer {
66
65
  const {
67
66
  columnHeadersCount
68
67
  } = this.table;
69
- if (this.table.isAriaEnabled()) {
70
- setAttribute(this.rootNode, [A11Y_PRESENTATION()]);
71
- }
72
68
  for (let rowHeaderIndex = 0; rowHeaderIndex < columnHeadersCount; rowHeaderIndex += 1) {
73
69
  const {
74
70
  columnHeaderFunctions,
@@ -76,18 +72,12 @@ export default class ColumnHeadersRenderer extends BaseRenderer {
76
72
  rowHeadersCount
77
73
  } = this.table;
78
74
  const TR = this.rootNode.childNodes[rowHeaderIndex];
79
- if (this.table.isAriaEnabled()) {
80
- setAttribute(TR, [A11Y_ROW(), A11Y_ROWINDEX(rowHeaderIndex + 1)]);
81
- }
82
75
  for (let renderedColumnIndex = -1 * rowHeadersCount; renderedColumnIndex < columnsToRender; renderedColumnIndex += 1) {
83
76
  // eslint-disable-line max-len
84
77
  const sourceColumnIndex = this.table.renderedColumnToSource(renderedColumnIndex);
85
78
  const TH = TR.childNodes[renderedColumnIndex + rowHeadersCount];
86
79
  TH.className = '';
87
80
  TH.removeAttribute('style');
88
- if (this.table.isAriaEnabled()) {
89
- setAttribute(TH, [A11Y_COLINDEX(renderedColumnIndex + 1 + this.table.rowHeadersCount), A11Y_TABINDEX(-1), ...(renderedColumnIndex < 0 ? [A11Y_PRESENTATION()] : [A11Y_COLUMNHEADER(), A11Y_SCOPE_COL()])]);
90
- }
91
81
  columnHeaderFunctions[rowHeaderIndex](sourceColumnIndex, TH, rowHeaderIndex);
92
82
  }
93
83
  }
@@ -3,8 +3,6 @@
3
3
  exports.__esModule = true;
4
4
  var _orderView = require("./../utils/orderView");
5
5
  var _base = _interopRequireDefault(require("./_base"));
6
- var _element = require("../../../../helpers/dom/element");
7
- var _a11y = require("../../../../helpers/a11y");
8
6
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
7
  /**
10
8
  * Row headers renderer responsible for managing (inserting, tracking, rendering) TR elements belongs to TR.
@@ -76,9 +74,6 @@ class RowHeadersRenderer extends _base.default {
76
74
  const TH = orderView.getCurrentNode();
77
75
  TH.className = '';
78
76
  TH.removeAttribute('style');
79
- if (this.table.isAriaEnabled()) {
80
- (0, _element.setAttribute)(TH, [(0, _a11y.A11Y_ROWHEADER)(), (0, _a11y.A11Y_SCOPE_ROW)(), (0, _a11y.A11Y_COLINDEX)(visibleColumnIndex + 1), (0, _a11y.A11Y_TABINDEX)(-1)]);
81
- }
82
77
  rowHeaderFunctions[visibleColumnIndex](sourceRowIndex, TH, visibleColumnIndex);
83
78
  }
84
79
  orderView.end();
@@ -1,7 +1,5 @@
1
1
  import { SharedOrderView } from "./../utils/orderView/index.mjs";
2
2
  import BaseRenderer from "./_base.mjs";
3
- import { setAttribute } from "../../../../helpers/dom/element.mjs";
4
- import { A11Y_COLINDEX, A11Y_ROWHEADER, A11Y_SCOPE_ROW, A11Y_TABINDEX } from "../../../../helpers/a11y.mjs";
5
3
  /**
6
4
  * Row headers renderer responsible for managing (inserting, tracking, rendering) TR elements belongs to TR.
7
5
  *
@@ -72,9 +70,6 @@ export default class RowHeadersRenderer extends BaseRenderer {
72
70
  const TH = orderView.getCurrentNode();
73
71
  TH.className = '';
74
72
  TH.removeAttribute('style');
75
- if (this.table.isAriaEnabled()) {
76
- setAttribute(TH, [A11Y_ROWHEADER(), A11Y_SCOPE_ROW(), A11Y_COLINDEX(visibleColumnIndex + 1), A11Y_TABINDEX(-1)]);
77
- }
78
73
  rowHeaderFunctions[visibleColumnIndex](sourceRowIndex, TH, visibleColumnIndex);
79
74
  }
80
75
  orderView.end();
@@ -5,8 +5,6 @@ var _console = require("./../../../../helpers/console");
5
5
  var _templateLiteralTag = require("./../../../../helpers/templateLiteralTag");
6
6
  var _orderView = require("./../utils/orderView");
7
7
  var _base = _interopRequireDefault(require("./_base"));
8
- var _element = require("../../../../helpers/dom/element");
9
- var _a11y = require("../../../../helpers/a11y");
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
9
  let performanceWarningAppeared = false;
12
10
 
@@ -55,20 +53,9 @@ class RowsRenderer extends _base.default {
55
53
  (0, _console.warn)((0, _templateLiteralTag.toSingleLine)`Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting\x20
56
54
  the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.`);
57
55
  }
58
- if (this.table.isAriaEnabled()) {
59
- (0, _element.setAttribute)(this.rootNode, [(0, _a11y.A11Y_PRESENTATION)()]);
60
- }
61
56
  this.orderView.setSize(rowsToRender).setOffset(this.table.renderedRowToSource(0)).start();
62
57
  for (let visibleRowIndex = 0; visibleRowIndex < rowsToRender; visibleRowIndex++) {
63
58
  this.orderView.render();
64
- const TR = this.orderView.getCurrentNode();
65
- const sourceRowIndex = this.table.renderedRowToSource(visibleRowIndex);
66
- if (this.table.isAriaEnabled()) {
67
- var _this$table$rowUtils$, _this$table$rowUtils;
68
- (0, _element.setAttribute)(TR, [(0, _a11y.A11Y_ROW)(),
69
- // `aria-rowindex` is incremented by both tbody and thead rows.
70
- (0, _a11y.A11Y_ROWINDEX)(sourceRowIndex + ((_this$table$rowUtils$ = (_this$table$rowUtils = this.table.rowUtils) === null || _this$table$rowUtils === void 0 || (_this$table$rowUtils = _this$table$rowUtils.dataAccessObject) === null || _this$table$rowUtils === void 0 ? void 0 : _this$table$rowUtils.columnHeaders.length) !== null && _this$table$rowUtils$ !== void 0 ? _this$table$rowUtils$ : 0) + 1)]);
71
- }
72
59
  }
73
60
  this.orderView.end();
74
61
  }
@@ -2,8 +2,6 @@ import { warn } from "./../../../../helpers/console.mjs";
2
2
  import { toSingleLine } from "./../../../../helpers/templateLiteralTag.mjs";
3
3
  import { OrderView } from "./../utils/orderView/index.mjs";
4
4
  import BaseRenderer from "./_base.mjs";
5
- import { setAttribute } from "../../../../helpers/dom/element.mjs";
6
- import { A11Y_PRESENTATION, A11Y_ROW, A11Y_ROWINDEX } from "../../../../helpers/a11y.mjs";
7
5
  let performanceWarningAppeared = false;
8
6
 
9
7
  /**
@@ -51,20 +49,9 @@ export default class RowsRenderer extends BaseRenderer {
51
49
  warn(toSingleLine`Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting\x20
52
50
  the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.`);
53
51
  }
54
- if (this.table.isAriaEnabled()) {
55
- setAttribute(this.rootNode, [A11Y_PRESENTATION()]);
56
- }
57
52
  this.orderView.setSize(rowsToRender).setOffset(this.table.renderedRowToSource(0)).start();
58
53
  for (let visibleRowIndex = 0; visibleRowIndex < rowsToRender; visibleRowIndex++) {
59
54
  this.orderView.render();
60
- const TR = this.orderView.getCurrentNode();
61
- const sourceRowIndex = this.table.renderedRowToSource(visibleRowIndex);
62
- if (this.table.isAriaEnabled()) {
63
- var _this$table$rowUtils$, _this$table$rowUtils;
64
- setAttribute(TR, [A11Y_ROW(),
65
- // `aria-rowindex` is incremented by both tbody and thead rows.
66
- A11Y_ROWINDEX(sourceRowIndex + ((_this$table$rowUtils$ = (_this$table$rowUtils = this.table.rowUtils) === null || _this$table$rowUtils === void 0 || (_this$table$rowUtils = _this$table$rowUtils.dataAccessObject) === null || _this$table$rowUtils === void 0 ? void 0 : _this$table$rowUtils.columnHeaders.length) !== null && _this$table$rowUtils$ !== void 0 ? _this$table$rowUtils$ : 0) + 1)]);
67
- }
68
55
  }
69
56
  this.orderView.end();
70
57
  }
@@ -257,15 +257,6 @@ class TableRenderer {
257
257
  return this.columnFilter.renderedToSource(columnIndex);
258
258
  }
259
259
 
260
- /**
261
- * Returns `true` if the accessibility-related ARIA tags should be added to the table, `false` otherwise.
262
- *
263
- * @returns {boolean}
264
- */
265
- isAriaEnabled() {
266
- return this.rowUtils.wtSettings.getSetting('ariaTags');
267
- }
268
-
269
260
  /**
270
261
  * Renders the table.
271
262
  */
@@ -254,15 +254,6 @@ export default class TableRenderer {
254
254
  return this.columnFilter.renderedToSource(columnIndex);
255
255
  }
256
256
 
257
- /**
258
- * Returns `true` if the accessibility-related ARIA tags should be added to the table, `false` otherwise.
259
- *
260
- * @returns {boolean}
261
- */
262
- isAriaEnabled() {
263
- return this.rowUtils.wtSettings.getSetting('ariaTags');
264
- }
265
-
266
257
  /**
267
258
  * Renders the table.
268
259
  */
@@ -88,7 +88,6 @@ class Scroll {
88
88
  return false;
89
89
  }
90
90
  let result = false;
91
- column = this.dataAccessObject.wtSettings.getSetting('onBeforeViewportScrollHorizontally', column);
92
91
 
93
92
  // if there is no fully visible columns use the supporting variable (lastScrolledColumnPos) to
94
93
  // determine the snapping direction (left or right)
@@ -138,7 +137,6 @@ class Scroll {
138
137
  return false;
139
138
  }
140
139
  let result = false;
141
- row = this.dataAccessObject.wtSettings.getSetting('onBeforeViewportScrollVertically', row);
142
140
 
143
141
  // if there is no fully visible rows use the supporting variable (lastScrolledRowPos) to
144
142
  // determine the snapping direction (top or bottom)
@@ -85,7 +85,6 @@ class Scroll {
85
85
  return false;
86
86
  }
87
87
  let result = false;
88
- column = this.dataAccessObject.wtSettings.getSetting('onBeforeViewportScrollHorizontally', column);
89
88
 
90
89
  // if there is no fully visible columns use the supporting variable (lastScrolledColumnPos) to
91
90
  // determine the snapping direction (left or right)
@@ -135,7 +134,6 @@ class Scroll {
135
134
  return false;
136
135
  }
137
136
  let result = false;
138
- row = this.dataAccessObject.wtSettings.getSetting('onBeforeViewportScrollVertically', row);
139
137
 
140
138
  // if there is no fully visible rows use the supporting variable (lastScrolledRowPos) to
141
139
  // determine the snapping direction (top or bottom)