handsontable 0.0.0-next-bfb0e3a-20240403 → 0.0.0-next-5a535ed-20240403
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.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/3rdparty/walkontable/src/calculator/viewportColumns.js +17 -12
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +17 -12
- package/3rdparty/walkontable/src/calculator/viewportRows.js +15 -10
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +15 -10
- package/3rdparty/walkontable/src/cell/coords.js +17 -12
- package/3rdparty/walkontable/src/cell/coords.mjs +17 -12
- package/3rdparty/walkontable/src/cell/range.d.ts +1 -2
- package/3rdparty/walkontable/src/cell/range.js +28 -40
- package/3rdparty/walkontable/src/cell/range.mjs +28 -40
- package/3rdparty/walkontable/src/core/_base.js +1 -1
- package/3rdparty/walkontable/src/core/_base.mjs +1 -1
- package/3rdparty/walkontable/src/event.js +104 -72
- package/3rdparty/walkontable/src/event.mjs +104 -72
- package/3rdparty/walkontable/src/overlays.js +1 -1
- package/3rdparty/walkontable/src/overlays.mjs +1 -1
- package/3rdparty/walkontable/src/scroll.js +17 -15
- package/3rdparty/walkontable/src/scroll.mjs +17 -15
- package/3rdparty/walkontable/src/selection/manager.js +69 -48
- package/3rdparty/walkontable/src/selection/manager.mjs +69 -48
- package/3rdparty/walkontable/src/selection/scanner.js +42 -33
- package/3rdparty/walkontable/src/selection/scanner.mjs +42 -33
- package/3rdparty/walkontable/src/utils/columnStretching.js +44 -27
- package/3rdparty/walkontable/src/utils/columnStretching.mjs +44 -27
- package/3rdparty/walkontable/src/utils/orderView/view.js +1 -1
- package/3rdparty/walkontable/src/utils/orderView/view.mjs +1 -1
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core/viewportScroll/index.js +1 -4
- package/core/viewportScroll/index.mjs +1 -4
- package/core.d.ts +3 -4
- package/core.js +22 -77
- package/core.mjs +22 -77
- package/dataMap/dataSource.js +1 -1
- package/dataMap/dataSource.mjs +1 -1
- package/dataMap/metaManager/metaLayers/cellMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -1
- package/dataMap/metaManager/metaSchema.js +1 -1
- package/dataMap/metaManager/metaSchema.mjs +1 -1
- package/dataMap/replaceData.js +1 -1
- package/dataMap/replaceData.mjs +1 -1
- package/dist/handsontable.css +4 -4
- package/dist/handsontable.full.css +4 -4
- package/dist/handsontable.full.js +9117 -8969
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +292 -292
- package/dist/handsontable.js +6569 -6874
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +25 -25
- package/dist/languages/all.min.js +1 -1
- package/dist/languages/ar-AR.min.js +1 -1
- package/dist/languages/cs-CZ.min.js +1 -1
- package/dist/languages/de-CH.min.js +1 -1
- package/dist/languages/de-DE.min.js +1 -1
- package/dist/languages/en-US.min.js +1 -1
- package/dist/languages/es-MX.min.js +1 -1
- package/dist/languages/fr-FR.min.js +1 -1
- package/dist/languages/hr-HR.min.js +1 -1
- package/dist/languages/it-IT.min.js +1 -1
- package/dist/languages/ja-JP.min.js +1 -1
- package/dist/languages/ko-KR.min.js +1 -1
- package/dist/languages/lv-LV.min.js +1 -1
- package/dist/languages/nb-NO.min.js +1 -1
- package/dist/languages/nl-NL.min.js +1 -1
- package/dist/languages/pl-PL.min.js +1 -1
- package/dist/languages/pt-BR.min.js +1 -1
- package/dist/languages/ru-RU.min.js +1 -1
- package/dist/languages/sr-SP.min.js +1 -1
- package/dist/languages/zh-CN.min.js +1 -1
- package/dist/languages/zh-TW.min.js +1 -1
- package/editorManager.js +23 -25
- package/editorManager.mjs +23 -25
- package/editors/autocompleteEditor/autocompleteEditor.js +10 -6
- package/editors/autocompleteEditor/autocompleteEditor.mjs +10 -6
- package/editors/selectEditor/selectEditor.js +19 -20
- package/editors/selectEditor/selectEditor.mjs +19 -20
- package/eventManager.js +1 -1
- package/eventManager.mjs +1 -1
- package/focusManager.js +82 -64
- package/focusManager.mjs +82 -64
- package/helpers/dom/element.js +1 -1
- package/helpers/dom/element.mjs +1 -1
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/helpers/object.js +2 -2
- package/helpers/object.mjs +2 -2
- package/index.d.ts +0 -10
- package/package.json +2 -7
- package/pluginHooks.d.ts +3 -4
- package/pluginHooks.js +38 -99
- package/pluginHooks.mjs +38 -99
- package/plugins/autoColumnSize/autoColumnSize.js +65 -49
- package/plugins/autoColumnSize/autoColumnSize.mjs +65 -49
- package/plugins/autoRowSize/autoRowSize.js +34 -28
- package/plugins/autoRowSize/autoRowSize.mjs +34 -28
- package/plugins/autofill/autofill.js +38 -30
- package/plugins/autofill/autofill.mjs +38 -30
- package/plugins/base/base.js +17 -12
- package/plugins/base/base.mjs +17 -12
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +5 -5
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +5 -5
- package/plugins/collapsibleColumns/collapsibleColumns.js +50 -59
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +50 -59
- package/plugins/columnSorting/columnSorting.js +45 -49
- package/plugins/columnSorting/columnSorting.mjs +45 -49
- package/plugins/columnSummary/columnSummary.js +26 -22
- package/plugins/columnSummary/columnSummary.mjs +26 -22
- package/plugins/comments/comments.js +158 -116
- package/plugins/comments/comments.mjs +158 -116
- package/plugins/contextMenu/contextMenu.js +26 -20
- package/plugins/contextMenu/contextMenu.mjs +26 -20
- package/plugins/contextMenu/itemsFactory.js +1 -1
- package/plugins/contextMenu/itemsFactory.mjs +1 -1
- package/plugins/contextMenu/menu/defaultShortcutsList.js +10 -26
- package/plugins/contextMenu/menu/defaultShortcutsList.mjs +10 -26
- package/plugins/contextMenu/menu/menu.js +21 -13
- package/plugins/contextMenu/menu/menu.mjs +21 -13
- package/plugins/contextMenu/menu/positioner.js +58 -41
- package/plugins/contextMenu/menu/positioner.mjs +58 -41
- package/plugins/copyPaste/copyPaste.js +157 -116
- package/plugins/copyPaste/copyPaste.mjs +157 -116
- package/plugins/copyPaste/copyableRanges.js +66 -43
- package/plugins/copyPaste/copyableRanges.mjs +66 -43
- package/plugins/customBorders/customBorders.js +13 -11
- package/plugins/customBorders/customBorders.mjs +13 -11
- package/plugins/dragToScroll/dragToScroll.js +6 -6
- package/plugins/dragToScroll/dragToScroll.mjs +6 -6
- package/plugins/dropdownMenu/dropdownMenu.js +106 -80
- package/plugins/dropdownMenu/dropdownMenu.mjs +106 -80
- package/plugins/exportFile/dataProvider.js +1 -1
- package/plugins/exportFile/dataProvider.mjs +1 -1
- package/plugins/filters/component/actionBar.js +9 -9
- package/plugins/filters/component/actionBar.mjs +8 -8
- package/plugins/filters/component/condition.js +15 -13
- package/plugins/filters/component/condition.mjs +15 -13
- package/plugins/filters/component/operators.js +6 -6
- package/plugins/filters/component/operators.mjs +6 -6
- package/plugins/filters/component/value.js +28 -24
- package/plugins/filters/component/value.mjs +28 -24
- package/plugins/filters/conditionUpdateObserver.js +24 -22
- package/plugins/filters/conditionUpdateObserver.mjs +24 -22
- package/plugins/filters/dataFilter.js +1 -1
- package/plugins/filters/dataFilter.mjs +1 -1
- package/plugins/filters/filters.js +95 -81
- package/plugins/filters/filters.mjs +95 -81
- package/plugins/filters/ui/input.js +19 -13
- package/plugins/filters/ui/input.mjs +19 -13
- package/plugins/filters/ui/link.js +13 -8
- package/plugins/filters/ui/link.mjs +13 -8
- package/plugins/filters/ui/multipleSelect.js +112 -85
- package/plugins/filters/ui/multipleSelect.mjs +112 -85
- package/plugins/filters/ui/radioInput.js +20 -12
- package/plugins/filters/ui/radioInput.mjs +20 -12
- package/plugins/filters/ui/select.js +72 -50
- package/plugins/filters/ui/select.mjs +71 -49
- package/plugins/formulas/formulas.js +326 -268
- package/plugins/formulas/formulas.mjs +327 -269
- package/plugins/formulas/indexSyncer/axisSyncer.js +61 -38
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +61 -38
- package/plugins/formulas/indexSyncer/index.js +48 -25
- package/plugins/formulas/indexSyncer/index.mjs +48 -25
- package/plugins/hiddenColumns/hiddenColumns.js +83 -64
- package/plugins/hiddenColumns/hiddenColumns.mjs +83 -64
- package/plugins/hiddenRows/hiddenRows.js +82 -63
- package/plugins/hiddenRows/hiddenRows.mjs +82 -63
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +32 -24
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +33 -25
- package/plugins/manualColumnMove/manualColumnMove.js +170 -126
- package/plugins/manualColumnMove/manualColumnMove.mjs +170 -126
- package/plugins/manualColumnResize/manualColumnResize.js +230 -169
- package/plugins/manualColumnResize/manualColumnResize.mjs +230 -169
- package/plugins/manualRowMove/manualRowMove.js +128 -99
- package/plugins/manualRowMove/manualRowMove.mjs +128 -99
- package/plugins/manualRowResize/manualRowResize.js +209 -150
- package/plugins/manualRowResize/manualRowResize.mjs +209 -150
- package/plugins/mergeCells/calculations/selection.js +71 -2
- package/plugins/mergeCells/calculations/selection.mjs +71 -2
- package/plugins/mergeCells/cellsCollection.js +1 -117
- package/plugins/mergeCells/cellsCollection.mjs +1 -117
- package/plugins/mergeCells/contextMenuItem/toggleMerge.js +1 -11
- package/plugins/mergeCells/contextMenuItem/toggleMerge.mjs +1 -11
- package/plugins/mergeCells/mergeCells.js +397 -499
- package/plugins/mergeCells/mergeCells.mjs +397 -499
- package/plugins/multiColumnSorting/multiColumnSorting.js +2 -8
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +2 -8
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +1 -1
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +1 -1
- package/plugins/nestedHeaders/nestedHeaders.js +253 -205
- package/plugins/nestedHeaders/nestedHeaders.mjs +254 -206
- package/plugins/nestedHeaders/stateManager/headersTree.js +32 -21
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +32 -21
- package/plugins/nestedHeaders/stateManager/index.js +41 -30
- package/plugins/nestedHeaders/stateManager/index.mjs +41 -30
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +30 -19
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +30 -19
- package/plugins/nestedRows/data/dataManager.js +1 -1
- package/plugins/nestedRows/data/dataManager.mjs +1 -1
- package/plugins/nestedRows/nestedRows.js +182 -151
- package/plugins/nestedRows/nestedRows.mjs +183 -152
- package/plugins/nestedRows/ui/contextMenu.js +15 -11
- package/plugins/nestedRows/ui/contextMenu.mjs +14 -10
- package/plugins/nestedRows/utils/rowMoveController.js +1 -1
- package/plugins/nestedRows/utils/rowMoveController.mjs +1 -1
- package/plugins/persistentState/storage.js +2 -2
- package/plugins/persistentState/storage.mjs +2 -2
- package/plugins/search/search.js +7 -7
- package/plugins/search/search.mjs +7 -7
- package/plugins/touchScroll/touchScroll.js +19 -15
- package/plugins/touchScroll/touchScroll.mjs +20 -16
- package/plugins/trimRows/trimRows.js +6 -6
- package/plugins/trimRows/trimRows.mjs +6 -6
- package/renderers/checkboxRenderer/checkboxRenderer.js +5 -8
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +5 -8
- package/selection/highlight/highlight.js +14 -14
- package/selection/highlight/highlight.mjs +13 -13
- package/selection/highlight/visualSelection.js +0 -2
- package/selection/highlight/visualSelection.mjs +0 -2
- package/selection/selection.js +67 -225
- package/selection/selection.mjs +66 -224
- package/selection/transformation.js +118 -149
- package/selection/transformation.mjs +118 -149
- package/shortcutContexts/commands/editor/closeAndSave.js +2 -2
- package/shortcutContexts/commands/editor/closeAndSave.mjs +2 -2
- package/shortcutContexts/commands/editor/open.js +3 -18
- package/shortcutContexts/commands/editor/open.mjs +3 -18
- package/shortcutContexts/commands/extendCellsSelection/down.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/down.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/left.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/left.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/right.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/right.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toColumns.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +3 -9
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +3 -9
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +3 -10
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +3 -10
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toRows.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/up.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/up.mjs +1 -1
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +1 -6
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +1 -6
- package/shortcutContexts/commands/moveCellSelection/inlineStart.js +1 -6
- package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +1 -6
- package/shortcutContexts/grid.js +3 -9
- package/shortcutContexts/grid.mjs +3 -9
- package/shortcuts/context.js +1 -2
- package/shortcuts/context.mjs +1 -2
- package/tableView.js +78 -52
- package/tableView.mjs +78 -52
- package/translations/changesObservable/observable.js +38 -21
- package/translations/changesObservable/observable.mjs +38 -21
- package/translations/changesObservable/observer.js +12 -7
- package/translations/changesObservable/observer.mjs +11 -6
- package/translations/mapCollections/aggregatedCollection.js +1 -1
- package/translations/mapCollections/aggregatedCollection.mjs +1 -1
- package/translations/maps/indexMap.js +1 -1
- package/translations/maps/indexMap.mjs +1 -1
- package/utils/dataStructures/linkedList.js +1 -6
- package/utils/dataStructures/linkedList.mjs +1 -6
- package/utils/dataStructures/tree.js +1 -1
- package/utils/dataStructures/tree.mjs +1 -1
- package/utils/interval.js +44 -26
- package/utils/interval.mjs +44 -26
- package/core/viewportScroll/scrollStrategies/focusScroll.js +0 -15
- package/core/viewportScroll/scrollStrategies/focusScroll.mjs +0 -11
- package/i18n/languages/ar-AR.d.ts +0 -5
- package/i18n/languages/cs-CZ.d.ts +0 -5
- package/i18n/languages/hr-HR.d.ts +0 -5
- package/i18n/languages/sr-SP.d.ts +0 -5
- package/plugins/mergeCells/focusOrder.js +0 -305
- package/plugins/mergeCells/focusOrder.mjs +0 -300
@@ -1,9 +1,11 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
2
|
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
3
3
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
4
|
-
function _classPrivateFieldSet(
|
5
|
-
function
|
6
|
-
function
|
4
|
+
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
5
|
+
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; } }
|
6
|
+
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
7
|
+
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
8
|
+
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
7
9
|
import { mixin } from "../../helpers/object.mjs";
|
8
10
|
import localHooks from "../../mixins/localHooks.mjs";
|
9
11
|
/**
|
@@ -22,7 +24,10 @@ export class ChangesObserver {
|
|
22
24
|
*
|
23
25
|
* @type {Array}
|
24
26
|
*/
|
25
|
-
_classPrivateFieldInitSpec(this, _currentInitialChanges,
|
27
|
+
_classPrivateFieldInitSpec(this, _currentInitialChanges, {
|
28
|
+
writable: true,
|
29
|
+
value: []
|
30
|
+
});
|
26
31
|
}
|
27
32
|
/**
|
28
33
|
* Subscribes to the observer.
|
@@ -32,7 +37,7 @@ export class ChangesObserver {
|
|
32
37
|
*/
|
33
38
|
subscribe(callback) {
|
34
39
|
this.addLocalHook('change', callback);
|
35
|
-
this._write(_classPrivateFieldGet(
|
40
|
+
this._write(_classPrivateFieldGet(this, _currentInitialChanges));
|
36
41
|
return this;
|
37
42
|
}
|
38
43
|
|
@@ -71,7 +76,7 @@ export class ChangesObserver {
|
|
71
76
|
* @param {object} initialChanges The chunk of changes produced by the ChangesObservable module.
|
72
77
|
*/
|
73
78
|
_writeInitialChanges(initialChanges) {
|
74
|
-
_classPrivateFieldSet(
|
79
|
+
_classPrivateFieldSet(this, _currentInitialChanges, initialChanges);
|
75
80
|
}
|
76
81
|
}
|
77
82
|
mixin(ChangesObserver, localHooks);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
-
require("core-js/modules/es.error.cause.js");
|
5
4
|
require("core-js/modules/es.array.push.js");
|
5
|
+
require("core-js/modules/es.error.cause.js");
|
6
6
|
var _mapCollection = require("./mapCollection");
|
7
7
|
var _array = require("../../helpers/array");
|
8
8
|
var _mixed = require("../../helpers/mixed");
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import "core-js/modules/es.error.cause.js";
|
2
1
|
import "core-js/modules/es.array.push.js";
|
2
|
+
import "core-js/modules/es.error.cause.js";
|
3
3
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
4
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(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); }
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
-
require("core-js/modules/es.error.cause.js");
|
5
4
|
require("core-js/modules/es.array.push.js");
|
5
|
+
require("core-js/modules/es.error.cause.js");
|
6
6
|
var _number = require("../../helpers/number");
|
7
7
|
var _object = require("../../helpers/object");
|
8
8
|
var _function = require("../../helpers/function");
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import "core-js/modules/es.error.cause.js";
|
2
1
|
import "core-js/modules/es.array.push.js";
|
2
|
+
import "core-js/modules/es.error.cause.js";
|
3
3
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
4
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(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); }
|
@@ -59,7 +59,6 @@ class LinkedList {
|
|
59
59
|
* Add data to the end of linked list.
|
60
60
|
*
|
61
61
|
* @param {object} data Data which should be added.
|
62
|
-
* @returns {NodeStructure} Returns the node which has been added.
|
63
62
|
*/
|
64
63
|
push(data) {
|
65
64
|
const node = new NodeStructure(data);
|
@@ -72,7 +71,6 @@ class LinkedList {
|
|
72
71
|
node.prev = temp;
|
73
72
|
temp.next = node;
|
74
73
|
}
|
75
|
-
return node;
|
76
74
|
}
|
77
75
|
|
78
76
|
/**
|
@@ -101,10 +99,7 @@ class LinkedList {
|
|
101
99
|
inorder(callback) {
|
102
100
|
let temp = this.first;
|
103
101
|
while (temp) {
|
104
|
-
|
105
|
-
if (temp === this.last || interrupt === true) {
|
106
|
-
break;
|
107
|
-
}
|
102
|
+
callback(temp);
|
108
103
|
temp = temp.next;
|
109
104
|
}
|
110
105
|
}
|
@@ -55,7 +55,6 @@ class LinkedList {
|
|
55
55
|
* Add data to the end of linked list.
|
56
56
|
*
|
57
57
|
* @param {object} data Data which should be added.
|
58
|
-
* @returns {NodeStructure} Returns the node which has been added.
|
59
58
|
*/
|
60
59
|
push(data) {
|
61
60
|
const node = new NodeStructure(data);
|
@@ -68,7 +67,6 @@ class LinkedList {
|
|
68
67
|
node.prev = temp;
|
69
68
|
temp.next = node;
|
70
69
|
}
|
71
|
-
return node;
|
72
70
|
}
|
73
71
|
|
74
72
|
/**
|
@@ -97,10 +95,7 @@ class LinkedList {
|
|
97
95
|
inorder(callback) {
|
98
96
|
let temp = this.first;
|
99
97
|
while (temp) {
|
100
|
-
|
101
|
-
if (temp === this.last || interrupt === true) {
|
102
|
-
break;
|
103
|
-
}
|
98
|
+
callback(temp);
|
104
99
|
temp = temp.next;
|
105
100
|
}
|
106
101
|
}
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.depthFirstPreOrder = depthFirstPreOrder;
|
5
|
-
require("core-js/modules/es.error.cause.js");
|
6
5
|
require("core-js/modules/es.array.push.js");
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
7
7
|
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; }
|
8
8
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(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); }
|
@@ -1,8 +1,8 @@
|
|
1
1
|
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; }
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
3
3
|
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); }
|
4
|
-
import "core-js/modules/es.error.cause.js";
|
5
4
|
import "core-js/modules/es.array.push.js";
|
5
|
+
import "core-js/modules/es.error.cause.js";
|
6
6
|
/**
|
7
7
|
* Depth-first pre-order strategy (https://en.wikipedia.org/wiki/Tree_traversal#Pre-order_(NLR)).
|
8
8
|
*
|
package/utils/interval.js
CHANGED
@@ -10,9 +10,12 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
10
10
|
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; }
|
11
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
12
12
|
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); }
|
13
|
-
function _classPrivateFieldGet(
|
14
|
-
function
|
15
|
-
function
|
13
|
+
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
14
|
+
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
15
|
+
function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
|
16
|
+
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
17
|
+
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
18
|
+
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; } }
|
16
19
|
/**
|
17
20
|
* @class Interval
|
18
21
|
*/
|
@@ -21,7 +24,7 @@ var _func = /*#__PURE__*/new WeakMap();
|
|
21
24
|
var _stopped = /*#__PURE__*/new WeakMap();
|
22
25
|
var _then = /*#__PURE__*/new WeakMap();
|
23
26
|
var _callback = /*#__PURE__*/new WeakMap();
|
24
|
-
var
|
27
|
+
var _callback2 = /*#__PURE__*/new WeakSet();
|
25
28
|
class Interval {
|
26
29
|
static create(func, delay) {
|
27
30
|
return new Interval(func, delay);
|
@@ -37,42 +40,57 @@ class Interval {
|
|
37
40
|
/**
|
38
41
|
* Loop callback, fired on every animation frame.
|
39
42
|
*/
|
40
|
-
_classPrivateMethodInitSpec(this,
|
43
|
+
_classPrivateMethodInitSpec(this, _callback2);
|
41
44
|
_defineProperty(this, "delay", void 0);
|
42
45
|
/**
|
43
46
|
* Animation frame request id.
|
44
47
|
*
|
45
48
|
* @type {number}
|
46
49
|
*/
|
47
|
-
_classPrivateFieldInitSpec(this, _timer,
|
50
|
+
_classPrivateFieldInitSpec(this, _timer, {
|
51
|
+
writable: true,
|
52
|
+
value: null
|
53
|
+
});
|
48
54
|
/**
|
49
55
|
* Function to invoke repeatedly.
|
50
56
|
*
|
51
57
|
* @type {Function}
|
52
58
|
*/
|
53
|
-
_classPrivateFieldInitSpec(this, _func,
|
59
|
+
_classPrivateFieldInitSpec(this, _func, {
|
60
|
+
writable: true,
|
61
|
+
value: void 0
|
62
|
+
});
|
54
63
|
/**
|
55
64
|
* Flag which indicates if interval object was stopped.
|
56
65
|
*
|
57
66
|
* @type {boolean}
|
58
67
|
* @default true
|
59
68
|
*/
|
60
|
-
_classPrivateFieldInitSpec(this, _stopped,
|
69
|
+
_classPrivateFieldInitSpec(this, _stopped, {
|
70
|
+
writable: true,
|
71
|
+
value: true
|
72
|
+
});
|
61
73
|
/**
|
62
74
|
* Interval time (in milliseconds) of the last callback call.
|
63
75
|
*
|
64
76
|
* @type {number}
|
65
77
|
*/
|
66
|
-
_classPrivateFieldInitSpec(this, _then,
|
78
|
+
_classPrivateFieldInitSpec(this, _then, {
|
79
|
+
writable: true,
|
80
|
+
value: null
|
81
|
+
});
|
67
82
|
/**
|
68
83
|
* Bounded function `func`.
|
69
84
|
*
|
70
85
|
* @type {Function}
|
71
86
|
*/
|
72
|
-
_classPrivateFieldInitSpec(this, _callback,
|
73
|
-
|
87
|
+
_classPrivateFieldInitSpec(this, _callback, {
|
88
|
+
writable: true,
|
89
|
+
value: void 0
|
90
|
+
});
|
91
|
+
_classPrivateFieldSet(this, _func, func);
|
74
92
|
this.delay = parseDelay(delay);
|
75
|
-
_classPrivateFieldSet(
|
93
|
+
_classPrivateFieldSet(this, _callback, () => _classPrivateMethodGet(this, _callback2, _callback3).call(this));
|
76
94
|
}
|
77
95
|
|
78
96
|
/**
|
@@ -81,10 +99,10 @@ class Interval {
|
|
81
99
|
* @returns {Interval}
|
82
100
|
*/
|
83
101
|
start() {
|
84
|
-
if (_classPrivateFieldGet(
|
85
|
-
_classPrivateFieldSet(
|
86
|
-
_classPrivateFieldSet(
|
87
|
-
_classPrivateFieldSet(
|
102
|
+
if (_classPrivateFieldGet(this, _stopped)) {
|
103
|
+
_classPrivateFieldSet(this, _then, Date.now());
|
104
|
+
_classPrivateFieldSet(this, _stopped, false);
|
105
|
+
_classPrivateFieldSet(this, _timer, (0, _feature.requestAnimationFrame)(_classPrivateFieldGet(this, _callback)));
|
88
106
|
}
|
89
107
|
return this;
|
90
108
|
}
|
@@ -95,25 +113,25 @@ class Interval {
|
|
95
113
|
* @returns {Interval}
|
96
114
|
*/
|
97
115
|
stop() {
|
98
|
-
if (!_classPrivateFieldGet(
|
99
|
-
_classPrivateFieldSet(
|
100
|
-
(0, _feature.cancelAnimationFrame)(_classPrivateFieldGet(
|
101
|
-
_classPrivateFieldSet(
|
116
|
+
if (!_classPrivateFieldGet(this, _stopped)) {
|
117
|
+
_classPrivateFieldSet(this, _stopped, true);
|
118
|
+
(0, _feature.cancelAnimationFrame)(_classPrivateFieldGet(this, _timer));
|
119
|
+
_classPrivateFieldSet(this, _timer, null);
|
102
120
|
}
|
103
121
|
return this;
|
104
122
|
}
|
105
123
|
}
|
106
|
-
function
|
107
|
-
_classPrivateFieldSet(
|
124
|
+
function _callback3() {
|
125
|
+
_classPrivateFieldSet(this, _timer, (0, _feature.requestAnimationFrame)(_classPrivateFieldGet(this, _callback)));
|
108
126
|
if (this.delay) {
|
109
127
|
const now = Date.now();
|
110
|
-
const elapsed = now - _classPrivateFieldGet(
|
128
|
+
const elapsed = now - _classPrivateFieldGet(this, _then);
|
111
129
|
if (elapsed > this.delay) {
|
112
|
-
_classPrivateFieldSet(
|
113
|
-
_classPrivateFieldGet(
|
130
|
+
_classPrivateFieldSet(this, _then, now - elapsed % this.delay);
|
131
|
+
_classPrivateFieldGet(this, _func).call(this);
|
114
132
|
}
|
115
133
|
} else {
|
116
|
-
_classPrivateFieldGet(
|
134
|
+
_classPrivateFieldGet(this, _func).call(this);
|
117
135
|
}
|
118
136
|
}
|
119
137
|
var _default = exports.default = Interval;
|
package/utils/interval.mjs
CHANGED
@@ -5,9 +5,12 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
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
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(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
|
-
function _classPrivateFieldGet(
|
9
|
-
function
|
10
|
-
function
|
8
|
+
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
9
|
+
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
10
|
+
function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
|
11
|
+
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
12
|
+
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
13
|
+
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
14
|
import { requestAnimationFrame, cancelAnimationFrame } from "./../helpers/feature.mjs";
|
12
15
|
/**
|
13
16
|
* @class Interval
|
@@ -17,7 +20,7 @@ var _func = /*#__PURE__*/new WeakMap();
|
|
17
20
|
var _stopped = /*#__PURE__*/new WeakMap();
|
18
21
|
var _then = /*#__PURE__*/new WeakMap();
|
19
22
|
var _callback = /*#__PURE__*/new WeakMap();
|
20
|
-
var
|
23
|
+
var _callback2 = /*#__PURE__*/new WeakSet();
|
21
24
|
class Interval {
|
22
25
|
static create(func, delay) {
|
23
26
|
return new Interval(func, delay);
|
@@ -33,42 +36,57 @@ class Interval {
|
|
33
36
|
/**
|
34
37
|
* Loop callback, fired on every animation frame.
|
35
38
|
*/
|
36
|
-
_classPrivateMethodInitSpec(this,
|
39
|
+
_classPrivateMethodInitSpec(this, _callback2);
|
37
40
|
_defineProperty(this, "delay", void 0);
|
38
41
|
/**
|
39
42
|
* Animation frame request id.
|
40
43
|
*
|
41
44
|
* @type {number}
|
42
45
|
*/
|
43
|
-
_classPrivateFieldInitSpec(this, _timer,
|
46
|
+
_classPrivateFieldInitSpec(this, _timer, {
|
47
|
+
writable: true,
|
48
|
+
value: null
|
49
|
+
});
|
44
50
|
/**
|
45
51
|
* Function to invoke repeatedly.
|
46
52
|
*
|
47
53
|
* @type {Function}
|
48
54
|
*/
|
49
|
-
_classPrivateFieldInitSpec(this, _func,
|
55
|
+
_classPrivateFieldInitSpec(this, _func, {
|
56
|
+
writable: true,
|
57
|
+
value: void 0
|
58
|
+
});
|
50
59
|
/**
|
51
60
|
* Flag which indicates if interval object was stopped.
|
52
61
|
*
|
53
62
|
* @type {boolean}
|
54
63
|
* @default true
|
55
64
|
*/
|
56
|
-
_classPrivateFieldInitSpec(this, _stopped,
|
65
|
+
_classPrivateFieldInitSpec(this, _stopped, {
|
66
|
+
writable: true,
|
67
|
+
value: true
|
68
|
+
});
|
57
69
|
/**
|
58
70
|
* Interval time (in milliseconds) of the last callback call.
|
59
71
|
*
|
60
72
|
* @type {number}
|
61
73
|
*/
|
62
|
-
_classPrivateFieldInitSpec(this, _then,
|
74
|
+
_classPrivateFieldInitSpec(this, _then, {
|
75
|
+
writable: true,
|
76
|
+
value: null
|
77
|
+
});
|
63
78
|
/**
|
64
79
|
* Bounded function `func`.
|
65
80
|
*
|
66
81
|
* @type {Function}
|
67
82
|
*/
|
68
|
-
_classPrivateFieldInitSpec(this, _callback,
|
69
|
-
|
83
|
+
_classPrivateFieldInitSpec(this, _callback, {
|
84
|
+
writable: true,
|
85
|
+
value: void 0
|
86
|
+
});
|
87
|
+
_classPrivateFieldSet(this, _func, func);
|
70
88
|
this.delay = parseDelay(delay);
|
71
|
-
_classPrivateFieldSet(
|
89
|
+
_classPrivateFieldSet(this, _callback, () => _classPrivateMethodGet(this, _callback2, _callback3).call(this));
|
72
90
|
}
|
73
91
|
|
74
92
|
/**
|
@@ -77,10 +95,10 @@ class Interval {
|
|
77
95
|
* @returns {Interval}
|
78
96
|
*/
|
79
97
|
start() {
|
80
|
-
if (_classPrivateFieldGet(
|
81
|
-
_classPrivateFieldSet(
|
82
|
-
_classPrivateFieldSet(
|
83
|
-
_classPrivateFieldSet(
|
98
|
+
if (_classPrivateFieldGet(this, _stopped)) {
|
99
|
+
_classPrivateFieldSet(this, _then, Date.now());
|
100
|
+
_classPrivateFieldSet(this, _stopped, false);
|
101
|
+
_classPrivateFieldSet(this, _timer, requestAnimationFrame(_classPrivateFieldGet(this, _callback)));
|
84
102
|
}
|
85
103
|
return this;
|
86
104
|
}
|
@@ -91,25 +109,25 @@ class Interval {
|
|
91
109
|
* @returns {Interval}
|
92
110
|
*/
|
93
111
|
stop() {
|
94
|
-
if (!_classPrivateFieldGet(
|
95
|
-
_classPrivateFieldSet(
|
96
|
-
cancelAnimationFrame(_classPrivateFieldGet(
|
97
|
-
_classPrivateFieldSet(
|
112
|
+
if (!_classPrivateFieldGet(this, _stopped)) {
|
113
|
+
_classPrivateFieldSet(this, _stopped, true);
|
114
|
+
cancelAnimationFrame(_classPrivateFieldGet(this, _timer));
|
115
|
+
_classPrivateFieldSet(this, _timer, null);
|
98
116
|
}
|
99
117
|
return this;
|
100
118
|
}
|
101
119
|
}
|
102
|
-
function
|
103
|
-
_classPrivateFieldSet(
|
120
|
+
function _callback3() {
|
121
|
+
_classPrivateFieldSet(this, _timer, requestAnimationFrame(_classPrivateFieldGet(this, _callback)));
|
104
122
|
if (this.delay) {
|
105
123
|
const now = Date.now();
|
106
|
-
const elapsed = now - _classPrivateFieldGet(
|
124
|
+
const elapsed = now - _classPrivateFieldGet(this, _then);
|
107
125
|
if (elapsed > this.delay) {
|
108
|
-
_classPrivateFieldSet(
|
109
|
-
_classPrivateFieldGet(
|
126
|
+
_classPrivateFieldSet(this, _then, now - elapsed % this.delay);
|
127
|
+
_classPrivateFieldGet(this, _func).call(this);
|
110
128
|
}
|
111
129
|
} else {
|
112
|
-
_classPrivateFieldGet(
|
130
|
+
_classPrivateFieldGet(this, _func).call(this);
|
113
131
|
}
|
114
132
|
}
|
115
133
|
export default Interval;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
exports.__esModule = true;
|
4
|
-
exports.focusScrollStrategy = focusScrollStrategy;
|
5
|
-
/**
|
6
|
-
* Scroll strategy for changed the focus position of the selection.
|
7
|
-
*
|
8
|
-
* @param {Core} hot Handsontable instance.
|
9
|
-
* @returns {function(): function(CellCoords): void}
|
10
|
-
*/
|
11
|
-
function focusScrollStrategy(hot) {
|
12
|
-
return cellCoords => {
|
13
|
-
hot.scrollViewportTo(cellCoords.toObject());
|
14
|
-
};
|
15
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Scroll strategy for changed the focus position of the selection.
|
3
|
-
*
|
4
|
-
* @param {Core} hot Handsontable instance.
|
5
|
-
* @returns {function(): function(CellCoords): void}
|
6
|
-
*/
|
7
|
-
export function focusScrollStrategy(hot) {
|
8
|
-
return cellCoords => {
|
9
|
-
hot.scrollViewportTo(cellCoords.toObject());
|
10
|
-
};
|
11
|
-
}
|