handsontable 0.0.0-next-af5139c-20230620 → 0.0.0-next-06a64be-20230621
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/3rdparty/walkontable/src/{selection/border/border.js → border.js} +12 -7
- package/3rdparty/walkontable/src/{selection/border/border.mjs → border.mjs} +12 -7
- package/3rdparty/walkontable/src/cell/coords.d.ts +1 -6
- package/3rdparty/walkontable/src/cell/coords.js +12 -61
- package/3rdparty/walkontable/src/cell/coords.mjs +12 -61
- package/3rdparty/walkontable/src/cell/range.d.ts +2 -9
- package/3rdparty/walkontable/src/cell/range.js +7 -44
- package/3rdparty/walkontable/src/cell/range.mjs +7 -44
- package/3rdparty/walkontable/src/core/_base.js +3 -9
- package/3rdparty/walkontable/src/core/_base.mjs +3 -9
- package/3rdparty/walkontable/src/core/clone.js +2 -2
- package/3rdparty/walkontable/src/core/clone.mjs +2 -2
- package/3rdparty/walkontable/src/core/core.js +2 -3
- package/3rdparty/walkontable/src/core/core.mjs +2 -3
- package/3rdparty/walkontable/src/event.js +7 -7
- package/3rdparty/walkontable/src/event.mjs +7 -7
- package/3rdparty/walkontable/src/facade/core.js +2 -2
- package/3rdparty/walkontable/src/facade/core.mjs +2 -2
- package/3rdparty/walkontable/src/index.js +2 -10
- package/3rdparty/walkontable/src/index.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/_base.js +1 -1
- package/3rdparty/walkontable/src/overlay/_base.mjs +1 -1
- package/3rdparty/walkontable/src/overlay/inlineStart.js +4 -2
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +4 -2
- package/3rdparty/walkontable/src/overlay/top.js +4 -2
- package/3rdparty/walkontable/src/overlay/top.mjs +4 -2
- package/3rdparty/walkontable/src/selection.js +355 -0
- package/3rdparty/walkontable/src/selection.mjs +349 -0
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +0 -9
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +0 -9
- package/3rdparty/walkontable/src/table.js +79 -7
- package/3rdparty/walkontable/src/table.mjs +80 -8
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.d.ts +3 -5
- package/core.js +309 -127
- package/core.mjs +309 -127
- package/dataMap/metaManager/metaSchema.js +0 -19
- package/dataMap/metaManager/metaSchema.mjs +0 -19
- package/dist/handsontable.css +3 -8
- package/dist/handsontable.full.css +3 -8
- package/dist/handsontable.full.js +9241 -11943
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +107 -107
- package/dist/handsontable.js +12628 -15330
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +4 -4
- package/editorManager.js +94 -21
- package/editorManager.mjs +98 -26
- package/editors/textEditor/textEditor.js +11 -3
- package/editors/textEditor/textEditor.mjs +12 -4
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/helpers/number.d.ts +0 -1
- package/helpers/number.js +0 -18
- package/helpers/number.mjs +0 -17
- package/package.json +1 -1
- package/pluginHooks.d.ts +1 -5
- package/pluginHooks.js +1 -89
- package/pluginHooks.mjs +1 -89
- package/plugins/collapsibleColumns/collapsibleColumns.js +24 -81
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +24 -81
- package/plugins/columnSorting/columnSorting.js +8 -50
- package/plugins/columnSorting/columnSorting.mjs +9 -49
- package/plugins/columnSorting/index.js +2 -4
- package/plugins/columnSorting/index.mjs +1 -1
- package/plugins/copyPaste/copyPaste.js +1 -5
- package/plugins/copyPaste/copyPaste.mjs +1 -5
- package/plugins/customBorders/customBorders.js +53 -18
- package/plugins/customBorders/customBorders.mjs +54 -19
- package/plugins/manualColumnResize/manualColumnResize.js +36 -5
- package/plugins/manualColumnResize/manualColumnResize.mjs +36 -5
- package/plugins/manualRowResize/manualRowResize.js +40 -9
- package/plugins/manualRowResize/manualRowResize.mjs +40 -9
- package/plugins/mergeCells/mergeCells.js +18 -5
- package/plugins/mergeCells/mergeCells.mjs +18 -5
- package/plugins/multiColumnSorting/multiColumnSorting.js +3 -42
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +3 -42
- package/plugins/nestedHeaders/nestedHeaders.js +10 -132
- package/plugins/nestedHeaders/nestedHeaders.mjs +10 -132
- package/plugins/nestedHeaders/stateManager/index.js +0 -37
- package/plugins/nestedHeaders/stateManager/index.mjs +0 -37
- package/plugins/nestedRows/nestedRows.js +7 -52
- package/plugins/nestedRows/nestedRows.mjs +7 -52
- package/renderers/checkboxRenderer/checkboxRenderer.js +2 -2
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +1 -1
- package/selection/highlight/constants.js +16 -0
- package/selection/highlight/constants.mjs +6 -0
- package/selection/highlight/highlight.js +89 -312
- package/selection/highlight/highlight.mjs +85 -302
- package/selection/highlight/types/activeHeader.js +9 -10
- package/selection/highlight/types/activeHeader.mjs +8 -10
- package/selection/highlight/types/area.js +27 -12
- package/selection/highlight/types/area.mjs +30 -16
- package/selection/highlight/types/{focus.js → cell.js} +8 -5
- package/selection/highlight/types/{focus.mjs → cell.mjs} +7 -5
- package/selection/highlight/types/customSelection.js +10 -7
- package/selection/highlight/types/customSelection.mjs +9 -7
- package/selection/highlight/types/fill.js +8 -5
- package/selection/highlight/types/fill.mjs +7 -5
- package/selection/highlight/types/header.js +20 -10
- package/selection/highlight/types/header.mjs +19 -10
- package/selection/highlight/types/{row.js → index.js} +31 -27
- package/selection/highlight/types/{row.mjs → index.mjs} +29 -24
- package/selection/highlight/visualSelection.js +27 -31
- package/selection/highlight/visualSelection.mjs +27 -31
- package/selection/index.js +7 -4
- package/selection/index.mjs +3 -2
- package/selection/mouseEventHandler.js +1 -1
- package/selection/mouseEventHandler.mjs +1 -1
- package/selection/range.js +8 -8
- package/selection/range.mjs +8 -8
- package/selection/selection.js +181 -315
- package/selection/selection.mjs +180 -310
- package/selection/transformation.js +96 -233
- package/selection/transformation.mjs +93 -230
- package/selection/utils.js +36 -12
- package/selection/utils.mjs +36 -13
- package/settings.d.ts +0 -1
- package/shortcuts/manager.js +0 -2
- package/shortcuts/manager.mjs +0 -2
- package/tableView.js +9 -58
- package/tableView.mjs +9 -58
- package/translations/indexMapper.js +9 -8
- package/translations/indexMapper.mjs +9 -8
- package/3rdparty/walkontable/src/selection/border/constants.js +0 -18
- package/3rdparty/walkontable/src/selection/border/constants.mjs +0 -13
- package/3rdparty/walkontable/src/selection/constants.js +0 -63
- package/3rdparty/walkontable/src/selection/constants.mjs +0 -51
- package/3rdparty/walkontable/src/selection/index.js +0 -30
- package/3rdparty/walkontable/src/selection/index.mjs +0 -5
- package/3rdparty/walkontable/src/selection/manager.js +0 -329
- package/3rdparty/walkontable/src/selection/manager.mjs +0 -323
- package/3rdparty/walkontable/src/selection/scanner.js +0 -364
- package/3rdparty/walkontable/src/selection/scanner.mjs +0 -360
- package/3rdparty/walkontable/src/selection/selection.js +0 -133
- package/3rdparty/walkontable/src/selection/selection.mjs +0 -127
- package/selection/highlight/types/areaLayered.js +0 -54
- package/selection/highlight/types/areaLayered.mjs +0 -49
- package/selection/highlight/types/column.js +0 -50
- package/selection/highlight/types/column.mjs +0 -45
- package/shortcutContexts/commands/editor/closeAndSave.js +0 -15
- package/shortcutContexts/commands/editor/closeAndSave.mjs +0 -10
- package/shortcutContexts/commands/editor/closeWithoutSaving.js +0 -13
- package/shortcutContexts/commands/editor/closeWithoutSaving.mjs +0 -8
- package/shortcutContexts/commands/editor/fastOpen.js +0 -16
- package/shortcutContexts/commands/editor/fastOpen.mjs +0 -11
- package/shortcutContexts/commands/editor/index.js +0 -16
- package/shortcutContexts/commands/editor/index.mjs +0 -12
- package/shortcutContexts/commands/editor/open.js +0 -29
- package/shortcutContexts/commands/editor/open.mjs +0 -24
- package/shortcutContexts/commands/emptySelectedCells.js +0 -12
- package/shortcutContexts/commands/emptySelectedCells.mjs +0 -7
- package/shortcutContexts/commands/extendCellsSelection/down.js +0 -15
- package/shortcutContexts/commands/extendCellsSelection/down.mjs +0 -10
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +0 -21
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +0 -16
- package/shortcutContexts/commands/extendCellsSelection/index.js +0 -26
- package/shortcutContexts/commands/extendCellsSelection/index.mjs +0 -22
- package/shortcutContexts/commands/extendCellsSelection/left.js +0 -15
- package/shortcutContexts/commands/extendCellsSelection/left.mjs +0 -10
- package/shortcutContexts/commands/extendCellsSelection/right.js +0 -15
- package/shortcutContexts/commands/extendCellsSelection/right.mjs +0 -10
- package/shortcutContexts/commands/extendCellsSelection/toColumns.js +0 -19
- package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +0 -14
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +0 -22
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +0 -17
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +0 -17
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +0 -12
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +0 -17
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +0 -12
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +0 -40
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +0 -35
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +0 -40
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +0 -35
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +0 -22
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +0 -17
- package/shortcutContexts/commands/extendCellsSelection/toRows.js +0 -19
- package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +0 -14
- package/shortcutContexts/commands/extendCellsSelection/up.js +0 -15
- package/shortcutContexts/commands/extendCellsSelection/up.mjs +0 -10
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +0 -21
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +0 -16
- package/shortcutContexts/commands/index.js +0 -52
- package/shortcutContexts/commands/index.mjs +0 -48
- package/shortcutContexts/commands/moveCellSelection/down.js +0 -12
- package/shortcutContexts/commands/moveCellSelection/down.mjs +0 -7
- package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.js +0 -29
- package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.mjs +0 -24
- package/shortcutContexts/commands/moveCellSelection/index.js +0 -28
- package/shortcutContexts/commands/moveCellSelection/index.mjs +0 -24
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +0 -13
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +0 -8
- package/shortcutContexts/commands/moveCellSelection/inlineStart.js +0 -13
- package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +0 -8
- package/shortcutContexts/commands/moveCellSelection/left.js +0 -11
- package/shortcutContexts/commands/moveCellSelection/left.mjs +0 -6
- package/shortcutContexts/commands/moveCellSelection/right.js +0 -11
- package/shortcutContexts/commands/moveCellSelection/right.mjs +0 -6
- package/shortcutContexts/commands/moveCellSelection/toMostBottom.js +0 -16
- package/shortcutContexts/commands/moveCellSelection/toMostBottom.mjs +0 -11
- package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.js +0 -17
- package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.mjs +0 -12
- package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.js +0 -13
- package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.mjs +0 -8
- package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.js +0 -16
- package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.mjs +0 -11
- package/shortcutContexts/commands/moveCellSelection/toMostLeft.js +0 -36
- package/shortcutContexts/commands/moveCellSelection/toMostLeft.mjs +0 -31
- package/shortcutContexts/commands/moveCellSelection/toMostRight.js +0 -36
- package/shortcutContexts/commands/moveCellSelection/toMostRight.mjs +0 -31
- package/shortcutContexts/commands/moveCellSelection/toMostTop.js +0 -16
- package/shortcutContexts/commands/moveCellSelection/toMostTop.mjs +0 -11
- package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.js +0 -18
- package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.mjs +0 -13
- package/shortcutContexts/commands/moveCellSelection/up.js +0 -12
- package/shortcutContexts/commands/moveCellSelection/up.mjs +0 -7
- package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.js +0 -29
- package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.mjs +0 -24
- package/shortcutContexts/commands/populateSelectedCellsData.js +0 -35
- package/shortcutContexts/commands/populateSelectedCellsData.mjs +0 -30
- package/shortcutContexts/commands/selectAll.js +0 -11
- package/shortcutContexts/commands/selectAll.mjs +0 -6
- package/shortcutContexts/constants.js +0 -19
- package/shortcutContexts/constants.mjs +0 -12
- package/shortcutContexts/editor.js +0 -29
- package/shortcutContexts/editor.mjs +0 -25
- package/shortcutContexts/grid.js +0 -244
- package/shortcutContexts/grid.mjs +0 -240
- package/shortcutContexts/index.js +0 -29
- package/shortcutContexts/index.mjs +0 -15
package/pluginHooks.js
CHANGED
@@ -680,94 +680,6 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
680
680
|
* @param {number} selectionLayerLevel The number which indicates what selection layer is currently modified.
|
681
681
|
*/
|
682
682
|
'afterSelectionEndByProp',
|
683
|
-
/**
|
684
|
-
* Fired before one or more columns are selected (e.g. During mouse header click or {@link Core#selectColumns} API call).
|
685
|
-
*
|
686
|
-
* @since 13.0.0
|
687
|
-
* @event Hooks#beforeSelectColumns
|
688
|
-
* @param {CellCoords} from Selection start coords object.
|
689
|
-
* @param {CellCoords} to Selection end coords object.
|
690
|
-
* @param {CellCoords} highlight Selection cell focus coords object.
|
691
|
-
* @example
|
692
|
-
* ::: only-for javascript
|
693
|
-
* ```js
|
694
|
-
* new Handsontable(element, {
|
695
|
-
* beforeSelectColumns: (from, to, highlight) => {
|
696
|
-
* // Extend the column selection by one column left and one column right.
|
697
|
-
* from.col = Math.max(from.col - 1, 0);
|
698
|
-
* to.col = Math.min(to.col + 1, this.countCols() - 1);
|
699
|
-
* }
|
700
|
-
* })
|
701
|
-
* ```
|
702
|
-
* :::
|
703
|
-
*
|
704
|
-
* ::: only-for react
|
705
|
-
* ```jsx
|
706
|
-
* <HotTable
|
707
|
-
* beforeSelectColumns={(from, to, highlight) => {
|
708
|
-
* // Extend the column selection by one column left and one column right.
|
709
|
-
* from.col = Math.max(from.col - 1, 0);
|
710
|
-
* to.col = Math.min(to.col + 1, this.countCols() - 1);
|
711
|
-
* }}
|
712
|
-
* />
|
713
|
-
* ```
|
714
|
-
* :::
|
715
|
-
*/
|
716
|
-
'beforeSelectColumns',
|
717
|
-
/**
|
718
|
-
* Fired after one or more columns are selected (e.g. During mouse header click or {@link Core#selectColumns} API call).
|
719
|
-
*
|
720
|
-
* @since 13.0.0
|
721
|
-
* @event Hooks#afterSelectColumns
|
722
|
-
* @param {CellCoords} from Selection start coords object.
|
723
|
-
* @param {CellCoords} to Selection end coords object.
|
724
|
-
* @param {CellCoords} highlight Selection cell focus coords object.
|
725
|
-
*/
|
726
|
-
'afterSelectColumns',
|
727
|
-
/**
|
728
|
-
* Fired before one or more rows are selected (e.g. During mouse header click or {@link Core#selectRows} API call).
|
729
|
-
*
|
730
|
-
* @since 13.0.0
|
731
|
-
* @event Hooks#beforeSelectRows
|
732
|
-
* @param {CellCoords} from Selection start coords object.
|
733
|
-
* @param {CellCoords} to Selection end coords object.
|
734
|
-
* @param {CellCoords} highlight Selection cell focus coords object.
|
735
|
-
* @example
|
736
|
-
* ::: only-for javascript
|
737
|
-
* ```js
|
738
|
-
* new Handsontable(element, {
|
739
|
-
* beforeSelectRows: (from, to, highlight) => {
|
740
|
-
* // Extend the row selection by one row up and one row bottom more.
|
741
|
-
* from.row = Math.max(from.row - 1, 0);
|
742
|
-
* to.row = Math.min(to.row + 1, this.countRows() - 1);
|
743
|
-
* }
|
744
|
-
* })
|
745
|
-
* ```
|
746
|
-
* :::
|
747
|
-
*
|
748
|
-
* ::: only-for react
|
749
|
-
* ```jsx
|
750
|
-
* <HotTable
|
751
|
-
* beforeSelectRows={(from, to, highlight) => {
|
752
|
-
* // Extend the row selection by one row up and one row bottom more.
|
753
|
-
* from.row = Math.max(from.row - 1, 0);
|
754
|
-
* to.row = Math.min(to.row + 1, this.countRows() - 1);
|
755
|
-
* }}
|
756
|
-
* />
|
757
|
-
* ```
|
758
|
-
* :::
|
759
|
-
*/
|
760
|
-
'beforeSelectRows',
|
761
|
-
/**
|
762
|
-
* Fired after one or more rows are selected (e.g. During mouse header click or {@link Core#selectRows} API call).
|
763
|
-
*
|
764
|
-
* @since 13.0.0
|
765
|
-
* @event Hooks#afterSelectRows
|
766
|
-
* @param {CellCoords} from Selection start coords object.
|
767
|
-
* @param {CellCoords} to Selection end coords object.
|
768
|
-
* @param {CellCoords} highlight Selection cell focus coords object.
|
769
|
-
*/
|
770
|
-
'afterSelectRows',
|
771
683
|
/**
|
772
684
|
* Fired after cell meta is changed.
|
773
685
|
*
|
@@ -2491,7 +2403,7 @@ var REMOVED_HOOKS = new Map([['modifyRow', '8.0.0'], ['modifyCol', '8.0.0'], ['u
|
|
2491
2403
|
* @type {Map<string, string>}
|
2492
2404
|
*/
|
2493
2405
|
/* eslint-enable jsdoc/require-description-complete-sentence */
|
2494
|
-
var DEPRECATED_HOOKS = new Map([
|
2406
|
+
var DEPRECATED_HOOKS = new Map([]);
|
2495
2407
|
var Hooks = /*#__PURE__*/function () {
|
2496
2408
|
/**
|
2497
2409
|
*
|
package/pluginHooks.mjs
CHANGED
@@ -677,94 +677,6 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
677
677
|
* @param {number} selectionLayerLevel The number which indicates what selection layer is currently modified.
|
678
678
|
*/
|
679
679
|
'afterSelectionEndByProp',
|
680
|
-
/**
|
681
|
-
* Fired before one or more columns are selected (e.g. During mouse header click or {@link Core#selectColumns} API call).
|
682
|
-
*
|
683
|
-
* @since 13.0.0
|
684
|
-
* @event Hooks#beforeSelectColumns
|
685
|
-
* @param {CellCoords} from Selection start coords object.
|
686
|
-
* @param {CellCoords} to Selection end coords object.
|
687
|
-
* @param {CellCoords} highlight Selection cell focus coords object.
|
688
|
-
* @example
|
689
|
-
* ::: only-for javascript
|
690
|
-
* ```js
|
691
|
-
* new Handsontable(element, {
|
692
|
-
* beforeSelectColumns: (from, to, highlight) => {
|
693
|
-
* // Extend the column selection by one column left and one column right.
|
694
|
-
* from.col = Math.max(from.col - 1, 0);
|
695
|
-
* to.col = Math.min(to.col + 1, this.countCols() - 1);
|
696
|
-
* }
|
697
|
-
* })
|
698
|
-
* ```
|
699
|
-
* :::
|
700
|
-
*
|
701
|
-
* ::: only-for react
|
702
|
-
* ```jsx
|
703
|
-
* <HotTable
|
704
|
-
* beforeSelectColumns={(from, to, highlight) => {
|
705
|
-
* // Extend the column selection by one column left and one column right.
|
706
|
-
* from.col = Math.max(from.col - 1, 0);
|
707
|
-
* to.col = Math.min(to.col + 1, this.countCols() - 1);
|
708
|
-
* }}
|
709
|
-
* />
|
710
|
-
* ```
|
711
|
-
* :::
|
712
|
-
*/
|
713
|
-
'beforeSelectColumns',
|
714
|
-
/**
|
715
|
-
* Fired after one or more columns are selected (e.g. During mouse header click or {@link Core#selectColumns} API call).
|
716
|
-
*
|
717
|
-
* @since 13.0.0
|
718
|
-
* @event Hooks#afterSelectColumns
|
719
|
-
* @param {CellCoords} from Selection start coords object.
|
720
|
-
* @param {CellCoords} to Selection end coords object.
|
721
|
-
* @param {CellCoords} highlight Selection cell focus coords object.
|
722
|
-
*/
|
723
|
-
'afterSelectColumns',
|
724
|
-
/**
|
725
|
-
* Fired before one or more rows are selected (e.g. During mouse header click or {@link Core#selectRows} API call).
|
726
|
-
*
|
727
|
-
* @since 13.0.0
|
728
|
-
* @event Hooks#beforeSelectRows
|
729
|
-
* @param {CellCoords} from Selection start coords object.
|
730
|
-
* @param {CellCoords} to Selection end coords object.
|
731
|
-
* @param {CellCoords} highlight Selection cell focus coords object.
|
732
|
-
* @example
|
733
|
-
* ::: only-for javascript
|
734
|
-
* ```js
|
735
|
-
* new Handsontable(element, {
|
736
|
-
* beforeSelectRows: (from, to, highlight) => {
|
737
|
-
* // Extend the row selection by one row up and one row bottom more.
|
738
|
-
* from.row = Math.max(from.row - 1, 0);
|
739
|
-
* to.row = Math.min(to.row + 1, this.countRows() - 1);
|
740
|
-
* }
|
741
|
-
* })
|
742
|
-
* ```
|
743
|
-
* :::
|
744
|
-
*
|
745
|
-
* ::: only-for react
|
746
|
-
* ```jsx
|
747
|
-
* <HotTable
|
748
|
-
* beforeSelectRows={(from, to, highlight) => {
|
749
|
-
* // Extend the row selection by one row up and one row bottom more.
|
750
|
-
* from.row = Math.max(from.row - 1, 0);
|
751
|
-
* to.row = Math.min(to.row + 1, this.countRows() - 1);
|
752
|
-
* }}
|
753
|
-
* />
|
754
|
-
* ```
|
755
|
-
* :::
|
756
|
-
*/
|
757
|
-
'beforeSelectRows',
|
758
|
-
/**
|
759
|
-
* Fired after one or more rows are selected (e.g. During mouse header click or {@link Core#selectRows} API call).
|
760
|
-
*
|
761
|
-
* @since 13.0.0
|
762
|
-
* @event Hooks#afterSelectRows
|
763
|
-
* @param {CellCoords} from Selection start coords object.
|
764
|
-
* @param {CellCoords} to Selection end coords object.
|
765
|
-
* @param {CellCoords} highlight Selection cell focus coords object.
|
766
|
-
*/
|
767
|
-
'afterSelectRows',
|
768
680
|
/**
|
769
681
|
* Fired after cell meta is changed.
|
770
682
|
*
|
@@ -2488,7 +2400,7 @@ var REMOVED_HOOKS = new Map([['modifyRow', '8.0.0'], ['modifyCol', '8.0.0'], ['u
|
|
2488
2400
|
* @type {Map<string, string>}
|
2489
2401
|
*/
|
2490
2402
|
/* eslint-enable jsdoc/require-description-complete-sentence */
|
2491
|
-
var DEPRECATED_HOOKS = new Map([
|
2403
|
+
var DEPRECATED_HOOKS = new Map([]);
|
2492
2404
|
var Hooks = /*#__PURE__*/function () {
|
2493
2405
|
/**
|
2494
2406
|
*
|
@@ -69,7 +69,6 @@ var PLUGIN_PRIORITY = 290;
|
|
69
69
|
exports.PLUGIN_PRIORITY = PLUGIN_PRIORITY;
|
70
70
|
var SETTING_KEYS = ['nestedHeaders'];
|
71
71
|
var COLLAPSIBLE_ELEMENT_CLASS = 'collapsibleIndicator';
|
72
|
-
var SHORTCUTS_GROUP = PLUGIN_KEY;
|
73
72
|
var actionDictionary = new Map([['collapse', {
|
74
73
|
hideColumn: true,
|
75
74
|
beforeHook: 'beforeColumnCollapse',
|
@@ -238,7 +237,6 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
238
237
|
this.addHook('beforeOnCellMouseDown', function (event, coords, TD) {
|
239
238
|
return _this2.onBeforeOnCellMouseDown(event, coords, TD);
|
240
239
|
});
|
241
|
-
this.registerShortcuts();
|
242
240
|
_get(_getPrototypeOf(CollapsibleColumns.prototype), "enablePlugin", this).call(this);
|
243
241
|
// @TODO: Workaround for broken plugin initialization abstraction (#6806).
|
244
242
|
this.updatePlugin();
|
@@ -289,65 +287,10 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
289
287
|
this.hot.columnIndexMapper.unregisterMap(this.pluginName);
|
290
288
|
_classPrivateFieldSet(this, _collapsedColumnsMap, null);
|
291
289
|
this.nestedHeadersPlugin = null;
|
292
|
-
this.unregisterShortcuts();
|
293
290
|
this.clearButtons();
|
294
291
|
_get(_getPrototypeOf(CollapsibleColumns.prototype), "disablePlugin", this).call(this);
|
295
292
|
}
|
296
293
|
|
297
|
-
/**
|
298
|
-
* Register shortcuts responsible for toggling collapsible columns.
|
299
|
-
*
|
300
|
-
* @private
|
301
|
-
*/
|
302
|
-
}, {
|
303
|
-
key: "registerShortcuts",
|
304
|
-
value: function registerShortcuts() {
|
305
|
-
var _this3 = this;
|
306
|
-
this.hot.getShortcutManager().getContext('grid').addShortcut({
|
307
|
-
keys: [['Enter']],
|
308
|
-
callback: function callback() {
|
309
|
-
var _this3$headerStateMan;
|
310
|
-
var _this3$hot$getSelecte = _this3.hot.getSelectedRangeLast().highlight,
|
311
|
-
row = _this3$hot$getSelecte.row,
|
312
|
-
col = _this3$hot$getSelecte.col;
|
313
|
-
var _ref = (_this3$headerStateMan = _this3.headerStateManager.getHeaderTreeNodeData(row, col)) !== null && _this3$headerStateMan !== void 0 ? _this3$headerStateMan : {},
|
314
|
-
collapsible = _ref.collapsible,
|
315
|
-
isCollapsed = _ref.isCollapsed,
|
316
|
-
columnIndex = _ref.columnIndex;
|
317
|
-
if (!collapsible) {
|
318
|
-
return;
|
319
|
-
}
|
320
|
-
if (isCollapsed) {
|
321
|
-
_this3.expandSection({
|
322
|
-
row: row,
|
323
|
-
col: columnIndex
|
324
|
-
});
|
325
|
-
} else {
|
326
|
-
_this3.collapseSection({
|
327
|
-
row: row,
|
328
|
-
col: columnIndex
|
329
|
-
});
|
330
|
-
}
|
331
|
-
},
|
332
|
-
runOnlyIf: function runOnlyIf() {
|
333
|
-
var _this3$hot$getSelecte2;
|
334
|
-
return (_this3$hot$getSelecte2 = _this3.hot.getSelectedRangeLast()) === null || _this3$hot$getSelecte2 === void 0 ? void 0 : _this3$hot$getSelecte2.highlight.isHeader();
|
335
|
-
},
|
336
|
-
group: SHORTCUTS_GROUP
|
337
|
-
});
|
338
|
-
}
|
339
|
-
|
340
|
-
/**
|
341
|
-
* Unregister shortcuts responsible for toggling collapsible columns.
|
342
|
-
*
|
343
|
-
* @private
|
344
|
-
*/
|
345
|
-
}, {
|
346
|
-
key: "unregisterShortcuts",
|
347
|
-
value: function unregisterShortcuts() {
|
348
|
-
this.hot.getShortcutManager().getContext('grid').removeShortcutsByGroup(SHORTCUTS_GROUP);
|
349
|
-
}
|
350
|
-
|
351
294
|
/**
|
352
295
|
* Clears the expand/collapse buttons.
|
353
296
|
*
|
@@ -417,7 +360,7 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
417
360
|
}, {
|
418
361
|
key: "toggleAllCollapsibleSections",
|
419
362
|
value: function toggleAllCollapsibleSections(action) {
|
420
|
-
var
|
363
|
+
var _this3 = this;
|
421
364
|
var coords = this.headerStateManager.mapNodes(function (headerSettings) {
|
422
365
|
var collapsible = headerSettings.collapsible,
|
423
366
|
origColspan = headerSettings.origColspan,
|
@@ -426,7 +369,7 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
426
369
|
isCollapsed = headerSettings.isCollapsed;
|
427
370
|
if (collapsible === true && origColspan > 1 && (isCollapsed && action === 'expand' || !isCollapsed && action === 'collapse')) {
|
428
371
|
return {
|
429
|
-
row:
|
372
|
+
row: _this3.headerStateManager.levelToRowCoords(headerLevel),
|
430
373
|
col: columnIndex
|
431
374
|
};
|
432
375
|
}
|
@@ -465,7 +408,7 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
465
408
|
}, {
|
466
409
|
key: "toggleCollapsibleSection",
|
467
410
|
value: function toggleCollapsibleSection(coords, action) {
|
468
|
-
var
|
411
|
+
var _this4 = this;
|
469
412
|
if (!actionDictionary.has(action)) {
|
470
413
|
throw new Error("Unsupported action is passed (".concat(action, ")."));
|
471
414
|
}
|
@@ -474,18 +417,18 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
474
417
|
}
|
475
418
|
|
476
419
|
// Ignore coordinates which points to the cells range.
|
477
|
-
var filteredCoords = (0, _array.arrayFilter)(coords, function (
|
478
|
-
var row =
|
420
|
+
var filteredCoords = (0, _array.arrayFilter)(coords, function (_ref) {
|
421
|
+
var row = _ref.row;
|
479
422
|
return row < 0;
|
480
423
|
});
|
481
424
|
var isActionPossible = filteredCoords.length > 0;
|
482
|
-
(0, _array.arrayEach)(filteredCoords, function (
|
483
|
-
var
|
484
|
-
var row =
|
485
|
-
column =
|
486
|
-
var
|
487
|
-
collapsible =
|
488
|
-
isCollapsed =
|
425
|
+
(0, _array.arrayEach)(filteredCoords, function (_ref2) {
|
426
|
+
var _this4$headerStateMan;
|
427
|
+
var row = _ref2.row,
|
428
|
+
column = _ref2.col;
|
429
|
+
var _ref3 = (_this4$headerStateMan = _this4.headerStateManager.getHeaderSettings(row, column)) !== null && _this4$headerStateMan !== void 0 ? _this4$headerStateMan : {},
|
430
|
+
collapsible = _ref3.collapsible,
|
431
|
+
isCollapsed = _ref3.isCollapsed;
|
489
432
|
if (!collapsible || isCollapsed && action === 'collapse' || !isCollapsed && action === 'expand') {
|
490
433
|
isActionPossible = false;
|
491
434
|
return false;
|
@@ -494,13 +437,13 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
494
437
|
var nodeModRollbacks = [];
|
495
438
|
var affectedColumnsIndexes = [];
|
496
439
|
if (isActionPossible) {
|
497
|
-
(0, _array.arrayEach)(filteredCoords, function (
|
498
|
-
var row =
|
499
|
-
column =
|
500
|
-
var
|
501
|
-
colspanCompensation =
|
502
|
-
affectedColumns =
|
503
|
-
rollbackModification =
|
440
|
+
(0, _array.arrayEach)(filteredCoords, function (_ref4) {
|
441
|
+
var row = _ref4.row,
|
442
|
+
column = _ref4.col;
|
443
|
+
var _this4$headerStateMan2 = _this4.headerStateManager.triggerNodeModification(action, row, column),
|
444
|
+
colspanCompensation = _this4$headerStateMan2.colspanCompensation,
|
445
|
+
affectedColumns = _this4$headerStateMan2.affectedColumns,
|
446
|
+
rollbackModification = _this4$headerStateMan2.rollbackModification;
|
504
447
|
if (colspanCompensation > 0) {
|
505
448
|
affectedColumnsIndexes.push.apply(affectedColumnsIndexes, _toConsumableArray(affectedColumns));
|
506
449
|
nodeModRollbacks.push(rollbackModification);
|
@@ -527,7 +470,7 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
527
470
|
}
|
528
471
|
this.hot.batchExecution(function () {
|
529
472
|
(0, _array.arrayEach)(affectedColumnsIndexes, function (visualColumn) {
|
530
|
-
_classPrivateFieldGet(
|
473
|
+
_classPrivateFieldGet(_this4, _collapsedColumnsMap).setValueAtIndex(_this4.hot.toPhysicalColumn(visualColumn), actionTranslator.hideColumn);
|
531
474
|
});
|
532
475
|
}, true);
|
533
476
|
var isActionPerformed = this.getCollapsedColumns().length !== currentCollapsedColumns.length;
|
@@ -561,10 +504,10 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
561
504
|
key: "onAfterGetColHeader",
|
562
505
|
value: function onAfterGetColHeader(column, TH, headerLevel) {
|
563
506
|
var _this$headerStateMana;
|
564
|
-
var
|
565
|
-
collapsible =
|
566
|
-
origColspan =
|
567
|
-
isCollapsed =
|
507
|
+
var _ref5 = (_this$headerStateMana = this.headerStateManager.getHeaderSettings(headerLevel, column)) !== null && _this$headerStateMana !== void 0 ? _this$headerStateMana : {},
|
508
|
+
collapsible = _ref5.collapsible,
|
509
|
+
origColspan = _ref5.origColspan,
|
510
|
+
isCollapsed = _ref5.isCollapsed;
|
568
511
|
var isNodeCollapsible = collapsible && origColspan > 1 && column >= this.hot.getSettings().fixedColumnsStart;
|
569
512
|
var collapsibleElement = TH.querySelector(".".concat(COLLAPSIBLE_ELEMENT_CLASS));
|
570
513
|
if (isNodeCollapsible) {
|
@@ -62,7 +62,6 @@ export var PLUGIN_KEY = 'collapsibleColumns';
|
|
62
62
|
export var PLUGIN_PRIORITY = 290;
|
63
63
|
var SETTING_KEYS = ['nestedHeaders'];
|
64
64
|
var COLLAPSIBLE_ELEMENT_CLASS = 'collapsibleIndicator';
|
65
|
-
var SHORTCUTS_GROUP = PLUGIN_KEY;
|
66
65
|
var actionDictionary = new Map([['collapse', {
|
67
66
|
hideColumn: true,
|
68
67
|
beforeHook: 'beforeColumnCollapse',
|
@@ -231,7 +230,6 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
231
230
|
this.addHook('beforeOnCellMouseDown', function (event, coords, TD) {
|
232
231
|
return _this2.onBeforeOnCellMouseDown(event, coords, TD);
|
233
232
|
});
|
234
|
-
this.registerShortcuts();
|
235
233
|
_get(_getPrototypeOf(CollapsibleColumns.prototype), "enablePlugin", this).call(this);
|
236
234
|
// @TODO: Workaround for broken plugin initialization abstraction (#6806).
|
237
235
|
this.updatePlugin();
|
@@ -282,65 +280,10 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
282
280
|
this.hot.columnIndexMapper.unregisterMap(this.pluginName);
|
283
281
|
_classPrivateFieldSet(this, _collapsedColumnsMap, null);
|
284
282
|
this.nestedHeadersPlugin = null;
|
285
|
-
this.unregisterShortcuts();
|
286
283
|
this.clearButtons();
|
287
284
|
_get(_getPrototypeOf(CollapsibleColumns.prototype), "disablePlugin", this).call(this);
|
288
285
|
}
|
289
286
|
|
290
|
-
/**
|
291
|
-
* Register shortcuts responsible for toggling collapsible columns.
|
292
|
-
*
|
293
|
-
* @private
|
294
|
-
*/
|
295
|
-
}, {
|
296
|
-
key: "registerShortcuts",
|
297
|
-
value: function registerShortcuts() {
|
298
|
-
var _this3 = this;
|
299
|
-
this.hot.getShortcutManager().getContext('grid').addShortcut({
|
300
|
-
keys: [['Enter']],
|
301
|
-
callback: function callback() {
|
302
|
-
var _this3$headerStateMan;
|
303
|
-
var _this3$hot$getSelecte = _this3.hot.getSelectedRangeLast().highlight,
|
304
|
-
row = _this3$hot$getSelecte.row,
|
305
|
-
col = _this3$hot$getSelecte.col;
|
306
|
-
var _ref = (_this3$headerStateMan = _this3.headerStateManager.getHeaderTreeNodeData(row, col)) !== null && _this3$headerStateMan !== void 0 ? _this3$headerStateMan : {},
|
307
|
-
collapsible = _ref.collapsible,
|
308
|
-
isCollapsed = _ref.isCollapsed,
|
309
|
-
columnIndex = _ref.columnIndex;
|
310
|
-
if (!collapsible) {
|
311
|
-
return;
|
312
|
-
}
|
313
|
-
if (isCollapsed) {
|
314
|
-
_this3.expandSection({
|
315
|
-
row: row,
|
316
|
-
col: columnIndex
|
317
|
-
});
|
318
|
-
} else {
|
319
|
-
_this3.collapseSection({
|
320
|
-
row: row,
|
321
|
-
col: columnIndex
|
322
|
-
});
|
323
|
-
}
|
324
|
-
},
|
325
|
-
runOnlyIf: function runOnlyIf() {
|
326
|
-
var _this3$hot$getSelecte2;
|
327
|
-
return (_this3$hot$getSelecte2 = _this3.hot.getSelectedRangeLast()) === null || _this3$hot$getSelecte2 === void 0 ? void 0 : _this3$hot$getSelecte2.highlight.isHeader();
|
328
|
-
},
|
329
|
-
group: SHORTCUTS_GROUP
|
330
|
-
});
|
331
|
-
}
|
332
|
-
|
333
|
-
/**
|
334
|
-
* Unregister shortcuts responsible for toggling collapsible columns.
|
335
|
-
*
|
336
|
-
* @private
|
337
|
-
*/
|
338
|
-
}, {
|
339
|
-
key: "unregisterShortcuts",
|
340
|
-
value: function unregisterShortcuts() {
|
341
|
-
this.hot.getShortcutManager().getContext('grid').removeShortcutsByGroup(SHORTCUTS_GROUP);
|
342
|
-
}
|
343
|
-
|
344
287
|
/**
|
345
288
|
* Clears the expand/collapse buttons.
|
346
289
|
*
|
@@ -410,7 +353,7 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
410
353
|
}, {
|
411
354
|
key: "toggleAllCollapsibleSections",
|
412
355
|
value: function toggleAllCollapsibleSections(action) {
|
413
|
-
var
|
356
|
+
var _this3 = this;
|
414
357
|
var coords = this.headerStateManager.mapNodes(function (headerSettings) {
|
415
358
|
var collapsible = headerSettings.collapsible,
|
416
359
|
origColspan = headerSettings.origColspan,
|
@@ -419,7 +362,7 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
419
362
|
isCollapsed = headerSettings.isCollapsed;
|
420
363
|
if (collapsible === true && origColspan > 1 && (isCollapsed && action === 'expand' || !isCollapsed && action === 'collapse')) {
|
421
364
|
return {
|
422
|
-
row:
|
365
|
+
row: _this3.headerStateManager.levelToRowCoords(headerLevel),
|
423
366
|
col: columnIndex
|
424
367
|
};
|
425
368
|
}
|
@@ -458,7 +401,7 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
458
401
|
}, {
|
459
402
|
key: "toggleCollapsibleSection",
|
460
403
|
value: function toggleCollapsibleSection(coords, action) {
|
461
|
-
var
|
404
|
+
var _this4 = this;
|
462
405
|
if (!actionDictionary.has(action)) {
|
463
406
|
throw new Error("Unsupported action is passed (".concat(action, ")."));
|
464
407
|
}
|
@@ -467,18 +410,18 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
467
410
|
}
|
468
411
|
|
469
412
|
// Ignore coordinates which points to the cells range.
|
470
|
-
var filteredCoords = arrayFilter(coords, function (
|
471
|
-
var row =
|
413
|
+
var filteredCoords = arrayFilter(coords, function (_ref) {
|
414
|
+
var row = _ref.row;
|
472
415
|
return row < 0;
|
473
416
|
});
|
474
417
|
var isActionPossible = filteredCoords.length > 0;
|
475
|
-
arrayEach(filteredCoords, function (
|
476
|
-
var
|
477
|
-
var row =
|
478
|
-
column =
|
479
|
-
var
|
480
|
-
collapsible =
|
481
|
-
isCollapsed =
|
418
|
+
arrayEach(filteredCoords, function (_ref2) {
|
419
|
+
var _this4$headerStateMan;
|
420
|
+
var row = _ref2.row,
|
421
|
+
column = _ref2.col;
|
422
|
+
var _ref3 = (_this4$headerStateMan = _this4.headerStateManager.getHeaderSettings(row, column)) !== null && _this4$headerStateMan !== void 0 ? _this4$headerStateMan : {},
|
423
|
+
collapsible = _ref3.collapsible,
|
424
|
+
isCollapsed = _ref3.isCollapsed;
|
482
425
|
if (!collapsible || isCollapsed && action === 'collapse' || !isCollapsed && action === 'expand') {
|
483
426
|
isActionPossible = false;
|
484
427
|
return false;
|
@@ -487,13 +430,13 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
487
430
|
var nodeModRollbacks = [];
|
488
431
|
var affectedColumnsIndexes = [];
|
489
432
|
if (isActionPossible) {
|
490
|
-
arrayEach(filteredCoords, function (
|
491
|
-
var row =
|
492
|
-
column =
|
493
|
-
var
|
494
|
-
colspanCompensation =
|
495
|
-
affectedColumns =
|
496
|
-
rollbackModification =
|
433
|
+
arrayEach(filteredCoords, function (_ref4) {
|
434
|
+
var row = _ref4.row,
|
435
|
+
column = _ref4.col;
|
436
|
+
var _this4$headerStateMan2 = _this4.headerStateManager.triggerNodeModification(action, row, column),
|
437
|
+
colspanCompensation = _this4$headerStateMan2.colspanCompensation,
|
438
|
+
affectedColumns = _this4$headerStateMan2.affectedColumns,
|
439
|
+
rollbackModification = _this4$headerStateMan2.rollbackModification;
|
497
440
|
if (colspanCompensation > 0) {
|
498
441
|
affectedColumnsIndexes.push.apply(affectedColumnsIndexes, _toConsumableArray(affectedColumns));
|
499
442
|
nodeModRollbacks.push(rollbackModification);
|
@@ -520,7 +463,7 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
520
463
|
}
|
521
464
|
this.hot.batchExecution(function () {
|
522
465
|
arrayEach(affectedColumnsIndexes, function (visualColumn) {
|
523
|
-
_classPrivateFieldGet(
|
466
|
+
_classPrivateFieldGet(_this4, _collapsedColumnsMap).setValueAtIndex(_this4.hot.toPhysicalColumn(visualColumn), actionTranslator.hideColumn);
|
524
467
|
});
|
525
468
|
}, true);
|
526
469
|
var isActionPerformed = this.getCollapsedColumns().length !== currentCollapsedColumns.length;
|
@@ -554,10 +497,10 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
|
|
554
497
|
key: "onAfterGetColHeader",
|
555
498
|
value: function onAfterGetColHeader(column, TH, headerLevel) {
|
556
499
|
var _this$headerStateMana;
|
557
|
-
var
|
558
|
-
collapsible =
|
559
|
-
origColspan =
|
560
|
-
isCollapsed =
|
500
|
+
var _ref5 = (_this$headerStateMana = this.headerStateManager.getHeaderSettings(headerLevel, column)) !== null && _this$headerStateMana !== void 0 ? _this$headerStateMana : {},
|
501
|
+
collapsible = _ref5.collapsible,
|
502
|
+
origColspan = _ref5.origColspan,
|
503
|
+
isCollapsed = _ref5.isCollapsed;
|
561
504
|
var isNodeCollapsible = collapsible && origColspan > 1 && column >= this.hot.getSettings().fixedColumnsStart;
|
562
505
|
var collapsibleElement = TH.querySelector(".".concat(COLLAPSIBLE_ELEMENT_CLASS));
|
563
506
|
if (isNodeCollapsible) {
|