jquery-ui-rails 6.0.1 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. checksums.yaml +5 -5
  2. data/.gitmodules +1 -1
  3. data/History.md +7 -2
  4. data/README.md +12 -12
  5. data/Rakefile +8 -3
  6. data/VERSIONS.md +1 -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 -1
  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
@@ -5,7 +5,7 @@
5
5
  //= require jquery-ui/widget
6
6
 
7
7
  /*!
8
- * jQuery UI Resizable 1.12.1
8
+ * jQuery UI Resizable 1.13.0
9
9
  * http://jqueryui.com
10
10
  *
11
11
  * Copyright jQuery Foundation and other contributors
@@ -23,6 +23,8 @@
23
23
  //>>css.theme: ../../themes/base/theme.css
24
24
 
25
25
  ( function( factory ) {
26
+ "use strict";
27
+
26
28
  if ( typeof define === "function" && define.amd ) {
27
29
 
28
30
  // AMD. Register as an anonymous module.
@@ -39,10 +41,11 @@
39
41
  // Browser globals
40
42
  factory( jQuery );
41
43
  }
42
- }( function( $ ) {
44
+ } )( function( $ ) {
45
+ "use strict";
43
46
 
44
47
  $.widget( "ui.resizable", $.ui.mouse, {
45
- version: "1.12.1",
48
+ version: "1.13.0",
46
49
  widgetEventPrefix: "resize",
47
50
  options: {
48
51
  alsoResize: false,
@@ -97,9 +100,15 @@ $.widget( "ui.resizable", $.ui.mouse, {
97
100
  // TODO: determine which cases actually cause this to happen
98
101
  // if the element doesn't have the scroll set, see if it's possible to
99
102
  // set the scroll
100
- el[ scroll ] = 1;
101
- has = ( el[ scroll ] > 0 );
102
- el[ scroll ] = 0;
103
+ try {
104
+ el[ scroll ] = 1;
105
+ has = ( el[ scroll ] > 0 );
106
+ el[ scroll ] = 0;
107
+ } catch ( e ) {
108
+
109
+ // `el` might be a string, then setting `scroll` will throw
110
+ // an error in strict mode; ignore it.
111
+ }
103
112
  return has;
104
113
  },
105
114
 
@@ -122,7 +131,8 @@ $.widget( "ui.resizable", $.ui.mouse, {
122
131
  if ( this.element[ 0 ].nodeName.match( /^(canvas|textarea|input|select|button|img)$/i ) ) {
123
132
 
124
133
  this.element.wrap(
125
- $( "<div class='ui-wrapper' style='overflow: hidden;'></div>" ).css( {
134
+ $( "<div class='ui-wrapper'></div>" ).css( {
135
+ overflow: "hidden",
126
136
  position: this.element.css( "position" ),
127
137
  width: this.element.outerWidth(),
128
138
  height: this.element.outerHeight(),
@@ -193,15 +203,14 @@ $.widget( "ui.resizable", $.ui.mouse, {
193
203
  _destroy: function() {
194
204
 
195
205
  this._mouseDestroy();
206
+ this._addedHandles.remove();
196
207
 
197
208
  var wrapper,
198
209
  _destroy = function( exp ) {
199
210
  $( exp )
200
211
  .removeData( "resizable" )
201
212
  .removeData( "ui-resizable" )
202
- .off( ".resizable" )
203
- .find( ".ui-resizable-handle" )
204
- .remove();
213
+ .off( ".resizable" );
205
214
  };
206
215
 
207
216
  // TODO: Unwrap at same DOM position
@@ -232,6 +241,9 @@ $.widget( "ui.resizable", $.ui.mouse, {
232
241
  this._removeHandles();
233
242
  this._setupHandles();
234
243
  break;
244
+ case "aspectRatio":
245
+ this._aspectRatio = !!value;
246
+ break;
235
247
  default:
236
248
  break;
237
249
  }
@@ -253,6 +265,7 @@ $.widget( "ui.resizable", $.ui.mouse, {
253
265
  } );
254
266
 
255
267
  this._handles = $();
268
+ this._addedHandles = $();
256
269
  if ( this.handles.constructor === String ) {
257
270
 
258
271
  if ( this.handles === "all" ) {
@@ -264,7 +277,7 @@ $.widget( "ui.resizable", $.ui.mouse, {
264
277
 
265
278
  for ( i = 0; i < n.length; i++ ) {
266
279
 
267
- handle = $.trim( n[ i ] );
280
+ handle = String.prototype.trim.call( n[ i ] );
268
281
  hname = "ui-resizable-" + handle;
269
282
  axis = $( "<div>" );
270
283
  this._addClass( axis, "ui-resizable-handle " + hname );
@@ -272,7 +285,10 @@ $.widget( "ui.resizable", $.ui.mouse, {
272
285
  axis.css( { zIndex: o.zIndex } );
273
286
 
274
287
  this.handles[ handle ] = ".ui-resizable-" + handle;
275
- this.element.append( axis );
288
+ if ( !this.element.children( this.handles[ handle ] ).length ) {
289
+ this.element.append( axis );
290
+ this._addedHandles = this._addedHandles.add( axis );
291
+ }
276
292
  }
277
293
 
278
294
  }
@@ -338,7 +354,7 @@ $.widget( "ui.resizable", $.ui.mouse, {
338
354
  },
339
355
 
340
356
  _removeHandles: function() {
341
- this._handles.remove();
357
+ this._addedHandles.remove();
342
358
  },
343
359
 
344
360
  _mouseCapture: function( event ) {
@@ -718,7 +734,7 @@ $.widget( "ui.resizable", $.ui.mouse, {
718
734
 
719
735
  if ( this._helper ) {
720
736
 
721
- this.helper = this.helper || $( "<div style='overflow:hidden;'></div>" );
737
+ this.helper = this.helper || $( "<div></div>" ).css( { overflow: "hidden" } );
722
738
 
723
739
  this._addClass( this.helper, this._helper );
724
740
  this.helper.css( {
@@ -775,7 +791,9 @@ $.widget( "ui.resizable", $.ui.mouse, {
775
791
 
776
792
  _propagate: function( n, event ) {
777
793
  $.ui.plugin.call( this, n, [ event, this.ui() ] );
778
- ( n !== "resize" && this._trigger( n, event, this.ui() ) );
794
+ if ( n !== "resize" ) {
795
+ this._trigger( n, event, this.ui() );
796
+ }
779
797
  },
780
798
 
781
799
  plugins: {},
@@ -896,8 +914,8 @@ $.ui.plugin.add( "resizable", "containment", {
896
914
  co = that.containerOffset;
897
915
  ch = that.containerSize.height;
898
916
  cw = that.containerSize.width;
899
- width = ( that._hasScroll ( ce, "left" ) ? ce.scrollWidth : cw );
900
- height = ( that._hasScroll ( ce ) ? ce.scrollHeight : ch ) ;
917
+ width = ( that._hasScroll( ce, "left" ) ? ce.scrollWidth : cw );
918
+ height = ( that._hasScroll( ce ) ? ce.scrollHeight : ch );
901
919
 
902
920
  that.parentData = {
903
921
  element: ce,
@@ -1204,4 +1222,4 @@ $.ui.plugin.add( "resizable", "grid", {
1204
1222
 
1205
1223
  return $.ui.resizable;
1206
1224
 
1207
- } ) );
1225
+ } );
@@ -3,7 +3,7 @@
3
3
  //= require jquery-ui/widget
4
4
 
5
5
  /*!
6
- * jQuery UI Selectable 1.12.1
6
+ * jQuery UI Selectable 1.13.0
7
7
  * http://jqueryui.com
8
8
  *
9
9
  * Copyright jQuery Foundation and other contributors
@@ -19,6 +19,8 @@
19
19
  //>>css.structure: ../../themes/base/selectable.css
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.
@@ -33,10 +35,11 @@
33
35
  // Browser globals
34
36
  factory( jQuery );
35
37
  }
36
- }( function( $ ) {
38
+ } )( function( $ ) {
39
+ "use strict";
37
40
 
38
41
  return $.widget( "ui.selectable", $.ui.mouse, {
39
- version: "1.12.1",
42
+ version: "1.13.0",
40
43
  options: {
41
44
  appendTo: "body",
42
45
  autoRefresh: true,
@@ -187,8 +190,12 @@ return $.widget( "ui.selectable", $.ui.mouse, {
187
190
  x2 = event.pageX,
188
191
  y2 = event.pageY;
189
192
 
190
- if ( x1 > x2 ) { tmp = x2; x2 = x1; x1 = tmp; }
191
- if ( y1 > y2 ) { tmp = y2; y2 = y1; y1 = tmp; }
193
+ if ( x1 > x2 ) {
194
+ tmp = x2; x2 = x1; x1 = tmp;
195
+ }
196
+ if ( y1 > y2 ) {
197
+ tmp = y2; y2 = y1; y1 = tmp;
198
+ }
192
199
  this.helper.css( { left: x1, top: y1, width: x2 - x1, height: y2 - y1 } );
193
200
 
194
201
  this.selectees.each( function() {
@@ -311,4 +318,4 @@ return $.widget( "ui.selectable", $.ui.mouse, {
311
318
 
312
319
  } );
313
320
 
314
- } ) );
321
+ } );
@@ -1,5 +1,4 @@
1
1
  //= require jquery-ui/widgets/menu
2
- //= require jquery-ui/escape-selector
3
2
  //= require jquery-ui/form-reset-mixin
4
3
  //= require jquery-ui/keycode
5
4
  //= require jquery-ui/labels
@@ -9,7 +8,7 @@
9
8
  //= require jquery-ui/widget
10
9
 
11
10
  /*!
12
- * jQuery UI Selectmenu 1.12.1
11
+ * jQuery UI Selectmenu 1.13.0
13
12
  * http://jqueryui.com
14
13
  *
15
14
  * Copyright jQuery Foundation and other contributors
@@ -19,9 +18,9 @@
19
18
 
20
19
  //>>label: Selectmenu
21
20
  //>>group: Widgets
22
- // jscs:disable maximumLineLength
21
+ /* eslint-disable max-len */
23
22
  //>>description: Duplicates and extends the functionality of a native HTML select element, allowing it to be customizable in behavior and appearance far beyond the limitations of a native select.
24
- // jscs:enable maximumLineLength
23
+ /* eslint-enable max-len */
25
24
  //>>docs: http://api.jqueryui.com/selectmenu/
26
25
  //>>demos: http://jqueryui.com/selectmenu/
27
26
  //>>css.structure: ../../themes/base/core.css
@@ -29,13 +28,14 @@
29
28
  //>>css.theme: ../../themes/base/theme.css
30
29
 
31
30
  ( function( factory ) {
31
+ "use strict";
32
+
32
33
  if ( typeof define === "function" && define.amd ) {
33
34
 
34
35
  // AMD. Register as an anonymous module.
35
36
  define( [
36
37
  "jquery",
37
38
  "./menu",
38
- "../escape-selector",
39
39
  "../form-reset-mixin",
40
40
  "../keycode",
41
41
  "../labels",
@@ -49,10 +49,11 @@
49
49
  // Browser globals
50
50
  factory( jQuery );
51
51
  }
52
- }( function( $ ) {
52
+ } )( function( $ ) {
53
+ "use strict";
53
54
 
54
55
  return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
55
- version: "1.12.1",
56
+ version: "1.13.0",
56
57
  defaultElement: "<select>",
57
58
  options: {
58
59
  appendTo: null,
@@ -107,7 +108,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
107
108
  this.labels = this.element.labels().attr( "for", this.ids.button );
108
109
  this._on( this.labels, {
109
110
  click: function( event ) {
110
- this.button.focus();
111
+ this.button.trigger( "focus" );
111
112
  event.preventDefault();
112
113
  }
113
114
  } );
@@ -435,7 +436,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
435
436
  }
436
437
 
437
438
  if ( !$( event.target ).closest( ".ui-selectmenu-menu, #" +
438
- $.ui.escapeSelector( this.ids.button ) ).length ) {
439
+ $.escapeSelector( this.ids.button ) ).length ) {
439
440
  this.close( event );
440
441
  }
441
442
  }
@@ -666,6 +667,10 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
666
667
  var that = this,
667
668
  data = [];
668
669
  options.each( function( index, item ) {
670
+ if ( item.hidden ) {
671
+ return;
672
+ }
673
+
669
674
  data.push( that._parseOption( $( item ), index ) );
670
675
  } );
671
676
  this.items = data;
@@ -694,4 +699,4 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
694
699
  }
695
700
  } ] );
696
701
 
697
- } ) );
702
+ } );
@@ -4,7 +4,7 @@
4
4
  //= require jquery-ui/widget
5
5
 
6
6
  /*!
7
- * jQuery UI Slider 1.12.1
7
+ * jQuery UI Slider 1.13.0
8
8
  * http://jqueryui.com
9
9
  *
10
10
  * Copyright jQuery Foundation and other contributors
@@ -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.
@@ -37,10 +39,11 @@
37
39
  // Browser globals
38
40
  factory( jQuery );
39
41
  }
40
- }( function( $ ) {
42
+ } )( function( $ ) {
43
+ "use strict";
41
44
 
42
45
  return $.widget( "ui.slider", $.ui.mouse, {
43
- version: "1.12.1",
46
+ version: "1.13.0",
44
47
  widgetEventPrefix: "slide",
45
48
 
46
49
  options: {
@@ -137,7 +140,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
137
140
  options.values = [ this._valueMin(), this._valueMin() ];
138
141
  } else if ( options.values.length && options.values.length !== 2 ) {
139
142
  options.values = [ options.values[ 0 ], options.values[ 0 ] ];
140
- } else if ( $.isArray( options.values ) ) {
143
+ } else if ( Array.isArray( options.values ) ) {
141
144
  options.values = options.values.slice( 0 );
142
145
  }
143
146
  }
@@ -400,7 +403,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
400
403
  }
401
404
 
402
405
  if ( arguments.length ) {
403
- if ( $.isArray( arguments[ 0 ] ) ) {
406
+ if ( Array.isArray( arguments[ 0 ] ) ) {
404
407
  vals = this.options.values;
405
408
  newValues = arguments[ 0 ];
406
409
  for ( i = 0; i < vals.length; i += 1 ) {
@@ -434,7 +437,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
434
437
  }
435
438
  }
436
439
 
437
- if ( $.isArray( this.options.values ) ) {
440
+ if ( Array.isArray( this.options.values ) ) {
438
441
  valsLength = this.options.values.length;
439
442
  }
440
443
 
@@ -754,4 +757,4 @@ return $.widget( "ui.slider", $.ui.mouse, {
754
757
  }
755
758
  } );
756
759
 
757
- } ) );
760
+ } );