@handsontable/react 11.1.0 → 12.1.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"react-handsontable.js","sources":["../src/helpers.tsx","../src/settingsMapper.ts","../src/hotColumn.tsx","../src/portalManager.tsx","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../src/hotTable.tsx","../src/baseEditorComponent.tsx"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport {\n HotEditorCache,\n HotEditorElement\n} from './types';\n\nlet bulkComponentContainer = null;\n\n/**\n * Warning message for the `autoRowSize`/`autoColumnSize` compatibility check.\n */\nexport const AUTOSIZE_WARNING = 'Your `HotTable` configuration includes `autoRowSize`/`autoColumnSize` options, which are not compatible with ' +\n ' the component-based renderers`. Disable `autoRowSize` and `autoColumnSize` to prevent row and column misalignment.';\n\n/**\n * Message for the warning thrown if the Handsontable instance has been destroyed.\n */\nexport const HOT_DESTROYED_WARNING = 'The Handsontable instance bound to this component was destroyed and cannot be' +\n ' used properly.';\n\n/**\n * String identifier for the global-scoped editor components.\n */\nexport const GLOBAL_EDITOR_SCOPE = 'global';\n\n/**\n * Default classname given to the wrapper container.\n */\nconst DEFAULT_CLASSNAME = 'hot-wrapper-editor-container';\n\n/**\n * Logs warn to the console if the `console` object is exposed.\n *\n * @param {...*} args Values which will be logged.\n */\nexport function warn(...args) {\n if (typeof console !== 'undefined') {\n console.warn(...args);\n }\n}\n\n/**\n * Filter out and return elements of the provided `type` from the `HotColumn` component's children.\n *\n * @param {React.ReactNode} children HotTable children array.\n * @param {String} type Either `'hot-renderer'` or `'hot-editor'`.\n * @returns {Object|null} A child (React node) or `null`, if no child of that type was found.\n */\nexport function getChildElementByType(children: React.ReactNode, type: string): React.ReactElement | null {\n const childrenArray: React.ReactNode[] = React.Children.toArray(children);\n const childrenCount: number = React.Children.count(children);\n let wantedChild: React.ReactNode | null = null;\n\n if (childrenCount !== 0) {\n if (childrenCount === 1 && (childrenArray[0] as React.ReactElement).props[type]) {\n wantedChild = childrenArray[0];\n\n } else {\n wantedChild = childrenArray.find((child) => {\n return (child as React.ReactElement).props[type] !== void 0;\n });\n }\n }\n\n return (wantedChild as React.ReactElement) || null;\n}\n\n/**\n * Get the reference to the original editor class.\n *\n * @param {React.ReactElement} editorElement React element of the editor class.\n * @returns {Function} Original class of the editor component.\n */\nexport function getOriginalEditorClass(editorElement: HotEditorElement) {\n if (!editorElement) {\n return null;\n }\n\n return editorElement.type.WrappedComponent ? editorElement.type.WrappedComponent : editorElement.type;\n}\n\n/**\n * Remove editor containers from DOM.\n *\n * @param {Document} [doc] Document to be used.\n * @param {Map} editorCache The editor cache reference.\n */\nexport function removeEditorContainers(doc = document): void {\n doc.querySelectorAll(`[class^=\"${DEFAULT_CLASSNAME}\"]`).forEach((domNode) => {\n if (domNode.parentNode) {\n domNode.parentNode.removeChild(domNode);\n }\n });\n}\n\n/**\n * Create an editor portal.\n *\n * @param {Document} [doc] Document to be used.\n * @param {React.ReactElement} editorElement Editor's element.\n * @param {Map} editorCache The editor cache reference.\n * @returns {React.ReactPortal} The portal for the editor.\n */\nexport function createEditorPortal(doc = document, editorElement: HotEditorElement, editorCache: HotEditorCache): React.ReactPortal {\n if (editorElement === null) {\n return;\n }\n\n const editorContainer = doc.createElement('DIV');\n const {id, className, style} = getContainerAttributesProps(editorElement.props, false);\n\n if (id) {\n editorContainer.id = id;\n }\n\n editorContainer.className = [DEFAULT_CLASSNAME, className].join(' ');\n\n if (style) {\n Object.assign(editorContainer.style, style);\n }\n\n doc.body.appendChild(editorContainer);\n\n return ReactDOM.createPortal(editorElement, editorContainer);\n}\n\n/**\n * Get an editor element extended with a instance-emitting method.\n *\n * @param {React.ReactNode} children Component children.\n * @param {Map} editorCache Component's editor cache.\n * @param {string|number} [editorColumnScope] The editor scope (column index or a 'global' string). Defaults to\n * 'global'.\n * @returns {React.ReactElement} An editor element containing the additional methods.\n */\nexport function getExtendedEditorElement(children: React.ReactNode, editorCache: HotEditorCache, editorColumnScope: string | number = GLOBAL_EDITOR_SCOPE): React.ReactElement | null {\n const editorElement = getChildElementByType(children, 'hot-editor');\n const editorClass = getOriginalEditorClass(editorElement);\n\n if (!editorElement) {\n return null;\n }\n\n return React.cloneElement(editorElement, {\n emitEditorInstance: (editorInstance, editorColumnScope) => {\n if (!editorCache.get(editorClass)) {\n editorCache.set(editorClass, new Map());\n }\n\n const cacheEntry = editorCache.get(editorClass);\n\n cacheEntry.set(editorColumnScope ?? GLOBAL_EDITOR_SCOPE, editorInstance);\n },\n editorColumnScope,\n isEditor: true\n } as object);\n}\n\n/**\n * Create a react component and render it to an external DOM done.\n *\n * @param {React.ReactElement} rElement React element to be used as a base for the component.\n * @param {Object} props Props to be passed to the cloned element.\n * @param {Function} callback Callback to be called after the component has been mounted.\n * @param {Document} [ownerDocument] The owner document to set the portal up into.\n * @returns {{portal: React.ReactPortal, portalContainer: HTMLElement}} An object containing the portal and its container.\n */\nexport function createPortal(rElement: React.ReactElement, props, callback: Function, ownerDocument: Document = document): {\n portal: React.ReactPortal,\n portalContainer: HTMLElement\n} {\n if (!ownerDocument) {\n ownerDocument = document;\n }\n\n if (!bulkComponentContainer) {\n bulkComponentContainer = ownerDocument.createDocumentFragment();\n }\n\n const portalContainer = ownerDocument.createElement('DIV');\n bulkComponentContainer.appendChild(portalContainer);\n\n const extendedRendererElement = React.cloneElement(rElement, {\n key: `${props.row}-${props.col}`,\n ...props\n });\n\n return {\n portal: ReactDOM.createPortal(extendedRendererElement, portalContainer, `${props.row}-${props.col}-${Math.random()}`),\n portalContainer\n };\n}\n\n/**\n * Get an object containing the `id`, `className` and `style` keys, representing the corresponding props passed to the\n * component.\n *\n * @param {Object} props Object containing the react element props.\n * @param {Boolean} randomizeId If set to `true`, the function will randomize the `id` property when no `id` was present in the `prop` object.\n * @returns An object containing the `id`, `className` and `style` keys, representing the corresponding props passed to the\n * component.\n */\nexport function getContainerAttributesProps(props, randomizeId: boolean = true): {id: string, className: string, style: object} {\n return {\n id: props.id || (randomizeId ? 'hot-' + Math.random().toString(36).substring(5) : void 0),\n className: props.className || '',\n style: props.style || {},\n }\n}\n\n/**\n * Add the `UNSAFE_` prefixes to the deprecated lifecycle methods for React >= 16.3.\n *\n * @param {Object} instance Instance to have the methods renamed.\n */\nexport function addUnsafePrefixes(instance: {\n UNSAFE_componentWillUpdate?: Function,\n componentWillUpdate: Function,\n UNSAFE_componentWillMount?: Function,\n componentWillMount: Function\n}): void {\n const reactSemverArray = React.version.split('.').map((v) => parseInt(v));\n const shouldPrefix = reactSemverArray[0] >= 16 && reactSemverArray[1] >= 3;\n\n if (shouldPrefix) {\n instance.UNSAFE_componentWillUpdate = instance.componentWillUpdate;\n instance.componentWillUpdate = void 0;\n\n instance.UNSAFE_componentWillMount = instance.componentWillMount;\n instance.componentWillMount = void 0;\n }\n}\n","import Handsontable from 'handsontable/base';\nimport { HotTableProps } from './types';\n\nexport class SettingsMapper {\n /**\n * Parse component settings into Handosntable-compatible settings.\n *\n * @param {Object} properties Object containing properties from the HotTable object.\n * @returns {Object} Handsontable-compatible settings object.\n */\n static getSettings(properties: HotTableProps): Handsontable.GridSettings {\n let newSettings: Handsontable.GridSettings = {};\n\n if (properties.settings) {\n let settings = properties.settings;\n for (const key in settings) {\n if (settings.hasOwnProperty(key)) {\n newSettings[key] = settings[key];\n }\n }\n }\n\n for (const key in properties) {\n if (key !== 'settings' && key !== 'children' && properties.hasOwnProperty(key)) {\n newSettings[key] = properties[key];\n }\n }\n\n return newSettings;\n }\n}\n","import React, { ReactPortal } from 'react';\nimport { HotTableProps, HotColumnProps } from './types';\nimport {\n addUnsafePrefixes,\n createEditorPortal,\n getExtendedEditorElement\n} from './helpers';\nimport { SettingsMapper } from './settingsMapper';\nimport Handsontable from 'handsontable/base';\n\nclass HotColumn extends React.Component<HotColumnProps, {}> {\n internalProps: string[];\n columnSettings: Handsontable.ColumnSettings;\n\n /**\n * Local editor portal cache.\n *\n * @private\n * @type {ReactPortal}\n */\n private localEditorPortal: ReactPortal = null;\n\n /**\n * HotColumn class constructor.\n *\n * @param {HotColumnProps} props Component props.\n * @param {*} [context] Component context.\n */\n constructor(props: HotColumnProps, context?: any) {\n super(props, context);\n\n addUnsafePrefixes(this);\n }\n\n /**\n * Get the local editor portal cache property.\n *\n * @return {ReactPortal} Local editor portal.\n */\n getLocalEditorPortal(): ReactPortal {\n return this.localEditorPortal;\n }\n\n /**\n * Set the local editor portal cache property.\n *\n * @param {ReactPortal} portal Local editor portal.\n */\n setLocalEditorPortal(portal): void {\n this.localEditorPortal = portal;\n }\n\n /**\n * Filter out all the internal properties and return an object with just the Handsontable-related props.\n *\n * @returns {Object}\n */\n getSettingsProps(): HotTableProps {\n this.internalProps = ['__componentRendererColumns', '_emitColumnSettings', '_columnIndex', '_getChildElementByType', '_getRendererWrapper',\n '_getEditorClass', '_getEditorCache', '_getOwnerDocument', 'hot-renderer', 'hot-editor', 'children'];\n\n return Object.keys(this.props)\n .filter(key => {\n return !this.internalProps.includes(key);\n })\n .reduce((obj, key) => {\n obj[key] = this.props[key];\n\n return obj;\n }, {});\n }\n\n /**\n * Check whether the HotColumn component contains a provided prop.\n *\n * @param {String} propName Property name.\n * @returns {Boolean}\n */\n hasProp(propName: string): boolean {\n return !!this.props[propName];\n }\n\n /**\n * Get the editor element for the current column.\n *\n * @returns {React.ReactElement} React editor component element.\n */\n getLocalEditorElement(): React.ReactElement | null {\n return getExtendedEditorElement(this.props.children, this.props._getEditorCache(), this.props._columnIndex);\n }\n\n /**\n * Create the column settings based on the data provided to the `HotColumn` component and it's child components.\n */\n createColumnSettings(): void {\n const rendererElement: React.ReactElement = this.props._getChildElementByType(this.props.children, 'hot-renderer');\n const editorElement: React.ReactElement = this.getLocalEditorElement();\n\n this.columnSettings = SettingsMapper.getSettings(this.getSettingsProps()) as unknown as Handsontable.ColumnSettings;\n\n if (rendererElement !== null) {\n this.columnSettings.renderer = this.props._getRendererWrapper(rendererElement);\n this.props._componentRendererColumns.set(this.props._columnIndex, true);\n\n } else if (this.hasProp('renderer')) {\n this.columnSettings.renderer = this.props.renderer;\n\n } else {\n this.columnSettings.renderer = void 0;\n }\n\n if (editorElement !== null) {\n this.columnSettings.editor = this.props._getEditorClass(editorElement, this.props._columnIndex);\n\n } else if (this.hasProp('editor')) {\n this.columnSettings.editor = this.props.editor;\n\n } else {\n this.columnSettings.editor = void 0;\n }\n }\n\n /**\n * Create the local editor portal and its destination HTML element if needed.\n *\n * @param {React.ReactNode} [children] Children of the HotTable instance. Defaults to `this.props.children`.\n */\n createLocalEditorPortal(children = this.props.children): void {\n const editorCache = this.props._getEditorCache();\n const localEditorElement: React.ReactElement = getExtendedEditorElement(children, editorCache, this.props._columnIndex);\n\n if (localEditorElement) {\n this.setLocalEditorPortal(createEditorPortal(this.props._getOwnerDocument(), localEditorElement, editorCache));\n }\n }\n\n /**\n * Emit the column settings to the parent using a prop passed from the parent.\n */\n emitColumnSettings(): void {\n this.props._emitColumnSettings(this.columnSettings, this.props._columnIndex);\n }\n\n /*\n ---------------------------------------\n ------- React lifecycle methods -------\n ---------------------------------------\n */\n\n /**\n * Logic performed before the mounting of the HotColumn component.\n */\n componentWillMount(): void {\n this.createLocalEditorPortal();\n }\n\n /**\n * Logic performed after the mounting of the HotColumn component.\n */\n componentDidMount(): void {\n this.createColumnSettings();\n this.emitColumnSettings();\n }\n\n /**\n * Logic performed before the updating of the HotColumn component.\n */\n componentWillUpdate(nextProps: Readonly<HotColumnProps>, nextState: Readonly<{}>, nextContext: any): void {\n this.createLocalEditorPortal(nextProps.children);\n }\n\n /**\n * Logic performed after the updating of the HotColumn component.\n */\n componentDidUpdate(): void {\n this.createColumnSettings();\n this.emitColumnSettings();\n }\n\n /**\n * Render the portals of the editors, if there are any.\n *\n * @returns {React.ReactElement}\n */\n render(): React.ReactElement {\n return (\n <React.Fragment>\n {this.getLocalEditorPortal()}\n </React.Fragment>\n )\n }\n}\n\nexport { HotColumn };\n","import React from 'react';\n\n/**\n * Component class used to manage the renderer component portals.\n */\nexport class PortalManager extends React.Component<{}, {portals?: React.ReactPortal[]}> {\n constructor(props) {\n super(props);\n\n this.state = {\n portals: []\n };\n }\n\n render(): React.ReactNode {\n return (\n <React.Fragment>\n {this.state.portals}\n </React.Fragment>\n )\n }\n}\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","import React from 'react';\nimport Handsontable from 'handsontable/base';\nimport { SettingsMapper } from './settingsMapper';\nimport { PortalManager } from './portalManager';\nimport { HotColumn } from './hotColumn';\nimport * as packageJson from '../package.json';\nimport {\n HotTableProps,\n HotEditorElement,\n HotEditorCache,\n EditorScopeIdentifier\n} from './types';\nimport {\n HOT_DESTROYED_WARNING,\n AUTOSIZE_WARNING,\n GLOBAL_EDITOR_SCOPE,\n createEditorPortal,\n createPortal,\n getChildElementByType,\n getContainerAttributesProps,\n getExtendedEditorElement,\n getOriginalEditorClass,\n addUnsafePrefixes,\n removeEditorContainers,\n warn\n} from './helpers';\nimport PropTypes from 'prop-types';\n\n/**\n * A Handsontable-ReactJS wrapper.\n *\n * To implement, use the `HotTable` tag with properties corresponding to Handsontable options.\n * For example:\n *\n * ```js\n * <HotTable id=\"hot\" data={dataObject} contextMenu={true} colHeaders={true} width={600} height={300} stretchH=\"all\" />\n *\n * // is analogous to\n * let hot = new Handsontable(document.getElementById('hot'), {\n * data: dataObject,\n * contextMenu: true,\n * colHeaders: true,\n * width: 600\n * height: 300\n * });\n *\n * ```\n *\n * @class HotTable\n */\nclass HotTable extends React.Component<HotTableProps, {}> {\n /**\n * The `id` of the main Handsontable DOM element.\n *\n * @type {String}\n */\n id: string = null;\n /**\n * Reference to the Handsontable instance.\n *\n * @private\n * @type {Object}\n */\n __hotInstance: Handsontable | null = null;\n /**\n * Reference to the main Handsontable DOM element.\n *\n * @type {HTMLElement}\n */\n hotElementRef: HTMLElement = null;\n /**\n * Class name added to the component DOM element.\n *\n * @type {String}\n */\n className: string;\n /**\n * Style object passed to the component.\n *\n * @type {React.CSSProperties}\n */\n style: React.CSSProperties;\n\n /**\n * Array of object containing the column settings.\n *\n * @type {Array}\n */\n columnSettings: Handsontable.ColumnSettings[] = [];\n\n /**\n * Component used to manage the renderer portals.\n *\n * @type {React.Component}\n */\n portalManager: PortalManager = null;\n\n /**\n * Array containing the portals cashed to be rendered in bulk after Handsontable's render cycle.\n */\n portalCacheArray: React.ReactPortal[] = [];\n\n /**\n * Global editor portal cache.\n *\n * @private\n * @type {React.ReactPortal}\n */\n private globalEditorPortal: React.ReactPortal = null;\n\n /**\n * The rendered cells cache.\n *\n * @private\n * @type {Map}\n */\n private renderedCellCache: Map<string, HTMLTableCellElement> = new Map();\n\n /**\n * Editor cache.\n *\n * @private\n * @type {Map}\n */\n private editorCache: HotEditorCache = new Map();\n\n /**\n * Map with column indexes (or a string = 'global') as keys, and booleans as values. Each key represents a component-based editor\n * declared for the used column index, or a global one, if the key is the `global` string.\n *\n * @private\n * @type {Map}\n */\n private componentRendererColumns: Map<number | string, boolean> = new Map();\n\n /**\n * HotTable class constructor.\n *\n * @param {HotTableProps} props Component props.\n * @param {*} [context] Component context.\n */\n constructor(props: HotTableProps, context?: any) {\n super(props, context);\n\n addUnsafePrefixes(this);\n }\n\n /**\n * Package version getter.\n *\n * @returns The version number of the package.\n */\n static get version(): string {\n return (packageJson as any).version;\n }\n\n /**\n * Getter for the property storing the Handsontable instance.\n */\n get hotInstance(): Handsontable | null {\n if (!this.__hotInstance || (this.__hotInstance && !this.__hotInstance.isDestroyed)) {\n\n // Will return the Handsontable instance or `null` if it's not yet been created.\n return this.__hotInstance;\n\n } else {\n console.warn(HOT_DESTROYED_WARNING);\n\n return null;\n }\n }\n\n /**\n * Setter for the property storing the Handsontable instance.\n * @param {Handsontable} hotInstance The Handsontable instance.\n */\n set hotInstance(hotInstance) {\n this.__hotInstance = hotInstance;\n }\n\n /**\n * Prop types to be checked at runtime.\n */\n static propTypes: object = {\n style: PropTypes.object,\n id: PropTypes.string,\n className: PropTypes.string\n };\n\n /**\n * Get the rendered table cell cache.\n *\n * @returns {Map}\n */\n getRenderedCellCache(): Map<string, HTMLTableCellElement> {\n return this.renderedCellCache;\n }\n\n /**\n * Get the editor cache and return it.\n *\n * @returns {Map}\n */\n getEditorCache(): HotEditorCache {\n return this.editorCache;\n }\n\n /**\n * Get the global editor portal property.\n *\n * @return {React.ReactPortal} The global editor portal.\n */\n getGlobalEditorPortal(): React.ReactPortal {\n return this.globalEditorPortal;\n }\n\n /**\n * Set the private editor portal cache property.\n *\n * @param {React.ReactPortal} portal Global editor portal.\n */\n setGlobalEditorPortal(portal: React.ReactPortal): void {\n this.globalEditorPortal = portal;\n }\n\n /**\n * Clear both the editor and the renderer cache.\n */\n clearCache(): void {\n const renderedCellCache = this.getRenderedCellCache();\n\n this.setGlobalEditorPortal(null);\n removeEditorContainers(this.getOwnerDocument());\n this.getEditorCache().clear();\n\n renderedCellCache.clear();\n\n this.componentRendererColumns.clear();\n }\n\n /**\n * Get the `Document` object corresponding to the main component element.\n *\n * @returns The `Document` object used by the component.\n */\n getOwnerDocument() {\n return this.hotElementRef ? this.hotElementRef.ownerDocument : document;\n }\n\n /**\n * Set the reference to the main Handsontable DOM element.\n *\n * @param {HTMLElement} element The main Handsontable DOM element.\n */\n private setHotElementRef(element: HTMLElement): void {\n this.hotElementRef = element;\n }\n\n /**\n * Return a renderer wrapper function for the provided renderer component.\n *\n * @param {React.ReactElement} rendererElement React renderer component.\n * @returns {Handsontable.renderers.Base} The Handsontable rendering function.\n */\n getRendererWrapper(rendererElement: React.ReactElement): typeof Handsontable.renderers.BaseRenderer | any {\n const hotTableComponent = this;\n\n return function (instance, TD, row, col, prop, value, cellProperties) {\n const renderedCellCache = hotTableComponent.getRenderedCellCache();\n\n if (renderedCellCache.has(`${row}-${col}`)) {\n TD.innerHTML = renderedCellCache.get(`${row}-${col}`).innerHTML;\n }\n\n if (TD && !TD.getAttribute('ghost-table')) {\n\n const {portal, portalContainer} = createPortal(rendererElement, {\n TD,\n row,\n col,\n prop,\n value,\n cellProperties,\n isRenderer: true\n }, () => {\n }, TD.ownerDocument);\n\n while (TD.firstChild) {\n TD.removeChild(TD.firstChild);\n }\n\n TD.appendChild(portalContainer);\n\n hotTableComponent.portalCacheArray.push(portal);\n }\n\n renderedCellCache.set(`${row}-${col}`, TD);\n\n return TD;\n };\n }\n\n /**\n * Create a fresh class to be used as an editor, based on the provided editor React element.\n *\n * @param {React.ReactElement} editorElement React editor component.\n * @param {string|number} [editorColumnScope] The editor scope (column index or a 'global' string). Defaults to\n * 'global'.\n * @returns {Function} A class to be passed to the Handsontable editor settings.\n */\n getEditorClass(editorElement: HotEditorElement, editorColumnScope: EditorScopeIdentifier = GLOBAL_EDITOR_SCOPE): typeof Handsontable.editors.BaseEditor {\n const editorClass = getOriginalEditorClass(editorElement);\n const editorCache = this.getEditorCache();\n let cachedComponent: React.Component = editorCache.get(editorClass)?.get(editorColumnScope);\n\n return this.makeEditorClass(cachedComponent);\n }\n\n /**\n * Create a class to be passed to the Handsontable's settings.\n *\n * @param {React.ReactElement} editorComponent React editor component.\n * @returns {Function} A class to be passed to the Handsontable editor settings.\n */\n makeEditorClass(editorComponent: React.Component): typeof Handsontable.editors.BaseEditor {\n const customEditorClass = class CustomEditor extends Handsontable.editors.BaseEditor implements Handsontable.editors.BaseEditor {\n editorComponent: React.Component;\n\n constructor(hotInstance) {\n super(hotInstance);\n\n (editorComponent as any).hotCustomEditorInstance = this;\n\n this.editorComponent = editorComponent;\n }\n\n focus() {\n }\n\n getValue() {\n }\n\n setValue() {\n }\n\n open() {\n }\n\n close() {\n }\n } as any;\n\n // Fill with the rest of the BaseEditor methods\n Object.getOwnPropertyNames(Handsontable.editors.BaseEditor.prototype).forEach(propName => {\n if (propName === 'constructor') {\n return;\n }\n\n customEditorClass.prototype[propName] = function (...args) {\n return editorComponent[propName].call(editorComponent, ...args);\n }\n });\n\n return customEditorClass;\n }\n\n /**\n * Get the renderer element for the entire HotTable instance.\n *\n * @returns {React.ReactElement} React renderer component element.\n */\n getGlobalRendererElement(): React.ReactElement {\n const hotTableSlots: React.ReactNode = this.props.children;\n\n return getChildElementByType(hotTableSlots, 'hot-renderer');\n }\n\n /**\n * Get the editor element for the entire HotTable instance.\n *\n * @param {React.ReactNode} [children] Children of the HotTable instance. Defaults to `this.props.children`.\n * @returns {React.ReactElement} React editor component element.\n */\n getGlobalEditorElement(children: React.ReactNode = this.props.children): HotEditorElement | null {\n return getExtendedEditorElement(children, this.getEditorCache());\n }\n\n /**\n * Create the global editor portal and its destination HTML element if needed.\n *\n * @param {React.ReactNode} [children] Children of the HotTable instance. Defaults to `this.props.children`.\n */\n createGlobalEditorPortal(children: React.ReactNode = this.props.children): void {\n const globalEditorElement: HotEditorElement = this.getGlobalEditorElement(children);\n\n if (globalEditorElement) {\n this.setGlobalEditorPortal(createEditorPortal(this.getOwnerDocument(), globalEditorElement, this.getEditorCache()));\n }\n }\n\n /**\n * Create a new settings object containing the column settings and global editors and renderers.\n *\n * @returns {Handsontable.GridSettings} New global set of settings for Handsontable.\n */\n createNewGlobalSettings(): Handsontable.GridSettings {\n const newSettings = SettingsMapper.getSettings(this.props);\n const globalRendererNode = this.getGlobalRendererElement();\n const globalEditorNode = this.getGlobalEditorElement();\n\n newSettings.columns = this.columnSettings.length ? this.columnSettings : newSettings.columns;\n\n if (globalEditorNode) {\n newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);\n\n } else {\n newSettings.editor = this.props.editor || (this.props.settings ? this.props.settings.editor : void 0);\n }\n\n if (globalRendererNode) {\n newSettings.renderer = this.getRendererWrapper(globalRendererNode);\n this.componentRendererColumns.set('global', true);\n\n } else {\n newSettings.renderer = this.props.renderer || (this.props.settings ? this.props.settings.renderer : void 0);\n }\n\n return newSettings;\n }\n\n /**\n * Detect if `autoRowSize` or `autoColumnSize` is defined, and if so, throw an incompatibility warning.\n *\n * @param {Handsontable.GridSettings} newGlobalSettings New global settings passed as Handsontable config.\n */\n displayAutoSizeWarning(newGlobalSettings: Handsontable.GridSettings): void {\n if (\n this.hotInstance &&\n (\n this.hotInstance.getPlugin('autoRowSize')?.enabled ||\n this.hotInstance.getPlugin('autoColumnSize')?.enabled\n )\n ) {\n if (this.componentRendererColumns.size > 0) {\n warn(AUTOSIZE_WARNING);\n }\n }\n }\n\n /**\n * Sets the column settings based on information received from HotColumn.\n *\n * @param {HotTableProps} columnSettings Column settings object.\n * @param {Number} columnIndex Column index.\n */\n setHotColumnSettings(columnSettings: Handsontable.ColumnSettings, columnIndex: number): void {\n this.columnSettings[columnIndex] = columnSettings;\n }\n\n /**\n * Handsontable's `beforeViewRender` hook callback.\n */\n handsontableBeforeViewRender(): void {\n this.getRenderedCellCache().clear();\n }\n\n /**\n * Handsontable's `afterViewRender` hook callback.\n */\n handsontableAfterViewRender(): void {\n this.portalManager.setState(() => {\n return Object.assign({}, {\n portals: this.portalCacheArray\n });\n\n }, () => {\n this.portalCacheArray.length = 0;\n });\n }\n\n /**\n * Call the `updateSettings` method for the Handsontable instance.\n *\n * @param {Object} newSettings The settings object.\n */\n private updateHot(newSettings: Handsontable.GridSettings): void {\n if (this.hotInstance) {\n this.hotInstance.updateSettings(newSettings, false);\n }\n }\n\n /**\n * Set the portal manager ref.\n *\n * @param {React.ReactComponent} pmComponent The PortalManager component.\n */\n private setPortalManagerRef(pmComponent: PortalManager): void {\n this.portalManager = pmComponent;\n }\n\n /*\n ---------------------------------------\n ------- React lifecycle methods -------\n ---------------------------------------\n */\n\n /**\n * Logic performed before the mounting of the component.\n */\n componentWillMount(): void {\n this.clearCache();\n this.createGlobalEditorPortal();\n }\n\n /**\n * Initialize Handsontable after the component has mounted.\n */\n componentDidMount(): void {\n const hotTableComponent = this;\n const newGlobalSettings = this.createNewGlobalSettings();\n\n this.hotInstance = new Handsontable.Core(this.hotElementRef, newGlobalSettings);\n\n this.hotInstance.addHook('beforeViewRender', function (isForced) {\n hotTableComponent.handsontableBeforeViewRender();\n });\n\n this.hotInstance.addHook('afterViewRender', function () {\n hotTableComponent.handsontableAfterViewRender();\n });\n\n // `init` missing in Handsontable's type definitions.\n (this.hotInstance as any).init();\n\n this.displayAutoSizeWarning(newGlobalSettings);\n }\n\n /**\n * Logic performed before the component update.\n */\n componentWillUpdate(nextProps: Readonly<HotTableProps>, nextState: Readonly<{}>, nextContext: any): void {\n this.clearCache();\n removeEditorContainers(this.getOwnerDocument());\n this.createGlobalEditorPortal(nextProps.children);\n }\n\n /**\n * Logic performed after the component update.\n */\n componentDidUpdate(): void {\n const newGlobalSettings = this.createNewGlobalSettings();\n this.updateHot(newGlobalSettings);\n\n this.displayAutoSizeWarning(newGlobalSettings);\n }\n\n /**\n * Destroy the Handsontable instance when the parent component unmounts.\n */\n componentWillUnmount(): void {\n if (this.hotInstance) {\n this.hotInstance.destroy();\n }\n\n removeEditorContainers(this.getOwnerDocument());\n }\n\n /**\n * Render the component.\n */\n render(): React.ReactElement {\n const {id, className, style} = getContainerAttributesProps(this.props);\n const isHotColumn = (childNode: any) => childNode.type === HotColumn;\n let children = React.Children.toArray(this.props.children);\n\n // filter out anything that's not a HotColumn\n children = children.filter(function (childNode: any) {\n return isHotColumn(childNode);\n });\n\n // clone the HotColumn nodes and extend them with the callbacks\n let childClones = children.map((childNode: React.ReactElement, columnIndex: number) => {\n return React.cloneElement(childNode, {\n _componentRendererColumns: this.componentRendererColumns,\n _emitColumnSettings: this.setHotColumnSettings.bind(this),\n _columnIndex: columnIndex,\n _getChildElementByType: getChildElementByType.bind(this),\n _getRendererWrapper: this.getRendererWrapper.bind(this),\n _getEditorClass: this.getEditorClass.bind(this),\n _getOwnerDocument: this.getOwnerDocument.bind(this),\n _getEditorCache: this.getEditorCache.bind(this),\n children: childNode.props.children\n } as object);\n });\n\n // add the global editor to the list of children\n childClones.push(this.getGlobalEditorPortal());\n\n return (\n <React.Fragment>\n <div ref={this.setHotElementRef.bind(this)} id={id} className={className} style={style}>\n {childClones}\n </div>\n <PortalManager ref={this.setPortalManagerRef.bind(this)}></PortalManager>\n </React.Fragment>\n )\n }\n}\n\nexport default HotTable;\nexport { HotTable };\n","import React from 'react';\nimport Handsontable from 'handsontable/base';\nimport { HotEditorProps } from './types';\n\nclass BaseEditorComponent<P = {}, S = {}, SS = any> extends React.Component<P | HotEditorProps, S> implements Handsontable.editors.BaseEditor {\n name = 'BaseEditorComponent';\n instance = null;\n row = null;\n col = null;\n prop = null;\n TD = null;\n originalValue = null;\n cellProperties = null;\n state = null;\n hotInstance = null;\n hotCustomEditorInstance = null;\n hot = null;\n\n constructor(props) {\n super(props);\n\n if (props.emitEditorInstance) {\n props.emitEditorInstance(this, props.editorColumnScope);\n }\n }\n\n // BaseEditor methods:\n private _fireCallbacks(...args) {\n (Handsontable.editors.BaseEditor.prototype as any)._fireCallbacks.call(this.hotCustomEditorInstance, ...args);\n }\n\n beginEditing(...args) {\n return Handsontable.editors.BaseEditor.prototype.beginEditing.call(this.hotCustomEditorInstance, ...args);\n }\n\n cancelChanges(...args) {\n return Handsontable.editors.BaseEditor.prototype.cancelChanges.call(this.hotCustomEditorInstance, ...args);\n }\n\n checkEditorSection(...args) {\n return Handsontable.editors.BaseEditor.prototype.checkEditorSection.call(this.hotCustomEditorInstance, ...args);\n }\n\n close(...args) {\n return Handsontable.editors.BaseEditor.prototype.close.call(this.hotCustomEditorInstance, ...args);\n }\n\n discardEditor(...args) {\n return Handsontable.editors.BaseEditor.prototype.discardEditor.call(this.hotCustomEditorInstance, ...args);\n }\n\n enableFullEditMode(...args) {\n return Handsontable.editors.BaseEditor.prototype.enableFullEditMode.call(this.hotCustomEditorInstance, ...args);\n }\n\n extend(...args) {\n return Handsontable.editors.BaseEditor.prototype.extend.call(this.hotCustomEditorInstance, ...args);\n }\n\n finishEditing(...args) {\n return Handsontable.editors.BaseEditor.prototype.finishEditing.call(this.hotCustomEditorInstance, ...args);\n }\n\n focus(...args) {\n return Handsontable.editors.BaseEditor.prototype.focus.call(this.hotCustomEditorInstance, ...args);\n }\n\n getValue(...args) {\n return Handsontable.editors.BaseEditor.prototype.getValue.call(this.hotCustomEditorInstance, ...args);\n }\n\n init(...args) {\n return Handsontable.editors.BaseEditor.prototype.init.call(this.hotCustomEditorInstance, ...args);\n }\n\n isInFullEditMode(...args) {\n return Handsontable.editors.BaseEditor.prototype.isInFullEditMode.call(this.hotCustomEditorInstance, ...args);\n }\n\n isOpened(...args) {\n return Handsontable.editors.BaseEditor.prototype.isOpened.call(this.hotCustomEditorInstance, ...args);\n }\n\n isWaiting(...args) {\n return Handsontable.editors.BaseEditor.prototype.isWaiting.call(this.hotCustomEditorInstance, ...args);\n }\n\n open(...args) {\n return Handsontable.editors.BaseEditor.prototype.open.call(this.hotCustomEditorInstance, ...args);\n }\n\n prepare(row, col, prop, TD, originalValue, cellProperties) {\n this.hotInstance = cellProperties.instance;\n this.row = row;\n this.col = col;\n this.prop = prop;\n this.TD = TD;\n this.originalValue = originalValue;\n this.cellProperties = cellProperties;\n\n return Handsontable.editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance, row, col, prop, TD, originalValue, cellProperties);\n }\n\n saveValue(...args) {\n return Handsontable.editors.BaseEditor.prototype.saveValue.call(this.hotCustomEditorInstance, ...args);\n }\n\n setValue(...args) {\n return Handsontable.editors.BaseEditor.prototype.setValue.call(this.hotCustomEditorInstance, ...args);\n }\n\n addHook(...args) {\n return (Handsontable.editors.BaseEditor.prototype as any).addHook.call(this.hotCustomEditorInstance, ...args);\n }\n\n removeHooksByKey(...args) {\n return (Handsontable.editors.BaseEditor.prototype as any).removeHooksByKey.call(this.hotCustomEditorInstance, ...args);\n }\n\n clearHooks(...args) {\n return (Handsontable.editors.BaseEditor.prototype as any).clearHooks.call(this.hotCustomEditorInstance, ...args);\n }\n\n getEditedCell(...args) {\n return (Handsontable.editors.BaseEditor.prototype as any).getEditedCell.call(this.hotCustomEditorInstance, ...args);\n }\n\n getEditedCellsZIndex(...args) {\n return (Handsontable.editors.BaseEditor.prototype as any).getEditedCellsZIndex.call(this.hotCustomEditorInstance, ...args);\n }\n}\n\nexport default BaseEditorComponent;\nexport { BaseEditorComponent };\n"],"names":["bulkComponentContainer","AUTOSIZE_WARNING","HOT_DESTROYED_WARNING","GLOBAL_EDITOR_SCOPE","DEFAULT_CLASSNAME","warn","console","getChildElementByType","children","type","childrenArray","React","Children","toArray","childrenCount","count","wantedChild","props","find","child","getOriginalEditorClass","editorElement","WrappedComponent","removeEditorContainers","doc","document","querySelectorAll","forEach","domNode","parentNode","removeChild","createEditorPortal","editorContainer","createElement","getContainerAttributesProps","id","className","style","join","Object","assign","body","appendChild","ReactDOM","createPortal","getExtendedEditorElement","editorCache","editorColumnScope","editorClass","cloneElement","emitEditorInstance","editorInstance","get","set","Map","cacheEntry","isEditor","rElement","callback","ownerDocument","createDocumentFragment","portalContainer","extendedRendererElement","key","row","col","portal","Math","random","randomizeId","toString","substring","addUnsafePrefixes","instance","reactSemverArray","version","split","map","v","parseInt","shouldPrefix","UNSAFE_componentWillUpdate","componentWillUpdate","UNSAFE_componentWillMount","componentWillMount","SettingsMapper","properties","newSettings","settings","hasOwnProperty","HotColumn","context","localEditorPortal","internalProps","keys","filter","includes","reduce","obj","propName","_getEditorCache","_columnIndex","rendererElement","_getChildElementByType","getLocalEditorElement","columnSettings","getSettings","getSettingsProps","renderer","_getRendererWrapper","_componentRendererColumns","hasProp","editor","_getEditorClass","localEditorElement","setLocalEditorPortal","_getOwnerDocument","_emitColumnSettings","createLocalEditorPortal","createColumnSettings","emitColumnSettings","nextProps","nextState","nextContext","Fragment","getLocalEditorPortal","Component","PortalManager","state","portals","b","Symbol","c","d","e","f","g","h","k","l","m","n","p","q","r","t","w","x","y","z","a","u","$$typeof","A","module","require$$0","getOwnPropertySymbols","prototype","propIsEnumerable","propertyIsEnumerable","toObject","val","undefined","TypeError","shouldUseNative","test1","String","getOwnPropertyNames","test2","i","fromCharCode","order2","test3","letter","err","target","source","from","to","symbols","s","arguments","length","call","ReactPropTypesSecret","Function","bind","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","componentName","location","propFullName","secret","Error","name","isRequired","getShim","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","require$$2","HotTable","__hotInstance","isDestroyed","hotInstance","renderedCellCache","globalEditorPortal","getRenderedCellCache","setGlobalEditorPortal","getOwnerDocument","getEditorCache","clear","componentRendererColumns","hotElementRef","hotTableComponent","TD","prop","value","cellProperties","has","innerHTML","getAttribute","isRenderer","firstChild","portalCacheArray","push","cachedComponent","makeEditorClass","editorComponent","customEditorClass","hotCustomEditorInstance","Handsontable","editors","BaseEditor","args","hotTableSlots","globalEditorElement","getGlobalEditorElement","globalRendererNode","getGlobalRendererElement","globalEditorNode","columns","getEditorClass","getRendererWrapper","newGlobalSettings","getPlugin","enabled","size","columnIndex","portalManager","setState","updateSettings","pmComponent","clearCache","createGlobalEditorPortal","createNewGlobalSettings","Core","addHook","isForced","handsontableBeforeViewRender","handsontableAfterViewRender","init","displayAutoSizeWarning","updateHot","destroy","isHotColumn","childNode","childClones","setHotColumnSettings","getGlobalEditorPortal","ref","setHotElementRef","setPortalManagerRef","packageJson","BaseEditorComponent","_fireCallbacks","beginEditing","cancelChanges","checkEditorSection","close","discardEditor","enableFullEditMode","extend","finishEditing","focus","getValue","isInFullEditMode","isOpened","isWaiting","open","originalValue","prepare","saveValue","setValue","removeHooksByKey","clearHooks","getEditedCell","getEditedCellsZIndex"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAIA,sBAAsB,GAAG,IAA7B;AAEA;;;;AAGO,IAAMC,gBAAgB,GAAG,kHAC9B,qHADK;AAGP;;;;AAGO,IAAMC,qBAAqB,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AAzG,EAAR;AACD;;;WAED;;;0CAAcA;AAAAA,QAAAA;;;AACZ,aAAQ,2BAAAH,gCAAY,CAACC,OAAb,CAAqBC,UAArB,CAAgCjG,SAAhC,CAAkD+J,UAAlD,EAA6DrI,IAA7D,iCAAkE,KAAKoE,uBAAvE,SAAmGI,IAAnG,EAAR;AACD;;;WAED;;;0CAAiBA;AAAAA,QAAAA;;;AACf,aAAQ,2BAAAH,gCAAY,CAACC,OAAb,CAAqBC,UAArB,CAAgCjG,SAAhC,CAAkDgK,aAAlD,EAAgEtI,IAAhE,iCAAqE,KAAKoE,uBAA1E,SAAsGI,IAAtG,EAAR;AACD;;;WAED;;;0CAAwBA;AAAAA,QAAAA;;;AACtB,aAAQ,2BAAAH,gCAAY,CAACC,OAAb,CAAqBC,UAArB,CAAgCjG,SAAhC,CAAkDiK,oBAAlD,EAAuEvI,IAAvE,iCAA4E,KAAKoE,uBAAjF,SAA6GI,IAA7G,EAAR;AACD;;;;EA7HyDpP,yBAAK,CAACmH;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"react-handsontable.js","sources":["../src/helpers.tsx","../src/settingsMapper.ts","../src/hotColumn.tsx","../src/portalManager.tsx","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../src/hotTable.tsx","../src/baseEditorComponent.tsx"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport {\n HotEditorCache,\n HotEditorElement\n} from './types';\n\nlet bulkComponentContainer = null;\n\n/**\n * Warning message for the `autoRowSize`/`autoColumnSize` compatibility check.\n */\nexport const AUTOSIZE_WARNING = 'Your `HotTable` configuration includes `autoRowSize`/`autoColumnSize` options, which are not compatible with ' +\n ' the component-based renderers`. Disable `autoRowSize` and `autoColumnSize` to prevent row and column misalignment.';\n\n/**\n * Message for the warning thrown if the Handsontable instance has been destroyed.\n */\nexport const HOT_DESTROYED_WARNING = 'The Handsontable instance bound to this component was destroyed and cannot be' +\n ' used properly.';\n\n/**\n * String identifier for the global-scoped editor components.\n */\nexport const GLOBAL_EDITOR_SCOPE = 'global';\n\n/**\n * Default classname given to the wrapper container.\n */\nconst DEFAULT_CLASSNAME = 'hot-wrapper-editor-container';\n\n/**\n * Logs warn to the console if the `console` object is exposed.\n *\n * @param {...*} args Values which will be logged.\n */\nexport function warn(...args) {\n if (typeof console !== 'undefined') {\n console.warn(...args);\n }\n}\n\n/**\n * Filter out and return elements of the provided `type` from the `HotColumn` component's children.\n *\n * @param {React.ReactNode} children HotTable children array.\n * @param {String} type Either `'hot-renderer'` or `'hot-editor'`.\n * @returns {Object|null} A child (React node) or `null`, if no child of that type was found.\n */\nexport function getChildElementByType(children: React.ReactNode, type: string): React.ReactElement | null {\n const childrenArray: React.ReactNode[] = React.Children.toArray(children);\n const childrenCount: number = React.Children.count(children);\n let wantedChild: React.ReactNode | null = null;\n\n if (childrenCount !== 0) {\n if (childrenCount === 1 && (childrenArray[0] as React.ReactElement).props[type]) {\n wantedChild = childrenArray[0];\n\n } else {\n wantedChild = childrenArray.find((child) => {\n return (child as React.ReactElement).props[type] !== void 0;\n });\n }\n }\n\n return (wantedChild as React.ReactElement) || null;\n}\n\n/**\n * Get the reference to the original editor class.\n *\n * @param {React.ReactElement} editorElement React element of the editor class.\n * @returns {Function} Original class of the editor component.\n */\nexport function getOriginalEditorClass(editorElement: HotEditorElement) {\n if (!editorElement) {\n return null;\n }\n\n return editorElement.type.WrappedComponent ? editorElement.type.WrappedComponent : editorElement.type;\n}\n\n/**\n * Remove editor containers from DOM.\n *\n * @param {Document} [doc] Document to be used.\n * @param {Map} editorCache The editor cache reference.\n */\nexport function removeEditorContainers(doc = document): void {\n doc.querySelectorAll(`[class^=\"${DEFAULT_CLASSNAME}\"]`).forEach((domNode) => {\n if (domNode.parentNode) {\n domNode.parentNode.removeChild(domNode);\n }\n });\n}\n\n/**\n * Create an editor portal.\n *\n * @param {Document} [doc] Document to be used.\n * @param {React.ReactElement} editorElement Editor's element.\n * @param {Map} editorCache The editor cache reference.\n * @returns {React.ReactPortal} The portal for the editor.\n */\nexport function createEditorPortal(doc = document, editorElement: HotEditorElement, editorCache: HotEditorCache): React.ReactPortal {\n if (editorElement === null) {\n return;\n }\n\n const editorContainer = doc.createElement('DIV');\n const {id, className, style} = getContainerAttributesProps(editorElement.props, false);\n\n if (id) {\n editorContainer.id = id;\n }\n\n editorContainer.className = [DEFAULT_CLASSNAME, className].join(' ');\n\n if (style) {\n Object.assign(editorContainer.style, style);\n }\n\n doc.body.appendChild(editorContainer);\n\n return ReactDOM.createPortal(editorElement, editorContainer);\n}\n\n/**\n * Get an editor element extended with a instance-emitting method.\n *\n * @param {React.ReactNode} children Component children.\n * @param {Map} editorCache Component's editor cache.\n * @param {string|number} [editorColumnScope] The editor scope (column index or a 'global' string). Defaults to\n * 'global'.\n * @returns {React.ReactElement} An editor element containing the additional methods.\n */\nexport function getExtendedEditorElement(children: React.ReactNode, editorCache: HotEditorCache, editorColumnScope: string | number = GLOBAL_EDITOR_SCOPE): React.ReactElement | null {\n const editorElement = getChildElementByType(children, 'hot-editor');\n const editorClass = getOriginalEditorClass(editorElement);\n\n if (!editorElement) {\n return null;\n }\n\n return React.cloneElement(editorElement, {\n emitEditorInstance: (editorInstance, editorColumnScope) => {\n if (!editorCache.get(editorClass)) {\n editorCache.set(editorClass, new Map());\n }\n\n const cacheEntry = editorCache.get(editorClass);\n\n cacheEntry.set(editorColumnScope ?? GLOBAL_EDITOR_SCOPE, editorInstance);\n },\n editorColumnScope,\n isEditor: true\n } as object);\n}\n\n/**\n * Create a react component and render it to an external DOM done.\n *\n * @param {React.ReactElement} rElement React element to be used as a base for the component.\n * @param {Object} props Props to be passed to the cloned element.\n * @param {Function} callback Callback to be called after the component has been mounted.\n * @param {Document} [ownerDocument] The owner document to set the portal up into.\n * @returns {{portal: React.ReactPortal, portalContainer: HTMLElement}} An object containing the portal and its container.\n */\nexport function createPortal(rElement: React.ReactElement, props, callback: Function, ownerDocument: Document = document): {\n portal: React.ReactPortal,\n portalContainer: HTMLElement\n} {\n if (!ownerDocument) {\n ownerDocument = document;\n }\n\n if (!bulkComponentContainer) {\n bulkComponentContainer = ownerDocument.createDocumentFragment();\n }\n\n const portalContainer = ownerDocument.createElement('DIV');\n bulkComponentContainer.appendChild(portalContainer);\n\n const extendedRendererElement = React.cloneElement(rElement, {\n key: `${props.row}-${props.col}`,\n ...props\n });\n\n return {\n portal: ReactDOM.createPortal(extendedRendererElement, portalContainer, `${props.row}-${props.col}-${Math.random()}`),\n portalContainer\n };\n}\n\n/**\n * Get an object containing the `id`, `className` and `style` keys, representing the corresponding props passed to the\n * component.\n *\n * @param {Object} props Object containing the react element props.\n * @param {Boolean} randomizeId If set to `true`, the function will randomize the `id` property when no `id` was present in the `prop` object.\n * @returns An object containing the `id`, `className` and `style` keys, representing the corresponding props passed to the\n * component.\n */\nexport function getContainerAttributesProps(props, randomizeId: boolean = true): {id: string, className: string, style: object} {\n return {\n id: props.id || (randomizeId ? 'hot-' + Math.random().toString(36).substring(5) : void 0),\n className: props.className || '',\n style: props.style || {},\n }\n}\n\n/**\n * Add the `UNSAFE_` prefixes to the deprecated lifecycle methods for React >= 16.3.\n *\n * @param {Object} instance Instance to have the methods renamed.\n */\nexport function addUnsafePrefixes(instance: {\n UNSAFE_componentWillUpdate?: Function,\n componentWillUpdate: Function,\n UNSAFE_componentWillMount?: Function,\n componentWillMount: Function\n}): void {\n const reactSemverArray = React.version.split('.').map((v) => parseInt(v));\n const shouldPrefix = (reactSemverArray[0] >= 16 && reactSemverArray[1] >= 3) || reactSemverArray[0] >= 17;\n\n if (shouldPrefix) {\n instance.UNSAFE_componentWillUpdate = instance.componentWillUpdate;\n instance.componentWillUpdate = void 0;\n\n instance.UNSAFE_componentWillMount = instance.componentWillMount;\n instance.componentWillMount = void 0;\n }\n}\n","import Handsontable from 'handsontable/base';\nimport { HotTableProps } from './types';\n\nexport class SettingsMapper {\n /**\n * Parse component settings into Handosntable-compatible settings.\n *\n * @param {Object} properties Object containing properties from the HotTable object.\n * @returns {Object} Handsontable-compatible settings object.\n */\n static getSettings(properties: HotTableProps): Handsontable.GridSettings {\n let newSettings: Handsontable.GridSettings = {};\n\n if (properties.settings) {\n let settings = properties.settings;\n for (const key in settings) {\n if (settings.hasOwnProperty(key)) {\n newSettings[key] = settings[key];\n }\n }\n }\n\n for (const key in properties) {\n if (key !== 'settings' && key !== 'children' && properties.hasOwnProperty(key)) {\n newSettings[key] = properties[key];\n }\n }\n\n return newSettings;\n }\n}\n","import React, { ReactPortal } from 'react';\nimport { HotTableProps, HotColumnProps } from './types';\nimport {\n addUnsafePrefixes,\n createEditorPortal,\n getExtendedEditorElement\n} from './helpers';\nimport { SettingsMapper } from './settingsMapper';\nimport Handsontable from 'handsontable/base';\n\nclass HotColumn extends React.Component<HotColumnProps, {}> {\n internalProps: string[];\n columnSettings: Handsontable.ColumnSettings;\n\n /**\n * Local editor portal cache.\n *\n * @private\n * @type {ReactPortal}\n */\n private localEditorPortal: ReactPortal = null;\n\n /**\n * HotColumn class constructor.\n *\n * @param {HotColumnProps} props Component props.\n * @param {*} [context] Component context.\n */\n constructor(props: HotColumnProps, context?: any) {\n super(props, context);\n\n addUnsafePrefixes(this);\n }\n\n /**\n * Get the local editor portal cache property.\n *\n * @return {ReactPortal} Local editor portal.\n */\n getLocalEditorPortal(): ReactPortal {\n return this.localEditorPortal;\n }\n\n /**\n * Set the local editor portal cache property.\n *\n * @param {ReactPortal} portal Local editor portal.\n */\n setLocalEditorPortal(portal): void {\n this.localEditorPortal = portal;\n }\n\n /**\n * Filter out all the internal properties and return an object with just the Handsontable-related props.\n *\n * @returns {Object}\n */\n getSettingsProps(): HotTableProps {\n this.internalProps = ['__componentRendererColumns', '_emitColumnSettings', '_columnIndex', '_getChildElementByType', '_getRendererWrapper',\n '_getEditorClass', '_getEditorCache', '_getOwnerDocument', 'hot-renderer', 'hot-editor', 'children'];\n\n return Object.keys(this.props)\n .filter(key => {\n return !this.internalProps.includes(key);\n })\n .reduce((obj, key) => {\n obj[key] = this.props[key];\n\n return obj;\n }, {});\n }\n\n /**\n * Check whether the HotColumn component contains a provided prop.\n *\n * @param {String} propName Property name.\n * @returns {Boolean}\n */\n hasProp(propName: string): boolean {\n return !!this.props[propName];\n }\n\n /**\n * Get the editor element for the current column.\n *\n * @returns {React.ReactElement} React editor component element.\n */\n getLocalEditorElement(): React.ReactElement | null {\n return getExtendedEditorElement(this.props.children, this.props._getEditorCache(), this.props._columnIndex);\n }\n\n /**\n * Create the column settings based on the data provided to the `HotColumn` component and it's child components.\n */\n createColumnSettings(): void {\n const rendererElement: React.ReactElement = this.props._getChildElementByType(this.props.children, 'hot-renderer');\n const editorElement: React.ReactElement = this.getLocalEditorElement();\n\n this.columnSettings = SettingsMapper.getSettings(this.getSettingsProps()) as unknown as Handsontable.ColumnSettings;\n\n if (rendererElement !== null) {\n this.columnSettings.renderer = this.props._getRendererWrapper(rendererElement);\n this.props._componentRendererColumns.set(this.props._columnIndex, true);\n\n } else if (this.hasProp('renderer')) {\n this.columnSettings.renderer = this.props.renderer;\n\n } else {\n this.columnSettings.renderer = void 0;\n }\n\n if (editorElement !== null) {\n this.columnSettings.editor = this.props._getEditorClass(editorElement, this.props._columnIndex);\n\n } else if (this.hasProp('editor')) {\n this.columnSettings.editor = this.props.editor;\n\n } else {\n this.columnSettings.editor = void 0;\n }\n }\n\n /**\n * Create the local editor portal and its destination HTML element if needed.\n *\n * @param {React.ReactNode} [children] Children of the HotTable instance. Defaults to `this.props.children`.\n */\n createLocalEditorPortal(children = this.props.children): void {\n const editorCache = this.props._getEditorCache();\n const localEditorElement: React.ReactElement = getExtendedEditorElement(children, editorCache, this.props._columnIndex);\n\n if (localEditorElement) {\n this.setLocalEditorPortal(createEditorPortal(this.props._getOwnerDocument(), localEditorElement, editorCache));\n }\n }\n\n /**\n * Emit the column settings to the parent using a prop passed from the parent.\n */\n emitColumnSettings(): void {\n this.props._emitColumnSettings(this.columnSettings, this.props._columnIndex);\n }\n\n /*\n ---------------------------------------\n ------- React lifecycle methods -------\n ---------------------------------------\n */\n\n /**\n * Logic performed before the mounting of the HotColumn component.\n */\n componentWillMount(): void {\n this.createLocalEditorPortal();\n }\n\n /**\n * Logic performed after the mounting of the HotColumn component.\n */\n componentDidMount(): void {\n this.createColumnSettings();\n this.emitColumnSettings();\n }\n\n /**\n * Logic performed before the updating of the HotColumn component.\n */\n componentWillUpdate(nextProps: Readonly<HotColumnProps>, nextState: Readonly<{}>, nextContext: any): void {\n this.createLocalEditorPortal(nextProps.children);\n }\n\n /**\n * Logic performed after the updating of the HotColumn component.\n */\n componentDidUpdate(): void {\n this.createColumnSettings();\n this.emitColumnSettings();\n }\n\n /**\n * Render the portals of the editors, if there are any.\n *\n * @returns {React.ReactElement}\n */\n render(): React.ReactElement {\n return (\n <React.Fragment>\n {this.getLocalEditorPortal()}\n </React.Fragment>\n )\n }\n}\n\nexport { HotColumn };\n","import React from 'react';\n\n/**\n * Component class used to manage the renderer component portals.\n */\nexport class PortalManager extends React.Component<{}, {portals?: React.ReactPortal[]}> {\n constructor(props) {\n super(props);\n\n this.state = {\n portals: []\n };\n }\n\n render(): React.ReactNode {\n return (\n <React.Fragment>\n {this.state.portals}\n </React.Fragment>\n )\n }\n}\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","import React from 'react';\nimport Handsontable from 'handsontable/base';\nimport { SettingsMapper } from './settingsMapper';\nimport { PortalManager } from './portalManager';\nimport { HotColumn } from './hotColumn';\nimport * as packageJson from '../package.json';\nimport {\n HotTableProps,\n HotEditorElement,\n HotEditorCache,\n EditorScopeIdentifier\n} from './types';\nimport {\n HOT_DESTROYED_WARNING,\n AUTOSIZE_WARNING,\n GLOBAL_EDITOR_SCOPE,\n createEditorPortal,\n createPortal,\n getChildElementByType,\n getContainerAttributesProps,\n getExtendedEditorElement,\n getOriginalEditorClass,\n addUnsafePrefixes,\n removeEditorContainers,\n warn\n} from './helpers';\nimport PropTypes from 'prop-types';\n\n/**\n * A Handsontable-ReactJS wrapper.\n *\n * To implement, use the `HotTable` tag with properties corresponding to Handsontable options.\n * For example:\n *\n * ```js\n * <HotTable id=\"hot\" data={dataObject} contextMenu={true} colHeaders={true} width={600} height={300} stretchH=\"all\" />\n *\n * // is analogous to\n * let hot = new Handsontable(document.getElementById('hot'), {\n * data: dataObject,\n * contextMenu: true,\n * colHeaders: true,\n * width: 600\n * height: 300\n * });\n *\n * ```\n *\n * @class HotTable\n */\nclass HotTable extends React.Component<HotTableProps, {}> {\n /**\n * The `id` of the main Handsontable DOM element.\n *\n * @type {String}\n */\n id: string = null;\n /**\n * Reference to the Handsontable instance.\n *\n * @private\n * @type {Object}\n */\n __hotInstance: Handsontable | null = null;\n /**\n * Reference to the main Handsontable DOM element.\n *\n * @type {HTMLElement}\n */\n hotElementRef: HTMLElement = null;\n /**\n * Class name added to the component DOM element.\n *\n * @type {String}\n */\n className: string;\n /**\n * Style object passed to the component.\n *\n * @type {React.CSSProperties}\n */\n style: React.CSSProperties;\n\n /**\n * Array of object containing the column settings.\n *\n * @type {Array}\n */\n columnSettings: Handsontable.ColumnSettings[] = [];\n\n /**\n * Component used to manage the renderer portals.\n *\n * @type {React.Component}\n */\n portalManager: PortalManager = null;\n\n /**\n * Array containing the portals cashed to be rendered in bulk after Handsontable's render cycle.\n */\n portalCacheArray: React.ReactPortal[] = [];\n\n /**\n * Global editor portal cache.\n *\n * @private\n * @type {React.ReactPortal}\n */\n private globalEditorPortal: React.ReactPortal = null;\n\n /**\n * The rendered cells cache.\n *\n * @private\n * @type {Map}\n */\n private renderedCellCache: Map<string, HTMLTableCellElement> = new Map();\n\n /**\n * Editor cache.\n *\n * @private\n * @type {Map}\n */\n private editorCache: HotEditorCache = new Map();\n\n /**\n * Map with column indexes (or a string = 'global') as keys, and booleans as values. Each key represents a component-based editor\n * declared for the used column index, or a global one, if the key is the `global` string.\n *\n * @private\n * @type {Map}\n */\n private componentRendererColumns: Map<number | string, boolean> = new Map();\n\n /**\n * HotTable class constructor.\n *\n * @param {HotTableProps} props Component props.\n * @param {*} [context] Component context.\n */\n constructor(props: HotTableProps, context?: any) {\n super(props, context);\n\n addUnsafePrefixes(this);\n }\n\n /**\n * Package version getter.\n *\n * @returns The version number of the package.\n */\n static get version(): string {\n return (packageJson as any).version;\n }\n\n /**\n * Getter for the property storing the Handsontable instance.\n */\n get hotInstance(): Handsontable | null {\n if (!this.__hotInstance || (this.__hotInstance && !this.__hotInstance.isDestroyed)) {\n\n // Will return the Handsontable instance or `null` if it's not yet been created.\n return this.__hotInstance;\n\n } else {\n console.warn(HOT_DESTROYED_WARNING);\n\n return null;\n }\n }\n\n /**\n * Setter for the property storing the Handsontable instance.\n * @param {Handsontable} hotInstance The Handsontable instance.\n */\n set hotInstance(hotInstance) {\n this.__hotInstance = hotInstance;\n }\n\n /**\n * Prop types to be checked at runtime.\n */\n static propTypes: object = {\n style: PropTypes.object,\n id: PropTypes.string,\n className: PropTypes.string\n };\n\n /**\n * Get the rendered table cell cache.\n *\n * @returns {Map}\n */\n getRenderedCellCache(): Map<string, HTMLTableCellElement> {\n return this.renderedCellCache;\n }\n\n /**\n * Get the editor cache and return it.\n *\n * @returns {Map}\n */\n getEditorCache(): HotEditorCache {\n return this.editorCache;\n }\n\n /**\n * Get the global editor portal property.\n *\n * @return {React.ReactPortal} The global editor portal.\n */\n getGlobalEditorPortal(): React.ReactPortal {\n return this.globalEditorPortal;\n }\n\n /**\n * Set the private editor portal cache property.\n *\n * @param {React.ReactPortal} portal Global editor portal.\n */\n setGlobalEditorPortal(portal: React.ReactPortal): void {\n this.globalEditorPortal = portal;\n }\n\n /**\n * Clear both the editor and the renderer cache.\n */\n clearCache(): void {\n const renderedCellCache = this.getRenderedCellCache();\n\n this.setGlobalEditorPortal(null);\n removeEditorContainers(this.getOwnerDocument());\n this.getEditorCache().clear();\n\n renderedCellCache.clear();\n\n this.componentRendererColumns.clear();\n }\n\n /**\n * Get the `Document` object corresponding to the main component element.\n *\n * @returns The `Document` object used by the component.\n */\n getOwnerDocument() {\n return this.hotElementRef ? this.hotElementRef.ownerDocument : document;\n }\n\n /**\n * Set the reference to the main Handsontable DOM element.\n *\n * @param {HTMLElement} element The main Handsontable DOM element.\n */\n private setHotElementRef(element: HTMLElement): void {\n this.hotElementRef = element;\n }\n\n /**\n * Return a renderer wrapper function for the provided renderer component.\n *\n * @param {React.ReactElement} rendererElement React renderer component.\n * @returns {Handsontable.renderers.Base} The Handsontable rendering function.\n */\n getRendererWrapper(rendererElement: React.ReactElement): typeof Handsontable.renderers.BaseRenderer | any {\n const hotTableComponent = this;\n\n return function (instance, TD, row, col, prop, value, cellProperties) {\n const renderedCellCache = hotTableComponent.getRenderedCellCache();\n\n if (renderedCellCache.has(`${row}-${col}`)) {\n TD.innerHTML = renderedCellCache.get(`${row}-${col}`).innerHTML;\n }\n\n if (TD && !TD.getAttribute('ghost-table')) {\n\n const {portal, portalContainer} = createPortal(rendererElement, {\n TD,\n row,\n col,\n prop,\n value,\n cellProperties,\n isRenderer: true\n }, () => {\n }, TD.ownerDocument);\n\n while (TD.firstChild) {\n TD.removeChild(TD.firstChild);\n }\n\n TD.appendChild(portalContainer);\n\n hotTableComponent.portalCacheArray.push(portal);\n }\n\n renderedCellCache.set(`${row}-${col}`, TD);\n\n return TD;\n };\n }\n\n /**\n * Create a fresh class to be used as an editor, based on the provided editor React element.\n *\n * @param {React.ReactElement} editorElement React editor component.\n * @param {string|number} [editorColumnScope] The editor scope (column index or a 'global' string). Defaults to\n * 'global'.\n * @returns {Function} A class to be passed to the Handsontable editor settings.\n */\n getEditorClass(editorElement: HotEditorElement, editorColumnScope: EditorScopeIdentifier = GLOBAL_EDITOR_SCOPE): typeof Handsontable.editors.BaseEditor {\n const editorClass = getOriginalEditorClass(editorElement);\n const editorCache = this.getEditorCache();\n let cachedComponent: React.Component = editorCache.get(editorClass)?.get(editorColumnScope);\n\n return this.makeEditorClass(cachedComponent);\n }\n\n /**\n * Create a class to be passed to the Handsontable's settings.\n *\n * @param {React.ReactElement} editorComponent React editor component.\n * @returns {Function} A class to be passed to the Handsontable editor settings.\n */\n makeEditorClass(editorComponent: React.Component): typeof Handsontable.editors.BaseEditor {\n const customEditorClass = class CustomEditor extends Handsontable.editors.BaseEditor implements Handsontable.editors.BaseEditor {\n editorComponent: React.Component;\n\n constructor(hotInstance) {\n super(hotInstance);\n\n (editorComponent as any).hotCustomEditorInstance = this;\n\n this.editorComponent = editorComponent;\n }\n\n focus() {\n }\n\n getValue() {\n }\n\n setValue() {\n }\n\n open() {\n }\n\n close() {\n }\n } as any;\n\n // Fill with the rest of the BaseEditor methods\n Object.getOwnPropertyNames(Handsontable.editors.BaseEditor.prototype).forEach(propName => {\n if (propName === 'constructor') {\n return;\n }\n\n customEditorClass.prototype[propName] = function (...args) {\n return editorComponent[propName].call(editorComponent, ...args);\n }\n });\n\n return customEditorClass;\n }\n\n /**\n * Get the renderer element for the entire HotTable instance.\n *\n * @returns {React.ReactElement} React renderer component element.\n */\n getGlobalRendererElement(): React.ReactElement {\n const hotTableSlots: React.ReactNode = this.props.children;\n\n return getChildElementByType(hotTableSlots, 'hot-renderer');\n }\n\n /**\n * Get the editor element for the entire HotTable instance.\n *\n * @param {React.ReactNode} [children] Children of the HotTable instance. Defaults to `this.props.children`.\n * @returns {React.ReactElement} React editor component element.\n */\n getGlobalEditorElement(children: React.ReactNode = this.props.children): HotEditorElement | null {\n return getExtendedEditorElement(children, this.getEditorCache());\n }\n\n /**\n * Create the global editor portal and its destination HTML element if needed.\n *\n * @param {React.ReactNode} [children] Children of the HotTable instance. Defaults to `this.props.children`.\n */\n createGlobalEditorPortal(children: React.ReactNode = this.props.children): void {\n const globalEditorElement: HotEditorElement = this.getGlobalEditorElement(children);\n\n if (globalEditorElement) {\n this.setGlobalEditorPortal(createEditorPortal(this.getOwnerDocument(), globalEditorElement, this.getEditorCache()));\n }\n }\n\n /**\n * Create a new settings object containing the column settings and global editors and renderers.\n *\n * @returns {Handsontable.GridSettings} New global set of settings for Handsontable.\n */\n createNewGlobalSettings(): Handsontable.GridSettings {\n const newSettings = SettingsMapper.getSettings(this.props);\n const globalRendererNode = this.getGlobalRendererElement();\n const globalEditorNode = this.getGlobalEditorElement();\n\n newSettings.columns = this.columnSettings.length ? this.columnSettings : newSettings.columns;\n\n if (globalEditorNode) {\n newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);\n\n } else {\n newSettings.editor = this.props.editor || (this.props.settings ? this.props.settings.editor : void 0);\n }\n\n if (globalRendererNode) {\n newSettings.renderer = this.getRendererWrapper(globalRendererNode);\n this.componentRendererColumns.set('global', true);\n\n } else {\n newSettings.renderer = this.props.renderer || (this.props.settings ? this.props.settings.renderer : void 0);\n }\n\n return newSettings;\n }\n\n /**\n * Detect if `autoRowSize` or `autoColumnSize` is defined, and if so, throw an incompatibility warning.\n *\n * @param {Handsontable.GridSettings} newGlobalSettings New global settings passed as Handsontable config.\n */\n displayAutoSizeWarning(newGlobalSettings: Handsontable.GridSettings): void {\n if (\n this.hotInstance &&\n (\n this.hotInstance.getPlugin('autoRowSize')?.enabled ||\n this.hotInstance.getPlugin('autoColumnSize')?.enabled\n )\n ) {\n if (this.componentRendererColumns.size > 0) {\n warn(AUTOSIZE_WARNING);\n }\n }\n }\n\n /**\n * Sets the column settings based on information received from HotColumn.\n *\n * @param {HotTableProps} columnSettings Column settings object.\n * @param {Number} columnIndex Column index.\n */\n setHotColumnSettings(columnSettings: Handsontable.ColumnSettings, columnIndex: number): void {\n this.columnSettings[columnIndex] = columnSettings;\n }\n\n /**\n * Handsontable's `beforeViewRender` hook callback.\n */\n handsontableBeforeViewRender(): void {\n this.getRenderedCellCache().clear();\n }\n\n /**\n * Handsontable's `afterViewRender` hook callback.\n */\n handsontableAfterViewRender(): void {\n this.portalManager.setState(() => {\n return Object.assign({}, {\n portals: this.portalCacheArray\n });\n\n }, () => {\n this.portalCacheArray.length = 0;\n });\n }\n\n /**\n * Call the `updateSettings` method for the Handsontable instance.\n *\n * @param {Object} newSettings The settings object.\n */\n private updateHot(newSettings: Handsontable.GridSettings): void {\n if (this.hotInstance) {\n this.hotInstance.updateSettings(newSettings, false);\n }\n }\n\n /**\n * Set the portal manager ref.\n *\n * @param {React.ReactComponent} pmComponent The PortalManager component.\n */\n private setPortalManagerRef(pmComponent: PortalManager): void {\n this.portalManager = pmComponent;\n }\n\n /*\n ---------------------------------------\n ------- React lifecycle methods -------\n ---------------------------------------\n */\n\n /**\n * Logic performed before the mounting of the component.\n */\n componentWillMount(): void {\n this.clearCache();\n this.createGlobalEditorPortal();\n }\n\n /**\n * Initialize Handsontable after the component has mounted.\n */\n componentDidMount(): void {\n const hotTableComponent = this;\n const newGlobalSettings = this.createNewGlobalSettings();\n\n this.hotInstance = new Handsontable.Core(this.hotElementRef, newGlobalSettings);\n\n this.hotInstance.addHook('beforeViewRender', function (isForced) {\n hotTableComponent.handsontableBeforeViewRender();\n });\n\n this.hotInstance.addHook('afterViewRender', function () {\n hotTableComponent.handsontableAfterViewRender();\n });\n\n // `init` missing in Handsontable's type definitions.\n (this.hotInstance as any).init();\n\n this.displayAutoSizeWarning(newGlobalSettings);\n }\n\n /**\n * Logic performed before the component update.\n */\n componentWillUpdate(nextProps: Readonly<HotTableProps>, nextState: Readonly<{}>, nextContext: any): void {\n this.clearCache();\n removeEditorContainers(this.getOwnerDocument());\n this.createGlobalEditorPortal(nextProps.children);\n }\n\n /**\n * Logic performed after the component update.\n */\n componentDidUpdate(): void {\n const newGlobalSettings = this.createNewGlobalSettings();\n this.updateHot(newGlobalSettings);\n\n this.displayAutoSizeWarning(newGlobalSettings);\n }\n\n /**\n * Destroy the Handsontable instance when the parent component unmounts.\n */\n componentWillUnmount(): void {\n if (this.hotInstance) {\n this.hotInstance.destroy();\n }\n\n removeEditorContainers(this.getOwnerDocument());\n }\n\n /**\n * Render the component.\n */\n render(): React.ReactElement {\n const {id, className, style} = getContainerAttributesProps(this.props);\n const isHotColumn = (childNode: any) => childNode.type === HotColumn;\n let children = React.Children.toArray(this.props.children);\n\n // filter out anything that's not a HotColumn\n children = children.filter(function (childNode: any) {\n return isHotColumn(childNode);\n });\n\n // clone the HotColumn nodes and extend them with the callbacks\n let childClones = children.map((childNode: React.ReactElement, columnIndex: number) => {\n return React.cloneElement(childNode, {\n _componentRendererColumns: this.componentRendererColumns,\n _emitColumnSettings: this.setHotColumnSettings.bind(this),\n _columnIndex: columnIndex,\n _getChildElementByType: getChildElementByType.bind(this),\n _getRendererWrapper: this.getRendererWrapper.bind(this),\n _getEditorClass: this.getEditorClass.bind(this),\n _getOwnerDocument: this.getOwnerDocument.bind(this),\n _getEditorCache: this.getEditorCache.bind(this),\n children: childNode.props.children\n } as object);\n });\n\n // add the global editor to the list of children\n childClones.push(this.getGlobalEditorPortal());\n\n return (\n <React.Fragment>\n <div ref={this.setHotElementRef.bind(this)} id={id} className={className} style={style}>\n {childClones}\n </div>\n <PortalManager ref={this.setPortalManagerRef.bind(this)}></PortalManager>\n </React.Fragment>\n )\n }\n}\n\nexport default HotTable;\nexport { HotTable };\n","import React from 'react';\nimport Handsontable from 'handsontable/base';\nimport { HotEditorProps } from './types';\n\nclass BaseEditorComponent<P = {}, S = {}, SS = any> extends React.Component<P | HotEditorProps, S> implements Handsontable.editors.BaseEditor {\n name = 'BaseEditorComponent';\n instance = null;\n row = null;\n col = null;\n prop = null;\n TD = null;\n originalValue = null;\n cellProperties = null;\n state = null;\n hotInstance = null;\n hotCustomEditorInstance = null;\n hot = null;\n\n constructor(props) {\n super(props);\n\n if (props.emitEditorInstance) {\n props.emitEditorInstance(this, props.editorColumnScope);\n }\n }\n\n // BaseEditor methods:\n private _fireCallbacks(...args) {\n (Handsontable.editors.BaseEditor.prototype as any)._fireCallbacks.call(this.hotCustomEditorInstance, ...args);\n }\n\n beginEditing(...args) {\n return Handsontable.editors.BaseEditor.prototype.beginEditing.call(this.hotCustomEditorInstance, ...args);\n }\n\n cancelChanges(...args) {\n return Handsontable.editors.BaseEditor.prototype.cancelChanges.call(this.hotCustomEditorInstance, ...args);\n }\n\n checkEditorSection(...args) {\n return Handsontable.editors.BaseEditor.prototype.checkEditorSection.call(this.hotCustomEditorInstance, ...args);\n }\n\n close(...args) {\n return Handsontable.editors.BaseEditor.prototype.close.call(this.hotCustomEditorInstance, ...args);\n }\n\n discardEditor(...args) {\n return Handsontable.editors.BaseEditor.prototype.discardEditor.call(this.hotCustomEditorInstance, ...args);\n }\n\n enableFullEditMode(...args) {\n return Handsontable.editors.BaseEditor.prototype.enableFullEditMode.call(this.hotCustomEditorInstance, ...args);\n }\n\n extend(...args) {\n return Handsontable.editors.BaseEditor.prototype.extend.call(this.hotCustomEditorInstance, ...args);\n }\n\n finishEditing(...args) {\n return Handsontable.editors.BaseEditor.prototype.finishEditing.call(this.hotCustomEditorInstance, ...args);\n }\n\n focus(...args) {\n return Handsontable.editors.BaseEditor.prototype.focus.call(this.hotCustomEditorInstance, ...args);\n }\n\n getValue(...args) {\n return Handsontable.editors.BaseEditor.prototype.getValue.call(this.hotCustomEditorInstance, ...args);\n }\n\n init(...args) {\n return Handsontable.editors.BaseEditor.prototype.init.call(this.hotCustomEditorInstance, ...args);\n }\n\n isInFullEditMode(...args) {\n return Handsontable.editors.BaseEditor.prototype.isInFullEditMode.call(this.hotCustomEditorInstance, ...args);\n }\n\n isOpened(...args) {\n return Handsontable.editors.BaseEditor.prototype.isOpened.call(this.hotCustomEditorInstance, ...args);\n }\n\n isWaiting(...args) {\n return Handsontable.editors.BaseEditor.prototype.isWaiting.call(this.hotCustomEditorInstance, ...args);\n }\n\n open(...args) {\n return Handsontable.editors.BaseEditor.prototype.open.call(this.hotCustomEditorInstance, ...args);\n }\n\n prepare(row, col, prop, TD, originalValue, cellProperties) {\n this.hotInstance = cellProperties.instance;\n this.row = row;\n this.col = col;\n this.prop = prop;\n this.TD = TD;\n this.originalValue = originalValue;\n this.cellProperties = cellProperties;\n\n return Handsontable.editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance, row, col, prop, TD, originalValue, cellProperties);\n }\n\n saveValue(...args) {\n return Handsontable.editors.BaseEditor.prototype.saveValue.call(this.hotCustomEditorInstance, ...args);\n }\n\n setValue(...args) {\n return Handsontable.editors.BaseEditor.prototype.setValue.call(this.hotCustomEditorInstance, ...args);\n }\n\n addHook(...args) {\n return (Handsontable.editors.BaseEditor.prototype as any).addHook.call(this.hotCustomEditorInstance, ...args);\n }\n\n removeHooksByKey(...args) {\n return (Handsontable.editors.BaseEditor.prototype as any).removeHooksByKey.call(this.hotCustomEditorInstance, ...args);\n }\n\n clearHooks(...args) {\n return (Handsontable.editors.BaseEditor.prototype as any).clearHooks.call(this.hotCustomEditorInstance, ...args);\n }\n\n getEditedCell(...args) {\n return (Handsontable.editors.BaseEditor.prototype as any).getEditedCell.call(this.hotCustomEditorInstance, ...args);\n }\n\n getEditedCellRect(...args) {\n return (Handsontable.editors.BaseEditor.prototype as any).getEditedCellRect.call(this.hotCustomEditorInstance, ...args);\n }\n\n getEditedCellsZIndex(...args) {\n return (Handsontable.editors.BaseEditor.prototype as any).getEditedCellsZIndex.call(this.hotCustomEditorInstance, ...args);\n }\n}\n\nexport default BaseEditorComponent;\nexport { BaseEditorComponent };\n"],"names":["bulkComponentContainer","AUTOSIZE_WARNING","HOT_DESTROYED_WARNING","GLOBAL_EDITOR_SCOPE","DEFAULT_CLASSNAME","warn","console","getChildElementByType","children","type","childrenArray","React","Children","toArray","childrenCount","count","wantedChild","props","find","child","getOriginalEditorClass","editorElement","WrappedComponent","removeEditorContainers","doc","document","querySelectorAll","forEach","domNode","parentNode","removeChild","createEditorPortal","editorContainer","createElement","getContainerAttributesProps","id","className","style","join","Object","assign","body","appendChild","ReactDOM","createPortal","getExtendedEditorElement","editorCache","editorColumnScope","editorClass","cloneElement","emitEditorInstance","editorInstance","get","set","Map","cacheEntry","isEditor","rElement","callback","ownerDocument","createDocumentFragment","portalContainer","extendedRendererElement","_objectSpread","key","row","col","portal","Math","random","randomizeId","toString","substring","addUnsafePrefixes","instance","reactSemverArray","version","split","map","v","parseInt","shouldPrefix","UNSAFE_componentWillUpdate","componentWillUpdate","UNSAFE_componentWillMount","componentWillMount","SettingsMapper","properties","newSettings","settings","hasOwnProperty","HotColumn","context","localEditorPortal","internalProps","keys","filter","includes","reduce","obj","propName","_getEditorCache","_columnIndex","rendererElement","_getChildElementByType","getLocalEditorElement","columnSettings","getSettings","getSettingsProps","renderer","_getRendererWrapper","_componentRendererColumns","hasProp","editor","_getEditorClass","localEditorElement","setLocalEditorPortal","_getOwnerDocument","_emitColumnSettings","createLocalEditorPortal","createColumnSettings","emitColumnSettings","nextProps","nextState","nextContext","Fragment","getLocalEditorPortal","Component","PortalManager","state","portals","b","Symbol","c","d","e","f","g","h","k","l","m","n","p","q","r","t","w","x","y","z","a","u","$$typeof","A","AsyncMode","ConcurrentMode","ContextProvider","Element","ForwardRef","Memo","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","module","exports","require$$0","getOwnPropertySymbols","prototype","propIsEnumerable","propertyIsEnumerable","toObject","val","undefined","TypeError","shouldUseNative","test1","String","getOwnPropertyNames","test2","i","fromCharCode","order2","test3","letter","err","target","source","from","to","symbols","s","arguments","length","call","ReactPropTypesSecret","ReactPropTypesSecret_1","Function","bind","emptyFunction","emptyFunctionWithReset","resetWarningCache","factoryWithThrowingShims","shim","componentName","location","propFullName","secret","Error","name","isRequired","getShim","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","require$$2","HotTable","__hotInstance","hotElementRef","portalManager","portalCacheArray","globalEditorPortal","renderedCellCache","componentRendererColumns","isDestroyed","hotInstance","getRenderedCellCache","setGlobalEditorPortal","getOwnerDocument","getEditorCache","clear","hotTableComponent","TD","prop","value","cellProperties","has","innerHTML","getAttribute","isRenderer","firstChild","push","cachedComponent","makeEditorClass","editorComponent","customEditorClass","hotCustomEditorInstance","Handsontable","editors","BaseEditor","args","hotTableSlots","globalEditorElement","getGlobalEditorElement","globalRendererNode","getGlobalRendererElement","globalEditorNode","columns","getEditorClass","getRendererWrapper","newGlobalSettings","getPlugin","enabled","size","columnIndex","setState","updateSettings","pmComponent","clearCache","createGlobalEditorPortal","createNewGlobalSettings","Core","addHook","isForced","handsontableBeforeViewRender","handsontableAfterViewRender","init","displayAutoSizeWarning","updateHot","destroy","isHotColumn","childNode","childClones","setHotColumnSettings","getGlobalEditorPortal","ref","setHotElementRef","setPortalManagerRef","packageJson","propTypes","BaseEditorComponent","originalValue","hot","_fireCallbacks","beginEditing","cancelChanges","checkEditorSection","close","discardEditor","enableFullEditMode","extend","finishEditing","focus","getValue","isInFullEditMode","isOpened","isWaiting","open","prepare","saveValue","setValue","removeHooksByKey","clearHooks","getEditedCell","getEditedCellRect","getEditedCellsZIndex"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAIA,sBAAsB,GAAG,IAA7B,CAAA;AAEA;;AAEG;;AACI,IAAMC,gBAAgB,GAAG,+GAAA,GAC9B,qHADK,CAAA;AAGP;;AAEG;;AACI,IAAMC,qBAAqB,GAAG,+EAAA,GACnC,iBADK,CAAA;AAGP;;AAEG;;AACI,IAAMC,mBAAmB,GAAG,QAA5B,CAAA;AAEP;;AAEG;;AACH,IAAMC,iBAAiB,GAAG,8BAA1B,CAAA;AAEA;;;;AAIG;;AACa,SAAAC,IAAA,GAAY;AAC1B,EAAA,IAAI,OAAOC,OAAP,KAAmB,WAAvB,EAAoC;AAAA,IAAA,IAAA,QAAA,CAAA;;IAClC,CAAAA,QAAAA,GAAAA,OAAO,EAACD,IAAR,CAAA,KAAA,CAAA,QAAA,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AAA,GAAA;AAAA,MAAA,IAAA,uBAAA,CAAA;;AAAA,MAAA,KAAA,IAAA,MAAA,GAAA,SAAA,CAAA,MAAA,EAAJA,IAAI,GAAA,IAAA,KAAA,CAAA,MAAA,CAAA,EAAA,MAAA,GAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA,MAAA,EAAA,EAAA;QAAJA,IAAI,CAAA,MAAA,CAAA,GAAA,SAAA,CAAA,MAAA,CAAA,CAAA;AAAA,OAAA;;AAC1B,MAAA,OAAQ,2BAAAH,gCAAY,CAACC,OAAb,CAAqBC,UAArB,CAAgCpG,SAAhC,CAAkDsK,oBAAlD,EAAuE5I,IAAvE,CAAA,KAAA,CAAA,uBAAA,EAAA,CAA4E,KAAKuE,uBAAjF,CAAA,CAAA,MAAA,CAA6GI,IAA7G,CAAR,CAAA,CAAA;AACD,KAAA;;;;AAjIyDjR,CAAAA,CAAAA,yBAAK,CAACoH;;;;;;;;;;;;;"}
@@ -19,13 +19,13 @@
19
19
  * In any case, you must not make any such use of this software as to develop software which may be
20
20
  * considered competitive with this software.
21
21
  *
22
- * UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN &quot;AS IS&quot;
22
+ * UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"
23
23
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO
24
24
  * LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,
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: 11.1.0 (built at Thu Jan 13 2022 12:32:06 GMT+0100 (Central European Standard Time))
28
+ * Version: 12.1.0 (built at Tue Jun 28 2022 12:09:28 GMT+0200 (Central European Summer 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,o){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var a=r(e),i=r(n),l=r(o);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function c(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){h(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}function u(t){return u="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},u(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;e.length>n;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function f(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(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&&g(t,e)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e){return g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},g(t,e)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function E(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 v(t)}function b(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,o=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return E(this,n)}}var C=null,k="global",S="hot-wrapper-editor-container";function w(t,e){var n=a.default.Children.toArray(t),o=a.default.Children.count(t),r=null;return 0!==o&&(r=1===o&&n[0].props[e]?n[0]:n.find((function(t){return void 0!==t.props[e]}))),r||null}function P(t){return t?t.type.WrappedComponent?t.type.WrappedComponent:t.type:null}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;t.querySelectorAll('[class^="'.concat(S,'"]')).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}function O(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=arguments.length>1?arguments[1]:void 0;if(null!==e){var n=t.createElement("DIV"),o=R(e.props,!1),r=o.id,a=o.className,l=o.style;return r&&(n.id=r),n.className=[S,a].join(" "),l&&Object.assign(n.style,l),t.body.appendChild(n),i.default.createPortal(e,n)}}function I(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k,o=w(t,"hot-editor"),r=P(o);return o?a.default.cloneElement(o,{emitEditorInstance:function(t,n){e.get(r)||e.set(r,new Map),e.get(r).set(null!=n?n:k,t)},editorColumnScope:n,isEditor:!0}):null}function R(t){var e=1>=arguments.length||void 0===arguments[1]||arguments[1];return{id:t.id||(e?"hot-"+Math.random().toString(36).substring(5):void 0),className:t.className||"",style:t.style||{}}}function j(t){var e=a.default.version.split(".").map((function(t){return parseInt(t)}));e[0]>=16&&e[1]>=3&&(t.UNSAFE_componentWillUpdate=t.componentWillUpdate,t.componentWillUpdate=void 0,t.UNSAFE_componentWillMount=t.componentWillMount,t.componentWillMount=void 0)}var A=function(){function t(){d(this,t)}return f(t,null,[{key:"getSettings",value:function(t){var e={};if(t.settings){var n=t.settings;for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}for(var r in t)"settings"!==r&&"children"!==r&&t.hasOwnProperty(r)&&(e[r]=t[r]);return e}}]),t}(),B=function(t){y(n,t);var e=b(n);function n(t,o){var r;return d(this,n),(r=e.call(this,t,o)).localEditorPortal=null,j(v(r)),r}return f(n,[{key:"getLocalEditorPortal",value:function(){return this.localEditorPortal}},{key:"setLocalEditorPortal",value:function(t){this.localEditorPortal=t}},{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:"hasProp",value:function(t){return!!this.props[t]}},{key:"getLocalEditorElement",value:function(){return I(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=A.getSettings(this.getSettingsProps()),null!==t?(this.columnSettings.renderer=this.props._getRendererWrapper(t),this.props._componentRendererColumns.set(this.props._columnIndex,!0)):this.columnSettings.renderer=this.hasProp("renderer")?this.props.renderer:void 0,this.columnSettings.editor=null!==e?this.props._getEditorClass(e,this.props._columnIndex):this.hasProp("editor")?this.props.editor:void 0}},{key:"createLocalEditorPortal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.children,e=this.props._getEditorCache(),n=I(t,e,this.props._columnIndex);n&&this.setLocalEditorPortal(O(this.props._getOwnerDocument(),n,e))}},{key:"emitColumnSettings",value:function(){this.props._emitColumnSettings(this.columnSettings,this.props._columnIndex)}},{key:"componentWillMount",value:function(){this.createLocalEditorPortal()}},{key:"componentDidMount",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"componentWillUpdate",value:function(t,e,n){this.createLocalEditorPortal(t.children)}},{key:"componentDidUpdate",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"render",value:function(){return a.default.createElement(a.default.Fragment,null,this.getLocalEditorPortal())}}]),n}(a.default.Component),M=function(t){y(n,t);var e=b(n);function n(t){var o;return d(this,n),(o=e.call(this,t)).state={portals:[]},o}return f(n,[{key:"render",value:function(){return a.default.createElement(a.default.Fragment,null,this.state.portals)}}]),n}(a.default.Component);function D(t,e){return t(e={exports:{}},e.exports),e.exports}var T="function"==typeof Symbol&&Symbol.for,x=T?Symbol.for("react.element"):60103,W=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,N=T?Symbol.for("react.provider"):60109,F=T?Symbol.for("react.context"):60110,G=T?Symbol.for("react.async_mode"):60111,L=T?Symbol.for("react.concurrent_mode"):60111,z=T?Symbol.for("react.forward_ref"):60112,U=T?Symbol.for("react.suspense"):60113,q=T?Symbol.for("react.suspense_list"):60120,K=T?Symbol.for("react.memo"):60115,Y=T?Symbol.for("react.lazy"):60116,Z=T?Symbol.for("react.block"):60121,J=T?Symbol.for("react.fundamental"):60117,Q=T?Symbol.for("react.responder"):60118,X=T?Symbol.for("react.scope"):60119;function tt(t){if("object"===u(t)&&null!==t){var e=t.$$typeof;switch(e){case x:switch(t=t.type){case G:case L:case H:case V:case $:case U:return t;default:switch(t=t&&t.$$typeof){case F:case z:case Y:case K:case N:return t;default:return e}}case W:return e}}}function et(t){return tt(t)===L}var nt={AsyncMode:G,ConcurrentMode:L,ContextConsumer:F,ContextProvider:N,Element:x,ForwardRef:z,Fragment:H,Lazy:Y,Memo:K,Portal:W,Profiler:V,StrictMode:$,Suspense:U,isAsyncMode:function(t){return et(t)||tt(t)===G},isConcurrentMode:et,isContextConsumer:function(t){return tt(t)===F},isContextProvider:function(t){return tt(t)===N},isElement:function(t){return"object"===u(t)&&null!==t&&t.$$typeof===x},isForwardRef:function(t){return tt(t)===z},isFragment:function(t){return tt(t)===H},isLazy:function(t){return tt(t)===Y},isMemo:function(t){return tt(t)===K},isPortal:function(t){return tt(t)===W},isProfiler:function(t){return tt(t)===V},isStrictMode:function(t){return tt(t)===$},isSuspense:function(t){return tt(t)===U},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===H||t===L||t===V||t===$||t===U||t===q||"object"===u(t)&&null!==t&&(t.$$typeof===Y||t.$$typeof===K||t.$$typeof===N||t.$$typeof===F||t.$$typeof===z||t.$$typeof===J||t.$$typeof===Q||t.$$typeof===X||t.$$typeof===Z)},typeOf:tt};D((function(t,e){}));D((function(t){t.exports=nt}));!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 o=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==o.join(""))return!1;var r={};"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}();function ot(){}function rt(){}Function.call.bind(Object.prototype.hasOwnProperty),rt.resetWarningCache=ot;var at=D((function(t){t.exports=function(){function t(t,e,n,o,r,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var i=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 i.name="Invariant Violation",i}}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:ot};return n.PropTypes=n,n}()})),it=function(t){y(n,t);var e=b(n);function n(t,o){var r;return d(this,n),(r=e.call(this,t,o)).id=null,r.__hotInstance=null,r.hotElementRef=null,r.columnSettings=[],r.portalManager=null,r.portalCacheArray=[],r.globalEditorPortal=null,r.renderedCellCache=new Map,r.editorCache=new Map,r.componentRendererColumns=new Map,j(v(r)),r}return f(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:"getGlobalEditorPortal",value:function(){return this.globalEditorPortal}},{key:"setGlobalEditorPortal",value:function(t){this.globalEditorPortal=t}},{key:"clearCache",value:function(){var t=this.getRenderedCellCache();this.setGlobalEditorPortal(null),_(this.getOwnerDocument()),this.getEditorCache().clear(),t.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,o,r,l,s,u,d){var p=e.getRenderedCellCache();if(p.has("".concat(r,"-").concat(l))&&(o.innerHTML=p.get("".concat(r,"-").concat(l)).innerHTML),o&&!o.getAttribute("ghost-table")){for(var f=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document;o||(o=document),C||(C=o.createDocumentFragment());var r=o.createElement("DIV");C.appendChild(r);var l=a.default.cloneElement(t,c({key:"".concat(e.row,"-").concat(e.col)},e));return{portal:i.default.createPortal(l,r,"".concat(e.row,"-").concat(e.col,"-").concat(Math.random())),portalContainer:r}}(t,{TD:o,row:r,col:l,prop:s,value:u,cellProperties:d,isRenderer:!0},(function(){}),o.ownerDocument),h=f.portal,y=f.portalContainer;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(y),e.portalCacheArray.push(h)}return p.set("".concat(r,"-").concat(l),o),o}}},{key:"getEditorClass",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k,o=P(t),r=this.getEditorCache(),a=null===(e=r.get(o))||void 0===e?void 0:e.get(n);return this.makeEditorClass(a)}},{key:"makeEditorClass",value:function(t){var e=function(e){y(o,e);var n=b(o);function o(e){var r;return d(this,o),r=n.call(this,e),t.hotCustomEditorInstance=v(r),r.editorComponent=t,r}return f(o,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}]),o}(l.default.editors.BaseEditor);return Object.getOwnPropertyNames(l.default.editors.BaseEditor.prototype).forEach((function(n){"constructor"!==n&&(e.prototype[n]=function(){for(var e,o=arguments.length,r=Array(o),a=0;o>a;a++)r[a]=arguments[a];return(e=t[n]).call.apply(e,[t].concat(r))})})),e}},{key:"getGlobalRendererElement",value:function(){return w(this.props.children,"hot-renderer")}},{key:"getGlobalEditorElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.children;return I(t,this.getEditorCache())}},{key:"createGlobalEditorPortal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.children,e=this.getGlobalEditorElement(t);e&&this.setGlobalEditorPortal(O(this.getOwnerDocument(),e,this.getEditorCache()))}},{key:"createNewGlobalSettings",value:function(){var t=A.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,k):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.portalManager.setState((function(){return Object.assign({},{portals:t.portalCacheArray})}),(function(){t.portalCacheArray.length=0}))}},{key:"updateHot",value:function(t){this.hotInstance&&this.hotInstance.updateSettings(t,!1)}},{key:"setPortalManagerRef",value:function(t){this.portalManager=t}},{key:"componentWillMount",value:function(){this.clearCache(),this.createGlobalEditorPortal()}},{key:"componentDidMount",value:function(){var t=this,e=this.createNewGlobalSettings();this.hotInstance=new l.default.Core(this.hotElementRef,e),this.hotInstance.addHook("beforeViewRender",(function(e){t.handsontableBeforeViewRender()})),this.hotInstance.addHook("afterViewRender",(function(){t.handsontableAfterViewRender()})),this.hotInstance.init(),this.displayAutoSizeWarning(e)}},{key:"componentWillUpdate",value:function(t,e,n){this.clearCache(),_(this.getOwnerDocument()),this.createGlobalEditorPortal(t.children)}},{key:"componentDidUpdate",value:function(){var t=this.createNewGlobalSettings();this.updateHot(t),this.displayAutoSizeWarning(t)}},{key:"componentWillUnmount",value:function(){this.hotInstance&&this.hotInstance.destroy(),_(this.getOwnerDocument())}},{key:"render",value:function(){var t=this,e=R(this.props),n=e.id,o=e.className,r=e.style,i=a.default.Children.toArray(this.props.children),l=(i=i.filter((function(t){return function(t){return t.type===B}(t)}))).map((function(e,n){return a.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})}));return l.push(this.getGlobalEditorPortal()),a.default.createElement(a.default.Fragment,null,a.default.createElement("div",{ref:this.setHotElementRef.bind(this),id:n,className:o,style:r},l),a.default.createElement(M,{ref:this.setPortalManagerRef.bind(this)}))}}],[{key:"version",get:function(){return"11.1.0"}}]),n}(a.default.Component);it.propTypes={style:at.object,id:at.string,className:at.string};var lt=function(t){y(n,t);var e=b(n);function n(t){var o;return d(this,n),(o=e.call(this,t)).name="BaseEditorComponent",o.instance=null,o.row=null,o.col=null,o.prop=null,o.TD=null,o.originalValue=null,o.cellProperties=null,o.state=null,o.hotInstance=null,o.hotCustomEditorInstance=null,o.hot=null,t.emitEditorInstance&&t.emitEditorInstance(v(o),t.editorColumnScope),o}return f(n,[{key:"_fireCallbacks",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;e>o;o++)n[o]=arguments[o];(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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];return(t=l.default.editors.BaseEditor.prototype.open).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"prepare",value:function(t,e,n,o,r,a){return this.hotInstance=a.instance,this.row=t,this.col=e,this.prop=n,this.TD=o,this.originalValue=r,this.cellProperties=a,l.default.editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance,t,e,n,o,r,a)}},{key:"saveValue",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];return(t=l.default.editors.BaseEditor.prototype.getEditedCell).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellsZIndex",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;e>o;o++)n[o]=arguments[o];return(t=l.default.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(t,[this.hotCustomEditorInstance].concat(n))}}]),n}(a.default.Component);t.BaseEditorComponent=lt,t.HotColumn=B,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,o){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var a=r(e),i=r(n),l=r(o);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function s(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t){return u="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},u(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;e.length>n;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function f(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(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&&g(t,e)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function E(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 v(t)}function b(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,o=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return E(this,n)}}var C=null,k="global",S="hot-wrapper-editor-container";function P(t,e){var n=a.default.Children.toArray(t),o=a.default.Children.count(t),r=null;return 0!==o&&(r=1===o&&n[0].props[e]?n[0]:n.find((function(t){return void 0!==t.props[e]}))),r||null}function w(t){return t?t.type.WrappedComponent?t.type.WrappedComponent:t.type:null}function O(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;t.querySelectorAll('[class^="'.concat(S,'"]')).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=arguments.length>1?arguments[1]:void 0;if(null!==e){var n=t.createElement("DIV"),o=R(e.props,!1),r=o.id,a=o.className,l=o.style;return r&&(n.id=r),n.className=[S,a].join(" "),l&&Object.assign(n.style,l),t.body.appendChild(n),i.default.createPortal(e,n)}}function I(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k,o=P(t,"hot-editor"),r=w(o);return o?a.default.cloneElement(o,{emitEditorInstance:function(t,n){e.get(r)||e.set(r,new Map),e.get(r).set(null!=n?n:k,t)},editorColumnScope:n,isEditor:!0}):null}function R(t){var e=1>=arguments.length||void 0===arguments[1]||arguments[1];return{id:t.id||(e?"hot-"+Math.random().toString(36).substring(5):void 0),className:t.className||"",style:t.style||{}}}function j(t){var e=a.default.version.split(".").map((function(t){return parseInt(t)}));(e[0]>=16&&e[1]>=3||e[0]>=17)&&(t.UNSAFE_componentWillUpdate=t.componentWillUpdate,t.componentWillUpdate=void 0,t.UNSAFE_componentWillMount=t.componentWillMount,t.componentWillMount=void 0)}var A=function(){function t(){d(this,t)}return f(t,null,[{key:"getSettings",value:function(t){var e={};if(t.settings){var n=t.settings;for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}for(var r in t)"settings"!==r&&"children"!==r&&t.hasOwnProperty(r)&&(e[r]=t[r]);return e}}]),t}(),B=function(t){y(n,t);var e=b(n);function n(t,o){var r;return d(this,n),(r=e.call(this,t,o)).localEditorPortal=null,j(v(r)),r}return f(n,[{key:"getLocalEditorPortal",value:function(){return this.localEditorPortal}},{key:"setLocalEditorPortal",value:function(t){this.localEditorPortal=t}},{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:"hasProp",value:function(t){return!!this.props[t]}},{key:"getLocalEditorElement",value:function(){return I(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=A.getSettings(this.getSettingsProps()),null!==t?(this.columnSettings.renderer=this.props._getRendererWrapper(t),this.props._componentRendererColumns.set(this.props._columnIndex,!0)):this.columnSettings.renderer=this.hasProp("renderer")?this.props.renderer:void 0,this.columnSettings.editor=null!==e?this.props._getEditorClass(e,this.props._columnIndex):this.hasProp("editor")?this.props.editor:void 0}},{key:"createLocalEditorPortal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.children,e=this.props._getEditorCache(),n=I(t,e,this.props._columnIndex);n&&this.setLocalEditorPortal(_(this.props._getOwnerDocument(),n,e))}},{key:"emitColumnSettings",value:function(){this.props._emitColumnSettings(this.columnSettings,this.props._columnIndex)}},{key:"componentWillMount",value:function(){this.createLocalEditorPortal()}},{key:"componentDidMount",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"componentWillUpdate",value:function(t,e,n){this.createLocalEditorPortal(t.children)}},{key:"componentDidUpdate",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"render",value:function(){return a.default.createElement(a.default.Fragment,null,this.getLocalEditorPortal())}}]),n}(a.default.Component),M=function(t){y(n,t);var e=b(n);function n(t){var o;return d(this,n),(o=e.call(this,t)).state={portals:[]},o}return f(n,[{key:"render",value:function(){return a.default.createElement(a.default.Fragment,null,this.state.portals)}}]),n}(a.default.Component);function D(t,e){return t(e={exports:{}},e.exports),e.exports}var T="function"==typeof Symbol&&Symbol.for,x=T?Symbol.for("react.element"):60103,W=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,N=T?Symbol.for("react.provider"):60109,F=T?Symbol.for("react.context"):60110,G=T?Symbol.for("react.async_mode"):60111,L=T?Symbol.for("react.concurrent_mode"):60111,z=T?Symbol.for("react.forward_ref"):60112,U=T?Symbol.for("react.suspense"):60113,q=T?Symbol.for("react.suspense_list"):60120,K=T?Symbol.for("react.memo"):60115,Y=T?Symbol.for("react.lazy"):60116,Z=T?Symbol.for("react.block"):60121,J=T?Symbol.for("react.fundamental"):60117,Q=T?Symbol.for("react.responder"):60118,X=T?Symbol.for("react.scope"):60119;function tt(t){if("object"===u(t)&&null!==t){var e=t.$$typeof;switch(e){case x:switch(t=t.type){case G:case L:case H:case V:case $:case U:return t;default:switch(t=t&&t.$$typeof){case F:case z:case Y:case K:case N:return t;default:return e}}case W:return e}}}function et(t){return tt(t)===L}var nt={AsyncMode:G,ConcurrentMode:L,ContextConsumer:F,ContextProvider:N,Element:x,ForwardRef:z,Fragment:H,Lazy:Y,Memo:K,Portal:W,Profiler:V,StrictMode:$,Suspense:U,isAsyncMode:function(t){return et(t)||tt(t)===G},isConcurrentMode:et,isContextConsumer:function(t){return tt(t)===F},isContextProvider:function(t){return tt(t)===N},isElement:function(t){return"object"===u(t)&&null!==t&&t.$$typeof===x},isForwardRef:function(t){return tt(t)===z},isFragment:function(t){return tt(t)===H},isLazy:function(t){return tt(t)===Y},isMemo:function(t){return tt(t)===K},isPortal:function(t){return tt(t)===W},isProfiler:function(t){return tt(t)===V},isStrictMode:function(t){return tt(t)===$},isSuspense:function(t){return tt(t)===U},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===H||t===L||t===V||t===$||t===U||t===q||"object"===u(t)&&null!==t&&(t.$$typeof===Y||t.$$typeof===K||t.$$typeof===N||t.$$typeof===F||t.$$typeof===z||t.$$typeof===J||t.$$typeof===Q||t.$$typeof===X||t.$$typeof===Z)},typeOf:tt};D((function(t,e){}));D((function(t){t.exports=nt}));!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 o=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==o.join(""))return!1;var r={};"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}();function ot(){}function rt(){}Function.call.bind(Object.prototype.hasOwnProperty),rt.resetWarningCache=ot;var at=D((function(t){t.exports=function(){function t(t,e,n,o,r,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var i=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 i.name="Invariant Violation",i}}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:ot};return n.PropTypes=n,n}()})),it=function(t){y(n,t);var e=b(n);function n(t,o){var r;return d(this,n),(r=e.call(this,t,o)).id=null,r.__hotInstance=null,r.hotElementRef=null,r.columnSettings=[],r.portalManager=null,r.portalCacheArray=[],r.globalEditorPortal=null,r.renderedCellCache=new Map,r.editorCache=new Map,r.componentRendererColumns=new Map,j(v(r)),r}return f(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:"getGlobalEditorPortal",value:function(){return this.globalEditorPortal}},{key:"setGlobalEditorPortal",value:function(t){this.globalEditorPortal=t}},{key:"clearCache",value:function(){var t=this.getRenderedCellCache();this.setGlobalEditorPortal(null),O(this.getOwnerDocument()),this.getEditorCache().clear(),t.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,o,r,l,c,u,d){var p=e.getRenderedCellCache();if(p.has("".concat(r,"-").concat(l))&&(o.innerHTML=p.get("".concat(r,"-").concat(l)).innerHTML),o&&!o.getAttribute("ghost-table")){for(var f=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document;o||(o=document),C||(C=o.createDocumentFragment());var r=o.createElement("DIV");C.appendChild(r);var l=a.default.cloneElement(t,s({key:"".concat(e.row,"-").concat(e.col)},e));return{portal:i.default.createPortal(l,r,"".concat(e.row,"-").concat(e.col,"-").concat(Math.random())),portalContainer:r}}(t,{TD:o,row:r,col:l,prop:c,value:u,cellProperties:d,isRenderer:!0},(function(){}),o.ownerDocument),h=f.portal,y=f.portalContainer;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(y),e.portalCacheArray.push(h)}return p.set("".concat(r,"-").concat(l),o),o}}},{key:"getEditorClass",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k,o=w(t),r=this.getEditorCache(),a=null===(e=r.get(o))||void 0===e?void 0:e.get(n);return this.makeEditorClass(a)}},{key:"makeEditorClass",value:function(t){var e=function(e){y(o,e);var n=b(o);function o(e){var r;return d(this,o),r=n.call(this,e),t.hotCustomEditorInstance=v(r),r.editorComponent=t,r}return f(o,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}]),o}(l.default.editors.BaseEditor);return Object.getOwnPropertyNames(l.default.editors.BaseEditor.prototype).forEach((function(n){"constructor"!==n&&(e.prototype[n]=function(){for(var e,o=arguments.length,r=Array(o),a=0;o>a;a++)r[a]=arguments[a];return(e=t[n]).call.apply(e,[t].concat(r))})})),e}},{key:"getGlobalRendererElement",value:function(){return P(this.props.children,"hot-renderer")}},{key:"getGlobalEditorElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.children;return I(t,this.getEditorCache())}},{key:"createGlobalEditorPortal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.children,e=this.getGlobalEditorElement(t);e&&this.setGlobalEditorPortal(_(this.getOwnerDocument(),e,this.getEditorCache()))}},{key:"createNewGlobalSettings",value:function(){var t=A.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,k):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.portalManager.setState((function(){return Object.assign({},{portals:t.portalCacheArray})}),(function(){t.portalCacheArray.length=0}))}},{key:"updateHot",value:function(t){this.hotInstance&&this.hotInstance.updateSettings(t,!1)}},{key:"setPortalManagerRef",value:function(t){this.portalManager=t}},{key:"componentWillMount",value:function(){this.clearCache(),this.createGlobalEditorPortal()}},{key:"componentDidMount",value:function(){var t=this,e=this.createNewGlobalSettings();this.hotInstance=new l.default.Core(this.hotElementRef,e),this.hotInstance.addHook("beforeViewRender",(function(e){t.handsontableBeforeViewRender()})),this.hotInstance.addHook("afterViewRender",(function(){t.handsontableAfterViewRender()})),this.hotInstance.init(),this.displayAutoSizeWarning(e)}},{key:"componentWillUpdate",value:function(t,e,n){this.clearCache(),O(this.getOwnerDocument()),this.createGlobalEditorPortal(t.children)}},{key:"componentDidUpdate",value:function(){var t=this.createNewGlobalSettings();this.updateHot(t),this.displayAutoSizeWarning(t)}},{key:"componentWillUnmount",value:function(){this.hotInstance&&this.hotInstance.destroy(),O(this.getOwnerDocument())}},{key:"render",value:function(){var t=this,e=R(this.props),n=e.id,o=e.className,r=e.style,i=a.default.Children.toArray(this.props.children),l=(i=i.filter((function(t){return function(t){return t.type===B}(t)}))).map((function(e,n){return a.default.cloneElement(e,{_componentRendererColumns:t.componentRendererColumns,_emitColumnSettings:t.setHotColumnSettings.bind(t),_columnIndex:n,_getChildElementByType:P.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})}));return l.push(this.getGlobalEditorPortal()),a.default.createElement(a.default.Fragment,null,a.default.createElement("div",{ref:this.setHotElementRef.bind(this),id:n,className:o,style:r},l),a.default.createElement(M,{ref:this.setPortalManagerRef.bind(this)}))}}],[{key:"version",get:function(){return"12.1.0"}}]),n}(a.default.Component);it.propTypes={style:at.object,id:at.string,className:at.string};var lt=function(t){y(n,t);var e=b(n);function n(t){var o;return d(this,n),(o=e.call(this,t)).name="BaseEditorComponent",o.instance=null,o.row=null,o.col=null,o.prop=null,o.TD=null,o.originalValue=null,o.cellProperties=null,o.state=null,o.hotInstance=null,o.hotCustomEditorInstance=null,o.hot=null,t.emitEditorInstance&&t.emitEditorInstance(v(o),t.editorColumnScope),o}return f(n,[{key:"_fireCallbacks",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;e>o;o++)n[o]=arguments[o];(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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];return(t=l.default.editors.BaseEditor.prototype.open).call.apply(t,[this.hotCustomEditorInstance].concat(n))}},{key:"prepare",value:function(t,e,n,o,r,a){return this.hotInstance=a.instance,this.row=t,this.col=e,this.prop=n,this.TD=o,this.originalValue=r,this.cellProperties=a,l.default.editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance,t,e,n,o,r,a)}},{key:"saveValue",value:function(){for(var t,e=arguments.length,n=Array(e),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];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),o=0;e>o;o++)n[o]=arguments[o];return(t=l.default.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(t,[this.hotCustomEditorInstance].concat(n))}}]),n}(a.default.Component);t.BaseEditorComponent=lt,t.HotColumn=B,t.HotTable=it,t.default=it,Object.defineProperty(t,"__esModule",{value:!0})}));
31
31
  //# sourceMappingURL=react-handsontable.min.js.map