uikit2-rails 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/uikit2/rails/version.rb +1 -1
  4. data/vendor/assets/fonts/FontAwesome.otf +0 -0
  5. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  6. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  7. data/vendor/assets/fonts/fontawesome-webfont.woff2 +0 -0
  8. data/vendor/assets/javascripts/uikit.js +512 -425
  9. data/vendor/assets/javascripts/uikit/components/accordion.js +19 -13
  10. data/vendor/assets/javascripts/uikit/components/autocomplete.js +23 -17
  11. data/vendor/assets/javascripts/uikit/components/datepicker.js +25 -24
  12. data/vendor/assets/javascripts/uikit/components/form-password.js +16 -16
  13. data/vendor/assets/javascripts/uikit/components/form-select.js +33 -25
  14. data/vendor/assets/javascripts/uikit/components/grid-parallax.js +12 -12
  15. data/vendor/assets/javascripts/uikit/components/grid.js +47 -34
  16. data/vendor/assets/javascripts/uikit/components/htmleditor.js +47 -3
  17. data/vendor/assets/javascripts/uikit/components/lightbox.js +68 -70
  18. data/vendor/assets/javascripts/uikit/components/nestable.js +6 -6
  19. data/vendor/assets/javascripts/uikit/components/notify.js +9 -9
  20. data/vendor/assets/javascripts/uikit/components/pagination.js +8 -8
  21. data/vendor/assets/javascripts/uikit/components/parallax.js +13 -13
  22. data/vendor/assets/javascripts/uikit/components/search.js +11 -11
  23. data/vendor/assets/javascripts/uikit/components/slider.js +27 -15
  24. data/vendor/assets/javascripts/uikit/components/slideset.js +21 -12
  25. data/vendor/assets/javascripts/uikit/components/slideshow-fx.js +35 -28
  26. data/vendor/assets/javascripts/uikit/components/slideshow.js +129 -95
  27. data/vendor/assets/javascripts/uikit/components/sortable.js +45 -36
  28. data/vendor/assets/javascripts/uikit/components/sticky.js +19 -13
  29. data/vendor/assets/javascripts/uikit/components/timepicker.js +6 -6
  30. data/vendor/assets/javascripts/uikit/components/tooltip.js +47 -46
  31. data/vendor/assets/javascripts/uikit/components/upload.js +46 -44
  32. data/vendor/assets/javascripts/uikit/core/alert.js +17 -17
  33. data/vendor/assets/javascripts/uikit/core/button.js +25 -26
  34. data/vendor/assets/javascripts/uikit/core/core.js +58 -23
  35. data/vendor/assets/javascripts/uikit/core/cover.js +9 -17
  36. data/vendor/assets/javascripts/uikit/core/dropdown.js +108 -99
  37. data/vendor/assets/javascripts/uikit/core/grid.js +16 -16
  38. data/vendor/assets/javascripts/uikit/core/modal.js +35 -41
  39. data/vendor/assets/javascripts/uikit/core/nav.js +35 -18
  40. data/vendor/assets/javascripts/uikit/core/offcanvas.js +50 -33
  41. data/vendor/assets/javascripts/uikit/core/scrollspy.js +33 -33
  42. data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +8 -8
  43. data/vendor/assets/javascripts/uikit/core/switcher.js +54 -52
  44. data/vendor/assets/javascripts/uikit/core/tab.js +27 -25
  45. data/vendor/assets/javascripts/uikit/core/toggle.js +12 -8
  46. data/vendor/assets/javascripts/uikit/core/touch.js +3 -3
  47. data/vendor/assets/javascripts/uikit/core/utility.js +35 -19
  48. data/vendor/assets/stylesheets/uikit.almost-flat.css +299 -242
  49. data/vendor/assets/stylesheets/uikit.css +280 -223
  50. data/vendor/assets/stylesheets/uikit.gradient.css +309 -252
  51. data/vendor/assets/stylesheets/uikit/components/accordion.almost-flat.css +2 -2
  52. data/vendor/assets/stylesheets/uikit/components/accordion.css +2 -2
  53. data/vendor/assets/stylesheets/uikit/components/accordion.gradient.css +2 -2
  54. data/vendor/assets/stylesheets/uikit/components/autocomplete.almost-flat.css +5 -5
  55. data/vendor/assets/stylesheets/uikit/components/autocomplete.css +5 -5
  56. data/vendor/assets/stylesheets/uikit/components/autocomplete.gradient.css +5 -5
  57. data/vendor/assets/stylesheets/uikit/components/datepicker.almost-flat.css +10 -10
  58. data/vendor/assets/stylesheets/uikit/components/datepicker.css +10 -10
  59. data/vendor/assets/stylesheets/uikit/components/datepicker.gradient.css +9 -9
  60. data/vendor/assets/stylesheets/uikit/components/dotnav.almost-flat.css +1 -1
  61. data/vendor/assets/stylesheets/uikit/components/dotnav.css +1 -1
  62. data/vendor/assets/stylesheets/uikit/components/dotnav.gradient.css +1 -1
  63. data/vendor/assets/stylesheets/uikit/components/form-advanced.almost-flat.css +5 -5
  64. data/vendor/assets/stylesheets/uikit/components/form-advanced.css +5 -5
  65. data/vendor/assets/stylesheets/uikit/components/form-advanced.gradient.css +5 -5
  66. data/vendor/assets/stylesheets/uikit/components/form-file.almost-flat.css +1 -1
  67. data/vendor/assets/stylesheets/uikit/components/form-file.css +1 -1
  68. data/vendor/assets/stylesheets/uikit/components/form-file.gradient.css +1 -1
  69. data/vendor/assets/stylesheets/uikit/components/form-password.almost-flat.css +3 -3
  70. data/vendor/assets/stylesheets/uikit/components/form-password.css +3 -3
  71. data/vendor/assets/stylesheets/uikit/components/form-password.gradient.css +3 -3
  72. data/vendor/assets/stylesheets/uikit/components/form-select.almost-flat.css +1 -1
  73. data/vendor/assets/stylesheets/uikit/components/form-select.css +1 -1
  74. data/vendor/assets/stylesheets/uikit/components/form-select.gradient.css +1 -1
  75. data/vendor/assets/stylesheets/uikit/components/htmleditor.almost-flat.css +12 -12
  76. data/vendor/assets/stylesheets/uikit/components/htmleditor.css +12 -12
  77. data/vendor/assets/stylesheets/uikit/components/htmleditor.gradient.css +13 -13
  78. data/vendor/assets/stylesheets/uikit/components/nestable.almost-flat.css +7 -3
  79. data/vendor/assets/stylesheets/uikit/components/nestable.css +6 -2
  80. data/vendor/assets/stylesheets/uikit/components/nestable.gradient.css +9 -5
  81. data/vendor/assets/stylesheets/uikit/components/notify.almost-flat.css +4 -4
  82. data/vendor/assets/stylesheets/uikit/components/notify.css +3 -3
  83. data/vendor/assets/stylesheets/uikit/components/notify.gradient.css +4 -4
  84. data/vendor/assets/stylesheets/uikit/components/placeholder.almost-flat.css +3 -3
  85. data/vendor/assets/stylesheets/uikit/components/placeholder.css +3 -3
  86. data/vendor/assets/stylesheets/uikit/components/placeholder.gradient.css +3 -3
  87. data/vendor/assets/stylesheets/uikit/components/progress.almost-flat.css +2 -2
  88. data/vendor/assets/stylesheets/uikit/components/progress.css +3 -3
  89. data/vendor/assets/stylesheets/uikit/components/progress.gradient.css +2 -2
  90. data/vendor/assets/stylesheets/uikit/components/search.almost-flat.css +18 -18
  91. data/vendor/assets/stylesheets/uikit/components/search.css +17 -17
  92. data/vendor/assets/stylesheets/uikit/components/search.gradient.css +18 -18
  93. data/vendor/assets/stylesheets/uikit/components/slidenav.almost-flat.css +1 -1
  94. data/vendor/assets/stylesheets/uikit/components/slidenav.css +1 -1
  95. data/vendor/assets/stylesheets/uikit/components/slidenav.gradient.css +1 -1
  96. data/vendor/assets/stylesheets/uikit/components/slider.almost-flat.css +10 -1
  97. data/vendor/assets/stylesheets/uikit/components/slider.css +10 -1
  98. data/vendor/assets/stylesheets/uikit/components/slider.gradient.css +10 -1
  99. data/vendor/assets/stylesheets/uikit/components/slideshow.almost-flat.css +1 -1
  100. data/vendor/assets/stylesheets/uikit/components/slideshow.css +1 -1
  101. data/vendor/assets/stylesheets/uikit/components/slideshow.gradient.css +1 -1
  102. data/vendor/assets/stylesheets/uikit/components/sortable.almost-flat.css +5 -1
  103. data/vendor/assets/stylesheets/uikit/components/sortable.css +5 -1
  104. data/vendor/assets/stylesheets/uikit/components/sortable.gradient.css +5 -1
  105. data/vendor/assets/stylesheets/uikit/components/sticky.almost-flat.css +4 -1
  106. data/vendor/assets/stylesheets/uikit/components/sticky.css +4 -1
  107. data/vendor/assets/stylesheets/uikit/components/sticky.gradient.css +4 -1
  108. data/vendor/assets/stylesheets/uikit/components/tooltip.almost-flat.css +8 -7
  109. data/vendor/assets/stylesheets/uikit/components/tooltip.css +8 -7
  110. data/vendor/assets/stylesheets/uikit/components/tooltip.gradient.css +8 -7
  111. data/vendor/assets/stylesheets/uikit/components/upload.almost-flat.css +1 -1
  112. data/vendor/assets/stylesheets/uikit/components/upload.css +1 -1
  113. data/vendor/assets/stylesheets/uikit/components/upload.gradient.css +1 -1
  114. metadata +2 -2
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.27.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
  var component;
4
4
 
@@ -6,8 +6,8 @@
6
6
  component = addon(UIkit);
7
7
  }
8
8
 
9
- if (typeof define == "function" && define.amd) {
10
- define("uikit-accordion", ["uikit"], function(){
9
+ if (typeof define == 'function' && define.amd) {
10
+ define('uikit-accordion', ['uikit'], function(){
11
11
  return component || addon(UIkit);
12
12
  });
13
13
  }
@@ -35,11 +35,11 @@
35
35
 
36
36
  setTimeout(function(){
37
37
 
38
- UI.$("[data-uk-accordion]", context).each(function(){
38
+ UI.$('[data-uk-accordion]', context).each(function(){
39
39
 
40
40
  var ele = UI.$(this);
41
41
 
42
- if(!ele.data("accordion")) {
42
+ if (!ele.data('accordion')) {
43
43
  UI.accordion(ele, UI.Utils.options(ele.attr('data-uk-accordion')));
44
44
  }
45
45
  });
@@ -59,11 +59,13 @@
59
59
  $this.toggleItem(UI.$(this).data('wrapper'), $this.options.animate, $this.options.collapse);
60
60
  });
61
61
 
62
- this.update();
62
+ this.update(true);
63
63
 
64
- if (this.options.showfirst) {
65
- this.toggleItem(this.toggle.eq(0).data('wrapper'), false, false);
66
- }
64
+ UI.domObserve(this.element, function(e) {
65
+ if ($this.element.children($this.options.containers).length) {
66
+ $this.update();
67
+ }
68
+ });
67
69
  },
68
70
 
69
71
  toggleItem: function(wrapper, animated, collapse) {
@@ -113,7 +115,7 @@
113
115
  this.element.trigger('toggle.uk.accordion', [active, wrapper.data('toggle'), wrapper.data('content')]);
114
116
  },
115
117
 
116
- update: function() {
118
+ update: function(init) {
117
119
 
118
120
  var $this = this, $content, $wrapper, $toggle;
119
121
 
@@ -142,6 +144,10 @@
142
144
  });
143
145
 
144
146
  this.element.trigger('update.uk.accordion', [this]);
147
+
148
+ if (init && this.options.showfirst) {
149
+ this.toggleItem(this.toggle.eq(0).data('wrapper'), false, false);
150
+ }
145
151
  }
146
152
 
147
153
  });
@@ -157,9 +163,9 @@
157
163
  } else {
158
164
 
159
165
  var tmp = {
160
- position : $ele.css("position"),
161
- visibility : $ele.css("visibility"),
162
- display : $ele.css("display")
166
+ position : $ele.css('position'),
167
+ visibility : $ele.css('visibility'),
168
+ display : $ele.css('display')
163
169
  };
164
170
 
165
171
  height = $ele.css({position: 'absolute', visibility: 'hidden', display: 'block'}).outerHeight();
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.27.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -7,8 +7,8 @@
7
7
  component = addon(UIkit);
8
8
  }
9
9
 
10
- if (typeof define == "function" && define.amd) {
11
- define("uikit-autocomplete", ["uikit"], function(){
10
+ if (typeof define == 'function' && define.amd) {
11
+ define('uikit-autocomplete', ['uikit'], function(){
12
12
  return component || addon(UIkit);
13
13
  });
14
14
  }
@@ -45,17 +45,17 @@
45
45
  boot: function() {
46
46
 
47
47
  // init code
48
- UI.$html.on("focus.autocomplete.uikit", "[data-uk-autocomplete]", function(e) {
48
+ UI.$html.on('focus.autocomplete.uikit', '[data-uk-autocomplete]', function(e) {
49
49
 
50
50
  var ele = UI.$(this);
51
51
 
52
- if (!ele.data("autocomplete")) {
53
- UI.autocomplete(ele, UI.Utils.options(ele.attr("data-uk-autocomplete")));
52
+ if (!ele.data('autocomplete')) {
53
+ UI.autocomplete(ele, UI.Utils.options(ele.attr('data-uk-autocomplete')));
54
54
  }
55
55
  });
56
56
 
57
57
  // register outer click for autocompletes
58
- UI.$html.on("click.autocomplete.uikit", function(e) {
58
+ UI.$html.on('click.autocomplete.uikit', function(e) {
59
59
  if (active && e.target!=active.input[0]) active.hide();
60
60
  });
61
61
  },
@@ -65,9 +65,11 @@
65
65
  var $this = this,
66
66
  select = false,
67
67
  trigger = UI.Utils.debounce(function(e) {
68
- if(select) {
68
+
69
+ if (select) {
69
70
  return (select = false);
70
71
  }
72
+
71
73
  $this.handle();
72
74
  }, this.options.delay);
73
75
 
@@ -88,9 +90,10 @@
88
90
  this.dropdown.attr('aria-expanded', 'false');
89
91
 
90
92
  this.input.on({
91
- "keydown": function(e) {
92
93
 
93
- if (e && e.which && !e.shiftKey) {
94
+ keydown: function(e) {
95
+
96
+ if (e && e.which && !e.shiftKey && $this.visible) {
94
97
 
95
98
  switch (e.which) {
96
99
  case 13: // enter
@@ -119,14 +122,15 @@
119
122
  }
120
123
 
121
124
  },
122
- "keyup": trigger
125
+
126
+ keyup: trigger
123
127
  });
124
128
 
125
- this.dropdown.on("click", ".uk-autocomplete-results > *", function(){
129
+ this.dropdown.on('click', '.uk-autocomplete-results > *', function(){
126
130
  $this.select();
127
131
  });
128
132
 
129
- this.dropdown.on("mouseover", ".uk-autocomplete-results > *", function(){
133
+ this.dropdown.on('mouseover', '.uk-autocomplete-results > *', function(){
130
134
  $this.pick(UI.$(this));
131
135
  });
132
136
 
@@ -199,7 +203,7 @@
199
203
 
200
204
  var data = this.selected.data();
201
205
 
202
- this.trigger("selectitem.uk.autocomplete", [data, this]);
206
+ this.trigger('selectitem.uk.autocomplete', [data, this]);
203
207
 
204
208
  if (data.value) {
205
209
  this.input.val(data.value).trigger('change');
@@ -209,9 +213,11 @@
209
213
  },
210
214
 
211
215
  show: function() {
216
+
212
217
  if (this.visible) return;
218
+
213
219
  this.visible = true;
214
- this.element.addClass("uk-open");
220
+ this.element.addClass('uk-open');
215
221
 
216
222
  if (active && active!==this) {
217
223
  active.hide();
@@ -228,7 +234,7 @@
228
234
  hide: function() {
229
235
  if (!this.visible) return;
230
236
  this.visible = false;
231
- this.element.removeClass("uk-open");
237
+ this.element.removeClass('uk-open');
232
238
 
233
239
  if (active === this) {
234
240
  active = false;
@@ -320,7 +326,7 @@
320
326
 
321
327
  } else if(data && data.length) {
322
328
 
323
- this.dropdown.append(this.template({"items":data}));
329
+ this.dropdown.append(this.template({items:data}));
324
330
  this.show();
325
331
 
326
332
  this.trigger('show.uk.autocomplete');
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.27.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -7,8 +7,8 @@
7
7
  component = addon(UIkit);
8
8
  }
9
9
 
10
- if (typeof define == "function" && define.amd) {
11
- define("uikit-datepicker", ["uikit"], function(){
10
+ if (typeof define == 'function' && define.amd) {
11
+ define('uikit-datepicker', ['uikit'], function(){
12
12
  return component || addon(UIkit);
13
13
  });
14
14
  }
@@ -30,7 +30,7 @@
30
30
  months : ['January','February','March','April','May','June','July','August','September','October','November','December'],
31
31
  weekdays : ['Sun','Mon','Tue','Wed','Thu','Fri','Sat']
32
32
  },
33
- format: "YYYY-MM-DD",
33
+ format: 'YYYY-MM-DD',
34
34
  offsettop: 5,
35
35
  maxDate: false,
36
36
  minDate: false,
@@ -120,7 +120,7 @@
120
120
 
121
121
  boot: function() {
122
122
 
123
- UI.$win.on("resize orientationchange", function() {
123
+ UI.$win.on('resize orientationchange', function() {
124
124
 
125
125
  if (active) {
126
126
  active.hide();
@@ -128,22 +128,22 @@
128
128
  });
129
129
 
130
130
  // init code
131
- UI.$html.on("focus.datepicker.uikit", "[data-uk-datepicker]", function(e) {
131
+ UI.$html.on('focus.datepicker.uikit', '[data-uk-datepicker]', function(e) {
132
132
 
133
133
  var ele = UI.$(this);
134
134
 
135
- if (!ele.data("datepicker")) {
135
+ if (!ele.data('datepicker')) {
136
136
  e.preventDefault();
137
- UI.datepicker(ele, UI.Utils.options(ele.attr("data-uk-datepicker")));
138
- ele.trigger("focus");
137
+ UI.datepicker(ele, UI.Utils.options(ele.attr('data-uk-datepicker')));
138
+ ele.trigger('focus');
139
139
  }
140
140
  });
141
141
 
142
- UI.$html.on("click focus", '*', function(e) {
142
+ UI.$html.on('click focus', '*', function(e) {
143
143
 
144
144
  var target = UI.$(e.target);
145
145
 
146
- if (active && target[0] != dropdown[0] && !target.data("datepicker") && !target.parents(".uk-datepicker:first").length) {
146
+ if (active && target[0] != dropdown[0] && !target.data('datepicker') && !target.parents('.uk-datepicker:first').length) {
147
147
  active.hide();
148
148
  }
149
149
  });
@@ -160,9 +160,9 @@
160
160
 
161
161
  this.current = this.element.val() ? moment(this.element.val(), this.options.format) : moment();
162
162
 
163
- this.on("click focus", function(){
164
- if (active!==$this) $this.pick(this.value ? this.value:($this.options.minDate ? $this.options.minDate :''));
165
- }).on("change", function(){
163
+ this.on('click focus', function(){
164
+ if (active!==$this) $this.pick(this.value ? this.value:'');
165
+ }).on('change', function(){
166
166
 
167
167
  if ($this.element.val() && !moment($this.element.val(), $this.options.format).isValid()) {
168
168
  $this.element.val(moment().format($this.options.format));
@@ -174,7 +174,7 @@
174
174
 
175
175
  dropdown = UI.$('<div class="uk-dropdown uk-datepicker"></div>');
176
176
 
177
- dropdown.on("click", ".uk-datepicker-next, .uk-datepicker-previous, [data-date]", function(e){
177
+ dropdown.on('click', '.uk-datepicker-next, .uk-datepicker-previous, [data-date]', function(e){
178
178
 
179
179
  e.stopPropagation();
180
180
  e.preventDefault();
@@ -198,14 +198,14 @@
198
198
  active[select.is('.update-picker-year') ? 'setYear':'setMonth'](Number(select.val()));
199
199
  });
200
200
 
201
- dropdown.appendTo("body");
201
+ dropdown.appendTo('body');
202
202
  }
203
203
  },
204
204
 
205
205
  pick: function(initdate) {
206
206
 
207
207
  var offset = this.element.offset(),
208
- css = {"left": offset.left, "right":""};
208
+ css = {left: offset.left, right:''};
209
209
 
210
210
  this.current = isNaN(initdate) ? moment(initdate, this.options.format):moment();
211
211
  this.initdate = this.current.format("YYYY-MM-DD");
@@ -214,7 +214,7 @@
214
214
 
215
215
  if (UI.langdirection == 'right') {
216
216
  css.right = window.innerWidth - (css.left + this.element.outerWidth());
217
- css.left = "";
217
+ css.left = '';
218
218
  }
219
219
 
220
220
  var posTop = (offset.top - this.element.outerHeight() + this.element.height()) - this.options.offsettop - dropdown.outerHeight(),
@@ -265,15 +265,16 @@
265
265
  now = moment().format('YYYY-MM-DD'),
266
266
  days = [31, (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month],
267
267
  before = new Date(year, month, 1, 12).getDay(),
268
- data = {"month":month, "year":year,"weekdays":[],"days":[], "maxDate": false, "minDate": false},
268
+ data = {month:month, year:year, weekdays:[], days:[], maxDate:false, minDate:false},
269
269
  row = [];
270
270
 
271
+ // We need these to be midday to avoid issues from DST transition protection.
271
272
  if (opts.maxDate!==false){
272
- data.maxDate = isNaN(opts.maxDate) ? moment(opts.maxDate, opts.format) : moment().add(opts.maxDate, 'days');
273
+ data.maxDate = isNaN(opts.maxDate) ? moment(opts.maxDate, opts.format).startOf('day').hours(12) : moment().add(opts.maxDate, 'days').startOf('day').hours(12);
273
274
  }
274
275
 
275
276
  if (opts.minDate!==false){
276
- data.minDate = isNaN(opts.minDate) ? moment(opts.minDate, opts.format) : moment().add(opts.minDate-1, 'days');
277
+ data.minDate = isNaN(opts.minDate) ? moment(opts.minDate, opts.format).startOf('day').hours(12) : moment().add(opts.minDate-1, 'days').startOf('day').hours(12);
277
278
  }
278
279
 
279
280
  data.weekdays = (function(){
@@ -315,10 +316,10 @@
315
316
 
316
317
  day = moment(day);
317
318
 
318
- isSelected = this.initdate == day.format("YYYY-MM-DD");
319
- isToday = now == day.format("YYYY-MM-DD");
319
+ isSelected = this.initdate == day.format('YYYY-MM-DD');
320
+ isToday = now == day.format('YYYY-MM-DD');
320
321
 
321
- row.push({"selected": isSelected, "today": isToday, "disabled": isDisabled, "day":day, "inmonth":isInMonth});
322
+ row.push({selected: isSelected, today: isToday, disabled: isDisabled, day:day, inmonth:isInMonth});
322
323
 
323
324
  if (++r === 7) {
324
325
  data.days.push(row);
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.27.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -7,8 +7,8 @@
7
7
  component = addon(UIkit);
8
8
  }
9
9
 
10
- if (typeof define == "function" && define.amd) {
11
- define("uikit-form-password", ["uikit"], function(){
10
+ if (typeof define == 'function' && define.amd) {
11
+ define('uikit-form-password', ['uikit'], function(){
12
12
  return component || addon(UIkit);
13
13
  });
14
14
  }
@@ -20,22 +20,22 @@
20
20
  UI.component('formPassword', {
21
21
 
22
22
  defaults: {
23
- "lblShow": "Show",
24
- "lblHide": "Hide"
23
+ lblShow: 'Show',
24
+ lblHide: 'Hide'
25
25
  },
26
26
 
27
27
  boot: function() {
28
28
  // init code
29
- UI.$html.on("click.formpassword.uikit", "[data-uk-form-password]", function(e) {
29
+ UI.$html.on('click.formpassword.uikit', '[data-uk-form-password]', function(e) {
30
30
 
31
31
  var ele = UI.$(this);
32
32
 
33
- if (!ele.data("formPassword")) {
33
+ if (!ele.data('formPassword')) {
34
34
 
35
35
  e.preventDefault();
36
36
 
37
- UI.formPassword(ele, UI.Utils.options(ele.attr("data-uk-form-password")));
38
- ele.trigger("click");
37
+ UI.formPassword(ele, UI.Utils.options(ele.attr('data-uk-form-password')));
38
+ ele.trigger('click');
39
39
  }
40
40
  });
41
41
  },
@@ -44,22 +44,22 @@
44
44
 
45
45
  var $this = this;
46
46
 
47
- this.on("click", function(e) {
47
+ this.on('click', function(e) {
48
48
 
49
49
  e.preventDefault();
50
50
 
51
51
  if($this.input.length) {
52
- var type = $this.input.attr("type");
53
- $this.input.attr("type", type=="text" ? "password":"text");
54
- $this.element.html($this.options[type=="text" ? "lblShow":"lblHide"]);
52
+ var type = $this.input.attr('type');
53
+ $this.input.attr('type', type=='text' ? 'password':'text');
54
+ $this.element.html($this.options[type=='text' ? 'lblShow':'lblHide']);
55
55
  }
56
56
  });
57
57
 
58
- this.input = this.element.next("input").length ? this.element.next("input") : this.element.prev("input");
59
- this.element.html(this.options[this.input.is("[type='password']") ? "lblShow":"lblHide"]);
58
+ this.input = this.element.next('input').length ? this.element.next('input') : this.element.prev('input');
59
+ this.element.html(this.options[this.input.is('[type="password"]') ? 'lblShow':'lblHide']);
60
60
 
61
61
 
62
- this.element.data("formPassword", this);
62
+ this.element.data('formPassword', this);
63
63
  }
64
64
  });
65
65
 
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.27.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -7,8 +7,8 @@
7
7
  component = addon(UIkit);
8
8
  }
9
9
 
10
- if (typeof define == "function" && define.amd) {
11
- define("uikit-form-select", ["uikit"], function(){
10
+ if (typeof define == 'function' && define.amd) {
11
+ define('uikit-form-select', ['uikit'], function(){
12
12
  return component || addon(UIkit);
13
13
  });
14
14
  }
@@ -20,54 +20,62 @@
20
20
  UI.component('formSelect', {
21
21
 
22
22
  defaults: {
23
- 'target': '>span:first',
24
- 'activeClass': 'uk-active'
23
+ target: '>span:first',
24
+ activeClass: 'uk-active'
25
25
  },
26
26
 
27
27
  boot: function() {
28
28
  // init code
29
29
  UI.ready(function(context) {
30
30
 
31
- UI.$("[data-uk-form-select]", context).each(function(){
31
+ UI.$('[data-uk-form-select]', context).each(function(){
32
32
 
33
33
  var ele = UI.$(this);
34
34
 
35
- if (!ele.data("formSelect")) {
36
- UI.formSelect(ele, UI.Utils.options(ele.attr("data-uk-form-select")));
35
+ if (!ele.data('formSelect')) {
36
+ UI.formSelect(ele, UI.Utils.options(ele.attr('data-uk-form-select')));
37
37
  }
38
38
  });
39
39
  });
40
40
  },
41
41
 
42
42
  init: function() {
43
+
43
44
  var $this = this;
44
45
 
45
46
  this.target = this.find(this.options.target);
46
47
  this.select = this.find('select');
47
48
 
48
49
  // init + on change event
49
- this.select.on("change", (function(){
50
+ this.select.on({
51
+
52
+ change: (function(){
53
+
54
+ var select = $this.select[0], fn = function(){
50
55
 
51
- var select = $this.select[0], fn = function(){
56
+ try {
52
57
 
53
- try {
54
- if($this.options.target === 'input')
55
- {
56
- $this.target.val(select.options[select.selectedIndex].text);
57
- }
58
- else
59
- {
60
- $this.target.text(select.options[select.selectedIndex].text);
61
- }
62
- } catch(e) {}
58
+ if($this.options.target === 'input') {
59
+ $this.target.val(select.options[select.selectedIndex].text);
60
+ } else {
61
+ $this.target.text(select.options[select.selectedIndex].text);
62
+ }
63
63
 
64
- $this.element[$this.select.val() ? 'addClass':'removeClass']($this.options.activeClass);
64
+ } catch(e) {}
65
65
 
66
- return fn;
67
- };
66
+ $this.element[$this.select.val() ? 'addClass':'removeClass']($this.options.activeClass);
68
67
 
69
- return fn();
70
- })());
68
+ return fn;
69
+ };
70
+
71
+ return fn();
72
+ })(),
73
+
74
+ focus: function(){ $this.target.addClass('uk-focus') },
75
+ blur: function(){ $this.target.removeClass('uk-focus') },
76
+ mouseenter: function(){ $this.target.addClass('uk-hover') },
77
+ mouseleave: function(){ $this.target.removeClass('uk-hover') }
78
+ });
71
79
 
72
80
  this.element.data("formSelect", this);
73
81
  }