handsontable 14.4.0 → 14.5.0-next-7541a88-20240725
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdparty/walkontable/src/calculator/calculationType/fullyVisibleColumns.js +126 -0
- package/3rdparty/walkontable/src/calculator/calculationType/fullyVisibleColumns.mjs +122 -0
- package/3rdparty/walkontable/src/calculator/calculationType/fullyVisibleRows.js +119 -0
- package/3rdparty/walkontable/src/calculator/calculationType/fullyVisibleRows.mjs +115 -0
- package/3rdparty/walkontable/src/calculator/calculationType/partiallyVisibleColumns.js +125 -0
- package/3rdparty/walkontable/src/calculator/calculationType/partiallyVisibleColumns.mjs +121 -0
- package/3rdparty/walkontable/src/calculator/calculationType/partiallyVisibleRows.js +118 -0
- package/3rdparty/walkontable/src/calculator/calculationType/partiallyVisibleRows.mjs +114 -0
- package/3rdparty/walkontable/src/calculator/{renderAllColumns.js → calculationType/renderedAllColumns.js} +33 -10
- package/3rdparty/walkontable/src/calculator/{renderAllColumns.mjs → calculationType/renderedAllColumns.mjs} +32 -9
- package/3rdparty/walkontable/src/calculator/{renderAllRows.js → calculationType/renderedAllRows.js} +33 -10
- package/3rdparty/walkontable/src/calculator/{renderAllRows.mjs → calculationType/renderedAllRows.mjs} +32 -9
- package/3rdparty/walkontable/src/calculator/calculationType/renderedColumns.js +37 -0
- package/3rdparty/walkontable/src/calculator/calculationType/renderedColumns.mjs +33 -0
- package/3rdparty/walkontable/src/calculator/calculationType/renderedRows.js +37 -0
- package/3rdparty/walkontable/src/calculator/calculationType/renderedRows.mjs +33 -0
- package/3rdparty/walkontable/src/calculator/index.js +18 -17
- package/3rdparty/walkontable/src/calculator/index.mjs +11 -6
- package/3rdparty/walkontable/src/calculator/viewportBase.js +92 -0
- package/3rdparty/walkontable/src/calculator/viewportBase.mjs +88 -0
- package/3rdparty/walkontable/src/calculator/viewportColumns.js +52 -146
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +52 -146
- package/3rdparty/walkontable/src/calculator/viewportRows.js +60 -142
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +60 -142
- package/3rdparty/walkontable/src/cell/coords.js +3 -3
- package/3rdparty/walkontable/src/cell/coords.mjs +3 -3
- package/3rdparty/walkontable/src/cell/range.js +4 -4
- package/3rdparty/walkontable/src/cell/range.mjs +3 -3
- package/3rdparty/walkontable/src/core/_base.js +2 -2
- package/3rdparty/walkontable/src/core/_base.mjs +1 -1
- package/3rdparty/walkontable/src/core/clone.js +2 -2
- package/3rdparty/walkontable/src/core/clone.mjs +1 -1
- package/3rdparty/walkontable/src/core/core.js +17 -1
- package/3rdparty/walkontable/src/core/core.mjs +16 -0
- package/3rdparty/walkontable/src/event.js +2 -2
- package/3rdparty/walkontable/src/event.mjs +2 -2
- package/3rdparty/walkontable/src/facade/core.js +4 -1
- package/3rdparty/walkontable/src/facade/core.mjs +3 -0
- package/3rdparty/walkontable/src/filter/column.js +1 -1
- package/3rdparty/walkontable/src/filter/column.mjs +1 -1
- package/3rdparty/walkontable/src/filter/row.js +1 -1
- package/3rdparty/walkontable/src/filter/row.mjs +1 -1
- package/3rdparty/walkontable/src/index.js +3 -1
- package/3rdparty/walkontable/src/index.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/_base.js +2 -2
- package/3rdparty/walkontable/src/overlay/_base.mjs +1 -1
- package/3rdparty/walkontable/src/overlay/bottom.js +2 -2
- package/3rdparty/walkontable/src/overlay/bottom.mjs +1 -1
- package/3rdparty/walkontable/src/overlay/bottomInlineStartCorner.js +1 -1
- package/3rdparty/walkontable/src/overlay/inlineStart.js +1 -1
- package/3rdparty/walkontable/src/overlay/top.js +2 -2
- package/3rdparty/walkontable/src/overlay/top.mjs +1 -1
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +2 -2
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +1 -1
- package/3rdparty/walkontable/src/overlays.js +36 -4
- package/3rdparty/walkontable/src/overlays.mjs +36 -4
- package/3rdparty/walkontable/src/renderer/_base.js +2 -2
- package/3rdparty/walkontable/src/renderer/_base.mjs +1 -1
- package/3rdparty/walkontable/src/renderer/cells.js +2 -2
- package/3rdparty/walkontable/src/renderer/cells.mjs +1 -1
- package/3rdparty/walkontable/src/renderer/colGroup.js +1 -1
- package/3rdparty/walkontable/src/renderer/columnHeaders.js +1 -1
- package/3rdparty/walkontable/src/renderer/index.js +12 -1
- package/3rdparty/walkontable/src/renderer/index.mjs +11 -0
- package/3rdparty/walkontable/src/renderer/rowHeaders.js +2 -2
- package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +1 -1
- package/3rdparty/walkontable/src/renderer/rows.js +2 -2
- package/3rdparty/walkontable/src/renderer/rows.mjs +1 -1
- package/3rdparty/walkontable/src/renderer/table.js +17 -2
- package/3rdparty/walkontable/src/renderer/table.mjs +17 -2
- package/3rdparty/walkontable/src/scroll.js +3 -3
- package/3rdparty/walkontable/src/scroll.mjs +3 -3
- package/3rdparty/walkontable/src/selection/index.js +1 -1
- package/3rdparty/walkontable/src/selection/manager.js +4 -4
- package/3rdparty/walkontable/src/selection/manager.mjs +3 -3
- package/3rdparty/walkontable/src/selection/scanner.js +3 -3
- package/3rdparty/walkontable/src/selection/scanner.mjs +3 -3
- package/3rdparty/walkontable/src/selection/selection.js +1 -1
- package/3rdparty/walkontable/src/settings.js +6 -2
- package/3rdparty/walkontable/src/settings.mjs +6 -2
- package/3rdparty/walkontable/src/table/bottom.js +1 -1
- package/3rdparty/walkontable/src/table/bottomInlineStartCorner.js +1 -1
- package/3rdparty/walkontable/src/table/inlineStart.js +1 -1
- package/3rdparty/walkontable/src/table/master.js +1 -1
- package/3rdparty/walkontable/src/table/top.js +1 -1
- package/3rdparty/walkontable/src/table/topInlineStartCorner.js +1 -1
- package/3rdparty/walkontable/src/table.js +8 -14
- package/3rdparty/walkontable/src/table.mjs +7 -13
- package/3rdparty/walkontable/src/utils/column.js +3 -2
- package/3rdparty/walkontable/src/utils/column.mjs +3 -2
- package/3rdparty/walkontable/src/utils/columnStretching.js +13 -22
- package/3rdparty/walkontable/src/utils/columnStretching.mjs +13 -22
- package/3rdparty/walkontable/src/utils/nodesPool.js +1 -1
- package/3rdparty/walkontable/src/utils/nodesPool.mjs +1 -1
- package/3rdparty/walkontable/src/utils/orderView/index.js +1 -1
- package/3rdparty/walkontable/src/utils/orderView/sharedView.js +1 -1
- package/3rdparty/walkontable/src/utils/orderView/view.js +2 -2
- package/3rdparty/walkontable/src/utils/orderView/view.mjs +1 -1
- package/3rdparty/walkontable/src/utils/orderView/viewSize.js +1 -1
- package/3rdparty/walkontable/src/utils/orderView/viewSize.mjs +1 -1
- package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.js +2 -2
- package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.mjs +1 -1
- package/3rdparty/walkontable/src/utils/row.js +17 -1
- package/3rdparty/walkontable/src/utils/row.mjs +17 -1
- package/3rdparty/walkontable/src/viewport.js +35 -46
- package/3rdparty/walkontable/src/viewport.mjs +36 -47
- package/CHANGELOG.md +27 -1
- package/base.js +3 -3
- package/base.mjs +2 -2
- package/cellTypes/registry.js +1 -1
- package/common.d.ts +3 -0
- package/core.d.ts +2 -0
- package/core.js +37 -32
- package/core.mjs +37 -32
- package/dataMap/dataMap.js +1 -1
- package/dataMap/dataMap.mjs +1 -1
- package/dataMap/dataSource.js +1 -1
- package/dataMap/dataSource.mjs +1 -1
- package/dataMap/index.js +1 -1
- package/dataMap/metaManager/index.js +1 -1
- package/dataMap/metaManager/lazyFactoryMap.js +1 -1
- package/dataMap/metaManager/lazyFactoryMap.mjs +1 -1
- package/dataMap/metaManager/metaLayers/cellMeta.js +2 -2
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -1
- package/dataMap/metaManager/metaLayers/columnMeta.js +2 -2
- package/dataMap/metaManager/metaLayers/columnMeta.mjs +1 -1
- package/dataMap/metaManager/metaLayers/globalMeta.js +2 -2
- package/dataMap/metaManager/metaLayers/globalMeta.mjs +1 -1
- package/dataMap/metaManager/metaLayers/tableMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/tableMeta.mjs +1 -1
- package/dataMap/metaManager/metaSchema.js +25 -0
- package/dataMap/metaManager/metaSchema.mjs +25 -0
- package/dataMap/metaManager/mods/dynamicCellMeta.js +2 -2
- package/dataMap/metaManager/mods/dynamicCellMeta.mjs +1 -1
- package/dataMap/metaManager/mods/extendMetaProperties.js +3 -3
- package/dataMap/metaManager/mods/extendMetaProperties.mjs +3 -3
- package/dataMap/replaceData.js +1 -1
- package/dist/handsontable.css +134 -88
- package/dist/handsontable.full.css +134 -88
- package/dist/handsontable.full.js +4084 -2863
- package/dist/handsontable.full.min.css +7 -7
- package/dist/handsontable.full.min.js +153 -153
- package/dist/handsontable.js +4074 -2801
- package/dist/handsontable.min.css +6 -6
- package/dist/handsontable.min.js +33 -33
- package/dist/languages/all.js +3 -3
- package/dist/languages/ar-AR.js +3 -3
- package/dist/languages/cs-CZ.js +3 -3
- package/dist/languages/de-CH.js +3 -3
- package/dist/languages/de-DE.js +3 -3
- package/dist/languages/en-US.js +3 -3
- package/dist/languages/es-MX.js +3 -3
- package/dist/languages/fr-FR.js +3 -3
- package/dist/languages/hr-HR.js +3 -3
- package/dist/languages/it-IT.js +3 -3
- package/dist/languages/ja-JP.js +3 -3
- package/dist/languages/ko-KR.js +3 -3
- package/dist/languages/lv-LV.js +3 -3
- package/dist/languages/nb-NO.js +3 -3
- package/dist/languages/nl-NL.js +3 -3
- package/dist/languages/pl-PL.js +3 -3
- package/dist/languages/pt-BR.js +3 -3
- package/dist/languages/ru-RU.js +3 -3
- package/dist/languages/sr-SP.js +3 -3
- package/dist/languages/zh-CN.js +3 -3
- package/dist/languages/zh-TW.js +3 -3
- package/editorManager.js +4 -4
- package/editorManager.mjs +3 -3
- package/editors/autocompleteEditor/autocompleteEditor.js +3 -3
- package/editors/autocompleteEditor/autocompleteEditor.mjs +3 -3
- package/editors/baseEditor/baseEditor.js +2 -2
- package/editors/baseEditor/baseEditor.mjs +1 -1
- package/editors/dateEditor/dateEditor.js +2 -2
- package/editors/dateEditor/dateEditor.mjs +1 -1
- package/editors/dropdownEditor/dropdownEditor.js +1 -1
- package/editors/registry.js +1 -1
- package/editors/textEditor/textEditor.js +2 -2
- package/editors/textEditor/textEditor.mjs +1 -1
- package/eventManager.js +1 -1
- package/eventManager.mjs +1 -1
- package/focusManager.js +3 -3
- package/focusManager.mjs +3 -3
- package/helpers/dom/event.d.ts +1 -0
- package/helpers/dom/event.js +11 -0
- package/helpers/dom/event.mjs +10 -0
- package/helpers/mixed.js +3 -3
- package/helpers/mixed.mjs +2 -2
- package/helpers/string.js +1 -1
- package/i18n/languages/index.js +1 -1
- package/i18n/phraseFormatters/index.js +1 -1
- package/i18n/registry.js +1 -1
- package/index.js +1 -1
- package/languages/all.js +3 -3
- package/languages/ar-AR.js +3 -3
- package/languages/cs-CZ.js +3 -3
- package/languages/de-CH.js +3 -3
- package/languages/de-DE.js +3 -3
- package/languages/en-US.js +3 -3
- package/languages/es-MX.js +3 -3
- package/languages/fr-FR.js +3 -3
- package/languages/hr-HR.js +3 -3
- package/languages/index.js +3 -3
- package/languages/it-IT.js +3 -3
- package/languages/ja-JP.js +3 -3
- package/languages/ko-KR.js +3 -3
- package/languages/lv-LV.js +3 -3
- package/languages/nb-NO.js +3 -3
- package/languages/nl-NL.js +3 -3
- package/languages/pl-PL.js +3 -3
- package/languages/pt-BR.js +3 -3
- package/languages/ru-RU.js +3 -3
- package/languages/sr-SP.js +3 -3
- package/languages/zh-CN.js +3 -3
- package/languages/zh-TW.js +3 -3
- package/package.json +1 -5
- package/pluginHooks.d.ts +3 -1
- package/pluginHooks.js +12 -1
- package/pluginHooks.mjs +12 -1
- package/plugins/autoColumnSize/autoColumnSize.d.ts +1 -1
- package/plugins/autoColumnSize/autoColumnSize.js +124 -124
- package/plugins/autoColumnSize/autoColumnSize.mjs +124 -124
- package/plugins/autoRowSize/autoRowSize.d.ts +2 -1
- package/plugins/autoRowSize/autoRowSize.js +162 -100
- package/plugins/autoRowSize/autoRowSize.mjs +161 -99
- package/plugins/autofill/autofill.js +4 -4
- package/plugins/autofill/autofill.mjs +3 -3
- package/plugins/base/base.js +5 -5
- package/plugins/base/base.mjs +4 -4
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +4 -4
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +3 -3
- package/plugins/collapsibleColumns/collapsibleColumns.js +4 -4
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +4 -4
- package/plugins/columnSorting/columnSorting.js +6 -5
- package/plugins/columnSorting/columnSorting.mjs +5 -4
- package/plugins/columnSorting/columnStatesManager.js +1 -1
- package/plugins/columnSorting/columnStatesManager.mjs +1 -1
- package/plugins/columnSorting/sortService/registry.js +1 -1
- package/plugins/columnSorting/utils.js +1 -1
- package/plugins/columnSummary/columnSummary.d.ts +1 -1
- package/plugins/columnSummary/columnSummary.js +4 -4
- package/plugins/columnSummary/columnSummary.mjs +3 -3
- package/plugins/columnSummary/endpoints.js +1 -1
- package/plugins/columnSummary/endpoints.mjs +1 -1
- package/plugins/comments/commentEditor.js +74 -39
- package/plugins/comments/commentEditor.mjs +73 -39
- package/plugins/comments/comments.js +25 -44
- package/plugins/comments/comments.mjs +25 -44
- package/plugins/comments/displaySwitch.js +2 -2
- package/plugins/comments/displaySwitch.mjs +1 -1
- package/plugins/comments/editorResizeObserver.js +100 -0
- package/plugins/comments/editorResizeObserver.mjs +95 -0
- package/plugins/contextMenu/commandExecutor.js +1 -1
- package/plugins/contextMenu/commandExecutor.mjs +1 -1
- package/plugins/contextMenu/contextMenu.js +4 -4
- package/plugins/contextMenu/contextMenu.mjs +3 -3
- package/plugins/contextMenu/itemsFactory.js +1 -1
- package/plugins/contextMenu/itemsFactory.mjs +1 -1
- package/plugins/contextMenu/menu/cursor.js +1 -1
- package/plugins/contextMenu/menu/cursor.mjs +1 -1
- package/plugins/contextMenu/menu/menu.js +5 -4
- package/plugins/contextMenu/menu/menu.mjs +4 -3
- package/plugins/contextMenu/menu/positioner.js +2 -2
- package/plugins/contextMenu/menu/positioner.mjs +2 -2
- package/plugins/copyPaste/copyPaste.js +5 -5
- package/plugins/copyPaste/copyPaste.mjs +4 -4
- package/plugins/copyPaste/copyableRanges.js +3 -3
- package/plugins/copyPaste/copyableRanges.mjs +3 -3
- package/plugins/copyPaste/pasteEvent.js +1 -1
- package/plugins/customBorders/contextMenuItem/index.js +1 -1
- package/plugins/customBorders/customBorders.js +3 -3
- package/plugins/customBorders/customBorders.mjs +3 -3
- package/plugins/dragToScroll/dragToScroll.js +4 -4
- package/plugins/dragToScroll/dragToScroll.mjs +4 -4
- package/plugins/dropdownMenu/dropdownMenu.js +5 -5
- package/plugins/dropdownMenu/dropdownMenu.mjs +4 -4
- package/plugins/exportFile/dataProvider.js +1 -1
- package/plugins/exportFile/dataProvider.mjs +1 -1
- package/plugins/exportFile/exportFile.js +1 -1
- package/plugins/exportFile/typeFactory.js +1 -1
- package/plugins/exportFile/types/_base.js +1 -1
- package/plugins/exportFile/types/_base.mjs +1 -1
- package/plugins/exportFile/types/csv.js +1 -1
- package/plugins/filters/component/_base.js +2 -2
- package/plugins/filters/component/_base.mjs +1 -1
- package/plugins/filters/component/actionBar.js +3 -3
- package/plugins/filters/component/actionBar.mjs +3 -3
- package/plugins/filters/component/condition.js +3 -3
- package/plugins/filters/component/condition.mjs +3 -3
- package/plugins/filters/component/operators.js +3 -3
- package/plugins/filters/component/operators.mjs +3 -3
- package/plugins/filters/component/value.js +3 -3
- package/plugins/filters/component/value.mjs +3 -3
- package/plugins/filters/condition/date/after.js +1 -1
- package/plugins/filters/condition/date/before.js +1 -1
- package/plugins/filters/condition/date/today.js +1 -1
- package/plugins/filters/condition/date/tomorrow.js +1 -1
- package/plugins/filters/condition/date/yesterday.js +1 -1
- package/plugins/filters/conditionCollection.js +2 -2
- package/plugins/filters/conditionCollection.mjs +1 -1
- package/plugins/filters/conditionUpdateObserver.js +4 -4
- package/plugins/filters/conditionUpdateObserver.mjs +3 -3
- package/plugins/filters/dataFilter.js +1 -1
- package/plugins/filters/dataFilter.mjs +1 -1
- package/plugins/filters/filters.js +5 -5
- package/plugins/filters/filters.mjs +4 -4
- package/plugins/filters/ui/_base.js +2 -2
- package/plugins/filters/ui/_base.mjs +1 -1
- package/plugins/filters/ui/input.js +3 -3
- package/plugins/filters/ui/input.mjs +3 -3
- package/plugins/filters/ui/link.js +2 -2
- package/plugins/filters/ui/link.mjs +2 -2
- package/plugins/filters/ui/multipleSelect.js +3 -3
- package/plugins/filters/ui/multipleSelect.mjs +3 -3
- package/plugins/filters/ui/radioInput.js +2 -2
- package/plugins/filters/ui/radioInput.mjs +2 -2
- package/plugins/filters/ui/select.js +3 -3
- package/plugins/filters/ui/select.mjs +3 -3
- package/plugins/formulas/engine/register.js +1 -1
- package/plugins/formulas/formulas.js +7 -7
- package/plugins/formulas/formulas.mjs +6 -6
- package/plugins/formulas/indexSyncer/axisSyncer.js +2 -2
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +2 -2
- package/plugins/formulas/indexSyncer/index.js +3 -3
- package/plugins/formulas/indexSyncer/index.mjs +2 -2
- package/plugins/formulas/utils.js +1 -1
- package/plugins/hiddenColumns/hiddenColumns.js +4 -4
- package/plugins/hiddenColumns/hiddenColumns.mjs +3 -3
- package/plugins/hiddenRows/hiddenRows.js +4 -4
- package/plugins/hiddenRows/hiddenRows.mjs +3 -3
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +4 -4
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +3 -3
- package/plugins/manualColumnMove/manualColumnMove.js +4 -4
- package/plugins/manualColumnMove/manualColumnMove.mjs +3 -3
- package/plugins/manualColumnMove/ui/_base.js +1 -1
- package/plugins/manualColumnMove/ui/_base.mjs +1 -1
- package/plugins/manualColumnMove/ui/backlight.js +1 -1
- package/plugins/manualColumnMove/ui/guideline.js +1 -1
- package/plugins/manualColumnResize/manualColumnResize.js +3 -3
- package/plugins/manualColumnResize/manualColumnResize.mjs +3 -3
- package/plugins/manualRowMove/manualRowMove.js +4 -4
- package/plugins/manualRowMove/manualRowMove.mjs +3 -3
- package/plugins/manualRowMove/ui/_base.js +1 -1
- package/plugins/manualRowMove/ui/_base.mjs +1 -1
- package/plugins/manualRowMove/ui/backlight.js +1 -1
- package/plugins/manualRowMove/ui/guideline.js +1 -1
- package/plugins/manualRowResize/manualRowResize.js +4 -4
- package/plugins/manualRowResize/manualRowResize.mjs +5 -5
- package/plugins/mergeCells/calculations/autofill.js +2 -2
- package/plugins/mergeCells/calculations/autofill.mjs +2 -2
- package/plugins/mergeCells/calculations/selection.js +1 -1
- package/plugins/mergeCells/calculations/selection.mjs +1 -1
- package/plugins/mergeCells/cellCoords.js +81 -24
- package/plugins/mergeCells/cellCoords.mjs +81 -24
- package/plugins/mergeCells/cellsCollection.js +167 -91
- package/plugins/mergeCells/cellsCollection.mjs +166 -90
- package/plugins/mergeCells/contextMenuItem/toggleMerge.js +1 -1
- package/plugins/mergeCells/focusOrder.js +4 -4
- package/plugins/mergeCells/focusOrder.mjs +3 -3
- package/plugins/mergeCells/mergeCells.js +171 -122
- package/plugins/mergeCells/mergeCells.mjs +171 -122
- package/plugins/mergeCells/renderer.js +74 -0
- package/plugins/mergeCells/renderer.mjs +70 -0
- package/plugins/multiColumnSorting/multiColumnSorting.js +2 -1
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +2 -1
- package/plugins/multiColumnSorting/utils.js +1 -1
- package/plugins/multiColumnSorting/utils.mjs +1 -1
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +1 -1
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +1 -1
- package/plugins/nestedHeaders/nestedHeaders.d.ts +1 -0
- package/plugins/nestedHeaders/nestedHeaders.js +20 -9
- package/plugins/nestedHeaders/nestedHeaders.mjs +20 -9
- package/plugins/nestedHeaders/stateManager/headersTree.js +3 -3
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +2 -2
- package/plugins/nestedHeaders/stateManager/index.js +3 -3
- package/plugins/nestedHeaders/stateManager/index.mjs +2 -2
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +5 -1
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.mjs +5 -1
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +2 -2
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +2 -2
- package/plugins/nestedHeaders/stateManager/utils.js +6 -2
- package/plugins/nestedHeaders/stateManager/utils.mjs +6 -2
- package/plugins/nestedHeaders/utils/ghostTable.js +1 -1
- package/plugins/nestedHeaders/utils/ghostTable.mjs +1 -1
- package/plugins/nestedRows/data/dataManager.js +1 -1
- package/plugins/nestedRows/data/dataManager.mjs +1 -1
- package/plugins/nestedRows/nestedRows.js +5 -5
- package/plugins/nestedRows/nestedRows.mjs +4 -4
- package/plugins/nestedRows/ui/_base.js +1 -1
- package/plugins/nestedRows/ui/_base.mjs +1 -1
- package/plugins/nestedRows/ui/collapsing.js +1 -1
- package/plugins/nestedRows/ui/contextMenu.js +4 -4
- package/plugins/nestedRows/ui/contextMenu.mjs +3 -3
- package/plugins/nestedRows/ui/headers.js +1 -1
- package/plugins/nestedRows/utils/rowMoveController.js +1 -1
- package/plugins/nestedRows/utils/rowMoveController.mjs +1 -1
- package/plugins/persistentState/persistentState.js +2 -2
- package/plugins/persistentState/persistentState.mjs +1 -1
- package/plugins/persistentState/storage.js +1 -1
- package/plugins/persistentState/storage.mjs +1 -1
- package/plugins/search/search.js +3 -3
- package/plugins/search/search.mjs +3 -3
- package/plugins/touchScroll/touchScroll.js +3 -3
- package/plugins/touchScroll/touchScroll.mjs +3 -3
- package/plugins/trimRows/trimRows.js +3 -3
- package/plugins/trimRows/trimRows.mjs +3 -3
- package/plugins/undoRedo/undoRedo.js +38 -1
- package/plugins/undoRedo/undoRedo.mjs +37 -0
- package/renderers/autocompleteRenderer/autocompleteRenderer.js +1 -1
- package/renderers/checkboxRenderer/checkboxRenderer.js +1 -1
- package/renderers/numericRenderer/numericRenderer.js +1 -1
- package/renderers/registry.js +1 -1
- package/selection/highlight/highlight.js +3 -3
- package/selection/highlight/highlight.mjs +3 -3
- package/selection/highlight/types/activeHeader.js +1 -1
- package/selection/highlight/types/area.js +1 -1
- package/selection/highlight/types/areaLayered.js +1 -1
- package/selection/highlight/types/column.js +1 -1
- package/selection/highlight/types/customSelection.js +1 -1
- package/selection/highlight/types/fill.js +1 -1
- package/selection/highlight/types/focus.js +1 -1
- package/selection/highlight/types/header.js +1 -1
- package/selection/highlight/types/row.js +1 -1
- package/selection/highlight/visualSelection.js +1 -1
- package/selection/highlight/visualSelection.mjs +1 -1
- package/selection/index.js +1 -1
- package/selection/range.js +1 -1
- package/selection/range.mjs +1 -1
- package/selection/selection.js +8 -4
- package/selection/selection.mjs +7 -3
- package/selection/transformation.js +14 -4
- package/selection/transformation.mjs +13 -3
- package/settings.d.ts +1 -0
- package/shortcuts/utils.js +18 -27
- package/shortcuts/utils.mjs +18 -27
- package/tableView.js +126 -28
- package/tableView.mjs +125 -27
- package/translations/changesObservable/observable.js +2 -2
- package/translations/changesObservable/observable.mjs +2 -2
- package/translations/changesObservable/observer.js +3 -3
- package/translations/changesObservable/observer.mjs +2 -2
- package/translations/indexMapper.js +2 -2
- package/translations/indexMapper.mjs +1 -1
- package/translations/mapCollections/aggregatedCollection.js +1 -1
- package/translations/mapCollections/aggregatedCollection.mjs +1 -1
- package/translations/mapCollections/mapCollection.js +2 -2
- package/translations/mapCollections/mapCollection.mjs +1 -1
- package/translations/maps/indexMap.js +2 -2
- package/translations/maps/indexMap.mjs +1 -1
- package/translations/maps/linkedPhysicalIndexToValueMap.js +1 -1
- package/translations/maps/linkedPhysicalIndexToValueMap.mjs +1 -1
- package/utils/dataStructures/linkedList.js +1 -1
- package/utils/dataStructures/linkedList.mjs +1 -1
- package/utils/dataStructures/tree.js +1 -1
- package/utils/dataStructures/tree.mjs +1 -1
- package/utils/ghostTable.js +1 -1
- package/utils/ghostTable.mjs +1 -1
- package/utils/interval.js +4 -4
- package/utils/interval.mjs +4 -4
- package/utils/samplesGenerator.js +1 -1
- package/utils/samplesGenerator.mjs +1 -1
- package/validators/dateValidator/dateValidator.js +1 -1
- package/validators/registry.js +1 -1
- package/validators/timeValidator/timeValidator.js +1 -1
- package/3rdparty/walkontable/src/calculator/constants.js +0 -26
- package/3rdparty/walkontable/src/calculator/constants.mjs +0 -23
- package/plugins/mergeCells/utils.js +0 -28
- package/plugins/mergeCells/utils.mjs +0 -24
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
4
4
|
require("core-js/modules/es.error.cause.js");
|
5
5
|
var _element = require("../../../helpers/dom/element");
|
6
6
|
var _object = require("../../../helpers/object");
|
7
|
-
function _defineProperty(
|
7
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
8
8
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
9
9
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
10
10
|
/**
|
@@ -39,7 +39,8 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
39
39
|
* @property {Option} renderAllColumns Option `renderAllColumns`.
|
40
40
|
* @property {Option} renderAllRows Option `renderAllRows`.
|
41
41
|
* @property {Option} rowHeaders Option `rowHeaders`.
|
42
|
-
* @property {Option} rowHeight
|
42
|
+
* @property {Option} rowHeightOption `rowHeight`.
|
43
|
+
* @property {Option} rowHeightByOverlayName Option `rowHeightByOverlayName`.
|
43
44
|
* @property {Option} shouldRenderBottomOverlay Option `shouldRenderBottomOverlay`.
|
44
45
|
* @property {Option} shouldRenderInlineStartOverlay Option `shouldRenderInlineStartOverlay`.
|
45
46
|
* @property {Option} shouldRenderTopOverlay Option `shouldRenderTopOverlay`.
|
@@ -183,6 +184,9 @@ class Settings {
|
|
183
184
|
rowHeight() {
|
184
185
|
// return undefined means use default size for the rendered cell content
|
185
186
|
},
|
187
|
+
rowHeightByOverlayName() {
|
188
|
+
// return undefined means use default size for the rendered cell content
|
189
|
+
},
|
186
190
|
defaultRowHeight: 23,
|
187
191
|
defaultColumnWidth: 50,
|
188
192
|
selections: null,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
-
function _defineProperty(
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
4
4
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
5
5
|
import { fastInnerText } from "../../../helpers/dom/element.mjs";
|
@@ -36,7 +36,8 @@ import { objectEach } from "../../../helpers/object.mjs";
|
|
36
36
|
* @property {Option} renderAllColumns Option `renderAllColumns`.
|
37
37
|
* @property {Option} renderAllRows Option `renderAllRows`.
|
38
38
|
* @property {Option} rowHeaders Option `rowHeaders`.
|
39
|
-
* @property {Option} rowHeight
|
39
|
+
* @property {Option} rowHeightOption `rowHeight`.
|
40
|
+
* @property {Option} rowHeightByOverlayName Option `rowHeightByOverlayName`.
|
40
41
|
* @property {Option} shouldRenderBottomOverlay Option `shouldRenderBottomOverlay`.
|
41
42
|
* @property {Option} shouldRenderInlineStartOverlay Option `shouldRenderInlineStartOverlay`.
|
42
43
|
* @property {Option} shouldRenderTopOverlay Option `shouldRenderTopOverlay`.
|
@@ -178,6 +179,9 @@ export default class Settings {
|
|
178
179
|
rowHeight() {
|
179
180
|
// return undefined means use default size for the rendered cell content
|
180
181
|
},
|
182
|
+
rowHeightByOverlayName() {
|
183
|
+
// return undefined means use default size for the rendered cell content
|
184
|
+
},
|
181
185
|
defaultRowHeight: 23,
|
182
186
|
defaultColumnWidth: 50,
|
183
187
|
selections: null,
|
@@ -6,7 +6,7 @@ var _stickyRowsBottom = _interopRequireDefault(require("./mixin/stickyRowsBottom
|
|
6
6
|
var _calculatedColumns = _interopRequireDefault(require("./mixin/calculatedColumns"));
|
7
7
|
var _object = require("../../../../helpers/object");
|
8
8
|
var _overlay = require("../overlay");
|
9
|
-
function _interopRequireDefault(
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
10
10
|
/**
|
11
11
|
* Subclass of `Table` that provides the helper methods relevant to BottomOverlay, implemented through mixins.
|
12
12
|
*
|
@@ -6,7 +6,7 @@ var _stickyRowsBottom = _interopRequireDefault(require("./mixin/stickyRowsBottom
|
|
6
6
|
var _stickyColumnsStart = _interopRequireDefault(require("./mixin/stickyColumnsStart"));
|
7
7
|
var _object = require("../../../../helpers/object");
|
8
8
|
var _overlay = require("../overlay");
|
9
|
-
function _interopRequireDefault(
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
10
10
|
/**
|
11
11
|
* Subclass of `Table` that provides the helper methods relevant to bottomInlineStartCornerOverlay
|
12
12
|
* (in RTL mode the overlay sits on the right of the screen), implemented through mixins.
|
@@ -6,7 +6,7 @@ var _calculatedRows = _interopRequireDefault(require("./mixin/calculatedRows"));
|
|
6
6
|
var _stickyColumnsStart = _interopRequireDefault(require("./mixin/stickyColumnsStart"));
|
7
7
|
var _object = require("../../../../helpers/object");
|
8
8
|
var _overlay = require("../overlay");
|
9
|
-
function _interopRequireDefault(
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
10
10
|
/**
|
11
11
|
* Subclass of `Table` that provides the helper methods relevant to InlineStartOverlayTable, implemented through mixins.
|
12
12
|
*/
|
@@ -6,7 +6,7 @@ var _table = _interopRequireDefault(require("../table"));
|
|
6
6
|
var _calculatedRows = _interopRequireDefault(require("./mixin/calculatedRows"));
|
7
7
|
var _calculatedColumns = _interopRequireDefault(require("./mixin/calculatedColumns"));
|
8
8
|
var _object = require("./../../../../helpers/object");
|
9
|
-
function _interopRequireDefault(
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
10
10
|
/**
|
11
11
|
* Subclass of `Table` that provides the helper methods relevant to the master table (not overlays), implemented through mixins.
|
12
12
|
*
|
@@ -6,7 +6,7 @@ var _stickyRowsTop = _interopRequireDefault(require("./mixin/stickyRowsTop"));
|
|
6
6
|
var _calculatedColumns = _interopRequireDefault(require("./mixin/calculatedColumns"));
|
7
7
|
var _object = require("../../../../helpers/object");
|
8
8
|
var _overlay = require("../overlay");
|
9
|
-
function _interopRequireDefault(
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
10
10
|
/**
|
11
11
|
* Subclass of `Table` that provides the helper methods relevant to TopOverlay, implemented through mixins.
|
12
12
|
*
|
@@ -6,7 +6,7 @@ var _stickyRowsTop = _interopRequireDefault(require("./mixin/stickyRowsTop"));
|
|
6
6
|
var _stickyColumnsStart = _interopRequireDefault(require("./mixin/stickyColumnsStart"));
|
7
7
|
var _object = require("../../../../helpers/object");
|
8
8
|
var _overlay = require("../overlay");
|
9
|
-
function _interopRequireDefault(
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
10
10
|
/**
|
11
11
|
* Subclass of `Table` that provides the helper methods relevant to topInlineStartCornerOverlay
|
12
12
|
* (in RTL mode the overlay sits on the right of the screen), implemented through mixins.
|
@@ -12,8 +12,8 @@ var _column2 = _interopRequireDefault(require("./utils/column"));
|
|
12
12
|
var _row2 = _interopRequireDefault(require("./utils/row"));
|
13
13
|
var _overlay = require("./overlay");
|
14
14
|
var _a11y = require("../../../helpers/a11y");
|
15
|
-
function _interopRequireDefault(
|
16
|
-
function _defineProperty(
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
16
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
18
18
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
19
19
|
/**
|
@@ -253,8 +253,9 @@ class Table {
|
|
253
253
|
const columnHeadersCount = columnHeaders.length;
|
254
254
|
let runFastDraw = fastDraw;
|
255
255
|
if (this.isMaster) {
|
256
|
+
wtOverlays.beforeDraw();
|
256
257
|
this.holderOffset = (0, _element.offset)(this.holder);
|
257
|
-
runFastDraw = wtViewport.
|
258
|
+
runFastDraw = wtViewport.createCalculators(runFastDraw);
|
258
259
|
if (rowHeadersCount && !wtSettings.getSetting('fixedColumnsStart')) {
|
259
260
|
const leftScrollPos = wtOverlays.inlineStartOverlay.getScrollPosition();
|
260
261
|
const previousState = this.correctHeaderWidth;
|
@@ -264,16 +265,8 @@ class Table {
|
|
264
265
|
}
|
265
266
|
}
|
266
267
|
}
|
267
|
-
if (this.isMaster) {
|
268
|
-
wtOverlays.beforeDraw();
|
269
|
-
}
|
270
268
|
if (runFastDraw) {
|
271
269
|
if (this.isMaster) {
|
272
|
-
// in case we only scrolled without redraw, update visible rows information in oldRowsCalculator
|
273
|
-
wtViewport.createVisibleCalculators();
|
274
|
-
wtViewport.createPartiallyVisibleCalculators();
|
275
|
-
}
|
276
|
-
if (wtOverlays) {
|
277
270
|
wtOverlays.refresh(true);
|
278
271
|
}
|
279
272
|
} else {
|
@@ -302,7 +295,7 @@ class Table {
|
|
302
295
|
this.tableRenderer.setHeaderContentRenderers(rowHeaders, []);
|
303
296
|
}
|
304
297
|
this.resetOversizedRows();
|
305
|
-
this.tableRenderer.setViewportSize(this.getRenderedRowsCount(), this.getRenderedColumnsCount()).setFilters(this.rowFilter, this.columnFilter).render();
|
298
|
+
this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(), this.getRenderedColumnsCount()).setFilters(this.rowFilter, this.columnFilter).render();
|
306
299
|
let workspaceWidth;
|
307
300
|
if (this.isMaster) {
|
308
301
|
workspaceWidth = this.dataAccessObject.workspaceWidth;
|
@@ -314,8 +307,9 @@ class Table {
|
|
314
307
|
this.markOversizedRows();
|
315
308
|
}
|
316
309
|
if (this.isMaster) {
|
317
|
-
|
318
|
-
|
310
|
+
if (!this.wtSettings.getSetting('externalRowCalculator')) {
|
311
|
+
wtViewport.createVisibleCalculators();
|
312
|
+
}
|
319
313
|
wtOverlays.refresh(false);
|
320
314
|
wtOverlays.applyToDOM();
|
321
315
|
const hiderWidth = (0, _element.outerWidth)(this.hider);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
2
|
import "core-js/modules/es.array.push.js";
|
3
|
-
function _defineProperty(
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
4
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
5
5
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
6
6
|
import { hasClass, index, offset, removeTextNodes, overlayContainsElement, closest, outerHeight, outerWidth, innerHeight, isVisible, setAttribute } from "../../../helpers/dom/element.mjs";
|
@@ -249,8 +249,9 @@ class Table {
|
|
249
249
|
const columnHeadersCount = columnHeaders.length;
|
250
250
|
let runFastDraw = fastDraw;
|
251
251
|
if (this.isMaster) {
|
252
|
+
wtOverlays.beforeDraw();
|
252
253
|
this.holderOffset = offset(this.holder);
|
253
|
-
runFastDraw = wtViewport.
|
254
|
+
runFastDraw = wtViewport.createCalculators(runFastDraw);
|
254
255
|
if (rowHeadersCount && !wtSettings.getSetting('fixedColumnsStart')) {
|
255
256
|
const leftScrollPos = wtOverlays.inlineStartOverlay.getScrollPosition();
|
256
257
|
const previousState = this.correctHeaderWidth;
|
@@ -260,16 +261,8 @@ class Table {
|
|
260
261
|
}
|
261
262
|
}
|
262
263
|
}
|
263
|
-
if (this.isMaster) {
|
264
|
-
wtOverlays.beforeDraw();
|
265
|
-
}
|
266
264
|
if (runFastDraw) {
|
267
265
|
if (this.isMaster) {
|
268
|
-
// in case we only scrolled without redraw, update visible rows information in oldRowsCalculator
|
269
|
-
wtViewport.createVisibleCalculators();
|
270
|
-
wtViewport.createPartiallyVisibleCalculators();
|
271
|
-
}
|
272
|
-
if (wtOverlays) {
|
273
266
|
wtOverlays.refresh(true);
|
274
267
|
}
|
275
268
|
} else {
|
@@ -298,7 +291,7 @@ class Table {
|
|
298
291
|
this.tableRenderer.setHeaderContentRenderers(rowHeaders, []);
|
299
292
|
}
|
300
293
|
this.resetOversizedRows();
|
301
|
-
this.tableRenderer.setViewportSize(this.getRenderedRowsCount(), this.getRenderedColumnsCount()).setFilters(this.rowFilter, this.columnFilter).render();
|
294
|
+
this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(), this.getRenderedColumnsCount()).setFilters(this.rowFilter, this.columnFilter).render();
|
302
295
|
let workspaceWidth;
|
303
296
|
if (this.isMaster) {
|
304
297
|
workspaceWidth = this.dataAccessObject.workspaceWidth;
|
@@ -310,8 +303,9 @@ class Table {
|
|
310
303
|
this.markOversizedRows();
|
311
304
|
}
|
312
305
|
if (this.isMaster) {
|
313
|
-
|
314
|
-
|
306
|
+
if (!this.wtSettings.getSetting('externalRowCalculator')) {
|
307
|
+
wtViewport.createVisibleCalculators();
|
308
|
+
}
|
315
309
|
wtOverlays.refresh(false);
|
316
310
|
wtOverlays.applyToDOM();
|
317
311
|
const hiderWidth = outerWidth(this.hider);
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
4
4
|
require("core-js/modules/es.error.cause.js");
|
5
5
|
var _element = require("./../../../../helpers/dom/element");
|
6
6
|
var _columnStretching = require("./columnStretching");
|
7
|
-
function _defineProperty(
|
7
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
8
8
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
9
9
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
10
10
|
/**
|
@@ -51,7 +51,8 @@ class ColumnUtils {
|
|
51
51
|
* @returns {number}
|
52
52
|
*/
|
53
53
|
getWidth(sourceIndex) {
|
54
|
-
|
54
|
+
const width = this.wtSettings.getSetting('columnWidth', sourceIndex) || this.wtSettings.getSetting('defaultColumnWidth');
|
55
|
+
return width;
|
55
56
|
}
|
56
57
|
|
57
58
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
-
function _defineProperty(
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
4
4
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
5
5
|
import { getScrollbarWidth } from "./../../../../helpers/dom/element.mjs";
|
@@ -48,7 +48,8 @@ export default class ColumnUtils {
|
|
48
48
|
* @returns {number}
|
49
49
|
*/
|
50
50
|
getWidth(sourceIndex) {
|
51
|
-
|
51
|
+
const width = this.wtSettings.getSetting('columnWidth', sourceIndex) || this.wtSettings.getSetting('defaultColumnWidth');
|
52
|
+
return width;
|
52
53
|
}
|
53
54
|
|
54
55
|
/**
|
@@ -2,19 +2,15 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
require("core-js/modules/es.error.cause.js");
|
5
|
-
|
6
|
-
function
|
7
|
-
function
|
5
|
+
var _calculator = require("../calculator");
|
6
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
7
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
8
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
8
9
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
9
10
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
10
11
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
11
12
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
12
13
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
13
|
-
var _totalTargetWidth = /*#__PURE__*/new WeakMap();
|
14
|
-
var _totalColumns = /*#__PURE__*/new WeakMap();
|
15
|
-
var _stretchingColumnWidthFn = /*#__PURE__*/new WeakMap();
|
16
|
-
var _columnWidthFn = /*#__PURE__*/new WeakMap();
|
17
|
-
var _stretchMode = /*#__PURE__*/new WeakMap();
|
18
14
|
/**
|
19
15
|
* @typedef {object} ColumnStretchingOptions
|
20
16
|
* @property {number} totalColumns Total number of columns.
|
@@ -25,20 +21,12 @@ var _stretchMode = /*#__PURE__*/new WeakMap();
|
|
25
21
|
/**
|
26
22
|
* @class ColumnStretching
|
27
23
|
*/
|
24
|
+
var _totalTargetWidth = /*#__PURE__*/new WeakMap();
|
25
|
+
var _totalColumns = /*#__PURE__*/new WeakMap();
|
26
|
+
var _stretchingColumnWidthFn = /*#__PURE__*/new WeakMap();
|
27
|
+
var _columnWidthFn = /*#__PURE__*/new WeakMap();
|
28
|
+
var _stretchMode = /*#__PURE__*/new WeakMap();
|
28
29
|
class ColumnStretching {
|
29
|
-
/**
|
30
|
-
* Default column width.
|
31
|
-
*
|
32
|
-
* @type {number}
|
33
|
-
*/
|
34
|
-
static get DEFAULT_WIDTH() {
|
35
|
-
return 50;
|
36
|
-
}
|
37
|
-
|
38
|
-
/**
|
39
|
-
* @type {number}
|
40
|
-
*/
|
41
|
-
|
42
30
|
/**
|
43
31
|
* @param {ColumnStretchingOptions} options Object with all options specified for column viewport calculation.
|
44
32
|
*/
|
@@ -49,6 +37,9 @@ class ColumnStretching {
|
|
49
37
|
stretchingColumnWidthFn,
|
50
38
|
columnWidthFn
|
51
39
|
} = _ref;
|
40
|
+
/**
|
41
|
+
* @type {number}
|
42
|
+
*/
|
52
43
|
_defineProperty(this, "stretchAllRatio", 0);
|
53
44
|
/**
|
54
45
|
* @type {number}
|
@@ -198,7 +189,7 @@ class ColumnStretching {
|
|
198
189
|
_getColumnWidth(column) {
|
199
190
|
let width = _classPrivateFieldGet(_columnWidthFn, this).call(this, column);
|
200
191
|
if (isNaN(width)) {
|
201
|
-
width =
|
192
|
+
width = _calculator.DEFAULT_COLUMN_WIDTH;
|
202
193
|
}
|
203
194
|
return width;
|
204
195
|
}
|
@@ -1,17 +1,13 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
-
function _classPrivateFieldInitSpec(
|
3
|
-
function _checkPrivateRedeclaration(
|
4
|
-
function _defineProperty(
|
2
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
3
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
6
6
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
7
7
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
8
8
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
9
9
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
10
|
-
|
11
|
-
var _totalColumns = /*#__PURE__*/new WeakMap();
|
12
|
-
var _stretchingColumnWidthFn = /*#__PURE__*/new WeakMap();
|
13
|
-
var _columnWidthFn = /*#__PURE__*/new WeakMap();
|
14
|
-
var _stretchMode = /*#__PURE__*/new WeakMap();
|
10
|
+
import { DEFAULT_COLUMN_WIDTH } from "../calculator/index.mjs";
|
15
11
|
/**
|
16
12
|
* @typedef {object} ColumnStretchingOptions
|
17
13
|
* @property {number} totalColumns Total number of columns.
|
@@ -22,20 +18,12 @@ var _stretchMode = /*#__PURE__*/new WeakMap();
|
|
22
18
|
/**
|
23
19
|
* @class ColumnStretching
|
24
20
|
*/
|
21
|
+
var _totalTargetWidth = /*#__PURE__*/new WeakMap();
|
22
|
+
var _totalColumns = /*#__PURE__*/new WeakMap();
|
23
|
+
var _stretchingColumnWidthFn = /*#__PURE__*/new WeakMap();
|
24
|
+
var _columnWidthFn = /*#__PURE__*/new WeakMap();
|
25
|
+
var _stretchMode = /*#__PURE__*/new WeakMap();
|
25
26
|
export class ColumnStretching {
|
26
|
-
/**
|
27
|
-
* Default column width.
|
28
|
-
*
|
29
|
-
* @type {number}
|
30
|
-
*/
|
31
|
-
static get DEFAULT_WIDTH() {
|
32
|
-
return 50;
|
33
|
-
}
|
34
|
-
|
35
|
-
/**
|
36
|
-
* @type {number}
|
37
|
-
*/
|
38
|
-
|
39
27
|
/**
|
40
28
|
* @param {ColumnStretchingOptions} options Object with all options specified for column viewport calculation.
|
41
29
|
*/
|
@@ -46,6 +34,9 @@ export class ColumnStretching {
|
|
46
34
|
stretchingColumnWidthFn,
|
47
35
|
columnWidthFn
|
48
36
|
} = _ref;
|
37
|
+
/**
|
38
|
+
* @type {number}
|
39
|
+
*/
|
49
40
|
_defineProperty(this, "stretchAllRatio", 0);
|
50
41
|
/**
|
51
42
|
* @type {number}
|
@@ -195,7 +186,7 @@ export class ColumnStretching {
|
|
195
186
|
_getColumnWidth(column) {
|
196
187
|
let width = _classPrivateFieldGet(_columnWidthFn, this).call(this, column);
|
197
188
|
if (isNaN(width)) {
|
198
|
-
width =
|
189
|
+
width = DEFAULT_COLUMN_WIDTH;
|
199
190
|
}
|
200
191
|
return width;
|
201
192
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
require("core-js/modules/es.error.cause.js");
|
5
|
-
function _defineProperty(
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
7
7
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
8
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
-
function _defineProperty(
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
4
4
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
5
5
|
/**
|
@@ -5,4 +5,4 @@ var _view = _interopRequireDefault(require("./view"));
|
|
5
5
|
exports.OrderView = _view.default;
|
6
6
|
var _sharedView = _interopRequireDefault(require("./sharedView"));
|
7
7
|
exports.SharedOrderView = _sharedView.default;
|
8
|
-
function _interopRequireDefault(
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
var _view = _interopRequireDefault(require("./view"));
|
5
|
-
function _interopRequireDefault(
|
5
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
6
6
|
/**
|
7
7
|
* Executive model for TR root nodes.
|
8
8
|
*
|
@@ -5,8 +5,8 @@ require("core-js/modules/es.error.cause.js");
|
|
5
5
|
require("core-js/modules/es.array.push.js");
|
6
6
|
var _constants = require("./constants");
|
7
7
|
var _viewSizeSet = _interopRequireDefault(require("./viewSizeSet"));
|
8
|
-
function _interopRequireDefault(
|
9
|
-
function _defineProperty(
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
9
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
10
10
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
11
11
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
12
12
|
/**
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
2
|
import "core-js/modules/es.array.push.js";
|
3
|
-
function _defineProperty(
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
4
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
5
5
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
6
6
|
import { WORKING_SPACE_TOP, WORKING_SPACE_BOTTOM } from "./constants.mjs";
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
require("core-js/modules/es.error.cause.js");
|
5
|
-
function _defineProperty(
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
7
7
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
8
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
-
function _defineProperty(
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
4
4
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
5
5
|
/**
|
@@ -4,8 +4,8 @@ exports.__esModule = true;
|
|
4
4
|
require("core-js/modules/es.error.cause.js");
|
5
5
|
var _viewSize = _interopRequireDefault(require("./viewSize"));
|
6
6
|
var _constants = require("./constants");
|
7
|
-
function _interopRequireDefault(
|
8
|
-
function _defineProperty(
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
8
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
9
9
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
10
10
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
11
11
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
-
function _defineProperty(
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
4
4
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
5
5
|
import ViewSize from "./viewSize.mjs";
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
require("core-js/modules/es.error.cause.js");
|
5
|
-
function _defineProperty(
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
7
7
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
8
|
/**
|
@@ -42,5 +42,21 @@ class RowUtils {
|
|
42
42
|
}
|
43
43
|
return height;
|
44
44
|
}
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Returns row height based on passed source index for the specified overlay type.
|
48
|
+
*
|
49
|
+
* @param {number} sourceIndex Row source index.
|
50
|
+
* @param {'inline_start'|'top'|'top_inline_start_corner'|'bottom'|'bottom_inline_start_corner'|'master'} overlayName The overlay name.
|
51
|
+
* @returns {number}
|
52
|
+
*/
|
53
|
+
getHeightByOverlayName(sourceIndex, overlayName) {
|
54
|
+
let height = this.wtSettings.getSetting('rowHeightByOverlayName', sourceIndex, overlayName);
|
55
|
+
const oversizedHeight = this.dataAccessObject.wtViewport.oversizedRows[sourceIndex];
|
56
|
+
if (oversizedHeight !== undefined) {
|
57
|
+
height = height === undefined ? oversizedHeight : Math.max(height, oversizedHeight);
|
58
|
+
}
|
59
|
+
return height;
|
60
|
+
}
|
45
61
|
}
|
46
62
|
exports.default = RowUtils;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
-
function _defineProperty(
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
4
4
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
5
5
|
/**
|
@@ -39,4 +39,20 @@ export default class RowUtils {
|
|
39
39
|
}
|
40
40
|
return height;
|
41
41
|
}
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Returns row height based on passed source index for the specified overlay type.
|
45
|
+
*
|
46
|
+
* @param {number} sourceIndex Row source index.
|
47
|
+
* @param {'inline_start'|'top'|'top_inline_start_corner'|'bottom'|'bottom_inline_start_corner'|'master'} overlayName The overlay name.
|
48
|
+
* @returns {number}
|
49
|
+
*/
|
50
|
+
getHeightByOverlayName(sourceIndex, overlayName) {
|
51
|
+
let height = this.wtSettings.getSetting('rowHeightByOverlayName', sourceIndex, overlayName);
|
52
|
+
const oversizedHeight = this.dataAccessObject.wtViewport.oversizedRows[sourceIndex];
|
53
|
+
if (oversizedHeight !== undefined) {
|
54
|
+
height = height === undefined ? oversizedHeight : Math.max(height, oversizedHeight);
|
55
|
+
}
|
56
|
+
return height;
|
57
|
+
}
|
42
58
|
}
|