govuk_publishing_components 28.9.2 → 29.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/config/govuk_publishing_components_manifest.js +15 -3
- data/app/assets/javascripts/govuk_publishing_components/dependencies.js +2 -5
- data/app/assets/javascripts/govuk_publishing_components/modules.js +15 -18
- data/app/assets/javascripts/govuk_publishing_components/{rum-loader.js.erb → rum-loader.js} +13 -10
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +1 -0
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +7 -1
- data/app/views/govuk_publishing_components/components/docs/big_number.yml +3 -3
- data/app/views/govuk_publishing_components/components/docs/breadcrumbs.yml +3 -3
- data/app/views/govuk_publishing_components/components/docs/button.yml +2 -2
- data/app/views/govuk_publishing_components/components/docs/checkboxes.yml +5 -5
- data/app/views/govuk_publishing_components/components/docs/contents_list.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/contextual_guidance.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/cookie_banner.yml +2 -2
- data/app/views/govuk_publishing_components/components/docs/date_input.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/details.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/devolved_nations.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/document_list.yml +2 -2
- data/app/views/govuk_publishing_components/components/docs/error_alert.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/error_summary.yml +2 -2
- data/app/views/govuk_publishing_components/components/docs/feedback.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/fieldset.yml +4 -4
- data/app/views/govuk_publishing_components/components/docs/heading.yml +4 -4
- data/app/views/govuk_publishing_components/components/docs/hint.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/input.yml +3 -3
- data/app/views/govuk_publishing_components/components/docs/inset_text.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/label.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +2 -2
- data/app/views/govuk_publishing_components/components/docs/lead_paragraph.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/metadata.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/notice.yml +2 -2
- data/app/views/govuk_publishing_components/components/docs/print_link.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/search.yml +4 -4
- data/app/views/govuk_publishing_components/components/docs/select.yml +5 -5
- data/app/views/govuk_publishing_components/components/docs/show_password.yml +3 -3
- data/app/views/govuk_publishing_components/components/docs/signup_link.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/single_page_notification_button.yml +2 -2
- data/app/views/govuk_publishing_components/components/docs/step_by_step_nav.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +3 -3
- data/app/views/govuk_publishing_components/components/docs/subscription_links.yml +3 -3
- data/app/views/govuk_publishing_components/components/docs/success_alert.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/table.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/textarea.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/title.yml +1 -1
- data/config/initializers/assets.rb +15 -45
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +10 -117
- data/node_modules/jquery/AUTHORS.txt +0 -266
- data/node_modules/jquery/LICENSE.txt +0 -36
- data/node_modules/jquery/README.md +0 -65
- data/node_modules/jquery/bower.json +0 -14
- data/node_modules/jquery/dist/jquery.js +0 -11008
- data/node_modules/jquery/dist/jquery.min.js +0 -5
- data/node_modules/jquery/dist/jquery.min.map +0 -1
- data/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
- data/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2143
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
- data/node_modules/jquery/package.json +0 -85
- data/node_modules/jquery/src/ajax/jsonp.js +0 -100
- data/node_modules/jquery/src/ajax/load.js +0 -83
- data/node_modules/jquery/src/ajax/parseJSON.js +0 -53
- data/node_modules/jquery/src/ajax/parseXML.js +0 -31
- data/node_modules/jquery/src/ajax/script.js +0 -95
- data/node_modules/jquery/src/ajax/var/location.js +0 -3
- data/node_modules/jquery/src/ajax/var/nonce.js +0 -5
- data/node_modules/jquery/src/ajax/var/rquery.js +0 -3
- data/node_modules/jquery/src/ajax/xhr.js +0 -229
- data/node_modules/jquery/src/ajax.js +0 -842
- data/node_modules/jquery/src/attributes/attr.js +0 -281
- data/node_modules/jquery/src/attributes/classes.js +0 -174
- data/node_modules/jquery/src/attributes/prop.js +0 -156
- data/node_modules/jquery/src/attributes/support.js +0 -70
- data/node_modules/jquery/src/attributes/val.js +0 -191
- data/node_modules/jquery/src/attributes.js +0 -11
- data/node_modules/jquery/src/callbacks.js +0 -232
- data/node_modules/jquery/src/core/access.js +0 -65
- data/node_modules/jquery/src/core/init.js +0 -140
- data/node_modules/jquery/src/core/parseHTML.js +0 -41
- data/node_modules/jquery/src/core/ready.js +0 -163
- data/node_modules/jquery/src/core/var/rsingleTag.js +0 -5
- data/node_modules/jquery/src/core.js +0 -529
- data/node_modules/jquery/src/css/addGetHookIf.js +0 -24
- data/node_modules/jquery/src/css/adjustCSS.js +0 -65
- data/node_modules/jquery/src/css/curCSS.js +0 -137
- data/node_modules/jquery/src/css/defaultDisplay.js +0 -72
- data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -42
- data/node_modules/jquery/src/css/showHide.js +0 -45
- data/node_modules/jquery/src/css/support.js +0 -184
- data/node_modules/jquery/src/css/var/cssExpand.js +0 -3
- data/node_modules/jquery/src/css/var/isHidden.js +0 -16
- data/node_modules/jquery/src/css/var/rmargin.js +0 -3
- data/node_modules/jquery/src/css/var/rnumnonpx.js +0 -5
- data/node_modules/jquery/src/css/var/swap.js +0 -24
- data/node_modules/jquery/src/css.js +0 -563
- data/node_modules/jquery/src/data/support.js +0 -23
- data/node_modules/jquery/src/data/var/acceptData.js +0 -20
- data/node_modules/jquery/src/data.js +0 -342
- data/node_modules/jquery/src/deferred.js +0 -159
- data/node_modules/jquery/src/deprecated.js +0 -34
- data/node_modules/jquery/src/dimensions.js +0 -56
- data/node_modules/jquery/src/effects/Tween.js +0 -121
- data/node_modules/jquery/src/effects/animatedSelector.js +0 -13
- data/node_modules/jquery/src/effects/support.js +0 -58
- data/node_modules/jquery/src/effects.js +0 -640
- data/node_modules/jquery/src/event/ajax.js +0 -20
- data/node_modules/jquery/src/event/alias.js +0 -25
- data/node_modules/jquery/src/event/support.js +0 -28
- data/node_modules/jquery/src/event.js +0 -1134
- data/node_modules/jquery/src/exports/amd.js +0 -24
- data/node_modules/jquery/src/exports/global.js +0 -26
- data/node_modules/jquery/src/intro.js +0 -44
- data/node_modules/jquery/src/jquery.js +0 -37
- data/node_modules/jquery/src/manipulation/_evalUrl.js +0 -21
- data/node_modules/jquery/src/manipulation/buildFragment.js +0 -157
- data/node_modules/jquery/src/manipulation/createSafeFragment.js +0 -20
- data/node_modules/jquery/src/manipulation/getAll.js +0 -33
- data/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -19
- data/node_modules/jquery/src/manipulation/support.js +0 -72
- data/node_modules/jquery/src/manipulation/var/nodeNames.js +0 -5
- data/node_modules/jquery/src/manipulation/var/rcheckableType.js +0 -3
- data/node_modules/jquery/src/manipulation/var/rleadingWhitespace.js +0 -3
- data/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -3
- data/node_modules/jquery/src/manipulation/var/rtagName.js +0 -3
- data/node_modules/jquery/src/manipulation/wrapMap.js +0 -30
- data/node_modules/jquery/src/manipulation.js +0 -585
- data/node_modules/jquery/src/offset.js +0 -219
- data/node_modules/jquery/src/outro.js +0 -2
- data/node_modules/jquery/src/queue/delay.js +0 -22
- data/node_modules/jquery/src/queue.js +0 -144
- data/node_modules/jquery/src/selector-sizzle.js +0 -14
- data/node_modules/jquery/src/selector.js +0 -1
- data/node_modules/jquery/src/serialize.js +0 -125
- data/node_modules/jquery/src/support.js +0 -63
- data/node_modules/jquery/src/traversing/findFilter.js +0 -100
- data/node_modules/jquery/src/traversing/var/dir.js +0 -20
- data/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -6
- data/node_modules/jquery/src/traversing/var/siblings.js +0 -15
- data/node_modules/jquery/src/traversing.js +0 -179
- data/node_modules/jquery/src/var/class2type.js +0 -5
- data/node_modules/jquery/src/var/concat.js +0 -5
- data/node_modules/jquery/src/var/deletedIds.js +0 -3
- data/node_modules/jquery/src/var/document.js +0 -3
- data/node_modules/jquery/src/var/documentElement.js +0 -5
- data/node_modules/jquery/src/var/hasOwn.js +0 -5
- data/node_modules/jquery/src/var/indexOf.js +0 -5
- data/node_modules/jquery/src/var/pnum.js +0 -3
- data/node_modules/jquery/src/var/push.js +0 -5
- data/node_modules/jquery/src/var/rcssNum.js +0 -7
- data/node_modules/jquery/src/var/rnotwhite.js +0 -3
- data/node_modules/jquery/src/var/slice.js +0 -5
- data/node_modules/jquery/src/var/support.js +0 -5
- data/node_modules/jquery/src/var/toString.js +0 -5
- data/node_modules/jquery/src/wrap.js +0 -77
@@ -1,24 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core"
|
3
|
-
], function( jQuery ) {
|
4
|
-
|
5
|
-
// Register as a named AMD module, since jQuery can be concatenated with other
|
6
|
-
// files that may use define, but not via a proper concatenation script that
|
7
|
-
// understands anonymous AMD modules. A named AMD is safest and most robust
|
8
|
-
// way to register. Lowercase jquery is used because AMD module names are
|
9
|
-
// derived from file names, and jQuery is normally delivered in a lowercase
|
10
|
-
// file name. Do this after creating the global so that if an AMD module wants
|
11
|
-
// to call noConflict to hide this version of jQuery, it will work.
|
12
|
-
|
13
|
-
// Note that for maximum portability, libraries that are not jQuery should
|
14
|
-
// declare themselves as anonymous modules, and avoid setting a global if an
|
15
|
-
// AMD loader is present. jQuery is a special case. For more information, see
|
16
|
-
// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
|
17
|
-
|
18
|
-
if ( typeof define === "function" && define.amd ) {
|
19
|
-
define( "jquery", [], function() {
|
20
|
-
return jQuery;
|
21
|
-
} );
|
22
|
-
}
|
23
|
-
|
24
|
-
} );
|
@@ -1,26 +0,0 @@
|
|
1
|
-
var
|
2
|
-
|
3
|
-
// Map over jQuery in case of overwrite
|
4
|
-
_jQuery = window.jQuery,
|
5
|
-
|
6
|
-
// Map over the $ in case of overwrite
|
7
|
-
_$ = window.$;
|
8
|
-
|
9
|
-
jQuery.noConflict = function( deep ) {
|
10
|
-
if ( window.$ === jQuery ) {
|
11
|
-
window.$ = _$;
|
12
|
-
}
|
13
|
-
|
14
|
-
if ( deep && window.jQuery === jQuery ) {
|
15
|
-
window.jQuery = _jQuery;
|
16
|
-
}
|
17
|
-
|
18
|
-
return jQuery;
|
19
|
-
};
|
20
|
-
|
21
|
-
// Expose jQuery and $ identifiers, even in
|
22
|
-
// AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
|
23
|
-
// and CommonJS for browser emulators (#13566)
|
24
|
-
if ( !noGlobal ) {
|
25
|
-
window.jQuery = window.$ = jQuery;
|
26
|
-
}
|
@@ -1,44 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* jQuery JavaScript Library v@VERSION
|
3
|
-
* http://jquery.com/
|
4
|
-
*
|
5
|
-
* Includes Sizzle.js
|
6
|
-
* http://sizzlejs.com/
|
7
|
-
*
|
8
|
-
* Copyright jQuery Foundation and other contributors
|
9
|
-
* Released under the MIT license
|
10
|
-
* http://jquery.org/license
|
11
|
-
*
|
12
|
-
* Date: @DATE
|
13
|
-
*/
|
14
|
-
|
15
|
-
(function( global, factory ) {
|
16
|
-
|
17
|
-
if ( typeof module === "object" && typeof module.exports === "object" ) {
|
18
|
-
// For CommonJS and CommonJS-like environments where a proper `window`
|
19
|
-
// is present, execute the factory and get jQuery.
|
20
|
-
// For environments that do not have a `window` with a `document`
|
21
|
-
// (such as Node.js), expose a factory as module.exports.
|
22
|
-
// This accentuates the need for the creation of a real `window`.
|
23
|
-
// e.g. var jQuery = require("jquery")(window);
|
24
|
-
// See ticket #14549 for more info.
|
25
|
-
module.exports = global.document ?
|
26
|
-
factory( global, true ) :
|
27
|
-
function( w ) {
|
28
|
-
if ( !w.document ) {
|
29
|
-
throw new Error( "jQuery requires a window with a document" );
|
30
|
-
}
|
31
|
-
return factory( w );
|
32
|
-
};
|
33
|
-
} else {
|
34
|
-
factory( global );
|
35
|
-
}
|
36
|
-
|
37
|
-
// Pass this if window is not defined yet
|
38
|
-
}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
|
39
|
-
|
40
|
-
// Support: Firefox 18+
|
41
|
-
// Can't be in strict mode, several libs including ASP.NET trace
|
42
|
-
// the stack via arguments.caller.callee and Firefox dies if
|
43
|
-
// you try to trace through "use strict" call chains. (#13335)
|
44
|
-
//"use strict";
|
@@ -1,37 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"./core",
|
3
|
-
"./selector",
|
4
|
-
"./traversing",
|
5
|
-
"./callbacks",
|
6
|
-
"./deferred",
|
7
|
-
"./core/ready",
|
8
|
-
"./support",
|
9
|
-
"./data",
|
10
|
-
"./queue",
|
11
|
-
"./queue/delay",
|
12
|
-
"./attributes",
|
13
|
-
"./event",
|
14
|
-
"./event/alias",
|
15
|
-
"./manipulation",
|
16
|
-
"./manipulation/_evalUrl",
|
17
|
-
"./wrap",
|
18
|
-
"./css",
|
19
|
-
"./css/hiddenVisibleSelectors",
|
20
|
-
"./serialize",
|
21
|
-
"./ajax",
|
22
|
-
"./ajax/xhr",
|
23
|
-
"./ajax/script",
|
24
|
-
"./ajax/jsonp",
|
25
|
-
"./ajax/load",
|
26
|
-
"./event/ajax",
|
27
|
-
"./effects",
|
28
|
-
"./effects/animatedSelector",
|
29
|
-
"./offset",
|
30
|
-
"./dimensions",
|
31
|
-
"./deprecated",
|
32
|
-
"./exports/amd"
|
33
|
-
], function( jQuery ) {
|
34
|
-
|
35
|
-
return ( window.jQuery = window.$ = jQuery );
|
36
|
-
|
37
|
-
} );
|
@@ -1,21 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../ajax"
|
3
|
-
], function( jQuery ) {
|
4
|
-
|
5
|
-
jQuery._evalUrl = function( url ) {
|
6
|
-
return jQuery.ajax( {
|
7
|
-
url: url,
|
8
|
-
|
9
|
-
// Make this explicit, since user can override this through ajaxSetup (#11264)
|
10
|
-
type: "GET",
|
11
|
-
dataType: "script",
|
12
|
-
cache: true,
|
13
|
-
async: false,
|
14
|
-
global: false,
|
15
|
-
"throws": true
|
16
|
-
} );
|
17
|
-
};
|
18
|
-
|
19
|
-
return jQuery._evalUrl;
|
20
|
-
|
21
|
-
} );
|
@@ -1,157 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core",
|
3
|
-
"./var/rcheckableType",
|
4
|
-
"./var/rtagName",
|
5
|
-
"./var/rscriptType",
|
6
|
-
"./var/rleadingWhitespace",
|
7
|
-
"./createSafeFragment",
|
8
|
-
"./wrapMap",
|
9
|
-
"./getAll",
|
10
|
-
"./setGlobalEval",
|
11
|
-
"./support"
|
12
|
-
], function( jQuery, rcheckableType, rtagName, rscriptType, rleadingWhitespace,
|
13
|
-
createSafeFragment, wrapMap, getAll, setGlobalEval, support ) {
|
14
|
-
|
15
|
-
var rhtml = /<|&#?\w+;/,
|
16
|
-
rtbody = /<tbody/i;
|
17
|
-
|
18
|
-
function fixDefaultChecked( elem ) {
|
19
|
-
if ( rcheckableType.test( elem.type ) ) {
|
20
|
-
elem.defaultChecked = elem.checked;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
|
24
|
-
function buildFragment( elems, context, scripts, selection, ignored ) {
|
25
|
-
var j, elem, contains,
|
26
|
-
tmp, tag, tbody, wrap,
|
27
|
-
l = elems.length,
|
28
|
-
|
29
|
-
// Ensure a safe fragment
|
30
|
-
safe = createSafeFragment( context ),
|
31
|
-
|
32
|
-
nodes = [],
|
33
|
-
i = 0;
|
34
|
-
|
35
|
-
for ( ; i < l; i++ ) {
|
36
|
-
elem = elems[ i ];
|
37
|
-
|
38
|
-
if ( elem || elem === 0 ) {
|
39
|
-
|
40
|
-
// Add nodes directly
|
41
|
-
if ( jQuery.type( elem ) === "object" ) {
|
42
|
-
jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
|
43
|
-
|
44
|
-
// Convert non-html into a text node
|
45
|
-
} else if ( !rhtml.test( elem ) ) {
|
46
|
-
nodes.push( context.createTextNode( elem ) );
|
47
|
-
|
48
|
-
// Convert html into DOM nodes
|
49
|
-
} else {
|
50
|
-
tmp = tmp || safe.appendChild( context.createElement( "div" ) );
|
51
|
-
|
52
|
-
// Deserialize a standard representation
|
53
|
-
tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
|
54
|
-
wrap = wrapMap[ tag ] || wrapMap._default;
|
55
|
-
|
56
|
-
tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
|
57
|
-
|
58
|
-
// Descend through wrappers to the right content
|
59
|
-
j = wrap[ 0 ];
|
60
|
-
while ( j-- ) {
|
61
|
-
tmp = tmp.lastChild;
|
62
|
-
}
|
63
|
-
|
64
|
-
// Manually add leading whitespace removed by IE
|
65
|
-
if ( !support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
|
66
|
-
nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[ 0 ] ) );
|
67
|
-
}
|
68
|
-
|
69
|
-
// Remove IE's autoinserted <tbody> from table fragments
|
70
|
-
if ( !support.tbody ) {
|
71
|
-
|
72
|
-
// String was a <table>, *may* have spurious <tbody>
|
73
|
-
elem = tag === "table" && !rtbody.test( elem ) ?
|
74
|
-
tmp.firstChild :
|
75
|
-
|
76
|
-
// String was a bare <thead> or <tfoot>
|
77
|
-
wrap[ 1 ] === "<table>" && !rtbody.test( elem ) ?
|
78
|
-
tmp :
|
79
|
-
0;
|
80
|
-
|
81
|
-
j = elem && elem.childNodes.length;
|
82
|
-
while ( j-- ) {
|
83
|
-
if ( jQuery.nodeName( ( tbody = elem.childNodes[ j ] ), "tbody" ) &&
|
84
|
-
!tbody.childNodes.length ) {
|
85
|
-
|
86
|
-
elem.removeChild( tbody );
|
87
|
-
}
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
jQuery.merge( nodes, tmp.childNodes );
|
92
|
-
|
93
|
-
// Fix #12392 for WebKit and IE > 9
|
94
|
-
tmp.textContent = "";
|
95
|
-
|
96
|
-
// Fix #12392 for oldIE
|
97
|
-
while ( tmp.firstChild ) {
|
98
|
-
tmp.removeChild( tmp.firstChild );
|
99
|
-
}
|
100
|
-
|
101
|
-
// Remember the top-level container for proper cleanup
|
102
|
-
tmp = safe.lastChild;
|
103
|
-
}
|
104
|
-
}
|
105
|
-
}
|
106
|
-
|
107
|
-
// Fix #11356: Clear elements from fragment
|
108
|
-
if ( tmp ) {
|
109
|
-
safe.removeChild( tmp );
|
110
|
-
}
|
111
|
-
|
112
|
-
// Reset defaultChecked for any radios and checkboxes
|
113
|
-
// about to be appended to the DOM in IE 6/7 (#8060)
|
114
|
-
if ( !support.appendChecked ) {
|
115
|
-
jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked );
|
116
|
-
}
|
117
|
-
|
118
|
-
i = 0;
|
119
|
-
while ( ( elem = nodes[ i++ ] ) ) {
|
120
|
-
|
121
|
-
// Skip elements already in the context collection (trac-4087)
|
122
|
-
if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
|
123
|
-
if ( ignored ) {
|
124
|
-
ignored.push( elem );
|
125
|
-
}
|
126
|
-
|
127
|
-
continue;
|
128
|
-
}
|
129
|
-
|
130
|
-
contains = jQuery.contains( elem.ownerDocument, elem );
|
131
|
-
|
132
|
-
// Append to fragment
|
133
|
-
tmp = getAll( safe.appendChild( elem ), "script" );
|
134
|
-
|
135
|
-
// Preserve script evaluation history
|
136
|
-
if ( contains ) {
|
137
|
-
setGlobalEval( tmp );
|
138
|
-
}
|
139
|
-
|
140
|
-
// Capture executables
|
141
|
-
if ( scripts ) {
|
142
|
-
j = 0;
|
143
|
-
while ( ( elem = tmp[ j++ ] ) ) {
|
144
|
-
if ( rscriptType.test( elem.type || "" ) ) {
|
145
|
-
scripts.push( elem );
|
146
|
-
}
|
147
|
-
}
|
148
|
-
}
|
149
|
-
}
|
150
|
-
|
151
|
-
tmp = null;
|
152
|
-
|
153
|
-
return safe;
|
154
|
-
}
|
155
|
-
|
156
|
-
return buildFragment;
|
157
|
-
} );
|
@@ -1,20 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"./var/nodeNames"
|
3
|
-
], function( nodeNames ) {
|
4
|
-
|
5
|
-
function createSafeFragment( document ) {
|
6
|
-
var list = nodeNames.split( "|" ),
|
7
|
-
safeFrag = document.createDocumentFragment();
|
8
|
-
|
9
|
-
if ( safeFrag.createElement ) {
|
10
|
-
while ( list.length ) {
|
11
|
-
safeFrag.createElement(
|
12
|
-
list.pop()
|
13
|
-
);
|
14
|
-
}
|
15
|
-
}
|
16
|
-
return safeFrag;
|
17
|
-
}
|
18
|
-
|
19
|
-
return createSafeFragment;
|
20
|
-
} );
|
@@ -1,33 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core"
|
3
|
-
], function( jQuery ) {
|
4
|
-
|
5
|
-
function getAll( context, tag ) {
|
6
|
-
var elems, elem,
|
7
|
-
i = 0,
|
8
|
-
found = typeof context.getElementsByTagName !== "undefined" ?
|
9
|
-
context.getElementsByTagName( tag || "*" ) :
|
10
|
-
typeof context.querySelectorAll !== "undefined" ?
|
11
|
-
context.querySelectorAll( tag || "*" ) :
|
12
|
-
undefined;
|
13
|
-
|
14
|
-
if ( !found ) {
|
15
|
-
for ( found = [], elems = context.childNodes || context;
|
16
|
-
( elem = elems[ i ] ) != null;
|
17
|
-
i++
|
18
|
-
) {
|
19
|
-
if ( !tag || jQuery.nodeName( elem, tag ) ) {
|
20
|
-
found.push( elem );
|
21
|
-
} else {
|
22
|
-
jQuery.merge( found, getAll( elem, tag ) );
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
|
28
|
-
jQuery.merge( [ context ], found ) :
|
29
|
-
found;
|
30
|
-
}
|
31
|
-
|
32
|
-
return getAll;
|
33
|
-
} );
|
@@ -1,19 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core"
|
3
|
-
], function( jQuery ) {
|
4
|
-
|
5
|
-
// Mark scripts as having already been evaluated
|
6
|
-
function setGlobalEval( elems, refElements ) {
|
7
|
-
var elem,
|
8
|
-
i = 0;
|
9
|
-
for ( ; ( elem = elems[ i ] ) != null; i++ ) {
|
10
|
-
jQuery._data(
|
11
|
-
elem,
|
12
|
-
"globalEval",
|
13
|
-
!refElements || jQuery._data( refElements[ i ], "globalEval" )
|
14
|
-
);
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
return setGlobalEval;
|
19
|
-
} );
|
@@ -1,72 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core",
|
3
|
-
"../var/document",
|
4
|
-
"../var/support"
|
5
|
-
], function( jQuery, document, support ) {
|
6
|
-
|
7
|
-
( function() {
|
8
|
-
var div = document.createElement( "div" ),
|
9
|
-
fragment = document.createDocumentFragment(),
|
10
|
-
input = document.createElement( "input" );
|
11
|
-
|
12
|
-
// Setup
|
13
|
-
div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
|
14
|
-
|
15
|
-
// IE strips leading whitespace when .innerHTML is used
|
16
|
-
support.leadingWhitespace = div.firstChild.nodeType === 3;
|
17
|
-
|
18
|
-
// Make sure that tbody elements aren't automatically inserted
|
19
|
-
// IE will insert them into empty tables
|
20
|
-
support.tbody = !div.getElementsByTagName( "tbody" ).length;
|
21
|
-
|
22
|
-
// Make sure that link elements get serialized correctly by innerHTML
|
23
|
-
// This requires a wrapper element in IE
|
24
|
-
support.htmlSerialize = !!div.getElementsByTagName( "link" ).length;
|
25
|
-
|
26
|
-
// Makes sure cloning an html5 element does not cause problems
|
27
|
-
// Where outerHTML is undefined, this still works
|
28
|
-
support.html5Clone =
|
29
|
-
document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav></:nav>";
|
30
|
-
|
31
|
-
// Check if a disconnected checkbox will retain its checked
|
32
|
-
// value of true after appended to the DOM (IE6/7)
|
33
|
-
input.type = "checkbox";
|
34
|
-
input.checked = true;
|
35
|
-
fragment.appendChild( input );
|
36
|
-
support.appendChecked = input.checked;
|
37
|
-
|
38
|
-
// Make sure textarea (and checkbox) defaultValue is properly cloned
|
39
|
-
// Support: IE6-IE11+
|
40
|
-
div.innerHTML = "<textarea>x</textarea>";
|
41
|
-
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
|
42
|
-
|
43
|
-
// #11217 - WebKit loses check when the name is after the checked attribute
|
44
|
-
fragment.appendChild( div );
|
45
|
-
|
46
|
-
// Support: Windows Web Apps (WWA)
|
47
|
-
// `name` and `type` must use .setAttribute for WWA (#14901)
|
48
|
-
input = document.createElement( "input" );
|
49
|
-
input.setAttribute( "type", "radio" );
|
50
|
-
input.setAttribute( "checked", "checked" );
|
51
|
-
input.setAttribute( "name", "t" );
|
52
|
-
|
53
|
-
div.appendChild( input );
|
54
|
-
|
55
|
-
// Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
|
56
|
-
// old WebKit doesn't clone checked state correctly in fragments
|
57
|
-
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
|
58
|
-
|
59
|
-
// Support: IE<9
|
60
|
-
// Cloned elements keep attachEvent handlers, we use addEventListener on IE9+
|
61
|
-
support.noCloneEvent = !!div.addEventListener;
|
62
|
-
|
63
|
-
// Support: IE<9
|
64
|
-
// Since attributes and properties are the same in IE,
|
65
|
-
// cleanData must set properties to undefined rather than use removeAttribute
|
66
|
-
div[ jQuery.expando ] = 1;
|
67
|
-
support.attributes = !div.getAttribute( jQuery.expando );
|
68
|
-
} )();
|
69
|
-
|
70
|
-
return support;
|
71
|
-
|
72
|
-
} );
|
@@ -1,30 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"./support"
|
3
|
-
], function( support ) {
|
4
|
-
|
5
|
-
// We have to close these tags to support XHTML (#13200)
|
6
|
-
var wrapMap = {
|
7
|
-
option: [ 1, "<select multiple='multiple'>", "</select>" ],
|
8
|
-
legend: [ 1, "<fieldset>", "</fieldset>" ],
|
9
|
-
area: [ 1, "<map>", "</map>" ],
|
10
|
-
|
11
|
-
// Support: IE8
|
12
|
-
param: [ 1, "<object>", "</object>" ],
|
13
|
-
thead: [ 1, "<table>", "</table>" ],
|
14
|
-
tr: [ 2, "<table><tbody>", "</tbody></table>" ],
|
15
|
-
col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
|
16
|
-
td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
|
17
|
-
|
18
|
-
// IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,
|
19
|
-
// unless wrapped in a div with non-breaking characters in front of it.
|
20
|
-
_default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>" ]
|
21
|
-
};
|
22
|
-
|
23
|
-
// Support: IE8-IE9
|
24
|
-
wrapMap.optgroup = wrapMap.option;
|
25
|
-
|
26
|
-
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
|
27
|
-
wrapMap.th = wrapMap.td;
|
28
|
-
|
29
|
-
return wrapMap;
|
30
|
-
} );
|