handsontable 0.0.0-next-9379dd1-20231020 → 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 +5 -40
- package/dist/handsontable.full.css +5 -40
- package/dist/handsontable.full.js +8038 -12837
- package/dist/handsontable.full.min.css +4 -4
- package/dist/handsontable.full.min.js +141 -141
- package/dist/handsontable.js +11488 -16287
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +21 -21
- 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} +308 -96
- package/plugins/contextMenu/{menu/menu.mjs → menu.mjs} +309 -97
- 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 +38 -97
- package/plugins/dropdownMenu/dropdownMenu.mjs +37 -96
- package/plugins/filters/constants.mjs +1 -1
- package/plugins/filters/filters.js +14 -31
- package/plugins/filters/filters.mjs +14 -31
- package/plugins/filters/ui/select.js +3 -3
- package/plugins/filters/ui/select.mjs +2 -2
- 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 +2 -20
- package/shortcuts/context.mjs +3 -20
- 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/index.js +0 -9
- package/plugins/contextMenu/menu/index.mjs +0 -1
- package/plugins/contextMenu/menu/navigator.js +0 -152
- package/plugins/contextMenu/menu/navigator.mjs +0 -148
- package/plugins/contextMenu/menu/positioner.js +0 -213
- package/plugins/contextMenu/menu/positioner.mjs +0 -209
- 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/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
@@ -9,7 +9,6 @@ import { objectEach } from "../../../helpers/object.mjs";
|
|
9
9
|
* @typedef SettingsPure
|
10
10
|
*
|
11
11
|
* @property {Option} facade @todo desc.
|
12
|
-
* @property {Option} ariaTags Option `ariaTags`.
|
13
12
|
* @property {Option} cellRenderer Option `cellRenderer`.
|
14
13
|
* @property {Option} columnHeaders Option `columnHeaders`.
|
15
14
|
* @property {Option} columnWidth Option `columnWidth`.
|
@@ -62,8 +61,6 @@ import { objectEach } from "../../../helpers/object.mjs";
|
|
62
61
|
* @property {?Option} onDraw Option `onDraw`.
|
63
62
|
* @property {?Option} onModifyGetCellCoords Option `onModifyGetCellCoords`.
|
64
63
|
* @property {?Option} onModifyRowHeaderWidth Option `onModifyRowHeaderWidth`.
|
65
|
-
* @property {?Option} onBeforeViewportScrollHorizontally Option `onBeforeViewportScrollHorizontally`.
|
66
|
-
* @property {?Option} onBeforeViewportScrollVertically Option `onBeforeViewportScrollVertically`.
|
67
64
|
* @property {?Option} onScrollHorizontally Option `onScrollHorizontally`.
|
68
65
|
* @property {?Option} onScrollVertically Option `onScrollVertically`.
|
69
66
|
* @property {?Option} onWindowResize Option `onWindowResize`.
|
@@ -189,7 +186,7 @@ export default class Settings {
|
|
189
186
|
onCellMouseOver: null,
|
190
187
|
onCellMouseOut: null,
|
191
188
|
onCellMouseUp: null,
|
192
|
-
//
|
189
|
+
// onCellMouseOut: null,
|
193
190
|
onCellDblClick: null,
|
194
191
|
onCellCornerMouseDown: null,
|
195
192
|
onCellCornerDblClick: null,
|
@@ -198,13 +195,8 @@ export default class Settings {
|
|
198
195
|
onBeforeRemoveCellClassNames: null,
|
199
196
|
onAfterDrawSelection: null,
|
200
197
|
onBeforeDrawBorders: null,
|
201
|
-
// viewport scroll hooks
|
202
|
-
onBeforeViewportScrollHorizontally: column => column,
|
203
|
-
onBeforeViewportScrollVertically: row => row,
|
204
|
-
// native scroll hooks
|
205
|
-
onScrollHorizontally: null,
|
206
198
|
onScrollVertically: null,
|
207
|
-
|
199
|
+
onScrollHorizontally: null,
|
208
200
|
onBeforeTouchScroll: null,
|
209
201
|
onAfterMomentumScroll: null,
|
210
202
|
onBeforeStretchingColumnWidth: width => width,
|
@@ -219,15 +211,14 @@ export default class Settings {
|
|
219
211
|
rowHeaderWidth: null,
|
220
212
|
columnHeaderHeight: null,
|
221
213
|
headerClassName: null,
|
222
|
-
rtlMode: false
|
223
|
-
ariaTags: true
|
214
|
+
rtlMode: false
|
224
215
|
};
|
225
216
|
}
|
226
217
|
|
227
218
|
/**
|
228
219
|
* Update settings.
|
229
220
|
*
|
230
|
-
* @param {object
|
221
|
+
* @param {object} settings The singular settings to update or if passed as object to merge with.
|
231
222
|
* @param {*} value The value to set if the first argument is passed as string.
|
232
223
|
* @returns {Settings}
|
233
224
|
*/
|
@@ -82,15 +82,6 @@ const calculatedColumns = {
|
|
82
82
|
*/
|
83
83
|
getVisibleColumnsCount() {
|
84
84
|
return this.dataAccessObject.countColumnsVisible;
|
85
|
-
},
|
86
|
-
/**
|
87
|
-
* Get the number of rendered row headers.
|
88
|
-
*
|
89
|
-
* @returns {number}
|
90
|
-
* @this Table
|
91
|
-
*/
|
92
|
-
getRowHeadersCount() {
|
93
|
-
return this.dataAccessObject.rowHeaders.length;
|
94
85
|
}
|
95
86
|
};
|
96
87
|
(0, _object.defineGetter)(calculatedColumns, 'MIXIN_NAME', MIXIN_NAME, {
|
@@ -79,15 +79,6 @@ const calculatedColumns = {
|
|
79
79
|
*/
|
80
80
|
getVisibleColumnsCount() {
|
81
81
|
return this.dataAccessObject.countColumnsVisible;
|
82
|
-
},
|
83
|
-
/**
|
84
|
-
* Get the number of rendered row headers.
|
85
|
-
*
|
86
|
-
* @returns {number}
|
87
|
-
* @this Table
|
88
|
-
*/
|
89
|
-
getRowHeadersCount() {
|
90
|
-
return this.dataAccessObject.rowHeaders.length;
|
91
82
|
}
|
92
83
|
};
|
93
84
|
defineGetter(calculatedColumns, 'MIXIN_NAME', MIXIN_NAME, {
|
@@ -82,15 +82,6 @@ const calculatedRows = {
|
|
82
82
|
*/
|
83
83
|
getVisibleRowsCount() {
|
84
84
|
return this.dataAccessObject.countRowsVisible;
|
85
|
-
},
|
86
|
-
/**
|
87
|
-
* Get the number of rendered column headers.
|
88
|
-
*
|
89
|
-
* @returns {number}
|
90
|
-
* @this Table
|
91
|
-
*/
|
92
|
-
getColumnHeadersCount() {
|
93
|
-
return this.dataAccessObject.columnHeaders.length;
|
94
85
|
}
|
95
86
|
};
|
96
87
|
(0, _object.defineGetter)(calculatedRows, 'MIXIN_NAME', MIXIN_NAME, {
|
@@ -79,15 +79,6 @@ const calculatedRows = {
|
|
79
79
|
*/
|
80
80
|
getVisibleRowsCount() {
|
81
81
|
return this.dataAccessObject.countRowsVisible;
|
82
|
-
},
|
83
|
-
/**
|
84
|
-
* Get the number of rendered column headers.
|
85
|
-
*
|
86
|
-
* @returns {number}
|
87
|
-
* @this Table
|
88
|
-
*/
|
89
|
-
getColumnHeadersCount() {
|
90
|
-
return this.dataAccessObject.columnHeaders.length;
|
91
82
|
}
|
92
83
|
};
|
93
84
|
defineGetter(calculatedRows, 'MIXIN_NAME', MIXIN_NAME, {
|
@@ -74,15 +74,6 @@ const stickyColumnsStart = {
|
|
74
74
|
*/
|
75
75
|
getVisibleColumnsCount() {
|
76
76
|
return this.getRenderedColumnsCount();
|
77
|
-
},
|
78
|
-
/**
|
79
|
-
* Get the number of rendered row headers.
|
80
|
-
*
|
81
|
-
* @returns {number}
|
82
|
-
* @this Table
|
83
|
-
*/
|
84
|
-
getRowHeadersCount() {
|
85
|
-
return this.dataAccessObject.rowHeaders.length;
|
86
77
|
}
|
87
78
|
};
|
88
79
|
(0, _object.defineGetter)(stickyColumnsStart, 'MIXIN_NAME', MIXIN_NAME, {
|
@@ -71,15 +71,6 @@ const stickyColumnsStart = {
|
|
71
71
|
*/
|
72
72
|
getVisibleColumnsCount() {
|
73
73
|
return this.getRenderedColumnsCount();
|
74
|
-
},
|
75
|
-
/**
|
76
|
-
* Get the number of rendered row headers.
|
77
|
-
*
|
78
|
-
* @returns {number}
|
79
|
-
* @this Table
|
80
|
-
*/
|
81
|
-
getRowHeadersCount() {
|
82
|
-
return this.dataAccessObject.rowHeaders.length;
|
83
74
|
}
|
84
75
|
};
|
85
76
|
defineGetter(stickyColumnsStart, 'MIXIN_NAME', MIXIN_NAME, {
|
@@ -79,15 +79,6 @@ const stickyRowsBottom = {
|
|
79
79
|
*/
|
80
80
|
getVisibleRowsCount() {
|
81
81
|
return this.getRenderedRowsCount();
|
82
|
-
},
|
83
|
-
/**
|
84
|
-
* Get the number of rendered column headers.
|
85
|
-
*
|
86
|
-
* @returns {number}
|
87
|
-
* @this Table
|
88
|
-
*/
|
89
|
-
getColumnHeadersCount() {
|
90
|
-
return 0;
|
91
82
|
}
|
92
83
|
};
|
93
84
|
(0, _object.defineGetter)(stickyRowsBottom, 'MIXIN_NAME', MIXIN_NAME, {
|
@@ -76,15 +76,6 @@ const stickyRowsBottom = {
|
|
76
76
|
*/
|
77
77
|
getVisibleRowsCount() {
|
78
78
|
return this.getRenderedRowsCount();
|
79
|
-
},
|
80
|
-
/**
|
81
|
-
* Get the number of rendered column headers.
|
82
|
-
*
|
83
|
-
* @returns {number}
|
84
|
-
* @this Table
|
85
|
-
*/
|
86
|
-
getColumnHeadersCount() {
|
87
|
-
return 0;
|
88
79
|
}
|
89
80
|
};
|
90
81
|
defineGetter(stickyRowsBottom, 'MIXIN_NAME', MIXIN_NAME, {
|
@@ -74,15 +74,6 @@ const stickyRowsTop = {
|
|
74
74
|
*/
|
75
75
|
getVisibleRowsCount() {
|
76
76
|
return this.getRenderedRowsCount();
|
77
|
-
},
|
78
|
-
/**
|
79
|
-
* Get the number of rendered column headers.
|
80
|
-
*
|
81
|
-
* @returns {number}
|
82
|
-
* @this Table
|
83
|
-
*/
|
84
|
-
getColumnHeadersCount() {
|
85
|
-
return this.dataAccessObject.columnHeaders.length;
|
86
77
|
}
|
87
78
|
};
|
88
79
|
(0, _object.defineGetter)(stickyRowsTop, 'MIXIN_NAME', MIXIN_NAME, {
|
@@ -71,15 +71,6 @@ const stickyRowsTop = {
|
|
71
71
|
*/
|
72
72
|
getVisibleRowsCount() {
|
73
73
|
return this.getRenderedRowsCount();
|
74
|
-
},
|
75
|
-
/**
|
76
|
-
* Get the number of rendered column headers.
|
77
|
-
*
|
78
|
-
* @returns {number}
|
79
|
-
* @this Table
|
80
|
-
*/
|
81
|
-
getColumnHeadersCount() {
|
82
|
-
return this.dataAccessObject.columnHeaders.length;
|
83
74
|
}
|
84
75
|
};
|
85
76
|
defineGetter(stickyRowsTop, 'MIXIN_NAME', MIXIN_NAME, {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
-
require("core-js/modules/es.error.cause.js");
|
5
4
|
require("core-js/modules/es.array.push.js");
|
5
|
+
require("core-js/modules/es.error.cause.js");
|
6
6
|
var _element = require("../../../helpers/dom/element");
|
7
7
|
var _function = require("../../../helpers/function");
|
8
8
|
var _column = _interopRequireDefault(require("./filter/column"));
|
@@ -11,7 +11,6 @@ var _renderer = require("./renderer");
|
|
11
11
|
var _column2 = _interopRequireDefault(require("./utils/column"));
|
12
12
|
var _row2 = _interopRequireDefault(require("./utils/row"));
|
13
13
|
var _overlay = require("./overlay");
|
14
|
-
var _a11y = require("../../../helpers/a11y");
|
15
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
16
15
|
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; }
|
17
16
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
@@ -171,9 +170,6 @@ class Table {
|
|
171
170
|
spreader.appendChild(table);
|
172
171
|
}
|
173
172
|
spreader.style.position = 'relative';
|
174
|
-
if (this.wtSettings.getSetting('ariaTags')) {
|
175
|
-
(0, _element.setAttribute)(spreader, [(0, _a11y.A11Y_PRESENTATION)()]);
|
176
|
-
}
|
177
173
|
return spreader;
|
178
174
|
}
|
179
175
|
|
@@ -193,9 +189,6 @@ class Table {
|
|
193
189
|
}
|
194
190
|
hider.appendChild(spreader);
|
195
191
|
}
|
196
|
-
if (this.wtSettings.getSetting('ariaTags')) {
|
197
|
-
(0, _element.setAttribute)(hider, [(0, _a11y.A11Y_PRESENTATION)()]);
|
198
|
-
}
|
199
192
|
return hider;
|
200
193
|
}
|
201
194
|
|
@@ -218,15 +211,9 @@ class Table {
|
|
218
211
|
if (this.isMaster) {
|
219
212
|
holder.parentNode.className += 'ht_master handsontable';
|
220
213
|
holder.parentNode.setAttribute('dir', this.wtSettings.getSettingPure('rtlMode') ? 'rtl' : 'ltr');
|
221
|
-
if (this.wtSettings.getSetting('ariaTags')) {
|
222
|
-
(0, _element.setAttribute)(holder.parentNode, [(0, _a11y.A11Y_PRESENTATION)()]);
|
223
|
-
}
|
224
214
|
}
|
225
215
|
holder.appendChild(hider);
|
226
216
|
}
|
227
|
-
if (this.wtSettings.getSetting('ariaTags')) {
|
228
|
-
(0, _element.setAttribute)(holder, [(0, _a11y.A11Y_PRESENTATION)()]);
|
229
|
-
}
|
230
217
|
return holder;
|
231
218
|
}
|
232
219
|
|
@@ -358,7 +345,7 @@ class Table {
|
|
358
345
|
wtOverlays.refreshAll(); // `refreshAll()` internally already calls `refreshSelections()` method
|
359
346
|
wtOverlays.adjustElementsSize();
|
360
347
|
} else {
|
361
|
-
this.
|
348
|
+
this.refreshSelections(runFastDraw);
|
362
349
|
}
|
363
350
|
if (syncScroll) {
|
364
351
|
wtOverlays.syncScrollWithMaster();
|
@@ -450,6 +437,75 @@ class Table {
|
|
450
437
|
}
|
451
438
|
}
|
452
439
|
|
440
|
+
/**
|
441
|
+
* @param {string} className The CSS class name to remove from the table cells.
|
442
|
+
*/
|
443
|
+
removeClassFromCells(className) {
|
444
|
+
const nodes = this.TABLE.querySelectorAll(`.${className}`);
|
445
|
+
for (let i = 0, len = nodes.length; i < len; i++) {
|
446
|
+
(0, _element.removeClass)(nodes[i], className);
|
447
|
+
}
|
448
|
+
}
|
449
|
+
|
450
|
+
/**
|
451
|
+
* Refresh the table selection by re-rendering Selection instances connected with that instance.
|
452
|
+
*
|
453
|
+
* @param {boolean} fastDraw If fast drawing is enabled than additionally className clearing is applied.
|
454
|
+
*/
|
455
|
+
refreshSelections(fastDraw) {
|
456
|
+
const {
|
457
|
+
wtSettings
|
458
|
+
} = this;
|
459
|
+
const {
|
460
|
+
selections
|
461
|
+
} = this.dataAccessObject;
|
462
|
+
if (!selections) {
|
463
|
+
return;
|
464
|
+
}
|
465
|
+
const highlights = Array.from(selections);
|
466
|
+
const len = highlights.length;
|
467
|
+
if (fastDraw) {
|
468
|
+
const classesToRemove = [];
|
469
|
+
for (let i = 0; i < len; i++) {
|
470
|
+
const {
|
471
|
+
highlightHeaderClassName,
|
472
|
+
highlightRowClassName,
|
473
|
+
highlightColumnClassName
|
474
|
+
} = highlights[i].settings;
|
475
|
+
const classNames = highlights[i].classNames;
|
476
|
+
const classNamesLength = classNames.length;
|
477
|
+
for (let j = 0; j < classNamesLength; j++) {
|
478
|
+
if (!classesToRemove.includes(classNames[j])) {
|
479
|
+
classesToRemove.push(classNames[j]);
|
480
|
+
}
|
481
|
+
}
|
482
|
+
if (highlightHeaderClassName && !classesToRemove.includes(highlightHeaderClassName)) {
|
483
|
+
classesToRemove.push(highlightHeaderClassName);
|
484
|
+
}
|
485
|
+
if (highlightRowClassName && !classesToRemove.includes(highlightRowClassName)) {
|
486
|
+
classesToRemove.push(highlightRowClassName);
|
487
|
+
}
|
488
|
+
if (highlightColumnClassName && !classesToRemove.includes(highlightColumnClassName)) {
|
489
|
+
classesToRemove.push(highlightColumnClassName);
|
490
|
+
}
|
491
|
+
}
|
492
|
+
const additionalClassesToRemove = wtSettings.getSetting('onBeforeRemoveCellClassNames');
|
493
|
+
if (Array.isArray(additionalClassesToRemove)) {
|
494
|
+
for (let i = 0; i < additionalClassesToRemove.length; i++) {
|
495
|
+
classesToRemove.push(additionalClassesToRemove[i]);
|
496
|
+
}
|
497
|
+
}
|
498
|
+
const classesToRemoveLength = classesToRemove.length;
|
499
|
+
for (let i = 0; i < classesToRemoveLength; i++) {
|
500
|
+
// there was no rerender, so we need to remove classNames by ourselves
|
501
|
+
this.removeClassFromCells(classesToRemove[i]);
|
502
|
+
}
|
503
|
+
}
|
504
|
+
for (let i = 0; i < len; i++) {
|
505
|
+
highlights[i].draw(this.facadeGetter(), fastDraw);
|
506
|
+
}
|
507
|
+
}
|
508
|
+
|
453
509
|
/**
|
454
510
|
* Get cell element at coords.
|
455
511
|
* Negative coords.row or coords.col are used to retrieve header cells. If there are multiple header levels, the
|
@@ -571,14 +627,14 @@ class Table {
|
|
571
627
|
*/
|
572
628
|
getRowHeader(row) {
|
573
629
|
let level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
630
|
+
if (this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0) === 0) {
|
631
|
+
return;
|
632
|
+
}
|
574
633
|
const rowHeadersCount = this.wtSettings.getSetting('rowHeaders').length;
|
575
634
|
if (level >= rowHeadersCount) {
|
576
635
|
return;
|
577
636
|
}
|
578
|
-
const
|
579
|
-
const visibleRow = renderedRow < 0 ? this.rowFilter.sourceRowToVisibleColHeadedRow(row) : renderedRow;
|
580
|
-
const parentElement = renderedRow < 0 ? this.THEAD : this.TBODY;
|
581
|
-
const TR = parentElement.childNodes[visibleRow];
|
637
|
+
const TR = this.TBODY.childNodes[this.rowFilter.sourceToRendered(row)];
|
582
638
|
return TR === null || TR === void 0 ? void 0 : TR.childNodes[level];
|
583
639
|
}
|
584
640
|
|
@@ -589,6 +645,9 @@ class Table {
|
|
589
645
|
* @returns {HTMLTableCellElement[]}
|
590
646
|
*/
|
591
647
|
getRowHeaders(row) {
|
648
|
+
if (this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0) === 0) {
|
649
|
+
return [];
|
650
|
+
}
|
592
651
|
const THs = [];
|
593
652
|
const rowHeadersCount = this.wtSettings.getSetting('rowHeaders').length;
|
594
653
|
for (let renderedRowIndex = 0; renderedRowIndex < rowHeadersCount; renderedRowIndex++) {
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import "core-js/modules/es.error.cause.js";
|
2
1
|
import "core-js/modules/es.array.push.js";
|
2
|
+
import "core-js/modules/es.error.cause.js";
|
3
3
|
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; }
|
4
4
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
5
5
|
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); }
|
6
|
-
import { hasClass, index, offset, removeTextNodes, overlayContainsElement, closest, outerHeight, outerWidth, innerHeight, isVisible
|
6
|
+
import { hasClass, index, offset, removeClass, removeTextNodes, overlayContainsElement, closest, outerHeight, outerWidth, innerHeight, isVisible } from "../../../helpers/dom/element.mjs";
|
7
7
|
import { isFunction } from "../../../helpers/function.mjs";
|
8
8
|
import ColumnFilter from "./filter/column.mjs";
|
9
9
|
import RowFilter from "./filter/row.mjs";
|
@@ -11,7 +11,6 @@ import { Renderer } from "./renderer/index.mjs";
|
|
11
11
|
import ColumnUtils from "./utils/column.mjs";
|
12
12
|
import RowUtils from "./utils/row.mjs";
|
13
13
|
import { CLONE_TOP, CLONE_BOTTOM, CLONE_INLINE_START, CLONE_TOP_INLINE_START_CORNER, CLONE_BOTTOM_INLINE_START_CORNER } from "./overlay/index.mjs";
|
14
|
-
import { A11Y_PRESENTATION } from "../../../helpers/a11y.mjs";
|
15
14
|
/**
|
16
15
|
* @todo These mixes are never added to the class Table, however their members are used here.
|
17
16
|
* @todo Continue: Potentially it works only, because some of these mixes are added to every inherited class.
|
@@ -167,9 +166,6 @@ class Table {
|
|
167
166
|
spreader.appendChild(table);
|
168
167
|
}
|
169
168
|
spreader.style.position = 'relative';
|
170
|
-
if (this.wtSettings.getSetting('ariaTags')) {
|
171
|
-
setAttribute(spreader, [A11Y_PRESENTATION()]);
|
172
|
-
}
|
173
169
|
return spreader;
|
174
170
|
}
|
175
171
|
|
@@ -189,9 +185,6 @@ class Table {
|
|
189
185
|
}
|
190
186
|
hider.appendChild(spreader);
|
191
187
|
}
|
192
|
-
if (this.wtSettings.getSetting('ariaTags')) {
|
193
|
-
setAttribute(hider, [A11Y_PRESENTATION()]);
|
194
|
-
}
|
195
188
|
return hider;
|
196
189
|
}
|
197
190
|
|
@@ -214,15 +207,9 @@ class Table {
|
|
214
207
|
if (this.isMaster) {
|
215
208
|
holder.parentNode.className += 'ht_master handsontable';
|
216
209
|
holder.parentNode.setAttribute('dir', this.wtSettings.getSettingPure('rtlMode') ? 'rtl' : 'ltr');
|
217
|
-
if (this.wtSettings.getSetting('ariaTags')) {
|
218
|
-
setAttribute(holder.parentNode, [A11Y_PRESENTATION()]);
|
219
|
-
}
|
220
210
|
}
|
221
211
|
holder.appendChild(hider);
|
222
212
|
}
|
223
|
-
if (this.wtSettings.getSetting('ariaTags')) {
|
224
|
-
setAttribute(holder, [A11Y_PRESENTATION()]);
|
225
|
-
}
|
226
213
|
return holder;
|
227
214
|
}
|
228
215
|
|
@@ -354,7 +341,7 @@ class Table {
|
|
354
341
|
wtOverlays.refreshAll(); // `refreshAll()` internally already calls `refreshSelections()` method
|
355
342
|
wtOverlays.adjustElementsSize();
|
356
343
|
} else {
|
357
|
-
this.
|
344
|
+
this.refreshSelections(runFastDraw);
|
358
345
|
}
|
359
346
|
if (syncScroll) {
|
360
347
|
wtOverlays.syncScrollWithMaster();
|
@@ -446,6 +433,75 @@ class Table {
|
|
446
433
|
}
|
447
434
|
}
|
448
435
|
|
436
|
+
/**
|
437
|
+
* @param {string} className The CSS class name to remove from the table cells.
|
438
|
+
*/
|
439
|
+
removeClassFromCells(className) {
|
440
|
+
const nodes = this.TABLE.querySelectorAll(`.${className}`);
|
441
|
+
for (let i = 0, len = nodes.length; i < len; i++) {
|
442
|
+
removeClass(nodes[i], className);
|
443
|
+
}
|
444
|
+
}
|
445
|
+
|
446
|
+
/**
|
447
|
+
* Refresh the table selection by re-rendering Selection instances connected with that instance.
|
448
|
+
*
|
449
|
+
* @param {boolean} fastDraw If fast drawing is enabled than additionally className clearing is applied.
|
450
|
+
*/
|
451
|
+
refreshSelections(fastDraw) {
|
452
|
+
const {
|
453
|
+
wtSettings
|
454
|
+
} = this;
|
455
|
+
const {
|
456
|
+
selections
|
457
|
+
} = this.dataAccessObject;
|
458
|
+
if (!selections) {
|
459
|
+
return;
|
460
|
+
}
|
461
|
+
const highlights = Array.from(selections);
|
462
|
+
const len = highlights.length;
|
463
|
+
if (fastDraw) {
|
464
|
+
const classesToRemove = [];
|
465
|
+
for (let i = 0; i < len; i++) {
|
466
|
+
const {
|
467
|
+
highlightHeaderClassName,
|
468
|
+
highlightRowClassName,
|
469
|
+
highlightColumnClassName
|
470
|
+
} = highlights[i].settings;
|
471
|
+
const classNames = highlights[i].classNames;
|
472
|
+
const classNamesLength = classNames.length;
|
473
|
+
for (let j = 0; j < classNamesLength; j++) {
|
474
|
+
if (!classesToRemove.includes(classNames[j])) {
|
475
|
+
classesToRemove.push(classNames[j]);
|
476
|
+
}
|
477
|
+
}
|
478
|
+
if (highlightHeaderClassName && !classesToRemove.includes(highlightHeaderClassName)) {
|
479
|
+
classesToRemove.push(highlightHeaderClassName);
|
480
|
+
}
|
481
|
+
if (highlightRowClassName && !classesToRemove.includes(highlightRowClassName)) {
|
482
|
+
classesToRemove.push(highlightRowClassName);
|
483
|
+
}
|
484
|
+
if (highlightColumnClassName && !classesToRemove.includes(highlightColumnClassName)) {
|
485
|
+
classesToRemove.push(highlightColumnClassName);
|
486
|
+
}
|
487
|
+
}
|
488
|
+
const additionalClassesToRemove = wtSettings.getSetting('onBeforeRemoveCellClassNames');
|
489
|
+
if (Array.isArray(additionalClassesToRemove)) {
|
490
|
+
for (let i = 0; i < additionalClassesToRemove.length; i++) {
|
491
|
+
classesToRemove.push(additionalClassesToRemove[i]);
|
492
|
+
}
|
493
|
+
}
|
494
|
+
const classesToRemoveLength = classesToRemove.length;
|
495
|
+
for (let i = 0; i < classesToRemoveLength; i++) {
|
496
|
+
// there was no rerender, so we need to remove classNames by ourselves
|
497
|
+
this.removeClassFromCells(classesToRemove[i]);
|
498
|
+
}
|
499
|
+
}
|
500
|
+
for (let i = 0; i < len; i++) {
|
501
|
+
highlights[i].draw(this.facadeGetter(), fastDraw);
|
502
|
+
}
|
503
|
+
}
|
504
|
+
|
449
505
|
/**
|
450
506
|
* Get cell element at coords.
|
451
507
|
* Negative coords.row or coords.col are used to retrieve header cells. If there are multiple header levels, the
|
@@ -567,14 +623,14 @@ class Table {
|
|
567
623
|
*/
|
568
624
|
getRowHeader(row) {
|
569
625
|
let level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
626
|
+
if (this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0) === 0) {
|
627
|
+
return;
|
628
|
+
}
|
570
629
|
const rowHeadersCount = this.wtSettings.getSetting('rowHeaders').length;
|
571
630
|
if (level >= rowHeadersCount) {
|
572
631
|
return;
|
573
632
|
}
|
574
|
-
const
|
575
|
-
const visibleRow = renderedRow < 0 ? this.rowFilter.sourceRowToVisibleColHeadedRow(row) : renderedRow;
|
576
|
-
const parentElement = renderedRow < 0 ? this.THEAD : this.TBODY;
|
577
|
-
const TR = parentElement.childNodes[visibleRow];
|
633
|
+
const TR = this.TBODY.childNodes[this.rowFilter.sourceToRendered(row)];
|
578
634
|
return TR === null || TR === void 0 ? void 0 : TR.childNodes[level];
|
579
635
|
}
|
580
636
|
|
@@ -585,6 +641,9 @@ class Table {
|
|
585
641
|
* @returns {HTMLTableCellElement[]}
|
586
642
|
*/
|
587
643
|
getRowHeaders(row) {
|
644
|
+
if (this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0) === 0) {
|
645
|
+
return [];
|
646
|
+
}
|
588
647
|
const THs = [];
|
589
648
|
const rowHeadersCount = this.wtSettings.getSetting('rowHeaders').length;
|
590
649
|
for (let renderedRowIndex = 0; renderedRowIndex < rowHeadersCount; renderedRowIndex++) {
|
package/base.js
CHANGED
@@ -43,8 +43,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
|
|
43
43
|
Handsontable.CellCoords = _src.CellCoords;
|
44
44
|
Handsontable.CellRange = _src.CellRange;
|
45
45
|
Handsontable.packageName = 'handsontable';
|
46
|
-
Handsontable.buildDate = "
|
47
|
-
Handsontable.version = "0.0.0-next-
|
46
|
+
Handsontable.buildDate = "25/10/2023 06:25:27";
|
47
|
+
Handsontable.version = "0.0.0-next-9059914-20231025";
|
48
48
|
Handsontable.languages = {
|
49
49
|
dictionaryKeys: _registry.dictionaryKeys,
|
50
50
|
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 = "25/10/2023 06:25:39";
|
39
|
+
Handsontable.version = "0.0.0-next-9059914-20231025";
|
40
40
|
Handsontable.languages = {
|
41
41
|
dictionaryKeys,
|
42
42
|
getLanguageDictionary,
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { CellTypeObject } from '../base';
|
2
2
|
import { DateEditor } from '../../editors/dateEditor';
|
3
|
-
import {
|
3
|
+
import { autocompleteRenderer } from '../../renderers/autocompleteRenderer';
|
4
4
|
import { dateValidator } from '../../validators/dateValidator';
|
5
5
|
|
6
6
|
export const CELL_TYPE: 'date';
|
7
7
|
export interface DateCellType extends CellTypeObject {
|
8
8
|
editor: typeof DateEditor;
|
9
|
-
renderer: typeof
|
9
|
+
renderer: typeof autocompleteRenderer;
|
10
10
|
validator: typeof dateValidator;
|
11
11
|
}
|
12
12
|
|
13
13
|
export namespace DateCellType {
|
14
14
|
export { DateEditor as editor };
|
15
|
-
export {
|
15
|
+
export { autocompleteRenderer as renderer };
|
16
16
|
export { dateValidator as validator };
|
17
17
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
var _dateEditor = require("../../editors/dateEditor");
|
5
|
-
var
|
5
|
+
var _autocompleteRenderer = require("../../renderers/autocompleteRenderer");
|
6
6
|
var _dateValidator = require("../../validators/dateValidator");
|
7
7
|
const CELL_TYPE = 'date';
|
8
8
|
exports.CELL_TYPE = CELL_TYPE;
|
@@ -10,7 +10,7 @@ const DateCellType = {
|
|
10
10
|
CELL_TYPE,
|
11
11
|
editor: _dateEditor.DateEditor,
|
12
12
|
// displays small gray arrow on right side of the cell
|
13
|
-
renderer:
|
13
|
+
renderer: _autocompleteRenderer.autocompleteRenderer,
|
14
14
|
validator: _dateValidator.dateValidator
|
15
15
|
};
|
16
16
|
exports.DateCellType = DateCellType;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { DateEditor } from "../../editors/dateEditor/index.mjs";
|
2
|
-
import {
|
2
|
+
import { autocompleteRenderer } from "../../renderers/autocompleteRenderer/index.mjs";
|
3
3
|
import { dateValidator } from "../../validators/dateValidator/index.mjs";
|
4
4
|
export const CELL_TYPE = 'date';
|
5
5
|
export const DateCellType = {
|
6
6
|
CELL_TYPE,
|
7
7
|
editor: DateEditor,
|
8
8
|
// displays small gray arrow on right side of the cell
|
9
|
-
renderer:
|
9
|
+
renderer: autocompleteRenderer,
|
10
10
|
validator: dateValidator
|
11
11
|
};
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { CellTypeObject } from '../base';
|
2
2
|
import { HandsontableEditor } from '../../editors/handsontableEditor';
|
3
|
-
import {
|
3
|
+
import { autocompleteRenderer } from '../../renderers/autocompleteRenderer';
|
4
4
|
|
5
5
|
export const CELL_TYPE: 'handsontable';
|
6
6
|
export interface HandsontableCellType extends CellTypeObject {
|
7
7
|
editor: typeof HandsontableEditor;
|
8
|
-
renderer: typeof
|
8
|
+
renderer: typeof autocompleteRenderer;
|
9
9
|
}
|
10
10
|
|
11
11
|
export namespace HandsontableCellType {
|
12
12
|
export { HandsontableEditor as editor };
|
13
|
-
export {
|
13
|
+
export { autocompleteRenderer as renderer };
|
14
14
|
}
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
var _handsontableEditor = require("../../editors/handsontableEditor");
|
5
|
-
var
|
5
|
+
var _autocompleteRenderer = require("../../renderers/autocompleteRenderer");
|
6
6
|
const CELL_TYPE = 'handsontable';
|
7
7
|
exports.CELL_TYPE = CELL_TYPE;
|
8
8
|
const HandsontableCellType = {
|
9
9
|
CELL_TYPE,
|
10
10
|
editor: _handsontableEditor.HandsontableEditor,
|
11
11
|
// displays small gray arrow on right side of the cell
|
12
|
-
renderer:
|
12
|
+
renderer: _autocompleteRenderer.autocompleteRenderer
|
13
13
|
};
|
14
14
|
exports.HandsontableCellType = HandsontableCellType;
|