handsontable 0.0.0-next-bfb0e3a-20240403 → 0.0.0-next-5a535ed-20240403

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (280) hide show
  1. package/3rdparty/walkontable/src/calculator/viewportColumns.js +17 -12
  2. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +17 -12
  3. package/3rdparty/walkontable/src/calculator/viewportRows.js +15 -10
  4. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +15 -10
  5. package/3rdparty/walkontable/src/cell/coords.js +17 -12
  6. package/3rdparty/walkontable/src/cell/coords.mjs +17 -12
  7. package/3rdparty/walkontable/src/cell/range.d.ts +1 -2
  8. package/3rdparty/walkontable/src/cell/range.js +28 -40
  9. package/3rdparty/walkontable/src/cell/range.mjs +28 -40
  10. package/3rdparty/walkontable/src/core/_base.js +1 -1
  11. package/3rdparty/walkontable/src/core/_base.mjs +1 -1
  12. package/3rdparty/walkontable/src/event.js +104 -72
  13. package/3rdparty/walkontable/src/event.mjs +104 -72
  14. package/3rdparty/walkontable/src/overlays.js +1 -1
  15. package/3rdparty/walkontable/src/overlays.mjs +1 -1
  16. package/3rdparty/walkontable/src/scroll.js +17 -15
  17. package/3rdparty/walkontable/src/scroll.mjs +17 -15
  18. package/3rdparty/walkontable/src/selection/manager.js +69 -48
  19. package/3rdparty/walkontable/src/selection/manager.mjs +69 -48
  20. package/3rdparty/walkontable/src/selection/scanner.js +42 -33
  21. package/3rdparty/walkontable/src/selection/scanner.mjs +42 -33
  22. package/3rdparty/walkontable/src/utils/columnStretching.js +44 -27
  23. package/3rdparty/walkontable/src/utils/columnStretching.mjs +44 -27
  24. package/3rdparty/walkontable/src/utils/orderView/view.js +1 -1
  25. package/3rdparty/walkontable/src/utils/orderView/view.mjs +1 -1
  26. package/base.js +2 -2
  27. package/base.mjs +2 -2
  28. package/core/viewportScroll/index.js +1 -4
  29. package/core/viewportScroll/index.mjs +1 -4
  30. package/core.d.ts +3 -4
  31. package/core.js +22 -77
  32. package/core.mjs +22 -77
  33. package/dataMap/dataSource.js +1 -1
  34. package/dataMap/dataSource.mjs +1 -1
  35. package/dataMap/metaManager/metaLayers/cellMeta.js +1 -1
  36. package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -1
  37. package/dataMap/metaManager/metaSchema.js +1 -1
  38. package/dataMap/metaManager/metaSchema.mjs +1 -1
  39. package/dataMap/replaceData.js +1 -1
  40. package/dataMap/replaceData.mjs +1 -1
  41. package/dist/handsontable.css +4 -4
  42. package/dist/handsontable.full.css +4 -4
  43. package/dist/handsontable.full.js +9117 -8969
  44. package/dist/handsontable.full.min.css +3 -3
  45. package/dist/handsontable.full.min.js +292 -292
  46. package/dist/handsontable.js +6569 -6874
  47. package/dist/handsontable.min.css +3 -3
  48. package/dist/handsontable.min.js +25 -25
  49. package/dist/languages/all.min.js +1 -1
  50. package/dist/languages/ar-AR.min.js +1 -1
  51. package/dist/languages/cs-CZ.min.js +1 -1
  52. package/dist/languages/de-CH.min.js +1 -1
  53. package/dist/languages/de-DE.min.js +1 -1
  54. package/dist/languages/en-US.min.js +1 -1
  55. package/dist/languages/es-MX.min.js +1 -1
  56. package/dist/languages/fr-FR.min.js +1 -1
  57. package/dist/languages/hr-HR.min.js +1 -1
  58. package/dist/languages/it-IT.min.js +1 -1
  59. package/dist/languages/ja-JP.min.js +1 -1
  60. package/dist/languages/ko-KR.min.js +1 -1
  61. package/dist/languages/lv-LV.min.js +1 -1
  62. package/dist/languages/nb-NO.min.js +1 -1
  63. package/dist/languages/nl-NL.min.js +1 -1
  64. package/dist/languages/pl-PL.min.js +1 -1
  65. package/dist/languages/pt-BR.min.js +1 -1
  66. package/dist/languages/ru-RU.min.js +1 -1
  67. package/dist/languages/sr-SP.min.js +1 -1
  68. package/dist/languages/zh-CN.min.js +1 -1
  69. package/dist/languages/zh-TW.min.js +1 -1
  70. package/editorManager.js +23 -25
  71. package/editorManager.mjs +23 -25
  72. package/editors/autocompleteEditor/autocompleteEditor.js +10 -6
  73. package/editors/autocompleteEditor/autocompleteEditor.mjs +10 -6
  74. package/editors/selectEditor/selectEditor.js +19 -20
  75. package/editors/selectEditor/selectEditor.mjs +19 -20
  76. package/eventManager.js +1 -1
  77. package/eventManager.mjs +1 -1
  78. package/focusManager.js +82 -64
  79. package/focusManager.mjs +82 -64
  80. package/helpers/dom/element.js +1 -1
  81. package/helpers/dom/element.mjs +1 -1
  82. package/helpers/mixed.js +1 -1
  83. package/helpers/mixed.mjs +1 -1
  84. package/helpers/object.js +2 -2
  85. package/helpers/object.mjs +2 -2
  86. package/index.d.ts +0 -10
  87. package/package.json +2 -7
  88. package/pluginHooks.d.ts +3 -4
  89. package/pluginHooks.js +38 -99
  90. package/pluginHooks.mjs +38 -99
  91. package/plugins/autoColumnSize/autoColumnSize.js +65 -49
  92. package/plugins/autoColumnSize/autoColumnSize.mjs +65 -49
  93. package/plugins/autoRowSize/autoRowSize.js +34 -28
  94. package/plugins/autoRowSize/autoRowSize.mjs +34 -28
  95. package/plugins/autofill/autofill.js +38 -30
  96. package/plugins/autofill/autofill.mjs +38 -30
  97. package/plugins/base/base.js +17 -12
  98. package/plugins/base/base.mjs +17 -12
  99. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +5 -5
  100. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +5 -5
  101. package/plugins/collapsibleColumns/collapsibleColumns.js +50 -59
  102. package/plugins/collapsibleColumns/collapsibleColumns.mjs +50 -59
  103. package/plugins/columnSorting/columnSorting.js +45 -49
  104. package/plugins/columnSorting/columnSorting.mjs +45 -49
  105. package/plugins/columnSummary/columnSummary.js +26 -22
  106. package/plugins/columnSummary/columnSummary.mjs +26 -22
  107. package/plugins/comments/comments.js +158 -116
  108. package/plugins/comments/comments.mjs +158 -116
  109. package/plugins/contextMenu/contextMenu.js +26 -20
  110. package/plugins/contextMenu/contextMenu.mjs +26 -20
  111. package/plugins/contextMenu/itemsFactory.js +1 -1
  112. package/plugins/contextMenu/itemsFactory.mjs +1 -1
  113. package/plugins/contextMenu/menu/defaultShortcutsList.js +10 -26
  114. package/plugins/contextMenu/menu/defaultShortcutsList.mjs +10 -26
  115. package/plugins/contextMenu/menu/menu.js +21 -13
  116. package/plugins/contextMenu/menu/menu.mjs +21 -13
  117. package/plugins/contextMenu/menu/positioner.js +58 -41
  118. package/plugins/contextMenu/menu/positioner.mjs +58 -41
  119. package/plugins/copyPaste/copyPaste.js +157 -116
  120. package/plugins/copyPaste/copyPaste.mjs +157 -116
  121. package/plugins/copyPaste/copyableRanges.js +66 -43
  122. package/plugins/copyPaste/copyableRanges.mjs +66 -43
  123. package/plugins/customBorders/customBorders.js +13 -11
  124. package/plugins/customBorders/customBorders.mjs +13 -11
  125. package/plugins/dragToScroll/dragToScroll.js +6 -6
  126. package/plugins/dragToScroll/dragToScroll.mjs +6 -6
  127. package/plugins/dropdownMenu/dropdownMenu.js +106 -80
  128. package/plugins/dropdownMenu/dropdownMenu.mjs +106 -80
  129. package/plugins/exportFile/dataProvider.js +1 -1
  130. package/plugins/exportFile/dataProvider.mjs +1 -1
  131. package/plugins/filters/component/actionBar.js +9 -9
  132. package/plugins/filters/component/actionBar.mjs +8 -8
  133. package/plugins/filters/component/condition.js +15 -13
  134. package/plugins/filters/component/condition.mjs +15 -13
  135. package/plugins/filters/component/operators.js +6 -6
  136. package/plugins/filters/component/operators.mjs +6 -6
  137. package/plugins/filters/component/value.js +28 -24
  138. package/plugins/filters/component/value.mjs +28 -24
  139. package/plugins/filters/conditionUpdateObserver.js +24 -22
  140. package/plugins/filters/conditionUpdateObserver.mjs +24 -22
  141. package/plugins/filters/dataFilter.js +1 -1
  142. package/plugins/filters/dataFilter.mjs +1 -1
  143. package/plugins/filters/filters.js +95 -81
  144. package/plugins/filters/filters.mjs +95 -81
  145. package/plugins/filters/ui/input.js +19 -13
  146. package/plugins/filters/ui/input.mjs +19 -13
  147. package/plugins/filters/ui/link.js +13 -8
  148. package/plugins/filters/ui/link.mjs +13 -8
  149. package/plugins/filters/ui/multipleSelect.js +112 -85
  150. package/plugins/filters/ui/multipleSelect.mjs +112 -85
  151. package/plugins/filters/ui/radioInput.js +20 -12
  152. package/plugins/filters/ui/radioInput.mjs +20 -12
  153. package/plugins/filters/ui/select.js +72 -50
  154. package/plugins/filters/ui/select.mjs +71 -49
  155. package/plugins/formulas/formulas.js +326 -268
  156. package/plugins/formulas/formulas.mjs +327 -269
  157. package/plugins/formulas/indexSyncer/axisSyncer.js +61 -38
  158. package/plugins/formulas/indexSyncer/axisSyncer.mjs +61 -38
  159. package/plugins/formulas/indexSyncer/index.js +48 -25
  160. package/plugins/formulas/indexSyncer/index.mjs +48 -25
  161. package/plugins/hiddenColumns/hiddenColumns.js +83 -64
  162. package/plugins/hiddenColumns/hiddenColumns.mjs +83 -64
  163. package/plugins/hiddenRows/hiddenRows.js +82 -63
  164. package/plugins/hiddenRows/hiddenRows.mjs +82 -63
  165. package/plugins/manualColumnFreeze/manualColumnFreeze.js +32 -24
  166. package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +33 -25
  167. package/plugins/manualColumnMove/manualColumnMove.js +170 -126
  168. package/plugins/manualColumnMove/manualColumnMove.mjs +170 -126
  169. package/plugins/manualColumnResize/manualColumnResize.js +230 -169
  170. package/plugins/manualColumnResize/manualColumnResize.mjs +230 -169
  171. package/plugins/manualRowMove/manualRowMove.js +128 -99
  172. package/plugins/manualRowMove/manualRowMove.mjs +128 -99
  173. package/plugins/manualRowResize/manualRowResize.js +209 -150
  174. package/plugins/manualRowResize/manualRowResize.mjs +209 -150
  175. package/plugins/mergeCells/calculations/selection.js +71 -2
  176. package/plugins/mergeCells/calculations/selection.mjs +71 -2
  177. package/plugins/mergeCells/cellsCollection.js +1 -117
  178. package/plugins/mergeCells/cellsCollection.mjs +1 -117
  179. package/plugins/mergeCells/contextMenuItem/toggleMerge.js +1 -11
  180. package/plugins/mergeCells/contextMenuItem/toggleMerge.mjs +1 -11
  181. package/plugins/mergeCells/mergeCells.js +397 -499
  182. package/plugins/mergeCells/mergeCells.mjs +397 -499
  183. package/plugins/multiColumnSorting/multiColumnSorting.js +2 -8
  184. package/plugins/multiColumnSorting/multiColumnSorting.mjs +2 -8
  185. package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +1 -1
  186. package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +1 -1
  187. package/plugins/nestedHeaders/nestedHeaders.js +253 -205
  188. package/plugins/nestedHeaders/nestedHeaders.mjs +254 -206
  189. package/plugins/nestedHeaders/stateManager/headersTree.js +32 -21
  190. package/plugins/nestedHeaders/stateManager/headersTree.mjs +32 -21
  191. package/plugins/nestedHeaders/stateManager/index.js +41 -30
  192. package/plugins/nestedHeaders/stateManager/index.mjs +41 -30
  193. package/plugins/nestedHeaders/stateManager/sourceSettings.js +30 -19
  194. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +30 -19
  195. package/plugins/nestedRows/data/dataManager.js +1 -1
  196. package/plugins/nestedRows/data/dataManager.mjs +1 -1
  197. package/plugins/nestedRows/nestedRows.js +182 -151
  198. package/plugins/nestedRows/nestedRows.mjs +183 -152
  199. package/plugins/nestedRows/ui/contextMenu.js +15 -11
  200. package/plugins/nestedRows/ui/contextMenu.mjs +14 -10
  201. package/plugins/nestedRows/utils/rowMoveController.js +1 -1
  202. package/plugins/nestedRows/utils/rowMoveController.mjs +1 -1
  203. package/plugins/persistentState/storage.js +2 -2
  204. package/plugins/persistentState/storage.mjs +2 -2
  205. package/plugins/search/search.js +7 -7
  206. package/plugins/search/search.mjs +7 -7
  207. package/plugins/touchScroll/touchScroll.js +19 -15
  208. package/plugins/touchScroll/touchScroll.mjs +20 -16
  209. package/plugins/trimRows/trimRows.js +6 -6
  210. package/plugins/trimRows/trimRows.mjs +6 -6
  211. package/renderers/checkboxRenderer/checkboxRenderer.js +5 -8
  212. package/renderers/checkboxRenderer/checkboxRenderer.mjs +5 -8
  213. package/selection/highlight/highlight.js +14 -14
  214. package/selection/highlight/highlight.mjs +13 -13
  215. package/selection/highlight/visualSelection.js +0 -2
  216. package/selection/highlight/visualSelection.mjs +0 -2
  217. package/selection/selection.js +67 -225
  218. package/selection/selection.mjs +66 -224
  219. package/selection/transformation.js +118 -149
  220. package/selection/transformation.mjs +118 -149
  221. package/shortcutContexts/commands/editor/closeAndSave.js +2 -2
  222. package/shortcutContexts/commands/editor/closeAndSave.mjs +2 -2
  223. package/shortcutContexts/commands/editor/open.js +3 -18
  224. package/shortcutContexts/commands/editor/open.mjs +3 -18
  225. package/shortcutContexts/commands/extendCellsSelection/down.js +1 -1
  226. package/shortcutContexts/commands/extendCellsSelection/down.mjs +1 -1
  227. package/shortcutContexts/commands/extendCellsSelection/left.js +1 -1
  228. package/shortcutContexts/commands/extendCellsSelection/left.mjs +1 -1
  229. package/shortcutContexts/commands/extendCellsSelection/right.js +1 -1
  230. package/shortcutContexts/commands/extendCellsSelection/right.mjs +1 -1
  231. package/shortcutContexts/commands/extendCellsSelection/toColumns.js +1 -1
  232. package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +1 -1
  233. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +1 -3
  234. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +1 -3
  235. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +3 -9
  236. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +3 -9
  237. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +3 -10
  238. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +3 -10
  239. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +1 -3
  240. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +1 -3
  241. package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +1 -3
  242. package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +1 -3
  243. package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +1 -3
  244. package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +1 -3
  245. package/shortcutContexts/commands/extendCellsSelection/toRows.js +1 -1
  246. package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +1 -1
  247. package/shortcutContexts/commands/extendCellsSelection/up.js +1 -1
  248. package/shortcutContexts/commands/extendCellsSelection/up.mjs +1 -1
  249. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +1 -6
  250. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +1 -6
  251. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +1 -6
  252. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +1 -6
  253. package/shortcutContexts/grid.js +3 -9
  254. package/shortcutContexts/grid.mjs +3 -9
  255. package/shortcuts/context.js +1 -2
  256. package/shortcuts/context.mjs +1 -2
  257. package/tableView.js +78 -52
  258. package/tableView.mjs +78 -52
  259. package/translations/changesObservable/observable.js +38 -21
  260. package/translations/changesObservable/observable.mjs +38 -21
  261. package/translations/changesObservable/observer.js +12 -7
  262. package/translations/changesObservable/observer.mjs +11 -6
  263. package/translations/mapCollections/aggregatedCollection.js +1 -1
  264. package/translations/mapCollections/aggregatedCollection.mjs +1 -1
  265. package/translations/maps/indexMap.js +1 -1
  266. package/translations/maps/indexMap.mjs +1 -1
  267. package/utils/dataStructures/linkedList.js +1 -6
  268. package/utils/dataStructures/linkedList.mjs +1 -6
  269. package/utils/dataStructures/tree.js +1 -1
  270. package/utils/dataStructures/tree.mjs +1 -1
  271. package/utils/interval.js +44 -26
  272. package/utils/interval.mjs +44 -26
  273. package/core/viewportScroll/scrollStrategies/focusScroll.js +0 -15
  274. package/core/viewportScroll/scrollStrategies/focusScroll.mjs +0 -11
  275. package/i18n/languages/ar-AR.d.ts +0 -5
  276. package/i18n/languages/cs-CZ.d.ts +0 -5
  277. package/i18n/languages/hr-HR.d.ts +0 -5
  278. package/i18n/languages/sr-SP.d.ts +0 -5
  279. package/plugins/mergeCells/focusOrder.js +0 -305
  280. package/plugins/mergeCells/focusOrder.mjs +0 -300
@@ -1,11 +1,14 @@
1
- import "core-js/modules/es.error.cause.js";
2
1
  import "core-js/modules/es.array.push.js";
2
+ import "core-js/modules/es.error.cause.js";
3
3
  function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
4
4
  function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
5
5
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
6
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
7
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
8
- function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
6
+ function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
7
+ function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
8
+ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
9
+ function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
10
+ function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
11
+ 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; } }
9
12
  import { BasePlugin } from "../base/index.mjs";
10
13
  import { addClass } from "../../helpers/dom/element.mjs";
11
14
  import { rangeEach } from "../../helpers/number.mjs";
@@ -132,10 +135,47 @@ export const PLUGIN_PRIORITY = 310;
132
135
  */
133
136
  var _settings = /*#__PURE__*/new WeakMap();
134
137
  var _hiddenColumnsMap = /*#__PURE__*/new WeakMap();
135
- var _HiddenColumns_brand = /*#__PURE__*/new WeakSet();
138
+ var _onModifyColWidth = /*#__PURE__*/new WeakSet();
139
+ var _onAfterGetCellMeta = /*#__PURE__*/new WeakSet();
140
+ var _onModifyCopyableRange = /*#__PURE__*/new WeakSet();
141
+ var _onAfterGetColHeader = /*#__PURE__*/new WeakSet();
142
+ var _onAfterContextMenuDefaultOptions = /*#__PURE__*/new WeakSet();
143
+ var _onMapInit = /*#__PURE__*/new WeakSet();
136
144
  export class HiddenColumns extends BasePlugin {
137
145
  constructor() {
138
146
  super(...arguments);
147
+ /**
148
+ * On map initialized hook callback.
149
+ */
150
+ _classPrivateMethodInitSpec(this, _onMapInit);
151
+ /**
152
+ * Add Show-hide columns to context menu.
153
+ *
154
+ * @param {object} options An array of objects containing information about the pre-defined Context Menu items.
155
+ */
156
+ _classPrivateMethodInitSpec(this, _onAfterContextMenuDefaultOptions);
157
+ /**
158
+ * Adds the needed classes to the headers.
159
+ *
160
+ * @param {number} column Visual column index.
161
+ * @param {HTMLElement} TH Header's TH element.
162
+ */
163
+ _classPrivateMethodInitSpec(this, _onAfterGetColHeader);
164
+ /**
165
+ * Modifies the copyable range, accordingly to the provided config.
166
+ *
167
+ * @param {Array} ranges An array of objects defining copyable cells.
168
+ * @returns {Array}
169
+ */
170
+ _classPrivateMethodInitSpec(this, _onModifyCopyableRange);
171
+ /**
172
+ * Sets the copy-related cell meta.
173
+ *
174
+ * @param {number} row Visual row index.
175
+ * @param {number} column Visual column index.
176
+ * @param {object} cellProperties Object containing the cell properties.
177
+ */
178
+ _classPrivateMethodInitSpec(this, _onAfterGetCellMeta);
139
179
  /**
140
180
  * Adds the additional column width for the hidden column indicators.
141
181
  *
@@ -143,21 +183,27 @@ export class HiddenColumns extends BasePlugin {
143
183
  * @param {number} column Visual column index.
144
184
  * @returns {number}
145
185
  */
146
- _classPrivateMethodInitSpec(this, _HiddenColumns_brand);
186
+ _classPrivateMethodInitSpec(this, _onModifyColWidth);
147
187
  /**
148
188
  * Cached plugin settings.
149
189
  *
150
190
  * @private
151
191
  * @type {object}
152
192
  */
153
- _classPrivateFieldInitSpec(this, _settings, {});
193
+ _classPrivateFieldInitSpec(this, _settings, {
194
+ writable: true,
195
+ value: {}
196
+ });
154
197
  /**
155
198
  * Map of hidden columns by the plugin.
156
199
  *
157
200
  * @private
158
201
  * @type {null|HidingMap}
159
202
  */
160
- _classPrivateFieldInitSpec(this, _hiddenColumnsMap, null);
203
+ _classPrivateFieldInitSpec(this, _hiddenColumnsMap, {
204
+ writable: true,
205
+ value: null
206
+ });
161
207
  }
162
208
  static get PLUGIN_KEY() {
163
209
  return PLUGIN_KEY;
@@ -185,29 +231,29 @@ export class HiddenColumns extends BasePlugin {
185
231
  }
186
232
  const pluginSettings = this.hot.getSettings()[PLUGIN_KEY];
187
233
  if (isObject(pluginSettings)) {
188
- _classPrivateFieldSet(_settings, this, pluginSettings);
234
+ _classPrivateFieldSet(this, _settings, pluginSettings);
189
235
  if (isUndefined(pluginSettings.copyPasteEnabled)) {
190
236
  pluginSettings.copyPasteEnabled = true;
191
237
  }
192
238
  }
193
- _classPrivateFieldSet(_hiddenColumnsMap, this, new HidingMap());
194
- _classPrivateFieldGet(_hiddenColumnsMap, this).addLocalHook('init', () => _assertClassBrand(_HiddenColumns_brand, this, _onMapInit).call(this));
195
- this.hot.columnIndexMapper.registerMap(this.pluginName, _classPrivateFieldGet(_hiddenColumnsMap, this));
239
+ _classPrivateFieldSet(this, _hiddenColumnsMap, new HidingMap());
240
+ _classPrivateFieldGet(this, _hiddenColumnsMap).addLocalHook('init', () => _classPrivateMethodGet(this, _onMapInit, _onMapInit2).call(this));
241
+ this.hot.columnIndexMapper.registerMap(this.pluginName, _classPrivateFieldGet(this, _hiddenColumnsMap));
196
242
  this.addHook('afterContextMenuDefaultOptions', function () {
197
243
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
198
244
  args[_key] = arguments[_key];
199
245
  }
200
- return _assertClassBrand(_HiddenColumns_brand, _this, _onAfterContextMenuDefaultOptions).call(_this, ...args);
246
+ return _classPrivateMethodGet(_this, _onAfterContextMenuDefaultOptions, _onAfterContextMenuDefaultOptions2).call(_this, ...args);
201
247
  });
202
- this.addHook('afterGetCellMeta', (row, col, cellProperties) => _assertClassBrand(_HiddenColumns_brand, this, _onAfterGetCellMeta).call(this, row, col, cellProperties));
203
- this.addHook('modifyColWidth', (width, col) => _assertClassBrand(_HiddenColumns_brand, this, _onModifyColWidth).call(this, width, col));
248
+ this.addHook('afterGetCellMeta', (row, col, cellProperties) => _classPrivateMethodGet(this, _onAfterGetCellMeta, _onAfterGetCellMeta2).call(this, row, col, cellProperties));
249
+ this.addHook('modifyColWidth', (width, col) => _classPrivateMethodGet(this, _onModifyColWidth, _onModifyColWidth2).call(this, width, col));
204
250
  this.addHook('afterGetColHeader', function () {
205
251
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
206
252
  args[_key2] = arguments[_key2];
207
253
  }
208
- return _assertClassBrand(_HiddenColumns_brand, _this, _onAfterGetColHeader).call(_this, ...args);
254
+ return _classPrivateMethodGet(_this, _onAfterGetColHeader, _onAfterGetColHeader2).call(_this, ...args);
209
255
  });
210
- this.addHook('modifyCopyableRange', ranges => _assertClassBrand(_HiddenColumns_brand, this, _onModifyCopyableRange).call(this, ranges));
256
+ this.addHook('modifyCopyableRange', ranges => _classPrivateMethodGet(this, _onModifyCopyableRange, _onModifyCopyableRange2).call(this, ranges));
211
257
  super.enablePlugin();
212
258
  }
213
259
 
@@ -228,7 +274,7 @@ export class HiddenColumns extends BasePlugin {
228
274
  */
229
275
  disablePlugin() {
230
276
  this.hot.columnIndexMapper.unregisterMap(this.pluginName);
231
- _classPrivateFieldSet(_settings, this, {});
277
+ _classPrivateFieldSet(this, _settings, {});
232
278
  super.disablePlugin();
233
279
  this.resetCellsMeta();
234
280
  }
@@ -242,7 +288,7 @@ export class HiddenColumns extends BasePlugin {
242
288
  const currentHideConfig = this.getHiddenColumns();
243
289
  const isValidConfig = this.isValidConfig(columns);
244
290
  let destinationHideConfig = currentHideConfig;
245
- const hidingMapValues = _classPrivateFieldGet(_hiddenColumnsMap, this).getValues().slice();
291
+ const hidingMapValues = _classPrivateFieldGet(this, _hiddenColumnsMap).getValues().slice();
246
292
  const isAnyColumnShowed = columns.length > 0;
247
293
  if (isValidConfig && isAnyColumnShowed) {
248
294
  const physicalColumns = columns.map(visualColumn => this.hot.toPhysicalColumn(visualColumn));
@@ -265,7 +311,7 @@ export class HiddenColumns extends BasePlugin {
265
311
  return;
266
312
  }
267
313
  if (isValidConfig && isAnyColumnShowed) {
268
- _classPrivateFieldGet(_hiddenColumnsMap, this).setValues(hidingMapValues);
314
+ _classPrivateFieldGet(this, _hiddenColumnsMap).setValues(hidingMapValues);
269
315
  }
270
316
 
271
317
  // @TODO Should call once per render cycle, currently fired separately in different plugins
@@ -304,7 +350,7 @@ export class HiddenColumns extends BasePlugin {
304
350
  if (isConfigValid) {
305
351
  this.hot.batchExecution(() => {
306
352
  arrayEach(columns, visualColumn => {
307
- _classPrivateFieldGet(_hiddenColumnsMap, this).setValueAtIndex(this.hot.toPhysicalColumn(visualColumn), true);
353
+ _classPrivateFieldGet(this, _hiddenColumnsMap).setValueAtIndex(this.hot.toPhysicalColumn(visualColumn), true);
308
354
  });
309
355
  }, true);
310
356
  }
@@ -329,7 +375,7 @@ export class HiddenColumns extends BasePlugin {
329
375
  * @returns {number[]}
330
376
  */
331
377
  getHiddenColumns() {
332
- return arrayMap(_classPrivateFieldGet(_hiddenColumnsMap, this).getHiddenIndexes(), physicalColumnIndex => {
378
+ return arrayMap(_classPrivateFieldGet(this, _hiddenColumnsMap).getHiddenIndexes(), physicalColumnIndex => {
333
379
  return this.hot.toVisualColumn(physicalColumnIndex);
334
380
  });
335
381
  }
@@ -341,7 +387,7 @@ export class HiddenColumns extends BasePlugin {
341
387
  * @returns {boolean}
342
388
  */
343
389
  isHidden(column) {
344
- return _classPrivateFieldGet(_hiddenColumnsMap, this).getValueAtIndex(this.hot.toPhysicalColumn(column)) || false;
390
+ return _classPrivateFieldGet(this, _hiddenColumnsMap).getValueAtIndex(this.hot.toPhysicalColumn(column)) || false;
345
391
  }
346
392
 
347
393
  /**
@@ -374,33 +420,26 @@ export class HiddenColumns extends BasePlugin {
374
420
  * Destroys the plugin instance.
375
421
  */
376
422
  destroy() {
377
- _classPrivateFieldSet(_settings, this, null);
378
- _classPrivateFieldSet(_hiddenColumnsMap, this, null);
423
+ _classPrivateFieldSet(this, _settings, null);
424
+ _classPrivateFieldSet(this, _hiddenColumnsMap, null);
379
425
  super.destroy();
380
426
  }
381
427
  }
382
- function _onModifyColWidth(width, column) {
428
+ function _onModifyColWidth2(width, column) {
383
429
  // Hook is triggered internally only for the visible columns. Conditional will be handled for the API
384
430
  // calls of the `getColWidth` function on not visible indexes.
385
431
  if (this.isHidden(column)) {
386
432
  return 0;
387
433
  }
388
- if (_classPrivateFieldGet(_settings, this).indicators && (this.isHidden(column + 1) || this.isHidden(column - 1))) {
434
+ if (_classPrivateFieldGet(this, _settings).indicators && (this.isHidden(column + 1) || this.isHidden(column - 1))) {
389
435
  // Add additional space for hidden column indicator.
390
436
  if (typeof width === 'number' && this.hot.hasColHeaders()) {
391
437
  return width + 15;
392
438
  }
393
439
  }
394
440
  }
395
- /**
396
- * Sets the copy-related cell meta.
397
- *
398
- * @param {number} row Visual row index.
399
- * @param {number} column Visual column index.
400
- * @param {object} cellProperties Object containing the cell properties.
401
- */
402
- function _onAfterGetCellMeta(row, column, cellProperties) {
403
- if (_classPrivateFieldGet(_settings, this).copyPasteEnabled === false && this.isHidden(column)) {
441
+ function _onAfterGetCellMeta2(row, column, cellProperties) {
442
+ if (_classPrivateFieldGet(this, _settings).copyPasteEnabled === false && this.isHidden(column)) {
404
443
  // Cell property handled by the `Autofill` and the `CopyPaste` plugins.
405
444
  cellProperties.skipColumnOnPaste = true;
406
445
  }
@@ -420,15 +459,9 @@ function _onAfterGetCellMeta(row, column, cellProperties) {
420
459
  }
421
460
  }
422
461
  }
423
- /**
424
- * Modifies the copyable range, accordingly to the provided config.
425
- *
426
- * @param {Array} ranges An array of objects defining copyable cells.
427
- * @returns {Array}
428
- */
429
- function _onModifyCopyableRange(ranges) {
462
+ function _onModifyCopyableRange2(ranges) {
430
463
  // Ranges shouldn't be modified when `copyPasteEnabled` option is set to `true` (by default).
431
- if (_classPrivateFieldGet(_settings, this).copyPasteEnabled) {
464
+ if (_classPrivateFieldGet(this, _settings).copyPasteEnabled) {
432
465
  return ranges;
433
466
  }
434
467
  const newRanges = [];
@@ -462,14 +495,8 @@ function _onModifyCopyableRange(ranges) {
462
495
  });
463
496
  return newRanges;
464
497
  }
465
- /**
466
- * Adds the needed classes to the headers.
467
- *
468
- * @param {number} column Visual column index.
469
- * @param {HTMLElement} TH Header's TH element.
470
- */
471
- function _onAfterGetColHeader(column, TH) {
472
- if (!_classPrivateFieldGet(_settings, this).indicators || column < 0) {
498
+ function _onAfterGetColHeader2(column, TH) {
499
+ if (!_classPrivateFieldGet(this, _settings).indicators || column < 0) {
473
500
  return;
474
501
  }
475
502
  const classList = [];
@@ -481,21 +508,13 @@ function _onAfterGetColHeader(column, TH) {
481
508
  }
482
509
  addClass(TH, classList);
483
510
  }
484
- /**
485
- * Add Show-hide columns to context menu.
486
- *
487
- * @param {object} options An array of objects containing information about the pre-defined Context Menu items.
488
- */
489
- function _onAfterContextMenuDefaultOptions(options) {
511
+ function _onAfterContextMenuDefaultOptions2(options) {
490
512
  options.items.push({
491
513
  name: SEPARATOR
492
514
  }, hideColumnItem(this), showColumnItem(this));
493
515
  }
494
- /**
495
- * On map initialized hook callback.
496
- */
497
- function _onMapInit() {
498
- if (Array.isArray(_classPrivateFieldGet(_settings, this).columns)) {
499
- this.hideColumns(_classPrivateFieldGet(_settings, this).columns);
516
+ function _onMapInit2() {
517
+ if (Array.isArray(_classPrivateFieldGet(this, _settings).columns)) {
518
+ this.hideColumns(_classPrivateFieldGet(this, _settings).columns);
500
519
  }
501
520
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- require("core-js/modules/es.error.cause.js");
5
4
  require("core-js/modules/es.array.push.js");
5
+ require("core-js/modules/es.error.cause.js");
6
6
  var _base = require("../base");
7
7
  var _element = require("../../helpers/dom/element");
8
8
  var _number = require("../../helpers/number");
@@ -18,9 +18,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
18
18
  function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
19
19
  function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
20
20
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
21
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
22
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
23
- function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
21
+ function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
22
+ function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
23
+ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
24
+ function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
25
+ function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
26
+ 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; } }
24
27
  _pluginHooks.default.getSingleton().register('beforeHideRows');
25
28
  _pluginHooks.default.getSingleton().register('afterHideRows');
26
29
  _pluginHooks.default.getSingleton().register('beforeUnhideRows');
@@ -136,10 +139,47 @@ const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 320;
136
139
  */
137
140
  var _settings = /*#__PURE__*/new WeakMap();
138
141
  var _hiddenRowsMap = /*#__PURE__*/new WeakMap();
139
- var _HiddenRows_brand = /*#__PURE__*/new WeakSet();
142
+ var _onModifyRowHeight = /*#__PURE__*/new WeakSet();
143
+ var _onAfterGetCellMeta = /*#__PURE__*/new WeakSet();
144
+ var _onModifyCopyableRange = /*#__PURE__*/new WeakSet();
145
+ var _onAfterGetRowHeader = /*#__PURE__*/new WeakSet();
146
+ var _onAfterContextMenuDefaultOptions = /*#__PURE__*/new WeakSet();
147
+ var _onMapInit = /*#__PURE__*/new WeakSet();
140
148
  class HiddenRows extends _base.BasePlugin {
141
149
  constructor() {
142
150
  super(...arguments);
151
+ /**
152
+ * On map initialized hook callback.
153
+ */
154
+ _classPrivateMethodInitSpec(this, _onMapInit);
155
+ /**
156
+ * Add Show-hide rows to context menu.
157
+ *
158
+ * @param {object} options An array of objects containing information about the pre-defined Context Menu items.
159
+ */
160
+ _classPrivateMethodInitSpec(this, _onAfterContextMenuDefaultOptions);
161
+ /**
162
+ * Adds the needed classes to the headers.
163
+ *
164
+ * @param {number} row Visual row index.
165
+ * @param {HTMLElement} TH Header's TH element.
166
+ */
167
+ _classPrivateMethodInitSpec(this, _onAfterGetRowHeader);
168
+ /**
169
+ * Modifies the copyable range, accordingly to the provided config.
170
+ *
171
+ * @param {Array} ranges An array of objects defining copyable cells.
172
+ * @returns {Array}
173
+ */
174
+ _classPrivateMethodInitSpec(this, _onModifyCopyableRange);
175
+ /**
176
+ * Sets the copy-related cell meta.
177
+ *
178
+ * @param {number} row Visual row index.
179
+ * @param {number} column Visual column index.
180
+ * @param {object} cellProperties Object containing the cell properties.
181
+ */
182
+ _classPrivateMethodInitSpec(this, _onAfterGetCellMeta);
143
183
  /**
144
184
  * Adds the additional row height for the hidden row indicators.
145
185
  *
@@ -147,21 +187,27 @@ class HiddenRows extends _base.BasePlugin {
147
187
  * @param {number} row Visual row index.
148
188
  * @returns {number}
149
189
  */
150
- _classPrivateMethodInitSpec(this, _HiddenRows_brand);
190
+ _classPrivateMethodInitSpec(this, _onModifyRowHeight);
151
191
  /**
152
192
  * Cached settings from Handsontable settings.
153
193
  *
154
194
  * @private
155
195
  * @type {object}
156
196
  */
157
- _classPrivateFieldInitSpec(this, _settings, {});
197
+ _classPrivateFieldInitSpec(this, _settings, {
198
+ writable: true,
199
+ value: {}
200
+ });
158
201
  /**
159
202
  * Map of hidden rows by the plugin.
160
203
  *
161
204
  * @private
162
205
  * @type {HidingMap|null}
163
206
  */
164
- _classPrivateFieldInitSpec(this, _hiddenRowsMap, null);
207
+ _classPrivateFieldInitSpec(this, _hiddenRowsMap, {
208
+ writable: true,
209
+ value: null
210
+ });
165
211
  }
166
212
  static get PLUGIN_KEY() {
167
213
  return PLUGIN_KEY;
@@ -189,29 +235,29 @@ class HiddenRows extends _base.BasePlugin {
189
235
  }
190
236
  const pluginSettings = this.hot.getSettings()[PLUGIN_KEY];
191
237
  if ((0, _object.isObject)(pluginSettings)) {
192
- _classPrivateFieldSet(_settings, this, pluginSettings);
238
+ _classPrivateFieldSet(this, _settings, pluginSettings);
193
239
  if ((0, _mixed.isUndefined)(pluginSettings.copyPasteEnabled)) {
194
240
  pluginSettings.copyPasteEnabled = true;
195
241
  }
196
242
  }
197
- _classPrivateFieldSet(_hiddenRowsMap, this, new _translations.HidingMap());
198
- _classPrivateFieldGet(_hiddenRowsMap, this).addLocalHook('init', () => _assertClassBrand(_HiddenRows_brand, this, _onMapInit).call(this));
199
- this.hot.rowIndexMapper.registerMap(this.pluginName, _classPrivateFieldGet(_hiddenRowsMap, this));
243
+ _classPrivateFieldSet(this, _hiddenRowsMap, new _translations.HidingMap());
244
+ _classPrivateFieldGet(this, _hiddenRowsMap).addLocalHook('init', () => _classPrivateMethodGet(this, _onMapInit, _onMapInit2).call(this));
245
+ this.hot.rowIndexMapper.registerMap(this.pluginName, _classPrivateFieldGet(this, _hiddenRowsMap));
200
246
  this.addHook('afterContextMenuDefaultOptions', function () {
201
247
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
202
248
  args[_key] = arguments[_key];
203
249
  }
204
- return _assertClassBrand(_HiddenRows_brand, _this, _onAfterContextMenuDefaultOptions).call(_this, ...args);
250
+ return _classPrivateMethodGet(_this, _onAfterContextMenuDefaultOptions, _onAfterContextMenuDefaultOptions2).call(_this, ...args);
205
251
  });
206
- this.addHook('afterGetCellMeta', (row, col, cellProperties) => _assertClassBrand(_HiddenRows_brand, this, _onAfterGetCellMeta).call(this, row, col, cellProperties));
207
- this.addHook('modifyRowHeight', (height, row) => _assertClassBrand(_HiddenRows_brand, this, _onModifyRowHeight).call(this, height, row));
252
+ this.addHook('afterGetCellMeta', (row, col, cellProperties) => _classPrivateMethodGet(this, _onAfterGetCellMeta, _onAfterGetCellMeta2).call(this, row, col, cellProperties));
253
+ this.addHook('modifyRowHeight', (height, row) => _classPrivateMethodGet(this, _onModifyRowHeight, _onModifyRowHeight2).call(this, height, row));
208
254
  this.addHook('afterGetRowHeader', function () {
209
255
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
210
256
  args[_key2] = arguments[_key2];
211
257
  }
212
- return _assertClassBrand(_HiddenRows_brand, _this, _onAfterGetRowHeader).call(_this, ...args);
258
+ return _classPrivateMethodGet(_this, _onAfterGetRowHeader, _onAfterGetRowHeader2).call(_this, ...args);
213
259
  });
214
- this.addHook('modifyCopyableRange', ranges => _assertClassBrand(_HiddenRows_brand, this, _onModifyCopyableRange).call(this, ranges));
260
+ this.addHook('modifyCopyableRange', ranges => _classPrivateMethodGet(this, _onModifyCopyableRange, _onModifyCopyableRange2).call(this, ranges));
215
261
  super.enablePlugin();
216
262
  }
217
263
 
@@ -232,7 +278,7 @@ class HiddenRows extends _base.BasePlugin {
232
278
  */
233
279
  disablePlugin() {
234
280
  this.hot.rowIndexMapper.unregisterMap(this.pluginName);
235
- _classPrivateFieldSet(_settings, this, {});
281
+ _classPrivateFieldSet(this, _settings, {});
236
282
  super.disablePlugin();
237
283
  this.resetCellsMeta();
238
284
  }
@@ -246,7 +292,7 @@ class HiddenRows extends _base.BasePlugin {
246
292
  const currentHideConfig = this.getHiddenRows();
247
293
  const isValidConfig = this.isValidConfig(rows);
248
294
  let destinationHideConfig = currentHideConfig;
249
- const hidingMapValues = _classPrivateFieldGet(_hiddenRowsMap, this).getValues().slice();
295
+ const hidingMapValues = _classPrivateFieldGet(this, _hiddenRowsMap).getValues().slice();
250
296
  const isAnyRowShowed = rows.length > 0;
251
297
  if (isValidConfig && isAnyRowShowed) {
252
298
  const physicalRows = rows.map(visualRow => this.hot.toPhysicalRow(visualRow));
@@ -269,7 +315,7 @@ class HiddenRows extends _base.BasePlugin {
269
315
  return;
270
316
  }
271
317
  if (isValidConfig && isAnyRowShowed) {
272
- _classPrivateFieldGet(_hiddenRowsMap, this).setValues(hidingMapValues);
318
+ _classPrivateFieldGet(this, _hiddenRowsMap).setValues(hidingMapValues);
273
319
  }
274
320
  this.hot.runHooks('afterUnhideRows', currentHideConfig, destinationHideConfig, isValidConfig && isAnyRowShowed, isValidConfig && destinationHideConfig.length < currentHideConfig.length);
275
321
  }
@@ -305,7 +351,7 @@ class HiddenRows extends _base.BasePlugin {
305
351
  if (isConfigValid) {
306
352
  this.hot.batchExecution(() => {
307
353
  (0, _array.arrayEach)(rows, visualRow => {
308
- _classPrivateFieldGet(_hiddenRowsMap, this).setValueAtIndex(this.hot.toPhysicalRow(visualRow), true);
354
+ _classPrivateFieldGet(this, _hiddenRowsMap).setValueAtIndex(this.hot.toPhysicalRow(visualRow), true);
309
355
  });
310
356
  }, true);
311
357
  }
@@ -330,7 +376,7 @@ class HiddenRows extends _base.BasePlugin {
330
376
  * @returns {number[]}
331
377
  */
332
378
  getHiddenRows() {
333
- return (0, _array.arrayMap)(_classPrivateFieldGet(_hiddenRowsMap, this).getHiddenIndexes(), physicalRowIndex => {
379
+ return (0, _array.arrayMap)(_classPrivateFieldGet(this, _hiddenRowsMap).getHiddenIndexes(), physicalRowIndex => {
334
380
  return this.hot.toVisualRow(physicalRowIndex);
335
381
  });
336
382
  }
@@ -342,7 +388,7 @@ class HiddenRows extends _base.BasePlugin {
342
388
  * @returns {boolean}
343
389
  */
344
390
  isHidden(row) {
345
- return _classPrivateFieldGet(_hiddenRowsMap, this).getValueAtIndex(this.hot.toPhysicalRow(row)) || false;
391
+ return _classPrivateFieldGet(this, _hiddenRowsMap).getValueAtIndex(this.hot.toPhysicalRow(row)) || false;
346
392
  }
347
393
 
348
394
  /**
@@ -375,13 +421,13 @@ class HiddenRows extends _base.BasePlugin {
375
421
  * Destroys the plugin instance.
376
422
  */
377
423
  destroy() {
378
- _classPrivateFieldSet(_settings, this, null);
379
- _classPrivateFieldSet(_hiddenRowsMap, this, null);
424
+ _classPrivateFieldSet(this, _settings, null);
425
+ _classPrivateFieldSet(this, _hiddenRowsMap, null);
380
426
  super.destroy();
381
427
  }
382
428
  }
383
429
  exports.HiddenRows = HiddenRows;
384
- function _onModifyRowHeight(height, row) {
430
+ function _onModifyRowHeight2(height, row) {
385
431
  // Hook is triggered internally only for the visible rows. Conditional will be handled for the API
386
432
  // calls of the `getRowHeight` function on not visible indexes.
387
433
  if (this.isHidden(row)) {
@@ -389,15 +435,8 @@ function _onModifyRowHeight(height, row) {
389
435
  }
390
436
  return height;
391
437
  }
392
- /**
393
- * Sets the copy-related cell meta.
394
- *
395
- * @param {number} row Visual row index.
396
- * @param {number} column Visual column index.
397
- * @param {object} cellProperties Object containing the cell properties.
398
- */
399
- function _onAfterGetCellMeta(row, column, cellProperties) {
400
- if (_classPrivateFieldGet(_settings, this).copyPasteEnabled === false && this.isHidden(row)) {
438
+ function _onAfterGetCellMeta2(row, column, cellProperties) {
439
+ if (_classPrivateFieldGet(this, _settings).copyPasteEnabled === false && this.isHidden(row)) {
401
440
  // Cell property handled by the `Autofill` and the `CopyPaste` plugins.
402
441
  cellProperties.skipRowOnPaste = true;
403
442
  }
@@ -417,15 +456,9 @@ function _onAfterGetCellMeta(row, column, cellProperties) {
417
456
  }
418
457
  }
419
458
  }
420
- /**
421
- * Modifies the copyable range, accordingly to the provided config.
422
- *
423
- * @param {Array} ranges An array of objects defining copyable cells.
424
- * @returns {Array}
425
- */
426
- function _onModifyCopyableRange(ranges) {
459
+ function _onModifyCopyableRange2(ranges) {
427
460
  // Ranges shouldn't be modified when `copyPasteEnabled` option is set to `true` (by default).
428
- if (_classPrivateFieldGet(_settings, this).copyPasteEnabled) {
461
+ if (_classPrivateFieldGet(this, _settings).copyPasteEnabled) {
429
462
  return ranges;
430
463
  }
431
464
  const newRanges = [];
@@ -459,14 +492,8 @@ function _onModifyCopyableRange(ranges) {
459
492
  });
460
493
  return newRanges;
461
494
  }
462
- /**
463
- * Adds the needed classes to the headers.
464
- *
465
- * @param {number} row Visual row index.
466
- * @param {HTMLElement} TH Header's TH element.
467
- */
468
- function _onAfterGetRowHeader(row, TH) {
469
- if (!_classPrivateFieldGet(_settings, this).indicators || row < 0) {
495
+ function _onAfterGetRowHeader2(row, TH) {
496
+ if (!_classPrivateFieldGet(this, _settings).indicators || row < 0) {
470
497
  return;
471
498
  }
472
499
  const classList = [];
@@ -478,21 +505,13 @@ function _onAfterGetRowHeader(row, TH) {
478
505
  }
479
506
  (0, _element.addClass)(TH, classList);
480
507
  }
481
- /**
482
- * Add Show-hide rows to context menu.
483
- *
484
- * @param {object} options An array of objects containing information about the pre-defined Context Menu items.
485
- */
486
- function _onAfterContextMenuDefaultOptions(options) {
508
+ function _onAfterContextMenuDefaultOptions2(options) {
487
509
  options.items.push({
488
510
  name: _predefinedItems.SEPARATOR
489
511
  }, (0, _hideRow.default)(this), (0, _showRow.default)(this));
490
512
  }
491
- /**
492
- * On map initialized hook callback.
493
- */
494
- function _onMapInit() {
495
- if (Array.isArray(_classPrivateFieldGet(_settings, this).rows)) {
496
- this.hideRows(_classPrivateFieldGet(_settings, this).rows);
513
+ function _onMapInit2() {
514
+ if (Array.isArray(_classPrivateFieldGet(this, _settings).rows)) {
515
+ this.hideRows(_classPrivateFieldGet(this, _settings).rows);
497
516
  }
498
517
  }