uikit2-rails 0.1.7 → 0.1.8

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.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/uikit2/rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/uikit/components/accordion.js +1 -1
  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 +9 -2
  9. data/vendor/assets/javascripts/uikit/components/grid-parallax.js +1 -1
  10. data/vendor/assets/javascripts/uikit/components/grid.js +3 -3
  11. data/vendor/assets/javascripts/uikit/components/htmleditor.js +1 -1
  12. data/vendor/assets/javascripts/uikit/components/lightbox.js +28 -1
  13. data/vendor/assets/javascripts/uikit/components/nestable.js +5 -3
  14. data/vendor/assets/javascripts/uikit/components/notify.js +1 -1
  15. data/vendor/assets/javascripts/uikit/components/pagination.js +1 -1
  16. data/vendor/assets/javascripts/uikit/components/parallax.js +1 -1
  17. data/vendor/assets/javascripts/uikit/components/search.js +1 -1
  18. data/vendor/assets/javascripts/uikit/components/slider.js +1 -1
  19. data/vendor/assets/javascripts/uikit/components/slideset.js +1 -1
  20. data/vendor/assets/javascripts/uikit/components/slideshow-fx.js +1 -1
  21. data/vendor/assets/javascripts/uikit/components/slideshow.js +1 -1
  22. data/vendor/assets/javascripts/uikit/components/sortable.js +11 -14
  23. data/vendor/assets/javascripts/uikit/components/sticky.js +1 -1
  24. data/vendor/assets/javascripts/uikit/components/timepicker.js +1 -1
  25. data/vendor/assets/javascripts/uikit/components/tooltip.js +1 -1
  26. data/vendor/assets/javascripts/uikit/components/upload.js +1 -1
  27. data/vendor/assets/javascripts/uikit/core/alert.js +1 -1
  28. data/vendor/assets/javascripts/uikit/core/button.js +1 -1
  29. data/vendor/assets/javascripts/uikit/core/core.js +34 -12
  30. data/vendor/assets/javascripts/uikit/core/cover.js +1 -1
  31. data/vendor/assets/javascripts/uikit/core/dropdown.js +1 -1
  32. data/vendor/assets/javascripts/uikit/core/grid.js +10 -8
  33. data/vendor/assets/javascripts/uikit/core/modal.js +6 -2
  34. data/vendor/assets/javascripts/uikit/core/nav.js +1 -1
  35. data/vendor/assets/javascripts/uikit/core/offcanvas.js +1 -1
  36. data/vendor/assets/javascripts/uikit/core/scrollspy.js +2 -2
  37. data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +1 -1
  38. data/vendor/assets/javascripts/uikit/core/switcher.js +1 -5
  39. data/vendor/assets/javascripts/uikit/core/tab.js +1 -1
  40. data/vendor/assets/javascripts/uikit/core/toggle.js +1 -1
  41. data/vendor/assets/javascripts/uikit/core/touch.js +1 -1
  42. data/vendor/assets/javascripts/uikit/core/utility.js +10 -6
  43. data/vendor/assets/javascripts/uikit.js +58 -30
  44. data/vendor/assets/stylesheets/uikit/components/accordion.almost-flat.css +1 -1
  45. data/vendor/assets/stylesheets/uikit/components/accordion.css +1 -1
  46. data/vendor/assets/stylesheets/uikit/components/accordion.gradient.css +1 -1
  47. data/vendor/assets/stylesheets/uikit/components/autocomplete.almost-flat.css +6 -1
  48. data/vendor/assets/stylesheets/uikit/components/autocomplete.css +6 -1
  49. data/vendor/assets/stylesheets/uikit/components/autocomplete.gradient.css +6 -1
  50. data/vendor/assets/stylesheets/uikit/components/datepicker.almost-flat.css +1 -1
  51. data/vendor/assets/stylesheets/uikit/components/datepicker.css +1 -1
  52. data/vendor/assets/stylesheets/uikit/components/datepicker.gradient.css +1 -1
  53. data/vendor/assets/stylesheets/uikit/components/dotnav.almost-flat.css +1 -1
  54. data/vendor/assets/stylesheets/uikit/components/dotnav.css +1 -1
  55. data/vendor/assets/stylesheets/uikit/components/dotnav.gradient.css +1 -1
  56. data/vendor/assets/stylesheets/uikit/components/form-advanced.almost-flat.css +1 -1
  57. data/vendor/assets/stylesheets/uikit/components/form-advanced.css +1 -1
  58. data/vendor/assets/stylesheets/uikit/components/form-advanced.gradient.css +1 -1
  59. data/vendor/assets/stylesheets/uikit/components/form-file.almost-flat.css +1 -1
  60. data/vendor/assets/stylesheets/uikit/components/form-file.css +1 -1
  61. data/vendor/assets/stylesheets/uikit/components/form-file.gradient.css +1 -1
  62. data/vendor/assets/stylesheets/uikit/components/form-password.almost-flat.css +1 -1
  63. data/vendor/assets/stylesheets/uikit/components/form-password.css +1 -1
  64. data/vendor/assets/stylesheets/uikit/components/form-password.gradient.css +1 -1
  65. data/vendor/assets/stylesheets/uikit/components/form-select.almost-flat.css +1 -1
  66. data/vendor/assets/stylesheets/uikit/components/form-select.css +1 -1
  67. data/vendor/assets/stylesheets/uikit/components/form-select.gradient.css +1 -1
  68. data/vendor/assets/stylesheets/uikit/components/htmleditor.almost-flat.css +1 -1
  69. data/vendor/assets/stylesheets/uikit/components/htmleditor.css +1 -1
  70. data/vendor/assets/stylesheets/uikit/components/htmleditor.gradient.css +1 -1
  71. data/vendor/assets/stylesheets/uikit/components/nestable.almost-flat.css +1 -1
  72. data/vendor/assets/stylesheets/uikit/components/nestable.css +1 -1
  73. data/vendor/assets/stylesheets/uikit/components/nestable.gradient.css +1 -1
  74. data/vendor/assets/stylesheets/uikit/components/notify.almost-flat.css +1 -1
  75. data/vendor/assets/stylesheets/uikit/components/notify.css +1 -1
  76. data/vendor/assets/stylesheets/uikit/components/notify.gradient.css +1 -1
  77. data/vendor/assets/stylesheets/uikit/components/placeholder.almost-flat.css +1 -1
  78. data/vendor/assets/stylesheets/uikit/components/placeholder.css +1 -1
  79. data/vendor/assets/stylesheets/uikit/components/placeholder.gradient.css +1 -1
  80. data/vendor/assets/stylesheets/uikit/components/progress.almost-flat.css +1 -1
  81. data/vendor/assets/stylesheets/uikit/components/progress.css +1 -1
  82. data/vendor/assets/stylesheets/uikit/components/progress.gradient.css +1 -1
  83. data/vendor/assets/stylesheets/uikit/components/search.almost-flat.css +1 -1
  84. data/vendor/assets/stylesheets/uikit/components/search.css +1 -1
  85. data/vendor/assets/stylesheets/uikit/components/search.gradient.css +1 -1
  86. data/vendor/assets/stylesheets/uikit/components/slidenav.almost-flat.css +1 -1
  87. data/vendor/assets/stylesheets/uikit/components/slidenav.css +1 -1
  88. data/vendor/assets/stylesheets/uikit/components/slidenav.gradient.css +1 -1
  89. data/vendor/assets/stylesheets/uikit/components/slider.almost-flat.css +1 -1
  90. data/vendor/assets/stylesheets/uikit/components/slider.css +1 -1
  91. data/vendor/assets/stylesheets/uikit/components/slider.gradient.css +1 -1
  92. data/vendor/assets/stylesheets/uikit/components/slideshow.almost-flat.css +1 -1
  93. data/vendor/assets/stylesheets/uikit/components/slideshow.css +1 -1
  94. data/vendor/assets/stylesheets/uikit/components/slideshow.gradient.css +1 -1
  95. data/vendor/assets/stylesheets/uikit/components/sortable.almost-flat.css +1 -1
  96. data/vendor/assets/stylesheets/uikit/components/sortable.css +1 -1
  97. data/vendor/assets/stylesheets/uikit/components/sortable.gradient.css +1 -1
  98. data/vendor/assets/stylesheets/uikit/components/sticky.almost-flat.css +1 -1
  99. data/vendor/assets/stylesheets/uikit/components/sticky.css +1 -1
  100. data/vendor/assets/stylesheets/uikit/components/sticky.gradient.css +1 -1
  101. data/vendor/assets/stylesheets/uikit/components/tooltip.almost-flat.css +1 -1
  102. data/vendor/assets/stylesheets/uikit/components/tooltip.css +1 -1
  103. data/vendor/assets/stylesheets/uikit/components/tooltip.gradient.css +1 -1
  104. data/vendor/assets/stylesheets/uikit/components/upload.almost-flat.css +1 -1
  105. data/vendor/assets/stylesheets/uikit/components/upload.css +1 -1
  106. data/vendor/assets/stylesheets/uikit/components/upload.gradient.css +1 -1
  107. data/vendor/assets/stylesheets/uikit.almost-flat.css +1 -1
  108. data/vendor/assets/stylesheets/uikit.css +1 -1
  109. data/vendor/assets/stylesheets/uikit.gradient.css +1 -1
  110. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eec307b2819f1017e25f1629bff3e8dc4aa5f72b
4
- data.tar.gz: 7abf27dc053ad35f363a0c5c8a7485b063889e11
3
+ metadata.gz: 4587edf142552800d702aeb2624227b799687e7e
4
+ data.tar.gz: c67edf0075d41a93df7f2ca0d208b335c0a85559
5
5
  SHA512:
6
- metadata.gz: 9305620ffee298b04a6a8c0fa9ba6c6f472a7a4191e6c86cd970317823d6330415fb313f2eae80867415f9c66e6f07a5f8ee4bafd9d733c6eb214c6842604932
7
- data.tar.gz: 7f4e66a1a9a09e72a6ea11b8c7dd23f3c936b5e7d69299d7efc018f4033018f7ebc277061a13442fee9db353226fe6978c33dceba0d505ad677e5fe6d37545fb
6
+ metadata.gz: e6206e5fa5748669105ec7ff9318b8b30bfaf7099108eec811f47528e68b9760724566b5306148ac2c0f27f77681e9c3f56f8496168a4a4aced2b97b5047e0bc
7
+ data.tar.gz: 660fe127a51737240ddbd01a50b6b401ccc3bbd7b46d512c8c81096af8c9ceb3772b2578639422ca2697c630b3b365b4ad21bba17efcf1a3427b4f97719e5fcf
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.25.0
5
+ UIkit 2.26.1
6
6
 
7
7
  ## Installation
8
8
 
@@ -1,5 +1,5 @@
1
1
  module Uikit2
2
2
  module Rails
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -185,7 +185,7 @@
185
185
 
186
186
  if (ele.is('[data-date]')) {
187
187
  active.current = moment(ele.data("date"));
188
- active.element.val(active.current.format(active.options.format)).trigger("change");
188
+ active.element.val(active.current.isValid() ? active.current.format(active.options.format) : null).trigger("change");
189
189
  active.hide();
190
190
  } else {
191
191
  active.add((ele.hasClass("uk-datepicker-next") ? 1:-1), "months");
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -51,7 +51,14 @@
51
51
  var select = $this.select[0], fn = function(){
52
52
 
53
53
  try {
54
- $this.target.text(select.options[select.selectedIndex].text);
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
+ }
55
62
  } catch(e) {}
56
63
 
57
64
  $this.element[$this.select.val() ? 'addClass':'removeClass']($this.options.activeClass);
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -63,7 +63,7 @@
63
63
  // filter
64
64
  this.controls.on('click', '[data-uk-filter]', function(e){
65
65
  e.preventDefault();
66
- $this.filter(UI.$(this).data('ukFilter'));
66
+ $this.filter(UI.$(this).attr('data-uk-filter'));
67
67
  });
68
68
 
69
69
  // sort
@@ -88,7 +88,7 @@
88
88
  if ($this.element.is(":visible")) $this.updateLayout();
89
89
  });
90
90
 
91
- UI.$html.on("changed.uk.dom", function(e) {
91
+ UI.domObserve(this.element, function(e) {
92
92
  $this.updateLayout();
93
93
  });
94
94
 
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(addon) {
3
3
 
4
4
  var component;
@@ -484,6 +484,33 @@
484
484
  });
485
485
 
486
486
 
487
+ UIkit.plugin("lightbox", "iframe", {
488
+
489
+ init: function (lightbox) {
490
+
491
+ lightbox.on("showitem.uk.lightbox", function (e, data) {
492
+
493
+ var resolve = function (source, width, height) {
494
+
495
+ data.meta = {
496
+ 'content': '<iframe class="uk-responsive-width" src="' + source + '" width="' + width + '" height="' + height + '"></iframe>',
497
+ 'width': width,
498
+ 'height': height
499
+ };
500
+
501
+ data.type = 'iframe';
502
+
503
+ data.promise.resolve();
504
+ };
505
+
506
+ if (data.type === 'iframe' || data.source.match(/\.(html|php)$/)) {
507
+ resolve(data.source, (lightbox.options.width || 800), (lightbox.options.height || 600));
508
+ }
509
+ });
510
+
511
+ }
512
+ });
513
+
487
514
  function getModal(lightbox) {
488
515
 
489
516
  if (modal) {
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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
  */
@@ -236,10 +236,12 @@
236
236
  item = {}, attribute,
237
237
  sub = li.children(list.options._listClass);
238
238
 
239
- for (var i = 0; i < li[0].attributes.length; i++) {
239
+ for (var i = 0, attr, val; i < li[0].attributes.length; i++) {
240
240
  attribute = li[0].attributes[i];
241
241
  if (attribute.name.indexOf('data-') === 0) {
242
- item[attribute.name.substr(5)] = UI.Utils.str2json(attribute.value);
242
+ attr = attribute.name.substr(5);
243
+ val = UI.Utils.str2json(attribute.value);
244
+ item[attr] = (val || attribute.value=='false' || attribute.value=='0') ? val:attribute.value;
243
245
  }
244
246
  }
245
247
 
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.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
  */
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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
  */
@@ -166,6 +166,11 @@
166
166
  return;
167
167
  }
168
168
 
169
+ if ($this.options.handleClass) {
170
+ var handle = $target.hasClass($this.options.handleClass) ? $target : $target.closest('.'+$this.options.handleClass, $this.element);
171
+ if (!handle.length) return;
172
+ }
173
+
169
174
  e.preventDefault();
170
175
 
171
176
  if (!supportsTouch && $link.length) {
@@ -301,16 +306,6 @@
301
306
  return;
302
307
  }
303
308
 
304
- if ($this.options.handleClass) {
305
-
306
- var handle = target.hasClass($this.options.handleClass) ? target : target.closest('.'+$this.options.handleClass, $this.element);
307
-
308
- if (!handle.length) {
309
- //e.preventDefault();
310
- return;
311
- }
312
- }
313
-
314
309
  if (target.is('.'+$this.options.noDragClass) || target.closest('.'+$this.options.noDragClass).length) {
315
310
  return;
316
311
  }
@@ -332,7 +327,7 @@
332
327
  delayIdle = {
333
328
 
334
329
  pos : { x:e.pageX, y:e.pageY },
335
- threshold : $this.options.threshold,
330
+ threshold : $this.options.handleClass ? 0 : $this.options.threshold,
336
331
  apply : function(evt) {
337
332
 
338
333
  draggingPlaceholder = UI.$('<div class="'+([$this.options.draggingClass, $this.options.dragCustomClass].join(' '))+'"></div>').css({
@@ -602,10 +597,12 @@
602
597
 
603
598
  this.element.children().each(function(j, child) {
604
599
  item = {};
605
- for (var i = 0; i < child.attributes.length; i++) {
600
+ for (var i = 0, attr, val; i < child.attributes.length; i++) {
606
601
  attribute = child.attributes[i];
607
602
  if (attribute.name.indexOf('data-') === 0) {
608
- item[attribute.name.substr(5)] = UI.Utils.str2json(attribute.value);
603
+ attr = attribute.name.substr(5);
604
+ val = UI.Utils.str2json(attribute.value);
605
+ item[attr] = (val || attribute.value=='false' || attribute.value=='0') ? val:attribute.value;
609
606
  }
610
607
  }
611
608
  data.push(item);
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1';
47
+ UI.version = '2.26.2';
48
48
 
49
49
  UI.noConflict = function() {
50
50
  // restore UIkit version
@@ -594,7 +594,7 @@
594
594
  var observer = new UI.support.mutationobserver(UI.Utils.debounce(function(mutations) {
595
595
  fn.apply(element, []);
596
596
  $element.trigger('changed.uk.dom');
597
- }, 50));
597
+ }, 50), {childList: true, subtree: true});
598
598
 
599
599
  // pass in the target node, as well as the observer options
600
600
  observer.observe(element, { childList: true, subtree: true });
@@ -627,15 +627,6 @@
627
627
 
628
628
  UI.$body = UI.$('body');
629
629
 
630
- UI.ready(function(context){
631
- UI.domObserve('[data-uk-observe]');
632
- });
633
-
634
- UI.on('changed.uk.dom', function(e) {
635
- UI.init(e.target);
636
- UI.Utils.checkDisplay(e.target);
637
- });
638
-
639
630
  UI.trigger('beforeready.uk.dom');
640
631
 
641
632
  UI.component.bootComponents();
@@ -709,6 +700,37 @@
709
700
 
710
701
  // mark that domready is left behind
711
702
  UI.domready = true;
703
+
704
+ // auto init js components
705
+ if (UI.support.mutationobserver) {
706
+
707
+ var initFn = UI.Utils.debounce(function(){
708
+ requestAnimationFrame(function(){ UI.init(document.body);});
709
+ }, 10);
710
+
711
+ (new UI.support.mutationobserver(function(mutations) {
712
+
713
+ var init = false;
714
+
715
+ mutations.every(function(mutation){
716
+
717
+ if (mutation.type != 'childList') return true;
718
+
719
+ for (var i = 0, node; i < mutation.addedNodes.length; ++i) {
720
+
721
+ node = mutation.addedNodes[i];
722
+
723
+ if (node.outerHTML && node.outerHTML.indexOf('data-uk-') !== -1) {
724
+ return (init = true) && false;
725
+ }
726
+ }
727
+ return true;
728
+ });
729
+
730
+ if (init) initFn();
731
+
732
+ })).observe(document.body, {childList: true, subtree: true});
733
+ }
712
734
  };
713
735
 
714
736
  if (document.readyState == 'complete' || document.readyState == 'interactive') {
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(UI) {
3
3
 
4
4
  "use strict";
@@ -10,7 +10,8 @@
10
10
  defaults: {
11
11
  "target" : false,
12
12
  "row" : true,
13
- "ignorestacked" : false
13
+ "ignorestacked" : false,
14
+ "observe" : false
14
15
  },
15
16
 
16
17
  boot: function() {
@@ -40,7 +41,7 @@
40
41
  UI.$win.on('load resize orientationchange', (function() {
41
42
 
42
43
  var fn = function() {
43
- $this.match();
44
+ if ($this.element.is(":visible")) $this.match();
44
45
  };
45
46
 
46
47
  UI.$(function() { fn(); });
@@ -48,11 +49,12 @@
48
49
  return UI.Utils.debounce(fn, 50);
49
50
  })());
50
51
 
51
- UI.$html.on("changed.uk.dom", function(e) {
52
- $this.columns = $this.element.children();
53
- $this.elements = $this.options.target ? $this.find($this.options.target) : $this.columns;
54
- $this.match();
55
- });
52
+ if (this.options.observe) {
53
+
54
+ UI.domObserve(this.element, function(e) {
55
+ if ($this.element.is(":visible")) $this.match();
56
+ });
57
+ }
56
58
 
57
59
  this.on("display.uk.check", function(e) {
58
60
  if(this.element.is(":visible")) this.match();
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(UI) {
3
3
 
4
4
  "use strict";
@@ -51,7 +51,11 @@
51
51
  if (target[0] == $this.element[0] && $this.options.bgclose) {
52
52
  $this.hide();
53
53
  }
54
- }).on("changed.uk.dom", this.resize.bind(this));
54
+ });
55
+
56
+ UI.domObserve(this.element, function(e) {
57
+ $this.resize();
58
+ });
55
59
  },
56
60
 
57
61
  toggle: function() {
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(UI) {
3
3
 
4
4
  "use strict";
@@ -171,7 +171,7 @@
171
171
  scrollTop = $win.scrollTop(),
172
172
  target = (function(){
173
173
  for(var i=0; i< inviews.length;i++){
174
- if(inviews[i].offset().top + inviews[i].outerHeight() >= scrollTop){
174
+ if(inviews[i].offset().top >= scrollTop){
175
175
  return inviews[i];
176
176
  }
177
177
  }
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(UI) {
3
3
 
4
4
  "use strict";
@@ -99,10 +99,6 @@
99
99
  // Init ARIA for toggles
100
100
  toggles.not(active).attr('aria-expanded', 'false');
101
101
  active.attr('aria-expanded', 'true');
102
-
103
- this.on('changed.uk.dom', function() {
104
- $this.connect = UI.$($this.options.connect);
105
- });
106
102
  }
107
103
 
108
104
  },
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | 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.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  // Based on Zeptos touch.js
3
3
  // https://raw.github.com/madrobby/zepto/master/src/touch.js
4
4
  // Zepto.js may be freely distributed under the MIT license.
@@ -1,4 +1,4 @@
1
- /*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
1
+ /*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
2
  (function(UI) {
3
3
 
4
4
  "use strict";
@@ -9,7 +9,8 @@
9
9
 
10
10
  defaults: {
11
11
  cls: 'uk-margin-small-top',
12
- rowfirst: false
12
+ rowfirst: false,
13
+ observe: false
13
14
  },
14
15
 
15
16
  boot: function() {
@@ -46,14 +47,17 @@
46
47
  return UI.Utils.debounce(fn, 20);
47
48
  })());
48
49
 
49
- UI.$html.on("changed.uk.dom", function(e) {
50
- $this.process();
51
- });
52
-
53
50
  this.on("display.uk.check", function(e) {
54
51
  if (this.element.is(":visible")) this.process();
55
52
  }.bind(this));
56
53
 
54
+ if (this.options.observe) {
55
+
56
+ UI.domObserve(this.element, function(e) {
57
+ if ($this.element.is(":visible")) $this.process();
58
+ });
59
+ }
60
+
57
61
  stacks.push(this);
58
62
  },
59
63