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.

Files changed (217) hide show
  1. data/History.md +6 -0
  2. data/README.md +69 -73
  3. data/Rakefile +28 -24
  4. data/VERSIONS.md +1 -0
  5. data/app/assets/javascripts/jquery-ui.js +37 -0
  6. data/app/assets/javascripts/{jquery.ui.accordion.js → jquery-ui/accordion.js} +62 -57
  7. data/app/assets/javascripts/{jquery.ui.autocomplete.js → jquery-ui/autocomplete.js} +70 -50
  8. data/app/assets/javascripts/{jquery.ui.button.js → jquery-ui/button.js} +41 -25
  9. data/app/assets/javascripts/{jquery.ui.core.js → jquery-ui/core.js} +106 -123
  10. data/app/assets/javascripts/jquery-ui/datepicker-af.js +37 -0
  11. data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +37 -0
  12. data/app/assets/javascripts/jquery-ui/datepicker-ar.js +37 -0
  13. data/app/assets/javascripts/jquery-ui/datepicker-az.js +37 -0
  14. data/app/assets/javascripts/jquery-ui/datepicker-be.js +37 -0
  15. data/app/assets/javascripts/jquery-ui/datepicker-bg.js +38 -0
  16. data/app/assets/javascripts/jquery-ui/datepicker-bs.js +37 -0
  17. data/app/assets/javascripts/jquery-ui/datepicker-ca.js +37 -0
  18. data/app/assets/javascripts/jquery-ui/datepicker-cs.js +37 -0
  19. data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +37 -0
  20. data/app/assets/javascripts/jquery-ui/datepicker-da.js +37 -0
  21. data/app/assets/javascripts/jquery-ui/datepicker-de.js +37 -0
  22. data/app/assets/javascripts/jquery-ui/datepicker-el.js +37 -0
  23. data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +37 -0
  24. data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +37 -0
  25. data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +37 -0
  26. data/app/assets/javascripts/jquery-ui/datepicker-eo.js +37 -0
  27. data/app/assets/javascripts/jquery-ui/datepicker-es.js +37 -0
  28. data/app/assets/javascripts/jquery-ui/datepicker-et.js +37 -0
  29. data/app/assets/javascripts/jquery-ui/datepicker-eu.js +36 -0
  30. data/app/assets/javascripts/jquery-ui/datepicker-fa.js +73 -0
  31. data/app/assets/javascripts/jquery-ui/datepicker-fi.js +37 -0
  32. data/app/assets/javascripts/jquery-ui/datepicker-fo.js +37 -0
  33. data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +37 -0
  34. data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +37 -0
  35. data/app/assets/javascripts/jquery-ui/datepicker-fr.js +39 -0
  36. data/app/assets/javascripts/jquery-ui/datepicker-gl.js +37 -0
  37. data/app/assets/javascripts/jquery-ui/datepicker-he.js +37 -0
  38. data/app/assets/javascripts/jquery-ui/datepicker-hi.js +37 -0
  39. data/app/assets/javascripts/jquery-ui/datepicker-hr.js +37 -0
  40. data/app/assets/javascripts/jquery-ui/datepicker-hu.js +36 -0
  41. data/app/assets/javascripts/jquery-ui/datepicker-hy.js +37 -0
  42. data/app/assets/javascripts/jquery-ui/datepicker-id.js +37 -0
  43. data/app/assets/javascripts/jquery-ui/datepicker-is.js +37 -0
  44. data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +37 -0
  45. data/app/assets/javascripts/jquery-ui/datepicker-it.js +37 -0
  46. data/app/assets/javascripts/jquery-ui/datepicker-ja.js +37 -0
  47. data/app/assets/javascripts/jquery-ui/datepicker-ka.js +35 -0
  48. data/app/assets/javascripts/jquery-ui/datepicker-kk.js +37 -0
  49. data/app/assets/javascripts/jquery-ui/datepicker-km.js +37 -0
  50. data/app/assets/javascripts/jquery-ui/datepicker-ko.js +37 -0
  51. data/app/assets/javascripts/jquery-ui/datepicker-ky.js +38 -0
  52. data/app/assets/javascripts/jquery-ui/datepicker-lb.js +37 -0
  53. data/app/assets/javascripts/jquery-ui/datepicker-lt.js +37 -0
  54. data/app/assets/javascripts/jquery-ui/datepicker-lv.js +37 -0
  55. data/app/assets/javascripts/jquery-ui/datepicker-mk.js +37 -0
  56. data/app/assets/javascripts/jquery-ui/datepicker-ml.js +37 -0
  57. data/app/assets/javascripts/jquery-ui/datepicker-ms.js +37 -0
  58. data/app/assets/javascripts/jquery-ui/datepicker-nb.js +36 -0
  59. data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +37 -0
  60. data/app/assets/javascripts/jquery-ui/datepicker-nl.js +37 -0
  61. data/app/assets/javascripts/jquery-ui/datepicker-nn.js +36 -0
  62. data/app/assets/javascripts/jquery-ui/datepicker-no.js +37 -0
  63. data/app/assets/javascripts/jquery-ui/datepicker-pl.js +37 -0
  64. data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +37 -0
  65. data/app/assets/javascripts/jquery-ui/datepicker-pt.js +36 -0
  66. data/app/assets/javascripts/jquery-ui/datepicker-rm.js +35 -0
  67. data/app/assets/javascripts/jquery-ui/datepicker-ro.js +40 -0
  68. data/app/assets/javascripts/jquery-ui/datepicker-ru.js +37 -0
  69. data/app/assets/javascripts/jquery-ui/datepicker-sk.js +37 -0
  70. data/app/assets/javascripts/jquery-ui/datepicker-sl.js +38 -0
  71. data/app/assets/javascripts/jquery-ui/datepicker-sq.js +37 -0
  72. data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +37 -0
  73. data/app/assets/javascripts/jquery-ui/datepicker-sr.js +37 -0
  74. data/app/assets/javascripts/jquery-ui/datepicker-sv.js +37 -0
  75. data/app/assets/javascripts/jquery-ui/datepicker-ta.js +37 -0
  76. data/app/assets/javascripts/jquery-ui/datepicker-th.js +37 -0
  77. data/app/assets/javascripts/jquery-ui/datepicker-tj.js +37 -0
  78. data/app/assets/javascripts/jquery-ui/datepicker-tr.js +37 -0
  79. data/app/assets/javascripts/jquery-ui/datepicker-uk.js +38 -0
  80. data/app/assets/javascripts/jquery-ui/datepicker-vi.js +37 -0
  81. data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +37 -0
  82. data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +37 -0
  83. data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +37 -0
  84. data/app/assets/javascripts/{jquery.ui.datepicker.js → jquery-ui/datepicker.js} +72 -37
  85. data/app/assets/javascripts/{jquery.ui.dialog.js → jquery-ui/dialog.js} +215 -180
  86. data/app/assets/javascripts/{jquery.ui.draggable.js → jquery-ui/draggable.js} +219 -161
  87. data/app/assets/javascripts/jquery-ui/droppable.js +421 -0
  88. data/app/assets/javascripts/{jquery.ui.effect-blind.js → jquery-ui/effect-blind.js} +20 -12
  89. data/app/assets/javascripts/{jquery.ui.effect-bounce.js → jquery-ui/effect-bounce.js} +18 -8
  90. data/app/assets/javascripts/{jquery.ui.effect-clip.js → jquery-ui/effect-clip.js} +18 -8
  91. data/app/assets/javascripts/{jquery.ui.effect-drop.js → jquery-ui/effect-drop.js} +18 -8
  92. data/app/assets/javascripts/{jquery.ui.effect-explode.js → jquery-ui/effect-explode.js} +20 -10
  93. data/app/assets/javascripts/{jquery.ui.effect-fade.js → jquery-ui/effect-fade.js} +18 -8
  94. data/app/assets/javascripts/{jquery.ui.effect-fold.js → jquery-ui/effect-fold.js} +18 -8
  95. data/app/assets/javascripts/{jquery.ui.effect-highlight.js → jquery-ui/effect-highlight.js} +18 -8
  96. data/app/assets/javascripts/jquery-ui/effect-puff.js +63 -0
  97. data/app/assets/javascripts/{jquery.ui.effect-pulsate.js → jquery-ui/effect-pulsate.js} +18 -8
  98. data/app/assets/javascripts/jquery-ui/effect-scale.js +92 -0
  99. data/app/assets/javascripts/{jquery.ui.effect-shake.js → jquery-ui/effect-shake.js} +19 -9
  100. data/app/assets/javascripts/{jquery.ui.effect-scale.js → jquery-ui/effect-size.js} +19 -104
  101. data/app/assets/javascripts/{jquery.ui.effect-slide.js → jquery-ui/effect-slide.js} +18 -8
  102. data/app/assets/javascripts/{jquery.ui.effect-transfer.js → jquery-ui/effect-transfer.js} +22 -12
  103. data/app/assets/javascripts/jquery-ui/effect.all.js +16 -0
  104. data/app/assets/javascripts/{jquery.ui.effect.js → jquery-ui/effect.js} +28 -20
  105. data/app/assets/javascripts/{jquery.ui.menu.js → jquery-ui/menu.js} +93 -80
  106. data/app/assets/javascripts/{jquery.ui.mouse.js → jquery-ui/mouse.js} +41 -23
  107. data/app/assets/javascripts/{jquery.ui.position.js → jquery-ui/position.js} +25 -12
  108. data/app/assets/javascripts/{jquery.ui.progressbar.js → jquery-ui/progressbar.js} +26 -12
  109. data/app/assets/javascripts/{jquery.ui.resizable.js → jquery-ui/resizable.js} +196 -146
  110. data/app/assets/javascripts/{jquery.ui.selectable.js → jquery-ui/selectable.js} +25 -15
  111. data/app/assets/javascripts/jquery-ui/selectmenu.js +560 -0
  112. data/app/assets/javascripts/{jquery.ui.slider.js → jquery-ui/slider.js} +43 -31
  113. data/app/assets/javascripts/{jquery.ui.sortable.js → jquery-ui/sortable.js} +71 -50
  114. data/app/assets/javascripts/{jquery.ui.spinner.js → jquery-ui/spinner.js} +46 -29
  115. data/app/assets/javascripts/{jquery.ui.tabs.js → jquery-ui/tabs.js} +69 -52
  116. data/app/assets/javascripts/{jquery.ui.tooltip.js → jquery-ui/tooltip.js} +97 -55
  117. data/app/assets/javascripts/{jquery.ui.widget.js → jquery-ui/widget.js} +52 -30
  118. data/app/assets/stylesheets/jquery-ui.css +1 -0
  119. data/app/assets/stylesheets/{jquery.ui.accordion.css.erb → jquery-ui/accordion.css.erb} +5 -7
  120. data/app/assets/stylesheets/{jquery.ui.all.css.erb → jquery-ui/all.css.erb} +3 -3
  121. data/app/assets/stylesheets/{jquery.ui.autocomplete.css.erb → jquery-ui/autocomplete.css.erb} +4 -4
  122. data/app/assets/stylesheets/jquery-ui/base.css.erb +30 -0
  123. data/app/assets/stylesheets/{jquery.ui.button.css.erb → jquery-ui/button.css.erb} +3 -3
  124. data/app/assets/stylesheets/{jquery.ui.core.css.erb → jquery-ui/core.css.erb} +4 -1
  125. data/app/assets/stylesheets/{jquery.ui.datepicker.css.erb → jquery-ui/datepicker.css.erb} +3 -3
  126. data/app/assets/stylesheets/{jquery.ui.dialog.css.erb → jquery-ui/dialog.css.erb} +6 -5
  127. data/app/assets/stylesheets/jquery-ui/draggable.css.erb +16 -0
  128. data/app/assets/stylesheets/{jquery.ui.menu.css.erb → jquery-ui/menu.css.erb} +18 -34
  129. data/app/assets/stylesheets/{jquery.ui.progressbar.css.erb → jquery-ui/progressbar.css.erb} +3 -3
  130. data/app/assets/stylesheets/{jquery.ui.resizable.css.erb → jquery-ui/resizable.css.erb} +5 -3
  131. data/app/assets/stylesheets/{jquery.ui.selectable.css.erb → jquery-ui/selectable.css.erb} +7 -3
  132. data/app/assets/stylesheets/jquery-ui/selectmenu.css.erb +64 -0
  133. data/app/assets/stylesheets/{jquery.ui.slider.css.erb → jquery-ui/slider.css.erb} +5 -3
  134. data/app/assets/stylesheets/jquery-ui/sortable.css.erb +16 -0
  135. data/app/assets/stylesheets/{jquery.ui.spinner.css.erb → jquery-ui/spinner.css.erb} +4 -4
  136. data/app/assets/stylesheets/{jquery.ui.tabs.css.erb → jquery-ui/tabs.css.erb} +3 -3
  137. data/app/assets/stylesheets/{jquery.ui.theme.css.erb → jquery-ui/theme.css.erb} +1 -4
  138. data/app/assets/stylesheets/{jquery.ui.tooltip.css.erb → jquery-ui/tooltip.css.erb} +3 -3
  139. data/lib/jquery/ui/rails/version.rb +2 -2
  140. metadata +137 -129
  141. data/app/assets/javascripts/jquery.ui.all.js +0 -34
  142. data/app/assets/javascripts/jquery.ui.datepicker-af.js +0 -23
  143. data/app/assets/javascripts/jquery.ui.datepicker-ar-DZ.js +0 -23
  144. data/app/assets/javascripts/jquery.ui.datepicker-ar.js +0 -23
  145. data/app/assets/javascripts/jquery.ui.datepicker-az.js +0 -23
  146. data/app/assets/javascripts/jquery.ui.datepicker-be.js +0 -23
  147. data/app/assets/javascripts/jquery.ui.datepicker-bg.js +0 -24
  148. data/app/assets/javascripts/jquery.ui.datepicker-bs.js +0 -23
  149. data/app/assets/javascripts/jquery.ui.datepicker-ca.js +0 -23
  150. data/app/assets/javascripts/jquery.ui.datepicker-cs.js +0 -23
  151. data/app/assets/javascripts/jquery.ui.datepicker-cy-GB.js +0 -23
  152. data/app/assets/javascripts/jquery.ui.datepicker-da.js +0 -23
  153. data/app/assets/javascripts/jquery.ui.datepicker-de.js +0 -23
  154. data/app/assets/javascripts/jquery.ui.datepicker-el.js +0 -23
  155. data/app/assets/javascripts/jquery.ui.datepicker-en-AU.js +0 -23
  156. data/app/assets/javascripts/jquery.ui.datepicker-en-GB.js +0 -23
  157. data/app/assets/javascripts/jquery.ui.datepicker-en-NZ.js +0 -23
  158. data/app/assets/javascripts/jquery.ui.datepicker-eo.js +0 -23
  159. data/app/assets/javascripts/jquery.ui.datepicker-es.js +0 -23
  160. data/app/assets/javascripts/jquery.ui.datepicker-et.js +0 -23
  161. data/app/assets/javascripts/jquery.ui.datepicker-eu.js +0 -23
  162. data/app/assets/javascripts/jquery.ui.datepicker-fa.js +0 -59
  163. data/app/assets/javascripts/jquery.ui.datepicker-fi.js +0 -23
  164. data/app/assets/javascripts/jquery.ui.datepicker-fo.js +0 -23
  165. data/app/assets/javascripts/jquery.ui.datepicker-fr-CA.js +0 -23
  166. data/app/assets/javascripts/jquery.ui.datepicker-fr-CH.js +0 -23
  167. data/app/assets/javascripts/jquery.ui.datepicker-fr.js +0 -25
  168. data/app/assets/javascripts/jquery.ui.datepicker-gl.js +0 -23
  169. data/app/assets/javascripts/jquery.ui.datepicker-he.js +0 -23
  170. data/app/assets/javascripts/jquery.ui.datepicker-hi.js +0 -23
  171. data/app/assets/javascripts/jquery.ui.datepicker-hr.js +0 -23
  172. data/app/assets/javascripts/jquery.ui.datepicker-hu.js +0 -23
  173. data/app/assets/javascripts/jquery.ui.datepicker-hy.js +0 -23
  174. data/app/assets/javascripts/jquery.ui.datepicker-id.js +0 -23
  175. data/app/assets/javascripts/jquery.ui.datepicker-is.js +0 -23
  176. data/app/assets/javascripts/jquery.ui.datepicker-it.js +0 -23
  177. data/app/assets/javascripts/jquery.ui.datepicker-ja.js +0 -23
  178. data/app/assets/javascripts/jquery.ui.datepicker-ka.js +0 -21
  179. data/app/assets/javascripts/jquery.ui.datepicker-kk.js +0 -23
  180. data/app/assets/javascripts/jquery.ui.datepicker-km.js +0 -23
  181. data/app/assets/javascripts/jquery.ui.datepicker-ko.js +0 -23
  182. data/app/assets/javascripts/jquery.ui.datepicker-ky.js +0 -24
  183. data/app/assets/javascripts/jquery.ui.datepicker-lb.js +0 -23
  184. data/app/assets/javascripts/jquery.ui.datepicker-lt.js +0 -23
  185. data/app/assets/javascripts/jquery.ui.datepicker-lv.js +0 -23
  186. data/app/assets/javascripts/jquery.ui.datepicker-mk.js +0 -23
  187. data/app/assets/javascripts/jquery.ui.datepicker-ml.js +0 -23
  188. data/app/assets/javascripts/jquery.ui.datepicker-ms.js +0 -23
  189. data/app/assets/javascripts/jquery.ui.datepicker-nb.js +0 -22
  190. data/app/assets/javascripts/jquery.ui.datepicker-nl-BE.js +0 -23
  191. data/app/assets/javascripts/jquery.ui.datepicker-nl.js +0 -23
  192. data/app/assets/javascripts/jquery.ui.datepicker-nn.js +0 -22
  193. data/app/assets/javascripts/jquery.ui.datepicker-no.js +0 -23
  194. data/app/assets/javascripts/jquery.ui.datepicker-pl.js +0 -23
  195. data/app/assets/javascripts/jquery.ui.datepicker-pt-BR.js +0 -23
  196. data/app/assets/javascripts/jquery.ui.datepicker-pt.js +0 -22
  197. data/app/assets/javascripts/jquery.ui.datepicker-rm.js +0 -21
  198. data/app/assets/javascripts/jquery.ui.datepicker-ro.js +0 -26
  199. data/app/assets/javascripts/jquery.ui.datepicker-ru.js +0 -23
  200. data/app/assets/javascripts/jquery.ui.datepicker-sk.js +0 -23
  201. data/app/assets/javascripts/jquery.ui.datepicker-sl.js +0 -24
  202. data/app/assets/javascripts/jquery.ui.datepicker-sq.js +0 -23
  203. data/app/assets/javascripts/jquery.ui.datepicker-sr-SR.js +0 -23
  204. data/app/assets/javascripts/jquery.ui.datepicker-sr.js +0 -23
  205. data/app/assets/javascripts/jquery.ui.datepicker-sv.js +0 -23
  206. data/app/assets/javascripts/jquery.ui.datepicker-ta.js +0 -23
  207. data/app/assets/javascripts/jquery.ui.datepicker-th.js +0 -23
  208. data/app/assets/javascripts/jquery.ui.datepicker-tj.js +0 -23
  209. data/app/assets/javascripts/jquery.ui.datepicker-tr.js +0 -23
  210. data/app/assets/javascripts/jquery.ui.datepicker-uk.js +0 -24
  211. data/app/assets/javascripts/jquery.ui.datepicker-vi.js +0 -23
  212. data/app/assets/javascripts/jquery.ui.datepicker-zh-CN.js +0 -23
  213. data/app/assets/javascripts/jquery.ui.datepicker-zh-HK.js +0 -23
  214. data/app/assets/javascripts/jquery.ui.datepicker-zh-TW.js +0 -23
  215. data/app/assets/javascripts/jquery.ui.droppable.js +0 -394
  216. data/app/assets/javascripts/jquery.ui.effect.all.js +0 -14
  217. data/app/assets/stylesheets/jquery.ui.base.css.erb +0 -27
@@ -1,7 +1,7 @@
1
- //= require jquery.ui.effect
1
+ //= require jquery-ui/effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Shake 1.10.4
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( $, undefined ) {
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
- })(jQuery);
86
+ }));
@@ -1,116 +1,31 @@
1
- //= require jquery.ui.effect
1
+ //= require jquery-ui/effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Scale 1.10.4
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/scale-effect/
12
- *
13
- * Depends:
14
- * jquery.ui.effect.js
11
+ * http://api.jqueryui.com/size-effect/
15
12
  */
16
- (function( $, undefined ) {
17
-
18
- $.effects.effect.puff = function( o, done ) {
19
- var elem = $( this ),
20
- mode = $.effects.setMode( elem, o.mode || "hide" ),
21
- hide = mode === "hide",
22
- percent = parseInt( o.percent, 10 ) || 150,
23
- factor = percent / 100,
24
- original = {
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
- // Set default origin and restore for show/hide
78
- if ( mode !== "effect" ) {
79
- options.origin = origin || ["middle","center"];
80
- options.restore = true;
23
+ // Browser globals
24
+ factory( jQuery );
81
25
  }
26
+ }(function( $ ) {
82
27
 
83
- options.from = o.from || ( mode === "show" ? {
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
- })(jQuery);
235
+ }));
@@ -1,7 +1,7 @@
1
- //= require jquery.ui.effect
1
+ //= require jquery-ui/effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Slide 1.10.4
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( $, undefined ) {
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
- })(jQuery);
76
+ }));
@@ -1,7 +1,7 @@
1
- //= require jquery.ui.effect
1
+ //= require jquery-ui/effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Transfer 1.10.4
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( $, undefined ) {
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
- })(jQuery);
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.10.4
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($, undefined) {
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 2013 jQuery Foundation and other contributors
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 ( rgba ) {
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 ( hsla ) {
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.10.4",
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 ( p ) {
1259
+ Sine: function( p ) {
1254
1260
  return 1 - Math.cos( p * Math.PI / 2 );
1255
1261
  },
1256
- Circ: function ( p ) {
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 ( p ) {
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
- })(jQuery);
1295
+ return $.effects;
1296
+
1297
+ }));