jquery 3.7、jquery ui 1.13
This commit is contained in:
File diff suppressed because it is too large
Load Diff
2
common/src/main/resources/static/jquery/jquery-3.7.0.min.js
vendored
Normal file
2
common/src/main/resources/static/jquery/jquery-3.7.0.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
982
common/src/main/resources/static/jquery/jquery-migrate-3.4.0.js
Normal file
982
common/src/main/resources/static/jquery/jquery-migrate-3.4.0.js
Normal file
@@ -0,0 +1,982 @@
|
|||||||
|
/*!
|
||||||
|
* jQuery Migrate - v3.4.0 - 2022-03-24T16:30Z
|
||||||
|
* Copyright OpenJS Foundation and other contributors
|
||||||
|
*/
|
||||||
|
( function( factory ) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
if ( typeof define === "function" && define.amd ) {
|
||||||
|
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define( [ "jquery" ], function( jQuery ) {
|
||||||
|
return factory( jQuery, window );
|
||||||
|
} );
|
||||||
|
} else if ( typeof module === "object" && module.exports ) {
|
||||||
|
|
||||||
|
// Node/CommonJS
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
|
module.exports = factory( require( "jquery" ), window );
|
||||||
|
} else {
|
||||||
|
|
||||||
|
// Browser globals
|
||||||
|
factory( jQuery, window );
|
||||||
|
}
|
||||||
|
} )( function( jQuery, window ) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
jQuery.migrateVersion = "3.4.0";
|
||||||
|
|
||||||
|
// Returns 0 if v1 == v2, -1 if v1 < v2, 1 if v1 > v2
|
||||||
|
function compareVersions( v1, v2 ) {
|
||||||
|
var i,
|
||||||
|
rVersionParts = /^(\d+)\.(\d+)\.(\d+)/,
|
||||||
|
v1p = rVersionParts.exec( v1 ) || [ ],
|
||||||
|
v2p = rVersionParts.exec( v2 ) || [ ];
|
||||||
|
|
||||||
|
for ( i = 1; i <= 3; i++ ) {
|
||||||
|
if ( +v1p[ i ] > +v2p[ i ] ) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if ( +v1p[ i ] < +v2p[ i ] ) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
function jQueryVersionSince( version ) {
|
||||||
|
return compareVersions( jQuery.fn.jquery, version ) >= 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// A map from disabled patch codes to `true`. This should really
|
||||||
|
// be a `Set` but those are unsupported in IE.
|
||||||
|
var disabledPatches = Object.create( null );
|
||||||
|
|
||||||
|
// Don't apply patches for specified codes. Helpful for code bases
|
||||||
|
// where some Migrate warnings have been addressed and it's desirable
|
||||||
|
// to avoid needless patches or false positives.
|
||||||
|
jQuery.migrateDisablePatches = function() {
|
||||||
|
var i;
|
||||||
|
for ( i = 0; i < arguments.length; i++ ) {
|
||||||
|
disabledPatches[ arguments[ i ] ] = true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Allow enabling patches disabled via `jQuery.migrateDisablePatches`.
|
||||||
|
// Helpful if you want to disable a patch only for some code that won't
|
||||||
|
// be updated soon to be able to focus on other warnings - and enable it
|
||||||
|
// immediately after such a call:
|
||||||
|
// ```js
|
||||||
|
// jQuery.migrateDisablePatches( "workaroundA" );
|
||||||
|
// elem.pluginViolatingWarningA( "pluginMethod" );
|
||||||
|
// jQuery.migrateEnablePatches( "workaroundA" );
|
||||||
|
// ```
|
||||||
|
jQuery.migrateEnablePatches = function() {
|
||||||
|
var i;
|
||||||
|
for ( i = 0; i < arguments.length; i++ ) {
|
||||||
|
delete disabledPatches[ arguments[ i ] ];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
jQuery.migrateIsPatchEnabled = function( patchCode ) {
|
||||||
|
return !disabledPatches[ patchCode ];
|
||||||
|
};
|
||||||
|
|
||||||
|
/*( function() {
|
||||||
|
|
||||||
|
// Support: IE9 only
|
||||||
|
// IE9 only creates console object when dev tools are first opened
|
||||||
|
// IE9 console is a host object, callable but doesn't have .apply()
|
||||||
|
if ( !window.console || !window.console.log ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Need jQuery 3.0.0+ and no older Migrate loaded
|
||||||
|
if ( !jQuery || !jQueryVersionSince( "3.0.0" ) ) {
|
||||||
|
window.console.log( "JQMIGRATE: jQuery 3.0.0+ REQUIRED" );
|
||||||
|
}
|
||||||
|
if ( jQuery.migrateWarnings ) {
|
||||||
|
window.console.log( "JQMIGRATE: Migrate plugin loaded multiple times" );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show a message on the console so devs know we're active
|
||||||
|
window.console.log( "JQMIGRATE: Migrate is installed" +
|
||||||
|
( jQuery.migrateMute ? "" : " with logging active" ) +
|
||||||
|
", version " + jQuery.migrateVersion );
|
||||||
|
|
||||||
|
} )();*/
|
||||||
|
|
||||||
|
var warnedAbout = {};
|
||||||
|
|
||||||
|
// By default each warning is only reported once.
|
||||||
|
jQuery.migrateDeduplicateWarnings = true;
|
||||||
|
|
||||||
|
// List of warnings already given; public read only
|
||||||
|
jQuery.migrateWarnings = [];
|
||||||
|
|
||||||
|
// Set to false to disable traces that appear with warnings
|
||||||
|
if ( jQuery.migrateTrace === undefined ) {
|
||||||
|
jQuery.migrateTrace = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Forget any warnings we've already given; public
|
||||||
|
jQuery.migrateReset = function() {
|
||||||
|
warnedAbout = {};
|
||||||
|
jQuery.migrateWarnings.length = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
function migrateWarn( code, msg ) {
|
||||||
|
var console = window.console;
|
||||||
|
if ( jQuery.migrateIsPatchEnabled( code ) &&
|
||||||
|
( !jQuery.migrateDeduplicateWarnings || !warnedAbout[ msg ] ) ) {
|
||||||
|
warnedAbout[ msg ] = true;
|
||||||
|
jQuery.migrateWarnings.push( msg + " [" + code + "]" );
|
||||||
|
if ( console && console.warn && !jQuery.migrateMute ) {
|
||||||
|
console.warn( "JQMIGRATE: " + msg );
|
||||||
|
if ( jQuery.migrateTrace && console.trace ) {
|
||||||
|
console.trace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function migrateWarnProp( obj, prop, value, code, msg ) {
|
||||||
|
Object.defineProperty( obj, prop, {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
get: function() {
|
||||||
|
migrateWarn( code, msg );
|
||||||
|
return value;
|
||||||
|
},
|
||||||
|
set: function( newValue ) {
|
||||||
|
migrateWarn( code, msg );
|
||||||
|
value = newValue;
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
|
function migrateWarnFuncInternal( obj, prop, newFunc, code, msg ) {
|
||||||
|
var finalFunc,
|
||||||
|
origFunc = obj[ prop ];
|
||||||
|
|
||||||
|
obj[ prop ] = function() {
|
||||||
|
|
||||||
|
// If `msg` not provided, do not warn; more sophisticated warnings
|
||||||
|
// logic is most likely embedded in `newFunc`, in that case here
|
||||||
|
// we just care about the logic choosing the proper implementation
|
||||||
|
// based on whether the patch is disabled or not.
|
||||||
|
if ( msg ) {
|
||||||
|
migrateWarn( code, msg );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Since patches can be disabled & enabled dynamically, we
|
||||||
|
// need to decide which implementation to run on each invocation.
|
||||||
|
finalFunc = jQuery.migrateIsPatchEnabled( code ) ?
|
||||||
|
newFunc :
|
||||||
|
|
||||||
|
// The function may not have existed originally so we need a fallback.
|
||||||
|
( origFunc || jQuery.noop );
|
||||||
|
|
||||||
|
return finalFunc.apply( this, arguments );
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function migratePatchAndWarnFunc( obj, prop, newFunc, code, msg ) {
|
||||||
|
if ( !msg ) {
|
||||||
|
throw new Error( "No warning message provided" );
|
||||||
|
}
|
||||||
|
return migrateWarnFuncInternal( obj, prop, newFunc, code, msg );
|
||||||
|
}
|
||||||
|
|
||||||
|
function migratePatchFunc( obj, prop, newFunc, code ) {
|
||||||
|
return migrateWarnFuncInternal( obj, prop, newFunc, code );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( window.document.compatMode === "BackCompat" ) {
|
||||||
|
|
||||||
|
// jQuery has never supported or tested Quirks Mode
|
||||||
|
migrateWarn( "quirks", "jQuery is not compatible with Quirks Mode" );
|
||||||
|
}
|
||||||
|
|
||||||
|
var findProp,
|
||||||
|
class2type = {},
|
||||||
|
oldInit = jQuery.fn.init,
|
||||||
|
oldFind = jQuery.find,
|
||||||
|
|
||||||
|
rattrHashTest = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,
|
||||||
|
rattrHashGlob = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,
|
||||||
|
|
||||||
|
// Support: Android <=4.0 only
|
||||||
|
// Make sure we trim BOM and NBSP
|
||||||
|
rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery.fn, "init", function( arg1 ) {
|
||||||
|
var args = Array.prototype.slice.call( arguments );
|
||||||
|
|
||||||
|
if ( jQuery.migrateIsPatchEnabled( "selector-empty-id" ) &&
|
||||||
|
typeof arg1 === "string" && arg1 === "#" ) {
|
||||||
|
|
||||||
|
// JQuery( "#" ) is a bogus ID selector, but it returned an empty set
|
||||||
|
// before jQuery 3.0
|
||||||
|
migrateWarn( "selector-empty-id", "jQuery( '#' ) is not a valid selector" );
|
||||||
|
args[ 0 ] = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
return oldInit.apply( this, args );
|
||||||
|
}, "selector-empty-id" );
|
||||||
|
|
||||||
|
// This is already done in Core but the above patch will lose this assignment
|
||||||
|
// so we need to redo it. It doesn't matter whether the patch is enabled or not
|
||||||
|
// as the method is always going to be a Migrate-created wrapper.
|
||||||
|
jQuery.fn.init.prototype = jQuery.fn;
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery, "find", function( selector ) {
|
||||||
|
var args = Array.prototype.slice.call( arguments );
|
||||||
|
|
||||||
|
// Support: PhantomJS 1.x
|
||||||
|
// String#match fails to match when used with a //g RegExp, only on some strings
|
||||||
|
if ( typeof selector === "string" && rattrHashTest.test( selector ) ) {
|
||||||
|
|
||||||
|
// The nonstandard and undocumented unquoted-hash was removed in jQuery 1.12.0
|
||||||
|
// First see if qS thinks it's a valid selector, if so avoid a false positive
|
||||||
|
try {
|
||||||
|
window.document.querySelector( selector );
|
||||||
|
} catch ( err1 ) {
|
||||||
|
|
||||||
|
// Didn't *look* valid to qSA, warn and try quoting what we think is the value
|
||||||
|
selector = selector.replace( rattrHashGlob, function( _, attr, op, value ) {
|
||||||
|
return "[" + attr + op + "\"" + value + "\"]";
|
||||||
|
} );
|
||||||
|
|
||||||
|
// If the regexp *may* have created an invalid selector, don't update it
|
||||||
|
// Note that there may be false alarms if selector uses jQuery extensions
|
||||||
|
try {
|
||||||
|
window.document.querySelector( selector );
|
||||||
|
migrateWarn( "selector-hash",
|
||||||
|
"Attribute selector with '#' must be quoted: " + args[ 0 ] );
|
||||||
|
args[ 0 ] = selector;
|
||||||
|
} catch ( err2 ) {
|
||||||
|
migrateWarn( "selector-hash",
|
||||||
|
"Attribute selector with '#' was not fixed: " + args[ 0 ] );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return oldFind.apply( this, args );
|
||||||
|
}, "selector-hash" );
|
||||||
|
|
||||||
|
// Copy properties attached to original jQuery.find method (e.g. .attr, .isXML)
|
||||||
|
for ( findProp in oldFind ) {
|
||||||
|
if ( Object.prototype.hasOwnProperty.call( oldFind, findProp ) ) {
|
||||||
|
jQuery.find[ findProp ] = oldFind[ findProp ];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// The number of elements contained in the matched element set
|
||||||
|
migratePatchAndWarnFunc( jQuery.fn, "size", function() {
|
||||||
|
return this.length;
|
||||||
|
}, "size",
|
||||||
|
"jQuery.fn.size() is deprecated and removed; use the .length property" );
|
||||||
|
|
||||||
|
migratePatchAndWarnFunc( jQuery, "parseJSON", function() {
|
||||||
|
return JSON.parse.apply( null, arguments );
|
||||||
|
}, "parseJSON",
|
||||||
|
"jQuery.parseJSON is deprecated; use JSON.parse" );
|
||||||
|
|
||||||
|
migratePatchAndWarnFunc( jQuery, "holdReady", jQuery.holdReady,
|
||||||
|
"holdReady", "jQuery.holdReady is deprecated" );
|
||||||
|
|
||||||
|
migratePatchAndWarnFunc( jQuery, "unique", jQuery.uniqueSort,
|
||||||
|
"unique", "jQuery.unique is deprecated; use jQuery.uniqueSort" );
|
||||||
|
|
||||||
|
// Now jQuery.expr.pseudos is the standard incantation
|
||||||
|
migrateWarnProp( jQuery.expr, "filters", jQuery.expr.pseudos, "expr-pre-pseudos",
|
||||||
|
"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos" );
|
||||||
|
migrateWarnProp( jQuery.expr, ":", jQuery.expr.pseudos, "expr-pre-pseudos",
|
||||||
|
"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos" );
|
||||||
|
|
||||||
|
// Prior to jQuery 3.1.1 there were internal refs so we don't warn there
|
||||||
|
if ( jQueryVersionSince( "3.1.1" ) ) {
|
||||||
|
migratePatchAndWarnFunc( jQuery, "trim", function( text ) {
|
||||||
|
return text == null ?
|
||||||
|
"" :
|
||||||
|
( text + "" ).replace( rtrim, "" );
|
||||||
|
}, "trim",
|
||||||
|
"jQuery.trim is deprecated; use String.prototype.trim" );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prior to jQuery 3.2 there were internal refs so we don't warn there
|
||||||
|
if ( jQueryVersionSince( "3.2.0" ) ) {
|
||||||
|
migratePatchAndWarnFunc( jQuery, "nodeName", function( elem, name ) {
|
||||||
|
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
|
||||||
|
}, "nodeName",
|
||||||
|
"jQuery.nodeName is deprecated" );
|
||||||
|
|
||||||
|
migratePatchAndWarnFunc( jQuery, "isArray", Array.isArray, "isArray",
|
||||||
|
"jQuery.isArray is deprecated; use Array.isArray"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( jQueryVersionSince( "3.3.0" ) ) {
|
||||||
|
|
||||||
|
migratePatchAndWarnFunc( jQuery, "isNumeric", function( obj ) {
|
||||||
|
|
||||||
|
// As of jQuery 3.0, isNumeric is limited to
|
||||||
|
// strings and numbers (primitives or objects)
|
||||||
|
// that can be coerced to finite numbers (gh-2662)
|
||||||
|
var type = typeof obj;
|
||||||
|
return ( type === "number" || type === "string" ) &&
|
||||||
|
|
||||||
|
// parseFloat NaNs numeric-cast false positives ("")
|
||||||
|
// ...but misinterprets leading-number strings, e.g. hex literals ("0x...")
|
||||||
|
// subtraction forces infinities to NaN
|
||||||
|
!isNaN( obj - parseFloat( obj ) );
|
||||||
|
}, "isNumeric",
|
||||||
|
"jQuery.isNumeric() is deprecated"
|
||||||
|
);
|
||||||
|
|
||||||
|
// Populate the class2type map
|
||||||
|
jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".
|
||||||
|
split( " " ),
|
||||||
|
function( _, name ) {
|
||||||
|
class2type[ "[object " + name + "]" ] = name.toLowerCase();
|
||||||
|
} );
|
||||||
|
|
||||||
|
migratePatchAndWarnFunc( jQuery, "type", function( obj ) {
|
||||||
|
if ( obj == null ) {
|
||||||
|
return obj + "";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Support: Android <=2.3 only (functionish RegExp)
|
||||||
|
return typeof obj === "object" || typeof obj === "function" ?
|
||||||
|
class2type[ Object.prototype.toString.call( obj ) ] || "object" :
|
||||||
|
typeof obj;
|
||||||
|
}, "type",
|
||||||
|
"jQuery.type is deprecated" );
|
||||||
|
|
||||||
|
migratePatchAndWarnFunc( jQuery, "isFunction",
|
||||||
|
function( obj ) {
|
||||||
|
return typeof obj === "function";
|
||||||
|
}, "isFunction",
|
||||||
|
"jQuery.isFunction() is deprecated" );
|
||||||
|
|
||||||
|
migratePatchAndWarnFunc( jQuery, "isWindow",
|
||||||
|
function( obj ) {
|
||||||
|
return obj != null && obj === obj.window;
|
||||||
|
}, "isWindow",
|
||||||
|
"jQuery.isWindow() is deprecated"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Support jQuery slim which excludes the ajax module
|
||||||
|
if ( jQuery.ajax ) {
|
||||||
|
|
||||||
|
var oldAjax = jQuery.ajax,
|
||||||
|
rjsonp = /(=)\?(?=&|$)|\?\?/;
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery, "ajax", function() {
|
||||||
|
var jQXHR = oldAjax.apply( this, arguments );
|
||||||
|
|
||||||
|
// Be sure we got a jQXHR (e.g., not sync)
|
||||||
|
if ( jQXHR.promise ) {
|
||||||
|
migratePatchAndWarnFunc( jQXHR, "success", jQXHR.done, "jqXHR-methods",
|
||||||
|
"jQXHR.success is deprecated and removed" );
|
||||||
|
migratePatchAndWarnFunc( jQXHR, "error", jQXHR.fail, "jqXHR-methods",
|
||||||
|
"jQXHR.error is deprecated and removed" );
|
||||||
|
migratePatchAndWarnFunc( jQXHR, "complete", jQXHR.always, "jqXHR-methods",
|
||||||
|
"jQXHR.complete is deprecated and removed" );
|
||||||
|
}
|
||||||
|
|
||||||
|
return jQXHR;
|
||||||
|
}, "jqXHR-methods" );
|
||||||
|
|
||||||
|
// Only trigger the logic in jQuery <4 as the JSON-to-JSONP auto-promotion
|
||||||
|
// behavior is gone in jQuery 4.0 and as it has security implications, we don't
|
||||||
|
// want to restore the legacy behavior.
|
||||||
|
if ( !jQueryVersionSince( "4.0.0" ) ) {
|
||||||
|
|
||||||
|
// Register this prefilter before the jQuery one. Otherwise, a promoted
|
||||||
|
// request is transformed into one with the script dataType and we can't
|
||||||
|
// catch it anymore.
|
||||||
|
jQuery.ajaxPrefilter( "+json", function( s ) {
|
||||||
|
|
||||||
|
// Warn if JSON-to-JSONP auto-promotion happens.
|
||||||
|
if ( s.jsonp !== false && ( rjsonp.test( s.url ) ||
|
||||||
|
typeof s.data === "string" &&
|
||||||
|
( s.contentType || "" )
|
||||||
|
.indexOf( "application/x-www-form-urlencoded" ) === 0 &&
|
||||||
|
rjsonp.test( s.data )
|
||||||
|
) ) {
|
||||||
|
migrateWarn( "jsonp-promotion", "JSON-to-JSONP auto-promotion is deprecated" );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
var oldRemoveAttr = jQuery.fn.removeAttr,
|
||||||
|
oldToggleClass = jQuery.fn.toggleClass,
|
||||||
|
rmatchNonSpace = /\S+/g;
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery.fn, "removeAttr", function( name ) {
|
||||||
|
var self = this;
|
||||||
|
|
||||||
|
jQuery.each( name.match( rmatchNonSpace ), function( _i, attr ) {
|
||||||
|
if ( jQuery.expr.match.bool.test( attr ) ) {
|
||||||
|
migrateWarn( "removeAttr-bool",
|
||||||
|
"jQuery.fn.removeAttr no longer sets boolean properties: " + attr );
|
||||||
|
self.prop( attr, false );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
return oldRemoveAttr.apply( this, arguments );
|
||||||
|
}, "removeAttr-bool" );
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery.fn, "toggleClass", function( state ) {
|
||||||
|
|
||||||
|
// Only deprecating no-args or single boolean arg
|
||||||
|
if ( state !== undefined && typeof state !== "boolean" ) {
|
||||||
|
|
||||||
|
return oldToggleClass.apply( this, arguments );
|
||||||
|
}
|
||||||
|
|
||||||
|
migrateWarn( "toggleClass-bool", "jQuery.fn.toggleClass( boolean ) is deprecated" );
|
||||||
|
|
||||||
|
// Toggle entire class name of each element
|
||||||
|
return this.each( function() {
|
||||||
|
var className = this.getAttribute && this.getAttribute( "class" ) || "";
|
||||||
|
|
||||||
|
if ( className ) {
|
||||||
|
jQuery.data( this, "__className__", className );
|
||||||
|
}
|
||||||
|
|
||||||
|
// If the element has a class name or if we're passed `false`,
|
||||||
|
// then remove the whole classname (if there was one, the above saved it).
|
||||||
|
// Otherwise bring back whatever was previously saved (if anything),
|
||||||
|
// falling back to the empty string if nothing was stored.
|
||||||
|
if ( this.setAttribute ) {
|
||||||
|
this.setAttribute( "class",
|
||||||
|
className || state === false ?
|
||||||
|
"" :
|
||||||
|
jQuery.data( this, "__className__" ) || ""
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
}, "toggleClass-bool" );
|
||||||
|
|
||||||
|
function camelCase( string ) {
|
||||||
|
return string.replace( /-([a-z])/g, function( _, letter ) {
|
||||||
|
return letter.toUpperCase();
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
|
var origFnCss,
|
||||||
|
internalSwapCall = false,
|
||||||
|
ralphaStart = /^[a-z]/,
|
||||||
|
|
||||||
|
// The regex visualized:
|
||||||
|
//
|
||||||
|
// /----------\
|
||||||
|
// | | /-------\
|
||||||
|
// | / Top \ | | |
|
||||||
|
// /--- Border ---+-| Right |-+---+- Width -+---\
|
||||||
|
// | | Bottom | |
|
||||||
|
// | \ Left / |
|
||||||
|
// | |
|
||||||
|
// | /----------\ |
|
||||||
|
// | /-------------\ | | |- END
|
||||||
|
// | | | | / Top \ | |
|
||||||
|
// | | / Margin \ | | | Right | | |
|
||||||
|
// |---------+-| |-+---+-| Bottom |-+----|
|
||||||
|
// | \ Padding / \ Left / |
|
||||||
|
// BEGIN -| |
|
||||||
|
// | /---------\ |
|
||||||
|
// | | | |
|
||||||
|
// | | / Min \ | / Width \ |
|
||||||
|
// \--------------+-| |-+---| |---/
|
||||||
|
// \ Max / \ Height /
|
||||||
|
rautoPx = /^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;
|
||||||
|
|
||||||
|
// If this version of jQuery has .swap(), don't false-alarm on internal uses
|
||||||
|
if ( jQuery.swap ) {
|
||||||
|
jQuery.each( [ "height", "width", "reliableMarginRight" ], function( _, name ) {
|
||||||
|
var oldHook = jQuery.cssHooks[ name ] && jQuery.cssHooks[ name ].get;
|
||||||
|
|
||||||
|
if ( oldHook ) {
|
||||||
|
jQuery.cssHooks[ name ].get = function() {
|
||||||
|
var ret;
|
||||||
|
|
||||||
|
internalSwapCall = true;
|
||||||
|
ret = oldHook.apply( this, arguments );
|
||||||
|
internalSwapCall = false;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery, "swap", function( elem, options, callback, args ) {
|
||||||
|
var ret, name,
|
||||||
|
old = {};
|
||||||
|
|
||||||
|
if ( !internalSwapCall ) {
|
||||||
|
migrateWarn( "swap", "jQuery.swap() is undocumented and deprecated" );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remember the old values, and insert the new ones
|
||||||
|
for ( name in options ) {
|
||||||
|
old[ name ] = elem.style[ name ];
|
||||||
|
elem.style[ name ] = options[ name ];
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = callback.apply( elem, args || [] );
|
||||||
|
|
||||||
|
// Revert the old values
|
||||||
|
for ( name in options ) {
|
||||||
|
elem.style[ name ] = old[ name ];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}, "swap" );
|
||||||
|
|
||||||
|
if ( jQueryVersionSince( "3.4.0" ) && typeof Proxy !== "undefined" ) {
|
||||||
|
jQuery.cssProps = new Proxy( jQuery.cssProps || {}, {
|
||||||
|
set: function() {
|
||||||
|
migrateWarn( "cssProps", "jQuery.cssProps is deprecated" );
|
||||||
|
return Reflect.set.apply( this, arguments );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
|
// In jQuery >=4 where jQuery.cssNumber is missing fill it with the latest 3.x version:
|
||||||
|
// https://github.com/jquery/jquery/blob/3.6.0/src/css.js#L212-L233
|
||||||
|
// This way, number values for the CSS properties below won't start triggering
|
||||||
|
// Migrate warnings when jQuery gets updated to >=4.0.0 (gh-438).
|
||||||
|
if ( jQueryVersionSince( "4.0.0" ) && typeof Proxy !== "undefined" ) {
|
||||||
|
jQuery.cssNumber = new Proxy( {
|
||||||
|
animationIterationCount: true,
|
||||||
|
columnCount: true,
|
||||||
|
fillOpacity: true,
|
||||||
|
flexGrow: true,
|
||||||
|
flexShrink: true,
|
||||||
|
fontWeight: true,
|
||||||
|
gridArea: true,
|
||||||
|
gridColumn: true,
|
||||||
|
gridColumnEnd: true,
|
||||||
|
gridColumnStart: true,
|
||||||
|
gridRow: true,
|
||||||
|
gridRowEnd: true,
|
||||||
|
gridRowStart: true,
|
||||||
|
lineHeight: true,
|
||||||
|
opacity: true,
|
||||||
|
order: true,
|
||||||
|
orphans: true,
|
||||||
|
widows: true,
|
||||||
|
zIndex: true,
|
||||||
|
zoom: true
|
||||||
|
}, {
|
||||||
|
get: function() {
|
||||||
|
migrateWarn( "css-number", "jQuery.cssNumber is deprecated" );
|
||||||
|
return Reflect.get.apply( this, arguments );
|
||||||
|
},
|
||||||
|
set: function() {
|
||||||
|
migrateWarn( "css-number", "jQuery.cssNumber is deprecated" );
|
||||||
|
return Reflect.set.apply( this, arguments );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
|
function isAutoPx( prop ) {
|
||||||
|
|
||||||
|
// The first test is used to ensure that:
|
||||||
|
// 1. The prop starts with a lowercase letter (as we uppercase it for the second regex).
|
||||||
|
// 2. The prop is not empty.
|
||||||
|
return ralphaStart.test( prop ) &&
|
||||||
|
rautoPx.test( prop[ 0 ].toUpperCase() + prop.slice( 1 ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
origFnCss = jQuery.fn.css;
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery.fn, "css", function( name, value ) {
|
||||||
|
var camelName,
|
||||||
|
origThis = this;
|
||||||
|
|
||||||
|
if ( name && typeof name === "object" && !Array.isArray( name ) ) {
|
||||||
|
jQuery.each( name, function( n, v ) {
|
||||||
|
jQuery.fn.css.call( origThis, n, v );
|
||||||
|
} );
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( typeof value === "number" ) {
|
||||||
|
camelName = camelCase( name );
|
||||||
|
if ( !isAutoPx( camelName ) && !jQuery.cssNumber[ camelName ] ) {
|
||||||
|
migrateWarn( "css-number",
|
||||||
|
"Number-typed values are deprecated for jQuery.fn.css( \"" +
|
||||||
|
name + "\", value )" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return origFnCss.apply( this, arguments );
|
||||||
|
}, "css-number" );
|
||||||
|
|
||||||
|
var origData = jQuery.data;
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery, "data", function( elem, name, value ) {
|
||||||
|
var curData, sameKeys, key;
|
||||||
|
|
||||||
|
// Name can be an object, and each entry in the object is meant to be set as data
|
||||||
|
if ( name && typeof name === "object" && arguments.length === 2 ) {
|
||||||
|
|
||||||
|
curData = jQuery.hasData( elem ) && origData.call( this, elem );
|
||||||
|
sameKeys = {};
|
||||||
|
for ( key in name ) {
|
||||||
|
if ( key !== camelCase( key ) ) {
|
||||||
|
migrateWarn( "data-camelCase",
|
||||||
|
"jQuery.data() always sets/gets camelCased names: " + key );
|
||||||
|
curData[ key ] = name[ key ];
|
||||||
|
} else {
|
||||||
|
sameKeys[ key ] = name[ key ];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
origData.call( this, elem, sameKeys );
|
||||||
|
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If the name is transformed, look for the un-transformed name in the data object
|
||||||
|
if ( name && typeof name === "string" && name !== camelCase( name ) ) {
|
||||||
|
|
||||||
|
curData = jQuery.hasData( elem ) && origData.call( this, elem );
|
||||||
|
if ( curData && name in curData ) {
|
||||||
|
migrateWarn( "data-camelCase",
|
||||||
|
"jQuery.data() always sets/gets camelCased names: " + name );
|
||||||
|
if ( arguments.length > 2 ) {
|
||||||
|
curData[ name ] = value;
|
||||||
|
}
|
||||||
|
return curData[ name ];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return origData.apply( this, arguments );
|
||||||
|
}, "data-camelCase" );
|
||||||
|
|
||||||
|
// Support jQuery slim which excludes the effects module
|
||||||
|
if ( jQuery.fx ) {
|
||||||
|
|
||||||
|
var intervalValue, intervalMsg,
|
||||||
|
oldTweenRun = jQuery.Tween.prototype.run,
|
||||||
|
linearEasing = function( pct ) {
|
||||||
|
return pct;
|
||||||
|
};
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery.Tween.prototype, "run", function( ) {
|
||||||
|
if ( jQuery.easing[ this.easing ].length > 1 ) {
|
||||||
|
migrateWarn(
|
||||||
|
"easing-one-arg",
|
||||||
|
"'jQuery.easing." + this.easing.toString() + "' should use only one argument"
|
||||||
|
);
|
||||||
|
|
||||||
|
jQuery.easing[ this.easing ] = linearEasing;
|
||||||
|
}
|
||||||
|
|
||||||
|
oldTweenRun.apply( this, arguments );
|
||||||
|
}, "easing-one-arg" );
|
||||||
|
|
||||||
|
intervalValue = jQuery.fx.interval;
|
||||||
|
intervalMsg = "jQuery.fx.interval is deprecated";
|
||||||
|
|
||||||
|
// Support: IE9, Android <=4.4
|
||||||
|
// Avoid false positives on browsers that lack rAF
|
||||||
|
// Don't warn if document is hidden, jQuery uses setTimeout (#292)
|
||||||
|
if ( window.requestAnimationFrame ) {
|
||||||
|
Object.defineProperty( jQuery.fx, "interval", {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
get: function() {
|
||||||
|
if ( !window.document.hidden ) {
|
||||||
|
migrateWarn( "fx-interval", intervalMsg );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Only fallback to the default if patch is enabled
|
||||||
|
if ( !jQuery.migrateIsPatchEnabled( "fx-interval" ) ) {
|
||||||
|
return intervalValue;
|
||||||
|
}
|
||||||
|
return intervalValue === undefined ? 13 : intervalValue;
|
||||||
|
},
|
||||||
|
set: function( newValue ) {
|
||||||
|
migrateWarn( "fx-interval", intervalMsg );
|
||||||
|
intervalValue = newValue;
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
var oldLoad = jQuery.fn.load,
|
||||||
|
oldEventAdd = jQuery.event.add,
|
||||||
|
originalFix = jQuery.event.fix;
|
||||||
|
|
||||||
|
jQuery.event.props = [];
|
||||||
|
jQuery.event.fixHooks = {};
|
||||||
|
|
||||||
|
migrateWarnProp( jQuery.event.props, "concat", jQuery.event.props.concat,
|
||||||
|
"event-old-patch",
|
||||||
|
"jQuery.event.props.concat() is deprecated and removed" );
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery.event, "fix", function( originalEvent ) {
|
||||||
|
var event,
|
||||||
|
type = originalEvent.type,
|
||||||
|
fixHook = this.fixHooks[ type ],
|
||||||
|
props = jQuery.event.props;
|
||||||
|
|
||||||
|
if ( props.length ) {
|
||||||
|
migrateWarn( "event-old-patch",
|
||||||
|
"jQuery.event.props are deprecated and removed: " + props.join() );
|
||||||
|
while ( props.length ) {
|
||||||
|
jQuery.event.addProp( props.pop() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( fixHook && !fixHook._migrated_ ) {
|
||||||
|
fixHook._migrated_ = true;
|
||||||
|
migrateWarn( "event-old-patch",
|
||||||
|
"jQuery.event.fixHooks are deprecated and removed: " + type );
|
||||||
|
if ( ( props = fixHook.props ) && props.length ) {
|
||||||
|
while ( props.length ) {
|
||||||
|
jQuery.event.addProp( props.pop() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
event = originalFix.call( this, originalEvent );
|
||||||
|
|
||||||
|
return fixHook && fixHook.filter ?
|
||||||
|
fixHook.filter( event, originalEvent ) :
|
||||||
|
event;
|
||||||
|
}, "event-old-patch" );
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery.event, "add", function( elem, types ) {
|
||||||
|
|
||||||
|
// This misses the multiple-types case but that seems awfully rare
|
||||||
|
if ( elem === window && types === "load" && window.document.readyState === "complete" ) {
|
||||||
|
migrateWarn( "load-after-event",
|
||||||
|
"jQuery(window).on('load'...) called after load event occurred" );
|
||||||
|
}
|
||||||
|
return oldEventAdd.apply( this, arguments );
|
||||||
|
}, "load-after-event" );
|
||||||
|
|
||||||
|
jQuery.each( [ "load", "unload", "error" ], function( _, name ) {
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery.fn, name, function() {
|
||||||
|
var args = Array.prototype.slice.call( arguments, 0 );
|
||||||
|
|
||||||
|
// If this is an ajax load() the first arg should be the string URL;
|
||||||
|
// technically this could also be the "Anything" arg of the event .load()
|
||||||
|
// which just goes to show why this dumb signature has been deprecated!
|
||||||
|
// jQuery custom builds that exclude the Ajax module justifiably die here.
|
||||||
|
if ( name === "load" && typeof args[ 0 ] === "string" ) {
|
||||||
|
return oldLoad.apply( this, args );
|
||||||
|
}
|
||||||
|
|
||||||
|
migrateWarn( "shorthand-removed-v3",
|
||||||
|
"jQuery.fn." + name + "() is deprecated" );
|
||||||
|
|
||||||
|
args.splice( 0, 0, name );
|
||||||
|
if ( arguments.length ) {
|
||||||
|
return this.on.apply( this, args );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Use .triggerHandler here because:
|
||||||
|
// - load and unload events don't need to bubble, only applied to window or image
|
||||||
|
// - error event should not bubble to window, although it does pre-1.7
|
||||||
|
// See http://bugs.jquery.com/ticket/11820
|
||||||
|
this.triggerHandler.apply( this, args );
|
||||||
|
return this;
|
||||||
|
}, "shorthand-removed-v3" );
|
||||||
|
|
||||||
|
} );
|
||||||
|
|
||||||
|
jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
|
||||||
|
"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
|
||||||
|
"change select submit keydown keypress keyup contextmenu" ).split( " " ),
|
||||||
|
function( _i, name ) {
|
||||||
|
|
||||||
|
// Handle event binding
|
||||||
|
migratePatchAndWarnFunc( jQuery.fn, name, function( data, fn ) {
|
||||||
|
return arguments.length > 0 ?
|
||||||
|
this.on( name, null, data, fn ) :
|
||||||
|
this.trigger( name );
|
||||||
|
},
|
||||||
|
"shorthand-deprecated-v3",
|
||||||
|
"jQuery.fn." + name + "() event shorthand is deprecated" );
|
||||||
|
} );
|
||||||
|
|
||||||
|
// Trigger "ready" event only once, on document ready
|
||||||
|
jQuery( function() {
|
||||||
|
jQuery( window.document ).triggerHandler( "ready" );
|
||||||
|
} );
|
||||||
|
|
||||||
|
jQuery.event.special.ready = {
|
||||||
|
setup: function() {
|
||||||
|
if ( this === window.document ) {
|
||||||
|
migrateWarn( "ready-event", "'ready' event is deprecated" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
migratePatchAndWarnFunc( jQuery.fn, "bind", function( types, data, fn ) {
|
||||||
|
return this.on( types, null, data, fn );
|
||||||
|
}, "pre-on-methods", "jQuery.fn.bind() is deprecated" );
|
||||||
|
migratePatchAndWarnFunc( jQuery.fn, "unbind", function( types, fn ) {
|
||||||
|
return this.off( types, null, fn );
|
||||||
|
}, "pre-on-methods", "jQuery.fn.unbind() is deprecated" );
|
||||||
|
migratePatchAndWarnFunc( jQuery.fn, "delegate", function( selector, types, data, fn ) {
|
||||||
|
return this.on( types, selector, data, fn );
|
||||||
|
}, "pre-on-methods", "jQuery.fn.delegate() is deprecated" );
|
||||||
|
migratePatchAndWarnFunc( jQuery.fn, "undelegate", function( selector, types, fn ) {
|
||||||
|
return arguments.length === 1 ?
|
||||||
|
this.off( selector, "**" ) :
|
||||||
|
this.off( types, selector || "**", fn );
|
||||||
|
}, "pre-on-methods", "jQuery.fn.undelegate() is deprecated" );
|
||||||
|
migratePatchAndWarnFunc( jQuery.fn, "hover", function( fnOver, fnOut ) {
|
||||||
|
return this.on( "mouseenter", fnOver ).on( "mouseleave", fnOut || fnOver );
|
||||||
|
}, "pre-on-methods", "jQuery.fn.hover() is deprecated" );
|
||||||
|
|
||||||
|
var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
|
||||||
|
makeMarkup = function( html ) {
|
||||||
|
var doc = window.document.implementation.createHTMLDocument( "" );
|
||||||
|
doc.body.innerHTML = html;
|
||||||
|
return doc.body && doc.body.innerHTML;
|
||||||
|
},
|
||||||
|
warnIfChanged = function( html ) {
|
||||||
|
var changed = html.replace( rxhtmlTag, "<$1></$2>" );
|
||||||
|
if ( changed !== html && makeMarkup( html ) !== makeMarkup( changed ) ) {
|
||||||
|
migrateWarn( "self-closed-tags",
|
||||||
|
"HTML tags must be properly nested and closed: " + html );
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deprecated, please use `jQuery.migrateDisablePatches( "self-closed-tags" )` instead.
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
jQuery.UNSAFE_restoreLegacyHtmlPrefilter = function() {
|
||||||
|
jQuery.migrateEnablePatches( "self-closed-tags" );
|
||||||
|
};
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery, "htmlPrefilter", function( html ) {
|
||||||
|
warnIfChanged( html );
|
||||||
|
return html.replace( rxhtmlTag, "<$1></$2>" );
|
||||||
|
}, "self-closed-tags" );
|
||||||
|
|
||||||
|
// This patch needs to be disabled by default as it re-introduces
|
||||||
|
// security issues (CVE-2020-11022, CVE-2020-11023).
|
||||||
|
jQuery.migrateDisablePatches( "self-closed-tags" );
|
||||||
|
|
||||||
|
var origOffset = jQuery.fn.offset;
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery.fn, "offset", function() {
|
||||||
|
var elem = this[ 0 ];
|
||||||
|
|
||||||
|
if ( elem && ( !elem.nodeType || !elem.getBoundingClientRect ) ) {
|
||||||
|
migrateWarn( "offset-valid-elem", "jQuery.fn.offset() requires a valid DOM element" );
|
||||||
|
return arguments.length ? this : undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
return origOffset.apply( this, arguments );
|
||||||
|
}, "offset-valid-elem" );
|
||||||
|
|
||||||
|
// Support jQuery slim which excludes the ajax module
|
||||||
|
// The jQuery.param patch is about respecting `jQuery.ajaxSettings.traditional`
|
||||||
|
// so it doesn't make sense for the slim build.
|
||||||
|
if ( jQuery.ajax ) {
|
||||||
|
|
||||||
|
var origParam = jQuery.param;
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery, "param", function( data, traditional ) {
|
||||||
|
var ajaxTraditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
|
||||||
|
|
||||||
|
if ( traditional === undefined && ajaxTraditional ) {
|
||||||
|
|
||||||
|
migrateWarn( "param-ajax-traditional",
|
||||||
|
"jQuery.param() no longer uses jQuery.ajaxSettings.traditional" );
|
||||||
|
traditional = ajaxTraditional;
|
||||||
|
}
|
||||||
|
|
||||||
|
return origParam.call( this, data, traditional );
|
||||||
|
}, "param-ajax-traditional" );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
migratePatchAndWarnFunc( jQuery.fn, "andSelf", jQuery.fn.addBack, "andSelf",
|
||||||
|
"jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()" );
|
||||||
|
|
||||||
|
// Support jQuery slim which excludes the deferred module in jQuery 4.0+
|
||||||
|
if ( jQuery.Deferred ) {
|
||||||
|
|
||||||
|
var oldDeferred = jQuery.Deferred,
|
||||||
|
tuples = [
|
||||||
|
|
||||||
|
// Action, add listener, callbacks, .then handlers, final state
|
||||||
|
[ "resolve", "done", jQuery.Callbacks( "once memory" ),
|
||||||
|
jQuery.Callbacks( "once memory" ), "resolved" ],
|
||||||
|
[ "reject", "fail", jQuery.Callbacks( "once memory" ),
|
||||||
|
jQuery.Callbacks( "once memory" ), "rejected" ],
|
||||||
|
[ "notify", "progress", jQuery.Callbacks( "memory" ),
|
||||||
|
jQuery.Callbacks( "memory" ) ]
|
||||||
|
];
|
||||||
|
|
||||||
|
migratePatchFunc( jQuery, "Deferred", function( func ) {
|
||||||
|
var deferred = oldDeferred(),
|
||||||
|
promise = deferred.promise();
|
||||||
|
|
||||||
|
function newDeferredPipe( /* fnDone, fnFail, fnProgress */ ) {
|
||||||
|
var fns = arguments;
|
||||||
|
|
||||||
|
return jQuery.Deferred( function( newDefer ) {
|
||||||
|
jQuery.each( tuples, function( i, tuple ) {
|
||||||
|
var fn = typeof fns[ i ] === "function" && fns[ i ];
|
||||||
|
|
||||||
|
// Deferred.done(function() { bind to newDefer or newDefer.resolve })
|
||||||
|
// deferred.fail(function() { bind to newDefer or newDefer.reject })
|
||||||
|
// deferred.progress(function() { bind to newDefer or newDefer.notify })
|
||||||
|
deferred[ tuple[ 1 ] ]( function() {
|
||||||
|
var returned = fn && fn.apply( this, arguments );
|
||||||
|
if ( returned && typeof returned.promise === "function" ) {
|
||||||
|
returned.promise()
|
||||||
|
.done( newDefer.resolve )
|
||||||
|
.fail( newDefer.reject )
|
||||||
|
.progress( newDefer.notify );
|
||||||
|
} else {
|
||||||
|
newDefer[ tuple[ 0 ] + "With" ](
|
||||||
|
this === promise ? newDefer.promise() : this,
|
||||||
|
fn ? [ returned ] : arguments
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
fns = null;
|
||||||
|
} ).promise();
|
||||||
|
}
|
||||||
|
|
||||||
|
migratePatchAndWarnFunc( deferred, "pipe", newDeferredPipe, "deferred-pipe",
|
||||||
|
"deferred.pipe() is deprecated" );
|
||||||
|
migratePatchAndWarnFunc( promise, "pipe", newDeferredPipe, "deferred-pipe",
|
||||||
|
"deferred.pipe() is deprecated" );
|
||||||
|
|
||||||
|
if ( func ) {
|
||||||
|
func.call( deferred, deferred );
|
||||||
|
}
|
||||||
|
|
||||||
|
return deferred;
|
||||||
|
}, "deferred-pipe" );
|
||||||
|
|
||||||
|
// Preserve handler of uncaught exceptions in promise chains
|
||||||
|
jQuery.Deferred.exceptionHook = oldDeferred.exceptionHook;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return jQuery;
|
||||||
|
} );
|
||||||
2
common/src/main/resources/static/jquery/jquery-migrate-3.4.0.min.js
vendored
Normal file
2
common/src/main/resources/static/jquery/jquery-migrate-3.4.0.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,27 +1,30 @@
|
|||||||
/*! jQuery UI - v1.12.1 - 2017-11-15
|
/*! jQuery UI - v1.13.2 - 2023-05-18
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
* Includes: widget.js, data.js, disable-selection.js, scroll-parent.js, widgets/draggable.js, widgets/mouse.js
|
* Includes: widget.js, data.js, scroll-parent.js, widgets/draggable.js, widgets/mouse.js
|
||||||
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
||||||
|
|
||||||
(function( factory ) {
|
( function( factory ) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
if ( typeof define === "function" && define.amd ) {
|
if ( typeof define === "function" && define.amd ) {
|
||||||
|
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
define([ "jquery" ], factory );
|
define( [ "jquery" ], factory );
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Browser globals
|
// Browser globals
|
||||||
factory( jQuery );
|
factory( jQuery );
|
||||||
}
|
}
|
||||||
}(function( $ ) {
|
} )( function( $ ) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
$.ui = $.ui || {};
|
$.ui = $.ui || {};
|
||||||
|
|
||||||
var version = $.ui.version = "1.12.1";
|
var version = $.ui.version = "1.13.2";
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Widget 1.12.1
|
* jQuery UI Widget 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -36,24 +39,20 @@ var version = $.ui.version = "1.12.1";
|
|||||||
//>>demos: http://jqueryui.com/widget/
|
//>>demos: http://jqueryui.com/widget/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var widgetUuid = 0;
|
var widgetUuid = 0;
|
||||||
|
var widgetHasOwnProperty = Array.prototype.hasOwnProperty;
|
||||||
var widgetSlice = Array.prototype.slice;
|
var widgetSlice = Array.prototype.slice;
|
||||||
|
|
||||||
$.cleanData = ( function( orig ) {
|
$.cleanData = ( function( orig ) {
|
||||||
return function( elems ) {
|
return function( elems ) {
|
||||||
var events, elem, i;
|
var events, elem, i;
|
||||||
for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
|
for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
|
||||||
try {
|
|
||||||
|
|
||||||
// Only trigger remove when necessary to save time
|
// Only trigger remove when necessary to save time
|
||||||
events = $._data( elem, "events" );
|
events = $._data( elem, "events" );
|
||||||
if ( events && events.remove ) {
|
if ( events && events.remove ) {
|
||||||
$( elem ).triggerHandler( "remove" );
|
$( elem ).triggerHandler( "remove" );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Http://bugs.jquery.com/ticket/8235
|
|
||||||
} catch ( e ) {}
|
|
||||||
}
|
}
|
||||||
orig( elems );
|
orig( elems );
|
||||||
};
|
};
|
||||||
@@ -75,12 +74,12 @@ $.widget = function( name, base, prototype ) {
|
|||||||
base = $.Widget;
|
base = $.Widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $.isArray( prototype ) ) {
|
if ( Array.isArray( prototype ) ) {
|
||||||
prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
|
prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create selector for plugin
|
// Create selector for plugin
|
||||||
$.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
|
$.expr.pseudos[ fullName.toLowerCase() ] = function( elem ) {
|
||||||
return !!$.data( elem, fullName );
|
return !!$.data( elem, fullName );
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -89,7 +88,7 @@ $.widget = function( name, base, prototype ) {
|
|||||||
constructor = $[ namespace ][ name ] = function( options, element ) {
|
constructor = $[ namespace ][ name ] = function( options, element ) {
|
||||||
|
|
||||||
// Allow instantiation without "new" keyword
|
// Allow instantiation without "new" keyword
|
||||||
if ( !this._createWidget ) {
|
if ( !this || !this._createWidget ) {
|
||||||
return new constructor( options, element );
|
return new constructor( options, element );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,7 +119,7 @@ $.widget = function( name, base, prototype ) {
|
|||||||
// inheriting from
|
// inheriting from
|
||||||
basePrototype.options = $.widget.extend( {}, basePrototype.options );
|
basePrototype.options = $.widget.extend( {}, basePrototype.options );
|
||||||
$.each( prototype, function( prop, value ) {
|
$.each( prototype, function( prop, value ) {
|
||||||
if ( !$.isFunction( value ) ) {
|
if ( typeof value !== "function" ) {
|
||||||
proxiedPrototype[ prop ] = value;
|
proxiedPrototype[ prop ] = value;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -199,7 +198,7 @@ $.widget.extend = function( target ) {
|
|||||||
for ( ; inputIndex < inputLength; inputIndex++ ) {
|
for ( ; inputIndex < inputLength; inputIndex++ ) {
|
||||||
for ( key in input[ inputIndex ] ) {
|
for ( key in input[ inputIndex ] ) {
|
||||||
value = input[ inputIndex ][ key ];
|
value = input[ inputIndex ][ key ];
|
||||||
if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
|
if ( widgetHasOwnProperty.call( input[ inputIndex ], key ) && value !== undefined ) {
|
||||||
|
|
||||||
// Clone objects
|
// Clone objects
|
||||||
if ( $.isPlainObject( value ) ) {
|
if ( $.isPlainObject( value ) ) {
|
||||||
@@ -248,7 +247,8 @@ $.widget.bridge = function( name, object ) {
|
|||||||
"attempted to call method '" + options + "'" );
|
"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 +
|
return $.error( "no such method '" + options + "' for " + name +
|
||||||
" widget instance" );
|
" widget instance" );
|
||||||
}
|
}
|
||||||
@@ -509,12 +509,34 @@ $.Widget.prototype = {
|
|||||||
classes: this.options.classes || {}
|
classes: this.options.classes || {}
|
||||||
}, options );
|
}, options );
|
||||||
|
|
||||||
|
function bindRemoveEvent() {
|
||||||
|
var nodesToBind = [];
|
||||||
|
|
||||||
|
options.element.each( function( _, element ) {
|
||||||
|
var isTracked = $.map( that.classesElementLookup, function( elements ) {
|
||||||
|
return elements;
|
||||||
|
} )
|
||||||
|
.some( function( elements ) {
|
||||||
|
return elements.is( element );
|
||||||
|
} );
|
||||||
|
|
||||||
|
if ( !isTracked ) {
|
||||||
|
nodesToBind.push( element );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
that._on( $( nodesToBind ), {
|
||||||
|
remove: "_untrackClassesElement"
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
function processClassString( classes, checkOption ) {
|
function processClassString( classes, checkOption ) {
|
||||||
var current, i;
|
var current, i;
|
||||||
for ( i = 0; i < classes.length; i++ ) {
|
for ( i = 0; i < classes.length; i++ ) {
|
||||||
current = that.classesElementLookup[ classes[ i ] ] || $();
|
current = that.classesElementLookup[ classes[ i ] ] || $();
|
||||||
if ( options.add ) {
|
if ( options.add ) {
|
||||||
current = $( $.unique( current.get().concat( options.element.get() ) ) );
|
bindRemoveEvent();
|
||||||
|
current = $( $.uniqueSort( current.get().concat( options.element.get() ) ) );
|
||||||
} else {
|
} else {
|
||||||
current = $( current.not( options.element ).get() );
|
current = $( current.not( options.element ).get() );
|
||||||
}
|
}
|
||||||
@@ -526,10 +548,6 @@ $.Widget.prototype = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this._on( options.element, {
|
|
||||||
"remove": "_untrackClassesElement"
|
|
||||||
} );
|
|
||||||
|
|
||||||
if ( options.keys ) {
|
if ( options.keys ) {
|
||||||
processClassString( options.keys.match( /\S+/g ) || [], true );
|
processClassString( options.keys.match( /\S+/g ) || [], true );
|
||||||
}
|
}
|
||||||
@@ -547,6 +565,8 @@ $.Widget.prototype = {
|
|||||||
that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
|
that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
this._off( $( event.target ) );
|
||||||
},
|
},
|
||||||
|
|
||||||
_removeClass: function( element, keys, extra ) {
|
_removeClass: function( element, keys, extra ) {
|
||||||
@@ -627,7 +647,7 @@ $.Widget.prototype = {
|
|||||||
_off: function( element, eventName ) {
|
_off: function( element, eventName ) {
|
||||||
eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) +
|
eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) +
|
||||||
this.eventNamespace;
|
this.eventNamespace;
|
||||||
element.off( eventName ).off( eventName );
|
element.off( eventName );
|
||||||
|
|
||||||
// Clear the stack to avoid memory leaks (#10056)
|
// Clear the stack to avoid memory leaks (#10056)
|
||||||
this.bindings = $( this.bindings.not( element ).get() );
|
this.bindings = $( this.bindings.not( element ).get() );
|
||||||
@@ -693,7 +713,7 @@ $.Widget.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.element.trigger( event, data );
|
this.element.trigger( event, data );
|
||||||
return !( $.isFunction( callback ) &&
|
return !( typeof callback === "function" &&
|
||||||
callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||
|
callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||
|
||||||
event.isDefaultPrevented() );
|
event.isDefaultPrevented() );
|
||||||
}
|
}
|
||||||
@@ -715,6 +735,8 @@ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
|
|||||||
options = options || {};
|
options = options || {};
|
||||||
if ( typeof options === "number" ) {
|
if ( typeof options === "number" ) {
|
||||||
options = { duration: options };
|
options = { duration: options };
|
||||||
|
} else if ( options === true ) {
|
||||||
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
hasOptions = !$.isEmptyObject( options );
|
hasOptions = !$.isEmptyObject( options );
|
||||||
@@ -744,7 +766,7 @@ var widget = $.widget;
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI :data 1.12.1
|
* jQuery UI :data 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -758,7 +780,7 @@ var widget = $.widget;
|
|||||||
//>>docs: http://api.jqueryui.com/data-selector/
|
//>>docs: http://api.jqueryui.com/data-selector/
|
||||||
|
|
||||||
|
|
||||||
var data = $.extend( $.expr[ ":" ], {
|
var data = $.extend( $.expr.pseudos, {
|
||||||
data: $.expr.createPseudo ?
|
data: $.expr.createPseudo ?
|
||||||
$.expr.createPseudo( function( dataName ) {
|
$.expr.createPseudo( function( dataName ) {
|
||||||
return function( elem ) {
|
return function( elem ) {
|
||||||
@@ -773,43 +795,7 @@ var data = $.extend( $.expr[ ":" ], {
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Disable Selection 1.12.1
|
* jQuery UI Scroll Parent 1.13.2
|
||||||
* http://jqueryui.com
|
|
||||||
*
|
|
||||||
* Copyright jQuery Foundation and other contributors
|
|
||||||
* Released under the MIT license.
|
|
||||||
* http://jquery.org/license
|
|
||||||
*/
|
|
||||||
|
|
||||||
//>>label: disableSelection
|
|
||||||
//>>group: Core
|
|
||||||
//>>description: Disable selection of text content within the set of matched elements.
|
|
||||||
//>>docs: http://api.jqueryui.com/disableSelection/
|
|
||||||
|
|
||||||
// This file is deprecated
|
|
||||||
|
|
||||||
|
|
||||||
var disableSelection = $.fn.extend( {
|
|
||||||
disableSelection: ( function() {
|
|
||||||
var eventType = "onselectstart" in document.createElement( "div" ) ?
|
|
||||||
"selectstart" :
|
|
||||||
"mousedown";
|
|
||||||
|
|
||||||
return function() {
|
|
||||||
return this.on( eventType + ".ui-disableSelection", function( event ) {
|
|
||||||
event.preventDefault();
|
|
||||||
} );
|
|
||||||
};
|
|
||||||
} )(),
|
|
||||||
|
|
||||||
enableSelection: function() {
|
|
||||||
return this.off( ".ui-disableSelection" );
|
|
||||||
}
|
|
||||||
} );
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* jQuery UI Scroll Parent 1.12.1
|
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -823,7 +809,6 @@ var disableSelection = $.fn.extend( {
|
|||||||
//>>docs: http://api.jqueryui.com/scrollParent/
|
//>>docs: http://api.jqueryui.com/scrollParent/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var scrollParent = $.fn.scrollParent = function( includeHidden ) {
|
var scrollParent = $.fn.scrollParent = function( includeHidden ) {
|
||||||
var position = this.css( "position" ),
|
var position = this.css( "position" ),
|
||||||
excludeStaticParent = position === "absolute",
|
excludeStaticParent = position === "absolute",
|
||||||
@@ -844,12 +829,11 @@ var scrollParent = $.fn.scrollParent = function( includeHidden ) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// This file is deprecated
|
// This file is deprecated
|
||||||
var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Mouse 1.12.1
|
* jQuery UI Mouse 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -863,14 +847,13 @@ var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
|||||||
//>>docs: http://api.jqueryui.com/mouse/
|
//>>docs: http://api.jqueryui.com/mouse/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var mouseHandled = false;
|
var mouseHandled = false;
|
||||||
$( document ).on( "mouseup", function() {
|
$( document ).on( "mouseup", function() {
|
||||||
mouseHandled = false;
|
mouseHandled = false;
|
||||||
} );
|
} );
|
||||||
|
|
||||||
var widgetsMouse = $.widget( "ui.mouse", {
|
var widgetsMouse = $.widget( "ui.mouse", {
|
||||||
version: "1.12.1",
|
version: "1.13.2",
|
||||||
options: {
|
options: {
|
||||||
cancel: "input, textarea, button, select, option",
|
cancel: "input, textarea, button, select, option",
|
||||||
distance: 1,
|
distance: 1,
|
||||||
@@ -915,7 +898,9 @@ var widgetsMouse = $.widget( "ui.mouse", {
|
|||||||
this._mouseMoved = false;
|
this._mouseMoved = false;
|
||||||
|
|
||||||
// We may have missed mouseup (out of window)
|
// We may have missed mouseup (out of window)
|
||||||
( this._mouseStarted && this._mouseUp( event ) );
|
if ( this._mouseStarted ) {
|
||||||
|
this._mouseUp( event );
|
||||||
|
}
|
||||||
|
|
||||||
this._mouseDownEvent = event;
|
this._mouseDownEvent = event;
|
||||||
|
|
||||||
@@ -1008,7 +993,11 @@ var widgetsMouse = $.widget( "ui.mouse", {
|
|||||||
if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) {
|
if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) {
|
||||||
this._mouseStarted =
|
this._mouseStarted =
|
||||||
( this._mouseStart( this._mouseDownEvent, event ) !== false );
|
( 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;
|
return !this._mouseStarted;
|
||||||
@@ -1055,12 +1044,13 @@ var widgetsMouse = $.widget( "ui.mouse", {
|
|||||||
_mouseStart: function( /* event */ ) {},
|
_mouseStart: function( /* event */ ) {},
|
||||||
_mouseDrag: function( /* event */ ) {},
|
_mouseDrag: function( /* event */ ) {},
|
||||||
_mouseStop: function( /* event */ ) {},
|
_mouseStop: function( /* event */ ) {},
|
||||||
_mouseCapture: function( /* event */ ) { return true; }
|
_mouseCapture: function( /* event */ ) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// $.ui.plugin is deprecated. Use $.widget() extensions instead.
|
// $.ui.plugin is deprecated. Use $.widget() extensions instead.
|
||||||
var plugin = $.ui.plugin = {
|
var plugin = $.ui.plugin = {
|
||||||
add: function( module, option, set ) {
|
add: function( module, option, set ) {
|
||||||
@@ -1135,7 +1125,7 @@ var safeBlur = $.ui.safeBlur = function( element ) {
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Draggable 1.12.1
|
* jQuery UI Draggable 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -1151,9 +1141,8 @@ var safeBlur = $.ui.safeBlur = function( element ) {
|
|||||||
//>>css.structure: ../../themes/base/draggable.css
|
//>>css.structure: ../../themes/base/draggable.css
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$.widget( "ui.draggable", $.ui.mouse, {
|
$.widget( "ui.draggable", $.ui.mouse, {
|
||||||
version: "1.12.1",
|
version: "1.13.2",
|
||||||
widgetEventPrefix: "drag",
|
widgetEventPrefix: "drag",
|
||||||
options: {
|
options: {
|
||||||
addClasses: true,
|
addClasses: true,
|
||||||
@@ -1317,7 +1306,9 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|||||||
this.originalPageY = event.pageY;
|
this.originalPageY = event.pageY;
|
||||||
|
|
||||||
//Adjust the mouse offset relative to the helper if "cursorAt" is supplied
|
//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
|
//Set a containment if given in the options
|
||||||
this._setContainment();
|
this._setContainment();
|
||||||
@@ -1412,7 +1403,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|||||||
|
|
||||||
if ( ( this.options.revert === "invalid" && !dropped ) ||
|
if ( ( this.options.revert === "invalid" && !dropped ) ||
|
||||||
( this.options.revert === "valid" && dropped ) ||
|
( this.options.revert === "valid" && dropped ) ||
|
||||||
this.options.revert === true || ( $.isFunction( this.options.revert ) &&
|
this.options.revert === true || ( typeof this.options.revert === "function" &&
|
||||||
this.options.revert.call( this.element, dropped ) )
|
this.options.revert.call( this.element, dropped ) )
|
||||||
) {
|
) {
|
||||||
$( this.helper ).animate(
|
$( this.helper ).animate(
|
||||||
@@ -1484,7 +1475,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|||||||
_createHelper: function( event ) {
|
_createHelper: function( event ) {
|
||||||
|
|
||||||
var o = this.options,
|
var o = this.options,
|
||||||
helperIsFunction = $.isFunction( o.helper ),
|
helperIsFunction = typeof o.helper === "function",
|
||||||
helper = helperIsFunction ?
|
helper = helperIsFunction ?
|
||||||
$( o.helper.apply( this.element[ 0 ], [ event ] ) ) :
|
$( o.helper.apply( this.element[ 0 ], [ event ] ) ) :
|
||||||
( o.helper === "clone" ?
|
( o.helper === "clone" ?
|
||||||
@@ -1523,7 +1514,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|||||||
if ( typeof obj === "string" ) {
|
if ( typeof obj === "string" ) {
|
||||||
obj = obj.split( " " );
|
obj = obj.split( " " );
|
||||||
}
|
}
|
||||||
if ( $.isArray( obj ) ) {
|
if ( Array.isArray( obj ) ) {
|
||||||
obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
|
obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
|
||||||
}
|
}
|
||||||
if ( "left" in obj ) {
|
if ( "left" in obj ) {
|
||||||
@@ -2232,12 +2223,13 @@ $.ui.plugin.add( "draggable", "snap", {
|
|||||||
!$.contains( inst.snapElements[ i ].item.ownerDocument,
|
!$.contains( inst.snapElements[ i ].item.ownerDocument,
|
||||||
inst.snapElements[ i ].item ) ) {
|
inst.snapElements[ i ].item ) ) {
|
||||||
if ( inst.snapElements[ i ].snapping ) {
|
if ( inst.snapElements[ i ].snapping ) {
|
||||||
( inst.options.snap.release &&
|
if ( inst.options.snap.release ) {
|
||||||
inst.options.snap.release.call(
|
inst.options.snap.release.call(
|
||||||
inst.element,
|
inst.element,
|
||||||
event,
|
event,
|
||||||
$.extend( inst._uiHash(), { snapItem: inst.snapElements[ i ].item } )
|
$.extend( inst._uiHash(), { snapItem: inst.snapElements[ i ].item } )
|
||||||
) );
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
inst.snapElements[ i ].snapping = false;
|
inst.snapElements[ i ].snapping = false;
|
||||||
continue;
|
continue;
|
||||||
@@ -2308,13 +2300,14 @@ $.ui.plugin.add( "draggable", "snap", {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( !inst.snapElements[ i ].snapping && ( ts || bs || ls || rs || first ) ) {
|
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.options.snap.snap.call(
|
||||||
inst.element,
|
inst.element,
|
||||||
event,
|
event,
|
||||||
$.extend( inst._uiHash(), {
|
$.extend( inst._uiHash(), {
|
||||||
snapItem: inst.snapElements[ i ].item
|
snapItem: inst.snapElements[ i ].item
|
||||||
} ) ) );
|
} ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
inst.snapElements[ i ].snapping = ( ts || bs || ls || rs || first );
|
inst.snapElements[ i ].snapping = ( ts || bs || ls || rs || first );
|
||||||
|
|
||||||
@@ -2332,7 +2325,9 @@ $.ui.plugin.add( "draggable", "stack", {
|
|||||||
( parseInt( $( b ).css( "zIndex" ), 10 ) || 0 );
|
( parseInt( $( b ).css( "zIndex" ), 10 ) || 0 );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
if ( !group.length ) { return; }
|
if ( !group.length ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
min = parseInt( $( group[ 0 ] ).css( "zIndex" ), 10 ) || 0;
|
min = parseInt( $( group[ 0 ] ).css( "zIndex" ), 10 ) || 0;
|
||||||
$( group ).each( function( i ) {
|
$( group ).each( function( i ) {
|
||||||
@@ -2366,4 +2361,4 @@ var widgetsDraggable = $.ui.draggable;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
}));
|
} );
|
||||||
6
common/src/main/resources/static/jquery/jquery-ui-draggable-1.13.2.min.js
vendored
Normal file
6
common/src/main/resources/static/jquery/jquery-ui-draggable-1.13.2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,75 +1,59 @@
|
|||||||
/*! jQuery UI - v1.12.1 - 2017-11-15
|
/*! jQuery UI - v1.13.2 - 2023-05-18
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
* Includes: effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js
|
* Includes: effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js
|
||||||
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
||||||
|
|
||||||
(function( factory ) {
|
( function( factory ) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
if ( typeof define === "function" && define.amd ) {
|
if ( typeof define === "function" && define.amd ) {
|
||||||
|
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
define([ "jquery" ], factory );
|
define( [ "jquery" ], factory );
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Browser globals
|
// Browser globals
|
||||||
factory( jQuery );
|
factory( jQuery );
|
||||||
}
|
}
|
||||||
}(function( $ ) {
|
} )( function( $ ) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
$.ui = $.ui || {};
|
$.ui = $.ui || {};
|
||||||
|
|
||||||
var version = $.ui.version = "1.12.1";
|
var version = $.ui.version = "1.13.2";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 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 = $;
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects 1.12.1
|
* jQuery Color Animations v2.2.0
|
||||||
* http://jqueryui.com
|
|
||||||
*
|
|
||||||
* Copyright jQuery Foundation and other contributors
|
|
||||||
* Released under the MIT license.
|
|
||||||
* http://jquery.org/license
|
|
||||||
*/
|
|
||||||
|
|
||||||
//>>label: Effects Core
|
|
||||||
//>>group: Effects
|
|
||||||
// jscs:disable maximumLineLength
|
|
||||||
//>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects.
|
|
||||||
// jscs:enable maximumLineLength
|
|
||||||
//>>docs: http://api.jqueryui.com/category/effects-core/
|
|
||||||
//>>demos: http://jqueryui.com/effect/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var dataSpace = "ui-effects-",
|
|
||||||
dataSpaceStyle = "ui-effects-style",
|
|
||||||
dataSpaceAnimated = "ui-effects-animated",
|
|
||||||
|
|
||||||
// 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
|
|
||||||
* https://github.com/jquery/jquery-color
|
* https://github.com/jquery/jquery-color
|
||||||
*
|
*
|
||||||
* Copyright 2014 jQuery Foundation and other contributors
|
* Copyright OpenJS Foundation and other contributors
|
||||||
* Released under the MIT license.
|
* Released under the MIT license.
|
||||||
* http://jquery.org/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 " +
|
var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " +
|
||||||
"borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
|
"borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
|
||||||
|
|
||||||
// Plusequals test for += 100 -= 100
|
class2type = {},
|
||||||
|
toString = class2type.toString,
|
||||||
|
|
||||||
|
// plusequals test for += 100 -= 100
|
||||||
rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
|
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 = [ {
|
stringParsers = [ {
|
||||||
re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
|
re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
|
||||||
parse: function( execResult ) {
|
parse: function( execResult ) {
|
||||||
@@ -92,24 +76,31 @@ $.effects = {
|
|||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|
||||||
// This regex ignores A-F because it's compared against an already lowercased string
|
// 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})/,
|
re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,
|
||||||
parse: function( execResult ) {
|
parse: function( execResult ) {
|
||||||
return [
|
return [
|
||||||
parseInt( execResult[ 1 ], 16 ),
|
parseInt( execResult[ 1 ], 16 ),
|
||||||
parseInt( execResult[ 2 ], 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
|
// this regex ignores A-F because it's compared against an already lowercased string
|
||||||
re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
|
re: /#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,
|
||||||
parse: function( execResult ) {
|
parse: function( execResult ) {
|
||||||
return [
|
return [
|
||||||
parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
|
parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
|
||||||
parseInt( execResult[ 2 ] + execResult[ 2 ], 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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@@ -125,7 +116,7 @@ $.effects = {
|
|||||||
}
|
}
|
||||||
} ],
|
} ],
|
||||||
|
|
||||||
// JQuery.Color( )
|
// jQuery.Color( )
|
||||||
color = jQuery.Color = function( color, green, blue, alpha ) {
|
color = jQuery.Color = function( color, green, blue, alpha ) {
|
||||||
return new jQuery.Color.fn.parse( color, green, blue, alpha );
|
return new jQuery.Color.fn.parse( color, green, blue, alpha );
|
||||||
},
|
},
|
||||||
@@ -179,20 +170,20 @@ $.effects = {
|
|||||||
},
|
},
|
||||||
support = color.support = {},
|
support = color.support = {},
|
||||||
|
|
||||||
// Element for support tests
|
// element for support tests
|
||||||
supportElem = jQuery( "<p>" )[ 0 ],
|
supportElem = jQuery( "<p>" )[ 0 ],
|
||||||
|
|
||||||
// Colors = jQuery.Color.names
|
// colors = jQuery.Color.names
|
||||||
colors,
|
colors,
|
||||||
|
|
||||||
// Local aliases of functions called often
|
// local aliases of functions called often
|
||||||
each = jQuery.each;
|
each = jQuery.each;
|
||||||
|
|
||||||
// Determine rgba support immediately
|
// determine rgba support immediately
|
||||||
supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
|
supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
|
||||||
support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
|
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
|
// for rgba and hsla spaces
|
||||||
each( spaces, function( spaceName, space ) {
|
each( spaces, function( spaceName, space ) {
|
||||||
space.cache = "_" + spaceName;
|
space.cache = "_" + spaceName;
|
||||||
@@ -203,6 +194,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 ) {
|
function clamp( value, prop, allowEmpty ) {
|
||||||
var type = propTypes[ prop.type ] || {};
|
var type = propTypes[ prop.type ] || {};
|
||||||
|
|
||||||
@@ -221,13 +228,13 @@ function clamp( value, prop, allowEmpty ) {
|
|||||||
|
|
||||||
if ( type.mod ) {
|
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
|
// get converted properly: -10 -> 350
|
||||||
return ( value + type.mod ) % type.mod;
|
return ( value + type.mod ) % type.mod;
|
||||||
}
|
}
|
||||||
|
|
||||||
// For now all property types without mod have min and max
|
// for now all property types without mod have min and max
|
||||||
return 0 > value ? 0 : type.max < value ? type.max : value;
|
return Math.min( type.max, Math.max( 0, value ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
function stringParse( string ) {
|
function stringParse( string ) {
|
||||||
@@ -236,7 +243,7 @@ function stringParse( string ) {
|
|||||||
|
|
||||||
string = string.toLowerCase();
|
string = string.toLowerCase();
|
||||||
|
|
||||||
each( stringParsers, function( i, parser ) {
|
each( stringParsers, function( _i, parser ) {
|
||||||
var parsed,
|
var parsed,
|
||||||
match = parser.re.exec( string ),
|
match = parser.re.exec( string ),
|
||||||
values = match && parser.parse( match ),
|
values = match && parser.parse( match ),
|
||||||
@@ -245,12 +252,12 @@ function stringParse( string ) {
|
|||||||
if ( values ) {
|
if ( values ) {
|
||||||
parsed = inst[ spaceName ]( 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....
|
// oh well....
|
||||||
inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
|
inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
|
||||||
rgba = inst._rgba = parsed._rgba;
|
rgba = inst._rgba = parsed._rgba;
|
||||||
|
|
||||||
// Exit each( stringParsers ) here because we matched
|
// exit each( stringParsers ) here because we matched
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
@@ -258,7 +265,7 @@ function stringParse( string ) {
|
|||||||
// Found a stringParser that handled it
|
// Found a stringParser that handled it
|
||||||
if ( rgba.length ) {
|
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)
|
// chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
|
||||||
if ( rgba.join() === "0,0,0,0" ) {
|
if ( rgba.join() === "0,0,0,0" ) {
|
||||||
jQuery.extend( rgba, colors.transparent );
|
jQuery.extend( rgba, colors.transparent );
|
||||||
@@ -266,7 +273,7 @@ function stringParse( string ) {
|
|||||||
return inst;
|
return inst;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Named colors
|
// named colors
|
||||||
return colors[ string ];
|
return colors[ string ];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -282,10 +289,10 @@ color.fn = jQuery.extend( color.prototype, {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var inst = this,
|
var inst = this,
|
||||||
type = jQuery.type( red ),
|
type = getType( red ),
|
||||||
rgba = this._rgba = [];
|
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 ) {
|
if ( green !== undefined ) {
|
||||||
red = [ red, green, blue, alpha ];
|
red = [ red, green, blue, alpha ];
|
||||||
type = "array";
|
type = "array";
|
||||||
@@ -296,7 +303,7 @@ color.fn = jQuery.extend( color.prototype, {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( type === "array" ) {
|
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 );
|
rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
|
||||||
} );
|
} );
|
||||||
return this;
|
return this;
|
||||||
@@ -304,20 +311,20 @@ color.fn = jQuery.extend( color.prototype, {
|
|||||||
|
|
||||||
if ( type === "object" ) {
|
if ( type === "object" ) {
|
||||||
if ( red instanceof color ) {
|
if ( red instanceof color ) {
|
||||||
each( spaces, function( spaceName, space ) {
|
each( spaces, function( _spaceName, space ) {
|
||||||
if ( red[ space.cache ] ) {
|
if ( red[ space.cache ] ) {
|
||||||
inst[ space.cache ] = red[ space.cache ].slice();
|
inst[ space.cache ] = red[ space.cache ].slice();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
} else {
|
} else {
|
||||||
each( spaces, function( spaceName, space ) {
|
each( spaces, function( _spaceName, space ) {
|
||||||
var cache = space.cache;
|
var cache = space.cache;
|
||||||
each( space.props, function( key, prop ) {
|
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 ( !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 the key was alpha, we don't need to copy it either
|
||||||
if ( key === "alpha" || red[ key ] == null ) {
|
if ( key === "alpha" || red[ key ] == null ) {
|
||||||
return;
|
return;
|
||||||
@@ -325,17 +332,19 @@ color.fn = jQuery.extend( color.prototype, {
|
|||||||
inst[ cache ] = space.to( inst._rgba );
|
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
|
// call clamp with alwaysAllowEmpty
|
||||||
inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
|
inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
// Everything defined but alpha?
|
// everything defined but alpha?
|
||||||
if ( inst[ cache ] &&
|
if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
|
||||||
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 ) {
|
if ( space.from ) {
|
||||||
inst._rgba = space.from( inst[ cache ] );
|
inst._rgba = space.from( inst[ cache ] );
|
||||||
}
|
}
|
||||||
@@ -385,18 +394,18 @@ color.fn = jQuery.extend( color.prototype, {
|
|||||||
result = start.slice();
|
result = start.slice();
|
||||||
|
|
||||||
end = end[ space.cache ];
|
end = end[ space.cache ];
|
||||||
each( space.props, function( key, prop ) {
|
each( space.props, function( _key, prop ) {
|
||||||
var index = prop.idx,
|
var index = prop.idx,
|
||||||
startValue = start[ index ],
|
startValue = start[ index ],
|
||||||
endValue = end[ index ],
|
endValue = end[ index ],
|
||||||
type = propTypes[ prop.type ] || {};
|
type = propTypes[ prop.type ] || {};
|
||||||
|
|
||||||
// If null, don't override start value
|
// if null, don't override start value
|
||||||
if ( endValue === null ) {
|
if ( endValue === null ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If null - use end
|
// if null - use end
|
||||||
if ( startValue === null ) {
|
if ( startValue === null ) {
|
||||||
result[ index ] = endValue;
|
result[ index ] = endValue;
|
||||||
} else {
|
} else {
|
||||||
@@ -414,7 +423,7 @@ color.fn = jQuery.extend( color.prototype, {
|
|||||||
},
|
},
|
||||||
blend: function( opaque ) {
|
blend: function( opaque ) {
|
||||||
|
|
||||||
// If we are already opaque - return ourself
|
// if we are already opaque - return ourself
|
||||||
if ( this._rgba[ 3 ] === 1 ) {
|
if ( this._rgba[ 3 ] === 1 ) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -430,7 +439,10 @@ color.fn = jQuery.extend( color.prototype, {
|
|||||||
toRgbaString: function() {
|
toRgbaString: function() {
|
||||||
var prefix = "rgba(",
|
var prefix = "rgba(",
|
||||||
rgba = jQuery.map( this._rgba, function( v, i ) {
|
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 ) {
|
if ( rgba[ 3 ] === 1 ) {
|
||||||
@@ -447,7 +459,7 @@ color.fn = jQuery.extend( color.prototype, {
|
|||||||
v = i > 2 ? 1 : 0;
|
v = i > 2 ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Catch 1 and 2
|
// catch 1 and 2
|
||||||
if ( i && i < 3 ) {
|
if ( i && i < 3 ) {
|
||||||
v = Math.round( v * 100 ) + "%";
|
v = Math.round( v * 100 ) + "%";
|
||||||
}
|
}
|
||||||
@@ -470,7 +482,7 @@ color.fn = jQuery.extend( color.prototype, {
|
|||||||
|
|
||||||
return "#" + jQuery.map( rgba, function( v ) {
|
return "#" + jQuery.map( rgba, function( v ) {
|
||||||
|
|
||||||
// Default to 0 when nulls exist
|
// default to 0 when nulls exist
|
||||||
v = ( v || 0 ).toString( 16 );
|
v = ( v || 0 ).toString( 16 );
|
||||||
return v.length === 1 ? "0" + v : v;
|
return v.length === 1 ? "0" + v : v;
|
||||||
} ).join( "" );
|
} ).join( "" );
|
||||||
@@ -481,7 +493,7 @@ color.fn = jQuery.extend( color.prototype, {
|
|||||||
} );
|
} );
|
||||||
color.fn.parse.prototype = color.fn;
|
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
|
// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021
|
||||||
|
|
||||||
function hue2rgb( p, q, h ) {
|
function hue2rgb( p, q, h ) {
|
||||||
@@ -523,7 +535,7 @@ spaces.hsla.to = function( rgba ) {
|
|||||||
h = ( 60 * ( r - g ) / diff ) + 240;
|
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)
|
// otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
|
||||||
if ( diff === 0 ) {
|
if ( diff === 0 ) {
|
||||||
s = 0;
|
s = 0;
|
||||||
@@ -554,16 +566,17 @@ spaces.hsla.from = function( hsla ) {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
each( spaces, function( spaceName, space ) {
|
each( spaces, function( spaceName, space ) {
|
||||||
var props = space.props,
|
var props = space.props,
|
||||||
cache = space.cache,
|
cache = space.cache,
|
||||||
to = space.to,
|
to = space.to,
|
||||||
from = space.from;
|
from = space.from;
|
||||||
|
|
||||||
// Makes rgba() and hsla()
|
// makes rgba() and hsla()
|
||||||
color.fn[ spaceName ] = function( value ) {
|
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 ] ) {
|
if ( to && !this[ cache ] ) {
|
||||||
this[ cache ] = to( this._rgba );
|
this[ cache ] = to( this._rgba );
|
||||||
}
|
}
|
||||||
@@ -572,7 +585,7 @@ each( spaces, function( spaceName, space ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var ret,
|
var ret,
|
||||||
type = jQuery.type( value ),
|
type = getType( value ),
|
||||||
arr = ( type === "array" || type === "object" ) ? value : arguments,
|
arr = ( type === "array" || type === "object" ) ? value : arguments,
|
||||||
local = this[ cache ].slice();
|
local = this[ cache ].slice();
|
||||||
|
|
||||||
@@ -593,19 +606,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 ) {
|
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 ] ) {
|
if ( color.fn[ key ] ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
color.fn[ key ] = function( value ) {
|
color.fn[ key ] = function( value ) {
|
||||||
var vtype = jQuery.type( value ),
|
var local, cur, match, fn,
|
||||||
fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),
|
vtype = getType( value );
|
||||||
local = this[ fn ](),
|
|
||||||
cur = local[ prop.idx ],
|
if ( key === "alpha" ) {
|
||||||
match;
|
fn = this._hsla ? "hsla" : "rgba";
|
||||||
|
} else {
|
||||||
|
fn = spaceName;
|
||||||
|
}
|
||||||
|
local = this[ fn ]();
|
||||||
|
cur = local[ prop.idx ];
|
||||||
|
|
||||||
if ( vtype === "undefined" ) {
|
if ( vtype === "undefined" ) {
|
||||||
return cur;
|
return cur;
|
||||||
@@ -613,7 +631,7 @@ each( spaces, function( spaceName, space ) {
|
|||||||
|
|
||||||
if ( vtype === "function" ) {
|
if ( vtype === "function" ) {
|
||||||
value = value.call( this, cur );
|
value = value.call( this, cur );
|
||||||
vtype = jQuery.type( value );
|
vtype = getType( value );
|
||||||
}
|
}
|
||||||
if ( value == null && prop.empty ) {
|
if ( value == null && prop.empty ) {
|
||||||
return this;
|
return this;
|
||||||
@@ -630,18 +648,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
|
// accept a space separated string of properties
|
||||||
color.hook = function( hook ) {
|
color.hook = function( hook ) {
|
||||||
var hooks = hook.split( " " );
|
var hooks = hook.split( " " );
|
||||||
each( hooks, function( i, hook ) {
|
each( hooks, function( _i, hook ) {
|
||||||
jQuery.cssHooks[ hook ] = {
|
jQuery.cssHooks[ hook ] = {
|
||||||
set: function( elem, value ) {
|
set: function( elem, value ) {
|
||||||
var parsed, curElem,
|
var parsed, curElem,
|
||||||
backgroundColor = "";
|
backgroundColor = "";
|
||||||
|
|
||||||
if ( value !== "transparent" && ( jQuery.type( value ) !== "string" ||
|
if ( value !== "transparent" && ( getType( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
|
||||||
( parsed = stringParse( value ) ) ) ) {
|
|
||||||
value = color( parsed || value );
|
value = color( parsed || value );
|
||||||
if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
|
if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
|
||||||
curElem = hook === "backgroundColor" ? elem.parentNode : elem;
|
curElem = hook === "backgroundColor" ? elem.parentNode : elem;
|
||||||
@@ -667,8 +684,7 @@ color.hook = function( hook ) {
|
|||||||
elem.style[ hook ] = value;
|
elem.style[ hook ] = value;
|
||||||
} catch ( e ) {
|
} catch ( e ) {
|
||||||
|
|
||||||
// Wrapped to prevent IE from throwing errors on "invalid" values like
|
// wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
|
||||||
// 'auto' or 'inherit'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -690,7 +706,7 @@ jQuery.cssHooks.borderColor = {
|
|||||||
expand: function( value ) {
|
expand: function( value ) {
|
||||||
var expanded = {};
|
var expanded = {};
|
||||||
|
|
||||||
each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {
|
each( [ "Top", "Right", "Bottom", "Left" ], function( _i, part ) {
|
||||||
expanded[ "border" + part + "Color" ] = value;
|
expanded[ "border" + part + "Color" ] = value;
|
||||||
} );
|
} );
|
||||||
return expanded;
|
return expanded;
|
||||||
@@ -726,7 +742,32 @@ colors = jQuery.Color.names = {
|
|||||||
_default: "#ffffff"
|
_default: "#ffffff"
|
||||||
};
|
};
|
||||||
|
|
||||||
} )( jQuery );
|
|
||||||
|
/*!
|
||||||
|
* jQuery UI Effects 1.13.2
|
||||||
|
* http://jqueryui.com
|
||||||
|
*
|
||||||
|
* Copyright jQuery Foundation and other contributors
|
||||||
|
* Released under the MIT license.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*/
|
||||||
|
|
||||||
|
//>>label: Effects Core
|
||||||
|
//>>group: Effects
|
||||||
|
/* eslint-disable max-len */
|
||||||
|
//>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects.
|
||||||
|
/* eslint-enable max-len */
|
||||||
|
//>>docs: http://api.jqueryui.com/category/effects-core/
|
||||||
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
var dataSpace = "ui-effects-",
|
||||||
|
dataSpaceStyle = "ui-effects-style",
|
||||||
|
dataSpaceAnimated = "ui-effects-animated";
|
||||||
|
|
||||||
|
$.effects = {
|
||||||
|
effect: {}
|
||||||
|
};
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/****************************** CLASS ANIMATIONS ******************************/
|
/****************************** CLASS ANIMATIONS ******************************/
|
||||||
@@ -758,6 +799,12 @@ $.each(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
function camelCase( string ) {
|
||||||
|
return string.replace( /-([\da-z])/gi, function( all, letter ) {
|
||||||
|
return letter.toUpperCase();
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
function getElementStyles( elem ) {
|
function getElementStyles( elem ) {
|
||||||
var key, len,
|
var key, len,
|
||||||
style = elem.ownerDocument.defaultView ?
|
style = elem.ownerDocument.defaultView ?
|
||||||
@@ -770,7 +817,7 @@ function getElementStyles( elem ) {
|
|||||||
while ( len-- ) {
|
while ( len-- ) {
|
||||||
key = style[ len ];
|
key = style[ len ];
|
||||||
if ( typeof style[ key ] === "string" ) {
|
if ( typeof style[ key ] === "string" ) {
|
||||||
styles[ $.camelCase( key ) ] = style[ key ];
|
styles[ camelCase( key ) ] = style[ key ];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -944,12 +991,12 @@ $.fn.extend( {
|
|||||||
|
|
||||||
( function() {
|
( function() {
|
||||||
|
|
||||||
if ( $.expr && $.expr.filters && $.expr.filters.animated ) {
|
if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) {
|
||||||
$.expr.filters.animated = ( function( orig ) {
|
$.expr.pseudos.animated = ( function( orig ) {
|
||||||
return function( elem ) {
|
return function( elem ) {
|
||||||
return !!$( elem ).data( dataSpaceAnimated ) || orig( elem );
|
return !!$( elem ).data( dataSpaceAnimated ) || orig( elem );
|
||||||
};
|
};
|
||||||
} )( $.expr.filters.animated );
|
} )( $.expr.pseudos.animated );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $.uiBackCompat !== false ) {
|
if ( $.uiBackCompat !== false ) {
|
||||||
@@ -1018,6 +1065,7 @@ if ( $.uiBackCompat !== false ) {
|
|||||||
// Firefox incorrectly exposes anonymous content
|
// Firefox incorrectly exposes anonymous content
|
||||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=561664
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=561664
|
||||||
try {
|
try {
|
||||||
|
// eslint-disable-next-line no-unused-expressions
|
||||||
active.id;
|
active.id;
|
||||||
} catch ( e ) {
|
} catch ( e ) {
|
||||||
active = document.body;
|
active = document.body;
|
||||||
@@ -1080,7 +1128,7 @@ if ( $.uiBackCompat !== false ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$.extend( $.effects, {
|
$.extend( $.effects, {
|
||||||
version: "1.12.1",
|
version: "1.13.2",
|
||||||
|
|
||||||
define: function( name, mode, effect ) {
|
define: function( name, mode, effect ) {
|
||||||
if ( !effect ) {
|
if ( !effect ) {
|
||||||
@@ -1296,7 +1344,7 @@ function _normalizeArguments( effect, options, speed, callback ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Catch (effect, callback)
|
// Catch (effect, callback)
|
||||||
if ( $.isFunction( options ) ) {
|
if ( typeof options === "function" ) {
|
||||||
callback = options;
|
callback = options;
|
||||||
speed = null;
|
speed = null;
|
||||||
options = {};
|
options = {};
|
||||||
@@ -1310,7 +1358,7 @@ function _normalizeArguments( effect, options, speed, callback ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Catch (effect, options, callback)
|
// Catch (effect, options, callback)
|
||||||
if ( $.isFunction( speed ) ) {
|
if ( typeof speed === "function" ) {
|
||||||
callback = speed;
|
callback = speed;
|
||||||
speed = null;
|
speed = null;
|
||||||
}
|
}
|
||||||
@@ -1344,7 +1392,7 @@ function standardAnimationOption( option ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Complete callback
|
// Complete callback
|
||||||
if ( $.isFunction( option ) ) {
|
if ( typeof option === "function" ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1371,7 +1419,7 @@ $.fn.extend( {
|
|||||||
var el = $( this ),
|
var el = $( this ),
|
||||||
normalizedMode = $.effects.mode( el, mode ) || defaultMode;
|
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 );
|
el.data( dataSpaceAnimated, true );
|
||||||
|
|
||||||
// Save effect mode for later use,
|
// Save effect mode for later use,
|
||||||
@@ -1379,7 +1427,7 @@ $.fn.extend( {
|
|||||||
// as the .show() below destroys the initial state
|
// as the .show() below destroys the initial state
|
||||||
modes.push( normalizedMode );
|
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" ||
|
if ( defaultMode && ( normalizedMode === "show" ||
|
||||||
( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) {
|
( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) {
|
||||||
el.show();
|
el.show();
|
||||||
@@ -1389,7 +1437,7 @@ $.fn.extend( {
|
|||||||
$.effects.saveStyle( el );
|
$.effects.saveStyle( el );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $.isFunction( next ) ) {
|
if ( typeof next === "function" ) {
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -1424,11 +1472,11 @@ $.fn.extend( {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function done() {
|
function done() {
|
||||||
if ( $.isFunction( complete ) ) {
|
if ( typeof complete === "function" ) {
|
||||||
complete.call( elem[ 0 ] );
|
complete.call( elem[ 0 ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $.isFunction( next ) ) {
|
if ( typeof next === "function" ) {
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1537,22 +1585,24 @@ $.fn.extend( {
|
|||||||
width: target.innerWidth()
|
width: target.innerWidth()
|
||||||
},
|
},
|
||||||
startPosition = element.offset(),
|
startPosition = element.offset(),
|
||||||
transfer = $( "<div class='ui-effects-transfer'></div>" )
|
transfer = $( "<div class='ui-effects-transfer'></div>" );
|
||||||
.appendTo( "body" )
|
|
||||||
.addClass( options.className )
|
transfer
|
||||||
.css( {
|
.appendTo( "body" )
|
||||||
top: startPosition.top - fixTop,
|
.addClass( options.className )
|
||||||
left: startPosition.left - fixLeft,
|
.css( {
|
||||||
height: element.innerHeight(),
|
top: startPosition.top - fixTop,
|
||||||
width: element.innerWidth(),
|
left: startPosition.left - fixLeft,
|
||||||
position: targetFixed ? "fixed" : "absolute"
|
height: element.innerHeight(),
|
||||||
} )
|
width: element.innerWidth(),
|
||||||
.animate( animation, options.duration, options.easing, function() {
|
position: targetFixed ? "fixed" : "absolute"
|
||||||
transfer.remove();
|
} )
|
||||||
if ( $.isFunction( done ) ) {
|
.animate( animation, options.duration, options.easing, function() {
|
||||||
done();
|
transfer.remove();
|
||||||
}
|
if ( typeof done === "function" ) {
|
||||||
} );
|
done();
|
||||||
|
}
|
||||||
|
} );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
@@ -1646,7 +1696,7 @@ var effect = $.effects;
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Blind 1.12.1
|
* jQuery UI Effects Blind 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -1661,7 +1711,6 @@ var effect = $.effects;
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectBlind = $.effects.define( "blind", "hide", function( options, done ) {
|
var effectsEffectBlind = $.effects.define( "blind", "hide", function( options, done ) {
|
||||||
var map = {
|
var map = {
|
||||||
up: [ "bottom", "top" ],
|
up: [ "bottom", "top" ],
|
||||||
@@ -1702,7 +1751,7 @@ var effectsEffectBlind = $.effects.define( "blind", "hide", function( options, d
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Bounce 1.12.1
|
* jQuery UI Effects Bounce 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -1717,7 +1766,6 @@ var effectsEffectBlind = $.effects.define( "blind", "hide", function( options, d
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectBounce = $.effects.define( "bounce", function( options, done ) {
|
var effectsEffectBounce = $.effects.define( "bounce", function( options, done ) {
|
||||||
var upAnim, downAnim, refValue,
|
var upAnim, downAnim, refValue,
|
||||||
element = $( this ),
|
element = $( this ),
|
||||||
@@ -1798,7 +1846,7 @@ var effectsEffectBounce = $.effects.define( "bounce", function( options, done )
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Clip 1.12.1
|
* jQuery UI Effects Clip 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -1813,7 +1861,6 @@ var effectsEffectBounce = $.effects.define( "bounce", function( options, done )
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectClip = $.effects.define( "clip", "hide", function( options, done ) {
|
var effectsEffectClip = $.effects.define( "clip", "hide", function( options, done ) {
|
||||||
var start,
|
var start,
|
||||||
animate = {},
|
animate = {},
|
||||||
@@ -1849,7 +1896,7 @@ var effectsEffectClip = $.effects.define( "clip", "hide", function( options, don
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Drop 1.12.1
|
* jQuery UI Effects Drop 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -1864,7 +1911,6 @@ var effectsEffectClip = $.effects.define( "clip", "hide", function( options, don
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectDrop = $.effects.define( "drop", "hide", function( options, done ) {
|
var effectsEffectDrop = $.effects.define( "drop", "hide", function( options, done ) {
|
||||||
|
|
||||||
var distance,
|
var distance,
|
||||||
@@ -1904,7 +1950,7 @@ var effectsEffectDrop = $.effects.define( "drop", "hide", function( options, don
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Explode 1.12.1
|
* jQuery UI Effects Explode 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -1914,14 +1960,13 @@ var effectsEffectDrop = $.effects.define( "drop", "hide", function( options, don
|
|||||||
|
|
||||||
//>>label: Explode Effect
|
//>>label: Explode Effect
|
||||||
//>>group: Effects
|
//>>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.
|
//>>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/
|
//>>docs: http://api.jqueryui.com/explode-effect/
|
||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectExplode = $.effects.define( "explode", "hide", function( options, done ) {
|
var effectsEffectExplode = $.effects.define( "explode", "hide", function( options, done ) {
|
||||||
|
|
||||||
var i, j, left, top, mx, my,
|
var i, j, left, top, mx, my,
|
||||||
@@ -2001,7 +2046,7 @@ var effectsEffectExplode = $.effects.define( "explode", "hide", function( option
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Fade 1.12.1
|
* jQuery UI Effects Fade 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -2016,7 +2061,6 @@ var effectsEffectExplode = $.effects.define( "explode", "hide", function( option
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectFade = $.effects.define( "fade", "toggle", function( options, done ) {
|
var effectsEffectFade = $.effects.define( "fade", "toggle", function( options, done ) {
|
||||||
var show = options.mode === "show";
|
var show = options.mode === "show";
|
||||||
|
|
||||||
@@ -2034,7 +2078,7 @@ var effectsEffectFade = $.effects.define( "fade", "toggle", function( options, d
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Fold 1.12.1
|
* jQuery UI Effects Fold 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -2049,7 +2093,6 @@ var effectsEffectFade = $.effects.define( "fade", "toggle", function( options, d
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectFold = $.effects.define( "fold", "hide", function( options, done ) {
|
var effectsEffectFold = $.effects.define( "fold", "hide", function( options, done ) {
|
||||||
|
|
||||||
// Create element
|
// Create element
|
||||||
@@ -2109,7 +2152,7 @@ var effectsEffectFold = $.effects.define( "fold", "hide", function( options, don
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Highlight 1.12.1
|
* jQuery UI Effects Highlight 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -2124,7 +2167,6 @@ var effectsEffectFold = $.effects.define( "fold", "hide", function( options, don
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectHighlight = $.effects.define( "highlight", "show", function( options, done ) {
|
var effectsEffectHighlight = $.effects.define( "highlight", "show", function( options, done ) {
|
||||||
var element = $( this ),
|
var element = $( this ),
|
||||||
animation = {
|
animation = {
|
||||||
@@ -2152,7 +2194,7 @@ var effectsEffectHighlight = $.effects.define( "highlight", "show", function( op
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Size 1.12.1
|
* jQuery UI Effects Size 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -2167,7 +2209,6 @@ var effectsEffectHighlight = $.effects.define( "highlight", "show", function( op
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectSize = $.effects.define( "size", function( options, done ) {
|
var effectsEffectSize = $.effects.define( "size", function( options, done ) {
|
||||||
|
|
||||||
// Create element
|
// Create element
|
||||||
@@ -2244,6 +2285,8 @@ var effectsEffectSize = $.effects.define( "size", function( options, done ) {
|
|||||||
to.top = ( original.outerHeight - to.outerHeight ) * baseline.y + pos.top;
|
to.top = ( original.outerHeight - to.outerHeight ) * baseline.y + pos.top;
|
||||||
to.left = ( original.outerWidth - to.outerWidth ) * baseline.x + pos.left;
|
to.left = ( original.outerWidth - to.outerWidth ) * baseline.x + pos.left;
|
||||||
}
|
}
|
||||||
|
delete from.outerHeight;
|
||||||
|
delete from.outerWidth;
|
||||||
element.css( from );
|
element.css( from );
|
||||||
|
|
||||||
// Animate the children if desired
|
// Animate the children if desired
|
||||||
@@ -2329,7 +2372,7 @@ var effectsEffectSize = $.effects.define( "size", function( options, done ) {
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Scale 1.12.1
|
* jQuery UI Effects Scale 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -2344,7 +2387,6 @@ var effectsEffectSize = $.effects.define( "size", function( options, done ) {
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectScale = $.effects.define( "scale", function( options, done ) {
|
var effectsEffectScale = $.effects.define( "scale", function( options, done ) {
|
||||||
|
|
||||||
// Create element
|
// Create element
|
||||||
@@ -2370,7 +2412,7 @@ var effectsEffectScale = $.effects.define( "scale", function( options, done ) {
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Puff 1.12.1
|
* jQuery UI Effects Puff 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -2385,7 +2427,6 @@ var effectsEffectScale = $.effects.define( "scale", function( options, done ) {
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectPuff = $.effects.define( "puff", "hide", function( options, done ) {
|
var effectsEffectPuff = $.effects.define( "puff", "hide", function( options, done ) {
|
||||||
var newOptions = $.extend( true, {}, options, {
|
var newOptions = $.extend( true, {}, options, {
|
||||||
fade: true,
|
fade: true,
|
||||||
@@ -2397,7 +2438,7 @@ var effectsEffectPuff = $.effects.define( "puff", "hide", function( options, don
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Pulsate 1.12.1
|
* jQuery UI Effects Pulsate 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -2412,7 +2453,6 @@ var effectsEffectPuff = $.effects.define( "puff", "hide", function( options, don
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectPulsate = $.effects.define( "pulsate", "show", function( options, done ) {
|
var effectsEffectPulsate = $.effects.define( "pulsate", "show", function( options, done ) {
|
||||||
var element = $( this ),
|
var element = $( this ),
|
||||||
mode = options.mode,
|
mode = options.mode,
|
||||||
@@ -2447,7 +2487,7 @@ var effectsEffectPulsate = $.effects.define( "pulsate", "show", function( option
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Shake 1.12.1
|
* jQuery UI Effects Shake 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -2462,7 +2502,6 @@ var effectsEffectPulsate = $.effects.define( "pulsate", "show", function( option
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectShake = $.effects.define( "shake", function( options, done ) {
|
var effectsEffectShake = $.effects.define( "shake", function( options, done ) {
|
||||||
|
|
||||||
var i = 1,
|
var i = 1,
|
||||||
@@ -2507,7 +2546,7 @@ var effectsEffectShake = $.effects.define( "shake", function( options, done ) {
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Slide 1.12.1
|
* jQuery UI Effects Slide 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -2522,7 +2561,6 @@ var effectsEffectShake = $.effects.define( "shake", function( options, done ) {
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effectsEffectSlide = $.effects.define( "slide", "show", function( options, done ) {
|
var effectsEffectSlide = $.effects.define( "slide", "show", function( options, done ) {
|
||||||
var startClip, startRef,
|
var startClip, startRef,
|
||||||
element = $( this ),
|
element = $( this ),
|
||||||
@@ -2569,7 +2607,7 @@ var effectsEffectSlide = $.effects.define( "slide", "show", function( options, d
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Effects Transfer 1.12.1
|
* jQuery UI Effects Transfer 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -2584,7 +2622,6 @@ var effectsEffectSlide = $.effects.define( "slide", "show", function( options, d
|
|||||||
//>>demos: http://jqueryui.com/effect/
|
//>>demos: http://jqueryui.com/effect/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var effect;
|
var effect;
|
||||||
if ( $.uiBackCompat !== false ) {
|
if ( $.uiBackCompat !== false ) {
|
||||||
effect = $.effects.define( "transfer", function( options, done ) {
|
effect = $.effects.define( "transfer", function( options, done ) {
|
||||||
@@ -2596,4 +2633,4 @@ var effectsEffectTransfer = effect;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
}));
|
} );
|
||||||
6
common/src/main/resources/static/jquery/jquery-ui-effect-1.13.2.min.js
vendored
Normal file
6
common/src/main/resources/static/jquery/jquery-ui-effect-1.13.2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,27 +1,30 @@
|
|||||||
/*! jQuery UI - v1.12.1 - 2019-07-09
|
/*! jQuery UI - v1.13.2 - 2023-05-18
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
* Includes: widget.js, data.js, scroll-parent.js, widgets/sortable.js, widgets/mouse.js
|
* Includes: widget.js, data.js, scroll-parent.js, widgets/sortable.js, widgets/mouse.js
|
||||||
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
||||||
|
|
||||||
(function( factory ) {
|
( function( factory ) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
if ( typeof define === "function" && define.amd ) {
|
if ( typeof define === "function" && define.amd ) {
|
||||||
|
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
define([ "jquery" ], factory );
|
define( [ "jquery" ], factory );
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Browser globals
|
// Browser globals
|
||||||
factory( jQuery );
|
factory( jQuery );
|
||||||
}
|
}
|
||||||
}(function( $ ) {
|
} )( function( $ ) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
$.ui = $.ui || {};
|
$.ui = $.ui || {};
|
||||||
|
|
||||||
var version = $.ui.version = "1.12.1";
|
var version = $.ui.version = "1.13.2";
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Widget 1.12.1
|
* jQuery UI Widget 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -36,24 +39,20 @@ var version = $.ui.version = "1.12.1";
|
|||||||
//>>demos: http://jqueryui.com/widget/
|
//>>demos: http://jqueryui.com/widget/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var widgetUuid = 0;
|
var widgetUuid = 0;
|
||||||
|
var widgetHasOwnProperty = Array.prototype.hasOwnProperty;
|
||||||
var widgetSlice = Array.prototype.slice;
|
var widgetSlice = Array.prototype.slice;
|
||||||
|
|
||||||
$.cleanData = ( function( orig ) {
|
$.cleanData = ( function( orig ) {
|
||||||
return function( elems ) {
|
return function( elems ) {
|
||||||
var events, elem, i;
|
var events, elem, i;
|
||||||
for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
|
for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
|
||||||
try {
|
|
||||||
|
|
||||||
// Only trigger remove when necessary to save time
|
// Only trigger remove when necessary to save time
|
||||||
events = $._data( elem, "events" );
|
events = $._data( elem, "events" );
|
||||||
if ( events && events.remove ) {
|
if ( events && events.remove ) {
|
||||||
$( elem ).triggerHandler( "remove" );
|
$( elem ).triggerHandler( "remove" );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Http://bugs.jquery.com/ticket/8235
|
|
||||||
} catch ( e ) {}
|
|
||||||
}
|
}
|
||||||
orig( elems );
|
orig( elems );
|
||||||
};
|
};
|
||||||
@@ -75,12 +74,12 @@ $.widget = function( name, base, prototype ) {
|
|||||||
base = $.Widget;
|
base = $.Widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $.isArray( prototype ) ) {
|
if ( Array.isArray( prototype ) ) {
|
||||||
prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
|
prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create selector for plugin
|
// Create selector for plugin
|
||||||
$.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
|
$.expr.pseudos[ fullName.toLowerCase() ] = function( elem ) {
|
||||||
return !!$.data( elem, fullName );
|
return !!$.data( elem, fullName );
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -89,7 +88,7 @@ $.widget = function( name, base, prototype ) {
|
|||||||
constructor = $[ namespace ][ name ] = function( options, element ) {
|
constructor = $[ namespace ][ name ] = function( options, element ) {
|
||||||
|
|
||||||
// Allow instantiation without "new" keyword
|
// Allow instantiation without "new" keyword
|
||||||
if ( !this._createWidget ) {
|
if ( !this || !this._createWidget ) {
|
||||||
return new constructor( options, element );
|
return new constructor( options, element );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,7 +119,7 @@ $.widget = function( name, base, prototype ) {
|
|||||||
// inheriting from
|
// inheriting from
|
||||||
basePrototype.options = $.widget.extend( {}, basePrototype.options );
|
basePrototype.options = $.widget.extend( {}, basePrototype.options );
|
||||||
$.each( prototype, function( prop, value ) {
|
$.each( prototype, function( prop, value ) {
|
||||||
if ( !$.isFunction( value ) ) {
|
if ( typeof value !== "function" ) {
|
||||||
proxiedPrototype[ prop ] = value;
|
proxiedPrototype[ prop ] = value;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -199,7 +198,7 @@ $.widget.extend = function( target ) {
|
|||||||
for ( ; inputIndex < inputLength; inputIndex++ ) {
|
for ( ; inputIndex < inputLength; inputIndex++ ) {
|
||||||
for ( key in input[ inputIndex ] ) {
|
for ( key in input[ inputIndex ] ) {
|
||||||
value = input[ inputIndex ][ key ];
|
value = input[ inputIndex ][ key ];
|
||||||
if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
|
if ( widgetHasOwnProperty.call( input[ inputIndex ], key ) && value !== undefined ) {
|
||||||
|
|
||||||
// Clone objects
|
// Clone objects
|
||||||
if ( $.isPlainObject( value ) ) {
|
if ( $.isPlainObject( value ) ) {
|
||||||
@@ -248,7 +247,8 @@ $.widget.bridge = function( name, object ) {
|
|||||||
"attempted to call method '" + options + "'" );
|
"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 +
|
return $.error( "no such method '" + options + "' for " + name +
|
||||||
" widget instance" );
|
" widget instance" );
|
||||||
}
|
}
|
||||||
@@ -509,12 +509,34 @@ $.Widget.prototype = {
|
|||||||
classes: this.options.classes || {}
|
classes: this.options.classes || {}
|
||||||
}, options );
|
}, options );
|
||||||
|
|
||||||
|
function bindRemoveEvent() {
|
||||||
|
var nodesToBind = [];
|
||||||
|
|
||||||
|
options.element.each( function( _, element ) {
|
||||||
|
var isTracked = $.map( that.classesElementLookup, function( elements ) {
|
||||||
|
return elements;
|
||||||
|
} )
|
||||||
|
.some( function( elements ) {
|
||||||
|
return elements.is( element );
|
||||||
|
} );
|
||||||
|
|
||||||
|
if ( !isTracked ) {
|
||||||
|
nodesToBind.push( element );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
that._on( $( nodesToBind ), {
|
||||||
|
remove: "_untrackClassesElement"
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
function processClassString( classes, checkOption ) {
|
function processClassString( classes, checkOption ) {
|
||||||
var current, i;
|
var current, i;
|
||||||
for ( i = 0; i < classes.length; i++ ) {
|
for ( i = 0; i < classes.length; i++ ) {
|
||||||
current = that.classesElementLookup[ classes[ i ] ] || $();
|
current = that.classesElementLookup[ classes[ i ] ] || $();
|
||||||
if ( options.add ) {
|
if ( options.add ) {
|
||||||
current = $( $.unique( current.get().concat( options.element.get() ) ) );
|
bindRemoveEvent();
|
||||||
|
current = $( $.uniqueSort( current.get().concat( options.element.get() ) ) );
|
||||||
} else {
|
} else {
|
||||||
current = $( current.not( options.element ).get() );
|
current = $( current.not( options.element ).get() );
|
||||||
}
|
}
|
||||||
@@ -526,10 +548,6 @@ $.Widget.prototype = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this._on( options.element, {
|
|
||||||
"remove": "_untrackClassesElement"
|
|
||||||
} );
|
|
||||||
|
|
||||||
if ( options.keys ) {
|
if ( options.keys ) {
|
||||||
processClassString( options.keys.match( /\S+/g ) || [], true );
|
processClassString( options.keys.match( /\S+/g ) || [], true );
|
||||||
}
|
}
|
||||||
@@ -547,6 +565,8 @@ $.Widget.prototype = {
|
|||||||
that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
|
that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
this._off( $( event.target ) );
|
||||||
},
|
},
|
||||||
|
|
||||||
_removeClass: function( element, keys, extra ) {
|
_removeClass: function( element, keys, extra ) {
|
||||||
@@ -627,7 +647,7 @@ $.Widget.prototype = {
|
|||||||
_off: function( element, eventName ) {
|
_off: function( element, eventName ) {
|
||||||
eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) +
|
eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) +
|
||||||
this.eventNamespace;
|
this.eventNamespace;
|
||||||
element.off( eventName ).off( eventName );
|
element.off( eventName );
|
||||||
|
|
||||||
// Clear the stack to avoid memory leaks (#10056)
|
// Clear the stack to avoid memory leaks (#10056)
|
||||||
this.bindings = $( this.bindings.not( element ).get() );
|
this.bindings = $( this.bindings.not( element ).get() );
|
||||||
@@ -693,7 +713,7 @@ $.Widget.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.element.trigger( event, data );
|
this.element.trigger( event, data );
|
||||||
return !( $.isFunction( callback ) &&
|
return !( typeof callback === "function" &&
|
||||||
callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||
|
callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||
|
||||||
event.isDefaultPrevented() );
|
event.isDefaultPrevented() );
|
||||||
}
|
}
|
||||||
@@ -715,6 +735,8 @@ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
|
|||||||
options = options || {};
|
options = options || {};
|
||||||
if ( typeof options === "number" ) {
|
if ( typeof options === "number" ) {
|
||||||
options = { duration: options };
|
options = { duration: options };
|
||||||
|
} else if ( options === true ) {
|
||||||
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
hasOptions = !$.isEmptyObject( options );
|
hasOptions = !$.isEmptyObject( options );
|
||||||
@@ -744,7 +766,7 @@ var widget = $.widget;
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI :data 1.12.1
|
* jQuery UI :data 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -758,7 +780,7 @@ var widget = $.widget;
|
|||||||
//>>docs: http://api.jqueryui.com/data-selector/
|
//>>docs: http://api.jqueryui.com/data-selector/
|
||||||
|
|
||||||
|
|
||||||
var data = $.extend( $.expr[ ":" ], {
|
var data = $.extend( $.expr.pseudos, {
|
||||||
data: $.expr.createPseudo ?
|
data: $.expr.createPseudo ?
|
||||||
$.expr.createPseudo( function( dataName ) {
|
$.expr.createPseudo( function( dataName ) {
|
||||||
return function( elem ) {
|
return function( elem ) {
|
||||||
@@ -773,7 +795,7 @@ var data = $.extend( $.expr[ ":" ], {
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Scroll Parent 1.12.1
|
* jQuery UI Scroll Parent 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -787,7 +809,6 @@ var data = $.extend( $.expr[ ":" ], {
|
|||||||
//>>docs: http://api.jqueryui.com/scrollParent/
|
//>>docs: http://api.jqueryui.com/scrollParent/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var scrollParent = $.fn.scrollParent = function( includeHidden ) {
|
var scrollParent = $.fn.scrollParent = function( includeHidden ) {
|
||||||
var position = this.css( "position" ),
|
var position = this.css( "position" ),
|
||||||
excludeStaticParent = position === "absolute",
|
excludeStaticParent = position === "absolute",
|
||||||
@@ -808,12 +829,11 @@ var scrollParent = $.fn.scrollParent = function( includeHidden ) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// This file is deprecated
|
// This file is deprecated
|
||||||
var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Mouse 1.12.1
|
* jQuery UI Mouse 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -827,14 +847,13 @@ var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
|||||||
//>>docs: http://api.jqueryui.com/mouse/
|
//>>docs: http://api.jqueryui.com/mouse/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var mouseHandled = false;
|
var mouseHandled = false;
|
||||||
$( document ).on( "mouseup", function() {
|
$( document ).on( "mouseup", function() {
|
||||||
mouseHandled = false;
|
mouseHandled = false;
|
||||||
} );
|
} );
|
||||||
|
|
||||||
var widgetsMouse = $.widget( "ui.mouse", {
|
var widgetsMouse = $.widget( "ui.mouse", {
|
||||||
version: "1.12.1",
|
version: "1.13.2",
|
||||||
options: {
|
options: {
|
||||||
cancel: "input, textarea, button, select, option",
|
cancel: "input, textarea, button, select, option",
|
||||||
distance: 1,
|
distance: 1,
|
||||||
@@ -879,7 +898,9 @@ var widgetsMouse = $.widget( "ui.mouse", {
|
|||||||
this._mouseMoved = false;
|
this._mouseMoved = false;
|
||||||
|
|
||||||
// We may have missed mouseup (out of window)
|
// We may have missed mouseup (out of window)
|
||||||
( this._mouseStarted && this._mouseUp( event ) );
|
if ( this._mouseStarted ) {
|
||||||
|
this._mouseUp( event );
|
||||||
|
}
|
||||||
|
|
||||||
this._mouseDownEvent = event;
|
this._mouseDownEvent = event;
|
||||||
|
|
||||||
@@ -972,7 +993,11 @@ var widgetsMouse = $.widget( "ui.mouse", {
|
|||||||
if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) {
|
if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) {
|
||||||
this._mouseStarted =
|
this._mouseStarted =
|
||||||
( this._mouseStart( this._mouseDownEvent, event ) !== false );
|
( 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;
|
return !this._mouseStarted;
|
||||||
@@ -1019,12 +1044,14 @@ var widgetsMouse = $.widget( "ui.mouse", {
|
|||||||
_mouseStart: function( /* event */ ) {},
|
_mouseStart: function( /* event */ ) {},
|
||||||
_mouseDrag: function( /* event */ ) {},
|
_mouseDrag: function( /* event */ ) {},
|
||||||
_mouseStop: function( /* event */ ) {},
|
_mouseStop: function( /* event */ ) {},
|
||||||
_mouseCapture: function( /* event */ ) { return true; }
|
_mouseCapture: function( /* event */ ) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQuery UI Sortable 1.12.1
|
* jQuery UI Sortable 1.13.2
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
@@ -1040,9 +1067,8 @@ var widgetsMouse = $.widget( "ui.mouse", {
|
|||||||
//>>css.structure: ../../themes/base/sortable.css
|
//>>css.structure: ../../themes/base/sortable.css
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
||||||
version: "1.12.1",
|
version: "1.13.2",
|
||||||
widgetEventPrefix: "sort",
|
widgetEventPrefix: "sort",
|
||||||
ready: false,
|
ready: false,
|
||||||
options: {
|
options: {
|
||||||
@@ -1202,6 +1228,11 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
// mouseCapture
|
// mouseCapture
|
||||||
this.refreshPositions();
|
this.refreshPositions();
|
||||||
|
|
||||||
|
//Prepare the dragged items parent
|
||||||
|
this.appendTo = $( o.appendTo !== "parent" ?
|
||||||
|
o.appendTo :
|
||||||
|
this.currentItem.parent() );
|
||||||
|
|
||||||
//Create and append the visible helper
|
//Create and append the visible helper
|
||||||
this.helper = this._createHelper( event );
|
this.helper = this._createHelper( event );
|
||||||
|
|
||||||
@@ -1216,9 +1247,6 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
//Cache the margins of the original element
|
//Cache the margins of the original element
|
||||||
this._cacheMargins();
|
this._cacheMargins();
|
||||||
|
|
||||||
//Get the next scrolling parent
|
|
||||||
this.scrollParent = this.helper.scrollParent();
|
|
||||||
|
|
||||||
//The element's absolute position on the page minus margins
|
//The element's absolute position on the page minus margins
|
||||||
this.offset = this.currentItem.offset();
|
this.offset = this.currentItem.offset();
|
||||||
this.offset = {
|
this.offset = {
|
||||||
@@ -1231,25 +1259,22 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
left: event.pageX - this.offset.left,
|
left: event.pageX - this.offset.left,
|
||||||
top: event.pageY - this.offset.top
|
top: event.pageY - this.offset.top
|
||||||
},
|
},
|
||||||
parent: this._getParentOffset(),
|
|
||||||
|
|
||||||
// This is a relative to absolute position minus the actual position calculation -
|
// This is a relative to absolute position minus the actual position calculation -
|
||||||
// only used for relative positioned helper
|
// only used for relative positioned helper
|
||||||
relative: this._getRelativeOffset()
|
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
|
// TODO: Still need to figure out a way to make relative sorting possible
|
||||||
this.helper.css( "position", "absolute" );
|
this.helper.css( "position", "absolute" );
|
||||||
this.cssPosition = this.helper.css( "position" );
|
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
|
//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
|
//Cache the former DOM position
|
||||||
this.domPosition = {
|
this.domPosition = {
|
||||||
@@ -1266,6 +1291,13 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
//Create the placeholder
|
//Create the placeholder
|
||||||
this._createPlaceholder();
|
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
|
//Set a containment if given in the options
|
||||||
if ( o.containment ) {
|
if ( o.containment ) {
|
||||||
this._setContainment();
|
this._setContainment();
|
||||||
@@ -1282,13 +1314,9 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
$( "<style>*{ cursor: " + o.cursor + " !important; }</style>" ).appendTo( body );
|
$( "<style>*{ cursor: " + o.cursor + " !important; }</style>" ).appendTo( body );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( o.opacity ) { // opacity option
|
// We need to make sure to grab the zIndex before setting the
|
||||||
if ( this.helper.css( "opacity" ) ) {
|
// opacity, because setting the opacity to anything lower than 1
|
||||||
this._storedOpacity = this.helper.css( "opacity" );
|
// causes the zIndex to change from "auto" to 0.
|
||||||
}
|
|
||||||
this.helper.css( "opacity", o.opacity );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( o.zIndex ) { // zIndex option
|
if ( o.zIndex ) { // zIndex option
|
||||||
if ( this.helper.css( "zIndex" ) ) {
|
if ( this.helper.css( "zIndex" ) ) {
|
||||||
this._storedZIndex = this.helper.css( "zIndex" );
|
this._storedZIndex = this.helper.css( "zIndex" );
|
||||||
@@ -1296,6 +1324,13 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
this.helper.css( "zIndex", o.zIndex );
|
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
|
//Prepare scrolling
|
||||||
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
|
if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
|
||||||
this.scrollParent[ 0 ].tagName !== "HTML" ) {
|
this.scrollParent[ 0 ].tagName !== "HTML" ) {
|
||||||
@@ -1330,79 +1365,84 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
|
|
||||||
this._addClass( this.helper, "ui-sortable-helper" );
|
this._addClass( this.helper, "ui-sortable-helper" );
|
||||||
|
|
||||||
// Execute the drag once - this causes the helper not to be visiblebefore getting its
|
//Move the helper, if needed
|
||||||
// correct position
|
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 );
|
this._mouseDrag( event );
|
||||||
|
|
||||||
return true;
|
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 ) {
|
_mouseDrag: function( event ) {
|
||||||
var i, item, itemElement, intersection,
|
var i, item, itemElement, intersection,
|
||||||
o = this.options,
|
o = this.options;
|
||||||
scrolled = false;
|
|
||||||
|
|
||||||
//Compute the helpers position
|
//Compute the helpers position
|
||||||
this.position = this._generatePosition( event );
|
this.position = this._generatePosition( event );
|
||||||
this.positionAbs = this._convertPositionTo( "absolute" );
|
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
|
//Set the helper position
|
||||||
if ( !this.options.axis || this.options.axis !== "y" ) {
|
if ( !this.options.axis || this.options.axis !== "y" ) {
|
||||||
this.helper[ 0 ].style.left = this.position.left + "px";
|
this.helper[ 0 ].style.left = this.position.left + "px";
|
||||||
@@ -1411,6 +1451,24 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
this.helper[ 0 ].style.top = this.position.top + "px";
|
this.helper[ 0 ].style.top = this.position.top + "px";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//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
|
//Rearrange
|
||||||
for ( i = this.items.length - 1; i >= 0; i-- ) {
|
for ( i = this.items.length - 1; i >= 0; i-- ) {
|
||||||
|
|
||||||
@@ -1437,7 +1495,8 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
// no useless actions that have been done before
|
// no useless actions that have been done before
|
||||||
// no action if the item moved is the parent of the item checked
|
// no action if the item moved is the parent of the item checked
|
||||||
if ( itemElement !== this.currentItem[ 0 ] &&
|
if ( itemElement !== this.currentItem[ 0 ] &&
|
||||||
this.placeholder[ intersection === 1 ? "next" : "prev" ]()[ 0 ] !== itemElement &&
|
this.placeholder[ intersection === 1 ?
|
||||||
|
"next" : "prev" ]()[ 0 ] !== itemElement &&
|
||||||
!$.contains( this.placeholder[ 0 ], itemElement ) &&
|
!$.contains( this.placeholder[ 0 ], itemElement ) &&
|
||||||
( this.options.type === "semi-dynamic" ?
|
( this.options.type === "semi-dynamic" ?
|
||||||
!$.contains( this.element[ 0 ], itemElement ) :
|
!$.contains( this.element[ 0 ], itemElement ) :
|
||||||
@@ -1447,7 +1506,8 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
|
|
||||||
this.direction = intersection === 1 ? "down" : "up";
|
this.direction = intersection === 1 ? "down" : "up";
|
||||||
|
|
||||||
if ( this.options.tolerance === "pointer" || this._intersectsWithSides( item ) ) {
|
if ( this.options.tolerance === "pointer" ||
|
||||||
|
this._intersectsWithSides( item ) ) {
|
||||||
this._rearrange( event, item );
|
this._rearrange( event, item );
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
@@ -1663,12 +1723,12 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
verticalDirection = this._getDragVerticalDirection();
|
verticalDirection = this.dragDirection.vertical;
|
||||||
horizontalDirection = this._getDragHorizontalDirection();
|
horizontalDirection = this.dragDirection.horizontal;
|
||||||
|
|
||||||
return this.floating ?
|
return this.floating ?
|
||||||
( ( horizontalDirection === "right" || verticalDirection === "down" ) ? 2 : 1 )
|
( ( horizontalDirection === "right" || verticalDirection === "down" ) ? 2 : 1 ) :
|
||||||
: ( verticalDirection && ( verticalDirection === "down" ? 2 : 1 ) );
|
( verticalDirection && ( verticalDirection === "down" ? 2 : 1 ) );
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1678,8 +1738,8 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
this.offset.click.top, item.top + ( item.height / 2 ), item.height ),
|
this.offset.click.top, item.top + ( item.height / 2 ), item.height ),
|
||||||
isOverRightHalf = this._isOverAxis( this.positionAbs.left +
|
isOverRightHalf = this._isOverAxis( this.positionAbs.left +
|
||||||
this.offset.click.left, item.left + ( item.width / 2 ), item.width ),
|
this.offset.click.left, item.left + ( item.width / 2 ), item.width ),
|
||||||
verticalDirection = this._getDragVerticalDirection(),
|
verticalDirection = this.dragDirection.vertical,
|
||||||
horizontalDirection = this._getDragHorizontalDirection();
|
horizontalDirection = this.dragDirection.horizontal;
|
||||||
|
|
||||||
if ( this.floating && horizontalDirection ) {
|
if ( this.floating && horizontalDirection ) {
|
||||||
return ( ( horizontalDirection === "right" && isOverRightHalf ) ||
|
return ( ( horizontalDirection === "right" && isOverRightHalf ) ||
|
||||||
@@ -1728,7 +1788,7 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
for ( j = cur.length - 1; j >= 0; j-- ) {
|
for ( j = cur.length - 1; j >= 0; j-- ) {
|
||||||
inst = $.data( cur[ j ], this.widgetFullName );
|
inst = $.data( cur[ j ], this.widgetFullName );
|
||||||
if ( inst && inst !== this && !inst.options.disabled ) {
|
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.call( inst.element ) :
|
||||||
$( inst.options.items, inst.element )
|
$( inst.options.items, inst.element )
|
||||||
.not( ".ui-sortable-helper" )
|
.not( ".ui-sortable-helper" )
|
||||||
@@ -1738,7 +1798,7 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
queries.push( [ $.isFunction( this.options.items ) ?
|
queries.push( [ typeof this.options.items === "function" ?
|
||||||
this.options.items
|
this.options.items
|
||||||
.call( this.element, null, { options: this.options, item: this.currentItem } ) :
|
.call( this.element, null, { options: this.options, item: this.currentItem } ) :
|
||||||
$( this.options.items, this.element )
|
$( this.options.items, this.element )
|
||||||
@@ -1778,7 +1838,7 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
|
|
||||||
var i, j, cur, inst, targetData, _queries, item, queriesLength,
|
var i, j, cur, inst, targetData, _queries, item, queriesLength,
|
||||||
items = this.items,
|
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.call( this.element[ 0 ], event, { item: this.currentItem } ) :
|
||||||
$( this.options.items, this.element ), this ] ],
|
$( this.options.items, this.element ), this ] ],
|
||||||
connectWith = this._connectWith();
|
connectWith = this._connectWith();
|
||||||
@@ -1790,7 +1850,7 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
for ( j = cur.length - 1; j >= 0; j-- ) {
|
for ( j = cur.length - 1; j >= 0; j-- ) {
|
||||||
inst = $.data( cur[ j ], this.widgetFullName );
|
inst = $.data( cur[ j ], this.widgetFullName );
|
||||||
if ( inst && inst !== this && !inst.options.disabled ) {
|
if ( inst && inst !== this && !inst.options.disabled ) {
|
||||||
queries.push( [ $.isFunction( inst.options.items ) ?
|
queries.push( [ typeof inst.options.items === "function" ?
|
||||||
inst.options.items
|
inst.options.items
|
||||||
.call( inst.element[ 0 ], event, { item: this.currentItem } ) :
|
.call( inst.element[ 0 ], event, { item: this.currentItem } ) :
|
||||||
$( inst.options.items, inst.element ), inst ] );
|
$( inst.options.items, inst.element ), inst ] );
|
||||||
@@ -1821,26 +1881,14 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
refreshPositions: function( fast ) {
|
_refreshItemPositions: 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();
|
|
||||||
}
|
|
||||||
|
|
||||||
var i, item, t, p;
|
var i, item, t, p;
|
||||||
|
|
||||||
for ( i = this.items.length - 1; i >= 0; i-- ) {
|
for ( i = this.items.length - 1; i >= 0; i-- ) {
|
||||||
item = this.items[ i ];
|
item = this.items[ i ];
|
||||||
|
|
||||||
//We ignore calculating positions of all connected containers when we're not over them
|
//We ignore calculating positions of all connected containers when we're not over them
|
||||||
if ( item.instance !== this.currentContainer && this.currentContainer &&
|
if ( this.currentContainer && item.instance !== this.currentContainer &&
|
||||||
item.item[ 0 ] !== this.currentItem[ 0 ] ) {
|
item.item[ 0 ] !== this.currentItem[ 0 ] ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -1858,6 +1906,24 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
item.left = p.left;
|
item.left = p.left;
|
||||||
item.top = p.top;
|
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;
|
||||||
|
|
||||||
|
// This has to be redone because due to the item being moved out/into the offsetParent,
|
||||||
|
// the offsetParent's position will change
|
||||||
|
if ( this.offsetParent && this.helper ) {
|
||||||
|
this.offset.parent = this._getParentOffset();
|
||||||
|
}
|
||||||
|
|
||||||
|
this._refreshItemPositions( fast );
|
||||||
|
|
||||||
|
var i, p;
|
||||||
|
|
||||||
if ( this.options.custom && this.options.custom.refreshContainers ) {
|
if ( this.options.custom && this.options.custom.refreshContainers ) {
|
||||||
this.options.custom.refreshContainers.call( this );
|
this.options.custom.refreshContainers.call( this );
|
||||||
@@ -1878,20 +1944,20 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
|
|
||||||
_createPlaceholder: function( that ) {
|
_createPlaceholder: function( that ) {
|
||||||
that = that || this;
|
that = that || this;
|
||||||
var className,
|
var className, nodeName,
|
||||||
o = that.options;
|
o = that.options;
|
||||||
|
|
||||||
if ( !o.placeholder || o.placeholder.constructor === String ) {
|
if ( !o.placeholder || o.placeholder.constructor === String ) {
|
||||||
className = o.placeholder;
|
className = o.placeholder;
|
||||||
|
nodeName = that.currentItem[ 0 ].nodeName.toLowerCase();
|
||||||
o.placeholder = {
|
o.placeholder = {
|
||||||
element: function() {
|
element: function() {
|
||||||
|
|
||||||
var nodeName = that.currentItem[ 0 ].nodeName.toLowerCase(),
|
var element = $( "<" + nodeName + ">", that.document[ 0 ] );
|
||||||
element = $( "<" + nodeName + ">", that.document[ 0 ] );
|
|
||||||
|
|
||||||
that._addClass( element, "ui-sortable-placeholder",
|
that._addClass( element, "ui-sortable-placeholder",
|
||||||
className || that.currentItem[ 0 ].className )
|
className || that.currentItem[ 0 ].className )
|
||||||
._removeClass( element, "ui-sortable-helper" );
|
._removeClass( element, "ui-sortable-helper" );
|
||||||
|
|
||||||
if ( nodeName === "tbody" ) {
|
if ( nodeName === "tbody" ) {
|
||||||
that._createTrPlaceholder(
|
that._createTrPlaceholder(
|
||||||
@@ -1920,9 +1986,15 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//If the element doesn't have a actual height by itself (without styles coming
|
// If the element doesn't have a actual height or width by itself (without
|
||||||
// from a stylesheet), it receives the inline height from the dragged item
|
// styles coming from a stylesheet), it receives the inline height and width
|
||||||
if ( !p.height() ) {
|
// 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(
|
p.height(
|
||||||
that.currentItem.innerHeight() -
|
that.currentItem.innerHeight() -
|
||||||
parseInt( that.currentItem.css( "paddingTop" ) || 0, 10 ) -
|
parseInt( that.currentItem.css( "paddingTop" ) || 0, 10 ) -
|
||||||
@@ -2055,9 +2127,11 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
itemWithLeastDistance ?
|
if ( itemWithLeastDistance ) {
|
||||||
this._rearrange( event, itemWithLeastDistance, null, true ) :
|
this._rearrange( event, itemWithLeastDistance, null, true );
|
||||||
|
} else {
|
||||||
this._rearrange( event, null, this.containers[ innermostIndex ].element, true );
|
this._rearrange( event, null, this.containers[ innermostIndex ].element, true );
|
||||||
|
}
|
||||||
this._trigger( "change", event, this._uiHash() );
|
this._trigger( "change", event, this._uiHash() );
|
||||||
this.containers[ innermostIndex ]._trigger( "change", event, this._uiHash( this ) );
|
this.containers[ innermostIndex ]._trigger( "change", event, this._uiHash( this ) );
|
||||||
this.currentContainer = this.containers[ innermostIndex ];
|
this.currentContainer = this.containers[ innermostIndex ];
|
||||||
@@ -2065,6 +2139,15 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
//Update the placeholder
|
//Update the placeholder
|
||||||
this.options.placeholder.update( this.currentContainer, this.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 ]._trigger( "over", event, this._uiHash( this ) );
|
||||||
this.containers[ innermostIndex ].containerCache.over = 1;
|
this.containers[ innermostIndex ].containerCache.over = 1;
|
||||||
}
|
}
|
||||||
@@ -2074,15 +2157,13 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
_createHelper: function( event ) {
|
_createHelper: function( event ) {
|
||||||
|
|
||||||
var o = this.options,
|
var o = this.options,
|
||||||
helper = $.isFunction( o.helper ) ?
|
helper = typeof o.helper === "function" ?
|
||||||
$( o.helper.apply( this.element[ 0 ], [ event, this.currentItem ] ) ) :
|
$( o.helper.apply( this.element[ 0 ], [ event, this.currentItem ] ) ) :
|
||||||
( o.helper === "clone" ? this.currentItem.clone() : this.currentItem );
|
( o.helper === "clone" ? this.currentItem.clone() : this.currentItem );
|
||||||
|
|
||||||
//Add the helper to the DOM if that didn't happen already
|
//Add the helper to the DOM if that didn't happen already
|
||||||
if ( !helper.parents( "body" ).length ) {
|
if ( !helper.parents( "body" ).length ) {
|
||||||
$( o.appendTo !== "parent" ?
|
this.appendTo[ 0 ].appendChild( helper[ 0 ] );
|
||||||
o.appendTo :
|
|
||||||
this.currentItem[ 0 ].parentNode )[ 0 ].appendChild( helper[ 0 ] );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( helper[ 0 ] === this.currentItem[ 0 ] ) {
|
if ( helper[ 0 ] === this.currentItem[ 0 ] ) {
|
||||||
@@ -2110,7 +2191,7 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
if ( typeof obj === "string" ) {
|
if ( typeof obj === "string" ) {
|
||||||
obj = obj.split( " " );
|
obj = obj.split( " " );
|
||||||
}
|
}
|
||||||
if ( $.isArray( obj ) ) {
|
if ( Array.isArray( obj ) ) {
|
||||||
obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
|
obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
|
||||||
}
|
}
|
||||||
if ( "left" in obj ) {
|
if ( "left" in obj ) {
|
||||||
@@ -2390,9 +2471,12 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
|
|
||||||
_rearrange: function( event, i, a, hardRefresh ) {
|
_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 ],
|
i.item[ 0 ].parentNode.insertBefore( this.placeholder[ 0 ],
|
||||||
( this.direction === "down" ? i.item[ 0 ] : i.item[ 0 ].nextSibling ) );
|
( this.direction === "down" ? i.item[ 0 ] : i.item[ 0 ].nextSibling ) );
|
||||||
|
}
|
||||||
|
|
||||||
//Various things done here to improve the performance:
|
//Various things done here to improve the performance:
|
||||||
// 1. we create a setTimeout, that calls refreshPositions
|
// 1. we create a setTimeout, that calls refreshPositions
|
||||||
@@ -2561,4 +2645,4 @@ var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
}));
|
} );
|
||||||
6
common/src/main/resources/static/jquery/jquery-ui-sortable-1.13.2.min.js
vendored
Normal file
6
common/src/main/resources/static/jquery/jquery-ui-sortable-1.13.2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user