handsontable 0.0.0-next-7230ce6-20240605 → 0.0.0-next-4a6df4e-20240606
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/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 -26
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +41 -41
- package/dist/handsontable.js +20 -26
- 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/selection/transformation.js +14 -20
- package/selection/transformation.mjs +14 -20
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-4a6df4e-20240606";
|
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-4a6df4e-20240606";
|
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-4a6df4e-20240606",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
@@ -174,27 +174,21 @@ class Transformation {
|
|
174
174
|
const topStartCorner = cellRange.getTopStartCorner();
|
175
175
|
const topEndCorner = cellRange.getTopEndCorner();
|
176
176
|
const bottomEndCorner = cellRange.getBottomEndCorner();
|
177
|
-
|
178
|
-
|
179
|
-
col
|
180
|
-
}
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
}
|
185
|
-
} else if (delta.col > 0) {
|
186
|
-
if (toColumn <= highlightColumn && coords.col > highlightColumn) {
|
187
|
-
coords.col = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topEndCorner.col, topStartCorner.col) + restDelta.col;
|
188
|
-
}
|
177
|
+
if (delta.col < 0 && toColumn >= highlightColumn && coords.col < highlightColumn) {
|
178
|
+
const columnRestDelta = coords.col - highlightColumn;
|
179
|
+
coords.col = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topStartCorner.col, topEndCorner.col) + columnRestDelta;
|
180
|
+
} else if (delta.col > 0 && toColumn <= highlightColumn && coords.col > highlightColumn) {
|
181
|
+
const endColumnIndex = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topEndCorner.col, topStartCorner.col);
|
182
|
+
const columnRestDelta = Math.max(coords.col - endColumnIndex, 1);
|
183
|
+
coords.col = endColumnIndex + columnRestDelta;
|
189
184
|
}
|
190
|
-
if (delta.row < 0) {
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
}
|
185
|
+
if (delta.row < 0 && toRow >= highlightRow && coords.row < highlightRow) {
|
186
|
+
const rowRestDelta = coords.row - highlightRow;
|
187
|
+
coords.row = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, topStartCorner.row, bottomEndCorner.row) + rowRestDelta;
|
188
|
+
} else if (delta.row > 0 && toRow <= highlightRow && coords.row > highlightRow) {
|
189
|
+
const bottomRowIndex = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, bottomEndCorner.row, topStartCorner.row);
|
190
|
+
const rowRestDelta = Math.max(coords.row - bottomRowIndex, 1);
|
191
|
+
coords.row = bottomRowIndex + rowRestDelta;
|
198
192
|
}
|
199
193
|
const {
|
200
194
|
rowDir,
|
@@ -170,27 +170,21 @@ class Transformation {
|
|
170
170
|
const topStartCorner = cellRange.getTopStartCorner();
|
171
171
|
const topEndCorner = cellRange.getTopEndCorner();
|
172
172
|
const bottomEndCorner = cellRange.getBottomEndCorner();
|
173
|
-
|
174
|
-
|
175
|
-
col
|
176
|
-
}
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
}
|
181
|
-
} else if (delta.col > 0) {
|
182
|
-
if (toColumn <= highlightColumn && coords.col > highlightColumn) {
|
183
|
-
coords.col = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topEndCorner.col, topStartCorner.col) + restDelta.col;
|
184
|
-
}
|
173
|
+
if (delta.col < 0 && toColumn >= highlightColumn && coords.col < highlightColumn) {
|
174
|
+
const columnRestDelta = coords.col - highlightColumn;
|
175
|
+
coords.col = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topStartCorner.col, topEndCorner.col) + columnRestDelta;
|
176
|
+
} else if (delta.col > 0 && toColumn <= highlightColumn && coords.col > highlightColumn) {
|
177
|
+
const endColumnIndex = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topEndCorner.col, topStartCorner.col);
|
178
|
+
const columnRestDelta = Math.max(coords.col - endColumnIndex, 1);
|
179
|
+
coords.col = endColumnIndex + columnRestDelta;
|
185
180
|
}
|
186
|
-
if (delta.row < 0) {
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
}
|
181
|
+
if (delta.row < 0 && toRow >= highlightRow && coords.row < highlightRow) {
|
182
|
+
const rowRestDelta = coords.row - highlightRow;
|
183
|
+
coords.row = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, topStartCorner.row, bottomEndCorner.row) + rowRestDelta;
|
184
|
+
} else if (delta.row > 0 && toRow <= highlightRow && coords.row > highlightRow) {
|
185
|
+
const bottomRowIndex = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, bottomEndCorner.row, topStartCorner.row);
|
186
|
+
const rowRestDelta = Math.max(coords.row - bottomRowIndex, 1);
|
187
|
+
coords.row = bottomRowIndex + rowRestDelta;
|
194
188
|
}
|
195
189
|
const {
|
196
190
|
rowDir,
|