@handsontable/react 14.2.0-next-6502fb6-20240304 → 14.2.0-next-75c8bcd-20240306

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.
@@ -517,7 +517,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
517
517
  return RenderersPortalManager;
518
518
  }(React__default["default"].Component);
519
519
 
520
- var version="14.2.0-next-6502fb6-20240304";
520
+ var version="14.2.0-next-75c8bcd-20240306";
521
521
 
522
522
  function createCommonjsModule(fn, module) {
523
523
  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: 14.2.0-next-6502fb6-20240304 (built at Mon Mar 04 2024 12:59:32 GMT+0000 (Coordinated Universal Time))
28
+ * Version: 14.2.0-next-75c8bcd-20240306 (built at Wed Mar 06 2024 07:52:43 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')) :
@@ -542,7 +542,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
542
542
  return RenderersPortalManager;
543
543
  }(React__default["default"].Component);
544
544
 
545
- var version="14.2.0-next-6502fb6-20240304";
545
+ var version="14.2.0-next-75c8bcd-20240306";
546
546
 
547
547
  function createCommonjsModule(fn, module) {
548
548
  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: 14.2.0-next-6502fb6-20240304 (built at Mon Mar 04 2024 12:59:37 GMT+0000 (Coordinated Universal Time))
28
+ * Version: 14.2.0-next-75c8bcd-20240306 (built at Wed Mar 06 2024 07:52:48 GMT+0000 (Coordinated Universal Time))
29
29
  */
30
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("handsontable/base"),require("handsontable/renderers/registry"),require("handsontable/editors/registry")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","handsontable/base","handsontable/renderers/registry","handsontable/editors/registry"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Handsontable=e.Handsontable||{},e.Handsontable.react={}),e.React,e.ReactDOM,e.Handsontable,e.Handsontable.renderers,e.Handsontable.editors)}(this,(function(e,t,n,r,o,i){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(t),s=a(n),u=a(r);function c(e,t,n){return t=E(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}(e,d()?Reflect.construct(t,n||[],E(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function g(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function k(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;i.length>r;r++)0>t.indexOf(n=i[r])&&(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;i.length>r;r++)0>t.indexOf(n=i[r])&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);t>n;n++)r[n]=e[n];return r}var I=null,_="global";function P(e,t){var n=l.default.Children.toArray(e),r=l.default.Children.count(e),o=null;return 0!==r&&(o=1===r&&n[0].props[t]?n[0]:n.find((function(e){return void 0!==e.props[t]}))),o||null}function R(e){return e?e.type.WrappedComponent?e.type.WrappedComponent:e.type:null}function j(e,t){if(void 0===e||null===t)return null;var n=M(t.props,!1);return n.className="".concat("hot-wrapper-editor-container"," ").concat(n.className),s.default.createPortal(l.default.createElement("div",Object.assign({},n),t),e.body)}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_,r=P(e,"hot-editor"),o=R(r);return r?l.default.cloneElement(r,{emitEditorInstance:function(e,n){t.get(o)||t.set(o,new Map),t.get(o).set(null!=n?n:_,e)},editorColumnScope:n,isEditor:!0}):null}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;n||(n=document),I||(I=n.createDocumentFragment());var i=null!=o?o:n.createElement("DIV");I.appendChild(i);var a=l.default.cloneElement(e,function(e){for(var t=1;arguments.length>t;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(t.row,"-").concat(t.col)},t));return{portal:s.default.createPortal(a,i,r),portalContainer:i}}function M(e){return{id:e.id||(1>=arguments.length||void 0===arguments[1]||arguments[1]?"hot-"+Math.random().toString(36).substring(5):void 0),className:e.className||"",style:e.style||{}}}var T=function(){function e(){y(this,e)}return g(e,null,[{key:"getSettings",value:function(e){var t={};if(e.settings){var n=e.settings;for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}for(var o in e)"settings"!==o&&"children"!==o&&e.hasOwnProperty(o)&&(t[o]=e[o]);return t}}]),e}(),x=function(e){function t(){return y(this,t),c(this,t,arguments)}return b(t,e),g(t,[{key:"getSettingsProps",value:function(){var e=this;return this.internalProps=["_componentRendererColumns","_emitColumnSettings","_columnIndex","_getChildElementByType","_getRendererWrapper","_getEditorClass","_getEditorCache","_getOwnerDocument","hot-renderer","hot-editor","children"],Object.keys(this.props).filter((function(t){return!e.internalProps.includes(t)})).reduce((function(t,n){return t[n]=e.props[n],t}),{})}},{key:"getLocalEditorElement",value:function(){return A(this.props.children,this.props._getEditorCache(),this.props._columnIndex)}},{key:"createColumnSettings",value:function(){var e=this.props._getChildElementByType(this.props.children,"hot-renderer"),t=this.getLocalEditorElement();this.columnSettings=T.getSettings(this.getSettingsProps()),null!==e&&(this.columnSettings.renderer=this.props._getRendererWrapper(e),this.props._componentRendererColumns.set(this.props._columnIndex,!0)),null!==t&&(this.columnSettings.editor=this.props._getEditorClass(t,this.props._columnIndex))}},{key:"emitColumnSettings",value:function(){this.props._emitColumnSettings(this.columnSettings,this.props._columnIndex)}},{key:"componentDidMount",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"componentDidUpdate",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"render",value:function(){var e=j(this.props._getOwnerDocument(),this.getLocalEditorElement());return l.default.createElement(l.default.Fragment,null,e)}}]),t}(l.default.Component),D=function(e){function t(){var e;return y(this,t),(e=c(this,t,arguments)).state={portals:[]},e}return b(t,e),g(t,[{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,this.state.portals)}}]),t}(l.default.Component);function H(e,t){return e(t={exports:{}},t.exports),t.exports}var $="function"==typeof Symbol&&Symbol.for,V=$?Symbol.for("react.element"):60103,W=$?Symbol.for("react.portal"):60106,F=$?Symbol.for("react.fragment"):60107,z=$?Symbol.for("react.strict_mode"):60108,N=$?Symbol.for("react.profiler"):60114,L=$?Symbol.for("react.provider"):60109,q=$?Symbol.for("react.context"):60110,G=$?Symbol.for("react.async_mode"):60111,U=$?Symbol.for("react.concurrent_mode"):60111,K=$?Symbol.for("react.forward_ref"):60112,Y=$?Symbol.for("react.suspense"):60113,Z=$?Symbol.for("react.suspense_list"):60120,J=$?Symbol.for("react.memo"):60115,Q=$?Symbol.for("react.lazy"):60116,X=$?Symbol.for("react.block"):60121,ee=$?Symbol.for("react.fundamental"):60117,te=$?Symbol.for("react.responder"):60118,ne=$?Symbol.for("react.scope"):60119;function re(e){if("object"===h(e)&&null!==e){var t=e.$$typeof;switch(t){case V:switch(e=e.type){case G:case U:case F:case N:case z:case Y:return e;default:switch(e=e&&e.$$typeof){case q:case K:case Q:case J:case L:return e;default:return t}}case W:return t}}}function oe(e){return re(e)===U}var ie={AsyncMode:G,ConcurrentMode:U,ContextConsumer:q,ContextProvider:L,Element:V,ForwardRef:K,Fragment:F,Lazy:Q,Memo:J,Portal:W,Profiler:N,StrictMode:z,Suspense:Y,isAsyncMode:function(e){return oe(e)||re(e)===G},isConcurrentMode:oe,isContextConsumer:function(e){return re(e)===q},isContextProvider:function(e){return re(e)===L},isElement:function(e){return"object"===h(e)&&null!==e&&e.$$typeof===V},isForwardRef:function(e){return re(e)===K},isFragment:function(e){return re(e)===F},isLazy:function(e){return re(e)===Q},isMemo:function(e){return re(e)===J},isPortal:function(e){return re(e)===W},isProfiler:function(e){return re(e)===N},isStrictMode:function(e){return re(e)===z},isSuspense:function(e){return re(e)===Y},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===F||e===U||e===N||e===z||e===Y||e===Z||"object"===h(e)&&null!==e&&(e.$$typeof===Q||e.$$typeof===J||e.$$typeof===L||e.$$typeof===q||e.$$typeof===K||e.$$typeof===ee||e.$$typeof===te||e.$$typeof===ne||e.$$typeof===X)},typeOf:re};H((function(e,t){}));H((function(e){e.exports=ie}));!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;10>n;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}();function ae(){}function le(){}Function.call.bind(Object.prototype.hasOwnProperty),le.resetWarningCache=ae;var se=H((function(e){e.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:le,resetWarningCache:ae};return n.PropTypes=n,n}()})),ue=function(e){function t(){var e;return y(this,t),(e=c(this,t,arguments)).id=null,e.__hotInstance=null,e.hotElementRef=null,e.columnSettings=[],e.renderersPortalManager=null,e.portalCache=new Map,e.portalContainerCache=new Map,e.renderedCellCache=new Map,e.editorCache=new Map,e.componentRendererColumns=new Map,e}return b(t,e),g(t,[{key:"hotInstance",get:function(){return!this.__hotInstance||this.__hotInstance&&!this.__hotInstance.isDestroyed?this.__hotInstance:(console.warn("The Handsontable instance bound to this component was destroyed and cannot be used properly."),null)},set:function(e){this.__hotInstance=e}},{key:"getPortalContainerCache",value:function(){return this.portalContainerCache}},{key:"getRenderedCellCache",value:function(){return this.renderedCellCache}},{key:"getEditorCache",value:function(){return this.editorCache}},{key:"clearCache",value:function(){this.getRenderedCellCache().clear(),this.componentRendererColumns.clear()}},{key:"getOwnerDocument",value:function(){return"undefined"!=typeof window?this.hotElementRef?this.hotElementRef.ownerDocument:document:null}},{key:"setHotElementRef",value:function(e){this.hotElementRef=e}},{key:"getRendererWrapper",value:function(e){var t=this;return function(n,r,o,i,a,l,s){var u=t.getRenderedCellCache(),c=t.getPortalContainerCache(),d="".concat(o,"-").concat(i),p=n.guid,f="".concat(p,"-").concat(d),h="".concat(d,"-").concat(p);if(u.has(d)&&(r.innerHTML=u.get(d).innerHTML),r&&!r.getAttribute("ghost-table")){for(var y=t.portalCache.get(h),m=c.get(f);r.firstChild;)r.removeChild(r.firstChild);if(y&&m)r.appendChild(m);else{var g=B(e,{TD:r,row:o,col:i,prop:a,value:l,cellProperties:s,isRenderer:!0},r.ownerDocument,h,m),v=g.portal,b=g.portalContainer;c.set(f,b),r.appendChild(b),t.portalCache.set(h,v)}}return u.set(d,r),r}}},{key:"getEditorClass",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,r=R(e),o=null===(t=this.getEditorCache().get(r))||void 0===t?void 0:t.get(n);return this.makeEditorClass(o)}},{key:"makeEditorClass",value:function(e){var t=function(t){function n(t){var r;return y(this,n),r=c(this,n,[t]),e.hotCustomEditorInstance=S(r),r.editorComponent=e,r}return b(n,t),g(n,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}]),n}(u.default.editors.BaseEditor);return Object.getOwnPropertyNames(u.default.editors.BaseEditor.prototype).forEach((function(n){"constructor"!==n&&(t.prototype[n]=function(){for(var t,r=arguments.length,o=Array(r),i=0;r>i;i++)o[i]=arguments[i];return(t=e[n]).call.apply(t,[e].concat(o))})})),t}},{key:"getGlobalRendererElement",value:function(){return P(this.props.children,"hot-renderer")}},{key:"getGlobalEditorElement",value:function(){return A(this.props.children,this.getEditorCache())}},{key:"createNewGlobalSettings",value:function(){var e,t,n=T.getSettings(this.props),r=this.getGlobalRendererElement(),a=this.getGlobalEditorElement();(n.columns=this.columnSettings.length?this.columnSettings:n.columns,a)?n.editor=this.getEditorClass(a,_):n.editor=this.props.editor||null!==(e=this.props.settings)&&void 0!==e&&e.editor?this.props.editor||this.props.settings.editor:i.getEditor("text");r?(n.renderer=this.getRendererWrapper(r),this.componentRendererColumns.set("global",!0)):n.renderer=this.props.renderer||null!==(t=this.props.settings)&&void 0!==t&&t.renderer?this.props.renderer||this.props.settings.renderer:o.getRenderer("text");return n}},{key:"displayAutoSizeWarning",value:function(e){var t,n;this.hotInstance&&(null!==(t=this.hotInstance.getPlugin("autoRowSize"))&&void 0!==t&&t.enabled||null!==(n=this.hotInstance.getPlugin("autoColumnSize"))&&void 0!==n&&n.enabled)&&this.componentRendererColumns.size>0&&function(){var e;void 0!==console&&(e=console).warn.apply(e,arguments)}("Your `HotTable` configuration includes `autoRowSize`/`autoColumnSize` options, which are not compatible with the component-based renderers`. Disable `autoRowSize` and `autoColumnSize` to prevent row and column misalignment.")}},{key:"setHotColumnSettings",value:function(e,t){this.columnSettings[t]=e}},{key:"handsontableBeforeViewRender",value:function(){this.portalCache.clear(),this.getRenderedCellCache().clear()}},{key:"handsontableAfterViewRender",value:function(){this.renderersPortalManager.setState({portals:w(this.portalCache.values())})}},{key:"updateHot",value:function(e){this.hotInstance&&this.hotInstance.updateSettings(e,!1)}},{key:"setRenderersPortalManagerRef",value:function(e){this.renderersPortalManager=e}},{key:"componentDidMount",value:function(){var e=this,t=this.createNewGlobalSettings();this.hotInstance=new u.default.Core(this.hotElementRef,t),this.hotInstance.addHook("beforeViewRender",(function(){return e.handsontableBeforeViewRender()})),this.hotInstance.addHook("afterViewRender",(function(){return e.handsontableAfterViewRender()})),this.hotInstance.init(),this.displayAutoSizeWarning(t)}},{key:"componentDidUpdate",value:function(){this.clearCache();var e=this.createNewGlobalSettings();this.updateHot(e),this.displayAutoSizeWarning(e)}},{key:"componentWillUnmount",value:function(){this.clearCache(),this.hotInstance&&this.hotInstance.destroy()}},{key:"render",value:function(){var e=this,t=l.default.Children.toArray(this.props.children).filter((function(e){return function(e){return e.type===x}(e)})).map((function(t,n){return l.default.cloneElement(t,{_componentRendererColumns:e.componentRendererColumns,_emitColumnSettings:e.setHotColumnSettings.bind(e),_columnIndex:n,_getChildElementByType:P.bind(e),_getRendererWrapper:e.getRendererWrapper.bind(e),_getEditorClass:e.getEditorClass.bind(e),_getOwnerDocument:e.getOwnerDocument.bind(e),_getEditorCache:e.getEditorCache.bind(e),children:t.props.children})})),n=M(this.props),r=j(this.getOwnerDocument(),this.getGlobalEditorElement());return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",Object.assign({ref:this.setHotElementRef.bind(this)},n),t),l.default.createElement(D,{ref:this.setRenderersPortalManagerRef.bind(this)}),r)}}],[{key:"version",get:function(){return"14.2.0-next-6502fb6-20240304"}}]),t}(l.default.Component);ue.propTypes={style:se.object,id:se.string,className:se.string};var ce=["children"],de=l.default.forwardRef((function(e,t){var n,r=e.children,o=k(e,ce),i="function"==typeof l.default.useId?l.default.useId():void 0,a=null!==(n=o.id)&&void 0!==n?n:i;return l.default.createElement(ue,Object.assign({id:a},o,{ref:t}),r)}));de.version=ue.version;var pe=function(e){function t(){var e;return y(this,t),(e=c(this,t,arguments)).name="BaseEditorComponent",e.instance=null,e.row=null,e.col=null,e.prop=null,e.TD=null,e.originalValue=null,e.cellProperties=null,e.state=null,e.hotInstance=null,e.hotCustomEditorInstance=null,e.hot=null,e}return b(t,e),g(t,[{key:"componentDidMount",value:function(){this.props.emitEditorInstance&&this.props.emitEditorInstance(this,this.props.editorColumnScope)}},{key:"componentDidUpdate",value:function(){this.props.emitEditorInstance&&this.props.emitEditorInstance(this,this.props.editorColumnScope)}},{key:"_fireCallbacks",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];(e=u.default.editors.BaseEditor.prototype._fireCallbacks).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"beginEditing",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.beginEditing).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"cancelChanges",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.cancelChanges).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"checkEditorSection",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.checkEditorSection).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"close",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.close).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"discardEditor",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.discardEditor).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"enableFullEditMode",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.enableFullEditMode).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"extend",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.extend).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"finishEditing",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.finishEditing).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"focus",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.focus).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getValue",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.getValue).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"init",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.init).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"isInFullEditMode",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.isInFullEditMode).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"isOpened",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.isOpened).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"isWaiting",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.isWaiting).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"open",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.open).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"prepare",value:function(e,t,n,r,o,i){return this.hotInstance=i.instance,this.row=e,this.col=t,this.prop=n,this.TD=r,this.originalValue=o,this.cellProperties=i,u.default.editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance,e,t,n,r,o,i)}},{key:"saveValue",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.saveValue).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"setValue",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.setValue).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"addHook",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.addHook).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"removeHooksByKey",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.removeHooksByKey).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"clearHooks",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.clearHooks).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCell",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.getEditedCell).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellRect",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.getEditedCellRect).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellsZIndex",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(e,[this.hotCustomEditorInstance].concat(n))}}]),t}(l.default.Component);e.BaseEditorComponent=pe,e.HotColumn=x,e.HotTable=de,e.HotTableClass=ue,e.default=de,Object.defineProperty(e,"__esModule",{value:!0})}));
30
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("handsontable/base"),require("handsontable/renderers/registry"),require("handsontable/editors/registry")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","handsontable/base","handsontable/renderers/registry","handsontable/editors/registry"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Handsontable=e.Handsontable||{},e.Handsontable.react={}),e.React,e.ReactDOM,e.Handsontable,e.Handsontable.renderers,e.Handsontable.editors)}(this,(function(e,t,n,r,o,i){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(t),s=a(n),u=a(r);function c(e,t,n){return t=E(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}(e,d()?Reflect.construct(t,n||[],E(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function g(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function k(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;i.length>r;r++)0>t.indexOf(n=i[r])&&(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;i.length>r;r++)0>t.indexOf(n=i[r])&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);t>n;n++)r[n]=e[n];return r}var I=null,_="global";function P(e,t){var n=l.default.Children.toArray(e),r=l.default.Children.count(e),o=null;return 0!==r&&(o=1===r&&n[0].props[t]?n[0]:n.find((function(e){return void 0!==e.props[t]}))),o||null}function R(e){return e?e.type.WrappedComponent?e.type.WrappedComponent:e.type:null}function j(e,t){if(void 0===e||null===t)return null;var n=M(t.props,!1);return n.className="".concat("hot-wrapper-editor-container"," ").concat(n.className),s.default.createPortal(l.default.createElement("div",Object.assign({},n),t),e.body)}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_,r=P(e,"hot-editor"),o=R(r);return r?l.default.cloneElement(r,{emitEditorInstance:function(e,n){t.get(o)||t.set(o,new Map),t.get(o).set(null!=n?n:_,e)},editorColumnScope:n,isEditor:!0}):null}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;n||(n=document),I||(I=n.createDocumentFragment());var i=null!=o?o:n.createElement("DIV");I.appendChild(i);var a=l.default.cloneElement(e,function(e){for(var t=1;arguments.length>t;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(t.row,"-").concat(t.col)},t));return{portal:s.default.createPortal(a,i,r),portalContainer:i}}function M(e){return{id:e.id||(1>=arguments.length||void 0===arguments[1]||arguments[1]?"hot-"+Math.random().toString(36).substring(5):void 0),className:e.className||"",style:e.style||{}}}var T=function(){function e(){y(this,e)}return g(e,null,[{key:"getSettings",value:function(e){var t={};if(e.settings){var n=e.settings;for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}for(var o in e)"settings"!==o&&"children"!==o&&e.hasOwnProperty(o)&&(t[o]=e[o]);return t}}]),e}(),x=function(e){function t(){return y(this,t),c(this,t,arguments)}return b(t,e),g(t,[{key:"getSettingsProps",value:function(){var e=this;return this.internalProps=["_componentRendererColumns","_emitColumnSettings","_columnIndex","_getChildElementByType","_getRendererWrapper","_getEditorClass","_getEditorCache","_getOwnerDocument","hot-renderer","hot-editor","children"],Object.keys(this.props).filter((function(t){return!e.internalProps.includes(t)})).reduce((function(t,n){return t[n]=e.props[n],t}),{})}},{key:"getLocalEditorElement",value:function(){return A(this.props.children,this.props._getEditorCache(),this.props._columnIndex)}},{key:"createColumnSettings",value:function(){var e=this.props._getChildElementByType(this.props.children,"hot-renderer"),t=this.getLocalEditorElement();this.columnSettings=T.getSettings(this.getSettingsProps()),null!==e&&(this.columnSettings.renderer=this.props._getRendererWrapper(e),this.props._componentRendererColumns.set(this.props._columnIndex,!0)),null!==t&&(this.columnSettings.editor=this.props._getEditorClass(t,this.props._columnIndex))}},{key:"emitColumnSettings",value:function(){this.props._emitColumnSettings(this.columnSettings,this.props._columnIndex)}},{key:"componentDidMount",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"componentDidUpdate",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"render",value:function(){var e=j(this.props._getOwnerDocument(),this.getLocalEditorElement());return l.default.createElement(l.default.Fragment,null,e)}}]),t}(l.default.Component),D=function(e){function t(){var e;return y(this,t),(e=c(this,t,arguments)).state={portals:[]},e}return b(t,e),g(t,[{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,this.state.portals)}}]),t}(l.default.Component);function H(e,t){return e(t={exports:{}},t.exports),t.exports}var $="function"==typeof Symbol&&Symbol.for,V=$?Symbol.for("react.element"):60103,W=$?Symbol.for("react.portal"):60106,F=$?Symbol.for("react.fragment"):60107,z=$?Symbol.for("react.strict_mode"):60108,N=$?Symbol.for("react.profiler"):60114,L=$?Symbol.for("react.provider"):60109,q=$?Symbol.for("react.context"):60110,G=$?Symbol.for("react.async_mode"):60111,U=$?Symbol.for("react.concurrent_mode"):60111,K=$?Symbol.for("react.forward_ref"):60112,Y=$?Symbol.for("react.suspense"):60113,Z=$?Symbol.for("react.suspense_list"):60120,J=$?Symbol.for("react.memo"):60115,Q=$?Symbol.for("react.lazy"):60116,X=$?Symbol.for("react.block"):60121,ee=$?Symbol.for("react.fundamental"):60117,te=$?Symbol.for("react.responder"):60118,ne=$?Symbol.for("react.scope"):60119;function re(e){if("object"===h(e)&&null!==e){var t=e.$$typeof;switch(t){case V:switch(e=e.type){case G:case U:case F:case N:case z:case Y:return e;default:switch(e=e&&e.$$typeof){case q:case K:case Q:case J:case L:return e;default:return t}}case W:return t}}}function oe(e){return re(e)===U}var ie={AsyncMode:G,ConcurrentMode:U,ContextConsumer:q,ContextProvider:L,Element:V,ForwardRef:K,Fragment:F,Lazy:Q,Memo:J,Portal:W,Profiler:N,StrictMode:z,Suspense:Y,isAsyncMode:function(e){return oe(e)||re(e)===G},isConcurrentMode:oe,isContextConsumer:function(e){return re(e)===q},isContextProvider:function(e){return re(e)===L},isElement:function(e){return"object"===h(e)&&null!==e&&e.$$typeof===V},isForwardRef:function(e){return re(e)===K},isFragment:function(e){return re(e)===F},isLazy:function(e){return re(e)===Q},isMemo:function(e){return re(e)===J},isPortal:function(e){return re(e)===W},isProfiler:function(e){return re(e)===N},isStrictMode:function(e){return re(e)===z},isSuspense:function(e){return re(e)===Y},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===F||e===U||e===N||e===z||e===Y||e===Z||"object"===h(e)&&null!==e&&(e.$$typeof===Q||e.$$typeof===J||e.$$typeof===L||e.$$typeof===q||e.$$typeof===K||e.$$typeof===ee||e.$$typeof===te||e.$$typeof===ne||e.$$typeof===X)},typeOf:re};H((function(e,t){}));H((function(e){e.exports=ie}));!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;10>n;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}();function ae(){}function le(){}Function.call.bind(Object.prototype.hasOwnProperty),le.resetWarningCache=ae;var se=H((function(e){e.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:le,resetWarningCache:ae};return n.PropTypes=n,n}()})),ue=function(e){function t(){var e;return y(this,t),(e=c(this,t,arguments)).id=null,e.__hotInstance=null,e.hotElementRef=null,e.columnSettings=[],e.renderersPortalManager=null,e.portalCache=new Map,e.portalContainerCache=new Map,e.renderedCellCache=new Map,e.editorCache=new Map,e.componentRendererColumns=new Map,e}return b(t,e),g(t,[{key:"hotInstance",get:function(){return!this.__hotInstance||this.__hotInstance&&!this.__hotInstance.isDestroyed?this.__hotInstance:(console.warn("The Handsontable instance bound to this component was destroyed and cannot be used properly."),null)},set:function(e){this.__hotInstance=e}},{key:"getPortalContainerCache",value:function(){return this.portalContainerCache}},{key:"getRenderedCellCache",value:function(){return this.renderedCellCache}},{key:"getEditorCache",value:function(){return this.editorCache}},{key:"clearCache",value:function(){this.getRenderedCellCache().clear(),this.componentRendererColumns.clear()}},{key:"getOwnerDocument",value:function(){return"undefined"!=typeof window?this.hotElementRef?this.hotElementRef.ownerDocument:document:null}},{key:"setHotElementRef",value:function(e){this.hotElementRef=e}},{key:"getRendererWrapper",value:function(e){var t=this;return function(n,r,o,i,a,l,s){var u=t.getRenderedCellCache(),c=t.getPortalContainerCache(),d="".concat(o,"-").concat(i),p=n.guid,f="".concat(p,"-").concat(d),h="".concat(d,"-").concat(p);if(u.has(d)&&(r.innerHTML=u.get(d).innerHTML),r&&!r.getAttribute("ghost-table")){for(var y=t.portalCache.get(h),m=c.get(f);r.firstChild;)r.removeChild(r.firstChild);if(y&&m)r.appendChild(m);else{var g=B(e,{TD:r,row:o,col:i,prop:a,value:l,cellProperties:s,isRenderer:!0},r.ownerDocument,h,m),v=g.portal,b=g.portalContainer;c.set(f,b),r.appendChild(b),t.portalCache.set(h,v)}}return u.set(d,r),r}}},{key:"getEditorClass",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,r=R(e),o=null===(t=this.getEditorCache().get(r))||void 0===t?void 0:t.get(n);return this.makeEditorClass(o)}},{key:"makeEditorClass",value:function(e){var t=function(t){function n(t){var r;return y(this,n),r=c(this,n,[t]),e.hotCustomEditorInstance=S(r),r.editorComponent=e,r}return b(n,t),g(n,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}]),n}(u.default.editors.BaseEditor);return Object.getOwnPropertyNames(u.default.editors.BaseEditor.prototype).forEach((function(n){"constructor"!==n&&(t.prototype[n]=function(){for(var t,r=arguments.length,o=Array(r),i=0;r>i;i++)o[i]=arguments[i];return(t=e[n]).call.apply(t,[e].concat(o))})})),t}},{key:"getGlobalRendererElement",value:function(){return P(this.props.children,"hot-renderer")}},{key:"getGlobalEditorElement",value:function(){return A(this.props.children,this.getEditorCache())}},{key:"createNewGlobalSettings",value:function(){var e,t,n=T.getSettings(this.props),r=this.getGlobalRendererElement(),a=this.getGlobalEditorElement();(n.columns=this.columnSettings.length?this.columnSettings:n.columns,a)?n.editor=this.getEditorClass(a,_):n.editor=this.props.editor||null!==(e=this.props.settings)&&void 0!==e&&e.editor?this.props.editor||this.props.settings.editor:i.getEditor("text");r?(n.renderer=this.getRendererWrapper(r),this.componentRendererColumns.set("global",!0)):n.renderer=this.props.renderer||null!==(t=this.props.settings)&&void 0!==t&&t.renderer?this.props.renderer||this.props.settings.renderer:o.getRenderer("text");return n}},{key:"displayAutoSizeWarning",value:function(e){var t,n;this.hotInstance&&(null!==(t=this.hotInstance.getPlugin("autoRowSize"))&&void 0!==t&&t.enabled||null!==(n=this.hotInstance.getPlugin("autoColumnSize"))&&void 0!==n&&n.enabled)&&this.componentRendererColumns.size>0&&function(){var e;void 0!==console&&(e=console).warn.apply(e,arguments)}("Your `HotTable` configuration includes `autoRowSize`/`autoColumnSize` options, which are not compatible with the component-based renderers`. Disable `autoRowSize` and `autoColumnSize` to prevent row and column misalignment.")}},{key:"setHotColumnSettings",value:function(e,t){this.columnSettings[t]=e}},{key:"handsontableBeforeViewRender",value:function(){this.portalCache.clear(),this.getRenderedCellCache().clear()}},{key:"handsontableAfterViewRender",value:function(){this.renderersPortalManager.setState({portals:w(this.portalCache.values())})}},{key:"updateHot",value:function(e){this.hotInstance&&this.hotInstance.updateSettings(e,!1)}},{key:"setRenderersPortalManagerRef",value:function(e){this.renderersPortalManager=e}},{key:"componentDidMount",value:function(){var e=this,t=this.createNewGlobalSettings();this.hotInstance=new u.default.Core(this.hotElementRef,t),this.hotInstance.addHook("beforeViewRender",(function(){return e.handsontableBeforeViewRender()})),this.hotInstance.addHook("afterViewRender",(function(){return e.handsontableAfterViewRender()})),this.hotInstance.init(),this.displayAutoSizeWarning(t)}},{key:"componentDidUpdate",value:function(){this.clearCache();var e=this.createNewGlobalSettings();this.updateHot(e),this.displayAutoSizeWarning(e)}},{key:"componentWillUnmount",value:function(){this.clearCache(),this.hotInstance&&this.hotInstance.destroy()}},{key:"render",value:function(){var e=this,t=l.default.Children.toArray(this.props.children).filter((function(e){return function(e){return e.type===x}(e)})).map((function(t,n){return l.default.cloneElement(t,{_componentRendererColumns:e.componentRendererColumns,_emitColumnSettings:e.setHotColumnSettings.bind(e),_columnIndex:n,_getChildElementByType:P.bind(e),_getRendererWrapper:e.getRendererWrapper.bind(e),_getEditorClass:e.getEditorClass.bind(e),_getOwnerDocument:e.getOwnerDocument.bind(e),_getEditorCache:e.getEditorCache.bind(e),children:t.props.children})})),n=M(this.props),r=j(this.getOwnerDocument(),this.getGlobalEditorElement());return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",Object.assign({ref:this.setHotElementRef.bind(this)},n),t),l.default.createElement(D,{ref:this.setRenderersPortalManagerRef.bind(this)}),r)}}],[{key:"version",get:function(){return"14.2.0-next-75c8bcd-20240306"}}]),t}(l.default.Component);ue.propTypes={style:se.object,id:se.string,className:se.string};var ce=["children"],de=l.default.forwardRef((function(e,t){var n,r=e.children,o=k(e,ce),i="function"==typeof l.default.useId?l.default.useId():void 0,a=null!==(n=o.id)&&void 0!==n?n:i;return l.default.createElement(ue,Object.assign({id:a},o,{ref:t}),r)}));de.version=ue.version;var pe=function(e){function t(){var e;return y(this,t),(e=c(this,t,arguments)).name="BaseEditorComponent",e.instance=null,e.row=null,e.col=null,e.prop=null,e.TD=null,e.originalValue=null,e.cellProperties=null,e.state=null,e.hotInstance=null,e.hotCustomEditorInstance=null,e.hot=null,e}return b(t,e),g(t,[{key:"componentDidMount",value:function(){this.props.emitEditorInstance&&this.props.emitEditorInstance(this,this.props.editorColumnScope)}},{key:"componentDidUpdate",value:function(){this.props.emitEditorInstance&&this.props.emitEditorInstance(this,this.props.editorColumnScope)}},{key:"_fireCallbacks",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];(e=u.default.editors.BaseEditor.prototype._fireCallbacks).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"beginEditing",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.beginEditing).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"cancelChanges",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.cancelChanges).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"checkEditorSection",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.checkEditorSection).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"close",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.close).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"discardEditor",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.discardEditor).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"enableFullEditMode",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.enableFullEditMode).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"extend",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.extend).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"finishEditing",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.finishEditing).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"focus",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.focus).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getValue",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.getValue).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"init",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.init).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"isInFullEditMode",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.isInFullEditMode).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"isOpened",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.isOpened).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"isWaiting",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.isWaiting).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"open",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.open).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"prepare",value:function(e,t,n,r,o,i){return this.hotInstance=i.instance,this.row=e,this.col=t,this.prop=n,this.TD=r,this.originalValue=o,this.cellProperties=i,u.default.editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance,e,t,n,r,o,i)}},{key:"saveValue",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.saveValue).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"setValue",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.setValue).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"addHook",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.addHook).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"removeHooksByKey",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.removeHooksByKey).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"clearHooks",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.clearHooks).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCell",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.getEditedCell).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellRect",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.getEditedCellRect).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellsZIndex",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(e,[this.hotCustomEditorInstance].concat(n))}}]),t}(l.default.Component);e.BaseEditorComponent=pe,e.HotColumn=x,e.HotTable=de,e.HotTableClass=ue,e.default=de,Object.defineProperty(e,"__esModule",{value:!0})}));
31
31
  //# sourceMappingURL=react-handsontable.min.js.map
@@ -507,7 +507,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
507
507
  return RenderersPortalManager;
508
508
  }(React.Component);
509
509
 
510
- var version="14.2.0-next-6502fb6-20240304";
510
+ var version="14.2.0-next-75c8bcd-20240306";
511
511
 
512
512
  function createCommonjsModule(fn, module) {
513
513
  return module = { exports: {} }, fn(module, module.exports), module.exports;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handsontable/react",
3
- "version": "14.2.0-next-6502fb6-20240304",
3
+ "version": "14.2.0-next-75c8bcd-20240306",
4
4
  "description": "Best Data Grid for React with Spreadsheet Look and Feel.",
5
5
  "author": "Handsoncode <hello@handsoncode.net> (https://handsoncode.net)",
6
6
  "homepage": "https://handsontable.com",
@@ -68,7 +68,7 @@
68
68
  "babel-core": "^7.0.0-bridge.0",
69
69
  "cpy-cli": "^3.1.1",
70
70
  "cross-env": "^7.0.3",
71
- "handsontable": "14.2.0-next-6502fb6-20240304",
71
+ "handsontable": "14.2.0-next-75c8bcd-20240306",
72
72
  "jest": "^25.1.0",
73
73
  "prop-types": "^15.7.2",
74
74
  "react": "^18.2.0",
@@ -89,7 +89,7 @@
89
89
  "uglify-js": "^3.4.9"
90
90
  },
91
91
  "peerDependencies": {
92
- "handsontable": "14.2.0-next-6502fb6-20240304"
92
+ "handsontable": "14.2.0-next-75c8bcd-20240306"
93
93
  },
94
94
  "scripts": {
95
95
  "build": "npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:min",