Skip to content

Commit 5d05191

Browse files
committed
External Libraries: Update the jQuery UI library to version 1.13.2.
This is a bug fix release. For more information on the changes included, see https://jqueryui.com/changelog/1.13.2/. Props Clorith, monolithon, desrosj. Fixes #56239. git-svn-id: https://develop.svn.wordpress.org/trunk@54209 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5f0e8ba commit 5d05191

38 files changed

Lines changed: 815 additions & 809 deletions

src/js/_enqueues/vendor/jquery/ui/accordion.js

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery UI Accordion 1.13.1
2+
* jQuery UI Accordion 1.13.2
33
* http://jqueryui.com
44
*
55
* Copyright jQuery Foundation and other contributors
@@ -37,7 +37,7 @@
3737
"use strict";
3838

3939
return $.widget( "ui.accordion", {
40-
version: "1.13.1",
40+
version: "1.13.2",
4141
options: {
4242
active: 0,
4343
animate: {},
@@ -204,24 +204,24 @@ return $.widget( "ui.accordion", {
204204
toFocus = false;
205205

206206
switch ( event.keyCode ) {
207-
case keyCode.RIGHT:
208-
case keyCode.DOWN:
209-
toFocus = this.headers[ ( currentIndex + 1 ) % length ];
210-
break;
211-
case keyCode.LEFT:
212-
case keyCode.UP:
213-
toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];
214-
break;
215-
case keyCode.SPACE:
216-
case keyCode.ENTER:
217-
this._eventHandler( event );
218-
break;
219-
case keyCode.HOME:
220-
toFocus = this.headers[ 0 ];
221-
break;
222-
case keyCode.END:
223-
toFocus = this.headers[ length - 1 ];
224-
break;
207+
case keyCode.RIGHT:
208+
case keyCode.DOWN:
209+
toFocus = this.headers[ ( currentIndex + 1 ) % length ];
210+
break;
211+
case keyCode.LEFT:
212+
case keyCode.UP:
213+
toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];
214+
break;
215+
case keyCode.SPACE:
216+
case keyCode.ENTER:
217+
this._eventHandler( event );
218+
break;
219+
case keyCode.HOME:
220+
toFocus = this.headers[ 0 ];
221+
break;
222+
case keyCode.END:
223+
toFocus = this.headers[ length - 1 ];
224+
break;
225225
}
226226

227227
if ( toFocus ) {
@@ -244,28 +244,28 @@ return $.widget( "ui.accordion", {
244244

245245
// Was collapsed or no panel
246246
if ( ( options.active === false && options.collapsible === true ) ||
247-
!this.headers.length ) {
247+
!this.headers.length ) {
248248
options.active = false;
249249
this.active = $();
250250

251-
// active false only when collapsible is true
251+
// active false only when collapsible is true
252252
} else if ( options.active === false ) {
253253
this._activate( 0 );
254254

255-
// was active, but active panel is gone
255+
// was active, but active panel is gone
256256
} else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
257257

258258
// all remaining panel are disabled
259259
if ( this.headers.length === this.headers.find( ".ui-state-disabled" ).length ) {
260260
options.active = false;
261261
this.active = $();
262262

263-
// activate previous panel
263+
// activate previous panel
264264
} else {
265265
this._activate( Math.max( 0, options.active - 1 ) );
266266
}
267267

268-
// was active, active panel still exists
268+
// was active, active panel still exists
269269
} else {
270270

271271
// make sure active index is correct
@@ -322,20 +322,20 @@ return $.widget( "ui.accordion", {
322322
panel.attr( "aria-labelledby", headerId );
323323
} )
324324
.next()
325-
.attr( "role", "tabpanel" );
325+
.attr( "role", "tabpanel" );
326326

327327
this.headers
328328
.not( this.active )
329-
.attr( {
330-
"aria-selected": "false",
331-
"aria-expanded": "false",
332-
tabIndex: -1
333-
} )
334-
.next()
335-
.attr( {
336-
"aria-hidden": "true"
337-
} )
338-
.hide();
329+
.attr( {
330+
"aria-selected": "false",
331+
"aria-expanded": "false",
332+
tabIndex: -1
333+
} )
334+
.next()
335+
.attr( {
336+
"aria-hidden": "true"
337+
} )
338+
.hide();
339339

340340
// Make sure at least one header is in the tab order
341341
if ( !this.active.length ) {
@@ -347,9 +347,9 @@ return $.widget( "ui.accordion", {
347347
tabIndex: 0
348348
} )
349349
.next()
350-
.attr( {
351-
"aria-hidden": "false"
352-
} );
350+
.attr( {
351+
"aria-hidden": "false"
352+
} );
353353
}
354354

355355
this._createIcons();
@@ -454,11 +454,11 @@ return $.widget( "ui.accordion", {
454454

455455
if (
456456

457-
// click on active header, but not collapsible
458-
( clickedIsActive && !options.collapsible ) ||
457+
// click on active header, but not collapsible
458+
( clickedIsActive && !options.collapsible ) ||
459459

460-
// allow canceling activation
461-
( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
460+
// allow canceling activation
461+
( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
462462
return;
463463
}
464464

@@ -534,11 +534,11 @@ return $.widget( "ui.accordion", {
534534
toShow
535535
.attr( "aria-hidden", "false" )
536536
.prev()
537-
.attr( {
538-
"aria-selected": "true",
539-
"aria-expanded": "true",
540-
tabIndex: 0
541-
} );
537+
.attr( {
538+
"aria-selected": "true",
539+
"aria-expanded": "true",
540+
tabIndex: 0
541+
} );
542542
},
543543

544544
_animate: function( toShow, toHide, data ) {

src/js/_enqueues/vendor/jquery/ui/autocomplete.js

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery UI Autocomplete 1.13.1
2+
* jQuery UI Autocomplete 1.13.2
33
* http://jqueryui.com
44
*
55
* Copyright jQuery Foundation and other contributors
@@ -36,7 +36,7 @@
3636
"use strict";
3737

3838
$.widget( "ui.autocomplete", {
39-
version: "1.13.1",
39+
version: "1.13.2",
4040
defaultElement: "<input>",
4141
options: {
4242
appendTo: null,
@@ -104,58 +104,58 @@ $.widget( "ui.autocomplete", {
104104
suppressKeyPressRepeat = false;
105105
var keyCode = $.ui.keyCode;
106106
switch ( event.keyCode ) {
107-
case keyCode.PAGE_UP:
108-
suppressKeyPress = true;
109-
this._move( "previousPage", event );
110-
break;
111-
case keyCode.PAGE_DOWN:
112-
suppressKeyPress = true;
113-
this._move( "nextPage", event );
114-
break;
115-
case keyCode.UP:
116-
suppressKeyPress = true;
117-
this._keyEvent( "previous", event );
118-
break;
119-
case keyCode.DOWN:
107+
case keyCode.PAGE_UP:
108+
suppressKeyPress = true;
109+
this._move( "previousPage", event );
110+
break;
111+
case keyCode.PAGE_DOWN:
112+
suppressKeyPress = true;
113+
this._move( "nextPage", event );
114+
break;
115+
case keyCode.UP:
116+
suppressKeyPress = true;
117+
this._keyEvent( "previous", event );
118+
break;
119+
case keyCode.DOWN:
120+
suppressKeyPress = true;
121+
this._keyEvent( "next", event );
122+
break;
123+
case keyCode.ENTER:
124+
125+
// when menu is open and has focus
126+
if ( this.menu.active ) {
127+
128+
// #6055 - Opera still allows the keypress to occur
129+
// which causes forms to submit
120130
suppressKeyPress = true;
121-
this._keyEvent( "next", event );
122-
break;
123-
case keyCode.ENTER:
124-
125-
// when menu is open and has focus
126-
if ( this.menu.active ) {
127-
128-
// #6055 - Opera still allows the keypress to occur
129-
// which causes forms to submit
130-
suppressKeyPress = true;
131-
event.preventDefault();
132-
this.menu.select( event );
133-
}
134-
break;
135-
case keyCode.TAB:
136-
if ( this.menu.active ) {
137-
this.menu.select( event );
138-
}
139-
break;
140-
case keyCode.ESCAPE:
141-
if ( this.menu.element.is( ":visible" ) ) {
142-
if ( !this.isMultiLine ) {
143-
this._value( this.term );
144-
}
145-
this.close( event );
146-
147-
// Different browsers have different default behavior for escape
148-
// Single press can mean undo or clear
149-
// Double press in IE means clear the whole form
150-
event.preventDefault();
131+
event.preventDefault();
132+
this.menu.select( event );
133+
}
134+
break;
135+
case keyCode.TAB:
136+
if ( this.menu.active ) {
137+
this.menu.select( event );
138+
}
139+
break;
140+
case keyCode.ESCAPE:
141+
if ( this.menu.element.is( ":visible" ) ) {
142+
if ( !this.isMultiLine ) {
143+
this._value( this.term );
151144
}
152-
break;
153-
default:
154-
suppressKeyPressRepeat = true;
145+
this.close( event );
146+
147+
// Different browsers have different default behavior for escape
148+
// Single press can mean undo or clear
149+
// Double press in IE means clear the whole form
150+
event.preventDefault();
151+
}
152+
break;
153+
default:
154+
suppressKeyPressRepeat = true;
155155

156-
// search timeout should be triggered before the input value is changed
157-
this._searchTimeout( event );
158-
break;
156+
// search timeout should be triggered before the input value is changed
157+
this._searchTimeout( event );
158+
break;
159159
}
160160
},
161161
keypress: function( event ) {
@@ -173,18 +173,18 @@ $.widget( "ui.autocomplete", {
173173
// Replicate some key handlers to allow them to repeat in Firefox and Opera
174174
var keyCode = $.ui.keyCode;
175175
switch ( event.keyCode ) {
176-
case keyCode.PAGE_UP:
177-
this._move( "previousPage", event );
178-
break;
179-
case keyCode.PAGE_DOWN:
180-
this._move( "nextPage", event );
181-
break;
182-
case keyCode.UP:
183-
this._keyEvent( "previous", event );
184-
break;
185-
case keyCode.DOWN:
186-
this._keyEvent( "next", event );
187-
break;
176+
case keyCode.PAGE_UP:
177+
this._move( "previousPage", event );
178+
break;
179+
case keyCode.PAGE_DOWN:
180+
this._move( "nextPage", event );
181+
break;
182+
case keyCode.UP:
183+
this._keyEvent( "previous", event );
184+
break;
185+
case keyCode.DOWN:
186+
this._keyEvent( "next", event );
187+
break;
188188
}
189189
},
190190
input: function( event ) {
@@ -577,7 +577,7 @@ $.widget( "ui.autocomplete", {
577577
return;
578578
}
579579
if ( this.menu.isFirstItem() && /^previous/.test( direction ) ||
580-
this.menu.isLastItem() && /^next/.test( direction ) ) {
580+
this.menu.isLastItem() && /^next/.test( direction ) ) {
581581

582582
if ( !this.isMultiLine ) {
583583
this._value( this.term );

src/js/_enqueues/vendor/jquery/ui/button.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery UI Button 1.13.1
2+
* jQuery UI Button 1.13.2
33
* http://jqueryui.com
44
*
55
* Copyright jQuery Foundation and other contributors
@@ -41,7 +41,7 @@
4141
"use strict";
4242

4343
$.widget( "ui.button", {
44-
version: "1.13.1",
44+
version: "1.13.2",
4545
defaultElement: "<button>",
4646
options: {
4747
classes: {
@@ -240,8 +240,8 @@ $.widget( "ui.button", {
240240

241241
// Make sure we can't end up with a button that has neither text nor icon
242242
if ( key === "showLabel" ) {
243-
this._toggleClass( "ui-button-icon-only", null, !value );
244-
this._updateTooltip();
243+
this._toggleClass( "ui-button-icon-only", null, !value );
244+
this._updateTooltip();
245245
}
246246

247247
if ( key === "label" ) {
@@ -306,7 +306,7 @@ if ( $.uiBackCompat !== false ) {
306306
this.options.text = this.options.showLabel;
307307
}
308308
if ( !this.options.icon && ( this.options.icons.primary ||
309-
this.options.icons.secondary ) ) {
309+
this.options.icons.secondary ) ) {
310310
if ( this.options.icons.primary ) {
311311
this.options.icon = this.options.icons.primary;
312312
} else {

0 commit comments

Comments
 (0)