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