handsontable 0.0.0-next-c655413-20240403 → 0.0.0-next-5d3f934-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/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +20 -5
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +4 -4
- package/dist/handsontable.js +20 -5
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +4 -4
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/collapsibleColumns/collapsibleColumns.js +15 -0
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +15 -0
package/helpers/mixed.js
CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
|
|
134
134
|
function _injectProductInfo(key, element) {
|
135
135
|
const hasValidType = !isEmpty(key);
|
136
136
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
137
|
-
const hotVersion = "0.0.0-next-
|
137
|
+
const hotVersion = "0.0.0-next-5d3f934-20240403";
|
138
138
|
let keyValidityDate;
|
139
139
|
let consoleMessageState = 'invalid';
|
140
140
|
let domMessageState = 'invalid';
|
package/helpers/mixed.mjs
CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
|
|
124
124
|
export function _injectProductInfo(key, element) {
|
125
125
|
const hasValidType = !isEmpty(key);
|
126
126
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
127
|
-
const hotVersion = "0.0.0-next-
|
127
|
+
const hotVersion = "0.0.0-next-5d3f934-20240403";
|
128
128
|
let keyValidityDate;
|
129
129
|
let consoleMessageState = 'invalid';
|
130
130
|
let domMessageState = 'invalid';
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"url": "https://github.com/handsontable/handsontable/issues"
|
11
11
|
},
|
12
12
|
"author": "Handsoncode <hello@handsontable.com>",
|
13
|
-
"version": "0.0.0-next-
|
13
|
+
"version": "0.0.0-next-5d3f934-20240403",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
@@ -479,6 +479,21 @@ class CollapsibleColumns extends _base.BasePlugin {
|
|
479
479
|
});
|
480
480
|
}, true);
|
481
481
|
const isActionPerformed = this.getCollapsedColumns().length !== currentCollapsedColumns.length;
|
482
|
+
const selectionRange = this.hot.getSelectedRangeLast();
|
483
|
+
if (action === 'collapse' && isActionPerformed && selectionRange) {
|
484
|
+
const {
|
485
|
+
row,
|
486
|
+
col
|
487
|
+
} = selectionRange.highlight;
|
488
|
+
const isHidden = this.hot.rowIndexMapper.isHidden(row) || this.hot.columnIndexMapper.isHidden(col);
|
489
|
+
if (isHidden && affectedColumnsIndexes.includes(col)) {
|
490
|
+
const nextRow = row >= 0 ? this.hot.rowIndexMapper.getNearestNotHiddenIndex(row, 1, true) : row;
|
491
|
+
const nextColumn = col >= 0 ? this.hot.columnIndexMapper.getNearestNotHiddenIndex(col, 1, true) : col;
|
492
|
+
if (nextRow !== null && nextColumn !== null) {
|
493
|
+
this.hot.selectCell(nextRow, nextColumn);
|
494
|
+
}
|
495
|
+
}
|
496
|
+
}
|
482
497
|
this.hot.runHooks(actionTranslator.afterHook, currentCollapsedColumns, destinationCollapsedColumns, isActionPossible, isActionPerformed);
|
483
498
|
this.hot.render();
|
484
499
|
this.hot.view.adjustElementsSize(true);
|
@@ -476,6 +476,21 @@ export class CollapsibleColumns extends BasePlugin {
|
|
476
476
|
});
|
477
477
|
}, true);
|
478
478
|
const isActionPerformed = this.getCollapsedColumns().length !== currentCollapsedColumns.length;
|
479
|
+
const selectionRange = this.hot.getSelectedRangeLast();
|
480
|
+
if (action === 'collapse' && isActionPerformed && selectionRange) {
|
481
|
+
const {
|
482
|
+
row,
|
483
|
+
col
|
484
|
+
} = selectionRange.highlight;
|
485
|
+
const isHidden = this.hot.rowIndexMapper.isHidden(row) || this.hot.columnIndexMapper.isHidden(col);
|
486
|
+
if (isHidden && affectedColumnsIndexes.includes(col)) {
|
487
|
+
const nextRow = row >= 0 ? this.hot.rowIndexMapper.getNearestNotHiddenIndex(row, 1, true) : row;
|
488
|
+
const nextColumn = col >= 0 ? this.hot.columnIndexMapper.getNearestNotHiddenIndex(col, 1, true) : col;
|
489
|
+
if (nextRow !== null && nextColumn !== null) {
|
490
|
+
this.hot.selectCell(nextRow, nextColumn);
|
491
|
+
}
|
492
|
+
}
|
493
|
+
}
|
479
494
|
this.hot.runHooks(actionTranslator.afterHook, currentCollapsedColumns, destinationCollapsedColumns, isActionPossible, isActionPerformed);
|
480
495
|
this.hot.render();
|
481
496
|
this.hot.view.adjustElementsSize(true);
|