metadata_presenter 2.17.4 → 2.17.7
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/views/layouts/metadata_presenter/application.html.erb +1 -0
- data/app/views/metadata_presenter/analytics/_ga4.html.erb +1 -1
- data/app/views/metadata_presenter/analytics/analytics.html.erb +1 -1
- data/app/views/metadata_presenter/component/_autocomplete.html.erb +14 -0
- data/config/locales/en.yml +2 -1
- data/default_metadata/component/upload.json +3 -1
- data/fixtures/version.json +2 -1
- data/lib/metadata_presenter/version.rb +1 -1
- data/schemas/component/autocomplete.json +1 -7
- data/schemas/validations/validations.json +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f720779f83e51414951678449c9ada6b5dfa9a01dedbd6abc7cfd07d22888e5d
|
4
|
+
data.tar.gz: '0783ad47052d5bed54f003a6ddf664cefe0e4a198d8cf700909d6ab73e0b1169'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fd29385c175133302917639ac3715298690402f2ea5169d00a3e40227de5b6da481ecb3ead7b2d5510bdf3b3686f6badea422156f99565fa08d56b4ecdf92b6
|
7
|
+
data.tar.gz: c77e5b6d4130c8dc5e157e60d9dd13c2210e9edd04c2d198004024975efb899081dce7ad349b4b145b543d6edee80bb0a6b160bde041fe085f5677a56b75d167
|
@@ -6,6 +6,7 @@
|
|
6
6
|
<%= csp_meta_tag %>
|
7
7
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
9
|
+
<meta name="robots" content="noindex">
|
9
10
|
<link rel="shortcut icon" sizes="16x16 32x32 48x48" href="<%= asset_pack_url('media/images/favicon.ico') %>" type="image/x-icon" />
|
10
11
|
<link rel="mask-icon" href="<%= asset_pack_url('media/images/govuk-mask-icon.svg') %>" color="blue">
|
11
12
|
<link rel="apple-touch-icon" sizes="180x180" href="<%= asset_pack_url('media/images/govuk-apple-touch-icon-180x180.png') %>">
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<%=
|
2
|
+
f.govuk_collection_select component.id.to_sym,
|
3
|
+
component.items,
|
4
|
+
:id,
|
5
|
+
:name,
|
6
|
+
label: { text: input_title },
|
7
|
+
hint: {
|
8
|
+
data: { "fb-default-text" => default_text('hint') },
|
9
|
+
text: component.hint
|
10
|
+
},
|
11
|
+
class: "govuk-!-width-two-thirds"
|
12
|
+
%>
|
13
|
+
|
14
|
+
<button type="button" class="fb-govuk-button fb-govuk-button-inverted"><%=t('actions.upload_options')%></button>
|
data/config/locales/en.yml
CHANGED
@@ -18,9 +18,11 @@
|
|
18
18
|
"application/vnd.oasis.opendocument.text",
|
19
19
|
"application/pdf",
|
20
20
|
"application/rtf",
|
21
|
+
"application/csv",
|
21
22
|
"image/jpeg",
|
22
23
|
"image/png",
|
23
|
-
"application/vnd.ms-excel"
|
24
|
+
"application/vnd.ms-excel",
|
25
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
24
26
|
]
|
25
27
|
}
|
26
28
|
}
|
data/fixtures/version.json
CHANGED
@@ -559,7 +559,8 @@
|
|
559
559
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
560
560
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.template",
|
561
561
|
"application/vnd.ms-word.document.macroEnabled.12",
|
562
|
-
"application/vnd.ms-word.template.macroEnabled.12"
|
562
|
+
"application/vnd.ms-word.template.macroEnabled.12",
|
563
|
+
"application/csv"
|
563
564
|
],
|
564
565
|
"max_size": 7340032,
|
565
566
|
"virus_scan": true
|
@@ -1,18 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"$id": "http://gov.uk/schema/v1.0.0/autocomplete",
|
3
|
-
"_name": "autocomplete",
|
3
|
+
"_name": "component.autocomplete",
|
4
4
|
"title": "Autocomplete",
|
5
5
|
"description": "Let users select one option from an auto-completing list",
|
6
6
|
"type": "object",
|
7
7
|
"allOf": [
|
8
8
|
{
|
9
9
|
"$ref": "definition.select"
|
10
|
-
},
|
11
|
-
{
|
12
|
-
"$ref": "definition.field"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"$ref": "definition.width_class.input"
|
16
10
|
}
|
17
11
|
],
|
18
12
|
"properties": {
|
@@ -345,7 +345,8 @@
|
|
345
345
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
346
346
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.template",
|
347
347
|
"application/vnd.ms-word.document.macroEnabled.12",
|
348
|
-
"application/vnd.ms-word.template.macroEnabled.12"
|
348
|
+
"application/vnd.ms-word.template.macroEnabled.12",
|
349
|
+
"application/csv"
|
349
350
|
]
|
350
351
|
}
|
351
352
|
},
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metadata_presenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.17.
|
4
|
+
version: 2.17.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MoJ Forms
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_design_system_formbuilder
|
@@ -344,6 +344,7 @@ files:
|
|
344
344
|
- app/views/metadata_presenter/attribute/_heading.html.erb
|
345
345
|
- app/views/metadata_presenter/attribute/_lede.html.erb
|
346
346
|
- app/views/metadata_presenter/attribute/_section_heading.html.erb
|
347
|
+
- app/views/metadata_presenter/component/_autocomplete.html.erb
|
347
348
|
- app/views/metadata_presenter/component/_checkboxes.html.erb
|
348
349
|
- app/views/metadata_presenter/component/_components.html.erb
|
349
350
|
- app/views/metadata_presenter/component/_content.html.erb
|