handsontable 0.0.0-next-2becb78-20240313 → 0.0.0-next-bff5041-20240315
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 +12 -17
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +12 -17
- package/3rdparty/walkontable/src/calculator/viewportRows.js +10 -15
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +10 -15
- package/3rdparty/walkontable/src/cell/coords.js +12 -17
- package/3rdparty/walkontable/src/cell/coords.mjs +12 -17
- package/3rdparty/walkontable/src/cell/range.d.ts +0 -1
- package/3rdparty/walkontable/src/cell/range.js +23 -45
- package/3rdparty/walkontable/src/cell/range.mjs +23 -45
- package/3rdparty/walkontable/src/core/_base.js +1 -1
- package/3rdparty/walkontable/src/core/_base.mjs +1 -1
- package/3rdparty/walkontable/src/event.js +72 -104
- package/3rdparty/walkontable/src/event.mjs +72 -104
- package/3rdparty/walkontable/src/overlays.js +1 -1
- package/3rdparty/walkontable/src/overlays.mjs +1 -1
- package/3rdparty/walkontable/src/scroll.js +15 -17
- package/3rdparty/walkontable/src/scroll.mjs +15 -17
- package/3rdparty/walkontable/src/selection/manager.js +48 -69
- package/3rdparty/walkontable/src/selection/manager.mjs +48 -69
- package/3rdparty/walkontable/src/selection/scanner.js +33 -42
- package/3rdparty/walkontable/src/selection/scanner.mjs +33 -42
- package/3rdparty/walkontable/src/utils/columnStretching.js +27 -44
- package/3rdparty/walkontable/src/utils/columnStretching.mjs +27 -44
- 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 -82
- package/core.mjs +22 -82
- 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/replaceData.js +1 -1
- package/dataMap/replaceData.mjs +1 -1
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +7619 -10404
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +277 -277
- package/dist/handsontable.js +5525 -7857
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +33 -33
- 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 +21 -27
- package/editorManager.mjs +21 -27
- package/editors/autocompleteEditor/autocompleteEditor.js +6 -10
- package/editors/autocompleteEditor/autocompleteEditor.mjs +6 -10
- package/eventManager.js +1 -1
- package/eventManager.mjs +1 -1
- package/focusManager.js +58 -82
- package/focusManager.mjs +58 -82
- 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 +10 -0
- package/package.json +2 -1
- package/pluginHooks.d.ts +0 -4
- package/pluginHooks.js +2 -44
- package/pluginHooks.mjs +2 -44
- package/plugins/autoColumnSize/autoColumnSize.js +49 -65
- package/plugins/autoColumnSize/autoColumnSize.mjs +49 -65
- package/plugins/autoRowSize/autoRowSize.js +28 -34
- package/plugins/autoRowSize/autoRowSize.mjs +28 -34
- package/plugins/autofill/autofill.js +30 -38
- package/plugins/autofill/autofill.mjs +30 -38
- package/plugins/base/base.js +12 -17
- package/plugins/base/base.mjs +12 -17
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +5 -5
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +5 -5
- package/plugins/collapsibleColumns/collapsibleColumns.js +36 -54
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +36 -54
- package/plugins/columnSorting/columnSorting.js +40 -46
- package/plugins/columnSorting/columnSorting.mjs +40 -46
- package/plugins/columnSummary/columnSummary.js +22 -26
- package/plugins/columnSummary/columnSummary.mjs +22 -26
- package/plugins/comments/comments.js +116 -158
- package/plugins/comments/comments.mjs +116 -158
- package/plugins/contextMenu/contextMenu.js +20 -26
- package/plugins/contextMenu/contextMenu.mjs +20 -26
- 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 +13 -21
- package/plugins/contextMenu/menu/menu.mjs +13 -21
- package/plugins/contextMenu/menu/positioner.js +41 -58
- package/plugins/contextMenu/menu/positioner.mjs +41 -58
- package/plugins/copyPaste/copyPaste.js +113 -154
- package/plugins/copyPaste/copyPaste.mjs +113 -154
- package/plugins/copyPaste/copyableRanges.js +43 -66
- package/plugins/copyPaste/copyableRanges.mjs +43 -66
- package/plugins/customBorders/customBorders.js +11 -13
- package/plugins/customBorders/customBorders.mjs +11 -13
- package/plugins/dragToScroll/dragToScroll.js +6 -6
- package/plugins/dragToScroll/dragToScroll.mjs +6 -6
- package/plugins/dropdownMenu/dropdownMenu.js +78 -100
- package/plugins/dropdownMenu/dropdownMenu.mjs +78 -100
- 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 +13 -15
- package/plugins/filters/component/condition.mjs +13 -15
- package/plugins/filters/component/operators.js +6 -6
- package/plugins/filters/component/operators.mjs +6 -6
- package/plugins/filters/component/value.js +24 -28
- package/plugins/filters/component/value.mjs +24 -28
- package/plugins/filters/conditionUpdateObserver.js +22 -24
- package/plugins/filters/conditionUpdateObserver.mjs +22 -24
- package/plugins/filters/dataFilter.js +1 -1
- package/plugins/filters/dataFilter.mjs +1 -1
- package/plugins/filters/filters.js +81 -95
- package/plugins/filters/filters.mjs +81 -95
- package/plugins/filters/ui/input.js +13 -19
- package/plugins/filters/ui/input.mjs +13 -19
- package/plugins/filters/ui/link.js +8 -13
- package/plugins/filters/ui/link.mjs +8 -13
- package/plugins/filters/ui/multipleSelect.js +85 -112
- package/plugins/filters/ui/multipleSelect.mjs +85 -112
- package/plugins/filters/ui/radioInput.js +12 -20
- package/plugins/filters/ui/radioInput.mjs +12 -20
- package/plugins/filters/ui/select.js +50 -72
- package/plugins/filters/ui/select.mjs +49 -71
- package/plugins/formulas/formulas.js +268 -326
- package/plugins/formulas/formulas.mjs +269 -327
- package/plugins/formulas/indexSyncer/axisSyncer.js +38 -61
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +38 -61
- package/plugins/formulas/indexSyncer/index.js +25 -48
- package/plugins/formulas/indexSyncer/index.mjs +25 -48
- package/plugins/hiddenColumns/hiddenColumns.js +64 -83
- package/plugins/hiddenColumns/hiddenColumns.mjs +64 -83
- package/plugins/hiddenRows/hiddenRows.js +63 -82
- package/plugins/hiddenRows/hiddenRows.mjs +63 -82
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +24 -32
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +25 -33
- package/plugins/manualColumnMove/manualColumnMove.js +126 -170
- package/plugins/manualColumnMove/manualColumnMove.mjs +126 -170
- package/plugins/manualColumnResize/manualColumnResize.js +169 -230
- package/plugins/manualColumnResize/manualColumnResize.mjs +169 -230
- package/plugins/manualRowMove/manualRowMove.js +99 -128
- package/plugins/manualRowMove/manualRowMove.mjs +99 -128
- package/plugins/manualRowResize/manualRowResize.js +150 -209
- package/plugins/manualRowResize/manualRowResize.mjs +150 -209
- 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 +353 -593
- package/plugins/mergeCells/mergeCells.mjs +353 -593
- package/plugins/multiColumnSorting/multiColumnSorting.js +0 -6
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +0 -6
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +1 -1
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +1 -1
- package/plugins/nestedHeaders/nestedHeaders.js +204 -254
- package/plugins/nestedHeaders/nestedHeaders.mjs +205 -255
- package/plugins/nestedHeaders/stateManager/headersTree.js +21 -32
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +21 -32
- package/plugins/nestedHeaders/stateManager/index.js +30 -41
- package/plugins/nestedHeaders/stateManager/index.mjs +30 -41
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +19 -30
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +19 -30
- package/plugins/nestedRows/data/dataManager.js +1 -1
- package/plugins/nestedRows/data/dataManager.mjs +1 -1
- package/plugins/nestedRows/nestedRows.js +138 -179
- package/plugins/nestedRows/nestedRows.mjs +139 -180
- package/plugins/nestedRows/ui/contextMenu.js +11 -15
- package/plugins/nestedRows/ui/contextMenu.mjs +10 -14
- 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 +15 -19
- package/plugins/touchScroll/touchScroll.mjs +16 -20
- 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 +2 -16
- package/selection/highlight/visualSelection.mjs +2 -16
- package/selection/selection.js +60 -255
- package/selection/selection.mjs +59 -254
- package/selection/transformation.js +101 -175
- package/selection/transformation.mjs +101 -175
- 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 +2 -2
- package/shortcutContexts/grid.mjs +2 -2
- package/shortcuts/context.js +1 -2
- package/shortcuts/context.mjs +1 -2
- package/tableView.js +52 -98
- package/tableView.mjs +52 -98
- package/translations/changesObservable/observable.js +21 -38
- package/translations/changesObservable/observable.mjs +21 -38
- package/translations/changesObservable/observer.js +7 -12
- package/translations/changesObservable/observer.mjs +6 -11
- 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 +26 -44
- package/utils/interval.mjs +26 -44
- package/core/viewportScroll/scrollStrategies/focusScroll.js +0 -15
- package/core/viewportScroll/scrollStrategies/focusScroll.mjs +0 -11
- package/plugins/mergeCells/focusOrder.js +0 -327
- package/plugins/mergeCells/focusOrder.mjs +0 -322
@@ -1,5 +1,5 @@
|
|
1
|
-
import "core-js/modules/es.array.push.js";
|
2
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
+
import "core-js/modules/es.array.push.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,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
-
require("core-js/modules/es.json.stringify.js");
|
5
|
-
require("core-js/modules/es.array.push.js");
|
6
4
|
require("core-js/modules/es.error.cause.js");
|
5
|
+
require("core-js/modules/es.array.push.js");
|
6
|
+
require("core-js/modules/es.json.stringify.js");
|
7
7
|
var _array = require("../../helpers/array");
|
8
8
|
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; }
|
9
9
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import "core-js/modules/es.json.stringify.js";
|
2
|
-
import "core-js/modules/es.array.push.js";
|
3
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
+
import "core-js/modules/es.array.push.js";
|
3
|
+
import "core-js/modules/es.json.stringify.js";
|
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
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
6
6
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
package/plugins/search/search.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
-
require("core-js/modules/es.array.push.js");
|
5
4
|
require("core-js/modules/es.error.cause.js");
|
5
|
+
require("core-js/modules/es.array.push.js");
|
6
6
|
var _base = require("../base");
|
7
7
|
var _object = require("../../helpers/object");
|
8
8
|
var _number = require("../../helpers/number");
|
@@ -12,7 +12,7 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
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
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
14
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
|
-
function
|
15
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
16
16
|
const PLUGIN_KEY = exports.PLUGIN_KEY = 'search';
|
17
17
|
const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 190;
|
18
18
|
const DEFAULT_SEARCH_RESULT_CLASS = 'htSearchResult';
|
@@ -62,7 +62,7 @@ const DEFAULT_QUERY_METHOD = function (query, value, cellProperties) {
|
|
62
62
|
* searchPlugin.setSearchResultClass(customClass);
|
63
63
|
* ```
|
64
64
|
*/
|
65
|
-
var
|
65
|
+
var _Search_brand = /*#__PURE__*/new WeakSet();
|
66
66
|
class Search extends _base.BasePlugin {
|
67
67
|
constructor() {
|
68
68
|
super(...arguments);
|
@@ -76,7 +76,7 @@ class Search extends _base.BasePlugin {
|
|
76
76
|
* @param {string} value Value of the rendered cell.
|
77
77
|
* @param {object} cellProperties Object containing the cell's properties.
|
78
78
|
*/
|
79
|
-
_classPrivateMethodInitSpec(this,
|
79
|
+
_classPrivateMethodInitSpec(this, _Search_brand);
|
80
80
|
/**
|
81
81
|
* Function called during querying for each cell from the {@link DataMap}.
|
82
82
|
*
|
@@ -129,7 +129,7 @@ class Search extends _base.BasePlugin {
|
|
129
129
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
130
130
|
args[_key] = arguments[_key];
|
131
131
|
}
|
132
|
-
return
|
132
|
+
return _assertClassBrand(_Search_brand, _this, _onBeforeRenderer).call(_this, ...args);
|
133
133
|
});
|
134
134
|
super.enablePlugin();
|
135
135
|
}
|
@@ -143,7 +143,7 @@ class Search extends _base.BasePlugin {
|
|
143
143
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
144
144
|
args[_key2] = arguments[_key2];
|
145
145
|
}
|
146
|
-
return
|
146
|
+
return _assertClassBrand(_Search_brand, _this2, _onBeforeRenderer).call(_this2, ...args);
|
147
147
|
};
|
148
148
|
this.hot.addHook('beforeRenderer', beforeRendererCallback);
|
149
149
|
this.hot.addHookOnce('afterViewRender', () => {
|
@@ -283,7 +283,7 @@ class Search extends _base.BasePlugin {
|
|
283
283
|
}
|
284
284
|
}
|
285
285
|
exports.Search = Search;
|
286
|
-
function
|
286
|
+
function _onBeforeRenderer(TD, row, col, prop, value, cellProperties) {
|
287
287
|
// TODO: #4972
|
288
288
|
const className = cellProperties.className || [];
|
289
289
|
let classArray = [];
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import "core-js/modules/es.array.push.js";
|
2
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
+
import "core-js/modules/es.array.push.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
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
|
8
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
9
9
|
import { BasePlugin } from "../base/index.mjs";
|
10
10
|
import { isObject } from "../../helpers/object.mjs";
|
11
11
|
import { rangeEach } from "../../helpers/number.mjs";
|
@@ -59,7 +59,7 @@ const DEFAULT_QUERY_METHOD = function (query, value, cellProperties) {
|
|
59
59
|
* searchPlugin.setSearchResultClass(customClass);
|
60
60
|
* ```
|
61
61
|
*/
|
62
|
-
var
|
62
|
+
var _Search_brand = /*#__PURE__*/new WeakSet();
|
63
63
|
export class Search extends BasePlugin {
|
64
64
|
constructor() {
|
65
65
|
super(...arguments);
|
@@ -73,7 +73,7 @@ export class Search extends BasePlugin {
|
|
73
73
|
* @param {string} value Value of the rendered cell.
|
74
74
|
* @param {object} cellProperties Object containing the cell's properties.
|
75
75
|
*/
|
76
|
-
_classPrivateMethodInitSpec(this,
|
76
|
+
_classPrivateMethodInitSpec(this, _Search_brand);
|
77
77
|
/**
|
78
78
|
* Function called during querying for each cell from the {@link DataMap}.
|
79
79
|
*
|
@@ -126,7 +126,7 @@ export class Search extends BasePlugin {
|
|
126
126
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
127
127
|
args[_key] = arguments[_key];
|
128
128
|
}
|
129
|
-
return
|
129
|
+
return _assertClassBrand(_Search_brand, _this, _onBeforeRenderer).call(_this, ...args);
|
130
130
|
});
|
131
131
|
super.enablePlugin();
|
132
132
|
}
|
@@ -140,7 +140,7 @@ export class Search extends BasePlugin {
|
|
140
140
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
141
141
|
args[_key2] = arguments[_key2];
|
142
142
|
}
|
143
|
-
return
|
143
|
+
return _assertClassBrand(_Search_brand, _this2, _onBeforeRenderer).call(_this2, ...args);
|
144
144
|
};
|
145
145
|
this.hot.addHook('beforeRenderer', beforeRendererCallback);
|
146
146
|
this.hot.addHookOnce('afterViewRender', () => {
|
@@ -279,7 +279,7 @@ export class Search extends BasePlugin {
|
|
279
279
|
super.destroy();
|
280
280
|
}
|
281
281
|
}
|
282
|
-
function
|
282
|
+
function _onBeforeRenderer(TD, row, col, prop, value, cellProperties) {
|
283
283
|
// TODO: #4972
|
284
284
|
const className = cellProperties.className || [];
|
285
285
|
let classArray = [];
|
@@ -12,7 +12,7 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
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
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
14
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
|
-
function
|
15
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
16
16
|
const PLUGIN_KEY = exports.PLUGIN_KEY = 'touchScroll';
|
17
17
|
const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 200;
|
18
18
|
|
@@ -21,24 +21,14 @@ const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 200;
|
|
21
21
|
* @plugin TouchScroll
|
22
22
|
* @class TouchScroll
|
23
23
|
*/
|
24
|
-
var
|
25
|
-
var _onBeforeTouchScroll = /*#__PURE__*/new WeakSet();
|
26
|
-
var _onAfterMomentumScroll = /*#__PURE__*/new WeakSet();
|
24
|
+
var _TouchScroll_brand = /*#__PURE__*/new WeakSet();
|
27
25
|
class TouchScroll extends _base.BasePlugin {
|
28
26
|
constructor() {
|
29
27
|
super(...arguments);
|
30
|
-
/**
|
31
|
-
* After momentum scroll listener.
|
32
|
-
*/
|
33
|
-
_classPrivateMethodInitSpec(this, _onAfterMomentumScroll);
|
34
|
-
/**
|
35
|
-
* Touch scroll listener.
|
36
|
-
*/
|
37
|
-
_classPrivateMethodInitSpec(this, _onBeforeTouchScroll);
|
38
28
|
/**
|
39
29
|
* After view render listener.
|
40
30
|
*/
|
41
|
-
_classPrivateMethodInitSpec(this,
|
31
|
+
_classPrivateMethodInitSpec(this, _TouchScroll_brand);
|
42
32
|
/**
|
43
33
|
* Collection of scrollbars to update.
|
44
34
|
*
|
@@ -91,7 +81,7 @@ class TouchScroll extends _base.BasePlugin {
|
|
91
81
|
if (this.enabled) {
|
92
82
|
return;
|
93
83
|
}
|
94
|
-
this.addHook('afterViewRender', () =>
|
84
|
+
this.addHook('afterViewRender', () => _assertClassBrand(_TouchScroll_brand, this, _onAfterViewRender).call(this));
|
95
85
|
this.registerEvents();
|
96
86
|
super.enablePlugin();
|
97
87
|
}
|
@@ -117,12 +107,12 @@ class TouchScroll extends _base.BasePlugin {
|
|
117
107
|
* @private
|
118
108
|
*/
|
119
109
|
registerEvents() {
|
120
|
-
this.addHook('beforeTouchScroll', () =>
|
121
|
-
this.addHook('afterMomentumScroll', () =>
|
110
|
+
this.addHook('beforeTouchScroll', () => _assertClassBrand(_TouchScroll_brand, this, _onBeforeTouchScroll).call(this));
|
111
|
+
this.addHook('afterMomentumScroll', () => _assertClassBrand(_TouchScroll_brand, this, _onAfterMomentumScroll).call(this));
|
122
112
|
}
|
123
113
|
}
|
124
114
|
exports.TouchScroll = TouchScroll;
|
125
|
-
function
|
115
|
+
function _onAfterViewRender() {
|
126
116
|
if (this.lockedCollection) {
|
127
117
|
return;
|
128
118
|
}
|
@@ -163,13 +153,19 @@ function _onAfterViewRender2() {
|
|
163
153
|
this.clones.push(bottomInlineStartCornerOverlay.clone.wtTable.holder.parentNode);
|
164
154
|
}
|
165
155
|
}
|
166
|
-
|
156
|
+
/**
|
157
|
+
* Touch scroll listener.
|
158
|
+
*/
|
159
|
+
function _onBeforeTouchScroll() {
|
167
160
|
this.freezeOverlays = true;
|
168
161
|
(0, _array.arrayEach)(this.clones, clone => {
|
169
162
|
(0, _element.addClass)(clone, 'hide-tween');
|
170
163
|
});
|
171
164
|
}
|
172
|
-
|
165
|
+
/**
|
166
|
+
* After momentum scroll listener.
|
167
|
+
*/
|
168
|
+
function _onAfterMomentumScroll() {
|
173
169
|
this.freezeOverlays = false;
|
174
170
|
(0, _array.arrayEach)(this.clones, clone => {
|
175
171
|
(0, _element.removeClass)(clone, 'hide-tween');
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import "core-js/modules/es.array.push.js";
|
2
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
+
import "core-js/modules/es.array.push.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
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
|
8
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
9
9
|
import { addClass, removeClass } from "../../helpers/dom/element.mjs";
|
10
10
|
import { arrayEach } from "../../helpers/array.mjs";
|
11
11
|
import { BasePlugin } from "../base/index.mjs";
|
@@ -18,24 +18,14 @@ export const PLUGIN_PRIORITY = 200;
|
|
18
18
|
* @plugin TouchScroll
|
19
19
|
* @class TouchScroll
|
20
20
|
*/
|
21
|
-
var
|
22
|
-
var _onBeforeTouchScroll = /*#__PURE__*/new WeakSet();
|
23
|
-
var _onAfterMomentumScroll = /*#__PURE__*/new WeakSet();
|
21
|
+
var _TouchScroll_brand = /*#__PURE__*/new WeakSet();
|
24
22
|
export class TouchScroll extends BasePlugin {
|
25
23
|
constructor() {
|
26
24
|
super(...arguments);
|
27
|
-
/**
|
28
|
-
* After momentum scroll listener.
|
29
|
-
*/
|
30
|
-
_classPrivateMethodInitSpec(this, _onAfterMomentumScroll);
|
31
|
-
/**
|
32
|
-
* Touch scroll listener.
|
33
|
-
*/
|
34
|
-
_classPrivateMethodInitSpec(this, _onBeforeTouchScroll);
|
35
25
|
/**
|
36
26
|
* After view render listener.
|
37
27
|
*/
|
38
|
-
_classPrivateMethodInitSpec(this,
|
28
|
+
_classPrivateMethodInitSpec(this, _TouchScroll_brand);
|
39
29
|
/**
|
40
30
|
* Collection of scrollbars to update.
|
41
31
|
*
|
@@ -88,7 +78,7 @@ export class TouchScroll extends BasePlugin {
|
|
88
78
|
if (this.enabled) {
|
89
79
|
return;
|
90
80
|
}
|
91
|
-
this.addHook('afterViewRender', () =>
|
81
|
+
this.addHook('afterViewRender', () => _assertClassBrand(_TouchScroll_brand, this, _onAfterViewRender).call(this));
|
92
82
|
this.registerEvents();
|
93
83
|
super.enablePlugin();
|
94
84
|
}
|
@@ -114,11 +104,11 @@ export class TouchScroll extends BasePlugin {
|
|
114
104
|
* @private
|
115
105
|
*/
|
116
106
|
registerEvents() {
|
117
|
-
this.addHook('beforeTouchScroll', () =>
|
118
|
-
this.addHook('afterMomentumScroll', () =>
|
107
|
+
this.addHook('beforeTouchScroll', () => _assertClassBrand(_TouchScroll_brand, this, _onBeforeTouchScroll).call(this));
|
108
|
+
this.addHook('afterMomentumScroll', () => _assertClassBrand(_TouchScroll_brand, this, _onAfterMomentumScroll).call(this));
|
119
109
|
}
|
120
110
|
}
|
121
|
-
function
|
111
|
+
function _onAfterViewRender() {
|
122
112
|
if (this.lockedCollection) {
|
123
113
|
return;
|
124
114
|
}
|
@@ -159,13 +149,19 @@ function _onAfterViewRender2() {
|
|
159
149
|
this.clones.push(bottomInlineStartCornerOverlay.clone.wtTable.holder.parentNode);
|
160
150
|
}
|
161
151
|
}
|
162
|
-
|
152
|
+
/**
|
153
|
+
* Touch scroll listener.
|
154
|
+
*/
|
155
|
+
function _onBeforeTouchScroll() {
|
163
156
|
this.freezeOverlays = true;
|
164
157
|
arrayEach(this.clones, clone => {
|
165
158
|
addClass(clone, 'hide-tween');
|
166
159
|
});
|
167
160
|
}
|
168
|
-
|
161
|
+
/**
|
162
|
+
* After momentum scroll listener.
|
163
|
+
*/
|
164
|
+
function _onAfterMomentumScroll() {
|
169
165
|
this.freezeOverlays = false;
|
170
166
|
arrayEach(this.clones, clone => {
|
171
167
|
removeClass(clone, 'hide-tween');
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
-
require("core-js/modules/es.array.push.js");
|
5
4
|
require("core-js/modules/es.error.cause.js");
|
5
|
+
require("core-js/modules/es.array.push.js");
|
6
6
|
var _base = require("../base");
|
7
7
|
var _translations = require("../../translations");
|
8
8
|
var _array = require("../../helpers/array");
|
@@ -11,7 +11,7 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
11
11
|
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; }
|
12
12
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
13
13
|
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); }
|
14
|
-
function
|
14
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
15
15
|
const PLUGIN_KEY = exports.PLUGIN_KEY = 'trimRows';
|
16
16
|
const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 330;
|
17
17
|
|
@@ -102,14 +102,14 @@ const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 330;
|
|
102
102
|
* ```
|
103
103
|
* :::
|
104
104
|
*/
|
105
|
-
var
|
105
|
+
var _TrimRows_brand = /*#__PURE__*/new WeakSet();
|
106
106
|
class TrimRows extends _base.BasePlugin {
|
107
107
|
constructor() {
|
108
108
|
super(...arguments);
|
109
109
|
/**
|
110
110
|
* On map initialized hook callback.
|
111
111
|
*/
|
112
|
-
_classPrivateMethodInitSpec(this,
|
112
|
+
_classPrivateMethodInitSpec(this, _TrimRows_brand);
|
113
113
|
/**
|
114
114
|
* Map of skipped rows by the plugin.
|
115
115
|
*
|
@@ -142,7 +142,7 @@ class TrimRows extends _base.BasePlugin {
|
|
142
142
|
return;
|
143
143
|
}
|
144
144
|
this.trimmedRowsMap = this.hot.rowIndexMapper.registerMap('trimRows', new _translations.TrimmingMap());
|
145
|
-
this.trimmedRowsMap.addLocalHook('init', () =>
|
145
|
+
this.trimmedRowsMap.addLocalHook('init', () => _assertClassBrand(_TrimRows_brand, this, _onMapInit).call(this));
|
146
146
|
super.enablePlugin();
|
147
147
|
}
|
148
148
|
|
@@ -306,7 +306,7 @@ class TrimRows extends _base.BasePlugin {
|
|
306
306
|
}
|
307
307
|
}
|
308
308
|
exports.TrimRows = TrimRows;
|
309
|
-
function
|
309
|
+
function _onMapInit() {
|
310
310
|
const trimmedRows = this.hot.getSettings()[PLUGIN_KEY];
|
311
311
|
if (Array.isArray(trimmedRows)) {
|
312
312
|
this.hot.batchExecution(() => {
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import "core-js/modules/es.array.push.js";
|
2
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
+
import "core-js/modules/es.array.push.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
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
|
8
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
9
9
|
import { BasePlugin } from "../base/index.mjs";
|
10
10
|
import { TrimmingMap } from "../../translations/index.mjs";
|
11
11
|
import { arrayEach, arrayReduce } from "../../helpers/array.mjs";
|
@@ -99,14 +99,14 @@ export const PLUGIN_PRIORITY = 330;
|
|
99
99
|
* ```
|
100
100
|
* :::
|
101
101
|
*/
|
102
|
-
var
|
102
|
+
var _TrimRows_brand = /*#__PURE__*/new WeakSet();
|
103
103
|
export class TrimRows extends BasePlugin {
|
104
104
|
constructor() {
|
105
105
|
super(...arguments);
|
106
106
|
/**
|
107
107
|
* On map initialized hook callback.
|
108
108
|
*/
|
109
|
-
_classPrivateMethodInitSpec(this,
|
109
|
+
_classPrivateMethodInitSpec(this, _TrimRows_brand);
|
110
110
|
/**
|
111
111
|
* Map of skipped rows by the plugin.
|
112
112
|
*
|
@@ -139,7 +139,7 @@ export class TrimRows extends BasePlugin {
|
|
139
139
|
return;
|
140
140
|
}
|
141
141
|
this.trimmedRowsMap = this.hot.rowIndexMapper.registerMap('trimRows', new TrimmingMap());
|
142
|
-
this.trimmedRowsMap.addLocalHook('init', () =>
|
142
|
+
this.trimmedRowsMap.addLocalHook('init', () => _assertClassBrand(_TrimRows_brand, this, _onMapInit).call(this));
|
143
143
|
super.enablePlugin();
|
144
144
|
}
|
145
145
|
|
@@ -302,7 +302,7 @@ export class TrimRows extends BasePlugin {
|
|
302
302
|
super.destroy();
|
303
303
|
}
|
304
304
|
}
|
305
|
-
function
|
305
|
+
function _onMapInit() {
|
306
306
|
const trimmedRows = this.hot.getSettings()[PLUGIN_KEY];
|
307
307
|
if (Array.isArray(trimmedRows)) {
|
308
308
|
this.hot.batchExecution(() => {
|
@@ -139,9 +139,7 @@ function checkboxRenderer(hotInstance, TD, row, col, prop, value, cellProperties
|
|
139
139
|
const shortcutManager = hotInstance.getShortcutManager();
|
140
140
|
const gridContext = shortcutManager.getContext('grid');
|
141
141
|
const config = {
|
142
|
-
group: SHORTCUTS_GROUP
|
143
|
-
relativeToGroup: _shortcutContexts.EDITOR_EDIT_GROUP,
|
144
|
-
position: 'before'
|
142
|
+
group: SHORTCUTS_GROUP
|
145
143
|
};
|
146
144
|
gridContext.addShortcuts([{
|
147
145
|
keys: [['space']],
|
@@ -155,16 +153,15 @@ function checkboxRenderer(hotInstance, TD, row, col, prop, value, cellProperties
|
|
155
153
|
changeSelectedCheckboxesState();
|
156
154
|
return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
|
157
155
|
},
|
158
|
-
runOnlyIf: () =>
|
159
|
-
var _hotInstance$getSelec;
|
160
|
-
return hotInstance.getSettings().enterBeginsEditing && ((_hotInstance$getSelec = hotInstance.getSelectedRangeLast()) === null || _hotInstance$getSelec === void 0 ? void 0 : _hotInstance$getSelec.isSingle());
|
161
|
-
}
|
156
|
+
runOnlyIf: () => hotInstance.getSettings().enterBeginsEditing
|
162
157
|
}, {
|
163
158
|
keys: [['delete'], ['backspace']],
|
164
159
|
callback: () => {
|
165
160
|
changeSelectedCheckboxesState(true);
|
166
161
|
return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
|
167
|
-
}
|
162
|
+
},
|
163
|
+
relativeToGroup: _shortcutContexts.EDITOR_EDIT_GROUP,
|
164
|
+
position: 'before'
|
168
165
|
}], config);
|
169
166
|
}
|
170
167
|
|
@@ -134,9 +134,7 @@ export function checkboxRenderer(hotInstance, TD, row, col, prop, value, cellPro
|
|
134
134
|
const shortcutManager = hotInstance.getShortcutManager();
|
135
135
|
const gridContext = shortcutManager.getContext('grid');
|
136
136
|
const config = {
|
137
|
-
group: SHORTCUTS_GROUP
|
138
|
-
relativeToGroup: SHORTCUTS_GROUP_EDITOR,
|
139
|
-
position: 'before'
|
137
|
+
group: SHORTCUTS_GROUP
|
140
138
|
};
|
141
139
|
gridContext.addShortcuts([{
|
142
140
|
keys: [['space']],
|
@@ -150,16 +148,15 @@ export function checkboxRenderer(hotInstance, TD, row, col, prop, value, cellPro
|
|
150
148
|
changeSelectedCheckboxesState();
|
151
149
|
return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
|
152
150
|
},
|
153
|
-
runOnlyIf: () =>
|
154
|
-
var _hotInstance$getSelec;
|
155
|
-
return hotInstance.getSettings().enterBeginsEditing && ((_hotInstance$getSelec = hotInstance.getSelectedRangeLast()) === null || _hotInstance$getSelec === void 0 ? void 0 : _hotInstance$getSelec.isSingle());
|
156
|
-
}
|
151
|
+
runOnlyIf: () => hotInstance.getSettings().enterBeginsEditing
|
157
152
|
}, {
|
158
153
|
keys: [['delete'], ['backspace']],
|
159
154
|
callback: () => {
|
160
155
|
changeSelectedCheckboxesState(true);
|
161
156
|
return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
|
162
|
-
}
|
157
|
+
},
|
158
|
+
relativeToGroup: SHORTCUTS_GROUP_EDITOR,
|
159
|
+
position: 'before'
|
163
160
|
}], config);
|
164
161
|
}
|
165
162
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
-
require("core-js/modules/es.array.push.js");
|
5
4
|
require("core-js/modules/es.error.cause.js");
|
5
|
+
require("core-js/modules/es.array.push.js");
|
6
6
|
var _activeHeader = require("./types/activeHeader");
|
7
7
|
var _areaLayered = require("./types/areaLayered");
|
8
8
|
var _area = require("./types/area");
|
@@ -28,7 +28,7 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
28
28
|
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; }
|
29
29
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
30
30
|
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); }
|
31
|
-
function
|
31
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
32
32
|
/**
|
33
33
|
* Highlight class responsible for managing Walkontable Selection classes.
|
34
34
|
*
|
@@ -44,7 +44,7 @@ function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(
|
|
44
44
|
* @class Highlight
|
45
45
|
* @util
|
46
46
|
*/
|
47
|
-
var
|
47
|
+
var _Highlight_brand = /*#__PURE__*/new WeakSet();
|
48
48
|
_Symbol$iterator = Symbol.iterator;
|
49
49
|
class Highlight {
|
50
50
|
constructor(options) {
|
@@ -55,7 +55,7 @@ class Highlight {
|
|
55
55
|
* @param {Function} highlightFactory The function factory.
|
56
56
|
* @returns {VisualSelection}
|
57
57
|
*/
|
58
|
-
_classPrivateMethodInitSpec(this,
|
58
|
+
_classPrivateMethodInitSpec(this, _Highlight_brand);
|
59
59
|
/**
|
60
60
|
* Options consumed by Highlight class and Walkontable Selection classes.
|
61
61
|
*
|
@@ -223,7 +223,7 @@ class Highlight {
|
|
223
223
|
* @returns {Selection}
|
224
224
|
*/
|
225
225
|
createLayeredArea() {
|
226
|
-
return
|
226
|
+
return _assertClassBrand(_Highlight_brand, this, _createHighlight).call(this, this.layeredAreas, _areaLayered.createHighlight);
|
227
227
|
}
|
228
228
|
|
229
229
|
/**
|
@@ -242,7 +242,7 @@ class Highlight {
|
|
242
242
|
* @returns {Selection}
|
243
243
|
*/
|
244
244
|
createArea() {
|
245
|
-
return
|
245
|
+
return _assertClassBrand(_Highlight_brand, this, _createHighlight).call(this, this.areas, _area.createHighlight);
|
246
246
|
}
|
247
247
|
|
248
248
|
/**
|
@@ -261,7 +261,7 @@ class Highlight {
|
|
261
261
|
* @returns {Selection}
|
262
262
|
*/
|
263
263
|
createRowHeader() {
|
264
|
-
return
|
264
|
+
return _assertClassBrand(_Highlight_brand, this, _createHighlight).call(this, this.rowHeaders, _header.createHighlight);
|
265
265
|
}
|
266
266
|
|
267
267
|
/**
|
@@ -280,7 +280,7 @@ class Highlight {
|
|
280
280
|
* @returns {Selection}
|
281
281
|
*/
|
282
282
|
createColumnHeader() {
|
283
|
-
return
|
283
|
+
return _assertClassBrand(_Highlight_brand, this, _createHighlight).call(this, this.columnHeaders, _header.createHighlight);
|
284
284
|
}
|
285
285
|
|
286
286
|
/**
|
@@ -299,7 +299,7 @@ class Highlight {
|
|
299
299
|
* @returns {Selection}
|
300
300
|
*/
|
301
301
|
createActiveRowHeader() {
|
302
|
-
return
|
302
|
+
return _assertClassBrand(_Highlight_brand, this, _createHighlight).call(this, this.activeRowHeaders, _activeHeader.createHighlight);
|
303
303
|
}
|
304
304
|
|
305
305
|
/**
|
@@ -318,7 +318,7 @@ class Highlight {
|
|
318
318
|
* @returns {Selection}
|
319
319
|
*/
|
320
320
|
createActiveColumnHeader() {
|
321
|
-
return
|
321
|
+
return _assertClassBrand(_Highlight_brand, this, _createHighlight).call(this, this.activeColumnHeaders, _activeHeader.createHighlight);
|
322
322
|
}
|
323
323
|
|
324
324
|
/**
|
@@ -337,7 +337,7 @@ class Highlight {
|
|
337
337
|
* @returns {Selection}
|
338
338
|
*/
|
339
339
|
createActiveCornerHeader() {
|
340
|
-
return
|
340
|
+
return _assertClassBrand(_Highlight_brand, this, _createHighlight).call(this, this.activeCornerHeaders, _activeHeader.createHighlight);
|
341
341
|
}
|
342
342
|
|
343
343
|
/**
|
@@ -356,7 +356,7 @@ class Highlight {
|
|
356
356
|
* @returns {Selection}
|
357
357
|
*/
|
358
358
|
createRowHighlight() {
|
359
|
-
return
|
359
|
+
return _assertClassBrand(_Highlight_brand, this, _createHighlight).call(this, this.rowHighlights, _row.createHighlight);
|
360
360
|
}
|
361
361
|
|
362
362
|
/**
|
@@ -375,7 +375,7 @@ class Highlight {
|
|
375
375
|
* @returns {Selection}
|
376
376
|
*/
|
377
377
|
createColumnHighlight() {
|
378
|
-
return
|
378
|
+
return _assertClassBrand(_Highlight_brand, this, _createHighlight).call(this, this.columnHighlights, _column.createHighlight);
|
379
379
|
}
|
380
380
|
|
381
381
|
/**
|
@@ -433,7 +433,7 @@ class Highlight {
|
|
433
433
|
return [this.focus, this.fill, ...this.areas.values(), ...this.layeredAreas.values(), ...this.rowHeaders.values(), ...this.columnHeaders.values(), ...this.activeRowHeaders.values(), ...this.activeColumnHeaders.values(), ...this.activeCornerHeaders.values(), ...this.rowHighlights.values(), ...this.columnHighlights.values(), ...this.customSelections][Symbol.iterator]();
|
434
434
|
}
|
435
435
|
}
|
436
|
-
function
|
436
|
+
function _createHighlight(cacheMap, highlightFactory) {
|
437
437
|
const layerLevel = this.layerLevel;
|
438
438
|
if (cacheMap.has(layerLevel)) {
|
439
439
|
return cacheMap.get(layerLevel);
|