govuk_publishing_components 70.2.1 → 71.0.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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +19 -2
- data/app/assets/javascripts/govuk_publishing_components/components/govspeak.js +9 -0
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/table-scroll.js +108 -0
- data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +2 -2
- data/app/assets/stylesheets/component_guide/application.scss +7 -3
- data/app/assets/stylesheets/govuk_publishing_components/all-components.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +0 -13
- data/app/assets/stylesheets/govuk_publishing_components/components/_chart.scss +31 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_service-navigation.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +67 -0
- data/app/views/govuk_publishing_components/components/_chart.html.erb +5 -5
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +0 -6
- data/app/views/govuk_publishing_components/components/_radio.html.erb +1 -2
- data/app/views/govuk_publishing_components/components/docs/chart.yml +76 -2
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +28 -0
- data/app/views/govuk_publishing_components/components/docs/metadata.yml +12 -12
- data/app/views/govuk_publishing_components/components/docs/service_navigation.yml +37 -1
- data/config/locales/ar.yml +2 -10
- data/config/locales/az.yml +2 -10
- data/config/locales/be.yml +2 -10
- data/config/locales/bg.yml +2 -10
- data/config/locales/bn.yml +2 -10
- data/config/locales/cs.yml +2 -10
- data/config/locales/cy.yml +6 -14
- data/config/locales/da.yml +2 -10
- data/config/locales/de.yml +2 -10
- data/config/locales/dr.yml +2 -10
- data/config/locales/el.yml +2 -10
- data/config/locales/en.yml +14 -22
- data/config/locales/es-419.yml +2 -10
- data/config/locales/es.yml +2 -10
- data/config/locales/et.yml +2 -10
- data/config/locales/fa.yml +2 -10
- data/config/locales/fi.yml +2 -10
- data/config/locales/fr.yml +2 -10
- data/config/locales/gd.yml +2 -10
- data/config/locales/gu.yml +2 -10
- data/config/locales/he.yml +2 -10
- data/config/locales/hi.yml +2 -10
- data/config/locales/hr.yml +2 -10
- data/config/locales/hu.yml +2 -10
- data/config/locales/hy.yml +2 -10
- data/config/locales/id.yml +2 -10
- data/config/locales/is.yml +2 -10
- data/config/locales/it.yml +2 -10
- data/config/locales/ja.yml +2 -10
- data/config/locales/ka.yml +2 -10
- data/config/locales/kk.yml +2 -10
- data/config/locales/ko.yml +2 -10
- data/config/locales/ku.yml +2 -10
- data/config/locales/ky.yml +2 -10
- data/config/locales/lt.yml +2 -10
- data/config/locales/lv.yml +2 -10
- data/config/locales/ms.yml +2 -10
- data/config/locales/mt.yml +2 -10
- data/config/locales/ne.yml +2 -10
- data/config/locales/nl.yml +2 -10
- data/config/locales/no.yml +2 -10
- data/config/locales/pa-pk.yml +2 -10
- data/config/locales/pa.yml +2 -10
- data/config/locales/pl.yml +2 -10
- data/config/locales/ps.yml +2 -10
- data/config/locales/pt.yml +2 -10
- data/config/locales/ro.yml +2 -10
- data/config/locales/ru.yml +2 -10
- data/config/locales/si.yml +2 -10
- data/config/locales/sk.yml +2 -10
- data/config/locales/sl.yml +2 -10
- data/config/locales/so.yml +2 -10
- data/config/locales/sq.yml +2 -10
- data/config/locales/sr.yml +2 -10
- data/config/locales/sv.yml +2 -10
- data/config/locales/sw.yml +2 -10
- data/config/locales/ta.yml +2 -10
- data/config/locales/th.yml +2 -10
- data/config/locales/ti.yml +2 -10
- data/config/locales/tk.yml +2 -10
- data/config/locales/tr.yml +2 -10
- data/config/locales/uk.yml +2 -10
- data/config/locales/ur.yml +2 -10
- data/config/locales/uz.yml +2 -10
- data/config/locales/vi.yml +2 -10
- data/config/locales/zh-hk.yml +2 -10
- data/config/locales/zh-tw.yml +2 -10
- data/config/locales/zh.yml +2 -10
- data/lib/govuk_publishing_components/presenters/chart_helper.rb +33 -12
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/README.md +1 -0
- data/node_modules/axe-core/axe.js +7695 -3210
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/locales/_template.json +46 -20
- data/node_modules/axe-core/locales/az.json +1161 -0
- data/node_modules/axe-core/locales/de.json +1 -1
- data/node_modules/axe-core/package.json +7 -8
- data/node_modules/axe-core/sri-history.json +4 -0
- metadata +4 -6
- data/app/assets/javascripts/govuk_publishing_components/components/metadata.js +0 -24
- data/app/assets/stylesheets/govuk_publishing_components/components/_published-dates.scss +0 -55
- data/app/views/govuk_publishing_components/components/_published_dates.html.erb +0 -48
- data/app/views/govuk_publishing_components/components/docs/published_dates.yml +0 -37
data/config/locales/th.yml
CHANGED
|
@@ -149,13 +149,12 @@ th:
|
|
|
149
149
|
metadata:
|
|
150
150
|
and:
|
|
151
151
|
from: จาก
|
|
152
|
+
hidden_heading:
|
|
153
|
+
hide_all_updates: ซ่อนอัปเดตทั้งหมด
|
|
152
154
|
history: ประวัติ
|
|
153
155
|
last_updated: อัปเดตล่าสุด
|
|
154
156
|
part_of: ส่วนหนึ่งของ
|
|
155
157
|
published: เผยแพร่แล้ว
|
|
156
|
-
see_all_updates: ดูอัปเดตทั้งหมด
|
|
157
|
-
hidden_heading:
|
|
158
|
-
hide_all_updates: ซ่อนอัปเดตทั้งหมด
|
|
159
158
|
show_all_updates: แสดงอัปเดตทั้งหมด
|
|
160
159
|
modal_dialogue:
|
|
161
160
|
close_modal: ปิดการสนทนาโมดอล
|
|
@@ -182,13 +181,6 @@ th:
|
|
|
182
181
|
password_shown_announcement:
|
|
183
182
|
print_link:
|
|
184
183
|
text: พิมพ์หน้านี้
|
|
185
|
-
published_dates:
|
|
186
|
-
hidden_heading:
|
|
187
|
-
hide_all_updates: ซ่อนอัปเดตทั้งหมด
|
|
188
|
-
last_updated: อัปเดตล่าสุดเมื่อ %{date}
|
|
189
|
-
published: เผยแพร่เมื่อ %{date}
|
|
190
|
-
see_all_updates: ดูอัปเดตทั้งหมด
|
|
191
|
-
show_all_updates: แสดงอัปเดตทั้งหมด
|
|
192
184
|
radio:
|
|
193
185
|
or: หรือ
|
|
194
186
|
related_footer_navigation:
|
data/config/locales/ti.yml
CHANGED
|
@@ -150,13 +150,12 @@ ti:
|
|
|
150
150
|
metadata:
|
|
151
151
|
and: ከምኡ ውን
|
|
152
152
|
from: ካብ
|
|
153
|
+
hidden_heading:
|
|
154
|
+
hide_all_updates:
|
|
153
155
|
history: ሕሉፍ ታሪኽ
|
|
154
156
|
last_updated: ናይ መወዳእታ ዝተሓደሰ
|
|
155
157
|
part_of: ሓደ ክፋል ናይ
|
|
156
158
|
published: ዝተሓትመ
|
|
157
|
-
see_all_updates: ኩሉ ሓድሽ ሓበሬታ ርአ
|
|
158
|
-
hidden_heading:
|
|
159
|
-
hide_all_updates:
|
|
160
159
|
show_all_updates:
|
|
161
160
|
modal_dialogue:
|
|
162
161
|
close_modal: ሞዳል ዝርርብ ዕጸዎ።
|
|
@@ -183,13 +182,6 @@ ti:
|
|
|
183
182
|
password_shown_announcement: መሕለፊ ቓል/ፓስዎርድካ ይርአ ኣሎ
|
|
184
183
|
print_link:
|
|
185
184
|
text: ነዚ ገጽ ሕተሞ
|
|
186
|
-
published_dates:
|
|
187
|
-
hidden_heading:
|
|
188
|
-
hide_all_updates:
|
|
189
|
-
last_updated:
|
|
190
|
-
published:
|
|
191
|
-
see_all_updates:
|
|
192
|
-
show_all_updates:
|
|
193
185
|
radio:
|
|
194
186
|
or: ወይ
|
|
195
187
|
related_footer_navigation:
|
data/config/locales/tk.yml
CHANGED
|
@@ -152,13 +152,12 @@ tk:
|
|
|
152
152
|
metadata:
|
|
153
153
|
and:
|
|
154
154
|
from: "-dan"
|
|
155
|
+
hidden_heading:
|
|
156
|
+
hide_all_updates: ähli täzelenmeleri gizle
|
|
155
157
|
history: Taryh
|
|
156
158
|
last_updated: Iň soňky täzelenme
|
|
157
159
|
part_of: Bir bölegi
|
|
158
160
|
published: Çap edilen
|
|
159
|
-
see_all_updates: Ähli täzelenmelere serediň
|
|
160
|
-
hidden_heading:
|
|
161
|
-
hide_all_updates: ähli täzelenmeleri gizle
|
|
162
161
|
show_all_updates: ähli täzelenmeleri görkez
|
|
163
162
|
modal_dialogue:
|
|
164
163
|
close_modal: Modal gepleşikleri tamamlamak
|
|
@@ -185,13 +184,6 @@ tk:
|
|
|
185
184
|
password_shown_announcement:
|
|
186
185
|
print_link:
|
|
187
186
|
text: Bu sahypany çap et
|
|
188
|
-
published_dates:
|
|
189
|
-
hidden_heading:
|
|
190
|
-
hide_all_updates: ähli täzelenmeleri gizle
|
|
191
|
-
last_updated: Soňky gezek täzelenme %{date}
|
|
192
|
-
published: Çap edilen %{date}
|
|
193
|
-
see_all_updates: ähli täzelenmelere serediň
|
|
194
|
-
show_all_updates: ähli täzelenmeleri görkez
|
|
195
187
|
radio:
|
|
196
188
|
or: ýa-da
|
|
197
189
|
related_footer_navigation:
|
data/config/locales/tr.yml
CHANGED
|
@@ -152,13 +152,12 @@ tr:
|
|
|
152
152
|
metadata:
|
|
153
153
|
and:
|
|
154
154
|
from: Şuradan
|
|
155
|
+
hidden_heading:
|
|
156
|
+
hide_all_updates: tüm güncellemeleri gizle
|
|
155
157
|
history: Geçmiş
|
|
156
158
|
last_updated: Son güncelleme
|
|
157
159
|
part_of: Şunun kısmı
|
|
158
160
|
published: Yayınlanan
|
|
159
|
-
see_all_updates: Tüm güncellemeleri görün
|
|
160
|
-
hidden_heading:
|
|
161
|
-
hide_all_updates: tüm güncellemeleri gizle
|
|
162
161
|
show_all_updates: tüm güncellemeleri göster
|
|
163
162
|
modal_dialogue:
|
|
164
163
|
close_modal: Model diyaloğu kapat
|
|
@@ -185,13 +184,6 @@ tr:
|
|
|
185
184
|
password_shown_announcement:
|
|
186
185
|
print_link:
|
|
187
186
|
text: Bu sayfayı yazdır
|
|
188
|
-
published_dates:
|
|
189
|
-
hidden_heading:
|
|
190
|
-
hide_all_updates: tüm güncellemeleri gizle
|
|
191
|
-
last_updated: Son güncelleme %{date}
|
|
192
|
-
published: Yayınlama %{date}
|
|
193
|
-
see_all_updates: tüm güncellemeleri görün
|
|
194
|
-
show_all_updates: tüm güncellemeleri göster
|
|
195
187
|
radio:
|
|
196
188
|
or: veya
|
|
197
189
|
related_footer_navigation:
|
data/config/locales/uk.yml
CHANGED
|
@@ -158,13 +158,12 @@ uk:
|
|
|
158
158
|
metadata:
|
|
159
159
|
and:
|
|
160
160
|
from: Від
|
|
161
|
+
hidden_heading:
|
|
162
|
+
hide_all_updates: приховати всі оновлення
|
|
161
163
|
history: Історія
|
|
162
164
|
last_updated: Останнє оновлення
|
|
163
165
|
part_of: Частина
|
|
164
166
|
published: Опубліковано
|
|
165
|
-
see_all_updates: Переглянути всі оновлення
|
|
166
|
-
hidden_heading:
|
|
167
|
-
hide_all_updates: приховати всі оновлення
|
|
168
167
|
show_all_updates: показати всі оновлення
|
|
169
168
|
modal_dialogue:
|
|
170
169
|
close_modal: Закрити модальний діалог
|
|
@@ -191,13 +190,6 @@ uk:
|
|
|
191
190
|
password_shown_announcement:
|
|
192
191
|
print_link:
|
|
193
192
|
text: Роздрукувати цю сторінку
|
|
194
|
-
published_dates:
|
|
195
|
-
hidden_heading:
|
|
196
|
-
hide_all_updates: приховати всі оновлення
|
|
197
|
-
last_updated: Останнє оновлення %{date}
|
|
198
|
-
published: Опубліковано %{date}
|
|
199
|
-
see_all_updates: переглянути всі оновлення
|
|
200
|
-
show_all_updates: показати всі оновлення
|
|
201
193
|
radio:
|
|
202
194
|
or: або
|
|
203
195
|
related_footer_navigation:
|
data/config/locales/ur.yml
CHANGED
|
@@ -148,13 +148,12 @@ ur:
|
|
|
148
148
|
metadata:
|
|
149
149
|
and:
|
|
150
150
|
from: از
|
|
151
|
+
hidden_heading:
|
|
152
|
+
hide_all_updates: تمام اپ ڈیٹس کو پوشیدہ کریں
|
|
151
153
|
history: ہسٹری
|
|
152
154
|
last_updated: آخری بار اپ ڈیٹ کردہ
|
|
153
155
|
part_of: حصہ از
|
|
154
156
|
published: شائع کردہ
|
|
155
|
-
see_all_updates: تمام اپ ڈیٹس دیکھیں
|
|
156
|
-
hidden_heading:
|
|
157
|
-
hide_all_updates: تمام اپ ڈیٹس کو پوشیدہ کریں
|
|
158
157
|
show_all_updates: تمام اپ ڈیٹس دکھائیں
|
|
159
158
|
modal_dialogue:
|
|
160
159
|
close_modal: محدود موڈل ڈائیلاگ
|
|
@@ -181,13 +180,6 @@ ur:
|
|
|
181
180
|
password_shown_announcement:
|
|
182
181
|
print_link:
|
|
183
182
|
text: اس صفحے کا پرنٹ لیں
|
|
184
|
-
published_dates:
|
|
185
|
-
hidden_heading:
|
|
186
|
-
hide_all_updates: تمام اپ ڈیٹس کو پوشیدہ کریں
|
|
187
|
-
last_updated: آخری اپ ڈیٹ کردہ %{date}
|
|
188
|
-
published: شائع کردہ %{date}
|
|
189
|
-
see_all_updates: تمام اپ ڈیٹس دیکھیں
|
|
190
|
-
show_all_updates: تمام اپ ڈیٹس دکھائیں
|
|
191
183
|
radio:
|
|
192
184
|
or: یا
|
|
193
185
|
related_footer_navigation:
|
data/config/locales/uz.yml
CHANGED
|
@@ -153,13 +153,12 @@ uz:
|
|
|
153
153
|
metadata:
|
|
154
154
|
and:
|
|
155
155
|
from: дан
|
|
156
|
+
hidden_heading:
|
|
157
|
+
hide_all_updates: Барча янгиланишларни яшириш
|
|
156
158
|
history: Тарих
|
|
157
159
|
last_updated: Сўнгги янгиланиш
|
|
158
160
|
part_of: Қисм
|
|
159
161
|
published: Нашр қилинган
|
|
160
|
-
see_all_updates: Барча янгиланишларни кўриш
|
|
161
|
-
hidden_heading:
|
|
162
|
-
hide_all_updates: Барча янгиланишларни яшириш
|
|
163
162
|
show_all_updates: янгиланишларни барчасини кўрсатиш
|
|
164
163
|
modal_dialogue:
|
|
165
164
|
close_modal: Модал мулоқотни ёпиш
|
|
@@ -186,13 +185,6 @@ uz:
|
|
|
186
185
|
password_shown_announcement:
|
|
187
186
|
print_link:
|
|
188
187
|
text: Ушбу саҳифани чоп этиш
|
|
189
|
-
published_dates:
|
|
190
|
-
hidden_heading:
|
|
191
|
-
hide_all_updates: Барча янгиланишларни яшириш
|
|
192
|
-
last_updated: Сўнгги янгиланиш %{date}
|
|
193
|
-
published: Нашр қилинган %{date}
|
|
194
|
-
see_all_updates: Барча янгиланишларни кўриш
|
|
195
|
-
show_all_updates: янгиланишларни барчасини кўрсатиш
|
|
196
188
|
radio:
|
|
197
189
|
or: ёки
|
|
198
190
|
related_footer_navigation:
|
data/config/locales/vi.yml
CHANGED
|
@@ -150,13 +150,12 @@ vi:
|
|
|
150
150
|
metadata:
|
|
151
151
|
and:
|
|
152
152
|
from: Từ
|
|
153
|
+
hidden_heading:
|
|
154
|
+
hide_all_updates: ẩn tất cả các cập nhật
|
|
153
155
|
history: Lịch sử
|
|
154
156
|
last_updated: Lần cập nhật gần đây nhất
|
|
155
157
|
part_of: Một phần của
|
|
156
158
|
published: Đã xuất bản
|
|
157
|
-
see_all_updates: Xem tất cả nội dung cập nhật
|
|
158
|
-
hidden_heading:
|
|
159
|
-
hide_all_updates: ẩn tất cả các cập nhật
|
|
160
159
|
show_all_updates: hiển thị tất cả nội dung cập nhật
|
|
161
160
|
modal_dialogue:
|
|
162
161
|
close_modal: Đóng đối thoại phương thức
|
|
@@ -183,13 +182,6 @@ vi:
|
|
|
183
182
|
password_shown_announcement:
|
|
184
183
|
print_link:
|
|
185
184
|
text: In trang này
|
|
186
|
-
published_dates:
|
|
187
|
-
hidden_heading:
|
|
188
|
-
hide_all_updates: ẩn tất cả các cập nhật
|
|
189
|
-
last_updated: Lần cập nhật gần đây nhất %{date}
|
|
190
|
-
published: Ngày xuất bản %{date}
|
|
191
|
-
see_all_updates: xem tất cả nội dung cập nhật
|
|
192
|
-
show_all_updates: hiển thị tất cả nội dung cập nhật
|
|
193
185
|
radio:
|
|
194
186
|
or: hoặc
|
|
195
187
|
related_footer_navigation:
|
data/config/locales/zh-hk.yml
CHANGED
|
@@ -149,13 +149,12 @@ zh-hk:
|
|
|
149
149
|
metadata:
|
|
150
150
|
and:
|
|
151
151
|
from: 來自
|
|
152
|
+
hidden_heading:
|
|
153
|
+
hide_all_updates: 隱藏所有更新
|
|
152
154
|
history: 過往記錄
|
|
153
155
|
last_updated: 最近更新
|
|
154
156
|
part_of: 部份
|
|
155
157
|
published: 已發佈
|
|
156
|
-
see_all_updates: 查閱所有更新項
|
|
157
|
-
hidden_heading:
|
|
158
|
-
hide_all_updates: 隱藏所有更新
|
|
159
158
|
show_all_updates: 顯示所有更新
|
|
160
159
|
modal_dialogue:
|
|
161
160
|
close_modal: 關閉互動視窗對話
|
|
@@ -182,13 +181,6 @@ zh-hk:
|
|
|
182
181
|
password_shown_announcement:
|
|
183
182
|
print_link:
|
|
184
183
|
text: 列印本頁面
|
|
185
|
-
published_dates:
|
|
186
|
-
hidden_heading:
|
|
187
|
-
hide_all_updates: 隱藏所有更新
|
|
188
|
-
last_updated: 最近更新 %{date}
|
|
189
|
-
published: 已發佈 %{date}
|
|
190
|
-
see_all_updates: 查看所有更新
|
|
191
|
-
show_all_updates: 顯示所有更新
|
|
192
184
|
radio:
|
|
193
185
|
or: 或
|
|
194
186
|
related_footer_navigation:
|
data/config/locales/zh-tw.yml
CHANGED
|
@@ -149,13 +149,12 @@ zh-tw:
|
|
|
149
149
|
metadata:
|
|
150
150
|
and:
|
|
151
151
|
from: 從
|
|
152
|
+
hidden_heading:
|
|
153
|
+
hide_all_updates: 隱藏所有更新
|
|
152
154
|
history: 歷史
|
|
153
155
|
last_updated: 最新更新
|
|
154
156
|
part_of: 部分
|
|
155
157
|
published: 發布
|
|
156
|
-
see_all_updates: 查看所有更新
|
|
157
|
-
hidden_heading:
|
|
158
|
-
hide_all_updates: 隱藏所有更新
|
|
159
158
|
show_all_updates: 展開所有更新
|
|
160
159
|
modal_dialogue:
|
|
161
160
|
close_modal: 關閉模態對話
|
|
@@ -182,13 +181,6 @@ zh-tw:
|
|
|
182
181
|
password_shown_announcement:
|
|
183
182
|
print_link:
|
|
184
183
|
text: 列印此頁面
|
|
185
|
-
published_dates:
|
|
186
|
-
hidden_heading:
|
|
187
|
-
hide_all_updates: 隱藏所有更新
|
|
188
|
-
last_updated: 最後更新於 %{date}
|
|
189
|
-
published: 發布於 %{date}
|
|
190
|
-
see_all_updates: 查看所有更新
|
|
191
|
-
show_all_updates: 展開所有更新
|
|
192
184
|
radio:
|
|
193
185
|
or: 或
|
|
194
186
|
related_footer_navigation:
|
data/config/locales/zh.yml
CHANGED
|
@@ -149,13 +149,12 @@ zh:
|
|
|
149
149
|
metadata:
|
|
150
150
|
and: 和
|
|
151
151
|
from: 发自
|
|
152
|
+
hidden_heading:
|
|
153
|
+
hide_all_updates: 隐藏全部更新
|
|
152
154
|
history: 历史
|
|
153
155
|
last_updated: 上次更新
|
|
154
156
|
part_of: 一部分
|
|
155
157
|
published: 已发布
|
|
156
|
-
see_all_updates: 查看全部更新
|
|
157
|
-
hidden_heading:
|
|
158
|
-
hide_all_updates: 隐藏全部更新
|
|
159
158
|
show_all_updates: 显示全部更新
|
|
160
159
|
modal_dialogue:
|
|
161
160
|
close_modal: 关闭模态对话
|
|
@@ -182,13 +181,6 @@ zh:
|
|
|
182
181
|
password_shown_announcement:
|
|
183
182
|
print_link:
|
|
184
183
|
text: 打印本页面
|
|
185
|
-
published_dates:
|
|
186
|
-
hidden_heading:
|
|
187
|
-
hide_all_updates: 隐藏全部更新
|
|
188
|
-
last_updated: 上次更新 %{date}
|
|
189
|
-
published: 发布 %{date}
|
|
190
|
-
see_all_updates: 查看全部更新
|
|
191
|
-
show_all_updates: 显示全部更新
|
|
192
184
|
radio:
|
|
193
185
|
or: 或
|
|
194
186
|
related_footer_navigation:
|
|
@@ -41,14 +41,14 @@ module GovukPublishingComponents
|
|
|
41
41
|
series: series_options,
|
|
42
42
|
hAxis: {
|
|
43
43
|
textStyle: set_font_16,
|
|
44
|
-
title: @h_axis_title,
|
|
45
|
-
titleTextStyle:
|
|
44
|
+
title: @h_axis_title&.capitalize,
|
|
45
|
+
titleTextStyle: set_font_16,
|
|
46
46
|
format: @h_axis_format,
|
|
47
47
|
},
|
|
48
48
|
vAxis: {
|
|
49
49
|
textStyle: set_font_16,
|
|
50
|
-
title: @v_axis_title,
|
|
51
|
-
titleTextStyle:
|
|
50
|
+
title: @v_axis_title&.capitalize,
|
|
51
|
+
titleTextStyle: set_font_16,
|
|
52
52
|
format: @v_axis_format,
|
|
53
53
|
viewWindow: {
|
|
54
54
|
min: @y_axis_view_window_min,
|
|
@@ -62,14 +62,21 @@ module GovukPublishingComponents
|
|
|
62
62
|
# For charts, the palette should be used instead of the GOV.UK colour palette - https://design-system.service.gov.uk/styles/colour/
|
|
63
63
|
# https://gss.civilservice.gov.uk/policy-store/data-visualisation-colours-in-charts/#section-5
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
chart_blue_shade_50 = "#0f385c"
|
|
66
|
+
chart_teal_tint_25 = "#50a1a5"
|
|
67
|
+
chart_magenta_shade_25 = "#98285d"
|
|
68
|
+
chart_primary_orange = "#f47738"
|
|
69
|
+
chart_green_shade_50 = "#083d29"
|
|
70
|
+
chart_accent_purple = "#ba4aff"
|
|
71
|
+
chart_black = "#0b0c0c"
|
|
72
|
+
colours = [chart_blue_shade_50, chart_teal_tint_25, chart_magenta_shade_25, chart_primary_orange, chart_green_shade_50, chart_accent_purple]
|
|
71
73
|
|
|
72
|
-
|
|
74
|
+
# The chart library will cycle back through all the colours once it gets to the end of the list but we don't want that, so we add 10 black colours to the end of the list.
|
|
75
|
+
10.times do
|
|
76
|
+
colours.push(chart_black)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
colours
|
|
73
80
|
end
|
|
74
81
|
|
|
75
82
|
def chart_format_data
|
|
@@ -86,7 +93,21 @@ module GovukPublishingComponents
|
|
|
86
93
|
private
|
|
87
94
|
|
|
88
95
|
def legend_options
|
|
89
|
-
|
|
96
|
+
unless @hide_legend
|
|
97
|
+
return {
|
|
98
|
+
alignment: "start",
|
|
99
|
+
position: "top",
|
|
100
|
+
textStyle: set_font_16,
|
|
101
|
+
scrollArrows: {
|
|
102
|
+
activeColor: "#000",
|
|
103
|
+
inactiveColor: "#000",
|
|
104
|
+
},
|
|
105
|
+
pagingTextStyle: {
|
|
106
|
+
color: "#000",
|
|
107
|
+
},
|
|
108
|
+
maxLines: 4,
|
|
109
|
+
}
|
|
110
|
+
end
|
|
90
111
|
|
|
91
112
|
"none"
|
|
92
113
|
end
|
|
@@ -139,6 +139,7 @@ axe.configure({
|
|
|
139
139
|
|
|
140
140
|
Axe-core supports the following locales. Do note that since locales are contributed by our community, they are not guaranteed to include all translations needed in a release.
|
|
141
141
|
|
|
142
|
+
- Azerbaijani
|
|
142
143
|
- Basque
|
|
143
144
|
- Chinese (Simplified)
|
|
144
145
|
- Chinese (Traditional)
|