jquery-ui-rails 6.0.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. checksums.yaml +5 -5
  2. data/.gitmodules +1 -1
  3. data/History.md +11 -2
  4. data/README.md +22 -22
  5. data/Rakefile +11 -3
  6. data/VERSIONS.md +2 -0
  7. data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
  8. data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
  9. data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
  10. data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
  11. data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
  12. data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
  13. data/app/assets/javascripts/jquery-ui/core.js +1 -23
  14. data/app/assets/javascripts/jquery-ui/data.js +8 -4
  15. data/app/assets/javascripts/jquery-ui/disable-selection.js +6 -3
  16. data/app/assets/javascripts/jquery-ui/effect.js +55 -717
  17. data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +6 -3
  18. data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +6 -3
  19. data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +6 -3
  20. data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +6 -3
  21. data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +8 -5
  22. data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +6 -3
  23. data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +6 -3
  24. data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +6 -3
  25. data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +6 -3
  26. data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +6 -3
  27. data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +6 -3
  28. data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +6 -3
  29. data/app/assets/javascripts/jquery-ui/effects/effect-size.js +8 -3
  30. data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +6 -3
  31. data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +6 -3
  32. data/app/assets/javascripts/jquery-ui/focusable.js +8 -5
  33. data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +7 -4
  34. data/app/assets/javascripts/jquery-ui/form.js +6 -3
  35. data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +8 -5
  36. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +6 -3
  37. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +5 -2
  38. data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +12 -9
  39. data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +12 -9
  40. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +12 -9
  41. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +12 -9
  42. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +12 -9
  43. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +10 -7
  44. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +8 -5
  45. data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +13 -10
  46. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
  47. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +12 -9
  48. data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +12 -9
  49. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +8 -5
  50. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +8 -5
  51. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +8 -5
  52. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +12 -9
  53. data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +12 -9
  54. data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +8 -5
  55. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +12 -9
  56. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +6 -3
  57. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +12 -9
  58. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +11 -8
  59. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +5 -2
  60. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +5 -2
  61. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +6 -3
  62. data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +12 -9
  63. data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +12 -9
  64. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +7 -4
  65. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +12 -9
  66. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +9 -6
  67. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +12 -9
  68. data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +12 -9
  69. data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +11 -8
  70. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +12 -9
  71. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +12 -9
  72. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +12 -9
  73. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +9 -6
  74. data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +12 -9
  75. data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +9 -6
  76. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +12 -9
  77. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +10 -7
  78. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +8 -5
  79. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +11 -8
  80. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +11 -8
  81. data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +12 -9
  82. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +8 -5
  83. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +12 -9
  84. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +9 -6
  85. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +5 -2
  86. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +5 -2
  87. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +9 -6
  88. data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +9 -6
  89. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +12 -9
  90. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +11 -8
  91. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +12 -9
  92. data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +8 -5
  93. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +8 -5
  94. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +12 -9
  95. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +12 -9
  96. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +12 -9
  97. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +12 -9
  98. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +12 -9
  99. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +12 -9
  100. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +12 -9
  101. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +10 -7
  102. data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +12 -9
  103. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +12 -9
  104. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +12 -9
  105. data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +12 -9
  106. data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +5 -2
  107. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +12 -9
  108. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +12 -9
  109. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +15 -12
  110. data/app/assets/javascripts/jquery-ui/ie.js +5 -2
  111. data/app/assets/javascripts/jquery-ui/jquery-patch.js +91 -0
  112. data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
  113. data/app/assets/javascripts/jquery-ui/keycode.js +7 -3
  114. data/app/assets/javascripts/jquery-ui/labels.js +12 -6
  115. data/app/assets/javascripts/jquery-ui/plugin.js +5 -2
  116. data/app/assets/javascripts/jquery-ui/position.js +24 -11
  117. data/app/assets/javascripts/jquery-ui/safe-active-element.js +6 -2
  118. data/app/assets/javascripts/jquery-ui/safe-blur.js +6 -2
  119. data/app/assets/javascripts/jquery-ui/scroll-parent.js +6 -3
  120. data/app/assets/javascripts/jquery-ui/tabbable.js +7 -4
  121. data/app/assets/javascripts/jquery-ui/unique-id.js +6 -3
  122. data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +722 -0
  123. data/app/assets/javascripts/jquery-ui/version.js +6 -3
  124. data/app/assets/javascripts/jquery-ui/widget.js +43 -24
  125. data/app/assets/javascripts/jquery-ui/widgets/accordion.js +17 -8
  126. data/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +23 -32
  127. data/app/assets/javascripts/jquery-ui/widgets/button.js +82 -19
  128. data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +9 -11
  129. data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +10 -6
  130. data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +176 -56
  131. data/app/assets/javascripts/jquery-ui/widgets/dialog.js +45 -31
  132. data/app/assets/javascripts/jquery-ui/widgets/draggable.js +22 -13
  133. data/app/assets/javascripts/jquery-ui/widgets/droppable.js +19 -13
  134. data/app/assets/javascripts/jquery-ui/widgets/menu.js +83 -43
  135. data/app/assets/javascripts/jquery-ui/widgets/mouse.js +18 -7
  136. data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +9 -6
  137. data/app/assets/javascripts/jquery-ui/widgets/resizable.js +36 -18
  138. data/app/assets/javascripts/jquery-ui/widgets/selectable.js +13 -6
  139. data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +15 -10
  140. data/app/assets/javascripts/jquery-ui/widgets/slider.js +10 -7
  141. data/app/assets/javascripts/jquery-ui/widgets/sortable.js +221 -159
  142. data/app/assets/javascripts/jquery-ui/widgets/spinner.js +20 -13
  143. data/app/assets/javascripts/jquery-ui/widgets/tabs.js +13 -13
  144. data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +15 -11
  145. data/app/assets/javascripts/jquery-ui.js +3 -2
  146. data/app/assets/stylesheets/jquery-ui/accordion.css +1 -1
  147. data/app/assets/stylesheets/jquery-ui/all.css +1 -1
  148. data/app/assets/stylesheets/jquery-ui/autocomplete.css +1 -1
  149. data/app/assets/stylesheets/jquery-ui/base.css +1 -1
  150. data/app/assets/stylesheets/jquery-ui/button.css +1 -1
  151. data/app/assets/stylesheets/jquery-ui/checkboxradio.css +1 -1
  152. data/app/assets/stylesheets/jquery-ui/controlgroup.css +1 -1
  153. data/app/assets/stylesheets/jquery-ui/core.css +2 -2
  154. data/app/assets/stylesheets/jquery-ui/datepicker.css +1 -1
  155. data/app/assets/stylesheets/jquery-ui/dialog.css +1 -1
  156. data/app/assets/stylesheets/jquery-ui/draggable.css +1 -1
  157. data/app/assets/stylesheets/jquery-ui/menu.css +1 -1
  158. data/app/assets/stylesheets/jquery-ui/progressbar.css +2 -2
  159. data/app/assets/stylesheets/jquery-ui/resizable.css +1 -1
  160. data/app/assets/stylesheets/jquery-ui/selectable.css +1 -1
  161. data/app/assets/stylesheets/jquery-ui/selectmenu.css +1 -1
  162. data/app/assets/stylesheets/jquery-ui/slider.css +2 -2
  163. data/app/assets/stylesheets/jquery-ui/sortable.css +1 -1
  164. data/app/assets/stylesheets/jquery-ui/spinner.css +1 -1
  165. data/app/assets/stylesheets/jquery-ui/tabs.css +1 -1
  166. data/app/assets/stylesheets/jquery-ui/theme.css.erb +9 -6
  167. data/app/assets/stylesheets/jquery-ui/tooltip.css +1 -1
  168. data/lib/jquery/ui/rails/version.rb +2 -2
  169. metadata +8 -7
  170. data/app/assets/javascripts/jquery-ui/escape-selector.js +0 -23
  171. data/app/assets/javascripts/jquery-ui/jquery-1-7.js +0 -91
@@ -8,7 +8,7 @@
8
8
  //= require jquery-ui/widget
9
9
 
10
10
  /*!
11
- * jQuery UI Draggable 1.12.1
11
+ * jQuery UI Draggable 1.13.0
12
12
  * http://jqueryui.com
13
13
  *
14
14
  * Copyright jQuery Foundation and other contributors
@@ -24,6 +24,8 @@
24
24
  //>>css.structure: ../../themes/base/draggable.css
25
25
 
26
26
  ( function( factory ) {
27
+ "use strict";
28
+
27
29
  if ( typeof define === "function" && define.amd ) {
28
30
 
29
31
  // AMD. Register as an anonymous module.
@@ -43,10 +45,11 @@
43
45
  // Browser globals
44
46
  factory( jQuery );
45
47
  }
46
- }( function( $ ) {
48
+ } )( function( $ ) {
49
+ "use strict";
47
50
 
48
51
  $.widget( "ui.draggable", $.ui.mouse, {
49
- version: "1.12.1",
52
+ version: "1.13.0",
50
53
  widgetEventPrefix: "drag",
51
54
  options: {
52
55
  addClasses: true,
@@ -210,7 +213,9 @@ $.widget( "ui.draggable", $.ui.mouse, {
210
213
  this.originalPageY = event.pageY;
211
214
 
212
215
  //Adjust the mouse offset relative to the helper if "cursorAt" is supplied
213
- ( o.cursorAt && this._adjustOffsetFromHelper( o.cursorAt ) );
216
+ if ( o.cursorAt ) {
217
+ this._adjustOffsetFromHelper( o.cursorAt );
218
+ }
214
219
 
215
220
  //Set a containment if given in the options
216
221
  this._setContainment();
@@ -305,7 +310,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
305
310
 
306
311
  if ( ( this.options.revert === "invalid" && !dropped ) ||
307
312
  ( this.options.revert === "valid" && dropped ) ||
308
- this.options.revert === true || ( $.isFunction( this.options.revert ) &&
313
+ this.options.revert === true || ( typeof this.options.revert === "function" &&
309
314
  this.options.revert.call( this.element, dropped ) )
310
315
  ) {
311
316
  $( this.helper ).animate(
@@ -377,7 +382,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
377
382
  _createHelper: function( event ) {
378
383
 
379
384
  var o = this.options,
380
- helperIsFunction = $.isFunction( o.helper ),
385
+ helperIsFunction = typeof o.helper === "function",
381
386
  helper = helperIsFunction ?
382
387
  $( o.helper.apply( this.element[ 0 ], [ event ] ) ) :
383
388
  ( o.helper === "clone" ?
@@ -416,7 +421,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
416
421
  if ( typeof obj === "string" ) {
417
422
  obj = obj.split( " " );
418
423
  }
419
- if ( $.isArray( obj ) ) {
424
+ if ( Array.isArray( obj ) ) {
420
425
  obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
421
426
  }
422
427
  if ( "left" in obj ) {
@@ -1125,12 +1130,13 @@ $.ui.plugin.add( "draggable", "snap", {
1125
1130
  !$.contains( inst.snapElements[ i ].item.ownerDocument,
1126
1131
  inst.snapElements[ i ].item ) ) {
1127
1132
  if ( inst.snapElements[ i ].snapping ) {
1128
- ( inst.options.snap.release &&
1133
+ if ( inst.options.snap.release ) {
1129
1134
  inst.options.snap.release.call(
1130
1135
  inst.element,
1131
1136
  event,
1132
1137
  $.extend( inst._uiHash(), { snapItem: inst.snapElements[ i ].item } )
1133
- ) );
1138
+ );
1139
+ }
1134
1140
  }
1135
1141
  inst.snapElements[ i ].snapping = false;
1136
1142
  continue;
@@ -1201,13 +1207,14 @@ $.ui.plugin.add( "draggable", "snap", {
1201
1207
  }
1202
1208
 
1203
1209
  if ( !inst.snapElements[ i ].snapping && ( ts || bs || ls || rs || first ) ) {
1204
- ( inst.options.snap.snap &&
1210
+ if ( inst.options.snap.snap ) {
1205
1211
  inst.options.snap.snap.call(
1206
1212
  inst.element,
1207
1213
  event,
1208
1214
  $.extend( inst._uiHash(), {
1209
1215
  snapItem: inst.snapElements[ i ].item
1210
- } ) ) );
1216
+ } ) );
1217
+ }
1211
1218
  }
1212
1219
  inst.snapElements[ i ].snapping = ( ts || bs || ls || rs || first );
1213
1220
 
@@ -1225,7 +1232,9 @@ $.ui.plugin.add( "draggable", "stack", {
1225
1232
  ( parseInt( $( b ).css( "zIndex" ), 10 ) || 0 );
1226
1233
  } );
1227
1234
 
1228
- if ( !group.length ) { return; }
1235
+ if ( !group.length ) {
1236
+ return;
1237
+ }
1229
1238
 
1230
1239
  min = parseInt( $( group[ 0 ] ).css( "zIndex" ), 10 ) || 0;
1231
1240
  $( group ).each( function( i ) {
@@ -1256,4 +1265,4 @@ $.ui.plugin.add( "draggable", "zIndex", {
1256
1265
 
1257
1266
  return $.ui.draggable;
1258
1267
 
1259
- } ) );
1268
+ } );
@@ -4,7 +4,7 @@
4
4
  //= require jquery-ui/widget
5
5
 
6
6
  /*!
7
- * jQuery UI Droppable 1.12.1
7
+ * jQuery UI Droppable 1.13.0
8
8
  * http://jqueryui.com
9
9
  *
10
10
  * Copyright jQuery Foundation and other contributors
@@ -19,6 +19,8 @@
19
19
  //>>demos: http://jqueryui.com/droppable/
20
20
 
21
21
  ( function( factory ) {
22
+ "use strict";
23
+
22
24
  if ( typeof define === "function" && define.amd ) {
23
25
 
24
26
  // AMD. Register as an anonymous module.
@@ -34,10 +36,11 @@
34
36
  // Browser globals
35
37
  factory( jQuery );
36
38
  }
37
- }( function( $ ) {
39
+ } )( function( $ ) {
40
+ "use strict";
38
41
 
39
42
  $.widget( "ui.droppable", {
40
- version: "1.12.1",
43
+ version: "1.13.0",
41
44
  widgetEventPrefix: "drop",
42
45
  options: {
43
46
  accept: "*",
@@ -62,7 +65,7 @@ $.widget( "ui.droppable", {
62
65
  this.isover = false;
63
66
  this.isout = true;
64
67
 
65
- this.accept = $.isFunction( accept ) ? accept : function( d ) {
68
+ this.accept = typeof accept === "function" ? accept : function( d ) {
66
69
  return d.is( accept );
67
70
  };
68
71
 
@@ -85,7 +88,9 @@ $.widget( "ui.droppable", {
85
88
 
86
89
  this._addToManager( o.scope );
87
90
 
88
- o.addClasses && this._addClass( "ui-droppable" );
91
+ if ( o.addClasses ) {
92
+ this._addClass( "ui-droppable" );
93
+ }
89
94
 
90
95
  },
91
96
 
@@ -114,7 +119,7 @@ $.widget( "ui.droppable", {
114
119
  _setOption: function( key, value ) {
115
120
 
116
121
  if ( key === "accept" ) {
117
- this.accept = $.isFunction( value ) ? value : function( d ) {
122
+ this.accept = typeof value === "function" ? value : function( d ) {
118
123
  return d.is( value );
119
124
  };
120
125
  } else if ( key === "scope" ) {
@@ -204,14 +209,15 @@ $.widget( "ui.droppable", {
204
209
  inst.accept.call(
205
210
  inst.element[ 0 ], ( draggable.currentItem || draggable.element )
206
211
  ) &&
207
- intersect(
212
+ $.ui.intersect(
208
213
  draggable,
209
214
  $.extend( inst, { offset: inst.element.offset() } ),
210
215
  inst.options.tolerance, event
211
216
  )
212
217
  ) {
213
218
  childrenIntersection = true;
214
- return false; }
219
+ return false;
220
+ }
215
221
  } );
216
222
  if ( childrenIntersection ) {
217
223
  return false;
@@ -240,7 +246,7 @@ $.widget( "ui.droppable", {
240
246
  },
241
247
 
242
248
  // Extension points just to make backcompat sane and avoid duplicating logic
243
- // TODO: Remove in 1.13 along with call to it below
249
+ // TODO: Remove in 1.14 along with call to it below
244
250
  _addHoverClass: function() {
245
251
  this._addClass( "ui-droppable-hover" );
246
252
  },
@@ -258,7 +264,7 @@ $.widget( "ui.droppable", {
258
264
  }
259
265
  } );
260
266
 
261
- var intersect = $.ui.intersect = ( function() {
267
+ $.ui.intersect = ( function() {
262
268
  function isOverAxis( x, reference, size ) {
263
269
  return ( x >= reference ) && ( x < ( reference + size ) );
264
270
  }
@@ -366,7 +372,7 @@ $.ui.ddmanager = {
366
372
  return;
367
373
  }
368
374
  if ( !this.options.disabled && this.visible &&
369
- intersect( draggable, this, this.options.tolerance, event ) ) {
375
+ $.ui.intersect( draggable, this, this.options.tolerance, event ) ) {
370
376
  dropped = this._drop.call( this, event ) || dropped;
371
377
  }
372
378
 
@@ -407,7 +413,7 @@ $.ui.ddmanager = {
407
413
  }
408
414
 
409
415
  var parentInstance, scope, parent,
410
- intersects = intersect( draggable, this, this.options.tolerance, event ),
416
+ intersects = $.ui.intersect( draggable, this, this.options.tolerance, event ),
411
417
  c = !intersects && this.isover ?
412
418
  "isout" :
413
419
  ( intersects && !this.isover ? "isover" : null );
@@ -499,4 +505,4 @@ if ( $.uiBackCompat !== false ) {
499
505
 
500
506
  return $.ui.droppable;
501
507
 
502
- } ) );
508
+ } );
@@ -6,7 +6,7 @@
6
6
  //= require jquery-ui/widget
7
7
 
8
8
  /*!
9
- * jQuery UI Menu 1.12.1
9
+ * jQuery UI Menu 1.13.0
10
10
  * http://jqueryui.com
11
11
  *
12
12
  * Copyright jQuery Foundation and other contributors
@@ -24,6 +24,8 @@
24
24
  //>>css.theme: ../../themes/base/theme.css
25
25
 
26
26
  ( function( factory ) {
27
+ "use strict";
28
+
27
29
  if ( typeof define === "function" && define.amd ) {
28
30
 
29
31
  // AMD. Register as an anonymous module.
@@ -41,10 +43,11 @@
41
43
  // Browser globals
42
44
  factory( jQuery );
43
45
  }
44
- }( function( $ ) {
46
+ } )( function( $ ) {
47
+ "use strict";
45
48
 
46
49
  return $.widget( "ui.menu", {
47
- version: "1.12.1",
50
+ version: "1.13.0",
48
51
  defaultElement: "<ul>",
49
52
  delay: 300,
50
53
  options: {
@@ -71,6 +74,7 @@ return $.widget( "ui.menu", {
71
74
  // Flag used to prevent firing of the click handler
72
75
  // as the event bubbles up through nested menus
73
76
  this.mouseHandled = false;
77
+ this.lastMousePosition = { x: null, y: null };
74
78
  this.element
75
79
  .uniqueId()
76
80
  .attr( {
@@ -85,6 +89,8 @@ return $.widget( "ui.menu", {
85
89
  // them (focus should always stay on UL during navigation).
86
90
  "mousedown .ui-menu-item": function( event ) {
87
91
  event.preventDefault();
92
+
93
+ this._activateItem( event );
88
94
  },
89
95
  "click .ui-menu-item": function( event ) {
90
96
  var target = $( event.target );
@@ -114,36 +120,15 @@ return $.widget( "ui.menu", {
114
120
  }
115
121
  }
116
122
  },
117
- "mouseenter .ui-menu-item": function( event ) {
118
-
119
- // Ignore mouse events while typeahead is active, see #10458.
120
- // Prevents focusing the wrong item when typeahead causes a scroll while the mouse
121
- // is over an item in the menu
122
- if ( this.previousFilter ) {
123
- return;
124
- }
125
-
126
- var actualTarget = $( event.target ).closest( ".ui-menu-item" ),
127
- target = $( event.currentTarget );
128
-
129
- // Ignore bubbled events on parent items, see #11641
130
- if ( actualTarget[ 0 ] !== target[ 0 ] ) {
131
- return;
132
- }
133
-
134
- // Remove ui-state-active class from siblings of the newly focused menu item
135
- // to avoid a jump caused by adjacent elements both having a class with a border
136
- this._removeClass( target.siblings().children( ".ui-state-active" ),
137
- null, "ui-state-active" );
138
- this.focus( event, target );
139
- },
123
+ "mouseenter .ui-menu-item": "_activateItem",
124
+ "mousemove .ui-menu-item": "_activateItem",
140
125
  mouseleave: "collapseAll",
141
126
  "mouseleave .ui-menu": "collapseAll",
142
127
  focus: function( event, keepActiveItem ) {
143
128
 
144
129
  // If there's already an active item, keep it active
145
130
  // If not, activate the first item
146
- var item = this.active || this.element.find( this.options.items ).eq( 0 );
131
+ var item = this.active || this._menuItems().first();
147
132
 
148
133
  if ( !keepActiveItem ) {
149
134
  this.focus( event, item );
@@ -169,7 +154,7 @@ return $.widget( "ui.menu", {
169
154
  this._on( this.document, {
170
155
  click: function( event ) {
171
156
  if ( this._closeOnDocumentClick( event ) ) {
172
- this.collapseAll( event );
157
+ this.collapseAll( event, true );
173
158
  }
174
159
 
175
160
  // Reset the mouseHandled flag
@@ -178,6 +163,46 @@ return $.widget( "ui.menu", {
178
163
  } );
179
164
  },
180
165
 
166
+ _activateItem: function( event ) {
167
+
168
+ // Ignore mouse events while typeahead is active, see #10458.
169
+ // Prevents focusing the wrong item when typeahead causes a scroll while the mouse
170
+ // is over an item in the menu
171
+ if ( this.previousFilter ) {
172
+ return;
173
+ }
174
+
175
+ // If the mouse didn't actually move, but the page was scrolled, ignore the event (#9356)
176
+ if ( event.clientX === this.lastMousePosition.x &&
177
+ event.clientY === this.lastMousePosition.y ) {
178
+ return;
179
+ }
180
+
181
+ this.lastMousePosition = {
182
+ x: event.clientX,
183
+ y: event.clientY
184
+ };
185
+
186
+ var actualTarget = $( event.target ).closest( ".ui-menu-item" ),
187
+ target = $( event.currentTarget );
188
+
189
+ // Ignore bubbled events on parent items, see #11641
190
+ if ( actualTarget[ 0 ] !== target[ 0 ] ) {
191
+ return;
192
+ }
193
+
194
+ // If the item is already active, there's nothing to do
195
+ if ( target.is( ".ui-state-active" ) ) {
196
+ return;
197
+ }
198
+
199
+ // Remove ui-state-active class from siblings of the newly focused menu item
200
+ // to avoid a jump caused by adjacent elements both having a class with a border
201
+ this._removeClass( target.siblings().children( ".ui-state-active" ),
202
+ null, "ui-state-active" );
203
+ this.focus( event, target );
204
+ },
205
+
181
206
  _destroy: function() {
182
207
  var items = this.element.find( ".ui-menu-item" )
183
208
  .removeAttr( "role aria-disabled" ),
@@ -509,7 +534,7 @@ return $.widget( "ui.menu", {
509
534
  this._removeClass( currentMenu.find( ".ui-state-active" ), null, "ui-state-active" );
510
535
 
511
536
  this.activeMenu = currentMenu;
512
- }, this.delay );
537
+ }, all ? 0 : this.delay );
513
538
  },
514
539
 
515
540
  // With no arguments, closes the currently active menu - if nothing is active
@@ -545,11 +570,7 @@ return $.widget( "ui.menu", {
545
570
  },
546
571
 
547
572
  expand: function( event ) {
548
- var newItem = this.active &&
549
- this.active
550
- .children( ".ui-menu " )
551
- .find( this.options.items )
552
- .first();
573
+ var newItem = this.active && this._menuItems( this.active.children( ".ui-menu" ) ).first();
553
574
 
554
575
  if ( newItem && newItem.length ) {
555
576
  this._open( newItem.parent() );
@@ -577,21 +598,27 @@ return $.widget( "ui.menu", {
577
598
  return this.active && !this.active.nextAll( ".ui-menu-item" ).length;
578
599
  },
579
600
 
601
+ _menuItems: function( menu ) {
602
+ return ( menu || this.element )
603
+ .find( this.options.items )
604
+ .filter( ".ui-menu-item" );
605
+ },
606
+
580
607
  _move: function( direction, filter, event ) {
581
608
  var next;
582
609
  if ( this.active ) {
583
610
  if ( direction === "first" || direction === "last" ) {
584
611
  next = this.active
585
612
  [ direction === "first" ? "prevAll" : "nextAll" ]( ".ui-menu-item" )
586
- .eq( -1 );
613
+ .last();
587
614
  } else {
588
615
  next = this.active
589
616
  [ direction + "All" ]( ".ui-menu-item" )
590
- .eq( 0 );
617
+ .first();
591
618
  }
592
619
  }
593
620
  if ( !next || !next.length || !this.active ) {
594
- next = this.activeMenu.find( this.options.items )[ filter ]();
621
+ next = this._menuItems( this.activeMenu )[ filter ]();
595
622
  }
596
623
 
597
624
  this.focus( event, next );
@@ -609,7 +636,13 @@ return $.widget( "ui.menu", {
609
636
  }
610
637
  if ( this._hasScroll() ) {
611
638
  base = this.active.offset().top;
612
- height = this.element.height();
639
+ height = this.element.innerHeight();
640
+
641
+ // jQuery 3.2 doesn't include scrollbars in innerHeight, add it back.
642
+ if ( $.fn.jquery.indexOf( "3.2." ) === 0 ) {
643
+ height += this.element[ 0 ].offsetHeight - this.element.outerHeight();
644
+ }
645
+
613
646
  this.active.nextAll( ".ui-menu-item" ).each( function() {
614
647
  item = $( this );
615
648
  return item.offset().top - base - height < 0;
@@ -617,7 +650,7 @@ return $.widget( "ui.menu", {
617
650
 
618
651
  this.focus( event, item );
619
652
  } else {
620
- this.focus( event, this.activeMenu.find( this.options.items )
653
+ this.focus( event, this._menuItems( this.activeMenu )
621
654
  [ !this.active ? "first" : "last" ]() );
622
655
  }
623
656
  },
@@ -633,7 +666,13 @@ return $.widget( "ui.menu", {
633
666
  }
634
667
  if ( this._hasScroll() ) {
635
668
  base = this.active.offset().top;
636
- height = this.element.height();
669
+ height = this.element.innerHeight();
670
+
671
+ // jQuery 3.2 doesn't include scrollbars in innerHeight, add it back.
672
+ if ( $.fn.jquery.indexOf( "3.2." ) === 0 ) {
673
+ height += this.element[ 0 ].offsetHeight - this.element.outerHeight();
674
+ }
675
+
637
676
  this.active.prevAll( ".ui-menu-item" ).each( function() {
638
677
  item = $( this );
639
678
  return item.offset().top - base + height > 0;
@@ -641,7 +680,7 @@ return $.widget( "ui.menu", {
641
680
 
642
681
  this.focus( event, item );
643
682
  } else {
644
- this.focus( event, this.activeMenu.find( this.options.items ).first() );
683
+ this.focus( event, this._menuItems( this.activeMenu ).first() );
645
684
  }
646
685
  },
647
686
 
@@ -672,9 +711,10 @@ return $.widget( "ui.menu", {
672
711
  .filter( ".ui-menu-item" )
673
712
  .filter( function() {
674
713
  return regex.test(
675
- $.trim( $( this ).children( ".ui-menu-item-wrapper" ).text() ) );
714
+ String.prototype.trim.call(
715
+ $( this ).children( ".ui-menu-item-wrapper" ).text() ) );
676
716
  } );
677
717
  }
678
718
  } );
679
719
 
680
- } ) );
720
+ } );
@@ -3,7 +3,7 @@
3
3
  //= require jquery-ui/widget
4
4
 
5
5
  /*!
6
- * jQuery UI Mouse 1.12.1
6
+ * jQuery UI Mouse 1.13.0
7
7
  * http://jqueryui.com
8
8
  *
9
9
  * Copyright jQuery Foundation and other contributors
@@ -17,6 +17,8 @@
17
17
  //>>docs: http://api.jqueryui.com/mouse/
18
18
 
19
19
  ( function( factory ) {
20
+ "use strict";
21
+
20
22
  if ( typeof define === "function" && define.amd ) {
21
23
 
22
24
  // AMD. Register as an anonymous module.
@@ -31,7 +33,8 @@
31
33
  // Browser globals
32
34
  factory( jQuery );
33
35
  }
34
- }( function( $ ) {
36
+ } )( function( $ ) {
37
+ "use strict";
35
38
 
36
39
  var mouseHandled = false;
37
40
  $( document ).on( "mouseup", function() {
@@ -39,7 +42,7 @@ $( document ).on( "mouseup", function() {
39
42
  } );
40
43
 
41
44
  return $.widget( "ui.mouse", {
42
- version: "1.12.1",
45
+ version: "1.13.0",
43
46
  options: {
44
47
  cancel: "input, textarea, button, select, option",
45
48
  distance: 1,
@@ -84,7 +87,9 @@ return $.widget( "ui.mouse", {
84
87
  this._mouseMoved = false;
85
88
 
86
89
  // We may have missed mouseup (out of window)
87
- ( this._mouseStarted && this._mouseUp( event ) );
90
+ if ( this._mouseStarted ) {
91
+ this._mouseUp( event );
92
+ }
88
93
 
89
94
  this._mouseDownEvent = event;
90
95
 
@@ -177,7 +182,11 @@ return $.widget( "ui.mouse", {
177
182
  if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) {
178
183
  this._mouseStarted =
179
184
  ( this._mouseStart( this._mouseDownEvent, event ) !== false );
180
- ( this._mouseStarted ? this._mouseDrag( event ) : this._mouseUp( event ) );
185
+ if ( this._mouseStarted ) {
186
+ this._mouseDrag( event );
187
+ } else {
188
+ this._mouseUp( event );
189
+ }
181
190
  }
182
191
 
183
192
  return !this._mouseStarted;
@@ -224,7 +233,9 @@ return $.widget( "ui.mouse", {
224
233
  _mouseStart: function( /* event */ ) {},
225
234
  _mouseDrag: function( /* event */ ) {},
226
235
  _mouseStop: function( /* event */ ) {},
227
- _mouseCapture: function( /* event */ ) { return true; }
236
+ _mouseCapture: function( /* event */ ) {
237
+ return true;
238
+ }
228
239
  } );
229
240
 
230
- } ) );
241
+ } );
@@ -2,7 +2,7 @@
2
2
  //= require jquery-ui/widget
3
3
 
4
4
  /*!
5
- * jQuery UI Progressbar 1.12.1
5
+ * jQuery UI Progressbar 1.13.0
6
6
  * http://jqueryui.com
7
7
  *
8
8
  * Copyright jQuery Foundation and other contributors
@@ -12,9 +12,9 @@
12
12
 
13
13
  //>>label: Progressbar
14
14
  //>>group: Widgets
15
- // jscs:disable maximumLineLength
15
+ /* eslint-disable max-len */
16
16
  //>>description: Displays a status indicator for loading state, standard percentage, and other progress indicators.
17
- // jscs:enable maximumLineLength
17
+ /* eslint-enable max-len */
18
18
  //>>docs: http://api.jqueryui.com/progressbar/
19
19
  //>>demos: http://jqueryui.com/progressbar/
20
20
  //>>css.structure: ../../themes/base/core.css
@@ -22,6 +22,8 @@
22
22
  //>>css.theme: ../../themes/base/theme.css
23
23
 
24
24
  ( function( factory ) {
25
+ "use strict";
26
+
25
27
  if ( typeof define === "function" && define.amd ) {
26
28
 
27
29
  // AMD. Register as an anonymous module.
@@ -35,10 +37,11 @@
35
37
  // Browser globals
36
38
  factory( jQuery );
37
39
  }
38
- }( function( $ ) {
40
+ } )( function( $ ) {
41
+ "use strict";
39
42
 
40
43
  return $.widget( "ui.progressbar", {
41
- version: "1.12.1",
44
+ version: "1.13.0",
42
45
  options: {
43
46
  classes: {
44
47
  "ui-progressbar": "ui-corner-all",
@@ -178,4 +181,4 @@ return $.widget( "ui.progressbar", {
178
181
  }
179
182
  } );
180
183
 
181
- } ) );
184
+ } );