hof 19.13.13 → 20.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/.nyc_output/65af88d9-aebe-4d1b-a21d-6fbf7f2bbda4.json +1 -0
- package/.nyc_output/processinfo/65af88d9-aebe-4d1b-a21d-6fbf7f2bbda4.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/.vscode/settings.json +6 -0
- package/components/date/index.js +23 -34
- package/components/date/templates/date.html +15 -12
- package/controller/controller.js +39 -0
- package/frontend/govuk-template/build/config.js +3 -3
- package/frontend/govuk-template/build/govuk_template.html +104 -0
- package/frontend/govuk-template/build/index.js +2 -2
- package/frontend/govuk-template/govuk_template_generated.html +104 -0
- package/frontend/govuk-template/index.js +4 -4
- package/frontend/template-mixins/mixins/template-mixins.js +19 -8
- package/frontend/template-mixins/partials/forms/checkbox-group.html +38 -0
- package/frontend/template-mixins/partials/forms/checkbox.html +4 -4
- package/frontend/template-mixins/partials/forms/input-submit.html +1 -1
- package/frontend/template-mixins/partials/forms/input-text-date.html +37 -0
- package/frontend/template-mixins/partials/forms/input-text-group.html +12 -9
- package/frontend/template-mixins/partials/forms/option-group.html +33 -26
- package/frontend/template-mixins/partials/forms/select.html +10 -5
- package/frontend/template-mixins/partials/forms/textarea-group.html +15 -6
- package/frontend/template-mixins/partials/mixins/panel.html +1 -1
- package/frontend/template-partials/views/accessibility.html +4 -4
- package/frontend/template-partials/views/cookies.html +1 -1
- package/frontend/template-partials/views/layout.html +22 -22
- package/frontend/template-partials/views/partials/back.html +1 -1
- package/frontend/template-partials/views/partials/bullet-list.html +1 -1
- package/frontend/template-partials/views/partials/confirmation-alert.html +4 -3
- package/frontend/template-partials/views/partials/continue.html +1 -1
- package/frontend/template-partials/views/partials/cookie-banner.html +27 -24
- package/frontend/template-partials/views/partials/cookie-settings-radio.html +6 -6
- package/frontend/template-partials/views/partials/external-link.html +1 -1
- package/frontend/template-partials/views/partials/form.html +1 -1
- package/frontend/template-partials/views/partials/maincontent-left.html +4 -4
- package/frontend/template-partials/views/partials/navigation.html +7 -6
- package/frontend/template-partials/views/partials/session-cookies-table.html +6 -6
- package/frontend/template-partials/views/partials/table.html +7 -7
- package/frontend/template-partials/views/partials/validation-list.html +2 -2
- package/frontend/template-partials/views/partials/validation-summary.html +14 -13
- package/frontend/template-partials/views/session-timeout.html +1 -1
- package/frontend/themes/gov-uk/client-js/cookieSettings.js +1 -1
- package/frontend/themes/gov-uk/client-js/govuk-cookies.js +122 -0
- package/frontend/themes/gov-uk/client-js/index.js +5 -0
- package/frontend/themes/gov-uk/client-js/skip-to-main.js +18 -0
- package/frontend/themes/gov-uk/styles/modules/_validation.scss +3 -3
- package/frontend/toolkit/assets/javascript/character-count.js +4 -4
- package/frontend/toolkit/assets/stylesheets/modules/_validation.scss +3 -3
- package/index.js +5 -1
- package/package.json +5 -4
- package/sandbox/.env +1 -0
- package/sandbox/apps/sandbox/fields.js +12 -5
- package/sandbox/apps/sandbox/index.js +5 -1
- package/sandbox/apps/sandbox/translations/en/default.json +212 -0
- package/sandbox/apps/sandbox/translations/src/en/fields.json +6 -4
- package/sandbox/apps/sandbox/translations/src/en/journey.json +4 -1
- package/sandbox/apps/sandbox/translations/src/en/pages.json +0 -17
- package/sandbox/apps/sandbox/translations/src/en/validation.json +1 -1
- package/sandbox/assets/js/index.js +1 -1
- package/sandbox/assets/scss/app.scss +71 -15
- package/sandbox/package.json +4 -1
- package/sandbox/public/css/app.css +9399 -0
- package/sandbox/public/images/icons/icon-caret-left.png +0 -0
- package/sandbox/public/images/icons/icon-complete.png +0 -0
- package/sandbox/public/images/icons/icon-cross-remove-sign.png +0 -0
- package/sandbox/public/js/bundle.js +35644 -0
- package/sandbox/yarn.lock +767 -0
- package/frontend/govuk-template/govuk_template.html +0 -109
- package/frontend/themes/gov-uk/views/partials/form.html +0 -9
- package/frontend/themes/gov-uk/views/partials/forms/option-group.html +0 -28
- package/frontend/themes/gov-uk/views/partials/mixins/panel.html +0 -3
- package/frontend/themes/gov-uk/views/partials/validation-summary.html +0 -24
- package/sandbox/apps/sandbox/views/confirmation.html +0 -15
@@ -7,12 +7,6 @@
|
|
7
7
|
"title": "Build your own form",
|
8
8
|
"subheader": "Access the build your own form guidance link"
|
9
9
|
},
|
10
|
-
"name": {
|
11
|
-
"header": "What is your full name?"
|
12
|
-
},
|
13
|
-
"dob": {
|
14
|
-
"header": "What is your date of birth?"
|
15
|
-
},
|
16
10
|
"address": {
|
17
11
|
"header": "What is your address in the UK?",
|
18
12
|
"intro": "If you have no fixed address, enter an address where we can contact you."
|
@@ -23,23 +17,12 @@
|
|
23
17
|
"radio": {
|
24
18
|
"header": "What country was the appeal lodged?"
|
25
19
|
},
|
26
|
-
"country-select": {
|
27
|
-
"header": "What country is your address located?"
|
28
|
-
},
|
29
20
|
"email": {
|
30
21
|
"header": "Enter your email address"
|
31
22
|
},
|
32
23
|
"phone-number": {
|
33
24
|
"header": "Enter your phone number"
|
34
25
|
},
|
35
|
-
"text-input-area": {
|
36
|
-
"header": "What are the details of your complaint?",
|
37
|
-
"intro": "Briefly summarise your complaint. Include anything that can help our investigation."
|
38
|
-
},
|
39
|
-
"select":{
|
40
|
-
"header": "What is the appeal stage?",
|
41
|
-
"intro": "Choose an appeal stage from the drop down menu"
|
42
|
-
},
|
43
26
|
"confirm": {
|
44
27
|
"header": "Check your answers before submitting your application.",
|
45
28
|
"sections": {
|
@@ -42,7 +42,7 @@
|
|
42
42
|
},
|
43
43
|
"complaintDetails": {
|
44
44
|
"default": "Enter details about why you are making a complaint",
|
45
|
-
"maxlength": "Keep to the
|
45
|
+
"maxlength": "Keep to the {{maxlength}} character limit"
|
46
46
|
},
|
47
47
|
"appealStages": {
|
48
48
|
"required": "Select an appeal stage from the list"
|
@@ -1,5 +1,6 @@
|
|
1
1
|
|
2
2
|
@import "../../../frontend/themes/gov-uk/styles/govuk";
|
3
|
+
@import "../../../node_modules/govuk-frontend/govuk/all";
|
3
4
|
|
4
5
|
//autocomplete styling
|
5
6
|
.tt-menu {
|
@@ -8,20 +9,75 @@
|
|
8
9
|
width: 65%;
|
9
10
|
}
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
12
|
+
.tt-suggestion {
|
13
|
+
padding: 0.5em;
|
14
|
+
|
15
|
+
&:hover,
|
16
|
+
&.tt-cursor {
|
17
|
+
color: #fff;
|
18
|
+
background-color: #0097cf;
|
19
|
+
}
|
20
|
+
|
21
|
+
&:hover {
|
22
|
+
cursor: pointer;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.twitter-typeahead {
|
27
|
+
width: 100%;
|
28
|
+
}
|
29
|
+
|
30
|
+
// govuk cookie banner styling
|
31
|
+
.govuk-banner--success {
|
32
|
+
border-color: #00703c;
|
33
|
+
color: #00703c;
|
34
|
+
}
|
35
|
+
|
36
|
+
.govuk-banner {
|
37
|
+
border: 5px solid #1d70b8;
|
38
|
+
font-size: 0;
|
39
|
+
margin-bottom: 30px;
|
40
|
+
padding: 10px;
|
41
|
+
}
|
42
|
+
|
43
|
+
.govuk-banner__icon{
|
44
|
+
display: inline-block;
|
45
|
+
}
|
46
|
+
|
47
|
+
.govuk-banner__message {
|
48
|
+
font-family: "GDS Transport", Arial, sans-serif;
|
49
|
+
-webkit-font-smoothing: antialiased;
|
50
|
+
font-weight: 400;
|
51
|
+
font-size: 1rem;
|
52
|
+
line-height: 1.25;
|
53
|
+
color: #0b0c0c;
|
54
|
+
display: block;
|
55
|
+
overflow: hidden;
|
56
|
+
display: inline-block;
|
57
|
+
margin-left: 10px;
|
58
|
+
}
|
59
|
+
|
60
|
+
.govuk-banner__assistive {
|
61
|
+
position: absolute !important;
|
62
|
+
width: 1px !important;
|
63
|
+
height: 1px !important;
|
64
|
+
margin: 0 !important;
|
65
|
+
padding: 0 !important;
|
66
|
+
overflow: hidden !important;
|
67
|
+
clip: rect(0 0 0 0) !important;
|
68
|
+
clip-path: inset(50%) !important;
|
69
|
+
border: 0 !important;
|
70
|
+
white-space: nowrap !important;
|
23
71
|
}
|
72
|
+
|
73
|
+
.cookie-table-holder > table > tbody > tr > td:first-child{
|
74
|
+
font-weight:bold;
|
75
|
+
}
|
76
|
+
|
77
|
+
.js-enabled #global-cookie-message {
|
78
|
+
display: none;
|
79
|
+
}
|
24
80
|
|
25
|
-
|
26
|
-
|
27
|
-
|
81
|
+
#cookie-banner {
|
82
|
+
max-width: none;
|
83
|
+
}
|
package/sandbox/package.json
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
"scripts": {
|
10
10
|
"start": "node server.js",
|
11
11
|
"start:dev": "HOF_SANDBOX=true ../bin/hof-build watch",
|
12
|
+
"dev": "yarn && GA_TAG=test nodemon server",
|
12
13
|
"build": "HOF_SANDBOX=true ../bin/hof-build",
|
13
14
|
"postinstall": "yarn run build"
|
14
15
|
},
|
@@ -17,5 +18,7 @@
|
|
17
18
|
"jquery": "^3.6.0",
|
18
19
|
"typeahead-aria": "^1.0.4"
|
19
20
|
},
|
20
|
-
"devDependencies": {
|
21
|
+
"devDependencies": {
|
22
|
+
"nodemon": "^2.0.15"
|
23
|
+
}
|
21
24
|
}
|