handsontable 0.0.0-next-6129043-20241108 → 0.0.0-next-e035192-20241108

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 (310) hide show
  1. package/3rdparty/walkontable/src/calculator/index.js +2 -1
  2. package/3rdparty/walkontable/src/calculator/index.mjs +2 -2
  3. package/3rdparty/walkontable/src/calculator/viewportBase.js +2 -0
  4. package/3rdparty/walkontable/src/calculator/viewportBase.mjs +2 -0
  5. package/3rdparty/walkontable/src/calculator/viewportRows.js +3 -3
  6. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +3 -3
  7. package/3rdparty/walkontable/src/core/_base.js +0 -3
  8. package/3rdparty/walkontable/src/core/_base.mjs +0 -3
  9. package/3rdparty/walkontable/src/core/clone.js +0 -1
  10. package/3rdparty/walkontable/src/core/clone.mjs +0 -1
  11. package/3rdparty/walkontable/src/core/core.js +0 -2
  12. package/3rdparty/walkontable/src/core/core.mjs +0 -2
  13. package/3rdparty/walkontable/src/facade/core.js +0 -3
  14. package/3rdparty/walkontable/src/facade/core.mjs +0 -3
  15. package/3rdparty/walkontable/src/index.js +1 -0
  16. package/3rdparty/walkontable/src/index.mjs +2 -2
  17. package/3rdparty/walkontable/src/overlay/_base.js +3 -3
  18. package/3rdparty/walkontable/src/overlay/_base.mjs +3 -3
  19. package/3rdparty/walkontable/src/overlay/bottom.js +2 -2
  20. package/3rdparty/walkontable/src/overlay/bottom.mjs +2 -2
  21. package/3rdparty/walkontable/src/overlay/index.js +2 -0
  22. package/3rdparty/walkontable/src/overlay/top.js +1 -1
  23. package/3rdparty/walkontable/src/overlay/top.mjs +1 -1
  24. package/3rdparty/walkontable/src/overlays.js +3 -0
  25. package/3rdparty/walkontable/src/overlays.mjs +3 -0
  26. package/3rdparty/walkontable/src/renderer/index.js +2 -4
  27. package/3rdparty/walkontable/src/renderer/index.mjs +2 -4
  28. package/3rdparty/walkontable/src/renderer/table.js +3 -12
  29. package/3rdparty/walkontable/src/renderer/table.mjs +3 -12
  30. package/3rdparty/walkontable/src/selection/index.js +2 -0
  31. package/3rdparty/walkontable/src/selection/manager.js +3 -0
  32. package/3rdparty/walkontable/src/selection/manager.mjs +3 -0
  33. package/3rdparty/walkontable/src/settings.js +2 -0
  34. package/3rdparty/walkontable/src/settings.mjs +2 -0
  35. package/3rdparty/walkontable/src/table.js +11 -15
  36. package/3rdparty/walkontable/src/table.mjs +11 -15
  37. package/3rdparty/walkontable/src/types.js +0 -1
  38. package/3rdparty/walkontable/src/types.mjs +0 -1
  39. package/3rdparty/walkontable/src/utils/column.js +1 -1
  40. package/3rdparty/walkontable/src/utils/column.mjs +1 -1
  41. package/3rdparty/walkontable/src/viewport.js +1 -1
  42. package/3rdparty/walkontable/src/viewport.mjs +1 -1
  43. package/base.js +2 -2
  44. package/base.mjs +2 -2
  45. package/core/hooks/bucket.js +4 -0
  46. package/core/hooks/bucket.mjs +4 -0
  47. package/core/index.js +2 -0
  48. package/core.d.ts +0 -2
  49. package/core.js +4 -46
  50. package/core.mjs +4 -46
  51. package/dataMap/dataMap.js +3 -0
  52. package/dataMap/dataMap.mjs +3 -0
  53. package/dataMap/dataSource.js +2 -0
  54. package/dataMap/dataSource.mjs +2 -0
  55. package/dataMap/metaManager/index.js +2 -0
  56. package/dataMap/metaManager/index.mjs +2 -0
  57. package/dataMap/metaManager/metaSchema.js +3 -23
  58. package/dataMap/metaManager/metaSchema.mjs +3 -23
  59. package/dataMap/metaManager/mods/extendMetaProperties.js +2 -0
  60. package/dataMap/metaManager/mods/extendMetaProperties.mjs +2 -0
  61. package/dist/handsontable.css +9 -17
  62. package/dist/handsontable.full.css +240 -249
  63. package/dist/handsontable.full.js +11156 -4984
  64. package/dist/handsontable.full.min.css +9 -11
  65. package/dist/handsontable.full.min.js +242 -50
  66. package/dist/handsontable.js +4809 -4128
  67. package/dist/handsontable.min.css +4 -5
  68. package/dist/handsontable.min.js +33 -33
  69. package/dist/languages/all.js +1 -1
  70. package/dist/languages/ar-AR.js +1 -1
  71. package/dist/languages/cs-CZ.js +1 -1
  72. package/dist/languages/de-CH.js +1 -1
  73. package/dist/languages/de-DE.js +1 -1
  74. package/dist/languages/en-US.js +1 -1
  75. package/dist/languages/es-MX.js +1 -1
  76. package/dist/languages/fr-FR.js +1 -1
  77. package/dist/languages/hr-HR.js +1 -1
  78. package/dist/languages/it-IT.js +1 -1
  79. package/dist/languages/ja-JP.js +1 -1
  80. package/dist/languages/ko-KR.js +1 -1
  81. package/dist/languages/lv-LV.js +1 -1
  82. package/dist/languages/nb-NO.js +1 -1
  83. package/dist/languages/nl-NL.js +1 -1
  84. package/dist/languages/pl-PL.js +1 -1
  85. package/dist/languages/pt-BR.js +1 -1
  86. package/dist/languages/ru-RU.js +1 -1
  87. package/dist/languages/sr-SP.js +1 -1
  88. package/dist/languages/zh-CN.js +1 -1
  89. package/dist/languages/zh-TW.js +1 -1
  90. package/editors/autocompleteEditor/autocompleteEditor.js +5 -1
  91. package/editors/autocompleteEditor/autocompleteEditor.mjs +5 -1
  92. package/editors/baseEditor/baseEditor.js +1 -1
  93. package/editors/baseEditor/baseEditor.mjs +1 -1
  94. package/editors/dateEditor/dateEditor.js +0 -2
  95. package/editors/dateEditor/dateEditor.mjs +0 -2
  96. package/editors/dropdownEditor/dropdownEditor.js +2 -0
  97. package/editors/dropdownEditor/dropdownEditor.mjs +2 -0
  98. package/editors/handsontableEditor/handsontableEditor.js +8 -5
  99. package/editors/handsontableEditor/handsontableEditor.mjs +8 -5
  100. package/editors/selectEditor/selectEditor.js +9 -20
  101. package/editors/selectEditor/selectEditor.mjs +9 -20
  102. package/editors/textEditor/textEditor.js +11 -4
  103. package/editors/textEditor/textEditor.mjs +11 -4
  104. package/focusManager.js +5 -7
  105. package/focusManager.mjs +5 -7
  106. package/helpers/array.js +2 -0
  107. package/helpers/array.mjs +2 -0
  108. package/helpers/data.js +3 -0
  109. package/helpers/data.mjs +3 -0
  110. package/helpers/dom/element.js +3 -31
  111. package/helpers/dom/element.mjs +3 -30
  112. package/helpers/mixed.js +2 -2
  113. package/helpers/mixed.mjs +2 -2
  114. package/helpers/moves.js +3 -0
  115. package/helpers/moves.mjs +3 -0
  116. package/helpers/number.js +1 -0
  117. package/helpers/number.mjs +1 -0
  118. package/helpers/object.js +2 -0
  119. package/helpers/object.mjs +2 -0
  120. package/i18n/index.js +2 -0
  121. package/i18n/phraseFormatters/substituteVariables.js +1 -0
  122. package/i18n/phraseFormatters/substituteVariables.mjs +1 -0
  123. package/languages/all.js +1 -1
  124. package/languages/ar-AR.js +1 -1
  125. package/languages/cs-CZ.js +1 -1
  126. package/languages/de-CH.js +1 -1
  127. package/languages/de-DE.js +1 -1
  128. package/languages/en-US.js +1 -1
  129. package/languages/es-MX.js +1 -1
  130. package/languages/fr-FR.js +1 -1
  131. package/languages/hr-HR.js +1 -1
  132. package/languages/index.js +1 -1
  133. package/languages/it-IT.js +1 -1
  134. package/languages/ja-JP.js +1 -1
  135. package/languages/ko-KR.js +1 -1
  136. package/languages/lv-LV.js +1 -1
  137. package/languages/nb-NO.js +1 -1
  138. package/languages/nl-NL.js +1 -1
  139. package/languages/pl-PL.js +1 -1
  140. package/languages/pt-BR.js +1 -1
  141. package/languages/ru-RU.js +1 -1
  142. package/languages/sr-SP.js +1 -1
  143. package/languages/zh-CN.js +1 -1
  144. package/languages/zh-TW.js +1 -1
  145. package/package.json +5 -14
  146. package/plugins/autoColumnSize/autoColumnSize.js +4 -0
  147. package/plugins/autoColumnSize/autoColumnSize.mjs +4 -0
  148. package/plugins/autoRowSize/autoRowSize.js +4 -0
  149. package/plugins/autoRowSize/autoRowSize.mjs +4 -0
  150. package/plugins/base/base.js +2 -0
  151. package/plugins/base/base.mjs +2 -0
  152. package/plugins/columnSorting/columnSorting.js +2 -0
  153. package/plugins/columnSorting/columnSorting.mjs +2 -0
  154. package/plugins/columnSorting/columnStatesManager.js +1 -0
  155. package/plugins/columnSorting/columnStatesManager.mjs +1 -0
  156. package/plugins/columnSorting/utils.js +3 -0
  157. package/plugins/columnSorting/utils.mjs +3 -0
  158. package/plugins/columnSummary/endpoints.js +3 -0
  159. package/plugins/columnSummary/endpoints.mjs +3 -0
  160. package/plugins/comments/commentEditor.js +0 -9
  161. package/plugins/comments/commentEditor.mjs +0 -9
  162. package/plugins/comments/comments.js +0 -8
  163. package/plugins/comments/comments.mjs +0 -8
  164. package/plugins/comments/editorResizeObserver.js +2 -0
  165. package/plugins/comments/editorResizeObserver.mjs +2 -0
  166. package/plugins/contextMenu/contextMenu.d.ts +2 -1
  167. package/plugins/contextMenu/menu/index.js +2 -0
  168. package/plugins/contextMenu/menu/menu.js +4 -3
  169. package/plugins/contextMenu/menu/menu.mjs +4 -3
  170. package/plugins/contextMenu/menu/shortcuts.js +2 -0
  171. package/plugins/contextMenu/menu/shortcuts.mjs +2 -0
  172. package/plugins/copyPaste/copyPaste.d.ts +1 -0
  173. package/plugins/copyPaste/copyPaste.js +3 -0
  174. package/plugins/copyPaste/copyPaste.mjs +3 -0
  175. package/plugins/customBorders/utils.js +2 -0
  176. package/plugins/customBorders/utils.mjs +2 -0
  177. package/plugins/dropdownMenu/dropdownMenu.d.ts +2 -1
  178. package/plugins/exportFile/types/csv.js +1 -0
  179. package/plugins/exportFile/types/csv.mjs +1 -0
  180. package/plugins/filters/component/condition.js +2 -0
  181. package/plugins/filters/component/condition.mjs +2 -0
  182. package/plugins/filters/component/operators.js +2 -0
  183. package/plugins/filters/component/operators.mjs +2 -0
  184. package/plugins/filters/component/value.js +3 -0
  185. package/plugins/filters/component/value.mjs +3 -0
  186. package/plugins/filters/conditionCollection.js +3 -0
  187. package/plugins/filters/conditionCollection.mjs +3 -0
  188. package/plugins/filters/conditionUpdateObserver.js +2 -0
  189. package/plugins/filters/conditionUpdateObserver.mjs +2 -0
  190. package/plugins/filters/filters.js +4 -0
  191. package/plugins/filters/filters.mjs +4 -0
  192. package/plugins/filters/logicalOperations/conjunction.js +2 -0
  193. package/plugins/filters/logicalOperations/conjunction.mjs +2 -0
  194. package/plugins/filters/logicalOperations/disjunction.js +2 -0
  195. package/plugins/filters/logicalOperations/disjunction.mjs +2 -0
  196. package/plugins/filters/logicalOperations/disjunctionWithExtraCondition.js +2 -0
  197. package/plugins/filters/logicalOperations/disjunctionWithExtraCondition.mjs +2 -0
  198. package/plugins/filters/menu/focusController.js +2 -0
  199. package/plugins/filters/menu/focusController.mjs +2 -0
  200. package/plugins/filters/ui/multipleSelect.js +4 -0
  201. package/plugins/filters/ui/multipleSelect.mjs +4 -0
  202. package/plugins/formulas/engine/register.js +3 -0
  203. package/plugins/formulas/engine/register.mjs +3 -0
  204. package/plugins/formulas/engine/settings.js +3 -0
  205. package/plugins/formulas/engine/settings.mjs +3 -0
  206. package/plugins/formulas/formulas.js +5 -0
  207. package/plugins/formulas/formulas.mjs +5 -0
  208. package/plugins/formulas/indexSyncer/axisSyncer.js +3 -0
  209. package/plugins/formulas/indexSyncer/axisSyncer.mjs +3 -0
  210. package/plugins/hiddenColumns/contextMenuItem/showColumn.js +2 -0
  211. package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +2 -0
  212. package/plugins/hiddenColumns/hiddenColumns.js +3 -0
  213. package/plugins/hiddenColumns/hiddenColumns.mjs +3 -0
  214. package/plugins/hiddenRows/contextMenuItem/showRow.js +2 -0
  215. package/plugins/hiddenRows/contextMenuItem/showRow.mjs +2 -0
  216. package/plugins/hiddenRows/hiddenRows.js +3 -0
  217. package/plugins/hiddenRows/hiddenRows.mjs +3 -0
  218. package/plugins/manualColumnFreeze/manualColumnFreeze.js +2 -0
  219. package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +2 -0
  220. package/plugins/manualColumnMove/manualColumnMove.js +2 -0
  221. package/plugins/manualColumnMove/manualColumnMove.mjs +2 -0
  222. package/plugins/manualColumnResize/manualColumnResize.js +2 -0
  223. package/plugins/manualColumnResize/manualColumnResize.mjs +2 -0
  224. package/plugins/manualRowMove/manualRowMove.js +3 -1
  225. package/plugins/manualRowMove/manualRowMove.mjs +3 -1
  226. package/plugins/manualRowResize/manualRowResize.js +4 -1
  227. package/plugins/manualRowResize/manualRowResize.mjs +5 -2
  228. package/plugins/mergeCells/cellsCollection.js +4 -0
  229. package/plugins/mergeCells/cellsCollection.mjs +4 -0
  230. package/plugins/mergeCells/mergeCells.js +6 -1
  231. package/plugins/mergeCells/mergeCells.mjs +6 -1
  232. package/plugins/multiColumnSorting/domHelpers.js +2 -0
  233. package/plugins/multiColumnSorting/domHelpers.mjs +2 -0
  234. package/plugins/nestedHeaders/nestedHeaders.js +2 -0
  235. package/plugins/nestedHeaders/nestedHeaders.mjs +2 -0
  236. package/plugins/nestedHeaders/stateManager/index.js +1 -0
  237. package/plugins/nestedHeaders/stateManager/index.mjs +1 -0
  238. package/plugins/nestedRows/nestedRows.js +3 -0
  239. package/plugins/nestedRows/nestedRows.mjs +3 -0
  240. package/plugins/nestedRows/ui/headers.js +1 -7
  241. package/plugins/nestedRows/ui/headers.mjs +1 -7
  242. package/plugins/nestedRows/utils/rowMoveController.js +4 -0
  243. package/plugins/nestedRows/utils/rowMoveController.mjs +4 -0
  244. package/plugins/stretchColumns/calculator.js +3 -2
  245. package/plugins/stretchColumns/calculator.mjs +4 -3
  246. package/plugins/stretchColumns/strategies/all.js +3 -0
  247. package/plugins/stretchColumns/strategies/all.mjs +3 -0
  248. package/plugins/stretchColumns/strategies/last.js +2 -0
  249. package/plugins/stretchColumns/strategies/last.mjs +2 -0
  250. package/plugins/stretchColumns/stretchColumns.js +2 -0
  251. package/plugins/stretchColumns/stretchColumns.mjs +2 -0
  252. package/plugins/trimRows/trimRows.js +2 -0
  253. package/plugins/trimRows/trimRows.mjs +2 -0
  254. package/plugins/undoRedo/undoRedo.js +5 -0
  255. package/plugins/undoRedo/undoRedo.mjs +5 -0
  256. package/renderers/checkboxRenderer/checkboxRenderer.js +3 -0
  257. package/renderers/checkboxRenderer/checkboxRenderer.mjs +3 -0
  258. package/selection/index.js +2 -0
  259. package/selection/range.js +2 -0
  260. package/selection/range.mjs +2 -0
  261. package/selection/selection.js +3 -0
  262. package/selection/selection.mjs +3 -0
  263. package/selection/utils.js +2 -0
  264. package/selection/utils.mjs +2 -0
  265. package/settings.d.ts +0 -1
  266. package/shortcutContexts/commands/index.js +2 -0
  267. package/shortcutContexts/commands/index.mjs +2 -0
  268. package/shortcutContexts/index.js +2 -0
  269. package/shortcutContexts/index.mjs +2 -0
  270. package/shortcuts/context.js +3 -0
  271. package/shortcuts/context.mjs +3 -0
  272. package/shortcuts/utils.js +1 -0
  273. package/shortcuts/utils.mjs +1 -0
  274. package/tableView.js +0 -46
  275. package/tableView.mjs +1 -47
  276. package/translations/changesObservable/observable.js +2 -0
  277. package/translations/changesObservable/observable.mjs +2 -0
  278. package/translations/index.js +2 -0
  279. package/translations/indexMapper.js +4 -0
  280. package/translations/indexMapper.mjs +4 -0
  281. package/translations/mapCollections/index.js +2 -0
  282. package/translations/mapCollections/mapCollection.js +2 -0
  283. package/translations/mapCollections/mapCollection.mjs +2 -0
  284. package/translations/maps/index.js +2 -0
  285. package/translations/maps/linkedPhysicalIndexToValueMap.js +1 -0
  286. package/translations/maps/linkedPhysicalIndexToValueMap.mjs +1 -0
  287. package/translations/maps/utils/actionsOnIndexes.js +2 -0
  288. package/translations/maps/utils/actionsOnIndexes.mjs +2 -0
  289. package/translations/maps/utils/physicallyIndexed.js +1 -0
  290. package/translations/maps/utils/physicallyIndexed.mjs +1 -0
  291. package/utils/autoResize.js +1 -4
  292. package/utils/autoResize.mjs +1 -4
  293. package/utils/dataStructures/priorityMap.js +1 -0
  294. package/utils/dataStructures/priorityMap.mjs +1 -0
  295. package/utils/dataStructures/uniqueMap.js +2 -0
  296. package/utils/dataStructures/uniqueMap.mjs +2 -0
  297. package/utils/ghostTable.js +5 -5
  298. package/utils/ghostTable.mjs +5 -5
  299. package/utils/parseTable.js +4 -0
  300. package/utils/parseTable.mjs +4 -0
  301. package/3rdparty/walkontable/src/utils/stylesHandler.js +0 -271
  302. package/3rdparty/walkontable/src/utils/stylesHandler.mjs +0 -267
  303. package/helpers/themes.js +0 -17
  304. package/helpers/themes.mjs +0 -13
  305. package/styles/handsontable.css +0 -2053
  306. package/styles/handsontable.min.css +0 -30
  307. package/styles/ht-theme-horizon.css +0 -571
  308. package/styles/ht-theme-horizon.min.css +0 -30
  309. package/styles/ht-theme-main.css +0 -575
  310. package/styles/ht-theme-main.min.css +0 -30
@@ -2035,7 +2035,7 @@ var _default = exports["default"] = dictionary;
2035
2035
  /******/
2036
2036
  /************************************************************************/
2037
2037
  var __webpack_exports__ = {};
2038
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
2038
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
2039
2039
  (() => {
2040
2040
  "use strict";
2041
2041
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
57
57
  /******/
58
58
  /************************************************************************/
59
59
  var __webpack_exports__ = {};
60
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
60
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
61
61
  (() => {
62
62
  "use strict";
63
63
  var exports = __webpack_exports__;
@@ -3,6 +3,10 @@
3
3
  exports.__esModule = true;
4
4
  require("core-js/modules/es.error.cause.js");
5
5
  require("core-js/modules/es.array.push.js");
6
+ require("core-js/modules/esnext.iterator.constructor.js");
7
+ require("core-js/modules/esnext.iterator.filter.js");
8
+ require("core-js/modules/esnext.iterator.find.js");
9
+ require("core-js/modules/esnext.iterator.reduce.js");
6
10
  var _handsontableEditor = require("../handsontableEditor");
7
11
  var _array = require("../../helpers/array");
8
12
  var _element = require("../../helpers/dom/element");
@@ -375,7 +379,7 @@ class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
375
379
  let lastRowHeight = 0;
376
380
  let height = null;
377
381
  do {
378
- lastRowHeight = this.htEditor.getRowHeight(i) || this.htEditor.view.getDefaultRowHeight();
382
+ lastRowHeight = this.htEditor.getRowHeight(i) || this.htEditor.view._wt.getSetting('defaultRowHeight');
379
383
  tempHeight += lastRowHeight;
380
384
  i += 1;
381
385
  } while (tempHeight < spaceAvailable);
@@ -1,5 +1,9 @@
1
1
  import "core-js/modules/es.error.cause.js";
2
2
  import "core-js/modules/es.array.push.js";
3
+ import "core-js/modules/esnext.iterator.constructor.js";
4
+ import "core-js/modules/esnext.iterator.filter.js";
5
+ import "core-js/modules/esnext.iterator.find.js";
6
+ import "core-js/modules/esnext.iterator.reduce.js";
3
7
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
4
8
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
5
9
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -372,7 +376,7 @@ export class AutocompleteEditor extends HandsontableEditor {
372
376
  let lastRowHeight = 0;
373
377
  let height = null;
374
378
  do {
375
- lastRowHeight = this.htEditor.getRowHeight(i) || this.htEditor.view.getDefaultRowHeight();
379
+ lastRowHeight = this.htEditor.getRowHeight(i) || this.htEditor.view._wt.getSetting('defaultRowHeight');
376
380
  tempHeight += lastRowHeight;
377
381
  i += 1;
378
382
  } while (tempHeight < spaceAvailable);
@@ -492,7 +492,7 @@ class BaseEditor {
492
492
  const actualVerticalScrollbarWidth = (0, _element.hasVerticalScrollbar)(scrollableContainerTop) ? scrollbarWidth : 0;
493
493
  const actualHorizontalScrollbarWidth = (0, _element.hasHorizontalScrollbar)(scrollableContainerLeft) ? scrollbarWidth : 0;
494
494
  const maxWidth = this.hot.view.maximumVisibleElementWidth(cellStartOffset) - actualVerticalScrollbarWidth + inlineStartBorderCompensation;
495
- const maxHeight = Math.max(this.hot.view.maximumVisibleElementHeight(cellTopOffset) - actualHorizontalScrollbarWidth + topBorderCompensation, this.hot.view.getDefaultRowHeight());
495
+ const maxHeight = Math.max(this.hot.view.maximumVisibleElementHeight(cellTopOffset) - actualHorizontalScrollbarWidth + topBorderCompensation, 23);
496
496
  return {
497
497
  top: topPos,
498
498
  start: inlineStartPos,
@@ -488,7 +488,7 @@ export class BaseEditor {
488
488
  const actualVerticalScrollbarWidth = hasVerticalScrollbar(scrollableContainerTop) ? scrollbarWidth : 0;
489
489
  const actualHorizontalScrollbarWidth = hasHorizontalScrollbar(scrollableContainerLeft) ? scrollbarWidth : 0;
490
490
  const maxWidth = this.hot.view.maximumVisibleElementWidth(cellStartOffset) - actualVerticalScrollbarWidth + inlineStartBorderCompensation;
491
- const maxHeight = Math.max(this.hot.view.maximumVisibleElementHeight(cellTopOffset) - actualHorizontalScrollbarWidth + topBorderCompensation, this.hot.view.getDefaultRowHeight());
491
+ const maxHeight = Math.max(this.hot.view.maximumVisibleElementHeight(cellTopOffset) - actualHorizontalScrollbarWidth + topBorderCompensation, 23);
492
492
  return {
493
493
  top: topPos,
494
494
  start: inlineStartPos,
@@ -66,9 +66,7 @@ class DateEditor extends _textEditor.TextEditor {
66
66
  this.datePickerStyle.left = 0;
67
67
  this.datePickerStyle.zIndex = 9999;
68
68
  this.datePicker.setAttribute('dir', this.hot.isRtl() ? 'rtl' : 'ltr');
69
- const themeClassName = this.hot.getCurrentThemeName();
70
69
  (0, _element.addClass)(this.datePicker, 'htDatepickerHolder');
71
- (0, _element.addClass)(this.datePicker, themeClassName);
72
70
  this.hot.rootDocument.body.appendChild(this.datePicker);
73
71
 
74
72
  /**
@@ -62,9 +62,7 @@ export class DateEditor extends TextEditor {
62
62
  this.datePickerStyle.left = 0;
63
63
  this.datePickerStyle.zIndex = 9999;
64
64
  this.datePicker.setAttribute('dir', this.hot.isRtl() ? 'rtl' : 'ltr');
65
- const themeClassName = this.hot.getCurrentThemeName();
66
65
  addClass(this.datePicker, 'htDatepickerHolder');
67
- addClass(this.datePicker, themeClassName);
68
66
  this.hot.rootDocument.body.appendChild(this.datePicker);
69
67
 
70
68
  /**
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
+ require("core-js/modules/esnext.iterator.constructor.js");
5
+ require("core-js/modules/esnext.iterator.filter.js");
4
6
  var _autocompleteEditor = require("../autocompleteEditor");
5
7
  var _hooks = require("../../core/hooks");
6
8
  const EDITOR_TYPE = exports.EDITOR_TYPE = 'dropdown';
@@ -1,3 +1,5 @@
1
+ import "core-js/modules/esnext.iterator.constructor.js";
2
+ import "core-js/modules/esnext.iterator.filter.js";
1
3
  import { AutocompleteEditor } from "../autocompleteEditor/index.mjs";
2
4
  import { Hooks } from "../../core/hooks/index.mjs";
3
5
  export const EDITOR_TYPE = 'dropdown';
@@ -23,11 +23,15 @@ class HandsontableEditor extends _textEditor.TextEditor {
23
23
  */
24
24
  open() {
25
25
  super.open();
26
+ const containerStyle = this.htContainer.style;
26
27
  if (this.htEditor) {
27
28
  this.htEditor.destroy();
29
+ containerStyle.width = '';
30
+ containerStyle.height = '';
31
+ containerStyle.overflow = '';
28
32
  }
29
- if (this.htContainer.style.display === 'none') {
30
- this.htContainer.style.display = '';
33
+ if (containerStyle.display === 'none') {
34
+ containerStyle.display = '';
31
35
  }
32
36
 
33
37
  // Constructs and initializes a new Handsontable instance
@@ -40,11 +44,11 @@ class HandsontableEditor extends _textEditor.TextEditor {
40
44
  this.htEditor.deselectCell();
41
45
  }
42
46
  (0, _element.setCaretPosition)(this.TEXTAREA, 0, this.TEXTAREA.value.length);
43
- this.refreshDimensions();
44
47
  this.htEditor.updateSettings({
45
48
  width: this.getWidth(),
46
49
  height: this.getHeight()
47
50
  });
51
+ this.refreshDimensions();
48
52
  }
49
53
 
50
54
  /**
@@ -85,7 +89,6 @@ class HandsontableEditor extends _textEditor.TextEditor {
85
89
  autoWrapCol: false,
86
90
  autoWrapRow: false,
87
91
  ariaTags: false,
88
- themeName: this.hot.getCurrentThemeName(),
89
92
  afterOnCellMouseDown(_, coords) {
90
93
  const sourceValue = this.getSourceData(coords.row, coords.col);
91
94
 
@@ -159,7 +162,7 @@ class HandsontableEditor extends _textEditor.TextEditor {
159
162
  * @returns {number}
160
163
  */
161
164
  getHeight() {
162
- return this.htEditor.view.getTableHeight() + 1;
165
+ return this.htEditor.view.getTableHeight();
163
166
  }
164
167
 
165
168
  /**
@@ -20,11 +20,15 @@ export class HandsontableEditor extends TextEditor {
20
20
  */
21
21
  open() {
22
22
  super.open();
23
+ const containerStyle = this.htContainer.style;
23
24
  if (this.htEditor) {
24
25
  this.htEditor.destroy();
26
+ containerStyle.width = '';
27
+ containerStyle.height = '';
28
+ containerStyle.overflow = '';
25
29
  }
26
- if (this.htContainer.style.display === 'none') {
27
- this.htContainer.style.display = '';
30
+ if (containerStyle.display === 'none') {
31
+ containerStyle.display = '';
28
32
  }
29
33
 
30
34
  // Constructs and initializes a new Handsontable instance
@@ -37,11 +41,11 @@ export class HandsontableEditor extends TextEditor {
37
41
  this.htEditor.deselectCell();
38
42
  }
39
43
  setCaretPosition(this.TEXTAREA, 0, this.TEXTAREA.value.length);
40
- this.refreshDimensions();
41
44
  this.htEditor.updateSettings({
42
45
  width: this.getWidth(),
43
46
  height: this.getHeight()
44
47
  });
48
+ this.refreshDimensions();
45
49
  }
46
50
 
47
51
  /**
@@ -82,7 +86,6 @@ export class HandsontableEditor extends TextEditor {
82
86
  autoWrapCol: false,
83
87
  autoWrapRow: false,
84
88
  ariaTags: false,
85
- themeName: this.hot.getCurrentThemeName(),
86
89
  afterOnCellMouseDown(_, coords) {
87
90
  const sourceValue = this.getSourceData(coords.row, coords.col);
88
91
 
@@ -156,7 +159,7 @@ export class HandsontableEditor extends TextEditor {
156
159
  * @returns {number}
157
160
  */
158
161
  getHeight() {
159
- return this.htEditor.view.getTableHeight() + 1;
162
+ return this.htEditor.view.getTableHeight();
160
163
  }
161
164
 
162
165
  /**
@@ -4,7 +4,6 @@ exports.__esModule = true;
4
4
  var _baseEditor = require("../baseEditor");
5
5
  var _element = require("../../helpers/dom/element");
6
6
  var _object = require("../../helpers/object");
7
- var _a11y = require("../../helpers/a11y");
8
7
  const EDITOR_VISIBLE_CLASS_NAME = 'ht_editor_visible';
9
8
  const SHORTCUTS_GROUP = 'selectEditor';
10
9
  const EDITOR_TYPE = exports.EDITOR_TYPE = 'select';
@@ -22,21 +21,11 @@ class SelectEditor extends _baseEditor.BaseEditor {
22
21
  * Initializes editor instance, DOM Element and mount hooks.
23
22
  */
24
23
  init() {
25
- this.selectWrapper = this.hot.rootDocument.createElement('div');
26
24
  this.select = this.hot.rootDocument.createElement('select');
27
25
  this.select.setAttribute('data-hot-input', 'true');
28
- this.selectWrapper.style.display = 'none';
29
- const ARROW = this.hot.rootDocument.createElement('DIV');
30
- const isAriaEnabled = this.hot.getSettings().ariaTags;
31
- ARROW.className = 'htAutocompleteArrow';
32
- if (isAriaEnabled) {
33
- ARROW.setAttribute(...(0, _a11y.A11Y_HIDDEN)());
34
- }
35
- ARROW.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660)));
36
- (0, _element.addClass)(this.selectWrapper, 'htSelectEditor');
37
- this.selectWrapper.appendChild(this.select);
38
- this.selectWrapper.insertBefore(ARROW, this.selectWrapper.firstChild);
39
- this.hot.rootElement.appendChild(this.selectWrapper);
26
+ this.select.style.display = 'none';
27
+ (0, _element.addClass)(this.select, 'htSelectEditor');
28
+ this.hot.rootElement.appendChild(this.select);
40
29
  this.registerHooks();
41
30
  }
42
31
 
@@ -64,7 +53,7 @@ class SelectEditor extends _baseEditor.BaseEditor {
64
53
  open() {
65
54
  this._opened = true;
66
55
  this.refreshDimensions();
67
- this.selectWrapper.style.display = '';
56
+ this.select.style.display = '';
68
57
  const shortcutManager = this.hot.getShortcutManager();
69
58
  shortcutManager.setActiveContextName('editor');
70
59
  this.registerShortcuts();
@@ -75,9 +64,9 @@ class SelectEditor extends _baseEditor.BaseEditor {
75
64
  */
76
65
  close() {
77
66
  this._opened = false;
78
- this.selectWrapper.style.display = 'none';
79
- if ((0, _element.hasClass)(this.selectWrapper, EDITOR_VISIBLE_CLASS_NAME)) {
80
- (0, _element.removeClass)(this.selectWrapper, EDITOR_VISIBLE_CLASS_NAME);
67
+ this.select.style.display = 'none';
68
+ if ((0, _element.hasClass)(this.select, EDITOR_VISIBLE_CLASS_NAME)) {
69
+ (0, _element.removeClass)(this.select, EDITOR_VISIBLE_CLASS_NAME);
81
70
  }
82
71
  this.unregisterShortcuts();
83
72
  this.clearHooks();
@@ -183,13 +172,13 @@ class SelectEditor extends _baseEditor.BaseEditor {
183
172
  width,
184
173
  height
185
174
  } = this.getEditedCellRect();
186
- const selectStyle = this.selectWrapper.style;
175
+ const selectStyle = this.select.style;
187
176
  selectStyle.height = `${height}px`;
188
177
  selectStyle.width = `${width}px`;
189
178
  selectStyle.top = `${top}px`;
190
179
  selectStyle[this.hot.isRtl() ? 'right' : 'left'] = `${start}px`;
191
180
  selectStyle.margin = '0px';
192
- (0, _element.addClass)(this.selectWrapper, EDITOR_VISIBLE_CLASS_NAME);
181
+ (0, _element.addClass)(this.select, EDITOR_VISIBLE_CLASS_NAME);
193
182
  }
194
183
 
195
184
  /**
@@ -1,7 +1,6 @@
1
1
  import { BaseEditor, EDITOR_STATE } from "../baseEditor/index.mjs";
2
2
  import { addClass, empty, fastInnerHTML, hasClass, removeClass } from "../../helpers/dom/element.mjs";
3
3
  import { objectEach } from "../../helpers/object.mjs";
4
- import { A11Y_HIDDEN } from "../../helpers/a11y.mjs";
5
4
  const EDITOR_VISIBLE_CLASS_NAME = 'ht_editor_visible';
6
5
  const SHORTCUTS_GROUP = 'selectEditor';
7
6
  export const EDITOR_TYPE = 'select';
@@ -19,21 +18,11 @@ export class SelectEditor extends BaseEditor {
19
18
  * Initializes editor instance, DOM Element and mount hooks.
20
19
  */
21
20
  init() {
22
- this.selectWrapper = this.hot.rootDocument.createElement('div');
23
21
  this.select = this.hot.rootDocument.createElement('select');
24
22
  this.select.setAttribute('data-hot-input', 'true');
25
- this.selectWrapper.style.display = 'none';
26
- const ARROW = this.hot.rootDocument.createElement('DIV');
27
- const isAriaEnabled = this.hot.getSettings().ariaTags;
28
- ARROW.className = 'htAutocompleteArrow';
29
- if (isAriaEnabled) {
30
- ARROW.setAttribute(...A11Y_HIDDEN());
31
- }
32
- ARROW.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660)));
33
- addClass(this.selectWrapper, 'htSelectEditor');
34
- this.selectWrapper.appendChild(this.select);
35
- this.selectWrapper.insertBefore(ARROW, this.selectWrapper.firstChild);
36
- this.hot.rootElement.appendChild(this.selectWrapper);
23
+ this.select.style.display = 'none';
24
+ addClass(this.select, 'htSelectEditor');
25
+ this.hot.rootElement.appendChild(this.select);
37
26
  this.registerHooks();
38
27
  }
39
28
 
@@ -61,7 +50,7 @@ export class SelectEditor extends BaseEditor {
61
50
  open() {
62
51
  this._opened = true;
63
52
  this.refreshDimensions();
64
- this.selectWrapper.style.display = '';
53
+ this.select.style.display = '';
65
54
  const shortcutManager = this.hot.getShortcutManager();
66
55
  shortcutManager.setActiveContextName('editor');
67
56
  this.registerShortcuts();
@@ -72,9 +61,9 @@ export class SelectEditor extends BaseEditor {
72
61
  */
73
62
  close() {
74
63
  this._opened = false;
75
- this.selectWrapper.style.display = 'none';
76
- if (hasClass(this.selectWrapper, EDITOR_VISIBLE_CLASS_NAME)) {
77
- removeClass(this.selectWrapper, EDITOR_VISIBLE_CLASS_NAME);
64
+ this.select.style.display = 'none';
65
+ if (hasClass(this.select, EDITOR_VISIBLE_CLASS_NAME)) {
66
+ removeClass(this.select, EDITOR_VISIBLE_CLASS_NAME);
78
67
  }
79
68
  this.unregisterShortcuts();
80
69
  this.clearHooks();
@@ -180,13 +169,13 @@ export class SelectEditor extends BaseEditor {
180
169
  width,
181
170
  height
182
171
  } = this.getEditedCellRect();
183
- const selectStyle = this.selectWrapper.style;
172
+ const selectStyle = this.select.style;
184
173
  selectStyle.height = `${height}px`;
185
174
  selectStyle.width = `${width}px`;
186
175
  selectStyle.top = `${top}px`;
187
176
  selectStyle[this.hot.isRtl() ? 'right' : 'left'] = `${start}px`;
188
177
  selectStyle.margin = '0px';
189
- addClass(this.selectWrapper, EDITOR_VISIBLE_CLASS_NAME);
178
+ addClass(this.select, EDITOR_VISIBLE_CLASS_NAME);
190
179
  }
191
180
 
192
181
  /**
@@ -309,12 +309,19 @@ class TextEditor extends _baseEditor.BaseEditor {
309
309
  this.TEXTAREA.style.fontSize = cellComputedStyle.fontSize;
310
310
  this.TEXTAREA.style.fontFamily = cellComputedStyle.fontFamily;
311
311
  this.TEXTAREA.style.backgroundColor = this.TD.style.backgroundColor;
312
+ const textareaComputedStyle = this.hot.rootWindow.getComputedStyle(this.TEXTAREA);
313
+ const horizontalPadding = parseInt(textareaComputedStyle.paddingLeft, 10) + parseInt(textareaComputedStyle.paddingRight, 10);
314
+ const verticalPadding = parseInt(textareaComputedStyle.paddingTop, 10) + parseInt(textareaComputedStyle.paddingBottom, 10);
315
+ const finalWidth = width - horizontalPadding;
316
+ const finalHeight = height - verticalPadding;
317
+ const finalMaxWidth = maxWidth - horizontalPadding;
318
+ const finalMaxHeight = maxHeight - verticalPadding;
312
319
  this.autoResize.init(this.TEXTAREA, {
313
- minWidth: Math.min(width, maxWidth),
314
- minHeight: Math.min(height, maxHeight),
320
+ minWidth: Math.min(finalWidth, finalMaxWidth),
321
+ minHeight: Math.min(finalHeight, finalMaxHeight),
315
322
  // TEXTAREA should never be wider than visible part of the viewport (should not cover the scrollbar)
316
- maxWidth,
317
- maxHeight
323
+ maxWidth: finalMaxWidth,
324
+ maxHeight: finalMaxHeight
318
325
  }, true);
319
326
  }
320
327
 
@@ -305,12 +305,19 @@ export class TextEditor extends BaseEditor {
305
305
  this.TEXTAREA.style.fontSize = cellComputedStyle.fontSize;
306
306
  this.TEXTAREA.style.fontFamily = cellComputedStyle.fontFamily;
307
307
  this.TEXTAREA.style.backgroundColor = this.TD.style.backgroundColor;
308
+ const textareaComputedStyle = this.hot.rootWindow.getComputedStyle(this.TEXTAREA);
309
+ const horizontalPadding = parseInt(textareaComputedStyle.paddingLeft, 10) + parseInt(textareaComputedStyle.paddingRight, 10);
310
+ const verticalPadding = parseInt(textareaComputedStyle.paddingTop, 10) + parseInt(textareaComputedStyle.paddingBottom, 10);
311
+ const finalWidth = width - horizontalPadding;
312
+ const finalHeight = height - verticalPadding;
313
+ const finalMaxWidth = maxWidth - horizontalPadding;
314
+ const finalMaxHeight = maxHeight - verticalPadding;
308
315
  this.autoResize.init(this.TEXTAREA, {
309
- minWidth: Math.min(width, maxWidth),
310
- minHeight: Math.min(height, maxHeight),
316
+ minWidth: Math.min(finalWidth, finalMaxWidth),
317
+ minHeight: Math.min(finalHeight, finalMaxHeight),
311
318
  // TEXTAREA should never be wider than visible part of the viewport (should not cover the scrollbar)
312
- maxWidth,
313
- maxHeight
319
+ maxWidth: finalMaxWidth,
320
+ maxHeight: finalMaxHeight
314
321
  }, true);
315
322
  }
316
323
 
package/focusManager.js CHANGED
@@ -163,12 +163,11 @@ class FocusManager {
163
163
  * @returns {HTMLTextAreaElement|HTMLElement|undefined}
164
164
  */
165
165
  getRefocusElement() {
166
+ var _classPrivateFieldGet2;
166
167
  if (typeof _classPrivateFieldGet(_refocusElementGetter, this) === 'function') {
167
168
  return _classPrivateFieldGet(_refocusElementGetter, this).call(this);
168
- } else {
169
- var _classPrivateFieldGet2;
170
- return (_classPrivateFieldGet2 = _classPrivateFieldGet(_hot, this).getActiveEditor()) === null || _classPrivateFieldGet2 === void 0 ? void 0 : _classPrivateFieldGet2.TEXTAREA;
171
169
  }
170
+ return (_classPrivateFieldGet2 = _classPrivateFieldGet(_hot, this).getActiveEditor()) === null || _classPrivateFieldGet2 === void 0 ? void 0 : _classPrivateFieldGet2.TEXTAREA;
172
171
  }
173
172
 
174
173
  /**
@@ -209,13 +208,12 @@ class FocusManager {
209
208
  refocusToEditorTextarea() {
210
209
  var _classPrivateFieldGet5;
211
210
  let delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _classPrivateFieldGet(_refocusDelay, this);
212
- const refocusElement = this.getRefocusElement();
213
-
214
211
  // Re-focus on the editor's `TEXTAREA` element (or a predefined element) if the `imeFastEdit` option is enabled.
215
- if (_classPrivateFieldGet(_hot, this).getSettings().imeFastEdit && !((_classPrivateFieldGet5 = _classPrivateFieldGet(_hot, this).getActiveEditor()) !== null && _classPrivateFieldGet5 !== void 0 && _classPrivateFieldGet5.isOpened()) && !!refocusElement) {
212
+ if (_classPrivateFieldGet(_hot, this).getSettings().imeFastEdit && !((_classPrivateFieldGet5 = _classPrivateFieldGet(_hot, this).getActiveEditor()) !== null && _classPrivateFieldGet5 !== void 0 && _classPrivateFieldGet5.isOpened())) {
216
213
  if (!_classPrivateFieldGet(_debouncedSelect, this).has(delay)) {
217
214
  _classPrivateFieldGet(_debouncedSelect, this).set(delay, (0, _function.debounce)(() => {
218
- refocusElement.select();
215
+ var _this$getRefocusEleme;
216
+ (_this$getRefocusEleme = this.getRefocusElement()) === null || _this$getRefocusEleme === void 0 || _this$getRefocusEleme.select();
219
217
  }, delay));
220
218
  }
221
219
  _classPrivateFieldGet(_debouncedSelect, this).get(delay)();