UNPKG

@handsontable/react

Version:

Best Data Grid for React with Spreadsheet Look and Feel.

32 lines (31 loc) • 24 kB
/*! * Copyright (c) HANDSONCODE sp. z o. o. * * HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in * Gdynia, Poland, at Aleja Zwyciestwa 96-98, registered by the District Court in Gdansk under number * 538651, EU tax ID number: PL5862294002, share capital: PLN 62,800.00. * * This software is protected by applicable copyright laws, including international treaties, and dual- * licensed - depending on whether your use for commercial purposes, meaning intended for or * resulting in commercial advantage or monetary compensation, or not. * * If your use is strictly personal or solely for evaluation purposes, meaning for the purposes of testing * the suitability, performance, and usefulness of this software outside the production environment, * you agree to be bound by the terms included in the "handsontable-non-commercial-license.pdf" file. * * Your use of this software for commercial purposes is subject to the terms included in an applicable * license agreement. * * In any case, you must not make any such use of this software as to develop software which may be * considered competitive with this software. * * UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS" * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO * LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM * USE OR INABILITY TO USE THIS SOFTWARE. * * Version: 15.2.0 (built at Wed Mar 19 2025 09:42:39 GMT+0100 (Central European Standard Time)) */ !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){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);t>n;n++)r[n]=e[n];return r}function d(e,t,n){return t=g(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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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,k(r.key),r)}}function f(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function m(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 v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function E(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 C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function b(e){return function(e){if(Array.isArray(e))return c(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){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(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 k(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);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return e+""}(e,"string");return"symbol"==typeof t?t:t+""}var I=null,O="global";function w(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 _(e){return e?e.type.WrappedComponent?e.type.WrappedComponent:e.type:null}function S(e,t){if(void 0===e||null===t)return null;var n=j(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 R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O,r=w(e,"hot-editor"),o=_(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:O,e)},editorColumnScope:n,isEditor:!0}):null}function P(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?E(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(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 j(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 A=function(){return f((function e(){p(this,e)}),null,[{key:"getSettings",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prevProps,r=void 0===n?{}:n,o=t.isInit,i=void 0!==o&&o,a=t.initOnlySettingKeys,l=void 0===a?[]:a,s=function(t){return!(i||!l.includes(t))&&r[t]===e[t]},u={};if(e.settings){var c=e.settings;for(var d in c)c.hasOwnProperty(d)&&!s(d)&&(u[d]=c[d])}for(var p in e)"settings"!==p&&"children"!==p&&!s(p)&&e.hasOwnProperty(p)&&(u[p]=e[p]);return u}}])}(),B=function(e){function t(){return p(this,t),d(this,t,arguments)}return m(t,e),f(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 R(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=A.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=S(this.props._getOwnerDocument(),this.getLocalEditorElement());return l.default.createElement(l.default.Fragment,null,e)}}])}(l.default.Component),D=function(e){function t(){var e;return p(this,t),(e=d(this,t,arguments)).state={portals:[]},e}return m(t,e),f(t,[{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,this.state.portals)}}])}(l.default.Component);function H(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var T,M,x,V,W={exports:{}};W.exports=function(){if(V)return x;V=1;var e=M?T:(M=1,T="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,x=function(){function r(t,n,r,o,i,a){if(a!==e){var l=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 l.name="Invariant Violation",l}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var z=H(W.exports),N=function(e){function t(){var e;return p(this,t),(e=d(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 m(t,e),f(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:"_isHotInstanceDestroyed",value:function(){return this.__hotInstance&&this.__hotInstance.isDestroyed}},{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,h="".concat(p,"-").concat(d),f="".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(f),g=c.get(h);r.firstChild;)r.removeChild(r.firstChild);if(y&&g)r.appendChild(g);else{var m=P(e,{TD:r,row:o,col:i,prop:a,value:l,cellProperties:s,isRenderer:!0},r.ownerDocument,f,g),v=m.portal,E=m.portalContainer;c.set(h,E),r.appendChild(E),t.portalCache.set(f,v)}}return u.set(d,r),r}}},{key:"getEditorClass",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,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 p(this,n),r=d(this,n,[t]),e.hotCustomEditorInstance=r,r.editorComponent=e,r}return m(n,t),f(n,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}])}(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 w(this.props.children,"hot-renderer")}},{key:"getGlobalEditorElement",value:function(){return R(this.props.children,this.getEditorCache())}},{key:"createNewGlobalSettings",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=this._isHotInstanceDestroyed()?[]:(null===(e=this.hotInstance)||void 0===e||null===(e=e.getSettings())||void 0===e?void 0:e._initOnlySettings)||[],s=A.getSettings(this.props,{prevProps:a,isInit:r,initOnlySettingKeys:l}),u=this.getGlobalRendererElement(),c=this.getGlobalEditorElement();(s.columns=this.columnSettings.length?this.columnSettings:s.columns,c)?s.editor=this.getEditorClass(c,O):s.editor=this.props.editor||null!==(t=this.props.settings)&&void 0!==t&&t.editor?this.props.editor||this.props.settings.editor:i.getEditor("text");u?(s.renderer=this.getRendererWrapper(u),this.componentRendererColumns.set("global",!0)):s.renderer=this.props.renderer||null!==(n=this.props.settings)&&void 0!==n&&n.renderer?this.props.renderer||this.props.settings.renderer:o.getRenderer("text");return s}},{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:b(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(!0);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(e){this.clearCache();var t=this.createNewGlobalSettings(!1,e);this.updateHot(t),this.displayAutoSizeWarning(t)}},{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===B}(e)})).map((function(t,n){return l.default.cloneElement(t,{_componentRendererColumns:e.componentRendererColumns,_emitColumnSettings:e.setHotColumnSettings.bind(e),_columnIndex:n,_getChildElementByType:w.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=j(this.props),r=S(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"15.2.0"}}])}(l.default.Component);N.propTypes={style:z.object,id:z.string,className:z.string};var F=["children"],G=l.default.forwardRef((function(e,t){var n,r=e.children,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;i.length>r;r++)-1===t.indexOf(n=i[r])&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,F),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(N,Object.assign({id:a},o,{ref:t}),r)}));G.version=N.version;var L=function(e){function t(){var e;return p(this,t),(e=d(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 m(t,e),f(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))}}])}(l.default.Component);e.BaseEditorComponent=L,e.HotColumn=B,e.HotTable=G,e.HotTableClass=N,e.default=G,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=react-handsontable.min.js.map