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,4 @@
|
|
1
|
+
import "core-js/modules/es.array.push.js";
|
1
2
|
import { arrayMap, arrayReduce } from "../../../helpers/array.mjs";
|
2
3
|
import SourceSettings from "./sourceSettings.mjs";
|
3
4
|
import HeadersTree from "./headersTree.mjs";
|
@@ -271,13 +272,14 @@ export default class StateManager {
|
|
271
272
|
* @returns {object|null}
|
272
273
|
*/
|
273
274
|
getHeaderSettings(headerLevel, columnIndex) {
|
275
|
+
var _this$stateMatrix$hea;
|
274
276
|
if (headerLevel < 0) {
|
275
277
|
headerLevel = this.rowCoordsToLevel(headerLevel);
|
276
278
|
}
|
277
279
|
if (headerLevel === null || headerLevel >= this.getLayersCount()) {
|
278
280
|
return null;
|
279
281
|
}
|
280
|
-
return this.#stateMatrix[headerLevel]?.[columnIndex]
|
282
|
+
return (_this$stateMatrix$hea = this.#stateMatrix[headerLevel]?.[columnIndex]) != null ? _this$stateMatrix$hea : null;
|
281
283
|
}
|
282
284
|
|
283
285
|
/**
|
@@ -315,9 +317,10 @@ export default class StateManager {
|
|
315
317
|
* @returns {number}
|
316
318
|
*/
|
317
319
|
findLeftMostColumnIndex(headerLevel, columnIndex) {
|
320
|
+
var _this$getHeaderSettin;
|
318
321
|
const {
|
319
322
|
isRoot
|
320
|
-
} = this.getHeaderSettings(headerLevel, columnIndex)
|
323
|
+
} = (_this$getHeaderSettin = this.getHeaderSettings(headerLevel, columnIndex)) != null ? _this$getHeaderSettin : {
|
321
324
|
isRoot: true
|
322
325
|
};
|
323
326
|
if (isRoot) {
|
@@ -325,9 +328,10 @@ export default class StateManager {
|
|
325
328
|
}
|
326
329
|
let stepBackColumn = columnIndex - 1;
|
327
330
|
while (stepBackColumn >= 0) {
|
331
|
+
var _this$getHeaderSettin2;
|
328
332
|
const {
|
329
333
|
isRoot: isRootNode
|
330
|
-
} = this.getHeaderSettings(headerLevel, stepBackColumn)
|
334
|
+
} = (_this$getHeaderSettin2 = this.getHeaderSettings(headerLevel, stepBackColumn)) != null ? _this$getHeaderSettin2 : {
|
331
335
|
isRoot: true
|
332
336
|
};
|
333
337
|
if (isRootNode) {
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.generateMatrix = generateMatrix;
|
5
|
+
require("core-js/modules/es.array.push.js");
|
5
6
|
var _array = require("../../../helpers/array");
|
6
7
|
var _utils = require("./utils");
|
7
8
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
@@ -23,6 +23,7 @@ var _tree = require("./utils/tree");
|
|
23
23
|
* which the processed node colspan was reduced.
|
24
24
|
*/
|
25
25
|
function collapseNode(nodeToProcess) {
|
26
|
+
var _getFirstChildPropert;
|
26
27
|
const {
|
27
28
|
data: nodeData,
|
28
29
|
childs: nodeChilds
|
@@ -75,7 +76,7 @@ function collapseNode(nodeToProcess) {
|
|
75
76
|
|
76
77
|
// Calculate by how many colspan it needs to reduce the headings to match them to
|
77
78
|
// the first child colspan width.
|
78
|
-
const colspanCompensation = nodeData.colspan - ((0, _tree.getFirstChildProperty)(nodeToProcess, 'colspan')
|
79
|
+
const colspanCompensation = nodeData.colspan - ((_getFirstChildPropert = (0, _tree.getFirstChildProperty)(nodeToProcess, 'colspan')) != null ? _getFirstChildPropert : 1);
|
79
80
|
nodeToProcess.walkUp(node => {
|
80
81
|
const {
|
81
82
|
data
|
@@ -19,6 +19,7 @@ import { getFirstChildProperty, isNodeReflectsFirstChildColspan, traverseHiddenN
|
|
19
19
|
* which the processed node colspan was reduced.
|
20
20
|
*/
|
21
21
|
export function collapseNode(nodeToProcess) {
|
22
|
+
var _getFirstChildPropert;
|
22
23
|
const {
|
23
24
|
data: nodeData,
|
24
25
|
childs: nodeChilds
|
@@ -71,7 +72,7 @@ export function collapseNode(nodeToProcess) {
|
|
71
72
|
|
72
73
|
// Calculate by how many colspan it needs to reduce the headings to match them to
|
73
74
|
// the first child colspan width.
|
74
|
-
const colspanCompensation = nodeData.colspan - (getFirstChildProperty(nodeToProcess, 'colspan')
|
75
|
+
const colspanCompensation = nodeData.colspan - ((_getFirstChildPropert = getFirstChildProperty(nodeToProcess, 'colspan')) != null ? _getFirstChildPropert : 1);
|
75
76
|
nodeToProcess.walkUp(node => {
|
76
77
|
const {
|
77
78
|
data
|
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.hideColumn = hideColumn;
|
5
|
+
require("core-js/modules/es.error.cause.js");
|
6
|
+
require("core-js/modules/es.array.push.js");
|
5
7
|
var _templateLiteralTag = require("../../../../helpers/templateLiteralTag");
|
6
8
|
/**
|
7
9
|
* @param {TreeNode} nodeToProcess A tree node to process.
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.normalizeSettings = normalizeSettings;
|
5
|
+
require("core-js/modules/es.array.push.js");
|
5
6
|
var _array = require("../../../helpers/array");
|
6
7
|
var _object = require("../../../helpers/object");
|
7
8
|
var _mixed = require("../../../helpers/mixed");
|
@@ -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 _object = require("../../../helpers/object");
|
5
7
|
var _array = require("../../../helpers/array");
|
6
8
|
var _settingsNormalizer = require("./settingsNormalizer");
|
@@ -125,6 +127,7 @@ class SourceSettings {
|
|
125
127
|
* @returns {object|null}
|
126
128
|
*/
|
127
129
|
getHeaderSettings(headerLevel, columnIndex) {
|
130
|
+
var _headersSettings$colu;
|
128
131
|
if (headerLevel >= this.#dataLength || headerLevel < 0) {
|
129
132
|
return null;
|
130
133
|
}
|
@@ -132,7 +135,7 @@ class SourceSettings {
|
|
132
135
|
if (columnIndex >= headersSettings.length) {
|
133
136
|
return null;
|
134
137
|
}
|
135
|
-
return headersSettings[columnIndex]
|
138
|
+
return (_headersSettings$colu = headersSettings[columnIndex]) != null ? _headersSettings$colu : null;
|
136
139
|
}
|
137
140
|
|
138
141
|
/**
|
@@ -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 { extend, isObject } from "../../../helpers/object.mjs";
|
2
4
|
import { arrayEach } from "../../../helpers/array.mjs";
|
3
5
|
import { normalizeSettings } from "./settingsNormalizer.mjs";
|
@@ -121,6 +123,7 @@ export default class SourceSettings {
|
|
121
123
|
* @returns {object|null}
|
122
124
|
*/
|
123
125
|
getHeaderSettings(headerLevel, columnIndex) {
|
126
|
+
var _headersSettings$colu;
|
124
127
|
if (headerLevel >= this.#dataLength || headerLevel < 0) {
|
125
128
|
return null;
|
126
129
|
}
|
@@ -128,7 +131,7 @@ export default class SourceSettings {
|
|
128
131
|
if (columnIndex >= headersSettings.length) {
|
129
132
|
return null;
|
130
133
|
}
|
131
|
-
return headersSettings[columnIndex]
|
134
|
+
return (_headersSettings$colu = headersSettings[columnIndex]) != null ? _headersSettings$colu : null;
|
132
135
|
}
|
133
136
|
|
134
137
|
/**
|
@@ -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 _dataManager = _interopRequireDefault(require("./data/dataManager"));
|
6
7
|
var _collapsing = _interopRequireDefault(require("./ui/collapsing"));
|
@@ -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 _mixed = require("../../../helpers/mixed");
|
5
6
|
var _console = require("../../../helpers/console");
|
6
7
|
var _templateLiteralTag = require("../../../helpers/templateLiteralTag");
|
package/plugins/registry.js
CHANGED
@@ -5,6 +5,7 @@ exports.getPlugin = getPlugin;
|
|
5
5
|
exports.getPluginsNames = getPluginsNames;
|
6
6
|
exports.hasPlugin = hasPlugin;
|
7
7
|
exports.registerPlugin = registerPlugin;
|
8
|
+
require("core-js/modules/es.error.cause.js");
|
8
9
|
var _string = require("../helpers/string");
|
9
10
|
var _priorityMap = require("../utils/dataStructures/priorityMap");
|
10
11
|
var _uniqueMap = require("../utils/dataStructures/uniqueMap");
|
package/plugins/registry.mjs
CHANGED
package/plugins/search/search.js
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.checkboxRenderer = checkboxRenderer;
|
5
|
+
require("core-js/modules/es.array.push.js");
|
5
6
|
var _baseRenderer = require("../baseRenderer");
|
6
7
|
var _eventManager = _interopRequireDefault(require("../../eventManager"));
|
7
8
|
var _element = require("../../helpers/dom/element");
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.numericRenderer = numericRenderer;
|
5
|
+
require("core-js/modules/es.array.push.js");
|
5
6
|
var _numbro = _interopRequireDefault(require("numbro"));
|
6
7
|
var _textRenderer = require("../textRenderer");
|
7
8
|
var _number = require("../../helpers/number");
|
package/renderers/registry.js
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.getRenderer = _getItem;
|
5
5
|
exports.registerRenderer = _register;
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
6
7
|
var _staticRegister = _interopRequireDefault(require("../utils/staticRegister"));
|
7
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
8
9
|
const {
|
package/renderers/registry.mjs
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import "core-js/modules/es.array.push.js";
|
1
2
|
import { createHighlight } from "./types/index.mjs";
|
2
3
|
import { ACTIVE_HEADER_TYPE, AREA_TYPE, CELL_TYPE, CUSTOM_SELECTION_TYPE, FILL_TYPE, HEADER_TYPE } from "./constants.mjs";
|
3
4
|
import { arrayEach } from "./../../helpers/array.mjs";
|
package/selection/range.js
CHANGED
package/selection/range.mjs
CHANGED
package/selection/selection.js
CHANGED
@@ -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 _highlight = _interopRequireDefault(require("./highlight/highlight"));
|
5
6
|
var _constants = require("./highlight/constants");
|
6
7
|
var _range = _interopRequireDefault(require("./range"));
|
package/selection/selection.mjs
CHANGED
package/selection/utils.js
CHANGED
@@ -6,6 +6,8 @@ exports.isValidCoord = isValidCoord;
|
|
6
6
|
exports.normalizeSelectionFactory = normalizeSelectionFactory;
|
7
7
|
exports.transformSelectionToColumnDistance = transformSelectionToColumnDistance;
|
8
8
|
exports.transformSelectionToRowDistance = transformSelectionToRowDistance;
|
9
|
+
require("core-js/modules/es.error.cause.js");
|
10
|
+
require("core-js/modules/es.array.push.js");
|
9
11
|
var _src = require("./../3rdparty/walkontable/src");
|
10
12
|
var _array = require("./../helpers/array");
|
11
13
|
var _mixed = require("./../helpers/mixed");
|
package/selection/utils.mjs
CHANGED
@@ -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 { CellRange } from "./../3rdparty/walkontable/src/index.mjs";
|
2
4
|
import { arrayEach, arrayReduce } from "./../helpers/array.mjs";
|
3
5
|
import { isUndefined } from "./../helpers/mixed.mjs";
|
package/shortcuts/context.js
CHANGED
@@ -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 _uniqueMap = require("../utils/dataStructures/uniqueMap");
|
5
7
|
var _utils = require("./utils");
|
6
8
|
var _mixed = require("../helpers/mixed");
|
package/shortcuts/context.mjs
CHANGED
@@ -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 { createUniqueMap } from "../utils/dataStructures/uniqueMap.mjs";
|
2
4
|
import { normalizeKeys, getKeysList } from "./utils.mjs";
|
3
5
|
import { isUndefined, isDefined } from "../helpers/mixed.mjs";
|
package/shortcuts/recorder.js
CHANGED
package/shortcuts/recorder.mjs
CHANGED
package/tableView.js
CHANGED
@@ -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 _eventManager = _interopRequireDefault(require("./eventManager"));
|
6
7
|
var _event = require("./helpers/dom/event");
|
@@ -773,7 +774,7 @@ class TableView {
|
|
773
774
|
if (selectionRangeSize > 0) {
|
774
775
|
// Selection layers are stored from the "oldest" to the "newest". We should calculate the offset.
|
775
776
|
// Please look at the `SelectedRange` class and it's method for getting selection's layer for more information.
|
776
|
-
const selectionOffset = (layerLevel
|
777
|
+
const selectionOffset = (layerLevel != null ? layerLevel : 0) + 1 - selectionRangeSize;
|
777
778
|
const selectionForLayer = selectedRange.peekByIndex(selectionOffset);
|
778
779
|
cornersOfSelection = [selectionForLayer.from.row, selectionForLayer.from.col, selectionForLayer.to.row, selectionForLayer.to.col];
|
779
780
|
}
|
@@ -926,7 +927,8 @@ class TableView {
|
|
926
927
|
* @returns {boolean}
|
927
928
|
*/
|
928
929
|
isSelectedOnlyCell() {
|
929
|
-
|
930
|
+
var _this$instance$getSel;
|
931
|
+
return (_this$instance$getSel = this.instance.getSelectedRangeLast()?.isSingle()) != null ? _this$instance$getSel : false;
|
930
932
|
}
|
931
933
|
|
932
934
|
/**
|
package/tableView.mjs
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import "core-js/modules/es.array.push.js";
|
1
2
|
import { addClass, clearTextSelection, empty, fastInnerHTML, fastInnerText, getScrollbarWidth, hasClass, isChildOf, isInput, isOutsideInput } from "./helpers/dom/element.mjs";
|
2
3
|
import EventManager from "./eventManager.mjs";
|
3
4
|
import { isImmediatePropagationStopped, isRightClick, isLeftClick } from "./helpers/dom/event.mjs";
|
@@ -769,7 +770,7 @@ class TableView {
|
|
769
770
|
if (selectionRangeSize > 0) {
|
770
771
|
// Selection layers are stored from the "oldest" to the "newest". We should calculate the offset.
|
771
772
|
// Please look at the `SelectedRange` class and it's method for getting selection's layer for more information.
|
772
|
-
const selectionOffset = (layerLevel
|
773
|
+
const selectionOffset = (layerLevel != null ? layerLevel : 0) + 1 - selectionRangeSize;
|
773
774
|
const selectionForLayer = selectedRange.peekByIndex(selectionOffset);
|
774
775
|
cornersOfSelection = [selectionForLayer.from.row, selectionForLayer.from.col, selectionForLayer.to.row, selectionForLayer.to.col];
|
775
776
|
}
|
@@ -922,7 +923,8 @@ class TableView {
|
|
922
923
|
* @returns {boolean}
|
923
924
|
*/
|
924
925
|
isSelectedOnlyCell() {
|
925
|
-
|
926
|
+
var _this$instance$getSel;
|
927
|
+
return (_this$instance$getSel = this.instance.getSelectedRangeLast()?.isSingle()) != null ? _this$instance$getSel : false;
|
926
928
|
}
|
927
929
|
|
928
930
|
/**
|
@@ -57,7 +57,7 @@ class ChangesObservable {
|
|
57
57
|
let {
|
58
58
|
initialIndexValue
|
59
59
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
60
|
-
this.#initialIndexValue = initialIndexValue
|
60
|
+
this.#initialIndexValue = initialIndexValue != null ? initialIndexValue : false;
|
61
61
|
}
|
62
62
|
|
63
63
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
@@ -54,7 +54,7 @@ export class ChangesObservable {
|
|
54
54
|
let {
|
55
55
|
initialIndexValue
|
56
56
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
57
|
-
this.#initialIndexValue = initialIndexValue
|
57
|
+
this.#initialIndexValue = initialIndexValue != null ? initialIndexValue : false;
|
58
58
|
}
|
59
59
|
|
60
60
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.arrayDiff = arrayDiff;
|
5
|
+
require("core-js/modules/es.array.push.js");
|
5
6
|
/**
|
6
7
|
* An array diff implementation. The function iterates through the arrays and depends
|
7
8
|
* on the diff results, collect the changes as a list of the objects.
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import "core-js/modules/es.error.cause.js";
|
1
2
|
import { arrayMap } from "../helpers/array.mjs";
|
2
3
|
import { createIndexMap, getListWithInsertedItems, getListWithRemovedItems, HidingMap, IndexesSequence, TrimmingMap } from "./maps/index.mjs";
|
3
4
|
import { AggregatedCollection, MapCollection } from "./mapCollections/index.mjs";
|