@handsontable/react 0.0.0-next-250dc75-20231218 → 0.0.0-next-92e91fa-20231219
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/commonjs/react-handsontable.js +32 -84
- package/dist/react-handsontable.js +33 -85
- 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 +32 -84
- package/helpers.d.ts +1 -7
- package/hotTable.d.ts +234 -7
- package/package.json +10 -11
- package/hotTableClass.d.ts +0 -237
|
@@ -33,20 +33,6 @@ function _objectSpread2(e) {
|
|
|
33
33
|
}
|
|
34
34
|
return e;
|
|
35
35
|
}
|
|
36
|
-
function _toPrimitive(t, r) {
|
|
37
|
-
if ("object" != typeof t || !t) return t;
|
|
38
|
-
var e = t[Symbol.toPrimitive];
|
|
39
|
-
if (void 0 !== e) {
|
|
40
|
-
var i = e.call(t, r || "default");
|
|
41
|
-
if ("object" != typeof i) return i;
|
|
42
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
43
|
-
}
|
|
44
|
-
return ("string" === r ? String : Number)(t);
|
|
45
|
-
}
|
|
46
|
-
function _toPropertyKey(t) {
|
|
47
|
-
var i = _toPrimitive(t, "string");
|
|
48
|
-
return "symbol" == typeof i ? i : String(i);
|
|
49
|
-
}
|
|
50
36
|
function _typeof(o) {
|
|
51
37
|
"@babel/helpers - typeof";
|
|
52
38
|
|
|
@@ -132,33 +118,6 @@ function _isNativeReflectConstruct() {
|
|
|
132
118
|
return false;
|
|
133
119
|
}
|
|
134
120
|
}
|
|
135
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
136
|
-
if (source == null) return {};
|
|
137
|
-
var target = {};
|
|
138
|
-
var sourceKeys = Object.keys(source);
|
|
139
|
-
var key, i;
|
|
140
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
141
|
-
key = sourceKeys[i];
|
|
142
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
143
|
-
target[key] = source[key];
|
|
144
|
-
}
|
|
145
|
-
return target;
|
|
146
|
-
}
|
|
147
|
-
function _objectWithoutProperties(source, excluded) {
|
|
148
|
-
if (source == null) return {};
|
|
149
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
150
|
-
var key, i;
|
|
151
|
-
if (Object.getOwnPropertySymbols) {
|
|
152
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
153
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
154
|
-
key = sourceSymbolKeys[i];
|
|
155
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
156
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
157
|
-
target[key] = source[key];
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
return target;
|
|
161
|
-
}
|
|
162
121
|
function _assertThisInitialized(self) {
|
|
163
122
|
if (self === void 0) {
|
|
164
123
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -212,6 +171,20 @@ function _arrayLikeToArray(arr, len) {
|
|
|
212
171
|
function _nonIterableSpread() {
|
|
213
172
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
214
173
|
}
|
|
174
|
+
function _toPrimitive(input, hint) {
|
|
175
|
+
if (typeof input !== "object" || input === null) return input;
|
|
176
|
+
var prim = input[Symbol.toPrimitive];
|
|
177
|
+
if (prim !== undefined) {
|
|
178
|
+
var res = prim.call(input, hint || "default");
|
|
179
|
+
if (typeof res !== "object") return res;
|
|
180
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
181
|
+
}
|
|
182
|
+
return (hint === "string" ? String : Number)(input);
|
|
183
|
+
}
|
|
184
|
+
function _toPropertyKey(arg) {
|
|
185
|
+
var key = _toPrimitive(arg, "string");
|
|
186
|
+
return typeof key === "symbol" ? key : String(key);
|
|
187
|
+
}
|
|
215
188
|
|
|
216
189
|
var bulkComponentContainer = null;
|
|
217
190
|
/**
|
|
@@ -278,12 +251,14 @@ function getOriginalEditorClass(editorElement) {
|
|
|
278
251
|
/**
|
|
279
252
|
* Create an editor portal.
|
|
280
253
|
*
|
|
281
|
-
* @param {Document} doc Document to be used.
|
|
254
|
+
* @param {Document} [doc] Document to be used.
|
|
282
255
|
* @param {React.ReactElement} editorElement Editor's element.
|
|
283
256
|
* @returns {React.ReactPortal} The portal for the editor.
|
|
284
257
|
*/
|
|
285
|
-
function createEditorPortal(
|
|
286
|
-
|
|
258
|
+
function createEditorPortal() {
|
|
259
|
+
var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;
|
|
260
|
+
var editorElement = arguments.length > 1 ? arguments[1] : undefined;
|
|
261
|
+
if (editorElement === null) {
|
|
287
262
|
return null;
|
|
288
263
|
}
|
|
289
264
|
var containerProps = getContainerAttributesProps(editorElement.props, false);
|
|
@@ -356,19 +331,11 @@ function createPortal(rElement, props) {
|
|
|
356
331
|
function getContainerAttributesProps(props) {
|
|
357
332
|
var randomizeId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
358
333
|
return {
|
|
359
|
-
id: props.id || (randomizeId ? 'hot-' + Math.random().toString(36).substring(5) :
|
|
334
|
+
id: props.id || (randomizeId ? 'hot-' + Math.random().toString(36).substring(5) : void 0),
|
|
360
335
|
className: props.className || '',
|
|
361
336
|
style: props.style || {}
|
|
362
337
|
};
|
|
363
338
|
}
|
|
364
|
-
/**
|
|
365
|
-
* Checks if the environment that the code runs in is a browser.
|
|
366
|
-
*
|
|
367
|
-
* @returns {boolean}
|
|
368
|
-
*/
|
|
369
|
-
function isCSR() {
|
|
370
|
-
return typeof window !== 'undefined';
|
|
371
|
-
}
|
|
372
339
|
|
|
373
340
|
var SettingsMapper = /*#__PURE__*/function () {
|
|
374
341
|
function SettingsMapper() {
|
|
@@ -527,7 +494,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
527
494
|
return RenderersPortalManager;
|
|
528
495
|
}(React__default["default"].Component);
|
|
529
496
|
|
|
530
|
-
var version="0.0.0-next-
|
|
497
|
+
var version="0.0.0-next-92e91fa-20231219";
|
|
531
498
|
|
|
532
499
|
function createCommonjsModule(fn, module) {
|
|
533
500
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
@@ -1668,14 +1635,14 @@ var PropTypes = propTypes;
|
|
|
1668
1635
|
*
|
|
1669
1636
|
* ```
|
|
1670
1637
|
*
|
|
1671
|
-
* @class
|
|
1638
|
+
* @class HotTable
|
|
1672
1639
|
*/
|
|
1673
|
-
var
|
|
1674
|
-
_inherits(
|
|
1675
|
-
var _super = _createSuper(
|
|
1676
|
-
function
|
|
1640
|
+
var HotTable = /*#__PURE__*/function (_React$Component) {
|
|
1641
|
+
_inherits(HotTable, _React$Component);
|
|
1642
|
+
var _super = _createSuper(HotTable);
|
|
1643
|
+
function HotTable() {
|
|
1677
1644
|
var _this;
|
|
1678
|
-
_classCallCheck(this,
|
|
1645
|
+
_classCallCheck(this, HotTable);
|
|
1679
1646
|
_this = _super.apply(this, arguments);
|
|
1680
1647
|
/**
|
|
1681
1648
|
* The `id` of the main Handsontable DOM element.
|
|
@@ -1741,7 +1708,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1741
1708
|
*
|
|
1742
1709
|
* @returns The version number of the package.
|
|
1743
1710
|
*/
|
|
1744
|
-
_createClass(
|
|
1711
|
+
_createClass(HotTable, [{
|
|
1745
1712
|
key: "hotInstance",
|
|
1746
1713
|
get:
|
|
1747
1714
|
/**
|
|
@@ -1800,10 +1767,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1800
1767
|
}, {
|
|
1801
1768
|
key: "getOwnerDocument",
|
|
1802
1769
|
value: function getOwnerDocument() {
|
|
1803
|
-
|
|
1804
|
-
return this.hotElementRef ? this.hotElementRef.ownerDocument : document;
|
|
1805
|
-
}
|
|
1806
|
-
return null;
|
|
1770
|
+
return this.hotElementRef ? this.hotElementRef.ownerDocument : document;
|
|
1807
1771
|
}
|
|
1808
1772
|
/**
|
|
1809
1773
|
* Set the reference to the main Handsontable DOM element.
|
|
@@ -2090,6 +2054,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
2090
2054
|
key: "render",
|
|
2091
2055
|
value: function render() {
|
|
2092
2056
|
var _this5 = this;
|
|
2057
|
+
var containerProps = getContainerAttributesProps(this.props);
|
|
2093
2058
|
var isHotColumn = function isHotColumn(childNode) {
|
|
2094
2059
|
return childNode.type === HotColumn;
|
|
2095
2060
|
};
|
|
@@ -2110,7 +2075,6 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
2110
2075
|
children: childNode.props.children
|
|
2111
2076
|
});
|
|
2112
2077
|
});
|
|
2113
|
-
var containerProps = getContainerAttributesProps(this.props);
|
|
2114
2078
|
var editorPortal = createEditorPortal(this.getOwnerDocument(), this.getGlobalEditorElement());
|
|
2115
2079
|
return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement("div", Object.assign({
|
|
2116
2080
|
ref: this.setHotElementRef.bind(this)
|
|
@@ -2124,33 +2088,17 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
2124
2088
|
return version;
|
|
2125
2089
|
}
|
|
2126
2090
|
}]);
|
|
2127
|
-
return
|
|
2091
|
+
return HotTable;
|
|
2128
2092
|
}(React__default["default"].Component);
|
|
2129
2093
|
/**
|
|
2130
2094
|
* Prop types to be checked at runtime.
|
|
2131
2095
|
*/
|
|
2132
|
-
|
|
2096
|
+
HotTable.propTypes = {
|
|
2133
2097
|
style: PropTypes.object,
|
|
2134
2098
|
id: PropTypes.string,
|
|
2135
2099
|
className: PropTypes.string
|
|
2136
2100
|
};
|
|
2137
2101
|
|
|
2138
|
-
var _excluded = ["children"];
|
|
2139
|
-
// Use global React variable for `forwardRef` access (React 16 support)
|
|
2140
|
-
var HotTable = React__default["default"].forwardRef(function (_ref, ref) {
|
|
2141
|
-
var _props$id;
|
|
2142
|
-
var children = _ref.children,
|
|
2143
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
2144
|
-
var generatedId = typeof React__default["default"].useId === 'function' ? React__default["default"].useId() : undefined;
|
|
2145
|
-
var componentId = (_props$id = props.id) !== null && _props$id !== void 0 ? _props$id : generatedId;
|
|
2146
|
-
return React__default["default"].createElement(HotTableClass, Object.assign({
|
|
2147
|
-
id: componentId
|
|
2148
|
-
}, props, {
|
|
2149
|
-
ref: ref
|
|
2150
|
-
}), children);
|
|
2151
|
-
});
|
|
2152
|
-
HotTable.version = HotTableClass.version;
|
|
2153
|
-
|
|
2154
2102
|
var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
2155
2103
|
_inherits(BaseEditorComponent, _React$Component);
|
|
2156
2104
|
var _super = _createSuper(BaseEditorComponent);
|
|
@@ -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-92e91fa-20231219 (built at Tue Dec 19 2023 11:06:48 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')) :
|
|
@@ -60,20 +60,6 @@ function _objectSpread2(e) {
|
|
|
60
60
|
}
|
|
61
61
|
return e;
|
|
62
62
|
}
|
|
63
|
-
function _toPrimitive(t, r) {
|
|
64
|
-
if ("object" != typeof t || !t) return t;
|
|
65
|
-
var e = t[Symbol.toPrimitive];
|
|
66
|
-
if (void 0 !== e) {
|
|
67
|
-
var i = e.call(t, r || "default");
|
|
68
|
-
if ("object" != typeof i) return i;
|
|
69
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
70
|
-
}
|
|
71
|
-
return ("string" === r ? String : Number)(t);
|
|
72
|
-
}
|
|
73
|
-
function _toPropertyKey(t) {
|
|
74
|
-
var i = _toPrimitive(t, "string");
|
|
75
|
-
return "symbol" == typeof i ? i : String(i);
|
|
76
|
-
}
|
|
77
63
|
function _typeof(o) {
|
|
78
64
|
"@babel/helpers - typeof";
|
|
79
65
|
|
|
@@ -159,33 +145,6 @@ function _isNativeReflectConstruct() {
|
|
|
159
145
|
return false;
|
|
160
146
|
}
|
|
161
147
|
}
|
|
162
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
163
|
-
if (source == null) return {};
|
|
164
|
-
var target = {};
|
|
165
|
-
var sourceKeys = Object.keys(source);
|
|
166
|
-
var key, i;
|
|
167
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
168
|
-
key = sourceKeys[i];
|
|
169
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
170
|
-
target[key] = source[key];
|
|
171
|
-
}
|
|
172
|
-
return target;
|
|
173
|
-
}
|
|
174
|
-
function _objectWithoutProperties(source, excluded) {
|
|
175
|
-
if (source == null) return {};
|
|
176
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
177
|
-
var key, i;
|
|
178
|
-
if (Object.getOwnPropertySymbols) {
|
|
179
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
180
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
181
|
-
key = sourceSymbolKeys[i];
|
|
182
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
183
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
184
|
-
target[key] = source[key];
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
return target;
|
|
188
|
-
}
|
|
189
148
|
function _assertThisInitialized(self) {
|
|
190
149
|
if (self === void 0) {
|
|
191
150
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -239,6 +198,20 @@ function _arrayLikeToArray(arr, len) {
|
|
|
239
198
|
function _nonIterableSpread() {
|
|
240
199
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
241
200
|
}
|
|
201
|
+
function _toPrimitive(input, hint) {
|
|
202
|
+
if (typeof input !== "object" || input === null) return input;
|
|
203
|
+
var prim = input[Symbol.toPrimitive];
|
|
204
|
+
if (prim !== undefined) {
|
|
205
|
+
var res = prim.call(input, hint || "default");
|
|
206
|
+
if (typeof res !== "object") return res;
|
|
207
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
208
|
+
}
|
|
209
|
+
return (hint === "string" ? String : Number)(input);
|
|
210
|
+
}
|
|
211
|
+
function _toPropertyKey(arg) {
|
|
212
|
+
var key = _toPrimitive(arg, "string");
|
|
213
|
+
return typeof key === "symbol" ? key : String(key);
|
|
214
|
+
}
|
|
242
215
|
|
|
243
216
|
var bulkComponentContainer = null;
|
|
244
217
|
/**
|
|
@@ -305,12 +278,14 @@ function getOriginalEditorClass(editorElement) {
|
|
|
305
278
|
/**
|
|
306
279
|
* Create an editor portal.
|
|
307
280
|
*
|
|
308
|
-
* @param {Document} doc Document to be used.
|
|
281
|
+
* @param {Document} [doc] Document to be used.
|
|
309
282
|
* @param {React.ReactElement} editorElement Editor's element.
|
|
310
283
|
* @returns {React.ReactPortal} The portal for the editor.
|
|
311
284
|
*/
|
|
312
|
-
function createEditorPortal(
|
|
313
|
-
|
|
285
|
+
function createEditorPortal() {
|
|
286
|
+
var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;
|
|
287
|
+
var editorElement = arguments.length > 1 ? arguments[1] : undefined;
|
|
288
|
+
if (editorElement === null) {
|
|
314
289
|
return null;
|
|
315
290
|
}
|
|
316
291
|
var containerProps = getContainerAttributesProps(editorElement.props, false);
|
|
@@ -383,19 +358,11 @@ function createPortal(rElement, props) {
|
|
|
383
358
|
function getContainerAttributesProps(props) {
|
|
384
359
|
var randomizeId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
385
360
|
return {
|
|
386
|
-
id: props.id || (randomizeId ? 'hot-' + Math.random().toString(36).substring(5) :
|
|
361
|
+
id: props.id || (randomizeId ? 'hot-' + Math.random().toString(36).substring(5) : void 0),
|
|
387
362
|
className: props.className || '',
|
|
388
363
|
style: props.style || {}
|
|
389
364
|
};
|
|
390
365
|
}
|
|
391
|
-
/**
|
|
392
|
-
* Checks if the environment that the code runs in is a browser.
|
|
393
|
-
*
|
|
394
|
-
* @returns {boolean}
|
|
395
|
-
*/
|
|
396
|
-
function isCSR() {
|
|
397
|
-
return typeof window !== 'undefined';
|
|
398
|
-
}
|
|
399
366
|
|
|
400
367
|
var SettingsMapper = /*#__PURE__*/function () {
|
|
401
368
|
function SettingsMapper() {
|
|
@@ -554,7 +521,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
554
521
|
return RenderersPortalManager;
|
|
555
522
|
}(React__default["default"].Component);
|
|
556
523
|
|
|
557
|
-
var version="0.0.0-next-
|
|
524
|
+
var version="0.0.0-next-92e91fa-20231219";
|
|
558
525
|
|
|
559
526
|
function createCommonjsModule(fn, module) {
|
|
560
527
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
@@ -917,14 +884,14 @@ var PropTypes = propTypes;
|
|
|
917
884
|
*
|
|
918
885
|
* ```
|
|
919
886
|
*
|
|
920
|
-
* @class
|
|
887
|
+
* @class HotTable
|
|
921
888
|
*/
|
|
922
|
-
var
|
|
923
|
-
_inherits(
|
|
924
|
-
var _super = _createSuper(
|
|
925
|
-
function
|
|
889
|
+
var HotTable = /*#__PURE__*/function (_React$Component) {
|
|
890
|
+
_inherits(HotTable, _React$Component);
|
|
891
|
+
var _super = _createSuper(HotTable);
|
|
892
|
+
function HotTable() {
|
|
926
893
|
var _this;
|
|
927
|
-
_classCallCheck(this,
|
|
894
|
+
_classCallCheck(this, HotTable);
|
|
928
895
|
_this = _super.apply(this, arguments);
|
|
929
896
|
/**
|
|
930
897
|
* The `id` of the main Handsontable DOM element.
|
|
@@ -990,7 +957,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
990
957
|
*
|
|
991
958
|
* @returns The version number of the package.
|
|
992
959
|
*/
|
|
993
|
-
_createClass(
|
|
960
|
+
_createClass(HotTable, [{
|
|
994
961
|
key: "hotInstance",
|
|
995
962
|
get:
|
|
996
963
|
/**
|
|
@@ -1049,10 +1016,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1049
1016
|
}, {
|
|
1050
1017
|
key: "getOwnerDocument",
|
|
1051
1018
|
value: function getOwnerDocument() {
|
|
1052
|
-
|
|
1053
|
-
return this.hotElementRef ? this.hotElementRef.ownerDocument : document;
|
|
1054
|
-
}
|
|
1055
|
-
return null;
|
|
1019
|
+
return this.hotElementRef ? this.hotElementRef.ownerDocument : document;
|
|
1056
1020
|
}
|
|
1057
1021
|
/**
|
|
1058
1022
|
* Set the reference to the main Handsontable DOM element.
|
|
@@ -1339,6 +1303,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1339
1303
|
key: "render",
|
|
1340
1304
|
value: function render() {
|
|
1341
1305
|
var _this5 = this;
|
|
1306
|
+
var containerProps = getContainerAttributesProps(this.props);
|
|
1342
1307
|
var isHotColumn = function isHotColumn(childNode) {
|
|
1343
1308
|
return childNode.type === HotColumn;
|
|
1344
1309
|
};
|
|
@@ -1359,7 +1324,6 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1359
1324
|
children: childNode.props.children
|
|
1360
1325
|
});
|
|
1361
1326
|
});
|
|
1362
|
-
var containerProps = getContainerAttributesProps(this.props);
|
|
1363
1327
|
var editorPortal = createEditorPortal(this.getOwnerDocument(), this.getGlobalEditorElement());
|
|
1364
1328
|
return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement("div", Object.assign({
|
|
1365
1329
|
ref: this.setHotElementRef.bind(this)
|
|
@@ -1373,33 +1337,17 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1373
1337
|
return version;
|
|
1374
1338
|
}
|
|
1375
1339
|
}]);
|
|
1376
|
-
return
|
|
1340
|
+
return HotTable;
|
|
1377
1341
|
}(React__default["default"].Component);
|
|
1378
1342
|
/**
|
|
1379
1343
|
* Prop types to be checked at runtime.
|
|
1380
1344
|
*/
|
|
1381
|
-
|
|
1345
|
+
HotTable.propTypes = {
|
|
1382
1346
|
style: PropTypes.object,
|
|
1383
1347
|
id: PropTypes.string,
|
|
1384
1348
|
className: PropTypes.string
|
|
1385
1349
|
};
|
|
1386
1350
|
|
|
1387
|
-
var _excluded = ["children"];
|
|
1388
|
-
// Use global React variable for `forwardRef` access (React 16 support)
|
|
1389
|
-
var HotTable = React__default["default"].forwardRef(function (_ref, ref) {
|
|
1390
|
-
var _props$id;
|
|
1391
|
-
var children = _ref.children,
|
|
1392
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
1393
|
-
var generatedId = typeof React__default["default"].useId === 'function' ? React__default["default"].useId() : undefined;
|
|
1394
|
-
var componentId = (_props$id = props.id) !== null && _props$id !== void 0 ? _props$id : generatedId;
|
|
1395
|
-
return React__default["default"].createElement(HotTableClass, Object.assign({
|
|
1396
|
-
id: componentId
|
|
1397
|
-
}, props, {
|
|
1398
|
-
ref: ref
|
|
1399
|
-
}), children);
|
|
1400
|
-
});
|
|
1401
|
-
HotTable.version = HotTableClass.version;
|
|
1402
|
-
|
|
1403
1351
|
var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
|
|
1404
1352
|
_inherits(BaseEditorComponent, _React$Component);
|
|
1405
1353
|
var _super = _createSuper(BaseEditorComponent);
|