handsontable 0.0.0-next-12340ef-20240409 → 0.0.0-next-16c41fc-20240410
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 +21 -7
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +3 -3
- package/dist/handsontable.js +21 -7
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +3 -3
- package/editors/dateEditor/dateEditor.js +16 -2
- package/editors/dateEditor/dateEditor.mjs +16 -2
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
@@ -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
|
292
|
-
|
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
|
288
|
-
|
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 = "0.0.0-next-
|
137
|
+
const hotVersion = "0.0.0-next-16c41fc-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 = "0.0.0-next-
|
127
|
+
const hotVersion = "0.0.0-next-16c41fc-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": "0.0.0-next-
|
13
|
+
"version": "0.0.0-next-16c41fc-20240410",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|