@handsontable/react 14.2.0 → 14.3.0-next-13fe676-20240409
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.
- package/README.md +1 -1
- package/commonjs/react-handsontable.js +68 -78
- package/dist/react-handsontable.js +69 -79
- package/dist/react-handsontable.js.map +1 -1
- package/dist/react-handsontable.min.js +2 -2
- package/dist/react-handsontable.min.js.map +1 -1
- package/es/react-handsontable.mjs +20 -24
- package/package.json +8 -9
package/README.md
CHANGED
|
@@ -8,12 +8,6 @@ var Handsontable = require('handsontable/base');
|
|
|
8
8
|
var registry$1 = require('handsontable/renderers/registry');
|
|
9
9
|
var registry = require('handsontable/editors/registry');
|
|
10
10
|
|
|
11
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
-
|
|
13
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
15
|
-
var Handsontable__default = /*#__PURE__*/_interopDefaultLegacy(Handsontable);
|
|
16
|
-
|
|
17
11
|
function _callSuper(t, o, e) {
|
|
18
12
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
19
13
|
}
|
|
@@ -58,7 +52,7 @@ function _toPrimitive(t, r) {
|
|
|
58
52
|
}
|
|
59
53
|
function _toPropertyKey(t) {
|
|
60
54
|
var i = _toPrimitive(t, "string");
|
|
61
|
-
return "symbol" == typeof i ? i :
|
|
55
|
+
return "symbol" == typeof i ? i : i + "";
|
|
62
56
|
}
|
|
63
57
|
function _typeof(o) {
|
|
64
58
|
"@babel/helpers - typeof";
|
|
@@ -237,8 +231,8 @@ function warn() {
|
|
|
237
231
|
* @returns {Object|null} A child (React node) or `null`, if no child of that type was found.
|
|
238
232
|
*/
|
|
239
233
|
function getChildElementByType(children, type) {
|
|
240
|
-
var childrenArray =
|
|
241
|
-
var childrenCount =
|
|
234
|
+
var childrenArray = React.Children.toArray(children);
|
|
235
|
+
var childrenCount = React.Children.count(children);
|
|
242
236
|
var wantedChild = null;
|
|
243
237
|
if (childrenCount !== 0) {
|
|
244
238
|
if (childrenCount === 1 && childrenArray[0].props[type]) {
|
|
@@ -276,7 +270,7 @@ function createEditorPortal(doc, editorElement) {
|
|
|
276
270
|
}
|
|
277
271
|
var containerProps = getContainerAttributesProps(editorElement.props, false);
|
|
278
272
|
containerProps.className = "".concat(DEFAULT_CLASSNAME, " ").concat(containerProps.className);
|
|
279
|
-
return
|
|
273
|
+
return ReactDOM.createPortal(React.createElement("div", Object.assign({}, containerProps), editorElement), doc.body);
|
|
280
274
|
}
|
|
281
275
|
/**
|
|
282
276
|
* Get an editor element extended with an instance-emitting method.
|
|
@@ -294,7 +288,7 @@ function getExtendedEditorElement(children, editorCache) {
|
|
|
294
288
|
if (!editorElement) {
|
|
295
289
|
return null;
|
|
296
290
|
}
|
|
297
|
-
return
|
|
291
|
+
return React.cloneElement(editorElement, {
|
|
298
292
|
emitEditorInstance: function emitEditorInstance(editorInstance, editorColumnScope) {
|
|
299
293
|
if (!editorCache.get(editorClass)) {
|
|
300
294
|
editorCache.set(editorClass, new Map());
|
|
@@ -328,11 +322,11 @@ function createPortal(rElement, props) {
|
|
|
328
322
|
}
|
|
329
323
|
var portalContainer = cachedContainer !== null && cachedContainer !== void 0 ? cachedContainer : ownerDocument.createElement('DIV');
|
|
330
324
|
bulkComponentContainer.appendChild(portalContainer);
|
|
331
|
-
var extendedRendererElement =
|
|
325
|
+
var extendedRendererElement = React.cloneElement(rElement, _objectSpread2({
|
|
332
326
|
key: "".concat(props.row, "-").concat(props.col)
|
|
333
327
|
}, props));
|
|
334
328
|
return {
|
|
335
|
-
portal:
|
|
329
|
+
portal: ReactDOM.createPortal(extendedRendererElement, portalContainer, portalKey),
|
|
336
330
|
portalContainer: portalContainer
|
|
337
331
|
};
|
|
338
332
|
}
|
|
@@ -366,7 +360,7 @@ var SettingsMapper = /*#__PURE__*/function () {
|
|
|
366
360
|
function SettingsMapper() {
|
|
367
361
|
_classCallCheck(this, SettingsMapper);
|
|
368
362
|
}
|
|
369
|
-
_createClass(SettingsMapper, null, [{
|
|
363
|
+
return _createClass(SettingsMapper, null, [{
|
|
370
364
|
key: "getSettings",
|
|
371
365
|
value:
|
|
372
366
|
/**
|
|
@@ -393,16 +387,15 @@ var SettingsMapper = /*#__PURE__*/function () {
|
|
|
393
387
|
return newSettings;
|
|
394
388
|
}
|
|
395
389
|
}]);
|
|
396
|
-
return SettingsMapper;
|
|
397
390
|
}();
|
|
398
391
|
|
|
399
392
|
var HotColumn = /*#__PURE__*/function (_React$Component) {
|
|
400
|
-
_inherits(HotColumn, _React$Component);
|
|
401
393
|
function HotColumn() {
|
|
402
394
|
_classCallCheck(this, HotColumn);
|
|
403
395
|
return _callSuper(this, HotColumn, arguments);
|
|
404
396
|
}
|
|
405
|
-
|
|
397
|
+
_inherits(HotColumn, _React$Component);
|
|
398
|
+
return _createClass(HotColumn, [{
|
|
406
399
|
key: "getSettingsProps",
|
|
407
400
|
value:
|
|
408
401
|
/**
|
|
@@ -488,17 +481,15 @@ var HotColumn = /*#__PURE__*/function (_React$Component) {
|
|
|
488
481
|
value: function render() {
|
|
489
482
|
var ownerDocument = this.props._getOwnerDocument();
|
|
490
483
|
var editorPortal = createEditorPortal(ownerDocument, this.getLocalEditorElement());
|
|
491
|
-
return
|
|
484
|
+
return React.createElement(React.Fragment, null, editorPortal);
|
|
492
485
|
}
|
|
493
486
|
}]);
|
|
494
|
-
|
|
495
|
-
}(React__default["default"].Component);
|
|
487
|
+
}(React.Component);
|
|
496
488
|
|
|
497
489
|
/**
|
|
498
490
|
* Component class used to manage the renderer component portals.
|
|
499
491
|
*/
|
|
500
492
|
var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
501
|
-
_inherits(RenderersPortalManager, _React$Component);
|
|
502
493
|
function RenderersPortalManager() {
|
|
503
494
|
var _this;
|
|
504
495
|
_classCallCheck(this, RenderersPortalManager);
|
|
@@ -508,16 +499,16 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
508
499
|
};
|
|
509
500
|
return _this;
|
|
510
501
|
}
|
|
511
|
-
|
|
502
|
+
_inherits(RenderersPortalManager, _React$Component);
|
|
503
|
+
return _createClass(RenderersPortalManager, [{
|
|
512
504
|
key: "render",
|
|
513
505
|
value: function render() {
|
|
514
|
-
return
|
|
506
|
+
return React.createElement(React.Fragment, null, this.state.portals);
|
|
515
507
|
}
|
|
516
508
|
}]);
|
|
517
|
-
|
|
518
|
-
}(React__default["default"].Component);
|
|
509
|
+
}(React.Component);
|
|
519
510
|
|
|
520
|
-
var version="14.
|
|
511
|
+
var version="14.3.0-next-13fe676-20240409";
|
|
521
512
|
|
|
522
513
|
function createCommonjsModule(fn, module) {
|
|
523
514
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
@@ -531,6 +522,7 @@ function createCommonjsModule(fn, module) {
|
|
|
531
522
|
* This source code is licensed under the MIT license found in the
|
|
532
523
|
* LICENSE file in the root directory of this source tree.
|
|
533
524
|
*/
|
|
525
|
+
|
|
534
526
|
var b = "function" === typeof Symbol && Symbol["for"],
|
|
535
527
|
c = b ? Symbol["for"]("react.element") : 60103,
|
|
536
528
|
d = b ? Symbol["for"]("react.portal") : 60106,
|
|
@@ -871,6 +863,7 @@ object-assign
|
|
|
871
863
|
@license MIT
|
|
872
864
|
*/
|
|
873
865
|
|
|
866
|
+
|
|
874
867
|
/* eslint-disable no-unused-vars */
|
|
875
868
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
876
869
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -952,6 +945,7 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
952
945
|
* LICENSE file in the root directory of this source tree.
|
|
953
946
|
*/
|
|
954
947
|
|
|
948
|
+
|
|
955
949
|
var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
956
950
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
957
951
|
|
|
@@ -1636,7 +1630,6 @@ var propTypes = createCommonjsModule(function (module) {
|
|
|
1636
1630
|
module.exports = factoryWithThrowingShims();
|
|
1637
1631
|
}
|
|
1638
1632
|
});
|
|
1639
|
-
var PropTypes = propTypes;
|
|
1640
1633
|
|
|
1641
1634
|
/**
|
|
1642
1635
|
* A Handsontable-ReactJS wrapper.
|
|
@@ -1661,7 +1654,6 @@ var PropTypes = propTypes;
|
|
|
1661
1654
|
* @class HotTableCB
|
|
1662
1655
|
*/
|
|
1663
1656
|
var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
1664
|
-
_inherits(HotTableClass, _React$Component);
|
|
1665
1657
|
function HotTableClass() {
|
|
1666
1658
|
var _this;
|
|
1667
1659
|
_classCallCheck(this, HotTableClass);
|
|
@@ -1738,7 +1730,8 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1738
1730
|
*
|
|
1739
1731
|
* @returns The version number of the package.
|
|
1740
1732
|
*/
|
|
1741
|
-
|
|
1733
|
+
_inherits(HotTableClass, _React$Component);
|
|
1734
|
+
return _createClass(HotTableClass, [{
|
|
1742
1735
|
key: "hotInstance",
|
|
1743
1736
|
get:
|
|
1744
1737
|
/**
|
|
@@ -1900,16 +1893,16 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1900
1893
|
key: "makeEditorClass",
|
|
1901
1894
|
value: function makeEditorClass(editorComponent) {
|
|
1902
1895
|
var customEditorClass = /*#__PURE__*/function (_Handsontable$editors) {
|
|
1903
|
-
_inherits(CustomEditor, _Handsontable$editors);
|
|
1904
1896
|
function CustomEditor(hotInstance) {
|
|
1905
1897
|
var _this2;
|
|
1906
1898
|
_classCallCheck(this, CustomEditor);
|
|
1907
1899
|
_this2 = _callSuper(this, CustomEditor, [hotInstance]);
|
|
1908
|
-
editorComponent.hotCustomEditorInstance =
|
|
1900
|
+
editorComponent.hotCustomEditorInstance = _this2;
|
|
1909
1901
|
_this2.editorComponent = editorComponent;
|
|
1910
1902
|
return _this2;
|
|
1911
1903
|
}
|
|
1912
|
-
|
|
1904
|
+
_inherits(CustomEditor, _Handsontable$editors);
|
|
1905
|
+
return _createClass(CustomEditor, [{
|
|
1913
1906
|
key: "focus",
|
|
1914
1907
|
value: function focus() {}
|
|
1915
1908
|
}, {
|
|
@@ -1925,10 +1918,9 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1925
1918
|
key: "close",
|
|
1926
1919
|
value: function close() {}
|
|
1927
1920
|
}]);
|
|
1928
|
-
|
|
1929
|
-
}(Handsontable__default["default"].editors.BaseEditor);
|
|
1921
|
+
}(Handsontable.editors.BaseEditor);
|
|
1930
1922
|
// Fill with the rest of the BaseEditor methods
|
|
1931
|
-
Object.getOwnPropertyNames(
|
|
1923
|
+
Object.getOwnPropertyNames(Handsontable.editors.BaseEditor.prototype).forEach(function (propName) {
|
|
1932
1924
|
if (propName === 'constructor') {
|
|
1933
1925
|
return;
|
|
1934
1926
|
}
|
|
@@ -2078,7 +2070,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
2078
2070
|
value: function componentDidMount() {
|
|
2079
2071
|
var _this3 = this;
|
|
2080
2072
|
var newGlobalSettings = this.createNewGlobalSettings();
|
|
2081
|
-
this.hotInstance = new
|
|
2073
|
+
this.hotInstance = new Handsontable.Core(this.hotElementRef, newGlobalSettings);
|
|
2082
2074
|
this.hotInstance.addHook('beforeViewRender', function () {
|
|
2083
2075
|
return _this3.handsontableBeforeViewRender();
|
|
2084
2076
|
});
|
|
@@ -2121,12 +2113,12 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
2121
2113
|
var isHotColumn = function isHotColumn(childNode) {
|
|
2122
2114
|
return childNode.type === HotColumn;
|
|
2123
2115
|
};
|
|
2124
|
-
var children =
|
|
2116
|
+
var children = React.Children.toArray(this.props.children);
|
|
2125
2117
|
// clone the HotColumn nodes and extend them with the callbacks
|
|
2126
2118
|
var hotColumnClones = children.filter(function (childNode) {
|
|
2127
2119
|
return isHotColumn(childNode);
|
|
2128
2120
|
}).map(function (childNode, columnIndex) {
|
|
2129
|
-
return
|
|
2121
|
+
return React.cloneElement(childNode, {
|
|
2130
2122
|
_componentRendererColumns: _this4.componentRendererColumns,
|
|
2131
2123
|
_emitColumnSettings: _this4.setHotColumnSettings.bind(_this4),
|
|
2132
2124
|
_columnIndex: columnIndex,
|
|
@@ -2140,9 +2132,9 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
2140
2132
|
});
|
|
2141
2133
|
var containerProps = getContainerAttributesProps(this.props);
|
|
2142
2134
|
var editorPortal = createEditorPortal(this.getOwnerDocument(), this.getGlobalEditorElement());
|
|
2143
|
-
return
|
|
2135
|
+
return React.createElement(React.Fragment, null, React.createElement("div", Object.assign({
|
|
2144
2136
|
ref: this.setHotElementRef.bind(this)
|
|
2145
|
-
}, containerProps), hotColumnClones),
|
|
2137
|
+
}, containerProps), hotColumnClones), React.createElement(RenderersPortalManager, {
|
|
2146
2138
|
ref: this.setRenderersPortalManagerRef.bind(this)
|
|
2147
2139
|
}), editorPortal);
|
|
2148
2140
|
}
|
|
@@ -2152,26 +2144,25 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
2152
2144
|
return version;
|
|
2153
2145
|
}
|
|
2154
2146
|
}]);
|
|
2155
|
-
|
|
2156
|
-
}(React__default["default"].Component);
|
|
2147
|
+
}(React.Component);
|
|
2157
2148
|
/**
|
|
2158
2149
|
* Prop types to be checked at runtime.
|
|
2159
2150
|
*/
|
|
2160
2151
|
HotTableClass.propTypes = {
|
|
2161
|
-
style:
|
|
2162
|
-
id:
|
|
2163
|
-
className:
|
|
2152
|
+
style: propTypes.object,
|
|
2153
|
+
id: propTypes.string,
|
|
2154
|
+
className: propTypes.string
|
|
2164
2155
|
};
|
|
2165
2156
|
|
|
2166
2157
|
var _excluded = ["children"];
|
|
2167
2158
|
// Use global React variable for `forwardRef` access (React 16 support)
|
|
2168
|
-
var HotTable =
|
|
2159
|
+
var HotTable = React.forwardRef(function (_ref, ref) {
|
|
2169
2160
|
var _props$id;
|
|
2170
2161
|
var children = _ref.children,
|
|
2171
2162
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
2172
|
-
var generatedId = typeof
|
|
2163
|
+
var generatedId = typeof React.useId === 'function' ? React.useId() : undefined;
|
|
2173
2164
|
var componentId = (_props$id = props.id) !== null && _props$id !== void 0 ? _props$id : generatedId;
|
|
2174
|
-
return
|
|
2165
|
+
return React.createElement(HotTableClass, Object.assign({
|
|
2175
2166
|
id: componentId
|
|
2176
2167
|
}, props, {
|
|
2177
2168
|
ref: ref
|
|
@@ -2180,7 +2171,6 @@ var HotTable = React__default["default"].forwardRef(function (_ref, ref) {
|
|
|
2180
2171
|
HotTable.version = HotTableClass.version;
|
|
2181
2172
|
|
|
2182
2173
|
var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
2183
|
-
_inherits(BaseEditorComponent, _React$Component);
|
|
2184
2174
|
function BaseEditorComponent() {
|
|
2185
2175
|
var _this;
|
|
2186
2176
|
_classCallCheck(this, BaseEditorComponent);
|
|
@@ -2199,7 +2189,8 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2199
2189
|
_this.hot = null;
|
|
2200
2190
|
return _this;
|
|
2201
2191
|
}
|
|
2202
|
-
|
|
2192
|
+
_inherits(BaseEditorComponent, _React$Component);
|
|
2193
|
+
return _createClass(BaseEditorComponent, [{
|
|
2203
2194
|
key: "componentDidMount",
|
|
2204
2195
|
value: function componentDidMount() {
|
|
2205
2196
|
if (this.props.emitEditorInstance) {
|
|
@@ -2221,7 +2212,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2221
2212
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2222
2213
|
args[_key] = arguments[_key];
|
|
2223
2214
|
}
|
|
2224
|
-
(_Handsontable$editors =
|
|
2215
|
+
(_Handsontable$editors = Handsontable.editors.BaseEditor.prototype._fireCallbacks).call.apply(_Handsontable$editors, [this.hotCustomEditorInstance].concat(args));
|
|
2225
2216
|
}
|
|
2226
2217
|
}, {
|
|
2227
2218
|
key: "beginEditing",
|
|
@@ -2230,7 +2221,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2230
2221
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
2231
2222
|
args[_key2] = arguments[_key2];
|
|
2232
2223
|
}
|
|
2233
|
-
return (_Handsontable$editors2 =
|
|
2224
|
+
return (_Handsontable$editors2 = Handsontable.editors.BaseEditor.prototype.beginEditing).call.apply(_Handsontable$editors2, [this.hotCustomEditorInstance].concat(args));
|
|
2234
2225
|
}
|
|
2235
2226
|
}, {
|
|
2236
2227
|
key: "cancelChanges",
|
|
@@ -2239,7 +2230,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2239
2230
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
2240
2231
|
args[_key3] = arguments[_key3];
|
|
2241
2232
|
}
|
|
2242
|
-
return (_Handsontable$editors3 =
|
|
2233
|
+
return (_Handsontable$editors3 = Handsontable.editors.BaseEditor.prototype.cancelChanges).call.apply(_Handsontable$editors3, [this.hotCustomEditorInstance].concat(args));
|
|
2243
2234
|
}
|
|
2244
2235
|
}, {
|
|
2245
2236
|
key: "checkEditorSection",
|
|
@@ -2248,7 +2239,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2248
2239
|
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
2249
2240
|
args[_key4] = arguments[_key4];
|
|
2250
2241
|
}
|
|
2251
|
-
return (_Handsontable$editors4 =
|
|
2242
|
+
return (_Handsontable$editors4 = Handsontable.editors.BaseEditor.prototype.checkEditorSection).call.apply(_Handsontable$editors4, [this.hotCustomEditorInstance].concat(args));
|
|
2252
2243
|
}
|
|
2253
2244
|
}, {
|
|
2254
2245
|
key: "close",
|
|
@@ -2257,7 +2248,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2257
2248
|
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
2258
2249
|
args[_key5] = arguments[_key5];
|
|
2259
2250
|
}
|
|
2260
|
-
return (_Handsontable$editors5 =
|
|
2251
|
+
return (_Handsontable$editors5 = Handsontable.editors.BaseEditor.prototype.close).call.apply(_Handsontable$editors5, [this.hotCustomEditorInstance].concat(args));
|
|
2261
2252
|
}
|
|
2262
2253
|
}, {
|
|
2263
2254
|
key: "discardEditor",
|
|
@@ -2266,7 +2257,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2266
2257
|
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
2267
2258
|
args[_key6] = arguments[_key6];
|
|
2268
2259
|
}
|
|
2269
|
-
return (_Handsontable$editors6 =
|
|
2260
|
+
return (_Handsontable$editors6 = Handsontable.editors.BaseEditor.prototype.discardEditor).call.apply(_Handsontable$editors6, [this.hotCustomEditorInstance].concat(args));
|
|
2270
2261
|
}
|
|
2271
2262
|
}, {
|
|
2272
2263
|
key: "enableFullEditMode",
|
|
@@ -2275,7 +2266,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2275
2266
|
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
|
2276
2267
|
args[_key7] = arguments[_key7];
|
|
2277
2268
|
}
|
|
2278
|
-
return (_Handsontable$editors7 =
|
|
2269
|
+
return (_Handsontable$editors7 = Handsontable.editors.BaseEditor.prototype.enableFullEditMode).call.apply(_Handsontable$editors7, [this.hotCustomEditorInstance].concat(args));
|
|
2279
2270
|
}
|
|
2280
2271
|
}, {
|
|
2281
2272
|
key: "extend",
|
|
@@ -2284,7 +2275,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2284
2275
|
for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
|
|
2285
2276
|
args[_key8] = arguments[_key8];
|
|
2286
2277
|
}
|
|
2287
|
-
return (_Handsontable$editors8 =
|
|
2278
|
+
return (_Handsontable$editors8 = Handsontable.editors.BaseEditor.prototype.extend).call.apply(_Handsontable$editors8, [this.hotCustomEditorInstance].concat(args));
|
|
2288
2279
|
}
|
|
2289
2280
|
}, {
|
|
2290
2281
|
key: "finishEditing",
|
|
@@ -2293,7 +2284,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2293
2284
|
for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
|
|
2294
2285
|
args[_key9] = arguments[_key9];
|
|
2295
2286
|
}
|
|
2296
|
-
return (_Handsontable$editors9 =
|
|
2287
|
+
return (_Handsontable$editors9 = Handsontable.editors.BaseEditor.prototype.finishEditing).call.apply(_Handsontable$editors9, [this.hotCustomEditorInstance].concat(args));
|
|
2297
2288
|
}
|
|
2298
2289
|
}, {
|
|
2299
2290
|
key: "focus",
|
|
@@ -2302,7 +2293,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2302
2293
|
for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
|
|
2303
2294
|
args[_key10] = arguments[_key10];
|
|
2304
2295
|
}
|
|
2305
|
-
return (_Handsontable$editors10 =
|
|
2296
|
+
return (_Handsontable$editors10 = Handsontable.editors.BaseEditor.prototype.focus).call.apply(_Handsontable$editors10, [this.hotCustomEditorInstance].concat(args));
|
|
2306
2297
|
}
|
|
2307
2298
|
}, {
|
|
2308
2299
|
key: "getValue",
|
|
@@ -2311,7 +2302,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2311
2302
|
for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
|
|
2312
2303
|
args[_key11] = arguments[_key11];
|
|
2313
2304
|
}
|
|
2314
|
-
return (_Handsontable$editors11 =
|
|
2305
|
+
return (_Handsontable$editors11 = Handsontable.editors.BaseEditor.prototype.getValue).call.apply(_Handsontable$editors11, [this.hotCustomEditorInstance].concat(args));
|
|
2315
2306
|
}
|
|
2316
2307
|
}, {
|
|
2317
2308
|
key: "init",
|
|
@@ -2320,7 +2311,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2320
2311
|
for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
|
|
2321
2312
|
args[_key12] = arguments[_key12];
|
|
2322
2313
|
}
|
|
2323
|
-
return (_Handsontable$editors12 =
|
|
2314
|
+
return (_Handsontable$editors12 = Handsontable.editors.BaseEditor.prototype.init).call.apply(_Handsontable$editors12, [this.hotCustomEditorInstance].concat(args));
|
|
2324
2315
|
}
|
|
2325
2316
|
}, {
|
|
2326
2317
|
key: "isInFullEditMode",
|
|
@@ -2329,7 +2320,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2329
2320
|
for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
|
|
2330
2321
|
args[_key13] = arguments[_key13];
|
|
2331
2322
|
}
|
|
2332
|
-
return (_Handsontable$editors13 =
|
|
2323
|
+
return (_Handsontable$editors13 = Handsontable.editors.BaseEditor.prototype.isInFullEditMode).call.apply(_Handsontable$editors13, [this.hotCustomEditorInstance].concat(args));
|
|
2333
2324
|
}
|
|
2334
2325
|
}, {
|
|
2335
2326
|
key: "isOpened",
|
|
@@ -2338,7 +2329,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2338
2329
|
for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
|
|
2339
2330
|
args[_key14] = arguments[_key14];
|
|
2340
2331
|
}
|
|
2341
|
-
return (_Handsontable$editors14 =
|
|
2332
|
+
return (_Handsontable$editors14 = Handsontable.editors.BaseEditor.prototype.isOpened).call.apply(_Handsontable$editors14, [this.hotCustomEditorInstance].concat(args));
|
|
2342
2333
|
}
|
|
2343
2334
|
}, {
|
|
2344
2335
|
key: "isWaiting",
|
|
@@ -2347,7 +2338,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2347
2338
|
for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
|
|
2348
2339
|
args[_key15] = arguments[_key15];
|
|
2349
2340
|
}
|
|
2350
|
-
return (_Handsontable$editors15 =
|
|
2341
|
+
return (_Handsontable$editors15 = Handsontable.editors.BaseEditor.prototype.isWaiting).call.apply(_Handsontable$editors15, [this.hotCustomEditorInstance].concat(args));
|
|
2351
2342
|
}
|
|
2352
2343
|
}, {
|
|
2353
2344
|
key: "open",
|
|
@@ -2356,7 +2347,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2356
2347
|
for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
|
|
2357
2348
|
args[_key16] = arguments[_key16];
|
|
2358
2349
|
}
|
|
2359
|
-
return (_Handsontable$editors16 =
|
|
2350
|
+
return (_Handsontable$editors16 = Handsontable.editors.BaseEditor.prototype.open).call.apply(_Handsontable$editors16, [this.hotCustomEditorInstance].concat(args));
|
|
2360
2351
|
}
|
|
2361
2352
|
}, {
|
|
2362
2353
|
key: "prepare",
|
|
@@ -2368,7 +2359,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2368
2359
|
this.TD = TD;
|
|
2369
2360
|
this.originalValue = originalValue;
|
|
2370
2361
|
this.cellProperties = cellProperties;
|
|
2371
|
-
return
|
|
2362
|
+
return Handsontable.editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance, row, col, prop, TD, originalValue, cellProperties);
|
|
2372
2363
|
}
|
|
2373
2364
|
}, {
|
|
2374
2365
|
key: "saveValue",
|
|
@@ -2377,7 +2368,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2377
2368
|
for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
|
|
2378
2369
|
args[_key17] = arguments[_key17];
|
|
2379
2370
|
}
|
|
2380
|
-
return (_Handsontable$editors17 =
|
|
2371
|
+
return (_Handsontable$editors17 = Handsontable.editors.BaseEditor.prototype.saveValue).call.apply(_Handsontable$editors17, [this.hotCustomEditorInstance].concat(args));
|
|
2381
2372
|
}
|
|
2382
2373
|
}, {
|
|
2383
2374
|
key: "setValue",
|
|
@@ -2386,7 +2377,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2386
2377
|
for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
|
|
2387
2378
|
args[_key18] = arguments[_key18];
|
|
2388
2379
|
}
|
|
2389
|
-
return (_Handsontable$editors18 =
|
|
2380
|
+
return (_Handsontable$editors18 = Handsontable.editors.BaseEditor.prototype.setValue).call.apply(_Handsontable$editors18, [this.hotCustomEditorInstance].concat(args));
|
|
2390
2381
|
}
|
|
2391
2382
|
}, {
|
|
2392
2383
|
key: "addHook",
|
|
@@ -2395,7 +2386,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2395
2386
|
for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
|
|
2396
2387
|
args[_key19] = arguments[_key19];
|
|
2397
2388
|
}
|
|
2398
|
-
return (_Handsontable$editors19 =
|
|
2389
|
+
return (_Handsontable$editors19 = Handsontable.editors.BaseEditor.prototype.addHook).call.apply(_Handsontable$editors19, [this.hotCustomEditorInstance].concat(args));
|
|
2399
2390
|
}
|
|
2400
2391
|
}, {
|
|
2401
2392
|
key: "removeHooksByKey",
|
|
@@ -2404,7 +2395,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2404
2395
|
for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
|
|
2405
2396
|
args[_key20] = arguments[_key20];
|
|
2406
2397
|
}
|
|
2407
|
-
return (_Handsontable$editors20 =
|
|
2398
|
+
return (_Handsontable$editors20 = Handsontable.editors.BaseEditor.prototype.removeHooksByKey).call.apply(_Handsontable$editors20, [this.hotCustomEditorInstance].concat(args));
|
|
2408
2399
|
}
|
|
2409
2400
|
}, {
|
|
2410
2401
|
key: "clearHooks",
|
|
@@ -2413,7 +2404,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2413
2404
|
for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
|
|
2414
2405
|
args[_key21] = arguments[_key21];
|
|
2415
2406
|
}
|
|
2416
|
-
return (_Handsontable$editors21 =
|
|
2407
|
+
return (_Handsontable$editors21 = Handsontable.editors.BaseEditor.prototype.clearHooks).call.apply(_Handsontable$editors21, [this.hotCustomEditorInstance].concat(args));
|
|
2417
2408
|
}
|
|
2418
2409
|
}, {
|
|
2419
2410
|
key: "getEditedCell",
|
|
@@ -2422,7 +2413,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2422
2413
|
for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
|
|
2423
2414
|
args[_key22] = arguments[_key22];
|
|
2424
2415
|
}
|
|
2425
|
-
return (_Handsontable$editors22 =
|
|
2416
|
+
return (_Handsontable$editors22 = Handsontable.editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors22, [this.hotCustomEditorInstance].concat(args));
|
|
2426
2417
|
}
|
|
2427
2418
|
}, {
|
|
2428
2419
|
key: "getEditedCellRect",
|
|
@@ -2431,7 +2422,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2431
2422
|
for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
|
|
2432
2423
|
args[_key23] = arguments[_key23];
|
|
2433
2424
|
}
|
|
2434
|
-
return (_Handsontable$editors23 =
|
|
2425
|
+
return (_Handsontable$editors23 = Handsontable.editors.BaseEditor.prototype.getEditedCellRect).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
|
|
2435
2426
|
}
|
|
2436
2427
|
}, {
|
|
2437
2428
|
key: "getEditedCellsZIndex",
|
|
@@ -2440,14 +2431,13 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
2440
2431
|
for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
|
|
2441
2432
|
args[_key24] = arguments[_key24];
|
|
2442
2433
|
}
|
|
2443
|
-
return (_Handsontable$editors24 =
|
|
2434
|
+
return (_Handsontable$editors24 = Handsontable.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors24, [this.hotCustomEditorInstance].concat(args));
|
|
2444
2435
|
}
|
|
2445
2436
|
}]);
|
|
2446
|
-
|
|
2447
|
-
}(React__default["default"].Component);
|
|
2437
|
+
}(React.Component);
|
|
2448
2438
|
|
|
2449
2439
|
exports.BaseEditorComponent = BaseEditorComponent;
|
|
2450
2440
|
exports.HotColumn = HotColumn;
|
|
2451
2441
|
exports.HotTable = HotTable;
|
|
2452
2442
|
exports.HotTableClass = HotTableClass;
|
|
2453
|
-
exports
|
|
2443
|
+
exports.default = HotTable;
|