handsontable 0.0.0-next-200799f-20240311 → 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 -79
- package/core.mjs +22 -79
- 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 +7620 -10327
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +277 -277
- package/dist/handsontable.js +5525 -7779
- 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 +355 -595
- package/plugins/mergeCells/mergeCells.mjs +355 -595
- 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 +4 -4
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +4 -4
- 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 -252
- package/selection/selection.mjs +59 -251
- 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 -258
- package/plugins/mergeCells/focusOrder.mjs +0 -253
@@ -11,7 +11,6 @@ var _contextMenu = _interopRequireDefault(require("./ui/contextMenu"));
|
|
11
11
|
var _console = require("../../helpers/console");
|
12
12
|
var _data = require("../../helpers/data");
|
13
13
|
var _translations = require("../../translations");
|
14
|
-
var _shortcutContexts = require("../../shortcutContexts");
|
15
14
|
var _rowMoveController = _interopRequireDefault(require("./utils/rowMoveController"));
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
16
|
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
@@ -20,12 +19,9 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
20
19
|
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; }
|
21
20
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
22
21
|
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); }
|
23
|
-
function _classPrivateFieldGet(
|
24
|
-
function
|
25
|
-
function
|
26
|
-
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
27
|
-
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; } }
|
28
|
-
function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
|
22
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
23
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
24
|
+
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"); }
|
29
25
|
const PLUGIN_KEY = exports.PLUGIN_KEY = 'nestedRows';
|
30
26
|
const PLUGIN_PRIORITY = exports.PLUGIN_PRIORITY = 300;
|
31
27
|
const SHORTCUTS_GROUP = PLUGIN_KEY;
|
@@ -45,125 +41,10 @@ const WRONG_DATA_TYPE_ERROR = 'The Nested Rows plugin requires an Array of Objec
|
|
45
41
|
*/
|
46
42
|
var _skipRender = /*#__PURE__*/new WeakMap();
|
47
43
|
var _skipCoreAPIModifiers = /*#__PURE__*/new WeakMap();
|
48
|
-
var
|
49
|
-
var _onBeforeOnCellMouseDown = /*#__PURE__*/new WeakSet();
|
50
|
-
var _onFilterData = /*#__PURE__*/new WeakSet();
|
51
|
-
var _onAfterContextMenuDefaultOptions = /*#__PURE__*/new WeakSet();
|
52
|
-
var _onAfterGetRowHeader = /*#__PURE__*/new WeakSet();
|
53
|
-
var _onModifyRowHeaderWidth = /*#__PURE__*/new WeakSet();
|
54
|
-
var _onAfterRemoveRow = /*#__PURE__*/new WeakSet();
|
55
|
-
var _onBeforeRemoveRow = /*#__PURE__*/new WeakSet();
|
56
|
-
var _onBeforeAddChild = /*#__PURE__*/new WeakSet();
|
57
|
-
var _onAfterAddChild = /*#__PURE__*/new WeakSet();
|
58
|
-
var _onBeforeDetachChild = /*#__PURE__*/new WeakSet();
|
59
|
-
var _onAfterDetachChild = /*#__PURE__*/new WeakSet();
|
60
|
-
var _onAfterCreateRow = /*#__PURE__*/new WeakSet();
|
61
|
-
var _onAfterInit = /*#__PURE__*/new WeakSet();
|
62
|
-
var _onBeforeViewRender = /*#__PURE__*/new WeakSet();
|
63
|
-
var _onBeforeLoadData = /*#__PURE__*/new WeakSet();
|
44
|
+
var _NestedRows_brand = /*#__PURE__*/new WeakSet();
|
64
45
|
class NestedRows extends _base.BasePlugin {
|
65
46
|
constructor() {
|
66
47
|
super(...arguments);
|
67
|
-
/**
|
68
|
-
* `beforeLoadData` hook callback.
|
69
|
-
*
|
70
|
-
* @param {Array} data The source data.
|
71
|
-
*/
|
72
|
-
_classPrivateMethodInitSpec(this, _onBeforeLoadData);
|
73
|
-
/**
|
74
|
-
* `beforeViewRender` hook callback.
|
75
|
-
*
|
76
|
-
* @param {boolean} force Indicates if the render call was triggered by a change of settings or data.
|
77
|
-
* @param {object} skipRender An object, holder for skipRender functionality.
|
78
|
-
*/
|
79
|
-
_classPrivateMethodInitSpec(this, _onBeforeViewRender);
|
80
|
-
/**
|
81
|
-
* `afterInit` hook callback.
|
82
|
-
*/
|
83
|
-
_classPrivateMethodInitSpec(this, _onAfterInit);
|
84
|
-
/**
|
85
|
-
* `afterCreateRow` hook callback.
|
86
|
-
*/
|
87
|
-
_classPrivateMethodInitSpec(this, _onAfterCreateRow);
|
88
|
-
/**
|
89
|
-
* `afterDetachChild` hook callback.
|
90
|
-
*
|
91
|
-
* @param {object} parent Parent element.
|
92
|
-
* @param {object} element New child element.
|
93
|
-
* @param {number} finalElementRowIndex The final row index of the detached element.
|
94
|
-
*/
|
95
|
-
_classPrivateMethodInitSpec(this, _onAfterDetachChild);
|
96
|
-
/**
|
97
|
-
* `beforeDetachChild` hook callback.
|
98
|
-
*/
|
99
|
-
_classPrivateMethodInitSpec(this, _onBeforeDetachChild);
|
100
|
-
/**
|
101
|
-
* `afterAddChild` hook callback.
|
102
|
-
*
|
103
|
-
* @param {object} parent Parent element.
|
104
|
-
* @param {object} element New child element.
|
105
|
-
*/
|
106
|
-
_classPrivateMethodInitSpec(this, _onAfterAddChild);
|
107
|
-
/**
|
108
|
-
* `beforeAddChild` hook callback.
|
109
|
-
*/
|
110
|
-
_classPrivateMethodInitSpec(this, _onBeforeAddChild);
|
111
|
-
/**
|
112
|
-
* Callback for the `beforeRemoveRow` change list of removed physical indexes by reference. Removing parent node
|
113
|
-
* has effect in removing children nodes.
|
114
|
-
*
|
115
|
-
* @param {number} index Visual index of starter row.
|
116
|
-
* @param {number} amount Amount of rows to be removed.
|
117
|
-
* @param {Array} physicalRows List of physical indexes.
|
118
|
-
*/
|
119
|
-
_classPrivateMethodInitSpec(this, _onBeforeRemoveRow);
|
120
|
-
/**
|
121
|
-
* `onAfterRemoveRow` hook callback.
|
122
|
-
*
|
123
|
-
* @param {number} index Removed row.
|
124
|
-
* @param {number} amount Amount of removed rows.
|
125
|
-
* @param {Array} logicRows An array of the removed physical rows.
|
126
|
-
* @param {string} source Source of action.
|
127
|
-
*/
|
128
|
-
_classPrivateMethodInitSpec(this, _onAfterRemoveRow);
|
129
|
-
/**
|
130
|
-
* `modifyRowHeaderWidth` hook callback.
|
131
|
-
*
|
132
|
-
* @param {number} rowHeaderWidth The initial row header width(s).
|
133
|
-
* @returns {number}
|
134
|
-
*/
|
135
|
-
_classPrivateMethodInitSpec(this, _onModifyRowHeaderWidth);
|
136
|
-
/**
|
137
|
-
* `afterGetRowHeader` hook callback.
|
138
|
-
*
|
139
|
-
* @param {number} row Row index.
|
140
|
-
* @param {HTMLElement} TH Row header element.
|
141
|
-
*/
|
142
|
-
_classPrivateMethodInitSpec(this, _onAfterGetRowHeader);
|
143
|
-
/**
|
144
|
-
* `afterContextMenuDefaultOptions` hook callback.
|
145
|
-
*
|
146
|
-
* @param {object} defaultOptions The default context menu items order.
|
147
|
-
* @returns {boolean}
|
148
|
-
*/
|
149
|
-
_classPrivateMethodInitSpec(this, _onAfterContextMenuDefaultOptions);
|
150
|
-
/**
|
151
|
-
* Provide custom source data filtering. It's handled by core method and replaces the native filtering.
|
152
|
-
*
|
153
|
-
* @param {number} index The index where the data filtering starts.
|
154
|
-
* @param {number} amount An amount of rows which filtering applies to.
|
155
|
-
* @param {number} physicalRows Physical row indexes.
|
156
|
-
* @returns {Array}
|
157
|
-
*/
|
158
|
-
_classPrivateMethodInitSpec(this, _onFilterData);
|
159
|
-
/**
|
160
|
-
* `beforeOnCellMousedown` hook callback.
|
161
|
-
*
|
162
|
-
* @param {MouseEvent} event Mousedown event.
|
163
|
-
* @param {object} coords Cell coords.
|
164
|
-
* @param {HTMLElement} TD Clicked cell.
|
165
|
-
*/
|
166
|
-
_classPrivateMethodInitSpec(this, _onBeforeOnCellMouseDown);
|
167
48
|
/**
|
168
49
|
* `beforeRowMove` hook callback.
|
169
50
|
*
|
@@ -178,7 +59,7 @@ class NestedRows extends _base.BasePlugin {
|
|
178
59
|
* @fires Hooks#afterRowMove
|
179
60
|
* @returns {boolean}
|
180
61
|
*/
|
181
|
-
_classPrivateMethodInitSpec(this,
|
62
|
+
_classPrivateMethodInitSpec(this, _NestedRows_brand);
|
182
63
|
/**
|
183
64
|
* Reference to the DataManager instance.
|
184
65
|
*
|
@@ -205,19 +86,13 @@ class NestedRows extends _base.BasePlugin {
|
|
205
86
|
*
|
206
87
|
* @type {boolean}
|
207
88
|
*/
|
208
|
-
_classPrivateFieldInitSpec(this, _skipRender,
|
209
|
-
writable: true,
|
210
|
-
value: false
|
211
|
-
});
|
89
|
+
_classPrivateFieldInitSpec(this, _skipRender, false);
|
212
90
|
/**
|
213
91
|
* Allows skipping the internal Core methods call if set as `true`.
|
214
92
|
*
|
215
93
|
* @type {boolean}
|
216
94
|
*/
|
217
|
-
_classPrivateFieldInitSpec(this, _skipCoreAPIModifiers,
|
218
|
-
writable: true,
|
219
|
-
value: false
|
220
|
-
});
|
95
|
+
_classPrivateFieldInitSpec(this, _skipCoreAPIModifiers, false);
|
221
96
|
}
|
222
97
|
static get PLUGIN_KEY() {
|
223
98
|
return PLUGIN_KEY;
|
@@ -253,13 +128,13 @@ class NestedRows extends _base.BasePlugin {
|
|
253
128
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
254
129
|
args[_key] = arguments[_key];
|
255
130
|
}
|
256
|
-
return
|
131
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onAfterInit).call(_this, ...args);
|
257
132
|
});
|
258
133
|
this.addHook('beforeViewRender', function () {
|
259
134
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
260
135
|
args[_key2] = arguments[_key2];
|
261
136
|
}
|
262
|
-
return
|
137
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onBeforeViewRender).call(_this, ...args);
|
263
138
|
});
|
264
139
|
this.addHook('modifyRowData', function () {
|
265
140
|
return _this.onModifyRowData(...arguments);
|
@@ -274,82 +149,82 @@ class NestedRows extends _base.BasePlugin {
|
|
274
149
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
275
150
|
args[_key3] = arguments[_key3];
|
276
151
|
}
|
277
|
-
return
|
152
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onFilterData).call(_this, ...args);
|
278
153
|
});
|
279
154
|
this.addHook('afterContextMenuDefaultOptions', function () {
|
280
155
|
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
281
156
|
args[_key4] = arguments[_key4];
|
282
157
|
}
|
283
|
-
return
|
158
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onAfterContextMenuDefaultOptions).call(_this, ...args);
|
284
159
|
});
|
285
160
|
this.addHook('afterGetRowHeader', function () {
|
286
161
|
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
287
162
|
args[_key5] = arguments[_key5];
|
288
163
|
}
|
289
|
-
return
|
164
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onAfterGetRowHeader).call(_this, ...args);
|
290
165
|
});
|
291
166
|
this.addHook('beforeOnCellMouseDown', function () {
|
292
167
|
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
293
168
|
args[_key6] = arguments[_key6];
|
294
169
|
}
|
295
|
-
return
|
170
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onBeforeOnCellMouseDown).call(_this, ...args);
|
296
171
|
});
|
297
172
|
this.addHook('beforeRemoveRow', function () {
|
298
173
|
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
299
174
|
args[_key7] = arguments[_key7];
|
300
175
|
}
|
301
|
-
return
|
176
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onBeforeRemoveRow).call(_this, ...args);
|
302
177
|
});
|
303
178
|
this.addHook('afterRemoveRow', function () {
|
304
179
|
for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
|
305
180
|
args[_key8] = arguments[_key8];
|
306
181
|
}
|
307
|
-
return
|
182
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onAfterRemoveRow).call(_this, ...args);
|
308
183
|
});
|
309
184
|
this.addHook('beforeAddChild', function () {
|
310
185
|
for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
|
311
186
|
args[_key9] = arguments[_key9];
|
312
187
|
}
|
313
|
-
return
|
188
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onBeforeAddChild).call(_this, ...args);
|
314
189
|
});
|
315
190
|
this.addHook('afterAddChild', function () {
|
316
191
|
for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
|
317
192
|
args[_key10] = arguments[_key10];
|
318
193
|
}
|
319
|
-
return
|
194
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onAfterAddChild).call(_this, ...args);
|
320
195
|
});
|
321
196
|
this.addHook('beforeDetachChild', function () {
|
322
197
|
for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
|
323
198
|
args[_key11] = arguments[_key11];
|
324
199
|
}
|
325
|
-
return
|
200
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onBeforeDetachChild).call(_this, ...args);
|
326
201
|
});
|
327
202
|
this.addHook('afterDetachChild', function () {
|
328
203
|
for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
|
329
204
|
args[_key12] = arguments[_key12];
|
330
205
|
}
|
331
|
-
return
|
206
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onAfterDetachChild).call(_this, ...args);
|
332
207
|
});
|
333
208
|
this.addHook('modifyRowHeaderWidth', function () {
|
334
209
|
for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
|
335
210
|
args[_key13] = arguments[_key13];
|
336
211
|
}
|
337
|
-
return
|
212
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onModifyRowHeaderWidth).call(_this, ...args);
|
338
213
|
});
|
339
214
|
this.addHook('afterCreateRow', function () {
|
340
215
|
for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
|
341
216
|
args[_key14] = arguments[_key14];
|
342
217
|
}
|
343
|
-
return
|
218
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onAfterCreateRow).call(_this, ...args);
|
344
219
|
});
|
345
220
|
this.addHook('beforeRowMove', function () {
|
346
221
|
for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
|
347
222
|
args[_key15] = arguments[_key15];
|
348
223
|
}
|
349
|
-
return
|
224
|
+
return _assertClassBrand(_NestedRows_brand, _this, _onBeforeRowMove).call(_this, ...args);
|
350
225
|
});
|
351
|
-
this.addHook('beforeLoadData', data =>
|
352
|
-
this.addHook('beforeUpdateData', data =>
|
226
|
+
this.addHook('beforeLoadData', data => _assertClassBrand(_NestedRows_brand, this, _onBeforeLoadData).call(this, data));
|
227
|
+
this.addHook('beforeUpdateData', data => _assertClassBrand(_NestedRows_brand, this, _onBeforeLoadData).call(this, data));
|
353
228
|
this.registerShortcuts();
|
354
229
|
super.enablePlugin();
|
355
230
|
}
|
@@ -401,18 +276,13 @@ class NestedRows extends _base.BasePlugin {
|
|
401
276
|
this.collapsingUI.collapseChildren(row);
|
402
277
|
}
|
403
278
|
}
|
404
|
-
|
405
|
-
// prevent default Enter behavior (move to the next row within a selection range)
|
406
|
-
return false;
|
407
279
|
},
|
408
280
|
runOnlyIf: () => {
|
409
281
|
var _this$hot$getSelected;
|
410
282
|
const highlight = (_this$hot$getSelected = this.hot.getSelectedRangeLast()) === null || _this$hot$getSelected === void 0 ? void 0 : _this$hot$getSelected.highlight;
|
411
283
|
return highlight && this.hot.selection.isCellVisible(highlight) && highlight.isHeader();
|
412
284
|
},
|
413
|
-
group: SHORTCUTS_GROUP
|
414
|
-
relativeToGroup: _shortcutContexts.EDITOR_EDIT_GROUP,
|
415
|
-
position: 'before'
|
285
|
+
group: SHORTCUTS_GROUP
|
416
286
|
});
|
417
287
|
}
|
418
288
|
|
@@ -431,7 +301,7 @@ class NestedRows extends _base.BasePlugin {
|
|
431
301
|
* @private
|
432
302
|
*/
|
433
303
|
disableCoreAPIModifiers() {
|
434
|
-
_classPrivateFieldSet(
|
304
|
+
_classPrivateFieldSet(_skipCoreAPIModifiers, this, true);
|
435
305
|
}
|
436
306
|
|
437
307
|
/**
|
@@ -440,8 +310,17 @@ class NestedRows extends _base.BasePlugin {
|
|
440
310
|
* @private
|
441
311
|
*/
|
442
312
|
enableCoreAPIModifiers() {
|
443
|
-
_classPrivateFieldSet(
|
313
|
+
_classPrivateFieldSet(_skipCoreAPIModifiers, this, false);
|
444
314
|
}
|
315
|
+
|
316
|
+
/**
|
317
|
+
* `beforeOnCellMousedown` hook callback.
|
318
|
+
*
|
319
|
+
* @param {MouseEvent} event Mousedown event.
|
320
|
+
* @param {object} coords Cell coords.
|
321
|
+
* @param {HTMLElement} TD Clicked cell.
|
322
|
+
*/
|
323
|
+
|
445
324
|
/**
|
446
325
|
* The modifyRowData hook callback.
|
447
326
|
*
|
@@ -450,7 +329,7 @@ class NestedRows extends _base.BasePlugin {
|
|
450
329
|
* @returns {boolean}
|
451
330
|
*/
|
452
331
|
onModifyRowData(row) {
|
453
|
-
if (_classPrivateFieldGet(
|
332
|
+
if (_classPrivateFieldGet(_skipCoreAPIModifiers, this)) {
|
454
333
|
return;
|
455
334
|
}
|
456
335
|
return this.dataManager.getDataObject(row);
|
@@ -463,7 +342,7 @@ class NestedRows extends _base.BasePlugin {
|
|
463
342
|
* @returns {number}
|
464
343
|
*/
|
465
344
|
onModifySourceLength() {
|
466
|
-
if (_classPrivateFieldGet(
|
345
|
+
if (_classPrivateFieldGet(_skipCoreAPIModifiers, this)) {
|
467
346
|
return;
|
468
347
|
}
|
469
348
|
return this.dataManager.countAllRows();
|
@@ -477,12 +356,22 @@ class NestedRows extends _base.BasePlugin {
|
|
477
356
|
* @returns {boolean}
|
478
357
|
*/
|
479
358
|
onBeforeDataSplice(index, amount, element) {
|
480
|
-
if (_classPrivateFieldGet(
|
359
|
+
if (_classPrivateFieldGet(_skipCoreAPIModifiers, this) || this.dataManager.isRowHighestLevel(index)) {
|
481
360
|
return true;
|
482
361
|
}
|
483
362
|
this.dataManager.spliceData(index, amount, element);
|
484
363
|
return false;
|
485
364
|
}
|
365
|
+
|
366
|
+
/**
|
367
|
+
* Provide custom source data filtering. It's handled by core method and replaces the native filtering.
|
368
|
+
*
|
369
|
+
* @param {number} index The index where the data filtering starts.
|
370
|
+
* @param {number} amount An amount of rows which filtering applies to.
|
371
|
+
* @param {number} physicalRows Physical row indexes.
|
372
|
+
* @returns {Array}
|
373
|
+
*/
|
374
|
+
|
486
375
|
/**
|
487
376
|
* Destroys the plugin instance.
|
488
377
|
*/
|
@@ -491,40 +380,74 @@ class NestedRows extends _base.BasePlugin {
|
|
491
380
|
}
|
492
381
|
}
|
493
382
|
exports.NestedRows = NestedRows;
|
494
|
-
function
|
383
|
+
function _onBeforeRowMove(rows, finalIndex, dropIndex, movePossible) {
|
495
384
|
return this.rowMoveController.onBeforeRowMove(rows, finalIndex, dropIndex, movePossible);
|
496
385
|
}
|
497
|
-
function
|
386
|
+
function _onBeforeOnCellMouseDown(event, coords, TD) {
|
498
387
|
this.collapsingUI.toggleState(event, coords, TD);
|
499
388
|
}
|
500
|
-
function
|
389
|
+
function _onFilterData(index, amount, physicalRows) {
|
501
390
|
this.collapsingUI.collapsedRowsStash.stash();
|
502
391
|
this.collapsingUI.collapsedRowsStash.trimStash(physicalRows[0], amount);
|
503
392
|
this.collapsingUI.collapsedRowsStash.shiftStash(physicalRows[0], null, -1 * amount);
|
504
393
|
this.dataManager.filterData(index, amount, physicalRows);
|
505
|
-
_classPrivateFieldSet(
|
394
|
+
_classPrivateFieldSet(_skipRender, this, true);
|
506
395
|
return this.dataManager.getData().slice(); // Data contains reference sometimes.
|
507
396
|
}
|
508
|
-
|
397
|
+
/**
|
398
|
+
* `afterContextMenuDefaultOptions` hook callback.
|
399
|
+
*
|
400
|
+
* @param {object} defaultOptions The default context menu items order.
|
401
|
+
* @returns {boolean}
|
402
|
+
*/
|
403
|
+
function _onAfterContextMenuDefaultOptions(defaultOptions) {
|
509
404
|
return this.contextMenuUI.appendOptions(defaultOptions);
|
510
405
|
}
|
511
|
-
|
406
|
+
/**
|
407
|
+
* `afterGetRowHeader` hook callback.
|
408
|
+
*
|
409
|
+
* @param {number} row Row index.
|
410
|
+
* @param {HTMLElement} TH Row header element.
|
411
|
+
*/
|
412
|
+
function _onAfterGetRowHeader(row, TH) {
|
512
413
|
this.headersUI.appendLevelIndicators(row, TH);
|
513
414
|
}
|
514
|
-
|
415
|
+
/**
|
416
|
+
* `modifyRowHeaderWidth` hook callback.
|
417
|
+
*
|
418
|
+
* @param {number} rowHeaderWidth The initial row header width(s).
|
419
|
+
* @returns {number}
|
420
|
+
*/
|
421
|
+
function _onModifyRowHeaderWidth(rowHeaderWidth) {
|
515
422
|
return Math.max(this.headersUI.rowHeaderWidthCache, rowHeaderWidth);
|
516
423
|
}
|
517
|
-
|
424
|
+
/**
|
425
|
+
* `onAfterRemoveRow` hook callback.
|
426
|
+
*
|
427
|
+
* @param {number} index Removed row.
|
428
|
+
* @param {number} amount Amount of removed rows.
|
429
|
+
* @param {Array} logicRows An array of the removed physical rows.
|
430
|
+
* @param {string} source Source of action.
|
431
|
+
*/
|
432
|
+
function _onAfterRemoveRow(index, amount, logicRows, source) {
|
518
433
|
if (source === this.pluginName) {
|
519
434
|
return;
|
520
435
|
}
|
521
436
|
this.hot._registerTimeout(() => {
|
522
|
-
_classPrivateFieldSet(
|
437
|
+
_classPrivateFieldSet(_skipRender, this, false);
|
523
438
|
this.headersUI.updateRowHeaderWidth();
|
524
439
|
this.collapsingUI.collapsedRowsStash.applyStash();
|
525
440
|
});
|
526
441
|
}
|
527
|
-
|
442
|
+
/**
|
443
|
+
* Callback for the `beforeRemoveRow` change list of removed physical indexes by reference. Removing parent node
|
444
|
+
* has effect in removing children nodes.
|
445
|
+
*
|
446
|
+
* @param {number} index Visual index of starter row.
|
447
|
+
* @param {number} amount Amount of rows to be removed.
|
448
|
+
* @param {Array} physicalRows List of physical indexes.
|
449
|
+
*/
|
450
|
+
function _onBeforeRemoveRow(index, amount, physicalRows) {
|
528
451
|
const modifiedPhysicalRows = Array.from(physicalRows.reduce((removedRows, physicalIndex) => {
|
529
452
|
if (this.dataManager.isParent(physicalIndex)) {
|
530
453
|
const children = this.dataManager.getDataObject(physicalIndex).__children;
|
@@ -546,34 +469,70 @@ function _onBeforeRemoveRow2(index, amount, physicalRows) {
|
|
546
469
|
physicalRows.length = 0;
|
547
470
|
physicalRows.push(...modifiedPhysicalRows);
|
548
471
|
}
|
549
|
-
|
472
|
+
/**
|
473
|
+
* `beforeAddChild` hook callback.
|
474
|
+
*/
|
475
|
+
function _onBeforeAddChild() {
|
550
476
|
this.collapsingUI.collapsedRowsStash.stash();
|
551
477
|
}
|
552
|
-
|
478
|
+
/**
|
479
|
+
* `afterAddChild` hook callback.
|
480
|
+
*
|
481
|
+
* @param {object} parent Parent element.
|
482
|
+
* @param {object} element New child element.
|
483
|
+
*/
|
484
|
+
function _onAfterAddChild(parent, element) {
|
553
485
|
this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(element));
|
554
486
|
this.collapsingUI.collapsedRowsStash.applyStash();
|
555
487
|
this.headersUI.updateRowHeaderWidth();
|
556
488
|
}
|
557
|
-
|
489
|
+
/**
|
490
|
+
* `beforeDetachChild` hook callback.
|
491
|
+
*/
|
492
|
+
function _onBeforeDetachChild() {
|
558
493
|
this.collapsingUI.collapsedRowsStash.stash();
|
559
494
|
}
|
560
|
-
|
495
|
+
/**
|
496
|
+
* `afterDetachChild` hook callback.
|
497
|
+
*
|
498
|
+
* @param {object} parent Parent element.
|
499
|
+
* @param {object} element New child element.
|
500
|
+
* @param {number} finalElementRowIndex The final row index of the detached element.
|
501
|
+
*/
|
502
|
+
function _onAfterDetachChild(parent, element, finalElementRowIndex) {
|
561
503
|
this.collapsingUI.collapsedRowsStash.shiftStash(finalElementRowIndex, null, -1);
|
562
504
|
this.collapsingUI.collapsedRowsStash.applyStash();
|
563
505
|
this.headersUI.updateRowHeaderWidth();
|
564
506
|
}
|
565
|
-
|
507
|
+
/**
|
508
|
+
* `afterCreateRow` hook callback.
|
509
|
+
*/
|
510
|
+
function _onAfterCreateRow() {
|
566
511
|
this.dataManager.rewriteCache();
|
567
512
|
}
|
568
|
-
|
513
|
+
/**
|
514
|
+
* `afterInit` hook callback.
|
515
|
+
*/
|
516
|
+
function _onAfterInit() {
|
569
517
|
this.headersUI.updateRowHeaderWidth();
|
570
518
|
}
|
571
|
-
|
572
|
-
|
519
|
+
/**
|
520
|
+
* `beforeViewRender` hook callback.
|
521
|
+
*
|
522
|
+
* @param {boolean} force Indicates if the render call was triggered by a change of settings or data.
|
523
|
+
* @param {object} skipRender An object, holder for skipRender functionality.
|
524
|
+
*/
|
525
|
+
function _onBeforeViewRender(force, skipRender) {
|
526
|
+
if (_classPrivateFieldGet(_skipRender, this)) {
|
573
527
|
skipRender.skipRender = true;
|
574
528
|
}
|
575
529
|
}
|
576
|
-
|
530
|
+
/**
|
531
|
+
* `beforeLoadData` hook callback.
|
532
|
+
*
|
533
|
+
* @param {Array} data The source data.
|
534
|
+
*/
|
535
|
+
function _onBeforeLoadData(data) {
|
577
536
|
if (!(0, _data.isArrayOfObjects)(data)) {
|
578
537
|
(0, _console.error)(WRONG_DATA_TYPE_ERROR);
|
579
538
|
this.hot.getSettings()[PLUGIN_KEY] = false;
|