govuk_publishing_components 17.9.0 → 17.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea7b2d1946b7528b7f7c9e95b2001eb64f3b7cf19dda18a336a5450b4390836c
4
- data.tar.gz: 2e36cfdc9c0d786526d9aef75bdeed3689dd9a4be20176df8ca445abb58b0137
3
+ metadata.gz: fb40dbb228473a0c7840005b58db8e5a1994627bd21b7c9a6898e93014a999f4
4
+ data.tar.gz: 7d66875ffa318b5e5ea481528253c8b7a9979f1473a0cdefa4f597d6e8238795
5
5
  SHA512:
6
- metadata.gz: cd981981f232e22972e10451789952e249f528493f3fd9748605502f7084820930b456e11c960490421f8cebfcdaed556a553cb70ee33beb07ac0cd7c4f1fc12
7
- data.tar.gz: de90761a6c2d9490b848178d2bb8c4397c15a902b5934dd635d623a53afe20d39f296e90176c0bfa1bc71ec1d5e37d56b6343f693a1f92b8a54945c10d849d8f
6
+ metadata.gz: 3dbe531235d53da0bf57de7b7e56a4176ff1ff57f53676bfa35c01a7fced257734a4576a71f98abb5991cebeb11e8e12eb4af1bb577c677f36a33a90d8c7ad43
7
+ data.tar.gz: 3e0bd7c28bf4bc1727d3238e0d3d39f1126de5306111cb00b91b7162c0803b6d6847c8564a21f896a2c0d7b905aa2abd493097c6004410277b82d5271cafadeb
@@ -18,6 +18,7 @@
18
18
  <%= t.header item[:text], {
19
19
  format: item[:format],
20
20
  href: item[:href],
21
+ data_attributes: item[:data_attributes],
21
22
  sort_direction: item[:sort_direction]
22
23
  } %>
23
24
  <% end %>
@@ -95,13 +95,17 @@ examples:
95
95
  format: numeric
96
96
  sort_direction: descending
97
97
  href: /?sort_direction=desc
98
+ data_attributes:
99
+ tracking: "UTM-123A"
98
100
  - text: Rate for vehicles
99
101
  format: numeric
100
102
  href: /?sort_direction=desc
103
+ data_attributes:
104
+ tracking: "UTM-123B"
101
105
  rows:
102
106
  -
103
107
  - text: January
104
- - text:
108
+ - text:
105
109
  format: numeric
106
110
  - text: £95
107
111
  format: numeric
@@ -49,9 +49,9 @@ module GovukPublishingComponents
49
49
  classes = %w(govuk-table__header)
50
50
  classes << "govuk-table__header--#{opt[:format]}" if opt[:format]
51
51
  classes << "govuk-table__header--active" if opt[:sort_direction]
52
- link_clases = %w(app-table__sort-link)
53
- link_clases << "app-table__sort-link--#{opt[:sort_direction]}" if opt[:sort_direction]
54
- str = link_to str, opt[:href], class: link_clases if opt[:href]
52
+ link_classes = %w(app-table__sort-link)
53
+ link_classes << "app-table__sort-link--#{opt[:sort_direction]}" if opt[:sort_direction]
54
+ str = link_to str, opt[:href], class: link_classes, data: opt[:data_attributes] if opt[:href]
55
55
  tag.th str, class: classes, scope: opt[:scope] || "col"
56
56
  end
57
57
 
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '17.9.0'.freeze
2
+ VERSION = '17.10.0'.freeze
3
3
  end
@@ -49,7 +49,7 @@
49
49
  "/"
50
50
  ],
51
51
  "_resolved": "git://github.com/alphagov/accessible-autocomplete.git#3523dd9fffc70cbd9f6f555f75863c33a709f49e",
52
- "_shasum": "a652ab3d559b5d720bda723efc7bc4a435e05934",
52
+ "_shasum": "85f976262e0a13d4f1da00ca3cef9162a2114bb0",
53
53
  "_shrinkwrap": null,
54
54
  "_spec": "accessible-autocomplete@git://github.com/alphagov/accessible-autocomplete.git#add-multiselect-support",
55
55
  "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.9.0
4
+ version: 17.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev