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
  /*
3
3
  * Based on Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/
4
4
  */
@@ -10,8 +10,8 @@
10
10
  component = addon(UIkit);
11
11
  }
12
12
 
13
- if (typeof define == "function" && define.amd) {
14
- define("uikit-nestable", ["uikit"], function(){
13
+ if (typeof define == 'function' && define.amd) {
14
+ define('uikit-nestable', ['uikit'], function(){
15
15
  return component || addon(UIkit);
16
16
  });
17
17
  }
@@ -337,7 +337,7 @@
337
337
  },
338
338
 
339
339
  toggleItem: function(li) {
340
- this[li.hasClass(this.options.collapsedClass) ? "expandItem":"collapseItem"](li);
340
+ this[li.hasClass(this.options.collapsedClass) ? 'expandItem':'collapseItem'](li);
341
341
  },
342
342
 
343
343
  expandItem: function(li) {
@@ -368,7 +368,7 @@
368
368
  setParent: function(li) {
369
369
 
370
370
  if (li.children(this.options._listClass).length) {
371
- li.addClass("uk-parent");
371
+ li.addClass('uk-parent');
372
372
  }
373
373
  },
374
374
 
@@ -624,7 +624,7 @@
624
624
  }
625
625
 
626
626
  if (!parent.children().length) {
627
- if (!parent.data("nestable")) this.unsetParent(parent.parent());
627
+ if (!parent.data('nestable')) this.unsetParent(parent.parent());
628
628
  }
629
629
 
630
630
  this.checkEmptyList(this.dragRootEl);
@@ -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-notify", ["uikit"], function(){
10
+ if (typeof define == 'function' && define.amd) {
11
+ define('uikit-notify', ['uikit'], function(){
12
12
  return component || addon(UIkit);
13
13
  });
14
14
  }
@@ -47,7 +47,7 @@
47
47
 
48
48
  this.options = UI.$.extend({}, Message.defaults, options);
49
49
 
50
- this.uuid = UI.Utils.uid("notifymsg");
50
+ this.uuid = UI.Utils.uid('notifymsg');
51
51
  this.element = UI.$([
52
52
 
53
53
  '<div class="uk-notify-message">',
@@ -72,7 +72,7 @@
72
72
  if(!containers[this.options.pos]) {
73
73
  containers[this.options.pos] = UI.$('<div class="uk-notify uk-notify-'+this.options.pos+'"></div>').appendTo('body').on("click", ".uk-notify-message", function(){
74
74
 
75
- var message = UI.$(this).data("notifyMessage");
75
+ var message = UI.$(this).data('notifyMessage');
76
76
 
77
77
  message.element.trigger('manualclose.uk.notify', [message]);
78
78
  message.close();
@@ -91,15 +91,15 @@
91
91
 
92
92
  show: function() {
93
93
 
94
- if (this.element.is(":visible")) return;
94
+ if (this.element.is(':visible')) return;
95
95
 
96
96
  var $this = this;
97
97
 
98
98
  containers[this.options.pos].show().prepend(this.element);
99
99
 
100
- var marginbottom = parseInt(this.element.css("margin-bottom"), 10);
100
+ var marginbottom = parseInt(this.element.css('margin-bottom'), 10);
101
101
 
102
- this.element.css({"opacity":0, "margin-top": -1*this.element.outerHeight(), "margin-bottom":0}).animate({"opacity":1, "margin-top": 0, "margin-bottom":marginbottom}, function(){
102
+ this.element.css({opacity:0, marginTop: -1*this.element.outerHeight(), marginBottom:0}).animate({opacity:1, marginTop:0, marginBottom:marginbottom}, function(){
103
103
 
104
104
  if ($this.options.timeout) {
105
105
 
@@ -139,7 +139,7 @@
139
139
  if (instantly) {
140
140
  finalize();
141
141
  } else {
142
- this.element.animate({"opacity":0, "margin-top": -1* this.element.outerHeight(), "margin-bottom":0}, function(){
142
+ this.element.animate({opacity:0, marginTop: -1* this.element.outerHeight(), marginBottom:0}, function(){
143
143
  finalize();
144
144
  });
145
145
  }
@@ -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
  /*
3
3
  * Based on simplePagination - Copyright (c) 2012 Flavius Matis - http://flaviusmatis.github.com/simplePagination.js/ (MIT)
4
4
  */
@@ -10,8 +10,8 @@
10
10
  component = addon(UIkit);
11
11
  }
12
12
 
13
- if (typeof define == "function" && define.amd) {
14
- define("uikit-pagination", ["uikit"], function(){
13
+ if (typeof define == 'function' && define.amd) {
14
+ define('uikit-pagination', ['uikit'], function(){
15
15
  return component || addon(UIkit);
16
16
  });
17
17
  }
@@ -39,11 +39,11 @@
39
39
  // init code
40
40
  UI.ready(function(context) {
41
41
 
42
- UI.$("[data-uk-pagination]", context).each(function(){
42
+ UI.$('[data-uk-pagination]', context).each(function(){
43
43
  var ele = UI.$(this);
44
44
 
45
- if (!ele.data("pagination")) {
46
- UI.pagination(ele, UI.Utils.options(ele.attr("data-uk-pagination")));
45
+ if (!ele.data('pagination')) {
46
+ UI.pagination(ele, UI.Utils.options(ele.attr('data-uk-pagination')));
47
47
  }
48
48
  });
49
49
  });
@@ -57,9 +57,9 @@
57
57
  this.currentPage = this.options.currentPage;
58
58
  this.halfDisplayed = this.options.displayedPages / 2;
59
59
 
60
- this.on("click", "a[data-page]", function(e){
60
+ this.on('click', 'a[data-page]', function(e){
61
61
  e.preventDefault();
62
- $this.selectPage(UI.$(this).data("page"));
62
+ $this.selectPage(UI.$(this).data('page'));
63
63
  });
64
64
 
65
65
  this._render();
@@ -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-parallax", ["uikit"], function(){
10
+ if (typeof define == 'function' && define.amd) {
11
+ define('uikit-parallax', ['uikit'], function(){
12
12
  return component || addon(UIkit);
13
13
  });
14
14
  }
@@ -60,7 +60,7 @@
60
60
 
61
61
  for (var t in transforms) {
62
62
  if (el.style[t] !== undefined) {
63
- el.style[t] = "translate3d(1px,1px,1px)";
63
+ el.style[t] = 'translate3d(1px,1px,1px)';
64
64
  has3d = window.getComputedStyle(el).getPropertyValue(transforms[t]);
65
65
  }
66
66
  }
@@ -71,8 +71,8 @@
71
71
  })();
72
72
 
73
73
  // listen to scroll and resize
74
- UI.$doc.on("scrolling.uk.document", checkParallaxes);
75
- UI.$win.on("load resize orientationchange", UI.Utils.debounce(function(){
74
+ UI.$doc.on('scrolling.uk.document', checkParallaxes);
75
+ UI.$win.on('load resize orientationchange', UI.Utils.debounce(function(){
76
76
  wh = window.innerHeight;
77
77
  checkParallaxes();
78
78
  }, 50));
@@ -84,8 +84,8 @@
84
84
 
85
85
  var parallax = UI.$(this);
86
86
 
87
- if (!parallax.data("parallax")) {
88
- UI.parallax(parallax, UI.Utils.options(parallax.attr("data-uk-parallax")));
87
+ if (!parallax.data('parallax')) {
88
+ UI.parallax(parallax, UI.Utils.options(parallax.attr('data-uk-parallax')));
89
89
  }
90
90
  });
91
91
  });
@@ -122,7 +122,7 @@
122
122
  dir = (start < end ? 1:-1);
123
123
  }
124
124
 
125
- this.props[prop] = { 'start': start, 'end': end, 'dir': dir, 'diff': diff };
125
+ this.props[prop] = { start: start, end: end, dir: dir, diff: diff };
126
126
 
127
127
  }.bind(this));
128
128
 
@@ -319,7 +319,7 @@
319
319
 
320
320
  var img = new Image(), url, element, size, check, ratio, width, height;
321
321
 
322
- element = obj.element.css({'background-size': 'cover', 'background-repeat': 'no-repeat'});
322
+ element = obj.element.css({backgroundSize: 'cover', backgroundRepeat: 'no-repeat'});
323
323
  url = element.css('background-image').replace(/^url\(/g, '').replace(/\)$/g, '').replace(/("|')/g, '');
324
324
  check = function() {
325
325
 
@@ -329,7 +329,7 @@
329
329
  w += Math.ceil(extra * ratio);
330
330
 
331
331
  if (w-extra < size.w && h < size.h) {
332
- return obj.element.css({'background-size': 'auto'});
332
+ return obj.element.css({backgroundSize: 'auto'});
333
333
  }
334
334
 
335
335
  // if element height < parent height (gap underneath)
@@ -350,7 +350,7 @@
350
350
  height = Math.ceil(w / ratio);
351
351
  }
352
352
 
353
- element.css({'background-size': (width+'px '+height+'px')}).data('bgsize', {w:width,h:height});
353
+ element.css({backgroundSize: (width+'px '+height+'px')}).data('bgsize', {w:width,h:height});
354
354
  };
355
355
 
356
356
  img.onerror = function(){
@@ -361,7 +361,7 @@
361
361
  size = {w:img.width, h:img.height};
362
362
  ratio = img.width / img.height;
363
363
 
364
- UI.$win.on("load resize orientationchange", UI.Utils.debounce(function(){
364
+ UI.$win.on('load resize orientationchange', UI.Utils.debounce(function(){
365
365
  check();
366
366
  }, 50));
367
367
 
@@ -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-search", ["uikit"], function(){
10
+ if (typeof define == 'function' && define.amd) {
11
+ define('uikit-search', ['uikit'], function(){
12
12
  return component || addon(UIkit);
13
13
  });
14
14
  }
@@ -47,7 +47,7 @@
47
47
 
48
48
  var opts = this.options;
49
49
 
50
- this.dropdown.append(this.template({"items":data.results || [], "msgResultsHeader":opts.msgResultsHeader, "msgMoreResults": opts.msgMoreResults, "msgNoResults": opts.msgNoResults}));
50
+ this.dropdown.append(this.template({items:data.results || [], msgResultsHeader:opts.msgResultsHeader, msgMoreResults: opts.msgMoreResults, msgNoResults: opts.msgNoResults}));
51
51
  this.show();
52
52
  }
53
53
  },
@@ -55,11 +55,11 @@
55
55
  boot: function() {
56
56
 
57
57
  // init code
58
- UI.$html.on("focus.search.uikit", "[data-uk-search]", function(e) {
58
+ UI.$html.on('focus.search.uikit', '[data-uk-search]', function(e) {
59
59
  var ele =UI.$(this);
60
60
 
61
- if (!ele.data("search")) {
62
- UI.search(ele, UI.Utils.options(ele.attr("data-uk-search")));
61
+ if (!ele.data('search')) {
62
+ UI.search(ele, UI.Utils.options(ele.attr('data-uk-search')));
63
63
  }
64
64
  });
65
65
  },
@@ -72,10 +72,10 @@
72
72
  this.autocomplete.dropdown.addClass('uk-dropdown-search');
73
73
 
74
74
  this.autocomplete.input.on("keyup", function(){
75
- $this.element[$this.autocomplete.input.val() ? "addClass":"removeClass"]("uk-active");
75
+ $this.element[$this.autocomplete.input.val() ? 'addClass':'removeClass']('uk-active');
76
76
  }).closest("form").on("reset", function(){
77
- $this.value="";
78
- $this.element.removeClass("uk-active");
77
+ $this.value = '';
78
+ $this.element.removeClass('uk-active');
79
79
  });
80
80
 
81
81
  this.on('selectitem.uk.autocomplete', function(e, data) {
@@ -86,7 +86,7 @@
86
86
  }
87
87
  });
88
88
 
89
- this.element.data("search", this);
89
+ this.element.data('search', this);
90
90
  }
91
91
  });
92
92
  });
@@ -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-slider", ["uikit"], function(){
10
+ if (typeof define == 'function' && define.amd) {
11
+ define('uikit-slider', ['uikit'], function(){
12
12
  return component || addon(UIkit);
13
13
  });
14
14
  }
@@ -59,7 +59,7 @@
59
59
  this.focus = 0;
60
60
 
61
61
  UI.$win.on('resize load', UI.Utils.debounce(function() {
62
- $this.resize(true);
62
+ $this.update(true);
63
63
  }, 100));
64
64
 
65
65
  this.on('click.uk.slider', '[data-uk-slider-item]', function(e) {
@@ -143,11 +143,11 @@
143
143
  mouseleave: function() { $this.hovering = false; }
144
144
  });
145
145
 
146
- this.resize(true);
146
+ this.update(true);
147
147
 
148
148
  this.on('display.uk.check', function(){
149
149
  if ($this.element.is(":visible")) {
150
- $this.resize(true);
150
+ $this.update(true);
151
151
  }
152
152
  });
153
153
 
@@ -159,9 +159,15 @@
159
159
  this.start();
160
160
  }
161
161
 
162
+ UI.domObserve(this.element, function(e) {
163
+ if ($this.element.children(':not([data-slider-slide])').length) {
164
+ $this.update(true);
165
+ }
166
+ });
167
+
162
168
  },
163
169
 
164
- resize: function(focus) {
170
+ update: function(focus) {
165
171
 
166
172
  var $this = this, pos = 0, maxheight = 0, item, width, cwidth, size;
167
173
 
@@ -172,7 +178,7 @@
172
178
 
173
179
  this.items.each(function(idx){
174
180
 
175
- item = UI.$(this);
181
+ item = UI.$(this).attr('data-slider-slide', idx);
176
182
  size = item.css({'left': '', 'width':''})[0].getBoundingClientRect();
177
183
  width = size.width;
178
184
  cwidth = item.width();
@@ -196,7 +202,7 @@
196
202
 
197
203
  this.itemsResized = true;
198
204
 
199
- return this.resize();
205
+ return this.update();
200
206
  }
201
207
 
202
208
  this.cw = pos;
@@ -364,9 +370,9 @@
364
370
  var left = item.data('area');
365
371
 
366
372
  itm.css({'left': left}).data({
367
- 'left' : left,
368
- 'area' : (left+itm.data('width')),
369
- 'center': (left - ($this.vp/2 - itm.data('cwidth')/2))
373
+ left : left,
374
+ area : (left+itm.data('width')),
375
+ center: (left - ($this.vp/2 - itm.data('cwidth')/2))
370
376
  });
371
377
 
372
378
  item = itm;
@@ -398,9 +404,9 @@
398
404
  var left = item.data('left') - itm.data('width');
399
405
 
400
406
  itm.css({'left': left}).data({
401
- 'left' : left,
402
- 'area' : (left+itm.data('width')),
403
- 'center': (left - ($this.vp/2 - itm.data('cwidth')/2))
407
+ left : left,
408
+ area : (left+itm.data('width')),
409
+ center: (left - ($this.vp/2 - itm.data('cwidth')/2))
404
410
  });
405
411
 
406
412
  item = itm;
@@ -513,6 +519,9 @@
513
519
 
514
520
  z = z+1 == dragging.items.length ? 0:z+1;
515
521
  }
522
+ if (!dragging.options.infinite && !focus) {
523
+ focus = dragging.items.length;
524
+ }
516
525
 
517
526
  } else {
518
527
 
@@ -527,6 +536,9 @@
527
536
 
528
537
  z = z-1 == -1 ? dragging.items.length-1:z-1;
529
538
  }
539
+ if (!dragging.options.infinite && !focus) {
540
+ focus = 0
541
+ }
530
542
  }
531
543
 
532
544
  dragging.updateFocus(focus!==false ? focus:store._focus);
@@ -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-slideset", ["uikit"], function(){
10
+ if (typeof define == 'function' && define.amd) {
11
+ define('uikit-slideset', ['uikit'], function(){
12
12
  return component || addon(UIkit);
13
13
  });
14
14
  }
@@ -40,12 +40,12 @@
40
40
  // auto init
41
41
  UI.ready(function(context) {
42
42
 
43
- UI.$("[data-uk-slideset]", context).each(function(){
43
+ UI.$('[data-uk-slideset]', context).each(function(){
44
44
 
45
45
  var ele = UI.$(this);
46
46
 
47
- if(!ele.data("slideset")) {
48
- UI.slideset(ele, UI.Utils.options(ele.attr("data-uk-slideset")));
47
+ if(!ele.data('slideset')) {
48
+ UI.slideset(ele, UI.Utils.options(ele.attr('data-uk-slideset')));
49
49
  }
50
50
  });
51
51
  });
@@ -60,8 +60,8 @@
60
60
  this.nav = this.element.find('.uk-slideset-nav');
61
61
  this.controls = this.options.controls ? UI.$(this.options.controls) : this.element;
62
62
 
63
- UI.$win.on("resize load", UI.Utils.debounce(function() {
64
- $this.updateSets();
63
+ UI.$win.on('resize load', UI.Utils.debounce(function() {
64
+ $this.update();
65
65
  }, 100));
66
66
 
67
67
  $this.list.addClass('uk-grid-width-1-'+$this.options.default);
@@ -75,7 +75,7 @@
75
75
  $this.list.addClass('uk-grid-width-'+bp+'-1-'+$this.options[bp]);
76
76
  });
77
77
 
78
- this.on("click.uk.slideset", '[data-uk-slideset-item]', function(e) {
78
+ this.on('click.uk.slideset', '[data-uk-slideset-item]', function(e) {
79
79
 
80
80
  e.preventDefault();
81
81
 
@@ -116,7 +116,7 @@
116
116
 
117
117
  $this._hide().then(function(){
118
118
 
119
- $this.updateSets(true, true);
119
+ $this.update(true, true);
120
120
  });
121
121
  });
122
122
 
@@ -125,7 +125,7 @@
125
125
  });
126
126
 
127
127
  this.updateFilter(this.options.filter);
128
- this.updateSets();
128
+ this.update();
129
129
 
130
130
  this.element.on({
131
131
  mouseenter: function() { if ($this.options.pauseOnHover) $this.hovering = true; },
@@ -136,9 +136,15 @@
136
136
  if (this.options.autoplay) {
137
137
  this.start();
138
138
  }
139
+
140
+ UI.domObserve(this.list, function(e) {
141
+ if ($this.list.children(':visible:not(.uk-active)').length) {
142
+ $this.update(false,true);
143
+ }
144
+ });
139
145
  },
140
146
 
141
- updateSets: function(animate, force) {
147
+ update: function(animate, force) {
142
148
 
143
149
  var visible = this.visible, i;
144
150
 
@@ -417,6 +423,8 @@
417
423
  clsOut = clsIn;
418
424
  }
419
425
 
426
+ UI.$body.css('overflow-x', 'hidden'); // prevent horizontal scrollbar on animation
427
+
420
428
  release = function() {
421
429
 
422
430
  if (current && current.length) {
@@ -435,6 +443,7 @@
435
443
  var finish = function() {
436
444
  next.removeClass(''+clsIn+'').css({opacity:'', display:'', 'animation-delay':'', 'animation':''});
437
445
  d.resolve();
446
+ UI.$body.css('overflow-x', '');
438
447
  $this.element.css('min-height', '');
439
448
  finish = false;
440
449
  };