sn-jquery-ui-rails 6.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.gitmodules +3 -0
  4. data/.travis.yml +2 -0
  5. data/Gemfile +3 -0
  6. data/History.md +168 -0
  7. data/License.txt +2 -0
  8. data/README.md +311 -0
  9. data/Rakefile +258 -0
  10. data/VERSIONS.md +39 -0
  11. data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  12. data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
  13. data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
  14. data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
  15. data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
  16. data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
  17. data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
  18. data/app/assets/javascripts/jquery-ui/core.js +15 -0
  19. data/app/assets/javascripts/jquery-ui/data.js +41 -0
  20. data/app/assets/javascripts/jquery-ui/disable-selection.js +48 -0
  21. data/app/assets/javascripts/jquery-ui/effect.all.js +15 -0
  22. data/app/assets/javascripts/jquery-ui/effect.js +1637 -0
  23. data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +73 -0
  24. data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +113 -0
  25. data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +68 -0
  26. data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +72 -0
  27. data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +114 -0
  28. data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +50 -0
  29. data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +92 -0
  30. data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +60 -0
  31. data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +46 -0
  32. data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +67 -0
  33. data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +60 -0
  34. data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +77 -0
  35. data/app/assets/javascripts/jquery-ui/effects/effect-size.js +194 -0
  36. data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +79 -0
  37. data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +43 -0
  38. data/app/assets/javascripts/jquery-ui/escape-selector.js +23 -0
  39. data/app/assets/javascripts/jquery-ui/focusable.js +86 -0
  40. data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +80 -0
  41. data/app/assets/javascripts/jquery-ui/form.js +22 -0
  42. data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +37 -0
  43. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +39 -0
  44. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +39 -0
  45. data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +37 -0
  46. data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +37 -0
  47. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +38 -0
  48. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +37 -0
  49. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +37 -0
  50. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +37 -0
  51. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +45 -0
  52. data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +37 -0
  53. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +37 -0
  54. data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +37 -0
  55. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +37 -0
  56. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +37 -0
  57. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +37 -0
  58. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +37 -0
  59. data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +37 -0
  60. data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +45 -0
  61. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +36 -0
  62. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +73 -0
  63. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +37 -0
  64. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +45 -0
  65. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +37 -0
  66. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +37 -0
  67. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +39 -0
  68. data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +37 -0
  69. data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +37 -0
  70. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +37 -0
  71. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +37 -0
  72. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +36 -0
  73. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +37 -0
  74. data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +37 -0
  75. data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +45 -0
  76. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +37 -0
  77. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +37 -0
  78. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +37 -0
  79. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +48 -0
  80. data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +37 -0
  81. data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +37 -0
  82. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +37 -0
  83. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +38 -0
  84. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +45 -0
  85. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +45 -0
  86. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +45 -0
  87. data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +37 -0
  88. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +37 -0
  89. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +37 -0
  90. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +49 -0
  91. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +37 -0
  92. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +37 -0
  93. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +49 -0
  94. data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +50 -0
  95. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +37 -0
  96. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +45 -0
  97. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +44 -0
  98. data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +61 -0
  99. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +40 -0
  100. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +37 -0
  101. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +37 -0
  102. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +38 -0
  103. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +37 -0
  104. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +37 -0
  105. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +37 -0
  106. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +37 -0
  107. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +53 -0
  108. data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +37 -0
  109. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +37 -0
  110. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +37 -0
  111. data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +38 -0
  112. data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +37 -0
  113. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +37 -0
  114. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +37 -0
  115. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +37 -0
  116. data/app/assets/javascripts/jquery-ui/ie.js +17 -0
  117. data/app/assets/javascripts/jquery-ui/jquery-1-7.js +91 -0
  118. data/app/assets/javascripts/jquery-ui/keycode.js +47 -0
  119. data/app/assets/javascripts/jquery-ui/labels.js +65 -0
  120. data/app/assets/javascripts/jquery-ui/plugin.js +46 -0
  121. data/app/assets/javascripts/jquery-ui/position.js +500 -0
  122. data/app/assets/javascripts/jquery-ui/safe-active-element.js +42 -0
  123. data/app/assets/javascripts/jquery-ui/safe-blur.js +23 -0
  124. data/app/assets/javascripts/jquery-ui/scroll-parent.js +47 -0
  125. data/app/assets/javascripts/jquery-ui/tabbable.js +38 -0
  126. data/app/assets/javascripts/jquery-ui/unique-id.js +51 -0
  127. data/app/assets/javascripts/jquery-ui/version.js +17 -0
  128. data/app/assets/javascripts/jquery-ui/widget.js +735 -0
  129. data/app/assets/javascripts/jquery-ui/widgets/accordion.js +618 -0
  130. data/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +689 -0
  131. data/app/assets/javascripts/jquery-ui/widgets/button.js +391 -0
  132. data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +291 -0
  133. data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +300 -0
  134. data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2123 -0
  135. data/app/assets/javascripts/jquery-ui/widgets/dialog.js +954 -0
  136. data/app/assets/javascripts/jquery-ui/widgets/draggable.js +1259 -0
  137. data/app/assets/javascripts/jquery-ui/widgets/droppable.js +502 -0
  138. data/app/assets/javascripts/jquery-ui/widgets/menu.js +680 -0
  139. data/app/assets/javascripts/jquery-ui/widgets/mouse.js +230 -0
  140. data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +181 -0
  141. data/app/assets/javascripts/jquery-ui/widgets/resizable.js +1207 -0
  142. data/app/assets/javascripts/jquery-ui/widgets/selectable.js +314 -0
  143. data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +697 -0
  144. data/app/assets/javascripts/jquery-ui/widgets/slider.js +757 -0
  145. data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1561 -0
  146. data/app/assets/javascripts/jquery-ui/widgets/spinner.js +581 -0
  147. data/app/assets/javascripts/jquery-ui/widgets/tabs.js +931 -0
  148. data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +526 -0
  149. data/app/assets/javascripts/jquery-ui.js +56 -0
  150. data/app/assets/stylesheets/jquery-ui/accordion.css +26 -0
  151. data/app/assets/stylesheets/jquery-ui/all.css +14 -0
  152. data/app/assets/stylesheets/jquery-ui/autocomplete.css +19 -0
  153. data/app/assets/stylesheets/jquery-ui/base.css +32 -0
  154. data/app/assets/stylesheets/jquery-ui/button.css +85 -0
  155. data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
  156. data/app/assets/stylesheets/jquery-ui/controlgroup.css +68 -0
  157. data/app/assets/stylesheets/jquery-ui/core.css +100 -0
  158. data/app/assets/stylesheets/jquery-ui/datepicker.css +188 -0
  159. data/app/assets/stylesheets/jquery-ui/dialog.css +104 -0
  160. data/app/assets/stylesheets/jquery-ui/draggable.css +15 -0
  161. data/app/assets/stylesheets/jquery-ui/menu.css +67 -0
  162. data/app/assets/stylesheets/jquery-ui/progressbar.css +31 -0
  163. data/app/assets/stylesheets/jquery-ui/resizable.css +81 -0
  164. data/app/assets/stylesheets/jquery-ui/selectable.css +20 -0
  165. data/app/assets/stylesheets/jquery-ui/selectmenu.css +53 -0
  166. data/app/assets/stylesheets/jquery-ui/slider.css +78 -0
  167. data/app/assets/stylesheets/jquery-ui/sortable.css +15 -0
  168. data/app/assets/stylesheets/jquery-ui/spinner.css +55 -0
  169. data/app/assets/stylesheets/jquery-ui/tabs.css +54 -0
  170. data/app/assets/stylesheets/jquery-ui/theme.css.erb +453 -0
  171. data/app/assets/stylesheets/jquery-ui/tooltip.css +22 -0
  172. data/app/assets/stylesheets/jquery-ui.css +1 -0
  173. data/lib/jquery/ui/rails/engine.rb +8 -0
  174. data/lib/jquery/ui/rails/version.rb +8 -0
  175. data/lib/jquery/ui/rails.rb +2 -0
  176. data/lib/jquery-ui-rails.rb +1 -0
  177. metadata +248 -0
@@ -0,0 +1,67 @@
1
+ //= require jquery-ui/version
2
+ //= require jquery-ui/effect
3
+
4
+ /*!
5
+ * jQuery UI Effects Pulsate 1.12.1
6
+ * http://jqueryui.com
7
+ *
8
+ * Copyright jQuery Foundation and other contributors
9
+ * Released under the MIT license.
10
+ * http://jquery.org/license
11
+ */
12
+
13
+ //>>label: Pulsate Effect
14
+ //>>group: Effects
15
+ //>>description: Pulsates an element n times by changing the opacity to zero and back.
16
+ //>>docs: http://api.jqueryui.com/pulsate-effect/
17
+ //>>demos: http://jqueryui.com/effect/
18
+
19
+ ( function( factory ) {
20
+ if ( typeof define === "function" && define.amd ) {
21
+
22
+ // AMD. Register as an anonymous module.
23
+ define( [
24
+ "jquery",
25
+ "../version",
26
+ "../effect"
27
+ ], factory );
28
+ } else {
29
+
30
+ // Browser globals
31
+ factory( jQuery );
32
+ }
33
+ }( function( $ ) {
34
+
35
+ return $.effects.define( "pulsate", "show", function( options, done ) {
36
+ var element = $( this ),
37
+ mode = options.mode,
38
+ show = mode === "show",
39
+ hide = mode === "hide",
40
+ showhide = show || hide,
41
+
42
+ // Showing or hiding leaves off the "last" animation
43
+ anims = ( ( options.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ),
44
+ duration = options.duration / anims,
45
+ animateTo = 0,
46
+ i = 1,
47
+ queuelen = element.queue().length;
48
+
49
+ if ( show || !element.is( ":visible" ) ) {
50
+ element.css( "opacity", 0 ).show();
51
+ animateTo = 1;
52
+ }
53
+
54
+ // Anims - 1 opacity "toggles"
55
+ for ( ; i < anims; i++ ) {
56
+ element.animate( { opacity: animateTo }, duration, options.easing );
57
+ animateTo = 1 - animateTo;
58
+ }
59
+
60
+ element.animate( { opacity: animateTo }, duration, options.easing );
61
+
62
+ element.queue( done );
63
+
64
+ $.effects.unshift( element, queuelen, anims + 1 );
65
+ } );
66
+
67
+ } ) );
@@ -0,0 +1,60 @@
1
+ //= require jquery-ui/version
2
+ //= require jquery-ui/effect
3
+ //= require jquery-ui/effects/effect-size
4
+
5
+ /*!
6
+ * jQuery UI Effects Scale 1.12.1
7
+ * http://jqueryui.com
8
+ *
9
+ * Copyright jQuery Foundation and other contributors
10
+ * Released under the MIT license.
11
+ * http://jquery.org/license
12
+ */
13
+
14
+ //>>label: Scale Effect
15
+ //>>group: Effects
16
+ //>>description: Grows or shrinks an element and its content.
17
+ //>>docs: http://api.jqueryui.com/scale-effect/
18
+ //>>demos: http://jqueryui.com/effect/
19
+
20
+ ( function( factory ) {
21
+ if ( typeof define === "function" && define.amd ) {
22
+
23
+ // AMD. Register as an anonymous module.
24
+ define( [
25
+ "jquery",
26
+ "../version",
27
+ "../effect",
28
+ "./effect-size"
29
+ ], factory );
30
+ } else {
31
+
32
+ // Browser globals
33
+ factory( jQuery );
34
+ }
35
+ }( function( $ ) {
36
+
37
+ return $.effects.define( "scale", function( options, done ) {
38
+
39
+ // Create element
40
+ var el = $( this ),
41
+ mode = options.mode,
42
+ percent = parseInt( options.percent, 10 ) ||
43
+ ( parseInt( options.percent, 10 ) === 0 ? 0 : ( mode !== "effect" ? 0 : 100 ) ),
44
+
45
+ newOptions = $.extend( true, {
46
+ from: $.effects.scaledDimensions( el ),
47
+ to: $.effects.scaledDimensions( el, percent, options.direction || "both" ),
48
+ origin: options.origin || [ "middle", "center" ]
49
+ }, options );
50
+
51
+ // Fade option to support puff
52
+ if ( options.fade ) {
53
+ newOptions.from.opacity = 1;
54
+ newOptions.to.opacity = 0;
55
+ }
56
+
57
+ $.effects.effect.size.call( this, newOptions, done );
58
+ } );
59
+
60
+ } ) );
@@ -0,0 +1,77 @@
1
+ //= require jquery-ui/version
2
+ //= require jquery-ui/effect
3
+
4
+ /*!
5
+ * jQuery UI Effects Shake 1.12.1
6
+ * http://jqueryui.com
7
+ *
8
+ * Copyright jQuery Foundation and other contributors
9
+ * Released under the MIT license.
10
+ * http://jquery.org/license
11
+ */
12
+
13
+ //>>label: Shake Effect
14
+ //>>group: Effects
15
+ //>>description: Shakes an element horizontally or vertically n times.
16
+ //>>docs: http://api.jqueryui.com/shake-effect/
17
+ //>>demos: http://jqueryui.com/effect/
18
+
19
+ ( function( factory ) {
20
+ if ( typeof define === "function" && define.amd ) {
21
+
22
+ // AMD. Register as an anonymous module.
23
+ define( [
24
+ "jquery",
25
+ "../version",
26
+ "../effect"
27
+ ], factory );
28
+ } else {
29
+
30
+ // Browser globals
31
+ factory( jQuery );
32
+ }
33
+ }( function( $ ) {
34
+
35
+ return $.effects.define( "shake", function( options, done ) {
36
+
37
+ var i = 1,
38
+ element = $( this ),
39
+ direction = options.direction || "left",
40
+ distance = options.distance || 20,
41
+ times = options.times || 3,
42
+ anims = times * 2 + 1,
43
+ speed = Math.round( options.duration / anims ),
44
+ ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
45
+ positiveMotion = ( direction === "up" || direction === "left" ),
46
+ animation = {},
47
+ animation1 = {},
48
+ animation2 = {},
49
+
50
+ queuelen = element.queue().length;
51
+
52
+ $.effects.createPlaceholder( element );
53
+
54
+ // Animation
55
+ animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance;
56
+ animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2;
57
+ animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2;
58
+
59
+ // Animate
60
+ element.animate( animation, speed, options.easing );
61
+
62
+ // Shakes
63
+ for ( ; i < times; i++ ) {
64
+ element
65
+ .animate( animation1, speed, options.easing )
66
+ .animate( animation2, speed, options.easing );
67
+ }
68
+
69
+ element
70
+ .animate( animation1, speed, options.easing )
71
+ .animate( animation, speed / 2, options.easing )
72
+ .queue( done );
73
+
74
+ $.effects.unshift( element, queuelen, anims + 1 );
75
+ } );
76
+
77
+ } ) );
@@ -0,0 +1,194 @@
1
+ //= require jquery-ui/version
2
+ //= require jquery-ui/effect
3
+
4
+ /*!
5
+ * jQuery UI Effects Size 1.12.1
6
+ * http://jqueryui.com
7
+ *
8
+ * Copyright jQuery Foundation and other contributors
9
+ * Released under the MIT license.
10
+ * http://jquery.org/license
11
+ */
12
+
13
+ //>>label: Size Effect
14
+ //>>group: Effects
15
+ //>>description: Resize an element to a specified width and height.
16
+ //>>docs: http://api.jqueryui.com/size-effect/
17
+ //>>demos: http://jqueryui.com/effect/
18
+
19
+ ( function( factory ) {
20
+ if ( typeof define === "function" && define.amd ) {
21
+
22
+ // AMD. Register as an anonymous module.
23
+ define( [
24
+ "jquery",
25
+ "../version",
26
+ "../effect"
27
+ ], factory );
28
+ } else {
29
+
30
+ // Browser globals
31
+ factory( jQuery );
32
+ }
33
+ }( function( $ ) {
34
+
35
+ return $.effects.define( "size", function( options, done ) {
36
+
37
+ // Create element
38
+ var baseline, factor, temp,
39
+ element = $( this ),
40
+
41
+ // Copy for children
42
+ cProps = [ "fontSize" ],
43
+ vProps = [ "borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom" ],
44
+ hProps = [ "borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight" ],
45
+
46
+ // Set options
47
+ mode = options.mode,
48
+ restore = mode !== "effect",
49
+ scale = options.scale || "both",
50
+ origin = options.origin || [ "middle", "center" ],
51
+ position = element.css( "position" ),
52
+ pos = element.position(),
53
+ original = $.effects.scaledDimensions( element ),
54
+ from = options.from || original,
55
+ to = options.to || $.effects.scaledDimensions( element, 0 );
56
+
57
+ $.effects.createPlaceholder( element );
58
+
59
+ if ( mode === "show" ) {
60
+ temp = from;
61
+ from = to;
62
+ to = temp;
63
+ }
64
+
65
+ // Set scaling factor
66
+ factor = {
67
+ from: {
68
+ y: from.height / original.height,
69
+ x: from.width / original.width
70
+ },
71
+ to: {
72
+ y: to.height / original.height,
73
+ x: to.width / original.width
74
+ }
75
+ };
76
+
77
+ // Scale the css box
78
+ if ( scale === "box" || scale === "both" ) {
79
+
80
+ // Vertical props scaling
81
+ if ( factor.from.y !== factor.to.y ) {
82
+ from = $.effects.setTransition( element, vProps, factor.from.y, from );
83
+ to = $.effects.setTransition( element, vProps, factor.to.y, to );
84
+ }
85
+
86
+ // Horizontal props scaling
87
+ if ( factor.from.x !== factor.to.x ) {
88
+ from = $.effects.setTransition( element, hProps, factor.from.x, from );
89
+ to = $.effects.setTransition( element, hProps, factor.to.x, to );
90
+ }
91
+ }
92
+
93
+ // Scale the content
94
+ if ( scale === "content" || scale === "both" ) {
95
+
96
+ // Vertical props scaling
97
+ if ( factor.from.y !== factor.to.y ) {
98
+ from = $.effects.setTransition( element, cProps, factor.from.y, from );
99
+ to = $.effects.setTransition( element, cProps, factor.to.y, to );
100
+ }
101
+ }
102
+
103
+ // Adjust the position properties based on the provided origin points
104
+ if ( origin ) {
105
+ baseline = $.effects.getBaseline( origin, original );
106
+ from.top = ( original.outerHeight - from.outerHeight ) * baseline.y + pos.top;
107
+ from.left = ( original.outerWidth - from.outerWidth ) * baseline.x + pos.left;
108
+ to.top = ( original.outerHeight - to.outerHeight ) * baseline.y + pos.top;
109
+ to.left = ( original.outerWidth - to.outerWidth ) * baseline.x + pos.left;
110
+ }
111
+ element.css( from );
112
+
113
+ // Animate the children if desired
114
+ if ( scale === "content" || scale === "both" ) {
115
+
116
+ vProps = vProps.concat( [ "marginTop", "marginBottom" ] ).concat( cProps );
117
+ hProps = hProps.concat( [ "marginLeft", "marginRight" ] );
118
+
119
+ // Only animate children with width attributes specified
120
+ // TODO: is this right? should we include anything with css width specified as well
121
+ element.find( "*[width]" ).each( function() {
122
+ var child = $( this ),
123
+ childOriginal = $.effects.scaledDimensions( child ),
124
+ childFrom = {
125
+ height: childOriginal.height * factor.from.y,
126
+ width: childOriginal.width * factor.from.x,
127
+ outerHeight: childOriginal.outerHeight * factor.from.y,
128
+ outerWidth: childOriginal.outerWidth * factor.from.x
129
+ },
130
+ childTo = {
131
+ height: childOriginal.height * factor.to.y,
132
+ width: childOriginal.width * factor.to.x,
133
+ outerHeight: childOriginal.height * factor.to.y,
134
+ outerWidth: childOriginal.width * factor.to.x
135
+ };
136
+
137
+ // Vertical props scaling
138
+ if ( factor.from.y !== factor.to.y ) {
139
+ childFrom = $.effects.setTransition( child, vProps, factor.from.y, childFrom );
140
+ childTo = $.effects.setTransition( child, vProps, factor.to.y, childTo );
141
+ }
142
+
143
+ // Horizontal props scaling
144
+ if ( factor.from.x !== factor.to.x ) {
145
+ childFrom = $.effects.setTransition( child, hProps, factor.from.x, childFrom );
146
+ childTo = $.effects.setTransition( child, hProps, factor.to.x, childTo );
147
+ }
148
+
149
+ if ( restore ) {
150
+ $.effects.saveStyle( child );
151
+ }
152
+
153
+ // Animate children
154
+ child.css( childFrom );
155
+ child.animate( childTo, options.duration, options.easing, function() {
156
+
157
+ // Restore children
158
+ if ( restore ) {
159
+ $.effects.restoreStyle( child );
160
+ }
161
+ } );
162
+ } );
163
+ }
164
+
165
+ // Animate
166
+ element.animate( to, {
167
+ queue: false,
168
+ duration: options.duration,
169
+ easing: options.easing,
170
+ complete: function() {
171
+
172
+ var offset = element.offset();
173
+
174
+ if ( to.opacity === 0 ) {
175
+ element.css( "opacity", from.opacity );
176
+ }
177
+
178
+ if ( !restore ) {
179
+ element
180
+ .css( "position", position === "static" ? "relative" : position )
181
+ .offset( offset );
182
+
183
+ // Need to save style here so that automatic style restoration
184
+ // doesn't restore to the original styles from before the animation.
185
+ $.effects.saveStyle( element );
186
+ }
187
+
188
+ done();
189
+ }
190
+ } );
191
+
192
+ } );
193
+
194
+ } ) );
@@ -0,0 +1,79 @@
1
+ //= require jquery-ui/version
2
+ //= require jquery-ui/effect
3
+
4
+ /*!
5
+ * jQuery UI Effects Slide 1.12.1
6
+ * http://jqueryui.com
7
+ *
8
+ * Copyright jQuery Foundation and other contributors
9
+ * Released under the MIT license.
10
+ * http://jquery.org/license
11
+ */
12
+
13
+ //>>label: Slide Effect
14
+ //>>group: Effects
15
+ //>>description: Slides an element in and out of the viewport.
16
+ //>>docs: http://api.jqueryui.com/slide-effect/
17
+ //>>demos: http://jqueryui.com/effect/
18
+
19
+ ( function( factory ) {
20
+ if ( typeof define === "function" && define.amd ) {
21
+
22
+ // AMD. Register as an anonymous module.
23
+ define( [
24
+ "jquery",
25
+ "../version",
26
+ "../effect"
27
+ ], factory );
28
+ } else {
29
+
30
+ // Browser globals
31
+ factory( jQuery );
32
+ }
33
+ }( function( $ ) {
34
+
35
+ return $.effects.define( "slide", "show", function( options, done ) {
36
+ var startClip, startRef,
37
+ element = $( this ),
38
+ map = {
39
+ up: [ "bottom", "top" ],
40
+ down: [ "top", "bottom" ],
41
+ left: [ "right", "left" ],
42
+ right: [ "left", "right" ]
43
+ },
44
+ mode = options.mode,
45
+ direction = options.direction || "left",
46
+ ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
47
+ positiveMotion = ( direction === "up" || direction === "left" ),
48
+ distance = options.distance ||
49
+ element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ),
50
+ animation = {};
51
+
52
+ $.effects.createPlaceholder( element );
53
+
54
+ startClip = element.cssClip();
55
+ startRef = element.position()[ ref ];
56
+
57
+ // Define hide animation
58
+ animation[ ref ] = ( positiveMotion ? -1 : 1 ) * distance + startRef;
59
+ animation.clip = element.cssClip();
60
+ animation.clip[ map[ direction ][ 1 ] ] = animation.clip[ map[ direction ][ 0 ] ];
61
+
62
+ // Reverse the animation if we're showing
63
+ if ( mode === "show" ) {
64
+ element.cssClip( animation.clip );
65
+ element.css( ref, animation[ ref ] );
66
+ animation.clip = startClip;
67
+ animation[ ref ] = startRef;
68
+ }
69
+
70
+ // Actually animate
71
+ element.animate( animation, {
72
+ queue: false,
73
+ duration: options.duration,
74
+ easing: options.easing,
75
+ complete: done
76
+ } );
77
+ } );
78
+
79
+ } ) );
@@ -0,0 +1,43 @@
1
+ //= require jquery-ui/version
2
+ //= require jquery-ui/effect
3
+
4
+ /*!
5
+ * jQuery UI Effects Transfer 1.12.1
6
+ * http://jqueryui.com
7
+ *
8
+ * Copyright jQuery Foundation and other contributors
9
+ * Released under the MIT license.
10
+ * http://jquery.org/license
11
+ */
12
+
13
+ //>>label: Transfer Effect
14
+ //>>group: Effects
15
+ //>>description: Displays a transfer effect from one element to another.
16
+ //>>docs: http://api.jqueryui.com/transfer-effect/
17
+ //>>demos: http://jqueryui.com/effect/
18
+
19
+ ( function( factory ) {
20
+ if ( typeof define === "function" && define.amd ) {
21
+
22
+ // AMD. Register as an anonymous module.
23
+ define( [
24
+ "jquery",
25
+ "../version",
26
+ "../effect"
27
+ ], factory );
28
+ } else {
29
+
30
+ // Browser globals
31
+ factory( jQuery );
32
+ }
33
+ }( function( $ ) {
34
+
35
+ var effect;
36
+ if ( $.uiBackCompat !== false ) {
37
+ effect = $.effects.define( "transfer", function( options, done ) {
38
+ $( this ).transfer( options, done );
39
+ } );
40
+ }
41
+ return effect;
42
+
43
+ } ) );
@@ -0,0 +1,23 @@
1
+ //= require jquery-ui/version
2
+
3
+ ( function( factory ) {
4
+ if ( typeof define === "function" && define.amd ) {
5
+
6
+ // AMD. Register as an anonymous module.
7
+ define( [ "jquery", "./version" ], factory );
8
+ } else {
9
+
10
+ // Browser globals
11
+ factory( jQuery );
12
+ }
13
+ } ( function( $ ) {
14
+
15
+ // Internal use only
16
+ return $.ui.escapeSelector = ( function() {
17
+ var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;
18
+ return function( selector ) {
19
+ return selector.replace( selectorEscape, "\\$1" );
20
+ };
21
+ } )();
22
+
23
+ } ) );
@@ -0,0 +1,86 @@
1
+ //= require jquery-ui/version
2
+
3
+ /*!
4
+ * jQuery UI Focusable 1.12.1
5
+ * http://jqueryui.com
6
+ *
7
+ * Copyright jQuery Foundation and other contributors
8
+ * Released under the MIT license.
9
+ * http://jquery.org/license
10
+ */
11
+
12
+ //>>label: :focusable Selector
13
+ //>>group: Core
14
+ //>>description: Selects elements which can be focused.
15
+ //>>docs: http://api.jqueryui.com/focusable-selector/
16
+
17
+ ( function( factory ) {
18
+ if ( typeof define === "function" && define.amd ) {
19
+
20
+ // AMD. Register as an anonymous module.
21
+ define( [ "jquery", "./version" ], factory );
22
+ } else {
23
+
24
+ // Browser globals
25
+ factory( jQuery );
26
+ }
27
+ } ( function( $ ) {
28
+
29
+ // Selectors
30
+ $.ui.focusable = function( element, hasTabindex ) {
31
+ var map, mapName, img, focusableIfVisible, fieldset,
32
+ nodeName = element.nodeName.toLowerCase();
33
+
34
+ if ( "area" === nodeName ) {
35
+ map = element.parentNode;
36
+ mapName = map.name;
37
+ if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
38
+ return false;
39
+ }
40
+ img = $( "img[usemap='#" + mapName + "']" );
41
+ return img.length > 0 && img.is( ":visible" );
42
+ }
43
+
44
+ if ( /^(input|select|textarea|button|object)$/.test( nodeName ) ) {
45
+ focusableIfVisible = !element.disabled;
46
+
47
+ if ( focusableIfVisible ) {
48
+
49
+ // Form controls within a disabled fieldset are disabled.
50
+ // However, controls within the fieldset's legend do not get disabled.
51
+ // Since controls generally aren't placed inside legends, we skip
52
+ // this portion of the check.
53
+ fieldset = $( element ).closest( "fieldset" )[ 0 ];
54
+ if ( fieldset ) {
55
+ focusableIfVisible = !fieldset.disabled;
56
+ }
57
+ }
58
+ } else if ( "a" === nodeName ) {
59
+ focusableIfVisible = element.href || hasTabindex;
60
+ } else {
61
+ focusableIfVisible = hasTabindex;
62
+ }
63
+
64
+ return focusableIfVisible && $( element ).is( ":visible" ) && visible( $( element ) );
65
+ };
66
+
67
+ // Support: IE 8 only
68
+ // IE 8 doesn't resolve inherit to visible/hidden for computed values
69
+ function visible( element ) {
70
+ var visibility = element.css( "visibility" );
71
+ while ( visibility === "inherit" ) {
72
+ element = element.parent();
73
+ visibility = element.css( "visibility" );
74
+ }
75
+ return visibility !== "hidden";
76
+ }
77
+
78
+ $.extend( $.expr[ ":" ], {
79
+ focusable: function( element ) {
80
+ return $.ui.focusable( element, $.attr( element, "tabindex" ) != null );
81
+ }
82
+ } );
83
+
84
+ return $.ui.focusable;
85
+
86
+ } ) );