uikit2-rails 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/uikit2/rails/version.rb +1 -1
- data/vendor/assets/javascripts/uikit/components/accordion.js +2 -2
- data/vendor/assets/javascripts/uikit/components/autocomplete.js +1 -1
- data/vendor/assets/javascripts/uikit/components/datepicker.js +1 -1
- data/vendor/assets/javascripts/uikit/components/form-password.js +1 -1
- data/vendor/assets/javascripts/uikit/components/form-select.js +1 -1
- data/vendor/assets/javascripts/uikit/components/grid-parallax.js +168 -0
- data/vendor/assets/javascripts/uikit/components/grid.js +1 -1
- data/vendor/assets/javascripts/uikit/components/htmleditor.js +1 -1
- data/vendor/assets/javascripts/uikit/components/lightbox.js +1 -1
- data/vendor/assets/javascripts/uikit/components/nestable.js +4 -3
- data/vendor/assets/javascripts/uikit/components/notify.js +1 -1
- data/vendor/assets/javascripts/uikit/components/pagination.js +3 -3
- data/vendor/assets/javascripts/uikit/components/parallax.js +4 -4
- data/vendor/assets/javascripts/uikit/components/search.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slider.js +4 -4
- data/vendor/assets/javascripts/uikit/components/slideset.js +13 -5
- data/vendor/assets/javascripts/uikit/components/slideshow-fx.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slideshow.js +2 -2
- data/vendor/assets/javascripts/uikit/components/sortable.js +6 -17
- data/vendor/assets/javascripts/uikit/components/sticky.js +5 -6
- data/vendor/assets/javascripts/uikit/components/timepicker.js +1 -1
- data/vendor/assets/javascripts/uikit/components/tooltip.js +1 -1
- data/vendor/assets/javascripts/uikit/components/upload.js +1 -1
- data/vendor/assets/javascripts/uikit/core/alert.js +1 -1
- data/vendor/assets/javascripts/uikit/core/button.js +1 -1
- data/vendor/assets/javascripts/uikit/core/core.js +24 -18
- data/vendor/assets/javascripts/uikit/core/cover.js +1 -1
- data/vendor/assets/javascripts/uikit/core/dropdown.js +24 -13
- data/vendor/assets/javascripts/uikit/core/grid.js +1 -1
- data/vendor/assets/javascripts/uikit/core/modal.js +1 -1
- data/vendor/assets/javascripts/uikit/core/nav.js +2 -2
- data/vendor/assets/javascripts/uikit/core/offcanvas.js +1 -1
- data/vendor/assets/javascripts/uikit/core/scrollspy.js +2 -1
- data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +1 -1
- data/vendor/assets/javascripts/uikit/core/switcher.js +2 -2
- data/vendor/assets/javascripts/uikit/core/tab.js +4 -4
- data/vendor/assets/javascripts/uikit/core/toggle.js +1 -1
- data/vendor/assets/javascripts/uikit/core/touch.js +1 -1
- data/vendor/assets/javascripts/uikit/core/utility.js +9 -17
- data/vendor/assets/stylesheets/uikit/components/accordion.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/accordion.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/accordion.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/autocomplete.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/autocomplete.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/autocomplete.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/datepicker.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/datepicker.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/datepicker.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/dotnav.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/dotnav.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/dotnav.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-advanced.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-advanced.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-advanced.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-file.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-file.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-file.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-password.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-password.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-password.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-select.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-select.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/form-select.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/htmleditor.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/htmleditor.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/htmleditor.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/nestable.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/nestable.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/nestable.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/notify.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/notify.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/notify.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/placeholder.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/placeholder.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/placeholder.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/progress.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/progress.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/progress.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/search.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/search.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/search.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slidenav.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slidenav.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slidenav.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slider.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slider.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slider.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slideshow.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slideshow.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/slideshow.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sortable.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sortable.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sortable.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sticky.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sticky.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/sticky.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/tooltip.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/tooltip.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/tooltip.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/upload.almost-flat.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/upload.css +1 -1
- data/vendor/assets/stylesheets/uikit/components/upload.gradient.css +1 -1
- data/vendor/assets/stylesheets/uikit.almost-flat.css +41 -16
- data/vendor/assets/stylesheets/uikit.css +41 -16
- data/vendor/assets/stylesheets/uikit.gradient.css +41 -16
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bb39dee99f5788a95362c1bb68591754ba62f55
|
4
|
+
data.tar.gz: e0f729aa9aceff19c2abdbf1a80a12b205460120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f75c32fa4d30ab21f27e676dbc974f7104f15c0af74d24bcaf0a179af59717e915852a73a452e0541df2a452cf6a9fa18083b65bcf1959a5ce559404167431e
|
7
|
+
data.tar.gz: ea4a6e775c5e2a604dc3c11426e7272e43946e5ef93540a3c17fa0229fb212158a128130ed2f29fb6267275dcf46954c2c6b1c3409d155291b3c8649bfc1c597
|
data/README.md
CHANGED
data/lib/uikit2/rails/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.
|
1
|
+
/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
var component;
|
4
4
|
|
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
var $this = this;
|
54
54
|
|
55
|
-
this.element.on('click.
|
55
|
+
this.element.on('click.uk.accordion', this.options.toggle, function(e) {
|
56
56
|
|
57
57
|
e.preventDefault();
|
58
58
|
|
@@ -0,0 +1,168 @@
|
|
1
|
+
/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
|
+
(function(addon) {
|
3
|
+
|
4
|
+
var component;
|
5
|
+
|
6
|
+
if (window.UIkit) {
|
7
|
+
component = addon(UIkit);
|
8
|
+
}
|
9
|
+
|
10
|
+
if (typeof define == "function" && define.amd) {
|
11
|
+
define("uikit-grid-parallax", ["uikit"], function(){
|
12
|
+
return component || addon(UIkit);
|
13
|
+
});
|
14
|
+
}
|
15
|
+
|
16
|
+
})(function(UI){
|
17
|
+
|
18
|
+
var parallaxes = [], checkParallaxes = function() {
|
19
|
+
|
20
|
+
requestAnimationFrame(function(){
|
21
|
+
for (var i=0; i < parallaxes.length; i++) {
|
22
|
+
parallaxes[i].process();
|
23
|
+
}
|
24
|
+
});
|
25
|
+
};
|
26
|
+
|
27
|
+
|
28
|
+
UI.component('gridparallax', {
|
29
|
+
|
30
|
+
defaults: {
|
31
|
+
target : false,
|
32
|
+
smooth : 150,
|
33
|
+
translate : 150
|
34
|
+
},
|
35
|
+
|
36
|
+
boot: function() {
|
37
|
+
|
38
|
+
// listen to scroll and resize
|
39
|
+
UI.$doc.on("scrolling.uk.document", checkParallaxes);
|
40
|
+
UI.$win.on("load resize orientationchange", UI.Utils.debounce(function(){
|
41
|
+
checkParallaxes();
|
42
|
+
}, 50));
|
43
|
+
|
44
|
+
// init code
|
45
|
+
UI.ready(function(context) {
|
46
|
+
|
47
|
+
UI.$('[data-uk-grid-parallax]', context).each(function() {
|
48
|
+
|
49
|
+
var parallax = UI.$(this);
|
50
|
+
|
51
|
+
if (!parallax.data("gridparallax")) {
|
52
|
+
UI.gridparallax(parallax, UI.Utils.options(parallax.attr("data-uk-grid-parallax")));
|
53
|
+
}
|
54
|
+
});
|
55
|
+
});
|
56
|
+
},
|
57
|
+
|
58
|
+
init: function() {
|
59
|
+
|
60
|
+
var $this = this;
|
61
|
+
|
62
|
+
this.initItems().process();
|
63
|
+
parallaxes.push(this);
|
64
|
+
|
65
|
+
UI.$win.on('load resize orientationchange', (function() {
|
66
|
+
|
67
|
+
var fn = function() {
|
68
|
+
var columns = getcolumns($this.element);
|
69
|
+
|
70
|
+
$this.element.css('margin-bottom', '');
|
71
|
+
|
72
|
+
if (columns > 1) {
|
73
|
+
$this.element.css('margin-bottom', $this.options.translate + parseInt($this.element.css('margin-bottom')));
|
74
|
+
}
|
75
|
+
};
|
76
|
+
|
77
|
+
UI.$(function() { fn(); });
|
78
|
+
|
79
|
+
return UI.Utils.debounce(fn, 50);
|
80
|
+
})());
|
81
|
+
},
|
82
|
+
|
83
|
+
initItems: function() {
|
84
|
+
|
85
|
+
var smooth = this.options.smooth;
|
86
|
+
|
87
|
+
this.items = (this.options.target ? this.element.find(this.options.target) : this.element.children()).each(function(){
|
88
|
+
UI.$(this).css({
|
89
|
+
transition: 'transform '+smooth+'ms linear',
|
90
|
+
transform: ''
|
91
|
+
});
|
92
|
+
});
|
93
|
+
|
94
|
+
return this;
|
95
|
+
},
|
96
|
+
|
97
|
+
process: function() {
|
98
|
+
|
99
|
+
var percent = percentageInViewport(this.element),
|
100
|
+
columns = getcolumns(this.element),
|
101
|
+
items = this.items,
|
102
|
+
mods = [(columns-1)];
|
103
|
+
|
104
|
+
if (columns == 1 || !percent) {
|
105
|
+
items.css('transform', '');
|
106
|
+
return;
|
107
|
+
}
|
108
|
+
|
109
|
+
while(mods.length < columns) {
|
110
|
+
if(!(mods[mods.length-1] - 2)) break;
|
111
|
+
mods.push(mods[mods.length-1] - 2);
|
112
|
+
}
|
113
|
+
|
114
|
+
var translate = this.options.translate, percenttranslate = percent * translate;
|
115
|
+
|
116
|
+
items.each(function(idx, ele, translate){
|
117
|
+
translate = mods.indexOf((idx+1) % columns) != -1 ? percenttranslate : percenttranslate / 8;
|
118
|
+
UI.$(this).css('transform', 'translate3d(0,'+(translate)+'px, 0)');
|
119
|
+
});
|
120
|
+
}
|
121
|
+
|
122
|
+
});
|
123
|
+
|
124
|
+
|
125
|
+
function getcolumns(element) {
|
126
|
+
|
127
|
+
var children = element.children(),
|
128
|
+
first = children.filter(':visible:first'),
|
129
|
+
top = first[0].offsetTop + first.outerHeight();
|
130
|
+
|
131
|
+
for (var column=0;column<children.length;column++) {
|
132
|
+
if (children[column].offsetTop >= top) break;
|
133
|
+
}
|
134
|
+
|
135
|
+
return column || 1;
|
136
|
+
}
|
137
|
+
|
138
|
+
function percentageInViewport(element) {
|
139
|
+
|
140
|
+
var top = element.offset().top,
|
141
|
+
height = element.outerHeight(),
|
142
|
+
scrolltop = UIkit.$win.scrollTop(),
|
143
|
+
wh = window.innerHeight,
|
144
|
+
distance, percentage, percent;
|
145
|
+
|
146
|
+
if (top > (scrolltop + wh)) {
|
147
|
+
percent = 0;
|
148
|
+
} else if ((top + height) < scrolltop) {
|
149
|
+
percent = 1;
|
150
|
+
} else {
|
151
|
+
|
152
|
+
if ((top + height) < wh) {
|
153
|
+
percent = (scrolltop < wh ? scrolltop : scrolltop - wh) / (top+height);
|
154
|
+
} else {
|
155
|
+
|
156
|
+
distance = (scrolltop + wh) - top;
|
157
|
+
percentage = Math.round(distance / ((wh + height) / 100));
|
158
|
+
percent = percentage/100;
|
159
|
+
}
|
160
|
+
|
161
|
+
if (top < wh) {
|
162
|
+
percent = percent * scrolltop / ((top + height) - wh);
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
return percent > 1 ? 1:percent;
|
167
|
+
}
|
168
|
+
});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.
|
1
|
+
/*! UIkit 2.25.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
|
*/
|
@@ -40,6 +40,7 @@
|
|
40
40
|
listItemClass : 'uk-nestable-item',
|
41
41
|
dragClass : 'uk-nestable-dragged',
|
42
42
|
movingClass : 'uk-nestable-moving',
|
43
|
+
noChildrenClass : 'uk-nestable-nochildren',
|
43
44
|
emptyClass : 'uk-nestable-empty',
|
44
45
|
handleClass : '',
|
45
46
|
collapsedClass : 'uk-collapsed',
|
@@ -491,8 +492,8 @@
|
|
491
492
|
mouse.distAxX = 0;
|
492
493
|
prev = this.placeEl.prev('li');
|
493
494
|
|
494
|
-
// increase horizontal level if previous sibling exists and
|
495
|
-
if (mouse.distX > 0 && prev.length && !prev.hasClass(opt.collapsedClass)) {
|
495
|
+
// increase horizontal level if previous sibling exists, is not collapsed, and does not have a 'no children' class
|
496
|
+
if (mouse.distX > 0 && prev.length && !prev.hasClass(opt.collapsedClass) && !prev.hasClass(opt.noChildrenClass)) {
|
496
497
|
|
497
498
|
// cannot increase level when item above is collapsed
|
498
499
|
list = prev.find(opt._listClass).last();
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.
|
1
|
+
/*! UIkit 2.25.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
|
*/
|
@@ -93,7 +93,7 @@
|
|
93
93
|
this.element.empty();
|
94
94
|
|
95
95
|
// Generate Prev link
|
96
|
-
if (o.lblPrev) this._append(
|
96
|
+
if (o.lblPrev) this._append(this.currentPage - 1, {text: o.lblPrev});
|
97
97
|
|
98
98
|
// Generate start edges
|
99
99
|
if (interval.start > 0 && o.edges > 0) {
|
@@ -127,7 +127,7 @@
|
|
127
127
|
}
|
128
128
|
|
129
129
|
// Generate Next link (unless option is set for at front)
|
130
|
-
if (o.lblNext) this._append(
|
130
|
+
if (o.lblNext) this._append(this.currentPage + 1, {text: o.lblNext});
|
131
131
|
},
|
132
132
|
|
133
133
|
_append: function(pageIndex, opts) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.
|
1
|
+
/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -296,13 +296,13 @@
|
|
296
296
|
url = element.css('background-image').replace(/^url\(/g, '').replace(/\)$/g, '').replace(/("|')/g, '');
|
297
297
|
check = function() {
|
298
298
|
|
299
|
-
var w = element.
|
299
|
+
var w = element.innerWidth(), h = element.innerHeight(), extra = (prop=='bg') ? opts.diff : (opts.diff/100) * h;
|
300
300
|
|
301
301
|
h += extra;
|
302
302
|
w += Math.ceil(extra * ratio);
|
303
303
|
|
304
|
-
if (w-extra
|
305
|
-
return obj.element.css({'background-size': ''});
|
304
|
+
if (w-extra < size.w && h < size.h) {
|
305
|
+
return obj.element.css({'background-size': 'auto'});
|
306
306
|
}
|
307
307
|
|
308
308
|
// if element height < parent height (gap underneath)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.
|
1
|
+
/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -62,7 +62,7 @@
|
|
62
62
|
$this.resize(true);
|
63
63
|
}, 100));
|
64
64
|
|
65
|
-
this.on('click.
|
65
|
+
this.on('click.uk.slider', '[data-uk-slider-item]', function(e) {
|
66
66
|
|
67
67
|
e.preventDefault();
|
68
68
|
|
@@ -411,7 +411,7 @@
|
|
411
411
|
});
|
412
412
|
|
413
413
|
// handle dragging
|
414
|
-
UI.$doc.on('mousemove.
|
414
|
+
UI.$doc.on('mousemove.uk.slider touchmove.uk.slider', function(e) {
|
415
415
|
|
416
416
|
if (e.originalEvent && e.originalEvent.touches) {
|
417
417
|
e = e.originalEvent.touches[0];
|
@@ -489,7 +489,7 @@
|
|
489
489
|
store.diff = diff;
|
490
490
|
});
|
491
491
|
|
492
|
-
UI.$doc.on('mouseup.
|
492
|
+
UI.$doc.on('mouseup.uk.slider touchend.uk.slider', function(e) {
|
493
493
|
|
494
494
|
if (dragging) {
|
495
495
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.
|
1
|
+
/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -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.
|
78
|
+
this.on("click.uk.slideset", '[data-uk-slideset-item]', function(e) {
|
79
79
|
|
80
80
|
e.preventDefault();
|
81
81
|
|
@@ -98,7 +98,7 @@
|
|
98
98
|
|
99
99
|
});
|
100
100
|
|
101
|
-
this.controls.on('click.
|
101
|
+
this.controls.on('click.uk.slideset', '[data-uk-filter]', function(e) {
|
102
102
|
|
103
103
|
var ele = UI.$(this);
|
104
104
|
|
@@ -432,13 +432,21 @@
|
|
432
432
|
next.eq(dir == 1 ? i:(next.length - i)-1).css('animation-delay', (i*delay)+'ms');
|
433
433
|
}
|
434
434
|
|
435
|
-
|
436
|
-
|
435
|
+
var finish = function() {
|
437
436
|
next.removeClass(''+clsIn+'').css({opacity:'', display:'', 'animation-delay':'', 'animation':''});
|
438
437
|
d.resolve();
|
439
438
|
$this.element.css('min-height', '');
|
439
|
+
finish = false;
|
440
|
+
};
|
440
441
|
|
442
|
+
next.addClass(clsIn)[dir==1 ? 'last':'first']().one(UI.support.animation.end, function(){
|
443
|
+
if(finish) finish();
|
441
444
|
}).end().css('display', '');
|
445
|
+
|
446
|
+
// make sure everything resolves really
|
447
|
+
setTimeout(function() {
|
448
|
+
if(finish) finish();
|
449
|
+
}, next.length * delay * 2);
|
442
450
|
};
|
443
451
|
|
444
452
|
if (next.length) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.
|
1
|
+
/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -186,7 +186,7 @@
|
|
186
186
|
}
|
187
187
|
});
|
188
188
|
|
189
|
-
this.on("click.
|
189
|
+
this.on("click.uk.slideshow", '[data-uk-slideshow-item]', function(e) {
|
190
190
|
|
191
191
|
e.preventDefault();
|
192
192
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.
|
1
|
+
/*! UIkit 2.25.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
|
*/
|
@@ -131,7 +131,7 @@
|
|
131
131
|
}
|
132
132
|
|
133
133
|
// inside or outside of sortable?
|
134
|
-
var sortable = closestSortable(
|
134
|
+
var sortable = closestSortable(currentlyDraggingElement),
|
135
135
|
component = draggingPlaceholder.$sortable,
|
136
136
|
ev = { type: e.type };
|
137
137
|
|
@@ -184,19 +184,6 @@
|
|
184
184
|
return $this.dragStart(e, this);
|
185
185
|
});
|
186
186
|
|
187
|
-
var handleDragOver = delegate(function(e) {
|
188
|
-
|
189
|
-
if (!currentlyDraggingElement) {
|
190
|
-
return true;
|
191
|
-
}
|
192
|
-
|
193
|
-
if (e.preventDefault) {
|
194
|
-
e.preventDefault();
|
195
|
-
}
|
196
|
-
|
197
|
-
return false;
|
198
|
-
});
|
199
|
-
|
200
187
|
var handleDragEnter = delegate(UI.Utils.debounce(function(e) {
|
201
188
|
return $this.dragEnter(e, this);
|
202
189
|
}), 40);
|
@@ -324,7 +311,7 @@
|
|
324
311
|
}
|
325
312
|
}
|
326
313
|
|
327
|
-
if (target.is('.'+$this.options.noDragClass) || target.closest('.'+$this.options.
|
314
|
+
if (target.is('.'+$this.options.noDragClass) || target.closest('.'+$this.options.noDragClass).length) {
|
328
315
|
return;
|
329
316
|
}
|
330
317
|
|
@@ -529,7 +516,9 @@
|
|
529
516
|
}
|
530
517
|
|
531
518
|
triggers.forEach(function (trigger, i) {
|
532
|
-
|
519
|
+
if (trigger.sortable) {
|
520
|
+
trigger.sortable.element.trigger('change.uk.sortable', [trigger.sortable, el, trigger.mode]);
|
521
|
+
}
|
533
522
|
});
|
534
523
|
},
|
535
524
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.
|
1
|
+
/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -81,11 +81,11 @@
|
|
81
81
|
|
82
82
|
init: function() {
|
83
83
|
|
84
|
-
var
|
85
|
-
|
86
|
-
this.wrapper = this.element.css('margin', 0).wrap(wrapper).parent();
|
84
|
+
var boundary = this.options.boundary, boundtoparent;
|
87
85
|
|
86
|
+
this.wrapper = this.element.wrap('<div class="uk-sticky-placeholder"></div>').parent();
|
88
87
|
this.computeWrapper();
|
88
|
+
this.element.css('margin', 0);
|
89
89
|
|
90
90
|
if (boundary) {
|
91
91
|
|
@@ -302,8 +302,7 @@
|
|
302
302
|
sticky.element.css({
|
303
303
|
position : "fixed",
|
304
304
|
top : newTop,
|
305
|
-
width : sticky.getWidthFrom.length ? sticky.getWidthFrom.width() : sticky.element.width()
|
306
|
-
left : sticky.wrapper.offset().left
|
305
|
+
width : sticky.getWidthFrom.length ? sticky.getWidthFrom.width() : sticky.element.width()
|
307
306
|
});
|
308
307
|
|
309
308
|
if (!sticky.init) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.
|
1
|
+
/*! UIkit 2.25.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.
|
47
|
+
UI.version = '2.25.0';
|
48
48
|
|
49
49
|
UI.noConflict = function() {
|
50
50
|
// restore UIkit version
|
@@ -282,12 +282,11 @@
|
|
282
282
|
var d = $.Deferred();
|
283
283
|
|
284
284
|
element = UI.$(element);
|
285
|
-
cls = cls;
|
286
285
|
|
287
286
|
element.css('display', 'none').addClass(cls).one(UI.support.animation.end, function() {
|
288
287
|
element.removeClass(cls);
|
289
288
|
d.resolve();
|
290
|
-
})
|
289
|
+
});
|
291
290
|
|
292
291
|
element.css('display', '');
|
293
292
|
|
@@ -644,22 +643,29 @@
|
|
644
643
|
// custom scroll observer
|
645
644
|
requestAnimationFrame((function(){
|
646
645
|
|
647
|
-
var memory = {x: window.pageXOffset, y:window.pageYOffset}
|
646
|
+
var memory = {dir: {x:0, y:0}, x: window.pageXOffset, y:window.pageYOffset};
|
648
647
|
|
649
648
|
var fn = function(){
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
};
|
661
|
-
|
662
|
-
|
649
|
+
// reading this (window.page[X|Y]Offset) causes a full page recalc of the layout in Chrome,
|
650
|
+
// so we only want to do this once
|
651
|
+
var wpxo = window.pageXOffset;
|
652
|
+
var wpyo = window.pageYOffset;
|
653
|
+
|
654
|
+
// Did the scroll position change since the last time we were here?
|
655
|
+
if (memory.x != wpxo || memory.y != wpyo) {
|
656
|
+
|
657
|
+
// Set the direction of the scroll and store the new position
|
658
|
+
if (wpxo != memory.x) {memory.dir.x = wpxo > memory.x ? 1:-1; } else { memory.dir.x = 0; }
|
659
|
+
if (wpyo != memory.y) {memory.dir.y = wpyo > memory.y ? 1:-1; } else { memory.dir.y = 0; }
|
660
|
+
|
661
|
+
memory.x = wpxo;
|
662
|
+
memory.y = wpyo;
|
663
|
+
|
664
|
+
// Trigger the scroll event, this could probably be sent using memory.clone() but this is
|
665
|
+
// more explicit and easier to see exactly what is being sent in the event.
|
666
|
+
UI.$doc.trigger('scrolling.uk.document', [{
|
667
|
+
"dir": {"x": memory.dir.x, "y": memory.dir.y}, "x": wpxo, "y": wpyo
|
668
|
+
}]);
|
663
669
|
}
|
664
670
|
|
665
671
|
requestAnimationFrame(fn);
|