handsontable 0.0.0-next-8a47869-20230712 → 0.0.0-next-4fd762c-20230713
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/viewportColumns.js +3 -1
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +3 -1
- package/3rdparty/walkontable/src/calculator/viewportRows.js +3 -1
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +3 -1
- package/3rdparty/walkontable/src/cell/range.js +1 -0
- package/3rdparty/walkontable/src/cell/range.mjs +1 -0
- package/3rdparty/walkontable/src/core/_base.js +1 -0
- package/3rdparty/walkontable/src/core/_base.mjs +1 -0
- package/3rdparty/walkontable/src/core/core.js +1 -0
- package/3rdparty/walkontable/src/core/core.mjs +1 -0
- package/3rdparty/walkontable/src/overlay/_base.js +1 -0
- package/3rdparty/walkontable/src/overlay/_base.mjs +1 -0
- package/3rdparty/walkontable/src/overlay/bottom.js +1 -0
- package/3rdparty/walkontable/src/overlay/bottom.mjs +1 -0
- package/3rdparty/walkontable/src/overlay/inlineStart.js +3 -1
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +3 -1
- package/3rdparty/walkontable/src/overlay/top.js +3 -1
- package/3rdparty/walkontable/src/overlay/top.mjs +3 -1
- package/3rdparty/walkontable/src/overlays.js +1 -0
- package/3rdparty/walkontable/src/overlays.mjs +1 -0
- package/3rdparty/walkontable/src/selection.js +1 -0
- package/3rdparty/walkontable/src/selection.mjs +1 -0
- package/3rdparty/walkontable/src/settings.js +1 -0
- package/3rdparty/walkontable/src/settings.mjs +1 -0
- package/3rdparty/walkontable/src/table.js +2 -0
- package/3rdparty/walkontable/src/table.mjs +2 -0
- package/3rdparty/walkontable/src/utils/orderView/view.js +1 -0
- package/3rdparty/walkontable/src/utils/orderView/view.mjs +1 -0
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/cellTypes/registry.js +1 -0
- package/cellTypes/registry.mjs +1 -0
- package/core.js +7 -3
- package/core.mjs +7 -3
- package/dataMap/dataMap.js +2 -0
- package/dataMap/dataMap.mjs +2 -0
- package/dataMap/dataSource.js +1 -0
- package/dataMap/dataSource.mjs +1 -0
- package/dataMap/metaManager/index.js +1 -0
- package/dataMap/metaManager/index.mjs +1 -0
- package/dataMap/metaManager/lazyFactoryMap.js +1 -0
- package/dataMap/metaManager/lazyFactoryMap.mjs +1 -0
- package/dataMap/metaManager/metaLayers/cellMeta.js +1 -0
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -0
- package/dataMap/metaManager/metaLayers/globalMeta.js +2 -1
- package/dataMap/metaManager/metaLayers/globalMeta.mjs +2 -1
- package/dataMap/metaManager/mods/dynamicCellMeta.js +2 -1
- package/dataMap/metaManager/mods/dynamicCellMeta.mjs +2 -1
- package/dataMap/metaManager/mods/extendMetaProperties.js +1 -0
- package/dataMap/metaManager/mods/extendMetaProperties.mjs +1 -0
- package/dataMap/metaManager/utils.js +1 -0
- package/dataMap/metaManager/utils.mjs +1 -0
- package/dataMap/replaceData.js +2 -0
- package/dataMap/replaceData.mjs +2 -0
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +3556 -2618
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +19 -19
- package/dist/handsontable.js +3171 -2233
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +18 -18
- package/editors/autocompleteEditor/autocompleteEditor.js +1 -0
- package/editors/autocompleteEditor/autocompleteEditor.mjs +1 -0
- package/editors/baseEditor/baseEditor.js +3 -1
- package/editors/baseEditor/baseEditor.mjs +3 -1
- package/editors/dateEditor/dateEditor.js +1 -0
- package/editors/dateEditor/dateEditor.mjs +1 -0
- package/editors/registry.js +1 -0
- package/editors/registry.mjs +1 -0
- package/eventManager.js +1 -0
- package/eventManager.mjs +1 -0
- package/helpers/array.js +1 -0
- package/helpers/array.mjs +1 -0
- package/helpers/data.js +1 -0
- package/helpers/data.mjs +1 -0
- package/helpers/dom/element.js +2 -0
- package/helpers/dom/element.mjs +2 -0
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/helpers/object.js +2 -0
- package/helpers/object.mjs +2 -0
- package/helpers/string.js +1 -0
- package/helpers/string.mjs +1 -0
- package/helpers/unicode.js +1 -0
- package/helpers/unicode.mjs +1 -0
- package/helpers/wrappers/jquery.js +1 -0
- package/helpers/wrappers/jquery.mjs +1 -0
- package/index.js +6 -5
- package/index.mjs +6 -5
- package/mixins/hooksRefRegisterer.js +1 -0
- package/mixins/hooksRefRegisterer.mjs +1 -0
- package/mixins/localHooks.js +1 -0
- package/mixins/localHooks.mjs +1 -0
- package/package.json +1 -1
- package/pluginHooks.js +1 -0
- package/pluginHooks.mjs +1 -0
- package/plugins/autoColumnSize/autoColumnSize.js +1 -0
- package/plugins/autoColumnSize/autoColumnSize.mjs +1 -0
- package/plugins/autofill/autofill.js +1 -0
- package/plugins/autofill/autofill.mjs +1 -0
- package/plugins/base/base.js +2 -0
- package/plugins/base/base.mjs +2 -0
- package/plugins/collapsibleColumns/collapsibleColumns.js +6 -2
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +6 -2
- package/plugins/columnSorting/columnSorting.js +1 -0
- package/plugins/columnSorting/columnSorting.mjs +1 -0
- package/plugins/columnSorting/domHelpers.js +1 -0
- package/plugins/columnSorting/domHelpers.mjs +1 -0
- package/plugins/columnSummary/columnSummary.js +1 -0
- package/plugins/columnSummary/columnSummary.mjs +1 -0
- package/plugins/columnSummary/endpoints.js +2 -0
- package/plugins/columnSummary/endpoints.mjs +2 -0
- package/plugins/comments/comments.js +5 -2
- package/plugins/comments/comments.mjs +5 -2
- package/plugins/contextMenu/commandExecutor.js +3 -0
- package/plugins/contextMenu/commandExecutor.mjs +3 -0
- package/plugins/contextMenu/itemsFactory.js +1 -0
- package/plugins/contextMenu/itemsFactory.mjs +1 -0
- package/plugins/contextMenu/menu.js +1 -0
- package/plugins/contextMenu/menu.mjs +1 -0
- package/plugins/contextMenu/utils.js +1 -0
- package/plugins/contextMenu/utils.mjs +1 -0
- package/plugins/copyPaste/copyPaste.js +5 -2
- package/plugins/copyPaste/copyPaste.mjs +5 -2
- package/plugins/copyPaste/copyableRanges.js +2 -0
- package/plugins/copyPaste/copyableRanges.mjs +2 -0
- package/plugins/customBorders/customBorders.js +2 -0
- package/plugins/customBorders/customBorders.mjs +2 -0
- package/plugins/customBorders/utils.js +6 -3
- package/plugins/customBorders/utils.mjs +6 -3
- package/plugins/exportFile/dataProvider.js +1 -0
- package/plugins/exportFile/dataProvider.mjs +1 -0
- package/plugins/exportFile/exportFile.js +1 -0
- package/plugins/exportFile/exportFile.mjs +1 -0
- package/plugins/filters/component/_base.js +1 -0
- package/plugins/filters/component/_base.mjs +1 -0
- package/plugins/filters/component/actionBar.js +1 -0
- package/plugins/filters/component/actionBar.mjs +1 -0
- package/plugins/filters/component/condition.js +1 -0
- package/plugins/filters/component/condition.mjs +1 -0
- package/plugins/filters/component/operators.js +2 -0
- package/plugins/filters/component/operators.mjs +2 -0
- package/plugins/filters/component/value.js +1 -0
- package/plugins/filters/component/value.mjs +1 -0
- package/plugins/filters/conditionCollection.js +6 -2
- package/plugins/filters/conditionCollection.mjs +6 -2
- package/plugins/filters/conditionRegisterer.js +1 -0
- package/plugins/filters/conditionRegisterer.mjs +1 -0
- package/plugins/filters/conditionUpdateObserver.js +1 -0
- package/plugins/filters/conditionUpdateObserver.mjs +1 -0
- package/plugins/filters/constants.js +1 -0
- package/plugins/filters/constants.mjs +1 -0
- package/plugins/filters/dataFilter.js +1 -0
- package/plugins/filters/dataFilter.mjs +1 -0
- package/plugins/filters/filters.js +3 -1
- package/plugins/filters/filters.mjs +3 -1
- package/plugins/filters/logicalOperationRegisterer.js +1 -0
- package/plugins/filters/logicalOperationRegisterer.mjs +1 -0
- package/plugins/filters/logicalOperations/disjunctionWithExtraCondition.js +1 -0
- package/plugins/filters/logicalOperations/disjunctionWithExtraCondition.mjs +1 -0
- package/plugins/filters/ui/multipleSelect.js +1 -0
- package/plugins/filters/ui/multipleSelect.mjs +1 -0
- package/plugins/filters/utils.js +1 -0
- package/plugins/filters/utils.mjs +1 -0
- package/plugins/formulas/engine/register.js +5 -2
- package/plugins/formulas/engine/register.mjs +5 -2
- package/plugins/formulas/formulas.js +10 -6
- package/plugins/formulas/formulas.mjs +10 -6
- package/plugins/formulas/indexSyncer/axisSyncer.js +3 -1
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +3 -1
- package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +1 -0
- package/plugins/hiddenColumns/contextMenuItem/hideColumn.mjs +1 -0
- package/plugins/hiddenColumns/contextMenuItem/showColumn.js +4 -2
- package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +4 -2
- package/plugins/hiddenColumns/hiddenColumns.js +1 -0
- package/plugins/hiddenColumns/hiddenColumns.mjs +1 -0
- package/plugins/hiddenRows/contextMenuItem/hideRow.js +1 -0
- package/plugins/hiddenRows/contextMenuItem/hideRow.mjs +1 -0
- package/plugins/hiddenRows/contextMenuItem/showRow.js +4 -2
- package/plugins/hiddenRows/contextMenuItem/showRow.mjs +4 -2
- package/plugins/hiddenRows/hiddenRows.js +1 -0
- package/plugins/hiddenRows/hiddenRows.mjs +1 -0
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +1 -0
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +1 -0
- package/plugins/manualColumnMove/manualColumnMove.js +1 -0
- package/plugins/manualColumnMove/manualColumnMove.mjs +1 -0
- package/plugins/manualColumnResize/manualColumnResize.js +1 -0
- package/plugins/manualColumnResize/manualColumnResize.mjs +1 -0
- package/plugins/manualRowMove/manualRowMove.js +1 -0
- package/plugins/manualRowMove/manualRowMove.mjs +1 -0
- package/plugins/manualRowResize/manualRowResize.js +1 -0
- package/plugins/manualRowResize/manualRowResize.mjs +1 -0
- package/plugins/mergeCells/calculations/selection.js +1 -0
- package/plugins/mergeCells/calculations/selection.mjs +1 -0
- package/plugins/mergeCells/cellsCollection.js +1 -0
- package/plugins/mergeCells/cellsCollection.mjs +1 -0
- package/plugins/mergeCells/mergeCells.js +1 -0
- package/plugins/mergeCells/mergeCells.mjs +1 -0
- package/plugins/multiColumnSorting/domHelpers.js +1 -0
- package/plugins/multiColumnSorting/domHelpers.mjs +1 -0
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +1 -0
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +1 -0
- package/plugins/nestedHeaders/nestedHeaders.js +7 -3
- package/plugins/nestedHeaders/nestedHeaders.mjs +7 -3
- package/plugins/nestedHeaders/stateManager/index.js +7 -3
- package/plugins/nestedHeaders/stateManager/index.mjs +7 -3
- package/plugins/nestedHeaders/stateManager/matrixGenerator.js +1 -0
- package/plugins/nestedHeaders/stateManager/matrixGenerator.mjs +1 -0
- package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.js +2 -1
- package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.mjs +2 -1
- package/plugins/nestedHeaders/stateManager/nodeModifiers/hideColumn.js +2 -0
- package/plugins/nestedHeaders/stateManager/nodeModifiers/hideColumn.mjs +2 -0
- package/plugins/nestedHeaders/stateManager/nodeModifiers/index.js +1 -0
- package/plugins/nestedHeaders/stateManager/nodeModifiers/index.mjs +1 -0
- package/plugins/nestedHeaders/stateManager/nodeModifiers/showColumn.js +1 -0
- package/plugins/nestedHeaders/stateManager/nodeModifiers/showColumn.mjs +1 -0
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +1 -0
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.mjs +1 -0
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +4 -1
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +4 -1
- package/plugins/nestedRows/data/dataManager.js +1 -0
- package/plugins/nestedRows/data/dataManager.mjs +1 -0
- package/plugins/nestedRows/nestedRows.js +1 -0
- package/plugins/nestedRows/nestedRows.mjs +1 -0
- package/plugins/nestedRows/ui/collapsing.js +1 -0
- package/plugins/nestedRows/ui/collapsing.mjs +1 -0
- package/plugins/nestedRows/utils/rowMoveController.js +1 -0
- package/plugins/nestedRows/utils/rowMoveController.mjs +1 -0
- package/plugins/persistentState/storage.js +1 -0
- package/plugins/persistentState/storage.mjs +1 -0
- package/plugins/registry.js +1 -0
- package/plugins/registry.mjs +1 -0
- package/plugins/search/search.js +1 -0
- package/plugins/search/search.mjs +1 -0
- package/plugins/touchScroll/touchScroll.js +1 -0
- package/plugins/touchScroll/touchScroll.mjs +1 -0
- package/plugins/trimRows/trimRows.js +1 -0
- package/plugins/trimRows/trimRows.mjs +1 -0
- package/plugins/undoRedo/undoRedo.js +1 -0
- package/plugins/undoRedo/undoRedo.mjs +1 -0
- package/renderers/baseRenderer/baseRenderer.js +1 -0
- package/renderers/baseRenderer/baseRenderer.mjs +1 -0
- package/renderers/checkboxRenderer/checkboxRenderer.js +1 -0
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +1 -0
- package/renderers/numericRenderer/numericRenderer.js +1 -0
- package/renderers/numericRenderer/numericRenderer.mjs +1 -0
- package/renderers/registry.js +1 -0
- package/renderers/registry.mjs +1 -0
- package/selection/highlight/highlight.js +1 -0
- package/selection/highlight/highlight.mjs +1 -0
- package/selection/range.js +1 -0
- package/selection/range.mjs +1 -0
- package/selection/selection.js +1 -0
- package/selection/selection.mjs +1 -0
- package/selection/utils.js +2 -0
- package/selection/utils.mjs +2 -0
- package/shortcuts/context.js +2 -0
- package/shortcuts/context.mjs +2 -0
- package/shortcuts/recorder.js +1 -0
- package/shortcuts/recorder.mjs +1 -0
- package/tableView.js +4 -2
- package/tableView.mjs +4 -2
- package/translations/changesObservable/observable.js +1 -1
- package/translations/changesObservable/observable.mjs +1 -1
- package/translations/changesObservable/utils.js +1 -0
- package/translations/changesObservable/utils.mjs +1 -0
- package/translations/indexMapper.js +1 -0
- package/translations/indexMapper.mjs +1 -0
- package/translations/mapCollections/aggregatedCollection.js +1 -0
- package/translations/mapCollections/aggregatedCollection.mjs +1 -0
- package/translations/maps/hidingMap.js +1 -0
- package/translations/maps/hidingMap.mjs +1 -0
- package/translations/maps/index.js +1 -0
- package/translations/maps/index.mjs +1 -0
- package/translations/maps/indexMap.js +1 -0
- package/translations/maps/indexMap.mjs +1 -0
- package/translations/maps/trimmingMap.js +1 -0
- package/translations/maps/trimmingMap.mjs +1 -0
- package/translations/maps/utils/index.js +1 -0
- package/translations/maps/utils/index.mjs +1 -0
- package/utils/dataStructures/priorityMap.js +1 -0
- package/utils/dataStructures/priorityMap.mjs +1 -0
- package/utils/dataStructures/queue.js +1 -0
- package/utils/dataStructures/queue.mjs +1 -0
- package/utils/dataStructures/stack.js +1 -0
- package/utils/dataStructures/stack.mjs +1 -0
- package/utils/dataStructures/tree.js +2 -0
- package/utils/dataStructures/tree.mjs +2 -0
- package/utils/dataStructures/uniqueMap.js +1 -0
- package/utils/dataStructures/uniqueMap.mjs +1 -0
- package/utils/dataStructures/uniqueSet.js +1 -0
- package/utils/dataStructures/uniqueSet.mjs +1 -0
- package/utils/ghostTable.js +2 -0
- package/utils/ghostTable.mjs +2 -0
- package/utils/parseTable.js +1 -0
- package/utils/parseTable.mjs +1 -0
- package/utils/samplesGenerator.js +2 -0
- package/utils/samplesGenerator.mjs +2 -0
- package/validators/registry.js +1 -0
- package/validators/registry.mjs +1 -0
@@ -1,3 +1,5 @@
|
|
1
|
+
import "core-js/modules/es.error.cause.js";
|
2
|
+
import "core-js/modules/es.array.push.js";
|
1
3
|
import { addClass, closest, isChildOf, hasClass, outerWidth, outerHeight } from "../../helpers/dom/element.mjs";
|
2
4
|
import { deepClone, deepExtend, isObject } from "../../helpers/object.mjs";
|
3
5
|
import EventManager from "../../eventManager.mjs";
|
@@ -410,6 +412,7 @@ export class Comments extends BasePlugin {
|
|
410
412
|
* @param {boolean} [force=false] If `true` then recalculation will be forced.
|
411
413
|
*/
|
412
414
|
refreshEditor() {
|
415
|
+
var _renderableRow, _renderableColumn;
|
413
416
|
let force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
414
417
|
if (!force && (!this.range.from || !this.editor.isVisible())) {
|
415
418
|
return;
|
@@ -438,8 +441,8 @@ export class Comments extends BasePlugin {
|
|
438
441
|
}
|
439
442
|
const isBeforeRenderedRows = renderableRow === null;
|
440
443
|
const isBeforeRenderedColumns = renderableColumn === null;
|
441
|
-
renderableRow = renderableRow
|
442
|
-
renderableColumn = renderableColumn
|
444
|
+
renderableRow = (_renderableRow = renderableRow) != null ? _renderableRow : 0;
|
445
|
+
renderableColumn = (_renderableColumn = renderableColumn) != null ? _renderableColumn : 0;
|
443
446
|
const {
|
444
447
|
rootWindow,
|
445
448
|
view: {
|
@@ -1,6 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/es.error.cause.js");
|
5
|
+
require("core-js/modules/es.array.push.js");
|
6
|
+
require("core-js/modules/es.array.unshift.js");
|
4
7
|
var _array = require("../../helpers/array");
|
5
8
|
var _object = require("../../helpers/object");
|
6
9
|
/**
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import "core-js/modules/es.array.push.js";
|
1
2
|
import Cursor from "./cursor.mjs";
|
2
3
|
import { SEPARATOR, NO_ITEMS, predefinedItems } from "./predefinedItems.mjs";
|
3
4
|
import { filterSeparators, hasSubMenu, isDisabled, isItemHidden, isSeparator, isSelectionDisabled, normalizeSelection } from "./utils.mjs";
|
@@ -15,6 +15,7 @@ exports.markLabelAsSelected = markLabelAsSelected;
|
|
15
15
|
exports.normalizeSelection = normalizeSelection;
|
16
16
|
exports.prepareHorizontalAlignClass = prepareHorizontalAlignClass;
|
17
17
|
exports.prepareVerticalAlignClass = prepareVerticalAlignClass;
|
18
|
+
require("core-js/modules/es.array.push.js");
|
18
19
|
var _array = require("../../helpers/array");
|
19
20
|
var _element = require("../../helpers/dom/element");
|
20
21
|
var _separator = require("./predefinedItems/separator");
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/es.array.push.js");
|
5
|
+
require("core-js/modules/es.error.cause.js");
|
4
6
|
var _base = require("../base");
|
5
7
|
var _pluginHooks = _interopRequireDefault(require("../../pluginHooks"));
|
6
8
|
var _SheetClip = require("../../3rdparty/SheetClip");
|
@@ -256,13 +258,14 @@ class CopyPaste extends _base.BasePlugin {
|
|
256
258
|
[PLUGIN_KEY]: settings
|
257
259
|
} = this.hot.getSettings();
|
258
260
|
if (typeof settings === 'object') {
|
259
|
-
|
261
|
+
var _settings$pasteMode, _settings$uiContainer;
|
262
|
+
this.pasteMode = (_settings$pasteMode = settings.pasteMode) != null ? _settings$pasteMode : this.pasteMode;
|
260
263
|
this.rowsLimit = isNaN(settings.rowsLimit) ? this.rowsLimit : settings.rowsLimit;
|
261
264
|
this.columnsLimit = isNaN(settings.columnsLimit) ? this.columnsLimit : settings.columnsLimit;
|
262
265
|
_classPrivateFieldSet(this, _enableCopyColumnHeaders, !!settings.copyColumnHeaders);
|
263
266
|
_classPrivateFieldSet(this, _enableCopyColumnGroupHeaders, !!settings.copyColumnGroupHeaders);
|
264
267
|
_classPrivateFieldSet(this, _enableCopyColumnHeadersOnly, !!settings.copyColumnHeadersOnly);
|
265
|
-
this.uiContainer = settings.uiContainer
|
268
|
+
this.uiContainer = (_settings$uiContainer = settings.uiContainer) != null ? _settings$uiContainer : this.uiContainer;
|
266
269
|
}
|
267
270
|
this.addHook('afterContextMenuDefaultOptions', options => this.onAfterContextMenuDefaultOptions(options));
|
268
271
|
this.addHook('afterOnCellMouseUp', () => this.onAfterOnCellMouseUp());
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import "core-js/modules/es.array.push.js";
|
2
|
+
import "core-js/modules/es.error.cause.js";
|
1
3
|
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
2
4
|
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
3
5
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
@@ -250,13 +252,14 @@ export class CopyPaste extends BasePlugin {
|
|
250
252
|
[PLUGIN_KEY]: settings
|
251
253
|
} = this.hot.getSettings();
|
252
254
|
if (typeof settings === 'object') {
|
253
|
-
|
255
|
+
var _settings$pasteMode, _settings$uiContainer;
|
256
|
+
this.pasteMode = (_settings$pasteMode = settings.pasteMode) != null ? _settings$pasteMode : this.pasteMode;
|
254
257
|
this.rowsLimit = isNaN(settings.rowsLimit) ? this.rowsLimit : settings.rowsLimit;
|
255
258
|
this.columnsLimit = isNaN(settings.columnsLimit) ? this.columnsLimit : settings.columnsLimit;
|
256
259
|
_classPrivateFieldSet(this, _enableCopyColumnHeaders, !!settings.copyColumnHeaders);
|
257
260
|
_classPrivateFieldSet(this, _enableCopyColumnGroupHeaders, !!settings.copyColumnGroupHeaders);
|
258
261
|
_classPrivateFieldSet(this, _enableCopyColumnHeadersOnly, !!settings.copyColumnHeadersOnly);
|
259
|
-
this.uiContainer = settings.uiContainer
|
262
|
+
this.uiContainer = (_settings$uiContainer = settings.uiContainer) != null ? _settings$uiContainer : this.uiContainer;
|
260
263
|
}
|
261
264
|
this.addHook('afterContextMenuDefaultOptions', options => this.onAfterContextMenuDefaultOptions(options));
|
262
265
|
this.addHook('afterOnCellMouseUp', () => this.onAfterOnCellMouseUp());
|
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.normalizeRanges = normalizeRanges;
|
5
|
+
require("core-js/modules/es.array.push.js");
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
5
7
|
var _array = require("../../helpers/array");
|
6
8
|
var _number = require("../../helpers/number");
|
7
9
|
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import "core-js/modules/es.array.push.js";
|
2
|
+
import "core-js/modules/es.error.cause.js";
|
1
3
|
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
2
4
|
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
3
5
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/es.array.push.js");
|
5
|
+
require("core-js/modules/es.error.cause.js");
|
4
6
|
var _base = require("../base");
|
5
7
|
var _object = require("../../helpers/object");
|
6
8
|
var _number = require("../../helpers/number");
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import "core-js/modules/es.array.push.js";
|
2
|
+
import "core-js/modules/es.error.cause.js";
|
1
3
|
import { BasePlugin } from "../base/index.mjs";
|
2
4
|
import { hasOwnProperty, objectEach, deepClone } from "../../helpers/object.mjs";
|
3
5
|
import { rangeEach } from "../../helpers/number.mjs";
|
@@ -73,10 +73,12 @@ function createDefaultHtBorder() {
|
|
73
73
|
*/
|
74
74
|
function normalizeBorder(border) {
|
75
75
|
if ((0, _mixed.isDefined)(border.start) || (0, _mixed.isDefined)(border.left)) {
|
76
|
-
|
76
|
+
var _border$start;
|
77
|
+
border.start = (_border$start = border.start) != null ? _border$start : border.left;
|
77
78
|
}
|
78
79
|
if ((0, _mixed.isDefined)(border.end) || (0, _mixed.isDefined)(border.right)) {
|
79
|
-
|
80
|
+
var _border$end;
|
81
|
+
border.end = (_border$end = border.end) != null ? _border$end : border.right;
|
80
82
|
}
|
81
83
|
delete border.left;
|
82
84
|
delete border.right;
|
@@ -248,5 +250,6 @@ const physicalToInlinePropNames = new Map([['left', 'start'], ['right', 'end']])
|
|
248
250
|
* @returns {string}
|
249
251
|
*/
|
250
252
|
function toInlinePropName(propName) {
|
251
|
-
|
253
|
+
var _physicalToInlineProp;
|
254
|
+
return (_physicalToInlineProp = physicalToInlinePropNames.get(propName)) != null ? _physicalToInlineProp : propName;
|
252
255
|
}
|
@@ -57,10 +57,12 @@ export function createDefaultHtBorder() {
|
|
57
57
|
*/
|
58
58
|
export function normalizeBorder(border) {
|
59
59
|
if (isDefined(border.start) || isDefined(border.left)) {
|
60
|
-
|
60
|
+
var _border$start;
|
61
|
+
border.start = (_border$start = border.start) != null ? _border$start : border.left;
|
61
62
|
}
|
62
63
|
if (isDefined(border.end) || isDefined(border.right)) {
|
63
|
-
|
64
|
+
var _border$end;
|
65
|
+
border.end = (_border$end = border.end) != null ? _border$end : border.right;
|
64
66
|
}
|
65
67
|
delete border.left;
|
66
68
|
delete border.right;
|
@@ -232,5 +234,6 @@ const physicalToInlinePropNames = new Map([['left', 'start'], ['right', 'end']])
|
|
232
234
|
* @returns {string}
|
233
235
|
*/
|
234
236
|
export function toInlinePropName(propName) {
|
235
|
-
|
237
|
+
var _physicalToInlineProp;
|
238
|
+
return (_physicalToInlineProp = physicalToInlinePropNames.get(propName)) != null ? _physicalToInlineProp : propName;
|
236
239
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/es.error.cause.js");
|
4
5
|
var _base = require("../base");
|
5
6
|
var _dataProvider = _interopRequireDefault(require("./dataProvider"));
|
6
7
|
var _typeFactory = _interopRequireWildcard(require("./typeFactory"));
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/es.error.cause.js");
|
4
5
|
var _array = require("../../../helpers/array");
|
5
6
|
var _object = require("../../../helpers/object");
|
6
7
|
var _localHooks = _interopRequireDefault(require("../../../mixins/localHooks"));
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/es.array.push.js");
|
4
5
|
var _element = require("../../../helpers/dom/element");
|
5
6
|
var _array = require("../../../helpers/array");
|
6
7
|
var C = _interopRequireWildcard(require("../../../i18n/constants"));
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/es.array.push.js");
|
5
|
+
require("core-js/modules/es.error.cause.js");
|
4
6
|
var _element = require("../../../helpers/dom/element");
|
5
7
|
var _array = require("../../../helpers/array");
|
6
8
|
var _templateLiteralTag = require("../../../helpers/templateLiteralTag");
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import "core-js/modules/es.array.push.js";
|
2
|
+
import "core-js/modules/es.error.cause.js";
|
1
3
|
import { addClass } from "../../../helpers/dom/element.mjs";
|
2
4
|
import { arrayEach } from "../../../helpers/array.mjs";
|
3
5
|
import { toSingleLine } from "../../../helpers/templateLiteralTag.mjs";
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/es.error.cause.js");
|
5
|
+
require("core-js/modules/es.array.push.js");
|
4
6
|
var _array = require("../../helpers/array");
|
5
7
|
var _object = require("../../helpers/object");
|
6
8
|
var _templateLiteralTag = require("../../helpers/templateLiteralTag");
|
@@ -64,8 +66,9 @@ class ConditionCollection {
|
|
64
66
|
* @returns {boolean}
|
65
67
|
*/
|
66
68
|
isMatch(value, column) {
|
69
|
+
var _stateForColumn$condi;
|
67
70
|
const stateForColumn = this.filteringStates.getValueAtIndex(column);
|
68
|
-
const conditions = stateForColumn?.conditions
|
71
|
+
const conditions = (_stateForColumn$condi = stateForColumn?.conditions) != null ? _stateForColumn$condi : [];
|
69
72
|
const operation = stateForColumn?.operation;
|
70
73
|
return this.isMatchInConditions(conditions, value, operation);
|
71
74
|
}
|
@@ -147,7 +150,8 @@ class ConditionCollection {
|
|
147
150
|
* @returns {Array} Returns conditions collection as an array.
|
148
151
|
*/
|
149
152
|
getConditions(column) {
|
150
|
-
|
153
|
+
var _this$filteringStates;
|
154
|
+
return (_this$filteringStates = this.filteringStates.getValueAtIndex(column)?.conditions) != null ? _this$filteringStates : [];
|
151
155
|
}
|
152
156
|
|
153
157
|
/**
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import "core-js/modules/es.error.cause.js";
|
2
|
+
import "core-js/modules/es.array.push.js";
|
1
3
|
import { arrayEach, arrayMap, arrayReduce } from "../../helpers/array.mjs";
|
2
4
|
import { mixin } from "../../helpers/object.mjs";
|
3
5
|
import { toSingleLine } from "../../helpers/templateLiteralTag.mjs";
|
@@ -60,8 +62,9 @@ class ConditionCollection {
|
|
60
62
|
* @returns {boolean}
|
61
63
|
*/
|
62
64
|
isMatch(value, column) {
|
65
|
+
var _stateForColumn$condi;
|
63
66
|
const stateForColumn = this.filteringStates.getValueAtIndex(column);
|
64
|
-
const conditions = stateForColumn?.conditions
|
67
|
+
const conditions = (_stateForColumn$condi = stateForColumn?.conditions) != null ? _stateForColumn$condi : [];
|
65
68
|
const operation = stateForColumn?.operation;
|
66
69
|
return this.isMatchInConditions(conditions, value, operation);
|
67
70
|
}
|
@@ -143,7 +146,8 @@ class ConditionCollection {
|
|
143
146
|
* @returns {Array} Returns conditions collection as an array.
|
144
147
|
*/
|
145
148
|
getConditions(column) {
|
146
|
-
|
149
|
+
var _this$filteringStates;
|
150
|
+
return (_this$filteringStates = this.filteringStates.getValueAtIndex(column)?.conditions) != null ? _this$filteringStates : [];
|
147
151
|
}
|
148
152
|
|
149
153
|
/**
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.default = getOptionsList;
|
5
|
+
require("core-js/modules/es.array.push.js");
|
5
6
|
var _object = require("../../helpers/object");
|
6
7
|
var _array = require("../../helpers/array");
|
7
8
|
var _predefinedItems = require("../contextMenu/predefinedItems");
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/es.array.push.js");
|
4
5
|
var _base = require("../base");
|
5
6
|
var _array = require("../../helpers/array");
|
6
7
|
var _templateLiteralTag = require("../../helpers/templateLiteralTag");
|
@@ -463,6 +464,7 @@ class Filters extends _base.BasePlugin {
|
|
463
464
|
const visualColumn = this.hot.toVisualColumn(column);
|
464
465
|
const data = [];
|
465
466
|
(0, _array.arrayEach)(this.hot.getSourceDataAtCol(visualColumn), (value, rowIndex) => {
|
467
|
+
var _this$hot$getDataAtCe;
|
466
468
|
const {
|
467
469
|
row,
|
468
470
|
col,
|
@@ -473,7 +475,7 @@ class Filters extends _base.BasePlugin {
|
|
473
475
|
dateFormat,
|
474
476
|
locale
|
475
477
|
} = this.hot.getCellMeta(rowIndex, visualColumn);
|
476
|
-
const dataValue = this.hot.getDataAtCell(this.hot.toVisualRow(rowIndex), visualColumn)
|
478
|
+
const dataValue = (_this$hot$getDataAtCe = this.hot.getDataAtCell(this.hot.toVisualRow(rowIndex), visualColumn)) != null ? _this$hot$getDataAtCe : value;
|
477
479
|
data.push({
|
478
480
|
meta: {
|
479
481
|
row,
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import "core-js/modules/es.array.push.js";
|
1
2
|
import { BasePlugin } from "../base/index.mjs";
|
2
3
|
import { arrayEach, arrayMap } from "../../helpers/array.mjs";
|
3
4
|
import { toSingleLine } from "../../helpers/templateLiteralTag.mjs";
|
@@ -455,6 +456,7 @@ export class Filters extends BasePlugin {
|
|
455
456
|
const visualColumn = this.hot.toVisualColumn(column);
|
456
457
|
const data = [];
|
457
458
|
arrayEach(this.hot.getSourceDataAtCol(visualColumn), (value, rowIndex) => {
|
459
|
+
var _this$hot$getDataAtCe;
|
458
460
|
const {
|
459
461
|
row,
|
460
462
|
col,
|
@@ -465,7 +467,7 @@ export class Filters extends BasePlugin {
|
|
465
467
|
dateFormat,
|
466
468
|
locale
|
467
469
|
} = this.hot.getCellMeta(rowIndex, visualColumn);
|
468
|
-
const dataValue = this.hot.getDataAtCell(this.hot.toVisualRow(rowIndex), visualColumn)
|
470
|
+
const dataValue = (_this$hot$getDataAtCe = this.hot.getDataAtCell(this.hot.toVisualRow(rowIndex), visualColumn)) != null ? _this$hot$getDataAtCe : value;
|
469
471
|
data.push({
|
470
472
|
meta: {
|
471
473
|
row,
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.operationResult = operationResult;
|
5
|
+
require("core-js/modules/es.error.cause.js");
|
5
6
|
var C = _interopRequireWildcard(require("../../../i18n/constants"));
|
6
7
|
var _logicalOperationRegisterer = require("../logicalOperationRegisterer");
|
7
8
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
package/plugins/filters/utils.js
CHANGED
@@ -7,6 +7,7 @@ exports.sortComparison = sortComparison;
|
|
7
7
|
exports.toEmptyString = toEmptyString;
|
8
8
|
exports.toVisualValue = toVisualValue;
|
9
9
|
exports.unifyColumnValues = unifyColumnValues;
|
10
|
+
require("core-js/modules/es.array.push.js");
|
10
11
|
var _feature = require("../../helpers/feature");
|
11
12
|
var _array = require("../../helpers/array");
|
12
13
|
const sortCompare = (0, _feature.getComparisonFunction)();
|
@@ -9,6 +9,7 @@ exports.registerNamedExpressions = registerNamedExpressions;
|
|
9
9
|
exports.setupEngine = setupEngine;
|
10
10
|
exports.setupSheet = setupSheet;
|
11
11
|
exports.unregisterEngine = unregisterEngine;
|
12
|
+
require("core-js/modules/es.array.push.js");
|
12
13
|
var _staticRegister = _interopRequireDefault(require("../../../utils/staticRegister"));
|
13
14
|
var _mixed = require("../../../helpers/mixed");
|
14
15
|
var _templateLiteralTag = require("../../../helpers/templateLiteralTag");
|
@@ -65,7 +66,8 @@ function setupEngine(hotInstance) {
|
|
65
66
|
|
66
67
|
// `engine.hyperformula` or `engine` is the engine class
|
67
68
|
if (typeof engineConfigItem.hyperformula === 'function' || typeof engineConfigItem === 'function') {
|
68
|
-
|
69
|
+
var _engineConfigItem$hyp;
|
70
|
+
return registerEngine((_engineConfigItem$hyp = engineConfigItem.hyperformula) != null ? _engineConfigItem$hyp : engineConfigItem, hotSettings, hotInstance);
|
69
71
|
|
70
72
|
// `engine` is the engine instance
|
71
73
|
} else if (typeof engineConfigItem === 'object' && (0, _mixed.isUndefined)(engineConfigItem.hyperformula)) {
|
@@ -133,8 +135,9 @@ function registerEngine(engineClass, hotSettings, hotInstance) {
|
|
133
135
|
* @returns {Map<number, Handsontable>} Returns Map with Handsontable instances.
|
134
136
|
*/
|
135
137
|
function getRegisteredHotInstances(engine) {
|
138
|
+
var _engineRegistry$get;
|
136
139
|
const engineRegistry = getEngineRelationshipRegistry();
|
137
|
-
const hotInstances = engineRegistry.size === 0 ? [] : Array.from(engineRegistry.get(engine)
|
140
|
+
const hotInstances = engineRegistry.size === 0 ? [] : Array.from((_engineRegistry$get = engineRegistry.get(engine)) != null ? _engineRegistry$get : []);
|
138
141
|
return new Map(hotInstances.map(hot => [hot.getPlugin('formulas').sheetId, hot]));
|
139
142
|
}
|
140
143
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import "core-js/modules/es.array.push.js";
|
1
2
|
import staticRegister from "../../../utils/staticRegister.mjs";
|
2
3
|
import { isUndefined } from "../../../helpers/mixed.mjs";
|
3
4
|
import { toSingleLine } from "../../../helpers/templateLiteralTag.mjs";
|
@@ -53,7 +54,8 @@ export function setupEngine(hotInstance) {
|
|
53
54
|
|
54
55
|
// `engine.hyperformula` or `engine` is the engine class
|
55
56
|
if (typeof engineConfigItem.hyperformula === 'function' || typeof engineConfigItem === 'function') {
|
56
|
-
|
57
|
+
var _engineConfigItem$hyp;
|
58
|
+
return registerEngine((_engineConfigItem$hyp = engineConfigItem.hyperformula) != null ? _engineConfigItem$hyp : engineConfigItem, hotSettings, hotInstance);
|
57
59
|
|
58
60
|
// `engine` is the engine instance
|
59
61
|
} else if (typeof engineConfigItem === 'object' && isUndefined(engineConfigItem.hyperformula)) {
|
@@ -121,8 +123,9 @@ export function registerEngine(engineClass, hotSettings, hotInstance) {
|
|
121
123
|
* @returns {Map<number, Handsontable>} Returns Map with Handsontable instances.
|
122
124
|
*/
|
123
125
|
export function getRegisteredHotInstances(engine) {
|
126
|
+
var _engineRegistry$get;
|
124
127
|
const engineRegistry = getEngineRelationshipRegistry();
|
125
|
-
const hotInstances = engineRegistry.size === 0 ? [] : Array.from(engineRegistry.get(engine)
|
128
|
+
const hotInstances = engineRegistry.size === 0 ? [] : Array.from((_engineRegistry$get = engineRegistry.get(engine)) != null ? _engineRegistry$get : []);
|
126
129
|
return new Map(hotInstances.map(hot => [hot.getPlugin('formulas').sheetId, hot]));
|
127
130
|
}
|
128
131
|
|