govuk_publishing_components 24.9.2 → 24.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +1 -1
  3. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +13 -248
  4. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +1 -2
  5. data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +1 -0
  6. data/app/assets/javascripts/govuk_publishing_components/components/show-password.js +12 -0
  7. data/app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js +18 -0
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +34 -34
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +0 -37
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +1 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +15 -18
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +4 -2
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +4 -4
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +20 -20
  15. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +27 -24
  16. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +1 -1
  17. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -0
  18. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +1 -0
  19. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +1 -0
  20. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -0
  21. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -0
  22. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +1 -0
  23. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss +19 -16
  24. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_fraction.scss +1 -0
  25. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +30 -27
  26. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -0
  27. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -0
  28. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -0
  29. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +26 -21
  30. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -0
  31. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss +19 -16
  32. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_summary.scss +21 -18
  33. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -0
  34. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +1 -0
  35. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -0
  36. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss +2 -0
  37. data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +7 -7
  38. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +1 -1
  39. data/app/views/govuk_publishing_components/components/_metadata.html.erb +9 -8
  40. data/app/views/govuk_publishing_components/components/_notice.html.erb +1 -1
  41. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +1 -1
  42. data/app/views/govuk_publishing_components/components/_radio.html.erb +6 -11
  43. data/app/views/govuk_publishing_components/components/_show_password.html.erb +2 -0
  44. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +4 -4
  45. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -1
  46. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +1 -1
  47. data/app/views/govuk_publishing_components/components/_success_alert.html.erb +1 -1
  48. data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +9 -27
  49. data/app/views/govuk_publishing_components/components/docs/show_password.yml +10 -0
  50. data/app/views/govuk_publishing_components/components/docs/success_alert.yml +5 -0
  51. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +1 -1
  52. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +1 -1
  53. data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +2 -2
  54. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +4 -3
  55. data/config/locales/cy.yml +0 -5
  56. data/config/locales/en.yml +12 -9
  57. data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +5 -0
  58. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +4 -0
  59. data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +0 -1
  60. data/lib/govuk_publishing_components/version.rb +1 -1
  61. metadata +17 -3
  62. data/app/assets/javascripts/component_guide/visual-regression.js +0 -71
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ad726f2e544e7165c409104245f6b1e8e0c9bf97c4e10984db45411cc007892
4
- data.tar.gz: 7aca349410d2615a5ba3810bdd90c4a355477dc017c7e72f9b626c35630139ba
3
+ metadata.gz: 8e7fe72e738809175f7caa96a6003eb8191b09e0f26bbc72963088d6ef20eb7d
4
+ data.tar.gz: ca5784e8fc57b3314d60ea63733e03d636671329d5ef697d59ff82a595069200
5
5
  SHA512:
6
- metadata.gz: 850ab9d67ae304803e0060aa16c969cc621df866eca8ea15eff8617e68d0149e618d0cc946da6da4b5bce7549033b8d60f0fb93d0fd316fe60e0f0ce75df606d
7
- data.tar.gz: 9cdda0e734f05dd8c89e3bebd17800401492977650cfa2016eb51abec02362f1faf3d0668b33b2ead3067386b1c8c278a5fda1a269fb40685c0d23f659dc5343
6
+ metadata.gz: f376231a1805b60263dd404cfe9f39fa5c552ae227a3c2059a9353da6afdfa14a6a3831b68e5c4346b3ca2624a861deb89695d5b738cdb7c59c66ee02b641c52
7
+ data.tar.gz: 26e0e71bad0c3b6d98e0d091b7925999fc8b0600e01c30900f1271ecb047619b0a4361ffa0f767f5f1f18539bf189f0fa3c8f7ad36f8107b0846808a8d3b9448
@@ -5,7 +5,7 @@
5
5
 
6
6
  var GOVUK = global.GOVUK || {}
7
7
  var EMAIL_PATTERN = /[^\s=/?&]+(?:@|%40)[^\s=/?&]+/g
8
- var POSTCODE_PATTERN = /[A-PR-UWYZ][A-HJ-Z]?[0-9][0-9A-HJKMNPR-Y]?(?:[\s+]|%20)*[0-9](?!refund)[ABD-HJLNPQ-Z]{2,3}/gi
8
+ var POSTCODE_PATTERN = /\b[A-PR-UWYZ][A-HJ-Z]?[0-9][0-9A-HJKMNPR-Y]?(?:[\s+]|%20)*[0-9](?!refund)[ABD-HJLNPQ-Z]{2,3}\b/gi
9
9
  var DATE_PATTERN = /\d{4}(-?)\d{2}(-?)\d{2}/g
10
10
  var ESCAPE_REGEX_PATTERN = /[|\\{}()[\]^$+*?.]/g
11
11
 
@@ -13,20 +13,6 @@
13
13
  ['Percent', 80],
14
14
  ['Percent', 100]
15
15
  ],
16
- '/government/publications/coronavirus-outbreak-faqs-what-you-can-and-cant-do/coronavirus-outbreak-faqs-what-you-can-and-cant-do': [
17
- ['Percent', 20],
18
- ['Percent', 40],
19
- ['Percent', 60],
20
- ['Percent', 80],
21
- ['Percent', 100]
22
- ],
23
- '/government/publications/coronavirus-covid-19-online-education-resources/coronavirus-covid-19-list-of-online-education-resources-for-home-education': [
24
- ['Percent', 20],
25
- ['Percent', 40],
26
- ['Percent', 60],
27
- ['Percent', 80],
28
- ['Percent', 100]
29
- ],
30
16
  '/guidance/coronavirus-covid-19-information-for-the-public': [
31
17
  ['Percent', 20],
32
18
  ['Percent', 40],
@@ -34,28 +20,6 @@
34
20
  ['Percent', 80],
35
21
  ['Percent', 100]
36
22
  ],
37
- '/guidance/saving-for-retirement-if-youre-aged-16-to-50': [
38
- ['Heading', 'Keep track of your State Pension'],
39
- ['Heading', 'Consider ways to improve your State Pension'],
40
- ['Heading', 'Personal and stakeholder pensions']
41
- ],
42
- '/guidance/planning-for-retirement-if-youre-aged-50-or-over': [
43
- ['Heading', 'Find out your State Pension age'],
44
- ['Heading', 'Consider ways to improve your State Pension'],
45
- ['Heading', 'Workplace, personal and stakeholder pensions'],
46
- ['Heading', 'Personal and stakeholder pensions']
47
- ],
48
- '/guidance/retirement-planning-for-current-pensioners': [
49
- ['Heading', 'If you reached State Pension age before 6 April 2016'],
50
- ['Heading', 'Other ways to increase your income in retirement'],
51
- ['Heading', 'Further support in retirement'],
52
- ['Heading', 'Winter Fuel Payments']
53
- ],
54
- '/government/collections/disability-confident-campaign': [
55
- ['Heading', 'Become a Disability Confident employer'],
56
- ['Heading', 'Aims and objectives'],
57
- ['Heading', 'Inclusive communication']
58
- ],
59
23
  '/government/publications/the-essential-trustee-what-you-need-to-know-cc3/the-essential-trustee-what-you-need-to-know-what-you-need-to-do': [
60
24
  ['Heading', '1. About this guidance'],
61
25
  ['Heading', '2. Trustees’ duties at a glance'],
@@ -77,11 +41,6 @@
77
41
  ['Heading', 'When you can claim Universal Credit'],
78
42
  ['Heading', 'More detailed advice']
79
43
  ],
80
- '/openingupwork': [
81
- ['Heading', 'How Universal Credit makes work pay'],
82
- ['Heading', 'When you can claim Universal Credit'],
83
- ['Heading', 'Help and advice']
84
- ],
85
44
  '/government/publications/spring-budget-2017-documents/spring-budget-2017': [
86
45
  ['Heading', '1. Executive summary'],
87
46
  ['Heading', '2. Economic context and public finances'],
@@ -92,12 +51,6 @@
92
51
  ['Heading', '7. Annex A: Financing'],
93
52
  ['Heading', '8. Annex B: Office for Budget Responsibility\'s Economic and fiscal outlook']
94
53
  ],
95
- '/guidance/living-in-the-eu-prepare-for-brexit': [
96
- ['Heading', 'Travelling in the EU']
97
- ],
98
- '/guidance/driving-in-the-eu-after-brexit-driving-licence-exchange': [
99
- ['Heading', 'Belgium']
100
- ],
101
54
  '/settled-status-eu-citizens-families': [
102
55
  ['Heading', 'When you can apply']
103
56
  ],
@@ -110,21 +63,6 @@
110
63
  '/guidance/foreign-travel-insurance': [
111
64
  ['Heading', 'What your travel insurance policy should cover']
112
65
  ],
113
- '/guidance/passport-rules-for-travel-to-europe-after-brexit': [
114
- ['Heading', 'List of countries affected']
115
- ],
116
- '/visit-europe-brexit': [
117
- ['Heading', 'Travel']
118
- ],
119
- '/guidance/uk-nationals-in-the-eu-benefits-and-pensions-in-a-no-deal-scenario': [
120
- ['Heading', 'Pensions and benefits paid by an EEA state or Switzerland']
121
- ],
122
- '/guidance/uk-students-in-the-eu-continuing-your-studies': [
123
- ['Heading', 'Check whether you’ll get financial help']
124
- ],
125
- '/government/publications/cross-border-maintenance-cases-after-brexit-guidance-for-public/cross-border-maintenance-cases-after-brexit': [
126
- ['Heading', '2. New cases after Brexit']
127
- ],
128
66
  '/guidance/social-security-contributions-for-uk-and-eu-workers-if-the-uk-leaves-the-eu-with-no-deal': [
129
67
  ['Heading', 'UK employers'],
130
68
  ['Heading', 'UK employees and self-employed']
@@ -132,57 +70,18 @@
132
70
  '/guidance/student-finance-arrangements-in-a-no-deal-scenario': [
133
71
  ['Heading', 'Other overseas study placements']
134
72
  ],
135
- '/guidance/advice-for-british-nationals-travelling-and-living-in-europe': [
136
- ['Heading', 'Travelling to the UK']
137
- ],
138
73
  '/guidance/living-in-france': [
139
74
  ['Heading', 'Passports and travel']
140
75
  ],
141
76
  '/family-permit': [
142
77
  ['Heading', 'EEA family permit']
143
78
  ],
144
- '/guidance/european-temporary-leave-to-remain-in-the-uk': [
145
- ['Heading', 'Applying for European temporary leave to remain']
146
- ],
147
- '/guidance/visiting-the-uk-after-brexit': [
148
- ['Heading', 'If the UK leaves the EU without a deal']
149
- ],
150
79
  '/guidance/healthcare-for-eu-and-efta-citizens-visiting-the-uk': [
151
80
  ['Heading', 'Travel insurance']
152
81
  ],
153
- '/guidance/qualified-teacher-status-qts': [
154
- ['Heading', 'Teachers recognised in the EEA or Switzerland']
155
- ],
156
82
  '/guidance/driving-in-the-eu-after-brexit': [
157
83
  ['Heading', 'GB stickers and number plates']
158
84
  ],
159
- '/visit-europe-brexit#travel': [
160
- ['Heading', 'Compensation if your travel is disrupted']
161
- ],
162
- '/apply-for-a-uk-residence-card': [
163
- ['Heading', 'Fees']
164
- ],
165
- '/guidance/studying-in-the-european-union-after-brexit': [
166
- ['Heading', 'Applying for Erasmus+']
167
- ],
168
- '/settled-status-eu-citizens-families/not-EU-EEA-Swiss-citizen': [
169
- ['Heading', 'If you’re a family member of an EU, EEA or Swiss citizen']
170
- ],
171
- '/guidance/get-your-eea-qualification-recognised-in-the-uk-after-brexit': [
172
- ['Heading', 'Professionals already working in the UK']
173
- ],
174
- '/guidance/visiting-the-uk-after-brexit#if-your-vehicle-is-not-insured-in-the-uk': [
175
- ['Heading', 'If your vehicle is not insured in the UK']
176
- ],
177
- '/guidance/uk-residents-visiting-the-eueea-and-switzerland-healthcare': [
178
- ['Heading', 'European Health Insurance Cards (EHIC)']
179
- ],
180
- '/guidance/pet-travel-to-europe-after-brexit': [
181
- ['Heading', 'Pet travel if there’s a no-deal Brexit']
182
- ],
183
- '/guidance/driving-in-the-eu-after-brexit-international-driving-permits': [
184
- ['Heading', 'Check which type of IDP you need']
185
- ],
186
85
  '/guidance/driving-in-the-eu-after-brexit#insurance-for-your-vehicle-caravan-or-trailer': [
187
86
  ['Heading', 'Trailer registration']
188
87
  ],
@@ -192,99 +91,27 @@
192
91
  '/get-a-passport-urgently': [
193
92
  ['Heading', 'Ways to apply']
194
93
  ],
195
- '/guidance/mobile-roaming-after-eu-exit': [
196
- ['Heading', 'If you live in Northern Ireland']
197
- ],
198
- '/government/publications/mobile-roaming-after-eu-exit/mobile-roaming-if-theres-no-brexit-deal': [
199
- ['Heading', '1.2 If there’s no deal']
200
- ],
201
94
  '/driving-abroad/international-driving-permit': [
202
95
  ['Heading', 'Check which IDP you need']
203
96
  ],
204
- '/vehicle-insurance/driving-abroad': [
205
- ['Heading', 'Driving in other countries']
206
- ],
207
97
  '/guidance/driving-in-the-eu-after-brexit#gb-stickers-and-number-plates': [
208
98
  ['Heading', 'GB stickers and number plates']
209
99
  ],
210
- '/guidance/importing-and-exporting-plants-and-plant-products-if-theres-no-withdrawal-deal': [
211
- ['Heading', 'Movement of wood packaging material']
212
- ],
213
- '/guidance/egg-marketing-standards-if-theres-a-no-deal-brexit': [
214
- ['Heading', 'Customs checks']
215
- ],
216
- '/guidance/hatching-eggs-and-chicks-marketing-standards-when-the-uk-leaves-the-eu': [
217
- ['Heading', 'Customs checks']
218
- ],
219
- '/guidance/poultry-meat-marketing-standards-when-the-uk-leaves-the-eu': [
220
- ['Heading', 'Marketing standards checks']
221
- ],
222
- '/guidance/plant-variety-rights-and-marketing-plant-reproductive-material-if-the-uk-leaves-the-eu-without-a-deal': [
223
- ['Heading', 'Rules for applying for plant variety rights if there’s a no deal Brexit']
224
- ],
225
- '/guidance/exporting-animals-animal-products-fish-and-fishery-products-if-the-uk-leaves-the-eu-with-no-deal': [
226
- ['Heading', 'Exports to non-EU countries (third countries) from the UK']
227
- ],
228
- '/guidance/the-farming-sector-and-preparing-for-eu-exit': [
229
- ['Heading', 'Farm and rural payments: Basic Payment Scheme and Rural Development Programme for England']
230
- ],
231
- '/guidance/protecting-food-and-drink-names-if-theres-no-brexit-deal': [
232
- ['Heading', 'New product applications']
233
- ],
234
- '/guidance/trading-and-labelling-organic-food-if-theres-no-brexit-deal': [
235
- ['Heading', 'Exporting organic food to the EU']
236
- ],
237
- '/guidance/hops-and-hops-products-marketing-standards-if-the-uk-leaves-the-eu-without-a-deal': [
238
- ['Heading', 'How to apply for an EU Attestation of Equivalence']
239
- ],
240
100
  '/guidance/guidance-for-suppliers-of-cattle-sheep-and-goat-ear-tags': [
241
101
  ['Heading', 'Tagging information for livestock keepers']
242
102
  ],
243
- '/government/publications/meeting-climate-change-requirements-if-theres-no-brexit-deal/meeting-climate-change-requirements-if-theres-no-brexit-deal': [
244
- ['Heading', 'Summary of actions']
245
- ],
246
- '/guidance/food-labelling-changes-after-brexit': [
247
- ['Heading', 'Goods sold in the UK']
248
- ],
249
- '/guidance/export-horses-and-ponies-special-rules': [
250
- ['Heading', 'Moving equines to the EU in a no-deal Brexit']
251
- ],
252
- '/guidance/trading-and-moving-endangered-species-protected-by-cites-if-theres-no-withdrawal-deal': [
253
- ['Heading', 'Trading with the EU']
254
- ],
255
103
  '/guidance/wine-trade-regulations': [
256
104
  ['Heading', 'Rules for transporting wine into the UK']
257
105
  ],
258
- '/guidance/the-food-and-drink-sector-and-preparing-for-eu-exit': [
259
- ['Heading', 'Importing and exporting']
260
- ],
261
- '/guidance/exporting-and-importing-fish-if-theres-no-brexit-deal': [
262
- ['Heading', 'Send fish to an EU border control post']
263
- ],
264
- '/guidance/the-fisheries-sector-and-preparing-for-eu-exit': [
265
- ['Heading', 'Licensing arrangements']
266
- ],
267
- '/guidance/import-fish-after-a-no-deal-brexit': [
268
- ['Heading', 'Direct landings into the UK']
269
- ],
270
106
  '/guidance/the-chemicals-sector-and-preparing-for-eu-exit': [
271
107
  ['Heading', 'Energy and climate']
272
108
  ],
273
- '/government/publications/trading-electricity-if-theres-no-brexit-deal/trading-electricity-if-theres-no-brexit-deal': [
274
- ['Heading', 'Summary of actions']
275
- ],
276
109
  '/guidance/how-to-move-goods-between-or-through-common-transit-countries-including-the-eu': [
277
110
  ['Heading', 'Start moving your goods']
278
111
  ],
279
112
  '/guidance/ecmt-international-road-haulage-permits': [
280
113
  ['Heading', 'Apply for permits']
281
114
  ],
282
- '/guidance/transporting-goods-between-the-uk-and-eu-in-a-no-deal-brexit-guidance-for-hauliers': [
283
- ['Heading', 'Cross-border responsibilities when moving goods']
284
- ],
285
- '/guidance/carry-out-international-road-haulage-after-brexit': [
286
- ['Heading', 'Vehicle and trailer insurance']
287
- ],
288
115
  '/guidance/prepare-to-drive-in-the-eu-after-brexit-lorry-and-goods-vehicle-drivers': [
289
116
  ['Heading', 'Driver CPC for lorry drivers']
290
117
  ],
@@ -294,45 +121,18 @@
294
121
  '/guidance/vehicle-type-approval-if-theres-no-brexit-deal': [
295
122
  ['Heading', 'Existing vehicle and component type-approvals']
296
123
  ],
297
- '/guidance/hauliers-and-commercial-drivers-you-will-need-new-documents-to-transport-goods-into-the-eu-after-brexit': [
298
- ['Heading', 'Driver documents']
299
- ],
300
- '/guidance/how-to-move-goods-through-roro-locations-in-a-no-deal-brexit-eu-to-uk-and-uk-to-eu': [
301
- ['Heading', 'EU to UK: pre-journey from EU to the UK']
302
- ],
303
124
  '/guidance/the-retail-sector-and-preparing-for-eu-exit': [
304
125
  ['Heading', 'Importing and exporting']
305
126
  ],
306
127
  '/guidance/the-consumer-goods-sector-and-preparing-for-eu-exit': [
307
128
  ['Heading', 'Importing and exporting']
308
129
  ],
309
- '/guidance/textile-labelling-after-brexit': [
310
- ['Heading', 'Labelling requirements']
311
- ],
312
- '/guidance/footwear-labelling-after-brexit': [
313
- ['Heading', 'Labelling requirements']
314
- ],
315
130
  '/government/publications/banking-insurance-and-other-financial-services-if-theres-no-brexit-deal/banking-insurance-and-other-financial-services-if-theres-no-brexit-deal-information-for-financial-services-institutions': [
316
131
  ['Heading', '3. Action taken by the UK']
317
132
  ],
318
- '/government/publications/eu-lawyers-in-the-uk-after-a-no-deal-brexit/eu-lawyers-in-the-uk-after-a-no-deal-brexit': [
319
- ['Heading', 'Lawyers with EU, Norway, Iceland or Liechtenstein qualifications and professional titles']
320
- ],
321
133
  '/government/publications/further-guidance-note-on-the-regulation-of-medicines-medical-devices-and-clinical-trials-if-theres-no-brexit-deal/further-guidance-note-on-the-regulation-of-medicines-medical-devices-and-clinical-trials-if-theres-no-brexit-deal': [
322
134
  ['Heading', '1.4 Orphan medicines']
323
135
  ],
324
- '/guidance/accounting-if-theres-no-brexit-deal': [
325
- ['Heading', 'UK public companies with an EEA listing']
326
- ],
327
- '/guidance/broadcasting-and-video-on-demand-if-theres-no-brexit-deal': [
328
- ['Heading', 'Get local legal advice about your video on-demand services']
329
- ],
330
- '/guidance/changes-to-copyright-law-after-brexit': [
331
- ['Heading', 'Artist’s resale right']
332
- ],
333
- '/guidance/changes-to-eu-and-international-designs-and-trade-mark-protection-after-brexit': [
334
- ['Heading', 'Registered design']
335
- ],
336
136
  '/guidance/check-temporary-rates-of-customs-duty-on-imports-after-eu-exit': [
337
137
  ['Heading', 'Tariff-rate quotas (TRQ)']
338
138
  ],
@@ -342,60 +142,15 @@
342
142
  '/guidance/european-and-domestic-funding-after-brexit': [
343
143
  ['Heading', 'What you need to do']
344
144
  ],
345
- '/guidance/exhaustion-of-ip-rights-and-parallel-trade-after-brexit': [
346
- ['Heading', 'Actions for IP rights holders']
347
- ],
348
- '/guidance/exporting-nuclear-related-items-after-brexit': [
349
- ['Heading', 'Exporting dual-use items']
350
- ],
351
145
  '/guidance/guidance-on-substantial-amendments-to-a-clinical-trial-if-the-uk-leaves-the-eu-with-no-deal': [
352
146
  ['Heading', 'Investigational medicinal product (IMP) certification and importation']
353
147
  ],
354
- '/guidance/importing-and-exporting-waste-if-theres-no-brexit-deal': [
355
- ['Heading', 'Rules after the UK leaves the EU']
356
- ],
357
- '/guidance/merger-review-and-anti-competitive-activity-after-brexit': [
358
- ['Heading', 'Mergers']
359
- ],
360
- '/guidance/nis-regulations-what-uk-digital-service-providers-operating-in-the-eu-should-do-after-brexit': [
361
- ['Heading', 'How RDSPs are regulated in the UK']
362
- ],
363
- '/guidance/placing-manufactured-goods-on-the-eu-internal-market-if-theres-no-deal': [
364
- ['Heading', 'Appointing an authorised representative or responsible person in the EU']
365
- ],
366
- '/guidance/prepare-to-import-relevant-nuclear-materials-from-the-eu-after-brexit-licensing-requirements': [
367
- ['Heading', 'More information']
368
- ],
369
- '/guidance/prepare-to-use-the-ukca-mark-after-brexit': [
370
- ['Heading', 'Check whether you will need to use the new UKCA marking']
371
- ],
372
- '/guidance/prepare-to-work-and-operate-in-the-european-aviation-sector-after-brexit': [
373
- ['Heading', 'Requirements for aviation businesses operating in Europe after the UK leaves the EU']
374
- ],
375
- '/guidance/public-sector-procurement-after-a-no-deal-brexit': [
376
- ['Heading', 'What will change for contracting authorities and entities']
377
- ],
378
- '/guidance/satellites-and-space-programmes-after-brexit': [
379
- ['Heading', 'Copernicus']
380
- ],
381
- '/guidance/shipping-radioactive-waste-and-spent-fuel-after-brexit': [
382
- ['Heading', 'After Brexit']
383
- ],
384
- '/guidance/trading-timber-imports-and-exports-if-theres-no-brexit-deal': [
385
- ['Heading', 'Importing timber for the UK market']
386
- ],
387
- '/guidance/what-you-need-to-move-goods-between-or-through-common-transit-countries-including-the-eu': [
388
- ['Heading', 'Getting a guarantee']
389
- ],
390
148
  '/taking-goods-out-uk-temporarily/get-an-ata-carnet': [
391
149
  ['Heading', 'Using an ATA Carnet']
392
150
  ],
393
151
  '/wood-packaging-import-export': [
394
152
  ['Heading', 'Export solid wood packaging']
395
153
  ],
396
- '/government/publications/vat-for-businesses-if-theres-no-brexit-deal/vat-for-businesses-if-theres-no-brexit-deal': [
397
- ['Heading', 'UK businesses importing goods from the EU']
398
- ],
399
154
  '/guidance/answers-to-the-most-common-topics-asked-about-by-the-public-for-the-coronavirus-press-conference': [
400
155
  ['Percent', 20],
401
156
  ['Percent', 40],
@@ -403,9 +158,6 @@
403
158
  ['Percent', 80],
404
159
  ['Percent', 100]
405
160
  ],
406
- '/eubusiness': [
407
- ['Heading', 'Additional help and support']
408
- ],
409
161
  '/coronavirus': [
410
162
  ['Percent', 20],
411
163
  ['Percent', 40],
@@ -433,6 +185,19 @@
433
185
  ['Percent', 60],
434
186
  ['Percent', 80],
435
187
  ['Percent', 100]
188
+ ],
189
+ '/get-coronavirus-test': [
190
+ ['Percent', 20],
191
+ ['Percent', 40],
192
+ ['Percent', 60],
193
+ ['Percent', 80],
194
+ ['Percent', 100]
195
+ ],
196
+ '/next-steps-for-your-business/results': [
197
+ ['Heading', 'Things you need to do next'],
198
+ ['Heading', 'Rules to follow'],
199
+ ['Heading', 'Good to know'],
200
+ ['Heading', 'Change your answers']
436
201
  ]
437
202
  }
438
203
 
@@ -326,8 +326,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
326
326
  // Adding an event listener to all anchor link a tags in an accordion is risky but we circumvent this risk partially by only being a layer of accordion behaviour instead of any sort of change to link behaviour
327
327
  GemAccordion.prototype.addEventListenersForAnchors = function () {
328
328
  var links = this.$module.querySelectorAll('.' + this.sectionInnerContent + ' a[href*="#"]')
329
-
330
- links.forEach(function (link) {
329
+ nodeListForEach(links, function (link) {
331
330
  if (link.pathname === window.location.pathname) {
332
331
  link.addEventListener('click', this.openForAnchor.bind(this, link.hash.split('#')[1]))
333
332
  }
@@ -88,6 +88,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
88
88
  if (window.GOVUK.globalBarInit) {
89
89
  window.GOVUK.globalBarInit.init()
90
90
  }
91
+ window.GOVUK.triggerEvent(window, 'cookie-consent')
91
92
  }
92
93
 
93
94
  CookieBanner.prototype.rejectCookieConsent = function () {
@@ -41,6 +41,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
41
41
  this.wrapper.insertBefore(this.statusText, this.showHide.nextSibling)
42
42
 
43
43
  this.showHide.addEventListener('click', this.$module.togglePassword)
44
+ this.moveDataAttributesToButton()
44
45
 
45
46
  this.parentForm = this.input.form
46
47
  var disableFormSubmitCheck = this.$module.getAttribute('data-disable-form-submit-check')
@@ -65,5 +66,16 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
65
66
  this.input.setAttribute('type', 'password')
66
67
  }
67
68
 
69
+ ShowPassword.prototype.moveDataAttributesToButton = function () {
70
+ var attrs = this.input.attributes
71
+ for (var i = attrs.length; i >= 0; i--) {
72
+ var attr = attrs[i]
73
+ if (attr && /^data-button/.test(attr.name)) {
74
+ this.showHide.setAttribute(attr.name.replace('-button', ''), attr.value)
75
+ this.input.removeAttribute(attr.name)
76
+ }
77
+ }
78
+ }
79
+
68
80
  Modules.ShowPassword = ShowPassword
69
81
  })(window.GOVUK.Modules)