1 | "use strict";
|
2 |
|
3 | exports.__esModule = true;
|
4 | var _base = _interopRequireWildcard(require("./base"));
|
5 | exports.CellCoords = _base.CellCoords;
|
6 | exports.CellRange = _base.CellRange;
|
7 | var _registry = require("./registry");
|
8 | var _eventManager = _interopRequireWildcard(require("./eventManager"));
|
9 | var _translations = require("./translations");
|
10 | var _jquery = _interopRequireDefault(require("./helpers/wrappers/jquery"));
|
11 | var _ghostTable = _interopRequireDefault(require("./utils/ghostTable"));
|
12 | var parseTableHelpers = _interopRequireWildcard(require("./utils/parseTable"));
|
13 | var arrayHelpers = _interopRequireWildcard(require("./helpers/array"));
|
14 | var browserHelpers = _interopRequireWildcard(require("./helpers/browser"));
|
15 | var dataHelpers = _interopRequireWildcard(require("./helpers/data"));
|
16 | var dateHelpers = _interopRequireWildcard(require("./helpers/date"));
|
17 | var featureHelpers = _interopRequireWildcard(require("./helpers/feature"));
|
18 | var functionHelpers = _interopRequireWildcard(require("./helpers/function"));
|
19 | var mixedHelpers = _interopRequireWildcard(require("./helpers/mixed"));
|
20 | var numberHelpers = _interopRequireWildcard(require("./helpers/number"));
|
21 | var objectHelpers = _interopRequireWildcard(require("./helpers/object"));
|
22 | var stringHelpers = _interopRequireWildcard(require("./helpers/string"));
|
23 | var unicodeHelpers = _interopRequireWildcard(require("./helpers/unicode"));
|
24 | var domHelpers = _interopRequireWildcard(require("./helpers/dom/element"));
|
25 | var domEventHelpers = _interopRequireWildcard(require("./helpers/dom/event"));
|
26 | var _registry2 = require("./editors/registry");
|
27 | var _registry3 = require("./renderers/registry");
|
28 | var _registry4 = require("./validators/registry");
|
29 | var _registry5 = require("./cellTypes/registry");
|
30 | var _registry6 = require("./plugins/registry");
|
31 | var _base2 = require("./plugins/base");
|
32 | var _Handsontable$cellTyp, _Handsontable$editors, _Handsontable$rendere, _Handsontable$validat, _Handsontable$plugins;
|
33 | function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
34 | function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
35 | function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
36 | (0, _registry.registerAllModules)();
|
37 | (0, _jquery.default)(_base.default);
|
38 |
|
39 |
|
40 | _base.default.__GhostTable = _ghostTable.default;
|
41 | _base.default._getListenersCounter = _eventManager.getListenersCounter;
|
42 | _base.default._getRegisteredMapsCounter = _translations.getRegisteredMapsCounter;
|
43 | _base.default.EventManager = _eventManager.default;
|
44 |
|
45 |
|
46 | const HELPERS = [arrayHelpers, browserHelpers, dataHelpers, dateHelpers, featureHelpers, functionHelpers, mixedHelpers, numberHelpers, objectHelpers, stringHelpers, unicodeHelpers, parseTableHelpers];
|
47 | const DOM = [domHelpers, domEventHelpers];
|
48 | _base.default.helper = {};
|
49 | _base.default.dom = {};
|
50 |
|
51 |
|
52 | arrayHelpers.arrayEach(HELPERS, helper => {
|
53 | arrayHelpers.arrayEach(Object.getOwnPropertyNames(helper), key => {
|
54 | if (key.charAt(0) !== '_') {
|
55 | _base.default.helper[key] = helper[key];
|
56 | }
|
57 | });
|
58 | });
|
59 |
|
60 |
|
61 | arrayHelpers.arrayEach(DOM, helper => {
|
62 | arrayHelpers.arrayEach(Object.getOwnPropertyNames(helper), key => {
|
63 | if (key.charAt(0) !== '_') {
|
64 | _base.default.dom[key] = helper[key];
|
65 | }
|
66 | });
|
67 | });
|
68 |
|
69 |
|
70 | _base.default.cellTypes = (_Handsontable$cellTyp = _base.default.cellTypes) !== null && _Handsontable$cellTyp !== void 0 ? _Handsontable$cellTyp : {};
|
71 | arrayHelpers.arrayEach((0, _registry5.getRegisteredCellTypeNames)(), cellTypeName => {
|
72 | _base.default.cellTypes[cellTypeName] = (0, _registry5.getCellType)(cellTypeName);
|
73 | });
|
74 | _base.default.cellTypes.registerCellType = _registry5.registerCellType;
|
75 | _base.default.cellTypes.getCellType = _registry5.getCellType;
|
76 |
|
77 |
|
78 | _base.default.editors = (_Handsontable$editors = _base.default.editors) !== null && _Handsontable$editors !== void 0 ? _Handsontable$editors : {};
|
79 | arrayHelpers.arrayEach((0, _registry2.getRegisteredEditorNames)(), editorName => {
|
80 | _base.default.editors[`${stringHelpers.toUpperCaseFirst(editorName)}Editor`] = (0, _registry2.getEditor)(editorName);
|
81 | });
|
82 | _base.default.editors.registerEditor = _registry2.registerEditor;
|
83 | _base.default.editors.getEditor = _registry2.getEditor;
|
84 |
|
85 |
|
86 | _base.default.renderers = (_Handsontable$rendere = _base.default.renderers) !== null && _Handsontable$rendere !== void 0 ? _Handsontable$rendere : {};
|
87 | arrayHelpers.arrayEach((0, _registry3.getRegisteredRendererNames)(), rendererName => {
|
88 | const renderer = (0, _registry3.getRenderer)(rendererName);
|
89 | if (rendererName === 'base') {
|
90 | _base.default.renderers.cellDecorator = renderer;
|
91 | }
|
92 | _base.default.renderers[`${stringHelpers.toUpperCaseFirst(rendererName)}Renderer`] = renderer;
|
93 | });
|
94 | _base.default.renderers.registerRenderer = _registry3.registerRenderer;
|
95 | _base.default.renderers.getRenderer = _registry3.getRenderer;
|
96 |
|
97 |
|
98 | _base.default.validators = (_Handsontable$validat = _base.default.validators) !== null && _Handsontable$validat !== void 0 ? _Handsontable$validat : {};
|
99 | arrayHelpers.arrayEach((0, _registry4.getRegisteredValidatorNames)(), validatorName => {
|
100 | _base.default.validators[`${stringHelpers.toUpperCaseFirst(validatorName)}Validator`] = (0, _registry4.getValidator)(validatorName);
|
101 | });
|
102 | _base.default.validators.registerValidator = _registry4.registerValidator;
|
103 | _base.default.validators.getValidator = _registry4.getValidator;
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 |
|
112 | _base.default.plugins = (_Handsontable$plugins = _base.default.plugins) !== null && _Handsontable$plugins !== void 0 ? _Handsontable$plugins : {};
|
113 | arrayHelpers.arrayEach((0, _registry6.getPluginsNames)(), pluginName => {
|
114 | _base.default.plugins[pluginName] = (0, _registry6.getPlugin)(pluginName);
|
115 | });
|
116 | _base.default.plugins[`${stringHelpers.toUpperCaseFirst(_base2.BasePlugin.PLUGIN_KEY)}Plugin`] = _base2.BasePlugin;
|
117 | _base.default.plugins.registerPlugin = _registry6.registerPlugin;
|
118 | _base.default.plugins.getPlugin = _registry6.getPlugin;
|
119 | var _default = exports.default = _base.default; |
\ | No newline at end of file |