jsuites 6.4.0 → 6.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jsuites.css +2 -4
- package/dist/jsuites.js +11 -1
- package/package.json +3 -3
package/dist/jsuites.css
CHANGED
|
@@ -4074,8 +4074,6 @@ body.lm-dark-mode {
|
|
|
4074
4074
|
border-radius: var(--lm-border-radius, 2px);
|
|
4075
4075
|
position: relative;
|
|
4076
4076
|
line-height: normal;
|
|
4077
|
-
display: flex;
|
|
4078
|
-
align-items: center;
|
|
4079
4077
|
font: inherit;
|
|
4080
4078
|
}
|
|
4081
4079
|
|
|
@@ -4212,11 +4210,11 @@ body.lm-dark-mode {
|
|
|
4212
4210
|
}
|
|
4213
4211
|
|
|
4214
4212
|
.lm-dropdown-item[data-cursor="true"] > div {
|
|
4215
|
-
background-color: var(--lm-background-color-highlight);
|
|
4213
|
+
background-color: var(--lm-background-color-highlight, #eee);
|
|
4216
4214
|
}
|
|
4217
4215
|
|
|
4218
4216
|
.lm-dropdown-item[data-cursor="true"]:hover > div {
|
|
4219
|
-
background-color:
|
|
4217
|
+
background-color: #1d86ed;
|
|
4220
4218
|
}
|
|
4221
4219
|
|
|
4222
4220
|
.lm-dropdown-item[data-cursor="true"].lm-dropdown-item[data-selected="true"] > div {
|
package/dist/jsuites.js
CHANGED
|
@@ -6188,6 +6188,16 @@ if (! Modal && "function" === 'function') {
|
|
|
6188
6188
|
}
|
|
6189
6189
|
});
|
|
6190
6190
|
|
|
6191
|
+
// Any scroll outside the menu closes it (matches the OS context menu:
|
|
6192
|
+
// the menu refers to the spot that was right-clicked, and scrolling
|
|
6193
|
+
// moves that content away). Capture phase: scroll does not bubble.
|
|
6194
|
+
// Scrolling INSIDE a long menu list keeps it open
|
|
6195
|
+
window.addEventListener("scroll", function(e) {
|
|
6196
|
+
if (! self.isClosed() && ! (e.target instanceof Node && self.el.contains(e.target))) {
|
|
6197
|
+
self.close(0);
|
|
6198
|
+
}
|
|
6199
|
+
}, true);
|
|
6200
|
+
|
|
6191
6201
|
// Keyboard event
|
|
6192
6202
|
self.el.addEventListener("keydown", function(e) {
|
|
6193
6203
|
// Menu object
|
|
@@ -23488,7 +23498,7 @@ var jSuites = {
|
|
|
23488
23498
|
...dictionary,
|
|
23489
23499
|
...helpers,
|
|
23490
23500
|
/** Current version */
|
|
23491
|
-
version: '6.4.
|
|
23501
|
+
version: '6.4.2',
|
|
23492
23502
|
/** Bind new extensions to Jsuites */
|
|
23493
23503
|
setExtensions: function(o) {
|
|
23494
23504
|
if (typeof(o) == 'object') {
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"main": "dist/jsuites.js",
|
|
28
28
|
"types": "dist/jsuites.d.ts",
|
|
29
|
-
"version": "6.4.
|
|
29
|
+
"version": "6.4.2",
|
|
30
30
|
"bugs": "https://github.com/jsuites/jsuites/issues",
|
|
31
31
|
"homepage": "https://github.com/jsuites/jsuites",
|
|
32
32
|
"docs": "https://jsuites.net",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@jsuites/utils": "^6.0.6",
|
|
36
36
|
"@lemonadejs/calendar": "^5.9.3",
|
|
37
37
|
"@lemonadejs/color": "^5.8.0",
|
|
38
|
-
"@lemonadejs/contextmenu": "^5.8.
|
|
39
|
-
"@lemonadejs/dropdown": "^5.8.
|
|
38
|
+
"@lemonadejs/contextmenu": "^5.8.5",
|
|
39
|
+
"@lemonadejs/dropdown": "^5.8.4",
|
|
40
40
|
"@lemonadejs/modal": "^5.8.3",
|
|
41
41
|
"@lemonadejs/rating": "^5.8.1",
|
|
42
42
|
"@lemonadejs/switch": "^5.8.0",
|