govuk_publishing_components 46.2.0 → 46.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-specialist-link-tracker.js +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +4 -1
- data/app/views/govuk_publishing_components/components/_copy_to_clipboard.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +9 -1
- data/app/views/govuk_publishing_components/components/_reorderable_list.html.erb +5 -3
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +10 -11
- data/app/views/govuk_publishing_components/components/_signup_link.html.erb +7 -7
- data/app/views/govuk_publishing_components/components/docs/reorderable_list.yml +1 -0
- data/app/views/govuk_publishing_components/components/docs/share_links.yml +2 -0
- data/app/views/govuk_publishing_components/components/docs/signup_link.yml +1 -0
- data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +2 -3
- data/config/locales/ar.yml +1 -0
- data/config/locales/az.yml +1 -0
- data/config/locales/be.yml +1 -0
- data/config/locales/bg.yml +1 -0
- data/config/locales/bn.yml +1 -0
- data/config/locales/cs.yml +1 -0
- data/config/locales/cy.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/dr.yml +1 -0
- data/config/locales/el.yml +1 -0
- data/config/locales/en.yml +1 -0
- data/config/locales/es-419.yml +1 -0
- data/config/locales/es.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/fa.yml +1 -0
- data/config/locales/fi.yml +1 -0
- data/config/locales/fr.yml +1 -0
- data/config/locales/gd.yml +1 -0
- data/config/locales/gu.yml +1 -0
- data/config/locales/he.yml +1 -0
- data/config/locales/hi.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +1 -0
- data/config/locales/hy.yml +1 -0
- data/config/locales/id.yml +1 -0
- data/config/locales/is.yml +1 -0
- data/config/locales/it.yml +1 -0
- data/config/locales/ja.yml +1 -0
- data/config/locales/ka.yml +1 -0
- data/config/locales/kk.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +1 -0
- data/config/locales/ms.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +1 -0
- data/config/locales/no.yml +1 -0
- data/config/locales/pa-pk.yml +1 -0
- data/config/locales/pa.yml +1 -0
- data/config/locales/pl.yml +1 -0
- data/config/locales/ps.yml +1 -0
- data/config/locales/pt.yml +1 -0
- data/config/locales/ro.yml +1 -0
- data/config/locales/ru.yml +1 -0
- data/config/locales/si.yml +1 -0
- data/config/locales/sk.yml +1 -0
- data/config/locales/sl.yml +1 -0
- data/config/locales/so.yml +1 -0
- data/config/locales/sq.yml +1 -0
- data/config/locales/sr.yml +1 -0
- data/config/locales/sv.yml +1 -0
- data/config/locales/sw.yml +1 -0
- data/config/locales/ta.yml +1 -0
- data/config/locales/th.yml +1 -0
- data/config/locales/tk.yml +1 -0
- data/config/locales/tr.yml +1 -0
- data/config/locales/uk.yml +1 -0
- data/config/locales/ur.yml +1 -0
- data/config/locales/uz.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-hk.yml +1 -0
- data/config/locales/zh-tw.yml +1 -0
- data/config/locales/zh.yml +1 -0
- data/lib/govuk_publishing_components/app_helpers/asset_helper.rb +1 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36483f22d5d78ac563f819c7638cd059053b38a5df71a48b6ae6d8eef6e21a2c
|
4
|
+
data.tar.gz: 60063513c4f84e2107e77a4b670f2dabcd95efc6650a72dda3097deb1caf4ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9932de97294ccc4e51ce64fc07cfffd11b39d882f0ed69690e0f0e19a4e7fb57af59b10932a80c8a7bd0d23a87abc8486e7f072ab7fc34c0da25f8f11b5d26a
|
7
|
+
data.tar.gz: 2ded4ab1c925b4af9171cbe11412e38b9fc56dff8de8428254413115b06d370a8d29621c62c0e8d76e603c82c4042c229e41b27962d52076c8ddfe8fc9c23336
|
data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-specialist-link-tracker.js
CHANGED
@@ -9,7 +9,7 @@ window.GOVUK.analyticsGa4.analyticsModules = window.GOVUK.analyticsGa4.analytics
|
|
9
9
|
init: function (config) {
|
10
10
|
if (window.dataLayer) {
|
11
11
|
config = config || {}
|
12
|
-
this.internalDownloadPaths = config.internalDownloadPaths || ['/government/uploads/']
|
12
|
+
this.internalDownloadPaths = config.internalDownloadPaths || ['/government/uploads/', '/media/']
|
13
13
|
this.dedicatedDownloadDomains = config.dedicatedDownloadDomains || ['assets.publishing.service.gov.uk']
|
14
14
|
window.GOVUK.analyticsGa4.core.trackFunctions.appendDomainsWithoutWWW(this.dedicatedDownloadDomains)
|
15
15
|
this.handleClick = this.handleClick.bind(this)
|
data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb
CHANGED
@@ -317,7 +317,7 @@
|
|
317
317
|
label: "Site-wide",
|
318
318
|
}
|
319
319
|
) do %>
|
320
|
-
|
320
|
+
<% search_options = {
|
321
321
|
name: "keywords",
|
322
322
|
inline_label: false,
|
323
323
|
label_size: "m",
|
@@ -327,6 +327,14 @@
|
|
327
327
|
margin_bottom: 0,
|
328
328
|
disable_corrections: true,
|
329
329
|
} %>
|
330
|
+
<% if ENV["GOVUK_DISABLE_SEARCH_AUTOCOMPLETE"] %>
|
331
|
+
<%= render "govuk_publishing_components/components/search", search_options %>
|
332
|
+
<% else %>
|
333
|
+
<%= render "govuk_publishing_components/components/search_with_autocomplete", search_options.merge({
|
334
|
+
source_url: [Plek.new.website_root, "/api/search/autocomplete.json"].join,
|
335
|
+
source_key: "suggestions",
|
336
|
+
}) %>
|
337
|
+
<% end %>
|
330
338
|
<% end %>
|
331
339
|
</div>
|
332
340
|
</div>
|
@@ -3,11 +3,13 @@
|
|
3
3
|
|
4
4
|
items ||= []
|
5
5
|
input_name ||= "ordering"
|
6
|
-
|
7
|
-
|
6
|
+
|
7
|
+
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
8
|
+
component_helper.add_class("gem-c-reorderable-list")
|
9
|
+
component_helper.add_data_attribute({ module: "reorderable-list" })
|
8
10
|
%>
|
9
11
|
|
10
|
-
<%= tag.ol
|
12
|
+
<%= tag.ol(**component_helper.all_attributes) do %>
|
11
13
|
<% items.each_with_index do |item, index| %>
|
12
14
|
<%= tag.li class: "gem-c-reorderable-list__item" do %>
|
13
15
|
<%= tag.div class: "gem-c-reorderable-list__wrapper" do %>
|
@@ -14,19 +14,18 @@
|
|
14
14
|
black_icons ||= false
|
15
15
|
black_links ||= false
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
((data_attributes[:module] ||= "") << " " << "ga4-link-tracker").strip! if track_as_sharing || track_as_follow
|
17
|
+
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
18
|
+
component_helper.add_class("gem-c-share-links govuk-!-display-none-print")
|
19
|
+
component_helper.add_class("gem-c-share-links--stacked") if stacked
|
20
|
+
component_helper.add_class("gem-c-share-links--columns") if columns
|
21
|
+
component_helper.add_class("gem-c-share-links--flexbox") if flexbox
|
22
|
+
component_helper.add_class("gem-c-share-links--square-icons") if square_icons
|
23
|
+
component_helper.add_class("gem-c-share-links--black-icons") if black_icons
|
24
|
+
component_helper.add_class("gem-c-share-links--black-links") if black_links
|
25
|
+
component_helper.add_data_attribute({ module: "ga4-link-tracker" }) if track_as_sharing || track_as_follow
|
27
26
|
%>
|
28
27
|
<% if links.any? %>
|
29
|
-
<%= tag.div(
|
28
|
+
<%= tag.div(**component_helper.all_attributes) do %>
|
30
29
|
<% if title %>
|
31
30
|
<h2 class="govuk-heading-s"><%= title %></h2>
|
32
31
|
<% end %>
|
@@ -10,14 +10,14 @@
|
|
10
10
|
data ||= false
|
11
11
|
|
12
12
|
shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
14
|
+
component_helper.add_class("gem-c-signup-link govuk-!-display-none-print")
|
15
|
+
component_helper.add_class(shared_helper.get_margin_bottom)
|
16
|
+
component_helper.add_class("gem-c-signup-link--link-only") unless heading
|
17
|
+
component_helper.add_class("gem-c-signup-link--with-background-and-border") if background
|
18
18
|
%>
|
19
19
|
<% if link_text && link_href %>
|
20
|
-
|
20
|
+
<%= tag.div(**component_helper.all_attributes) do %>
|
21
21
|
<div class="gem-c-signup-link__inner govuk-width-container">
|
22
22
|
<svg class="gem-c-signup-link__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" height="18" width="18" viewBox="0 0 459.334 459.334">
|
23
23
|
<path fill="black" d="M177.216 404.514c-.001.12-.009.239-.009.359 0 30.078 24.383 54.461 54.461 54.461s54.461-24.383 54.461-54.461c0-.12-.008-.239-.009-.359H175.216zM403.549 336.438l-49.015-72.002v-89.83c0-60.581-43.144-111.079-100.381-122.459V24.485C254.152 10.963 243.19 0 229.667 0s-24.485 10.963-24.485 24.485v27.663c-57.237 11.381-100.381 61.879-100.381 122.459v89.83l-49.015 72.002a24.76 24.76 0 0 0 20.468 38.693H383.08a24.761 24.761 0 0 0 20.469-38.694z"/>
|
@@ -28,5 +28,5 @@
|
|
28
28
|
data: data
|
29
29
|
}) %>
|
30
30
|
</div>
|
31
|
-
|
31
|
+
<% end %>
|
32
32
|
<% end %>
|
@@ -4,6 +4,7 @@ accessibility_criteria: |
|
|
4
4
|
- the component must use the correct heading level for the page
|
5
5
|
- text should have a text contrast ratio higher than 4.5:1 against the background colour to meet WCAG AA
|
6
6
|
- the icon must not be focusable or shown to screenreaders
|
7
|
+
uses_component_wrapper_helper: true
|
7
8
|
shared_accessibility_criteria:
|
8
9
|
- link
|
9
10
|
examples:
|
@@ -5,9 +5,10 @@
|
|
5
5
|
remaining = items[list_limit..items.length]
|
6
6
|
items = items[0...list_limit]
|
7
7
|
end
|
8
|
+
connector = " #{t("components.metadata.and")} "
|
8
9
|
%>
|
10
|
+
<%= items.to_sentence(two_words_connector: connector, last_word_connector: connector).html_safe %>
|
9
11
|
<% if remaining.any? %>
|
10
|
-
<%= items.to_sentence(last_word_connector: ' and ').html_safe %>
|
11
12
|
<div class="gem-c-metadata__toggle-wrap govuk-!-display-none-print">
|
12
13
|
<a href="#"
|
13
14
|
class="gem-c-metadata__definition-link govuk-!-display-none-print"
|
@@ -20,6 +21,4 @@
|
|
20
21
|
</a>
|
21
22
|
</div>
|
22
23
|
<span id="toggle-<%= toggle_id %>" class="gem-c-metadata__toggle-items js-hidden"><%= remaining.to_sentence.html_safe %></span>
|
23
|
-
<% else %>
|
24
|
-
<%= items.to_sentence(last_word_connector: ' and ').html_safe %>
|
25
24
|
<% end %>
|
data/config/locales/ar.yml
CHANGED
data/config/locales/az.yml
CHANGED
data/config/locales/be.yml
CHANGED
data/config/locales/bg.yml
CHANGED
data/config/locales/bn.yml
CHANGED
data/config/locales/cs.yml
CHANGED
data/config/locales/cy.yml
CHANGED
data/config/locales/da.yml
CHANGED
data/config/locales/de.yml
CHANGED
data/config/locales/dr.yml
CHANGED
data/config/locales/el.yml
CHANGED
data/config/locales/en.yml
CHANGED
data/config/locales/es-419.yml
CHANGED
data/config/locales/es.yml
CHANGED
data/config/locales/et.yml
CHANGED
data/config/locales/fa.yml
CHANGED
data/config/locales/fi.yml
CHANGED
data/config/locales/fr.yml
CHANGED
data/config/locales/gd.yml
CHANGED
data/config/locales/gu.yml
CHANGED
data/config/locales/he.yml
CHANGED
data/config/locales/hi.yml
CHANGED
data/config/locales/hr.yml
CHANGED
data/config/locales/hu.yml
CHANGED
data/config/locales/hy.yml
CHANGED
data/config/locales/id.yml
CHANGED
data/config/locales/is.yml
CHANGED
data/config/locales/it.yml
CHANGED
data/config/locales/ja.yml
CHANGED
data/config/locales/ka.yml
CHANGED
data/config/locales/kk.yml
CHANGED
data/config/locales/ko.yml
CHANGED
data/config/locales/lt.yml
CHANGED
data/config/locales/lv.yml
CHANGED
data/config/locales/ms.yml
CHANGED
data/config/locales/mt.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/config/locales/no.yml
CHANGED
data/config/locales/pa-pk.yml
CHANGED
data/config/locales/pa.yml
CHANGED
data/config/locales/pl.yml
CHANGED
data/config/locales/ps.yml
CHANGED
data/config/locales/pt.yml
CHANGED
data/config/locales/ro.yml
CHANGED
data/config/locales/ru.yml
CHANGED
data/config/locales/si.yml
CHANGED
data/config/locales/sk.yml
CHANGED
data/config/locales/sl.yml
CHANGED
data/config/locales/so.yml
CHANGED
data/config/locales/sq.yml
CHANGED
data/config/locales/sr.yml
CHANGED
data/config/locales/sv.yml
CHANGED
data/config/locales/sw.yml
CHANGED
data/config/locales/ta.yml
CHANGED
data/config/locales/th.yml
CHANGED
data/config/locales/tk.yml
CHANGED
data/config/locales/tr.yml
CHANGED
data/config/locales/uk.yml
CHANGED
data/config/locales/ur.yml
CHANGED
data/config/locales/uz.yml
CHANGED
data/config/locales/vi.yml
CHANGED
data/config/locales/zh-hk.yml
CHANGED
data/config/locales/zh-tw.yml
CHANGED
data/config/locales/zh.yml
CHANGED
@@ -23,6 +23,7 @@ module GovukPublishingComponents
|
|
23
23
|
govuk_publishing_components/components/_input.css
|
24
24
|
govuk_publishing_components/components/_label.css
|
25
25
|
govuk_publishing_components/components/_search.css
|
26
|
+
govuk_publishing_components/components/_search-with-autocomplete.css
|
26
27
|
govuk_publishing_components/components/_skip-link.css
|
27
28
|
govuk_publishing_components/components/_textarea.css
|
28
29
|
govuk_publishing_components/components/_title.css
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 46.
|
4
|
+
version: 46.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chartkick
|
@@ -164,6 +164,20 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: climate_control
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: dartsass-rails
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|