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.
Files changed (156) 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/_layout_for_public.html.erb +7 -1
  9. data/app/views/govuk_publishing_components/components/docs/big_number.yml +3 -3
  10. data/app/views/govuk_publishing_components/components/docs/breadcrumbs.yml +3 -3
  11. data/app/views/govuk_publishing_components/components/docs/button.yml +2 -2
  12. data/app/views/govuk_publishing_components/components/docs/checkboxes.yml +5 -5
  13. data/app/views/govuk_publishing_components/components/docs/contents_list.yml +1 -1
  14. data/app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml +1 -1
  15. data/app/views/govuk_publishing_components/components/docs/contextual_guidance.yml +1 -1
  16. data/app/views/govuk_publishing_components/components/docs/cookie_banner.yml +2 -2
  17. data/app/views/govuk_publishing_components/components/docs/date_input.yml +1 -1
  18. data/app/views/govuk_publishing_components/components/docs/details.yml +1 -1
  19. data/app/views/govuk_publishing_components/components/docs/devolved_nations.yml +1 -1
  20. data/app/views/govuk_publishing_components/components/docs/document_list.yml +2 -2
  21. data/app/views/govuk_publishing_components/components/docs/error_alert.yml +1 -1
  22. data/app/views/govuk_publishing_components/components/docs/error_summary.yml +2 -2
  23. data/app/views/govuk_publishing_components/components/docs/feedback.yml +1 -1
  24. data/app/views/govuk_publishing_components/components/docs/fieldset.yml +4 -4
  25. data/app/views/govuk_publishing_components/components/docs/heading.yml +4 -4
  26. data/app/views/govuk_publishing_components/components/docs/hint.yml +1 -1
  27. data/app/views/govuk_publishing_components/components/docs/input.yml +3 -3
  28. data/app/views/govuk_publishing_components/components/docs/inset_text.yml +1 -1
  29. data/app/views/govuk_publishing_components/components/docs/label.yml +1 -1
  30. data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +2 -2
  31. data/app/views/govuk_publishing_components/components/docs/lead_paragraph.yml +1 -1
  32. data/app/views/govuk_publishing_components/components/docs/metadata.yml +1 -1
  33. data/app/views/govuk_publishing_components/components/docs/notice.yml +2 -2
  34. data/app/views/govuk_publishing_components/components/docs/print_link.yml +1 -1
  35. data/app/views/govuk_publishing_components/components/docs/search.yml +4 -4
  36. data/app/views/govuk_publishing_components/components/docs/select.yml +5 -5
  37. data/app/views/govuk_publishing_components/components/docs/show_password.yml +3 -3
  38. data/app/views/govuk_publishing_components/components/docs/signup_link.yml +1 -1
  39. data/app/views/govuk_publishing_components/components/docs/single_page_notification_button.yml +2 -2
  40. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav.yml +1 -1
  41. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +3 -3
  42. data/app/views/govuk_publishing_components/components/docs/subscription_links.yml +3 -3
  43. data/app/views/govuk_publishing_components/components/docs/success_alert.yml +1 -1
  44. data/app/views/govuk_publishing_components/components/docs/table.yml +1 -1
  45. data/app/views/govuk_publishing_components/components/docs/textarea.yml +1 -1
  46. data/app/views/govuk_publishing_components/components/docs/title.yml +1 -1
  47. data/config/initializers/assets.rb +15 -45
  48. data/lib/govuk_publishing_components/version.rb +1 -1
  49. metadata +10 -117
  50. data/node_modules/jquery/AUTHORS.txt +0 -266
  51. data/node_modules/jquery/LICENSE.txt +0 -36
  52. data/node_modules/jquery/README.md +0 -65
  53. data/node_modules/jquery/bower.json +0 -14
  54. data/node_modules/jquery/dist/jquery.js +0 -11008
  55. data/node_modules/jquery/dist/jquery.min.js +0 -5
  56. data/node_modules/jquery/dist/jquery.min.map +0 -1
  57. data/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
  58. data/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2143
  59. data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  60. data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  61. data/node_modules/jquery/package.json +0 -85
  62. data/node_modules/jquery/src/ajax/jsonp.js +0 -100
  63. data/node_modules/jquery/src/ajax/load.js +0 -83
  64. data/node_modules/jquery/src/ajax/parseJSON.js +0 -53
  65. data/node_modules/jquery/src/ajax/parseXML.js +0 -31
  66. data/node_modules/jquery/src/ajax/script.js +0 -95
  67. data/node_modules/jquery/src/ajax/var/location.js +0 -3
  68. data/node_modules/jquery/src/ajax/var/nonce.js +0 -5
  69. data/node_modules/jquery/src/ajax/var/rquery.js +0 -3
  70. data/node_modules/jquery/src/ajax/xhr.js +0 -229
  71. data/node_modules/jquery/src/ajax.js +0 -842
  72. data/node_modules/jquery/src/attributes/attr.js +0 -281
  73. data/node_modules/jquery/src/attributes/classes.js +0 -174
  74. data/node_modules/jquery/src/attributes/prop.js +0 -156
  75. data/node_modules/jquery/src/attributes/support.js +0 -70
  76. data/node_modules/jquery/src/attributes/val.js +0 -191
  77. data/node_modules/jquery/src/attributes.js +0 -11
  78. data/node_modules/jquery/src/callbacks.js +0 -232
  79. data/node_modules/jquery/src/core/access.js +0 -65
  80. data/node_modules/jquery/src/core/init.js +0 -140
  81. data/node_modules/jquery/src/core/parseHTML.js +0 -41
  82. data/node_modules/jquery/src/core/ready.js +0 -163
  83. data/node_modules/jquery/src/core/var/rsingleTag.js +0 -5
  84. data/node_modules/jquery/src/core.js +0 -529
  85. data/node_modules/jquery/src/css/addGetHookIf.js +0 -24
  86. data/node_modules/jquery/src/css/adjustCSS.js +0 -65
  87. data/node_modules/jquery/src/css/curCSS.js +0 -137
  88. data/node_modules/jquery/src/css/defaultDisplay.js +0 -72
  89. data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -42
  90. data/node_modules/jquery/src/css/showHide.js +0 -45
  91. data/node_modules/jquery/src/css/support.js +0 -184
  92. data/node_modules/jquery/src/css/var/cssExpand.js +0 -3
  93. data/node_modules/jquery/src/css/var/isHidden.js +0 -16
  94. data/node_modules/jquery/src/css/var/rmargin.js +0 -3
  95. data/node_modules/jquery/src/css/var/rnumnonpx.js +0 -5
  96. data/node_modules/jquery/src/css/var/swap.js +0 -24
  97. data/node_modules/jquery/src/css.js +0 -563
  98. data/node_modules/jquery/src/data/support.js +0 -23
  99. data/node_modules/jquery/src/data/var/acceptData.js +0 -20
  100. data/node_modules/jquery/src/data.js +0 -342
  101. data/node_modules/jquery/src/deferred.js +0 -159
  102. data/node_modules/jquery/src/deprecated.js +0 -34
  103. data/node_modules/jquery/src/dimensions.js +0 -56
  104. data/node_modules/jquery/src/effects/Tween.js +0 -121
  105. data/node_modules/jquery/src/effects/animatedSelector.js +0 -13
  106. data/node_modules/jquery/src/effects/support.js +0 -58
  107. data/node_modules/jquery/src/effects.js +0 -640
  108. data/node_modules/jquery/src/event/ajax.js +0 -20
  109. data/node_modules/jquery/src/event/alias.js +0 -25
  110. data/node_modules/jquery/src/event/support.js +0 -28
  111. data/node_modules/jquery/src/event.js +0 -1134
  112. data/node_modules/jquery/src/exports/amd.js +0 -24
  113. data/node_modules/jquery/src/exports/global.js +0 -26
  114. data/node_modules/jquery/src/intro.js +0 -44
  115. data/node_modules/jquery/src/jquery.js +0 -37
  116. data/node_modules/jquery/src/manipulation/_evalUrl.js +0 -21
  117. data/node_modules/jquery/src/manipulation/buildFragment.js +0 -157
  118. data/node_modules/jquery/src/manipulation/createSafeFragment.js +0 -20
  119. data/node_modules/jquery/src/manipulation/getAll.js +0 -33
  120. data/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -19
  121. data/node_modules/jquery/src/manipulation/support.js +0 -72
  122. data/node_modules/jquery/src/manipulation/var/nodeNames.js +0 -5
  123. data/node_modules/jquery/src/manipulation/var/rcheckableType.js +0 -3
  124. data/node_modules/jquery/src/manipulation/var/rleadingWhitespace.js +0 -3
  125. data/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -3
  126. data/node_modules/jquery/src/manipulation/var/rtagName.js +0 -3
  127. data/node_modules/jquery/src/manipulation/wrapMap.js +0 -30
  128. data/node_modules/jquery/src/manipulation.js +0 -585
  129. data/node_modules/jquery/src/offset.js +0 -219
  130. data/node_modules/jquery/src/outro.js +0 -2
  131. data/node_modules/jquery/src/queue/delay.js +0 -22
  132. data/node_modules/jquery/src/queue.js +0 -144
  133. data/node_modules/jquery/src/selector-sizzle.js +0 -14
  134. data/node_modules/jquery/src/selector.js +0 -1
  135. data/node_modules/jquery/src/serialize.js +0 -125
  136. data/node_modules/jquery/src/support.js +0 -63
  137. data/node_modules/jquery/src/traversing/findFilter.js +0 -100
  138. data/node_modules/jquery/src/traversing/var/dir.js +0 -20
  139. data/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -6
  140. data/node_modules/jquery/src/traversing/var/siblings.js +0 -15
  141. data/node_modules/jquery/src/traversing.js +0 -179
  142. data/node_modules/jquery/src/var/class2type.js +0 -5
  143. data/node_modules/jquery/src/var/concat.js +0 -5
  144. data/node_modules/jquery/src/var/deletedIds.js +0 -3
  145. data/node_modules/jquery/src/var/document.js +0 -3
  146. data/node_modules/jquery/src/var/documentElement.js +0 -5
  147. data/node_modules/jquery/src/var/hasOwn.js +0 -5
  148. data/node_modules/jquery/src/var/indexOf.js +0 -5
  149. data/node_modules/jquery/src/var/pnum.js +0 -3
  150. data/node_modules/jquery/src/var/push.js +0 -5
  151. data/node_modules/jquery/src/var/rcssNum.js +0 -7
  152. data/node_modules/jquery/src/var/rnotwhite.js +0 -3
  153. data/node_modules/jquery/src/var/slice.js +0 -5
  154. data/node_modules/jquery/src/var/support.js +0 -5
  155. data/node_modules/jquery/src/var/toString.js +0 -5
  156. data/node_modules/jquery/src/wrap.js +0 -77
@@ -1,229 +0,0 @@
1
- define( [
2
- "../core",
3
- "../var/document",
4
- "../var/support",
5
- "../ajax"
6
- ], function( jQuery, document, support ) {
7
-
8
- // Create the request object
9
- // (This is still attached to ajaxSettings for backward compatibility)
10
- jQuery.ajaxSettings.xhr = window.ActiveXObject !== undefined ?
11
-
12
- // Support: IE6-IE8
13
- function() {
14
-
15
- // XHR cannot access local files, always use ActiveX for that case
16
- if ( this.isLocal ) {
17
- return createActiveXHR();
18
- }
19
-
20
- // Support: IE 9-11
21
- // IE seems to error on cross-domain PATCH requests when ActiveX XHR
22
- // is used. In IE 9+ always use the native XHR.
23
- // Note: this condition won't catch Edge as it doesn't define
24
- // document.documentMode but it also doesn't support ActiveX so it won't
25
- // reach this code.
26
- if ( document.documentMode > 8 ) {
27
- return createStandardXHR();
28
- }
29
-
30
- // Support: IE<9
31
- // oldIE XHR does not support non-RFC2616 methods (#13240)
32
- // See http://msdn.microsoft.com/en-us/library/ie/ms536648(v=vs.85).aspx
33
- // and http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9
34
- // Although this check for six methods instead of eight
35
- // since IE also does not support "trace" and "connect"
36
- return /^(get|post|head|put|delete|options)$/i.test( this.type ) &&
37
- createStandardXHR() || createActiveXHR();
38
- } :
39
-
40
- // For all other browsers, use the standard XMLHttpRequest object
41
- createStandardXHR;
42
-
43
- var xhrId = 0,
44
- xhrCallbacks = {},
45
- xhrSupported = jQuery.ajaxSettings.xhr();
46
-
47
- // Support: IE<10
48
- // Open requests must be manually aborted on unload (#5280)
49
- // See https://support.microsoft.com/kb/2856746 for more info
50
- if ( window.attachEvent ) {
51
- window.attachEvent( "onunload", function() {
52
- for ( var key in xhrCallbacks ) {
53
- xhrCallbacks[ key ]( undefined, true );
54
- }
55
- } );
56
- }
57
-
58
- // Determine support properties
59
- support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
60
- xhrSupported = support.ajax = !!xhrSupported;
61
-
62
- // Create transport if the browser can provide an xhr
63
- if ( xhrSupported ) {
64
-
65
- jQuery.ajaxTransport( function( options ) {
66
-
67
- // Cross domain only allowed if supported through XMLHttpRequest
68
- if ( !options.crossDomain || support.cors ) {
69
-
70
- var callback;
71
-
72
- return {
73
- send: function( headers, complete ) {
74
- var i,
75
- xhr = options.xhr(),
76
- id = ++xhrId;
77
-
78
- // Open the socket
79
- xhr.open(
80
- options.type,
81
- options.url,
82
- options.async,
83
- options.username,
84
- options.password
85
- );
86
-
87
- // Apply custom fields if provided
88
- if ( options.xhrFields ) {
89
- for ( i in options.xhrFields ) {
90
- xhr[ i ] = options.xhrFields[ i ];
91
- }
92
- }
93
-
94
- // Override mime type if needed
95
- if ( options.mimeType && xhr.overrideMimeType ) {
96
- xhr.overrideMimeType( options.mimeType );
97
- }
98
-
99
- // X-Requested-With header
100
- // For cross-domain requests, seeing as conditions for a preflight are
101
- // akin to a jigsaw puzzle, we simply never set it to be sure.
102
- // (it can always be set on a per-request basis or even using ajaxSetup)
103
- // For same-domain requests, won't change header if already provided.
104
- if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
105
- headers[ "X-Requested-With" ] = "XMLHttpRequest";
106
- }
107
-
108
- // Set headers
109
- for ( i in headers ) {
110
-
111
- // Support: IE<9
112
- // IE's ActiveXObject throws a 'Type Mismatch' exception when setting
113
- // request header to a null-value.
114
- //
115
- // To keep consistent with other XHR implementations, cast the value
116
- // to string and ignore `undefined`.
117
- if ( headers[ i ] !== undefined ) {
118
- xhr.setRequestHeader( i, headers[ i ] + "" );
119
- }
120
- }
121
-
122
- // Do send the request
123
- // This may raise an exception which is actually
124
- // handled in jQuery.ajax (so no try/catch here)
125
- xhr.send( ( options.hasContent && options.data ) || null );
126
-
127
- // Listener
128
- callback = function( _, isAbort ) {
129
- var status, statusText, responses;
130
-
131
- // Was never called and is aborted or complete
132
- if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
133
-
134
- // Clean up
135
- delete xhrCallbacks[ id ];
136
- callback = undefined;
137
- xhr.onreadystatechange = jQuery.noop;
138
-
139
- // Abort manually if needed
140
- if ( isAbort ) {
141
- if ( xhr.readyState !== 4 ) {
142
- xhr.abort();
143
- }
144
- } else {
145
- responses = {};
146
- status = xhr.status;
147
-
148
- // Support: IE<10
149
- // Accessing binary-data responseText throws an exception
150
- // (#11426)
151
- if ( typeof xhr.responseText === "string" ) {
152
- responses.text = xhr.responseText;
153
- }
154
-
155
- // Firefox throws an exception when accessing
156
- // statusText for faulty cross-domain requests
157
- try {
158
- statusText = xhr.statusText;
159
- } catch ( e ) {
160
-
161
- // We normalize with Webkit giving an empty statusText
162
- statusText = "";
163
- }
164
-
165
- // Filter status for non standard behaviors
166
-
167
- // If the request is local and we have data: assume a success
168
- // (success with no data won't get notified, that's the best we
169
- // can do given current implementations)
170
- if ( !status && options.isLocal && !options.crossDomain ) {
171
- status = responses.text ? 200 : 404;
172
-
173
- // IE - #1450: sometimes returns 1223 when it should be 204
174
- } else if ( status === 1223 ) {
175
- status = 204;
176
- }
177
- }
178
- }
179
-
180
- // Call complete if needed
181
- if ( responses ) {
182
- complete( status, statusText, responses, xhr.getAllResponseHeaders() );
183
- }
184
- };
185
-
186
- // Do send the request
187
- // `xhr.send` may raise an exception, but it will be
188
- // handled in jQuery.ajax (so no try/catch here)
189
- if ( !options.async ) {
190
-
191
- // If we're in sync mode we fire the callback
192
- callback();
193
- } else if ( xhr.readyState === 4 ) {
194
-
195
- // (IE6 & IE7) if it's in cache and has been
196
- // retrieved directly we need to fire the callback
197
- window.setTimeout( callback );
198
- } else {
199
-
200
- // Register the callback, but delay it in case `xhr.send` throws
201
- // Add to the list of active xhr callbacks
202
- xhr.onreadystatechange = xhrCallbacks[ id ] = callback;
203
- }
204
- },
205
-
206
- abort: function() {
207
- if ( callback ) {
208
- callback( undefined, true );
209
- }
210
- }
211
- };
212
- }
213
- } );
214
- }
215
-
216
- // Functions to create xhrs
217
- function createStandardXHR() {
218
- try {
219
- return new window.XMLHttpRequest();
220
- } catch ( e ) {}
221
- }
222
-
223
- function createActiveXHR() {
224
- try {
225
- return new window.ActiveXObject( "Microsoft.XMLHTTP" );
226
- } catch ( e ) {}
227
- }
228
-
229
- } );