govuk_publishing_components 34.12.0 → 34.14.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/app/assets/config/govuk_publishing_components_manifest.js +75 -0
  3. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-auto-tracker.js +4 -1
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +31 -0
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-event-tracker.js +1 -0
  6. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-link-tracker.js +1 -0
  7. data/app/assets/stylesheets/govuk_publishing_components/_individual_component_support.scss +10 -0
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +2 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +2 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +1 -0
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +2 -0
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +1 -0
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +1 -0
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +1 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_character-count.scss +1 -0
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +1 -0
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +1 -0
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +2 -0
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +2 -0
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +1 -0
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_date-input.scss +1 -0
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_details.scss +1 -0
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_devolved-nations.scss +2 -0
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +2 -0
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +2 -0
  27. data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +2 -0
  28. data/app/assets/stylesheets/govuk_publishing_components/components/_error-message.scss +1 -0
  29. data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -0
  30. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +2 -0
  31. data/app/assets/stylesheets/govuk_publishing_components/components/_fieldset.scss +1 -0
  32. data/app/assets/stylesheets/govuk_publishing_components/components/_file-upload.scss +1 -0
  33. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +2 -0
  34. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +2 -0
  35. data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +2 -0
  36. data/app/assets/stylesheets/govuk_publishing_components/components/_hint.scss +1 -0
  37. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +2 -0
  38. data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +2 -0
  39. data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +1 -0
  40. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +2 -0
  41. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +2 -0
  42. data/app/assets/stylesheets/govuk_publishing_components/components/_label.scss +1 -0
  43. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +1 -0
  44. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +2 -0
  45. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +1 -0
  46. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +2 -0
  47. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +2 -0
  48. data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +2 -0
  49. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +1 -0
  50. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +2 -0
  51. data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +1 -0
  52. data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +1 -0
  53. data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +1 -0
  54. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +2 -0
  55. data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +1 -0
  56. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +2 -0
  57. data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +2 -0
  58. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +2 -0
  59. data/app/assets/stylesheets/govuk_publishing_components/components/_select.scss +1 -0
  60. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +2 -0
  61. data/app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss +2 -0
  62. data/app/assets/stylesheets/govuk_publishing_components/components/_signup-link.scss +2 -0
  63. data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +2 -0
  64. data/app/assets/stylesheets/govuk_publishing_components/components/_skip-link.scss +1 -0
  65. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +2 -0
  66. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +2 -0
  67. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +2 -0
  68. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +2 -0
  69. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +1 -0
  70. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-list.scss +1 -0
  71. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +1 -0
  72. data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +1 -0
  73. data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +1 -0
  74. data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +2 -0
  75. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +2 -0
  76. data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +1 -0
  77. data/app/views/govuk_publishing_components/components/_accordion.html.erb +2 -0
  78. data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -0
  79. data/app/views/govuk_publishing_components/components/_attachment.html.erb +2 -0
  80. data/app/views/govuk_publishing_components/components/_attachment_link.html.erb +2 -0
  81. data/app/views/govuk_publishing_components/components/_back_link.html.erb +2 -0
  82. data/app/views/govuk_publishing_components/components/_big_number.html.erb +3 -1
  83. data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +2 -0
  84. data/app/views/govuk_publishing_components/components/_button.html.erb +2 -0
  85. data/app/views/govuk_publishing_components/components/_cards.html.erb +2 -0
  86. data/app/views/govuk_publishing_components/components/_character_count.html.erb +2 -0
  87. data/app/views/govuk_publishing_components/components/_checkboxes.html.erb +2 -0
  88. data/app/views/govuk_publishing_components/components/_contents_list.html.erb +2 -0
  89. data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +7 -4
  90. data/app/views/govuk_publishing_components/components/_contextual_guidance.html.erb +2 -0
  91. data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +5 -2
  92. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +2 -0
  93. data/app/views/govuk_publishing_components/components/_date_input.html.erb +2 -0
  94. data/app/views/govuk_publishing_components/components/_details.html.erb +2 -0
  95. data/app/views/govuk_publishing_components/components/_devolved_nations.html.erb +2 -0
  96. data/app/views/govuk_publishing_components/components/_document_list.html.erb +2 -0
  97. data/app/views/govuk_publishing_components/components/_emergency_banner.html.erb +2 -0
  98. data/app/views/govuk_publishing_components/components/_error_alert.html.erb +2 -0
  99. data/app/views/govuk_publishing_components/components/_error_message.html.erb +2 -0
  100. data/app/views/govuk_publishing_components/components/_error_summary.html.erb +2 -0
  101. data/app/views/govuk_publishing_components/components/_feedback.html.erb +2 -0
  102. data/app/views/govuk_publishing_components/components/_fieldset.html.erb +2 -0
  103. data/app/views/govuk_publishing_components/components/_file_upload.html.erb +2 -0
  104. data/app/views/govuk_publishing_components/components/_govspeak.html.erb +1 -0
  105. data/app/views/govuk_publishing_components/components/_govspeak_html_publication.html.erb +2 -0
  106. data/app/views/govuk_publishing_components/components/_heading.html.erb +2 -0
  107. data/app/views/govuk_publishing_components/components/_hint.html.erb +2 -0
  108. data/app/views/govuk_publishing_components/components/_image_card.html.erb +5 -3
  109. data/app/views/govuk_publishing_components/components/_input.html.erb +2 -0
  110. data/app/views/govuk_publishing_components/components/_inset_text.html.erb +2 -0
  111. data/app/views/govuk_publishing_components/components/_intervention.html.erb +2 -0
  112. data/app/views/govuk_publishing_components/components/_inverse_header.html.erb +2 -0
  113. data/app/views/govuk_publishing_components/components/_label.html.erb +2 -0
  114. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +2 -0
  115. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +5 -1
  116. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +2 -0
  117. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +2 -0
  118. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +2 -0
  119. data/app/views/govuk_publishing_components/components/_lead_paragraph.html.erb +2 -0
  120. data/app/views/govuk_publishing_components/components/_metadata.html.erb +2 -0
  121. data/app/views/govuk_publishing_components/components/_modal_dialogue.html.erb +2 -0
  122. data/app/views/govuk_publishing_components/components/_notice.html.erb +2 -0
  123. data/app/views/govuk_publishing_components/components/_organisation_logo.html.erb +2 -0
  124. data/app/views/govuk_publishing_components/components/_panel.html.erb +2 -0
  125. data/app/views/govuk_publishing_components/components/_phase_banner.html.erb +2 -0
  126. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +6 -1
  127. data/app/views/govuk_publishing_components/components/_print_link.html.erb +2 -0
  128. data/app/views/govuk_publishing_components/components/_radio.html.erb +2 -0
  129. data/app/views/govuk_publishing_components/components/_related_navigation.html.erb +4 -0
  130. data/app/views/govuk_publishing_components/components/_reorderable_list.html.erb +2 -0
  131. data/app/views/govuk_publishing_components/components/_search.html.erb +2 -0
  132. data/app/views/govuk_publishing_components/components/_select.html.erb +2 -0
  133. data/app/views/govuk_publishing_components/components/_share_links.html.erb +2 -0
  134. data/app/views/govuk_publishing_components/components/_show_password.html.erb +2 -0
  135. data/app/views/govuk_publishing_components/components/_signup_link.html.erb +2 -0
  136. data/app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb +2 -0
  137. data/app/views/govuk_publishing_components/components/_skip_link.html.erb +2 -0
  138. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +2 -0
  139. data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +12 -2
  140. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +21 -8
  141. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +2 -0
  142. data/app/views/govuk_publishing_components/components/_success_alert.html.erb +2 -0
  143. data/app/views/govuk_publishing_components/components/_summary_list.html.erb +2 -0
  144. data/app/views/govuk_publishing_components/components/_table.html.erb +3 -1
  145. data/app/views/govuk_publishing_components/components/_tabs.html.erb +2 -0
  146. data/app/views/govuk_publishing_components/components/_textarea.html.erb +2 -0
  147. data/app/views/govuk_publishing_components/components/_title.html.erb +2 -0
  148. data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +2 -0
  149. data/app/views/govuk_publishing_components/components/_warning_text.html.erb +2 -0
  150. data/app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml +13 -0
  151. data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +11 -0
  152. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +6 -0
  153. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_related.yml +10 -0
  154. data/lib/govuk_publishing_components/app_helpers/asset_helper.rb +86 -0
  155. data/lib/govuk_publishing_components/config.rb +3 -0
  156. data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +3 -2
  157. data/lib/govuk_publishing_components/presenters/breadcrumbs.rb +3 -1
  158. data/lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb +2 -1
  159. data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +1 -1
  160. data/lib/govuk_publishing_components/railtie.rb +7 -0
  161. data/lib/govuk_publishing_components/version.rb +1 -1
  162. data/lib/govuk_publishing_components.rb +3 -0
  163. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd36433fa99aed8ea4144f791e7e78f72ae786e1148b7826758d65e271f98e5e
4
- data.tar.gz: ce9e9975edbf99d74771088e9dadcd610ffacc345358afc25e85640a110d4035
3
+ metadata.gz: c4137db9fa2f61ba41157832c2d8a959756eb36e11837e4d58654b264d68a3f0
4
+ data.tar.gz: a3eb50516bf440839af9b74e1fc5ab44e9fc21ee0afb7910cdb742d10a6d3182
5
5
  SHA512:
6
- metadata.gz: bbb41c9f45ecf8ae1e4f12d80f871392b08e97bf8c7074e22a2a1d265cb67d317bc1350cb1eb855270e1a48945c1e0a0b156e8e0c50eed2ed17998cb921ad640
7
- data.tar.gz: bce8a83d09679a2e20a5bc5e05f112a207e455ed8eae2b726ad670c19c84348868a918ec82abd30119196332b6dc5a3f5443697622008eadee028f9d2ca2f974
6
+ metadata.gz: 3e780d3b9f9f2e72c471767c7be3bb611bae0eb7f2b211e19ae85b6fdae4338ae20d346c53b72c6d1b1d0e3d06447084eb389aeb64960df48b68d60bdaa4ed7e
7
+ data.tar.gz: 7cfd8703805c415ffad093fd18dc104d6d41c7e51305673c178b90778eb52bf3037b52ea2550cdb42c0ba4291d6e53c95c577800f2b8fe398ee503c1a3910b76
@@ -12,3 +12,78 @@
12
12
  //= link govuk_publishing_components/vendor/lux/lux-reporter.js
13
13
  //= link govuk_publishing_components/vendor/lux/lux-measurer.js
14
14
  //= link component_guide/application.css
15
+
16
+ // components
17
+ //= link govuk_publishing_components/components/_accordion.css
18
+ //= link govuk_publishing_components/components/_action-link.css
19
+ //= link govuk_publishing_components/components/_attachment.css
20
+ //= link govuk_publishing_components/components/_attachment-link.css
21
+ //= link govuk_publishing_components/components/_back-link.css
22
+ //= link govuk_publishing_components/components/_big-number.css
23
+ //= link govuk_publishing_components/components/_breadcrumbs.css
24
+ //= link govuk_publishing_components/components/_button.css
25
+ //= link govuk_publishing_components/components/_cards.css
26
+ //= link govuk_publishing_components/components/_character-count.css
27
+ //= link govuk_publishing_components/components/_checkboxes.css
28
+ //= link govuk_publishing_components/components/_contents-list.css
29
+ //= link govuk_publishing_components/components/_contextual-guidance.css
30
+ //= link govuk_publishing_components/components/_contextual-sidebar.css
31
+ //= link govuk_publishing_components/components/_cookie-banner.css
32
+ //= link govuk_publishing_components/components/_copy-to-clipboard.css
33
+ //= link govuk_publishing_components/components/_date-input.css
34
+ //= link govuk_publishing_components/components/_details.css
35
+ //= link govuk_publishing_components/components/_devolved-nations.css
36
+ //= link govuk_publishing_components/components/_document-list.css
37
+ //= link govuk_publishing_components/components/_emergency-banner.css
38
+ //= link govuk_publishing_components/components/_error-alert.css
39
+ //= link govuk_publishing_components/components/_error-message.css
40
+ //= link govuk_publishing_components/components/_error-summary.css
41
+ //= link govuk_publishing_components/components/_feedback.css
42
+ //= link govuk_publishing_components/components/_fieldset.css
43
+ //= link govuk_publishing_components/components/_file-upload.css
44
+ //= link govuk_publishing_components/components/_govspeak-html-publication.css
45
+ //= link govuk_publishing_components/components/_govspeak.css
46
+ //= link govuk_publishing_components/components/_heading.css
47
+ //= link govuk_publishing_components/components/_hint.css
48
+ //= link govuk_publishing_components/components/_image-card.css
49
+ //= link govuk_publishing_components/components/_input.css
50
+ //= link govuk_publishing_components/components/_inset-text.css
51
+ //= link govuk_publishing_components/components/_intervention.css
52
+ //= link govuk_publishing_components/components/_inverse-header.css
53
+ //= link govuk_publishing_components/components/_label.css
54
+ //= link govuk_publishing_components/components/_layout-footer.css
55
+ //= link govuk_publishing_components/components/_layout-for-admin.css
56
+ //= link govuk_publishing_components/components/_layout-for-public.css
57
+ //= link govuk_publishing_components/components/_layout-header.css
58
+ //= link govuk_publishing_components/components/_layout-super-navigation-header.css
59
+ //= link govuk_publishing_components/components/_lead-paragraph.css
60
+ //= link govuk_publishing_components/components/_metadata.css
61
+ //= link govuk_publishing_components/components/_modal-dialogue.css
62
+ //= link govuk_publishing_components/components/_notice.css
63
+ //= link govuk_publishing_components/components/_organisation-logo.css
64
+ //= link govuk_publishing_components/components/_panel.css
65
+ //= link govuk_publishing_components/components/_phase-banner.css
66
+ //= link govuk_publishing_components/components/_previous-and-next-navigation.css
67
+ //= link govuk_publishing_components/components/_print-link.css
68
+ //= link govuk_publishing_components/components/_radio.css
69
+ //= link govuk_publishing_components/components/_related-navigation.css
70
+ //= link govuk_publishing_components/components/_reorderable-list.css
71
+ //= link govuk_publishing_components/components/_search.css
72
+ //= link govuk_publishing_components/components/_select.css
73
+ //= link govuk_publishing_components/components/_share-links.css
74
+ //= link govuk_publishing_components/components/_show-password.css
75
+ //= link govuk_publishing_components/components/_signup-link.css
76
+ //= link govuk_publishing_components/components/_single-page-notification-button.css
77
+ //= link govuk_publishing_components/components/_skip-link.css
78
+ //= link govuk_publishing_components/components/_step-by-step-nav-header.css
79
+ //= link govuk_publishing_components/components/_step-by-step-nav-related.css
80
+ //= link govuk_publishing_components/components/_step-by-step-nav.css
81
+ //= link govuk_publishing_components/components/_subscription-links.css
82
+ //= link govuk_publishing_components/components/_success-alert.css
83
+ //= link govuk_publishing_components/components/_summary-list.css
84
+ //= link govuk_publishing_components/components/_tabs.css
85
+ //= link govuk_publishing_components/components/_table.css
86
+ //= link govuk_publishing_components/components/_textarea.css
87
+ //= link govuk_publishing_components/components/_title.css
88
+ //= link govuk_publishing_components/components/_translation-nav.css
89
+ //= link govuk_publishing_components/components/_warning-text.css
@@ -28,13 +28,16 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
28
28
  if (window.dataLayer) {
29
29
  try {
30
30
  var data = this.module.getAttribute(this.trackingTrigger)
31
- data = JSON.parse(data)
31
+ data = JSON.parse(data) || {}
32
32
  } catch (e) {
33
33
  // if there's a problem with the config, don't start the tracker
34
34
  console.error('GA4 configuration error: ' + e.message, window.location)
35
35
  return
36
36
  }
37
37
 
38
+ if (data.index) {
39
+ data.index = window.GOVUK.analyticsGa4.core.trackFunctions.createIndexObject(data.index)
40
+ }
38
41
  var schemas = new window.GOVUK.analyticsGa4.Schemas()
39
42
  var schema = schemas.mergeProperties(data, 'event_data')
40
43
 
@@ -237,6 +237,37 @@ window.GOVUK.analyticsGa4 = window.GOVUK.analyticsGa4 || {};
237
237
  var ga4LinkData = JSON.parse(module.getAttribute('data-ga4-link'))
238
238
  ga4LinkData.index_total = totalLinks
239
239
  module.setAttribute('data-ga4-link', JSON.stringify(ga4LinkData))
240
+ },
241
+
242
+ // index is given as a string of the form 1.2.3 or 1.2
243
+ // split this into named sub-parameters
244
+ createIndexObject: function (index) {
245
+ if (typeof index === 'undefined') {
246
+ return undefined
247
+ }
248
+ if (typeof index === 'object') {
249
+ return index
250
+ }
251
+
252
+ index = index.toString().split('.')
253
+ // this will soon include 'index_section_count'
254
+ // number of sections overall in the thing being tracked (but not yet in use)
255
+ switch (index.length) {
256
+ case 1:
257
+ return {
258
+ index_section: parseInt(index[0])
259
+ }
260
+ case 2:
261
+ return {
262
+ index_section: parseInt(index[0]),
263
+ index_link: parseInt(index[1])
264
+ }
265
+ case 3:
266
+ return {
267
+ index_section: parseInt(index[1]),
268
+ index_link: parseInt(index[2])
269
+ }
270
+ }
240
271
  }
241
272
  },
242
273
 
@@ -42,6 +42,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
42
42
 
43
43
  var text = data.text || event.target.textContent
44
44
  data.text = window.GOVUK.analyticsGa4.core.trackFunctions.removeLinesAndExtraSpaces(text)
45
+ data.index = window.GOVUK.analyticsGa4.core.trackFunctions.createIndexObject(data.index)
45
46
 
46
47
  var schemas = new window.GOVUK.analyticsGa4.Schemas()
47
48
  var schema = schemas.mergeProperties(data, 'event_data')
@@ -87,6 +87,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
87
87
  data.method = window.GOVUK.analyticsGa4.core.trackFunctions.getClickType(event)
88
88
  data.external = window.GOVUK.analyticsGa4.core.trackFunctions.isExternalLink(data.url) ? 'true' : 'false'
89
89
  data.index = event.target.getAttribute('data-ga4-index') ? parseInt(event.target.getAttribute('data-ga4-index')) : data.index || undefined
90
+ data.index = window.GOVUK.analyticsGa4.core.trackFunctions.createIndexObject(data.index)
90
91
 
91
92
  var schemas = new window.GOVUK.analyticsGa4.Schemas()
92
93
  var schema = schemas.mergeProperties(data, 'event_data')
@@ -0,0 +1,10 @@
1
+ $govuk-new-link-styles: true;
2
+
3
+ // This flag stops the font from being included in this components's
4
+ // stylesheet - the font is being served by Static across all of GOV.UK, so is
5
+ // not needed here.
6
+ $govuk-include-default-font-face: false;
7
+
8
+ // Each component needs access to the variables, functions, and mixins from
9
+ // GOVUK Frontend.
10
+ @import "govuk_frontend_support";
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "mixins/prefixed-transform";
2
3
  @import "govuk/components/accordion/accordion";
3
4
 
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-action-link {
2
4
  display: table;
3
5
 
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  $thumbnail-width: 99px;
2
4
  $thumbnail-height: 140px;
3
5
  $thumbnail-border-width: 5px;
@@ -1 +1,2 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/back-link/back-link";
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-big-number {
2
4
  margin-bottom: govuk-spacing(3);
3
5
  @include govuk-text-colour;
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/breadcrumbs/breadcrumbs";
2
3
 
3
4
  .gem-c-breadcrumbs--inverse .govuk-breadcrumbs__list-item .govuk-breadcrumbs__link {
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/button/button";
2
3
 
3
4
  // Because govuk-frontend adds a responsive bottom margin by default for each component
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "mixins/grid-helper";
2
3
  @import "mixins/prefixed-transform";
3
4
 
@@ -1 +1,2 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/character-count/character-count";
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/checkboxes/checkboxes";
2
3
 
3
4
  .govuk-checkboxes--nested {
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "helpers/contents-list-helper";
2
3
 
3
4
  .gem-c-contents-list {
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-contextual-guidance {
2
4
  .govuk-grid-column-one-third {
3
5
  position: relative;
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-contextual-sidebar__related-links {
2
4
  border-top: 2px solid $govuk-brand-colour;
3
5
  }
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/cookie-banner/cookie-banner";
2
3
  $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
3
4
 
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/date-input/date-input";
2
3
 
3
4
  // Add spacing between input items on narrow containers when they collapse under each other
@@ -1 +1,2 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/details/details";
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-devolved-nations {
2
4
  background: govuk-colour("light-grey");
3
5
  margin-bottom: govuk-spacing(3);
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-document-list {
2
4
  @include govuk-text-colour;
3
5
  @include govuk-font(19);
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-emergency-banner {
2
4
  @include govuk-font(19);
3
5
  background-color: govuk-colour("mid-grey");
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-error-alert {
2
4
  color: $govuk-text-colour;
3
5
  padding: govuk-spacing(3);
@@ -1 +1,2 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/error-message/error-message";
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/error-summary/error-summary";
2
3
 
3
4
  .gem-c-error-summary__list-item {
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-feedback {
2
4
  background: govuk-colour("white");
3
5
  margin-top: govuk-spacing(6);
@@ -1 +1,2 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/fieldset/fieldset";
@@ -1 +1,2 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/file-upload/file-upload";
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  // stylelint-disable max-nesting-depth
2
4
 
3
5
  // Override govspeak styles with HTML publication specific ones
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  @import "govspeak/advisory";
2
4
  @import "govspeak/attachment";
3
5
  @import "govspeak/button";
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-heading {
2
4
  margin: 0;
3
5
  }
@@ -1 +1,2 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/hint/hint";
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-image-card {
2
4
  @include govuk-clearfix;
3
5
  @include govuk-text-colour;
@@ -1,4 +1,6 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/input/input";
3
+
2
4
  $search-icon-size: 40px;
3
5
 
4
6
  .gem-c-input__search-icon {
@@ -1 +1,2 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/inset-text/inset-text";
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-intervention {
2
4
  @include govuk-text-colour;
3
5
  @include govuk-responsive-padding(3);
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-inverse-header {
2
4
  width: 100%;
3
5
  background-color: govuk-colour("blue");
@@ -1 +1,2 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/label/label";
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/footer/footer";
2
3
 
3
4
  .gem-c-layout-footer--border {
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-layout-for-public {
2
4
  font-family: $govuk-font-family;
3
5
  }
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "mixins/prefixed-transform";
2
3
  @import "mixins/grid-helper";
3
4
 
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-lead-paragraph {
2
4
  @include govuk-text-colour;
3
5
  @include govuk-font(24);
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-metadata {
2
4
  @include govuk-text-colour;
3
5
  @include govuk-font(16);
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  $govuk-modal-margin: govuk-spacing(6);
2
4
  $govuk-modal-close-button-size: 44px;
3
5
  $govuk-modal-z-index: 1000;
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/notification-banner/notification-banner";
2
3
 
3
4
  .gem-c-notice {
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  // Default logo corresponds with the "medium stacked" Whitehall equivalent
2
4
  .gem-c-organisation-logo {
3
5
  font-size: 13px;
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/panel/panel";
2
3
 
3
4
  .gem-c-panel__prepend {
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/phase-banner/phase-banner";
2
3
 
3
4
  .gem-c-phase-banner {
@@ -1 +1,2 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/pagination/pagination";
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  $gem-c-print-link-background-width: 16px;
2
4
  $gem-c-print-link-background-height: 18px;
3
5
 
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/radios/radios";
2
3
 
3
4
  .gem-c-radio__heading-text {
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-related-navigation {
2
4
  @include govuk-text-colour;
3
5
  border-top: 2px solid govuk-colour("blue");
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-reorderable-list {
2
4
  @include govuk-font(19, bold);
3
5
 
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  $input-size: 40px;
2
4
  $large-input-size: 50px;
3
5
 
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/select/select";
2
3
 
3
4
  .gem-c-select__select--full-width {
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  $share-button-width: 30px;
2
4
  $share-button-height: 30px;
3
5
 
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-show-password__input-wrapper {
2
4
  display: table; // IE fallback
3
5
  display: flex;
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-signup-link__link {
2
4
  @include govuk-font($size: 19);
3
5
  }
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-single-page-notification-button__submit {
2
4
  padding: govuk-spacing(2);
3
5
  margin: govuk-spacing(0);
@@ -1 +1,2 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/skip-link/skip-link";
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-step-nav-header {
2
4
  @include govuk-font(24, $weight: bold);
3
5
  @include govuk-text-colour;
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-step-nav-related {
2
4
  @include govuk-text-colour;
3
5
  border-top: 2px solid govuk-colour("blue");
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  $stroke-width: 1px;
2
4
  $number-circle-size: 30px;
3
5
  $number-circle-size-large: 35px;
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-subscription-links {
2
4
  @include govuk-text-colour;
3
5
  @include govuk-font(19, $weight: bold);
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/notification-banner/notification-banner";
2
3
 
3
4
  .gem-c-success-alert__message {
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/summary-list/summary-list";
2
3
 
3
4
  .gem-c-summary-list {
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/table/table";
2
3
 
3
4
  $table-border-width: 1px;
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/tabs/tabs";
2
3
 
3
4
  .js-enabled {
@@ -1,3 +1,4 @@
1
+ @import "govuk_publishing_components/individual_component_support";
1
2
  @import "govuk/components/textarea/textarea";
2
3
 
3
4
  .gem-c-textarea {
@@ -1,3 +1,5 @@
1
+ @import "govuk_publishing_components/individual_component_support";
2
+
1
3
  .gem-c-title--inverse {
2
4
  color: govuk-colour("white");
3
5