1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Update node modules

This commit is contained in:
Daniel Neto 2024-09-09 23:54:57 -03:00
parent 52a013772f
commit 09d8558456
858 changed files with 5466 additions and 544833 deletions

23
node_modules/jquery-ui/ui/core.js generated vendored
View file

@ -1,23 +0,0 @@
// This file is deprecated in 1.12.0 to be removed in 1.14
( function() {
"use strict";
define( [
"jquery",
"./data",
"./disable-selection",
"./focusable",
"./form",
"./ie",
"./keycode",
"./labels",
"./jquery-patch",
"./plugin",
"./safe-active-element",
"./safe-blur",
"./scroll-parent",
"./tabbable",
"./unique-id",
"./version"
] );
} )();

18
node_modules/jquery-ui/ui/data.js generated vendored
View file

@ -1,5 +1,5 @@
/*!
* jQuery UI :data 1.13.3
* jQuery UI :data 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -28,16 +28,10 @@
"use strict";
return $.extend( $.expr.pseudos, {
data: $.expr.createPseudo ?
$.expr.createPseudo( function( dataName ) {
return function( elem ) {
return !!$.data( elem, dataName );
};
} ) :
// Support: jQuery <1.8
function( elem, i, match ) {
return !!$.data( elem, match[ 3 ] );
}
data: $.expr.createPseudo( function( dataName ) {
return function( elem ) {
return !!$.data( elem, dataName );
};
} )
} );
} );

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Disable Selection 1.13.3
* jQuery UI Disable Selection 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

41
node_modules/jquery-ui/ui/effect.js generated vendored
View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects 1.13.3
* jQuery UI Effects 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -81,26 +81,14 @@ function camelCase( string ) {
function getElementStyles( elem ) {
var key, len,
style = elem.ownerDocument.defaultView ?
elem.ownerDocument.defaultView.getComputedStyle( elem, null ) :
elem.currentStyle,
style = elem.ownerDocument.defaultView.getComputedStyle( elem ),
styles = {};
if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) {
len = style.length;
while ( len-- ) {
key = style[ len ];
if ( typeof style[ key ] === "string" ) {
styles[ camelCase( key ) ] = style[ key ];
}
}
// Support: Opera, IE <9
} else {
for ( key in style ) {
if ( typeof style[ key ] === "string" ) {
styles[ key ] = style[ key ];
}
len = style.length;
while ( len-- ) {
key = style[ len ];
if ( typeof style[ key ] === "string" ) {
styles[ camelCase( key ) ] = style[ key ];
}
}
@ -125,15 +113,6 @@ function styleDifference( oldStyle, newStyle ) {
return diff;
}
// Support: jQuery <1.8
if ( !$.fn.addBack ) {
$.fn.addBack = function( selector ) {
return this.add( selector == null ?
this.prevObject : this.prevObject.filter( selector )
);
};
}
$.effects.animateClass = function( value, duration, easing, callback ) {
var o = $.speed( duration, easing, callback );
@ -273,7 +252,7 @@ if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) {
} )( $.expr.pseudos.animated );
}
if ( $.uiBackCompat !== false ) {
if ( $.uiBackCompat === true ) {
$.extend( $.effects, {
// Saves a set of properties in a data storage
@ -402,7 +381,7 @@ if ( $.uiBackCompat !== false ) {
}
$.extend( $.effects, {
version: "1.13.3",
version: "1.14.0",
define: function( name, mode, effect ) {
if ( !effect ) {
@ -759,7 +738,7 @@ $.fn.extend( {
// as toggle can be either show or hide depending on element state
args.mode = modes.shift();
if ( $.uiBackCompat !== false && !defaultMode ) {
if ( $.uiBackCompat === true && !defaultMode ) {
if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {
// Call the core method to track "olddisplay" properly

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Blind 1.13.3
* jQuery UI Effects Blind 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Bounce 1.13.3
* jQuery UI Effects Bounce 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Clip 1.13.3
* jQuery UI Effects Clip 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Drop 1.13.3
* jQuery UI Effects Drop 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Explode 1.13.3
* jQuery UI Effects Explode 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Fade 1.13.3
* jQuery UI Effects Fade 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Fold 1.13.3
* jQuery UI Effects Fold 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Highlight 1.13.3
* jQuery UI Effects Highlight 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Puff 1.13.3
* jQuery UI Effects Puff 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Pulsate 1.13.3
* jQuery UI Effects Pulsate 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Scale 1.13.3
* jQuery UI Effects Scale 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Shake 1.13.3
* jQuery UI Effects Shake 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Size 1.13.3
* jQuery UI Effects Size 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Slide 1.13.3
* jQuery UI Effects Slide 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Effects Transfer 1.13.3
* jQuery UI Effects Transfer 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -33,7 +33,7 @@
"use strict";
var effect;
if ( $.uiBackCompat !== false ) {
if ( $.uiBackCompat === true ) {
effect = $.effects.define( "transfer", function( options, done ) {
$( this ).transfer( options, done );
} );

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Focusable 1.13.3
* jQuery UI Focusable 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -62,20 +62,10 @@ $.ui.focusable = function( element, hasTabindex ) {
focusableIfVisible = hasTabindex;
}
return focusableIfVisible && $( element ).is( ":visible" ) && visible( $( element ) );
return focusableIfVisible && $( element ).is( ":visible" ) &&
$( element ).css( "visibility" ) === "visible";
};
// Support: IE 8 only
// IE 8 doesn't resolve inherit to visible/hidden for computed values
function visible( element ) {
var visibility = element.css( "visibility" );
while ( visibility === "inherit" ) {
element = element.parent();
visibility = element.css( "visibility" );
}
return visibility === "visible";
}
$.extend( $.expr.pseudos, {
focusable: function( element ) {
return $.ui.focusable( element, $.attr( element, "tabindex" ) != null );

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Form Reset Mixin 1.13.3
* jQuery UI Form Reset Mixin 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -20,7 +20,6 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
"./form",
"./version"
], factory );
} else {
@ -45,7 +44,7 @@ return $.ui.formResetMixin = {
},
_bindFormResetHandler: function() {
this.form = this.element._form();
this.form = $( this.element.prop( "form" ) );
if ( !this.form.length ) {
return;
}

23
node_modules/jquery-ui/ui/form.js generated vendored
View file

@ -1,23 +0,0 @@
( function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [ "jquery", "./version" ], factory );
} else {
// Browser globals
factory( jQuery );
}
} )( function( $ ) {
"use strict";
// 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.
return $.fn._form = function() {
return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
};
} );

18
node_modules/jquery-ui/ui/ie.js generated vendored
View file

@ -1,18 +0,0 @@
( function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [ "jquery", "./version" ], factory );
} else {
// Browser globals
factory( jQuery );
}
} )( function( $ ) {
"use strict";
// This file is deprecated
return $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
} );

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Support for jQuery core 1.8.x and newer 1.13.3
* jQuery UI Legacy jQuery Core patches 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -8,9 +8,9 @@
*
*/
//>>label: jQuery 1.8+ Support
//>>label: Legacy jQuery Core patches
//>>group: Core
//>>description: Support version 1.8.x and newer of jQuery core
//>>description: Backport `.even()`, `.odd()` and `$.escapeSelector` to older jQuery Core versions (deprecated)
( function( factory ) {
"use strict";
@ -27,45 +27,12 @@
} )( function( $ ) {
"use strict";
// Support: jQuery 1.9.x or older
// $.expr[ ":" ] is deprecated.
if ( !$.expr.pseudos ) {
$.expr.pseudos = $.expr[ ":" ];
}
// Support: jQuery 1.11.x or older
// $.unique has been renamed to $.uniqueSort
if ( !$.uniqueSort ) {
$.uniqueSort = $.unique;
}
// Support: jQuery 2.2.x or older.
// This method has been defined in jQuery 3.0.0.
// Code from https://github.com/jquery/jquery/blob/e539bac79e666bba95bba86d690b4e609dca2286/src/selector/escapeSelector.js
if ( !$.escapeSelector ) {
// CSS string/identifier serialization
// https://drafts.csswg.org/cssom/#common-serializing-idioms
var rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;
var fcssescape = function( ch, asCodePoint ) {
if ( asCodePoint ) {
// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
if ( ch === "\0" ) {
return "\uFFFD";
}
// Control characters and (dependent upon position) numbers get escaped as code points
return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
}
// Other potentially-special ASCII characters get backslash-escaped
return "\\" + ch;
};
$.escapeSelector = function( sel ) {
return ( sel + "" ).replace( rcssescape, fcssescape );
$.escapeSelector = function( id ) {
return CSS.escape( id + "" );
};
}

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Keycode 1.13.3
* jQuery UI Keycode 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Labels 1.13.3
* jQuery UI Labels 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -39,9 +39,8 @@ return $.fn.labels = function() {
return this.pushStack( this[ 0 ].labels );
}
// Support: IE <= 11, FF <= 37, Android <= 2.3 only
// Above browsers do not support control.labels. Everything below is to support them
// as well as document fragments. control.labels does not work on document fragments
// If `control.labels` is empty - e.g. inside of document fragments - find
// the labels manually
labels = this.eq( 0 ).parents( "label" );
// Look for the label based on the id
@ -56,7 +55,7 @@ return $.fn.labels = function() {
ancestors = ancestor.add( ancestor.length ? ancestor.siblings() : this.siblings() );
// Create a selector for the label based on the id
selector = "label[for='" + $.escapeSelector( id ) + "']";
selector = "label[for='" + CSS.escape( id ) + "']";
labels = labels.add( ancestors.find( selector ).addBack( selector ) );

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Position 1.13.3
* jQuery UI Position 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,44 +0,0 @@
( function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [ "jquery", "./version" ], factory );
} else {
// Browser globals
factory( jQuery );
}
} )( function( $ ) {
"use strict";
return $.ui.safeActiveElement = function( document ) {
var activeElement;
// Support: IE 9 only
// IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe>
try {
activeElement = document.activeElement;
} catch ( error ) {
activeElement = document.body;
}
// Support: IE 9 - 11 only
// IE may return null instead of an element
// Interestingly, this only seems to occur when NOT in an iframe
if ( !activeElement ) {
activeElement = document.body;
}
// Support: IE 11 only
// IE11 returns a seemingly empty object in some cases when accessing
// document.activeElement from an <iframe>
if ( !activeElement.nodeName ) {
activeElement = document.body;
}
return activeElement;
};
} );

View file

@ -1,25 +0,0 @@
( function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [ "jquery", "./version" ], factory );
} else {
// Browser globals
factory( jQuery );
}
} )( function( $ ) {
"use strict";
return $.ui.safeBlur = function( element ) {
// Support: IE9 - 10 only
// If the <body> is blurred, IE will switch windows, see #9420
if ( element && element.nodeName.toLowerCase() !== "body" ) {
$( element ).trigger( "blur" );
}
};
} );

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Scroll Parent 1.13.3
* jQuery UI Scroll Parent 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Tabbable 1.13.3
* jQuery UI Tabbable 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Unique ID 1.13.3
* jQuery UI Unique ID 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,15 +1,17 @@
/*!
* jQuery Color Animations v2.2.0
* jQuery Color Animations v3.0.0
* https://github.com/jquery/jquery-color
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license
*
* Date: Sun May 10 09:02:36 2020 +0200
* Date: Wed May 15 16:49:44 2024 +0200
*/
( function( root, factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@ -20,6 +22,7 @@
factory( root.jQuery );
}
} )( this, function( jQuery, undefined ) {
"use strict";
var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " +
"borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
@ -145,10 +148,6 @@
floor: true
}
},
support = color.support = {},
// element for support tests
supportElem = jQuery( "<p>" )[ 0 ],
// colors = jQuery.Color.names
colors,
@ -156,10 +155,6 @@
// local aliases of functions called often
each = jQuery.each;
// determine rgba support immediately
supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
// define cache name and alpha properties
// for rgba and hsla spaces
each( spaces, function( spaceName, space ) {
@ -197,12 +192,6 @@ function clamp( value, prop, allowEmpty ) {
// ~~ is an short way of doing floor for positive numbers
value = type.floor ? ~~value : parseFloat( value );
// IE will pass in empty strings as value for alpha,
// which will hit this case
if ( isNaN( value ) ) {
return prop.def;
}
if ( type.mod ) {
// we add mod before modding to make sure that negatives values
@ -315,7 +304,10 @@ color.fn = jQuery.extend( color.prototype, {
} );
// everything defined but alpha?
if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
if ( inst[ cache ] && jQuery.inArray(
null,
inst[ cache ].slice( 0, 3 )
) < 0 ) {
// use the default of 1
if ( inst[ cache ][ 3 ] == null ) {
@ -427,7 +419,7 @@ color.fn = jQuery.extend( color.prototype, {
prefix = "rgb(";
}
return prefix + rgba.join() + ")";
return prefix + rgba.join( ", " ) + ")";
},
toHslaString: function() {
var prefix = "hsla(",
@ -447,7 +439,7 @@ color.fn = jQuery.extend( color.prototype, {
hsla.pop();
prefix = "hsl(";
}
return prefix + hsla.join() + ")";
return prefix + hsla.join( ", " ) + ")";
},
toHexString: function( includeAlpha ) {
var rgba = this._rgba.slice(),
@ -460,12 +452,11 @@ color.fn = jQuery.extend( color.prototype, {
return "#" + jQuery.map( rgba, function( v ) {
// default to 0 when nulls exist
v = ( v || 0 ).toString( 16 );
return v.length === 1 ? "0" + v : v;
return ( "0" + ( v || 0 ).toString( 16 ) ).substr( -2 );
} ).join( "" );
},
toString: function() {
return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();
return this.toRgbaString();
}
} );
color.fn.parse.prototype = color.fn;
@ -632,37 +623,15 @@ color.hook = function( hook ) {
each( hooks, function( _i, hook ) {
jQuery.cssHooks[ hook ] = {
set: function( elem, value ) {
var parsed, curElem,
backgroundColor = "";
var parsed;
if ( value !== "transparent" && ( getType( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
if ( value !== "transparent" &&
( getType( value ) !== "string" ||
( parsed = stringParse( value ) ) ) ) {
value = color( parsed || value );
if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
curElem = hook === "backgroundColor" ? elem.parentNode : elem;
while (
( backgroundColor === "" || backgroundColor === "transparent" ) &&
curElem && curElem.style
) {
try {
backgroundColor = jQuery.css( curElem, "backgroundColor" );
curElem = curElem.parentNode;
} catch ( e ) {
}
}
value = value.blend( backgroundColor && backgroundColor !== "transparent" ?
backgroundColor :
"_default" );
}
value = value.toRgbaString();
}
try {
elem.style[ hook ] = value;
} catch ( e ) {
// wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
}
elem.style[ hook ] = value;
}
};
jQuery.fx.step[ hook ] = function( fx ) {

View file

@ -15,6 +15,6 @@
$.ui = $.ui || {};
return $.ui.version = "1.13.3";
return $.ui.version = "1.14.0";
} );

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Widget 1.13.3
* jQuery UI Widget 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Accordion 1.13.3
* jQuery UI Accordion 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -40,7 +40,7 @@
"use strict";
return $.widget( "ui.accordion", {
version: "1.13.3",
version: "1.14.0",
options: {
active: 0,
animate: {},
@ -52,7 +52,17 @@ return $.widget( "ui.accordion", {
collapsible: false,
event: "click",
header: function( elem ) {
return elem.find( "> li > :first-child" ).add( elem.find( "> :not(li)" ).even() );
return elem
.find( "> li > :first-child" )
.add(
elem.find( "> :not(li)" )
// Support: jQuery <3.5 only
// We could use `.even()` but that's unavailable in older jQuery.
.filter( function( i ) {
return i % 2 === 0;
} )
);
},
heightStyle: "auto",
icons: {
@ -187,13 +197,7 @@ return $.widget( "ui.accordion", {
this._super( value );
this.element.attr( "aria-disabled", value );
// Support: IE8 Only
// #5332 / #6059 - opacity doesn't cascade to positioned elements in IE
// so we need to add the disabled class to the headers and panels
this._toggleClass( null, "ui-state-disabled", !!value );
this._toggleClass( this.headers.add( this.headers.next() ), null, "ui-state-disabled",
!!value );
},
_keydown: function( event ) {
@ -611,10 +615,6 @@ return $.widget( "ui.accordion", {
this._removeClass( prev, "ui-accordion-header-active" )
._addClass( prev, "ui-accordion-header-collapsed" );
// Work around for rendering bug in IE (#5421)
if ( toHide.length ) {
toHide.parent()[ 0 ].className = toHide.parent()[ 0 ].className;
}
this._trigger( "activate", null, data );
}
} );

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Autocomplete 1.13.3
* jQuery UI Autocomplete 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -27,7 +27,6 @@
"./menu",
"../keycode",
"../position",
"../safe-active-element",
"../version",
"../widget"
], factory );
@ -40,7 +39,7 @@
"use strict";
$.widget( "ui.autocomplete", {
version: "1.13.3",
version: "1.14.0",
defaultElement: "<input>",
options: {
appendTo: null,
@ -84,9 +83,9 @@ $.widget( "ui.autocomplete", {
// Textareas are always multi-line
// Inputs are always single-line, even if inside a contentEditable element
// IE also treats inputs as contentEditable
// All other element types are determined by whether or not they're contentEditable
this.isMultiLine = isTextarea || !isInput && this._isContentEditable( this.element );
// All other element types are determined by whether they're contentEditable
this.isMultiLine = isTextarea ||
!isInput && this.element.prop( "contentEditable" ) === "true";
this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ];
this.isNewMenu = true;
@ -150,7 +149,6 @@ $.widget( "ui.autocomplete", {
// Different browsers have different default behavior for escape
// Single press can mean undo or clear
// Double press in IE means clear the whole form
event.preventDefault();
}
break;
@ -219,16 +217,6 @@ $.widget( "ui.autocomplete", {
role: null
} )
.hide()
// Support: IE 11 only, Edge <= 14
// For other browsers, we preventDefault() on the mousedown event
// to keep the dropdown from taking focus from the input. This doesn't
// work for IE/Edge, causing problems with selection and scrolling (#9638)
// Happily, IE and Edge support an "unselectable" attribute that
// prevents an element from receiving focus, exactly what we want here.
.attr( {
"unselectable": "on"
} )
.menu( "instance" );
this._addClass( this.menu.element, "ui-autocomplete", "ui-front" );
@ -241,7 +229,7 @@ $.widget( "ui.autocomplete", {
menufocus: function( event, ui ) {
var label, item;
// support: Firefox
// Support: Firefox
// Prevent accidental activation of menu items in Firefox (#7024 #9118)
if ( this.isNewMenu ) {
this.isNewMenu = false;
@ -279,17 +267,9 @@ $.widget( "ui.autocomplete", {
previous = this.previous;
// Only trigger when focus was lost (click on menu)
if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) {
if ( this.element[ 0 ] !== this.document[ 0 ].activeElement ) {
this.element.trigger( "focus" );
this.previous = previous;
// #6109 - IE triggers two focus events and the second
// is asynchronous, so we need to reset the previous
// term synchronously and asynchronously :-(
this._delay( function() {
this.previous = previous;
this.selectedItem = item;
} );
}
if ( false !== this._trigger( "select", event, { item: item } ) ) {
@ -608,24 +588,6 @@ $.widget( "ui.autocomplete", {
// Prevents moving cursor to beginning/end of the text field in some browsers
event.preventDefault();
}
},
// Support: Chrome <=50
// We should be able to just use this.element.prop( "isContentEditable" )
// but hidden elements always report false in Chrome.
// https://code.google.com/p/chromium/issues/detail?id=313082
_isContentEditable: function( element ) {
if ( !element.length ) {
return false;
}
var editable = element.prop( "contentEditable" );
if ( editable === "inherit" ) {
return this._isContentEditable( element.parent() );
}
return editable === "true";
}
} );

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Button 1.13.3
* jQuery UI Button 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -42,7 +42,7 @@
"use strict";
$.widget( "ui.button", {
version: "1.13.3",
version: "1.14.0",
defaultElement: "<button>",
options: {
classes: {
@ -109,9 +109,9 @@ $.widget( "ui.button", {
if ( event.keyCode === $.ui.keyCode.SPACE ) {
event.preventDefault();
// Support: PhantomJS <= 1.9, IE 8 Only
// If a native click is available use it so we actually cause navigation
// otherwise just trigger a click event
// If a native click is available use it, so we
// actually cause navigation. Otherwise, just trigger
// a click event.
if ( this.element[ 0 ].click ) {
this.element[ 0 ].click();
} else {
@ -287,7 +287,7 @@ $.widget( "ui.button", {
} );
// DEPRECATED
if ( $.uiBackCompat !== false ) {
if ( $.uiBackCompat === true ) {
// Text and Icons options
$.widget( "ui.button", $.ui.button, {

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Checkboxradio 1.13.3
* jQuery UI Checkboxradio 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -38,7 +38,7 @@
"use strict";
$.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
version: "1.13.3",
version: "1.14.0",
options: {
disabled: null,
label: null,
@ -156,7 +156,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
_getRadioGroup: function() {
var group;
var name = this.element[ 0 ].name;
var nameSelector = "input[name='" + $.escapeSelector( name ) + "']";
var nameSelector = "input[name='" + CSS.escape( name ) + "']";
if ( !name ) {
return $( [] );
@ -168,7 +168,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
// Not inside a form, check all inputs that also are not inside a form
group = $( nameSelector ).filter( function() {
return $( this )._form().length === 0;
return $( $( this ).prop( "form" ) ).length === 0;
} );
}

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Controlgroup 1.13.3
* jQuery UI Controlgroup 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -37,7 +37,7 @@
var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
return $.widget( "ui.controlgroup", {
version: "1.13.3",
version: "1.14.0",
defaultElement: "<div>",
options: {
direction: "horizontal",

View file

@ -1,6 +1,6 @@
/* eslint-disable max-len, camelcase */
/*!
* jQuery UI Datepicker 1.13.3
* jQuery UI Datepicker 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -36,7 +36,7 @@
} )( function( $ ) {
"use strict";
$.extend( $.ui, { datepicker: { version: "1.13.3" } } );
$.extend( $.ui, { datepicker: { version: "1.14.0" } } );
var datepicker_instActive;
@ -435,6 +435,7 @@ $.extend( Datepicker.prototype, {
$target.removeClass( this.markerClassName ).empty();
}
$.datepicker._hideDatepicker();
if ( datepicker_instActive === inst ) {
datepicker_instActive = null;
this._curInst = null;
@ -910,11 +911,8 @@ $.extend( Datepicker.prototype, {
}
},
// #6694 - don't focus the input if it's already focused
// this breaks the change event in IE
// Support: IE and jQuery <1.9
_shouldFocusInput: function( inst ) {
return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" );
},
/* Check positioning to remain on screen. */
@ -971,8 +969,7 @@ $.extend( Datepicker.prototype, {
$.datepicker._tidyDialog( inst );
};
// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {
if ( $.effects && ( $.effects.effect[ showAnim ] ) ) {
inst.dpDiv.hide( showAnim, $.datepicker._get( inst, "showOptions" ), duration, postProcess );
} else {
inst.dpDiv[ ( showAnim === "slideDown" ? "slideUp" :
@ -2233,7 +2230,7 @@ $.fn.datepicker = function( options ) {
$.datepicker = new Datepicker(); // singleton instance
$.datepicker.initialized = false;
$.datepicker.uuid = new Date().getTime();
$.datepicker.version = "1.13.3";
$.datepicker.version = "1.14.0";
return $.datepicker;

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Dialog 1.13.3
* jQuery UI Dialog 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -31,8 +31,6 @@
"../focusable",
"../keycode",
"../position",
"../safe-active-element",
"../safe-blur",
"../tabbable",
"../unique-id",
"../version",
@ -47,7 +45,7 @@
"use strict";
$.widget( "ui.dialog", {
version: "1.13.3",
version: "1.14.0",
options: {
appendTo: "body",
autoOpen: true,
@ -229,7 +227,7 @@ $.widget( "ui.dialog", {
// Hiding a focused element doesn't trigger blur in WebKit
// so in case we have nothing to focus on, explicitly blur the active element
// https://bugs.webkit.org/show_bug.cgi?id=47182
$.ui.safeBlur( $.ui.safeActiveElement( this.document[ 0 ] ) );
$( this.document[ 0 ].activeElement ).trigger( "blur" );
}
this._hide( this.uiDialog, this.options.hide, function() {
@ -273,7 +271,7 @@ $.widget( "ui.dialog", {
}
this._isOpen = true;
this.opener = $( $.ui.safeActiveElement( this.document[ 0 ] ) );
this.opener = $( this.document[ 0 ].activeElement );
this._size();
this._position();
@ -329,7 +327,7 @@ $.widget( "ui.dialog", {
},
_restoreTabbableFocus: function() {
var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ),
var activeElement = this.document[ 0 ].activeElement,
isActive = this.uiDialog[ 0 ] === activeElement ||
$.contains( this.uiDialog[ 0 ], activeElement );
if ( !isActive ) {
@ -340,11 +338,6 @@ $.widget( "ui.dialog", {
_keepFocus: function( event ) {
event.preventDefault();
this._restoreTabbableFocus();
// support: IE
// IE <= 8 doesn't prevent moving focus even with event.preventDefault()
// so we check again later
this._delay( this._restoreTabbableFocus );
},
_createWrapper: function() {
@ -354,7 +347,8 @@ $.widget( "ui.dialog", {
// Setting tabIndex makes the div focusable
tabIndex: -1,
role: "dialog"
role: "dialog",
"aria-modal": this.options.modal ? "true" : null
} )
.appendTo( this._appendTo() );
@ -427,9 +421,6 @@ $.widget( "ui.dialog", {
}
} );
// Support: IE
// Use type="button" to prevent enter keypresses in textboxes from closing the
// dialog in IE (#9312)
this.uiDialogTitlebarClose = $( "<button type='button'></button>" )
.button( {
label: $( "<a>" ).text( this.options.closeText ).html(),
@ -772,6 +763,10 @@ $.widget( "ui.dialog", {
if ( key === "title" ) {
this._title( this.uiDialogTitlebar.find( ".ui-dialog-title" ) );
}
if ( key === "modal" ) {
uiDialog.attr( "aria-modal", value ? "true" : null );
}
},
_size: function() {
@ -857,8 +852,6 @@ $.widget( "ui.dialog", {
return;
}
var jqMinor = $.fn.jquery.substring( 0, 4 );
// We use a delay in case the overlay is created from an
// event that we're going to be cancelling (#2804)
var isOpening = true;
@ -880,18 +873,6 @@ $.widget( "ui.dialog", {
if ( !instance._allowInteraction( event ) ) {
event.preventDefault();
instance._focusTabbable();
// Support: jQuery >=3.4 <3.7 only
// In jQuery 3.4-3.6, there are multiple issues with focus/blur
// trigger chains or when triggering is done on a hidden element
// at least once.
// Trigger focus in a delay in addition if needed to avoid the issues.
// See https://github.com/jquery/jquery/issues/4382
// See https://github.com/jquery/jquery/issues/4856
// See https://github.com/jquery/jquery/issues/4950
if ( jqMinor === "3.4." || jqMinor === "3.5." || jqMinor === "3.6." ) {
instance._delay( instance._restoreTabbableFocus );
}
}
}.bind( this ) );
}
@ -930,7 +911,7 @@ $.widget( "ui.dialog", {
// DEPRECATED
// TODO: switch return back to widget declaration at top of file when this is removed
if ( $.uiBackCompat !== false ) {
if ( $.uiBackCompat === true ) {
// Backcompat for dialogClass option
$.widget( "ui.dialog", $.ui.dialog, {

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Draggable 1.13.3
* jQuery UI Draggable 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -25,8 +25,6 @@
"./mouse",
"../data",
"../plugin",
"../safe-active-element",
"../safe-blur",
"../scroll-parent",
"../version",
"../widget"
@ -40,7 +38,7 @@
"use strict";
$.widget( "ui.draggable", $.ui.mouse, {
version: "1.13.3",
version: "1.14.0",
widgetEventPrefix: "drag",
options: {
addClasses: true,
@ -147,7 +145,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
},
_blurActiveElement: function( event ) {
var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ),
var activeElement = this.document[ 0 ].activeElement,
target = $( event.target );
// Don't blur if the event occurred on an element that is within
@ -158,7 +156,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
}
// Blur any element that currently has focus, see #4261
$.ui.safeBlur( activeElement );
$( activeElement ).trigger( "blur" );
},
_mouseStart: function( event ) {

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Droppable 1.13.3
* jQuery UI Droppable 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -35,7 +35,7 @@
"use strict";
$.widget( "ui.droppable", {
version: "1.13.3",
version: "1.14.0",
widgetEventPrefix: "drop",
options: {
accept: "*",
@ -463,7 +463,7 @@ $.ui.ddmanager = {
// DEPRECATED
// TODO: switch return back to widget declaration at top of file when this is removed
if ( $.uiBackCompat !== false ) {
if ( $.uiBackCompat === true ) {
// Backcompat for activeClass and hoverClass options
$.widget( "ui.droppable", $.ui.droppable, {

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Menu 1.13.3
* jQuery UI Menu 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -26,7 +26,6 @@
"jquery",
"../keycode",
"../position",
"../safe-active-element",
"../unique-id",
"../version",
"../widget"
@ -40,7 +39,7 @@
"use strict";
return $.widget( "ui.menu", {
version: "1.13.3",
version: "1.14.0",
defaultElement: "<ul>",
delay: 300,
options: {
@ -87,7 +86,7 @@ return $.widget( "ui.menu", {
},
"click .ui-menu-item": function( event ) {
var target = $( event.target );
var active = $( $.ui.safeActiveElement( this.document[ 0 ] ) );
var active = $( this.document[ 0 ].activeElement );
if ( !this.mouseHandled && target.not( ".ui-state-disabled" ).length ) {
this.select( event );
@ -131,7 +130,7 @@ return $.widget( "ui.menu", {
this._delay( function() {
var notContained = !$.contains(
this.element[ 0 ],
$.ui.safeActiveElement( this.document[ 0 ] )
this.document[ 0 ].activeElement
);
if ( notContained ) {
this.collapseAll( event );

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Mouse 1.13.3
* jQuery UI Mouse 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -20,7 +20,6 @@
// AMD. Register as an anonymous module.
define( [
"jquery",
"../ie",
"../version",
"../widget"
], factory );
@ -38,7 +37,7 @@ $( document ).on( "mouseup", function() {
} );
return $.widget( "ui.mouse", {
version: "1.13.3",
version: "1.14.0",
options: {
cancel: "input, textarea, button, select, option",
distance: 1,
@ -90,12 +89,10 @@ return $.widget( "ui.mouse", {
this._mouseDownEvent = event;
var that = this,
btnIsLeft = ( event.which === 1 ),
// event.target.nodeName works around a bug in IE 8 with
// disabled inputs (#7620)
elIsCancel = ( typeof this.options.cancel === "string" && event.target.nodeName ?
$( event.target ).closest( this.options.cancel ).length : false );
btnIsLeft = event.which === 1,
elIsCancel = typeof this.options.cancel === "string" ?
$( event.target ).closest( this.options.cancel ).length :
false;
if ( !btnIsLeft || elIsCancel || !this._mouseCapture( event ) ) {
return true;
}
@ -141,28 +138,17 @@ return $.widget( "ui.mouse", {
_mouseMove: function( event ) {
// Only check for mouseups outside the document if you've moved inside the document
// at least once. This prevents the firing of mouseup in the case of IE<9, which will
// fire a mousemove event if content is placed under the cursor. See #7778
// Support: IE <9
if ( this._mouseMoved ) {
// at least once.
if ( this._mouseMoved && !event.which ) {
// IE mouseup check - mouseup happened when mouse was out of window
if ( $.ui.ie && ( !document.documentMode || document.documentMode < 9 ) &&
!event.button ) {
// 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 ) {
this.ignoreMissingWhich = true;
} else if ( !this.ignoreMissingWhich ) {
return this._mouseUp( event );
// 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 ) {
this.ignoreMissingWhich = true;
} else if ( !this.ignoreMissingWhich ) {
return this._mouseUp( event );
}
}
}

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Progressbar 1.13.3
* jQuery UI Progressbar 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -38,7 +38,7 @@
"use strict";
return $.widget( "ui.progressbar", {
version: "1.13.3",
version: "1.14.0",
options: {
classes: {
"ui-progressbar": "ui-corner-all",

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Resizable 1.13.3
* jQuery UI Resizable 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -39,7 +39,7 @@
"use strict";
$.widget( "ui.resizable", $.ui.mouse, {
version: "1.13.3",
version: "1.14.0",
widgetEventPrefix: "resize",
options: {
alsoResize: false,
@ -149,9 +149,8 @@ $.widget( "ui.resizable", $.ui.mouse, {
};
this.element.css( margins );
this.originalElement.css( "margin", 0 );
// support: Safari
// Support: Safari
// Prevent Safari textarea resize
this.originalResizeStyle = this.originalElement.css( "resize" );
this.originalElement.css( "resize", "none" );
@ -162,10 +161,6 @@ $.widget( "ui.resizable", $.ui.mouse, {
display: "block"
} ) );
// Support: IE9
// avoid IE jump (hard set the margin)
this.originalElement.css( margins );
this._proportionallyResize();
}
@ -1113,7 +1108,7 @@ $.ui.plugin.add( "resizable", "ghost", {
// DEPRECATED
// TODO: remove after 1.12
if ( $.uiBackCompat !== false && typeof that.options.ghost === "string" ) {
if ( $.uiBackCompat === true && typeof that.options.ghost === "string" ) {
// Ghost option
that.ghost.addClass( this.options.ghost );

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Selectable 1.13.3
* jQuery UI Selectable 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -35,7 +35,7 @@
"use strict";
return $.widget( "ui.selectable", $.ui.mouse, {
version: "1.13.3",
version: "1.14.0",
options: {
appendTo: "body",
autoRefresh: true,

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Selectmenu 1.13.3
* jQuery UI Selectmenu 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -44,7 +44,7 @@
"use strict";
return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
version: "1.13.3",
version: "1.14.0",
defaultElement: "<select>",
options: {
appendTo: null,
@ -167,12 +167,6 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
role: "listbox",
select: function( event, ui ) {
event.preventDefault();
// Support: IE8
// If the item was selected via a click, the text selection
// will be destroyed in IE
that._setSelection();
that._select( ui.item.data( "ui-selectmenu-item" ), event );
},
focus: function( event, ui ) {
@ -409,20 +403,9 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
return;
}
if ( window.getSelection ) {
selection = window.getSelection();
selection.removeAllRanges();
selection.addRange( this.range );
// Support: IE8
} else {
this.range.select();
}
// Support: IE
// Setting the text selection kills the button focus in IE, but
// restoring the focus doesn't kill the selection.
this.button.trigger( "focus" );
selection = window.getSelection();
selection.removeAllRanges();
selection.addRange( this.range );
},
_documentClick: {
@ -432,7 +415,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
}
if ( !$( event.target ).closest( ".ui-selectmenu-menu, #" +
$.escapeSelector( this.ids.button ) ).length ) {
CSS.escape( this.ids.button ) ).length ) {
this.close( event );
}
}
@ -442,17 +425,9 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
// Prevent text selection from being reset when interacting with the selectmenu (#10144)
mousedown: function() {
var selection;
if ( window.getSelection ) {
selection = window.getSelection();
if ( selection.rangeCount ) {
this.range = selection.getRangeAt( 0 );
}
// Support: IE8
} else {
this.range = document.selection.createRange();
var selection = window.getSelection();
if ( selection.rangeCount ) {
this.range = selection.getRangeAt( 0 );
}
},
@ -643,11 +618,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
_resizeMenu: function() {
this.menu.outerWidth( Math.max(
this.button.outerWidth(),
// Support: IE10
// IE10 wraps long text (possibly a rounding bug)
// so we add 1px to avoid the wrapping
this.menu.width( "" ).outerWidth() + 1
this.menu.width( "" ).outerWidth()
) );
},

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Slider 1.13.3
* jQuery UI Slider 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -38,7 +38,7 @@
"use strict";
return $.widget( "ui.slider", $.ui.mouse, {
version: "1.13.3",
version: "1.14.0",
widgetEventPrefix: "slide",
options: {

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Sortable 1.13.3
* jQuery UI Sortable 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -24,7 +24,6 @@
"jquery",
"./mouse",
"../data",
"../ie",
"../scroll-parent",
"../version",
"../widget"
@ -38,7 +37,7 @@
"use strict";
return $.widget( "ui.sortable", $.ui.mouse, {
version: "1.13.3",
version: "1.14.0",
widgetEventPrefix: "sort",
ready: false,
options: {
@ -276,11 +275,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
if ( o.cursor && o.cursor !== "auto" ) { // cursor option
body = this.document.find( "body" );
// Support: IE
this.storedCursor = body.css( "cursor" );
body.css( "cursor", o.cursor );
this.storedStylesheet =
this._storedStylesheet =
$( "<style>*{ cursor: " + o.cursor + " !important; }</style>" ).appendTo( body );
}
@ -1197,11 +1192,9 @@ return $.widget( "ui.sortable", $.ui.mouse, {
po.top += this.scrollParent.scrollTop();
}
// 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.toLowerCase() === "html" && $.ui.ie ) ) {
// This needs to be actually done for all browsers, since pageX/pageY includes
// this information.
if ( this.offsetParent[ 0 ] === this.document[ 0 ].body ) {
po = { top: 0, left: 0 };
}
@ -1549,9 +1542,9 @@ return $.widget( "ui.sortable", $.ui.mouse, {
}
//Do what was originally in plugins
if ( this.storedCursor ) {
this.document.find( "body" ).css( "cursor", this.storedCursor );
this.storedStylesheet.remove();
if ( this._storedStylesheet ) {
this._storedStylesheet.remove();
this._storedStylesheet = null;
}
if ( this._storedOpacity ) {
this.helper.css( "opacity", this._storedOpacity );

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Spinner 1.13.3
* jQuery UI Spinner 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -27,7 +27,6 @@
"./button",
"../version",
"../keycode",
"../safe-active-element",
"../widget"
], factory );
} else {
@ -50,7 +49,7 @@ function spinnerModifier( fn ) {
}
$.widget( "ui.spinner", {
version: "1.13.3",
version: "1.14.0",
defaultElement: "<input>",
widgetEventPrefix: "spin",
options: {
@ -131,11 +130,6 @@ $.widget( "ui.spinner", {
this.previous = this.element.val();
},
blur: function( event ) {
if ( this.cancelBlur ) {
delete this.cancelBlur;
return;
}
this._stop();
this._refresh();
if ( this.previous !== this.element.val() ) {
@ -143,7 +137,7 @@ $.widget( "ui.spinner", {
}
},
mousewheel: function( event, delta ) {
var activeElement = $.ui.safeActiveElement( this.document[ 0 ] );
var activeElement = this.document[ 0 ].activeElement;
var isActive = this.element[ 0 ] === activeElement;
if ( !isActive || !delta ) {
@ -171,20 +165,13 @@ $.widget( "ui.spinner", {
// If the input is focused then this.previous is properly set from
// when the input first received focus. If the input is not focused
// then we need to set this.previous based on the value before spinning.
previous = this.element[ 0 ] === $.ui.safeActiveElement( this.document[ 0 ] ) ?
previous = this.element[ 0 ] === this.document[ 0 ].activeElement ?
this.previous : this.element.val();
function checkFocus() {
var isActive = this.element[ 0 ] === $.ui.safeActiveElement( this.document[ 0 ] );
var isActive = this.element[ 0 ] === this.document[ 0 ].activeElement;
if ( !isActive ) {
this.element.trigger( "focus" );
this.previous = previous;
// support: IE
// IE sets focus asynchronously, so we need to check if focus
// moved off of the input because the user clicked on the button.
this._delay( function() {
this.previous = previous;
} );
}
}
@ -192,16 +179,6 @@ $.widget( "ui.spinner", {
event.preventDefault();
checkFocus.call( this );
// Support: IE
// IE doesn't prevent moving focus even with event.preventDefault()
// so we set a flag to know when we should ignore the blur event
// and check (again) if focus moved off of the input.
this.cancelBlur = true;
this._delay( function() {
delete this.cancelBlur;
checkFocus.call( this );
} );
if ( this._start( event ) === false ) {
return;
}
@ -554,7 +531,7 @@ $.widget( "ui.spinner", {
// DEPRECATED
// TODO: switch return back to widget declaration at top of file when this is removed
if ( $.uiBackCompat !== false ) {
if ( $.uiBackCompat === true ) {
// Backcompat for spinner html extension points
$.widget( "ui.spinner", $.ui.spinner, {

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Tabs 1.13.3
* jQuery UI Tabs 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -25,7 +25,6 @@
define( [
"jquery",
"../keycode",
"../safe-active-element",
"../unique-id",
"../version",
"../widget"
@ -39,7 +38,7 @@
"use strict";
$.widget( "ui.tabs", {
version: "1.13.3",
version: "1.14.0",
delay: 300,
options: {
active: null,
@ -171,7 +170,7 @@ $.widget( "ui.tabs", {
},
_tabKeydown: function( event ) {
var focusedTab = $( $.ui.safeActiveElement( this.document[ 0 ] ) ).closest( "li" ),
var focusedTab = $( this.document[ 0 ].activeElement ).closest( "li" ),
selectedIndex = this.tabs.index( focusedTab ),
goingForward = true;
@ -408,18 +407,6 @@ $.widget( "ui.tabs", {
if ( $( this ).is( ".ui-state-disabled" ) ) {
event.preventDefault();
}
} )
// Support: IE <9
// Preventing the default action in mousedown doesn't prevent IE
// from focusing the element, so if the anchor gets focused, blur.
// We don't have to worry about focusing the previously focused
// element since clicking on a non-focusable element should focus
// the body anyway.
.on( "focus" + this.eventNamespace, ".ui-tabs-anchor", function() {
if ( $( this ).closest( "li" ).is( ".ui-state-disabled" ) ) {
this.blur();
}
} );
this.tabs = this.tablist.find( "> li:has(a[href])" )
@ -735,7 +722,7 @@ $.widget( "ui.tabs", {
// meta-function to give users option to provide a href string instead of a numerical index.
if ( typeof index === "string" ) {
index = this.anchors.index( this.anchors.filter( "[href$='" +
$.escapeSelector( index ) + "']" ) );
CSS.escape( index ) + "']" ) );
}
return index;
@ -857,32 +844,19 @@ $.widget( "ui.tabs", {
this.xhr = $.ajax( this._ajaxSettings( anchor, event, eventData ) );
// Support: jQuery <1.8
// jQuery <1.8 returns false if the request is canceled in beforeSend,
// but as of 1.8, $.ajax() always returns a jqXHR object.
if ( this.xhr && this.xhr.statusText !== "canceled" ) {
if ( this.xhr.statusText !== "canceled" ) {
this._addClass( tab, "ui-tabs-loading" );
panel.attr( "aria-busy", "true" );
this.xhr
.done( function( response, status, jqXHR ) {
panel.html( response );
that._trigger( "load", event, eventData );
// support: jQuery <1.8
// https://bugs.jquery.com/ticket/11778
setTimeout( function() {
panel.html( response );
that._trigger( "load", event, eventData );
complete( jqXHR, status );
}, 1 );
complete( jqXHR, status );
} )
.fail( function( jqXHR, status ) {
// support: jQuery <1.8
// https://bugs.jquery.com/ticket/11778
setTimeout( function() {
complete( jqXHR, status );
}, 1 );
complete( jqXHR, status );
} );
}
},
@ -890,10 +864,7 @@ $.widget( "ui.tabs", {
_ajaxSettings: function( anchor, event, eventData ) {
var that = this;
return {
// Support: IE <11 only
// Strip any hash that exists to prevent errors with the Ajax request
url: anchor.attr( "href" ).replace( /#.*$/, "" ),
url: anchor.attr( "href" ),
beforeSend: function( jqXHR, settings ) {
return that._trigger( "beforeLoad", event,
$.extend( { jqXHR: jqXHR, ajaxSettings: settings }, eventData ) );
@ -909,7 +880,7 @@ $.widget( "ui.tabs", {
// DEPRECATED
// TODO: Switch return back to widget declaration at top of file when this is removed
if ( $.uiBackCompat !== false ) {
if ( $.uiBackCompat === true ) {
// Backcompat for ui-tab class (now ui-tabs-tab)
$.widget( "ui.tabs", $.ui.tabs, {

View file

@ -1,5 +1,5 @@
/*!
* jQuery UI Tooltip 1.13.3
* jQuery UI Tooltip 1.14.0
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
@ -39,7 +39,7 @@
"use strict";
$.widget( "ui.tooltip", {
version: "1.13.3",
version: "1.14.0",
options: {
classes: {
"ui-tooltip": "ui-corner-all ui-widget-shadow"
@ -227,25 +227,20 @@ $.widget( "ui.tooltip", {
content = contentOption.call( target[ 0 ], function( response ) {
// IE may instantly serve a cached response for ajax requests
// delay this call to _open so the other call to _open runs first
that._delay( function() {
// Ignore async response if tooltip was closed already
if ( !target.data( "ui-tooltip-open" ) ) {
return;
}
// Ignore async response if tooltip was closed already
if ( !target.data( "ui-tooltip-open" ) ) {
return;
}
// JQuery creates a special event for focusin when it doesn't
// exist natively. To improve performance, the native event
// object is reused and the type is changed. Therefore, we can't
// rely on the type being correct after the event finished
// bubbling, so we set it back to the previous value. (#8740)
if ( event ) {
event.type = eventType;
}
this._open( event, target, response );
} );
// JQuery creates a special event for focusin when it doesn't
// exist natively. To improve performance, the native event
// object is reused and the type is changed. Therefore, we can't
// rely on the type being correct after the event finished
// bubbling, so we set it back to the previous value. (#8740)
if ( event ) {
event.type = eventType;
}
that._open( event, target, response );
} );
if ( content ) {
this._open( event, target, content );
@ -505,7 +500,7 @@ $.widget( "ui.tooltip", {
// DEPRECATED
// TODO: Switch return back to widget declaration at top of file when this is removed
if ( $.uiBackCompat !== false ) {
if ( $.uiBackCompat === true ) {
// Backcompat for tooltipClass option
$.widget( "ui.tooltip", $.ui.tooltip, {