metadata_presenter 2.17.0 → 2.17.3

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: 69339189940b628d7be7e2a6515c4382cc44d5726d3ecac9adb86b975cd1d5d8
4
- data.tar.gz: 1d5724fabda8bf28f79d6d31b28f348d9c144f63f49b3ac945e9f4f7a372bd61
3
+ metadata.gz: c079c0847adaccf21574a07a32cf5a4fddf1fba7e8466f1b0b0d60f38fefab7a
4
+ data.tar.gz: eafb0dc710884f01c8e30fcc2ede557dc0fc2da5c8995c312f2a748556b3e4ef
5
5
  SHA512:
6
- metadata.gz: 768d25f256f70733fb563fc75604e90690c36e78d7a8191b8d468c1b678e17d7e158e88bcfda50f028c40e21aeb6de3ca509650e21f1323965a3a01923460eff
7
- data.tar.gz: 026c6ba54417b041a173a8523b11baadb3e15a18eaaab57ace3db3376bf47c6b46059ea6706900940deaeaf4edb61f9959ee6d7b9c2b098a61697739845dfda8
6
+ metadata.gz: 87324f9fcefbe834370f94c5e1cff7cf3e059436426bbc436caeee9e8e39d1a779e6fe986ba042ba2123e5eb124f5c7c495d60d09bbd275f248662ae270036b5
7
+ data.tar.gz: 3ac5eebef758cd8f6bc40b6bb067baa47566d318fa3d0b8c830cf8718dd038ceafb9ff835484d160bd9fca8cb41ce76b2d69b2b7a6f6fcbb6a4d7d0fa8a6f7f3
@@ -2,7 +2,7 @@
2
2
  f.govuk_text_area component.id.to_sym,
3
3
  label: { text: input_title },
4
4
  hint: {
5
- data: { "fb-default-text" => default_text('hint') },
5
+ data: { "fb-default-text" => default_text('hint'), "fb-node" => "hint" },
6
6
  text: component.hint
7
7
  },
8
8
  name: "answers[#{component.name}]",
@@ -3,7 +3,7 @@
3
3
  "_type": "autocomplete",
4
4
  "errors": {},
5
5
  "hint": "",
6
- "options": [],
6
+ "items": [],
7
7
  "name": "component-name",
8
8
  "legend": "Question",
9
9
  "validation": {
@@ -1,3 +1,3 @@
1
1
  module MetadataPresenter
2
- VERSION = '2.17.0'.freeze
2
+ VERSION = '2.17.3'.freeze
3
3
  end
@@ -7,6 +7,12 @@
7
7
  "allOf": [
8
8
  {
9
9
  "$ref": "definition.select"
10
+ },
11
+ {
12
+ "$ref": "definition.field"
13
+ },
14
+ {
15
+ "$ref": "definition.width_class.input"
10
16
  }
11
17
  ],
12
18
  "properties": {
@@ -2,21 +2,13 @@
2
2
  "$id": "http://gov.uk/schema/v1.0.0/definition/select",
3
3
  "_name": "definition.select",
4
4
  "title": "Select component definition",
5
- "allOf": [
6
- {
7
- "$ref": "definition.field"
8
- },
9
- {
10
- "$ref": "definition.width_class.input"
11
- }
12
- ],
13
5
  "properties": {
14
6
  "items": {
15
- "title": "Options",
7
+ "title": "Items",
16
8
  "description": "Items that users can select",
17
9
  "type": "array",
18
10
  "items": {
19
- "$ref": "definition.select_option"
11
+ "$ref": "definition.select_item"
20
12
  }
21
13
  }
22
14
  },
@@ -0,0 +1,31 @@
1
+ {
2
+ "$id": "http://gov.uk/schema/v1.0.0/definition/select_item",
3
+ "_name": "definition.select_item",
4
+ "title": "Select item",
5
+ "description": "Component that provides a select item",
6
+ "type": "object",
7
+ "properties": {
8
+ "text": {
9
+ "title": "Item text",
10
+ "description": "Text displayed to users for that item",
11
+ "type": "string",
12
+ "content": true
13
+ },
14
+ "value": {
15
+ "title": "Item value",
16
+ "description": "Value assigned when users select item",
17
+ "type": "string"
18
+ }
19
+ },
20
+ "allOf": [
21
+ {
22
+ "$ref": "definition.component"
23
+ }
24
+ ],
25
+ "required": [
26
+ "value"
27
+ ],
28
+ "category": [
29
+ "select_item"
30
+ ]
31
+ }
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.0
4
+ version: 2.17.3
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-09 00:00:00.000000000 Z
11
+ date: 2022-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_design_system_formbuilder
@@ -504,7 +504,7 @@ files:
504
504
  - schemas/definition/radio.json
505
505
  - schemas/definition/repeatable.json
506
506
  - schemas/definition/select.json
507
- - schemas/definition/select_option.json
507
+ - schemas/definition/select_item.json
508
508
  - schemas/definition/width_class.input.json
509
509
  - schemas/definition/width_class.json
510
510
  - schemas/errors/errors.json
@@ -1,34 +0,0 @@
1
- {
2
- "$id": "http://gov.uk/schema/v1.0.0/definition/select_option",
3
- "_name": "definition.select_option",
4
- "title": "Select option",
5
- "description": "Component that provides a select option",
6
- "type": "object",
7
- "properties": {
8
- "_type": {
9
- "const": "select_option"
10
- },
11
- "text": {
12
- "title": "Option text",
13
- "description": "Text displayed to users for that option",
14
- "type": "string",
15
- "content": true
16
- },
17
- "value": {
18
- "title": "Option value",
19
- "description": "Value assigned when users select option",
20
- "type": "string"
21
- }
22
- },
23
- "allOf": [
24
- {
25
- "$ref": "definition.component"
26
- }
27
- ],
28
- "required": [
29
- "value"
30
- ],
31
- "category": [
32
- "select_option"
33
- ]
34
- }