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
@@ -1,35 +1,24 @@
1
1
  import "core-js/modules/es.array.push.js";
2
- import "core-js/modules/es.error.cause.js";
3
- function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
4
- function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
5
- function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
6
2
  import { addClass } from "../../../helpers/dom/element.mjs";
7
3
  import { stopImmediatePropagation } from "../../../helpers/dom/event.mjs";
8
4
  import { arrayEach, arrayFilter, arrayMap } from "../../../helpers/array.mjs";
9
5
  import { isKey } from "../../../helpers/unicode.mjs";
10
6
  import * as C from "../../../i18n/constants.mjs";
11
7
  import { unifyColumnValues, intersectValues, toEmptyString } from "../utils.mjs";
12
- import { BaseComponent } from "./_base.mjs";
13
- import { MultipleSelectUI } from "../ui/multipleSelect.mjs";
8
+ import BaseComponent from "./_base.mjs";
9
+ import MultipleSelectUI from "../ui/multipleSelect.mjs";
14
10
  import { CONDITION_BY_VALUE, CONDITION_NONE } from "../constants.mjs";
15
11
  import { getConditionDescriptor } from "../conditionRegisterer.mjs";
16
12
  /**
17
13
  * @private
18
14
  * @class ValueComponent
19
15
  */
20
- var _onInputKeyDown = /*#__PURE__*/new WeakSet();
21
- export class ValueComponent extends BaseComponent {
16
+ class ValueComponent extends BaseComponent {
22
17
  constructor(hotInstance, options) {
23
18
  super(hotInstance, {
24
19
  id: options.id,
25
20
  stateless: false
26
21
  });
27
- /**
28
- * Key down listener.
29
- *
30
- * @param {Event} event The DOM event object.
31
- */
32
- _classPrivateMethodInitSpec(this, _onInputKeyDown);
33
22
  this.name = options.name;
34
23
  this.elements.push(new MultipleSelectUI(this.hot));
35
24
  this.registerHooks();
@@ -41,17 +30,7 @@ export class ValueComponent extends BaseComponent {
41
30
  * @private
42
31
  */
43
32
  registerHooks() {
44
- this.getMultipleSelectElement().addLocalHook('keydown', event => _classPrivateMethodGet(this, _onInputKeyDown, _onInputKeyDown2).call(this, event)).addLocalHook('listTabKeydown', event => this.runLocalHooks('listTabKeydown', event));
45
- }
46
-
47
- /**
48
- * Gets the list of elements from which the component is built.
49
- *
50
- * @returns {BaseUI[]}
51
- */
52
- getElements() {
53
- const selectElement = this.getMultipleSelectElement();
54
- return [selectElement.getSearchInputElement(), selectElement.getSelectAllElement(), selectElement.getClearAllElement(), this.getMultipleSelectElement()];
33
+ this.getMultipleSelectElement().addLocalHook('keydown', event => this.onInputKeyDown(event));
55
34
  }
56
35
 
57
36
  /**
@@ -157,7 +136,9 @@ export class ValueComponent extends BaseComponent {
157
136
  addClass(label, 'htFiltersMenuLabel');
158
137
  label.textContent = value;
159
138
  wrapper.appendChild(label);
160
- arrayEach(this.elements, ui => wrapper.appendChild(ui.element));
139
+ if (!wrapper.parentNode.hasAttribute('ghost-table')) {
140
+ arrayEach(this.elements, ui => wrapper.appendChild(ui.element));
141
+ }
161
142
  return wrapper;
162
143
  }
163
144
  };
@@ -178,6 +159,20 @@ export class ValueComponent extends BaseComponent {
178
159
  this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0, selectedColumn.visualIndex).locale);
179
160
  }
180
161
  }
162
+
163
+ /**
164
+ * Key down listener.
165
+ *
166
+ * @private
167
+ * @param {Event} event The DOM event object.
168
+ */
169
+ onInputKeyDown(event) {
170
+ if (isKey(event.keyCode, 'ESCAPE')) {
171
+ this.runLocalHooks('cancel');
172
+ stopImmediatePropagation(event);
173
+ }
174
+ }
175
+
181
176
  /**
182
177
  * Get data for currently selected column.
183
178
  *
@@ -192,9 +187,4 @@ export class ValueComponent extends BaseComponent {
192
187
  return arrayMap(this.hot.getDataAtCol(selectedColumn.visualIndex), v => toEmptyString(v));
193
188
  }
194
189
  }
195
- function _onInputKeyDown2(event) {
196
- if (isKey(event.keyCode, 'ESCAPE')) {
197
- this.runLocalHooks('cancel');
198
- stopImmediatePropagation(event);
199
- }
200
- }
190
+ export default ValueComponent;
@@ -1,7 +1,7 @@
1
1
  import "core-js/modules/es.array.push.js";
2
2
  import { clone } from "../../helpers/object.mjs";
3
3
  import { arrayEach } from "../../helpers/array.mjs";
4
- import { SEPARATOR } from "../contextMenu/predefinedItems/index.mjs";
4
+ import { SEPARATOR } from "../contextMenu/predefinedItems.mjs";
5
5
  import { getConditionDescriptor } from "./conditionRegisterer.mjs";
6
6
  import { CONDITION_NAME as CONDITION_NONE } from "./condition/none.mjs";
7
7
  import { CONDITION_NAME as CONDITION_EMPTY } from "./condition/empty.mjs";
@@ -1,47 +1,32 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.error.cause.js");
4
3
  exports.__esModule = true;
5
- require("core-js/modules/es.array.unscopables.flat.js");
6
4
  require("core-js/modules/es.array.push.js");
7
5
  var _base = require("../base");
8
6
  var _array = require("../../helpers/array");
9
7
  var _templateLiteralTag = require("../../helpers/templateLiteralTag");
10
8
  var _console = require("../../helpers/console");
11
9
  var _number = require("../../helpers/number");
10
+ var _eventManager = _interopRequireDefault(require("../../eventManager"));
12
11
  var _element = require("../../helpers/dom/element");
13
- var _unicode = require("../../helpers/unicode");
14
12
  var _predefinedItems = require("../contextMenu/predefinedItems");
15
13
  var constants = _interopRequireWildcard(require("../../i18n/constants"));
16
- var _condition = require("./component/condition");
17
- var _operators = require("./component/operators");
18
- var _value = require("./component/value");
19
- var _actionBar = require("./component/actionBar");
14
+ var _condition = _interopRequireDefault(require("./component/condition"));
15
+ var _operators = _interopRequireDefault(require("./component/operators"));
16
+ var _value = _interopRequireDefault(require("./component/value"));
17
+ var _actionBar = _interopRequireDefault(require("./component/actionBar"));
20
18
  var _conditionCollection = _interopRequireDefault(require("./conditionCollection"));
21
19
  var _dataFilter = _interopRequireDefault(require("./dataFilter"));
22
20
  var _conditionUpdateObserver = _interopRequireDefault(require("./conditionUpdateObserver"));
23
21
  var _utils = require("./utils");
24
- var _focusController = require("./menu/focusController");
25
22
  var _constants2 = require("./constants");
26
23
  var _translations = require("../../translations");
27
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
24
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
25
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
30
- function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
31
- function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
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; }
33
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
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); }
35
- function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
36
- function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
37
- function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
38
- function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
39
- function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
40
27
  const PLUGIN_KEY = 'filters';
41
28
  exports.PLUGIN_KEY = PLUGIN_KEY;
42
29
  const PLUGIN_PRIORITY = 250;
43
- exports.PLUGIN_PRIORITY = PLUGIN_PRIORITY;
44
- const SHORTCUTS_GROUP = PLUGIN_KEY;
45
30
 
46
31
  /**
47
32
  * @plugin Filters
@@ -78,7 +63,7 @@ const SHORTCUTS_GROUP = PLUGIN_KEY;
78
63
  * ```
79
64
  * :::
80
65
  */
81
- var _menuFocusNavigator = /*#__PURE__*/new WeakMap();
66
+ exports.PLUGIN_PRIORITY = PLUGIN_PRIORITY;
82
67
  class Filters extends _base.BasePlugin {
83
68
  static get PLUGIN_KEY() {
84
69
  return PLUGIN_KEY;
@@ -89,55 +74,52 @@ class Filters extends _base.BasePlugin {
89
74
  static get PLUGIN_DEPS() {
90
75
  return ['plugin:DropdownMenu', 'plugin:HiddenRows', 'cell-type:checkbox'];
91
76
  }
92
-
93
- /**
94
- * Instance of {@link DropdownMenu}.
95
- *
96
- * @private
97
- * @type {DropdownMenu}
98
- */
99
-
100
77
  constructor(hotInstance) {
101
78
  super(hotInstance);
102
- // One listener for the enable/disable functionality
103
- _defineProperty(this, "dropdownMenuPlugin", null);
79
+ /**
80
+ * Instance of {@link EventManager}.
81
+ *
82
+ * @private
83
+ * @type {EventManager}
84
+ */
85
+ this.eventManager = new _eventManager.default(this);
86
+ /**
87
+ * Instance of {@link DropdownMenu}.
88
+ *
89
+ * @private
90
+ * @type {DropdownMenu}
91
+ */
92
+ this.dropdownMenuPlugin = null;
104
93
  /**
105
94
  * Instance of {@link ConditionCollection}.
106
95
  *
107
96
  * @private
108
97
  * @type {ConditionCollection}
109
98
  */
110
- _defineProperty(this, "conditionCollection", null);
99
+ this.conditionCollection = null;
111
100
  /**
112
101
  * Instance of {@link ConditionUpdateObserver}.
113
102
  *
114
103
  * @private
115
104
  * @type {ConditionUpdateObserver}
116
105
  */
117
- _defineProperty(this, "conditionUpdateObserver", null);
106
+ this.conditionUpdateObserver = null;
118
107
  /**
119
108
  * Map, where key is component identifier and value represent `BaseComponent` element or it derivatives.
120
109
  *
121
110
  * @private
122
111
  * @type {Map}
123
112
  */
124
- _defineProperty(this, "components", new Map([['filter_by_condition', null], ['filter_operators', null], ['filter_by_condition2', null], ['filter_by_value', null], ['filter_action_bar', null]]));
113
+ this.components = new Map([['filter_by_condition', null], ['filter_operators', null], ['filter_by_condition2', null], ['filter_by_value', null], ['filter_action_bar', null]]);
125
114
  /**
126
115
  * Map of skipped rows by plugin.
127
116
  *
128
117
  * @private
129
118
  * @type {null|TrimmingMap}
130
119
  */
131
- _defineProperty(this, "filtersRowsMap", null);
132
- /**
133
- * Menu focus navigator allows switching the focus position through Tab and Shift Tab keys.
134
- *
135
- * @type {MenuFocusNavigator|undefined}
136
- */
137
- _classPrivateFieldInitSpec(this, _menuFocusNavigator, {
138
- writable: true,
139
- value: void 0
140
- });
120
+ this.filtersRowsMap = null;
121
+
122
+ // One listener for the enable/disable functionality
141
123
  this.hot.addHook('afterGetColHeader', (col, TH) => this.onAfterGetColHeader(col, TH));
142
124
  }
143
125
 
@@ -172,7 +154,7 @@ class Filters extends _base.BasePlugin {
172
154
  const filterByConditionLabel = () => `${this.hot.getTranslatedPhrase(constants.FILTERS_DIVS_FILTER_BY_CONDITION)}:`;
173
155
  const filterValueLabel = () => `${this.hot.getTranslatedPhrase(constants.FILTERS_DIVS_FILTER_BY_VALUE)}:`;
174
156
  if (!this.components.get('filter_by_condition')) {
175
- const conditionComponent = new _condition.ConditionComponent(this.hot, {
157
+ const conditionComponent = new _condition.default(this.hot, {
176
158
  id: 'filter_by_condition',
177
159
  name: filterByConditionLabel,
178
160
  addSeparator: false,
@@ -182,13 +164,13 @@ class Filters extends _base.BasePlugin {
182
164
  this.components.set('filter_by_condition', addConfirmationHooks(conditionComponent));
183
165
  }
184
166
  if (!this.components.get('filter_operators')) {
185
- this.components.set('filter_operators', new _operators.OperatorsComponent(this.hot, {
167
+ this.components.set('filter_operators', new _operators.default(this.hot, {
186
168
  id: 'filter_operators',
187
169
  name: 'Operators'
188
170
  }));
189
171
  }
190
172
  if (!this.components.get('filter_by_condition2')) {
191
- const conditionComponent = new _condition.ConditionComponent(this.hot, {
173
+ const conditionComponent = new _condition.default(this.hot, {
192
174
  id: 'filter_by_condition2',
193
175
  name: '',
194
176
  addSeparator: true,
@@ -198,13 +180,13 @@ class Filters extends _base.BasePlugin {
198
180
  this.components.set('filter_by_condition2', addConfirmationHooks(conditionComponent));
199
181
  }
200
182
  if (!this.components.get('filter_by_value')) {
201
- this.components.set('filter_by_value', addConfirmationHooks(new _value.ValueComponent(this.hot, {
183
+ this.components.set('filter_by_value', addConfirmationHooks(new _value.default(this.hot, {
202
184
  id: 'filter_by_value',
203
185
  name: filterValueLabel
204
186
  })));
205
187
  }
206
188
  if (!this.components.get('filter_action_bar')) {
207
- this.components.set('filter_action_bar', addConfirmationHooks(new _actionBar.ActionBarComponent(this.hot, {
189
+ this.components.set('filter_action_bar', addConfirmationHooks(new _actionBar.default(this.hot, {
208
190
  id: 'filter_action_bar',
209
191
  name: 'Action bar'
210
192
  })));
@@ -217,6 +199,7 @@ class Filters extends _base.BasePlugin {
217
199
  this.conditionUpdateObserver.addLocalHook('update', conditionState => this.updateComponents(conditionState));
218
200
  }
219
201
  this.components.forEach(component => component.show());
202
+ this.addHook('beforeDropdownMenuSetItems', items => this.onBeforeDropdownMenuSetItems(items));
220
203
  this.addHook('afterDropdownMenuDefaultOptions', defaultOptions => this.onAfterDropdownMenuDefaultOptions(defaultOptions));
221
204
  this.addHook('afterDropdownMenuShow', () => this.onAfterDropdownMenuShow());
222
205
  this.addHook('afterDropdownMenuHide', () => this.onAfterDropdownMenuHide());
@@ -227,33 +210,6 @@ class Filters extends _base.BasePlugin {
227
210
  this.dropdownMenuPlugin.disablePlugin();
228
211
  this.dropdownMenuPlugin.enablePlugin();
229
212
  }
230
- if (!_classPrivateFieldGet(this, _menuFocusNavigator) && this.dropdownMenuPlugin.enabled) {
231
- const mainMenu = this.dropdownMenuPlugin.menu;
232
- const focusableItems = [
233
- // A fake menu item that once focused allows escaping from the focus navigation (using Tab keys)
234
- // to the menu navigation using arrow keys.
235
- {
236
- focus: () => mainMenu.focus()
237
- }, ...Array.from(this.components).map(_ref => {
238
- let [, component] = _ref;
239
- return component.getElements();
240
- }).flat()];
241
- _classPrivateFieldSet(this, _menuFocusNavigator, (0, _focusController.createMenuFocusController)(mainMenu, focusableItems));
242
- const forwardToFocusNavigation = event => {
243
- _classPrivateFieldGet(this, _menuFocusNavigator).listen();
244
- event.preventDefault();
245
- if ((0, _unicode.isKey)(event.keyCode, 'TAB')) {
246
- if (event.shiftKey) {
247
- _classPrivateFieldGet(this, _menuFocusNavigator).toPreviousItem();
248
- } else {
249
- _classPrivateFieldGet(this, _menuFocusNavigator).toNextItem();
250
- }
251
- }
252
- };
253
- this.components.get('filter_by_value').addLocalHook('listTabKeydown', forwardToFocusNavigation);
254
- this.components.get('filter_by_condition').addLocalHook('selectTabKeydown', forwardToFocusNavigation);
255
- }
256
- this.registerShortcuts();
257
213
  super.enablePlugin();
258
214
  }
259
215
 
@@ -274,36 +230,9 @@ class Filters extends _base.BasePlugin {
274
230
  this.conditionCollection = null;
275
231
  this.hot.rowIndexMapper.unregisterMap(this.pluginName);
276
232
  }
277
- this.unregisterShortcuts();
278
233
  super.disablePlugin();
279
234
  }
280
235
 
281
- /**
282
- * Register shortcuts responsible for clearing the filters.
283
- *
284
- * @private
285
- */
286
- registerShortcuts() {
287
- this.hot.getShortcutManager().getContext('grid').addShortcut({
288
- keys: [['Alt', 'A']],
289
- stopPropagation: true,
290
- callback: () => {
291
- this.clearConditions();
292
- this.filter();
293
- },
294
- group: SHORTCUTS_GROUP
295
- });
296
- }
297
-
298
- /**
299
- * Unregister shortcuts responsible for clearing the filters.
300
- *
301
- * @private
302
- */
303
- unregisterShortcuts() {
304
- this.hot.getShortcutManager().getContext('grid').removeShortcutsByGroup(SHORTCUTS_GROUP);
305
- }
306
-
307
236
  /* eslint-disable jsdoc/require-description-complete-sentence */
308
237
  /**
309
238
  * @memberof Filters#
@@ -493,6 +422,7 @@ class Filters extends _base.BasePlugin {
493
422
  this.hot.runHooks('afterFilter', conditions);
494
423
  this.hot.view.adjustElementsSize(true);
495
424
  this.hot.render();
425
+ this.clearColumnSelection();
496
426
  }
497
427
 
498
428
  /**
@@ -514,6 +444,18 @@ class Filters extends _base.BasePlugin {
514
444
  };
515
445
  }
516
446
 
447
+ /**
448
+ * Clears column selection.
449
+ *
450
+ * @private
451
+ */
452
+ clearColumnSelection() {
453
+ const selectedColumn = this.getSelectedColumn();
454
+ if (selectedColumn !== null) {
455
+ this.hot.selectCell(0, selectedColumn.visualIndex);
456
+ }
457
+ }
458
+
517
459
  /**
518
460
  * Returns handsontable source data with cell meta based on current selection.
519
461
  *
@@ -620,6 +562,21 @@ class Filters extends _base.BasePlugin {
620
562
  this.components.get('filter_by_condition2').getSelectElement().closeOptions();
621
563
  }
622
564
 
565
+ /**
566
+ * Before dropdown menu set menu items listener.
567
+ *
568
+ * @private
569
+ */
570
+ onBeforeDropdownMenuSetItems() {
571
+ if (this.dropdownMenuPlugin) {
572
+ this.dropdownMenuPlugin.menu.addLocalHook('afterOpen', () => {
573
+ this.dropdownMenuPlugin.menu.hotMenu.updateSettings({
574
+ hiddenRows: true
575
+ });
576
+ });
577
+ }
578
+ }
579
+
623
580
  /**
624
581
  * After dropdown menu default options listener.
625
582
  *
@@ -698,7 +655,6 @@ class Filters extends _base.BasePlugin {
698
655
  this.components.forEach(component => component.saveState(physicalIndex));
699
656
  this.filtersRowsMap.clear();
700
657
  this.filter();
701
- this.hot.selectCell(0, selectedColumn.visualIndex);
702
658
  }
703
659
  (_this$dropdownMenuPlu3 = this.dropdownMenuPlugin) === null || _this$dropdownMenuPlu3 === void 0 || _this$dropdownMenuPlu3.close();
704
660
  }
@@ -712,7 +668,7 @@ class Filters extends _base.BasePlugin {
712
668
  */
713
669
  onComponentChange(component, command) {
714
670
  this.updateDependentComponentsVisibility();
715
- if (component.constructor === _condition.ConditionComponent && !command.inputsCount) {
671
+ if (component.constructor === _condition.default && !command.inputsCount) {
716
672
  this.setListeningDropdownMenu();
717
673
  }
718
674
  }