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.
- package/3rdparty/walkontable/src/calculator/viewportColumns.js +12 -17
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +12 -17
- package/3rdparty/walkontable/src/calculator/viewportRows.js +10 -15
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +10 -15
- package/3rdparty/walkontable/src/cell/coords.js +12 -17
- package/3rdparty/walkontable/src/cell/coords.mjs +12 -17
- package/3rdparty/walkontable/src/cell/range.d.ts +2 -1
- package/3rdparty/walkontable/src/cell/range.js +40 -28
- package/3rdparty/walkontable/src/cell/range.mjs +40 -28
- package/3rdparty/walkontable/src/core/_base.js +1 -1
- package/3rdparty/walkontable/src/core/_base.mjs +1 -1
- package/3rdparty/walkontable/src/event.js +72 -104
- package/3rdparty/walkontable/src/event.mjs +72 -104
- package/3rdparty/walkontable/src/overlay/inlineStart.js +15 -1
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +16 -2
- package/3rdparty/walkontable/src/overlay/top.js +11 -0
- package/3rdparty/walkontable/src/overlay/top.mjs +12 -1
- package/3rdparty/walkontable/src/overlays.js +46 -4
- package/3rdparty/walkontable/src/overlays.mjs +46 -4
- package/3rdparty/walkontable/src/scroll.js +15 -17
- package/3rdparty/walkontable/src/scroll.mjs +15 -17
- package/3rdparty/walkontable/src/selection/manager.js +48 -69
- package/3rdparty/walkontable/src/selection/manager.mjs +48 -69
- package/3rdparty/walkontable/src/selection/scanner.js +33 -42
- package/3rdparty/walkontable/src/selection/scanner.mjs +33 -42
- package/3rdparty/walkontable/src/utils/columnStretching.js +27 -44
- package/3rdparty/walkontable/src/utils/columnStretching.mjs +27 -44
- package/3rdparty/walkontable/src/utils/orderView/view.js +1 -1
- package/3rdparty/walkontable/src/utils/orderView/view.mjs +1 -1
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core/viewportScroll/index.js +4 -1
- package/core/viewportScroll/index.mjs +4 -1
- package/core/viewportScroll/scrollStrategies/focusScroll.js +15 -0
- package/core/viewportScroll/scrollStrategies/focusScroll.mjs +11 -0
- package/core.d.ts +4 -3
- package/core.js +77 -22
- package/core.mjs +77 -22
- package/dataMap/dataSource.js +1 -1
- package/dataMap/dataSource.mjs +1 -1
- package/dataMap/metaManager/metaLayers/cellMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -1
- package/dataMap/metaManager/metaSchema.js +1 -1
- package/dataMap/metaManager/metaSchema.mjs +1 -1
- package/dataMap/replaceData.js +1 -1
- package/dataMap/replaceData.mjs +1 -1
- package/dist/handsontable.css +4 -4
- package/dist/handsontable.full.css +4 -4
- package/dist/handsontable.full.js +9063 -9122
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +292 -292
- package/dist/handsontable.js +6968 -6574
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +25 -25
- package/dist/languages/all.min.js +1 -1
- package/dist/languages/ar-AR.min.js +1 -1
- package/dist/languages/cs-CZ.min.js +1 -1
- package/dist/languages/de-CH.min.js +1 -1
- package/dist/languages/de-DE.min.js +1 -1
- package/dist/languages/en-US.min.js +1 -1
- package/dist/languages/es-MX.min.js +1 -1
- package/dist/languages/fr-FR.min.js +1 -1
- package/dist/languages/hr-HR.min.js +1 -1
- package/dist/languages/it-IT.min.js +1 -1
- package/dist/languages/ja-JP.min.js +1 -1
- package/dist/languages/ko-KR.min.js +1 -1
- package/dist/languages/lv-LV.min.js +1 -1
- package/dist/languages/nb-NO.min.js +1 -1
- package/dist/languages/nl-NL.min.js +1 -1
- package/dist/languages/pl-PL.min.js +1 -1
- package/dist/languages/pt-BR.min.js +1 -1
- package/dist/languages/ru-RU.min.js +1 -1
- package/dist/languages/sr-SP.min.js +1 -1
- package/dist/languages/zh-CN.min.js +1 -1
- package/dist/languages/zh-TW.min.js +1 -1
- package/editorManager.js +25 -23
- package/editorManager.mjs +25 -23
- package/editors/autocompleteEditor/autocompleteEditor.js +6 -10
- package/editors/autocompleteEditor/autocompleteEditor.mjs +6 -10
- package/editors/selectEditor/selectEditor.js +20 -19
- package/editors/selectEditor/selectEditor.mjs +20 -19
- package/eventManager.js +1 -1
- package/eventManager.mjs +1 -1
- package/focusManager.js +64 -82
- package/focusManager.mjs +64 -82
- package/helpers/dom/element.js +23 -1
- package/helpers/dom/element.mjs +21 -1
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/helpers/object.js +2 -2
- package/helpers/object.mjs +2 -2
- package/i18n/languages/ar-AR.d.ts +5 -0
- package/i18n/languages/cs-CZ.d.ts +5 -0
- package/i18n/languages/hr-HR.d.ts +5 -0
- package/i18n/languages/sr-SP.d.ts +5 -0
- package/index.d.ts +10 -0
- package/package.json +7 -2
- package/pluginHooks.d.ts +4 -3
- package/pluginHooks.js +99 -38
- package/pluginHooks.mjs +99 -38
- package/plugins/autoColumnSize/autoColumnSize.js +49 -65
- package/plugins/autoColumnSize/autoColumnSize.mjs +49 -65
- package/plugins/autoRowSize/autoRowSize.js +28 -34
- package/plugins/autoRowSize/autoRowSize.mjs +28 -34
- package/plugins/autofill/autofill.js +30 -38
- package/plugins/autofill/autofill.mjs +30 -38
- package/plugins/base/base.js +12 -17
- package/plugins/base/base.mjs +12 -17
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +5 -5
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +5 -5
- package/plugins/collapsibleColumns/collapsibleColumns.js +59 -50
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +59 -50
- package/plugins/columnSorting/columnSorting.js +49 -45
- package/plugins/columnSorting/columnSorting.mjs +49 -45
- package/plugins/columnSummary/columnSummary.js +22 -26
- package/plugins/columnSummary/columnSummary.mjs +22 -26
- package/plugins/comments/comments.js +116 -158
- package/plugins/comments/comments.mjs +116 -158
- package/plugins/contextMenu/contextMenu.js +20 -26
- package/plugins/contextMenu/contextMenu.mjs +20 -26
- package/plugins/contextMenu/itemsFactory.js +1 -1
- package/plugins/contextMenu/itemsFactory.mjs +1 -1
- package/plugins/contextMenu/menu/defaultShortcutsList.js +26 -10
- package/plugins/contextMenu/menu/defaultShortcutsList.mjs +26 -10
- package/plugins/contextMenu/menu/menu.js +13 -21
- package/plugins/contextMenu/menu/menu.mjs +13 -21
- package/plugins/contextMenu/menu/positioner.js +41 -58
- package/plugins/contextMenu/menu/positioner.mjs +41 -58
- package/plugins/copyPaste/copyPaste.js +116 -157
- package/plugins/copyPaste/copyPaste.mjs +116 -157
- package/plugins/copyPaste/copyableRanges.js +43 -66
- package/plugins/copyPaste/copyableRanges.mjs +43 -66
- package/plugins/customBorders/customBorders.js +11 -13
- package/plugins/customBorders/customBorders.mjs +11 -13
- package/plugins/dragToScroll/dragToScroll.js +6 -6
- package/plugins/dragToScroll/dragToScroll.mjs +6 -6
- package/plugins/dropdownMenu/dropdownMenu.js +81 -107
- package/plugins/dropdownMenu/dropdownMenu.mjs +81 -107
- package/plugins/exportFile/dataProvider.js +1 -1
- package/plugins/exportFile/dataProvider.mjs +1 -1
- package/plugins/filters/component/actionBar.js +9 -9
- package/plugins/filters/component/actionBar.mjs +8 -8
- package/plugins/filters/component/condition.js +13 -15
- package/plugins/filters/component/condition.mjs +13 -15
- package/plugins/filters/component/operators.js +6 -6
- package/plugins/filters/component/operators.mjs +6 -6
- package/plugins/filters/component/value.js +24 -28
- package/plugins/filters/component/value.mjs +24 -28
- package/plugins/filters/conditionUpdateObserver.js +22 -24
- package/plugins/filters/conditionUpdateObserver.mjs +22 -24
- package/plugins/filters/dataFilter.js +1 -1
- package/plugins/filters/dataFilter.mjs +1 -1
- package/plugins/filters/filters.js +81 -95
- package/plugins/filters/filters.mjs +81 -95
- package/plugins/filters/ui/input.js +13 -19
- package/plugins/filters/ui/input.mjs +13 -19
- package/plugins/filters/ui/link.js +8 -13
- package/plugins/filters/ui/link.mjs +8 -13
- package/plugins/filters/ui/multipleSelect.js +85 -112
- package/plugins/filters/ui/multipleSelect.mjs +85 -112
- package/plugins/filters/ui/radioInput.js +12 -20
- package/plugins/filters/ui/radioInput.mjs +12 -20
- package/plugins/filters/ui/select.js +50 -72
- package/plugins/filters/ui/select.mjs +49 -71
- package/plugins/formulas/formulas.js +268 -326
- package/plugins/formulas/formulas.mjs +269 -327
- package/plugins/formulas/indexSyncer/axisSyncer.js +38 -61
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +38 -61
- package/plugins/formulas/indexSyncer/index.js +25 -48
- package/plugins/formulas/indexSyncer/index.mjs +25 -48
- package/plugins/hiddenColumns/hiddenColumns.js +64 -83
- package/plugins/hiddenColumns/hiddenColumns.mjs +64 -83
- package/plugins/hiddenRows/hiddenRows.js +63 -82
- package/plugins/hiddenRows/hiddenRows.mjs +63 -82
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +24 -32
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +25 -33
- package/plugins/manualColumnMove/manualColumnMove.js +126 -170
- package/plugins/manualColumnMove/manualColumnMove.mjs +126 -170
- package/plugins/manualColumnResize/manualColumnResize.js +169 -230
- package/plugins/manualColumnResize/manualColumnResize.mjs +169 -230
- package/plugins/manualRowMove/manualRowMove.js +99 -128
- package/plugins/manualRowMove/manualRowMove.mjs +99 -128
- package/plugins/manualRowResize/manualRowResize.js +150 -209
- package/plugins/manualRowResize/manualRowResize.mjs +150 -209
- package/plugins/mergeCells/calculations/selection.js +2 -71
- package/plugins/mergeCells/calculations/selection.mjs +2 -71
- package/plugins/mergeCells/cellsCollection.js +117 -1
- package/plugins/mergeCells/cellsCollection.mjs +117 -1
- package/plugins/mergeCells/contextMenuItem/toggleMerge.js +11 -1
- package/plugins/mergeCells/contextMenuItem/toggleMerge.mjs +11 -1
- package/plugins/mergeCells/focusOrder.js +305 -0
- package/plugins/mergeCells/focusOrder.mjs +300 -0
- package/plugins/mergeCells/mergeCells.js +499 -397
- package/plugins/mergeCells/mergeCells.mjs +499 -397
- package/plugins/multiColumnSorting/multiColumnSorting.js +8 -2
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +8 -2
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +1 -1
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +1 -1
- package/plugins/nestedHeaders/nestedHeaders.js +205 -253
- package/plugins/nestedHeaders/nestedHeaders.mjs +206 -254
- package/plugins/nestedHeaders/stateManager/headersTree.js +21 -32
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +21 -32
- package/plugins/nestedHeaders/stateManager/index.js +30 -41
- package/plugins/nestedHeaders/stateManager/index.mjs +30 -41
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +19 -30
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +19 -30
- package/plugins/nestedRows/data/dataManager.js +1 -1
- package/plugins/nestedRows/data/dataManager.mjs +1 -1
- package/plugins/nestedRows/nestedRows.js +151 -182
- package/plugins/nestedRows/nestedRows.mjs +152 -183
- package/plugins/nestedRows/ui/contextMenu.js +11 -15
- package/plugins/nestedRows/ui/contextMenu.mjs +10 -14
- package/plugins/nestedRows/utils/rowMoveController.js +1 -1
- package/plugins/nestedRows/utils/rowMoveController.mjs +1 -1
- package/plugins/persistentState/storage.js +2 -2
- package/plugins/persistentState/storage.mjs +2 -2
- package/plugins/search/search.js +7 -7
- package/plugins/search/search.mjs +7 -7
- package/plugins/touchScroll/touchScroll.js +15 -19
- package/plugins/touchScroll/touchScroll.mjs +16 -20
- package/plugins/trimRows/trimRows.js +6 -6
- package/plugins/trimRows/trimRows.mjs +6 -6
- package/renderers/checkboxRenderer/checkboxRenderer.js +8 -5
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +8 -5
- package/selection/highlight/highlight.js +14 -14
- package/selection/highlight/highlight.mjs +13 -13
- package/selection/highlight/visualSelection.js +2 -0
- package/selection/highlight/visualSelection.mjs +2 -0
- package/selection/selection.js +225 -67
- package/selection/selection.mjs +224 -66
- package/selection/transformation.js +149 -118
- package/selection/transformation.mjs +149 -118
- package/shortcutContexts/commands/editor/closeAndSave.js +2 -2
- package/shortcutContexts/commands/editor/closeAndSave.mjs +2 -2
- package/shortcutContexts/commands/editor/open.js +18 -3
- package/shortcutContexts/commands/editor/open.mjs +18 -3
- package/shortcutContexts/commands/extendCellsSelection/down.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/down.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/left.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/left.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/right.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/right.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toColumns.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +9 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +9 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +10 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +10 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toRows.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/up.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/up.mjs +1 -1
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +6 -1
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +6 -1
- package/shortcutContexts/commands/moveCellSelection/inlineStart.js +6 -1
- package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +6 -1
- package/shortcutContexts/grid.js +9 -3
- package/shortcutContexts/grid.mjs +9 -3
- package/shortcuts/context.js +2 -1
- package/shortcuts/context.mjs +2 -1
- package/tableView.js +52 -78
- package/tableView.mjs +52 -78
- package/translations/changesObservable/observable.js +21 -38
- package/translations/changesObservable/observable.mjs +21 -38
- package/translations/changesObservable/observer.js +7 -12
- package/translations/changesObservable/observer.mjs +6 -11
- package/translations/mapCollections/aggregatedCollection.js +1 -1
- package/translations/mapCollections/aggregatedCollection.mjs +1 -1
- package/translations/maps/indexMap.js +1 -1
- package/translations/maps/indexMap.mjs +1 -1
- package/utils/dataStructures/linkedList.js +6 -1
- package/utils/dataStructures/linkedList.mjs +6 -1
- package/utils/dataStructures/tree.js +1 -1
- package/utils/dataStructures/tree.mjs +1 -1
- package/utils/interval.js +26 -44
- 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
|
8
|
-
function
|
9
|
-
function
|
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
|
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,
|
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
|
-
|
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(
|
104
|
-
_classPrivateFieldGet(
|
105
|
-
if (!_classPrivateFieldGet(
|
106
|
-
_classPrivateFieldGet(
|
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(
|
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(
|
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(
|
140
|
-
const borders = _classPrivateFieldGet(
|
141
|
-
if (borders.has(_classPrivateFieldGet(
|
142
|
-
return borders.get(_classPrivateFieldGet(
|
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(
|
145
|
-
borders.set(_classPrivateFieldGet(
|
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(
|
149
|
-
_classPrivateFieldGet(
|
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(
|
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(
|
171
|
-
_classPrivateFieldGet(
|
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(
|
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
|
-
|
164
|
+
_assertClassBrand(_SelectionManager_brand, this, _resetCells).call(this);
|
186
165
|
}
|
187
|
-
const selections = Array.from(_classPrivateFieldGet(
|
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(
|
199
|
-
_classPrivateFieldGet(
|
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(
|
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(
|
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(
|
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(
|
248
|
-
setAttribute(element, _classPrivateFieldGet(
|
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
|
259
|
-
const appliedOverlaysClasses = _classPrivateFieldGet(
|
260
|
-
const classesToRemove = _classPrivateFieldGet(
|
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(
|
247
|
+
const nodes = _classPrivateFieldGet(_activeOverlaysWot, this).wtTable.TABLE.querySelectorAll(`.${className}`);
|
269
248
|
let cellAttributes = [];
|
270
|
-
if (Array.isArray((_classPrivateFieldGet5 = _classPrivateFieldGet(
|
271
|
-
cellAttributes = _classPrivateFieldGet(
|
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(
|
274
|
-
cellAttributes = [...cellAttributes, ..._classPrivateFieldGet(
|
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
|
10
|
-
function
|
11
|
-
function
|
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
|
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,
|
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(
|
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(
|
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(
|
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(
|
107
|
+
const [topRow, topColumn, bottomRow, bottomColumn] = _classPrivateFieldGet(_selection, this).getCorners();
|
117
108
|
const {
|
118
109
|
wtTable
|
119
|
-
} = _classPrivateFieldGet(
|
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(
|
135
|
-
selectionType: _classPrivateFieldGet(
|
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(
|
149
|
+
const [topRow, topColumn, bottomRow, bottomColumn] = _classPrivateFieldGet(_selection, this).getCorners();
|
159
150
|
const {
|
160
151
|
wtTable
|
161
|
-
} = _classPrivateFieldGet(
|
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(
|
177
|
-
selectionType: _classPrivateFieldGet(
|
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(
|
191
|
+
const [topRow, topColumn, bottomRow, bottomColumn] = _classPrivateFieldGet(_selection, this).getCorners();
|
201
192
|
const {
|
202
193
|
wtTable
|
203
|
-
} = _classPrivateFieldGet(
|
204
|
-
|
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(
|
197
|
+
const cell = wtTable.getCell(_classPrivateFieldGet(_activeOverlaysWot, this).createCellCoords(sourceRow, sourceColumn));
|
207
198
|
|
208
199
|
// support for old API
|
209
|
-
const additionalSelectionClass = _classPrivateFieldGet(
|
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(
|
217
|
+
const [topRow,, bottomRow] = _classPrivateFieldGet(_selection, this).getCorners();
|
227
218
|
const {
|
228
219
|
wtTable
|
229
|
-
} = _classPrivateFieldGet(
|
230
|
-
|
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(
|
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(
|
236
|
+
const [, topColumn,, bottomColumn] = _classPrivateFieldGet(_selection, this).getCorners();
|
246
237
|
const {
|
247
238
|
wtTable
|
248
|
-
} = _classPrivateFieldGet(
|
249
|
-
|
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(
|
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
|
249
|
+
function _scanCellsRange(callback) {
|
259
250
|
const {
|
260
251
|
wtTable
|
261
|
-
} = _classPrivateFieldGet(
|
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) {
|