@nationalarchives/frontend 0.19.0 → 0.20.0
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.
- package/nationalarchives/components/checkboxes/macro-options.json +15 -15
- package/nationalarchives/components/compound-filters/macro-options.json +6 -6
- package/nationalarchives/components/cookie-banner/macro-options.json +11 -7
- package/nationalarchives/components/date-input/date-input-day.njk +1 -1
- package/nationalarchives/components/date-input/date-input-month.njk +1 -1
- package/nationalarchives/components/date-input/date-input-year.njk +1 -1
- package/nationalarchives/components/date-input/fixtures.json +5 -5
- package/nationalarchives/components/date-input/macro-options.json +10 -16
- package/nationalarchives/components/date-input/template.njk +11 -11
- package/nationalarchives/components/date-search/macro-options.json +11 -11
- package/nationalarchives/components/error-summary/macro-options.json +1 -1
- package/nationalarchives/components/files-list/macro-options.json +1 -1
- package/nationalarchives/components/footer/fixtures.json +3 -3
- package/nationalarchives/components/footer/macro-options.json +25 -18
- package/nationalarchives/components/footer/template.njk +3 -5
- package/nationalarchives/components/gallery/macro-options.json +1 -1
- package/nationalarchives/components/hero/macro-options.json +4 -3
- package/nationalarchives/components/index-grid/macro-options.json +1 -1
- package/nationalarchives/components/picture/macro-options.json +1 -1
- package/nationalarchives/components/radios/macro-options.json +11 -11
- package/nationalarchives/components/search-field/macro-options.json +7 -7
- package/nationalarchives/components/search-field/template.njk +1 -2
- package/nationalarchives/components/secondary-navigation/macro-options.json +3 -3
- package/nationalarchives/components/select/macro-options.json +10 -10
- package/nationalarchives/components/skip-link/macro-options.json +4 -2
- package/nationalarchives/components/tabs/macro-options.json +1 -1
- package/nationalarchives/components/text-input/fixtures.json +79 -12
- package/nationalarchives/components/text-input/macro-options.json +33 -12
- package/nationalarchives/components/text-input/text-input.njk +3 -2
- package/nationalarchives/components/textarea/fixtures.json +58 -10
- package/nationalarchives/components/textarea/macro-options.json +26 -10
- package/nationalarchives/components/textarea/template.njk +1 -1
- package/nationalarchives/components/warning/macro-options.json +4 -3
- package/nationalarchives/templates/fixtures.json +6 -6
- package/package.json +1 -1
@@ -3,49 +3,49 @@
|
|
3
3
|
"name": "label",
|
4
4
|
"type": "string",
|
5
5
|
"required": true,
|
6
|
-
"description": ""
|
6
|
+
"description": "The label for the checkboxes field."
|
7
7
|
},
|
8
8
|
{
|
9
9
|
"name": "headingLevel",
|
10
10
|
"type": "number",
|
11
11
|
"required": true,
|
12
|
-
"description": ""
|
12
|
+
"description": "The heading level which represents an element from `<h1>` through to `<h6>`."
|
13
13
|
},
|
14
14
|
{
|
15
15
|
"name": "headingSize",
|
16
16
|
"type": "string",
|
17
17
|
"required": false,
|
18
|
-
"description": ""
|
18
|
+
"description": "The physical size of the checkboxes title (`xl`, `l`, `m` or `s`)."
|
19
19
|
},
|
20
20
|
{
|
21
21
|
"name": "id",
|
22
22
|
"type": "string",
|
23
23
|
"required": true,
|
24
|
-
"description": ""
|
24
|
+
"description": "A unique ID for the checkboxes component."
|
25
25
|
},
|
26
26
|
{
|
27
27
|
"name": "name",
|
28
28
|
"type": "string",
|
29
29
|
"required": true,
|
30
|
-
"description": ""
|
30
|
+
"description": "The name of the form field."
|
31
31
|
},
|
32
32
|
{
|
33
33
|
"name": "hint",
|
34
34
|
"type": "string",
|
35
35
|
"required": false,
|
36
|
-
"description": ""
|
36
|
+
"description": "An optional hint to display above the form field."
|
37
37
|
},
|
38
38
|
{
|
39
39
|
"name": "error",
|
40
40
|
"type": "object",
|
41
41
|
"required": false,
|
42
|
-
"description": "",
|
42
|
+
"description": "If set, the details of any errors.",
|
43
43
|
"params": [
|
44
44
|
{
|
45
45
|
"name": "text",
|
46
46
|
"type": "string",
|
47
47
|
"required": true,
|
48
|
-
"description": ""
|
48
|
+
"description": "The error text to display."
|
49
49
|
}
|
50
50
|
]
|
51
51
|
},
|
@@ -53,31 +53,31 @@
|
|
53
53
|
"name": "items",
|
54
54
|
"type": "array",
|
55
55
|
"required": true,
|
56
|
-
"description": "",
|
56
|
+
"description": "A list of checkbox items to render.",
|
57
57
|
"params": [
|
58
58
|
{
|
59
59
|
"name": "text",
|
60
60
|
"type": "string",
|
61
61
|
"required": true,
|
62
|
-
"description": ""
|
62
|
+
"description": "The label of the checkbox item."
|
63
63
|
},
|
64
64
|
{
|
65
65
|
"name": "value",
|
66
66
|
"type": "string",
|
67
67
|
"required": true,
|
68
|
-
"description": ""
|
68
|
+
"description": "The form field value."
|
69
69
|
},
|
70
70
|
{
|
71
71
|
"name": "name",
|
72
72
|
"type": "string",
|
73
73
|
"required": false,
|
74
|
-
"description": ""
|
74
|
+
"description": "The name of the form field item. If set, this will override the main `name` property."
|
75
75
|
},
|
76
76
|
{
|
77
77
|
"name": "checked",
|
78
78
|
"type": "boolean",
|
79
79
|
"required": false,
|
80
|
-
"description": ""
|
80
|
+
"description": "If true, the checkbox will be checked."
|
81
81
|
}
|
82
82
|
]
|
83
83
|
},
|
@@ -85,13 +85,13 @@
|
|
85
85
|
"name": "small",
|
86
86
|
"type": "boolean",
|
87
87
|
"required": false,
|
88
|
-
"description": ""
|
88
|
+
"description": "If true, show smaller checkboxes."
|
89
89
|
},
|
90
90
|
{
|
91
91
|
"name": "inline",
|
92
92
|
"type": "boolean",
|
93
93
|
"required": false,
|
94
|
-
"description": ""
|
94
|
+
"description": "If true, show the checkboxes inline rather than vertical."
|
95
95
|
},
|
96
96
|
{
|
97
97
|
"name": "formGroupClasses",
|
@@ -3,25 +3,25 @@
|
|
3
3
|
"name": "items",
|
4
4
|
"type": "array",
|
5
5
|
"required": true,
|
6
|
-
"description": "",
|
6
|
+
"description": "A list of compound filter items.",
|
7
7
|
"params": [
|
8
8
|
{
|
9
9
|
"name": "label",
|
10
10
|
"type": "string",
|
11
11
|
"required": true,
|
12
|
-
"description": ""
|
12
|
+
"description": "The label to show for the filter item."
|
13
13
|
},
|
14
14
|
{
|
15
15
|
"name": "href",
|
16
16
|
"type": "string",
|
17
17
|
"required": true,
|
18
|
-
"description": ""
|
18
|
+
"description": "The URL for the filter item."
|
19
19
|
},
|
20
20
|
{
|
21
21
|
"name": "title",
|
22
22
|
"type": "string",
|
23
23
|
"required": false,
|
24
|
-
"description": ""
|
24
|
+
"description": "An optional title for the filter item."
|
25
25
|
}
|
26
26
|
]
|
27
27
|
},
|
@@ -29,13 +29,13 @@
|
|
29
29
|
"name": "removeAllText",
|
30
30
|
"type": "string",
|
31
31
|
"required": false,
|
32
|
-
"description": ""
|
32
|
+
"description": "The text to show for the 'Remove all' link."
|
33
33
|
},
|
34
34
|
{
|
35
35
|
"name": "removeAllHref",
|
36
36
|
"type": "string",
|
37
37
|
"required": false,
|
38
|
-
"description": ""
|
38
|
+
"description": "The URL for the 'Remove all' link."
|
39
39
|
},
|
40
40
|
{
|
41
41
|
"name": "classes",
|
@@ -3,43 +3,47 @@
|
|
3
3
|
"name": "serviceName",
|
4
4
|
"type": "string",
|
5
5
|
"required": true,
|
6
|
-
"description": ""
|
6
|
+
"description": "The name of the service that the cookie banner is for."
|
7
7
|
},
|
8
8
|
{
|
9
9
|
"name": "title",
|
10
10
|
"type": "string",
|
11
11
|
"required": false,
|
12
|
-
"
|
12
|
+
"default": "This website uses cookies",
|
13
|
+
"description": "The main title of the cookie banner."
|
13
14
|
},
|
14
15
|
{
|
15
16
|
"name": "body",
|
16
17
|
"type": "string",
|
17
18
|
"required": false,
|
18
|
-
"
|
19
|
+
"default": "We use some essential cookies to make this service work.\nWe'd also like to use analytics cookies so we can understand how you use the service and make improvements.",
|
20
|
+
"description": "The body text of the cookie banner."
|
19
21
|
},
|
20
22
|
{
|
21
23
|
"name": "acceptedBody",
|
22
24
|
"type": "string",
|
23
25
|
"required": false,
|
24
|
-
"
|
26
|
+
"default": "You have accepted optional cookies. You can change your cookie settings on the [cookies page](cookiesUrl)",
|
27
|
+
"description": "The text to show if the user has accepts cookies."
|
25
28
|
},
|
26
29
|
{
|
27
30
|
"name": "rejectedBody",
|
28
31
|
"type": "string",
|
29
32
|
"required": false,
|
30
|
-
"
|
33
|
+
"default": "You have rejected optional cookies. You can change your cookie settings on the [cookies page](cookiesUrl)",
|
34
|
+
"description": "The text to show if the user declines cookies."
|
31
35
|
},
|
32
36
|
{
|
33
37
|
"name": "cookiesUrl",
|
34
38
|
"type": "string",
|
35
39
|
"required": true,
|
36
|
-
"description": ""
|
40
|
+
"description": "The URL of the cookie preferences page for the service."
|
37
41
|
},
|
38
42
|
{
|
39
43
|
"name": "preferencesSetKey",
|
40
44
|
"type": "string",
|
41
45
|
"required": false,
|
42
|
-
"description": ""
|
46
|
+
"description": "If set, the name of the cookie used to indicate that the user has set their cookie preferences."
|
43
47
|
},
|
44
48
|
{
|
45
49
|
"name": "style",
|
@@ -3,6 +3,6 @@
|
|
3
3
|
<label for="{{ params.id }}-day" class="tna-date-input__item-label">
|
4
4
|
Day
|
5
5
|
</label>
|
6
|
-
<input type="text" id="{{ params.id }}-day" value="{{ params.value.day if params.value }}" name="{{ params.name }}
|
6
|
+
<input type="text" id="{{ params.id }}-day" value="{{ params.value.day if params.value }}" name="{{ params.name }}-day" class="tna-date-input__item-input{% if inputClasses %} {{ inputClasses }}{% endif %}" inputmode="numeric"{% if params.autofillDateOfBirth %} autocomplete="bday-day"{% endif %}{%- for attribute, value in params.attributes %} {{ attribute }}{% if value !== '' %}="{{ value }}"{% endif %}{% endfor %}>
|
7
7
|
</div>
|
8
8
|
{%- endmacro %}
|
@@ -3,6 +3,6 @@
|
|
3
3
|
<label for="{{ params.id }}-month" class="tna-date-input__item-label">
|
4
4
|
Month
|
5
5
|
</label>
|
6
|
-
<input type="text" id="{{ params.id }}-month" value="{{ params.value.month if params.value }}" name="{{ params.name }}
|
6
|
+
<input type="text" id="{{ params.id }}-month" value="{{ params.value.month if params.value }}" name="{{ params.name }}-month" class="tna-date-input__item-input{% if inputClasses %} {{ inputClasses }}{% endif %}" inputmode="numeric"{% if params.autofillDateOfBirth %} autocomplete="bday-month"{% endif %}{%- for attribute, value in params.attributes %} {{ attribute }}{% if value !== '' %}="{{ value }}"{% endif %}{% endfor %}>
|
7
7
|
</div>
|
8
8
|
{%- endmacro %}
|
@@ -3,6 +3,6 @@
|
|
3
3
|
<label for="{{ params.id }}-year" class="tna-date-input__item-label">
|
4
4
|
Year
|
5
5
|
</label>
|
6
|
-
<input type="text" id="{{ params.id }}-year" value="{{ params.value.year if params.value }}" name="{{ params.name }}
|
6
|
+
<input type="text" id="{{ params.id }}-year" value="{{ params.value.year if params.value }}" name="{{ params.name }}-year" class="tna-date-input__item-input{% if inputClasses %} {{ inputClasses }}{% endif %} tna-date-input__item-input--wider" inputmode="numeric"{% if params.autofillDateOfBirth %} autocomplete="bday-year"{% endif %}{%- for attribute, value in params.attributes %} {{ attribute }}{% if value !== '' %}="{{ value }}"{% endif %}{% endfor %}>
|
7
7
|
</div>
|
8
8
|
{%- endmacro %}
|
@@ -86,7 +86,7 @@
|
|
86
86
|
"headingSize": "xs",
|
87
87
|
"id": "date",
|
88
88
|
"name": "date",
|
89
|
-
"fields": ["
|
89
|
+
"fields": ["m", "y"]
|
90
90
|
},
|
91
91
|
"html": "<div class=\"tna-form__group\"><fieldset class=\"tna-form__fieldset\"><legend class=\"tna-form__legend\"><h4 class=\"tna-form__heading tna-form__heading--xs\">Enter a start date</h4></legend><div class=\"tna-date-input\" id=\"date\"><div class=\"tna-date-input__item tna-date-input__item--month\"><label for=\"date-month\" class=\"tna-date-input__item-label\">Month</label><input type=\"text\" id=\"date-month\" value=\"\" name=\"date-month\" class=\"tna-date-input__item-input\" inputmode=\"numeric\"></div><div class=\"tna-date-input__item tna-date-input__item--year\"><label for=\"date-year\" class=\"tna-date-input__item-label\">Year</label><input type=\"text\" id=\"date-year\" value=\"\" name=\"date-year\" class=\"tna-date-input__item-input tna-date-input__item-input--wider\" inputmode=\"numeric\"></div></div></fieldset></div>"
|
92
92
|
},
|
@@ -98,22 +98,22 @@
|
|
98
98
|
"headingSize": "xs",
|
99
99
|
"id": "date",
|
100
100
|
"name": "date",
|
101
|
-
"fields": ["
|
101
|
+
"fields": ["y", "m"],
|
102
102
|
"progressive": true
|
103
103
|
},
|
104
104
|
"html": "<div class=\"tna-form__group\" data-module=\"date-input\"><fieldset class=\"tna-form__fieldset\"><legend class=\"tna-form__legend\"><h4 class=\"tna-form__heading tna-form__heading--xs\">Enter a start date</h4></legend><div class=\"tna-date-input\" id=\"date\"><div class=\"tna-date-input__item tna-date-input__item--year\"><label for=\"date-year\" class=\"tna-date-input__item-label\">Year</label><input type=\"text\" id=\"date-year\" value=\"\" name=\"date-year\" class=\"tna-date-input__item-input tna-date-input__item-input--wider\" inputmode=\"numeric\"></div><div class=\"tna-date-input__item tna-date-input__item--month\"><label for=\"date-month\" class=\"tna-date-input__item-label\">Month</label><input type=\"text\" id=\"date-month\" value=\"\" name=\"date-month\" class=\"tna-date-input__item-input\" inputmode=\"numeric\"></div></div></fieldset></div>"
|
105
105
|
},
|
106
106
|
{
|
107
|
-
"name": "
|
107
|
+
"name": "autofill date of birth",
|
108
108
|
"options": {
|
109
109
|
"label": "Enter a start date",
|
110
110
|
"headingLevel": 4,
|
111
111
|
"headingSize": "xs",
|
112
112
|
"id": "date",
|
113
113
|
"name": "date",
|
114
|
-
"
|
114
|
+
"autofillDateOfBirth": true
|
115
115
|
},
|
116
|
-
"html": "<div class=\"tna-form__group\"><fieldset class=\"tna-form__fieldset\"><legend class=\"tna-form__legend\"><h4 class=\"tna-form__heading tna-form__heading--xs\">Enter a start date</h4></legend><div class=\"tna-date-input\" id=\"date\"><div class=\"tna-date-input__item tna-date-input__item--day\"><label for=\"date-day\" class=\"tna-date-input__item-label\">Day</label><input type=\"text\" id=\"date-day\" value=\"\" name=\"date\" class=\"tna-date-input__item-input\" inputmode=\"numeric\"></div><div class=\"tna-date-input__item tna-date-input__item--month\"><label for=\"date-month\" class=\"tna-date-input__item-label\">Month</label><input type=\"text\" id=\"date-month\" value=\"\" name=\"date\" class=\"tna-date-input__item-input\" inputmode=\"numeric\"></div><div class=\"tna-date-input__item tna-date-input__item--year\"><label for=\"date-year\" class=\"tna-date-input__item-label\">Year</label><input type=\"text\" id=\"date-year\" value=\"\" name=\"date\" class=\"tna-date-input__item-input tna-date-input__item-input--wider\" inputmode=\"numeric\"></div></div></fieldset></div>"
|
116
|
+
"html": "<div class=\"tna-form__group\"><fieldset class=\"tna-form__fieldset\"><legend class=\"tna-form__legend\"><h4 class=\"tna-form__heading tna-form__heading--xs\">Enter a start date</h4></legend><div class=\"tna-date-input\" id=\"date\"><div class=\"tna-date-input__item tna-date-input__item--day\"><label for=\"date-day\" class=\"tna-date-input__item-label\">Day</label><input type=\"text\" id=\"date-day\" value=\"\" name=\"date-day\" class=\"tna-date-input__item-input\" inputmode=\"numeric\" autocomplete=\"bday-day\"></div><div class=\"tna-date-input__item tna-date-input__item--month\"><label for=\"date-month\" class=\"tna-date-input__item-label\">Month</label><input type=\"text\" id=\"date-month\" value=\"\" name=\"date-month\" class=\"tna-date-input__item-input\" inputmode=\"numeric\" autocomplete=\"bday-month\"></div><div class=\"tna-date-input__item tna-date-input__item--year\"><label for=\"date-year\" class=\"tna-date-input__item-label\">Year</label><input type=\"text\" id=\"date-year\" value=\"\" name=\"date-year\" class=\"tna-date-input__item-input tna-date-input__item-input--wider\" inputmode=\"numeric\" autocomplete=\"bday-year\"></div></div></fieldset></div>"
|
117
117
|
},
|
118
118
|
{
|
119
119
|
"name": "with classes",
|
@@ -3,37 +3,37 @@
|
|
3
3
|
"name": "label",
|
4
4
|
"type": "string",
|
5
5
|
"required": true,
|
6
|
-
"description": ""
|
6
|
+
"description": "The label for the date input field."
|
7
7
|
},
|
8
8
|
{
|
9
9
|
"name": "headingLevel",
|
10
10
|
"type": "number",
|
11
11
|
"required": true,
|
12
|
-
"description": ""
|
12
|
+
"description": "The heading level which represents an element from `<h1>` through to `<h6>`."
|
13
13
|
},
|
14
14
|
{
|
15
15
|
"name": "headingSize",
|
16
16
|
"type": "string",
|
17
17
|
"required": false,
|
18
|
-
"description": ""
|
18
|
+
"description": "The physical size of the date input title (`xl`, `l`, `m` or `s`)."
|
19
19
|
},
|
20
20
|
{
|
21
21
|
"name": "id",
|
22
22
|
"type": "string",
|
23
23
|
"required": true,
|
24
|
-
"description": ""
|
24
|
+
"description": "A unique ID for the date input component."
|
25
25
|
},
|
26
26
|
{
|
27
27
|
"name": "name",
|
28
28
|
"type": "string",
|
29
29
|
"required": true,
|
30
|
-
"description": ""
|
30
|
+
"description": "The name of the form field."
|
31
31
|
},
|
32
32
|
{
|
33
33
|
"name": "hint",
|
34
34
|
"type": "string",
|
35
35
|
"required": false,
|
36
|
-
"description": ""
|
36
|
+
"description": "An optional hint to display above the form field."
|
37
37
|
},
|
38
38
|
{
|
39
39
|
"name": "fields",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"name": "value",
|
46
46
|
"type": "object",
|
47
47
|
"required": false,
|
48
|
-
"description": "",
|
48
|
+
"description": "The values of the date fields.",
|
49
49
|
"params": [
|
50
50
|
{
|
51
51
|
"name": "day",
|
@@ -71,13 +71,13 @@
|
|
71
71
|
"name": "error",
|
72
72
|
"type": "object",
|
73
73
|
"required": false,
|
74
|
-
"description": "",
|
74
|
+
"description": "If set, the details of any errors.",
|
75
75
|
"params": [
|
76
76
|
{
|
77
77
|
"name": "text",
|
78
78
|
"type": "string",
|
79
79
|
"required": true,
|
80
|
-
"description": ""
|
80
|
+
"description": "The error text to display."
|
81
81
|
}
|
82
82
|
]
|
83
83
|
},
|
@@ -85,7 +85,7 @@
|
|
85
85
|
"name": "inline",
|
86
86
|
"type": "boolean",
|
87
87
|
"required": false,
|
88
|
-
"description": ""
|
88
|
+
"description": "If true, show the date inputs inline rather than vertical."
|
89
89
|
},
|
90
90
|
{
|
91
91
|
"name": "progressive",
|
@@ -93,12 +93,6 @@
|
|
93
93
|
"required": false,
|
94
94
|
"description": ""
|
95
95
|
},
|
96
|
-
{
|
97
|
-
"name": "removeFieldNameSuffixes",
|
98
|
-
"type": "boolean",
|
99
|
-
"required": false,
|
100
|
-
"description": ""
|
101
|
-
},
|
102
96
|
{
|
103
97
|
"name": "formGroupClasses",
|
104
98
|
"type": "string",
|
@@ -29,29 +29,29 @@
|
|
29
29
|
</p>
|
30
30
|
{%- endif %}
|
31
31
|
<div class="tna-date-input{% if params.inline %} tna-date-input--inline{% endif %}" id="{{ params.id }}">
|
32
|
-
{%- set fields = params.fields if params.fields else ['
|
32
|
+
{%- set fields = params.fields if params.fields else ['d', 'm', 'y'] -%}
|
33
33
|
{%- if params.progressive %}
|
34
34
|
{%- if params.fields %}
|
35
35
|
{%- set fields = [] -%}
|
36
|
-
{% if '
|
37
|
-
{%- set fields = fields
|
36
|
+
{% if 'y' in params.fields %}
|
37
|
+
{%- set fields = fields + ['year'] -%}
|
38
38
|
{%- endif %}
|
39
|
-
{% if '
|
40
|
-
{%- set fields = fields
|
39
|
+
{% if 'm' in params.fields %}
|
40
|
+
{%- set fields = fields + ['month'] -%}
|
41
41
|
{%- endif %}
|
42
|
-
{% if '
|
43
|
-
{%- set fields = fields
|
42
|
+
{% if 'd' in params.fields %}
|
43
|
+
{%- set fields = fields + ['day'] -%}
|
44
44
|
{%- endif %}
|
45
45
|
{%- else %}
|
46
|
-
{%- set fields = ['
|
46
|
+
{%- set fields = ['y', 'm', 'd'] -%}
|
47
47
|
{%- endif %}
|
48
48
|
{%- endif %}
|
49
49
|
{%- for field in fields %}
|
50
|
-
{%- if field == '
|
50
|
+
{%- if field == 'd' %}
|
51
51
|
{{ tnaDateInputDayElement(params) | indent(6) }}
|
52
|
-
{%- elif field == '
|
52
|
+
{%- elif field == 'm' %}
|
53
53
|
{{ tnaDateInputMonthElement(params) | indent(6) }}
|
54
|
-
{%- elif field == '
|
54
|
+
{%- elif field == 'y' %}
|
55
55
|
{{ tnaDateInputYearElement(params) | indent(6) }}
|
56
56
|
{%- endif %}
|
57
57
|
{%- endfor %}
|
@@ -3,55 +3,55 @@
|
|
3
3
|
"name": "label",
|
4
4
|
"type": "string",
|
5
5
|
"required": true,
|
6
|
-
"description": ""
|
6
|
+
"description": "The label for the date search field."
|
7
7
|
},
|
8
8
|
{
|
9
9
|
"name": "headingLevel",
|
10
10
|
"type": "number",
|
11
11
|
"required": true,
|
12
|
-
"description": ""
|
12
|
+
"description": "The heading level which represents an element from `<h1>` through to `<h6>`."
|
13
13
|
},
|
14
14
|
{
|
15
15
|
"name": "headingSize",
|
16
16
|
"type": "string",
|
17
17
|
"required": false,
|
18
|
-
"description": ""
|
18
|
+
"description": "The physical size of the date search title (`xl`, `l`, `m` or `s`)."
|
19
19
|
},
|
20
20
|
{
|
21
21
|
"name": "id",
|
22
22
|
"type": "string",
|
23
23
|
"required": true,
|
24
|
-
"description": ""
|
24
|
+
"description": "A unique ID for the date search component."
|
25
25
|
},
|
26
26
|
{
|
27
27
|
"name": "name",
|
28
28
|
"type": "string",
|
29
29
|
"required": true,
|
30
|
-
"description": ""
|
30
|
+
"description": "The name of the form field."
|
31
31
|
},
|
32
32
|
{
|
33
33
|
"name": "hint",
|
34
34
|
"type": "string",
|
35
35
|
"required": false,
|
36
|
-
"description": ""
|
36
|
+
"description": "An optional hint to display above the form field."
|
37
37
|
},
|
38
38
|
{
|
39
39
|
"name": "value",
|
40
40
|
"type": "string",
|
41
41
|
"required": false,
|
42
|
-
"description": ""
|
42
|
+
"description": "The form field value."
|
43
43
|
},
|
44
44
|
{
|
45
45
|
"name": "error",
|
46
46
|
"type": "object",
|
47
47
|
"required": false,
|
48
|
-
"description": "",
|
48
|
+
"description": "If set, the details of any errors.",
|
49
49
|
"params": [
|
50
50
|
{
|
51
51
|
"name": "text",
|
52
52
|
"type": "string",
|
53
53
|
"required": true,
|
54
|
-
"description": ""
|
54
|
+
"description": "The error text to display."
|
55
55
|
}
|
56
56
|
]
|
57
57
|
},
|
@@ -59,13 +59,13 @@
|
|
59
59
|
"name": "maxWidth",
|
60
60
|
"type": "boolean",
|
61
61
|
"required": false,
|
62
|
-
"description": ""
|
62
|
+
"description": "If true, make the date search field expand to the full width of the container."
|
63
63
|
},
|
64
64
|
{
|
65
65
|
"name": "inline",
|
66
66
|
"type": "boolean",
|
67
67
|
"required": false,
|
68
|
-
"description": ""
|
68
|
+
"description": "If true, show the date search inline rather than vertical."
|
69
69
|
},
|
70
70
|
{
|
71
71
|
"name": "formGroupClasses",
|