handsontable 14.0.0 → 14.1.0-next-514dcd3-20240109
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/index.js +11 -6
- package/3rdparty/walkontable/src/calculator/index.mjs +5 -3
- package/3rdparty/walkontable/src/calculator/renderAllColumns.js +50 -0
- package/3rdparty/walkontable/src/calculator/renderAllColumns.mjs +46 -0
- package/3rdparty/walkontable/src/calculator/renderAllRows.js +50 -0
- package/3rdparty/walkontable/src/calculator/renderAllRows.mjs +46 -0
- package/3rdparty/walkontable/src/calculator/viewportColumns.js +3 -124
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +4 -126
- package/3rdparty/walkontable/src/calculator/viewportRows.js +3 -3
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +4 -5
- package/3rdparty/walkontable/src/cell/coords.d.ts +5 -5
- package/3rdparty/walkontable/src/cell/coords.js +2 -2
- package/3rdparty/walkontable/src/cell/coords.mjs +2 -2
- package/3rdparty/walkontable/src/cell/range.d.ts +5 -5
- package/3rdparty/walkontable/src/cell/range.js +16 -41
- package/3rdparty/walkontable/src/cell/range.mjs +16 -41
- package/3rdparty/walkontable/src/core/_base.js +2 -14
- package/3rdparty/walkontable/src/core/_base.mjs +2 -14
- package/3rdparty/walkontable/src/core/clone.js +2 -2
- package/3rdparty/walkontable/src/core/clone.mjs +2 -2
- package/3rdparty/walkontable/src/core/core.js +0 -2
- package/3rdparty/walkontable/src/core/core.mjs +0 -2
- package/3rdparty/walkontable/src/facade/core.js +0 -9
- package/3rdparty/walkontable/src/facade/core.mjs +0 -9
- package/3rdparty/walkontable/src/filter/column.js +2 -2
- package/3rdparty/walkontable/src/filter/column.mjs +2 -2
- package/3rdparty/walkontable/src/filter/row.js +2 -2
- package/3rdparty/walkontable/src/filter/row.mjs +2 -2
- package/3rdparty/walkontable/src/index.js +3 -4
- package/3rdparty/walkontable/src/index.mjs +1 -2
- package/3rdparty/walkontable/src/overlay/_base.js +2 -2
- package/3rdparty/walkontable/src/overlay/_base.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/bottom.js +2 -2
- package/3rdparty/walkontable/src/overlay/bottom.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/top.js +2 -2
- package/3rdparty/walkontable/src/overlay/top.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +2 -2
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +2 -2
- package/3rdparty/walkontable/src/overlays.js +2 -5
- package/3rdparty/walkontable/src/overlays.mjs +2 -6
- package/3rdparty/walkontable/src/renderer/_base.js +2 -2
- package/3rdparty/walkontable/src/renderer/_base.mjs +2 -2
- package/3rdparty/walkontable/src/renderer/cells.js +2 -2
- package/3rdparty/walkontable/src/renderer/cells.mjs +2 -2
- package/3rdparty/walkontable/src/renderer/colGroup.js +10 -0
- package/3rdparty/walkontable/src/renderer/colGroup.mjs +10 -0
- package/3rdparty/walkontable/src/renderer/rowHeaders.js +2 -2
- package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +2 -2
- package/3rdparty/walkontable/src/renderer/rows.js +6 -5
- package/3rdparty/walkontable/src/renderer/rows.mjs +6 -5
- package/3rdparty/walkontable/src/renderer/table.js +2 -2
- package/3rdparty/walkontable/src/renderer/table.mjs +2 -2
- package/3rdparty/walkontable/src/scroll.js +4 -60
- package/3rdparty/walkontable/src/scroll.mjs +4 -60
- package/3rdparty/walkontable/src/selection/manager.js +0 -1
- package/3rdparty/walkontable/src/selection/manager.mjs +0 -1
- package/3rdparty/walkontable/src/settings.js +5 -2
- package/3rdparty/walkontable/src/settings.mjs +4 -2
- package/3rdparty/walkontable/src/table.js +2 -3
- package/3rdparty/walkontable/src/table.mjs +2 -3
- package/3rdparty/walkontable/src/utils/column.js +29 -14
- package/3rdparty/walkontable/src/utils/column.mjs +29 -14
- package/3rdparty/walkontable/src/utils/columnStretching.js +219 -0
- package/3rdparty/walkontable/src/utils/columnStretching.mjs +215 -0
- package/3rdparty/walkontable/src/utils/nodesPool.js +2 -2
- package/3rdparty/walkontable/src/utils/nodesPool.mjs +2 -2
- package/3rdparty/walkontable/src/utils/orderView/view.js +2 -2
- package/3rdparty/walkontable/src/utils/orderView/view.mjs +2 -2
- package/3rdparty/walkontable/src/utils/orderView/viewSize.js +2 -2
- package/3rdparty/walkontable/src/utils/orderView/viewSize.mjs +2 -2
- package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.js +2 -2
- package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.mjs +2 -2
- package/3rdparty/walkontable/src/utils/row.js +2 -2
- package/3rdparty/walkontable/src/utils/row.mjs +2 -2
- package/3rdparty/walkontable/src/viewport.js +22 -17
- package/3rdparty/walkontable/src/viewport.mjs +23 -18
- package/CHANGELOG.md +36 -0
- package/base.js +4 -2
- package/base.mjs +2 -2
- package/cellTypes/dropdownType/dropdownType.d.ts +6 -6
- package/cellTypes/dropdownType/dropdownType.js +4 -4
- package/cellTypes/dropdownType/dropdownType.mjs +4 -4
- package/core/focusCatcher/index.js +44 -6
- package/core/focusCatcher/index.mjs +44 -6
- package/core.d.ts +19 -19
- package/core.js +7 -12
- package/core.mjs +7 -12
- package/dataMap/dataMap.js +3 -2
- package/dataMap/dataMap.mjs +2 -2
- package/dataMap/dataSource.js +2 -2
- package/dataMap/dataSource.mjs +2 -2
- package/dataMap/metaManager/lazyFactoryMap.js +2 -2
- package/dataMap/metaManager/lazyFactoryMap.mjs +2 -2
- package/dataMap/metaManager/metaLayers/cellMeta.js +2 -2
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +2 -2
- package/dataMap/metaManager/metaLayers/columnMeta.js +2 -2
- package/dataMap/metaManager/metaLayers/columnMeta.mjs +2 -2
- package/dataMap/metaManager/metaLayers/globalMeta.js +2 -2
- package/dataMap/metaManager/metaLayers/globalMeta.mjs +2 -2
- package/dataMap/metaManager/metaLayers/tableMeta.js +2 -2
- package/dataMap/metaManager/metaLayers/tableMeta.mjs +2 -2
- package/dataMap/metaManager/metaSchema.js +40 -25
- package/dataMap/metaManager/metaSchema.mjs +40 -25
- package/dataMap/metaManager/mods/dynamicCellMeta.js +2 -2
- package/dataMap/metaManager/mods/dynamicCellMeta.mjs +2 -2
- package/dataMap/metaManager/mods/extendMetaProperties.js +14 -2
- package/dataMap/metaManager/mods/extendMetaProperties.mjs +14 -2
- package/dist/handsontable.css +5 -5
- package/dist/handsontable.full.css +6 -6
- package/dist/handsontable.full.js +4835 -4508
- package/dist/handsontable.full.min.css +4 -4
- package/dist/handsontable.full.min.js +156 -154
- package/dist/handsontable.js +3441 -2825
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +18 -15
- package/editorManager.js +5 -6
- package/editorManager.mjs +5 -6
- package/editors/autocompleteEditor/autocompleteEditor.js +2 -4
- package/editors/autocompleteEditor/autocompleteEditor.mjs +2 -4
- package/editors/baseEditor/baseEditor.d.ts +1 -1
- package/editors/baseEditor/baseEditor.js +2 -2
- package/editors/baseEditor/baseEditor.mjs +2 -2
- package/editors/dateEditor/dateEditor.d.ts +1 -1
- package/editors/dateEditor/dateEditor.js +29 -33
- package/editors/dateEditor/dateEditor.mjs +29 -33
- package/editors/handsontableEditor/handsontableEditor.js +0 -1
- package/editors/handsontableEditor/handsontableEditor.mjs +0 -1
- package/editors/selectEditor/selectEditor.js +8 -2
- package/editors/selectEditor/selectEditor.mjs +8 -2
- package/editors/textEditor/textEditor.js +2 -6
- package/editors/textEditor/textEditor.mjs +2 -6
- package/eventManager.js +4 -3
- package/eventManager.mjs +4 -3
- package/helpers/browser.js +5 -2
- package/helpers/browser.mjs +5 -2
- package/helpers/feature.js +10 -0
- package/helpers/feature.mjs +9 -0
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/index.d.ts +12 -0
- package/package.json +13 -4
- package/pluginHooks.d.ts +10 -9
- package/pluginHooks.js +10 -8
- package/pluginHooks.mjs +7 -7
- package/plugins/autoColumnSize/autoColumnSize.d.ts +2 -2
- package/plugins/autoColumnSize/autoColumnSize.js +2 -2
- package/plugins/autoColumnSize/autoColumnSize.mjs +2 -2
- package/plugins/autoRowSize/autoRowSize.d.ts +3 -3
- package/plugins/autoRowSize/autoRowSize.js +2 -2
- package/plugins/autoRowSize/autoRowSize.mjs +2 -2
- package/plugins/autofill/autofill.js +2 -2
- package/plugins/autofill/autofill.mjs +2 -2
- package/plugins/base/base.js +2 -2
- package/plugins/base/base.mjs +2 -2
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.d.ts +1 -1
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +2 -2
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +2 -2
- package/plugins/collapsibleColumns/collapsibleColumns.js +2 -2
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +2 -2
- package/plugins/columnSorting/columnSorting.js +2 -2
- package/plugins/columnSorting/columnSorting.mjs +2 -2
- package/plugins/columnSorting/columnStatesManager.js +2 -2
- package/plugins/columnSorting/columnStatesManager.mjs +2 -2
- package/plugins/columnSummary/columnSummary.d.ts +11 -11
- package/plugins/columnSummary/columnSummary.js +20 -5
- package/plugins/columnSummary/columnSummary.mjs +20 -5
- package/plugins/columnSummary/endpoints.js +19 -5
- package/plugins/columnSummary/endpoints.mjs +19 -5
- package/plugins/comments/commentEditor.js +2 -2
- package/plugins/comments/commentEditor.mjs +2 -2
- package/plugins/comments/comments.js +2 -2
- package/plugins/comments/comments.mjs +2 -2
- package/plugins/comments/displaySwitch.js +2 -2
- package/plugins/comments/displaySwitch.mjs +2 -2
- package/plugins/contextMenu/commandExecutor.js +2 -2
- package/plugins/contextMenu/commandExecutor.mjs +2 -2
- package/plugins/contextMenu/contextMenu.js +2 -2
- package/plugins/contextMenu/contextMenu.mjs +2 -2
- package/plugins/contextMenu/itemsFactory.js +2 -2
- package/plugins/contextMenu/itemsFactory.mjs +2 -2
- package/plugins/contextMenu/menu/cursor.js +2 -2
- package/plugins/contextMenu/menu/cursor.mjs +2 -2
- package/plugins/contextMenu/menu/menu.js +2 -2
- package/plugins/contextMenu/menu/menu.mjs +2 -2
- package/plugins/copyPaste/copyPaste.js +40 -6
- package/plugins/copyPaste/copyPaste.mjs +40 -6
- package/plugins/customBorders/customBorders.d.ts +17 -8
- package/plugins/customBorders/customBorders.js +2 -7
- package/plugins/customBorders/customBorders.mjs +2 -7
- package/plugins/customBorders/utils.js +0 -1
- package/plugins/customBorders/utils.mjs +0 -1
- package/plugins/dragToScroll/dragToScroll.d.ts +8 -1
- package/plugins/dragToScroll/dragToScroll.js +18 -22
- package/plugins/dragToScroll/dragToScroll.mjs +18 -22
- package/plugins/dropdownMenu/dropdownMenu.js +2 -2
- package/plugins/dropdownMenu/dropdownMenu.mjs +2 -2
- package/plugins/exportFile/dataProvider.js +2 -2
- package/plugins/exportFile/dataProvider.mjs +2 -2
- package/plugins/exportFile/exportFile.d.ts +18 -3
- package/plugins/exportFile/types/_base.js +2 -2
- package/plugins/exportFile/types/_base.mjs +2 -2
- package/plugins/filters/component/_base.js +2 -2
- package/plugins/filters/component/_base.mjs +2 -2
- package/plugins/filters/component/actionBar.js +2 -2
- package/plugins/filters/component/actionBar.mjs +2 -2
- package/plugins/filters/component/condition.js +2 -2
- package/plugins/filters/component/condition.mjs +2 -2
- package/plugins/filters/component/operators.js +2 -2
- package/plugins/filters/component/operators.mjs +2 -2
- package/plugins/filters/component/value.js +2 -2
- package/plugins/filters/component/value.mjs +2 -2
- package/plugins/filters/conditionCollection.js +2 -2
- package/plugins/filters/conditionCollection.mjs +2 -2
- package/plugins/filters/conditionUpdateObserver.js +2 -2
- package/plugins/filters/conditionUpdateObserver.mjs +2 -2
- package/plugins/filters/dataFilter.js +2 -2
- package/plugins/filters/dataFilter.mjs +2 -2
- package/plugins/filters/filters.js +2 -2
- package/plugins/filters/filters.mjs +2 -2
- package/plugins/filters/ui/_base.js +2 -2
- package/plugins/filters/ui/_base.mjs +2 -2
- package/plugins/filters/ui/radioInput.js +1 -1
- package/plugins/filters/ui/radioInput.mjs +1 -1
- package/plugins/formulas/formulas.d.ts +1 -0
- package/plugins/formulas/formulas.js +2 -4
- package/plugins/formulas/formulas.mjs +2 -4
- package/plugins/formulas/indexSyncer/axisSyncer.js +0 -1
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +0 -1
- package/plugins/manualColumnMove/ui/_base.js +2 -2
- package/plugins/manualColumnMove/ui/_base.mjs +2 -2
- package/plugins/manualColumnResize/manualColumnResize.js +6 -2
- package/plugins/manualColumnResize/manualColumnResize.mjs +6 -2
- package/plugins/manualRowMove/ui/_base.js +2 -2
- package/plugins/manualRowMove/ui/_base.mjs +2 -2
- package/plugins/manualRowResize/manualRowResize.js +7 -3
- package/plugins/manualRowResize/manualRowResize.mjs +7 -3
- package/plugins/mergeCells/calculations/autofill.js +2 -2
- package/plugins/mergeCells/calculations/autofill.mjs +2 -2
- package/plugins/mergeCells/calculations/selection.js +2 -2
- package/plugins/mergeCells/calculations/selection.mjs +2 -2
- package/plugins/mergeCells/cellCoords.js +2 -2
- package/plugins/mergeCells/cellCoords.mjs +2 -2
- package/plugins/mergeCells/cellsCollection.js +2 -2
- package/plugins/mergeCells/cellsCollection.mjs +2 -2
- package/plugins/mergeCells/mergeCells.js +2 -4
- package/plugins/mergeCells/mergeCells.mjs +2 -4
- package/plugins/multiColumnSorting/multiColumnSorting.js +2 -2
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +2 -2
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.d.ts +8 -1
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +2 -2
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +2 -2
- package/plugins/nestedHeaders/nestedHeaders.js +2 -3
- package/plugins/nestedHeaders/nestedHeaders.mjs +2 -3
- package/plugins/nestedHeaders/stateManager/headersTree.js +0 -1
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +0 -1
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +1 -1
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +1 -1
- package/plugins/nestedHeaders/utils/ghostTable.js +2 -2
- package/plugins/nestedHeaders/utils/ghostTable.mjs +2 -2
- package/plugins/nestedRows/data/dataManager.js +2 -2
- package/plugins/nestedRows/data/dataManager.mjs +2 -2
- package/plugins/nestedRows/nestedRows.js +2 -2
- package/plugins/nestedRows/nestedRows.mjs +2 -2
- package/plugins/nestedRows/ui/_base.js +2 -2
- package/plugins/nestedRows/ui/_base.mjs +2 -2
- package/plugins/nestedRows/ui/contextMenu.js +2 -2
- package/plugins/nestedRows/ui/contextMenu.mjs +2 -2
- package/plugins/nestedRows/utils/rowMoveController.js +2 -2
- package/plugins/nestedRows/utils/rowMoveController.mjs +2 -2
- package/plugins/persistentState/persistentState.d.ts +5 -2
- package/plugins/persistentState/persistentState.js +2 -2
- package/plugins/persistentState/persistentState.mjs +2 -2
- package/plugins/persistentState/storage.js +2 -2
- package/plugins/persistentState/storage.mjs +2 -2
- package/plugins/search/search.js +2 -2
- package/plugins/search/search.mjs +2 -2
- package/plugins/touchScroll/touchScroll.js +2 -2
- package/plugins/touchScroll/touchScroll.mjs +2 -2
- package/plugins/trimRows/trimRows.js +2 -2
- package/plugins/trimRows/trimRows.mjs +2 -2
- package/plugins/undoRedo/undoRedo.d.ts +3 -0
- package/plugins/undoRedo/undoRedo.js +64 -7
- package/plugins/undoRedo/undoRedo.mjs +64 -7
- package/renderers/autocompleteRenderer/autocompleteRenderer.d.ts +1 -1
- package/renderers/autocompleteRenderer/autocompleteRenderer.js +0 -1
- package/renderers/autocompleteRenderer/autocompleteRenderer.mjs +0 -1
- package/renderers/baseRenderer/baseRenderer.d.ts +1 -1
- package/renderers/checkboxRenderer/checkboxRenderer.d.ts +1 -1
- package/renderers/checkboxRenderer/checkboxRenderer.js +0 -2
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +0 -2
- package/renderers/dateRenderer/dateRenderer.d.ts +1 -1
- package/renderers/dropdownRenderer/dropdownRenderer.d.ts +5 -0
- package/renderers/dropdownRenderer/dropdownRenderer.js +23 -0
- package/renderers/dropdownRenderer/dropdownRenderer.mjs +19 -0
- package/renderers/dropdownRenderer/index.d.ts +1 -0
- package/renderers/dropdownRenderer/index.js +6 -0
- package/renderers/dropdownRenderer/index.mjs +1 -0
- package/renderers/handsontableRenderer/handsontableRenderer.d.ts +1 -1
- package/renderers/htmlRenderer/htmlRenderer.d.ts +1 -1
- package/renderers/index.d.ts +3 -0
- package/renderers/index.js +12 -0
- package/renderers/index.mjs +7 -1
- package/renderers/numericRenderer/numericRenderer.d.ts +1 -1
- package/renderers/passwordRenderer/passwordRenderer.d.ts +1 -1
- package/renderers/selectRenderer/selectRenderer.d.ts +1 -1
- package/renderers/textRenderer/textRenderer.d.ts +1 -1
- package/renderers/timeRenderer/timeRenderer.d.ts +1 -1
- package/selection/highlight/highlight.js +2 -3
- package/selection/highlight/highlight.mjs +2 -3
- package/selection/highlight/visualSelection.js +2 -2
- package/selection/highlight/visualSelection.mjs +2 -2
- package/selection/range.js +2 -2
- package/selection/range.mjs +2 -2
- package/selection/selection.js +2 -2
- package/selection/selection.mjs +2 -2
- package/settings.d.ts +27 -14
- package/tableView.js +4 -5
- package/tableView.mjs +4 -5
- package/translations/indexMapper.d.ts +1 -1
- package/translations/indexMapper.js +4 -3
- package/translations/indexMapper.mjs +2 -2
- package/translations/mapCollections/aggregatedCollection.js +2 -2
- package/translations/mapCollections/aggregatedCollection.mjs +2 -2
- package/translations/mapCollections/mapCollection.js +2 -2
- package/translations/mapCollections/mapCollection.mjs +2 -2
- package/translations/maps/indexMap.js +2 -2
- package/translations/maps/indexMap.mjs +2 -2
- package/translations/maps/linkedPhysicalIndexToValueMap.js +2 -2
- package/translations/maps/linkedPhysicalIndexToValueMap.mjs +2 -2
- package/utils/dataStructures/linkedList.js +2 -2
- package/utils/dataStructures/linkedList.mjs +2 -2
- package/utils/dataStructures/tree.js +2 -2
- package/utils/dataStructures/tree.mjs +2 -2
- package/utils/ghostTable.js +2 -2
- package/utils/ghostTable.mjs +2 -2
- package/utils/interval.js +2 -2
- package/utils/interval.mjs +2 -2
- package/utils/samplesGenerator.js +2 -2
- package/utils/samplesGenerator.mjs +2 -2
- package/validators/dropdownValidator/dropdownValidator.d.ts +5 -0
- package/validators/dropdownValidator/dropdownValidator.js +18 -0
- package/validators/dropdownValidator/dropdownValidator.mjs +14 -0
- package/validators/dropdownValidator/index.d.ts +1 -0
- package/validators/dropdownValidator/index.js +6 -0
- package/validators/dropdownValidator/index.mjs +1 -0
- package/validators/index.d.ts +2 -0
- package/validators/index.js +4 -0
- package/validators/index.mjs +3 -1
- package/validators/timeValidator/timeValidator.js +0 -1
- package/validators/timeValidator/timeValidator.mjs +0 -1
package/eventManager.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import "core-js/modules/es.array.push.js";
|
2
2
|
import "core-js/modules/es.error.cause.js";
|
3
3
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
4
|
-
function _toPropertyKey(
|
5
|
-
function _toPrimitive(
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
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 { stopImmediatePropagation as _stopImmediatePropagation } from "./helpers/dom/event.mjs";
|
7
7
|
/**
|
8
8
|
* Counter which tracks unregistered listeners (useful for detecting memory leaks).
|
@@ -15,7 +15,6 @@ let listenersCounter = 0;
|
|
15
15
|
* Event DOM manager for internal use in Handsontable.
|
16
16
|
*
|
17
17
|
* @class EventManager
|
18
|
-
* @util
|
19
18
|
*/
|
20
19
|
class EventManager {
|
21
20
|
/**
|
@@ -48,6 +47,7 @@ class EventManager {
|
|
48
47
|
addEventListener(element, eventName, callback) {
|
49
48
|
let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
50
49
|
/**
|
50
|
+
* @private
|
51
51
|
* @param {Event} event The event object.
|
52
52
|
*/
|
53
53
|
function callbackProxy(event) {
|
@@ -208,6 +208,7 @@ function extendEvent(event) {
|
|
208
208
|
export default EventManager;
|
209
209
|
|
210
210
|
/**
|
211
|
+
* @private
|
211
212
|
* @returns {number}
|
212
213
|
*/
|
213
214
|
export function getListenersCounter() {
|
package/helpers/browser.js
CHANGED
@@ -17,6 +17,7 @@ exports.isWindowsOS = isWindowsOS;
|
|
17
17
|
exports.setBrowserMeta = setBrowserMeta;
|
18
18
|
exports.setPlatformMeta = setPlatformMeta;
|
19
19
|
var _object = require("./object");
|
20
|
+
var _feature = require("./feature");
|
20
21
|
const tester = testerFunc => {
|
21
22
|
const result = {
|
22
23
|
value: false
|
@@ -76,8 +77,10 @@ function setPlatformMeta() {
|
|
76
77
|
return void test(platform);
|
77
78
|
});
|
78
79
|
}
|
79
|
-
|
80
|
-
|
80
|
+
if ((0, _feature.isCSR)()) {
|
81
|
+
setBrowserMeta();
|
82
|
+
setPlatformMeta();
|
83
|
+
}
|
81
84
|
|
82
85
|
/**
|
83
86
|
* @returns {boolean}
|
package/helpers/browser.mjs
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { objectEach } from "./object.mjs";
|
2
|
+
import { isCSR } from "./feature.mjs";
|
2
3
|
const tester = testerFunc => {
|
3
4
|
const result = {
|
4
5
|
value: false
|
@@ -58,8 +59,10 @@ export function setPlatformMeta() {
|
|
58
59
|
return void test(platform);
|
59
60
|
});
|
60
61
|
}
|
61
|
-
|
62
|
-
|
62
|
+
if (isCSR()) {
|
63
|
+
setBrowserMeta();
|
64
|
+
setPlatformMeta();
|
65
|
+
}
|
63
66
|
|
64
67
|
/**
|
65
68
|
* @returns {boolean}
|
package/helpers/feature.js
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.cancelAnimationFrame = cancelAnimationFrame;
|
5
5
|
exports.getComparisonFunction = getComparisonFunction;
|
6
|
+
exports.isCSR = isCSR;
|
6
7
|
exports.isTouchSupported = isTouchSupported;
|
7
8
|
exports.requestAnimationFrame = requestAnimationFrame;
|
8
9
|
/* eslint-disable no-restricted-globals */
|
@@ -31,6 +32,15 @@ function cancelAnimationFrame(id) {
|
|
31
32
|
function isTouchSupported() {
|
32
33
|
return 'ontouchstart' in window;
|
33
34
|
}
|
35
|
+
|
36
|
+
/**
|
37
|
+
* Checks if the environment that the code runs in is a browser.
|
38
|
+
*
|
39
|
+
* @returns {boolean}
|
40
|
+
*/
|
41
|
+
function isCSR() {
|
42
|
+
return typeof window !== 'undefined';
|
43
|
+
}
|
34
44
|
let comparisonFunction;
|
35
45
|
|
36
46
|
/**
|
package/helpers/feature.mjs
CHANGED
@@ -24,6 +24,15 @@ export function cancelAnimationFrame(id) {
|
|
24
24
|
export function isTouchSupported() {
|
25
25
|
return 'ontouchstart' in window;
|
26
26
|
}
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Checks if the environment that the code runs in is a browser.
|
30
|
+
*
|
31
|
+
* @returns {boolean}
|
32
|
+
*/
|
33
|
+
export function isCSR() {
|
34
|
+
return typeof window !== 'undefined';
|
35
|
+
}
|
27
36
|
let comparisonFunction;
|
28
37
|
|
29
38
|
/**
|
package/helpers/mixed.js
CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
|
|
134
134
|
function _injectProductInfo(key, element) {
|
135
135
|
const hasValidType = !isEmpty(key);
|
136
136
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
137
|
-
const hotVersion = "14.
|
137
|
+
const hotVersion = "14.1.0-next-514dcd3-20240109";
|
138
138
|
let keyValidityDate;
|
139
139
|
let consoleMessageState = 'invalid';
|
140
140
|
let domMessageState = 'invalid';
|
@@ -142,7 +142,7 @@ function _injectProductInfo(key, element) {
|
|
142
142
|
const schemaValidity = _checkKeySchema(key);
|
143
143
|
if (hasValidType || isNonCommercial || schemaValidity) {
|
144
144
|
if (schemaValidity) {
|
145
|
-
const releaseDate = (0, _moment.default)("
|
145
|
+
const releaseDate = (0, _moment.default)("16/01/2024", 'DD/MM/YYYY');
|
146
146
|
const releaseDays = Math.floor(releaseDate.toDate().getTime() / 8.64e7);
|
147
147
|
const keyValidityDays = _extractTime(key);
|
148
148
|
keyValidityDate = (0, _moment.default)((keyValidityDays + 1) * 8.64e7, 'x').format('MMMM DD, YYYY');
|
package/helpers/mixed.mjs
CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
|
|
124
124
|
export function _injectProductInfo(key, element) {
|
125
125
|
const hasValidType = !isEmpty(key);
|
126
126
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
127
|
-
const hotVersion = "14.
|
127
|
+
const hotVersion = "14.1.0-next-514dcd3-20240109";
|
128
128
|
let keyValidityDate;
|
129
129
|
let consoleMessageState = 'invalid';
|
130
130
|
let domMessageState = 'invalid';
|
@@ -132,7 +132,7 @@ export function _injectProductInfo(key, element) {
|
|
132
132
|
const schemaValidity = _checkKeySchema(key);
|
133
133
|
if (hasValidType || isNonCommercial || schemaValidity) {
|
134
134
|
if (schemaValidity) {
|
135
|
-
const releaseDate = moment("
|
135
|
+
const releaseDate = moment("16/01/2024", 'DD/MM/YYYY');
|
136
136
|
const releaseDays = Math.floor(releaseDate.toDate().getTime() / 8.64e7);
|
137
137
|
const keyValidityDays = _extractTime(key);
|
138
138
|
keyValidityDate = moment((keyValidityDays + 1) * 8.64e7, 'x').format('MMMM DD, YYYY');
|
package/index.d.ts
CHANGED
@@ -24,6 +24,7 @@ import {
|
|
24
24
|
HandsontableCellType,
|
25
25
|
NumericCellType,
|
26
26
|
PasswordCellType,
|
27
|
+
SelectCellType,
|
27
28
|
TextCellType,
|
28
29
|
TimeCellType,
|
29
30
|
getCellType,
|
@@ -48,11 +49,15 @@ import {
|
|
48
49
|
import {
|
49
50
|
RendererType,
|
50
51
|
autocompleteRenderer,
|
52
|
+
dropdownRenderer,
|
53
|
+
dateRenderer,
|
51
54
|
baseRenderer,
|
52
55
|
checkboxRenderer,
|
53
56
|
htmlRenderer,
|
57
|
+
handsontableRenderer,
|
54
58
|
numericRenderer,
|
55
59
|
passwordRenderer,
|
60
|
+
selectRenderer,
|
56
61
|
textRenderer,
|
57
62
|
timeRenderer,
|
58
63
|
getRenderer,
|
@@ -61,6 +66,7 @@ import {
|
|
61
66
|
import {
|
62
67
|
ValidatorType,
|
63
68
|
autocompleteValidator,
|
69
|
+
dropdownValidator,
|
64
70
|
dateValidator,
|
65
71
|
numericValidator,
|
66
72
|
timeValidator ,
|
@@ -292,6 +298,7 @@ declare namespace Handsontable {
|
|
292
298
|
export { NumericCellType as numeric };
|
293
299
|
export { PasswordCellType as password };
|
294
300
|
export { TextCellType as text };
|
301
|
+
export { SelectCellType as select };
|
295
302
|
export { TimeCellType as time };
|
296
303
|
export { registerCellType };
|
297
304
|
export { getCellType };
|
@@ -315,13 +322,17 @@ declare namespace Handsontable {
|
|
315
322
|
|
316
323
|
export namespace renderers {
|
317
324
|
export { autocompleteRenderer as AutocompleteRenderer };
|
325
|
+
export { dropdownRenderer as DropdownRenderer };
|
318
326
|
export { baseRenderer as cellDecorator };
|
319
327
|
export { baseRenderer as BaseRenderer };
|
320
328
|
export { checkboxRenderer as CheckboxRenderer };
|
321
329
|
export { htmlRenderer as HtmlRenderer };
|
330
|
+
export { handsontableRenderer as HandsontableRenderer };
|
322
331
|
export { numericRenderer as NumericRenderer };
|
323
332
|
export { passwordRenderer as PasswordRenderer };
|
324
333
|
export { textRenderer as TextRenderer };
|
334
|
+
export { dateRenderer as DateRenderer };
|
335
|
+
export { selectRenderer as SelectRenderer };
|
325
336
|
export { timeRenderer as TimeRenderer };
|
326
337
|
export { registerRenderer };
|
327
338
|
export { getRenderer };
|
@@ -329,6 +340,7 @@ declare namespace Handsontable {
|
|
329
340
|
|
330
341
|
export namespace validators {
|
331
342
|
export { autocompleteValidator as AutocompleteValidator };
|
343
|
+
export { dropdownValidator as DropdownValidator };
|
332
344
|
export { dateValidator as DateValidator };
|
333
345
|
export { numericValidator as NumericValidator };
|
334
346
|
export { timeValidator as TimeValidator };
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"url": "https://github.com/handsontable/handsontable/issues"
|
11
11
|
},
|
12
12
|
"author": "Handsoncode <hello@handsontable.com>",
|
13
|
-
"version": "14.
|
13
|
+
"version": "14.1.0-next-514dcd3-20240109",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
@@ -32,12 +32,11 @@
|
|
32
32
|
"data-spreadsheet"
|
33
33
|
],
|
34
34
|
"dependencies": {
|
35
|
-
"@
|
35
|
+
"@handsontable/pikaday": "^1.0.0",
|
36
36
|
"core-js": "^3.31.1",
|
37
37
|
"dompurify": "^2.1.1",
|
38
38
|
"moment": "2.29.4",
|
39
|
-
"numbro": "2.1.2"
|
40
|
-
"pikaday": "1.8.2"
|
39
|
+
"numbro": "2.1.2"
|
41
40
|
},
|
42
41
|
"devDependencies": {
|
43
42
|
"@babel/cli": "^7.8.3",
|
@@ -516,6 +515,11 @@
|
|
516
515
|
"require": "./renderers/dateRenderer/index.js",
|
517
516
|
"import": "./renderers/dateRenderer/index.mjs"
|
518
517
|
},
|
518
|
+
"./renderers/dropdownRenderer": {
|
519
|
+
"types": "./renderers/dropdownRenderer/index.d.ts",
|
520
|
+
"require": "./renderers/dropdownRenderer/index.js",
|
521
|
+
"import": "./renderers/dropdownRenderer/index.mjs"
|
522
|
+
},
|
519
523
|
"./renderers/handsontableRenderer": {
|
520
524
|
"types": "./renderers/handsontableRenderer/index.d.ts",
|
521
525
|
"require": "./renderers/handsontableRenderer/index.js",
|
@@ -571,6 +575,11 @@
|
|
571
575
|
"require": "./validators/dateValidator/index.js",
|
572
576
|
"import": "./validators/dateValidator/index.mjs"
|
573
577
|
},
|
578
|
+
"./validators/dropdownValidator": {
|
579
|
+
"types": "./validators/dropdownValidator/index.d.ts",
|
580
|
+
"require": "./validators/dropdownValidator/index.js",
|
581
|
+
"import": "./validators/dropdownValidator/index.mjs"
|
582
|
+
},
|
574
583
|
"./validators/numericValidator": {
|
575
584
|
"types": "./validators/numericValidator/index.d.ts",
|
576
585
|
"require": "./validators/numericValidator/index.js",
|
package/pluginHooks.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ExportedChange } from 'hyperformula';
|
1
2
|
import CellCoords from './3rdparty/walkontable/src/cell/coords';
|
2
3
|
import CellRange from './3rdparty/walkontable/src/cell/range';
|
3
4
|
import { ViewportColumnsCalculator } from './3rdparty/walkontable/src/calculator/viewportColumns';
|
@@ -86,10 +87,10 @@ export interface Events {
|
|
86
87
|
afterDropdownMenuHide?: (instance: DropdownMenu) => void;
|
87
88
|
afterDropdownMenuShow?: (instance: DropdownMenu) => void;
|
88
89
|
afterFilter?: (conditionsStack: FiltersColumnConditions[]) => void;
|
89
|
-
afterFormulasValuesUpdate?: (changes:
|
90
|
+
afterFormulasValuesUpdate?: (changes: ExportedChange[]) => void;
|
90
91
|
afterGetCellMeta?: (row: number, column: number, cellProperties: CellProperties) => void;
|
91
92
|
afterGetColHeader?: (column: number, TH: HTMLTableHeaderCellElement, headerLevel: number) => void;
|
92
|
-
afterGetColumnHeaderRenderers?: (renderers: Array<(
|
93
|
+
afterGetColumnHeaderRenderers?: (renderers: Array<(column: number, TH: HTMLTableHeaderCellElement) => void>) => void;
|
93
94
|
afterGetRowHeader?: (row: number, TH: HTMLTableHeaderCellElement) => void;
|
94
95
|
afterGetRowHeaderRenderers?: (renderers: Array<(row: number, TH: HTMLTableHeaderCellElement) => void>) => void;
|
95
96
|
afterHideColumns?: (currentHideConfig: number[], destinationHideConfig: number[], actionPossible: boolean, stateChanged: boolean) => void;
|
@@ -102,8 +103,8 @@ export interface Events {
|
|
102
103
|
afterModifyTransformEnd?: (coords: CellCoords, rowTransformDir: -1 | 0, colTransformDir: -1 | 0) => void;
|
103
104
|
afterModifyTransformStart?: (coords: CellCoords, rowTransformDir: -1 | 0, colTransformDir: -1 | 0) => void;
|
104
105
|
afterMomentumScroll?: () => void;
|
105
|
-
afterNamedExpressionAdded?: (namedExpressionName: string, changes:
|
106
|
-
afterNamedExpressionRemoved?: (namedExpressionName: string, changes:
|
106
|
+
afterNamedExpressionAdded?: (namedExpressionName: string, changes: ExportedChange[]) => void;
|
107
|
+
afterNamedExpressionRemoved?: (namedExpressionName: string, changes: ExportedChange[]) => void;
|
107
108
|
afterOnCellContextMenu?: (event: MouseEvent, coords: CellCoords, TD: HTMLTableCellElement) => void;
|
108
109
|
afterOnCellCornerDblClick?: (event: MouseEvent) => void;
|
109
110
|
afterOnCellCornerMouseDown?: (event: MouseEvent) => void;
|
@@ -115,7 +116,7 @@ export interface Events {
|
|
115
116
|
afterPluginsInitialized?: () => void;
|
116
117
|
afterRedo?: (action: UndoRedoAction) => void;
|
117
118
|
afterRedoStackChange?: (undoneActionsBefore: UndoRedoAction[], undoneActionsAfter: UndoRedoAction[]) => void;
|
118
|
-
afterRefreshDimensions?: (previousDimensions:
|
119
|
+
afterRefreshDimensions?: (previousDimensions: { width: number, height: number }, currentDimensions: { width: number, height: number }, stateChanged: boolean) => void;
|
119
120
|
afterRemoveCellMeta?: (row: number, column: number, key: string, value: any) => void;
|
120
121
|
afterRemoveCol?: (index: number, amount: number, physicalColumns: number[], source?: ChangeSource) => void;
|
121
122
|
afterRemoveRow?: (index: number, amount: number, physicalRows: number[], source?: ChangeSource) => void;
|
@@ -138,7 +139,7 @@ export interface Events {
|
|
138
139
|
afterSetDataAtRowProp?: (changes: CellChange[], source?: ChangeSource) => void;
|
139
140
|
afterSetSourceDataAtCell?: (changes: CellChange[], source?: ChangeSource) => void;
|
140
141
|
afterSheetAdded?: (addedSheetDisplayName: string) => void;
|
141
|
-
afterSheetRemoved?: (removedSheetDisplayName: string, changes:
|
142
|
+
afterSheetRemoved?: (removedSheetDisplayName: string, changes: ExportedChange[]) => void;
|
142
143
|
afterSheetRenamed?: (oldDisplayName: string, newDisplayName: string) => void;
|
143
144
|
afterTrimRow?: (currentTrimConfig: number[], destinationTrimConfig: number[], actionPossible: boolean, stateChanged: boolean) => void;
|
144
145
|
afterUndo?: (action: UndoRedoAction) => void;
|
@@ -179,7 +180,7 @@ export interface Events {
|
|
179
180
|
beforeDropdownMenuSetItems?: (menuItems: ContextMenuMenuItemConfig[]) => void;
|
180
181
|
beforeDropdownMenuShow?: (instance: DropdownMenu) => void;
|
181
182
|
beforeFilter?: (conditionsStack: FiltersColumnConditions[]) => void | boolean;
|
182
|
-
beforeGetCellMeta?: (row: number,
|
183
|
+
beforeGetCellMeta?: (row: number, column: number, cellProperties: CellProperties) => void;
|
183
184
|
beforeHideColumns?: (currentHideConfig: number[], destinationHideConfig: number[], actionPossible: boolean) => void | boolean;
|
184
185
|
beforeHideRows?: (currentHideConfig: number[], destinationHideConfig: number[], actionPossible: boolean) => void | boolean;
|
185
186
|
beforeHighlightingColumnHeader?: (column: number, headerLevel: number, highlightMeta: HookHighlightColumnHeaderMeta) => number | void;
|
@@ -198,7 +199,7 @@ export interface Events {
|
|
198
199
|
beforePaste?: (data: CellValue[][], coords: RangeType[]) => void | boolean;
|
199
200
|
beforeRedo?: (action: UndoRedoAction) => void;
|
200
201
|
beforeRedoStackChange?: (undoneActions: UndoRedoAction[]) => void;
|
201
|
-
beforeRefreshDimensions?: (previousDimensions:
|
202
|
+
beforeRefreshDimensions?: (previousDimensions: { width: number, height: number }, currentDimensions: { width: number, height: number }, actionPossible: boolean) => boolean | void;
|
202
203
|
beforeRemoveCellClassNames?: () => string[] | void;
|
203
204
|
beforeRemoveCellMeta?: (row: number, column: number, key: string, value: any) => void;
|
204
205
|
beforeRemoveCol?: (index: number, amount: number, physicalColumns: number[], source?: ChangeSource) => void;
|
@@ -211,7 +212,7 @@ export interface Events {
|
|
211
212
|
beforeSelectColumns?: (from: CellCoords, to: CellCoords, highlight: CellCoords) => void;
|
212
213
|
beforeSelectionHighlightSet?: () => void;
|
213
214
|
beforeSelectRows?: (from: CellCoords, to: CellCoords, highlight: CellCoords) => void;
|
214
|
-
beforeSetCellMeta?: (row: number,
|
215
|
+
beforeSetCellMeta?: (row: number, column: number, key: string, value: any) => boolean | void;
|
215
216
|
beforeSetRangeEnd?: (coords: CellCoords) => void;
|
216
217
|
beforeSetRangeStart?: (coords: CellCoords) => void;
|
217
218
|
beforeSetRangeStartOnly?: (coords: CellCoords) => void;
|
package/pluginHooks.js
CHANGED
@@ -10,8 +10,8 @@ var _console = require("./helpers/console");
|
|
10
10
|
var _templateLiteralTag = require("./helpers/templateLiteralTag");
|
11
11
|
var _function = require("./helpers/function");
|
12
12
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
13
|
-
function _toPropertyKey(
|
14
|
-
function _toPrimitive(
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
14
|
+
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); }
|
15
15
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
16
16
|
/**
|
17
17
|
* @description
|
@@ -122,7 +122,9 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
|
|
122
122
|
* });
|
123
123
|
* :::
|
124
124
|
* ...
|
125
|
-
*/
|
125
|
+
*/
|
126
|
+
|
127
|
+
// @TODO: Move plugin description hooks to plugin?
|
126
128
|
const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sentence */
|
127
129
|
/**
|
128
130
|
* Fired after resetting a cell's meta. This happens when the {@link Core#updateSettings} method is called.
|
@@ -412,7 +414,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
412
414
|
*/
|
413
415
|
'afterUpdateData',
|
414
416
|
/**
|
415
|
-
* Fired after a scroll event, which is identified as a momentum scroll
|
417
|
+
* Fired after a scroll event, which is identified as a momentum scroll.
|
416
418
|
*
|
417
419
|
* @event Hooks#afterMomentumScroll
|
418
420
|
*/
|
@@ -2459,8 +2461,8 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2459
2461
|
* Fired after the window was resized or the size of the Handsontable root element was changed.
|
2460
2462
|
*
|
2461
2463
|
* @event Hooks#afterRefreshDimensions
|
2462
|
-
* @param {
|
2463
|
-
* @param {
|
2464
|
+
* @param {{ width: number, height: number }} previousDimensions Previous dimensions of the container.
|
2465
|
+
* @param {{ width: number, height: number }} currentDimensions Current dimensions of the container.
|
2464
2466
|
* @param {boolean} stateChanged `true`, if the container was re-render, `false` otherwise.
|
2465
2467
|
*/
|
2466
2468
|
'afterRefreshDimensions',
|
@@ -2469,8 +2471,8 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2469
2471
|
* Handsontable root element, but before redrawing a table.
|
2470
2472
|
*
|
2471
2473
|
* @event Hooks#beforeRefreshDimensions
|
2472
|
-
* @param {
|
2473
|
-
* @param {
|
2474
|
+
* @param {{ width: number, height: number }} previousDimensions Previous dimensions of the container.
|
2475
|
+
* @param {{ width: number, height: number }} currentDimensions Current dimensions of the container.
|
2474
2476
|
* @param {boolean} actionPossible `true`, if current and previous dimensions are different, `false` otherwise.
|
2475
2477
|
* @returns {undefined|boolean} If the callback returns `false`, the refresh action will not be completed.
|
2476
2478
|
*/
|
package/pluginHooks.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import "core-js/modules/es.array.push.js";
|
2
2
|
import "core-js/modules/es.error.cause.js";
|
3
3
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
4
|
-
function _toPropertyKey(
|
5
|
-
function _toPrimitive(
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
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 { arrayEach } from "./helpers/array.mjs";
|
7
7
|
import { objectEach } from "./helpers/object.mjs";
|
8
8
|
import { substitute } from "./helpers/string.mjs";
|
@@ -410,7 +410,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
410
410
|
*/
|
411
411
|
'afterUpdateData',
|
412
412
|
/**
|
413
|
-
* Fired after a scroll event, which is identified as a momentum scroll
|
413
|
+
* Fired after a scroll event, which is identified as a momentum scroll.
|
414
414
|
*
|
415
415
|
* @event Hooks#afterMomentumScroll
|
416
416
|
*/
|
@@ -2457,8 +2457,8 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2457
2457
|
* Fired after the window was resized or the size of the Handsontable root element was changed.
|
2458
2458
|
*
|
2459
2459
|
* @event Hooks#afterRefreshDimensions
|
2460
|
-
* @param {
|
2461
|
-
* @param {
|
2460
|
+
* @param {{ width: number, height: number }} previousDimensions Previous dimensions of the container.
|
2461
|
+
* @param {{ width: number, height: number }} currentDimensions Current dimensions of the container.
|
2462
2462
|
* @param {boolean} stateChanged `true`, if the container was re-render, `false` otherwise.
|
2463
2463
|
*/
|
2464
2464
|
'afterRefreshDimensions',
|
@@ -2467,8 +2467,8 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2467
2467
|
* Handsontable root element, but before redrawing a table.
|
2468
2468
|
*
|
2469
2469
|
* @event Hooks#beforeRefreshDimensions
|
2470
|
-
* @param {
|
2471
|
-
* @param {
|
2470
|
+
* @param {{ width: number, height: number }} previousDimensions Previous dimensions of the container.
|
2471
|
+
* @param {{ width: number, height: number }} currentDimensions Current dimensions of the container.
|
2472
2472
|
* @param {boolean} actionPossible `true`, if current and previous dimensions are different, `false` otherwise.
|
2473
2473
|
* @returns {undefined|boolean} If the callback returns `false`, the refresh action will not be completed.
|
2474
2474
|
*/
|
@@ -17,8 +17,8 @@ export class AutoColumnSize extends BasePlugin {
|
|
17
17
|
|
18
18
|
isEnabled(): boolean;
|
19
19
|
calculateVisibleColumnsWidth(): void;
|
20
|
-
calculateColumnsWidth(colRange?: number |
|
21
|
-
calculateAllColumnsWidth(rowRange?: number |
|
20
|
+
calculateColumnsWidth(colRange?: number | { from: number, to: number }, rowRange?: number | { from: number, to: number }, force?: boolean): void;
|
21
|
+
calculateAllColumnsWidth(rowRange?: number | { from: number, to: number }): void;
|
22
22
|
recalculateAllColumnsWidth(): void;
|
23
23
|
getSyncCalculationLimit(): number;
|
24
24
|
getColumnWidth(column: number, defaultWidth?: number, keepMinimum?: boolean): number;
|
@@ -20,8 +20,8 @@ function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclarati
|
|
20
20
|
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
21
21
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
22
22
|
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; }
|
23
|
-
function _toPropertyKey(
|
24
|
-
function _toPrimitive(
|
23
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
24
|
+
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); }
|
25
25
|
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
26
26
|
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; } }
|
27
27
|
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
@@ -4,8 +4,8 @@ function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclarati
|
|
4
4
|
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
5
5
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
6
6
|
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; }
|
7
|
-
function _toPropertyKey(
|
8
|
-
function _toPrimitive(
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
8
|
+
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); }
|
9
9
|
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
10
10
|
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; } }
|
11
11
|
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
@@ -15,8 +15,8 @@ export class AutoRowSize extends BasePlugin {
|
|
15
15
|
measuredRows: number;
|
16
16
|
|
17
17
|
isEnabled(): boolean;
|
18
|
-
calculateRowsHeight(rowRange?: number |
|
19
|
-
calculateAllRowsHeight(colRange?: number |
|
18
|
+
calculateRowsHeight(rowRange?: number | { from: number, to: number }, colRange?: number | { from: number, to: number }, force?: boolean): void;
|
19
|
+
calculateAllRowsHeight(colRange?: number | { from: number, to: number }): void;
|
20
20
|
recalculateAllRowsHeight(): void;
|
21
21
|
getSyncCalculationLimit(): number;
|
22
22
|
getRowHeight(row: number, defaultHeight?: number): number;
|
@@ -24,6 +24,6 @@ export class AutoRowSize extends BasePlugin {
|
|
24
24
|
getFirstVisibleRow(): number;
|
25
25
|
getLastVisibleRow(): number;
|
26
26
|
clearCache(): void;
|
27
|
-
clearCacheByRange(range: number |
|
27
|
+
clearCacheByRange(range: number | { from: number, to: number }): void;
|
28
28
|
isNeedRecalculate(): boolean;
|
29
29
|
}
|
@@ -16,8 +16,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
16
16
|
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
17
17
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
18
18
|
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; }
|
19
|
-
function _toPropertyKey(
|
20
|
-
function _toPrimitive(
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
20
|
+
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); }
|
21
21
|
function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
|
22
22
|
const PLUGIN_KEY = exports.PLUGIN_KEY = 'autoRowSize';
|
23
23
|
const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 40;
|
@@ -2,8 +2,8 @@ import "core-js/modules/es.error.cause.js";
|
|
2
2
|
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
3
3
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
4
4
|
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; }
|
5
|
-
function _toPropertyKey(
|
6
|
-
function _toPrimitive(
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
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 _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
|
8
8
|
import { BasePlugin } from "../base/index.mjs";
|
9
9
|
import { arrayEach, arrayFilter } from "../../helpers/array.mjs";
|
@@ -12,8 +12,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
12
12
|
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
13
13
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
14
14
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
15
|
-
function _toPropertyKey(
|
16
|
-
function _toPrimitive(
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
16
|
+
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); }
|
17
17
|
function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
|
18
18
|
_pluginHooks.default.getSingleton().register('modifyAutofillRange');
|
19
19
|
_pluginHooks.default.getSingleton().register('beforeAutofill');
|
@@ -3,8 +3,8 @@ import "core-js/modules/es.error.cause.js";
|
|
3
3
|
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
4
4
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
5
5
|
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; }
|
6
|
-
function _toPropertyKey(
|
7
|
-
function _toPrimitive(
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
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
|
function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
|
9
9
|
import { BasePlugin } from "../base/index.mjs";
|
10
10
|
import Hooks from "../../pluginHooks.mjs";
|
package/plugins/base/base.js
CHANGED
@@ -16,8 +16,8 @@ function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclarati
|
|
16
16
|
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
17
17
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
18
18
|
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; }
|
19
|
-
function _toPropertyKey(
|
20
|
-
function _toPrimitive(
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
20
|
+
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); }
|
21
21
|
function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
|
22
22
|
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
23
23
|
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
package/plugins/base/base.mjs
CHANGED
@@ -4,8 +4,8 @@ function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclarati
|
|
4
4
|
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
5
5
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
6
6
|
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; }
|
7
|
-
function _toPropertyKey(
|
8
|
-
function _toPrimitive(
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
8
|
+
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); }
|
9
9
|
function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
|
10
10
|
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
11
11
|
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|