govuk_publishing_components 44.2.0 → 44.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/chart.js +1 -0
  3. data/app/assets/stylesheets/govuk_publishing_components/components/_chart.scss +44 -0
  4. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +28 -5
  5. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +15 -0
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +32 -0
  7. data/app/views/govuk_publishing_components/components/_chart.html.erb +151 -0
  8. data/app/views/govuk_publishing_components/components/_contents_list.html.erb +7 -3
  9. data/app/views/govuk_publishing_components/components/_organisation_logo.html.erb +2 -0
  10. data/app/views/govuk_publishing_components/components/_share_links.html.erb +4 -1
  11. data/app/views/govuk_publishing_components/components/docs/chart.yml +238 -0
  12. data/app/views/govuk_publishing_components/components/docs/contents_list.yml +32 -0
  13. data/app/views/govuk_publishing_components/components/docs/organisation_logo.yml +11 -1
  14. data/app/views/govuk_publishing_components/components/docs/share_links.yml +36 -0
  15. data/config/locales/ar.yml +3 -0
  16. data/config/locales/az.yml +3 -0
  17. data/config/locales/be.yml +3 -0
  18. data/config/locales/bg.yml +3 -0
  19. data/config/locales/bn.yml +3 -0
  20. data/config/locales/cs.yml +3 -0
  21. data/config/locales/cy.yml +3 -0
  22. data/config/locales/da.yml +3 -0
  23. data/config/locales/de.yml +3 -0
  24. data/config/locales/dr.yml +3 -0
  25. data/config/locales/el.yml +3 -0
  26. data/config/locales/en.yml +3 -0
  27. data/config/locales/es-419.yml +3 -0
  28. data/config/locales/es.yml +3 -0
  29. data/config/locales/et.yml +3 -0
  30. data/config/locales/fa.yml +3 -0
  31. data/config/locales/fi.yml +3 -0
  32. data/config/locales/fr.yml +3 -0
  33. data/config/locales/gd.yml +3 -0
  34. data/config/locales/gu.yml +3 -0
  35. data/config/locales/he.yml +3 -0
  36. data/config/locales/hi.yml +3 -0
  37. data/config/locales/hr.yml +3 -0
  38. data/config/locales/hu.yml +3 -0
  39. data/config/locales/hy.yml +3 -0
  40. data/config/locales/id.yml +3 -0
  41. data/config/locales/is.yml +3 -0
  42. data/config/locales/it.yml +3 -0
  43. data/config/locales/ja.yml +3 -0
  44. data/config/locales/ka.yml +3 -0
  45. data/config/locales/kk.yml +3 -0
  46. data/config/locales/ko.yml +3 -0
  47. data/config/locales/lt.yml +3 -0
  48. data/config/locales/lv.yml +3 -0
  49. data/config/locales/ms.yml +3 -0
  50. data/config/locales/mt.yml +3 -0
  51. data/config/locales/nl.yml +3 -0
  52. data/config/locales/no.yml +3 -0
  53. data/config/locales/pa-pk.yml +3 -0
  54. data/config/locales/pa.yml +3 -0
  55. data/config/locales/pl.yml +3 -0
  56. data/config/locales/ps.yml +3 -0
  57. data/config/locales/pt.yml +3 -0
  58. data/config/locales/ro.yml +3 -0
  59. data/config/locales/ru.yml +3 -0
  60. data/config/locales/si.yml +3 -0
  61. data/config/locales/sk.yml +3 -0
  62. data/config/locales/sl.yml +3 -0
  63. data/config/locales/so.yml +3 -0
  64. data/config/locales/sq.yml +3 -0
  65. data/config/locales/sr.yml +3 -0
  66. data/config/locales/sv.yml +3 -0
  67. data/config/locales/sw.yml +3 -0
  68. data/config/locales/ta.yml +3 -0
  69. data/config/locales/th.yml +3 -0
  70. data/config/locales/tk.yml +3 -0
  71. data/config/locales/tr.yml +3 -0
  72. data/config/locales/uk.yml +3 -0
  73. data/config/locales/ur.yml +3 -0
  74. data/config/locales/uz.yml +3 -0
  75. data/config/locales/vi.yml +3 -0
  76. data/config/locales/zh-hk.yml +3 -0
  77. data/config/locales/zh-tw.yml +3 -0
  78. data/config/locales/zh.yml +3 -0
  79. data/lib/govuk_publishing_components/version.rb +1 -1
  80. metadata +21 -3
@@ -75,7 +75,7 @@ examples:
75
75
  name: "Prime Minister's Office,<br>10 Downing Street"
76
76
  url: '/government/organisations/prime-ministers-office-10-downing-street'
77
77
  brand: 'prime-ministers-office-10-downing-street'
78
- crest: 'no10'
78
+ crest: 'eo'
79
79
  office_of_the_advocate_general_for_scotland:
80
80
  data:
81
81
  organisation:
@@ -182,3 +182,13 @@ examples:
182
182
  brand: cabinet-office
183
183
  crest: 'single-identity'
184
184
  inline: true
185
+ on_a_dark_background:
186
+ data:
187
+ organisation:
188
+ name: "Prime Minister's Office,<br>10 Downing Street"
189
+ url: '/government/organisations/prime-ministers-office-10-downing-street'
190
+ brand: 'prime-ministers-office-10-downing-street'
191
+ crest: 'eo'
192
+ inverse: true
193
+ context:
194
+ dark_background: true
@@ -256,3 +256,39 @@ examples:
256
256
  icon: 'youtube'
257
257
  }
258
258
  ]
259
+ with_square_icons:
260
+ data:
261
+ square_icons: true
262
+ columns: true
263
+ links: [
264
+ {
265
+ href: '/twitter-share-link',
266
+ text: 'Twitter',
267
+ icon: 'twitter'
268
+ },
269
+ {
270
+ href: '/instagram-share-link',
271
+ text: 'Instagram',
272
+ icon: 'instagram'
273
+ },
274
+ {
275
+ href: '/flickr-share-link',
276
+ text: 'Flickr',
277
+ icon: 'flickr'
278
+ },
279
+ {
280
+ href: '/facebook-share-link',
281
+ text: 'Facebook',
282
+ icon: 'facebook'
283
+ },
284
+ {
285
+ href: '/youtube-share-link',
286
+ text: 'YouTube',
287
+ icon: 'youtube'
288
+ },
289
+ {
290
+ href: '/other-share-link',
291
+ text: 'Anything else that might be included that could have quite a long name',
292
+ icon: 'other'
293
+ },
294
+ ]
@@ -36,6 +36,9 @@ ar:
36
36
  type:
37
37
  characters: أحرف
38
38
  words: كلمات
39
+ chart:
40
+ accessibility_html:
41
+ table_dropdown:
39
42
  chat_entry:
40
43
  description:
41
44
  heading:
@@ -32,6 +32,9 @@ az:
32
32
  type:
33
33
  characters: simvol
34
34
  words: söz
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -34,6 +34,9 @@ be:
34
34
  type:
35
35
  characters: знакаў
36
36
  words: словаў
37
+ chart:
38
+ accessibility_html:
39
+ table_dropdown:
37
40
  chat_entry:
38
41
  description:
39
42
  heading:
@@ -32,6 +32,9 @@ bg:
32
32
  type:
33
33
  characters: символа
34
34
  words: думи
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ bn:
32
32
  type:
33
33
  characters: ক্যারেক্টার
34
34
  words: শব্দসমষ্টি
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -33,6 +33,9 @@ cs:
33
33
  type:
34
34
  characters: znaky
35
35
  words: slova
36
+ chart:
37
+ accessibility_html:
38
+ table_dropdown:
36
39
  chat_entry:
37
40
  description:
38
41
  heading:
@@ -36,6 +36,9 @@ cy:
36
36
  type:
37
37
  characters: nodau
38
38
  words: geiriau
39
+ chart:
40
+ accessibility_html:
41
+ table_dropdown:
39
42
  chat_entry:
40
43
  description:
41
44
  heading:
@@ -32,6 +32,9 @@ da:
32
32
  type:
33
33
  characters: Tegn
34
34
  words: ord
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ de:
32
32
  type:
33
33
  characters: Zeichen
34
34
  words: Wörter
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -35,6 +35,9 @@ dr:
35
35
  type:
36
36
  characters: ارقام
37
37
  words: کلمات
38
+ chart:
39
+ accessibility_html:
40
+ table_dropdown:
38
41
  chat_entry:
39
42
  description:
40
43
  heading:
@@ -32,6 +32,9 @@ el:
32
32
  type:
33
33
  characters: χαρακτήρες
34
34
  words: λέξεις
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ en:
32
32
  type:
33
33
  characters: characters
34
34
  words: words
35
+ chart:
36
+ table_dropdown: Data table
37
+ accessibility_html: This chart is a visual representation of the data available in the <a href='#%{table_id}'>table</a>.
35
38
  chat_entry:
36
39
  heading: Try GOV.UK Chat
37
40
  description: Sign up to GOV.UK’s experimental new AI tool and find answers to your business questions
@@ -32,6 +32,9 @@ es-419:
32
32
  type:
33
33
  characters: caracteres
34
34
  words: palabras
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ es:
32
32
  type:
33
33
  characters: caracteres
34
34
  words: palabras
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ et:
32
32
  type:
33
33
  characters: tähemärki
34
34
  words: sõnu
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ fa:
32
32
  type:
33
33
  characters: کاراکتر
34
34
  words: کلمه
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ fi:
32
32
  type:
33
33
  characters: merkkejä
34
34
  words: sanoja
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ fr:
32
32
  type:
33
33
  characters: caractères
34
34
  words: mots
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -34,6 +34,9 @@ gd:
34
34
  type:
35
35
  characters: Figiúr
36
36
  words: Carachtar
37
+ chart:
38
+ accessibility_html:
39
+ table_dropdown:
37
40
  chat_entry:
38
41
  description:
39
42
  heading:
@@ -32,6 +32,9 @@ gu:
32
32
  type:
33
33
  characters: અક્ષરો
34
34
  words: શબ્દો
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ he:
32
32
  type:
33
33
  characters: תווים
34
34
  words: מילים
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ hi:
32
32
  type:
33
33
  characters: अक्षर
34
34
  words: शब्द
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -33,6 +33,9 @@ hr:
33
33
  type:
34
34
  characters: znakova
35
35
  words: riječi
36
+ chart:
37
+ accessibility_html:
38
+ table_dropdown:
36
39
  chat_entry:
37
40
  description:
38
41
  heading:
@@ -32,6 +32,9 @@ hu:
32
32
  type:
33
33
  characters: karakterek
34
34
  words: szavak
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -34,6 +34,9 @@ hy:
34
34
  type:
35
35
  characters: նիշ
36
36
  words: բառ
37
+ chart:
38
+ accessibility_html:
39
+ table_dropdown:
37
40
  chat_entry:
38
41
  description:
39
42
  heading:
@@ -31,6 +31,9 @@ id:
31
31
  type:
32
32
  characters: karakter
33
33
  words: kata
34
+ chart:
35
+ accessibility_html:
36
+ table_dropdown:
34
37
  chat_entry:
35
38
  description:
36
39
  heading:
@@ -32,6 +32,9 @@ is:
32
32
  type:
33
33
  characters: stafi
34
34
  words: orð
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ it:
32
32
  type:
33
33
  characters: caratteri
34
34
  words: parole
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -31,6 +31,9 @@ ja:
31
31
  type:
32
32
  characters: 文字
33
33
  words: 単語
34
+ chart:
35
+ accessibility_html:
36
+ table_dropdown:
34
37
  chat_entry:
35
38
  description:
36
39
  heading:
@@ -32,6 +32,9 @@ ka:
32
32
  type:
33
33
  characters: სიმბოლოები
34
34
  words: სიტყვები
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ kk:
32
32
  type:
33
33
  characters: таңба
34
34
  words: сөз
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -31,6 +31,9 @@ ko:
31
31
  type:
32
32
  characters:
33
33
  words:
34
+ chart:
35
+ accessibility_html:
36
+ table_dropdown:
34
37
  chat_entry:
35
38
  description:
36
39
  heading:
@@ -33,6 +33,9 @@ lt:
33
33
  type:
34
34
  characters: spaudos ženklų
35
35
  words: žodžių
36
+ chart:
37
+ accessibility_html:
38
+ table_dropdown:
36
39
  chat_entry:
37
40
  description:
38
41
  heading:
@@ -32,6 +32,9 @@ lv:
32
32
  type:
33
33
  characters: rakstzīmes
34
34
  words: vārdi
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -31,6 +31,9 @@ ms:
31
31
  type:
32
32
  characters: aksara
33
33
  words: perkataan
34
+ chart:
35
+ accessibility_html:
36
+ table_dropdown:
34
37
  chat_entry:
35
38
  description:
36
39
  heading:
@@ -34,6 +34,9 @@ mt:
34
34
  type:
35
35
  characters: karattri
36
36
  words: kliem
37
+ chart:
38
+ accessibility_html:
39
+ table_dropdown:
37
40
  chat_entry:
38
41
  description:
39
42
  heading:
@@ -32,6 +32,9 @@ nl:
32
32
  type:
33
33
  characters: karakters
34
34
  words: woorden
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@
32
32
  type:
33
33
  characters: tegn
34
34
  words: ord
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ pa-pk:
32
32
  type:
33
33
  characters: کردار
34
34
  words: الفاظ
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ pa:
32
32
  type:
33
33
  characters: ਅੱਖਰ
34
34
  words: ਸ਼ਬਦ
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -34,6 +34,9 @@ pl:
34
34
  type:
35
35
  characters: znaków
36
36
  words: słów
37
+ chart:
38
+ accessibility_html:
39
+ table_dropdown:
37
40
  chat_entry:
38
41
  description:
39
42
  heading:
@@ -32,6 +32,9 @@ ps:
32
32
  type:
33
33
  characters: کرکټرونه
34
34
  words: ټکي
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ pt:
32
32
  type:
33
33
  characters: carateres
34
34
  words: palavras
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -33,6 +33,9 @@ ro:
33
33
  type:
34
34
  characters: caractere
35
35
  words: cuvinte
36
+ chart:
37
+ accessibility_html:
38
+ table_dropdown:
36
39
  chat_entry:
37
40
  description:
38
41
  heading:
@@ -34,6 +34,9 @@ ru:
34
34
  type:
35
35
  characters: символов
36
36
  words: слов
37
+ chart:
38
+ accessibility_html:
39
+ table_dropdown:
37
40
  chat_entry:
38
41
  description:
39
42
  heading:
@@ -32,6 +32,9 @@ si:
32
32
  type:
33
33
  characters: අක්ෂර
34
34
  words: වචන
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -33,6 +33,9 @@ sk:
33
33
  type:
34
34
  characters: znakov
35
35
  words: slov
36
+ chart:
37
+ accessibility_html:
38
+ table_dropdown:
36
39
  chat_entry:
37
40
  description:
38
41
  heading:
@@ -36,6 +36,9 @@ sl:
36
36
  type:
37
37
  characters: znaki
38
38
  words: besede
39
+ chart:
40
+ accessibility_html:
41
+ table_dropdown:
39
42
  chat_entry:
40
43
  description:
41
44
  heading:
@@ -32,6 +32,9 @@ so:
32
32
  type:
33
33
  characters: dabeecadaha
34
34
  words: kalmadaha
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ sq:
32
32
  type:
33
33
  characters: karaktere
34
34
  words: fjalë
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -33,6 +33,9 @@ sr:
33
33
  type:
34
34
  characters: znakova
35
35
  words: reči
36
+ chart:
37
+ accessibility_html:
38
+ table_dropdown:
36
39
  chat_entry:
37
40
  description:
38
41
  heading:
@@ -32,6 +32,9 @@ sv:
32
32
  type:
33
33
  characters: tecken
34
34
  words: ord
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ sw:
32
32
  type:
33
33
  characters: herufi
34
34
  words: maneno
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading:
@@ -32,6 +32,9 @@ ta:
32
32
  type:
33
33
  characters: எழுத்துருக்கள்
34
34
  words: சொற்கள்
35
+ chart:
36
+ accessibility_html:
37
+ table_dropdown:
35
38
  chat_entry:
36
39
  description:
37
40
  heading: