handsontable 0.0.0-next-fad35d5-20240924 → 0.0.0-next-d7edb4b-20240927
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/3rdparty/walkontable/src/calculator/calculationType/renderedColumns.js +0 -23
- package/3rdparty/walkontable/src/calculator/calculationType/renderedColumns.mjs +0 -23
- package/3rdparty/walkontable/src/calculator/calculationType/renderedRows.js +0 -23
- package/3rdparty/walkontable/src/calculator/calculationType/renderedRows.mjs +0 -23
- package/3rdparty/walkontable/src/core/_base.js +0 -7
- package/3rdparty/walkontable/src/core/_base.mjs +0 -7
- package/3rdparty/walkontable/src/facade/core.js +0 -3
- package/3rdparty/walkontable/src/facade/core.mjs +0 -3
- package/3rdparty/walkontable/src/overlay/_base.js +0 -3
- package/3rdparty/walkontable/src/overlay/_base.mjs +0 -3
- package/3rdparty/walkontable/src/selection/border/border.js +45 -33
- package/3rdparty/walkontable/src/selection/border/border.mjs +46 -34
- package/3rdparty/walkontable/src/selection/scanner.js +11 -46
- package/3rdparty/walkontable/src/selection/scanner.mjs +11 -46
- package/3rdparty/walkontable/src/settings.js +0 -8
- package/3rdparty/walkontable/src/settings.mjs +0 -8
- package/3rdparty/walkontable/src/table/master.js +1 -1
- package/3rdparty/walkontable/src/table/master.mjs +2 -2
- package/3rdparty/walkontable/src/table.js +3 -6
- package/3rdparty/walkontable/src/table.mjs +3 -6
- package/3rdparty/walkontable/src/viewport.js +4 -26
- package/3rdparty/walkontable/src/viewport.mjs +4 -26
- package/base.js +4 -4
- package/base.mjs +3 -3
- package/core.d.ts +1 -1
- package/core.js +12 -13
- package/core.mjs +4 -5
- package/dataMap/metaManager/metaSchema.js +2 -68
- package/dataMap/metaManager/metaSchema.mjs +2 -68
- package/dataMap/metaManager/mods/dynamicCellMeta.js +3 -2
- package/dataMap/metaManager/mods/dynamicCellMeta.mjs +1 -1
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +2685 -3046
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +75 -75
- package/dist/handsontable.js +2687 -3048
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +18 -18
- package/editorManager.js +2 -2
- package/editorManager.mjs +2 -2
- package/editors/autocompleteEditor/autocompleteEditor.js +31 -14
- package/editors/autocompleteEditor/autocompleteEditor.mjs +31 -14
- package/editors/baseEditor/baseEditor.js +17 -24
- package/editors/baseEditor/baseEditor.mjs +18 -25
- package/editors/dropdownEditor/dropdownEditor.js +3 -2
- package/editors/dropdownEditor/dropdownEditor.mjs +1 -1
- package/editors/handsontableEditor/handsontableEditor.js +24 -0
- package/editors/handsontableEditor/handsontableEditor.mjs +24 -0
- package/editors/registry.js +2 -2
- package/editors/registry.mjs +1 -1
- package/editors/textEditor/textEditor.js +2 -2
- package/editors/textEditor/textEditor.mjs +3 -3
- package/helpers/dom/element.js +4 -17
- package/helpers/dom/element.mjs +4 -16
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/index.d.ts +1 -2
- package/package.json +1 -1
- package/{core/hooks/index.d.ts → pluginHooks.d.ts} +21 -17
- package/{core/hooks/constants.mjs → pluginHooks.js} +489 -16
- package/{core/hooks/constants.js → pluginHooks.mjs} +486 -20
- package/plugins/autoColumnSize/autoColumnSize.js +27 -18
- package/plugins/autoColumnSize/autoColumnSize.mjs +27 -18
- package/plugins/autoRowSize/autoRowSize.js +22 -16
- package/plugins/autoRowSize/autoRowSize.mjs +23 -17
- package/plugins/autofill/autofill.js +5 -4
- package/plugins/autofill/autofill.mjs +1 -1
- package/plugins/base/base.d.ts +1 -1
- package/plugins/base/base.js +0 -39
- package/plugins/base/base.mjs +1 -40
- package/plugins/base/index.js +1 -2
- package/plugins/base/index.mjs +1 -1
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +5 -2
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +5 -2
- package/plugins/columnSorting/columnSorting.js +4 -3
- package/plugins/columnSorting/columnSorting.mjs +1 -1
- package/plugins/comments/comments.js +15 -7
- package/plugins/comments/comments.mjs +16 -8
- package/plugins/contextMenu/contextMenu.js +7 -6
- package/plugins/contextMenu/contextMenu.mjs +1 -1
- package/plugins/contextMenu/menu/menu.js +1 -1
- package/plugins/contextMenu/menu/menu.mjs +2 -2
- package/plugins/contextMenu/menu/positioner.js +4 -2
- package/plugins/contextMenu/menu/positioner.mjs +4 -2
- package/plugins/copyPaste/copyPaste.js +23 -29
- package/plugins/copyPaste/copyPaste.mjs +15 -21
- package/plugins/dropdownMenu/dropdownMenu.js +7 -6
- package/plugins/dropdownMenu/dropdownMenu.mjs +1 -1
- package/plugins/formulas/formulas.js +7 -7
- package/plugins/formulas/formulas.mjs +1 -1
- package/plugins/hiddenColumns/hiddenColumns.js +30 -19
- package/plugins/hiddenColumns/hiddenColumns.mjs +26 -15
- package/plugins/hiddenRows/hiddenRows.js +29 -18
- package/plugins/hiddenRows/hiddenRows.mjs +25 -14
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +5 -5
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +1 -1
- package/plugins/manualColumnMove/manualColumnMove.js +3 -3
- package/plugins/manualColumnMove/manualColumnMove.mjs +1 -1
- package/plugins/manualRowMove/manualRowMove.js +5 -5
- package/plugins/manualRowMove/manualRowMove.mjs +3 -3
- package/plugins/mergeCells/cellsCollection.js +3 -15
- package/plugins/mergeCells/cellsCollection.mjs +4 -16
- package/plugins/mergeCells/mergeCells.d.ts +2 -6
- package/plugins/mergeCells/mergeCells.js +55 -78
- package/plugins/mergeCells/mergeCells.mjs +53 -76
- package/plugins/mergeCells/renderer.js +3 -13
- package/plugins/mergeCells/renderer.mjs +3 -13
- package/plugins/persistentState/persistentState.js +4 -4
- package/plugins/persistentState/persistentState.mjs +1 -1
- package/plugins/undoRedo/undoRedo.js +5 -4
- package/plugins/undoRedo/undoRedo.mjs +3 -3
- package/renderers/checkboxRenderer/checkboxRenderer.js +2 -2
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +1 -1
- package/settings.d.ts +1 -3
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +1 -1
- package/shortcutContexts/commands/scrollToFocusedCell.js +4 -4
- package/shortcutContexts/commands/scrollToFocusedCell.mjs +4 -4
- package/tableView.js +43 -38
- package/tableView.mjs +43 -38
- package/core/hooks/bucket.js +0 -180
- package/core/hooks/bucket.mjs +0 -176
- package/core/hooks/index.js +0 -385
- package/core/hooks/index.mjs +0 -381
@@ -3,7 +3,7 @@
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
require("core-js/modules/es.error.cause.js");
|
5
5
|
var _base = require("../base");
|
6
|
-
var
|
6
|
+
var _pluginHooks = _interopRequireDefault(require("../../pluginHooks"));
|
7
7
|
var _array = require("../../helpers/array");
|
8
8
|
var _object = require("../../helpers/object");
|
9
9
|
var _commandExecutor = require("./commandExecutor");
|
@@ -12,6 +12,7 @@ var _menu = require("./menu");
|
|
12
12
|
var _utils = require("./utils");
|
13
13
|
var _element = require("../../helpers/dom/element");
|
14
14
|
var _predefinedItems = require("./predefinedItems");
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
15
16
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
16
17
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
17
18
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
@@ -21,11 +22,11 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
21
22
|
const PLUGIN_KEY = exports.PLUGIN_KEY = 'contextMenu';
|
22
23
|
const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 70;
|
23
24
|
const SHORTCUTS_GROUP = PLUGIN_KEY;
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
_pluginHooks.default.getSingleton().register('afterContextMenuDefaultOptions');
|
26
|
+
_pluginHooks.default.getSingleton().register('beforeContextMenuShow');
|
27
|
+
_pluginHooks.default.getSingleton().register('afterContextMenuShow');
|
28
|
+
_pluginHooks.default.getSingleton().register('afterContextMenuHide');
|
29
|
+
_pluginHooks.default.getSingleton().register('afterContextMenuExecute');
|
29
30
|
|
30
31
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
31
32
|
/**
|
@@ -6,7 +6,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
7
7
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
8
8
|
import { BasePlugin } from "../base/index.mjs";
|
9
|
-
import
|
9
|
+
import Hooks from "../../pluginHooks.mjs";
|
10
10
|
import { arrayEach } from "../../helpers/array.mjs";
|
11
11
|
import { objectEach } from "../../helpers/object.mjs";
|
12
12
|
import { CommandExecutor } from "./commandExecutor.mjs";
|
@@ -57,7 +57,7 @@ class Menu {
|
|
57
57
|
*/
|
58
58
|
get tableBorderWidth() {
|
59
59
|
if (_classPrivateFieldGet(_tableBorderWidth, this) === undefined && this.hotMenu) {
|
60
|
-
_classPrivateFieldSet(_tableBorderWidth, this, parseInt(
|
60
|
+
_classPrivateFieldSet(_tableBorderWidth, this, parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth, 10));
|
61
61
|
}
|
62
62
|
return _classPrivateFieldGet(_tableBorderWidth, this);
|
63
63
|
}
|
@@ -16,7 +16,7 @@ import { filterSeparators, hasSubMenu, isItemHidden, normalizeSelection, isItemS
|
|
16
16
|
import EventManager from "../../../eventManager.mjs";
|
17
17
|
import { arrayEach, arrayFilter, arrayReduce } from "../../../helpers/array.mjs";
|
18
18
|
import { isWindowsOS, isMobileBrowser, isIpadOS } from "../../../helpers/browser.mjs";
|
19
|
-
import { addClass, isChildOf,
|
19
|
+
import { addClass, isChildOf, getParentWindow, hasClass, setAttribute, outerHeight } from "../../../helpers/dom/element.mjs";
|
20
20
|
import { isRightClick } from "../../../helpers/dom/event.mjs";
|
21
21
|
import { debounce, isFunction } from "../../../helpers/function.mjs";
|
22
22
|
import { isUndefined, isDefined } from "../../../helpers/mixed.mjs";
|
@@ -53,7 +53,7 @@ export class Menu {
|
|
53
53
|
*/
|
54
54
|
get tableBorderWidth() {
|
55
55
|
if (_classPrivateFieldGet(_tableBorderWidth, this) === undefined && this.hotMenu) {
|
56
|
-
_classPrivateFieldSet(_tableBorderWidth, this, parseInt(getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth, 10));
|
56
|
+
_classPrivateFieldSet(_tableBorderWidth, this, parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth, 10));
|
57
57
|
}
|
58
58
|
return _classPrivateFieldGet(_tableBorderWidth, this);
|
59
59
|
}
|
@@ -165,7 +165,8 @@ class Positioner {
|
|
165
165
|
setPositionOnRightOfCursor() {
|
166
166
|
let left = _classPrivateFieldGet(_cursor, this).left;
|
167
167
|
if (_classPrivateFieldGet(_parentContainer, this)) {
|
168
|
-
const
|
168
|
+
const rootWindow = _classPrivateFieldGet(_parentContainer, this).ownerDocument.defaultView;
|
169
|
+
const borderRightWidth = Number.parseInt(rootWindow.getComputedStyle(_classPrivateFieldGet(_parentContainer, this).querySelector('.htCore')).borderRightWidth, 10);
|
169
170
|
left += _classPrivateFieldGet(_cursor, this).cellWidth + borderRightWidth;
|
170
171
|
} else {
|
171
172
|
left += _classPrivateFieldGet(_offset, this).right;
|
@@ -179,7 +180,8 @@ class Positioner {
|
|
179
180
|
setPositionOnLeftOfCursor() {
|
180
181
|
let left = _classPrivateFieldGet(_offset, this).left + _classPrivateFieldGet(_cursor, this).left - _classPrivateFieldGet(_container, this).offsetWidth;
|
181
182
|
if (_classPrivateFieldGet(_parentContainer, this)) {
|
182
|
-
const
|
183
|
+
const rootWindow = _classPrivateFieldGet(_parentContainer, this).ownerDocument.defaultView;
|
184
|
+
const borderLeftWidth = Number.parseInt(rootWindow.getComputedStyle(_classPrivateFieldGet(_parentContainer, this).querySelector('.htCore')).borderLeftWidth, 10);
|
183
185
|
left -= borderLeftWidth;
|
184
186
|
}
|
185
187
|
_classPrivateFieldGet(_container, this).style.left = `${left}px`;
|
@@ -162,7 +162,8 @@ export class Positioner {
|
|
162
162
|
setPositionOnRightOfCursor() {
|
163
163
|
let left = _classPrivateFieldGet(_cursor, this).left;
|
164
164
|
if (_classPrivateFieldGet(_parentContainer, this)) {
|
165
|
-
const
|
165
|
+
const rootWindow = _classPrivateFieldGet(_parentContainer, this).ownerDocument.defaultView;
|
166
|
+
const borderRightWidth = Number.parseInt(rootWindow.getComputedStyle(_classPrivateFieldGet(_parentContainer, this).querySelector('.htCore')).borderRightWidth, 10);
|
166
167
|
left += _classPrivateFieldGet(_cursor, this).cellWidth + borderRightWidth;
|
167
168
|
} else {
|
168
169
|
left += _classPrivateFieldGet(_offset, this).right;
|
@@ -176,7 +177,8 @@ export class Positioner {
|
|
176
177
|
setPositionOnLeftOfCursor() {
|
177
178
|
let left = _classPrivateFieldGet(_offset, this).left + _classPrivateFieldGet(_cursor, this).left - _classPrivateFieldGet(_container, this).offsetWidth;
|
178
179
|
if (_classPrivateFieldGet(_parentContainer, this)) {
|
179
|
-
const
|
180
|
+
const rootWindow = _classPrivateFieldGet(_parentContainer, this).ownerDocument.defaultView;
|
181
|
+
const borderLeftWidth = Number.parseInt(rootWindow.getComputedStyle(_classPrivateFieldGet(_parentContainer, this).querySelector('.htCore')).borderLeftWidth, 10);
|
180
182
|
left -= borderLeftWidth;
|
181
183
|
}
|
182
184
|
_classPrivateFieldGet(_container, this).style.left = `${left}px`;
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
4
4
|
require("core-js/modules/es.error.cause.js");
|
5
5
|
require("core-js/modules/es.array.push.js");
|
6
6
|
var _base = require("../base");
|
7
|
-
var
|
7
|
+
var _pluginHooks = _interopRequireDefault(require("../../pluginHooks"));
|
8
8
|
var _SheetClip = require("../../3rdparty/SheetClip");
|
9
9
|
var _array = require("../../helpers/array");
|
10
10
|
var _string = require("../../helpers/string");
|
@@ -28,14 +28,14 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
28
28
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
29
29
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
30
30
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
31
|
+
_pluginHooks.default.getSingleton().register('afterCopyLimit');
|
32
|
+
_pluginHooks.default.getSingleton().register('modifyCopyableRange');
|
33
|
+
_pluginHooks.default.getSingleton().register('beforeCut');
|
34
|
+
_pluginHooks.default.getSingleton().register('afterCut');
|
35
|
+
_pluginHooks.default.getSingleton().register('beforePaste');
|
36
|
+
_pluginHooks.default.getSingleton().register('afterPaste');
|
37
|
+
_pluginHooks.default.getSingleton().register('beforeCopy');
|
38
|
+
_pluginHooks.default.getSingleton().register('afterCopy');
|
39
39
|
const PLUGIN_KEY = exports.PLUGIN_KEY = 'copyPaste';
|
40
40
|
const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 80;
|
41
41
|
const SETTING_KEYS = ['fragmentSelection'];
|
@@ -206,16 +206,6 @@ class CopyPaste extends _base.BasePlugin {
|
|
206
206
|
static get PLUGIN_PRIORITY() {
|
207
207
|
return PLUGIN_PRIORITY;
|
208
208
|
}
|
209
|
-
static get DEFAULT_SETTINGS() {
|
210
|
-
return {
|
211
|
-
pasteMode: 'overwrite',
|
212
|
-
rowsLimit: Infinity,
|
213
|
-
columnsLimit: Infinity,
|
214
|
-
copyColumnHeaders: false,
|
215
|
-
copyColumnGroupHeaders: false,
|
216
|
-
copyColumnHeadersOnly: false
|
217
|
-
};
|
218
|
-
}
|
219
209
|
/**
|
220
210
|
* Checks if the [`CopyPaste`](#copypaste) plugin is enabled.
|
221
211
|
*
|
@@ -232,19 +222,23 @@ class CopyPaste extends _base.BasePlugin {
|
|
232
222
|
* Enables the [`CopyPaste`](#copypaste) plugin for your Handsontable instance.
|
233
223
|
*/
|
234
224
|
enablePlugin() {
|
235
|
-
var _this
|
236
|
-
_this$getSetting2,
|
237
|
-
_this = this;
|
225
|
+
var _this = this;
|
238
226
|
if (this.enabled) {
|
239
227
|
return;
|
240
228
|
}
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
229
|
+
const {
|
230
|
+
[PLUGIN_KEY]: settings
|
231
|
+
} = this.hot.getSettings();
|
232
|
+
if (typeof settings === 'object') {
|
233
|
+
var _settings$pasteMode, _settings$uiContainer;
|
234
|
+
this.pasteMode = (_settings$pasteMode = settings.pasteMode) !== null && _settings$pasteMode !== void 0 ? _settings$pasteMode : this.pasteMode;
|
235
|
+
this.rowsLimit = isNaN(settings.rowsLimit) ? this.rowsLimit : settings.rowsLimit;
|
236
|
+
this.columnsLimit = isNaN(settings.columnsLimit) ? this.columnsLimit : settings.columnsLimit;
|
237
|
+
_classPrivateFieldSet(_enableCopyColumnHeaders, this, !!settings.copyColumnHeaders);
|
238
|
+
_classPrivateFieldSet(_enableCopyColumnGroupHeaders, this, !!settings.copyColumnGroupHeaders);
|
239
|
+
_classPrivateFieldSet(_enableCopyColumnHeadersOnly, this, !!settings.copyColumnHeadersOnly);
|
240
|
+
this.uiContainer = (_settings$uiContainer = settings.uiContainer) !== null && _settings$uiContainer !== void 0 ? _settings$uiContainer : this.uiContainer;
|
241
|
+
}
|
248
242
|
this.addHook('afterContextMenuDefaultOptions', options => _assertClassBrand(_CopyPaste_brand, this, _onAfterContextMenuDefaultOptions).call(this, options));
|
249
243
|
this.addHook('afterSelection', function () {
|
250
244
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
@@ -10,7 +10,7 @@ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
10
10
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
11
11
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
12
12
|
import { BasePlugin } from "../base/index.mjs";
|
13
|
-
import
|
13
|
+
import Hooks from "../../pluginHooks.mjs";
|
14
14
|
import { stringify, parse } from "../../3rdparty/SheetClip/index.mjs";
|
15
15
|
import { arrayEach } from "../../helpers/array.mjs";
|
16
16
|
import { sanitize } from "../../helpers/string.mjs";
|
@@ -202,16 +202,6 @@ export class CopyPaste extends BasePlugin {
|
|
202
202
|
static get PLUGIN_PRIORITY() {
|
203
203
|
return PLUGIN_PRIORITY;
|
204
204
|
}
|
205
|
-
static get DEFAULT_SETTINGS() {
|
206
|
-
return {
|
207
|
-
pasteMode: 'overwrite',
|
208
|
-
rowsLimit: Infinity,
|
209
|
-
columnsLimit: Infinity,
|
210
|
-
copyColumnHeaders: false,
|
211
|
-
copyColumnGroupHeaders: false,
|
212
|
-
copyColumnHeadersOnly: false
|
213
|
-
};
|
214
|
-
}
|
215
205
|
/**
|
216
206
|
* Checks if the [`CopyPaste`](#copypaste) plugin is enabled.
|
217
207
|
*
|
@@ -228,19 +218,23 @@ export class CopyPaste extends BasePlugin {
|
|
228
218
|
* Enables the [`CopyPaste`](#copypaste) plugin for your Handsontable instance.
|
229
219
|
*/
|
230
220
|
enablePlugin() {
|
231
|
-
var _this
|
232
|
-
_this$getSetting2,
|
233
|
-
_this = this;
|
221
|
+
var _this = this;
|
234
222
|
if (this.enabled) {
|
235
223
|
return;
|
236
224
|
}
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
225
|
+
const {
|
226
|
+
[PLUGIN_KEY]: settings
|
227
|
+
} = this.hot.getSettings();
|
228
|
+
if (typeof settings === 'object') {
|
229
|
+
var _settings$pasteMode, _settings$uiContainer;
|
230
|
+
this.pasteMode = (_settings$pasteMode = settings.pasteMode) !== null && _settings$pasteMode !== void 0 ? _settings$pasteMode : this.pasteMode;
|
231
|
+
this.rowsLimit = isNaN(settings.rowsLimit) ? this.rowsLimit : settings.rowsLimit;
|
232
|
+
this.columnsLimit = isNaN(settings.columnsLimit) ? this.columnsLimit : settings.columnsLimit;
|
233
|
+
_classPrivateFieldSet(_enableCopyColumnHeaders, this, !!settings.copyColumnHeaders);
|
234
|
+
_classPrivateFieldSet(_enableCopyColumnGroupHeaders, this, !!settings.copyColumnGroupHeaders);
|
235
|
+
_classPrivateFieldSet(_enableCopyColumnHeadersOnly, this, !!settings.copyColumnHeadersOnly);
|
236
|
+
this.uiContainer = (_settings$uiContainer = settings.uiContainer) !== null && _settings$uiContainer !== void 0 ? _settings$uiContainer : this.uiContainer;
|
237
|
+
}
|
244
238
|
this.addHook('afterContextMenuDefaultOptions', options => _assertClassBrand(_CopyPaste_brand, this, _onAfterContextMenuDefaultOptions).call(this, options));
|
245
239
|
this.addHook('afterSelection', function () {
|
246
240
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
@@ -10,9 +10,10 @@ var _utils = require("../contextMenu/utils");
|
|
10
10
|
var _element = require("../../helpers/dom/element");
|
11
11
|
var _itemsFactory = require("../contextMenu/itemsFactory");
|
12
12
|
var _menu = require("../contextMenu/menu");
|
13
|
-
var
|
13
|
+
var _pluginHooks = _interopRequireDefault(require("../../pluginHooks"));
|
14
14
|
var _predefinedItems = require("../contextMenu/predefinedItems");
|
15
15
|
var _a11y = require("../../helpers/a11y");
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
16
17
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
17
18
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
18
19
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
@@ -22,11 +23,11 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
22
23
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
23
24
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
24
25
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
_pluginHooks.default.getSingleton().register('afterDropdownMenuDefaultOptions');
|
27
|
+
_pluginHooks.default.getSingleton().register('beforeDropdownMenuShow');
|
28
|
+
_pluginHooks.default.getSingleton().register('afterDropdownMenuShow');
|
29
|
+
_pluginHooks.default.getSingleton().register('afterDropdownMenuHide');
|
30
|
+
_pluginHooks.default.getSingleton().register('afterDropdownMenuExecute');
|
30
31
|
const PLUGIN_KEY = exports.PLUGIN_KEY = 'dropdownMenu';
|
31
32
|
const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 230;
|
32
33
|
const BUTTON_CLASS_NAME = 'changeType';
|
@@ -16,7 +16,7 @@ import { getDocumentOffsetByElement } from "../contextMenu/utils.mjs";
|
|
16
16
|
import { hasClass, setAttribute } from "../../helpers/dom/element.mjs";
|
17
17
|
import { ItemsFactory } from "../contextMenu/itemsFactory.mjs";
|
18
18
|
import { Menu } from "../contextMenu/menu/index.mjs";
|
19
|
-
import
|
19
|
+
import Hooks from "../../pluginHooks.mjs";
|
20
20
|
import { COLUMN_LEFT, COLUMN_RIGHT, REMOVE_COLUMN, CLEAR_COLUMN, READ_ONLY, ALIGNMENT, SEPARATOR } from "../contextMenu/predefinedItems/index.mjs";
|
21
21
|
import { A11Y_HASPOPUP, A11Y_HIDDEN, A11Y_LABEL } from "../../helpers/a11y.mjs";
|
22
22
|
Hooks.getSingleton().register('afterDropdownMenuDefaultOptions');
|
@@ -21,7 +21,7 @@ var _utils = require("./utils");
|
|
21
21
|
var _settings = require("./engine/settings");
|
22
22
|
var _data = require("../../helpers/data");
|
23
23
|
var _string = require("../../helpers/string");
|
24
|
-
var
|
24
|
+
var _pluginHooks = _interopRequireDefault(require("../../pluginHooks"));
|
25
25
|
var _indexSyncer = _interopRequireDefault(require("./indexSyncer"));
|
26
26
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
27
27
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
@@ -36,12 +36,12 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
36
36
|
const PLUGIN_KEY = exports.PLUGIN_KEY = 'formulas';
|
37
37
|
const SETTING_KEYS = exports.SETTING_KEYS = ['maxRows', 'maxColumns', 'language'];
|
38
38
|
const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 260;
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
39
|
+
_pluginHooks.default.getSingleton().register('afterNamedExpressionAdded');
|
40
|
+
_pluginHooks.default.getSingleton().register('afterNamedExpressionRemoved');
|
41
|
+
_pluginHooks.default.getSingleton().register('afterSheetAdded');
|
42
|
+
_pluginHooks.default.getSingleton().register('afterSheetRemoved');
|
43
|
+
_pluginHooks.default.getSingleton().register('afterSheetRenamed');
|
44
|
+
_pluginHooks.default.getSingleton().register('afterFormulasValuesUpdate');
|
45
45
|
|
46
46
|
// This function will be used for detecting changes coming from the `UndoRedo` plugin. This kind of change won't be
|
47
47
|
// handled by whole body of listeners and therefore won't change undo/redo stack inside engine provided by HyperFormula.
|
@@ -27,7 +27,7 @@ import { isEscapedFormulaExpression, unescapeFormulaExpression, isDate, isDateVa
|
|
27
27
|
import { getEngineSettingsWithOverrides, haveEngineSettingsChanged } from "./engine/settings.mjs";
|
28
28
|
import { isArrayOfArrays } from "../../helpers/data.mjs";
|
29
29
|
import { toUpperCaseFirst } from "../../helpers/string.mjs";
|
30
|
-
import
|
30
|
+
import Hooks from "../../pluginHooks.mjs";
|
31
31
|
import IndexSyncer from "./indexSyncer/index.mjs";
|
32
32
|
export const PLUGIN_KEY = 'formulas';
|
33
33
|
export const SETTING_KEYS = ['maxRows', 'maxColumns', 'language'];
|
@@ -14,8 +14,10 @@ var _base = require("../base");
|
|
14
14
|
var _element = require("../../helpers/dom/element");
|
15
15
|
var _number = require("../../helpers/number");
|
16
16
|
var _array = require("../../helpers/array");
|
17
|
+
var _object = require("../../helpers/object");
|
18
|
+
var _mixed = require("../../helpers/mixed");
|
17
19
|
var _predefinedItems = require("../contextMenu/predefinedItems");
|
18
|
-
var
|
20
|
+
var _pluginHooks = _interopRequireDefault(require("../../pluginHooks"));
|
19
21
|
var _hideColumn = _interopRequireDefault(require("./contextMenuItem/hideColumn"));
|
20
22
|
var _showColumn = _interopRequireDefault(require("./contextMenuItem/showColumn"));
|
21
23
|
var _translations = require("../../translations");
|
@@ -26,10 +28,10 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
26
28
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
27
29
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
28
30
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
31
|
+
_pluginHooks.default.getSingleton().register('beforeHideColumns');
|
32
|
+
_pluginHooks.default.getSingleton().register('afterHideColumns');
|
33
|
+
_pluginHooks.default.getSingleton().register('beforeUnhideColumns');
|
34
|
+
_pluginHooks.default.getSingleton().register('afterUnhideColumns');
|
33
35
|
const PLUGIN_KEY = exports.PLUGIN_KEY = 'hiddenColumns';
|
34
36
|
const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 310;
|
35
37
|
|
@@ -139,6 +141,7 @@ const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 310;
|
|
139
141
|
* ```
|
140
142
|
* :::
|
141
143
|
*/
|
144
|
+
var _settings = /*#__PURE__*/new WeakMap();
|
142
145
|
var _hiddenColumnsMap = /*#__PURE__*/new WeakMap();
|
143
146
|
var _HiddenColumns_brand = /*#__PURE__*/new WeakSet();
|
144
147
|
class HiddenColumns extends _base.BasePlugin {
|
@@ -152,6 +155,13 @@ class HiddenColumns extends _base.BasePlugin {
|
|
152
155
|
* @returns {number}
|
153
156
|
*/
|
154
157
|
_classPrivateMethodInitSpec(this, _HiddenColumns_brand);
|
158
|
+
/**
|
159
|
+
* Cached plugin settings.
|
160
|
+
*
|
161
|
+
* @private
|
162
|
+
* @type {object}
|
163
|
+
*/
|
164
|
+
_classPrivateFieldInitSpec(this, _settings, {});
|
155
165
|
/**
|
156
166
|
* Map of hidden columns by the plugin.
|
157
167
|
*
|
@@ -166,13 +176,6 @@ class HiddenColumns extends _base.BasePlugin {
|
|
166
176
|
static get PLUGIN_PRIORITY() {
|
167
177
|
return PLUGIN_PRIORITY;
|
168
178
|
}
|
169
|
-
static get DEFAULT_SETTINGS() {
|
170
|
-
return {
|
171
|
-
copyPasteEnabled: true,
|
172
|
-
indicators: false,
|
173
|
-
columns: []
|
174
|
-
};
|
175
|
-
}
|
176
179
|
/**
|
177
180
|
* Checks if the plugin is enabled in the handsontable settings. This method is executed in {@link Hooks#beforeInit}
|
178
181
|
* hook and if it returns `true` then the {@link HiddenColumns#enablePlugin} method is called.
|
@@ -191,6 +194,13 @@ class HiddenColumns extends _base.BasePlugin {
|
|
191
194
|
if (this.enabled) {
|
192
195
|
return;
|
193
196
|
}
|
197
|
+
const pluginSettings = this.hot.getSettings()[PLUGIN_KEY];
|
198
|
+
if ((0, _object.isObject)(pluginSettings)) {
|
199
|
+
_classPrivateFieldSet(_settings, this, pluginSettings);
|
200
|
+
if ((0, _mixed.isUndefined)(pluginSettings.copyPasteEnabled)) {
|
201
|
+
pluginSettings.copyPasteEnabled = true;
|
202
|
+
}
|
203
|
+
}
|
194
204
|
_classPrivateFieldSet(_hiddenColumnsMap, this, new _translations.HidingMap());
|
195
205
|
_classPrivateFieldGet(_hiddenColumnsMap, this).addLocalHook('init', () => _assertClassBrand(_HiddenColumns_brand, this, _onMapInit).call(this));
|
196
206
|
this.hot.columnIndexMapper.registerMap(this.pluginName, _classPrivateFieldGet(_hiddenColumnsMap, this));
|
@@ -229,6 +239,7 @@ class HiddenColumns extends _base.BasePlugin {
|
|
229
239
|
*/
|
230
240
|
disablePlugin() {
|
231
241
|
this.hot.columnIndexMapper.unregisterMap(this.pluginName);
|
242
|
+
_classPrivateFieldSet(_settings, this, {});
|
232
243
|
super.disablePlugin();
|
233
244
|
this.resetCellsMeta();
|
234
245
|
}
|
@@ -374,6 +385,7 @@ class HiddenColumns extends _base.BasePlugin {
|
|
374
385
|
* Destroys the plugin instance.
|
375
386
|
*/
|
376
387
|
destroy() {
|
388
|
+
_classPrivateFieldSet(_settings, this, null);
|
377
389
|
_classPrivateFieldSet(_hiddenColumnsMap, this, null);
|
378
390
|
super.destroy();
|
379
391
|
}
|
@@ -385,7 +397,7 @@ function _onModifyColWidth(width, column) {
|
|
385
397
|
if (this.isHidden(column)) {
|
386
398
|
return 0;
|
387
399
|
}
|
388
|
-
if (this.
|
400
|
+
if (_classPrivateFieldGet(_settings, this).indicators && (this.isHidden(column + 1) || this.isHidden(column - 1))) {
|
389
401
|
// Add additional space for hidden column indicator.
|
390
402
|
if (typeof width === 'number' && this.hot.hasColHeaders()) {
|
391
403
|
return width + 15;
|
@@ -400,7 +412,7 @@ function _onModifyColWidth(width, column) {
|
|
400
412
|
* @param {object} cellProperties Object containing the cell properties.
|
401
413
|
*/
|
402
414
|
function _onAfterGetCellMeta(row, column, cellProperties) {
|
403
|
-
if (this.
|
415
|
+
if (_classPrivateFieldGet(_settings, this).copyPasteEnabled === false && this.isHidden(column)) {
|
404
416
|
// Cell property handled by the `Autofill` and the `CopyPaste` plugins.
|
405
417
|
cellProperties.skipColumnOnPaste = true;
|
406
418
|
}
|
@@ -428,7 +440,7 @@ function _onAfterGetCellMeta(row, column, cellProperties) {
|
|
428
440
|
*/
|
429
441
|
function _onModifyCopyableRange(ranges) {
|
430
442
|
// Ranges shouldn't be modified when `copyPasteEnabled` option is set to `true` (by default).
|
431
|
-
if (this.
|
443
|
+
if (_classPrivateFieldGet(_settings, this).copyPasteEnabled) {
|
432
444
|
return ranges;
|
433
445
|
}
|
434
446
|
const newRanges = [];
|
@@ -469,7 +481,7 @@ function _onModifyCopyableRange(ranges) {
|
|
469
481
|
* @param {HTMLElement} TH Header's TH element.
|
470
482
|
*/
|
471
483
|
function _onAfterGetColHeader(column, TH) {
|
472
|
-
if (!this.
|
484
|
+
if (!_classPrivateFieldGet(_settings, this).indicators || column < 0) {
|
473
485
|
return;
|
474
486
|
}
|
475
487
|
const classList = [];
|
@@ -495,8 +507,7 @@ function _onAfterContextMenuDefaultOptions(options) {
|
|
495
507
|
* On map initialized hook callback.
|
496
508
|
*/
|
497
509
|
function _onMapInit() {
|
498
|
-
|
499
|
-
|
500
|
-
this.hideColumns(columns);
|
510
|
+
if (Array.isArray(_classPrivateFieldGet(_settings, this).columns)) {
|
511
|
+
this.hideColumns(_classPrivateFieldGet(_settings, this).columns);
|
501
512
|
}
|
502
513
|
}
|
@@ -17,8 +17,10 @@ import { BasePlugin } from "../base/index.mjs";
|
|
17
17
|
import { addClass } from "../../helpers/dom/element.mjs";
|
18
18
|
import { rangeEach } from "../../helpers/number.mjs";
|
19
19
|
import { arrayEach, arrayMap, arrayReduce } from "../../helpers/array.mjs";
|
20
|
+
import { isObject } from "../../helpers/object.mjs";
|
21
|
+
import { isUndefined } from "../../helpers/mixed.mjs";
|
20
22
|
import { SEPARATOR } from "../contextMenu/predefinedItems/index.mjs";
|
21
|
-
import
|
23
|
+
import Hooks from "../../pluginHooks.mjs";
|
22
24
|
import hideColumnItem from "./contextMenuItem/hideColumn.mjs";
|
23
25
|
import showColumnItem from "./contextMenuItem/showColumn.mjs";
|
24
26
|
import { HidingMap } from "../../translations/index.mjs";
|
@@ -135,6 +137,7 @@ export const PLUGIN_PRIORITY = 310;
|
|
135
137
|
* ```
|
136
138
|
* :::
|
137
139
|
*/
|
140
|
+
var _settings = /*#__PURE__*/new WeakMap();
|
138
141
|
var _hiddenColumnsMap = /*#__PURE__*/new WeakMap();
|
139
142
|
var _HiddenColumns_brand = /*#__PURE__*/new WeakSet();
|
140
143
|
export class HiddenColumns extends BasePlugin {
|
@@ -148,6 +151,13 @@ export class HiddenColumns extends BasePlugin {
|
|
148
151
|
* @returns {number}
|
149
152
|
*/
|
150
153
|
_classPrivateMethodInitSpec(this, _HiddenColumns_brand);
|
154
|
+
/**
|
155
|
+
* Cached plugin settings.
|
156
|
+
*
|
157
|
+
* @private
|
158
|
+
* @type {object}
|
159
|
+
*/
|
160
|
+
_classPrivateFieldInitSpec(this, _settings, {});
|
151
161
|
/**
|
152
162
|
* Map of hidden columns by the plugin.
|
153
163
|
*
|
@@ -162,13 +172,6 @@ export class HiddenColumns extends BasePlugin {
|
|
162
172
|
static get PLUGIN_PRIORITY() {
|
163
173
|
return PLUGIN_PRIORITY;
|
164
174
|
}
|
165
|
-
static get DEFAULT_SETTINGS() {
|
166
|
-
return {
|
167
|
-
copyPasteEnabled: true,
|
168
|
-
indicators: false,
|
169
|
-
columns: []
|
170
|
-
};
|
171
|
-
}
|
172
175
|
/**
|
173
176
|
* Checks if the plugin is enabled in the handsontable settings. This method is executed in {@link Hooks#beforeInit}
|
174
177
|
* hook and if it returns `true` then the {@link HiddenColumns#enablePlugin} method is called.
|
@@ -187,6 +190,13 @@ export class HiddenColumns extends BasePlugin {
|
|
187
190
|
if (this.enabled) {
|
188
191
|
return;
|
189
192
|
}
|
193
|
+
const pluginSettings = this.hot.getSettings()[PLUGIN_KEY];
|
194
|
+
if (isObject(pluginSettings)) {
|
195
|
+
_classPrivateFieldSet(_settings, this, pluginSettings);
|
196
|
+
if (isUndefined(pluginSettings.copyPasteEnabled)) {
|
197
|
+
pluginSettings.copyPasteEnabled = true;
|
198
|
+
}
|
199
|
+
}
|
190
200
|
_classPrivateFieldSet(_hiddenColumnsMap, this, new HidingMap());
|
191
201
|
_classPrivateFieldGet(_hiddenColumnsMap, this).addLocalHook('init', () => _assertClassBrand(_HiddenColumns_brand, this, _onMapInit).call(this));
|
192
202
|
this.hot.columnIndexMapper.registerMap(this.pluginName, _classPrivateFieldGet(_hiddenColumnsMap, this));
|
@@ -225,6 +235,7 @@ export class HiddenColumns extends BasePlugin {
|
|
225
235
|
*/
|
226
236
|
disablePlugin() {
|
227
237
|
this.hot.columnIndexMapper.unregisterMap(this.pluginName);
|
238
|
+
_classPrivateFieldSet(_settings, this, {});
|
228
239
|
super.disablePlugin();
|
229
240
|
this.resetCellsMeta();
|
230
241
|
}
|
@@ -370,6 +381,7 @@ export class HiddenColumns extends BasePlugin {
|
|
370
381
|
* Destroys the plugin instance.
|
371
382
|
*/
|
372
383
|
destroy() {
|
384
|
+
_classPrivateFieldSet(_settings, this, null);
|
373
385
|
_classPrivateFieldSet(_hiddenColumnsMap, this, null);
|
374
386
|
super.destroy();
|
375
387
|
}
|
@@ -380,7 +392,7 @@ function _onModifyColWidth(width, column) {
|
|
380
392
|
if (this.isHidden(column)) {
|
381
393
|
return 0;
|
382
394
|
}
|
383
|
-
if (this.
|
395
|
+
if (_classPrivateFieldGet(_settings, this).indicators && (this.isHidden(column + 1) || this.isHidden(column - 1))) {
|
384
396
|
// Add additional space for hidden column indicator.
|
385
397
|
if (typeof width === 'number' && this.hot.hasColHeaders()) {
|
386
398
|
return width + 15;
|
@@ -395,7 +407,7 @@ function _onModifyColWidth(width, column) {
|
|
395
407
|
* @param {object} cellProperties Object containing the cell properties.
|
396
408
|
*/
|
397
409
|
function _onAfterGetCellMeta(row, column, cellProperties) {
|
398
|
-
if (this.
|
410
|
+
if (_classPrivateFieldGet(_settings, this).copyPasteEnabled === false && this.isHidden(column)) {
|
399
411
|
// Cell property handled by the `Autofill` and the `CopyPaste` plugins.
|
400
412
|
cellProperties.skipColumnOnPaste = true;
|
401
413
|
}
|
@@ -423,7 +435,7 @@ function _onAfterGetCellMeta(row, column, cellProperties) {
|
|
423
435
|
*/
|
424
436
|
function _onModifyCopyableRange(ranges) {
|
425
437
|
// Ranges shouldn't be modified when `copyPasteEnabled` option is set to `true` (by default).
|
426
|
-
if (this.
|
438
|
+
if (_classPrivateFieldGet(_settings, this).copyPasteEnabled) {
|
427
439
|
return ranges;
|
428
440
|
}
|
429
441
|
const newRanges = [];
|
@@ -464,7 +476,7 @@ function _onModifyCopyableRange(ranges) {
|
|
464
476
|
* @param {HTMLElement} TH Header's TH element.
|
465
477
|
*/
|
466
478
|
function _onAfterGetColHeader(column, TH) {
|
467
|
-
if (!this.
|
479
|
+
if (!_classPrivateFieldGet(_settings, this).indicators || column < 0) {
|
468
480
|
return;
|
469
481
|
}
|
470
482
|
const classList = [];
|
@@ -490,8 +502,7 @@ function _onAfterContextMenuDefaultOptions(options) {
|
|
490
502
|
* On map initialized hook callback.
|
491
503
|
*/
|
492
504
|
function _onMapInit() {
|
493
|
-
|
494
|
-
|
495
|
-
this.hideColumns(columns);
|
505
|
+
if (Array.isArray(_classPrivateFieldGet(_settings, this).columns)) {
|
506
|
+
this.hideColumns(_classPrivateFieldGet(_settings, this).columns);
|
496
507
|
}
|
497
508
|
}
|