External Libraries: Update jQuery UI to 1.13.0-rc2.
The final release is expected at the beginning of October. Updating to rc2 now gives everybody plenty of time to test and report any issues either with UI 1.13.0 or with the WordPress implementation. Props Clorith, mgol, azaozz. See #52163. Built from https://develop.svn.wordpress.org/trunk@51794 git-svn-id: http://core.svn.wordpress.org/trunk@51401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b8322a053e
commit
e175db4ae1
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Accordion 1.12.1
|
||||
* jQuery UI Accordion 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -9,9 +9,9 @@
|
|||
|
||||
//>>label: Accordion
|
||||
//>>group: Widgets
|
||||
// jscs:disable maximumLineLength
|
||||
/* eslint-disable max-len */
|
||||
//>>description: Displays collapsible content panels for presenting information in a limited amount of space.
|
||||
// jscs:enable maximumLineLength
|
||||
/* eslint-enable max-len */
|
||||
//>>docs: http://api.jqueryui.com/accordion/
|
||||
//>>demos: http://jqueryui.com/accordion/
|
||||
//>>css.structure: ../../themes/base/core.css
|
||||
|
@ -19,6 +19,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -31,10 +33,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.widget( "ui.accordion", {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
options: {
|
||||
active: 0,
|
||||
animate: {},
|
||||
|
@ -45,7 +48,9 @@ return $.widget( "ui.accordion", {
|
|||
},
|
||||
collapsible: false,
|
||||
event: "click",
|
||||
header: "> li > :first-child, > :not(li):even",
|
||||
header: function( elem ) {
|
||||
return elem.find( "> li > :first-child" ).add( elem.find( "> :not(li)" ).even() );
|
||||
},
|
||||
heightStyle: "auto",
|
||||
icons: {
|
||||
activeHeader: "ui-icon-triangle-1-s",
|
||||
|
@ -276,7 +281,11 @@ return $.widget( "ui.accordion", {
|
|||
var prevHeaders = this.headers,
|
||||
prevPanels = this.panels;
|
||||
|
||||
this.headers = this.element.find( this.options.header );
|
||||
if ( typeof this.options.header === "function" ) {
|
||||
this.headers = this.options.header( this.element );
|
||||
} else {
|
||||
this.headers = this.element.find( this.options.header );
|
||||
}
|
||||
this._addClass( this.headers, "ui-accordion-header ui-accordion-header-collapsed",
|
||||
"ui-state-default" );
|
||||
|
||||
|
@ -607,4 +616,4 @@ return $.widget( "ui.accordion", {
|
|||
}
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Autocomplete 1.12.1
|
||||
* jQuery UI Autocomplete 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -17,6 +17,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -30,10 +32,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
$.widget( "ui.autocomplete", {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
defaultElement: "<input>",
|
||||
options: {
|
||||
appendTo: null,
|
||||
|
@ -196,11 +199,6 @@ $.widget( "ui.autocomplete", {
|
|||
this.previous = this._value();
|
||||
},
|
||||
blur: function( event ) {
|
||||
if ( this.cancelBlur ) {
|
||||
delete this.cancelBlur;
|
||||
return;
|
||||
}
|
||||
|
||||
clearTimeout( this.searching );
|
||||
this.close( event );
|
||||
this._change( event );
|
||||
|
@ -216,31 +214,24 @@ $.widget( "ui.autocomplete", {
|
|||
role: null
|
||||
} )
|
||||
.hide()
|
||||
|
||||
// Support: IE 11 only, Edge <= 14
|
||||
// For other browsers, we preventDefault() on the mousedown event
|
||||
// to keep the dropdown from taking focus from the input. This doesn't
|
||||
// work for IE/Edge, causing problems with selection and scrolling (#9638)
|
||||
// Happily, IE and Edge support an "unselectable" attribute that
|
||||
// prevents an element from receiving focus, exactly what we want here.
|
||||
.attr( {
|
||||
"unselectable": "on"
|
||||
} )
|
||||
.menu( "instance" );
|
||||
|
||||
this._addClass( this.menu.element, "ui-autocomplete", "ui-front" );
|
||||
this._on( this.menu.element, {
|
||||
mousedown: function( event ) {
|
||||
|
||||
// prevent moving focus out of the text field
|
||||
// Prevent moving focus out of the text field
|
||||
event.preventDefault();
|
||||
|
||||
// IE doesn't prevent moving focus even with event.preventDefault()
|
||||
// so we set a flag to know when we should ignore the blur event
|
||||
this.cancelBlur = true;
|
||||
this._delay( function() {
|
||||
delete this.cancelBlur;
|
||||
|
||||
// Support: IE 8 only
|
||||
// Right clicking a menu item or selecting text from the menu items will
|
||||
// result in focus moving out of the input. However, we've already received
|
||||
// and ignored the blur event because of the cancelBlur flag set above. So
|
||||
// we restore focus to ensure that the menu closes properly based on the user's
|
||||
// next actions.
|
||||
if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) {
|
||||
this.element.trigger( "focus" );
|
||||
}
|
||||
} );
|
||||
},
|
||||
menufocus: function( event, ui ) {
|
||||
var label, item;
|
||||
|
@ -271,7 +262,7 @@ $.widget( "ui.autocomplete", {
|
|||
|
||||
// Announce the value in the liveRegion
|
||||
label = ui.item.attr( "aria-label" ) || item.value;
|
||||
if ( label && $.trim( label ).length ) {
|
||||
if ( label && String.prototype.trim.call( label ).length ) {
|
||||
this.liveRegion.children().hide();
|
||||
$( "<div>" ).text( label ).appendTo( this.liveRegion );
|
||||
}
|
||||
|
@ -383,7 +374,7 @@ $.widget( "ui.autocomplete", {
|
|||
_initSource: function() {
|
||||
var array, url,
|
||||
that = this;
|
||||
if ( $.isArray( this.options.source ) ) {
|
||||
if ( Array.isArray( this.options.source ) ) {
|
||||
array = this.options.source;
|
||||
this.source = function( request, response ) {
|
||||
response( $.ui.autocomplete.filter( array, request.term ) );
|
||||
|
@ -455,7 +446,7 @@ $.widget( "ui.autocomplete", {
|
|||
_response: function() {
|
||||
var index = ++this.requestIndex;
|
||||
|
||||
return $.proxy( function( content ) {
|
||||
return function( content ) {
|
||||
if ( index === this.requestIndex ) {
|
||||
this.__response( content );
|
||||
}
|
||||
|
@ -464,7 +455,7 @@ $.widget( "ui.autocomplete", {
|
|||
if ( !this.pending ) {
|
||||
this._removeClass( "ui-autocomplete-loading" );
|
||||
}
|
||||
}, this );
|
||||
}.bind( this );
|
||||
},
|
||||
|
||||
__response: function( content ) {
|
||||
|
@ -624,7 +615,7 @@ $.widget( "ui.autocomplete", {
|
|||
var editable = element.prop( "contentEditable" );
|
||||
|
||||
if ( editable === "inherit" ) {
|
||||
return this._isContentEditable( element.parent() );
|
||||
return this._isContentEditable( element.parent() );
|
||||
}
|
||||
|
||||
return editable === "true";
|
||||
|
@ -675,4 +666,4 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, {
|
|||
|
||||
return $.ui.autocomplete;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Button 1.12.1
|
||||
* jQuery UI Button 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -17,6 +17,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -35,10 +37,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
$.widget( "ui.button", {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
defaultElement: "<button>",
|
||||
options: {
|
||||
classes: {
|
||||
|
@ -262,7 +265,7 @@ $.widget( "ui.button", {
|
|||
this._toggleClass( null, "ui-state-disabled", value );
|
||||
this.element[ 0 ].disabled = value;
|
||||
if ( value ) {
|
||||
this.element.blur();
|
||||
this.element.trigger( "blur" );
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -341,22 +344,82 @@ if ( $.uiBackCompat !== false ) {
|
|||
} );
|
||||
|
||||
$.fn.button = ( function( orig ) {
|
||||
return function() {
|
||||
if ( !this.length || ( this.length && this[ 0 ].tagName !== "INPUT" ) ||
|
||||
( this.length && this[ 0 ].tagName === "INPUT" && (
|
||||
this.attr( "type" ) !== "checkbox" && this.attr( "type" ) !== "radio"
|
||||
) ) ) {
|
||||
return orig.apply( this, arguments );
|
||||
}
|
||||
if ( !$.ui.checkboxradio ) {
|
||||
$.error( "Checkboxradio widget missing" );
|
||||
}
|
||||
if ( arguments.length === 0 ) {
|
||||
return this.checkboxradio( {
|
||||
"icon": false
|
||||
return function( options ) {
|
||||
var isMethodCall = typeof options === "string";
|
||||
var args = Array.prototype.slice.call( arguments, 1 );
|
||||
var returnValue = this;
|
||||
|
||||
if ( isMethodCall ) {
|
||||
|
||||
// If this is an empty collection, we need to have the instance method
|
||||
// return undefined instead of the jQuery instance
|
||||
if ( !this.length && options === "instance" ) {
|
||||
returnValue = undefined;
|
||||
} else {
|
||||
this.each( function() {
|
||||
var methodValue;
|
||||
var type = $( this ).attr( "type" );
|
||||
var name = type !== "checkbox" && type !== "radio" ?
|
||||
"button" :
|
||||
"checkboxradio";
|
||||
var instance = $.data( this, "ui-" + name );
|
||||
|
||||
if ( options === "instance" ) {
|
||||
returnValue = instance;
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( !instance ) {
|
||||
return $.error( "cannot call methods on button" +
|
||||
" prior to initialization; " +
|
||||
"attempted to call method '" + options + "'" );
|
||||
}
|
||||
|
||||
if ( typeof instance[ options ] !== "function" ||
|
||||
options.charAt( 0 ) === "_" ) {
|
||||
return $.error( "no such method '" + options + "' for button" +
|
||||
" widget instance" );
|
||||
}
|
||||
|
||||
methodValue = instance[ options ].apply( instance, args );
|
||||
|
||||
if ( methodValue !== instance && methodValue !== undefined ) {
|
||||
returnValue = methodValue && methodValue.jquery ?
|
||||
returnValue.pushStack( methodValue.get() ) :
|
||||
methodValue;
|
||||
return false;
|
||||
}
|
||||
} );
|
||||
}
|
||||
} else {
|
||||
|
||||
// Allow multiple hashes to be passed on init
|
||||
if ( args.length ) {
|
||||
options = $.widget.extend.apply( null, [ options ].concat( args ) );
|
||||
}
|
||||
|
||||
this.each( function() {
|
||||
var type = $( this ).attr( "type" );
|
||||
var name = type !== "checkbox" && type !== "radio" ? "button" : "checkboxradio";
|
||||
var instance = $.data( this, "ui-" + name );
|
||||
|
||||
if ( instance ) {
|
||||
instance.option( options || {} );
|
||||
if ( instance._init ) {
|
||||
instance._init();
|
||||
}
|
||||
} else {
|
||||
if ( name === "button" ) {
|
||||
orig.call( $( this ), options );
|
||||
return;
|
||||
}
|
||||
|
||||
$( this ).checkboxradio( $.extend( { icon: false }, options ) );
|
||||
}
|
||||
} );
|
||||
}
|
||||
return this.checkboxradio.apply( this, arguments );
|
||||
|
||||
return returnValue;
|
||||
};
|
||||
} )( $.fn.button );
|
||||
|
||||
|
@ -382,4 +445,4 @@ if ( $.uiBackCompat !== false ) {
|
|||
|
||||
return $.ui.button;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Checkboxradio 1.12.1
|
||||
* jQuery UI Checkboxradio 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -18,6 +18,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -30,10 +32,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
$.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
options: {
|
||||
disabled: null,
|
||||
label: null,
|
||||
|
@ -112,9 +115,6 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
|||
|
||||
if ( checked ) {
|
||||
this._addClass( this.label, "ui-checkboxradio-checked", "ui-state-active" );
|
||||
if ( this.icon ) {
|
||||
this._addClass( this.icon, null, "ui-state-hover" );
|
||||
}
|
||||
}
|
||||
|
||||
this._on( {
|
||||
|
@ -149,7 +149,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
|||
_getRadioGroup: function() {
|
||||
var group;
|
||||
var name = this.element[ 0 ].name;
|
||||
var nameSelector = "input[name='" + $.ui.escapeSelector( name ) + "']";
|
||||
var nameSelector = "input[name='" + $.escapeSelector( name ) + "']";
|
||||
|
||||
if ( !name ) {
|
||||
return $( [] );
|
||||
|
@ -161,7 +161,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
|||
|
||||
// Not inside a form, check all inputs that also are not inside a form
|
||||
group = $( nameSelector ).filter( function() {
|
||||
return $( this ).form().length === 0;
|
||||
return $( this )._form().length === 0;
|
||||
} );
|
||||
}
|
||||
|
||||
|
@ -280,4 +280,4 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
|||
|
||||
return $.ui.checkboxradio;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Checkboxradio 1.12.1
|
||||
* jQuery UI Checkboxradio 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(s){return s.widget("ui.checkboxradio",[s.ui.formResetMixin,{version:"1.12.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.icon&&this._addClass(this.icon,null,"ui-state-hover")),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.ui.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.0-rc.2",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});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Controlgroup 1.12.1
|
||||
* jQuery UI Controlgroup 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -17,6 +17,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -29,11 +31,13 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
|
||||
|
||||
return $.widget( "ui.controlgroup", {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
defaultElement: "<div>",
|
||||
options: {
|
||||
direction: "horizontal",
|
||||
|
@ -150,7 +154,7 @@ return $.widget( "ui.controlgroup", {
|
|||
} );
|
||||
} );
|
||||
|
||||
this.childWidgets = $( $.unique( childWidgets ) );
|
||||
this.childWidgets = $( $.uniqueSort( childWidgets ) );
|
||||
this._addClass( this.childWidgets, "ui-controlgroup-item" );
|
||||
},
|
||||
|
||||
|
@ -234,7 +238,7 @@ return $.widget( "ui.controlgroup", {
|
|||
var result = {};
|
||||
$.each( classes, function( key ) {
|
||||
var current = instance.options.classes[ key ] || "";
|
||||
current = $.trim( current.replace( controlgroupCornerRegex, "" ) );
|
||||
current = String.prototype.trim.call( current.replace( controlgroupCornerRegex, "" ) );
|
||||
result[ key ] = ( current + " " + classes[ key ] ).replace( /\s+/g, " " );
|
||||
} );
|
||||
return result;
|
||||
|
@ -295,4 +299,4 @@ return $.widget( "ui.controlgroup", {
|
|||
}
|
||||
}
|
||||
} );
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Controlgroup 1.12.1
|
||||
* jQuery UI Controlgroup 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(t){"function"==typeof define&&define.amd?define(["jquery","./core"],t):t(jQuery)}(function(r){var s=/ui-corner-([a-z]){2,6}/g;return r.widget("ui.controlgroup",{version:"1.12.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.unique(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=r.trim(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.0-rc.2",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"))}})});
|
|
@ -1,8 +1,10 @@
|
|||
/*! jQuery UI - v1.12.1 - 2020-09-25
|
||||
/*! jQuery UI - v1.13.0-rc.2 - 2021-09-05
|
||||
* http://jqueryui.com
|
||||
* Includes: data.js, disable-selection.js, escape-selector.js, focusable.js, form-reset-mixin.js, form.js, ie.js, jquery-1-7.js, keycode.js, labels.js, plugin.js, position.js, safe-active-element.js, safe-blur.js, scroll-parent.js, tabbable.js, unique-id.js, version.js, widget.js
|
||||
* Copyright jQuery Foundation and other contributors; Licensed */
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -13,15 +15,16 @@
|
|||
factory( jQuery );
|
||||
}
|
||||
} ( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
// Source: version.js
|
||||
$.ui = $.ui || {};
|
||||
|
||||
$.ui.version = "1.12.1";
|
||||
$.ui.version = "1.13.0-rc.2";
|
||||
|
||||
// Source: data.js
|
||||
/*!
|
||||
* jQuery UI :data 1.12.1
|
||||
* jQuery UI :data 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -34,7 +37,7 @@ $.ui.version = "1.12.1";
|
|||
//>>description: Selects elements which have data stored under the specified key.
|
||||
//>>docs: http://api.jqueryui.com/data-selector/
|
||||
|
||||
$.extend( $.expr[ ":" ], {
|
||||
$.extend( $.expr.pseudos, {
|
||||
data: $.expr.createPseudo ?
|
||||
$.expr.createPseudo( function( dataName ) {
|
||||
return function( elem ) {
|
||||
|
@ -48,10 +51,9 @@ $.extend( $.expr[ ":" ], {
|
|||
}
|
||||
} );
|
||||
|
||||
|
||||
// Source: disable-selection.js
|
||||
/*!
|
||||
* jQuery UI Disable Selection 1.12.1
|
||||
* jQuery UI Disable Selection 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -83,18 +85,9 @@ $.fn.extend( {
|
|||
}
|
||||
} );
|
||||
|
||||
// Source: escape-selector.js
|
||||
// Internal use only
|
||||
$.ui.escapeSelector = ( function() {
|
||||
var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;
|
||||
return function( selector ) {
|
||||
return selector.replace( selectorEscape, "\\$1" );
|
||||
};
|
||||
} )();
|
||||
|
||||
// Source: focusable.js
|
||||
/*!
|
||||
* jQuery UI Focusable 1.12.1
|
||||
* jQuery UI Focusable 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -153,10 +146,10 @@ function visible( element ) {
|
|||
element = element.parent();
|
||||
visibility = element.css( "visibility" );
|
||||
}
|
||||
return visibility !== "hidden";
|
||||
return visibility === "visible";
|
||||
}
|
||||
|
||||
$.extend( $.expr[ ":" ], {
|
||||
$.extend( $.expr.pseudos, {
|
||||
focusable: function( element ) {
|
||||
return $.ui.focusable( element, $.attr( element, "tabindex" ) != null );
|
||||
}
|
||||
|
@ -166,13 +159,13 @@ $.extend( $.expr[ ":" ], {
|
|||
// Support: IE8 Only
|
||||
// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop
|
||||
// with a string, so we need to find the proper form.
|
||||
$.fn.form = function() {
|
||||
$.fn._form = function() {
|
||||
return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
|
||||
};
|
||||
|
||||
// Source: form-reset-mixin.js
|
||||
/*!
|
||||
* jQuery UI Form Reset Mixin 1.12.1
|
||||
* jQuery UI Form Reset Mixin 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -199,7 +192,7 @@ $.ui.formResetMixin = {
|
|||
},
|
||||
|
||||
_bindFormResetHandler: function() {
|
||||
this.form = this.element.form();
|
||||
this.form = this.element._form();
|
||||
if ( !this.form.length ) {
|
||||
return;
|
||||
}
|
||||
|
@ -235,9 +228,9 @@ $.ui.formResetMixin = {
|
|||
// This file is deprecated
|
||||
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
||||
|
||||
// Source: jquery-1-7.js
|
||||
// Source: jquery-patch.js
|
||||
/*!
|
||||
* jQuery UI Support for jQuery core 1.7.x 1.12.1
|
||||
* jQuery UI Support for jQuery core 1.8.x and newer 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -246,75 +239,72 @@ $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
|||
*
|
||||
*/
|
||||
|
||||
//>>label: jQuery 1.7 Support
|
||||
//>>label: jQuery 1.8+ Support
|
||||
//>>group: Core
|
||||
//>>description: Support version 1.7.x of jQuery core
|
||||
//>>description: Support version 1.8.x and newer of jQuery core
|
||||
|
||||
// Support: jQuery 1.7 only
|
||||
// Not a great way to check versions, but since we only support 1.7+ and only
|
||||
// need to detect <1.8, this is a simple check that should suffice. Checking
|
||||
// for "1.7." would be a bit safer, but the version string is 1.7, not 1.7.0
|
||||
// and we'll never reach 1.70.0 (if we do, we certainly won't be supporting
|
||||
// 1.7 anymore). See #11197 for why we're not using feature detection.
|
||||
if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {
|
||||
// Support: jQuery 1.9.x or older
|
||||
// $.expr[ ":" ] is deprecated.
|
||||
if ( !$.expr.pseudos ) {
|
||||
$.expr.pseudos = $.expr[ ":" ];
|
||||
}
|
||||
|
||||
// Setters for .innerWidth(), .innerHeight(), .outerWidth(), .outerHeight()
|
||||
// Unlike jQuery Core 1.8+, these only support numeric values to set the
|
||||
// dimensions in pixels
|
||||
$.each( [ "Width", "Height" ], function( i, name ) {
|
||||
var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
|
||||
type = name.toLowerCase(),
|
||||
orig = {
|
||||
innerWidth: $.fn.innerWidth,
|
||||
innerHeight: $.fn.innerHeight,
|
||||
outerWidth: $.fn.outerWidth,
|
||||
outerHeight: $.fn.outerHeight
|
||||
};
|
||||
// Support: jQuery 1.11.x or older
|
||||
// $.unique has been renamed to $.uniqueSort
|
||||
if ( !$.uniqueSort ) {
|
||||
$.uniqueSort = $.unique;
|
||||
}
|
||||
|
||||
function reduce( elem, size, border, margin ) {
|
||||
$.each( side, function() {
|
||||
size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
|
||||
if ( border ) {
|
||||
size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
|
||||
}
|
||||
if ( margin ) {
|
||||
size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
|
||||
}
|
||||
} );
|
||||
return size;
|
||||
// Support: jQuery 2.2.x or older.
|
||||
// This method has been defined in jQuery 3.0.0.
|
||||
// Code from https://github.com/jquery/jquery/blob/e539bac79e666bba95bba86d690b4e609dca2286/src/selector/escapeSelector.js
|
||||
if ( !$.escapeSelector ) {
|
||||
|
||||
// CSS string/identifier serialization
|
||||
// https://drafts.csswg.org/cssom/#common-serializing-idioms
|
||||
var rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;
|
||||
|
||||
var fcssescape = function( ch, asCodePoint ) {
|
||||
if ( asCodePoint ) {
|
||||
|
||||
// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
|
||||
if ( ch === "\0" ) {
|
||||
return "\uFFFD";
|
||||
}
|
||||
|
||||
// Control characters and (dependent upon position) numbers get escaped as code points
|
||||
return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
|
||||
}
|
||||
|
||||
$.fn[ "inner" + name ] = function( size ) {
|
||||
if ( size === undefined ) {
|
||||
return orig[ "inner" + name ].call( this );
|
||||
}
|
||||
|
||||
return this.each( function() {
|
||||
$( this ).css( type, reduce( this, size ) + "px" );
|
||||
} );
|
||||
};
|
||||
|
||||
$.fn[ "outer" + name ] = function( size, margin ) {
|
||||
if ( typeof size !== "number" ) {
|
||||
return orig[ "outer" + name ].call( this, size );
|
||||
}
|
||||
|
||||
return this.each( function() {
|
||||
$( this ).css( type, reduce( this, size, true, margin ) + "px" );
|
||||
} );
|
||||
};
|
||||
} );
|
||||
|
||||
$.fn.addBack = function( selector ) {
|
||||
return this.add( selector == null ?
|
||||
this.prevObject : this.prevObject.filter( selector )
|
||||
);
|
||||
// Other potentially-special ASCII characters get backslash-escaped
|
||||
return "\\" + ch;
|
||||
};
|
||||
|
||||
$.escapeSelector = function( sel ) {
|
||||
return ( sel + "" ).replace( rcssescape, fcssescape );
|
||||
};
|
||||
}
|
||||
|
||||
// Support: jQuery 3.4.x or older
|
||||
// These methods have been defined in jQuery 3.5.0.
|
||||
if ( !$.fn.even || !$.fn.odd ) {
|
||||
$.fn.extend( {
|
||||
even: function() {
|
||||
return this.filter( function( i ) {
|
||||
return i % 2 === 0;
|
||||
} );
|
||||
},
|
||||
odd: function() {
|
||||
return this.filter( function( i ) {
|
||||
return i % 2 === 1;
|
||||
} );
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
// Source: keycode.js
|
||||
/*!
|
||||
* jQuery UI Keycode 1.12.1
|
||||
* jQuery UI Keycode 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -348,7 +338,7 @@ $.ui.keyCode = {
|
|||
|
||||
// Source: labels.js
|
||||
/*!
|
||||
* jQuery UI Labels 1.12.1
|
||||
* jQuery UI Labels 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -364,6 +354,10 @@ $.ui.keyCode = {
|
|||
$.fn.labels = function() {
|
||||
var ancestor, selector, id, labels, ancestors;
|
||||
|
||||
if ( !this.length ) {
|
||||
return this.pushStack( [] );
|
||||
}
|
||||
|
||||
// Check control.labels first
|
||||
if ( this[ 0 ].labels && this[ 0 ].labels.length ) {
|
||||
return this.pushStack( this[ 0 ].labels );
|
||||
|
@ -386,7 +380,7 @@ $.fn.labels = function() {
|
|||
ancestors = ancestor.add( ancestor.length ? ancestor.siblings() : this.siblings() );
|
||||
|
||||
// Create a selector for the label based on the id
|
||||
selector = "label[for='" + $.ui.escapeSelector( id ) + "']";
|
||||
selector = "label[for='" + $.escapeSelector( id ) + "']";
|
||||
|
||||
labels = labels.add( ancestors.find( selector ).addBack( selector ) );
|
||||
|
||||
|
@ -430,7 +424,7 @@ $.ui.plugin = {
|
|||
|
||||
// Source: position.js
|
||||
/*!
|
||||
* jQuery UI Position 1.12.1
|
||||
* jQuery UI Position 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -468,6 +462,10 @@ function parseCss( element, property ) {
|
|||
return parseInt( $.css( element, property ), 10 ) || 0;
|
||||
}
|
||||
|
||||
function isWindow( obj ) {
|
||||
return obj != null && obj === obj.window;
|
||||
}
|
||||
|
||||
function getDimensions( elem ) {
|
||||
var raw = elem[ 0 ];
|
||||
if ( raw.nodeType === 9 ) {
|
||||
|
@ -477,7 +475,7 @@ function getDimensions( elem ) {
|
|||
offset: { top: 0, left: 0 }
|
||||
};
|
||||
}
|
||||
if ( $.isWindow( raw ) ) {
|
||||
if ( isWindow( raw ) ) {
|
||||
return {
|
||||
width: elem.width(),
|
||||
height: elem.height(),
|
||||
|
@ -504,9 +502,9 @@ $.position = {
|
|||
return cachedScrollbarWidth;
|
||||
}
|
||||
var w1, w2,
|
||||
div = $( "<div " +
|
||||
"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>" +
|
||||
"<div style='height:100px;width:auto;'></div></div>" ),
|
||||
div = $( "<div style=" +
|
||||
"'display:block;position:absolute;width:200px;height:200px;overflow:hidden;'>" +
|
||||
"<div style='height:300px;width:auto;'></div></div>" ),
|
||||
innerDiv = div.children()[ 0 ];
|
||||
|
||||
$( "body" ).append( div );
|
||||
|
@ -539,12 +537,12 @@ $.position = {
|
|||
},
|
||||
getWithinInfo: function( element ) {
|
||||
var withinElement = $( element || window ),
|
||||
isWindow = $.isWindow( withinElement[ 0 ] ),
|
||||
isElemWindow = isWindow( withinElement[ 0 ] ),
|
||||
isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9,
|
||||
hasOffset = !isWindow && !isDocument;
|
||||
hasOffset = !isElemWindow && !isDocument;
|
||||
return {
|
||||
element: withinElement,
|
||||
isWindow: isWindow,
|
||||
isWindow: isElemWindow,
|
||||
isDocument: isDocument,
|
||||
offset: hasOffset ? $( element ).offset() : { left: 0, top: 0 },
|
||||
scrollLeft: withinElement.scrollLeft(),
|
||||
|
@ -564,7 +562,12 @@ $.fn.position = function( options ) {
|
|||
options = $.extend( {}, options );
|
||||
|
||||
var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
|
||||
target = $( options.of ),
|
||||
|
||||
// Make sure string options are treated as CSS selectors
|
||||
target = typeof options.of === "string" ?
|
||||
$( document ).find( options.of ) :
|
||||
$( options.of ),
|
||||
|
||||
within = $.position.getWithinInfo( options.within ),
|
||||
scrollInfo = $.position.getScrollInfo( within ),
|
||||
collision = ( options.collision || "flip" ).split( " " ),
|
||||
|
@ -954,7 +957,7 @@ $.ui.safeBlur = function( element ) {
|
|||
|
||||
// Source: scroll-parent.js
|
||||
/*!
|
||||
* jQuery UI Scroll Parent 1.12.1
|
||||
* jQuery UI Scroll Parent 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -987,7 +990,7 @@ $.fn.scrollParent = function( includeHidden ) {
|
|||
|
||||
// Source: tabbable.js
|
||||
/*!
|
||||
* jQuery UI Tabbable 1.12.1
|
||||
* jQuery UI Tabbable 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -1000,7 +1003,7 @@ $.fn.scrollParent = function( includeHidden ) {
|
|||
//>>description: Selects elements which can be tabbed to.
|
||||
//>>docs: http://api.jqueryui.com/tabbable-selector/
|
||||
|
||||
$.extend( $.expr[ ":" ], {
|
||||
$.extend( $.expr.pseudos, {
|
||||
tabbable: function( element ) {
|
||||
var tabIndex = $.attr( element, "tabindex" ),
|
||||
hasTabindex = tabIndex != null;
|
||||
|
@ -1010,7 +1013,7 @@ $.extend( $.expr[ ":" ], {
|
|||
|
||||
// Source: unique-id.js
|
||||
/*!
|
||||
* jQuery UI Unique ID 1.12.1
|
||||
* jQuery UI Unique ID 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -1047,7 +1050,7 @@ $.fn.extend( {
|
|||
|
||||
// Source: widget.js
|
||||
/*!
|
||||
* jQuery UI Widget 1.12.1
|
||||
* jQuery UI Widget 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -1062,22 +1065,19 @@ $.fn.extend( {
|
|||
//>>demos: http://jqueryui.com/widget/
|
||||
|
||||
var widgetUuid = 0;
|
||||
var widgetHasOwnProperty = Array.prototype.hasOwnProperty;
|
||||
var widgetSlice = Array.prototype.slice;
|
||||
|
||||
$.cleanData = ( function( orig ) {
|
||||
return function( elems ) {
|
||||
var events, elem, i;
|
||||
for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
|
||||
try {
|
||||
|
||||
// Only trigger remove when necessary to save time
|
||||
events = $._data( elem, "events" );
|
||||
if ( events && events.remove ) {
|
||||
$( elem ).triggerHandler( "remove" );
|
||||
}
|
||||
|
||||
// Http://bugs.jquery.com/ticket/8235
|
||||
} catch ( e ) {}
|
||||
// Only trigger remove when necessary to save time
|
||||
events = $._data( elem, "events" );
|
||||
if ( events && events.remove ) {
|
||||
$( elem ).triggerHandler( "remove" );
|
||||
}
|
||||
}
|
||||
orig( elems );
|
||||
};
|
||||
|
@ -1099,12 +1099,12 @@ $.widget = function( name, base, prototype ) {
|
|||
base = $.Widget;
|
||||
}
|
||||
|
||||
if ( $.isArray( prototype ) ) {
|
||||
if ( Array.isArray( prototype ) ) {
|
||||
prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
|
||||
}
|
||||
|
||||
// Create selector for plugin
|
||||
$.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
|
||||
$.expr.pseudos[ fullName.toLowerCase() ] = function( elem ) {
|
||||
return !!$.data( elem, fullName );
|
||||
};
|
||||
|
||||
|
@ -1144,7 +1144,7 @@ $.widget = function( name, base, prototype ) {
|
|||
// inheriting from
|
||||
basePrototype.options = $.widget.extend( {}, basePrototype.options );
|
||||
$.each( prototype, function( prop, value ) {
|
||||
if ( !$.isFunction( value ) ) {
|
||||
if ( typeof value !== "function" ) {
|
||||
proxiedPrototype[ prop ] = value;
|
||||
return;
|
||||
}
|
||||
|
@ -1223,7 +1223,7 @@ $.widget.extend = function( target ) {
|
|||
for ( ; inputIndex < inputLength; inputIndex++ ) {
|
||||
for ( key in input[ inputIndex ] ) {
|
||||
value = input[ inputIndex ][ key ];
|
||||
if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
|
||||
if ( widgetHasOwnProperty.call( input[ inputIndex ], key ) && value !== undefined ) {
|
||||
|
||||
// Clone objects
|
||||
if ( $.isPlainObject( value ) ) {
|
||||
|
@ -1272,7 +1272,8 @@ $.widget.bridge = function( name, object ) {
|
|||
"attempted to call method '" + options + "'" );
|
||||
}
|
||||
|
||||
if ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === "_" ) {
|
||||
if ( typeof instance[ options ] !== "function" ||
|
||||
options.charAt( 0 ) === "_" ) {
|
||||
return $.error( "no such method '" + options + "' for " + name +
|
||||
" widget instance" );
|
||||
}
|
||||
|
@ -1533,12 +1534,30 @@ $.Widget.prototype = {
|
|||
classes: this.options.classes || {}
|
||||
}, options );
|
||||
|
||||
function bindRemoveEvent() {
|
||||
options.element.each( function( _, element ) {
|
||||
var isTracked = $.map( that.classesElementLookup, function( elements ) {
|
||||
return elements;
|
||||
} )
|
||||
.some( function( elements ) {
|
||||
return elements.is( element );
|
||||
} );
|
||||
|
||||
if ( !isTracked ) {
|
||||
that._on( $( element ), {
|
||||
remove: "_untrackClassesElement"
|
||||
} );
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
function processClassString( classes, checkOption ) {
|
||||
var current, i;
|
||||
for ( i = 0; i < classes.length; i++ ) {
|
||||
current = that.classesElementLookup[ classes[ i ] ] || $();
|
||||
if ( options.add ) {
|
||||
current = $( $.unique( current.get().concat( options.element.get() ) ) );
|
||||
bindRemoveEvent();
|
||||
current = $( $.uniqueSort( current.get().concat( options.element.get() ) ) );
|
||||
} else {
|
||||
current = $( current.not( options.element ).get() );
|
||||
}
|
||||
|
@ -1550,10 +1569,6 @@ $.Widget.prototype = {
|
|||
}
|
||||
}
|
||||
|
||||
this._on( options.element, {
|
||||
"remove": "_untrackClassesElement"
|
||||
} );
|
||||
|
||||
if ( options.keys ) {
|
||||
processClassString( options.keys.match( /\S+/g ) || [], true );
|
||||
}
|
||||
|
@ -1571,6 +1586,8 @@ $.Widget.prototype = {
|
|||
that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
|
||||
}
|
||||
} );
|
||||
|
||||
this._off( $( event.target ) );
|
||||
},
|
||||
|
||||
_removeClass: function( element, keys, extra ) {
|
||||
|
@ -1651,7 +1668,7 @@ $.Widget.prototype = {
|
|||
_off: function( element, eventName ) {
|
||||
eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) +
|
||||
this.eventNamespace;
|
||||
element.off( eventName ).off( eventName );
|
||||
element.off( eventName );
|
||||
|
||||
// Clear the stack to avoid memory leaks (#10056)
|
||||
this.bindings = $( this.bindings.not( element ).get() );
|
||||
|
@ -1717,7 +1734,7 @@ $.Widget.prototype = {
|
|||
}
|
||||
|
||||
this.element.trigger( event, data );
|
||||
return !( $.isFunction( callback ) &&
|
||||
return !( typeof callback === "function" &&
|
||||
callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||
|
||||
event.isDefaultPrevented() );
|
||||
}
|
||||
|
@ -1739,6 +1756,8 @@ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
|
|||
options = options || {};
|
||||
if ( typeof options === "number" ) {
|
||||
options = { duration: options };
|
||||
} else if ( options === true ) {
|
||||
options = {};
|
||||
}
|
||||
|
||||
hasOptions = !$.isEmptyObject( options );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,6 @@
|
|||
// jscs:disable maximumLineLength
|
||||
/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
|
||||
/* eslint-disable max-len, camelcase */
|
||||
/*!
|
||||
* jQuery UI Datepicker 1.12.1
|
||||
* jQuery UI Datepicker 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -19,6 +18,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -31,9 +32,10 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
$.extend( $.ui, { datepicker: { version: "1.12.1" } } );
|
||||
$.extend( $.ui, { datepicker: { version: "1.13.0-rc.2" } } );
|
||||
|
||||
var datepicker_instActive;
|
||||
|
||||
|
@ -61,6 +63,7 @@ function datepicker_getZindex( elem ) {
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Date picker manager.
|
||||
Use the singleton instance of this class, $.datepicker, to interact with the date picker.
|
||||
Settings for (groups of) date pickers are maintained in an instance object,
|
||||
|
@ -87,18 +90,20 @@ function Datepicker() {
|
|||
prevText: "Prev", // Display text for previous month link
|
||||
nextText: "Next", // Display text for next month link
|
||||
currentText: "Today", // Display text for current month link
|
||||
monthNames: [ "January","February","March","April","May","June",
|
||||
"July","August","September","October","November","December" ], // Names of months for drop-down and formatting
|
||||
monthNames: [ "January", "February", "March", "April", "May", "June",
|
||||
"July", "August", "September", "October", "November", "December" ], // Names of months for drop-down and formatting
|
||||
monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], // For formatting
|
||||
dayNames: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], // For formatting
|
||||
dayNamesShort: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], // For formatting
|
||||
dayNamesMin: [ "Su","Mo","Tu","We","Th","Fr","Sa" ], // Column headings for days starting at Sunday
|
||||
dayNamesMin: [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ], // Column headings for days starting at Sunday
|
||||
weekHeader: "Wk", // Column header for week of the year
|
||||
dateFormat: "mm/dd/yy", // See format options on parseDate
|
||||
firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
|
||||
isRTL: false, // True if right-to-left language, false if left-to-right
|
||||
showMonthAfterYear: false, // True if the year select precedes month, false for month then year
|
||||
yearSuffix: "" // Additional text to append to the year in the month headers
|
||||
yearSuffix: "", // Additional text to append to the year in the month headers,
|
||||
selectMonthLabel: "Select month", // Invisible label for month selector
|
||||
selectYearLabel: "Select year" // Invisible label for year selector
|
||||
};
|
||||
this._defaults = { // Global defaults for all the date picker instances
|
||||
showOn: "focus", // "focus" for popup on focus,
|
||||
|
@ -139,6 +144,7 @@ function Datepicker() {
|
|||
onSelect: null, // Define a callback function when a date is selected
|
||||
onChangeMonthYear: null, // Define a callback function when the month or year is changed
|
||||
onClose: null, // Define a callback function when the datepicker is closed
|
||||
onUpdateDatepicker: null, // Define a callback function when the datepicker is updated
|
||||
numberOfMonths: 1, // Number of months to show at a time
|
||||
showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)
|
||||
stepMonths: 1, // Number of months to step back/forward
|
||||
|
@ -157,6 +163,7 @@ function Datepicker() {
|
|||
}
|
||||
|
||||
$.extend( Datepicker.prototype, {
|
||||
|
||||
/* Class name added to elements to indicate already configured with a date picker. */
|
||||
markerClassName: "hasDatepicker",
|
||||
|
||||
|
@ -239,7 +246,9 @@ $.extend( Datepicker.prototype, {
|
|||
inst.append.remove();
|
||||
}
|
||||
if ( appendText ) {
|
||||
inst.append = $( "<span class='" + this._appendClass + "'>" + appendText + "</span>" );
|
||||
inst.append = $( "<span>" )
|
||||
.addClass( this._appendClass )
|
||||
.text( appendText );
|
||||
input[ isRTL ? "before" : "after" ]( inst.append );
|
||||
}
|
||||
|
||||
|
@ -256,12 +265,32 @@ $.extend( Datepicker.prototype, {
|
|||
if ( showOn === "button" || showOn === "both" ) { // pop-up date picker when button clicked
|
||||
buttonText = this._get( inst, "buttonText" );
|
||||
buttonImage = this._get( inst, "buttonImage" );
|
||||
inst.trigger = $( this._get( inst, "buttonImageOnly" ) ?
|
||||
$( "<img/>" ).addClass( this._triggerClass ).
|
||||
attr( { src: buttonImage, alt: buttonText, title: buttonText } ) :
|
||||
$( "<button type='button'></button>" ).addClass( this._triggerClass ).
|
||||
html( !buttonImage ? buttonText : $( "<img/>" ).attr(
|
||||
{ src:buttonImage, alt:buttonText, title:buttonText } ) ) );
|
||||
|
||||
if ( this._get( inst, "buttonImageOnly" ) ) {
|
||||
inst.trigger = $( "<img>" )
|
||||
.addClass( this._triggerClass )
|
||||
.attr( {
|
||||
src: buttonImage,
|
||||
alt: buttonText,
|
||||
title: buttonText
|
||||
} );
|
||||
} else {
|
||||
inst.trigger = $( "<button type='button'>" )
|
||||
.addClass( this._triggerClass );
|
||||
if ( buttonImage ) {
|
||||
inst.trigger.html(
|
||||
$( "<img>" )
|
||||
.attr( {
|
||||
src: buttonImage,
|
||||
alt: buttonText,
|
||||
title: buttonText
|
||||
} )
|
||||
);
|
||||
} else {
|
||||
inst.trigger.text( buttonText );
|
||||
}
|
||||
}
|
||||
|
||||
input[ isRTL ? "before" : "after" ]( inst.trigger );
|
||||
inst.trigger.on( "click", function() {
|
||||
if ( $.datepicker._datepickerShowing && $.datepicker._lastInput === input[ 0 ] ) {
|
||||
|
@ -407,6 +436,7 @@ $.extend( Datepicker.prototype, {
|
|||
|
||||
if ( datepicker_instActive === inst ) {
|
||||
datepicker_instActive = null;
|
||||
this._curInst = null;
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -426,7 +456,9 @@ $.extend( Datepicker.prototype, {
|
|||
if ( nodeName === "input" ) {
|
||||
target.disabled = false;
|
||||
inst.trigger.filter( "button" ).
|
||||
each( function() { this.disabled = false; } ).end().
|
||||
each( function() {
|
||||
this.disabled = false;
|
||||
} ).end().
|
||||
filter( "img" ).css( { opacity: "1.0", cursor: "" } );
|
||||
} else if ( nodeName === "div" || nodeName === "span" ) {
|
||||
inline = $target.children( "." + this._inlineClass );
|
||||
|
@ -435,7 +467,11 @@ $.extend( Datepicker.prototype, {
|
|||
prop( "disabled", false );
|
||||
}
|
||||
this._disabledInputs = $.map( this._disabledInputs,
|
||||
function( value ) { return ( value === target ? null : value ); } ); // delete entry
|
||||
|
||||
// Delete entry
|
||||
function( value ) {
|
||||
return ( value === target ? null : value );
|
||||
} );
|
||||
},
|
||||
|
||||
/* Disable the date picker to a jQuery selection.
|
||||
|
@ -454,7 +490,9 @@ $.extend( Datepicker.prototype, {
|
|||
if ( nodeName === "input" ) {
|
||||
target.disabled = true;
|
||||
inst.trigger.filter( "button" ).
|
||||
each( function() { this.disabled = true; } ).end().
|
||||
each( function() {
|
||||
this.disabled = true;
|
||||
} ).end().
|
||||
filter( "img" ).css( { opacity: "0.5", cursor: "default" } );
|
||||
} else if ( nodeName === "div" || nodeName === "span" ) {
|
||||
inline = $target.children( "." + this._inlineClass );
|
||||
|
@ -463,7 +501,11 @@ $.extend( Datepicker.prototype, {
|
|||
prop( "disabled", true );
|
||||
}
|
||||
this._disabledInputs = $.map( this._disabledInputs,
|
||||
function( value ) { return ( value === target ? null : value ); } ); // delete entry
|
||||
|
||||
// Delete entry
|
||||
function( value ) {
|
||||
return ( value === target ? null : value );
|
||||
} );
|
||||
this._disabledInputs[ this._disabledInputs.length ] = target;
|
||||
},
|
||||
|
||||
|
@ -491,8 +533,7 @@ $.extend( Datepicker.prototype, {
|
|||
_getInst: function( target ) {
|
||||
try {
|
||||
return $.data( target, "datepicker" );
|
||||
}
|
||||
catch ( err ) {
|
||||
} catch ( err ) {
|
||||
throw "Missing instance data for this datepicker";
|
||||
}
|
||||
},
|
||||
|
@ -725,8 +766,7 @@ $.extend( Datepicker.prototype, {
|
|||
$.datepicker._updateAlternate( inst );
|
||||
$.datepicker._updateDatepicker( inst );
|
||||
}
|
||||
}
|
||||
catch ( err ) {
|
||||
} catch ( err ) {
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
@ -831,7 +871,8 @@ $.extend( Datepicker.prototype, {
|
|||
numMonths = this._getNumberOfMonths( inst ),
|
||||
cols = numMonths[ 1 ],
|
||||
width = 17,
|
||||
activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" );
|
||||
activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" ),
|
||||
onUpdateDatepicker = $.datepicker._get( inst, "onUpdateDatepicker" );
|
||||
|
||||
if ( activeCell.length > 0 ) {
|
||||
datepicker_handleMouseover.apply( activeCell.get( 0 ) );
|
||||
|
@ -857,11 +898,15 @@ $.extend( Datepicker.prototype, {
|
|||
|
||||
//assure that inst.yearshtml didn't change.
|
||||
if ( origyearshtml === inst.yearshtml && inst.yearshtml ) {
|
||||
inst.dpDiv.find( "select.ui-datepicker-year:first" ).replaceWith( inst.yearshtml );
|
||||
inst.dpDiv.find( "select.ui-datepicker-year" ).first().replaceWith( inst.yearshtml );
|
||||
}
|
||||
origyearshtml = inst.yearshtml = null;
|
||||
}, 0 );
|
||||
}
|
||||
|
||||
if ( onUpdateDatepicker ) {
|
||||
onUpdateDatepicker.apply( ( inst.input ? inst.input[ 0 ] : null ), [ inst ] );
|
||||
}
|
||||
},
|
||||
|
||||
// #6694 - don't focus the input if it's already focused
|
||||
|
@ -899,7 +944,7 @@ $.extend( Datepicker.prototype, {
|
|||
inst = this._getInst( obj ),
|
||||
isRTL = this._get( inst, "isRTL" );
|
||||
|
||||
while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.filters.hidden( obj ) ) ) {
|
||||
while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.pseudos.hidden( obj ) ) ) {
|
||||
obj = obj[ isRTL ? "previousSibling" : "nextSibling" ];
|
||||
}
|
||||
|
||||
|
@ -987,9 +1032,7 @@ $.extend( Datepicker.prototype, {
|
|||
if ( this._isDisabledDatepicker( target[ 0 ] ) ) {
|
||||
return;
|
||||
}
|
||||
this._adjustInstDate( inst, offset +
|
||||
( period === "M" ? this._get( inst, "showCurrentAtPos" ) : 0 ), // undo positioning
|
||||
period );
|
||||
this._adjustInstDate( inst, offset, period );
|
||||
this._updateDatepicker( inst );
|
||||
},
|
||||
|
||||
|
@ -1036,7 +1079,7 @@ $.extend( Datepicker.prototype, {
|
|||
}
|
||||
|
||||
inst = this._getInst( target[ 0 ] );
|
||||
inst.selectedDay = inst.currentDay = $( "a", td ).html();
|
||||
inst.selectedDay = inst.currentDay = parseInt( $( "a", td ).attr( "data-date" ) );
|
||||
inst.selectedMonth = inst.currentMonth = month;
|
||||
inst.selectedYear = inst.currentYear = year;
|
||||
this._selectDate( id, this._formatDate( inst,
|
||||
|
@ -1089,7 +1132,7 @@ $.extend( Datepicker.prototype, {
|
|||
altFormat = this._get( inst, "altFormat" ) || this._get( inst, "dateFormat" );
|
||||
date = this._getDate( inst );
|
||||
dateStr = this.formatDate( altFormat, date, this._getFormatConfig( inst ) );
|
||||
$( altField ).val( dateStr );
|
||||
$( document ).find( altField ).val( dateStr );
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -1528,8 +1571,7 @@ $.extend( Datepicker.prototype, {
|
|||
try {
|
||||
return $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ),
|
||||
offset, $.datepicker._getFormatConfig( inst ) );
|
||||
}
|
||||
catch ( e ) {
|
||||
} catch ( e ) {
|
||||
|
||||
// Ignore
|
||||
}
|
||||
|
@ -1703,32 +1745,104 @@ $.extend( Datepicker.prototype, {
|
|||
this._daylightSavingAdjust( new Date( drawYear, drawMonth - stepMonths, 1 ) ),
|
||||
this._getFormatConfig( inst ) ) );
|
||||
|
||||
prev = ( this._canAdjustMonth( inst, -1, drawYear, drawMonth ) ?
|
||||
"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'" +
|
||||
" title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w" ) + "'>" + prevText + "</span></a>" :
|
||||
( hideIfNoPrevNext ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w" ) + "'>" + prevText + "</span></a>" ) );
|
||||
if ( this._canAdjustMonth( inst, -1, drawYear, drawMonth ) ) {
|
||||
prev = $( "<a>" )
|
||||
.attr( {
|
||||
"class": "ui-datepicker-prev ui-corner-all",
|
||||
"data-handler": "prev",
|
||||
"data-event": "click",
|
||||
title: prevText
|
||||
} )
|
||||
.append(
|
||||
$( "<span>" )
|
||||
.addClass( "ui-icon ui-icon-circle-triangle-" +
|
||||
( isRTL ? "e" : "w" ) )
|
||||
.text( prevText )
|
||||
)[ 0 ].outerHTML;
|
||||
} else if ( hideIfNoPrevNext ) {
|
||||
prev = "";
|
||||
} else {
|
||||
prev = $( "<a>" )
|
||||
.attr( {
|
||||
"class": "ui-datepicker-prev ui-corner-all ui-state-disabled",
|
||||
title: prevText
|
||||
} )
|
||||
.append(
|
||||
$( "<span>" )
|
||||
.addClass( "ui-icon ui-icon-circle-triangle-" +
|
||||
( isRTL ? "e" : "w" ) )
|
||||
.text( prevText )
|
||||
)[ 0 ].outerHTML;
|
||||
}
|
||||
|
||||
nextText = this._get( inst, "nextText" );
|
||||
nextText = ( !navigationAsDateFormat ? nextText : this.formatDate( nextText,
|
||||
this._daylightSavingAdjust( new Date( drawYear, drawMonth + stepMonths, 1 ) ),
|
||||
this._getFormatConfig( inst ) ) );
|
||||
|
||||
next = ( this._canAdjustMonth( inst, +1, drawYear, drawMonth ) ?
|
||||
"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'" +
|
||||
" title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e" ) + "'>" + nextText + "</span></a>" :
|
||||
( hideIfNoPrevNext ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e" ) + "'>" + nextText + "</span></a>" ) );
|
||||
if ( this._canAdjustMonth( inst, +1, drawYear, drawMonth ) ) {
|
||||
next = $( "<a>" )
|
||||
.attr( {
|
||||
"class": "ui-datepicker-next ui-corner-all",
|
||||
"data-handler": "next",
|
||||
"data-event": "click",
|
||||
title: nextText
|
||||
} )
|
||||
.append(
|
||||
$( "<span>" )
|
||||
.addClass( "ui-icon ui-icon-circle-triangle-" +
|
||||
( isRTL ? "w" : "e" ) )
|
||||
.text( nextText )
|
||||
)[ 0 ].outerHTML;
|
||||
} else if ( hideIfNoPrevNext ) {
|
||||
next = "";
|
||||
} else {
|
||||
next = $( "<a>" )
|
||||
.attr( {
|
||||
"class": "ui-datepicker-next ui-corner-all ui-state-disabled",
|
||||
title: nextText
|
||||
} )
|
||||
.append(
|
||||
$( "<span>" )
|
||||
.attr( "class", "ui-icon ui-icon-circle-triangle-" +
|
||||
( isRTL ? "w" : "e" ) )
|
||||
.text( nextText )
|
||||
)[ 0 ].outerHTML;
|
||||
}
|
||||
|
||||
currentText = this._get( inst, "currentText" );
|
||||
gotoDate = ( this._get( inst, "gotoCurrent" ) && inst.currentDay ? currentDate : today );
|
||||
currentText = ( !navigationAsDateFormat ? currentText :
|
||||
this.formatDate( currentText, gotoDate, this._getFormatConfig( inst ) ) );
|
||||
|
||||
controls = ( !inst.inline ? "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" +
|
||||
this._get( inst, "closeText" ) + "</button>" : "" );
|
||||
controls = "";
|
||||
if ( !inst.inline ) {
|
||||
controls = $( "<button>" )
|
||||
.attr( {
|
||||
type: "button",
|
||||
"class": "ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all",
|
||||
"data-handler": "hide",
|
||||
"data-event": "click"
|
||||
} )
|
||||
.text( this._get( inst, "closeText" ) )[ 0 ].outerHTML;
|
||||
}
|
||||
|
||||
buttonPanel = ( showButtonPanel ) ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + ( isRTL ? controls : "" ) +
|
||||
( this._isInRange( inst, gotoDate ) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'" +
|
||||
">" + currentText + "</button>" : "" ) + ( isRTL ? "" : controls ) + "</div>" : "";
|
||||
buttonPanel = "";
|
||||
if ( showButtonPanel ) {
|
||||
buttonPanel = $( "<div class='ui-datepicker-buttonpane ui-widget-content'>" )
|
||||
.append( isRTL ? controls : "" )
|
||||
.append( this._isInRange( inst, gotoDate ) ?
|
||||
$( "<button>" )
|
||||
.attr( {
|
||||
type: "button",
|
||||
"class": "ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all",
|
||||
"data-handler": "today",
|
||||
"data-event": "click"
|
||||
} )
|
||||
.text( currentText ) :
|
||||
"" )
|
||||
.append( isRTL ? "" : controls )[ 0 ].outerHTML;
|
||||
}
|
||||
|
||||
firstDay = parseInt( this._get( inst, "firstDay" ), 10 );
|
||||
firstDay = ( isNaN( firstDay ) ? 0 : firstDay );
|
||||
|
@ -1816,7 +1930,9 @@ $.extend( Datepicker.prototype, {
|
|||
( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) +
|
||||
( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day
|
||||
( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months
|
||||
"' href='#'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date
|
||||
"' href='#' aria-current='" + ( printDate.getTime() === currentDate.getTime() ? "true" : "false" ) + // mark date as selected for screen reader
|
||||
"' data-date='" + printDate.getDate() + // store date as data
|
||||
"'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date
|
||||
printDate.setDate( printDate.getDate() + 1 );
|
||||
printDate = this._daylightSavingAdjust( printDate );
|
||||
}
|
||||
|
@ -1846,6 +1962,8 @@ $.extend( Datepicker.prototype, {
|
|||
changeMonth = this._get( inst, "changeMonth" ),
|
||||
changeYear = this._get( inst, "changeYear" ),
|
||||
showMonthAfterYear = this._get( inst, "showMonthAfterYear" ),
|
||||
selectMonthLabel = this._get( inst, "selectMonthLabel" ),
|
||||
selectYearLabel = this._get( inst, "selectYearLabel" ),
|
||||
html = "<div class='ui-datepicker-title'>",
|
||||
monthHtml = "";
|
||||
|
||||
|
@ -1855,7 +1973,7 @@ $.extend( Datepicker.prototype, {
|
|||
} else {
|
||||
inMinYear = ( minDate && minDate.getFullYear() === drawYear );
|
||||
inMaxYear = ( maxDate && maxDate.getFullYear() === drawYear );
|
||||
monthHtml += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";
|
||||
monthHtml += "<select class='ui-datepicker-month' aria-label='" + selectMonthLabel + "' data-handler='selectMonth' data-event='change'>";
|
||||
for ( month = 0; month < 12; month++ ) {
|
||||
if ( ( !inMinYear || month >= minDate.getMonth() ) && ( !inMaxYear || month <= maxDate.getMonth() ) ) {
|
||||
monthHtml += "<option value='" + month + "'" +
|
||||
|
@ -1890,7 +2008,7 @@ $.extend( Datepicker.prototype, {
|
|||
endYear = Math.max( year, determineYear( years[ 1 ] || "" ) );
|
||||
year = ( minDate ? Math.max( year, minDate.getFullYear() ) : year );
|
||||
endYear = ( maxDate ? Math.min( endYear, maxDate.getFullYear() ) : endYear );
|
||||
inst.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";
|
||||
inst.yearshtml += "<select class='ui-datepicker-year' aria-label='" + selectYearLabel + "' data-handler='selectYear' data-event='change'>";
|
||||
for ( ; year <= endYear; year++ ) {
|
||||
inst.yearshtml += "<option value='" + year + "'" +
|
||||
( year === drawYear ? " selected='selected'" : "" ) +
|
||||
|
@ -2102,18 +2220,20 @@ $.fn.datepicker = function( options ) {
|
|||
apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
|
||||
}
|
||||
return this.each( function() {
|
||||
typeof options === "string" ?
|
||||
$.datepicker[ "_" + options + "Datepicker" ].
|
||||
apply( $.datepicker, [ this ].concat( otherArgs ) ) :
|
||||
if ( typeof options === "string" ) {
|
||||
$.datepicker[ "_" + options + "Datepicker" ]
|
||||
.apply( $.datepicker, [ this ].concat( otherArgs ) );
|
||||
} else {
|
||||
$.datepicker._attachDatepicker( this, options );
|
||||
}
|
||||
} );
|
||||
};
|
||||
|
||||
$.datepicker = new Datepicker(); // singleton instance
|
||||
$.datepicker.initialized = false;
|
||||
$.datepicker.uuid = new Date().getTime();
|
||||
$.datepicker.version = "1.12.1";
|
||||
$.datepicker.version = "1.13.0-rc.2";
|
||||
|
||||
return $.datepicker;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Dialog 1.12.1
|
||||
* jQuery UI Dialog 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -17,6 +17,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -33,10 +35,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
$.widget( "ui.dialog", {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
options: {
|
||||
appendTo: "body",
|
||||
autoOpen: true,
|
||||
|
@ -281,7 +284,7 @@ $.widget( "ui.dialog", {
|
|||
that._trigger( "focus" );
|
||||
} );
|
||||
|
||||
// Track the dialog immediately upon openening in case a focus event
|
||||
// Track the dialog immediately upon opening in case a focus event
|
||||
// somehow occurs outside of the dialog before an element inside the
|
||||
// dialog is focused (#10152)
|
||||
this._makeFocusTarget();
|
||||
|
@ -317,22 +320,23 @@ $.widget( "ui.dialog", {
|
|||
hasFocus.eq( 0 ).trigger( "focus" );
|
||||
},
|
||||
|
||||
_keepFocus: function( event ) {
|
||||
function checkFocus() {
|
||||
var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ),
|
||||
isActive = this.uiDialog[ 0 ] === activeElement ||
|
||||
$.contains( this.uiDialog[ 0 ], activeElement );
|
||||
if ( !isActive ) {
|
||||
this._focusTabbable();
|
||||
}
|
||||
_restoreTabbableFocus: function() {
|
||||
var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ),
|
||||
isActive = this.uiDialog[ 0 ] === activeElement ||
|
||||
$.contains( this.uiDialog[ 0 ], activeElement );
|
||||
if ( !isActive ) {
|
||||
this._focusTabbable();
|
||||
}
|
||||
},
|
||||
|
||||
_keepFocus: function( event ) {
|
||||
event.preventDefault();
|
||||
checkFocus.call( this );
|
||||
this._restoreTabbableFocus();
|
||||
|
||||
// support: IE
|
||||
// IE <= 8 doesn't prevent moving focus even with event.preventDefault()
|
||||
// so we check again later
|
||||
this._delay( checkFocus );
|
||||
this._delay( this._restoreTabbableFocus );
|
||||
},
|
||||
|
||||
_createWrapper: function() {
|
||||
|
@ -361,8 +365,8 @@ $.widget( "ui.dialog", {
|
|||
return;
|
||||
}
|
||||
var tabbables = this.uiDialog.find( ":tabbable" ),
|
||||
first = tabbables.filter( ":first" ),
|
||||
last = tabbables.filter( ":last" );
|
||||
first = tabbables.first(),
|
||||
last = tabbables.last();
|
||||
|
||||
if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) &&
|
||||
!event.shiftKey ) {
|
||||
|
@ -473,14 +477,14 @@ $.widget( "ui.dialog", {
|
|||
this.uiDialogButtonPane.remove();
|
||||
this.uiButtonSet.empty();
|
||||
|
||||
if ( $.isEmptyObject( buttons ) || ( $.isArray( buttons ) && !buttons.length ) ) {
|
||||
if ( $.isEmptyObject( buttons ) || ( Array.isArray( buttons ) && !buttons.length ) ) {
|
||||
this._removeClass( this.uiDialog, "ui-dialog-buttons" );
|
||||
return;
|
||||
}
|
||||
|
||||
$.each( buttons, function( name, props ) {
|
||||
var click, buttonOptions;
|
||||
props = $.isFunction( props ) ?
|
||||
props = typeof props === "function" ?
|
||||
{ click: props, text: name } :
|
||||
props;
|
||||
|
||||
|
@ -845,6 +849,8 @@ $.widget( "ui.dialog", {
|
|||
return;
|
||||
}
|
||||
|
||||
var jqMinor = $.fn.jquery.substring( 0, 4 );
|
||||
|
||||
// We use a delay in case the overlay is created from an
|
||||
// event that we're going to be cancelling (#2804)
|
||||
var isOpening = true;
|
||||
|
@ -855,20 +861,28 @@ $.widget( "ui.dialog", {
|
|||
if ( !this.document.data( "ui-dialog-overlays" ) ) {
|
||||
|
||||
// Prevent use of anchors and inputs
|
||||
// Using _on() for an event handler shared across many instances is
|
||||
// safe because the dialogs stack and must be closed in reverse order
|
||||
this._on( this.document, {
|
||||
focusin: function( event ) {
|
||||
if ( isOpening ) {
|
||||
return;
|
||||
}
|
||||
// This doesn't use `_on()` because it is a shared event handler
|
||||
// across all open modal dialogs.
|
||||
this.document.on( "focusin.ui-dialog", function( event ) {
|
||||
if ( isOpening ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !this._allowInteraction( event ) ) {
|
||||
event.preventDefault();
|
||||
this._trackingInstances()[ 0 ]._focusTabbable();
|
||||
var instance = this._trackingInstances()[ 0 ];
|
||||
if ( !instance._allowInteraction( event ) ) {
|
||||
event.preventDefault();
|
||||
instance._focusTabbable();
|
||||
|
||||
// Support: jQuery >=3.4 <3.6 only
|
||||
// Focus re-triggering in jQuery 3.4/3.5 makes the original element
|
||||
// have its focus event propagated last, breaking the re-targeting.
|
||||
// Trigger focus in a delay in addition if needed to avoid the issue
|
||||
// See https://github.com/jquery/jquery/issues/4382
|
||||
if ( jqMinor === "3.4." || jqMinor === "3.5." ) {
|
||||
instance._delay( instance._restoreTabbableFocus );
|
||||
}
|
||||
}
|
||||
} );
|
||||
}.bind( this ) );
|
||||
}
|
||||
|
||||
this.overlay = $( "<div>" )
|
||||
|
@ -891,7 +905,7 @@ $.widget( "ui.dialog", {
|
|||
var overlays = this.document.data( "ui-dialog-overlays" ) - 1;
|
||||
|
||||
if ( !overlays ) {
|
||||
this._off( this.document, "focusin" );
|
||||
this.document.off( "focusin.ui-dialog" );
|
||||
this.document.removeData( "ui-dialog-overlays" );
|
||||
} else {
|
||||
this.document.data( "ui-dialog-overlays", overlays );
|
||||
|
@ -929,4 +943,4 @@ if ( $.uiBackCompat !== false ) {
|
|||
|
||||
return $.ui.dialog;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Draggable 1.12.1
|
||||
* jQuery UI Draggable 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -15,6 +15,8 @@
|
|||
//>>css.structure: ../../themes/base/draggable.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -28,10 +30,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
$.widget( "ui.draggable", $.ui.mouse, {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
widgetEventPrefix: "drag",
|
||||
options: {
|
||||
addClasses: true,
|
||||
|
@ -195,7 +198,9 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|||
this.originalPageY = event.pageY;
|
||||
|
||||
//Adjust the mouse offset relative to the helper if "cursorAt" is supplied
|
||||
( o.cursorAt && this._adjustOffsetFromHelper( o.cursorAt ) );
|
||||
if ( o.cursorAt ) {
|
||||
this._adjustOffsetFromHelper( o.cursorAt );
|
||||
}
|
||||
|
||||
//Set a containment if given in the options
|
||||
this._setContainment();
|
||||
|
@ -290,7 +295,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|||
|
||||
if ( ( this.options.revert === "invalid" && !dropped ) ||
|
||||
( this.options.revert === "valid" && dropped ) ||
|
||||
this.options.revert === true || ( $.isFunction( this.options.revert ) &&
|
||||
this.options.revert === true || ( typeof this.options.revert === "function" &&
|
||||
this.options.revert.call( this.element, dropped ) )
|
||||
) {
|
||||
$( this.helper ).animate(
|
||||
|
@ -362,7 +367,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|||
_createHelper: function( event ) {
|
||||
|
||||
var o = this.options,
|
||||
helperIsFunction = $.isFunction( o.helper ),
|
||||
helperIsFunction = typeof o.helper === "function",
|
||||
helper = helperIsFunction ?
|
||||
$( o.helper.apply( this.element[ 0 ], [ event ] ) ) :
|
||||
( o.helper === "clone" ?
|
||||
|
@ -401,7 +406,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|||
if ( typeof obj === "string" ) {
|
||||
obj = obj.split( " " );
|
||||
}
|
||||
if ( $.isArray( obj ) ) {
|
||||
if ( Array.isArray( obj ) ) {
|
||||
obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
|
||||
}
|
||||
if ( "left" in obj ) {
|
||||
|
@ -1110,12 +1115,13 @@ $.ui.plugin.add( "draggable", "snap", {
|
|||
!$.contains( inst.snapElements[ i ].item.ownerDocument,
|
||||
inst.snapElements[ i ].item ) ) {
|
||||
if ( inst.snapElements[ i ].snapping ) {
|
||||
( inst.options.snap.release &&
|
||||
if ( inst.options.snap.release ) {
|
||||
inst.options.snap.release.call(
|
||||
inst.element,
|
||||
event,
|
||||
$.extend( inst._uiHash(), { snapItem: inst.snapElements[ i ].item } )
|
||||
) );
|
||||
);
|
||||
}
|
||||
}
|
||||
inst.snapElements[ i ].snapping = false;
|
||||
continue;
|
||||
|
@ -1186,13 +1192,14 @@ $.ui.plugin.add( "draggable", "snap", {
|
|||
}
|
||||
|
||||
if ( !inst.snapElements[ i ].snapping && ( ts || bs || ls || rs || first ) ) {
|
||||
( inst.options.snap.snap &&
|
||||
if ( inst.options.snap.snap ) {
|
||||
inst.options.snap.snap.call(
|
||||
inst.element,
|
||||
event,
|
||||
$.extend( inst._uiHash(), {
|
||||
snapItem: inst.snapElements[ i ].item
|
||||
} ) ) );
|
||||
} ) );
|
||||
}
|
||||
}
|
||||
inst.snapElements[ i ].snapping = ( ts || bs || ls || rs || first );
|
||||
|
||||
|
@ -1210,7 +1217,9 @@ $.ui.plugin.add( "draggable", "stack", {
|
|||
( parseInt( $( b ).css( "zIndex" ), 10 ) || 0 );
|
||||
} );
|
||||
|
||||
if ( !group.length ) { return; }
|
||||
if ( !group.length ) {
|
||||
return;
|
||||
}
|
||||
|
||||
min = parseInt( $( group[ 0 ] ).css( "zIndex" ), 10 ) || 0;
|
||||
$( group ).each( function( i ) {
|
||||
|
@ -1241,4 +1250,4 @@ $.ui.plugin.add( "draggable", "zIndex", {
|
|||
|
||||
return $.ui.draggable;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Droppable 1.12.1
|
||||
* jQuery UI Droppable 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/droppable/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -28,10 +30,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
$.widget( "ui.droppable", {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
widgetEventPrefix: "drop",
|
||||
options: {
|
||||
accept: "*",
|
||||
|
@ -56,7 +59,7 @@ $.widget( "ui.droppable", {
|
|||
this.isover = false;
|
||||
this.isout = true;
|
||||
|
||||
this.accept = $.isFunction( accept ) ? accept : function( d ) {
|
||||
this.accept = typeof accept === "function" ? accept : function( d ) {
|
||||
return d.is( accept );
|
||||
};
|
||||
|
||||
|
@ -79,7 +82,9 @@ $.widget( "ui.droppable", {
|
|||
|
||||
this._addToManager( o.scope );
|
||||
|
||||
o.addClasses && this._addClass( "ui-droppable" );
|
||||
if ( o.addClasses ) {
|
||||
this._addClass( "ui-droppable" );
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
@ -108,7 +113,7 @@ $.widget( "ui.droppable", {
|
|||
_setOption: function( key, value ) {
|
||||
|
||||
if ( key === "accept" ) {
|
||||
this.accept = $.isFunction( value ) ? value : function( d ) {
|
||||
this.accept = typeof value === "function" ? value : function( d ) {
|
||||
return d.is( value );
|
||||
};
|
||||
} else if ( key === "scope" ) {
|
||||
|
@ -198,14 +203,15 @@ $.widget( "ui.droppable", {
|
|||
inst.accept.call(
|
||||
inst.element[ 0 ], ( draggable.currentItem || draggable.element )
|
||||
) &&
|
||||
intersect(
|
||||
$.ui.intersect(
|
||||
draggable,
|
||||
$.extend( inst, { offset: inst.element.offset() } ),
|
||||
inst.options.tolerance, event
|
||||
)
|
||||
) {
|
||||
childrenIntersection = true;
|
||||
return false; }
|
||||
return false;
|
||||
}
|
||||
} );
|
||||
if ( childrenIntersection ) {
|
||||
return false;
|
||||
|
@ -234,7 +240,7 @@ $.widget( "ui.droppable", {
|
|||
},
|
||||
|
||||
// Extension points just to make backcompat sane and avoid duplicating logic
|
||||
// TODO: Remove in 1.13 along with call to it below
|
||||
// TODO: Remove in 1.14 along with call to it below
|
||||
_addHoverClass: function() {
|
||||
this._addClass( "ui-droppable-hover" );
|
||||
},
|
||||
|
@ -252,7 +258,7 @@ $.widget( "ui.droppable", {
|
|||
}
|
||||
} );
|
||||
|
||||
var intersect = $.ui.intersect = ( function() {
|
||||
$.ui.intersect = ( function() {
|
||||
function isOverAxis( x, reference, size ) {
|
||||
return ( x >= reference ) && ( x < ( reference + size ) );
|
||||
}
|
||||
|
@ -360,7 +366,7 @@ $.ui.ddmanager = {
|
|||
return;
|
||||
}
|
||||
if ( !this.options.disabled && this.visible &&
|
||||
intersect( draggable, this, this.options.tolerance, event ) ) {
|
||||
$.ui.intersect( draggable, this, this.options.tolerance, event ) ) {
|
||||
dropped = this._drop.call( this, event ) || dropped;
|
||||
}
|
||||
|
||||
|
@ -401,7 +407,7 @@ $.ui.ddmanager = {
|
|||
}
|
||||
|
||||
var parentInstance, scope, parent,
|
||||
intersects = intersect( draggable, this, this.options.tolerance, event ),
|
||||
intersects = $.ui.intersect( draggable, this, this.options.tolerance, event ),
|
||||
c = !intersects && this.isover ?
|
||||
"isout" :
|
||||
( intersects && !this.isover ? "isover" : null );
|
||||
|
@ -493,4 +499,4 @@ if ( $.uiBackCompat !== false ) {
|
|||
|
||||
return $.ui.droppable;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Blind 1.12.1
|
||||
* jQuery UI Effects Blind 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -26,7 +28,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "blind", "hide", function( options, done ) {
|
||||
var map = {
|
||||
|
@ -66,4 +69,4 @@ return $.effects.define( "blind", "hide", function( options, done ) {
|
|||
} );
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Blind 1.12.1
|
||||
* jQuery UI Effects Blind 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(r){return r.effects.define("blind","hide",function(e,t){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},o=r(this),n=e.direction||"up",c=o.cssClip(),f={clip:r.extend({},c)},l=r.effects.createPlaceholder(o);f.clip[i[n][0]]=f.clip[i[n][1]],"show"===e.mode&&(o.cssClip(f.clip),l&&l.css(r.effects.clipToBox(f)),f.clip=c),l&&l.animate(r.effects.clipToBox(f),e.duration,e.easing),o.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(r){"use strict";return r.effects.define("blind","hide",function(e,t){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},o=r(this),c=e.direction||"up",n=o.cssClip(),f={clip:r.extend({},n)},l=r.effects.createPlaceholder(o);f.clip[i[c][0]]=f.clip[i[c][1]],"show"===e.mode&&(o.cssClip(f.clip),l&&l.css(r.effects.clipToBox(f)),f.clip=n),l&&l.animate(r.effects.clipToBox(f),e.duration,e.easing),o.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Bounce 1.12.1
|
||||
* jQuery UI Effects Bounce 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -26,7 +28,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "bounce", function( options, done ) {
|
||||
var upAnim, downAnim, refValue,
|
||||
|
@ -106,4 +109,4 @@ return $.effects.define( "bounce", function( options, done ) {
|
|||
$.effects.unshift( element, queuelen, anims + 1 );
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Bounce 1.12.1
|
||||
* jQuery UI Effects Bounce 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(l){return l.effects.define("bounce",function(e,t){var i,n,f=l(this),o=e.mode,a="hide"===o,c="show"===o,u=e.direction||"up",s=e.distance,d=e.times||5,o=2*d+(c||a?1:0),r=e.duration/o,p=e.easing,h="up"===u||"down"===u?"top":"left",m="up"===u||"left"===u,y=0,e=f.queue().length;for(l.effects.createPlaceholder(f),u=f.css(h),s=s||f["top"==h?"outerHeight":"outerWidth"]()/3,c&&((n={opacity:1})[h]=u,f.css("opacity",0).css(h,m?2*-s:2*s).animate(n,r,p)),a&&(s/=Math.pow(2,d-1)),(n={})[h]=u;y<d;y++)(i={})[h]=(m?"-=":"+=")+s,f.animate(i,r,p).animate(n,r,p),s=a?2*s:s/2;a&&((i={opacity:0})[h]=(m?"-=":"+=")+s,f.animate(i,r,p)),f.queue(t),l.effects.unshift(f,e,1+o)})});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(l){"use strict";return l.effects.define("bounce",function(e,t){var i,n,c=l(this),f=e.mode,o="hide"===f,u="show"===f,a=e.direction||"up",s=e.distance,r=e.times||5,f=2*r+(u||o?1:0),d=e.duration/f,p=e.easing,h="up"===a||"down"===a?"top":"left",m="up"===a||"left"===a,y=0,e=c.queue().length;for(l.effects.createPlaceholder(c),a=c.css(h),s=s||c["top"==h?"outerHeight":"outerWidth"]()/3,u&&((n={opacity:1})[h]=a,c.css("opacity",0).css(h,m?2*-s:2*s).animate(n,d,p)),o&&(s/=Math.pow(2,r-1)),(n={})[h]=a;y<r;y++)(i={})[h]=(m?"-=":"+=")+s,c.animate(i,d,p).animate(n,d,p),s=o?2*s:s/2;o&&((i={opacity:0})[h]=(m?"-=":"+=")+s,c.animate(i,d,p)),c.queue(t),l.effects.unshift(c,e,1+f)})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Clip 1.12.1
|
||||
* jQuery UI Effects Clip 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -26,7 +28,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "clip", "hide", function( options, done ) {
|
||||
var start,
|
||||
|
@ -61,4 +64,4 @@ return $.effects.define( "clip", "hide", function( options, done ) {
|
|||
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Clip 1.12.1
|
||||
* jQuery UI Effects Clip 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(t){"function"==typeof define&&define.amd?define(["jquery","./effect"],t):t(jQuery)}(function(r){return r.effects.define("clip","hide",function(t,e){var i={},o=r(this),n=t.direction||"vertical",c="both"===n,f=c||"horizontal"===n,c=c||"vertical"===n,n=o.cssClip();i.clip={top:c?(n.bottom-n.top)/2:n.top,right:f?(n.right-n.left)/2:n.right,bottom:c?(n.bottom-n.top)/2:n.bottom,left:f?(n.right-n.left)/2:n.left},r.effects.createPlaceholder(o),"show"===t.mode&&(o.cssClip(i.clip),i.clip=n),o.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})})});
|
||||
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],t):t(jQuery)}(function(r){"use strict";return r.effects.define("clip","hide",function(t,e){var i={},o=r(this),c=t.direction||"vertical",n="both"===c,f=n||"horizontal"===c,n=n||"vertical"===c,c=o.cssClip();i.clip={top:n?(c.bottom-c.top)/2:c.top,right:f?(c.right-c.left)/2:c.right,bottom:n?(c.bottom-c.top)/2:c.bottom,left:f?(c.right-c.left)/2:c.left},r.effects.createPlaceholder(o),"show"===t.mode&&(o.cssClip(i.clip),i.clip=c),o.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Drop 1.12.1
|
||||
* jQuery UI Effects Drop 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -26,7 +28,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "drop", "hide", function( options, done ) {
|
||||
|
||||
|
@ -65,4 +68,4 @@ return $.effects.define( "drop", "hide", function( options, done ) {
|
|||
} );
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Drop 1.12.1
|
||||
* jQuery UI Effects Drop 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(a){return a.effects.define("drop","hide",function(e,t){var i=a(this),n="show"===e.mode,o=e.direction||"left",f="up"===o||"down"===o?"top":"left",c="up"===o||"left"===o?"-=":"+=",d="+="==c?"-=":"+=",u={opacity:0};a.effects.createPlaceholder(i),o=e.distance||i["top"==f?"outerHeight":"outerWidth"](!0)/2,u[f]=c+o,n&&(i.css(u),u[f]=d+o,u.opacity=1),i.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(r){"use strict";return r.effects.define("drop","hide",function(e,t){var i=r(this),n="show"===e.mode,o=e.direction||"left",f="up"===o||"down"===o?"top":"left",c="up"===o||"left"===o?"-=":"+=",u="+="==c?"-=":"+=",d={opacity:0};r.effects.createPlaceholder(i),o=e.distance||i["top"==f?"outerHeight":"outerWidth"](!0)/2,d[f]=c+o,n&&(i.css(d),d[f]=u+o,d.opacity=1),i.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Explode 1.12.1
|
||||
* jQuery UI Effects Explode 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -9,13 +9,15 @@
|
|||
|
||||
//>>label: Explode Effect
|
||||
//>>group: Effects
|
||||
// jscs:disable maximumLineLength
|
||||
/* eslint-disable max-len */
|
||||
//>>description: Explodes an element in all directions into n pieces. Implodes an element to its original wholeness.
|
||||
// jscs:enable maximumLineLength
|
||||
/* eslint-enable max-len */
|
||||
//>>docs: http://api.jqueryui.com/explode-effect/
|
||||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -28,7 +30,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "explode", "hide", function( options, done ) {
|
||||
|
||||
|
@ -107,4 +110,4 @@ return $.effects.define( "explode", "hide", function( options, done ) {
|
|||
}
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Explode 1.12.1
|
||||
* jQuery UI Effects Explode 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(b){return b.effects.define("explode","hide",function(e,i){var t,o,s,n,f,d,a=e.pieces?Math.round(Math.sqrt(e.pieces)):3,c=a,l=b(this),h="show"===e.mode,p=l.show().css("visibility","hidden").offset(),r=Math.ceil(l.outerWidth()/c),u=Math.ceil(l.outerHeight()/a),v=[];function y(){v.push(this),v.length===a*c&&(l.css({visibility:"visible"}),b(v).remove(),i())}for(t=0;t<a;t++)for(n=p.top+t*u,d=t-(a-1)/2,o=0;o<c;o++)s=p.left+o*r,f=o-(c-1)/2,l.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*r,top:-t*u}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:r,height:u,left:s+(h?f*r:0),top:n+(h?d*u:0),opacity:h?0:1}).animate({left:s+(h?0:f*r),top:n+(h?0:d*u),opacity:h?1:0},e.duration||500,e.easing,y)})});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(b){"use strict";return b.effects.define("explode","hide",function(e,i){var t,o,s,n,f,d,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,a=c,l=b(this),h="show"===e.mode,p=l.show().css("visibility","hidden").offset(),r=Math.ceil(l.outerWidth()/a),u=Math.ceil(l.outerHeight()/c),v=[];function y(){v.push(this),v.length===c*a&&(l.css({visibility:"visible"}),b(v).remove(),i())}for(t=0;t<c;t++)for(n=p.top+t*u,d=t-(c-1)/2,o=0;o<a;o++)s=p.left+o*r,f=o-(a-1)/2,l.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*r,top:-t*u}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:r,height:u,left:s+(h?f*r:0),top:n+(h?d*u:0),opacity:h?0:1}).animate({left:s+(h?0:f*r),top:n+(h?0:d*u),opacity:h?1:0},e.duration||500,e.easing,y)})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Fade 1.12.1
|
||||
* jQuery UI Effects Fade 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -26,7 +28,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "fade", "toggle", function( options, done ) {
|
||||
var show = options.mode === "show";
|
||||
|
@ -43,4 +46,4 @@ return $.effects.define( "fade", "toggle", function( options, done ) {
|
|||
} );
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Fade 1.12.1
|
||||
* jQuery UI Effects Fade 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(t){return t.effects.define("fade","toggle",function(e,n){var i="show"===e.mode;t(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:n})})});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(n){"use strict";return n.effects.define("fade","toggle",function(e,t){var i="show"===e.mode;n(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Fold 1.12.1
|
||||
* jQuery UI Effects Fold 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -26,7 +28,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "fold", "hide", function( options, done ) {
|
||||
|
||||
|
@ -85,4 +88,4 @@ return $.effects.define( "fold", "hide", function( options, done ) {
|
|||
$.effects.unshift( element, queuelen, 4 );
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Fold 1.12.1
|
||||
* jQuery UI Effects Fold 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(m){return m.effects.define("fold","hide",function(i,e){var t=m(this),n=i.mode,c="show"===n,f="hide"===n,o=i.size||15,s=/([0-9]+)%/.exec(o),a=!!i.horizFirst?["right","bottom"]:["bottom","right"],l=i.duration/2,u=m.effects.createPlaceholder(t),p=t.cssClip(),d={clip:m.extend({},p)},r={clip:m.extend({},p)},h=[p[a[0]],p[a[1]]],n=t.queue().length;s&&(o=parseInt(s[1],10)/100*h[f?0:1]),d.clip[a[0]]=o,r.clip[a[0]]=o,r.clip[a[1]]=0,c&&(t.cssClip(r.clip),u&&u.css(m.effects.clipToBox(r)),r.clip=p),t.queue(function(e){u&&u.animate(m.effects.clipToBox(d),l,i.easing).animate(m.effects.clipToBox(r),l,i.easing),e()}).animate(d,l,i.easing).animate(r,l,i.easing).queue(e),m.effects.unshift(t,n,4)})});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(m){"use strict";return m.effects.define("fold","hide",function(i,e){var t=m(this),c=i.mode,n="show"===c,f="hide"===c,s=i.size||15,o=/([0-9]+)%/.exec(s),a=!!i.horizFirst?["right","bottom"]:["bottom","right"],u=i.duration/2,l=m.effects.createPlaceholder(t),r=t.cssClip(),p={clip:m.extend({},r)},d={clip:m.extend({},r)},h=[r[a[0]],r[a[1]]],c=t.queue().length;o&&(s=parseInt(o[1],10)/100*h[f?0:1]),p.clip[a[0]]=s,d.clip[a[0]]=s,d.clip[a[1]]=0,n&&(t.cssClip(d.clip),l&&l.css(m.effects.clipToBox(d)),d.clip=r),t.queue(function(e){l&&l.animate(m.effects.clipToBox(p),u,i.easing).animate(m.effects.clipToBox(d),u,i.easing),e()}).animate(p,u,i.easing).animate(d,u,i.easing).queue(e),m.effects.unshift(t,c,4)})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Highlight 1.12.1
|
||||
* jQuery UI Effects Highlight 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -26,7 +28,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "highlight", "show", function( options, done ) {
|
||||
var element = $( this ),
|
||||
|
@ -53,4 +56,4 @@ return $.effects.define( "highlight", "show", function( options, done ) {
|
|||
} );
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Highlight 1.12.1
|
||||
* jQuery UI Effects Highlight 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(i){return i.effects.define("highlight","show",function(e,n){var o=i(this),f={backgroundColor:o.css("backgroundColor")};"hide"===e.mode&&(f.opacity=0),i.effects.saveStyle(o),o.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:n})})});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(i){"use strict";return i.effects.define("highlight","show",function(e,n){var o=i(this),t={backgroundColor:o.css("backgroundColor")};"hide"===e.mode&&(t.opacity=0),i.effects.saveStyle(o),o.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(t,{queue:!1,duration:e.duration,easing:e.easing,complete:n})})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Puff 1.12.1
|
||||
* jQuery UI Effects Puff 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -27,7 +29,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "puff", "hide", function( options, done ) {
|
||||
var newOptions = $.extend( true, {}, options, {
|
||||
|
@ -38,4 +41,4 @@ return $.effects.define( "puff", "hide", function( options, done ) {
|
|||
$.effects.effect.scale.call( this, newOptions, done );
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Puff 1.12.1
|
||||
* jQuery UI Effects Puff 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect","./effect-scale"],e):e(jQuery)}(function(n){return n.effects.define("puff","hide",function(e,f){e=n.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});n.effects.effect.scale.call(this,e,f)})});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect","./effect-scale"],e):e(jQuery)}(function(t){"use strict";return t.effects.define("puff","hide",function(e,f){e=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,e,f)})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Pulsate 1.12.1
|
||||
* jQuery UI Effects Pulsate 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -26,7 +28,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "pulsate", "show", function( options, done ) {
|
||||
var element = $( this ),
|
||||
|
@ -60,4 +63,4 @@ return $.effects.define( "pulsate", "show", function( options, done ) {
|
|||
$.effects.unshift( element, queuelen, anims + 1 );
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Pulsate 1.12.1
|
||||
* jQuery UI Effects Pulsate 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(c){return c.effects.define("pulsate","show",function(e,i){var n=c(this),t=e.mode,f="show"===t,s=2*(e.times||5)+(f||"hide"===t?1:0),o=e.duration/s,u=0,a=1,t=n.queue().length;for(!f&&n.is(":visible")||(n.css("opacity",0).show(),u=1);a<s;a++)n.animate({opacity:u},o,e.easing),u=1-u;n.animate({opacity:u},o,e.easing),n.queue(i),c.effects.unshift(n,t,1+s)})});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(c){"use strict";return c.effects.define("pulsate","show",function(e,i){var t=c(this),n=e.mode,s="show"===n,f=2*(e.times||5)+(s||"hide"===n?1:0),u=e.duration/f,o=0,a=1,n=t.queue().length;for(!s&&t.is(":visible")||(t.css("opacity",0).show(),o=1);a<f;a++)t.animate({opacity:o},u,e.easing),o=1-o;t.animate({opacity:o},u,e.easing),t.queue(i),c.effects.unshift(t,n,1+f)})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Scale 1.12.1
|
||||
* jQuery UI Effects Scale 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -27,7 +29,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "scale", function( options, done ) {
|
||||
|
||||
|
@ -52,4 +55,4 @@ return $.effects.define( "scale", function( options, done ) {
|
|||
$.effects.effect.size.call( this, newOptions, done );
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Scale 1.12.1
|
||||
* jQuery UI Effects Scale 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect","./effect-size"],e):e(jQuery)}(function(i){return i.effects.define("scale",function(e,f){var t=i(this),n=e.mode,n=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"effect"!==n?0:100),n=i.extend(!0,{from:i.effects.scaledDimensions(t),to:i.effects.scaledDimensions(t,n,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(n.from.opacity=1,n.to.opacity=0),i.effects.effect.size.call(this,n,f)})});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect","./effect-size"],e):e(jQuery)}(function(n){"use strict";return n.effects.define("scale",function(e,t){var f=n(this),i=e.mode,i=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"effect"!==i?0:100),i=n.extend(!0,{from:n.effects.scaledDimensions(f),to:n.effects.scaledDimensions(f,i,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(i.from.opacity=1,i.to.opacity=0),n.effects.effect.size.call(this,i,t)})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Shake 1.12.1
|
||||
* jQuery UI Effects Shake 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -26,7 +28,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "shake", function( options, done ) {
|
||||
|
||||
|
@ -70,4 +73,4 @@ return $.effects.define( "shake", function( options, done ) {
|
|||
$.effects.unshift( element, queuelen, anims + 1 );
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Shake 1.12.1
|
||||
* jQuery UI Effects Shake 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(h){return h.effects.define("shake",function(e,n){var t=1,i=h(this),a=e.direction||"left",f=e.distance||20,u=e.times||3,s=2*u+1,c=Math.round(e.duration/s),o="up"===a||"down"===a?"top":"left",d="up"===a||"left"===a,r={},m={},g={},a=i.queue().length;for(h.effects.createPlaceholder(i),r[o]=(d?"-=":"+=")+f,m[o]=(d?"+=":"-=")+2*f,g[o]=(d?"-=":"+=")+2*f,i.animate(r,c,e.easing);t<u;t++)i.animate(m,c,e.easing).animate(g,c,e.easing);i.animate(m,c,e.easing).animate(r,c/2,e.easing).queue(n),h.effects.unshift(i,a,1+s)})});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(h){"use strict";return h.effects.define("shake",function(e,t){var n=1,i=h(this),a=e.direction||"left",f=e.distance||20,u=e.times||3,s=2*u+1,c=Math.round(e.duration/s),r="up"===a||"down"===a?"top":"left",o="up"===a||"left"===a,d={},m={},g={},a=i.queue().length;for(h.effects.createPlaceholder(i),d[r]=(o?"-=":"+=")+f,m[r]=(o?"+=":"-=")+2*f,g[r]=(o?"-=":"+=")+2*f,i.animate(d,c,e.easing);n<u;n++)i.animate(m,c,e.easing).animate(g,c,e.easing);i.animate(m,c,e.easing).animate(d,c/2,e.easing).queue(t),h.effects.unshift(i,a,1+s)})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Size 1.12.1
|
||||
* jQuery UI Effects Size 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -26,7 +28,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "size", function( options, done ) {
|
||||
|
||||
|
@ -104,6 +107,8 @@ return $.effects.define( "size", function( options, done ) {
|
|||
to.top = ( original.outerHeight - to.outerHeight ) * baseline.y + pos.top;
|
||||
to.left = ( original.outerWidth - to.outerWidth ) * baseline.x + pos.left;
|
||||
}
|
||||
delete from.outerHeight;
|
||||
delete from.outerWidth;
|
||||
element.css( from );
|
||||
|
||||
// Animate the children if desired
|
||||
|
@ -187,4 +192,4 @@ return $.effects.define( "size", function( options, done ) {
|
|||
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Size 1.12.1
|
||||
* jQuery UI Effects Size 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(t){"function"==typeof define&&define.amd?define(["jquery","./effect"],t):t(jQuery)}(function(p){return p.effects.define("size",function(i,e){var f,o=p(this),t=["fontSize"],n=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],s=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],r=i.mode,h="effect"!==r,c=i.scale||"both",a=i.origin||["middle","center"],d=o.css("position"),g=o.position(),m=p.effects.scaledDimensions(o),u=i.from||m,y=i.to||p.effects.scaledDimensions(o,0);p.effects.createPlaceholder(o),"show"===r&&(r=u,u=y,y=r),f={from:{y:u.height/m.height,x:u.width/m.width},to:{y:y.height/m.height,x:y.width/m.width}},"box"!==c&&"both"!==c||(f.from.y!==f.to.y&&(u=p.effects.setTransition(o,n,f.from.y,u),y=p.effects.setTransition(o,n,f.to.y,y)),f.from.x!==f.to.x&&(u=p.effects.setTransition(o,s,f.from.x,u),y=p.effects.setTransition(o,s,f.to.x,y))),"content"!==c&&"both"!==c||f.from.y!==f.to.y&&(u=p.effects.setTransition(o,t,f.from.y,u),y=p.effects.setTransition(o,t,f.to.y,y)),a&&(a=p.effects.getBaseline(a,m),u.top=(m.outerHeight-u.outerHeight)*a.y+g.top,u.left=(m.outerWidth-u.outerWidth)*a.x+g.left,y.top=(m.outerHeight-y.outerHeight)*a.y+g.top,y.left=(m.outerWidth-y.outerWidth)*a.x+g.left),o.css(u),"content"!==c&&"both"!==c||(n=n.concat(["marginTop","marginBottom"]).concat(t),s=s.concat(["marginLeft","marginRight"]),o.find("*[width]").each(function(){var t=p(this),e=p.effects.scaledDimensions(t),o={height:e.height*f.from.y,width:e.width*f.from.x,outerHeight:e.outerHeight*f.from.y,outerWidth:e.outerWidth*f.from.x},e={height:e.height*f.to.y,width:e.width*f.to.x,outerHeight:e.height*f.to.y,outerWidth:e.width*f.to.x};f.from.y!==f.to.y&&(o=p.effects.setTransition(t,n,f.from.y,o),e=p.effects.setTransition(t,n,f.to.y,e)),f.from.x!==f.to.x&&(o=p.effects.setTransition(t,s,f.from.x,o),e=p.effects.setTransition(t,s,f.to.x,e)),h&&p.effects.saveStyle(t),t.css(o),t.animate(e,i.duration,i.easing,function(){h&&p.effects.restoreStyle(t)})})),o.animate(y,{queue:!1,duration:i.duration,easing:i.easing,complete:function(){var t=o.offset();0===y.opacity&&o.css("opacity",u.opacity),h||(o.css("position","static"===d?"relative":d).offset(t),p.effects.saveStyle(o)),e()}})})});
|
||||
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],t):t(jQuery)}(function(l){"use strict";return l.effects.define("size",function(o,e){var f,i=l(this),t=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],r=o.mode,h="effect"!==r,c=o.scale||"both",d=o.origin||["middle","center"],a=i.css("position"),g=i.position(),u=l.effects.scaledDimensions(i),m=o.from||u,y=o.to||l.effects.scaledDimensions(i,0);l.effects.createPlaceholder(i),"show"===r&&(r=m,m=y,y=r),f={from:{y:m.height/u.height,x:m.width/u.width},to:{y:y.height/u.height,x:y.width/u.width}},"box"!==c&&"both"!==c||(f.from.y!==f.to.y&&(m=l.effects.setTransition(i,s,f.from.y,m),y=l.effects.setTransition(i,s,f.to.y,y)),f.from.x!==f.to.x&&(m=l.effects.setTransition(i,n,f.from.x,m),y=l.effects.setTransition(i,n,f.to.x,y))),"content"!==c&&"both"!==c||f.from.y!==f.to.y&&(m=l.effects.setTransition(i,t,f.from.y,m),y=l.effects.setTransition(i,t,f.to.y,y)),d&&(d=l.effects.getBaseline(d,u),m.top=(u.outerHeight-m.outerHeight)*d.y+g.top,m.left=(u.outerWidth-m.outerWidth)*d.x+g.left,y.top=(u.outerHeight-y.outerHeight)*d.y+g.top,y.left=(u.outerWidth-y.outerWidth)*d.x+g.left),delete m.outerHeight,delete m.outerWidth,i.css(m),"content"!==c&&"both"!==c||(s=s.concat(["marginTop","marginBottom"]).concat(t),n=n.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=l(this),e=l.effects.scaledDimensions(t),i={height:e.height*f.from.y,width:e.width*f.from.x,outerHeight:e.outerHeight*f.from.y,outerWidth:e.outerWidth*f.from.x},e={height:e.height*f.to.y,width:e.width*f.to.x,outerHeight:e.height*f.to.y,outerWidth:e.width*f.to.x};f.from.y!==f.to.y&&(i=l.effects.setTransition(t,s,f.from.y,i),e=l.effects.setTransition(t,s,f.to.y,e)),f.from.x!==f.to.x&&(i=l.effects.setTransition(t,n,f.from.x,i),e=l.effects.setTransition(t,n,f.to.x,e)),h&&l.effects.saveStyle(t),t.css(i),t.animate(e,o.duration,o.easing,function(){h&&l.effects.restoreStyle(t)})})),i.animate(y,{queue:!1,duration:o.duration,easing:o.easing,complete:function(){var t=i.offset();0===y.opacity&&i.css("opacity",m.opacity),h||(i.css("position","static"===a?"relative":a).offset(t),l.effects.saveStyle(i)),e()}})})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Slide 1.12.1
|
||||
* jQuery UI Effects Slide 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -26,7 +28,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.effects.define( "slide", "show", function( options, done ) {
|
||||
var startClip, startRef,
|
||||
|
@ -72,4 +75,4 @@ return $.effects.define( "slide", "show", function( options, done ) {
|
|||
} );
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Slide 1.12.1
|
||||
* jQuery UI Effects Slide 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(r){return r.effects.define("slide","show",function(e,t){var i,o,n=r(this),c={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},f=e.mode,l=e.direction||"left",p="up"===l||"down"===l?"top":"left",s="up"===l||"left"===l,u=e.distance||n["top"==p?"outerHeight":"outerWidth"](!0),d={};r.effects.createPlaceholder(n),i=n.cssClip(),o=n.position()[p],d[p]=(s?-1:1)*u+o,d.clip=n.cssClip(),d.clip[c[l][1]]=d.clip[c[l][0]],"show"===f&&(n.cssClip(d.clip),n.css(p,d[p]),d.clip=i,d[p]=o),n.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(d){"use strict";return d.effects.define("slide","show",function(e,t){var i,o,c=d(this),n={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=e.mode,f=e.direction||"left",l="up"===f||"down"===f?"top":"left",p="up"===f||"left"===f,u=e.distance||c["top"==l?"outerHeight":"outerWidth"](!0),r={};d.effects.createPlaceholder(c),i=c.cssClip(),o=c.position()[l],r[l]=(p?-1:1)*u+o,r.clip=c.cssClip(),r.clip[n[f][1]]=r.clip[n[f][0]],"show"===s&&(c.cssClip(r.clip),c.css(l,r[l]),r.clip=i,r[l]=o),c.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects Transfer 1.12.1
|
||||
* jQuery UI Effects Transfer 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -14,6 +14,8 @@
|
|||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -26,7 +28,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
var effect;
|
||||
if ( $.uiBackCompat !== false ) {
|
||||
|
@ -36,4 +39,4 @@ if ( $.uiBackCompat !== false ) {
|
|||
}
|
||||
return effect;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Effects Transfer 1.12.1
|
||||
* jQuery UI Effects Transfer 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(n){var e;return e=!1!==n.uiBackCompat?n.effects.define("transfer",function(e,f){n(this).transfer(e,f)}):e});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(f){"use strict";var e;return e=!1!==f.uiBackCompat?f.effects.define("transfer",function(e,t){f(this).transfer(e,t)}):e});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Effects 1.12.1
|
||||
* jQuery UI Effects 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -9,13 +9,15 @@
|
|||
|
||||
//>>label: Effects Core
|
||||
//>>group: Effects
|
||||
// jscs:disable maximumLineLength
|
||||
/* eslint-disable max-len */
|
||||
//>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects.
|
||||
// jscs:enable maximumLineLength
|
||||
/* eslint-enable max-len */
|
||||
//>>docs: http://api.jqueryui.com/category/effects-core/
|
||||
//>>demos: http://jqueryui.com/effect/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -25,43 +27,42 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
// Include version.js
|
||||
$.ui = $.ui || {};
|
||||
$.ui.version = "1.12.1";
|
||||
$.ui.version = "1.13.0-rc.2";
|
||||
|
||||
var dataSpace = "ui-effects-",
|
||||
dataSpaceStyle = "ui-effects-style",
|
||||
dataSpaceAnimated = "ui-effects-animated",
|
||||
// Source: jquery-var-for-color.js
|
||||
// Create a local jQuery because jQuery Color relies on it and the
|
||||
// global may not exist with AMD and a custom build (#10199).
|
||||
// This module is a noop if used as a regular AMD module.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
var jQuery = $;
|
||||
|
||||
// Create a local jQuery because jQuery Color relies on it and the
|
||||
// global may not exist with AMD and a custom build (#10199)
|
||||
jQuery = $;
|
||||
|
||||
$.effects = {
|
||||
effect: {}
|
||||
};
|
||||
|
||||
/*!
|
||||
* jQuery Color Animations v2.1.2
|
||||
* jQuery Color Animations v2.2.0
|
||||
* https://github.com/jquery/jquery-color
|
||||
*
|
||||
* Copyright 2014 jQuery Foundation and other contributors
|
||||
* Copyright OpenJS Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* Date: Wed Jan 16 08:47:09 2013 -0600
|
||||
* Date: Sun May 10 09:02:36 2020 +0200
|
||||
*/
|
||||
( function( jQuery, undefined ) {
|
||||
|
||||
var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " +
|
||||
"borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
|
||||
|
||||
// Plusequals test for += 100 -= 100
|
||||
class2type = {},
|
||||
toString = class2type.toString,
|
||||
|
||||
// plusequals test for += 100 -= 100
|
||||
rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
|
||||
|
||||
// A set of RE's that can match strings and generate color tuples.
|
||||
// a set of RE's that can match strings and generate color tuples.
|
||||
stringParsers = [ {
|
||||
re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
|
||||
parse: function( execResult ) {
|
||||
|
@ -84,24 +85,31 @@ $.effects = {
|
|||
}
|
||||
}, {
|
||||
|
||||
// This regex ignores A-F because it's compared against an already lowercased string
|
||||
re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
|
||||
// this regex ignores A-F because it's compared against an already lowercased string
|
||||
re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,
|
||||
parse: function( execResult ) {
|
||||
return [
|
||||
parseInt( execResult[ 1 ], 16 ),
|
||||
parseInt( execResult[ 2 ], 16 ),
|
||||
parseInt( execResult[ 3 ], 16 )
|
||||
parseInt( execResult[ 3 ], 16 ),
|
||||
execResult[ 4 ] ?
|
||||
( parseInt( execResult[ 4 ], 16 ) / 255 ).toFixed( 2 ) :
|
||||
1
|
||||
];
|
||||
}
|
||||
}, {
|
||||
|
||||
// This regex ignores A-F because it's compared against an already lowercased string
|
||||
re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
|
||||
// this regex ignores A-F because it's compared against an already lowercased string
|
||||
re: /#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,
|
||||
parse: function( execResult ) {
|
||||
return [
|
||||
parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
|
||||
parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
|
||||
parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
|
||||
parseInt( execResult[ 3 ] + execResult[ 3 ], 16 ),
|
||||
execResult[ 4 ] ?
|
||||
( parseInt( execResult[ 4 ] + execResult[ 4 ], 16 ) / 255 )
|
||||
.toFixed( 2 ) :
|
||||
1
|
||||
];
|
||||
}
|
||||
}, {
|
||||
|
@ -117,7 +125,7 @@ $.effects = {
|
|||
}
|
||||
} ],
|
||||
|
||||
// JQuery.Color( )
|
||||
// jQuery.Color( )
|
||||
color = jQuery.Color = function( color, green, blue, alpha ) {
|
||||
return new jQuery.Color.fn.parse( color, green, blue, alpha );
|
||||
},
|
||||
|
@ -171,20 +179,20 @@ $.effects = {
|
|||
},
|
||||
support = color.support = {},
|
||||
|
||||
// Element for support tests
|
||||
// element for support tests
|
||||
supportElem = jQuery( "<p>" )[ 0 ],
|
||||
|
||||
// Colors = jQuery.Color.names
|
||||
// colors = jQuery.Color.names
|
||||
colors,
|
||||
|
||||
// Local aliases of functions called often
|
||||
// local aliases of functions called often
|
||||
each = jQuery.each;
|
||||
|
||||
// Determine rgba support immediately
|
||||
// determine rgba support immediately
|
||||
supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
|
||||
support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
|
||||
|
||||
// Define cache name and alpha properties
|
||||
// define cache name and alpha properties
|
||||
// for rgba and hsla spaces
|
||||
each( spaces, function( spaceName, space ) {
|
||||
space.cache = "_" + spaceName;
|
||||
|
@ -195,6 +203,22 @@ each( spaces, function( spaceName, space ) {
|
|||
};
|
||||
} );
|
||||
|
||||
// Populate the class2type map
|
||||
jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
|
||||
function( _i, name ) {
|
||||
class2type[ "[object " + name + "]" ] = name.toLowerCase();
|
||||
} );
|
||||
|
||||
function getType( obj ) {
|
||||
if ( obj == null ) {
|
||||
return obj + "";
|
||||
}
|
||||
|
||||
return typeof obj === "object" ?
|
||||
class2type[ toString.call( obj ) ] || "object" :
|
||||
typeof obj;
|
||||
}
|
||||
|
||||
function clamp( value, prop, allowEmpty ) {
|
||||
var type = propTypes[ prop.type ] || {};
|
||||
|
||||
|
@ -213,13 +237,13 @@ function clamp( value, prop, allowEmpty ) {
|
|||
|
||||
if ( type.mod ) {
|
||||
|
||||
// We add mod before modding to make sure that negatives values
|
||||
// we add mod before modding to make sure that negatives values
|
||||
// get converted properly: -10 -> 350
|
||||
return ( value + type.mod ) % type.mod;
|
||||
}
|
||||
|
||||
// For now all property types without mod have min and max
|
||||
return 0 > value ? 0 : type.max < value ? type.max : value;
|
||||
// for now all property types without mod have min and max
|
||||
return Math.min( type.max, Math.max( 0, value ) );
|
||||
}
|
||||
|
||||
function stringParse( string ) {
|
||||
|
@ -228,7 +252,7 @@ function stringParse( string ) {
|
|||
|
||||
string = string.toLowerCase();
|
||||
|
||||
each( stringParsers, function( i, parser ) {
|
||||
each( stringParsers, function( _i, parser ) {
|
||||
var parsed,
|
||||
match = parser.re.exec( string ),
|
||||
values = match && parser.parse( match ),
|
||||
|
@ -237,12 +261,12 @@ function stringParse( string ) {
|
|||
if ( values ) {
|
||||
parsed = inst[ spaceName ]( values );
|
||||
|
||||
// If this was an rgba parse the assignment might happen twice
|
||||
// if this was an rgba parse the assignment might happen twice
|
||||
// oh well....
|
||||
inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
|
||||
rgba = inst._rgba = parsed._rgba;
|
||||
|
||||
// Exit each( stringParsers ) here because we matched
|
||||
// exit each( stringParsers ) here because we matched
|
||||
return false;
|
||||
}
|
||||
} );
|
||||
|
@ -250,7 +274,7 @@ function stringParse( string ) {
|
|||
// Found a stringParser that handled it
|
||||
if ( rgba.length ) {
|
||||
|
||||
// If this came from a parsed string, force "transparent" when alpha is 0
|
||||
// if this came from a parsed string, force "transparent" when alpha is 0
|
||||
// chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
|
||||
if ( rgba.join() === "0,0,0,0" ) {
|
||||
jQuery.extend( rgba, colors.transparent );
|
||||
|
@ -258,7 +282,7 @@ function stringParse( string ) {
|
|||
return inst;
|
||||
}
|
||||
|
||||
// Named colors
|
||||
// named colors
|
||||
return colors[ string ];
|
||||
}
|
||||
|
||||
|
@ -274,10 +298,10 @@ color.fn = jQuery.extend( color.prototype, {
|
|||
}
|
||||
|
||||
var inst = this,
|
||||
type = jQuery.type( red ),
|
||||
type = getType( red ),
|
||||
rgba = this._rgba = [];
|
||||
|
||||
// More than 1 argument specified - assume ( red, green, blue, alpha )
|
||||
// more than 1 argument specified - assume ( red, green, blue, alpha )
|
||||
if ( green !== undefined ) {
|
||||
red = [ red, green, blue, alpha ];
|
||||
type = "array";
|
||||
|
@ -288,7 +312,7 @@ color.fn = jQuery.extend( color.prototype, {
|
|||
}
|
||||
|
||||
if ( type === "array" ) {
|
||||
each( spaces.rgba.props, function( key, prop ) {
|
||||
each( spaces.rgba.props, function( _key, prop ) {
|
||||
rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
|
||||
} );
|
||||
return this;
|
||||
|
@ -296,20 +320,20 @@ color.fn = jQuery.extend( color.prototype, {
|
|||
|
||||
if ( type === "object" ) {
|
||||
if ( red instanceof color ) {
|
||||
each( spaces, function( spaceName, space ) {
|
||||
each( spaces, function( _spaceName, space ) {
|
||||
if ( red[ space.cache ] ) {
|
||||
inst[ space.cache ] = red[ space.cache ].slice();
|
||||
}
|
||||
} );
|
||||
} else {
|
||||
each( spaces, function( spaceName, space ) {
|
||||
each( spaces, function( _spaceName, space ) {
|
||||
var cache = space.cache;
|
||||
each( space.props, function( key, prop ) {
|
||||
|
||||
// If the cache doesn't exist, and we know how to convert
|
||||
// if the cache doesn't exist, and we know how to convert
|
||||
if ( !inst[ cache ] && space.to ) {
|
||||
|
||||
// If the value was null, we don't need to copy it
|
||||
// if the value was null, we don't need to copy it
|
||||
// if the key was alpha, we don't need to copy it either
|
||||
if ( key === "alpha" || red[ key ] == null ) {
|
||||
return;
|
||||
|
@ -317,17 +341,19 @@ color.fn = jQuery.extend( color.prototype, {
|
|||
inst[ cache ] = space.to( inst._rgba );
|
||||
}
|
||||
|
||||
// This is the only case where we allow nulls for ALL properties.
|
||||
// this is the only case where we allow nulls for ALL properties.
|
||||
// call clamp with alwaysAllowEmpty
|
||||
inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
|
||||
} );
|
||||
|
||||
// Everything defined but alpha?
|
||||
if ( inst[ cache ] &&
|
||||
jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
|
||||
// everything defined but alpha?
|
||||
if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
|
||||
|
||||
// use the default of 1
|
||||
if ( inst[ cache ][ 3 ] == null ) {
|
||||
inst[ cache ][ 3 ] = 1;
|
||||
}
|
||||
|
||||
// Use the default of 1
|
||||
inst[ cache ][ 3 ] = 1;
|
||||
if ( space.from ) {
|
||||
inst._rgba = space.from( inst[ cache ] );
|
||||
}
|
||||
|
@ -377,18 +403,18 @@ color.fn = jQuery.extend( color.prototype, {
|
|||
result = start.slice();
|
||||
|
||||
end = end[ space.cache ];
|
||||
each( space.props, function( key, prop ) {
|
||||
each( space.props, function( _key, prop ) {
|
||||
var index = prop.idx,
|
||||
startValue = start[ index ],
|
||||
endValue = end[ index ],
|
||||
type = propTypes[ prop.type ] || {};
|
||||
|
||||
// If null, don't override start value
|
||||
// if null, don't override start value
|
||||
if ( endValue === null ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If null - use end
|
||||
// if null - use end
|
||||
if ( startValue === null ) {
|
||||
result[ index ] = endValue;
|
||||
} else {
|
||||
|
@ -406,7 +432,7 @@ color.fn = jQuery.extend( color.prototype, {
|
|||
},
|
||||
blend: function( opaque ) {
|
||||
|
||||
// If we are already opaque - return ourself
|
||||
// if we are already opaque - return ourself
|
||||
if ( this._rgba[ 3 ] === 1 ) {
|
||||
return this;
|
||||
}
|
||||
|
@ -422,7 +448,10 @@ color.fn = jQuery.extend( color.prototype, {
|
|||
toRgbaString: function() {
|
||||
var prefix = "rgba(",
|
||||
rgba = jQuery.map( this._rgba, function( v, i ) {
|
||||
return v == null ? ( i > 2 ? 1 : 0 ) : v;
|
||||
if ( v != null ) {
|
||||
return v;
|
||||
}
|
||||
return i > 2 ? 1 : 0;
|
||||
} );
|
||||
|
||||
if ( rgba[ 3 ] === 1 ) {
|
||||
|
@ -439,7 +468,7 @@ color.fn = jQuery.extend( color.prototype, {
|
|||
v = i > 2 ? 1 : 0;
|
||||
}
|
||||
|
||||
// Catch 1 and 2
|
||||
// catch 1 and 2
|
||||
if ( i && i < 3 ) {
|
||||
v = Math.round( v * 100 ) + "%";
|
||||
}
|
||||
|
@ -462,7 +491,7 @@ color.fn = jQuery.extend( color.prototype, {
|
|||
|
||||
return "#" + jQuery.map( rgba, function( v ) {
|
||||
|
||||
// Default to 0 when nulls exist
|
||||
// default to 0 when nulls exist
|
||||
v = ( v || 0 ).toString( 16 );
|
||||
return v.length === 1 ? "0" + v : v;
|
||||
} ).join( "" );
|
||||
|
@ -473,7 +502,7 @@ color.fn = jQuery.extend( color.prototype, {
|
|||
} );
|
||||
color.fn.parse.prototype = color.fn;
|
||||
|
||||
// Hsla conversions adapted from:
|
||||
// hsla conversions adapted from:
|
||||
// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021
|
||||
|
||||
function hue2rgb( p, q, h ) {
|
||||
|
@ -515,7 +544,7 @@ spaces.hsla.to = function( rgba ) {
|
|||
h = ( 60 * ( r - g ) / diff ) + 240;
|
||||
}
|
||||
|
||||
// Chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
|
||||
// chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
|
||||
// otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
|
||||
if ( diff === 0 ) {
|
||||
s = 0;
|
||||
|
@ -546,16 +575,17 @@ spaces.hsla.from = function( hsla ) {
|
|||
];
|
||||
};
|
||||
|
||||
|
||||
each( spaces, function( spaceName, space ) {
|
||||
var props = space.props,
|
||||
cache = space.cache,
|
||||
to = space.to,
|
||||
from = space.from;
|
||||
|
||||
// Makes rgba() and hsla()
|
||||
// makes rgba() and hsla()
|
||||
color.fn[ spaceName ] = function( value ) {
|
||||
|
||||
// Generate a cache for this space if it doesn't exist
|
||||
// generate a cache for this space if it doesn't exist
|
||||
if ( to && !this[ cache ] ) {
|
||||
this[ cache ] = to( this._rgba );
|
||||
}
|
||||
|
@ -564,7 +594,7 @@ each( spaces, function( spaceName, space ) {
|
|||
}
|
||||
|
||||
var ret,
|
||||
type = jQuery.type( value ),
|
||||
type = getType( value ),
|
||||
arr = ( type === "array" || type === "object" ) ? value : arguments,
|
||||
local = this[ cache ].slice();
|
||||
|
||||
|
@ -585,19 +615,24 @@ each( spaces, function( spaceName, space ) {
|
|||
}
|
||||
};
|
||||
|
||||
// Makes red() green() blue() alpha() hue() saturation() lightness()
|
||||
// makes red() green() blue() alpha() hue() saturation() lightness()
|
||||
each( props, function( key, prop ) {
|
||||
|
||||
// Alpha is included in more than one space
|
||||
// alpha is included in more than one space
|
||||
if ( color.fn[ key ] ) {
|
||||
return;
|
||||
}
|
||||
color.fn[ key ] = function( value ) {
|
||||
var vtype = jQuery.type( value ),
|
||||
fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),
|
||||
local = this[ fn ](),
|
||||
cur = local[ prop.idx ],
|
||||
match;
|
||||
var local, cur, match, fn,
|
||||
vtype = getType( value );
|
||||
|
||||
if ( key === "alpha" ) {
|
||||
fn = this._hsla ? "hsla" : "rgba";
|
||||
} else {
|
||||
fn = spaceName;
|
||||
}
|
||||
local = this[ fn ]();
|
||||
cur = local[ prop.idx ];
|
||||
|
||||
if ( vtype === "undefined" ) {
|
||||
return cur;
|
||||
|
@ -605,7 +640,7 @@ each( spaces, function( spaceName, space ) {
|
|||
|
||||
if ( vtype === "function" ) {
|
||||
value = value.call( this, cur );
|
||||
vtype = jQuery.type( value );
|
||||
vtype = getType( value );
|
||||
}
|
||||
if ( value == null && prop.empty ) {
|
||||
return this;
|
||||
|
@ -622,18 +657,17 @@ each( spaces, function( spaceName, space ) {
|
|||
} );
|
||||
} );
|
||||
|
||||
// Add cssHook and .fx.step function for each named hook.
|
||||
// add cssHook and .fx.step function for each named hook.
|
||||
// accept a space separated string of properties
|
||||
color.hook = function( hook ) {
|
||||
var hooks = hook.split( " " );
|
||||
each( hooks, function( i, hook ) {
|
||||
each( hooks, function( _i, hook ) {
|
||||
jQuery.cssHooks[ hook ] = {
|
||||
set: function( elem, value ) {
|
||||
var parsed, curElem,
|
||||
backgroundColor = "";
|
||||
|
||||
if ( value !== "transparent" && ( jQuery.type( value ) !== "string" ||
|
||||
( parsed = stringParse( value ) ) ) ) {
|
||||
if ( value !== "transparent" && ( getType( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
|
||||
value = color( parsed || value );
|
||||
if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
|
||||
curElem = hook === "backgroundColor" ? elem.parentNode : elem;
|
||||
|
@ -659,8 +693,7 @@ color.hook = function( hook ) {
|
|||
elem.style[ hook ] = value;
|
||||
} catch ( e ) {
|
||||
|
||||
// Wrapped to prevent IE from throwing errors on "invalid" values like
|
||||
// 'auto' or 'inherit'
|
||||
// wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -682,7 +715,7 @@ jQuery.cssHooks.borderColor = {
|
|||
expand: function( value ) {
|
||||
var expanded = {};
|
||||
|
||||
each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {
|
||||
each( [ "Top", "Right", "Bottom", "Left" ], function( _i, part ) {
|
||||
expanded[ "border" + part + "Color" ] = value;
|
||||
} );
|
||||
return expanded;
|
||||
|
@ -718,7 +751,14 @@ colors = jQuery.Color.names = {
|
|||
_default: "#ffffff"
|
||||
};
|
||||
|
||||
} )( jQuery );
|
||||
|
||||
var dataSpace = "ui-effects-",
|
||||
dataSpaceStyle = "ui-effects-style",
|
||||
dataSpaceAnimated = "ui-effects-animated";
|
||||
|
||||
$.effects = {
|
||||
effect: {}
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
/****************************** CLASS ANIMATIONS ******************************/
|
||||
|
@ -750,6 +790,12 @@ $.each(
|
|||
}
|
||||
);
|
||||
|
||||
function camelCase( string ) {
|
||||
return string.replace( /-([\da-z])/gi, function( all, letter ) {
|
||||
return letter.toUpperCase();
|
||||
} );
|
||||
}
|
||||
|
||||
function getElementStyles( elem ) {
|
||||
var key, len,
|
||||
style = elem.ownerDocument.defaultView ?
|
||||
|
@ -762,7 +808,7 @@ function getElementStyles( elem ) {
|
|||
while ( len-- ) {
|
||||
key = style[ len ];
|
||||
if ( typeof style[ key ] === "string" ) {
|
||||
styles[ $.camelCase( key ) ] = style[ key ];
|
||||
styles[ camelCase( key ) ] = style[ key ];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -936,12 +982,12 @@ $.fn.extend( {
|
|||
|
||||
( function() {
|
||||
|
||||
if ( $.expr && $.expr.filters && $.expr.filters.animated ) {
|
||||
$.expr.filters.animated = ( function( orig ) {
|
||||
if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) {
|
||||
$.expr.pseudos.animated = ( function( orig ) {
|
||||
return function( elem ) {
|
||||
return !!$( elem ).data( dataSpaceAnimated ) || orig( elem );
|
||||
};
|
||||
} )( $.expr.filters.animated );
|
||||
} )( $.expr.pseudos.animated );
|
||||
}
|
||||
|
||||
if ( $.uiBackCompat !== false ) {
|
||||
|
@ -1010,6 +1056,7 @@ if ( $.uiBackCompat !== false ) {
|
|||
// Firefox incorrectly exposes anonymous content
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=561664
|
||||
try {
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
active.id;
|
||||
} catch ( e ) {
|
||||
active = document.body;
|
||||
|
@ -1072,7 +1119,7 @@ if ( $.uiBackCompat !== false ) {
|
|||
}
|
||||
|
||||
$.extend( $.effects, {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
|
||||
define: function( name, mode, effect ) {
|
||||
if ( !effect ) {
|
||||
|
@ -1288,7 +1335,7 @@ function _normalizeArguments( effect, options, speed, callback ) {
|
|||
}
|
||||
|
||||
// Catch (effect, callback)
|
||||
if ( $.isFunction( options ) ) {
|
||||
if ( typeof options === "function" ) {
|
||||
callback = options;
|
||||
speed = null;
|
||||
options = {};
|
||||
|
@ -1302,7 +1349,7 @@ function _normalizeArguments( effect, options, speed, callback ) {
|
|||
}
|
||||
|
||||
// Catch (effect, options, callback)
|
||||
if ( $.isFunction( speed ) ) {
|
||||
if ( typeof speed === "function" ) {
|
||||
callback = speed;
|
||||
speed = null;
|
||||
}
|
||||
|
@ -1336,7 +1383,7 @@ function standardAnimationOption( option ) {
|
|||
}
|
||||
|
||||
// Complete callback
|
||||
if ( $.isFunction( option ) ) {
|
||||
if ( typeof option === "function" ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1363,7 +1410,7 @@ $.fn.extend( {
|
|||
var el = $( this ),
|
||||
normalizedMode = $.effects.mode( el, mode ) || defaultMode;
|
||||
|
||||
// Sentinel for duck-punching the :animated psuedo-selector
|
||||
// Sentinel for duck-punching the :animated pseudo-selector
|
||||
el.data( dataSpaceAnimated, true );
|
||||
|
||||
// Save effect mode for later use,
|
||||
|
@ -1371,7 +1418,7 @@ $.fn.extend( {
|
|||
// as the .show() below destroys the initial state
|
||||
modes.push( normalizedMode );
|
||||
|
||||
// See $.uiBackCompat inside of run() for removal of defaultMode in 1.13
|
||||
// See $.uiBackCompat inside of run() for removal of defaultMode in 1.14
|
||||
if ( defaultMode && ( normalizedMode === "show" ||
|
||||
( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) {
|
||||
el.show();
|
||||
|
@ -1381,7 +1428,7 @@ $.fn.extend( {
|
|||
$.effects.saveStyle( el );
|
||||
}
|
||||
|
||||
if ( $.isFunction( next ) ) {
|
||||
if ( typeof next === "function" ) {
|
||||
next();
|
||||
}
|
||||
};
|
||||
|
@ -1416,11 +1463,11 @@ $.fn.extend( {
|
|||
}
|
||||
|
||||
function done() {
|
||||
if ( $.isFunction( complete ) ) {
|
||||
if ( typeof complete === "function" ) {
|
||||
complete.call( elem[ 0 ] );
|
||||
}
|
||||
|
||||
if ( $.isFunction( next ) ) {
|
||||
if ( typeof next === "function" ) {
|
||||
next();
|
||||
}
|
||||
}
|
||||
|
@ -1529,22 +1576,24 @@ $.fn.extend( {
|
|||
width: target.innerWidth()
|
||||
},
|
||||
startPosition = element.offset(),
|
||||
transfer = $( "<div class='ui-effects-transfer'></div>" )
|
||||
.appendTo( "body" )
|
||||
.addClass( options.className )
|
||||
.css( {
|
||||
top: startPosition.top - fixTop,
|
||||
left: startPosition.left - fixLeft,
|
||||
height: element.innerHeight(),
|
||||
width: element.innerWidth(),
|
||||
position: targetFixed ? "fixed" : "absolute"
|
||||
} )
|
||||
.animate( animation, options.duration, options.easing, function() {
|
||||
transfer.remove();
|
||||
if ( $.isFunction( done ) ) {
|
||||
done();
|
||||
}
|
||||
} );
|
||||
transfer = $( "<div class='ui-effects-transfer'></div>" );
|
||||
|
||||
transfer
|
||||
.appendTo( "body" )
|
||||
.addClass( options.className )
|
||||
.css( {
|
||||
top: startPosition.top - fixTop,
|
||||
left: startPosition.left - fixLeft,
|
||||
height: element.innerHeight(),
|
||||
width: element.innerWidth(),
|
||||
position: targetFixed ? "fixed" : "absolute"
|
||||
} )
|
||||
.animate( animation, options.duration, options.easing, function() {
|
||||
transfer.remove();
|
||||
if ( typeof done === "function" ) {
|
||||
done();
|
||||
}
|
||||
} );
|
||||
}
|
||||
} );
|
||||
|
||||
|
@ -1636,4 +1685,4 @@ $.each( baseEasings, function( name, easeIn ) {
|
|||
|
||||
return $.effects;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Menu 1.12.1
|
||||
* jQuery UI Menu 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -17,6 +17,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -29,10 +31,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.widget( "ui.menu", {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
defaultElement: "<ul>",
|
||||
delay: 300,
|
||||
options: {
|
||||
|
@ -59,6 +62,7 @@ return $.widget( "ui.menu", {
|
|||
// Flag used to prevent firing of the click handler
|
||||
// as the event bubbles up through nested menus
|
||||
this.mouseHandled = false;
|
||||
this.lastMousePosition = { x: null, y: null };
|
||||
this.element
|
||||
.uniqueId()
|
||||
.attr( {
|
||||
|
@ -73,6 +77,8 @@ return $.widget( "ui.menu", {
|
|||
// them (focus should always stay on UL during navigation).
|
||||
"mousedown .ui-menu-item": function( event ) {
|
||||
event.preventDefault();
|
||||
|
||||
this._activateItem( event );
|
||||
},
|
||||
"click .ui-menu-item": function( event ) {
|
||||
var target = $( event.target );
|
||||
|
@ -102,36 +108,15 @@ return $.widget( "ui.menu", {
|
|||
}
|
||||
}
|
||||
},
|
||||
"mouseenter .ui-menu-item": function( event ) {
|
||||
|
||||
// Ignore mouse events while typeahead is active, see #10458.
|
||||
// Prevents focusing the wrong item when typeahead causes a scroll while the mouse
|
||||
// is over an item in the menu
|
||||
if ( this.previousFilter ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var actualTarget = $( event.target ).closest( ".ui-menu-item" ),
|
||||
target = $( event.currentTarget );
|
||||
|
||||
// Ignore bubbled events on parent items, see #11641
|
||||
if ( actualTarget[ 0 ] !== target[ 0 ] ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove ui-state-active class from siblings of the newly focused menu item
|
||||
// to avoid a jump caused by adjacent elements both having a class with a border
|
||||
this._removeClass( target.siblings().children( ".ui-state-active" ),
|
||||
null, "ui-state-active" );
|
||||
this.focus( event, target );
|
||||
},
|
||||
"mouseenter .ui-menu-item": "_activateItem",
|
||||
"mousemove .ui-menu-item": "_activateItem",
|
||||
mouseleave: "collapseAll",
|
||||
"mouseleave .ui-menu": "collapseAll",
|
||||
focus: function( event, keepActiveItem ) {
|
||||
|
||||
// If there's already an active item, keep it active
|
||||
// If not, activate the first item
|
||||
var item = this.active || this.element.find( this.options.items ).eq( 0 );
|
||||
var item = this.active || this._menuItems().first();
|
||||
|
||||
if ( !keepActiveItem ) {
|
||||
this.focus( event, item );
|
||||
|
@ -157,7 +142,7 @@ return $.widget( "ui.menu", {
|
|||
this._on( this.document, {
|
||||
click: function( event ) {
|
||||
if ( this._closeOnDocumentClick( event ) ) {
|
||||
this.collapseAll( event );
|
||||
this.collapseAll( event, true );
|
||||
}
|
||||
|
||||
// Reset the mouseHandled flag
|
||||
|
@ -166,6 +151,46 @@ return $.widget( "ui.menu", {
|
|||
} );
|
||||
},
|
||||
|
||||
_activateItem: function( event ) {
|
||||
|
||||
// Ignore mouse events while typeahead is active, see #10458.
|
||||
// Prevents focusing the wrong item when typeahead causes a scroll while the mouse
|
||||
// is over an item in the menu
|
||||
if ( this.previousFilter ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If the mouse didn't actually move, but the page was scrolled, ignore the event (#9356)
|
||||
if ( event.clientX === this.lastMousePosition.x &&
|
||||
event.clientY === this.lastMousePosition.y ) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.lastMousePosition = {
|
||||
x: event.clientX,
|
||||
y: event.clientY
|
||||
};
|
||||
|
||||
var actualTarget = $( event.target ).closest( ".ui-menu-item" ),
|
||||
target = $( event.currentTarget );
|
||||
|
||||
// Ignore bubbled events on parent items, see #11641
|
||||
if ( actualTarget[ 0 ] !== target[ 0 ] ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If the item is already active, there's nothing to do
|
||||
if ( target.is( ".ui-state-active" ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove ui-state-active class from siblings of the newly focused menu item
|
||||
// to avoid a jump caused by adjacent elements both having a class with a border
|
||||
this._removeClass( target.siblings().children( ".ui-state-active" ),
|
||||
null, "ui-state-active" );
|
||||
this.focus( event, target );
|
||||
},
|
||||
|
||||
_destroy: function() {
|
||||
var items = this.element.find( ".ui-menu-item" )
|
||||
.removeAttr( "role aria-disabled" ),
|
||||
|
@ -497,7 +522,7 @@ return $.widget( "ui.menu", {
|
|||
this._removeClass( currentMenu.find( ".ui-state-active" ), null, "ui-state-active" );
|
||||
|
||||
this.activeMenu = currentMenu;
|
||||
}, this.delay );
|
||||
}, all ? 0 : this.delay );
|
||||
},
|
||||
|
||||
// With no arguments, closes the currently active menu - if nothing is active
|
||||
|
@ -533,11 +558,7 @@ return $.widget( "ui.menu", {
|
|||
},
|
||||
|
||||
expand: function( event ) {
|
||||
var newItem = this.active &&
|
||||
this.active
|
||||
.children( ".ui-menu " )
|
||||
.find( this.options.items )
|
||||
.first();
|
||||
var newItem = this.active && this._menuItems( this.active.children( ".ui-menu" ) ).first();
|
||||
|
||||
if ( newItem && newItem.length ) {
|
||||
this._open( newItem.parent() );
|
||||
|
@ -565,21 +586,27 @@ return $.widget( "ui.menu", {
|
|||
return this.active && !this.active.nextAll( ".ui-menu-item" ).length;
|
||||
},
|
||||
|
||||
_menuItems: function( menu ) {
|
||||
return ( menu || this.element )
|
||||
.find( this.options.items )
|
||||
.filter( ".ui-menu-item" );
|
||||
},
|
||||
|
||||
_move: function( direction, filter, event ) {
|
||||
var next;
|
||||
if ( this.active ) {
|
||||
if ( direction === "first" || direction === "last" ) {
|
||||
next = this.active
|
||||
[ direction === "first" ? "prevAll" : "nextAll" ]( ".ui-menu-item" )
|
||||
.eq( -1 );
|
||||
.last();
|
||||
} else {
|
||||
next = this.active
|
||||
[ direction + "All" ]( ".ui-menu-item" )
|
||||
.eq( 0 );
|
||||
.first();
|
||||
}
|
||||
}
|
||||
if ( !next || !next.length || !this.active ) {
|
||||
next = this.activeMenu.find( this.options.items )[ filter ]();
|
||||
next = this._menuItems( this.activeMenu )[ filter ]();
|
||||
}
|
||||
|
||||
this.focus( event, next );
|
||||
|
@ -597,7 +624,13 @@ return $.widget( "ui.menu", {
|
|||
}
|
||||
if ( this._hasScroll() ) {
|
||||
base = this.active.offset().top;
|
||||
height = this.element.height();
|
||||
height = this.element.innerHeight();
|
||||
|
||||
// jQuery 3.2 doesn't include scrollbars in innerHeight, add it back.
|
||||
if ( $.fn.jquery.indexOf( "3.2." ) === 0 ) {
|
||||
height += this.element[ 0 ].offsetHeight - this.element.outerHeight();
|
||||
}
|
||||
|
||||
this.active.nextAll( ".ui-menu-item" ).each( function() {
|
||||
item = $( this );
|
||||
return item.offset().top - base - height < 0;
|
||||
|
@ -605,7 +638,7 @@ return $.widget( "ui.menu", {
|
|||
|
||||
this.focus( event, item );
|
||||
} else {
|
||||
this.focus( event, this.activeMenu.find( this.options.items )
|
||||
this.focus( event, this._menuItems( this.activeMenu )
|
||||
[ !this.active ? "first" : "last" ]() );
|
||||
}
|
||||
},
|
||||
|
@ -621,7 +654,13 @@ return $.widget( "ui.menu", {
|
|||
}
|
||||
if ( this._hasScroll() ) {
|
||||
base = this.active.offset().top;
|
||||
height = this.element.height();
|
||||
height = this.element.innerHeight();
|
||||
|
||||
// jQuery 3.2 doesn't include scrollbars in innerHeight, add it back.
|
||||
if ( $.fn.jquery.indexOf( "3.2." ) === 0 ) {
|
||||
height += this.element[ 0 ].offsetHeight - this.element.outerHeight();
|
||||
}
|
||||
|
||||
this.active.prevAll( ".ui-menu-item" ).each( function() {
|
||||
item = $( this );
|
||||
return item.offset().top - base + height > 0;
|
||||
|
@ -629,7 +668,7 @@ return $.widget( "ui.menu", {
|
|||
|
||||
this.focus( event, item );
|
||||
} else {
|
||||
this.focus( event, this.activeMenu.find( this.options.items ).first() );
|
||||
this.focus( event, this._menuItems( this.activeMenu ).first() );
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -660,9 +699,10 @@ return $.widget( "ui.menu", {
|
|||
.filter( ".ui-menu-item" )
|
||||
.filter( function() {
|
||||
return regex.test(
|
||||
$.trim( $( this ).children( ".ui-menu-item-wrapper" ).text() ) );
|
||||
String.prototype.trim.call(
|
||||
$( this ).children( ".ui-menu-item-wrapper" ).text() ) );
|
||||
} );
|
||||
}
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Mouse 1.12.1
|
||||
* jQuery UI Mouse 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -13,6 +13,8 @@
|
|||
//>>docs: http://api.jqueryui.com/mouse/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -25,7 +27,8 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
var mouseHandled = false;
|
||||
$( document ).on( "mouseup", function() {
|
||||
|
@ -33,7 +36,7 @@ $( document ).on( "mouseup", function() {
|
|||
} );
|
||||
|
||||
return $.widget( "ui.mouse", {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
options: {
|
||||
cancel: "input, textarea, button, select, option",
|
||||
distance: 1,
|
||||
|
@ -78,7 +81,9 @@ return $.widget( "ui.mouse", {
|
|||
this._mouseMoved = false;
|
||||
|
||||
// We may have missed mouseup (out of window)
|
||||
( this._mouseStarted && this._mouseUp( event ) );
|
||||
if ( this._mouseStarted ) {
|
||||
this._mouseUp( event );
|
||||
}
|
||||
|
||||
this._mouseDownEvent = event;
|
||||
|
||||
|
@ -171,7 +176,11 @@ return $.widget( "ui.mouse", {
|
|||
if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) {
|
||||
this._mouseStarted =
|
||||
( this._mouseStart( this._mouseDownEvent, event ) !== false );
|
||||
( this._mouseStarted ? this._mouseDrag( event ) : this._mouseUp( event ) );
|
||||
if ( this._mouseStarted ) {
|
||||
this._mouseDrag( event );
|
||||
} else {
|
||||
this._mouseUp( event );
|
||||
}
|
||||
}
|
||||
|
||||
return !this._mouseStarted;
|
||||
|
@ -218,7 +227,9 @@ return $.widget( "ui.mouse", {
|
|||
_mouseStart: function( /* event */ ) {},
|
||||
_mouseDrag: function( /* event */ ) {},
|
||||
_mouseStop: function( /* event */ ) {},
|
||||
_mouseCapture: function( /* event */ ) { return true; }
|
||||
_mouseCapture: function( /* event */ ) {
|
||||
return true;
|
||||
}
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Mouse 1.12.1
|
||||
* jQuery UI Mouse 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(o){var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.12.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,i=1===e.which,s=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length;return i&&!s&&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.0-rc.2",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}})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Progressbar 1.12.1
|
||||
* jQuery UI Progressbar 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -9,9 +9,9 @@
|
|||
|
||||
//>>label: Progressbar
|
||||
//>>group: Widgets
|
||||
// jscs:disable maximumLineLength
|
||||
/* eslint-disable max-len */
|
||||
//>>description: Displays a status indicator for loading state, standard percentage, and other progress indicators.
|
||||
// jscs:enable maximumLineLength
|
||||
/* eslint-enable max-len */
|
||||
//>>docs: http://api.jqueryui.com/progressbar/
|
||||
//>>demos: http://jqueryui.com/progressbar/
|
||||
//>>css.structure: ../../themes/base/core.css
|
||||
|
@ -19,6 +19,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -31,10 +33,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.widget( "ui.progressbar", {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
options: {
|
||||
classes: {
|
||||
"ui-progressbar": "ui-corner-all",
|
||||
|
@ -174,4 +177,4 @@ return $.widget( "ui.progressbar", {
|
|||
}
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Progressbar 1.12.1
|
||||
* jQuery UI Progressbar 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(t){return t.widget("ui.progressbar",{version:"1.12.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")}})});
|
||||
!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-rc.2",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")}})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Resizable 1.12.1
|
||||
* jQuery UI Resizable 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -17,6 +17,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -30,10 +32,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
$.widget( "ui.resizable", $.ui.mouse, {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
widgetEventPrefix: "resize",
|
||||
options: {
|
||||
alsoResize: false,
|
||||
|
@ -88,9 +91,15 @@ $.widget( "ui.resizable", $.ui.mouse, {
|
|||
// TODO: determine which cases actually cause this to happen
|
||||
// if the element doesn't have the scroll set, see if it's possible to
|
||||
// set the scroll
|
||||
el[ scroll ] = 1;
|
||||
has = ( el[ scroll ] > 0 );
|
||||
el[ scroll ] = 0;
|
||||
try {
|
||||
el[ scroll ] = 1;
|
||||
has = ( el[ scroll ] > 0 );
|
||||
el[ scroll ] = 0;
|
||||
} catch ( e ) {
|
||||
|
||||
// `el` might be a string, then setting `scroll` will throw
|
||||
// an error in strict mode; ignore it.
|
||||
}
|
||||
return has;
|
||||
},
|
||||
|
||||
|
@ -113,7 +122,8 @@ $.widget( "ui.resizable", $.ui.mouse, {
|
|||
if ( this.element[ 0 ].nodeName.match( /^(canvas|textarea|input|select|button|img)$/i ) ) {
|
||||
|
||||
this.element.wrap(
|
||||
$( "<div class='ui-wrapper' style='overflow: hidden;'></div>" ).css( {
|
||||
$( "<div class='ui-wrapper'></div>" ).css( {
|
||||
overflow: "hidden",
|
||||
position: this.element.css( "position" ),
|
||||
width: this.element.outerWidth(),
|
||||
height: this.element.outerHeight(),
|
||||
|
@ -184,15 +194,14 @@ $.widget( "ui.resizable", $.ui.mouse, {
|
|||
_destroy: function() {
|
||||
|
||||
this._mouseDestroy();
|
||||
this._addedHandles.remove();
|
||||
|
||||
var wrapper,
|
||||
_destroy = function( exp ) {
|
||||
$( exp )
|
||||
.removeData( "resizable" )
|
||||
.removeData( "ui-resizable" )
|
||||
.off( ".resizable" )
|
||||
.find( ".ui-resizable-handle" )
|
||||
.remove();
|
||||
.off( ".resizable" );
|
||||
};
|
||||
|
||||
// TODO: Unwrap at same DOM position
|
||||
|
@ -223,6 +232,9 @@ $.widget( "ui.resizable", $.ui.mouse, {
|
|||
this._removeHandles();
|
||||
this._setupHandles();
|
||||
break;
|
||||
case "aspectRatio":
|
||||
this._aspectRatio = !!value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -244,6 +256,7 @@ $.widget( "ui.resizable", $.ui.mouse, {
|
|||
} );
|
||||
|
||||
this._handles = $();
|
||||
this._addedHandles = $();
|
||||
if ( this.handles.constructor === String ) {
|
||||
|
||||
if ( this.handles === "all" ) {
|
||||
|
@ -255,7 +268,7 @@ $.widget( "ui.resizable", $.ui.mouse, {
|
|||
|
||||
for ( i = 0; i < n.length; i++ ) {
|
||||
|
||||
handle = $.trim( n[ i ] );
|
||||
handle = String.prototype.trim.call( n[ i ] );
|
||||
hname = "ui-resizable-" + handle;
|
||||
axis = $( "<div>" );
|
||||
this._addClass( axis, "ui-resizable-handle " + hname );
|
||||
|
@ -263,7 +276,10 @@ $.widget( "ui.resizable", $.ui.mouse, {
|
|||
axis.css( { zIndex: o.zIndex } );
|
||||
|
||||
this.handles[ handle ] = ".ui-resizable-" + handle;
|
||||
this.element.append( axis );
|
||||
if ( !this.element.children( this.handles[ handle ] ).length ) {
|
||||
this.element.append( axis );
|
||||
this._addedHandles = this._addedHandles.add( axis );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -329,7 +345,7 @@ $.widget( "ui.resizable", $.ui.mouse, {
|
|||
},
|
||||
|
||||
_removeHandles: function() {
|
||||
this._handles.remove();
|
||||
this._addedHandles.remove();
|
||||
},
|
||||
|
||||
_mouseCapture: function( event ) {
|
||||
|
@ -709,7 +725,7 @@ $.widget( "ui.resizable", $.ui.mouse, {
|
|||
|
||||
if ( this._helper ) {
|
||||
|
||||
this.helper = this.helper || $( "<div style='overflow:hidden;'></div>" );
|
||||
this.helper = this.helper || $( "<div></div>" ).css( { overflow: "hidden" } );
|
||||
|
||||
this._addClass( this.helper, this._helper );
|
||||
this.helper.css( {
|
||||
|
@ -766,7 +782,9 @@ $.widget( "ui.resizable", $.ui.mouse, {
|
|||
|
||||
_propagate: function( n, event ) {
|
||||
$.ui.plugin.call( this, n, [ event, this.ui() ] );
|
||||
( n !== "resize" && this._trigger( n, event, this.ui() ) );
|
||||
if ( n !== "resize" ) {
|
||||
this._trigger( n, event, this.ui() );
|
||||
}
|
||||
},
|
||||
|
||||
plugins: {},
|
||||
|
@ -887,8 +905,8 @@ $.ui.plugin.add( "resizable", "containment", {
|
|||
co = that.containerOffset;
|
||||
ch = that.containerSize.height;
|
||||
cw = that.containerSize.width;
|
||||
width = ( that._hasScroll ( ce, "left" ) ? ce.scrollWidth : cw );
|
||||
height = ( that._hasScroll ( ce ) ? ce.scrollHeight : ch ) ;
|
||||
width = ( that._hasScroll( ce, "left" ) ? ce.scrollWidth : cw );
|
||||
height = ( that._hasScroll( ce ) ? ce.scrollHeight : ch );
|
||||
|
||||
that.parentData = {
|
||||
element: ce,
|
||||
|
@ -1195,4 +1213,4 @@ $.ui.plugin.add( "resizable", "grid", {
|
|||
|
||||
return $.ui.resizable;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Selectable 1.12.1
|
||||
* jQuery UI Selectable 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -15,6 +15,8 @@
|
|||
//>>css.structure: ../../themes/base/selectable.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -28,10 +30,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.widget( "ui.selectable", $.ui.mouse, {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
options: {
|
||||
appendTo: "body",
|
||||
autoRefresh: true,
|
||||
|
@ -182,8 +185,12 @@ return $.widget( "ui.selectable", $.ui.mouse, {
|
|||
x2 = event.pageX,
|
||||
y2 = event.pageY;
|
||||
|
||||
if ( x1 > x2 ) { tmp = x2; x2 = x1; x1 = tmp; }
|
||||
if ( y1 > y2 ) { tmp = y2; y2 = y1; y1 = tmp; }
|
||||
if ( x1 > x2 ) {
|
||||
tmp = x2; x2 = x1; x1 = tmp;
|
||||
}
|
||||
if ( y1 > y2 ) {
|
||||
tmp = y2; y2 = y1; y1 = tmp;
|
||||
}
|
||||
this.helper.css( { left: x1, top: y1, width: x2 - x1, height: y2 - y1 } );
|
||||
|
||||
this.selectees.each( function() {
|
||||
|
@ -306,4 +313,4 @@ return $.widget( "ui.selectable", $.ui.mouse, {
|
|||
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*!
|
||||
* jQuery UI Selectable 1.12.1
|
||||
* jQuery UI Selectable 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery","./mouse","./core"],e):e(jQuery)}(function(u){return u.widget("ui.selectable",u.ui.mouse,{version:"1.12.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],o=l.pageX,r=l.pageY;return o<c&&(e=o,o=c,c=e),r<a&&(e=r,r=a,a=e),this.helper.css({left:c,top:a,width:o-c,height:r-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>o||s.right<c||s.top>r||s.bottom<a):"fit"===n.tolerance&&(t=s.left>c&&s.right<o&&s.top>a&&s.bottom<r),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.0-rc.2",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}})});
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Selectmenu 1.12.1
|
||||
* jQuery UI Selectmenu 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -9,9 +9,9 @@
|
|||
|
||||
//>>label: Selectmenu
|
||||
//>>group: Widgets
|
||||
// jscs:disable maximumLineLength
|
||||
/* eslint-disable max-len */
|
||||
//>>description: Duplicates and extends the functionality of a native HTML select element, allowing it to be customizable in behavior and appearance far beyond the limitations of a native select.
|
||||
// jscs:enable maximumLineLength
|
||||
/* eslint-enable max-len */
|
||||
//>>docs: http://api.jqueryui.com/selectmenu/
|
||||
//>>demos: http://jqueryui.com/selectmenu/
|
||||
//>>css.structure: ../../themes/base/core.css
|
||||
|
@ -19,6 +19,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -32,10 +34,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
defaultElement: "<select>",
|
||||
options: {
|
||||
appendTo: null,
|
||||
|
@ -90,7 +93,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
|
|||
this.labels = this.element.labels().attr( "for", this.ids.button );
|
||||
this._on( this.labels, {
|
||||
click: function( event ) {
|
||||
this.button.focus();
|
||||
this.button.trigger( "focus" );
|
||||
event.preventDefault();
|
||||
}
|
||||
} );
|
||||
|
@ -418,7 +421,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
|
|||
}
|
||||
|
||||
if ( !$( event.target ).closest( ".ui-selectmenu-menu, #" +
|
||||
$.ui.escapeSelector( this.ids.button ) ).length ) {
|
||||
$.escapeSelector( this.ids.button ) ).length ) {
|
||||
this.close( event );
|
||||
}
|
||||
}
|
||||
|
@ -649,6 +652,10 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
|
|||
var that = this,
|
||||
data = [];
|
||||
options.each( function( index, item ) {
|
||||
if ( item.hidden ) {
|
||||
return;
|
||||
}
|
||||
|
||||
data.push( that._parseOption( $( item ), index ) );
|
||||
} );
|
||||
this.items = data;
|
||||
|
@ -677,4 +684,4 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
|
|||
}
|
||||
} ] );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Slider 1.12.1
|
||||
* jQuery UI Slider 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -17,6 +17,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -30,10 +32,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.widget( "ui.slider", $.ui.mouse, {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
widgetEventPrefix: "slide",
|
||||
|
||||
options: {
|
||||
|
@ -130,7 +133,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|||
options.values = [ this._valueMin(), this._valueMin() ];
|
||||
} else if ( options.values.length && options.values.length !== 2 ) {
|
||||
options.values = [ options.values[ 0 ], options.values[ 0 ] ];
|
||||
} else if ( $.isArray( options.values ) ) {
|
||||
} else if ( Array.isArray( options.values ) ) {
|
||||
options.values = options.values.slice( 0 );
|
||||
}
|
||||
}
|
||||
|
@ -393,7 +396,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|||
}
|
||||
|
||||
if ( arguments.length ) {
|
||||
if ( $.isArray( arguments[ 0 ] ) ) {
|
||||
if ( Array.isArray( arguments[ 0 ] ) ) {
|
||||
vals = this.options.values;
|
||||
newValues = arguments[ 0 ];
|
||||
for ( i = 0; i < vals.length; i += 1 ) {
|
||||
|
@ -427,7 +430,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|||
}
|
||||
}
|
||||
|
||||
if ( $.isArray( this.options.values ) ) {
|
||||
if ( Array.isArray( this.options.values ) ) {
|
||||
valsLength = this.options.values.length;
|
||||
}
|
||||
|
||||
|
@ -747,4 +750,4 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|||
}
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Sortable 1.12.1
|
||||
* jQuery UI Sortable 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -15,6 +15,8 @@
|
|||
//>>css.structure: ../../themes/base/sortable.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -28,10 +30,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.widget( "ui.sortable", $.ui.mouse, {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
widgetEventPrefix: "sort",
|
||||
ready: false,
|
||||
options: {
|
||||
|
@ -191,6 +194,11 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
// mouseCapture
|
||||
this.refreshPositions();
|
||||
|
||||
//Prepare the dragged items parent
|
||||
this.appendTo = $( o.appendTo !== "parent" ?
|
||||
o.appendTo :
|
||||
this.currentItem.parent() );
|
||||
|
||||
//Create and append the visible helper
|
||||
this.helper = this._createHelper( event );
|
||||
|
||||
|
@ -205,9 +213,6 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
//Cache the margins of the original element
|
||||
this._cacheMargins();
|
||||
|
||||
//Get the next scrolling parent
|
||||
this.scrollParent = this.helper.scrollParent();
|
||||
|
||||
//The element's absolute position on the page minus margins
|
||||
this.offset = this.currentItem.offset();
|
||||
this.offset = {
|
||||
|
@ -220,25 +225,22 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
left: event.pageX - this.offset.left,
|
||||
top: event.pageY - this.offset.top
|
||||
},
|
||||
parent: this._getParentOffset(),
|
||||
|
||||
// This is a relative to absolute position minus the actual position calculation -
|
||||
// only used for relative positioned helper
|
||||
relative: this._getRelativeOffset()
|
||||
} );
|
||||
|
||||
// Only after we got the offset, we can change the helper's position to absolute
|
||||
// After we get the helper offset, but before we get the parent offset we can
|
||||
// change the helper's position to absolute
|
||||
// TODO: Still need to figure out a way to make relative sorting possible
|
||||
this.helper.css( "position", "absolute" );
|
||||
this.cssPosition = this.helper.css( "position" );
|
||||
|
||||
//Generate the original position
|
||||
this.originalPosition = this._generatePosition( event );
|
||||
this.originalPageX = event.pageX;
|
||||
this.originalPageY = event.pageY;
|
||||
|
||||
//Adjust the mouse offset relative to the helper if "cursorAt" is supplied
|
||||
( o.cursorAt && this._adjustOffsetFromHelper( o.cursorAt ) );
|
||||
if ( o.cursorAt ) {
|
||||
this._adjustOffsetFromHelper( o.cursorAt );
|
||||
}
|
||||
|
||||
//Cache the former DOM position
|
||||
this.domPosition = {
|
||||
|
@ -255,6 +257,13 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
//Create the placeholder
|
||||
this._createPlaceholder();
|
||||
|
||||
//Get the next scrolling parent
|
||||
this.scrollParent = this.placeholder.scrollParent();
|
||||
|
||||
$.extend( this.offset, {
|
||||
parent: this._getParentOffset()
|
||||
} );
|
||||
|
||||
//Set a containment if given in the options
|
||||
if ( o.containment ) {
|
||||
this._setContainment();
|
||||
|
@ -271,13 +280,9 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
$( "<style>*{ cursor: " + o.cursor + " !important; }</style>" ).appendTo( body );
|
||||
}
|
||||
|
||||
if ( o.opacity ) { // opacity option
|
||||
if ( this.helper.css( "opacity" ) ) {
|
||||
this._storedOpacity = this.helper.css( "opacity" );
|
||||
}
|
||||
this.helper.css( "opacity", o.opacity );
|
||||
}
|
||||
|
||||
// We need to make sure to grab the zIndex before setting the
|
||||
// opacity, because setting the opacity to anything lower than 1
|
||||
// causes the zIndex to change from "auto" to 0.
|
||||
if ( o.zIndex ) { // zIndex option
|
||||
if ( this.helper.css( "zIndex" ) ) {
|
||||
this._storedZIndex = this.helper.css( "zIndex" );
|
||||
|
@ -285,6 +290,13 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
this.helper.css( "zIndex", o.zIndex );
|
||||
}
|
||||
|
||||
if ( o.opacity ) { // opacity option
|
||||
if ( this.helper.css( "opacity" ) ) {
|
||||
this._storedOpacity = this.helper.css( "opacity" );
|
||||
}
|
||||
this.helper.css( "opacity", o.opacity );
|
||||
}
|
||||
|
||||
//Prepare scrolling
|
||||
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
|
||||
this.scrollParent[ 0 ].tagName !== "HTML" ) {
|
||||
|
@ -319,79 +331,84 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
|
||||
this._addClass( this.helper, "ui-sortable-helper" );
|
||||
|
||||
// Execute the drag once - this causes the helper not to be visiblebefore getting its
|
||||
// correct position
|
||||
//Move the helper, if needed
|
||||
if ( !this.helper.parent().is( this.appendTo ) ) {
|
||||
this.helper.detach().appendTo( this.appendTo );
|
||||
|
||||
//Update position
|
||||
this.offset.parent = this._getParentOffset();
|
||||
}
|
||||
|
||||
//Generate the original position
|
||||
this.position = this.originalPosition = this._generatePosition( event );
|
||||
this.originalPageX = event.pageX;
|
||||
this.originalPageY = event.pageY;
|
||||
this.lastPositionAbs = this.positionAbs = this._convertPositionTo( "absolute" );
|
||||
|
||||
this._mouseDrag( event );
|
||||
|
||||
return true;
|
||||
|
||||
},
|
||||
|
||||
_scroll: function( event ) {
|
||||
var o = this.options,
|
||||
scrolled = false;
|
||||
|
||||
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
|
||||
this.scrollParent[ 0 ].tagName !== "HTML" ) {
|
||||
|
||||
if ( ( this.overflowOffset.top + this.scrollParent[ 0 ].offsetHeight ) -
|
||||
event.pageY < o.scrollSensitivity ) {
|
||||
this.scrollParent[ 0 ].scrollTop =
|
||||
scrolled = this.scrollParent[ 0 ].scrollTop + o.scrollSpeed;
|
||||
} else if ( event.pageY - this.overflowOffset.top < o.scrollSensitivity ) {
|
||||
this.scrollParent[ 0 ].scrollTop =
|
||||
scrolled = this.scrollParent[ 0 ].scrollTop - o.scrollSpeed;
|
||||
}
|
||||
|
||||
if ( ( this.overflowOffset.left + this.scrollParent[ 0 ].offsetWidth ) -
|
||||
event.pageX < o.scrollSensitivity ) {
|
||||
this.scrollParent[ 0 ].scrollLeft = scrolled =
|
||||
this.scrollParent[ 0 ].scrollLeft + o.scrollSpeed;
|
||||
} else if ( event.pageX - this.overflowOffset.left < o.scrollSensitivity ) {
|
||||
this.scrollParent[ 0 ].scrollLeft = scrolled =
|
||||
this.scrollParent[ 0 ].scrollLeft - o.scrollSpeed;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
if ( event.pageY - this.document.scrollTop() < o.scrollSensitivity ) {
|
||||
scrolled = this.document.scrollTop( this.document.scrollTop() - o.scrollSpeed );
|
||||
} else if ( this.window.height() - ( event.pageY - this.document.scrollTop() ) <
|
||||
o.scrollSensitivity ) {
|
||||
scrolled = this.document.scrollTop( this.document.scrollTop() + o.scrollSpeed );
|
||||
}
|
||||
|
||||
if ( event.pageX - this.document.scrollLeft() < o.scrollSensitivity ) {
|
||||
scrolled = this.document.scrollLeft(
|
||||
this.document.scrollLeft() - o.scrollSpeed
|
||||
);
|
||||
} else if ( this.window.width() - ( event.pageX - this.document.scrollLeft() ) <
|
||||
o.scrollSensitivity ) {
|
||||
scrolled = this.document.scrollLeft(
|
||||
this.document.scrollLeft() + o.scrollSpeed
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return scrolled;
|
||||
},
|
||||
|
||||
_mouseDrag: function( event ) {
|
||||
var i, item, itemElement, intersection,
|
||||
o = this.options,
|
||||
scrolled = false;
|
||||
o = this.options;
|
||||
|
||||
//Compute the helpers position
|
||||
this.position = this._generatePosition( event );
|
||||
this.positionAbs = this._convertPositionTo( "absolute" );
|
||||
|
||||
if ( !this.lastPositionAbs ) {
|
||||
this.lastPositionAbs = this.positionAbs;
|
||||
}
|
||||
|
||||
//Do scrolling
|
||||
if ( this.options.scroll ) {
|
||||
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
|
||||
this.scrollParent[ 0 ].tagName !== "HTML" ) {
|
||||
|
||||
if ( ( this.overflowOffset.top + this.scrollParent[ 0 ].offsetHeight ) -
|
||||
event.pageY < o.scrollSensitivity ) {
|
||||
this.scrollParent[ 0 ].scrollTop =
|
||||
scrolled = this.scrollParent[ 0 ].scrollTop + o.scrollSpeed;
|
||||
} else if ( event.pageY - this.overflowOffset.top < o.scrollSensitivity ) {
|
||||
this.scrollParent[ 0 ].scrollTop =
|
||||
scrolled = this.scrollParent[ 0 ].scrollTop - o.scrollSpeed;
|
||||
}
|
||||
|
||||
if ( ( this.overflowOffset.left + this.scrollParent[ 0 ].offsetWidth ) -
|
||||
event.pageX < o.scrollSensitivity ) {
|
||||
this.scrollParent[ 0 ].scrollLeft = scrolled =
|
||||
this.scrollParent[ 0 ].scrollLeft + o.scrollSpeed;
|
||||
} else if ( event.pageX - this.overflowOffset.left < o.scrollSensitivity ) {
|
||||
this.scrollParent[ 0 ].scrollLeft = scrolled =
|
||||
this.scrollParent[ 0 ].scrollLeft - o.scrollSpeed;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
if ( event.pageY - this.document.scrollTop() < o.scrollSensitivity ) {
|
||||
scrolled = this.document.scrollTop( this.document.scrollTop() - o.scrollSpeed );
|
||||
} else if ( this.window.height() - ( event.pageY - this.document.scrollTop() ) <
|
||||
o.scrollSensitivity ) {
|
||||
scrolled = this.document.scrollTop( this.document.scrollTop() + o.scrollSpeed );
|
||||
}
|
||||
|
||||
if ( event.pageX - this.document.scrollLeft() < o.scrollSensitivity ) {
|
||||
scrolled = this.document.scrollLeft(
|
||||
this.document.scrollLeft() - o.scrollSpeed
|
||||
);
|
||||
} else if ( this.window.width() - ( event.pageX - this.document.scrollLeft() ) <
|
||||
o.scrollSensitivity ) {
|
||||
scrolled = this.document.scrollLeft(
|
||||
this.document.scrollLeft() + o.scrollSpeed
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( scrolled !== false && $.ui.ddmanager && !o.dropBehaviour ) {
|
||||
$.ui.ddmanager.prepareOffsets( this, event );
|
||||
}
|
||||
}
|
||||
|
||||
//Regenerate the absolute position used for position checks
|
||||
this.positionAbs = this._convertPositionTo( "absolute" );
|
||||
|
||||
//Set the helper position
|
||||
if ( !this.options.axis || this.options.axis !== "y" ) {
|
||||
this.helper[ 0 ].style.left = this.position.left + "px";
|
||||
|
@ -400,56 +417,79 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
this.helper[ 0 ].style.top = this.position.top + "px";
|
||||
}
|
||||
|
||||
//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 );
|
||||
|
||||
if ( this.innermostContainer !== null ) {
|
||||
|
||||
//Do scrolling
|
||||
if ( o.scroll ) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Interconnect with droppables
|
||||
if ( $.ui.ddmanager ) {
|
||||
$.ui.ddmanager.drag( this, event );
|
||||
|
@ -652,12 +692,12 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
return false;
|
||||
}
|
||||
|
||||
verticalDirection = this._getDragVerticalDirection();
|
||||
horizontalDirection = this._getDragHorizontalDirection();
|
||||
verticalDirection = this.dragDirection.vertical;
|
||||
horizontalDirection = this.dragDirection.horizontal;
|
||||
|
||||
return this.floating ?
|
||||
( ( horizontalDirection === "right" || verticalDirection === "down" ) ? 2 : 1 )
|
||||
: ( verticalDirection && ( verticalDirection === "down" ? 2 : 1 ) );
|
||||
( ( horizontalDirection === "right" || verticalDirection === "down" ) ? 2 : 1 ) :
|
||||
( verticalDirection && ( verticalDirection === "down" ? 2 : 1 ) );
|
||||
|
||||
},
|
||||
|
||||
|
@ -667,8 +707,8 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
this.offset.click.top, item.top + ( item.height / 2 ), item.height ),
|
||||
isOverRightHalf = this._isOverAxis( this.positionAbs.left +
|
||||
this.offset.click.left, item.left + ( item.width / 2 ), item.width ),
|
||||
verticalDirection = this._getDragVerticalDirection(),
|
||||
horizontalDirection = this._getDragHorizontalDirection();
|
||||
verticalDirection = this.dragDirection.vertical,
|
||||
horizontalDirection = this.dragDirection.horizontal;
|
||||
|
||||
if ( this.floating && horizontalDirection ) {
|
||||
return ( ( horizontalDirection === "right" && isOverRightHalf ) ||
|
||||
|
@ -717,7 +757,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
for ( j = cur.length - 1; j >= 0; j-- ) {
|
||||
inst = $.data( cur[ j ], this.widgetFullName );
|
||||
if ( inst && inst !== this && !inst.options.disabled ) {
|
||||
queries.push( [ $.isFunction( inst.options.items ) ?
|
||||
queries.push( [ typeof inst.options.items === "function" ?
|
||||
inst.options.items.call( inst.element ) :
|
||||
$( inst.options.items, inst.element )
|
||||
.not( ".ui-sortable-helper" )
|
||||
|
@ -727,7 +767,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
}
|
||||
}
|
||||
|
||||
queries.push( [ $.isFunction( this.options.items ) ?
|
||||
queries.push( [ typeof this.options.items === "function" ?
|
||||
this.options.items
|
||||
.call( this.element, null, { options: this.options, item: this.currentItem } ) :
|
||||
$( this.options.items, this.element )
|
||||
|
@ -767,7 +807,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
|
||||
var i, j, cur, inst, targetData, _queries, item, queriesLength,
|
||||
items = this.items,
|
||||
queries = [ [ $.isFunction( this.options.items ) ?
|
||||
queries = [ [ typeof this.options.items === "function" ?
|
||||
this.options.items.call( this.element[ 0 ], event, { item: this.currentItem } ) :
|
||||
$( this.options.items, this.element ), this ] ],
|
||||
connectWith = this._connectWith();
|
||||
|
@ -779,7 +819,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
for ( j = cur.length - 1; j >= 0; j-- ) {
|
||||
inst = $.data( cur[ j ], this.widgetFullName );
|
||||
if ( inst && inst !== this && !inst.options.disabled ) {
|
||||
queries.push( [ $.isFunction( inst.options.items ) ?
|
||||
queries.push( [ typeof inst.options.items === "function" ?
|
||||
inst.options.items
|
||||
.call( inst.element[ 0 ], event, { item: this.currentItem } ) :
|
||||
$( inst.options.items, inst.element ), inst ] );
|
||||
|
@ -810,26 +850,14 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
|
||||
},
|
||||
|
||||
refreshPositions: function( fast ) {
|
||||
|
||||
// Determine whether items are being displayed horizontally
|
||||
this.floating = this.items.length ?
|
||||
this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
|
||||
false;
|
||||
|
||||
//This has to be redone because due to the item being moved out/into the offsetParent,
|
||||
// the offsetParent's position will change
|
||||
if ( this.offsetParent && this.helper ) {
|
||||
this.offset.parent = this._getParentOffset();
|
||||
}
|
||||
|
||||
_refreshItemPositions: function( fast ) {
|
||||
var i, item, t, p;
|
||||
|
||||
for ( i = this.items.length - 1; i >= 0; i-- ) {
|
||||
item = this.items[ i ];
|
||||
|
||||
//We ignore calculating positions of all connected containers when we're not over them
|
||||
if ( item.instance !== this.currentContainer && this.currentContainer &&
|
||||
if ( this.currentContainer && item.instance !== this.currentContainer &&
|
||||
item.item[ 0 ] !== this.currentItem[ 0 ] ) {
|
||||
continue;
|
||||
}
|
||||
|
@ -847,6 +875,20 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
item.left = p.left;
|
||||
item.top = p.top;
|
||||
}
|
||||
},
|
||||
|
||||
refreshPositions: function( fast ) {
|
||||
|
||||
// Determine whether items are being displayed horizontally
|
||||
this.floating = this.items.length ?
|
||||
this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
|
||||
false;
|
||||
|
||||
if ( this.innermostContainer !== null ) {
|
||||
this._refreshItemPositions( fast );
|
||||
}
|
||||
|
||||
var i, p;
|
||||
|
||||
if ( this.options.custom && this.options.custom.refreshContainers ) {
|
||||
this.options.custom.refreshContainers.call( this );
|
||||
|
@ -867,20 +909,20 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
|
||||
_createPlaceholder: function( that ) {
|
||||
that = that || this;
|
||||
var className,
|
||||
var className, nodeName,
|
||||
o = that.options;
|
||||
|
||||
if ( !o.placeholder || o.placeholder.constructor === String ) {
|
||||
className = o.placeholder;
|
||||
nodeName = that.currentItem[ 0 ].nodeName.toLowerCase();
|
||||
o.placeholder = {
|
||||
element: function() {
|
||||
|
||||
var nodeName = that.currentItem[ 0 ].nodeName.toLowerCase(),
|
||||
element = $( "<" + nodeName + ">", that.document[ 0 ] );
|
||||
var element = $( "<" + nodeName + ">", that.document[ 0 ] );
|
||||
|
||||
that._addClass( element, "ui-sortable-placeholder",
|
||||
className || that.currentItem[ 0 ].className )
|
||||
._removeClass( element, "ui-sortable-helper" );
|
||||
that._addClass( element, "ui-sortable-placeholder",
|
||||
className || that.currentItem[ 0 ].className )
|
||||
._removeClass( element, "ui-sortable-helper" );
|
||||
|
||||
if ( nodeName === "tbody" ) {
|
||||
that._createTrPlaceholder(
|
||||
|
@ -909,9 +951,15 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
return;
|
||||
}
|
||||
|
||||
//If the element doesn't have a actual height by itself (without styles coming
|
||||
// from a stylesheet), it receives the inline height from the dragged item
|
||||
if ( !p.height() ) {
|
||||
// If the element doesn't have a actual height or width by itself (without
|
||||
// styles coming from a stylesheet), it receives the inline height and width
|
||||
// from the dragged item. Or, if it's a tbody or tr, it's going to have a height
|
||||
// anyway since we're populating them with <td>s above, but they're unlikely to
|
||||
// be the correct height on their own if the row heights are dynamic, so we'll
|
||||
// always assign the height of the dragged item given forcePlaceholderSize
|
||||
// is true.
|
||||
if ( !p.height() || ( o.forcePlaceholderSize &&
|
||||
( nodeName === "tbody" || nodeName === "tr" ) ) ) {
|
||||
p.height(
|
||||
that.currentItem.innerHeight() -
|
||||
parseInt( that.currentItem.css( "paddingTop" ) || 0, 10 ) -
|
||||
|
@ -986,6 +1034,8 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
|
||||
}
|
||||
|
||||
this.innermostContainer = innermostContainer;
|
||||
|
||||
// If no intersecting containers found, return
|
||||
if ( !innermostContainer ) {
|
||||
return;
|
||||
|
@ -1044,9 +1094,11 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
return;
|
||||
}
|
||||
|
||||
itemWithLeastDistance ?
|
||||
this._rearrange( event, itemWithLeastDistance, null, true ) :
|
||||
if ( itemWithLeastDistance ) {
|
||||
this._rearrange( event, itemWithLeastDistance, null, true );
|
||||
} else {
|
||||
this._rearrange( event, null, this.containers[ innermostIndex ].element, true );
|
||||
}
|
||||
this._trigger( "change", event, this._uiHash() );
|
||||
this.containers[ innermostIndex ]._trigger( "change", event, this._uiHash( this ) );
|
||||
this.currentContainer = this.containers[ innermostIndex ];
|
||||
|
@ -1054,6 +1106,15 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
//Update the placeholder
|
||||
this.options.placeholder.update( this.currentContainer, this.placeholder );
|
||||
|
||||
//Update scrollParent
|
||||
this.scrollParent = this.placeholder.scrollParent();
|
||||
|
||||
//Update overflowOffset
|
||||
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
|
||||
this.scrollParent[ 0 ].tagName !== "HTML" ) {
|
||||
this.overflowOffset = this.scrollParent.offset();
|
||||
}
|
||||
|
||||
this.containers[ innermostIndex ]._trigger( "over", event, this._uiHash( this ) );
|
||||
this.containers[ innermostIndex ].containerCache.over = 1;
|
||||
}
|
||||
|
@ -1063,15 +1124,13 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
_createHelper: function( event ) {
|
||||
|
||||
var o = this.options,
|
||||
helper = $.isFunction( o.helper ) ?
|
||||
helper = typeof o.helper === "function" ?
|
||||
$( o.helper.apply( this.element[ 0 ], [ event, this.currentItem ] ) ) :
|
||||
( o.helper === "clone" ? this.currentItem.clone() : this.currentItem );
|
||||
|
||||
//Add the helper to the DOM if that didn't happen already
|
||||
if ( !helper.parents( "body" ).length ) {
|
||||
$( o.appendTo !== "parent" ?
|
||||
o.appendTo :
|
||||
this.currentItem[ 0 ].parentNode )[ 0 ].appendChild( helper[ 0 ] );
|
||||
this.appendTo[ 0 ].appendChild( helper[ 0 ] );
|
||||
}
|
||||
|
||||
if ( helper[ 0 ] === this.currentItem[ 0 ] ) {
|
||||
|
@ -1099,7 +1158,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
if ( typeof obj === "string" ) {
|
||||
obj = obj.split( " " );
|
||||
}
|
||||
if ( $.isArray( obj ) ) {
|
||||
if ( Array.isArray( obj ) ) {
|
||||
obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
|
||||
}
|
||||
if ( "left" in obj ) {
|
||||
|
@ -1379,9 +1438,12 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
|
||||
_rearrange: function( event, i, a, hardRefresh ) {
|
||||
|
||||
a ? a[ 0 ].appendChild( this.placeholder[ 0 ] ) :
|
||||
if ( a ) {
|
||||
a[ 0 ].appendChild( this.placeholder[ 0 ] );
|
||||
} else {
|
||||
i.item[ 0 ].parentNode.insertBefore( this.placeholder[ 0 ],
|
||||
( this.direction === "down" ? i.item[ 0 ] : i.item[ 0 ].nextSibling ) );
|
||||
}
|
||||
|
||||
//Various things done here to improve the performance:
|
||||
// 1. we create a setTimeout, that calls refreshPositions
|
||||
|
@ -1547,4 +1609,4 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||
|
||||
} );
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Spinner 1.12.1
|
||||
* jQuery UI Spinner 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -17,6 +17,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -30,9 +32,10 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
function spinnerModifer( fn ) {
|
||||
function spinnerModifier( fn ) {
|
||||
return function() {
|
||||
var previous = this.element.val();
|
||||
fn.apply( this, arguments );
|
||||
|
@ -44,7 +47,7 @@ function spinnerModifer( fn ) {
|
|||
}
|
||||
|
||||
$.widget( "ui.spinner", {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
defaultElement: "<input>",
|
||||
widgetEventPrefix: "spin",
|
||||
options: {
|
||||
|
@ -137,9 +140,13 @@ $.widget( "ui.spinner", {
|
|||
}
|
||||
},
|
||||
mousewheel: function( event, delta ) {
|
||||
if ( !delta ) {
|
||||
var activeElement = $.ui.safeActiveElement( this.document[ 0 ] );
|
||||
var isActive = this.element[ 0 ] === activeElement;
|
||||
|
||||
if ( !isActive || !delta ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !this.spinning && !this._start( event ) ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -337,7 +344,7 @@ $.widget( "ui.spinner", {
|
|||
var incremental = this.options.incremental;
|
||||
|
||||
if ( incremental ) {
|
||||
return $.isFunction( incremental ) ?
|
||||
return typeof incremental === "function" ?
|
||||
incremental( i ) :
|
||||
Math.floor( i * i * i / 50000 - i * i / 500 + 17 * i / 200 + 1 );
|
||||
}
|
||||
|
@ -435,7 +442,7 @@ $.widget( "ui.spinner", {
|
|||
this.buttons.button( value ? "disable" : "enable" );
|
||||
},
|
||||
|
||||
_setOptions: spinnerModifer( function( options ) {
|
||||
_setOptions: spinnerModifier( function( options ) {
|
||||
this._super( options );
|
||||
} ),
|
||||
|
||||
|
@ -502,7 +509,7 @@ $.widget( "ui.spinner", {
|
|||
this.uiSpinner.replaceWith( this.element );
|
||||
},
|
||||
|
||||
stepUp: spinnerModifer( function( steps ) {
|
||||
stepUp: spinnerModifier( function( steps ) {
|
||||
this._stepUp( steps );
|
||||
} ),
|
||||
_stepUp: function( steps ) {
|
||||
|
@ -512,7 +519,7 @@ $.widget( "ui.spinner", {
|
|||
}
|
||||
},
|
||||
|
||||
stepDown: spinnerModifer( function( steps ) {
|
||||
stepDown: spinnerModifier( function( steps ) {
|
||||
this._stepDown( steps );
|
||||
} ),
|
||||
_stepDown: function( steps ) {
|
||||
|
@ -522,11 +529,11 @@ $.widget( "ui.spinner", {
|
|||
}
|
||||
},
|
||||
|
||||
pageUp: spinnerModifer( function( pages ) {
|
||||
pageUp: spinnerModifier( function( pages ) {
|
||||
this._stepUp( ( pages || 1 ) * this.options.page );
|
||||
} ),
|
||||
|
||||
pageDown: spinnerModifer( function( pages ) {
|
||||
pageDown: spinnerModifier( function( pages ) {
|
||||
this._stepDown( ( pages || 1 ) * this.options.page );
|
||||
} ),
|
||||
|
||||
|
@ -534,7 +541,7 @@ $.widget( "ui.spinner", {
|
|||
if ( !arguments.length ) {
|
||||
return this._parse( this.element.val() );
|
||||
}
|
||||
spinnerModifer( this._value ).call( this, newVal );
|
||||
spinnerModifier( this._value ).call( this, newVal );
|
||||
},
|
||||
|
||||
widget: function() {
|
||||
|
@ -569,4 +576,4 @@ if ( $.uiBackCompat !== false ) {
|
|||
|
||||
return $.ui.spinner;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Tabs 1.12.1
|
||||
* jQuery UI Tabs 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -17,6 +17,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -29,10 +31,11 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
$.widget( "ui.tabs", {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
delay: 300,
|
||||
options: {
|
||||
active: null,
|
||||
|
@ -90,8 +93,8 @@ $.widget( "ui.tabs", {
|
|||
|
||||
// Take disabling tabs via class attribute from HTML
|
||||
// into account and update option properly.
|
||||
if ( $.isArray( options.disabled ) ) {
|
||||
options.disabled = $.unique( options.disabled.concat(
|
||||
if ( Array.isArray( options.disabled ) ) {
|
||||
options.disabled = $.uniqueSort( options.disabled.concat(
|
||||
$.map( this.tabs.filter( ".ui-state-disabled" ), function( li ) {
|
||||
return that.tabs.index( li );
|
||||
} )
|
||||
|
@ -426,7 +429,6 @@ $.widget( "ui.tabs", {
|
|||
return $( "a", this )[ 0 ];
|
||||
} )
|
||||
.attr( {
|
||||
role: "presentation",
|
||||
tabIndex: -1
|
||||
} );
|
||||
this._addClass( this.anchors, "ui-tabs-anchor" );
|
||||
|
@ -498,7 +500,7 @@ $.widget( "ui.tabs", {
|
|||
_setOptionDisabled: function( disabled ) {
|
||||
var currentItem, li, i;
|
||||
|
||||
if ( $.isArray( disabled ) ) {
|
||||
if ( Array.isArray( disabled ) ) {
|
||||
if ( !disabled.length ) {
|
||||
disabled = false;
|
||||
} else if ( disabled.length === this.anchors.length ) {
|
||||
|
@ -729,7 +731,7 @@ $.widget( "ui.tabs", {
|
|||
// meta-function to give users option to provide a href string instead of a numerical index.
|
||||
if ( typeof index === "string" ) {
|
||||
index = this.anchors.index( this.anchors.filter( "[href$='" +
|
||||
$.ui.escapeSelector( index ) + "']" ) );
|
||||
$.escapeSelector( index ) + "']" ) );
|
||||
}
|
||||
|
||||
return index;
|
||||
|
@ -786,7 +788,7 @@ $.widget( "ui.tabs", {
|
|||
disabled = false;
|
||||
} else {
|
||||
index = this._getIndex( index );
|
||||
if ( $.isArray( disabled ) ) {
|
||||
if ( Array.isArray( disabled ) ) {
|
||||
disabled = $.map( disabled, function( num ) {
|
||||
return num !== index ? num : null;
|
||||
} );
|
||||
|
@ -812,7 +814,7 @@ $.widget( "ui.tabs", {
|
|||
if ( $.inArray( index, disabled ) !== -1 ) {
|
||||
return;
|
||||
}
|
||||
if ( $.isArray( disabled ) ) {
|
||||
if ( Array.isArray( disabled ) ) {
|
||||
disabled = $.merge( [ index ], disabled ).sort();
|
||||
} else {
|
||||
disabled = [ index ];
|
||||
|
@ -916,4 +918,4 @@ if ( $.uiBackCompat !== false ) {
|
|||
|
||||
return $.ui.tabs;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Tooltip 1.12.1
|
||||
* jQuery UI Tooltip 1.13.0-rc.2
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
|
@ -17,6 +17,8 @@
|
|||
//>>css.theme: ../../themes/base/theme.css
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
|
@ -29,19 +31,17 @@
|
|||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function( $ ) {
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
$.widget( "ui.tooltip", {
|
||||
version: "1.12.1",
|
||||
version: "1.13.0-rc.2",
|
||||
options: {
|
||||
classes: {
|
||||
"ui-tooltip": "ui-corner-all ui-widget-shadow"
|
||||
},
|
||||
content: function() {
|
||||
|
||||
// support: IE<9, Opera in jQuery <1.7
|
||||
// .text() can't accept undefined, so coerce to a string
|
||||
var title = $( this ).attr( "title" ) || "";
|
||||
var title = $( this ).attr( "title" );
|
||||
|
||||
// Escape title, since we're going from an attribute to raw HTML
|
||||
return $( "<a>" ).text( title ).html();
|
||||
|
@ -68,7 +68,7 @@ $.widget( "ui.tooltip", {
|
|||
describedby.push( id );
|
||||
elem
|
||||
.data( "ui-tooltip-id", id )
|
||||
.attr( "aria-describedby", $.trim( describedby.join( " " ) ) );
|
||||
.attr( "aria-describedby", String.prototype.trim.call( describedby.join( " " ) ) );
|
||||
},
|
||||
|
||||
_removeDescribedBy: function( elem ) {
|
||||
|
@ -81,7 +81,7 @@ $.widget( "ui.tooltip", {
|
|||
}
|
||||
|
||||
elem.removeData( "ui-tooltip-id" );
|
||||
describedby = $.trim( describedby.join( " " ) );
|
||||
describedby = String.prototype.trim.call( describedby.join( " " ) );
|
||||
if ( describedby ) {
|
||||
elem.attr( "aria-describedby", describedby );
|
||||
} else {
|
||||
|
@ -327,7 +327,7 @@ $.widget( "ui.tooltip", {
|
|||
position( positionOption.of );
|
||||
clearInterval( delayedShow );
|
||||
}
|
||||
}, $.fx.interval );
|
||||
}, 13 );
|
||||
}
|
||||
|
||||
this._trigger( "open", event, { tooltip: tooltip } );
|
||||
|
@ -448,6 +448,10 @@ $.widget( "ui.tooltip", {
|
|||
},
|
||||
|
||||
_removeTooltip: function( tooltip ) {
|
||||
|
||||
// Clear the interval for delayed tracking tooltips
|
||||
clearInterval( this.delayedShow );
|
||||
|
||||
tooltip.remove();
|
||||
delete this.tooltips[ tooltip.attr( "id" ) ];
|
||||
},
|
||||
|
@ -513,4 +517,4 @@ if ( $.uiBackCompat !== false ) {
|
|||
|
||||
return $.ui.tooltip;
|
||||
|
||||
} ) );
|
||||
} );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -756,55 +756,55 @@ function wp_default_scripts( $scripts ) {
|
|||
// In order to keep backwards compatibility, and to keep the optimized loading,
|
||||
// the source files were flattened and included with some modifications for AMD loading.
|
||||
// A notable change is that 'jquery-ui-core' now contains 'jquery-ui-position' and 'jquery-ui-widget'.
|
||||
$scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$suffix.js", array( 'jquery' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$suffix.js", array( 'jquery' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.13.0-rc.2', 1 );
|
||||
|
||||
$scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$suffix.js", array( 'jquery-effects-core', 'jquery-effects-scale' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$suffix.js", array( 'jquery-effects-core', 'jquery-effects-size' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 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-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 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-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 );
|
||||
|
||||
// Widgets
|
||||
$scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$suffix.js", array( 'jquery-ui-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.12.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.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$suffix.js", array( 'jquery-ui-core' ), '1.12.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.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$suffix.js", array( 'jquery-ui-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$suffix.js", array( 'jquery-ui-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$suffix.js", array( 'jquery-ui-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$suffix.js", array( 'jquery-ui-menu' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$suffix.js", array( 'jquery-ui-mouse' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$suffix.js", array( 'jquery-ui-button' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$suffix.js", array( 'jquery-ui-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$suffix.js", array( 'jquery-ui-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.13.0-rc.2', 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-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 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-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$suffix.js", array( 'jquery-ui-menu' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$suffix.js", array( 'jquery-ui-button' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 );
|
||||
|
||||
// New in 1.12.1
|
||||
$scripts->add( 'jquery-ui-checkboxradio', "/wp-includes/js/jquery/ui/checkboxradio$suffix.js", array( 'jquery-ui-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-checkboxradio', "/wp-includes/js/jquery/ui/checkboxradio$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 );
|
||||
|
||||
// Interactions
|
||||
$scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$suffix.js", array( 'jquery-ui-mouse' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$suffix.js", array( 'jquery-ui-draggable' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$suffix.js", array( 'jquery-ui-mouse' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$suffix.js", array( 'jquery-ui-mouse' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$suffix.js", array( 'jquery-ui-mouse' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$suffix.js", array( 'jquery-ui-draggable' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0-rc.2', 1 );
|
||||
|
||||
// As of 1.12.1 `jquery-ui-position` and `jquery-ui-widget` are part of `jquery-ui-core`.
|
||||
// Listed here for back-compat.
|
||||
$scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.12.1', 1 );
|
||||
$scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 );
|
||||
$scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 );
|
||||
|
||||
// Strings for 'jquery-ui-autocomplete' live region messages.
|
||||
did_action( 'init' ) && $scripts->localize(
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-51793';
|
||||
$wp_version = '5.9-alpha-51794';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue