handsontable 14.4.0-next-ce765f0-20240528 → 14.4.0-next-5509e05-20240604
Sign up to get free protection for your applications and to get access to all the features.
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +3 -3
- package/dist/handsontable.full.css +3 -3
- package/dist/handsontable.full.js +17 -15
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +17 -15
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +5 -5
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/package.json +1 -1
- package/plugins/filters/ui/multipleSelect.js +1 -7
- package/plugins/filters/ui/multipleSelect.mjs +1 -7
- package/renderers/checkboxRenderer/checkboxRenderer.js +10 -2
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +10 -2
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-
|
137
|
+
const hotVersion = "14.4.0-next-5509e05-20240604";
|
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)("
|
145
|
+
const releaseDate = (0, _moment.default)("05/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-
|
127
|
+
const hotVersion = "14.4.0-next-5509e05-20240604";
|
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("
|
135
|
+
const releaseDate = moment("05/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-
|
13
|
+
"version": "14.4.0-next-5509e05-20240604",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
@@ -250,13 +250,7 @@ class MultipleSelectUI extends _base.BaseUI {
|
|
250
250
|
beforeOnCellMouseUp: () => {
|
251
251
|
_classPrivateFieldGet(_itemsBox, this).listen();
|
252
252
|
},
|
253
|
-
|
254
|
-
const minWidth = _classPrivateFieldGet(_itemsBox, this).container.scrollWidth - (0, _element.getScrollbarWidth)(rootDocument);
|
255
|
-
if (width !== undefined && width < minWidth) {
|
256
|
-
return minWidth;
|
257
|
-
}
|
258
|
-
return width;
|
259
|
-
},
|
253
|
+
colWidths: () => _classPrivateFieldGet(_itemsBox, this).container.scrollWidth - (0, _element.getScrollbarWidth)(rootDocument),
|
260
254
|
maxCols: 1,
|
261
255
|
autoWrapCol: true,
|
262
256
|
height: 110,
|
@@ -245,13 +245,7 @@ export class MultipleSelectUI extends BaseUI {
|
|
245
245
|
beforeOnCellMouseUp: () => {
|
246
246
|
_classPrivateFieldGet(_itemsBox, this).listen();
|
247
247
|
},
|
248
|
-
|
249
|
-
const minWidth = _classPrivateFieldGet(_itemsBox, this).container.scrollWidth - getScrollbarWidth(rootDocument);
|
250
|
-
if (width !== undefined && width < minWidth) {
|
251
|
-
return minWidth;
|
252
|
-
}
|
253
|
-
return width;
|
254
|
-
},
|
248
|
+
colWidths: () => _classPrivateFieldGet(_itemsBox, this).container.scrollWidth - getScrollbarWidth(rootDocument),
|
255
249
|
maxCols: 1,
|
256
250
|
autoWrapCol: true,
|
257
251
|
height: 110,
|
@@ -148,6 +148,10 @@ function checkboxRenderer(hotInstance, TD, row, col, prop, value, cellProperties
|
|
148
148
|
callback: () => {
|
149
149
|
changeSelectedCheckboxesState();
|
150
150
|
return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
|
151
|
+
},
|
152
|
+
runOnlyIf: () => {
|
153
|
+
var _hotInstance$getSelec;
|
154
|
+
return (_hotInstance$getSelec = hotInstance.getSelectedRangeLast()) === null || _hotInstance$getSelec === void 0 ? void 0 : _hotInstance$getSelec.highlight.isCell();
|
151
155
|
}
|
152
156
|
}, {
|
153
157
|
keys: [['enter']],
|
@@ -156,14 +160,18 @@ function checkboxRenderer(hotInstance, TD, row, col, prop, value, cellProperties
|
|
156
160
|
return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
|
157
161
|
},
|
158
162
|
runOnlyIf: () => {
|
159
|
-
|
160
|
-
return hotInstance.getSettings().enterBeginsEditing && (
|
163
|
+
const range = hotInstance.getSelectedRangeLast();
|
164
|
+
return hotInstance.getSettings().enterBeginsEditing && (range === null || range === void 0 ? void 0 : range.isSingle()) && range.highlight.isCell();
|
161
165
|
}
|
162
166
|
}, {
|
163
167
|
keys: [['delete'], ['backspace']],
|
164
168
|
callback: () => {
|
165
169
|
changeSelectedCheckboxesState(true);
|
166
170
|
return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
|
171
|
+
},
|
172
|
+
runOnlyIf: () => {
|
173
|
+
var _hotInstance$getSelec2;
|
174
|
+
return (_hotInstance$getSelec2 = hotInstance.getSelectedRangeLast()) === null || _hotInstance$getSelec2 === void 0 ? void 0 : _hotInstance$getSelec2.highlight.isCell();
|
167
175
|
}
|
168
176
|
}], config);
|
169
177
|
}
|
@@ -143,6 +143,10 @@ export function checkboxRenderer(hotInstance, TD, row, col, prop, value, cellPro
|
|
143
143
|
callback: () => {
|
144
144
|
changeSelectedCheckboxesState();
|
145
145
|
return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
|
146
|
+
},
|
147
|
+
runOnlyIf: () => {
|
148
|
+
var _hotInstance$getSelec;
|
149
|
+
return (_hotInstance$getSelec = hotInstance.getSelectedRangeLast()) === null || _hotInstance$getSelec === void 0 ? void 0 : _hotInstance$getSelec.highlight.isCell();
|
146
150
|
}
|
147
151
|
}, {
|
148
152
|
keys: [['enter']],
|
@@ -151,14 +155,18 @@ export function checkboxRenderer(hotInstance, TD, row, col, prop, value, cellPro
|
|
151
155
|
return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
|
152
156
|
},
|
153
157
|
runOnlyIf: () => {
|
154
|
-
|
155
|
-
return hotInstance.getSettings().enterBeginsEditing && (
|
158
|
+
const range = hotInstance.getSelectedRangeLast();
|
159
|
+
return hotInstance.getSettings().enterBeginsEditing && (range === null || range === void 0 ? void 0 : range.isSingle()) && range.highlight.isCell();
|
156
160
|
}
|
157
161
|
}, {
|
158
162
|
keys: [['delete'], ['backspace']],
|
159
163
|
callback: () => {
|
160
164
|
changeSelectedCheckboxesState(true);
|
161
165
|
return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
|
166
|
+
},
|
167
|
+
runOnlyIf: () => {
|
168
|
+
var _hotInstance$getSelec2;
|
169
|
+
return (_hotInstance$getSelec2 = hotInstance.getSelectedRangeLast()) === null || _hotInstance$getSelec2 === void 0 ? void 0 : _hotInstance$getSelec2.highlight.isCell();
|
162
170
|
}
|
163
171
|
}], config);
|
164
172
|
}
|