handsontable 14.0.0-next-f88c253-20231106 → 14.0.0-next-07c0a60-20231107
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 +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +11 -23
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +4 -4
- package/dist/handsontable.js +11 -23
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +16 -16
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/comments/contextMenuItem/addEditComment.js +2 -5
- package/plugins/comments/contextMenuItem/addEditComment.mjs +2 -5
- package/plugins/comments/contextMenuItem/readOnlyComment.js +2 -8
- package/plugins/comments/contextMenuItem/readOnlyComment.mjs +2 -8
- package/plugins/comments/contextMenuItem/removeComment.js +2 -5
- package/plugins/comments/contextMenuItem/removeComment.mjs +2 -5
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.0.0-next-
|
137
|
+
const hotVersion = "14.0.0-next-07c0a60-20231107";
|
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.0.0-next-
|
127
|
+
const hotVersion = "14.0.0-next-07c0a60-20231107";
|
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.0.0-next-
|
13
|
+
"version": "14.0.0-next-07c0a60-20231107",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
@@ -29,13 +29,10 @@ function addEditCommentItem(plugin) {
|
|
29
29
|
},
|
30
30
|
disabled() {
|
31
31
|
const range = this.getSelectedRangeLast();
|
32
|
-
if (!range) {
|
32
|
+
if (!range || range.highlight.isHeader() || this.selection.isEntireRowSelected() && this.selection.isEntireColumnSelected() || this.countRenderedRows() === 0 || this.countRenderedCols() === 0) {
|
33
33
|
return true;
|
34
34
|
}
|
35
|
-
|
36
|
-
return true;
|
37
|
-
}
|
38
|
-
return this.countRenderedRows() === 0 || this.countRenderedCols() === 0;
|
35
|
+
return false;
|
39
36
|
}
|
40
37
|
};
|
41
38
|
}
|
@@ -23,13 +23,10 @@ export default function addEditCommentItem(plugin) {
|
|
23
23
|
},
|
24
24
|
disabled() {
|
25
25
|
const range = this.getSelectedRangeLast();
|
26
|
-
if (!range) {
|
26
|
+
if (!range || range.highlight.isHeader() || this.selection.isEntireRowSelected() && this.selection.isEntireColumnSelected() || this.countRenderedRows() === 0 || this.countRenderedCols() === 0) {
|
27
27
|
return true;
|
28
28
|
}
|
29
|
-
|
30
|
-
return true;
|
31
|
-
}
|
32
|
-
return this.countRenderedRows() === 0 || this.countRenderedCols() === 0;
|
29
|
+
return false;
|
33
30
|
}
|
34
31
|
};
|
35
32
|
}
|
@@ -34,16 +34,10 @@ function readOnlyCommentItem(plugin) {
|
|
34
34
|
},
|
35
35
|
disabled() {
|
36
36
|
const range = this.getSelectedRangeLast();
|
37
|
-
if (!range) {
|
37
|
+
if (!range || range.highlight.isHeader() || !plugin.getCommentAtCell(range.highlight.row, range.highlight.col) || this.selection.isEntireRowSelected() && this.selection.isEntireColumnSelected() || this.countRenderedRows() === 0 || this.countRenderedCols() === 0) {
|
38
38
|
return true;
|
39
39
|
}
|
40
|
-
|
41
|
-
return true;
|
42
|
-
}
|
43
|
-
if (!plugin.getCommentAtCell(range.highlight.row, range.highlight.col)) {
|
44
|
-
return true;
|
45
|
-
}
|
46
|
-
return this.countRenderedRows() === 0 || this.countRenderedCols() === 0;
|
40
|
+
return false;
|
47
41
|
}
|
48
42
|
};
|
49
43
|
}
|
@@ -28,16 +28,10 @@ export default function readOnlyCommentItem(plugin) {
|
|
28
28
|
},
|
29
29
|
disabled() {
|
30
30
|
const range = this.getSelectedRangeLast();
|
31
|
-
if (!range) {
|
31
|
+
if (!range || range.highlight.isHeader() || !plugin.getCommentAtCell(range.highlight.row, range.highlight.col) || this.selection.isEntireRowSelected() && this.selection.isEntireColumnSelected() || this.countRenderedRows() === 0 || this.countRenderedCols() === 0) {
|
32
32
|
return true;
|
33
33
|
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
if (!plugin.getCommentAtCell(range.highlight.row, range.highlight.col)) {
|
38
|
-
return true;
|
39
|
-
}
|
40
|
-
return this.countRenderedRows() === 0 || this.countRenderedCols() === 0;
|
34
|
+
return false;
|
41
35
|
}
|
42
36
|
};
|
43
37
|
}
|
@@ -26,13 +26,10 @@ function removeCommentItem(plugin) {
|
|
26
26
|
},
|
27
27
|
disabled() {
|
28
28
|
const range = this.getSelectedRangeLast();
|
29
|
-
if (!range) {
|
29
|
+
if (!range || range.highlight.isHeader() || this.selection.isEntireRowSelected() && this.selection.isEntireColumnSelected() || this.countRenderedRows() === 0 || this.countRenderedCols() === 0) {
|
30
30
|
return true;
|
31
31
|
}
|
32
|
-
|
33
|
-
return true;
|
34
|
-
}
|
35
|
-
return this.countRenderedRows() === 0 || this.countRenderedCols() === 0;
|
32
|
+
return false;
|
36
33
|
}
|
37
34
|
};
|
38
35
|
}
|
@@ -20,13 +20,10 @@ export default function removeCommentItem(plugin) {
|
|
20
20
|
},
|
21
21
|
disabled() {
|
22
22
|
const range = this.getSelectedRangeLast();
|
23
|
-
if (!range) {
|
23
|
+
if (!range || range.highlight.isHeader() || this.selection.isEntireRowSelected() && this.selection.isEntireColumnSelected() || this.countRenderedRows() === 0 || this.countRenderedCols() === 0) {
|
24
24
|
return true;
|
25
25
|
}
|
26
|
-
|
27
|
-
return true;
|
28
|
-
}
|
29
|
-
return this.countRenderedRows() === 0 || this.countRenderedCols() === 0;
|
26
|
+
return false;
|
30
27
|
}
|
31
28
|
};
|
32
29
|
}
|