handsontable 0.0.0-next-b87a425-20240814 → 0.0.0-next-d008dbc-20240819
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 +145 -296
- package/dist/handsontable.full.css +152 -305
- package/dist/handsontable.full.js +3673 -3468
- package/dist/handsontable.full.min.css +14 -85
- package/dist/handsontable.full.min.js +26 -26
- package/dist/handsontable.js +3374 -3178
- package/dist/handsontable.min.css +11 -82
- package/dist/handsontable.min.js +23 -23
- package/editors/selectEditor/selectEditor.js +9 -20
- package/editors/selectEditor/selectEditor.mjs +9 -20
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/package.json +3 -4
- package/styles/handsontable.css +0 -1968
- package/styles/handsontable.min.css +0 -30
- package/styles/ht-theme-elegant-dark-auto.css +0 -184
- package/styles/ht-theme-elegant-dark-auto.min.css +0 -30
- package/styles/ht-theme-elegant-dark.css +0 -104
- package/styles/ht-theme-elegant-dark.min.css +0 -30
- package/styles/ht-theme-elegant-light.css +0 -104
- package/styles/ht-theme-elegant-light.min.css +0 -30
- package/styles/ht-theme-main-dark-auto.css +0 -184
- package/styles/ht-theme-main-dark-auto.min.css +0 -30
- package/styles/ht-theme-main-dark.css +0 -104
- package/styles/ht-theme-main-dark.min.css +0 -30
- package/styles/ht-theme-main-light.css +0 -104
- package/styles/ht-theme-main-light.min.css +0 -30
@@ -4,7 +4,6 @@ exports.__esModule = true;
|
|
4
4
|
var _baseEditor = require("../baseEditor");
|
5
5
|
var _element = require("../../helpers/dom/element");
|
6
6
|
var _object = require("../../helpers/object");
|
7
|
-
var _a11y = require("../../helpers/a11y");
|
8
7
|
const EDITOR_VISIBLE_CLASS_NAME = 'ht_editor_visible';
|
9
8
|
const SHORTCUTS_GROUP = 'selectEditor';
|
10
9
|
const EDITOR_TYPE = exports.EDITOR_TYPE = 'select';
|
@@ -22,21 +21,11 @@ class SelectEditor extends _baseEditor.BaseEditor {
|
|
22
21
|
* Initializes editor instance, DOM Element and mount hooks.
|
23
22
|
*/
|
24
23
|
init() {
|
25
|
-
this.selectWrapper = this.hot.rootDocument.createElement('div');
|
26
24
|
this.select = this.hot.rootDocument.createElement('select');
|
27
25
|
this.select.setAttribute('data-hot-input', 'true');
|
28
|
-
this.
|
29
|
-
|
30
|
-
|
31
|
-
ARROW.className = 'htAutocompleteArrow';
|
32
|
-
if (isAriaEnabled) {
|
33
|
-
ARROW.setAttribute(...(0, _a11y.A11Y_HIDDEN)());
|
34
|
-
}
|
35
|
-
ARROW.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660)));
|
36
|
-
(0, _element.addClass)(this.selectWrapper, 'htSelectEditor');
|
37
|
-
this.selectWrapper.appendChild(this.select);
|
38
|
-
this.selectWrapper.insertBefore(ARROW, this.selectWrapper.firstChild);
|
39
|
-
this.hot.rootElement.appendChild(this.selectWrapper);
|
26
|
+
this.select.style.display = 'none';
|
27
|
+
(0, _element.addClass)(this.select, 'htSelectEditor');
|
28
|
+
this.hot.rootElement.appendChild(this.select);
|
40
29
|
this.registerHooks();
|
41
30
|
}
|
42
31
|
|
@@ -64,7 +53,7 @@ class SelectEditor extends _baseEditor.BaseEditor {
|
|
64
53
|
open() {
|
65
54
|
this._opened = true;
|
66
55
|
this.refreshDimensions();
|
67
|
-
this.
|
56
|
+
this.select.style.display = '';
|
68
57
|
const shortcutManager = this.hot.getShortcutManager();
|
69
58
|
shortcutManager.setActiveContextName('editor');
|
70
59
|
this.registerShortcuts();
|
@@ -75,9 +64,9 @@ class SelectEditor extends _baseEditor.BaseEditor {
|
|
75
64
|
*/
|
76
65
|
close() {
|
77
66
|
this._opened = false;
|
78
|
-
this.
|
79
|
-
if ((0, _element.hasClass)(this.
|
80
|
-
(0, _element.removeClass)(this.
|
67
|
+
this.select.style.display = 'none';
|
68
|
+
if ((0, _element.hasClass)(this.select, EDITOR_VISIBLE_CLASS_NAME)) {
|
69
|
+
(0, _element.removeClass)(this.select, EDITOR_VISIBLE_CLASS_NAME);
|
81
70
|
}
|
82
71
|
this.unregisterShortcuts();
|
83
72
|
this.clearHooks();
|
@@ -183,13 +172,13 @@ class SelectEditor extends _baseEditor.BaseEditor {
|
|
183
172
|
width,
|
184
173
|
height
|
185
174
|
} = this.getEditedCellRect();
|
186
|
-
const selectStyle = this.
|
175
|
+
const selectStyle = this.select.style;
|
187
176
|
selectStyle.height = `${height}px`;
|
188
177
|
selectStyle.width = `${width}px`;
|
189
178
|
selectStyle.top = `${top}px`;
|
190
179
|
selectStyle[this.hot.isRtl() ? 'right' : 'left'] = `${start}px`;
|
191
180
|
selectStyle.margin = '0px';
|
192
|
-
(0, _element.addClass)(this.
|
181
|
+
(0, _element.addClass)(this.select, EDITOR_VISIBLE_CLASS_NAME);
|
193
182
|
}
|
194
183
|
|
195
184
|
/**
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { BaseEditor, EDITOR_STATE } from "../baseEditor/index.mjs";
|
2
2
|
import { addClass, empty, fastInnerHTML, hasClass, removeClass } from "../../helpers/dom/element.mjs";
|
3
3
|
import { objectEach } from "../../helpers/object.mjs";
|
4
|
-
import { A11Y_HIDDEN } from "../../helpers/a11y.mjs";
|
5
4
|
const EDITOR_VISIBLE_CLASS_NAME = 'ht_editor_visible';
|
6
5
|
const SHORTCUTS_GROUP = 'selectEditor';
|
7
6
|
export const EDITOR_TYPE = 'select';
|
@@ -19,21 +18,11 @@ export class SelectEditor extends BaseEditor {
|
|
19
18
|
* Initializes editor instance, DOM Element and mount hooks.
|
20
19
|
*/
|
21
20
|
init() {
|
22
|
-
this.selectWrapper = this.hot.rootDocument.createElement('div');
|
23
21
|
this.select = this.hot.rootDocument.createElement('select');
|
24
22
|
this.select.setAttribute('data-hot-input', 'true');
|
25
|
-
this.
|
26
|
-
|
27
|
-
|
28
|
-
ARROW.className = 'htAutocompleteArrow';
|
29
|
-
if (isAriaEnabled) {
|
30
|
-
ARROW.setAttribute(...A11Y_HIDDEN());
|
31
|
-
}
|
32
|
-
ARROW.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660)));
|
33
|
-
addClass(this.selectWrapper, 'htSelectEditor');
|
34
|
-
this.selectWrapper.appendChild(this.select);
|
35
|
-
this.selectWrapper.insertBefore(ARROW, this.selectWrapper.firstChild);
|
36
|
-
this.hot.rootElement.appendChild(this.selectWrapper);
|
23
|
+
this.select.style.display = 'none';
|
24
|
+
addClass(this.select, 'htSelectEditor');
|
25
|
+
this.hot.rootElement.appendChild(this.select);
|
37
26
|
this.registerHooks();
|
38
27
|
}
|
39
28
|
|
@@ -61,7 +50,7 @@ export class SelectEditor extends BaseEditor {
|
|
61
50
|
open() {
|
62
51
|
this._opened = true;
|
63
52
|
this.refreshDimensions();
|
64
|
-
this.
|
53
|
+
this.select.style.display = '';
|
65
54
|
const shortcutManager = this.hot.getShortcutManager();
|
66
55
|
shortcutManager.setActiveContextName('editor');
|
67
56
|
this.registerShortcuts();
|
@@ -72,9 +61,9 @@ export class SelectEditor extends BaseEditor {
|
|
72
61
|
*/
|
73
62
|
close() {
|
74
63
|
this._opened = false;
|
75
|
-
this.
|
76
|
-
if (hasClass(this.
|
77
|
-
removeClass(this.
|
64
|
+
this.select.style.display = 'none';
|
65
|
+
if (hasClass(this.select, EDITOR_VISIBLE_CLASS_NAME)) {
|
66
|
+
removeClass(this.select, EDITOR_VISIBLE_CLASS_NAME);
|
78
67
|
}
|
79
68
|
this.unregisterShortcuts();
|
80
69
|
this.clearHooks();
|
@@ -180,13 +169,13 @@ export class SelectEditor extends BaseEditor {
|
|
180
169
|
width,
|
181
170
|
height
|
182
171
|
} = this.getEditedCellRect();
|
183
|
-
const selectStyle = this.
|
172
|
+
const selectStyle = this.select.style;
|
184
173
|
selectStyle.height = `${height}px`;
|
185
174
|
selectStyle.width = `${width}px`;
|
186
175
|
selectStyle.top = `${top}px`;
|
187
176
|
selectStyle[this.hot.isRtl() ? 'right' : 'left'] = `${start}px`;
|
188
177
|
selectStyle.margin = '0px';
|
189
|
-
addClass(this.
|
178
|
+
addClass(this.select, EDITOR_VISIBLE_CLASS_NAME);
|
190
179
|
}
|
191
180
|
|
192
181
|
/**
|
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-d008dbc-20240819";
|
138
138
|
let keyValidityDate;
|
139
139
|
let consoleMessageState = 'invalid';
|
140
140
|
let domMessageState = 'invalid';
|
@@ -188,7 +188,7 @@ function _injectProductInfo(key, element) {
|
|
188
188
|
});
|
189
189
|
if (message) {
|
190
190
|
const messageNode = document.createElement('div');
|
191
|
-
messageNode.className = '
|
191
|
+
messageNode.className = 'hot-display-license-info';
|
192
192
|
messageNode.innerHTML = domMessages[domMessageState]({
|
193
193
|
keyValidityDate,
|
194
194
|
hotVersion
|
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-d008dbc-20240819";
|
128
128
|
let keyValidityDate;
|
129
129
|
let consoleMessageState = 'invalid';
|
130
130
|
let domMessageState = 'invalid';
|
@@ -178,7 +178,7 @@ export function _injectProductInfo(key, element) {
|
|
178
178
|
});
|
179
179
|
if (message) {
|
180
180
|
const messageNode = document.createElement('div');
|
181
|
-
messageNode.className = '
|
181
|
+
messageNode.className = 'hot-display-license-info';
|
182
182
|
messageNode.innerHTML = domMessages[domMessageState]({
|
183
183
|
keyValidityDate,
|
184
184
|
hotVersion
|
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-d008dbc-20240819",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
@@ -50,6 +50,7 @@
|
|
50
50
|
"@babel/register": "^7.8.3",
|
51
51
|
"@babel/runtime": "^7.11.2",
|
52
52
|
"@babel/types": "^7.12.12",
|
53
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
53
54
|
"babel-jest": "^26.6.3",
|
54
55
|
"babel-loader": "^8.0.4",
|
55
56
|
"babel-plugin-forbidden-imports": "^0.1.2",
|
@@ -93,10 +94,8 @@
|
|
93
94
|
"string-replace-loader": "^3.1.0",
|
94
95
|
"stylelint": "^16.3.1",
|
95
96
|
"typescript": "3.8.2",
|
96
|
-
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
97
97
|
"webpack": "^5.88.1",
|
98
|
-
"webpack-cli": "^5.1.4"
|
99
|
-
"webpack-remove-empty-scripts": "^1.0.4"
|
98
|
+
"webpack-cli": "^5.1.4"
|
100
99
|
},
|
101
100
|
"optionalDependencies": {
|
102
101
|
"hyperformula": "^2.6.2"
|