External libraries: Update jQuery UI to 1.13.1

Some regressions happened alongside the release of jQuery UI 1.13.0, this brings the fixes from 1.13.1 downstream to WordPress, notably relating to Widget, Autocomplete, Sortable, and Tooltip modules.

See the changelog between version 1.13.0 and 1.13.1 at https://github.com/jquery/jquery-ui/compare/1.13.0...1.13.1

Props blogaid, linux4me2, mgol.
Fixes #54902.
Built from https://develop.svn.wordpress.org/trunk@52648


git-svn-id: http://core.svn.wordpress.org/trunk@52237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Clorith 2022-01-28 16:44:05 +00:00
parent 445d687680
commit 7ea33988e9
76 changed files with 955 additions and 945 deletions

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Accordion 1.13.0 * jQuery UI Accordion 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -37,7 +37,7 @@
"use strict"; "use strict";
return $.widget( "ui.accordion", { return $.widget( "ui.accordion", {
version: "1.13.0", version: "1.13.1",
options: { options: {
active: 0, active: 0,
animate: {}, animate: {},
@ -204,24 +204,24 @@ return $.widget( "ui.accordion", {
toFocus = false; toFocus = false;
switch ( event.keyCode ) { switch ( event.keyCode ) {
case keyCode.RIGHT: case keyCode.RIGHT:
case keyCode.DOWN: case keyCode.DOWN:
toFocus = this.headers[ ( currentIndex + 1 ) % length ]; toFocus = this.headers[ ( currentIndex + 1 ) % length ];
break; break;
case keyCode.LEFT: case keyCode.LEFT:
case keyCode.UP: case keyCode.UP:
toFocus = this.headers[ ( currentIndex - 1 + length ) % length ]; toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];
break; break;
case keyCode.SPACE: case keyCode.SPACE:
case keyCode.ENTER: case keyCode.ENTER:
this._eventHandler( event ); this._eventHandler( event );
break; break;
case keyCode.HOME: case keyCode.HOME:
toFocus = this.headers[ 0 ]; toFocus = this.headers[ 0 ];
break; break;
case keyCode.END: case keyCode.END:
toFocus = this.headers[ length - 1 ]; toFocus = this.headers[ length - 1 ];
break; break;
} }
if ( toFocus ) { if ( toFocus ) {
@ -244,15 +244,15 @@ return $.widget( "ui.accordion", {
// Was collapsed or no panel // Was collapsed or no panel
if ( ( options.active === false && options.collapsible === true ) || if ( ( options.active === false && options.collapsible === true ) ||
!this.headers.length ) { !this.headers.length ) {
options.active = false; options.active = false;
this.active = $(); this.active = $();
// active false only when collapsible is true // active false only when collapsible is true
} else if ( options.active === false ) { } else if ( options.active === false ) {
this._activate( 0 ); this._activate( 0 );
// was active, but active panel is gone // was active, but active panel is gone
} else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) { } else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
// all remaining panel are disabled // all remaining panel are disabled
@ -260,12 +260,12 @@ return $.widget( "ui.accordion", {
options.active = false; options.active = false;
this.active = $(); this.active = $();
// activate previous panel // activate previous panel
} else { } else {
this._activate( Math.max( 0, options.active - 1 ) ); this._activate( Math.max( 0, options.active - 1 ) );
} }
// was active, active panel still exists // was active, active panel still exists
} else { } else {
// make sure active index is correct // make sure active index is correct
@ -322,20 +322,20 @@ return $.widget( "ui.accordion", {
panel.attr( "aria-labelledby", headerId ); panel.attr( "aria-labelledby", headerId );
} ) } )
.next() .next()
.attr( "role", "tabpanel" ); .attr( "role", "tabpanel" );
this.headers this.headers
.not( this.active ) .not( this.active )
.attr( { .attr( {
"aria-selected": "false", "aria-selected": "false",
"aria-expanded": "false", "aria-expanded": "false",
tabIndex: -1 tabIndex: -1
} ) } )
.next() .next()
.attr( { .attr( {
"aria-hidden": "true" "aria-hidden": "true"
} ) } )
.hide(); .hide();
// Make sure at least one header is in the tab order // Make sure at least one header is in the tab order
if ( !this.active.length ) { if ( !this.active.length ) {
@ -347,9 +347,9 @@ return $.widget( "ui.accordion", {
tabIndex: 0 tabIndex: 0
} ) } )
.next() .next()
.attr( { .attr( {
"aria-hidden": "false" "aria-hidden": "false"
} ); } );
} }
this._createIcons(); this._createIcons();
@ -454,11 +454,11 @@ return $.widget( "ui.accordion", {
if ( if (
// click on active header, but not collapsible // click on active header, but not collapsible
( clickedIsActive && !options.collapsible ) || ( clickedIsActive && !options.collapsible ) ||
// allow canceling activation // allow canceling activation
( this._trigger( "beforeActivate", event, eventData ) === false ) ) { ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
return; return;
} }
@ -534,11 +534,11 @@ return $.widget( "ui.accordion", {
toShow toShow
.attr( "aria-hidden", "false" ) .attr( "aria-hidden", "false" )
.prev() .prev()
.attr( { .attr( {
"aria-selected": "true", "aria-selected": "true",
"aria-expanded": "true", "aria-expanded": "true",
tabIndex: 0 tabIndex: 0
} ); } );
}, },
_animate: function( toShow, toHide, data ) { _animate: function( toShow, toHide, data ) {

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Autocomplete 1.13.0 * jQuery UI Autocomplete 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -36,7 +36,7 @@
"use strict"; "use strict";
$.widget( "ui.autocomplete", { $.widget( "ui.autocomplete", {
version: "1.13.0", version: "1.13.1",
defaultElement: "<input>", defaultElement: "<input>",
options: { options: {
appendTo: null, appendTo: null,
@ -62,6 +62,7 @@ $.widget( "ui.autocomplete", {
requestIndex: 0, requestIndex: 0,
pending: 0, pending: 0,
liveRegionTimer: null,
_create: function() { _create: function() {
@ -103,58 +104,58 @@ $.widget( "ui.autocomplete", {
suppressKeyPressRepeat = false; suppressKeyPressRepeat = false;
var keyCode = $.ui.keyCode; var keyCode = $.ui.keyCode;
switch ( event.keyCode ) { switch ( event.keyCode ) {
case keyCode.PAGE_UP: case keyCode.PAGE_UP:
suppressKeyPress = true;
this._move( "previousPage", event );
break;
case keyCode.PAGE_DOWN:
suppressKeyPress = true;
this._move( "nextPage", event );
break;
case keyCode.UP:
suppressKeyPress = true;
this._keyEvent( "previous", event );
break;
case keyCode.DOWN:
suppressKeyPress = true;
this._keyEvent( "next", event );
break;
case keyCode.ENTER:
// when menu is open and has focus
if ( this.menu.active ) {
// #6055 - Opera still allows the keypress to occur
// which causes forms to submit
suppressKeyPress = true; suppressKeyPress = true;
event.preventDefault(); this._move( "previousPage", event );
this.menu.select( event ); break;
} case keyCode.PAGE_DOWN:
break; suppressKeyPress = true;
case keyCode.TAB: this._move( "nextPage", event );
if ( this.menu.active ) { break;
this.menu.select( event ); case keyCode.UP:
} suppressKeyPress = true;
break; this._keyEvent( "previous", event );
case keyCode.ESCAPE: break;
if ( this.menu.element.is( ":visible" ) ) { case keyCode.DOWN:
if ( !this.isMultiLine ) { suppressKeyPress = true;
this._value( this.term ); this._keyEvent( "next", event );
break;
case keyCode.ENTER:
// when menu is open and has focus
if ( this.menu.active ) {
// #6055 - Opera still allows the keypress to occur
// which causes forms to submit
suppressKeyPress = true;
event.preventDefault();
this.menu.select( event );
} }
this.close( event ); break;
case keyCode.TAB:
if ( this.menu.active ) {
this.menu.select( event );
}
break;
case keyCode.ESCAPE:
if ( this.menu.element.is( ":visible" ) ) {
if ( !this.isMultiLine ) {
this._value( this.term );
}
this.close( event );
// Different browsers have different default behavior for escape // Different browsers have different default behavior for escape
// Single press can mean undo or clear // Single press can mean undo or clear
// Double press in IE means clear the whole form // Double press in IE means clear the whole form
event.preventDefault(); event.preventDefault();
} }
break; break;
default: default:
suppressKeyPressRepeat = true; suppressKeyPressRepeat = true;
// search timeout should be triggered before the input value is changed // search timeout should be triggered before the input value is changed
this._searchTimeout( event ); this._searchTimeout( event );
break; break;
} }
}, },
keypress: function( event ) { keypress: function( event ) {
@ -172,18 +173,18 @@ $.widget( "ui.autocomplete", {
// Replicate some key handlers to allow them to repeat in Firefox and Opera // Replicate some key handlers to allow them to repeat in Firefox and Opera
var keyCode = $.ui.keyCode; var keyCode = $.ui.keyCode;
switch ( event.keyCode ) { switch ( event.keyCode ) {
case keyCode.PAGE_UP: case keyCode.PAGE_UP:
this._move( "previousPage", event ); this._move( "previousPage", event );
break; break;
case keyCode.PAGE_DOWN: case keyCode.PAGE_DOWN:
this._move( "nextPage", event ); this._move( "nextPage", event );
break; break;
case keyCode.UP: case keyCode.UP:
this._keyEvent( "previous", event ); this._keyEvent( "previous", event );
break; break;
case keyCode.DOWN: case keyCode.DOWN:
this._keyEvent( "next", event ); this._keyEvent( "next", event );
break; break;
} }
}, },
input: function( event ) { input: function( event ) {
@ -263,8 +264,10 @@ $.widget( "ui.autocomplete", {
// Announce the value in the liveRegion // Announce the value in the liveRegion
label = ui.item.attr( "aria-label" ) || item.value; label = ui.item.attr( "aria-label" ) || item.value;
if ( label && String.prototype.trim.call( label ).length ) { if ( label && String.prototype.trim.call( label ).length ) {
this.liveRegion.children().hide(); clearTimeout( this.liveRegionTimer );
$( "<div>" ).text( label ).appendTo( this.liveRegion ); this.liveRegionTimer = this._delay( function() {
this.liveRegion.html( $( "<div>" ).text( label ) );
}, 100 );
} }
}, },
menuselect: function( event, ui ) { menuselect: function( event, ui ) {
@ -574,7 +577,7 @@ $.widget( "ui.autocomplete", {
return; return;
} }
if ( this.menu.isFirstItem() && /^previous/.test( direction ) || if ( this.menu.isFirstItem() && /^previous/.test( direction ) ||
this.menu.isLastItem() && /^next/.test( direction ) ) { this.menu.isLastItem() && /^next/.test( direction ) ) {
if ( !this.isMultiLine ) { if ( !this.isMultiLine ) {
this._value( this.term ); this._value( this.term );
@ -659,8 +662,10 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, {
} else { } else {
message = this.options.messages.noResults; message = this.options.messages.noResults;
} }
this.liveRegion.children().hide(); clearTimeout( this.liveRegionTimer );
$( "<div>" ).text( message ).appendTo( this.liveRegion ); this.liveRegionTimer = this._delay( function() {
this.liveRegion.html( $( "<div>" ).text( message ) );
}, 100 );
} }
} ); } );

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Button 1.13.0 * jQuery UI Button 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -41,7 +41,7 @@
"use strict"; "use strict";
$.widget( "ui.button", { $.widget( "ui.button", {
version: "1.13.0", version: "1.13.1",
defaultElement: "<button>", defaultElement: "<button>",
options: { options: {
classes: { classes: {
@ -240,8 +240,8 @@ $.widget( "ui.button", {
// Make sure we can't end up with a button that has neither text nor icon // Make sure we can't end up with a button that has neither text nor icon
if ( key === "showLabel" ) { if ( key === "showLabel" ) {
this._toggleClass( "ui-button-icon-only", null, !value ); this._toggleClass( "ui-button-icon-only", null, !value );
this._updateTooltip(); this._updateTooltip();
} }
if ( key === "label" ) { if ( key === "label" ) {
@ -306,7 +306,7 @@ if ( $.uiBackCompat !== false ) {
this.options.text = this.options.showLabel; this.options.text = this.options.showLabel;
} }
if ( !this.options.icon && ( this.options.icons.primary || if ( !this.options.icon && ( this.options.icons.primary ||
this.options.icons.secondary ) ) { this.options.icons.secondary ) ) {
if ( this.options.icons.primary ) { if ( this.options.icons.primary ) {
this.options.icon = this.options.icons.primary; this.options.icon = this.options.icons.primary;
} else { } else {

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Checkboxradio 1.13.0 * jQuery UI Checkboxradio 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -36,7 +36,7 @@
"use strict"; "use strict";
$.widget( "ui.checkboxradio", [ $.ui.formResetMixin, { $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
version: "1.13.0", version: "1.13.1",
options: { options: {
disabled: null, disabled: null,
label: null, label: null,

View File

@ -1,9 +1,9 @@
/*! /*!
* jQuery UI Checkboxradio 1.13.0 * jQuery UI Checkboxradio 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
* Released under the MIT license. * Released under the MIT license.
* http://jquery.org/license * http://jquery.org/license
*/ */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(s){"use strict";return s.widget("ui.checkboxradio",[s.ui.formResetMixin,{version:"1.13.0",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i=this,t=this._super()||{};return this._readType(),e=this.element.labels(),this.label=s(e[e.length-1]),this.label.length||s.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){i.originalLabel+=3===this.nodeType?s(this).text():this.outerHTML}),this.originalLabel&&(t.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(t.disabled=e),t},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||s.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,i="input[name='"+s.escapeSelector(e)+"']";return e?(this.form.length?s(this.form[0].elements).filter(i):s(i).filter(function(){return 0===s(this)._form().length})).not(this.element):s([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=s(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,i){if("label"!==e||i){if(this._super(e,i),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",i),void(this.element[0].disabled=i);this.refresh()}},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=s("<span>"),this.iconSpace=s("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),(e=this.iconSpace?e.not(this.iconSpace[0]):e).remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,i=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),i!==this.options.disabled&&this._setOptions({disabled:i})}}]),s.ui.checkboxradio}); !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(s){"use strict";return s.widget("ui.checkboxradio",[s.ui.formResetMixin,{version:"1.13.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i=this,t=this._super()||{};return this._readType(),e=this.element.labels(),this.label=s(e[e.length-1]),this.label.length||s.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){i.originalLabel+=3===this.nodeType?s(this).text():this.outerHTML}),this.originalLabel&&(t.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(t.disabled=e),t},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||s.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,i="input[name='"+s.escapeSelector(e)+"']";return e?(this.form.length?s(this.form[0].elements).filter(i):s(i).filter(function(){return 0===s(this)._form().length})).not(this.element):s([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=s(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,i){if("label"!==e||i){if(this._super(e,i),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",i),void(this.element[0].disabled=i);this.refresh()}},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=s("<span>"),this.iconSpace=s("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),(e=this.iconSpace?e.not(this.iconSpace[0]):e).remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,i=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),i!==this.options.disabled&&this._setOptions({disabled:i})}}]),s.ui.checkboxradio});

View File

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

View File

@ -1,9 +1,9 @@
/*! /*!
* jQuery UI Controlgroup 1.13.0 * jQuery UI Controlgroup 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
* Released under the MIT license. * Released under the MIT license.
* http://jquery.org/license * http://jquery.org/license
*/ */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],t):t(jQuery)}(function(r){"use strict";var s=/ui-corner-([a-z]){2,6}/g;return r.widget("ui.controlgroup",{version:"1.13.0",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var s=this,l=[];r.each(this.options.items,function(n,t){var e,o={};if(t)return"controlgroupLabel"===n?((e=s.element.find(t)).each(function(){var t=r(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),s._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),void(l=l.concat(e.get()))):void(r.fn[n]&&(o=s["_"+n+"Options"]?s["_"+n+"Options"]("middle"):{classes:{}},s.element.find(t).each(function(){var t=r(this),e=t[n]("instance"),i=r.widget.extend({},o);"button"===n&&t.parent(".ui-spinner").length||((e=e||t[n]()[n]("instance"))&&(i.classes=s._resolveClassesValues(i.classes,e)),t[n](i),i=t[n]("widget"),r.data(i[0],"ui-controlgroup-data",e||t[n]("instance")),l.push(i[0]))})))}),this.childWidgets=r(r.uniqueSort(l)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=r(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){t=this._buildSimpleOptions(t,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var o={};return r.each(i,function(t){var e=n.options.classes[t]||"",e=String.prototype.trim.call(e.replace(s,""));o[t]=(e+" "+i[t]).replace(/\s+/g," ")}),o},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var o,s=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),o=this.childWidgets,(o=this.options.onlyVisible?o.filter(":visible"):o).length&&(r.each(["first","last"],function(t,e){var i,n=o[e]().data("ui-controlgroup-data");n&&s["_"+n.widgetName+"Options"]?((i=s["_"+n.widgetName+"Options"](1===o.length?"only":e)).classes=s._resolveClassesValues(i.classes,n),n.element[n.widgetName](i)):s._updateCornerClass(o[e](),e)}),this._callChildMethod("refresh"))}})}); !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],t):t(jQuery)}(function(r){"use strict";var s=/ui-corner-([a-z]){2,6}/g;return r.widget("ui.controlgroup",{version:"1.13.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var s=this,l=[];r.each(this.options.items,function(n,t){var e,o={};if(t)return"controlgroupLabel"===n?((e=s.element.find(t)).each(function(){var t=r(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),s._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),void(l=l.concat(e.get()))):void(r.fn[n]&&(o=s["_"+n+"Options"]?s["_"+n+"Options"]("middle"):{classes:{}},s.element.find(t).each(function(){var t=r(this),e=t[n]("instance"),i=r.widget.extend({},o);"button"===n&&t.parent(".ui-spinner").length||((e=e||t[n]()[n]("instance"))&&(i.classes=s._resolveClassesValues(i.classes,e)),t[n](i),i=t[n]("widget"),r.data(i[0],"ui-controlgroup-data",e||t[n]("instance")),l.push(i[0]))})))}),this.childWidgets=r(r.uniqueSort(l)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=r(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){t=this._buildSimpleOptions(t,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var o={};return r.each(i,function(t){var e=n.options.classes[t]||"",e=String.prototype.trim.call(e.replace(s,""));o[t]=(e+" "+i[t]).replace(/\s+/g," ")}),o},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var o,s=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),o=this.childWidgets,(o=this.options.onlyVisible?o.filter(":visible"):o).length&&(r.each(["first","last"],function(t,e){var i,n=o[e]().data("ui-controlgroup-data");n&&s["_"+n.widgetName+"Options"]?((i=s["_"+n.widgetName+"Options"](1===o.length?"only":e)).classes=s._resolveClassesValues(i.classes,n),n.element[n.widgetName](i)):s._updateCornerClass(o[e](),e)}),this._callChildMethod("refresh"))}})});

View File

@ -1,4 +1,4 @@
/*! jQuery UI - v1.13.0 - 2021-10-07 /*! jQuery UI - v1.13.1 - 2022-01-20
* http://jqueryui.com * 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 * 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 */ * Copyright jQuery Foundation and other contributors; Licensed */
@ -20,11 +20,11 @@
// Source: version.js // Source: version.js
$.ui = $.ui || {}; $.ui = $.ui || {};
$.ui.version = "1.13.0"; $.ui.version = "1.13.1";
// Source: data.js // Source: data.js
/*! /*!
* jQuery UI :data 1.13.0 * jQuery UI :data 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -53,7 +53,7 @@ $.extend( $.expr.pseudos, {
// Source: disable-selection.js // Source: disable-selection.js
/*! /*!
* jQuery UI Disable Selection 1.13.0 * jQuery UI Disable Selection 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -87,7 +87,7 @@ $.fn.extend( {
// Source: focusable.js // Source: focusable.js
/*! /*!
* jQuery UI Focusable 1.13.0 * jQuery UI Focusable 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -155,7 +155,6 @@ $.extend( $.expr.pseudos, {
} }
} ); } );
// Source: form.js
// Support: IE8 Only // Support: IE8 Only
// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop // 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. // with a string, so we need to find the proper form.
@ -165,7 +164,7 @@ $.fn._form = function() {
// Source: form-reset-mixin.js // Source: form-reset-mixin.js
/*! /*!
* jQuery UI Form Reset Mixin 1.13.0 * jQuery UI Form Reset Mixin 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -304,7 +303,7 @@ if ( !$.fn.even || !$.fn.odd ) {
// Source: keycode.js // Source: keycode.js
/*! /*!
* jQuery UI Keycode 1.13.0 * jQuery UI Keycode 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -338,7 +337,7 @@ $.ui.keyCode = {
// Source: labels.js // Source: labels.js
/*! /*!
* jQuery UI Labels 1.13.0 * jQuery UI Labels 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -410,7 +409,7 @@ $.ui.plugin = {
} }
if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode ||
instance.element[ 0 ].parentNode.nodeType === 11 ) ) { instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
return; return;
} }
@ -424,7 +423,7 @@ $.ui.plugin = {
// Source: position.js // Source: position.js
/*! /*!
* jQuery UI Position 1.13.0 * jQuery UI Position 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -957,7 +956,7 @@ $.ui.safeBlur = function( element ) {
// Source: scroll-parent.js // Source: scroll-parent.js
/*! /*!
* jQuery UI Scroll Parent 1.13.0 * jQuery UI Scroll Parent 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -990,7 +989,7 @@ $.fn.scrollParent = function( includeHidden ) {
// Source: tabbable.js // Source: tabbable.js
/*! /*!
* jQuery UI Tabbable 1.13.0 * jQuery UI Tabbable 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -1013,7 +1012,7 @@ $.extend( $.expr.pseudos, {
// Source: unique-id.js // Source: unique-id.js
/*! /*!
* jQuery UI Unique ID 1.13.0 * jQuery UI Unique ID 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -1050,7 +1049,7 @@ $.fn.extend( {
// Source: widget.js // Source: widget.js
/*! /*!
* jQuery UI Widget 1.13.0 * jQuery UI Widget 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -1113,7 +1112,7 @@ $.widget = function( name, base, prototype ) {
constructor = $[ namespace ][ name ] = function( options, element ) { constructor = $[ namespace ][ name ] = function( options, element ) {
// Allow instantiation without "new" keyword // Allow instantiation without "new" keyword
if ( !this._createWidget ) { if ( !this || !this._createWidget ) {
return new constructor( options, element ); return new constructor( options, element );
} }
@ -1233,7 +1232,7 @@ $.widget.extend = function( target ) {
// Don't extend strings, arrays, etc. with objects // Don't extend strings, arrays, etc. with objects
$.widget.extend( {}, value ); $.widget.extend( {}, value );
// Copy everything else by reference // Copy everything else by reference
} else { } else {
target[ key ] = value; target[ key ] = value;
} }
@ -1482,8 +1481,8 @@ $.Widget.prototype = {
for ( classKey in value ) { for ( classKey in value ) {
currentElements = this.classesElementLookup[ classKey ]; currentElements = this.classesElementLookup[ classKey ];
if ( value[ classKey ] === this.options.classes[ classKey ] || if ( value[ classKey ] === this.options.classes[ classKey ] ||
!currentElements || !currentElements ||
!currentElements.length ) { !currentElements.length ) {
continue; continue;
} }
@ -1535,6 +1534,8 @@ $.Widget.prototype = {
}, options ); }, options );
function bindRemoveEvent() { function bindRemoveEvent() {
var nodesToBind = [];
options.element.each( function( _, element ) { options.element.each( function( _, element ) {
var isTracked = $.map( that.classesElementLookup, function( elements ) { var isTracked = $.map( that.classesElementLookup, function( elements ) {
return elements; return elements;
@ -1544,11 +1545,13 @@ $.Widget.prototype = {
} ); } );
if ( !isTracked ) { if ( !isTracked ) {
that._on( $( element ), { nodesToBind.push( element );
remove: "_untrackClassesElement"
} );
} }
} ); } );
that._on( $( nodesToBind ), {
remove: "_untrackClassesElement"
} );
} }
function processClassString( classes, checkOption ) { function processClassString( classes, checkOption ) {
@ -1639,7 +1642,7 @@ $.Widget.prototype = {
// - disabled as an array instead of boolean // - disabled as an array instead of boolean
// - disabled class as method for disabling individual parts // - disabled class as method for disabling individual parts
if ( !suppressDisabledCheck && if ( !suppressDisabledCheck &&
( instance.options.disabled === true || ( instance.options.disabled === true ||
$( this ).hasClass( "ui-state-disabled" ) ) ) { $( this ).hasClass( "ui-state-disabled" ) ) ) {
return; return;
} }

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
/* eslint-disable max-len, camelcase */ /* eslint-disable max-len, camelcase */
/*! /*!
* jQuery UI Datepicker 1.13.0 * jQuery UI Datepicker 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -35,7 +35,7 @@
} )( function( $ ) { } )( function( $ ) {
"use strict"; "use strict";
$.extend( $.ui, { datepicker: { version: "1.13.0" } } ); $.extend( $.ui, { datepicker: { version: "1.13.1" } } );
var datepicker_instActive; var datepicker_instActive;
@ -107,40 +107,40 @@ function Datepicker() {
}; };
this._defaults = { // Global defaults for all the date picker instances this._defaults = { // Global defaults for all the date picker instances
showOn: "focus", // "focus" for popup on focus, 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 showAnim: "fadeIn", // Name of jQuery animation for popup
showOptions: {}, // Options for enhanced animations showOptions: {}, // Options for enhanced animations
defaultDate: null, // Used when field is blank: actual date, 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 appendText: "", // Display text following the input box, e.g. showing the format
buttonText: "...", // Text for trigger button buttonText: "...", // Text for trigger button
buttonImage: "", // URL for trigger button image buttonImage: "", // URL for trigger button image
buttonImageOnly: false, // True if the image appears alone, false if it appears on a button buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
hideIfNoPrevNext: false, // True to hide next/previous month links 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 navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
gotoCurrent: false, // True if today link goes back to current selection instead 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 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 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, 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 // 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) // (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 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 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 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, 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, shortYearCutoff: "+10", // Short year values < this are in the current century,
// > this are in the previous century, // > this are in the previous century,
// string value starting with "+" for current year + value // string value starting with "+" for current year + value
minDate: null, // The earliest selectable date, or null for no limit minDate: null, // The earliest selectable date, or null for no limit
maxDate: null, // The latest selectable date, or null for no limit maxDate: null, // The latest selectable date, or null for no limit
duration: "fast", // Duration of display/closure duration: "fast", // Duration of display/closure
beforeShowDay: null, // Function that takes a date and returns an array with 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 "", // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
// [2] = cell title (optional), e.g. $.datepicker.noWeekends // [2] = cell title (optional), e.g. $.datepicker.noWeekends
beforeShow: null, // Function that takes an input field and 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 onSelect: null, // Define a callback function when a date is selected
onChangeMonthYear: null, // Define a callback function when the month or year is changed onChangeMonthYear: null, // Define a callback function when the month or year is changed
onClose: null, // Define a callback function when the datepicker is closed 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 drawMonth: 0, drawYear: 0, // month being drawn
inline: inline, // is datepicker inline or not inline: inline, // is datepicker inline or not
dpDiv: ( !inline ? this.dpDiv : // presentation div dpDiv: ( !inline ? this.dpDiv : // presentation div
datepicker_bindHover( $( "<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) ) ) }; datepicker_bindHover( $( "<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) ) ) };
}, },
/* Attach the date picker to an input field. */ /* Attach the date picker to an input field. */
@ -226,7 +226,7 @@ $.extend( Datepicker.prototype, {
} }
this._attachments( input, inst ); this._attachments( input, inst );
input.addClass( this.markerClassName ).on( "keydown", this._doKeyDown ). 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 ); this._autoSize( inst );
$.data( target, "datepicker", inst ); $.data( target, "datepicker", inst );
@ -426,10 +426,10 @@ $.extend( Datepicker.prototype, {
inst.append.remove(); inst.append.remove();
inst.trigger.remove(); inst.trigger.remove();
$target.removeClass( this.markerClassName ). $target.removeClass( this.markerClassName ).
off( "focus", this._showDatepicker ). off( "focus", this._showDatepicker ).
off( "keydown", this._doKeyDown ). off( "keydown", this._doKeyDown ).
off( "keypress", this._doKeyPress ). off( "keypress", this._doKeyPress ).
off( "keyup", this._doKeyUp ); off( "keyup", this._doKeyUp );
} else if ( nodeName === "div" || nodeName === "span" ) { } else if ( nodeName === "div" || nodeName === "span" ) {
$target.removeClass( this.markerClassName ).empty(); $target.removeClass( this.markerClassName ).empty();
} }
@ -456,15 +456,15 @@ $.extend( Datepicker.prototype, {
if ( nodeName === "input" ) { if ( nodeName === "input" ) {
target.disabled = false; target.disabled = false;
inst.trigger.filter( "button" ). inst.trigger.filter( "button" ).
each( function() { each( function() {
this.disabled = false; this.disabled = false;
} ).end(). } ).end().
filter( "img" ).css( { opacity: "1.0", cursor: "" } ); filter( "img" ).css( { opacity: "1.0", cursor: "" } );
} else if ( nodeName === "div" || nodeName === "span" ) { } else if ( nodeName === "div" || nodeName === "span" ) {
inline = $target.children( "." + this._inlineClass ); inline = $target.children( "." + this._inlineClass );
inline.children().removeClass( "ui-state-disabled" ); inline.children().removeClass( "ui-state-disabled" );
inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ). inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ).
prop( "disabled", false ); prop( "disabled", false );
} }
this._disabledInputs = $.map( this._disabledInputs, this._disabledInputs = $.map( this._disabledInputs,
@ -490,15 +490,15 @@ $.extend( Datepicker.prototype, {
if ( nodeName === "input" ) { if ( nodeName === "input" ) {
target.disabled = true; target.disabled = true;
inst.trigger.filter( "button" ). inst.trigger.filter( "button" ).
each( function() { each( function() {
this.disabled = true; this.disabled = true;
} ).end(). } ).end().
filter( "img" ).css( { opacity: "0.5", cursor: "default" } ); filter( "img" ).css( { opacity: "0.5", cursor: "default" } );
} else if ( nodeName === "div" || nodeName === "span" ) { } else if ( nodeName === "div" || nodeName === "span" ) {
inline = $target.children( "." + this._inlineClass ); inline = $target.children( "." + this._inlineClass );
inline.children().addClass( "ui-state-disabled" ); inline.children().addClass( "ui-state-disabled" );
inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ). inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ).
prop( "disabled", true ); prop( "disabled", true );
} }
this._disabledInputs = $.map( this._disabledInputs, this._disabledInputs = $.map( this._disabledInputs,
@ -554,7 +554,7 @@ $.extend( Datepicker.prototype, {
if ( arguments.length === 2 && typeof name === "string" ) { if ( arguments.length === 2 && typeof name === "string" ) {
return ( name === "defaults" ? $.extend( {}, $.datepicker._defaults ) : return ( name === "defaults" ? $.extend( {}, $.datepicker._defaults ) :
( inst ? ( name === "all" ? $.extend( {}, inst.settings ) : ( inst ? ( name === "all" ? $.extend( {}, inst.settings ) :
this._get( inst, name ) ) : null ) ); this._get( inst, name ) ) : null ) );
} }
settings = name || {}; settings = name || {};
@ -647,83 +647,83 @@ $.extend( Datepicker.prototype, {
if ( $.datepicker._datepickerShowing ) { if ( $.datepicker._datepickerShowing ) {
switch ( event.keyCode ) { switch ( event.keyCode ) {
case 9: $.datepicker._hideDatepicker(); case 9: $.datepicker._hideDatepicker();
handled = false; handled = false;
break; // hide on tab out break; // hide on tab out
case 13: sel = $( "td." + $.datepicker._dayOverClass + ":not(." + case 13: sel = $( "td." + $.datepicker._dayOverClass + ":not(." +
$.datepicker._currentClass + ")", inst.dpDiv ); $.datepicker._currentClass + ")", inst.dpDiv );
if ( sel[ 0 ] ) { if ( sel[ 0 ] ) {
$.datepicker._selectDay( event.target, inst.selectedMonth, inst.selectedYear, sel[ 0 ] ); $.datepicker._selectDay( event.target, inst.selectedMonth, inst.selectedYear, sel[ 0 ] );
} }
onSelect = $.datepicker._get( inst, "onSelect" ); onSelect = $.datepicker._get( inst, "onSelect" );
if ( onSelect ) { if ( onSelect ) {
dateStr = $.datepicker._formatDate( inst ); dateStr = $.datepicker._formatDate( inst );
// Trigger custom callback // Trigger custom callback
onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] ); onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] );
} else { } else {
$.datepicker._hideDatepicker(); $.datepicker._hideDatepicker();
} }
return false; // don't submit the form return false; // don't submit the form
case 27: $.datepicker._hideDatepicker(); case 27: $.datepicker._hideDatepicker();
break; // hide on escape break; // hide on escape
case 33: $.datepicker._adjustDate( event.target, ( event.ctrlKey ? 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
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
case 35: if ( event.ctrlKey || event.metaKey ) {
$.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
case 37: if ( 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, "stepBigMonths" ) :
-$.datepicker._get( inst, "stepMonths" ) ), "M" ); -$.datepicker._get( inst, "stepMonths" ) ), "M" );
break; // previous month/year on page up/+ ctrl }
case 34: $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
// 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
case 39: if ( 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, "stepBigMonths" ) :
+$.datepicker._get( inst, "stepMonths" ) ), "M" ); +$.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
case 36: if ( event.ctrlKey || event.metaKey ) {
$.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;
// -1 day on ctrl or command +left // next month/year on alt +right
if ( event.originalEvent.altKey ) { break;
$.datepicker._adjustDate( event.target, ( event.ctrlKey ?
-$.datepicker._get( inst, "stepBigMonths" ) :
-$.datepicker._get( inst, "stepMonths" ) ), "M" );
}
// 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
case 39: if ( 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" );
}
// next month/year on alt +right
break;
case 40: if ( event.ctrlKey || event.metaKey ) { case 40: if ( event.ctrlKey || event.metaKey ) {
$.datepicker._adjustDate( event.target, +7, "D" ); $.datepicker._adjustDate( event.target, +7, "D" );
} }
handled = event.ctrlKey || event.metaKey; handled = event.ctrlKey || event.metaKey;
break; // +1 week on ctrl or command +down break; // +1 week on ctrl or command +down
default: handled = false; default: handled = false;
} }
} else if ( event.keyCode === 36 && event.ctrlKey ) { // display the date picker on ctrl+home } 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 // and adjust position before showing
offset = $.datepicker._checkOffset( inst, offset, isFixed ); offset = $.datepicker._checkOffset( inst, offset, isFixed );
inst.dpDiv.css( { position: ( $.datepicker._inDialog && $.blockUI ? 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" } ); left: offset.left + "px", top: offset.top + "px" } );
if ( !inst.inline ) { if ( !inst.inline ) {
@ -883,9 +883,9 @@ $.extend( Datepicker.prototype, {
inst.dpDiv.addClass( "ui-datepicker-multi-" + cols ).css( "width", ( width * cols ) + "em" ); inst.dpDiv.addClass( "ui-datepicker-multi-" + cols ).css( "width", ( width * cols ) + "em" );
} }
inst.dpDiv[ ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ? "add" : "remove" ) + 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" ) + 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 ) ) { if ( inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
inst.input.trigger( "focus" ); inst.input.trigger( "focus" );
@ -1020,7 +1020,7 @@ $.extend( Datepicker.prototype, {
!$target.closest( "." + $.datepicker._triggerClass ).length && !$target.closest( "." + $.datepicker._triggerClass ).length &&
$.datepicker._datepickerShowing && !( $.datepicker._inDialog && $.blockUI ) ) ) || $.datepicker._datepickerShowing && !( $.datepicker._inDialog && $.blockUI ) ) ) ||
( $target.hasClass( $.datepicker.markerClassName ) && $.datepicker._curInst !== inst ) ) { ( $target.hasClass( $.datepicker.markerClassName ) && $.datepicker._curInst !== inst ) ) {
$.datepicker._hideDatepicker(); $.datepicker._hideDatepicker();
} }
}, },
@ -1062,8 +1062,8 @@ $.extend( Datepicker.prototype, {
inst = this._getInst( target[ 0 ] ); inst = this._getInst( target[ 0 ] );
inst[ "selected" + ( period === "M" ? "Month" : "Year" ) ] = inst[ "selected" + ( period === "M" ? "Month" : "Year" ) ] =
inst[ "draw" + ( period === "M" ? "Month" : "Year" ) ] = inst[ "draw" + ( period === "M" ? "Month" : "Year" ) ] =
parseInt( select.options[ select.selectedIndex ].value, 10 ); parseInt( select.options[ select.selectedIndex ].value, 10 );
this._notifyChange( inst ); this._notifyChange( inst );
this._adjustDate( target ); this._adjustDate( target );
@ -1214,7 +1214,7 @@ $.extend( Datepicker.prototype, {
getNumber = function( match ) { getNumber = function( match ) {
var isDoubled = lookAhead( match ), var isDoubled = lookAhead( match ),
size = ( match === "@" ? 14 : ( match === "!" ? 20 : 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 ), minSize = ( match === "y" ? size : 1 ),
digits = new RegExp( "^\\d{" + minSize + "," + size + "}" ), digits = new RegExp( "^\\d{" + minSize + "," + size + "}" ),
num = value.substring( iValue ).match( digits ); num = value.substring( iValue ).match( digits );
@ -1577,7 +1577,7 @@ $.extend( Datepicker.prototype, {
} }
var date = ( offset.toLowerCase().match( /^c/ ) ? var date = ( offset.toLowerCase().match( /^c/ ) ?
$.datepicker._getDate( inst ) : null ) || new Date(), $.datepicker._getDate( inst ) : null ) || new Date(),
year = date.getFullYear(), year = date.getFullYear(),
month = date.getMonth(), month = date.getMonth(),
day = date.getDate(), day = date.getDate(),
@ -1654,8 +1654,8 @@ $.extend( Datepicker.prototype, {
_getDate: function( inst ) { _getDate: function( inst ) {
var startDate = ( !inst.currentYear || ( inst.input && inst.input.val() === "" ) ? null : var startDate = ( !inst.currentYear || ( inst.input && inst.input.val() === "" ) ? null :
this._daylightSavingAdjust( new Date( this._daylightSavingAdjust( new Date(
inst.currentYear, inst.currentMonth, inst.currentDay ) ) ); inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
return startDate; return startDate;
}, },
/* Attach the onxxx handlers. These are declared statically so /* 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|left/.test( cornerClass ) && row === 0 ? ( isRTL ? next : prev ) : "" ) +
( /all|right/.test( cornerClass ) && row === 0 ? ( isRTL ? prev : next ) : "" ) + ( /all|right/.test( cornerClass ) && row === 0 ? ( isRTL ? prev : next ) : "" ) +
this._generateMonthYearHeader( inst, drawMonth, drawYear, minDate, maxDate, 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
"</div><table class='ui-datepicker-calendar'><thead>" + "</div><table class='ui-datepicker-calendar'><thead>" +
"<tr>"; "<tr>";
thead = ( showWeek ? "<th class='ui-datepicker-week-col'>" + this._get( inst, "weekHeader" ) + "</th>" : "" ); thead = ( showWeek ? "<th class='ui-datepicker-week-col'>" + this._get( inst, "weekHeader" ) + "</th>" : "" );
@ -1917,22 +1917,22 @@ $.extend( Datepicker.prototype, {
( ( printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent ) || // user pressed key ( ( printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent ) || // user pressed key
( defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime() ) ? ( defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime() ) ?
// or defaultDate is current printedDate and defaultDate is selectedDate // or defaultDate is current printedDate and defaultDate is selectedDate
" " + this._dayOverClass : "" ) + // highlight selected day " " + this._dayOverClass : "" ) + // highlight selected day
( unselectable ? " " + this._unselectableClass + " ui-state-disabled" : "" ) + // highlight unselectable days ( unselectable ? " " + this._unselectableClass + " ui-state-disabled" : "" ) + // highlight unselectable days
( otherMonth && !showOtherMonths ? "" : " " + daySettings[ 1 ] + // highlight custom dates ( otherMonth && !showOtherMonths ? "" : " " + daySettings[ 1 ] + // highlight custom dates
( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day ( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day
( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different) ( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different)
( ( !otherMonth || showOtherMonths ) && daySettings[ 2 ] ? " title='" + daySettings[ 2 ].replace( /'/g, "&#39;" ) + "'" : "" ) + // cell title ( ( !otherMonth || showOtherMonths ) && daySettings[ 2 ] ? " title='" + daySettings[ 2 ].replace( /'/g, "&#39;" ) + "'" : "" ) + // cell title
( unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'" ) + ">" + // actions ( unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'" ) + ">" + // actions
( otherMonth && !showOtherMonths ? "&#xa0;" : // display for other months ( otherMonth && !showOtherMonths ? "&#xa0;" : // display for other months
( unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" + ( unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +
( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) + ( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) +
( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day ( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day
( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months ( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months
"' href='#' aria-current='" + ( printDate.getTime() === currentDate.getTime() ? "true" : "false" ) + // mark date as selected for screen reader "' href='#' aria-current='" + ( printDate.getTime() === currentDate.getTime() ? "true" : "false" ) + // mark date as selected for screen reader
"' data-date='" + printDate.getDate() + // store date as data "' data-date='" + printDate.getDate() + // store date as data
"'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date "'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date
printDate.setDate( printDate.getDate() + 1 ); printDate.setDate( printDate.getDate() + 1 );
printDate = this._daylightSavingAdjust( printDate ); printDate = this._daylightSavingAdjust( printDate );
} }
@ -1944,7 +1944,7 @@ $.extend( Datepicker.prototype, {
drawYear++; drawYear++;
} }
calender += "</tbody></table>" + ( isMultiMonth ? "</div>" + calender += "</tbody></table>" + ( isMultiMonth ? "</div>" +
( ( numMonths[ 0 ] > 0 && col === numMonths[ 1 ] - 1 ) ? "<div class='ui-datepicker-row-break'></div>" : "" ) : "" ); ( ( numMonths[ 0 ] > 0 && col === numMonths[ 1 ] - 1 ) ? "<div class='ui-datepicker-row-break'></div>" : "" ) : "" );
group += calender; group += calender;
} }
html += group; html += group;
@ -1956,7 +1956,7 @@ $.extend( Datepicker.prototype, {
/* Generate the month and year header. */ /* Generate the month and year header. */
_generateMonthYearHeader: function( inst, drawMonth, drawYear, minDate, maxDate, _generateMonthYearHeader: function( inst, drawMonth, drawYear, minDate, maxDate,
secondary, monthNames, monthNamesShort ) { secondary, monthNames, monthNamesShort ) {
var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear, var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,
changeMonth = this._get( inst, "changeMonth" ), changeMonth = this._get( inst, "changeMonth" ),
@ -2001,7 +2001,7 @@ $.extend( Datepicker.prototype, {
determineYear = function( value ) { determineYear = function( value ) {
var year = ( value.match( /c[+\-].*/ ) ? drawYear + parseInt( value.substring( 1 ), 10 ) : var year = ( value.match( /c[+\-].*/ ) ? drawYear + parseInt( value.substring( 1 ), 10 ) :
( value.match( /[+\-].*/ ) ? thisYear + parseInt( value, 10 ) : ( value.match( /[+\-].*/ ) ? thisYear + parseInt( value, 10 ) :
parseInt( value, 10 ) ) ); parseInt( value, 10 ) ) );
return ( isNaN( year ) ? thisYear : year ); return ( isNaN( year ) ? thisYear : year );
}; };
year = determineYear( years[ 0 ] ); year = determineYear( years[ 0 ] );
@ -2086,7 +2086,7 @@ $.extend( Datepicker.prototype, {
_canAdjustMonth: function( inst, offset, curYear, curMonth ) { _canAdjustMonth: function( inst, offset, curYear, curMonth ) {
var numMonths = this._getNumberOfMonths( inst ), var numMonths = this._getNumberOfMonths( inst ),
date = this._daylightSavingAdjust( new Date( curYear, 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 ) { if ( offset < 0 ) {
date.setDate( this._getDaysInMonth( date.getFullYear(), date.getMonth() ) ); date.setDate( this._getDaysInMonth( date.getFullYear(), date.getMonth() ) );
@ -2102,18 +2102,18 @@ $.extend( Datepicker.prototype, {
minYear = null, minYear = null,
maxYear = null, maxYear = null,
years = this._get( inst, "yearRange" ); years = this._get( inst, "yearRange" );
if ( years ) { if ( years ) {
yearSplit = years.split( ":" ); yearSplit = years.split( ":" );
currentYear = new Date().getFullYear(); currentYear = new Date().getFullYear();
minYear = parseInt( yearSplit[ 0 ], 10 ); minYear = parseInt( yearSplit[ 0 ], 10 );
maxYear = parseInt( yearSplit[ 1 ], 10 ); maxYear = parseInt( yearSplit[ 1 ], 10 );
if ( yearSplit[ 0 ].match( /[+\-].*/ ) ) { if ( yearSplit[ 0 ].match( /[+\-].*/ ) ) {
minYear += currentYear; minYear += currentYear;
}
if ( yearSplit[ 1 ].match( /[+\-].*/ ) ) {
maxYear += currentYear;
}
} }
if ( yearSplit[ 1 ].match( /[+\-].*/ ) ) {
maxYear += currentYear;
}
}
return ( ( !minDate || date.getTime() >= minDate.getTime() ) && return ( ( !minDate || date.getTime() >= minDate.getTime() ) &&
( !maxDate || date.getTime() <= maxDate.getTime() ) && ( !maxDate || date.getTime() <= maxDate.getTime() ) &&
@ -2139,7 +2139,7 @@ $.extend( Datepicker.prototype, {
inst.currentYear = inst.selectedYear; inst.currentYear = inst.selectedYear;
} }
var date = ( day ? ( typeof day === "object" ? day : 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 ) ) ); this._daylightSavingAdjust( new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
return this.formatDate( this._get( inst, "dateFormat" ), date, this._getFormatConfig( inst ) ); return this.formatDate( this._get( inst, "dateFormat" ), date, this._getFormatConfig( inst ) );
} }
@ -2153,14 +2153,14 @@ $.extend( Datepicker.prototype, {
function datepicker_bindHover( dpDiv ) { function datepicker_bindHover( dpDiv ) {
var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a"; var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
return dpDiv.on( "mouseout", selector, function() { return dpDiv.on( "mouseout", selector, function() {
$( this ).removeClass( "ui-state-hover" ); $( this ).removeClass( "ui-state-hover" );
if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) { if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) {
$( this ).removeClass( "ui-datepicker-prev-hover" ); $( this ).removeClass( "ui-datepicker-prev-hover" );
} }
if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) { if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) {
$( this ).removeClass( "ui-datepicker-next-hover" ); $( this ).removeClass( "ui-datepicker-next-hover" );
} }
} ) } )
.on( "mouseover", selector, datepicker_handleMouseover ); .on( "mouseover", selector, datepicker_handleMouseover );
} }
@ -2213,11 +2213,11 @@ $.fn.datepicker = function( options ) {
var otherArgs = Array.prototype.slice.call( arguments, 1 ); var otherArgs = Array.prototype.slice.call( arguments, 1 );
if ( typeof options === "string" && ( options === "isDisabled" || options === "getDate" || options === "widget" ) ) { if ( typeof options === "string" && ( options === "isDisabled" || options === "getDate" || options === "widget" ) ) {
return $.datepicker[ "_" + options + "Datepicker" ]. 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" ) { if ( options === "option" && arguments.length === 2 && typeof arguments[ 1 ] === "string" ) {
return $.datepicker[ "_" + options + "Datepicker" ]. return $.datepicker[ "_" + options + "Datepicker" ].
apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) ); apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
} }
return this.each( function() { return this.each( function() {
if ( typeof options === "string" ) { if ( typeof options === "string" ) {
@ -2232,7 +2232,7 @@ $.fn.datepicker = function( options ) {
$.datepicker = new Datepicker(); // singleton instance $.datepicker = new Datepicker(); // singleton instance
$.datepicker.initialized = false; $.datepicker.initialized = false;
$.datepicker.uuid = new Date().getTime(); $.datepicker.uuid = new Date().getTime();
$.datepicker.version = "1.13.0"; $.datepicker.version = "1.13.1";
return $.datepicker; return $.datepicker;

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Dialog 1.13.0 * jQuery UI Dialog 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -39,7 +39,7 @@
"use strict"; "use strict";
$.widget( "ui.dialog", { $.widget( "ui.dialog", {
version: "1.13.0", version: "1.13.1",
options: { options: {
appendTo: "body", appendTo: "body",
autoOpen: true, autoOpen: true,
@ -354,7 +354,7 @@ $.widget( "ui.dialog", {
this._on( this.uiDialog, { this._on( this.uiDialog, {
keydown: function( event ) { keydown: function( event ) {
if ( this.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode && if ( this.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode &&
event.keyCode === $.ui.keyCode.ESCAPE ) { event.keyCode === $.ui.keyCode.ESCAPE ) {
event.preventDefault(); event.preventDefault();
this.close( event ); this.close( event );
return; return;
@ -369,13 +369,13 @@ $.widget( "ui.dialog", {
last = tabbables.last(); last = tabbables.last();
if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) && if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) &&
!event.shiftKey ) { !event.shiftKey ) {
this._delay( function() { this._delay( function() {
first.trigger( "focus" ); first.trigger( "focus" );
} ); } );
event.preventDefault(); event.preventDefault();
} else if ( ( event.target === first[ 0 ] || } else if ( ( event.target === first[ 0 ] ||
event.target === this.uiDialog[ 0 ] ) && event.shiftKey ) { event.target === this.uiDialog[ 0 ] ) && event.shiftKey ) {
this._delay( function() { this._delay( function() {
last.trigger( "focus" ); last.trigger( "focus" );
} ); } );

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Draggable 1.13.0 * jQuery UI Draggable 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -34,7 +34,7 @@
"use strict"; "use strict";
$.widget( "ui.draggable", $.ui.mouse, { $.widget( "ui.draggable", $.ui.mouse, {
version: "1.13.0", version: "1.13.1",
widgetEventPrefix: "drag", widgetEventPrefix: "drag",
options: { options: {
addClasses: true, addClasses: true,
@ -102,7 +102,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
// Among others, prevent a drag on a resizable-handle // Among others, prevent a drag on a resizable-handle
if ( this.helper || o.disabled || if ( this.helper || o.disabled ||
$( event.target ).closest( ".ui-resizable-handle" ).length > 0 ) { $( event.target ).closest( ".ui-resizable-handle" ).length > 0 ) {
return false; return false;
} }
@ -185,8 +185,8 @@ $.widget( "ui.draggable", $.ui.mouse, {
this.scrollParent = this.helper.scrollParent( true ); this.scrollParent = this.helper.scrollParent( true );
this.offsetParent = this.helper.offsetParent(); this.offsetParent = this.helper.offsetParent();
this.hasFixedAncestor = this.helper.parents().filter( function() { this.hasFixedAncestor = this.helper.parents().filter( function() {
return $( this ).css( "position" ) === "fixed"; return $( this ).css( "position" ) === "fixed";
} ).length > 0; } ).length > 0;
//The element's absolute position on the page minus margins //The element's absolute position on the page minus margins
this.positionAbs = this.element.offset(); this.positionAbs = this.element.offset();
@ -294,8 +294,8 @@ $.widget( "ui.draggable", $.ui.mouse, {
} }
if ( ( this.options.revert === "invalid" && !dropped ) || if ( ( this.options.revert === "invalid" && !dropped ) ||
( this.options.revert === "valid" && dropped ) || ( this.options.revert === "valid" && dropped ) ||
this.options.revert === true || ( typeof this.options.revert === "function" && this.options.revert === true || ( typeof this.options.revert === "function" &&
this.options.revert.call( this.element, dropped ) ) this.options.revert.call( this.element, dropped ) )
) { ) {
$( this.helper ).animate( $( this.helper ).animate(
@ -388,7 +388,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
} }
if ( helper[ 0 ] !== this.element[ 0 ] && if ( helper[ 0 ] !== this.element[ 0 ] &&
!( /(fixed|absolute)/ ).test( helper.css( "position" ) ) ) { !( /(fixed|absolute)/ ).test( helper.css( "position" ) ) ) {
helper.css( "position", "absolute" ); 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 // the document, which means that the scroll is included in the initial calculation of the
// offset of the parent, and never recalculated upon drag // offset of the parent, and never recalculated upon drag
if ( this.cssPosition === "absolute" && this.scrollParent[ 0 ] !== document && 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.left += this.scrollParent.scrollLeft();
po.top += this.scrollParent.scrollTop(); 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 ).scrollLeft() - this.offset.relative.left - this.offset.parent.left,
$( window ).scrollTop() - this.offset.relative.top - this.offset.parent.top, $( window ).scrollTop() - this.offset.relative.top - this.offset.parent.top,
$( window ).scrollLeft() + $( window ).width() - $( window ).scrollLeft() + $( window ).width() -
this.helperProportions.width - this.margins.left, this.helperProportions.width - this.margins.left,
$( window ).scrollTop() + $( window ).scrollTop() +
( $( window ).height() || document.body.parentNode.scrollHeight ) - ( $( window ).height() || document.body.parentNode.scrollHeight ) -
this.helperProportions.height - this.margins.top this.helperProportions.height - this.margins.top
]; ];
return; return;
} }
@ -522,7 +522,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
0, 0,
$( document ).width() - this.helperProportions.width - this.margins.left, $( document ).width() - this.helperProportions.width - this.margins.left,
( $( document ).height() || document.body.parentNode.scrollHeight ) - ( $( document ).height() || document.body.parentNode.scrollHeight ) -
this.helperProportions.height - this.margins.top this.helperProportions.height - this.margins.top
]; ];
return; return;
} }
@ -547,21 +547,21 @@ $.widget( "ui.draggable", $.ui.mouse, {
this.containment = [ this.containment = [
( parseInt( c.css( "borderLeftWidth" ), 10 ) || 0 ) + ( 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( "borderTopWidth" ), 10 ) || 0 ) +
( parseInt( c.css( "paddingTop" ), 10 ) || 0 ), ( parseInt( c.css( "paddingTop" ), 10 ) || 0 ),
( isUserScrollable ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) - ( isUserScrollable ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) -
( parseInt( c.css( "borderRightWidth" ), 10 ) || 0 ) - ( parseInt( c.css( "borderRightWidth" ), 10 ) || 0 ) -
( parseInt( c.css( "paddingRight" ), 10 ) || 0 ) - ( parseInt( c.css( "paddingRight" ), 10 ) || 0 ) -
this.helperProportions.width - this.helperProportions.width -
this.margins.left - this.margins.left -
this.margins.right, this.margins.right,
( isUserScrollable ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) - ( isUserScrollable ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) -
( parseInt( c.css( "borderBottomWidth" ), 10 ) || 0 ) - ( parseInt( c.css( "borderBottomWidth" ), 10 ) || 0 ) -
( parseInt( c.css( "paddingBottom" ), 10 ) || 0 ) - ( parseInt( c.css( "paddingBottom" ), 10 ) || 0 ) -
this.helperProportions.height - this.helperProportions.height -
this.margins.top - this.margins.top -
this.margins.bottom this.margins.bottom
]; ];
this.relativeContainer = c; this.relativeContainer = c;
}, },
@ -666,18 +666,18 @@ $.widget( "ui.draggable", $.ui.mouse, {
this.originalPageY ) / o.grid[ 1 ] ) * o.grid[ 1 ] : this.originalPageY; this.originalPageY ) / o.grid[ 1 ] ) * o.grid[ 1 ] : this.originalPageY;
pageY = containment ? ( ( top - this.offset.click.top >= containment[ 1 ] || pageY = containment ? ( ( top - this.offset.click.top >= containment[ 1 ] ||
top - this.offset.click.top > containment[ 3 ] ) ? top - this.offset.click.top > containment[ 3 ] ) ?
top : top :
( ( top - this.offset.click.top >= containment[ 1 ] ) ? ( ( top - this.offset.click.top >= containment[ 1 ] ) ?
top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) : top; top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) : top;
left = o.grid[ 0 ] ? this.originalPageX + left = o.grid[ 0 ] ? this.originalPageX +
Math.round( ( pageX - this.originalPageX ) / o.grid[ 0 ] ) * o.grid[ 0 ] : Math.round( ( pageX - this.originalPageX ) / o.grid[ 0 ] ) * o.grid[ 0 ] :
this.originalPageX; this.originalPageX;
pageX = containment ? ( ( left - this.offset.click.left >= containment[ 0 ] || pageX = containment ? ( ( left - this.offset.click.left >= containment[ 0 ] ||
left - this.offset.click.left > containment[ 2 ] ) ? left - this.offset.click.left > containment[ 2 ] ) ?
left : left :
( ( left - this.offset.click.left >= containment[ 0 ] ) ? ( ( left - this.offset.click.left >= containment[ 0 ] ) ?
left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) : left; left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) : left;
} }
if ( o.axis === "y" ) { if ( o.axis === "y" ) {
@ -851,8 +851,8 @@ $.ui.plugin.add( "draggable", "connectToSortable", {
this.offset.click = draggable.offset.click; this.offset.click = draggable.offset.click;
if ( this !== sortable && if ( this !== sortable &&
this._intersectsWith( this.containerCache ) && this._intersectsWith( this.containerCache ) &&
$.contains( sortable.element[ 0 ], this.element[ 0 ] ) ) { $.contains( sortable.element[ 0 ], this.element[ 0 ] ) ) {
innermostIntersecting = false; innermostIntersecting = false;
} }
@ -1012,7 +1012,7 @@ $.ui.plugin.add( "draggable", "scroll", {
} }
if ( i.scrollParentNotHidden[ 0 ] !== i.document[ 0 ] && if ( i.scrollParentNotHidden[ 0 ] !== i.document[ 0 ] &&
i.scrollParentNotHidden[ 0 ].tagName !== "HTML" ) { i.scrollParentNotHidden[ 0 ].tagName !== "HTML" ) {
i.overflowOffset = i.scrollParentNotHidden.offset(); i.overflowOffset = i.scrollParentNotHidden.offset();
} }
}, },
@ -1026,7 +1026,7 @@ $.ui.plugin.add( "draggable", "scroll", {
if ( scrollParent !== document && scrollParent.tagName !== "HTML" ) { if ( scrollParent !== document && scrollParent.tagName !== "HTML" ) {
if ( !o.axis || o.axis !== "x" ) { if ( !o.axis || o.axis !== "x" ) {
if ( ( i.overflowOffset.top + scrollParent.offsetHeight ) - event.pageY < if ( ( i.overflowOffset.top + scrollParent.offsetHeight ) - event.pageY <
o.scrollSensitivity ) { o.scrollSensitivity ) {
scrollParent.scrollTop = scrolled = scrollParent.scrollTop + o.scrollSpeed; scrollParent.scrollTop = scrolled = scrollParent.scrollTop + o.scrollSpeed;
} else if ( event.pageY - i.overflowOffset.top < o.scrollSensitivity ) { } else if ( event.pageY - i.overflowOffset.top < o.scrollSensitivity ) {
scrollParent.scrollTop = scrolled = scrollParent.scrollTop - o.scrollSpeed; scrollParent.scrollTop = scrolled = scrollParent.scrollTop - o.scrollSpeed;
@ -1035,7 +1035,7 @@ $.ui.plugin.add( "draggable", "scroll", {
if ( !o.axis || o.axis !== "y" ) { if ( !o.axis || o.axis !== "y" ) {
if ( ( i.overflowOffset.left + scrollParent.offsetWidth ) - event.pageX < if ( ( i.overflowOffset.left + scrollParent.offsetWidth ) - event.pageX <
o.scrollSensitivity ) { o.scrollSensitivity ) {
scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft + o.scrollSpeed; scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft + o.scrollSpeed;
} else if ( event.pageX - i.overflowOffset.left < o.scrollSensitivity ) { } else if ( event.pageX - i.overflowOffset.left < o.scrollSensitivity ) {
scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft - o.scrollSpeed; scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft - o.scrollSpeed;
@ -1048,7 +1048,7 @@ $.ui.plugin.add( "draggable", "scroll", {
if ( event.pageY - $( document ).scrollTop() < o.scrollSensitivity ) { if ( event.pageY - $( document ).scrollTop() < o.scrollSensitivity ) {
scrolled = $( document ).scrollTop( $( document ).scrollTop() - o.scrollSpeed ); scrolled = $( document ).scrollTop( $( document ).scrollTop() - o.scrollSpeed );
} else if ( $( window ).height() - ( event.pageY - $( document ).scrollTop() ) < } else if ( $( window ).height() - ( event.pageY - $( document ).scrollTop() ) <
o.scrollSensitivity ) { o.scrollSensitivity ) {
scrolled = $( document ).scrollTop( $( document ).scrollTop() + o.scrollSpeed ); scrolled = $( document ).scrollTop( $( document ).scrollTop() + o.scrollSpeed );
} }
} }
@ -1059,7 +1059,7 @@ $.ui.plugin.add( "draggable", "scroll", {
$( document ).scrollLeft() - o.scrollSpeed $( document ).scrollLeft() - o.scrollSpeed
); );
} else if ( $( window ).width() - ( event.pageX - $( document ).scrollLeft() ) < } else if ( $( window ).width() - ( event.pageX - $( document ).scrollLeft() ) <
o.scrollSensitivity ) { o.scrollSensitivity ) {
scrolled = $( document ).scrollLeft( scrolled = $( document ).scrollLeft(
$( document ).scrollLeft() + o.scrollSpeed $( document ).scrollLeft() + o.scrollSpeed
); );
@ -1112,7 +1112,7 @@ $.ui.plugin.add( "draggable", "snap", {
b = t + inst.snapElements[ i ].height; b = t + inst.snapElements[ i ].height;
if ( x2 < l - d || x1 > r + d || y2 < t - d || y1 > b + d || 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 ) ) { inst.snapElements[ i ].item ) ) {
if ( inst.snapElements[ i ].snapping ) { if ( inst.snapElements[ i ].snapping ) {
if ( inst.options.snap.release ) { if ( inst.options.snap.release ) {

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Droppable 1.13.0 * jQuery UI Droppable 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -34,7 +34,7 @@
"use strict"; "use strict";
$.widget( "ui.droppable", { $.widget( "ui.droppable", {
version: "1.13.0", version: "1.13.1",
widgetEventPrefix: "drop", widgetEventPrefix: "drop",
options: { options: {
accept: "*", accept: "*",
@ -150,12 +150,12 @@ $.widget( "ui.droppable", {
// Bail if draggable and droppable are same element // Bail if draggable and droppable are same element
if ( !draggable || ( draggable.currentItem || if ( !draggable || ( draggable.currentItem ||
draggable.element )[ 0 ] === this.element[ 0 ] ) { draggable.element )[ 0 ] === this.element[ 0 ] ) {
return; return;
} }
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
draggable.element ) ) ) { draggable.element ) ) ) {
this._addHoverClass(); this._addHoverClass();
this._trigger( "over", event, this.ui( draggable ) ); this._trigger( "over", event, this.ui( draggable ) );
} }
@ -168,12 +168,12 @@ $.widget( "ui.droppable", {
// Bail if draggable and droppable are same element // Bail if draggable and droppable are same element
if ( !draggable || ( draggable.currentItem || if ( !draggable || ( draggable.currentItem ||
draggable.element )[ 0 ] === this.element[ 0 ] ) { draggable.element )[ 0 ] === this.element[ 0 ] ) {
return; return;
} }
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
draggable.element ) ) ) { draggable.element ) ) ) {
this._removeHoverClass(); this._removeHoverClass();
this._trigger( "out", event, this.ui( draggable ) ); this._trigger( "out", event, this.ui( draggable ) );
} }
@ -187,7 +187,7 @@ $.widget( "ui.droppable", {
// Bail if draggable and droppable are same element // Bail if draggable and droppable are same element
if ( !draggable || ( draggable.currentItem || if ( !draggable || ( draggable.currentItem ||
draggable.element )[ 0 ] === this.element[ 0 ] ) { draggable.element )[ 0 ] === this.element[ 0 ] ) {
return false; return false;
} }
@ -218,7 +218,7 @@ $.widget( "ui.droppable", {
} }
if ( this.accept.call( this.element[ 0 ], if ( this.accept.call( this.element[ 0 ],
( draggable.currentItem || draggable.element ) ) ) { ( draggable.currentItem || draggable.element ) ) ) {
this._removeActiveClass(); this._removeActiveClass();
this._removeHoverClass(); this._removeHoverClass();
@ -281,28 +281,28 @@ $.ui.intersect = ( function() {
b = t + droppable.proportions().height; b = t + droppable.proportions().height;
switch ( toleranceMode ) { switch ( toleranceMode ) {
case "fit": case "fit":
return ( l <= x1 && x2 <= r && t <= y1 && y2 <= b ); return ( l <= x1 && x2 <= r && t <= y1 && y2 <= b );
case "intersect": case "intersect":
return ( l < x1 + ( draggable.helperProportions.width / 2 ) && // Right Half return ( l < x1 + ( draggable.helperProportions.width / 2 ) && // Right Half
x2 - ( draggable.helperProportions.width / 2 ) < r && // Left Half x2 - ( draggable.helperProportions.width / 2 ) < r && // Left Half
t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half
y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half
case "pointer": case "pointer":
return isOverAxis( event.pageY, t, droppable.proportions().height ) && return isOverAxis( event.pageY, t, droppable.proportions().height ) &&
isOverAxis( event.pageX, l, droppable.proportions().width ); isOverAxis( event.pageX, l, droppable.proportions().width );
case "touch": case "touch":
return ( return (
( y1 >= t && y1 <= b ) || // Top edge touching ( y1 >= t && y1 <= b ) || // Top edge touching
( y2 >= t && y2 <= b ) || // Bottom edge touching ( y2 >= t && y2 <= b ) || // Bottom edge touching
( y1 < t && y2 > b ) // Surrounded vertically ( y1 < t && y2 > b ) // Surrounded vertically
) && ( ) && (
( x1 >= l && x1 <= r ) || // Left edge touching ( x1 >= l && x1 <= r ) || // Left edge touching
( x2 >= l && x2 <= r ) || // Right edge touching ( x2 >= l && x2 <= r ) || // Right edge touching
( x1 < l && x2 > r ) // Surrounded horizontally ( x1 < l && x2 > r ) // Surrounded horizontally
); );
default: default:
return false; return false;
} }
}; };
} )(); } )();
@ -324,7 +324,7 @@ $.ui.ddmanager = {
// No disabled and non-accepted // No disabled and non-accepted
if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ], if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ],
( t.currentItem || t.element ) ) ) ) { ( t.currentItem || t.element ) ) ) ) {
continue; continue;
} }
@ -366,12 +366,12 @@ $.ui.ddmanager = {
return; return;
} }
if ( !this.options.disabled && this.visible && 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; dropped = this._drop.call( this, event ) || dropped;
} }
if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ], if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ],
( draggable.currentItem || draggable.element ) ) ) { ( draggable.currentItem || draggable.element ) ) ) {
this.isout = true; this.isout = true;
this.isover = false; this.isover = false;
this._deactivate.call( this, event ); this._deactivate.call( this, event );

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Blind 1.13.0 * jQuery UI Effects Blind 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Blind 1.13.0 * jQuery UI Effects Blind 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Bounce 1.13.0 * jQuery UI Effects Bounce 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Bounce 1.13.0 * jQuery UI Effects Bounce 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Clip 1.13.0 * jQuery UI Effects Clip 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Clip 1.13.0 * jQuery UI Effects Clip 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Drop 1.13.0 * jQuery UI Effects Drop 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Drop 1.13.0 * jQuery UI Effects Drop 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Explode 1.13.0 * jQuery UI Effects Explode 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * 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 // 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 // where the original was located +left and +top equal to the size of pieces
.parent() .parent()
.addClass( "ui-effects-explode" ) .addClass( "ui-effects-explode" )
.css( { .css( {
position: "absolute", position: "absolute",
overflow: "hidden", overflow: "hidden",
width: width, width: width,
height: height, height: height,
left: left + ( show ? mx * width : 0 ), left: left + ( show ? mx * width : 0 ),
top: top + ( show ? my * height : 0 ), top: top + ( show ? my * height : 0 ),
opacity: show ? 0 : 1 opacity: show ? 0 : 1
} ) } )
.animate( { .animate( {
left: left + ( show ? 0 : mx * width ), left: left + ( show ? 0 : mx * width ),
top: top + ( show ? 0 : my * height ), top: top + ( show ? 0 : my * height ),
opacity: show ? 1 : 0 opacity: show ? 1 : 0
}, options.duration || 500, options.easing, childComplete ); }, options.duration || 500, options.easing, childComplete );
} }
} }

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Explode 1.13.0 * jQuery UI Effects Explode 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Fade 1.13.0 * jQuery UI Effects Fade 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Fade 1.13.0 * jQuery UI Effects Fade 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Fold 1.13.0 * jQuery UI Effects Fold 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Fold 1.13.0 * jQuery UI Effects Fold 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Highlight 1.13.0 * jQuery UI Effects Highlight 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Highlight 1.13.0 * jQuery UI Effects Highlight 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Puff 1.13.0 * jQuery UI Effects Puff 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Puff 1.13.0 * jQuery UI Effects Puff 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Pulsate 1.13.0 * jQuery UI Effects Pulsate 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Pulsate 1.13.0 * jQuery UI Effects Pulsate 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Scale 1.13.0 * jQuery UI Effects Scale 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Scale 1.13.0 * jQuery UI Effects Scale 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Shake 1.13.0 * jQuery UI Effects Shake 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Shake 1.13.0 * jQuery UI Effects Shake 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Size 1.13.0 * jQuery UI Effects Size 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Size 1.13.0 * jQuery UI Effects Size 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Slide 1.13.0 * jQuery UI Effects Slide 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Slide 1.13.0 * jQuery UI Effects Slide 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Transfer 1.13.0 * jQuery UI Effects Transfer 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects Transfer 1.13.0 * jQuery UI Effects Transfer 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Effects 1.13.0 * jQuery UI Effects 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -32,7 +32,7 @@
// Include version.js // Include version.js
$.ui = $.ui || {}; $.ui = $.ui || {};
$.ui.version = "1.13.0"; $.ui.version = "1.13.1";
// Source: jquery-var-for-color.js // Source: jquery-var-for-color.js
// Create a local jQuery because jQuery Color relies on it and the // 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 { } else {
for ( key in style ) { for ( key in style ) {
if ( typeof style[ key ] === "string" ) { if ( typeof style[ key ] === "string" ) {
@ -1119,7 +1119,7 @@ if ( $.uiBackCompat !== false ) {
} }
$.extend( $.effects, { $.extend( $.effects, {
version: "1.13.0", version: "1.13.1",
define: function( name, mode, effect ) { define: function( name, mode, effect ) {
if ( !effect ) { if ( !effect ) {
@ -1201,31 +1201,31 @@ $.extend( $.effects, {
var y, x; var y, x;
switch ( origin[ 0 ] ) { switch ( origin[ 0 ] ) {
case "top": case "top":
y = 0; y = 0;
break; break;
case "middle": case "middle":
y = 0.5; y = 0.5;
break; break;
case "bottom": case "bottom":
y = 1; y = 1;
break; break;
default: default:
y = origin[ 0 ] / original.height; y = origin[ 0 ] / original.height;
} }
switch ( origin[ 1 ] ) { switch ( origin[ 1 ] ) {
case "left": case "left":
x = 0; x = 0;
break; break;
case "center": case "center":
x = 0.5; x = 0.5;
break; break;
case "right": case "right":
x = 1; x = 1;
break; break;
default: default:
x = origin[ 1 ] / original.width; x = origin[ 1 ] / original.width;
} }
return { return {
@ -1250,8 +1250,8 @@ $.extend( $.effects, {
marginLeft: element.css( "marginLeft" ), marginLeft: element.css( "marginLeft" ),
marginRight: element.css( "marginRight" ) marginRight: element.css( "marginRight" )
} ) } )
.outerWidth( element.outerWidth() ) .outerWidth( element.outerWidth() )
.outerHeight( element.outerHeight() ); .outerHeight( element.outerHeight() );
if ( /^(static|relative)/.test( cssPosition ) ) { if ( /^(static|relative)/.test( cssPosition ) ) {
cssPosition = "absolute"; cssPosition = "absolute";
@ -1272,9 +1272,9 @@ $.extend( $.effects, {
marginRight: element.css( "marginRight" ), marginRight: element.css( "marginRight" ),
"float": element.css( "float" ) "float": element.css( "float" )
} ) } )
.outerWidth( element.outerWidth() ) .outerWidth( element.outerWidth() )
.outerHeight( element.outerHeight() ) .outerHeight( element.outerHeight() )
.addClass( "ui-effects-placeholder" ); .addClass( "ui-effects-placeholder" );
element.data( dataSpace + "placeholder", placeholder ); element.data( dataSpace + "placeholder", placeholder );
} }
@ -1290,7 +1290,7 @@ $.extend( $.effects, {
removePlaceholder: function( element ) { removePlaceholder: function( element ) {
var dataKey = dataSpace + "placeholder", var dataKey = dataSpace + "placeholder",
placeholder = element.data( dataKey ); placeholder = element.data( dataKey );
if ( placeholder ) { if ( placeholder ) {
placeholder.remove(); placeholder.remove();
@ -1362,8 +1362,8 @@ function _normalizeArguments( effect, options, speed, callback ) {
speed = speed || options.duration; speed = speed || options.duration;
effect.duration = $.fx.off ? 0 : effect.duration = $.fx.off ? 0 :
typeof speed === "number" ? speed : typeof speed === "number" ? speed :
speed in $.fx.speeds ? $.fx.speeds[ speed ] : speed in $.fx.speeds ? $.fx.speeds[ speed ] :
$.fx.speeds._default; $.fx.speeds._default;
effect.complete = callback || options.complete; effect.complete = callback || options.complete;
@ -1420,7 +1420,7 @@ $.fn.extend( {
// See $.uiBackCompat inside of run() for removal of defaultMode in 1.14 // See $.uiBackCompat inside of run() for removal of defaultMode in 1.14
if ( defaultMode && ( normalizedMode === "show" || if ( defaultMode && ( normalizedMode === "show" ||
( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) { ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) {
el.show(); el.show();
} }
@ -1598,17 +1598,17 @@ $.fn.extend( {
} ); } );
function parseClip( str, element ) { function parseClip( str, element ) {
var outerWidth = element.outerWidth(), var outerWidth = element.outerWidth(),
outerHeight = element.outerHeight(), 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)\)$/, 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 ]; values = clipRegex.exec( str ) || [ "", 0, outerWidth, outerHeight, 0 ];
return { return {
top: parseFloat( values[ 1 ] ) || 0, top: parseFloat( values[ 1 ] ) || 0,
right: values[ 2 ] === "auto" ? outerWidth : parseFloat( values[ 2 ] ), right: values[ 2 ] === "auto" ? outerWidth : parseFloat( values[ 2 ] ),
bottom: values[ 3 ] === "auto" ? outerHeight : parseFloat( values[ 3 ] ), bottom: values[ 3 ] === "auto" ? outerHeight : parseFloat( values[ 3 ] ),
left: parseFloat( values[ 4 ] ) || 0 left: parseFloat( values[ 4 ] ) || 0
}; };
} }
$.fx.step.clip = function( fx ) { $.fx.step.clip = function( fx ) {

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Menu 1.13.0 * jQuery UI Menu 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -35,7 +35,7 @@
"use strict"; "use strict";
return $.widget( "ui.menu", { return $.widget( "ui.menu", {
version: "1.13.0", version: "1.13.1",
defaultElement: "<ul>", defaultElement: "<ul>",
delay: 300, delay: 300,
options: { options: {
@ -95,7 +95,7 @@ return $.widget( "ui.menu", {
if ( target.has( ".ui-menu" ).length ) { if ( target.has( ".ui-menu" ).length ) {
this.expand( event ); this.expand( event );
} else if ( !this.element.is( ":focus" ) && } else if ( !this.element.is( ":focus" ) &&
active.closest( ".ui-menu" ).length ) { active.closest( ".ui-menu" ).length ) {
// Redirect focus to the menu // Redirect focus to the menu
this.element.trigger( "focus", [ true ] ); 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 the mouse didn't actually move, but the page was scrolled, ignore the event (#9356)
if ( event.clientX === this.lastMousePosition.x && if ( event.clientX === this.lastMousePosition.x &&
event.clientY === this.lastMousePosition.y ) { event.clientY === this.lastMousePosition.y ) {
return; return;
} }
@ -202,10 +202,10 @@ return $.widget( "ui.menu", {
this.element this.element
.removeAttr( "aria-activedescendant" ) .removeAttr( "aria-activedescendant" )
.find( ".ui-menu" ).addBack() .find( ".ui-menu" ).addBack()
.removeAttr( "role aria-labelledby aria-expanded aria-hidden aria-disabled " + .removeAttr( "role aria-labelledby aria-expanded aria-hidden aria-disabled " +
"tabIndex" ) "tabIndex" )
.removeUniqueId() .removeUniqueId()
.show(); .show();
submenus.children().each( function() { submenus.children().each( function() {
var elem = $( this ); var elem = $( this );
@ -220,77 +220,77 @@ return $.widget( "ui.menu", {
preventDefault = true; preventDefault = true;
switch ( event.keyCode ) { switch ( event.keyCode ) {
case $.ui.keyCode.PAGE_UP: case $.ui.keyCode.PAGE_UP:
this.previousPage( event ); this.previousPage( event );
break; break;
case $.ui.keyCode.PAGE_DOWN: case $.ui.keyCode.PAGE_DOWN:
this.nextPage( event ); this.nextPage( event );
break; break;
case $.ui.keyCode.HOME: case $.ui.keyCode.HOME:
this._move( "first", "first", event ); this._move( "first", "first", event );
break; break;
case $.ui.keyCode.END: case $.ui.keyCode.END:
this._move( "last", "last", event ); this._move( "last", "last", event );
break; break;
case $.ui.keyCode.UP: case $.ui.keyCode.UP:
this.previous( event ); this.previous( event );
break; break;
case $.ui.keyCode.DOWN: case $.ui.keyCode.DOWN:
this.next( event ); this.next( event );
break; break;
case $.ui.keyCode.LEFT: case $.ui.keyCode.LEFT:
this.collapse( event ); this.collapse( event );
break; break;
case $.ui.keyCode.RIGHT: case $.ui.keyCode.RIGHT:
if ( this.active && !this.active.is( ".ui-state-disabled" ) ) { if ( this.active && !this.active.is( ".ui-state-disabled" ) ) {
this.expand( event ); this.expand( event );
} }
break; break;
case $.ui.keyCode.ENTER: case $.ui.keyCode.ENTER:
case $.ui.keyCode.SPACE: case $.ui.keyCode.SPACE:
this._activate( event ); this._activate( event );
break; break;
case $.ui.keyCode.ESCAPE: case $.ui.keyCode.ESCAPE:
this.collapse( event ); this.collapse( event );
break; break;
default: default:
preventDefault = false; preventDefault = false;
prev = this.previousFilter || ""; prev = this.previousFilter || "";
skip = false; skip = false;
// Support number pad values // Support number pad values
character = event.keyCode >= 96 && event.keyCode <= 105 ? character = event.keyCode >= 96 && event.keyCode <= 105 ?
( event.keyCode - 96 ).toString() : String.fromCharCode( event.keyCode ); ( event.keyCode - 96 ).toString() : String.fromCharCode( event.keyCode );
clearTimeout( this.filterTimer ); clearTimeout( this.filterTimer );
if ( character === prev ) { if ( character === prev ) {
skip = true; skip = true;
} else { } else {
character = prev + character; character = prev + character;
} }
match = this._filterMenuItems( character );
match = skip && match.index( this.active.next() ) !== -1 ?
this.active.nextAll( ".ui-menu-item" ) :
match;
// If no matches on the current filter, reset to the last character pressed
// to move down the menu to the first item that starts with that character
if ( !match.length ) {
character = String.fromCharCode( event.keyCode );
match = this._filterMenuItems( character ); match = this._filterMenuItems( character );
} match = skip && match.index( this.active.next() ) !== -1 ?
this.active.nextAll( ".ui-menu-item" ) :
match;
if ( match.length ) { // If no matches on the current filter, reset to the last character pressed
this.focus( event, match ); // to move down the menu to the first item that starts with that character
this.previousFilter = character; if ( !match.length ) {
this.filterTimer = this._delay( function() { character = String.fromCharCode( event.keyCode );
match = this._filterMenuItems( character );
}
if ( match.length ) {
this.focus( event, match );
this.previousFilter = character;
this.filterTimer = this._delay( function() {
delete this.previousFilter;
}, 1000 );
} else {
delete this.previousFilter; delete this.previousFilter;
}, 1000 ); }
} else {
delete this.previousFilter;
}
} }
if ( preventDefault ) { if ( preventDefault ) {
@ -353,11 +353,11 @@ return $.widget( "ui.menu", {
newItems = items.not( ".ui-menu-item, .ui-menu-divider" ); newItems = items.not( ".ui-menu-item, .ui-menu-divider" );
newWrappers = newItems.children() newWrappers = newItems.children()
.not( ".ui-menu" ) .not( ".ui-menu" )
.uniqueId() .uniqueId()
.attr( { .attr( {
tabIndex: -1, tabIndex: -1,
role: this._itemRole() role: this._itemRole()
} ); } );
this._addClass( newItems, "ui-menu-item" ) this._addClass( newItems, "ui-menu-item" )
._addClass( newWrappers, "ui-menu-item-wrapper" ); ._addClass( newWrappers, "ui-menu-item-wrapper" );
@ -413,8 +413,8 @@ return $.widget( "ui.menu", {
// Highlight active parent menu item, if any // Highlight active parent menu item, if any
activeParent = this.active activeParent = this.active
.parent() .parent()
.closest( ".ui-menu-item" ) .closest( ".ui-menu-item" )
.children( ".ui-menu-item-wrapper" ); .children( ".ui-menu-item-wrapper" );
this._addClass( activeParent, null, "ui-state-active" ); this._addClass( activeParent, null, "ui-state-active" );
if ( event && event.type === "keydown" ) { if ( event && event.type === "keydown" ) {
@ -695,13 +695,13 @@ return $.widget( "ui.menu", {
return this.activeMenu return this.activeMenu
.find( this.options.items ) .find( this.options.items )
// Only match on items, not dividers or other content (#10571) // Only match on items, not dividers or other content (#10571)
.filter( ".ui-menu-item" ) .filter( ".ui-menu-item" )
.filter( function() { .filter( function() {
return regex.test( return regex.test(
String.prototype.trim.call( String.prototype.trim.call(
$( this ).children( ".ui-menu-item-wrapper" ).text() ) ); $( this ).children( ".ui-menu-item-wrapper" ).text() ) );
} ); } );
} }
} ); } );

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Mouse 1.13.0 * jQuery UI Mouse 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -36,7 +36,7 @@ $( document ).on( "mouseup", function() {
} ); } );
return $.widget( "ui.mouse", { return $.widget( "ui.mouse", {
version: "1.13.0", version: "1.13.1",
options: { options: {
cancel: "input, textarea, button, select, option", cancel: "input, textarea, button, select, option",
distance: 1, distance: 1,
@ -146,17 +146,17 @@ return $.widget( "ui.mouse", {
// IE mouseup check - mouseup happened when mouse was out of window // IE mouseup check - mouseup happened when mouse was out of window
if ( $.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && if ( $.ui.ie && ( !document.documentMode || document.documentMode < 9 ) &&
!event.button ) { !event.button ) {
return this._mouseUp( event ); return this._mouseUp( event );
// Iframe mouseup check - mouseup occurred in another document // Iframe mouseup check - mouseup occurred in another document
} else if ( !event.which ) { } else if ( !event.which ) {
// Support: Safari <=8 - 9 // Support: Safari <=8 - 9
// Safari sets which to 0 if you press any of the following keys // Safari sets which to 0 if you press any of the following keys
// during a drag (#14461) // during a drag (#14461)
if ( event.originalEvent.altKey || event.originalEvent.ctrlKey || if ( event.originalEvent.altKey || event.originalEvent.ctrlKey ||
event.originalEvent.metaKey || event.originalEvent.shiftKey ) { event.originalEvent.metaKey || event.originalEvent.shiftKey ) {
this.ignoreMissingWhich = true; this.ignoreMissingWhich = true;
} else if ( !this.ignoreMissingWhich ) { } else if ( !this.ignoreMissingWhich ) {
return this._mouseUp( event ); return this._mouseUp( event );

View File

@ -1,9 +1,9 @@
/*! /*!
* jQuery UI Mouse 1.13.0 * jQuery UI Mouse 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
* Released under the MIT license. * Released under the MIT license.
* http://jquery.org/license * http://jquery.org/license
*/ */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(o){"use strict";var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.13.0",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!n){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,s=1===e.which,i=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length;return s&&!i&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}); !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(o){"use strict";var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.13.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!n){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,s=1===e.which,i=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length;return s&&!i&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});

View File

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

View File

@ -1,9 +1,9 @@
/*! /*!
* jQuery UI Progressbar 1.13.0 * jQuery UI Progressbar 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
* Released under the MIT license. * Released under the MIT license.
* http://jquery.org/license * http://jquery.org/license
*/ */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(t){"use strict";return t.widget("ui.progressbar",{version:"1.13.0",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){if(void 0===e)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var i=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(i),this._refreshValue()},_setOption:function(e,i){"max"===e&&(i=Math.max(this.min,i)),this._super(e,i)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}})}); !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(t){"use strict";return t.widget("ui.progressbar",{version:"1.13.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){if(void 0===e)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var i=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(i),this._refreshValue()},_setOption:function(e,i){"max"===e&&(i=Math.max(this.min,i)),this._super(e,i)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}})});

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Resizable 1.13.0 * jQuery UI Resizable 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -36,7 +36,7 @@
"use strict"; "use strict";
$.widget( "ui.resizable", $.ui.mouse, { $.widget( "ui.resizable", $.ui.mouse, {
version: "1.13.0", version: "1.13.1",
widgetEventPrefix: "resize", widgetEventPrefix: "resize",
options: { options: {
alsoResize: false, alsoResize: false,
@ -228,15 +228,15 @@ $.widget( "ui.resizable", $.ui.mouse, {
this._super( key, value ); this._super( key, value );
switch ( key ) { switch ( key ) {
case "handles": case "handles":
this._removeHandles(); this._removeHandles();
this._setupHandles(); this._setupHandles();
break; break;
case "aspectRatio": case "aspectRatio":
this._aspectRatio = !!value; this._aspectRatio = !!value;
break; break;
default: default:
break; break;
} }
}, },
@ -300,9 +300,9 @@ $.widget( "ui.resizable", $.ui.mouse, {
} }
if ( this.elementIsWrapper && if ( this.elementIsWrapper &&
this.originalElement[ 0 ] this.originalElement[ 0 ]
.nodeName .nodeName
.match( /^(textarea|input|select|button)$/i ) ) { .match( /^(textarea|input|select|button)$/i ) ) {
axis = $( this.handles[ i ], this.element ); axis = $( this.handles[ i ], this.element );
padWrapper = /sw|ne|nw|se|n|s/.test( i ) ? padWrapper = /sw|ne|nw|se|n|s/.test( i ) ?
@ -311,8 +311,8 @@ $.widget( "ui.resizable", $.ui.mouse, {
padPos = [ "padding", padPos = [ "padding",
/ne|nw|n/.test( i ) ? "Top" : /ne|nw|n/.test( i ) ? "Top" :
/se|sw|s/.test( i ) ? "Bottom" : /se|sw|s/.test( i ) ? "Bottom" :
/^e$/.test( i ) ? "Right" : "Left" ].join( "" ); /^e$/.test( i ) ? "Right" : "Left" ].join( "" );
target.css( padPos, padWrapper ); target.css( padPos, padWrapper );
@ -384,20 +384,20 @@ $.widget( "ui.resizable", $.ui.mouse, {
this.position = { left: curleft, top: curtop }; this.position = { left: curleft, top: curtop };
this.size = this._helper ? { this.size = this._helper ? {
width: this.helper.width(), width: this.helper.width(),
height: this.helper.height() height: this.helper.height()
} : { } : {
width: el.width(), width: el.width(),
height: el.height() height: el.height()
}; };
this.originalSize = this._helper ? { this.originalSize = this._helper ? {
width: el.outerWidth(), width: el.outerWidth(),
height: el.outerHeight() height: el.outerHeight()
} : { } : {
width: el.width(), width: el.width(),
height: el.height() height: el.height()
}; };
this.sizeDiff = { this.sizeDiff = {
width: el.outerWidth() - el.width(), width: el.outerWidth() - el.width(),
@ -1063,21 +1063,21 @@ $.ui.plugin.add( "resizable", "alsoResize", {
left: ( that.position.left - op.left ) || 0 left: ( that.position.left - op.left ) || 0
}; };
$( o.alsoResize ).each( function() { $( o.alsoResize ).each( function() {
var el = $( this ), start = $( this ).data( "ui-resizable-alsoresize" ), style = {}, var el = $( this ), start = $( this ).data( "ui-resizable-alsoresize" ), style = {},
css = el.parents( ui.originalElement[ 0 ] ).length ? css = el.parents( ui.originalElement[ 0 ] ).length ?
[ "width", "height" ] : [ "width", "height" ] :
[ "width", "height", "top", "left" ]; [ "width", "height", "top", "left" ];
$.each( css, function( i, prop ) { $.each( css, function( i, prop ) {
var sum = ( start[ prop ] || 0 ) + ( delta[ prop ] || 0 ); var sum = ( start[ prop ] || 0 ) + ( delta[ prop ] || 0 );
if ( sum && sum >= 0 ) { if ( sum && sum >= 0 ) {
style[ prop ] = sum || null; style[ prop ] = sum || null;
} }
} );
el.css( style );
} ); } );
el.css( style );
} );
}, },
stop: function() { stop: function() {

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Selectable 1.13.0 * jQuery UI Selectable 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -34,7 +34,7 @@
"use strict"; "use strict";
return $.widget( "ui.selectable", $.ui.mouse, { return $.widget( "ui.selectable", $.ui.mouse, {
version: "1.13.0", version: "1.13.1",
options: { options: {
appendTo: "body", appendTo: "body",
autoRefresh: true, autoRefresh: true,
@ -210,10 +210,10 @@ return $.widget( "ui.selectable", $.ui.mouse, {
if ( options.tolerance === "touch" ) { if ( options.tolerance === "touch" ) {
hit = ( !( offset.left > x2 || offset.right < x1 || offset.top > y2 || hit = ( !( offset.left > x2 || offset.right < x1 || offset.top > y2 ||
offset.bottom < y1 ) ); offset.bottom < y1 ) );
} else if ( options.tolerance === "fit" ) { } else if ( options.tolerance === "fit" ) {
hit = ( offset.left > x1 && offset.right < x2 && offset.top > y1 && hit = ( offset.left > x1 && offset.right < x2 && offset.top > y1 &&
offset.bottom < y2 ); offset.bottom < y2 );
} }
if ( hit ) { if ( hit ) {

View File

@ -1,9 +1,9 @@
/*! /*!
* jQuery UI Selectable 1.13.0 * jQuery UI Selectable 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
* Released under the MIT license. * Released under the MIT license.
* http://jquery.org/license * http://jquery.org/license
*/ */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","./core"],e):e(jQuery)}(function(u){"use strict";return u.widget("ui.selectable",u.ui.mouse,{version:"1.13.0",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var s=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){s.elementPos=u(s.element[0]).offset(),s.selectees=u(s.options.filter,s.element[0]),s._addClass(s.selectees,"ui-selectee"),s.selectees.each(function(){var e=u(this),t=e.offset(),t={left:t.left-s.elementPos.left,top:t.top-s.elementPos.top};u.data(this,"selectable-item",{element:this,$element:e,left:t.left,top:t.top,right:t.left+e.outerWidth(),bottom:t.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=u("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(s){var l=this,e=this.options;this.opos=[s.pageX,s.pageY],this.elementPos=u(this.element[0]).offset(),this.options.disabled||(this.selectees=u(e.filter,this.element[0]),this._trigger("start",s),u(e.appendTo).append(this.helper),this.helper.css({left:s.pageX,top:s.pageY,width:0,height:0}),e.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var e=u.data(this,"selectable-item");e.startselected=!0,s.metaKey||s.ctrlKey||(l._removeClass(e.$element,"ui-selected"),e.selected=!1,l._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,l._trigger("unselecting",s,{unselecting:e.element}))}),u(s.target).parents().addBack().each(function(){var e,t=u.data(this,"selectable-item");if(t)return e=!s.metaKey&&!s.ctrlKey||!t.$element.hasClass("ui-selected"),l._removeClass(t.$element,e?"ui-unselecting":"ui-selected")._addClass(t.$element,e?"ui-selecting":"ui-unselecting"),t.unselecting=!e,t.selecting=e,(t.selected=e)?l._trigger("selecting",s,{selecting:t.element}):l._trigger("unselecting",s,{unselecting:t.element}),!1}))},_mouseDrag:function(l){if(this.dragged=!0,!this.options.disabled){var e,i=this,n=this.options,c=this.opos[0],a=this.opos[1],r=l.pageX,o=l.pageY;return r<c&&(e=r,r=c,c=e),o<a&&(e=o,o=a,a=e),this.helper.css({left:c,top:a,width:r-c,height:o-a}),this.selectees.each(function(){var e=u.data(this,"selectable-item"),t=!1,s={};e&&e.element!==i.element[0]&&(s.left=e.left+i.elementPos.left,s.right=e.right+i.elementPos.left,s.top=e.top+i.elementPos.top,s.bottom=e.bottom+i.elementPos.top,"touch"===n.tolerance?t=!(s.left>r||s.right<c||s.top>o||s.bottom<a):"fit"===n.tolerance&&(t=s.left>c&&s.right<r&&s.top>a&&s.bottom<o),t?(e.selected&&(i._removeClass(e.$element,"ui-selected"),e.selected=!1),e.unselecting&&(i._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1),e.selecting||(i._addClass(e.$element,"ui-selecting"),e.selecting=!0,i._trigger("selecting",l,{selecting:e.element}))):(e.selecting&&((l.metaKey||l.ctrlKey)&&e.startselected?(i._removeClass(e.$element,"ui-selecting"),e.selecting=!1,i._addClass(e.$element,"ui-selected"),e.selected=!0):(i._removeClass(e.$element,"ui-selecting"),e.selecting=!1,e.startselected&&(i._addClass(e.$element,"ui-unselecting"),e.unselecting=!0),i._trigger("unselecting",l,{unselecting:e.element}))),e.selected&&(l.metaKey||l.ctrlKey||e.startselected||(i._removeClass(e.$element,"ui-selected"),e.selected=!1,i._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,i._trigger("unselecting",l,{unselecting:e.element})))))}),!1}},_mouseStop:function(t){var s=this;return this.dragged=!1,u(".ui-unselecting",this.element[0]).each(function(){var e=u.data(this,"selectable-item");s._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1,e.startselected=!1,s._trigger("unselected",t,{unselected:e.element})}),u(".ui-selecting",this.element[0]).each(function(){var e=u.data(this,"selectable-item");s._removeClass(e.$element,"ui-selecting")._addClass(e.$element,"ui-selected"),e.selecting=!1,e.selected=!0,e.startselected=!0,s._trigger("selected",t,{selected:e.element})}),this._trigger("stop",t),this.helper.remove(),!1}})}); !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","./core"],e):e(jQuery)}(function(u){"use strict";return u.widget("ui.selectable",u.ui.mouse,{version:"1.13.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var s=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){s.elementPos=u(s.element[0]).offset(),s.selectees=u(s.options.filter,s.element[0]),s._addClass(s.selectees,"ui-selectee"),s.selectees.each(function(){var e=u(this),t=e.offset(),t={left:t.left-s.elementPos.left,top:t.top-s.elementPos.top};u.data(this,"selectable-item",{element:this,$element:e,left:t.left,top:t.top,right:t.left+e.outerWidth(),bottom:t.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=u("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(s){var l=this,e=this.options;this.opos=[s.pageX,s.pageY],this.elementPos=u(this.element[0]).offset(),this.options.disabled||(this.selectees=u(e.filter,this.element[0]),this._trigger("start",s),u(e.appendTo).append(this.helper),this.helper.css({left:s.pageX,top:s.pageY,width:0,height:0}),e.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var e=u.data(this,"selectable-item");e.startselected=!0,s.metaKey||s.ctrlKey||(l._removeClass(e.$element,"ui-selected"),e.selected=!1,l._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,l._trigger("unselecting",s,{unselecting:e.element}))}),u(s.target).parents().addBack().each(function(){var e,t=u.data(this,"selectable-item");if(t)return e=!s.metaKey&&!s.ctrlKey||!t.$element.hasClass("ui-selected"),l._removeClass(t.$element,e?"ui-unselecting":"ui-selected")._addClass(t.$element,e?"ui-selecting":"ui-unselecting"),t.unselecting=!e,t.selecting=e,(t.selected=e)?l._trigger("selecting",s,{selecting:t.element}):l._trigger("unselecting",s,{unselecting:t.element}),!1}))},_mouseDrag:function(l){if(this.dragged=!0,!this.options.disabled){var e,i=this,n=this.options,c=this.opos[0],a=this.opos[1],r=l.pageX,o=l.pageY;return r<c&&(e=r,r=c,c=e),o<a&&(e=o,o=a,a=e),this.helper.css({left:c,top:a,width:r-c,height:o-a}),this.selectees.each(function(){var e=u.data(this,"selectable-item"),t=!1,s={};e&&e.element!==i.element[0]&&(s.left=e.left+i.elementPos.left,s.right=e.right+i.elementPos.left,s.top=e.top+i.elementPos.top,s.bottom=e.bottom+i.elementPos.top,"touch"===n.tolerance?t=!(s.left>r||s.right<c||s.top>o||s.bottom<a):"fit"===n.tolerance&&(t=s.left>c&&s.right<r&&s.top>a&&s.bottom<o),t?(e.selected&&(i._removeClass(e.$element,"ui-selected"),e.selected=!1),e.unselecting&&(i._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1),e.selecting||(i._addClass(e.$element,"ui-selecting"),e.selecting=!0,i._trigger("selecting",l,{selecting:e.element}))):(e.selecting&&((l.metaKey||l.ctrlKey)&&e.startselected?(i._removeClass(e.$element,"ui-selecting"),e.selecting=!1,i._addClass(e.$element,"ui-selected"),e.selected=!0):(i._removeClass(e.$element,"ui-selecting"),e.selecting=!1,e.startselected&&(i._addClass(e.$element,"ui-unselecting"),e.unselecting=!0),i._trigger("unselecting",l,{unselecting:e.element}))),e.selected&&(l.metaKey||l.ctrlKey||e.startselected||(i._removeClass(e.$element,"ui-selected"),e.selected=!1,i._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,i._trigger("unselecting",l,{unselecting:e.element})))))}),!1}},_mouseStop:function(t){var s=this;return this.dragged=!1,u(".ui-unselecting",this.element[0]).each(function(){var e=u.data(this,"selectable-item");s._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1,e.startselected=!1,s._trigger("unselected",t,{unselected:e.element})}),u(".ui-selecting",this.element[0]).each(function(){var e=u.data(this,"selectable-item");s._removeClass(e.$element,"ui-selecting")._addClass(e.$element,"ui-selected"),e.selecting=!1,e.selected=!0,e.startselected=!0,s._trigger("selected",t,{selected:e.element})}),this._trigger("stop",t),this.helper.remove(),!1}})});

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Selectmenu 1.13.0 * jQuery UI Selectmenu 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -38,7 +38,7 @@
"use strict"; "use strict";
return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
version: "1.13.0", version: "1.13.1",
defaultElement: "<select>", defaultElement: "<select>",
options: { options: {
appendTo: null, appendTo: null,
@ -227,7 +227,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
this.menuInstance.refresh(); this.menuInstance.refresh();
this.menuItems = this.menu.find( "li" ) this.menuItems = this.menu.find( "li" )
.not( ".ui-selectmenu-optgroup" ) .not( ".ui-selectmenu-optgroup" )
.find( ".ui-menu-item-wrapper" ); .find( ".ui-menu-item-wrapper" );
this._rendered = true; this._rendered = true;
@ -403,7 +403,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
selection.removeAllRanges(); selection.removeAllRanges();
selection.addRange( this.range ); selection.addRange( this.range );
// Support: IE8 // Support: IE8
} else { } else {
this.range.select(); this.range.select();
} }
@ -439,7 +439,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
this.range = selection.getRangeAt( 0 ); this.range = selection.getRangeAt( 0 );
} }
// Support: IE8 // Support: IE8
} else { } else {
this.range = document.selection.createRange(); this.range = document.selection.createRange();
} }
@ -453,54 +453,54 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
keydown: function( event ) { keydown: function( event ) {
var preventDefault = true; var preventDefault = true;
switch ( event.keyCode ) { switch ( event.keyCode ) {
case $.ui.keyCode.TAB: case $.ui.keyCode.TAB:
case $.ui.keyCode.ESCAPE: case $.ui.keyCode.ESCAPE:
this.close( event ); this.close( event );
preventDefault = false; preventDefault = false;
break; break;
case $.ui.keyCode.ENTER: case $.ui.keyCode.ENTER:
if ( this.isOpen ) { if ( this.isOpen ) {
this._selectFocusedItem( event ); this._selectFocusedItem( event );
} }
break; break;
case $.ui.keyCode.UP: case $.ui.keyCode.UP:
if ( event.altKey ) { if ( event.altKey ) {
this._toggle( event ); this._toggle( event );
} else { } 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 ); this._move( "prev", event );
} break;
break; case $.ui.keyCode.RIGHT:
case $.ui.keyCode.DOWN:
if ( event.altKey ) {
this._toggle( event );
} else {
this._move( "next", event ); this._move( "next", event );
} break;
break; case $.ui.keyCode.HOME:
case $.ui.keyCode.SPACE: case $.ui.keyCode.PAGE_UP:
if ( this.isOpen ) { this._move( "first", event );
this._selectFocusedItem( event ); break;
} else { case $.ui.keyCode.END:
this._toggle( event ); case $.ui.keyCode.PAGE_DOWN:
} this._move( "last", event );
break; break;
case $.ui.keyCode.LEFT: default:
this._move( "prev", event ); this.menu.trigger( event );
break; preventDefault = false;
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;
} }
if ( preventDefault ) { if ( preventDefault ) {

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Slider 1.13.0 * jQuery UI Slider 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -36,7 +36,7 @@
"use strict"; "use strict";
return $.widget( "ui.slider", $.ui.mouse, { return $.widget( "ui.slider", $.ui.mouse, {
version: "1.13.0", version: "1.13.1",
widgetEventPrefix: "slide", widgetEventPrefix: "slide",
options: { options: {
@ -642,8 +642,8 @@ return $.widget( "ui.slider", $.ui.mouse, {
valueMin = this._valueMin(); valueMin = this._valueMin();
valueMax = this._valueMax(); valueMax = this._valueMax();
valPercent = ( valueMax !== valueMin ) ? valPercent = ( valueMax !== valueMin ) ?
( value - valueMin ) / ( valueMax - valueMin ) * 100 : ( value - valueMin ) / ( valueMax - valueMin ) * 100 :
0; 0;
_set[ this.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%"; _set[ this.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate ); this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Sortable 1.13.0 * jQuery UI Sortable 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -34,7 +34,7 @@
"use strict"; "use strict";
return $.widget( "ui.sortable", $.ui.mouse, { return $.widget( "ui.sortable", $.ui.mouse, {
version: "1.13.0", version: "1.13.1",
widgetEventPrefix: "sort", widgetEventPrefix: "sort",
ready: false, ready: false,
options: { options: {
@ -196,8 +196,8 @@ return $.widget( "ui.sortable", $.ui.mouse, {
//Prepare the dragged items parent //Prepare the dragged items parent
this.appendTo = $( o.appendTo !== "parent" ? this.appendTo = $( o.appendTo !== "parent" ?
o.appendTo : o.appendTo :
this.currentItem.parent() ); this.currentItem.parent() );
//Create and append the visible helper //Create and append the visible helper
this.helper = this._createHelper( event ); this.helper = this._createHelper( event );
@ -299,7 +299,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
//Prepare scrolling //Prepare scrolling
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] && if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
this.scrollParent[ 0 ].tagName !== "HTML" ) { this.scrollParent[ 0 ].tagName !== "HTML" ) {
this.overflowOffset = this.scrollParent.offset(); this.overflowOffset = this.scrollParent.offset();
} }
@ -356,10 +356,10 @@ return $.widget( "ui.sortable", $.ui.mouse, {
scrolled = false; scrolled = false;
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] && 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 ) - if ( ( this.overflowOffset.top + this.scrollParent[ 0 ].offsetHeight ) -
event.pageY < o.scrollSensitivity ) { event.pageY < o.scrollSensitivity ) {
this.scrollParent[ 0 ].scrollTop = this.scrollParent[ 0 ].scrollTop =
scrolled = this.scrollParent[ 0 ].scrollTop + o.scrollSpeed; scrolled = this.scrollParent[ 0 ].scrollTop + o.scrollSpeed;
} else if ( event.pageY - this.overflowOffset.top < o.scrollSensitivity ) { } 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 ) - 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 = scrolled =
this.scrollParent[ 0 ].scrollLeft + o.scrollSpeed; this.scrollParent[ 0 ].scrollLeft + o.scrollSpeed;
} else if ( event.pageX - this.overflowOffset.left < o.scrollSensitivity ) { } 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 ) { if ( event.pageY - this.document.scrollTop() < o.scrollSensitivity ) {
scrolled = this.document.scrollTop( this.document.scrollTop() - o.scrollSpeed ); scrolled = this.document.scrollTop( this.document.scrollTop() - o.scrollSpeed );
} else if ( this.window.height() - ( event.pageY - this.document.scrollTop() ) < } else if ( this.window.height() - ( event.pageY - this.document.scrollTop() ) <
o.scrollSensitivity ) { o.scrollSensitivity ) {
scrolled = this.document.scrollTop( this.document.scrollTop() + o.scrollSpeed ); scrolled = this.document.scrollTop( this.document.scrollTop() + o.scrollSpeed );
} }
@ -390,7 +390,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.document.scrollLeft() - o.scrollSpeed this.document.scrollLeft() - o.scrollSpeed
); );
} else if ( this.window.width() - ( event.pageX - this.document.scrollLeft() ) < } else if ( this.window.width() - ( event.pageX - this.document.scrollLeft() ) <
o.scrollSensitivity ) { o.scrollSensitivity ) {
scrolled = this.document.scrollLeft( scrolled = this.document.scrollLeft(
this.document.scrollLeft() + o.scrollSpeed this.document.scrollLeft() + o.scrollSpeed
); );
@ -417,79 +417,76 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.helper[ 0 ].style.top = this.position.top + "px"; this.helper[ 0 ].style.top = this.position.top + "px";
} }
//Post events to containers //Do scrolling
this._contactContainers( event ); if ( o.scroll ) {
if ( this._scroll( event ) !== false ) {
if ( this.innermostContainer !== null ) { //Update item positions used in position checks
this._refreshItemPositions( true );
//Do scrolling if ( $.ui.ddmanager && !o.dropBehaviour ) {
if ( o.scroll ) { $.ui.ddmanager.prepareOffsets( this, event );
if ( this._scroll( event ) !== false ) {
//Update item positions used in position checks
this._refreshItemPositions( true );
if ( $.ui.ddmanager && !o.dropBehaviour ) {
$.ui.ddmanager.prepareOffsets( this, event );
}
}
}
this.dragDirection = {
vertical: this._getDragVerticalDirection(),
horizontal: this._getDragHorizontalDirection()
};
//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;
}
// 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 ?
"next" : "prev" ]()[ 0 ] !== itemElement &&
!$.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._trigger( "change", event, this._uiHash() );
break;
} }
} }
} }
this.dragDirection = {
vertical: this._getDragVerticalDirection(),
horizontal: this._getDragHorizontalDirection()
};
//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;
}
// 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 ?
"next" : "prev" ]()[ 0 ] !== itemElement &&
!$.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._trigger( "change", event, this._uiHash() );
break;
}
}
//Post events to containers
this._contactContainers( event );
//Interconnect with droppables //Interconnect with droppables
if ( $.ui.ddmanager ) { if ( $.ui.ddmanager ) {
$.ui.ddmanager.drag( this, event ); $.ui.ddmanager.drag( this, event );
@ -523,15 +520,15 @@ return $.widget( "ui.sortable", $.ui.mouse, {
if ( !axis || axis === "x" ) { if ( !axis || axis === "x" ) {
animation.left = cur.left - this.offset.parent.left - this.margins.left + animation.left = cur.left - this.offset.parent.left - this.margins.left +
( this.offsetParent[ 0 ] === this.document[ 0 ].body ? ( this.offsetParent[ 0 ] === this.document[ 0 ].body ?
0 : 0 :
this.offsetParent[ 0 ].scrollLeft this.offsetParent[ 0 ].scrollLeft
); );
} }
if ( !axis || axis === "y" ) { if ( !axis || axis === "y" ) {
animation.top = cur.top - this.offset.parent.top - this.margins.top + animation.top = cur.top - this.offset.parent.top - this.margins.top +
( this.offsetParent[ 0 ] === this.document[ 0 ].body ? ( this.offsetParent[ 0 ] === this.document[ 0 ].body ?
0 : 0 :
this.offsetParent[ 0 ].scrollTop this.offsetParent[ 0 ].scrollTop
); );
} }
this.reverting = true; this.reverting = true;
@ -582,7 +579,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.placeholder[ 0 ].parentNode.removeChild( this.placeholder[ 0 ] ); this.placeholder[ 0 ].parentNode.removeChild( this.placeholder[ 0 ] );
} }
if ( this.options.helper !== "original" && this.helper && if ( this.options.helper !== "original" && this.helper &&
this.helper[ 0 ].parentNode ) { this.helper[ 0 ].parentNode ) {
this.helper.remove(); 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 //We ignore calculating positions of all connected containers when we're not over them
if ( this.currentContainer && item.instance !== this.currentContainer && if ( this.currentContainer && item.instance !== this.currentContainer &&
item.item[ 0 ] !== this.currentItem[ 0 ] ) { item.item[ 0 ] !== this.currentItem[ 0 ] ) {
continue; continue;
} }
@ -884,10 +881,14 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) : this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
false; false;
if ( this.innermostContainer !== null ) { // This has to be redone because due to the item being moved out/into the offsetParent,
this._refreshItemPositions( fast ); // the offsetParent's position will change
if ( this.offsetParent && this.helper ) {
this.offset.parent = this._getParentOffset();
} }
this._refreshItemPositions( fast );
var i, p; var i, p;
if ( this.options.custom && this.options.custom.refreshContainers ) { if ( this.options.custom && this.options.custom.refreshContainers ) {
@ -921,7 +922,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
var element = $( "<" + nodeName + ">", that.document[ 0 ] ); var element = $( "<" + nodeName + ">", that.document[ 0 ] );
that._addClass( element, "ui-sortable-placeholder", that._addClass( element, "ui-sortable-placeholder",
className || that.currentItem[ 0 ].className ) className || that.currentItem[ 0 ].className )
._removeClass( element, "ui-sortable-helper" ); ._removeClass( element, "ui-sortable-helper" );
if ( nodeName === "tbody" ) { if ( nodeName === "tbody" ) {
@ -959,7 +960,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
// always assign the height of the dragged item given forcePlaceholderSize // always assign the height of the dragged item given forcePlaceholderSize
// is true. // is true.
if ( !p.height() || ( o.forcePlaceholderSize && if ( !p.height() || ( o.forcePlaceholderSize &&
( nodeName === "tbody" || nodeName === "tr" ) ) ) { ( nodeName === "tbody" || nodeName === "tr" ) ) ) {
p.height( p.height(
that.currentItem.innerHeight() - that.currentItem.innerHeight() -
parseInt( that.currentItem.css( "paddingTop" ) || 0, 10 ) - 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 we've already found a container and it's more "inner" than this, then continue
if ( innermostContainer && if ( innermostContainer &&
$.contains( $.contains(
this.containers[ i ].element[ 0 ], this.containers[ i ].element[ 0 ],
innermostContainer.element[ 0 ] ) ) { innermostContainer.element[ 0 ] ) ) {
continue; continue;
} }
@ -1034,8 +1035,6 @@ return $.widget( "ui.sortable", $.ui.mouse, {
} }
this.innermostContainer = innermostContainer;
// If no intersecting containers found, return // If no intersecting containers found, return
if ( !innermostContainer ) { if ( !innermostContainer ) {
return; return;
@ -1060,7 +1059,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
for ( j = this.items.length - 1; j >= 0; j-- ) { for ( j = this.items.length - 1; j >= 0; j-- ) {
if ( !$.contains( if ( !$.contains(
this.containers[ innermostIndex ].element[ 0 ], this.items[ j ].item[ 0 ] ) this.containers[ innermostIndex ].element[ 0 ], this.items[ j ].item[ 0 ] )
) { ) {
continue; continue;
} }
@ -1111,7 +1110,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
//Update overflowOffset //Update overflowOffset
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] && if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
this.scrollParent[ 0 ].tagName !== "HTML" ) { this.scrollParent[ 0 ].tagName !== "HTML" ) {
this.overflowOffset = this.scrollParent.offset(); 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 // the document, which means that the scroll is included in the initial calculation of the
// offset of the parent, and never recalculated upon drag // offset of the parent, and never recalculated upon drag
if ( this.cssPosition === "absolute" && this.scrollParent[ 0 ] !== this.document[ 0 ] && 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.left += this.scrollParent.scrollLeft();
po.top += this.scrollParent.scrollTop(); 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 // This needs to be actually done for all browsers, since pageX/pageY includes this
// information with an ugly IE fix // information with an ugly IE fix
if ( this.offsetParent[ 0 ] === this.document[ 0 ].body || if ( this.offsetParent[ 0 ] === this.document[ 0 ].body ||
( this.offsetParent[ 0 ].tagName && ( this.offsetParent[ 0 ].tagName &&
this.offsetParent[ 0 ].tagName.toLowerCase() === "html" && $.ui.ie ) ) { this.offsetParent[ 0 ].tagName.toLowerCase() === "html" && $.ui.ie ) ) {
po = { top: 0, left: 0 }; po = { top: 0, left: 0 };
} }
@ -1254,8 +1253,8 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.document.width() : this.document.width() :
this.window.width() - this.helperProportions.width - this.margins.left, this.window.width() - this.helperProportions.width - this.margins.left,
( o.containment === "document" ? ( o.containment === "document" ?
( this.document.height() || document.body.parentNode.scrollHeight ) : ( this.document.height() || document.body.parentNode.scrollHeight ) :
this.window.height() || this.document[ 0 ].body.parentNode.scrollHeight this.window.height() || this.document[ 0 ].body.parentNode.scrollHeight
) - this.helperProportions.height - this.margins.top ) - this.helperProportions.height - this.margins.top
]; ];
} }
@ -1267,17 +1266,17 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.containment = [ this.containment = [
co.left + ( parseInt( $( ce ).css( "borderLeftWidth" ), 10 ) || 0 ) + 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 ) + 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 ) - co.left + ( over ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) -
( parseInt( $( ce ).css( "borderLeftWidth" ), 10 ) || 0 ) - ( parseInt( $( ce ).css( "borderLeftWidth" ), 10 ) || 0 ) -
( parseInt( $( ce ).css( "paddingRight" ), 10 ) || 0 ) - ( parseInt( $( ce ).css( "paddingRight" ), 10 ) || 0 ) -
this.helperProportions.width - this.margins.left, this.helperProportions.width - this.margins.left,
co.top + ( over ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) - co.top + ( over ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) -
( parseInt( $( ce ).css( "borderTopWidth" ), 10 ) || 0 ) - ( parseInt( $( ce ).css( "borderTopWidth" ), 10 ) || 0 ) -
( parseInt( $( ce ).css( "paddingBottom" ), 10 ) || 0 ) - ( parseInt( $( ce ).css( "paddingBottom" ), 10 ) || 0 ) -
this.helperProportions.height - this.margins.top this.helperProportions.height - this.margins.top
]; ];
} }
@ -1290,10 +1289,10 @@ return $.widget( "ui.sortable", $.ui.mouse, {
} }
var mod = d === "absolute" ? 1 : -1, var mod = d === "absolute" ? 1 : -1,
scroll = this.cssPosition === "absolute" && scroll = this.cssPosition === "absolute" &&
!( this.scrollParent[ 0 ] !== this.document[ 0 ] && !( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
$.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ? $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ?
this.offsetParent : this.offsetParent :
this.scrollParent, this.scrollParent,
scrollIsRootNode = ( /(html|body)/i ).test( scroll[ 0 ].tagName ); scrollIsRootNode = ( /(html|body)/i ).test( scroll[ 0 ].tagName );
return { return {
@ -1323,7 +1322,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
this.offset.parent.left * mod - this.offset.parent.left * mod -
( ( this.cssPosition === "fixed" ? ( ( this.cssPosition === "fixed" ?
-this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 :
scroll.scrollLeft() ) * mod ) scroll.scrollLeft() ) * mod )
) )
}; };
@ -1336,18 +1335,18 @@ return $.widget( "ui.sortable", $.ui.mouse, {
pageX = event.pageX, pageX = event.pageX,
pageY = event.pageY, pageY = event.pageY,
scroll = this.cssPosition === "absolute" && scroll = this.cssPosition === "absolute" &&
!( this.scrollParent[ 0 ] !== this.document[ 0 ] && !( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
$.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ? $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ?
this.offsetParent : this.offsetParent :
this.scrollParent, this.scrollParent,
scrollIsRootNode = ( /(html|body)/i ).test( scroll[ 0 ].tagName ); scrollIsRootNode = ( /(html|body)/i ).test( scroll[ 0 ].tagName );
// This is another very weird special case that only happens for relative elements: // This is another very weird special case that only happens for relative elements:
// 1. If the css position is relative // 1. If the css position is relative
// 2. and the scroll parent is the document or similar to the offset parent // 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 // 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 ] && 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(); this.offset.relative = this._getRelativeOffset();
} }
@ -1379,20 +1378,20 @@ return $.widget( "ui.sortable", $.ui.mouse, {
pageY = this.containment ? pageY = this.containment ?
( ( top - this.offset.click.top >= this.containment[ 1 ] && ( ( top - this.offset.click.top >= this.containment[ 1 ] &&
top - this.offset.click.top <= this.containment[ 3 ] ) ? top - this.offset.click.top <= this.containment[ 3 ] ) ?
top : top :
( ( top - this.offset.click.top >= this.containment[ 1 ] ) ? ( ( top - this.offset.click.top >= this.containment[ 1 ] ) ?
top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) : top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) :
top; top;
left = this.originalPageX + Math.round( ( pageX - this.originalPageX ) / left = this.originalPageX + Math.round( ( pageX - this.originalPageX ) /
o.grid[ 0 ] ) * o.grid[ 0 ]; o.grid[ 0 ] ) * o.grid[ 0 ];
pageX = this.containment ? pageX = this.containment ?
( ( left - this.offset.click.left >= this.containment[ 0 ] && ( ( left - this.offset.click.left >= this.containment[ 0 ] &&
left - this.offset.click.left <= this.containment[ 2 ] ) ? left - this.offset.click.left <= this.containment[ 2 ] ) ?
left : left :
( ( left - this.offset.click.left >= this.containment[ 0 ] ) ? ( ( left - this.offset.click.left >= this.containment[ 0 ] ) ?
left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) : left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) :
left; left;
} }
} }
@ -1499,9 +1498,9 @@ return $.widget( "ui.sortable", $.ui.mouse, {
} ); } );
} }
if ( ( this.fromOutside || if ( ( this.fromOutside ||
this.domPosition.prev !== this.domPosition.prev !==
this.currentItem.prev().not( ".ui-sortable-helper" )[ 0 ] || this.currentItem.prev().not( ".ui-sortable-helper" )[ 0 ] ||
this.domPosition.parent !== this.currentItem.parent()[ 0 ] ) && !noPropagation ) { this.domPosition.parent !== this.currentItem.parent()[ 0 ] ) && !noPropagation ) {
// Trigger update callback if the DOM position has changed // Trigger update callback if the DOM position has changed
delayedTriggers.push( function( event ) { delayedTriggers.push( function( event ) {

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Spinner 1.13.0 * jQuery UI Spinner 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -47,7 +47,7 @@ function spinnerModifier( fn ) {
} }
$.widget( "ui.spinner", { $.widget( "ui.spinner", {
version: "1.13.0", version: "1.13.1",
defaultElement: "<input>", defaultElement: "<input>",
widgetEventPrefix: "spin", widgetEventPrefix: "spin",
options: { options: {
@ -234,10 +234,10 @@ $.widget( "ui.spinner", {
.wrap( "<span>" ) .wrap( "<span>" )
.parent() .parent()
// Add buttons // Add buttons
.append( .append(
"<a></a><a></a>" "<a></a><a></a>"
); );
}, },
_draw: function() { _draw: function() {
@ -275,7 +275,7 @@ $.widget( "ui.spinner", {
// IE 6 doesn't understand height: 50% for the buttons // IE 6 doesn't understand height: 50% for the buttons
// unless the wrapper has an explicit height // unless the wrapper has an explicit height
if ( this.buttons.height() > Math.ceil( this.uiSpinner.height() * 0.5 ) && 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() ); this.uiSpinner.height( this.uiSpinner.height() );
} }
}, },
@ -285,18 +285,18 @@ $.widget( "ui.spinner", {
keyCode = $.ui.keyCode; keyCode = $.ui.keyCode;
switch ( event.keyCode ) { switch ( event.keyCode ) {
case keyCode.UP: case keyCode.UP:
this._repeat( null, 1, event ); this._repeat( null, 1, event );
return true; return true;
case keyCode.DOWN: case keyCode.DOWN:
this._repeat( null, -1, event ); this._repeat( null, -1, event );
return true; return true;
case keyCode.PAGE_UP: case keyCode.PAGE_UP:
this._repeat( null, options.page, event ); this._repeat( null, options.page, event );
return true; return true;
case keyCode.PAGE_DOWN: case keyCode.PAGE_DOWN:
this._repeat( null, -options.page, event ); this._repeat( null, -options.page, event );
return true; return true;
} }
return false; return false;
@ -561,8 +561,8 @@ if ( $.uiBackCompat !== false ) {
.wrap( this._uiSpinnerHtml() ) .wrap( this._uiSpinnerHtml() )
.parent() .parent()
// Add buttons // Add buttons
.append( this._buttonHtml() ); .append( this._buttonHtml() );
}, },
_uiSpinnerHtml: function() { _uiSpinnerHtml: function() {
return "<span>"; return "<span>";

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Tabs 1.13.0 * jQuery UI Tabs 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -35,7 +35,7 @@
"use strict"; "use strict";
$.widget( "ui.tabs", { $.widget( "ui.tabs", {
version: "1.13.0", version: "1.13.1",
delay: 300, delay: 300,
options: { options: {
active: null, active: null,
@ -176,39 +176,39 @@ $.widget( "ui.tabs", {
} }
switch ( event.keyCode ) { switch ( event.keyCode ) {
case $.ui.keyCode.RIGHT: case $.ui.keyCode.RIGHT:
case $.ui.keyCode.DOWN: case $.ui.keyCode.DOWN:
selectedIndex++; selectedIndex++;
break; break;
case $.ui.keyCode.UP: case $.ui.keyCode.UP:
case $.ui.keyCode.LEFT: case $.ui.keyCode.LEFT:
goingForward = false; goingForward = false;
selectedIndex--; selectedIndex--;
break; break;
case $.ui.keyCode.END: case $.ui.keyCode.END:
selectedIndex = this.anchors.length - 1; selectedIndex = this.anchors.length - 1;
break; break;
case $.ui.keyCode.HOME: case $.ui.keyCode.HOME:
selectedIndex = 0; selectedIndex = 0;
break; break;
case $.ui.keyCode.SPACE: case $.ui.keyCode.SPACE:
// Activate only, no collapsing // Activate only, no collapsing
event.preventDefault(); event.preventDefault();
clearTimeout( this.activating ); clearTimeout( this.activating );
this._activate( selectedIndex ); this._activate( selectedIndex );
return; return;
case $.ui.keyCode.ENTER: case $.ui.keyCode.ENTER:
// Toggle (cancel delayed activation, allow collapsing) // Toggle (cancel delayed activation, allow collapsing)
event.preventDefault(); event.preventDefault();
clearTimeout( this.activating ); clearTimeout( this.activating );
// Determine if we should collapse or activate // Determine if we should collapse or activate
this._activate( selectedIndex === this.options.active ? false : selectedIndex ); this._activate( selectedIndex === this.options.active ? false : selectedIndex );
return; return;
default: default:
return; return;
} }
// Focus the appropriate tab, based on which key was pressed // Focus the appropriate tab, based on which key was pressed
@ -330,7 +330,7 @@ $.widget( "ui.tabs", {
options.active = false; options.active = false;
this.active = $(); 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 ] ) ) { } else if ( this.active.length && !$.contains( this.tablist[ 0 ], this.active[ 0 ] ) ) {
// all remaining tabs are disabled // all remaining tabs are disabled
@ -338,12 +338,12 @@ $.widget( "ui.tabs", {
options.active = false; options.active = false;
this.active = $(); this.active = $();
// activate previous tab // activate previous tab
} else { } else {
this._activate( this._findNextTab( Math.max( 0, options.active - 1 ), false ) ); this._activate( this._findNextTab( Math.max( 0, options.active - 1 ), false ) );
} }
// was active, active tab still exists // was active, active tab still exists
} else { } else {
// make sure active index is correct // make sure active index is correct
@ -447,7 +447,7 @@ $.widget( "ui.tabs", {
panelId = selector.substring( 1 ); panelId = selector.substring( 1 );
panel = that.element.find( that._sanitizeSelector( selector ) ); panel = that.element.find( that._sanitizeSelector( selector ) );
// remote tab // remote tab
} else { } else {
// If the tab doesn't already have aria-controls, // If the tab doesn't already have aria-controls,
@ -605,17 +605,17 @@ $.widget( "ui.tabs", {
if ( tab.hasClass( "ui-state-disabled" ) || if ( tab.hasClass( "ui-state-disabled" ) ||
// tab is already loading // tab is already loading
tab.hasClass( "ui-tabs-loading" ) || tab.hasClass( "ui-tabs-loading" ) ||
// can't switch durning an animation // can't switch durning an animation
this.running || this.running ||
// click on active header, but not collapsible // click on active header, but not collapsible
( clickedIsActive && !options.collapsible ) || ( clickedIsActive && !options.collapsible ) ||
// allow canceling activation // allow canceling activation
( this._trigger( "beforeActivate", event, eventData ) === false ) ) { ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
return; return;
} }

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery UI Tooltip 1.13.0 * jQuery UI Tooltip 1.13.1
* http://jqueryui.com * http://jqueryui.com
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -35,7 +35,7 @@
"use strict"; "use strict";
$.widget( "ui.tooltip", { $.widget( "ui.tooltip", {
version: "1.13.0", version: "1.13.1",
options: { options: {
classes: { classes: {
"ui-tooltip": "ui-corner-all ui-widget-shadow" "ui-tooltip": "ui-corner-all ui-widget-shadow"
@ -217,7 +217,7 @@ $.widget( "ui.tooltip", {
eventType = event ? event.type : null; eventType = event ? event.type : null;
if ( typeof contentOption === "string" || contentOption.nodeType || if ( typeof contentOption === "string" || contentOption.nodeType ||
contentOption.jquery ) { contentOption.jquery ) {
return this._open( event, target, contentOption ); return this._open( event, target, contentOption );
} }
@ -348,7 +348,10 @@ $.widget( "ui.tooltip", {
// tooltips will handle this in destroy. // tooltips will handle this in destroy.
if ( target[ 0 ] !== this.element[ 0 ] ) { if ( target[ 0 ] !== this.element[ 0 ] ) {
events.remove = function() { events.remove = function() {
this._removeTooltip( this._find( target ).tooltip ); var targetElement = this._find( target );
if ( targetElement ) {
this._removeTooltip( targetElement.tooltip );
}
}; };
} }

File diff suppressed because one or more lines are too long

View File

@ -765,55 +765,55 @@ function wp_default_scripts( $scripts ) {
// In order to keep backwards compatibility, and to keep the optimized loading, // 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. // 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'. // 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-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.0', 1 ); $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.13.1', 1 );
$scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.13.0', 1 ); $scripts->add( 'jquery-effects-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.0', 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.0', 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.0', 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.0', 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.0', 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.0', 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.0', 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.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.1', 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-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.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.1', 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-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.0', 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.0', 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.0', 1 ); $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 );
// Widgets // 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-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.0', 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.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.1', 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-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.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.1', 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-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.0', 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.0', 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.0', 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.0', 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.0', 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.0', 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.0', 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 // 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-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.0', 1 ); $scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 );
// Interactions // 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-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.0', 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.0', 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.0', 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.0', 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`. // As of 1.12.1 `jquery-ui-position` and `jquery-ui-widget` are part of `jquery-ui-core`.
// Listed here for back-compat. // Listed here for back-compat.
$scripts->add( 'jquery-ui-position', 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.0', 1 ); $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13.1', 1 );
// Strings for 'jquery-ui-autocomplete' live region messages. // Strings for 'jquery-ui-autocomplete' live region messages.
did_action( 'init' ) && $scripts->localize( did_action( 'init' ) && $scripts->localize(

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.0-alpha-52647'; $wp_version = '6.0-alpha-52648';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.