handsontable 12.3.1-next-42b5538-20230203 → 12.3.2-next-bcef33c-20230315
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.
- package/3rdparty/walkontable/src/calculator/viewportColumns.js +31 -9
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +31 -9
- package/3rdparty/walkontable/src/calculator/viewportRows.js +21 -6
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +21 -6
- package/3rdparty/walkontable/src/core/_base.js +19 -20
- package/3rdparty/walkontable/src/core/_base.mjs +19 -20
- package/3rdparty/walkontable/src/scroll.js +14 -3
- package/3rdparty/walkontable/src/scroll.mjs +14 -3
- package/3rdparty/walkontable/src/table.js +4 -2
- package/3rdparty/walkontable/src/table.mjs +4 -2
- package/3rdparty/walkontable/src/types.js +1 -0
- package/3rdparty/walkontable/src/types.mjs +1 -0
- package/3rdparty/walkontable/src/viewport.js +11 -14
- package/3rdparty/walkontable/src/viewport.mjs +11 -14
- package/CHANGELOG.md +7 -0
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.js +32 -21
- package/core.mjs +32 -21
- package/dataMap/metaManager/metaSchema.js +9 -9
- package/dataMap/metaManager/metaSchema.mjs +9 -9
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +4631 -3987
- package/dist/handsontable.full.min.css +8 -8
- package/dist/handsontable.full.min.js +241 -227
- package/dist/handsontable.js +2753 -2435
- package/dist/handsontable.min.css +7 -7
- package/dist/handsontable.min.js +3 -3
- package/dist/languages/all.js +1 -1
- package/dist/languages/all.min.js +1 -1
- package/dist/languages/zh-CN.js +1 -1
- package/dist/languages/zh-CN.min.js +1 -1
- package/editors/autocompleteEditor/autocompleteEditor.js +8 -9
- package/editors/autocompleteEditor/autocompleteEditor.mjs +8 -9
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/i18n/languages/zh-CN.js +1 -1
- package/i18n/languages/zh-CN.mjs +3 -3
- package/languages/all.js +1 -1
- package/languages/index.js +1 -1
- package/languages/zh-CN.js +1 -1
- package/languages/zh-CN.mjs +3 -3
- package/package.json +12 -13
- package/plugins/base/base.js +9 -10
- package/plugins/base/base.mjs +9 -10
- package/plugins/collapsibleColumns/collapsibleColumns.js +24 -7
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +24 -7
- package/plugins/copyPaste/copyPaste.js +92 -16
- package/plugins/copyPaste/copyPaste.mjs +92 -16
- package/plugins/copyPaste/copyableRanges.js +14 -8
- package/plugins/copyPaste/copyableRanges.mjs +14 -8
- package/plugins/customBorders/customBorders.js +6 -7
- package/plugins/customBorders/customBorders.mjs +6 -7
- package/plugins/filters/filters.js +0 -8
- package/plugins/filters/filters.mjs +0 -8
- package/plugins/formulas/formulas.js +34 -7
- package/plugins/formulas/formulas.mjs +34 -7
- package/plugins/hiddenColumns/hiddenColumns.js +12 -7
- package/plugins/hiddenColumns/hiddenColumns.mjs +12 -7
- package/plugins/hiddenRows/hiddenRows.js +12 -7
- package/plugins/hiddenRows/hiddenRows.mjs +12 -7
- package/plugins/nestedHeaders/nestedHeaders.js +26 -7
- package/plugins/nestedHeaders/nestedHeaders.mjs +26 -7
- package/plugins/nestedHeaders/stateManager/index.js +18 -0
- package/plugins/nestedHeaders/stateManager/index.mjs +18 -0
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +19 -0
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +19 -0
- package/translations/changesObservable/observer.js +7 -0
- package/translations/changesObservable/observer.mjs +7 -0
- package/translations/maps/linkedPhysicalIndexToValueMap.js +6 -0
- package/translations/maps/linkedPhysicalIndexToValueMap.mjs +6 -0
@@ -160,9 +160,33 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
160
160
|
args[_key] = arguments[_key];
|
161
161
|
}
|
162
162
|
_this = _super.call.apply(_super, [this].concat(args));
|
163
|
+
/**
|
164
|
+
* Cached reference to the NestedHeaders plugin.
|
165
|
+
*
|
166
|
+
* @private
|
167
|
+
* @type {NestedHeaders}
|
168
|
+
*/
|
163
169
|
_defineProperty(_assertThisInitialized(_this), "nestedHeadersPlugin", null);
|
170
|
+
/**
|
171
|
+
* Event manager instance reference.
|
172
|
+
*
|
173
|
+
* @private
|
174
|
+
* @type {EventManager}
|
175
|
+
*/
|
164
176
|
_defineProperty(_assertThisInitialized(_this), "eventManager", new _eventManager.default(_assertThisInitialized(_this)));
|
177
|
+
/**
|
178
|
+
* The NestedHeaders plugin StateManager instance.
|
179
|
+
*
|
180
|
+
* @private
|
181
|
+
* @type {StateManager}
|
182
|
+
*/
|
165
183
|
_defineProperty(_assertThisInitialized(_this), "headerStateManager", null);
|
184
|
+
/**
|
185
|
+
* Map of collapsed columns by the plugin.
|
186
|
+
*
|
187
|
+
* @private
|
188
|
+
* @type {HidingMap|null}
|
189
|
+
*/
|
166
190
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _collapsedColumnsMap, {
|
167
191
|
writable: true,
|
168
192
|
value: null
|
@@ -584,13 +608,6 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
584
608
|
get: function get() {
|
585
609
|
return [PLUGIN_KEY].concat(SETTING_KEYS);
|
586
610
|
}
|
587
|
-
|
588
|
-
/**
|
589
|
-
* Cached reference to the NestedHeaders plugin.
|
590
|
-
*
|
591
|
-
* @private
|
592
|
-
* @type {NestedHeaders}
|
593
|
-
*/
|
594
611
|
}]);
|
595
612
|
return CollapsibleColumns;
|
596
613
|
}(_base.BasePlugin);
|
@@ -153,9 +153,33 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
153
153
|
args[_key] = arguments[_key];
|
154
154
|
}
|
155
155
|
_this = _super.call.apply(_super, [this].concat(args));
|
156
|
+
/**
|
157
|
+
* Cached reference to the NestedHeaders plugin.
|
158
|
+
*
|
159
|
+
* @private
|
160
|
+
* @type {NestedHeaders}
|
161
|
+
*/
|
156
162
|
_defineProperty(_assertThisInitialized(_this), "nestedHeadersPlugin", null);
|
163
|
+
/**
|
164
|
+
* Event manager instance reference.
|
165
|
+
*
|
166
|
+
* @private
|
167
|
+
* @type {EventManager}
|
168
|
+
*/
|
157
169
|
_defineProperty(_assertThisInitialized(_this), "eventManager", new EventManager(_assertThisInitialized(_this)));
|
170
|
+
/**
|
171
|
+
* The NestedHeaders plugin StateManager instance.
|
172
|
+
*
|
173
|
+
* @private
|
174
|
+
* @type {StateManager}
|
175
|
+
*/
|
158
176
|
_defineProperty(_assertThisInitialized(_this), "headerStateManager", null);
|
177
|
+
/**
|
178
|
+
* Map of collapsed columns by the plugin.
|
179
|
+
*
|
180
|
+
* @private
|
181
|
+
* @type {HidingMap|null}
|
182
|
+
*/
|
159
183
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _collapsedColumnsMap, {
|
160
184
|
writable: true,
|
161
185
|
value: null
|
@@ -577,13 +601,6 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
577
601
|
get: function get() {
|
578
602
|
return [PLUGIN_KEY].concat(SETTING_KEYS);
|
579
603
|
}
|
580
|
-
|
581
|
-
/**
|
582
|
-
* Cached reference to the NestedHeaders plugin.
|
583
|
-
*
|
584
|
-
* @private
|
585
|
-
* @type {NestedHeaders}
|
586
|
-
*/
|
587
604
|
}]);
|
588
605
|
return CollapsibleColumns;
|
589
606
|
}(BasePlugin);
|
@@ -143,35 +143,115 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
|
|
143
143
|
args[_key] = arguments[_key];
|
144
144
|
}
|
145
145
|
_this = _super.call.apply(_super, [this].concat(args));
|
146
|
+
/**
|
147
|
+
* Counts how many column headers will be copied based on the passed range.
|
148
|
+
*
|
149
|
+
* @private
|
150
|
+
* @param {Array<{startRow: number, startCol: number, endRow: number, endCol: number}>} ranges Array of objects with properties `startRow`, `startCol`, `endRow` and `endCol`.
|
151
|
+
* @returns {{ columnHeadersCount: number }} Returns an object with keys that holds
|
152
|
+
* information with the number of copied headers.
|
153
|
+
*/
|
146
154
|
_classPrivateMethodInitSpec(_assertThisInitialized(_this), _countCopiedHeaders);
|
155
|
+
/**
|
156
|
+
* The maximum number of columns than can be copied to the clipboard.
|
157
|
+
*
|
158
|
+
* @type {number}
|
159
|
+
* @default Infinity
|
160
|
+
*/
|
147
161
|
_defineProperty(_assertThisInitialized(_this), "columnsLimit", Infinity);
|
162
|
+
/**
|
163
|
+
* The maximum number of rows than can be copied to the clipboard.
|
164
|
+
*
|
165
|
+
* @type {number}
|
166
|
+
* @default Infinity
|
167
|
+
*/
|
148
168
|
_defineProperty(_assertThisInitialized(_this), "rowsLimit", Infinity);
|
169
|
+
/**
|
170
|
+
* When pasting:
|
171
|
+
* - `'overwrite'`: overwrite the currently-selected cells
|
172
|
+
* - `'shift_down'`: move currently-selected cells down
|
173
|
+
* - `'shift_right'`: move currently-selected cells to the right
|
174
|
+
*
|
175
|
+
* @type {string}
|
176
|
+
* @default 'overwrite'
|
177
|
+
*/
|
149
178
|
_defineProperty(_assertThisInitialized(_this), "pasteMode", 'overwrite');
|
179
|
+
/**
|
180
|
+
* The UI container for the secondary focusable element.
|
181
|
+
*
|
182
|
+
* @type {HTMLElement}
|
183
|
+
*/
|
150
184
|
_defineProperty(_assertThisInitialized(_this), "uiContainer", _this.hot.rootDocument.body);
|
185
|
+
/**
|
186
|
+
* Shows the "Copy with headers" item in the context menu and extends the context menu with the
|
187
|
+
* `'copy_with_column_headers'` option that can be used for creating custom menus arrangements.
|
188
|
+
*
|
189
|
+
* @type {boolean}
|
190
|
+
* @default false
|
191
|
+
*/
|
151
192
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _enableCopyColumnHeaders, {
|
152
193
|
writable: true,
|
153
194
|
value: false
|
154
195
|
});
|
196
|
+
/**
|
197
|
+
* Shows the "Copy with group headers" item in the context menu and extends the context menu with the
|
198
|
+
* `'copy_with_column_group headers'` option that can be used for creating custom menus arrangements.
|
199
|
+
*
|
200
|
+
* @type {boolean}
|
201
|
+
* @default false
|
202
|
+
*/
|
155
203
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _enableCopyColumnGroupHeaders, {
|
156
204
|
writable: true,
|
157
205
|
value: false
|
158
206
|
});
|
207
|
+
/**
|
208
|
+
* Shows the "Copy headers only" item in the context menu and extends the context menu with the
|
209
|
+
* `'copy_column_headers_only'` option that can be used for creating custom menus arrangements.
|
210
|
+
*
|
211
|
+
* @type {boolean}
|
212
|
+
* @default false
|
213
|
+
*/
|
159
214
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _enableCopyColumnHeadersOnly, {
|
160
215
|
writable: true,
|
161
216
|
value: false
|
162
217
|
});
|
218
|
+
/**
|
219
|
+
* Defines the data range to copy. Possible values:
|
220
|
+
* * `'cells-only'` Copy selected cells only;
|
221
|
+
* * `'column-headers-only'` Copy column headers only;
|
222
|
+
* * `'with-all-column-headers'` Copy cells with all column headers;
|
223
|
+
* * `'with-column-headers'` Copy cells with column headers;
|
224
|
+
*
|
225
|
+
* @type {'cells-only' | 'column-headers-only' | 'with-all-column-headers' | 'with-column-headers'}
|
226
|
+
*/
|
163
227
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _copyMode, {
|
164
228
|
writable: true,
|
165
229
|
value: 'cells-only'
|
166
230
|
});
|
231
|
+
/**
|
232
|
+
* Flag that is used to prevent copying when the native shortcut was not pressed.
|
233
|
+
*
|
234
|
+
* @type {boolean}
|
235
|
+
*/
|
167
236
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _isTriggeredByCopy, {
|
168
237
|
writable: true,
|
169
238
|
value: false
|
170
239
|
});
|
240
|
+
/**
|
241
|
+
* Flag that is used to prevent cutting when the native shortcut was not pressed.
|
242
|
+
*
|
243
|
+
* @type {boolean}
|
244
|
+
*/
|
171
245
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _isTriggeredByCut, {
|
172
246
|
writable: true,
|
173
247
|
value: false
|
174
248
|
});
|
249
|
+
/**
|
250
|
+
* Class that helps generate copyable ranges based on the current selection for different copy mode
|
251
|
+
* types.
|
252
|
+
*
|
253
|
+
* @type {CopyableRangesFactory}
|
254
|
+
*/
|
175
255
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _copyableRangesFactory, {
|
176
256
|
writable: true,
|
177
257
|
value: new _copyableRanges.CopyableRangesFactory({
|
@@ -192,7 +272,19 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
|
|
192
272
|
}
|
193
273
|
})
|
194
274
|
});
|
275
|
+
/**
|
276
|
+
* Ranges of the cells coordinates, which should be used to copy/cut/paste actions.
|
277
|
+
*
|
278
|
+
* @private
|
279
|
+
* @type {Array<{startRow: number, startCol: number, endRow: number, endCol: number}>}
|
280
|
+
*/
|
195
281
|
_defineProperty(_assertThisInitialized(_this), "copyableRanges", []);
|
282
|
+
/**
|
283
|
+
* Provides focusable element to support IME and copy/paste/cut actions.
|
284
|
+
*
|
285
|
+
* @private
|
286
|
+
* @type {FocusableWrapper}
|
287
|
+
*/
|
196
288
|
_defineProperty(_assertThisInitialized(_this), "focusableElement", void 0);
|
197
289
|
return _this;
|
198
290
|
}
|
@@ -501,15 +593,6 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
|
|
501
593
|
var _this$hot$getActiveEd2;
|
502
594
|
return (_this$hot$getActiveEd2 = this.hot.getActiveEditor()) === null || _this$hot$getActiveEd2 === void 0 ? void 0 : _this$hot$getActiveEd2.isOpened();
|
503
595
|
}
|
504
|
-
|
505
|
-
/**
|
506
|
-
* Counts how many column headers will be copied based on the passed range.
|
507
|
-
*
|
508
|
-
* @private
|
509
|
-
* @param {Array<{startRow: number, startCol: number, endRow: number, endCol: number}>} ranges Array of objects with properties `startRow`, `startCol`, `endRow` and `endCol`.
|
510
|
-
* @returns {{ columnHeadersCount: number }} Returns an object with keys that holds
|
511
|
-
* information with the number of copied headers.
|
512
|
-
*/
|
513
596
|
}, {
|
514
597
|
key: "populateValues",
|
515
598
|
value:
|
@@ -795,13 +878,6 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
|
|
795
878
|
get: function get() {
|
796
879
|
return PLUGIN_PRIORITY;
|
797
880
|
}
|
798
|
-
|
799
|
-
/**
|
800
|
-
* The maximum number of columns than can be copied to the clipboard.
|
801
|
-
*
|
802
|
-
* @type {number}
|
803
|
-
* @default Infinity
|
804
|
-
*/
|
805
881
|
}]);
|
806
882
|
return CopyPaste;
|
807
883
|
}(_base.BasePlugin);
|
@@ -136,35 +136,115 @@ export var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
|
|
136
136
|
args[_key] = arguments[_key];
|
137
137
|
}
|
138
138
|
_this = _super.call.apply(_super, [this].concat(args));
|
139
|
+
/**
|
140
|
+
* Counts how many column headers will be copied based on the passed range.
|
141
|
+
*
|
142
|
+
* @private
|
143
|
+
* @param {Array<{startRow: number, startCol: number, endRow: number, endCol: number}>} ranges Array of objects with properties `startRow`, `startCol`, `endRow` and `endCol`.
|
144
|
+
* @returns {{ columnHeadersCount: number }} Returns an object with keys that holds
|
145
|
+
* information with the number of copied headers.
|
146
|
+
*/
|
139
147
|
_classPrivateMethodInitSpec(_assertThisInitialized(_this), _countCopiedHeaders);
|
148
|
+
/**
|
149
|
+
* The maximum number of columns than can be copied to the clipboard.
|
150
|
+
*
|
151
|
+
* @type {number}
|
152
|
+
* @default Infinity
|
153
|
+
*/
|
140
154
|
_defineProperty(_assertThisInitialized(_this), "columnsLimit", Infinity);
|
155
|
+
/**
|
156
|
+
* The maximum number of rows than can be copied to the clipboard.
|
157
|
+
*
|
158
|
+
* @type {number}
|
159
|
+
* @default Infinity
|
160
|
+
*/
|
141
161
|
_defineProperty(_assertThisInitialized(_this), "rowsLimit", Infinity);
|
162
|
+
/**
|
163
|
+
* When pasting:
|
164
|
+
* - `'overwrite'`: overwrite the currently-selected cells
|
165
|
+
* - `'shift_down'`: move currently-selected cells down
|
166
|
+
* - `'shift_right'`: move currently-selected cells to the right
|
167
|
+
*
|
168
|
+
* @type {string}
|
169
|
+
* @default 'overwrite'
|
170
|
+
*/
|
142
171
|
_defineProperty(_assertThisInitialized(_this), "pasteMode", 'overwrite');
|
172
|
+
/**
|
173
|
+
* The UI container for the secondary focusable element.
|
174
|
+
*
|
175
|
+
* @type {HTMLElement}
|
176
|
+
*/
|
143
177
|
_defineProperty(_assertThisInitialized(_this), "uiContainer", _this.hot.rootDocument.body);
|
178
|
+
/**
|
179
|
+
* Shows the "Copy with headers" item in the context menu and extends the context menu with the
|
180
|
+
* `'copy_with_column_headers'` option that can be used for creating custom menus arrangements.
|
181
|
+
*
|
182
|
+
* @type {boolean}
|
183
|
+
* @default false
|
184
|
+
*/
|
144
185
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _enableCopyColumnHeaders, {
|
145
186
|
writable: true,
|
146
187
|
value: false
|
147
188
|
});
|
189
|
+
/**
|
190
|
+
* Shows the "Copy with group headers" item in the context menu and extends the context menu with the
|
191
|
+
* `'copy_with_column_group headers'` option that can be used for creating custom menus arrangements.
|
192
|
+
*
|
193
|
+
* @type {boolean}
|
194
|
+
* @default false
|
195
|
+
*/
|
148
196
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _enableCopyColumnGroupHeaders, {
|
149
197
|
writable: true,
|
150
198
|
value: false
|
151
199
|
});
|
200
|
+
/**
|
201
|
+
* Shows the "Copy headers only" item in the context menu and extends the context menu with the
|
202
|
+
* `'copy_column_headers_only'` option that can be used for creating custom menus arrangements.
|
203
|
+
*
|
204
|
+
* @type {boolean}
|
205
|
+
* @default false
|
206
|
+
*/
|
152
207
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _enableCopyColumnHeadersOnly, {
|
153
208
|
writable: true,
|
154
209
|
value: false
|
155
210
|
});
|
211
|
+
/**
|
212
|
+
* Defines the data range to copy. Possible values:
|
213
|
+
* * `'cells-only'` Copy selected cells only;
|
214
|
+
* * `'column-headers-only'` Copy column headers only;
|
215
|
+
* * `'with-all-column-headers'` Copy cells with all column headers;
|
216
|
+
* * `'with-column-headers'` Copy cells with column headers;
|
217
|
+
*
|
218
|
+
* @type {'cells-only' | 'column-headers-only' | 'with-all-column-headers' | 'with-column-headers'}
|
219
|
+
*/
|
156
220
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _copyMode, {
|
157
221
|
writable: true,
|
158
222
|
value: 'cells-only'
|
159
223
|
});
|
224
|
+
/**
|
225
|
+
* Flag that is used to prevent copying when the native shortcut was not pressed.
|
226
|
+
*
|
227
|
+
* @type {boolean}
|
228
|
+
*/
|
160
229
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _isTriggeredByCopy, {
|
161
230
|
writable: true,
|
162
231
|
value: false
|
163
232
|
});
|
233
|
+
/**
|
234
|
+
* Flag that is used to prevent cutting when the native shortcut was not pressed.
|
235
|
+
*
|
236
|
+
* @type {boolean}
|
237
|
+
*/
|
164
238
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _isTriggeredByCut, {
|
165
239
|
writable: true,
|
166
240
|
value: false
|
167
241
|
});
|
242
|
+
/**
|
243
|
+
* Class that helps generate copyable ranges based on the current selection for different copy mode
|
244
|
+
* types.
|
245
|
+
*
|
246
|
+
* @type {CopyableRangesFactory}
|
247
|
+
*/
|
168
248
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _copyableRangesFactory, {
|
169
249
|
writable: true,
|
170
250
|
value: new CopyableRangesFactory({
|
@@ -185,7 +265,19 @@ export var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
|
|
185
265
|
}
|
186
266
|
})
|
187
267
|
});
|
268
|
+
/**
|
269
|
+
* Ranges of the cells coordinates, which should be used to copy/cut/paste actions.
|
270
|
+
*
|
271
|
+
* @private
|
272
|
+
* @type {Array<{startRow: number, startCol: number, endRow: number, endCol: number}>}
|
273
|
+
*/
|
188
274
|
_defineProperty(_assertThisInitialized(_this), "copyableRanges", []);
|
275
|
+
/**
|
276
|
+
* Provides focusable element to support IME and copy/paste/cut actions.
|
277
|
+
*
|
278
|
+
* @private
|
279
|
+
* @type {FocusableWrapper}
|
280
|
+
*/
|
189
281
|
_defineProperty(_assertThisInitialized(_this), "focusableElement", void 0);
|
190
282
|
return _this;
|
191
283
|
}
|
@@ -494,15 +586,6 @@ export var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
|
|
494
586
|
var _this$hot$getActiveEd2;
|
495
587
|
return (_this$hot$getActiveEd2 = this.hot.getActiveEditor()) === null || _this$hot$getActiveEd2 === void 0 ? void 0 : _this$hot$getActiveEd2.isOpened();
|
496
588
|
}
|
497
|
-
|
498
|
-
/**
|
499
|
-
* Counts how many column headers will be copied based on the passed range.
|
500
|
-
*
|
501
|
-
* @private
|
502
|
-
* @param {Array<{startRow: number, startCol: number, endRow: number, endCol: number}>} ranges Array of objects with properties `startRow`, `startCol`, `endRow` and `endCol`.
|
503
|
-
* @returns {{ columnHeadersCount: number }} Returns an object with keys that holds
|
504
|
-
* information with the number of copied headers.
|
505
|
-
*/
|
506
589
|
}, {
|
507
590
|
key: "populateValues",
|
508
591
|
value:
|
@@ -788,13 +871,6 @@ export var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
|
|
788
871
|
get: function get() {
|
789
872
|
return PLUGIN_PRIORITY;
|
790
873
|
}
|
791
|
-
|
792
|
-
/**
|
793
|
-
* The maximum number of columns than can be copied to the clipboard.
|
794
|
-
*
|
795
|
-
* @type {number}
|
796
|
-
* @default Infinity
|
797
|
-
*/
|
798
874
|
}]);
|
799
875
|
return CopyPaste;
|
800
876
|
}(BasePlugin);
|
@@ -90,7 +90,21 @@ var CopyableRangesFactory = /*#__PURE__*/function () {
|
|
90
90
|
columnsLimit = _ref.columnsLimit,
|
91
91
|
countColumnHeaders = _ref.countColumnHeaders;
|
92
92
|
_classCallCheck(this, CopyableRangesFactory);
|
93
|
+
/**
|
94
|
+
* Trimmed the rows range to the limit.
|
95
|
+
*
|
96
|
+
* @param {*} startRow The lowest row index in the range.
|
97
|
+
* @param {*} endRow The highest row index in the range.
|
98
|
+
* @returns {number} Returns trimmed row index if it exceeds the limit.
|
99
|
+
*/
|
93
100
|
_classPrivateMethodInitSpec(this, _trimRowsRange);
|
101
|
+
/**
|
102
|
+
* Trimmed the columns range to the limit.
|
103
|
+
*
|
104
|
+
* @param {*} startColumn The lowest column index in the range.
|
105
|
+
* @param {*} endColumn The highest column index in the range.
|
106
|
+
* @returns {number} Returns trimmed column index if it exceeds the limit.
|
107
|
+
*/
|
94
108
|
_classPrivateMethodInitSpec(this, _trimColumnsRange);
|
95
109
|
_classPrivateFieldInitSpec(this, _selectedRange, {
|
96
110
|
writable: true,
|
@@ -218,14 +232,6 @@ var CopyableRangesFactory = /*#__PURE__*/function () {
|
|
218
232
|
endCol: finalEndCol
|
219
233
|
};
|
220
234
|
}
|
221
|
-
|
222
|
-
/**
|
223
|
-
* Trimmed the columns range to the limit.
|
224
|
-
*
|
225
|
-
* @param {*} startColumn The lowest column index in the range.
|
226
|
-
* @param {*} endColumn The highest column index in the range.
|
227
|
-
* @returns {number} Returns trimmed column index if it exceeds the limit.
|
228
|
-
*/
|
229
235
|
}]);
|
230
236
|
return CopyableRangesFactory;
|
231
237
|
}();
|
@@ -85,7 +85,21 @@ export var CopyableRangesFactory = /*#__PURE__*/function () {
|
|
85
85
|
columnsLimit = _ref.columnsLimit,
|
86
86
|
countColumnHeaders = _ref.countColumnHeaders;
|
87
87
|
_classCallCheck(this, CopyableRangesFactory);
|
88
|
+
/**
|
89
|
+
* Trimmed the rows range to the limit.
|
90
|
+
*
|
91
|
+
* @param {*} startRow The lowest row index in the range.
|
92
|
+
* @param {*} endRow The highest row index in the range.
|
93
|
+
* @returns {number} Returns trimmed row index if it exceeds the limit.
|
94
|
+
*/
|
88
95
|
_classPrivateMethodInitSpec(this, _trimRowsRange);
|
96
|
+
/**
|
97
|
+
* Trimmed the columns range to the limit.
|
98
|
+
*
|
99
|
+
* @param {*} startColumn The lowest column index in the range.
|
100
|
+
* @param {*} endColumn The highest column index in the range.
|
101
|
+
* @returns {number} Returns trimmed column index if it exceeds the limit.
|
102
|
+
*/
|
89
103
|
_classPrivateMethodInitSpec(this, _trimColumnsRange);
|
90
104
|
_classPrivateFieldInitSpec(this, _selectedRange, {
|
91
105
|
writable: true,
|
@@ -213,14 +227,6 @@ export var CopyableRangesFactory = /*#__PURE__*/function () {
|
|
213
227
|
endCol: finalEndCol
|
214
228
|
};
|
215
229
|
}
|
216
|
-
|
217
|
-
/**
|
218
|
-
* Trimmed the columns range to the limit.
|
219
|
-
*
|
220
|
-
* @param {*} startColumn The lowest column index in the range.
|
221
|
-
* @param {*} endColumn The highest column index in the range.
|
222
|
-
* @returns {number} Returns trimmed column index if it exceeds the limit.
|
223
|
-
*/
|
224
230
|
}]);
|
225
231
|
return CopyableRangesFactory;
|
226
232
|
}();
|
@@ -129,6 +129,12 @@ var CustomBorders = /*#__PURE__*/function (_BasePlugin) {
|
|
129
129
|
args[_key] = arguments[_key];
|
130
130
|
}
|
131
131
|
_this = _super.call.apply(_super, [this].concat(args));
|
132
|
+
/**
|
133
|
+
* Saved borders.
|
134
|
+
*
|
135
|
+
* @private
|
136
|
+
* @type {Array}
|
137
|
+
*/
|
132
138
|
_defineProperty(_assertThisInitialized(_this), "savedBorders", []);
|
133
139
|
return _this;
|
134
140
|
}
|
@@ -879,13 +885,6 @@ var CustomBorders = /*#__PURE__*/function (_BasePlugin) {
|
|
879
885
|
get: function get() {
|
880
886
|
return PLUGIN_PRIORITY;
|
881
887
|
}
|
882
|
-
|
883
|
-
/**
|
884
|
-
* Saved borders.
|
885
|
-
*
|
886
|
-
* @private
|
887
|
-
* @type {Array}
|
888
|
-
*/
|
889
888
|
}]);
|
890
889
|
return CustomBorders;
|
891
890
|
}(_base.BasePlugin);
|
@@ -120,6 +120,12 @@ export var CustomBorders = /*#__PURE__*/function (_BasePlugin) {
|
|
120
120
|
args[_key] = arguments[_key];
|
121
121
|
}
|
122
122
|
_this = _super.call.apply(_super, [this].concat(args));
|
123
|
+
/**
|
124
|
+
* Saved borders.
|
125
|
+
*
|
126
|
+
* @private
|
127
|
+
* @type {Array}
|
128
|
+
*/
|
123
129
|
_defineProperty(_assertThisInitialized(_this), "savedBorders", []);
|
124
130
|
return _this;
|
125
131
|
}
|
@@ -870,13 +876,6 @@ export var CustomBorders = /*#__PURE__*/function (_BasePlugin) {
|
|
870
876
|
get: function get() {
|
871
877
|
return PLUGIN_PRIORITY;
|
872
878
|
}
|
873
|
-
|
874
|
-
/**
|
875
|
-
* Saved borders.
|
876
|
-
*
|
877
|
-
* @private
|
878
|
-
* @type {Array}
|
879
|
-
*/
|
880
879
|
}]);
|
881
880
|
return CustomBorders;
|
882
881
|
}(BasePlugin);
|
@@ -154,14 +154,6 @@ var Filters = /*#__PURE__*/function (_BasePlugin) {
|
|
154
154
|
* @type {Map}
|
155
155
|
*/
|
156
156
|
_this.components = new Map([['filter_by_condition', null], ['filter_operators', null], ['filter_by_condition2', null], ['filter_by_value', null], ['filter_action_bar', null]]);
|
157
|
-
/**
|
158
|
-
* Object containing information about last selected column physical and visual index for added filter conditions.
|
159
|
-
*
|
160
|
-
* @private
|
161
|
-
* @type {object}
|
162
|
-
* @default null
|
163
|
-
*/
|
164
|
-
_this.lastSelectedColumn = null;
|
165
157
|
/**
|
166
158
|
* Map of skipped rows by plugin.
|
167
159
|
*
|
@@ -144,14 +144,6 @@ export var Filters = /*#__PURE__*/function (_BasePlugin) {
|
|
144
144
|
* @type {Map}
|
145
145
|
*/
|
146
146
|
_this.components = new Map([['filter_by_condition', null], ['filter_operators', null], ['filter_by_condition2', null], ['filter_by_value', null], ['filter_action_bar', null]]);
|
147
|
-
/**
|
148
|
-
* Object containing information about last selected column physical and visual index for added filter conditions.
|
149
|
-
*
|
150
|
-
* @private
|
151
|
-
* @type {object}
|
152
|
-
* @default null
|
153
|
-
*/
|
154
|
-
_this.lastSelectedColumn = null;
|
155
147
|
/**
|
156
148
|
* Map of skipped rows by plugin.
|
157
149
|
*
|
@@ -123,14 +123,31 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
123
123
|
_args[_key] = arguments[_key];
|
124
124
|
}
|
125
125
|
_this = _super.call.apply(_super, [this].concat(_args));
|
126
|
+
/**
|
127
|
+
* Flag used to bypass hooks in internal operations.
|
128
|
+
*
|
129
|
+
* @private
|
130
|
+
* @type {boolean}
|
131
|
+
*/
|
126
132
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _internalOperationPending, {
|
127
133
|
writable: true,
|
128
134
|
value: false
|
129
135
|
});
|
136
|
+
/**
|
137
|
+
* Flag needed to mark if Handsontable was initialized with no data.
|
138
|
+
* (Required to work around the fact, that Handsontable auto-generates sample data, when no data is provided).
|
139
|
+
*
|
140
|
+
* @type {boolean}
|
141
|
+
*/
|
130
142
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _hotWasInitializedWithEmptyData, {
|
131
143
|
writable: true,
|
132
144
|
value: false
|
133
145
|
});
|
146
|
+
/**
|
147
|
+
* The list of the HyperFormula listeners.
|
148
|
+
*
|
149
|
+
* @type {Array}
|
150
|
+
*/
|
134
151
|
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _engineListeners, {
|
135
152
|
writable: true,
|
136
153
|
value: [['valuesUpdated', function () {
|
@@ -153,8 +170,25 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
153
170
|
return (_this7 = _this).onEngineSheetRemoved.apply(_this7, arguments);
|
154
171
|
}]]
|
155
172
|
});
|
173
|
+
/**
|
174
|
+
* Static register used to set up one global HyperFormula instance.
|
175
|
+
* TODO: currently used in tests, might be removed later.
|
176
|
+
*
|
177
|
+
* @private
|
178
|
+
* @type {object}
|
179
|
+
*/
|
156
180
|
_defineProperty(_assertThisInitialized(_this), "staticRegister", (0, _staticRegister.default)('formulas'));
|
181
|
+
/**
|
182
|
+
* The engine instance that will be used for this instance of Handsontable.
|
183
|
+
*
|
184
|
+
* @type {HyperFormula|null}
|
185
|
+
*/
|
157
186
|
_defineProperty(_assertThisInitialized(_this), "engine", null);
|
187
|
+
/**
|
188
|
+
* HyperFormula's sheet name.
|
189
|
+
*
|
190
|
+
* @type {string|null}
|
191
|
+
*/
|
158
192
|
_defineProperty(_assertThisInitialized(_this), "sheetName", null);
|
159
193
|
return _this;
|
160
194
|
}
|
@@ -1221,13 +1255,6 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
1221
1255
|
get: function get() {
|
1222
1256
|
return PLUGIN_PRIORITY;
|
1223
1257
|
}
|
1224
|
-
|
1225
|
-
/**
|
1226
|
-
* Flag used to bypass hooks in internal operations.
|
1227
|
-
*
|
1228
|
-
* @private
|
1229
|
-
* @type {boolean}
|
1230
|
-
*/
|
1231
1258
|
}]);
|
1232
1259
|
return Formulas;
|
1233
1260
|
}(_base.BasePlugin);
|