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,9 +1,9 @@
1
- //= require jquery.ui.core
2
- //= require jquery.ui.widget
3
- //= require jquery.ui.mouse
1
+ //= require jquery-ui/core
2
+ //= require jquery-ui/widget
3
+ //= require jquery-ui/mouse
4
4
 
5
5
  /*!
6
- * jQuery UI Slider 1.10.4
6
+ * jQuery UI Slider 1.11.0
7
7
  * http://jqueryui.com
8
8
  *
9
9
  * Copyright 2014 jQuery Foundation and other contributors
@@ -11,20 +11,26 @@
11
11
  * http://jquery.org/license
12
12
  *
13
13
  * http://api.jqueryui.com/slider/
14
- *
15
- * Depends:
16
- * jquery.ui.core.js
17
- * jquery.ui.mouse.js
18
- * jquery.ui.widget.js
19
14
  */
20
- (function( $, undefined ) {
21
-
22
- // number of pages in a slider
23
- // (how many times can you page up/down to go through the whole range)
24
- var numPages = 5;
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
+ "./mouse",
23
+ "./widget"
24
+ ], factory );
25
+ } else {
26
+
27
+ // Browser globals
28
+ factory( jQuery );
29
+ }
30
+ }(function( $ ) {
25
31
 
26
- $.widget( "ui.slider", $.ui.mouse, {
27
- version: "1.10.4",
32
+ return $.widget( "ui.slider", $.ui.mouse, {
33
+ version: "1.11.0",
28
34
  widgetEventPrefix: "slide",
29
35
 
30
36
  options: {
@@ -45,6 +51,10 @@ $.widget( "ui.slider", $.ui.mouse, {
45
51
  stop: null
46
52
  },
47
53
 
54
+ // number of pages in a slider
55
+ // (how many times can you page up/down to go through the whole range)
56
+ numPages: 5,
57
+
48
58
  _create: function() {
49
59
  this._keySliding = false;
50
60
  this._mouseSliding = false;
@@ -77,7 +87,7 @@ $.widget( "ui.slider", $.ui.mouse, {
77
87
  var i, handleCount,
78
88
  options = this.options,
79
89
  existingHandles = this.element.find( ".ui-slider-handle" ).addClass( "ui-state-default ui-corner-all" ),
80
- handle = "<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",
90
+ handle = "<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>",
81
91
  handles = [];
82
92
 
83
93
  handleCount = ( options.values && options.values.length ) || 1;
@@ -143,11 +153,10 @@ $.widget( "ui.slider", $.ui.mouse, {
143
153
  },
144
154
 
145
155
  _setupEvents: function() {
146
- var elements = this.handles.add( this.range ).filter( "a" );
147
- this._off( elements );
148
- this._on( elements, this._handleEvents );
149
- this._hoverable( elements );
150
- this._focusable( elements );
156
+ this._off( this.handles );
157
+ this._on( this.handles, this._handleEvents );
158
+ this._hoverable( this.handles );
159
+ this._focusable( this.handles );
151
160
  },
152
161
 
153
162
  _destroy: function() {
@@ -427,7 +436,7 @@ $.widget( "ui.slider", $.ui.mouse, {
427
436
  this.options.value = this._values( 0 );
428
437
  this.options.values = null;
429
438
  } else if ( value === "max" ) {
430
- this.options.value = this._values( this.options.values.length-1 );
439
+ this.options.value = this._values( this.options.values.length - 1 );
431
440
  this.options.values = null;
432
441
  }
433
442
  }
@@ -436,7 +445,11 @@ $.widget( "ui.slider", $.ui.mouse, {
436
445
  valsLength = this.options.values.length;
437
446
  }
438
447
 
439
- $.Widget.prototype._setOption.apply( this, arguments );
448
+ if ( key === "disabled" ) {
449
+ this.element.toggleClass( "ui-state-disabled", !!value );
450
+ }
451
+
452
+ this._super( key, value );
440
453
 
441
454
  switch ( key ) {
442
455
  case "orientation":
@@ -637,10 +650,13 @@ $.widget( "ui.slider", $.ui.mouse, {
637
650
  newVal = this._valueMax();
638
651
  break;
639
652
  case $.ui.keyCode.PAGE_UP:
640
- newVal = this._trimAlignValue( curVal + ( (this._valueMax() - this._valueMin()) / numPages ) );
653
+ newVal = this._trimAlignValue(
654
+ curVal + ( ( this._valueMax() - this._valueMin() ) / this.numPages )
655
+ );
641
656
  break;
642
657
  case $.ui.keyCode.PAGE_DOWN:
643
- newVal = this._trimAlignValue( curVal - ( (this._valueMax() - this._valueMin()) / numPages ) );
658
+ newVal = this._trimAlignValue(
659
+ curVal - ( (this._valueMax() - this._valueMin()) / this.numPages ) );
644
660
  break;
645
661
  case $.ui.keyCode.UP:
646
662
  case $.ui.keyCode.RIGHT:
@@ -660,9 +676,6 @@ $.widget( "ui.slider", $.ui.mouse, {
660
676
 
661
677
  this._slide( event, index, newVal );
662
678
  },
663
- click: function( event ) {
664
- event.preventDefault();
665
- },
666
679
  keyup: function( event ) {
667
680
  var index = $( event.target ).data( "ui-slider-handle-index" );
668
681
 
@@ -674,7 +687,6 @@ $.widget( "ui.slider", $.ui.mouse, {
674
687
  }
675
688
  }
676
689
  }
677
-
678
690
  });
679
691
 
680
- }(jQuery));
692
+ }));
@@ -1,9 +1,9 @@
1
- //= require jquery.ui.core
2
- //= require jquery.ui.widget
3
- //= require jquery.ui.mouse
1
+ //= require jquery-ui/core
2
+ //= require jquery-ui/widget
3
+ //= require jquery-ui/mouse
4
4
 
5
5
  /*!
6
- * jQuery UI Sortable 1.10.4
6
+ * jQuery UI Sortable 1.11.0
7
7
  * http://jqueryui.com
8
8
  *
9
9
  * Copyright 2014 jQuery Foundation and other contributors
@@ -11,24 +11,26 @@
11
11
  * http://jquery.org/license
12
12
  *
13
13
  * http://api.jqueryui.com/sortable/
14
- *
15
- * Depends:
16
- * jquery.ui.core.js
17
- * jquery.ui.mouse.js
18
- * jquery.ui.widget.js
19
14
  */
20
- (function( $, undefined ) {
21
-
22
- function isOverAxis( x, reference, size ) {
23
- return ( x > reference ) && ( x < ( reference + size ) );
24
- }
25
-
26
- function isFloating(item) {
27
- return (/left|right/).test(item.css("float")) || (/inline|table-cell/).test(item.css("display"));
28
- }
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
+ "./mouse",
23
+ "./widget"
24
+ ], factory );
25
+ } else {
26
+
27
+ // Browser globals
28
+ factory( jQuery );
29
+ }
30
+ }(function( $ ) {
29
31
 
30
- $.widget("ui.sortable", $.ui.mouse, {
31
- version: "1.10.4",
32
+ return $.widget("ui.sortable", $.ui.mouse, {
33
+ version: "1.11.0",
32
34
  widgetEventPrefix: "sort",
33
35
  ready: false,
34
36
  options: {
@@ -69,6 +71,15 @@ $.widget("ui.sortable", $.ui.mouse, {
69
71
  stop: null,
70
72
  update: null
71
73
  },
74
+
75
+ _isOverAxis: function( x, reference, size ) {
76
+ return ( x >= reference ) && ( x < ( reference + size ) );
77
+ },
78
+
79
+ _isFloating: function( item ) {
80
+ return (/left|right/).test(item.css("float")) || (/inline|table-cell/).test(item.css("display"));
81
+ },
82
+
72
83
  _create: function() {
73
84
 
74
85
  var o = this.options;
@@ -79,7 +90,7 @@ $.widget("ui.sortable", $.ui.mouse, {
79
90
  this.refresh();
80
91
 
81
92
  //Let's determine if the items are being displayed horizontally
82
- this.floating = this.items.length ? o.axis === "x" || isFloating(this.items[0].item) : false;
93
+ this.floating = this.items.length ? o.axis === "x" || this._isFloating(this.items[0].item) : false;
83
94
 
84
95
  //Let's determine the parent's offset
85
96
  this.offset = this.element.offset();
@@ -87,14 +98,35 @@ $.widget("ui.sortable", $.ui.mouse, {
87
98
  //Initialize mouse events for interaction
88
99
  this._mouseInit();
89
100
 
101
+ this._setHandleClassName();
102
+
90
103
  //We're ready to go
91
104
  this.ready = true;
92
105
 
93
106
  },
94
107
 
108
+ _setOption: function( key, value ) {
109
+ this._super( key, value );
110
+
111
+ if ( key === "handle" ) {
112
+ this._setHandleClassName();
113
+ }
114
+ },
115
+
116
+ _setHandleClassName: function() {
117
+ this.element.find( ".ui-sortable-handle" ).removeClass( "ui-sortable-handle" );
118
+ $.each( this.items, function() {
119
+ ( this.instance.options.handle ?
120
+ this.item.find( this.instance.options.handle ) : this.item )
121
+ .addClass( "ui-sortable-handle" );
122
+ });
123
+ },
124
+
95
125
  _destroy: function() {
96
126
  this.element
97
- .removeClass("ui-sortable ui-sortable-disabled");
127
+ .removeClass( "ui-sortable ui-sortable-disabled" )
128
+ .find( ".ui-sortable-handle" )
129
+ .removeClass( "ui-sortable-handle" );
98
130
  this._mouseDestroy();
99
131
 
100
132
  for ( var i = this.items.length - 1; i >= 0; i-- ) {
@@ -104,17 +136,6 @@ $.widget("ui.sortable", $.ui.mouse, {
104
136
  return this;
105
137
  },
106
138
 
107
- _setOption: function(key, value){
108
- if ( key === "disabled" ) {
109
- this.options[ key ] = value;
110
-
111
- this.widget().toggleClass( "ui-sortable-disabled", !!value );
112
- } else {
113
- // Don't call widget base _setOption for disable as it adds ui-state-disabled class
114
- $.Widget.prototype._setOption.apply(this, arguments);
115
- }
116
- },
117
-
118
139
  _mouseCapture: function(event, overrideHandle) {
119
140
  var currentItem = null,
120
141
  validHandle = false,
@@ -374,7 +395,7 @@ $.widget("ui.sortable", $.ui.mouse, {
374
395
  // currentContainer is switched before the placeholder is moved.
375
396
  //
376
397
  // Without this, moving items in "sub-sortables" can cause
377
- // the placeholder to jitter beetween the outer and inner container.
398
+ // the placeholder to jitter between the outer and inner container.
378
399
  if (item.instance !== this.currentContainer) {
379
400
  continue;
380
401
  }
@@ -569,8 +590,8 @@ $.widget("ui.sortable", $.ui.mouse, {
569
590
 
570
591
  _intersectsWithPointer: function(item) {
571
592
 
572
- var isOverElementHeight = (this.options.axis === "x") || isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height),
573
- isOverElementWidth = (this.options.axis === "y") || isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width),
593
+ var isOverElementHeight = (this.options.axis === "x") || this._isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height),
594
+ isOverElementWidth = (this.options.axis === "y") || this._isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width),
574
595
  isOverElement = isOverElementHeight && isOverElementWidth,
575
596
  verticalDirection = this._getDragVerticalDirection(),
576
597
  horizontalDirection = this._getDragHorizontalDirection();
@@ -587,8 +608,8 @@ $.widget("ui.sortable", $.ui.mouse, {
587
608
 
588
609
  _intersectsWithSides: function(item) {
589
610
 
590
- var isOverBottomHalf = isOverAxis(this.positionAbs.top + this.offset.click.top, item.top + (item.height/2), item.height),
591
- isOverRightHalf = isOverAxis(this.positionAbs.left + this.offset.click.left, item.left + (item.width/2), item.width),
611
+ var isOverBottomHalf = this._isOverAxis(this.positionAbs.top + this.offset.click.top, item.top + (item.height/2), item.height),
612
+ isOverRightHalf = this._isOverAxis(this.positionAbs.left + this.offset.click.left, item.left + (item.width/2), item.width),
592
613
  verticalDirection = this._getDragVerticalDirection(),
593
614
  horizontalDirection = this._getDragHorizontalDirection();
594
615
 
@@ -612,6 +633,7 @@ $.widget("ui.sortable", $.ui.mouse, {
612
633
 
613
634
  refresh: function(event) {
614
635
  this._refreshItems(event);
636
+ this._setHandleClassName();
615
637
  this.refreshPositions();
616
638
  return this;
617
639
  },
@@ -747,7 +769,7 @@ $.widget("ui.sortable", $.ui.mouse, {
747
769
  p = this.containers[i].element.offset();
748
770
  this.containers[i].containerCache.left = p.left;
749
771
  this.containers[i].containerCache.top = p.top;
750
- this.containers[i].containerCache.width = this.containers[i].element.outerWidth();
772
+ this.containers[i].containerCache.width = this.containers[i].element.outerWidth();
751
773
  this.containers[i].containerCache.height = this.containers[i].element.outerHeight();
752
774
  }
753
775
  }
@@ -813,7 +835,7 @@ $.widget("ui.sortable", $.ui.mouse, {
813
835
  },
814
836
 
815
837
  _contactContainers: function(event) {
816
- var i, j, dist, itemWithLeastDistance, posProperty, sizeProperty, base, cur, nearBottom, floating,
838
+ var i, j, dist, itemWithLeastDistance, posProperty, sizeProperty, cur, nearBottom, floating, axis,
817
839
  innermostContainer = null,
818
840
  innermostIndex = null;
819
841
 
@@ -861,10 +883,11 @@ $.widget("ui.sortable", $.ui.mouse, {
861
883
  //When entering a new container, we will find the item with the least distance and append our item near it
862
884
  dist = 10000;
863
885
  itemWithLeastDistance = null;
864
- floating = innermostContainer.floating || isFloating(this.currentItem);
886
+ floating = innermostContainer.floating || this._isFloating(this.currentItem);
865
887
  posProperty = floating ? "left" : "top";
866
888
  sizeProperty = floating ? "width" : "height";
867
- base = this.positionAbs[posProperty] + this.offset.click[posProperty];
889
+ axis = floating ? "clientX" : "clientY";
890
+
868
891
  for (j = this.items.length - 1; j >= 0; j--) {
869
892
  if(!$.contains(this.containers[innermostIndex].element[0], this.items[j].item[0])) {
870
893
  continue;
@@ -872,18 +895,16 @@ $.widget("ui.sortable", $.ui.mouse, {
872
895
  if(this.items[j].item[0] === this.currentItem[0]) {
873
896
  continue;
874
897
  }
875
- if (floating && !isOverAxis(this.positionAbs.top + this.offset.click.top, this.items[j].top, this.items[j].height)) {
876
- continue;
877
- }
898
+
878
899
  cur = this.items[j].item.offset()[posProperty];
879
900
  nearBottom = false;
880
- if(Math.abs(cur - base) > Math.abs(cur + this.items[j][sizeProperty] - base)){
901
+ if ( event[ axis ] - cur > this.items[ j ][ sizeProperty ] / 2 ) {
881
902
  nearBottom = true;
882
- cur += this.items[j][sizeProperty];
883
903
  }
884
904
 
885
- if(Math.abs(cur - base) < dist) {
886
- dist = Math.abs(cur - base); itemWithLeastDistance = this.items[j];
905
+ if ( Math.abs( event[ axis ] - cur ) < dist ) {
906
+ dist = Math.abs( event[ axis ] - cur );
907
+ itemWithLeastDistance = this.items[ j ];
887
908
  this.direction = nearBottom ? "up": "down";
888
909
  }
889
910
  }
@@ -1290,4 +1311,4 @@ $.widget("ui.sortable", $.ui.mouse, {
1290
1311
 
1291
1312
  });
1292
1313
 
1293
- })(jQuery);
1314
+ }));
@@ -1,9 +1,9 @@
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.4
6
+ * jQuery UI Spinner 1.11.0
7
7
  * http://jqueryui.com
8
8
  *
9
9
  * Copyright 2014 jQuery Foundation and other contributors
@@ -11,15 +11,25 @@
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.4",
43
+ return $.widget( "ui.spinner", {
44
+ version: "1.11.0",
35
45
  defaultElement: "<input>",
36
46
  widgetEventPrefix: "spin",
37
47
  options: {
@@ -305,7 +315,7 @@ $.widget( "ui.spinner", {
305
315
  if ( incremental ) {
306
316
  return $.isFunction( incremental ) ?
307
317
  incremental( i ) :
308
- 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 );
309
319
  }
310
320
 
311
321
  return 1;
@@ -389,19 +399,14 @@ $.widget( "ui.spinner", {
389
399
  this._super( key, value );
390
400
 
391
401
  if ( key === "disabled" ) {
392
- if ( value ) {
393
- this.element.prop( "disabled", true );
394
- this.buttons.button( "disable" );
395
- } else {
396
- this.element.prop( "disabled", false );
397
- this.buttons.button( "enable" );
398
- }
402
+ this.widget().toggleClass( "ui-state-disabled", !!value );
403
+ this.element.prop( "disabled", !!value );
404
+ this.buttons.button( value ? "disable" : "enable" );
399
405
  }
400
406
  },
401
407
 
402
- _setOptions: modifier(function( options ) {
408
+ _setOptions: spinner_modifier(function( options ) {
403
409
  this._super( options );
404
- this._value( this.element.val() );
405
410
  }),
406
411
 
407
412
  _parse: function( val ) {
@@ -430,6 +435,18 @@ $.widget( "ui.spinner", {
430
435
  });
431
436
  },
432
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
+
433
450
  // update the value without triggering change
434
451
  _value: function( value, allowAny ) {
435
452
  var parsed;
@@ -458,7 +475,7 @@ $.widget( "ui.spinner", {
458
475
  this.uiSpinner.replaceWith( this.element );
459
476
  },
460
477
 
461
- stepUp: modifier(function( steps ) {
478
+ stepUp: spinner_modifier(function( steps ) {
462
479
  this._stepUp( steps );
463
480
  }),
464
481
  _stepUp: function( steps ) {
@@ -468,7 +485,7 @@ $.widget( "ui.spinner", {
468
485
  }
469
486
  },
470
487
 
471
- stepDown: modifier(function( steps ) {
488
+ stepDown: spinner_modifier(function( steps ) {
472
489
  this._stepDown( steps );
473
490
  }),
474
491
  _stepDown: function( steps ) {
@@ -478,11 +495,11 @@ $.widget( "ui.spinner", {
478
495
  }
479
496
  },
480
497
 
481
- pageUp: modifier(function( pages ) {
498
+ pageUp: spinner_modifier(function( pages ) {
482
499
  this._stepUp( (pages || 1) * this.options.page );
483
500
  }),
484
501
 
485
- pageDown: modifier(function( pages ) {
502
+ pageDown: spinner_modifier(function( pages ) {
486
503
  this._stepDown( (pages || 1) * this.options.page );
487
504
  }),
488
505
 
@@ -490,7 +507,7 @@ $.widget( "ui.spinner", {
490
507
  if ( !arguments.length ) {
491
508
  return this._parse( this.element.val() );
492
509
  }
493
- modifier( this._value ).call( this, newVal );
510
+ spinner_modifier( this._value ).call( this, newVal );
494
511
  },
495
512
 
496
513
  widget: function() {
@@ -498,4 +515,4 @@ $.widget( "ui.spinner", {
498
515
  }
499
516
  });
500
517
 
501
- }( jQuery ) );
518
+ }));