uikit2-rails 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uikit2/rails/version.rb +1 -1
- data/vendor/assets/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/vendor/assets/javascripts/uikit.js +22 -9
- data/vendor/assets/javascripts/uikit/components/accordion.js +1 -1
- 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 +1 -1
- data/vendor/assets/javascripts/uikit/components/grid.js +1 -1
- data/vendor/assets/javascripts/uikit/components/htmleditor.js +21 -9
- data/vendor/assets/javascripts/uikit/components/lightbox.js +12 -4
- data/vendor/assets/javascripts/uikit/components/nestable.js +14 -2
- data/vendor/assets/javascripts/uikit/components/notify.js +1 -1
- data/vendor/assets/javascripts/uikit/components/pagination.js +1 -1
- data/vendor/assets/javascripts/uikit/components/parallax.js +1 -1
- data/vendor/assets/javascripts/uikit/components/search.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slider.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slideset.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slideshow-fx.js +1 -1
- data/vendor/assets/javascripts/uikit/components/slideshow.js +1 -1
- data/vendor/assets/javascripts/uikit/components/sortable.js +12 -7
- data/vendor/assets/javascripts/uikit/components/sticky.js +1 -1
- 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 +15 -2
- data/vendor/assets/javascripts/uikit/core/cover.js +1 -1
- data/vendor/assets/javascripts/uikit/core/dropdown.js +1 -1
- data/vendor/assets/javascripts/uikit/core/grid.js +1 -1
- data/vendor/assets/javascripts/uikit/core/modal.js +8 -8
- data/vendor/assets/javascripts/uikit/core/nav.js +1 -1
- data/vendor/assets/javascripts/uikit/core/offcanvas.js +1 -1
- data/vendor/assets/javascripts/uikit/core/scrollspy.js +1 -1
- data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +1 -1
- data/vendor/assets/javascripts/uikit/core/switcher.js +1 -1
- data/vendor/assets/javascripts/uikit/core/tab.js +1 -1
- 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 +1 -1
- data/vendor/assets/stylesheets/uikit.almost-flat.css +82 -3
- data/vendor/assets/stylesheets/uikit.css +82 -3
- data/vendor/assets/stylesheets/uikit.gradient.css +82 -3
- 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 +3 -3
- data/vendor/assets/stylesheets/uikit/components/search.css +3 -3
- data/vendor/assets/stylesheets/uikit/components/search.gradient.css +3 -3
- 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
- metadata +2 -3
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ad30b900e9ea5d892e994647a2efd4a8cd29c93
|
4
|
+
data.tar.gz: c30a6f6f21aeb33d562491b35c03af05899fe3bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82974b4f82883909ab7c8b460d9caac1ee2f3b75182457199ad2d0148a3fd5616d4f9377a377b009b451b1c8cfb7f987a8817490e3e83147aeafcb25cf7b3f30
|
7
|
+
data.tar.gz: 2b1968f73bc7b3d2522ed1932a031ec81e58ac0609e31116cf821bfda61afa96370419cb14ab2caa95b36cf9edb3eb0c832073fea0d687181e3e32afce841cc0
|
data/lib/uikit2/rails/version.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.3 | 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.
|
47
|
+
UI.version = '2.26.3';
|
48
48
|
|
49
49
|
UI.noConflict = function() {
|
50
50
|
// restore UIkit version
|
@@ -181,6 +181,19 @@
|
|
181
181
|
};
|
182
182
|
};
|
183
183
|
|
184
|
+
UI.Utils.throttle = function (func, limit) {
|
185
|
+
var wait = false;
|
186
|
+
return function () {
|
187
|
+
if (!wait) {
|
188
|
+
func.call();
|
189
|
+
wait = true;
|
190
|
+
setTimeout(function () {
|
191
|
+
wait = false;
|
192
|
+
}, limit);
|
193
|
+
}
|
194
|
+
}
|
195
|
+
};
|
196
|
+
|
184
197
|
UI.Utils.removeCssRules = function(selectorRegEx) {
|
185
198
|
var idx, idxs, stylesheet, _i, _j, _k, _len, _len1, _len2, _ref;
|
186
199
|
|
@@ -2575,9 +2588,7 @@
|
|
2575
2588
|
}
|
2576
2589
|
});
|
2577
2590
|
|
2578
|
-
UI.domObserve(this.element, function(e) {
|
2579
|
-
$this.resize();
|
2580
|
-
});
|
2591
|
+
UI.domObserve(this.element, function(e) { $this.resize(); });
|
2581
2592
|
},
|
2582
2593
|
|
2583
2594
|
toggle: function() {
|
@@ -2597,7 +2608,7 @@
|
|
2597
2608
|
}
|
2598
2609
|
|
2599
2610
|
this.element.removeClass("uk-open").show();
|
2600
|
-
this.resize();
|
2611
|
+
this.resize(true);
|
2601
2612
|
|
2602
2613
|
if (this.options.modal) {
|
2603
2614
|
active = this;
|
@@ -2646,7 +2657,9 @@
|
|
2646
2657
|
return this;
|
2647
2658
|
},
|
2648
2659
|
|
2649
|
-
resize: function() {
|
2660
|
+
resize: function(force) {
|
2661
|
+
|
2662
|
+
if (!this.isActive() && !force) return;
|
2650
2663
|
|
2651
2664
|
var bodywidth = body.width();
|
2652
2665
|
|
@@ -2710,13 +2723,13 @@
|
|
2710
2723
|
body.css(this.paddingdir, "");
|
2711
2724
|
}
|
2712
2725
|
|
2713
|
-
if(active===this) active = false;
|
2726
|
+
if (active===this) active = false;
|
2714
2727
|
|
2715
2728
|
this.trigger('hide.uk.modal');
|
2716
2729
|
},
|
2717
2730
|
|
2718
2731
|
isActive: function() {
|
2719
|
-
return this.
|
2732
|
+
return this.element.hasClass('uk-open');
|
2720
2733
|
}
|
2721
2734
|
|
2722
2735
|
});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -443,28 +443,40 @@
|
|
443
443
|
addAction('link', '<a href="http://">$1</a>');
|
444
444
|
addAction('image', '<img src="http://" alt="$1">');
|
445
445
|
|
446
|
-
var listfn = function() {
|
446
|
+
var listfn = function(tag) {
|
447
447
|
if (editor.getCursorMode() == 'html') {
|
448
448
|
|
449
|
-
|
450
|
-
|
451
|
-
|
449
|
+
tag = tag || 'ul';
|
450
|
+
|
451
|
+
var cm = editor.editor,
|
452
|
+
doc = cm.getDoc(),
|
453
|
+
pos = doc.getCursor(true),
|
454
|
+
posend = doc.getCursor(false),
|
455
|
+
im = CodeMirror.innerMode(cm.getMode(), cm.getTokenAt(cm.getCursor()).state),
|
456
|
+
inList = im && im.state && im.state.context && ['ul','ol'].indexOf(im.state.context.tagName) != -1;
|
452
457
|
|
453
458
|
for (var i=pos.line; i<(posend.line+1);i++) {
|
454
459
|
cm.replaceRange('<li>'+cm.getLine(i)+'</li>', { line: i, ch: 0 }, { line: i, ch: cm.getLine(i).length });
|
455
460
|
}
|
456
461
|
|
457
|
-
|
462
|
+
if (!inList) {
|
463
|
+
cm.replaceRange('<'+tag+'>'+"\n"+cm.getLine(pos.line), { line: pos.line, ch: 0 }, { line: pos.line, ch: cm.getLine(pos.line).length });
|
464
|
+
cm.replaceRange(cm.getLine((posend.line+1))+"\n"+'</'+tag+'>', { line: (posend.line+1), ch: 0 }, { line: (posend.line+1), ch: cm.getLine((posend.line+1)).length });
|
465
|
+
cm.setCursor({ line: posend.line+1, ch: cm.getLine(posend.line+1).length });
|
466
|
+
} else {
|
467
|
+
cm.setCursor({ line: posend.line, ch: cm.getLine(posend.line).length });
|
468
|
+
}
|
469
|
+
|
458
470
|
cm.focus();
|
459
471
|
}
|
460
472
|
};
|
461
473
|
|
462
474
|
editor.on('action.listUl', function() {
|
463
|
-
listfn();
|
475
|
+
listfn('ul');
|
464
476
|
});
|
465
477
|
|
466
478
|
editor.on('action.listOl', function() {
|
467
|
-
listfn();
|
479
|
+
listfn('ol');
|
468
480
|
});
|
469
481
|
|
470
482
|
editor.htmleditor.on('click', 'a[data-htmleditor-button="fullscreen"]', function() {
|
@@ -510,7 +522,7 @@
|
|
510
522
|
|
511
523
|
init: function(editor) {
|
512
524
|
|
513
|
-
var parser = editor.options.mdparser || marked || null;
|
525
|
+
var parser = editor.options.mdparser || window.marked || null;
|
514
526
|
|
515
527
|
if (!parser) return;
|
516
528
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
2
|
(function(addon) {
|
3
3
|
|
4
4
|
var component;
|
@@ -510,7 +510,7 @@
|
|
510
510
|
|
511
511
|
}
|
512
512
|
});
|
513
|
-
|
513
|
+
|
514
514
|
function getModal(lightbox) {
|
515
515
|
|
516
516
|
if (modal) {
|
@@ -548,9 +548,17 @@
|
|
548
548
|
modal.content.html('');
|
549
549
|
});
|
550
550
|
|
551
|
+
var resizeCache = {w: window.innerWidth, h:window.innerHeight};
|
552
|
+
|
551
553
|
UI.$win.on('load resize orientationchange', UI.Utils.debounce(function(e){
|
552
|
-
|
553
|
-
|
554
|
+
|
555
|
+
if (resizeCache.w !== window.innerWidth && modal.is(':visible') && !UI.Utils.isFullscreen()) {
|
556
|
+
modal.lightbox.fitSize();
|
557
|
+
}
|
558
|
+
|
559
|
+
resizeCache = {w: window.innerWidth, h:window.innerHeight};
|
560
|
+
|
561
|
+
}, 100));
|
554
562
|
|
555
563
|
modal.lightbox = lightbox;
|
556
564
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.3 | 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
|
*/
|
@@ -130,7 +130,8 @@
|
|
130
130
|
|
131
131
|
var onStartEvent = function(e) {
|
132
132
|
|
133
|
-
var handle = UI.$(e.target)
|
133
|
+
var handle = UI.$(e.target),
|
134
|
+
link = handle.is('a[href]') ? handle:handle.parents('a[href]');
|
134
135
|
|
135
136
|
if (e.target === $this.element[0]) {
|
136
137
|
return;
|
@@ -161,6 +162,8 @@
|
|
161
162
|
|
162
163
|
$this.delayMove = function(evt) {
|
163
164
|
|
165
|
+
link = false;
|
166
|
+
|
164
167
|
evt.preventDefault();
|
165
168
|
$this.dragStart(e);
|
166
169
|
$this.trigger('start.uk.nestable', [$this]);
|
@@ -172,6 +175,15 @@
|
|
172
175
|
$this.delayMove.y = parseInt(e.pageY, 10);
|
173
176
|
$this.delayMove.threshold = $this.options.idlethreshold;
|
174
177
|
|
178
|
+
if (link.length && eEnd == 'touchend') {
|
179
|
+
|
180
|
+
$this.one(eEnd, function(){
|
181
|
+
if (link && link.attr('href').trim()) {
|
182
|
+
location.href = link.attr('href');
|
183
|
+
}
|
184
|
+
});
|
185
|
+
}
|
186
|
+
|
175
187
|
e.preventDefault();
|
176
188
|
};
|
177
189
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! UIkit 2.26.
|
1
|
+
/*! UIkit 2.26.3 | 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
|
+
/*! UIkit 2.26.3 | 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
|
*/
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
"use strict";
|
22
22
|
|
23
|
-
var supportsTouch = ('ontouchstart' in window) || (window.DocumentTouch && document instanceof DocumentTouch),
|
23
|
+
var supportsTouch = ('ontouchstart' in window || 'MSGesture' in window) || (window.DocumentTouch && document instanceof DocumentTouch),
|
24
24
|
draggingPlaceholder, currentlyDraggingElement, currentlyDraggingTarget, dragging, moving, clickedlink, delayIdle, touchedlists, moved, overElement;
|
25
25
|
|
26
26
|
function closestSortable(ele) {
|
@@ -81,7 +81,6 @@
|
|
81
81
|
if (delayIdle) {
|
82
82
|
|
83
83
|
var src = e.originalEvent.targetTouches ? e.originalEvent.targetTouches[0] : e;
|
84
|
-
|
85
84
|
if (Math.abs(src.pageX - delayIdle.pos.x) > delayIdle.threshold || Math.abs(src.pageY - delayIdle.pos.y) > delayIdle.threshold) {
|
86
85
|
delayIdle.apply(src);
|
87
86
|
}
|
@@ -173,12 +172,18 @@
|
|
173
172
|
|
174
173
|
e.preventDefault();
|
175
174
|
|
176
|
-
if (
|
175
|
+
if ($link.length) {
|
177
176
|
|
178
177
|
$link.one('click', function(e){
|
179
178
|
e.preventDefault();
|
180
|
-
}).one('mouseup', function(){
|
181
|
-
|
179
|
+
}).one('mouseup touchend', function(){
|
180
|
+
|
181
|
+
if (!moved) {
|
182
|
+
$link.trigger('click');
|
183
|
+
if (supportsTouch && $link.attr('href').trim()) {
|
184
|
+
location.href = $link.attr('href');
|
185
|
+
}
|
186
|
+
}
|
182
187
|
});
|
183
188
|
}
|
184
189
|
|
@@ -327,7 +332,7 @@
|
|
327
332
|
delayIdle = {
|
328
333
|
|
329
334
|
pos : { x:e.pageX, y:e.pageY },
|
330
|
-
threshold : $this.options.handleClass ?
|
335
|
+
threshold : $this.options.handleClass ? 1 : $this.options.threshold,
|
331
336
|
apply : function(evt) {
|
332
337
|
|
333
338
|
draggingPlaceholder = UI.$('<div class="'+([$this.options.draggingClass, $this.options.dragCustomClass].join(' '))+'"></div>').css({
|