@handsontable/react 15.1.0 → 15.2.0-next-8670a33-20250312
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.
|
@@ -23,7 +23,7 @@ function _arrayWithoutHoles(r) {
|
|
|
23
23
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
24
24
|
}
|
|
25
25
|
function _assertThisInitialized(e) {
|
|
26
|
-
if (
|
|
26
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27
27
|
return e;
|
|
28
28
|
}
|
|
29
29
|
function _callSuper(t, o, e) {
|
|
@@ -125,7 +125,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
125
125
|
}
|
|
126
126
|
function _possibleConstructorReturn(t, e) {
|
|
127
127
|
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
128
|
-
if (
|
|
128
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
129
129
|
return _assertThisInitialized(t);
|
|
130
130
|
}
|
|
131
131
|
function _setPrototypeOf(t, e) {
|
|
@@ -139,7 +139,7 @@ function _toConsumableArray(r) {
|
|
|
139
139
|
function _toPrimitive(t, r) {
|
|
140
140
|
if ("object" != typeof t || !t) return t;
|
|
141
141
|
var e = t[Symbol.toPrimitive];
|
|
142
|
-
if (
|
|
142
|
+
if (void 0 !== e) {
|
|
143
143
|
var i = e.call(t, r);
|
|
144
144
|
if ("object" != typeof i) return i;
|
|
145
145
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
@@ -163,7 +163,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
163
163
|
if (r) {
|
|
164
164
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
165
165
|
var t = {}.toString.call(r).slice(8, -1);
|
|
166
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) :
|
|
166
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
|
|
@@ -211,7 +211,7 @@ function getChildElementByType(children, type) {
|
|
|
211
211
|
wantedChild = childrenArray[0];
|
|
212
212
|
} else {
|
|
213
213
|
wantedChild = childrenArray.find(function (child) {
|
|
214
|
-
return child.props[type] !==
|
|
214
|
+
return child.props[type] !== void 0;
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -266,7 +266,7 @@ function getExtendedEditorElement(children, editorCache) {
|
|
|
266
266
|
editorCache.set(editorClass, new Map());
|
|
267
267
|
}
|
|
268
268
|
var cacheEntry = editorCache.get(editorClass);
|
|
269
|
-
cacheEntry.set(editorColumnScope !== null && editorColumnScope !==
|
|
269
|
+
cacheEntry.set(editorColumnScope !== null && editorColumnScope !== void 0 ? editorColumnScope : GLOBAL_EDITOR_SCOPE, editorInstance);
|
|
270
270
|
},
|
|
271
271
|
editorColumnScope: editorColumnScope,
|
|
272
272
|
isEditor: true
|
|
@@ -292,7 +292,7 @@ function createPortal(rElement, props) {
|
|
|
292
292
|
if (!bulkComponentContainer) {
|
|
293
293
|
bulkComponentContainer = ownerDocument.createDocumentFragment();
|
|
294
294
|
}
|
|
295
|
-
var portalContainer = cachedContainer !== null && cachedContainer !==
|
|
295
|
+
var portalContainer = cachedContainer !== null && cachedContainer !== void 0 ? cachedContainer : ownerDocument.createElement('DIV');
|
|
296
296
|
bulkComponentContainer.appendChild(portalContainer);
|
|
297
297
|
var extendedRendererElement = React__default["default"].cloneElement(rElement, _objectSpread2({
|
|
298
298
|
key: "".concat(props.row, "-").concat(props.col)
|
|
@@ -347,11 +347,11 @@ var SettingsMapper = /*#__PURE__*/function () {
|
|
|
347
347
|
function getSettings(properties) {
|
|
348
348
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
349
349
|
_ref$prevProps = _ref.prevProps,
|
|
350
|
-
prevProps = _ref$prevProps ===
|
|
350
|
+
prevProps = _ref$prevProps === void 0 ? {} : _ref$prevProps,
|
|
351
351
|
_ref$isInit = _ref.isInit,
|
|
352
|
-
isInit = _ref$isInit ===
|
|
352
|
+
isInit = _ref$isInit === void 0 ? false : _ref$isInit,
|
|
353
353
|
_ref$initOnlySettingK = _ref.initOnlySettingKeys,
|
|
354
|
-
initOnlySettingKeys = _ref$initOnlySettingK ===
|
|
354
|
+
initOnlySettingKeys = _ref$initOnlySettingK === void 0 ? [] : _ref$initOnlySettingK;
|
|
355
355
|
var shouldSkipProp = function shouldSkipProp(key) {
|
|
356
356
|
// Omit settings that can be set only during initialization and are intentionally modified.
|
|
357
357
|
if (!isInit && initOnlySettingKeys.includes(key)) {
|
|
@@ -497,7 +497,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
497
497
|
}]);
|
|
498
498
|
}(React__default["default"].Component);
|
|
499
499
|
|
|
500
|
-
var version="15.
|
|
500
|
+
var version="15.2.0-next-8670a33-20250312";
|
|
501
501
|
|
|
502
502
|
function getDefaultExportFromCjs (x) {
|
|
503
503
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -1321,7 +1321,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
1323
1323
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
1324
|
-
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') :
|
|
1324
|
+
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
1325
1325
|
return emptyFunctionThatReturnsNull;
|
|
1326
1326
|
}
|
|
1327
1327
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
@@ -1883,7 +1883,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1883
1883
|
var _this$getEditorCache$;
|
|
1884
1884
|
var editorColumnScope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : GLOBAL_EDITOR_SCOPE;
|
|
1885
1885
|
var editorClass = getOriginalEditorClass(editorElement);
|
|
1886
|
-
var cachedComponent = (_this$getEditorCache$ = this.getEditorCache().get(editorClass)) === null || _this$getEditorCache$ ===
|
|
1886
|
+
var cachedComponent = (_this$getEditorCache$ = this.getEditorCache().get(editorClass)) === null || _this$getEditorCache$ === void 0 ? void 0 : _this$getEditorCache$.get(editorColumnScope);
|
|
1887
1887
|
return this.makeEditorClass(cachedComponent);
|
|
1888
1888
|
}
|
|
1889
1889
|
/**
|
|
@@ -1973,7 +1973,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1973
1973
|
var prevProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1974
1974
|
var initOnlySettingKeys = !this._isHotInstanceDestroyed() ?
|
|
1975
1975
|
// Needed for React's double-rendering.
|
|
1976
|
-
((_this$hotInstance = this.hotInstance) === null || _this$hotInstance ===
|
|
1976
|
+
((_this$hotInstance = this.hotInstance) === null || _this$hotInstance === void 0 || (_this$hotInstance = _this$hotInstance.getSettings()) === null || _this$hotInstance === void 0 ? void 0 : _this$hotInstance._initOnlySettings) || [] : [];
|
|
1977
1977
|
var newSettings = SettingsMapper.getSettings(this.props, {
|
|
1978
1978
|
prevProps: prevProps,
|
|
1979
1979
|
isInit: init,
|
|
@@ -1986,7 +1986,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1986
1986
|
newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);
|
|
1987
1987
|
} else {
|
|
1988
1988
|
var _this$props$settings;
|
|
1989
|
-
if (this.props.editor || (_this$props$settings = this.props.settings) !== null && _this$props$settings !==
|
|
1989
|
+
if (this.props.editor || (_this$props$settings = this.props.settings) !== null && _this$props$settings !== void 0 && _this$props$settings.editor) {
|
|
1990
1990
|
newSettings.editor = this.props.editor || this.props.settings.editor;
|
|
1991
1991
|
} else {
|
|
1992
1992
|
newSettings.editor = registry.getEditor('text');
|
|
@@ -1997,7 +1997,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1997
1997
|
this.componentRendererColumns.set('global', true);
|
|
1998
1998
|
} else {
|
|
1999
1999
|
var _this$props$settings2;
|
|
2000
|
-
if (this.props.renderer || (_this$props$settings2 = this.props.settings) !== null && _this$props$settings2 !==
|
|
2000
|
+
if (this.props.renderer || (_this$props$settings2 = this.props.settings) !== null && _this$props$settings2 !== void 0 && _this$props$settings2.renderer) {
|
|
2001
2001
|
newSettings.renderer = this.props.renderer || this.props.settings.renderer;
|
|
2002
2002
|
} else {
|
|
2003
2003
|
newSettings.renderer = registry$1.getRenderer('text');
|
|
@@ -2014,7 +2014,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
2014
2014
|
key: "displayAutoSizeWarning",
|
|
2015
2015
|
value: function displayAutoSizeWarning(newGlobalSettings) {
|
|
2016
2016
|
var _this$hotInstance$get, _this$hotInstance$get2;
|
|
2017
|
-
if (this.hotInstance && ((_this$hotInstance$get = this.hotInstance.getPlugin('autoRowSize')) !== null && _this$hotInstance$get !==
|
|
2017
|
+
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)) {
|
|
2018
2018
|
if (this.componentRendererColumns.size > 0) {
|
|
2019
2019
|
warn(AUTOSIZE_WARNING);
|
|
2020
2020
|
}
|
|
@@ -2176,7 +2176,7 @@ var HotTable = React__default["default"].forwardRef(function (_ref, ref) {
|
|
|
2176
2176
|
var children = _ref.children,
|
|
2177
2177
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
2178
2178
|
var generatedId = typeof React__default["default"].useId === 'function' ? React__default["default"].useId() : undefined;
|
|
2179
|
-
var componentId = (_props$id = props.id) !== null && _props$id !==
|
|
2179
|
+
var componentId = (_props$id = props.id) !== null && _props$id !== void 0 ? _props$id : generatedId;
|
|
2180
2180
|
return React__default["default"].createElement(HotTableClass, Object.assign({
|
|
2181
2181
|
id: componentId
|
|
2182
2182
|
}, props, {
|
|
@@ -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: 15.
|
|
28
|
+
* Version: 15.2.0-next-8670a33-20250312 (built at Wed Mar 12 2025 10:13:14 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')) :
|
|
@@ -48,7 +48,7 @@ function _arrayWithoutHoles(r) {
|
|
|
48
48
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
49
49
|
}
|
|
50
50
|
function _assertThisInitialized(e) {
|
|
51
|
-
if (
|
|
51
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
52
52
|
return e;
|
|
53
53
|
}
|
|
54
54
|
function _callSuper(t, o, e) {
|
|
@@ -150,7 +150,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
150
150
|
}
|
|
151
151
|
function _possibleConstructorReturn(t, e) {
|
|
152
152
|
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
153
|
-
if (
|
|
153
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
154
154
|
return _assertThisInitialized(t);
|
|
155
155
|
}
|
|
156
156
|
function _setPrototypeOf(t, e) {
|
|
@@ -164,7 +164,7 @@ function _toConsumableArray(r) {
|
|
|
164
164
|
function _toPrimitive(t, r) {
|
|
165
165
|
if ("object" != typeof t || !t) return t;
|
|
166
166
|
var e = t[Symbol.toPrimitive];
|
|
167
|
-
if (
|
|
167
|
+
if (void 0 !== e) {
|
|
168
168
|
var i = e.call(t, r);
|
|
169
169
|
if ("object" != typeof i) return i;
|
|
170
170
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
@@ -179,7 +179,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
179
179
|
if (r) {
|
|
180
180
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
181
181
|
var t = {}.toString.call(r).slice(8, -1);
|
|
182
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) :
|
|
182
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
|
|
@@ -227,7 +227,7 @@ function getChildElementByType(children, type) {
|
|
|
227
227
|
wantedChild = childrenArray[0];
|
|
228
228
|
} else {
|
|
229
229
|
wantedChild = childrenArray.find(function (child) {
|
|
230
|
-
return child.props[type] !==
|
|
230
|
+
return child.props[type] !== void 0;
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
}
|
|
@@ -282,7 +282,7 @@ function getExtendedEditorElement(children, editorCache) {
|
|
|
282
282
|
editorCache.set(editorClass, new Map());
|
|
283
283
|
}
|
|
284
284
|
var cacheEntry = editorCache.get(editorClass);
|
|
285
|
-
cacheEntry.set(editorColumnScope !== null && editorColumnScope !==
|
|
285
|
+
cacheEntry.set(editorColumnScope !== null && editorColumnScope !== void 0 ? editorColumnScope : GLOBAL_EDITOR_SCOPE, editorInstance);
|
|
286
286
|
},
|
|
287
287
|
editorColumnScope: editorColumnScope,
|
|
288
288
|
isEditor: true
|
|
@@ -308,7 +308,7 @@ function createPortal(rElement, props) {
|
|
|
308
308
|
if (!bulkComponentContainer) {
|
|
309
309
|
bulkComponentContainer = ownerDocument.createDocumentFragment();
|
|
310
310
|
}
|
|
311
|
-
var portalContainer = cachedContainer !== null && cachedContainer !==
|
|
311
|
+
var portalContainer = cachedContainer !== null && cachedContainer !== void 0 ? cachedContainer : ownerDocument.createElement('DIV');
|
|
312
312
|
bulkComponentContainer.appendChild(portalContainer);
|
|
313
313
|
var extendedRendererElement = React__default["default"].cloneElement(rElement, _objectSpread2({
|
|
314
314
|
key: "".concat(props.row, "-").concat(props.col)
|
|
@@ -363,11 +363,11 @@ var SettingsMapper = /*#__PURE__*/function () {
|
|
|
363
363
|
function getSettings(properties) {
|
|
364
364
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
365
365
|
_ref$prevProps = _ref.prevProps,
|
|
366
|
-
prevProps = _ref$prevProps ===
|
|
366
|
+
prevProps = _ref$prevProps === void 0 ? {} : _ref$prevProps,
|
|
367
367
|
_ref$isInit = _ref.isInit,
|
|
368
|
-
isInit = _ref$isInit ===
|
|
368
|
+
isInit = _ref$isInit === void 0 ? false : _ref$isInit,
|
|
369
369
|
_ref$initOnlySettingK = _ref.initOnlySettingKeys,
|
|
370
|
-
initOnlySettingKeys = _ref$initOnlySettingK ===
|
|
370
|
+
initOnlySettingKeys = _ref$initOnlySettingK === void 0 ? [] : _ref$initOnlySettingK;
|
|
371
371
|
var shouldSkipProp = function shouldSkipProp(key) {
|
|
372
372
|
// Omit settings that can be set only during initialization and are intentionally modified.
|
|
373
373
|
if (!isInit && initOnlySettingKeys.includes(key)) {
|
|
@@ -513,7 +513,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
513
513
|
}]);
|
|
514
514
|
}(React__default["default"].Component);
|
|
515
515
|
|
|
516
|
-
var version="15.
|
|
516
|
+
var version="15.2.0-next-8670a33-20250312";
|
|
517
517
|
|
|
518
518
|
function getDefaultExportFromCjs (x) {
|
|
519
519
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -872,7 +872,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
872
872
|
var _this$getEditorCache$;
|
|
873
873
|
var editorColumnScope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : GLOBAL_EDITOR_SCOPE;
|
|
874
874
|
var editorClass = getOriginalEditorClass(editorElement);
|
|
875
|
-
var cachedComponent = (_this$getEditorCache$ = this.getEditorCache().get(editorClass)) === null || _this$getEditorCache$ ===
|
|
875
|
+
var cachedComponent = (_this$getEditorCache$ = this.getEditorCache().get(editorClass)) === null || _this$getEditorCache$ === void 0 ? void 0 : _this$getEditorCache$.get(editorColumnScope);
|
|
876
876
|
return this.makeEditorClass(cachedComponent);
|
|
877
877
|
}
|
|
878
878
|
/**
|
|
@@ -962,7 +962,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
962
962
|
var prevProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
963
963
|
var initOnlySettingKeys = !this._isHotInstanceDestroyed() ?
|
|
964
964
|
// Needed for React's double-rendering.
|
|
965
|
-
((_this$hotInstance = this.hotInstance) === null || _this$hotInstance ===
|
|
965
|
+
((_this$hotInstance = this.hotInstance) === null || _this$hotInstance === void 0 || (_this$hotInstance = _this$hotInstance.getSettings()) === null || _this$hotInstance === void 0 ? void 0 : _this$hotInstance._initOnlySettings) || [] : [];
|
|
966
966
|
var newSettings = SettingsMapper.getSettings(this.props, {
|
|
967
967
|
prevProps: prevProps,
|
|
968
968
|
isInit: init,
|
|
@@ -975,7 +975,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
975
975
|
newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);
|
|
976
976
|
} else {
|
|
977
977
|
var _this$props$settings;
|
|
978
|
-
if (this.props.editor || (_this$props$settings = this.props.settings) !== null && _this$props$settings !==
|
|
978
|
+
if (this.props.editor || (_this$props$settings = this.props.settings) !== null && _this$props$settings !== void 0 && _this$props$settings.editor) {
|
|
979
979
|
newSettings.editor = this.props.editor || this.props.settings.editor;
|
|
980
980
|
} else {
|
|
981
981
|
newSettings.editor = registry.getEditor('text');
|
|
@@ -986,7 +986,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
986
986
|
this.componentRendererColumns.set('global', true);
|
|
987
987
|
} else {
|
|
988
988
|
var _this$props$settings2;
|
|
989
|
-
if (this.props.renderer || (_this$props$settings2 = this.props.settings) !== null && _this$props$settings2 !==
|
|
989
|
+
if (this.props.renderer || (_this$props$settings2 = this.props.settings) !== null && _this$props$settings2 !== void 0 && _this$props$settings2.renderer) {
|
|
990
990
|
newSettings.renderer = this.props.renderer || this.props.settings.renderer;
|
|
991
991
|
} else {
|
|
992
992
|
newSettings.renderer = registry$1.getRenderer('text');
|
|
@@ -1003,7 +1003,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1003
1003
|
key: "displayAutoSizeWarning",
|
|
1004
1004
|
value: function displayAutoSizeWarning(newGlobalSettings) {
|
|
1005
1005
|
var _this$hotInstance$get, _this$hotInstance$get2;
|
|
1006
|
-
if (this.hotInstance && ((_this$hotInstance$get = this.hotInstance.getPlugin('autoRowSize')) !== null && _this$hotInstance$get !==
|
|
1006
|
+
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)) {
|
|
1007
1007
|
if (this.componentRendererColumns.size > 0) {
|
|
1008
1008
|
warn(AUTOSIZE_WARNING);
|
|
1009
1009
|
}
|
|
@@ -1165,7 +1165,7 @@ var HotTable = React__default["default"].forwardRef(function (_ref, ref) {
|
|
|
1165
1165
|
var children = _ref.children,
|
|
1166
1166
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1167
1167
|
var generatedId = typeof React__default["default"].useId === 'function' ? React__default["default"].useId() : undefined;
|
|
1168
|
-
var componentId = (_props$id = props.id) !== null && _props$id !==
|
|
1168
|
+
var componentId = (_props$id = props.id) !== null && _props$id !== void 0 ? _props$id : generatedId;
|
|
1169
1169
|
return React__default["default"].createElement(HotTableClass, Object.assign({
|
|
1170
1170
|
id: componentId
|
|
1171
1171
|
}, props, {
|