@handsontable/react 9.0.0 → 11.0.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,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var ReactDOM = require('react-dom');
7
- var Handsontable = require('handsontable');
7
+ var Handsontable = require('handsontable/base');
8
8
 
9
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
10
 
@@ -158,6 +158,8 @@ function _assertThisInitialized(self) {
158
158
  function _possibleConstructorReturn(self, call) {
159
159
  if (call && (typeof call === "object" || typeof call === "function")) {
160
160
  return call;
161
+ } else if (call !== void 0) {
162
+ throw new TypeError("Derived constructors may only return object or undefined");
161
163
  }
162
164
 
163
165
  return _assertThisInitialized(self);
@@ -188,6 +190,16 @@ var bulkComponentContainer = null;
188
190
  */
189
191
 
190
192
  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.';
193
+ /**
194
+ * Message for the warning thrown if the Handsontable instance has been destroyed.
195
+ */
196
+
197
+ var HOT_DESTROYED_WARNING = 'The Handsontable instance bound to this component was destroyed and cannot be' + ' used properly.';
198
+ /**
199
+ * String identifier for the global-scoped editor components.
200
+ */
201
+
202
+ var GLOBAL_EDITOR_SCOPE = 'global';
191
203
  /**
192
204
  * Default classname given to the wrapper container.
193
205
  */
@@ -215,8 +227,8 @@ function warn() {
215
227
  */
216
228
 
217
229
  function getChildElementByType(children, type) {
218
- var childrenArray = React__default['default'].Children.toArray(children);
219
- var childrenCount = React__default['default'].Children.count(children);
230
+ var childrenArray = React__default["default"].Children.toArray(children);
231
+ var childrenCount = React__default["default"].Children.count(children);
220
232
  var wantedChild = null;
221
233
 
222
234
  if (childrenCount !== 0) {
@@ -295,17 +307,20 @@ function createEditorPortal() {
295
307
  }
296
308
 
297
309
  doc.body.appendChild(editorContainer);
298
- return ReactDOM__default['default'].createPortal(editorElement, editorContainer);
310
+ return ReactDOM__default["default"].createPortal(editorElement, editorContainer);
299
311
  }
300
312
  /**
301
313
  * Get an editor element extended with a instance-emitting method.
302
314
  *
303
315
  * @param {React.ReactNode} children Component children.
304
316
  * @param {Map} editorCache Component's editor cache.
317
+ * @param {string|number} [editorColumnScope] The editor scope (column index or a 'global' string). Defaults to
318
+ * 'global'.
305
319
  * @returns {React.ReactElement} An editor element containing the additional methods.
306
320
  */
307
321
 
308
322
  function getExtendedEditorElement(children, editorCache) {
323
+ var editorColumnScope = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : GLOBAL_EDITOR_SCOPE;
309
324
  var editorElement = getChildElementByType(children, 'hot-editor');
310
325
  var editorClass = getOriginalEditorClass(editorElement);
311
326
 
@@ -313,10 +328,16 @@ function getExtendedEditorElement(children, editorCache) {
313
328
  return null;
314
329
  }
315
330
 
316
- return React__default['default'].cloneElement(editorElement, {
317
- emitEditorInstance: function emitEditorInstance(editorInstance) {
318
- editorCache.set(editorClass, editorInstance);
331
+ return React__default["default"].cloneElement(editorElement, {
332
+ emitEditorInstance: function emitEditorInstance(editorInstance, editorColumnScope) {
333
+ if (!editorCache.get(editorClass)) {
334
+ editorCache.set(editorClass, new Map());
335
+ }
336
+
337
+ var cacheEntry = editorCache.get(editorClass);
338
+ cacheEntry.set(editorColumnScope !== null && editorColumnScope !== void 0 ? editorColumnScope : GLOBAL_EDITOR_SCOPE, editorInstance);
319
339
  },
340
+ editorColumnScope: editorColumnScope,
320
341
  isEditor: true
321
342
  });
322
343
  }
@@ -343,11 +364,11 @@ function createPortal(rElement, props, callback) {
343
364
 
344
365
  var portalContainer = ownerDocument.createElement('DIV');
345
366
  bulkComponentContainer.appendChild(portalContainer);
346
- var extendedRendererElement = React__default['default'].cloneElement(rElement, _objectSpread2({
367
+ var extendedRendererElement = React__default["default"].cloneElement(rElement, _objectSpread2({
347
368
  key: "".concat(props.row, "-").concat(props.col)
348
369
  }, props));
349
370
  return {
350
- portal: ReactDOM__default['default'].createPortal(extendedRendererElement, portalContainer, "".concat(props.row, "-").concat(props.col, "-").concat(Math.random())),
371
+ portal: ReactDOM__default["default"].createPortal(extendedRendererElement, portalContainer, "".concat(props.row, "-").concat(props.col, "-").concat(Math.random())),
351
372
  portalContainer: portalContainer
352
373
  };
353
374
  }
@@ -376,7 +397,7 @@ function getContainerAttributesProps(props) {
376
397
  */
377
398
 
378
399
  function addUnsafePrefixes(instance) {
379
- var reactSemverArray = React__default['default'].version.split('.').map(function (v) {
400
+ var reactSemverArray = React__default["default"].version.split('.').map(function (v) {
380
401
  return parseInt(v);
381
402
  });
382
403
  var shouldPrefix = reactSemverArray[0] >= 16 && reactSemverArray[1] >= 3;
@@ -520,7 +541,7 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
520
541
  }, {
521
542
  key: "getLocalEditorElement",
522
543
  value: function getLocalEditorElement() {
523
- return getExtendedEditorElement(this.props.children, this.props._getEditorCache());
544
+ return getExtendedEditorElement(this.props.children, this.props._getEditorCache(), this.props._columnIndex);
524
545
  }
525
546
  /**
526
547
  * Create the column settings based on the data provided to the `HotColumn` component and it's child components.
@@ -545,7 +566,7 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
545
566
  }
546
567
 
547
568
  if (editorElement !== null) {
548
- this.columnSettings.editor = this.props._getEditorClass(editorElement);
569
+ this.columnSettings.editor = this.props._getEditorClass(editorElement, this.props._columnIndex);
549
570
  } else if (this.hasProp('editor')) {
550
571
  this.columnSettings.editor = this.props.editor;
551
572
  } else {
@@ -565,7 +586,7 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
565
586
 
566
587
  var editorCache = this.props._getEditorCache();
567
588
 
568
- var localEditorElement = getExtendedEditorElement(children, editorCache);
589
+ var localEditorElement = getExtendedEditorElement(children, editorCache, this.props._columnIndex);
569
590
 
570
591
  if (localEditorElement) {
571
592
  this.setLocalEditorPortal(createEditorPortal(this.props._getOwnerDocument(), localEditorElement, editorCache));
@@ -633,12 +654,12 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
633
654
  }, {
634
655
  key: "render",
635
656
  value: function render() {
636
- return React__default['default'].createElement(React__default['default'].Fragment, null, this.getLocalEditorPortal());
657
+ return React__default["default"].createElement(React__default["default"].Fragment, null, this.getLocalEditorPortal());
637
658
  }
638
659
  }]);
639
660
 
640
661
  return HotColumn;
641
- }(React__default['default'].Component);
662
+ }(React__default["default"].Component);
642
663
 
643
664
  /**
644
665
  * Component class used to manage the renderer component portals.
@@ -664,14 +685,14 @@ var PortalManager = /*#__PURE__*/function (_React$Component) {
664
685
  _createClass(PortalManager, [{
665
686
  key: "render",
666
687
  value: function render() {
667
- return React__default['default'].createElement(React__default['default'].Fragment, null, this.state.portals);
688
+ return React__default["default"].createElement(React__default["default"].Fragment, null, this.state.portals);
668
689
  }
669
690
  }]);
670
691
 
671
692
  return PortalManager;
672
- }(React__default['default'].Component);
693
+ }(React__default["default"].Component);
673
694
 
674
- var version="9.0.0";
695
+ var version="11.0.0";
675
696
 
676
697
  function createCommonjsModule(fn, module) {
677
698
  return module = { exports: {} }, fn(module, module.exports), module.exports;
@@ -2004,10 +2025,11 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2004
2025
  /**
2005
2026
  * Reference to the Handsontable instance.
2006
2027
  *
2028
+ * @private
2007
2029
  * @type {Object}
2008
2030
  */
2009
2031
 
2010
- _this.hotInstance = null;
2032
+ _this.__hotInstance = null;
2011
2033
  /**
2012
2034
  * Reference to the main Handsontable DOM element.
2013
2035
  *
@@ -2078,14 +2100,37 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2078
2100
 
2079
2101
 
2080
2102
  _createClass(HotTable, [{
2081
- key: "getRenderedCellCache",
2082
- value:
2103
+ key: "hotInstance",
2104
+ get:
2105
+ /**
2106
+ * Getter for the property storing the Handsontable instance.
2107
+ */
2108
+ function get() {
2109
+ if (!this.__hotInstance || this.__hotInstance && !this.__hotInstance.isDestroyed) {
2110
+ // Will return the Handsontable instance or `null` if it's not yet been created.
2111
+ return this.__hotInstance;
2112
+ } else {
2113
+ console.warn(HOT_DESTROYED_WARNING);
2114
+ return null;
2115
+ }
2116
+ }
2117
+ /**
2118
+ * Setter for the property storing the Handsontable instance.
2119
+ * @param {Handsontable} hotInstance The Handsontable instance.
2120
+ */
2121
+ ,
2122
+ set: function set(hotInstance) {
2123
+ this.__hotInstance = hotInstance;
2124
+ }
2083
2125
  /**
2084
2126
  * Get the rendered table cell cache.
2085
2127
  *
2086
2128
  * @returns {Map}
2087
2129
  */
2088
- function getRenderedCellCache() {
2130
+
2131
+ }, {
2132
+ key: "getRenderedCellCache",
2133
+ value: function getRenderedCellCache() {
2089
2134
  return this.renderedCellCache;
2090
2135
  }
2091
2136
  /**
@@ -2204,15 +2249,20 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2204
2249
  * Create a fresh class to be used as an editor, based on the provided editor React element.
2205
2250
  *
2206
2251
  * @param {React.ReactElement} editorElement React editor component.
2252
+ * @param {string|number} [editorColumnScope] The editor scope (column index or a 'global' string). Defaults to
2253
+ * 'global'.
2207
2254
  * @returns {Function} A class to be passed to the Handsontable editor settings.
2208
2255
  */
2209
2256
 
2210
2257
  }, {
2211
2258
  key: "getEditorClass",
2212
2259
  value: function getEditorClass(editorElement) {
2260
+ var _editorCache$get;
2261
+
2262
+ var editorColumnScope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : GLOBAL_EDITOR_SCOPE;
2213
2263
  var editorClass = getOriginalEditorClass(editorElement);
2214
2264
  var editorCache = this.getEditorCache();
2215
- var cachedComponent = editorCache.get(editorClass);
2265
+ var cachedComponent = (_editorCache$get = editorCache.get(editorClass)) === null || _editorCache$get === void 0 ? void 0 : _editorCache$get.get(editorColumnScope);
2216
2266
  return this.makeEditorClass(cachedComponent);
2217
2267
  }
2218
2268
  /**
@@ -2230,12 +2280,12 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2230
2280
 
2231
2281
  var _super2 = _createSuper(CustomEditor);
2232
2282
 
2233
- function CustomEditor(hotInstance, row, col, prop, TD, cellProperties) {
2283
+ function CustomEditor(hotInstance) {
2234
2284
  var _this2;
2235
2285
 
2236
2286
  _classCallCheck(this, CustomEditor);
2237
2287
 
2238
- _this2 = _super2.call(this, hotInstance, row, col, prop, TD, cellProperties);
2288
+ _this2 = _super2.call(this, hotInstance);
2239
2289
  editorComponent.hotCustomEditorInstance = _assertThisInitialized(_this2);
2240
2290
  _this2.editorComponent = editorComponent;
2241
2291
  return _this2;
@@ -2259,10 +2309,10 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2259
2309
  }]);
2260
2310
 
2261
2311
  return CustomEditor;
2262
- }(Handsontable__default['default'].editors.BaseEditor); // Fill with the rest of the BaseEditor methods
2312
+ }(Handsontable__default["default"].editors.BaseEditor); // Fill with the rest of the BaseEditor methods
2263
2313
 
2264
2314
 
2265
- Object.getOwnPropertyNames(Handsontable__default['default'].editors.BaseEditor.prototype).forEach(function (propName) {
2315
+ Object.getOwnPropertyNames(Handsontable__default["default"].editors.BaseEditor.prototype).forEach(function (propName) {
2266
2316
  if (propName === 'constructor') {
2267
2317
  return;
2268
2318
  }
@@ -2335,7 +2385,7 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2335
2385
  newSettings.columns = this.columnSettings.length ? this.columnSettings : newSettings.columns;
2336
2386
 
2337
2387
  if (globalEditorNode) {
2338
- newSettings.editor = this.getEditorClass(globalEditorNode);
2388
+ newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);
2339
2389
  } else {
2340
2390
  newSettings.editor = this.props.editor || (this.props.settings ? this.props.settings.editor : void 0);
2341
2391
  }
@@ -2358,7 +2408,9 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2358
2408
  }, {
2359
2409
  key: "displayAutoSizeWarning",
2360
2410
  value: function displayAutoSizeWarning(newGlobalSettings) {
2361
- if (this.hotInstance.getPlugin('autoRowSize').enabled || this.hotInstance.getPlugin('autoColumnSize').enabled) {
2411
+ var _this$hotInstance$get, _this$hotInstance$get2;
2412
+
2413
+ 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)) {
2362
2414
  if (this.componentRendererColumns.size > 0) {
2363
2415
  warn(AUTOSIZE_WARNING);
2364
2416
  }
@@ -2377,21 +2429,21 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2377
2429
  this.columnSettings[columnIndex] = columnSettings;
2378
2430
  }
2379
2431
  /**
2380
- * Handsontable's `beforeRender` hook callback.
2432
+ * Handsontable's `beforeViewRender` hook callback.
2381
2433
  */
2382
2434
 
2383
2435
  }, {
2384
- key: "handsontableBeforeRender",
2385
- value: function handsontableBeforeRender() {
2436
+ key: "handsontableBeforeViewRender",
2437
+ value: function handsontableBeforeViewRender() {
2386
2438
  this.getRenderedCellCache().clear();
2387
2439
  }
2388
2440
  /**
2389
- * Handsontable's `afterRender` hook callback.
2441
+ * Handsontable's `afterViewRender` hook callback.
2390
2442
  */
2391
2443
 
2392
2444
  }, {
2393
- key: "handsontableAfterRender",
2394
- value: function handsontableAfterRender() {
2445
+ key: "handsontableAfterViewRender",
2446
+ value: function handsontableAfterViewRender() {
2395
2447
  var _this3 = this;
2396
2448
 
2397
2449
  this.portalManager.setState(function () {
@@ -2411,7 +2463,9 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2411
2463
  }, {
2412
2464
  key: "updateHot",
2413
2465
  value: function updateHot(newSettings) {
2414
- this.hotInstance.updateSettings(newSettings, false);
2466
+ if (this.hotInstance) {
2467
+ this.hotInstance.updateSettings(newSettings, false);
2468
+ }
2415
2469
  }
2416
2470
  /**
2417
2471
  * Set the portal manager ref.
@@ -2449,12 +2503,12 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2449
2503
  value: function componentDidMount() {
2450
2504
  var hotTableComponent = this;
2451
2505
  var newGlobalSettings = this.createNewGlobalSettings();
2452
- this.hotInstance = new Handsontable__default['default'].Core(this.hotElementRef, newGlobalSettings);
2453
- this.hotInstance.addHook('beforeRender', function (isForced) {
2454
- hotTableComponent.handsontableBeforeRender();
2506
+ this.hotInstance = new Handsontable__default["default"].Core(this.hotElementRef, newGlobalSettings);
2507
+ this.hotInstance.addHook('beforeViewRender', function (isForced) {
2508
+ hotTableComponent.handsontableBeforeViewRender();
2455
2509
  });
2456
- this.hotInstance.addHook('afterRender', function () {
2457
- hotTableComponent.handsontableAfterRender();
2510
+ this.hotInstance.addHook('afterViewRender', function () {
2511
+ hotTableComponent.handsontableAfterViewRender();
2458
2512
  }); // `init` missing in Handsontable's type definitions.
2459
2513
 
2460
2514
  this.hotInstance.init();
@@ -2489,7 +2543,10 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2489
2543
  }, {
2490
2544
  key: "componentWillUnmount",
2491
2545
  value: function componentWillUnmount() {
2492
- this.hotInstance.destroy();
2546
+ if (this.hotInstance) {
2547
+ this.hotInstance.destroy();
2548
+ }
2549
+
2493
2550
  removeEditorContainers(this.getOwnerDocument());
2494
2551
  }
2495
2552
  /**
@@ -2510,14 +2567,14 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2510
2567
  return childNode.type === HotColumn;
2511
2568
  };
2512
2569
 
2513
- var children = React__default['default'].Children.toArray(this.props.children); // filter out anything that's not a HotColumn
2570
+ var children = React__default["default"].Children.toArray(this.props.children); // filter out anything that's not a HotColumn
2514
2571
 
2515
2572
  children = children.filter(function (childNode) {
2516
2573
  return isHotColumn(childNode);
2517
2574
  }); // clone the HotColumn nodes and extend them with the callbacks
2518
2575
 
2519
2576
  var childClones = children.map(function (childNode, columnIndex) {
2520
- return React__default['default'].cloneElement(childNode, {
2577
+ return React__default["default"].cloneElement(childNode, {
2521
2578
  _componentRendererColumns: _this4.componentRendererColumns,
2522
2579
  _emitColumnSettings: _this4.setHotColumnSettings.bind(_this4),
2523
2580
  _columnIndex: columnIndex,
@@ -2531,12 +2588,12 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2531
2588
  }); // add the global editor to the list of children
2532
2589
 
2533
2590
  childClones.push(this.getGlobalEditorPortal());
2534
- return React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement("div", {
2591
+ return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement("div", {
2535
2592
  ref: this.setHotElementRef.bind(this),
2536
2593
  id: id,
2537
2594
  className: className,
2538
2595
  style: style
2539
- }, childClones), React__default['default'].createElement(PortalManager, {
2596
+ }, childClones), React__default["default"].createElement(PortalManager, {
2540
2597
  ref: this.setPortalManagerRef.bind(this)
2541
2598
  }));
2542
2599
  }
@@ -2548,7 +2605,7 @@ var HotTable = /*#__PURE__*/function (_React$Component) {
2548
2605
  }]);
2549
2606
 
2550
2607
  return HotTable;
2551
- }(React__default['default'].Component);
2608
+ }(React__default["default"].Component);
2552
2609
  /**
2553
2610
  * Prop types to be checked at runtime.
2554
2611
  */
@@ -2585,7 +2642,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2585
2642
  _this.hot = null;
2586
2643
 
2587
2644
  if (props.emitEditorInstance) {
2588
- props.emitEditorInstance(_assertThisInitialized(_this));
2645
+ props.emitEditorInstance(_assertThisInitialized(_this), props.editorColumnScope);
2589
2646
  }
2590
2647
 
2591
2648
  return _this;
@@ -2601,7 +2658,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2601
2658
  args[_key] = arguments[_key];
2602
2659
  }
2603
2660
 
2604
- (_Handsontable$editors = Handsontable__default['default'].editors.BaseEditor.prototype._fireCallbacks).call.apply(_Handsontable$editors, [this.hotCustomEditorInstance].concat(args));
2661
+ (_Handsontable$editors = Handsontable__default["default"].editors.BaseEditor.prototype._fireCallbacks).call.apply(_Handsontable$editors, [this.hotCustomEditorInstance].concat(args));
2605
2662
  }
2606
2663
  }, {
2607
2664
  key: "beginEditing",
@@ -2612,7 +2669,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2612
2669
  args[_key2] = arguments[_key2];
2613
2670
  }
2614
2671
 
2615
- return (_Handsontable$editors2 = Handsontable__default['default'].editors.BaseEditor.prototype.beginEditing).call.apply(_Handsontable$editors2, [this.hotCustomEditorInstance].concat(args));
2672
+ return (_Handsontable$editors2 = Handsontable__default["default"].editors.BaseEditor.prototype.beginEditing).call.apply(_Handsontable$editors2, [this.hotCustomEditorInstance].concat(args));
2616
2673
  }
2617
2674
  }, {
2618
2675
  key: "cancelChanges",
@@ -2623,7 +2680,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2623
2680
  args[_key3] = arguments[_key3];
2624
2681
  }
2625
2682
 
2626
- return (_Handsontable$editors3 = Handsontable__default['default'].editors.BaseEditor.prototype.cancelChanges).call.apply(_Handsontable$editors3, [this.hotCustomEditorInstance].concat(args));
2683
+ return (_Handsontable$editors3 = Handsontable__default["default"].editors.BaseEditor.prototype.cancelChanges).call.apply(_Handsontable$editors3, [this.hotCustomEditorInstance].concat(args));
2627
2684
  }
2628
2685
  }, {
2629
2686
  key: "checkEditorSection",
@@ -2634,7 +2691,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2634
2691
  args[_key4] = arguments[_key4];
2635
2692
  }
2636
2693
 
2637
- return (_Handsontable$editors4 = Handsontable__default['default'].editors.BaseEditor.prototype.checkEditorSection).call.apply(_Handsontable$editors4, [this.hotCustomEditorInstance].concat(args));
2694
+ return (_Handsontable$editors4 = Handsontable__default["default"].editors.BaseEditor.prototype.checkEditorSection).call.apply(_Handsontable$editors4, [this.hotCustomEditorInstance].concat(args));
2638
2695
  }
2639
2696
  }, {
2640
2697
  key: "close",
@@ -2645,7 +2702,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2645
2702
  args[_key5] = arguments[_key5];
2646
2703
  }
2647
2704
 
2648
- return (_Handsontable$editors5 = Handsontable__default['default'].editors.BaseEditor.prototype.close).call.apply(_Handsontable$editors5, [this.hotCustomEditorInstance].concat(args));
2705
+ return (_Handsontable$editors5 = Handsontable__default["default"].editors.BaseEditor.prototype.close).call.apply(_Handsontable$editors5, [this.hotCustomEditorInstance].concat(args));
2649
2706
  }
2650
2707
  }, {
2651
2708
  key: "discardEditor",
@@ -2656,7 +2713,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2656
2713
  args[_key6] = arguments[_key6];
2657
2714
  }
2658
2715
 
2659
- return (_Handsontable$editors6 = Handsontable__default['default'].editors.BaseEditor.prototype.discardEditor).call.apply(_Handsontable$editors6, [this.hotCustomEditorInstance].concat(args));
2716
+ return (_Handsontable$editors6 = Handsontable__default["default"].editors.BaseEditor.prototype.discardEditor).call.apply(_Handsontable$editors6, [this.hotCustomEditorInstance].concat(args));
2660
2717
  }
2661
2718
  }, {
2662
2719
  key: "enableFullEditMode",
@@ -2667,7 +2724,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2667
2724
  args[_key7] = arguments[_key7];
2668
2725
  }
2669
2726
 
2670
- return (_Handsontable$editors7 = Handsontable__default['default'].editors.BaseEditor.prototype.enableFullEditMode).call.apply(_Handsontable$editors7, [this.hotCustomEditorInstance].concat(args));
2727
+ return (_Handsontable$editors7 = Handsontable__default["default"].editors.BaseEditor.prototype.enableFullEditMode).call.apply(_Handsontable$editors7, [this.hotCustomEditorInstance].concat(args));
2671
2728
  }
2672
2729
  }, {
2673
2730
  key: "extend",
@@ -2678,7 +2735,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2678
2735
  args[_key8] = arguments[_key8];
2679
2736
  }
2680
2737
 
2681
- return (_Handsontable$editors8 = Handsontable__default['default'].editors.BaseEditor.prototype.extend).call.apply(_Handsontable$editors8, [this.hotCustomEditorInstance].concat(args));
2738
+ return (_Handsontable$editors8 = Handsontable__default["default"].editors.BaseEditor.prototype.extend).call.apply(_Handsontable$editors8, [this.hotCustomEditorInstance].concat(args));
2682
2739
  }
2683
2740
  }, {
2684
2741
  key: "finishEditing",
@@ -2689,7 +2746,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2689
2746
  args[_key9] = arguments[_key9];
2690
2747
  }
2691
2748
 
2692
- return (_Handsontable$editors9 = Handsontable__default['default'].editors.BaseEditor.prototype.finishEditing).call.apply(_Handsontable$editors9, [this.hotCustomEditorInstance].concat(args));
2749
+ return (_Handsontable$editors9 = Handsontable__default["default"].editors.BaseEditor.prototype.finishEditing).call.apply(_Handsontable$editors9, [this.hotCustomEditorInstance].concat(args));
2693
2750
  }
2694
2751
  }, {
2695
2752
  key: "focus",
@@ -2700,7 +2757,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2700
2757
  args[_key10] = arguments[_key10];
2701
2758
  }
2702
2759
 
2703
- return (_Handsontable$editors10 = Handsontable__default['default'].editors.BaseEditor.prototype.focus).call.apply(_Handsontable$editors10, [this.hotCustomEditorInstance].concat(args));
2760
+ return (_Handsontable$editors10 = Handsontable__default["default"].editors.BaseEditor.prototype.focus).call.apply(_Handsontable$editors10, [this.hotCustomEditorInstance].concat(args));
2704
2761
  }
2705
2762
  }, {
2706
2763
  key: "getValue",
@@ -2711,7 +2768,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2711
2768
  args[_key11] = arguments[_key11];
2712
2769
  }
2713
2770
 
2714
- return (_Handsontable$editors11 = Handsontable__default['default'].editors.BaseEditor.prototype.getValue).call.apply(_Handsontable$editors11, [this.hotCustomEditorInstance].concat(args));
2771
+ return (_Handsontable$editors11 = Handsontable__default["default"].editors.BaseEditor.prototype.getValue).call.apply(_Handsontable$editors11, [this.hotCustomEditorInstance].concat(args));
2715
2772
  }
2716
2773
  }, {
2717
2774
  key: "init",
@@ -2722,7 +2779,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2722
2779
  args[_key12] = arguments[_key12];
2723
2780
  }
2724
2781
 
2725
- return (_Handsontable$editors12 = Handsontable__default['default'].editors.BaseEditor.prototype.init).call.apply(_Handsontable$editors12, [this.hotCustomEditorInstance].concat(args));
2782
+ return (_Handsontable$editors12 = Handsontable__default["default"].editors.BaseEditor.prototype.init).call.apply(_Handsontable$editors12, [this.hotCustomEditorInstance].concat(args));
2726
2783
  }
2727
2784
  }, {
2728
2785
  key: "isInFullEditMode",
@@ -2733,7 +2790,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2733
2790
  args[_key13] = arguments[_key13];
2734
2791
  }
2735
2792
 
2736
- return (_Handsontable$editors13 = Handsontable__default['default'].editors.BaseEditor.prototype.isInFullEditMode).call.apply(_Handsontable$editors13, [this.hotCustomEditorInstance].concat(args));
2793
+ return (_Handsontable$editors13 = Handsontable__default["default"].editors.BaseEditor.prototype.isInFullEditMode).call.apply(_Handsontable$editors13, [this.hotCustomEditorInstance].concat(args));
2737
2794
  }
2738
2795
  }, {
2739
2796
  key: "isOpened",
@@ -2744,7 +2801,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2744
2801
  args[_key14] = arguments[_key14];
2745
2802
  }
2746
2803
 
2747
- return (_Handsontable$editors14 = Handsontable__default['default'].editors.BaseEditor.prototype.isOpened).call.apply(_Handsontable$editors14, [this.hotCustomEditorInstance].concat(args));
2804
+ return (_Handsontable$editors14 = Handsontable__default["default"].editors.BaseEditor.prototype.isOpened).call.apply(_Handsontable$editors14, [this.hotCustomEditorInstance].concat(args));
2748
2805
  }
2749
2806
  }, {
2750
2807
  key: "isWaiting",
@@ -2755,7 +2812,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2755
2812
  args[_key15] = arguments[_key15];
2756
2813
  }
2757
2814
 
2758
- return (_Handsontable$editors15 = Handsontable__default['default'].editors.BaseEditor.prototype.isWaiting).call.apply(_Handsontable$editors15, [this.hotCustomEditorInstance].concat(args));
2815
+ return (_Handsontable$editors15 = Handsontable__default["default"].editors.BaseEditor.prototype.isWaiting).call.apply(_Handsontable$editors15, [this.hotCustomEditorInstance].concat(args));
2759
2816
  }
2760
2817
  }, {
2761
2818
  key: "open",
@@ -2766,7 +2823,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2766
2823
  args[_key16] = arguments[_key16];
2767
2824
  }
2768
2825
 
2769
- return (_Handsontable$editors16 = Handsontable__default['default'].editors.BaseEditor.prototype.open).call.apply(_Handsontable$editors16, [this.hotCustomEditorInstance].concat(args));
2826
+ return (_Handsontable$editors16 = Handsontable__default["default"].editors.BaseEditor.prototype.open).call.apply(_Handsontable$editors16, [this.hotCustomEditorInstance].concat(args));
2770
2827
  }
2771
2828
  }, {
2772
2829
  key: "prepare",
@@ -2778,7 +2835,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2778
2835
  this.TD = TD;
2779
2836
  this.originalValue = originalValue;
2780
2837
  this.cellProperties = cellProperties;
2781
- return Handsontable__default['default'].editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance, row, col, prop, TD, originalValue, cellProperties);
2838
+ return Handsontable__default["default"].editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance, row, col, prop, TD, originalValue, cellProperties);
2782
2839
  }
2783
2840
  }, {
2784
2841
  key: "saveValue",
@@ -2789,7 +2846,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2789
2846
  args[_key17] = arguments[_key17];
2790
2847
  }
2791
2848
 
2792
- return (_Handsontable$editors17 = Handsontable__default['default'].editors.BaseEditor.prototype.saveValue).call.apply(_Handsontable$editors17, [this.hotCustomEditorInstance].concat(args));
2849
+ return (_Handsontable$editors17 = Handsontable__default["default"].editors.BaseEditor.prototype.saveValue).call.apply(_Handsontable$editors17, [this.hotCustomEditorInstance].concat(args));
2793
2850
  }
2794
2851
  }, {
2795
2852
  key: "setValue",
@@ -2800,7 +2857,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2800
2857
  args[_key18] = arguments[_key18];
2801
2858
  }
2802
2859
 
2803
- return (_Handsontable$editors18 = Handsontable__default['default'].editors.BaseEditor.prototype.setValue).call.apply(_Handsontable$editors18, [this.hotCustomEditorInstance].concat(args));
2860
+ return (_Handsontable$editors18 = Handsontable__default["default"].editors.BaseEditor.prototype.setValue).call.apply(_Handsontable$editors18, [this.hotCustomEditorInstance].concat(args));
2804
2861
  }
2805
2862
  }, {
2806
2863
  key: "addHook",
@@ -2811,7 +2868,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2811
2868
  args[_key19] = arguments[_key19];
2812
2869
  }
2813
2870
 
2814
- return (_Handsontable$editors19 = Handsontable__default['default'].editors.BaseEditor.prototype.addHook).call.apply(_Handsontable$editors19, [this.hotCustomEditorInstance].concat(args));
2871
+ return (_Handsontable$editors19 = Handsontable__default["default"].editors.BaseEditor.prototype.addHook).call.apply(_Handsontable$editors19, [this.hotCustomEditorInstance].concat(args));
2815
2872
  }
2816
2873
  }, {
2817
2874
  key: "removeHooksByKey",
@@ -2822,7 +2879,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2822
2879
  args[_key20] = arguments[_key20];
2823
2880
  }
2824
2881
 
2825
- return (_Handsontable$editors20 = Handsontable__default['default'].editors.BaseEditor.prototype.removeHooksByKey).call.apply(_Handsontable$editors20, [this.hotCustomEditorInstance].concat(args));
2882
+ return (_Handsontable$editors20 = Handsontable__default["default"].editors.BaseEditor.prototype.removeHooksByKey).call.apply(_Handsontable$editors20, [this.hotCustomEditorInstance].concat(args));
2826
2883
  }
2827
2884
  }, {
2828
2885
  key: "clearHooks",
@@ -2833,7 +2890,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2833
2890
  args[_key21] = arguments[_key21];
2834
2891
  }
2835
2892
 
2836
- return (_Handsontable$editors21 = Handsontable__default['default'].editors.BaseEditor.prototype.clearHooks).call.apply(_Handsontable$editors21, [this.hotCustomEditorInstance].concat(args));
2893
+ return (_Handsontable$editors21 = Handsontable__default["default"].editors.BaseEditor.prototype.clearHooks).call.apply(_Handsontable$editors21, [this.hotCustomEditorInstance].concat(args));
2837
2894
  }
2838
2895
  }, {
2839
2896
  key: "getEditedCell",
@@ -2844,7 +2901,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2844
2901
  args[_key22] = arguments[_key22];
2845
2902
  }
2846
2903
 
2847
- return (_Handsontable$editors22 = Handsontable__default['default'].editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors22, [this.hotCustomEditorInstance].concat(args));
2904
+ return (_Handsontable$editors22 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors22, [this.hotCustomEditorInstance].concat(args));
2848
2905
  }
2849
2906
  }, {
2850
2907
  key: "getEditedCellsZIndex",
@@ -2855,14 +2912,14 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2855
2912
  args[_key23] = arguments[_key23];
2856
2913
  }
2857
2914
 
2858
- return (_Handsontable$editors23 = Handsontable__default['default'].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
2915
+ return (_Handsontable$editors23 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
2859
2916
  }
2860
2917
  }]);
2861
2918
 
2862
2919
  return BaseEditorComponent;
2863
- }(React__default['default'].Component);
2920
+ }(React__default["default"].Component);
2864
2921
 
2865
2922
  exports.BaseEditorComponent = BaseEditorComponent;
2866
2923
  exports.HotColumn = HotColumn;
2867
2924
  exports.HotTable = HotTable;
2868
- exports.default = HotTable;
2925
+ exports["default"] = HotTable;