@lemonadejs/calendar 3.6.0 → 5.0.0
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 +16 -13
- package/dist/style.css +1 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -856,20 +856,23 @@ if (! Modal && typeof (require) === 'function') {
|
|
|
856
856
|
// Create input controls
|
|
857
857
|
if (self.input) {
|
|
858
858
|
let input = getInput();
|
|
859
|
-
input.
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
859
|
+
if (input && input.tagName) {
|
|
860
|
+
input.classList.add('lm-input');
|
|
861
|
+
input.classList.add('lm-calendar-input');
|
|
862
|
+
input.addEventListener('focus', self.open);
|
|
863
|
+
input.addEventListener('click', self.open);
|
|
864
|
+
input.addEventListener('blur', blur);
|
|
865
|
+
|
|
866
|
+
if (self.onChange) {
|
|
867
|
+
input.addEventListener('change', self.onChange);
|
|
868
|
+
}
|
|
867
869
|
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
870
|
+
// Retrieve the value
|
|
871
|
+
if (self.value) {
|
|
872
|
+
input.value = self.value;
|
|
873
|
+
} else if (input.value && input.value !== self.value) {
|
|
874
|
+
self.value = input.value;
|
|
875
|
+
}
|
|
873
876
|
}
|
|
874
877
|
}
|
|
875
878
|
|
package/dist/style.css
CHANGED
package/package.json
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"javascript plugins"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"lemonadejs": "^
|
|
18
|
-
"@lemonadejs/modal": "^
|
|
17
|
+
"lemonadejs": "^5.0.3",
|
|
18
|
+
"@lemonadejs/modal": "^5.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "dist/index.js",
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
|
-
"version": "
|
|
22
|
+
"version": "5.0.0"
|
|
23
23
|
}
|