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 +4 -4
- data/app/views/metadata_presenter/component/_textarea.html.erb +1 -1
- data/default_metadata/component/autocomplete.json +1 -1
- data/lib/metadata_presenter/version.rb +1 -1
- data/schemas/component/autocomplete.json +6 -0
- data/schemas/definition/select.json +2 -10
- data/schemas/definition/select_item.json +31 -0
- metadata +3 -3
- data/schemas/definition/select_option.json +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c079c0847adaccf21574a07a32cf5a4fddf1fba7e8466f1b0b0d60f38fefab7a
|
4
|
+
data.tar.gz: eafb0dc710884f01c8e30fcc2ede557dc0fc2da5c8995c312f2a748556b3e4ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}]",
|
@@ -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": "
|
7
|
+
"title": "Items",
|
16
8
|
"description": "Items that users can select",
|
17
9
|
"type": "array",
|
18
10
|
"items": {
|
19
|
-
"$ref": "definition.
|
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.
|
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-
|
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/
|
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
|
-
}
|