handsontable 13.1.0 → 14.0.0-next-e8f87aa-20231030
Sign up to get free protection for your applications and to get access to all the features.
- package/3rdparty/walkontable/src/calculator/constants.js +3 -6
- package/3rdparty/walkontable/src/calculator/viewportColumns.js +1 -2
- package/3rdparty/walkontable/src/calculator/viewportRows.js +1 -2
- package/3rdparty/walkontable/src/cell/coords.d.ts +8 -1
- package/3rdparty/walkontable/src/cell/coords.js +81 -13
- package/3rdparty/walkontable/src/cell/coords.mjs +80 -11
- package/3rdparty/walkontable/src/cell/range.d.ts +9 -2
- package/3rdparty/walkontable/src/cell/range.js +39 -9
- package/3rdparty/walkontable/src/cell/range.mjs +38 -7
- package/3rdparty/walkontable/src/core/_base.js +9 -3
- package/3rdparty/walkontable/src/core/_base.mjs +9 -3
- 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 +3 -2
- package/3rdparty/walkontable/src/core/core.mjs +3 -2
- package/3rdparty/walkontable/src/event.js +13 -12
- package/3rdparty/walkontable/src/event.mjs +12 -10
- package/3rdparty/walkontable/src/facade/core.js +2 -2
- package/3rdparty/walkontable/src/facade/core.mjs +2 -2
- package/3rdparty/walkontable/src/filter/column.js +1 -2
- package/3rdparty/walkontable/src/filter/row.js +1 -2
- package/3rdparty/walkontable/src/index.js +12 -4
- package/3rdparty/walkontable/src/index.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/_base.js +13 -2
- package/3rdparty/walkontable/src/overlay/_base.mjs +14 -3
- package/3rdparty/walkontable/src/overlay/constants.js +7 -14
- package/3rdparty/walkontable/src/overlay/inlineStart.js +2 -6
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +2 -6
- package/3rdparty/walkontable/src/overlay/top.js +2 -6
- package/3rdparty/walkontable/src/overlay/top.mjs +2 -6
- package/3rdparty/walkontable/src/overlays.js +1 -2
- package/3rdparty/walkontable/src/renderer/cells.js +10 -0
- package/3rdparty/walkontable/src/renderer/cells.mjs +11 -1
- package/3rdparty/walkontable/src/renderer/columnHeaders.js +13 -0
- package/3rdparty/walkontable/src/renderer/columnHeaders.mjs +14 -1
- package/3rdparty/walkontable/src/renderer/rowHeaders.js +8 -0
- package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +8 -0
- package/3rdparty/walkontable/src/renderer/rows.js +13 -0
- package/3rdparty/walkontable/src/renderer/rows.mjs +13 -0
- package/3rdparty/walkontable/src/renderer/table.js +9 -0
- package/3rdparty/walkontable/src/renderer/table.mjs +9 -0
- package/3rdparty/walkontable/src/scroll.js +3 -2
- package/3rdparty/walkontable/src/scroll.mjs +2 -0
- package/3rdparty/walkontable/src/{border.js → selection/border/border.js} +8 -14
- package/3rdparty/walkontable/src/{border.mjs → selection/border/border.mjs} +7 -12
- package/3rdparty/walkontable/src/selection/border/constants.js +15 -0
- package/3rdparty/walkontable/src/selection/border/constants.mjs +12 -0
- package/3rdparty/walkontable/src/selection/constants.js +54 -0
- package/3rdparty/walkontable/src/selection/constants.mjs +51 -0
- package/3rdparty/walkontable/src/selection/index.js +26 -0
- package/3rdparty/walkontable/src/selection/index.mjs +5 -0
- package/3rdparty/walkontable/src/selection/manager.js +274 -0
- package/3rdparty/walkontable/src/selection/manager.mjs +269 -0
- package/3rdparty/walkontable/src/selection/scanner.js +270 -0
- package/3rdparty/walkontable/src/selection/scanner.mjs +267 -0
- package/3rdparty/walkontable/src/selection/selection.js +100 -0
- package/3rdparty/walkontable/src/selection/selection.mjs +96 -0
- package/3rdparty/walkontable/src/settings.js +13 -4
- package/3rdparty/walkontable/src/settings.mjs +13 -4
- package/3rdparty/walkontable/src/table/bottom.js +1 -2
- package/3rdparty/walkontable/src/table/bottomInlineStartCorner.js +1 -2
- package/3rdparty/walkontable/src/table/inlineStart.js +1 -2
- package/3rdparty/walkontable/src/table/master.js +3 -6
- package/3rdparty/walkontable/src/table/master.mjs +2 -4
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +10 -2
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +10 -2
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +10 -2
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +10 -2
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +10 -2
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +9 -0
- package/3rdparty/walkontable/src/table/top.js +1 -2
- package/3rdparty/walkontable/src/table/topInlineStartCorner.js +1 -2
- package/3rdparty/walkontable/src/table.js +20 -80
- package/3rdparty/walkontable/src/table.mjs +20 -79
- package/3rdparty/walkontable/src/utils/orderView/constants.js +3 -6
- package/3rdparty/walkontable/src/viewport.js +1 -2
- package/CHANGELOG.md +51 -0
- package/base.js +3 -4
- package/base.mjs +2 -2
- package/cellTypes/autocompleteType/autocompleteType.js +3 -5
- package/cellTypes/checkboxType/checkboxType.js +3 -5
- package/cellTypes/dateType/dateType.d.ts +3 -3
- package/cellTypes/dateType/dateType.js +5 -7
- package/cellTypes/dateType/dateType.mjs +2 -2
- package/cellTypes/dropdownType/dropdownType.js +3 -5
- package/cellTypes/handsontableType/handsontableType.d.ts +3 -3
- package/cellTypes/handsontableType/handsontableType.js +5 -7
- package/cellTypes/handsontableType/handsontableType.mjs +2 -2
- package/cellTypes/index.d.ts +3 -0
- package/cellTypes/index.js +4 -0
- package/cellTypes/index.mjs +3 -1
- package/cellTypes/numericType/numericType.js +3 -5
- package/cellTypes/passwordType/passwordType.js +3 -5
- package/cellTypes/selectType/index.d.ts +1 -0
- package/cellTypes/selectType/index.js +6 -0
- package/cellTypes/selectType/index.mjs +1 -0
- package/cellTypes/selectType/selectType.d.ts +14 -0
- package/cellTypes/selectType/selectType.js +11 -0
- package/cellTypes/selectType/selectType.mjs +8 -0
- package/cellTypes/textType/textType.js +3 -5
- package/cellTypes/timeType/timeType.js +3 -5
- package/common.d.ts +1 -1
- package/core/focusCatcher/focusDetector.js +63 -0
- package/core/focusCatcher/focusDetector.mjs +59 -0
- package/core/focusCatcher/index.js +148 -0
- package/core/focusCatcher/index.mjs +144 -0
- package/core/index.js +9 -0
- package/core/index.mjs +1 -0
- package/core.d.ts +10 -5
- package/core.js +327 -359
- package/core.mjs +327 -359
- package/dataMap/dataMap.js +1 -2
- package/dataMap/dataSource.js +1 -2
- package/dataMap/metaManager/metaSchema.js +65 -0
- package/dataMap/metaManager/metaSchema.mjs +65 -0
- package/dataMap/metaManager/mods/extendMetaProperties.js +7 -1
- package/dataMap/metaManager/mods/extendMetaProperties.mjs +7 -1
- package/dataMap/replaceData.js +5 -0
- package/dataMap/replaceData.mjs +5 -0
- package/dist/handsontable.css +94 -76
- package/dist/handsontable.full.css +94 -76
- package/dist/handsontable.full.js +23133 -15992
- package/dist/handsontable.full.min.css +8 -8
- package/dist/handsontable.full.min.js +170 -152
- package/dist/handsontable.js +21856 -15085
- package/dist/handsontable.min.css +7 -7
- package/dist/handsontable.min.js +30 -22
- package/dist/languages/all.js +47 -40
- package/dist/languages/all.min.js +1 -1
- package/dist/languages/ar-AR.js +1 -2
- package/dist/languages/cs-CZ.js +1 -2
- package/dist/languages/de-CH.js +1 -2
- package/dist/languages/de-DE.js +1 -2
- package/dist/languages/en-US.js +15 -3
- package/dist/languages/en-US.min.js +1 -1
- package/dist/languages/es-MX.js +1 -2
- package/dist/languages/fr-FR.js +1 -2
- package/dist/languages/it-IT.js +1 -2
- package/dist/languages/ja-JP.js +1 -2
- package/dist/languages/ko-KR.js +1 -2
- package/dist/languages/lv-LV.js +1 -2
- package/dist/languages/nb-NO.js +1 -2
- package/dist/languages/nl-NL.js +1 -2
- package/dist/languages/pl-PL.js +15 -3
- package/dist/languages/pl-PL.min.js +1 -1
- package/dist/languages/pt-BR.js +1 -2
- package/dist/languages/ru-RU.js +1 -2
- package/dist/languages/sr-SP.js +1 -2
- package/dist/languages/zh-CN.js +1 -2
- package/dist/languages/zh-TW.js +1 -2
- package/editorManager.js +17 -91
- package/editorManager.mjs +16 -87
- package/editors/autocompleteEditor/autocompleteEditor.js +65 -11
- package/editors/autocompleteEditor/autocompleteEditor.mjs +65 -10
- package/editors/baseEditor/baseEditor.js +19 -13
- package/editors/baseEditor/baseEditor.mjs +16 -7
- package/editors/checkboxEditor/checkboxEditor.js +1 -2
- package/editors/dateEditor/dateEditor.js +27 -9
- package/editors/dateEditor/dateEditor.mjs +27 -8
- package/editors/dropdownEditor/dropdownEditor.js +1 -2
- package/editors/handsontableEditor/handsontableEditor.js +14 -7
- package/editors/handsontableEditor/handsontableEditor.mjs +14 -6
- package/editors/numericEditor/numericEditor.js +1 -2
- package/editors/passwordEditor/passwordEditor.js +1 -2
- package/editors/selectEditor/selectEditor.js +1 -2
- package/editors/textEditor/textEditor.js +20 -29
- package/editors/textEditor/textEditor.mjs +22 -30
- package/editors/timeEditor/timeEditor.js +1 -2
- package/eventManager.js +1 -2
- package/focusManager.d.ts +12 -0
- package/focusManager.js +265 -0
- package/focusManager.mjs +261 -0
- package/helpers/a11y.js +81 -0
- package/helpers/a11y.mjs +39 -0
- package/helpers/dom/element.js +224 -12
- package/helpers/dom/element.mjs +216 -10
- package/helpers/dom/event.d.ts +1 -0
- package/helpers/dom/event.js +25 -0
- package/helpers/dom/event.mjs +24 -0
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/helpers/number.d.ts +1 -0
- package/helpers/number.js +18 -0
- package/helpers/number.mjs +17 -0
- package/helpers/unicode.js +1 -2
- package/i18n/constants.js +97 -160
- package/i18n/constants.mjs +17 -1
- package/i18n/languages/ar-AR.js +3 -4
- package/i18n/languages/cs-CZ.js +3 -4
- package/i18n/languages/de-CH.js +3 -4
- package/i18n/languages/de-DE.js +3 -4
- package/i18n/languages/en-US.js +17 -5
- package/i18n/languages/en-US.mjs +14 -1
- package/i18n/languages/es-MX.js +3 -4
- package/i18n/languages/fr-FR.js +3 -4
- package/i18n/languages/it-IT.js +3 -4
- package/i18n/languages/ja-JP.js +3 -4
- package/i18n/languages/ko-KR.js +3 -4
- package/i18n/languages/lv-LV.js +3 -4
- package/i18n/languages/nb-NO.js +3 -4
- package/i18n/languages/nl-NL.js +3 -4
- package/i18n/languages/pl-PL.js +17 -5
- package/i18n/languages/pl-PL.mjs +14 -1
- package/i18n/languages/pt-BR.js +3 -4
- package/i18n/languages/ru-RU.js +3 -4
- package/i18n/languages/sr-SP.js +3 -4
- package/i18n/languages/zh-CN.js +3 -4
- package/i18n/languages/zh-TW.js +3 -4
- package/i18n/registry.js +4 -6
- package/index.js +3 -4
- package/languages/all.js +47 -40
- package/languages/ar-AR.js +1 -2
- package/languages/cs-CZ.js +1 -2
- package/languages/de-CH.js +1 -2
- package/languages/de-DE.js +1 -2
- package/languages/en-US.js +15 -3
- package/languages/en-US.mjs +14 -1
- package/languages/es-MX.js +1 -2
- package/languages/fr-FR.js +1 -2
- package/languages/index.js +47 -40
- package/languages/it-IT.js +1 -2
- package/languages/ja-JP.js +1 -2
- package/languages/ko-KR.js +1 -2
- package/languages/lv-LV.js +1 -2
- package/languages/nb-NO.js +1 -2
- package/languages/nl-NL.js +1 -2
- package/languages/pl-PL.js +15 -3
- package/languages/pl-PL.mjs +14 -1
- package/languages/pt-BR.js +1 -2
- package/languages/ru-RU.js +1 -2
- package/languages/sr-SP.js +1 -2
- package/languages/zh-CN.js +1 -2
- package/languages/zh-TW.js +1 -2
- package/mixins/hooksRefRegisterer.js +1 -2
- package/mixins/localHooks.js +1 -2
- package/package.json +119 -96
- package/pluginHooks.d.ts +42 -7
- package/pluginHooks.js +301 -65
- package/pluginHooks.mjs +300 -63
- package/plugins/autoColumnSize/autoColumnSize.d.ts +2 -0
- package/plugins/autoColumnSize/autoColumnSize.js +2 -4
- package/plugins/autoRowSize/autoRowSize.d.ts +2 -0
- package/plugins/autoRowSize/autoRowSize.js +15 -10
- package/plugins/autoRowSize/autoRowSize.mjs +13 -6
- package/plugins/autofill/autofill.js +2 -4
- package/plugins/autofill/utils.js +1 -2
- package/plugins/base/base.js +1 -2
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +2 -4
- package/plugins/bindRowsWithHeaders/maps/looseBindsMap.js +1 -2
- package/plugins/bindRowsWithHeaders/maps/strictBindsMap.js +1 -2
- package/plugins/collapsibleColumns/collapsibleColumns.js +77 -8
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +76 -5
- package/plugins/columnSorting/columnSorting.js +71 -6
- package/plugins/columnSorting/columnSorting.mjs +70 -3
- package/plugins/columnSorting/index.js +3 -1
- package/plugins/columnSorting/index.mjs +1 -1
- package/plugins/columnSorting/sortFunction/checkbox.js +1 -2
- package/plugins/columnSorting/sortFunction/date.js +1 -2
- package/plugins/columnSorting/sortFunction/default.js +1 -2
- package/plugins/columnSorting/sortFunction/numeric.js +1 -2
- package/plugins/columnSorting/sortService/engine.js +3 -6
- package/plugins/columnSorting/utils.js +3 -6
- package/plugins/columnSummary/columnSummary.js +2 -4
- package/plugins/columnSummary/endpoints.js +1 -2
- package/plugins/comments/commentEditor.js +2 -2
- package/plugins/comments/commentEditor.mjs +1 -0
- package/plugins/comments/comments.js +254 -197
- package/plugins/comments/comments.mjs +251 -190
- package/plugins/comments/contextMenuItem/addEditComment.js +41 -0
- package/plugins/comments/contextMenuItem/addEditComment.mjs +35 -0
- package/plugins/comments/contextMenuItem/readOnlyComment.js +49 -0
- package/plugins/comments/contextMenuItem/readOnlyComment.mjs +43 -0
- package/plugins/comments/contextMenuItem/removeComment.js +38 -0
- package/plugins/comments/contextMenuItem/removeComment.mjs +32 -0
- package/plugins/comments/displaySwitch.js +1 -2
- package/plugins/contextMenu/commandExecutor.js +2 -3
- package/plugins/contextMenu/commandExecutor.mjs +2 -3
- package/plugins/contextMenu/contextMenu.d.ts +1 -1
- package/plugins/contextMenu/contextMenu.js +77 -40
- package/plugins/contextMenu/contextMenu.mjs +74 -35
- package/plugins/contextMenu/itemsFactory.js +2 -3
- package/plugins/contextMenu/itemsFactory.mjs +3 -4
- package/plugins/contextMenu/{cursor.mjs → menu/cursor.js} +6 -4
- package/plugins/contextMenu/{cursor.js → menu/cursor.mjs} +4 -10
- package/plugins/contextMenu/menu/defaultShortcutsList.js +88 -0
- package/plugins/contextMenu/menu/defaultShortcutsList.mjs +84 -0
- package/plugins/contextMenu/menu/index.js +9 -0
- package/plugins/contextMenu/menu/index.mjs +1 -0
- package/plugins/contextMenu/{menu.js → menu/menu.js} +145 -421
- package/plugins/contextMenu/{menu.mjs → menu/menu.mjs} +146 -422
- package/plugins/contextMenu/menu/menuItemRenderer.js +70 -0
- package/plugins/contextMenu/menu/menuItemRenderer.mjs +66 -0
- package/plugins/contextMenu/menu/navigator.js +27 -0
- package/plugins/contextMenu/menu/navigator.mjs +23 -0
- package/plugins/contextMenu/menu/positioner.js +213 -0
- package/plugins/contextMenu/menu/positioner.mjs +209 -0
- package/plugins/contextMenu/menu/shortcuts.js +114 -0
- package/plugins/contextMenu/menu/shortcuts.mjs +110 -0
- package/plugins/contextMenu/menu/utils.js +177 -0
- package/plugins/contextMenu/menu/utils.mjs +163 -0
- package/plugins/contextMenu/predefinedItems/alignment.js +10 -4
- package/plugins/contextMenu/predefinedItems/alignment.mjs +7 -0
- package/plugins/contextMenu/predefinedItems/clearColumn.js +8 -7
- package/plugins/contextMenu/predefinedItems/clearColumn.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/columnLeft.js +8 -7
- package/plugins/contextMenu/predefinedItems/columnLeft.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/columnRight.js +8 -7
- package/plugins/contextMenu/predefinedItems/columnRight.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/index.js +75 -0
- package/plugins/contextMenu/predefinedItems/index.mjs +68 -0
- package/plugins/contextMenu/predefinedItems/noItems.js +1 -2
- package/plugins/contextMenu/predefinedItems/readOnly.js +10 -4
- package/plugins/contextMenu/predefinedItems/readOnly.mjs +7 -0
- package/plugins/contextMenu/predefinedItems/redo.js +3 -4
- package/plugins/contextMenu/predefinedItems/removeColumn.js +10 -9
- package/plugins/contextMenu/predefinedItems/removeColumn.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/removeRow.js +10 -9
- package/plugins/contextMenu/predefinedItems/removeRow.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/rowAbove.js +8 -7
- package/plugins/contextMenu/predefinedItems/rowAbove.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/rowBelow.js +8 -7
- package/plugins/contextMenu/predefinedItems/rowBelow.mjs +5 -3
- package/plugins/contextMenu/predefinedItems/separator.js +1 -2
- package/plugins/contextMenu/predefinedItems/undo.js +3 -4
- package/plugins/contextMenu/utils.js +35 -151
- package/plugins/contextMenu/utils.mjs +35 -144
- package/plugins/copyPaste/clipboardData/clipboardData.js +516 -0
- package/plugins/copyPaste/clipboardData/clipboardData.mjs +512 -0
- package/plugins/copyPaste/clipboardData/copyClipboardData.js +69 -0
- package/plugins/copyPaste/clipboardData/copyClipboardData.mjs +65 -0
- package/plugins/copyPaste/clipboardData/index.js +9 -0
- package/plugins/copyPaste/clipboardData/index.mjs +4 -0
- package/plugins/copyPaste/clipboardData/pasteClipboardData.js +81 -0
- package/plugins/copyPaste/clipboardData/pasteClipboardData.mjs +77 -0
- package/plugins/copyPaste/contextMenuItem/copy.js +7 -0
- package/plugins/copyPaste/contextMenuItem/copy.mjs +7 -0
- package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.js +9 -1
- package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.mjs +9 -1
- package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.js +9 -1
- package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.mjs +9 -1
- package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.js +9 -1
- package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.mjs +9 -1
- package/plugins/copyPaste/contextMenuItem/cut.js +9 -2
- package/plugins/copyPaste/contextMenuItem/cut.mjs +7 -0
- package/plugins/copyPaste/copyPaste.js +160 -167
- package/plugins/copyPaste/copyPaste.mjs +161 -166
- package/plugins/customBorders/contextMenuItem/bottom.js +2 -2
- package/plugins/customBorders/contextMenuItem/left.js +2 -2
- package/plugins/customBorders/contextMenuItem/noBorders.js +2 -2
- package/plugins/customBorders/contextMenuItem/right.js +2 -2
- package/plugins/customBorders/contextMenuItem/top.js +2 -2
- package/plugins/customBorders/customBorders.js +27 -26
- package/plugins/customBorders/customBorders.mjs +24 -21
- package/plugins/dragToScroll/dragToScroll.js +2 -4
- package/plugins/dropdownMenu/dropdownMenu.d.ts +1 -1
- package/plugins/dropdownMenu/dropdownMenu.js +130 -44
- package/plugins/dropdownMenu/dropdownMenu.mjs +127 -39
- package/plugins/exportFile/dataProvider.js +1 -2
- package/plugins/exportFile/exportFile.js +4 -6
- package/plugins/exportFile/typeFactory.js +5 -8
- package/plugins/exportFile/types/_base.js +1 -2
- package/plugins/exportFile/types/csv.js +1 -2
- package/plugins/filters/component/_base.js +23 -8
- package/plugins/filters/component/_base.mjs +23 -8
- package/plugins/filters/component/actionBar.js +31 -29
- package/plugins/filters/component/actionBar.mjs +26 -23
- package/plugins/filters/component/condition.js +48 -61
- package/plugins/filters/component/condition.mjs +40 -52
- package/plugins/filters/component/operators.js +21 -22
- package/plugins/filters/component/operators.mjs +18 -18
- package/plugins/filters/component/value.js +37 -28
- package/plugins/filters/component/value.mjs +32 -22
- package/plugins/filters/condition/beginsWith.js +3 -4
- package/plugins/filters/condition/between.js +3 -4
- package/plugins/filters/condition/byValue.js +1 -2
- package/plugins/filters/condition/contains.js +3 -4
- package/plugins/filters/condition/date/after.js +3 -4
- package/plugins/filters/condition/date/before.js +3 -4
- package/plugins/filters/condition/date/today.js +3 -4
- package/plugins/filters/condition/date/tomorrow.js +3 -4
- package/plugins/filters/condition/date/yesterday.js +3 -4
- package/plugins/filters/condition/empty.js +3 -4
- package/plugins/filters/condition/endsWith.js +3 -4
- package/plugins/filters/condition/equal.js +3 -4
- package/plugins/filters/condition/false.js +1 -2
- package/plugins/filters/condition/greaterThan.js +3 -4
- package/plugins/filters/condition/greaterThanOrEqual.js +3 -4
- package/plugins/filters/condition/lessThan.js +3 -4
- package/plugins/filters/condition/lessThanOrEqual.js +3 -4
- package/plugins/filters/condition/none.js +3 -4
- package/plugins/filters/condition/notBetween.js +3 -4
- package/plugins/filters/condition/notContains.js +3 -4
- package/plugins/filters/condition/notEmpty.js +3 -4
- package/plugins/filters/condition/notEqual.js +3 -4
- package/plugins/filters/condition/true.js +1 -2
- package/plugins/filters/conditionCollection.d.ts +3 -2
- package/plugins/filters/conditionCollection.js +1 -2
- package/plugins/filters/conditionRegisterer.js +1 -2
- package/plugins/filters/conditionUpdateObserver.js +1 -2
- package/plugins/filters/constants.js +4 -8
- package/plugins/filters/constants.mjs +1 -1
- package/plugins/filters/dataFilter.js +1 -2
- package/plugins/filters/filters.d.ts +3 -5
- package/plugins/filters/filters.js +118 -67
- package/plugins/filters/filters.mjs +109 -56
- package/plugins/filters/logicalOperationRegisterer.js +1 -2
- package/plugins/filters/logicalOperations/conjunction.js +4 -6
- package/plugins/filters/logicalOperations/disjunction.js +4 -6
- package/plugins/filters/logicalOperations/disjunctionWithExtraCondition.js +4 -6
- package/plugins/filters/menu/focusController.js +123 -0
- package/plugins/filters/menu/focusController.mjs +119 -0
- package/plugins/filters/menu/focusNavigator.js +30 -0
- package/plugins/filters/menu/focusNavigator.mjs +26 -0
- package/plugins/filters/ui/_base.js +37 -15
- package/plugins/filters/ui/_base.mjs +35 -13
- package/plugins/filters/ui/input.js +43 -35
- package/plugins/filters/ui/input.mjs +42 -33
- package/plugins/filters/ui/link.js +44 -12
- package/plugins/filters/ui/link.mjs +44 -11
- package/plugins/filters/ui/multipleSelect.js +237 -133
- package/plugins/filters/ui/multipleSelect.mjs +232 -127
- package/plugins/filters/ui/radioInput.js +42 -18
- package/plugins/filters/ui/radioInput.mjs +42 -17
- package/plugins/filters/ui/select.js +152 -77
- package/plugins/filters/ui/select.mjs +148 -72
- package/plugins/formulas/engine/settings.js +2 -4
- package/plugins/formulas/formulas.js +3 -6
- package/plugins/formulas/indexSyncer/axisSyncer.js +1 -2
- package/plugins/formulas/indexSyncer/index.js +1 -2
- package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +2 -2
- package/plugins/hiddenColumns/contextMenuItem/showColumn.js +2 -2
- package/plugins/hiddenColumns/hiddenColumns.d.ts +1 -0
- package/plugins/hiddenColumns/hiddenColumns.js +49 -6
- package/plugins/hiddenColumns/hiddenColumns.mjs +48 -3
- package/plugins/hiddenRows/contextMenuItem/hideRow.js +2 -2
- package/plugins/hiddenRows/contextMenuItem/showRow.js +2 -2
- package/plugins/hiddenRows/hiddenRows.d.ts +1 -0
- package/plugins/hiddenRows/hiddenRows.js +49 -6
- package/plugins/hiddenRows/hiddenRows.mjs +48 -3
- package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +2 -2
- package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +2 -2
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +2 -4
- package/plugins/manualColumnMove/manualColumnMove.js +9 -17
- package/plugins/manualColumnMove/manualColumnMove.mjs +7 -13
- package/plugins/manualColumnMove/ui/_base.js +1 -2
- package/plugins/manualColumnMove/ui/backlight.js +1 -2
- package/plugins/manualColumnMove/ui/guideline.js +1 -2
- package/plugins/manualColumnResize/manualColumnResize.js +2 -4
- package/plugins/manualRowMove/manualRowMove.js +6 -23
- package/plugins/manualRowMove/manualRowMove.mjs +4 -19
- package/plugins/manualRowMove/ui/_base.js +1 -2
- package/plugins/manualRowMove/ui/backlight.js +1 -2
- package/plugins/manualRowMove/ui/guideline.js +1 -2
- package/plugins/manualRowResize/manualRowResize.js +2 -4
- package/plugins/mergeCells/calculations/autofill.js +1 -2
- package/plugins/mergeCells/calculations/selection.js +1 -2
- package/plugins/mergeCells/cellCoords.js +1 -2
- package/plugins/mergeCells/cellsCollection.js +1 -2
- package/plugins/mergeCells/contextMenuItem/toggleMerge.js +2 -2
- package/plugins/mergeCells/mergeCells.js +7 -20
- package/plugins/mergeCells/mergeCells.mjs +5 -16
- package/plugins/multiColumnSorting/multiColumnSorting.js +60 -6
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +59 -3
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +2 -4
- package/plugins/nestedHeaders/nestedHeaders.js +263 -36
- package/plugins/nestedHeaders/nestedHeaders.mjs +262 -33
- package/plugins/nestedHeaders/stateManager/index.js +102 -3
- package/plugins/nestedHeaders/stateManager/index.mjs +102 -3
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +1 -2
- package/plugins/nestedHeaders/utils/ghostTable.js +1 -2
- package/plugins/nestedRows/data/dataManager.js +1 -2
- package/plugins/nestedRows/nestedRows.js +47 -10
- package/plugins/nestedRows/nestedRows.mjs +45 -6
- package/plugins/nestedRows/ui/_base.js +1 -2
- package/plugins/nestedRows/ui/collapsing.js +1 -2
- package/plugins/nestedRows/ui/contextMenu.js +3 -4
- package/plugins/nestedRows/ui/headers.js +13 -3
- package/plugins/nestedRows/ui/headers.mjs +13 -2
- package/plugins/persistentState/persistentState.js +2 -4
- package/plugins/persistentState/storage.js +1 -2
- package/plugins/search/search.js +2 -4
- package/plugins/touchScroll/touchScroll.js +2 -4
- package/plugins/trimRows/trimRows.js +2 -4
- package/plugins/undoRedo/index.js +2 -2
- package/plugins/undoRedo/undoRedo.js +2 -4
- package/renderers/autocompleteRenderer/autocompleteRenderer.js +9 -2
- package/renderers/autocompleteRenderer/autocompleteRenderer.mjs +8 -0
- package/renderers/baseRenderer/baseRenderer.js +18 -2
- package/renderers/baseRenderer/baseRenderer.mjs +18 -1
- package/renderers/checkboxRenderer/checkboxRenderer.js +10 -6
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +9 -4
- package/renderers/dateRenderer/dateRenderer.d.ts +5 -0
- package/renderers/dateRenderer/dateRenderer.js +28 -0
- package/renderers/dateRenderer/dateRenderer.mjs +24 -0
- package/renderers/dateRenderer/index.d.ts +1 -0
- package/renderers/dateRenderer/index.js +6 -0
- package/renderers/dateRenderer/index.mjs +1 -0
- package/renderers/handsontableRenderer/handsontableRenderer.d.ts +5 -0
- package/renderers/handsontableRenderer/handsontableRenderer.js +28 -0
- package/renderers/handsontableRenderer/handsontableRenderer.mjs +24 -0
- package/renderers/handsontableRenderer/index.d.ts +1 -0
- package/renderers/handsontableRenderer/index.js +6 -0
- package/renderers/handsontableRenderer/index.mjs +1 -0
- package/renderers/htmlRenderer/htmlRenderer.js +1 -2
- package/renderers/index.d.ts +9 -0
- package/renderers/numericRenderer/numericRenderer.js +1 -2
- package/renderers/passwordRenderer/passwordRenderer.js +1 -2
- package/renderers/selectRenderer/index.d.ts +1 -0
- package/renderers/selectRenderer/index.js +6 -0
- package/renderers/selectRenderer/index.mjs +1 -0
- package/renderers/selectRenderer/selectRenderer.d.ts +5 -0
- package/renderers/selectRenderer/selectRenderer.js +26 -0
- package/renderers/selectRenderer/selectRenderer.mjs +22 -0
- package/renderers/textRenderer/textRenderer.js +1 -2
- package/renderers/timeRenderer/timeRenderer.js +1 -2
- package/selection/highlight/highlight.js +257 -73
- package/selection/highlight/highlight.mjs +250 -71
- package/selection/highlight/types/activeHeader.js +10 -8
- package/selection/highlight/types/activeHeader.mjs +10 -8
- package/selection/highlight/types/area.js +6 -18
- package/selection/highlight/types/area.mjs +6 -18
- package/selection/highlight/types/areaLayered.js +31 -0
- package/selection/highlight/types/areaLayered.mjs +26 -0
- package/selection/highlight/types/column.js +27 -0
- package/selection/highlight/types/column.mjs +22 -0
- package/selection/highlight/types/customSelection.js +7 -9
- package/selection/highlight/types/customSelection.mjs +7 -9
- package/selection/highlight/types/fill.js +5 -7
- package/selection/highlight/types/fill.mjs +5 -7
- package/selection/highlight/types/{cell.js → focus.js} +5 -7
- package/selection/highlight/types/{cell.mjs → focus.mjs} +5 -7
- package/selection/highlight/types/header.js +9 -18
- package/selection/highlight/types/header.mjs +9 -18
- package/selection/highlight/types/row.js +27 -0
- package/selection/highlight/types/row.mjs +22 -0
- package/selection/highlight/visualSelection.js +32 -29
- package/selection/highlight/visualSelection.mjs +31 -27
- package/selection/index.js +4 -7
- package/selection/index.mjs +2 -3
- package/selection/mouseEventHandler.js +7 -1
- package/selection/mouseEventHandler.mjs +7 -1
- package/selection/range.js +9 -10
- package/selection/range.mjs +8 -8
- package/selection/selection.js +334 -154
- package/selection/selection.mjs +330 -151
- package/selection/transformation.js +233 -94
- package/selection/transformation.mjs +232 -92
- package/selection/utils.js +20 -31
- package/selection/utils.mjs +16 -21
- package/settings.d.ts +4 -0
- package/shortcutContexts/commands/editor/closeAndSave.js +11 -0
- package/shortcutContexts/commands/editor/closeAndSave.mjs +8 -0
- package/shortcutContexts/commands/editor/closeWithoutSaving.js +11 -0
- package/shortcutContexts/commands/editor/closeWithoutSaving.mjs +8 -0
- package/shortcutContexts/commands/editor/fastOpen.js +15 -0
- package/shortcutContexts/commands/editor/fastOpen.mjs +12 -0
- package/shortcutContexts/commands/editor/index.js +16 -0
- package/shortcutContexts/commands/editor/index.mjs +12 -0
- package/shortcutContexts/commands/editor/open.js +26 -0
- package/shortcutContexts/commands/editor/open.mjs +23 -0
- package/shortcutContexts/commands/emptySelectedCells.js +10 -0
- package/shortcutContexts/commands/emptySelectedCells.mjs +7 -0
- package/shortcutContexts/commands/extendCellsSelection/down.js +14 -0
- package/shortcutContexts/commands/extendCellsSelection/down.mjs +11 -0
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +24 -0
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +21 -0
- package/shortcutContexts/commands/extendCellsSelection/index.js +26 -0
- package/shortcutContexts/commands/extendCellsSelection/index.mjs +22 -0
- package/shortcutContexts/commands/extendCellsSelection/left.js +14 -0
- package/shortcutContexts/commands/extendCellsSelection/left.mjs +11 -0
- package/shortcutContexts/commands/extendCellsSelection/right.js +14 -0
- package/shortcutContexts/commands/extendCellsSelection/right.mjs +11 -0
- package/shortcutContexts/commands/extendCellsSelection/toColumns.js +18 -0
- package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +15 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +28 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +25 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +18 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +15 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +18 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +15 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +28 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +25 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +28 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +25 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +28 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +25 -0
- package/shortcutContexts/commands/extendCellsSelection/toRows.js +18 -0
- package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +15 -0
- package/shortcutContexts/commands/extendCellsSelection/up.js +14 -0
- package/shortcutContexts/commands/extendCellsSelection/up.mjs +11 -0
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +24 -0
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +21 -0
- package/shortcutContexts/commands/index.js +35 -0
- package/shortcutContexts/commands/index.mjs +31 -0
- package/shortcutContexts/commands/moveCellSelection/down.js +12 -0
- package/shortcutContexts/commands/moveCellSelection/down.mjs +9 -0
- package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.js +32 -0
- package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.mjs +29 -0
- package/shortcutContexts/commands/moveCellSelection/index.js +28 -0
- package/shortcutContexts/commands/moveCellSelection/index.mjs +24 -0
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +11 -0
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +8 -0
- package/shortcutContexts/commands/moveCellSelection/inlineStart.js +11 -0
- package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +8 -0
- package/shortcutContexts/commands/moveCellSelection/left.js +9 -0
- package/shortcutContexts/commands/moveCellSelection/left.mjs +6 -0
- package/shortcutContexts/commands/moveCellSelection/right.js +9 -0
- package/shortcutContexts/commands/moveCellSelection/right.mjs +6 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottom.js +16 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottom.mjs +13 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.js +17 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.mjs +14 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.js +13 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.mjs +10 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.js +16 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.mjs +13 -0
- package/shortcutContexts/commands/moveCellSelection/toMostLeft.js +18 -0
- package/shortcutContexts/commands/moveCellSelection/toMostLeft.mjs +15 -0
- package/shortcutContexts/commands/moveCellSelection/toMostRight.js +20 -0
- package/shortcutContexts/commands/moveCellSelection/toMostRight.mjs +17 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTop.js +16 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTop.mjs +13 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.js +18 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.mjs +15 -0
- package/shortcutContexts/commands/moveCellSelection/up.js +12 -0
- package/shortcutContexts/commands/moveCellSelection/up.mjs +9 -0
- package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.js +32 -0
- package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.mjs +29 -0
- package/shortcutContexts/commands/populateSelectedCellsData.js +28 -0
- package/shortcutContexts/commands/populateSelectedCellsData.mjs +25 -0
- package/shortcutContexts/commands/scrollToFocusedCell.js +34 -0
- package/shortcutContexts/commands/scrollToFocusedCell.mjs +31 -0
- package/shortcutContexts/commands/selectAll.js +11 -0
- package/shortcutContexts/commands/selectAll.mjs +8 -0
- package/shortcutContexts/constants.js +11 -0
- package/shortcutContexts/constants.mjs +8 -0
- package/shortcutContexts/editor.js +25 -0
- package/shortcutContexts/editor.mjs +21 -0
- package/shortcutContexts/grid.js +167 -0
- package/shortcutContexts/grid.mjs +163 -0
- package/shortcutContexts/index.js +24 -0
- package/shortcutContexts/index.mjs +11 -0
- package/shortcuts/context.d.ts +1 -0
- package/shortcuts/context.js +23 -4
- package/shortcuts/context.mjs +23 -5
- package/shortcuts/manager.js +31 -7
- package/shortcuts/manager.mjs +32 -7
- package/shortcuts/recorder.js +30 -14
- package/shortcuts/recorder.mjs +30 -14
- package/shortcuts/utils.js +19 -5
- package/shortcuts/utils.mjs +18 -4
- package/tableView.js +113 -16
- package/tableView.mjs +113 -15
- package/utils/dataStructures/linkedList.js +1 -2
- package/utils/dataStructures/priorityMap.js +2 -4
- package/utils/dataStructures/queue.js +1 -2
- package/utils/dataStructures/stack.js +1 -2
- package/utils/dataStructures/tree.js +3 -6
- package/utils/ghostTable.js +32 -17
- package/utils/ghostTable.mjs +31 -15
- package/utils/interval.js +1 -2
- package/utils/paginator.js +151 -0
- package/utils/paginator.mjs +147 -0
- package/utils/parseTable.js +527 -83
- package/utils/parseTable.mjs +523 -82
- package/utils/rootInstance.js +2 -4
- package/utils/samplesGenerator.js +21 -13
- package/utils/samplesGenerator.mjs +20 -11
- package/utils/staticRegister.js +1 -2
- package/validators/autocompleteValidator/autocompleteValidator.js +1 -2
- package/validators/dateValidator/dateValidator.js +1 -2
- package/validators/numericValidator/numericValidator.js +1 -2
- package/validators/timeValidator/timeValidator.js +1 -2
- package/3rdparty/walkontable/src/selection.js +0 -295
- package/3rdparty/walkontable/src/selection.mjs +0 -290
- package/plugins/contextMenu/predefinedItems.js +0 -76
- package/plugins/contextMenu/predefinedItems.mjs +0 -68
- package/plugins/copyPaste/clipboardData.js +0 -18
- package/plugins/copyPaste/clipboardData.mjs +0 -14
- package/plugins/copyPaste/focusableElement.js +0 -186
- package/plugins/copyPaste/focusableElement.mjs +0 -180
- package/plugins/copyPaste/pasteEvent.js +0 -14
- package/plugins/copyPaste/pasteEvent.mjs +0 -9
- package/selection/highlight/constants.js +0 -15
- package/selection/highlight/constants.mjs +0 -6
- package/selection/highlight/types/index.js +0 -35
- package/selection/highlight/types/index.mjs +0 -31
package/dist/languages/lv-LV.js
CHANGED
@@ -155,8 +155,7 @@ const dictionary = {
|
|
155
155
|
[C.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]: 'Otra vērtība'
|
156
156
|
};
|
157
157
|
_handsontable.default.languages.registerLanguageDictionary(dictionary);
|
158
|
-
var _default = dictionary;
|
159
|
-
exports["default"] = _default;
|
158
|
+
var _default = exports["default"] = dictionary;
|
160
159
|
})();
|
161
160
|
|
162
161
|
__webpack_exports__ = __webpack_exports__.___;
|
package/dist/languages/nb-NO.js
CHANGED
@@ -151,8 +151,7 @@ const dictionary = {
|
|
151
151
|
[C.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]: 'Andre verdi'
|
152
152
|
};
|
153
153
|
_handsontable.default.languages.registerLanguageDictionary(dictionary);
|
154
|
-
var _default = dictionary;
|
155
|
-
exports["default"] = _default;
|
154
|
+
var _default = exports["default"] = dictionary;
|
156
155
|
})();
|
157
156
|
|
158
157
|
__webpack_exports__ = __webpack_exports__.___;
|
package/dist/languages/nl-NL.js
CHANGED
@@ -154,8 +154,7 @@ const dictionary = {
|
|
154
154
|
[C.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]: 'Tweede waarde'
|
155
155
|
};
|
156
156
|
_handsontable.default.languages.registerLanguageDictionary(dictionary);
|
157
|
-
var _default = dictionary;
|
158
|
-
exports["default"] = _default;
|
157
|
+
var _default = exports["default"] = dictionary;
|
159
158
|
})();
|
160
159
|
|
161
160
|
__webpack_exports__ = __webpack_exports__.___;
|
package/dist/languages/pl-PL.js
CHANGED
@@ -152,11 +152,23 @@ const dictionary = {
|
|
152
152
|
[C.FILTERS_BUTTONS_CANCEL]: 'Anuluj',
|
153
153
|
[C.FILTERS_BUTTONS_PLACEHOLDER_SEARCH]: 'Szukaj',
|
154
154
|
[C.FILTERS_BUTTONS_PLACEHOLDER_VALUE]: 'Wartość',
|
155
|
-
[C.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]: 'Druga wartość'
|
155
|
+
[C.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]: 'Druga wartość',
|
156
|
+
[C.CHECKBOX_CHECKED]: 'Zaznaczony',
|
157
|
+
[C.CHECKBOX_UNCHECKED]: 'Odznaczony',
|
158
|
+
[C.COLUMN_HEADER_DESCRIPTION_EXPAND_COLUMN]: 'Naciśnij ENTER aby rozwinąć kolumnę.',
|
159
|
+
[C.COLUMN_HEADER_DESCRIPTION_COLLAPSE_COLUMN]: 'Naciśnij ENTER aby zwinąć kolumnę.',
|
160
|
+
[C.COLUMN_HEADER_DESCRIPTION_SORT_ROWS]: 'Naciśnij ENTER aby zmienić sortowanie.',
|
161
|
+
[C.COLUMN_HEADER_LABEL_MULTI_COLUMN_SORT_ORDER]: 'Kolejność w sortowaniu po wielu kolumnach:',
|
162
|
+
[C.COLUMN_HEADER_LABEL_OPEN_MENU]: 'Naciśnij CTRL/CMD+ENTER aby otworzyć menu kontekstowe.',
|
163
|
+
[C.COLUMN_HEADER_LABEL_BEFORE_HIDDEN_COLUMN]: 'Następna kolumna jest ukryta.',
|
164
|
+
[C.COLUMN_HEADER_LABEL_AFTER_HIDDEN_COLUMN]: 'Poprzednia kolumna jest ukryta.',
|
165
|
+
[C.ROW_HEADER_DESCRIPTION_EXPAND_ROW]: 'Naciśnij ENTER aby rozwinąć wiersz.',
|
166
|
+
[C.ROW_HEADER_DESCRIPTION_COLLAPSE_ROW]: 'Naciśnij ENTER aby zwinąć wiersz.',
|
167
|
+
[C.ROW_HEADER_LABEL_BEFORE_HIDDEN_ROW]: 'Następny wiersz jest ukryty.',
|
168
|
+
[C.ROW_HEADER_LABEL_AFTER_HIDDEN_ROW]: 'Poprzedni wiersz jest ukryty.'
|
156
169
|
};
|
157
170
|
_handsontable.default.languages.registerLanguageDictionary(dictionary);
|
158
|
-
var _default = dictionary;
|
159
|
-
exports["default"] = _default;
|
171
|
+
var _default = exports["default"] = dictionary;
|
160
172
|
})();
|
161
173
|
|
162
174
|
__webpack_exports__ = __webpack_exports__.___;
|
@@ -1 +1 @@
|
|
1
|
-
!function(E,T){if("object"==typeof exports&&"object"==typeof module)module.exports=T(require("handsontable"));else if("function"==typeof define&&define.amd)define(["handsontable"],T);else{var _="object"==typeof exports?T(require("handsontable")):T(E.Handsontable);for(var N in _)("object"==typeof exports?exports:E)[N]=_[N]}}("undefined"!=typeof self?self:this,(E=>(()=>{var T={960:T=>{"use strict";T.exports=E},250:E=>{E.exports=function(E){return E&&E.__esModule?E:{default:E}},E.exports.__esModule=!0,E.exports.default=E.exports}},_={};function N(E){var O=_[E];if(void 0!==O)return O.exports;var I=_[E]={exports:{}};return T[E](I,I.exports,N),I.exports}var O={};return(()=>{"use strict";var E=N(250)(N(960));const T=E.default.languages.dictionaryKeys,_={languageCode:"pl-PL",[T.CONTEXTMENU_ITEMS_NO_ITEMS]:"Brak dostępnych opcji",[T.CONTEXTMENU_ITEMS_ROW_ABOVE]:"Wstaw wiersz powyżej",[T.CONTEXTMENU_ITEMS_ROW_BELOW]:"Wstaw wiersz poniżej",[T.CONTEXTMENU_ITEMS_INSERT_LEFT]:"Wstaw kolumnę z lewej",[T.CONTEXTMENU_ITEMS_INSERT_RIGHT]:"Wstaw kolumnę z prawej",[T.CONTEXTMENU_ITEMS_REMOVE_ROW]:["Usuń wiersz","Usuń wiersze"],[T.CONTEXTMENU_ITEMS_REMOVE_COLUMN]:["Usuń kolumnę","Usuń kolumny"],[T.CONTEXTMENU_ITEMS_UNDO]:"Cofnij",[T.CONTEXTMENU_ITEMS_REDO]:"Ponów",[T.CONTEXTMENU_ITEMS_READ_ONLY]:"Tylko do odczytu",[T.CONTEXTMENU_ITEMS_CLEAR_COLUMN]:"Wyczyść kolumnę",[T.CONTEXTMENU_ITEMS_ALIGNMENT]:"Wyrównanie",[T.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT]:"Do lewej",[T.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER]:"Do środka",[T.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT]:"Do prawej",[T.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY]:"Wyjustuj",[T.CONTEXTMENU_ITEMS_ALIGNMENT_TOP]:"Do góry",[T.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE]:"Wyśrodkuj",[T.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM]:"Do dołu",[T.CONTEXTMENU_ITEMS_FREEZE_COLUMN]:"Zablokuj kolumnę",[T.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN]:"Odblokuj kolumnę",[T.CONTEXTMENU_ITEMS_BORDERS]:"Obramowanie",[T.CONTEXTMENU_ITEMS_BORDERS_TOP]:"Krawędź górna",[T.CONTEXTMENU_ITEMS_BORDERS_RIGHT]:"Krawędź prawa",[T.CONTEXTMENU_ITEMS_BORDERS_BOTTOM]:"Krawędź dolna",[T.CONTEXTMENU_ITEMS_BORDERS_LEFT]:"Krawędź lewa",[T.CONTEXTMENU_ITEMS_REMOVE_BORDERS]:"Usuń obramowanie(a)",[T.CONTEXTMENU_ITEMS_ADD_COMMENT]:"Dodaj komentarz",[T.CONTEXTMENU_ITEMS_EDIT_COMMENT]:"Edytuj komentarz",[T.CONTEXTMENU_ITEMS_REMOVE_COMMENT]:"Usuń komentarz",[T.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT]:"Komentarz tylko do odczytu",[T.CONTEXTMENU_ITEMS_MERGE_CELLS]:"Scal komórki",[T.CONTEXTMENU_ITEMS_UNMERGE_CELLS]:"Rozdziel komórki",[T.CONTEXTMENU_ITEMS_COPY]:"Kopiuj",[T.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS]:["Kopiuj z nagłówkiem","Kopiuj z nagłówkami"],[T.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS]:["Kopiuj z nagłówkiem grupowym","Kopiuj z nagłówkami grupowymi"],[T.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY]:["Kopiuj sam nagłówek","Kopiuj same nagłówki"],[T.CONTEXTMENU_ITEMS_CUT]:"Wytnij",[T.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD]:"Wstaw wiersz podrzędny",[T.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD]:"Odłącz od nadrzędnego",[T.CONTEXTMENU_ITEMS_HIDE_COLUMN]:["Ukryj kolumnę","Ukryj kolumny"],[T.CONTEXTMENU_ITEMS_SHOW_COLUMN]:["Pokaż kolumnę","Pokaż kolumny"],[T.CONTEXTMENU_ITEMS_HIDE_ROW]:["Ukryj wiersz","Ukryj wiersze"],[T.CONTEXTMENU_ITEMS_SHOW_ROW]:["Pokaż wiersz","Pokaż wiersze"],[T.FILTERS_CONDITIONS_NONE]:"Brak",[T.FILTERS_CONDITIONS_EMPTY]:"Komórka jest pusta",[T.FILTERS_CONDITIONS_NOT_EMPTY]:"Komórka nie jest pusta",[T.FILTERS_CONDITIONS_EQUAL]:"Jest równe",[T.FILTERS_CONDITIONS_NOT_EQUAL]:"Jest różne od",[T.FILTERS_CONDITIONS_BEGINS_WITH]:"Tekst zaczyna się od",[T.FILTERS_CONDITIONS_ENDS_WITH]:"Tekst kończy się na",[T.FILTERS_CONDITIONS_CONTAINS]:"Tekst zawiera fragment",[T.FILTERS_CONDITIONS_NOT_CONTAIN]:"Tekst nie zawiera fragmentu",[T.FILTERS_CONDITIONS_GREATER_THAN]:"Większe niż",[T.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL]:"Większe lub równe",[T.FILTERS_CONDITIONS_LESS_THAN]:"Mniejsze niż",[T.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL]:"Mniejsze lub równe",[T.FILTERS_CONDITIONS_BETWEEN]:"Jest pomiędzy",[T.FILTERS_CONDITIONS_NOT_BETWEEN]:"Nie jest pomiędzy",[T.FILTERS_CONDITIONS_AFTER]:"Data późniejsza niż",[T.FILTERS_CONDITIONS_BEFORE]:"Data wcześniejsza niż",[T.FILTERS_CONDITIONS_TODAY]:"Dzisiaj",[T.FILTERS_CONDITIONS_TOMORROW]:"Jutro",[T.FILTERS_CONDITIONS_YESTERDAY]:"Wczoraj",[T.FILTERS_VALUES_BLANK_CELLS]:"Puste miejsca",[T.FILTERS_DIVS_FILTER_BY_CONDITION]:"Filtruj wg warunku",[T.FILTERS_DIVS_FILTER_BY_VALUE]:"Filtruj wg wartości",[T.FILTERS_LABELS_CONJUNCTION]:"Oraz",[T.FILTERS_LABELS_DISJUNCTION]:"Lub",[T.FILTERS_BUTTONS_SELECT_ALL]:"Zaznacz wszystko",[T.FILTERS_BUTTONS_CLEAR]:"Wyczyść",[T.FILTERS_BUTTONS_OK]:"OK",[T.FILTERS_BUTTONS_CANCEL]:"Anuluj",[T.FILTERS_BUTTONS_PLACEHOLDER_SEARCH]:"Szukaj",[T.FILTERS_BUTTONS_PLACEHOLDER_VALUE]:"Wartość",[T.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]:"Druga wartość"};E.default.languages.registerLanguageDictionary(_)})(),O=O.___})()));
|
1
|
+
!function(E,T){if("object"==typeof exports&&"object"==typeof module)module.exports=T(require("handsontable"));else if("function"==typeof define&&define.amd)define(["handsontable"],T);else{var _="object"==typeof exports?T(require("handsontable")):T(E.Handsontable);for(var N in _)("object"==typeof exports?exports:E)[N]=_[N]}}("undefined"!=typeof self?self:this,(E=>(()=>{var T={960:T=>{"use strict";T.exports=E},250:E=>{E.exports=function(E){return E&&E.__esModule?E:{default:E}},E.exports.__esModule=!0,E.exports.default=E.exports}},_={};function N(E){var O=_[E];if(void 0!==O)return O.exports;var I=_[E]={exports:{}};return T[E](I,I.exports,N),I.exports}var O={};return(()=>{"use strict";var E=N(250)(N(960));const T=E.default.languages.dictionaryKeys,_={languageCode:"pl-PL",[T.CONTEXTMENU_ITEMS_NO_ITEMS]:"Brak dostępnych opcji",[T.CONTEXTMENU_ITEMS_ROW_ABOVE]:"Wstaw wiersz powyżej",[T.CONTEXTMENU_ITEMS_ROW_BELOW]:"Wstaw wiersz poniżej",[T.CONTEXTMENU_ITEMS_INSERT_LEFT]:"Wstaw kolumnę z lewej",[T.CONTEXTMENU_ITEMS_INSERT_RIGHT]:"Wstaw kolumnę z prawej",[T.CONTEXTMENU_ITEMS_REMOVE_ROW]:["Usuń wiersz","Usuń wiersze"],[T.CONTEXTMENU_ITEMS_REMOVE_COLUMN]:["Usuń kolumnę","Usuń kolumny"],[T.CONTEXTMENU_ITEMS_UNDO]:"Cofnij",[T.CONTEXTMENU_ITEMS_REDO]:"Ponów",[T.CONTEXTMENU_ITEMS_READ_ONLY]:"Tylko do odczytu",[T.CONTEXTMENU_ITEMS_CLEAR_COLUMN]:"Wyczyść kolumnę",[T.CONTEXTMENU_ITEMS_ALIGNMENT]:"Wyrównanie",[T.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT]:"Do lewej",[T.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER]:"Do środka",[T.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT]:"Do prawej",[T.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY]:"Wyjustuj",[T.CONTEXTMENU_ITEMS_ALIGNMENT_TOP]:"Do góry",[T.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE]:"Wyśrodkuj",[T.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM]:"Do dołu",[T.CONTEXTMENU_ITEMS_FREEZE_COLUMN]:"Zablokuj kolumnę",[T.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN]:"Odblokuj kolumnę",[T.CONTEXTMENU_ITEMS_BORDERS]:"Obramowanie",[T.CONTEXTMENU_ITEMS_BORDERS_TOP]:"Krawędź górna",[T.CONTEXTMENU_ITEMS_BORDERS_RIGHT]:"Krawędź prawa",[T.CONTEXTMENU_ITEMS_BORDERS_BOTTOM]:"Krawędź dolna",[T.CONTEXTMENU_ITEMS_BORDERS_LEFT]:"Krawędź lewa",[T.CONTEXTMENU_ITEMS_REMOVE_BORDERS]:"Usuń obramowanie(a)",[T.CONTEXTMENU_ITEMS_ADD_COMMENT]:"Dodaj komentarz",[T.CONTEXTMENU_ITEMS_EDIT_COMMENT]:"Edytuj komentarz",[T.CONTEXTMENU_ITEMS_REMOVE_COMMENT]:"Usuń komentarz",[T.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT]:"Komentarz tylko do odczytu",[T.CONTEXTMENU_ITEMS_MERGE_CELLS]:"Scal komórki",[T.CONTEXTMENU_ITEMS_UNMERGE_CELLS]:"Rozdziel komórki",[T.CONTEXTMENU_ITEMS_COPY]:"Kopiuj",[T.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS]:["Kopiuj z nagłówkiem","Kopiuj z nagłówkami"],[T.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS]:["Kopiuj z nagłówkiem grupowym","Kopiuj z nagłówkami grupowymi"],[T.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY]:["Kopiuj sam nagłówek","Kopiuj same nagłówki"],[T.CONTEXTMENU_ITEMS_CUT]:"Wytnij",[T.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD]:"Wstaw wiersz podrzędny",[T.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD]:"Odłącz od nadrzędnego",[T.CONTEXTMENU_ITEMS_HIDE_COLUMN]:["Ukryj kolumnę","Ukryj kolumny"],[T.CONTEXTMENU_ITEMS_SHOW_COLUMN]:["Pokaż kolumnę","Pokaż kolumny"],[T.CONTEXTMENU_ITEMS_HIDE_ROW]:["Ukryj wiersz","Ukryj wiersze"],[T.CONTEXTMENU_ITEMS_SHOW_ROW]:["Pokaż wiersz","Pokaż wiersze"],[T.FILTERS_CONDITIONS_NONE]:"Brak",[T.FILTERS_CONDITIONS_EMPTY]:"Komórka jest pusta",[T.FILTERS_CONDITIONS_NOT_EMPTY]:"Komórka nie jest pusta",[T.FILTERS_CONDITIONS_EQUAL]:"Jest równe",[T.FILTERS_CONDITIONS_NOT_EQUAL]:"Jest różne od",[T.FILTERS_CONDITIONS_BEGINS_WITH]:"Tekst zaczyna się od",[T.FILTERS_CONDITIONS_ENDS_WITH]:"Tekst kończy się na",[T.FILTERS_CONDITIONS_CONTAINS]:"Tekst zawiera fragment",[T.FILTERS_CONDITIONS_NOT_CONTAIN]:"Tekst nie zawiera fragmentu",[T.FILTERS_CONDITIONS_GREATER_THAN]:"Większe niż",[T.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL]:"Większe lub równe",[T.FILTERS_CONDITIONS_LESS_THAN]:"Mniejsze niż",[T.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL]:"Mniejsze lub równe",[T.FILTERS_CONDITIONS_BETWEEN]:"Jest pomiędzy",[T.FILTERS_CONDITIONS_NOT_BETWEEN]:"Nie jest pomiędzy",[T.FILTERS_CONDITIONS_AFTER]:"Data późniejsza niż",[T.FILTERS_CONDITIONS_BEFORE]:"Data wcześniejsza niż",[T.FILTERS_CONDITIONS_TODAY]:"Dzisiaj",[T.FILTERS_CONDITIONS_TOMORROW]:"Jutro",[T.FILTERS_CONDITIONS_YESTERDAY]:"Wczoraj",[T.FILTERS_VALUES_BLANK_CELLS]:"Puste miejsca",[T.FILTERS_DIVS_FILTER_BY_CONDITION]:"Filtruj wg warunku",[T.FILTERS_DIVS_FILTER_BY_VALUE]:"Filtruj wg wartości",[T.FILTERS_LABELS_CONJUNCTION]:"Oraz",[T.FILTERS_LABELS_DISJUNCTION]:"Lub",[T.FILTERS_BUTTONS_SELECT_ALL]:"Zaznacz wszystko",[T.FILTERS_BUTTONS_CLEAR]:"Wyczyść",[T.FILTERS_BUTTONS_OK]:"OK",[T.FILTERS_BUTTONS_CANCEL]:"Anuluj",[T.FILTERS_BUTTONS_PLACEHOLDER_SEARCH]:"Szukaj",[T.FILTERS_BUTTONS_PLACEHOLDER_VALUE]:"Wartość",[T.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]:"Druga wartość",[T.CHECKBOX_CHECKED]:"Zaznaczony",[T.CHECKBOX_UNCHECKED]:"Odznaczony",[T.COLUMN_HEADER_DESCRIPTION_EXPAND_COLUMN]:"Naciśnij ENTER aby rozwinąć kolumnę.",[T.COLUMN_HEADER_DESCRIPTION_COLLAPSE_COLUMN]:"Naciśnij ENTER aby zwinąć kolumnę.",[T.COLUMN_HEADER_DESCRIPTION_SORT_ROWS]:"Naciśnij ENTER aby zmienić sortowanie.",[T.COLUMN_HEADER_LABEL_MULTI_COLUMN_SORT_ORDER]:"Kolejność w sortowaniu po wielu kolumnach:",[T.COLUMN_HEADER_LABEL_OPEN_MENU]:"Naciśnij CTRL/CMD+ENTER aby otworzyć menu kontekstowe.",[T.COLUMN_HEADER_LABEL_BEFORE_HIDDEN_COLUMN]:"Następna kolumna jest ukryta.",[T.COLUMN_HEADER_LABEL_AFTER_HIDDEN_COLUMN]:"Poprzednia kolumna jest ukryta.",[T.ROW_HEADER_DESCRIPTION_EXPAND_ROW]:"Naciśnij ENTER aby rozwinąć wiersz.",[T.ROW_HEADER_DESCRIPTION_COLLAPSE_ROW]:"Naciśnij ENTER aby zwinąć wiersz.",[T.ROW_HEADER_LABEL_BEFORE_HIDDEN_ROW]:"Następny wiersz jest ukryty.",[T.ROW_HEADER_LABEL_AFTER_HIDDEN_ROW]:"Poprzedni wiersz jest ukryty."};E.default.languages.registerLanguageDictionary(_)})(),O=O.___})()));
|
package/dist/languages/pt-BR.js
CHANGED
@@ -151,8 +151,7 @@ const dictionary = {
|
|
151
151
|
[C.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]: 'Segundo valor'
|
152
152
|
};
|
153
153
|
_handsontable.default.languages.registerLanguageDictionary(dictionary);
|
154
|
-
var _default = dictionary;
|
155
|
-
exports["default"] = _default;
|
154
|
+
var _default = exports["default"] = dictionary;
|
156
155
|
})();
|
157
156
|
|
158
157
|
__webpack_exports__ = __webpack_exports__.___;
|
package/dist/languages/ru-RU.js
CHANGED
@@ -151,8 +151,7 @@ const dictionary = {
|
|
151
151
|
[C.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]: 'Второе значение'
|
152
152
|
};
|
153
153
|
_handsontable.default.languages.registerLanguageDictionary(dictionary);
|
154
|
-
var _default = dictionary;
|
155
|
-
exports["default"] = _default;
|
154
|
+
var _default = exports["default"] = dictionary;
|
156
155
|
})();
|
157
156
|
|
158
157
|
__webpack_exports__ = __webpack_exports__.___;
|
package/dist/languages/sr-SP.js
CHANGED
@@ -152,8 +152,7 @@ const dictionary = {
|
|
152
152
|
[C.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]: 'Druga vrednost'
|
153
153
|
};
|
154
154
|
_handsontable.default.languages.registerLanguageDictionary(dictionary);
|
155
|
-
var _default = dictionary;
|
156
|
-
exports["default"] = _default;
|
155
|
+
var _default = exports["default"] = dictionary;
|
157
156
|
})();
|
158
157
|
|
159
158
|
__webpack_exports__ = __webpack_exports__.___;
|
package/dist/languages/zh-CN.js
CHANGED
@@ -154,8 +154,7 @@ const dictionary = {
|
|
154
154
|
[C.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]: '第二值'
|
155
155
|
};
|
156
156
|
_handsontable.default.languages.registerLanguageDictionary(dictionary);
|
157
|
-
var _default = dictionary;
|
158
|
-
exports["default"] = _default;
|
157
|
+
var _default = exports["default"] = dictionary;
|
159
158
|
})();
|
160
159
|
|
161
160
|
__webpack_exports__ = __webpack_exports__.___;
|
package/dist/languages/zh-TW.js
CHANGED
@@ -151,8 +151,7 @@ const dictionary = {
|
|
151
151
|
[C.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]: '第二值'
|
152
152
|
};
|
153
153
|
_handsontable.default.languages.registerLanguageDictionary(dictionary);
|
154
|
-
var _default = dictionary;
|
155
|
-
exports["default"] = _default;
|
154
|
+
var _default = exports["default"] = dictionary;
|
156
155
|
})();
|
157
156
|
|
158
157
|
__webpack_exports__ = __webpack_exports__.___;
|
package/editorManager.js
CHANGED
@@ -3,15 +3,11 @@
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
var _unicode = require("./helpers/unicode");
|
5
5
|
var _event = require("./helpers/dom/event");
|
6
|
-
var _element = require("./helpers/dom/element");
|
7
6
|
var _registry = require("./editors/registry");
|
8
7
|
var _eventManager = _interopRequireDefault(require("./eventManager"));
|
9
8
|
var _mixed = require("./helpers/mixed");
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11
|
-
const SHORTCUTS_GROUP_NAVIGATION = 'editorManager.navigation';
|
12
|
-
exports.SHORTCUTS_GROUP_NAVIGATION = SHORTCUTS_GROUP_NAVIGATION;
|
13
|
-
const SHORTCUTS_GROUP_EDITOR = 'editorManager.handlingEditor';
|
14
|
-
exports.SHORTCUTS_GROUP_EDITOR = SHORTCUTS_GROUP_EDITOR;
|
10
|
+
const SHORTCUTS_GROUP_NAVIGATION = exports.SHORTCUTS_GROUP_NAVIGATION = 'editorManager.navigation';
|
15
11
|
class EditorManager {
|
16
12
|
/**
|
17
13
|
* @param {Core} instance The Handsontable instance.
|
@@ -74,9 +70,6 @@ class EditorManager {
|
|
74
70
|
* @type {object}
|
75
71
|
*/
|
76
72
|
this.cellProperties = void 0;
|
77
|
-
const shortcutManager = this.instance.getShortcutManager();
|
78
|
-
shortcutManager.addContext('editor');
|
79
|
-
this.registerShortcuts();
|
80
73
|
this.instance.addHook('afterDocumentKeyDown', event => this.onAfterDocumentKeyDown(event));
|
81
74
|
|
82
75
|
// Open editor when text composition is started (IME editor)
|
@@ -88,62 +81,6 @@ class EditorManager {
|
|
88
81
|
this.instance.view._wt.update('onCellDblClick', (event, coords, elem) => this.onCellDblClick(event, coords, elem));
|
89
82
|
}
|
90
83
|
|
91
|
-
/**
|
92
|
-
* Register shortcuts responsible for handling some actions related to an editor.
|
93
|
-
*
|
94
|
-
* @private
|
95
|
-
*/
|
96
|
-
registerShortcuts() {
|
97
|
-
const shortcutManager = this.instance.getShortcutManager();
|
98
|
-
const gridContext = shortcutManager.getContext('grid');
|
99
|
-
const editorContext = shortcutManager.getContext('editor');
|
100
|
-
const config = {
|
101
|
-
group: SHORTCUTS_GROUP_EDITOR
|
102
|
-
};
|
103
|
-
editorContext.addShortcuts([{
|
104
|
-
keys: [['Enter'], ['Enter', 'Shift'], ['Enter', 'Control/Meta'], ['Enter', 'Control/Meta', 'Shift']],
|
105
|
-
callback: (event, keys) => {
|
106
|
-
this.closeEditorAndSaveChanges(shortcutManager.isCtrlPressed());
|
107
|
-
this.moveSelectionAfterEnter(keys.includes('shift'));
|
108
|
-
}
|
109
|
-
}, {
|
110
|
-
keys: [['Escape'], ['Escape', 'Control/Meta']],
|
111
|
-
callback: () => {
|
112
|
-
this.closeEditorAndRestoreOriginalValue(shortcutManager.isCtrlPressed());
|
113
|
-
this.activeEditor.focus();
|
114
|
-
}
|
115
|
-
}], config);
|
116
|
-
gridContext.addShortcuts([{
|
117
|
-
keys: [['F2']],
|
118
|
-
callback: event => {
|
119
|
-
this.openEditor(null, event, true);
|
120
|
-
}
|
121
|
-
}, {
|
122
|
-
keys: [['Backspace'], ['Delete']],
|
123
|
-
callback: () => {
|
124
|
-
this.instance.emptySelectedCells();
|
125
|
-
this.prepareEditor();
|
126
|
-
}
|
127
|
-
}, {
|
128
|
-
keys: [['Enter'], ['Enter', 'Shift']],
|
129
|
-
callback: (event, keys) => {
|
130
|
-
if (this.instance.getSettings().enterBeginsEditing) {
|
131
|
-
if (this.cellProperties.readOnly) {
|
132
|
-
this.moveSelectionAfterEnter();
|
133
|
-
} else {
|
134
|
-
this.openEditor(null, event, true);
|
135
|
-
}
|
136
|
-
} else {
|
137
|
-
this.moveSelectionAfterEnter(keys.includes('shift'));
|
138
|
-
}
|
139
|
-
(0, _event.stopImmediatePropagation)(event); // required by HandsontableEditor
|
140
|
-
}
|
141
|
-
}], {
|
142
|
-
...config,
|
143
|
-
runOnlyIf: () => (0, _mixed.isDefined)(this.instance.getSelected())
|
144
|
-
});
|
145
|
-
}
|
146
|
-
|
147
84
|
/**
|
148
85
|
* Lock the editor from being prepared and closed. Locking the editor prevents its closing and
|
149
86
|
* reinitialized after selecting the new cell. This feature is necessary for a mobile editor.
|
@@ -196,10 +133,16 @@ class EditorManager {
|
|
196
133
|
});
|
197
134
|
return;
|
198
135
|
}
|
136
|
+
const {
|
137
|
+
highlight
|
138
|
+
} = this.instance.getSelectedRangeLast();
|
139
|
+
if (highlight.isHeader()) {
|
140
|
+
return;
|
141
|
+
}
|
199
142
|
const {
|
200
143
|
row,
|
201
144
|
col
|
202
|
-
} =
|
145
|
+
} = highlight;
|
203
146
|
const modifiedCellCoords = this.instance.runHooks('modifyGetCellCoords', row, col);
|
204
147
|
let visualRowToCheck = row;
|
205
148
|
let visualColumnToCheck = col;
|
@@ -209,17 +152,6 @@ class EditorManager {
|
|
209
152
|
|
210
153
|
// Getting values using the modified coordinates.
|
211
154
|
this.cellProperties = this.instance.getCellMeta(visualRowToCheck, visualColumnToCheck);
|
212
|
-
const {
|
213
|
-
activeElement
|
214
|
-
} = this.instance.rootDocument;
|
215
|
-
|
216
|
-
// Blurring the `activeElement` removes the unwanted border around the focusable element (#6877)
|
217
|
-
// and resets the `document.activeElement` property. The blurring should happen only when the
|
218
|
-
// previously selected input element has not belonged to the Handsontable editor. If blurring is
|
219
|
-
// triggered for all elements, there is a problem with the disappearing IME editor (#9672).
|
220
|
-
if (activeElement && (0, _element.isOutsideInput)(activeElement)) {
|
221
|
-
activeElement.blur();
|
222
|
-
}
|
223
155
|
if (!this.isCellEditable()) {
|
224
156
|
this.clearActiveEditor();
|
225
157
|
return;
|
@@ -263,14 +195,7 @@ class EditorManager {
|
|
263
195
|
return;
|
264
196
|
}
|
265
197
|
if (!this.activeEditor) {
|
266
|
-
|
267
|
-
row,
|
268
|
-
col
|
269
|
-
} = this.instance.getSelectedRangeLast().highlight;
|
270
|
-
const renderableRowIndex = this.instance.rowIndexMapper.getRenderableFromVisualIndex(row);
|
271
|
-
const renderableColumnIndex = this.instance.columnIndexMapper.getRenderableFromVisualIndex(col);
|
272
|
-
this.instance.view.scrollViewport(this.instance._createCellCoords(renderableRowIndex, renderableColumnIndex));
|
273
|
-
this.instance.view.render();
|
198
|
+
this.instance.scrollToFocusedCell();
|
274
199
|
this.prepareEditor();
|
275
200
|
}
|
276
201
|
if (this.activeEditor) {
|
@@ -334,11 +259,15 @@ class EditorManager {
|
|
334
259
|
* @returns {boolean}
|
335
260
|
*/
|
336
261
|
isCellEditable() {
|
262
|
+
const selection = this.instance.getSelectedRangeLast();
|
263
|
+
if (!selection) {
|
264
|
+
return false;
|
265
|
+
}
|
337
266
|
const editorClass = this.instance.getCellEditor(this.cellProperties);
|
338
267
|
const {
|
339
268
|
row,
|
340
269
|
col
|
341
|
-
} =
|
270
|
+
} = selection.highlight;
|
342
271
|
const {
|
343
272
|
rowIndexMapper,
|
344
273
|
columnIndexMapper
|
@@ -374,15 +303,13 @@ class EditorManager {
|
|
374
303
|
* @param {KeyboardEvent} event The keyboard event object.
|
375
304
|
*/
|
376
305
|
onAfterDocumentKeyDown(event) {
|
377
|
-
|
306
|
+
const selection = this.instance.getSelectedRangeLast();
|
307
|
+
if (!this.instance.isListening() || !selection || selection.highlight.isHeader() || (0, _event.isImmediatePropagationStopped)(event)) {
|
378
308
|
return;
|
379
309
|
}
|
380
310
|
const {
|
381
311
|
keyCode
|
382
312
|
} = event;
|
383
|
-
if (!this.selection.isSelected()) {
|
384
|
-
return;
|
385
|
-
}
|
386
313
|
|
387
314
|
// catch CTRL but not right ALT (which in some systems triggers ALT+CTRL)
|
388
315
|
const isCtrlPressed = (event.ctrlKey || event.metaKey) && !event.altKey;
|
@@ -459,5 +386,4 @@ EditorManager.getInstance = function (hotInstance, tableMeta, selection) {
|
|
459
386
|
}
|
460
387
|
return editorManager;
|
461
388
|
};
|
462
|
-
var _default = EditorManager;
|
463
|
-
exports.default = _default;
|
389
|
+
var _default = exports.default = EditorManager;
|
package/editorManager.mjs
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
import { isFunctionKey, isCtrlMetaKey } from "./helpers/unicode.mjs";
|
2
|
-
import {
|
3
|
-
import { isOutsideInput } from "./helpers/dom/element.mjs";
|
2
|
+
import { isImmediatePropagationStopped } from "./helpers/dom/event.mjs";
|
4
3
|
import { getEditorInstance } from "./editors/registry.mjs";
|
5
4
|
import EventManager from "./eventManager.mjs";
|
6
5
|
import { isDefined } from "./helpers/mixed.mjs";
|
7
6
|
export const SHORTCUTS_GROUP_NAVIGATION = 'editorManager.navigation';
|
8
|
-
export const SHORTCUTS_GROUP_EDITOR = 'editorManager.handlingEditor';
|
9
7
|
class EditorManager {
|
10
8
|
/**
|
11
9
|
* @param {Core} instance The Handsontable instance.
|
@@ -68,9 +66,6 @@ class EditorManager {
|
|
68
66
|
* @type {object}
|
69
67
|
*/
|
70
68
|
this.cellProperties = void 0;
|
71
|
-
const shortcutManager = this.instance.getShortcutManager();
|
72
|
-
shortcutManager.addContext('editor');
|
73
|
-
this.registerShortcuts();
|
74
69
|
this.instance.addHook('afterDocumentKeyDown', event => this.onAfterDocumentKeyDown(event));
|
75
70
|
|
76
71
|
// Open editor when text composition is started (IME editor)
|
@@ -82,62 +77,6 @@ class EditorManager {
|
|
82
77
|
this.instance.view._wt.update('onCellDblClick', (event, coords, elem) => this.onCellDblClick(event, coords, elem));
|
83
78
|
}
|
84
79
|
|
85
|
-
/**
|
86
|
-
* Register shortcuts responsible for handling some actions related to an editor.
|
87
|
-
*
|
88
|
-
* @private
|
89
|
-
*/
|
90
|
-
registerShortcuts() {
|
91
|
-
const shortcutManager = this.instance.getShortcutManager();
|
92
|
-
const gridContext = shortcutManager.getContext('grid');
|
93
|
-
const editorContext = shortcutManager.getContext('editor');
|
94
|
-
const config = {
|
95
|
-
group: SHORTCUTS_GROUP_EDITOR
|
96
|
-
};
|
97
|
-
editorContext.addShortcuts([{
|
98
|
-
keys: [['Enter'], ['Enter', 'Shift'], ['Enter', 'Control/Meta'], ['Enter', 'Control/Meta', 'Shift']],
|
99
|
-
callback: (event, keys) => {
|
100
|
-
this.closeEditorAndSaveChanges(shortcutManager.isCtrlPressed());
|
101
|
-
this.moveSelectionAfterEnter(keys.includes('shift'));
|
102
|
-
}
|
103
|
-
}, {
|
104
|
-
keys: [['Escape'], ['Escape', 'Control/Meta']],
|
105
|
-
callback: () => {
|
106
|
-
this.closeEditorAndRestoreOriginalValue(shortcutManager.isCtrlPressed());
|
107
|
-
this.activeEditor.focus();
|
108
|
-
}
|
109
|
-
}], config);
|
110
|
-
gridContext.addShortcuts([{
|
111
|
-
keys: [['F2']],
|
112
|
-
callback: event => {
|
113
|
-
this.openEditor(null, event, true);
|
114
|
-
}
|
115
|
-
}, {
|
116
|
-
keys: [['Backspace'], ['Delete']],
|
117
|
-
callback: () => {
|
118
|
-
this.instance.emptySelectedCells();
|
119
|
-
this.prepareEditor();
|
120
|
-
}
|
121
|
-
}, {
|
122
|
-
keys: [['Enter'], ['Enter', 'Shift']],
|
123
|
-
callback: (event, keys) => {
|
124
|
-
if (this.instance.getSettings().enterBeginsEditing) {
|
125
|
-
if (this.cellProperties.readOnly) {
|
126
|
-
this.moveSelectionAfterEnter();
|
127
|
-
} else {
|
128
|
-
this.openEditor(null, event, true);
|
129
|
-
}
|
130
|
-
} else {
|
131
|
-
this.moveSelectionAfterEnter(keys.includes('shift'));
|
132
|
-
}
|
133
|
-
stopImmediatePropagation(event); // required by HandsontableEditor
|
134
|
-
}
|
135
|
-
}], {
|
136
|
-
...config,
|
137
|
-
runOnlyIf: () => isDefined(this.instance.getSelected())
|
138
|
-
});
|
139
|
-
}
|
140
|
-
|
141
80
|
/**
|
142
81
|
* Lock the editor from being prepared and closed. Locking the editor prevents its closing and
|
143
82
|
* reinitialized after selecting the new cell. This feature is necessary for a mobile editor.
|
@@ -190,10 +129,16 @@ class EditorManager {
|
|
190
129
|
});
|
191
130
|
return;
|
192
131
|
}
|
132
|
+
const {
|
133
|
+
highlight
|
134
|
+
} = this.instance.getSelectedRangeLast();
|
135
|
+
if (highlight.isHeader()) {
|
136
|
+
return;
|
137
|
+
}
|
193
138
|
const {
|
194
139
|
row,
|
195
140
|
col
|
196
|
-
} =
|
141
|
+
} = highlight;
|
197
142
|
const modifiedCellCoords = this.instance.runHooks('modifyGetCellCoords', row, col);
|
198
143
|
let visualRowToCheck = row;
|
199
144
|
let visualColumnToCheck = col;
|
@@ -203,17 +148,6 @@ class EditorManager {
|
|
203
148
|
|
204
149
|
// Getting values using the modified coordinates.
|
205
150
|
this.cellProperties = this.instance.getCellMeta(visualRowToCheck, visualColumnToCheck);
|
206
|
-
const {
|
207
|
-
activeElement
|
208
|
-
} = this.instance.rootDocument;
|
209
|
-
|
210
|
-
// Blurring the `activeElement` removes the unwanted border around the focusable element (#6877)
|
211
|
-
// and resets the `document.activeElement` property. The blurring should happen only when the
|
212
|
-
// previously selected input element has not belonged to the Handsontable editor. If blurring is
|
213
|
-
// triggered for all elements, there is a problem with the disappearing IME editor (#9672).
|
214
|
-
if (activeElement && isOutsideInput(activeElement)) {
|
215
|
-
activeElement.blur();
|
216
|
-
}
|
217
151
|
if (!this.isCellEditable()) {
|
218
152
|
this.clearActiveEditor();
|
219
153
|
return;
|
@@ -257,14 +191,7 @@ class EditorManager {
|
|
257
191
|
return;
|
258
192
|
}
|
259
193
|
if (!this.activeEditor) {
|
260
|
-
|
261
|
-
row,
|
262
|
-
col
|
263
|
-
} = this.instance.getSelectedRangeLast().highlight;
|
264
|
-
const renderableRowIndex = this.instance.rowIndexMapper.getRenderableFromVisualIndex(row);
|
265
|
-
const renderableColumnIndex = this.instance.columnIndexMapper.getRenderableFromVisualIndex(col);
|
266
|
-
this.instance.view.scrollViewport(this.instance._createCellCoords(renderableRowIndex, renderableColumnIndex));
|
267
|
-
this.instance.view.render();
|
194
|
+
this.instance.scrollToFocusedCell();
|
268
195
|
this.prepareEditor();
|
269
196
|
}
|
270
197
|
if (this.activeEditor) {
|
@@ -328,11 +255,15 @@ class EditorManager {
|
|
328
255
|
* @returns {boolean}
|
329
256
|
*/
|
330
257
|
isCellEditable() {
|
258
|
+
const selection = this.instance.getSelectedRangeLast();
|
259
|
+
if (!selection) {
|
260
|
+
return false;
|
261
|
+
}
|
331
262
|
const editorClass = this.instance.getCellEditor(this.cellProperties);
|
332
263
|
const {
|
333
264
|
row,
|
334
265
|
col
|
335
|
-
} =
|
266
|
+
} = selection.highlight;
|
336
267
|
const {
|
337
268
|
rowIndexMapper,
|
338
269
|
columnIndexMapper
|
@@ -368,15 +299,13 @@ class EditorManager {
|
|
368
299
|
* @param {KeyboardEvent} event The keyboard event object.
|
369
300
|
*/
|
370
301
|
onAfterDocumentKeyDown(event) {
|
371
|
-
|
302
|
+
const selection = this.instance.getSelectedRangeLast();
|
303
|
+
if (!this.instance.isListening() || !selection || selection.highlight.isHeader() || isImmediatePropagationStopped(event)) {
|
372
304
|
return;
|
373
305
|
}
|
374
306
|
const {
|
375
307
|
keyCode
|
376
308
|
} = event;
|
377
|
-
if (!this.selection.isSelected()) {
|
378
|
-
return;
|
379
|
-
}
|
380
309
|
|
381
310
|
// catch CTRL but not right ALT (which in some systems triggers ALT+CTRL)
|
382
311
|
const isCtrlPressed = (event.ctrlKey || event.metaKey) && !event.altKey;
|
@@ -10,17 +10,17 @@ var _mixed = require("../../helpers/mixed");
|
|
10
10
|
var _string = require("../../helpers/string");
|
11
11
|
var _unicode = require("../../helpers/unicode");
|
12
12
|
var _textRenderer = require("../../renderers/textRenderer");
|
13
|
+
var _a11y = require("../../helpers/a11y");
|
13
14
|
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
15
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
15
16
|
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); }
|
16
17
|
const privatePool = new WeakMap();
|
17
|
-
const EDITOR_TYPE = 'autocomplete';
|
18
|
+
const EDITOR_TYPE = exports.EDITOR_TYPE = 'autocomplete';
|
18
19
|
|
19
20
|
/**
|
20
21
|
* @private
|
21
22
|
* @class AutocompleteEditor
|
22
23
|
*/
|
23
|
-
exports.EDITOR_TYPE = EDITOR_TYPE;
|
24
24
|
class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
|
25
25
|
static get EDITOR_TYPE() {
|
26
26
|
return EDITOR_TYPE;
|
@@ -113,7 +113,8 @@ class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
|
|
113
113
|
this.rawChoices = [];
|
114
114
|
privatePool.set(this, {
|
115
115
|
skipOne: false,
|
116
|
-
isMacOS: this.hot.rootWindow.navigator.platform.indexOf('Mac') > -1
|
116
|
+
isMacOS: this.hot.rootWindow.navigator.platform.indexOf('Mac') > -1,
|
117
|
+
idPrefix: instance.guid.slice(0, 9)
|
117
118
|
});
|
118
119
|
}
|
119
120
|
|
@@ -140,6 +141,27 @@ class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
|
|
140
141
|
super.createElements();
|
141
142
|
(0, _element.addClass)(this.htContainer, 'autocompleteEditor');
|
142
143
|
(0, _element.addClass)(this.htContainer, this.hot.rootWindow.navigator.platform.indexOf('Mac') === -1 ? '' : 'htMacScroll');
|
144
|
+
if (this.hot.getSettings().ariaTags) {
|
145
|
+
(0, _element.setAttribute)(this.TEXTAREA, [(0, _a11y.A11Y_TEXT)(), (0, _a11y.A11Y_COMBOBOX)(), (0, _a11y.A11Y_HASPOPUP)('listbox'), (0, _a11y.A11Y_AUTOCOMPLETE)()]);
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
/**
|
150
|
+
* Prepares editor's metadata and configuration of the internal Handsontable's instance.
|
151
|
+
*
|
152
|
+
* @param {number} row The visual row index.
|
153
|
+
* @param {number} col The visual column index.
|
154
|
+
* @param {number|string} prop The column property (passed when datasource is an array of objects).
|
155
|
+
* @param {HTMLTableCellElement} td The rendered cell element.
|
156
|
+
* @param {*} value The rendered value.
|
157
|
+
* @param {object} cellProperties The cell meta object ({@see Core#getCellMeta}).
|
158
|
+
*/
|
159
|
+
prepare(row, col, prop, td, value, cellProperties) {
|
160
|
+
const priv = privatePool.get(this);
|
161
|
+
super.prepare(row, col, prop, td, value, cellProperties);
|
162
|
+
if (this.hot.getSettings().ariaTags) {
|
163
|
+
(0, _element.setAttribute)(this.TEXTAREA, [(0, _a11y.A11Y_EXPANDED)('false'), (0, _a11y.A11Y_CONTROLS)(`${priv.idPrefix}-listbox-${row}-${col}`)]);
|
164
|
+
}
|
143
165
|
}
|
144
166
|
|
145
167
|
/**
|
@@ -148,8 +170,14 @@ class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
|
|
148
170
|
open() {
|
149
171
|
const priv = privatePool.get(this);
|
150
172
|
super.open();
|
151
|
-
const choicesListHot = this.htEditor.getInstance();
|
152
173
|
const trimDropdown = this.cellProperties.trimDropdown === void 0 ? true : this.cellProperties.trimDropdown;
|
174
|
+
const rootInstanceAriaTagsEnabled = this.hot.getSettings().ariaTags;
|
175
|
+
const sourceArray = Array.isArray(this.cellProperties.source) ? this.cellProperties.source : null;
|
176
|
+
const sourceSize = sourceArray === null || sourceArray === void 0 ? void 0 : sourceArray.length;
|
177
|
+
const {
|
178
|
+
row: rowIndex,
|
179
|
+
col: colIndex
|
180
|
+
} = this;
|
153
181
|
this.showEditableElement();
|
154
182
|
this.focus();
|
155
183
|
let scrollbarWidth = (0, _element.getScrollbarWidth)();
|
@@ -158,9 +186,10 @@ class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
|
|
158
186
|
}
|
159
187
|
|
160
188
|
this.addHook('beforeKeyDown', event => this.onBeforeKeyDown(event));
|
161
|
-
|
189
|
+
this.htEditor.updateSettings({
|
162
190
|
colWidths: trimDropdown ? [(0, _element.outerWidth)(this.TEXTAREA) - 2] : void 0,
|
163
191
|
width: trimDropdown ? (0, _element.outerWidth)(this.TEXTAREA) + scrollbarWidth : void 0,
|
192
|
+
autoColumnSize: true,
|
164
193
|
renderer: (instance, TD, row, col, prop, value, cellProperties) => {
|
165
194
|
(0, _textRenderer.textRenderer)(instance, TD, row, col, prop, value, cellProperties);
|
166
195
|
const {
|
@@ -179,10 +208,27 @@ class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
|
|
179
208
|
cellValue = cellValue.replace(match, `<strong>${match}</strong>`);
|
180
209
|
}
|
181
210
|
}
|
211
|
+
if (rootInstanceAriaTagsEnabled) {
|
212
|
+
(0, _element.setAttribute)(TD, [(0, _a11y.A11Y_OPTION)(),
|
213
|
+
// Add `setsize` and `posinset` only if the source is an array.
|
214
|
+
...(sourceArray ? [(0, _a11y.A11Y_SETSIZE)(sourceSize)] : []), ...(sourceArray ? [(0, _a11y.A11Y_POSINSET)(sourceArray.indexOf(value) + 1)] : []), ['id', `${this.htEditor.rootElement.id}_${row}-${col}`]]);
|
215
|
+
}
|
182
216
|
TD.innerHTML = cellValue;
|
183
217
|
},
|
184
|
-
|
218
|
+
afterSelection: (startRow, startCol) => {
|
219
|
+
if (rootInstanceAriaTagsEnabled) {
|
220
|
+
const TD = this.htEditor.getCell(startRow, startCol, true);
|
221
|
+
(0, _element.setAttribute)(TD, [(0, _a11y.A11Y_SELECTED)()]);
|
222
|
+
(0, _element.setAttribute)(this.TEXTAREA, ...(0, _a11y.A11Y_ACTIVEDESCENDANT)(TD.id));
|
223
|
+
}
|
224
|
+
}
|
185
225
|
});
|
226
|
+
if (rootInstanceAriaTagsEnabled) {
|
227
|
+
// Add `role=presentation` to the main table to prevent the readers from treating the option list as a table.
|
228
|
+
(0, _element.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE, ...(0, _a11y.A11Y_PRESENTATION)());
|
229
|
+
(0, _element.setAttribute)(this.htEditor.rootElement, [(0, _a11y.A11Y_LISTBOX)(), (0, _a11y.A11Y_LIVE)('polite'), (0, _a11y.A11Y_RELEVANT)('text'), ['id', `${priv.idPrefix}-listbox-${rowIndex}-${colIndex}`]]);
|
230
|
+
(0, _element.setAttribute)(this.TEXTAREA, ...(0, _a11y.A11Y_EXPANDED)('true'));
|
231
|
+
}
|
186
232
|
if (priv.skipOne) {
|
187
233
|
priv.skipOne = false;
|
188
234
|
}
|
@@ -197,6 +243,9 @@ class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
|
|
197
243
|
close() {
|
198
244
|
this.removeHooksByKey('beforeKeyDown');
|
199
245
|
super.close();
|
246
|
+
if (this.hot.getSettings().ariaTags) {
|
247
|
+
(0, _element.setAttribute)(this.TEXTAREA, [(0, _a11y.A11Y_EXPANDED)('false')]);
|
248
|
+
}
|
200
249
|
}
|
201
250
|
|
202
251
|
/**
|
@@ -271,10 +320,15 @@ class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
|
|
271
320
|
}
|
272
321
|
this.strippedChoices = choices;
|
273
322
|
this.htEditor.loadData((0, _array.pivot)([choices]));
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
this.
|
323
|
+
if (choices.length === 0) {
|
324
|
+
this.htEditor.rootElement.style.display = 'none';
|
325
|
+
} else {
|
326
|
+
this.htEditor.rootElement.style.display = '';
|
327
|
+
this.updateDropdownHeight();
|
328
|
+
this.flipDropdownIfNeeded();
|
329
|
+
if (this.cellProperties.strict === true) {
|
330
|
+
this.highlightBestMatchingChoice(highlightIndex);
|
331
|
+
}
|
278
332
|
}
|
279
333
|
this.hot.listen();
|
280
334
|
(0, _element.setCaretPosition)(this.TEXTAREA, pos, pos === endPos ? void 0 : endPos);
|
@@ -411,7 +465,7 @@ class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
|
|
411
465
|
* @returns {number}
|
412
466
|
*/
|
413
467
|
getDropdownHeight() {
|
414
|
-
const firstRowHeight = this.htEditor.
|
468
|
+
const firstRowHeight = this.htEditor.getRowHeight(0) || 23;
|
415
469
|
const visibleRows = this.cellProperties.visibleRows;
|
416
470
|
return this.strippedChoices.length >= visibleRows ? visibleRows * firstRowHeight : this.strippedChoices.length * firstRowHeight + 8; // eslint-disable-line max-len
|
417
471
|
}
|