handsontable 14.4.0-next-6600794-20240605 → 14.4.0-next-1ffa7bc-20240606

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.
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 = "14.4.0-next-6600794-20240605";
137
+ const hotVersion = "14.4.0-next-1ffa7bc-20240606";
138
138
  let keyValidityDate;
139
139
  let consoleMessageState = 'invalid';
140
140
  let domMessageState = 'invalid';
@@ -142,7 +142,7 @@ function _injectProductInfo(key, element) {
142
142
  const schemaValidity = _checkKeySchema(key);
143
143
  if (hasValidType || isNonCommercial || schemaValidity) {
144
144
  if (schemaValidity) {
145
- const releaseDate = (0, _moment.default)("06/06/2024", 'DD/MM/YYYY');
145
+ const releaseDate = (0, _moment.default)("11/06/2024", 'DD/MM/YYYY');
146
146
  const releaseDays = Math.floor(releaseDate.toDate().getTime() / 8.64e7);
147
147
  const keyValidityDays = _extractTime(key);
148
148
  keyValidityDate = (0, _moment.default)((keyValidityDays + 1) * 8.64e7, 'x').format('MMMM DD, YYYY');
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 = "14.4.0-next-6600794-20240605";
127
+ const hotVersion = "14.4.0-next-1ffa7bc-20240606";
128
128
  let keyValidityDate;
129
129
  let consoleMessageState = 'invalid';
130
130
  let domMessageState = 'invalid';
@@ -132,7 +132,7 @@ export function _injectProductInfo(key, element) {
132
132
  const schemaValidity = _checkKeySchema(key);
133
133
  if (hasValidType || isNonCommercial || schemaValidity) {
134
134
  if (schemaValidity) {
135
- const releaseDate = moment("06/06/2024", 'DD/MM/YYYY');
135
+ const releaseDate = moment("11/06/2024", 'DD/MM/YYYY');
136
136
  const releaseDays = Math.floor(releaseDate.toDate().getTime() / 8.64e7);
137
137
  const keyValidityDays = _extractTime(key);
138
138
  keyValidityDate = moment((keyValidityDays + 1) * 8.64e7, 'x').format('MMMM DD, YYYY');
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": "14.4.0-next-6600794-20240605",
13
+ "version": "14.4.0-next-1ffa7bc-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
- const restDelta = {
178
- row: coords.row - highlightRow,
179
- col: coords.col - highlightColumn
180
- };
181
- if (delta.col < 0) {
182
- if (toColumn >= highlightColumn && coords.col < highlightColumn) {
183
- coords.col = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topStartCorner.col, topEndCorner.col) + restDelta.col;
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
- if (toRow >= highlightRow && coords.row < highlightRow) {
192
- coords.row = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, topStartCorner.row, bottomEndCorner.row) + restDelta.row;
193
- }
194
- } else if (delta.row > 0) {
195
- if (toRow <= highlightRow && coords.row > highlightRow) {
196
- coords.row = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, bottomEndCorner.row, topStartCorner.row) + restDelta.row;
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
- const restDelta = {
174
- row: coords.row - highlightRow,
175
- col: coords.col - highlightColumn
176
- };
177
- if (delta.col < 0) {
178
- if (toColumn >= highlightColumn && coords.col < highlightColumn) {
179
- coords.col = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topStartCorner.col, topEndCorner.col) + restDelta.col;
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
- if (toRow >= highlightRow && coords.row < highlightRow) {
188
- coords.row = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, topStartCorner.row, bottomEndCorner.row) + restDelta.row;
189
- }
190
- } else if (delta.row > 0) {
191
- if (toRow <= highlightRow && coords.row > highlightRow) {
192
- coords.row = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, bottomEndCorner.row, topStartCorner.row) + restDelta.row;
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,
@@ -14,7 +14,7 @@ interface Shortcut {
14
14
  export interface Context {
15
15
  addShortcut(shortcut: Shortcut): void;
16
16
  addShortcuts(shortcuts: Shortcut[]): void;
17
- getShortcuts(): Shortcut[];
17
+ getShortcuts(keys: string[]): Shortcut[];
18
18
  hasShortcut(keys: string[]): boolean;
19
19
  removeShortcutsByKeys(keys: string[]): void;
20
20
  removeShortcutsByGroup(group: string): void;