1 | import Core from "./core.mjs";
|
2 | import { rootInstanceSymbol } from "./utils/rootInstance.mjs";
|
3 | import { metaSchemaFactory } from "./dataMap/index.mjs";
|
4 | import Hooks from "./pluginHooks.mjs";
|
5 |
|
6 | import { dictionaryKeys, getTranslatedPhrase, registerLanguageDictionary, getLanguagesDictionaries, getLanguageDictionary } from "./i18n/registry.mjs";
|
7 |
|
8 | import { registerCellType } from "./cellTypes/registry.mjs";
|
9 | import { TextCellType } from "./cellTypes/textType/index.mjs";
|
10 | import { BaseEditor } from "./editors/baseEditor/index.mjs";
|
11 | import { CellCoords, CellRange } from "./3rdparty/walkontable/src/index.mjs";
|
12 | registerCellType(TextCellType);
|
13 |
|
14 |
|
15 | Handsontable.editors = {
|
16 | BaseEditor
|
17 | };
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | function Handsontable(rootElement, userSettings) {
|
25 | const instance = new Core(rootElement, userSettings || {}, rootInstanceSymbol);
|
26 | instance.init();
|
27 | return instance;
|
28 | }
|
29 | Handsontable.Core = function (rootElement) {
|
30 | let userSettings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
31 | return new Core(rootElement, userSettings, rootInstanceSymbol);
|
32 | };
|
33 | Handsontable.DefaultSettings = metaSchemaFactory();
|
34 | Handsontable.hooks = Hooks.getSingleton();
|
35 | Handsontable.CellCoords = CellCoords;
|
36 | Handsontable.CellRange = CellRange;
|
37 | Handsontable.packageName = 'handsontable';
|
38 | Handsontable.buildDate = "17/10/2024 09:16:16";
|
39 | Handsontable.version = "14.6.1";
|
40 | Handsontable.languages = {
|
41 | dictionaryKeys,
|
42 | getLanguageDictionary,
|
43 | getLanguagesDictionaries,
|
44 | registerLanguageDictionary,
|
45 | getTranslatedPhrase
|
46 | };
|
47 | export { CellCoords, CellRange };
|
48 | export default Handsontable; |
\ | No newline at end of file |