Update bower dependencies.
This commit is contained in:
parent
818bdad5af
commit
2beab45f32
185 changed files with 21480 additions and 8110 deletions
36
app/bower_components/jquery/src/css/adjustCSS.js
vendored
36
app/bower_components/jquery/src/css/adjustCSS.js
vendored
|
@ -6,8 +6,7 @@ define( [
|
|||
"use strict";
|
||||
|
||||
function adjustCSS( elem, prop, valueParts, tween ) {
|
||||
var adjusted,
|
||||
scale = 1,
|
||||
var adjusted, scale,
|
||||
maxIterations = 20,
|
||||
currentValue = tween ?
|
||||
function() {
|
||||
|
@ -25,30 +24,33 @@ function adjustCSS( elem, prop, valueParts, tween ) {
|
|||
|
||||
if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
|
||||
|
||||
// Support: Firefox <=54
|
||||
// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)
|
||||
initial = initial / 2;
|
||||
|
||||
// Trust units reported by jQuery.css
|
||||
unit = unit || initialInUnit[ 3 ];
|
||||
|
||||
// Make sure we update the tween properties later on
|
||||
valueParts = valueParts || [];
|
||||
|
||||
// Iteratively approximate from a nonzero starting point
|
||||
initialInUnit = +initial || 1;
|
||||
|
||||
do {
|
||||
while ( maxIterations-- ) {
|
||||
|
||||
// If previous iteration zeroed out, double until we get *something*.
|
||||
// Use string for doubling so we don't accidentally see scale as unchanged below
|
||||
scale = scale || ".5";
|
||||
|
||||
// Adjust and apply
|
||||
initialInUnit = initialInUnit / scale;
|
||||
// Evaluate and update our best guess (doubling guesses that zero out).
|
||||
// Finish if the scale equals or crosses 1 (making the old*new product non-positive).
|
||||
jQuery.style( elem, prop, initialInUnit + unit );
|
||||
if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {
|
||||
maxIterations = 0;
|
||||
}
|
||||
initialInUnit = initialInUnit / scale;
|
||||
|
||||
// Update scale, tolerating zero or NaN from tween.cur()
|
||||
// Break the loop if scale is unchanged or perfect, or if we've just had enough.
|
||||
} while (
|
||||
scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations
|
||||
);
|
||||
}
|
||||
|
||||
initialInUnit = initialInUnit * 2;
|
||||
jQuery.style( elem, prop, initialInUnit + unit );
|
||||
|
||||
// Make sure we update the tween properties later on
|
||||
valueParts = valueParts || [];
|
||||
}
|
||||
|
||||
if ( valueParts ) {
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
define( [
|
||||
"../core",
|
||||
"./var/rboxStyle",
|
||||
"./var/rnumnonpx",
|
||||
"./var/rmargin",
|
||||
"./var/getStyles",
|
||||
"./support",
|
||||
"../selector" // Get jQuery.contains
|
||||
], function( jQuery, rnumnonpx, rmargin, getStyles, support ) {
|
||||
], function( jQuery, rboxStyle, rnumnonpx, getStyles, support ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
@ -35,7 +35,7 @@ function curCSS( elem, name, computed ) {
|
|||
// but width seems to be reliably pixels.
|
||||
// This is against the CSSOM draft spec:
|
||||
// https://drafts.csswg.org/cssom/#resolved-values
|
||||
if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {
|
||||
if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) {
|
||||
|
||||
// Remember the original values
|
||||
width = style.width;
|
||||
|
|
55
app/bower_components/jquery/src/css/support.js
vendored
55
app/bower_components/jquery/src/css/support.js
vendored
|
@ -18,25 +18,33 @@ define( [
|
|||
return;
|
||||
}
|
||||
|
||||
container.style.cssText = "position:absolute;left:-11111px;width:60px;" +
|
||||
"margin-top:1px;padding:0;border:0";
|
||||
div.style.cssText =
|
||||
"box-sizing:border-box;" +
|
||||
"position:relative;display:block;" +
|
||||
"position:relative;display:block;box-sizing:border-box;overflow:scroll;" +
|
||||
"margin:auto;border:1px;padding:1px;" +
|
||||
"top:1%;width:50%";
|
||||
div.innerHTML = "";
|
||||
documentElement.appendChild( container );
|
||||
"width:60%;top:1%";
|
||||
documentElement.appendChild( container ).appendChild( div );
|
||||
|
||||
var divStyle = window.getComputedStyle( div );
|
||||
pixelPositionVal = divStyle.top !== "1%";
|
||||
|
||||
// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
|
||||
reliableMarginLeftVal = divStyle.marginLeft === "2px";
|
||||
boxSizingReliableVal = divStyle.width === "4px";
|
||||
reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12;
|
||||
|
||||
// Support: Android 4.0 - 4.3 only
|
||||
// Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3
|
||||
// Some styles come back with percentage values, even though they shouldn't
|
||||
div.style.marginRight = "50%";
|
||||
pixelMarginRightVal = divStyle.marginRight === "4px";
|
||||
div.style.right = "60%";
|
||||
pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36;
|
||||
|
||||
// Support: IE 9 - 11 only
|
||||
// Detect misreporting of content dimensions for box-sizing:border-box elements
|
||||
boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36;
|
||||
|
||||
// Support: IE 9 only
|
||||
// Detect overflow:scroll screwiness (gh-3699)
|
||||
div.style.position = "absolute";
|
||||
scrollboxSizeVal = div.offsetWidth === 36 || "absolute";
|
||||
|
||||
documentElement.removeChild( container );
|
||||
|
||||
|
@ -45,7 +53,12 @@ define( [
|
|||
div = null;
|
||||
}
|
||||
|
||||
var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,
|
||||
function roundPixelMeasures( measure ) {
|
||||
return Math.round( parseFloat( measure ) );
|
||||
}
|
||||
|
||||
var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal,
|
||||
reliableMarginLeftVal,
|
||||
container = document.createElement( "div" ),
|
||||
div = document.createElement( "div" );
|
||||
|
||||
|
@ -60,26 +73,26 @@ define( [
|
|||
div.cloneNode( true ).style.backgroundClip = "";
|
||||
support.clearCloneStyle = div.style.backgroundClip === "content-box";
|
||||
|
||||
container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" +
|
||||
"padding:0;margin-top:1px;position:absolute";
|
||||
container.appendChild( div );
|
||||
|
||||
jQuery.extend( support, {
|
||||
pixelPosition: function() {
|
||||
computeStyleTests();
|
||||
return pixelPositionVal;
|
||||
},
|
||||
boxSizingReliable: function() {
|
||||
computeStyleTests();
|
||||
return boxSizingReliableVal;
|
||||
},
|
||||
pixelMarginRight: function() {
|
||||
pixelBoxStyles: function() {
|
||||
computeStyleTests();
|
||||
return pixelMarginRightVal;
|
||||
return pixelBoxStylesVal;
|
||||
},
|
||||
pixelPosition: function() {
|
||||
computeStyleTests();
|
||||
return pixelPositionVal;
|
||||
},
|
||||
reliableMarginLeft: function() {
|
||||
computeStyleTests();
|
||||
return reliableMarginLeftVal;
|
||||
},
|
||||
scrollboxSize: function() {
|
||||
computeStyleTests();
|
||||
return scrollboxSizeVal;
|
||||
}
|
||||
} );
|
||||
} )();
|
||||
|
|
7
app/bower_components/jquery/src/css/var/rboxStyle.js
vendored
Normal file
7
app/bower_components/jquery/src/css/var/rboxStyle.js
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
define( [
|
||||
"./cssExpand"
|
||||
], function( cssExpand ) {
|
||||
"use strict";
|
||||
|
||||
return new RegExp( cssExpand.join( "|" ), "i" );
|
||||
} );
|
|
@ -1,5 +0,0 @@
|
|||
define( function() {
|
||||
"use strict";
|
||||
|
||||
return ( /^margin/ );
|
||||
} );
|
Loading…
Add table
Add a link
Reference in a new issue