handsontable 0.0.0-next-5a535ed-20240403 → 0.0.0-next-c2810a1-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 (284) hide show
  1. package/3rdparty/walkontable/src/calculator/viewportColumns.js +12 -17
  2. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +12 -17
  3. package/3rdparty/walkontable/src/calculator/viewportRows.js +10 -15
  4. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +10 -15
  5. package/3rdparty/walkontable/src/cell/coords.js +12 -17
  6. package/3rdparty/walkontable/src/cell/coords.mjs +12 -17
  7. package/3rdparty/walkontable/src/cell/range.d.ts +2 -1
  8. package/3rdparty/walkontable/src/cell/range.js +40 -28
  9. package/3rdparty/walkontable/src/cell/range.mjs +40 -28
  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 +72 -104
  13. package/3rdparty/walkontable/src/event.mjs +72 -104
  14. package/3rdparty/walkontable/src/overlay/inlineStart.js +15 -1
  15. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +16 -2
  16. package/3rdparty/walkontable/src/overlay/top.js +11 -0
  17. package/3rdparty/walkontable/src/overlay/top.mjs +12 -1
  18. package/3rdparty/walkontable/src/overlays.js +46 -4
  19. package/3rdparty/walkontable/src/overlays.mjs +46 -4
  20. package/3rdparty/walkontable/src/scroll.js +15 -17
  21. package/3rdparty/walkontable/src/scroll.mjs +15 -17
  22. package/3rdparty/walkontable/src/selection/manager.js +48 -69
  23. package/3rdparty/walkontable/src/selection/manager.mjs +48 -69
  24. package/3rdparty/walkontable/src/selection/scanner.js +33 -42
  25. package/3rdparty/walkontable/src/selection/scanner.mjs +33 -42
  26. package/3rdparty/walkontable/src/utils/columnStretching.js +27 -44
  27. package/3rdparty/walkontable/src/utils/columnStretching.mjs +27 -44
  28. package/3rdparty/walkontable/src/utils/orderView/view.js +1 -1
  29. package/3rdparty/walkontable/src/utils/orderView/view.mjs +1 -1
  30. package/base.js +2 -2
  31. package/base.mjs +2 -2
  32. package/core/viewportScroll/index.js +4 -1
  33. package/core/viewportScroll/index.mjs +4 -1
  34. package/core/viewportScroll/scrollStrategies/focusScroll.js +15 -0
  35. package/core/viewportScroll/scrollStrategies/focusScroll.mjs +11 -0
  36. package/core.d.ts +4 -3
  37. package/core.js +77 -22
  38. package/core.mjs +77 -22
  39. package/dataMap/dataSource.js +1 -1
  40. package/dataMap/dataSource.mjs +1 -1
  41. package/dataMap/metaManager/metaLayers/cellMeta.js +1 -1
  42. package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -1
  43. package/dataMap/metaManager/metaSchema.js +1 -1
  44. package/dataMap/metaManager/metaSchema.mjs +1 -1
  45. package/dataMap/replaceData.js +1 -1
  46. package/dataMap/replaceData.mjs +1 -1
  47. package/dist/handsontable.css +4 -4
  48. package/dist/handsontable.full.css +4 -4
  49. package/dist/handsontable.full.js +9063 -9122
  50. package/dist/handsontable.full.min.css +3 -3
  51. package/dist/handsontable.full.min.js +292 -292
  52. package/dist/handsontable.js +6968 -6574
  53. package/dist/handsontable.min.css +3 -3
  54. package/dist/handsontable.min.js +25 -25
  55. package/dist/languages/all.min.js +1 -1
  56. package/dist/languages/ar-AR.min.js +1 -1
  57. package/dist/languages/cs-CZ.min.js +1 -1
  58. package/dist/languages/de-CH.min.js +1 -1
  59. package/dist/languages/de-DE.min.js +1 -1
  60. package/dist/languages/en-US.min.js +1 -1
  61. package/dist/languages/es-MX.min.js +1 -1
  62. package/dist/languages/fr-FR.min.js +1 -1
  63. package/dist/languages/hr-HR.min.js +1 -1
  64. package/dist/languages/it-IT.min.js +1 -1
  65. package/dist/languages/ja-JP.min.js +1 -1
  66. package/dist/languages/ko-KR.min.js +1 -1
  67. package/dist/languages/lv-LV.min.js +1 -1
  68. package/dist/languages/nb-NO.min.js +1 -1
  69. package/dist/languages/nl-NL.min.js +1 -1
  70. package/dist/languages/pl-PL.min.js +1 -1
  71. package/dist/languages/pt-BR.min.js +1 -1
  72. package/dist/languages/ru-RU.min.js +1 -1
  73. package/dist/languages/sr-SP.min.js +1 -1
  74. package/dist/languages/zh-CN.min.js +1 -1
  75. package/dist/languages/zh-TW.min.js +1 -1
  76. package/editorManager.js +25 -23
  77. package/editorManager.mjs +25 -23
  78. package/editors/autocompleteEditor/autocompleteEditor.js +6 -10
  79. package/editors/autocompleteEditor/autocompleteEditor.mjs +6 -10
  80. package/editors/selectEditor/selectEditor.js +20 -19
  81. package/editors/selectEditor/selectEditor.mjs +20 -19
  82. package/eventManager.js +1 -1
  83. package/eventManager.mjs +1 -1
  84. package/focusManager.js +64 -82
  85. package/focusManager.mjs +64 -82
  86. package/helpers/dom/element.js +23 -1
  87. package/helpers/dom/element.mjs +21 -1
  88. package/helpers/mixed.js +1 -1
  89. package/helpers/mixed.mjs +1 -1
  90. package/helpers/object.js +2 -2
  91. package/helpers/object.mjs +2 -2
  92. package/i18n/languages/ar-AR.d.ts +5 -0
  93. package/i18n/languages/cs-CZ.d.ts +5 -0
  94. package/i18n/languages/hr-HR.d.ts +5 -0
  95. package/i18n/languages/sr-SP.d.ts +5 -0
  96. package/index.d.ts +10 -0
  97. package/package.json +7 -2
  98. package/pluginHooks.d.ts +4 -3
  99. package/pluginHooks.js +99 -38
  100. package/pluginHooks.mjs +99 -38
  101. package/plugins/autoColumnSize/autoColumnSize.js +49 -65
  102. package/plugins/autoColumnSize/autoColumnSize.mjs +49 -65
  103. package/plugins/autoRowSize/autoRowSize.js +28 -34
  104. package/plugins/autoRowSize/autoRowSize.mjs +28 -34
  105. package/plugins/autofill/autofill.js +30 -38
  106. package/plugins/autofill/autofill.mjs +30 -38
  107. package/plugins/base/base.js +12 -17
  108. package/plugins/base/base.mjs +12 -17
  109. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +5 -5
  110. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +5 -5
  111. package/plugins/collapsibleColumns/collapsibleColumns.js +59 -50
  112. package/plugins/collapsibleColumns/collapsibleColumns.mjs +59 -50
  113. package/plugins/columnSorting/columnSorting.js +49 -45
  114. package/plugins/columnSorting/columnSorting.mjs +49 -45
  115. package/plugins/columnSummary/columnSummary.js +22 -26
  116. package/plugins/columnSummary/columnSummary.mjs +22 -26
  117. package/plugins/comments/comments.js +116 -158
  118. package/plugins/comments/comments.mjs +116 -158
  119. package/plugins/contextMenu/contextMenu.js +20 -26
  120. package/plugins/contextMenu/contextMenu.mjs +20 -26
  121. package/plugins/contextMenu/itemsFactory.js +1 -1
  122. package/plugins/contextMenu/itemsFactory.mjs +1 -1
  123. package/plugins/contextMenu/menu/defaultShortcutsList.js +26 -10
  124. package/plugins/contextMenu/menu/defaultShortcutsList.mjs +26 -10
  125. package/plugins/contextMenu/menu/menu.js +13 -21
  126. package/plugins/contextMenu/menu/menu.mjs +13 -21
  127. package/plugins/contextMenu/menu/positioner.js +41 -58
  128. package/plugins/contextMenu/menu/positioner.mjs +41 -58
  129. package/plugins/copyPaste/copyPaste.js +116 -157
  130. package/plugins/copyPaste/copyPaste.mjs +116 -157
  131. package/plugins/copyPaste/copyableRanges.js +43 -66
  132. package/plugins/copyPaste/copyableRanges.mjs +43 -66
  133. package/plugins/customBorders/customBorders.js +11 -13
  134. package/plugins/customBorders/customBorders.mjs +11 -13
  135. package/plugins/dragToScroll/dragToScroll.js +6 -6
  136. package/plugins/dragToScroll/dragToScroll.mjs +6 -6
  137. package/plugins/dropdownMenu/dropdownMenu.js +81 -107
  138. package/plugins/dropdownMenu/dropdownMenu.mjs +81 -107
  139. package/plugins/exportFile/dataProvider.js +1 -1
  140. package/plugins/exportFile/dataProvider.mjs +1 -1
  141. package/plugins/filters/component/actionBar.js +9 -9
  142. package/plugins/filters/component/actionBar.mjs +8 -8
  143. package/plugins/filters/component/condition.js +13 -15
  144. package/plugins/filters/component/condition.mjs +13 -15
  145. package/plugins/filters/component/operators.js +6 -6
  146. package/plugins/filters/component/operators.mjs +6 -6
  147. package/plugins/filters/component/value.js +24 -28
  148. package/plugins/filters/component/value.mjs +24 -28
  149. package/plugins/filters/conditionUpdateObserver.js +22 -24
  150. package/plugins/filters/conditionUpdateObserver.mjs +22 -24
  151. package/plugins/filters/dataFilter.js +1 -1
  152. package/plugins/filters/dataFilter.mjs +1 -1
  153. package/plugins/filters/filters.js +81 -95
  154. package/plugins/filters/filters.mjs +81 -95
  155. package/plugins/filters/ui/input.js +13 -19
  156. package/plugins/filters/ui/input.mjs +13 -19
  157. package/plugins/filters/ui/link.js +8 -13
  158. package/plugins/filters/ui/link.mjs +8 -13
  159. package/plugins/filters/ui/multipleSelect.js +85 -112
  160. package/plugins/filters/ui/multipleSelect.mjs +85 -112
  161. package/plugins/filters/ui/radioInput.js +12 -20
  162. package/plugins/filters/ui/radioInput.mjs +12 -20
  163. package/plugins/filters/ui/select.js +50 -72
  164. package/plugins/filters/ui/select.mjs +49 -71
  165. package/plugins/formulas/formulas.js +268 -326
  166. package/plugins/formulas/formulas.mjs +269 -327
  167. package/plugins/formulas/indexSyncer/axisSyncer.js +38 -61
  168. package/plugins/formulas/indexSyncer/axisSyncer.mjs +38 -61
  169. package/plugins/formulas/indexSyncer/index.js +25 -48
  170. package/plugins/formulas/indexSyncer/index.mjs +25 -48
  171. package/plugins/hiddenColumns/hiddenColumns.js +64 -83
  172. package/plugins/hiddenColumns/hiddenColumns.mjs +64 -83
  173. package/plugins/hiddenRows/hiddenRows.js +63 -82
  174. package/plugins/hiddenRows/hiddenRows.mjs +63 -82
  175. package/plugins/manualColumnFreeze/manualColumnFreeze.js +24 -32
  176. package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +25 -33
  177. package/plugins/manualColumnMove/manualColumnMove.js +126 -170
  178. package/plugins/manualColumnMove/manualColumnMove.mjs +126 -170
  179. package/plugins/manualColumnResize/manualColumnResize.js +169 -230
  180. package/plugins/manualColumnResize/manualColumnResize.mjs +169 -230
  181. package/plugins/manualRowMove/manualRowMove.js +99 -128
  182. package/plugins/manualRowMove/manualRowMove.mjs +99 -128
  183. package/plugins/manualRowResize/manualRowResize.js +150 -209
  184. package/plugins/manualRowResize/manualRowResize.mjs +150 -209
  185. package/plugins/mergeCells/calculations/selection.js +2 -71
  186. package/plugins/mergeCells/calculations/selection.mjs +2 -71
  187. package/plugins/mergeCells/cellsCollection.js +117 -1
  188. package/plugins/mergeCells/cellsCollection.mjs +117 -1
  189. package/plugins/mergeCells/contextMenuItem/toggleMerge.js +11 -1
  190. package/plugins/mergeCells/contextMenuItem/toggleMerge.mjs +11 -1
  191. package/plugins/mergeCells/focusOrder.js +305 -0
  192. package/plugins/mergeCells/focusOrder.mjs +300 -0
  193. package/plugins/mergeCells/mergeCells.js +499 -397
  194. package/plugins/mergeCells/mergeCells.mjs +499 -397
  195. package/plugins/multiColumnSorting/multiColumnSorting.js +8 -2
  196. package/plugins/multiColumnSorting/multiColumnSorting.mjs +8 -2
  197. package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +1 -1
  198. package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +1 -1
  199. package/plugins/nestedHeaders/nestedHeaders.js +205 -253
  200. package/plugins/nestedHeaders/nestedHeaders.mjs +206 -254
  201. package/plugins/nestedHeaders/stateManager/headersTree.js +21 -32
  202. package/plugins/nestedHeaders/stateManager/headersTree.mjs +21 -32
  203. package/plugins/nestedHeaders/stateManager/index.js +30 -41
  204. package/plugins/nestedHeaders/stateManager/index.mjs +30 -41
  205. package/plugins/nestedHeaders/stateManager/sourceSettings.js +19 -30
  206. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +19 -30
  207. package/plugins/nestedRows/data/dataManager.js +1 -1
  208. package/plugins/nestedRows/data/dataManager.mjs +1 -1
  209. package/plugins/nestedRows/nestedRows.js +151 -182
  210. package/plugins/nestedRows/nestedRows.mjs +152 -183
  211. package/plugins/nestedRows/ui/contextMenu.js +11 -15
  212. package/plugins/nestedRows/ui/contextMenu.mjs +10 -14
  213. package/plugins/nestedRows/utils/rowMoveController.js +1 -1
  214. package/plugins/nestedRows/utils/rowMoveController.mjs +1 -1
  215. package/plugins/persistentState/storage.js +2 -2
  216. package/plugins/persistentState/storage.mjs +2 -2
  217. package/plugins/search/search.js +7 -7
  218. package/plugins/search/search.mjs +7 -7
  219. package/plugins/touchScroll/touchScroll.js +15 -19
  220. package/plugins/touchScroll/touchScroll.mjs +16 -20
  221. package/plugins/trimRows/trimRows.js +6 -6
  222. package/plugins/trimRows/trimRows.mjs +6 -6
  223. package/renderers/checkboxRenderer/checkboxRenderer.js +8 -5
  224. package/renderers/checkboxRenderer/checkboxRenderer.mjs +8 -5
  225. package/selection/highlight/highlight.js +14 -14
  226. package/selection/highlight/highlight.mjs +13 -13
  227. package/selection/highlight/visualSelection.js +2 -0
  228. package/selection/highlight/visualSelection.mjs +2 -0
  229. package/selection/selection.js +225 -67
  230. package/selection/selection.mjs +224 -66
  231. package/selection/transformation.js +149 -118
  232. package/selection/transformation.mjs +149 -118
  233. package/shortcutContexts/commands/editor/closeAndSave.js +2 -2
  234. package/shortcutContexts/commands/editor/closeAndSave.mjs +2 -2
  235. package/shortcutContexts/commands/editor/open.js +18 -3
  236. package/shortcutContexts/commands/editor/open.mjs +18 -3
  237. package/shortcutContexts/commands/extendCellsSelection/down.js +1 -1
  238. package/shortcutContexts/commands/extendCellsSelection/down.mjs +1 -1
  239. package/shortcutContexts/commands/extendCellsSelection/left.js +1 -1
  240. package/shortcutContexts/commands/extendCellsSelection/left.mjs +1 -1
  241. package/shortcutContexts/commands/extendCellsSelection/right.js +1 -1
  242. package/shortcutContexts/commands/extendCellsSelection/right.mjs +1 -1
  243. package/shortcutContexts/commands/extendCellsSelection/toColumns.js +1 -1
  244. package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +1 -1
  245. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +3 -1
  246. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +3 -1
  247. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +9 -3
  248. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +9 -3
  249. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +10 -3
  250. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +10 -3
  251. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +3 -1
  252. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +3 -1
  253. package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +3 -1
  254. package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +3 -1
  255. package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +3 -1
  256. package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +3 -1
  257. package/shortcutContexts/commands/extendCellsSelection/toRows.js +1 -1
  258. package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +1 -1
  259. package/shortcutContexts/commands/extendCellsSelection/up.js +1 -1
  260. package/shortcutContexts/commands/extendCellsSelection/up.mjs +1 -1
  261. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +6 -1
  262. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +6 -1
  263. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +6 -1
  264. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +6 -1
  265. package/shortcutContexts/grid.js +9 -3
  266. package/shortcutContexts/grid.mjs +9 -3
  267. package/shortcuts/context.js +2 -1
  268. package/shortcuts/context.mjs +2 -1
  269. package/tableView.js +52 -78
  270. package/tableView.mjs +52 -78
  271. package/translations/changesObservable/observable.js +21 -38
  272. package/translations/changesObservable/observable.mjs +21 -38
  273. package/translations/changesObservable/observer.js +7 -12
  274. package/translations/changesObservable/observer.mjs +6 -11
  275. package/translations/mapCollections/aggregatedCollection.js +1 -1
  276. package/translations/mapCollections/aggregatedCollection.mjs +1 -1
  277. package/translations/maps/indexMap.js +1 -1
  278. package/translations/maps/indexMap.mjs +1 -1
  279. package/utils/dataStructures/linkedList.js +6 -1
  280. package/utils/dataStructures/linkedList.mjs +6 -1
  281. package/utils/dataStructures/tree.js +1 -1
  282. package/utils/dataStructures/tree.mjs +1 -1
  283. package/utils/interval.js +26 -44
  284. package/utils/interval.mjs +26 -44
@@ -1,15 +1,12 @@
1
+ import "core-js/modules/es.error.cause.js";
1
2
  import "core-js/modules/es.array.push.js";
2
3
  import "core-js/modules/es.array.unscopables.flat.js";
3
- import "core-js/modules/es.error.cause.js";
4
4
  function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
5
5
  function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
6
6
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
7
- function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
8
- function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
9
- function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
10
- function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
11
- function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
12
- 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; } }
7
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
8
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
9
+ 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"); }
13
10
  import { removeClass, addClass, setAttribute, removeAttribute } from "../../../../helpers/dom/element.mjs";
14
11
  import { SelectionScanner } from "./scanner.mjs";
15
12
  import Border from "./border/border.mjs";
@@ -26,71 +23,53 @@ var _scanner = /*#__PURE__*/new WeakMap();
26
23
  var _appliedClasses = /*#__PURE__*/new WeakMap();
27
24
  var _destroyListeners = /*#__PURE__*/new WeakMap();
28
25
  var _selectionBorders = /*#__PURE__*/new WeakMap();
29
- var _resetCells = /*#__PURE__*/new WeakSet();
26
+ var _SelectionManager_brand = /*#__PURE__*/new WeakSet();
30
27
  export class SelectionManager {
31
28
  constructor(selections) {
32
29
  /**
33
30
  * Resets the elements to their initial state (remove the CSS classes that are added in the
34
31
  * previous render cycle).
35
32
  */
36
- _classPrivateMethodInitSpec(this, _resetCells);
33
+ _classPrivateMethodInitSpec(this, _SelectionManager_brand);
37
34
  /**
38
35
  * The overlay's Walkontable instance that are currently processed.
39
36
  *
40
37
  * @type {Walkontable}
41
38
  */
42
- _classPrivateFieldInitSpec(this, _activeOverlaysWot, {
43
- writable: true,
44
- value: void 0
45
- });
39
+ _classPrivateFieldInitSpec(this, _activeOverlaysWot, void 0);
46
40
  /**
47
41
  * The Highlight instance that holds Selections instances within it.
48
42
  *
49
43
  * @type {Highlight|null}
50
44
  */
51
- _classPrivateFieldInitSpec(this, _selections, {
52
- writable: true,
53
- value: void 0
54
- });
45
+ _classPrivateFieldInitSpec(this, _selections, void 0);
55
46
  /**
56
47
  * The SelectionScanner allows to scan and collect the cell and header elements that matches
57
48
  * to the coords defined in the selections.
58
49
  *
59
50
  * @type {SelectionScanner}
60
51
  */
61
- _classPrivateFieldInitSpec(this, _scanner, {
62
- writable: true,
63
- value: new SelectionScanner()
64
- });
52
+ _classPrivateFieldInitSpec(this, _scanner, new SelectionScanner());
65
53
  /**
66
54
  * The Map tracks applied CSS classes. It's used to reset the elements state to their initial state.
67
55
  *
68
56
  * @type {WeakMap}
69
57
  */
70
- _classPrivateFieldInitSpec(this, _appliedClasses, {
71
- writable: true,
72
- value: new WeakMap()
73
- });
58
+ _classPrivateFieldInitSpec(this, _appliedClasses, new WeakMap());
74
59
  /**
75
60
  * The Map tracks applied "destroy" listeners for Selection instances.
76
61
  *
77
62
  * @type {WeakMap}
78
63
  */
79
- _classPrivateFieldInitSpec(this, _destroyListeners, {
80
- writable: true,
81
- value: new WeakSet()
82
- });
64
+ _classPrivateFieldInitSpec(this, _destroyListeners, new WeakSet());
83
65
  /**
84
66
  * The Map holds references to Border classes for Selection instances which requires that when
85
67
  * the "border" setting is defined.
86
68
  *
87
69
  * @type {Map}
88
70
  */
89
- _classPrivateFieldInitSpec(this, _selectionBorders, {
90
- writable: true,
91
- value: new Map()
92
- });
93
- _classPrivateFieldSet(this, _selections, selections);
71
+ _classPrivateFieldInitSpec(this, _selectionBorders, new Map());
72
+ _classPrivateFieldSet(_selections, this, selections);
94
73
  }
95
74
 
96
75
  /**
@@ -100,10 +79,10 @@ export class SelectionManager {
100
79
  * @returns {SelectionManager}
101
80
  */
102
81
  setActiveOverlay(activeWot) {
103
- _classPrivateFieldSet(this, _activeOverlaysWot, activeWot);
104
- _classPrivateFieldGet(this, _scanner).setActiveOverlay(_classPrivateFieldGet(this, _activeOverlaysWot));
105
- if (!_classPrivateFieldGet(this, _appliedClasses).has(_classPrivateFieldGet(this, _activeOverlaysWot))) {
106
- _classPrivateFieldGet(this, _appliedClasses).set(_classPrivateFieldGet(this, _activeOverlaysWot), new Set());
82
+ _classPrivateFieldSet(_activeOverlaysWot, this, activeWot);
83
+ _classPrivateFieldGet(_scanner, this).setActiveOverlay(_classPrivateFieldGet(_activeOverlaysWot, this));
84
+ if (!_classPrivateFieldGet(_appliedClasses, this).has(_classPrivateFieldGet(_activeOverlaysWot, this))) {
85
+ _classPrivateFieldGet(_appliedClasses, this).set(_classPrivateFieldGet(_activeOverlaysWot, this), new Set());
107
86
  }
108
87
  return this;
109
88
  }
@@ -114,7 +93,7 @@ export class SelectionManager {
114
93
  * @returns {Selection|null}
115
94
  */
116
95
  getFocusSelection() {
117
- return _classPrivateFieldGet(this, _selections) !== null ? _classPrivateFieldGet(this, _selections).getFocus() : null;
96
+ return _classPrivateFieldGet(_selections, this) !== null ? _classPrivateFieldGet(_selections, this).getFocus() : null;
118
97
  }
119
98
 
120
99
  /**
@@ -123,7 +102,7 @@ export class SelectionManager {
123
102
  * @returns {Selection|null}
124
103
  */
125
104
  getAreaSelection() {
126
- return _classPrivateFieldGet(this, _selections) !== null ? _classPrivateFieldGet(this, _selections).createLayeredArea() : null;
105
+ return _classPrivateFieldGet(_selections, this) !== null ? _classPrivateFieldGet(_selections, this).createLayeredArea() : null;
127
106
  }
128
107
 
129
108
  /**
@@ -136,17 +115,17 @@ export class SelectionManager {
136
115
  if (!selection.settings.border) {
137
116
  return null;
138
117
  }
139
- if (_classPrivateFieldGet(this, _selectionBorders).has(selection)) {
140
- const borders = _classPrivateFieldGet(this, _selectionBorders).get(selection);
141
- if (borders.has(_classPrivateFieldGet(this, _activeOverlaysWot))) {
142
- return borders.get(_classPrivateFieldGet(this, _activeOverlaysWot));
118
+ if (_classPrivateFieldGet(_selectionBorders, this).has(selection)) {
119
+ const borders = _classPrivateFieldGet(_selectionBorders, this).get(selection);
120
+ if (borders.has(_classPrivateFieldGet(_activeOverlaysWot, this))) {
121
+ return borders.get(_classPrivateFieldGet(_activeOverlaysWot, this));
143
122
  }
144
- const border = new Border(_classPrivateFieldGet(this, _activeOverlaysWot), selection.settings);
145
- borders.set(_classPrivateFieldGet(this, _activeOverlaysWot), border);
123
+ const border = new Border(_classPrivateFieldGet(_activeOverlaysWot, this), selection.settings);
124
+ borders.set(_classPrivateFieldGet(_activeOverlaysWot, this), border);
146
125
  return border;
147
126
  }
148
- const border = new Border(_classPrivateFieldGet(this, _activeOverlaysWot), selection.settings);
149
- _classPrivateFieldGet(this, _selectionBorders).set(selection, new Map([[_classPrivateFieldGet(this, _activeOverlaysWot), border]]));
127
+ const border = new Border(_classPrivateFieldGet(_activeOverlaysWot, this), selection.settings);
128
+ _classPrivateFieldGet(_selectionBorders, this).set(selection, new Map([[_classPrivateFieldGet(_activeOverlaysWot, this), border]]));
150
129
  return border;
151
130
  }
152
131
 
@@ -158,7 +137,7 @@ export class SelectionManager {
158
137
  */
159
138
  getBorderInstances(selection) {
160
139
  var _classPrivateFieldGet2, _classPrivateFieldGet3;
161
- return Array.from((_classPrivateFieldGet2 = (_classPrivateFieldGet3 = _classPrivateFieldGet(this, _selectionBorders).get(selection)) === null || _classPrivateFieldGet3 === void 0 ? void 0 : _classPrivateFieldGet3.values()) !== null && _classPrivateFieldGet2 !== void 0 ? _classPrivateFieldGet2 : []);
140
+ return Array.from((_classPrivateFieldGet2 = (_classPrivateFieldGet3 = _classPrivateFieldGet(_selectionBorders, this).get(selection)) === null || _classPrivateFieldGet3 === void 0 ? void 0 : _classPrivateFieldGet3.values()) !== null && _classPrivateFieldGet2 !== void 0 ? _classPrivateFieldGet2 : []);
162
141
  }
163
142
 
164
143
  /**
@@ -167,8 +146,8 @@ export class SelectionManager {
167
146
  * @param {Selection} selection The selection instance.
168
147
  */
169
148
  destroyBorders(selection) {
170
- _classPrivateFieldGet(this, _selectionBorders).get(selection).forEach(border => border.destroy());
171
- _classPrivateFieldGet(this, _selectionBorders).delete(selection);
149
+ _classPrivateFieldGet(_selectionBorders, this).get(selection).forEach(border => border.destroy());
150
+ _classPrivateFieldGet(_selectionBorders, this).delete(selection);
172
151
  }
173
152
 
174
153
  /**
@@ -177,14 +156,14 @@ export class SelectionManager {
177
156
  * @param {boolean} fastDraw Indicates the render cycle type (fast/slow).
178
157
  */
179
158
  render(fastDraw) {
180
- if (_classPrivateFieldGet(this, _selections) === null) {
159
+ if (_classPrivateFieldGet(_selections, this) === null) {
181
160
  return;
182
161
  }
183
162
  if (fastDraw) {
184
163
  // there was no rerender, so we need to remove classNames by ourselves
185
- _classPrivateMethodGet(this, _resetCells, _resetCells2).call(this);
164
+ _assertClassBrand(_SelectionManager_brand, this, _resetCells).call(this);
186
165
  }
187
- const selections = Array.from(_classPrivateFieldGet(this, _selections));
166
+ const selections = Array.from(_classPrivateFieldGet(_selections, this));
188
167
  const classNamesMap = new Map();
189
168
  const headerAttributesMap = new Map();
190
169
  for (let i = 0; i < selections.length; i++) {
@@ -195,8 +174,8 @@ export class SelectionManager {
195
174
  createLayers,
196
175
  selectionType
197
176
  } = selection.settings;
198
- if (!_classPrivateFieldGet(this, _destroyListeners).has(selection)) {
199
- _classPrivateFieldGet(this, _destroyListeners).add(selection);
177
+ if (!_classPrivateFieldGet(_destroyListeners, this).has(selection)) {
178
+ _classPrivateFieldGet(_destroyListeners, this).add(selection);
200
179
  selection.addLocalHook('destroy', () => this.destroyBorders(selection));
201
180
  }
202
181
  const borderInstance = this.getBorderInstance(selection);
@@ -205,7 +184,7 @@ export class SelectionManager {
205
184
  continue; // eslint-disable-line no-continue
206
185
  }
207
186
  if (className) {
208
- const elements = _classPrivateFieldGet(this, _scanner).setActiveSelection(selection).scan();
187
+ const elements = _classPrivateFieldGet(_scanner, this).setActiveSelection(selection).scan();
209
188
  elements.forEach(element => {
210
189
  if (classNamesMap.has(element)) {
211
190
  const classNamesLayers = classNamesMap.get(element);
@@ -228,7 +207,7 @@ export class SelectionManager {
228
207
  });
229
208
  }
230
209
  const corners = selection.getCorners();
231
- _classPrivateFieldGet(this, _activeOverlaysWot).getSetting('onBeforeDrawBorders', corners, selectionType);
210
+ _classPrivateFieldGet(_activeOverlaysWot, this).getSetting('onBeforeDrawBorders', corners, selectionType);
232
211
  borderInstance === null || borderInstance === void 0 || borderInstance.appear(corners);
233
212
  }
234
213
  classNamesMap.forEach((classNamesLayers, element) => {
@@ -242,10 +221,10 @@ export class SelectionManager {
242
221
  length: occurrenceCount - 1
243
222
  }, (_, i) => `${className}-${i + 1}`)];
244
223
  }).flat();
245
- classNames.forEach(className => _classPrivateFieldGet(this, _appliedClasses).get(_classPrivateFieldGet(this, _activeOverlaysWot)).add(className));
224
+ classNames.forEach(className => _classPrivateFieldGet(_appliedClasses, this).get(_classPrivateFieldGet(_activeOverlaysWot, this)).add(className));
246
225
  addClass(element, classNames);
247
- if (element.nodeName === 'TD' && Array.isArray((_classPrivateFieldGet4 = _classPrivateFieldGet(this, _selections).options) === null || _classPrivateFieldGet4 === void 0 ? void 0 : _classPrivateFieldGet4.cellAttributes)) {
248
- setAttribute(element, _classPrivateFieldGet(this, _selections).options.cellAttributes);
226
+ if (element.nodeName === 'TD' && Array.isArray((_classPrivateFieldGet4 = _classPrivateFieldGet(_selections, this).options) === null || _classPrivateFieldGet4 === void 0 ? void 0 : _classPrivateFieldGet4.cellAttributes)) {
227
+ setAttribute(element, _classPrivateFieldGet(_selections, this).options.cellAttributes);
249
228
  }
250
229
  });
251
230
 
@@ -255,9 +234,9 @@ export class SelectionManager {
255
234
  });
256
235
  }
257
236
  }
258
- function _resetCells2() {
259
- const appliedOverlaysClasses = _classPrivateFieldGet(this, _appliedClasses).get(_classPrivateFieldGet(this, _activeOverlaysWot));
260
- const classesToRemove = _classPrivateFieldGet(this, _activeOverlaysWot).wtSettings.getSetting('onBeforeRemoveCellClassNames');
237
+ function _resetCells() {
238
+ const appliedOverlaysClasses = _classPrivateFieldGet(_appliedClasses, this).get(_classPrivateFieldGet(_activeOverlaysWot, this));
239
+ const classesToRemove = _classPrivateFieldGet(_activeOverlaysWot, this).wtSettings.getSetting('onBeforeRemoveCellClassNames');
261
240
  if (Array.isArray(classesToRemove)) {
262
241
  for (let i = 0; i < classesToRemove.length; i++) {
263
242
  appliedOverlaysClasses.add(classesToRemove[i]);
@@ -265,13 +244,13 @@ function _resetCells2() {
265
244
  }
266
245
  appliedOverlaysClasses.forEach(className => {
267
246
  var _classPrivateFieldGet5, _classPrivateFieldGet6;
268
- const nodes = _classPrivateFieldGet(this, _activeOverlaysWot).wtTable.TABLE.querySelectorAll(`.${className}`);
247
+ const nodes = _classPrivateFieldGet(_activeOverlaysWot, this).wtTable.TABLE.querySelectorAll(`.${className}`);
269
248
  let cellAttributes = [];
270
- if (Array.isArray((_classPrivateFieldGet5 = _classPrivateFieldGet(this, _selections).options) === null || _classPrivateFieldGet5 === void 0 ? void 0 : _classPrivateFieldGet5.cellAttributes)) {
271
- cellAttributes = _classPrivateFieldGet(this, _selections).options.cellAttributes.map(el => el[0]);
249
+ if (Array.isArray((_classPrivateFieldGet5 = _classPrivateFieldGet(_selections, this).options) === null || _classPrivateFieldGet5 === void 0 ? void 0 : _classPrivateFieldGet5.cellAttributes)) {
250
+ cellAttributes = _classPrivateFieldGet(_selections, this).options.cellAttributes.map(el => el[0]);
272
251
  }
273
- if (Array.isArray((_classPrivateFieldGet6 = _classPrivateFieldGet(this, _selections).options) === null || _classPrivateFieldGet6 === void 0 ? void 0 : _classPrivateFieldGet6.headerAttributes)) {
274
- cellAttributes = [...cellAttributes, ..._classPrivateFieldGet(this, _selections).options.headerAttributes.map(el => el[0])];
252
+ if (Array.isArray((_classPrivateFieldGet6 = _classPrivateFieldGet(_selections, this).options) === null || _classPrivateFieldGet6 === void 0 ? void 0 : _classPrivateFieldGet6.headerAttributes)) {
253
+ cellAttributes = [...cellAttributes, ..._classPrivateFieldGet(_selections, this).options.headerAttributes.map(el => el[0])];
275
254
  }
276
255
  for (let i = 0, len = nodes.length; i < len; i++) {
277
256
  removeClass(nodes[i], className);
@@ -6,12 +6,9 @@ var _element = require("../../../../helpers/dom/element");
6
6
  function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
7
7
  function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
8
8
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
9
- function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
10
- function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
11
- function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
12
- function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
13
- function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
14
- 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; } } /* eslint-disable no-continue */
9
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
10
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
11
+ 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"); } /* eslint-disable no-continue */
15
12
  /**
16
13
  * Selection scanner module scans the rendered cells and headers and if it finds an intersection with
17
14
  * the coordinates of the Selection class (highlight) it returns the DOM elements.
@@ -20,7 +17,7 @@ function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.
20
17
  */
21
18
  var _selection = /*#__PURE__*/new WeakMap();
22
19
  var _activeOverlaysWot = /*#__PURE__*/new WeakMap();
23
- var _scanCellsRange = /*#__PURE__*/new WeakSet();
20
+ var _SelectionScanner_brand = /*#__PURE__*/new WeakSet();
24
21
  class SelectionScanner {
25
22
  constructor() {
26
23
  /**
@@ -28,25 +25,19 @@ class SelectionScanner {
28
25
  *
29
26
  * @param {function(number, number): void} callback The callback function to trigger.
30
27
  */
31
- _classPrivateMethodInitSpec(this, _scanCellsRange);
28
+ _classPrivateMethodInitSpec(this, _SelectionScanner_brand);
32
29
  /**
33
30
  * Active Selection instance to process.
34
31
  *
35
32
  * @type {Selection}
36
33
  */
37
- _classPrivateFieldInitSpec(this, _selection, {
38
- writable: true,
39
- value: void 0
40
- });
34
+ _classPrivateFieldInitSpec(this, _selection, void 0);
41
35
  /**
42
36
  * The Walkontable instance that the scans depends on.
43
37
  *
44
38
  * @type {Walkontable}
45
39
  */
46
- _classPrivateFieldInitSpec(this, _activeOverlaysWot, {
47
- writable: true,
48
- value: void 0
49
- });
40
+ _classPrivateFieldInitSpec(this, _activeOverlaysWot, void 0);
50
41
  }
51
42
  /**
52
43
  * Sets the Walkontable instance that will be taking into account while scanning the table.
@@ -55,7 +46,7 @@ class SelectionScanner {
55
46
  * @returns {SelectionScanner}
56
47
  */
57
48
  setActiveOverlay(activeOverlaysWot) {
58
- _classPrivateFieldSet(this, _activeOverlaysWot, activeOverlaysWot);
49
+ _classPrivateFieldSet(_activeOverlaysWot, this, activeOverlaysWot);
59
50
  return this;
60
51
  }
61
52
 
@@ -66,7 +57,7 @@ class SelectionScanner {
66
57
  * @returns {SelectionScanner}
67
58
  */
68
59
  setActiveSelection(selection) {
69
- _classPrivateFieldSet(this, _selection, selection);
60
+ _classPrivateFieldSet(_selection, this, selection);
70
61
  return this;
71
62
  }
72
63
 
@@ -77,7 +68,7 @@ class SelectionScanner {
77
68
  * @returns {HTMLTableElement[]}
78
69
  */
79
70
  scan() {
80
- const selectionType = _classPrivateFieldGet(this, _selection).settings.selectionType;
71
+ const selectionType = _classPrivateFieldGet(_selection, this).settings.selectionType;
81
72
  const elements = new Set();
82
73
 
83
74
  // TODO(improvement): use heuristics from coords to detect what type of scan
@@ -113,10 +104,10 @@ class SelectionScanner {
113
104
  * @param {function(HTMLTableElement): void} callback The callback function to trigger.
114
105
  */
115
106
  scanColumnsInHeadersRange(callback) {
116
- const [topRow, topColumn, bottomRow, bottomColumn] = _classPrivateFieldGet(this, _selection).getCorners();
107
+ const [topRow, topColumn, bottomRow, bottomColumn] = _classPrivateFieldGet(_selection, this).getCorners();
117
108
  const {
118
109
  wtTable
119
- } = _classPrivateFieldGet(this, _activeOverlaysWot);
110
+ } = _classPrivateFieldGet(_activeOverlaysWot, this);
120
111
  const renderedColumnsCount = wtTable.getRenderedColumnsCount();
121
112
  const columnHeadersCount = wtTable.getColumnHeadersCount();
122
113
  let cursor = 0;
@@ -131,8 +122,8 @@ class SelectionScanner {
131
122
  }
132
123
  const positiveBasedHeaderLevel = headerLevel + columnHeadersCount;
133
124
  let TH = wtTable.getColumnHeader(sourceColumn, positiveBasedHeaderLevel);
134
- const newSourceCol = _classPrivateFieldGet(this, _activeOverlaysWot).getSetting('onBeforeHighlightingColumnHeader', sourceColumn, positiveBasedHeaderLevel, {
135
- selectionType: _classPrivateFieldGet(this, _selection).settings.selectionType,
125
+ const newSourceCol = _classPrivateFieldGet(_activeOverlaysWot, this).getSetting('onBeforeHighlightingColumnHeader', sourceColumn, positiveBasedHeaderLevel, {
126
+ selectionType: _classPrivateFieldGet(_selection, this).settings.selectionType,
136
127
  columnCursor: cursor,
137
128
  selectionWidth: bottomColumn - topColumn + 1
138
129
  });
@@ -155,10 +146,10 @@ class SelectionScanner {
155
146
  * @param {function(HTMLTableElement): void} callback The callback function to trigger.
156
147
  */
157
148
  scanRowsInHeadersRange(callback) {
158
- const [topRow, topColumn, bottomRow, bottomColumn] = _classPrivateFieldGet(this, _selection).getCorners();
149
+ const [topRow, topColumn, bottomRow, bottomColumn] = _classPrivateFieldGet(_selection, this).getCorners();
159
150
  const {
160
151
  wtTable
161
- } = _classPrivateFieldGet(this, _activeOverlaysWot);
152
+ } = _classPrivateFieldGet(_activeOverlaysWot, this);
162
153
  const renderedRowsCount = wtTable.getRenderedRowsCount();
163
154
  const rowHeadersCount = wtTable.getRowHeadersCount();
164
155
  let cursor = 0;
@@ -173,8 +164,8 @@ class SelectionScanner {
173
164
  }
174
165
  const positiveBasedHeaderLevel = headerLevel + rowHeadersCount;
175
166
  let TH = wtTable.getRowHeader(sourceRow, positiveBasedHeaderLevel);
176
- const newSourceRow = _classPrivateFieldGet(this, _activeOverlaysWot).getSetting('onBeforeHighlightingRowHeader', sourceRow, positiveBasedHeaderLevel, {
177
- selectionType: _classPrivateFieldGet(this, _selection).settings.selectionType,
167
+ const newSourceRow = _classPrivateFieldGet(_activeOverlaysWot, this).getSetting('onBeforeHighlightingRowHeader', sourceRow, positiveBasedHeaderLevel, {
168
+ selectionType: _classPrivateFieldGet(_selection, this).settings.selectionType,
178
169
  rowCursor: cursor,
179
170
  selectionHeight: bottomRow - topRow + 1
180
171
  });
@@ -197,16 +188,16 @@ class SelectionScanner {
197
188
  * @param {function(HTMLTableElement): void} callback The callback function to trigger.
198
189
  */
199
190
  scanCellsRange(callback) {
200
- const [topRow, topColumn, bottomRow, bottomColumn] = _classPrivateFieldGet(this, _selection).getCorners();
191
+ const [topRow, topColumn, bottomRow, bottomColumn] = _classPrivateFieldGet(_selection, this).getCorners();
201
192
  const {
202
193
  wtTable
203
- } = _classPrivateFieldGet(this, _activeOverlaysWot);
204
- _classPrivateMethodGet(this, _scanCellsRange, _scanCellsRange2).call(this, (sourceRow, sourceColumn) => {
194
+ } = _classPrivateFieldGet(_activeOverlaysWot, this);
195
+ _assertClassBrand(_SelectionScanner_brand, this, _scanCellsRange).call(this, (sourceRow, sourceColumn) => {
205
196
  if (sourceRow >= topRow && sourceRow <= bottomRow && sourceColumn >= topColumn && sourceColumn <= bottomColumn) {
206
- const cell = wtTable.getCell(_classPrivateFieldGet(this, _activeOverlaysWot).createCellCoords(sourceRow, sourceColumn));
197
+ const cell = wtTable.getCell(_classPrivateFieldGet(_activeOverlaysWot, this).createCellCoords(sourceRow, sourceColumn));
207
198
 
208
199
  // support for old API
209
- const additionalSelectionClass = _classPrivateFieldGet(this, _activeOverlaysWot).getSetting('onAfterDrawSelection', sourceRow, sourceColumn, _classPrivateFieldGet(this, _selection).settings.layerLevel);
200
+ const additionalSelectionClass = _classPrivateFieldGet(_activeOverlaysWot, this).getSetting('onAfterDrawSelection', sourceRow, sourceColumn, _classPrivateFieldGet(_selection, this).settings.layerLevel);
210
201
  if (typeof additionalSelectionClass === 'string') {
211
202
  (0, _element.addClass)(cell, additionalSelectionClass);
212
203
  }
@@ -223,13 +214,13 @@ class SelectionScanner {
223
214
  */
224
215
  scanRowsInCellsRange(callback) {
225
216
  // eslint-disable-next-line comma-spacing
226
- const [topRow,, bottomRow] = _classPrivateFieldGet(this, _selection).getCorners();
217
+ const [topRow,, bottomRow] = _classPrivateFieldGet(_selection, this).getCorners();
227
218
  const {
228
219
  wtTable
229
- } = _classPrivateFieldGet(this, _activeOverlaysWot);
230
- _classPrivateMethodGet(this, _scanCellsRange, _scanCellsRange2).call(this, (sourceRow, sourceColumn) => {
220
+ } = _classPrivateFieldGet(_activeOverlaysWot, this);
221
+ _assertClassBrand(_SelectionScanner_brand, this, _scanCellsRange).call(this, (sourceRow, sourceColumn) => {
231
222
  if (sourceRow >= topRow && sourceRow <= bottomRow) {
232
- const cell = wtTable.getCell(_classPrivateFieldGet(this, _activeOverlaysWot).createCellCoords(sourceRow, sourceColumn));
223
+ const cell = wtTable.getCell(_classPrivateFieldGet(_activeOverlaysWot, this).createCellCoords(sourceRow, sourceColumn));
233
224
  callback(cell);
234
225
  }
235
226
  });
@@ -242,23 +233,23 @@ class SelectionScanner {
242
233
  * @param {function(HTMLTableElement): void} callback The callback function to trigger.
243
234
  */
244
235
  scanColumnsInCellsRange(callback) {
245
- const [, topColumn,, bottomColumn] = _classPrivateFieldGet(this, _selection).getCorners();
236
+ const [, topColumn,, bottomColumn] = _classPrivateFieldGet(_selection, this).getCorners();
246
237
  const {
247
238
  wtTable
248
- } = _classPrivateFieldGet(this, _activeOverlaysWot);
249
- _classPrivateMethodGet(this, _scanCellsRange, _scanCellsRange2).call(this, (sourceRow, sourceColumn) => {
239
+ } = _classPrivateFieldGet(_activeOverlaysWot, this);
240
+ _assertClassBrand(_SelectionScanner_brand, this, _scanCellsRange).call(this, (sourceRow, sourceColumn) => {
250
241
  if (sourceColumn >= topColumn && sourceColumn <= bottomColumn) {
251
- const cell = wtTable.getCell(_classPrivateFieldGet(this, _activeOverlaysWot).createCellCoords(sourceRow, sourceColumn));
242
+ const cell = wtTable.getCell(_classPrivateFieldGet(_activeOverlaysWot, this).createCellCoords(sourceRow, sourceColumn));
252
243
  callback(cell);
253
244
  }
254
245
  });
255
246
  }
256
247
  }
257
248
  exports.SelectionScanner = SelectionScanner;
258
- function _scanCellsRange2(callback) {
249
+ function _scanCellsRange(callback) {
259
250
  const {
260
251
  wtTable
261
- } = _classPrivateFieldGet(this, _activeOverlaysWot);
252
+ } = _classPrivateFieldGet(_activeOverlaysWot, this);
262
253
  const renderedRowsCount = wtTable.getRenderedRowsCount();
263
254
  const renderedColumnsCount = wtTable.getRenderedColumnsCount();
264
255
  for (let row = 0; row < renderedRowsCount; row += 1) {