@ons/design-system 62.0.2 → 62.1.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/README.md +0 -63
- package/components/access-code/example-access-code-error.njk +87 -0
- package/components/access-code/example-access-code.njk +63 -0
- package/components/accordion/example-accordion-open.njk +126 -0
- package/components/accordion/example-accordion.njk +25 -0
- package/components/address-input/example-address-input-editable.njk +52 -0
- package/components/address-input/example-address-input-manual.njk +23 -0
- package/components/address-input/example-address-input.njk +40 -0
- package/components/autosuggest/example-autosuggest-country-multiple.njk +30 -0
- package/components/autosuggest/example-autosuggest-country.njk +29 -0
- package/components/back-link/example-back-link.njk +17 -0
- package/components/breadcrumbs/example-breadcrumbs-single.njk +13 -0
- package/components/breadcrumbs/example-breadcrumbs.njk +17 -0
- package/components/button/example-button-custom.njk +20 -0
- package/components/button/example-button-disabled.njk +7 -0
- package/components/button/example-button-download.njk +9 -0
- package/components/button/example-button-ghost.njk +15 -0
- package/components/button/example-button-group.njk +16 -0
- package/components/button/example-button-link.njk +7 -0
- package/components/button/example-button-loader.njk +9 -0
- package/components/button/example-button-new-window.njk +12 -0
- package/components/button/example-button-print.njk +8 -0
- package/components/button/example-button-secondary-small.njk +8 -0
- package/components/button/example-button-secondary.njk +8 -0
- package/components/button/example-button-small.njk +8 -0
- package/components/button/example-button-timer.njk +9 -0
- package/components/button/example-button.njk +6 -0
- package/components/call-to-action/example-call-to-action-default.njk +14 -0
- package/components/card/example-card-set-with-images.njk +41 -0
- package/components/card/example-card-set-with-lists.njk +68 -0
- package/components/card/example-card-set.njk +38 -0
- package/components/card/example-card.njk +9 -0
- package/components/checkboxes/example-checkboxes-disabled.njk +34 -0
- package/components/checkboxes/example-checkboxes-error.njk +60 -0
- package/components/checkboxes/example-checkboxes-with-descriptions.njk +71 -0
- package/components/checkboxes/example-checkboxes-with-hidden-label.njk +177 -0
- package/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk +86 -0
- package/components/checkboxes/example-checkboxes-with-revealed-radios.njk +69 -0
- package/components/checkboxes/example-checkboxes-with-revealed-select.njk +71 -0
- package/components/checkboxes/example-checkboxes-with-revealed-text-input.njk +59 -0
- package/components/checkboxes/example-checkboxes-with-select-all-button.njk +51 -0
- package/components/checkboxes/example-checkboxes-with-visible-text-input.njk +61 -0
- package/components/checkboxes/example-checkboxes-without-border.njk +33 -0
- package/components/checkboxes/example-checkboxes.njk +46 -0
- package/components/content-pagination/example-content-pagination.njk +20 -0
- package/components/cookies-banner/_macro.njk +2 -2
- package/components/cookies-banner/_macro.spec.js +1 -1
- package/components/cookies-banner/example-cookies-banner-cymraeg.njk +9 -0
- package/components/cookies-banner/example-cookies-banner.njk +7 -0
- package/components/date-input/example-date-input-error.njk +62 -0
- package/components/date-input/example-date-input.njk +36 -0
- package/components/details/example-details-with-saved-state.njk +10 -0
- package/components/details/example-details-with-warning.njk +19 -0
- package/components/details/example-details.njk +9 -0
- package/components/document-list/example-document-list-article-featured.njk +31 -0
- package/components/document-list/example-document-list-articles.njk +60 -0
- package/components/document-list/example-document-list-downloads.njk +59 -0
- package/components/document-list/example-document-list-search-result-featured.njk +19 -0
- package/components/document-list/example-document-list-search-results.njk +67 -0
- package/components/duration/example-duration-error.njk +30 -0
- package/components/duration/example-duration.njk +35 -0
- package/components/duration/examples-duration-error-for-single-field.njk +31 -0
- package/components/external-link/example-external-link.njk +8 -0
- package/components/feedback/example-feedback-call-to-action.njk +14 -0
- package/components/footer/example-footer-cymraeg.njk +54 -0
- package/components/footer/example-footer-default.njk +7 -0
- package/components/footer/example-footer-transactional.njk +62 -0
- package/components/footer/example-footer-warning.njk +32 -0
- package/components/footer/example-footer-with-alternative-organisation.njk +124 -0
- package/components/footer/example-footer-with-coat-of-arms.njk +32 -0
- package/components/footer/example-footer-with-copyright.njk +35 -0
- package/components/footer/example-footer.njk +85 -0
- package/components/header/_header.scss +2 -2
- package/components/header/example-header-default.njk +12 -0
- package/components/header/example-header-external-for-survey-with-description.njk +20 -0
- package/components/header/example-header-external-for-surveys.njk +33 -0
- package/components/header/example-header-external-welsh.njk +29 -0
- package/components/header/example-header-external-with-navigation.njk +42 -0
- package/components/header/example-header-external-with-service-links.njk +35 -0
- package/components/header/example-header-external-with-sub-navigation.njk +132 -0
- package/components/header/example-header-internal.njk +32 -0
- package/components/header/example-header-neutral-for-multicoloured-logo.njk +59 -0
- package/components/hero/example-hero-dark.njk +15 -0
- package/components/hero/example-hero-default.njk +14 -0
- package/components/images/example-images-for-regular-screens.njk +8 -0
- package/components/images/example-images-for-retina-screens.njk +10 -0
- package/components/input/example-input-email.njk +12 -0
- package/components/input/example-input-number-prefixed.njk +17 -0
- package/components/input/example-input-number-suffixed.njk +34 -0
- package/components/input/example-input-number.njk +15 -0
- package/components/input/example-input-numeric-values.njk +64 -0
- package/components/input/example-input-telephone.njk +13 -0
- package/components/input/example-input-text-width-constrained.njk +11 -0
- package/components/input/example-input-text-with-character-limit-checker.njk +17 -0
- package/components/input/example-input-text-with-description.njk +10 -0
- package/components/input/example-input-text.njk +9 -0
- package/components/label/example-label-with-description.njk +8 -0
- package/components/label/example-label.njk +8 -0
- package/components/metadata/example-metadata.njk +57 -0
- package/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk +71 -0
- package/components/mutually-exclusive/example-mutually-exclusive-date-with-error.njk +47 -0
- package/components/mutually-exclusive/example-mutually-exclusive-date.njk +49 -0
- package/components/mutually-exclusive/example-mutually-exclusive-duration.njk +45 -0
- package/components/mutually-exclusive/example-mutually-exclusive-email.njk +36 -0
- package/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk +63 -0
- package/components/mutually-exclusive/example-mutually-exclusive-number.njk +43 -0
- package/components/mutually-exclusive/example-mutually-exclusive-textarea.njk +40 -0
- package/components/pagination/example-pagination-first.njk +24 -0
- package/components/pagination/example-pagination-last.njk +24 -0
- package/components/pagination/example-pagination-with-no-range-indicator.njk +42 -0
- package/components/pagination/example-pagination.njk +116 -0
- package/components/panel/example-panel-bare.njk +9 -0
- package/components/panel/example-panel-with-announcement.njk +18 -0
- package/components/panel/example-panel-with-error-details.njk +18 -0
- package/components/panel/example-panel-with-error-summary.njk +25 -0
- package/components/panel/example-panel-with-information.njk +7 -0
- package/components/panel/example-panel-with-spacious-information.njk +7 -0
- package/components/panel/example-panel-with-success-message.njk +10 -0
- package/components/panel/example-panel-with-warning.njk +8 -0
- package/components/password/example-password.njk +11 -0
- package/components/phase-banner/example-phase-banner-alpha.njk +10 -0
- package/components/phase-banner/example-phase-banner-beta.njk +9 -0
- package/components/question/example-question-ccs.njk +49 -0
- package/components/question/example-question-fieldset.njk +99 -0
- package/components/question/example-question-interviewer-note.njk +38 -0
- package/components/question/example-question-no-fieldset.njk +46 -0
- package/components/radios/example-radios-with-clear-button.njk +97 -0
- package/components/radios/example-radios-with-descriptions.njk +57 -0
- package/components/radios/example-radios-with-error.njk +38 -0
- package/components/radios/example-radios-with-revealed-checkboxes.njk +69 -0
- package/components/radios/example-radios-with-revealed-radios.njk +68 -0
- package/components/radios/example-radios-with-revealed-select.njk +69 -0
- package/components/radios/example-radios-with-revealed-text-input.njk +80 -0
- package/components/radios/example-radios-with-separator.njk +59 -0
- package/components/radios/example-radios-with-visible-text-input.njk +40 -0
- package/components/radios/example-radios-without-border.njk +48 -0
- package/components/radios/examples-radios.njk +38 -0
- package/components/related-content/example-related-content-general.njk +44 -0
- package/components/related-content/example-related-content-multiple-rows-of-links.njk +51 -0
- package/components/related-content/example-related-content-social-media.njk +40 -0
- package/components/relationships/example-relationships-error.njk +211 -0
- package/components/relationships/example-relationships-you.njk +187 -0
- package/components/relationships/example-relationships.njk +185 -0
- package/components/search/example-search-with-character-check.njk +23 -0
- package/components/search/example-search-with-placeholder.njk +16 -0
- package/components/search/example-search.njk +16 -0
- package/components/section-navigation/example-section-navigation-vertical.njk +40 -0
- package/components/section-navigation/example-section-navigation.njk +21 -0
- package/components/select/example-select-wide.njk +55 -0
- package/components/select/example-select-with-error.njk +58 -0
- package/components/select/example-select-with-inline-label.njk +23 -0
- package/components/select/example-select.njk +50 -0
- package/components/share-page/example-share-page.njk +11 -0
- package/components/skip-to-content/example-skip-to-content.njk +10 -0
- package/components/status/example-status-dead.njk +7 -0
- package/components/status/example-status-error.njk +7 -0
- package/components/status/example-status-neutral-information.njk +6 -0
- package/components/status/example-status-pending.njk +7 -0
- package/components/status/example-status-small.njk +8 -0
- package/components/status/example-status-success.njk +7 -0
- package/components/summary/example-summary-grouped-total.njk +67 -0
- package/components/summary/example-summary-grouped-with-errors.njk +96 -0
- package/components/summary/example-summary-grouped.njk +353 -0
- package/components/summary/example-summary-household-no-rows.njk +20 -0
- package/components/summary/example-summary-household.njk +77 -0
- package/components/summary/example-summary-hub.njk +170 -0
- package/components/summary/example-summary-multiple.njk +81 -0
- package/components/summary/example-summary-no-action.njk +40 -0
- package/components/summary/example-summary.njk +107 -0
- package/components/table/example-table-basic.njk +47 -0
- package/components/table/example-table-compact.njk +73 -0
- package/components/table/example-table-footer.njk +56 -0
- package/components/table/example-table-numeric.njk +81 -0
- package/components/table/example-table-responsive.njk +89 -0
- package/components/table/example-table-scrollable.njk +158 -0
- package/components/table/example-table-sortable.njk +236 -0
- package/components/table-of-contents/example-table-of-contents-grouped.njk +50 -0
- package/components/table-of-contents/example-table-of-contents-single.njk +39 -0
- package/components/table-of-contents/example-table-of-contents-sticky.njk +78 -0
- package/components/tabs/example-tabs-details.njk +59 -0
- package/components/tabs/example-tabs.njk +39 -0
- package/components/textarea/example-textarea-error.njk +16 -0
- package/components/textarea/example-textarea-with-character-limit.njk +18 -0
- package/components/textarea/example-textarea.njk +12 -0
- package/components/timeline/example-timeline.njk +35 -0
- package/components/timeout-modal/example-timeout-modal.njk +16 -0
- package/components/timeout-panel/example-panel-with-timeout-warning.njk +13 -0
- package/components/upload/example-upload-error.njk +16 -0
- package/components/upload/example-upload.njk +12 -0
- package/components/video/example-video.njk +14 -0
- package/css/main.css +3 -3
- package/css/print.css +1 -1
- package/layout/_template.njk +1 -12
- package/package.json +3 -8
- package/scss/base/_typography.scss +2 -2
- package/scss/main.scss +0 -1
- package/scss/print.scss +13 -5
- package/scss/utilities/_highlight.scss +6 -0
- package/scss/utilities/_index.scss +1 -0
- package/components/code-highlight/_macro.njk +0 -5
- package/components/code-highlight/_macro.spec.js +0 -56
- package/components/code-highlight/code-highlight.spec.js +0 -18
- package/scss/patternlib.scss +0 -148
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Example: Third-person relationship question"
|
|
3
|
+
layout: ~
|
|
4
|
+
---
|
|
5
|
+
{% extends "layout/_template.njk" %}
|
|
6
|
+
{% from "components/question/_macro.njk" import onsQuestion %}
|
|
7
|
+
{% from "components/relationships/_macro.njk" import onsRelationships %}
|
|
8
|
+
|
|
9
|
+
{% set pageConfig = {
|
|
10
|
+
"header": {
|
|
11
|
+
"title": "Relationships example"
|
|
12
|
+
},
|
|
13
|
+
"breadcrumbs": {
|
|
14
|
+
"ariaLabel": 'Breadcrumbs',
|
|
15
|
+
"itemsList": [
|
|
16
|
+
{
|
|
17
|
+
"url": '#0',
|
|
18
|
+
"text": 'Previous'
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
} %}
|
|
23
|
+
|
|
24
|
+
{% block main %}
|
|
25
|
+
{% call onsQuestion({
|
|
26
|
+
"title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>…</em>",
|
|
27
|
+
"description": "<p>Complete the sentence by selecting the appropriate relationship</p>",
|
|
28
|
+
"readDescriptionFirst": true,
|
|
29
|
+
"legendIsQuestionTitle": true,
|
|
30
|
+
"legendTitleClasses": "ons-js-relationships-legend",
|
|
31
|
+
"submitButton": true
|
|
32
|
+
}) %}
|
|
33
|
+
{{ onsRelationships({
|
|
34
|
+
"playback": "Amanda Bloggs is Joe Bloggs' <em>…</em>",
|
|
35
|
+
"name": "relationship",
|
|
36
|
+
"dontWrap": true,
|
|
37
|
+
"radios": [
|
|
38
|
+
{
|
|
39
|
+
"id": "husband-wife",
|
|
40
|
+
"value": "husband-wife",
|
|
41
|
+
"label": {
|
|
42
|
+
"text": "Husband or wife"
|
|
43
|
+
},
|
|
44
|
+
"attributes": {
|
|
45
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>husband or wife</em>",
|
|
46
|
+
"data-playback": "Amanda Bloggs is Joe Bloggs' <em>husband or wife</em>"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "civil-partner",
|
|
51
|
+
"value": "civil-partner",
|
|
52
|
+
"label": {
|
|
53
|
+
"text": "Legally registered civil partner"
|
|
54
|
+
},
|
|
55
|
+
"attributes": {
|
|
56
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>legally registered civil partner</em>",
|
|
57
|
+
"data-playback": "Amanda Bloggs is Joe Bloggs' <em>legally registered civil partner</em>"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "partner",
|
|
62
|
+
"value": "partner",
|
|
63
|
+
"label": {
|
|
64
|
+
"text": "Partner"
|
|
65
|
+
},
|
|
66
|
+
"attributes": {
|
|
67
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>partner</em>",
|
|
68
|
+
"data-playback": "Amanda Bloggs is Joe Bloggs' <em>partner</em>"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "son-daughter",
|
|
73
|
+
"value": "son-daughter",
|
|
74
|
+
"label": {
|
|
75
|
+
"text": "Son or daughter"
|
|
76
|
+
},
|
|
77
|
+
"attributes": {
|
|
78
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>son or daughter</em>",
|
|
79
|
+
"data-playback": "Amanda Bloggs is Joe Bloggs' <em>son or daughter</em>"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "stepchild",
|
|
84
|
+
"value": "stepchild",
|
|
85
|
+
"label": {
|
|
86
|
+
"text": "Stepchild"
|
|
87
|
+
},
|
|
88
|
+
"attributes": {
|
|
89
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>stepchild</em>",
|
|
90
|
+
"data-playback": "Amanda Bloggs is Joe Bloggs' <em>stepchild</em>"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "brother-sister",
|
|
95
|
+
"value": "brother-sister",
|
|
96
|
+
"label": {
|
|
97
|
+
"text": "Brother or sister"
|
|
98
|
+
},
|
|
99
|
+
"attributes": {
|
|
100
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>brother or sister</em>",
|
|
101
|
+
"data-playback": "Amanda Bloggs is Joe Bloggs' <em>brother or sister</em>"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "stepbrother-stepsister",
|
|
106
|
+
"value": "stepbrother-stepsister",
|
|
107
|
+
"label": {
|
|
108
|
+
"text": "Stepbrother or stepsister"
|
|
109
|
+
},
|
|
110
|
+
"attributes": {
|
|
111
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>stepbrother or sister</em>",
|
|
112
|
+
"data-playback": "Amanda Bloggs is Joe Bloggs' <em>stepbrother or sister</em>"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"id": "mother-father",
|
|
117
|
+
"value": "mother-father",
|
|
118
|
+
"label": {
|
|
119
|
+
"text": "Mother or father"
|
|
120
|
+
},
|
|
121
|
+
"attributes": {
|
|
122
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>mother or father</em>",
|
|
123
|
+
"data-playback": "Amanda Bloggs is Joe Bloggs' <em>mother or father</em>"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "stepmother-stepfather",
|
|
128
|
+
"value": "stepmother-stepfather",
|
|
129
|
+
"label": {
|
|
130
|
+
"text": "Stepmother or stepfather"
|
|
131
|
+
},
|
|
132
|
+
"attributes": {
|
|
133
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>stepmother or stepfather</em>",
|
|
134
|
+
"data-playback": "Amanda Bloggs is Joe Bloggs' <em>stepmother or stepfather</em>"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "grandchild",
|
|
139
|
+
"value": "grandchild",
|
|
140
|
+
"label": {
|
|
141
|
+
"text": "Grandchild"
|
|
142
|
+
},
|
|
143
|
+
"attributes": {
|
|
144
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>grandchild</em>",
|
|
145
|
+
"data-playback": "Amanda Bloggs is Joe Bloggs' <em>grandchild</em>"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": "grandparent",
|
|
150
|
+
"value": "grandparent",
|
|
151
|
+
"label": {
|
|
152
|
+
"text": "Grandparent"
|
|
153
|
+
},
|
|
154
|
+
"attributes": {
|
|
155
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>grandparents</em>",
|
|
156
|
+
"data-playback": "Amanda Bloggs is Joe Bloggs' <em>grandparents</em>"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "other-relation",
|
|
161
|
+
"value": "other-relation",
|
|
162
|
+
"label": {
|
|
163
|
+
"text": "Other relation"
|
|
164
|
+
},
|
|
165
|
+
"attributes": {
|
|
166
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their <em>other relation</em>",
|
|
167
|
+
"data-playback": "Amanda Bloggs is Joe Bloggs' <em>other relation</em>"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "unrelated",
|
|
172
|
+
"value": "unrelated",
|
|
173
|
+
"label": {
|
|
174
|
+
"text": "Unrelated",
|
|
175
|
+
"description": "Including foster child"
|
|
176
|
+
},
|
|
177
|
+
"attributes": {
|
|
178
|
+
"data-title": "Thinking of Joe Bloggs, Amanda Bloggs is <em>unrelated</em> to Joe Bloggs",
|
|
179
|
+
"data-playback": "Amanda Bloggs is <em>unrelated</em> to Joe Bloggs"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
}) }}
|
|
184
|
+
{% endcall %}
|
|
185
|
+
{% endblock %}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{% from "components/input/_macro.njk" import onsInput %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsInput({
|
|
5
|
+
"id": 'search-field',
|
|
6
|
+
"label": {
|
|
7
|
+
'text': 'Filter results',
|
|
8
|
+
"classes": 'ons-u-pb-xxs ons-u-mb-no'
|
|
9
|
+
},
|
|
10
|
+
"searchButton": {
|
|
11
|
+
"text": 'Filter'
|
|
12
|
+
},
|
|
13
|
+
"width": "10",
|
|
14
|
+
"charCheckLimit": {
|
|
15
|
+
"charcheckCountdown": true,
|
|
16
|
+
"limit": 10,
|
|
17
|
+
"charCountSingular": "{x} more character needed",
|
|
18
|
+
"charCountPlural": "{x} more characters needed",
|
|
19
|
+
"charCountOverLimitSingular": "{x} character too many",
|
|
20
|
+
"charCountOverLimitPlural": "{x} characters too many"
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{% from "components/input/_macro.njk" import onsInput %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsInput({
|
|
5
|
+
"id": 'search-field',
|
|
6
|
+
"label": {
|
|
7
|
+
"text": 'Search this service'
|
|
8
|
+
},
|
|
9
|
+
"accessiblePlaceholder": true,
|
|
10
|
+
"searchButton": {
|
|
11
|
+
"visuallyHideButtonText": true,
|
|
12
|
+
"text": 'Search',
|
|
13
|
+
"iconType": 'search'
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{% from "components/input/_macro.njk" import onsInput %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsInput({
|
|
5
|
+
"id": 'search-field',
|
|
6
|
+
"label": {
|
|
7
|
+
'text': 'Search',
|
|
8
|
+
"classes": 'ons-u-pb-xxs ons-u-mb-no'
|
|
9
|
+
},
|
|
10
|
+
"searchButton": {
|
|
11
|
+
"visuallyHideButtonText": true,
|
|
12
|
+
"text": 'Search',
|
|
13
|
+
"iconType": 'search'
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
}}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{% from "components/section-navigation/_macro.njk" import onsSectionNavigation %}
|
|
2
|
+
{{
|
|
3
|
+
onsSectionNavigation({
|
|
4
|
+
"variants": "vertical",
|
|
5
|
+
"id": "section-menu",
|
|
6
|
+
"currentPath": "#section-2",
|
|
7
|
+
"itemsList": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Section 1",
|
|
10
|
+
"url": "#section-1"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "Section 2",
|
|
14
|
+
"url": "#section-2",
|
|
15
|
+
"anchors": [
|
|
16
|
+
{
|
|
17
|
+
"title": "Sub section 1",
|
|
18
|
+
"url": "#sub-section-1"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Sub section 2",
|
|
22
|
+
"url": "#sub-section-2"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "Sub section 3",
|
|
26
|
+
"url": "#sub-section-3"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"title": "Section 3",
|
|
32
|
+
"url": "#0"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"title": "Section 4",
|
|
36
|
+
"url": "#0"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
})
|
|
40
|
+
}}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{% from "components/section-navigation/_macro.njk" import onsSectionNavigation %}
|
|
2
|
+
{{
|
|
3
|
+
onsSectionNavigation({
|
|
4
|
+
"id": "section-menu",
|
|
5
|
+
"currentPath": "#section-1",
|
|
6
|
+
"itemsList": [
|
|
7
|
+
{
|
|
8
|
+
"title": "Section 1",
|
|
9
|
+
"url": "#section-1"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"title": "Section 2",
|
|
13
|
+
"url": "#0"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"title": "Section 3",
|
|
17
|
+
"url": "#0"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
})
|
|
21
|
+
}}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{% from "components/select/_macro.njk" import onsSelect %}
|
|
2
|
+
{{
|
|
3
|
+
onsSelect({
|
|
4
|
+
"id": "select-wide",
|
|
5
|
+
"name": "select",
|
|
6
|
+
"classes": "ons-input--block",
|
|
7
|
+
"label": {
|
|
8
|
+
"text": "Question topic"
|
|
9
|
+
},
|
|
10
|
+
"options": [
|
|
11
|
+
{
|
|
12
|
+
"value": "",
|
|
13
|
+
"text": "Select an option",
|
|
14
|
+
"disabled": true,
|
|
15
|
+
"selected": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"value": "general",
|
|
19
|
+
"text": "General"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"value": "people-who-live-here",
|
|
23
|
+
"text": "People who live here"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"value": "visitors",
|
|
27
|
+
"text": "Visitors"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"value": "household-accommodation",
|
|
31
|
+
"text": "Household and accommodation"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"value": "personal-details",
|
|
35
|
+
"text": "Personal details"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"value": "health",
|
|
39
|
+
"text": "Health"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"value": "qualifications",
|
|
43
|
+
"text": "Qualifications"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"value": "employment",
|
|
47
|
+
"text": "Employment"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"value": "gdp",
|
|
51
|
+
"text": "Gross Domestic Product figures for year ending April 2018"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
})
|
|
55
|
+
}}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{% from "components/select/_macro.njk" import onsSelect %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsSelect({
|
|
5
|
+
"id": "select",
|
|
6
|
+
"name": "select",
|
|
7
|
+
"label": {
|
|
8
|
+
"text": "Question topic"
|
|
9
|
+
},
|
|
10
|
+
"label": {
|
|
11
|
+
"text": "Question topic"
|
|
12
|
+
},
|
|
13
|
+
"options": [
|
|
14
|
+
{
|
|
15
|
+
"value": "",
|
|
16
|
+
"text": "Select an option",
|
|
17
|
+
"disabled": true,
|
|
18
|
+
"selected": true
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"value": "general",
|
|
22
|
+
"text": "General"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"value": "people-who-live-here",
|
|
26
|
+
"text": "People who live here"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"value": "visitors",
|
|
30
|
+
"text": "Visitors"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"value": "household-accommodation",
|
|
34
|
+
"text": "Household and accommodation"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"value": "personal-details",
|
|
38
|
+
"text": "Personal details"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"value": "health",
|
|
42
|
+
"text": "Health"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"value": "qualifications",
|
|
46
|
+
"text": "Qualifications"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"value": "employment",
|
|
50
|
+
"text": "Employment"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"error": {
|
|
54
|
+
"id": "select-error",
|
|
55
|
+
"text": "Select a question topic"
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{% from "components/select/_macro.njk" import onsSelect %}
|
|
2
|
+
{{
|
|
3
|
+
onsSelect({
|
|
4
|
+
"id": "select",
|
|
5
|
+
"name": "select",
|
|
6
|
+
"classes": "ons-u-wa--@xxs",
|
|
7
|
+
"label": {
|
|
8
|
+
"text": "Sort by",
|
|
9
|
+
"inline": true
|
|
10
|
+
},
|
|
11
|
+
"options": [
|
|
12
|
+
{
|
|
13
|
+
"value": "best-match",
|
|
14
|
+
"text": "Best match",
|
|
15
|
+
"selected": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"value": "latest",
|
|
19
|
+
"text": "Latest"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
})
|
|
23
|
+
}}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{% from "components/select/_macro.njk" import onsSelect %}
|
|
2
|
+
{{
|
|
3
|
+
onsSelect({
|
|
4
|
+
"id": "select",
|
|
5
|
+
"name": "select",
|
|
6
|
+
"label": {
|
|
7
|
+
"text": "Question topic"
|
|
8
|
+
},
|
|
9
|
+
"options": [
|
|
10
|
+
{
|
|
11
|
+
"value": "",
|
|
12
|
+
"text": "Select an option",
|
|
13
|
+
"disabled": true,
|
|
14
|
+
"selected": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"value": 1,
|
|
18
|
+
"text": "General"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"value": "people-who-live-here",
|
|
22
|
+
"text": "People who live here"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"value": "visitors",
|
|
26
|
+
"text": "Visitors"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"value": "household-accommodation",
|
|
30
|
+
"text": "Household and accommodation"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"value": "personal-details",
|
|
34
|
+
"text": "Personal details"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"value": "health",
|
|
38
|
+
"text": "Health"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"value": "qualifications",
|
|
42
|
+
"text": "Qualifications"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"value": "employment",
|
|
46
|
+
"text": "Employment"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
})
|
|
50
|
+
}}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{% from "components/summary/_macro.njk" import onsSummary %}
|
|
2
|
+
{{
|
|
3
|
+
onsSummary({
|
|
4
|
+
"summaries": [
|
|
5
|
+
{
|
|
6
|
+
"groups": [
|
|
7
|
+
{
|
|
8
|
+
"groupTitle": "Summary - Section Title",
|
|
9
|
+
"rows": [
|
|
10
|
+
{
|
|
11
|
+
"rowTitle": "Total value of acquisitions for transport assets and equipment",
|
|
12
|
+
"rowItems": [
|
|
13
|
+
{
|
|
14
|
+
"valueList": [
|
|
15
|
+
{
|
|
16
|
+
"text": "£9,000.00"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"actions": [
|
|
20
|
+
{
|
|
21
|
+
"text": "Change",
|
|
22
|
+
"ariaLabel": "Change answer",
|
|
23
|
+
"url": "#0"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"rowTitle": "Total value of acquisitions for computers and peripheral devices (hardware)",
|
|
31
|
+
"rowItems": [
|
|
32
|
+
{
|
|
33
|
+
"valueList": [
|
|
34
|
+
{
|
|
35
|
+
"text": "£225,000.00"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"actions": [
|
|
39
|
+
{
|
|
40
|
+
"text": "Change",
|
|
41
|
+
"ariaLabel": "Change answer",
|
|
42
|
+
"url": "#0"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"rowTitle": "Grand total for value of acquisitions",
|
|
50
|
+
"total": true,
|
|
51
|
+
"rowItems": [
|
|
52
|
+
{
|
|
53
|
+
"valueList": [
|
|
54
|
+
{
|
|
55
|
+
"text": "£234,000.00"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
})
|
|
67
|
+
}}
|