From d6e710330fa434dd13562074ee007cf197811eac Mon Sep 17 00:00:00 2001 From: "Marius L. J" Date: Fri, 28 Jan 2022 16:42:47 +0000 Subject: [PATCH] External libraries: Update jQuery UI to 1.13.1 Some regressions happened alongside the release of jQuery UI 1.13.0, this brings the fixes from 1.13.1 downstream to WordPress, notably relating to Widget, Autocomplete, Sortable, and Tooltip modules. See the changelog between version 1.13.0 and 1.13.1 at https://github.com/jquery/jquery-ui/compare/1.13.0...1.13.1 Props blogaid, linux4me2, mgol. Fixes #54902. git-svn-id: https://develop.svn.wordpress.org/trunk@52648 602fd350-edb4-49c9-b593-d223f7449a82 --- .../_enqueues/vendor/jquery/ui/accordion.js | 96 +++--- .../vendor/jquery/ui/autocomplete.js | 139 +++++---- src/js/_enqueues/vendor/jquery/ui/button.js | 10 +- .../vendor/jquery/ui/checkboxradio.js | 4 +- .../vendor/jquery/ui/controlgroup.js | 4 +- src/js/_enqueues/vendor/jquery/ui/core.js | 49 +-- .../_enqueues/vendor/jquery/ui/datepicker.js | 288 +++++++++--------- src/js/_enqueues/vendor/jquery/ui/dialog.js | 10 +- .../_enqueues/vendor/jquery/ui/draggable.js | 78 ++--- .../_enqueues/vendor/jquery/ui/droppable.js | 66 ++-- .../vendor/jquery/ui/effect-blind.js | 2 +- .../vendor/jquery/ui/effect-bounce.js | 2 +- .../_enqueues/vendor/jquery/ui/effect-clip.js | 2 +- .../_enqueues/vendor/jquery/ui/effect-drop.js | 2 +- .../vendor/jquery/ui/effect-explode.js | 32 +- .../_enqueues/vendor/jquery/ui/effect-fade.js | 2 +- .../_enqueues/vendor/jquery/ui/effect-fold.js | 2 +- .../vendor/jquery/ui/effect-highlight.js | 2 +- .../_enqueues/vendor/jquery/ui/effect-puff.js | 2 +- .../vendor/jquery/ui/effect-pulsate.js | 2 +- .../vendor/jquery/ui/effect-scale.js | 2 +- .../vendor/jquery/ui/effect-shake.js | 2 +- .../_enqueues/vendor/jquery/ui/effect-size.js | 2 +- .../vendor/jquery/ui/effect-slide.js | 2 +- .../vendor/jquery/ui/effect-transfer.js | 2 +- src/js/_enqueues/vendor/jquery/ui/effect.js | 90 +++--- src/js/_enqueues/vendor/jquery/ui/menu.js | 172 +++++------ src/js/_enqueues/vendor/jquery/ui/mouse.js | 10 +- .../_enqueues/vendor/jquery/ui/progressbar.js | 4 +- .../_enqueues/vendor/jquery/ui/resizable.js | 82 ++--- .../_enqueues/vendor/jquery/ui/selectable.js | 8 +- .../_enqueues/vendor/jquery/ui/selectmenu.js | 102 +++---- src/js/_enqueues/vendor/jquery/ui/slider.js | 8 +- src/js/_enqueues/vendor/jquery/ui/sortable.js | 251 ++++++++------- src/js/_enqueues/vendor/jquery/ui/spinner.js | 42 +-- src/js/_enqueues/vendor/jquery/ui/tabs.js | 88 +++--- src/js/_enqueues/vendor/jquery/ui/tooltip.js | 11 +- src/wp-includes/script-loader.php | 78 ++--- 38 files changed, 880 insertions(+), 870 deletions(-) diff --git a/src/js/_enqueues/vendor/jquery/ui/accordion.js b/src/js/_enqueues/vendor/jquery/ui/accordion.js index 0c1035d82e..f77d2d4ff7 100644 --- a/src/js/_enqueues/vendor/jquery/ui/accordion.js +++ b/src/js/_enqueues/vendor/jquery/ui/accordion.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Accordion 1.13.0 + * jQuery UI Accordion 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -37,7 +37,7 @@ "use strict"; return $.widget( "ui.accordion", { - version: "1.13.0", + version: "1.13.1", options: { active: 0, animate: {}, @@ -204,24 +204,24 @@ return $.widget( "ui.accordion", { toFocus = false; switch ( event.keyCode ) { - case keyCode.RIGHT: - case keyCode.DOWN: - toFocus = this.headers[ ( currentIndex + 1 ) % length ]; - break; - case keyCode.LEFT: - case keyCode.UP: - toFocus = this.headers[ ( currentIndex - 1 + length ) % length ]; - break; - case keyCode.SPACE: - case keyCode.ENTER: - this._eventHandler( event ); - break; - case keyCode.HOME: - toFocus = this.headers[ 0 ]; - break; - case keyCode.END: - toFocus = this.headers[ length - 1 ]; - break; + case keyCode.RIGHT: + case keyCode.DOWN: + toFocus = this.headers[ ( currentIndex + 1 ) % length ]; + break; + case keyCode.LEFT: + case keyCode.UP: + toFocus = this.headers[ ( currentIndex - 1 + length ) % length ]; + break; + case keyCode.SPACE: + case keyCode.ENTER: + this._eventHandler( event ); + break; + case keyCode.HOME: + toFocus = this.headers[ 0 ]; + break; + case keyCode.END: + toFocus = this.headers[ length - 1 ]; + break; } if ( toFocus ) { @@ -244,15 +244,15 @@ return $.widget( "ui.accordion", { // Was collapsed or no panel if ( ( options.active === false && options.collapsible === true ) || - !this.headers.length ) { + !this.headers.length ) { options.active = false; this.active = $(); - // active false only when collapsible is true + // active false only when collapsible is true } else if ( options.active === false ) { this._activate( 0 ); - // was active, but active panel is gone + // was active, but active panel is gone } else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) { // all remaining panel are disabled @@ -260,12 +260,12 @@ return $.widget( "ui.accordion", { options.active = false; this.active = $(); - // activate previous panel + // activate previous panel } else { this._activate( Math.max( 0, options.active - 1 ) ); } - // was active, active panel still exists + // was active, active panel still exists } else { // make sure active index is correct @@ -322,20 +322,20 @@ return $.widget( "ui.accordion", { panel.attr( "aria-labelledby", headerId ); } ) .next() - .attr( "role", "tabpanel" ); + .attr( "role", "tabpanel" ); this.headers .not( this.active ) - .attr( { - "aria-selected": "false", - "aria-expanded": "false", - tabIndex: -1 - } ) - .next() - .attr( { - "aria-hidden": "true" - } ) - .hide(); + .attr( { + "aria-selected": "false", + "aria-expanded": "false", + tabIndex: -1 + } ) + .next() + .attr( { + "aria-hidden": "true" + } ) + .hide(); // Make sure at least one header is in the tab order if ( !this.active.length ) { @@ -347,9 +347,9 @@ return $.widget( "ui.accordion", { tabIndex: 0 } ) .next() - .attr( { - "aria-hidden": "false" - } ); + .attr( { + "aria-hidden": "false" + } ); } this._createIcons(); @@ -454,11 +454,11 @@ return $.widget( "ui.accordion", { if ( - // click on active header, but not collapsible - ( clickedIsActive && !options.collapsible ) || + // click on active header, but not collapsible + ( clickedIsActive && !options.collapsible ) || - // allow canceling activation - ( this._trigger( "beforeActivate", event, eventData ) === false ) ) { + // allow canceling activation + ( this._trigger( "beforeActivate", event, eventData ) === false ) ) { return; } @@ -534,11 +534,11 @@ return $.widget( "ui.accordion", { toShow .attr( "aria-hidden", "false" ) .prev() - .attr( { - "aria-selected": "true", - "aria-expanded": "true", - tabIndex: 0 - } ); + .attr( { + "aria-selected": "true", + "aria-expanded": "true", + tabIndex: 0 + } ); }, _animate: function( toShow, toHide, data ) { diff --git a/src/js/_enqueues/vendor/jquery/ui/autocomplete.js b/src/js/_enqueues/vendor/jquery/ui/autocomplete.js index 7116629005..a8cfbfb4aa 100644 --- a/src/js/_enqueues/vendor/jquery/ui/autocomplete.js +++ b/src/js/_enqueues/vendor/jquery/ui/autocomplete.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Autocomplete 1.13.0 + * jQuery UI Autocomplete 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -36,7 +36,7 @@ "use strict"; $.widget( "ui.autocomplete", { - version: "1.13.0", + version: "1.13.1", defaultElement: "", options: { appendTo: null, @@ -62,6 +62,7 @@ $.widget( "ui.autocomplete", { requestIndex: 0, pending: 0, + liveRegionTimer: null, _create: function() { @@ -103,58 +104,58 @@ $.widget( "ui.autocomplete", { suppressKeyPressRepeat = false; var keyCode = $.ui.keyCode; switch ( event.keyCode ) { - case keyCode.PAGE_UP: - suppressKeyPress = true; - this._move( "previousPage", event ); - break; - case keyCode.PAGE_DOWN: - suppressKeyPress = true; - this._move( "nextPage", event ); - break; - case keyCode.UP: - suppressKeyPress = true; - this._keyEvent( "previous", event ); - break; - case keyCode.DOWN: - suppressKeyPress = true; - this._keyEvent( "next", event ); - break; - case keyCode.ENTER: - - // when menu is open and has focus - if ( this.menu.active ) { - - // #6055 - Opera still allows the keypress to occur - // which causes forms to submit + case keyCode.PAGE_UP: suppressKeyPress = true; - event.preventDefault(); - this.menu.select( event ); - } - break; - case keyCode.TAB: - if ( this.menu.active ) { - this.menu.select( event ); - } - break; - case keyCode.ESCAPE: - if ( this.menu.element.is( ":visible" ) ) { - if ( !this.isMultiLine ) { - this._value( this.term ); + this._move( "previousPage", event ); + break; + case keyCode.PAGE_DOWN: + suppressKeyPress = true; + this._move( "nextPage", event ); + break; + case keyCode.UP: + suppressKeyPress = true; + this._keyEvent( "previous", event ); + break; + case keyCode.DOWN: + suppressKeyPress = true; + this._keyEvent( "next", event ); + break; + case keyCode.ENTER: + + // when menu is open and has focus + if ( this.menu.active ) { + + // #6055 - Opera still allows the keypress to occur + // which causes forms to submit + suppressKeyPress = true; + event.preventDefault(); + this.menu.select( event ); } - this.close( event ); + break; + case keyCode.TAB: + if ( this.menu.active ) { + this.menu.select( event ); + } + break; + case keyCode.ESCAPE: + if ( this.menu.element.is( ":visible" ) ) { + if ( !this.isMultiLine ) { + this._value( this.term ); + } + this.close( event ); - // Different browsers have different default behavior for escape - // Single press can mean undo or clear - // Double press in IE means clear the whole form - event.preventDefault(); - } - break; - default: - suppressKeyPressRepeat = true; + // Different browsers have different default behavior for escape + // Single press can mean undo or clear + // Double press in IE means clear the whole form + event.preventDefault(); + } + break; + default: + suppressKeyPressRepeat = true; - // search timeout should be triggered before the input value is changed - this._searchTimeout( event ); - break; + // search timeout should be triggered before the input value is changed + this._searchTimeout( event ); + break; } }, keypress: function( event ) { @@ -172,18 +173,18 @@ $.widget( "ui.autocomplete", { // Replicate some key handlers to allow them to repeat in Firefox and Opera var keyCode = $.ui.keyCode; switch ( event.keyCode ) { - case keyCode.PAGE_UP: - this._move( "previousPage", event ); - break; - case keyCode.PAGE_DOWN: - this._move( "nextPage", event ); - break; - case keyCode.UP: - this._keyEvent( "previous", event ); - break; - case keyCode.DOWN: - this._keyEvent( "next", event ); - break; + case keyCode.PAGE_UP: + this._move( "previousPage", event ); + break; + case keyCode.PAGE_DOWN: + this._move( "nextPage", event ); + break; + case keyCode.UP: + this._keyEvent( "previous", event ); + break; + case keyCode.DOWN: + this._keyEvent( "next", event ); + break; } }, input: function( event ) { @@ -263,8 +264,10 @@ $.widget( "ui.autocomplete", { // Announce the value in the liveRegion label = ui.item.attr( "aria-label" ) || item.value; if ( label && String.prototype.trim.call( label ).length ) { - this.liveRegion.children().hide(); - $( "
" ).text( label ).appendTo( this.liveRegion ); + clearTimeout( this.liveRegionTimer ); + this.liveRegionTimer = this._delay( function() { + this.liveRegion.html( $( "
" ).text( label ) ); + }, 100 ); } }, menuselect: function( event, ui ) { @@ -574,7 +577,7 @@ $.widget( "ui.autocomplete", { return; } if ( this.menu.isFirstItem() && /^previous/.test( direction ) || - this.menu.isLastItem() && /^next/.test( direction ) ) { + this.menu.isLastItem() && /^next/.test( direction ) ) { if ( !this.isMultiLine ) { this._value( this.term ); @@ -659,8 +662,10 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, { } else { message = this.options.messages.noResults; } - this.liveRegion.children().hide(); - $( "
" ).text( message ).appendTo( this.liveRegion ); + clearTimeout( this.liveRegionTimer ); + this.liveRegionTimer = this._delay( function() { + this.liveRegion.html( $( "
" ).text( message ) ); + }, 100 ); } } ); diff --git a/src/js/_enqueues/vendor/jquery/ui/button.js b/src/js/_enqueues/vendor/jquery/ui/button.js index cb9c8c0c6b..71013ee4c8 100644 --- a/src/js/_enqueues/vendor/jquery/ui/button.js +++ b/src/js/_enqueues/vendor/jquery/ui/button.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Button 1.13.0 + * jQuery UI Button 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -41,7 +41,7 @@ "use strict"; $.widget( "ui.button", { - version: "1.13.0", + version: "1.13.1", defaultElement: "
" + - ( ( numMonths[ 0 ] > 0 && col === numMonths[ 1 ] - 1 ) ? "
" : "" ) : "" ); + ( ( numMonths[ 0 ] > 0 && col === numMonths[ 1 ] - 1 ) ? "
" : "" ) : "" ); group += calender; } html += group; @@ -1956,7 +1956,7 @@ $.extend( Datepicker.prototype, { /* Generate the month and year header. */ _generateMonthYearHeader: function( inst, drawMonth, drawYear, minDate, maxDate, - secondary, monthNames, monthNamesShort ) { + secondary, monthNames, monthNamesShort ) { var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear, changeMonth = this._get( inst, "changeMonth" ), @@ -2001,7 +2001,7 @@ $.extend( Datepicker.prototype, { determineYear = function( value ) { var year = ( value.match( /c[+\-].*/ ) ? drawYear + parseInt( value.substring( 1 ), 10 ) : ( value.match( /[+\-].*/ ) ? thisYear + parseInt( value, 10 ) : - parseInt( value, 10 ) ) ); + parseInt( value, 10 ) ) ); return ( isNaN( year ) ? thisYear : year ); }; year = determineYear( years[ 0 ] ); @@ -2086,7 +2086,7 @@ $.extend( Datepicker.prototype, { _canAdjustMonth: function( inst, offset, curYear, curMonth ) { var numMonths = this._getNumberOfMonths( inst ), date = this._daylightSavingAdjust( new Date( curYear, - curMonth + ( offset < 0 ? offset : numMonths[ 0 ] * numMonths[ 1 ] ), 1 ) ); + curMonth + ( offset < 0 ? offset : numMonths[ 0 ] * numMonths[ 1 ] ), 1 ) ); if ( offset < 0 ) { date.setDate( this._getDaysInMonth( date.getFullYear(), date.getMonth() ) ); @@ -2102,18 +2102,18 @@ $.extend( Datepicker.prototype, { minYear = null, maxYear = null, years = this._get( inst, "yearRange" ); - if ( years ) { - yearSplit = years.split( ":" ); - currentYear = new Date().getFullYear(); - minYear = parseInt( yearSplit[ 0 ], 10 ); - maxYear = parseInt( yearSplit[ 1 ], 10 ); - if ( yearSplit[ 0 ].match( /[+\-].*/ ) ) { - minYear += currentYear; - } - if ( yearSplit[ 1 ].match( /[+\-].*/ ) ) { - maxYear += currentYear; - } + if ( years ) { + yearSplit = years.split( ":" ); + currentYear = new Date().getFullYear(); + minYear = parseInt( yearSplit[ 0 ], 10 ); + maxYear = parseInt( yearSplit[ 1 ], 10 ); + if ( yearSplit[ 0 ].match( /[+\-].*/ ) ) { + minYear += currentYear; } + if ( yearSplit[ 1 ].match( /[+\-].*/ ) ) { + maxYear += currentYear; + } + } return ( ( !minDate || date.getTime() >= minDate.getTime() ) && ( !maxDate || date.getTime() <= maxDate.getTime() ) && @@ -2139,7 +2139,7 @@ $.extend( Datepicker.prototype, { inst.currentYear = inst.selectedYear; } var date = ( day ? ( typeof day === "object" ? day : - this._daylightSavingAdjust( new Date( year, month, day ) ) ) : + this._daylightSavingAdjust( new Date( year, month, day ) ) ) : this._daylightSavingAdjust( new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) ); return this.formatDate( this._get( inst, "dateFormat" ), date, this._getFormatConfig( inst ) ); } @@ -2153,14 +2153,14 @@ $.extend( Datepicker.prototype, { function datepicker_bindHover( dpDiv ) { var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a"; return dpDiv.on( "mouseout", selector, function() { - $( this ).removeClass( "ui-state-hover" ); - if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) { - $( this ).removeClass( "ui-datepicker-prev-hover" ); - } - if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) { - $( this ).removeClass( "ui-datepicker-next-hover" ); - } - } ) + $( this ).removeClass( "ui-state-hover" ); + if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) { + $( this ).removeClass( "ui-datepicker-prev-hover" ); + } + if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) { + $( this ).removeClass( "ui-datepicker-next-hover" ); + } + } ) .on( "mouseover", selector, datepicker_handleMouseover ); } @@ -2213,11 +2213,11 @@ $.fn.datepicker = function( options ) { var otherArgs = Array.prototype.slice.call( arguments, 1 ); if ( typeof options === "string" && ( options === "isDisabled" || options === "getDate" || options === "widget" ) ) { return $.datepicker[ "_" + options + "Datepicker" ]. - apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) ); + apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) ); } if ( options === "option" && arguments.length === 2 && typeof arguments[ 1 ] === "string" ) { return $.datepicker[ "_" + options + "Datepicker" ]. - apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) ); + apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) ); } return this.each( function() { if ( typeof options === "string" ) { @@ -2232,7 +2232,7 @@ $.fn.datepicker = function( options ) { $.datepicker = new Datepicker(); // singleton instance $.datepicker.initialized = false; $.datepicker.uuid = new Date().getTime(); -$.datepicker.version = "1.13.0"; +$.datepicker.version = "1.13.1"; return $.datepicker; diff --git a/src/js/_enqueues/vendor/jquery/ui/dialog.js b/src/js/_enqueues/vendor/jquery/ui/dialog.js index 4d6483746d..7687bc0f03 100644 --- a/src/js/_enqueues/vendor/jquery/ui/dialog.js +++ b/src/js/_enqueues/vendor/jquery/ui/dialog.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Dialog 1.13.0 + * jQuery UI Dialog 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -39,7 +39,7 @@ "use strict"; $.widget( "ui.dialog", { - version: "1.13.0", + version: "1.13.1", options: { appendTo: "body", autoOpen: true, @@ -354,7 +354,7 @@ $.widget( "ui.dialog", { this._on( this.uiDialog, { keydown: function( event ) { if ( this.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode && - event.keyCode === $.ui.keyCode.ESCAPE ) { + event.keyCode === $.ui.keyCode.ESCAPE ) { event.preventDefault(); this.close( event ); return; @@ -369,13 +369,13 @@ $.widget( "ui.dialog", { last = tabbables.last(); if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) && - !event.shiftKey ) { + !event.shiftKey ) { this._delay( function() { first.trigger( "focus" ); } ); event.preventDefault(); } else if ( ( event.target === first[ 0 ] || - event.target === this.uiDialog[ 0 ] ) && event.shiftKey ) { + event.target === this.uiDialog[ 0 ] ) && event.shiftKey ) { this._delay( function() { last.trigger( "focus" ); } ); diff --git a/src/js/_enqueues/vendor/jquery/ui/draggable.js b/src/js/_enqueues/vendor/jquery/ui/draggable.js index 63875f0c59..91327578ad 100644 --- a/src/js/_enqueues/vendor/jquery/ui/draggable.js +++ b/src/js/_enqueues/vendor/jquery/ui/draggable.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Draggable 1.13.0 + * jQuery UI Draggable 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -34,7 +34,7 @@ "use strict"; $.widget( "ui.draggable", $.ui.mouse, { - version: "1.13.0", + version: "1.13.1", widgetEventPrefix: "drag", options: { addClasses: true, @@ -102,7 +102,7 @@ $.widget( "ui.draggable", $.ui.mouse, { // Among others, prevent a drag on a resizable-handle if ( this.helper || o.disabled || - $( event.target ).closest( ".ui-resizable-handle" ).length > 0 ) { + $( event.target ).closest( ".ui-resizable-handle" ).length > 0 ) { return false; } @@ -185,8 +185,8 @@ $.widget( "ui.draggable", $.ui.mouse, { this.scrollParent = this.helper.scrollParent( true ); this.offsetParent = this.helper.offsetParent(); this.hasFixedAncestor = this.helper.parents().filter( function() { - return $( this ).css( "position" ) === "fixed"; - } ).length > 0; + return $( this ).css( "position" ) === "fixed"; + } ).length > 0; //The element's absolute position on the page minus margins this.positionAbs = this.element.offset(); @@ -294,8 +294,8 @@ $.widget( "ui.draggable", $.ui.mouse, { } if ( ( this.options.revert === "invalid" && !dropped ) || - ( this.options.revert === "valid" && dropped ) || - this.options.revert === true || ( typeof this.options.revert === "function" && + ( this.options.revert === "valid" && dropped ) || + this.options.revert === true || ( typeof this.options.revert === "function" && this.options.revert.call( this.element, dropped ) ) ) { $( this.helper ).animate( @@ -388,7 +388,7 @@ $.widget( "ui.draggable", $.ui.mouse, { } if ( helper[ 0 ] !== this.element[ 0 ] && - !( /(fixed|absolute)/ ).test( helper.css( "position" ) ) ) { + !( /(fixed|absolute)/ ).test( helper.css( "position" ) ) ) { helper.css( "position", "absolute" ); } @@ -441,7 +441,7 @@ $.widget( "ui.draggable", $.ui.mouse, { // the document, which means that the scroll is included in the initial calculation of the // offset of the parent, and never recalculated upon drag if ( this.cssPosition === "absolute" && this.scrollParent[ 0 ] !== document && - $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) { + $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) { po.left += this.scrollParent.scrollLeft(); po.top += this.scrollParent.scrollTop(); } @@ -508,10 +508,10 @@ $.widget( "ui.draggable", $.ui.mouse, { $( window ).scrollLeft() - this.offset.relative.left - this.offset.parent.left, $( window ).scrollTop() - this.offset.relative.top - this.offset.parent.top, $( window ).scrollLeft() + $( window ).width() - - this.helperProportions.width - this.margins.left, + this.helperProportions.width - this.margins.left, $( window ).scrollTop() + - ( $( window ).height() || document.body.parentNode.scrollHeight ) - - this.helperProportions.height - this.margins.top + ( $( window ).height() || document.body.parentNode.scrollHeight ) - + this.helperProportions.height - this.margins.top ]; return; } @@ -522,7 +522,7 @@ $.widget( "ui.draggable", $.ui.mouse, { 0, $( document ).width() - this.helperProportions.width - this.margins.left, ( $( document ).height() || document.body.parentNode.scrollHeight ) - - this.helperProportions.height - this.margins.top + this.helperProportions.height - this.margins.top ]; return; } @@ -547,21 +547,21 @@ $.widget( "ui.draggable", $.ui.mouse, { this.containment = [ ( parseInt( c.css( "borderLeftWidth" ), 10 ) || 0 ) + - ( parseInt( c.css( "paddingLeft" ), 10 ) || 0 ), + ( parseInt( c.css( "paddingLeft" ), 10 ) || 0 ), ( parseInt( c.css( "borderTopWidth" ), 10 ) || 0 ) + - ( parseInt( c.css( "paddingTop" ), 10 ) || 0 ), + ( parseInt( c.css( "paddingTop" ), 10 ) || 0 ), ( isUserScrollable ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) - - ( parseInt( c.css( "borderRightWidth" ), 10 ) || 0 ) - - ( parseInt( c.css( "paddingRight" ), 10 ) || 0 ) - - this.helperProportions.width - - this.margins.left - - this.margins.right, + ( parseInt( c.css( "borderRightWidth" ), 10 ) || 0 ) - + ( parseInt( c.css( "paddingRight" ), 10 ) || 0 ) - + this.helperProportions.width - + this.margins.left - + this.margins.right, ( isUserScrollable ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) - - ( parseInt( c.css( "borderBottomWidth" ), 10 ) || 0 ) - - ( parseInt( c.css( "paddingBottom" ), 10 ) || 0 ) - - this.helperProportions.height - - this.margins.top - - this.margins.bottom + ( parseInt( c.css( "borderBottomWidth" ), 10 ) || 0 ) - + ( parseInt( c.css( "paddingBottom" ), 10 ) || 0 ) - + this.helperProportions.height - + this.margins.top - + this.margins.bottom ]; this.relativeContainer = c; }, @@ -666,18 +666,18 @@ $.widget( "ui.draggable", $.ui.mouse, { this.originalPageY ) / o.grid[ 1 ] ) * o.grid[ 1 ] : this.originalPageY; pageY = containment ? ( ( top - this.offset.click.top >= containment[ 1 ] || top - this.offset.click.top > containment[ 3 ] ) ? - top : - ( ( top - this.offset.click.top >= containment[ 1 ] ) ? - top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) : top; + top : + ( ( top - this.offset.click.top >= containment[ 1 ] ) ? + top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) : top; left = o.grid[ 0 ] ? this.originalPageX + Math.round( ( pageX - this.originalPageX ) / o.grid[ 0 ] ) * o.grid[ 0 ] : this.originalPageX; pageX = containment ? ( ( left - this.offset.click.left >= containment[ 0 ] || left - this.offset.click.left > containment[ 2 ] ) ? - left : - ( ( left - this.offset.click.left >= containment[ 0 ] ) ? - left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) : left; + left : + ( ( left - this.offset.click.left >= containment[ 0 ] ) ? + left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) : left; } if ( o.axis === "y" ) { @@ -851,8 +851,8 @@ $.ui.plugin.add( "draggable", "connectToSortable", { this.offset.click = draggable.offset.click; if ( this !== sortable && - this._intersectsWith( this.containerCache ) && - $.contains( sortable.element[ 0 ], this.element[ 0 ] ) ) { + this._intersectsWith( this.containerCache ) && + $.contains( sortable.element[ 0 ], this.element[ 0 ] ) ) { innermostIntersecting = false; } @@ -1012,7 +1012,7 @@ $.ui.plugin.add( "draggable", "scroll", { } if ( i.scrollParentNotHidden[ 0 ] !== i.document[ 0 ] && - i.scrollParentNotHidden[ 0 ].tagName !== "HTML" ) { + i.scrollParentNotHidden[ 0 ].tagName !== "HTML" ) { i.overflowOffset = i.scrollParentNotHidden.offset(); } }, @@ -1026,7 +1026,7 @@ $.ui.plugin.add( "draggable", "scroll", { if ( scrollParent !== document && scrollParent.tagName !== "HTML" ) { if ( !o.axis || o.axis !== "x" ) { if ( ( i.overflowOffset.top + scrollParent.offsetHeight ) - event.pageY < - o.scrollSensitivity ) { + o.scrollSensitivity ) { scrollParent.scrollTop = scrolled = scrollParent.scrollTop + o.scrollSpeed; } else if ( event.pageY - i.overflowOffset.top < o.scrollSensitivity ) { scrollParent.scrollTop = scrolled = scrollParent.scrollTop - o.scrollSpeed; @@ -1035,7 +1035,7 @@ $.ui.plugin.add( "draggable", "scroll", { if ( !o.axis || o.axis !== "y" ) { if ( ( i.overflowOffset.left + scrollParent.offsetWidth ) - event.pageX < - o.scrollSensitivity ) { + o.scrollSensitivity ) { scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft + o.scrollSpeed; } else if ( event.pageX - i.overflowOffset.left < o.scrollSensitivity ) { scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft - o.scrollSpeed; @@ -1048,7 +1048,7 @@ $.ui.plugin.add( "draggable", "scroll", { if ( event.pageY - $( document ).scrollTop() < o.scrollSensitivity ) { scrolled = $( document ).scrollTop( $( document ).scrollTop() - o.scrollSpeed ); } else if ( $( window ).height() - ( event.pageY - $( document ).scrollTop() ) < - o.scrollSensitivity ) { + o.scrollSensitivity ) { scrolled = $( document ).scrollTop( $( document ).scrollTop() + o.scrollSpeed ); } } @@ -1059,7 +1059,7 @@ $.ui.plugin.add( "draggable", "scroll", { $( document ).scrollLeft() - o.scrollSpeed ); } else if ( $( window ).width() - ( event.pageX - $( document ).scrollLeft() ) < - o.scrollSensitivity ) { + o.scrollSensitivity ) { scrolled = $( document ).scrollLeft( $( document ).scrollLeft() + o.scrollSpeed ); @@ -1112,7 +1112,7 @@ $.ui.plugin.add( "draggable", "snap", { b = t + inst.snapElements[ i ].height; if ( x2 < l - d || x1 > r + d || y2 < t - d || y1 > b + d || - !$.contains( inst.snapElements[ i ].item.ownerDocument, + !$.contains( inst.snapElements[ i ].item.ownerDocument, inst.snapElements[ i ].item ) ) { if ( inst.snapElements[ i ].snapping ) { if ( inst.options.snap.release ) { diff --git a/src/js/_enqueues/vendor/jquery/ui/droppable.js b/src/js/_enqueues/vendor/jquery/ui/droppable.js index 05db6c8d09..17aca5e721 100644 --- a/src/js/_enqueues/vendor/jquery/ui/droppable.js +++ b/src/js/_enqueues/vendor/jquery/ui/droppable.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Droppable 1.13.0 + * jQuery UI Droppable 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -34,7 +34,7 @@ "use strict"; $.widget( "ui.droppable", { - version: "1.13.0", + version: "1.13.1", widgetEventPrefix: "drop", options: { accept: "*", @@ -150,12 +150,12 @@ $.widget( "ui.droppable", { // Bail if draggable and droppable are same element if ( !draggable || ( draggable.currentItem || - draggable.element )[ 0 ] === this.element[ 0 ] ) { + draggable.element )[ 0 ] === this.element[ 0 ] ) { return; } if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || - draggable.element ) ) ) { + draggable.element ) ) ) { this._addHoverClass(); this._trigger( "over", event, this.ui( draggable ) ); } @@ -168,12 +168,12 @@ $.widget( "ui.droppable", { // Bail if draggable and droppable are same element if ( !draggable || ( draggable.currentItem || - draggable.element )[ 0 ] === this.element[ 0 ] ) { + draggable.element )[ 0 ] === this.element[ 0 ] ) { return; } if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || - draggable.element ) ) ) { + draggable.element ) ) ) { this._removeHoverClass(); this._trigger( "out", event, this.ui( draggable ) ); } @@ -187,7 +187,7 @@ $.widget( "ui.droppable", { // Bail if draggable and droppable are same element if ( !draggable || ( draggable.currentItem || - draggable.element )[ 0 ] === this.element[ 0 ] ) { + draggable.element )[ 0 ] === this.element[ 0 ] ) { return false; } @@ -218,7 +218,7 @@ $.widget( "ui.droppable", { } if ( this.accept.call( this.element[ 0 ], - ( draggable.currentItem || draggable.element ) ) ) { + ( draggable.currentItem || draggable.element ) ) ) { this._removeActiveClass(); this._removeHoverClass(); @@ -281,28 +281,28 @@ $.ui.intersect = ( function() { b = t + droppable.proportions().height; switch ( toleranceMode ) { - case "fit": - return ( l <= x1 && x2 <= r && t <= y1 && y2 <= b ); - case "intersect": - return ( l < x1 + ( draggable.helperProportions.width / 2 ) && // Right Half - x2 - ( draggable.helperProportions.width / 2 ) < r && // Left Half - t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half - y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half - case "pointer": - return isOverAxis( event.pageY, t, droppable.proportions().height ) && - isOverAxis( event.pageX, l, droppable.proportions().width ); - case "touch": - return ( - ( y1 >= t && y1 <= b ) || // Top edge touching - ( y2 >= t && y2 <= b ) || // Bottom edge touching - ( y1 < t && y2 > b ) // Surrounded vertically - ) && ( - ( x1 >= l && x1 <= r ) || // Left edge touching - ( x2 >= l && x2 <= r ) || // Right edge touching - ( x1 < l && x2 > r ) // Surrounded horizontally - ); - default: - return false; + case "fit": + return ( l <= x1 && x2 <= r && t <= y1 && y2 <= b ); + case "intersect": + return ( l < x1 + ( draggable.helperProportions.width / 2 ) && // Right Half + x2 - ( draggable.helperProportions.width / 2 ) < r && // Left Half + t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half + y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half + case "pointer": + return isOverAxis( event.pageY, t, droppable.proportions().height ) && + isOverAxis( event.pageX, l, droppable.proportions().width ); + case "touch": + return ( + ( y1 >= t && y1 <= b ) || // Top edge touching + ( y2 >= t && y2 <= b ) || // Bottom edge touching + ( y1 < t && y2 > b ) // Surrounded vertically + ) && ( + ( x1 >= l && x1 <= r ) || // Left edge touching + ( x2 >= l && x2 <= r ) || // Right edge touching + ( x1 < l && x2 > r ) // Surrounded horizontally + ); + default: + return false; } }; } )(); @@ -324,7 +324,7 @@ $.ui.ddmanager = { // No disabled and non-accepted if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ], - ( t.currentItem || t.element ) ) ) ) { + ( t.currentItem || t.element ) ) ) ) { continue; } @@ -366,12 +366,12 @@ $.ui.ddmanager = { return; } if ( !this.options.disabled && this.visible && - $.ui.intersect( draggable, this, this.options.tolerance, event ) ) { + $.ui.intersect( draggable, this, this.options.tolerance, event ) ) { dropped = this._drop.call( this, event ) || dropped; } if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ], - ( draggable.currentItem || draggable.element ) ) ) { + ( draggable.currentItem || draggable.element ) ) ) { this.isout = true; this.isover = false; this._deactivate.call( this, event ); diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-blind.js b/src/js/_enqueues/vendor/jquery/ui/effect-blind.js index b74dea4bdf..7d9da99807 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-blind.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-blind.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Blind 1.13.0 + * jQuery UI Effects Blind 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-bounce.js b/src/js/_enqueues/vendor/jquery/ui/effect-bounce.js index b8ee5042f2..682ca2cd37 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-bounce.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-bounce.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Bounce 1.13.0 + * jQuery UI Effects Bounce 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-clip.js b/src/js/_enqueues/vendor/jquery/ui/effect-clip.js index b54415605b..2c32aec629 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-clip.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-clip.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Clip 1.13.0 + * jQuery UI Effects Clip 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-drop.js b/src/js/_enqueues/vendor/jquery/ui/effect-drop.js index 4e7dd86561..0acd95d4b2 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-drop.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-drop.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Drop 1.13.0 + * jQuery UI Effects Drop 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-explode.js b/src/js/_enqueues/vendor/jquery/ui/effect-explode.js index ec4529284c..598a40a6d7 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-explode.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-explode.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Explode 1.13.0 + * jQuery UI Effects Explode 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -83,21 +83,21 @@ return $.effects.define( "explode", "hide", function( options, done ) { // Select the wrapper - make it overflow: hidden and absolute positioned based on // where the original was located +left and +top equal to the size of pieces .parent() - .addClass( "ui-effects-explode" ) - .css( { - position: "absolute", - overflow: "hidden", - width: width, - height: height, - left: left + ( show ? mx * width : 0 ), - top: top + ( show ? my * height : 0 ), - opacity: show ? 0 : 1 - } ) - .animate( { - left: left + ( show ? 0 : mx * width ), - top: top + ( show ? 0 : my * height ), - opacity: show ? 1 : 0 - }, options.duration || 500, options.easing, childComplete ); + .addClass( "ui-effects-explode" ) + .css( { + position: "absolute", + overflow: "hidden", + width: width, + height: height, + left: left + ( show ? mx * width : 0 ), + top: top + ( show ? my * height : 0 ), + opacity: show ? 0 : 1 + } ) + .animate( { + left: left + ( show ? 0 : mx * width ), + top: top + ( show ? 0 : my * height ), + opacity: show ? 1 : 0 + }, options.duration || 500, options.easing, childComplete ); } } diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-fade.js b/src/js/_enqueues/vendor/jquery/ui/effect-fade.js index b0de90b500..4622b7d221 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-fade.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-fade.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Fade 1.13.0 + * jQuery UI Effects Fade 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-fold.js b/src/js/_enqueues/vendor/jquery/ui/effect-fold.js index 26c382b6d8..b28d2fa1ee 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-fold.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-fold.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Fold 1.13.0 + * jQuery UI Effects Fold 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-highlight.js b/src/js/_enqueues/vendor/jquery/ui/effect-highlight.js index 36f0e9a721..4143c9bb7f 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-highlight.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-highlight.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Highlight 1.13.0 + * jQuery UI Effects Highlight 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-puff.js b/src/js/_enqueues/vendor/jquery/ui/effect-puff.js index 7a7f0e96dc..85bd1218c5 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-puff.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-puff.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Puff 1.13.0 + * jQuery UI Effects Puff 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-pulsate.js b/src/js/_enqueues/vendor/jquery/ui/effect-pulsate.js index ad1495d550..69469dc168 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-pulsate.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-pulsate.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Pulsate 1.13.0 + * jQuery UI Effects Pulsate 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-scale.js b/src/js/_enqueues/vendor/jquery/ui/effect-scale.js index f7a5a84155..2ac88b04db 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-scale.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-scale.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Scale 1.13.0 + * jQuery UI Effects Scale 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-shake.js b/src/js/_enqueues/vendor/jquery/ui/effect-shake.js index ab942c0d07..84f4734e7e 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-shake.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-shake.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Shake 1.13.0 + * jQuery UI Effects Shake 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-size.js b/src/js/_enqueues/vendor/jquery/ui/effect-size.js index 7e2c8874ba..97c6bf910e 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-size.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-size.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Size 1.13.0 + * jQuery UI Effects Size 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-slide.js b/src/js/_enqueues/vendor/jquery/ui/effect-slide.js index d19b80e75b..51fda6b374 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-slide.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-slide.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Slide 1.13.0 + * jQuery UI Effects Slide 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect-transfer.js b/src/js/_enqueues/vendor/jquery/ui/effect-transfer.js index 9c0540259a..8d2e173c4b 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect-transfer.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect-transfer.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects Transfer 1.13.0 + * jQuery UI Effects Transfer 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors diff --git a/src/js/_enqueues/vendor/jquery/ui/effect.js b/src/js/_enqueues/vendor/jquery/ui/effect.js index e8c7ca0089..2e39261a85 100644 --- a/src/js/_enqueues/vendor/jquery/ui/effect.js +++ b/src/js/_enqueues/vendor/jquery/ui/effect.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Effects 1.13.0 + * jQuery UI Effects 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -32,7 +32,7 @@ // Include version.js $.ui = $.ui || {}; -$.ui.version = "1.13.0"; +$.ui.version = "1.13.1"; // Source: jquery-var-for-color.js // Create a local jQuery because jQuery Color relies on it and the @@ -812,7 +812,7 @@ function getElementStyles( elem ) { } } - // Support: Opera, IE <9 + // Support: Opera, IE <9 } else { for ( key in style ) { if ( typeof style[ key ] === "string" ) { @@ -1119,7 +1119,7 @@ if ( $.uiBackCompat !== false ) { } $.extend( $.effects, { - version: "1.13.0", + version: "1.13.1", define: function( name, mode, effect ) { if ( !effect ) { @@ -1201,31 +1201,31 @@ $.extend( $.effects, { var y, x; switch ( origin[ 0 ] ) { - case "top": - y = 0; - break; - case "middle": - y = 0.5; - break; - case "bottom": - y = 1; - break; - default: - y = origin[ 0 ] / original.height; + case "top": + y = 0; + break; + case "middle": + y = 0.5; + break; + case "bottom": + y = 1; + break; + default: + y = origin[ 0 ] / original.height; } switch ( origin[ 1 ] ) { - case "left": - x = 0; - break; - case "center": - x = 0.5; - break; - case "right": - x = 1; - break; - default: - x = origin[ 1 ] / original.width; + case "left": + x = 0; + break; + case "center": + x = 0.5; + break; + case "right": + x = 1; + break; + default: + x = origin[ 1 ] / original.width; } return { @@ -1250,8 +1250,8 @@ $.extend( $.effects, { marginLeft: element.css( "marginLeft" ), marginRight: element.css( "marginRight" ) } ) - .outerWidth( element.outerWidth() ) - .outerHeight( element.outerHeight() ); + .outerWidth( element.outerWidth() ) + .outerHeight( element.outerHeight() ); if ( /^(static|relative)/.test( cssPosition ) ) { cssPosition = "absolute"; @@ -1272,9 +1272,9 @@ $.extend( $.effects, { marginRight: element.css( "marginRight" ), "float": element.css( "float" ) } ) - .outerWidth( element.outerWidth() ) - .outerHeight( element.outerHeight() ) - .addClass( "ui-effects-placeholder" ); + .outerWidth( element.outerWidth() ) + .outerHeight( element.outerHeight() ) + .addClass( "ui-effects-placeholder" ); element.data( dataSpace + "placeholder", placeholder ); } @@ -1290,7 +1290,7 @@ $.extend( $.effects, { removePlaceholder: function( element ) { var dataKey = dataSpace + "placeholder", - placeholder = element.data( dataKey ); + placeholder = element.data( dataKey ); if ( placeholder ) { placeholder.remove(); @@ -1362,8 +1362,8 @@ function _normalizeArguments( effect, options, speed, callback ) { speed = speed || options.duration; effect.duration = $.fx.off ? 0 : typeof speed === "number" ? speed : - speed in $.fx.speeds ? $.fx.speeds[ speed ] : - $.fx.speeds._default; + speed in $.fx.speeds ? $.fx.speeds[ speed ] : + $.fx.speeds._default; effect.complete = callback || options.complete; @@ -1420,7 +1420,7 @@ $.fn.extend( { // See $.uiBackCompat inside of run() for removal of defaultMode in 1.14 if ( defaultMode && ( normalizedMode === "show" || - ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) { + ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) { el.show(); } @@ -1598,17 +1598,17 @@ $.fn.extend( { } ); function parseClip( str, element ) { - var outerWidth = element.outerWidth(), - outerHeight = element.outerHeight(), - clipRegex = /^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/, - values = clipRegex.exec( str ) || [ "", 0, outerWidth, outerHeight, 0 ]; + var outerWidth = element.outerWidth(), + outerHeight = element.outerHeight(), + clipRegex = /^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/, + values = clipRegex.exec( str ) || [ "", 0, outerWidth, outerHeight, 0 ]; - return { - top: parseFloat( values[ 1 ] ) || 0, - right: values[ 2 ] === "auto" ? outerWidth : parseFloat( values[ 2 ] ), - bottom: values[ 3 ] === "auto" ? outerHeight : parseFloat( values[ 3 ] ), - left: parseFloat( values[ 4 ] ) || 0 - }; + return { + top: parseFloat( values[ 1 ] ) || 0, + right: values[ 2 ] === "auto" ? outerWidth : parseFloat( values[ 2 ] ), + bottom: values[ 3 ] === "auto" ? outerHeight : parseFloat( values[ 3 ] ), + left: parseFloat( values[ 4 ] ) || 0 + }; } $.fx.step.clip = function( fx ) { diff --git a/src/js/_enqueues/vendor/jquery/ui/menu.js b/src/js/_enqueues/vendor/jquery/ui/menu.js index 1e43abd09f..18e71c9bd9 100644 --- a/src/js/_enqueues/vendor/jquery/ui/menu.js +++ b/src/js/_enqueues/vendor/jquery/ui/menu.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Menu 1.13.0 + * jQuery UI Menu 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -35,7 +35,7 @@ "use strict"; return $.widget( "ui.menu", { - version: "1.13.0", + version: "1.13.1", defaultElement: "
    ", delay: 300, options: { @@ -95,7 +95,7 @@ return $.widget( "ui.menu", { if ( target.has( ".ui-menu" ).length ) { this.expand( event ); } else if ( !this.element.is( ":focus" ) && - active.closest( ".ui-menu" ).length ) { + active.closest( ".ui-menu" ).length ) { // Redirect focus to the menu this.element.trigger( "focus", [ true ] ); @@ -162,7 +162,7 @@ return $.widget( "ui.menu", { // If the mouse didn't actually move, but the page was scrolled, ignore the event (#9356) if ( event.clientX === this.lastMousePosition.x && - event.clientY === this.lastMousePosition.y ) { + event.clientY === this.lastMousePosition.y ) { return; } @@ -202,10 +202,10 @@ return $.widget( "ui.menu", { this.element .removeAttr( "aria-activedescendant" ) .find( ".ui-menu" ).addBack() - .removeAttr( "role aria-labelledby aria-expanded aria-hidden aria-disabled " + - "tabIndex" ) - .removeUniqueId() - .show(); + .removeAttr( "role aria-labelledby aria-expanded aria-hidden aria-disabled " + + "tabIndex" ) + .removeUniqueId() + .show(); submenus.children().each( function() { var elem = $( this ); @@ -220,77 +220,77 @@ return $.widget( "ui.menu", { preventDefault = true; switch ( event.keyCode ) { - case $.ui.keyCode.PAGE_UP: - this.previousPage( event ); - break; - case $.ui.keyCode.PAGE_DOWN: - this.nextPage( event ); - break; - case $.ui.keyCode.HOME: - this._move( "first", "first", event ); - break; - case $.ui.keyCode.END: - this._move( "last", "last", event ); - break; - case $.ui.keyCode.UP: - this.previous( event ); - break; - case $.ui.keyCode.DOWN: - this.next( event ); - break; - case $.ui.keyCode.LEFT: - this.collapse( event ); - break; - case $.ui.keyCode.RIGHT: - if ( this.active && !this.active.is( ".ui-state-disabled" ) ) { - this.expand( event ); - } - break; - case $.ui.keyCode.ENTER: - case $.ui.keyCode.SPACE: - this._activate( event ); - break; - case $.ui.keyCode.ESCAPE: - this.collapse( event ); - break; - default: - preventDefault = false; - prev = this.previousFilter || ""; - skip = false; + case $.ui.keyCode.PAGE_UP: + this.previousPage( event ); + break; + case $.ui.keyCode.PAGE_DOWN: + this.nextPage( event ); + break; + case $.ui.keyCode.HOME: + this._move( "first", "first", event ); + break; + case $.ui.keyCode.END: + this._move( "last", "last", event ); + break; + case $.ui.keyCode.UP: + this.previous( event ); + break; + case $.ui.keyCode.DOWN: + this.next( event ); + break; + case $.ui.keyCode.LEFT: + this.collapse( event ); + break; + case $.ui.keyCode.RIGHT: + if ( this.active && !this.active.is( ".ui-state-disabled" ) ) { + this.expand( event ); + } + break; + case $.ui.keyCode.ENTER: + case $.ui.keyCode.SPACE: + this._activate( event ); + break; + case $.ui.keyCode.ESCAPE: + this.collapse( event ); + break; + default: + preventDefault = false; + prev = this.previousFilter || ""; + skip = false; - // Support number pad values - character = event.keyCode >= 96 && event.keyCode <= 105 ? - ( event.keyCode - 96 ).toString() : String.fromCharCode( event.keyCode ); + // Support number pad values + character = event.keyCode >= 96 && event.keyCode <= 105 ? + ( event.keyCode - 96 ).toString() : String.fromCharCode( event.keyCode ); - clearTimeout( this.filterTimer ); + clearTimeout( this.filterTimer ); - if ( character === prev ) { - skip = true; - } else { - character = prev + character; - } + if ( character === prev ) { + skip = true; + } else { + character = prev + character; + } - match = this._filterMenuItems( character ); - match = skip && match.index( this.active.next() ) !== -1 ? - this.active.nextAll( ".ui-menu-item" ) : - match; - - // If no matches on the current filter, reset to the last character pressed - // to move down the menu to the first item that starts with that character - if ( !match.length ) { - character = String.fromCharCode( event.keyCode ); match = this._filterMenuItems( character ); - } + match = skip && match.index( this.active.next() ) !== -1 ? + this.active.nextAll( ".ui-menu-item" ) : + match; - if ( match.length ) { - this.focus( event, match ); - this.previousFilter = character; - this.filterTimer = this._delay( function() { + // If no matches on the current filter, reset to the last character pressed + // to move down the menu to the first item that starts with that character + if ( !match.length ) { + character = String.fromCharCode( event.keyCode ); + match = this._filterMenuItems( character ); + } + + if ( match.length ) { + this.focus( event, match ); + this.previousFilter = character; + this.filterTimer = this._delay( function() { + delete this.previousFilter; + }, 1000 ); + } else { delete this.previousFilter; - }, 1000 ); - } else { - delete this.previousFilter; - } + } } if ( preventDefault ) { @@ -353,11 +353,11 @@ return $.widget( "ui.menu", { newItems = items.not( ".ui-menu-item, .ui-menu-divider" ); newWrappers = newItems.children() .not( ".ui-menu" ) - .uniqueId() - .attr( { - tabIndex: -1, - role: this._itemRole() - } ); + .uniqueId() + .attr( { + tabIndex: -1, + role: this._itemRole() + } ); this._addClass( newItems, "ui-menu-item" ) ._addClass( newWrappers, "ui-menu-item-wrapper" ); @@ -413,8 +413,8 @@ return $.widget( "ui.menu", { // Highlight active parent menu item, if any activeParent = this.active .parent() - .closest( ".ui-menu-item" ) - .children( ".ui-menu-item-wrapper" ); + .closest( ".ui-menu-item" ) + .children( ".ui-menu-item-wrapper" ); this._addClass( activeParent, null, "ui-state-active" ); if ( event && event.type === "keydown" ) { @@ -695,13 +695,13 @@ return $.widget( "ui.menu", { return this.activeMenu .find( this.options.items ) - // Only match on items, not dividers or other content (#10571) - .filter( ".ui-menu-item" ) - .filter( function() { - return regex.test( - String.prototype.trim.call( - $( this ).children( ".ui-menu-item-wrapper" ).text() ) ); - } ); + // Only match on items, not dividers or other content (#10571) + .filter( ".ui-menu-item" ) + .filter( function() { + return regex.test( + String.prototype.trim.call( + $( this ).children( ".ui-menu-item-wrapper" ).text() ) ); + } ); } } ); diff --git a/src/js/_enqueues/vendor/jquery/ui/mouse.js b/src/js/_enqueues/vendor/jquery/ui/mouse.js index c3a6a6edf1..8ad7d9aaef 100644 --- a/src/js/_enqueues/vendor/jquery/ui/mouse.js +++ b/src/js/_enqueues/vendor/jquery/ui/mouse.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Mouse 1.13.0 + * jQuery UI Mouse 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -36,7 +36,7 @@ $( document ).on( "mouseup", function() { } ); return $.widget( "ui.mouse", { - version: "1.13.0", + version: "1.13.1", options: { cancel: "input, textarea, button, select, option", distance: 1, @@ -146,17 +146,17 @@ return $.widget( "ui.mouse", { // IE mouseup check - mouseup happened when mouse was out of window if ( $.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && - !event.button ) { + !event.button ) { return this._mouseUp( event ); - // Iframe mouseup check - mouseup occurred in another document + // Iframe mouseup check - mouseup occurred in another document } else if ( !event.which ) { // Support: Safari <=8 - 9 // Safari sets which to 0 if you press any of the following keys // during a drag (#14461) if ( event.originalEvent.altKey || event.originalEvent.ctrlKey || - event.originalEvent.metaKey || event.originalEvent.shiftKey ) { + event.originalEvent.metaKey || event.originalEvent.shiftKey ) { this.ignoreMissingWhich = true; } else if ( !this.ignoreMissingWhich ) { return this._mouseUp( event ); diff --git a/src/js/_enqueues/vendor/jquery/ui/progressbar.js b/src/js/_enqueues/vendor/jquery/ui/progressbar.js index e1c78112da..e2c4677ceb 100644 --- a/src/js/_enqueues/vendor/jquery/ui/progressbar.js +++ b/src/js/_enqueues/vendor/jquery/ui/progressbar.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Progressbar 1.13.0 + * jQuery UI Progressbar 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -37,7 +37,7 @@ "use strict"; return $.widget( "ui.progressbar", { - version: "1.13.0", + version: "1.13.1", options: { classes: { "ui-progressbar": "ui-corner-all", diff --git a/src/js/_enqueues/vendor/jquery/ui/resizable.js b/src/js/_enqueues/vendor/jquery/ui/resizable.js index 5fc38f53b3..e6cec7522f 100644 --- a/src/js/_enqueues/vendor/jquery/ui/resizable.js +++ b/src/js/_enqueues/vendor/jquery/ui/resizable.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Resizable 1.13.0 + * jQuery UI Resizable 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -36,7 +36,7 @@ "use strict"; $.widget( "ui.resizable", $.ui.mouse, { - version: "1.13.0", + version: "1.13.1", widgetEventPrefix: "resize", options: { alsoResize: false, @@ -228,15 +228,15 @@ $.widget( "ui.resizable", $.ui.mouse, { this._super( key, value ); switch ( key ) { - case "handles": - this._removeHandles(); - this._setupHandles(); - break; - case "aspectRatio": - this._aspectRatio = !!value; - break; - default: - break; + case "handles": + this._removeHandles(); + this._setupHandles(); + break; + case "aspectRatio": + this._aspectRatio = !!value; + break; + default: + break; } }, @@ -300,9 +300,9 @@ $.widget( "ui.resizable", $.ui.mouse, { } if ( this.elementIsWrapper && - this.originalElement[ 0 ] - .nodeName - .match( /^(textarea|input|select|button)$/i ) ) { + this.originalElement[ 0 ] + .nodeName + .match( /^(textarea|input|select|button)$/i ) ) { axis = $( this.handles[ i ], this.element ); padWrapper = /sw|ne|nw|se|n|s/.test( i ) ? @@ -311,8 +311,8 @@ $.widget( "ui.resizable", $.ui.mouse, { padPos = [ "padding", /ne|nw|n/.test( i ) ? "Top" : - /se|sw|s/.test( i ) ? "Bottom" : - /^e$/.test( i ) ? "Right" : "Left" ].join( "" ); + /se|sw|s/.test( i ) ? "Bottom" : + /^e$/.test( i ) ? "Right" : "Left" ].join( "" ); target.css( padPos, padWrapper ); @@ -384,20 +384,20 @@ $.widget( "ui.resizable", $.ui.mouse, { this.position = { left: curleft, top: curtop }; this.size = this._helper ? { - width: this.helper.width(), - height: this.helper.height() - } : { - width: el.width(), - height: el.height() - }; + width: this.helper.width(), + height: this.helper.height() + } : { + width: el.width(), + height: el.height() + }; this.originalSize = this._helper ? { - width: el.outerWidth(), - height: el.outerHeight() - } : { - width: el.width(), - height: el.height() - }; + width: el.outerWidth(), + height: el.outerHeight() + } : { + width: el.width(), + height: el.height() + }; this.sizeDiff = { width: el.outerWidth() - el.width(), @@ -1063,21 +1063,21 @@ $.ui.plugin.add( "resizable", "alsoResize", { left: ( that.position.left - op.left ) || 0 }; - $( o.alsoResize ).each( function() { - var el = $( this ), start = $( this ).data( "ui-resizable-alsoresize" ), style = {}, - css = el.parents( ui.originalElement[ 0 ] ).length ? - [ "width", "height" ] : - [ "width", "height", "top", "left" ]; + $( o.alsoResize ).each( function() { + var el = $( this ), start = $( this ).data( "ui-resizable-alsoresize" ), style = {}, + css = el.parents( ui.originalElement[ 0 ] ).length ? + [ "width", "height" ] : + [ "width", "height", "top", "left" ]; - $.each( css, function( i, prop ) { - var sum = ( start[ prop ] || 0 ) + ( delta[ prop ] || 0 ); - if ( sum && sum >= 0 ) { - style[ prop ] = sum || null; - } - } ); - - el.css( style ); + $.each( css, function( i, prop ) { + var sum = ( start[ prop ] || 0 ) + ( delta[ prop ] || 0 ); + if ( sum && sum >= 0 ) { + style[ prop ] = sum || null; + } } ); + + el.css( style ); + } ); }, stop: function() { diff --git a/src/js/_enqueues/vendor/jquery/ui/selectable.js b/src/js/_enqueues/vendor/jquery/ui/selectable.js index ae95624da4..5aef397b6c 100644 --- a/src/js/_enqueues/vendor/jquery/ui/selectable.js +++ b/src/js/_enqueues/vendor/jquery/ui/selectable.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Selectable 1.13.0 + * jQuery UI Selectable 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -34,7 +34,7 @@ "use strict"; return $.widget( "ui.selectable", $.ui.mouse, { - version: "1.13.0", + version: "1.13.1", options: { appendTo: "body", autoRefresh: true, @@ -210,10 +210,10 @@ return $.widget( "ui.selectable", $.ui.mouse, { if ( options.tolerance === "touch" ) { hit = ( !( offset.left > x2 || offset.right < x1 || offset.top > y2 || - offset.bottom < y1 ) ); + offset.bottom < y1 ) ); } else if ( options.tolerance === "fit" ) { hit = ( offset.left > x1 && offset.right < x2 && offset.top > y1 && - offset.bottom < y2 ); + offset.bottom < y2 ); } if ( hit ) { diff --git a/src/js/_enqueues/vendor/jquery/ui/selectmenu.js b/src/js/_enqueues/vendor/jquery/ui/selectmenu.js index 2db744de1b..0e9fcf955a 100644 --- a/src/js/_enqueues/vendor/jquery/ui/selectmenu.js +++ b/src/js/_enqueues/vendor/jquery/ui/selectmenu.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Selectmenu 1.13.0 + * jQuery UI Selectmenu 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -38,7 +38,7 @@ "use strict"; return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { - version: "1.13.0", + version: "1.13.1", defaultElement: "", widgetEventPrefix: "spin", options: { @@ -234,10 +234,10 @@ $.widget( "ui.spinner", { .wrap( "" ) .parent() - // Add buttons - .append( - "" - ); + // Add buttons + .append( + "" + ); }, _draw: function() { @@ -275,7 +275,7 @@ $.widget( "ui.spinner", { // IE 6 doesn't understand height: 50% for the buttons // unless the wrapper has an explicit height if ( this.buttons.height() > Math.ceil( this.uiSpinner.height() * 0.5 ) && - this.uiSpinner.height() > 0 ) { + this.uiSpinner.height() > 0 ) { this.uiSpinner.height( this.uiSpinner.height() ); } }, @@ -285,18 +285,18 @@ $.widget( "ui.spinner", { keyCode = $.ui.keyCode; switch ( event.keyCode ) { - case keyCode.UP: - this._repeat( null, 1, event ); - return true; - case keyCode.DOWN: - this._repeat( null, -1, event ); - return true; - case keyCode.PAGE_UP: - this._repeat( null, options.page, event ); - return true; - case keyCode.PAGE_DOWN: - this._repeat( null, -options.page, event ); - return true; + case keyCode.UP: + this._repeat( null, 1, event ); + return true; + case keyCode.DOWN: + this._repeat( null, -1, event ); + return true; + case keyCode.PAGE_UP: + this._repeat( null, options.page, event ); + return true; + case keyCode.PAGE_DOWN: + this._repeat( null, -options.page, event ); + return true; } return false; @@ -561,8 +561,8 @@ if ( $.uiBackCompat !== false ) { .wrap( this._uiSpinnerHtml() ) .parent() - // Add buttons - .append( this._buttonHtml() ); + // Add buttons + .append( this._buttonHtml() ); }, _uiSpinnerHtml: function() { return ""; diff --git a/src/js/_enqueues/vendor/jquery/ui/tabs.js b/src/js/_enqueues/vendor/jquery/ui/tabs.js index 8cddc5d0e5..5d44bdd5f6 100644 --- a/src/js/_enqueues/vendor/jquery/ui/tabs.js +++ b/src/js/_enqueues/vendor/jquery/ui/tabs.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Tabs 1.13.0 + * jQuery UI Tabs 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -35,7 +35,7 @@ "use strict"; $.widget( "ui.tabs", { - version: "1.13.0", + version: "1.13.1", delay: 300, options: { active: null, @@ -176,39 +176,39 @@ $.widget( "ui.tabs", { } switch ( event.keyCode ) { - case $.ui.keyCode.RIGHT: - case $.ui.keyCode.DOWN: - selectedIndex++; - break; - case $.ui.keyCode.UP: - case $.ui.keyCode.LEFT: - goingForward = false; - selectedIndex--; - break; - case $.ui.keyCode.END: - selectedIndex = this.anchors.length - 1; - break; - case $.ui.keyCode.HOME: - selectedIndex = 0; - break; - case $.ui.keyCode.SPACE: + case $.ui.keyCode.RIGHT: + case $.ui.keyCode.DOWN: + selectedIndex++; + break; + case $.ui.keyCode.UP: + case $.ui.keyCode.LEFT: + goingForward = false; + selectedIndex--; + break; + case $.ui.keyCode.END: + selectedIndex = this.anchors.length - 1; + break; + case $.ui.keyCode.HOME: + selectedIndex = 0; + break; + case $.ui.keyCode.SPACE: - // Activate only, no collapsing - event.preventDefault(); - clearTimeout( this.activating ); - this._activate( selectedIndex ); - return; - case $.ui.keyCode.ENTER: + // Activate only, no collapsing + event.preventDefault(); + clearTimeout( this.activating ); + this._activate( selectedIndex ); + return; + case $.ui.keyCode.ENTER: - // Toggle (cancel delayed activation, allow collapsing) - event.preventDefault(); - clearTimeout( this.activating ); + // Toggle (cancel delayed activation, allow collapsing) + event.preventDefault(); + clearTimeout( this.activating ); - // Determine if we should collapse or activate - this._activate( selectedIndex === this.options.active ? false : selectedIndex ); - return; - default: - return; + // Determine if we should collapse or activate + this._activate( selectedIndex === this.options.active ? false : selectedIndex ); + return; + default: + return; } // Focus the appropriate tab, based on which key was pressed @@ -330,7 +330,7 @@ $.widget( "ui.tabs", { options.active = false; this.active = $(); - // was active, but active tab is gone + // was active, but active tab is gone } else if ( this.active.length && !$.contains( this.tablist[ 0 ], this.active[ 0 ] ) ) { // all remaining tabs are disabled @@ -338,12 +338,12 @@ $.widget( "ui.tabs", { options.active = false; this.active = $(); - // activate previous tab + // activate previous tab } else { this._activate( this._findNextTab( Math.max( 0, options.active - 1 ), false ) ); } - // was active, active tab still exists + // was active, active tab still exists } else { // make sure active index is correct @@ -447,7 +447,7 @@ $.widget( "ui.tabs", { panelId = selector.substring( 1 ); panel = that.element.find( that._sanitizeSelector( selector ) ); - // remote tab + // remote tab } else { // If the tab doesn't already have aria-controls, @@ -605,17 +605,17 @@ $.widget( "ui.tabs", { if ( tab.hasClass( "ui-state-disabled" ) || - // tab is already loading - tab.hasClass( "ui-tabs-loading" ) || + // tab is already loading + tab.hasClass( "ui-tabs-loading" ) || - // can't switch durning an animation - this.running || + // can't switch durning an animation + this.running || - // click on active header, but not collapsible - ( clickedIsActive && !options.collapsible ) || + // click on active header, but not collapsible + ( clickedIsActive && !options.collapsible ) || - // allow canceling activation - ( this._trigger( "beforeActivate", event, eventData ) === false ) ) { + // allow canceling activation + ( this._trigger( "beforeActivate", event, eventData ) === false ) ) { return; } diff --git a/src/js/_enqueues/vendor/jquery/ui/tooltip.js b/src/js/_enqueues/vendor/jquery/ui/tooltip.js index 9665f0763d..d4c8d74172 100644 --- a/src/js/_enqueues/vendor/jquery/ui/tooltip.js +++ b/src/js/_enqueues/vendor/jquery/ui/tooltip.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Tooltip 1.13.0 + * jQuery UI Tooltip 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors @@ -35,7 +35,7 @@ "use strict"; $.widget( "ui.tooltip", { - version: "1.13.0", + version: "1.13.1", options: { classes: { "ui-tooltip": "ui-corner-all ui-widget-shadow" @@ -217,7 +217,7 @@ $.widget( "ui.tooltip", { eventType = event ? event.type : null; if ( typeof contentOption === "string" || contentOption.nodeType || - contentOption.jquery ) { + contentOption.jquery ) { return this._open( event, target, contentOption ); } @@ -348,7 +348,10 @@ $.widget( "ui.tooltip", { // tooltips will handle this in destroy. if ( target[ 0 ] !== this.element[ 0 ] ) { events.remove = function() { - this._removeTooltip( this._find( target ).tooltip ); + var targetElement = this._find( target ); + if ( targetElement ) { + this._removeTooltip( targetElement.tooltip ); + } }; } diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 173022237c..844ce131e2 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -765,55 +765,55 @@ function wp_default_scripts( $scripts ) { // In order to keep backwards compatibility, and to keep the optimized loading, // the source files were flattened and included with some modifications for AMD loading. // A notable change is that 'jquery-ui-core' now contains 'jquery-ui-position' and 'jquery-ui-widget'. - $scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$suffix.js", array( 'jquery' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.13.0', 1 ); + $scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$suffix.js", array( 'jquery' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.13.1', 1 ); - $scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$suffix.js", array( 'jquery-effects-core', 'jquery-effects-scale' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$suffix.js", array( 'jquery-effects-core', 'jquery-effects-size' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); + $scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$suffix.js", array( 'jquery-effects-core', 'jquery-effects-scale' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$suffix.js", array( 'jquery-effects-core', 'jquery-effects-size' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); // Widgets - $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$suffix.js", array( 'jquery-ui-core', 'jquery-ui-controlgroup', 'jquery-ui-checkboxradio' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$suffix.js", array( 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$suffix.js", array( 'jquery-ui-menu' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$suffix.js", array( 'jquery-ui-button' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 ); + $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$suffix.js", array( 'jquery-ui-core', 'jquery-ui-controlgroup', 'jquery-ui-checkboxradio' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$suffix.js", array( 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$suffix.js", array( 'jquery-ui-menu' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$suffix.js", array( 'jquery-ui-button' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); // New in 1.12.1 - $scripts->add( 'jquery-ui-checkboxradio', "/wp-includes/js/jquery/ui/checkboxradio$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.13.0', 1 ); + $scripts->add( 'jquery-ui-checkboxradio', "/wp-includes/js/jquery/ui/checkboxradio$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); // Interactions - $scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$suffix.js", array( 'jquery-ui-draggable' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0', 1 ); + $scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$suffix.js", array( 'jquery-ui-draggable' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 ); // As of 1.12.1 `jquery-ui-position` and `jquery-ui-widget` are part of `jquery-ui-core`. // Listed here for back-compat. - $scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.13.0', 1 ); - $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13.0', 1 ); + $scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.13.1', 1 ); + $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13.1', 1 ); // Strings for 'jquery-ui-autocomplete' live region messages. did_action( 'init' ) && $scripts->localize(