jquery-ui-rails 7.0.0 → 8.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 (141) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +1 -1
  3. data/History.md +4 -0
  4. data/VERSIONS.md +1 -0
  5. data/app/assets/javascripts/jquery-ui/data.js +10 -16
  6. data/app/assets/javascripts/jquery-ui/disable-selection.js +5 -5
  7. data/app/assets/javascripts/jquery-ui/effect.js +17 -38
  8. data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +6 -6
  9. data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +6 -6
  10. data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +6 -6
  11. data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +6 -6
  12. data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +6 -6
  13. data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +6 -6
  14. data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +6 -6
  15. data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +6 -6
  16. data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +6 -6
  17. data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +6 -6
  18. data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +6 -6
  19. data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +6 -6
  20. data/app/assets/javascripts/jquery-ui/effects/effect-size.js +6 -6
  21. data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +6 -6
  22. data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +7 -7
  23. data/app/assets/javascripts/jquery-ui/focusable.js +7 -17
  24. data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +6 -8
  25. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +2 -2
  26. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +2 -2
  27. data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +2 -2
  28. data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +2 -2
  29. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +3 -3
  30. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +2 -2
  31. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +2 -2
  32. data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +2 -2
  33. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +2 -2
  34. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +2 -2
  35. data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +1 -1
  36. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +2 -2
  37. data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +2 -2
  38. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +2 -2
  39. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +2 -2
  40. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +2 -2
  41. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +2 -2
  42. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +2 -2
  43. data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +2 -2
  44. data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +2 -2
  45. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +2 -2
  46. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +2 -2
  47. data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +6 -5
  48. data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +2 -2
  49. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +2 -2
  50. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +2 -2
  51. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +2 -2
  52. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +2 -2
  53. data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +2 -2
  54. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +2 -2
  55. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +2 -2
  56. data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +2 -2
  57. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +2 -2
  58. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +2 -2
  59. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +2 -2
  60. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +3 -3
  61. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +2 -2
  62. data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +2 -2
  63. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +2 -2
  64. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +2 -2
  65. data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +2 -2
  66. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +2 -2
  67. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +2 -2
  68. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +2 -2
  69. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +2 -2
  70. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +2 -2
  71. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +2 -2
  72. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +2 -2
  73. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +2 -2
  74. data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +2 -2
  75. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +2 -2
  76. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +2 -2
  77. data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +2 -2
  78. data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +2 -2
  79. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +2 -2
  80. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +2 -2
  81. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +2 -2
  82. data/app/assets/javascripts/jquery-ui/jquery-patch.js +8 -41
  83. data/app/assets/javascripts/jquery-ui/keycode.js +5 -5
  84. data/app/assets/javascripts/jquery-ui/labels.js +8 -9
  85. data/app/assets/javascripts/jquery-ui/position.js +7 -7
  86. data/app/assets/javascripts/jquery-ui/scroll-parent.js +5 -5
  87. data/app/assets/javascripts/jquery-ui/tabbable.js +5 -5
  88. data/app/assets/javascripts/jquery-ui/unique-id.js +5 -5
  89. data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +19 -50
  90. data/app/assets/javascripts/jquery-ui/version.js +1 -1
  91. data/app/assets/javascripts/jquery-ui/widget.js +17 -10
  92. data/app/assets/javascripts/jquery-ui/widgets/accordion.js +18 -18
  93. data/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +21 -55
  94. data/app/assets/javascripts/jquery-ui/widgets/button.js +11 -11
  95. data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +22 -17
  96. data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +7 -7
  97. data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +12 -15
  98. data/app/assets/javascripts/jquery-ui/widgets/dialog.js +25 -36
  99. data/app/assets/javascripts/jquery-ui/widgets/draggable.js +10 -14
  100. data/app/assets/javascripts/jquery-ui/widgets/droppable.js +8 -8
  101. data/app/assets/javascripts/jquery-ui/widgets/menu.js +9 -11
  102. data/app/assets/javascripts/jquery-ui/widgets/mouse.js +20 -35
  103. data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +7 -7
  104. data/app/assets/javascripts/jquery-ui/widgets/resizable.js +82 -26
  105. data/app/assets/javascripts/jquery-ui/widgets/selectable.js +7 -7
  106. data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +22 -49
  107. data/app/assets/javascripts/jquery-ui/widgets/slider.js +7 -7
  108. data/app/assets/javascripts/jquery-ui/widgets/sortable.js +76 -85
  109. data/app/assets/javascripts/jquery-ui/widgets/spinner.js +11 -35
  110. data/app/assets/javascripts/jquery-ui/widgets/tabs.js +22 -56
  111. data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +25 -27
  112. data/app/assets/javascripts/jquery-ui.js +0 -5
  113. data/app/assets/stylesheets/jquery-ui/accordion.css +5 -5
  114. data/app/assets/stylesheets/jquery-ui/all.css +5 -5
  115. data/app/assets/stylesheets/jquery-ui/autocomplete.css +5 -5
  116. data/app/assets/stylesheets/jquery-ui/base.css +5 -5
  117. data/app/assets/stylesheets/jquery-ui/button.css +6 -11
  118. data/app/assets/stylesheets/jquery-ui/checkboxradio.css +5 -5
  119. data/app/assets/stylesheets/jquery-ui/controlgroup.css +5 -8
  120. data/app/assets/stylesheets/jquery-ui/core.css +5 -9
  121. data/app/assets/stylesheets/jquery-ui/datepicker.css +5 -5
  122. data/app/assets/stylesheets/jquery-ui/dialog.css +5 -5
  123. data/app/assets/stylesheets/jquery-ui/draggable.css +4 -5
  124. data/app/assets/stylesheets/jquery-ui/menu.css +5 -7
  125. data/app/assets/stylesheets/jquery-ui/progressbar.css +5 -6
  126. data/app/assets/stylesheets/jquery-ui/resizable.css +4 -5
  127. data/app/assets/stylesheets/jquery-ui/selectable.css +4 -5
  128. data/app/assets/stylesheets/jquery-ui/selectmenu.css +5 -5
  129. data/app/assets/stylesheets/jquery-ui/slider.css +5 -12
  130. data/app/assets/stylesheets/jquery-ui/sortable.css +4 -5
  131. data/app/assets/stylesheets/jquery-ui/spinner.css +5 -5
  132. data/app/assets/stylesheets/jquery-ui/tabs.css +5 -5
  133. data/app/assets/stylesheets/jquery-ui/theme.css.erb +6 -13
  134. data/app/assets/stylesheets/jquery-ui/tooltip.css +5 -5
  135. data/lib/jquery/ui/rails/version.rb +2 -2
  136. metadata +6 -11
  137. data/app/assets/javascripts/jquery-ui/core.js +0 -15
  138. data/app/assets/javascripts/jquery-ui/form.js +0 -25
  139. data/app/assets/javascripts/jquery-ui/ie.js +0 -20
  140. data/app/assets/javascripts/jquery-ui/safe-active-element.js +0 -46
  141. data/app/assets/javascripts/jquery-ui/safe-blur.js +0 -27
@@ -4,12 +4,12 @@
4
4
  //= require jquery-ui/widget
5
5
 
6
6
  /*!
7
- * jQuery UI Accordion 1.13.0
8
- * http://jqueryui.com
7
+ * jQuery UI Accordion 1.14.1
8
+ * https://jqueryui.com
9
9
  *
10
- * Copyright jQuery Foundation and other contributors
10
+ * Copyright OpenJS Foundation and other contributors
11
11
  * Released under the MIT license.
12
- * http://jquery.org/license
12
+ * https://jquery.org/license
13
13
  */
14
14
 
15
15
  //>>label: Accordion
@@ -17,8 +17,8 @@
17
17
  /* eslint-disable max-len */
18
18
  //>>description: Displays collapsible content panels for presenting information in a limited amount of space.
19
19
  /* eslint-enable max-len */
20
- //>>docs: http://api.jqueryui.com/accordion/
21
- //>>demos: http://jqueryui.com/accordion/
20
+ //>>docs: https://api.jqueryui.com/accordion/
21
+ //>>demos: https://jqueryui.com/accordion/
22
22
  //>>css.structure: ../../themes/base/core.css
23
23
  //>>css.structure: ../../themes/base/accordion.css
24
24
  //>>css.theme: ../../themes/base/theme.css
@@ -45,7 +45,7 @@
45
45
  "use strict";
46
46
 
47
47
  return $.widget( "ui.accordion", {
48
- version: "1.13.0",
48
+ version: "1.14.1",
49
49
  options: {
50
50
  active: 0,
51
51
  animate: {},
@@ -57,7 +57,17 @@ return $.widget( "ui.accordion", {
57
57
  collapsible: false,
58
58
  event: "click",
59
59
  header: function( elem ) {
60
- return elem.find( "> li > :first-child" ).add( elem.find( "> :not(li)" ).even() );
60
+ return elem
61
+ .find( "> li > :first-child" )
62
+ .add(
63
+ elem.find( "> :not(li)" )
64
+
65
+ // Support: jQuery <3.5 only
66
+ // We could use `.even()` but that's unavailable in older jQuery.
67
+ .filter( function( i ) {
68
+ return i % 2 === 0;
69
+ } )
70
+ );
61
71
  },
62
72
  heightStyle: "auto",
63
73
  icons: {
@@ -192,13 +202,7 @@ return $.widget( "ui.accordion", {
192
202
  this._super( value );
193
203
 
194
204
  this.element.attr( "aria-disabled", value );
195
-
196
- // Support: IE8 Only
197
- // #5332 / #6059 - opacity doesn't cascade to positioned elements in IE
198
- // so we need to add the disabled class to the headers and panels
199
205
  this._toggleClass( null, "ui-state-disabled", !!value );
200
- this._toggleClass( this.headers.add( this.headers.next() ), null, "ui-state-disabled",
201
- !!value );
202
206
  },
203
207
 
204
208
  _keydown: function( event ) {
@@ -616,10 +620,6 @@ return $.widget( "ui.accordion", {
616
620
  this._removeClass( prev, "ui-accordion-header-active" )
617
621
  ._addClass( prev, "ui-accordion-header-collapsed" );
618
622
 
619
- // Work around for rendering bug in IE (#5421)
620
- if ( toHide.length ) {
621
- toHide.parent()[ 0 ].className = toHide.parent()[ 0 ].className;
622
- }
623
623
  this._trigger( "activate", null, data );
624
624
  }
625
625
  } );
@@ -1,24 +1,23 @@
1
1
  //= require jquery-ui/widgets/menu
2
2
  //= require jquery-ui/keycode
3
3
  //= require jquery-ui/position
4
- //= require jquery-ui/safe-active-element
5
4
  //= require jquery-ui/version
6
5
  //= require jquery-ui/widget
7
6
 
8
7
  /*!
9
- * jQuery UI Autocomplete 1.13.0
10
- * http://jqueryui.com
8
+ * jQuery UI Autocomplete 1.14.1
9
+ * https://jqueryui.com
11
10
  *
12
- * Copyright jQuery Foundation and other contributors
11
+ * Copyright OpenJS Foundation and other contributors
13
12
  * Released under the MIT license.
14
- * http://jquery.org/license
13
+ * https://jquery.org/license
15
14
  */
16
15
 
17
16
  //>>label: Autocomplete
18
17
  //>>group: Widgets
19
18
  //>>description: Lists suggested words as the user is typing.
20
- //>>docs: http://api.jqueryui.com/autocomplete/
21
- //>>demos: http://jqueryui.com/autocomplete/
19
+ //>>docs: https://api.jqueryui.com/autocomplete/
20
+ //>>demos: https://jqueryui.com/autocomplete/
22
21
  //>>css.structure: ../../themes/base/core.css
23
22
  //>>css.structure: ../../themes/base/autocomplete.css
24
23
  //>>css.theme: ../../themes/base/theme.css
@@ -34,7 +33,6 @@
34
33
  "./menu",
35
34
  "../keycode",
36
35
  "../position",
37
- "../safe-active-element",
38
36
  "../version",
39
37
  "../widget"
40
38
  ], factory );
@@ -47,7 +45,7 @@
47
45
  "use strict";
48
46
 
49
47
  $.widget( "ui.autocomplete", {
50
- version: "1.13.0",
48
+ version: "1.14.1",
51
49
  defaultElement: "<input>",
52
50
  options: {
53
51
  appendTo: null,
@@ -73,6 +71,7 @@ $.widget( "ui.autocomplete", {
73
71
 
74
72
  requestIndex: 0,
75
73
  pending: 0,
74
+ liveRegionTimer: null,
76
75
 
77
76
  _create: function() {
78
77
 
@@ -90,9 +89,9 @@ $.widget( "ui.autocomplete", {
90
89
 
91
90
  // Textareas are always multi-line
92
91
  // Inputs are always single-line, even if inside a contentEditable element
93
- // IE also treats inputs as contentEditable
94
- // All other element types are determined by whether or not they're contentEditable
95
- this.isMultiLine = isTextarea || !isInput && this._isContentEditable( this.element );
92
+ // All other element types are determined by whether they're contentEditable
93
+ this.isMultiLine = isTextarea ||
94
+ !isInput && this.element.prop( "contentEditable" ) === "true";
96
95
 
97
96
  this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ];
98
97
  this.isNewMenu = true;
@@ -156,7 +155,6 @@ $.widget( "ui.autocomplete", {
156
155
 
157
156
  // Different browsers have different default behavior for escape
158
157
  // Single press can mean undo or clear
159
- // Double press in IE means clear the whole form
160
158
  event.preventDefault();
161
159
  }
162
160
  break;
@@ -225,16 +223,6 @@ $.widget( "ui.autocomplete", {
225
223
  role: null
226
224
  } )
227
225
  .hide()
228
-
229
- // Support: IE 11 only, Edge <= 14
230
- // For other browsers, we preventDefault() on the mousedown event
231
- // to keep the dropdown from taking focus from the input. This doesn't
232
- // work for IE/Edge, causing problems with selection and scrolling (#9638)
233
- // Happily, IE and Edge support an "unselectable" attribute that
234
- // prevents an element from receiving focus, exactly what we want here.
235
- .attr( {
236
- "unselectable": "on"
237
- } )
238
226
  .menu( "instance" );
239
227
 
240
228
  this._addClass( this.menu.element, "ui-autocomplete", "ui-front" );
@@ -247,7 +235,7 @@ $.widget( "ui.autocomplete", {
247
235
  menufocus: function( event, ui ) {
248
236
  var label, item;
249
237
 
250
- // support: Firefox
238
+ // Support: Firefox
251
239
  // Prevent accidental activation of menu items in Firefox (#7024 #9118)
252
240
  if ( this.isNewMenu ) {
253
241
  this.isNewMenu = false;
@@ -274,8 +262,10 @@ $.widget( "ui.autocomplete", {
274
262
  // Announce the value in the liveRegion
275
263
  label = ui.item.attr( "aria-label" ) || item.value;
276
264
  if ( label && String.prototype.trim.call( label ).length ) {
277
- this.liveRegion.children().hide();
278
- $( "<div>" ).text( label ).appendTo( this.liveRegion );
265
+ clearTimeout( this.liveRegionTimer );
266
+ this.liveRegionTimer = this._delay( function() {
267
+ this.liveRegion.html( $( "<div>" ).text( label ) );
268
+ }, 100 );
279
269
  }
280
270
  },
281
271
  menuselect: function( event, ui ) {
@@ -283,17 +273,9 @@ $.widget( "ui.autocomplete", {
283
273
  previous = this.previous;
284
274
 
285
275
  // Only trigger when focus was lost (click on menu)
286
- if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) {
276
+ if ( this.element[ 0 ] !== this.document[ 0 ].activeElement ) {
287
277
  this.element.trigger( "focus" );
288
278
  this.previous = previous;
289
-
290
- // #6109 - IE triggers two focus events and the second
291
- // is asynchronous, so we need to reset the previous
292
- // term synchronously and asynchronously :-(
293
- this._delay( function() {
294
- this.previous = previous;
295
- this.selectedItem = item;
296
- } );
297
279
  }
298
280
 
299
281
  if ( false !== this._trigger( "select", event, { item: item } ) ) {
@@ -612,24 +594,6 @@ $.widget( "ui.autocomplete", {
612
594
  // Prevents moving cursor to beginning/end of the text field in some browsers
613
595
  event.preventDefault();
614
596
  }
615
- },
616
-
617
- // Support: Chrome <=50
618
- // We should be able to just use this.element.prop( "isContentEditable" )
619
- // but hidden elements always report false in Chrome.
620
- // https://code.google.com/p/chromium/issues/detail?id=313082
621
- _isContentEditable: function( element ) {
622
- if ( !element.length ) {
623
- return false;
624
- }
625
-
626
- var editable = element.prop( "contentEditable" );
627
-
628
- if ( editable === "inherit" ) {
629
- return this._isContentEditable( element.parent() );
630
- }
631
-
632
- return editable === "true";
633
597
  }
634
598
  } );
635
599
 
@@ -670,8 +634,10 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, {
670
634
  } else {
671
635
  message = this.options.messages.noResults;
672
636
  }
673
- this.liveRegion.children().hide();
674
- $( "<div>" ).text( message ).appendTo( this.liveRegion );
637
+ clearTimeout( this.liveRegionTimer );
638
+ this.liveRegionTimer = this._delay( function() {
639
+ this.liveRegion.html( $( "<div>" ).text( message ) );
640
+ }, 100 );
675
641
  }
676
642
  } );
677
643
 
@@ -4,19 +4,19 @@
4
4
  //= require jquery-ui/widget
5
5
 
6
6
  /*!
7
- * jQuery UI Button 1.13.0
8
- * http://jqueryui.com
7
+ * jQuery UI Button 1.14.1
8
+ * https://jqueryui.com
9
9
  *
10
- * Copyright jQuery Foundation and other contributors
10
+ * Copyright OpenJS Foundation and other contributors
11
11
  * Released under the MIT license.
12
- * http://jquery.org/license
12
+ * https://jquery.org/license
13
13
  */
14
14
 
15
15
  //>>label: Button
16
16
  //>>group: Widgets
17
17
  //>>description: Enhances a form with themeable buttons.
18
- //>>docs: http://api.jqueryui.com/button/
19
- //>>demos: http://jqueryui.com/button/
18
+ //>>docs: https://api.jqueryui.com/button/
19
+ //>>demos: https://jqueryui.com/button/
20
20
  //>>css.structure: ../../themes/base/core.css
21
21
  //>>css.structure: ../../themes/base/button.css
22
22
  //>>css.theme: ../../themes/base/theme.css
@@ -47,7 +47,7 @@
47
47
  "use strict";
48
48
 
49
49
  $.widget( "ui.button", {
50
- version: "1.13.0",
50
+ version: "1.14.1",
51
51
  defaultElement: "<button>",
52
52
  options: {
53
53
  classes: {
@@ -114,9 +114,9 @@ $.widget( "ui.button", {
114
114
  if ( event.keyCode === $.ui.keyCode.SPACE ) {
115
115
  event.preventDefault();
116
116
 
117
- // Support: PhantomJS <= 1.9, IE 8 Only
118
- // If a native click is available use it so we actually cause navigation
119
- // otherwise just trigger a click event
117
+ // If a native click is available use it, so we
118
+ // actually cause navigation. Otherwise, just trigger
119
+ // a click event.
120
120
  if ( this.element[ 0 ].click ) {
121
121
  this.element[ 0 ].click();
122
122
  } else {
@@ -292,7 +292,7 @@ $.widget( "ui.button", {
292
292
  } );
293
293
 
294
294
  // DEPRECATED
295
- if ( $.uiBackCompat !== false ) {
295
+ if ( $.uiBackCompat === true ) {
296
296
 
297
297
  // Text and Icons options
298
298
  $.widget( "ui.button", $.ui.button, {
@@ -3,19 +3,19 @@
3
3
  //= require jquery-ui/widget
4
4
 
5
5
  /*!
6
- * jQuery UI Checkboxradio 1.13.0
7
- * http://jqueryui.com
6
+ * jQuery UI Checkboxradio 1.14.1
7
+ * https://jqueryui.com
8
8
  *
9
- * Copyright jQuery Foundation and other contributors
9
+ * Copyright OpenJS Foundation and other contributors
10
10
  * Released under the MIT license.
11
- * http://jquery.org/license
11
+ * https://jquery.org/license
12
12
  */
13
13
 
14
14
  //>>label: Checkboxradio
15
15
  //>>group: Widgets
16
16
  //>>description: Enhances a form with multiple themeable checkboxes or radio buttons.
17
- //>>docs: http://api.jqueryui.com/checkboxradio/
18
- //>>demos: http://jqueryui.com/checkboxradio/
17
+ //>>docs: https://api.jqueryui.com/checkboxradio/
18
+ //>>demos: https://jqueryui.com/checkboxradio/
19
19
  //>>css.structure: ../../themes/base/core.css
20
20
  //>>css.structure: ../../themes/base/button.css
21
21
  //>>css.structure: ../../themes/base/checkboxradio.css
@@ -42,7 +42,7 @@
42
42
  "use strict";
43
43
 
44
44
  $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
45
- version: "1.13.0",
45
+ version: "1.14.1",
46
46
  options: {
47
47
  disabled: null,
48
48
  label: null,
@@ -54,8 +54,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
54
54
  },
55
55
 
56
56
  _getCreateOptions: function() {
57
- var disabled, labels;
58
- var that = this;
57
+ var disabled, labels, labelContents;
59
58
  var options = this._super() || {};
60
59
 
61
60
  // We read the type here, because it makes more sense to throw a element type error first,
@@ -75,12 +74,18 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
75
74
 
76
75
  // We need to get the label text but this may also need to make sure it does not contain the
77
76
  // input itself.
78
- this.label.contents().not( this.element[ 0 ] ).each( function() {
79
-
80
- // The label contents could be text, html, or a mix. We concat each element to get a
81
- // string representation of the label, without the input as part of it.
82
- that.originalLabel += this.nodeType === 3 ? $( this ).text() : this.outerHTML;
83
- } );
77
+ // The label contents could be text, html, or a mix. We wrap all elements
78
+ // and read the wrapper's `innerHTML` to get a string representation of
79
+ // the label, without the input as part of it.
80
+ labelContents = this.label.contents().not( this.element[ 0 ] );
81
+
82
+ if ( labelContents.length ) {
83
+ this.originalLabel += labelContents
84
+ .clone()
85
+ .wrapAll( "<div></div>" )
86
+ .parent()
87
+ .html();
88
+ }
84
89
 
85
90
  // Set the label option if we found label text
86
91
  if ( this.originalLabel ) {
@@ -155,7 +160,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
155
160
  _getRadioGroup: function() {
156
161
  var group;
157
162
  var name = this.element[ 0 ].name;
158
- var nameSelector = "input[name='" + $.escapeSelector( name ) + "']";
163
+ var nameSelector = "input[name='" + CSS.escape( name ) + "']";
159
164
 
160
165
  if ( !name ) {
161
166
  return $( [] );
@@ -167,7 +172,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
167
172
 
168
173
  // Not inside a form, check all inputs that also are not inside a form
169
174
  group = $( nameSelector ).filter( function() {
170
- return $( this )._form().length === 0;
175
+ return $( $( this ).prop( "form" ) ).length === 0;
171
176
  } );
172
177
  }
173
178
 
@@ -1,19 +1,19 @@
1
1
  //= require jquery-ui/widget
2
2
 
3
3
  /*!
4
- * jQuery UI Controlgroup 1.13.0
5
- * http://jqueryui.com
4
+ * jQuery UI Controlgroup 1.14.1
5
+ * https://jqueryui.com
6
6
  *
7
- * Copyright jQuery Foundation and other contributors
7
+ * Copyright OpenJS Foundation and other contributors
8
8
  * Released under the MIT license.
9
- * http://jquery.org/license
9
+ * https://jquery.org/license
10
10
  */
11
11
 
12
12
  //>>label: Controlgroup
13
13
  //>>group: Widgets
14
14
  //>>description: Visually groups form control widgets
15
- //>>docs: http://api.jqueryui.com/controlgroup/
16
- //>>demos: http://jqueryui.com/controlgroup/
15
+ //>>docs: https://api.jqueryui.com/controlgroup/
16
+ //>>demos: https://jqueryui.com/controlgroup/
17
17
  //>>css.structure: ../../themes/base/core.css
18
18
  //>>css.structure: ../../themes/base/controlgroup.css
19
19
  //>>css.theme: ../../themes/base/theme.css
@@ -39,7 +39,7 @@
39
39
  var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
40
40
 
41
41
  return $.widget( "ui.controlgroup", {
42
- version: "1.13.0",
42
+ version: "1.14.1",
43
43
  defaultElement: "<div>",
44
44
  options: {
45
45
  direction: "horizontal",
@@ -3,19 +3,19 @@
3
3
 
4
4
  /* eslint-disable max-len, camelcase */
5
5
  /*!
6
- * jQuery UI Datepicker 1.13.0
7
- * http://jqueryui.com
6
+ * jQuery UI Datepicker 1.14.1
7
+ * https://jqueryui.com
8
8
  *
9
- * Copyright jQuery Foundation and other contributors
9
+ * Copyright OpenJS Foundation and other contributors
10
10
  * Released under the MIT license.
11
- * http://jquery.org/license
11
+ * https://jquery.org/license
12
12
  */
13
13
 
14
14
  //>>label: Datepicker
15
15
  //>>group: Widgets
16
16
  //>>description: Displays a calendar from an input or inline for selecting dates.
17
- //>>docs: http://api.jqueryui.com/datepicker/
18
- //>>demos: http://jqueryui.com/datepicker/
17
+ //>>docs: https://api.jqueryui.com/datepicker/
18
+ //>>demos: https://jqueryui.com/datepicker/
19
19
  //>>css.structure: ../../themes/base/core.css
20
20
  //>>css.structure: ../../themes/base/datepicker.css
21
21
  //>>css.theme: ../../themes/base/theme.css
@@ -39,7 +39,7 @@
39
39
  } )( function( $ ) {
40
40
  "use strict";
41
41
 
42
- $.extend( $.ui, { datepicker: { version: "1.13.0" } } );
42
+ $.extend( $.ui, { datepicker: { version: "1.14.1" } } );
43
43
 
44
44
  var datepicker_instActive;
45
45
 
@@ -356,7 +356,7 @@ $.extend( Datepicker.prototype, {
356
356
  }
357
357
 
358
358
  // Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements
359
- // http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height
359
+ // https://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height
360
360
  inst.dpDiv.css( "display", "block" );
361
361
  },
362
362
 
@@ -438,6 +438,7 @@ $.extend( Datepicker.prototype, {
438
438
  $target.removeClass( this.markerClassName ).empty();
439
439
  }
440
440
 
441
+ $.datepicker._hideDatepicker();
441
442
  if ( datepicker_instActive === inst ) {
442
443
  datepicker_instActive = null;
443
444
  this._curInst = null;
@@ -913,11 +914,8 @@ $.extend( Datepicker.prototype, {
913
914
  }
914
915
  },
915
916
 
916
- // #6694 - don't focus the input if it's already focused
917
- // this breaks the change event in IE
918
- // Support: IE and jQuery <1.9
919
917
  _shouldFocusInput: function( inst ) {
920
- return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
918
+ return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" );
921
919
  },
922
920
 
923
921
  /* Check positioning to remain on screen. */
@@ -974,8 +972,7 @@ $.extend( Datepicker.prototype, {
974
972
  $.datepicker._tidyDialog( inst );
975
973
  };
976
974
 
977
- // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
978
- if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {
975
+ if ( $.effects && ( $.effects.effect[ showAnim ] ) ) {
979
976
  inst.dpDiv.hide( showAnim, $.datepicker._get( inst, "showOptions" ), duration, postProcess );
980
977
  } else {
981
978
  inst.dpDiv[ ( showAnim === "slideDown" ? "slideUp" :
@@ -2236,7 +2233,7 @@ $.fn.datepicker = function( options ) {
2236
2233
  $.datepicker = new Datepicker(); // singleton instance
2237
2234
  $.datepicker.initialized = false;
2238
2235
  $.datepicker.uuid = new Date().getTime();
2239
- $.datepicker.version = "1.13.0";
2236
+ $.datepicker.version = "1.14.1";
2240
2237
 
2241
2238
  return $.datepicker;
2242
2239