govuk_publishing_components 21.55.3 → 21.57.0
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/components/print-link.js +14 -0
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +11 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +1 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +9 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +52 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_summary-list.scss +18 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_link.scss +17 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss +5 -1
- data/app/controllers/govuk_publishing_components/component_guide_controller.rb +26 -16
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +11 -7
- data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/_input.html.erb +3 -4
- data/app/views/govuk_publishing_components/components/_print_link.html.erb +27 -0
- data/app/views/govuk_publishing_components/components/_summary_list.html.erb +34 -14
- data/app/views/govuk_publishing_components/components/docs/action_link.yml +5 -0
- data/app/views/govuk_publishing_components/components/docs/input.yml +9 -1
- data/app/views/govuk_publishing_components/components/docs/print_link.yml +24 -0
- data/app/views/govuk_publishing_components/components/docs/summary_list.yml +27 -0
- data/config/locales/en.yml +5 -0
- data/lib/govuk_publishing_components.rb +2 -1
- data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +50 -42
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_ancestors.rb +41 -0
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +1 -0
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_taxons.rb +4 -0
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_topic.rb +38 -0
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +15 -4
- data/lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb +3 -1
- data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +18 -17
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/CHANGELOG.md +11 -0
- data/node_modules/axe-core/axe.js +36 -9
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/bower.json +1 -1
- data/node_modules/axe-core/lib/checks/color/color-contrast.js +2 -2
- data/node_modules/axe-core/lib/checks/lists/listitem.js +1 -1
- data/node_modules/axe-core/lib/checks/mobile/meta-viewport-scale.js +3 -0
- data/node_modules/axe-core/lib/commons/dom/is-visible.js +37 -19
- data/node_modules/axe-core/lib/core/public/configure.js +26 -0
- data/node_modules/axe-core/lib/rules/aria-input-field-name.json +1 -1
- data/node_modules/axe-core/package.json +12 -12
- data/node_modules/axe-core/sri-history.json +4 -0
- metadata +9 -3
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_parent.rb +0 -39
@@ -186,5 +186,9 @@
|
|
186
186
|
"3.5.4": {
|
187
187
|
"axe.js": "sha256-4f1ZZbAr3xgoAputB3oZK5ASoazrNIw6SU2M1Nnb4bg=",
|
188
188
|
"axe.min.js": "sha256-XDhCakYtcQtOpujvhE876/a4fUyZjiKtNn8xniP03Ek="
|
189
|
+
},
|
190
|
+
"3.5.5": {
|
191
|
+
"axe.js": "sha256-u+Xkb1EmxyRof8YJD9nPMbq9e3VXBj5cO99aEtr2uEs=",
|
192
|
+
"axe.min.js": "sha256-ODhTB+pG6Fxp1+zEO2uNekC30gj1q8gQ4iCZZpMQhuE="
|
189
193
|
}
|
190
194
|
}
|
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: 21.
|
4
|
+
version: 21.57.0
|
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: 2020-06-
|
11
|
+
date: 2020-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gds-api-adapters
|
@@ -437,6 +437,7 @@ files:
|
|
437
437
|
- app/assets/javascripts/govuk_publishing_components/components/header.js
|
438
438
|
- app/assets/javascripts/govuk_publishing_components/components/initial-focus.js
|
439
439
|
- app/assets/javascripts/govuk_publishing_components/components/modal-dialogue.js
|
440
|
+
- app/assets/javascripts/govuk_publishing_components/components/print-link.js
|
440
441
|
- app/assets/javascripts/govuk_publishing_components/components/radio.js
|
441
442
|
- app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js
|
442
443
|
- app/assets/javascripts/govuk_publishing_components/components/tabs.js
|
@@ -504,6 +505,7 @@ files:
|
|
504
505
|
- app/assets/stylesheets/govuk_publishing_components/components/_panel.scss
|
505
506
|
- app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss
|
506
507
|
- app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss
|
508
|
+
- app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
|
507
509
|
- app/assets/stylesheets/govuk_publishing_components/components/_radio.scss
|
508
510
|
- app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss
|
509
511
|
- app/assets/stylesheets/govuk_publishing_components/components/_search.scss
|
@@ -548,6 +550,7 @@ files:
|
|
548
550
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
|
549
551
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_contents-list-helper.scss
|
550
552
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_govuk-frontend-settings.scss
|
553
|
+
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_link.scss
|
551
554
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss
|
552
555
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss
|
553
556
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss
|
@@ -646,6 +649,7 @@ files:
|
|
646
649
|
- app/views/govuk_publishing_components/components/_panel.html.erb
|
647
650
|
- app/views/govuk_publishing_components/components/_phase_banner.html.erb
|
648
651
|
- app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb
|
652
|
+
- app/views/govuk_publishing_components/components/_print_link.html.erb
|
649
653
|
- app/views/govuk_publishing_components/components/_radio.html.erb
|
650
654
|
- app/views/govuk_publishing_components/components/_related_navigation.html.erb
|
651
655
|
- app/views/govuk_publishing_components/components/_search.html.erb
|
@@ -721,6 +725,7 @@ files:
|
|
721
725
|
- app/views/govuk_publishing_components/components/docs/panel.yml
|
722
726
|
- app/views/govuk_publishing_components/components/docs/phase_banner.yml
|
723
727
|
- app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
|
728
|
+
- app/views/govuk_publishing_components/components/docs/print_link.yml
|
724
729
|
- app/views/govuk_publishing_components/components/docs/radio.yml
|
725
730
|
- app/views/govuk_publishing_components/components/docs/related_navigation.yml
|
726
731
|
- app/views/govuk_publishing_components/components/docs/search.yml
|
@@ -768,9 +773,10 @@ files:
|
|
768
773
|
- lib/govuk_publishing_components/presenters/breadcrumbs.rb
|
769
774
|
- lib/govuk_publishing_components/presenters/button_helper.rb
|
770
775
|
- lib/govuk_publishing_components/presenters/checkboxes_helper.rb
|
771
|
-
- lib/govuk_publishing_components/presenters/
|
776
|
+
- lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_ancestors.rb
|
772
777
|
- lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb
|
773
778
|
- lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_taxons.rb
|
779
|
+
- lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_topic.rb
|
774
780
|
- lib/govuk_publishing_components/presenters/content_item.rb
|
775
781
|
- lib/govuk_publishing_components/presenters/contents_list_helper.rb
|
776
782
|
- lib/govuk_publishing_components/presenters/contextual_navigation.rb
|
@@ -1,39 +0,0 @@
|
|
1
|
-
module GovukPublishingComponents
|
2
|
-
module Presenters
|
3
|
-
# @private
|
4
|
-
class ContentBreadcrumbsBasedOnParent
|
5
|
-
def initialize(content_item)
|
6
|
-
@content_item = ContentItem.new(content_item)
|
7
|
-
end
|
8
|
-
|
9
|
-
def breadcrumbs
|
10
|
-
ordered_parents = all_parents.map do |parent|
|
11
|
-
{ title: parent.title, url: parent.base_path }
|
12
|
-
end
|
13
|
-
|
14
|
-
ordered_parents << { title: "Home", url: "/" }
|
15
|
-
|
16
|
-
{
|
17
|
-
breadcrumbs: ordered_parents.reverse,
|
18
|
-
}
|
19
|
-
end
|
20
|
-
|
21
|
-
private
|
22
|
-
|
23
|
-
attr_reader :content_item
|
24
|
-
|
25
|
-
def all_parents
|
26
|
-
parents = []
|
27
|
-
|
28
|
-
direct_parent = content_item.parent
|
29
|
-
while direct_parent
|
30
|
-
parents << direct_parent
|
31
|
-
|
32
|
-
direct_parent = direct_parent.parent
|
33
|
-
end
|
34
|
-
|
35
|
-
parents
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|