uikit2-rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -7
  3. data/lib/uikit2/rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/uikit/components/accordion.js +4 -2
  5. data/vendor/assets/javascripts/uikit/components/autocomplete.js +1 -1
  6. data/vendor/assets/javascripts/uikit/components/datepicker.js +2 -2
  7. data/vendor/assets/javascripts/uikit/components/form-password.js +1 -1
  8. data/vendor/assets/javascripts/uikit/components/form-select.js +1 -1
  9. data/vendor/assets/javascripts/uikit/components/grid.js +5 -1
  10. data/vendor/assets/javascripts/uikit/components/htmleditor.js +1 -1
  11. data/vendor/assets/javascripts/uikit/components/lightbox.js +1 -1
  12. data/vendor/assets/javascripts/uikit/components/nestable.js +1 -1
  13. data/vendor/assets/javascripts/uikit/components/notify.js +1 -1
  14. data/vendor/assets/javascripts/uikit/components/pagination.js +1 -1
  15. data/vendor/assets/javascripts/uikit/components/parallax.js +17 -3
  16. data/vendor/assets/javascripts/uikit/components/search.js +1 -1
  17. data/vendor/assets/javascripts/uikit/components/slider.js +7 -5
  18. data/vendor/assets/javascripts/uikit/components/slideset.js +7 -3
  19. data/vendor/assets/javascripts/uikit/components/slideshow-fx.js +1 -1
  20. data/vendor/assets/javascripts/uikit/components/slideshow.js +12 -2
  21. data/vendor/assets/javascripts/uikit/components/sortable.js +33 -9
  22. data/vendor/assets/javascripts/uikit/components/sticky.js +6 -5
  23. data/vendor/assets/javascripts/uikit/components/timepicker.js +2 -2
  24. data/vendor/assets/javascripts/uikit/components/tooltip.js +1 -1
  25. data/vendor/assets/javascripts/uikit/components/upload.js +1 -1
  26. data/vendor/assets/javascripts/uikit/core/alert.js +1 -1
  27. data/vendor/assets/javascripts/uikit/core/button.js +1 -1
  28. data/vendor/assets/javascripts/uikit/core/core.js +2 -2
  29. data/vendor/assets/javascripts/uikit/core/cover.js +1 -1
  30. data/vendor/assets/javascripts/uikit/core/dropdown.js +33 -19
  31. data/vendor/assets/javascripts/uikit/core/grid.js +1 -1
  32. data/vendor/assets/javascripts/uikit/core/modal.js +1 -1
  33. data/vendor/assets/javascripts/uikit/core/nav.js +1 -1
  34. data/vendor/assets/javascripts/uikit/core/offcanvas.js +2 -2
  35. data/vendor/assets/javascripts/uikit/core/scrollspy.js +2 -2
  36. data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +1 -1
  37. data/vendor/assets/javascripts/uikit/core/switcher.js +2 -2
  38. data/vendor/assets/javascripts/uikit/core/tab.js +1 -1
  39. data/vendor/assets/javascripts/uikit/core/toggle.js +1 -1
  40. data/vendor/assets/javascripts/uikit/core/touch.js +1 -1
  41. data/vendor/assets/javascripts/uikit/core/utility.js +1 -1
  42. data/vendor/assets/javascripts/uikit.js +36 -22
  43. data/vendor/assets/stylesheets/uikit/components/accordion.almost-flat.css +1 -1
  44. data/vendor/assets/stylesheets/uikit/components/accordion.css +1 -1
  45. data/vendor/assets/stylesheets/uikit/components/accordion.gradient.css +1 -1
  46. data/vendor/assets/stylesheets/uikit/components/autocomplete.almost-flat.css +1 -1
  47. data/vendor/assets/stylesheets/uikit/components/autocomplete.css +1 -1
  48. data/vendor/assets/stylesheets/uikit/components/autocomplete.gradient.css +1 -1
  49. data/vendor/assets/stylesheets/uikit/components/datepicker.almost-flat.css +1 -1
  50. data/vendor/assets/stylesheets/uikit/components/datepicker.css +1 -1
  51. data/vendor/assets/stylesheets/uikit/components/datepicker.gradient.css +1 -1
  52. data/vendor/assets/stylesheets/uikit/components/dotnav.almost-flat.css +1 -1
  53. data/vendor/assets/stylesheets/uikit/components/dotnav.css +1 -1
  54. data/vendor/assets/stylesheets/uikit/components/dotnav.gradient.css +1 -1
  55. data/vendor/assets/stylesheets/uikit/components/form-advanced.almost-flat.css +1 -1
  56. data/vendor/assets/stylesheets/uikit/components/form-advanced.css +1 -1
  57. data/vendor/assets/stylesheets/uikit/components/form-advanced.gradient.css +1 -1
  58. data/vendor/assets/stylesheets/uikit/components/form-file.almost-flat.css +1 -1
  59. data/vendor/assets/stylesheets/uikit/components/form-file.css +1 -1
  60. data/vendor/assets/stylesheets/uikit/components/form-file.gradient.css +1 -1
  61. data/vendor/assets/stylesheets/uikit/components/form-password.almost-flat.css +1 -1
  62. data/vendor/assets/stylesheets/uikit/components/form-password.css +1 -1
  63. data/vendor/assets/stylesheets/uikit/components/form-password.gradient.css +1 -1
  64. data/vendor/assets/stylesheets/uikit/components/form-select.almost-flat.css +1 -1
  65. data/vendor/assets/stylesheets/uikit/components/form-select.css +1 -1
  66. data/vendor/assets/stylesheets/uikit/components/form-select.gradient.css +1 -1
  67. data/vendor/assets/stylesheets/uikit/components/htmleditor.almost-flat.css +1 -1
  68. data/vendor/assets/stylesheets/uikit/components/htmleditor.css +1 -1
  69. data/vendor/assets/stylesheets/uikit/components/htmleditor.gradient.css +1 -1
  70. data/vendor/assets/stylesheets/uikit/components/nestable.almost-flat.css +1 -1
  71. data/vendor/assets/stylesheets/uikit/components/nestable.css +1 -1
  72. data/vendor/assets/stylesheets/uikit/components/nestable.gradient.css +1 -1
  73. data/vendor/assets/stylesheets/uikit/components/notify.almost-flat.css +1 -1
  74. data/vendor/assets/stylesheets/uikit/components/notify.css +1 -1
  75. data/vendor/assets/stylesheets/uikit/components/notify.gradient.css +1 -1
  76. data/vendor/assets/stylesheets/uikit/components/placeholder.almost-flat.css +1 -1
  77. data/vendor/assets/stylesheets/uikit/components/placeholder.css +1 -1
  78. data/vendor/assets/stylesheets/uikit/components/placeholder.gradient.css +1 -1
  79. data/vendor/assets/stylesheets/uikit/components/progress.almost-flat.css +1 -1
  80. data/vendor/assets/stylesheets/uikit/components/progress.css +1 -1
  81. data/vendor/assets/stylesheets/uikit/components/progress.gradient.css +1 -1
  82. data/vendor/assets/stylesheets/uikit/components/search.almost-flat.css +1 -1
  83. data/vendor/assets/stylesheets/uikit/components/search.css +1 -1
  84. data/vendor/assets/stylesheets/uikit/components/search.gradient.css +1 -1
  85. data/vendor/assets/stylesheets/uikit/components/slidenav.almost-flat.css +1 -1
  86. data/vendor/assets/stylesheets/uikit/components/slidenav.css +1 -1
  87. data/vendor/assets/stylesheets/uikit/components/slidenav.gradient.css +1 -1
  88. data/vendor/assets/stylesheets/uikit/components/slider.almost-flat.css +1 -1
  89. data/vendor/assets/stylesheets/uikit/components/slider.css +1 -1
  90. data/vendor/assets/stylesheets/uikit/components/slider.gradient.css +1 -1
  91. data/vendor/assets/stylesheets/uikit/components/slideshow.almost-flat.css +5 -1
  92. data/vendor/assets/stylesheets/uikit/components/slideshow.css +5 -1
  93. data/vendor/assets/stylesheets/uikit/components/slideshow.gradient.css +5 -1
  94. data/vendor/assets/stylesheets/uikit/components/sortable.almost-flat.css +1 -1
  95. data/vendor/assets/stylesheets/uikit/components/sortable.css +1 -1
  96. data/vendor/assets/stylesheets/uikit/components/sortable.gradient.css +1 -1
  97. data/vendor/assets/stylesheets/uikit/components/sticky.almost-flat.css +1 -1
  98. data/vendor/assets/stylesheets/uikit/components/sticky.css +1 -1
  99. data/vendor/assets/stylesheets/uikit/components/sticky.gradient.css +1 -1
  100. data/vendor/assets/stylesheets/uikit/components/tooltip.almost-flat.css +1 -1
  101. data/vendor/assets/stylesheets/uikit/components/tooltip.css +1 -1
  102. data/vendor/assets/stylesheets/uikit/components/tooltip.gradient.css +1 -1
  103. data/vendor/assets/stylesheets/uikit/components/upload.almost-flat.css +1 -1
  104. data/vendor/assets/stylesheets/uikit/components/upload.css +1 -1
  105. data/vendor/assets/stylesheets/uikit/components/upload.gradient.css +1 -1
  106. data/vendor/assets/stylesheets/uikit.almost-flat.css +123 -3
  107. data/vendor/assets/stylesheets/uikit.css +122 -3
  108. data/vendor/assets/stylesheets/uikit.gradient.css +123 -3
  109. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86b8471ce66b662417471d44bf9d5587dbea8a78
4
- data.tar.gz: 26a08097d6c9831bbf5389dfafb033c886a0bb4a
3
+ metadata.gz: 7bedafb2de8fefbeefd4b4d0ca0e29a5d9469a7e
4
+ data.tar.gz: cc9953bc441104fad9c8eb8f17f4f970dd20439b
5
5
  SHA512:
6
- metadata.gz: 06e4e20340179e007da5b8c0c5117ae3ee565501b60a39b317fc35ad3c4cdd6330686eb536098c43eb9806186e1e7dcace7b42f08cce12670044bb57a8984d85
7
- data.tar.gz: 9bedcc384b90667aae6ac61246465b2cdd090f50aa084a12a28c4c9b773e19b5c36ef90964cd4a44c0ae03fd57797b84f3000bcd8c5da1dc4923e7b676ecd8f1
6
+ metadata.gz: ce64661010a420f30951392662cb300600d2c4c21a7acd086eefac10c9e9b0fe177d665f2e96fcbe51059c3d3b19cf1f7cad293721b6b70007772987b8157b04
7
+ data.tar.gz: db4a3e7627f84a77e8f517ffff40ebf32ea707de699869e8da4a7242b061743b744819a928324e99c0a64c9733635501dd0a2ef2b3fc35a47b0d2342b07c513d
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/uikit2-rails.svg)](http://badge.fury.io/rb/uikit2-rails)
4
4
 
5
- UIkit 2.23.0
5
+ UIkit 2.24.0
6
6
 
7
7
  ## Installation
8
8
 
@@ -56,12 +56,6 @@ And in your application js:
56
56
  //= require uikit/core/alert
57
57
  ```
58
58
 
59
- ## Development
60
-
61
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
62
-
63
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
64
-
65
59
  ## Contributing
66
60
 
67
61
  Bug reports and pull requests are welcome on GitHub at https://github.com/digaev/uikit2-rails.
@@ -1,5 +1,5 @@
1
1
  module Uikit2
2
2
  module Rails
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
  var component;
4
4
 
@@ -71,12 +71,14 @@
71
71
  var $this = this;
72
72
 
73
73
  wrapper.data('toggle').toggleClass(this.options.clsactive);
74
+ wrapper.data('content').toggleClass(this.options.clsactive);
74
75
 
75
76
  var active = wrapper.data('toggle').hasClass(this.options.clsactive);
76
77
 
77
78
  if (collapse) {
78
79
  this.toggle.not(wrapper.data('toggle')).removeClass(this.options.clsactive);
79
- this.content.not(wrapper.data('content')).parent().stop().css('overflow', 'hidden').animate({ height: 0 }, {easing: this.options.easing, duration: animated ? this.options.duration : 0}).attr('aria-expanded', 'false');
80
+ this.content.not(wrapper.data('content')).removeClass(this.options.clsactive)
81
+ .parent().stop().css('overflow', 'hidden').animate({ height: 0 }, {easing: this.options.easing, duration: animated ? this.options.duration : 0}).attr('aria-expanded', 'false');
80
82
  }
81
83
 
82
84
  wrapper.stop().css('overflow', 'hidden');
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -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: "DD.MM.YYYY",
33
+ format: "YYYY-MM-DD",
34
34
  offsettop: 5,
35
35
  maxDate: false,
36
36
  minDate: false,
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -228,6 +228,10 @@
228
228
 
229
229
  filter = filter || [];
230
230
 
231
+ if (typeof(filter) === 'number') {
232
+ filter = filter.toString();
233
+ }
234
+
231
235
  if (typeof(filter) === 'string') {
232
236
  filter = filter.split(/,/).map(function(item){ return item.trim(); });
233
237
  }
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /*
3
3
  * Based on Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/
4
4
  */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /*
3
3
  * Based on simplePagination - Copyright (c) 2012 Flavius Matis - http://flaviusmatis.github.com/simplePagination.js/ (MIT)
4
4
  */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -185,7 +185,8 @@
185
185
 
186
186
  update: function(percent) {
187
187
 
188
- var css = {'transform':''},
188
+ var $this = this,
189
+ css = {'transform':''},
189
190
  compercent = percent * (1 - (this.velocity - (this.velocity * percent))),
190
191
  opts, val;
191
192
 
@@ -236,6 +237,12 @@
236
237
 
237
238
  // bg image
238
239
  case "bg":
240
+
241
+ // don't move if image height is too small
242
+ if ($this.element.data('bgsize') && ($this.element.data('bgsize').h + val - window.innerHeight) < 0) {
243
+ break;
244
+ }
245
+
239
246
  css['background-position'] = '50% '+val+'px';
240
247
  break;
241
248
  case "bgp":
@@ -300,16 +307,23 @@
300
307
 
301
308
  // if element height < parent height (gap underneath)
302
309
  if ((w / ratio) < h) {
310
+
303
311
  width = Math.ceil(h * ratio);
304
312
  height = h;
305
313
 
314
+ if (h > window.innerHeight) {
315
+ width = width * 1.2;
316
+ height = height * 1.2;
317
+ }
318
+
306
319
  // element width < parent width (gap to right)
307
320
  } else {
321
+
308
322
  width = w;
309
323
  height = Math.ceil(w / ratio);
310
324
  }
311
325
 
312
- element.css({'background-size': (width+'px '+height+'px')});
326
+ element.css({'background-size': (width+'px '+height+'px')}).data('bgsize', {w:width,h:height});
313
327
  };
314
328
 
315
329
  img.onerror = function(){
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -38,11 +38,11 @@
38
38
 
39
39
  setTimeout(function(){
40
40
 
41
- UI.$("[data-uk-slider]", context).each(function(){
41
+ UI.$('[data-uk-slider]', context).each(function(){
42
42
 
43
43
  var ele = UI.$(this);
44
44
 
45
- if (!ele.data("slider")) {
45
+ if (!ele.data('slider')) {
46
46
  UI.slider(ele, UI.Utils.options(ele.attr('data-uk-slider')));
47
47
  }
48
48
  });
@@ -58,11 +58,11 @@
58
58
  this.container = this.element.find('.uk-slider');
59
59
  this.focus = 0;
60
60
 
61
- UI.$win.on("resize load", UI.Utils.debounce(function() {
61
+ UI.$win.on('resize load', UI.Utils.debounce(function() {
62
62
  $this.resize(true);
63
63
  }, 100));
64
64
 
65
- this.on("click.uikit.slider", '[data-uk-slider-item]', function(e) {
65
+ this.on('click.uikit.slider', '[data-uk-slider-item]', function(e) {
66
66
 
67
67
  e.preventDefault();
68
68
 
@@ -84,6 +84,7 @@
84
84
  });
85
85
 
86
86
  this.container.on({
87
+
87
88
  'touchstart mousedown': function(evt) {
88
89
 
89
90
  if (evt.originalEvent && evt.originalEvent.touches) {
@@ -137,6 +138,7 @@
137
138
  delayIdle.threshold = $this.options.threshold;
138
139
 
139
140
  },
141
+
140
142
  mouseenter: function() { if ($this.options.pauseOnHover) $this.hovering = true; },
141
143
  mouseleave: function() { $this.hovering = false; }
142
144
  });
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -396,7 +396,7 @@
396
396
 
397
397
  function coreAnimation(cls, current, next, dir) {
398
398
 
399
- var d = UI.$.Deferred(),
399
+ var d = UI.$.Deferred(),
400
400
  delay = (this.options.delay === false) ? Math.floor(this.options.duration/2) : this.options.delay,
401
401
  $this = this, clsIn, clsOut, release, i;
402
402
 
@@ -456,7 +456,11 @@
456
456
  (function (index, ele){
457
457
 
458
458
  setTimeout(function(){
459
- ele.css('display', 'none').css('display', '').css('opacity', 0).addClass(clsOut+' uk-animation-reverse');
459
+
460
+ ele.css('display', 'none').css('display', '').css('opacity', 0).on(UI.support.animation.end, function(){
461
+ ele.removeClass(clsOut);
462
+ }).addClass(clsOut+' uk-animation-reverse');
463
+
460
464
  }.bind(this), i * delay);
461
465
 
462
466
  })(i, current.eq(dir == 1 ? i:(current.length - i)-1));
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -305,7 +305,7 @@
305
305
 
306
306
  UI.Utils.checkDisplay(next, '[class*="uk-animation-"]:not(.uk-cover-background.uk-position-cover)');
307
307
 
308
- $this.trigger('show.uk.slideshow', [next]);
308
+ $this.trigger('show.uk.slideshow', [next, current, $this]);
309
309
  };
310
310
 
311
311
  $this.applyKenBurns(next);
@@ -318,6 +318,8 @@
318
318
  current = UI.$(current);
319
319
  next = UI.$(next);
320
320
 
321
+ $this.trigger('beforeshow.uk.slideshow', [next, current, $this]);
322
+
321
323
  Animations[animation].apply(this, [current, next, dir]).then(finalize);
322
324
 
323
325
  $this.triggers.removeClass('uk-active');
@@ -502,6 +504,14 @@
502
504
 
503
505
  next.css('opacity', 1);
504
506
 
507
+ // for plain text content slides - looks smoother
508
+ if (!(next.data('cover') || next.data('placeholder'))) {
509
+
510
+ next.css('opacity', 1).one(UI.support.animation.end, function() {
511
+ next.removeClass('uk-slideshow-fade-in');
512
+ }).addClass('uk-slideshow-fade-in');
513
+ }
514
+
505
515
  current.one(UI.support.animation.end, function() {
506
516
 
507
517
  current.removeClass('uk-slideshow-fade-out');
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  /*
3
3
  * Based on nativesortable - Copyright (c) Brian Grinstead - https://github.com/bgrins/nativesortable
4
4
  */
@@ -21,7 +21,7 @@
21
21
  "use strict";
22
22
 
23
23
  var supportsTouch = ('ontouchstart' in window) || (window.DocumentTouch && document instanceof DocumentTouch),
24
- draggingPlaceholder, currentlyDraggingElement, currentlyDraggingTarget, dragging, moving, clickedlink, delayIdle, touchedlists, moved;
24
+ draggingPlaceholder, currentlyDraggingElement, currentlyDraggingTarget, dragging, moving, clickedlink, delayIdle, touchedlists, moved, overElement;
25
25
 
26
26
  function closestSortable(ele) {
27
27
 
@@ -106,7 +106,7 @@
106
106
  draggingPlaceholder.css({'left': left, 'top': top });
107
107
 
108
108
  // adjust document scrolling
109
-
109
+
110
110
  if (top + (draggingPlaceholder.height()/3) > document.body.offsetHeight) {
111
111
  return;
112
112
  }
@@ -155,6 +155,10 @@
155
155
 
156
156
  var handleDragStart = delegate(function(e) {
157
157
 
158
+ if (e.data && e.data.sortable) {
159
+ return;
160
+ }
161
+
158
162
  var $target = UI.$(e.target),
159
163
  $link = $target.is('a[href]') ? $target:$target.parents('a[href]');
160
164
 
@@ -173,6 +177,10 @@
173
177
  });
174
178
  }
175
179
 
180
+ e.data = e.data || {};
181
+
182
+ e.data.sortable = element;
183
+
176
184
  return $this.dragStart(e, this);
177
185
  });
178
186
 
@@ -271,6 +279,8 @@
271
279
  if (supportsTouch && document.elementFromPoint) {
272
280
  target = document.elementFromPoint(e.pageX - document.body.scrollLeft, e.pageY - document.body.scrollTop);
273
281
  }
282
+
283
+ overElement = UI.$(target);
274
284
  }
275
285
 
276
286
  if (UI.$(target).hasClass($this.options.childClass)) {
@@ -375,8 +385,10 @@
375
385
  },
376
386
 
377
387
  dragMove: function(e, elem) {
378
- var overEl = UI.$(document.elementFromPoint(e.pageX - document.body.scrollLeft, e.pageY - (window.pageYOffset || document.documentElement.scrollTop))),
379
- overRoot = overEl.closest('.'+this.options.baseClass),
388
+
389
+ overElement = UI.$(document.elementFromPoint(e.pageX - document.body.scrollLeft, e.pageY - document.body.scrollTop));
390
+
391
+ var overRoot = overElement.closest('.'+this.options.baseClass),
380
392
  groupOver = overRoot.data("sortable-group"),
381
393
  $current = UI.$(currentlyDraggingElement),
382
394
  currentRoot = $current.parent(),
@@ -392,7 +404,7 @@
392
404
 
393
405
  // swap root
394
406
  if (overRoot.children().length > 0) {
395
- overChild = overEl.closest('.'+this.options.childClass);
407
+ overChild = overElement.closest('.'+this.options.childClass);
396
408
 
397
409
  if (overChild.length) {
398
410
  overChild.before($current);
@@ -401,7 +413,7 @@
401
413
  }
402
414
 
403
415
  } else { // empty list
404
- overEl.append($current);
416
+ overElement.append($current);
405
417
  }
406
418
 
407
419
  UIkit.$doc.trigger('mouseover');
@@ -417,15 +429,27 @@
417
429
  return true;
418
430
  }
419
431
 
420
- // Prevent dragenter on a child from allowing a dragleave on the container
421
432
  var previousCounter = this.dragenterData(elem);
422
433
 
423
434
  this.dragenterData(elem, previousCounter + 1);
424
435
 
436
+ // Prevent dragenter on a child from allowing a dragleave on the container
425
437
  if (previousCounter === 0) {
426
438
 
427
- UI.$(elem).addClass(this.options.overClass);
439
+ var currentlist = UI.$(elem).parent(),
440
+ startlist = UI.$(currentlyDraggingElement).data("start-list");
441
+
442
+ if (currentlist[0] !== startlist[0]) {
443
+
444
+ var groupOver = currentlist.data('sortable-group'),
445
+ groupCurrent = UI.$(currentlyDraggingElement).data("sortable-group");
428
446
 
447
+ if ((groupOver || groupCurrent) && (groupOver != groupCurrent)) {
448
+ return false;
449
+ }
450
+ }
451
+
452
+ UI.$(elem).addClass(this.options.overClass);
429
453
  this.moveElementNextTo(currentlyDraggingElement, elem);
430
454
  }
431
455
 
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -53,7 +53,7 @@
53
53
  if (!sticked.length) return;
54
54
 
55
55
  for (var i = 0; i < sticked.length; i++) {
56
- sticked[i].reset(true);
56
+ //sticked[i].reset(true);
57
57
  sticked[i].self.computeWrapper();
58
58
  }
59
59
 
@@ -89,9 +89,9 @@
89
89
 
90
90
  if (boundary) {
91
91
 
92
- if (boundary === true) {
92
+ if (boundary === true || boundary[0] === '!') {
93
93
 
94
- boundary = this.wrapper.parent();
94
+ boundary = boundary === true ? this.wrapper.parent() : this.wrapper.closest(boundary.substr(1));
95
95
  boundtoparent = true;
96
96
 
97
97
  } else if (typeof boundary === "string") {
@@ -134,7 +134,8 @@
134
134
 
135
135
  this.top = top;
136
136
  },
137
- reset : function(force) {
137
+
138
+ reset: function(force) {
138
139
 
139
140
  this.calcTop();
140
141
 
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -8,7 +8,7 @@
8
8
  }
9
9
 
10
10
  if (typeof define == "function" && define.amd) {
11
- define("uikit-search", ["uikit"], function(){
11
+ define("uikit-timepicker", ["uikit"], function(){
12
12
  return component || addon(UIkit);
13
13
  });
14
14
  }
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
  var component;
4
4
 
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(UI) {
3
3
 
4
4
  "use strict";
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(UI) {
3
3
 
4
4
  "use strict";
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(core) {
3
3
 
4
4
  if (typeof define == "function" && define.amd) { // AMD
@@ -44,7 +44,7 @@
44
44
 
45
45
  var UI = {}, _UI = global.UIkit ? Object.create(global.UIkit) : undefined;
46
46
 
47
- UI.version = '2.23.0';
47
+ UI.version = '2.24.0';
48
48
 
49
49
  UI.noConflict = function() {
50
50
  // restore UIkit version
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(UI){
3
3
 
4
4
  "use strict";
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(UI) {
3
3
 
4
4
  "use strict";
@@ -48,7 +48,8 @@
48
48
  'boundary' : UI.$win,
49
49
  'delay' : 0,
50
50
  'dropdownSelector': '.uk-dropdown,.uk-dropdown-blank',
51
- 'hoverDelayIdle' : 250
51
+ 'hoverDelayIdle' : 250,
52
+ 'preventflip' : false
52
53
  },
53
54
 
54
55
  remainIdle: false,
@@ -293,11 +294,11 @@
293
294
  pos = UI.$.extend({}, this.offsetParent.offset(), {width: this.offsetParent[0].offsetWidth, height: this.offsetParent[0].offsetHeight}),
294
295
  posoffset = this.options.offset,
295
296
  dropdown = this.dropdown,
296
- offset = dropdown.show().offset(),
297
+ offset = dropdown.show().offset() || {left: 0, top: 0},
297
298
  width = dropdown.outerWidth(),
298
299
  height = dropdown.outerHeight(),
299
300
  boundarywidth = this.boundary.width(),
300
- boundaryoffset = this.boundary.offset() ? this.boundary.offset(): {top:0, left:0},
301
+ boundaryoffset = this.boundary[0] !== window && this.boundary.offset() ? this.boundary.offset(): {top:0, left:0},
301
302
  dpos = this.options.pos;
302
303
 
303
304
  var variants = {
@@ -325,21 +326,34 @@
325
326
  justify(dropdown.css({left:0}), this.justified, boundarywidth);
326
327
  } else {
327
328
 
328
- switch(this.checkBoundary(pos.left + css.left, pos.top + css.top, width, height, boundarywidth)) {
329
-
330
- case "x":
331
- dpos = flips['x'][dpos] || 'right-top';
332
- break;
333
- case "y":
334
- dpos = flips['y'][dpos] || 'top-left';
335
- break;
336
- case "xy":
337
- dpos = flips['xy'][dpos] || 'right-bottom';
338
- break;
339
- }
329
+ if (this.options.preventflip !== true) {
330
+
331
+ var fdpos;
332
+
333
+ switch(this.checkBoundary(pos.left + css.left, pos.top + css.top, width, height, boundarywidth)) {
334
+ case "x":
335
+ if(this.options.preventflip !=='x') fdpos = flips['x'][dpos] || 'right-top';
336
+ break;
337
+ case "y":
338
+ if(this.options.preventflip !=='y') fdpos = flips['y'][dpos] || 'top-left';
339
+ break;
340
+ case "xy":
341
+ if(!this.options.preventflip) fdpos = flips['xy'][dpos] || 'right-bottom';
342
+ break;
343
+ }
344
+
345
+ if (fdpos) {
340
346
 
341
- pp = dpos.split('-');
342
- css = variants[dpos] ? variants[dpos] : variants['bottom-left'];
347
+ pp = fdpos.split('-');
348
+ css = variants[fdpos] ? variants[fdpos] : variants['bottom-left'];
349
+
350
+ // check flipped
351
+ if (this.checkBoundary(pos.left + css.left, pos.top + css.top, width, height, boundarywidth)) {
352
+ pp = dpos.split('-');
353
+ css = variants[dpos] ? variants[dpos] : variants['bottom-left'];
354
+ }
355
+ }
356
+ }
343
357
  }
344
358
 
345
359
  if (width > boundarywidth) {
@@ -358,7 +372,7 @@
358
372
  axis += "x";
359
373
  }
360
374
 
361
- if (top < 0 || ((top - UI.$win.scrollTop())+height) > window.innerHeight) {
375
+ if ((top - UI.$win.scrollTop()) < 0 || ((top - UI.$win.scrollTop())+height) > window.innerHeight) {
362
376
  axis += "y";
363
377
  }
364
378