jquery-ui-rails 4.0.0 → 5.0.4

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 (239) hide show
  1. data/.travis.yml +0 -1
  2. data/Gemfile +1 -1
  3. data/History.md +62 -0
  4. data/README.md +86 -74
  5. data/Rakefile +69 -37
  6. data/VERSIONS.md +36 -0
  7. data/{vendor → app}/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  8. data/{vendor → app}/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  9. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  10. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  11. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
  12. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  13. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  14. data/{vendor → app}/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  15. data/{vendor → app}/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
  16. data/{vendor → app}/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  17. data/{vendor → app}/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
  18. data/{vendor → app}/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
  19. data/{vendor → app}/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  20. data/{vendor/assets/javascripts/jquery.ui.accordion.js → app/assets/javascripts/jquery-ui/accordion.js} +90 -74
  21. data/{vendor/assets/javascripts/jquery.ui.autocomplete.js → app/assets/javascripts/jquery-ui/autocomplete.js} +105 -91
  22. data/{vendor/assets/javascripts/jquery.ui.button.js → app/assets/javascripts/jquery-ui/button.js} +60 -68
  23. data/{vendor/assets/javascripts/jquery.ui.core.js → app/assets/javascripts/jquery-ui/core.js} +112 -132
  24. data/app/assets/javascripts/jquery-ui/datepicker-af.js +37 -0
  25. data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +37 -0
  26. data/app/assets/javascripts/jquery-ui/datepicker-ar.js +38 -0
  27. data/app/assets/javascripts/jquery-ui/datepicker-az.js +37 -0
  28. data/app/assets/javascripts/jquery-ui/datepicker-be.js +37 -0
  29. data/app/assets/javascripts/jquery-ui/datepicker-bg.js +38 -0
  30. data/app/assets/javascripts/jquery-ui/datepicker-bs.js +37 -0
  31. data/app/assets/javascripts/jquery-ui/datepicker-ca.js +37 -0
  32. data/app/assets/javascripts/jquery-ui/datepicker-cs.js +37 -0
  33. data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +37 -0
  34. data/app/assets/javascripts/jquery-ui/datepicker-da.js +37 -0
  35. data/app/assets/javascripts/jquery-ui/datepicker-de.js +37 -0
  36. data/app/assets/javascripts/jquery-ui/datepicker-el.js +37 -0
  37. data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +37 -0
  38. data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +37 -0
  39. data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +37 -0
  40. data/app/assets/javascripts/jquery-ui/datepicker-eo.js +37 -0
  41. data/app/assets/javascripts/jquery-ui/datepicker-es.js +37 -0
  42. data/app/assets/javascripts/jquery-ui/datepicker-et.js +37 -0
  43. data/app/assets/javascripts/jquery-ui/datepicker-eu.js +36 -0
  44. data/app/assets/javascripts/jquery-ui/datepicker-fa.js +73 -0
  45. data/app/assets/javascripts/jquery-ui/datepicker-fi.js +37 -0
  46. data/app/assets/javascripts/jquery-ui/datepicker-fo.js +37 -0
  47. data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +37 -0
  48. data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +37 -0
  49. data/app/assets/javascripts/jquery-ui/datepicker-fr.js +39 -0
  50. data/app/assets/javascripts/jquery-ui/datepicker-gl.js +37 -0
  51. data/app/assets/javascripts/jquery-ui/datepicker-he.js +37 -0
  52. data/app/assets/javascripts/jquery-ui/datepicker-hi.js +37 -0
  53. data/app/assets/javascripts/jquery-ui/datepicker-hr.js +37 -0
  54. data/app/assets/javascripts/jquery-ui/datepicker-hu.js +36 -0
  55. data/app/assets/javascripts/jquery-ui/datepicker-hy.js +37 -0
  56. data/app/assets/javascripts/jquery-ui/datepicker-id.js +37 -0
  57. data/app/assets/javascripts/jquery-ui/datepicker-is.js +37 -0
  58. data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +37 -0
  59. data/app/assets/javascripts/jquery-ui/datepicker-it.js +37 -0
  60. data/app/assets/javascripts/jquery-ui/datepicker-ja.js +37 -0
  61. data/app/assets/javascripts/jquery-ui/datepicker-ka.js +35 -0
  62. data/app/assets/javascripts/jquery-ui/datepicker-kk.js +37 -0
  63. data/app/assets/javascripts/jquery-ui/datepicker-km.js +37 -0
  64. data/app/assets/javascripts/jquery-ui/datepicker-ko.js +37 -0
  65. data/app/assets/javascripts/jquery-ui/datepicker-ky.js +38 -0
  66. data/app/assets/javascripts/jquery-ui/datepicker-lb.js +37 -0
  67. data/app/assets/javascripts/jquery-ui/datepicker-lt.js +37 -0
  68. data/app/assets/javascripts/jquery-ui/datepicker-lv.js +37 -0
  69. data/app/assets/javascripts/jquery-ui/datepicker-mk.js +37 -0
  70. data/app/assets/javascripts/jquery-ui/datepicker-ml.js +37 -0
  71. data/app/assets/javascripts/jquery-ui/datepicker-ms.js +37 -0
  72. data/app/assets/javascripts/jquery-ui/datepicker-nb.js +36 -0
  73. data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +37 -0
  74. data/app/assets/javascripts/jquery-ui/datepicker-nl.js +37 -0
  75. data/app/assets/javascripts/jquery-ui/datepicker-nn.js +36 -0
  76. data/app/assets/javascripts/jquery-ui/datepicker-no.js +37 -0
  77. data/app/assets/javascripts/jquery-ui/datepicker-pl.js +37 -0
  78. data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +37 -0
  79. data/app/assets/javascripts/jquery-ui/datepicker-pt.js +36 -0
  80. data/app/assets/javascripts/jquery-ui/datepicker-rm.js +35 -0
  81. data/app/assets/javascripts/jquery-ui/datepicker-ro.js +40 -0
  82. data/app/assets/javascripts/jquery-ui/datepicker-ru.js +37 -0
  83. data/app/assets/javascripts/jquery-ui/datepicker-sk.js +37 -0
  84. data/app/assets/javascripts/jquery-ui/datepicker-sl.js +38 -0
  85. data/app/assets/javascripts/jquery-ui/datepicker-sq.js +37 -0
  86. data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +37 -0
  87. data/app/assets/javascripts/jquery-ui/datepicker-sr.js +37 -0
  88. data/app/assets/javascripts/jquery-ui/datepicker-sv.js +37 -0
  89. data/app/assets/javascripts/jquery-ui/datepicker-ta.js +37 -0
  90. data/app/assets/javascripts/jquery-ui/datepicker-th.js +37 -0
  91. data/app/assets/javascripts/jquery-ui/datepicker-tj.js +37 -0
  92. data/app/assets/javascripts/jquery-ui/datepicker-tr.js +37 -0
  93. data/app/assets/javascripts/jquery-ui/datepicker-uk.js +38 -0
  94. data/app/assets/javascripts/jquery-ui/datepicker-vi.js +37 -0
  95. data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +37 -0
  96. data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +37 -0
  97. data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +37 -0
  98. data/{vendor/assets/javascripts/jquery.ui.datepicker.js → app/assets/javascripts/jquery-ui/datepicker.js} +120 -80
  99. data/{vendor/assets/javascripts/jquery.ui.dialog.js → app/assets/javascripts/jquery-ui/dialog.js} +298 -190
  100. data/app/assets/javascripts/jquery-ui/draggable.js +1132 -0
  101. data/app/assets/javascripts/jquery-ui/droppable.js +418 -0
  102. data/{vendor/assets/javascripts/jquery.ui.effect-blind.js → app/assets/javascripts/jquery-ui/effect-blind.js} +21 -13
  103. data/{vendor/assets/javascripts/jquery.ui.effect-bounce.js → app/assets/javascripts/jquery-ui/effect-bounce.js} +19 -9
  104. data/{vendor/assets/javascripts/jquery.ui.effect-clip.js → app/assets/javascripts/jquery-ui/effect-clip.js} +19 -9
  105. data/{vendor/assets/javascripts/jquery.ui.effect-drop.js → app/assets/javascripts/jquery-ui/effect-drop.js} +20 -10
  106. data/{vendor/assets/javascripts/jquery.ui.effect-explode.js → app/assets/javascripts/jquery-ui/effect-explode.js} +21 -11
  107. data/app/assets/javascripts/jquery-ui/effect-fade.js +42 -0
  108. data/{vendor/assets/javascripts/jquery.ui.effect-fold.js → app/assets/javascripts/jquery-ui/effect-fold.js} +19 -9
  109. data/{vendor/assets/javascripts/jquery.ui.effect-highlight.js → app/assets/javascripts/jquery-ui/effect-highlight.js} +19 -9
  110. data/app/assets/javascripts/jquery-ui/effect-puff.js +63 -0
  111. data/{vendor/assets/javascripts/jquery.ui.effect-pulsate.js → app/assets/javascripts/jquery-ui/effect-pulsate.js} +19 -9
  112. data/app/assets/javascripts/jquery-ui/effect-scale.js +92 -0
  113. data/{vendor/assets/javascripts/jquery.ui.effect-shake.js → app/assets/javascripts/jquery-ui/effect-shake.js} +20 -10
  114. data/{vendor/assets/javascripts/jquery.ui.effect-scale.js → app/assets/javascripts/jquery-ui/effect-size.js} +20 -105
  115. data/{vendor/assets/javascripts/jquery.ui.effect-slide.js → app/assets/javascripts/jquery-ui/effect-slide.js} +19 -9
  116. data/{vendor/assets/javascripts/jquery.ui.effect-transfer.js → app/assets/javascripts/jquery-ui/effect-transfer.js} +23 -13
  117. data/app/assets/javascripts/jquery-ui/effect.all.js +16 -0
  118. data/{vendor/assets/javascripts/jquery.ui.effect.js → app/assets/javascripts/jquery-ui/effect.js} +125 -92
  119. data/{vendor/assets/javascripts/jquery.ui.menu.js → app/assets/javascripts/jquery-ui/menu.js} +127 -102
  120. data/{vendor/assets/javascripts/jquery.ui.mouse.js → app/assets/javascripts/jquery-ui/mouse.js} +57 -27
  121. data/{vendor/assets/javascripts/jquery.ui.position.js → app/assets/javascripts/jquery-ui/position.js} +47 -27
  122. data/{vendor/assets/javascripts/jquery.ui.progressbar.js → app/assets/javascripts/jquery-ui/progressbar.js} +27 -13
  123. data/{vendor/assets/javascripts/jquery.ui.resizable.js → app/assets/javascripts/jquery-ui/resizable.js} +454 -243
  124. data/{vendor/assets/javascripts/jquery.ui.selectable.js → app/assets/javascripts/jquery-ui/selectable.js} +26 -16
  125. data/app/assets/javascripts/jquery-ui/selectmenu.js +620 -0
  126. data/{vendor/assets/javascripts/jquery.ui.slider.js → app/assets/javascripts/jquery-ui/slider.js} +159 -91
  127. data/{vendor/assets/javascripts/jquery.ui.sortable.js → app/assets/javascripts/jquery-ui/sortable.js} +168 -114
  128. data/{vendor/assets/javascripts/jquery.ui.spinner.js → app/assets/javascripts/jquery-ui/spinner.js} +54 -32
  129. data/{vendor/assets/javascripts/jquery.ui.tabs.js → app/assets/javascripts/jquery-ui/tabs.js} +108 -73
  130. data/{vendor/assets/javascripts/jquery.ui.tooltip.js → app/assets/javascripts/jquery-ui/tooltip.js} +134 -75
  131. data/{vendor/assets/javascripts/jquery.ui.widget.js → app/assets/javascripts/jquery-ui/widget.js} +81 -44
  132. data/app/assets/javascripts/jquery-ui.js +37 -0
  133. data/{vendor/assets/stylesheets/jquery.ui.accordion.css.erb → app/assets/stylesheets/jquery-ui/accordion.css} +7 -9
  134. data/app/assets/stylesheets/jquery-ui/all.css +14 -0
  135. data/app/assets/stylesheets/jquery-ui/autocomplete.css +21 -0
  136. data/app/assets/stylesheets/jquery-ui/base.css +30 -0
  137. data/{vendor/assets/stylesheets/jquery.ui.button.css.erb → app/assets/stylesheets/jquery-ui/button.css} +5 -5
  138. data/{vendor/assets/stylesheets/jquery.ui.core.css.erb → app/assets/stylesheets/jquery-ui/core.css} +8 -4
  139. data/{vendor/assets/stylesheets/jquery.ui.datepicker.css.erb → app/assets/stylesheets/jquery-ui/datepicker.css} +6 -9
  140. data/{vendor/assets/stylesheets/jquery.ui.dialog.css.erb → app/assets/stylesheets/jquery-ui/dialog.css} +10 -8
  141. data/app/assets/stylesheets/jquery-ui/draggable.css +16 -0
  142. data/app/assets/stylesheets/jquery-ui/menu.css +67 -0
  143. data/app/assets/stylesheets/jquery-ui/progressbar.css +32 -0
  144. data/{vendor/assets/stylesheets/jquery.ui.resizable.css.erb → app/assets/stylesheets/jquery-ui/resizable.css} +6 -6
  145. data/app/assets/stylesheets/jquery-ui/selectable.css +21 -0
  146. data/app/assets/stylesheets/jquery-ui/selectmenu.css +64 -0
  147. data/{vendor/assets/stylesheets/jquery.ui.slider.css.erb → app/assets/stylesheets/jquery-ui/slider.css} +8 -6
  148. data/app/assets/stylesheets/jquery-ui/sortable.css +16 -0
  149. data/{vendor/assets/stylesheets/jquery.ui.spinner.css.erb → app/assets/stylesheets/jquery-ui/spinner.css} +8 -8
  150. data/{vendor/assets/stylesheets/jquery.ui.tabs.css.erb → app/assets/stylesheets/jquery-ui/tabs.css} +11 -12
  151. data/{vendor/assets/stylesheets/jquery.ui.theme.css.erb → app/assets/stylesheets/jquery-ui/theme.css.erb} +29 -11
  152. data/{vendor/assets/stylesheets/jquery.ui.tooltip.css.erb → app/assets/stylesheets/jquery-ui/tooltip.css} +6 -4
  153. data/app/assets/stylesheets/jquery-ui.css +1 -0
  154. data/lib/jquery/ui/rails/version.rb +2 -1
  155. metadata +155 -161
  156. data/vendor/assets/javascripts/jquery.ui.all.js +0 -34
  157. data/vendor/assets/javascripts/jquery.ui.datepicker-af.js +0 -23
  158. data/vendor/assets/javascripts/jquery.ui.datepicker-ar-DZ.js +0 -23
  159. data/vendor/assets/javascripts/jquery.ui.datepicker-ar.js +0 -23
  160. data/vendor/assets/javascripts/jquery.ui.datepicker-az.js +0 -23
  161. data/vendor/assets/javascripts/jquery.ui.datepicker-be.js +0 -23
  162. data/vendor/assets/javascripts/jquery.ui.datepicker-bg.js +0 -24
  163. data/vendor/assets/javascripts/jquery.ui.datepicker-bs.js +0 -23
  164. data/vendor/assets/javascripts/jquery.ui.datepicker-ca.js +0 -23
  165. data/vendor/assets/javascripts/jquery.ui.datepicker-cs.js +0 -23
  166. data/vendor/assets/javascripts/jquery.ui.datepicker-cy-GB.js +0 -23
  167. data/vendor/assets/javascripts/jquery.ui.datepicker-da.js +0 -23
  168. data/vendor/assets/javascripts/jquery.ui.datepicker-de.js +0 -23
  169. data/vendor/assets/javascripts/jquery.ui.datepicker-el.js +0 -23
  170. data/vendor/assets/javascripts/jquery.ui.datepicker-en-AU.js +0 -23
  171. data/vendor/assets/javascripts/jquery.ui.datepicker-en-GB.js +0 -23
  172. data/vendor/assets/javascripts/jquery.ui.datepicker-en-NZ.js +0 -23
  173. data/vendor/assets/javascripts/jquery.ui.datepicker-eo.js +0 -23
  174. data/vendor/assets/javascripts/jquery.ui.datepicker-es.js +0 -23
  175. data/vendor/assets/javascripts/jquery.ui.datepicker-et.js +0 -23
  176. data/vendor/assets/javascripts/jquery.ui.datepicker-eu.js +0 -23
  177. data/vendor/assets/javascripts/jquery.ui.datepicker-fa.js +0 -59
  178. data/vendor/assets/javascripts/jquery.ui.datepicker-fi.js +0 -23
  179. data/vendor/assets/javascripts/jquery.ui.datepicker-fo.js +0 -23
  180. data/vendor/assets/javascripts/jquery.ui.datepicker-fr-CA.js +0 -23
  181. data/vendor/assets/javascripts/jquery.ui.datepicker-fr-CH.js +0 -23
  182. data/vendor/assets/javascripts/jquery.ui.datepicker-fr.js +0 -25
  183. data/vendor/assets/javascripts/jquery.ui.datepicker-gl.js +0 -23
  184. data/vendor/assets/javascripts/jquery.ui.datepicker-he.js +0 -23
  185. data/vendor/assets/javascripts/jquery.ui.datepicker-hi.js +0 -23
  186. data/vendor/assets/javascripts/jquery.ui.datepicker-hr.js +0 -23
  187. data/vendor/assets/javascripts/jquery.ui.datepicker-hu.js +0 -23
  188. data/vendor/assets/javascripts/jquery.ui.datepicker-hy.js +0 -23
  189. data/vendor/assets/javascripts/jquery.ui.datepicker-id.js +0 -23
  190. data/vendor/assets/javascripts/jquery.ui.datepicker-is.js +0 -23
  191. data/vendor/assets/javascripts/jquery.ui.datepicker-it.js +0 -23
  192. data/vendor/assets/javascripts/jquery.ui.datepicker-ja.js +0 -23
  193. data/vendor/assets/javascripts/jquery.ui.datepicker-ka.js +0 -21
  194. data/vendor/assets/javascripts/jquery.ui.datepicker-kk.js +0 -23
  195. data/vendor/assets/javascripts/jquery.ui.datepicker-km.js +0 -23
  196. data/vendor/assets/javascripts/jquery.ui.datepicker-ko.js +0 -23
  197. data/vendor/assets/javascripts/jquery.ui.datepicker-ky.js +0 -24
  198. data/vendor/assets/javascripts/jquery.ui.datepicker-lb.js +0 -23
  199. data/vendor/assets/javascripts/jquery.ui.datepicker-lt.js +0 -23
  200. data/vendor/assets/javascripts/jquery.ui.datepicker-lv.js +0 -23
  201. data/vendor/assets/javascripts/jquery.ui.datepicker-mk.js +0 -23
  202. data/vendor/assets/javascripts/jquery.ui.datepicker-ml.js +0 -23
  203. data/vendor/assets/javascripts/jquery.ui.datepicker-ms.js +0 -23
  204. data/vendor/assets/javascripts/jquery.ui.datepicker-nb.js +0 -22
  205. data/vendor/assets/javascripts/jquery.ui.datepicker-nl-BE.js +0 -23
  206. data/vendor/assets/javascripts/jquery.ui.datepicker-nl.js +0 -23
  207. data/vendor/assets/javascripts/jquery.ui.datepicker-nn.js +0 -22
  208. data/vendor/assets/javascripts/jquery.ui.datepicker-no.js +0 -23
  209. data/vendor/assets/javascripts/jquery.ui.datepicker-pl.js +0 -23
  210. data/vendor/assets/javascripts/jquery.ui.datepicker-pt-BR.js +0 -23
  211. data/vendor/assets/javascripts/jquery.ui.datepicker-pt.js +0 -22
  212. data/vendor/assets/javascripts/jquery.ui.datepicker-rm.js +0 -21
  213. data/vendor/assets/javascripts/jquery.ui.datepicker-ro.js +0 -26
  214. data/vendor/assets/javascripts/jquery.ui.datepicker-ru.js +0 -23
  215. data/vendor/assets/javascripts/jquery.ui.datepicker-sk.js +0 -23
  216. data/vendor/assets/javascripts/jquery.ui.datepicker-sl.js +0 -24
  217. data/vendor/assets/javascripts/jquery.ui.datepicker-sq.js +0 -23
  218. data/vendor/assets/javascripts/jquery.ui.datepicker-sr-SR.js +0 -23
  219. data/vendor/assets/javascripts/jquery.ui.datepicker-sr.js +0 -23
  220. data/vendor/assets/javascripts/jquery.ui.datepicker-sv.js +0 -23
  221. data/vendor/assets/javascripts/jquery.ui.datepicker-ta.js +0 -23
  222. data/vendor/assets/javascripts/jquery.ui.datepicker-th.js +0 -23
  223. data/vendor/assets/javascripts/jquery.ui.datepicker-tj.js +0 -23
  224. data/vendor/assets/javascripts/jquery.ui.datepicker-tr.js +0 -23
  225. data/vendor/assets/javascripts/jquery.ui.datepicker-uk.js +0 -24
  226. data/vendor/assets/javascripts/jquery.ui.datepicker-vi.js +0 -23
  227. data/vendor/assets/javascripts/jquery.ui.datepicker-zh-CN.js +0 -23
  228. data/vendor/assets/javascripts/jquery.ui.datepicker-zh-HK.js +0 -23
  229. data/vendor/assets/javascripts/jquery.ui.datepicker-zh-TW.js +0 -23
  230. data/vendor/assets/javascripts/jquery.ui.draggable.js +0 -950
  231. data/vendor/assets/javascripts/jquery.ui.droppable.js +0 -376
  232. data/vendor/assets/javascripts/jquery.ui.effect-fade.js +0 -32
  233. data/vendor/assets/javascripts/jquery.ui.effect.all.js +0 -14
  234. data/vendor/assets/stylesheets/jquery.ui.all.css.erb +0 -14
  235. data/vendor/assets/stylesheets/jquery.ui.autocomplete.css.erb +0 -21
  236. data/vendor/assets/stylesheets/jquery.ui.base.css.erb +0 -27
  237. data/vendor/assets/stylesheets/jquery.ui.menu.css.erb +0 -81
  238. data/vendor/assets/stylesheets/jquery.ui.progressbar.css.erb +0 -32
  239. data/vendor/assets/stylesheets/jquery.ui.selectable.css.erb +0 -19
@@ -1,25 +1,35 @@
1
- //= require jquery.ui.core
2
- //= require jquery.ui.widget
3
- //= require jquery.ui.button
1
+ //= require jquery-ui/core
2
+ //= require jquery-ui/widget
3
+ //= require jquery-ui/button
4
4
 
5
5
  /*!
6
- * jQuery UI Spinner 1.10.0
6
+ * jQuery UI Spinner 1.11.3
7
7
  * http://jqueryui.com
8
8
  *
9
- * Copyright 2013 jQuery Foundation and other contributors
9
+ * Copyright jQuery Foundation and other contributors
10
10
  * Released under the MIT license.
11
11
  * http://jquery.org/license
12
12
  *
13
13
  * http://api.jqueryui.com/spinner/
14
- *
15
- * Depends:
16
- * jquery.ui.core.js
17
- * jquery.ui.widget.js
18
- * jquery.ui.button.js
19
14
  */
20
- (function( $ ) {
15
+ (function( factory ) {
16
+ if ( typeof define === "function" && define.amd ) {
17
+
18
+ // AMD. Register as an anonymous module.
19
+ define([
20
+ "jquery",
21
+ "./core",
22
+ "./widget",
23
+ "./button"
24
+ ], factory );
25
+ } else {
26
+
27
+ // Browser globals
28
+ factory( jQuery );
29
+ }
30
+ }(function( $ ) {
21
31
 
22
- function modifier( fn ) {
32
+ function spinner_modifier( fn ) {
23
33
  return function() {
24
34
  var previous = this.element.val();
25
35
  fn.apply( this, arguments );
@@ -30,8 +40,8 @@ function modifier( fn ) {
30
40
  };
31
41
  }
32
42
 
33
- $.widget( "ui.spinner", {
34
- version: "1.10.0",
43
+ return $.widget( "ui.spinner", {
44
+ version: "1.11.3",
35
45
  defaultElement: "<input>",
36
46
  widgetEventPrefix: "spin",
37
47
  options: {
@@ -59,8 +69,12 @@ $.widget( "ui.spinner", {
59
69
  this._setOption( "min", this.options.min );
60
70
  this._setOption( "step", this.options.step );
61
71
 
62
- // format the value, but don't constrain
63
- this._value( this.element.val(), true );
72
+ // Only format if there is a value, prevents the field from being marked
73
+ // as invalid in Firefox, see #9573.
74
+ if ( this.value() !== "" ) {
75
+ // Format the value, but don't constrain.
76
+ this._value( this.element.val(), true );
77
+ }
64
78
 
65
79
  this._draw();
66
80
  this._on( this._events );
@@ -106,6 +120,7 @@ $.widget( "ui.spinner", {
106
120
  return;
107
121
  }
108
122
 
123
+ this._stop();
109
124
  this._refresh();
110
125
  if ( this.previous !== this.element.val() ) {
111
126
  this._trigger( "change", event );
@@ -300,7 +315,7 @@ $.widget( "ui.spinner", {
300
315
  if ( incremental ) {
301
316
  return $.isFunction( incremental ) ?
302
317
  incremental( i ) :
303
- Math.floor( i*i*i/50000 - i*i/500 + 17*i/200 + 1 );
318
+ Math.floor( i * i * i / 50000 - i * i / 500 + 17 * i / 200 + 1 );
304
319
  }
305
320
 
306
321
  return 1;
@@ -384,19 +399,14 @@ $.widget( "ui.spinner", {
384
399
  this._super( key, value );
385
400
 
386
401
  if ( key === "disabled" ) {
387
- if ( value ) {
388
- this.element.prop( "disabled", true );
389
- this.buttons.button( "disable" );
390
- } else {
391
- this.element.prop( "disabled", false );
392
- this.buttons.button( "enable" );
393
- }
402
+ this.widget().toggleClass( "ui-state-disabled", !!value );
403
+ this.element.prop( "disabled", !!value );
404
+ this.buttons.button( value ? "disable" : "enable" );
394
405
  }
395
406
  },
396
407
 
397
- _setOptions: modifier(function( options ) {
408
+ _setOptions: spinner_modifier(function( options ) {
398
409
  this._super( options );
399
- this._value( this.element.val() );
400
410
  }),
401
411
 
402
412
  _parse: function( val ) {
@@ -425,6 +435,18 @@ $.widget( "ui.spinner", {
425
435
  });
426
436
  },
427
437
 
438
+ isValid: function() {
439
+ var value = this.value();
440
+
441
+ // null is invalid
442
+ if ( value === null ) {
443
+ return false;
444
+ }
445
+
446
+ // if value gets adjusted, it's invalid
447
+ return value === this._adjustValue( value );
448
+ },
449
+
428
450
  // update the value without triggering change
429
451
  _value: function( value, allowAny ) {
430
452
  var parsed;
@@ -453,7 +475,7 @@ $.widget( "ui.spinner", {
453
475
  this.uiSpinner.replaceWith( this.element );
454
476
  },
455
477
 
456
- stepUp: modifier(function( steps ) {
478
+ stepUp: spinner_modifier(function( steps ) {
457
479
  this._stepUp( steps );
458
480
  }),
459
481
  _stepUp: function( steps ) {
@@ -463,7 +485,7 @@ $.widget( "ui.spinner", {
463
485
  }
464
486
  },
465
487
 
466
- stepDown: modifier(function( steps ) {
488
+ stepDown: spinner_modifier(function( steps ) {
467
489
  this._stepDown( steps );
468
490
  }),
469
491
  _stepDown: function( steps ) {
@@ -473,11 +495,11 @@ $.widget( "ui.spinner", {
473
495
  }
474
496
  },
475
497
 
476
- pageUp: modifier(function( pages ) {
498
+ pageUp: spinner_modifier(function( pages ) {
477
499
  this._stepUp( (pages || 1) * this.options.page );
478
500
  }),
479
501
 
480
- pageDown: modifier(function( pages ) {
502
+ pageDown: spinner_modifier(function( pages ) {
481
503
  this._stepDown( (pages || 1) * this.options.page );
482
504
  }),
483
505
 
@@ -485,7 +507,7 @@ $.widget( "ui.spinner", {
485
507
  if ( !arguments.length ) {
486
508
  return this._parse( this.element.val() );
487
509
  }
488
- modifier( this._value ).call( this, newVal );
510
+ spinner_modifier( this._value ).call( this, newVal );
489
511
  },
490
512
 
491
513
  widget: function() {
@@ -493,4 +515,4 @@ $.widget( "ui.spinner", {
493
515
  }
494
516
  });
495
517
 
496
- }( jQuery ) );
518
+ }));
@@ -1,37 +1,34 @@
1
- //= require jquery.ui.core
2
- //= require jquery.ui.widget
1
+ //= require jquery-ui/core
2
+ //= require jquery-ui/widget
3
3
 
4
4
  /*!
5
- * jQuery UI Tabs 1.10.0
5
+ * jQuery UI Tabs 1.11.3
6
6
  * http://jqueryui.com
7
7
  *
8
- * Copyright 2013 jQuery Foundation and other contributors
8
+ * Copyright jQuery Foundation and other contributors
9
9
  * Released under the MIT license.
10
10
  * http://jquery.org/license
11
11
  *
12
12
  * http://api.jqueryui.com/tabs/
13
- *
14
- * Depends:
15
- * jquery.ui.core.js
16
- * jquery.ui.widget.js
17
13
  */
18
- (function( $, undefined ) {
19
-
20
- var tabId = 0,
21
- rhash = /#.*$/;
22
-
23
- function getNextTabId() {
24
- return ++tabId;
25
- }
26
-
27
- function isLocal( anchor ) {
28
- return anchor.hash.length > 1 &&
29
- decodeURIComponent( anchor.href.replace( rhash, "" ) ) ===
30
- decodeURIComponent( location.href.replace( rhash, "" ) );
31
- }
14
+ (function( factory ) {
15
+ if ( typeof define === "function" && define.amd ) {
16
+
17
+ // AMD. Register as an anonymous module.
18
+ define([
19
+ "jquery",
20
+ "./core",
21
+ "./widget"
22
+ ], factory );
23
+ } else {
24
+
25
+ // Browser globals
26
+ factory( jQuery );
27
+ }
28
+ }(function( $ ) {
32
29
 
33
- $.widget( "ui.tabs", {
34
- version: "1.10.0",
30
+ return $.widget( "ui.tabs", {
31
+ version: "1.11.3",
35
32
  delay: 300,
36
33
  options: {
37
34
  active: null,
@@ -48,6 +45,31 @@ $.widget( "ui.tabs", {
48
45
  load: null
49
46
  },
50
47
 
48
+ _isLocal: (function() {
49
+ var rhash = /#.*$/;
50
+
51
+ return function( anchor ) {
52
+ var anchorUrl, locationUrl;
53
+
54
+ // support: IE7
55
+ // IE7 doesn't normalize the href property when set via script (#9317)
56
+ anchor = anchor.cloneNode( false );
57
+
58
+ anchorUrl = anchor.href.replace( rhash, "" );
59
+ locationUrl = location.href.replace( rhash, "" );
60
+
61
+ // decoding may throw an error if the URL isn't UTF-8 (#9518)
62
+ try {
63
+ anchorUrl = decodeURIComponent( anchorUrl );
64
+ } catch ( error ) {}
65
+ try {
66
+ locationUrl = decodeURIComponent( locationUrl );
67
+ } catch ( error ) {}
68
+
69
+ return anchor.hash.length > 1 && anchorUrl === locationUrl;
70
+ };
71
+ })(),
72
+
51
73
  _create: function() {
52
74
  var that = this,
53
75
  options = this.options;
@@ -56,24 +78,7 @@ $.widget( "ui.tabs", {
56
78
 
57
79
  this.element
58
80
  .addClass( "ui-tabs ui-widget ui-widget-content ui-corner-all" )
59
- .toggleClass( "ui-tabs-collapsible", options.collapsible )
60
- // Prevent users from focusing disabled tabs via click
61
- .delegate( ".ui-tabs-nav > li", "mousedown" + this.eventNamespace, function( event ) {
62
- if ( $( this ).is( ".ui-state-disabled" ) ) {
63
- event.preventDefault();
64
- }
65
- })
66
- // support: IE <9
67
- // Preventing the default action in mousedown doesn't prevent IE
68
- // from focusing the element, so if the anchor gets focused, blur.
69
- // We don't have to worry about focusing the previously focused
70
- // element since clicking on a non-focusable element should focus
71
- // the body anyway.
72
- .delegate( ".ui-tabs-anchor", "focus" + this.eventNamespace, function() {
73
- if ( $( this ).closest( "li" ).is( ".ui-state-disabled" ) ) {
74
- this.blur();
75
- }
76
- });
81
+ .toggleClass( "ui-tabs-collapsible", options.collapsible );
77
82
 
78
83
  this._processTabs();
79
84
  options.active = this._initialActive();
@@ -153,7 +158,6 @@ $.widget( "ui.tabs", {
153
158
  },
154
159
 
155
160
  _tabKeydown: function( event ) {
156
- /*jshint maxcomplexity:15*/
157
161
  var focusedTab = $( this.document[0].activeElement ).closest( "li" ),
158
162
  selectedIndex = this.tabs.index( focusedTab ),
159
163
  goingForward = true;
@@ -200,8 +204,9 @@ $.widget( "ui.tabs", {
200
204
  clearTimeout( this.activating );
201
205
  selectedIndex = this._focusNextTab( selectedIndex, goingForward );
202
206
 
203
- // Navigating with control key will prevent automatic activation
204
- if ( !event.ctrlKey ) {
207
+ // Navigating with control/command key will prevent automatic activation
208
+ if ( !event.ctrlKey && !event.metaKey ) {
209
+
205
210
  // Update aria-selected immediately so that AT think the tab is already selected.
206
211
  // Otherwise AT may confuse the user by stating that they need to activate the tab,
207
212
  // but the tab will already be activated by the time the announcement finishes.
@@ -296,10 +301,6 @@ $.widget( "ui.tabs", {
296
301
  }
297
302
  },
298
303
 
299
- _tabId: function( tab ) {
300
- return tab.attr( "aria-controls" ) || "ui-tabs-" + getNextTabId();
301
- },
302
-
303
304
  _sanitizeSelector: function( hash ) {
304
305
  return hash ? hash.replace( /[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&" ) : "";
305
306
  },
@@ -346,12 +347,12 @@ $.widget( "ui.tabs", {
346
347
 
347
348
  this.tabs.not( this.active ).attr({
348
349
  "aria-selected": "false",
350
+ "aria-expanded": "false",
349
351
  tabIndex: -1
350
352
  });
351
353
  this.panels.not( this._getPanelForTab( this.active ) )
352
354
  .hide()
353
355
  .attr({
354
- "aria-expanded": "false",
355
356
  "aria-hidden": "true"
356
357
  });
357
358
 
@@ -363,23 +364,45 @@ $.widget( "ui.tabs", {
363
364
  .addClass( "ui-tabs-active ui-state-active" )
364
365
  .attr({
365
366
  "aria-selected": "true",
367
+ "aria-expanded": "true",
366
368
  tabIndex: 0
367
369
  });
368
370
  this._getPanelForTab( this.active )
369
371
  .show()
370
372
  .attr({
371
- "aria-expanded": "true",
372
373
  "aria-hidden": "false"
373
374
  });
374
375
  }
375
376
  },
376
377
 
377
378
  _processTabs: function() {
378
- var that = this;
379
+ var that = this,
380
+ prevTabs = this.tabs,
381
+ prevAnchors = this.anchors,
382
+ prevPanels = this.panels;
379
383
 
380
384
  this.tablist = this._getList()
381
385
  .addClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" )
382
- .attr( "role", "tablist" );
386
+ .attr( "role", "tablist" )
387
+
388
+ // Prevent users from focusing disabled tabs via click
389
+ .delegate( "> li", "mousedown" + this.eventNamespace, function( event ) {
390
+ if ( $( this ).is( ".ui-state-disabled" ) ) {
391
+ event.preventDefault();
392
+ }
393
+ })
394
+
395
+ // support: IE <9
396
+ // Preventing the default action in mousedown doesn't prevent IE
397
+ // from focusing the element, so if the anchor gets focused, blur.
398
+ // We don't have to worry about focusing the previously focused
399
+ // element since clicking on a non-focusable element should focus
400
+ // the body anyway.
401
+ .delegate( ".ui-tabs-anchor", "focus" + this.eventNamespace, function() {
402
+ if ( $( this ).closest( "li" ).is( ".ui-state-disabled" ) ) {
403
+ this.blur();
404
+ }
405
+ });
383
406
 
384
407
  this.tabs = this.tablist.find( "> li:has(a[href])" )
385
408
  .addClass( "ui-state-default ui-corner-top" )
@@ -406,12 +429,15 @@ $.widget( "ui.tabs", {
406
429
  originalAriaControls = tab.attr( "aria-controls" );
407
430
 
408
431
  // inline tab
409
- if ( isLocal( anchor ) ) {
432
+ if ( that._isLocal( anchor ) ) {
410
433
  selector = anchor.hash;
434
+ panelId = selector.substring( 1 );
411
435
  panel = that.element.find( that._sanitizeSelector( selector ) );
412
436
  // remote tab
413
437
  } else {
414
- panelId = that._tabId( tab );
438
+ // If the tab doesn't already have aria-controls,
439
+ // generate an id by using a throw-away element
440
+ panelId = tab.attr( "aria-controls" ) || $( {} ).uniqueId()[ 0 ].id;
415
441
  selector = "#" + panelId;
416
442
  panel = that.element.find( selector );
417
443
  if ( !panel.length ) {
@@ -428,7 +454,7 @@ $.widget( "ui.tabs", {
428
454
  tab.data( "ui-tabs-aria-controls", originalAriaControls );
429
455
  }
430
456
  tab.attr({
431
- "aria-controls": selector.substring( 1 ),
457
+ "aria-controls": panelId,
432
458
  "aria-labelledby": anchorId
433
459
  });
434
460
  panel.attr( "aria-labelledby", anchorId );
@@ -437,11 +463,18 @@ $.widget( "ui.tabs", {
437
463
  this.panels
438
464
  .addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" )
439
465
  .attr( "role", "tabpanel" );
466
+
467
+ // Avoid memory leaks (#10056)
468
+ if ( prevTabs ) {
469
+ this._off( prevTabs.not( this.tabs ) );
470
+ this._off( prevAnchors.not( this.anchors ) );
471
+ this._off( prevPanels.not( this.panels ) );
472
+ }
440
473
  },
441
474
 
442
475
  // allow overriding how to find the list for rare usage scenarios (#7715)
443
476
  _getList: function() {
444
- return this.element.find( "ol,ul" ).eq( 0 );
477
+ return this.tablist || this.element.find( "ol,ul" ).eq( 0 );
445
478
  },
446
479
 
447
480
  _createPanel: function( id ) {
@@ -477,11 +510,7 @@ $.widget( "ui.tabs", {
477
510
  },
478
511
 
479
512
  _setupEvents: function( event ) {
480
- var events = {
481
- click: function( event ) {
482
- event.preventDefault();
483
- }
484
- };
513
+ var events = {};
485
514
  if ( event ) {
486
515
  $.each( event.split(" "), function( index, eventName ) {
487
516
  events[ eventName ] = "_eventHandler";
@@ -489,6 +518,12 @@ $.widget( "ui.tabs", {
489
518
  }
490
519
 
491
520
  this._off( this.anchors.add( this.tabs ).add( this.panels ) );
521
+ // Always prevent the default action, even when disabled
522
+ this._on( true, this.anchors, {
523
+ click: function( event ) {
524
+ event.preventDefault();
525
+ }
526
+ });
492
527
  this._on( this.anchors, events );
493
528
  this._on( this.tabs, { keydown: "_tabKeydown" } );
494
529
  this._on( this.panels, { keydown: "_panelKeydown" } );
@@ -615,11 +650,11 @@ $.widget( "ui.tabs", {
615
650
  show();
616
651
  }
617
652
 
618
- toHide.attr({
619
- "aria-expanded": "false",
620
- "aria-hidden": "true"
653
+ toHide.attr( "aria-hidden", "true" );
654
+ eventData.oldTab.attr({
655
+ "aria-selected": "false",
656
+ "aria-expanded": "false"
621
657
  });
622
- eventData.oldTab.attr( "aria-selected", "false" );
623
658
  // If we're switching tabs, remove the old tab from the tab order.
624
659
  // If we're opening from collapsed state, remove the previous tab from the tab order.
625
660
  // If we're collapsing, then keep the collapsing tab in the tab order.
@@ -632,12 +667,10 @@ $.widget( "ui.tabs", {
632
667
  .attr( "tabIndex", -1 );
633
668
  }
634
669
 
635
- toShow.attr({
636
- "aria-expanded": "true",
637
- "aria-hidden": "false"
638
- });
670
+ toShow.attr( "aria-hidden", "false" );
639
671
  eventData.newTab.attr({
640
672
  "aria-selected": "true",
673
+ "aria-expanded": "true",
641
674
  tabIndex: 0
642
675
  });
643
676
  },
@@ -694,6 +727,8 @@ $.widget( "ui.tabs", {
694
727
  .removeAttr( "tabIndex" )
695
728
  .removeUniqueId();
696
729
 
730
+ this.tablist.unbind( this.eventNamespace );
731
+
697
732
  this.tabs.add( this.panels ).each(function() {
698
733
  if ( $.data( this, "ui-tabs-destroy" ) ) {
699
734
  $( this ).remove();
@@ -788,7 +823,7 @@ $.widget( "ui.tabs", {
788
823
  };
789
824
 
790
825
  // not remote
791
- if ( isLocal( anchor[ 0 ] ) ) {
826
+ if ( this._isLocal( anchor[ 0 ] ) ) {
792
827
  return;
793
828
  }
794
829
 
@@ -835,7 +870,7 @@ $.widget( "ui.tabs", {
835
870
  url: anchor.attr( "href" ),
836
871
  beforeSend: function( jqXHR, settings ) {
837
872
  return that._trigger( "beforeLoad", event,
838
- $.extend( { jqXHR : jqXHR, ajaxSettings: settings }, eventData ) );
873
+ $.extend( { jqXHR: jqXHR, ajaxSettings: settings }, eventData ) );
839
874
  }
840
875
  };
841
876
  },
@@ -846,4 +881,4 @@ $.widget( "ui.tabs", {
846
881
  }
847
882
  });
848
883
 
849
- })( jQuery );
884
+ }));