@ons/design-system 62.0.1 → 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/_button.scss +5 -3
- 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 +4 -4
- package/components/cookies-banner/_macro.spec.js +41 -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/_macro.spec.js +97 -0
- 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/navigation/_macro.njk +1 -1
- 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/_macro.njk +1 -1
- package/components/table/_table.scss +10 -10
- 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/sortable-table.dom.js +1 -1
- package/components/table/sortable-table.js +5 -2
- 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/scripts/main.es5.js +1 -1
- package/scripts/main.js +2 -2
- 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,62 @@
|
|
|
1
|
+
|
|
2
|
+
{% from "components/date-input/_macro.njk" import onsDateInput %}
|
|
3
|
+
{{
|
|
4
|
+
onsDateInput({
|
|
5
|
+
"id": "period-from-date",
|
|
6
|
+
"legendOrLabel": "Period from:",
|
|
7
|
+
"description": "For example, 31 3 2019",
|
|
8
|
+
"day": {
|
|
9
|
+
"label": {
|
|
10
|
+
"text": "Day"
|
|
11
|
+
},
|
|
12
|
+
"name": "day",
|
|
13
|
+
"value": "1"
|
|
14
|
+
},
|
|
15
|
+
"month": {
|
|
16
|
+
"label": {
|
|
17
|
+
"text": "Month"
|
|
18
|
+
},
|
|
19
|
+
"name": "month",
|
|
20
|
+
"value": "1"
|
|
21
|
+
},
|
|
22
|
+
"year": {
|
|
23
|
+
"label": {
|
|
24
|
+
"text": "Year"
|
|
25
|
+
},
|
|
26
|
+
"name": "year",
|
|
27
|
+
"value": "2019"
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
}}
|
|
31
|
+
|
|
32
|
+
{{
|
|
33
|
+
onsDateInput({
|
|
34
|
+
"id": "period-to-date",
|
|
35
|
+
"legendOrLabel": "Period to:",
|
|
36
|
+
"description": "For example, 31 3 2020",
|
|
37
|
+
"day": {
|
|
38
|
+
"label": {
|
|
39
|
+
"text": "Day"
|
|
40
|
+
},
|
|
41
|
+
"name": "day",
|
|
42
|
+
"value": "31"
|
|
43
|
+
},
|
|
44
|
+
"month": {
|
|
45
|
+
"label": {
|
|
46
|
+
"text": "Month"
|
|
47
|
+
},
|
|
48
|
+
"name": "month",
|
|
49
|
+
"value": "12"
|
|
50
|
+
},
|
|
51
|
+
"year": {
|
|
52
|
+
"label": {
|
|
53
|
+
"text": "Year"
|
|
54
|
+
},
|
|
55
|
+
"name": "year",
|
|
56
|
+
"value": "2018"
|
|
57
|
+
},
|
|
58
|
+
"error": {
|
|
59
|
+
"text": "Enter a date that is after 1 January 2019"
|
|
60
|
+
}
|
|
61
|
+
})
|
|
62
|
+
}}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{% from "components/date-input/_macro.njk" import onsDateInput %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsDateInput({
|
|
5
|
+
"id": "date",
|
|
6
|
+
"legendOrLabel": "Date of birth",
|
|
7
|
+
"description": "For example, 31 3 1980",
|
|
8
|
+
"day": {
|
|
9
|
+
"label": {
|
|
10
|
+
"text": "Day"
|
|
11
|
+
},
|
|
12
|
+
"name": "day",
|
|
13
|
+
"attributes": {
|
|
14
|
+
"autocomplete": "bday-day"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"month": {
|
|
18
|
+
"label": {
|
|
19
|
+
"text": "Month"
|
|
20
|
+
},
|
|
21
|
+
"name": "month",
|
|
22
|
+
"attributes": {
|
|
23
|
+
"autocomplete": "bday-month"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"year": {
|
|
27
|
+
"label": {
|
|
28
|
+
"text": "Year"
|
|
29
|
+
},
|
|
30
|
+
"name": "year",
|
|
31
|
+
"attributes": {
|
|
32
|
+
"autocomplete": "bday-year"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
}}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{% from "components/details/_macro.njk" import onsDetails %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsDetails({
|
|
5
|
+
"id": "details-with-save",
|
|
6
|
+
"title": "What is a photovoltaic system?",
|
|
7
|
+
"content": "<p>A typical photovoltaic system employs solar panels, each comprising a number of solar cells, which generate electrical power. PV installations may be ground-mounted, rooftop mounted or wall mounted. The mount may be fixed, or use a solar tracker to follow the sun across the sky.</p>",
|
|
8
|
+
"saveState": "true"
|
|
9
|
+
})
|
|
10
|
+
}}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{% from "components/details/_macro.njk" import onsDetails %}
|
|
2
|
+
{% from "components/panel/_macro.njk" import onsPanel %}
|
|
3
|
+
|
|
4
|
+
{%
|
|
5
|
+
call onsDetails({
|
|
6
|
+
"id": "details",
|
|
7
|
+
"title": "Need to answer separately from your household?"
|
|
8
|
+
})
|
|
9
|
+
%}
|
|
10
|
+
|
|
11
|
+
<p>If you need to answer separately from the people you live with, you can <a href="#0">request an individual access code</a> to start a separate survey.</p>
|
|
12
|
+
{% call onsPanel({
|
|
13
|
+
type: "warn"
|
|
14
|
+
})
|
|
15
|
+
%}
|
|
16
|
+
Someone in your household must still complete a survey using a household access code
|
|
17
|
+
{% endcall %}
|
|
18
|
+
|
|
19
|
+
{% endcall %}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{% from "components/details/_macro.njk" import onsDetails %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsDetails({
|
|
5
|
+
"id": "details",
|
|
6
|
+
"title": "What is a photovoltaic system?",
|
|
7
|
+
"content": "<p>A typical photovoltaic system employs solar panels, each comprising a number of solar cells, which generate electrical power. PV installations may be ground-mounted, rooftop mounted or wall mounted. The mount may be fixed, or use a solar tracker to follow the sun across the sky.</p>"
|
|
8
|
+
})
|
|
9
|
+
}}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
"fullWidth": true
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
{% from "components/document-list/_macro.njk" import onsDocumentList %}
|
|
6
|
+
|
|
7
|
+
{{ onsDocumentList({
|
|
8
|
+
"documents": [
|
|
9
|
+
{
|
|
10
|
+
"featured": true,
|
|
11
|
+
"fullWidth": true,
|
|
12
|
+
"thumbnail": {
|
|
13
|
+
"smallSrc": '/img/small/census-monuments-lights-featured.jpg',
|
|
14
|
+
"largeSrc": '/img/large/census-monuments-lights-featured.jpg'
|
|
15
|
+
},
|
|
16
|
+
"url": '#0',
|
|
17
|
+
"title": 'Landmarks are lighting up purple to mark Census Day',
|
|
18
|
+
"metadata": {
|
|
19
|
+
"type": {
|
|
20
|
+
"text": 'Press releases',
|
|
21
|
+
"url": '#0'
|
|
22
|
+
},
|
|
23
|
+
"date": {
|
|
24
|
+
"iso": '2022-01-01',
|
|
25
|
+
"short": '1 January 2022'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"description": 'Hundreds of buildings & landmarks across England and Wales are lighting up purple this weekend to celebrate the census and its importance to communities.'
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}) }}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{% from "components/document-list/_macro.njk" import onsDocumentList %}
|
|
2
|
+
|
|
3
|
+
{{ onsDocumentList({
|
|
4
|
+
"documents": [
|
|
5
|
+
{
|
|
6
|
+
"thumbnail": {
|
|
7
|
+
"smallSrc": '/img/small/census-monuments-lights.jpg',
|
|
8
|
+
"largeSrc": '/img/large/census-monuments-lights.jpg'
|
|
9
|
+
},
|
|
10
|
+
"url": '#0',
|
|
11
|
+
"title": 'Landmarks are lighting up purple to mark Census Day',
|
|
12
|
+
"metadata": {
|
|
13
|
+
"type": {
|
|
14
|
+
"text": 'Press releases',
|
|
15
|
+
"url": '#0'
|
|
16
|
+
},
|
|
17
|
+
"date": {
|
|
18
|
+
"iso": '2022-01-01',
|
|
19
|
+
"short": '1 January 2022'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"description": 'Hundreds of buildings & landmarks across England and Wales are lighting up purple this weekend to celebrate the census and its importance to communities.'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"thumbnail": {
|
|
26
|
+
"smallSrc": '/img/small/ons-award-winners.jpg',
|
|
27
|
+
"largeSrc": '/img/large/cons-award-winners.jpg'
|
|
28
|
+
},
|
|
29
|
+
"url": '#0',
|
|
30
|
+
"title": 'Office for National Statistics win top Royal Statistical Society award',
|
|
31
|
+
"metadata": {
|
|
32
|
+
"type": {
|
|
33
|
+
"text": 'Press releases',
|
|
34
|
+
"url": '#0'
|
|
35
|
+
},
|
|
36
|
+
"date": {
|
|
37
|
+
"iso": '2021-07-15',
|
|
38
|
+
"short": '15 July 2021'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"description": 'The Office for National Statistics’ (ONS) analysis showing that people from certain ethnicities had a higher risk of dying from COVID-19 has been recognised by the Royal Statistical Society (RSS) with the renowned Campion Award.'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"thumbnail": true,
|
|
45
|
+
"url": '#0',
|
|
46
|
+
"title": 'Five Office for National Statistics names in New Year’s Honours',
|
|
47
|
+
"metadata": {
|
|
48
|
+
"type": {
|
|
49
|
+
"text": 'Press releases',
|
|
50
|
+
"url": '#0'
|
|
51
|
+
},
|
|
52
|
+
"date": {
|
|
53
|
+
"iso": '2022-01-01',
|
|
54
|
+
"short": '1 January 2022'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"description": 'After another year in which data and statistics have dominated public debate, five Office for National Statistics (ONS) employees have been recognised for their contributions to statistics, public health and the census in the New Year’s Honours list.'
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}) }}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{% from "components/document-list/_macro.njk" import onsDocumentList %}
|
|
2
|
+
{{ onsDocumentList({
|
|
3
|
+
"documents": [
|
|
4
|
+
{
|
|
5
|
+
"thumbnail": {
|
|
6
|
+
"smallSrc": '/patternlib-img/download-resources/img/small/including-everyone-in-census-2021-v2.png',
|
|
7
|
+
"largeSrc": '/patternlib-img/download-resources/img/large/including-everyone-in-census-2021-v2.png'
|
|
8
|
+
},
|
|
9
|
+
"url": '#',
|
|
10
|
+
"title": 'Including everyone in Census 2021',
|
|
11
|
+
"metadata": {
|
|
12
|
+
"type": {
|
|
13
|
+
"text": 'Poster'
|
|
14
|
+
},
|
|
15
|
+
"file": {
|
|
16
|
+
"fileType": 'PDF',
|
|
17
|
+
"fileSize": '499KB',
|
|
18
|
+
"filePages": '1 page'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"description": 'Empty belly poster, aimed at advertising census events.'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"thumbnail": {
|
|
25
|
+
"smallSrc": '/patternlib-img/download-resources/img/small/including-everyone-in-census-2021.png',
|
|
26
|
+
"largeSrc": '/patternlib-img/download-resources/img/large/including-everyone-in-census-2021.png'
|
|
27
|
+
},
|
|
28
|
+
"url": '#',
|
|
29
|
+
"title": 'Community handbook for Census 2021',
|
|
30
|
+
"metadata": {
|
|
31
|
+
"type": {
|
|
32
|
+
"text": 'Booklet'
|
|
33
|
+
},
|
|
34
|
+
"file": {
|
|
35
|
+
"fileType": 'PDF',
|
|
36
|
+
"fileSize": '3.3MB',
|
|
37
|
+
"filePages": '16 pages'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"description": 'This handbook explains what the census is, why it matters to everyone and how we can work together to spread the word within your community.'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"thumbnail": true,
|
|
44
|
+
"url": '#',
|
|
45
|
+
"title": 'Census 2021 matters to everyone',
|
|
46
|
+
"metadata": {
|
|
47
|
+
"type": {
|
|
48
|
+
"text": 'Poster'
|
|
49
|
+
},
|
|
50
|
+
"file": {
|
|
51
|
+
"fileType": 'PDF',
|
|
52
|
+
"fileSize": '866KB',
|
|
53
|
+
"filePages": '1 page'
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"description": 'By taking part and encouraging others to do the same, you’ll make sure your community gets the services it needs.'
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}) }}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{% from "components/document-list/_macro.njk" import onsDocumentList %}
|
|
2
|
+
|
|
3
|
+
{{ onsDocumentList({
|
|
4
|
+
"documents": [
|
|
5
|
+
{
|
|
6
|
+
"featured": true,
|
|
7
|
+
"showMetadataFirst": true,
|
|
8
|
+
"url": '#0',
|
|
9
|
+
"title": 'Crime and justice',
|
|
10
|
+
"metadata": {
|
|
11
|
+
"type": {
|
|
12
|
+
"text": 'Topic'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"description": '<p>Figures on <em class="ons-highlight">crime</em> levels and trends for England and Wales based primarily on two sets of statistics: the <em class="ons-highlight">Crime</em> Survey for England and Wales (CSEW) and police recorded crime data.</p>
|
|
16
|
+
<p>View all <a href="#0">datasets</a> or <a href="#0">publications</a> related to <a href="#0">Crime and justice</a></p>'
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}) }}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{% from "components/document-list/_macro.njk" import onsDocumentList %}
|
|
2
|
+
|
|
3
|
+
{{ onsDocumentList({
|
|
4
|
+
"documents": [
|
|
5
|
+
{
|
|
6
|
+
"featured": true,
|
|
7
|
+
"showMetadataFirst": true,
|
|
8
|
+
"url": '#0',
|
|
9
|
+
"title": 'Crime and justice',
|
|
10
|
+
"metadata": {
|
|
11
|
+
"type": {
|
|
12
|
+
"text": 'Topic'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"description": '<p>Figures on <em class="ons-highlight">crime</em> levels and trends for England and Wales based primarily on two sets of statistics: the <em class="ons-highlight">Crime</em> Survey for England and Wales (CSEW) and police recorded <em class="ons-highlight">crime</em> data.</p>
|
|
16
|
+
<p>View all <a href="#0">datasets</a> or <a href="#0">publications</a> related to <a href="#0">Crime and justice</a></p>'
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"url": '#0',
|
|
20
|
+
"title": 'Disability and crime',
|
|
21
|
+
"metadata": {
|
|
22
|
+
"type": {
|
|
23
|
+
"text": 'Dataset'
|
|
24
|
+
},
|
|
25
|
+
"date": {
|
|
26
|
+
"prefix": 'Released',
|
|
27
|
+
"showPrefix": true,
|
|
28
|
+
"iso": '2021-02-18',
|
|
29
|
+
"short": '18 February 2021'
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"description": '<p>Domestic abuse and sexual assault outcomes for disabled people in England and Wales aged 16 to 59 years, with analysis by age, sex, impairment type, impairment severity, country and region using the <em class="ons-highlight">Crime</em> Survey for England and Wales (CSEW) data.</p>'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"url": '#0',
|
|
36
|
+
"title": 'Disability and crime, UK: 2019 (Latest release)',
|
|
37
|
+
"metadata": {
|
|
38
|
+
"type": {
|
|
39
|
+
"text": 'Statistical bulletin'
|
|
40
|
+
},
|
|
41
|
+
"date": {
|
|
42
|
+
"prefix": 'Released',
|
|
43
|
+
"showPrefix": true,
|
|
44
|
+
"iso": '2019-12-01',
|
|
45
|
+
"short": '2 December 2019'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"description": '<p>An overview of published data on disability and <em class="ons-highlight">crime</em> in the UK and analysis of the experience of domestic abuse and sexual assault for disabled adults aged 16 to 59 years in England and Wales. Analysis by age, sex and impairment type.</p>'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"url": '#0',
|
|
52
|
+
"title": 'Hate crime by disability status, Crime Survey for England and Wales (CSEW) combined years 2013 and 2014 to 2015 and 2016',
|
|
53
|
+
"metadata": {
|
|
54
|
+
"type": {
|
|
55
|
+
"text": 'User requested data',
|
|
56
|
+
"ref": 'Ref 008052'
|
|
57
|
+
},
|
|
58
|
+
"date": {
|
|
59
|
+
"prefix": 'Released',
|
|
60
|
+
"showPrefix": true,
|
|
61
|
+
"iso": '2017-04-20',
|
|
62
|
+
"short": '20 April 2017'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}) }}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{% from "components/question/_macro.njk" import onsQuestion %}
|
|
2
|
+
{% from "components/duration/_macro.njk" import onsDuration %}
|
|
3
|
+
|
|
4
|
+
{{
|
|
5
|
+
onsDuration({
|
|
6
|
+
"id": "address-duration",
|
|
7
|
+
"legendOrLabel": 'How long have you lived at this address?',
|
|
8
|
+
"legendClasses": 'ons-u-vh',
|
|
9
|
+
"field1": {
|
|
10
|
+
"id": "address-duration-years",
|
|
11
|
+
"name": "address-duration-years",
|
|
12
|
+
"suffix": {
|
|
13
|
+
"text": "Years",
|
|
14
|
+
"id": "address-duration-years-suffix"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"field2": {
|
|
18
|
+
"id": "address-duration-months",
|
|
19
|
+
"name": "address-duration-months",
|
|
20
|
+
"suffix": {
|
|
21
|
+
"text": "Months",
|
|
22
|
+
"id": "address-duration-months-suffix"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"error": {
|
|
26
|
+
"id": "address-duration-error",
|
|
27
|
+
"text": "Enter how long you have lived at this address"
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
}}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{% from "components/question/_macro.njk" import onsQuestion %}
|
|
2
|
+
{% from "components/duration/_macro.njk" import onsDuration %}
|
|
3
|
+
|
|
4
|
+
{% call onsQuestion({
|
|
5
|
+
"title": "How long have you lived at this address?",
|
|
6
|
+
"description": "<p>Enter “0” into the years field if you have lived at this address for less than a year</p>",
|
|
7
|
+
"legendIsQuestionTitle": true
|
|
8
|
+
}) %}
|
|
9
|
+
{{ onsDuration({
|
|
10
|
+
"id": "address-duration",
|
|
11
|
+
"dontWrap": true,
|
|
12
|
+
"field1": {
|
|
13
|
+
"id": "address-duration-years",
|
|
14
|
+
"name": "address-duration-years",
|
|
15
|
+
"suffix": {
|
|
16
|
+
"text": "Years",
|
|
17
|
+
"id": "address-duration-years-suffix"
|
|
18
|
+
},
|
|
19
|
+
"attributes": {
|
|
20
|
+
"autocomplete": "off"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"field2": {
|
|
24
|
+
"id": "address-duration-months",
|
|
25
|
+
"name": "address-duration-months",
|
|
26
|
+
"suffix": {
|
|
27
|
+
"text": "Months",
|
|
28
|
+
"id": "address-duration-months-suffix"
|
|
29
|
+
},
|
|
30
|
+
"attributes": {
|
|
31
|
+
"autocomplete": "off"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}) }}
|
|
35
|
+
{% endcall %}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{% from "components/question/_macro.njk" import onsQuestion %}
|
|
2
|
+
{% from "components/duration/_macro.njk" import onsDuration %}
|
|
3
|
+
|
|
4
|
+
{{ onsDuration({
|
|
5
|
+
"id": "travel-time",
|
|
6
|
+
"legendOrLabel": 'How long do you spend travelling to and from work each day?',
|
|
7
|
+
"legendClasses": 'ons-u-vh',
|
|
8
|
+
"error": {
|
|
9
|
+
"text": "Enter a number that is less than 60",
|
|
10
|
+
"id": "duration-error"
|
|
11
|
+
},
|
|
12
|
+
"field1": {
|
|
13
|
+
"id": "travel-time-hours",
|
|
14
|
+
"name": "travel-time-hours",
|
|
15
|
+
"suffix": {
|
|
16
|
+
"text": "Hours",
|
|
17
|
+
"id": "address-time-hours-suffix"
|
|
18
|
+
},
|
|
19
|
+
"value": "2"
|
|
20
|
+
},
|
|
21
|
+
"field2": {
|
|
22
|
+
"id": "travel-time-minutes",
|
|
23
|
+
"name": "travel-time-minutes",
|
|
24
|
+
"suffix": {
|
|
25
|
+
"text": "Minutes",
|
|
26
|
+
"id": "address-time-minutes-suffix"
|
|
27
|
+
},
|
|
28
|
+
"value": "60",
|
|
29
|
+
"error": true
|
|
30
|
+
}
|
|
31
|
+
}) }}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{% from "components/feedback/_macro.njk" import onsFeedback %}
|
|
2
|
+
<div class="ons-grid">
|
|
3
|
+
<div class="ons-grid__col ons-col-8@m">
|
|
4
|
+
{{
|
|
5
|
+
onsFeedback({
|
|
6
|
+
"heading": "What do you think about this service?",
|
|
7
|
+
"headingClasses": 'test',
|
|
8
|
+
"content": "Your comments will help us make improvements",
|
|
9
|
+
"url": "#0",
|
|
10
|
+
"linkText": "Give feedback"
|
|
11
|
+
})
|
|
12
|
+
}}
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
"fullWidth": true
|
|
3
|
+
---
|
|
4
|
+
{% from "components/footer/_macro.njk" import onsFooter %}
|
|
5
|
+
{{
|
|
6
|
+
onsFooter({
|
|
7
|
+
"lang": 'cy',
|
|
8
|
+
"rows": [
|
|
9
|
+
{
|
|
10
|
+
"itemsList": [
|
|
11
|
+
{
|
|
12
|
+
"text": 'Help',
|
|
13
|
+
"url": '#0'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"text": 'Ieithoedd',
|
|
17
|
+
"url": '#0'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"text": 'BSL a fideos sain',
|
|
21
|
+
"url": '#0'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"text": 'Cysylltu â ni',
|
|
25
|
+
"url": '#0'
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"legal": [
|
|
31
|
+
{
|
|
32
|
+
"itemsList": [
|
|
33
|
+
{
|
|
34
|
+
"text": 'Cwcis',
|
|
35
|
+
"url": '#0'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"text": 'Datganiad hygyrchedd',
|
|
39
|
+
"url": '#0'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"text": 'Preifatrwydd a diogelu data',
|
|
43
|
+
"url": '#0'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"text": 'Telerau ac amodau',
|
|
47
|
+
"url": '#0'
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"OGLLink": true
|
|
53
|
+
})
|
|
54
|
+
}}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
"fullWidth": true
|
|
3
|
+
---
|
|
4
|
+
{% from "components/footer/_macro.njk" import onsFooter %}
|
|
5
|
+
{{
|
|
6
|
+
onsFooter({
|
|
7
|
+
"newTabWarning": 'The following links open in a new tab',
|
|
8
|
+
"rows": [
|
|
9
|
+
{
|
|
10
|
+
"itemsList": [
|
|
11
|
+
{
|
|
12
|
+
"text": 'Help',
|
|
13
|
+
"url": '#0',
|
|
14
|
+
"target": '_blank'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"text": 'Languages',
|
|
18
|
+
"url": '#0',
|
|
19
|
+
"target": '_blank'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"text": 'BSL and audio videos',
|
|
23
|
+
"url": '#0',
|
|
24
|
+
"target": '_blank'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"text": 'Contact us',
|
|
28
|
+
"url": '#0',
|
|
29
|
+
"target": '_blank'
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"legal": [
|
|
35
|
+
{
|
|
36
|
+
"itemsList": [
|
|
37
|
+
{
|
|
38
|
+
"text": 'Cookies',
|
|
39
|
+
"url": '#0',
|
|
40
|
+
"target": '_blank'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"text": 'Accessibility statement',
|
|
44
|
+
"url": '#0',
|
|
45
|
+
"target": '_blank'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"text": 'Privacy and data protection',
|
|
49
|
+
"url": '#0',
|
|
50
|
+
"target": '_blank'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"text": 'Terms and conditions',
|
|
54
|
+
"url": '#0',
|
|
55
|
+
"target": '_blank'
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"OGLLink": true
|
|
61
|
+
})
|
|
62
|
+
}}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
"fullWidth": true
|
|
3
|
+
---
|
|
4
|
+
{% from "components/footer/_macro.njk" import onsFooter %}
|
|
5
|
+
{{
|
|
6
|
+
onsFooter({
|
|
7
|
+
"footerWarning": "Make sure you <a href='#0'>leave this page</a> or close your browser if using a shared device",
|
|
8
|
+
"legal": [
|
|
9
|
+
{
|
|
10
|
+
"itemsList": [
|
|
11
|
+
{
|
|
12
|
+
"text": 'Cookies',
|
|
13
|
+
"url": '#0'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"text": 'Accessibility statement',
|
|
17
|
+
"url": '#0'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"text": 'Privacy and data protection',
|
|
21
|
+
"url": '#0'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"text": 'Terms and conditions',
|
|
25
|
+
"url": '#0'
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"OGLLink": true
|
|
31
|
+
})
|
|
32
|
+
}}
|