jquery-ui-rails 4.2.1 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jquery-ui-rails might be problematic. Click here for more details.
- data/History.md +6 -0
- data/README.md +69 -73
- data/Rakefile +28 -24
- data/VERSIONS.md +1 -0
- data/app/assets/javascripts/jquery-ui.js +37 -0
- data/app/assets/javascripts/{jquery.ui.accordion.js → jquery-ui/accordion.js} +62 -57
- data/app/assets/javascripts/{jquery.ui.autocomplete.js → jquery-ui/autocomplete.js} +70 -50
- data/app/assets/javascripts/{jquery.ui.button.js → jquery-ui/button.js} +41 -25
- data/app/assets/javascripts/{jquery.ui.core.js → jquery-ui/core.js} +106 -123
- data/app/assets/javascripts/jquery-ui/datepicker-af.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ar.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-az.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-be.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-bg.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-bs.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ca.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-cs.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-da.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-de.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-el.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-eo.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-es.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-et.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-eu.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fa.js +73 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fi.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fo.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fr.js +39 -0
- data/app/assets/javascripts/jquery-ui/datepicker-gl.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-he.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hi.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hr.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hu.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hy.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-id.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-is.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-it.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ja.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ka.js +35 -0
- data/app/assets/javascripts/jquery-ui/datepicker-kk.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-km.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ko.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ky.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-lb.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-lt.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-lv.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-mk.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ml.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ms.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nb.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nl.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nn.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-no.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-pl.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-pt.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-rm.js +35 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ro.js +40 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ru.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sk.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sl.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sq.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sr.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sv.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ta.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-th.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-tj.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-tr.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-uk.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-vi.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +37 -0
- data/app/assets/javascripts/{jquery.ui.datepicker.js → jquery-ui/datepicker.js} +72 -37
- data/app/assets/javascripts/{jquery.ui.dialog.js → jquery-ui/dialog.js} +215 -180
- data/app/assets/javascripts/{jquery.ui.draggable.js → jquery-ui/draggable.js} +219 -161
- data/app/assets/javascripts/jquery-ui/droppable.js +421 -0
- data/app/assets/javascripts/{jquery.ui.effect-blind.js → jquery-ui/effect-blind.js} +20 -12
- data/app/assets/javascripts/{jquery.ui.effect-bounce.js → jquery-ui/effect-bounce.js} +18 -8
- data/app/assets/javascripts/{jquery.ui.effect-clip.js → jquery-ui/effect-clip.js} +18 -8
- data/app/assets/javascripts/{jquery.ui.effect-drop.js → jquery-ui/effect-drop.js} +18 -8
- data/app/assets/javascripts/{jquery.ui.effect-explode.js → jquery-ui/effect-explode.js} +20 -10
- data/app/assets/javascripts/{jquery.ui.effect-fade.js → jquery-ui/effect-fade.js} +18 -8
- data/app/assets/javascripts/{jquery.ui.effect-fold.js → jquery-ui/effect-fold.js} +18 -8
- data/app/assets/javascripts/{jquery.ui.effect-highlight.js → jquery-ui/effect-highlight.js} +18 -8
- data/app/assets/javascripts/jquery-ui/effect-puff.js +63 -0
- data/app/assets/javascripts/{jquery.ui.effect-pulsate.js → jquery-ui/effect-pulsate.js} +18 -8
- data/app/assets/javascripts/jquery-ui/effect-scale.js +92 -0
- data/app/assets/javascripts/{jquery.ui.effect-shake.js → jquery-ui/effect-shake.js} +19 -9
- data/app/assets/javascripts/{jquery.ui.effect-scale.js → jquery-ui/effect-size.js} +19 -104
- data/app/assets/javascripts/{jquery.ui.effect-slide.js → jquery-ui/effect-slide.js} +18 -8
- data/app/assets/javascripts/{jquery.ui.effect-transfer.js → jquery-ui/effect-transfer.js} +22 -12
- data/app/assets/javascripts/jquery-ui/effect.all.js +16 -0
- data/app/assets/javascripts/{jquery.ui.effect.js → jquery-ui/effect.js} +28 -20
- data/app/assets/javascripts/{jquery.ui.menu.js → jquery-ui/menu.js} +93 -80
- data/app/assets/javascripts/{jquery.ui.mouse.js → jquery-ui/mouse.js} +41 -23
- data/app/assets/javascripts/{jquery.ui.position.js → jquery-ui/position.js} +25 -12
- data/app/assets/javascripts/{jquery.ui.progressbar.js → jquery-ui/progressbar.js} +26 -12
- data/app/assets/javascripts/{jquery.ui.resizable.js → jquery-ui/resizable.js} +196 -146
- data/app/assets/javascripts/{jquery.ui.selectable.js → jquery-ui/selectable.js} +25 -15
- data/app/assets/javascripts/jquery-ui/selectmenu.js +560 -0
- data/app/assets/javascripts/{jquery.ui.slider.js → jquery-ui/slider.js} +43 -31
- data/app/assets/javascripts/{jquery.ui.sortable.js → jquery-ui/sortable.js} +71 -50
- data/app/assets/javascripts/{jquery.ui.spinner.js → jquery-ui/spinner.js} +46 -29
- data/app/assets/javascripts/{jquery.ui.tabs.js → jquery-ui/tabs.js} +69 -52
- data/app/assets/javascripts/{jquery.ui.tooltip.js → jquery-ui/tooltip.js} +97 -55
- data/app/assets/javascripts/{jquery.ui.widget.js → jquery-ui/widget.js} +52 -30
- data/app/assets/stylesheets/jquery-ui.css +1 -0
- data/app/assets/stylesheets/{jquery.ui.accordion.css.erb → jquery-ui/accordion.css.erb} +5 -7
- data/app/assets/stylesheets/{jquery.ui.all.css.erb → jquery-ui/all.css.erb} +3 -3
- data/app/assets/stylesheets/{jquery.ui.autocomplete.css.erb → jquery-ui/autocomplete.css.erb} +4 -4
- data/app/assets/stylesheets/jquery-ui/base.css.erb +30 -0
- data/app/assets/stylesheets/{jquery.ui.button.css.erb → jquery-ui/button.css.erb} +3 -3
- data/app/assets/stylesheets/{jquery.ui.core.css.erb → jquery-ui/core.css.erb} +4 -1
- data/app/assets/stylesheets/{jquery.ui.datepicker.css.erb → jquery-ui/datepicker.css.erb} +3 -3
- data/app/assets/stylesheets/{jquery.ui.dialog.css.erb → jquery-ui/dialog.css.erb} +6 -5
- data/app/assets/stylesheets/jquery-ui/draggable.css.erb +16 -0
- data/app/assets/stylesheets/{jquery.ui.menu.css.erb → jquery-ui/menu.css.erb} +18 -34
- data/app/assets/stylesheets/{jquery.ui.progressbar.css.erb → jquery-ui/progressbar.css.erb} +3 -3
- data/app/assets/stylesheets/{jquery.ui.resizable.css.erb → jquery-ui/resizable.css.erb} +5 -3
- data/app/assets/stylesheets/{jquery.ui.selectable.css.erb → jquery-ui/selectable.css.erb} +7 -3
- data/app/assets/stylesheets/jquery-ui/selectmenu.css.erb +64 -0
- data/app/assets/stylesheets/{jquery.ui.slider.css.erb → jquery-ui/slider.css.erb} +5 -3
- data/app/assets/stylesheets/jquery-ui/sortable.css.erb +16 -0
- data/app/assets/stylesheets/{jquery.ui.spinner.css.erb → jquery-ui/spinner.css.erb} +4 -4
- data/app/assets/stylesheets/{jquery.ui.tabs.css.erb → jquery-ui/tabs.css.erb} +3 -3
- data/app/assets/stylesheets/{jquery.ui.theme.css.erb → jquery-ui/theme.css.erb} +1 -4
- data/app/assets/stylesheets/{jquery.ui.tooltip.css.erb → jquery-ui/tooltip.css.erb} +3 -3
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +137 -129
- data/app/assets/javascripts/jquery.ui.all.js +0 -34
- data/app/assets/javascripts/jquery.ui.datepicker-af.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ar-DZ.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ar.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-az.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-be.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-bg.js +0 -24
- data/app/assets/javascripts/jquery.ui.datepicker-bs.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ca.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-cs.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-cy-GB.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-da.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-de.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-el.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-en-AU.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-en-GB.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-en-NZ.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-eo.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-es.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-et.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-eu.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-fa.js +0 -59
- data/app/assets/javascripts/jquery.ui.datepicker-fi.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-fo.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-fr-CA.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-fr-CH.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-fr.js +0 -25
- data/app/assets/javascripts/jquery.ui.datepicker-gl.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-he.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-hi.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-hr.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-hu.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-hy.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-id.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-is.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-it.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ja.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ka.js +0 -21
- data/app/assets/javascripts/jquery.ui.datepicker-kk.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-km.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ko.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ky.js +0 -24
- data/app/assets/javascripts/jquery.ui.datepicker-lb.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-lt.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-lv.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-mk.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ml.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ms.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-nb.js +0 -22
- data/app/assets/javascripts/jquery.ui.datepicker-nl-BE.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-nl.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-nn.js +0 -22
- data/app/assets/javascripts/jquery.ui.datepicker-no.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-pl.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-pt-BR.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-pt.js +0 -22
- data/app/assets/javascripts/jquery.ui.datepicker-rm.js +0 -21
- data/app/assets/javascripts/jquery.ui.datepicker-ro.js +0 -26
- data/app/assets/javascripts/jquery.ui.datepicker-ru.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-sk.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-sl.js +0 -24
- data/app/assets/javascripts/jquery.ui.datepicker-sq.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-sr-SR.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-sr.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-sv.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ta.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-th.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-tj.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-tr.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-uk.js +0 -24
- data/app/assets/javascripts/jquery.ui.datepicker-vi.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-zh-CN.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-zh-HK.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-zh-TW.js +0 -23
- data/app/assets/javascripts/jquery.ui.droppable.js +0 -394
- data/app/assets/javascripts/jquery.ui.effect.all.js +0 -14
- data/app/assets/stylesheets/jquery.ui.base.css.erb +0 -27
@@ -1,7 +1,7 @@
|
|
1
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Shake 1.
|
4
|
+
* jQuery UI Effects Shake 1.11.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
7
|
* Copyright 2014 jQuery Foundation and other contributors
|
@@ -9,13 +9,23 @@
|
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
11
11
|
* http://api.jqueryui.com/shake-effect/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.effect.js
|
15
12
|
*/
|
16
|
-
(function(
|
13
|
+
(function( factory ) {
|
14
|
+
if ( typeof define === "function" && define.amd ) {
|
15
|
+
|
16
|
+
// AMD. Register as an anonymous module.
|
17
|
+
define([
|
18
|
+
"jquery",
|
19
|
+
"./effect"
|
20
|
+
], factory );
|
21
|
+
} else {
|
22
|
+
|
23
|
+
// Browser globals
|
24
|
+
factory( jQuery );
|
25
|
+
}
|
26
|
+
}(function( $ ) {
|
17
27
|
|
18
|
-
$.effects.effect.shake = function( o, done ) {
|
28
|
+
return $.effects.effect.shake = function( o, done ) {
|
19
29
|
|
20
30
|
var el = $( this ),
|
21
31
|
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
|
@@ -24,7 +34,7 @@ $.effects.effect.shake = function( o, done ) {
|
|
24
34
|
distance = o.distance || 20,
|
25
35
|
times = o.times || 3,
|
26
36
|
anims = times * 2 + 1,
|
27
|
-
speed = Math.round(o.duration/anims),
|
37
|
+
speed = Math.round( o.duration / anims ),
|
28
38
|
ref = (direction === "up" || direction === "down") ? "top" : "left",
|
29
39
|
positiveMotion = (direction === "up" || direction === "left"),
|
30
40
|
animation = {},
|
@@ -73,4 +83,4 @@ $.effects.effect.shake = function( o, done ) {
|
|
73
83
|
|
74
84
|
};
|
75
85
|
|
76
|
-
})
|
86
|
+
}));
|
@@ -1,116 +1,31 @@
|
|
1
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects
|
4
|
+
* jQuery UI Effects Size 1.11.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
7
|
* Copyright 2014 jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
11
|
-
* http://api.jqueryui.com/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.effect.js
|
11
|
+
* http://api.jqueryui.com/size-effect/
|
15
12
|
*/
|
16
|
-
(function(
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
height: elem.height(),
|
26
|
-
width: elem.width(),
|
27
|
-
outerHeight: elem.outerHeight(),
|
28
|
-
outerWidth: elem.outerWidth()
|
29
|
-
};
|
30
|
-
|
31
|
-
$.extend( o, {
|
32
|
-
effect: "scale",
|
33
|
-
queue: false,
|
34
|
-
fade: true,
|
35
|
-
mode: mode,
|
36
|
-
complete: done,
|
37
|
-
percent: hide ? percent : 100,
|
38
|
-
from: hide ?
|
39
|
-
original :
|
40
|
-
{
|
41
|
-
height: original.height * factor,
|
42
|
-
width: original.width * factor,
|
43
|
-
outerHeight: original.outerHeight * factor,
|
44
|
-
outerWidth: original.outerWidth * factor
|
45
|
-
}
|
46
|
-
});
|
47
|
-
|
48
|
-
elem.effect( o );
|
49
|
-
};
|
50
|
-
|
51
|
-
$.effects.effect.scale = function( o, done ) {
|
52
|
-
|
53
|
-
// Create element
|
54
|
-
var el = $( this ),
|
55
|
-
options = $.extend( true, {}, o ),
|
56
|
-
mode = $.effects.setMode( el, o.mode || "effect" ),
|
57
|
-
percent = parseInt( o.percent, 10 ) ||
|
58
|
-
( parseInt( o.percent, 10 ) === 0 ? 0 : ( mode === "hide" ? 0 : 100 ) ),
|
59
|
-
direction = o.direction || "both",
|
60
|
-
origin = o.origin,
|
61
|
-
original = {
|
62
|
-
height: el.height(),
|
63
|
-
width: el.width(),
|
64
|
-
outerHeight: el.outerHeight(),
|
65
|
-
outerWidth: el.outerWidth()
|
66
|
-
},
|
67
|
-
factor = {
|
68
|
-
y: direction !== "horizontal" ? (percent / 100) : 1,
|
69
|
-
x: direction !== "vertical" ? (percent / 100) : 1
|
70
|
-
};
|
71
|
-
|
72
|
-
// We are going to pass this effect to the size effect:
|
73
|
-
options.effect = "size";
|
74
|
-
options.queue = false;
|
75
|
-
options.complete = done;
|
13
|
+
(function( factory ) {
|
14
|
+
if ( typeof define === "function" && define.amd ) {
|
15
|
+
|
16
|
+
// AMD. Register as an anonymous module.
|
17
|
+
define([
|
18
|
+
"jquery",
|
19
|
+
"./effect"
|
20
|
+
], factory );
|
21
|
+
} else {
|
76
22
|
|
77
|
-
|
78
|
-
|
79
|
-
options.origin = origin || ["middle","center"];
|
80
|
-
options.restore = true;
|
23
|
+
// Browser globals
|
24
|
+
factory( jQuery );
|
81
25
|
}
|
26
|
+
}(function( $ ) {
|
82
27
|
|
83
|
-
|
84
|
-
height: 0,
|
85
|
-
width: 0,
|
86
|
-
outerHeight: 0,
|
87
|
-
outerWidth: 0
|
88
|
-
} : original );
|
89
|
-
options.to = {
|
90
|
-
height: original.height * factor.y,
|
91
|
-
width: original.width * factor.x,
|
92
|
-
outerHeight: original.outerHeight * factor.y,
|
93
|
-
outerWidth: original.outerWidth * factor.x
|
94
|
-
};
|
95
|
-
|
96
|
-
// Fade option to support puff
|
97
|
-
if ( options.fade ) {
|
98
|
-
if ( mode === "show" ) {
|
99
|
-
options.from.opacity = 0;
|
100
|
-
options.to.opacity = 1;
|
101
|
-
}
|
102
|
-
if ( mode === "hide" ) {
|
103
|
-
options.from.opacity = 1;
|
104
|
-
options.to.opacity = 0;
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
// Animate
|
109
|
-
el.effect( options );
|
110
|
-
|
111
|
-
};
|
112
|
-
|
113
|
-
$.effects.effect.size = function( o, done ) {
|
28
|
+
return $.effects.effect.size = function( o, done ) {
|
114
29
|
|
115
30
|
// Create element
|
116
31
|
var original, baseline, factor,
|
@@ -222,7 +137,7 @@ $.effects.effect.size = function( o, done ) {
|
|
222
137
|
hProps = hProps.concat([ "marginLeft", "marginRight" ]);
|
223
138
|
props2 = props0.concat(vProps).concat(hProps);
|
224
139
|
|
225
|
-
el.find( "*[width]" ).each( function(){
|
140
|
+
el.find( "*[width]" ).each( function() {
|
226
141
|
var child = $( this ),
|
227
142
|
c_original = {
|
228
143
|
height: child.height(),
|
@@ -280,7 +195,7 @@ $.effects.effect.size = function( o, done ) {
|
|
280
195
|
if ( el.to.opacity === 0 ) {
|
281
196
|
el.css( "opacity", el.from.opacity );
|
282
197
|
}
|
283
|
-
if( mode === "hide" ) {
|
198
|
+
if ( mode === "hide" ) {
|
284
199
|
el.hide();
|
285
200
|
}
|
286
201
|
$.effects.restore( el, props );
|
@@ -317,4 +232,4 @@ $.effects.effect.size = function( o, done ) {
|
|
317
232
|
|
318
233
|
};
|
319
234
|
|
320
|
-
})
|
235
|
+
}));
|
@@ -1,7 +1,7 @@
|
|
1
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Slide 1.
|
4
|
+
* jQuery UI Effects Slide 1.11.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
7
|
* Copyright 2014 jQuery Foundation and other contributors
|
@@ -9,13 +9,23 @@
|
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
11
11
|
* http://api.jqueryui.com/slide-effect/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.effect.js
|
15
12
|
*/
|
16
|
-
(function(
|
13
|
+
(function( factory ) {
|
14
|
+
if ( typeof define === "function" && define.amd ) {
|
15
|
+
|
16
|
+
// AMD. Register as an anonymous module.
|
17
|
+
define([
|
18
|
+
"jquery",
|
19
|
+
"./effect"
|
20
|
+
], factory );
|
21
|
+
} else {
|
22
|
+
|
23
|
+
// Browser globals
|
24
|
+
factory( jQuery );
|
25
|
+
}
|
26
|
+
}(function( $ ) {
|
17
27
|
|
18
|
-
$.effects.effect.slide = function( o, done ) {
|
28
|
+
return $.effects.effect.slide = function( o, done ) {
|
19
29
|
|
20
30
|
// Create element
|
21
31
|
var el = $( this ),
|
@@ -63,4 +73,4 @@ $.effects.effect.slide = function( o, done ) {
|
|
63
73
|
});
|
64
74
|
};
|
65
75
|
|
66
|
-
})
|
76
|
+
}));
|
@@ -1,7 +1,7 @@
|
|
1
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Transfer 1.
|
4
|
+
* jQuery UI Effects Transfer 1.11.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
7
|
* Copyright 2014 jQuery Foundation and other contributors
|
@@ -9,13 +9,23 @@
|
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
11
11
|
* http://api.jqueryui.com/transfer-effect/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.effect.js
|
15
12
|
*/
|
16
|
-
(function(
|
13
|
+
(function( factory ) {
|
14
|
+
if ( typeof define === "function" && define.amd ) {
|
15
|
+
|
16
|
+
// AMD. Register as an anonymous module.
|
17
|
+
define([
|
18
|
+
"jquery",
|
19
|
+
"./effect"
|
20
|
+
], factory );
|
21
|
+
} else {
|
22
|
+
|
23
|
+
// Browser globals
|
24
|
+
factory( jQuery );
|
25
|
+
}
|
26
|
+
}(function( $ ) {
|
17
27
|
|
18
|
-
$.effects.effect.transfer = function( o, done ) {
|
28
|
+
return $.effects.effect.transfer = function( o, done ) {
|
19
29
|
var elem = $( this ),
|
20
30
|
target = $( o.to ),
|
21
31
|
targetFixed = target.css( "position" ) === "fixed",
|
@@ -24,8 +34,8 @@ $.effects.effect.transfer = function( o, done ) {
|
|
24
34
|
fixLeft = targetFixed ? body.scrollLeft() : 0,
|
25
35
|
endPosition = target.offset(),
|
26
36
|
animation = {
|
27
|
-
top: endPosition.top - fixTop
|
28
|
-
left: endPosition.left - fixLeft
|
37
|
+
top: endPosition.top - fixTop,
|
38
|
+
left: endPosition.left - fixLeft,
|
29
39
|
height: target.innerHeight(),
|
30
40
|
width: target.innerWidth()
|
31
41
|
},
|
@@ -34,8 +44,8 @@ $.effects.effect.transfer = function( o, done ) {
|
|
34
44
|
.appendTo( document.body )
|
35
45
|
.addClass( o.className )
|
36
46
|
.css({
|
37
|
-
top: startPosition.top - fixTop
|
38
|
-
left: startPosition.left - fixLeft
|
47
|
+
top: startPosition.top - fixTop,
|
48
|
+
left: startPosition.left - fixLeft,
|
39
49
|
height: elem.innerHeight(),
|
40
50
|
width: elem.innerWidth(),
|
41
51
|
position: targetFixed ? "fixed" : "absolute"
|
@@ -46,4 +56,4 @@ $.effects.effect.transfer = function( o, done ) {
|
|
46
56
|
});
|
47
57
|
};
|
48
58
|
|
49
|
-
})
|
59
|
+
}));
|
@@ -0,0 +1,16 @@
|
|
1
|
+
//= require jquery-ui/effect-blind
|
2
|
+
//= require jquery-ui/effect-bounce
|
3
|
+
//= require jquery-ui/effect-clip
|
4
|
+
//= require jquery-ui/effect-drop
|
5
|
+
//= require jquery-ui/effect-explode
|
6
|
+
//= require jquery-ui/effect-fade
|
7
|
+
//= require jquery-ui/effect-fold
|
8
|
+
//= require jquery-ui/effect-highlight
|
9
|
+
//= require jquery-ui/effect-puff
|
10
|
+
//= require jquery-ui/effect-pulsate
|
11
|
+
//= require jquery-ui/effect-scale
|
12
|
+
//= require jquery-ui/effect-shake
|
13
|
+
//= require jquery-ui/effect-size
|
14
|
+
//= require jquery-ui/effect-slide
|
15
|
+
//= require jquery-ui/effect-transfer
|
16
|
+
//= require jquery-ui/effect
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI Effects 1.
|
2
|
+
* jQuery UI Effects 1.11.0
|
3
3
|
* http://jqueryui.com
|
4
4
|
*
|
5
5
|
* Copyright 2014 jQuery Foundation and other contributors
|
@@ -8,7 +8,17 @@
|
|
8
8
|
*
|
9
9
|
* http://api.jqueryui.com/category/effects-core/
|
10
10
|
*/
|
11
|
-
(function(
|
11
|
+
(function( factory ) {
|
12
|
+
if ( typeof define === "function" && define.amd ) {
|
13
|
+
|
14
|
+
// AMD. Register as an anonymous module.
|
15
|
+
define( [ "jquery" ], factory );
|
16
|
+
} else {
|
17
|
+
|
18
|
+
// Browser globals
|
19
|
+
factory( jQuery );
|
20
|
+
}
|
21
|
+
}(function( $ ) {
|
12
22
|
|
13
23
|
var dataSpace = "ui-effects-";
|
14
24
|
|
@@ -20,7 +30,7 @@ $.effects = {
|
|
20
30
|
* jQuery Color Animations v2.1.2
|
21
31
|
* https://github.com/jquery/jquery-color
|
22
32
|
*
|
23
|
-
* Copyright
|
33
|
+
* Copyright 2014 jQuery Foundation and other contributors
|
24
34
|
* Released under the MIT license.
|
25
35
|
* http://jquery.org/license
|
26
36
|
*
|
@@ -33,7 +43,7 @@ $.effects = {
|
|
33
43
|
// plusequals test for += 100 -= 100
|
34
44
|
rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
|
35
45
|
// a set of RE's that can match strings and generate color tuples.
|
36
|
-
stringParsers = [{
|
46
|
+
stringParsers = [ {
|
37
47
|
re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
|
38
48
|
parse: function( execResult ) {
|
39
49
|
return [
|
@@ -84,7 +94,7 @@ $.effects = {
|
|
84
94
|
execResult[ 4 ]
|
85
95
|
];
|
86
96
|
}
|
87
|
-
}],
|
97
|
+
} ],
|
88
98
|
|
89
99
|
// jQuery.Color( )
|
90
100
|
color = jQuery.Color = function( color, green, blue, alpha ) {
|
@@ -443,18 +453,18 @@ color.fn.parse.prototype = color.fn;
|
|
443
453
|
function hue2rgb( p, q, h ) {
|
444
454
|
h = ( h + 1 ) % 1;
|
445
455
|
if ( h * 6 < 1 ) {
|
446
|
-
return p + (q - p) * h * 6;
|
456
|
+
return p + ( q - p ) * h * 6;
|
447
457
|
}
|
448
458
|
if ( h * 2 < 1) {
|
449
459
|
return q;
|
450
460
|
}
|
451
461
|
if ( h * 3 < 2 ) {
|
452
|
-
return p + (q - p) * ((2/3) - h) * 6;
|
462
|
+
return p + ( q - p ) * ( ( 2 / 3 ) - h ) * 6;
|
453
463
|
}
|
454
464
|
return p;
|
455
465
|
}
|
456
466
|
|
457
|
-
spaces.hsla.to = function
|
467
|
+
spaces.hsla.to = function( rgba ) {
|
458
468
|
if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
|
459
469
|
return [ null, null, null, rgba[ 3 ] ];
|
460
470
|
}
|
@@ -491,7 +501,7 @@ spaces.hsla.to = function ( rgba ) {
|
|
491
501
|
return [ Math.round(h) % 360, s, l, a == null ? 1 : a ];
|
492
502
|
};
|
493
503
|
|
494
|
-
spaces.hsla.from = function
|
504
|
+
spaces.hsla.from = function( hsla ) {
|
495
505
|
if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
|
496
506
|
return [ null, null, null, hsla[ 3 ] ];
|
497
507
|
}
|
@@ -510,7 +520,6 @@ spaces.hsla.from = function ( hsla ) {
|
|
510
520
|
];
|
511
521
|
};
|
512
522
|
|
513
|
-
|
514
523
|
each( spaces, function( spaceName, space ) {
|
515
524
|
var props = space.props,
|
516
525
|
cache = space.cache,
|
@@ -680,7 +689,6 @@ colors = jQuery.Color.names = {
|
|
680
689
|
|
681
690
|
})( jQuery );
|
682
691
|
|
683
|
-
|
684
692
|
/******************************************************************************/
|
685
693
|
/****************************** CLASS ANIMATIONS ******************************/
|
686
694
|
/******************************************************************************/
|
@@ -735,7 +743,6 @@ function getElementStyles( elem ) {
|
|
735
743
|
return styles;
|
736
744
|
}
|
737
745
|
|
738
|
-
|
739
746
|
function styleDifference( oldStyle, newStyle ) {
|
740
747
|
var diff = {},
|
741
748
|
name, value;
|
@@ -893,11 +900,11 @@ $.fn.extend({
|
|
893
900
|
(function() {
|
894
901
|
|
895
902
|
$.extend( $.effects, {
|
896
|
-
version: "1.
|
903
|
+
version: "1.11.0",
|
897
904
|
|
898
905
|
// Saves a set of properties in a data storage
|
899
906
|
save: function( element, set ) {
|
900
|
-
for( var i=0; i < set.length; i++ ) {
|
907
|
+
for ( var i = 0; i < set.length; i++ ) {
|
901
908
|
if ( set[ i ] !== null ) {
|
902
909
|
element.data( dataSpace + set[ i ], element[ 0 ].style[ set[ i ] ] );
|
903
910
|
}
|
@@ -907,7 +914,7 @@ $.extend( $.effects, {
|
|
907
914
|
// Restores a set of previously saved properties from a data storage
|
908
915
|
restore: function( element, set ) {
|
909
916
|
var val, i;
|
910
|
-
for( i=0; i < set.length; i++ ) {
|
917
|
+
for ( i = 0; i < set.length; i++ ) {
|
911
918
|
if ( set[ i ] !== null ) {
|
912
919
|
val = element.data( dataSpace + set[ i ] );
|
913
920
|
// support: jQuery 1.6.2
|
@@ -1040,7 +1047,6 @@ $.extend( $.effects, {
|
|
1040
1047
|
}
|
1041
1048
|
}
|
1042
1049
|
|
1043
|
-
|
1044
1050
|
return element;
|
1045
1051
|
},
|
1046
1052
|
|
@@ -1250,10 +1256,10 @@ $.each( [ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function( i, name ) {
|
|
1250
1256
|
});
|
1251
1257
|
|
1252
1258
|
$.extend( baseEasings, {
|
1253
|
-
Sine: function
|
1259
|
+
Sine: function( p ) {
|
1254
1260
|
return 1 - Math.cos( p * Math.PI / 2 );
|
1255
1261
|
},
|
1256
|
-
Circ: function
|
1262
|
+
Circ: function( p ) {
|
1257
1263
|
return 1 - Math.sqrt( 1 - p * p );
|
1258
1264
|
},
|
1259
1265
|
Elastic: function( p ) {
|
@@ -1263,7 +1269,7 @@ $.extend( baseEasings, {
|
|
1263
1269
|
Back: function( p ) {
|
1264
1270
|
return p * p * ( 3 * p - 2 );
|
1265
1271
|
},
|
1266
|
-
Bounce: function
|
1272
|
+
Bounce: function( p ) {
|
1267
1273
|
var pow2,
|
1268
1274
|
bounce = 4;
|
1269
1275
|
|
@@ -1286,4 +1292,6 @@ $.each( baseEasings, function( name, easeIn ) {
|
|
1286
1292
|
|
1287
1293
|
})();
|
1288
1294
|
|
1289
|
-
|
1295
|
+
return $.effects;
|
1296
|
+
|
1297
|
+
}));
|