handsontable 12.3.3-next-018f495-20230327 → 12.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/3rdparty/walkontable/src/core/_base.js +20 -16
  2. package/3rdparty/walkontable/src/core/_base.mjs +20 -16
  3. package/CHANGELOG.md +15 -23
  4. package/base.js +2 -2
  5. package/base.mjs +2 -2
  6. package/dist/handsontable.css +2 -2
  7. package/dist/handsontable.full.css +2 -2
  8. package/dist/handsontable.full.js +3077 -3595
  9. package/dist/handsontable.full.min.css +2 -2
  10. package/dist/handsontable.full.min.js +226 -240
  11. package/dist/handsontable.js +112 -310
  12. package/dist/handsontable.min.css +2 -2
  13. package/dist/handsontable.min.js +3 -3
  14. package/editors/autocompleteEditor/autocompleteEditor.js +9 -8
  15. package/editors/autocompleteEditor/autocompleteEditor.mjs +9 -8
  16. package/helpers/mixed.js +1 -1
  17. package/helpers/mixed.mjs +1 -1
  18. package/package.json +1 -1
  19. package/plugins/base/base.js +10 -9
  20. package/plugins/base/base.mjs +10 -9
  21. package/plugins/collapsibleColumns/collapsibleColumns.js +7 -24
  22. package/plugins/collapsibleColumns/collapsibleColumns.mjs +7 -24
  23. package/plugins/copyPaste/copyPaste.js +16 -92
  24. package/plugins/copyPaste/copyPaste.mjs +16 -92
  25. package/plugins/copyPaste/copyableRanges.js +8 -14
  26. package/plugins/copyPaste/copyableRanges.mjs +8 -14
  27. package/plugins/customBorders/customBorders.js +7 -6
  28. package/plugins/customBorders/customBorders.mjs +7 -6
  29. package/plugins/formulas/formulas.js +7 -34
  30. package/plugins/formulas/formulas.mjs +7 -34
  31. package/plugins/hiddenColumns/hiddenColumns.js +7 -12
  32. package/plugins/hiddenColumns/hiddenColumns.mjs +7 -12
  33. package/plugins/hiddenRows/hiddenRows.js +7 -12
  34. package/plugins/hiddenRows/hiddenRows.mjs +7 -12
  35. package/plugins/nestedHeaders/nestedHeaders.js +7 -26
  36. package/plugins/nestedHeaders/nestedHeaders.mjs +7 -26
  37. package/plugins/nestedHeaders/stateManager/index.js +0 -18
  38. package/plugins/nestedHeaders/stateManager/index.mjs +0 -18
  39. package/plugins/nestedHeaders/stateManager/sourceSettings.js +0 -19
  40. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +0 -19
  41. package/translations/changesObservable/observer.js +0 -7
  42. package/translations/changesObservable/observer.mjs +0 -7
  43. package/translations/maps/linkedPhysicalIndexToValueMap.js +0 -6
  44. package/translations/maps/linkedPhysicalIndexToValueMap.mjs +0 -6
@@ -67,14 +67,6 @@ var AutocompleteEditor = /*#__PURE__*/function (_HandsontableEditor) {
67
67
  *
68
68
  * @type {string}
69
69
  */
70
- /**
71
- * Filters and sorts by relevance.
72
- *
73
- * @param {*} value The selected value.
74
- * @param {string[]} choices The list of available choices.
75
- * @param {boolean} caseSensitive Indicates if it's sorted by case.
76
- * @returns {number[]} Array of indexes in original choices array.
77
- */
78
70
  _defineProperty(_assertThisInitialized(_this), "sortByRelevance", function (value, choices, caseSensitive) {
79
71
  var choicesRelevance = [];
80
72
  var result = [];
@@ -577,6 +569,15 @@ var AutocompleteEditor = /*#__PURE__*/function (_HandsontableEditor) {
577
569
  }
578
570
  }
579
571
  }
572
+
573
+ /**
574
+ * Filters and sorts by relevance.
575
+ *
576
+ * @param {*} value The selected value.
577
+ * @param {string[]} choices The list of available choices.
578
+ * @param {boolean} caseSensitive Indicates if it's sorted by case.
579
+ * @returns {number[]} Array of indexes in original choices array.
580
+ */
580
581
  }], [{
581
582
  key: "EDITOR_TYPE",
582
583
  get: function get() {
@@ -62,14 +62,6 @@ export var AutocompleteEditor = /*#__PURE__*/function (_HandsontableEditor) {
62
62
  *
63
63
  * @type {string}
64
64
  */
65
- /**
66
- * Filters and sorts by relevance.
67
- *
68
- * @param {*} value The selected value.
69
- * @param {string[]} choices The list of available choices.
70
- * @param {boolean} caseSensitive Indicates if it's sorted by case.
71
- * @returns {number[]} Array of indexes in original choices array.
72
- */
73
65
  _defineProperty(_assertThisInitialized(_this), "sortByRelevance", function (value, choices, caseSensitive) {
74
66
  var choicesRelevance = [];
75
67
  var result = [];
@@ -572,6 +564,15 @@ export var AutocompleteEditor = /*#__PURE__*/function (_HandsontableEditor) {
572
564
  }
573
565
  }
574
566
  }
567
+
568
+ /**
569
+ * Filters and sorts by relevance.
570
+ *
571
+ * @param {*} value The selected value.
572
+ * @param {string[]} choices The list of available choices.
573
+ * @param {boolean} caseSensitive Indicates if it's sorted by case.
574
+ * @returns {number[]} Array of indexes in original choices array.
575
+ */
575
576
  }], [{
576
577
  key: "EDITOR_TYPE",
577
578
  get: function get() {
package/helpers/mixed.js CHANGED
@@ -152,7 +152,7 @@ var domMessages = {
152
152
  function _injectProductInfo(key, element) {
153
153
  var hasValidType = !isEmpty(key);
154
154
  var isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
155
- var hotVersion = "12.3.3-next-018f495-20230327";
155
+ var hotVersion = "12.3.3";
156
156
  var keyValidityDate;
157
157
  var consoleMessageState = 'invalid';
158
158
  var domMessageState = 'invalid';
package/helpers/mixed.mjs CHANGED
@@ -142,7 +142,7 @@ var domMessages = {
142
142
  export function _injectProductInfo(key, element) {
143
143
  var hasValidType = !isEmpty(key);
144
144
  var isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
145
- var hotVersion = "12.3.3-next-018f495-20230327";
145
+ var hotVersion = "12.3.3";
146
146
  var keyValidityDate;
147
147
  var consoleMessageState = 'invalid';
148
148
  var domMessageState = 'invalid';
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/handsontable/handsontable/issues"
11
11
  },
12
12
  "author": "Handsoncode <hello@handsontable.com>",
13
- "version": "12.3.3-next-018f495-20230327",
13
+ "version": "12.3.3",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
@@ -65,15 +65,6 @@ var BasePlugin = /*#__PURE__*/function () {
65
65
  function BasePlugin(hotInstance) {
66
66
  var _this = this;
67
67
  _classCallCheck(this, BasePlugin);
68
- /**
69
- * Check if any of the keys defined in `SETTING_KEYS` configuration of the plugin is present in the provided
70
- * config object, or if the `SETTING_KEYS` configuration states that the plugin is relevant to the config object
71
- * regardless of its contents.
72
- *
73
- * @private
74
- * @param {Handsontable.DefaultSettings} settings The config object passed to `updateSettings`.
75
- * @returns {boolean}
76
- */
77
68
  _classPrivateMethodInitSpec(this, _isRelevantToSettings);
78
69
  /**
79
70
  * Handsontable instance.
@@ -237,6 +228,16 @@ var BasePlugin = /*#__PURE__*/function () {
237
228
  this.pluginsInitializedCallbacks.push(callback);
238
229
  }
239
230
  }
231
+
232
+ /**
233
+ * Check if any of the keys defined in `SETTING_KEYS` configuration of the plugin is present in the provided
234
+ * config object, or if the `SETTING_KEYS` configuration states that the plugin is relevant to the config object
235
+ * regardless of its contents.
236
+ *
237
+ * @private
238
+ * @param {Handsontable.DefaultSettings} settings The config object passed to `updateSettings`.
239
+ * @returns {boolean}
240
+ */
240
241
  }, {
241
242
  key: "onAfterPluginsInitialized",
242
243
  value:
@@ -60,15 +60,6 @@ export var BasePlugin = /*#__PURE__*/function () {
60
60
  function BasePlugin(hotInstance) {
61
61
  var _this = this;
62
62
  _classCallCheck(this, BasePlugin);
63
- /**
64
- * Check if any of the keys defined in `SETTING_KEYS` configuration of the plugin is present in the provided
65
- * config object, or if the `SETTING_KEYS` configuration states that the plugin is relevant to the config object
66
- * regardless of its contents.
67
- *
68
- * @private
69
- * @param {Handsontable.DefaultSettings} settings The config object passed to `updateSettings`.
70
- * @returns {boolean}
71
- */
72
63
  _classPrivateMethodInitSpec(this, _isRelevantToSettings);
73
64
  /**
74
65
  * Handsontable instance.
@@ -232,6 +223,16 @@ export var BasePlugin = /*#__PURE__*/function () {
232
223
  this.pluginsInitializedCallbacks.push(callback);
233
224
  }
234
225
  }
226
+
227
+ /**
228
+ * Check if any of the keys defined in `SETTING_KEYS` configuration of the plugin is present in the provided
229
+ * config object, or if the `SETTING_KEYS` configuration states that the plugin is relevant to the config object
230
+ * regardless of its contents.
231
+ *
232
+ * @private
233
+ * @param {Handsontable.DefaultSettings} settings The config object passed to `updateSettings`.
234
+ * @returns {boolean}
235
+ */
235
236
  }, {
236
237
  key: "onAfterPluginsInitialized",
237
238
  value:
@@ -160,33 +160,9 @@ 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
- */
169
163
  _defineProperty(_assertThisInitialized(_this), "nestedHeadersPlugin", null);
170
- /**
171
- * Event manager instance reference.
172
- *
173
- * @private
174
- * @type {EventManager}
175
- */
176
164
  _defineProperty(_assertThisInitialized(_this), "eventManager", new _eventManager.default(_assertThisInitialized(_this)));
177
- /**
178
- * The NestedHeaders plugin StateManager instance.
179
- *
180
- * @private
181
- * @type {StateManager}
182
- */
183
165
  _defineProperty(_assertThisInitialized(_this), "headerStateManager", null);
184
- /**
185
- * Map of collapsed columns by the plugin.
186
- *
187
- * @private
188
- * @type {HidingMap|null}
189
- */
190
166
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _collapsedColumnsMap, {
191
167
  writable: true,
192
168
  value: null
@@ -608,6 +584,13 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
608
584
  get: function get() {
609
585
  return [PLUGIN_KEY].concat(SETTING_KEYS);
610
586
  }
587
+
588
+ /**
589
+ * Cached reference to the NestedHeaders plugin.
590
+ *
591
+ * @private
592
+ * @type {NestedHeaders}
593
+ */
611
594
  }]);
612
595
  return CollapsibleColumns;
613
596
  }(_base.BasePlugin);
@@ -153,33 +153,9 @@ 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
- */
162
156
  _defineProperty(_assertThisInitialized(_this), "nestedHeadersPlugin", null);
163
- /**
164
- * Event manager instance reference.
165
- *
166
- * @private
167
- * @type {EventManager}
168
- */
169
157
  _defineProperty(_assertThisInitialized(_this), "eventManager", new EventManager(_assertThisInitialized(_this)));
170
- /**
171
- * The NestedHeaders plugin StateManager instance.
172
- *
173
- * @private
174
- * @type {StateManager}
175
- */
176
158
  _defineProperty(_assertThisInitialized(_this), "headerStateManager", null);
177
- /**
178
- * Map of collapsed columns by the plugin.
179
- *
180
- * @private
181
- * @type {HidingMap|null}
182
- */
183
159
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _collapsedColumnsMap, {
184
160
  writable: true,
185
161
  value: null
@@ -601,6 +577,13 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
601
577
  get: function get() {
602
578
  return [PLUGIN_KEY].concat(SETTING_KEYS);
603
579
  }
580
+
581
+ /**
582
+ * Cached reference to the NestedHeaders plugin.
583
+ *
584
+ * @private
585
+ * @type {NestedHeaders}
586
+ */
604
587
  }]);
605
588
  return CollapsibleColumns;
606
589
  }(BasePlugin);
@@ -143,115 +143,35 @@ 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
- */
154
146
  _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
- */
161
147
  _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
- */
168
148
  _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
- */
178
149
  _defineProperty(_assertThisInitialized(_this), "pasteMode", 'overwrite');
179
- /**
180
- * The UI container for the secondary focusable element.
181
- *
182
- * @type {HTMLElement}
183
- */
184
150
  _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
- */
192
151
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _enableCopyColumnHeaders, {
193
152
  writable: true,
194
153
  value: false
195
154
  });
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
- */
203
155
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _enableCopyColumnGroupHeaders, {
204
156
  writable: true,
205
157
  value: false
206
158
  });
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
- */
214
159
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _enableCopyColumnHeadersOnly, {
215
160
  writable: true,
216
161
  value: false
217
162
  });
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
- */
227
163
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _copyMode, {
228
164
  writable: true,
229
165
  value: 'cells-only'
230
166
  });
231
- /**
232
- * Flag that is used to prevent copying when the native shortcut was not pressed.
233
- *
234
- * @type {boolean}
235
- */
236
167
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _isTriggeredByCopy, {
237
168
  writable: true,
238
169
  value: false
239
170
  });
240
- /**
241
- * Flag that is used to prevent cutting when the native shortcut was not pressed.
242
- *
243
- * @type {boolean}
244
- */
245
171
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _isTriggeredByCut, {
246
172
  writable: true,
247
173
  value: false
248
174
  });
249
- /**
250
- * Class that helps generate copyable ranges based on the current selection for different copy mode
251
- * types.
252
- *
253
- * @type {CopyableRangesFactory}
254
- */
255
175
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _copyableRangesFactory, {
256
176
  writable: true,
257
177
  value: new _copyableRanges.CopyableRangesFactory({
@@ -272,19 +192,7 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
272
192
  }
273
193
  })
274
194
  });
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
- */
281
195
  _defineProperty(_assertThisInitialized(_this), "copyableRanges", []);
282
- /**
283
- * Provides focusable element to support IME and copy/paste/cut actions.
284
- *
285
- * @private
286
- * @type {FocusableWrapper}
287
- */
288
196
  _defineProperty(_assertThisInitialized(_this), "focusableElement", void 0);
289
197
  return _this;
290
198
  }
@@ -593,6 +501,15 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
593
501
  var _this$hot$getActiveEd2;
594
502
  return (_this$hot$getActiveEd2 = this.hot.getActiveEditor()) === null || _this$hot$getActiveEd2 === void 0 ? void 0 : _this$hot$getActiveEd2.isOpened();
595
503
  }
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
+ */
596
513
  }, {
597
514
  key: "populateValues",
598
515
  value:
@@ -878,6 +795,13 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
878
795
  get: function get() {
879
796
  return PLUGIN_PRIORITY;
880
797
  }
798
+
799
+ /**
800
+ * The maximum number of columns than can be copied to the clipboard.
801
+ *
802
+ * @type {number}
803
+ * @default Infinity
804
+ */
881
805
  }]);
882
806
  return CopyPaste;
883
807
  }(_base.BasePlugin);
@@ -136,115 +136,35 @@ 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
- */
147
139
  _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
- */
154
140
  _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
- */
161
141
  _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
- */
171
142
  _defineProperty(_assertThisInitialized(_this), "pasteMode", 'overwrite');
172
- /**
173
- * The UI container for the secondary focusable element.
174
- *
175
- * @type {HTMLElement}
176
- */
177
143
  _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
- */
185
144
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _enableCopyColumnHeaders, {
186
145
  writable: true,
187
146
  value: false
188
147
  });
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
- */
196
148
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _enableCopyColumnGroupHeaders, {
197
149
  writable: true,
198
150
  value: false
199
151
  });
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
- */
207
152
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _enableCopyColumnHeadersOnly, {
208
153
  writable: true,
209
154
  value: false
210
155
  });
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
- */
220
156
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _copyMode, {
221
157
  writable: true,
222
158
  value: 'cells-only'
223
159
  });
224
- /**
225
- * Flag that is used to prevent copying when the native shortcut was not pressed.
226
- *
227
- * @type {boolean}
228
- */
229
160
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _isTriggeredByCopy, {
230
161
  writable: true,
231
162
  value: false
232
163
  });
233
- /**
234
- * Flag that is used to prevent cutting when the native shortcut was not pressed.
235
- *
236
- * @type {boolean}
237
- */
238
164
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _isTriggeredByCut, {
239
165
  writable: true,
240
166
  value: false
241
167
  });
242
- /**
243
- * Class that helps generate copyable ranges based on the current selection for different copy mode
244
- * types.
245
- *
246
- * @type {CopyableRangesFactory}
247
- */
248
168
  _classPrivateFieldInitSpec(_assertThisInitialized(_this), _copyableRangesFactory, {
249
169
  writable: true,
250
170
  value: new CopyableRangesFactory({
@@ -265,19 +185,7 @@ export var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
265
185
  }
266
186
  })
267
187
  });
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
- */
274
188
  _defineProperty(_assertThisInitialized(_this), "copyableRanges", []);
275
- /**
276
- * Provides focusable element to support IME and copy/paste/cut actions.
277
- *
278
- * @private
279
- * @type {FocusableWrapper}
280
- */
281
189
  _defineProperty(_assertThisInitialized(_this), "focusableElement", void 0);
282
190
  return _this;
283
191
  }
@@ -586,6 +494,15 @@ export var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
586
494
  var _this$hot$getActiveEd2;
587
495
  return (_this$hot$getActiveEd2 = this.hot.getActiveEditor()) === null || _this$hot$getActiveEd2 === void 0 ? void 0 : _this$hot$getActiveEd2.isOpened();
588
496
  }
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
+ */
589
506
  }, {
590
507
  key: "populateValues",
591
508
  value:
@@ -871,6 +788,13 @@ export var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
871
788
  get: function get() {
872
789
  return PLUGIN_PRIORITY;
873
790
  }
791
+
792
+ /**
793
+ * The maximum number of columns than can be copied to the clipboard.
794
+ *
795
+ * @type {number}
796
+ * @default Infinity
797
+ */
874
798
  }]);
875
799
  return CopyPaste;
876
800
  }(BasePlugin);
@@ -90,21 +90,7 @@ 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
- */
100
93
  _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
- */
108
94
  _classPrivateMethodInitSpec(this, _trimColumnsRange);
109
95
  _classPrivateFieldInitSpec(this, _selectedRange, {
110
96
  writable: true,
@@ -232,6 +218,14 @@ var CopyableRangesFactory = /*#__PURE__*/function () {
232
218
  endCol: finalEndCol
233
219
  };
234
220
  }
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
+ */
235
229
  }]);
236
230
  return CopyableRangesFactory;
237
231
  }();
@@ -85,21 +85,7 @@ 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
- */
95
88
  _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
- */
103
89
  _classPrivateMethodInitSpec(this, _trimColumnsRange);
104
90
  _classPrivateFieldInitSpec(this, _selectedRange, {
105
91
  writable: true,
@@ -227,6 +213,14 @@ export var CopyableRangesFactory = /*#__PURE__*/function () {
227
213
  endCol: finalEndCol
228
214
  };
229
215
  }
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
+ */
230
224
  }]);
231
225
  return CopyableRangesFactory;
232
226
  }();
@@ -129,12 +129,6 @@ 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
- */
138
132
  _defineProperty(_assertThisInitialized(_this), "savedBorders", []);
139
133
  return _this;
140
134
  }
@@ -885,6 +879,13 @@ var CustomBorders = /*#__PURE__*/function (_BasePlugin) {
885
879
  get: function get() {
886
880
  return PLUGIN_PRIORITY;
887
881
  }
882
+
883
+ /**
884
+ * Saved borders.
885
+ *
886
+ * @private
887
+ * @type {Array}
888
+ */
888
889
  }]);
889
890
  return CustomBorders;
890
891
  }(_base.BasePlugin);