@handsontable/react 15.3.0 → 16.0.0-next-98c6ac7-20250707

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.min.js","sources":["../src/helpers.tsx","../src/settingsMapper.ts","../src/hotColumn.tsx","../src/renderersPortalManager.tsx","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../src/hotTableClass.tsx","../src/hotTable.tsx","../src/baseEditorComponent.tsx"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport {\n EditorScopeIdentifier,\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 */\nexport const 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 * Create an editor portal.\n *\n * @param {Document} doc Document to be used.\n * @param {React.ReactElement} editorElement Editor's element.\n * @returns {React.ReactPortal} The portal for the editor.\n */\nexport function createEditorPortal(doc: Document, editorElement: HotEditorElement): React.ReactPortal | null {\n if (typeof doc === 'undefined' || editorElement === null) {\n return null;\n }\n\n const containerProps = getContainerAttributesProps(editorElement.props, false);\n\n containerProps.className = `${DEFAULT_CLASSNAME} ${containerProps.className}`;\n\n return ReactDOM.createPortal(\n <div {...containerProps}>\n {editorElement}\n </div>\n , doc.body);\n}\n\n/**\n * Get an editor element extended with an instance-emitting method.\n *\n * @param {React.ReactNode} children Component children.\n * @param {Map} editorCache Component's editor cache.\n * @param {EditorScopeIdentifier} [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: EditorScopeIdentifier = 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 {Document} [ownerDocument] The owner document to set the portal up into.\n * @param {String} portalKey The key to be used for the portal.\n * @param {HTMLElement} [cachedContainer] The cached container to be used for the portal.\n * @returns {{portal: React.ReactPortal, portalContainer: HTMLElement}} An object containing the portal and its container.\n */\nexport function createPortal(rElement: React.ReactElement, props, ownerDocument: Document = document, portalKey: string, cachedContainer?: HTMLElement): {\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 = cachedContainer ?? 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, portalKey),\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) : undefined),\n className: props.className || '',\n style: props.style || {},\n };\n}\n\n/**\n * Checks if the environment that the code runs in is a browser.\n *\n * @returns {boolean}\n */\nexport function isCSR(): boolean {\n return typeof window !== 'undefined';\n}\n","import Handsontable from 'handsontable/base';\nimport { HotTableProps } from './types';\n\nexport class SettingsMapper {\n /**\n * Parse component settings into Handsontable-compatible settings.\n *\n * @param {Object} properties Object containing properties from the HotTable object.\n * @param {Object} additionalSettings Additional settings.\n * @param {boolean} additionalSettings.isInit Flag determining whether the settings are being set during initialization.\n * @param {string[]} additionalSettings.initOnlySettingKeys Array of keys that can be set only during initialization.\n * @returns {Object} Handsontable-compatible settings object.\n */\n static getSettings(\n properties: HotTableProps,\n {\n prevProps = {},\n isInit = false,\n initOnlySettingKeys = []\n }: {\n prevProps?: HotTableProps;\n isInit?: boolean;\n initOnlySettingKeys?: Array<keyof Handsontable.GridSettings>\n } = {}): Handsontable.GridSettings {\n const shouldSkipProp = (key: keyof Handsontable.GridSettings) => {\n // Omit settings that can be set only during initialization and are intentionally modified.\n if (!isInit && initOnlySettingKeys.includes(key)) {\n return prevProps[key] === properties[key];\n }\n return false;\n };\n let newSettings: Handsontable.GridSettings = {};\n\n if (properties.settings) {\n let settings = properties.settings;\n for (const key in settings) {\n if (\n settings.hasOwnProperty(key)\n &&\n !shouldSkipProp(key as keyof Handsontable.GridSettings)\n ) {\n newSettings[key] = settings[key];\n }\n }\n }\n\n for (const key in properties) {\n if (\n key !== 'settings' &&\n key !== 'children' &&\n !shouldSkipProp(key as keyof Handsontable.GridSettings) &&\n properties.hasOwnProperty(key)\n ) {\n newSettings[key] = properties[key];\n }\n }\n\n return newSettings;\n }\n}\n","import React from 'react';\nimport { HotTableProps, HotColumnProps } from './types';\nimport {\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 * 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 * 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 = this.props._getChildElementByType(this.props.children, 'hot-renderer');\n const editorElement = 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\n if (editorElement !== null) {\n this.columnSettings.editor = this.props._getEditorClass(editorElement, this.props._columnIndex);\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 after the mounting of the HotColumn component.\n */\n componentDidMount(): void {\n this.createColumnSettings();\n this.emitColumnSettings();\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 const ownerDocument = this.props._getOwnerDocument();\n const editorPortal = createEditorPortal(ownerDocument, this.getLocalEditorElement());\n\n return (\n <React.Fragment>\n {editorPortal}\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 RenderersPortalManager extends React.Component<{}, { portals?: React.ReactPortal[] }> {\n state = {\n portals: []\n };\n\n render() {\n return (\n <React.Fragment>\n {this.state.portals}\n </React.Fragment>\n )\n }\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","/**\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\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","import React from 'react';\nimport Handsontable from 'handsontable/base';\nimport { SettingsMapper } from './settingsMapper';\nimport { RenderersPortalManager } from './renderersPortalManager';\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 isCSR,\n warn\n} from './helpers';\nimport PropTypes from 'prop-types';\nimport { getRenderer } from 'handsontable/renderers/registry';\nimport { getEditor } from 'handsontable/editors/registry';\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 HotTableCB\n */\nclass HotTableClass 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 renderersPortalManager: RenderersPortalManager = null;\n\n /**\n * Map that stores React portals.\n * @type {Map<string, React.ReactPortal>}\n */\n portalCache: Map<string, React.ReactPortal> = new Map();\n\n /**\n * Portal Container Cache\n *\n * @private\n * @type {Map}\n */\n private portalContainerCache: Map<string, HTMLElement> = new Map();\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 * 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 * Returns `true` if the `hotInstance` exists, but was destroyed.\n *\n * @private\n * @returns {boolean}\n */\n _isHotInstanceDestroyed(): boolean {\n return this.__hotInstance && this.__hotInstance.isDestroyed;\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 Portal Container Cache\n *\n * @returns {Map}\n */\n getPortalContainerCache(): Map<string, HTMLElement> {\n return this.portalContainerCache;\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 * Clear both the editor and the renderer cache.\n */\n clearCache(): void {\n this.getRenderedCellCache().clear();\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(): Document | null {\n if (isCSR()) {\n return this.hotElementRef ? this.hotElementRef.ownerDocument : document;\n }\n\n return null;\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 {\n const hotTableComponent = this;\n\n return function __internalRenderer(instance, TD, row, col, prop, value, cellProperties) {\n const renderedCellCache = hotTableComponent.getRenderedCellCache();\n const portalContainerCache = hotTableComponent.getPortalContainerCache()\n const key = `${row}-${col}`;\n\n // Handsontable.Core type is missing guid\n const instanceGuid = (instance as unknown as { guid: string }).guid;\n\n const portalContainerKey = `${instanceGuid}-${key}`\n const portalKey = `${key}-${instanceGuid}`\n\n if (renderedCellCache.has(key)) {\n TD.innerHTML = renderedCellCache.get(key).innerHTML;\n }\n\n if (TD && !TD.getAttribute('ghost-table')) {\n const cachedPortal = hotTableComponent.portalCache.get(portalKey);\n const cachedPortalContainer = portalContainerCache.get(portalContainerKey);\n\n while (TD.firstChild) {\n TD.removeChild(TD.firstChild);\n }\n\n // if portal already exists, do not recreate\n if (cachedPortal && cachedPortalContainer) {\n TD.appendChild(cachedPortalContainer);\n } else {\n const { portal, portalContainer } = createPortal(rendererElement, {\n TD,\n row,\n col,\n prop,\n value,\n cellProperties,\n isRenderer: true\n }, TD.ownerDocument, portalKey, cachedPortalContainer);\n\n portalContainerCache.set(portalContainerKey, portalContainer)\n TD.appendChild(portalContainer);\n\n hotTableComponent.portalCache.set(portalKey, portal);\n }\n }\n\n renderedCellCache.set(key, TD);\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 cachedComponent = this.getEditorCache().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 return getChildElementByType(this.props.children, '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(): HotEditorElement | null {\n return getExtendedEditorElement(this.props.children, this.getEditorCache());\n }\n\n /**\n * Create a new settings object containing the column settings and global editors and renderers.\n *\n * @param {boolean} [init=false] `true` if called on Handsontable initialization.\n * @param {HotTableProps} [prevProps] The previous properties object.\n * @returns {Handsontable.GridSettings} New global set of settings for Handsontable.\n */\n createNewGlobalSettings(init: boolean = false, prevProps: HotTableProps = {}): Handsontable.GridSettings {\n const initOnlySettingKeys = !this._isHotInstanceDestroyed() ? // Needed for React's double-rendering.\n ((this.hotInstance?.getSettings() as any)?._initOnlySettings || []) :\n [];\n const newSettings = SettingsMapper.getSettings(this.props, {\n prevProps,\n isInit: init,\n initOnlySettingKeys\n });\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 } else {\n if (this.props.editor || this.props.settings?.editor) {\n newSettings.editor = this.props.editor || this.props.settings.editor;\n } else {\n newSettings.editor = getEditor('text');\n }\n }\n\n if (globalRendererNode) {\n newSettings.renderer = this.getRendererWrapper(globalRendererNode);\n this.componentRendererColumns.set('global', true);\n } else {\n if (this.props.renderer || this.props.settings?.renderer) {\n newSettings.renderer = this.props.renderer || this.props.settings.renderer;\n } else {\n newSettings.renderer = getRenderer('text');\n }\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.portalCache.clear();\n this.getRenderedCellCache().clear();\n }\n\n /**\n * Handsontable's `afterViewRender` hook callback.\n */\n handsontableAfterViewRender(): void {\n this.renderersPortalManager.setState({\n portals: [...this.portalCache.values()]\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 renderers portal manager ref.\n *\n * @param {React.ReactComponent} pmComponent The PortalManager component.\n */\n private setRenderersPortalManagerRef(pmComponent: RenderersPortalManager): void {\n this.renderersPortalManager = pmComponent;\n }\n\n /*\n ---------------------------------------\n ------- React lifecycle methods -------\n ---------------------------------------\n */\n\n /**\n * Initialize Handsontable after the component has mounted.\n */\n componentDidMount(): void {\n const newGlobalSettings = this.createNewGlobalSettings(true);\n\n this.hotInstance = new Handsontable.Core(this.hotElementRef, newGlobalSettings);\n\n this.hotInstance.addHook('beforeViewRender', () => this.handsontableBeforeViewRender());\n this.hotInstance.addHook('afterViewRender', () => this.handsontableAfterViewRender());\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 after the component update.\n */\n componentDidUpdate(prevProps): void {\n this.clearCache();\n\n const newGlobalSettings = this.createNewGlobalSettings(false, prevProps);\n\n this.updateHot(newGlobalSettings);\n this.displayAutoSizeWarning(newGlobalSettings);\n }\n\n /**\n * Destroy the Handsontable instance when the parent component unmounts.\n */\n componentWillUnmount(): void {\n this.clearCache();\n\n if (this.hotInstance) {\n this.hotInstance.destroy();\n }\n }\n\n /**\n * Render the component.\n */\n render(): React.ReactElement {\n const isHotColumn = (childNode: any) => childNode.type === HotColumn;\n const children = React.Children.toArray(this.props.children);\n\n // clone the HotColumn nodes and extend them with the callbacks\n const hotColumnClones = children\n .filter((childNode: any) => isHotColumn(childNode))\n .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 const containerProps = getContainerAttributesProps(this.props);\n const editorPortal = createEditorPortal(this.getOwnerDocument(), this.getGlobalEditorElement());\n\n return (\n <React.Fragment>\n <div ref={this.setHotElementRef.bind(this)} {...containerProps}>\n {hotColumnClones}\n </div>\n <RenderersPortalManager ref={this.setRenderersPortalManagerRef.bind(this)} />\n {editorPortal}\n </React.Fragment>\n )\n }\n}\n\nexport default HotTableClass;\nexport { HotTableClass };\n","import React, { ForwardRefExoticComponent, RefAttributes } from 'react';\nimport { HotTableClass } from './hotTableClass';\nimport { HotTableProps } from './types';\n\ninterface Version {\n version?: string;\n}\n\ntype HotTable = ForwardRefExoticComponent<HotTableProps & RefAttributes<HotTableClass>> & Version;\n\n// Use global React variable for `forwardRef` access (React 16 support)\nconst HotTable: HotTable = React.forwardRef<HotTableClass, HotTableProps>(({ children, ...props }, ref) => {\n const generatedId = typeof React.useId === 'function' ? React.useId() : undefined;\n const componentId = props.id ?? generatedId;\n\n return (\n <HotTableClass id={componentId} {...props} ref={ref}>\n {children}\n </HotTableClass>\n );\n})\n\nHotTable.version = HotTableClass.version;\n\nexport default HotTable;\nexport { HotTable };\n","import React from 'react';\nimport Handsontable from 'handsontable/base';\nimport { EditorScopeIdentifier, HotEditorProps } from './types';\n\ninterface BaseEditorProps extends HotEditorProps {\n editorColumnScope?: EditorScopeIdentifier;\n emitEditorInstance?: (editor: BaseEditorComponent, column: EditorScopeIdentifier) => void,\n}\n\nclass BaseEditorComponent<P = {}, S = {}, SS = any> extends React.Component<P & BaseEditorProps, S, SS> 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 componentDidMount() {\n if (this.props.emitEditorInstance) {\n this.props.emitEditorInstance(this, this.props.editorColumnScope);\n }\n }\n\n componentDidUpdate() {\n if (this.props.emitEditorInstance) {\n this.props.emitEditorInstance(this, 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","GLOBAL_EDITOR_SCOPE","getChildElementByType","children","type","childrenArray","React","Children","toArray","childrenCount","count","wantedChild","props","find","child","getOriginalEditorClass","editorElement","WrappedComponent","createEditorPortal","doc","containerProps","getContainerAttributesProps","className","concat","ReactDOM","createPortal","body","getExtendedEditorElement","editorCache","editorColumnScope","editorClass","cloneElement","emitEditorInstance","editorInstance","get","set","Map","isEditor","rElement","ownerDocument","arguments","length","undefined","document","portalKey","cachedContainer","createDocumentFragment","portalContainer","createElement","appendChild","extendedRendererElement","_objectSpread","key","row","col","portal","id","Math","random","toString","substring","style","SettingsMapper","_createClass","_classCallCheck","value","properties","_ref","_ref$prevProps","prevProps","_ref$isInit","isInit","_ref$initOnlySettingK","initOnlySettingKeys","shouldSkipProp","includes","newSettings","settings","hasOwnProperty","HotColumn","_React$Component","_callSuper","this","_inherits","_this","internalProps","Object","keys","filter","reduce","obj","_getEditorCache","_columnIndex","rendererElement","_getChildElementByType","getLocalEditorElement","columnSettings","getSettings","getSettingsProps","renderer","_getRendererWrapper","_componentRendererColumns","editor","_getEditorClass","_emitColumnSettings","createColumnSettings","emitColumnSettings","editorPortal","_getOwnerDocument","Fragment","Component","RenderersPortalManager","state","portals","propTypesModule","exports","ReactPropTypesSecret","ReactPropTypesSecret_1","emptyFunction","emptyFunctionWithReset","resetWarningCache","factoryWithThrowingShims","shim","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","require$$2","HotTableClass","__hotInstance","hotElementRef","renderersPortalManager","portalCache","portalContainerCache","renderedCellCache","componentRendererColumns","isDestroyed","console","warn","hotInstance","getRenderedCellCache","clear","window","hotTableComponent","instance","TD","prop","cellProperties","getPortalContainerCache","instanceGuid","guid","portalContainerKey","has","innerHTML","getAttribute","cachedPortal","cachedPortalContainer","firstChild","removeChild","_createPortal","isRenderer","_this$getEditorCache$","cachedComponent","getEditorCache","makeEditorClass","editorComponent","customEditorClass","_Handsontable$editors","CustomEditor","_this2","hotCustomEditorInstance","Handsontable","editors","BaseEditor","getOwnPropertyNames","prototype","forEach","_editorComponent$prop","_len","args","Array","_key","call","apply","_this$hotInstance","_this$props$settings","_this$props$settings2","init","_isHotInstanceDestroyed","_initOnlySettings","globalRendererNode","getGlobalRendererElement","globalEditorNode","getGlobalEditorElement","columns","getEditorClass","getEditor","getRendererWrapper","getRenderer","newGlobalSettings","_this$hotInstance$get","_this$hotInstance$get2","getPlugin","enabled","size","_console","columnIndex","setState","_toConsumableArray","values","updateSettings","pmComponent","_this3","createNewGlobalSettings","Core","addHook","handsontableBeforeViewRender","handsontableAfterViewRender","displayAutoSizeWarning","clearCache","updateHot","destroy","_this4","hotColumnClones","childNode","isHotColumn","map","setHotColumnSettings","bind","getOwnerDocument","assign","ref","setHotElementRef","setRenderersPortalManagerRef","propTypes","HotTable","forwardRef","_props$id","_objectWithoutProperties","_excluded","generatedId","useId","componentId","version","BaseEditorComponent","originalValue","hot","_fireCallbacks","_Handsontable$editors2","_len2","_key2","beginEditing","_Handsontable$editors3","_len3","_key3","cancelChanges","_Handsontable$editors4","_len4","_key4","checkEditorSection","_Handsontable$editors5","_len5","_key5","close","_Handsontable$editors6","_len6","_key6","discardEditor","_Handsontable$editors7","_len7","_key7","enableFullEditMode","_Handsontable$editors8","_len8","_key8","extend","_Handsontable$editors9","_len9","_key9","finishEditing","_Handsontable$editors10","_len10","_key10","focus","_Handsontable$editors11","_len11","_key11","getValue","_Handsontable$editors12","_len12","_key12","_Handsontable$editors13","_len13","_key13","isInFullEditMode","_Handsontable$editors14","_len14","_key14","isOpened","_Handsontable$editors15","_len15","_key15","isWaiting","_Handsontable$editors16","_len16","_key16","open","prepare","_Handsontable$editors17","_len17","_key17","saveValue","_Handsontable$editors18","_len18","_key18","setValue","_Handsontable$editors19","_len19","_key19","_Handsontable$editors20","_len20","_key20","removeHooksByKey","_Handsontable$editors21","_len21","_key21","clearHooks","_Handsontable$editors22","_len22","_key22","getEditedCell","_Handsontable$editors23","_len23","_key23","getEditedCellRect","_Handsontable$editors24","_len24","_key24","getEditedCellsZIndex"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;29GAQA,IAAIA,EAAyB,KAiBhBC,EAAsB,SAyBnB,SAAAC,EAAsBC,EAA2BC,GAC/D,IAAMC,EAAmCC,EAAK,QAACC,SAASC,QAAQL,GAC1DM,EAAwBH,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AA,EAAAD,EAAAC,EAAAA,IAAJ9J,EAAI8J,GAAArU,UAAAqU,GAC1B,OAAQF,EAAApK,EAAY,QAACC,QAAQC,WAAWE,UAAkBmK,sBAAqB5J,KAAIC,MAAAwJ,EAAC,CAAAzR,KAAKoH,yBAAuB/K,OAAKwL,GACvH,IAAC,EArIyDzM,EAAK,QAACwG","x_google_ignoreList":[4,5,6]}
1
+ {"version":3,"file":"react-handsontable.min.js","sources":["../src/helpers.tsx","../src/settingsMapper.ts","../src/hotColumn.tsx","../src/renderersPortalManager.tsx","../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js","../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js","../src/hotTableClass.tsx","../src/hotTable.tsx","../src/baseEditorComponent.tsx"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport {\n EditorScopeIdentifier,\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 */\nexport const 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 * Create an editor portal.\n *\n * @param {Document} doc Document to be used.\n * @param {React.ReactElement} editorElement Editor's element.\n * @returns {React.ReactPortal} The portal for the editor.\n */\nexport function createEditorPortal(doc: Document, editorElement: HotEditorElement): React.ReactPortal | null {\n if (typeof doc === 'undefined' || editorElement === null) {\n return null;\n }\n\n const containerProps = getContainerAttributesProps(editorElement.props, false);\n\n containerProps.className = `${DEFAULT_CLASSNAME} ${containerProps.className}`;\n\n return ReactDOM.createPortal(\n <div {...containerProps}>\n {editorElement}\n </div>\n , doc.body);\n}\n\n/**\n * Get an editor element extended with an instance-emitting method.\n *\n * @param {React.ReactNode} children Component children.\n * @param {Map} editorCache Component's editor cache.\n * @param {EditorScopeIdentifier} [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: EditorScopeIdentifier = 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 {Document} [ownerDocument] The owner document to set the portal up into.\n * @param {String} portalKey The key to be used for the portal.\n * @param {HTMLElement} [cachedContainer] The cached container to be used for the portal.\n * @returns {{portal: React.ReactPortal, portalContainer: HTMLElement}} An object containing the portal and its container.\n */\nexport function createPortal(rElement: React.ReactElement, props, ownerDocument: Document = document, portalKey: string, cachedContainer?: HTMLElement): {\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 = cachedContainer ?? 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, portalKey),\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) : undefined),\n className: props.className || '',\n style: props.style || {},\n };\n}\n\n/**\n * Checks if the environment that the code runs in is a browser.\n *\n * @returns {boolean}\n */\nexport function isCSR(): boolean {\n return typeof window !== 'undefined';\n}\n","import Handsontable from 'handsontable/base';\nimport { HotTableProps } from './types';\n\nexport class SettingsMapper {\n /**\n * Parse component settings into Handsontable-compatible settings.\n *\n * @param {Object} properties Object containing properties from the HotTable object.\n * @param {Object} additionalSettings Additional settings.\n * @param {boolean} additionalSettings.isInit Flag determining whether the settings are being set during initialization.\n * @param {string[]} additionalSettings.initOnlySettingKeys Array of keys that can be set only during initialization.\n * @returns {Object} Handsontable-compatible settings object.\n */\n static getSettings(\n properties: HotTableProps,\n {\n prevProps = {},\n isInit = false,\n initOnlySettingKeys = []\n }: {\n prevProps?: HotTableProps;\n isInit?: boolean;\n initOnlySettingKeys?: Array<keyof Handsontable.GridSettings>\n } = {}): Handsontable.GridSettings {\n const shouldSkipProp = (key: keyof Handsontable.GridSettings) => {\n // Omit settings that can be set only during initialization and are intentionally modified.\n if (!isInit && initOnlySettingKeys.includes(key)) {\n return prevProps[key] === properties[key];\n }\n return false;\n };\n let newSettings: Handsontable.GridSettings = {};\n\n if (properties.settings) {\n let settings = properties.settings;\n for (const key in settings) {\n if (\n settings.hasOwnProperty(key)\n &&\n !shouldSkipProp(key as keyof Handsontable.GridSettings)\n ) {\n newSettings[key] = settings[key];\n }\n }\n }\n\n for (const key in properties) {\n if (\n key !== 'settings' &&\n key !== 'children' &&\n !shouldSkipProp(key as keyof Handsontable.GridSettings) &&\n properties.hasOwnProperty(key)\n ) {\n newSettings[key] = properties[key];\n }\n }\n\n return newSettings;\n }\n}\n","import React from 'react';\nimport { HotTableProps, HotColumnProps } from './types';\nimport {\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 * 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 * 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 = this.props._getChildElementByType(this.props.children, 'hot-renderer');\n const editorElement = 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\n if (editorElement !== null) {\n this.columnSettings.editor = this.props._getEditorClass(editorElement, this.props._columnIndex);\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 after the mounting of the HotColumn component.\n */\n componentDidMount(): void {\n this.createColumnSettings();\n this.emitColumnSettings();\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 const ownerDocument = this.props._getOwnerDocument();\n const editorPortal = createEditorPortal(ownerDocument, this.getLocalEditorElement());\n\n return (\n <React.Fragment>\n {editorPortal}\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 RenderersPortalManager extends React.Component<{}, { portals?: React.ReactPortal[] }> {\n state = {\n portals: []\n };\n\n render() {\n return (\n <React.Fragment>\n {this.state.portals}\n </React.Fragment>\n )\n }\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","/**\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\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","import React from 'react';\nimport Handsontable from 'handsontable/base';\nimport { SettingsMapper } from './settingsMapper';\nimport { RenderersPortalManager } from './renderersPortalManager';\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 isCSR,\n warn\n} from './helpers';\nimport PropTypes from 'prop-types';\nimport { getRenderer } from 'handsontable/renderers/registry';\nimport { getEditor } from 'handsontable/editors/registry';\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 HotTableCB\n */\nclass HotTableClass 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 renderersPortalManager: RenderersPortalManager = null;\n\n /**\n * Map that stores React portals.\n * @type {Map<string, React.ReactPortal>}\n */\n portalCache: Map<string, React.ReactPortal> = new Map();\n\n /**\n * Portal Container Cache\n *\n * @private\n * @type {Map}\n */\n private portalContainerCache: Map<string, HTMLElement> = new Map();\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 * 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 * Returns `true` if the `hotInstance` exists, but was destroyed.\n *\n * @private\n * @returns {boolean}\n */\n _isHotInstanceDestroyed(): boolean {\n return this.__hotInstance && this.__hotInstance.isDestroyed;\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 Portal Container Cache\n *\n * @returns {Map}\n */\n getPortalContainerCache(): Map<string, HTMLElement> {\n return this.portalContainerCache;\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 * Clear both the editor and the renderer cache.\n */\n clearCache(): void {\n this.getRenderedCellCache().clear();\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(): Document | null {\n if (isCSR()) {\n return this.hotElementRef ? this.hotElementRef.ownerDocument : document;\n }\n\n return null;\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 {\n const hotTableComponent = this;\n\n return function __internalRenderer(instance, TD, row, col, prop, value, cellProperties) {\n const renderedCellCache = hotTableComponent.getRenderedCellCache();\n const portalContainerCache = hotTableComponent.getPortalContainerCache()\n const key = `${row}-${col}`;\n\n // Handsontable.Core type is missing guid\n const instanceGuid = (instance as unknown as { guid: string }).guid;\n\n const portalContainerKey = `${instanceGuid}-${key}`\n const portalKey = `${key}-${instanceGuid}`\n\n if (renderedCellCache.has(key)) {\n TD.innerHTML = renderedCellCache.get(key).innerHTML;\n }\n\n if (TD && !TD.getAttribute('ghost-table')) {\n const cachedPortal = hotTableComponent.portalCache.get(portalKey);\n const cachedPortalContainer = portalContainerCache.get(portalContainerKey);\n\n while (TD.firstChild) {\n TD.removeChild(TD.firstChild);\n }\n\n // if portal already exists, do not recreate\n if (cachedPortal && cachedPortalContainer) {\n TD.appendChild(cachedPortalContainer);\n } else {\n const { portal, portalContainer } = createPortal(rendererElement, {\n TD,\n row,\n col,\n prop,\n value,\n cellProperties,\n isRenderer: true\n }, TD.ownerDocument, portalKey, cachedPortalContainer);\n\n portalContainerCache.set(portalContainerKey, portalContainer)\n TD.appendChild(portalContainer);\n\n hotTableComponent.portalCache.set(portalKey, portal);\n }\n }\n\n renderedCellCache.set(key, TD);\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 cachedComponent = this.getEditorCache().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 return getChildElementByType(this.props.children, '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(): HotEditorElement | null {\n return getExtendedEditorElement(this.props.children, this.getEditorCache());\n }\n\n /**\n * Create a new settings object containing the column settings and global editors and renderers.\n *\n * @param {boolean} [init=false] `true` if called on Handsontable initialization.\n * @param {HotTableProps} [prevProps] The previous properties object.\n * @returns {Handsontable.GridSettings} New global set of settings for Handsontable.\n */\n createNewGlobalSettings(init: boolean = false, prevProps: HotTableProps = {}): Handsontable.GridSettings {\n const initOnlySettingKeys = !this._isHotInstanceDestroyed() ? // Needed for React's double-rendering.\n ((this.hotInstance?.getSettings() as any)?._initOnlySettings || []) :\n [];\n const newSettings = SettingsMapper.getSettings(this.props, {\n prevProps,\n isInit: init,\n initOnlySettingKeys\n });\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 } else {\n if (this.props.editor || this.props.settings?.editor) {\n newSettings.editor = this.props.editor || this.props.settings.editor;\n } else {\n newSettings.editor = getEditor('text');\n }\n }\n\n if (globalRendererNode) {\n newSettings.renderer = this.getRendererWrapper(globalRendererNode);\n this.componentRendererColumns.set('global', true);\n } else {\n if (this.props.renderer || this.props.settings?.renderer) {\n newSettings.renderer = this.props.renderer || this.props.settings.renderer;\n } else {\n newSettings.renderer = getRenderer('text');\n }\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.portalCache.clear();\n this.getRenderedCellCache().clear();\n }\n\n /**\n * Handsontable's `afterViewRender` hook callback.\n */\n handsontableAfterViewRender(): void {\n this.renderersPortalManager.setState({\n portals: [...this.portalCache.values()]\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 renderers portal manager ref.\n *\n * @param {React.ReactComponent} pmComponent The PortalManager component.\n */\n private setRenderersPortalManagerRef(pmComponent: RenderersPortalManager): void {\n this.renderersPortalManager = pmComponent;\n }\n\n /*\n ---------------------------------------\n ------- React lifecycle methods -------\n ---------------------------------------\n */\n\n /**\n * Initialize Handsontable after the component has mounted.\n */\n componentDidMount(): void {\n const newGlobalSettings = this.createNewGlobalSettings(true);\n\n this.hotInstance = new Handsontable.Core(this.hotElementRef, newGlobalSettings);\n\n this.hotInstance.addHook('beforeViewRender', () => this.handsontableBeforeViewRender());\n this.hotInstance.addHook('afterViewRender', () => this.handsontableAfterViewRender());\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 after the component update.\n */\n componentDidUpdate(prevProps): void {\n this.clearCache();\n\n const newGlobalSettings = this.createNewGlobalSettings(false, prevProps);\n\n this.updateHot(newGlobalSettings);\n this.displayAutoSizeWarning(newGlobalSettings);\n }\n\n /**\n * Destroy the Handsontable instance when the parent component unmounts.\n */\n componentWillUnmount(): void {\n this.clearCache();\n\n if (this.hotInstance) {\n this.hotInstance.destroy();\n }\n }\n\n /**\n * Render the component.\n */\n render(): React.ReactElement {\n const isHotColumn = (childNode: any) => childNode.type === HotColumn;\n const children = React.Children.toArray(this.props.children);\n\n // clone the HotColumn nodes and extend them with the callbacks\n const hotColumnClones = children\n .filter((childNode: any) => isHotColumn(childNode))\n .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 const containerProps = getContainerAttributesProps(this.props);\n const editorPortal = createEditorPortal(this.getOwnerDocument(), this.getGlobalEditorElement());\n\n return (\n <React.Fragment>\n <div ref={this.setHotElementRef.bind(this)} {...containerProps}>\n {hotColumnClones}\n </div>\n <RenderersPortalManager ref={this.setRenderersPortalManagerRef.bind(this)} />\n {editorPortal}\n </React.Fragment>\n )\n }\n}\n\nexport default HotTableClass;\nexport { HotTableClass };\n","import React, { ForwardRefExoticComponent, RefAttributes } from 'react';\nimport { HotTableClass } from './hotTableClass';\nimport { HotTableProps } from './types';\n\ninterface Version {\n version?: string;\n}\n\ntype HotTable = ForwardRefExoticComponent<HotTableProps & RefAttributes<HotTableClass>> & Version;\n\n// Use global React variable for `forwardRef` access (React 16 support)\nconst HotTable: HotTable = React.forwardRef<HotTableClass, HotTableProps>(({ children, ...props }, ref) => {\n const generatedId = typeof React.useId === 'function' ? React.useId() : undefined;\n const componentId = props.id ?? generatedId;\n\n return (\n <HotTableClass id={componentId} {...props} ref={ref}>\n {children}\n </HotTableClass>\n );\n})\n\nHotTable.version = HotTableClass.version;\n\nexport default HotTable;\nexport { HotTable };\n","import React from 'react';\nimport Handsontable from 'handsontable/base';\nimport { EditorScopeIdentifier, HotEditorProps } from './types';\n\ninterface BaseEditorProps extends HotEditorProps {\n editorColumnScope?: EditorScopeIdentifier;\n emitEditorInstance?: (editor: BaseEditorComponent, column: EditorScopeIdentifier) => void,\n}\n\nclass BaseEditorComponent<P = {}, S = {}, SS = any> extends React.Component<P & BaseEditorProps, S, SS> 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 componentDidMount() {\n if (this.props.emitEditorInstance) {\n this.props.emitEditorInstance(this, this.props.editorColumnScope);\n }\n }\n\n componentDidUpdate() {\n if (this.props.emitEditorInstance) {\n this.props.emitEditorInstance(this, 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","GLOBAL_EDITOR_SCOPE","getChildElementByType","children","type","childrenArray","React","Children","toArray","childrenCount","count","wantedChild","props","find","child","getOriginalEditorClass","editorElement","WrappedComponent","createEditorPortal","doc","containerProps","getContainerAttributesProps","className","concat","ReactDOM","createPortal","body","getExtendedEditorElement","editorCache","editorColumnScope","editorClass","cloneElement","emitEditorInstance","editorInstance","get","set","Map","isEditor","rElement","ownerDocument","arguments","length","undefined","document","portalKey","cachedContainer","createDocumentFragment","portalContainer","createElement","appendChild","extendedRendererElement","_objectSpread","key","row","col","portal","id","Math","random","toString","substring","style","SettingsMapper","_createClass","_classCallCheck","value","properties","_ref","_ref$prevProps","prevProps","_ref$isInit","isInit","_ref$initOnlySettingK","initOnlySettingKeys","shouldSkipProp","includes","newSettings","settings","hasOwnProperty","HotColumn","_React$Component","_callSuper","this","_inherits","_this","internalProps","Object","keys","filter","reduce","obj","_getEditorCache","_columnIndex","rendererElement","_getChildElementByType","getLocalEditorElement","columnSettings","getSettings","getSettingsProps","renderer","_getRendererWrapper","_componentRendererColumns","editor","_getEditorClass","_emitColumnSettings","createColumnSettings","emitColumnSettings","editorPortal","_getOwnerDocument","Fragment","Component","RenderersPortalManager","state","portals","propTypesModule","exports","ReactPropTypesSecret","ReactPropTypesSecret_1","emptyFunction","emptyFunctionWithReset","resetWarningCache","factoryWithThrowingShims","shim","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","require$$2","HotTableClass","__hotInstance","hotElementRef","renderersPortalManager","portalCache","portalContainerCache","renderedCellCache","componentRendererColumns","isDestroyed","console","warn","hotInstance","getRenderedCellCache","clear","window","hotTableComponent","instance","TD","prop","cellProperties","getPortalContainerCache","instanceGuid","guid","portalContainerKey","has","innerHTML","getAttribute","cachedPortal","cachedPortalContainer","firstChild","removeChild","_createPortal","isRenderer","_this$getEditorCache$","cachedComponent","getEditorCache","makeEditorClass","editorComponent","customEditorClass","_Handsontable$editors","CustomEditor","_this2","hotCustomEditorInstance","Handsontable","editors","BaseEditor","getOwnPropertyNames","prototype","forEach","_editorComponent$prop","_len","args","Array","_key","call","apply","_this$hotInstance","_this$props$settings","_this$props$settings2","init","_isHotInstanceDestroyed","_initOnlySettings","globalRendererNode","getGlobalRendererElement","globalEditorNode","getGlobalEditorElement","columns","getEditorClass","getEditor","getRendererWrapper","getRenderer","newGlobalSettings","_this$hotInstance$get","_this$hotInstance$get2","getPlugin","enabled","size","_console","columnIndex","setState","_toConsumableArray","values","updateSettings","pmComponent","_this3","createNewGlobalSettings","Core","addHook","handsontableBeforeViewRender","handsontableAfterViewRender","displayAutoSizeWarning","clearCache","updateHot","destroy","_this4","hotColumnClones","childNode","isHotColumn","map","setHotColumnSettings","bind","getOwnerDocument","assign","ref","setHotElementRef","setRenderersPortalManagerRef","propTypes","HotTable","forwardRef","_props$id","_objectWithoutProperties","_excluded","generatedId","useId","componentId","version","BaseEditorComponent","originalValue","hot","_fireCallbacks","_Handsontable$editors2","_len2","_key2","beginEditing","_Handsontable$editors3","_len3","_key3","cancelChanges","_Handsontable$editors4","_len4","_key4","checkEditorSection","_Handsontable$editors5","_len5","_key5","close","_Handsontable$editors6","_len6","_key6","discardEditor","_Handsontable$editors7","_len7","_key7","enableFullEditMode","_Handsontable$editors8","_len8","_key8","extend","_Handsontable$editors9","_len9","_key9","finishEditing","_Handsontable$editors0","_len0","_key0","focus","_Handsontable$editors1","_len1","_key1","getValue","_Handsontable$editors10","_len10","_key10","_Handsontable$editors11","_len11","_key11","isInFullEditMode","_Handsontable$editors12","_len12","_key12","isOpened","_Handsontable$editors13","_len13","_key13","isWaiting","_Handsontable$editors14","_len14","_key14","open","prepare","_Handsontable$editors15","_len15","_key15","saveValue","_Handsontable$editors16","_len16","_key16","setValue","_Handsontable$editors17","_len17","_key17","_Handsontable$editors18","_len18","_key18","removeHooksByKey","_Handsontable$editors19","_len19","_key19","clearHooks","_Handsontable$editors20","_len20","_key20","getEditedCell","_Handsontable$editors21","_len21","_key21","getEditedCellRect","_Handsontable$editors22","_len22","_key22","getEditedCell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,QAAQC,WAAWE,UAAkB+J,mBAAkBxJ,KAAIC,MAAAoJ,EAAA,CAACrR,KAAKoH,yBAAuB/K,OAAKwL,GACpH,GAAC,CAAA3J,IAAA,uBAAAa,MAED,WAA4B,IAAA,IAAA0S,EAAAC,EAAApU,UAAAC,OAAJsK,EAAIC,MAAA4J,GAAAC,EAAA,EAAAD,EAAAC,EAAAA,IAAJ9J,EAAI8J,GAAArU,UAAAqU,GAC1B,OAAQF,EAAApK,EAAAA,QAAaC,QAAQC,WAAWE,UAAkBmK,sBAAqB5J,KAAIC,MAAAwJ,EAAA,CAACzR,KAAKoH,yBAAuB/K,OAAKwL,GACvH,IAAC,EArIyDzM,EAAAA,QAAMwG","x_google_ignoreList":[4,5,6]}
@@ -487,7 +487,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
487
487
  }]);
488
488
  }(React.Component);
489
489
 
490
- var version="15.3.0";
490
+ var version="16.0.0-next-98c6ac7-20250707";
491
491
 
492
492
  function getDefaultExportFromCjs (x) {
493
493
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -2294,65 +2294,65 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2294
2294
  }, {
2295
2295
  key: "focus",
2296
2296
  value: function focus() {
2297
- var _Handsontable$editors10;
2298
- for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
2299
- args[_key10] = arguments[_key10];
2297
+ var _Handsontable$editors0;
2298
+ for (var _len0 = arguments.length, args = new Array(_len0), _key0 = 0; _key0 < _len0; _key0++) {
2299
+ args[_key0] = arguments[_key0];
2300
2300
  }
2301
- return (_Handsontable$editors10 = Handsontable.editors.BaseEditor.prototype.focus).call.apply(_Handsontable$editors10, [this.hotCustomEditorInstance].concat(args));
2301
+ return (_Handsontable$editors0 = Handsontable.editors.BaseEditor.prototype.focus).call.apply(_Handsontable$editors0, [this.hotCustomEditorInstance].concat(args));
2302
2302
  }
2303
2303
  }, {
2304
2304
  key: "getValue",
2305
2305
  value: function getValue() {
2306
- var _Handsontable$editors11;
2307
- for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
2308
- args[_key11] = arguments[_key11];
2306
+ var _Handsontable$editors1;
2307
+ for (var _len1 = arguments.length, args = new Array(_len1), _key1 = 0; _key1 < _len1; _key1++) {
2308
+ args[_key1] = arguments[_key1];
2309
2309
  }
2310
- return (_Handsontable$editors11 = Handsontable.editors.BaseEditor.prototype.getValue).call.apply(_Handsontable$editors11, [this.hotCustomEditorInstance].concat(args));
2310
+ return (_Handsontable$editors1 = Handsontable.editors.BaseEditor.prototype.getValue).call.apply(_Handsontable$editors1, [this.hotCustomEditorInstance].concat(args));
2311
2311
  }
2312
2312
  }, {
2313
2313
  key: "init",
2314
2314
  value: function init() {
2315
- var _Handsontable$editors12;
2316
- for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
2317
- args[_key12] = arguments[_key12];
2315
+ var _Handsontable$editors10;
2316
+ for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
2317
+ args[_key10] = arguments[_key10];
2318
2318
  }
2319
- return (_Handsontable$editors12 = Handsontable.editors.BaseEditor.prototype.init).call.apply(_Handsontable$editors12, [this.hotCustomEditorInstance].concat(args));
2319
+ return (_Handsontable$editors10 = Handsontable.editors.BaseEditor.prototype.init).call.apply(_Handsontable$editors10, [this.hotCustomEditorInstance].concat(args));
2320
2320
  }
2321
2321
  }, {
2322
2322
  key: "isInFullEditMode",
2323
2323
  value: function isInFullEditMode() {
2324
- var _Handsontable$editors13;
2325
- for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
2326
- args[_key13] = arguments[_key13];
2324
+ var _Handsontable$editors11;
2325
+ for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
2326
+ args[_key11] = arguments[_key11];
2327
2327
  }
2328
- return (_Handsontable$editors13 = Handsontable.editors.BaseEditor.prototype.isInFullEditMode).call.apply(_Handsontable$editors13, [this.hotCustomEditorInstance].concat(args));
2328
+ return (_Handsontable$editors11 = Handsontable.editors.BaseEditor.prototype.isInFullEditMode).call.apply(_Handsontable$editors11, [this.hotCustomEditorInstance].concat(args));
2329
2329
  }
2330
2330
  }, {
2331
2331
  key: "isOpened",
2332
2332
  value: function isOpened() {
2333
- var _Handsontable$editors14;
2334
- for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
2335
- args[_key14] = arguments[_key14];
2333
+ var _Handsontable$editors12;
2334
+ for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
2335
+ args[_key12] = arguments[_key12];
2336
2336
  }
2337
- return (_Handsontable$editors14 = Handsontable.editors.BaseEditor.prototype.isOpened).call.apply(_Handsontable$editors14, [this.hotCustomEditorInstance].concat(args));
2337
+ return (_Handsontable$editors12 = Handsontable.editors.BaseEditor.prototype.isOpened).call.apply(_Handsontable$editors12, [this.hotCustomEditorInstance].concat(args));
2338
2338
  }
2339
2339
  }, {
2340
2340
  key: "isWaiting",
2341
2341
  value: function isWaiting() {
2342
- var _Handsontable$editors15;
2343
- for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
2344
- args[_key15] = arguments[_key15];
2342
+ var _Handsontable$editors13;
2343
+ for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
2344
+ args[_key13] = arguments[_key13];
2345
2345
  }
2346
- return (_Handsontable$editors15 = Handsontable.editors.BaseEditor.prototype.isWaiting).call.apply(_Handsontable$editors15, [this.hotCustomEditorInstance].concat(args));
2346
+ return (_Handsontable$editors13 = Handsontable.editors.BaseEditor.prototype.isWaiting).call.apply(_Handsontable$editors13, [this.hotCustomEditorInstance].concat(args));
2347
2347
  }
2348
2348
  }, {
2349
2349
  key: "open",
2350
2350
  value: function open() {
2351
- var _Handsontable$editors16;
2352
- for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
2353
- args[_key16] = arguments[_key16];
2351
+ var _Handsontable$editors14;
2352
+ for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
2353
+ args[_key14] = arguments[_key14];
2354
2354
  }
2355
- return (_Handsontable$editors16 = Handsontable.editors.BaseEditor.prototype.open).call.apply(_Handsontable$editors16, [this.hotCustomEditorInstance].concat(args));
2355
+ return (_Handsontable$editors14 = Handsontable.editors.BaseEditor.prototype.open).call.apply(_Handsontable$editors14, [this.hotCustomEditorInstance].concat(args));
2356
2356
  }
2357
2357
  }, {
2358
2358
  key: "prepare",
@@ -2369,74 +2369,74 @@ var BaseEditorComponent = /*#__PURE__*/function (_React$Component) {
2369
2369
  }, {
2370
2370
  key: "saveValue",
2371
2371
  value: function saveValue() {
2372
- var _Handsontable$editors17;
2373
- for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
2374
- args[_key17] = arguments[_key17];
2372
+ var _Handsontable$editors15;
2373
+ for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
2374
+ args[_key15] = arguments[_key15];
2375
2375
  }
2376
- return (_Handsontable$editors17 = Handsontable.editors.BaseEditor.prototype.saveValue).call.apply(_Handsontable$editors17, [this.hotCustomEditorInstance].concat(args));
2376
+ return (_Handsontable$editors15 = Handsontable.editors.BaseEditor.prototype.saveValue).call.apply(_Handsontable$editors15, [this.hotCustomEditorInstance].concat(args));
2377
2377
  }
2378
2378
  }, {
2379
2379
  key: "setValue",
2380
2380
  value: function setValue() {
2381
- var _Handsontable$editors18;
2382
- for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
2383
- args[_key18] = arguments[_key18];
2381
+ var _Handsontable$editors16;
2382
+ for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
2383
+ args[_key16] = arguments[_key16];
2384
2384
  }
2385
- return (_Handsontable$editors18 = Handsontable.editors.BaseEditor.prototype.setValue).call.apply(_Handsontable$editors18, [this.hotCustomEditorInstance].concat(args));
2385
+ return (_Handsontable$editors16 = Handsontable.editors.BaseEditor.prototype.setValue).call.apply(_Handsontable$editors16, [this.hotCustomEditorInstance].concat(args));
2386
2386
  }
2387
2387
  }, {
2388
2388
  key: "addHook",
2389
2389
  value: function addHook() {
2390
- var _Handsontable$editors19;
2391
- for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
2392
- args[_key19] = arguments[_key19];
2390
+ var _Handsontable$editors17;
2391
+ for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
2392
+ args[_key17] = arguments[_key17];
2393
2393
  }
2394
- return (_Handsontable$editors19 = Handsontable.editors.BaseEditor.prototype.addHook).call.apply(_Handsontable$editors19, [this.hotCustomEditorInstance].concat(args));
2394
+ return (_Handsontable$editors17 = Handsontable.editors.BaseEditor.prototype.addHook).call.apply(_Handsontable$editors17, [this.hotCustomEditorInstance].concat(args));
2395
2395
  }
2396
2396
  }, {
2397
2397
  key: "removeHooksByKey",
2398
2398
  value: function removeHooksByKey() {
2399
- var _Handsontable$editors20;
2400
- for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
2401
- args[_key20] = arguments[_key20];
2399
+ var _Handsontable$editors18;
2400
+ for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
2401
+ args[_key18] = arguments[_key18];
2402
2402
  }
2403
- return (_Handsontable$editors20 = Handsontable.editors.BaseEditor.prototype.removeHooksByKey).call.apply(_Handsontable$editors20, [this.hotCustomEditorInstance].concat(args));
2403
+ return (_Handsontable$editors18 = Handsontable.editors.BaseEditor.prototype.removeHooksByKey).call.apply(_Handsontable$editors18, [this.hotCustomEditorInstance].concat(args));
2404
2404
  }
2405
2405
  }, {
2406
2406
  key: "clearHooks",
2407
2407
  value: function clearHooks() {
2408
- var _Handsontable$editors21;
2409
- for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
2410
- args[_key21] = arguments[_key21];
2408
+ var _Handsontable$editors19;
2409
+ for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
2410
+ args[_key19] = arguments[_key19];
2411
2411
  }
2412
- return (_Handsontable$editors21 = Handsontable.editors.BaseEditor.prototype.clearHooks).call.apply(_Handsontable$editors21, [this.hotCustomEditorInstance].concat(args));
2412
+ return (_Handsontable$editors19 = Handsontable.editors.BaseEditor.prototype.clearHooks).call.apply(_Handsontable$editors19, [this.hotCustomEditorInstance].concat(args));
2413
2413
  }
2414
2414
  }, {
2415
2415
  key: "getEditedCell",
2416
2416
  value: function getEditedCell() {
2417
- var _Handsontable$editors22;
2418
- for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
2419
- args[_key22] = arguments[_key22];
2417
+ var _Handsontable$editors20;
2418
+ for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
2419
+ args[_key20] = arguments[_key20];
2420
2420
  }
2421
- return (_Handsontable$editors22 = Handsontable.editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors22, [this.hotCustomEditorInstance].concat(args));
2421
+ return (_Handsontable$editors20 = Handsontable.editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors20, [this.hotCustomEditorInstance].concat(args));
2422
2422
  }
2423
2423
  }, {
2424
2424
  key: "getEditedCellRect",
2425
2425
  value: function getEditedCellRect() {
2426
- var _Handsontable$editors23;
2427
- for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
2428
- args[_key23] = arguments[_key23];
2426
+ var _Handsontable$editors21;
2427
+ for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
2428
+ args[_key21] = arguments[_key21];
2429
2429
  }
2430
- return (_Handsontable$editors23 = Handsontable.editors.BaseEditor.prototype.getEditedCellRect).call.apply(_Handsontable$editors23, [this.hotCustomEditorInstance].concat(args));
2430
+ return (_Handsontable$editors21 = Handsontable.editors.BaseEditor.prototype.getEditedCellRect).call.apply(_Handsontable$editors21, [this.hotCustomEditorInstance].concat(args));
2431
2431
  }
2432
2432
  }, {
2433
2433
  key: "getEditedCellsZIndex",
2434
2434
  value: function getEditedCellsZIndex() {
2435
- var _Handsontable$editors24;
2436
- for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
2437
- args[_key24] = arguments[_key24];
2435
+ var _Handsontable$editors22;
2436
+ for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
2437
+ args[_key22] = arguments[_key22];
2438
2438
  }
2439
- return (_Handsontable$editors24 = Handsontable.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors24, [this.hotCustomEditorInstance].concat(args));
2439
+ return (_Handsontable$editors22 = Handsontable.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors22, [this.hotCustomEditorInstance].concat(args));
2440
2440
  }
2441
2441
  }]);
2442
2442
  }(React.Component);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handsontable/react",
3
- "version": "15.3.0",
3
+ "version": "16.0.0-next-98c6ac7-20250707",
4
4
  "description": "Best Data Grid for React with Spreadsheet Look and Feel.",
5
5
  "author": "Handsoncode <hello@handsoncode.net> (https://handsoncode.net)",
6
6
  "homepage": "https://handsontable.com",
@@ -72,8 +72,9 @@
72
72
  "@types/react-dom": "^18.2.0",
73
73
  "@types/react-redux": "^7.1.7",
74
74
  "cross-env": "^7.0.3",
75
- "handsontable": "^15.0.0",
76
- "jest": "^29.7.0",
75
+ "handsontable": "16.0.0-next-98c6ac7-20250707",
76
+ "jest": "^26.6.3",
77
+ "jest-environment-jsdom": "^26.6.2",
77
78
  "prop-types": "^15.7.2",
78
79
  "react": "^18.2.0",
79
80
  "react-dom": "^18.2.0",
@@ -87,7 +88,7 @@
87
88
  "uglify-js": "^3.4.9"
88
89
  },
89
90
  "peerDependencies": {
90
- "handsontable": ">=15.0.0"
91
+ "handsontable": "16.0.0-next-98c6ac7-20250707"
91
92
  },
92
93
  "scripts": {
93
94
  "build": "npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:min",