" ).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 cb9c8c0c6bbd9..71013ee4c8ea0 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: "
",
options: {
classes: {
@@ -240,8 +240,8 @@ $.widget( "ui.button", {
// Make sure we can't end up with a button that has neither text nor icon
if ( key === "showLabel" ) {
- this._toggleClass( "ui-button-icon-only", null, !value );
- this._updateTooltip();
+ this._toggleClass( "ui-button-icon-only", null, !value );
+ this._updateTooltip();
}
if ( key === "label" ) {
@@ -306,7 +306,7 @@ if ( $.uiBackCompat !== false ) {
this.options.text = this.options.showLabel;
}
if ( !this.options.icon && ( this.options.icons.primary ||
- this.options.icons.secondary ) ) {
+ this.options.icons.secondary ) ) {
if ( this.options.icons.primary ) {
this.options.icon = this.options.icons.primary;
} else {
diff --git a/src/js/_enqueues/vendor/jquery/ui/checkboxradio.js b/src/js/_enqueues/vendor/jquery/ui/checkboxradio.js
index 22e8d03ab7789..4033a6c930389 100644
--- a/src/js/_enqueues/vendor/jquery/ui/checkboxradio.js
+++ b/src/js/_enqueues/vendor/jquery/ui/checkboxradio.js
@@ -1,5 +1,5 @@
/*!
- * jQuery UI Checkboxradio 1.13.0
+ * jQuery UI Checkboxradio 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -36,7 +36,7 @@
"use strict";
$.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
- version: "1.13.0",
+ version: "1.13.1",
options: {
disabled: null,
label: null,
diff --git a/src/js/_enqueues/vendor/jquery/ui/controlgroup.js b/src/js/_enqueues/vendor/jquery/ui/controlgroup.js
index 828f032221b90..0099ca2784172 100644
--- a/src/js/_enqueues/vendor/jquery/ui/controlgroup.js
+++ b/src/js/_enqueues/vendor/jquery/ui/controlgroup.js
@@ -1,5 +1,5 @@
/*!
- * jQuery UI Controlgroup 1.13.0
+ * jQuery UI Controlgroup 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -37,7 +37,7 @@
var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
return $.widget( "ui.controlgroup", {
- version: "1.13.0",
+ version: "1.13.1",
defaultElement: "",
options: {
direction: "horizontal",
diff --git a/src/js/_enqueues/vendor/jquery/ui/core.js b/src/js/_enqueues/vendor/jquery/ui/core.js
index 37ba1bea760a2..b5be5f9a75da4 100644
--- a/src/js/_enqueues/vendor/jquery/ui/core.js
+++ b/src/js/_enqueues/vendor/jquery/ui/core.js
@@ -1,4 +1,4 @@
-/*! jQuery UI - v1.13.0 - 2021-10-07
+/*! jQuery UI - v1.13.1 - 2022-01-20
* http://jqueryui.com
* Includes: data.js, disable-selection.js, escape-selector.js, focusable.js, form-reset-mixin.js, form.js, ie.js, jquery-1-7.js, keycode.js, labels.js, plugin.js, position.js, safe-active-element.js, safe-blur.js, scroll-parent.js, tabbable.js, unique-id.js, version.js, widget.js
* Copyright jQuery Foundation and other contributors; Licensed */
@@ -20,11 +20,11 @@
// Source: version.js
$.ui = $.ui || {};
-$.ui.version = "1.13.0";
+$.ui.version = "1.13.1";
// Source: data.js
/*!
- * jQuery UI :data 1.13.0
+ * jQuery UI :data 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -53,7 +53,7 @@ $.extend( $.expr.pseudos, {
// Source: disable-selection.js
/*!
- * jQuery UI Disable Selection 1.13.0
+ * jQuery UI Disable Selection 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -87,7 +87,7 @@ $.fn.extend( {
// Source: focusable.js
/*!
- * jQuery UI Focusable 1.13.0
+ * jQuery UI Focusable 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -155,7 +155,6 @@ $.extend( $.expr.pseudos, {
}
} );
-// Source: form.js
// Support: IE8 Only
// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop
// with a string, so we need to find the proper form.
@@ -165,7 +164,7 @@ $.fn._form = function() {
// Source: form-reset-mixin.js
/*!
- * jQuery UI Form Reset Mixin 1.13.0
+ * jQuery UI Form Reset Mixin 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -304,7 +303,7 @@ if ( !$.fn.even || !$.fn.odd ) {
// Source: keycode.js
/*!
- * jQuery UI Keycode 1.13.0
+ * jQuery UI Keycode 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -338,7 +337,7 @@ $.ui.keyCode = {
// Source: labels.js
/*!
- * jQuery UI Labels 1.13.0
+ * jQuery UI Labels 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -410,7 +409,7 @@ $.ui.plugin = {
}
if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode ||
- instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
+ instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
return;
}
@@ -424,7 +423,7 @@ $.ui.plugin = {
// Source: position.js
/*!
- * jQuery UI Position 1.13.0
+ * jQuery UI Position 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -957,7 +956,7 @@ $.ui.safeBlur = function( element ) {
// Source: scroll-parent.js
/*!
- * jQuery UI Scroll Parent 1.13.0
+ * jQuery UI Scroll Parent 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -990,7 +989,7 @@ $.fn.scrollParent = function( includeHidden ) {
// Source: tabbable.js
/*!
- * jQuery UI Tabbable 1.13.0
+ * jQuery UI Tabbable 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -1013,7 +1012,7 @@ $.extend( $.expr.pseudos, {
// Source: unique-id.js
/*!
- * jQuery UI Unique ID 1.13.0
+ * jQuery UI Unique ID 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -1050,7 +1049,7 @@ $.fn.extend( {
// Source: widget.js
/*!
- * jQuery UI Widget 1.13.0
+ * jQuery UI Widget 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -1113,7 +1112,7 @@ $.widget = function( name, base, prototype ) {
constructor = $[ namespace ][ name ] = function( options, element ) {
// Allow instantiation without "new" keyword
- if ( !this._createWidget ) {
+ if ( !this || !this._createWidget ) {
return new constructor( options, element );
}
@@ -1233,7 +1232,7 @@ $.widget.extend = function( target ) {
// Don't extend strings, arrays, etc. with objects
$.widget.extend( {}, value );
- // Copy everything else by reference
+ // Copy everything else by reference
} else {
target[ key ] = value;
}
@@ -1482,8 +1481,8 @@ $.Widget.prototype = {
for ( classKey in value ) {
currentElements = this.classesElementLookup[ classKey ];
if ( value[ classKey ] === this.options.classes[ classKey ] ||
- !currentElements ||
- !currentElements.length ) {
+ !currentElements ||
+ !currentElements.length ) {
continue;
}
@@ -1535,6 +1534,8 @@ $.Widget.prototype = {
}, options );
function bindRemoveEvent() {
+ var nodesToBind = [];
+
options.element.each( function( _, element ) {
var isTracked = $.map( that.classesElementLookup, function( elements ) {
return elements;
@@ -1544,11 +1545,13 @@ $.Widget.prototype = {
} );
if ( !isTracked ) {
- that._on( $( element ), {
- remove: "_untrackClassesElement"
- } );
+ nodesToBind.push( element );
}
} );
+
+ that._on( $( nodesToBind ), {
+ remove: "_untrackClassesElement"
+ } );
}
function processClassString( classes, checkOption ) {
@@ -1639,7 +1642,7 @@ $.Widget.prototype = {
// - disabled as an array instead of boolean
// - disabled class as method for disabling individual parts
if ( !suppressDisabledCheck &&
- ( instance.options.disabled === true ||
+ ( instance.options.disabled === true ||
$( this ).hasClass( "ui-state-disabled" ) ) ) {
return;
}
diff --git a/src/js/_enqueues/vendor/jquery/ui/datepicker.js b/src/js/_enqueues/vendor/jquery/ui/datepicker.js
index 594c0d2ad652c..3a05534533d87 100644
--- a/src/js/_enqueues/vendor/jquery/ui/datepicker.js
+++ b/src/js/_enqueues/vendor/jquery/ui/datepicker.js
@@ -1,6 +1,6 @@
/* eslint-disable max-len, camelcase */
/*!
- * jQuery UI Datepicker 1.13.0
+ * jQuery UI Datepicker 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -35,7 +35,7 @@
} )( function( $ ) {
"use strict";
-$.extend( $.ui, { datepicker: { version: "1.13.0" } } );
+$.extend( $.ui, { datepicker: { version: "1.13.1" } } );
var datepicker_instActive;
@@ -107,40 +107,40 @@ function Datepicker() {
};
this._defaults = { // Global defaults for all the date picker instances
showOn: "focus", // "focus" for popup on focus,
- // "button" for trigger button, or "both" for either
+ // "button" for trigger button, or "both" for either
showAnim: "fadeIn", // Name of jQuery animation for popup
showOptions: {}, // Options for enhanced animations
defaultDate: null, // Used when field is blank: actual date,
- // +/-number for offset from today, null for today
+ // +/-number for offset from today, null for today
appendText: "", // Display text following the input box, e.g. showing the format
buttonText: "...", // Text for trigger button
buttonImage: "", // URL for trigger button image
buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
hideIfNoPrevNext: false, // True to hide next/previous month links
- // if not applicable, false to just disable them
+ // if not applicable, false to just disable them
navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
gotoCurrent: false, // True if today link goes back to current selection instead
changeMonth: false, // True if month can be selected directly, false if only prev/next
changeYear: false, // True if year can be selected directly, false if only prev/next
yearRange: "c-10:c+10", // Range of years to display in drop-down,
- // either relative to today's year (-nn:+nn), relative to currently displayed year
- // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)
+ // either relative to today's year (-nn:+nn), relative to currently displayed year
+ // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)
showOtherMonths: false, // True to show dates in other months, false to leave blank
selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable
showWeek: false, // True to show week of the year, false to not show it
calculateWeek: this.iso8601Week, // How to calculate the week of the year,
- // takes a Date and returns the number of the week for it
+ // takes a Date and returns the number of the week for it
shortYearCutoff: "+10", // Short year values < this are in the current century,
- // > this are in the previous century,
- // string value starting with "+" for current year + value
+ // > this are in the previous century,
+ // string value starting with "+" for current year + value
minDate: null, // The earliest selectable date, or null for no limit
maxDate: null, // The latest selectable date, or null for no limit
duration: "fast", // Duration of display/closure
beforeShowDay: null, // Function that takes a date and returns an array with
- // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
- // [2] = cell title (optional), e.g. $.datepicker.noWeekends
+ // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
+ // [2] = cell title (optional), e.g. $.datepicker.noWeekends
beforeShow: null, // Function that takes an input field and
- // returns a set of custom settings for the date picker
+ // returns a set of custom settings for the date picker
onSelect: null, // Define a callback function when a date is selected
onChangeMonthYear: null, // Define a callback function when the month or year is changed
onClose: null, // Define a callback function when the datepicker is closed
@@ -213,7 +213,7 @@ $.extend( Datepicker.prototype, {
drawMonth: 0, drawYear: 0, // month being drawn
inline: inline, // is datepicker inline or not
dpDiv: ( !inline ? this.dpDiv : // presentation div
- datepicker_bindHover( $( "
" ) ) ) };
+ datepicker_bindHover( $( "
" ) ) ) };
},
/* Attach the date picker to an input field. */
@@ -226,7 +226,7 @@ $.extend( Datepicker.prototype, {
}
this._attachments( input, inst );
input.addClass( this.markerClassName ).on( "keydown", this._doKeyDown ).
- on( "keypress", this._doKeyPress ).on( "keyup", this._doKeyUp );
+ on( "keypress", this._doKeyPress ).on( "keyup", this._doKeyUp );
this._autoSize( inst );
$.data( target, "datepicker", inst );
@@ -426,10 +426,10 @@ $.extend( Datepicker.prototype, {
inst.append.remove();
inst.trigger.remove();
$target.removeClass( this.markerClassName ).
- off( "focus", this._showDatepicker ).
- off( "keydown", this._doKeyDown ).
- off( "keypress", this._doKeyPress ).
- off( "keyup", this._doKeyUp );
+ off( "focus", this._showDatepicker ).
+ off( "keydown", this._doKeyDown ).
+ off( "keypress", this._doKeyPress ).
+ off( "keyup", this._doKeyUp );
} else if ( nodeName === "div" || nodeName === "span" ) {
$target.removeClass( this.markerClassName ).empty();
}
@@ -456,15 +456,15 @@ $.extend( Datepicker.prototype, {
if ( nodeName === "input" ) {
target.disabled = false;
inst.trigger.filter( "button" ).
- each( function() {
- this.disabled = false;
- } ).end().
- filter( "img" ).css( { opacity: "1.0", cursor: "" } );
+ each( function() {
+ this.disabled = false;
+ } ).end().
+ filter( "img" ).css( { opacity: "1.0", cursor: "" } );
} else if ( nodeName === "div" || nodeName === "span" ) {
inline = $target.children( "." + this._inlineClass );
inline.children().removeClass( "ui-state-disabled" );
inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ).
- prop( "disabled", false );
+ prop( "disabled", false );
}
this._disabledInputs = $.map( this._disabledInputs,
@@ -490,15 +490,15 @@ $.extend( Datepicker.prototype, {
if ( nodeName === "input" ) {
target.disabled = true;
inst.trigger.filter( "button" ).
- each( function() {
- this.disabled = true;
- } ).end().
- filter( "img" ).css( { opacity: "0.5", cursor: "default" } );
+ each( function() {
+ this.disabled = true;
+ } ).end().
+ filter( "img" ).css( { opacity: "0.5", cursor: "default" } );
} else if ( nodeName === "div" || nodeName === "span" ) {
inline = $target.children( "." + this._inlineClass );
inline.children().addClass( "ui-state-disabled" );
inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ).
- prop( "disabled", true );
+ prop( "disabled", true );
}
this._disabledInputs = $.map( this._disabledInputs,
@@ -554,7 +554,7 @@ $.extend( Datepicker.prototype, {
if ( arguments.length === 2 && typeof name === "string" ) {
return ( name === "defaults" ? $.extend( {}, $.datepicker._defaults ) :
( inst ? ( name === "all" ? $.extend( {}, inst.settings ) :
- this._get( inst, name ) ) : null ) );
+ this._get( inst, name ) ) : null ) );
}
settings = name || {};
@@ -647,83 +647,83 @@ $.extend( Datepicker.prototype, {
if ( $.datepicker._datepickerShowing ) {
switch ( event.keyCode ) {
case 9: $.datepicker._hideDatepicker();
- handled = false;
- break; // hide on tab out
+ handled = false;
+ break; // hide on tab out
case 13: sel = $( "td." + $.datepicker._dayOverClass + ":not(." +
- $.datepicker._currentClass + ")", inst.dpDiv );
- if ( sel[ 0 ] ) {
- $.datepicker._selectDay( event.target, inst.selectedMonth, inst.selectedYear, sel[ 0 ] );
- }
+ $.datepicker._currentClass + ")", inst.dpDiv );
+ if ( sel[ 0 ] ) {
+ $.datepicker._selectDay( event.target, inst.selectedMonth, inst.selectedYear, sel[ 0 ] );
+ }
- onSelect = $.datepicker._get( inst, "onSelect" );
- if ( onSelect ) {
- dateStr = $.datepicker._formatDate( inst );
+ onSelect = $.datepicker._get( inst, "onSelect" );
+ if ( onSelect ) {
+ dateStr = $.datepicker._formatDate( inst );
- // Trigger custom callback
- onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] );
- } else {
- $.datepicker._hideDatepicker();
- }
+ // Trigger custom callback
+ onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] );
+ } else {
+ $.datepicker._hideDatepicker();
+ }
- return false; // don't submit the form
+ return false; // don't submit the form
case 27: $.datepicker._hideDatepicker();
- break; // hide on escape
+ break; // hide on escape
case 33: $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
- -$.datepicker._get( inst, "stepBigMonths" ) :
- -$.datepicker._get( inst, "stepMonths" ) ), "M" );
- break; // previous month/year on page up/+ ctrl
+ -$.datepicker._get( inst, "stepBigMonths" ) :
+ -$.datepicker._get( inst, "stepMonths" ) ), "M" );
+ break; // previous month/year on page up/+ ctrl
case 34: $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
- +$.datepicker._get( inst, "stepBigMonths" ) :
- +$.datepicker._get( inst, "stepMonths" ) ), "M" );
- break; // next month/year on page down/+ ctrl
+ +$.datepicker._get( inst, "stepBigMonths" ) :
+ +$.datepicker._get( inst, "stepMonths" ) ), "M" );
+ break; // next month/year on page down/+ ctrl
case 35: if ( event.ctrlKey || event.metaKey ) {
- $.datepicker._clearDate( event.target );
- }
- handled = event.ctrlKey || event.metaKey;
- break; // clear on ctrl or command +end
+ $.datepicker._clearDate( event.target );
+ }
+ handled = event.ctrlKey || event.metaKey;
+ break; // clear on ctrl or command +end
case 36: if ( event.ctrlKey || event.metaKey ) {
- $.datepicker._gotoToday( event.target );
- }
- handled = event.ctrlKey || event.metaKey;
- break; // current on ctrl or command +home
+ $.datepicker._gotoToday( event.target );
+ }
+ handled = event.ctrlKey || event.metaKey;
+ break; // current on ctrl or command +home
case 37: if ( event.ctrlKey || event.metaKey ) {
- $.datepicker._adjustDate( event.target, ( isRTL ? +1 : -1 ), "D" );
- }
- handled = event.ctrlKey || event.metaKey;
+ $.datepicker._adjustDate( event.target, ( isRTL ? +1 : -1 ), "D" );
+ }
+ handled = event.ctrlKey || event.metaKey;
- // -1 day on ctrl or command +left
- if ( event.originalEvent.altKey ) {
- $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
- -$.datepicker._get( inst, "stepBigMonths" ) :
- -$.datepicker._get( inst, "stepMonths" ) ), "M" );
- }
+ // -1 day on ctrl or command +left
+ if ( event.originalEvent.altKey ) {
+ $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
+ -$.datepicker._get( inst, "stepBigMonths" ) :
+ -$.datepicker._get( inst, "stepMonths" ) ), "M" );
+ }
- // next month/year on alt +left on Mac
- break;
+ // next month/year on alt +left on Mac
+ break;
case 38: if ( event.ctrlKey || event.metaKey ) {
- $.datepicker._adjustDate( event.target, -7, "D" );
- }
- handled = event.ctrlKey || event.metaKey;
- break; // -1 week on ctrl or command +up
+ $.datepicker._adjustDate( event.target, -7, "D" );
+ }
+ handled = event.ctrlKey || event.metaKey;
+ break; // -1 week on ctrl or command +up
case 39: if ( event.ctrlKey || event.metaKey ) {
- $.datepicker._adjustDate( event.target, ( isRTL ? -1 : +1 ), "D" );
- }
- handled = event.ctrlKey || event.metaKey;
+ $.datepicker._adjustDate( event.target, ( isRTL ? -1 : +1 ), "D" );
+ }
+ handled = event.ctrlKey || event.metaKey;
- // +1 day on ctrl or command +right
- if ( event.originalEvent.altKey ) {
- $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
- +$.datepicker._get( inst, "stepBigMonths" ) :
- +$.datepicker._get( inst, "stepMonths" ) ), "M" );
- }
+ // +1 day on ctrl or command +right
+ if ( event.originalEvent.altKey ) {
+ $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
+ +$.datepicker._get( inst, "stepBigMonths" ) :
+ +$.datepicker._get( inst, "stepMonths" ) ), "M" );
+ }
- // next month/year on alt +right
- break;
+ // next month/year on alt +right
+ break;
case 40: if ( event.ctrlKey || event.metaKey ) {
- $.datepicker._adjustDate( event.target, +7, "D" );
- }
- handled = event.ctrlKey || event.metaKey;
- break; // +1 week on ctrl or command +down
+ $.datepicker._adjustDate( event.target, +7, "D" );
+ }
+ handled = event.ctrlKey || event.metaKey;
+ break; // +1 week on ctrl or command +down
default: handled = false;
}
} else if ( event.keyCode === 36 && event.ctrlKey ) { // display the date picker on ctrl+home
@@ -837,7 +837,7 @@ $.extend( Datepicker.prototype, {
// and adjust position before showing
offset = $.datepicker._checkOffset( inst, offset, isFixed );
inst.dpDiv.css( { position: ( $.datepicker._inDialog && $.blockUI ?
- "static" : ( isFixed ? "fixed" : "absolute" ) ), display: "none",
+ "static" : ( isFixed ? "fixed" : "absolute" ) ), display: "none",
left: offset.left + "px", top: offset.top + "px" } );
if ( !inst.inline ) {
@@ -883,9 +883,9 @@ $.extend( Datepicker.prototype, {
inst.dpDiv.addClass( "ui-datepicker-multi-" + cols ).css( "width", ( width * cols ) + "em" );
}
inst.dpDiv[ ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ? "add" : "remove" ) +
- "Class" ]( "ui-datepicker-multi" );
+ "Class" ]( "ui-datepicker-multi" );
inst.dpDiv[ ( this._get( inst, "isRTL" ) ? "add" : "remove" ) +
- "Class" ]( "ui-datepicker-rtl" );
+ "Class" ]( "ui-datepicker-rtl" );
if ( inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
inst.input.trigger( "focus" );
@@ -1020,7 +1020,7 @@ $.extend( Datepicker.prototype, {
!$target.closest( "." + $.datepicker._triggerClass ).length &&
$.datepicker._datepickerShowing && !( $.datepicker._inDialog && $.blockUI ) ) ) ||
( $target.hasClass( $.datepicker.markerClassName ) && $.datepicker._curInst !== inst ) ) {
- $.datepicker._hideDatepicker();
+ $.datepicker._hideDatepicker();
}
},
@@ -1062,8 +1062,8 @@ $.extend( Datepicker.prototype, {
inst = this._getInst( target[ 0 ] );
inst[ "selected" + ( period === "M" ? "Month" : "Year" ) ] =
- inst[ "draw" + ( period === "M" ? "Month" : "Year" ) ] =
- parseInt( select.options[ select.selectedIndex ].value, 10 );
+ inst[ "draw" + ( period === "M" ? "Month" : "Year" ) ] =
+ parseInt( select.options[ select.selectedIndex ].value, 10 );
this._notifyChange( inst );
this._adjustDate( target );
@@ -1214,7 +1214,7 @@ $.extend( Datepicker.prototype, {
getNumber = function( match ) {
var isDoubled = lookAhead( match ),
size = ( match === "@" ? 14 : ( match === "!" ? 20 :
- ( match === "y" && isDoubled ? 4 : ( match === "o" ? 3 : 2 ) ) ) ),
+ ( match === "y" && isDoubled ? 4 : ( match === "o" ? 3 : 2 ) ) ) ),
minSize = ( match === "y" ? size : 1 ),
digits = new RegExp( "^\\d{" + minSize + "," + size + "}" ),
num = value.substring( iValue ).match( digits );
@@ -1577,7 +1577,7 @@ $.extend( Datepicker.prototype, {
}
var date = ( offset.toLowerCase().match( /^c/ ) ?
- $.datepicker._getDate( inst ) : null ) || new Date(),
+ $.datepicker._getDate( inst ) : null ) || new Date(),
year = date.getFullYear(),
month = date.getMonth(),
day = date.getDate(),
@@ -1654,8 +1654,8 @@ $.extend( Datepicker.prototype, {
_getDate: function( inst ) {
var startDate = ( !inst.currentYear || ( inst.input && inst.input.val() === "" ) ? null :
this._daylightSavingAdjust( new Date(
- inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
- return startDate;
+ inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
+ return startDate;
},
/* Attach the onxxx handlers. These are declared statically so
@@ -1882,7 +1882,7 @@ $.extend( Datepicker.prototype, {
( /all|left/.test( cornerClass ) && row === 0 ? ( isRTL ? next : prev ) : "" ) +
( /all|right/.test( cornerClass ) && row === 0 ? ( isRTL ? prev : next ) : "" ) +
this._generateMonthYearHeader( inst, drawMonth, drawYear, minDate, maxDate,
- row > 0 || col > 0, monthNames, monthNamesShort ) + // draw month headers
+ row > 0 || col > 0, monthNames, monthNamesShort ) + // draw month headers
"
" +
"";
thead = ( showWeek ? "" + this._get( inst, "weekHeader" ) + " " : "" );
@@ -1917,22 +1917,22 @@ $.extend( Datepicker.prototype, {
( ( printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent ) || // user pressed key
( defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime() ) ?
- // or defaultDate is current printedDate and defaultDate is selectedDate
- " " + this._dayOverClass : "" ) + // highlight selected day
+ // or defaultDate is current printedDate and defaultDate is selectedDate
+ " " + this._dayOverClass : "" ) + // highlight selected day
( unselectable ? " " + this._unselectableClass + " ui-state-disabled" : "" ) + // highlight unselectable days
( otherMonth && !showOtherMonths ? "" : " " + daySettings[ 1 ] + // highlight custom dates
- ( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day
- ( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different)
+ ( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day
+ ( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different)
( ( !otherMonth || showOtherMonths ) && daySettings[ 2 ] ? " title='" + daySettings[ 2 ].replace( /'/g, "'" ) + "'" : "" ) + // cell title
( unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'" ) + ">" + // actions
( otherMonth && !showOtherMonths ? " " : // display for other months
- ( unselectable ? "" + printDate.getDate() + " " : "" + printDate.getDate() + " " ) ) + ""; // display selectable date
+ ( unselectable ? "" + printDate.getDate() + " " : "" + printDate.getDate() + " " ) ) + ""; // display selectable date
printDate.setDate( printDate.getDate() + 1 );
printDate = this._daylightSavingAdjust( printDate );
}
@@ -1944,7 +1944,7 @@ $.extend( Datepicker.prototype, {
drawYear++;
}
calender += "
" + ( isMultiMonth ? " " +
- ( ( 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 4d6483746daed..7687bc0f03e8d 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 63875f0c5942c..91327578ad687 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 05db6c8d09671..17aca5e721ce5 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 b74dea4bdfcea..7d9da99807d74 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 b8ee5042f2303..682ca2cd37d18 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 b54415605bf33..2c32aec629bbe 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 4e7dd86561019..0acd95d4b22e0 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 ec4529284c5a6..598a40a6d7cf7 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 b0de90b500ca7..4622b7d221b55 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 26c382b6d80ba..b28d2fa1ee341 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 36f0e9a721b94..4143c9bb7ff7e 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 7a7f0e96dc08d..85bd1218c5c34 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 ad1495d550af7..69469dc168f07 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 f7a5a84155783..2ac88b04db82a 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 ab942c0d0713b..84f4734e7e8ee 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 7e2c8874ba8f0..97c6bf910ee3d 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 d19b80e75b5b4..51fda6b37488c 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 9c0540259aae6..8d2e173c4bcc9 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 e8c7ca0089bf5..2e39261a854ca 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 ];
-
- 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
- };
+ 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
+ };
}
$.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 1e43abd09fbb1..18e71c9bd9589 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;
-
- // Support number pad values
- character = event.keyCode >= 96 && event.keyCode <= 105 ?
- ( event.keyCode - 96 ).toString() : String.fromCharCode( event.keyCode );
-
- clearTimeout( this.filterTimer );
-
- 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;
+ 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 );
+
+ clearTimeout( this.filterTimer );
+
+ if ( character === prev ) {
+ skip = true;
+ } else {
+ character = prev + character;
+ }
- // 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 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() {
+ 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 c3a6a6edf1a69..8ad7d9aaef5f8 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 e1c78112da74e..e2c4677cebf01 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 5fc38f53b3db8..e6cec7522f13c 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" ];
-
- $.each( css, function( i, prop ) {
- var sum = ( start[ prop ] || 0 ) + ( delta[ prop ] || 0 );
- if ( sum && sum >= 0 ) {
- style[ prop ] = sum || null;
- }
- } );
-
- el.css( style );
+ $( 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 );
+ } );
},
stop: function() {
diff --git a/src/js/_enqueues/vendor/jquery/ui/selectable.js b/src/js/_enqueues/vendor/jquery/ui/selectable.js
index ae95624da49ff..5aef397b6c98b 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 2db744de1bded..0e9fcf955a60a 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: "",
options: {
appendTo: null,
@@ -227,7 +227,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
this.menuInstance.refresh();
this.menuItems = this.menu.find( "li" )
.not( ".ui-selectmenu-optgroup" )
- .find( ".ui-menu-item-wrapper" );
+ .find( ".ui-menu-item-wrapper" );
this._rendered = true;
@@ -403,7 +403,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
selection.removeAllRanges();
selection.addRange( this.range );
- // Support: IE8
+ // Support: IE8
} else {
this.range.select();
}
@@ -439,7 +439,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
this.range = selection.getRangeAt( 0 );
}
- // Support: IE8
+ // Support: IE8
} else {
this.range = document.selection.createRange();
}
@@ -453,54 +453,54 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
keydown: function( event ) {
var preventDefault = true;
switch ( event.keyCode ) {
- case $.ui.keyCode.TAB:
- case $.ui.keyCode.ESCAPE:
- this.close( event );
- preventDefault = false;
- break;
- case $.ui.keyCode.ENTER:
- if ( this.isOpen ) {
- this._selectFocusedItem( event );
- }
- break;
- case $.ui.keyCode.UP:
- if ( event.altKey ) {
- this._toggle( event );
- } else {
+ case $.ui.keyCode.TAB:
+ case $.ui.keyCode.ESCAPE:
+ this.close( event );
+ preventDefault = false;
+ break;
+ case $.ui.keyCode.ENTER:
+ if ( this.isOpen ) {
+ this._selectFocusedItem( event );
+ }
+ break;
+ case $.ui.keyCode.UP:
+ if ( event.altKey ) {
+ this._toggle( event );
+ } else {
+ this._move( "prev", event );
+ }
+ break;
+ case $.ui.keyCode.DOWN:
+ if ( event.altKey ) {
+ this._toggle( event );
+ } else {
+ this._move( "next", event );
+ }
+ break;
+ case $.ui.keyCode.SPACE:
+ if ( this.isOpen ) {
+ this._selectFocusedItem( event );
+ } else {
+ this._toggle( event );
+ }
+ break;
+ case $.ui.keyCode.LEFT:
this._move( "prev", event );
- }
- break;
- case $.ui.keyCode.DOWN:
- if ( event.altKey ) {
- this._toggle( event );
- } else {
+ break;
+ case $.ui.keyCode.RIGHT:
this._move( "next", event );
- }
- break;
- case $.ui.keyCode.SPACE:
- if ( this.isOpen ) {
- this._selectFocusedItem( event );
- } else {
- this._toggle( event );
- }
- break;
- case $.ui.keyCode.LEFT:
- this._move( "prev", event );
- break;
- case $.ui.keyCode.RIGHT:
- this._move( "next", event );
- break;
- case $.ui.keyCode.HOME:
- case $.ui.keyCode.PAGE_UP:
- this._move( "first", event );
- break;
- case $.ui.keyCode.END:
- case $.ui.keyCode.PAGE_DOWN:
- this._move( "last", event );
- break;
- default:
- this.menu.trigger( event );
- preventDefault = false;
+ break;
+ case $.ui.keyCode.HOME:
+ case $.ui.keyCode.PAGE_UP:
+ this._move( "first", event );
+ break;
+ case $.ui.keyCode.END:
+ case $.ui.keyCode.PAGE_DOWN:
+ this._move( "last", event );
+ break;
+ default:
+ this.menu.trigger( event );
+ preventDefault = false;
}
if ( preventDefault ) {
diff --git a/src/js/_enqueues/vendor/jquery/ui/slider.js b/src/js/_enqueues/vendor/jquery/ui/slider.js
index 0de5936353d8f..e50b6f8d2f76b 100644
--- a/src/js/_enqueues/vendor/jquery/ui/slider.js
+++ b/src/js/_enqueues/vendor/jquery/ui/slider.js
@@ -1,5 +1,5 @@
/*!
- * jQuery UI Slider 1.13.0
+ * jQuery UI Slider 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -36,7 +36,7 @@
"use strict";
return $.widget( "ui.slider", $.ui.mouse, {
- version: "1.13.0",
+ version: "1.13.1",
widgetEventPrefix: "slide",
options: {
@@ -642,8 +642,8 @@ return $.widget( "ui.slider", $.ui.mouse, {
valueMin = this._valueMin();
valueMax = this._valueMax();
valPercent = ( valueMax !== valueMin ) ?
- ( value - valueMin ) / ( valueMax - valueMin ) * 100 :
- 0;
+ ( value - valueMin ) / ( valueMax - valueMin ) * 100 :
+ 0;
_set[ this.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
diff --git a/src/js/_enqueues/vendor/jquery/ui/sortable.js b/src/js/_enqueues/vendor/jquery/ui/sortable.js
index fa43254907373..3627aa7727251 100644
--- a/src/js/_enqueues/vendor/jquery/ui/sortable.js
+++ b/src/js/_enqueues/vendor/jquery/ui/sortable.js
@@ -1,5 +1,5 @@
/*!
- * jQuery UI Sortable 1.13.0
+ * jQuery UI Sortable 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -34,7 +34,7 @@
"use strict";
return $.widget( "ui.sortable", $.ui.mouse, {
- version: "1.13.0",
+ version: "1.13.1",
widgetEventPrefix: "sort",
ready: false,
options: {
@@ -196,8 +196,8 @@ return $.widget( "ui.sortable", $.ui.mouse, {
//Prepare the dragged items parent
this.appendTo = $( o.appendTo !== "parent" ?
- o.appendTo :
- this.currentItem.parent() );
+ o.appendTo :
+ this.currentItem.parent() );
//Create and append the visible helper
this.helper = this._createHelper( event );
@@ -299,7 +299,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
//Prepare scrolling
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
- this.scrollParent[ 0 ].tagName !== "HTML" ) {
+ this.scrollParent[ 0 ].tagName !== "HTML" ) {
this.overflowOffset = this.scrollParent.offset();
}
@@ -356,10 +356,10 @@ return $.widget( "ui.sortable", $.ui.mouse, {
scrolled = false;
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
- this.scrollParent[ 0 ].tagName !== "HTML" ) {
+ this.scrollParent[ 0 ].tagName !== "HTML" ) {
if ( ( this.overflowOffset.top + this.scrollParent[ 0 ].offsetHeight ) -
- event.pageY < o.scrollSensitivity ) {
+ event.pageY < o.scrollSensitivity ) {
this.scrollParent[ 0 ].scrollTop =
scrolled = this.scrollParent[ 0 ].scrollTop + o.scrollSpeed;
} else if ( event.pageY - this.overflowOffset.top < o.scrollSensitivity ) {
@@ -368,7 +368,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
}
if ( ( this.overflowOffset.left + this.scrollParent[ 0 ].offsetWidth ) -
- event.pageX < o.scrollSensitivity ) {
+ event.pageX < o.scrollSensitivity ) {
this.scrollParent[ 0 ].scrollLeft = scrolled =
this.scrollParent[ 0 ].scrollLeft + o.scrollSpeed;
} else if ( event.pageX - this.overflowOffset.left < o.scrollSensitivity ) {
@@ -381,7 +381,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
if ( event.pageY - this.document.scrollTop() < o.scrollSensitivity ) {
scrolled = this.document.scrollTop( this.document.scrollTop() - o.scrollSpeed );
} else if ( this.window.height() - ( event.pageY - this.document.scrollTop() ) <
- o.scrollSensitivity ) {
+ o.scrollSensitivity ) {
scrolled = this.document.scrollTop( this.document.scrollTop() + o.scrollSpeed );
}
@@ -390,7 +390,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.document.scrollLeft() - o.scrollSpeed
);
} else if ( this.window.width() - ( event.pageX - this.document.scrollLeft() ) <
- o.scrollSensitivity ) {
+ o.scrollSensitivity ) {
scrolled = this.document.scrollLeft(
this.document.scrollLeft() + o.scrollSpeed
);
@@ -417,79 +417,76 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.helper[ 0 ].style.top = this.position.top + "px";
}
- //Post events to containers
- this._contactContainers( event );
-
- if ( this.innermostContainer !== null ) {
-
- //Do scrolling
- if ( o.scroll ) {
- if ( this._scroll( event ) !== false ) {
+ //Do scrolling
+ if ( o.scroll ) {
+ if ( this._scroll( event ) !== false ) {
- //Update item positions used in position checks
- this._refreshItemPositions( true );
+ //Update item positions used in position checks
+ this._refreshItemPositions( true );
- if ( $.ui.ddmanager && !o.dropBehaviour ) {
- $.ui.ddmanager.prepareOffsets( this, event );
- }
+ if ( $.ui.ddmanager && !o.dropBehaviour ) {
+ $.ui.ddmanager.prepareOffsets( this, event );
}
}
+ }
- this.dragDirection = {
- vertical: this._getDragVerticalDirection(),
- horizontal: this._getDragHorizontalDirection()
- };
+ this.dragDirection = {
+ vertical: this._getDragVerticalDirection(),
+ horizontal: this._getDragHorizontalDirection()
+ };
- //Rearrange
- for ( i = this.items.length - 1; i >= 0; i-- ) {
+ //Rearrange
+ for ( i = this.items.length - 1; i >= 0; i-- ) {
- //Cache variables and intersection, continue if no intersection
- item = this.items[ i ];
- itemElement = item.item[ 0 ];
- intersection = this._intersectsWithPointer( item );
- if ( !intersection ) {
- continue;
- }
+ //Cache variables and intersection, continue if no intersection
+ item = this.items[ i ];
+ itemElement = item.item[ 0 ];
+ intersection = this._intersectsWithPointer( item );
+ if ( !intersection ) {
+ continue;
+ }
- // Only put the placeholder inside the current Container, skip all
- // items from other containers. This works because when moving
- // an item from one container to another the
- // currentContainer is switched before the placeholder is moved.
- //
- // Without this, moving items in "sub-sortables" can cause
- // the placeholder to jitter between the outer and inner container.
- if ( item.instance !== this.currentContainer ) {
- continue;
- }
+ // Only put the placeholder inside the current Container, skip all
+ // items from other containers. This works because when moving
+ // an item from one container to another the
+ // currentContainer is switched before the placeholder is moved.
+ //
+ // Without this, moving items in "sub-sortables" can cause
+ // the placeholder to jitter between the outer and inner container.
+ if ( item.instance !== this.currentContainer ) {
+ continue;
+ }
- // Cannot intersect with itself
- // no useless actions that have been done before
- // no action if the item moved is the parent of the item checked
- if ( itemElement !== this.currentItem[ 0 ] &&
- this.placeholder[ intersection === 1 ?
+ // Cannot intersect with itself
+ // no useless actions that have been done before
+ // no action if the item moved is the parent of the item checked
+ if ( itemElement !== this.currentItem[ 0 ] &&
+ this.placeholder[ intersection === 1 ?
"next" : "prev" ]()[ 0 ] !== itemElement &&
- !$.contains( this.placeholder[ 0 ], itemElement ) &&
- ( this.options.type === "semi-dynamic" ?
+ !$.contains( this.placeholder[ 0 ], itemElement ) &&
+ ( this.options.type === "semi-dynamic" ?
!$.contains( this.element[ 0 ], itemElement ) :
true
- )
- ) {
-
- this.direction = intersection === 1 ? "down" : "up";
+ )
+ ) {
- if ( this.options.tolerance === "pointer" ||
- this._intersectsWithSides( item ) ) {
- this._rearrange( event, item );
- } else {
- break;
- }
+ this.direction = intersection === 1 ? "down" : "up";
- this._trigger( "change", event, this._uiHash() );
+ if ( this.options.tolerance === "pointer" ||
+ this._intersectsWithSides( item ) ) {
+ this._rearrange( event, item );
+ } else {
break;
}
+
+ this._trigger( "change", event, this._uiHash() );
+ break;
}
}
+ //Post events to containers
+ this._contactContainers( event );
+
//Interconnect with droppables
if ( $.ui.ddmanager ) {
$.ui.ddmanager.drag( this, event );
@@ -523,15 +520,15 @@ return $.widget( "ui.sortable", $.ui.mouse, {
if ( !axis || axis === "x" ) {
animation.left = cur.left - this.offset.parent.left - this.margins.left +
( this.offsetParent[ 0 ] === this.document[ 0 ].body ?
- 0 :
- this.offsetParent[ 0 ].scrollLeft
+ 0 :
+ this.offsetParent[ 0 ].scrollLeft
);
}
if ( !axis || axis === "y" ) {
animation.top = cur.top - this.offset.parent.top - this.margins.top +
( this.offsetParent[ 0 ] === this.document[ 0 ].body ?
- 0 :
- this.offsetParent[ 0 ].scrollTop
+ 0 :
+ this.offsetParent[ 0 ].scrollTop
);
}
this.reverting = true;
@@ -582,7 +579,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.placeholder[ 0 ].parentNode.removeChild( this.placeholder[ 0 ] );
}
if ( this.options.helper !== "original" && this.helper &&
- this.helper[ 0 ].parentNode ) {
+ this.helper[ 0 ].parentNode ) {
this.helper.remove();
}
@@ -858,7 +855,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
//We ignore calculating positions of all connected containers when we're not over them
if ( this.currentContainer && item.instance !== this.currentContainer &&
- item.item[ 0 ] !== this.currentItem[ 0 ] ) {
+ item.item[ 0 ] !== this.currentItem[ 0 ] ) {
continue;
}
@@ -884,10 +881,14 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
false;
- if ( this.innermostContainer !== null ) {
- this._refreshItemPositions( fast );
+ // This has to be redone because due to the item being moved out/into the offsetParent,
+ // the offsetParent's position will change
+ if ( this.offsetParent && this.helper ) {
+ this.offset.parent = this._getParentOffset();
}
+ this._refreshItemPositions( fast );
+
var i, p;
if ( this.options.custom && this.options.custom.refreshContainers ) {
@@ -921,7 +922,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
var element = $( "<" + nodeName + ">", that.document[ 0 ] );
that._addClass( element, "ui-sortable-placeholder",
- className || that.currentItem[ 0 ].className )
+ className || that.currentItem[ 0 ].className )
._removeClass( element, "ui-sortable-helper" );
if ( nodeName === "tbody" ) {
@@ -959,7 +960,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
// always assign the height of the dragged item given forcePlaceholderSize
// is true.
if ( !p.height() || ( o.forcePlaceholderSize &&
- ( nodeName === "tbody" || nodeName === "tr" ) ) ) {
+ ( nodeName === "tbody" || nodeName === "tr" ) ) ) {
p.height(
that.currentItem.innerHeight() -
parseInt( that.currentItem.css( "paddingTop" ) || 0, 10 ) -
@@ -1014,9 +1015,9 @@ return $.widget( "ui.sortable", $.ui.mouse, {
// If we've already found a container and it's more "inner" than this, then continue
if ( innermostContainer &&
- $.contains(
- this.containers[ i ].element[ 0 ],
- innermostContainer.element[ 0 ] ) ) {
+ $.contains(
+ this.containers[ i ].element[ 0 ],
+ innermostContainer.element[ 0 ] ) ) {
continue;
}
@@ -1034,8 +1035,6 @@ return $.widget( "ui.sortable", $.ui.mouse, {
}
- this.innermostContainer = innermostContainer;
-
// If no intersecting containers found, return
if ( !innermostContainer ) {
return;
@@ -1060,7 +1059,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
for ( j = this.items.length - 1; j >= 0; j-- ) {
if ( !$.contains(
- this.containers[ innermostIndex ].element[ 0 ], this.items[ j ].item[ 0 ] )
+ this.containers[ innermostIndex ].element[ 0 ], this.items[ j ].item[ 0 ] )
) {
continue;
}
@@ -1111,7 +1110,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
//Update overflowOffset
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
- this.scrollParent[ 0 ].tagName !== "HTML" ) {
+ this.scrollParent[ 0 ].tagName !== "HTML" ) {
this.overflowOffset = this.scrollParent.offset();
}
@@ -1189,7 +1188,7 @@ return $.widget( "ui.sortable", $.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 ] !== this.document[ 0 ] &&
- $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) {
+ $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) {
po.left += this.scrollParent.scrollLeft();
po.top += this.scrollParent.scrollTop();
}
@@ -1197,7 +1196,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
// This needs to be actually done for all browsers, since pageX/pageY includes this
// information with an ugly IE fix
if ( this.offsetParent[ 0 ] === this.document[ 0 ].body ||
- ( this.offsetParent[ 0 ].tagName &&
+ ( this.offsetParent[ 0 ].tagName &&
this.offsetParent[ 0 ].tagName.toLowerCase() === "html" && $.ui.ie ) ) {
po = { top: 0, left: 0 };
}
@@ -1254,8 +1253,8 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.document.width() :
this.window.width() - this.helperProportions.width - this.margins.left,
( o.containment === "document" ?
- ( this.document.height() || document.body.parentNode.scrollHeight ) :
- this.window.height() || this.document[ 0 ].body.parentNode.scrollHeight
+ ( this.document.height() || document.body.parentNode.scrollHeight ) :
+ this.window.height() || this.document[ 0 ].body.parentNode.scrollHeight
) - this.helperProportions.height - this.margins.top
];
}
@@ -1267,17 +1266,17 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.containment = [
co.left + ( parseInt( $( ce ).css( "borderLeftWidth" ), 10 ) || 0 ) +
- ( parseInt( $( ce ).css( "paddingLeft" ), 10 ) || 0 ) - this.margins.left,
+ ( parseInt( $( ce ).css( "paddingLeft" ), 10 ) || 0 ) - this.margins.left,
co.top + ( parseInt( $( ce ).css( "borderTopWidth" ), 10 ) || 0 ) +
- ( parseInt( $( ce ).css( "paddingTop" ), 10 ) || 0 ) - this.margins.top,
+ ( parseInt( $( ce ).css( "paddingTop" ), 10 ) || 0 ) - this.margins.top,
co.left + ( over ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) -
- ( parseInt( $( ce ).css( "borderLeftWidth" ), 10 ) || 0 ) -
- ( parseInt( $( ce ).css( "paddingRight" ), 10 ) || 0 ) -
- this.helperProportions.width - this.margins.left,
+ ( parseInt( $( ce ).css( "borderLeftWidth" ), 10 ) || 0 ) -
+ ( parseInt( $( ce ).css( "paddingRight" ), 10 ) || 0 ) -
+ this.helperProportions.width - this.margins.left,
co.top + ( over ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) -
- ( parseInt( $( ce ).css( "borderTopWidth" ), 10 ) || 0 ) -
- ( parseInt( $( ce ).css( "paddingBottom" ), 10 ) || 0 ) -
- this.helperProportions.height - this.margins.top
+ ( parseInt( $( ce ).css( "borderTopWidth" ), 10 ) || 0 ) -
+ ( parseInt( $( ce ).css( "paddingBottom" ), 10 ) || 0 ) -
+ this.helperProportions.height - this.margins.top
];
}
@@ -1290,10 +1289,10 @@ return $.widget( "ui.sortable", $.ui.mouse, {
}
var mod = d === "absolute" ? 1 : -1,
scroll = this.cssPosition === "absolute" &&
- !( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
+ !( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
$.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ?
- this.offsetParent :
- this.scrollParent,
+ this.offsetParent :
+ this.scrollParent,
scrollIsRootNode = ( /(html|body)/i ).test( scroll[ 0 ].tagName );
return {
@@ -1323,7 +1322,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.offset.parent.left * mod -
( ( this.cssPosition === "fixed" ?
-this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 :
- scroll.scrollLeft() ) * mod )
+ scroll.scrollLeft() ) * mod )
)
};
@@ -1336,18 +1335,18 @@ return $.widget( "ui.sortable", $.ui.mouse, {
pageX = event.pageX,
pageY = event.pageY,
scroll = this.cssPosition === "absolute" &&
- !( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
+ !( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
$.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ?
- this.offsetParent :
- this.scrollParent,
- scrollIsRootNode = ( /(html|body)/i ).test( scroll[ 0 ].tagName );
+ this.offsetParent :
+ this.scrollParent,
+ scrollIsRootNode = ( /(html|body)/i ).test( scroll[ 0 ].tagName );
// This is another very weird special case that only happens for relative elements:
// 1. If the css position is relative
// 2. and the scroll parent is the document or similar to the offset parent
// we have to refresh the relative offset during the scroll so there are no jumps
if ( this.cssPosition === "relative" && !( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
- this.scrollParent[ 0 ] !== this.offsetParent[ 0 ] ) ) {
+ this.scrollParent[ 0 ] !== this.offsetParent[ 0 ] ) ) {
this.offset.relative = this._getRelativeOffset();
}
@@ -1379,20 +1378,20 @@ return $.widget( "ui.sortable", $.ui.mouse, {
pageY = this.containment ?
( ( top - this.offset.click.top >= this.containment[ 1 ] &&
top - this.offset.click.top <= this.containment[ 3 ] ) ?
- top :
- ( ( top - this.offset.click.top >= this.containment[ 1 ] ) ?
- top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) :
- top;
+ top :
+ ( ( top - this.offset.click.top >= this.containment[ 1 ] ) ?
+ top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) :
+ top;
left = this.originalPageX + Math.round( ( pageX - this.originalPageX ) /
o.grid[ 0 ] ) * o.grid[ 0 ];
pageX = this.containment ?
( ( left - this.offset.click.left >= this.containment[ 0 ] &&
left - this.offset.click.left <= this.containment[ 2 ] ) ?
- left :
- ( ( left - this.offset.click.left >= this.containment[ 0 ] ) ?
- left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) :
- left;
+ left :
+ ( ( left - this.offset.click.left >= this.containment[ 0 ] ) ?
+ left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) :
+ left;
}
}
@@ -1499,9 +1498,9 @@ return $.widget( "ui.sortable", $.ui.mouse, {
} );
}
if ( ( this.fromOutside ||
- this.domPosition.prev !==
- this.currentItem.prev().not( ".ui-sortable-helper" )[ 0 ] ||
- this.domPosition.parent !== this.currentItem.parent()[ 0 ] ) && !noPropagation ) {
+ this.domPosition.prev !==
+ this.currentItem.prev().not( ".ui-sortable-helper" )[ 0 ] ||
+ this.domPosition.parent !== this.currentItem.parent()[ 0 ] ) && !noPropagation ) {
// Trigger update callback if the DOM position has changed
delayedTriggers.push( function( event ) {
diff --git a/src/js/_enqueues/vendor/jquery/ui/spinner.js b/src/js/_enqueues/vendor/jquery/ui/spinner.js
index eca42bf40b67f..54b267943033b 100644
--- a/src/js/_enqueues/vendor/jquery/ui/spinner.js
+++ b/src/js/_enqueues/vendor/jquery/ui/spinner.js
@@ -1,5 +1,5 @@
/*!
- * jQuery UI Spinner 1.13.0
+ * jQuery UI Spinner 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -47,7 +47,7 @@ function spinnerModifier( fn ) {
}
$.widget( "ui.spinner", {
- 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 8cddc5d0e53ef..5d44bdd5f653a 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:
-
- // Activate only, no collapsing
- event.preventDefault();
- clearTimeout( this.activating );
- this._activate( selectedIndex );
- return;
- case $.ui.keyCode.ENTER:
+ 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:
- // 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 9665f0763dd7e..d4c8d741721aa 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 5964c92074417..3c462d45c4c0f 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-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-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.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(
From 6ecf6ee9c9cd87bbf96037a4b7eea3fe2c41316f Mon Sep 17 00:00:00 2001
From: Peter Wilson
Date: Thu, 3 Feb 2022 00:13:55 +0000
Subject: [PATCH 045/161] Twenty Twenty-Two: Make 404 pattern search label and
button translatable.
This changes makes the Twenty Twenty-Two "hidden-404" pattern fully prepared for translation.
Props kjellr, walbo, audrasjb.
Merges [52664] to the 5.9 branch.
Fixes #54928.
git-svn-id: https://develop.svn.wordpress.org/branches/5.9@52666 602fd350-edb4-49c9-b593-d223f7449a82
---
.../themes/twentytwentytwo/inc/patterns/hidden-404.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php b/src/wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php
index e0e8edf3a74cc..9cfd50d56e0c1 100644
--- a/src/wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php
+++ b/src/wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php
@@ -11,5 +11,5 @@
' . esc_html__( 'This page could not be found. Maybe try a search?', 'twentytwentytwo' ) . '
- ',
+ ',
);
From 871afd0205214a745d85d20349a1f2bc0fe11895 Mon Sep 17 00:00:00 2001
From: Peter Wilson
Date: Thu, 3 Feb 2022 00:18:18 +0000
Subject: [PATCH 046/161] Twenty Twenty-Two: Replace GitHub with .org link in
Theme URI.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Theme URI is the URL of a public web page where users can find more information about the theme. For bundled themes, it should be a link to the theme’s page on the Theme Repository.
Props kafleg, audrasjb.
Merges [52658] to the 5.9 branch.
Fixes #55018.
git-svn-id: https://develop.svn.wordpress.org/branches/5.9@52667 602fd350-edb4-49c9-b593-d223f7449a82
---
src/wp-content/themes/twentytwentytwo/style.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wp-content/themes/twentytwentytwo/style.css b/src/wp-content/themes/twentytwentytwo/style.css
index c4a22c5063c85..7d5051062ce4b 100644
--- a/src/wp-content/themes/twentytwentytwo/style.css
+++ b/src/wp-content/themes/twentytwentytwo/style.css
@@ -1,6 +1,6 @@
/*
Theme Name: Twenty Twenty-Two
-Theme URI: https://github.com/wordpress/twentytwentytwo/
+Theme URI: https://wordpress.org/themes/twentytwentytwo/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Built on a solidly designed foundation, Twenty Twenty-Two embraces the idea that everyone deserves a truly unique website. The theme’s subtle styles are inspired by the diversity and versatility of birds: its typography is lightweight yet strong, its color palette is drawn from nature, and its layout elements sit gently on the page. The true richness of Twenty Twenty-Two lies in its opportunity for customization. The theme is built to take advantage of the Full Site Editing features introduced in WordPress 5.9, which means that colors, typography, and the layout of every single page on your site can be customized to suit your vision. It also includes dozens of block patterns, opening the door to a wide range of professionally designed layouts in just a few clicks. Whether you’re building a single-page website, a blog, a business website, or a portfolio, Twenty Twenty-Two will help you create a site that is uniquely yours.
From a5c59978a2cd459604710a86d5106cb540fea434 Mon Sep 17 00:00:00 2001
From: Sergey Biryukov
Date: Fri, 4 Feb 2022 14:46:27 +0000
Subject: [PATCH 047/161] Themes: Fix for Classic themes using default presets.
This commit makes the presets provided by the theme via `add_theme_support()` always create CSS Custom Properties, whether or not the theme has a `theme.json` file. This way, if the theme overwrites a core preset, the core CSS variables are also overwritten and use the theme value.
Props oandregal, hellofromTonya, desrosj, costdev, pbearne, johnstonphilip, webmandesign, jorgefilipecosta, SergeyBiryukov.
Merges [52675-52677] to the 5.9 branch.
Fixes #54782.
git-svn-id: https://develop.svn.wordpress.org/branches/5.9@52678 602fd350-edb4-49c9-b593-d223f7449a82
---
.../global-styles-and-settings.php | 40 ++--
.../phpunit/tests/theme/globalStylesheet.php | 186 ++++++++++++++++++
2 files changed, 215 insertions(+), 11 deletions(-)
create mode 100644 tests/phpunit/tests/theme/globalStylesheet.php
diff --git a/src/wp-includes/global-styles-and-settings.php b/src/wp-includes/global-styles-and-settings.php
index 9db95a3e95129..0e382fe483f39 100644
--- a/src/wp-includes/global-styles-and-settings.php
+++ b/src/wp-includes/global-styles-and-settings.php
@@ -103,26 +103,44 @@ function wp_get_global_stylesheet( $types = array() ) {
}
}
+ $tree = WP_Theme_JSON_Resolver::get_merged_data();
+
$supports_theme_json = WP_Theme_JSON_Resolver::theme_has_support();
- $supports_link_color = get_theme_support( 'experimental-link-color' );
if ( empty( $types ) && ! $supports_theme_json ) {
$types = array( 'variables', 'presets' );
} elseif ( empty( $types ) ) {
$types = array( 'variables', 'styles', 'presets' );
}
- $origins = array( 'default', 'theme', 'custom' );
- if ( ! $supports_theme_json && ! $supports_link_color ) {
- // In this case we only enqueue the core presets (CSS Custom Properties + the classes).
- $origins = array( 'default' );
- } elseif ( ! $supports_theme_json && $supports_link_color ) {
- // For the legacy link color feature to work, the CSS Custom Properties
- // should be in scope (either the core or the theme ones).
- $origins = array( 'default', 'theme' );
+ /*
+ * If variables are part of the stylesheet,
+ * we add them for all origins (default, theme, user).
+ * This is so themes without a theme.json still work as before 5.9:
+ * they can override the default presets.
+ * See https://core.trac.wordpress.org/ticket/54782
+ */
+ $styles_variables = '';
+ if ( in_array( 'variables', $types, true ) ) {
+ $styles_variables = $tree->get_stylesheet( array( 'variables' ) );
+ $types = array_diff( $types, array( 'variables' ) );
+ }
+
+ /*
+ * For the remaining types (presets, styles), we do consider origins:
+ *
+ * - themes without theme.json: only the classes for the presets defined by core
+ * - themes with theme.json: the presets and styles classes, both from core and the theme
+ */
+ $styles_rest = '';
+ if ( ! empty( $types ) ) {
+ $origins = array( 'default', 'theme', 'custom' );
+ if ( ! $supports_theme_json ) {
+ $origins = array( 'default' );
+ }
+ $styles_rest = $tree->get_stylesheet( $types, $origins );
}
- $tree = WP_Theme_JSON_Resolver::get_merged_data();
- $stylesheet = $tree->get_stylesheet( $types, $origins );
+ $stylesheet = $styles_variables . $styles_rest;
if ( $can_use_cached ) {
// Cache for a minute.
diff --git a/tests/phpunit/tests/theme/globalStylesheet.php b/tests/phpunit/tests/theme/globalStylesheet.php
new file mode 100644
index 0000000000000..ce8beeb0011a1
--- /dev/null
+++ b/tests/phpunit/tests/theme/globalStylesheet.php
@@ -0,0 +1,186 @@
+orig_theme_dir = $GLOBALS['wp_theme_directories'];
+ $this->theme_root = realpath( DIR_TESTDATA . '/themedir1' );
+
+ // /themes is necessary as theme.php functions assume /themes is the root if there is only one root.
+ $GLOBALS['wp_theme_directories'] = array( WP_CONTENT_DIR . '/themes', $this->theme_root );
+
+ // Set up the new root.
+ add_filter( 'theme_root', array( $this, 'filter_set_theme_root' ) );
+ add_filter( 'stylesheet_root', array( $this, 'filter_set_theme_root' ) );
+ add_filter( 'template_root', array( $this, 'filter_set_theme_root' ) );
+
+ // Clear caches.
+ wp_clean_themes_cache();
+ unset( $GLOBALS['wp_themes'] );
+ }
+
+ public function tear_down() {
+ $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir;
+
+ // Clear up the filters to modify the theme root.
+ remove_filter( 'theme_root', array( $this, 'filter_set_theme_root' ) );
+ remove_filter( 'stylesheet_root', array( $this, 'filter_set_theme_root' ) );
+ remove_filter( 'template_root', array( $this, 'filter_set_theme_root' ) );
+
+ wp_clean_themes_cache();
+ unset( $GLOBALS['wp_themes'] );
+
+ parent::tear_down();
+ }
+
+ public function filter_set_theme_root() {
+ return $this->theme_root;
+ }
+
+ public function test_block_theme_using_variables() {
+ switch_theme( 'block-theme' );
+
+ $styles = wp_get_global_stylesheet( array( 'variables' ) );
+ $this->assertStringContainsString( '--wp--preset--font-size--small: 13px', $styles, 'small font size is 13px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--medium: 20px', $styles, 'medium font size is 20px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--large: 36px', $styles, 'large font size is 36px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--x-large: 42px', $styles, 'x-large font size is 42px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--custom: 100px;', $styles, 'custom font size is 100px' );
+
+ switch_theme( WP_DEFAULT_THEME );
+ }
+
+ public function test_block_theme_using_presets() {
+ switch_theme( 'block-theme' );
+
+ $styles = wp_get_global_stylesheet( array( 'presets' ) );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--small: 13px', $styles, 'small font size is not present' );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--medium: 20px', $styles, 'medium font size is not present' );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--large: 36px', $styles, 'large font size is not present' );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--x-large: 42px', $styles, 'x-large font size is not present' );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--custom: 100px;', $styles, 'custom font size is not present' );
+
+ switch_theme( WP_DEFAULT_THEME );
+ }
+
+ public function test_block_theme_using_defaults() {
+ switch_theme( 'block-theme' );
+
+ $styles = wp_get_global_stylesheet();
+ $this->assertStringContainsString( '--wp--preset--font-size--small: 13px', $styles, 'small font size is 13px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--medium: 20px', $styles, 'medium font size is 20px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--large: 36px', $styles, 'large font size is 36px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--x-large: 42px', $styles, 'x-large font size is 42px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--custom: 100px;', $styles, 'custom font size is 100px' );
+
+ switch_theme( WP_DEFAULT_THEME );
+ }
+
+ public function test_variables_in_classic_theme_with_no_presets_using_variables() {
+ $styles = wp_get_global_stylesheet( array( 'variables' ) );
+ $this->assertStringContainsString( '--wp--preset--font-size--small: 13px', $styles, 'small font size is 13px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--medium: 20px', $styles, 'medium font size is 20px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--large: 36px', $styles, 'large font size is 36px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--x-large: 42px', $styles, 'x-large font size is 42px' );
+ }
+
+ public function test_variables_in_classic_theme_with_no_presets_using_presets() {
+ $styles = wp_get_global_stylesheet( array( 'presets' ) );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--small: 13px', $styles, 'small font size is not present' );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--medium: 20px', $styles, 'medium font size is not present' );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--large: 36px', $styles, 'large font size is not present' );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--x-large: 42px', $styles, 'x-large font size is not present' );
+ }
+
+ public function test_variables_in_classic_theme_with_no_presets_using_defaults() {
+ $styles = wp_get_global_stylesheet();
+ $this->assertStringContainsString( '--wp--preset--font-size--small: 13px', $styles, 'small font size is 13px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--medium: 20px', $styles, 'medium font size is 20px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--large: 36px', $styles, 'large font size is 36px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--x-large: 42px', $styles, 'x-large font size is 42px' );
+ }
+
+ public function test_variables_in_classic_theme_with_presets_using_variables() {
+ add_theme_support(
+ 'editor-font-sizes',
+ array(
+ array(
+ 'name' => 'Small',
+ 'size' => 18,
+ 'slug' => 'small',
+ ),
+ array(
+ 'name' => 'Large',
+ 'size' => 26.25,
+ 'slug' => 'large',
+ ),
+ )
+ );
+
+ $styles = wp_get_global_stylesheet( array( 'variables' ) );
+ $this->assertStringContainsString( '--wp--preset--font-size--small: 18px', $styles, 'small font size is 18px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--medium: 20px', $styles, 'medium font size is 20px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--large: 26.25px', $styles, 'large font size is 26.25px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--x-large: 42px', $styles, 'x-large font size is 42px' );
+
+ remove_theme_support( 'editor-font-sizes' );
+ }
+
+ public function test_variables_in_classic_theme_with_presets_using_presets() {
+ add_theme_support(
+ 'editor-font-sizes',
+ array(
+ array(
+ 'name' => 'Small',
+ 'size' => 18,
+ 'slug' => 'small',
+ ),
+ array(
+ 'name' => 'Large',
+ 'size' => 26.25,
+ 'slug' => 'large',
+ ),
+ )
+ );
+
+ $styles = wp_get_global_stylesheet( array( 'presets' ) );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--small: 18px', $styles, 'small font size is not present' );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--medium: 20px', $styles, 'medium font size is not present' );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--large: 26.25px', $styles, 'large font size is not present' );
+ $this->assertStringNotContainsString( '--wp--preset--font-size--x-large: 42px', $styles, 'x-large font size is not present' );
+
+ remove_theme_support( 'editor-font-sizes' );
+ }
+
+ public function test_variables_in_classic_theme_with_presets_using_defaults() {
+ add_theme_support(
+ 'editor-font-sizes',
+ array(
+ array(
+ 'name' => 'Small',
+ 'size' => 18,
+ 'slug' => 'small',
+ ),
+ array(
+ 'name' => 'Large',
+ 'size' => 26.25,
+ 'slug' => 'large',
+ ),
+ )
+ );
+
+ $styles = wp_get_global_stylesheet();
+ $this->assertStringContainsString( '--wp--preset--font-size--small: 18px', $styles, 'small font size is 18px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--medium: 20px', $styles, 'medium font size is 20px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--large: 26.25px', $styles, 'large font size is 26.25px' );
+ $this->assertStringContainsString( '--wp--preset--font-size--x-large: 42px', $styles, 'small font size is 42px' );
+
+ remove_theme_support( 'editor-font-sizes' );
+ }
+
+}
From f0180f59ea00683647c602941c1f2b422192df46 Mon Sep 17 00:00:00 2001
From: Sergey Biryukov
Date: Sat, 5 Feb 2022 13:23:53 +0000
Subject: [PATCH 048/161] Tests: Rename the test file and class for
`wp_get_global_stylesheet()` tests.
This matches the name of the function being tested.
Follow-up to [52675-52677].
Merges [52682] to the 5.9 branch.
See #54782.
git-svn-id: https://develop.svn.wordpress.org/branches/5.9@52683 602fd350-edb4-49c9-b593-d223f7449a82
---
.../theme/{globalStylesheet.php => wpGetGlobalStylesheet.php} | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
rename tests/phpunit/tests/theme/{globalStylesheet.php => wpGetGlobalStylesheet.php} (98%)
diff --git a/tests/phpunit/tests/theme/globalStylesheet.php b/tests/phpunit/tests/theme/wpGetGlobalStylesheet.php
similarity index 98%
rename from tests/phpunit/tests/theme/globalStylesheet.php
rename to tests/phpunit/tests/theme/wpGetGlobalStylesheet.php
index ce8beeb0011a1..b3bd7754bdf4b 100644
--- a/tests/phpunit/tests/theme/globalStylesheet.php
+++ b/tests/phpunit/tests/theme/wpGetGlobalStylesheet.php
@@ -1,9 +1,11 @@
Date: Mon, 7 Feb 2022 14:56:13 +0000
Subject: [PATCH 049/161] Twenty Twenty-Two: Remove negative side margins on
group blocks with a background.
This change fixes an issue where applying a background color to a group block aligned it to the left in the editor.
Props eddystile, audrasjb, webmandesign, sabernhardt, petaryoast, kjellr.
Merges [52679] and [52686] to the 5.9 branch.
Fixes #54944, #55103.
git-svn-id: https://develop.svn.wordpress.org/branches/5.9@52688 602fd350-edb4-49c9-b593-d223f7449a82
---
src/wp-content/themes/twentytwentytwo/style.css | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/wp-content/themes/twentytwentytwo/style.css b/src/wp-content/themes/twentytwentytwo/style.css
index 7d5051062ce4b..b9f6a193672b8 100644
--- a/src/wp-content/themes/twentytwentytwo/style.css
+++ b/src/wp-content/themes/twentytwentytwo/style.css
@@ -112,7 +112,6 @@ body > .is-root-container,
.wp-site-blocks > .wp-block-cover,
.wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-template-part > .wp-block-cover,
-body > .is-root-container > .wp-block-group.has-background,
body > .is-root-container > .wp-block-cover,
body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
body > .is-root-container > .wp-block-template-part > .wp-block-cover,
From 513b728a6ab4bd1f6a8ad999b4ecabc7fad81a29 Mon Sep 17 00:00:00 2001
From: Sergey Biryukov
Date: Fri, 11 Feb 2022 21:08:03 +0000
Subject: [PATCH 050/161] Twenty Twenty-Two: Update mergeinfo after [52688].
See #54944, #55103.
git-svn-id: https://develop.svn.wordpress.org/branches/5.9@52709 602fd350-edb4-49c9-b593-d223f7449a82
From a091ce2d38b85185a9e3d3c65892533210f37609 Mon Sep 17 00:00:00 2001
From: Sergey Biryukov
Date: Fri, 11 Feb 2022 21:10:19 +0000
Subject: [PATCH 051/161] Twenty Twenty-Two: Optimize the
`assets/images/ducks.jpg` image.
The new file should have a much better balance of quality and file size.
Follow-up to [52081], [52107].
Props kafleg, kjellr, jffng, kapilpaul.
Merges [52651] to the 5.9 branch.
Fixes #54911.
git-svn-id: https://develop.svn.wordpress.org/branches/5.9@52710 602fd350-edb4-49c9-b593-d223f7449a82
---
.../twentytwentytwo/assets/images/ducks.jpg | Bin 786674 -> 366525 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
diff --git a/src/wp-content/themes/twentytwentytwo/assets/images/ducks.jpg b/src/wp-content/themes/twentytwentytwo/assets/images/ducks.jpg
index 6e5c7434748914be8cb63ee62f81ec26922b24b3..6c65eb4313aa3b479ad0211178d5ec254f7e555d 100644
GIT binary patch
literal 366525
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
z