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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1319d1ef92929cfe90e5d393ab22b300017dea7a20463d146a420b074722dcb8
4
- data.tar.gz: 462da18acdf93f6e97500a543e9f0151eec78bc0670f04c0b57388c1962efd8b
3
+ metadata.gz: f720779f83e51414951678449c9ada6b5dfa9a01dedbd6abc7cfd07d22888e5d
4
+ data.tar.gz: '0783ad47052d5bed54f003a6ddf664cefe0e4a198d8cf700909d6ab73e0b1169'
5
5
  SHA512:
6
- metadata.gz: 9b27f1e84d0e2b713ca2a1ee1ed36623bdf18b1585e723207c4247d88fadc760b8530c68e38161f9365d1e464f85d909be27760eba588da06deff6df666b0318
7
- data.tar.gz: 8a60e5b0ae4fbb55d6def14a76d2dc91d89a1c4abb167d0fd4c2a2824147808aa3f6055384315a3d5e67db35b78f2a4f6d063b9c8926cfc492756b4ee3534830
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') %>">
@@ -1,5 +1,5 @@
1
1
  <!-- Google Analytics 4 -->
2
- <% if Rails.application.config.global_ga4.present? %>
2
+ <% if Rails.application.config.respond_to?(:global_ga4) %>
3
3
  <script>
4
4
  gtag('config', '<%= measurement_id %>');
5
5
  </script>
@@ -1,4 +1,4 @@
1
- <% if Rails.application.config.global_ga4.present? %>
1
+ <% if Rails.application.config.respond_to?(:global_ga4) %>
2
2
  <%= render partial: 'metadata_presenter/analytics/global_analytics', locals: { measurement_id: Rails.application.config.global_ga4 } %>
3
3
  <% end %>
4
4
 
@@ -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>
@@ -1,8 +1,9 @@
1
1
  en:
2
2
  actions:
3
- start: Start Now
3
+ start: Start now
4
4
  continue: Continue
5
5
  submit: Submit
6
+ upload_options: Upload options
6
7
  analytics:
7
8
  heading: Cookies on %{service_name}
8
9
  body_1: We use some essential cookies to make this service work.
@@ -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
  }
@@ -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,3 +1,3 @@
1
1
  module MetadataPresenter
2
- VERSION = '2.17.4'.freeze
2
+ VERSION = '2.17.7'.freeze
3
3
  end
@@ -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
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-06-27 00:00:00.000000000 Z
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