handsontable 12.2.0 → 12.3.0-next-9dc4f5d-20221209
Sign up to get free protection for your applications and to get access to all the features.
- package/3rdparty/walkontable/src/border.js +13 -6
- package/3rdparty/walkontable/src/border.mjs +12 -5
- package/3rdparty/walkontable/src/calculator/viewportColumns.js +10 -1
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +10 -1
- package/3rdparty/walkontable/src/calculator/viewportRows.js +10 -1
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +10 -1
- package/3rdparty/walkontable/src/cell/coords.d.ts +1 -1
- package/3rdparty/walkontable/src/cell/coords.js +64 -26
- package/3rdparty/walkontable/src/cell/coords.mjs +64 -26
- package/3rdparty/walkontable/src/cell/range.d.ts +19 -16
- package/3rdparty/walkontable/src/cell/range.js +199 -104
- package/3rdparty/walkontable/src/cell/range.mjs +201 -106
- package/3rdparty/walkontable/src/core/_base.js +17 -3
- package/3rdparty/walkontable/src/core/_base.mjs +20 -6
- package/3rdparty/walkontable/src/core/clone.js +13 -7
- package/3rdparty/walkontable/src/core/clone.mjs +15 -9
- package/3rdparty/walkontable/src/core/core.js +8 -2
- package/3rdparty/walkontable/src/core/core.mjs +10 -4
- package/3rdparty/walkontable/src/event.js +10 -1
- package/3rdparty/walkontable/src/event.mjs +10 -1
- package/3rdparty/walkontable/src/facade/core.js +16 -2
- package/3rdparty/walkontable/src/facade/core.mjs +22 -8
- package/3rdparty/walkontable/src/filter/column.js +16 -2
- package/3rdparty/walkontable/src/filter/column.mjs +16 -2
- package/3rdparty/walkontable/src/filter/row.js +16 -2
- package/3rdparty/walkontable/src/filter/row.mjs +16 -2
- package/3rdparty/walkontable/src/overlay/_base.js +17 -3
- package/3rdparty/walkontable/src/overlay/_base.mjs +24 -10
- package/3rdparty/walkontable/src/overlay/bottom.js +13 -7
- package/3rdparty/walkontable/src/overlay/bottom.mjs +15 -9
- package/3rdparty/walkontable/src/overlay/bottomInlineStartCorner.js +8 -2
- package/3rdparty/walkontable/src/overlay/bottomInlineStartCorner.mjs +10 -4
- package/3rdparty/walkontable/src/overlay/inlineStart.js +8 -2
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +10 -4
- package/3rdparty/walkontable/src/overlay/top.js +13 -7
- package/3rdparty/walkontable/src/overlay/top.mjs +15 -9
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +13 -7
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +15 -9
- package/3rdparty/walkontable/src/overlays.js +69 -19
- package/3rdparty/walkontable/src/overlays.mjs +71 -21
- package/3rdparty/walkontable/src/renderer/_base.js +16 -2
- package/3rdparty/walkontable/src/renderer/_base.mjs +20 -6
- package/3rdparty/walkontable/src/renderer/cells.js +8 -2
- package/3rdparty/walkontable/src/renderer/cells.mjs +20 -14
- package/3rdparty/walkontable/src/renderer/colGroup.js +8 -2
- package/3rdparty/walkontable/src/renderer/colGroup.mjs +19 -13
- package/3rdparty/walkontable/src/renderer/columnHeaders.js +8 -2
- package/3rdparty/walkontable/src/renderer/columnHeaders.mjs +19 -13
- package/3rdparty/walkontable/src/renderer/index.js +16 -2
- package/3rdparty/walkontable/src/renderer/index.mjs +20 -6
- package/3rdparty/walkontable/src/renderer/rowHeaders.js +8 -2
- package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +20 -14
- package/3rdparty/walkontable/src/renderer/rows.js +8 -3
- package/3rdparty/walkontable/src/renderer/rows.mjs +8 -3
- package/3rdparty/walkontable/src/renderer/table.js +16 -2
- package/3rdparty/walkontable/src/renderer/table.mjs +16 -2
- package/3rdparty/walkontable/src/scroll.js +16 -3
- package/3rdparty/walkontable/src/scroll.mjs +18 -5
- package/3rdparty/walkontable/src/selection.js +11 -5
- package/3rdparty/walkontable/src/selection.mjs +11 -5
- package/3rdparty/walkontable/src/settings.js +16 -2
- package/3rdparty/walkontable/src/settings.mjs +16 -2
- package/3rdparty/walkontable/src/table/bottom.js +8 -2
- package/3rdparty/walkontable/src/table/bottom.mjs +13 -7
- package/3rdparty/walkontable/src/table/bottomInlineStartCorner.js +8 -2
- package/3rdparty/walkontable/src/table/bottomInlineStartCorner.mjs +14 -8
- package/3rdparty/walkontable/src/table/inlineStart.js +8 -2
- package/3rdparty/walkontable/src/table/inlineStart.mjs +10 -4
- package/3rdparty/walkontable/src/table/master.js +8 -2
- package/3rdparty/walkontable/src/table/master.mjs +13 -7
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +12 -6
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +12 -6
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +12 -6
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +12 -6
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +12 -6
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +12 -6
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +12 -6
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +12 -6
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +12 -6
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +12 -6
- package/3rdparty/walkontable/src/table/top.js +8 -2
- package/3rdparty/walkontable/src/table/top.mjs +13 -7
- package/3rdparty/walkontable/src/table/topInlineStartCorner.js +8 -2
- package/3rdparty/walkontable/src/table/topInlineStartCorner.mjs +14 -8
- package/3rdparty/walkontable/src/table.js +13 -6
- package/3rdparty/walkontable/src/table.mjs +21 -14
- package/3rdparty/walkontable/src/utils/column.js +12 -2
- package/3rdparty/walkontable/src/utils/column.mjs +16 -6
- package/3rdparty/walkontable/src/utils/nodesPool.js +16 -2
- package/3rdparty/walkontable/src/utils/nodesPool.mjs +16 -2
- package/3rdparty/walkontable/src/utils/orderView/sharedView.js +8 -2
- package/3rdparty/walkontable/src/utils/orderView/sharedView.mjs +12 -6
- package/3rdparty/walkontable/src/utils/orderView/view.js +16 -2
- package/3rdparty/walkontable/src/utils/orderView/view.mjs +23 -9
- package/3rdparty/walkontable/src/utils/orderView/viewSize.js +16 -2
- package/3rdparty/walkontable/src/utils/orderView/viewSize.mjs +16 -2
- package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.js +16 -2
- package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.mjs +31 -17
- package/3rdparty/walkontable/src/utils/row.js +16 -2
- package/3rdparty/walkontable/src/utils/row.mjs +16 -2
- package/3rdparty/walkontable/src/viewport.js +16 -2
- package/3rdparty/walkontable/src/viewport.mjs +18 -4
- package/CHANGELOG.md +23 -0
- package/base.d.ts +1 -0
- package/base.js +7 -2
- package/base.mjs +9 -4
- package/cellTypes/index.mjs +4 -3
- package/core.d.ts +1 -1
- package/core.js +234 -122
- package/core.mjs +231 -119
- package/dataMap/dataMap.js +98 -28
- package/dataMap/dataMap.mjs +97 -27
- package/dataMap/dataSource.js +14 -2
- package/dataMap/dataSource.mjs +17 -5
- package/dataMap/metaManager/index.js +15 -2
- package/dataMap/metaManager/index.mjs +41 -28
- package/dataMap/metaManager/lazyFactoryMap.js +7 -1
- package/dataMap/metaManager/lazyFactoryMap.mjs +7 -1
- package/dataMap/metaManager/metaLayers/cellMeta.js +13 -8
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +12 -7
- package/dataMap/metaManager/metaLayers/columnMeta.js +15 -2
- package/dataMap/metaManager/metaLayers/columnMeta.mjs +23 -9
- package/dataMap/metaManager/metaLayers/globalMeta.js +26 -2
- package/dataMap/metaManager/metaLayers/globalMeta.mjs +27 -3
- package/dataMap/metaManager/metaLayers/tableMeta.js +17 -3
- package/dataMap/metaManager/metaLayers/tableMeta.mjs +41 -27
- package/dataMap/metaManager/metaSchema.js +119 -66
- package/dataMap/metaManager/metaSchema.mjs +119 -66
- package/dataMap/metaManager/mods/dynamicCellMeta.js +12 -2
- package/dataMap/metaManager/mods/dynamicCellMeta.mjs +26 -16
- package/dataMap/metaManager/mods/extendMetaProperties.js +12 -2
- package/dataMap/metaManager/mods/extendMetaProperties.mjs +10 -1
- package/dataMap/metaManager/utils.js +44 -14
- package/dataMap/metaManager/utils.mjs +51 -20
- package/dataMap/replaceData.js +2 -1
- package/dataMap/replaceData.mjs +24 -22
- package/dist/handsontable.css +9 -9
- package/dist/handsontable.full.css +9 -9
- package/dist/handsontable.full.js +7350 -10885
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +107 -113
- package/dist/handsontable.js +5800 -4499
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +3 -3
- package/dist/languages/all.js +111 -65
- package/dist/languages/all.min.js +1 -1
- package/dist/languages/ar-AR.js +50 -4
- package/dist/languages/ar-AR.min.js +1 -1
- package/dist/languages/cs-CZ.js +52 -6
- package/dist/languages/cs-CZ.min.js +1 -1
- package/dist/languages/de-CH.js +52 -6
- package/dist/languages/de-CH.min.js +1 -1
- package/dist/languages/de-DE.js +53 -7
- package/dist/languages/de-DE.min.js +1 -1
- package/dist/languages/en-US.js +56 -10
- package/dist/languages/en-US.min.js +1 -1
- package/dist/languages/es-MX.js +56 -10
- package/dist/languages/es-MX.min.js +1 -1
- package/dist/languages/fr-FR.js +55 -9
- package/dist/languages/fr-FR.min.js +1 -1
- package/dist/languages/it-IT.js +55 -9
- package/dist/languages/it-IT.min.js +1 -1
- package/dist/languages/ja-JP.js +83 -33
- package/dist/languages/ja-JP.min.js +1 -1
- package/dist/languages/ko-KR.js +84 -33
- package/dist/languages/ko-KR.min.js +1 -1
- package/dist/languages/lv-LV.js +85 -33
- package/dist/languages/lv-LV.min.js +1 -1
- package/dist/languages/nb-NO.js +86 -33
- package/dist/languages/nb-NO.min.js +1 -1
- package/dist/languages/nl-NL.js +87 -33
- package/dist/languages/nl-NL.min.js +1 -1
- package/dist/languages/pl-PL.js +88 -33
- package/dist/languages/pl-PL.min.js +1 -1
- package/dist/languages/pt-BR.js +68 -19
- package/dist/languages/pt-BR.min.js +1 -1
- package/dist/languages/ru-RU.js +68 -19
- package/dist/languages/ru-RU.min.js +1 -1
- package/dist/languages/sr-SP.js +55 -6
- package/dist/languages/sr-SP.min.js +1 -1
- package/dist/languages/zh-CN.js +55 -6
- package/dist/languages/zh-CN.min.js +1 -1
- package/dist/languages/zh-TW.js +55 -6
- package/dist/languages/zh-TW.min.js +1 -1
- package/editorManager.js +18 -9
- package/editorManager.mjs +15 -6
- package/editors/autocompleteEditor/autocompleteEditor.js +10 -5
- package/editors/autocompleteEditor/autocompleteEditor.mjs +9 -4
- package/editors/baseEditor/baseEditor.js +11 -6
- package/editors/baseEditor/baseEditor.mjs +10 -5
- package/editors/checkboxEditor/checkboxEditor.js +6 -1
- package/editors/checkboxEditor/checkboxEditor.mjs +6 -1
- package/editors/dateEditor/dateEditor.js +6 -1
- package/editors/dateEditor/dateEditor.mjs +6 -1
- package/editors/dropdownEditor/dropdownEditor.js +6 -1
- package/editors/dropdownEditor/dropdownEditor.mjs +6 -1
- package/editors/handsontableEditor/handsontableEditor.js +6 -1
- package/editors/handsontableEditor/handsontableEditor.mjs +6 -1
- package/editors/index.mjs +4 -3
- package/editors/numericEditor/numericEditor.js +6 -1
- package/editors/numericEditor/numericEditor.mjs +6 -1
- package/editors/passwordEditor/passwordEditor.js +6 -1
- package/editors/passwordEditor/passwordEditor.mjs +6 -1
- package/editors/registry.js +3 -0
- package/editors/registry.mjs +5 -1
- package/editors/selectEditor/selectEditor.js +6 -1
- package/editors/selectEditor/selectEditor.mjs +6 -1
- package/editors/textEditor/caretPositioner.mjs +11 -10
- package/editors/textEditor/textEditor.js +7 -2
- package/editors/textEditor/textEditor.mjs +7 -2
- package/editors/timeEditor/timeEditor.js +6 -1
- package/editors/timeEditor/timeEditor.mjs +6 -1
- package/eventManager.js +24 -9
- package/eventManager.mjs +26 -11
- package/helpers/console.mjs +6 -5
- package/helpers/data.d.ts +0 -1
- package/helpers/data.js +0 -49
- package/helpers/data.mjs +1 -49
- package/helpers/dom/element.js +23 -0
- package/helpers/dom/element.mjs +30 -7
- package/helpers/feature.js +9 -36
- package/helpers/feature.mjs +3 -30
- package/helpers/function.mjs +7 -6
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +9 -8
- package/helpers/object.js +15 -9
- package/helpers/object.mjs +17 -10
- package/helpers/string.mjs +7 -6
- package/helpers/templateLiteralTag.mjs +8 -7
- package/i18n/constants.js +49 -42
- package/i18n/constants.mjs +45 -41
- package/i18n/languages/ar-AR.js +12 -7
- package/i18n/languages/ar-AR.mjs +16 -2
- package/i18n/languages/cs-CZ.js +12 -7
- package/i18n/languages/cs-CZ.mjs +16 -2
- package/i18n/languages/de-CH.js +12 -7
- package/i18n/languages/de-CH.mjs +16 -2
- package/i18n/languages/de-DE.js +12 -7
- package/i18n/languages/de-DE.mjs +16 -2
- package/i18n/languages/en-US.js +13 -8
- package/i18n/languages/en-US.mjs +17 -3
- package/i18n/languages/es-MX.js +13 -8
- package/i18n/languages/es-MX.mjs +19 -4
- package/i18n/languages/fr-FR.js +12 -7
- package/i18n/languages/fr-FR.mjs +16 -2
- package/i18n/languages/it-IT.js +12 -7
- package/i18n/languages/it-IT.mjs +16 -2
- package/i18n/languages/ja-JP.js +12 -7
- package/i18n/languages/ja-JP.mjs +16 -2
- package/i18n/languages/ko-KR.js +12 -7
- package/i18n/languages/ko-KR.mjs +16 -2
- package/i18n/languages/lv-LV.js +13 -8
- package/i18n/languages/lv-LV.mjs +19 -5
- package/i18n/languages/nb-NO.js +12 -7
- package/i18n/languages/nb-NO.mjs +16 -2
- package/i18n/languages/nl-NL.js +13 -8
- package/i18n/languages/nl-NL.mjs +19 -5
- package/i18n/languages/pl-PL.js +13 -8
- package/i18n/languages/pl-PL.mjs +18 -4
- package/i18n/languages/pt-BR.js +12 -7
- package/i18n/languages/pt-BR.mjs +16 -2
- package/i18n/languages/ru-RU.js +12 -7
- package/i18n/languages/ru-RU.mjs +16 -2
- package/i18n/languages/sr-SP.js +12 -7
- package/i18n/languages/sr-SP.mjs +16 -2
- package/i18n/languages/zh-CN.js +12 -7
- package/i18n/languages/zh-CN.mjs +16 -2
- package/i18n/languages/zh-TW.js +12 -7
- package/i18n/languages/zh-TW.mjs +16 -2
- package/i18n/phraseFormatters/substituteVariables.mjs +9 -8
- package/i18n/utils.mjs +10 -9
- package/index.d.ts +9 -0
- package/index.js +4 -2
- package/index.mjs +2 -1
- package/languages/all.js +111 -65
- package/languages/ar-AR.js +50 -4
- package/languages/ar-AR.mjs +16 -2
- package/languages/cs-CZ.js +52 -6
- package/languages/cs-CZ.mjs +16 -2
- package/languages/de-CH.js +52 -6
- package/languages/de-CH.mjs +16 -2
- package/languages/de-DE.js +53 -7
- package/languages/de-DE.mjs +16 -2
- package/languages/en-US.js +56 -10
- package/languages/en-US.mjs +17 -3
- package/languages/es-MX.js +56 -10
- package/languages/es-MX.mjs +19 -4
- package/languages/fr-FR.js +55 -9
- package/languages/fr-FR.mjs +16 -2
- package/languages/index.js +111 -65
- package/languages/it-IT.js +55 -9
- package/languages/it-IT.mjs +16 -2
- package/languages/ja-JP.js +83 -33
- package/languages/ja-JP.mjs +16 -2
- package/languages/ko-KR.js +84 -33
- package/languages/ko-KR.mjs +16 -2
- package/languages/lv-LV.js +85 -33
- package/languages/lv-LV.mjs +19 -5
- package/languages/nb-NO.js +86 -33
- package/languages/nb-NO.mjs +16 -2
- package/languages/nl-NL.js +87 -33
- package/languages/nl-NL.mjs +19 -5
- package/languages/pl-PL.js +88 -33
- package/languages/pl-PL.mjs +18 -4
- package/languages/pt-BR.js +68 -19
- package/languages/pt-BR.mjs +16 -2
- package/languages/ru-RU.js +68 -19
- package/languages/ru-RU.mjs +16 -2
- package/languages/sr-SP.js +55 -6
- package/languages/sr-SP.mjs +16 -2
- package/languages/zh-CN.js +55 -6
- package/languages/zh-CN.mjs +16 -2
- package/languages/zh-TW.js +55 -6
- package/languages/zh-TW.mjs +16 -2
- package/mixins/hooksRefRegisterer.js +6 -3
- package/mixins/hooksRefRegisterer.mjs +6 -3
- package/mixins/localHooks.js +6 -3
- package/mixins/localHooks.mjs +6 -3
- package/package.json +2 -2
- package/pluginHooks.d.ts +7 -2
- package/pluginHooks.js +109 -24
- package/pluginHooks.mjs +109 -24
- package/plugins/autoColumnSize/autoColumnSize.js +7 -2
- package/plugins/autoColumnSize/autoColumnSize.mjs +7 -2
- package/plugins/autoRowSize/autoRowSize.js +16 -7
- package/plugins/autoRowSize/autoRowSize.mjs +16 -7
- package/plugins/autofill/autofill.js +7 -2
- package/plugins/autofill/autofill.mjs +7 -2
- package/plugins/base/base.js +8 -2
- package/plugins/base/base.mjs +8 -2
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +6 -1
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +6 -1
- package/plugins/bindRowsWithHeaders/maps/looseBindsMap.js +6 -1
- package/plugins/bindRowsWithHeaders/maps/looseBindsMap.mjs +6 -1
- package/plugins/bindRowsWithHeaders/maps/strictBindsMap.js +6 -1
- package/plugins/bindRowsWithHeaders/maps/strictBindsMap.mjs +6 -1
- package/plugins/collapsibleColumns/collapsibleColumns.js +10 -5
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +9 -4
- package/plugins/columnSorting/columnSorting.js +8 -4
- package/plugins/columnSorting/columnSorting.mjs +8 -4
- package/plugins/columnSorting/columnStatesManager.js +12 -6
- package/plugins/columnSorting/columnStatesManager.mjs +9 -3
- package/plugins/columnSorting/rootComparator.mjs +8 -7
- package/plugins/columnSorting/sortFunction/checkbox.mjs +9 -8
- package/plugins/columnSorting/sortFunction/date.mjs +9 -8
- package/plugins/columnSorting/sortFunction/default.mjs +9 -8
- package/plugins/columnSorting/sortFunction/numeric.mjs +9 -8
- package/plugins/columnSummary/columnSummary.js +13 -8
- package/plugins/columnSummary/columnSummary.mjs +13 -8
- package/plugins/columnSummary/endpoints.js +17 -16
- package/plugins/columnSummary/endpoints.mjs +22 -21
- package/plugins/comments/commentEditor.js +16 -2
- package/plugins/comments/commentEditor.mjs +21 -7
- package/plugins/comments/comments.js +15 -4
- package/plugins/comments/comments.mjs +15 -4
- package/plugins/comments/displaySwitch.js +14 -1
- package/plugins/comments/displaySwitch.mjs +14 -1
- package/plugins/contextMenu/commandExecutor.js +22 -7
- package/plugins/contextMenu/commandExecutor.mjs +27 -12
- package/plugins/contextMenu/contextMenu.d.ts +4 -3
- package/plugins/contextMenu/contextMenu.js +7 -17
- package/plugins/contextMenu/contextMenu.mjs +7 -17
- package/plugins/contextMenu/cursor.js +16 -2
- package/plugins/contextMenu/cursor.mjs +21 -7
- package/plugins/contextMenu/itemsFactory.js +23 -8
- package/plugins/contextMenu/itemsFactory.mjs +28 -13
- package/plugins/contextMenu/menu.js +14 -3
- package/plugins/contextMenu/menu.mjs +13 -2
- package/plugins/contextMenu/predefinedItems/removeColumn.js +1 -1
- package/plugins/contextMenu/predefinedItems/removeColumn.mjs +1 -1
- package/plugins/contextMenu/predefinedItems/removeRow.js +1 -1
- package/plugins/contextMenu/predefinedItems/removeRow.mjs +1 -1
- package/plugins/contextMenu/predefinedItems.js +12 -7
- package/plugins/contextMenu/predefinedItems.mjs +14 -1
- package/plugins/contextMenu/utils.mjs +5 -4
- package/plugins/copyPaste/clipboardData.js +16 -2
- package/plugins/copyPaste/clipboardData.mjs +16 -2
- package/plugins/copyPaste/contextMenuItem/copy.js +4 -16
- package/plugins/copyPaste/contextMenuItem/copy.mjs +8 -7
- package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.js +35 -0
- package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.mjs +31 -0
- package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.js +35 -0
- package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.mjs +31 -0
- package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.js +35 -0
- package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.mjs +31 -0
- package/plugins/copyPaste/contextMenuItem/cut.mjs +5 -4
- package/plugins/copyPaste/copyPaste.d.ts +10 -2
- package/plugins/copyPaste/copyPaste.js +303 -202
- package/plugins/copyPaste/copyPaste.mjs +303 -202
- package/plugins/copyPaste/copyableRanges.js +269 -0
- package/plugins/copyPaste/copyableRanges.mjs +264 -0
- package/plugins/copyPaste/focusableElement.js +12 -2
- package/plugins/copyPaste/focusableElement.mjs +15 -5
- package/plugins/copyPaste/pasteEvent.js +16 -2
- package/plugins/copyPaste/pasteEvent.mjs +18 -4
- package/plugins/customBorders/contextMenuItem/bottom.mjs +5 -4
- package/plugins/customBorders/contextMenuItem/left.mjs +5 -4
- package/plugins/customBorders/contextMenuItem/noBorders.mjs +5 -4
- package/plugins/customBorders/contextMenuItem/right.mjs +5 -4
- package/plugins/customBorders/contextMenuItem/top.mjs +5 -4
- package/plugins/customBorders/customBorders.js +12 -7
- package/plugins/customBorders/customBorders.mjs +11 -6
- package/plugins/customBorders/utils.mjs +8 -7
- package/plugins/dragToScroll/dragToScroll.js +6 -1
- package/plugins/dragToScroll/dragToScroll.mjs +6 -1
- package/plugins/dropdownMenu/dropdownMenu.js +6 -1
- package/plugins/dropdownMenu/dropdownMenu.mjs +6 -1
- package/plugins/exportFile/dataProvider.js +13 -6
- package/plugins/exportFile/dataProvider.mjs +12 -5
- package/plugins/exportFile/exportFile.js +8 -3
- package/plugins/exportFile/exportFile.mjs +6 -1
- package/plugins/exportFile/typeFactory.js +14 -1
- package/plugins/exportFile/typeFactory.mjs +14 -1
- package/plugins/exportFile/types/_base.js +16 -2
- package/plugins/exportFile/types/_base.mjs +18 -4
- package/plugins/exportFile/types/csv.js +6 -1
- package/plugins/exportFile/types/csv.mjs +6 -1
- package/plugins/filters/component/_base.js +16 -2
- package/plugins/filters/component/_base.mjs +19 -5
- package/plugins/filters/component/actionBar.js +10 -4
- package/plugins/filters/component/actionBar.mjs +11 -5
- package/plugins/filters/component/condition.js +10 -4
- package/plugins/filters/component/condition.mjs +11 -5
- package/plugins/filters/component/operators.js +8 -3
- package/plugins/filters/component/operators.mjs +8 -3
- package/plugins/filters/component/value.js +9 -3
- package/plugins/filters/component/value.mjs +12 -6
- package/plugins/filters/condition/beginsWith.js +1 -1
- package/plugins/filters/condition/beginsWith.mjs +1 -1
- package/plugins/filters/condition/between.js +1 -1
- package/plugins/filters/condition/between.mjs +1 -1
- package/plugins/filters/condition/byValue.js +1 -1
- package/plugins/filters/condition/byValue.mjs +1 -1
- package/plugins/filters/condition/contains.js +1 -1
- package/plugins/filters/condition/contains.mjs +1 -1
- package/plugins/filters/condition/date/after.js +1 -1
- package/plugins/filters/condition/date/after.mjs +1 -1
- package/plugins/filters/condition/date/before.js +1 -1
- package/plugins/filters/condition/date/before.mjs +1 -1
- package/plugins/filters/condition/endsWith.js +1 -1
- package/plugins/filters/condition/endsWith.mjs +1 -1
- package/plugins/filters/condition/equal.js +1 -1
- package/plugins/filters/condition/equal.mjs +1 -1
- package/plugins/filters/condition/greaterThan.js +1 -1
- package/plugins/filters/condition/greaterThan.mjs +1 -1
- package/plugins/filters/condition/greaterThanOrEqual.js +1 -1
- package/plugins/filters/condition/greaterThanOrEqual.mjs +1 -1
- package/plugins/filters/condition/lessThan.js +1 -1
- package/plugins/filters/condition/lessThan.mjs +1 -1
- package/plugins/filters/condition/lessThanOrEqual.js +1 -1
- package/plugins/filters/condition/lessThanOrEqual.mjs +1 -1
- package/plugins/filters/conditionCollection.js +10 -4
- package/plugins/filters/conditionCollection.mjs +18 -12
- package/plugins/filters/conditionUpdateObserver.js +15 -2
- package/plugins/filters/conditionUpdateObserver.mjs +23 -10
- package/plugins/filters/constants.js +14 -1
- package/plugins/filters/constants.mjs +14 -1
- package/plugins/filters/dataFilter.js +16 -2
- package/plugins/filters/dataFilter.mjs +19 -5
- package/plugins/filters/filters.js +7 -2
- package/plugins/filters/filters.mjs +7 -2
- package/plugins/filters/ui/_base.js +12 -7
- package/plugins/filters/ui/_base.mjs +14 -1
- package/plugins/filters/ui/input.js +6 -1
- package/plugins/filters/ui/input.mjs +6 -1
- package/plugins/filters/ui/link.js +6 -1
- package/plugins/filters/ui/link.mjs +6 -1
- package/plugins/filters/ui/multipleSelect.js +14 -8
- package/plugins/filters/ui/multipleSelect.mjs +6 -1
- package/plugins/filters/ui/radioInput.js +6 -1
- package/plugins/filters/ui/radioInput.mjs +6 -1
- package/plugins/filters/ui/select.js +6 -1
- package/plugins/filters/ui/select.mjs +6 -1
- package/plugins/formulas/engine/register.mjs +6 -5
- package/plugins/formulas/engine/settings.js +12 -1
- package/plugins/formulas/engine/settings.mjs +12 -1
- package/plugins/formulas/formulas.js +24 -11
- package/plugins/formulas/formulas.mjs +24 -11
- package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +1 -1
- package/plugins/hiddenColumns/contextMenuItem/hideColumn.mjs +6 -5
- package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +5 -4
- package/plugins/hiddenColumns/hiddenColumns.js +5 -1
- package/plugins/hiddenColumns/hiddenColumns.mjs +5 -1
- package/plugins/hiddenRows/contextMenuItem/hideRow.js +1 -1
- package/plugins/hiddenRows/contextMenuItem/hideRow.mjs +6 -5
- package/plugins/hiddenRows/contextMenuItem/showRow.mjs +5 -4
- package/plugins/hiddenRows/hiddenRows.js +5 -1
- package/plugins/hiddenRows/hiddenRows.mjs +5 -1
- package/plugins/index.mjs +4 -3
- package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +1 -1
- package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.mjs +6 -5
- package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +1 -1
- package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.mjs +6 -5
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +6 -1
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +6 -1
- package/plugins/manualColumnMove/manualColumnMove.js +6 -1
- package/plugins/manualColumnMove/manualColumnMove.mjs +6 -1
- package/plugins/manualColumnMove/ui/_base.js +14 -1
- package/plugins/manualColumnMove/ui/_base.mjs +14 -1
- package/plugins/manualColumnMove/ui/backlight.js +6 -1
- package/plugins/manualColumnMove/ui/backlight.mjs +6 -1
- package/plugins/manualColumnMove/ui/guideline.js +6 -1
- package/plugins/manualColumnMove/ui/guideline.mjs +6 -1
- package/plugins/manualColumnResize/manualColumnResize.js +6 -1
- package/plugins/manualColumnResize/manualColumnResize.mjs +6 -1
- package/plugins/manualRowMove/manualRowMove.js +6 -1
- package/plugins/manualRowMove/manualRowMove.mjs +6 -1
- package/plugins/manualRowMove/ui/_base.js +14 -1
- package/plugins/manualRowMove/ui/_base.mjs +14 -1
- package/plugins/manualRowMove/ui/backlight.js +6 -1
- package/plugins/manualRowMove/ui/backlight.mjs +6 -1
- package/plugins/manualRowMove/ui/guideline.js +6 -1
- package/plugins/manualRowMove/ui/guideline.mjs +6 -1
- package/plugins/manualRowResize/manualRowResize.js +6 -1
- package/plugins/manualRowResize/manualRowResize.mjs +6 -1
- package/plugins/mergeCells/calculations/autofill.js +13 -6
- package/plugins/mergeCells/calculations/autofill.mjs +15 -8
- package/plugins/mergeCells/calculations/selection.js +16 -2
- package/plugins/mergeCells/calculations/selection.mjs +16 -2
- package/plugins/mergeCells/cellCoords.js +16 -2
- package/plugins/mergeCells/cellCoords.mjs +21 -7
- package/plugins/mergeCells/cellsCollection.js +12 -5
- package/plugins/mergeCells/cellsCollection.mjs +14 -7
- package/plugins/mergeCells/contextMenuItem/toggleMerge.mjs +5 -4
- package/plugins/mergeCells/mergeCells.js +7 -2
- package/plugins/mergeCells/mergeCells.mjs +7 -2
- package/plugins/multiColumnSorting/multiColumnSorting.js +6 -1
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +6 -1
- package/plugins/multiColumnSorting/rootComparator.mjs +8 -7
- package/plugins/multiColumnSorting/utils.mjs +4 -3
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +6 -1
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +6 -1
- package/plugins/nestedHeaders/nestedHeaders.js +124 -16
- package/plugins/nestedHeaders/nestedHeaders.mjs +131 -23
- package/plugins/nestedHeaders/stateManager/headersTree.js +10 -3
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +10 -3
- package/plugins/nestedHeaders/stateManager/index.js +34 -14
- package/plugins/nestedHeaders/stateManager/index.mjs +67 -47
- package/plugins/nestedHeaders/stateManager/matrixGenerator.mjs +33 -31
- package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.mjs +18 -17
- package/plugins/nestedHeaders/stateManager/nodeModifiers/expand.mjs +17 -16
- package/plugins/nestedHeaders/stateManager/nodeModifiers/hideColumn.mjs +7 -6
- package/plugins/nestedHeaders/stateManager/nodeModifiers/index.mjs +2 -1
- package/plugins/nestedHeaders/stateManager/nodeModifiers/showColumn.mjs +7 -6
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.mjs +41 -39
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +11 -3
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +23 -14
- package/plugins/nestedHeaders/utils/ghostTable.js +17 -3
- package/plugins/nestedHeaders/utils/ghostTable.mjs +24 -10
- package/plugins/nestedRows/data/dataManager.js +10 -4
- package/plugins/nestedRows/data/dataManager.mjs +12 -6
- package/plugins/nestedRows/nestedRows.js +6 -1
- package/plugins/nestedRows/nestedRows.mjs +6 -1
- package/plugins/nestedRows/ui/_base.js +16 -2
- package/plugins/nestedRows/ui/_base.mjs +16 -2
- package/plugins/nestedRows/ui/collapsing.js +8 -2
- package/plugins/nestedRows/ui/collapsing.mjs +14 -8
- package/plugins/nestedRows/ui/contextMenu.js +7 -2
- package/plugins/nestedRows/ui/contextMenu.mjs +6 -1
- package/plugins/nestedRows/ui/headers.js +8 -2
- package/plugins/nestedRows/ui/headers.mjs +14 -8
- package/plugins/nestedRows/utils/rowMoveController.js +11 -4
- package/plugins/nestedRows/utils/rowMoveController.mjs +25 -18
- package/plugins/persistentState/persistentState.js +6 -1
- package/plugins/persistentState/persistentState.mjs +6 -1
- package/plugins/persistentState/storage.js +16 -2
- package/plugins/persistentState/storage.mjs +19 -5
- package/plugins/registry.js +1 -1
- package/plugins/registry.mjs +3 -2
- package/plugins/search/search.js +6 -1
- package/plugins/search/search.mjs +6 -1
- package/plugins/touchScroll/touchScroll.js +6 -1
- package/plugins/touchScroll/touchScroll.mjs +6 -1
- package/plugins/trimRows/trimRows.js +5 -1
- package/plugins/trimRows/trimRows.mjs +5 -1
- package/plugins/undoRedo/undoRedo.js +50 -32
- package/plugins/undoRedo/undoRedo.mjs +50 -32
- package/registry.mjs +2 -1
- package/renderers/baseRenderer/baseRenderer.mjs +2 -1
- package/renderers/index.mjs +4 -3
- package/selection/highlight/highlight.js +10 -3
- package/selection/highlight/highlight.mjs +24 -17
- package/selection/highlight/types/activeHeader.js +13 -2
- package/selection/highlight/types/activeHeader.mjs +19 -7
- package/selection/highlight/types/area.js +13 -2
- package/selection/highlight/types/area.mjs +22 -10
- package/selection/highlight/types/cell.js +13 -2
- package/selection/highlight/types/cell.mjs +22 -10
- package/selection/highlight/types/customSelection.js +13 -2
- package/selection/highlight/types/customSelection.mjs +23 -11
- package/selection/highlight/types/fill.js +14 -3
- package/selection/highlight/types/fill.mjs +22 -10
- package/selection/highlight/types/header.js +13 -2
- package/selection/highlight/types/header.mjs +24 -12
- package/selection/highlight/types/index.js +14 -3
- package/selection/highlight/types/index.mjs +14 -3
- package/selection/highlight/visualSelection.js +11 -6
- package/selection/highlight/visualSelection.mjs +11 -6
- package/selection/mouseEventHandler.mjs +14 -13
- package/selection/range.js +9 -2
- package/selection/range.mjs +9 -2
- package/selection/selection.js +13 -6
- package/selection/selection.mjs +21 -14
- package/selection/transformation.js +16 -2
- package/selection/transformation.mjs +24 -10
- package/selection/utils.js +1 -1
- package/selection/utils.mjs +1 -1
- package/shortcuts/context.js +1 -1
- package/shortcuts/context.mjs +1 -1
- package/shortcuts/keyObserver.js +8 -4
- package/shortcuts/keyObserver.mjs +8 -4
- package/shortcuts/manager.js +1 -1
- package/shortcuts/manager.mjs +1 -1
- package/tableView.js +147 -68
- package/tableView.mjs +147 -68
- package/translations/changesObservable/observable.js +12 -2
- package/translations/changesObservable/observable.mjs +19 -9
- package/translations/changesObservable/observer.js +12 -2
- package/translations/changesObservable/observer.mjs +17 -7
- package/translations/indexMapper.js +12 -6
- package/translations/indexMapper.mjs +17 -11
- package/translations/mapCollections/aggregatedCollection.js +8 -2
- package/translations/mapCollections/aggregatedCollection.mjs +11 -5
- package/translations/mapCollections/mapCollection.js +10 -1
- package/translations/mapCollections/mapCollection.mjs +10 -1
- package/translations/maps/hidingMap.js +8 -2
- package/translations/maps/hidingMap.mjs +13 -7
- package/translations/maps/indexMap.js +16 -2
- package/translations/maps/indexMap.mjs +20 -6
- package/translations/maps/indexesSequence.js +8 -2
- package/translations/maps/indexesSequence.mjs +14 -8
- package/translations/maps/linkedPhysicalIndexToValueMap.js +12 -6
- package/translations/maps/linkedPhysicalIndexToValueMap.mjs +18 -12
- package/translations/maps/physicalIndexToValueMap.js +8 -2
- package/translations/maps/physicalIndexToValueMap.mjs +14 -8
- package/translations/maps/trimmingMap.js +8 -2
- package/translations/maps/trimmingMap.mjs +13 -7
- package/translations/maps/utils/actionsOnIndexes.mjs +9 -8
- package/translations/maps/utils/indexesSequence.mjs +10 -9
- package/translations/maps/utils/physicallyIndexed.mjs +11 -10
- package/utils/dataStructures/linkedList.js +21 -7
- package/utils/dataStructures/linkedList.mjs +21 -7
- package/utils/dataStructures/priorityMap.js +1 -1
- package/utils/dataStructures/priorityMap.mjs +1 -1
- package/utils/dataStructures/queue.js +16 -2
- package/utils/dataStructures/queue.mjs +16 -2
- package/utils/dataStructures/stack.js +16 -2
- package/utils/dataStructures/stack.mjs +16 -2
- package/utils/dataStructures/tree.js +8 -2
- package/utils/dataStructures/tree.mjs +8 -2
- package/utils/dataStructures/uniqueMap.js +1 -1
- package/utils/dataStructures/uniqueMap.mjs +1 -1
- package/utils/ghostTable.js +12 -5
- package/utils/ghostTable.mjs +12 -5
- package/utils/interval.js +23 -8
- package/utils/interval.mjs +18 -4
- package/utils/samplesGenerator.js +13 -3
- package/utils/samplesGenerator.mjs +15 -5
- package/validators/index.mjs +4 -3
@@ -1,5 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
4
|
+
require("core-js/modules/es.date.to-primitive.js");
|
5
|
+
require("core-js/modules/es.symbol.js");
|
6
|
+
require("core-js/modules/es.symbol.description.js");
|
7
|
+
require("core-js/modules/es.number.constructor.js");
|
8
|
+
require("core-js/modules/es.symbol.iterator.js");
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
3
10
|
exports.__esModule = true;
|
4
11
|
exports.default = void 0;
|
5
12
|
require("core-js/modules/es.array.includes.js");
|
@@ -13,28 +20,45 @@ require("core-js/modules/web.dom-collections.iterator.js");
|
|
13
20
|
var _coords = _interopRequireDefault(require("./../cell/coords"));
|
14
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
16
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
23
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
17
24
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
18
25
|
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
19
26
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
20
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
27
|
+
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; }
|
28
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
29
|
+
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); }
|
21
30
|
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
22
31
|
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
23
32
|
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
24
33
|
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
25
34
|
function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
|
26
35
|
var _isRtl = /*#__PURE__*/new WeakMap();
|
36
|
+
/* eslint-disable jsdoc/require-description-complete-sentence */
|
27
37
|
/**
|
28
|
-
*
|
29
|
-
* can contains multiple contiguous cells or single cell.
|
38
|
+
* @description
|
30
39
|
*
|
31
|
-
*
|
32
|
-
|
40
|
+
* The `CellRange` class holds a set of cell coordinates ([`CellCoords`](@/api/cellCoords.md) instances)
|
41
|
+
* that form a [selection range](@/guides/cell-features/selection.md#select-ranges).
|
42
|
+
*
|
43
|
+
* A single `CellRange` instance represents a single unit of selection
|
44
|
+
* that contains either a single cell or multiple adjacent cells.
|
45
|
+
*
|
46
|
+
* To import the `CellRange` class:
|
47
|
+
*
|
48
|
+
* ```js
|
49
|
+
* import Handsontable, { CellRange } from '/handsontable';
|
50
|
+
*
|
51
|
+
* // or, using modules
|
52
|
+
* import Handsontable, { CellRange } from '/handsontable/base';
|
53
|
+
* ```
|
54
|
+
*/
|
55
|
+
var CellRange = /*#__PURE__*/function () {
|
33
56
|
/**
|
34
57
|
* Used to draw bold border around a cell where selection was started and to edit the cell
|
35
58
|
* when you press Enter. The highlight cannot point to headers (negative values) so its
|
36
59
|
* coordinates object is normalized while assigning.
|
37
60
|
*
|
61
|
+
* @private
|
38
62
|
* @type {CellCoords}
|
39
63
|
*/
|
40
64
|
|
@@ -42,12 +66,14 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
42
66
|
* Usually the same as highlight, but in Excel there is distinction - one can change
|
43
67
|
* highlight within a selection.
|
44
68
|
*
|
69
|
+
* @private
|
45
70
|
* @type {CellCoords}
|
46
71
|
*/
|
47
72
|
|
48
73
|
/**
|
49
74
|
* End selection.
|
50
75
|
*
|
76
|
+
* @private
|
51
77
|
* @type {CellCoords}
|
52
78
|
*/
|
53
79
|
|
@@ -74,7 +100,7 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
74
100
|
}
|
75
101
|
|
76
102
|
/**
|
77
|
-
*
|
103
|
+
* Highlights cell selection at the `coords` coordinates.
|
78
104
|
*
|
79
105
|
* @param {CellCoords} coords Coordinates to use.
|
80
106
|
* @returns {CellRange}
|
@@ -87,7 +113,7 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
87
113
|
}
|
88
114
|
|
89
115
|
/**
|
90
|
-
*
|
116
|
+
* Sets the `coords` coordinates as the start of your range.
|
91
117
|
*
|
92
118
|
* @param {CellCoords} coords Coordinates to use.
|
93
119
|
* @returns {CellRange}
|
@@ -100,7 +126,7 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
100
126
|
}
|
101
127
|
|
102
128
|
/**
|
103
|
-
*
|
129
|
+
* Sets the `coords` coordinates as the end of your range.
|
104
130
|
*
|
105
131
|
* @param {CellCoords} coords Coordinates to use.
|
106
132
|
* @returns {CellRange}
|
@@ -113,9 +139,12 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
113
139
|
}
|
114
140
|
|
115
141
|
/**
|
116
|
-
* Checks if
|
142
|
+
* Checks if the coordinates in your `CellRange` instance are valid
|
143
|
+
* in the context of a given Walkontable instance.
|
117
144
|
*
|
118
|
-
*
|
145
|
+
* See the [`isValid()`](@/api/cellCoords.md#isvalid) method of the [`CellCoords`](@/api/cellCoords.md) class.
|
146
|
+
*
|
147
|
+
* @param {Walkontable} wot A Walkontable instance.
|
119
148
|
* @returns {boolean}
|
120
149
|
*/
|
121
150
|
}, {
|
@@ -125,7 +154,7 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
125
154
|
}
|
126
155
|
|
127
156
|
/**
|
128
|
-
* Checks if
|
157
|
+
* Checks if your range is just a single cell.
|
129
158
|
*
|
130
159
|
* @returns {boolean}
|
131
160
|
*/
|
@@ -136,7 +165,7 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
136
165
|
}
|
137
166
|
|
138
167
|
/**
|
139
|
-
* Returns
|
168
|
+
* Returns the height of your range (as a number of rows, including row headers).
|
140
169
|
*
|
141
170
|
* @returns {number}
|
142
171
|
*/
|
@@ -147,7 +176,7 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
147
176
|
}
|
148
177
|
|
149
178
|
/**
|
150
|
-
* Returns
|
179
|
+
* Returns the width of your range (as a number of columns, including column headers).
|
151
180
|
*
|
152
181
|
* @returns {number}
|
153
182
|
*/
|
@@ -158,33 +187,41 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
158
187
|
}
|
159
188
|
|
160
189
|
/**
|
161
|
-
* Returns
|
190
|
+
* Returns the height of your range (as a number of rows, excluding row headers).
|
162
191
|
*
|
163
192
|
* @returns {number}
|
164
193
|
*/
|
165
194
|
}, {
|
166
195
|
key: "getHeight",
|
167
196
|
value: function getHeight() {
|
197
|
+
// if the selection contains only row headers, return 0
|
198
|
+
if (this.from.row < 0 && this.to.row < 0) {
|
199
|
+
return 0;
|
200
|
+
}
|
168
201
|
var fromRow = Math.max(this.from.row, 0);
|
169
202
|
var toRow = Math.max(this.to.row, 0);
|
170
203
|
return Math.max(fromRow, toRow) - Math.min(fromRow, toRow) + 1;
|
171
204
|
}
|
172
205
|
|
173
206
|
/**
|
174
|
-
* Returns
|
207
|
+
* Returns the width of your range (as a number of columns, excluding column headers).
|
175
208
|
*
|
176
209
|
* @returns {number}
|
177
210
|
*/
|
178
211
|
}, {
|
179
212
|
key: "getWidth",
|
180
213
|
value: function getWidth() {
|
214
|
+
// if the selection contains only column headers, return 0
|
215
|
+
if (this.from.col < 0 && this.to.col < 0) {
|
216
|
+
return 0;
|
217
|
+
}
|
181
218
|
var fromCol = Math.max(this.from.col, 0);
|
182
219
|
var toCol = Math.max(this.to.col, 0);
|
183
220
|
return Math.max(fromCol, toCol) - Math.min(fromCol, toCol) + 1;
|
184
221
|
}
|
185
222
|
|
186
223
|
/**
|
187
|
-
* Returns the number of cells within
|
224
|
+
* Returns the number of cells within your range (excluding column and row headers).
|
188
225
|
*
|
189
226
|
* @returns {number}
|
190
227
|
*/
|
@@ -195,9 +232,10 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
195
232
|
}
|
196
233
|
|
197
234
|
/**
|
198
|
-
* Checks if
|
235
|
+
* Checks if another set of coordinates (`cellCoords`)
|
236
|
+
* is within the `from` and `to` coordinates of your range.
|
199
237
|
*
|
200
|
-
* @param {CellCoords} cellCoords
|
238
|
+
* @param {CellCoords} cellCoords Coordinates to check.
|
201
239
|
* @returns {boolean}
|
202
240
|
*/
|
203
241
|
}, {
|
@@ -211,9 +249,9 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
211
249
|
}
|
212
250
|
|
213
251
|
/**
|
214
|
-
* Checks if
|
252
|
+
* Checks if another range (`cellRange`) is within your range.
|
215
253
|
*
|
216
|
-
* @param {CellRange} cellRange
|
254
|
+
* @param {CellRange} cellRange A range to check.
|
217
255
|
* @returns {boolean}
|
218
256
|
*/
|
219
257
|
}, {
|
@@ -223,9 +261,9 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
223
261
|
}
|
224
262
|
|
225
263
|
/**
|
226
|
-
* Checks if
|
264
|
+
* Checks if another range (`cellRange`) is equal to your range.
|
227
265
|
*
|
228
|
-
* @param {CellRange} cellRange
|
266
|
+
* @param {CellRange} cellRange A range to check.
|
229
267
|
* @returns {boolean}
|
230
268
|
*/
|
231
269
|
}, {
|
@@ -235,10 +273,11 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
235
273
|
}
|
236
274
|
|
237
275
|
/**
|
238
|
-
* Checks if
|
239
|
-
*
|
276
|
+
* Checks if another range (`cellRange`) overlaps your range.
|
277
|
+
*
|
278
|
+
* Range A overlaps range B if the intersection of A and B (or B and A) is not empty.
|
240
279
|
*
|
241
|
-
* @param {CellRange} cellRange
|
280
|
+
* @param {CellRange} cellRange A range to check.
|
242
281
|
* @returns {boolean}
|
243
282
|
*/
|
244
283
|
}, {
|
@@ -248,9 +287,9 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
248
287
|
}
|
249
288
|
|
250
289
|
/**
|
251
|
-
* Checks if
|
290
|
+
* Checks if another range (`cellRange`) is south-east of your range.
|
252
291
|
*
|
253
|
-
* @param {CellRange} cellRange
|
292
|
+
* @param {CellRange} cellRange A range to check.
|
254
293
|
* @returns {boolean}
|
255
294
|
*/
|
256
295
|
}, {
|
@@ -260,9 +299,9 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
260
299
|
}
|
261
300
|
|
262
301
|
/**
|
263
|
-
* Checks if
|
302
|
+
* Checks if another range (`cellRange`) is north-west of your range.
|
264
303
|
*
|
265
|
-
* @param {CellRange} cellRange
|
304
|
+
* @param {CellRange} cellRange A range to check.
|
266
305
|
* @returns {boolean}
|
267
306
|
*/
|
268
307
|
}, {
|
@@ -272,10 +311,12 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
272
311
|
}
|
273
312
|
|
274
313
|
/**
|
275
|
-
*
|
276
|
-
* column is 5 and the provided range's first column is 3).
|
314
|
+
* Checks if another range (`cellRange`) overlaps your range horizontally.
|
277
315
|
*
|
278
|
-
*
|
316
|
+
* For example: returns `true` if the last column of your range is `5`
|
317
|
+
* and the first column of the `cellRange` range is `3`.
|
318
|
+
*
|
319
|
+
* @param {CellRange} cellRange A range to check.
|
279
320
|
* @returns {boolean}
|
280
321
|
*/
|
281
322
|
}, {
|
@@ -285,10 +326,12 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
285
326
|
}
|
286
327
|
|
287
328
|
/**
|
288
|
-
*
|
289
|
-
*
|
329
|
+
* Checks if another range (`cellRange`) overlaps your range vertically.
|
330
|
+
*
|
331
|
+
* For example: returns `true` if the last row of your range is `5`
|
332
|
+
* and the first row of the `cellRange` range is `3`.
|
290
333
|
*
|
291
|
-
* @param {CellRange} cellRange
|
334
|
+
* @param {CellRange} cellRange A range to check.
|
292
335
|
* @returns {boolean}
|
293
336
|
*/
|
294
337
|
}, {
|
@@ -298,9 +341,11 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
298
341
|
}
|
299
342
|
|
300
343
|
/**
|
301
|
-
* Adds a cell to
|
344
|
+
* Adds a cell to your range, at `cellCoords` coordinates.
|
302
345
|
*
|
303
|
-
*
|
346
|
+
* The `cellCoords` coordinates must exceed a corner of your range.
|
347
|
+
*
|
348
|
+
* @param {CellCoords} cellCoords A new cell's coordinates.
|
304
349
|
* @returns {boolean}
|
305
350
|
*/
|
306
351
|
}, {
|
@@ -317,9 +362,9 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
317
362
|
}
|
318
363
|
|
319
364
|
/**
|
320
|
-
* Expand
|
365
|
+
* Expand your range with another range (`expandingRange`).
|
321
366
|
*
|
322
|
-
* @param {CellRange} expandingRange
|
367
|
+
* @param {CellRange} expandingRange A new range.
|
323
368
|
* @returns {boolean}
|
324
369
|
*/
|
325
370
|
}, {
|
@@ -409,7 +454,7 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
409
454
|
}
|
410
455
|
|
411
456
|
/**
|
412
|
-
* Gets the vertical direction of the
|
457
|
+
* Gets the vertical direction of the selection.
|
413
458
|
*
|
414
459
|
* @returns {string} Returns one of the values: `N-S` (north->south), `S-N` (south->north).
|
415
460
|
*/
|
@@ -420,7 +465,7 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
420
465
|
}
|
421
466
|
|
422
467
|
/**
|
423
|
-
* Gets the horizontal direction of the
|
468
|
+
* Gets the horizontal direction of the selection.
|
424
469
|
*
|
425
470
|
* @returns {string} Returns one of the values: `W-E` (west->east), `E-W` (east->west).
|
426
471
|
*/
|
@@ -431,7 +476,7 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
431
476
|
}
|
432
477
|
|
433
478
|
/**
|
434
|
-
*
|
479
|
+
* Flips the direction of your range vertically (e.g., `NW-SE` changes to `SW-NE`).
|
435
480
|
*/
|
436
481
|
}, {
|
437
482
|
key: "flipDirectionVertically",
|
@@ -456,7 +501,7 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
456
501
|
}
|
457
502
|
|
458
503
|
/**
|
459
|
-
*
|
504
|
+
* Flips the direction of your range horizontally (e.g., `NW-SE` changes to `NE-SW`).
|
460
505
|
*/
|
461
506
|
}, {
|
462
507
|
key: "flipDirectionHorizontally",
|
@@ -481,8 +526,10 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
481
526
|
}
|
482
527
|
|
483
528
|
/**
|
484
|
-
* Gets the top
|
485
|
-
*
|
529
|
+
* Gets the top-left (in LTR) or top-right (in RTL) corner coordinates of your range.
|
530
|
+
*
|
531
|
+
* If the corner contains header coordinates (negative values),
|
532
|
+
* the corner coordinates are normalized to `0`.
|
486
533
|
*
|
487
534
|
* @returns {CellCoords}
|
488
535
|
*/
|
@@ -493,8 +540,11 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
493
540
|
}
|
494
541
|
|
495
542
|
/**
|
496
|
-
* Gets the top
|
497
|
-
*
|
543
|
+
* Gets the top-left corner coordinates of your range,
|
544
|
+
* both in the LTR and RTL layout direction.
|
545
|
+
*
|
546
|
+
* If the corner contains header coordinates (negative values),
|
547
|
+
* the corner coordinates are normalized to `0`.
|
498
548
|
*
|
499
549
|
* @returns {CellCoords}
|
500
550
|
*/
|
@@ -505,8 +555,10 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
505
555
|
}
|
506
556
|
|
507
557
|
/**
|
508
|
-
* Gets the bottom right (in LTR) or bottom left (in RTL) corner coordinates of
|
509
|
-
*
|
558
|
+
* Gets the bottom right (in LTR) or bottom left (in RTL) corner coordinates of your range.
|
559
|
+
*
|
560
|
+
* If the corner contains header coordinates (negative values),
|
561
|
+
* the corner coordinates are normalized to `0`.
|
510
562
|
*
|
511
563
|
* @returns {CellCoords}
|
512
564
|
*/
|
@@ -517,8 +569,11 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
517
569
|
}
|
518
570
|
|
519
571
|
/**
|
520
|
-
* Gets the bottom right corner coordinates of
|
521
|
-
*
|
572
|
+
* Gets the bottom right corner coordinates of your range,
|
573
|
+
* both in the LTR and RTL layout direction.
|
574
|
+
*
|
575
|
+
* If the corner contains header coordinates (negative values),
|
576
|
+
* the corner coordinates are normalized to `0`.
|
522
577
|
*
|
523
578
|
* @returns {CellCoords}
|
524
579
|
*/
|
@@ -529,8 +584,10 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
529
584
|
}
|
530
585
|
|
531
586
|
/**
|
532
|
-
* Gets the top right (in LTR) or top left (in RTL) corner coordinates of
|
533
|
-
*
|
587
|
+
* Gets the top right (in LTR) or top left (in RTL) corner coordinates of your range.
|
588
|
+
*
|
589
|
+
* If the corner contains header coordinates (negative values),
|
590
|
+
* the corner coordinates are normalized to `0`.
|
534
591
|
*
|
535
592
|
* @returns {CellCoords}
|
536
593
|
*/
|
@@ -541,8 +598,11 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
541
598
|
}
|
542
599
|
|
543
600
|
/**
|
544
|
-
* Gets the top right corner coordinates of
|
545
|
-
*
|
601
|
+
* Gets the top right corner coordinates of your range,
|
602
|
+
* both in the LTR and RTL layout direction.
|
603
|
+
*
|
604
|
+
* If the corner contains header coordinates (negative values),
|
605
|
+
* the corner coordinates are normalized to `0`.
|
546
606
|
*
|
547
607
|
* @returns {CellCoords}
|
548
608
|
*/
|
@@ -553,8 +613,10 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
553
613
|
}
|
554
614
|
|
555
615
|
/**
|
556
|
-
* Gets the bottom left (in LTR) or bottom right (in RTL) corner coordinates of
|
557
|
-
*
|
616
|
+
* Gets the bottom left (in LTR) or bottom right (in RTL) corner coordinates of your range.
|
617
|
+
*
|
618
|
+
* If the corner contains header coordinates (negative values),
|
619
|
+
* the corner coordinates are normalized to `0`.
|
558
620
|
*
|
559
621
|
* @returns {CellCoords}
|
560
622
|
*/
|
@@ -565,8 +627,11 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
565
627
|
}
|
566
628
|
|
567
629
|
/**
|
568
|
-
* Gets the bottom left corner coordinates of
|
569
|
-
*
|
630
|
+
* Gets the bottom left corner coordinates of your range,
|
631
|
+
* both in the LTR and RTL layout direction.
|
632
|
+
*
|
633
|
+
* If the corner contains header coordinates (negative values),
|
634
|
+
* the corner coordinates are normalized to `0`.
|
570
635
|
*
|
571
636
|
* @returns {CellCoords}
|
572
637
|
*/
|
@@ -577,8 +642,10 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
577
642
|
}
|
578
643
|
|
579
644
|
/**
|
580
|
-
* Gets the top left (in LTR) or top right (in RTL) corner coordinates of
|
581
|
-
*
|
645
|
+
* Gets the top left (in LTR) or top right (in RTL) corner coordinates of your range.
|
646
|
+
*
|
647
|
+
* If the corner contains header coordinates (negative values),
|
648
|
+
* the top and start coordinates are pointed to that header.
|
582
649
|
*
|
583
650
|
* @returns {CellCoords}
|
584
651
|
*/
|
@@ -589,9 +656,11 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
589
656
|
}
|
590
657
|
|
591
658
|
/**
|
592
|
-
* Gets the top left corner coordinates of
|
593
|
-
*
|
594
|
-
*
|
659
|
+
* Gets the top left corner coordinates of your range,
|
660
|
+
* both in the LTR and RTL layout direction.
|
661
|
+
*
|
662
|
+
* If the corner contains header coordinates (negative values),
|
663
|
+
* the top and left coordinates are pointed to that header.
|
595
664
|
*
|
596
665
|
* @returns {CellCoords}
|
597
666
|
*/
|
@@ -602,8 +671,10 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
602
671
|
}
|
603
672
|
|
604
673
|
/**
|
605
|
-
* Gets the bottom right (in LTR) or bottom left (in RTL) corner coordinates of
|
606
|
-
*
|
674
|
+
* Gets the bottom right (in LTR) or bottom left (in RTL) corner coordinates of your range.
|
675
|
+
*
|
676
|
+
* If the corner contains header coordinates (negative values),
|
677
|
+
* the top and start coordinates are pointed to that header.
|
607
678
|
*
|
608
679
|
* @returns {CellCoords}
|
609
680
|
*/
|
@@ -614,9 +685,11 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
614
685
|
}
|
615
686
|
|
616
687
|
/**
|
617
|
-
* Gets the bottom right corner coordinates of
|
618
|
-
*
|
619
|
-
*
|
688
|
+
* Gets the bottom right corner coordinates of your range,
|
689
|
+
* both in the LTR and RTL layout direction.
|
690
|
+
*
|
691
|
+
* If the corner contains header coordinates (negative values),
|
692
|
+
* the top and left coordinates are pointed to that header.
|
620
693
|
*
|
621
694
|
* @returns {CellCoords}
|
622
695
|
*/
|
@@ -627,8 +700,10 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
627
700
|
}
|
628
701
|
|
629
702
|
/**
|
630
|
-
* Gets the top right (in LTR) or top left (in RTL) corner coordinates of
|
631
|
-
*
|
703
|
+
* Gets the top right (in LTR) or top left (in RTL) corner coordinates of your range.
|
704
|
+
*
|
705
|
+
* If the corner contains header coordinates (negative values),
|
706
|
+
* the top and start coordinates are pointed to that header.
|
632
707
|
*
|
633
708
|
* @returns {CellCoords}
|
634
709
|
*/
|
@@ -639,9 +714,11 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
639
714
|
}
|
640
715
|
|
641
716
|
/**
|
642
|
-
* Gets the top right corner coordinates of
|
643
|
-
*
|
644
|
-
*
|
717
|
+
* Gets the top right corner coordinates of your range,
|
718
|
+
* both in the LTR and RTL layout direction.
|
719
|
+
*
|
720
|
+
* If the corner contains header coordinates (negative values),
|
721
|
+
* the top and left coordinates are pointed to that header.
|
645
722
|
*
|
646
723
|
* @returns {CellCoords}
|
647
724
|
*/
|
@@ -652,8 +729,10 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
652
729
|
}
|
653
730
|
|
654
731
|
/**
|
655
|
-
* Gets the bottom left (in LTR) or bottom right (in RTL) corner coordinates of
|
656
|
-
*
|
732
|
+
* Gets the bottom left (in LTR) or bottom right (in RTL) corner coordinates of your range.
|
733
|
+
*
|
734
|
+
* If the corner contains header coordinates (negative values),
|
735
|
+
* the top and start coordinates are pointed to that header.
|
657
736
|
*
|
658
737
|
* @returns {CellCoords}
|
659
738
|
*/
|
@@ -664,9 +743,11 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
664
743
|
}
|
665
744
|
|
666
745
|
/**
|
667
|
-
* Gets the bottom left corner coordinates of
|
668
|
-
*
|
669
|
-
*
|
746
|
+
* Gets the bottom left corner coordinates of your range,
|
747
|
+
* both in the LTR and RTL layout direction.
|
748
|
+
*
|
749
|
+
* If the corner contains header coordinates (negative values),
|
750
|
+
* the top and left coordinates are pointed to that header.
|
670
751
|
*
|
671
752
|
* @returns {CellCoords}
|
672
753
|
*/
|
@@ -677,10 +758,10 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
677
758
|
}
|
678
759
|
|
679
760
|
/**
|
680
|
-
* Checks if coordinates
|
761
|
+
* Checks if a set of coordinates (`coords`) matches one of the 4 corners of your range.
|
681
762
|
*
|
682
|
-
* @param {CellCoords} coords
|
683
|
-
* @param {CellRange} [expandedRange]
|
763
|
+
* @param {CellCoords} coords Coordinates to check.
|
764
|
+
* @param {CellRange} [expandedRange] A range to compare with.
|
684
765
|
* @returns {boolean}
|
685
766
|
*/
|
686
767
|
}, {
|
@@ -693,11 +774,13 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
693
774
|
}
|
694
775
|
|
695
776
|
/**
|
696
|
-
* Gets coordinates of
|
697
|
-
*
|
777
|
+
* Gets the coordinates of a range corner opposite to the provided `coords`.
|
778
|
+
*
|
779
|
+
* For example: if the `coords` coordinates match the bottom-right corner of your range,
|
780
|
+
* the coordinates of the top-left corner of your range are returned.
|
698
781
|
*
|
699
|
-
* @param {CellCoords} coords
|
700
|
-
* @param {CellRange} [expandedRange]
|
782
|
+
* @param {CellCoords} coords Coordinates to check.
|
783
|
+
* @param {CellRange} [expandedRange] A range to compare with.
|
701
784
|
* @returns {CellCoords}
|
702
785
|
*/
|
703
786
|
}, {
|
@@ -736,8 +819,11 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
736
819
|
}
|
737
820
|
|
738
821
|
/**
|
739
|
-
*
|
740
|
-
*
|
822
|
+
* Indicates which borders (top, right, bottom, left) are shared between
|
823
|
+
* your `CellRange`instance and another `range` that's within your range.
|
824
|
+
*
|
825
|
+
* @param {CellRange} range A range to compare with.
|
826
|
+
* @returns {Array<'top' | 'right' | 'bottom' | 'left'>}
|
741
827
|
*/
|
742
828
|
}, {
|
743
829
|
key: "getBordersSharedWith",
|
@@ -774,9 +860,9 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
774
860
|
}
|
775
861
|
|
776
862
|
/**
|
777
|
-
*
|
863
|
+
* Gets the coordinates of the inner cells of your range.
|
778
864
|
*
|
779
|
-
* @returns {
|
865
|
+
* @returns {CellCoords[]}
|
780
866
|
*/
|
781
867
|
}, {
|
782
868
|
key: "getInner",
|
@@ -795,9 +881,9 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
795
881
|
}
|
796
882
|
|
797
883
|
/**
|
798
|
-
*
|
884
|
+
* Gets the coordinates of all cells of your range.
|
799
885
|
*
|
800
|
-
* @returns {
|
886
|
+
* @returns {CellCoords[]}
|
801
887
|
*/
|
802
888
|
}, {
|
803
889
|
key: "getAll",
|
@@ -820,10 +906,11 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
820
906
|
}
|
821
907
|
|
822
908
|
/**
|
823
|
-
* Runs a callback function
|
824
|
-
*
|
909
|
+
* Runs a callback function on all cells within your range.
|
910
|
+
*
|
911
|
+
* You can break the iteration by returning `false` in the callback function.
|
825
912
|
*
|
826
|
-
* @param {
|
913
|
+
* @param {function(number, number): boolean} callback A callback function.
|
827
914
|
*/
|
828
915
|
}, {
|
829
916
|
key: "forAll",
|
@@ -841,7 +928,7 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
841
928
|
}
|
842
929
|
|
843
930
|
/**
|
844
|
-
* Clones
|
931
|
+
* Clones your `CellRange` instance.
|
845
932
|
*
|
846
933
|
* @returns {CellRange}
|
847
934
|
*/
|
@@ -852,10 +939,16 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
852
939
|
}
|
853
940
|
|
854
941
|
/**
|
855
|
-
*
|
942
|
+
* Converts your `CellRange` instance into an object literal with the following properties:
|
856
943
|
*
|
857
|
-
*
|
858
|
-
*
|
944
|
+
* - `from`
|
945
|
+
* - `row`
|
946
|
+
* - `col`
|
947
|
+
* - `to`
|
948
|
+
* - `row`
|
949
|
+
* - `col`
|
950
|
+
*
|
951
|
+
* @returns {{from: {row: number, col: number}, to: {row: number, col: number}}} An object literal with `from` and `to` properties.
|
859
952
|
*/
|
860
953
|
}, {
|
861
954
|
key: "toObject",
|
@@ -867,12 +960,14 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
867
960
|
}
|
868
961
|
|
869
962
|
/**
|
870
|
-
* Creates and returns a new instance of the CellCoords
|
871
|
-
*
|
963
|
+
* Creates and returns a new instance of the `CellCoords` class.
|
964
|
+
*
|
965
|
+
* The new `CellCoords` instance automatically inherits the LTR/RTL flag
|
966
|
+
* from your `CellRange` instance.
|
872
967
|
*
|
873
968
|
* @private
|
874
|
-
* @param {number} row
|
875
|
-
* @param {number} column
|
969
|
+
* @param {number} row A row index.
|
970
|
+
* @param {number} column A column index.
|
876
971
|
* @returns {CellCoords}
|
877
972
|
*/
|
878
973
|
}, {
|