handsontable 0.0.0-next-b66c79f-20230713 → 0.0.0-next-85c3085-20230713

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

Files changed (133) hide show
  1. package/3rdparty/walkontable/src/cell/coords.js +37 -22
  2. package/3rdparty/walkontable/src/cell/coords.mjs +37 -22
  3. package/3rdparty/walkontable/src/cell/range.js +54 -39
  4. package/3rdparty/walkontable/src/cell/range.mjs +54 -39
  5. package/3rdparty/walkontable/src/core/_base.js +33 -31
  6. package/3rdparty/walkontable/src/core/_base.mjs +33 -31
  7. package/3rdparty/walkontable/src/core/clone.js +6 -3
  8. package/3rdparty/walkontable/src/core/clone.mjs +6 -3
  9. package/3rdparty/walkontable/src/event.js +2 -1
  10. package/3rdparty/walkontable/src/event.mjs +2 -1
  11. package/3rdparty/walkontable/src/overlay/_base.js +10 -8
  12. package/3rdparty/walkontable/src/overlay/_base.mjs +10 -8
  13. package/3rdparty/walkontable/src/overlay/bottom.js +10 -8
  14. package/3rdparty/walkontable/src/overlay/bottom.mjs +10 -8
  15. package/3rdparty/walkontable/src/overlay/inlineStart.js +1 -1
  16. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +1 -1
  17. package/3rdparty/walkontable/src/overlay/top.js +11 -9
  18. package/3rdparty/walkontable/src/overlay/top.mjs +11 -9
  19. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +16 -13
  20. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +16 -13
  21. package/3rdparty/walkontable/src/overlays.js +75 -80
  22. package/3rdparty/walkontable/src/overlays.mjs +75 -80
  23. package/3rdparty/walkontable/src/scroll.js +27 -24
  24. package/3rdparty/walkontable/src/scroll.mjs +27 -24
  25. package/3rdparty/walkontable/src/settings.js +18 -17
  26. package/3rdparty/walkontable/src/settings.mjs +18 -17
  27. package/3rdparty/walkontable/src/table.js +42 -37
  28. package/3rdparty/walkontable/src/table.mjs +42 -37
  29. package/base.js +2 -2
  30. package/base.mjs +2 -2
  31. package/core.js +8 -8
  32. package/core.mjs +8 -8
  33. package/dataMap/metaManager/metaLayers/cellMeta.js +2 -1
  34. package/dataMap/metaManager/metaLayers/cellMeta.mjs +2 -1
  35. package/dataMap/metaManager/metaLayers/globalMeta.js +1 -1
  36. package/dataMap/metaManager/metaLayers/globalMeta.mjs +1 -1
  37. package/dataMap/metaManager/mods/dynamicCellMeta.js +3 -2
  38. package/dataMap/metaManager/mods/dynamicCellMeta.mjs +3 -2
  39. package/dataMap/metaManager/utils.js +4 -2
  40. package/dataMap/metaManager/utils.mjs +4 -2
  41. package/dist/handsontable.css +2 -2
  42. package/dist/handsontable.full.css +2 -2
  43. package/dist/handsontable.full.js +3247 -2847
  44. package/dist/handsontable.full.min.css +2 -2
  45. package/dist/handsontable.full.min.js +17 -17
  46. package/dist/handsontable.js +3249 -2849
  47. package/dist/handsontable.min.css +2 -2
  48. package/dist/handsontable.min.js +17 -17
  49. package/editors/autocompleteEditor/autocompleteEditor.js +70 -67
  50. package/editors/autocompleteEditor/autocompleteEditor.mjs +70 -67
  51. package/editors/baseEditor/baseEditor.js +1 -1
  52. package/editors/baseEditor/baseEditor.mjs +1 -1
  53. package/editors/dateEditor/dateEditor.js +2 -1
  54. package/editors/dateEditor/dateEditor.mjs +2 -1
  55. package/helpers/mixed.js +1 -1
  56. package/helpers/mixed.mjs +1 -1
  57. package/helpers/object.js +1 -0
  58. package/helpers/object.mjs +1 -0
  59. package/index.js +5 -5
  60. package/index.mjs +5 -5
  61. package/package.json +1 -1
  62. package/plugins/autoColumnSize/autoColumnSize.js +4 -1
  63. package/plugins/autoColumnSize/autoColumnSize.mjs +4 -1
  64. package/plugins/collapsibleColumns/collapsibleColumns.js +54 -38
  65. package/plugins/collapsibleColumns/collapsibleColumns.mjs +54 -38
  66. package/plugins/columnSorting/columnSorting.js +2 -1
  67. package/plugins/columnSorting/columnSorting.mjs +2 -1
  68. package/plugins/columnSorting/columnStatesManager.js +2 -1
  69. package/plugins/columnSorting/columnStatesManager.mjs +2 -1
  70. package/plugins/comments/comments.js +2 -2
  71. package/plugins/comments/comments.mjs +2 -2
  72. package/plugins/copyPaste/copyPaste.js +6 -4
  73. package/plugins/copyPaste/copyPaste.mjs +6 -4
  74. package/plugins/customBorders/customBorders.js +13 -9
  75. package/plugins/customBorders/customBorders.mjs +13 -9
  76. package/plugins/customBorders/utils.js +3 -3
  77. package/plugins/customBorders/utils.mjs +3 -3
  78. package/plugins/filters/conditionCollection.js +6 -5
  79. package/plugins/filters/conditionCollection.mjs +6 -5
  80. package/plugins/filters/filters.js +13 -7
  81. package/plugins/filters/filters.mjs +13 -7
  82. package/plugins/formulas/engine/register.js +3 -3
  83. package/plugins/formulas/engine/register.mjs +3 -3
  84. package/plugins/formulas/engine/settings.js +6 -3
  85. package/plugins/formulas/engine/settings.mjs +6 -3
  86. package/plugins/formulas/formulas.js +151 -143
  87. package/plugins/formulas/formulas.mjs +151 -143
  88. package/plugins/formulas/indexSyncer/axisSyncer.js +115 -79
  89. package/plugins/formulas/indexSyncer/axisSyncer.mjs +115 -79
  90. package/plugins/formulas/indexSyncer/index.js +100 -64
  91. package/plugins/formulas/indexSyncer/index.mjs +100 -64
  92. package/plugins/hiddenColumns/contextMenuItem/showColumn.js +2 -2
  93. package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +2 -2
  94. package/plugins/hiddenColumns/hiddenColumns.js +51 -34
  95. package/plugins/hiddenColumns/hiddenColumns.mjs +51 -34
  96. package/plugins/hiddenRows/contextMenuItem/showRow.js +2 -2
  97. package/plugins/hiddenRows/contextMenuItem/showRow.mjs +2 -2
  98. package/plugins/hiddenRows/hiddenRows.js +50 -33
  99. package/plugins/hiddenRows/hiddenRows.mjs +50 -33
  100. package/plugins/manualRowResize/manualRowResize.js +2 -1
  101. package/plugins/manualRowResize/manualRowResize.mjs +2 -1
  102. package/plugins/mergeCells/mergeCells.js +1 -1
  103. package/plugins/mergeCells/mergeCells.mjs +1 -1
  104. package/plugins/nestedHeaders/nestedHeaders.js +88 -67
  105. package/plugins/nestedHeaders/nestedHeaders.mjs +87 -66
  106. package/plugins/nestedHeaders/stateManager/headersTree.js +58 -38
  107. package/plugins/nestedHeaders/stateManager/headersTree.mjs +58 -38
  108. package/plugins/nestedHeaders/stateManager/index.js +70 -49
  109. package/plugins/nestedHeaders/stateManager/index.mjs +68 -47
  110. package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.js +1 -1
  111. package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.mjs +1 -1
  112. package/plugins/nestedHeaders/stateManager/sourceSettings.js +57 -37
  113. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +57 -37
  114. package/plugins/nestedHeaders/utils/ghostTable.js +39 -35
  115. package/plugins/nestedHeaders/utils/ghostTable.mjs +39 -35
  116. package/plugins/nestedRows/data/dataManager.js +4 -2
  117. package/plugins/nestedRows/data/dataManager.mjs +4 -2
  118. package/plugins/persistentState/storage.js +1 -0
  119. package/plugins/persistentState/storage.mjs +1 -0
  120. package/plugins/undoRedo/undoRedo.js +2 -1
  121. package/plugins/undoRedo/undoRedo.mjs +2 -1
  122. package/selection/highlight/visualSelection.js +10 -6
  123. package/selection/highlight/visualSelection.mjs +10 -6
  124. package/tableView.js +98 -80
  125. package/tableView.mjs +98 -80
  126. package/translations/changesObservable/observable.js +82 -54
  127. package/translations/changesObservable/observable.mjs +82 -54
  128. package/translations/changesObservable/observer.js +24 -11
  129. package/translations/changesObservable/observer.mjs +24 -11
  130. package/translations/maps/linkedPhysicalIndexToValueMap.js +14 -8
  131. package/translations/maps/linkedPhysicalIndexToValueMap.mjs +14 -8
  132. package/utils/dataStructures/tree.js +21 -18
  133. package/utils/dataStructures/tree.mjs +21 -18
@@ -1,8 +1,16 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
+ require("core-js/modules/es.error.cause.js");
4
5
  var _axisSyncer = _interopRequireDefault(require("./axisSyncer"));
5
6
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
7
+ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
8
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
9
+ function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
10
+ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
11
+ function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
12
+ function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
13
+ 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; } }
6
14
  /**
7
15
  * @private
8
16
  * @class IndexSyncer
@@ -12,60 +20,88 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
12
20
  * on HF's.
13
21
  *
14
22
  */
23
+ var _rowIndexSyncer = /*#__PURE__*/new WeakMap();
24
+ var _columnIndexSyncer = /*#__PURE__*/new WeakMap();
25
+ var _postponeAction = /*#__PURE__*/new WeakMap();
26
+ var _isPerformingUndo = /*#__PURE__*/new WeakMap();
27
+ var _isPerformingRedo = /*#__PURE__*/new WeakMap();
28
+ var _engine = /*#__PURE__*/new WeakMap();
29
+ var _sheetId = /*#__PURE__*/new WeakMap();
15
30
  class IndexSyncer {
16
- /**
17
- * Indexes synchronizer for the axis of the rows.
18
- *
19
- * @private
20
- * @type {AxisSyncer}
21
- */
22
- #rowIndexSyncer;
23
- /**
24
- * Indexes synchronizer for the axis of the columns.
25
- *
26
- * @private
27
- * @type {AxisSyncer}
28
- */
29
- #columnIndexSyncer;
30
- /**
31
- * Method which will postpone execution of some action (needed when synchronization endpoint isn't setup yet).
32
- *
33
- * @private
34
- * @type {Function}
35
- */
36
- #postponeAction;
37
- /**
38
- * Flag informing whether undo is already performed (we don't perform synchronization in such case).
39
- *
40
- * @private
41
- * @type {boolean}
42
- */
43
- #isPerformingUndo = false;
44
- /**
45
- * Flag informing whether redo is already performed (we don't perform synchronization in such case).
46
- *
47
- * @private
48
- * @type {boolean}
49
- */
50
- #isPerformingRedo = false;
51
- /**
52
- * The HF's engine instance which will be synced.
53
- *
54
- * @private
55
- * @type {HyperFormula|null}
56
- */
57
- #engine = null;
58
- /**
59
- * HyperFormula's sheet name.
60
- *
61
- * @private
62
- * @type {string|null}
63
- */
64
- #sheetId = null;
65
31
  constructor(rowIndexMapper, columnIndexMapper, postponeAction) {
66
- this.#rowIndexSyncer = new _axisSyncer.default('row', rowIndexMapper, this);
67
- this.#columnIndexSyncer = new _axisSyncer.default('column', columnIndexMapper, this);
68
- this.#postponeAction = postponeAction;
32
+ /**
33
+ * Indexes synchronizer for the axis of the rows.
34
+ *
35
+ * @private
36
+ * @type {AxisSyncer}
37
+ */
38
+ _classPrivateFieldInitSpec(this, _rowIndexSyncer, {
39
+ writable: true,
40
+ value: void 0
41
+ });
42
+ /**
43
+ * Indexes synchronizer for the axis of the columns.
44
+ *
45
+ * @private
46
+ * @type {AxisSyncer}
47
+ */
48
+ _classPrivateFieldInitSpec(this, _columnIndexSyncer, {
49
+ writable: true,
50
+ value: void 0
51
+ });
52
+ /**
53
+ * Method which will postpone execution of some action (needed when synchronization endpoint isn't setup yet).
54
+ *
55
+ * @private
56
+ * @type {Function}
57
+ */
58
+ _classPrivateFieldInitSpec(this, _postponeAction, {
59
+ writable: true,
60
+ value: void 0
61
+ });
62
+ /**
63
+ * Flag informing whether undo is already performed (we don't perform synchronization in such case).
64
+ *
65
+ * @private
66
+ * @type {boolean}
67
+ */
68
+ _classPrivateFieldInitSpec(this, _isPerformingUndo, {
69
+ writable: true,
70
+ value: false
71
+ });
72
+ /**
73
+ * Flag informing whether redo is already performed (we don't perform synchronization in such case).
74
+ *
75
+ * @private
76
+ * @type {boolean}
77
+ */
78
+ _classPrivateFieldInitSpec(this, _isPerformingRedo, {
79
+ writable: true,
80
+ value: false
81
+ });
82
+ /**
83
+ * The HF's engine instance which will be synced.
84
+ *
85
+ * @private
86
+ * @type {HyperFormula|null}
87
+ */
88
+ _classPrivateFieldInitSpec(this, _engine, {
89
+ writable: true,
90
+ value: null
91
+ });
92
+ /**
93
+ * HyperFormula's sheet name.
94
+ *
95
+ * @private
96
+ * @type {string|null}
97
+ */
98
+ _classPrivateFieldInitSpec(this, _sheetId, {
99
+ writable: true,
100
+ value: null
101
+ });
102
+ _classPrivateFieldSet(this, _rowIndexSyncer, new _axisSyncer.default('row', rowIndexMapper, this));
103
+ _classPrivateFieldSet(this, _columnIndexSyncer, new _axisSyncer.default('column', columnIndexMapper, this));
104
+ _classPrivateFieldSet(this, _postponeAction, postponeAction);
69
105
  }
70
106
 
71
107
  /**
@@ -76,9 +112,9 @@ class IndexSyncer {
76
112
  */
77
113
  getForAxis(indexType) {
78
114
  if (indexType === 'row') {
79
- return this.#rowIndexSyncer;
115
+ return _classPrivateFieldGet(this, _rowIndexSyncer);
80
116
  }
81
- return this.#columnIndexSyncer;
117
+ return _classPrivateFieldGet(this, _columnIndexSyncer);
82
118
  }
83
119
 
84
120
  /**
@@ -87,7 +123,7 @@ class IndexSyncer {
87
123
  * @param {boolean} flagValue Boolean value for the flag.
88
124
  */
89
125
  setPerformUndo(flagValue) {
90
- this.#isPerformingUndo = flagValue;
126
+ _classPrivateFieldSet(this, _isPerformingUndo, flagValue);
91
127
  }
92
128
 
93
129
  /**
@@ -96,7 +132,7 @@ class IndexSyncer {
96
132
  * @param {boolean} flagValue Boolean value for the flag.
97
133
  */
98
134
  setPerformRedo(flagValue) {
99
- this.#isPerformingRedo = flagValue;
135
+ _classPrivateFieldSet(this, _isPerformingRedo, flagValue);
100
136
  }
101
137
 
102
138
  /**
@@ -106,7 +142,7 @@ class IndexSyncer {
106
142
  * @returns {boolean}
107
143
  */
108
144
  isPerformingUndoRedo() {
109
- return this.#isPerformingUndo || this.#isPerformingRedo;
145
+ return _classPrivateFieldGet(this, _isPerformingUndo) || _classPrivateFieldGet(this, _isPerformingRedo);
110
146
  }
111
147
 
112
148
  /**
@@ -115,7 +151,7 @@ class IndexSyncer {
115
151
  * @returns {string|null}
116
152
  */
117
153
  getSheetId() {
118
- return this.#sheetId;
154
+ return _classPrivateFieldGet(this, _sheetId);
119
155
  }
120
156
 
121
157
  /**
@@ -124,7 +160,7 @@ class IndexSyncer {
124
160
  * @type {HyperFormula|null}
125
161
  */
126
162
  getEngine() {
127
- return this.#engine;
163
+ return _classPrivateFieldGet(this, _engine);
128
164
  }
129
165
 
130
166
  /**
@@ -133,7 +169,7 @@ class IndexSyncer {
133
169
  * @returns {Function}
134
170
  */
135
171
  getPostponeAction() {
136
- return this.#postponeAction;
172
+ return _classPrivateFieldGet(this, _postponeAction);
137
173
  }
138
174
 
139
175
  /**
@@ -143,10 +179,10 @@ class IndexSyncer {
143
179
  * @param {string|null} sheetId HyperFormula's sheet name.
144
180
  */
145
181
  setupSyncEndpoint(engine, sheetId) {
146
- this.#engine = engine;
147
- this.#sheetId = sheetId;
148
- this.#rowIndexSyncer.init();
149
- this.#columnIndexSyncer.init();
182
+ _classPrivateFieldSet(this, _engine, engine);
183
+ _classPrivateFieldSet(this, _sheetId, sheetId);
184
+ _classPrivateFieldGet(this, _rowIndexSyncer).init();
185
+ _classPrivateFieldGet(this, _columnIndexSyncer).init();
150
186
  }
151
187
  }
152
188
  var _default = IndexSyncer;
@@ -1,3 +1,11 @@
1
+ import "core-js/modules/es.error.cause.js";
2
+ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
3
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
4
+ function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
5
+ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
6
+ function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
7
+ function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
8
+ 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; } }
1
9
  import AxisSyncer from "./axisSyncer.mjs";
2
10
  /**
3
11
  * @private
@@ -8,60 +16,88 @@ import AxisSyncer from "./axisSyncer.mjs";
8
16
  * on HF's.
9
17
  *
10
18
  */
19
+ var _rowIndexSyncer = /*#__PURE__*/new WeakMap();
20
+ var _columnIndexSyncer = /*#__PURE__*/new WeakMap();
21
+ var _postponeAction = /*#__PURE__*/new WeakMap();
22
+ var _isPerformingUndo = /*#__PURE__*/new WeakMap();
23
+ var _isPerformingRedo = /*#__PURE__*/new WeakMap();
24
+ var _engine = /*#__PURE__*/new WeakMap();
25
+ var _sheetId = /*#__PURE__*/new WeakMap();
11
26
  class IndexSyncer {
12
- /**
13
- * Indexes synchronizer for the axis of the rows.
14
- *
15
- * @private
16
- * @type {AxisSyncer}
17
- */
18
- #rowIndexSyncer;
19
- /**
20
- * Indexes synchronizer for the axis of the columns.
21
- *
22
- * @private
23
- * @type {AxisSyncer}
24
- */
25
- #columnIndexSyncer;
26
- /**
27
- * Method which will postpone execution of some action (needed when synchronization endpoint isn't setup yet).
28
- *
29
- * @private
30
- * @type {Function}
31
- */
32
- #postponeAction;
33
- /**
34
- * Flag informing whether undo is already performed (we don't perform synchronization in such case).
35
- *
36
- * @private
37
- * @type {boolean}
38
- */
39
- #isPerformingUndo = false;
40
- /**
41
- * Flag informing whether redo is already performed (we don't perform synchronization in such case).
42
- *
43
- * @private
44
- * @type {boolean}
45
- */
46
- #isPerformingRedo = false;
47
- /**
48
- * The HF's engine instance which will be synced.
49
- *
50
- * @private
51
- * @type {HyperFormula|null}
52
- */
53
- #engine = null;
54
- /**
55
- * HyperFormula's sheet name.
56
- *
57
- * @private
58
- * @type {string|null}
59
- */
60
- #sheetId = null;
61
27
  constructor(rowIndexMapper, columnIndexMapper, postponeAction) {
62
- this.#rowIndexSyncer = new AxisSyncer('row', rowIndexMapper, this);
63
- this.#columnIndexSyncer = new AxisSyncer('column', columnIndexMapper, this);
64
- this.#postponeAction = postponeAction;
28
+ /**
29
+ * Indexes synchronizer for the axis of the rows.
30
+ *
31
+ * @private
32
+ * @type {AxisSyncer}
33
+ */
34
+ _classPrivateFieldInitSpec(this, _rowIndexSyncer, {
35
+ writable: true,
36
+ value: void 0
37
+ });
38
+ /**
39
+ * Indexes synchronizer for the axis of the columns.
40
+ *
41
+ * @private
42
+ * @type {AxisSyncer}
43
+ */
44
+ _classPrivateFieldInitSpec(this, _columnIndexSyncer, {
45
+ writable: true,
46
+ value: void 0
47
+ });
48
+ /**
49
+ * Method which will postpone execution of some action (needed when synchronization endpoint isn't setup yet).
50
+ *
51
+ * @private
52
+ * @type {Function}
53
+ */
54
+ _classPrivateFieldInitSpec(this, _postponeAction, {
55
+ writable: true,
56
+ value: void 0
57
+ });
58
+ /**
59
+ * Flag informing whether undo is already performed (we don't perform synchronization in such case).
60
+ *
61
+ * @private
62
+ * @type {boolean}
63
+ */
64
+ _classPrivateFieldInitSpec(this, _isPerformingUndo, {
65
+ writable: true,
66
+ value: false
67
+ });
68
+ /**
69
+ * Flag informing whether redo is already performed (we don't perform synchronization in such case).
70
+ *
71
+ * @private
72
+ * @type {boolean}
73
+ */
74
+ _classPrivateFieldInitSpec(this, _isPerformingRedo, {
75
+ writable: true,
76
+ value: false
77
+ });
78
+ /**
79
+ * The HF's engine instance which will be synced.
80
+ *
81
+ * @private
82
+ * @type {HyperFormula|null}
83
+ */
84
+ _classPrivateFieldInitSpec(this, _engine, {
85
+ writable: true,
86
+ value: null
87
+ });
88
+ /**
89
+ * HyperFormula's sheet name.
90
+ *
91
+ * @private
92
+ * @type {string|null}
93
+ */
94
+ _classPrivateFieldInitSpec(this, _sheetId, {
95
+ writable: true,
96
+ value: null
97
+ });
98
+ _classPrivateFieldSet(this, _rowIndexSyncer, new AxisSyncer('row', rowIndexMapper, this));
99
+ _classPrivateFieldSet(this, _columnIndexSyncer, new AxisSyncer('column', columnIndexMapper, this));
100
+ _classPrivateFieldSet(this, _postponeAction, postponeAction);
65
101
  }
66
102
 
67
103
  /**
@@ -72,9 +108,9 @@ class IndexSyncer {
72
108
  */
73
109
  getForAxis(indexType) {
74
110
  if (indexType === 'row') {
75
- return this.#rowIndexSyncer;
111
+ return _classPrivateFieldGet(this, _rowIndexSyncer);
76
112
  }
77
- return this.#columnIndexSyncer;
113
+ return _classPrivateFieldGet(this, _columnIndexSyncer);
78
114
  }
79
115
 
80
116
  /**
@@ -83,7 +119,7 @@ class IndexSyncer {
83
119
  * @param {boolean} flagValue Boolean value for the flag.
84
120
  */
85
121
  setPerformUndo(flagValue) {
86
- this.#isPerformingUndo = flagValue;
122
+ _classPrivateFieldSet(this, _isPerformingUndo, flagValue);
87
123
  }
88
124
 
89
125
  /**
@@ -92,7 +128,7 @@ class IndexSyncer {
92
128
  * @param {boolean} flagValue Boolean value for the flag.
93
129
  */
94
130
  setPerformRedo(flagValue) {
95
- this.#isPerformingRedo = flagValue;
131
+ _classPrivateFieldSet(this, _isPerformingRedo, flagValue);
96
132
  }
97
133
 
98
134
  /**
@@ -102,7 +138,7 @@ class IndexSyncer {
102
138
  * @returns {boolean}
103
139
  */
104
140
  isPerformingUndoRedo() {
105
- return this.#isPerformingUndo || this.#isPerformingRedo;
141
+ return _classPrivateFieldGet(this, _isPerformingUndo) || _classPrivateFieldGet(this, _isPerformingRedo);
106
142
  }
107
143
 
108
144
  /**
@@ -111,7 +147,7 @@ class IndexSyncer {
111
147
  * @returns {string|null}
112
148
  */
113
149
  getSheetId() {
114
- return this.#sheetId;
150
+ return _classPrivateFieldGet(this, _sheetId);
115
151
  }
116
152
 
117
153
  /**
@@ -120,7 +156,7 @@ class IndexSyncer {
120
156
  * @type {HyperFormula|null}
121
157
  */
122
158
  getEngine() {
123
- return this.#engine;
159
+ return _classPrivateFieldGet(this, _engine);
124
160
  }
125
161
 
126
162
  /**
@@ -129,7 +165,7 @@ class IndexSyncer {
129
165
  * @returns {Function}
130
166
  */
131
167
  getPostponeAction() {
132
- return this.#postponeAction;
168
+ return _classPrivateFieldGet(this, _postponeAction);
133
169
  }
134
170
 
135
171
  /**
@@ -139,10 +175,10 @@ class IndexSyncer {
139
175
  * @param {string|null} sheetId HyperFormula's sheet name.
140
176
  */
141
177
  setupSyncEndpoint(engine, sheetId) {
142
- this.#engine = engine;
143
- this.#sheetId = sheetId;
144
- this.#rowIndexSyncer.init();
145
- this.#columnIndexSyncer.init();
178
+ _classPrivateFieldSet(this, _engine, engine);
179
+ _classPrivateFieldSet(this, _sheetId, sheetId);
180
+ _classPrivateFieldGet(this, _rowIndexSyncer).init();
181
+ _classPrivateFieldGet(this, _columnIndexSyncer).init();
146
182
  }
147
183
  }
148
184
  export default IndexSyncer;
@@ -28,9 +28,9 @@ function showColumnItem(hiddenColumnsPlugin) {
28
28
  let endVisualColumn = columns[columns.length - 1];
29
29
 
30
30
  // Add to the selection one more visual column on the left.
31
- startVisualColumn = (_this$columnIndexMapp = this.columnIndexMapper.getNearestNotHiddenIndex(startVisualColumn - 1, -1)) != null ? _this$columnIndexMapp : 0;
31
+ startVisualColumn = (_this$columnIndexMapp = this.columnIndexMapper.getNearestNotHiddenIndex(startVisualColumn - 1, -1)) !== null && _this$columnIndexMapp !== void 0 ? _this$columnIndexMapp : 0;
32
32
  // Add to the selection one more visual column on the right.
33
- endVisualColumn = (_this$columnIndexMapp2 = this.columnIndexMapper.getNearestNotHiddenIndex(endVisualColumn + 1, 1)) != null ? _this$columnIndexMapp2 : this.countCols() - 1;
33
+ endVisualColumn = (_this$columnIndexMapp2 = this.columnIndexMapper.getNearestNotHiddenIndex(endVisualColumn + 1, 1)) !== null && _this$columnIndexMapp2 !== void 0 ? _this$columnIndexMapp2 : this.countCols() - 1;
34
34
  hiddenColumnsPlugin.showColumns(columns);
35
35
 
36
36
  // We render columns at first. It was needed for getting fixed columns.
@@ -22,9 +22,9 @@ export default function showColumnItem(hiddenColumnsPlugin) {
22
22
  let endVisualColumn = columns[columns.length - 1];
23
23
 
24
24
  // Add to the selection one more visual column on the left.
25
- startVisualColumn = (_this$columnIndexMapp = this.columnIndexMapper.getNearestNotHiddenIndex(startVisualColumn - 1, -1)) != null ? _this$columnIndexMapp : 0;
25
+ startVisualColumn = (_this$columnIndexMapp = this.columnIndexMapper.getNearestNotHiddenIndex(startVisualColumn - 1, -1)) !== null && _this$columnIndexMapp !== void 0 ? _this$columnIndexMapp : 0;
26
26
  // Add to the selection one more visual column on the right.
27
- endVisualColumn = (_this$columnIndexMapp2 = this.columnIndexMapper.getNearestNotHiddenIndex(endVisualColumn + 1, 1)) != null ? _this$columnIndexMapp2 : this.countCols() - 1;
27
+ endVisualColumn = (_this$columnIndexMapp2 = this.columnIndexMapper.getNearestNotHiddenIndex(endVisualColumn + 1, 1)) !== null && _this$columnIndexMapp2 !== void 0 ? _this$columnIndexMapp2 : this.countCols() - 1;
28
28
  hiddenColumnsPlugin.showColumns(columns);
29
29
 
30
30
  // We render columns at first. It was needed for getting fixed columns.