@lemonadejs/calendar 5.8.2 → 5.8.4
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/index.js +6 -3
- package/dist/style.css +1 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -536,7 +536,7 @@ const Mask = utils.Mask;
|
|
|
536
536
|
} else {
|
|
537
537
|
setCursor(s);
|
|
538
538
|
|
|
539
|
-
update();
|
|
539
|
+
update(e);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}
|
|
@@ -544,7 +544,10 @@ const Mask = utils.Mask;
|
|
|
544
544
|
// Update Calendar
|
|
545
545
|
const update = function(e) {
|
|
546
546
|
self.setValue(getValue());
|
|
547
|
-
|
|
547
|
+
|
|
548
|
+
if (! (e && e.type === 'click' && e.target.tagName === 'DIV' && self.time === true)) {
|
|
549
|
+
self.close({ origin: 'button' });
|
|
550
|
+
}
|
|
548
551
|
}
|
|
549
552
|
|
|
550
553
|
const reset = function() {
|
|
@@ -824,7 +827,7 @@ const Mask = utils.Mask;
|
|
|
824
827
|
}
|
|
825
828
|
} else if (e.code === 'Enter') {
|
|
826
829
|
if (! self.isClosed()) {
|
|
827
|
-
update();
|
|
830
|
+
update(e);
|
|
828
831
|
} else {
|
|
829
832
|
self.open();
|
|
830
833
|
}
|
package/dist/style.css
CHANGED
|
@@ -78,11 +78,6 @@
|
|
|
78
78
|
gap: 1px;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.lm-calendar-navigation i:hover {
|
|
82
|
-
background-color: var(--lm-background-color-highlight, #ebebeb);
|
|
83
|
-
color: #000;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
81
|
.lm-calendar-weekdays {
|
|
87
82
|
display: none;
|
|
88
83
|
grid-template-columns: repeat(7, 1fr);
|
|
@@ -251,7 +246,7 @@
|
|
|
251
246
|
.lm-calendar-input {
|
|
252
247
|
padding-right: 24px !important;
|
|
253
248
|
box-sizing: border-box;
|
|
254
|
-
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z" fill="gray" /></svg>') top 50% right
|
|
249
|
+
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z" fill="gray" /></svg>') top 50% right 5px no-repeat;
|
|
255
250
|
}
|
|
256
251
|
|
|
257
252
|
.lm-calendar-time[data-visible="false"] {
|
package/package.json
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"javascript plugins"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"lemonadejs": "^5.3.
|
|
17
|
+
"lemonadejs": "^5.3.6",
|
|
18
18
|
"@lemonadejs/modal": "^5.8.0",
|
|
19
19
|
"@jsuites/utils": "^6.0.3"
|
|
20
20
|
},
|
|
21
21
|
"main": "dist/index.js",
|
|
22
22
|
"types": "dist/index.d.ts",
|
|
23
|
-
"version": "5.8.
|
|
23
|
+
"version": "5.8.4"
|
|
24
24
|
}
|