govuk_publishing_components 17.9.0 → 17.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/govuk_publishing_components/components/_table.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/docs/table.yml +5 -1
- data/lib/govuk_publishing_components/app_helpers/table_helper.rb +3 -3
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/accessible-autocomplete/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb40dbb228473a0c7840005b58db8e5a1994627bd21b7c9a6898e93014a999f4
|
4
|
+
data.tar.gz: 7d66875ffa318b5e5ea481528253c8b7a9979f1473a0cdefa4f597d6e8238795
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dbe531235d53da0bf57de7b7e56a4176ff1ff57f53676bfa35c01a7fced257734a4576a71f98abb5991cebeb11e8e12eb4af1bb577c677f36a33a90d8c7ad43
|
7
|
+
data.tar.gz: 3e0bd7c28bf4bc1727d3238e0d3d39f1126de5306111cb00b91b7162c0803b6d6847c8564a21f896a2c0d7b905aa2abd493097c6004410277b82d5271cafadeb
|
@@ -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
|
-
|
53
|
-
|
54
|
-
str = link_to str, opt[:href], class:
|
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
|
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"/"
|
50
50
|
],
|
51
51
|
"_resolved": "git://github.com/alphagov/accessible-autocomplete.git#3523dd9fffc70cbd9f6f555f75863c33a709f49e",
|
52
|
-
"_shasum": "
|
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",
|