handsontable 0.0.0-next-a1e4b4f-20230628 → 0.0.0-next-e697250-20230707
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +50 -28
- package/3rdparty/walkontable/src/cell/coords.mjs +50 -28
- package/3rdparty/walkontable/src/cell/range.d.ts +9 -2
- package/3rdparty/walkontable/src/cell/range.js +69 -36
- package/3rdparty/walkontable/src/cell/range.mjs +68 -35
- package/3rdparty/walkontable/src/event.js +3 -5
- package/3rdparty/walkontable/src/event.mjs +3 -5
- package/3rdparty/walkontable/src/overlay/_base.js +6 -7
- package/3rdparty/walkontable/src/overlay/_base.mjs +6 -7
- package/3rdparty/walkontable/src/overlay/bottom.js +6 -7
- package/3rdparty/walkontable/src/overlay/bottom.mjs +6 -7
- package/3rdparty/walkontable/src/overlay/top.js +6 -7
- package/3rdparty/walkontable/src/overlay/top.mjs +6 -7
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +10 -12
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +10 -12
- package/3rdparty/walkontable/src/overlays.js +55 -64
- package/3rdparty/walkontable/src/overlays.mjs +55 -64
- package/3rdparty/walkontable/src/renderer/table.js +0 -2
- package/3rdparty/walkontable/src/renderer/table.mjs +0 -2
- package/3rdparty/walkontable/src/scroll.js +20 -23
- package/3rdparty/walkontable/src/scroll.mjs +20 -23
- package/3rdparty/walkontable/src/selection/border/border.js +1 -0
- package/3rdparty/walkontable/src/selection/border/border.mjs +1 -0
- package/3rdparty/walkontable/src/selection/manager.js +40 -45
- package/3rdparty/walkontable/src/selection/manager.mjs +33 -38
- package/3rdparty/walkontable/src/selection/scanner.js +5 -4
- package/3rdparty/walkontable/src/selection/scanner.mjs +1 -0
- package/3rdparty/walkontable/src/settings.js +13 -15
- package/3rdparty/walkontable/src/settings.mjs +13 -15
- package/3rdparty/walkontable/src/table.js +23 -26
- package/3rdparty/walkontable/src/table.mjs +23 -26
- package/CHANGELOG.md +56 -0
- package/base.js +2 -4
- package/base.mjs +2 -2
- package/common.d.ts +1 -1
- package/core.d.ts +7 -9
- package/core.js +241 -439
- package/core.mjs +245 -443
- package/dataMap/dataMap.js +1 -0
- package/dataMap/dataMap.mjs +1 -0
- package/dataMap/dataSource.js +5 -5
- package/dataMap/dataSource.mjs +5 -5
- 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/metaSchema.js +33 -24
- package/dataMap/metaManager/metaSchema.mjs +33 -24
- package/dist/handsontable.css +25 -3
- package/dist/handsontable.full.css +25 -3
- package/dist/handsontable.full.js +14539 -11358
- package/dist/handsontable.full.min.css +5 -5
- package/dist/handsontable.full.min.js +137 -125
- package/dist/handsontable.js +31414 -28455
- package/dist/handsontable.min.css +5 -5
- package/dist/handsontable.min.js +11 -3
- package/dist/languages/all.js +133 -0
- package/dist/languages/ar-AR.js +7 -0
- package/dist/languages/cs-CZ.js +7 -0
- package/dist/languages/de-CH.js +7 -0
- package/dist/languages/de-DE.js +7 -0
- package/dist/languages/en-US.js +7 -0
- package/dist/languages/es-MX.js +7 -0
- package/dist/languages/fr-FR.js +7 -0
- package/dist/languages/it-IT.js +7 -0
- package/dist/languages/ja-JP.js +7 -0
- package/dist/languages/ko-KR.js +7 -0
- package/dist/languages/lv-LV.js +7 -0
- package/dist/languages/nb-NO.js +7 -0
- package/dist/languages/nl-NL.js +7 -0
- package/dist/languages/pl-PL.js +7 -0
- package/dist/languages/pt-BR.js +7 -0
- package/dist/languages/ru-RU.js +7 -0
- package/dist/languages/sr-SP.js +7 -0
- package/dist/languages/zh-CN.js +7 -0
- package/dist/languages/zh-TW.js +7 -0
- package/editorManager.js +19 -89
- package/editorManager.mjs +24 -93
- package/editors/baseEditor/baseEditor.js +1 -0
- package/editors/baseEditor/baseEditor.mjs +1 -0
- package/editors/textEditor/textEditor.js +14 -20
- package/editors/textEditor/textEditor.mjs +16 -22
- package/helpers/dom/element.js +0 -11
- package/helpers/dom/element.mjs +0 -10
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/helpers/number.d.ts +1 -0
- package/helpers/number.js +18 -0
- package/helpers/number.mjs +17 -0
- package/helpers/object.js +2 -0
- package/helpers/object.mjs +2 -0
- package/i18n/languages/ar-AR.js +7 -1
- package/i18n/languages/cs-CZ.js +7 -1
- package/i18n/languages/de-CH.js +7 -1
- package/i18n/languages/de-DE.js +7 -1
- package/i18n/languages/en-US.js +7 -1
- package/i18n/languages/es-MX.js +7 -1
- package/i18n/languages/fr-FR.js +7 -1
- package/i18n/languages/it-IT.js +7 -1
- package/i18n/languages/ja-JP.js +7 -1
- package/i18n/languages/ko-KR.js +7 -1
- package/i18n/languages/lv-LV.js +7 -1
- package/i18n/languages/nb-NO.js +7 -1
- package/i18n/languages/nl-NL.js +7 -1
- package/i18n/languages/pl-PL.js +7 -1
- package/i18n/languages/pt-BR.js +7 -1
- package/i18n/languages/ru-RU.js +7 -1
- package/i18n/languages/sr-SP.js +7 -1
- package/i18n/languages/zh-CN.js +7 -1
- package/i18n/languages/zh-TW.js +7 -1
- package/languages/all.js +133 -0
- package/languages/ar-AR.js +7 -0
- package/languages/cs-CZ.js +7 -0
- package/languages/de-CH.js +7 -0
- package/languages/de-DE.js +7 -0
- package/languages/en-US.js +7 -0
- package/languages/es-MX.js +7 -0
- package/languages/fr-FR.js +7 -0
- package/languages/index.js +133 -0
- package/languages/it-IT.js +7 -0
- package/languages/ja-JP.js +7 -0
- package/languages/ko-KR.js +7 -0
- package/languages/lv-LV.js +7 -0
- package/languages/nb-NO.js +7 -0
- package/languages/nl-NL.js +7 -0
- package/languages/pl-PL.js +7 -0
- package/languages/pt-BR.js +7 -0
- package/languages/ru-RU.js +7 -0
- package/languages/sr-SP.js +7 -0
- package/languages/zh-CN.js +7 -0
- package/languages/zh-TW.js +7 -0
- package/package.json +3 -2
- package/pluginHooks.d.ts +8 -2
- package/pluginHooks.js +116 -18
- package/pluginHooks.mjs +115 -15
- package/plugins/autoColumnSize/autoColumnSize.js +1 -0
- package/plugins/autoColumnSize/autoColumnSize.mjs +1 -0
- package/plugins/autoRowSize/autoRowSize.js +3 -2
- package/plugins/autoRowSize/autoRowSize.mjs +3 -2
- package/plugins/autofill/autofill.js +2 -2
- package/plugins/autofill/autofill.mjs +3 -3
- package/plugins/autofill/utils.js +1 -39
- package/plugins/autofill/utils.mjs +0 -37
- package/plugins/base/base.js +1 -0
- package/plugins/base/base.mjs +1 -0
- package/plugins/bindRowsWithHeaders/maps/strictBindsMap.js +1 -0
- package/plugins/bindRowsWithHeaders/maps/strictBindsMap.mjs +1 -0
- package/plugins/collapsibleColumns/collapsibleColumns.js +82 -24
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +82 -24
- package/plugins/columnSorting/columnSorting.js +51 -8
- package/plugins/columnSorting/columnSorting.mjs +50 -9
- package/plugins/columnSorting/columnStatesManager.js +1 -0
- package/plugins/columnSorting/columnStatesManager.mjs +1 -0
- package/plugins/columnSorting/index.js +4 -2
- package/plugins/columnSorting/index.mjs +1 -1
- package/plugins/columnSorting/rootComparator.js +1 -0
- package/plugins/columnSorting/rootComparator.mjs +1 -0
- package/plugins/comments/commentEditor.js +1 -0
- package/plugins/comments/commentEditor.mjs +1 -0
- package/plugins/comments/comments.js +289 -224
- package/plugins/comments/comments.mjs +297 -234
- package/plugins/comments/contextMenuItem/addEditComment.js +51 -0
- package/plugins/comments/contextMenuItem/addEditComment.mjs +35 -0
- package/plugins/comments/contextMenuItem/readOnlyComment.js +63 -0
- package/plugins/comments/contextMenuItem/readOnlyComment.mjs +55 -0
- package/plugins/comments/contextMenuItem/removeComment.js +48 -0
- package/plugins/comments/contextMenuItem/removeComment.mjs +32 -0
- package/plugins/contextMenu/contextMenu.d.ts +1 -1
- package/plugins/contextMenu/contextMenu.js +81 -29
- package/plugins/contextMenu/contextMenu.mjs +82 -30
- 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 +8 -5
- package/plugins/contextMenu/predefinedItems/removeColumn.mjs +6 -3
- package/plugins/contextMenu/predefinedItems/removeRow.js +8 -5
- package/plugins/contextMenu/predefinedItems/removeRow.mjs +6 -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 +25 -16
- package/plugins/contextMenu/utils.mjs +24 -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 +100 -14
- package/plugins/copyPaste/copyPaste.mjs +100 -14
- package/plugins/copyPaste/copyableRanges.js +25 -31
- package/plugins/copyPaste/copyableRanges.mjs +18 -24
- package/plugins/copyPaste/focusableElement.js +219 -0
- package/plugins/copyPaste/focusableElement.mjs +213 -0
- package/plugins/customBorders/customBorders.d.ts +2 -0
- package/plugins/customBorders/customBorders.js +19 -50
- package/plugins/customBorders/customBorders.mjs +19 -50
- package/plugins/dropdownMenu/dropdownMenu.d.ts +1 -1
- package/plugins/dropdownMenu/dropdownMenu.js +94 -30
- package/plugins/dropdownMenu/dropdownMenu.mjs +94 -30
- package/plugins/exportFile/dataProvider.js +1 -0
- package/plugins/exportFile/dataProvider.mjs +1 -0
- package/plugins/filters/component/value.js +1 -0
- package/plugins/filters/component/value.mjs +1 -0
- package/plugins/filters/condition/beginsWith.js +1 -0
- package/plugins/filters/condition/beginsWith.mjs +1 -0
- package/plugins/filters/condition/between.js +1 -0
- package/plugins/filters/condition/between.mjs +1 -0
- package/plugins/filters/condition/byValue.js +1 -0
- package/plugins/filters/condition/byValue.mjs +1 -0
- package/plugins/filters/condition/contains.js +1 -0
- package/plugins/filters/condition/contains.mjs +1 -0
- package/plugins/filters/condition/date/after.js +1 -0
- package/plugins/filters/condition/date/after.mjs +1 -0
- package/plugins/filters/condition/date/before.js +1 -0
- package/plugins/filters/condition/date/before.mjs +1 -0
- package/plugins/filters/condition/endsWith.js +1 -0
- package/plugins/filters/condition/endsWith.mjs +1 -0
- package/plugins/filters/condition/equal.js +1 -0
- package/plugins/filters/condition/equal.mjs +1 -0
- package/plugins/filters/condition/greaterThan.js +1 -0
- package/plugins/filters/condition/greaterThan.mjs +1 -0
- package/plugins/filters/condition/greaterThanOrEqual.js +1 -0
- package/plugins/filters/condition/greaterThanOrEqual.mjs +1 -0
- package/plugins/filters/condition/lessThan.js +1 -0
- package/plugins/filters/condition/lessThan.mjs +1 -0
- package/plugins/filters/condition/lessThanOrEqual.js +1 -0
- package/plugins/filters/condition/lessThanOrEqual.mjs +1 -0
- package/plugins/filters/conditionCollection.js +1 -0
- package/plugins/filters/conditionCollection.mjs +1 -0
- package/plugins/filters/filters.js +68 -42
- package/plugins/filters/filters.mjs +67 -41
- package/plugins/filters/ui/multipleSelect.js +1 -0
- package/plugins/filters/ui/multipleSelect.mjs +1 -0
- package/plugins/formulas/formulas.js +191 -168
- package/plugins/formulas/formulas.mjs +191 -168
- package/plugins/formulas/indexSyncer/axisSyncer.js +379 -0
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +374 -0
- package/plugins/formulas/indexSyncer/index.js +225 -0
- package/plugins/formulas/indexSyncer/index.mjs +219 -0
- package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +1 -0
- package/plugins/hiddenColumns/contextMenuItem/hideColumn.mjs +1 -0
- package/plugins/hiddenColumns/contextMenuItem/showColumn.js +1 -0
- package/plugins/hiddenColumns/contextMenuItem/showColumn.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 +1 -0
- package/plugins/hiddenRows/contextMenuItem/showRow.mjs +1 -0
- package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +1 -0
- package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.mjs +1 -0
- package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +1 -0
- package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.mjs +1 -0
- package/plugins/manualColumnResize/manualColumnResize.js +36 -5
- package/plugins/manualColumnResize/manualColumnResize.mjs +36 -5
- package/plugins/manualRowMove/manualRowMove.js +31 -12
- package/plugins/manualRowMove/manualRowMove.mjs +32 -13
- package/plugins/manualRowResize/manualRowResize.js +40 -9
- package/plugins/manualRowResize/manualRowResize.mjs +40 -9
- package/plugins/mergeCells/calculations/autofill.js +1 -0
- package/plugins/mergeCells/calculations/autofill.mjs +1 -0
- package/plugins/mergeCells/cellsCollection.js +1 -0
- package/plugins/mergeCells/cellsCollection.mjs +1 -0
- package/plugins/mergeCells/mergeCells.js +6 -2
- package/plugins/mergeCells/mergeCells.mjs +6 -2
- package/plugins/multiColumnSorting/multiColumnSorting.js +42 -3
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +42 -3
- package/plugins/multiColumnSorting/rootComparator.js +1 -0
- package/plugins/multiColumnSorting/rootComparator.mjs +1 -0
- package/plugins/nestedHeaders/nestedHeaders.js +129 -6
- package/plugins/nestedHeaders/nestedHeaders.mjs +129 -6
- package/plugins/nestedHeaders/stateManager/headersTree.js +24 -26
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +21 -23
- package/plugins/nestedHeaders/stateManager/index.js +40 -3
- package/plugins/nestedHeaders/stateManager/index.mjs +37 -0
- package/plugins/nestedHeaders/stateManager/matrixGenerator.js +1 -0
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +2 -1
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.mjs +1 -0
- package/plugins/nestedHeaders/utils/ghostTable.js +30 -35
- package/plugins/nestedHeaders/utils/ghostTable.mjs +30 -35
- package/plugins/nestedRows/data/dataManager.js +1 -0
- package/plugins/nestedRows/data/dataManager.mjs +1 -0
- package/plugins/nestedRows/nestedRows.js +53 -7
- package/plugins/nestedRows/nestedRows.mjs +53 -7
- 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 +4 -1
- package/plugins/registry.mjs +1 -0
- package/plugins/undoRedo/undoRedo.js +1 -1
- package/plugins/undoRedo/undoRedo.mjs +1 -1
- package/renderers/baseRenderer/baseRenderer.js +0 -3
- package/renderers/baseRenderer/baseRenderer.mjs +0 -3
- package/renderers/checkboxRenderer/checkboxRenderer.js +2 -2
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +1 -1
- package/selection/highlight/highlight.js +120 -98
- package/selection/highlight/highlight.mjs +118 -96
- package/selection/highlight/visualSelection.js +30 -17
- package/selection/highlight/visualSelection.mjs +30 -17
- 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 +246 -153
- package/selection/selection.mjs +247 -154
- package/selection/transformation.js +233 -96
- package/selection/transformation.mjs +230 -93
- package/selection/utils.js +12 -35
- package/selection/utils.mjs +13 -35
- package/settings.d.ts +2 -1
- package/shortcutContexts/commands/editor/closeAndSave.js +15 -0
- package/shortcutContexts/commands/editor/closeAndSave.mjs +10 -0
- package/shortcutContexts/commands/editor/closeWithoutSaving.js +13 -0
- package/shortcutContexts/commands/editor/closeWithoutSaving.mjs +8 -0
- package/shortcutContexts/commands/editor/fastOpen.js +16 -0
- package/shortcutContexts/commands/editor/fastOpen.mjs +11 -0
- package/shortcutContexts/commands/editor/index.js +16 -0
- package/shortcutContexts/commands/editor/index.mjs +12 -0
- package/shortcutContexts/commands/editor/open.js +29 -0
- package/shortcutContexts/commands/editor/open.mjs +24 -0
- package/shortcutContexts/commands/emptySelectedCells.js +12 -0
- package/shortcutContexts/commands/emptySelectedCells.mjs +7 -0
- package/shortcutContexts/commands/extendCellsSelection/down.js +15 -0
- package/shortcutContexts/commands/extendCellsSelection/down.mjs +10 -0
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +21 -0
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +16 -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 +10 -0
- package/shortcutContexts/commands/extendCellsSelection/right.js +15 -0
- package/shortcutContexts/commands/extendCellsSelection/right.mjs +10 -0
- package/shortcutContexts/commands/extendCellsSelection/toColumns.js +19 -0
- package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +14 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +22 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +17 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +17 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +12 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +17 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +12 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +40 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +35 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +40 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +35 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +22 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +17 -0
- package/shortcutContexts/commands/extendCellsSelection/toRows.js +19 -0
- package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +14 -0
- package/shortcutContexts/commands/extendCellsSelection/up.js +15 -0
- package/shortcutContexts/commands/extendCellsSelection/up.mjs +10 -0
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +21 -0
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +16 -0
- package/shortcutContexts/commands/index.js +53 -0
- package/shortcutContexts/commands/index.mjs +49 -0
- package/shortcutContexts/commands/moveCellSelection/down.js +12 -0
- package/shortcutContexts/commands/moveCellSelection/down.mjs +7 -0
- package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.js +29 -0
- package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.mjs +24 -0
- package/shortcutContexts/commands/moveCellSelection/index.js +28 -0
- package/shortcutContexts/commands/moveCellSelection/index.mjs +24 -0
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +13 -0
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +8 -0
- package/shortcutContexts/commands/moveCellSelection/inlineStart.js +13 -0
- package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +8 -0
- package/shortcutContexts/commands/moveCellSelection/left.js +11 -0
- package/shortcutContexts/commands/moveCellSelection/left.mjs +6 -0
- package/shortcutContexts/commands/moveCellSelection/right.js +11 -0
- package/shortcutContexts/commands/moveCellSelection/right.mjs +6 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottom.js +16 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottom.mjs +11 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.js +17 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.mjs +12 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.js +13 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.mjs +8 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.js +16 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.mjs +11 -0
- package/shortcutContexts/commands/moveCellSelection/toMostLeft.js +36 -0
- package/shortcutContexts/commands/moveCellSelection/toMostLeft.mjs +31 -0
- package/shortcutContexts/commands/moveCellSelection/toMostRight.js +36 -0
- package/shortcutContexts/commands/moveCellSelection/toMostRight.mjs +31 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTop.js +16 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTop.mjs +11 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.js +18 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.mjs +13 -0
- package/shortcutContexts/commands/moveCellSelection/up.js +12 -0
- package/shortcutContexts/commands/moveCellSelection/up.mjs +7 -0
- package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.js +29 -0
- package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.mjs +24 -0
- package/shortcutContexts/commands/populateSelectedCellsData.js +35 -0
- package/shortcutContexts/commands/populateSelectedCellsData.mjs +30 -0
- package/shortcutContexts/commands/scrollToFocusedCell.js +38 -0
- package/shortcutContexts/commands/scrollToFocusedCell.mjs +33 -0
- package/shortcutContexts/commands/selectAll.js +11 -0
- package/shortcutContexts/commands/selectAll.mjs +6 -0
- package/shortcutContexts/constants.js +19 -0
- package/shortcutContexts/constants.mjs +12 -0
- package/shortcutContexts/editor.js +29 -0
- package/shortcutContexts/editor.mjs +25 -0
- package/shortcutContexts/grid.js +252 -0
- package/shortcutContexts/grid.mjs +248 -0
- package/shortcutContexts/index.js +29 -0
- package/shortcutContexts/index.mjs +15 -0
- package/shortcuts/context.js +1 -0
- package/shortcuts/context.mjs +1 -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 +21 -5
- package/shortcuts/utils.mjs +20 -4
- package/tableView.js +112 -82
- package/tableView.mjs +112 -82
- package/translations/changesObservable/observable.js +41 -46
- package/translations/changesObservable/observable.mjs +36 -41
- package/translations/changesObservable/observer.js +1 -1
- package/translations/indexMapper.d.ts +0 -2
- package/translations/indexMapper.js +38 -64
- package/translations/indexMapper.mjs +39 -64
- package/translations/maps/linkedPhysicalIndexToValueMap.js +1 -0
- package/translations/maps/linkedPhysicalIndexToValueMap.mjs +1 -0
- package/translations/maps/utils/indexesSequence.js +1 -0
- package/translations/maps/utils/indexesSequence.mjs +1 -0
- package/translations/maps/utils/physicallyIndexed.js +1 -0
- package/translations/maps/utils/physicallyIndexed.mjs +1 -0
- package/utils/dataStructures/priorityMap.js +1 -0
- package/utils/dataStructures/priorityMap.mjs +1 -0
- package/utils/dataStructures/tree.js +16 -18
- package/utils/dataStructures/tree.mjs +16 -18
- 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 +1 -0
- package/utils/ghostTable.mjs +1 -0
- package/utils/parseTable.js +5 -1
- package/utils/parseTable.mjs +5 -1
- package/utils/staticRegister.js +1 -0
- package/utils/staticRegister.mjs +1 -0
- package/focusManager.d.ts +0 -12
- package/focusManager.js +0 -275
- package/focusManager.mjs +0 -270
@@ -7,6 +7,7 @@ require("core-js/modules/es.symbol.description.js");
|
|
7
7
|
require("core-js/modules/es.number.constructor.js");
|
8
8
|
require("core-js/modules/es.symbol.iterator.js");
|
9
9
|
require("core-js/modules/es.array.slice.js");
|
10
|
+
require("core-js/modules/es.regexp.to-string.js");
|
10
11
|
require("core-js/modules/es.function.name.js");
|
11
12
|
require("core-js/modules/es.regexp.exec.js");
|
12
13
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
@@ -54,13 +55,6 @@ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) {
|
|
54
55
|
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
55
56
|
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
56
57
|
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; } }
|
57
|
-
var _activeOverlaysWot = /*#__PURE__*/new WeakMap();
|
58
|
-
var _selections = /*#__PURE__*/new WeakMap();
|
59
|
-
var _scanner = /*#__PURE__*/new WeakMap();
|
60
|
-
var _appliedClasses = /*#__PURE__*/new WeakMap();
|
61
|
-
var _destroyListeners = /*#__PURE__*/new WeakMap();
|
62
|
-
var _selectionBorders = /*#__PURE__*/new WeakMap();
|
63
|
-
var _resetCells = /*#__PURE__*/new WeakSet();
|
64
58
|
/**
|
65
59
|
* Module responsible for rendering selections (CSS classes) and borders based on the
|
66
60
|
* collection of the Selection instances provided throughout the `selections` Walkontable
|
@@ -68,45 +62,14 @@ var _resetCells = /*#__PURE__*/new WeakSet();
|
|
68
62
|
*
|
69
63
|
* @private
|
70
64
|
*/
|
65
|
+
var _activeOverlaysWot = /*#__PURE__*/new WeakMap();
|
66
|
+
var _selections = /*#__PURE__*/new WeakMap();
|
67
|
+
var _scanner = /*#__PURE__*/new WeakMap();
|
68
|
+
var _appliedClasses = /*#__PURE__*/new WeakMap();
|
69
|
+
var _destroyListeners = /*#__PURE__*/new WeakMap();
|
70
|
+
var _selectionBorders = /*#__PURE__*/new WeakMap();
|
71
|
+
var _resetCells = /*#__PURE__*/new WeakSet();
|
71
72
|
var SelectionManager = /*#__PURE__*/function () {
|
72
|
-
/**
|
73
|
-
* The overlay's Walkontable instance that are currently processed.
|
74
|
-
*
|
75
|
-
* @type {Walkontable}
|
76
|
-
*/
|
77
|
-
|
78
|
-
/**
|
79
|
-
* The Highlight instance that holds Selections instances within it.
|
80
|
-
*
|
81
|
-
* @type {Highlight|null}
|
82
|
-
*/
|
83
|
-
|
84
|
-
/**
|
85
|
-
* The SelectionScanner allows to scan and collect the cell and header elements that matches
|
86
|
-
* to the coords defined in the selections.
|
87
|
-
*
|
88
|
-
* @type {SelectionScanner}
|
89
|
-
*/
|
90
|
-
|
91
|
-
/**
|
92
|
-
* The Map tracks applied CSS classes. It's used to reset the elements state to their initial state.
|
93
|
-
*
|
94
|
-
* @type {WeakMap}
|
95
|
-
*/
|
96
|
-
|
97
|
-
/**
|
98
|
-
* The Map tracks applied "destroy" listeners for Selection instances.
|
99
|
-
*
|
100
|
-
* @type {WeakMap}
|
101
|
-
*/
|
102
|
-
|
103
|
-
/**
|
104
|
-
* The Map holds references to Border classes for Selection instances which requires that when
|
105
|
-
* the "border" setting is defined.
|
106
|
-
*
|
107
|
-
* @type {Map}
|
108
|
-
*/
|
109
|
-
|
110
73
|
function SelectionManager(selections) {
|
111
74
|
_classCallCheck(this, SelectionManager);
|
112
75
|
/**
|
@@ -114,26 +77,58 @@ var SelectionManager = /*#__PURE__*/function () {
|
|
114
77
|
* previous render cycle).
|
115
78
|
*/
|
116
79
|
_classPrivateMethodInitSpec(this, _resetCells);
|
80
|
+
/**
|
81
|
+
* The overlay's Walkontable instance that are currently processed.
|
82
|
+
*
|
83
|
+
* @type {Walkontable}
|
84
|
+
*/
|
117
85
|
_classPrivateFieldInitSpec(this, _activeOverlaysWot, {
|
118
86
|
writable: true,
|
119
87
|
value: void 0
|
120
88
|
});
|
89
|
+
/**
|
90
|
+
* The Highlight instance that holds Selections instances within it.
|
91
|
+
*
|
92
|
+
* @type {Highlight|null}
|
93
|
+
*/
|
121
94
|
_classPrivateFieldInitSpec(this, _selections, {
|
122
95
|
writable: true,
|
123
96
|
value: void 0
|
124
97
|
});
|
98
|
+
/**
|
99
|
+
* The SelectionScanner allows to scan and collect the cell and header elements that matches
|
100
|
+
* to the coords defined in the selections.
|
101
|
+
*
|
102
|
+
* @type {SelectionScanner}
|
103
|
+
*/
|
125
104
|
_classPrivateFieldInitSpec(this, _scanner, {
|
126
105
|
writable: true,
|
127
106
|
value: new _scanner2.SelectionScanner()
|
128
107
|
});
|
108
|
+
/**
|
109
|
+
* The Map tracks applied CSS classes. It's used to reset the elements state to their initial state.
|
110
|
+
*
|
111
|
+
* @type {WeakMap}
|
112
|
+
*/
|
129
113
|
_classPrivateFieldInitSpec(this, _appliedClasses, {
|
130
114
|
writable: true,
|
131
115
|
value: new WeakMap()
|
132
116
|
});
|
117
|
+
/**
|
118
|
+
* The Map tracks applied "destroy" listeners for Selection instances.
|
119
|
+
*
|
120
|
+
* @type {WeakMap}
|
121
|
+
*/
|
133
122
|
_classPrivateFieldInitSpec(this, _destroyListeners, {
|
134
123
|
writable: true,
|
135
124
|
value: new WeakSet()
|
136
125
|
});
|
126
|
+
/**
|
127
|
+
* The Map holds references to Border classes for Selection instances which requires that when
|
128
|
+
* the "border" setting is defined.
|
129
|
+
*
|
130
|
+
* @type {Map}
|
131
|
+
*/
|
137
132
|
_classPrivateFieldInitSpec(this, _selectionBorders, {
|
138
133
|
writable: true,
|
139
134
|
value: new Map()
|
@@ -30,6 +30,7 @@ import "core-js/modules/es.symbol.description.js";
|
|
30
30
|
import "core-js/modules/es.number.constructor.js";
|
31
31
|
import "core-js/modules/es.symbol.iterator.js";
|
32
32
|
import "core-js/modules/es.array.slice.js";
|
33
|
+
import "core-js/modules/es.regexp.to-string.js";
|
33
34
|
import "core-js/modules/es.function.name.js";
|
34
35
|
import "core-js/modules/es.regexp.exec.js";
|
35
36
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
@@ -64,44 +65,6 @@ var _destroyListeners = /*#__PURE__*/new WeakMap();
|
|
64
65
|
var _selectionBorders = /*#__PURE__*/new WeakMap();
|
65
66
|
var _resetCells = /*#__PURE__*/new WeakSet();
|
66
67
|
export var SelectionManager = /*#__PURE__*/function () {
|
67
|
-
/**
|
68
|
-
* The overlay's Walkontable instance that are currently processed.
|
69
|
-
*
|
70
|
-
* @type {Walkontable}
|
71
|
-
*/
|
72
|
-
|
73
|
-
/**
|
74
|
-
* The Highlight instance that holds Selections instances within it.
|
75
|
-
*
|
76
|
-
* @type {Highlight|null}
|
77
|
-
*/
|
78
|
-
|
79
|
-
/**
|
80
|
-
* The SelectionScanner allows to scan and collect the cell and header elements that matches
|
81
|
-
* to the coords defined in the selections.
|
82
|
-
*
|
83
|
-
* @type {SelectionScanner}
|
84
|
-
*/
|
85
|
-
|
86
|
-
/**
|
87
|
-
* The Map tracks applied CSS classes. It's used to reset the elements state to their initial state.
|
88
|
-
*
|
89
|
-
* @type {WeakMap}
|
90
|
-
*/
|
91
|
-
|
92
|
-
/**
|
93
|
-
* The Map tracks applied "destroy" listeners for Selection instances.
|
94
|
-
*
|
95
|
-
* @type {WeakMap}
|
96
|
-
*/
|
97
|
-
|
98
|
-
/**
|
99
|
-
* The Map holds references to Border classes for Selection instances which requires that when
|
100
|
-
* the "border" setting is defined.
|
101
|
-
*
|
102
|
-
* @type {Map}
|
103
|
-
*/
|
104
|
-
|
105
68
|
function SelectionManager(selections) {
|
106
69
|
_classCallCheck(this, SelectionManager);
|
107
70
|
/**
|
@@ -109,26 +72,58 @@ export var SelectionManager = /*#__PURE__*/function () {
|
|
109
72
|
* previous render cycle).
|
110
73
|
*/
|
111
74
|
_classPrivateMethodInitSpec(this, _resetCells);
|
75
|
+
/**
|
76
|
+
* The overlay's Walkontable instance that are currently processed.
|
77
|
+
*
|
78
|
+
* @type {Walkontable}
|
79
|
+
*/
|
112
80
|
_classPrivateFieldInitSpec(this, _activeOverlaysWot, {
|
113
81
|
writable: true,
|
114
82
|
value: void 0
|
115
83
|
});
|
84
|
+
/**
|
85
|
+
* The Highlight instance that holds Selections instances within it.
|
86
|
+
*
|
87
|
+
* @type {Highlight|null}
|
88
|
+
*/
|
116
89
|
_classPrivateFieldInitSpec(this, _selections, {
|
117
90
|
writable: true,
|
118
91
|
value: void 0
|
119
92
|
});
|
93
|
+
/**
|
94
|
+
* The SelectionScanner allows to scan and collect the cell and header elements that matches
|
95
|
+
* to the coords defined in the selections.
|
96
|
+
*
|
97
|
+
* @type {SelectionScanner}
|
98
|
+
*/
|
120
99
|
_classPrivateFieldInitSpec(this, _scanner, {
|
121
100
|
writable: true,
|
122
101
|
value: new SelectionScanner()
|
123
102
|
});
|
103
|
+
/**
|
104
|
+
* The Map tracks applied CSS classes. It's used to reset the elements state to their initial state.
|
105
|
+
*
|
106
|
+
* @type {WeakMap}
|
107
|
+
*/
|
124
108
|
_classPrivateFieldInitSpec(this, _appliedClasses, {
|
125
109
|
writable: true,
|
126
110
|
value: new WeakMap()
|
127
111
|
});
|
112
|
+
/**
|
113
|
+
* The Map tracks applied "destroy" listeners for Selection instances.
|
114
|
+
*
|
115
|
+
* @type {WeakMap}
|
116
|
+
*/
|
128
117
|
_classPrivateFieldInitSpec(this, _destroyListeners, {
|
129
118
|
writable: true,
|
130
119
|
value: new WeakSet()
|
131
120
|
});
|
121
|
+
/**
|
122
|
+
* The Map holds references to Border classes for Selection instances which requires that when
|
123
|
+
* the "border" setting is defined.
|
124
|
+
*
|
125
|
+
* @type {Map}
|
126
|
+
*/
|
132
127
|
_classPrivateFieldInitSpec(this, _selectionBorders, {
|
133
128
|
writable: true,
|
134
129
|
value: new Map()
|
@@ -7,6 +7,7 @@ require("core-js/modules/es.symbol.description.js");
|
|
7
7
|
require("core-js/modules/es.number.constructor.js");
|
8
8
|
require("core-js/modules/es.symbol.iterator.js");
|
9
9
|
require("core-js/modules/es.array.slice.js");
|
10
|
+
require("core-js/modules/es.regexp.to-string.js");
|
10
11
|
require("core-js/modules/es.function.name.js");
|
11
12
|
require("core-js/modules/es.array.from.js");
|
12
13
|
require("core-js/modules/es.regexp.exec.js");
|
@@ -40,16 +41,16 @@ function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classEx
|
|
40
41
|
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
41
42
|
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
42
43
|
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
43
|
-
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; } }
|
44
|
-
var _selection = /*#__PURE__*/new WeakMap();
|
45
|
-
var _activeOverlaysWot = /*#__PURE__*/new WeakMap();
|
46
|
-
var _scanCellsRange = /*#__PURE__*/new WeakSet();
|
44
|
+
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; } } /* eslint-disable no-continue */
|
47
45
|
/**
|
48
46
|
* Selection scanner module scans the rendered cells and headers and if it finds an intersection with
|
49
47
|
* the coordinates of the Selection class (highlight) it returns the DOM elements.
|
50
48
|
*
|
51
49
|
* @private
|
52
50
|
*/
|
51
|
+
var _selection = /*#__PURE__*/new WeakMap();
|
52
|
+
var _activeOverlaysWot = /*#__PURE__*/new WeakMap();
|
53
|
+
var _scanCellsRange = /*#__PURE__*/new WeakSet();
|
53
54
|
var SelectionScanner = /*#__PURE__*/function () {
|
54
55
|
function SelectionScanner() {
|
55
56
|
_classCallCheck(this, SelectionScanner);
|
@@ -19,6 +19,7 @@ import "core-js/modules/es.symbol.description.js";
|
|
19
19
|
import "core-js/modules/es.number.constructor.js";
|
20
20
|
import "core-js/modules/es.symbol.iterator.js";
|
21
21
|
import "core-js/modules/es.array.slice.js";
|
22
|
+
import "core-js/modules/es.regexp.to-string.js";
|
22
23
|
import "core-js/modules/es.function.name.js";
|
23
24
|
import "core-js/modules/es.array.from.js";
|
24
25
|
import "core-js/modules/es.regexp.exec.js";
|
@@ -95,28 +95,26 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
95
95
|
* @class Settings
|
96
96
|
*/
|
97
97
|
var Settings = /*#__PURE__*/function () {
|
98
|
-
/**
|
99
|
-
* Reference to settings.
|
100
|
-
*
|
101
|
-
* @protected
|
102
|
-
* @type {SettingsPure}
|
103
|
-
*/
|
104
|
-
|
105
|
-
/**
|
106
|
-
* The defaults values of settings.
|
107
|
-
* Void 0 means it is required, null means it can be empty.
|
108
|
-
*
|
109
|
-
* @public
|
110
|
-
* @type {Readonly<SettingsPure>}
|
111
|
-
*/
|
112
|
-
|
113
98
|
/**
|
114
99
|
* @param {SettingsPure} settings The user defined settings.
|
115
100
|
*/
|
116
101
|
function Settings(settings) {
|
117
102
|
var _this = this;
|
118
103
|
_classCallCheck(this, Settings);
|
104
|
+
/**
|
105
|
+
* Reference to settings.
|
106
|
+
*
|
107
|
+
* @protected
|
108
|
+
* @type {SettingsPure}
|
109
|
+
*/
|
119
110
|
_defineProperty(this, "settings", {});
|
111
|
+
/**
|
112
|
+
* The defaults values of settings.
|
113
|
+
* Void 0 means it is required, null means it can be empty.
|
114
|
+
*
|
115
|
+
* @public
|
116
|
+
* @type {Readonly<SettingsPure>}
|
117
|
+
*/
|
120
118
|
_defineProperty(this, "defaults", Object.freeze(this.getDefaults()));
|
121
119
|
(0, _object.objectEach)(this.defaults, function (value, key) {
|
122
120
|
if (settings[key] !== void 0) {
|
@@ -91,28 +91,26 @@ import { objectEach } from "../../../helpers/object.mjs";
|
|
91
91
|
* @class Settings
|
92
92
|
*/
|
93
93
|
var Settings = /*#__PURE__*/function () {
|
94
|
-
/**
|
95
|
-
* Reference to settings.
|
96
|
-
*
|
97
|
-
* @protected
|
98
|
-
* @type {SettingsPure}
|
99
|
-
*/
|
100
|
-
|
101
|
-
/**
|
102
|
-
* The defaults values of settings.
|
103
|
-
* Void 0 means it is required, null means it can be empty.
|
104
|
-
*
|
105
|
-
* @public
|
106
|
-
* @type {Readonly<SettingsPure>}
|
107
|
-
*/
|
108
|
-
|
109
94
|
/**
|
110
95
|
* @param {SettingsPure} settings The user defined settings.
|
111
96
|
*/
|
112
97
|
function Settings(settings) {
|
113
98
|
var _this = this;
|
114
99
|
_classCallCheck(this, Settings);
|
100
|
+
/**
|
101
|
+
* Reference to settings.
|
102
|
+
*
|
103
|
+
* @protected
|
104
|
+
* @type {SettingsPure}
|
105
|
+
*/
|
115
106
|
_defineProperty(this, "settings", {});
|
107
|
+
/**
|
108
|
+
* The defaults values of settings.
|
109
|
+
* Void 0 means it is required, null means it can be empty.
|
110
|
+
*
|
111
|
+
* @public
|
112
|
+
* @type {Readonly<SettingsPure>}
|
113
|
+
*/
|
116
114
|
_defineProperty(this, "defaults", Object.freeze(this.getDefaults()));
|
117
115
|
objectEach(this.defaults, function (value, key) {
|
118
116
|
if (settings[key] !== void 0) {
|
@@ -5,6 +5,7 @@ require("core-js/modules/es.array.iterator.js");
|
|
5
5
|
require("core-js/modules/es.string.iterator.js");
|
6
6
|
require("core-js/modules/web.dom-collections.iterator.js");
|
7
7
|
require("core-js/modules/es.array.slice.js");
|
8
|
+
require("core-js/modules/es.regexp.to-string.js");
|
8
9
|
require("core-js/modules/es.array.from.js");
|
9
10
|
require("core-js/modules/es.regexp.exec.js");
|
10
11
|
exports.__esModule = true;
|
@@ -55,32 +56,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
55
56
|
* @abstract
|
56
57
|
*/
|
57
58
|
var Table = /*#__PURE__*/function () {
|
58
|
-
/**
|
59
|
-
* The walkontable settings.
|
60
|
-
*
|
61
|
-
* @protected
|
62
|
-
* @type {Settings}
|
63
|
-
*/
|
64
|
-
|
65
|
-
/**
|
66
|
-
* Indicates if the table has height bigger than 0px.
|
67
|
-
*
|
68
|
-
* @type {boolean}
|
69
|
-
*/
|
70
|
-
|
71
|
-
/**
|
72
|
-
* Indicates if the table has width bigger than 0px.
|
73
|
-
*
|
74
|
-
* @type {boolean}
|
75
|
-
*/
|
76
|
-
|
77
|
-
/**
|
78
|
-
* Indicates if the table is visible. By visible, it means that the holder
|
79
|
-
* element has CSS 'display' property different than 'none'.
|
80
|
-
*
|
81
|
-
* @type {boolean}
|
82
|
-
*/
|
83
|
-
|
84
59
|
/**
|
85
60
|
*
|
86
61
|
* @abstract
|
@@ -93,13 +68,35 @@ var Table = /*#__PURE__*/function () {
|
|
93
68
|
function Table(dataAccessObject, facadeGetter, domBindings, wtSettings, name) {
|
94
69
|
var _this = this;
|
95
70
|
_classCallCheck(this, Table);
|
71
|
+
/**
|
72
|
+
* The walkontable settings.
|
73
|
+
*
|
74
|
+
* @protected
|
75
|
+
* @type {Settings}
|
76
|
+
*/
|
96
77
|
_defineProperty(this, "wtSettings", null);
|
97
78
|
_defineProperty(this, "domBindings", void 0);
|
98
79
|
_defineProperty(this, "TBODY", null);
|
99
80
|
_defineProperty(this, "THEAD", null);
|
100
81
|
_defineProperty(this, "COLGROUP", null);
|
82
|
+
/**
|
83
|
+
* Indicates if the table has height bigger than 0px.
|
84
|
+
*
|
85
|
+
* @type {boolean}
|
86
|
+
*/
|
101
87
|
_defineProperty(this, "hasTableHeight", true);
|
88
|
+
/**
|
89
|
+
* Indicates if the table has width bigger than 0px.
|
90
|
+
*
|
91
|
+
* @type {boolean}
|
92
|
+
*/
|
102
93
|
_defineProperty(this, "hasTableWidth", true);
|
94
|
+
/**
|
95
|
+
* Indicates if the table is visible. By visible, it means that the holder
|
96
|
+
* element has CSS 'display' property different than 'none'.
|
97
|
+
*
|
98
|
+
* @type {boolean}
|
99
|
+
*/
|
103
100
|
_defineProperty(this, "isTableVisible", false);
|
104
101
|
_defineProperty(this, "tableOffset", 0);
|
105
102
|
_defineProperty(this, "holderOffset", 0);
|
@@ -22,6 +22,7 @@ import "core-js/modules/es.array.iterator.js";
|
|
22
22
|
import "core-js/modules/es.string.iterator.js";
|
23
23
|
import "core-js/modules/web.dom-collections.iterator.js";
|
24
24
|
import "core-js/modules/es.array.slice.js";
|
25
|
+
import "core-js/modules/es.regexp.to-string.js";
|
25
26
|
import "core-js/modules/es.array.from.js";
|
26
27
|
import "core-js/modules/es.regexp.exec.js";
|
27
28
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
@@ -50,32 +51,6 @@ import { CLONE_TOP, CLONE_BOTTOM, CLONE_INLINE_START, CLONE_TOP_INLINE_START_COR
|
|
50
51
|
* @abstract
|
51
52
|
*/
|
52
53
|
var Table = /*#__PURE__*/function () {
|
53
|
-
/**
|
54
|
-
* The walkontable settings.
|
55
|
-
*
|
56
|
-
* @protected
|
57
|
-
* @type {Settings}
|
58
|
-
*/
|
59
|
-
|
60
|
-
/**
|
61
|
-
* Indicates if the table has height bigger than 0px.
|
62
|
-
*
|
63
|
-
* @type {boolean}
|
64
|
-
*/
|
65
|
-
|
66
|
-
/**
|
67
|
-
* Indicates if the table has width bigger than 0px.
|
68
|
-
*
|
69
|
-
* @type {boolean}
|
70
|
-
*/
|
71
|
-
|
72
|
-
/**
|
73
|
-
* Indicates if the table is visible. By visible, it means that the holder
|
74
|
-
* element has CSS 'display' property different than 'none'.
|
75
|
-
*
|
76
|
-
* @type {boolean}
|
77
|
-
*/
|
78
|
-
|
79
54
|
/**
|
80
55
|
*
|
81
56
|
* @abstract
|
@@ -88,13 +63,35 @@ var Table = /*#__PURE__*/function () {
|
|
88
63
|
function Table(dataAccessObject, facadeGetter, domBindings, wtSettings, name) {
|
89
64
|
var _this = this;
|
90
65
|
_classCallCheck(this, Table);
|
66
|
+
/**
|
67
|
+
* The walkontable settings.
|
68
|
+
*
|
69
|
+
* @protected
|
70
|
+
* @type {Settings}
|
71
|
+
*/
|
91
72
|
_defineProperty(this, "wtSettings", null);
|
92
73
|
_defineProperty(this, "domBindings", void 0);
|
93
74
|
_defineProperty(this, "TBODY", null);
|
94
75
|
_defineProperty(this, "THEAD", null);
|
95
76
|
_defineProperty(this, "COLGROUP", null);
|
77
|
+
/**
|
78
|
+
* Indicates if the table has height bigger than 0px.
|
79
|
+
*
|
80
|
+
* @type {boolean}
|
81
|
+
*/
|
96
82
|
_defineProperty(this, "hasTableHeight", true);
|
83
|
+
/**
|
84
|
+
* Indicates if the table has width bigger than 0px.
|
85
|
+
*
|
86
|
+
* @type {boolean}
|
87
|
+
*/
|
97
88
|
_defineProperty(this, "hasTableWidth", true);
|
89
|
+
/**
|
90
|
+
* Indicates if the table is visible. By visible, it means that the holder
|
91
|
+
* element has CSS 'display' property different than 'none'.
|
92
|
+
*
|
93
|
+
* @type {boolean}
|
94
|
+
*/
|
98
95
|
_defineProperty(this, "isTableVisible", false);
|
99
96
|
_defineProperty(this, "tableOffset", 0);
|
100
97
|
_defineProperty(this, "holderOffset", 0);
|
package/CHANGELOG.md
CHANGED
@@ -9,6 +9,62 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
9
9
|
|
10
10
|
<!-- UNVERSIONED -->
|
11
11
|
|
12
|
+
## [13.0.0] - 2023-06-22
|
13
|
+
|
14
|
+
### Added
|
15
|
+
|
16
|
+
- Angular: Added support for Angular 16. [#10396](https://github.com/handsontable/handsontable/pull/10396)
|
17
|
+
|
18
|
+
### Changed
|
19
|
+
|
20
|
+
- **Breaking change (React, Angular, Vue 2, Vue 3)**: Changed Handsontable's policy toward older versions of supported frameworks. From now on, Handsontable supports only those versions of any supported frameworks that are officially supported by their respective teams. Dropping Handsontable's support for any older framework versions won't be treated as a breaking change. [#10396](https://github.com/handsontable/handsontable/pull/10396)
|
21
|
+
- **Breaking change**: Changed the order in which three hooks are executed: now, the `beforeChange` hook is fired before the `afterSetDataAtCell` and `afterSetDataAtRowProp` hooks. [#10231](https://github.com/handsontable/handsontable/pull/10231)
|
22
|
+
- Changed the margins of the context menu in the RTL layout direction. [#10375](https://github.com/handsontable/handsontable/pull/10375)
|
23
|
+
|
24
|
+
### Removed
|
25
|
+
|
26
|
+
- **Breaking change (Angular)**: Dropped support for Angular 13 and lower. From now on, Handsontable supports only those versions of Angular that are officially supported by the Angular team: currently, it's 14-16. However, Handsontable 13.0.0 was thoroughly tested and, to the best of our knowledge, works correctly with versions down to Angular 12. [#10396](https://github.com/handsontable/handsontable/pull/10396)
|
27
|
+
- **Breaking change**: Removed the deprecated `beforeAutofillInsidePopulate` hook. [#10407](https://github.com/handsontable/handsontable/pull/10407)
|
28
|
+
- **Breaking change**: Removed the deprecated `getFirstNotHiddenIndex` method. Instead, use the `getNearestNotHiddenIndex()` method. [#10407](https://github.com/handsontable/handsontable/pull/10407)
|
29
|
+
- **Breaking change**: Removed the deprecated parameters of the `alter()` method: `insert_row` and `insert_col`. Instead, use the following parameters: `insert_row_above`, `insert_row_below`, `insert_col_start`, and `insert_col_end`. [#10407](https://github.com/handsontable/handsontable/pull/10407)
|
30
|
+
- **Breaking change**: Removed the deprecated parameters of the `populateFromArray()` method: `direction` and `deltas`. [#10407](https://github.com/handsontable/handsontable/pull/10407)
|
31
|
+
|
32
|
+
### Fixed
|
33
|
+
|
34
|
+
- Fixed an issue where the "Read only" icon of the context menu displayed incorrectly in the RTL layout direction. [#10375](https://github.com/handsontable/handsontable/pull/10375)
|
35
|
+
|
36
|
+
For more information on Handsontable 13.0.0, see:
|
37
|
+
|
38
|
+
- [Blog post (13.0.0)](https://handsontable.com/blog/handsontable-13-0-0-support-for-angular-16-and-new-frameworks-support-policy)
|
39
|
+
- [Documentation (13.0)](https://handsontable.com/docs/13.0)
|
40
|
+
- [Migration guide (12.4 → 13.0)](https://handsontable.com/docs/migration-from-12.4-to-13.0)
|
41
|
+
- [Release notes (13.0.0)](https://handsontable.com/docs/release-notes/#_13-0-0)
|
42
|
+
|
43
|
+
## [12.4.0] - 2023-05-23
|
44
|
+
|
45
|
+
### Added
|
46
|
+
|
47
|
+
- Added two new Handsontable hooks, `afterColumnSequenceChange` and `afterRowSequenceChange`, which are fired after changing the order of columns or rows, respectively. [#10215](https://github.com/handsontable/handsontable/pull/10215)
|
48
|
+
|
49
|
+
### Fixed
|
50
|
+
|
51
|
+
- Fixed numerous issues related to syncing Handsontable with HyperFormula. Now, formulas work properly with all the Handsontable features. [#10215](https://github.com/handsontable/handsontable/pull/10215)
|
52
|
+
- Fixed na issue where formulas didn't recalculate after rows or columns were moved. [#4668](https://github.com/handsontable/handsontable/issues/4668)
|
53
|
+
- Fixed an issue where Handsontable's dates didn't sync correctly with HyperFormula's dates. [#10085](https://github.com/handsontable/handsontable/issues/10085)
|
54
|
+
- Fixed an issue where calling `updateSettings()` would reset HyperFormula's undo/redo actions stack. [#10326](https://github.com/handsontable/handsontable/pull/10326)
|
55
|
+
- Fixed an issue where the `Autofill`, `TrimRows` and `Formulas` plugins didn't work properly together. [#10200](https://github.com/handsontable/handsontable/issues/10200)
|
56
|
+
- Fixed an issue where the `modifySourceData` hook used the wrong type of indexes. [#10215](https://github.com/handsontable/handsontable/pull/10215)
|
57
|
+
- Fixed an issue where text copied from Handsontable to Excel included wrong types of spaces. [#10017](https://github.com/handsontable/handsontable/issues/10017)
|
58
|
+
- Fixed an issue where mousing over the same cell twice didn't trigger the `beforeOnCellMouseOver` and `afterOnCellMouseOver` hooks. [#10321](https://github.com/handsontable/handsontable/pull/10321)
|
59
|
+
- Updated TypeScript definition files related to the `CustomBorders` plugin. [#10360](https://github.com/handsontable/handsontable/pull/10360)
|
60
|
+
- Fixed an issue where moving rows manually to the bottom was difficult due the misalignment between the backlight and guideline elements. [#9556](https://github.com/handsontable/handsontable/issues/9556)
|
61
|
+
|
62
|
+
For more information on Handsontable 12.4.0, see:
|
63
|
+
|
64
|
+
- [Blog post (12.4.0)](https://handsontable.com/blog/handsontable-12-4-0-auto-updating-formulas)
|
65
|
+
- [Documentation (12.4)](https://handsontable.com/docs/12.4)
|
66
|
+
- [Release notes (12.4.0)](https://handsontable.com/docs/release-notes/#_12-4-0)
|
67
|
+
|
12
68
|
## [12.3.3] - 2023-03-28
|
13
69
|
|
14
70
|
### Added
|
package/base.js
CHANGED
@@ -16,9 +16,7 @@ exports.CellRange = _src.CellRange;
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
17
|
// FIXME: Bug in eslint-plugin-import: https://github.com/benmosher/eslint-plugin-import/issues/1883
|
18
18
|
/* eslint-disable import/named */
|
19
|
-
|
20
19
|
/* eslint-enable import/named */
|
21
|
-
|
22
20
|
// register default mandatory cell type for the Base package
|
23
21
|
(0, _registry2.registerCellType)(_textType.TextCellType);
|
24
22
|
|
@@ -46,8 +44,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
|
|
46
44
|
Handsontable.CellCoords = _src.CellCoords;
|
47
45
|
Handsontable.CellRange = _src.CellRange;
|
48
46
|
Handsontable.packageName = 'handsontable';
|
49
|
-
Handsontable.buildDate = "
|
50
|
-
Handsontable.version = "0.0.0-next-
|
47
|
+
Handsontable.buildDate = "07/07/2023 07:19:32";
|
48
|
+
Handsontable.version = "0.0.0-next-e697250-20230707";
|
51
49
|
Handsontable.languages = {
|
52
50
|
dictionaryKeys: _registry.dictionaryKeys,
|
53
51
|
getLanguageDictionary: _registry.getLanguageDictionary,
|
package/base.mjs
CHANGED
@@ -35,8 +35,8 @@ Handsontable.hooks = Hooks.getSingleton();
|
|
35
35
|
Handsontable.CellCoords = CellCoords;
|
36
36
|
Handsontable.CellRange = CellRange;
|
37
37
|
Handsontable.packageName = 'handsontable';
|
38
|
-
Handsontable.buildDate = "
|
39
|
-
Handsontable.version = "0.0.0-next-
|
38
|
+
Handsontable.buildDate = "07/07/2023 07:19:47";
|
39
|
+
Handsontable.version = "0.0.0-next-e697250-20230707";
|
40
40
|
Handsontable.languages = {
|
41
41
|
dictionaryKeys: dictionaryKeys,
|
42
42
|
getLanguageDictionary: getLanguageDictionary,
|
package/common.d.ts
CHANGED
@@ -51,7 +51,7 @@ export interface RangeType {
|
|
51
51
|
*/
|
52
52
|
export type ChangeSource = 'auto' | 'edit' | 'loadData' | 'populateFromArray' | 'spliceCol' |
|
53
53
|
'spliceRow' | 'timeValidate' | 'dateValidate' | 'validateCells' |
|
54
|
-
'Autofill.fill' | 'ContextMenu.
|
54
|
+
'Autofill.fill' | 'ContextMenu.clearColumn' | 'ContextMenu.columnLeft' |
|
55
55
|
'ContextMenu.columnRight' | 'ContextMenu.removeColumn' |
|
56
56
|
'ContextMenu.removeRow' | 'ContextMenu.rowAbove' | 'ContextMenu.rowBelow' |
|
57
57
|
'CopyPaste.paste' | 'UndoRedo.redo' | 'UndoRedo.undo' | 'ColumnSummary.set' |
|