govuk_publishing_components 28.9.2 → 29.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/config/govuk_publishing_components_manifest.js +15 -3
  4. data/app/assets/javascripts/govuk_publishing_components/dependencies.js +2 -5
  5. data/app/assets/javascripts/govuk_publishing_components/modules.js +15 -18
  6. data/app/assets/javascripts/govuk_publishing_components/{rum-loader.js.erb → rum-loader.js} +13 -10
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +1 -0
  8. data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +0 -5
  9. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +7 -1
  10. data/app/views/govuk_publishing_components/components/docs/big_number.yml +3 -3
  11. data/app/views/govuk_publishing_components/components/docs/breadcrumbs.yml +3 -3
  12. data/app/views/govuk_publishing_components/components/docs/button.yml +2 -2
  13. data/app/views/govuk_publishing_components/components/docs/checkboxes.yml +5 -5
  14. data/app/views/govuk_publishing_components/components/docs/contents_list.yml +1 -1
  15. data/app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml +1 -1
  16. data/app/views/govuk_publishing_components/components/docs/contextual_guidance.yml +1 -1
  17. data/app/views/govuk_publishing_components/components/docs/cookie_banner.yml +2 -2
  18. data/app/views/govuk_publishing_components/components/docs/date_input.yml +1 -1
  19. data/app/views/govuk_publishing_components/components/docs/details.yml +1 -1
  20. data/app/views/govuk_publishing_components/components/docs/devolved_nations.yml +1 -1
  21. data/app/views/govuk_publishing_components/components/docs/document_list.yml +2 -2
  22. data/app/views/govuk_publishing_components/components/docs/error_alert.yml +1 -1
  23. data/app/views/govuk_publishing_components/components/docs/error_summary.yml +2 -2
  24. data/app/views/govuk_publishing_components/components/docs/feedback.yml +1 -1
  25. data/app/views/govuk_publishing_components/components/docs/fieldset.yml +4 -4
  26. data/app/views/govuk_publishing_components/components/docs/heading.yml +4 -4
  27. data/app/views/govuk_publishing_components/components/docs/hint.yml +1 -1
  28. data/app/views/govuk_publishing_components/components/docs/input.yml +3 -3
  29. data/app/views/govuk_publishing_components/components/docs/inset_text.yml +1 -1
  30. data/app/views/govuk_publishing_components/components/docs/label.yml +1 -1
  31. data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +2 -2
  32. data/app/views/govuk_publishing_components/components/docs/lead_paragraph.yml +1 -1
  33. data/app/views/govuk_publishing_components/components/docs/metadata.yml +1 -1
  34. data/app/views/govuk_publishing_components/components/docs/notice.yml +2 -2
  35. data/app/views/govuk_publishing_components/components/docs/print_link.yml +1 -1
  36. data/app/views/govuk_publishing_components/components/docs/search.yml +4 -4
  37. data/app/views/govuk_publishing_components/components/docs/select.yml +5 -5
  38. data/app/views/govuk_publishing_components/components/docs/show_password.yml +3 -3
  39. data/app/views/govuk_publishing_components/components/docs/signup_link.yml +1 -1
  40. data/app/views/govuk_publishing_components/components/docs/single_page_notification_button.yml +2 -2
  41. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav.yml +1 -1
  42. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +3 -3
  43. data/app/views/govuk_publishing_components/components/docs/subscription_links.yml +3 -3
  44. data/app/views/govuk_publishing_components/components/docs/success_alert.yml +1 -1
  45. data/app/views/govuk_publishing_components/components/docs/table.yml +1 -1
  46. data/app/views/govuk_publishing_components/components/docs/textarea.yml +1 -1
  47. data/app/views/govuk_publishing_components/components/docs/title.yml +1 -1
  48. data/config/initializers/assets.rb +15 -45
  49. data/lib/govuk_publishing_components/presenters/attachment.rb +3 -2
  50. data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +0 -11
  51. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +0 -20
  52. data/lib/govuk_publishing_components/presenters/meta_tags.rb +1 -37
  53. data/lib/govuk_publishing_components/version.rb +1 -1
  54. data/lib/govuk_publishing_components.rb +0 -1
  55. metadata +10 -118
  56. data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +0 -118
  57. data/node_modules/jquery/AUTHORS.txt +0 -266
  58. data/node_modules/jquery/LICENSE.txt +0 -36
  59. data/node_modules/jquery/README.md +0 -65
  60. data/node_modules/jquery/bower.json +0 -14
  61. data/node_modules/jquery/dist/jquery.js +0 -11008
  62. data/node_modules/jquery/dist/jquery.min.js +0 -5
  63. data/node_modules/jquery/dist/jquery.min.map +0 -1
  64. data/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
  65. data/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2143
  66. data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  67. data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  68. data/node_modules/jquery/package.json +0 -85
  69. data/node_modules/jquery/src/ajax/jsonp.js +0 -100
  70. data/node_modules/jquery/src/ajax/load.js +0 -83
  71. data/node_modules/jquery/src/ajax/parseJSON.js +0 -53
  72. data/node_modules/jquery/src/ajax/parseXML.js +0 -31
  73. data/node_modules/jquery/src/ajax/script.js +0 -95
  74. data/node_modules/jquery/src/ajax/var/location.js +0 -3
  75. data/node_modules/jquery/src/ajax/var/nonce.js +0 -5
  76. data/node_modules/jquery/src/ajax/var/rquery.js +0 -3
  77. data/node_modules/jquery/src/ajax/xhr.js +0 -229
  78. data/node_modules/jquery/src/ajax.js +0 -842
  79. data/node_modules/jquery/src/attributes/attr.js +0 -281
  80. data/node_modules/jquery/src/attributes/classes.js +0 -174
  81. data/node_modules/jquery/src/attributes/prop.js +0 -156
  82. data/node_modules/jquery/src/attributes/support.js +0 -70
  83. data/node_modules/jquery/src/attributes/val.js +0 -191
  84. data/node_modules/jquery/src/attributes.js +0 -11
  85. data/node_modules/jquery/src/callbacks.js +0 -232
  86. data/node_modules/jquery/src/core/access.js +0 -65
  87. data/node_modules/jquery/src/core/init.js +0 -140
  88. data/node_modules/jquery/src/core/parseHTML.js +0 -41
  89. data/node_modules/jquery/src/core/ready.js +0 -163
  90. data/node_modules/jquery/src/core/var/rsingleTag.js +0 -5
  91. data/node_modules/jquery/src/core.js +0 -529
  92. data/node_modules/jquery/src/css/addGetHookIf.js +0 -24
  93. data/node_modules/jquery/src/css/adjustCSS.js +0 -65
  94. data/node_modules/jquery/src/css/curCSS.js +0 -137
  95. data/node_modules/jquery/src/css/defaultDisplay.js +0 -72
  96. data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -42
  97. data/node_modules/jquery/src/css/showHide.js +0 -45
  98. data/node_modules/jquery/src/css/support.js +0 -184
  99. data/node_modules/jquery/src/css/var/cssExpand.js +0 -3
  100. data/node_modules/jquery/src/css/var/isHidden.js +0 -16
  101. data/node_modules/jquery/src/css/var/rmargin.js +0 -3
  102. data/node_modules/jquery/src/css/var/rnumnonpx.js +0 -5
  103. data/node_modules/jquery/src/css/var/swap.js +0 -24
  104. data/node_modules/jquery/src/css.js +0 -563
  105. data/node_modules/jquery/src/data/support.js +0 -23
  106. data/node_modules/jquery/src/data/var/acceptData.js +0 -20
  107. data/node_modules/jquery/src/data.js +0 -342
  108. data/node_modules/jquery/src/deferred.js +0 -159
  109. data/node_modules/jquery/src/deprecated.js +0 -34
  110. data/node_modules/jquery/src/dimensions.js +0 -56
  111. data/node_modules/jquery/src/effects/Tween.js +0 -121
  112. data/node_modules/jquery/src/effects/animatedSelector.js +0 -13
  113. data/node_modules/jquery/src/effects/support.js +0 -58
  114. data/node_modules/jquery/src/effects.js +0 -640
  115. data/node_modules/jquery/src/event/ajax.js +0 -20
  116. data/node_modules/jquery/src/event/alias.js +0 -25
  117. data/node_modules/jquery/src/event/support.js +0 -28
  118. data/node_modules/jquery/src/event.js +0 -1134
  119. data/node_modules/jquery/src/exports/amd.js +0 -24
  120. data/node_modules/jquery/src/exports/global.js +0 -26
  121. data/node_modules/jquery/src/intro.js +0 -44
  122. data/node_modules/jquery/src/jquery.js +0 -37
  123. data/node_modules/jquery/src/manipulation/_evalUrl.js +0 -21
  124. data/node_modules/jquery/src/manipulation/buildFragment.js +0 -157
  125. data/node_modules/jquery/src/manipulation/createSafeFragment.js +0 -20
  126. data/node_modules/jquery/src/manipulation/getAll.js +0 -33
  127. data/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -19
  128. data/node_modules/jquery/src/manipulation/support.js +0 -72
  129. data/node_modules/jquery/src/manipulation/var/nodeNames.js +0 -5
  130. data/node_modules/jquery/src/manipulation/var/rcheckableType.js +0 -3
  131. data/node_modules/jquery/src/manipulation/var/rleadingWhitespace.js +0 -3
  132. data/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -3
  133. data/node_modules/jquery/src/manipulation/var/rtagName.js +0 -3
  134. data/node_modules/jquery/src/manipulation/wrapMap.js +0 -30
  135. data/node_modules/jquery/src/manipulation.js +0 -585
  136. data/node_modules/jquery/src/offset.js +0 -219
  137. data/node_modules/jquery/src/outro.js +0 -2
  138. data/node_modules/jquery/src/queue/delay.js +0 -22
  139. data/node_modules/jquery/src/queue.js +0 -144
  140. data/node_modules/jquery/src/selector-sizzle.js +0 -14
  141. data/node_modules/jquery/src/selector.js +0 -1
  142. data/node_modules/jquery/src/serialize.js +0 -125
  143. data/node_modules/jquery/src/support.js +0 -63
  144. data/node_modules/jquery/src/traversing/findFilter.js +0 -100
  145. data/node_modules/jquery/src/traversing/var/dir.js +0 -20
  146. data/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -6
  147. data/node_modules/jquery/src/traversing/var/siblings.js +0 -15
  148. data/node_modules/jquery/src/traversing.js +0 -179
  149. data/node_modules/jquery/src/var/class2type.js +0 -5
  150. data/node_modules/jquery/src/var/concat.js +0 -5
  151. data/node_modules/jquery/src/var/deletedIds.js +0 -3
  152. data/node_modules/jquery/src/var/document.js +0 -3
  153. data/node_modules/jquery/src/var/documentElement.js +0 -5
  154. data/node_modules/jquery/src/var/hasOwn.js +0 -5
  155. data/node_modules/jquery/src/var/indexOf.js +0 -5
  156. data/node_modules/jquery/src/var/pnum.js +0 -3
  157. data/node_modules/jquery/src/var/push.js +0 -5
  158. data/node_modules/jquery/src/var/rcssNum.js +0 -7
  159. data/node_modules/jquery/src/var/rnotwhite.js +0 -3
  160. data/node_modules/jquery/src/var/slice.js +0 -5
  161. data/node_modules/jquery/src/var/support.js +0 -5
  162. data/node_modules/jquery/src/var/toString.js +0 -5
  163. 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,6 +0,0 @@
1
- define( [
2
- "../../core",
3
- "../../selector"
4
- ], function( jQuery ) {
5
- return jQuery.expr.match.needsContext;
6
- } );
@@ -1,15 +0,0 @@
1
- define( function() {
2
-
3
- return function( n, elem ) {
4
- var matched = [];
5
-
6
- for ( ; n; n = n.nextSibling ) {
7
- if ( n.nodeType === 1 && n !== elem ) {
8
- matched.push( n );
9
- }
10
- }
11
-
12
- return matched;
13
- };
14
-
15
- } );
@@ -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,5 +0,0 @@
1
- define( function() {
2
-
3
- // [[Class]] -> type pairs
4
- return {};
5
- } );
@@ -1,5 +0,0 @@
1
- define( [
2
- "./deletedIds"
3
- ], function( deletedIds ) {
4
- return deletedIds.concat;
5
- } );
@@ -1,3 +0,0 @@
1
- define( function() {
2
- return [];
3
- } );
@@ -1,3 +0,0 @@
1
- define( function() {
2
- return window.document;
3
- } );
@@ -1,5 +0,0 @@
1
- define( [
2
- "./document"
3
- ], function( document ) {
4
- return document.documentElement;
5
- } );
@@ -1,5 +0,0 @@
1
- define( [
2
- "./class2type"
3
- ], function( class2type ) {
4
- return class2type.hasOwnProperty;
5
- } );
@@ -1,5 +0,0 @@
1
- define( [
2
- "./deletedIds"
3
- ], function( deletedIds ) {
4
- return deletedIds.indexOf;
5
- } );
@@ -1,3 +0,0 @@
1
- define( function() {
2
- return ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
3
- } );
@@ -1,5 +0,0 @@
1
- define( [
2
- "./deletedIds"
3
- ], function( deletedIds ) {
4
- return deletedIds.push;
5
- } );
@@ -1,7 +0,0 @@
1
- define( [
2
- "../var/pnum"
3
- ], function( pnum ) {
4
-
5
- return new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
6
-
7
- } );
@@ -1,3 +0,0 @@
1
- define( function() {
2
- return ( /\S+/g );
3
- } );
@@ -1,5 +0,0 @@
1
- define( [
2
- "./deletedIds"
3
- ], function( deletedIds ) {
4
- return deletedIds.slice;
5
- } );
@@ -1,5 +0,0 @@
1
- define( function() {
2
-
3
- // All support tests are defined in their respective modules.
4
- return {};
5
- } );
@@ -1,5 +0,0 @@
1
- define( [
2
- "./class2type"
3
- ], function( class2type ) {
4
- return class2type.toString;
5
- } );
@@ -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
- } );