1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 02:09:22 +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

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, {