handsontable 0.0.0-next-b66c79f-20230713 → 0.0.0-next-08765b9-20230714
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/cell/coords.d.ts +6 -1
- package/3rdparty/walkontable/src/cell/coords.js +87 -33
- package/3rdparty/walkontable/src/cell/coords.mjs +87 -33
- package/3rdparty/walkontable/src/cell/range.d.ts +9 -2
- package/3rdparty/walkontable/src/cell/range.js +92 -46
- package/3rdparty/walkontable/src/cell/range.mjs +92 -46
- package/3rdparty/walkontable/src/core/_base.js +41 -33
- package/3rdparty/walkontable/src/core/_base.mjs +41 -33
- package/3rdparty/walkontable/src/core/clone.js +8 -5
- package/3rdparty/walkontable/src/core/clone.mjs +8 -5
- package/3rdparty/walkontable/src/core/core.js +3 -2
- package/3rdparty/walkontable/src/core/core.mjs +3 -2
- package/3rdparty/walkontable/src/event.js +9 -8
- package/3rdparty/walkontable/src/event.mjs +9 -8
- package/3rdparty/walkontable/src/facade/core.js +2 -2
- package/3rdparty/walkontable/src/facade/core.mjs +2 -2
- package/3rdparty/walkontable/src/index.js +10 -2
- package/3rdparty/walkontable/src/index.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/_base.js +11 -9
- package/3rdparty/walkontable/src/overlay/_base.mjs +11 -9
- package/3rdparty/walkontable/src/overlay/bottom.js +10 -8
- package/3rdparty/walkontable/src/overlay/bottom.mjs +10 -8
- package/3rdparty/walkontable/src/overlay/inlineStart.js +2 -6
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +2 -6
- package/3rdparty/walkontable/src/overlay/top.js +12 -14
- package/3rdparty/walkontable/src/overlay/top.mjs +12 -14
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +16 -13
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +16 -13
- package/3rdparty/walkontable/src/overlays.js +75 -80
- package/3rdparty/walkontable/src/overlays.mjs +75 -80
- package/3rdparty/walkontable/src/scroll.js +27 -24
- package/3rdparty/walkontable/src/scroll.mjs +27 -24
- package/3rdparty/walkontable/src/{border.js → selection/border/border.js} +7 -12
- package/3rdparty/walkontable/src/{border.mjs → selection/border/border.mjs} +7 -12
- package/3rdparty/walkontable/src/selection/border/constants.js +16 -0
- package/3rdparty/walkontable/src/selection/border/constants.mjs +12 -0
- package/3rdparty/walkontable/src/selection/constants.js +62 -0
- package/3rdparty/walkontable/src/selection/constants.mjs +51 -0
- package/3rdparty/walkontable/src/selection/index.js +26 -0
- package/3rdparty/walkontable/src/selection/index.mjs +5 -0
- package/3rdparty/walkontable/src/selection/manager.js +259 -0
- package/3rdparty/walkontable/src/selection/manager.mjs +254 -0
- package/3rdparty/walkontable/src/selection/scanner.js +270 -0
- package/3rdparty/walkontable/src/selection/scanner.mjs +267 -0
- package/3rdparty/walkontable/src/selection/selection.js +101 -0
- package/3rdparty/walkontable/src/selection/selection.mjs +96 -0
- package/3rdparty/walkontable/src/settings.js +18 -17
- package/3rdparty/walkontable/src/settings.mjs +18 -17
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +9 -0
- package/3rdparty/walkontable/src/table.js +48 -115
- package/3rdparty/walkontable/src/table.mjs +49 -116
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core/focusCatcher/focusDetector.js +58 -0
- package/core/focusCatcher/focusDetector.mjs +54 -0
- package/core/focusCatcher/index.js +142 -0
- package/core/focusCatcher/index.mjs +138 -0
- package/core/index.js +9 -0
- package/core/index.mjs +1 -0
- package/core.d.ts +6 -3
- package/core.js +181 -298
- package/core.mjs +181 -298
- package/dataMap/metaManager/metaLayers/cellMeta.js +2 -1
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +2 -1
- package/dataMap/metaManager/metaLayers/globalMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/globalMeta.mjs +1 -1
- package/dataMap/metaManager/metaSchema.js +41 -0
- package/dataMap/metaManager/metaSchema.mjs +41 -0
- package/dataMap/metaManager/mods/dynamicCellMeta.js +3 -2
- package/dataMap/metaManager/mods/dynamicCellMeta.mjs +3 -2
- package/dataMap/metaManager/utils.js +4 -2
- package/dataMap/metaManager/utils.mjs +4 -2
- package/dist/handsontable.css +19 -3
- package/dist/handsontable.full.css +19 -3
- package/dist/handsontable.full.js +10739 -7037
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +25 -25
- package/dist/handsontable.js +24884 -21182
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +19 -19
- package/editorManager.js +11 -75
- package/editorManager.mjs +11 -74
- package/editors/autocompleteEditor/autocompleteEditor.js +70 -67
- package/editors/autocompleteEditor/autocompleteEditor.mjs +70 -67
- package/editors/baseEditor/baseEditor.js +1 -1
- package/editors/baseEditor/baseEditor.mjs +1 -1
- package/editors/dateEditor/dateEditor.js +2 -1
- package/editors/dateEditor/dateEditor.mjs +2 -1
- package/editors/textEditor/textEditor.js +3 -11
- package/editors/textEditor/textEditor.mjs +4 -12
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/helpers/number.d.ts +1 -0
- package/helpers/number.js +18 -0
- package/helpers/number.mjs +17 -0
- package/helpers/object.js +1 -0
- package/helpers/object.mjs +1 -0
- package/index.js +5 -5
- package/index.mjs +5 -5
- package/package.json +1 -1
- package/pluginHooks.d.ts +7 -1
- package/pluginHooks.js +106 -1
- package/pluginHooks.mjs +106 -1
- package/plugins/autoColumnSize/autoColumnSize.js +4 -1
- package/plugins/autoColumnSize/autoColumnSize.mjs +4 -1
- package/plugins/collapsibleColumns/collapsibleColumns.js +110 -40
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +110 -40
- package/plugins/columnSorting/columnSorting.js +40 -1
- package/plugins/columnSorting/columnSorting.mjs +40 -3
- package/plugins/columnSorting/columnStatesManager.js +2 -1
- package/plugins/columnSorting/columnStatesManager.mjs +2 -1
- package/plugins/columnSorting/index.js +3 -1
- package/plugins/columnSorting/index.mjs +1 -1
- package/plugins/comments/commentEditor.js +1 -0
- package/plugins/comments/commentEditor.mjs +1 -0
- package/plugins/comments/comments.js +253 -191
- package/plugins/comments/comments.mjs +252 -192
- package/plugins/comments/contextMenuItem/addEditComment.js +41 -0
- package/plugins/comments/contextMenuItem/addEditComment.mjs +35 -0
- package/plugins/comments/contextMenuItem/readOnlyComment.js +49 -0
- package/plugins/comments/contextMenuItem/readOnlyComment.mjs +43 -0
- package/plugins/comments/contextMenuItem/removeComment.js +38 -0
- package/plugins/comments/contextMenuItem/removeComment.mjs +32 -0
- package/plugins/contextMenu/contextMenu.d.ts +1 -1
- package/plugins/contextMenu/contextMenu.js +72 -30
- package/plugins/contextMenu/contextMenu.mjs +73 -31
- package/plugins/contextMenu/predefinedItems/alignment.js +7 -0
- package/plugins/contextMenu/predefinedItems/alignment.mjs +7 -0
- package/plugins/contextMenu/predefinedItems/clearColumn.js +5 -3
- package/plugins/contextMenu/predefinedItems/clearColumn.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/columnLeft.js +5 -3
- package/plugins/contextMenu/predefinedItems/columnLeft.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/columnRight.js +5 -3
- package/plugins/contextMenu/predefinedItems/columnRight.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/readOnly.js +7 -0
- package/plugins/contextMenu/predefinedItems/readOnly.mjs +7 -0
- package/plugins/contextMenu/predefinedItems/removeColumn.js +7 -5
- package/plugins/contextMenu/predefinedItems/removeColumn.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/removeRow.js +7 -5
- package/plugins/contextMenu/predefinedItems/removeRow.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/rowAbove.js +5 -3
- package/plugins/contextMenu/predefinedItems/rowAbove.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/rowBelow.js +5 -3
- package/plugins/contextMenu/predefinedItems/rowBelow.mjs +5 -3
- package/plugins/contextMenu/utils.js +28 -16
- package/plugins/contextMenu/utils.mjs +27 -15
- package/plugins/copyPaste/contextMenuItem/copy.js +7 -0
- package/plugins/copyPaste/contextMenuItem/copy.mjs +7 -0
- package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.js +9 -1
- package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.mjs +9 -1
- package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.js +9 -1
- package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.mjs +9 -1
- package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.js +9 -1
- package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.mjs +9 -1
- package/plugins/copyPaste/contextMenuItem/cut.js +7 -0
- package/plugins/copyPaste/contextMenuItem/cut.mjs +7 -0
- package/plugins/copyPaste/copyPaste.js +12 -6
- package/plugins/copyPaste/copyPaste.mjs +12 -6
- package/plugins/customBorders/customBorders.js +36 -29
- package/plugins/customBorders/customBorders.mjs +37 -30
- package/plugins/customBorders/utils.js +3 -3
- package/plugins/customBorders/utils.mjs +3 -3
- package/plugins/dropdownMenu/dropdownMenu.d.ts +1 -1
- package/plugins/dropdownMenu/dropdownMenu.js +89 -32
- package/plugins/dropdownMenu/dropdownMenu.mjs +89 -32
- package/plugins/filters/conditionCollection.js +6 -5
- package/plugins/filters/conditionCollection.mjs +6 -5
- package/plugins/filters/filters.js +44 -21
- package/plugins/filters/filters.mjs +43 -20
- package/plugins/formulas/engine/register.js +3 -3
- package/plugins/formulas/engine/register.mjs +3 -3
- package/plugins/formulas/engine/settings.js +6 -3
- package/plugins/formulas/engine/settings.mjs +6 -3
- package/plugins/formulas/formulas.js +151 -143
- package/plugins/formulas/formulas.mjs +151 -143
- package/plugins/formulas/indexSyncer/axisSyncer.js +115 -79
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +115 -79
- package/plugins/formulas/indexSyncer/index.js +100 -64
- package/plugins/formulas/indexSyncer/index.mjs +100 -64
- package/plugins/hiddenColumns/contextMenuItem/showColumn.js +2 -2
- package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +2 -2
- package/plugins/hiddenColumns/hiddenColumns.js +51 -34
- package/plugins/hiddenColumns/hiddenColumns.mjs +51 -34
- package/plugins/hiddenRows/contextMenuItem/showRow.js +2 -2
- package/plugins/hiddenRows/contextMenuItem/showRow.mjs +2 -2
- package/plugins/hiddenRows/hiddenRows.js +50 -33
- package/plugins/hiddenRows/hiddenRows.mjs +50 -33
- package/plugins/manualRowResize/manualRowResize.js +2 -1
- package/plugins/manualRowResize/manualRowResize.mjs +2 -1
- package/plugins/mergeCells/mergeCells.js +6 -17
- package/plugins/mergeCells/mergeCells.mjs +6 -17
- package/plugins/multiColumnSorting/multiColumnSorting.js +37 -2
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +37 -2
- package/plugins/nestedHeaders/nestedHeaders.js +209 -75
- package/plugins/nestedHeaders/nestedHeaders.mjs +208 -74
- package/plugins/nestedHeaders/stateManager/headersTree.js +58 -38
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +58 -38
- package/plugins/nestedHeaders/stateManager/index.js +107 -49
- package/plugins/nestedHeaders/stateManager/index.mjs +105 -47
- package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.js +1 -1
- package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.mjs +1 -1
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +57 -37
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +57 -37
- package/plugins/nestedHeaders/utils/ghostTable.js +39 -35
- package/plugins/nestedHeaders/utils/ghostTable.mjs +39 -35
- package/plugins/nestedRows/data/dataManager.js +4 -2
- package/plugins/nestedRows/data/dataManager.mjs +4 -2
- package/plugins/nestedRows/nestedRows.js +41 -0
- package/plugins/nestedRows/nestedRows.mjs +41 -0
- package/plugins/persistentState/storage.js +1 -0
- package/plugins/persistentState/storage.mjs +1 -0
- package/plugins/undoRedo/undoRedo.js +2 -1
- package/plugins/undoRedo/undoRedo.mjs +2 -1
- package/renderers/checkboxRenderer/checkboxRenderer.js +2 -2
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +1 -1
- package/selection/highlight/highlight.js +256 -71
- package/selection/highlight/highlight.mjs +250 -71
- package/selection/highlight/types/activeHeader.js +10 -8
- package/selection/highlight/types/activeHeader.mjs +10 -8
- package/selection/highlight/types/area.js +6 -18
- package/selection/highlight/types/area.mjs +6 -18
- package/selection/highlight/types/areaLayered.js +31 -0
- package/selection/highlight/types/areaLayered.mjs +26 -0
- package/selection/highlight/types/column.js +27 -0
- package/selection/highlight/types/column.mjs +22 -0
- package/selection/highlight/types/customSelection.js +7 -9
- package/selection/highlight/types/customSelection.mjs +7 -9
- package/selection/highlight/types/fill.js +5 -7
- package/selection/highlight/types/fill.mjs +5 -7
- package/selection/highlight/types/{cell.js → focus.js} +5 -7
- package/selection/highlight/types/{cell.mjs → focus.mjs} +5 -7
- package/selection/highlight/types/header.js +9 -18
- package/selection/highlight/types/header.mjs +9 -18
- package/selection/highlight/types/row.js +27 -0
- package/selection/highlight/types/row.mjs +22 -0
- package/selection/highlight/visualSelection.js +41 -33
- package/selection/highlight/visualSelection.mjs +41 -33
- package/selection/index.js +4 -7
- package/selection/index.mjs +2 -3
- package/selection/mouseEventHandler.js +1 -1
- package/selection/mouseEventHandler.mjs +1 -1
- package/selection/range.js +8 -8
- package/selection/range.mjs +8 -8
- package/selection/selection.js +290 -154
- package/selection/selection.mjs +287 -153
- package/selection/transformation.js +232 -90
- package/selection/transformation.mjs +232 -90
- package/selection/utils.js +15 -21
- package/selection/utils.mjs +16 -21
- package/settings.d.ts +2 -0
- package/shortcutContexts/commands/editor/closeAndSave.js +12 -0
- package/shortcutContexts/commands/editor/closeAndSave.mjs +8 -0
- package/shortcutContexts/commands/editor/closeWithoutSaving.js +12 -0
- package/shortcutContexts/commands/editor/closeWithoutSaving.mjs +8 -0
- package/shortcutContexts/commands/editor/fastOpen.js +16 -0
- package/shortcutContexts/commands/editor/fastOpen.mjs +12 -0
- package/shortcutContexts/commands/editor/index.js +16 -0
- package/shortcutContexts/commands/editor/index.mjs +12 -0
- package/shortcutContexts/commands/editor/open.js +27 -0
- package/shortcutContexts/commands/editor/open.mjs +23 -0
- package/shortcutContexts/commands/emptySelectedCells.js +11 -0
- package/shortcutContexts/commands/emptySelectedCells.mjs +7 -0
- package/shortcutContexts/commands/extendCellsSelection/down.js +15 -0
- package/shortcutContexts/commands/extendCellsSelection/down.mjs +11 -0
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +21 -0
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +17 -0
- package/shortcutContexts/commands/extendCellsSelection/index.js +26 -0
- package/shortcutContexts/commands/extendCellsSelection/index.mjs +22 -0
- package/shortcutContexts/commands/extendCellsSelection/left.js +15 -0
- package/shortcutContexts/commands/extendCellsSelection/left.mjs +11 -0
- package/shortcutContexts/commands/extendCellsSelection/right.js +15 -0
- package/shortcutContexts/commands/extendCellsSelection/right.mjs +11 -0
- package/shortcutContexts/commands/extendCellsSelection/toColumns.js +19 -0
- package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +15 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +29 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +25 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +19 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +15 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +19 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +15 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +29 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +25 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +29 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +25 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +29 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +25 -0
- package/shortcutContexts/commands/extendCellsSelection/toRows.js +19 -0
- package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +15 -0
- package/shortcutContexts/commands/extendCellsSelection/up.js +15 -0
- package/shortcutContexts/commands/extendCellsSelection/up.mjs +11 -0
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +21 -0
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +17 -0
- package/shortcutContexts/commands/index.js +35 -0
- package/shortcutContexts/commands/index.mjs +31 -0
- package/shortcutContexts/commands/moveCellSelection/down.js +13 -0
- package/shortcutContexts/commands/moveCellSelection/down.mjs +9 -0
- package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.js +31 -0
- package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.mjs +27 -0
- package/shortcutContexts/commands/moveCellSelection/index.js +28 -0
- package/shortcutContexts/commands/moveCellSelection/index.mjs +24 -0
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +12 -0
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +8 -0
- package/shortcutContexts/commands/moveCellSelection/inlineStart.js +12 -0
- package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +8 -0
- package/shortcutContexts/commands/moveCellSelection/left.js +10 -0
- package/shortcutContexts/commands/moveCellSelection/left.mjs +6 -0
- package/shortcutContexts/commands/moveCellSelection/right.js +10 -0
- package/shortcutContexts/commands/moveCellSelection/right.mjs +6 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottom.js +17 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottom.mjs +13 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.js +18 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.mjs +14 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.js +14 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.mjs +10 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.js +17 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.mjs +13 -0
- package/shortcutContexts/commands/moveCellSelection/toMostLeft.js +19 -0
- package/shortcutContexts/commands/moveCellSelection/toMostLeft.mjs +15 -0
- package/shortcutContexts/commands/moveCellSelection/toMostRight.js +21 -0
- package/shortcutContexts/commands/moveCellSelection/toMostRight.mjs +17 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTop.js +17 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTop.mjs +13 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.js +19 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.mjs +15 -0
- package/shortcutContexts/commands/moveCellSelection/up.js +13 -0
- package/shortcutContexts/commands/moveCellSelection/up.mjs +9 -0
- package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.js +31 -0
- package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.mjs +27 -0
- package/shortcutContexts/commands/populateSelectedCellsData.js +29 -0
- package/shortcutContexts/commands/populateSelectedCellsData.mjs +25 -0
- package/shortcutContexts/commands/scrollToFocusedCell.js +36 -0
- package/shortcutContexts/commands/scrollToFocusedCell.mjs +32 -0
- package/shortcutContexts/commands/selectAll.js +10 -0
- package/shortcutContexts/commands/selectAll.mjs +6 -0
- package/shortcutContexts/constants.js +13 -0
- package/shortcutContexts/constants.mjs +8 -0
- package/shortcutContexts/editor.js +25 -0
- package/shortcutContexts/editor.mjs +21 -0
- package/shortcutContexts/grid.js +163 -0
- package/shortcutContexts/grid.mjs +159 -0
- package/shortcutContexts/index.js +24 -0
- package/shortcutContexts/index.mjs +11 -0
- package/shortcuts/manager.js +2 -0
- package/shortcuts/manager.mjs +2 -0
- package/shortcuts/recorder.js +2 -2
- package/shortcuts/recorder.mjs +2 -2
- package/shortcuts/utils.js +19 -5
- package/shortcuts/utils.mjs +18 -4
- package/tableView.js +163 -91
- package/tableView.mjs +163 -91
- package/translations/changesObservable/observable.js +82 -54
- package/translations/changesObservable/observable.mjs +82 -54
- package/translations/changesObservable/observer.js +24 -11
- package/translations/changesObservable/observer.mjs +24 -11
- package/translations/maps/linkedPhysicalIndexToValueMap.js +14 -8
- package/translations/maps/linkedPhysicalIndexToValueMap.mjs +14 -8
- package/utils/dataStructures/tree.js +21 -18
- package/utils/dataStructures/tree.mjs +21 -18
- package/3rdparty/walkontable/src/selection.js +0 -295
- package/3rdparty/walkontable/src/selection.mjs +0 -290
- package/selection/highlight/constants.js +0 -15
- package/selection/highlight/constants.mjs +0 -6
- package/selection/highlight/types/index.js +0 -35
- package/selection/highlight/types/index.mjs +0 -31
@@ -1,8 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/es.error.cause.js");
|
4
5
|
var _axisSyncer = _interopRequireDefault(require("./axisSyncer"));
|
5
6
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
7
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
8
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
9
|
+
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
10
|
+
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
11
|
+
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
12
|
+
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
13
|
+
function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
|
6
14
|
/**
|
7
15
|
* @private
|
8
16
|
* @class IndexSyncer
|
@@ -12,60 +20,88 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
12
20
|
* on HF's.
|
13
21
|
*
|
14
22
|
*/
|
23
|
+
var _rowIndexSyncer = /*#__PURE__*/new WeakMap();
|
24
|
+
var _columnIndexSyncer = /*#__PURE__*/new WeakMap();
|
25
|
+
var _postponeAction = /*#__PURE__*/new WeakMap();
|
26
|
+
var _isPerformingUndo = /*#__PURE__*/new WeakMap();
|
27
|
+
var _isPerformingRedo = /*#__PURE__*/new WeakMap();
|
28
|
+
var _engine = /*#__PURE__*/new WeakMap();
|
29
|
+
var _sheetId = /*#__PURE__*/new WeakMap();
|
15
30
|
class IndexSyncer {
|
16
|
-
/**
|
17
|
-
* Indexes synchronizer for the axis of the rows.
|
18
|
-
*
|
19
|
-
* @private
|
20
|
-
* @type {AxisSyncer}
|
21
|
-
*/
|
22
|
-
#rowIndexSyncer;
|
23
|
-
/**
|
24
|
-
* Indexes synchronizer for the axis of the columns.
|
25
|
-
*
|
26
|
-
* @private
|
27
|
-
* @type {AxisSyncer}
|
28
|
-
*/
|
29
|
-
#columnIndexSyncer;
|
30
|
-
/**
|
31
|
-
* Method which will postpone execution of some action (needed when synchronization endpoint isn't setup yet).
|
32
|
-
*
|
33
|
-
* @private
|
34
|
-
* @type {Function}
|
35
|
-
*/
|
36
|
-
#postponeAction;
|
37
|
-
/**
|
38
|
-
* Flag informing whether undo is already performed (we don't perform synchronization in such case).
|
39
|
-
*
|
40
|
-
* @private
|
41
|
-
* @type {boolean}
|
42
|
-
*/
|
43
|
-
#isPerformingUndo = false;
|
44
|
-
/**
|
45
|
-
* Flag informing whether redo is already performed (we don't perform synchronization in such case).
|
46
|
-
*
|
47
|
-
* @private
|
48
|
-
* @type {boolean}
|
49
|
-
*/
|
50
|
-
#isPerformingRedo = false;
|
51
|
-
/**
|
52
|
-
* The HF's engine instance which will be synced.
|
53
|
-
*
|
54
|
-
* @private
|
55
|
-
* @type {HyperFormula|null}
|
56
|
-
*/
|
57
|
-
#engine = null;
|
58
|
-
/**
|
59
|
-
* HyperFormula's sheet name.
|
60
|
-
*
|
61
|
-
* @private
|
62
|
-
* @type {string|null}
|
63
|
-
*/
|
64
|
-
#sheetId = null;
|
65
31
|
constructor(rowIndexMapper, columnIndexMapper, postponeAction) {
|
66
|
-
|
67
|
-
|
68
|
-
|
32
|
+
/**
|
33
|
+
* Indexes synchronizer for the axis of the rows.
|
34
|
+
*
|
35
|
+
* @private
|
36
|
+
* @type {AxisSyncer}
|
37
|
+
*/
|
38
|
+
_classPrivateFieldInitSpec(this, _rowIndexSyncer, {
|
39
|
+
writable: true,
|
40
|
+
value: void 0
|
41
|
+
});
|
42
|
+
/**
|
43
|
+
* Indexes synchronizer for the axis of the columns.
|
44
|
+
*
|
45
|
+
* @private
|
46
|
+
* @type {AxisSyncer}
|
47
|
+
*/
|
48
|
+
_classPrivateFieldInitSpec(this, _columnIndexSyncer, {
|
49
|
+
writable: true,
|
50
|
+
value: void 0
|
51
|
+
});
|
52
|
+
/**
|
53
|
+
* Method which will postpone execution of some action (needed when synchronization endpoint isn't setup yet).
|
54
|
+
*
|
55
|
+
* @private
|
56
|
+
* @type {Function}
|
57
|
+
*/
|
58
|
+
_classPrivateFieldInitSpec(this, _postponeAction, {
|
59
|
+
writable: true,
|
60
|
+
value: void 0
|
61
|
+
});
|
62
|
+
/**
|
63
|
+
* Flag informing whether undo is already performed (we don't perform synchronization in such case).
|
64
|
+
*
|
65
|
+
* @private
|
66
|
+
* @type {boolean}
|
67
|
+
*/
|
68
|
+
_classPrivateFieldInitSpec(this, _isPerformingUndo, {
|
69
|
+
writable: true,
|
70
|
+
value: false
|
71
|
+
});
|
72
|
+
/**
|
73
|
+
* Flag informing whether redo is already performed (we don't perform synchronization in such case).
|
74
|
+
*
|
75
|
+
* @private
|
76
|
+
* @type {boolean}
|
77
|
+
*/
|
78
|
+
_classPrivateFieldInitSpec(this, _isPerformingRedo, {
|
79
|
+
writable: true,
|
80
|
+
value: false
|
81
|
+
});
|
82
|
+
/**
|
83
|
+
* The HF's engine instance which will be synced.
|
84
|
+
*
|
85
|
+
* @private
|
86
|
+
* @type {HyperFormula|null}
|
87
|
+
*/
|
88
|
+
_classPrivateFieldInitSpec(this, _engine, {
|
89
|
+
writable: true,
|
90
|
+
value: null
|
91
|
+
});
|
92
|
+
/**
|
93
|
+
* HyperFormula's sheet name.
|
94
|
+
*
|
95
|
+
* @private
|
96
|
+
* @type {string|null}
|
97
|
+
*/
|
98
|
+
_classPrivateFieldInitSpec(this, _sheetId, {
|
99
|
+
writable: true,
|
100
|
+
value: null
|
101
|
+
});
|
102
|
+
_classPrivateFieldSet(this, _rowIndexSyncer, new _axisSyncer.default('row', rowIndexMapper, this));
|
103
|
+
_classPrivateFieldSet(this, _columnIndexSyncer, new _axisSyncer.default('column', columnIndexMapper, this));
|
104
|
+
_classPrivateFieldSet(this, _postponeAction, postponeAction);
|
69
105
|
}
|
70
106
|
|
71
107
|
/**
|
@@ -76,9 +112,9 @@ class IndexSyncer {
|
|
76
112
|
*/
|
77
113
|
getForAxis(indexType) {
|
78
114
|
if (indexType === 'row') {
|
79
|
-
return this
|
115
|
+
return _classPrivateFieldGet(this, _rowIndexSyncer);
|
80
116
|
}
|
81
|
-
return this
|
117
|
+
return _classPrivateFieldGet(this, _columnIndexSyncer);
|
82
118
|
}
|
83
119
|
|
84
120
|
/**
|
@@ -87,7 +123,7 @@ class IndexSyncer {
|
|
87
123
|
* @param {boolean} flagValue Boolean value for the flag.
|
88
124
|
*/
|
89
125
|
setPerformUndo(flagValue) {
|
90
|
-
this
|
126
|
+
_classPrivateFieldSet(this, _isPerformingUndo, flagValue);
|
91
127
|
}
|
92
128
|
|
93
129
|
/**
|
@@ -96,7 +132,7 @@ class IndexSyncer {
|
|
96
132
|
* @param {boolean} flagValue Boolean value for the flag.
|
97
133
|
*/
|
98
134
|
setPerformRedo(flagValue) {
|
99
|
-
this
|
135
|
+
_classPrivateFieldSet(this, _isPerformingRedo, flagValue);
|
100
136
|
}
|
101
137
|
|
102
138
|
/**
|
@@ -106,7 +142,7 @@ class IndexSyncer {
|
|
106
142
|
* @returns {boolean}
|
107
143
|
*/
|
108
144
|
isPerformingUndoRedo() {
|
109
|
-
return this
|
145
|
+
return _classPrivateFieldGet(this, _isPerformingUndo) || _classPrivateFieldGet(this, _isPerformingRedo);
|
110
146
|
}
|
111
147
|
|
112
148
|
/**
|
@@ -115,7 +151,7 @@ class IndexSyncer {
|
|
115
151
|
* @returns {string|null}
|
116
152
|
*/
|
117
153
|
getSheetId() {
|
118
|
-
return this
|
154
|
+
return _classPrivateFieldGet(this, _sheetId);
|
119
155
|
}
|
120
156
|
|
121
157
|
/**
|
@@ -124,7 +160,7 @@ class IndexSyncer {
|
|
124
160
|
* @type {HyperFormula|null}
|
125
161
|
*/
|
126
162
|
getEngine() {
|
127
|
-
return this
|
163
|
+
return _classPrivateFieldGet(this, _engine);
|
128
164
|
}
|
129
165
|
|
130
166
|
/**
|
@@ -133,7 +169,7 @@ class IndexSyncer {
|
|
133
169
|
* @returns {Function}
|
134
170
|
*/
|
135
171
|
getPostponeAction() {
|
136
|
-
return this
|
172
|
+
return _classPrivateFieldGet(this, _postponeAction);
|
137
173
|
}
|
138
174
|
|
139
175
|
/**
|
@@ -143,10 +179,10 @@ class IndexSyncer {
|
|
143
179
|
* @param {string|null} sheetId HyperFormula's sheet name.
|
144
180
|
*/
|
145
181
|
setupSyncEndpoint(engine, sheetId) {
|
146
|
-
this
|
147
|
-
this
|
148
|
-
this
|
149
|
-
this
|
182
|
+
_classPrivateFieldSet(this, _engine, engine);
|
183
|
+
_classPrivateFieldSet(this, _sheetId, sheetId);
|
184
|
+
_classPrivateFieldGet(this, _rowIndexSyncer).init();
|
185
|
+
_classPrivateFieldGet(this, _columnIndexSyncer).init();
|
150
186
|
}
|
151
187
|
}
|
152
188
|
var _default = IndexSyncer;
|
@@ -1,3 +1,11 @@
|
|
1
|
+
import "core-js/modules/es.error.cause.js";
|
2
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
3
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
4
|
+
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
5
|
+
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
6
|
+
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
7
|
+
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
8
|
+
function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
|
1
9
|
import AxisSyncer from "./axisSyncer.mjs";
|
2
10
|
/**
|
3
11
|
* @private
|
@@ -8,60 +16,88 @@ import AxisSyncer from "./axisSyncer.mjs";
|
|
8
16
|
* on HF's.
|
9
17
|
*
|
10
18
|
*/
|
19
|
+
var _rowIndexSyncer = /*#__PURE__*/new WeakMap();
|
20
|
+
var _columnIndexSyncer = /*#__PURE__*/new WeakMap();
|
21
|
+
var _postponeAction = /*#__PURE__*/new WeakMap();
|
22
|
+
var _isPerformingUndo = /*#__PURE__*/new WeakMap();
|
23
|
+
var _isPerformingRedo = /*#__PURE__*/new WeakMap();
|
24
|
+
var _engine = /*#__PURE__*/new WeakMap();
|
25
|
+
var _sheetId = /*#__PURE__*/new WeakMap();
|
11
26
|
class IndexSyncer {
|
12
|
-
/**
|
13
|
-
* Indexes synchronizer for the axis of the rows.
|
14
|
-
*
|
15
|
-
* @private
|
16
|
-
* @type {AxisSyncer}
|
17
|
-
*/
|
18
|
-
#rowIndexSyncer;
|
19
|
-
/**
|
20
|
-
* Indexes synchronizer for the axis of the columns.
|
21
|
-
*
|
22
|
-
* @private
|
23
|
-
* @type {AxisSyncer}
|
24
|
-
*/
|
25
|
-
#columnIndexSyncer;
|
26
|
-
/**
|
27
|
-
* Method which will postpone execution of some action (needed when synchronization endpoint isn't setup yet).
|
28
|
-
*
|
29
|
-
* @private
|
30
|
-
* @type {Function}
|
31
|
-
*/
|
32
|
-
#postponeAction;
|
33
|
-
/**
|
34
|
-
* Flag informing whether undo is already performed (we don't perform synchronization in such case).
|
35
|
-
*
|
36
|
-
* @private
|
37
|
-
* @type {boolean}
|
38
|
-
*/
|
39
|
-
#isPerformingUndo = false;
|
40
|
-
/**
|
41
|
-
* Flag informing whether redo is already performed (we don't perform synchronization in such case).
|
42
|
-
*
|
43
|
-
* @private
|
44
|
-
* @type {boolean}
|
45
|
-
*/
|
46
|
-
#isPerformingRedo = false;
|
47
|
-
/**
|
48
|
-
* The HF's engine instance which will be synced.
|
49
|
-
*
|
50
|
-
* @private
|
51
|
-
* @type {HyperFormula|null}
|
52
|
-
*/
|
53
|
-
#engine = null;
|
54
|
-
/**
|
55
|
-
* HyperFormula's sheet name.
|
56
|
-
*
|
57
|
-
* @private
|
58
|
-
* @type {string|null}
|
59
|
-
*/
|
60
|
-
#sheetId = null;
|
61
27
|
constructor(rowIndexMapper, columnIndexMapper, postponeAction) {
|
62
|
-
|
63
|
-
|
64
|
-
|
28
|
+
/**
|
29
|
+
* Indexes synchronizer for the axis of the rows.
|
30
|
+
*
|
31
|
+
* @private
|
32
|
+
* @type {AxisSyncer}
|
33
|
+
*/
|
34
|
+
_classPrivateFieldInitSpec(this, _rowIndexSyncer, {
|
35
|
+
writable: true,
|
36
|
+
value: void 0
|
37
|
+
});
|
38
|
+
/**
|
39
|
+
* Indexes synchronizer for the axis of the columns.
|
40
|
+
*
|
41
|
+
* @private
|
42
|
+
* @type {AxisSyncer}
|
43
|
+
*/
|
44
|
+
_classPrivateFieldInitSpec(this, _columnIndexSyncer, {
|
45
|
+
writable: true,
|
46
|
+
value: void 0
|
47
|
+
});
|
48
|
+
/**
|
49
|
+
* Method which will postpone execution of some action (needed when synchronization endpoint isn't setup yet).
|
50
|
+
*
|
51
|
+
* @private
|
52
|
+
* @type {Function}
|
53
|
+
*/
|
54
|
+
_classPrivateFieldInitSpec(this, _postponeAction, {
|
55
|
+
writable: true,
|
56
|
+
value: void 0
|
57
|
+
});
|
58
|
+
/**
|
59
|
+
* Flag informing whether undo is already performed (we don't perform synchronization in such case).
|
60
|
+
*
|
61
|
+
* @private
|
62
|
+
* @type {boolean}
|
63
|
+
*/
|
64
|
+
_classPrivateFieldInitSpec(this, _isPerformingUndo, {
|
65
|
+
writable: true,
|
66
|
+
value: false
|
67
|
+
});
|
68
|
+
/**
|
69
|
+
* Flag informing whether redo is already performed (we don't perform synchronization in such case).
|
70
|
+
*
|
71
|
+
* @private
|
72
|
+
* @type {boolean}
|
73
|
+
*/
|
74
|
+
_classPrivateFieldInitSpec(this, _isPerformingRedo, {
|
75
|
+
writable: true,
|
76
|
+
value: false
|
77
|
+
});
|
78
|
+
/**
|
79
|
+
* The HF's engine instance which will be synced.
|
80
|
+
*
|
81
|
+
* @private
|
82
|
+
* @type {HyperFormula|null}
|
83
|
+
*/
|
84
|
+
_classPrivateFieldInitSpec(this, _engine, {
|
85
|
+
writable: true,
|
86
|
+
value: null
|
87
|
+
});
|
88
|
+
/**
|
89
|
+
* HyperFormula's sheet name.
|
90
|
+
*
|
91
|
+
* @private
|
92
|
+
* @type {string|null}
|
93
|
+
*/
|
94
|
+
_classPrivateFieldInitSpec(this, _sheetId, {
|
95
|
+
writable: true,
|
96
|
+
value: null
|
97
|
+
});
|
98
|
+
_classPrivateFieldSet(this, _rowIndexSyncer, new AxisSyncer('row', rowIndexMapper, this));
|
99
|
+
_classPrivateFieldSet(this, _columnIndexSyncer, new AxisSyncer('column', columnIndexMapper, this));
|
100
|
+
_classPrivateFieldSet(this, _postponeAction, postponeAction);
|
65
101
|
}
|
66
102
|
|
67
103
|
/**
|
@@ -72,9 +108,9 @@ class IndexSyncer {
|
|
72
108
|
*/
|
73
109
|
getForAxis(indexType) {
|
74
110
|
if (indexType === 'row') {
|
75
|
-
return this
|
111
|
+
return _classPrivateFieldGet(this, _rowIndexSyncer);
|
76
112
|
}
|
77
|
-
return this
|
113
|
+
return _classPrivateFieldGet(this, _columnIndexSyncer);
|
78
114
|
}
|
79
115
|
|
80
116
|
/**
|
@@ -83,7 +119,7 @@ class IndexSyncer {
|
|
83
119
|
* @param {boolean} flagValue Boolean value for the flag.
|
84
120
|
*/
|
85
121
|
setPerformUndo(flagValue) {
|
86
|
-
this
|
122
|
+
_classPrivateFieldSet(this, _isPerformingUndo, flagValue);
|
87
123
|
}
|
88
124
|
|
89
125
|
/**
|
@@ -92,7 +128,7 @@ class IndexSyncer {
|
|
92
128
|
* @param {boolean} flagValue Boolean value for the flag.
|
93
129
|
*/
|
94
130
|
setPerformRedo(flagValue) {
|
95
|
-
this
|
131
|
+
_classPrivateFieldSet(this, _isPerformingRedo, flagValue);
|
96
132
|
}
|
97
133
|
|
98
134
|
/**
|
@@ -102,7 +138,7 @@ class IndexSyncer {
|
|
102
138
|
* @returns {boolean}
|
103
139
|
*/
|
104
140
|
isPerformingUndoRedo() {
|
105
|
-
return this
|
141
|
+
return _classPrivateFieldGet(this, _isPerformingUndo) || _classPrivateFieldGet(this, _isPerformingRedo);
|
106
142
|
}
|
107
143
|
|
108
144
|
/**
|
@@ -111,7 +147,7 @@ class IndexSyncer {
|
|
111
147
|
* @returns {string|null}
|
112
148
|
*/
|
113
149
|
getSheetId() {
|
114
|
-
return this
|
150
|
+
return _classPrivateFieldGet(this, _sheetId);
|
115
151
|
}
|
116
152
|
|
117
153
|
/**
|
@@ -120,7 +156,7 @@ class IndexSyncer {
|
|
120
156
|
* @type {HyperFormula|null}
|
121
157
|
*/
|
122
158
|
getEngine() {
|
123
|
-
return this
|
159
|
+
return _classPrivateFieldGet(this, _engine);
|
124
160
|
}
|
125
161
|
|
126
162
|
/**
|
@@ -129,7 +165,7 @@ class IndexSyncer {
|
|
129
165
|
* @returns {Function}
|
130
166
|
*/
|
131
167
|
getPostponeAction() {
|
132
|
-
return this
|
168
|
+
return _classPrivateFieldGet(this, _postponeAction);
|
133
169
|
}
|
134
170
|
|
135
171
|
/**
|
@@ -139,10 +175,10 @@ class IndexSyncer {
|
|
139
175
|
* @param {string|null} sheetId HyperFormula's sheet name.
|
140
176
|
*/
|
141
177
|
setupSyncEndpoint(engine, sheetId) {
|
142
|
-
this
|
143
|
-
this
|
144
|
-
this
|
145
|
-
this
|
178
|
+
_classPrivateFieldSet(this, _engine, engine);
|
179
|
+
_classPrivateFieldSet(this, _sheetId, sheetId);
|
180
|
+
_classPrivateFieldGet(this, _rowIndexSyncer).init();
|
181
|
+
_classPrivateFieldGet(this, _columnIndexSyncer).init();
|
146
182
|
}
|
147
183
|
}
|
148
184
|
export default IndexSyncer;
|
@@ -28,9 +28,9 @@ function showColumnItem(hiddenColumnsPlugin) {
|
|
28
28
|
let endVisualColumn = columns[columns.length - 1];
|
29
29
|
|
30
30
|
// Add to the selection one more visual column on the left.
|
31
|
-
startVisualColumn = (_this$columnIndexMapp = this.columnIndexMapper.getNearestNotHiddenIndex(startVisualColumn - 1, -1))
|
31
|
+
startVisualColumn = (_this$columnIndexMapp = this.columnIndexMapper.getNearestNotHiddenIndex(startVisualColumn - 1, -1)) !== null && _this$columnIndexMapp !== void 0 ? _this$columnIndexMapp : 0;
|
32
32
|
// Add to the selection one more visual column on the right.
|
33
|
-
endVisualColumn = (_this$columnIndexMapp2 = this.columnIndexMapper.getNearestNotHiddenIndex(endVisualColumn + 1, 1))
|
33
|
+
endVisualColumn = (_this$columnIndexMapp2 = this.columnIndexMapper.getNearestNotHiddenIndex(endVisualColumn + 1, 1)) !== null && _this$columnIndexMapp2 !== void 0 ? _this$columnIndexMapp2 : this.countCols() - 1;
|
34
34
|
hiddenColumnsPlugin.showColumns(columns);
|
35
35
|
|
36
36
|
// We render columns at first. It was needed for getting fixed columns.
|
@@ -22,9 +22,9 @@ export default function showColumnItem(hiddenColumnsPlugin) {
|
|
22
22
|
let endVisualColumn = columns[columns.length - 1];
|
23
23
|
|
24
24
|
// Add to the selection one more visual column on the left.
|
25
|
-
startVisualColumn = (_this$columnIndexMapp = this.columnIndexMapper.getNearestNotHiddenIndex(startVisualColumn - 1, -1))
|
25
|
+
startVisualColumn = (_this$columnIndexMapp = this.columnIndexMapper.getNearestNotHiddenIndex(startVisualColumn - 1, -1)) !== null && _this$columnIndexMapp !== void 0 ? _this$columnIndexMapp : 0;
|
26
26
|
// Add to the selection one more visual column on the right.
|
27
|
-
endVisualColumn = (_this$columnIndexMapp2 = this.columnIndexMapper.getNearestNotHiddenIndex(endVisualColumn + 1, 1))
|
27
|
+
endVisualColumn = (_this$columnIndexMapp2 = this.columnIndexMapper.getNearestNotHiddenIndex(endVisualColumn + 1, 1)) !== null && _this$columnIndexMapp2 !== void 0 ? _this$columnIndexMapp2 : this.countCols() - 1;
|
28
28
|
hiddenColumnsPlugin.showColumns(columns);
|
29
29
|
|
30
30
|
// We render columns at first. It was needed for getting fixed columns.
|