@lemonadejs/calendar 1.1.4 → 2.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 +7 -7
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7,23 +7,23 @@
|
|
|
7
7
|
// Load LemonadeJS
|
|
8
8
|
if (typeof(lemonade) == 'undefined') {
|
|
9
9
|
if (typeof(require) === 'function') {
|
|
10
|
-
|
|
10
|
+
const lemonade = require('lemonadejs');
|
|
11
11
|
} else if (window.lemonade) {
|
|
12
|
-
|
|
12
|
+
const lemonade = window.lemonade;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// Load LemonadeJS
|
|
17
17
|
if (typeof(jSuites) == 'undefined') {
|
|
18
18
|
if (typeof(require) === 'function') {
|
|
19
|
-
|
|
19
|
+
const jSuites = require('jsuites');
|
|
20
20
|
} else if (window.jSuites) {
|
|
21
|
-
|
|
21
|
+
const jSuites = window.jSuites;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
return function() {
|
|
26
|
-
|
|
26
|
+
const self = this;
|
|
27
27
|
|
|
28
28
|
self.onchange = function(prop) {
|
|
29
29
|
if (self.instance && prop === 'value') {
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
if (self.type == 'input') {
|
|
43
|
-
|
|
43
|
+
const template = `<input type="text" @ready="self.create(this)" name="{{self.name}}" value="{{self.value}}" />`;
|
|
44
44
|
} else {
|
|
45
|
-
|
|
45
|
+
const template = `<div @ready="self.create(this)" name="{{self.name}}" value="{{self.value}}"></div>`;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
return lemonade.element(template, self);
|
package/package.json
CHANGED