@handsontable/react 0.0.0-next-0f2b3cd-20240215 → 0.0.0-next-a987a12-20240219
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.
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var ReactDOM = require('react-dom');
|
|
7
7
|
var Handsontable = require('handsontable/base');
|
|
8
|
+
var registry$1 = require('handsontable/renderers/registry');
|
|
9
|
+
var registry = require('handsontable/editors/registry');
|
|
8
10
|
|
|
9
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
12
|
|
|
@@ -515,7 +517,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
515
517
|
return RenderersPortalManager;
|
|
516
518
|
}(React__default["default"].Component);
|
|
517
519
|
|
|
518
|
-
var version="0.0.0-next-
|
|
520
|
+
var version="0.0.0-next-a987a12-20240219";
|
|
519
521
|
|
|
520
522
|
function createCommonjsModule(fn, module) {
|
|
521
523
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
@@ -1830,7 +1832,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1830
1832
|
key: "getRendererWrapper",
|
|
1831
1833
|
value: function getRendererWrapper(rendererElement) {
|
|
1832
1834
|
var hotTableComponent = this;
|
|
1833
|
-
return function (instance, TD, row, col, prop, value, cellProperties) {
|
|
1835
|
+
return function __internalRenderer(instance, TD, row, col, prop, value, cellProperties) {
|
|
1834
1836
|
var renderedCellCache = hotTableComponent.getRenderedCellCache();
|
|
1835
1837
|
var portalContainerCache = hotTableComponent.getPortalContainerCache();
|
|
1836
1838
|
var key = "".concat(row, "-").concat(col);
|
|
@@ -1976,13 +1978,23 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1976
1978
|
if (globalEditorNode) {
|
|
1977
1979
|
newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);
|
|
1978
1980
|
} else {
|
|
1979
|
-
|
|
1981
|
+
var _this$props$settings;
|
|
1982
|
+
if (this.props.editor || (_this$props$settings = this.props.settings) !== null && _this$props$settings !== void 0 && _this$props$settings.editor) {
|
|
1983
|
+
newSettings.editor = this.props.editor || this.props.settings.editor;
|
|
1984
|
+
} else {
|
|
1985
|
+
newSettings.editor = registry.getEditor('text');
|
|
1986
|
+
}
|
|
1980
1987
|
}
|
|
1981
1988
|
if (globalRendererNode) {
|
|
1982
1989
|
newSettings.renderer = this.getRendererWrapper(globalRendererNode);
|
|
1983
1990
|
this.componentRendererColumns.set('global', true);
|
|
1984
1991
|
} else {
|
|
1985
|
-
|
|
1992
|
+
var _this$props$settings2;
|
|
1993
|
+
if (this.props.renderer || (_this$props$settings2 = this.props.settings) !== null && _this$props$settings2 !== void 0 && _this$props$settings2.renderer) {
|
|
1994
|
+
newSettings.renderer = this.props.renderer || this.props.settings.renderer;
|
|
1995
|
+
} else {
|
|
1996
|
+
newSettings.renderer = registry$1.getRenderer('text');
|
|
1997
|
+
}
|
|
1986
1998
|
}
|
|
1987
1999
|
return newSettings;
|
|
1988
2000
|
}
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
|
27
27
|
*
|
|
28
|
-
* Version: 0.0.0-next-
|
|
28
|
+
* Version: 0.0.0-next-a987a12-20240219 (built at Mon Feb 19 2024 10:03:57 GMT+0000 (Coordinated Universal Time))
|
|
29
29
|
*/
|
|
30
30
|
(function (global, factory) {
|
|
31
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom'), require('handsontable/base')) :
|
|
32
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom', 'handsontable/base'], factory) :
|
|
33
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.Handsontable = global.Handsontable || {}, global.Handsontable.react = {}), global.React, global.ReactDOM, global.Handsontable));
|
|
34
|
-
})(this, (function (exports, React, ReactDOM, Handsontable) { 'use strict';
|
|
31
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom'), require('handsontable/base'), require('handsontable/renderers/registry'), require('handsontable/editors/registry')) :
|
|
32
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom', 'handsontable/base', 'handsontable/renderers/registry', 'handsontable/editors/registry'], factory) :
|
|
33
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.Handsontable = global.Handsontable || {}, global.Handsontable.react = {}), global.React, global.ReactDOM, global.Handsontable, global.Handsontable.renderers, global.Handsontable.editors));
|
|
34
|
+
})(this, (function (exports, React, ReactDOM, Handsontable, registry$1, registry) { 'use strict';
|
|
35
35
|
|
|
36
36
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
37
37
|
|
|
@@ -542,7 +542,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
542
542
|
return RenderersPortalManager;
|
|
543
543
|
}(React__default["default"].Component);
|
|
544
544
|
|
|
545
|
-
var version="0.0.0-next-
|
|
545
|
+
var version="0.0.0-next-a987a12-20240219";
|
|
546
546
|
|
|
547
547
|
function createCommonjsModule(fn, module) {
|
|
548
548
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
@@ -1079,7 +1079,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1079
1079
|
key: "getRendererWrapper",
|
|
1080
1080
|
value: function getRendererWrapper(rendererElement) {
|
|
1081
1081
|
var hotTableComponent = this;
|
|
1082
|
-
return function (instance, TD, row, col, prop, value, cellProperties) {
|
|
1082
|
+
return function __internalRenderer(instance, TD, row, col, prop, value, cellProperties) {
|
|
1083
1083
|
var renderedCellCache = hotTableComponent.getRenderedCellCache();
|
|
1084
1084
|
var portalContainerCache = hotTableComponent.getPortalContainerCache();
|
|
1085
1085
|
var key = "".concat(row, "-").concat(col);
|
|
@@ -1225,13 +1225,23 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1225
1225
|
if (globalEditorNode) {
|
|
1226
1226
|
newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);
|
|
1227
1227
|
} else {
|
|
1228
|
-
|
|
1228
|
+
var _this$props$settings;
|
|
1229
|
+
if (this.props.editor || (_this$props$settings = this.props.settings) !== null && _this$props$settings !== void 0 && _this$props$settings.editor) {
|
|
1230
|
+
newSettings.editor = this.props.editor || this.props.settings.editor;
|
|
1231
|
+
} else {
|
|
1232
|
+
newSettings.editor = registry.getEditor('text');
|
|
1233
|
+
}
|
|
1229
1234
|
}
|
|
1230
1235
|
if (globalRendererNode) {
|
|
1231
1236
|
newSettings.renderer = this.getRendererWrapper(globalRendererNode);
|
|
1232
1237
|
this.componentRendererColumns.set('global', true);
|
|
1233
1238
|
} else {
|
|
1234
|
-
|
|
1239
|
+
var _this$props$settings2;
|
|
1240
|
+
if (this.props.renderer || (_this$props$settings2 = this.props.settings) !== null && _this$props$settings2 !== void 0 && _this$props$settings2.renderer) {
|
|
1241
|
+
newSettings.renderer = this.props.renderer || this.props.settings.renderer;
|
|
1242
|
+
} else {
|
|
1243
|
+
newSettings.renderer = registry$1.getRenderer('text');
|
|
1244
|
+
}
|
|
1235
1245
|
}
|
|
1236
1246
|
return newSettings;
|
|
1237
1247
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-handsontable.js","sources":["../src/helpers.tsx","../src/settingsMapper.ts","../src/hotColumn.tsx","../src/renderersPortalManager.tsx","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../src/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 Handosntable-compatible settings.\n *\n * @param {Object} properties Object containing properties from the HotTable object.\n * @returns {Object} Handsontable-compatible settings object.\n */\n static getSettings(properties: HotTableProps): Handsontable.GridSettings {\n let newSettings: Handsontable.GridSettings = {};\n\n if (properties.settings) {\n let settings = properties.settings;\n for (const key in settings) {\n if (settings.hasOwnProperty(key)) {\n newSettings[key] = settings[key];\n }\n }\n }\n\n for (const key in properties) {\n if (key !== 'settings' && key !== 'children' && properties.hasOwnProperty(key)) {\n newSettings[key] = properties[key];\n }\n }\n\n return newSettings;\n }\n}\n","import React 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","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","import React from 'react';\nimport Handsontable from 'handsontable/base';\nimport { SettingsMapper } from './settingsMapper';\nimport { 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';\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 * 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 (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 * @returns {Handsontable.GridSettings} New global set of settings for Handsontable.\n */\n createNewGlobalSettings(): Handsontable.GridSettings {\n const newSettings = SettingsMapper.getSettings(this.props);\n const globalRendererNode = this.getGlobalRendererElement();\n const globalEditorNode = this.getGlobalEditorElement();\n\n newSettings.columns = this.columnSettings.length ? this.columnSettings : newSettings.columns;\n\n if (globalEditorNode) {\n newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);\n\n } else {\n newSettings.editor = this.props.editor || (this.props.settings ? this.props.settings.editor : void 0);\n }\n\n if (globalRendererNode) {\n newSettings.renderer = this.getRendererWrapper(globalRendererNode);\n this.componentRendererColumns.set('global', true);\n\n } else {\n newSettings.renderer = this.props.renderer || (this.props.settings ? this.props.settings.renderer : void 0);\n }\n\n return newSettings;\n }\n\n /**\n * Detect if `autoRowSize` or `autoColumnSize` is defined, and if so, throw an incompatibility warning.\n *\n * @param {Handsontable.GridSettings} newGlobalSettings New global settings passed as Handsontable config.\n */\n displayAutoSizeWarning(newGlobalSettings: Handsontable.GridSettings): void {\n if (\n this.hotInstance &&\n (\n this.hotInstance.getPlugin('autoRowSize')?.enabled ||\n this.hotInstance.getPlugin('autoColumnSize')?.enabled\n )\n ) {\n if (this.componentRendererColumns.size > 0) {\n warn(AUTOSIZE_WARNING);\n }\n }\n }\n\n /**\n * Sets the column settings based on information received from HotColumn.\n *\n * @param {HotTableProps} columnSettings Column settings object.\n * @param {Number} columnIndex Column index.\n */\n setHotColumnSettings(columnSettings: Handsontable.ColumnSettings, columnIndex: number): void {\n this.columnSettings[columnIndex] = columnSettings;\n }\n\n /**\n * Handsontable's `beforeViewRender` hook callback.\n */\n handsontableBeforeViewRender(): void {\n this.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();\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(): void {\n this.clearCache();\n\n const newGlobalSettings = this.createNewGlobalSettings();\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","AUTOSIZE_WARNING","HOT_DESTROYED_WARNING","GLOBAL_EDITOR_SCOPE","DEFAULT_CLASSNAME","warn","console","_console","apply","arguments","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","cacheEntry","isEditor","rElement","ownerDocument","length","undefined","document","portalKey","cachedContainer","createDocumentFragment","portalContainer","createElement","appendChild","extendedRendererElement","_objectSpread","key","row","col","portal","randomizeId","id","Math","random","toString","substring","style","isCSR","window","SettingsMapper","_classCallCheck","_createClass","value","getSettings","properties","newSettings","settings","hasOwnProperty","HotColumn","_React$Component","_inherits","_callSuper","getSettingsProps","_this","internalProps","Object","keys","filter","includes","reduce","obj","getLocalEditorElement","_getEditorCache","_columnIndex","createColumnSettings","rendererElement","_getChildElementByType","columnSettings","renderer","_getRendererWrapper","_componentRendererColumns","editor","_getEditorClass","emitColumnSettings","_emitColumnSettings","componentDidMount","componentDidUpdate","render","_getOwnerDocument","editorPortal","Fragment","Component","RenderersPortalManager","state","portals","b","Symbol","c","d","e","f","g","h","k","l","m","n","p","q","r","t","v","w","x","y","z","a","_typeof","u","$$typeof","A","AsyncMode","ConcurrentMode","ContextProvider","Element","ForwardRef","Memo","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","module","exports","require$$0","getOwnPropertySymbols","prototype","propIsEnumerable","propertyIsEnumerable","toObject","val","TypeError","shouldUseNative","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","order2","map","join","test3","split","forEach","letter","err","target","source","from","to","symbols","s","call","ReactPropTypesSecret","ReactPropTypesSecret_1","Function","bind","emptyFunction","emptyFunctionWithReset","resetWarningCache","factoryWithThrowingShims","shim","propName","componentName","location","propFullName","secret","Error","name","isRequired","getShim","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","require$$2","HotTableClass","__hotInstance","hotElementRef","renderersPortalManager","portalCache","portalContainerCache","renderedCellCache","componentRendererColumns","isDestroyed","hotInstance","getPortalContainerCache","getRenderedCellCache","getEditorCache","clearCache","clear","getOwnerDocument","setHotElementRef","getRendererWrapper","hotTableComponent","instance","TD","prop","cellProperties","instanceGuid","guid","portalContainerKey","has","innerHTML","getAttribute","cachedPortal","cachedPortalContainer","firstChild","removeChild","_createPortal","isRenderer","getEditorClass","_this$getEditorCache$","cachedComponent","makeEditorClass","editorComponent","customEditorClass","_Handsontable$editors","CustomEditor","_this2","hotCustomEditorInstance","_assertThisInitialized","focus","getValue","setValue","open","close","Handsontable","editors","BaseEditor","_editorComponent$prop","_len","args","Array","_key","getGlobalRendererElement","getGlobalEditorElement","createNewGlobalSettings","globalRendererNode","globalEditorNode","columns","displayAutoSizeWarning","newGlobalSettings","_this$hotInstance$get","_this$hotInstance$get2","getPlugin","enabled","size","setHotColumnSettings","columnIndex","handsontableBeforeViewRender","handsontableAfterViewRender","setState","_toConsumableArray","values","updateHot","updateSettings","setRenderersPortalManagerRef","pmComponent","_this3","Core","addHook","init","componentWillUnmount","destroy","_this4","isHotColumn","childNode","hotColumnClones","ref","packageJson","propTypes","HotTable","forwardRef","_ref","_props$id","_objectWithoutProperties","_excluded","generatedId","useId","componentId","version","BaseEditorComponent","originalValue","hot","_fireCallbacks","beginEditing","_Handsontable$editors2","_len2","_key2","cancelChanges","_Handsontable$editors3","_len3","_key3","checkEditorSection","_Handsontable$editors4","_len4","_key4","_Handsontable$editors5","_len5","_key5","discardEditor","_Handsontable$editors6","_len6","_key6","enableFullEditMode","_Handsontable$editors7","_len7","_key7","extend","_Handsontable$editors8","_len8","_key8","finishEditing","_Handsontable$editors9","_len9","_key9","_Handsontable$editors10","_len10","_key10","_Handsontable$editors11","_len11","_key11","_Handsontable$editors12","_len12","_key12","isInFullEditMode","_Handsontable$editors13","_len13","_key13","isOpened","_Handsontable$editors14","_len14","_key14","isWaiting","_Handsontable$editors15","_len15","_key15","_Handsontable$editors16","_len16","_key16","prepare","saveValue","_Handsontable$editors17","_len17","_key17","_Handsontable$editors18","_len18","_key18","_Handsontable$editors19","_len19","_key19","removeHooksByKey","_Handsontable$editors20","_len20","_key20","clearHooks","_Handsontable$editors21","_len21","_key21","getEditedCell","_Handsontable$editors22","_len22","_key22","getEditedCellRect","_Handsontable$editors23","_len23","_key23","getEditedCellsZIndex","_Handsontable$editors24","_len24","_key24"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAA,GAAAD,MAAA,EAAAC,MAAA,EAAA,EAAA;AAAJ3I,QAAAA,IAAI,CAAA2I,MAAA,CAAA9a,GAAAA,SAAA,CAAA8a,MAAA,CAAA,CAAA;AAAA,OAAA;MAC1B,OAAQ,CAAAF,uBAAA,GAAA9I,gCAAY,CAACC,OAAO,CAACC,UAAU,CAAC3H,SAAiB,CAACsQ,oBAAoB,EAAC1O,IAAI,CAAAlM,KAAA,CAAA6a,uBAAA,EAAC,CAAA,IAAI,CAACrJ,uBAAuB,CAAAjQ,CAAAA,MAAA,CAAK6Q,IAAI,CAAC,CAAA,CAAA;AAC5H,KAAA;AAAC,GAAA,CAAA,CAAA,CAAA;AAAA,EAAA,OAAAkD,mBAAA,CAAA;AAAA,CArIyDhV,CAAAA,yBAAK,CAACqG,SAAqC;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"react-handsontable.js","sources":["../src/helpers.tsx","../src/settingsMapper.ts","../src/hotColumn.tsx","../src/renderersPortalManager.tsx","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../src/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 Handosntable-compatible settings.\n *\n * @param {Object} properties Object containing properties from the HotTable object.\n * @returns {Object} Handsontable-compatible settings object.\n */\n static getSettings(properties: HotTableProps): Handsontable.GridSettings {\n let newSettings: Handsontable.GridSettings = {};\n\n if (properties.settings) {\n let settings = properties.settings;\n for (const key in settings) {\n if (settings.hasOwnProperty(key)) {\n newSettings[key] = settings[key];\n }\n }\n }\n\n for (const key in properties) {\n if (key !== 'settings' && key !== 'children' && properties.hasOwnProperty(key)) {\n newSettings[key] = properties[key];\n }\n }\n\n return newSettings;\n }\n}\n","import React 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","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","import React from 'react';\nimport Handsontable from 'handsontable/base';\nimport { SettingsMapper } from './settingsMapper';\nimport { 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 * 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 * @returns {Handsontable.GridSettings} New global set of settings for Handsontable.\n */\n createNewGlobalSettings(): Handsontable.GridSettings {\n const newSettings = SettingsMapper.getSettings(this.props);\n const globalRendererNode = this.getGlobalRendererElement();\n const globalEditorNode = this.getGlobalEditorElement();\n\n newSettings.columns = this.columnSettings.length ? this.columnSettings : newSettings.columns;\n\n if (globalEditorNode) {\n newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);\n } 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();\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(): void {\n this.clearCache();\n\n const newGlobalSettings = this.createNewGlobalSettings();\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","AUTOSIZE_WARNING","HOT_DESTROYED_WARNING","GLOBAL_EDITOR_SCOPE","DEFAULT_CLASSNAME","warn","console","_console","apply","arguments","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","cacheEntry","isEditor","rElement","ownerDocument","length","undefined","document","portalKey","cachedContainer","createDocumentFragment","portalContainer","createElement","appendChild","extendedRendererElement","_objectSpread","key","row","col","portal","randomizeId","id","Math","random","toString","substring","style","isCSR","window","SettingsMapper","_classCallCheck","_createClass","value","getSettings","properties","newSettings","settings","hasOwnProperty","HotColumn","_React$Component","_inherits","_callSuper","getSettingsProps","_this","internalProps","Object","keys","filter","includes","reduce","obj","getLocalEditorElement","_getEditorCache","_columnIndex","createColumnSettings","rendererElement","_getChildElementByType","columnSettings","renderer","_getRendererWrapper","_componentRendererColumns","editor","_getEditorClass","emitColumnSettings","_emitColumnSettings","componentDidMount","componentDidUpdate","render","_getOwnerDocument","editorPortal","Fragment","Component","RenderersPortalManager","state","portals","b","Symbol","c","d","e","f","g","h","k","l","m","n","p","q","r","t","v","w","x","y","z","a","_typeof","u","$$typeof","A","AsyncMode","ConcurrentMode","ContextProvider","Element","ForwardRef","Memo","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","module","exports","require$$0","getOwnPropertySymbols","prototype","propIsEnumerable","propertyIsEnumerable","toObject","val","TypeError","shouldUseNative","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","order2","map","join","test3","split","forEach","letter","err","target","source","from","to","symbols","s","call","ReactPropTypesSecret","ReactPropTypesSecret_1","Function","bind","emptyFunction","emptyFunctionWithReset","resetWarningCache","factoryWithThrowingShims","shim","propName","componentName","location","propFullName","secret","Error","name","isRequired","getShim","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","require$$2","HotTableClass","__hotInstance","hotElementRef","renderersPortalManager","portalCache","portalContainerCache","renderedCellCache","componentRendererColumns","isDestroyed","hotInstance","getPortalContainerCache","getRenderedCellCache","getEditorCache","clearCache","clear","getOwnerDocument","setHotElementRef","getRendererWrapper","hotTableComponent","__internalRenderer","instance","TD","prop","cellProperties","instanceGuid","guid","portalContainerKey","has","innerHTML","getAttribute","cachedPortal","cachedPortalContainer","firstChild","removeChild","_createPortal","isRenderer","getEditorClass","_this$getEditorCache$","cachedComponent","makeEditorClass","editorComponent","customEditorClass","_Handsontable$editors","CustomEditor","_this2","hotCustomEditorInstance","_assertThisInitialized","focus","getValue","setValue","open","close","Handsontable","editors","BaseEditor","_editorComponent$prop","_len","args","Array","_key","getGlobalRendererElement","getGlobalEditorElement","createNewGlobalSettings","globalRendererNode","globalEditorNode","columns","_this$props$settings","getEditor","_this$props$settings2","getRenderer","displayAutoSizeWarning","newGlobalSettings","_this$hotInstance$get","_this$hotInstance$get2","getPlugin","enabled","size","setHotColumnSettings","columnIndex","handsontableBeforeViewRender","handsontableAfterViewRender","setState","_toConsumableArray","values","updateHot","updateSettings","setRenderersPortalManagerRef","pmComponent","_this3","Core","addHook","init","componentWillUnmount","destroy","_this4","isHotColumn","childNode","hotColumnClones","ref","packageJson","propTypes","HotTable","forwardRef","_ref","_props$id","_objectWithoutProperties","_excluded","generatedId","useId","componentId","version","BaseEditorComponent","originalValue","hot","_fireCallbacks","beginEditing","_Handsontable$editors2","_len2","_key2","cancelChanges","_Handsontable$editors3","_len3","_key3","checkEditorSection","_Handsontable$editors4","_len4","_key4","_Handsontable$editors5","_len5","_key5","discardEditor","_Handsontable$editors6","_len6","_key6","enableFullEditMode","_Handsontable$editors7","_len7","_key7","extend","_Handsontable$editors8","_len8","_key8","finishEditing","_Handsontable$editors9","_len9","_key9","_Handsontable$editors10","_len10","_key10","_Handsontable$editors11","_len11","_key11","_Handsontable$editors12","_len12","_key12","isInFullEditMode","_Handsontable$editors13","_len13","_key13","isOpened","_Handsontable$editors14","_len14","_key14","isWaiting","_Handsontable$editors15","_len15","_key15","_Handsontable$editors16","_len16","_key16","prepare","saveValue","_Handsontable$editors17","_len17","_key17","_Handsontable$editors18","_len18","_key18","_Handsontable$editors19","_len19","_key19","removeHooksByKey","_Handsontable$editors20","_len20","_key20","clearHooks","_Handsontable$editors21","_len21","_key21","getEditedCell","_Handsontable$editors22","_len22","_key22","getEditedCellRect","_Handsontable$editors23","_len23","_key23","getEditedCellsZIndex","_Handsontable$editors24","_len24","_key24"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAIA,sBAAsB,GAAG,IAAI,CAAA;AAEjC;;AAEG;AACI,IAAMC,gBAAgB,GAAG,+GAA+G,GAC7I,qHAAqH,CAAA;AAEvH;;AAEG;AACI,IAAMC,qBAAqB,GAAG,+EAA+E,GAClH,iBAAiB,CAAA;AAEnB;;AAEG;AACI,IAAMC,mBAAmB,GAAG,QAAQ,CAAA;AAE3C;;AAEG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AAgB,KAAA,EAED,SAAA6W,oBAAAA,GAA4B;AAAA,MAAA,IAAAC,uBAAA,CAAA;AAAA,MAAA,KAAA,IAAAC,MAAA,GAAAlb,SAAA,CAAAwC,MAAA,EAAJ4P,IAAI,GAAAC,IAAAA,KAAA,CAAA6I,MAAA,GAAAC,MAAA,GAAA,CAAA,EAAAA,MAAA,GAAAD,MAAA,EAAAC,MAAA,EAAA,EAAA;AAAJ/I,QAAAA,IAAI,CAAA+I,MAAA,CAAAnb,GAAAA,SAAA,CAAAmb,MAAA,CAAA,CAAA;AAAA,OAAA;MAC1B,OAAQ,CAAAF,uBAAA,GAAAlJ,gCAAY,CAACC,OAAO,CAACC,UAAU,CAAC5H,SAAiB,CAAC2Q,oBAAoB,EAAC/O,IAAI,CAAAlM,KAAA,CAAAkb,uBAAA,EAAC,CAAA,IAAI,CAACzJ,uBAAuB,CAAAlQ,CAAAA,MAAA,CAAK8Q,IAAI,CAAC,CAAA,CAAA;AAC5H,KAAA;AAAC,GAAA,CAAA,CAAA,CAAA;AAAA,EAAA,OAAAsD,mBAAA,CAAA;AAAA,CArIyDrV,CAAAA,yBAAK,CAACqG,SAAqC;;;;;;;;;;;;;"}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
|
27
27
|
*
|
|
28
|
-
* Version: 0.0.0-next-
|
|
28
|
+
* Version: 0.0.0-next-a987a12-20240219 (built at Mon Feb 19 2024 10:04:02 GMT+0000 (Coordinated Universal Time))
|
|
29
29
|
*/
|
|
30
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("handsontable/base")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","handsontable/base"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Handsontable=e.Handsontable||{},e.Handsontable.react={}),e.React,e.ReactDOM,e.Handsontable)}(this,(function(e,t,n,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(t),a=o(n),l=o(r);function s(e,t,n){return t=v(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}(e,u()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function y(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;i.length>r;r++)0>t.indexOf(n=i[r])&&(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;i.length>r;r++)0>t.indexOf(n=i[r])&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);t>n;n++)r[n]=e[n];return r}var w=null,O="global";function I(e,t){var n=i.default.Children.toArray(e),r=i.default.Children.count(e),o=null;return 0!==r&&(o=1===r&&n[0].props[t]?n[0]:n.find((function(e){return void 0!==e.props[t]}))),o||null}function _(e){return e?e.type.WrappedComponent?e.type.WrappedComponent:e.type:null}function P(e,t){if(void 0===e||null===t)return null;var n=A(t.props,!1);return n.className="".concat("hot-wrapper-editor-container"," ").concat(n.className),a.default.createPortal(i.default.createElement("div",Object.assign({},n),t),e.body)}function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O,r=I(e,"hot-editor"),o=_(r);return r?i.default.cloneElement(r,{emitEditorInstance:function(e,n){t.get(o)||t.set(o,new Map),t.get(o).set(null!=n?n:O,e)},editorColumnScope:n,isEditor:!0}):null}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;n||(n=document),w||(w=n.createDocumentFragment());var l=null!=o?o:n.createElement("DIV");w.appendChild(l);var s=i.default.cloneElement(e,function(e){for(var t=1;arguments.length>t;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(t.row,"-").concat(t.col)},t));return{portal:a.default.createPortal(s,l,r),portalContainer:l}}function A(e){return{id:e.id||(1>=arguments.length||void 0===arguments[1]||arguments[1]?"hot-"+Math.random().toString(36).substring(5):void 0),className:e.className||"",style:e.style||{}}}var B=function(){function e(){f(this,e)}return y(e,null,[{key:"getSettings",value:function(e){var t={};if(e.settings){var n=e.settings;for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}for(var o in e)"settings"!==o&&"children"!==o&&e.hasOwnProperty(o)&&(t[o]=e[o]);return t}}]),e}(),M=function(e){function t(){return f(this,t),s(this,t,arguments)}return g(t,e),y(t,[{key:"getSettingsProps",value:function(){var e=this;return this.internalProps=["_componentRendererColumns","_emitColumnSettings","_columnIndex","_getChildElementByType","_getRendererWrapper","_getEditorClass","_getEditorCache","_getOwnerDocument","hot-renderer","hot-editor","children"],Object.keys(this.props).filter((function(t){return!e.internalProps.includes(t)})).reduce((function(t,n){return t[n]=e.props[n],t}),{})}},{key:"getLocalEditorElement",value:function(){return j(this.props.children,this.props._getEditorCache(),this.props._columnIndex)}},{key:"createColumnSettings",value:function(){var e=this.props._getChildElementByType(this.props.children,"hot-renderer"),t=this.getLocalEditorElement();this.columnSettings=B.getSettings(this.getSettingsProps()),null!==e&&(this.columnSettings.renderer=this.props._getRendererWrapper(e),this.props._componentRendererColumns.set(this.props._columnIndex,!0)),null!==t&&(this.columnSettings.editor=this.props._getEditorClass(t,this.props._columnIndex))}},{key:"emitColumnSettings",value:function(){this.props._emitColumnSettings(this.columnSettings,this.props._columnIndex)}},{key:"componentDidMount",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"componentDidUpdate",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"render",value:function(){var e=P(this.props._getOwnerDocument(),this.getLocalEditorElement());return i.default.createElement(i.default.Fragment,null,e)}}]),t}(i.default.Component),T=function(e){function t(){var e;return f(this,t),(e=s(this,t,arguments)).state={portals:[]},e}return g(t,e),y(t,[{key:"render",value:function(){return i.default.createElement(i.default.Fragment,null,this.state.portals)}}]),t}(i.default.Component);function D(e,t){return e(t={exports:{}},t.exports),t.exports}var x="function"==typeof Symbol&&Symbol.for,H=x?Symbol.for("react.element"):60103,$=x?Symbol.for("react.portal"):60106,V=x?Symbol.for("react.fragment"):60107,W=x?Symbol.for("react.strict_mode"):60108,F=x?Symbol.for("react.profiler"):60114,z=x?Symbol.for("react.provider"):60109,N=x?Symbol.for("react.context"):60110,L=x?Symbol.for("react.async_mode"):60111,G=x?Symbol.for("react.concurrent_mode"):60111,U=x?Symbol.for("react.forward_ref"):60112,q=x?Symbol.for("react.suspense"):60113,K=x?Symbol.for("react.suspense_list"):60120,Y=x?Symbol.for("react.memo"):60115,Z=x?Symbol.for("react.lazy"):60116,J=x?Symbol.for("react.block"):60121,Q=x?Symbol.for("react.fundamental"):60117,X=x?Symbol.for("react.responder"):60118,ee=x?Symbol.for("react.scope"):60119;function te(e){if("object"===p(e)&&null!==e){var t=e.$$typeof;switch(t){case H:switch(e=e.type){case L:case G:case V:case F:case W:case q:return e;default:switch(e=e&&e.$$typeof){case N:case U:case Z:case Y:case z:return e;default:return t}}case $:return t}}}function ne(e){return te(e)===G}var re={AsyncMode:L,ConcurrentMode:G,ContextConsumer:N,ContextProvider:z,Element:H,ForwardRef:U,Fragment:V,Lazy:Z,Memo:Y,Portal:$,Profiler:F,StrictMode:W,Suspense:q,isAsyncMode:function(e){return ne(e)||te(e)===L},isConcurrentMode:ne,isContextConsumer:function(e){return te(e)===N},isContextProvider:function(e){return te(e)===z},isElement:function(e){return"object"===p(e)&&null!==e&&e.$$typeof===H},isForwardRef:function(e){return te(e)===U},isFragment:function(e){return te(e)===V},isLazy:function(e){return te(e)===Z},isMemo:function(e){return te(e)===Y},isPortal:function(e){return te(e)===$},isProfiler:function(e){return te(e)===F},isStrictMode:function(e){return te(e)===W},isSuspense:function(e){return te(e)===q},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===V||e===G||e===F||e===W||e===q||e===K||"object"===p(e)&&null!==e&&(e.$$typeof===Z||e.$$typeof===Y||e.$$typeof===z||e.$$typeof===N||e.$$typeof===U||e.$$typeof===Q||e.$$typeof===X||e.$$typeof===ee||e.$$typeof===J)},typeOf:te};D((function(e,t){}));D((function(e){e.exports=re}));!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;10>n;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}();function oe(){}function ie(){}Function.call.bind(Object.prototype.hasOwnProperty),ie.resetWarningCache=oe;var ae=D((function(e){e.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ie,resetWarningCache:oe};return n.PropTypes=n,n}()})),le=function(e){function t(){var e;return f(this,t),(e=s(this,t,arguments)).id=null,e.__hotInstance=null,e.hotElementRef=null,e.columnSettings=[],e.renderersPortalManager=null,e.portalCache=new Map,e.portalContainerCache=new Map,e.renderedCellCache=new Map,e.editorCache=new Map,e.componentRendererColumns=new Map,e}return g(t,e),y(t,[{key:"hotInstance",get:function(){return!this.__hotInstance||this.__hotInstance&&!this.__hotInstance.isDestroyed?this.__hotInstance:(console.warn("The Handsontable instance bound to this component was destroyed and cannot be used properly."),null)},set:function(e){this.__hotInstance=e}},{key:"getPortalContainerCache",value:function(){return this.portalContainerCache}},{key:"getRenderedCellCache",value:function(){return this.renderedCellCache}},{key:"getEditorCache",value:function(){return this.editorCache}},{key:"clearCache",value:function(){this.getRenderedCellCache().clear(),this.componentRendererColumns.clear()}},{key:"getOwnerDocument",value:function(){return"undefined"!=typeof window?this.hotElementRef?this.hotElementRef.ownerDocument:document:null}},{key:"setHotElementRef",value:function(e){this.hotElementRef=e}},{key:"getRendererWrapper",value:function(e){var t=this;return function(n,r,o,i,a,l,s){var u=t.getRenderedCellCache(),c=t.getPortalContainerCache(),d="".concat(o,"-").concat(i),p=n.guid,f="".concat(p,"-").concat(d),h="".concat(d,"-").concat(p);if(u.has(d)&&(r.innerHTML=u.get(d).innerHTML),r&&!r.getAttribute("ghost-table")){for(var y=t.portalCache.get(h),m=c.get(f);r.firstChild;)r.removeChild(r.firstChild);if(y&&m)r.appendChild(m);else{var g=R(e,{TD:r,row:o,col:i,prop:a,value:l,cellProperties:s,isRenderer:!0},r.ownerDocument,h,m),v=g.portal,b=g.portalContainer;c.set(f,b),r.appendChild(b),t.portalCache.set(h,v)}}return u.set(d,r),r}}},{key:"getEditorClass",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,r=_(e),o=null===(t=this.getEditorCache().get(r))||void 0===t?void 0:t.get(n);return this.makeEditorClass(o)}},{key:"makeEditorClass",value:function(e){var t=function(t){function n(t){var r;return f(this,n),r=s(this,n,[t]),e.hotCustomEditorInstance=C(r),r.editorComponent=e,r}return g(n,t),y(n,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}]),n}(l.default.editors.BaseEditor);return Object.getOwnPropertyNames(l.default.editors.BaseEditor.prototype).forEach((function(n){"constructor"!==n&&(t.prototype[n]=function(){for(var t,r=arguments.length,o=Array(r),i=0;r>i;i++)o[i]=arguments[i];return(t=e[n]).call.apply(t,[e].concat(o))})})),t}},{key:"getGlobalRendererElement",value:function(){return I(this.props.children,"hot-renderer")}},{key:"getGlobalEditorElement",value:function(){return j(this.props.children,this.getEditorCache())}},{key:"createNewGlobalSettings",value:function(){var e=B.getSettings(this.props),t=this.getGlobalRendererElement(),n=this.getGlobalEditorElement();return e.columns=this.columnSettings.length?this.columnSettings:e.columns,e.editor=n?this.getEditorClass(n,O):this.props.editor||(this.props.settings?this.props.settings.editor:void 0),t?(e.renderer=this.getRendererWrapper(t),this.componentRendererColumns.set("global",!0)):e.renderer=this.props.renderer||(this.props.settings?this.props.settings.renderer:void 0),e}},{key:"displayAutoSizeWarning",value:function(e){var t,n;this.hotInstance&&(null!==(t=this.hotInstance.getPlugin("autoRowSize"))&&void 0!==t&&t.enabled||null!==(n=this.hotInstance.getPlugin("autoColumnSize"))&&void 0!==n&&n.enabled)&&this.componentRendererColumns.size>0&&function(){var e;void 0!==console&&(e=console).warn.apply(e,arguments)}("Your `HotTable` configuration includes `autoRowSize`/`autoColumnSize` options, which are not compatible with the component-based renderers`. Disable `autoRowSize` and `autoColumnSize` to prevent row and column misalignment.")}},{key:"setHotColumnSettings",value:function(e,t){this.columnSettings[t]=e}},{key:"handsontableBeforeViewRender",value:function(){this.portalCache.clear(),this.getRenderedCellCache().clear()}},{key:"handsontableAfterViewRender",value:function(){this.renderersPortalManager.setState({portals:k(this.portalCache.values())})}},{key:"updateHot",value:function(e){this.hotInstance&&this.hotInstance.updateSettings(e,!1)}},{key:"setRenderersPortalManagerRef",value:function(e){this.renderersPortalManager=e}},{key:"componentDidMount",value:function(){var e=this,t=this.createNewGlobalSettings();this.hotInstance=new l.default.Core(this.hotElementRef,t),this.hotInstance.addHook("beforeViewRender",(function(){return e.handsontableBeforeViewRender()})),this.hotInstance.addHook("afterViewRender",(function(){return e.handsontableAfterViewRender()})),this.hotInstance.init(),this.displayAutoSizeWarning(t)}},{key:"componentDidUpdate",value:function(){this.clearCache();var e=this.createNewGlobalSettings();this.updateHot(e),this.displayAutoSizeWarning(e)}},{key:"componentWillUnmount",value:function(){this.clearCache(),this.hotInstance&&this.hotInstance.destroy()}},{key:"render",value:function(){var e=this,t=i.default.Children.toArray(this.props.children).filter((function(e){return function(e){return e.type===M}(e)})).map((function(t,n){return i.default.cloneElement(t,{_componentRendererColumns:e.componentRendererColumns,_emitColumnSettings:e.setHotColumnSettings.bind(e),_columnIndex:n,_getChildElementByType:I.bind(e),_getRendererWrapper:e.getRendererWrapper.bind(e),_getEditorClass:e.getEditorClass.bind(e),_getOwnerDocument:e.getOwnerDocument.bind(e),_getEditorCache:e.getEditorCache.bind(e),children:t.props.children})})),n=A(this.props),r=P(this.getOwnerDocument(),this.getGlobalEditorElement());return i.default.createElement(i.default.Fragment,null,i.default.createElement("div",Object.assign({ref:this.setHotElementRef.bind(this)},n),t),i.default.createElement(T,{ref:this.setRenderersPortalManagerRef.bind(this)}),r)}}],[{key:"version",get:function(){return"0.0.0-next-0f2b3cd-20240215"}}]),t}(i.default.Component);le.propTypes={style:ae.object,id:ae.string,className:ae.string};var se=["children"],ue=i.default.forwardRef((function(e,t){var n,r=e.children,o=E(e,se),a="function"==typeof i.default.useId?i.default.useId():void 0,l=null!==(n=o.id)&&void 0!==n?n:a;return i.default.createElement(le,Object.assign({id:l},o,{ref:t}),r)}));ue.version=le.version;var ce=function(e){function t(){var e;return f(this,t),(e=s(this,t,arguments)).name="BaseEditorComponent",e.instance=null,e.row=null,e.col=null,e.prop=null,e.TD=null,e.originalValue=null,e.cellProperties=null,e.state=null,e.hotInstance=null,e.hotCustomEditorInstance=null,e.hot=null,e}return g(t,e),y(t,[{key:"componentDidMount",value:function(){this.props.emitEditorInstance&&this.props.emitEditorInstance(this,this.props.editorColumnScope)}},{key:"componentDidUpdate",value:function(){this.props.emitEditorInstance&&this.props.emitEditorInstance(this,this.props.editorColumnScope)}},{key:"_fireCallbacks",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];(e=l.default.editors.BaseEditor.prototype._fireCallbacks).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"beginEditing",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.beginEditing).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"cancelChanges",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.cancelChanges).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"checkEditorSection",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.checkEditorSection).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"close",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.close).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"discardEditor",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.discardEditor).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"enableFullEditMode",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.enableFullEditMode).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"extend",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.extend).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"finishEditing",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.finishEditing).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"focus",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.focus).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getValue",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.getValue).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"init",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.init).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"isInFullEditMode",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.isInFullEditMode).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"isOpened",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.isOpened).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"isWaiting",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.isWaiting).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"open",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.open).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"prepare",value:function(e,t,n,r,o,i){return this.hotInstance=i.instance,this.row=e,this.col=t,this.prop=n,this.TD=r,this.originalValue=o,this.cellProperties=i,l.default.editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance,e,t,n,r,o,i)}},{key:"saveValue",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.saveValue).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"setValue",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.setValue).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"addHook",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.addHook).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"removeHooksByKey",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.removeHooksByKey).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"clearHooks",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.clearHooks).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCell",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.getEditedCell).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellRect",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.getEditedCellRect).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellsZIndex",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=l.default.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(e,[this.hotCustomEditorInstance].concat(n))}}]),t}(i.default.Component);e.BaseEditorComponent=ce,e.HotColumn=M,e.HotTable=ue,e.default=ue,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
30
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("handsontable/base"),require("handsontable/renderers/registry"),require("handsontable/editors/registry")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","handsontable/base","handsontable/renderers/registry","handsontable/editors/registry"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Handsontable=e.Handsontable||{},e.Handsontable.react={}),e.React,e.ReactDOM,e.Handsontable,e.Handsontable.renderers,e.Handsontable.editors)}(this,(function(e,t,n,r,o,i){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(t),s=a(n),u=a(r);function c(e,t,n){return t=E(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}(e,d()?Reflect.construct(t,n||[],E(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function g(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function k(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;i.length>r;r++)0>t.indexOf(n=i[r])&&(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;i.length>r;r++)0>t.indexOf(n=i[r])&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);t>n;n++)r[n]=e[n];return r}var I=null,_="global";function P(e,t){var n=l.default.Children.toArray(e),r=l.default.Children.count(e),o=null;return 0!==r&&(o=1===r&&n[0].props[t]?n[0]:n.find((function(e){return void 0!==e.props[t]}))),o||null}function R(e){return e?e.type.WrappedComponent?e.type.WrappedComponent:e.type:null}function j(e,t){if(void 0===e||null===t)return null;var n=M(t.props,!1);return n.className="".concat("hot-wrapper-editor-container"," ").concat(n.className),s.default.createPortal(l.default.createElement("div",Object.assign({},n),t),e.body)}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_,r=P(e,"hot-editor"),o=R(r);return r?l.default.cloneElement(r,{emitEditorInstance:function(e,n){t.get(o)||t.set(o,new Map),t.get(o).set(null!=n?n:_,e)},editorColumnScope:n,isEditor:!0}):null}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;n||(n=document),I||(I=n.createDocumentFragment());var i=null!=o?o:n.createElement("DIV");I.appendChild(i);var a=l.default.cloneElement(e,function(e){for(var t=1;arguments.length>t;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(t.row,"-").concat(t.col)},t));return{portal:s.default.createPortal(a,i,r),portalContainer:i}}function M(e){return{id:e.id||(1>=arguments.length||void 0===arguments[1]||arguments[1]?"hot-"+Math.random().toString(36).substring(5):void 0),className:e.className||"",style:e.style||{}}}var x=function(){function e(){y(this,e)}return g(e,null,[{key:"getSettings",value:function(e){var t={};if(e.settings){var n=e.settings;for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}for(var o in e)"settings"!==o&&"children"!==o&&e.hasOwnProperty(o)&&(t[o]=e[o]);return t}}]),e}(),T=function(e){function t(){return y(this,t),c(this,t,arguments)}return b(t,e),g(t,[{key:"getSettingsProps",value:function(){var e=this;return this.internalProps=["_componentRendererColumns","_emitColumnSettings","_columnIndex","_getChildElementByType","_getRendererWrapper","_getEditorClass","_getEditorCache","_getOwnerDocument","hot-renderer","hot-editor","children"],Object.keys(this.props).filter((function(t){return!e.internalProps.includes(t)})).reduce((function(t,n){return t[n]=e.props[n],t}),{})}},{key:"getLocalEditorElement",value:function(){return A(this.props.children,this.props._getEditorCache(),this.props._columnIndex)}},{key:"createColumnSettings",value:function(){var e=this.props._getChildElementByType(this.props.children,"hot-renderer"),t=this.getLocalEditorElement();this.columnSettings=x.getSettings(this.getSettingsProps()),null!==e&&(this.columnSettings.renderer=this.props._getRendererWrapper(e),this.props._componentRendererColumns.set(this.props._columnIndex,!0)),null!==t&&(this.columnSettings.editor=this.props._getEditorClass(t,this.props._columnIndex))}},{key:"emitColumnSettings",value:function(){this.props._emitColumnSettings(this.columnSettings,this.props._columnIndex)}},{key:"componentDidMount",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"componentDidUpdate",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"render",value:function(){var e=j(this.props._getOwnerDocument(),this.getLocalEditorElement());return l.default.createElement(l.default.Fragment,null,e)}}]),t}(l.default.Component),D=function(e){function t(){var e;return y(this,t),(e=c(this,t,arguments)).state={portals:[]},e}return b(t,e),g(t,[{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,this.state.portals)}}]),t}(l.default.Component);function H(e,t){return e(t={exports:{}},t.exports),t.exports}var $="function"==typeof Symbol&&Symbol.for,V=$?Symbol.for("react.element"):60103,W=$?Symbol.for("react.portal"):60106,F=$?Symbol.for("react.fragment"):60107,z=$?Symbol.for("react.strict_mode"):60108,N=$?Symbol.for("react.profiler"):60114,L=$?Symbol.for("react.provider"):60109,q=$?Symbol.for("react.context"):60110,G=$?Symbol.for("react.async_mode"):60111,U=$?Symbol.for("react.concurrent_mode"):60111,K=$?Symbol.for("react.forward_ref"):60112,Y=$?Symbol.for("react.suspense"):60113,Z=$?Symbol.for("react.suspense_list"):60120,J=$?Symbol.for("react.memo"):60115,Q=$?Symbol.for("react.lazy"):60116,X=$?Symbol.for("react.block"):60121,ee=$?Symbol.for("react.fundamental"):60117,te=$?Symbol.for("react.responder"):60118,ne=$?Symbol.for("react.scope"):60119;function re(e){if("object"===h(e)&&null!==e){var t=e.$$typeof;switch(t){case V:switch(e=e.type){case G:case U:case F:case N:case z:case Y:return e;default:switch(e=e&&e.$$typeof){case q:case K:case Q:case J:case L:return e;default:return t}}case W:return t}}}function oe(e){return re(e)===U}var ie={AsyncMode:G,ConcurrentMode:U,ContextConsumer:q,ContextProvider:L,Element:V,ForwardRef:K,Fragment:F,Lazy:Q,Memo:J,Portal:W,Profiler:N,StrictMode:z,Suspense:Y,isAsyncMode:function(e){return oe(e)||re(e)===G},isConcurrentMode:oe,isContextConsumer:function(e){return re(e)===q},isContextProvider:function(e){return re(e)===L},isElement:function(e){return"object"===h(e)&&null!==e&&e.$$typeof===V},isForwardRef:function(e){return re(e)===K},isFragment:function(e){return re(e)===F},isLazy:function(e){return re(e)===Q},isMemo:function(e){return re(e)===J},isPortal:function(e){return re(e)===W},isProfiler:function(e){return re(e)===N},isStrictMode:function(e){return re(e)===z},isSuspense:function(e){return re(e)===Y},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===F||e===U||e===N||e===z||e===Y||e===Z||"object"===h(e)&&null!==e&&(e.$$typeof===Q||e.$$typeof===J||e.$$typeof===L||e.$$typeof===q||e.$$typeof===K||e.$$typeof===ee||e.$$typeof===te||e.$$typeof===ne||e.$$typeof===X)},typeOf:re};H((function(e,t){}));H((function(e){e.exports=ie}));!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;10>n;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}();function ae(){}function le(){}Function.call.bind(Object.prototype.hasOwnProperty),le.resetWarningCache=ae;var se=H((function(e){e.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:le,resetWarningCache:ae};return n.PropTypes=n,n}()})),ue=function(e){function t(){var e;return y(this,t),(e=c(this,t,arguments)).id=null,e.__hotInstance=null,e.hotElementRef=null,e.columnSettings=[],e.renderersPortalManager=null,e.portalCache=new Map,e.portalContainerCache=new Map,e.renderedCellCache=new Map,e.editorCache=new Map,e.componentRendererColumns=new Map,e}return b(t,e),g(t,[{key:"hotInstance",get:function(){return!this.__hotInstance||this.__hotInstance&&!this.__hotInstance.isDestroyed?this.__hotInstance:(console.warn("The Handsontable instance bound to this component was destroyed and cannot be used properly."),null)},set:function(e){this.__hotInstance=e}},{key:"getPortalContainerCache",value:function(){return this.portalContainerCache}},{key:"getRenderedCellCache",value:function(){return this.renderedCellCache}},{key:"getEditorCache",value:function(){return this.editorCache}},{key:"clearCache",value:function(){this.getRenderedCellCache().clear(),this.componentRendererColumns.clear()}},{key:"getOwnerDocument",value:function(){return"undefined"!=typeof window?this.hotElementRef?this.hotElementRef.ownerDocument:document:null}},{key:"setHotElementRef",value:function(e){this.hotElementRef=e}},{key:"getRendererWrapper",value:function(e){var t=this;return function(n,r,o,i,a,l,s){var u=t.getRenderedCellCache(),c=t.getPortalContainerCache(),d="".concat(o,"-").concat(i),p=n.guid,f="".concat(p,"-").concat(d),h="".concat(d,"-").concat(p);if(u.has(d)&&(r.innerHTML=u.get(d).innerHTML),r&&!r.getAttribute("ghost-table")){for(var y=t.portalCache.get(h),m=c.get(f);r.firstChild;)r.removeChild(r.firstChild);if(y&&m)r.appendChild(m);else{var g=B(e,{TD:r,row:o,col:i,prop:a,value:l,cellProperties:s,isRenderer:!0},r.ownerDocument,h,m),v=g.portal,b=g.portalContainer;c.set(f,b),r.appendChild(b),t.portalCache.set(h,v)}}return u.set(d,r),r}}},{key:"getEditorClass",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,r=R(e),o=null===(t=this.getEditorCache().get(r))||void 0===t?void 0:t.get(n);return this.makeEditorClass(o)}},{key:"makeEditorClass",value:function(e){var t=function(t){function n(t){var r;return y(this,n),r=c(this,n,[t]),e.hotCustomEditorInstance=S(r),r.editorComponent=e,r}return b(n,t),g(n,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}]),n}(u.default.editors.BaseEditor);return Object.getOwnPropertyNames(u.default.editors.BaseEditor.prototype).forEach((function(n){"constructor"!==n&&(t.prototype[n]=function(){for(var t,r=arguments.length,o=Array(r),i=0;r>i;i++)o[i]=arguments[i];return(t=e[n]).call.apply(t,[e].concat(o))})})),t}},{key:"getGlobalRendererElement",value:function(){return P(this.props.children,"hot-renderer")}},{key:"getGlobalEditorElement",value:function(){return A(this.props.children,this.getEditorCache())}},{key:"createNewGlobalSettings",value:function(){var e,t,n=x.getSettings(this.props),r=this.getGlobalRendererElement(),a=this.getGlobalEditorElement();(n.columns=this.columnSettings.length?this.columnSettings:n.columns,a)?n.editor=this.getEditorClass(a,_):n.editor=this.props.editor||null!==(e=this.props.settings)&&void 0!==e&&e.editor?this.props.editor||this.props.settings.editor:i.getEditor("text");r?(n.renderer=this.getRendererWrapper(r),this.componentRendererColumns.set("global",!0)):n.renderer=this.props.renderer||null!==(t=this.props.settings)&&void 0!==t&&t.renderer?this.props.renderer||this.props.settings.renderer:o.getRenderer("text");return n}},{key:"displayAutoSizeWarning",value:function(e){var t,n;this.hotInstance&&(null!==(t=this.hotInstance.getPlugin("autoRowSize"))&&void 0!==t&&t.enabled||null!==(n=this.hotInstance.getPlugin("autoColumnSize"))&&void 0!==n&&n.enabled)&&this.componentRendererColumns.size>0&&function(){var e;void 0!==console&&(e=console).warn.apply(e,arguments)}("Your `HotTable` configuration includes `autoRowSize`/`autoColumnSize` options, which are not compatible with the component-based renderers`. Disable `autoRowSize` and `autoColumnSize` to prevent row and column misalignment.")}},{key:"setHotColumnSettings",value:function(e,t){this.columnSettings[t]=e}},{key:"handsontableBeforeViewRender",value:function(){this.portalCache.clear(),this.getRenderedCellCache().clear()}},{key:"handsontableAfterViewRender",value:function(){this.renderersPortalManager.setState({portals:w(this.portalCache.values())})}},{key:"updateHot",value:function(e){this.hotInstance&&this.hotInstance.updateSettings(e,!1)}},{key:"setRenderersPortalManagerRef",value:function(e){this.renderersPortalManager=e}},{key:"componentDidMount",value:function(){var e=this,t=this.createNewGlobalSettings();this.hotInstance=new u.default.Core(this.hotElementRef,t),this.hotInstance.addHook("beforeViewRender",(function(){return e.handsontableBeforeViewRender()})),this.hotInstance.addHook("afterViewRender",(function(){return e.handsontableAfterViewRender()})),this.hotInstance.init(),this.displayAutoSizeWarning(t)}},{key:"componentDidUpdate",value:function(){this.clearCache();var e=this.createNewGlobalSettings();this.updateHot(e),this.displayAutoSizeWarning(e)}},{key:"componentWillUnmount",value:function(){this.clearCache(),this.hotInstance&&this.hotInstance.destroy()}},{key:"render",value:function(){var e=this,t=l.default.Children.toArray(this.props.children).filter((function(e){return function(e){return e.type===T}(e)})).map((function(t,n){return l.default.cloneElement(t,{_componentRendererColumns:e.componentRendererColumns,_emitColumnSettings:e.setHotColumnSettings.bind(e),_columnIndex:n,_getChildElementByType:P.bind(e),_getRendererWrapper:e.getRendererWrapper.bind(e),_getEditorClass:e.getEditorClass.bind(e),_getOwnerDocument:e.getOwnerDocument.bind(e),_getEditorCache:e.getEditorCache.bind(e),children:t.props.children})})),n=M(this.props),r=j(this.getOwnerDocument(),this.getGlobalEditorElement());return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",Object.assign({ref:this.setHotElementRef.bind(this)},n),t),l.default.createElement(D,{ref:this.setRenderersPortalManagerRef.bind(this)}),r)}}],[{key:"version",get:function(){return"0.0.0-next-a987a12-20240219"}}]),t}(l.default.Component);ue.propTypes={style:se.object,id:se.string,className:se.string};var ce=["children"],de=l.default.forwardRef((function(e,t){var n,r=e.children,o=k(e,ce),i="function"==typeof l.default.useId?l.default.useId():void 0,a=null!==(n=o.id)&&void 0!==n?n:i;return l.default.createElement(ue,Object.assign({id:a},o,{ref:t}),r)}));de.version=ue.version;var pe=function(e){function t(){var e;return y(this,t),(e=c(this,t,arguments)).name="BaseEditorComponent",e.instance=null,e.row=null,e.col=null,e.prop=null,e.TD=null,e.originalValue=null,e.cellProperties=null,e.state=null,e.hotInstance=null,e.hotCustomEditorInstance=null,e.hot=null,e}return b(t,e),g(t,[{key:"componentDidMount",value:function(){this.props.emitEditorInstance&&this.props.emitEditorInstance(this,this.props.editorColumnScope)}},{key:"componentDidUpdate",value:function(){this.props.emitEditorInstance&&this.props.emitEditorInstance(this,this.props.editorColumnScope)}},{key:"_fireCallbacks",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];(e=u.default.editors.BaseEditor.prototype._fireCallbacks).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"beginEditing",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.beginEditing).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"cancelChanges",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.cancelChanges).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"checkEditorSection",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.checkEditorSection).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"close",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.close).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"discardEditor",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.discardEditor).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"enableFullEditMode",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.enableFullEditMode).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"extend",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.extend).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"finishEditing",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.finishEditing).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"focus",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.focus).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getValue",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.getValue).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"init",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.init).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"isInFullEditMode",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.isInFullEditMode).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"isOpened",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.isOpened).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"isWaiting",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.isWaiting).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"open",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.open).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"prepare",value:function(e,t,n,r,o,i){return this.hotInstance=i.instance,this.row=e,this.col=t,this.prop=n,this.TD=r,this.originalValue=o,this.cellProperties=i,u.default.editors.BaseEditor.prototype.prepare.call(this.hotCustomEditorInstance,e,t,n,r,o,i)}},{key:"saveValue",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.saveValue).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"setValue",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.setValue).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"addHook",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.addHook).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"removeHooksByKey",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.removeHooksByKey).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"clearHooks",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.clearHooks).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCell",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.getEditedCell).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellRect",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.getEditedCellRect).call.apply(e,[this.hotCustomEditorInstance].concat(n))}},{key:"getEditedCellsZIndex",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return(e=u.default.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(e,[this.hotCustomEditorInstance].concat(n))}}]),t}(l.default.Component);e.BaseEditorComponent=pe,e.HotColumn=T,e.HotTable=de,e.default=de,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
31
31
|
//# sourceMappingURL=react-handsontable.min.js.map
|
|
@@ -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/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/index.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 Handosntable-compatible settings.\n *\n * @param {Object} properties Object containing properties from the HotTable object.\n * @returns {Object} Handsontable-compatible settings object.\n */\n static getSettings(properties: HotTableProps): Handsontable.GridSettings {\n let newSettings: Handsontable.GridSettings = {};\n\n if (properties.settings) {\n let settings = properties.settings;\n for (const key in settings) {\n if (settings.hasOwnProperty(key)) {\n newSettings[key] = settings[key];\n }\n }\n }\n\n for (const key in properties) {\n if (key !== 'settings' && key !== 'children' && properties.hasOwnProperty(key)) {\n newSettings[key] = properties[key];\n }\n }\n\n return newSettings;\n }\n}\n","import React 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","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 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","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\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 = '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';\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 * 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 (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 * @returns {Handsontable.GridSettings} New global set of settings for Handsontable.\n */\n createNewGlobalSettings(): Handsontable.GridSettings {\n const newSettings = SettingsMapper.getSettings(this.props);\n const globalRendererNode = this.getGlobalRendererElement();\n const globalEditorNode = this.getGlobalEditorElement();\n\n newSettings.columns = this.columnSettings.length ? this.columnSettings : newSettings.columns;\n\n if (globalEditorNode) {\n newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);\n\n } else {\n newSettings.editor = this.props.editor || (this.props.settings ? this.props.settings.editor : void 0);\n }\n\n if (globalRendererNode) {\n newSettings.renderer = this.getRendererWrapper(globalRendererNode);\n this.componentRendererColumns.set('global', true);\n\n } else {\n newSettings.renderer = this.props.renderer || (this.props.settings ? this.props.settings.renderer : void 0);\n }\n\n return newSettings;\n }\n\n /**\n * Detect if `autoRowSize` or `autoColumnSize` is defined, and if so, throw an incompatibility warning.\n *\n * @param {Handsontable.GridSettings} newGlobalSettings New global settings passed as Handsontable config.\n */\n displayAutoSizeWarning(newGlobalSettings: Handsontable.GridSettings): void {\n if (\n this.hotInstance &&\n (\n this.hotInstance.getPlugin('autoRowSize')?.enabled ||\n this.hotInstance.getPlugin('autoColumnSize')?.enabled\n )\n ) {\n if (this.componentRendererColumns.size > 0) {\n warn(AUTOSIZE_WARNING);\n }\n }\n }\n\n /**\n * Sets the column settings based on information received from HotColumn.\n *\n * @param {HotTableProps} columnSettings Column settings object.\n * @param {Number} columnIndex Column index.\n */\n setHotColumnSettings(columnSettings: Handsontable.ColumnSettings, columnIndex: number): void {\n this.columnSettings[columnIndex] = columnSettings;\n }\n\n /**\n * Handsontable's `beforeViewRender` hook callback.\n */\n handsontableBeforeViewRender(): void {\n this.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();\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(): void {\n this.clearCache();\n\n const newGlobalSettings = this.createNewGlobalSettings();\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","_classCallCheck","_createClass","value","properties","newSettings","settings","hasOwnProperty","HotColumn","_React$Component","_callSuper","this","_inherits","_this","internalProps","Object","keys","filter","includes","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","b","Symbol","c","d","e","f","g","h","k","l","m","n","p","q","r","t","v","w","x","y","z","a","_typeof","u","$$typeof","A","module","exports","require$$0","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","order2","map","join","test3","split","forEach","letter","err","shouldUseNative","emptyFunction","emptyFunctionWithReset","Function","call","bind","prototype","resetWarningCache","shim","propName","componentName","location","propFullName","secret","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","_assertThisInitialized","Handsontable","editors","BaseEditor","_editorComponent$prop","_len","args","Array","_key","apply","globalRendererNode","getGlobalRendererElement","globalEditorNode","getGlobalEditorElement","columns","getEditorClass","getRendererWrapper","newGlobalSettings","_this$hotInstance$get","_this$hotInstance$get2","getPlugin","enabled","size","_console","columnIndex","setState","_toConsumableArray","values","updateSettings","pmComponent","_this3","createNewGlobalSettings","Core","addHook","handsontableBeforeViewRender","handsontableAfterViewRender","init","displayAutoSizeWarning","clearCache","updateHot","destroy","_this4","hotColumnClones","childNode","isHotColumn","setHotColumnSettings","getOwnerDocument","ref","setHotElementRef","setRenderersPortalManagerRef","propTypes","HotTable","forwardRef","_ref","_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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;w6HAQA,IAAIA,EAAyB,KAiBhBC,EAAsB,SAyBnB,SAAAC,EAAsBC,EAA2BC,GAC/D,IAAMC,EAAmCC,EAAK,QAACC,SAASC,QAAQL,GAC1DM,EAAwBH,EAAK,QAACC,SAASG,MAAMP,GAC/CQ,EAAsC,KAa1C,OAXsB,IAAlBF,IAEAE,EADoB,IAAlBF,GAAwBJ,EAAc,GAA0BO,MAAMR,GAC1DC,EAAc,GAGdA,EAAcQ,MAAK,SAACC,GAChC,YAAqD,IAA7CA,EAA6BF,MAAMR,EAC7C,KAIIO,GAAsC,IAChD,CAQM,SAAUI,EAAuBC,GACrC,OAAKA,EAIEA,EAAcZ,KAAKa,iBAAmBD,EAAcZ,KAAKa,iBAAmBD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,QAACC,QAAQC,WAAWjF,UAAkBiO,eAAcnO,KAAIyF,MAAAuI,EAAC,CAAAjT,KAAKgK,yBAAuBlN,OAAKyN,GAChH,GAAC,CAAA5L,IAAA,oBAAAa,MAED,WAAyB,IAAA,IAAA6T,EAAAC,EAAAvV,UAAAC,OAAJuM,EAAIC,MAAA8I,GAAAC,EAAA,EAAAD,EAAAC,EAAAA,IAAJhJ,EAAIgJ,GAAAxV,UAAAwV,GACvB,OAAQF,EAAAnJ,EAAY,QAACC,QAAQC,WAAWjF,UAAkBqO,mBAAkBvO,KAAIyF,MAAA2I,EAAC,CAAArT,KAAKgK,yBAAuBlN,OAAKyN,GACpH,GAAC,CAAA5L,IAAA,uBAAAa,MAED,WAA4B,IAAA,IAAAiU,EAAAC,EAAA3V,UAAAC,OAAJuM,EAAIC,MAAAkJ,GAAAC,EAAA,EAAAD,EAAAC,EAAAA,IAAJpJ,EAAIoJ,GAAA5V,UAAA4V,GAC1B,OAAQF,EAAAvJ,EAAY,QAACC,QAAQC,WAAWjF,UAAkByO,sBAAqB3O,KAAIyF,MAAA+I,EAAC,CAAAzT,KAAKgK,yBAAuBlN,OAAKyN,GACvH,KAACuD,CAAA,EArIyDjS,EAAK,QAACgG"}
|
|
1
|
+
{"version":3,"file":"react-handsontable.min.js","sources":["../src/helpers.tsx","../src/settingsMapper.ts","../src/hotColumn.tsx","../src/renderersPortalManager.tsx","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/index.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 Handosntable-compatible settings.\n *\n * @param {Object} properties Object containing properties from the HotTable object.\n * @returns {Object} Handsontable-compatible settings object.\n */\n static getSettings(properties: HotTableProps): Handsontable.GridSettings {\n let newSettings: Handsontable.GridSettings = {};\n\n if (properties.settings) {\n let settings = properties.settings;\n for (const key in settings) {\n if (settings.hasOwnProperty(key)) {\n newSettings[key] = settings[key];\n }\n }\n }\n\n for (const key in properties) {\n if (key !== 'settings' && key !== 'children' && properties.hasOwnProperty(key)) {\n newSettings[key] = properties[key];\n }\n }\n\n return newSettings;\n }\n}\n","import React 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","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 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","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\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 = '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 * 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 * @returns {Handsontable.GridSettings} New global set of settings for Handsontable.\n */\n createNewGlobalSettings(): Handsontable.GridSettings {\n const newSettings = SettingsMapper.getSettings(this.props);\n const globalRendererNode = this.getGlobalRendererElement();\n const globalEditorNode = this.getGlobalEditorElement();\n\n newSettings.columns = this.columnSettings.length ? this.columnSettings : newSettings.columns;\n\n if (globalEditorNode) {\n newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);\n } 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();\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(): void {\n this.clearCache();\n\n const newGlobalSettings = this.createNewGlobalSettings();\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","_classCallCheck","_createClass","value","properties","newSettings","settings","hasOwnProperty","HotColumn","_React$Component","_callSuper","this","_inherits","_this","internalProps","Object","keys","filter","includes","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","b","Symbol","c","d","e","f","g","h","k","l","m","n","p","q","r","t","v","w","x","y","z","a","_typeof","u","$$typeof","A","module","exports","require$$0","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","order2","map","join","test3","split","forEach","letter","err","shouldUseNative","emptyFunction","emptyFunctionWithReset","Function","call","bind","prototype","resetWarningCache","shim","propName","componentName","location","propFullName","secret","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","_assertThisInitialized","Handsontable","editors","BaseEditor","_editorComponent$prop","_len","args","Array","_key","apply","_this$props$settings","_this$props$settings2","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","init","displayAutoSizeWarning","clearCache","updateHot","destroy","_this4","hotColumnClones","childNode","isHotColumn","setHotColumnSettings","getOwnerDocument","ref","setHotElementRef","setRenderersPortalManagerRef","propTypes","HotTable","forwardRef","_ref","_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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;knIAQA,IAAIA,EAAyB,KAiBhBC,EAAsB,SAyBnB,SAAAC,EAAsBC,EAA2BC,GAC/D,IAAMC,EAAmCC,EAAK,QAACC,SAASC,QAAQL,GAC1DM,EAAwBH,EAAK,QAACC,SAASG,MAAMP,GAC/CQ,EAAsC,KAa1C,OAXsB,IAAlBF,IAEAE,EADoB,IAAlBF,GAAwBJ,EAAc,GAA0BO,MAAMR,GAC1DC,EAAc,GAGdA,EAAcQ,MAAK,SAACC,GAChC,YAAqD,IAA7CA,EAA6BF,MAAMR,EAC7C,KAIIO,GAAsC,IAChD,CAQM,SAAUI,EAAuBC,GACrC,OAAKA,EAIEA,EAAcZ,KAAKa,iBAAmBD,EAAcZ,KAAKa,iBAAmBD,EAAcZ,KAHxF,IAIX,CASgB,SAAAc,EAAmBC,EAAeH,GAChD,QAAmB,IAARG,GAAyC,OAAlBH,EAChC,OAAO,KAGT,IAAMI,EAAiBC,EAA4BL,EAAcJ,OAAO,GAIxE,OAFAQ,EAAeE,UAASC,GAAAA,OAnEO,+BAmEgBA,KAAAA,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WAAWjF,UAAkBqO,eAAcvO,KAAIyF,MAAA2I,EAAC,CAAArT,KAAKgK,yBAAuBlN,OAAKyN,GAChH,GAAC,CAAA5L,IAAA,oBAAAa,MAED,WAAyB,IAAA,IAAAiU,EAAAC,EAAA3V,UAAAC,OAAJuM,EAAIC,MAAAkJ,GAAAC,EAAA,EAAAD,EAAAC,EAAAA,IAAJpJ,EAAIoJ,GAAA5V,UAAA4V,GACvB,OAAQF,EAAAvJ,EAAY,QAACC,QAAQC,WAAWjF,UAAkByO,mBAAkB3O,KAAIyF,MAAA+I,EAAC,CAAAzT,KAAKgK,yBAAuBlN,OAAKyN,GACpH,GAAC,CAAA5L,IAAA,uBAAAa,MAED,WAA4B,IAAA,IAAAqU,EAAAC,EAAA/V,UAAAC,OAAJuM,EAAIC,MAAAsJ,GAAAC,EAAA,EAAAD,EAAAC,EAAAA,IAAJxJ,EAAIwJ,GAAAhW,UAAAgW,GAC1B,OAAQF,EAAA3J,EAAY,QAACC,QAAQC,WAAWjF,UAAkB6O,sBAAqB/O,KAAIyF,MAAAmJ,EAAC,CAAA7T,KAAKgK,yBAAuBlN,OAAKyN,GACvH,KAAC2D,CAAA,EArIyDrS,EAAK,QAACgG"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
3
|
import Handsontable from 'handsontable/base';
|
|
4
|
+
import { getRenderer } from 'handsontable/renderers/registry';
|
|
5
|
+
import { getEditor } from 'handsontable/editors/registry';
|
|
4
6
|
|
|
5
7
|
function _callSuper(t, o, e) {
|
|
6
8
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
@@ -505,7 +507,7 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
|
|
|
505
507
|
return RenderersPortalManager;
|
|
506
508
|
}(React.Component);
|
|
507
509
|
|
|
508
|
-
var version="0.0.0-next-
|
|
510
|
+
var version="0.0.0-next-a987a12-20240219";
|
|
509
511
|
|
|
510
512
|
function createCommonjsModule(fn, module) {
|
|
511
513
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
@@ -1820,7 +1822,7 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1820
1822
|
key: "getRendererWrapper",
|
|
1821
1823
|
value: function getRendererWrapper(rendererElement) {
|
|
1822
1824
|
var hotTableComponent = this;
|
|
1823
|
-
return function (instance, TD, row, col, prop, value, cellProperties) {
|
|
1825
|
+
return function __internalRenderer(instance, TD, row, col, prop, value, cellProperties) {
|
|
1824
1826
|
var renderedCellCache = hotTableComponent.getRenderedCellCache();
|
|
1825
1827
|
var portalContainerCache = hotTableComponent.getPortalContainerCache();
|
|
1826
1828
|
var key = "".concat(row, "-").concat(col);
|
|
@@ -1966,13 +1968,23 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
|
|
|
1966
1968
|
if (globalEditorNode) {
|
|
1967
1969
|
newSettings.editor = this.getEditorClass(globalEditorNode, GLOBAL_EDITOR_SCOPE);
|
|
1968
1970
|
} else {
|
|
1969
|
-
|
|
1971
|
+
var _this$props$settings;
|
|
1972
|
+
if (this.props.editor || (_this$props$settings = this.props.settings) !== null && _this$props$settings !== void 0 && _this$props$settings.editor) {
|
|
1973
|
+
newSettings.editor = this.props.editor || this.props.settings.editor;
|
|
1974
|
+
} else {
|
|
1975
|
+
newSettings.editor = getEditor('text');
|
|
1976
|
+
}
|
|
1970
1977
|
}
|
|
1971
1978
|
if (globalRendererNode) {
|
|
1972
1979
|
newSettings.renderer = this.getRendererWrapper(globalRendererNode);
|
|
1973
1980
|
this.componentRendererColumns.set('global', true);
|
|
1974
1981
|
} else {
|
|
1975
|
-
|
|
1982
|
+
var _this$props$settings2;
|
|
1983
|
+
if (this.props.renderer || (_this$props$settings2 = this.props.settings) !== null && _this$props$settings2 !== void 0 && _this$props$settings2.renderer) {
|
|
1984
|
+
newSettings.renderer = this.props.renderer || this.props.settings.renderer;
|
|
1985
|
+
} else {
|
|
1986
|
+
newSettings.renderer = getRenderer('text');
|
|
1987
|
+
}
|
|
1976
1988
|
}
|
|
1977
1989
|
return newSettings;
|
|
1978
1990
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@handsontable/react",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-a987a12-20240219",
|
|
4
4
|
"description": "Best Data Grid for React with Spreadsheet Look and Feel.",
|
|
5
5
|
"author": "Handsoncode <hello@handsoncode.net> (https://handsoncode.net)",
|
|
6
6
|
"homepage": "https://handsontable.com",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"babel-core": "^7.0.0-bridge.0",
|
|
69
69
|
"cpy-cli": "^3.1.1",
|
|
70
70
|
"cross-env": "^7.0.3",
|
|
71
|
-
"handsontable": "0.0.0-next-
|
|
71
|
+
"handsontable": "0.0.0-next-a987a12-20240219",
|
|
72
72
|
"jest": "^25.1.0",
|
|
73
73
|
"prop-types": "^15.7.2",
|
|
74
74
|
"react": "^18.2.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"uglify-js": "^3.4.9"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
|
-
"handsontable": "0.0.0-next-
|
|
92
|
+
"handsontable": "0.0.0-next-a987a12-20240219"
|
|
93
93
|
},
|
|
94
94
|
"scripts": {
|
|
95
95
|
"build": "npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:min",
|