govuk_publishing_components 28.9.1 → 29.0.1
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/analytics/cross-domain-tracking.js +55 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics.js +3 -0
- 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/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
- data/app/views/govuk_publishing_components/components/_cards.html.erb +9 -25
- data/app/views/govuk_publishing_components/components/_input.html.erb +3 -0
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +7 -1
- data/app/views/govuk_publishing_components/components/_lead_paragraph.html.erb +0 -1
- data/app/views/govuk_publishing_components/components/_summary_list.html.erb +27 -22
- data/app/views/govuk_publishing_components/components/docs/attachment.yml +1 -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/cards.yml +12 -6
- 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 +18 -15
- 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/list.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/summary_list.yml +2 -7
- 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/presenters/attachment.rb +4 -7
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +13 -119
- 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,20 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../../core"
|
3
|
-
], function( jQuery ) {
|
4
|
-
|
5
|
-
return function( elem, dir, until ) {
|
6
|
-
var matched = [],
|
7
|
-
truncate = until !== undefined;
|
8
|
-
|
9
|
-
while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
|
10
|
-
if ( elem.nodeType === 1 ) {
|
11
|
-
if ( truncate && jQuery( elem ).is( until ) ) {
|
12
|
-
break;
|
13
|
-
}
|
14
|
-
matched.push( elem );
|
15
|
-
}
|
16
|
-
}
|
17
|
-
return matched;
|
18
|
-
};
|
19
|
-
|
20
|
-
} );
|
@@ -1,179 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"./core",
|
3
|
-
"./traversing/var/dir",
|
4
|
-
"./traversing/var/siblings",
|
5
|
-
"./traversing/var/rneedsContext",
|
6
|
-
"./core/init",
|
7
|
-
"./traversing/findFilter",
|
8
|
-
"./selector"
|
9
|
-
], function( jQuery, dir, siblings, rneedsContext ) {
|
10
|
-
|
11
|
-
var rparentsprev = /^(?:parents|prev(?:Until|All))/,
|
12
|
-
|
13
|
-
// methods guaranteed to produce a unique set when starting from a unique set
|
14
|
-
guaranteedUnique = {
|
15
|
-
children: true,
|
16
|
-
contents: true,
|
17
|
-
next: true,
|
18
|
-
prev: true
|
19
|
-
};
|
20
|
-
|
21
|
-
jQuery.fn.extend( {
|
22
|
-
has: function( target ) {
|
23
|
-
var i,
|
24
|
-
targets = jQuery( target, this ),
|
25
|
-
len = targets.length;
|
26
|
-
|
27
|
-
return this.filter( function() {
|
28
|
-
for ( i = 0; i < len; i++ ) {
|
29
|
-
if ( jQuery.contains( this, targets[ i ] ) ) {
|
30
|
-
return true;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
} );
|
34
|
-
},
|
35
|
-
|
36
|
-
closest: function( selectors, context ) {
|
37
|
-
var cur,
|
38
|
-
i = 0,
|
39
|
-
l = this.length,
|
40
|
-
matched = [],
|
41
|
-
pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
|
42
|
-
jQuery( selectors, context || this.context ) :
|
43
|
-
0;
|
44
|
-
|
45
|
-
for ( ; i < l; i++ ) {
|
46
|
-
for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
|
47
|
-
|
48
|
-
// Always skip document fragments
|
49
|
-
if ( cur.nodeType < 11 && ( pos ?
|
50
|
-
pos.index( cur ) > -1 :
|
51
|
-
|
52
|
-
// Don't pass non-elements to Sizzle
|
53
|
-
cur.nodeType === 1 &&
|
54
|
-
jQuery.find.matchesSelector( cur, selectors ) ) ) {
|
55
|
-
|
56
|
-
matched.push( cur );
|
57
|
-
break;
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
|
62
|
-
return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
|
63
|
-
},
|
64
|
-
|
65
|
-
// Determine the position of an element within
|
66
|
-
// the matched set of elements
|
67
|
-
index: function( elem ) {
|
68
|
-
|
69
|
-
// No argument, return index in parent
|
70
|
-
if ( !elem ) {
|
71
|
-
return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
|
72
|
-
}
|
73
|
-
|
74
|
-
// index in selector
|
75
|
-
if ( typeof elem === "string" ) {
|
76
|
-
return jQuery.inArray( this[ 0 ], jQuery( elem ) );
|
77
|
-
}
|
78
|
-
|
79
|
-
// Locate the position of the desired element
|
80
|
-
return jQuery.inArray(
|
81
|
-
|
82
|
-
// If it receives a jQuery object, the first element is used
|
83
|
-
elem.jquery ? elem[ 0 ] : elem, this );
|
84
|
-
},
|
85
|
-
|
86
|
-
add: function( selector, context ) {
|
87
|
-
return this.pushStack(
|
88
|
-
jQuery.uniqueSort(
|
89
|
-
jQuery.merge( this.get(), jQuery( selector, context ) )
|
90
|
-
)
|
91
|
-
);
|
92
|
-
},
|
93
|
-
|
94
|
-
addBack: function( selector ) {
|
95
|
-
return this.add( selector == null ?
|
96
|
-
this.prevObject : this.prevObject.filter( selector )
|
97
|
-
);
|
98
|
-
}
|
99
|
-
} );
|
100
|
-
|
101
|
-
function sibling( cur, dir ) {
|
102
|
-
do {
|
103
|
-
cur = cur[ dir ];
|
104
|
-
} while ( cur && cur.nodeType !== 1 );
|
105
|
-
|
106
|
-
return cur;
|
107
|
-
}
|
108
|
-
|
109
|
-
jQuery.each( {
|
110
|
-
parent: function( elem ) {
|
111
|
-
var parent = elem.parentNode;
|
112
|
-
return parent && parent.nodeType !== 11 ? parent : null;
|
113
|
-
},
|
114
|
-
parents: function( elem ) {
|
115
|
-
return dir( elem, "parentNode" );
|
116
|
-
},
|
117
|
-
parentsUntil: function( elem, i, until ) {
|
118
|
-
return dir( elem, "parentNode", until );
|
119
|
-
},
|
120
|
-
next: function( elem ) {
|
121
|
-
return sibling( elem, "nextSibling" );
|
122
|
-
},
|
123
|
-
prev: function( elem ) {
|
124
|
-
return sibling( elem, "previousSibling" );
|
125
|
-
},
|
126
|
-
nextAll: function( elem ) {
|
127
|
-
return dir( elem, "nextSibling" );
|
128
|
-
},
|
129
|
-
prevAll: function( elem ) {
|
130
|
-
return dir( elem, "previousSibling" );
|
131
|
-
},
|
132
|
-
nextUntil: function( elem, i, until ) {
|
133
|
-
return dir( elem, "nextSibling", until );
|
134
|
-
},
|
135
|
-
prevUntil: function( elem, i, until ) {
|
136
|
-
return dir( elem, "previousSibling", until );
|
137
|
-
},
|
138
|
-
siblings: function( elem ) {
|
139
|
-
return siblings( ( elem.parentNode || {} ).firstChild, elem );
|
140
|
-
},
|
141
|
-
children: function( elem ) {
|
142
|
-
return siblings( elem.firstChild );
|
143
|
-
},
|
144
|
-
contents: function( elem ) {
|
145
|
-
return jQuery.nodeName( elem, "iframe" ) ?
|
146
|
-
elem.contentDocument || elem.contentWindow.document :
|
147
|
-
jQuery.merge( [], elem.childNodes );
|
148
|
-
}
|
149
|
-
}, function( name, fn ) {
|
150
|
-
jQuery.fn[ name ] = function( until, selector ) {
|
151
|
-
var ret = jQuery.map( this, fn, until );
|
152
|
-
|
153
|
-
if ( name.slice( -5 ) !== "Until" ) {
|
154
|
-
selector = until;
|
155
|
-
}
|
156
|
-
|
157
|
-
if ( selector && typeof selector === "string" ) {
|
158
|
-
ret = jQuery.filter( selector, ret );
|
159
|
-
}
|
160
|
-
|
161
|
-
if ( this.length > 1 ) {
|
162
|
-
|
163
|
-
// Remove duplicates
|
164
|
-
if ( !guaranteedUnique[ name ] ) {
|
165
|
-
ret = jQuery.uniqueSort( ret );
|
166
|
-
}
|
167
|
-
|
168
|
-
// Reverse order for parents* and prev-derivatives
|
169
|
-
if ( rparentsprev.test( name ) ) {
|
170
|
-
ret = ret.reverse();
|
171
|
-
}
|
172
|
-
}
|
173
|
-
|
174
|
-
return this.pushStack( ret );
|
175
|
-
};
|
176
|
-
} );
|
177
|
-
|
178
|
-
return jQuery;
|
179
|
-
} );
|
@@ -1,77 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"./core",
|
3
|
-
"./core/init",
|
4
|
-
"./manipulation", // clone
|
5
|
-
"./traversing" // parent, contents
|
6
|
-
], function( jQuery ) {
|
7
|
-
|
8
|
-
jQuery.fn.extend( {
|
9
|
-
wrapAll: function( html ) {
|
10
|
-
if ( jQuery.isFunction( html ) ) {
|
11
|
-
return this.each( function( i ) {
|
12
|
-
jQuery( this ).wrapAll( html.call( this, i ) );
|
13
|
-
} );
|
14
|
-
}
|
15
|
-
|
16
|
-
if ( this[ 0 ] ) {
|
17
|
-
|
18
|
-
// The elements to wrap the target around
|
19
|
-
var wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
|
20
|
-
|
21
|
-
if ( this[ 0 ].parentNode ) {
|
22
|
-
wrap.insertBefore( this[ 0 ] );
|
23
|
-
}
|
24
|
-
|
25
|
-
wrap.map( function() {
|
26
|
-
var elem = this;
|
27
|
-
|
28
|
-
while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
|
29
|
-
elem = elem.firstChild;
|
30
|
-
}
|
31
|
-
|
32
|
-
return elem;
|
33
|
-
} ).append( this );
|
34
|
-
}
|
35
|
-
|
36
|
-
return this;
|
37
|
-
},
|
38
|
-
|
39
|
-
wrapInner: function( html ) {
|
40
|
-
if ( jQuery.isFunction( html ) ) {
|
41
|
-
return this.each( function( i ) {
|
42
|
-
jQuery( this ).wrapInner( html.call( this, i ) );
|
43
|
-
} );
|
44
|
-
}
|
45
|
-
|
46
|
-
return this.each( function() {
|
47
|
-
var self = jQuery( this ),
|
48
|
-
contents = self.contents();
|
49
|
-
|
50
|
-
if ( contents.length ) {
|
51
|
-
contents.wrapAll( html );
|
52
|
-
|
53
|
-
} else {
|
54
|
-
self.append( html );
|
55
|
-
}
|
56
|
-
} );
|
57
|
-
},
|
58
|
-
|
59
|
-
wrap: function( html ) {
|
60
|
-
var isFunction = jQuery.isFunction( html );
|
61
|
-
|
62
|
-
return this.each( function( i ) {
|
63
|
-
jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
|
64
|
-
} );
|
65
|
-
},
|
66
|
-
|
67
|
-
unwrap: function() {
|
68
|
-
return this.parent().each( function() {
|
69
|
-
if ( !jQuery.nodeName( this, "body" ) ) {
|
70
|
-
jQuery( this ).replaceWith( this.childNodes );
|
71
|
-
}
|
72
|
-
} ).end();
|
73
|
-
}
|
74
|
-
} );
|
75
|
-
|
76
|
-
return jQuery;
|
77
|
-
} );
|