@handsontable/react 12.1.3 → 12.2.0

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.
@@ -4,17 +4,14 @@ import Handsontable from 'handsontable/base';
4
4
 
5
5
  function ownKeys(object, enumerableOnly) {
6
6
  var keys = Object.keys(object);
7
-
8
7
  if (Object.getOwnPropertySymbols) {
9
8
  var symbols = Object.getOwnPropertySymbols(object);
10
9
  enumerableOnly && (symbols = symbols.filter(function (sym) {
11
10
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
12
11
  })), keys.push.apply(keys, symbols);
13
12
  }
14
-
15
13
  return keys;
16
14
  }
17
-
18
15
  function _objectSpread2(target) {
19
16
  for (var i = 1; i < arguments.length; i++) {
20
17
  var source = null != arguments[i] ? arguments[i] : {};
@@ -24,10 +21,8 @@ function _objectSpread2(target) {
24
21
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
25
22
  });
26
23
  }
27
-
28
24
  return target;
29
25
  }
30
-
31
26
  function _typeof(obj) {
32
27
  "@babel/helpers - typeof";
33
28
 
@@ -37,13 +32,11 @@ function _typeof(obj) {
37
32
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
38
33
  }, _typeof(obj);
39
34
  }
40
-
41
35
  function _classCallCheck(instance, Constructor) {
42
36
  if (!(instance instanceof Constructor)) {
43
37
  throw new TypeError("Cannot call a class as a function");
44
38
  }
45
39
  }
46
-
47
40
  function _defineProperties(target, props) {
48
41
  for (var i = 0; i < props.length; i++) {
49
42
  var descriptor = props[i];
@@ -53,7 +46,6 @@ function _defineProperties(target, props) {
53
46
  Object.defineProperty(target, descriptor.key, descriptor);
54
47
  }
55
48
  }
56
-
57
49
  function _createClass(Constructor, protoProps, staticProps) {
58
50
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
59
51
  if (staticProps) _defineProperties(Constructor, staticProps);
@@ -62,7 +54,6 @@ function _createClass(Constructor, protoProps, staticProps) {
62
54
  });
63
55
  return Constructor;
64
56
  }
65
-
66
57
  function _defineProperty(obj, key, value) {
67
58
  if (key in obj) {
68
59
  Object.defineProperty(obj, key, {
@@ -74,15 +65,12 @@ function _defineProperty(obj, key, value) {
74
65
  } else {
75
66
  obj[key] = value;
76
67
  }
77
-
78
68
  return obj;
79
69
  }
80
-
81
70
  function _inherits(subClass, superClass) {
82
71
  if (typeof superClass !== "function" && superClass !== null) {
83
72
  throw new TypeError("Super expression must either be null or a function");
84
73
  }
85
-
86
74
  subClass.prototype = Object.create(superClass && superClass.prototype, {
87
75
  constructor: {
88
76
  value: subClass,
@@ -95,14 +83,12 @@ function _inherits(subClass, superClass) {
95
83
  });
96
84
  if (superClass) _setPrototypeOf(subClass, superClass);
97
85
  }
98
-
99
86
  function _getPrototypeOf(o) {
100
87
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
101
88
  return o.__proto__ || Object.getPrototypeOf(o);
102
89
  };
103
90
  return _getPrototypeOf(o);
104
91
  }
105
-
106
92
  function _setPrototypeOf(o, p) {
107
93
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
108
94
  o.__proto__ = p;
@@ -110,12 +96,10 @@ function _setPrototypeOf(o, p) {
110
96
  };
111
97
  return _setPrototypeOf(o, p);
112
98
  }
113
-
114
99
  function _isNativeReflectConstruct() {
115
100
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
116
101
  if (Reflect.construct.sham) return false;
117
102
  if (typeof Proxy === "function") return true;
118
-
119
103
  try {
120
104
  Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
121
105
  return true;
@@ -123,40 +107,31 @@ function _isNativeReflectConstruct() {
123
107
  return false;
124
108
  }
125
109
  }
126
-
127
110
  function _assertThisInitialized(self) {
128
111
  if (self === void 0) {
129
112
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
130
113
  }
131
-
132
114
  return self;
133
115
  }
134
-
135
116
  function _possibleConstructorReturn(self, call) {
136
117
  if (call && (typeof call === "object" || typeof call === "function")) {
137
118
  return call;
138
119
  } else if (call !== void 0) {
139
120
  throw new TypeError("Derived constructors may only return object or undefined");
140
121
  }
141
-
142
122
  return _assertThisInitialized(self);
143
123
  }
144
-
145
124
  function _createSuper(Derived) {
146
125
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
147
-
148
126
  return function _createSuperInternal() {
149
127
  var Super = _getPrototypeOf(Derived),
150
- result;
151
-
128
+ result;
152
129
  if (hasNativeReflectConstruct) {
153
130
  var NewTarget = _getPrototypeOf(this).constructor;
154
-
155
131
  result = Reflect.construct(Super, arguments, NewTarget);
156
132
  } else {
157
133
  result = Super.apply(this, arguments);
158
134
  }
159
-
160
135
  return _possibleConstructorReturn(this, result);
161
136
  };
162
137
  }
@@ -165,33 +140,27 @@ var bulkComponentContainer = null;
165
140
  /**
166
141
  * Warning message for the `autoRowSize`/`autoColumnSize` compatibility check.
167
142
  */
168
-
169
143
  var AUTOSIZE_WARNING = 'Your `HotTable` configuration includes `autoRowSize`/`autoColumnSize` options, which are not compatible with ' + ' the component-based renderers`. Disable `autoRowSize` and `autoColumnSize` to prevent row and column misalignment.';
170
144
  /**
171
145
  * Message for the warning thrown if the Handsontable instance has been destroyed.
172
146
  */
173
-
174
147
  var HOT_DESTROYED_WARNING = 'The Handsontable instance bound to this component was destroyed and cannot be' + ' used properly.';
175
148
  /**
176
149
  * String identifier for the global-scoped editor components.
177
150
  */
178
-
179
151
  var GLOBAL_EDITOR_SCOPE = 'global';
180
152
  /**
181
153
  * Default classname given to the wrapper container.
182
154
  */
183
-
184
155
  var DEFAULT_CLASSNAME = 'hot-wrapper-editor-container';
185
156
  /**
186
157
  * Logs warn to the console if the `console` object is exposed.
187
158
  *
188
159
  * @param {...*} args Values which will be logged.
189
160
  */
190
-
191
161
  function warn() {
192
162
  if (typeof console !== 'undefined') {
193
163
  var _console;
194
-
195
164
  (_console = console).warn.apply(_console, arguments);
196
165
  }
197
166
  }
@@ -202,12 +171,10 @@ function warn() {
202
171
  * @param {String} type Either `'hot-renderer'` or `'hot-editor'`.
203
172
  * @returns {Object|null} A child (React node) or `null`, if no child of that type was found.
204
173
  */
205
-
206
174
  function getChildElementByType(children, type) {
207
175
  var childrenArray = React.Children.toArray(children);
208
176
  var childrenCount = React.Children.count(children);
209
177
  var wantedChild = null;
210
-
211
178
  if (childrenCount !== 0) {
212
179
  if (childrenCount === 1 && childrenArray[0].props[type]) {
213
180
  wantedChild = childrenArray[0];
@@ -217,7 +184,6 @@ function getChildElementByType(children, type) {
217
184
  });
218
185
  }
219
186
  }
220
-
221
187
  return wantedChild || null;
222
188
  }
223
189
  /**
@@ -226,12 +192,10 @@ function getChildElementByType(children, type) {
226
192
  * @param {React.ReactElement} editorElement React element of the editor class.
227
193
  * @returns {Function} Original class of the editor component.
228
194
  */
229
-
230
195
  function getOriginalEditorClass(editorElement) {
231
196
  if (!editorElement) {
232
197
  return null;
233
198
  }
234
-
235
199
  return editorElement.type.WrappedComponent ? editorElement.type.WrappedComponent : editorElement.type;
236
200
  }
237
201
  /**
@@ -240,7 +204,6 @@ function getOriginalEditorClass(editorElement) {
240
204
  * @param {Document} [doc] Document to be used.
241
205
  * @param {Map} editorCache The editor cache reference.
242
206
  */
243
-
244
207
  function removeEditorContainers() {
245
208
  var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;
246
209
  doc.querySelectorAll("[class^=\"".concat(DEFAULT_CLASSNAME, "\"]")).forEach(function (domNode) {
@@ -257,32 +220,24 @@ function removeEditorContainers() {
257
220
  * @param {Map} editorCache The editor cache reference.
258
221
  * @returns {React.ReactPortal} The portal for the editor.
259
222
  */
260
-
261
223
  function createEditorPortal() {
262
224
  var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;
263
225
  var editorElement = arguments.length > 1 ? arguments[1] : undefined;
264
-
265
226
  if (editorElement === null) {
266
227
  return;
267
228
  }
268
-
269
229
  var editorContainer = doc.createElement('DIV');
270
-
271
230
  var _getContainerAttribut = getContainerAttributesProps(editorElement.props, false),
272
- id = _getContainerAttribut.id,
273
- className = _getContainerAttribut.className,
274
- style = _getContainerAttribut.style;
275
-
231
+ id = _getContainerAttribut.id,
232
+ className = _getContainerAttribut.className,
233
+ style = _getContainerAttribut.style;
276
234
  if (id) {
277
235
  editorContainer.id = id;
278
236
  }
279
-
280
237
  editorContainer.className = [DEFAULT_CLASSNAME, className].join(' ');
281
-
282
238
  if (style) {
283
239
  Object.assign(editorContainer.style, style);
284
240
  }
285
-
286
241
  doc.body.appendChild(editorContainer);
287
242
  return ReactDOM.createPortal(editorElement, editorContainer);
288
243
  }
@@ -295,22 +250,18 @@ function createEditorPortal() {
295
250
  * 'global'.
296
251
  * @returns {React.ReactElement} An editor element containing the additional methods.
297
252
  */
298
-
299
253
  function getExtendedEditorElement(children, editorCache) {
300
254
  var editorColumnScope = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : GLOBAL_EDITOR_SCOPE;
301
255
  var editorElement = getChildElementByType(children, 'hot-editor');
302
256
  var editorClass = getOriginalEditorClass(editorElement);
303
-
304
257
  if (!editorElement) {
305
258
  return null;
306
259
  }
307
-
308
260
  return React.cloneElement(editorElement, {
309
261
  emitEditorInstance: function emitEditorInstance(editorInstance, editorColumnScope) {
310
262
  if (!editorCache.get(editorClass)) {
311
263
  editorCache.set(editorClass, new Map());
312
264
  }
313
-
314
265
  var cacheEntry = editorCache.get(editorClass);
315
266
  cacheEntry.set(editorColumnScope !== null && editorColumnScope !== void 0 ? editorColumnScope : GLOBAL_EDITOR_SCOPE, editorInstance);
316
267
  },
@@ -327,18 +278,14 @@ function getExtendedEditorElement(children, editorCache) {
327
278
  * @param {Document} [ownerDocument] The owner document to set the portal up into.
328
279
  * @returns {{portal: React.ReactPortal, portalContainer: HTMLElement}} An object containing the portal and its container.
329
280
  */
330
-
331
281
  function createPortal(rElement, props, callback) {
332
282
  var ownerDocument = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : document;
333
-
334
283
  if (!ownerDocument) {
335
284
  ownerDocument = document;
336
285
  }
337
-
338
286
  if (!bulkComponentContainer) {
339
287
  bulkComponentContainer = ownerDocument.createDocumentFragment();
340
288
  }
341
-
342
289
  var portalContainer = ownerDocument.createElement('DIV');
343
290
  bulkComponentContainer.appendChild(portalContainer);
344
291
  var extendedRendererElement = React.cloneElement(rElement, _objectSpread2({
@@ -358,7 +305,6 @@ function createPortal(rElement, props, callback) {
358
305
  * @returns An object containing the `id`, `className` and `style` keys, representing the corresponding props passed to the
359
306
  * component.
360
307
  */
361
-
362
308
  function getContainerAttributesProps(props) {
363
309
  var randomizeId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
364
310
  return {
@@ -372,13 +318,11 @@ function getContainerAttributesProps(props) {
372
318
  *
373
319
  * @param {Object} instance Instance to have the methods renamed.
374
320
  */
375
-
376
321
  function addUnsafePrefixes(instance) {
377
322
  var reactSemverArray = React.version.split('.').map(function (v) {
378
323
  return parseInt(v);
379
324
  });
380
325
  var shouldPrefix = reactSemverArray[0] >= 16 && reactSemverArray[1] >= 3 || reactSemverArray[0] >= 17;
381
-
382
326
  if (shouldPrefix) {
383
327
  instance.UNSAFE_componentWillUpdate = instance.componentWillUpdate;
384
328
  instance.componentWillUpdate = void 0;
@@ -391,7 +335,6 @@ var SettingsMapper = /*#__PURE__*/function () {
391
335
  function SettingsMapper() {
392
336
  _classCallCheck(this, SettingsMapper);
393
337
  }
394
-
395
338
  _createClass(SettingsMapper, null, [{
396
339
  key: "getSettings",
397
340
  value:
@@ -403,35 +346,28 @@ var SettingsMapper = /*#__PURE__*/function () {
403
346
  */
404
347
  function getSettings(properties) {
405
348
  var newSettings = {};
406
-
407
349
  if (properties.settings) {
408
350
  var settings = properties.settings;
409
-
410
351
  for (var key in settings) {
411
352
  if (settings.hasOwnProperty(key)) {
412
353
  newSettings[key] = settings[key];
413
354
  }
414
355
  }
415
356
  }
416
-
417
357
  for (var _key in properties) {
418
358
  if (_key !== 'settings' && _key !== 'children' && properties.hasOwnProperty(_key)) {
419
359
  newSettings[_key] = properties[_key];
420
360
  }
421
361
  }
422
-
423
362
  return newSettings;
424
363
  }
425
364
  }]);
426
-
427
365
  return SettingsMapper;
428
366
  }();
429
367
 
430
368
  var HotColumn = /*#__PURE__*/function (_React$Component) {
431
369
  _inherits(HotColumn, _React$Component);
432
-
433
370
  var _super = _createSuper(HotColumn);
434
-
435
371
  /**
436
372
  * HotColumn class constructor.
437
373
  *
@@ -440,9 +376,7 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
440
376
  */
441
377
  function HotColumn(props, context) {
442
378
  var _this;
443
-
444
379
  _classCallCheck(this, HotColumn);
445
-
446
380
  _this = _super.call(this, props, context);
447
381
  /**
448
382
  * Local editor portal cache.
@@ -450,7 +384,6 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
450
384
  * @private
451
385
  * @type {ReactPortal}
452
386
  */
453
-
454
387
  _this.localEditorPortal = null;
455
388
  addUnsafePrefixes(_assertThisInitialized(_this));
456
389
  return _this;
@@ -460,8 +393,6 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
460
393
  *
461
394
  * @return {ReactPortal} Local editor portal.
462
395
  */
463
-
464
-
465
396
  _createClass(HotColumn, [{
466
397
  key: "getLocalEditorPortal",
467
398
  value: function getLocalEditorPortal() {
@@ -472,7 +403,6 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
472
403
  *
473
404
  * @param {ReactPortal} portal Local editor portal.
474
405
  */
475
-
476
406
  }, {
477
407
  key: "setLocalEditorPortal",
478
408
  value: function setLocalEditorPortal(portal) {
@@ -483,12 +413,10 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
483
413
  *
484
414
  * @returns {Object}
485
415
  */
486
-
487
416
  }, {
488
417
  key: "getSettingsProps",
489
418
  value: function getSettingsProps() {
490
419
  var _this2 = this;
491
-
492
420
  this.internalProps = ['__componentRendererColumns', '_emitColumnSettings', '_columnIndex', '_getChildElementByType', '_getRendererWrapper', '_getEditorClass', '_getEditorCache', '_getOwnerDocument', 'hot-renderer', 'hot-editor', 'children'];
493
421
  return Object.keys(this.props).filter(function (key) {
494
422
  return !_this2.internalProps.includes(key);
@@ -503,7 +431,6 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
503
431
  * @param {String} propName Property name.
504
432
  * @returns {Boolean}
505
433
  */
506
-
507
434
  }, {
508
435
  key: "hasProp",
509
436
  value: function hasProp(propName) {
@@ -514,7 +441,6 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
514
441
  *
515
442
  * @returns {React.ReactElement} React editor component element.
516
443
  */
517
-
518
444
  }, {
519
445
  key: "getLocalEditorElement",
520
446
  value: function getLocalEditorElement() {
@@ -523,25 +449,20 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
523
449
  /**
524
450
  * Create the column settings based on the data provided to the `HotColumn` component and it's child components.
525
451
  */
526
-
527
452
  }, {
528
453
  key: "createColumnSettings",
529
454
  value: function createColumnSettings() {
530
455
  var rendererElement = this.props._getChildElementByType(this.props.children, 'hot-renderer');
531
-
532
456
  var editorElement = this.getLocalEditorElement();
533
457
  this.columnSettings = SettingsMapper.getSettings(this.getSettingsProps());
534
-
535
458
  if (rendererElement !== null) {
536
459
  this.columnSettings.renderer = this.props._getRendererWrapper(rendererElement);
537
-
538
460
  this.props._componentRendererColumns.set(this.props._columnIndex, true);
539
461
  } else if (this.hasProp('renderer')) {
540
462
  this.columnSettings.renderer = this.props.renderer;
541
463
  } else {
542
464
  this.columnSettings.renderer = void 0;
543
465
  }
544
-
545
466
  if (editorElement !== null) {
546
467
  this.columnSettings.editor = this.props._getEditorClass(editorElement, this.props._columnIndex);
547
468
  } else if (this.hasProp('editor')) {
@@ -555,16 +476,12 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
555
476
  *
556
477
  * @param {React.ReactNode} [children] Children of the HotTable instance. Defaults to `this.props.children`.
557
478
  */
558
-
559
479
  }, {
560
480
  key: "createLocalEditorPortal",
561
481
  value: function createLocalEditorPortal() {
562
482
  var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props.children;
563
-
564
483
  var editorCache = this.props._getEditorCache();
565
-
566
484
  var localEditorElement = getExtendedEditorElement(children, editorCache, this.props._columnIndex);
567
-
568
485
  if (localEditorElement) {
569
486
  this.setLocalEditorPortal(createEditorPortal(this.props._getOwnerDocument(), localEditorElement, editorCache));
570
487
  }
@@ -572,7 +489,6 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
572
489
  /**
573
490
  * Emit the column settings to the parent using a prop passed from the parent.
574
491
  */
575
-
576
492
  }, {
577
493
  key: "emitColumnSettings",
578
494
  value: function emitColumnSettings() {
@@ -583,11 +499,9 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
583
499
  ------- React lifecycle methods -------
584
500
  ---------------------------------------
585
501
  */
586
-
587
502
  /**
588
503
  * Logic performed before the mounting of the HotColumn component.
589
504
  */
590
-
591
505
  }, {
592
506
  key: "componentWillMount",
593
507
  value: function componentWillMount() {
@@ -596,7 +510,6 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
596
510
  /**
597
511
  * Logic performed after the mounting of the HotColumn component.
598
512
  */
599
-
600
513
  }, {
601
514
  key: "componentDidMount",
602
515
  value: function componentDidMount() {
@@ -606,7 +519,6 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
606
519
  /**
607
520
  * Logic performed before the updating of the HotColumn component.
608
521
  */
609
-
610
522
  }, {
611
523
  key: "componentWillUpdate",
612
524
  value: function componentWillUpdate(nextProps, nextState, nextContext) {
@@ -615,7 +527,6 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
615
527
  /**
616
528
  * Logic performed after the updating of the HotColumn component.
617
529
  */
618
-
619
530
  }, {
620
531
  key: "componentDidUpdate",
621
532
  value: function componentDidUpdate() {
@@ -627,49 +538,40 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
627
538
  *
628
539
  * @returns {React.ReactElement}
629
540
  */
630
-
631
541
  }, {
632
542
  key: "render",
633
543
  value: function render() {
634
544
  return React.createElement(React.Fragment, null, this.getLocalEditorPortal());
635
545
  }
636
546
  }]);
637
-
638
547
  return HotColumn;
639
548
  }(React.Component);
640
549
 
641
550
  /**
642
551
  * Component class used to manage the renderer component portals.
643
552
  */
644
-
645
553
  var PortalManager = /*#__PURE__*/function (_React$Component) {
646
554
  _inherits(PortalManager, _React$Component);
647
-
648
555
  var _super = _createSuper(PortalManager);
649
-
650
556
  function PortalManager(props) {
651
557
  var _this;
652
-
653
558
  _classCallCheck(this, PortalManager);
654
-
655
559
  _this = _super.call(this, props);
656
560
  _this.state = {
657
561
  portals: []
658
562
  };
659
563
  return _this;
660
564
  }
661
-
662
565
  _createClass(PortalManager, [{
663
566
  key: "render",
664
567
  value: function render() {
665
568
  return React.createElement(React.Fragment, null, this.state.portals);
666
569
  }
667
570
  }]);
668
-
669
571
  return PortalManager;
670
572
  }(React.Component);
671
573
 
672
- var version="12.1.3";
574
+ var version="12.2.0";
673
575
 
674
576
  function createCommonjsModule(fn, module) {
675
577
  return module = { exports: {} }, fn(module, module.exports), module.exports;
@@ -684,29 +586,27 @@ function createCommonjsModule(fn, module) {
684
586
  * LICENSE file in the root directory of this source tree.
685
587
  */
686
588
  var b = "function" === typeof Symbol && Symbol["for"],
687
- c = b ? Symbol["for"]("react.element") : 60103,
688
- d = b ? Symbol["for"]("react.portal") : 60106,
689
- e = b ? Symbol["for"]("react.fragment") : 60107,
690
- f = b ? Symbol["for"]("react.strict_mode") : 60108,
691
- g = b ? Symbol["for"]("react.profiler") : 60114,
692
- h = b ? Symbol["for"]("react.provider") : 60109,
693
- k = b ? Symbol["for"]("react.context") : 60110,
694
- l = b ? Symbol["for"]("react.async_mode") : 60111,
695
- m = b ? Symbol["for"]("react.concurrent_mode") : 60111,
696
- n = b ? Symbol["for"]("react.forward_ref") : 60112,
697
- p = b ? Symbol["for"]("react.suspense") : 60113,
698
- q = b ? Symbol["for"]("react.suspense_list") : 60120,
699
- r = b ? Symbol["for"]("react.memo") : 60115,
700
- t = b ? Symbol["for"]("react.lazy") : 60116,
701
- v = b ? Symbol["for"]("react.block") : 60121,
702
- w = b ? Symbol["for"]("react.fundamental") : 60117,
703
- x = b ? Symbol["for"]("react.responder") : 60118,
704
- y = b ? Symbol["for"]("react.scope") : 60119;
705
-
589
+ c = b ? Symbol["for"]("react.element") : 60103,
590
+ d = b ? Symbol["for"]("react.portal") : 60106,
591
+ e = b ? Symbol["for"]("react.fragment") : 60107,
592
+ f = b ? Symbol["for"]("react.strict_mode") : 60108,
593
+ g = b ? Symbol["for"]("react.profiler") : 60114,
594
+ h = b ? Symbol["for"]("react.provider") : 60109,
595
+ k = b ? Symbol["for"]("react.context") : 60110,
596
+ l = b ? Symbol["for"]("react.async_mode") : 60111,
597
+ m = b ? Symbol["for"]("react.concurrent_mode") : 60111,
598
+ n = b ? Symbol["for"]("react.forward_ref") : 60112,
599
+ p = b ? Symbol["for"]("react.suspense") : 60113,
600
+ q = b ? Symbol["for"]("react.suspense_list") : 60120,
601
+ r = b ? Symbol["for"]("react.memo") : 60115,
602
+ t = b ? Symbol["for"]("react.lazy") : 60116,
603
+ v = b ? Symbol["for"]("react.block") : 60121,
604
+ w = b ? Symbol["for"]("react.fundamental") : 60117,
605
+ x = b ? Symbol["for"]("react.responder") : 60118,
606
+ y = b ? Symbol["for"]("react.scope") : 60119;
706
607
  function z(a) {
707
608
  if ("object" === _typeof(a) && null !== a) {
708
609
  var u = a.$$typeof;
709
-
710
610
  switch (u) {
711
611
  case c:
712
612
  switch (a = a.type, a) {
@@ -717,7 +617,6 @@ function z(a) {
717
617
  case f:
718
618
  case p:
719
619
  return a;
720
-
721
620
  default:
722
621
  switch (a = a && a.$$typeof, a) {
723
622
  case k:
@@ -726,23 +625,18 @@ function z(a) {
726
625
  case r:
727
626
  case h:
728
627
  return a;
729
-
730
628
  default:
731
629
  return u;
732
630
  }
733
-
734
631
  }
735
-
736
632
  case d:
737
633
  return u;
738
634
  }
739
635
  }
740
636
  }
741
-
742
637
  function A(a) {
743
638
  return z(a) === m;
744
639
  }
745
-
746
640
  var AsyncMode = l;
747
641
  var ConcurrentMode = m;
748
642
  var ContextConsumer = k;
@@ -756,61 +650,46 @@ var Portal = d;
756
650
  var Profiler = g;
757
651
  var StrictMode = f;
758
652
  var Suspense = p;
759
-
760
653
  var isAsyncMode = function isAsyncMode(a) {
761
654
  return A(a) || z(a) === l;
762
655
  };
763
-
764
656
  var isConcurrentMode = A;
765
-
766
657
  var isContextConsumer = function isContextConsumer(a) {
767
658
  return z(a) === k;
768
659
  };
769
-
770
660
  var isContextProvider = function isContextProvider(a) {
771
661
  return z(a) === h;
772
662
  };
773
-
774
663
  var isElement = function isElement(a) {
775
664
  return "object" === _typeof(a) && null !== a && a.$$typeof === c;
776
665
  };
777
-
778
666
  var isForwardRef = function isForwardRef(a) {
779
667
  return z(a) === n;
780
668
  };
781
-
782
669
  var isFragment = function isFragment(a) {
783
670
  return z(a) === e;
784
671
  };
785
-
786
672
  var isLazy = function isLazy(a) {
787
673
  return z(a) === t;
788
674
  };
789
-
790
675
  var isMemo = function isMemo(a) {
791
676
  return z(a) === r;
792
677
  };
793
-
794
678
  var isPortal = function isPortal(a) {
795
679
  return z(a) === d;
796
680
  };
797
-
798
681
  var isProfiler = function isProfiler(a) {
799
682
  return z(a) === g;
800
683
  };
801
-
802
684
  var isStrictMode = function isStrictMode(a) {
803
685
  return z(a) === f;
804
686
  };
805
-
806
687
  var isSuspense = function isSuspense(a) {
807
688
  return z(a) === p;
808
689
  };
809
-
810
690
  var isValidElementType = function isValidElementType(a) {
811
691
  return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === _typeof(a) && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
812
692
  };
813
-
814
693
  var typeOf = z;
815
694
  var reactIs_production_min = {
816
695
  AsyncMode: AsyncMode,
@@ -847,8 +726,9 @@ var reactIs_development = createCommonjsModule(function (module, exports) {
847
726
 
848
727
  if (process.env.NODE_ENV !== "production") {
849
728
  (function () {
850
- // nor polyfill, then a plain number is used for performance.
851
729
 
730
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
731
+ // nor polyfill, then a plain number is used for performance.
852
732
  var hasSymbol = typeof Symbol === 'function' && Symbol["for"];
853
733
  var REACT_ELEMENT_TYPE = hasSymbol ? Symbol["for"]('react.element') : 0xeac7;
854
734
  var REACT_PORTAL_TYPE = hasSymbol ? Symbol["for"]('react.portal') : 0xeaca;
@@ -870,20 +750,17 @@ var reactIs_development = createCommonjsModule(function (module, exports) {
870
750
  var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol["for"]('react.fundamental') : 0xead5;
871
751
  var REACT_RESPONDER_TYPE = hasSymbol ? Symbol["for"]('react.responder') : 0xead6;
872
752
  var REACT_SCOPE_TYPE = hasSymbol ? Symbol["for"]('react.scope') : 0xead7;
873
-
874
753
  function isValidElementType(type) {
875
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
754
+ return typeof type === 'string' || typeof type === 'function' ||
755
+ // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
876
756
  type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || _typeof(type) === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
877
757
  }
878
-
879
758
  function typeOf(object) {
880
759
  if (_typeof(object) === 'object' && object !== null) {
881
760
  var $$typeof = object.$$typeof;
882
-
883
761
  switch ($$typeof) {
884
762
  case REACT_ELEMENT_TYPE:
885
763
  var type = object.type;
886
-
887
764
  switch (type) {
888
765
  case REACT_ASYNC_MODE_TYPE:
889
766
  case REACT_CONCURRENT_MODE_TYPE:
@@ -892,10 +769,8 @@ var reactIs_development = createCommonjsModule(function (module, exports) {
892
769
  case REACT_STRICT_MODE_TYPE:
893
770
  case REACT_SUSPENSE_TYPE:
894
771
  return type;
895
-
896
772
  default:
897
773
  var $$typeofType = type && type.$$typeof;
898
-
899
774
  switch ($$typeofType) {
900
775
  case REACT_CONTEXT_TYPE:
901
776
  case REACT_FORWARD_REF_TYPE:
@@ -903,22 +778,17 @@ var reactIs_development = createCommonjsModule(function (module, exports) {
903
778
  case REACT_MEMO_TYPE:
904
779
  case REACT_PROVIDER_TYPE:
905
780
  return $$typeofType;
906
-
907
781
  default:
908
782
  return $$typeof;
909
783
  }
910
-
911
784
  }
912
-
913
785
  case REACT_PORTAL_TYPE:
914
786
  return $$typeof;
915
787
  }
916
788
  }
917
-
918
789
  return undefined;
919
790
  } // AsyncMode is deprecated along with isAsyncMode
920
791
 
921
-
922
792
  var AsyncMode = REACT_ASYNC_MODE_TYPE;
923
793
  var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
924
794
  var ContextConsumer = REACT_CONTEXT_TYPE;
@@ -944,55 +814,42 @@ var reactIs_development = createCommonjsModule(function (module, exports) {
944
814
  }
945
815
  return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
946
816
  }
947
-
948
817
  function isConcurrentMode(object) {
949
818
  return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
950
819
  }
951
-
952
820
  function isContextConsumer(object) {
953
821
  return typeOf(object) === REACT_CONTEXT_TYPE;
954
822
  }
955
-
956
823
  function isContextProvider(object) {
957
824
  return typeOf(object) === REACT_PROVIDER_TYPE;
958
825
  }
959
-
960
826
  function isElement(object) {
961
827
  return _typeof(object) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
962
828
  }
963
-
964
829
  function isForwardRef(object) {
965
830
  return typeOf(object) === REACT_FORWARD_REF_TYPE;
966
831
  }
967
-
968
832
  function isFragment(object) {
969
833
  return typeOf(object) === REACT_FRAGMENT_TYPE;
970
834
  }
971
-
972
835
  function isLazy(object) {
973
836
  return typeOf(object) === REACT_LAZY_TYPE;
974
837
  }
975
-
976
838
  function isMemo(object) {
977
839
  return typeOf(object) === REACT_MEMO_TYPE;
978
840
  }
979
-
980
841
  function isPortal(object) {
981
842
  return typeOf(object) === REACT_PORTAL_TYPE;
982
843
  }
983
-
984
844
  function isProfiler(object) {
985
845
  return typeOf(object) === REACT_PROFILER_TYPE;
986
846
  }
987
-
988
847
  function isStrictMode(object) {
989
848
  return typeOf(object) === REACT_STRICT_MODE_TYPE;
990
849
  }
991
-
992
850
  function isSuspense(object) {
993
851
  return typeOf(object) === REACT_SUSPENSE_TYPE;
994
852
  }
995
-
996
853
  exports.AsyncMode = AsyncMode;
997
854
  exports.ConcurrentMode = ConcurrentMode;
998
855
  exports.ContextConsumer = ContextConsumer;
@@ -1067,85 +924,71 @@ object-assign
1067
924
  (c) Sindre Sorhus
1068
925
  @license MIT
1069
926
  */
1070
- /* eslint-disable no-unused-vars */
1071
927
 
928
+ /* eslint-disable no-unused-vars */
1072
929
  var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1073
930
  var hasOwnProperty = Object.prototype.hasOwnProperty;
1074
931
  var propIsEnumerable = Object.prototype.propertyIsEnumerable;
1075
-
1076
932
  function toObject(val) {
1077
933
  if (val === null || val === undefined) {
1078
934
  throw new TypeError('Object.assign cannot be called with null or undefined');
1079
935
  }
1080
-
1081
936
  return Object(val);
1082
937
  }
1083
-
1084
938
  function shouldUseNative() {
1085
939
  try {
1086
940
  if (!Object.assign) {
1087
941
  return false;
1088
- } // Detect buggy property enumeration order in older V8 versions.
1089
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
942
+ }
1090
943
 
944
+ // Detect buggy property enumeration order in older V8 versions.
1091
945
 
946
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
1092
947
  var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
1093
-
1094
948
  test1[5] = 'de';
1095
-
1096
949
  if (Object.getOwnPropertyNames(test1)[0] === '5') {
1097
950
  return false;
1098
- } // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1099
-
951
+ }
1100
952
 
953
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1101
954
  var test2 = {};
1102
-
1103
955
  for (var i = 0; i < 10; i++) {
1104
956
  test2['_' + String.fromCharCode(i)] = i;
1105
957
  }
1106
-
1107
958
  var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
1108
959
  return test2[n];
1109
960
  });
1110
-
1111
961
  if (order2.join('') !== '0123456789') {
1112
962
  return false;
1113
- } // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1114
-
963
+ }
1115
964
 
965
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1116
966
  var test3 = {};
1117
967
  'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
1118
968
  test3[letter] = letter;
1119
969
  });
1120
-
1121
970
  if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
1122
971
  return false;
1123
972
  }
1124
-
1125
973
  return true;
1126
974
  } catch (err) {
1127
975
  // We don't expect any of the above to throw, but better to be safe.
1128
976
  return false;
1129
977
  }
1130
978
  }
1131
-
1132
979
  var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
1133
980
  var from;
1134
981
  var to = toObject(target);
1135
982
  var symbols;
1136
-
1137
983
  for (var s = 1; s < arguments.length; s++) {
1138
984
  from = Object(arguments[s]);
1139
-
1140
985
  for (var key in from) {
1141
986
  if (hasOwnProperty.call(from, key)) {
1142
987
  to[key] = from[key];
1143
988
  }
1144
989
  }
1145
-
1146
990
  if (getOwnPropertySymbols) {
1147
991
  symbols = getOwnPropertySymbols(from);
1148
-
1149
992
  for (var i = 0; i < symbols.length; i++) {
1150
993
  if (propIsEnumerable.call(from, symbols[i])) {
1151
994
  to[symbols[i]] = from[symbols[i]];
@@ -1153,7 +996,6 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
1153
996
  }
1154
997
  }
1155
998
  }
1156
-
1157
999
  return to;
1158
1000
  };
1159
1001
 
@@ -1170,29 +1012,24 @@ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
1170
1012
  var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
1171
1013
 
1172
1014
  var printWarning$1 = function printWarning() {};
1173
-
1174
1015
  if (process.env.NODE_ENV !== 'production') {
1175
1016
  var ReactPropTypesSecret = ReactPropTypesSecret_1;
1176
1017
  var loggedTypeFailures = {};
1177
1018
  var has = has$1;
1178
-
1179
1019
  printWarning$1 = function printWarning(text) {
1180
1020
  var message = 'Warning: ' + text;
1181
-
1182
1021
  if (typeof console !== 'undefined') {
1183
1022
  console.error(message);
1184
1023
  }
1185
-
1186
1024
  try {
1187
1025
  // --- Welcome to debugging React ---
1188
1026
  // This error was thrown as a convenience so that you can use this stack
1189
1027
  // to find the callsite that caused this warning to fire.
1190
1028
  throw new Error(message);
1191
- } catch (x) {
1192
- /**/
1193
- }
1029
+ } catch (x) {/**/}
1194
1030
  };
1195
1031
  }
1032
+
1196
1033
  /**
1197
1034
  * Assert that the values match with the type specs.
1198
1035
  * Error messages are memorized and will only be shown once.
@@ -1204,16 +1041,14 @@ if (process.env.NODE_ENV !== 'production') {
1204
1041
  * @param {?Function} getStack Returns the component stack.
1205
1042
  * @private
1206
1043
  */
1207
-
1208
-
1209
1044
  function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1210
1045
  if (process.env.NODE_ENV !== 'production') {
1211
1046
  for (var typeSpecName in typeSpecs) {
1212
1047
  if (has(typeSpecs, typeSpecName)) {
1213
- var error; // Prop type validation may throw. In case they do, we don't want to
1048
+ var error;
1049
+ // Prop type validation may throw. In case they do, we don't want to
1214
1050
  // fail the render phase where it didn't fail before. So we log it.
1215
1051
  // After these have been cleaned up, we'll let them throw.
1216
-
1217
1052
  try {
1218
1053
  // This is intentionally an invariant that gets caught. It's the same
1219
1054
  // behavior as without this statement except with a better message.
@@ -1222,16 +1057,13 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1222
1057
  err.name = 'Invariant Violation';
1223
1058
  throw err;
1224
1059
  }
1225
-
1226
1060
  error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1227
1061
  } catch (ex) {
1228
1062
  error = ex;
1229
1063
  }
1230
-
1231
1064
  if (error && !(error instanceof Error)) {
1232
1065
  printWarning$1((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + _typeof(error) + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
1233
1066
  }
1234
-
1235
1067
  if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1236
1068
  // Only monitor this failure once because there tends to be a lot of the
1237
1069
  // same error.
@@ -1243,31 +1075,26 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1243
1075
  }
1244
1076
  }
1245
1077
  }
1078
+
1246
1079
  /**
1247
1080
  * Resets warning cache when testing.
1248
1081
  *
1249
1082
  * @private
1250
1083
  */
1251
-
1252
-
1253
1084
  checkPropTypes.resetWarningCache = function () {
1254
1085
  if (process.env.NODE_ENV !== 'production') {
1255
1086
  loggedTypeFailures = {};
1256
1087
  }
1257
1088
  };
1258
-
1259
1089
  var checkPropTypes_1 = checkPropTypes;
1260
1090
 
1261
1091
  var printWarning = function printWarning() {};
1262
-
1263
1092
  if (process.env.NODE_ENV !== 'production') {
1264
1093
  printWarning = function printWarning(text) {
1265
1094
  var message = 'Warning: ' + text;
1266
-
1267
1095
  if (typeof console !== 'undefined') {
1268
1096
  console.error(message);
1269
1097
  }
1270
-
1271
1098
  try {
1272
1099
  // --- Welcome to debugging React ---
1273
1100
  // This error was thrown as a convenience so that you can use this stack
@@ -1276,11 +1103,9 @@ if (process.env.NODE_ENV !== 'production') {
1276
1103
  } catch (x) {}
1277
1104
  };
1278
1105
  }
1279
-
1280
1106
  function emptyFunctionThatReturnsNull() {
1281
1107
  return null;
1282
1108
  }
1283
-
1284
1109
  var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, throwOnDirectAccess) {
1285
1110
  /* global Symbol */
1286
1111
  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
@@ -1300,14 +1125,13 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1300
1125
  * @param {?object} maybeIterable
1301
1126
  * @return {?function}
1302
1127
  */
1303
-
1304
1128
  function getIteratorFn(maybeIterable) {
1305
1129
  var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1306
-
1307
1130
  if (typeof iteratorFn === 'function') {
1308
1131
  return iteratorFn;
1309
1132
  }
1310
1133
  }
1134
+
1311
1135
  /**
1312
1136
  * Collection of methods that allow declaration and validation of props that are
1313
1137
  * supplied to React components. Example usage:
@@ -1355,10 +1179,10 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1355
1179
  * @internal
1356
1180
  */
1357
1181
 
1182
+ var ANONYMOUS = '<<anonymous>>';
1358
1183
 
1359
- var ANONYMOUS = '<<anonymous>>'; // Important!
1184
+ // Important!
1360
1185
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1361
-
1362
1186
  var ReactPropTypes = {
1363
1187
  array: createPrimitiveTypeChecker('array'),
1364
1188
  bigint: createPrimitiveTypeChecker('bigint'),
@@ -1380,13 +1204,12 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1380
1204
  shape: createShapeTypeChecker,
1381
1205
  exact: createStrictShapeTypeChecker
1382
1206
  };
1207
+
1383
1208
  /**
1384
1209
  * inlined Object.is polyfill to avoid requiring consumers ship their own
1385
1210
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1386
1211
  */
1387
-
1388
1212
  /*eslint-disable no-self-compare*/
1389
-
1390
1213
  function is(x, y) {
1391
1214
  // SameValue algorithm
1392
1215
  if (x === y) {
@@ -1407,27 +1230,21 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1407
1230
  * is prohibitively expensive if they are created too often, such as what
1408
1231
  * happens in oneOfType() for any type before the one that matched.
1409
1232
  */
1410
-
1411
-
1412
1233
  function PropTypeError(message, data) {
1413
1234
  this.message = message;
1414
1235
  this.data = data && _typeof(data) === 'object' ? data : {};
1415
1236
  this.stack = '';
1416
- } // Make `instanceof Error` still work for returned errors.
1417
-
1418
-
1237
+ }
1238
+ // Make `instanceof Error` still work for returned errors.
1419
1239
  PropTypeError.prototype = Error.prototype;
1420
-
1421
1240
  function createChainableTypeChecker(validate) {
1422
1241
  if (process.env.NODE_ENV !== 'production') {
1423
1242
  var manualPropTypeCallCache = {};
1424
1243
  var manualPropTypeWarningCount = 0;
1425
1244
  }
1426
-
1427
1245
  function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1428
1246
  componentName = componentName || ANONYMOUS;
1429
1247
  propFullName = propFullName || propName;
1430
-
1431
1248
  if (secret !== ReactPropTypesSecret_1) {
1432
1249
  if (throwOnDirectAccess) {
1433
1250
  // New behavior only for users of `prop-types` package
@@ -1437,8 +1254,8 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1437
1254
  } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
1438
1255
  // Old behavior for people using React.PropTypes
1439
1256
  var cacheKey = componentName + ':' + propName;
1440
-
1441
- if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
1257
+ if (!manualPropTypeCallCache[cacheKey] &&
1258
+ // Avoid spamming the console because they are often not actionable except for lib authors
1442
1259
  manualPropTypeWarningCount < 3) {
1443
1260
  printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
1444
1261
  manualPropTypeCallCache[cacheKey] = true;
@@ -1446,32 +1263,26 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1446
1263
  }
1447
1264
  }
1448
1265
  }
1449
-
1450
1266
  if (props[propName] == null) {
1451
1267
  if (isRequired) {
1452
1268
  if (props[propName] === null) {
1453
1269
  return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1454
1270
  }
1455
-
1456
1271
  return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1457
1272
  }
1458
-
1459
1273
  return null;
1460
1274
  } else {
1461
1275
  return validate(props, propName, componentName, location, propFullName);
1462
1276
  }
1463
1277
  }
1464
-
1465
1278
  var chainedCheckType = checkType.bind(null, false);
1466
1279
  chainedCheckType.isRequired = checkType.bind(null, true);
1467
1280
  return chainedCheckType;
1468
1281
  }
1469
-
1470
1282
  function createPrimitiveTypeChecker(expectedType) {
1471
1283
  function validate(props, propName, componentName, location, propFullName, secret) {
1472
1284
  var propValue = props[propName];
1473
1285
  var propType = getPropType(propValue);
1474
-
1475
1286
  if (propType !== expectedType) {
1476
1287
  // `propValue` being instance of, say, date/regexp, pass the 'object'
1477
1288
  // check, but we can offer a more precise error message here rather than
@@ -1481,74 +1292,55 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1481
1292
  expectedType: expectedType
1482
1293
  });
1483
1294
  }
1484
-
1485
1295
  return null;
1486
1296
  }
1487
-
1488
1297
  return createChainableTypeChecker(validate);
1489
1298
  }
1490
-
1491
1299
  function createAnyTypeChecker() {
1492
1300
  return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1493
1301
  }
1494
-
1495
1302
  function createArrayOfTypeChecker(typeChecker) {
1496
1303
  function validate(props, propName, componentName, location, propFullName) {
1497
1304
  if (typeof typeChecker !== 'function') {
1498
1305
  return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1499
1306
  }
1500
-
1501
1307
  var propValue = props[propName];
1502
-
1503
1308
  if (!Array.isArray(propValue)) {
1504
1309
  var propType = getPropType(propValue);
1505
1310
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1506
1311
  }
1507
-
1508
1312
  for (var i = 0; i < propValue.length; i++) {
1509
1313
  var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
1510
-
1511
1314
  if (error instanceof Error) {
1512
1315
  return error;
1513
1316
  }
1514
1317
  }
1515
-
1516
1318
  return null;
1517
1319
  }
1518
-
1519
1320
  return createChainableTypeChecker(validate);
1520
1321
  }
1521
-
1522
1322
  function createElementTypeChecker() {
1523
1323
  function validate(props, propName, componentName, location, propFullName) {
1524
1324
  var propValue = props[propName];
1525
-
1526
1325
  if (!isValidElement(propValue)) {
1527
1326
  var propType = getPropType(propValue);
1528
1327
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1529
1328
  }
1530
-
1531
1329
  return null;
1532
1330
  }
1533
-
1534
1331
  return createChainableTypeChecker(validate);
1535
1332
  }
1536
-
1537
1333
  function createElementTypeTypeChecker() {
1538
1334
  function validate(props, propName, componentName, location, propFullName) {
1539
1335
  var propValue = props[propName];
1540
-
1541
1336
  if (!reactIs.isValidElementType(propValue)) {
1542
1337
  var propType = getPropType(propValue);
1543
1338
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1544
1339
  }
1545
-
1546
1340
  return null;
1547
1341
  }
1548
-
1549
1342
  return createChainableTypeChecker(validate);
1550
1343
  }
1551
-
1552
1344
  function createInstanceTypeChecker(expectedClass) {
1553
1345
  function validate(props, propName, componentName, location, propFullName) {
1554
1346
  if (!(props[propName] instanceof expectedClass)) {
@@ -1556,13 +1348,10 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1556
1348
  var actualClassName = getClassName(props[propName]);
1557
1349
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1558
1350
  }
1559
-
1560
1351
  return null;
1561
1352
  }
1562
-
1563
1353
  return createChainableTypeChecker(validate);
1564
1354
  }
1565
-
1566
1355
  function createEnumTypeChecker(expectedValues) {
1567
1356
  if (!Array.isArray(expectedValues)) {
1568
1357
  if (process.env.NODE_ENV !== 'production') {
@@ -1572,207 +1361,155 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1572
1361
  printWarning('Invalid argument supplied to oneOf, expected an array.');
1573
1362
  }
1574
1363
  }
1575
-
1576
1364
  return emptyFunctionThatReturnsNull;
1577
1365
  }
1578
-
1579
1366
  function validate(props, propName, componentName, location, propFullName) {
1580
1367
  var propValue = props[propName];
1581
-
1582
1368
  for (var i = 0; i < expectedValues.length; i++) {
1583
1369
  if (is(propValue, expectedValues[i])) {
1584
1370
  return null;
1585
1371
  }
1586
1372
  }
1587
-
1588
1373
  var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1589
1374
  var type = getPreciseType(value);
1590
-
1591
1375
  if (type === 'symbol') {
1592
1376
  return String(value);
1593
1377
  }
1594
-
1595
1378
  return value;
1596
1379
  });
1597
1380
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1598
1381
  }
1599
-
1600
1382
  return createChainableTypeChecker(validate);
1601
1383
  }
1602
-
1603
1384
  function createObjectOfTypeChecker(typeChecker) {
1604
1385
  function validate(props, propName, componentName, location, propFullName) {
1605
1386
  if (typeof typeChecker !== 'function') {
1606
1387
  return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1607
1388
  }
1608
-
1609
1389
  var propValue = props[propName];
1610
1390
  var propType = getPropType(propValue);
1611
-
1612
1391
  if (propType !== 'object') {
1613
1392
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1614
1393
  }
1615
-
1616
1394
  for (var key in propValue) {
1617
1395
  if (has$1(propValue, key)) {
1618
1396
  var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1619
-
1620
1397
  if (error instanceof Error) {
1621
1398
  return error;
1622
1399
  }
1623
1400
  }
1624
1401
  }
1625
-
1626
1402
  return null;
1627
1403
  }
1628
-
1629
1404
  return createChainableTypeChecker(validate);
1630
1405
  }
1631
-
1632
1406
  function createUnionTypeChecker(arrayOfTypeCheckers) {
1633
1407
  if (!Array.isArray(arrayOfTypeCheckers)) {
1634
1408
  process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
1635
1409
  return emptyFunctionThatReturnsNull;
1636
1410
  }
1637
-
1638
1411
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1639
1412
  var checker = arrayOfTypeCheckers[i];
1640
-
1641
1413
  if (typeof checker !== 'function') {
1642
1414
  printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
1643
1415
  return emptyFunctionThatReturnsNull;
1644
1416
  }
1645
1417
  }
1646
-
1647
1418
  function validate(props, propName, componentName, location, propFullName) {
1648
1419
  var expectedTypes = [];
1649
-
1650
1420
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1651
1421
  var checker = arrayOfTypeCheckers[i];
1652
1422
  var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1);
1653
-
1654
1423
  if (checkerResult == null) {
1655
1424
  return null;
1656
1425
  }
1657
-
1658
1426
  if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
1659
1427
  expectedTypes.push(checkerResult.data.expectedType);
1660
1428
  }
1661
1429
  }
1662
-
1663
1430
  var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
1664
1431
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1665
1432
  }
1666
-
1667
1433
  return createChainableTypeChecker(validate);
1668
1434
  }
1669
-
1670
1435
  function createNodeChecker() {
1671
1436
  function validate(props, propName, componentName, location, propFullName) {
1672
1437
  if (!isNode(props[propName])) {
1673
1438
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1674
1439
  }
1675
-
1676
1440
  return null;
1677
1441
  }
1678
-
1679
1442
  return createChainableTypeChecker(validate);
1680
1443
  }
1681
-
1682
1444
  function invalidValidatorError(componentName, location, propFullName, key, type) {
1683
1445
  return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
1684
1446
  }
1685
-
1686
1447
  function createShapeTypeChecker(shapeTypes) {
1687
1448
  function validate(props, propName, componentName, location, propFullName) {
1688
1449
  var propValue = props[propName];
1689
1450
  var propType = getPropType(propValue);
1690
-
1691
1451
  if (propType !== 'object') {
1692
1452
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1693
1453
  }
1694
-
1695
1454
  for (var key in shapeTypes) {
1696
1455
  var checker = shapeTypes[key];
1697
-
1698
1456
  if (typeof checker !== 'function') {
1699
1457
  return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1700
1458
  }
1701
-
1702
1459
  var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1703
-
1704
1460
  if (error) {
1705
1461
  return error;
1706
1462
  }
1707
1463
  }
1708
-
1709
1464
  return null;
1710
1465
  }
1711
-
1712
1466
  return createChainableTypeChecker(validate);
1713
1467
  }
1714
-
1715
1468
  function createStrictShapeTypeChecker(shapeTypes) {
1716
1469
  function validate(props, propName, componentName, location, propFullName) {
1717
1470
  var propValue = props[propName];
1718
1471
  var propType = getPropType(propValue);
1719
-
1720
1472
  if (propType !== 'object') {
1721
1473
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1722
- } // We need to check all keys in case some are required but missing from props.
1723
-
1724
-
1474
+ }
1475
+ // We need to check all keys in case some are required but missing from props.
1725
1476
  var allKeys = objectAssign({}, props[propName], shapeTypes);
1726
-
1727
1477
  for (var key in allKeys) {
1728
1478
  var checker = shapeTypes[key];
1729
-
1730
1479
  if (has$1(shapeTypes, key) && typeof checker !== 'function') {
1731
1480
  return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1732
1481
  }
1733
-
1734
1482
  if (!checker) {
1735
1483
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
1736
1484
  }
1737
-
1738
1485
  var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1739
-
1740
1486
  if (error) {
1741
1487
  return error;
1742
1488
  }
1743
1489
  }
1744
-
1745
1490
  return null;
1746
1491
  }
1747
-
1748
1492
  return createChainableTypeChecker(validate);
1749
1493
  }
1750
-
1751
1494
  function isNode(propValue) {
1752
1495
  switch (_typeof(propValue)) {
1753
1496
  case 'number':
1754
1497
  case 'string':
1755
1498
  case 'undefined':
1756
1499
  return true;
1757
-
1758
1500
  case 'boolean':
1759
1501
  return !propValue;
1760
-
1761
1502
  case 'object':
1762
1503
  if (Array.isArray(propValue)) {
1763
1504
  return propValue.every(isNode);
1764
1505
  }
1765
-
1766
1506
  if (propValue === null || isValidElement(propValue)) {
1767
1507
  return true;
1768
1508
  }
1769
-
1770
1509
  var iteratorFn = getIteratorFn(propValue);
1771
-
1772
1510
  if (iteratorFn) {
1773
1511
  var iterator = iteratorFn.call(propValue);
1774
1512
  var step;
1775
-
1776
1513
  if (iteratorFn !== propValue.entries) {
1777
1514
  while (!(step = iterator.next()).done) {
1778
1515
  if (!isNode(step.value)) {
@@ -1783,7 +1520,6 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1783
1520
  // Iterator will provide entry [k,v] tuples rather than values.
1784
1521
  while (!(step = iterator.next()).done) {
1785
1522
  var entry = step.value;
1786
-
1787
1523
  if (entry) {
1788
1524
  if (!isNode(entry[1])) {
1789
1525
  return false;
@@ -1794,69 +1530,59 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1794
1530
  } else {
1795
1531
  return false;
1796
1532
  }
1797
-
1798
1533
  return true;
1799
-
1800
1534
  default:
1801
1535
  return false;
1802
1536
  }
1803
1537
  }
1804
-
1805
1538
  function isSymbol(propType, propValue) {
1806
1539
  // Native Symbol.
1807
1540
  if (propType === 'symbol') {
1808
1541
  return true;
1809
- } // falsy value can't be a Symbol
1810
-
1542
+ }
1811
1543
 
1544
+ // falsy value can't be a Symbol
1812
1545
  if (!propValue) {
1813
1546
  return false;
1814
- } // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1815
-
1547
+ }
1816
1548
 
1549
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1817
1550
  if (propValue['@@toStringTag'] === 'Symbol') {
1818
1551
  return true;
1819
- } // Fallback for non-spec compliant Symbols which are polyfilled.
1820
-
1552
+ }
1821
1553
 
1554
+ // Fallback for non-spec compliant Symbols which are polyfilled.
1822
1555
  if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1823
1556
  return true;
1824
1557
  }
1825
-
1826
1558
  return false;
1827
- } // Equivalent of `typeof` but with special handling for array and regexp.
1828
-
1559
+ }
1829
1560
 
1561
+ // Equivalent of `typeof` but with special handling for array and regexp.
1830
1562
  function getPropType(propValue) {
1831
1563
  var propType = _typeof(propValue);
1832
-
1833
1564
  if (Array.isArray(propValue)) {
1834
1565
  return 'array';
1835
1566
  }
1836
-
1837
1567
  if (propValue instanceof RegExp) {
1838
1568
  // Old webkits (at least until Android 4.0) return 'function' rather than
1839
1569
  // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1840
1570
  // passes PropTypes.object.
1841
1571
  return 'object';
1842
1572
  }
1843
-
1844
1573
  if (isSymbol(propType, propValue)) {
1845
1574
  return 'symbol';
1846
1575
  }
1847
-
1848
1576
  return propType;
1849
- } // This handles more types than `getPropType`. Only used for error messages.
1850
- // See `createPrimitiveTypeChecker`.
1851
-
1577
+ }
1852
1578
 
1579
+ // This handles more types than `getPropType`. Only used for error messages.
1580
+ // See `createPrimitiveTypeChecker`.
1853
1581
  function getPreciseType(propValue) {
1854
1582
  if (typeof propValue === 'undefined' || propValue === null) {
1855
1583
  return '' + propValue;
1856
1584
  }
1857
-
1858
1585
  var propType = getPropType(propValue);
1859
-
1860
1586
  if (propType === 'object') {
1861
1587
  if (propValue instanceof Date) {
1862
1588
  return 'date';
@@ -1864,39 +1590,33 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1864
1590
  return 'regexp';
1865
1591
  }
1866
1592
  }
1867
-
1868
1593
  return propType;
1869
- } // Returns a string that is postfixed to a warning about an invalid type.
1870
- // For example, "undefined" or "of type array"
1871
-
1594
+ }
1872
1595
 
1596
+ // Returns a string that is postfixed to a warning about an invalid type.
1597
+ // For example, "undefined" or "of type array"
1873
1598
  function getPostfixForTypeWarning(value) {
1874
1599
  var type = getPreciseType(value);
1875
-
1876
1600
  switch (type) {
1877
1601
  case 'array':
1878
1602
  case 'object':
1879
1603
  return 'an ' + type;
1880
-
1881
1604
  case 'boolean':
1882
1605
  case 'date':
1883
1606
  case 'regexp':
1884
1607
  return 'a ' + type;
1885
-
1886
1608
  default:
1887
1609
  return type;
1888
1610
  }
1889
- } // Returns class name of the object, if any.
1890
-
1611
+ }
1891
1612
 
1613
+ // Returns class name of the object, if any.
1892
1614
  function getClassName(propValue) {
1893
1615
  if (!propValue.constructor || !propValue.constructor.name) {
1894
1616
  return ANONYMOUS;
1895
1617
  }
1896
-
1897
1618
  return propValue.constructor.name;
1898
1619
  }
1899
-
1900
1620
  ReactPropTypes.checkPropTypes = checkPropTypes_1;
1901
1621
  ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1902
1622
  ReactPropTypes.PropTypes = ReactPropTypes;
@@ -1904,29 +1624,24 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1904
1624
  };
1905
1625
 
1906
1626
  function emptyFunction() {}
1907
-
1908
1627
  function emptyFunctionWithReset() {}
1909
-
1910
1628
  emptyFunctionWithReset.resetWarningCache = emptyFunction;
1911
-
1912
1629
  var factoryWithThrowingShims = function factoryWithThrowingShims() {
1913
1630
  function shim(props, propName, componentName, location, propFullName, secret) {
1914
1631
  if (secret === ReactPropTypesSecret_1) {
1915
1632
  // It is still safe when called from React.
1916
1633
  return;
1917
1634
  }
1918
-
1919
1635
  var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
1920
1636
  err.name = 'Invariant Violation';
1921
1637
  throw err;
1922
1638
  }
1923
1639
  shim.isRequired = shim;
1924
-
1925
1640
  function getShim() {
1926
1641
  return shim;
1927
1642
  }
1643
+ // Important!
1928
1644
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1929
-
1930
1645
  var ReactPropTypes = {
1931
1646
  array: shim,
1932
1647
  bigint: shim,
@@ -1961,10 +1676,12 @@ var propTypes = createCommonjsModule(function (module) {
1961
1676
  * This source code is licensed under the MIT license found in the
1962
1677
  * LICENSE file in the root directory of this source tree.
1963
1678
  */
1679
+
1964
1680
  if (process.env.NODE_ENV !== 'production') {
1965
- var ReactIs = reactIs; // By explicitly using `prop-types` you are opting into new development behavior.
1966
- // http://fb.me/prop-types-in-prod
1681
+ var ReactIs = reactIs;
1967
1682
 
1683
+ // By explicitly using `prop-types` you are opting into new development behavior.
1684
+ // http://fb.me/prop-types-in-prod
1968
1685
  var throwOnDirectAccess = true;
1969
1686
  module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1970
1687
  } else {
@@ -1997,12 +1714,9 @@ var PropTypes = propTypes;
1997
1714
  *
1998
1715
  * @class HotTable
1999
1716
  */
2000
-
2001
1717
  var HotTable = /*#__PURE__*/function (_React$Component) {
2002
1718
  _inherits(HotTable, _React$Component);
2003
-
2004
1719
  var _super = _createSuper(HotTable);
2005
-
2006
1720
  /**
2007
1721
  * HotTable class constructor.
2008
1722
  *
@@ -2011,16 +1725,13 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2011
1725
  */
2012
1726
  function HotTable(props, context) {
2013
1727
  var _this;
2014
-
2015
1728
  _classCallCheck(this, HotTable);
2016
-
2017
1729
  _this = _super.call(this, props, context);
2018
1730
  /**
2019
1731
  * The `id` of the main Handsontable DOM element.
2020
1732
  *
2021
1733
  * @type {String}
2022
1734
  */
2023
-
2024
1735
  _this.id = null;
2025
1736
  /**
2026
1737
  * Reference to the Handsontable instance.
@@ -2028,33 +1739,28 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2028
1739
  * @private
2029
1740
  * @type {Object}
2030
1741
  */
2031
-
2032
1742
  _this.__hotInstance = null;
2033
1743
  /**
2034
1744
  * Reference to the main Handsontable DOM element.
2035
1745
  *
2036
1746
  * @type {HTMLElement}
2037
1747
  */
2038
-
2039
1748
  _this.hotElementRef = null;
2040
1749
  /**
2041
1750
  * Array of object containing the column settings.
2042
1751
  *
2043
1752
  * @type {Array}
2044
1753
  */
2045
-
2046
1754
  _this.columnSettings = [];
2047
1755
  /**
2048
1756
  * Component used to manage the renderer portals.
2049
1757
  *
2050
1758
  * @type {React.Component}
2051
1759
  */
2052
-
2053
1760
  _this.portalManager = null;
2054
1761
  /**
2055
1762
  * Array containing the portals cashed to be rendered in bulk after Handsontable's render cycle.
2056
1763
  */
2057
-
2058
1764
  _this.portalCacheArray = [];
2059
1765
  /**
2060
1766
  * Global editor portal cache.
@@ -2062,7 +1768,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2062
1768
  * @private
2063
1769
  * @type {React.ReactPortal}
2064
1770
  */
2065
-
2066
1771
  _this.globalEditorPortal = null;
2067
1772
  /**
2068
1773
  * The rendered cells cache.
@@ -2070,7 +1775,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2070
1775
  * @private
2071
1776
  * @type {Map}
2072
1777
  */
2073
-
2074
1778
  _this.renderedCellCache = new Map();
2075
1779
  /**
2076
1780
  * Editor cache.
@@ -2078,7 +1782,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2078
1782
  * @private
2079
1783
  * @type {Map}
2080
1784
  */
2081
-
2082
1785
  _this.editorCache = new Map();
2083
1786
  /**
2084
1787
  * Map with column indexes (or a string = 'global') as keys, and booleans as values. Each key represents a component-based editor
@@ -2087,7 +1790,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2087
1790
  * @private
2088
1791
  * @type {Map}
2089
1792
  */
2090
-
2091
1793
  _this.componentRendererColumns = new Map();
2092
1794
  addUnsafePrefixes(_assertThisInitialized(_this));
2093
1795
  return _this;
@@ -2097,8 +1799,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2097
1799
  *
2098
1800
  * @returns The version number of the package.
2099
1801
  */
2100
-
2101
-
2102
1802
  _createClass(HotTable, [{
2103
1803
  key: "hotInstance",
2104
1804
  get:
@@ -2117,8 +1817,7 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2117
1817
  /**
2118
1818
  * Setter for the property storing the Handsontable instance.
2119
1819
  * @param {Handsontable} hotInstance The Handsontable instance.
2120
- */
2121
- ,
1820
+ */,
2122
1821
  set: function set(hotInstance) {
2123
1822
  this.__hotInstance = hotInstance;
2124
1823
  }
@@ -2127,7 +1826,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2127
1826
  *
2128
1827
  * @returns {Map}
2129
1828
  */
2130
-
2131
1829
  }, {
2132
1830
  key: "getRenderedCellCache",
2133
1831
  value: function getRenderedCellCache() {
@@ -2138,7 +1836,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2138
1836
  *
2139
1837
  * @returns {Map}
2140
1838
  */
2141
-
2142
1839
  }, {
2143
1840
  key: "getEditorCache",
2144
1841
  value: function getEditorCache() {
@@ -2149,7 +1846,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2149
1846
  *
2150
1847
  * @return {React.ReactPortal} The global editor portal.
2151
1848
  */
2152
-
2153
1849
  }, {
2154
1850
  key: "getGlobalEditorPortal",
2155
1851
  value: function getGlobalEditorPortal() {
@@ -2160,7 +1856,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2160
1856
  *
2161
1857
  * @param {React.ReactPortal} portal Global editor portal.
2162
1858
  */
2163
-
2164
1859
  }, {
2165
1860
  key: "setGlobalEditorPortal",
2166
1861
  value: function setGlobalEditorPortal(portal) {
@@ -2169,7 +1864,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2169
1864
  /**
2170
1865
  * Clear both the editor and the renderer cache.
2171
1866
  */
2172
-
2173
1867
  }, {
2174
1868
  key: "clearCache",
2175
1869
  value: function clearCache() {
@@ -2185,7 +1879,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2185
1879
  *
2186
1880
  * @returns The `Document` object used by the component.
2187
1881
  */
2188
-
2189
1882
  }, {
2190
1883
  key: "getOwnerDocument",
2191
1884
  value: function getOwnerDocument() {
@@ -2196,7 +1889,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2196
1889
  *
2197
1890
  * @param {HTMLElement} element The main Handsontable DOM element.
2198
1891
  */
2199
-
2200
1892
  }, {
2201
1893
  key: "setHotElementRef",
2202
1894
  value: function setHotElementRef(element) {
@@ -2208,39 +1900,33 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2208
1900
  * @param {React.ReactElement} rendererElement React renderer component.
2209
1901
  * @returns {Handsontable.renderers.Base} The Handsontable rendering function.
2210
1902
  */
2211
-
2212
1903
  }, {
2213
1904
  key: "getRendererWrapper",
2214
1905
  value: function getRendererWrapper(rendererElement) {
2215
1906
  var hotTableComponent = this;
2216
1907
  return function (instance, TD, row, col, prop, value, cellProperties) {
2217
1908
  var renderedCellCache = hotTableComponent.getRenderedCellCache();
2218
-
2219
1909
  if (renderedCellCache.has("".concat(row, "-").concat(col))) {
2220
1910
  TD.innerHTML = renderedCellCache.get("".concat(row, "-").concat(col)).innerHTML;
2221
1911
  }
2222
-
2223
1912
  if (TD && !TD.getAttribute('ghost-table')) {
2224
1913
  var _createPortal = createPortal(rendererElement, {
2225
- TD: TD,
2226
- row: row,
2227
- col: col,
2228
- prop: prop,
2229
- value: value,
2230
- cellProperties: cellProperties,
2231
- isRenderer: true
2232
- }, function () {}, TD.ownerDocument),
2233
- portal = _createPortal.portal,
2234
- portalContainer = _createPortal.portalContainer;
2235
-
1914
+ TD: TD,
1915
+ row: row,
1916
+ col: col,
1917
+ prop: prop,
1918
+ value: value,
1919
+ cellProperties: cellProperties,
1920
+ isRenderer: true
1921
+ }, function () {}, TD.ownerDocument),
1922
+ portal = _createPortal.portal,
1923
+ portalContainer = _createPortal.portalContainer;
2236
1924
  while (TD.firstChild) {
2237
1925
  TD.removeChild(TD.firstChild);
2238
1926
  }
2239
-
2240
1927
  TD.appendChild(portalContainer);
2241
1928
  hotTableComponent.portalCacheArray.push(portal);
2242
1929
  }
2243
-
2244
1930
  renderedCellCache.set("".concat(row, "-").concat(col), TD);
2245
1931
  return TD;
2246
1932
  };
@@ -2253,12 +1939,10 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2253
1939
  * 'global'.
2254
1940
  * @returns {Function} A class to be passed to the Handsontable editor settings.
2255
1941
  */
2256
-
2257
1942
  }, {
2258
1943
  key: "getEditorClass",
2259
1944
  value: function getEditorClass(editorElement) {
2260
1945
  var _editorCache$get;
2261
-
2262
1946
  var editorColumnScope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : GLOBAL_EDITOR_SCOPE;
2263
1947
  var editorClass = getOriginalEditorClass(editorElement);
2264
1948
  var editorCache = this.getEditorCache();
@@ -2271,26 +1955,20 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2271
1955
  * @param {React.ReactElement} editorComponent React editor component.
2272
1956
  * @returns {Function} A class to be passed to the Handsontable editor settings.
2273
1957
  */
2274
-
2275
1958
  }, {
2276
1959
  key: "makeEditorClass",
2277
1960
  value: function makeEditorClass(editorComponent) {
2278
1961
  var customEditorClass = /*#__PURE__*/function (_Handsontable$editors) {
2279
1962
  _inherits(CustomEditor, _Handsontable$editors);
2280
-
2281
1963
  var _super2 = _createSuper(CustomEditor);
2282
-
2283
1964
  function CustomEditor(hotInstance) {
2284
1965
  var _this2;
2285
-
2286
1966
  _classCallCheck(this, CustomEditor);
2287
-
2288
1967
  _this2 = _super2.call(this, hotInstance);
2289
1968
  editorComponent.hotCustomEditorInstance = _assertThisInitialized(_this2);
2290
1969
  _this2.editorComponent = editorComponent;
2291
1970
  return _this2;
2292
1971
  }
2293
-
2294
1972
  _createClass(CustomEditor, [{
2295
1973
  key: "focus",
2296
1974
  value: function focus() {}
@@ -2307,23 +1985,18 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2307
1985
  key: "close",
2308
1986
  value: function close() {}
2309
1987
  }]);
2310
-
2311
1988
  return CustomEditor;
2312
- }(Handsontable.editors.BaseEditor); // Fill with the rest of the BaseEditor methods
2313
-
2314
-
1989
+ }(Handsontable.editors.BaseEditor);
1990
+ // Fill with the rest of the BaseEditor methods
2315
1991
  Object.getOwnPropertyNames(Handsontable.editors.BaseEditor.prototype).forEach(function (propName) {
2316
1992
  if (propName === 'constructor') {
2317
1993
  return;
2318
1994
  }
2319
-
2320
1995
  customEditorClass.prototype[propName] = function () {
2321
1996
  var _editorComponent$prop;
2322
-
2323
1997
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2324
1998
  args[_key] = arguments[_key];
2325
1999
  }
2326
-
2327
2000
  return (_editorComponent$prop = editorComponent[propName]).call.apply(_editorComponent$prop, [editorComponent].concat(args));
2328
2001
  };
2329
2002
  });
@@ -2334,7 +2007,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2334
2007
  *
2335
2008
  * @returns {React.ReactElement} React renderer component element.
2336
2009
  */
2337
-
2338
2010
  }, {
2339
2011
  key: "getGlobalRendererElement",
2340
2012
  value: function getGlobalRendererElement() {
@@ -2347,7 +2019,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2347
2019
  * @param {React.ReactNode} [children] Children of the HotTable instance. Defaults to `this.props.children`.
2348
2020
  * @returns {React.ReactElement} React editor component element.
2349
2021
  */
2350
-
2351
2022
  }, {
2352
2023
  key: "getGlobalEditorElement",
2353
2024
  value: function getGlobalEditorElement() {
@@ -2359,13 +2030,11 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2359
2030
  *
2360
2031
  * @param {React.ReactNode} [children] Children of the HotTable instance. Defaults to `this.props.children`.
2361
2032
  */
2362
-
2363
2033
  }, {
2364
2034
  key: "createGlobalEditorPortal",
2365
2035
  value: function createGlobalEditorPortal() {
2366
2036
  var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props.children;
2367
2037
  var globalEditorElement = this.getGlobalEditorElement(children);
2368
-
2369
2038
  if (globalEditorElement) {
2370
2039
  this.setGlobalEditorPortal(createEditorPortal(this.getOwnerDocument(), globalEditorElement, this.getEditorCache()));
2371
2040
  }
@@ -2375,7 +2044,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2375
2044
  *
2376
2045
  * @returns {Handsontable.GridSettings} New global set of settings for Handsontable.
2377
2046
  */
2378
-
2379
2047
  }, {
2380
2048
  key: "createNewGlobalSettings",
2381
2049
  value: function createNewGlobalSettings() {
@@ -2383,20 +2051,17 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2383
2051
  var globalRendererNode = this.getGlobalRendererElement();
2384
2052
  var globalEditorNode = this.getGlobalEditorElement();
2385
2053
  newSettings.columns = this.columnSettings.length ? this.columnSettings : newSettings.columns;
2386
-
2387
2054
  if (globalEditorNode) {
2388
2055
  newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);
2389
2056
  } else {
2390
2057
  newSettings.editor = this.props.editor || (this.props.settings ? this.props.settings.editor : void 0);
2391
2058
  }
2392
-
2393
2059
  if (globalRendererNode) {
2394
2060
  newSettings.renderer = this.getRendererWrapper(globalRendererNode);
2395
2061
  this.componentRendererColumns.set('global', true);
2396
2062
  } else {
2397
2063
  newSettings.renderer = this.props.renderer || (this.props.settings ? this.props.settings.renderer : void 0);
2398
2064
  }
2399
-
2400
2065
  return newSettings;
2401
2066
  }
2402
2067
  /**
@@ -2404,12 +2069,10 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2404
2069
  *
2405
2070
  * @param {Handsontable.GridSettings} newGlobalSettings New global settings passed as Handsontable config.
2406
2071
  */
2407
-
2408
2072
  }, {
2409
2073
  key: "displayAutoSizeWarning",
2410
2074
  value: function displayAutoSizeWarning(newGlobalSettings) {
2411
2075
  var _this$hotInstance$get, _this$hotInstance$get2;
2412
-
2413
2076
  if (this.hotInstance && ((_this$hotInstance$get = this.hotInstance.getPlugin('autoRowSize')) !== null && _this$hotInstance$get !== void 0 && _this$hotInstance$get.enabled || (_this$hotInstance$get2 = this.hotInstance.getPlugin('autoColumnSize')) !== null && _this$hotInstance$get2 !== void 0 && _this$hotInstance$get2.enabled)) {
2414
2077
  if (this.componentRendererColumns.size > 0) {
2415
2078
  warn(AUTOSIZE_WARNING);
@@ -2422,7 +2085,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2422
2085
  * @param {HotTableProps} columnSettings Column settings object.
2423
2086
  * @param {Number} columnIndex Column index.
2424
2087
  */
2425
-
2426
2088
  }, {
2427
2089
  key: "setHotColumnSettings",
2428
2090
  value: function setHotColumnSettings(columnSettings, columnIndex) {
@@ -2431,7 +2093,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2431
2093
  /**
2432
2094
  * Handsontable's `beforeViewRender` hook callback.
2433
2095
  */
2434
-
2435
2096
  }, {
2436
2097
  key: "handsontableBeforeViewRender",
2437
2098
  value: function handsontableBeforeViewRender() {
@@ -2440,12 +2101,10 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2440
2101
  /**
2441
2102
  * Handsontable's `afterViewRender` hook callback.
2442
2103
  */
2443
-
2444
2104
  }, {
2445
2105
  key: "handsontableAfterViewRender",
2446
2106
  value: function handsontableAfterViewRender() {
2447
2107
  var _this3 = this;
2448
-
2449
2108
  this.portalManager.setState(function () {
2450
2109
  return Object.assign({}, {
2451
2110
  portals: _this3.portalCacheArray
@@ -2459,7 +2118,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2459
2118
  *
2460
2119
  * @param {Object} newSettings The settings object.
2461
2120
  */
2462
-
2463
2121
  }, {
2464
2122
  key: "updateHot",
2465
2123
  value: function updateHot(newSettings) {
@@ -2472,7 +2130,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2472
2130
  *
2473
2131
  * @param {React.ReactComponent} pmComponent The PortalManager component.
2474
2132
  */
2475
-
2476
2133
  }, {
2477
2134
  key: "setPortalManagerRef",
2478
2135
  value: function setPortalManagerRef(pmComponent) {
@@ -2483,11 +2140,9 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2483
2140
  ------- React lifecycle methods -------
2484
2141
  ---------------------------------------
2485
2142
  */
2486
-
2487
2143
  /**
2488
2144
  * Logic performed before the mounting of the component.
2489
2145
  */
2490
-
2491
2146
  }, {
2492
2147
  key: "componentWillMount",
2493
2148
  value: function componentWillMount() {
@@ -2497,7 +2152,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2497
2152
  /**
2498
2153
  * Initialize Handsontable after the component has mounted.
2499
2154
  */
2500
-
2501
2155
  }, {
2502
2156
  key: "componentDidMount",
2503
2157
  value: function componentDidMount() {
@@ -2509,15 +2163,14 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2509
2163
  });
2510
2164
  this.hotInstance.addHook('afterViewRender', function () {
2511
2165
  hotTableComponent.handsontableAfterViewRender();
2512
- }); // `init` missing in Handsontable's type definitions.
2513
-
2166
+ });
2167
+ // `init` missing in Handsontable's type definitions.
2514
2168
  this.hotInstance.init();
2515
2169
  this.displayAutoSizeWarning(newGlobalSettings);
2516
2170
  }
2517
2171
  /**
2518
2172
  * Logic performed before the component update.
2519
2173
  */
2520
-
2521
2174
  }, {
2522
2175
  key: "componentWillUpdate",
2523
2176
  value: function componentWillUpdate(nextProps, nextState, nextContext) {
@@ -2528,7 +2181,6 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2528
2181
  /**
2529
2182
  * Logic performed after the component update.
2530
2183
  */
2531
-
2532
2184
  }, {
2533
2185
  key: "componentDidUpdate",
2534
2186
  value: function componentDidUpdate() {
@@ -2539,40 +2191,34 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2539
2191
  /**
2540
2192
  * Destroy the Handsontable instance when the parent component unmounts.
2541
2193
  */
2542
-
2543
2194
  }, {
2544
2195
  key: "componentWillUnmount",
2545
2196
  value: function componentWillUnmount() {
2546
2197
  if (this.hotInstance) {
2547
2198
  this.hotInstance.destroy();
2548
2199
  }
2549
-
2550
2200
  removeEditorContainers(this.getOwnerDocument());
2551
2201
  }
2552
2202
  /**
2553
2203
  * Render the component.
2554
2204
  */
2555
-
2556
2205
  }, {
2557
2206
  key: "render",
2558
2207
  value: function render() {
2559
2208
  var _this4 = this;
2560
-
2561
2209
  var _getContainerAttribut = getContainerAttributesProps(this.props),
2562
- id = _getContainerAttribut.id,
2563
- className = _getContainerAttribut.className,
2564
- style = _getContainerAttribut.style;
2565
-
2210
+ id = _getContainerAttribut.id,
2211
+ className = _getContainerAttribut.className,
2212
+ style = _getContainerAttribut.style;
2566
2213
  var isHotColumn = function isHotColumn(childNode) {
2567
2214
  return childNode.type === HotColumn;
2568
2215
  };
2569
-
2570
- var children = React.Children.toArray(this.props.children); // filter out anything that's not a HotColumn
2571
-
2216
+ var children = React.Children.toArray(this.props.children);
2217
+ // filter out anything that's not a HotColumn
2572
2218
  children = children.filter(function (childNode) {
2573
2219
  return isHotColumn(childNode);
2574
- }); // clone the HotColumn nodes and extend them with the callbacks
2575
-
2220
+ });
2221
+ // clone the HotColumn nodes and extend them with the callbacks
2576
2222
  var childClones = children.map(function (childNode, columnIndex) {
2577
2223
  return React.cloneElement(childNode, {
2578
2224
  _componentRendererColumns: _this4.componentRendererColumns,
@@ -2585,8 +2231,8 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2585
2231
  _getEditorCache: _this4.getEditorCache.bind(_this4),
2586
2232
  children: childNode.props.children
2587
2233
  });
2588
- }); // add the global editor to the list of children
2589
-
2234
+ });
2235
+ // add the global editor to the list of children
2590
2236
  childClones.push(this.getGlobalEditorPortal());
2591
2237
  return React.createElement(React.Fragment, null, React.createElement("div", {
2592
2238
  ref: this.setHotElementRef.bind(this),
@@ -2603,14 +2249,10 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2603
2249
  return version;
2604
2250
  }
2605
2251
  }]);
2606
-
2607
2252
  return HotTable;
2608
- }(React.Component);
2609
- /**
2610
- * Prop types to be checked at runtime.
2611
- */
2612
-
2613
-
2253
+ }(React.Component); /**
2254
+ * Prop types to be checked at runtime.
2255
+ */
2614
2256
  HotTable.propTypes = {
2615
2257
  style: PropTypes.object,
2616
2258
  id: PropTypes.string,
@@ -2619,14 +2261,10 @@ HotTable.propTypes = {
2619
2261
 
2620
2262
  var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2621
2263
  _inherits(BaseEditorComponent, _React$Component);
2622
-
2623
2264
  var _super = _createSuper(BaseEditorComponent);
2624
-
2625
2265
  function BaseEditorComponent(props) {
2626
2266
  var _this;
2627
-
2628
2267
  _classCallCheck(this, BaseEditorComponent);
2629
-
2630
2268
  _this = _super.call(this, props);
2631
2269
  _this.name = 'BaseEditorComponent';
2632
2270
  _this.instance = null;
@@ -2640,189 +2278,154 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2640
2278
  _this.hotInstance = null;
2641
2279
  _this.hotCustomEditorInstance = null;
2642
2280
  _this.hot = null;
2643
-
2644
2281
  if (props.emitEditorInstance) {
2645
2282
  props.emitEditorInstance(_assertThisInitialized(_this), props.editorColumnScope);
2646
2283
  }
2647
-
2648
2284
  return _this;
2649
- } // BaseEditor methods:
2650
-
2651
-
2285
+ }
2286
+ // BaseEditor methods:
2652
2287
  _createClass(BaseEditorComponent, [{
2653
2288
  key: "_fireCallbacks",
2654
2289
  value: function _fireCallbacks() {
2655
2290
  var _Handsontable$editors;
2656
-
2657
2291
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2658
2292
  args[_key] = arguments[_key];
2659
2293
  }
2660
-
2661
2294
  (_Handsontable$editors = Handsontable.editors.BaseEditor.prototype._fireCallbacks).call.apply(_Handsontable$editors, [this.hotCustomEditorInstance].concat(args));
2662
2295
  }
2663
2296
  }, {
2664
2297
  key: "beginEditing",
2665
2298
  value: function beginEditing() {
2666
2299
  var _Handsontable$editors2;
2667
-
2668
2300
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2669
2301
  args[_key2] = arguments[_key2];
2670
2302
  }
2671
-
2672
2303
  return (_Handsontable$editors2 = Handsontable.editors.BaseEditor.prototype.beginEditing).call.apply(_Handsontable$editors2, [this.hotCustomEditorInstance].concat(args));
2673
2304
  }
2674
2305
  }, {
2675
2306
  key: "cancelChanges",
2676
2307
  value: function cancelChanges() {
2677
2308
  var _Handsontable$editors3;
2678
-
2679
2309
  for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
2680
2310
  args[_key3] = arguments[_key3];
2681
2311
  }
2682
-
2683
2312
  return (_Handsontable$editors3 = Handsontable.editors.BaseEditor.prototype.cancelChanges).call.apply(_Handsontable$editors3, [this.hotCustomEditorInstance].concat(args));
2684
2313
  }
2685
2314
  }, {
2686
2315
  key: "checkEditorSection",
2687
2316
  value: function checkEditorSection() {
2688
2317
  var _Handsontable$editors4;
2689
-
2690
2318
  for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
2691
2319
  args[_key4] = arguments[_key4];
2692
2320
  }
2693
-
2694
2321
  return (_Handsontable$editors4 = Handsontable.editors.BaseEditor.prototype.checkEditorSection).call.apply(_Handsontable$editors4, [this.hotCustomEditorInstance].concat(args));
2695
2322
  }
2696
2323
  }, {
2697
2324
  key: "close",
2698
2325
  value: function close() {
2699
2326
  var _Handsontable$editors5;
2700
-
2701
2327
  for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
2702
2328
  args[_key5] = arguments[_key5];
2703
2329
  }
2704
-
2705
2330
  return (_Handsontable$editors5 = Handsontable.editors.BaseEditor.prototype.close).call.apply(_Handsontable$editors5, [this.hotCustomEditorInstance].concat(args));
2706
2331
  }
2707
2332
  }, {
2708
2333
  key: "discardEditor",
2709
2334
  value: function discardEditor() {
2710
2335
  var _Handsontable$editors6;
2711
-
2712
2336
  for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
2713
2337
  args[_key6] = arguments[_key6];
2714
2338
  }
2715
-
2716
2339
  return (_Handsontable$editors6 = Handsontable.editors.BaseEditor.prototype.discardEditor).call.apply(_Handsontable$editors6, [this.hotCustomEditorInstance].concat(args));
2717
2340
  }
2718
2341
  }, {
2719
2342
  key: "enableFullEditMode",
2720
2343
  value: function enableFullEditMode() {
2721
2344
  var _Handsontable$editors7;
2722
-
2723
2345
  for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
2724
2346
  args[_key7] = arguments[_key7];
2725
2347
  }
2726
-
2727
2348
  return (_Handsontable$editors7 = Handsontable.editors.BaseEditor.prototype.enableFullEditMode).call.apply(_Handsontable$editors7, [this.hotCustomEditorInstance].concat(args));
2728
2349
  }
2729
2350
  }, {
2730
2351
  key: "extend",
2731
2352
  value: function extend() {
2732
2353
  var _Handsontable$editors8;
2733
-
2734
2354
  for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
2735
2355
  args[_key8] = arguments[_key8];
2736
2356
  }
2737
-
2738
2357
  return (_Handsontable$editors8 = Handsontable.editors.BaseEditor.prototype.extend).call.apply(_Handsontable$editors8, [this.hotCustomEditorInstance].concat(args));
2739
2358
  }
2740
2359
  }, {
2741
2360
  key: "finishEditing",
2742
2361
  value: function finishEditing() {
2743
2362
  var _Handsontable$editors9;
2744
-
2745
2363
  for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
2746
2364
  args[_key9] = arguments[_key9];
2747
2365
  }
2748
-
2749
2366
  return (_Handsontable$editors9 = Handsontable.editors.BaseEditor.prototype.finishEditing).call.apply(_Handsontable$editors9, [this.hotCustomEditorInstance].concat(args));
2750
2367
  }
2751
2368
  }, {
2752
2369
  key: "focus",
2753
2370
  value: function focus() {
2754
2371
  var _Handsontable$editors10;
2755
-
2756
2372
  for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
2757
2373
  args[_key10] = arguments[_key10];
2758
2374
  }
2759
-
2760
2375
  return (_Handsontable$editors10 = Handsontable.editors.BaseEditor.prototype.focus).call.apply(_Handsontable$editors10, [this.hotCustomEditorInstance].concat(args));
2761
2376
  }
2762
2377
  }, {
2763
2378
  key: "getValue",
2764
2379
  value: function getValue() {
2765
2380
  var _Handsontable$editors11;
2766
-
2767
2381
  for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
2768
2382
  args[_key11] = arguments[_key11];
2769
2383
  }
2770
-
2771
2384
  return (_Handsontable$editors11 = Handsontable.editors.BaseEditor.prototype.getValue).call.apply(_Handsontable$editors11, [this.hotCustomEditorInstance].concat(args));
2772
2385
  }
2773
2386
  }, {
2774
2387
  key: "init",
2775
2388
  value: function init() {
2776
2389
  var _Handsontable$editors12;
2777
-
2778
2390
  for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
2779
2391
  args[_key12] = arguments[_key12];
2780
2392
  }
2781
-
2782
2393
  return (_Handsontable$editors12 = Handsontable.editors.BaseEditor.prototype.init).call.apply(_Handsontable$editors12, [this.hotCustomEditorInstance].concat(args));
2783
2394
  }
2784
2395
  }, {
2785
2396
  key: "isInFullEditMode",
2786
2397
  value: function isInFullEditMode() {
2787
2398
  var _Handsontable$editors13;
2788
-
2789
2399
  for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
2790
2400
  args[_key13] = arguments[_key13];
2791
2401
  }
2792
-
2793
2402
  return (_Handsontable$editors13 = Handsontable.editors.BaseEditor.prototype.isInFullEditMode).call.apply(_Handsontable$editors13, [this.hotCustomEditorInstance].concat(args));
2794
2403
  }
2795
2404
  }, {
2796
2405
  key: "isOpened",
2797
2406
  value: function isOpened() {
2798
2407
  var _Handsontable$editors14;
2799
-
2800
2408
  for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
2801
2409
  args[_key14] = arguments[_key14];
2802
2410
  }
2803
-
2804
2411
  return (_Handsontable$editors14 = Handsontable.editors.BaseEditor.prototype.isOpened).call.apply(_Handsontable$editors14, [this.hotCustomEditorInstance].concat(args));
2805
2412
  }
2806
2413
  }, {
2807
2414
  key: "isWaiting",
2808
2415
  value: function isWaiting() {
2809
2416
  var _Handsontable$editors15;
2810
-
2811
2417
  for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
2812
2418
  args[_key15] = arguments[_key15];
2813
2419
  }
2814
-
2815
2420
  return (_Handsontable$editors15 = Handsontable.editors.BaseEditor.prototype.isWaiting).call.apply(_Handsontable$editors15, [this.hotCustomEditorInstance].concat(args));
2816
2421
  }
2817
2422
  }, {
2818
2423
  key: "open",
2819
2424
  value: function open() {
2820
2425
  var _Handsontable$editors16;
2821
-
2822
2426
  for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
2823
2427
  args[_key16] = arguments[_key16];
2824
2428
  }
2825
-
2826
2429
  return (_Handsontable$editors16 = Handsontable.editors.BaseEditor.prototype.open).call.apply(_Handsontable$editors16, [this.hotCustomEditorInstance].concat(args));
2827
2430
  }
2828
2431
  }, {
@@ -2841,92 +2444,75 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2841
2444
  key: "saveValue",
2842
2445
  value: function saveValue() {
2843
2446
  var _Handsontable$editors17;
2844
-
2845
2447
  for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
2846
2448
  args[_key17] = arguments[_key17];
2847
2449
  }
2848
-
2849
2450
  return (_Handsontable$editors17 = Handsontable.editors.BaseEditor.prototype.saveValue).call.apply(_Handsontable$editors17, [this.hotCustomEditorInstance].concat(args));
2850
2451
  }
2851
2452
  }, {
2852
2453
  key: "setValue",
2853
2454
  value: function setValue() {
2854
2455
  var _Handsontable$editors18;
2855
-
2856
2456
  for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
2857
2457
  args[_key18] = arguments[_key18];
2858
2458
  }
2859
-
2860
2459
  return (_Handsontable$editors18 = Handsontable.editors.BaseEditor.prototype.setValue).call.apply(_Handsontable$editors18, [this.hotCustomEditorInstance].concat(args));
2861
2460
  }
2862
2461
  }, {
2863
2462
  key: "addHook",
2864
2463
  value: function addHook() {
2865
2464
  var _Handsontable$editors19;
2866
-
2867
2465
  for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
2868
2466
  args[_key19] = arguments[_key19];
2869
2467
  }
2870
-
2871
2468
  return (_Handsontable$editors19 = Handsontable.editors.BaseEditor.prototype.addHook).call.apply(_Handsontable$editors19, [this.hotCustomEditorInstance].concat(args));
2872
2469
  }
2873
2470
  }, {
2874
2471
  key: "removeHooksByKey",
2875
2472
  value: function removeHooksByKey() {
2876
2473
  var _Handsontable$editors20;
2877
-
2878
2474
  for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
2879
2475
  args[_key20] = arguments[_key20];
2880
2476
  }
2881
-
2882
2477
  return (_Handsontable$editors20 = Handsontable.editors.BaseEditor.prototype.removeHooksByKey).call.apply(_Handsontable$editors20, [this.hotCustomEditorInstance].concat(args));
2883
2478
  }
2884
2479
  }, {
2885
2480
  key: "clearHooks",
2886
2481
  value: function clearHooks() {
2887
2482
  var _Handsontable$editors21;
2888
-
2889
2483
  for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
2890
2484
  args[_key21] = arguments[_key21];
2891
2485
  }
2892
-
2893
2486
  return (_Handsontable$editors21 = Handsontable.editors.BaseEditor.prototype.clearHooks).call.apply(_Handsontable$editors21, [this.hotCustomEditorInstance].concat(args));
2894
2487
  }
2895
2488
  }, {
2896
2489
  key: "getEditedCell",
2897
2490
  value: function getEditedCell() {
2898
2491
  var _Handsontable$editors22;
2899
-
2900
2492
  for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
2901
2493
  args[_key22] = arguments[_key22];
2902
2494
  }
2903
-
2904
2495
  return (_Handsontable$editors22 = Handsontable.editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors22, [this.hotCustomEditorInstance].concat(args));
2905
2496
  }
2906
2497
  }, {
2907
2498
  key: "getEditedCellRect",
2908
2499
  value: function getEditedCellRect() {
2909
2500
  var _Handsontable$editors23;
2910
-
2911
2501
  for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
2912
2502
  args[_key23] = arguments[_key23];
2913
2503
  }
2914
-
2915
2504
  return (_Handsontable$editors23 = Handsontable.editors.BaseEditor.prototype.getEditedCellRect).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
2916
2505
  }
2917
2506
  }, {
2918
2507
  key: "getEditedCellsZIndex",
2919
2508
  value: function getEditedCellsZIndex() {
2920
2509
  var _Handsontable$editors24;
2921
-
2922
2510
  for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
2923
2511
  args[_key24] = arguments[_key24];
2924
2512
  }
2925
-
2926
2513
  return (_Handsontable$editors24 = Handsontable.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors24, [this.hotCustomEditorInstance].concat(args));
2927
2514
  }
2928
2515
  }]);
2929
-
2930
2516
  return BaseEditorComponent;
2931
2517
  }(React.Component);
2932
2518