@bingads-webui-campaign/accounts-grid 0.0.1-security → 13.6.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @bingads-webui-campaign/accounts-grid might be problematic. Click here for more details.
- package/AUTHORS.txt +337 -0
- package/LICENSE.txt +20 -0
- package/README.md +58 -3
- package/bower.json +14 -0
- package/dist/jquery.js +10996 -0
- package/dist/jquery.min.js +2 -0
- package/dist/jquery.min.map +1 -0
- package/dist/jquery.slim.js +8894 -0
- package/dist/jquery.slim.min.js +2 -0
- package/dist/jquery.slim.min.map +1 -0
- package/external/sizzle/LICENSE.txt +36 -0
- package/external/sizzle/dist/sizzle.js +2542 -0
- package/external/sizzle/dist/sizzle.min.js +3 -0
- package/external/sizzle/dist/sizzle.min.map +1 -0
- package/package.json +139 -3
- package/src/ajax/jsonp.js +103 -0
- package/src/ajax/load.js +77 -0
- package/src/ajax/script.js +74 -0
- package/src/ajax/var/location.js +5 -0
- package/src/ajax/var/nonce.js +5 -0
- package/src/ajax/var/rquery.js +5 -0
- package/src/ajax/xhr.js +170 -0
- package/src/ajax.js +876 -0
- package/src/attributes/attr.js +141 -0
- package/src/attributes/classes.js +184 -0
- package/src/attributes/prop.js +142 -0
- package/src/attributes/support.js +33 -0
- package/src/attributes/val.js +191 -0
- package/src/attributes.js +13 -0
- package/src/callbacks.js +236 -0
- package/src/core/DOMEval.js +43 -0
- package/src/core/access.js +72 -0
- package/src/core/camelCase.js +23 -0
- package/src/core/init.js +129 -0
- package/src/core/isAttached.js +26 -0
- package/src/core/nodeName.js +13 -0
- package/src/core/parseHTML.js +65 -0
- package/src/core/parseXML.js +35 -0
- package/src/core/ready-no-deferred.js +97 -0
- package/src/core/ready.js +86 -0
- package/src/core/readyException.js +13 -0
- package/src/core/stripAndCollapse.js +14 -0
- package/src/core/support.js +20 -0
- package/src/core/toType.js +20 -0
- package/src/core/var/rsingleTag.js +7 -0
- package/src/core.js +400 -0
- package/src/css/addGetHookIf.js +26 -0
- package/src/css/adjustCSS.js +74 -0
- package/src/css/curCSS.js +100 -0
- package/src/css/finalPropName.js +42 -0
- package/src/css/hiddenVisibleSelectors.js +15 -0
- package/src/css/showHide.js +105 -0
- package/src/css/support.js +152 -0
- package/src/css/var/cssExpand.js +5 -0
- package/src/css/var/getStyles.js +17 -0
- package/src/css/var/isHiddenWithinTree.js +34 -0
- package/src/css/var/rboxStyle.js +7 -0
- package/src/css/var/rcustomProp.js +7 -0
- package/src/css/var/rnumnonpx.js +7 -0
- package/src/css/var/swap.js +26 -0
- package/src/css.js +495 -0
- package/src/data/Data.js +162 -0
- package/src/data/var/acceptData.js +19 -0
- package/src/data/var/dataPriv.js +7 -0
- package/src/data/var/dataUser.js +7 -0
- package/src/data.js +180 -0
- package/src/deferred/exceptionHook.js +21 -0
- package/src/deferred.js +399 -0
- package/src/deprecated/ajax-event-alias.js +22 -0
- package/src/deprecated/event.js +50 -0
- package/src/deprecated.js +89 -0
- package/src/dimensions.js +60 -0
- package/src/effects/Tween.js +125 -0
- package/src/effects/animatedSelector.js +15 -0
- package/src/effects.js +702 -0
- package/src/event/focusin.js +58 -0
- package/src/event/support.js +11 -0
- package/src/event/trigger.js +199 -0
- package/src/event.js +874 -0
- package/src/exports/amd.js +26 -0
- package/src/exports/global.js +34 -0
- package/src/jquery.js +41 -0
- package/src/manipulation/_evalUrl.js +32 -0
- package/src/manipulation/buildFragment.js +106 -0
- package/src/manipulation/getAll.js +32 -0
- package/src/manipulation/setGlobalEval.js +22 -0
- package/src/manipulation/support.js +41 -0
- package/src/manipulation/var/rscriptType.js +5 -0
- package/src/manipulation/var/rtagName.js +8 -0
- package/src/manipulation/wrapMap.js +30 -0
- package/src/manipulation.js +487 -0
- package/src/offset.js +232 -0
- package/src/queue/delay.js +23 -0
- package/src/queue.js +145 -0
- package/src/selector-native.js +240 -0
- package/src/selector-sizzle.js +19 -0
- package/src/selector.js +3 -0
- package/src/serialize.js +134 -0
- package/src/traversing/findFilter.js +97 -0
- package/src/traversing/var/dir.js +22 -0
- package/src/traversing/var/rneedsContext.js +8 -0
- package/src/traversing/var/siblings.js +17 -0
- package/src/traversing.js +198 -0
- package/src/var/ObjectFunctionString.js +7 -0
- package/src/var/arr.js +5 -0
- package/src/var/class2type.js +6 -0
- package/src/var/document.js +5 -0
- package/src/var/documentElement.js +7 -0
- package/src/var/flat.js +16 -0
- package/src/var/fnToString.js +7 -0
- package/src/var/getProto.js +5 -0
- package/src/var/hasOwn.js +7 -0
- package/src/var/indexOf.js +7 -0
- package/src/var/isFunction.js +17 -0
- package/src/var/isWindow.js +8 -0
- package/src/var/pnum.js +5 -0
- package/src/var/push.js +7 -0
- package/src/var/rcheckableType.js +5 -0
- package/src/var/rcssNum.js +9 -0
- package/src/var/rnothtmlwhite.js +8 -0
- package/src/var/rtrimCSS.js +12 -0
- package/src/var/slice.js +7 -0
- package/src/var/support.js +6 -0
- package/src/var/toString.js +7 -0
- package/src/var/whitespace.js +8 -0
- package/src/wrap.js +78 -0
@@ -0,0 +1,74 @@
|
|
1
|
+
define( [
|
2
|
+
"../core",
|
3
|
+
"../var/rcssNum"
|
4
|
+
], function( jQuery, rcssNum ) {
|
5
|
+
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
function adjustCSS( elem, prop, valueParts, tween ) {
|
9
|
+
var adjusted, scale,
|
10
|
+
maxIterations = 20,
|
11
|
+
currentValue = tween ?
|
12
|
+
function() {
|
13
|
+
return tween.cur();
|
14
|
+
} :
|
15
|
+
function() {
|
16
|
+
return jQuery.css( elem, prop, "" );
|
17
|
+
},
|
18
|
+
initial = currentValue(),
|
19
|
+
unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
|
20
|
+
|
21
|
+
// Starting value computation is required for potential unit mismatches
|
22
|
+
initialInUnit = elem.nodeType &&
|
23
|
+
( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
|
24
|
+
rcssNum.exec( jQuery.css( elem, prop ) );
|
25
|
+
|
26
|
+
if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
|
27
|
+
|
28
|
+
// Support: Firefox <=54
|
29
|
+
// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)
|
30
|
+
initial = initial / 2;
|
31
|
+
|
32
|
+
// Trust units reported by jQuery.css
|
33
|
+
unit = unit || initialInUnit[ 3 ];
|
34
|
+
|
35
|
+
// Iteratively approximate from a nonzero starting point
|
36
|
+
initialInUnit = +initial || 1;
|
37
|
+
|
38
|
+
while ( maxIterations-- ) {
|
39
|
+
|
40
|
+
// Evaluate and update our best guess (doubling guesses that zero out).
|
41
|
+
// Finish if the scale equals or crosses 1 (making the old*new product non-positive).
|
42
|
+
jQuery.style( elem, prop, initialInUnit + unit );
|
43
|
+
if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {
|
44
|
+
maxIterations = 0;
|
45
|
+
}
|
46
|
+
initialInUnit = initialInUnit / scale;
|
47
|
+
|
48
|
+
}
|
49
|
+
|
50
|
+
initialInUnit = initialInUnit * 2;
|
51
|
+
jQuery.style( elem, prop, initialInUnit + unit );
|
52
|
+
|
53
|
+
// Make sure we update the tween properties later on
|
54
|
+
valueParts = valueParts || [];
|
55
|
+
}
|
56
|
+
|
57
|
+
if ( valueParts ) {
|
58
|
+
initialInUnit = +initialInUnit || +initial || 0;
|
59
|
+
|
60
|
+
// Apply relative offset (+=/-=) if specified
|
61
|
+
adjusted = valueParts[ 1 ] ?
|
62
|
+
initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
|
63
|
+
+valueParts[ 2 ];
|
64
|
+
if ( tween ) {
|
65
|
+
tween.unit = unit;
|
66
|
+
tween.start = initialInUnit;
|
67
|
+
tween.end = adjusted;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
return adjusted;
|
71
|
+
}
|
72
|
+
|
73
|
+
return adjustCSS;
|
74
|
+
} );
|
@@ -0,0 +1,100 @@
|
|
1
|
+
define( [
|
2
|
+
"../core",
|
3
|
+
"../core/isAttached",
|
4
|
+
"./var/rboxStyle",
|
5
|
+
"./var/rnumnonpx",
|
6
|
+
"./var/getStyles",
|
7
|
+
"./var/rcustomProp",
|
8
|
+
"../var/rtrimCSS",
|
9
|
+
"./support"
|
10
|
+
], function( jQuery, isAttached, rboxStyle, rnumnonpx, getStyles,
|
11
|
+
rcustomProp, rtrimCSS, support ) {
|
12
|
+
|
13
|
+
"use strict";
|
14
|
+
|
15
|
+
function curCSS( elem, name, computed ) {
|
16
|
+
var width, minWidth, maxWidth, ret,
|
17
|
+
isCustomProp = rcustomProp.test( name ),
|
18
|
+
|
19
|
+
// Support: Firefox 51+
|
20
|
+
// Retrieving style before computed somehow
|
21
|
+
// fixes an issue with getting wrong values
|
22
|
+
// on detached elements
|
23
|
+
style = elem.style;
|
24
|
+
|
25
|
+
computed = computed || getStyles( elem );
|
26
|
+
|
27
|
+
// getPropertyValue is needed for:
|
28
|
+
// .css('filter') (IE 9 only, trac-12537)
|
29
|
+
// .css('--customProperty) (gh-3144)
|
30
|
+
if ( computed ) {
|
31
|
+
|
32
|
+
// Support: IE <=9 - 11+
|
33
|
+
// IE only supports `"float"` in `getPropertyValue`; in computed styles
|
34
|
+
// it's only available as `"cssFloat"`. We no longer modify properties
|
35
|
+
// sent to `.css()` apart from camelCasing, so we need to check both.
|
36
|
+
// Normally, this would create difference in behavior: if
|
37
|
+
// `getPropertyValue` returns an empty string, the value returned
|
38
|
+
// by `.css()` would be `undefined`. This is usually the case for
|
39
|
+
// disconnected elements. However, in IE even disconnected elements
|
40
|
+
// with no styles return `"none"` for `getPropertyValue( "float" )`
|
41
|
+
ret = computed.getPropertyValue( name ) || computed[ name ];
|
42
|
+
|
43
|
+
if ( isCustomProp && ret ) {
|
44
|
+
|
45
|
+
// Support: Firefox 105+, Chrome <=105+
|
46
|
+
// Spec requires trimming whitespace for custom properties (gh-4926).
|
47
|
+
// Firefox only trims leading whitespace. Chrome just collapses
|
48
|
+
// both leading & trailing whitespace to a single space.
|
49
|
+
//
|
50
|
+
// Fall back to `undefined` if empty string returned.
|
51
|
+
// This collapses a missing definition with property defined
|
52
|
+
// and set to an empty string but there's no standard API
|
53
|
+
// allowing us to differentiate them without a performance penalty
|
54
|
+
// and returning `undefined` aligns with older jQuery.
|
55
|
+
//
|
56
|
+
// rtrimCSS treats U+000D CARRIAGE RETURN and U+000C FORM FEED
|
57
|
+
// as whitespace while CSS does not, but this is not a problem
|
58
|
+
// because CSS preprocessing replaces them with U+000A LINE FEED
|
59
|
+
// (which *is* CSS whitespace)
|
60
|
+
// https://www.w3.org/TR/css-syntax-3/#input-preprocessing
|
61
|
+
ret = ret.replace( rtrimCSS, "$1" ) || undefined;
|
62
|
+
}
|
63
|
+
|
64
|
+
if ( ret === "" && !isAttached( elem ) ) {
|
65
|
+
ret = jQuery.style( elem, name );
|
66
|
+
}
|
67
|
+
|
68
|
+
// A tribute to the "awesome hack by Dean Edwards"
|
69
|
+
// Android Browser returns percentage for some values,
|
70
|
+
// but width seems to be reliably pixels.
|
71
|
+
// This is against the CSSOM draft spec:
|
72
|
+
// https://drafts.csswg.org/cssom/#resolved-values
|
73
|
+
if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) {
|
74
|
+
|
75
|
+
// Remember the original values
|
76
|
+
width = style.width;
|
77
|
+
minWidth = style.minWidth;
|
78
|
+
maxWidth = style.maxWidth;
|
79
|
+
|
80
|
+
// Put in the new values to get a computed value out
|
81
|
+
style.minWidth = style.maxWidth = style.width = ret;
|
82
|
+
ret = computed.width;
|
83
|
+
|
84
|
+
// Revert the changed values
|
85
|
+
style.width = width;
|
86
|
+
style.minWidth = minWidth;
|
87
|
+
style.maxWidth = maxWidth;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
return ret !== undefined ?
|
92
|
+
|
93
|
+
// Support: IE <=9 - 11 only
|
94
|
+
// IE returns zIndex value as an integer.
|
95
|
+
ret + "" :
|
96
|
+
ret;
|
97
|
+
}
|
98
|
+
|
99
|
+
return curCSS;
|
100
|
+
} );
|
@@ -0,0 +1,42 @@
|
|
1
|
+
define( [
|
2
|
+
"../var/document",
|
3
|
+
"../core"
|
4
|
+
], function( document, jQuery ) {
|
5
|
+
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
var cssPrefixes = [ "Webkit", "Moz", "ms" ],
|
9
|
+
emptyStyle = document.createElement( "div" ).style,
|
10
|
+
vendorProps = {};
|
11
|
+
|
12
|
+
// Return a vendor-prefixed property or undefined
|
13
|
+
function vendorPropName( name ) {
|
14
|
+
|
15
|
+
// Check for vendor prefixed names
|
16
|
+
var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
|
17
|
+
i = cssPrefixes.length;
|
18
|
+
|
19
|
+
while ( i-- ) {
|
20
|
+
name = cssPrefixes[ i ] + capName;
|
21
|
+
if ( name in emptyStyle ) {
|
22
|
+
return name;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
// Return a potentially-mapped jQuery.cssProps or vendor prefixed property
|
28
|
+
function finalPropName( name ) {
|
29
|
+
var final = jQuery.cssProps[ name ] || vendorProps[ name ];
|
30
|
+
|
31
|
+
if ( final ) {
|
32
|
+
return final;
|
33
|
+
}
|
34
|
+
if ( name in emptyStyle ) {
|
35
|
+
return name;
|
36
|
+
}
|
37
|
+
return vendorProps[ name ] = vendorPropName( name ) || name;
|
38
|
+
}
|
39
|
+
|
40
|
+
return finalPropName;
|
41
|
+
|
42
|
+
} );
|
@@ -0,0 +1,15 @@
|
|
1
|
+
define( [
|
2
|
+
"../core",
|
3
|
+
"../selector"
|
4
|
+
], function( jQuery ) {
|
5
|
+
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
jQuery.expr.pseudos.hidden = function( elem ) {
|
9
|
+
return !jQuery.expr.pseudos.visible( elem );
|
10
|
+
};
|
11
|
+
jQuery.expr.pseudos.visible = function( elem ) {
|
12
|
+
return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
|
13
|
+
};
|
14
|
+
|
15
|
+
} );
|
@@ -0,0 +1,105 @@
|
|
1
|
+
define( [
|
2
|
+
"../core",
|
3
|
+
"../data/var/dataPriv",
|
4
|
+
"../css/var/isHiddenWithinTree"
|
5
|
+
], function( jQuery, dataPriv, isHiddenWithinTree ) {
|
6
|
+
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
var defaultDisplayMap = {};
|
10
|
+
|
11
|
+
function getDefaultDisplay( elem ) {
|
12
|
+
var temp,
|
13
|
+
doc = elem.ownerDocument,
|
14
|
+
nodeName = elem.nodeName,
|
15
|
+
display = defaultDisplayMap[ nodeName ];
|
16
|
+
|
17
|
+
if ( display ) {
|
18
|
+
return display;
|
19
|
+
}
|
20
|
+
|
21
|
+
temp = doc.body.appendChild( doc.createElement( nodeName ) );
|
22
|
+
display = jQuery.css( temp, "display" );
|
23
|
+
|
24
|
+
temp.parentNode.removeChild( temp );
|
25
|
+
|
26
|
+
if ( display === "none" ) {
|
27
|
+
display = "block";
|
28
|
+
}
|
29
|
+
defaultDisplayMap[ nodeName ] = display;
|
30
|
+
|
31
|
+
return display;
|
32
|
+
}
|
33
|
+
|
34
|
+
function showHide( elements, show ) {
|
35
|
+
var display, elem,
|
36
|
+
values = [],
|
37
|
+
index = 0,
|
38
|
+
length = elements.length;
|
39
|
+
|
40
|
+
// Determine new display value for elements that need to change
|
41
|
+
for ( ; index < length; index++ ) {
|
42
|
+
elem = elements[ index ];
|
43
|
+
if ( !elem.style ) {
|
44
|
+
continue;
|
45
|
+
}
|
46
|
+
|
47
|
+
display = elem.style.display;
|
48
|
+
if ( show ) {
|
49
|
+
|
50
|
+
// Since we force visibility upon cascade-hidden elements, an immediate (and slow)
|
51
|
+
// check is required in this first loop unless we have a nonempty display value (either
|
52
|
+
// inline or about-to-be-restored)
|
53
|
+
if ( display === "none" ) {
|
54
|
+
values[ index ] = dataPriv.get( elem, "display" ) || null;
|
55
|
+
if ( !values[ index ] ) {
|
56
|
+
elem.style.display = "";
|
57
|
+
}
|
58
|
+
}
|
59
|
+
if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
|
60
|
+
values[ index ] = getDefaultDisplay( elem );
|
61
|
+
}
|
62
|
+
} else {
|
63
|
+
if ( display !== "none" ) {
|
64
|
+
values[ index ] = "none";
|
65
|
+
|
66
|
+
// Remember what we're overwriting
|
67
|
+
dataPriv.set( elem, "display", display );
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
// Set the display of the elements in a second loop to avoid constant reflow
|
73
|
+
for ( index = 0; index < length; index++ ) {
|
74
|
+
if ( values[ index ] != null ) {
|
75
|
+
elements[ index ].style.display = values[ index ];
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
return elements;
|
80
|
+
}
|
81
|
+
|
82
|
+
jQuery.fn.extend( {
|
83
|
+
show: function() {
|
84
|
+
return showHide( this, true );
|
85
|
+
},
|
86
|
+
hide: function() {
|
87
|
+
return showHide( this );
|
88
|
+
},
|
89
|
+
toggle: function( state ) {
|
90
|
+
if ( typeof state === "boolean" ) {
|
91
|
+
return state ? this.show() : this.hide();
|
92
|
+
}
|
93
|
+
|
94
|
+
return this.each( function() {
|
95
|
+
if ( isHiddenWithinTree( this ) ) {
|
96
|
+
jQuery( this ).show();
|
97
|
+
} else {
|
98
|
+
jQuery( this ).hide();
|
99
|
+
}
|
100
|
+
} );
|
101
|
+
}
|
102
|
+
} );
|
103
|
+
|
104
|
+
return showHide;
|
105
|
+
} );
|
@@ -0,0 +1,152 @@
|
|
1
|
+
define( [
|
2
|
+
"../core",
|
3
|
+
"../var/document",
|
4
|
+
"../var/documentElement",
|
5
|
+
"../var/support"
|
6
|
+
], function( jQuery, document, documentElement, support ) {
|
7
|
+
|
8
|
+
"use strict";
|
9
|
+
|
10
|
+
( function() {
|
11
|
+
|
12
|
+
// Executing both pixelPosition & boxSizingReliable tests require only one layout
|
13
|
+
// so they're executed at the same time to save the second computation.
|
14
|
+
function computeStyleTests() {
|
15
|
+
|
16
|
+
// This is a singleton, we need to execute it only once
|
17
|
+
if ( !div ) {
|
18
|
+
return;
|
19
|
+
}
|
20
|
+
|
21
|
+
container.style.cssText = "position:absolute;left:-11111px;width:60px;" +
|
22
|
+
"margin-top:1px;padding:0;border:0";
|
23
|
+
div.style.cssText =
|
24
|
+
"position:relative;display:block;box-sizing:border-box;overflow:scroll;" +
|
25
|
+
"margin:auto;border:1px;padding:1px;" +
|
26
|
+
"width:60%;top:1%";
|
27
|
+
documentElement.appendChild( container ).appendChild( div );
|
28
|
+
|
29
|
+
var divStyle = window.getComputedStyle( div );
|
30
|
+
pixelPositionVal = divStyle.top !== "1%";
|
31
|
+
|
32
|
+
// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
|
33
|
+
reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12;
|
34
|
+
|
35
|
+
// Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3
|
36
|
+
// Some styles come back with percentage values, even though they shouldn't
|
37
|
+
div.style.right = "60%";
|
38
|
+
pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36;
|
39
|
+
|
40
|
+
// Support: IE 9 - 11 only
|
41
|
+
// Detect misreporting of content dimensions for box-sizing:border-box elements
|
42
|
+
boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36;
|
43
|
+
|
44
|
+
// Support: IE 9 only
|
45
|
+
// Detect overflow:scroll screwiness (gh-3699)
|
46
|
+
// Support: Chrome <=64
|
47
|
+
// Don't get tricked when zoom affects offsetWidth (gh-4029)
|
48
|
+
div.style.position = "absolute";
|
49
|
+
scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12;
|
50
|
+
|
51
|
+
documentElement.removeChild( container );
|
52
|
+
|
53
|
+
// Nullify the div so it wouldn't be stored in the memory and
|
54
|
+
// it will also be a sign that checks already performed
|
55
|
+
div = null;
|
56
|
+
}
|
57
|
+
|
58
|
+
function roundPixelMeasures( measure ) {
|
59
|
+
return Math.round( parseFloat( measure ) );
|
60
|
+
}
|
61
|
+
|
62
|
+
var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal,
|
63
|
+
reliableTrDimensionsVal, reliableMarginLeftVal,
|
64
|
+
container = document.createElement( "div" ),
|
65
|
+
div = document.createElement( "div" );
|
66
|
+
|
67
|
+
// Finish early in limited (non-browser) environments
|
68
|
+
if ( !div.style ) {
|
69
|
+
return;
|
70
|
+
}
|
71
|
+
|
72
|
+
// Support: IE <=9 - 11 only
|
73
|
+
// Style of cloned element affects source element cloned (trac-8908)
|
74
|
+
div.style.backgroundClip = "content-box";
|
75
|
+
div.cloneNode( true ).style.backgroundClip = "";
|
76
|
+
support.clearCloneStyle = div.style.backgroundClip === "content-box";
|
77
|
+
|
78
|
+
jQuery.extend( support, {
|
79
|
+
boxSizingReliable: function() {
|
80
|
+
computeStyleTests();
|
81
|
+
return boxSizingReliableVal;
|
82
|
+
},
|
83
|
+
pixelBoxStyles: function() {
|
84
|
+
computeStyleTests();
|
85
|
+
return pixelBoxStylesVal;
|
86
|
+
},
|
87
|
+
pixelPosition: function() {
|
88
|
+
computeStyleTests();
|
89
|
+
return pixelPositionVal;
|
90
|
+
},
|
91
|
+
reliableMarginLeft: function() {
|
92
|
+
computeStyleTests();
|
93
|
+
return reliableMarginLeftVal;
|
94
|
+
},
|
95
|
+
scrollboxSize: function() {
|
96
|
+
computeStyleTests();
|
97
|
+
return scrollboxSizeVal;
|
98
|
+
},
|
99
|
+
|
100
|
+
// Support: IE 9 - 11+, Edge 15 - 18+
|
101
|
+
// IE/Edge misreport `getComputedStyle` of table rows with width/height
|
102
|
+
// set in CSS while `offset*` properties report correct values.
|
103
|
+
// Behavior in IE 9 is more subtle than in newer versions & it passes
|
104
|
+
// some versions of this test; make sure not to make it pass there!
|
105
|
+
//
|
106
|
+
// Support: Firefox 70+
|
107
|
+
// Only Firefox includes border widths
|
108
|
+
// in computed dimensions. (gh-4529)
|
109
|
+
reliableTrDimensions: function() {
|
110
|
+
var table, tr, trChild, trStyle;
|
111
|
+
if ( reliableTrDimensionsVal == null ) {
|
112
|
+
table = document.createElement( "table" );
|
113
|
+
tr = document.createElement( "tr" );
|
114
|
+
trChild = document.createElement( "div" );
|
115
|
+
|
116
|
+
table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate";
|
117
|
+
tr.style.cssText = "border:1px solid";
|
118
|
+
|
119
|
+
// Support: Chrome 86+
|
120
|
+
// Height set through cssText does not get applied.
|
121
|
+
// Computed height then comes back as 0.
|
122
|
+
tr.style.height = "1px";
|
123
|
+
trChild.style.height = "9px";
|
124
|
+
|
125
|
+
// Support: Android 8 Chrome 86+
|
126
|
+
// In our bodyBackground.html iframe,
|
127
|
+
// display for all div elements is set to "inline",
|
128
|
+
// which causes a problem only in Android 8 Chrome 86.
|
129
|
+
// Ensuring the div is display: block
|
130
|
+
// gets around this issue.
|
131
|
+
trChild.style.display = "block";
|
132
|
+
|
133
|
+
documentElement
|
134
|
+
.appendChild( table )
|
135
|
+
.appendChild( tr )
|
136
|
+
.appendChild( trChild );
|
137
|
+
|
138
|
+
trStyle = window.getComputedStyle( tr );
|
139
|
+
reliableTrDimensionsVal = ( parseInt( trStyle.height, 10 ) +
|
140
|
+
parseInt( trStyle.borderTopWidth, 10 ) +
|
141
|
+
parseInt( trStyle.borderBottomWidth, 10 ) ) === tr.offsetHeight;
|
142
|
+
|
143
|
+
documentElement.removeChild( table );
|
144
|
+
}
|
145
|
+
return reliableTrDimensionsVal;
|
146
|
+
}
|
147
|
+
} );
|
148
|
+
} )();
|
149
|
+
|
150
|
+
return support;
|
151
|
+
|
152
|
+
} );
|
@@ -0,0 +1,17 @@
|
|
1
|
+
define( function() {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
return function( elem ) {
|
5
|
+
|
6
|
+
// Support: IE <=11 only, Firefox <=30 (trac-15098, trac-14150)
|
7
|
+
// IE throws on elements created in popups
|
8
|
+
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
|
9
|
+
var view = elem.ownerDocument.defaultView;
|
10
|
+
|
11
|
+
if ( !view || !view.opener ) {
|
12
|
+
view = window;
|
13
|
+
}
|
14
|
+
|
15
|
+
return view.getComputedStyle( elem );
|
16
|
+
};
|
17
|
+
} );
|
@@ -0,0 +1,34 @@
|
|
1
|
+
define( [
|
2
|
+
"../../core",
|
3
|
+
"../../core/isAttached"
|
4
|
+
|
5
|
+
// css is assumed
|
6
|
+
], function( jQuery, isAttached ) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
// isHiddenWithinTree reports if an element has a non-"none" display style (inline and/or
|
10
|
+
// through the CSS cascade), which is useful in deciding whether or not to make it visible.
|
11
|
+
// It differs from the :hidden selector (jQuery.expr.pseudos.hidden) in two important ways:
|
12
|
+
// * A hidden ancestor does not force an element to be classified as hidden.
|
13
|
+
// * Being disconnected from the document does not force an element to be classified as hidden.
|
14
|
+
// These differences improve the behavior of .toggle() et al. when applied to elements that are
|
15
|
+
// detached or contained within hidden ancestors (gh-2404, gh-2863).
|
16
|
+
return function( elem, el ) {
|
17
|
+
|
18
|
+
// isHiddenWithinTree might be called from jQuery#filter function;
|
19
|
+
// in that case, element will be second argument
|
20
|
+
elem = el || elem;
|
21
|
+
|
22
|
+
// Inline style trumps all
|
23
|
+
return elem.style.display === "none" ||
|
24
|
+
elem.style.display === "" &&
|
25
|
+
|
26
|
+
// Otherwise, check computed style
|
27
|
+
// Support: Firefox <=43 - 45
|
28
|
+
// Disconnected elements can have computed display: none, so first confirm that elem is
|
29
|
+
// in the document.
|
30
|
+
isAttached( elem ) &&
|
31
|
+
|
32
|
+
jQuery.css( elem, "display" ) === "none";
|
33
|
+
};
|
34
|
+
} );
|
@@ -0,0 +1,26 @@
|
|
1
|
+
define( function() {
|
2
|
+
|
3
|
+
"use strict";
|
4
|
+
|
5
|
+
// A method for quickly swapping in/out CSS properties to get correct calculations.
|
6
|
+
return function( elem, options, callback ) {
|
7
|
+
var ret, name,
|
8
|
+
old = {};
|
9
|
+
|
10
|
+
// Remember the old values, and insert the new ones
|
11
|
+
for ( name in options ) {
|
12
|
+
old[ name ] = elem.style[ name ];
|
13
|
+
elem.style[ name ] = options[ name ];
|
14
|
+
}
|
15
|
+
|
16
|
+
ret = callback.call( elem );
|
17
|
+
|
18
|
+
// Revert the old values
|
19
|
+
for ( name in options ) {
|
20
|
+
elem.style[ name ] = old[ name ];
|
21
|
+
}
|
22
|
+
|
23
|
+
return ret;
|
24
|
+
};
|
25
|
+
|
26
|
+
} );
|