handsontable 14.3.0-next-13fe676-20240409 → 14.3.0-next-3fa6b18-20240410

Sign up to get free protection for your applications and to get access to all the features.
@@ -279,6 +279,7 @@ class DateEditor extends _textEditor.TextEditor {
279
279
  * @param {boolean} force Indicates if the refreshing editor dimensions should be triggered.
280
280
  */
281
281
  refreshDimensions(force) {
282
+ var _wtOverlays$getParent;
282
283
  super.refreshDimensions(force);
283
284
  if (this.state !== _baseEditor.EDITOR_STATE.EDITING) {
284
285
  return;
@@ -288,8 +289,21 @@ class DateEditor extends _textEditor.TextEditor {
288
289
  this.hideDatepicker();
289
290
  return;
290
291
  }
291
- const view = this.hot.view;
292
- if (this.col >= view.getFirstPartiallyVisibleColumn() && this.col <= view.getLastPartiallyVisibleColumn() && this.row >= view.getFirstPartiallyVisibleRow() && this.row <= view.getLastPartiallyVisibleRow()) {
292
+ const {
293
+ rowIndexMapper,
294
+ columnIndexMapper
295
+ } = this.hot;
296
+ const {
297
+ wtOverlays
298
+ } = this.hot.view._wt;
299
+ const {
300
+ wtTable
301
+ } = (_wtOverlays$getParent = wtOverlays.getParentOverlay(this.TD)) !== null && _wtOverlays$getParent !== void 0 ? _wtOverlays$getParent : this.hot.view._wt;
302
+ const firstVisibleRow = rowIndexMapper.getVisualFromRenderableIndex(wtTable.getFirstPartiallyVisibleRow());
303
+ const lastVisibleRow = rowIndexMapper.getVisualFromRenderableIndex(wtTable.getLastPartiallyVisibleRow());
304
+ const firstVisibleColumn = columnIndexMapper.getVisualFromRenderableIndex(wtTable.getFirstPartiallyVisibleColumn());
305
+ const lastVisibleColumn = columnIndexMapper.getVisualFromRenderableIndex(wtTable.getLastPartiallyVisibleColumn());
306
+ if (this.row >= firstVisibleRow && this.row <= lastVisibleRow && this.col >= firstVisibleColumn && this.col <= lastVisibleColumn) {
293
307
  const offset = this.TD.getBoundingClientRect();
294
308
  this.datePickerStyle.top = `${this.hot.rootWindow.pageYOffset + offset.top + (0, _element.outerHeight)(this.TD)}px`;
295
309
  let pickerLeftPosition = this.hot.rootWindow.pageXOffset;
@@ -275,6 +275,7 @@ export class DateEditor extends TextEditor {
275
275
  * @param {boolean} force Indicates if the refreshing editor dimensions should be triggered.
276
276
  */
277
277
  refreshDimensions(force) {
278
+ var _wtOverlays$getParent;
278
279
  super.refreshDimensions(force);
279
280
  if (this.state !== EDITOR_STATE.EDITING) {
280
281
  return;
@@ -284,8 +285,21 @@ export class DateEditor extends TextEditor {
284
285
  this.hideDatepicker();
285
286
  return;
286
287
  }
287
- const view = this.hot.view;
288
- if (this.col >= view.getFirstPartiallyVisibleColumn() && this.col <= view.getLastPartiallyVisibleColumn() && this.row >= view.getFirstPartiallyVisibleRow() && this.row <= view.getLastPartiallyVisibleRow()) {
288
+ const {
289
+ rowIndexMapper,
290
+ columnIndexMapper
291
+ } = this.hot;
292
+ const {
293
+ wtOverlays
294
+ } = this.hot.view._wt;
295
+ const {
296
+ wtTable
297
+ } = (_wtOverlays$getParent = wtOverlays.getParentOverlay(this.TD)) !== null && _wtOverlays$getParent !== void 0 ? _wtOverlays$getParent : this.hot.view._wt;
298
+ const firstVisibleRow = rowIndexMapper.getVisualFromRenderableIndex(wtTable.getFirstPartiallyVisibleRow());
299
+ const lastVisibleRow = rowIndexMapper.getVisualFromRenderableIndex(wtTable.getLastPartiallyVisibleRow());
300
+ const firstVisibleColumn = columnIndexMapper.getVisualFromRenderableIndex(wtTable.getFirstPartiallyVisibleColumn());
301
+ const lastVisibleColumn = columnIndexMapper.getVisualFromRenderableIndex(wtTable.getLastPartiallyVisibleColumn());
302
+ if (this.row >= firstVisibleRow && this.row <= lastVisibleRow && this.col >= firstVisibleColumn && this.col <= lastVisibleColumn) {
289
303
  const offset = this.TD.getBoundingClientRect();
290
304
  this.datePickerStyle.top = `${this.hot.rootWindow.pageYOffset + offset.top + outerHeight(this.TD)}px`;
291
305
  let pickerLeftPosition = this.hot.rootWindow.pageXOffset;
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.3.0-next-13fe676-20240409";
137
+ const hotVersion = "14.3.0-next-3fa6b18-20240410";
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 = "14.3.0-next-13fe676-20240409";
127
+ const hotVersion = "14.3.0-next-3fa6b18-20240410";
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": "14.3.0-next-13fe676-20240409",
13
+ "version": "14.3.0-next-3fa6b18-20240410",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",