handsontable 0.0.0-next-b0a4ea2-20231024 → 0.0.0-next-9059914-20231025
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/{selection/border/border.js → border.js} +12 -7
- package/3rdparty/walkontable/src/{selection/border/border.mjs → border.mjs} +12 -7
- package/3rdparty/walkontable/src/cell/coords.d.ts +1 -6
- package/3rdparty/walkontable/src/cell/coords.js +11 -50
- package/3rdparty/walkontable/src/cell/coords.mjs +11 -50
- package/3rdparty/walkontable/src/cell/range.d.ts +2 -9
- package/3rdparty/walkontable/src/cell/range.js +7 -38
- package/3rdparty/walkontable/src/cell/range.mjs +7 -38
- package/3rdparty/walkontable/src/core/_base.js +3 -9
- package/3rdparty/walkontable/src/core/_base.mjs +3 -9
- package/3rdparty/walkontable/src/core/clone.js +2 -2
- package/3rdparty/walkontable/src/core/clone.mjs +2 -2
- package/3rdparty/walkontable/src/core/core.js +2 -3
- package/3rdparty/walkontable/src/core/core.mjs +2 -3
- package/3rdparty/walkontable/src/event.js +10 -12
- package/3rdparty/walkontable/src/event.mjs +10 -12
- package/3rdparty/walkontable/src/facade/core.js +2 -2
- package/3rdparty/walkontable/src/facade/core.mjs +2 -2
- package/3rdparty/walkontable/src/index.js +2 -10
- package/3rdparty/walkontable/src/index.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/_base.js +2 -13
- package/3rdparty/walkontable/src/overlay/_base.mjs +3 -14
- package/3rdparty/walkontable/src/overlay/inlineStart.js +6 -2
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +6 -2
- package/3rdparty/walkontable/src/overlay/top.js +6 -2
- package/3rdparty/walkontable/src/overlay/top.mjs +6 -2
- package/3rdparty/walkontable/src/renderer/cells.js +0 -10
- package/3rdparty/walkontable/src/renderer/cells.mjs +1 -11
- package/3rdparty/walkontable/src/renderer/columnHeaders.js +0 -10
- package/3rdparty/walkontable/src/renderer/columnHeaders.mjs +1 -11
- package/3rdparty/walkontable/src/renderer/rowHeaders.js +0 -5
- package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +0 -5
- package/3rdparty/walkontable/src/renderer/rows.js +0 -13
- package/3rdparty/walkontable/src/renderer/rows.mjs +0 -13
- package/3rdparty/walkontable/src/renderer/table.js +0 -9
- package/3rdparty/walkontable/src/renderer/table.mjs +0 -9
- package/3rdparty/walkontable/src/scroll.js +0 -2
- package/3rdparty/walkontable/src/scroll.mjs +0 -2
- package/3rdparty/walkontable/src/selection.js +295 -0
- package/3rdparty/walkontable/src/selection.mjs +290 -0
- package/3rdparty/walkontable/src/settings.js +4 -13
- package/3rdparty/walkontable/src/settings.mjs +4 -13
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +0 -9
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +0 -9
- package/3rdparty/walkontable/src/table.js +78 -19
- package/3rdparty/walkontable/src/table.mjs +79 -20
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/cellTypes/dateType/dateType.d.ts +3 -3
- package/cellTypes/dateType/dateType.js +2 -2
- package/cellTypes/dateType/dateType.mjs +2 -2
- package/cellTypes/handsontableType/handsontableType.d.ts +3 -3
- package/cellTypes/handsontableType/handsontableType.js +2 -2
- package/cellTypes/handsontableType/handsontableType.mjs +2 -2
- package/cellTypes/index.d.ts +0 -3
- package/cellTypes/index.js +0 -4
- package/cellTypes/index.mjs +1 -3
- package/core.d.ts +4 -9
- package/core.js +327 -285
- package/core.mjs +327 -285
- package/dataMap/metaManager/metaSchema.js +0 -65
- package/dataMap/metaManager/metaSchema.mjs +0 -65
- package/dataMap/metaManager/mods/extendMetaProperties.js +1 -7
- package/dataMap/metaManager/mods/extendMetaProperties.mjs +1 -7
- package/dataMap/replaceData.js +0 -5
- package/dataMap/replaceData.mjs +0 -5
- package/dist/handsontable.css +15 -51
- package/dist/handsontable.full.css +15 -51
- package/dist/handsontable.full.js +8668 -14188
- package/dist/handsontable.full.min.css +7 -7
- package/dist/handsontable.full.min.js +136 -136
- package/dist/handsontable.js +22829 -28349
- package/dist/handsontable.min.css +6 -6
- package/dist/handsontable.min.js +24 -24
- package/dist/languages/all.js +2 -6
- package/dist/languages/all.min.js +1 -1
- package/dist/languages/en-US.js +1 -3
- package/dist/languages/en-US.min.js +1 -1
- package/dist/languages/pl-PL.js +1 -3
- package/dist/languages/pl-PL.min.js +1 -1
- package/editorManager.js +87 -15
- package/editorManager.mjs +87 -16
- package/editors/autocompleteEditor/autocompleteEditor.js +2 -53
- package/editors/autocompleteEditor/autocompleteEditor.mjs +3 -54
- package/editors/dateEditor/dateEditor.js +7 -26
- package/editors/dateEditor/dateEditor.mjs +8 -27
- package/editors/handsontableEditor/handsontableEditor.js +1 -9
- package/editors/handsontableEditor/handsontableEditor.mjs +2 -10
- package/editors/textEditor/textEditor.js +27 -19
- package/editors/textEditor/textEditor.mjs +30 -22
- package/helpers/dom/element.js +9 -188
- package/helpers/dom/element.mjs +9 -182
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/helpers/number.d.ts +0 -1
- package/helpers/number.js +0 -18
- package/helpers/number.mjs +0 -17
- package/i18n/constants.js +1 -7
- package/i18n/constants.mjs +1 -4
- package/i18n/languages/en-US.js +1 -3
- package/i18n/languages/en-US.mjs +1 -3
- package/i18n/languages/pl-PL.js +1 -3
- package/i18n/languages/pl-PL.mjs +1 -3
- package/languages/all.js +2 -6
- package/languages/en-US.js +1 -3
- package/languages/en-US.mjs +1 -3
- package/languages/index.js +2 -6
- package/languages/pl-PL.js +1 -3
- package/languages/pl-PL.mjs +1 -3
- package/package.json +99 -116
- package/pluginHooks.d.ts +1 -12
- package/pluginHooks.js +1 -152
- package/pluginHooks.mjs +1 -152
- package/plugins/collapsibleColumns/collapsibleColumns.js +4 -74
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +5 -75
- package/plugins/columnSorting/columnSorting.js +0 -43
- package/plugins/columnSorting/columnSorting.mjs +3 -44
- package/plugins/columnSorting/index.js +1 -3
- package/plugins/columnSorting/index.mjs +1 -1
- package/plugins/comments/commentEditor.js +0 -1
- package/plugins/comments/commentEditor.mjs +0 -1
- package/plugins/comments/comments.js +189 -252
- package/plugins/comments/comments.mjs +190 -251
- package/plugins/contextMenu/commandExecutor.js +3 -2
- package/plugins/contextMenu/commandExecutor.mjs +3 -2
- package/plugins/contextMenu/contextMenu.d.ts +1 -1
- package/plugins/contextMenu/contextMenu.js +36 -75
- package/plugins/contextMenu/contextMenu.mjs +35 -74
- package/plugins/contextMenu/{menu/cursor.mjs → cursor.js} +10 -4
- package/plugins/contextMenu/{menu/cursor.js → cursor.mjs} +4 -6
- package/plugins/contextMenu/itemsFactory.js +3 -2
- package/plugins/contextMenu/itemsFactory.mjs +4 -3
- package/plugins/contextMenu/{menu/menu.js → menu.js} +421 -145
- package/plugins/contextMenu/{menu/menu.mjs → menu.mjs} +422 -146
- package/plugins/contextMenu/predefinedItems/alignment.js +0 -7
- package/plugins/contextMenu/predefinedItems/alignment.mjs +0 -7
- package/plugins/contextMenu/predefinedItems/clearColumn.js +3 -5
- package/plugins/contextMenu/predefinedItems/clearColumn.mjs +3 -5
- package/plugins/contextMenu/predefinedItems/columnLeft.js +3 -5
- package/plugins/contextMenu/predefinedItems/columnLeft.mjs +3 -5
- package/plugins/contextMenu/predefinedItems/columnRight.js +3 -5
- package/plugins/contextMenu/predefinedItems/columnRight.mjs +3 -5
- package/plugins/contextMenu/predefinedItems/readOnly.js +0 -7
- package/plugins/contextMenu/predefinedItems/readOnly.mjs +0 -7
- package/plugins/contextMenu/predefinedItems/removeColumn.js +5 -7
- package/plugins/contextMenu/predefinedItems/removeColumn.mjs +3 -5
- package/plugins/contextMenu/predefinedItems/removeRow.js +5 -7
- package/plugins/contextMenu/predefinedItems/removeRow.mjs +3 -5
- package/plugins/contextMenu/predefinedItems/rowAbove.js +3 -5
- package/plugins/contextMenu/predefinedItems/rowAbove.mjs +3 -5
- package/plugins/contextMenu/predefinedItems/rowBelow.js +3 -5
- package/plugins/contextMenu/predefinedItems/rowBelow.mjs +3 -5
- package/plugins/contextMenu/{predefinedItems/index.js → predefinedItems.js} +14 -14
- package/plugins/contextMenu/predefinedItems.mjs +68 -0
- package/plugins/contextMenu/utils.js +151 -35
- package/plugins/contextMenu/utils.mjs +144 -35
- package/plugins/copyPaste/contextMenuItem/copy.js +0 -7
- package/plugins/copyPaste/contextMenuItem/copy.mjs +0 -7
- package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.js +1 -9
- package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.mjs +1 -9
- package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.js +1 -9
- package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.mjs +1 -9
- package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.js +1 -9
- package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.mjs +1 -9
- package/plugins/copyPaste/contextMenuItem/cut.js +0 -7
- package/plugins/copyPaste/contextMenuItem/cut.mjs +0 -7
- package/plugins/copyPaste/copyPaste.js +78 -127
- package/plugins/copyPaste/copyPaste.mjs +79 -128
- package/plugins/copyPaste/focusableElement.js +186 -0
- package/plugins/copyPaste/focusableElement.mjs +180 -0
- package/plugins/customBorders/customBorders.js +20 -23
- package/plugins/customBorders/customBorders.mjs +21 -24
- package/plugins/dropdownMenu/dropdownMenu.d.ts +1 -1
- package/plugins/dropdownMenu/dropdownMenu.js +40 -127
- package/plugins/dropdownMenu/dropdownMenu.mjs +39 -126
- package/plugins/filters/component/_base.js +8 -23
- package/plugins/filters/component/_base.mjs +8 -23
- package/plugins/filters/component/actionBar.js +27 -29
- package/plugins/filters/component/actionBar.mjs +23 -26
- package/plugins/filters/component/condition.js +59 -46
- package/plugins/filters/component/condition.mjs +52 -40
- package/plugins/filters/component/operators.js +22 -21
- package/plugins/filters/component/operators.mjs +18 -18
- package/plugins/filters/component/value.js +26 -35
- package/plugins/filters/component/value.mjs +22 -32
- package/plugins/filters/constants.mjs +1 -1
- package/plugins/filters/filters.js +62 -106
- package/plugins/filters/filters.mjs +55 -99
- package/plugins/filters/ui/_base.js +13 -35
- package/plugins/filters/ui/_base.mjs +13 -35
- package/plugins/filters/ui/input.js +32 -43
- package/plugins/filters/ui/input.mjs +30 -42
- package/plugins/filters/ui/link.js +12 -44
- package/plugins/filters/ui/link.mjs +11 -44
- package/plugins/filters/ui/multipleSelect.js +129 -234
- package/plugins/filters/ui/multipleSelect.mjs +127 -232
- package/plugins/filters/ui/radioInput.js +18 -42
- package/plugins/filters/ui/radioInput.mjs +17 -42
- package/plugins/filters/ui/select.js +75 -144
- package/plugins/filters/ui/select.mjs +72 -142
- package/plugins/hiddenColumns/hiddenColumns.mjs +1 -1
- package/plugins/hiddenRows/hiddenRows.mjs +1 -1
- package/plugins/manualColumnMove/manualColumnMove.js +1 -3
- package/plugins/manualColumnMove/manualColumnMove.mjs +1 -3
- package/plugins/mergeCells/mergeCells.js +16 -5
- package/plugins/mergeCells/mergeCells.mjs +16 -5
- package/plugins/multiColumnSorting/multiColumnSorting.js +2 -37
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +2 -37
- package/plugins/nestedHeaders/nestedHeaders.js +10 -240
- package/plugins/nestedHeaders/nestedHeaders.mjs +11 -241
- package/plugins/nestedHeaders/stateManager/index.js +3 -102
- package/plugins/nestedHeaders/stateManager/index.mjs +3 -102
- package/plugins/nestedRows/nestedRows.js +0 -41
- package/plugins/nestedRows/nestedRows.mjs +0 -41
- package/plugins/nestedRows/ui/headers.js +0 -11
- package/plugins/nestedRows/ui/headers.mjs +1 -12
- package/renderers/autocompleteRenderer/autocompleteRenderer.js +0 -8
- package/renderers/autocompleteRenderer/autocompleteRenderer.mjs +0 -8
- package/renderers/baseRenderer/baseRenderer.js +0 -17
- package/renderers/baseRenderer/baseRenderer.mjs +1 -18
- package/renderers/checkboxRenderer/checkboxRenderer.js +4 -9
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +4 -9
- package/renderers/index.d.ts +0 -9
- package/selection/highlight/constants.js +15 -0
- package/selection/highlight/constants.mjs +6 -0
- package/selection/highlight/highlight.js +71 -256
- package/selection/highlight/highlight.mjs +71 -250
- package/selection/highlight/types/activeHeader.js +8 -10
- package/selection/highlight/types/activeHeader.mjs +8 -10
- package/selection/highlight/types/area.js +18 -6
- package/selection/highlight/types/area.mjs +18 -6
- package/selection/highlight/types/{focus.js → cell.js} +7 -5
- package/selection/highlight/types/{focus.mjs → cell.mjs} +7 -5
- package/selection/highlight/types/customSelection.js +9 -7
- package/selection/highlight/types/customSelection.mjs +9 -7
- package/selection/highlight/types/fill.js +7 -5
- package/selection/highlight/types/fill.mjs +7 -5
- package/selection/highlight/types/header.js +18 -9
- package/selection/highlight/types/header.mjs +18 -9
- package/selection/highlight/types/index.js +35 -0
- package/selection/highlight/types/index.mjs +31 -0
- package/selection/highlight/visualSelection.js +27 -31
- package/selection/highlight/visualSelection.mjs +27 -31
- package/selection/index.js +7 -4
- package/selection/index.mjs +3 -2
- package/selection/mouseEventHandler.js +1 -7
- package/selection/mouseEventHandler.mjs +1 -7
- package/selection/range.js +8 -8
- package/selection/range.mjs +8 -8
- package/selection/selection.js +152 -321
- package/selection/selection.mjs +151 -318
- package/selection/transformation.js +90 -232
- package/selection/transformation.mjs +90 -232
- package/selection/utils.js +21 -15
- package/selection/utils.mjs +21 -16
- package/settings.d.ts +0 -4
- package/shortcuts/context.js +4 -23
- package/shortcuts/context.mjs +5 -23
- package/shortcuts/manager.js +7 -25
- package/shortcuts/manager.mjs +7 -26
- package/shortcuts/recorder.js +3 -3
- package/shortcuts/recorder.mjs +3 -3
- package/shortcuts/utils.js +5 -19
- package/shortcuts/utils.mjs +4 -18
- package/tableView.js +13 -111
- package/tableView.mjs +14 -112
- package/3rdparty/walkontable/src/selection/border/constants.js +0 -16
- package/3rdparty/walkontable/src/selection/border/constants.mjs +0 -12
- package/3rdparty/walkontable/src/selection/constants.js +0 -62
- package/3rdparty/walkontable/src/selection/constants.mjs +0 -51
- package/3rdparty/walkontable/src/selection/index.js +0 -26
- package/3rdparty/walkontable/src/selection/index.mjs +0 -5
- package/3rdparty/walkontable/src/selection/manager.js +0 -274
- package/3rdparty/walkontable/src/selection/manager.mjs +0 -269
- package/3rdparty/walkontable/src/selection/scanner.js +0 -270
- package/3rdparty/walkontable/src/selection/scanner.mjs +0 -267
- package/3rdparty/walkontable/src/selection/selection.js +0 -101
- package/3rdparty/walkontable/src/selection/selection.mjs +0 -96
- package/cellTypes/selectType/index.d.ts +0 -1
- package/cellTypes/selectType/index.js +0 -6
- package/cellTypes/selectType/index.mjs +0 -1
- package/cellTypes/selectType/selectType.d.ts +0 -14
- package/cellTypes/selectType/selectType.js +0 -13
- package/cellTypes/selectType/selectType.mjs +0 -8
- package/core/focusCatcher/focusDetector.js +0 -63
- package/core/focusCatcher/focusDetector.mjs +0 -59
- package/core/focusCatcher/index.js +0 -142
- package/core/focusCatcher/index.mjs +0 -138
- package/core/index.js +0 -9
- package/core/index.mjs +0 -1
- package/focusManager.d.ts +0 -12
- package/focusManager.js +0 -265
- package/focusManager.mjs +0 -261
- package/helpers/a11y.js +0 -79
- package/helpers/a11y.mjs +0 -38
- package/plugins/comments/contextMenuItem/addEditComment.js +0 -41
- package/plugins/comments/contextMenuItem/addEditComment.mjs +0 -35
- package/plugins/comments/contextMenuItem/readOnlyComment.js +0 -49
- package/plugins/comments/contextMenuItem/readOnlyComment.mjs +0 -43
- package/plugins/comments/contextMenuItem/removeComment.js +0 -38
- package/plugins/comments/contextMenuItem/removeComment.mjs +0 -32
- package/plugins/contextMenu/menu/defaultShortcutsList.js +0 -88
- package/plugins/contextMenu/menu/defaultShortcutsList.mjs +0 -84
- package/plugins/contextMenu/menu/index.js +0 -9
- package/plugins/contextMenu/menu/index.mjs +0 -1
- package/plugins/contextMenu/menu/menuItemRenderer.js +0 -58
- package/plugins/contextMenu/menu/menuItemRenderer.mjs +0 -54
- package/plugins/contextMenu/menu/navigator.js +0 -27
- package/plugins/contextMenu/menu/navigator.mjs +0 -23
- package/plugins/contextMenu/menu/positioner.js +0 -213
- package/plugins/contextMenu/menu/positioner.mjs +0 -209
- package/plugins/contextMenu/menu/shortcuts.js +0 -114
- package/plugins/contextMenu/menu/shortcuts.mjs +0 -110
- package/plugins/contextMenu/menu/utils.js +0 -177
- package/plugins/contextMenu/menu/utils.mjs +0 -163
- package/plugins/contextMenu/predefinedItems/index.mjs +0 -68
- package/plugins/filters/menu/focusController.js +0 -123
- package/plugins/filters/menu/focusController.mjs +0 -119
- package/plugins/filters/menu/focusNavigator.js +0 -30
- package/plugins/filters/menu/focusNavigator.mjs +0 -26
- package/renderers/dateRenderer/dateRenderer.d.ts +0 -5
- package/renderers/dateRenderer/dateRenderer.js +0 -29
- package/renderers/dateRenderer/dateRenderer.mjs +0 -24
- package/renderers/dateRenderer/index.d.ts +0 -1
- package/renderers/dateRenderer/index.js +0 -6
- package/renderers/dateRenderer/index.mjs +0 -1
- package/renderers/handsontableRenderer/handsontableRenderer.d.ts +0 -5
- package/renderers/handsontableRenderer/handsontableRenderer.js +0 -29
- package/renderers/handsontableRenderer/handsontableRenderer.mjs +0 -24
- package/renderers/handsontableRenderer/index.d.ts +0 -1
- package/renderers/handsontableRenderer/index.js +0 -6
- package/renderers/handsontableRenderer/index.mjs +0 -1
- package/renderers/selectRenderer/index.d.ts +0 -1
- package/renderers/selectRenderer/index.js +0 -6
- package/renderers/selectRenderer/index.mjs +0 -1
- package/renderers/selectRenderer/selectRenderer.d.ts +0 -5
- package/renderers/selectRenderer/selectRenderer.js +0 -27
- package/renderers/selectRenderer/selectRenderer.mjs +0 -22
- package/selection/highlight/types/areaLayered.js +0 -31
- package/selection/highlight/types/areaLayered.mjs +0 -26
- package/selection/highlight/types/column.js +0 -27
- package/selection/highlight/types/column.mjs +0 -22
- package/selection/highlight/types/row.js +0 -27
- package/selection/highlight/types/row.mjs +0 -22
- package/shortcutContexts/commands/editor/closeAndSave.js +0 -12
- package/shortcutContexts/commands/editor/closeAndSave.mjs +0 -8
- package/shortcutContexts/commands/editor/closeWithoutSaving.js +0 -12
- package/shortcutContexts/commands/editor/closeWithoutSaving.mjs +0 -8
- package/shortcutContexts/commands/editor/fastOpen.js +0 -16
- package/shortcutContexts/commands/editor/fastOpen.mjs +0 -12
- package/shortcutContexts/commands/editor/index.js +0 -16
- package/shortcutContexts/commands/editor/index.mjs +0 -12
- package/shortcutContexts/commands/editor/open.js +0 -27
- package/shortcutContexts/commands/editor/open.mjs +0 -23
- package/shortcutContexts/commands/emptySelectedCells.js +0 -11
- package/shortcutContexts/commands/emptySelectedCells.mjs +0 -7
- package/shortcutContexts/commands/extendCellsSelection/down.js +0 -15
- package/shortcutContexts/commands/extendCellsSelection/down.mjs +0 -11
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +0 -25
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +0 -21
- package/shortcutContexts/commands/extendCellsSelection/index.js +0 -26
- package/shortcutContexts/commands/extendCellsSelection/index.mjs +0 -22
- package/shortcutContexts/commands/extendCellsSelection/left.js +0 -15
- package/shortcutContexts/commands/extendCellsSelection/left.mjs +0 -11
- package/shortcutContexts/commands/extendCellsSelection/right.js +0 -15
- package/shortcutContexts/commands/extendCellsSelection/right.mjs +0 -11
- package/shortcutContexts/commands/extendCellsSelection/toColumns.js +0 -19
- package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +0 -15
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +0 -29
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +0 -25
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +0 -19
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +0 -15
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +0 -19
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +0 -15
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +0 -29
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +0 -25
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +0 -29
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +0 -25
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +0 -29
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +0 -25
- package/shortcutContexts/commands/extendCellsSelection/toRows.js +0 -19
- package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +0 -15
- package/shortcutContexts/commands/extendCellsSelection/up.js +0 -15
- package/shortcutContexts/commands/extendCellsSelection/up.mjs +0 -11
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +0 -25
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +0 -21
- package/shortcutContexts/commands/index.js +0 -35
- package/shortcutContexts/commands/index.mjs +0 -31
- package/shortcutContexts/commands/moveCellSelection/down.js +0 -13
- package/shortcutContexts/commands/moveCellSelection/down.mjs +0 -9
- package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.js +0 -33
- package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.mjs +0 -29
- package/shortcutContexts/commands/moveCellSelection/index.js +0 -28
- package/shortcutContexts/commands/moveCellSelection/index.mjs +0 -24
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +0 -12
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +0 -8
- package/shortcutContexts/commands/moveCellSelection/inlineStart.js +0 -12
- package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +0 -8
- package/shortcutContexts/commands/moveCellSelection/left.js +0 -10
- package/shortcutContexts/commands/moveCellSelection/left.mjs +0 -6
- package/shortcutContexts/commands/moveCellSelection/right.js +0 -10
- package/shortcutContexts/commands/moveCellSelection/right.mjs +0 -6
- package/shortcutContexts/commands/moveCellSelection/toMostBottom.js +0 -17
- package/shortcutContexts/commands/moveCellSelection/toMostBottom.mjs +0 -13
- package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.js +0 -18
- package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.mjs +0 -14
- package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.js +0 -14
- package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.mjs +0 -10
- package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.js +0 -17
- package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.mjs +0 -13
- package/shortcutContexts/commands/moveCellSelection/toMostLeft.js +0 -19
- package/shortcutContexts/commands/moveCellSelection/toMostLeft.mjs +0 -15
- package/shortcutContexts/commands/moveCellSelection/toMostRight.js +0 -21
- package/shortcutContexts/commands/moveCellSelection/toMostRight.mjs +0 -17
- package/shortcutContexts/commands/moveCellSelection/toMostTop.js +0 -17
- package/shortcutContexts/commands/moveCellSelection/toMostTop.mjs +0 -13
- package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.js +0 -19
- package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.mjs +0 -15
- package/shortcutContexts/commands/moveCellSelection/up.js +0 -13
- package/shortcutContexts/commands/moveCellSelection/up.mjs +0 -9
- package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.js +0 -33
- package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.mjs +0 -29
- package/shortcutContexts/commands/populateSelectedCellsData.js +0 -29
- package/shortcutContexts/commands/populateSelectedCellsData.mjs +0 -25
- package/shortcutContexts/commands/scrollToFocusedCell.js +0 -35
- package/shortcutContexts/commands/scrollToFocusedCell.mjs +0 -31
- package/shortcutContexts/commands/selectAll.js +0 -12
- package/shortcutContexts/commands/selectAll.mjs +0 -8
- package/shortcutContexts/constants.js +0 -13
- package/shortcutContexts/constants.mjs +0 -8
- package/shortcutContexts/editor.js +0 -25
- package/shortcutContexts/editor.mjs +0 -21
- package/shortcutContexts/grid.js +0 -163
- package/shortcutContexts/grid.mjs +0 -159
- package/shortcutContexts/index.js +0 -24
- package/shortcutContexts/index.mjs +0 -11
- package/utils/paginator.js +0 -151
- package/utils/paginator.mjs +0 -147
@@ -15,15 +15,15 @@ class Event {
|
|
15
15
|
* @param {Settings} wtSettings The walkontable settings.
|
16
16
|
* @param {EventManager} eventManager The walkontable event manager.
|
17
17
|
* @param {Table} wtTable The table.
|
18
|
-
* @param {
|
18
|
+
* @param {Selections} selections Selections.
|
19
19
|
* @param {Event} [parent=null] The main Event instance.
|
20
20
|
*/
|
21
|
-
constructor(facadeGetter, domBindings, wtSettings, eventManager, wtTable,
|
21
|
+
constructor(facadeGetter, domBindings, wtSettings, eventManager, wtTable, selections) {
|
22
22
|
let parent = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
|
23
23
|
this.wtSettings = wtSettings;
|
24
24
|
this.domBindings = domBindings;
|
25
25
|
this.wtTable = wtTable;
|
26
|
-
this.
|
26
|
+
this.selections = selections;
|
27
27
|
this.parent = parent;
|
28
28
|
|
29
29
|
/**
|
@@ -38,8 +38,7 @@ class Event {
|
|
38
38
|
* Should be use only for passing face called external origin methods, like registered event listeners.
|
39
39
|
* It provides backward compatibility by getting instance facade.
|
40
40
|
*
|
41
|
-
* @todo Consider about removing this from Event class, because it make relationship into facade (implicit circular
|
42
|
-
* dependency).
|
41
|
+
* @todo Consider about removing this from Event class, because it make relationship into facade (implicit circular dependency).
|
43
42
|
* @todo Con. Maybe passing listener caller as an ioc from faced resolves this issue. To rethink later.
|
44
43
|
*
|
45
44
|
* @type {FacadeGetter}
|
@@ -132,11 +131,11 @@ class Event {
|
|
132
131
|
cell.coords = this.wtTable.getCoords(TD);
|
133
132
|
cell.TD = TD;
|
134
133
|
} else if (hasClass(elem, 'wtBorder') && hasClass(elem, 'current')) {
|
135
|
-
cell.coords = this.
|
134
|
+
cell.coords = this.selections.getCell().cellRange.highlight;
|
136
135
|
cell.TD = this.wtTable.getCell(cell.coords);
|
137
136
|
} else if (hasClass(elem, 'wtBorder') && hasClass(elem, 'area')) {
|
138
|
-
if (this.
|
139
|
-
cell.coords = this.
|
137
|
+
if (this.selections.createOrGetArea().cellRange) {
|
138
|
+
cell.coords = this.selections.createOrGetArea().cellRange.to;
|
140
139
|
cell.TD = this.wtTable.getCell(cell.coords);
|
141
140
|
}
|
142
141
|
}
|
@@ -155,9 +154,8 @@ class Event {
|
|
155
154
|
const getParentNode = partial(getParent, event.target);
|
156
155
|
const realTarget = event.target;
|
157
156
|
|
158
|
-
// ignore
|
159
|
-
|
160
|
-
if (!['TD', 'TH'].includes(activeElement.nodeName) && (realTarget === activeElement || getParentNode(0) === activeElement || getParentNode(1) === activeElement)) {
|
157
|
+
// ignore focusable element from mouse down processing (https://github.com/handsontable/handsontable/issues/3555)
|
158
|
+
if (realTarget === activeElement || getParentNode(0) === activeElement || getParentNode(1) === activeElement) {
|
161
159
|
return;
|
162
160
|
}
|
163
161
|
const cell = this.parentCell(realTarget);
|
@@ -275,7 +273,7 @@ class Event {
|
|
275
273
|
*/
|
276
274
|
onTouchStart(event) {
|
277
275
|
const priv = privatePool.get(this);
|
278
|
-
priv.selectedCellBeforeTouchEnd = this.
|
276
|
+
priv.selectedCellBeforeTouchEnd = this.selections.getCell().cellRange;
|
279
277
|
this.touchApplied = true;
|
280
278
|
this.onMouseDown(event);
|
281
279
|
}
|
@@ -50,8 +50,8 @@ class WalkontableFacade {
|
|
50
50
|
return this._wot.cloneOverlay; // todo create facade
|
51
51
|
}
|
52
52
|
|
53
|
-
get
|
54
|
-
return this._wot.
|
53
|
+
get selections() {
|
54
|
+
return this._wot.selections; // todo create facade
|
55
55
|
}
|
56
56
|
|
57
57
|
get wtViewport() {
|
@@ -46,8 +46,8 @@ export default class WalkontableFacade {
|
|
46
46
|
return this._wot.cloneOverlay; // todo create facade
|
47
47
|
}
|
48
48
|
|
49
|
-
get
|
50
|
-
return this._wot.
|
49
|
+
get selections() {
|
50
|
+
return this._wot.selections; // todo create facade
|
51
51
|
}
|
52
52
|
|
53
53
|
get wtViewport() {
|
@@ -12,16 +12,8 @@ exports.CellRange = _range.default;
|
|
12
12
|
var _core = _interopRequireDefault(require("./facade/core"));
|
13
13
|
exports.default = _core.default;
|
14
14
|
exports.Core = _core.default;
|
15
|
-
var _selection = require("./selection");
|
16
|
-
exports.Selection = _selection.
|
17
|
-
exports.HIGHLIGHT_ACTIVE_HEADER_TYPE = _selection.ACTIVE_HEADER_TYPE;
|
18
|
-
exports.HIGHLIGHT_AREA_TYPE = _selection.AREA_TYPE;
|
19
|
-
exports.HIGHLIGHT_FOCUS_TYPE = _selection.FOCUS_TYPE;
|
20
|
-
exports.HIGHLIGHT_FILL_TYPE = _selection.FILL_TYPE;
|
21
|
-
exports.HIGHLIGHT_HEADER_TYPE = _selection.HEADER_TYPE;
|
22
|
-
exports.HIGHLIGHT_ROW_TYPE = _selection.ROW_TYPE;
|
23
|
-
exports.HIGHLIGHT_COLUMN_TYPE = _selection.COLUMN_TYPE;
|
24
|
-
exports.HIGHLIGHT_CUSTOM_SELECTION_TYPE = _selection.CUSTOM_SELECTION_TYPE;
|
15
|
+
var _selection = _interopRequireDefault(require("./selection"));
|
16
|
+
exports.Selection = _selection.default;
|
25
17
|
var Renderer = _interopRequireWildcard(require("./renderer"));
|
26
18
|
exports.Renderer = Renderer;
|
27
19
|
var _orderView = require("./utils/orderView");
|
@@ -3,8 +3,8 @@ import ViewportRowsCalculator from "./calculator/viewportRows.mjs";
|
|
3
3
|
import CellCoords from "./cell/coords.mjs";
|
4
4
|
import CellRange from "./cell/range.mjs";
|
5
5
|
import Walkontable from "./facade/core.mjs";
|
6
|
-
import
|
6
|
+
import Selection from "./selection.mjs";
|
7
7
|
import * as Renderer from "./renderer/index.mjs";
|
8
8
|
import { OrderView, SharedOrderView } from "./utils/orderView/index.mjs";
|
9
9
|
import { getListenersCounter } from "../../../eventManager.mjs";
|
10
|
-
export { ViewportColumnsCalculator, ViewportRowsCalculator, CellCoords, CellRange, Walkontable as default, Walkontable as Core, Selection,
|
10
|
+
export { ViewportColumnsCalculator, ViewportRowsCalculator, CellCoords, CellRange, Walkontable as default, Walkontable as Core, Selection, Renderer, OrderView, SharedOrderView, getListenersCounter };
|
@@ -8,7 +8,6 @@ var _array = require("../../../../helpers/array");
|
|
8
8
|
var _console = require("../../../../helpers/console");
|
9
9
|
var _constants = require("./constants");
|
10
10
|
var _clone = _interopRequireDefault(require("../core/clone"));
|
11
|
-
var _a11y = require("../../../../helpers/a11y");
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
12
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
14
13
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
@@ -242,8 +241,7 @@ class Overlay {
|
|
242
241
|
throw new Error(`Clone type "${this.type}" is not supported.`);
|
243
242
|
}
|
244
243
|
const {
|
245
|
-
wtTable
|
246
|
-
wtSettings
|
244
|
+
wtTable
|
247
245
|
} = this.wot;
|
248
246
|
const {
|
249
247
|
rootDocument,
|
@@ -262,16 +260,7 @@ class Overlay {
|
|
262
260
|
} else {
|
263
261
|
clone.style.left = 0;
|
264
262
|
}
|
265
|
-
if (wtSettings.getSetting('ariaTags')) {
|
266
|
-
(0, _element.setAttribute)(clone, [(0, _a11y.A11Y_PRESENTATION)()]);
|
267
|
-
}
|
268
263
|
clonedTable.className = wtTable.TABLE.className;
|
269
|
-
|
270
|
-
// Clone the main table's `role` attribute to the cloned table.
|
271
|
-
const mainTableRole = wtTable.TABLE.getAttribute('role');
|
272
|
-
if (mainTableRole) {
|
273
|
-
clonedTable.setAttribute('role', wtTable.TABLE.getAttribute('role'));
|
274
|
-
}
|
275
264
|
clone.appendChild(clonedTable);
|
276
265
|
tableParent.appendChild(clone);
|
277
266
|
const preventOverflow = this.wtSettings.getSetting('preventOverflow');
|
@@ -292,7 +281,7 @@ class Overlay {
|
|
292
281
|
// todo ioc , or factor func if used only here
|
293
282
|
event: this.wot.wtEvent,
|
294
283
|
// todo ioc , or factory func if used only here
|
295
|
-
|
284
|
+
selections: this.wot.selections // todo ioc , or factory func if used only here
|
296
285
|
});
|
297
286
|
}
|
298
287
|
|
@@ -2,13 +2,12 @@ import "core-js/modules/es.error.cause.js";
|
|
2
2
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
3
3
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
4
4
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
5
|
-
import { getScrollableElement, getTrimmingContainer, getScrollbarWidth
|
5
|
+
import { getScrollableElement, getTrimmingContainer, getScrollbarWidth } from "../../../../helpers/dom/element.mjs";
|
6
6
|
import { defineGetter } from "../../../../helpers/object.mjs";
|
7
7
|
import { arrayEach } from "../../../../helpers/array.mjs";
|
8
8
|
import { warn } from "../../../../helpers/console.mjs";
|
9
9
|
import { CLONE_TYPES, CLONE_CLASS_NAMES, CLONE_TOP, CLONE_INLINE_START } from "./constants.mjs";
|
10
10
|
import Clone from "../core/clone.mjs";
|
11
|
-
import { A11Y_PRESENTATION } from "../../../../helpers/a11y.mjs";
|
12
11
|
/**
|
13
12
|
* Creates an overlay over the original Walkontable instance. The overlay renders the clone of the original Walkontable
|
14
13
|
* and (optionally) implements behavior needed for native horizontal and vertical scrolling.
|
@@ -238,8 +237,7 @@ export class Overlay {
|
|
238
237
|
throw new Error(`Clone type "${this.type}" is not supported.`);
|
239
238
|
}
|
240
239
|
const {
|
241
|
-
wtTable
|
242
|
-
wtSettings
|
240
|
+
wtTable
|
243
241
|
} = this.wot;
|
244
242
|
const {
|
245
243
|
rootDocument,
|
@@ -258,16 +256,7 @@ export class Overlay {
|
|
258
256
|
} else {
|
259
257
|
clone.style.left = 0;
|
260
258
|
}
|
261
|
-
if (wtSettings.getSetting('ariaTags')) {
|
262
|
-
setAttribute(clone, [A11Y_PRESENTATION()]);
|
263
|
-
}
|
264
259
|
clonedTable.className = wtTable.TABLE.className;
|
265
|
-
|
266
|
-
// Clone the main table's `role` attribute to the cloned table.
|
267
|
-
const mainTableRole = wtTable.TABLE.getAttribute('role');
|
268
|
-
if (mainTableRole) {
|
269
|
-
clonedTable.setAttribute('role', wtTable.TABLE.getAttribute('role'));
|
270
|
-
}
|
271
260
|
clone.appendChild(clonedTable);
|
272
261
|
tableParent.appendChild(clone);
|
273
262
|
const preventOverflow = this.wtSettings.getSetting('preventOverflow');
|
@@ -288,7 +277,7 @@ export class Overlay {
|
|
288
277
|
// todo ioc , or factor func if used only here
|
289
278
|
event: this.wot.wtEvent,
|
290
279
|
// todo ioc , or factory func if used only here
|
291
|
-
|
280
|
+
selections: this.wot.selections // todo ioc , or factory func if used only here
|
292
281
|
});
|
293
282
|
}
|
294
283
|
|
@@ -5,7 +5,6 @@ require("core-js/modules/es.error.cause.js");
|
|
5
5
|
var _element = require("../../../../helpers/dom/element");
|
6
6
|
var _inlineStart = _interopRequireDefault(require("../table/inlineStart"));
|
7
7
|
var _base = require("./_base");
|
8
|
-
var _selection = require("../selection");
|
9
8
|
var _constants = require("./constants");
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11
10
|
/**
|
@@ -173,10 +172,15 @@ class InlineStartOverlay extends _base.Overlay {
|
|
173
172
|
* Adjust overlay root childs size.
|
174
173
|
*/
|
175
174
|
adjustRootChildrenSize() {
|
175
|
+
var _selections$getCell$g;
|
176
176
|
const {
|
177
177
|
holder
|
178
178
|
} = this.clone.wtTable;
|
179
|
-
const
|
179
|
+
const {
|
180
|
+
selections
|
181
|
+
} = this.wot;
|
182
|
+
const facade = this.facadeGetter();
|
183
|
+
const selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
|
180
184
|
this.clone.wtTable.hider.style.height = this.hider.style.height;
|
181
185
|
holder.style.height = holder.parentNode.style.height;
|
182
186
|
// Add selection corner protruding part to the holder total width to make sure that
|
@@ -2,7 +2,6 @@ import "core-js/modules/es.error.cause.js";
|
|
2
2
|
import { addClass, getScrollbarWidth, getScrollLeft, getWindowScrollTop, hasClass, outerWidth, removeClass, setOverlayPosition, resetCssTransform } from "../../../../helpers/dom/element.mjs";
|
3
3
|
import InlineStartOverlayTable from "../table/inlineStart.mjs";
|
4
4
|
import { Overlay } from "./_base.mjs";
|
5
|
-
import { CORNER_DEFAULT_STYLE } from "../selection/index.mjs";
|
6
5
|
import { CLONE_INLINE_START } from "./constants.mjs";
|
7
6
|
/**
|
8
7
|
* @class InlineStartOverlay
|
@@ -169,10 +168,15 @@ export class InlineStartOverlay extends Overlay {
|
|
169
168
|
* Adjust overlay root childs size.
|
170
169
|
*/
|
171
170
|
adjustRootChildrenSize() {
|
171
|
+
var _selections$getCell$g;
|
172
172
|
const {
|
173
173
|
holder
|
174
174
|
} = this.clone.wtTable;
|
175
|
-
const
|
175
|
+
const {
|
176
|
+
selections
|
177
|
+
} = this.wot;
|
178
|
+
const facade = this.facadeGetter();
|
179
|
+
const selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
|
176
180
|
this.clone.wtTable.hider.style.height = this.hider.style.height;
|
177
181
|
holder.style.height = holder.parentNode.style.height;
|
178
182
|
// Add selection corner protruding part to the holder total width to make sure that
|
@@ -5,7 +5,6 @@ require("core-js/modules/es.error.cause.js");
|
|
5
5
|
var _element = require("../../../../helpers/dom/element");
|
6
6
|
var _top = _interopRequireDefault(require("./../table/top"));
|
7
7
|
var _base = require("./_base");
|
8
|
-
var _selection = require("../selection");
|
9
8
|
var _constants = require("./constants");
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11
10
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
@@ -200,10 +199,15 @@ class TopOverlay extends _base.Overlay {
|
|
200
199
|
* Adjust overlay root childs size.
|
201
200
|
*/
|
202
201
|
adjustRootChildrenSize() {
|
202
|
+
var _selections$getCell$g;
|
203
203
|
const {
|
204
204
|
holder
|
205
205
|
} = this.clone.wtTable;
|
206
|
-
const
|
206
|
+
const {
|
207
|
+
selections
|
208
|
+
} = this.wot;
|
209
|
+
const facade = this.facadeGetter();
|
210
|
+
const selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
|
207
211
|
this.clone.wtTable.hider.style.width = this.hider.style.width;
|
208
212
|
holder.style.width = holder.parentNode.style.width;
|
209
213
|
// Add selection corner protruding part to the holder total height to make sure that
|
@@ -5,7 +5,6 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
|
|
5
5
|
import { addClass, getScrollbarWidth, getScrollTop, getWindowScrollLeft, hasClass, outerHeight, removeClass, setOverlayPosition, resetCssTransform } from "../../../../helpers/dom/element.mjs";
|
6
6
|
import TopOverlayTable from "./../table/top.mjs";
|
7
7
|
import { Overlay } from "./_base.mjs";
|
8
|
-
import { CORNER_DEFAULT_STYLE } from "../selection/index.mjs";
|
9
8
|
import { CLONE_TOP } from "./constants.mjs";
|
10
9
|
/**
|
11
10
|
* @class TopOverlay
|
@@ -196,10 +195,15 @@ export class TopOverlay extends Overlay {
|
|
196
195
|
* Adjust overlay root childs size.
|
197
196
|
*/
|
198
197
|
adjustRootChildrenSize() {
|
198
|
+
var _selections$getCell$g;
|
199
199
|
const {
|
200
200
|
holder
|
201
201
|
} = this.clone.wtTable;
|
202
|
-
const
|
202
|
+
const {
|
203
|
+
selections
|
204
|
+
} = this.wot;
|
205
|
+
const facade = this.facadeGetter();
|
206
|
+
const selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
|
203
207
|
this.clone.wtTable.hider.style.width = this.hider.style.width;
|
204
208
|
holder.style.width = holder.parentNode.style.width;
|
205
209
|
// Add selection corner protruding part to the holder total height to make sure that
|
@@ -4,7 +4,6 @@ exports.__esModule = true;
|
|
4
4
|
var _element = require("./../../../../helpers/dom/element");
|
5
5
|
var _orderView = require("./../utils/orderView");
|
6
6
|
var _base = _interopRequireDefault(require("./_base"));
|
7
|
-
var _a11y = require("../../../../helpers/a11y");
|
8
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
9
8
|
/**
|
10
9
|
* Cell renderer responsible for managing (inserting, tracking, rendering) TD elements.
|
@@ -83,16 +82,7 @@ class CellsRenderer extends _base.default {
|
|
83
82
|
}
|
84
83
|
TD.removeAttribute('style');
|
85
84
|
TD.removeAttribute('dir');
|
86
|
-
|
87
|
-
// Remove all accessibility-related attributes for the cell to start fresh.
|
88
|
-
(0, _element.removeAttribute)(TD, [new RegExp('aria-(.*)'), new RegExp('role')]);
|
89
85
|
this.table.cellRenderer(sourceRowIndex, sourceColumnIndex, TD);
|
90
|
-
if (this.table.isAriaEnabled()) {
|
91
|
-
var _this$table$rowUtils$, _this$table$rowUtils;
|
92
|
-
(0, _element.setAttribute)(TD, [...(TD.hasAttribute('role') ? [] : [(0, _a11y.A11Y_GRIDCELL)()]), (0, _a11y.A11Y_TABINDEX)(-1),
|
93
|
-
// `aria-colindex` is incremented by both tbody and thead rows.
|
94
|
-
(0, _a11y.A11Y_COLINDEX)(sourceColumnIndex + ((_this$table$rowUtils$ = (_this$table$rowUtils = this.table.rowUtils) === null || _this$table$rowUtils === void 0 || (_this$table$rowUtils = _this$table$rowUtils.dataAccessObject) === null || _this$table$rowUtils === void 0 ? void 0 : _this$table$rowUtils.rowHeaders.length) !== null && _this$table$rowUtils$ !== void 0 ? _this$table$rowUtils$ : 0) + 1)]);
|
95
|
-
}
|
96
86
|
}
|
97
87
|
orderView.end();
|
98
88
|
}
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { hasClass
|
1
|
+
import { hasClass } from "./../../../../helpers/dom/element.mjs";
|
2
2
|
import { SharedOrderView } from "./../utils/orderView/index.mjs";
|
3
3
|
import BaseRenderer from "./_base.mjs";
|
4
|
-
import { A11Y_COLINDEX, A11Y_GRIDCELL, A11Y_TABINDEX } from "../../../../helpers/a11y.mjs";
|
5
4
|
/**
|
6
5
|
* Cell renderer responsible for managing (inserting, tracking, rendering) TD elements.
|
7
6
|
*
|
@@ -79,16 +78,7 @@ export default class CellsRenderer extends BaseRenderer {
|
|
79
78
|
}
|
80
79
|
TD.removeAttribute('style');
|
81
80
|
TD.removeAttribute('dir');
|
82
|
-
|
83
|
-
// Remove all accessibility-related attributes for the cell to start fresh.
|
84
|
-
removeAttribute(TD, [new RegExp('aria-(.*)'), new RegExp('role')]);
|
85
81
|
this.table.cellRenderer(sourceRowIndex, sourceColumnIndex, TD);
|
86
|
-
if (this.table.isAriaEnabled()) {
|
87
|
-
var _this$table$rowUtils$, _this$table$rowUtils;
|
88
|
-
setAttribute(TD, [...(TD.hasAttribute('role') ? [] : [A11Y_GRIDCELL()]), A11Y_TABINDEX(-1),
|
89
|
-
// `aria-colindex` is incremented by both tbody and thead rows.
|
90
|
-
A11Y_COLINDEX(sourceColumnIndex + ((_this$table$rowUtils$ = (_this$table$rowUtils = this.table.rowUtils) === null || _this$table$rowUtils === void 0 || (_this$table$rowUtils = _this$table$rowUtils.dataAccessObject) === null || _this$table$rowUtils === void 0 ? void 0 : _this$table$rowUtils.rowHeaders.length) !== null && _this$table$rowUtils$ !== void 0 ? _this$table$rowUtils$ : 0) + 1)]);
|
91
|
-
}
|
92
82
|
}
|
93
83
|
orderView.end();
|
94
84
|
}
|
@@ -3,7 +3,6 @@
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
var _element = require("./../../../../helpers/dom/element");
|
5
5
|
var _base = _interopRequireDefault(require("./_base"));
|
6
|
-
var _a11y = require("../../../../helpers/a11y");
|
7
6
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
8
7
|
/**
|
9
8
|
* Column headers renderer responsible for managing (inserting, tracking, rendering) TR and TH elements.
|
@@ -70,9 +69,6 @@ class ColumnHeadersRenderer extends _base.default {
|
|
70
69
|
const {
|
71
70
|
columnHeadersCount
|
72
71
|
} = this.table;
|
73
|
-
if (this.table.isAriaEnabled()) {
|
74
|
-
(0, _element.setAttribute)(this.rootNode, [(0, _a11y.A11Y_PRESENTATION)()]);
|
75
|
-
}
|
76
72
|
for (let rowHeaderIndex = 0; rowHeaderIndex < columnHeadersCount; rowHeaderIndex += 1) {
|
77
73
|
const {
|
78
74
|
columnHeaderFunctions,
|
@@ -80,18 +76,12 @@ class ColumnHeadersRenderer extends _base.default {
|
|
80
76
|
rowHeadersCount
|
81
77
|
} = this.table;
|
82
78
|
const TR = this.rootNode.childNodes[rowHeaderIndex];
|
83
|
-
if (this.table.isAriaEnabled()) {
|
84
|
-
(0, _element.setAttribute)(TR, [(0, _a11y.A11Y_ROW)(), (0, _a11y.A11Y_ROWINDEX)(rowHeaderIndex + 1)]);
|
85
|
-
}
|
86
79
|
for (let renderedColumnIndex = -1 * rowHeadersCount; renderedColumnIndex < columnsToRender; renderedColumnIndex += 1) {
|
87
80
|
// eslint-disable-line max-len
|
88
81
|
const sourceColumnIndex = this.table.renderedColumnToSource(renderedColumnIndex);
|
89
82
|
const TH = TR.childNodes[renderedColumnIndex + rowHeadersCount];
|
90
83
|
TH.className = '';
|
91
84
|
TH.removeAttribute('style');
|
92
|
-
if (this.table.isAriaEnabled()) {
|
93
|
-
(0, _element.setAttribute)(TH, [(0, _a11y.A11Y_COLINDEX)(renderedColumnIndex + 1 + this.table.rowHeadersCount), (0, _a11y.A11Y_TABINDEX)(-1), ...(renderedColumnIndex < 0 ? [(0, _a11y.A11Y_PRESENTATION)()] : [(0, _a11y.A11Y_COLUMNHEADER)(), (0, _a11y.A11Y_SCOPE_COL)()])]);
|
94
|
-
}
|
95
85
|
columnHeaderFunctions[rowHeaderIndex](sourceColumnIndex, TH, rowHeaderIndex);
|
96
86
|
}
|
97
87
|
}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { empty
|
1
|
+
import { empty } from "./../../../../helpers/dom/element.mjs";
|
2
2
|
import BaseRenderer from "./_base.mjs";
|
3
|
-
import { A11Y_COLINDEX, A11Y_COLUMNHEADER, A11Y_PRESENTATION, A11Y_ROW, A11Y_ROWINDEX, A11Y_SCOPE_COL, A11Y_TABINDEX } from "../../../../helpers/a11y.mjs";
|
4
3
|
/**
|
5
4
|
* Column headers renderer responsible for managing (inserting, tracking, rendering) TR and TH elements.
|
6
5
|
*
|
@@ -66,9 +65,6 @@ export default class ColumnHeadersRenderer extends BaseRenderer {
|
|
66
65
|
const {
|
67
66
|
columnHeadersCount
|
68
67
|
} = this.table;
|
69
|
-
if (this.table.isAriaEnabled()) {
|
70
|
-
setAttribute(this.rootNode, [A11Y_PRESENTATION()]);
|
71
|
-
}
|
72
68
|
for (let rowHeaderIndex = 0; rowHeaderIndex < columnHeadersCount; rowHeaderIndex += 1) {
|
73
69
|
const {
|
74
70
|
columnHeaderFunctions,
|
@@ -76,18 +72,12 @@ export default class ColumnHeadersRenderer extends BaseRenderer {
|
|
76
72
|
rowHeadersCount
|
77
73
|
} = this.table;
|
78
74
|
const TR = this.rootNode.childNodes[rowHeaderIndex];
|
79
|
-
if (this.table.isAriaEnabled()) {
|
80
|
-
setAttribute(TR, [A11Y_ROW(), A11Y_ROWINDEX(rowHeaderIndex + 1)]);
|
81
|
-
}
|
82
75
|
for (let renderedColumnIndex = -1 * rowHeadersCount; renderedColumnIndex < columnsToRender; renderedColumnIndex += 1) {
|
83
76
|
// eslint-disable-line max-len
|
84
77
|
const sourceColumnIndex = this.table.renderedColumnToSource(renderedColumnIndex);
|
85
78
|
const TH = TR.childNodes[renderedColumnIndex + rowHeadersCount];
|
86
79
|
TH.className = '';
|
87
80
|
TH.removeAttribute('style');
|
88
|
-
if (this.table.isAriaEnabled()) {
|
89
|
-
setAttribute(TH, [A11Y_COLINDEX(renderedColumnIndex + 1 + this.table.rowHeadersCount), A11Y_TABINDEX(-1), ...(renderedColumnIndex < 0 ? [A11Y_PRESENTATION()] : [A11Y_COLUMNHEADER(), A11Y_SCOPE_COL()])]);
|
90
|
-
}
|
91
81
|
columnHeaderFunctions[rowHeaderIndex](sourceColumnIndex, TH, rowHeaderIndex);
|
92
82
|
}
|
93
83
|
}
|
@@ -3,8 +3,6 @@
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
var _orderView = require("./../utils/orderView");
|
5
5
|
var _base = _interopRequireDefault(require("./_base"));
|
6
|
-
var _element = require("../../../../helpers/dom/element");
|
7
|
-
var _a11y = require("../../../../helpers/a11y");
|
8
6
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
9
7
|
/**
|
10
8
|
* Row headers renderer responsible for managing (inserting, tracking, rendering) TR elements belongs to TR.
|
@@ -76,9 +74,6 @@ class RowHeadersRenderer extends _base.default {
|
|
76
74
|
const TH = orderView.getCurrentNode();
|
77
75
|
TH.className = '';
|
78
76
|
TH.removeAttribute('style');
|
79
|
-
if (this.table.isAriaEnabled()) {
|
80
|
-
(0, _element.setAttribute)(TH, [(0, _a11y.A11Y_ROWHEADER)(), (0, _a11y.A11Y_SCOPE_ROW)(), (0, _a11y.A11Y_COLINDEX)(visibleColumnIndex + 1), (0, _a11y.A11Y_TABINDEX)(-1)]);
|
81
|
-
}
|
82
77
|
rowHeaderFunctions[visibleColumnIndex](sourceRowIndex, TH, visibleColumnIndex);
|
83
78
|
}
|
84
79
|
orderView.end();
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import { SharedOrderView } from "./../utils/orderView/index.mjs";
|
2
2
|
import BaseRenderer from "./_base.mjs";
|
3
|
-
import { setAttribute } from "../../../../helpers/dom/element.mjs";
|
4
|
-
import { A11Y_COLINDEX, A11Y_ROWHEADER, A11Y_SCOPE_ROW, A11Y_TABINDEX } from "../../../../helpers/a11y.mjs";
|
5
3
|
/**
|
6
4
|
* Row headers renderer responsible for managing (inserting, tracking, rendering) TR elements belongs to TR.
|
7
5
|
*
|
@@ -72,9 +70,6 @@ export default class RowHeadersRenderer extends BaseRenderer {
|
|
72
70
|
const TH = orderView.getCurrentNode();
|
73
71
|
TH.className = '';
|
74
72
|
TH.removeAttribute('style');
|
75
|
-
if (this.table.isAriaEnabled()) {
|
76
|
-
setAttribute(TH, [A11Y_ROWHEADER(), A11Y_SCOPE_ROW(), A11Y_COLINDEX(visibleColumnIndex + 1), A11Y_TABINDEX(-1)]);
|
77
|
-
}
|
78
73
|
rowHeaderFunctions[visibleColumnIndex](sourceRowIndex, TH, visibleColumnIndex);
|
79
74
|
}
|
80
75
|
orderView.end();
|
@@ -5,8 +5,6 @@ var _console = require("./../../../../helpers/console");
|
|
5
5
|
var _templateLiteralTag = require("./../../../../helpers/templateLiteralTag");
|
6
6
|
var _orderView = require("./../utils/orderView");
|
7
7
|
var _base = _interopRequireDefault(require("./_base"));
|
8
|
-
var _element = require("../../../../helpers/dom/element");
|
9
|
-
var _a11y = require("../../../../helpers/a11y");
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11
9
|
let performanceWarningAppeared = false;
|
12
10
|
|
@@ -55,20 +53,9 @@ class RowsRenderer extends _base.default {
|
|
55
53
|
(0, _console.warn)((0, _templateLiteralTag.toSingleLine)`Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting\x20
|
56
54
|
the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.`);
|
57
55
|
}
|
58
|
-
if (this.table.isAriaEnabled()) {
|
59
|
-
(0, _element.setAttribute)(this.rootNode, [(0, _a11y.A11Y_PRESENTATION)()]);
|
60
|
-
}
|
61
56
|
this.orderView.setSize(rowsToRender).setOffset(this.table.renderedRowToSource(0)).start();
|
62
57
|
for (let visibleRowIndex = 0; visibleRowIndex < rowsToRender; visibleRowIndex++) {
|
63
58
|
this.orderView.render();
|
64
|
-
const TR = this.orderView.getCurrentNode();
|
65
|
-
const sourceRowIndex = this.table.renderedRowToSource(visibleRowIndex);
|
66
|
-
if (this.table.isAriaEnabled()) {
|
67
|
-
var _this$table$rowUtils$, _this$table$rowUtils;
|
68
|
-
(0, _element.setAttribute)(TR, [(0, _a11y.A11Y_ROW)(),
|
69
|
-
// `aria-rowindex` is incremented by both tbody and thead rows.
|
70
|
-
(0, _a11y.A11Y_ROWINDEX)(sourceRowIndex + ((_this$table$rowUtils$ = (_this$table$rowUtils = this.table.rowUtils) === null || _this$table$rowUtils === void 0 || (_this$table$rowUtils = _this$table$rowUtils.dataAccessObject) === null || _this$table$rowUtils === void 0 ? void 0 : _this$table$rowUtils.columnHeaders.length) !== null && _this$table$rowUtils$ !== void 0 ? _this$table$rowUtils$ : 0) + 1)]);
|
71
|
-
}
|
72
59
|
}
|
73
60
|
this.orderView.end();
|
74
61
|
}
|
@@ -2,8 +2,6 @@ import { warn } from "./../../../../helpers/console.mjs";
|
|
2
2
|
import { toSingleLine } from "./../../../../helpers/templateLiteralTag.mjs";
|
3
3
|
import { OrderView } from "./../utils/orderView/index.mjs";
|
4
4
|
import BaseRenderer from "./_base.mjs";
|
5
|
-
import { setAttribute } from "../../../../helpers/dom/element.mjs";
|
6
|
-
import { A11Y_PRESENTATION, A11Y_ROW, A11Y_ROWINDEX } from "../../../../helpers/a11y.mjs";
|
7
5
|
let performanceWarningAppeared = false;
|
8
6
|
|
9
7
|
/**
|
@@ -51,20 +49,9 @@ export default class RowsRenderer extends BaseRenderer {
|
|
51
49
|
warn(toSingleLine`Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting\x20
|
52
50
|
the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.`);
|
53
51
|
}
|
54
|
-
if (this.table.isAriaEnabled()) {
|
55
|
-
setAttribute(this.rootNode, [A11Y_PRESENTATION()]);
|
56
|
-
}
|
57
52
|
this.orderView.setSize(rowsToRender).setOffset(this.table.renderedRowToSource(0)).start();
|
58
53
|
for (let visibleRowIndex = 0; visibleRowIndex < rowsToRender; visibleRowIndex++) {
|
59
54
|
this.orderView.render();
|
60
|
-
const TR = this.orderView.getCurrentNode();
|
61
|
-
const sourceRowIndex = this.table.renderedRowToSource(visibleRowIndex);
|
62
|
-
if (this.table.isAriaEnabled()) {
|
63
|
-
var _this$table$rowUtils$, _this$table$rowUtils;
|
64
|
-
setAttribute(TR, [A11Y_ROW(),
|
65
|
-
// `aria-rowindex` is incremented by both tbody and thead rows.
|
66
|
-
A11Y_ROWINDEX(sourceRowIndex + ((_this$table$rowUtils$ = (_this$table$rowUtils = this.table.rowUtils) === null || _this$table$rowUtils === void 0 || (_this$table$rowUtils = _this$table$rowUtils.dataAccessObject) === null || _this$table$rowUtils === void 0 ? void 0 : _this$table$rowUtils.columnHeaders.length) !== null && _this$table$rowUtils$ !== void 0 ? _this$table$rowUtils$ : 0) + 1)]);
|
67
|
-
}
|
68
55
|
}
|
69
56
|
this.orderView.end();
|
70
57
|
}
|
@@ -257,15 +257,6 @@ class TableRenderer {
|
|
257
257
|
return this.columnFilter.renderedToSource(columnIndex);
|
258
258
|
}
|
259
259
|
|
260
|
-
/**
|
261
|
-
* Returns `true` if the accessibility-related ARIA tags should be added to the table, `false` otherwise.
|
262
|
-
*
|
263
|
-
* @returns {boolean}
|
264
|
-
*/
|
265
|
-
isAriaEnabled() {
|
266
|
-
return this.rowUtils.wtSettings.getSetting('ariaTags');
|
267
|
-
}
|
268
|
-
|
269
260
|
/**
|
270
261
|
* Renders the table.
|
271
262
|
*/
|
@@ -254,15 +254,6 @@ export default class TableRenderer {
|
|
254
254
|
return this.columnFilter.renderedToSource(columnIndex);
|
255
255
|
}
|
256
256
|
|
257
|
-
/**
|
258
|
-
* Returns `true` if the accessibility-related ARIA tags should be added to the table, `false` otherwise.
|
259
|
-
*
|
260
|
-
* @returns {boolean}
|
261
|
-
*/
|
262
|
-
isAriaEnabled() {
|
263
|
-
return this.rowUtils.wtSettings.getSetting('ariaTags');
|
264
|
-
}
|
265
|
-
|
266
257
|
/**
|
267
258
|
* Renders the table.
|
268
259
|
*/
|
@@ -88,7 +88,6 @@ class Scroll {
|
|
88
88
|
return false;
|
89
89
|
}
|
90
90
|
let result = false;
|
91
|
-
column = this.dataAccessObject.wtSettings.getSetting('onBeforeViewportScrollHorizontally', column);
|
92
91
|
|
93
92
|
// if there is no fully visible columns use the supporting variable (lastScrolledColumnPos) to
|
94
93
|
// determine the snapping direction (left or right)
|
@@ -138,7 +137,6 @@ class Scroll {
|
|
138
137
|
return false;
|
139
138
|
}
|
140
139
|
let result = false;
|
141
|
-
row = this.dataAccessObject.wtSettings.getSetting('onBeforeViewportScrollVertically', row);
|
142
140
|
|
143
141
|
// if there is no fully visible rows use the supporting variable (lastScrolledRowPos) to
|
144
142
|
// determine the snapping direction (top or bottom)
|
@@ -85,7 +85,6 @@ class Scroll {
|
|
85
85
|
return false;
|
86
86
|
}
|
87
87
|
let result = false;
|
88
|
-
column = this.dataAccessObject.wtSettings.getSetting('onBeforeViewportScrollHorizontally', column);
|
89
88
|
|
90
89
|
// if there is no fully visible columns use the supporting variable (lastScrolledColumnPos) to
|
91
90
|
// determine the snapping direction (left or right)
|
@@ -135,7 +134,6 @@ class Scroll {
|
|
135
134
|
return false;
|
136
135
|
}
|
137
136
|
let result = false;
|
138
|
-
row = this.dataAccessObject.wtSettings.getSetting('onBeforeViewportScrollVertically', row);
|
139
137
|
|
140
138
|
// if there is no fully visible rows use the supporting variable (lastScrolledRowPos) to
|
141
139
|
// determine the snapping direction (top or bottom)
|