handsontable 0.0.0-next-5e7f0fe-20230504 → 0.0.0-next-48677e7-20230509
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.
- package/3rdparty/walkontable/src/cell/coords.js +40 -13
- package/3rdparty/walkontable/src/cell/coords.mjs +40 -13
- package/3rdparty/walkontable/src/cell/range.js +29 -25
- package/3rdparty/walkontable/src/cell/range.mjs +28 -24
- package/3rdparty/walkontable/src/core/_base.js +9 -3
- package/3rdparty/walkontable/src/core/_base.mjs +9 -3
- package/3rdparty/walkontable/src/core/clone.js +2 -2
- package/3rdparty/walkontable/src/core/clone.mjs +2 -2
- package/3rdparty/walkontable/src/core/core.js +3 -2
- package/3rdparty/walkontable/src/core/core.mjs +3 -2
- package/3rdparty/walkontable/src/event.js +12 -10
- package/3rdparty/walkontable/src/event.mjs +12 -10
- package/3rdparty/walkontable/src/facade/core.js +2 -2
- package/3rdparty/walkontable/src/facade/core.mjs +2 -2
- package/3rdparty/walkontable/src/index.js +10 -2
- package/3rdparty/walkontable/src/index.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/_base.js +8 -7
- package/3rdparty/walkontable/src/overlay/_base.mjs +8 -7
- package/3rdparty/walkontable/src/overlay/bottom.js +7 -6
- package/3rdparty/walkontable/src/overlay/bottom.mjs +7 -6
- package/3rdparty/walkontable/src/overlay/inlineStart.js +2 -4
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +2 -4
- package/3rdparty/walkontable/src/overlay/top.js +9 -10
- package/3rdparty/walkontable/src/overlay/top.mjs +9 -10
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +12 -10
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +12 -10
- package/3rdparty/walkontable/src/overlays.js +64 -55
- package/3rdparty/walkontable/src/overlays.mjs +64 -55
- package/3rdparty/walkontable/src/renderer/table.js +2 -0
- package/3rdparty/walkontable/src/renderer/table.mjs +2 -0
- package/3rdparty/walkontable/src/scroll.js +23 -20
- package/3rdparty/walkontable/src/scroll.mjs +23 -20
- package/3rdparty/walkontable/src/{border.js → selection/border/border.js} +7 -12
- package/3rdparty/walkontable/src/{border.mjs → selection/border/border.mjs} +7 -12
- package/3rdparty/walkontable/src/selection/border/constants.js +18 -0
- package/3rdparty/walkontable/src/selection/border/constants.mjs +13 -0
- package/3rdparty/walkontable/src/selection/constants.js +63 -0
- package/3rdparty/walkontable/src/selection/constants.mjs +51 -0
- package/3rdparty/walkontable/src/selection/index.js +30 -0
- package/3rdparty/walkontable/src/selection/index.mjs +5 -0
- package/3rdparty/walkontable/src/selection/manager.js +334 -0
- package/3rdparty/walkontable/src/selection/manager.mjs +328 -0
- package/3rdparty/walkontable/src/selection/scanner.js +363 -0
- package/3rdparty/walkontable/src/selection/scanner.mjs +359 -0
- package/3rdparty/walkontable/src/selection/selection.js +133 -0
- package/3rdparty/walkontable/src/selection/selection.mjs +127 -0
- package/3rdparty/walkontable/src/settings.js +15 -13
- package/3rdparty/walkontable/src/settings.mjs +15 -13
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +9 -0
- package/3rdparty/walkontable/src/table.js +33 -101
- package/3rdparty/walkontable/src/table.mjs +34 -102
- package/base.js +4 -2
- package/base.mjs +2 -2
- package/core.d.ts +4 -0
- package/core.js +49 -8
- package/core.mjs +49 -8
- package/dataMap/dataSource.js +5 -5
- package/dataMap/dataSource.mjs +5 -5
- package/dataMap/metaManager/metaSchema.js +7 -0
- package/dataMap/metaManager/metaSchema.mjs +7 -0
- package/dist/handsontable.css +7 -2
- package/dist/handsontable.full.css +7 -2
- package/dist/handsontable.full.js +9409 -9084
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +115 -123
- package/dist/handsontable.js +9497 -9171
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +3 -11
- package/dist/languages/all.js +0 -133
- package/dist/languages/ar-AR.js +0 -7
- package/dist/languages/cs-CZ.js +0 -7
- package/dist/languages/de-CH.js +0 -7
- package/dist/languages/de-DE.js +0 -7
- package/dist/languages/en-US.js +0 -7
- package/dist/languages/es-MX.js +0 -7
- package/dist/languages/fr-FR.js +0 -7
- package/dist/languages/it-IT.js +0 -7
- package/dist/languages/ja-JP.js +0 -7
- package/dist/languages/ko-KR.js +0 -7
- package/dist/languages/lv-LV.js +0 -7
- package/dist/languages/nb-NO.js +0 -7
- package/dist/languages/nl-NL.js +0 -7
- package/dist/languages/pl-PL.js +0 -7
- package/dist/languages/pt-BR.js +0 -7
- package/dist/languages/ru-RU.js +0 -7
- package/dist/languages/sr-SP.js +0 -7
- package/dist/languages/zh-CN.js +0 -7
- package/dist/languages/zh-TW.js +0 -7
- package/editorManager.js +7 -3
- package/editorManager.mjs +7 -3
- package/editors/textEditor/textEditor.js +3 -16
- package/editors/textEditor/textEditor.mjs +4 -17
- package/focusManager.d.ts +12 -0
- package/focusManager.js +249 -0
- package/focusManager.mjs +245 -0
- package/helpers/dom/element.js +11 -0
- package/helpers/dom/element.mjs +10 -0
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/i18n/languages/ar-AR.js +1 -7
- package/i18n/languages/cs-CZ.js +1 -7
- package/i18n/languages/de-CH.js +1 -7
- package/i18n/languages/de-DE.js +1 -7
- package/i18n/languages/en-US.js +1 -7
- package/i18n/languages/es-MX.js +1 -7
- package/i18n/languages/fr-FR.js +1 -7
- package/i18n/languages/it-IT.js +1 -7
- package/i18n/languages/ja-JP.js +1 -7
- package/i18n/languages/ko-KR.js +1 -7
- package/i18n/languages/lv-LV.js +1 -7
- package/i18n/languages/nb-NO.js +1 -7
- package/i18n/languages/nl-NL.js +1 -7
- package/i18n/languages/pl-PL.js +1 -7
- package/i18n/languages/pt-BR.js +1 -7
- package/i18n/languages/ru-RU.js +1 -7
- package/i18n/languages/sr-SP.js +1 -7
- package/i18n/languages/zh-CN.js +1 -7
- package/i18n/languages/zh-TW.js +1 -7
- package/languages/all.js +0 -133
- package/languages/ar-AR.js +0 -7
- package/languages/cs-CZ.js +0 -7
- package/languages/de-CH.js +0 -7
- package/languages/de-DE.js +0 -7
- package/languages/en-US.js +0 -7
- package/languages/es-MX.js +0 -7
- package/languages/fr-FR.js +0 -7
- package/languages/index.js +0 -133
- package/languages/it-IT.js +0 -7
- package/languages/ja-JP.js +0 -7
- package/languages/ko-KR.js +0 -7
- package/languages/lv-LV.js +0 -7
- package/languages/nb-NO.js +0 -7
- package/languages/nl-NL.js +0 -7
- package/languages/pl-PL.js +0 -7
- package/languages/pt-BR.js +0 -7
- package/languages/ru-RU.js +0 -7
- package/languages/sr-SP.js +0 -7
- package/languages/zh-CN.js +0 -7
- package/languages/zh-TW.js +0 -7
- package/package.json +2 -3
- package/pluginHooks.js +7 -17
- package/pluginHooks.mjs +4 -16
- package/plugins/autoRowSize/autoRowSize.js +2 -2
- package/plugins/autoRowSize/autoRowSize.mjs +2 -2
- package/plugins/copyPaste/copyPaste.js +12 -93
- package/plugins/copyPaste/copyPaste.mjs +12 -93
- package/plugins/copyPaste/copyableRanges.js +31 -25
- package/plugins/copyPaste/copyableRanges.mjs +24 -18
- package/plugins/customBorders/customBorders.js +6 -2
- package/plugins/customBorders/customBorders.mjs +7 -3
- package/plugins/filters/filters.js +0 -5
- package/plugins/filters/filters.mjs +0 -5
- package/plugins/formulas/formulas.js +168 -190
- package/plugins/formulas/formulas.mjs +168 -190
- package/plugins/mergeCells/mergeCells.js +0 -16
- package/plugins/mergeCells/mergeCells.mjs +0 -16
- package/plugins/nestedHeaders/nestedHeaders.js +3 -4
- package/plugins/nestedHeaders/nestedHeaders.mjs +3 -4
- package/plugins/nestedHeaders/stateManager/headersTree.js +26 -23
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +23 -20
- package/plugins/nestedHeaders/stateManager/index.js +3 -3
- package/plugins/nestedHeaders/stateManager/matrixGenerator.js +0 -1
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +1 -1
- package/plugins/nestedHeaders/utils/ghostTable.js +35 -30
- package/plugins/nestedHeaders/utils/ghostTable.mjs +35 -30
- package/plugins/registry.js +1 -3
- package/plugins/undoRedo/undoRedo.js +1 -0
- package/plugins/undoRedo/undoRedo.mjs +1 -0
- package/renderers/baseRenderer/baseRenderer.js +3 -0
- package/renderers/baseRenderer/baseRenderer.mjs +3 -0
- package/selection/highlight/highlight.js +335 -133
- package/selection/highlight/highlight.mjs +325 -129
- package/selection/highlight/types/activeHeader.js +10 -9
- package/selection/highlight/types/activeHeader.mjs +10 -8
- package/selection/highlight/types/area.js +12 -27
- package/selection/highlight/types/area.mjs +16 -30
- package/selection/highlight/types/areaLayered.js +54 -0
- package/selection/highlight/types/areaLayered.mjs +49 -0
- package/selection/highlight/types/column.js +50 -0
- package/selection/highlight/types/column.mjs +45 -0
- package/selection/highlight/types/customSelection.js +7 -10
- package/selection/highlight/types/customSelection.mjs +7 -9
- package/selection/highlight/types/fill.js +5 -8
- package/selection/highlight/types/fill.mjs +5 -7
- package/selection/highlight/types/{cell.js → focus.js} +5 -8
- package/selection/highlight/types/{cell.mjs → focus.mjs} +5 -7
- package/selection/highlight/types/header.js +10 -20
- package/selection/highlight/types/header.mjs +10 -19
- package/selection/highlight/types/{index.js → row.js} +27 -31
- package/selection/highlight/types/{index.mjs → row.mjs} +24 -29
- package/selection/highlight/visualSelection.js +12 -21
- package/selection/highlight/visualSelection.mjs +12 -21
- package/selection/index.js +4 -7
- package/selection/index.mjs +2 -3
- package/selection/selection.js +88 -46
- package/selection/selection.mjs +82 -44
- package/settings.d.ts +1 -0
- package/tableView.js +94 -66
- package/tableView.mjs +94 -66
- package/translations/changesObservable/observable.js +46 -41
- package/translations/changesObservable/observable.mjs +41 -36
- package/translations/changesObservable/observer.js +1 -1
- package/translations/indexMapper.js +0 -21
- package/translations/indexMapper.mjs +0 -21
- package/utils/dataStructures/tree.js +18 -15
- package/utils/dataStructures/tree.mjs +18 -15
- package/utils/parseTable.js +1 -5
- package/utils/parseTable.mjs +1 -5
- package/3rdparty/walkontable/src/selection.js +0 -354
- package/3rdparty/walkontable/src/selection.mjs +0 -348
- package/plugins/copyPaste/focusableElement.js +0 -219
- package/plugins/copyPaste/focusableElement.mjs +0 -213
- package/plugins/formulas/indexSyncer/axisSyncer.js +0 -379
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +0 -374
- package/plugins/formulas/indexSyncer/index.js +0 -225
- package/plugins/formulas/indexSyncer/index.mjs +0 -219
- package/selection/highlight/constants.js +0 -16
- package/selection/highlight/constants.mjs +0 -6
@@ -1,219 +0,0 @@
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
2
|
-
import "core-js/modules/es.array.iterator.js";
|
3
|
-
import "core-js/modules/es.object.to-string.js";
|
4
|
-
import "core-js/modules/es.string.iterator.js";
|
5
|
-
import "core-js/modules/es.weak-map.js";
|
6
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
7
|
-
import "core-js/modules/es.symbol.to-primitive.js";
|
8
|
-
import "core-js/modules/es.date.to-primitive.js";
|
9
|
-
import "core-js/modules/es.symbol.js";
|
10
|
-
import "core-js/modules/es.symbol.description.js";
|
11
|
-
import "core-js/modules/es.number.constructor.js";
|
12
|
-
import "core-js/modules/es.symbol.iterator.js";
|
13
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
14
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
15
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
16
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
17
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
18
|
-
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
19
|
-
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
20
|
-
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
21
|
-
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
22
|
-
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
23
|
-
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
24
|
-
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; } }
|
25
|
-
import AxisSyncer from "./axisSyncer.mjs";
|
26
|
-
/**
|
27
|
-
* @private
|
28
|
-
* @class IndexSyncer
|
29
|
-
* @description
|
30
|
-
*
|
31
|
-
* Indexes synchronizer responsible for providing logic for syncing actions done on indexes for HOT to actions performed
|
32
|
-
* on HF's.
|
33
|
-
*
|
34
|
-
*/
|
35
|
-
var _rowIndexSyncer = /*#__PURE__*/new WeakMap();
|
36
|
-
var _columnIndexSyncer = /*#__PURE__*/new WeakMap();
|
37
|
-
var _postponeAction = /*#__PURE__*/new WeakMap();
|
38
|
-
var _isPerformingUndo = /*#__PURE__*/new WeakMap();
|
39
|
-
var _isPerformingRedo = /*#__PURE__*/new WeakMap();
|
40
|
-
var _engine = /*#__PURE__*/new WeakMap();
|
41
|
-
var _sheetId = /*#__PURE__*/new WeakMap();
|
42
|
-
var IndexSyncer = /*#__PURE__*/function () {
|
43
|
-
function IndexSyncer(rowIndexMapper, columnIndexMapper, postponeAction) {
|
44
|
-
_classCallCheck(this, IndexSyncer);
|
45
|
-
/**
|
46
|
-
* Indexes synchronizer for the axis of the rows.
|
47
|
-
*
|
48
|
-
* @private
|
49
|
-
* @type {AxisSyncer}
|
50
|
-
*/
|
51
|
-
_classPrivateFieldInitSpec(this, _rowIndexSyncer, {
|
52
|
-
writable: true,
|
53
|
-
value: void 0
|
54
|
-
});
|
55
|
-
/**
|
56
|
-
* Indexes synchronizer for the axis of the columns.
|
57
|
-
*
|
58
|
-
* @private
|
59
|
-
* @type {AxisSyncer}
|
60
|
-
*/
|
61
|
-
_classPrivateFieldInitSpec(this, _columnIndexSyncer, {
|
62
|
-
writable: true,
|
63
|
-
value: void 0
|
64
|
-
});
|
65
|
-
/**
|
66
|
-
* Method which will postpone execution of some action (needed when synchronization endpoint isn't setup yet).
|
67
|
-
*
|
68
|
-
* @private
|
69
|
-
* @type {Function}
|
70
|
-
*/
|
71
|
-
_classPrivateFieldInitSpec(this, _postponeAction, {
|
72
|
-
writable: true,
|
73
|
-
value: void 0
|
74
|
-
});
|
75
|
-
/**
|
76
|
-
* Flag informing whether undo is already performed (we don't perform synchronization in such case).
|
77
|
-
*
|
78
|
-
* @private
|
79
|
-
* @type {boolean}
|
80
|
-
*/
|
81
|
-
_classPrivateFieldInitSpec(this, _isPerformingUndo, {
|
82
|
-
writable: true,
|
83
|
-
value: false
|
84
|
-
});
|
85
|
-
/**
|
86
|
-
* Flag informing whether redo is already performed (we don't perform synchronization in such case).
|
87
|
-
*
|
88
|
-
* @private
|
89
|
-
* @type {boolean}
|
90
|
-
*/
|
91
|
-
_classPrivateFieldInitSpec(this, _isPerformingRedo, {
|
92
|
-
writable: true,
|
93
|
-
value: false
|
94
|
-
});
|
95
|
-
/**
|
96
|
-
* The HF's engine instance which will be synced.
|
97
|
-
*
|
98
|
-
* @private
|
99
|
-
* @type {HyperFormula|null}
|
100
|
-
*/
|
101
|
-
_classPrivateFieldInitSpec(this, _engine, {
|
102
|
-
writable: true,
|
103
|
-
value: null
|
104
|
-
});
|
105
|
-
/**
|
106
|
-
* HyperFormula's sheet name.
|
107
|
-
*
|
108
|
-
* @private
|
109
|
-
* @type {string|null}
|
110
|
-
*/
|
111
|
-
_classPrivateFieldInitSpec(this, _sheetId, {
|
112
|
-
writable: true,
|
113
|
-
value: null
|
114
|
-
});
|
115
|
-
_classPrivateFieldSet(this, _rowIndexSyncer, new AxisSyncer('row', rowIndexMapper, this));
|
116
|
-
_classPrivateFieldSet(this, _columnIndexSyncer, new AxisSyncer('column', columnIndexMapper, this));
|
117
|
-
_classPrivateFieldSet(this, _postponeAction, postponeAction);
|
118
|
-
}
|
119
|
-
|
120
|
-
/**
|
121
|
-
* Gets index synchronizer for a particular axis.
|
122
|
-
*
|
123
|
-
* @param {'row'|'column'} indexType Type of indexes.
|
124
|
-
* @returns {AxisSyncer}
|
125
|
-
*/
|
126
|
-
_createClass(IndexSyncer, [{
|
127
|
-
key: "getForAxis",
|
128
|
-
value: function getForAxis(indexType) {
|
129
|
-
if (indexType === 'row') {
|
130
|
-
return _classPrivateFieldGet(this, _rowIndexSyncer);
|
131
|
-
}
|
132
|
-
return _classPrivateFieldGet(this, _columnIndexSyncer);
|
133
|
-
}
|
134
|
-
|
135
|
-
/**
|
136
|
-
* Sets flag informing whether an undo action is already performed (we don't execute synchronization in such case).
|
137
|
-
*
|
138
|
-
* @param {boolean} flagValue Boolean value for the flag.
|
139
|
-
*/
|
140
|
-
}, {
|
141
|
-
key: "setPerformUndo",
|
142
|
-
value: function setPerformUndo(flagValue) {
|
143
|
-
_classPrivateFieldSet(this, _isPerformingUndo, flagValue);
|
144
|
-
}
|
145
|
-
|
146
|
-
/**
|
147
|
-
* Sets flag informing whether a redo action is already performed (we don't execute synchronization in such case).
|
148
|
-
*
|
149
|
-
* @param {boolean} flagValue Boolean value for the flag.
|
150
|
-
*/
|
151
|
-
}, {
|
152
|
-
key: "setPerformRedo",
|
153
|
-
value: function setPerformRedo(flagValue) {
|
154
|
-
_classPrivateFieldSet(this, _isPerformingRedo, flagValue);
|
155
|
-
}
|
156
|
-
|
157
|
-
/**
|
158
|
-
* Gets information whether redo or undo action is already performed (we don't execute synchronization in such case).
|
159
|
-
*
|
160
|
-
* @private
|
161
|
-
* @returns {boolean}
|
162
|
-
*/
|
163
|
-
}, {
|
164
|
-
key: "isPerformingUndoRedo",
|
165
|
-
value: function isPerformingUndoRedo() {
|
166
|
-
return _classPrivateFieldGet(this, _isPerformingUndo) || _classPrivateFieldGet(this, _isPerformingRedo);
|
167
|
-
}
|
168
|
-
|
169
|
-
/**
|
170
|
-
* Gets HyperFormula's sheet id.
|
171
|
-
*
|
172
|
-
* @returns {string|null}
|
173
|
-
*/
|
174
|
-
}, {
|
175
|
-
key: "getSheetId",
|
176
|
-
value: function getSheetId() {
|
177
|
-
return _classPrivateFieldGet(this, _sheetId);
|
178
|
-
}
|
179
|
-
|
180
|
-
/**
|
181
|
-
* Gets engine instance that will be used for handled instance of Handsontable.
|
182
|
-
*
|
183
|
-
* @type {HyperFormula|null}
|
184
|
-
*/
|
185
|
-
}, {
|
186
|
-
key: "getEngine",
|
187
|
-
value: function getEngine() {
|
188
|
-
return _classPrivateFieldGet(this, _engine);
|
189
|
-
}
|
190
|
-
|
191
|
-
/**
|
192
|
-
* Gets method which will postpone execution of some action (needed when synchronization endpoint isn't setup yet).
|
193
|
-
*
|
194
|
-
* @returns {Function}
|
195
|
-
*/
|
196
|
-
}, {
|
197
|
-
key: "getPostponeAction",
|
198
|
-
value: function getPostponeAction() {
|
199
|
-
return _classPrivateFieldGet(this, _postponeAction);
|
200
|
-
}
|
201
|
-
|
202
|
-
/**
|
203
|
-
* Setups a synchronization endpoint.
|
204
|
-
*
|
205
|
-
* @param {HyperFormula|null} engine The HF's engine instance which will be synced.
|
206
|
-
* @param {string|null} sheetId HyperFormula's sheet name.
|
207
|
-
*/
|
208
|
-
}, {
|
209
|
-
key: "setupSyncEndpoint",
|
210
|
-
value: function setupSyncEndpoint(engine, sheetId) {
|
211
|
-
_classPrivateFieldSet(this, _engine, engine);
|
212
|
-
_classPrivateFieldSet(this, _sheetId, sheetId);
|
213
|
-
_classPrivateFieldGet(this, _rowIndexSyncer).init();
|
214
|
-
_classPrivateFieldGet(this, _columnIndexSyncer).init();
|
215
|
-
}
|
216
|
-
}]);
|
217
|
-
return IndexSyncer;
|
218
|
-
}();
|
219
|
-
export default IndexSyncer;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
exports.__esModule = true;
|
4
|
-
exports.HEADER_TYPE = exports.FILL_TYPE = exports.CUSTOM_SELECTION_TYPE = exports.CELL_TYPE = exports.AREA_TYPE = exports.ACTIVE_HEADER_TYPE = void 0;
|
5
|
-
var ACTIVE_HEADER_TYPE = 'active-header';
|
6
|
-
exports.ACTIVE_HEADER_TYPE = ACTIVE_HEADER_TYPE;
|
7
|
-
var AREA_TYPE = 'area';
|
8
|
-
exports.AREA_TYPE = AREA_TYPE;
|
9
|
-
var CELL_TYPE = 'cell';
|
10
|
-
exports.CELL_TYPE = CELL_TYPE;
|
11
|
-
var FILL_TYPE = 'fill';
|
12
|
-
exports.FILL_TYPE = FILL_TYPE;
|
13
|
-
var HEADER_TYPE = 'header';
|
14
|
-
exports.HEADER_TYPE = HEADER_TYPE;
|
15
|
-
var CUSTOM_SELECTION_TYPE = 'custom-selection';
|
16
|
-
exports.CUSTOM_SELECTION_TYPE = CUSTOM_SELECTION_TYPE;
|