@handsontable/react 0.0.0-next-16c41fc-20240410 → 0.0.0-next-83790cf-20240411
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.
|
@@ -514,7 +514,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
514
514
|
}]);
|
|
515
515
|
}(React__default["default"].Component);
|
|
516
516
|
|
|
517
|
-
var version="0.0.0-next-
|
|
517
|
+
var version="0.0.0-next-83790cf-20240411";
|
|
518
518
|
|
|
519
519
|
function createCommonjsModule(fn, module) {
|
|
520
520
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
|
27
27
|
*
|
|
28
|
-
* Version: 0.0.0-next-
|
|
28
|
+
* Version: 0.0.0-next-83790cf-20240411 (built at Thu Apr 11 2024 10:05:11 GMT+0000 (Coordinated Universal Time))
|
|
29
29
|
*/
|
|
30
30
|
(function (global, factory) {
|
|
31
31
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom'), require('handsontable/base'), require('handsontable/renderers/registry'), require('handsontable/editors/registry')) :
|
|
@@ -33,6 +33,12 @@ typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-
|
|
|
33
33
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.Handsontable = global.Handsontable || {}, global.Handsontable.react = {}), global.React, global.ReactDOM, global.Handsontable, global.Handsontable.renderers, global.Handsontable.editors));
|
|
34
34
|
})(this, (function (exports, React, ReactDOM, Handsontable, registry$1, registry) { 'use strict';
|
|
35
35
|
|
|
36
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
37
|
+
|
|
38
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
39
|
+
var ReactDOM__default = /*#__PURE__*/_interopDefaultCompat(ReactDOM);
|
|
40
|
+
var Handsontable__default = /*#__PURE__*/_interopDefaultCompat(Handsontable);
|
|
41
|
+
|
|
36
42
|
function _callSuper(t, o, e) {
|
|
37
43
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
38
44
|
}
|
|
@@ -256,8 +262,8 @@ function warn() {
|
|
|
256
262
|
* @returns {Object|null} A child (React node) or `null`, if no child of that type was found.
|
|
257
263
|
*/
|
|
258
264
|
function getChildElementByType(children, type) {
|
|
259
|
-
var childrenArray =
|
|
260
|
-
var childrenCount =
|
|
265
|
+
var childrenArray = React__default["default"].Children.toArray(children);
|
|
266
|
+
var childrenCount = React__default["default"].Children.count(children);
|
|
261
267
|
var wantedChild = null;
|
|
262
268
|
if (childrenCount !== 0) {
|
|
263
269
|
if (childrenCount === 1 && childrenArray[0].props[type]) {
|
|
@@ -295,7 +301,7 @@ function createEditorPortal(doc, editorElement) {
|
|
|
295
301
|
}
|
|
296
302
|
var containerProps = getContainerAttributesProps(editorElement.props, false);
|
|
297
303
|
containerProps.className = "".concat(DEFAULT_CLASSNAME, " ").concat(containerProps.className);
|
|
298
|
-
return
|
|
304
|
+
return ReactDOM__default["default"].createPortal(React__default["default"].createElement("div", Object.assign({}, containerProps), editorElement), doc.body);
|
|
299
305
|
}
|
|
300
306
|
/**
|
|
301
307
|
* Get an editor element extended with an instance-emitting method.
|
|
@@ -313,7 +319,7 @@ function getExtendedEditorElement(children, editorCache) {
|
|
|
313
319
|
if (!editorElement) {
|
|
314
320
|
return null;
|
|
315
321
|
}
|
|
316
|
-
return
|
|
322
|
+
return React__default["default"].cloneElement(editorElement, {
|
|
317
323
|
emitEditorInstance: function emitEditorInstance(editorInstance, editorColumnScope) {
|
|
318
324
|
if (!editorCache.get(editorClass)) {
|
|
319
325
|
editorCache.set(editorClass, new Map());
|
|
@@ -347,11 +353,11 @@ function createPortal(rElement, props) {
|
|
|
347
353
|
}
|
|
348
354
|
var portalContainer = cachedContainer !== null && cachedContainer !== void 0 ? cachedContainer : ownerDocument.createElement('DIV');
|
|
349
355
|
bulkComponentContainer.appendChild(portalContainer);
|
|
350
|
-
var extendedRendererElement =
|
|
356
|
+
var extendedRendererElement = React__default["default"].cloneElement(rElement, _objectSpread2({
|
|
351
357
|
key: "".concat(props.row, "-").concat(props.col)
|
|
352
358
|
}, props));
|
|
353
359
|
return {
|
|
354
|
-
portal:
|
|
360
|
+
portal: ReactDOM__default["default"].createPortal(extendedRendererElement, portalContainer, portalKey),
|
|
355
361
|
portalContainer: portalContainer
|
|
356
362
|
};
|
|
357
363
|
}
|
|
@@ -506,10 +512,10 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
|
|
|
506
512
|
value: function render() {
|
|
507
513
|
var ownerDocument = this.props._getOwnerDocument();
|
|
508
514
|
var editorPortal = createEditorPortal(ownerDocument, this.getLocalEditorElement());
|
|
509
|
-
return
|
|
515
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, editorPortal);
|
|
510
516
|
}
|
|
511
517
|
}]);
|
|
512
|
-
}(
|
|
518
|
+
}(React__default["default"].Component);
|
|
513
519
|
|
|
514
520
|
/**
|
|
515
521
|
* Component class used to manage the renderer component portals.
|
|
@@ -528,12 +534,12 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
528
534
|
return _createClass(RenderersPortalManager, [{
|
|
529
535
|
key: "render",
|
|
530
536
|
value: function render() {
|
|
531
|
-
return
|
|
537
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, this.state.portals);
|
|
532
538
|
}
|
|
533
539
|
}]);
|
|
534
|
-
}(
|
|
540
|
+
}(React__default["default"].Component);
|
|
535
541
|
|
|
536
|
-
var version="0.0.0-next-
|
|
542
|
+
var version="0.0.0-next-83790cf-20240411";
|
|
537
543
|
|
|
538
544
|
function createCommonjsModule(fn, module) {
|
|
539
545
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
@@ -1165,9 +1171,9 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1165
1171
|
key: "close",
|
|
1166
1172
|
value: function close() {}
|
|
1167
1173
|
}]);
|
|
1168
|
-
}(
|
|
1174
|
+
}(Handsontable__default["default"].editors.BaseEditor);
|
|
1169
1175
|
// Fill with the rest of the BaseEditor methods
|
|
1170
|
-
Object.getOwnPropertyNames(
|
|
1176
|
+
Object.getOwnPropertyNames(Handsontable__default["default"].editors.BaseEditor.prototype).forEach(function (propName) {
|
|
1171
1177
|
if (propName === 'constructor') {
|
|
1172
1178
|
return;
|
|
1173
1179
|
}
|
|
@@ -1317,7 +1323,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1317
1323
|
value: function componentDidMount() {
|
|
1318
1324
|
var _this3 = this;
|
|
1319
1325
|
var newGlobalSettings = this.createNewGlobalSettings();
|
|
1320
|
-
this.hotInstance = new
|
|
1326
|
+
this.hotInstance = new Handsontable__default["default"].Core(this.hotElementRef, newGlobalSettings);
|
|
1321
1327
|
this.hotInstance.addHook('beforeViewRender', function () {
|
|
1322
1328
|
return _this3.handsontableBeforeViewRender();
|
|
1323
1329
|
});
|
|
@@ -1360,12 +1366,12 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1360
1366
|
var isHotColumn = function isHotColumn(childNode) {
|
|
1361
1367
|
return childNode.type === HotColumn;
|
|
1362
1368
|
};
|
|
1363
|
-
var children =
|
|
1369
|
+
var children = React__default["default"].Children.toArray(this.props.children);
|
|
1364
1370
|
// clone the HotColumn nodes and extend them with the callbacks
|
|
1365
1371
|
var hotColumnClones = children.filter(function (childNode) {
|
|
1366
1372
|
return isHotColumn(childNode);
|
|
1367
1373
|
}).map(function (childNode, columnIndex) {
|
|
1368
|
-
return
|
|
1374
|
+
return React__default["default"].cloneElement(childNode, {
|
|
1369
1375
|
_componentRendererColumns: _this4.componentRendererColumns,
|
|
1370
1376
|
_emitColumnSettings: _this4.setHotColumnSettings.bind(_this4),
|
|
1371
1377
|
_columnIndex: columnIndex,
|
|
@@ -1379,9 +1385,9 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1379
1385
|
});
|
|
1380
1386
|
var containerProps = getContainerAttributesProps(this.props);
|
|
1381
1387
|
var editorPortal = createEditorPortal(this.getOwnerDocument(), this.getGlobalEditorElement());
|
|
1382
|
-
return
|
|
1388
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement("div", Object.assign({
|
|
1383
1389
|
ref: this.setHotElementRef.bind(this)
|
|
1384
|
-
}, containerProps), hotColumnClones),
|
|
1390
|
+
}, containerProps), hotColumnClones), React__default["default"].createElement(RenderersPortalManager, {
|
|
1385
1391
|
ref: this.setRenderersPortalManagerRef.bind(this)
|
|
1386
1392
|
}), editorPortal);
|
|
1387
1393
|
}
|
|
@@ -1391,7 +1397,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1391
1397
|
return version;
|
|
1392
1398
|
}
|
|
1393
1399
|
}]);
|
|
1394
|
-
}(
|
|
1400
|
+
}(React__default["default"].Component);
|
|
1395
1401
|
/**
|
|
1396
1402
|
* Prop types to be checked at runtime.
|
|
1397
1403
|
*/
|
|
@@ -1403,13 +1409,13 @@ HotTableClass.propTypes = {
|
|
|
1403
1409
|
|
|
1404
1410
|
var _excluded = ["children"];
|
|
1405
1411
|
// Use global React variable for `forwardRef` access (React 16 support)
|
|
1406
|
-
var HotTable =
|
|
1412
|
+
var HotTable = React__default["default"].forwardRef(function (_ref, ref) {
|
|
1407
1413
|
var _props$id;
|
|
1408
1414
|
var children = _ref.children,
|
|
1409
1415
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1410
|
-
var generatedId = typeof
|
|
1416
|
+
var generatedId = typeof React__default["default"].useId === 'function' ? React__default["default"].useId() : undefined;
|
|
1411
1417
|
var componentId = (_props$id = props.id) !== null && _props$id !== void 0 ? _props$id : generatedId;
|
|
1412
|
-
return
|
|
1418
|
+
return React__default["default"].createElement(HotTableClass, Object.assign({
|
|
1413
1419
|
id: componentId
|
|
1414
1420
|
}, props, {
|
|
1415
1421
|
ref: ref
|
|
@@ -1459,7 +1465,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1459
1465
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1460
1466
|
args[_key] = arguments[_key];
|
|
1461
1467
|
}
|
|
1462
|
-
(_Handsontable$editors =
|
|
1468
|
+
(_Handsontable$editors = Handsontable__default["default"].editors.BaseEditor.prototype._fireCallbacks).call.apply(_Handsontable$editors, [this.hotCustomEditorInstance].concat(args));
|
|
1463
1469
|
}
|
|
1464
1470
|
}, {
|
|
1465
1471
|
key: "beginEditing",
|
|
@@ -1468,7 +1474,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1468
1474
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
1469
1475
|
args[_key2] = arguments[_key2];
|
|
1470
1476
|
}
|
|
1471
|
-
return (_Handsontable$editors2 =
|
|
1477
|
+
return (_Handsontable$editors2 = Handsontable__default["default"].editors.BaseEditor.prototype.beginEditing).call.apply(_Handsontable$editors2, [this.hotCustomEditorInstance].concat(args));
|
|
1472
1478
|
}
|
|
1473
1479
|
}, {
|
|
1474
1480
|
key: "cancelChanges",
|
|
@@ -1477,7 +1483,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1477
1483
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
1478
1484
|
args[_key3] = arguments[_key3];
|
|
1479
1485
|
}
|
|
1480
|
-
return (_Handsontable$editors3 =
|
|
1486
|
+
return (_Handsontable$editors3 = Handsontable__default["default"].editors.BaseEditor.prototype.cancelChanges).call.apply(_Handsontable$editors3, [this.hotCustomEditorInstance].concat(args));
|
|
1481
1487
|
}
|
|
1482
1488
|
}, {
|
|
1483
1489
|
key: "checkEditorSection",
|
|
@@ -1486,7 +1492,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1486
1492
|
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
1487
1493
|
args[_key4] = arguments[_key4];
|
|
1488
1494
|
}
|
|
1489
|
-
return (_Handsontable$editors4 =
|
|
1495
|
+
return (_Handsontable$editors4 = Handsontable__default["default"].editors.BaseEditor.prototype.checkEditorSection).call.apply(_Handsontable$editors4, [this.hotCustomEditorInstance].concat(args));
|
|
1490
1496
|
}
|
|
1491
1497
|
}, {
|
|
1492
1498
|
key: "close",
|
|
@@ -1495,7 +1501,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1495
1501
|
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
1496
1502
|
args[_key5] = arguments[_key5];
|
|
1497
1503
|
}
|
|
1498
|
-
return (_Handsontable$editors5 =
|
|
1504
|
+
return (_Handsontable$editors5 = Handsontable__default["default"].editors.BaseEditor.prototype.close).call.apply(_Handsontable$editors5, [this.hotCustomEditorInstance].concat(args));
|
|
1499
1505
|
}
|
|
1500
1506
|
}, {
|
|
1501
1507
|
key: "discardEditor",
|
|
@@ -1504,7 +1510,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1504
1510
|
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
1505
1511
|
args[_key6] = arguments[_key6];
|
|
1506
1512
|
}
|
|
1507
|
-
return (_Handsontable$editors6 =
|
|
1513
|
+
return (_Handsontable$editors6 = Handsontable__default["default"].editors.BaseEditor.prototype.discardEditor).call.apply(_Handsontable$editors6, [this.hotCustomEditorInstance].concat(args));
|
|
1508
1514
|
}
|
|
1509
1515
|
}, {
|
|
1510
1516
|
key: "enableFullEditMode",
|
|
@@ -1513,7 +1519,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1513
1519
|
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
|
1514
1520
|
args[_key7] = arguments[_key7];
|
|
1515
1521
|
}
|
|
1516
|
-
return (_Handsontable$editors7 =
|
|
1522
|
+
return (_Handsontable$editors7 = Handsontable__default["default"].editors.BaseEditor.prototype.enableFullEditMode).call.apply(_Handsontable$editors7, [this.hotCustomEditorInstance].concat(args));
|
|
1517
1523
|
}
|
|
1518
1524
|
}, {
|
|
1519
1525
|
key: "extend",
|
|
@@ -1522,7 +1528,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1522
1528
|
for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
|
|
1523
1529
|
args[_key8] = arguments[_key8];
|
|
1524
1530
|
}
|
|
1525
|
-
return (_Handsontable$editors8 =
|
|
1531
|
+
return (_Handsontable$editors8 = Handsontable__default["default"].editors.BaseEditor.prototype.extend).call.apply(_Handsontable$editors8, [this.hotCustomEditorInstance].concat(args));
|
|
1526
1532
|
}
|
|
1527
1533
|
}, {
|
|
1528
1534
|
key: "finishEditing",
|
|
@@ -1531,7 +1537,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1531
1537
|
for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
|
|
1532
1538
|
args[_key9] = arguments[_key9];
|
|
1533
1539
|
}
|
|
1534
|
-
return (_Handsontable$editors9 =
|
|
1540
|
+
return (_Handsontable$editors9 = Handsontable__default["default"].editors.BaseEditor.prototype.finishEditing).call.apply(_Handsontable$editors9, [this.hotCustomEditorInstance].concat(args));
|
|
1535
1541
|
}
|
|
1536
1542
|
}, {
|
|
1537
1543
|
key: "focus",
|
|
@@ -1540,7 +1546,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1540
1546
|
for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
|
|
1541
1547
|
args[_key10] = arguments[_key10];
|
|
1542
1548
|
}
|
|
1543
|
-
return (_Handsontable$editors10 =
|
|
1549
|
+
return (_Handsontable$editors10 = Handsontable__default["default"].editors.BaseEditor.prototype.focus).call.apply(_Handsontable$editors10, [this.hotCustomEditorInstance].concat(args));
|
|
1544
1550
|
}
|
|
1545
1551
|
}, {
|
|
1546
1552
|
key: "getValue",
|
|
@@ -1549,7 +1555,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1549
1555
|
for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
|
|
1550
1556
|
args[_key11] = arguments[_key11];
|
|
1551
1557
|
}
|
|
1552
|
-
return (_Handsontable$editors11 =
|
|
1558
|
+
return (_Handsontable$editors11 = Handsontable__default["default"].editors.BaseEditor.prototype.getValue).call.apply(_Handsontable$editors11, [this.hotCustomEditorInstance].concat(args));
|
|
1553
1559
|
}
|
|
1554
1560
|
}, {
|
|
1555
1561
|
key: "init",
|
|
@@ -1558,7 +1564,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1558
1564
|
for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
|
|
1559
1565
|
args[_key12] = arguments[_key12];
|
|
1560
1566
|
}
|
|
1561
|
-
return (_Handsontable$editors12 =
|
|
1567
|
+
return (_Handsontable$editors12 = Handsontable__default["default"].editors.BaseEditor.prototype.init).call.apply(_Handsontable$editors12, [this.hotCustomEditorInstance].concat(args));
|
|
1562
1568
|
}
|
|
1563
1569
|
}, {
|
|
1564
1570
|
key: "isInFullEditMode",
|
|
@@ -1567,7 +1573,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1567
1573
|
for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
|
|
1568
1574
|
args[_key13] = arguments[_key13];
|
|
1569
1575
|
}
|
|
1570
|
-
return (_Handsontable$editors13 =
|
|
1576
|
+
return (_Handsontable$editors13 = Handsontable__default["default"].editors.BaseEditor.prototype.isInFullEditMode).call.apply(_Handsontable$editors13, [this.hotCustomEditorInstance].concat(args));
|
|
1571
1577
|
}
|
|
1572
1578
|
}, {
|
|
1573
1579
|
key: "isOpened",
|
|
@@ -1576,7 +1582,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1576
1582
|
for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
|
|
1577
1583
|
args[_key14] = arguments[_key14];
|
|
1578
1584
|
}
|
|
1579
|
-
return (_Handsontable$editors14 =
|
|
1585
|
+
return (_Handsontable$editors14 = Handsontable__default["default"].editors.BaseEditor.prototype.isOpened).call.apply(_Handsontable$editors14, [this.hotCustomEditorInstance].concat(args));
|
|
1580
1586
|
}
|
|
1581
1587
|
}, {
|
|
1582
1588
|
key: "isWaiting",
|
|
@@ -1585,7 +1591,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1585
1591
|
for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
|
|
1586
1592
|
args[_key15] = arguments[_key15];
|
|
1587
1593
|
}
|
|
1588
|
-
return (_Handsontable$editors15 =
|
|
1594
|
+
return (_Handsontable$editors15 = Handsontable__default["default"].editors.BaseEditor.prototype.isWaiting).call.apply(_Handsontable$editors15, [this.hotCustomEditorInstance].concat(args));
|
|
1589
1595
|
}
|
|
1590
1596
|
}, {
|
|
1591
1597
|
key: "open",
|
|
@@ -1594,7 +1600,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1594
1600
|
for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
|
|
1595
1601
|
args[_key16] = arguments[_key16];
|
|
1596
1602
|
}
|
|
1597
|
-
return (_Handsontable$editors16 =
|
|
1603
|
+
return (_Handsontable$editors16 = Handsontable__default["default"].editors.BaseEditor.prototype.open).call.apply(_Handsontable$editors16, [this.hotCustomEditorInstance].concat(args));
|
|
1598
1604
|
}
|
|
1599
1605
|
}, {
|
|
1600
1606
|
key: "prepare",
|
|
@@ -1606,7 +1612,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1606
1612
|
this.TD = TD;
|
|
1607
1613
|
this.originalValue = originalValue;
|
|
1608
1614
|
this.cellProperties = cellProperties;
|
|
1609
|
-
return
|
|
1615
|
+
return Handsontable__default["default"].editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance, row, col, prop, TD, originalValue, cellProperties);
|
|
1610
1616
|
}
|
|
1611
1617
|
}, {
|
|
1612
1618
|
key: "saveValue",
|
|
@@ -1615,7 +1621,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1615
1621
|
for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
|
|
1616
1622
|
args[_key17] = arguments[_key17];
|
|
1617
1623
|
}
|
|
1618
|
-
return (_Handsontable$editors17 =
|
|
1624
|
+
return (_Handsontable$editors17 = Handsontable__default["default"].editors.BaseEditor.prototype.saveValue).call.apply(_Handsontable$editors17, [this.hotCustomEditorInstance].concat(args));
|
|
1619
1625
|
}
|
|
1620
1626
|
}, {
|
|
1621
1627
|
key: "setValue",
|
|
@@ -1624,7 +1630,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1624
1630
|
for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
|
|
1625
1631
|
args[_key18] = arguments[_key18];
|
|
1626
1632
|
}
|
|
1627
|
-
return (_Handsontable$editors18 =
|
|
1633
|
+
return (_Handsontable$editors18 = Handsontable__default["default"].editors.BaseEditor.prototype.setValue).call.apply(_Handsontable$editors18, [this.hotCustomEditorInstance].concat(args));
|
|
1628
1634
|
}
|
|
1629
1635
|
}, {
|
|
1630
1636
|
key: "addHook",
|
|
@@ -1633,7 +1639,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1633
1639
|
for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
|
|
1634
1640
|
args[_key19] = arguments[_key19];
|
|
1635
1641
|
}
|
|
1636
|
-
return (_Handsontable$editors19 =
|
|
1642
|
+
return (_Handsontable$editors19 = Handsontable__default["default"].editors.BaseEditor.prototype.addHook).call.apply(_Handsontable$editors19, [this.hotCustomEditorInstance].concat(args));
|
|
1637
1643
|
}
|
|
1638
1644
|
}, {
|
|
1639
1645
|
key: "removeHooksByKey",
|
|
@@ -1642,7 +1648,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1642
1648
|
for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
|
|
1643
1649
|
args[_key20] = arguments[_key20];
|
|
1644
1650
|
}
|
|
1645
|
-
return (_Handsontable$editors20 =
|
|
1651
|
+
return (_Handsontable$editors20 = Handsontable__default["default"].editors.BaseEditor.prototype.removeHooksByKey).call.apply(_Handsontable$editors20, [this.hotCustomEditorInstance].concat(args));
|
|
1646
1652
|
}
|
|
1647
1653
|
}, {
|
|
1648
1654
|
key: "clearHooks",
|
|
@@ -1651,7 +1657,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1651
1657
|
for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
|
|
1652
1658
|
args[_key21] = arguments[_key21];
|
|
1653
1659
|
}
|
|
1654
|
-
return (_Handsontable$editors21 =
|
|
1660
|
+
return (_Handsontable$editors21 = Handsontable__default["default"].editors.BaseEditor.prototype.clearHooks).call.apply(_Handsontable$editors21, [this.hotCustomEditorInstance].concat(args));
|
|
1655
1661
|
}
|
|
1656
1662
|
}, {
|
|
1657
1663
|
key: "getEditedCell",
|
|
@@ -1660,7 +1666,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1660
1666
|
for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
|
|
1661
1667
|
args[_key22] = arguments[_key22];
|
|
1662
1668
|
}
|
|
1663
|
-
return (_Handsontable$editors22 =
|
|
1669
|
+
return (_Handsontable$editors22 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors22, [this.hotCustomEditorInstance].concat(args));
|
|
1664
1670
|
}
|
|
1665
1671
|
}, {
|
|
1666
1672
|
key: "getEditedCellRect",
|
|
@@ -1669,7 +1675,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1669
1675
|
for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
|
|
1670
1676
|
args[_key23] = arguments[_key23];
|
|
1671
1677
|
}
|
|
1672
|
-
return (_Handsontable$editors23 =
|
|
1678
|
+
return (_Handsontable$editors23 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellRect).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
|
|
1673
1679
|
}
|
|
1674
1680
|
}, {
|
|
1675
1681
|
key: "getEditedCellsZIndex",
|
|
@@ -1678,16 +1684,16 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1678
1684
|
for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
|
|
1679
1685
|
args[_key24] = arguments[_key24];
|
|
1680
1686
|
}
|
|
1681
|
-
return (_Handsontable$editors24 =
|
|
1687
|
+
return (_Handsontable$editors24 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors24, [this.hotCustomEditorInstance].concat(args));
|
|
1682
1688
|
}
|
|
1683
1689
|
}]);
|
|
1684
|
-
}(
|
|
1690
|
+
}(React__default["default"].Component);
|
|
1685
1691
|
|
|
1686
1692
|
exports.BaseEditorComponent = BaseEditorComponent;
|
|
1687
1693
|
exports.HotColumn = HotColumn;
|
|
1688
1694
|
exports.HotTable = HotTable;
|
|
1689
1695
|
exports.HotTableClass = HotTableClass;
|
|
1690
|
-
exports
|
|
1696
|
+
exports["default"] = HotTable;
|
|
1691
1697
|
|
|
1692
1698
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1693
1699
|
|