handsontable 12.3.3-next-e19badf-20230328 → 12.3.3

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.
Files changed (43) hide show
  1. package/3rdparty/walkontable/src/core/_base.js +20 -16
  2. package/3rdparty/walkontable/src/core/_base.mjs +20 -16
  3. package/base.js +2 -2
  4. package/base.mjs +2 -2
  5. package/dist/handsontable.css +2 -2
  6. package/dist/handsontable.full.css +2 -2
  7. package/dist/handsontable.full.js +3077 -3595
  8. package/dist/handsontable.full.min.css +2 -2
  9. package/dist/handsontable.full.min.js +226 -240
  10. package/dist/handsontable.js +112 -310
  11. package/dist/handsontable.min.css +2 -2
  12. package/dist/handsontable.min.js +3 -3
  13. package/editors/autocompleteEditor/autocompleteEditor.js +9 -8
  14. package/editors/autocompleteEditor/autocompleteEditor.mjs +9 -8
  15. package/helpers/mixed.js +1 -1
  16. package/helpers/mixed.mjs +1 -1
  17. package/package.json +1 -1
  18. package/plugins/base/base.js +10 -9
  19. package/plugins/base/base.mjs +10 -9
  20. package/plugins/collapsibleColumns/collapsibleColumns.js +7 -24
  21. package/plugins/collapsibleColumns/collapsibleColumns.mjs +7 -24
  22. package/plugins/copyPaste/copyPaste.js +16 -92
  23. package/plugins/copyPaste/copyPaste.mjs +16 -92
  24. package/plugins/copyPaste/copyableRanges.js +8 -14
  25. package/plugins/copyPaste/copyableRanges.mjs +8 -14
  26. package/plugins/customBorders/customBorders.js +7 -6
  27. package/plugins/customBorders/customBorders.mjs +7 -6
  28. package/plugins/formulas/formulas.js +7 -34
  29. package/plugins/formulas/formulas.mjs +7 -34
  30. package/plugins/hiddenColumns/hiddenColumns.js +7 -12
  31. package/plugins/hiddenColumns/hiddenColumns.mjs +7 -12
  32. package/plugins/hiddenRows/hiddenRows.js +7 -12
  33. package/plugins/hiddenRows/hiddenRows.mjs +7 -12
  34. package/plugins/nestedHeaders/nestedHeaders.js +7 -26
  35. package/plugins/nestedHeaders/nestedHeaders.mjs +7 -26
  36. package/plugins/nestedHeaders/stateManager/index.js +0 -18
  37. package/plugins/nestedHeaders/stateManager/index.mjs +0 -18
  38. package/plugins/nestedHeaders/stateManager/sourceSettings.js +0 -19
  39. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +0 -19
  40. package/translations/changesObservable/observer.js +0 -7
  41. package/translations/changesObservable/observer.mjs +0 -7
  42. package/translations/maps/linkedPhysicalIndexToValueMap.js +0 -6
  43. package/translations/maps/linkedPhysicalIndexToValueMap.mjs +0 -6
@@ -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: 12.3.3-next-e19badf-20230328
29
- * Release date: 28/03/2023 (built at 28/03/2023 10:01:09)
28
+ * Version: 12.3.3
29
+ * Release date: 28/03/2023 (built at 28/03/2023 12:24:16)
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 = "12.3.3-next-e19badf-20230328";
2907
+ var hotVersion = "12.3.3";
2908
2908
  var keyValidityDate;
2909
2909
  var consoleMessageState = 'invalid';
2910
2910
  var domMessageState = 'invalid';
@@ -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.29.1',
10177
+ version: '3.28.0',
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.29.1/LICENSE',
10180
+ license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE',
10181
10181
  source: 'https://github.com/zloirock/core-js'
10182
10182
  });
10183
10183
 
@@ -17532,40 +17532,44 @@ 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:
17535
17551
  /**
17536
17552
  * The walkontable instance id.
17537
17553
  *
17538
17554
  * @public
17539
17555
  * @type {Readonly<string>}
17540
17556
  */
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);
17557
+
17544
17558
  /**
17545
17559
  * The DOM bindings.
17546
17560
  *
17547
17561
  * @public
17548
17562
  * @type {DomBindings}
17549
17563
  */
17550
- (0, _defineProperty2.default)(this, "domBindings", void 0);
17564
+
17551
17565
  /**
17552
17566
  * Settings.
17553
17567
  *
17554
17568
  * @public
17555
17569
  * @type {Settings}
17556
17570
  */
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() {
17571
+
17572
+ function get() {
17569
17573
  return new _eventManager.default(this);
17570
17574
  }
17571
17575
  }, {
@@ -20523,31 +20527,14 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
20523
20527
  _args[_key] = arguments[_key];
20524
20528
  }
20525
20529
  _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
- */
20532
20530
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _internalOperationPending, {
20533
20531
  writable: true,
20534
20532
  value: false
20535
20533
  });
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
- */
20542
20534
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _hotWasInitializedWithEmptyData, {
20543
20535
  writable: true,
20544
20536
  value: false
20545
20537
  });
20546
- /**
20547
- * The list of the HyperFormula listeners.
20548
- *
20549
- * @type {Array}
20550
- */
20551
20538
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _engineListeners, {
20552
20539
  writable: true,
20553
20540
  value: [['valuesUpdated', function () {
@@ -20570,25 +20557,8 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
20570
20557
  return (_this7 = _this).onEngineSheetRemoved.apply(_this7, arguments);
20571
20558
  }]]
20572
20559
  });
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
- */
20580
20560
  (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
- */
20586
20561
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "engine", null);
20587
- /**
20588
- * HyperFormula's sheet name.
20589
- *
20590
- * @type {string|null}
20591
- */
20592
20562
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "sheetName", null);
20593
20563
  return _this;
20594
20564
  }
@@ -21655,6 +21625,13 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
21655
21625
  get: function get() {
21656
21626
  return PLUGIN_PRIORITY;
21657
21627
  }
21628
+
21629
+ /**
21630
+ * Flag used to bypass hooks in internal operations.
21631
+ *
21632
+ * @private
21633
+ * @type {boolean}
21634
+ */
21658
21635
  }]);
21659
21636
  return Formulas;
21660
21637
  }(_base.BasePlugin);
@@ -41833,8 +41810,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
41833
41810
  Handsontable.CellCoords = _src.CellCoords;
41834
41811
  Handsontable.CellRange = _src.CellRange;
41835
41812
  Handsontable.packageName = 'handsontable';
41836
- Handsontable.buildDate = "28/03/2023 10:01:09";
41837
- Handsontable.version = "12.3.3-next-e19badf-20230328";
41813
+ Handsontable.buildDate = "28/03/2023 12:24:16";
41814
+ Handsontable.version = "12.3.3";
41838
41815
  Handsontable.languages = {
41839
41816
  dictionaryKeys: _registry.dictionaryKeys,
41840
41817
  getLanguageDictionary: _registry.getLanguageDictionary,
@@ -53023,12 +53000,6 @@ var LinkedPhysicalIndexToValueMap = /*#__PURE__*/function (_IndexMap) {
53023
53000
  args[_key] = arguments[_key];
53024
53001
  }
53025
53002
  _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
- */
53032
53003
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "orderOfIndexes", []);
53033
53004
  return _this;
53034
53005
  }
@@ -53679,13 +53650,6 @@ var _currentInitialChanges = /*#__PURE__*/new WeakMap();
53679
53650
  var ChangesObserver = /*#__PURE__*/function () {
53680
53651
  function ChangesObserver() {
53681
53652
  (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
- */
53689
53653
  _classPrivateFieldInitSpec(this, _currentInitialChanges, {
53690
53654
  writable: true,
53691
53655
  value: []
@@ -58771,14 +58735,6 @@ var AutocompleteEditor = /*#__PURE__*/function (_HandsontableEditor) {
58771
58735
  *
58772
58736
  * @type {string}
58773
58737
  */
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
- */
58782
58738
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "sortByRelevance", function (value, choices, caseSensitive) {
58783
58739
  var choicesRelevance = [];
58784
58740
  var result = [];
@@ -59281,6 +59237,15 @@ var AutocompleteEditor = /*#__PURE__*/function (_HandsontableEditor) {
59281
59237
  }
59282
59238
  }
59283
59239
  }
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
+ */
59284
59249
  }], [{
59285
59250
  key: "EDITOR_TYPE",
59286
59251
  get: function get() {
@@ -62865,15 +62830,6 @@ var BasePlugin = /*#__PURE__*/function () {
62865
62830
  function BasePlugin(hotInstance) {
62866
62831
  var _this = this;
62867
62832
  (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
- */
62877
62833
  _classPrivateMethodInitSpec(this, _isRelevantToSettings);
62878
62834
  /**
62879
62835
  * Handsontable instance.
@@ -63037,6 +62993,16 @@ var BasePlugin = /*#__PURE__*/function () {
63037
62993
  this.pluginsInitializedCallbacks.push(callback);
63038
62994
  }
63039
62995
  }
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
+ */
63040
63006
  }, {
63041
63007
  key: "onAfterPluginsInitialized",
63042
63008
  value:
@@ -65213,33 +65179,9 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
65213
65179
  args[_key] = arguments[_key];
65214
65180
  }
65215
65181
  _this = _super.call.apply(_super, [this].concat(args));
65216
- /**
65217
- * Cached reference to the NestedHeaders plugin.
65218
- *
65219
- * @private
65220
- * @type {NestedHeaders}
65221
- */
65222
65182
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "nestedHeadersPlugin", null);
65223
- /**
65224
- * Event manager instance reference.
65225
- *
65226
- * @private
65227
- * @type {EventManager}
65228
- */
65229
65183
  (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
- */
65236
65184
  (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
- */
65243
65185
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _collapsedColumnsMap, {
65244
65186
  writable: true,
65245
65187
  value: null
@@ -65661,6 +65603,13 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
65661
65603
  get: function get() {
65662
65604
  return [PLUGIN_KEY].concat(SETTING_KEYS);
65663
65605
  }
65606
+
65607
+ /**
65608
+ * Cached reference to the NestedHeaders plugin.
65609
+ *
65610
+ * @private
65611
+ * @type {NestedHeaders}
65612
+ */
65664
65613
  }]);
65665
65614
  return CollapsibleColumns;
65666
65615
  }(_base.BasePlugin);
@@ -71303,115 +71252,35 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
71303
71252
  args[_key] = arguments[_key];
71304
71253
  }
71305
71254
  _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
- */
71314
71255
  _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
- */
71321
71256
  (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
- */
71328
71257
  (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
- */
71338
71258
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "pasteMode", 'overwrite');
71339
- /**
71340
- * The UI container for the secondary focusable element.
71341
- *
71342
- * @type {HTMLElement}
71343
- */
71344
71259
  (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
- */
71352
71260
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _enableCopyColumnHeaders, {
71353
71261
  writable: true,
71354
71262
  value: false
71355
71263
  });
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
- */
71363
71264
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _enableCopyColumnGroupHeaders, {
71364
71265
  writable: true,
71365
71266
  value: false
71366
71267
  });
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
- */
71374
71268
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _enableCopyColumnHeadersOnly, {
71375
71269
  writable: true,
71376
71270
  value: false
71377
71271
  });
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
- */
71387
71272
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _copyMode, {
71388
71273
  writable: true,
71389
71274
  value: 'cells-only'
71390
71275
  });
71391
- /**
71392
- * Flag that is used to prevent copying when the native shortcut was not pressed.
71393
- *
71394
- * @type {boolean}
71395
- */
71396
71276
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _isTriggeredByCopy, {
71397
71277
  writable: true,
71398
71278
  value: false
71399
71279
  });
71400
- /**
71401
- * Flag that is used to prevent cutting when the native shortcut was not pressed.
71402
- *
71403
- * @type {boolean}
71404
- */
71405
71280
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _isTriggeredByCut, {
71406
71281
  writable: true,
71407
71282
  value: false
71408
71283
  });
71409
- /**
71410
- * Class that helps generate copyable ranges based on the current selection for different copy mode
71411
- * types.
71412
- *
71413
- * @type {CopyableRangesFactory}
71414
- */
71415
71284
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _copyableRangesFactory, {
71416
71285
  writable: true,
71417
71286
  value: new _copyableRanges.CopyableRangesFactory({
@@ -71432,19 +71301,7 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
71432
71301
  }
71433
71302
  })
71434
71303
  });
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
- */
71441
71304
  (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
- */
71448
71305
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "focusableElement", void 0);
71449
71306
  return _this;
71450
71307
  }
@@ -71753,6 +71610,15 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
71753
71610
  var _this$hot$getActiveEd2;
71754
71611
  return (_this$hot$getActiveEd2 = this.hot.getActiveEditor()) === null || _this$hot$getActiveEd2 === void 0 ? void 0 : _this$hot$getActiveEd2.isOpened();
71755
71612
  }
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
+ */
71756
71622
  }, {
71757
71623
  key: "populateValues",
71758
71624
  value:
@@ -72038,6 +71904,13 @@ var CopyPaste = /*#__PURE__*/function (_BasePlugin) {
72038
71904
  get: function get() {
72039
71905
  return PLUGIN_PRIORITY;
72040
71906
  }
71907
+
71908
+ /**
71909
+ * The maximum number of columns than can be copied to the clipboard.
71910
+ *
71911
+ * @type {number}
71912
+ * @default Infinity
71913
+ */
72041
71914
  }]);
72042
71915
  return CopyPaste;
72043
71916
  }(_base.BasePlugin);
@@ -72624,21 +72497,7 @@ var CopyableRangesFactory = /*#__PURE__*/function () {
72624
72497
  columnsLimit = _ref.columnsLimit,
72625
72498
  countColumnHeaders = _ref.countColumnHeaders;
72626
72499
  (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
- */
72634
72500
  _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
- */
72642
72501
  _classPrivateMethodInitSpec(this, _trimColumnsRange);
72643
72502
  _classPrivateFieldInitSpec(this, _selectedRange, {
72644
72503
  writable: true,
@@ -72766,6 +72625,14 @@ var CopyableRangesFactory = /*#__PURE__*/function () {
72766
72625
  endCol: finalEndCol
72767
72626
  };
72768
72627
  }
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
+ */
72769
72636
  }]);
72770
72637
  return CopyableRangesFactory;
72771
72638
  }();
@@ -72942,12 +72809,6 @@ var CustomBorders = /*#__PURE__*/function (_BasePlugin) {
72942
72809
  args[_key] = arguments[_key];
72943
72810
  }
72944
72811
  _this = _super.call.apply(_super, [this].concat(args));
72945
- /**
72946
- * Saved borders.
72947
- *
72948
- * @private
72949
- * @type {Array}
72950
- */
72951
72812
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "savedBorders", []);
72952
72813
  return _this;
72953
72814
  }
@@ -73698,6 +73559,13 @@ var CustomBorders = /*#__PURE__*/function (_BasePlugin) {
73698
73559
  get: function get() {
73699
73560
  return PLUGIN_PRIORITY;
73700
73561
  }
73562
+
73563
+ /**
73564
+ * Saved borders.
73565
+ *
73566
+ * @private
73567
+ * @type {Array}
73568
+ */
73701
73569
  }]);
73702
73570
  return CustomBorders;
73703
73571
  }(_base.BasePlugin);
@@ -79941,22 +79809,10 @@ var HiddenColumns = /*#__PURE__*/function (_BasePlugin) {
79941
79809
  args[_key] = arguments[_key];
79942
79810
  }
79943
79811
  _this = _super.call.apply(_super, [this].concat(args));
79944
- /**
79945
- * Cached plugin settings.
79946
- *
79947
- * @private
79948
- * @type {object}
79949
- */
79950
79812
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _settings, {
79951
79813
  writable: true,
79952
79814
  value: {}
79953
79815
  });
79954
- /**
79955
- * Map of hidden columns by the plugin.
79956
- *
79957
- * @private
79958
- * @type {null|HidingMap}
79959
- */
79960
79816
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _hiddenColumnsMap, {
79961
79817
  writable: true,
79962
79818
  value: null
@@ -80376,6 +80232,13 @@ var HiddenColumns = /*#__PURE__*/function (_BasePlugin) {
80376
80232
  get: function get() {
80377
80233
  return PLUGIN_PRIORITY;
80378
80234
  }
80235
+
80236
+ /**
80237
+ * Cached plugin settings.
80238
+ *
80239
+ * @private
80240
+ * @type {object}
80241
+ */
80379
80242
  }]);
80380
80243
  return HiddenColumns;
80381
80244
  }(_base.BasePlugin);
@@ -80770,22 +80633,10 @@ var HiddenRows = /*#__PURE__*/function (_BasePlugin) {
80770
80633
  args[_key] = arguments[_key];
80771
80634
  }
80772
80635
  _this = _super.call.apply(_super, [this].concat(args));
80773
- /**
80774
- * Cached settings from Handsontable settings.
80775
- *
80776
- * @private
80777
- * @type {object}
80778
- */
80779
80636
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _settings, {
80780
80637
  writable: true,
80781
80638
  value: {}
80782
80639
  });
80783
- /**
80784
- * Map of hidden rows by the plugin.
80785
- *
80786
- * @private
80787
- * @type {HidingMap|null}
80788
- */
80789
80640
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _hiddenRowsMap, {
80790
80641
  writable: true,
80791
80642
  value: null
@@ -81197,6 +81048,13 @@ var HiddenRows = /*#__PURE__*/function (_BasePlugin) {
81197
81048
  get: function get() {
81198
81049
  return PLUGIN_PRIORITY;
81199
81050
  }
81051
+
81052
+ /**
81053
+ * Cached settings from Handsontable settings.
81054
+ *
81055
+ * @private
81056
+ * @type {object}
81057
+ */
81200
81058
  }]);
81201
81059
  return HiddenRows;
81202
81060
  }(_base.BasePlugin);
@@ -88312,43 +88170,17 @@ var NestedHeaders = /*#__PURE__*/function (_BasePlugin) {
88312
88170
  args[_key] = arguments[_key];
88313
88171
  }
88314
88172
  _this = _super.call.apply(_super, [this].concat(args));
88315
- /**
88316
- * The state manager for the nested headers.
88317
- *
88318
- * @private
88319
- * @type {StateManager}
88320
- */
88321
88173
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _stateManager, {
88322
88174
  writable: true,
88323
88175
  value: new _stateManager2.default()
88324
88176
  });
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
- */
88332
88177
  _classPrivateFieldInitSpec((0, _assertThisInitialized2.default)(_this), _hidingIndexMapObserver, {
88333
88178
  writable: true,
88334
88179
  value: null
88335
88180
  });
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.
88343
88181
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "ghostTable", new _ghostTable.default(_this.hot, function (row, column) {
88344
88182
  return _this.getHeaderSettings(row, column);
88345
88183
  }));
88346
- /**
88347
- * The flag which determines that the nested header settings contains overlapping headers
88348
- * configuration.
88349
- *
88350
- * @type {boolean}
88351
- */
88352
88184
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "detectedOverlappedHeaders", false);
88353
88185
  return _this;
88354
88186
  }
@@ -88980,6 +88812,13 @@ var NestedHeaders = /*#__PURE__*/function (_BasePlugin) {
88980
88812
  get: function get() {
88981
88813
  return PLUGIN_PRIORITY;
88982
88814
  }
88815
+
88816
+ /**
88817
+ * The state manager for the nested headers.
88818
+ *
88819
+ * @private
88820
+ * @type {StateManager}
88821
+ */
88983
88822
  }]);
88984
88823
  return NestedHeaders;
88985
88824
  }(_base.BasePlugin);
@@ -89057,32 +88896,14 @@ var _stateMatrix = /*#__PURE__*/new WeakMap();
89057
88896
  var StateManager = /*#__PURE__*/function () {
89058
88897
  function StateManager() {
89059
88898
  (0, _classCallCheck2.default)(this, StateManager);
89060
- /**
89061
- * The instance of the source settings class.
89062
- *
89063
- * @private
89064
- * @type {SourceSettings}
89065
- */
89066
88899
  _classPrivateFieldInitSpec(this, _sourceSettings, {
89067
88900
  writable: true,
89068
88901
  value: new _sourceSettings2.default()
89069
88902
  });
89070
- /**
89071
- * The instance of the headers tree. The tree is generated after setting new configuration data.
89072
- *
89073
- * @private
89074
- * @type {HeadersTree}
89075
- */
89076
88903
  _classPrivateFieldInitSpec(this, _headersTree, {
89077
88904
  writable: true,
89078
88905
  value: new _headersTree2.default((0, _classPrivateFieldGet4.default)(this, _sourceSettings))
89079
88906
  });
89080
- /**
89081
- * Cached matrix which is generated from the tree structure.
89082
- *
89083
- * @private
89084
- * @type {Array[]}
89085
- */
89086
88907
  _classPrivateFieldInitSpec(this, _stateMatrix, {
89087
88908
  writable: true,
89088
88909
  value: [[]]
@@ -89488,33 +89309,14 @@ var _columnsLimit = /*#__PURE__*/new WeakMap();
89488
89309
  var SourceSettings = /*#__PURE__*/function () {
89489
89310
  function SourceSettings() {
89490
89311
  (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
- */
89497
89312
  _classPrivateFieldInitSpec(this, _data, {
89498
89313
  writable: true,
89499
89314
  value: []
89500
89315
  });
89501
- /**
89502
- * The total length of the nested header layers.
89503
- *
89504
- * @private
89505
- * @type {number}
89506
- */
89507
89316
  _classPrivateFieldInitSpec(this, _dataLength, {
89508
89317
  writable: true,
89509
89318
  value: 0
89510
89319
  });
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
- */
89518
89320
  _classPrivateFieldInitSpec(this, _columnsLimit, {
89519
89321
  writable: true,
89520
89322
  value: Infinity