govuk_publishing_components 57.1.0 → 57.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/govuk_publishing_components/intervention/hmrc.svg +5 -0
  3. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +4 -0
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-event-tracker.js +22 -0
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-form-tracker.js +72 -12
  6. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-specialist-link-tracker.js +2 -2
  7. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/pii-remover.js +10 -0
  8. data/app/assets/javascripts/govuk_publishing_components/components/add-another.js +57 -7
  9. data/app/assets/javascripts/govuk_publishing_components/components/reorderable-list.js +24 -4
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +17 -0
  11. data/app/controllers/govuk_publishing_components/audit_controller.rb +0 -1
  12. data/app/models/govuk_publishing_components/audit_comparer.rb +0 -1
  13. data/app/views/govuk_publishing_components/components/_add_another.html.erb +2 -0
  14. data/app/views/govuk_publishing_components/components/_intervention.html.erb +7 -2
  15. data/app/views/govuk_publishing_components/components/_reorderable_list.html.erb +24 -2
  16. data/app/views/govuk_publishing_components/components/_select.html.erb +6 -2
  17. data/app/views/govuk_publishing_components/components/docs/add_another.yml +25 -0
  18. data/app/views/govuk_publishing_components/components/docs/intervention.yml +10 -0
  19. data/app/views/govuk_publishing_components/components/docs/reorderable_list.yml +16 -0
  20. data/app/views/govuk_publishing_components/components/docs/select.yml +25 -0
  21. data/config/locales/ar.yml +12 -3
  22. data/config/locales/az.yml +12 -3
  23. data/config/locales/be.yml +12 -3
  24. data/config/locales/bg.yml +12 -3
  25. data/config/locales/bn.yml +12 -3
  26. data/config/locales/cs.yml +12 -3
  27. data/config/locales/cy.yml +14 -5
  28. data/config/locales/da.yml +12 -3
  29. data/config/locales/de.yml +12 -3
  30. data/config/locales/dr.yml +12 -3
  31. data/config/locales/el.yml +12 -3
  32. data/config/locales/en.yml +16 -7
  33. data/config/locales/es-419.yml +12 -3
  34. data/config/locales/es.yml +12 -3
  35. data/config/locales/et.yml +12 -3
  36. data/config/locales/fa.yml +12 -3
  37. data/config/locales/fi.yml +12 -3
  38. data/config/locales/fr.yml +12 -3
  39. data/config/locales/gd.yml +12 -3
  40. data/config/locales/gu.yml +12 -3
  41. data/config/locales/he.yml +12 -3
  42. data/config/locales/hi.yml +12 -3
  43. data/config/locales/hr.yml +12 -3
  44. data/config/locales/hu.yml +12 -3
  45. data/config/locales/hy.yml +12 -3
  46. data/config/locales/id.yml +12 -3
  47. data/config/locales/is.yml +12 -3
  48. data/config/locales/it.yml +12 -3
  49. data/config/locales/ja.yml +12 -3
  50. data/config/locales/ka.yml +12 -3
  51. data/config/locales/kk.yml +12 -3
  52. data/config/locales/ko.yml +12 -3
  53. data/config/locales/lt.yml +12 -3
  54. data/config/locales/lv.yml +12 -3
  55. data/config/locales/ms.yml +12 -3
  56. data/config/locales/mt.yml +12 -3
  57. data/config/locales/ne.yml +12 -6
  58. data/config/locales/nl.yml +12 -3
  59. data/config/locales/no.yml +12 -3
  60. data/config/locales/pa-pk.yml +12 -3
  61. data/config/locales/pa.yml +12 -3
  62. data/config/locales/pl.yml +12 -3
  63. data/config/locales/ps.yml +12 -3
  64. data/config/locales/pt.yml +12 -3
  65. data/config/locales/ro.yml +12 -3
  66. data/config/locales/ru.yml +12 -3
  67. data/config/locales/si.yml +12 -3
  68. data/config/locales/sk.yml +12 -3
  69. data/config/locales/sl.yml +12 -3
  70. data/config/locales/so.yml +12 -3
  71. data/config/locales/sq.yml +12 -3
  72. data/config/locales/sr.yml +12 -3
  73. data/config/locales/sv.yml +12 -3
  74. data/config/locales/sw.yml +12 -3
  75. data/config/locales/ta.yml +12 -3
  76. data/config/locales/th.yml +12 -3
  77. data/config/locales/tk.yml +12 -3
  78. data/config/locales/tr.yml +12 -3
  79. data/config/locales/uk.yml +12 -3
  80. data/config/locales/ur.yml +12 -3
  81. data/config/locales/uz.yml +12 -3
  82. data/config/locales/vi.yml +12 -3
  83. data/config/locales/zh-hk.yml +12 -3
  84. data/config/locales/zh-tw.yml +12 -3
  85. data/config/locales/zh.yml +12 -3
  86. data/lib/govuk_publishing_components/presenters/devolved_nations_helper.rb +14 -13
  87. data/lib/govuk_publishing_components/presenters/select_helper.rb +5 -3
  88. data/lib/govuk_publishing_components/version.rb +1 -1
  89. metadata +2 -1
@@ -42,6 +42,19 @@ examples:
42
42
  selected: true
43
43
  - text: Option three
44
44
  value: option3
45
+ with_disabled_options:
46
+ description: Options can be disabled using the `disabled` parameter. Note that it is possible to have an option that is both disabled and selected.
47
+ data:
48
+ id: dropdown2-0
49
+ label: Option 3 disabled
50
+ options:
51
+ - text: Option one
52
+ value: option1
53
+ - text: Option two
54
+ value: option2
55
+ - text: Option three
56
+ value: option3
57
+ disabled: true
45
58
  with_hint:
46
59
  description: When a hint is included the `aria-describedby` attribute of the select is included to point to the hint. When an error and a hint are present, that attribute includes the IDs of both the hint and the error.
47
60
  data:
@@ -54,6 +67,18 @@ examples:
54
67
  value: option1
55
68
  - text: Something else
56
69
  value: option2
70
+ with_aria_controls:
71
+ data:
72
+ id: dropdown4-4
73
+ label: My Dropdown
74
+ aria_controls: dropdown4-3
75
+ options:
76
+ - text: Option one
77
+ value: option1
78
+ - text: Option two
79
+ value: option2
80
+ - text: Option three
81
+ value: option3
57
82
  with_data_attributes:
58
83
  description: Data attributes can be passed to the select component if needed.
59
84
  data:
@@ -63,18 +63,27 @@ ar:
63
63
  devolved_nations:
64
64
  applies_to:
65
65
  aria_label:
66
- connectors:
67
- last_word:
68
- two_words:
69
66
  england:
67
+ end:
68
+ middle:
69
+ start:
70
70
  northern_ireland:
71
+ end:
72
+ middle:
73
+ start:
71
74
  scotland:
75
+ end:
76
+ middle:
77
+ start:
72
78
  type:
73
79
  consultation:
74
80
  detailed_guide:
75
81
  guidance:
76
82
  publication:
77
83
  wales:
84
+ end:
85
+ middle:
86
+ start:
78
87
  feedback:
79
88
  close: إغلاق
80
89
  dont_include_personal_info: لا تقم بتضمين معلومات شخصية أو مالية مثل رقم التأمين الوطني أو تفاصيل بطاقة الائتمان الخاصة بك.
@@ -60,18 +60,27 @@ az:
60
60
  devolved_nations:
61
61
  applies_to:
62
62
  aria_label:
63
- connectors:
64
- last_word:
65
- two_words:
66
63
  england:
64
+ end:
65
+ middle:
66
+ start:
67
67
  northern_ireland:
68
+ end:
69
+ middle:
70
+ start:
68
71
  scotland:
72
+ end:
73
+ middle:
74
+ start:
69
75
  type:
70
76
  consultation:
71
77
  detailed_guide:
72
78
  guidance:
73
79
  publication:
74
80
  wales:
81
+ end:
82
+ middle:
83
+ start:
75
84
  feedback:
76
85
  close: Bağla
77
86
  dont_include_personal_info: Sosial sığorta nömrəniz və ya kredit kartınızın məlumatları kimi şəxsi və ya maliyyə məlumatları daxil etməyin.
@@ -66,18 +66,27 @@ be:
66
66
  devolved_nations:
67
67
  applies_to:
68
68
  aria_label:
69
- connectors:
70
- last_word:
71
- two_words:
72
69
  england:
70
+ end:
71
+ middle:
72
+ start:
73
73
  northern_ireland:
74
+ end:
75
+ middle:
76
+ start:
74
77
  scotland:
78
+ end:
79
+ middle:
80
+ start:
75
81
  type:
76
82
  consultation:
77
83
  detailed_guide:
78
84
  guidance:
79
85
  publication:
80
86
  wales:
87
+ end:
88
+ middle:
89
+ start:
81
90
  feedback:
82
91
  close: Зачынiць
83
92
  dont_include_personal_info: Не ўключайце асабістай ці фінансавай інфармацыі, напрыклад, нумар дзяржаўнага страхавання ці дадзеныя крэдытнай карты.
@@ -64,18 +64,27 @@ bg:
64
64
  devolved_nations:
65
65
  applies_to:
66
66
  aria_label:
67
- connectors:
68
- last_word:
69
- two_words:
70
67
  england:
68
+ end:
69
+ middle:
70
+ start:
71
71
  northern_ireland:
72
+ end:
73
+ middle:
74
+ start:
72
75
  scotland:
76
+ end:
77
+ middle:
78
+ start:
73
79
  type:
74
80
  consultation:
75
81
  detailed_guide:
76
82
  guidance:
77
83
  publication:
78
84
  wales:
85
+ end:
86
+ middle:
87
+ start:
79
88
  feedback:
80
89
  close: Затваряне
81
90
  dont_include_personal_info: Не включвайте лична или финансова информация, като например номера на националната си застраховка или данни за кредитна карта.
@@ -61,18 +61,27 @@ bn:
61
61
  devolved_nations:
62
62
  applies_to:
63
63
  aria_label:
64
- connectors:
65
- last_word:
66
- two_words:
67
64
  england:
65
+ end:
66
+ middle:
67
+ start:
68
68
  northern_ireland:
69
+ end:
70
+ middle:
71
+ start:
69
72
  scotland:
73
+ end:
74
+ middle:
75
+ start:
70
76
  type:
71
77
  consultation:
72
78
  detailed_guide:
73
79
  guidance:
74
80
  publication:
75
81
  wales:
82
+ end:
83
+ middle:
84
+ start:
76
85
  feedback:
77
86
  close: বন্ধ করুন
78
87
  dont_include_personal_info: আপনার জাতীয় বিমা নম্বর বা ক্রেডিট কার্ডের তথ্যের মতো ব্যক্তিগত বা আর্থিক তথ্য অন্তর্ভুক্ত করবেন না।
@@ -65,18 +65,27 @@ cs:
65
65
  devolved_nations:
66
66
  applies_to:
67
67
  aria_label:
68
- connectors:
69
- last_word:
70
- two_words:
71
68
  england:
69
+ end:
70
+ middle:
71
+ start:
72
72
  northern_ireland:
73
+ end:
74
+ middle:
75
+ start:
73
76
  scotland:
77
+ end:
78
+ middle:
79
+ start:
74
80
  type:
75
81
  consultation:
76
82
  detailed_guide:
77
83
  guidance:
78
84
  publication:
79
85
  wales:
86
+ end:
87
+ middle:
88
+ start:
80
89
  feedback:
81
90
  close: Zavřít
82
91
  dont_include_personal_info: Neuvádějte osobní nebo finanční údaje, jako je číslo národního pojištění nebo údaje o kreditní kartě.
@@ -64,18 +64,27 @@ cy:
64
64
  devolved_nations:
65
65
  applies_to: Yn berthnasol i
66
66
  aria_label:
67
- connectors:
68
- last_word: " a "
69
- two_words: " a "
70
- england: Loegr
67
+ england:
68
+ end: " a Lloegr"
69
+ middle: ", Lloegr"
70
+ start: Loegr
71
71
  northern_ireland:
72
+ end: " a Gogledd Iwerddon"
73
+ middle: ", Gogledd Iwerddon"
74
+ start: Ogledd Iwerddon
72
75
  scotland:
76
+ end: " a'r Alban"
77
+ middle: ", yr Alban"
78
+ start: "'r Alban"
73
79
  type:
74
80
  consultation:
75
81
  detailed_guide:
76
82
  guidance:
77
83
  publication:
78
- wales: Gymru
84
+ wales:
85
+ end: " a Chymru"
86
+ middle: ", Cymru"
87
+ start: Gymru
79
88
  feedback:
80
89
  close: Cau
81
90
  dont_include_personal_info: Peidiwch â chynnwys gwybodaeth bersonol neu ariannol fel eich rhif Yswiriant Gwladol neu rif cerdyn credyd.
@@ -61,18 +61,27 @@ da:
61
61
  devolved_nations:
62
62
  applies_to:
63
63
  aria_label:
64
- connectors:
65
- last_word:
66
- two_words:
67
64
  england:
65
+ end:
66
+ middle:
67
+ start:
68
68
  northern_ireland:
69
+ end:
70
+ middle:
71
+ start:
69
72
  scotland:
73
+ end:
74
+ middle:
75
+ start:
70
76
  type:
71
77
  consultation:
72
78
  detailed_guide:
73
79
  guidance:
74
80
  publication:
75
81
  wales:
82
+ end:
83
+ middle:
84
+ start:
76
85
  feedback:
77
86
  close: Luk
78
87
  dont_include_personal_info: Do not include personal or financial information such as your national insurance number or credit card information.
@@ -64,18 +64,27 @@ de:
64
64
  devolved_nations:
65
65
  applies_to:
66
66
  aria_label:
67
- connectors:
68
- last_word:
69
- two_words:
70
67
  england:
68
+ end:
69
+ middle:
70
+ start:
71
71
  northern_ireland:
72
+ end:
73
+ middle:
74
+ start:
72
75
  scotland:
76
+ end:
77
+ middle:
78
+ start:
73
79
  type:
74
80
  consultation:
75
81
  detailed_guide:
76
82
  guidance:
77
83
  publication:
78
84
  wales:
85
+ end:
86
+ middle:
87
+ start:
79
88
  feedback:
80
89
  close: Schließen
81
90
  dont_include_personal_info: Geben Sie keine personenbezogenen oder Finanzdaten wie Ihre Sozialversicherungsnummer oder Kreditkartendaten an.
@@ -62,18 +62,27 @@ dr:
62
62
  devolved_nations:
63
63
  applies_to:
64
64
  aria_label:
65
- connectors:
66
- last_word:
67
- two_words:
68
65
  england:
66
+ end:
67
+ middle:
68
+ start:
69
69
  northern_ireland:
70
+ end:
71
+ middle:
72
+ start:
70
73
  scotland:
74
+ end:
75
+ middle:
76
+ start:
71
77
  type:
72
78
  consultation:
73
79
  detailed_guide:
74
80
  guidance:
75
81
  publication:
76
82
  wales:
83
+ end:
84
+ middle:
85
+ start:
77
86
  feedback:
78
87
  close: بسته نمایید
79
88
  dont_include_personal_info: اطلاعات شخصی یا مالی مانند شماره بیمه ملی یا مشخصات کریدت کارت خودرا اینجا قرار ندهید.
@@ -60,18 +60,27 @@ el:
60
60
  devolved_nations:
61
61
  applies_to:
62
62
  aria_label:
63
- connectors:
64
- last_word:
65
- two_words:
66
63
  england:
64
+ end:
65
+ middle:
66
+ start:
67
67
  northern_ireland:
68
+ end:
69
+ middle:
70
+ start:
68
71
  scotland:
72
+ end:
73
+ middle:
74
+ start:
69
75
  type:
70
76
  consultation:
71
77
  detailed_guide:
72
78
  guidance:
73
79
  publication:
74
80
  wales:
81
+ end:
82
+ middle:
83
+ start:
75
84
  feedback:
76
85
  close: Κλείσε
77
86
  dont_include_personal_info: Μην συμπεριλαμβάνετε προσωπικά ή οικονομικά στοιχεία, όπως τον αριθμό της Εθνικής σας Ασφάλισης ή τα στοιχεία της πιστωτικής σας κάρτας.
@@ -59,18 +59,27 @@ en:
59
59
  devolved_nations:
60
60
  applies_to: Applies to
61
61
  aria_label: Nation
62
- connectors:
63
- last_word: " and "
64
- two_words: " and "
65
- england: England
66
- northern_ireland: Northern Ireland
67
- scotland: Scotland
62
+ england:
63
+ end: " and England"
64
+ middle: ", England"
65
+ start: England
66
+ northern_ireland:
67
+ end: " and Northern Ireland"
68
+ middle: ", Northern Ireland"
69
+ start: Northern Ireland
70
+ scotland:
71
+ end: " and Scotland"
72
+ middle: ", Scotland"
73
+ start: Scotland
68
74
  type:
69
75
  consultation: Consultation for %{nation}
70
76
  detailed_guide: Guidance for %{nation}
71
77
  guidance: Guidance for %{nation}
72
78
  publication: Publication for %{nation}
73
- wales: Wales
79
+ wales:
80
+ end: " and Wales"
81
+ middle: ", Wales"
82
+ start: Wales
74
83
  feedback:
75
84
  close: Cancel
76
85
  dont_include_personal_info: Don’t include personal or financial information like your National Insurance number or credit card details.
@@ -60,18 +60,27 @@ es-419:
60
60
  devolved_nations:
61
61
  applies_to:
62
62
  aria_label:
63
- connectors:
64
- last_word:
65
- two_words:
66
63
  england:
64
+ end:
65
+ middle:
66
+ start:
67
67
  northern_ireland:
68
+ end:
69
+ middle:
70
+ start:
68
71
  scotland:
72
+ end:
73
+ middle:
74
+ start:
69
75
  type:
70
76
  consultation:
71
77
  detailed_guide:
72
78
  guidance:
73
79
  publication:
74
80
  wales:
81
+ end:
82
+ middle:
83
+ start:
75
84
  feedback:
76
85
  close: Cierre
77
86
  dont_include_personal_info: No incluya información personal o financiera, como su número de seguridad social o los datos de su tarjeta de crédito.
@@ -60,18 +60,27 @@ es:
60
60
  devolved_nations:
61
61
  applies_to:
62
62
  aria_label:
63
- connectors:
64
- last_word:
65
- two_words:
66
63
  england:
64
+ end:
65
+ middle:
66
+ start:
67
67
  northern_ireland:
68
+ end:
69
+ middle:
70
+ start:
68
71
  scotland:
72
+ end:
73
+ middle:
74
+ start:
69
75
  type:
70
76
  consultation:
71
77
  detailed_guide:
72
78
  guidance:
73
79
  publication:
74
80
  wales:
81
+ end:
82
+ middle:
83
+ start:
75
84
  feedback:
76
85
  close: Cerrar
77
86
  dont_include_personal_info: No incluya información personal o financiera como su número de seguro nacional o datos de su tarjeta de crédito.
@@ -63,18 +63,27 @@ et:
63
63
  devolved_nations:
64
64
  applies_to:
65
65
  aria_label:
66
- connectors:
67
- last_word:
68
- two_words:
69
66
  england:
67
+ end:
68
+ middle:
69
+ start:
70
70
  northern_ireland:
71
+ end:
72
+ middle:
73
+ start:
71
74
  scotland:
75
+ end:
76
+ middle:
77
+ start:
72
78
  type:
73
79
  consultation:
74
80
  detailed_guide:
75
81
  guidance:
76
82
  publication:
77
83
  wales:
84
+ end:
85
+ middle:
86
+ start:
78
87
  feedback:
79
88
  close: Sulge
80
89
  dont_include_personal_info: Ärge lisage isiklikku ega finantsteavet, näiteks oma isikukoodi ega krediitkaardi andmeid.
@@ -59,18 +59,27 @@ fa:
59
59
  devolved_nations:
60
60
  applies_to:
61
61
  aria_label:
62
- connectors:
63
- last_word:
64
- two_words:
65
62
  england:
63
+ end:
64
+ middle:
65
+ start:
66
66
  northern_ireland:
67
+ end:
68
+ middle:
69
+ start:
67
70
  scotland:
71
+ end:
72
+ middle:
73
+ start:
68
74
  type:
69
75
  consultation:
70
76
  detailed_guide:
71
77
  guidance:
72
78
  publication:
73
79
  wales:
80
+ end:
81
+ middle:
82
+ start:
74
83
  feedback:
75
84
  close: بستن
76
85
  dont_include_personal_info: شامل اطلاعات شخصی یا مالی شما از جمله شماره بیمه ملی یا جزئیات کارت اعتباری شما نمی‌شود.
@@ -62,18 +62,27 @@ fi:
62
62
  devolved_nations:
63
63
  applies_to:
64
64
  aria_label:
65
- connectors:
66
- last_word:
67
- two_words:
68
65
  england:
66
+ end:
67
+ middle:
68
+ start:
69
69
  northern_ireland:
70
+ end:
71
+ middle:
72
+ start:
70
73
  scotland:
74
+ end:
75
+ middle:
76
+ start:
71
77
  type:
72
78
  consultation:
73
79
  detailed_guide:
74
80
  guidance:
75
81
  publication:
76
82
  wales:
83
+ end:
84
+ middle:
85
+ start:
77
86
  feedback:
78
87
  close: Kiinni
79
88
  dont_include_personal_info: Älä ilmoita henkilökohtaisia tai taloudellisia tietoja, kuten sosiaaliturvatunnusta tai luottokorttitietoja.
@@ -60,18 +60,27 @@ fr:
60
60
  devolved_nations:
61
61
  applies_to:
62
62
  aria_label:
63
- connectors:
64
- last_word:
65
- two_words:
66
63
  england:
64
+ end:
65
+ middle:
66
+ start:
67
67
  northern_ireland:
68
+ end:
69
+ middle:
70
+ start:
68
71
  scotland:
72
+ end:
73
+ middle:
74
+ start:
69
75
  type:
70
76
  consultation:
71
77
  detailed_guide:
72
78
  guidance:
73
79
  publication:
74
80
  wales:
81
+ end:
82
+ middle:
83
+ start:
75
84
  feedback:
76
85
  close: Fermer
77
86
  dont_include_personal_info: Ne pas ajouter des informations personnelles ou financières comme le numéro de votre assurance nationale ou les détails de votre carte de crédit.
@@ -62,18 +62,27 @@ gd:
62
62
  devolved_nations:
63
63
  applies_to:
64
64
  aria_label:
65
- connectors:
66
- last_word:
67
- two_words:
68
65
  england:
66
+ end:
67
+ middle:
68
+ start:
69
69
  northern_ireland:
70
+ end:
71
+ middle:
72
+ start:
70
73
  scotland:
74
+ end:
75
+ middle:
76
+ start:
71
77
  type:
72
78
  consultation:
73
79
  detailed_guide:
74
80
  guidance:
75
81
  publication:
76
82
  wales:
83
+ end:
84
+ middle:
85
+ start:
77
86
  feedback:
78
87
  close: Dúnadh
79
88
  dont_include_personal_info: Ná cuir aon fhaisnéis phearsanta nó airgeadais san áireamh, mar d’uimhir Árachais Náisiúnta nó sonraí cárta creidmheasa.
@@ -60,18 +60,27 @@ gu:
60
60
  devolved_nations:
61
61
  applies_to:
62
62
  aria_label:
63
- connectors:
64
- last_word:
65
- two_words:
66
63
  england:
64
+ end:
65
+ middle:
66
+ start:
67
67
  northern_ireland:
68
+ end:
69
+ middle:
70
+ start:
68
71
  scotland:
72
+ end:
73
+ middle:
74
+ start:
69
75
  type:
70
76
  consultation:
71
77
  detailed_guide:
72
78
  guidance:
73
79
  publication:
74
80
  wales:
81
+ end:
82
+ middle:
83
+ start:
75
84
  feedback:
76
85
  close: બંધ કરો
77
86
  dont_include_personal_info: તમારો રાષ્ટ્રીય વીમા નંબર અથવા ક્રેડિટ કાર્ડ વિગતો જેવી વ્યક્તિગત કે નાણાંકીય માહિતી તેમાં સામેલ કરશો નહીં.