@handsontable/react 0.0.0-next-e8dd43f-20230731 → 0.0.0-next-e17457f-20230807
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.
|
@@ -494,7 +494,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
494
494
|
return RenderersPortalManager;
|
|
495
495
|
}(React__default["default"].Component);
|
|
496
496
|
|
|
497
|
-
var version="0.0.0-next-
|
|
497
|
+
var version="0.0.0-next-e17457f-20230807";
|
|
498
498
|
|
|
499
499
|
function createCommonjsModule(fn, module) {
|
|
500
500
|
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: 0.0.0-next-
|
|
28
|
+
* Version: 0.0.0-next-e17457f-20230807 (built at Mon Aug 07 2023 08:08:49 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')) :
|
|
@@ -521,7 +521,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
521
521
|
return RenderersPortalManager;
|
|
522
522
|
}(React__default["default"].Component);
|
|
523
523
|
|
|
524
|
-
var version="0.0.0-next-
|
|
524
|
+
var version="0.0.0-next-e17457f-20230807";
|
|
525
525
|
|
|
526
526
|
function createCommonjsModule(fn, module) {
|
|
527
527
|
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: 0.0.0-next-
|
|
28
|
+
* Version: 0.0.0-next-e17457f-20230807 (built at Mon Aug 07 2023 08:08:57 GMT+0000 (Coordinated Universal Time))
|
|
29
29
|
*/
|
|
30
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("react-dom"),require("handsontable/base")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","handsontable/base"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Handsontable=t.Handsontable||{},t.Handsontable.react={}),t.React,t.ReactDOM,t.Handsontable)}(this,(function(t,e,n,r){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=o(e),a=o(n),l=o(r);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,C(r.key),r)}}function p(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t,e,n){return(e=C(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return g(t)}(this,n)}}function b(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t)||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 E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);e>n;n++)r[n]=t[n];return r}function C(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var k=null,S="global";function w(t,e){var n=i.default.Children.toArray(t),r=i.default.Children.count(t),o=null;return 0!==r&&(o=1===r&&n[0].props[e]?n[0]:n.find((function(t){return void 0!==t.props[e]}))),o||null}function O(t){return t?t.type.WrappedComponent?t.type.WrappedComponent:t.type:null}function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=arguments.length>1?arguments[1]:void 0;if(null===e)return null;var n=P(e.props,!1);return n.className="".concat("hot-wrapper-editor-container"," ").concat(n.className),a.default.createPortal(i.default.createElement("div",Object.assign({},n),e),t.body)}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S,r=w(t,"hot-editor"),o=O(r);return r?i.default.cloneElement(r,{emitEditorInstance:function(t,n){e.get(o)||e.set(o,new Map),e.get(o).set(null!=n?n:S,t)},editorColumnScope:n,isEditor:!0}):null}function R(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;n||(n=document),k||(k=n.createDocumentFragment());var r=n.createElement("DIV");k.appendChild(r);var o=i.default.cloneElement(t,function(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({key:"".concat(e.row,"-").concat(e.col)},e));return{portal:a.default.createPortal(o,r,"".concat(e.row,"-").concat(e.col,"-").concat(Math.random())),portalContainer:r}}function P(t){return{id:t.id||(1>=arguments.length||void 0===arguments[1]||arguments[1]?"hot-"+Math.random().toString(36).substring(5):void 0),className:t.className||"",style:t.style||{}}}var j=function(){function t(){u(this,t)}return p(t,null,[{key:"getSettings",value:function(t){var e={};if(t.settings){var n=t.settings;for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}for(var o in t)"settings"!==o&&"children"!==o&&t.hasOwnProperty(o)&&(e[o]=t[o]);return e}}]),t}(),A=function(t){h(n,t);var e=v(n);function n(){return u(this,n),e.apply(this,arguments)}return p(n,[{key:"getSettingsProps",value:function(){var t=this;return this.internalProps=["_componentRendererColumns","_emitColumnSettings","_columnIndex","_getChildElementByType","_getRendererWrapper","_getEditorClass","_getEditorCache","_getOwnerDocument","hot-renderer","hot-editor","children"],Object.keys(this.props).filter((function(e){return!t.internalProps.includes(e)})).reduce((function(e,n){return e[n]=t.props[n],e}),{})}},{key:"getLocalEditorElement",value:function(){return _(this.props.children,this.props._getEditorCache(),this.props._columnIndex)}},{key:"createColumnSettings",value:function(){var t=this.props._getChildElementByType(this.props.children,"hot-renderer"),e=this.getLocalEditorElement();this.columnSettings=j.getSettings(this.getSettingsProps()),null!==t&&(this.columnSettings.renderer=this.props._getRendererWrapper(t),this.props._componentRendererColumns.set(this.props._columnIndex,!0)),null!==e&&(this.columnSettings.editor=this.props._getEditorClass(e,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 t=I(this.props._getOwnerDocument(),this.getLocalEditorElement());return i.default.createElement(i.default.Fragment,null,t)}}]),n}(i.default.Component),B=function(t){h(n,t);var e=v(n);function n(){var t;return u(this,n),(t=e.apply(this,arguments)).state={portals:[]},t}return p(n,[{key:"render",value:function(){return i.default.createElement(i.default.Fragment,null,this.state.portals)}}]),n}(i.default.Component);function M(t,e){return t(e={exports:{}},e.exports),e.exports}var T="function"==typeof Symbol&&Symbol.for,D=T?Symbol.for("react.element"):60103,x=T?Symbol.for("react.portal"):60106,H=T?Symbol.for("react.fragment"):60107,$=T?Symbol.for("react.strict_mode"):60108,V=T?Symbol.for("react.profiler"):60114,W=T?Symbol.for("react.provider"):60109,F=T?Symbol.for("react.context"):60110,z=T?Symbol.for("react.async_mode"):60111,N=T?Symbol.for("react.concurrent_mode"):60111,L=T?Symbol.for("react.forward_ref"):60112,G=T?Symbol.for("react.suspense"):60113,U=T?Symbol.for("react.suspense_list"):60120,q=T?Symbol.for("react.memo"):60115,K=T?Symbol.for("react.lazy"):60116,Y=T?Symbol.for("react.block"):60121,Z=T?Symbol.for("react.fundamental"):60117,J=T?Symbol.for("react.responder"):60118,Q=T?Symbol.for("react.scope"):60119;function X(t){if("object"===c(t)&&null!==t){var e=t.$$typeof;switch(e){case D:switch(t=t.type){case z:case N:case H:case V:case $:case G:return t;default:switch(t=t&&t.$$typeof){case F:case L:case K:case q:case W:return t;default:return e}}case x:return e}}}function tt(t){return X(t)===N}var et={AsyncMode:z,ConcurrentMode:N,ContextConsumer:F,ContextProvider:W,Element:D,ForwardRef:L,Fragment:H,Lazy:K,Memo:q,Portal:x,Profiler:V,StrictMode:$,Suspense:G,isAsyncMode:function(t){return tt(t)||X(t)===z},isConcurrentMode:tt,isContextConsumer:function(t){return X(t)===F},isContextProvider:function(t){return X(t)===W},isElement:function(t){return"object"===c(t)&&null!==t&&t.$$typeof===D},isForwardRef:function(t){return X(t)===L},isFragment:function(t){return X(t)===H},isLazy:function(t){return X(t)===K},isMemo:function(t){return X(t)===q},isPortal:function(t){return X(t)===x},isProfiler:function(t){return X(t)===V},isStrictMode:function(t){return X(t)===$},isSuspense:function(t){return X(t)===G},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===H||t===N||t===V||t===$||t===G||t===U||"object"===c(t)&&null!==t&&(t.$$typeof===K||t.$$typeof===q||t.$$typeof===W||t.$$typeof===F||t.$$typeof===L||t.$$typeof===Z||t.$$typeof===J||t.$$typeof===Q||t.$$typeof===Y)},typeOf:X};M((function(t,e){}));M((function(t){t.exports=et}));!function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;10>n;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}();function nt(){}function rt(){}Function.call.bind(Object.prototype.hasOwnProperty),rt.resetWarningCache=nt;var ot=M((function(t){t.exports=function(){function t(t,e,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 e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:rt,resetWarningCache:nt};return n.PropTypes=n,n}()})),it=function(t){h(n,t);var e=v(n);function n(){var t;return u(this,n),(t=e.apply(this,arguments)).id=null,t.__hotInstance=null,t.hotElementRef=null,t.columnSettings=[],t.renderersPortalManager=null,t.portalCacheArray=[],t.renderedCellCache=new Map,t.editorCache=new Map,t.componentRendererColumns=new Map,t}return p(n,[{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(t){this.__hotInstance=t}},{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 this.hotElementRef?this.hotElementRef.ownerDocument:document}},{key:"setHotElementRef",value:function(t){this.hotElementRef=t}},{key:"getRendererWrapper",value:function(t){var e=this;return function(n,r,o,i,a,l,s){var c=e.getRenderedCellCache();if(c.has("".concat(o,"-").concat(i))&&(r.innerHTML=c.get("".concat(o,"-").concat(i)).innerHTML),r&&!r.getAttribute("ghost-table")){for(var u=R(t,{TD:r,row:o,col:i,prop:a,value:l,cellProperties:s,isRenderer:!0},r.ownerDocument),d=u.portal,p=u.portalContainer;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(p),e.portalCacheArray.push(d)}return c.set("".concat(o,"-").concat(i),r),r}}},{key:"getEditorClass",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S,r=O(t),o=null===(e=this.getEditorCache().get(r))||void 0===e?void 0:e.get(n);return this.makeEditorClass(o)}},{key:"makeEditorClass",value:function(t){var e=function(e){h(r,e);var n=v(r);function r(e){var o;return u(this,r),o=n.call(this,e),t.hotCustomEditorInstance=g(o),o.editorComponent=t,o}return p(r,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}]),r}(l.default.editors.BaseEditor);return Object.getOwnPropertyNames(l.default.editors.BaseEditor.prototype).forEach((function(n){"constructor"!==n&&(e.prototype[n]=function(){for(var e,r=arguments.length,o=Array(r),i=0;r>i;i++)o[i]=arguments[i];return(e=t[n]).call.apply(e,[t].concat(o))})})),e}},{key:"getGlobalRendererElement",value:function(){return w(this.props.children,"hot-renderer")}},{key:"getGlobalEditorElement",value:function(){return _(this.props.children,this.getEditorCache())}},{key:"createNewGlobalSettings",value:function(){var t=j.getSettings(this.props),e=this.getGlobalRendererElement(),n=this.getGlobalEditorElement();return t.columns=this.columnSettings.length?this.columnSettings:t.columns,t.editor=n?this.getEditorClass(n,S):this.props.editor||(this.props.settings?this.props.settings.editor:void 0),e?(t.renderer=this.getRendererWrapper(e),this.componentRendererColumns.set("global",!0)):t.renderer=this.props.renderer||(this.props.settings?this.props.settings.renderer:void 0),t}},{key:"displayAutoSizeWarning",value:function(t){var e,n;this.hotInstance&&(null!==(e=this.hotInstance.getPlugin("autoRowSize"))&&void 0!==e&&e.enabled||null!==(n=this.hotInstance.getPlugin("autoColumnSize"))&&void 0!==n&&n.enabled)&&this.componentRendererColumns.size>0&&function(){var t;void 0!==console&&(t=console).warn.apply(t,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(t,e){this.columnSettings[e]=t}},{key:"handsontableBeforeViewRender",value:function(){this.getRenderedCellCache().clear()}},{key:"handsontableAfterViewRender",value:function(){var t=this;this.renderersPortalManager.setState({portals:b(this.portalCacheArray)},(function(){t.portalCacheArray=[]}))}},{key:"updateHot",value:function(t){this.hotInstance&&this.hotInstance.updateSettings(t,!1)}},{key:"setRenderersPortalManagerRef",value:function(t){this.renderersPortalManager=t}},{key:"componentDidMount",value:function(){var t=this,e=this.createNewGlobalSettings();this.hotInstance=new l.default.Core(this.hotElementRef,e),this.hotInstance.addHook("beforeViewRender",(function(){return t.handsontableBeforeViewRender()})),this.hotInstance.addHook("afterViewRender",(function(){return t.handsontableAfterViewRender()})),this.hotInstance.init(),this.displayAutoSizeWarning(e)}},{key:"componentDidUpdate",value:function(){this.clearCache();var t=this.createNewGlobalSettings();this.updateHot(t),this.displayAutoSizeWarning(t)}},{key:"componentWillUnmount",value:function(){this.clearCache(),this.hotInstance&&this.hotInstance.destroy()}},{key:"render",value:function(){var t=this,e=P(this.props),n=i.default.Children.toArray(this.props.children).filter((function(t){return function(t){return t.type===A}(t)})).map((function(e,n){return i.default.cloneElement(e,{_componentRendererColumns:t.componentRendererColumns,_emitColumnSettings:t.setHotColumnSettings.bind(t),_columnIndex:n,_getChildElementByType:w.bind(t),_getRendererWrapper:t.getRendererWrapper.bind(t),_getEditorClass:t.getEditorClass.bind(t),_getOwnerDocument:t.getOwnerDocument.bind(t),_getEditorCache:t.getEditorCache.bind(t),children:e.props.children})})),r=I(this.getOwnerDocument(),this.getGlobalEditorElement());return i.default.createElement(i.default.Fragment,null,i.default.createElement("div",Object.assign({ref:this.setHotElementRef.bind(this)},e),n),i.default.createElement(B,{ref:this.setRenderersPortalManagerRef.bind(this)}),r)}}],[{key:"version",get:function(){return"0.0.0-next-e8dd43f-20230731"}}]),n}(i.default.Component);it.propTypes={style:ot.object,id:ot.string,className:ot.string};var at=function(t){h(n,t);var e=v(n);function n(){var t;return u(this,n),(t=e.apply(this,arguments)).name="BaseEditorComponent",t.instance=null,t.row=null,t.col=null,t.prop=null,t.TD=null,t.originalValue=null,t.cellProperties=null,t.state=null,t.hotInstance=null,t.hotCustomEditorInstance=null,t.hot=null,t}return p(n,[{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 t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];(t=l.default.editors.BaseEditor.prototype._fireCallbacks).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"beginEditing",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.beginEditing).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"cancelChanges",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.cancelChanges).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"checkEditorSection",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.checkEditorSection).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"close",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.close).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"discardEditor",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.discardEditor).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"enableFullEditMode",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.enableFullEditMode).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"extend",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.extend).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"finishEditing",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.finishEditing).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"focus",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.focus).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"getValue",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.getValue).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"init",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.init).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"isInFullEditMode",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.isInFullEditMode).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"isOpened",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.isOpened).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"isWaiting",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.isWaiting).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"open",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.open).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"prepare",value:function(t,e,n,r,o,i){return this.hotInstance=i.instance,this.row=t,this.col=e,this.prop=n,this.TD=r,this.originalValue=o,this.cellProperties=i,l.default.editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance,t,e,n,r,o,i)}},{key:"saveValue",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.saveValue).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"setValue",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.setValue).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"addHook",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.addHook).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"removeHooksByKey",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.removeHooksByKey).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"clearHooks",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.clearHooks).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCell",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.getEditedCell).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellRect",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.getEditedCellRect).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellsZIndex",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(t,[this.hotCustomEditorInstance].concat(n))}}]),n}(i.default.Component);t.BaseEditorComponent=at,t.HotColumn=A,t.HotTable=it,t.default=it,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
30
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("react-dom"),require("handsontable/base")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","handsontable/base"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Handsontable=t.Handsontable||{},t.Handsontable.react={}),t.React,t.ReactDOM,t.Handsontable)}(this,(function(t,e,n,r){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=o(e),a=o(n),l=o(r);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,C(r.key),r)}}function p(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t,e,n){return(e=C(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return g(t)}(this,n)}}function b(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t)||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 E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);e>n;n++)r[n]=t[n];return r}function C(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var k=null,S="global";function w(t,e){var n=i.default.Children.toArray(t),r=i.default.Children.count(t),o=null;return 0!==r&&(o=1===r&&n[0].props[e]?n[0]:n.find((function(t){return void 0!==t.props[e]}))),o||null}function O(t){return t?t.type.WrappedComponent?t.type.WrappedComponent:t.type:null}function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=arguments.length>1?arguments[1]:void 0;if(null===e)return null;var n=P(e.props,!1);return n.className="".concat("hot-wrapper-editor-container"," ").concat(n.className),a.default.createPortal(i.default.createElement("div",Object.assign({},n),e),t.body)}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S,r=w(t,"hot-editor"),o=O(r);return r?i.default.cloneElement(r,{emitEditorInstance:function(t,n){e.get(o)||e.set(o,new Map),e.get(o).set(null!=n?n:S,t)},editorColumnScope:n,isEditor:!0}):null}function R(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;n||(n=document),k||(k=n.createDocumentFragment());var r=n.createElement("DIV");k.appendChild(r);var o=i.default.cloneElement(t,function(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({key:"".concat(e.row,"-").concat(e.col)},e));return{portal:a.default.createPortal(o,r,"".concat(e.row,"-").concat(e.col,"-").concat(Math.random())),portalContainer:r}}function P(t){return{id:t.id||(1>=arguments.length||void 0===arguments[1]||arguments[1]?"hot-"+Math.random().toString(36).substring(5):void 0),className:t.className||"",style:t.style||{}}}var j=function(){function t(){u(this,t)}return p(t,null,[{key:"getSettings",value:function(t){var e={};if(t.settings){var n=t.settings;for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}for(var o in t)"settings"!==o&&"children"!==o&&t.hasOwnProperty(o)&&(e[o]=t[o]);return e}}]),t}(),A=function(t){h(n,t);var e=v(n);function n(){return u(this,n),e.apply(this,arguments)}return p(n,[{key:"getSettingsProps",value:function(){var t=this;return this.internalProps=["_componentRendererColumns","_emitColumnSettings","_columnIndex","_getChildElementByType","_getRendererWrapper","_getEditorClass","_getEditorCache","_getOwnerDocument","hot-renderer","hot-editor","children"],Object.keys(this.props).filter((function(e){return!t.internalProps.includes(e)})).reduce((function(e,n){return e[n]=t.props[n],e}),{})}},{key:"getLocalEditorElement",value:function(){return _(this.props.children,this.props._getEditorCache(),this.props._columnIndex)}},{key:"createColumnSettings",value:function(){var t=this.props._getChildElementByType(this.props.children,"hot-renderer"),e=this.getLocalEditorElement();this.columnSettings=j.getSettings(this.getSettingsProps()),null!==t&&(this.columnSettings.renderer=this.props._getRendererWrapper(t),this.props._componentRendererColumns.set(this.props._columnIndex,!0)),null!==e&&(this.columnSettings.editor=this.props._getEditorClass(e,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 t=I(this.props._getOwnerDocument(),this.getLocalEditorElement());return i.default.createElement(i.default.Fragment,null,t)}}]),n}(i.default.Component),B=function(t){h(n,t);var e=v(n);function n(){var t;return u(this,n),(t=e.apply(this,arguments)).state={portals:[]},t}return p(n,[{key:"render",value:function(){return i.default.createElement(i.default.Fragment,null,this.state.portals)}}]),n}(i.default.Component);function M(t,e){return t(e={exports:{}},e.exports),e.exports}var T="function"==typeof Symbol&&Symbol.for,D=T?Symbol.for("react.element"):60103,x=T?Symbol.for("react.portal"):60106,H=T?Symbol.for("react.fragment"):60107,$=T?Symbol.for("react.strict_mode"):60108,V=T?Symbol.for("react.profiler"):60114,W=T?Symbol.for("react.provider"):60109,F=T?Symbol.for("react.context"):60110,z=T?Symbol.for("react.async_mode"):60111,N=T?Symbol.for("react.concurrent_mode"):60111,L=T?Symbol.for("react.forward_ref"):60112,G=T?Symbol.for("react.suspense"):60113,U=T?Symbol.for("react.suspense_list"):60120,q=T?Symbol.for("react.memo"):60115,K=T?Symbol.for("react.lazy"):60116,Y=T?Symbol.for("react.block"):60121,Z=T?Symbol.for("react.fundamental"):60117,J=T?Symbol.for("react.responder"):60118,Q=T?Symbol.for("react.scope"):60119;function X(t){if("object"===c(t)&&null!==t){var e=t.$$typeof;switch(e){case D:switch(t=t.type){case z:case N:case H:case V:case $:case G:return t;default:switch(t=t&&t.$$typeof){case F:case L:case K:case q:case W:return t;default:return e}}case x:return e}}}function tt(t){return X(t)===N}var et={AsyncMode:z,ConcurrentMode:N,ContextConsumer:F,ContextProvider:W,Element:D,ForwardRef:L,Fragment:H,Lazy:K,Memo:q,Portal:x,Profiler:V,StrictMode:$,Suspense:G,isAsyncMode:function(t){return tt(t)||X(t)===z},isConcurrentMode:tt,isContextConsumer:function(t){return X(t)===F},isContextProvider:function(t){return X(t)===W},isElement:function(t){return"object"===c(t)&&null!==t&&t.$$typeof===D},isForwardRef:function(t){return X(t)===L},isFragment:function(t){return X(t)===H},isLazy:function(t){return X(t)===K},isMemo:function(t){return X(t)===q},isPortal:function(t){return X(t)===x},isProfiler:function(t){return X(t)===V},isStrictMode:function(t){return X(t)===$},isSuspense:function(t){return X(t)===G},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===H||t===N||t===V||t===$||t===G||t===U||"object"===c(t)&&null!==t&&(t.$$typeof===K||t.$$typeof===q||t.$$typeof===W||t.$$typeof===F||t.$$typeof===L||t.$$typeof===Z||t.$$typeof===J||t.$$typeof===Q||t.$$typeof===Y)},typeOf:X};M((function(t,e){}));M((function(t){t.exports=et}));!function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;10>n;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}();function nt(){}function rt(){}Function.call.bind(Object.prototype.hasOwnProperty),rt.resetWarningCache=nt;var ot=M((function(t){t.exports=function(){function t(t,e,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 e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:rt,resetWarningCache:nt};return n.PropTypes=n,n}()})),it=function(t){h(n,t);var e=v(n);function n(){var t;return u(this,n),(t=e.apply(this,arguments)).id=null,t.__hotInstance=null,t.hotElementRef=null,t.columnSettings=[],t.renderersPortalManager=null,t.portalCacheArray=[],t.renderedCellCache=new Map,t.editorCache=new Map,t.componentRendererColumns=new Map,t}return p(n,[{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(t){this.__hotInstance=t}},{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 this.hotElementRef?this.hotElementRef.ownerDocument:document}},{key:"setHotElementRef",value:function(t){this.hotElementRef=t}},{key:"getRendererWrapper",value:function(t){var e=this;return function(n,r,o,i,a,l,s){var c=e.getRenderedCellCache();if(c.has("".concat(o,"-").concat(i))&&(r.innerHTML=c.get("".concat(o,"-").concat(i)).innerHTML),r&&!r.getAttribute("ghost-table")){for(var u=R(t,{TD:r,row:o,col:i,prop:a,value:l,cellProperties:s,isRenderer:!0},r.ownerDocument),d=u.portal,p=u.portalContainer;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(p),e.portalCacheArray.push(d)}return c.set("".concat(o,"-").concat(i),r),r}}},{key:"getEditorClass",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S,r=O(t),o=null===(e=this.getEditorCache().get(r))||void 0===e?void 0:e.get(n);return this.makeEditorClass(o)}},{key:"makeEditorClass",value:function(t){var e=function(e){h(r,e);var n=v(r);function r(e){var o;return u(this,r),o=n.call(this,e),t.hotCustomEditorInstance=g(o),o.editorComponent=t,o}return p(r,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}]),r}(l.default.editors.BaseEditor);return Object.getOwnPropertyNames(l.default.editors.BaseEditor.prototype).forEach((function(n){"constructor"!==n&&(e.prototype[n]=function(){for(var e,r=arguments.length,o=Array(r),i=0;r>i;i++)o[i]=arguments[i];return(e=t[n]).call.apply(e,[t].concat(o))})})),e}},{key:"getGlobalRendererElement",value:function(){return w(this.props.children,"hot-renderer")}},{key:"getGlobalEditorElement",value:function(){return _(this.props.children,this.getEditorCache())}},{key:"createNewGlobalSettings",value:function(){var t=j.getSettings(this.props),e=this.getGlobalRendererElement(),n=this.getGlobalEditorElement();return t.columns=this.columnSettings.length?this.columnSettings:t.columns,t.editor=n?this.getEditorClass(n,S):this.props.editor||(this.props.settings?this.props.settings.editor:void 0),e?(t.renderer=this.getRendererWrapper(e),this.componentRendererColumns.set("global",!0)):t.renderer=this.props.renderer||(this.props.settings?this.props.settings.renderer:void 0),t}},{key:"displayAutoSizeWarning",value:function(t){var e,n;this.hotInstance&&(null!==(e=this.hotInstance.getPlugin("autoRowSize"))&&void 0!==e&&e.enabled||null!==(n=this.hotInstance.getPlugin("autoColumnSize"))&&void 0!==n&&n.enabled)&&this.componentRendererColumns.size>0&&function(){var t;void 0!==console&&(t=console).warn.apply(t,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(t,e){this.columnSettings[e]=t}},{key:"handsontableBeforeViewRender",value:function(){this.getRenderedCellCache().clear()}},{key:"handsontableAfterViewRender",value:function(){var t=this;this.renderersPortalManager.setState({portals:b(this.portalCacheArray)},(function(){t.portalCacheArray=[]}))}},{key:"updateHot",value:function(t){this.hotInstance&&this.hotInstance.updateSettings(t,!1)}},{key:"setRenderersPortalManagerRef",value:function(t){this.renderersPortalManager=t}},{key:"componentDidMount",value:function(){var t=this,e=this.createNewGlobalSettings();this.hotInstance=new l.default.Core(this.hotElementRef,e),this.hotInstance.addHook("beforeViewRender",(function(){return t.handsontableBeforeViewRender()})),this.hotInstance.addHook("afterViewRender",(function(){return t.handsontableAfterViewRender()})),this.hotInstance.init(),this.displayAutoSizeWarning(e)}},{key:"componentDidUpdate",value:function(){this.clearCache();var t=this.createNewGlobalSettings();this.updateHot(t),this.displayAutoSizeWarning(t)}},{key:"componentWillUnmount",value:function(){this.clearCache(),this.hotInstance&&this.hotInstance.destroy()}},{key:"render",value:function(){var t=this,e=P(this.props),n=i.default.Children.toArray(this.props.children).filter((function(t){return function(t){return t.type===A}(t)})).map((function(e,n){return i.default.cloneElement(e,{_componentRendererColumns:t.componentRendererColumns,_emitColumnSettings:t.setHotColumnSettings.bind(t),_columnIndex:n,_getChildElementByType:w.bind(t),_getRendererWrapper:t.getRendererWrapper.bind(t),_getEditorClass:t.getEditorClass.bind(t),_getOwnerDocument:t.getOwnerDocument.bind(t),_getEditorCache:t.getEditorCache.bind(t),children:e.props.children})})),r=I(this.getOwnerDocument(),this.getGlobalEditorElement());return i.default.createElement(i.default.Fragment,null,i.default.createElement("div",Object.assign({ref:this.setHotElementRef.bind(this)},e),n),i.default.createElement(B,{ref:this.setRenderersPortalManagerRef.bind(this)}),r)}}],[{key:"version",get:function(){return"0.0.0-next-e17457f-20230807"}}]),n}(i.default.Component);it.propTypes={style:ot.object,id:ot.string,className:ot.string};var at=function(t){h(n,t);var e=v(n);function n(){var t;return u(this,n),(t=e.apply(this,arguments)).name="BaseEditorComponent",t.instance=null,t.row=null,t.col=null,t.prop=null,t.TD=null,t.originalValue=null,t.cellProperties=null,t.state=null,t.hotInstance=null,t.hotCustomEditorInstance=null,t.hot=null,t}return p(n,[{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 t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];(t=l.default.editors.BaseEditor.prototype._fireCallbacks).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"beginEditing",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.beginEditing).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"cancelChanges",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.cancelChanges).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"checkEditorSection",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.checkEditorSection).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"close",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.close).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"discardEditor",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.discardEditor).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"enableFullEditMode",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.enableFullEditMode).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"extend",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.extend).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"finishEditing",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.finishEditing).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"focus",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.focus).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"getValue",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.getValue).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"init",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.init).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"isInFullEditMode",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.isInFullEditMode).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"isOpened",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.isOpened).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"isWaiting",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.isWaiting).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"open",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.open).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"prepare",value:function(t,e,n,r,o,i){return this.hotInstance=i.instance,this.row=t,this.col=e,this.prop=n,this.TD=r,this.originalValue=o,this.cellProperties=i,l.default.editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance,t,e,n,r,o,i)}},{key:"saveValue",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.saveValue).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"setValue",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.setValue).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"addHook",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.addHook).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"removeHooksByKey",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.removeHooksByKey).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"clearHooks",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.clearHooks).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCell",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.getEditedCell).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellRect",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.getEditedCellRect).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellsZIndex",value:function(){for(var t,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return(t=l.default.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(t,[this.hotCustomEditorInstance].concat(n))}}]),n}(i.default.Component);t.BaseEditorComponent=at,t.HotColumn=A,t.HotTable=it,t.default=it,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
31
31
|
//# sourceMappingURL=react-handsontable.min.js.map
|
|
@@ -484,7 +484,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
484
484
|
return RenderersPortalManager;
|
|
485
485
|
}(React.Component);
|
|
486
486
|
|
|
487
|
-
var version="0.0.0-next-
|
|
487
|
+
var version="0.0.0-next-e17457f-20230807";
|
|
488
488
|
|
|
489
489
|
function createCommonjsModule(fn, module) {
|
|
490
490
|
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": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-e17457f-20230807",
|
|
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",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"babel-core": "^7.0.0-bridge.0",
|
|
67
67
|
"cpy-cli": "^3.1.1",
|
|
68
68
|
"cross-env": "^7.0.3",
|
|
69
|
-
"handsontable": "0.0.0-next-
|
|
69
|
+
"handsontable": "0.0.0-next-e17457f-20230807",
|
|
70
70
|
"jest": "^25.1.0",
|
|
71
71
|
"prop-types": "^15.7.2",
|
|
72
72
|
"react-dom": "^16.10.2",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"uglify-js": "^3.4.9"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"handsontable": "0.0.0-next-
|
|
90
|
+
"handsontable": "0.0.0-next-e17457f-20230807"
|
|
91
91
|
},
|
|
92
92
|
"scripts": {
|
|
93
93
|
"build": "npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:min",
|