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,10 +1,10 @@
1
- //= require jquery.ui.core
2
- //= require jquery.ui.widget
3
- //= require jquery.ui.menu
4
- //= require jquery.ui.position
1
+ //= require jquery-ui/core
2
+ //= require jquery-ui/widget
3
+ //= require jquery-ui/menu
4
+ //= require jquery-ui/position
5
5
 
6
6
  /*!
7
- * jQuery UI Autocomplete 1.10.4
7
+ * jQuery UI Autocomplete 1.11.0
8
8
  * http://jqueryui.com
9
9
  *
10
10
  * Copyright 2014 jQuery Foundation and other contributors
@@ -12,17 +12,27 @@
12
12
  * http://jquery.org/license
13
13
  *
14
14
  * http://api.jqueryui.com/autocomplete/
15
- *
16
- * Depends:
17
- * jquery.ui.core.js
18
- * jquery.ui.widget.js
19
- * jquery.ui.position.js
20
- * jquery.ui.menu.js
21
15
  */
22
- (function( $, undefined ) {
16
+ (function( factory ) {
17
+ if ( typeof define === "function" && define.amd ) {
18
+
19
+ // AMD. Register as an anonymous module.
20
+ define([
21
+ "jquery",
22
+ "./core",
23
+ "./widget",
24
+ "./position",
25
+ "./menu"
26
+ ], factory );
27
+ } else {
28
+
29
+ // Browser globals
30
+ factory( jQuery );
31
+ }
32
+ }(function( $ ) {
23
33
 
24
34
  $.widget( "ui.autocomplete", {
25
- version: "1.10.4",
35
+ version: "1.11.0",
26
36
  defaultElement: "<input>",
27
37
  options: {
28
38
  appendTo: null,
@@ -58,7 +68,7 @@ $.widget( "ui.autocomplete", {
58
68
  // events when we know the keydown event was used to modify the
59
69
  // search term. #7799
60
70
  var suppressKeyPress, suppressKeyPressRepeat, suppressInput,
61
- nodeName = this.element[0].nodeName.toLowerCase(),
71
+ nodeName = this.element[ 0 ].nodeName.toLowerCase(),
62
72
  isTextarea = nodeName === "textarea",
63
73
  isInput = nodeName === "input";
64
74
 
@@ -91,7 +101,7 @@ $.widget( "ui.autocomplete", {
91
101
  suppressInput = false;
92
102
  suppressKeyPressRepeat = false;
93
103
  var keyCode = $.ui.keyCode;
94
- switch( event.keyCode ) {
104
+ switch ( event.keyCode ) {
95
105
  case keyCode.PAGE_UP:
96
106
  suppressKeyPress = true;
97
107
  this._move( "previousPage", event );
@@ -109,7 +119,6 @@ $.widget( "ui.autocomplete", {
109
119
  this._keyEvent( "next", event );
110
120
  break;
111
121
  case keyCode.ENTER:
112
- case keyCode.NUMPAD_ENTER:
113
122
  // when menu is open and has focus
114
123
  if ( this.menu.active ) {
115
124
  // #6055 - Opera still allows the keypress to occur
@@ -155,7 +164,7 @@ $.widget( "ui.autocomplete", {
155
164
 
156
165
  // replicate some key handlers to allow them to repeat in Firefox and Opera
157
166
  var keyCode = $.ui.keyCode;
158
- switch( event.keyCode ) {
167
+ switch ( event.keyCode ) {
159
168
  case keyCode.PAGE_UP:
160
169
  this._move( "previousPage", event );
161
170
  break;
@@ -203,7 +212,7 @@ $.widget( "ui.autocomplete", {
203
212
  role: null
204
213
  })
205
214
  .hide()
206
- .data( "ui-menu" );
215
+ .menu( "instance" );
207
216
 
208
217
  this._on( this.menu.element, {
209
218
  mousedown: function( event ) {
@@ -236,6 +245,7 @@ $.widget( "ui.autocomplete", {
236
245
  }
237
246
  },
238
247
  menufocus: function( event, ui ) {
248
+ var label, item;
239
249
  // support: Firefox
240
250
  // Prevent accidental activation of menu items in Firefox (#7024 #9118)
241
251
  if ( this.isNewMenu ) {
@@ -251,19 +261,19 @@ $.widget( "ui.autocomplete", {
251
261
  }
252
262
  }
253
263
 
254
- var item = ui.item.data( "ui-autocomplete-item" );
264
+ item = ui.item.data( "ui-autocomplete-item" );
255
265
  if ( false !== this._trigger( "focus", event, { item: item } ) ) {
256
266
  // use value to match what will end up in the input, if it was a key event
257
267
  if ( event.originalEvent && /^key/.test( event.originalEvent.type ) ) {
258
268
  this._value( item.value );
259
269
  }
260
- } else {
261
- // Normally the input is populated with the item's value as the
262
- // menu is navigated, causing screen readers to notice a change and
263
- // announce the item. Since the focus event was canceled, this doesn't
264
- // happen, so we update the live region so that screen readers can
265
- // still notice the change and announce it.
266
- this.liveRegion.text( item.value );
270
+ }
271
+
272
+ // Announce the value in the liveRegion
273
+ label = ui.item.attr( "aria-label" ) || item.value;
274
+ if ( label && jQuery.trim( label ).length ) {
275
+ this.liveRegion.children().hide();
276
+ $( "<div>" ).text( label ).appendTo( this.liveRegion );
267
277
  }
268
278
  },
269
279
  menuselect: function( event, ui ) {
@@ -271,7 +281,7 @@ $.widget( "ui.autocomplete", {
271
281
  previous = this.previous;
272
282
 
273
283
  // only trigger when focus was lost (click on menu)
274
- if ( this.element[0] !== this.document[0].activeElement ) {
284
+ if ( this.element[ 0 ] !== this.document[ 0 ].activeElement ) {
275
285
  this.element.focus();
276
286
  this.previous = previous;
277
287
  // #6109 - IE triggers two focus events and the second
@@ -297,10 +307,11 @@ $.widget( "ui.autocomplete", {
297
307
 
298
308
  this.liveRegion = $( "<span>", {
299
309
  role: "status",
300
- "aria-live": "polite"
310
+ "aria-live": "assertive",
311
+ "aria-relevant": "additions"
301
312
  })
302
313
  .addClass( "ui-helper-hidden-accessible" )
303
- .insertBefore( this.element );
314
+ .appendTo( this.document[ 0 ].body );
304
315
 
305
316
  // turning off autocomplete prevents the browser from remembering the
306
317
  // value when navigating through history, so we re-enable autocomplete
@@ -343,12 +354,12 @@ $.widget( "ui.autocomplete", {
343
354
  this.document.find( element ).eq( 0 );
344
355
  }
345
356
 
346
- if ( !element ) {
357
+ if ( !element || !element[ 0 ] ) {
347
358
  element = this.element.closest( ".ui-front" );
348
359
  }
349
360
 
350
361
  if ( !element.length ) {
351
- element = this.document[0].body;
362
+ element = this.document[ 0 ].body;
352
363
  }
353
364
 
354
365
  return element;
@@ -357,7 +368,7 @@ $.widget( "ui.autocomplete", {
357
368
  _initSource: function() {
358
369
  var array, url,
359
370
  that = this;
360
- if ( $.isArray(this.options.source) ) {
371
+ if ( $.isArray( this.options.source ) ) {
361
372
  array = this.options.source;
362
373
  this.source = function( request, response ) {
363
374
  response( $.ui.autocomplete.filter( array, request.term ) );
@@ -376,7 +387,7 @@ $.widget( "ui.autocomplete", {
376
387
  response( data );
377
388
  },
378
389
  error: function() {
379
- response( [] );
390
+ response([]);
380
391
  }
381
392
  });
382
393
  };
@@ -388,8 +399,13 @@ $.widget( "ui.autocomplete", {
388
399
  _searchTimeout: function( event ) {
389
400
  clearTimeout( this.searching );
390
401
  this.searching = this._delay(function() {
391
- // only search if the value has changed
392
- if ( this.term !== this._value() ) {
402
+
403
+ // Search if the value has changed, or if the user retypes the same value (see #7434)
404
+ var equalValues = this.term === this._value(),
405
+ menuVisible = this.menu.element.is( ":visible" ),
406
+ modifierKey = event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
407
+
408
+ if ( !equalValues || ( equalValues && !menuVisible && !modifierKey ) ) {
393
409
  this.selectedItem = null;
394
410
  this.search( null, event );
395
411
  }
@@ -472,7 +488,7 @@ $.widget( "ui.autocomplete", {
472
488
 
473
489
  _normalize: function( items ) {
474
490
  // assume all items have the right format when the first item is complete
475
- if ( items.length && items[0].label && items[0].value ) {
491
+ if ( items.length && items[ 0 ].label && items[ 0 ].value ) {
476
492
  return items;
477
493
  }
478
494
  return $.map( items, function( item ) {
@@ -482,10 +498,10 @@ $.widget( "ui.autocomplete", {
482
498
  value: item
483
499
  };
484
500
  }
485
- return $.extend({
501
+ return $.extend( {}, item, {
486
502
  label: item.label || item.value,
487
503
  value: item.value || item.label
488
- }, item );
504
+ });
489
505
  });
490
506
  },
491
507
 
@@ -500,7 +516,7 @@ $.widget( "ui.autocomplete", {
500
516
  this._resizeMenu();
501
517
  ul.position( $.extend({
502
518
  of: this.element
503
- }, this.options.position ));
519
+ }, this.options.position ) );
504
520
 
505
521
  if ( this.options.autoFocus ) {
506
522
  this.menu.next();
@@ -529,9 +545,7 @@ $.widget( "ui.autocomplete", {
529
545
  },
530
546
 
531
547
  _renderItem: function( ul, item ) {
532
- return $( "<li>" )
533
- .append( $( "<a>" ).text( item.label ) )
534
- .appendTo( ul );
548
+ return $( "<li>" ).text( item.label ).appendTo( ul );
535
549
  },
536
550
 
537
551
  _move: function( direction, event ) {
@@ -541,7 +555,11 @@ $.widget( "ui.autocomplete", {
541
555
  }
542
556
  if ( this.menu.isFirstItem() && /^previous/.test( direction ) ||
543
557
  this.menu.isLastItem() && /^next/.test( direction ) ) {
544
- this._value( this.term );
558
+
559
+ if ( !this.isMultiLine ) {
560
+ this._value( this.term );
561
+ }
562
+
545
563
  this.menu.blur();
546
564
  return;
547
565
  }
@@ -568,17 +586,16 @@ $.widget( "ui.autocomplete", {
568
586
 
569
587
  $.extend( $.ui.autocomplete, {
570
588
  escapeRegex: function( value ) {
571
- return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
589
+ return value.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" );
572
590
  },
573
- filter: function(array, term) {
574
- var matcher = new RegExp( $.ui.autocomplete.escapeRegex(term), "i" );
575
- return $.grep( array, function(value) {
591
+ filter: function( array, term ) {
592
+ var matcher = new RegExp( $.ui.autocomplete.escapeRegex( term ), "i" );
593
+ return $.grep( array, function( value ) {
576
594
  return matcher.test( value.label || value.value || value );
577
595
  });
578
596
  }
579
597
  });
580
598
 
581
-
582
599
  // live region extension, adding a `messages` option
583
600
  // NOTE: This is an experimental API. We are still investigating
584
601
  // a full solution for string manipulation and internationalization.
@@ -604,8 +621,11 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, {
604
621
  } else {
605
622
  message = this.options.messages.noResults;
606
623
  }
607
- this.liveRegion.text( message );
624
+ this.liveRegion.children().hide();
625
+ $( "<div>" ).text( message ).appendTo( this.liveRegion );
608
626
  }
609
627
  });
610
628
 
611
- }( jQuery ));
629
+ return $.ui.autocomplete;
630
+
631
+ }));
@@ -1,8 +1,8 @@
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 Button 1.10.4
5
+ * jQuery UI Button 1.11.0
6
6
  * http://jqueryui.com
7
7
  *
8
8
  * Copyright 2014 jQuery Foundation and other contributors
@@ -10,12 +10,22 @@
10
10
  * http://jquery.org/license
11
11
  *
12
12
  * http://api.jqueryui.com/button/
13
- *
14
- * Depends:
15
- * jquery.ui.core.js
16
- * jquery.ui.widget.js
17
13
  */
18
- (function( $, undefined ) {
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( $ ) {
19
29
 
20
30
  var lastActive,
21
31
  baseClasses = "ui-button ui-widget ui-state-default ui-corner-all",
@@ -33,9 +43,9 @@ var lastActive,
33
43
  if ( name ) {
34
44
  name = name.replace( /'/g, "\\'" );
35
45
  if ( form ) {
36
- radios = $( form ).find( "[name='" + name + "']" );
46
+ radios = $( form ).find( "[name='" + name + "'][type=radio]" );
37
47
  } else {
38
- radios = $( "[name='" + name + "']", radio.ownerDocument )
48
+ radios = $( "[name='" + name + "'][type=radio]", radio.ownerDocument )
39
49
  .filter(function() {
40
50
  return !this.form;
41
51
  });
@@ -45,7 +55,7 @@ var lastActive,
45
55
  };
46
56
 
47
57
  $.widget( "ui.button", {
48
- version: "1.10.4",
58
+ version: "1.11.0",
49
59
  defaultElement: "<button>",
50
60
  options: {
51
61
  disabled: null,
@@ -187,9 +197,6 @@ $.widget( "ui.button", {
187
197
  }
188
198
  }
189
199
 
190
- // TODO: pull out $.Widget's handling for the disabled option into
191
- // $.Widget.prototype._setOptionDisabled so it's easy to proxy and can
192
- // be overridden by individual plugins
193
200
  this._setOption( "disabled", options.disabled );
194
201
  this._resetButton();
195
202
  },
@@ -253,9 +260,14 @@ $.widget( "ui.button", {
253
260
  _setOption: function( key, value ) {
254
261
  this._super( key, value );
255
262
  if ( key === "disabled" ) {
263
+ this.widget().toggleClass( "ui-state-disabled", !!value );
256
264
  this.element.prop( "disabled", !!value );
257
265
  if ( value ) {
258
- this.buttonElement.removeClass( "ui-state-focus" );
266
+ if ( this.type === "checkbox" || this.type === "radio" ) {
267
+ this.buttonElement.removeClass( "ui-state-focus" );
268
+ } else {
269
+ this.buttonElement.removeClass( "ui-state-focus ui-state-active" );
270
+ }
259
271
  }
260
272
  return;
261
273
  }
@@ -339,7 +351,7 @@ $.widget( "ui.button", {
339
351
  });
340
352
 
341
353
  $.widget( "ui.buttonset", {
342
- version: "1.10.4",
354
+ version: "1.11.0",
343
355
  options: {
344
356
  items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"
345
357
  },
@@ -361,15 +373,17 @@ $.widget( "ui.buttonset", {
361
373
  },
362
374
 
363
375
  refresh: function() {
364
- var rtl = this.element.css( "direction" ) === "rtl";
376
+ var rtl = this.element.css( "direction" ) === "rtl",
377
+ allButtons = this.element.find( this.options.items ),
378
+ existingButtons = allButtons.filter( ":ui-button" );
365
379
 
366
- this.buttons = this.element.find( this.options.items )
367
- .filter( ":ui-button" )
368
- .button( "refresh" )
369
- .end()
370
- .not( ":ui-button" )
371
- .button()
372
- .end()
380
+ // Initialize new buttons
381
+ allButtons.not( ":ui-button" ).button();
382
+
383
+ // Refresh existing buttons
384
+ existingButtons.button( "refresh" );
385
+
386
+ this.buttons = allButtons
373
387
  .map(function() {
374
388
  return $( this ).button( "widget" )[ 0 ];
375
389
  })
@@ -395,4 +409,6 @@ $.widget( "ui.buttonset", {
395
409
  }
396
410
  });
397
411
 
398
- }( jQuery ) );
412
+ return $.ui.button;
413
+
414
+ }));
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Core 1.10.4
2
+ * jQuery UI Core 1.11.0
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2014 jQuery Foundation and other contributors
@@ -8,16 +8,23 @@
8
8
  *
9
9
  * http://api.jqueryui.com/category/ui-core/
10
10
  */
11
- (function( $, undefined ) {
11
+ (function( factory ) {
12
+ if ( typeof define === "function" && define.amd ) {
12
13
 
13
- var uuid = 0,
14
- runiqueId = /^ui-id-\d+$/;
14
+ // AMD. Register as an anonymous module.
15
+ define( [ "jquery" ], factory );
16
+ } else {
17
+
18
+ // Browser globals
19
+ factory( jQuery );
20
+ }
21
+ }(function( $ ) {
15
22
 
16
23
  // $.ui might exist from components with no dependencies, e.g., $.ui.position
17
24
  $.ui = $.ui || {};
18
25
 
19
26
  $.extend( $.ui, {
20
- version: "1.10.4",
27
+ version: "1.11.0",
21
28
 
22
29
  keyCode: {
23
30
  BACKSPACE: 8,
@@ -29,12 +36,6 @@ $.extend( $.ui, {
29
36
  ESCAPE: 27,
30
37
  HOME: 36,
31
38
  LEFT: 37,
32
- NUMPAD_ADD: 107,
33
- NUMPAD_DECIMAL: 110,
34
- NUMPAD_DIVIDE: 111,
35
- NUMPAD_ENTER: 108,
36
- NUMPAD_MULTIPLY: 106,
37
- NUMPAD_SUBTRACT: 109,
38
39
  PAGE_DOWN: 34,
39
40
  PAGE_UP: 33,
40
41
  PERIOD: 190,
@@ -47,77 +48,35 @@ $.extend( $.ui, {
47
48
 
48
49
  // plugins
49
50
  $.fn.extend({
50
- focus: (function( orig ) {
51
- return function( delay, fn ) {
52
- return typeof delay === "number" ?
53
- this.each(function() {
54
- var elem = this;
55
- setTimeout(function() {
56
- $( elem ).focus();
57
- if ( fn ) {
58
- fn.call( elem );
59
- }
60
- }, delay );
61
- }) :
62
- orig.apply( this, arguments );
63
- };
64
- })( $.fn.focus ),
65
-
66
51
  scrollParent: function() {
67
- var scrollParent;
68
- if (($.ui.ie && (/(static|relative)/).test(this.css("position"))) || (/absolute/).test(this.css("position"))) {
69
- scrollParent = this.parents().filter(function() {
70
- return (/(relative|absolute|fixed)/).test($.css(this,"position")) && (/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"));
71
- }).eq(0);
72
- } else {
73
- scrollParent = this.parents().filter(function() {
74
- return (/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"));
75
- }).eq(0);
76
- }
52
+ var position = this.css( "position" ),
53
+ excludeStaticParent = position === "absolute",
54
+ scrollParent = this.parents().filter( function() {
55
+ var parent = $( this );
56
+ if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
57
+ return false;
58
+ }
59
+ return (/(auto|scroll)/).test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + parent.css( "overflow-x" ) );
60
+ }).eq( 0 );
77
61
 
78
- return (/fixed/).test(this.css("position")) || !scrollParent.length ? $(document) : scrollParent;
62
+ return position === "fixed" || !scrollParent.length ? $( this[ 0 ].ownerDocument || document ) : scrollParent;
79
63
  },
80
64
 
81
- zIndex: function( zIndex ) {
82
- if ( zIndex !== undefined ) {
83
- return this.css( "zIndex", zIndex );
84
- }
65
+ uniqueId: (function() {
66
+ var uuid = 0;
85
67
 
86
- if ( this.length ) {
87
- var elem = $( this[ 0 ] ), position, value;
88
- while ( elem.length && elem[ 0 ] !== document ) {
89
- // Ignore z-index if position is set to a value where z-index is ignored by the browser
90
- // This makes behavior of this function consistent across browsers
91
- // WebKit always returns auto if the element is positioned
92
- position = elem.css( "position" );
93
- if ( position === "absolute" || position === "relative" || position === "fixed" ) {
94
- // IE returns 0 when zIndex is not specified
95
- // other browsers return a string
96
- // we ignore the case of nested elements with an explicit value of 0
97
- // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
98
- value = parseInt( elem.css( "zIndex" ), 10 );
99
- if ( !isNaN( value ) && value !== 0 ) {
100
- return value;
101
- }
68
+ return function() {
69
+ return this.each(function() {
70
+ if ( !this.id ) {
71
+ this.id = "ui-id-" + ( ++uuid );
102
72
  }
103
- elem = elem.parent();
104
- }
105
- }
106
-
107
- return 0;
108
- },
109
-
110
- uniqueId: function() {
111
- return this.each(function() {
112
- if ( !this.id ) {
113
- this.id = "ui-id-" + (++uuid);
114
- }
115
- });
116
- },
73
+ });
74
+ };
75
+ })(),
117
76
 
118
77
  removeUniqueId: function() {
119
78
  return this.each(function() {
120
- if ( runiqueId.test( this.id ) ) {
79
+ if ( /^ui-id-\d+$/.test( this.id ) ) {
121
80
  $( this ).removeAttr( "id" );
122
81
  }
123
82
  });
@@ -245,76 +204,100 @@ if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
245
204
  })( $.fn.removeData );
246
205
  }
247
206
 
248
-
249
-
250
-
251
-
252
207
  // deprecated
253
208
  $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
254
209
 
255
- $.support.selectstart = "onselectstart" in document.createElement( "div" );
256
210
  $.fn.extend({
257
- disableSelection: function() {
258
- return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
259
- ".ui-disableSelection", function( event ) {
211
+ focus: (function( orig ) {
212
+ return function( delay, fn ) {
213
+ return typeof delay === "number" ?
214
+ this.each(function() {
215
+ var elem = this;
216
+ setTimeout(function() {
217
+ $( elem ).focus();
218
+ if ( fn ) {
219
+ fn.call( elem );
220
+ }
221
+ }, delay );
222
+ }) :
223
+ orig.apply( this, arguments );
224
+ };
225
+ })( $.fn.focus ),
226
+
227
+ disableSelection: (function() {
228
+ var eventType = "onselectstart" in document.createElement( "div" ) ?
229
+ "selectstart" :
230
+ "mousedown";
231
+
232
+ return function() {
233
+ return this.bind( eventType + ".ui-disableSelection", function( event ) {
260
234
  event.preventDefault();
261
235
  });
262
- },
236
+ };
237
+ })(),
263
238
 
264
239
  enableSelection: function() {
265
240
  return this.unbind( ".ui-disableSelection" );
266
- }
267
- });
241
+ },
268
242
 
269
- $.extend( $.ui, {
270
- // $.ui.plugin is deprecated. Use $.widget() extensions instead.
271
- plugin: {
272
- add: function( module, option, set ) {
273
- var i,
274
- proto = $.ui[ module ].prototype;
275
- for ( i in set ) {
276
- proto.plugins[ i ] = proto.plugins[ i ] || [];
277
- proto.plugins[ i ].push( [ option, set[ i ] ] );
278
- }
279
- },
280
- call: function( instance, name, args ) {
281
- var i,
282
- set = instance.plugins[ name ];
283
- if ( !set || !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) {
284
- return;
285
- }
243
+ zIndex: function( zIndex ) {
244
+ if ( zIndex !== undefined ) {
245
+ return this.css( "zIndex", zIndex );
246
+ }
286
247
 
287
- for ( i = 0; i < set.length; i++ ) {
288
- if ( instance.options[ set[ i ][ 0 ] ] ) {
289
- set[ i ][ 1 ].apply( instance.element, args );
248
+ if ( this.length ) {
249
+ var elem = $( this[ 0 ] ), position, value;
250
+ while ( elem.length && elem[ 0 ] !== document ) {
251
+ // Ignore z-index if position is set to a value where z-index is ignored by the browser
252
+ // This makes behavior of this function consistent across browsers
253
+ // WebKit always returns auto if the element is positioned
254
+ position = elem.css( "position" );
255
+ if ( position === "absolute" || position === "relative" || position === "fixed" ) {
256
+ // IE returns 0 when zIndex is not specified
257
+ // other browsers return a string
258
+ // we ignore the case of nested elements with an explicit value of 0
259
+ // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
260
+ value = parseInt( elem.css( "zIndex" ), 10 );
261
+ if ( !isNaN( value ) && value !== 0 ) {
262
+ return value;
263
+ }
290
264
  }
265
+ elem = elem.parent();
291
266
  }
292
267
  }
293
- },
294
268
 
295
- // only used by resizable
296
- hasScroll: function( el, a ) {
269
+ return 0;
270
+ }
271
+ });
297
272
 
298
- //If overflow is hidden, the element might have extra content, but the user wants to hide it
299
- if ( $( el ).css( "overflow" ) === "hidden") {
300
- return false;
273
+ // $.ui.plugin is deprecated. Use $.widget() extensions instead.
274
+ $.ui.plugin = {
275
+ add: function( module, option, set ) {
276
+ var i,
277
+ proto = $.ui[ module ].prototype;
278
+ for ( i in set ) {
279
+ proto.plugins[ i ] = proto.plugins[ i ] || [];
280
+ proto.plugins[ i ].push( [ option, set[ i ] ] );
301
281
  }
282
+ },
283
+ call: function( instance, name, args, allowDisconnected ) {
284
+ var i,
285
+ set = instance.plugins[ name ];
302
286
 
303
- var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop",
304
- has = false;
287
+ if ( !set ) {
288
+ return;
289
+ }
305
290
 
306
- if ( el[ scroll ] > 0 ) {
307
- return true;
291
+ if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
292
+ return;
308
293
  }
309
294
 
310
- // TODO: determine which cases actually cause this to happen
311
- // if the element doesn't have the scroll set, see if it's possible to
312
- // set the scroll
313
- el[ scroll ] = 1;
314
- has = ( el[ scroll ] > 0 );
315
- el[ scroll ] = 0;
316
- return has;
295
+ for ( i = 0; i < set.length; i++ ) {
296
+ if ( instance.options[ set[ i ][ 0 ] ] ) {
297
+ set[ i ][ 1 ].apply( instance.element, args );
298
+ }
299
+ }
317
300
  }
318
- });
301
+ };
319
302
 
320
- })( jQuery );
303
+ }));