handsontable 0.0.0-next-788a9dd-20230315 → 0.0.0-next-94c1646-20230323

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 (46) hide show
  1. package/3rdparty/walkontable/src/calculator/viewportColumns.js +2 -2
  2. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +2 -2
  3. package/3rdparty/walkontable/src/core/_base.js +16 -20
  4. package/3rdparty/walkontable/src/core/_base.mjs +16 -20
  5. package/CHANGELOG.md +1156 -494
  6. package/base.js +2 -2
  7. package/base.mjs +2 -2
  8. package/dist/handsontable.css +2 -2
  9. package/dist/handsontable.full.css +2 -2
  10. package/dist/handsontable.full.js +3598 -3080
  11. package/dist/handsontable.full.min.css +2 -2
  12. package/dist/handsontable.full.min.js +240 -226
  13. package/dist/handsontable.js +313 -115
  14. package/dist/handsontable.min.css +2 -2
  15. package/dist/handsontable.min.js +3 -3
  16. package/editors/autocompleteEditor/autocompleteEditor.js +8 -9
  17. package/editors/autocompleteEditor/autocompleteEditor.mjs +8 -9
  18. package/helpers/mixed.js +2 -2
  19. package/helpers/mixed.mjs +2 -2
  20. package/package.json +1 -1
  21. package/plugins/base/base.js +9 -10
  22. package/plugins/base/base.mjs +9 -10
  23. package/plugins/collapsibleColumns/collapsibleColumns.js +24 -7
  24. package/plugins/collapsibleColumns/collapsibleColumns.mjs +24 -7
  25. package/plugins/copyPaste/copyPaste.js +92 -16
  26. package/plugins/copyPaste/copyPaste.mjs +92 -16
  27. package/plugins/copyPaste/copyableRanges.js +14 -8
  28. package/plugins/copyPaste/copyableRanges.mjs +14 -8
  29. package/plugins/customBorders/customBorders.js +6 -7
  30. package/plugins/customBorders/customBorders.mjs +6 -7
  31. package/plugins/formulas/formulas.js +34 -7
  32. package/plugins/formulas/formulas.mjs +34 -7
  33. package/plugins/hiddenColumns/hiddenColumns.js +12 -7
  34. package/plugins/hiddenColumns/hiddenColumns.mjs +12 -7
  35. package/plugins/hiddenRows/hiddenRows.js +12 -7
  36. package/plugins/hiddenRows/hiddenRows.mjs +12 -7
  37. package/plugins/nestedHeaders/nestedHeaders.js +26 -7
  38. package/plugins/nestedHeaders/nestedHeaders.mjs +26 -7
  39. package/plugins/nestedHeaders/stateManager/index.js +18 -0
  40. package/plugins/nestedHeaders/stateManager/index.mjs +18 -0
  41. package/plugins/nestedHeaders/stateManager/sourceSettings.js +19 -0
  42. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +19 -0
  43. package/translations/changesObservable/observer.js +7 -0
  44. package/translations/changesObservable/observer.mjs +7 -0
  45. package/translations/maps/linkedPhysicalIndexToValueMap.js +6 -0
  46. package/translations/maps/linkedPhysicalIndexToValueMap.mjs +6 -0
@@ -25,8 +25,8 @@
25
25
  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
26
26
  * USE OR INABILITY TO USE THIS SOFTWARE.
27
27
  *
28
- * Version: 0.0.0-next-788a9dd-20230315
29
- * Release date: 06/02/2023 (built at 15/03/2023 14:14:36)
28
+ * Version: 0.0.0-next-94c1646-20230323
29
+ * Release date: 23/03/2023 (built at 23/03/2023 12:14:23)
30
30
  */
31
31
  (function webpackUniversalModuleDefinition(root, factory) {
32
32
  if(typeof exports === 'object' && typeof module === 'object')
@@ -2904,7 +2904,7 @@ var domMessages = {
2904
2904
  function _injectProductInfo(key, element) {
2905
2905
  var hasValidType = !isEmpty(key);
2906
2906
  var isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
2907
- var hotVersion = "0.0.0-next-788a9dd-20230315";
2907
+ var hotVersion = "0.0.0-next-94c1646-20230323";
2908
2908
  var keyValidityDate;
2909
2909
  var consoleMessageState = 'invalid';
2910
2910
  var domMessageState = 'invalid';
@@ -2912,7 +2912,7 @@ function _injectProductInfo(key, element) {
2912
2912
  var schemaValidity = _checkKeySchema(key);
2913
2913
  if (hasValidType || isNonCommercial || schemaValidity) {
2914
2914
  if (schemaValidity) {
2915
- var releaseDate = (0, _moment.default)("06/02/2023", 'DD/MM/YYYY');
2915
+ var releaseDate = (0, _moment.default)("23/03/2023", 'DD/MM/YYYY');
2916
2916
  var releaseDays = Math.floor(releaseDate.toDate().getTime() / 8.64e7);
2917
2917
  var keyValidityDays = _extractTime(key);
2918
2918
  keyValidityDate = (0, _moment.default)((keyValidityDays + 1) * 8.64e7, 'x').format('MMMM DD, YYYY');
@@ -10174,10 +10174,10 @@ var store = __webpack_require__(186);
10174
10174
  (module.exports = function (key, value) {
10175
10175
  return store[key] || (store[key] = value !== undefined ? value : {});
10176
10176
  })('versions', []).push({
10177
- version: '3.28.0',
10177
+ version: '3.29.1',
10178
10178
  mode: IS_PURE ? 'pure' : 'global',
10179
10179
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
10180
- license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE',
10180
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',
10181
10181
  source: 'https://github.com/zloirock/core-js'
10182
10182
  });
10183
10183
 
@@ -17532,44 +17532,40 @@ var CoreAbstract = /*#__PURE__*/function () {
17532
17532
  (0, _defineProperty2.default)(this, "wtOverlays", void 0);
17533
17533
  (0, _defineProperty2.default)(this, "selections", void 0);
17534
17534
  (0, _defineProperty2.default)(this, "wtEvent", void 0);
17535
- (0, _defineProperty2.default)(this, "guid", "wt_".concat((0, _string.randomString)()));
17536
- (0, _defineProperty2.default)(this, "drawInterrupted", false);
17537
- (0, _defineProperty2.default)(this, "drawn", false);
17538
- (0, _defineProperty2.default)(this, "domBindings", void 0);
17539
- (0, _defineProperty2.default)(this, "wtSettings", void 0);
17540
- this.domBindings = {
17541
- rootTable: table,
17542
- rootDocument: table.ownerDocument,
17543
- rootWindow: table.ownerDocument.defaultView
17544
- };
17545
- this.wtSettings = settings;
17546
- this.wtScroll = new _scroll.default(this.createScrollDao());
17547
- }
17548
- (0, _createClass2.default)(CoreAbstract, [{
17549
- key: "eventManager",
17550
- get:
17551
17535
  /**
17552
17536
  * The walkontable instance id.
17553
17537
  *
17554
17538
  * @public
17555
17539
  * @type {Readonly<string>}
17556
17540
  */
17557
-
17541
+ (0, _defineProperty2.default)(this, "guid", "wt_".concat((0, _string.randomString)()));
17542
+ (0, _defineProperty2.default)(this, "drawInterrupted", false);
17543
+ (0, _defineProperty2.default)(this, "drawn", false);
17558
17544
  /**
17559
17545
  * The DOM bindings.
17560
17546
  *
17561
17547
  * @public
17562
17548
  * @type {DomBindings}
17563
17549
  */
17564
-
17550
+ (0, _defineProperty2.default)(this, "domBindings", void 0);
17565
17551
  /**
17566
17552
  * Settings.
17567
17553
  *
17568
17554
  * @public
17569
17555
  * @type {Settings}
17570
17556
  */
17571
-
17572
- function get() {
17557
+ (0, _defineProperty2.default)(this, "wtSettings", void 0);
17558
+ this.domBindings = {
17559
+ rootTable: table,
17560
+ rootDocument: table.ownerDocument,
17561
+ rootWindow: table.ownerDocument.defaultView
17562
+ };
17563
+ this.wtSettings = settings;
17564
+ this.wtScroll = new _scroll.default(this.createScrollDao());
17565
+ }
17566
+ (0, _createClass2.default)(CoreAbstract, [{
17567
+ key: "eventManager",
17568
+ get: function get() {
17573
17569
  return new _eventManager.default(this);
17574
17570
  }
17575
17571
  }, {
@@ -20527,14 +20523,31 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
20527
20523
  _args[_key] = arguments[_key];
20528
20524
  }
20529
20525
  _this = _super.call.apply(_super, [this].concat(_args));
20526
+ /**
20527
+ * Flag used to bypass hooks in internal operations.
20528
+ *
20529
+ * @private
20530
+ * @type {boolean}
20531
+ */
20530
20532
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _internalOperationPending, {
20531
20533
  writable: true,
20532
20534
  value: false
20533
20535
  });
20536
+ /**
20537
+ * Flag needed to mark if Handsontable was initialized with no data.
20538
+ * (Required to work around the fact, that Handsontable auto-generates sample data, when no data is provided).
20539
+ *
20540
+ * @type {boolean}
20541
+ */
20534
20542
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _hotWasInitializedWithEmptyData, {
20535
20543
  writable: true,
20536
20544
  value: false
20537
20545
  });
20546
+ /**
20547
+ * The list of the HyperFormula listeners.
20548
+ *
20549
+ * @type {Array}
20550
+ */
20538
20551
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _engineListeners, {
20539
20552
  writable: true,
20540
20553
  value: [['valuesUpdated', function () {
@@ -20557,8 +20570,25 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
20557
20570
  return (_this7 = _this).onEngineSheetRemoved.apply(_this7, arguments);
20558
20571
  }]]
20559
20572
  });
20573
+ /**
20574
+ * Static register used to set up one global HyperFormula instance.
20575
+ * TODO: currently used in tests, might be removed later.
20576
+ *
20577
+ * @private
20578
+ * @type {object}
20579
+ */
20560
20580
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "staticRegister", (0, _staticRegister.default)('formulas'));
20581
+ /**
20582
+ * The engine instance that will be used for this instance of Handsontable.
20583
+ *
20584
+ * @type {HyperFormula|null}
20585
+ */
20561
20586
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "engine", null);
20587
+ /**
20588
+ * HyperFormula's sheet name.
20589
+ *
20590
+ * @type {string|null}
20591
+ */
20562
20592
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "sheetName", null);
20563
20593
  return _this;
20564
20594
  }
@@ -21625,13 +21655,6 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
21625
21655
  get: function get() {
21626
21656
  return PLUGIN_PRIORITY;
21627
21657
  }
21628
-
21629
- /**
21630
- * Flag used to bypass hooks in internal operations.
21631
- *
21632
- * @private
21633
- * @type {boolean}
21634
- */
21635
21658
  }]);
21636
21659
  return Formulas;
21637
21660
  }(_base.BasePlugin);
@@ -28351,9 +28374,9 @@ var ViewportColumnsCalculator = /*#__PURE__*/function () {
28351
28374
  var inlineEndColumnOffset = calculationType === _constants.FULLY_VISIBLE_TYPE ? 0 : lastVisibleColumnWidth;
28352
28375
  var inlineStartColumnOffset = calculationType === _constants.FULLY_VISIBLE_TYPE ? firstVisibleColumnWidth : 0;
28353
28376
  if (
28354
- // The table is on the left of the viewport
28377
+ // the table is to the left of the viewport
28355
28378
  mostRightScrollOffset < -1 * priv.inlineStartOffset || scrollOffset > startPositions.at(-1) + inlineEndColumnOffset ||
28356
- // The table is on the right of the viewport
28379
+ // the table is to the right of the viewport
28357
28380
  -1 * priv.scrollOffset - priv.viewportWidth > -1 * inlineStartColumnOffset) {
28358
28381
  this.isVisibleInTrimmingContainer = false;
28359
28382
  } else {
@@ -41810,8 +41833,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
41810
41833
  Handsontable.CellCoords = _src.CellCoords;
41811
41834
  Handsontable.CellRange = _src.CellRange;
41812
41835
  Handsontable.packageName = 'handsontable';
41813
- Handsontable.buildDate = "15/03/2023 14:14:36";
41814
- Handsontable.version = "0.0.0-next-788a9dd-20230315";
41836
+ Handsontable.buildDate = "23/03/2023 12:14:23";
41837
+ Handsontable.version = "0.0.0-next-94c1646-20230323";
41815
41838
  Handsontable.languages = {
41816
41839
  dictionaryKeys: _registry.dictionaryKeys,
41817
41840
  getLanguageDictionary: _registry.getLanguageDictionary,
@@ -53000,6 +53023,12 @@ var LinkedPhysicalIndexToValueMap = /*#__PURE__*/function (_IndexMap) {
53000
53023
  args[_key] = arguments[_key];
53001
53024
  }
53002
53025
  _this = _super.call.apply(_super, [this].concat(args));
53026
+ /**
53027
+ * Indexes and values corresponding to them (entries) are stored in a certain order.
53028
+ *
53029
+ * @private
53030
+ * @type {Array<number>}
53031
+ */
53003
53032
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "orderOfIndexes", []);
53004
53033
  return _this;
53005
53034
  }
@@ -53650,6 +53679,13 @@ var _currentInitialChanges = /*#__PURE__*/new WeakMap();
53650
53679
  var ChangesObserver = /*#__PURE__*/function () {
53651
53680
  function ChangesObserver() {
53652
53681
  (0, _classCallCheck2.default)(this, ChangesObserver);
53682
+ /**
53683
+ * The field holds initial changes that will be used to notify the callbacks added using
53684
+ * subscribe method. Regardless of the moment of listening for changes, the subscriber
53685
+ * will be notified once with all changes made before subscribing.
53686
+ *
53687
+ * @type {Array}
53688
+ */
53653
53689
  _classPrivateFieldInitSpec(this, _currentInitialChanges, {
53654
53690
  writable: true,
53655
53691
  value: []
@@ -58735,6 +58771,14 @@ var AutocompleteEditor = /*#__PURE__*/function (_HandsontableEditor) {
58735
58771
  *
58736
58772
  * @type {string}
58737
58773
  */
58774
+ /**
58775
+ * Filters and sorts by relevance.
58776
+ *
58777
+ * @param {*} value The selected value.
58778
+ * @param {string[]} choices The list of available choices.
58779
+ * @param {boolean} caseSensitive Indicates if it's sorted by case.
58780
+ * @returns {number[]} Array of indexes in original choices array.
58781
+ */
58738
58782
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "sortByRelevance", function (value, choices, caseSensitive) {
58739
58783
  var choicesRelevance = [];
58740
58784
  var result = [];
@@ -59237,15 +59281,6 @@ var AutocompleteEditor = /*#__PURE__*/function (_HandsontableEditor) {
59237
59281
  }
59238
59282
  }
59239
59283
  }
59240
-
59241
- /**
59242
- * Filters and sorts by relevance.
59243
- *
59244
- * @param {*} value The selected value.
59245
- * @param {string[]} choices The list of available choices.
59246
- * @param {boolean} caseSensitive Indicates if it's sorted by case.
59247
- * @returns {number[]} Array of indexes in original choices array.
59248
- */
59249
59284
  }], [{
59250
59285
  key: "EDITOR_TYPE",
59251
59286
  get: function get() {
@@ -62830,6 +62865,15 @@ var BasePlugin = /*#__PURE__*/function () {
62830
62865
  function BasePlugin(hotInstance) {
62831
62866
  var _this = this;
62832
62867
  (0, _classCallCheck2.default)(this, BasePlugin);
62868
+ /**
62869
+ * Check if any of the keys defined in `SETTING_KEYS` configuration of the plugin is present in the provided
62870
+ * config object, or if the `SETTING_KEYS` configuration states that the plugin is relevant to the config object
62871
+ * regardless of its contents.
62872
+ *
62873
+ * @private
62874
+ * @param {Handsontable.DefaultSettings} settings The config object passed to `updateSettings`.
62875
+ * @returns {boolean}
62876
+ */
62833
62877
  _classPrivateMethodInitSpec(this, _isRelevantToSettings);
62834
62878
  /**
62835
62879
  * Handsontable instance.
@@ -62993,16 +63037,6 @@ var BasePlugin = /*#__PURE__*/function () {
62993
63037
  this.pluginsInitializedCallbacks.push(callback);
62994
63038
  }
62995
63039
  }
62996
-
62997
- /**
62998
- * Check if any of the keys defined in `SETTING_KEYS` configuration of the plugin is present in the provided
62999
- * config object, or if the `SETTING_KEYS` configuration states that the plugin is relevant to the config object
63000
- * regardless of its contents.
63001
- *
63002
- * @private
63003
- * @param {Handsontable.DefaultSettings} settings The config object passed to `updateSettings`.
63004
- * @returns {boolean}
63005
- */
63006
63040
  }, {
63007
63041
  key: "onAfterPluginsInitialized",
63008
63042
  value:
@@ -65179,9 +65213,33 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
65179
65213
  args[_key] = arguments[_key];
65180
65214
  }
65181
65215
  _this = _super.call.apply(_super, [this].concat(args));
65216
+ /**
65217
+ * Cached reference to the NestedHeaders plugin.
65218
+ *
65219
+ * @private
65220
+ * @type {NestedHeaders}
65221
+ */
65182
65222
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "nestedHeadersPlugin", null);
65223
+ /**
65224
+ * Event manager instance reference.
65225
+ *
65226
+ * @private
65227
+ * @type {EventManager}
65228
+ */
65183
65229
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "eventManager", new _eventManager.default((0, _assertThisInitialized2.default)(_this)));
65230
+ /**
65231
+ * The NestedHeaders plugin StateManager instance.
65232
+ *
65233
+ * @private
65234
+ * @type {StateManager}
65235
+ */
65184
65236
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "headerStateManager", null);
65237
+ /**
65238
+ * Map of collapsed columns by the plugin.
65239
+ *
65240
+ * @private
65241
+ * @type {HidingMap|null}
65242
+ */
65185
65243
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _collapsedColumnsMap, {
65186
65244
  writable: true,
65187
65245
  value: null
@@ -65603,13 +65661,6 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
65603
65661
  get: function get() {
65604
65662
  return [PLUGIN_KEY].concat(SETTING_KEYS);
65605
65663
  }
65606
-
65607
- /**
65608
- * Cached reference to the NestedHeaders plugin.
65609
- *
65610
- * @private
65611
- * @type {NestedHeaders}
65612
- */
65613
65664
  }]);
65614
65665
  return CollapsibleColumns;
65615
65666
  }(_base.BasePlugin);
@@ -71252,35 +71303,115 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
71252
71303
  args[_key] = arguments[_key];
71253
71304
  }
71254
71305
  _this = _super.call.apply(_super, [this].concat(args));
71306
+ /**
71307
+ * Counts how many column headers will be copied based on the passed range.
71308
+ *
71309
+ * @private
71310
+ * @param {Array<{startRow: number, startCol: number, endRow: number, endCol: number}>} ranges Array of objects with properties `startRow`, `startCol`, `endRow` and `endCol`.
71311
+ * @returns {{ columnHeadersCount: number }} Returns an object with keys that holds
71312
+ * information with the number of copied headers.
71313
+ */
71255
71314
  _classPrivateMethodInitSpec((0, _assertThisInitialized2.default)(_this), _countCopiedHeaders);
71315
+ /**
71316
+ * The maximum number of columns than can be copied to the clipboard.
71317
+ *
71318
+ * @type {number}
71319
+ * @default Infinity
71320
+ */
71256
71321
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "columnsLimit", Infinity);
71322
+ /**
71323
+ * The maximum number of rows than can be copied to the clipboard.
71324
+ *
71325
+ * @type {number}
71326
+ * @default Infinity
71327
+ */
71257
71328
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "rowsLimit", Infinity);
71329
+ /**
71330
+ * When pasting:
71331
+ * - `'overwrite'`: overwrite the currently-selected cells
71332
+ * - `'shift_down'`: move currently-selected cells down
71333
+ * - `'shift_right'`: move currently-selected cells to the right
71334
+ *
71335
+ * @type {string}
71336
+ * @default 'overwrite'
71337
+ */
71258
71338
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "pasteMode", 'overwrite');
71339
+ /**
71340
+ * The UI container for the secondary focusable element.
71341
+ *
71342
+ * @type {HTMLElement}
71343
+ */
71259
71344
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "uiContainer", _this.hot.rootDocument.body);
71345
+ /**
71346
+ * Shows the "Copy with headers" item in the context menu and extends the context menu with the
71347
+ * `'copy_with_column_headers'` option that can be used for creating custom menus arrangements.
71348
+ *
71349
+ * @type {boolean}
71350
+ * @default false
71351
+ */
71260
71352
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _enableCopyColumnHeaders, {
71261
71353
  writable: true,
71262
71354
  value: false
71263
71355
  });
71356
+ /**
71357
+ * Shows the "Copy with group headers" item in the context menu and extends the context menu with the
71358
+ * `'copy_with_column_group headers'` option that can be used for creating custom menus arrangements.
71359
+ *
71360
+ * @type {boolean}
71361
+ * @default false
71362
+ */
71264
71363
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _enableCopyColumnGroupHeaders, {
71265
71364
  writable: true,
71266
71365
  value: false
71267
71366
  });
71367
+ /**
71368
+ * Shows the "Copy headers only" item in the context menu and extends the context menu with the
71369
+ * `'copy_column_headers_only'` option that can be used for creating custom menus arrangements.
71370
+ *
71371
+ * @type {boolean}
71372
+ * @default false
71373
+ */
71268
71374
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _enableCopyColumnHeadersOnly, {
71269
71375
  writable: true,
71270
71376
  value: false
71271
71377
  });
71378
+ /**
71379
+ * Defines the data range to copy. Possible values:
71380
+ * * `'cells-only'` Copy selected cells only;
71381
+ * * `'column-headers-only'` Copy column headers only;
71382
+ * * `'with-all-column-headers'` Copy cells with all column headers;
71383
+ * * `'with-column-headers'` Copy cells with column headers;
71384
+ *
71385
+ * @type {'cells-only' | 'column-headers-only' | 'with-all-column-headers' | 'with-column-headers'}
71386
+ */
71272
71387
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _copyMode, {
71273
71388
  writable: true,
71274
71389
  value: 'cells-only'
71275
71390
  });
71391
+ /**
71392
+ * Flag that is used to prevent copying when the native shortcut was not pressed.
71393
+ *
71394
+ * @type {boolean}
71395
+ */
71276
71396
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _isTriggeredByCopy, {
71277
71397
  writable: true,
71278
71398
  value: false
71279
71399
  });
71400
+ /**
71401
+ * Flag that is used to prevent cutting when the native shortcut was not pressed.
71402
+ *
71403
+ * @type {boolean}
71404
+ */
71280
71405
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _isTriggeredByCut, {
71281
71406
  writable: true,
71282
71407
  value: false
71283
71408
  });
71409
+ /**
71410
+ * Class that helps generate copyable ranges based on the current selection for different copy mode
71411
+ * types.
71412
+ *
71413
+ * @type {CopyableRangesFactory}
71414
+ */
71284
71415
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _copyableRangesFactory, {
71285
71416
  writable: true,
71286
71417
  value: new _copyableRanges.CopyableRangesFactory({
@@ -71301,7 +71432,19 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
71301
71432
  }
71302
71433
  })
71303
71434
  });
71435
+ /**
71436
+ * Ranges of the cells coordinates, which should be used to copy/cut/paste actions.
71437
+ *
71438
+ * @private
71439
+ * @type {Array<{startRow: number, startCol: number, endRow: number, endCol: number}>}
71440
+ */
71304
71441
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "copyableRanges", []);
71442
+ /**
71443
+ * Provides focusable element to support IME and copy/paste/cut actions.
71444
+ *
71445
+ * @private
71446
+ * @type {FocusableWrapper}
71447
+ */
71305
71448
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "focusableElement", void 0);
71306
71449
  return _this;
71307
71450
  }
@@ -71610,15 +71753,6 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
71610
71753
  var _this$hot$getActiveEd2;
71611
71754
  return (_this$hot$getActiveEd2 = this.hot.getActiveEditor()) === null || _this$hot$getActiveEd2 === void 0 ? void 0 : _this$hot$getActiveEd2.isOpened();
71612
71755
  }
71613
-
71614
- /**
71615
- * Counts how many column headers will be copied based on the passed range.
71616
- *
71617
- * @private
71618
- * @param {Array<{startRow: number, startCol: number, endRow: number, endCol: number}>} ranges Array of objects with properties `startRow`, `startCol`, `endRow` and `endCol`.
71619
- * @returns {{ columnHeadersCount: number }} Returns an object with keys that holds
71620
- * information with the number of copied headers.
71621
- */
71622
71756
  }, {
71623
71757
  key: "populateValues",
71624
71758
  value:
@@ -71904,13 +72038,6 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
71904
72038
  get: function get() {
71905
72039
  return PLUGIN_PRIORITY;
71906
72040
  }
71907
-
71908
- /**
71909
- * The maximum number of columns than can be copied to the clipboard.
71910
- *
71911
- * @type {number}
71912
- * @default Infinity
71913
- */
71914
72041
  }]);
71915
72042
  return CopyPaste;
71916
72043
  }(_base.BasePlugin);
@@ -72497,7 +72624,21 @@ var CopyableRangesFactory = /*#__PURE__*/function () {
72497
72624
  columnsLimit = _ref.columnsLimit,
72498
72625
  countColumnHeaders = _ref.countColumnHeaders;
72499
72626
  (0, _classCallCheck2.default)(this, CopyableRangesFactory);
72627
+ /**
72628
+ * Trimmed the rows range to the limit.
72629
+ *
72630
+ * @param {*} startRow The lowest row index in the range.
72631
+ * @param {*} endRow The highest row index in the range.
72632
+ * @returns {number} Returns trimmed row index if it exceeds the limit.
72633
+ */
72500
72634
  _classPrivateMethodInitSpec(this, _trimRowsRange);
72635
+ /**
72636
+ * Trimmed the columns range to the limit.
72637
+ *
72638
+ * @param {*} startColumn The lowest column index in the range.
72639
+ * @param {*} endColumn The highest column index in the range.
72640
+ * @returns {number} Returns trimmed column index if it exceeds the limit.
72641
+ */
72501
72642
  _classPrivateMethodInitSpec(this, _trimColumnsRange);
72502
72643
  _classPrivateFieldInitSpec(this, _selectedRange, {
72503
72644
  writable: true,
@@ -72625,14 +72766,6 @@ var CopyableRangesFactory = /*#__PURE__*/function () {
72625
72766
  endCol: finalEndCol
72626
72767
  };
72627
72768
  }
72628
-
72629
- /**
72630
- * Trimmed the columns range to the limit.
72631
- *
72632
- * @param {*} startColumn The lowest column index in the range.
72633
- * @param {*} endColumn The highest column index in the range.
72634
- * @returns {number} Returns trimmed column index if it exceeds the limit.
72635
- */
72636
72769
  }]);
72637
72770
  return CopyableRangesFactory;
72638
72771
  }();
@@ -72809,6 +72942,12 @@ var CustomBorders = /*#__PURE__*/function (_BasePlugin) {
72809
72942
  args[_key] = arguments[_key];
72810
72943
  }
72811
72944
  _this = _super.call.apply(_super, [this].concat(args));
72945
+ /**
72946
+ * Saved borders.
72947
+ *
72948
+ * @private
72949
+ * @type {Array}
72950
+ */
72812
72951
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "savedBorders", []);
72813
72952
  return _this;
72814
72953
  }
@@ -73559,13 +73698,6 @@ var CustomBorders = /*#__PURE__*/function (_BasePlugin) {
73559
73698
  get: function get() {
73560
73699
  return PLUGIN_PRIORITY;
73561
73700
  }
73562
-
73563
- /**
73564
- * Saved borders.
73565
- *
73566
- * @private
73567
- * @type {Array}
73568
- */
73569
73701
  }]);
73570
73702
  return CustomBorders;
73571
73703
  }(_base.BasePlugin);
@@ -79809,10 +79941,22 @@ var HiddenColumns = /*#__PURE__*/function (_BasePlugin) {
79809
79941
  args[_key] = arguments[_key];
79810
79942
  }
79811
79943
  _this = _super.call.apply(_super, [this].concat(args));
79944
+ /**
79945
+ * Cached plugin settings.
79946
+ *
79947
+ * @private
79948
+ * @type {object}
79949
+ */
79812
79950
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _settings, {
79813
79951
  writable: true,
79814
79952
  value: {}
79815
79953
  });
79954
+ /**
79955
+ * Map of hidden columns by the plugin.
79956
+ *
79957
+ * @private
79958
+ * @type {null|HidingMap}
79959
+ */
79816
79960
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _hiddenColumnsMap, {
79817
79961
  writable: true,
79818
79962
  value: null
@@ -80232,13 +80376,6 @@ var HiddenColumns = /*#__PURE__*/function (_BasePlugin) {
80232
80376
  get: function get() {
80233
80377
  return PLUGIN_PRIORITY;
80234
80378
  }
80235
-
80236
- /**
80237
- * Cached plugin settings.
80238
- *
80239
- * @private
80240
- * @type {object}
80241
- */
80242
80379
  }]);
80243
80380
  return HiddenColumns;
80244
80381
  }(_base.BasePlugin);
@@ -80633,10 +80770,22 @@ var HiddenRows = /*#__PURE__*/function (_BasePlugin) {
80633
80770
  args[_key] = arguments[_key];
80634
80771
  }
80635
80772
  _this = _super.call.apply(_super, [this].concat(args));
80773
+ /**
80774
+ * Cached settings from Handsontable settings.
80775
+ *
80776
+ * @private
80777
+ * @type {object}
80778
+ */
80636
80779
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _settings, {
80637
80780
  writable: true,
80638
80781
  value: {}
80639
80782
  });
80783
+ /**
80784
+ * Map of hidden rows by the plugin.
80785
+ *
80786
+ * @private
80787
+ * @type {HidingMap|null}
80788
+ */
80640
80789
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _hiddenRowsMap, {
80641
80790
  writable: true,
80642
80791
  value: null
@@ -81048,13 +81197,6 @@ var HiddenRows = /*#__PURE__*/function (_BasePlugin) {
81048
81197
  get: function get() {
81049
81198
  return PLUGIN_PRIORITY;
81050
81199
  }
81051
-
81052
- /**
81053
- * Cached settings from Handsontable settings.
81054
- *
81055
- * @private
81056
- * @type {object}
81057
- */
81058
81200
  }]);
81059
81201
  return HiddenRows;
81060
81202
  }(_base.BasePlugin);
@@ -88170,17 +88312,43 @@ var NestedHeaders = /*#__PURE__*/function (_BasePlugin) {
88170
88312
  args[_key] = arguments[_key];
88171
88313
  }
88172
88314
  _this = _super.call.apply(_super, [this].concat(args));
88315
+ /**
88316
+ * The state manager for the nested headers.
88317
+ *
88318
+ * @private
88319
+ * @type {StateManager}
88320
+ */
88173
88321
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _stateManager, {
88174
88322
  writable: true,
88175
88323
  value: new _stateManager2.default()
88176
88324
  });
88325
+ /**
88326
+ * The instance of the ChangesObservable class that allows track the changes that happens in the
88327
+ * column indexes.
88328
+ *
88329
+ * @private
88330
+ * @type {ChangesObservable}
88331
+ */
88177
88332
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _hidingIndexMapObserver, {
88178
88333
  writable: true,
88179
88334
  value: null
88180
88335
  });
88336
+ /**
88337
+ * Custom helper for getting widths of the nested headers.
88338
+ *
88339
+ * @private
88340
+ * @type {GhostTable}
88341
+ */
88342
+ // @TODO This should be changed after refactor handsontable/utils/ghostTable.
88181
88343
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "ghostTable", new _ghostTable.default(_this.hot, function (row, column) {
88182
88344
  return _this.getHeaderSettings(row, column);
88183
88345
  }));
88346
+ /**
88347
+ * The flag which determines that the nested header settings contains overlapping headers
88348
+ * configuration.
88349
+ *
88350
+ * @type {boolean}
88351
+ */
88184
88352
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "detectedOverlappedHeaders", false);
88185
88353
  return _this;
88186
88354
  }
@@ -88812,13 +88980,6 @@ var NestedHeaders = /*#__PURE__*/function (_BasePlugin) {
88812
88980
  get: function get() {
88813
88981
  return PLUGIN_PRIORITY;
88814
88982
  }
88815
-
88816
- /**
88817
- * The state manager for the nested headers.
88818
- *
88819
- * @private
88820
- * @type {StateManager}
88821
- */
88822
88983
  }]);
88823
88984
  return NestedHeaders;
88824
88985
  }(_base.BasePlugin);
@@ -88896,14 +89057,32 @@ var _stateMatrix = /*#__PURE__*/new WeakMap();
88896
89057
  var StateManager = /*#__PURE__*/function () {
88897
89058
  function StateManager() {
88898
89059
  (0, _classCallCheck2.default)(this, StateManager);
89060
+ /**
89061
+ * The instance of the source settings class.
89062
+ *
89063
+ * @private
89064
+ * @type {SourceSettings}
89065
+ */
88899
89066
  _classPrivateFieldInitSpec(this, _sourceSettings, {
88900
89067
  writable: true,
88901
89068
  value: new _sourceSettings2.default()
88902
89069
  });
89070
+ /**
89071
+ * The instance of the headers tree. The tree is generated after setting new configuration data.
89072
+ *
89073
+ * @private
89074
+ * @type {HeadersTree}
89075
+ */
88903
89076
  _classPrivateFieldInitSpec(this, _headersTree, {
88904
89077
  writable: true,
88905
89078
  value: new _headersTree2.default((0, _classPrivateFieldGet4.default)(this, _sourceSettings))
88906
89079
  });
89080
+ /**
89081
+ * Cached matrix which is generated from the tree structure.
89082
+ *
89083
+ * @private
89084
+ * @type {Array[]}
89085
+ */
88907
89086
  _classPrivateFieldInitSpec(this, _stateMatrix, {
88908
89087
  writable: true,
88909
89088
  value: [[]]
@@ -89309,14 +89488,33 @@ var _columnsLimit = /*#__PURE__*/new WeakMap();
89309
89488
  var SourceSettings = /*#__PURE__*/function () {
89310
89489
  function SourceSettings() {
89311
89490
  (0, _classCallCheck2.default)(this, SourceSettings);
89491
+ /**
89492
+ * The normalized source data (normalized user-defined settings for nested headers).
89493
+ *
89494
+ * @private
89495
+ * @type {Array[]}
89496
+ */
89312
89497
  _classPrivateFieldInitSpec(this, _data, {
89313
89498
  writable: true,
89314
89499
  value: []
89315
89500
  });
89501
+ /**
89502
+ * The total length of the nested header layers.
89503
+ *
89504
+ * @private
89505
+ * @type {number}
89506
+ */
89316
89507
  _classPrivateFieldInitSpec(this, _dataLength, {
89317
89508
  writable: true,
89318
89509
  value: 0
89319
89510
  });
89511
+ /**
89512
+ * Columns count limit value trims source settings to that value. If columns
89513
+ * count limit intersects nested header, the header's colspan value is reduced
89514
+ * to keep the whole structure stable (trimmed precisely where the limit is set).
89515
+ *
89516
+ * @type {number}
89517
+ */
89320
89518
  _classPrivateFieldInitSpec(this, _columnsLimit, {
89321
89519
  writable: true,
89322
89520
  value: Infinity