hof 22.9.0-beta → 22.9.0-beta.v2

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.
Files changed (313) hide show
  1. package/package.json +1 -1
  2. package/hof-22.9.0.tgz +0 -0
  3. package/package/.eslintignore +0 -1
  4. package/package/CHANGELOG.md +0 -232
  5. package/package/LICENSE +0 -21
  6. package/package/README.md +0 -1887
  7. package/package/bin/hof-build +0 -10
  8. package/package/bin/hof-transpiler +0 -12
  9. package/package/build/helpers/importer.js +0 -29
  10. package/package/build/helpers/local.js +0 -35
  11. package/package/build/helpers/resolver/import.js +0 -32
  12. package/package/build/helpers/resolver/nearest-package-root.js +0 -33
  13. package/package/build/helpers/resolver/package.js +0 -29
  14. package/package/build/helpers/resolver.js +0 -16
  15. package/package/build/index.js +0 -49
  16. package/package/build/lib/env.js +0 -36
  17. package/package/build/lib/mkdir.js +0 -9
  18. package/package/build/lib/run.js +0 -17
  19. package/package/build/lib/spawn.js +0 -18
  20. package/package/build/tasks/browserify/compress.js +0 -15
  21. package/package/build/tasks/browserify/index.js +0 -48
  22. package/package/build/tasks/build/index.js +0 -6
  23. package/package/build/tasks/images/index.js +0 -27
  24. package/package/build/tasks/index.js +0 -8
  25. package/package/build/tasks/sass/index.js +0 -67
  26. package/package/build/tasks/translate/index.js +0 -20
  27. package/package/build/tasks/watch/index.js +0 -161
  28. package/package/components/address-lookup/default-model.js +0 -76
  29. package/package/components/address-lookup/defaults.js +0 -25
  30. package/package/components/address-lookup/index.js +0 -251
  31. package/package/components/address-lookup/templates/address-lookup.html +0 -14
  32. package/package/components/address-lookup/templates/address.html +0 -22
  33. package/package/components/address-lookup/templates/postcode.html +0 -9
  34. package/package/components/clear-session/Readme.md +0 -46
  35. package/package/components/clear-session/index.js +0 -26
  36. package/package/components/combine-and-loop-fields/Readme.md +0 -42
  37. package/package/components/combine-and-loop-fields/index.js +0 -156
  38. package/package/components/date/fields.js +0 -16
  39. package/package/components/date/index.js +0 -172
  40. package/package/components/date/templates/date.html +0 -20
  41. package/package/components/emailer/assets/images/govuk_logotype_email.png +0 -0
  42. package/package/components/emailer/assets/images/ho_crest_27px.png +0 -0
  43. package/package/components/emailer/assets/images/spacer.gif +0 -0
  44. package/package/components/emailer/email-service.js +0 -51
  45. package/package/components/emailer/emailer.js +0 -53
  46. package/package/components/emailer/index.js +0 -74
  47. package/package/components/emailer/transports/debug.js +0 -74
  48. package/package/components/emailer/transports/index.js +0 -8
  49. package/package/components/emailer/transports/ses.js +0 -36
  50. package/package/components/emailer/transports/smtp.js +0 -26
  51. package/package/components/emailer/transports/stub.js +0 -5
  52. package/package/components/emailer/views/layout.html +0 -63
  53. package/package/components/homeoffice-countries/index.js +0 -22
  54. package/package/components/index.js +0 -13
  55. package/package/components/notify/index.js +0 -62
  56. package/package/components/notify/notify.js +0 -51
  57. package/package/components/session-timeout-warning/index.js +0 -67
  58. package/package/components/summary/index.js +0 -237
  59. package/package/config/builder-defaults.js +0 -45
  60. package/package/config/component-defaults.js +0 -13
  61. package/package/config/hof-defaults.js +0 -65
  62. package/package/config/rate-limits.js +0 -20
  63. package/package/config/sanitisation-rules.js +0 -32
  64. package/package/controller/base-controller.js +0 -296
  65. package/package/controller/behaviour-hooks.js +0 -51
  66. package/package/controller/behaviour-session.js +0 -64
  67. package/package/controller/controller.js +0 -258
  68. package/package/controller/deprecate-error.js +0 -10
  69. package/package/controller/formatting/formatters.js +0 -70
  70. package/package/controller/formatting/index.js +0 -32
  71. package/package/controller/index.js +0 -17
  72. package/package/controller/validation/email.js +0 -30
  73. package/package/controller/validation/index.js +0 -101
  74. package/package/controller/validation/validators.js +0 -181
  75. package/package/controller/validation-error.js +0 -14
  76. package/package/frontend/govuk-template/build/config.js +0 -24
  77. package/package/frontend/govuk-template/build/govuk_template.html +0 -102
  78. package/package/frontend/govuk-template/build/index.js +0 -23
  79. package/package/frontend/govuk-template/govuk_template_generated.html +0 -102
  80. package/package/frontend/govuk-template/index.js +0 -29
  81. package/package/frontend/index.js +0 -9
  82. package/package/frontend/template-mixins/mixins/helpers.js +0 -103
  83. package/package/frontend/template-mixins/mixins/index.js +0 -37
  84. package/package/frontend/template-mixins/mixins/render.js +0 -12
  85. package/package/frontend/template-mixins/mixins/template-mixins.js +0 -520
  86. package/package/frontend/template-mixins/partials/forms/checkbox-group.html +0 -47
  87. package/package/frontend/template-mixins/partials/forms/checkbox.html +0 -16
  88. package/package/frontend/template-mixins/partials/forms/input-submit.html +0 -1
  89. package/package/frontend/template-mixins/partials/forms/input-text-date.html +0 -37
  90. package/package/frontend/template-mixins/partials/forms/input-text-group.html +0 -45
  91. package/package/frontend/template-mixins/partials/forms/option-group.html +0 -43
  92. package/package/frontend/template-mixins/partials/forms/select.html +0 -17
  93. package/package/frontend/template-mixins/partials/forms/textarea-group.html +0 -37
  94. package/package/frontend/template-mixins/partials/mixins/panel.html +0 -4
  95. package/package/frontend/template-partials/index.js +0 -9
  96. package/package/frontend/template-partials/translations/index.js +0 -26
  97. package/package/frontend/template-partials/translations/src/cy/base.json +0 -4
  98. package/package/frontend/template-partials/translations/src/cy/buttons.json +0 -6
  99. package/package/frontend/template-partials/translations/src/cy/cookies.json +0 -104
  100. package/package/frontend/template-partials/translations/src/cy/errorlist.json +0 -6
  101. package/package/frontend/template-partials/translations/src/cy/errors.json +0 -18
  102. package/package/frontend/template-partials/translations/src/cy/terms.json +0 -28
  103. package/package/frontend/template-partials/translations/src/en/accessibility.json +0 -43
  104. package/package/frontend/template-partials/translations/src/en/base.json +0 -5
  105. package/package/frontend/template-partials/translations/src/en/buttons.json +0 -10
  106. package/package/frontend/template-partials/translations/src/en/cookies.json +0 -116
  107. package/package/frontend/template-partials/translations/src/en/errorlist.json +0 -7
  108. package/package/frontend/template-partials/translations/src/en/errors.json +0 -35
  109. package/package/frontend/template-partials/translations/src/en/exit.json +0 -5
  110. package/package/frontend/template-partials/translations/src/en/fields.json +0 -5
  111. package/package/frontend/template-partials/translations/src/en/journey.json +0 -6
  112. package/package/frontend/template-partials/translations/src/en/save-and-exit.json +0 -4
  113. package/package/frontend/template-partials/translations/src/en/terms.json +0 -28
  114. package/package/frontend/template-partials/views/404.html +0 -9
  115. package/package/frontend/template-partials/views/accessibility.html +0 -55
  116. package/package/frontend/template-partials/views/confirm.html +0 -8
  117. package/package/frontend/template-partials/views/confirmation.html +0 -19
  118. package/package/frontend/template-partials/views/content/en/what-happens-next.md +0 -0
  119. package/package/frontend/template-partials/views/cookie-error.html +0 -1
  120. package/package/frontend/template-partials/views/cookies.html +0 -84
  121. package/package/frontend/template-partials/views/email/data-row.html +0 -4
  122. package/package/frontend/template-partials/views/email/formatted.html +0 -12
  123. package/package/frontend/template-partials/views/email/layout.html +0 -63
  124. package/package/frontend/template-partials/views/email/raw.html +0 -11
  125. package/package/frontend/template-partials/views/email/section-row.html +0 -3
  126. package/package/frontend/template-partials/views/error.html +0 -20
  127. package/package/frontend/template-partials/views/exit.html +0 -9
  128. package/package/frontend/template-partials/views/feedback-submitted.html +0 -11
  129. package/package/frontend/template-partials/views/layout.html +0 -55
  130. package/package/frontend/template-partials/views/partials/analytics-table.html +0 -25
  131. package/package/frontend/template-partials/views/partials/back.html +0 -5
  132. package/package/frontend/template-partials/views/partials/bullet-list.html +0 -7
  133. package/package/frontend/template-partials/views/partials/confirmation-alert.html +0 -6
  134. package/package/frontend/template-partials/views/partials/continue.html +0 -5
  135. package/package/frontend/template-partials/views/partials/cookie-banner.html +0 -29
  136. package/package/frontend/template-partials/views/partials/cookie-notification.html +0 -4
  137. package/package/frontend/template-partials/views/partials/cookie-settings-button.html +0 -1
  138. package/package/frontend/template-partials/views/partials/cookie-settings-radio.html +0 -8
  139. package/package/frontend/template-partials/views/partials/details-summary.html +0 -8
  140. package/package/frontend/template-partials/views/partials/external-link.html +0 -1
  141. package/package/frontend/template-partials/views/partials/form.html +0 -10
  142. package/package/frontend/template-partials/views/partials/gatag.html +0 -60
  143. package/package/frontend/template-partials/views/partials/head.html +0 -31
  144. package/package/frontend/template-partials/views/partials/heading.html +0 -11
  145. package/package/frontend/template-partials/views/partials/items-table.html +0 -32
  146. package/package/frontend/template-partials/views/partials/maincontent-left.html +0 -10
  147. package/package/frontend/template-partials/views/partials/navigation.html +0 -8
  148. package/package/frontend/template-partials/views/partials/page.html +0 -23
  149. package/package/frontend/template-partials/views/partials/panel-indent.html +0 -3
  150. package/package/frontend/template-partials/views/partials/session-cookies-table.html +0 -28
  151. package/package/frontend/template-partials/views/partials/session-timeout-warning.html +0 -38
  152. package/package/frontend/template-partials/views/partials/summary-table-row.html +0 -14
  153. package/package/frontend/template-partials/views/partials/summary-table.html +0 -8
  154. package/package/frontend/template-partials/views/partials/table.html +0 -18
  155. package/package/frontend/template-partials/views/partials/validation-list.html +0 -3
  156. package/package/frontend/template-partials/views/partials/validation-summary.html +0 -25
  157. package/package/frontend/template-partials/views/partials/warn.html +0 -7
  158. package/package/frontend/template-partials/views/rate-limit-error.html +0 -10
  159. package/package/frontend/template-partials/views/save-and-exit.html +0 -17
  160. package/package/frontend/template-partials/views/service-unavailable.html +0 -13
  161. package/package/frontend/template-partials/views/session-timeout.html +0 -7
  162. package/package/frontend/template-partials/views/step.html +0 -14
  163. package/package/frontend/template-partials/views/terms.html +0 -26
  164. package/package/frontend/themes/gov-uk/client-js/cookieSettings.js +0 -145
  165. package/package/frontend/themes/gov-uk/client-js/govuk-cookies.js +0 -121
  166. package/package/frontend/themes/gov-uk/client-js/index.js +0 -27
  167. package/package/frontend/themes/gov-uk/client-js/session-timeout-dialog.js +0 -348
  168. package/package/frontend/themes/gov-uk/client-js/skip-to-main.js +0 -19
  169. package/package/frontend/themes/gov-uk/index.js +0 -9
  170. package/package/frontend/themes/gov-uk/styles/_base.scss +0 -17
  171. package/package/frontend/themes/gov-uk/styles/_check_your_answers.scss +0 -155
  172. package/package/frontend/themes/gov-uk/styles/_cookie-banner.scss +0 -111
  173. package/package/frontend/themes/gov-uk/styles/_cookie-settings.scss +0 -33
  174. package/package/frontend/themes/gov-uk/styles/_govuk_frontend_toolkit.scss +0 -23
  175. package/package/frontend/themes/gov-uk/styles/_helpers.scss +0 -5
  176. package/package/frontend/themes/gov-uk/styles/_layout.scss +0 -125
  177. package/package/frontend/themes/gov-uk/styles/_panel-indent.scss +0 -27
  178. package/package/frontend/themes/gov-uk/styles/_pdf.scss +0 -42
  179. package/package/frontend/themes/gov-uk/styles/_session-timeout-dialog.scss +0 -121
  180. package/package/frontend/themes/gov-uk/styles/_typography.scss +0 -27
  181. package/package/frontend/themes/gov-uk/styles/_variables.scss +0 -11
  182. package/package/frontend/themes/gov-uk/styles/govuk.scss +0 -43
  183. package/package/frontend/themes/gov-uk/styles/mixins.scss +0 -16
  184. package/package/frontend/themes/gov-uk/styles/modules/_alerts.scss +0 -73
  185. package/package/frontend/themes/gov-uk/styles/modules/_buttons.scss +0 -5
  186. package/package/frontend/themes/gov-uk/styles/modules/_character-count.scss +0 -8
  187. package/package/frontend/themes/gov-uk/styles/modules/_confirm-page.scss +0 -20
  188. package/package/frontend/themes/gov-uk/styles/modules/_lists.scss +0 -5
  189. package/package/frontend/themes/gov-uk/styles/modules/_progressive-reveal.scss +0 -17
  190. package/package/frontend/themes/gov-uk/styles/modules/_validation.scss +0 -51
  191. package/package/frontend/themes/index.js +0 -5
  192. package/package/frontend/toolkit/assets/images/passports/new-window-link-blue.png +0 -0
  193. package/package/frontend/toolkit/assets/images/passports/new-window-link.png +0 -0
  194. package/package/frontend/toolkit/assets/images/spinner.gif +0 -0
  195. package/package/frontend/toolkit/assets/javascript/character-count.js +0 -99
  196. package/package/frontend/toolkit/assets/javascript/form-focus.js +0 -101
  197. package/package/frontend/toolkit/assets/javascript/helpers.js +0 -177
  198. package/package/frontend/toolkit/assets/javascript/progressive-reveal.js +0 -72
  199. package/package/frontend/toolkit/assets/javascript/validation.js +0 -71
  200. package/package/frontend/toolkit/assets/javascript/vendor/details.polyfill.js +0 -189
  201. package/package/frontend/toolkit/assets/javascript/vendor/indexof.polyfill.js +0 -39
  202. package/package/frontend/toolkit/assets/javascript/vendor/safari-cachebuster.js +0 -6
  203. package/package/frontend/toolkit/assets/stylesheets/_base.scss +0 -17
  204. package/package/frontend/toolkit/assets/stylesheets/_helpers.scss +0 -5
  205. package/package/frontend/toolkit/assets/stylesheets/_layout.scss +0 -118
  206. package/package/frontend/toolkit/assets/stylesheets/_typography.scss +0 -27
  207. package/package/frontend/toolkit/assets/stylesheets/_variables.scss +0 -11
  208. package/package/frontend/toolkit/assets/stylesheets/app.scss +0 -30
  209. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_buttons.scss +0 -47
  210. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_details.scss +0 -38
  211. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_elements-typography.scss +0 -175
  212. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_forms.scss +0 -167
  213. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_helpers.scss +0 -39
  214. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_layout.scss +0 -67
  215. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_lists.scss +0 -40
  216. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_panels.scss +0 -29
  217. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_reset.scss +0 -33
  218. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_tables.scss +0 -33
  219. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/forms/_form-block-labels.scss +0 -63
  220. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/forms/_form-date.scss +0 -39
  221. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/forms/_form-validation.scss +0 -63
  222. package/package/frontend/toolkit/assets/stylesheets/mixins.scss +0 -16
  223. package/package/frontend/toolkit/assets/stylesheets/modules/_alerts.scss +0 -73
  224. package/package/frontend/toolkit/assets/stylesheets/modules/_buttons.scss +0 -5
  225. package/package/frontend/toolkit/assets/stylesheets/modules/_confirm-page.scss +0 -20
  226. package/package/frontend/toolkit/assets/stylesheets/modules/_lists.scss +0 -5
  227. package/package/frontend/toolkit/assets/stylesheets/modules/_progressive-reveal.scss +0 -17
  228. package/package/frontend/toolkit/assets/stylesheets/modules/_validation.scss +0 -51
  229. package/package/frontend/toolkit/index.js +0 -10
  230. package/package/index.js +0 -351
  231. package/package/lib/deindex.js +0 -18
  232. package/package/lib/encryption.js +0 -23
  233. package/package/lib/ga-tag.js +0 -89
  234. package/package/lib/health.js +0 -26
  235. package/package/lib/helpers.js +0 -66
  236. package/package/lib/logger.js +0 -65
  237. package/package/lib/markdown.js +0 -46
  238. package/package/lib/router.js +0 -111
  239. package/package/lib/serve-static.js +0 -12
  240. package/package/lib/sessions.js +0 -82
  241. package/package/lib/settings.js +0 -74
  242. package/package/lib/which.js +0 -28
  243. package/package/middleware/cookies.js +0 -43
  244. package/package/middleware/deep-translate.js +0 -32
  245. package/package/middleware/errors.js +0 -119
  246. package/package/middleware/index.js +0 -10
  247. package/package/middleware/not-found.js +0 -38
  248. package/package/middleware/rate-limiter.js +0 -98
  249. package/package/middleware/service-unavailable.js +0 -64
  250. package/package/model/apis/axios-settings.js +0 -21
  251. package/package/model/apis/html-to-pdf-converter.js +0 -35
  252. package/package/model/apis/index.js +0 -5
  253. package/package/model/index.js +0 -348
  254. package/package/package.json +0 -147
  255. package/package/sandbox/README.md +0 -66
  256. package/package/sandbox/apps/sandbox/behaviours/clear-session.js +0 -8
  257. package/package/sandbox/apps/sandbox/behaviours/country-select.js +0 -10
  258. package/package/sandbox/apps/sandbox/behaviours/international-number.js +0 -22
  259. package/package/sandbox/apps/sandbox/fields.js +0 -128
  260. package/package/sandbox/apps/sandbox/index.js +0 -99
  261. package/package/sandbox/apps/sandbox/lib/staticAppealStages.js +0 -189
  262. package/package/sandbox/apps/sandbox/sections/summary-data-sections.js +0 -43
  263. package/package/sandbox/apps/sandbox/translations/src/en/errors.json +0 -5
  264. package/package/sandbox/apps/sandbox/translations/src/en/exit.json +0 -4
  265. package/package/sandbox/apps/sandbox/translations/src/en/fields.json +0 -101
  266. package/package/sandbox/apps/sandbox/translations/src/en/journey.json +0 -7
  267. package/package/sandbox/apps/sandbox/translations/src/en/pages.json +0 -72
  268. package/package/sandbox/apps/sandbox/translations/src/en/validation.json +0 -54
  269. package/package/sandbox/apps/sandbox/views/form-guidance-link.html +0 -8
  270. package/package/sandbox/apps/sandbox/views/save-and-exit.html +0 -19
  271. package/package/sandbox/assets/images/icons/icon-caret-left.png +0 -0
  272. package/package/sandbox/assets/images/icons/icon-complete.png +0 -0
  273. package/package/sandbox/assets/images/icons/icon-cross-remove-sign.png +0 -0
  274. package/package/sandbox/assets/js/index.js +0 -70
  275. package/package/sandbox/assets/scss/app.scss +0 -27
  276. package/package/sandbox/codecept.conf.js +0 -15
  277. package/package/sandbox/config.js +0 -17
  278. package/package/sandbox/package.json +0 -26
  279. package/package/sandbox/server.js +0 -23
  280. package/package/sandbox/yarn.lock +0 -262
  281. package/package/transpiler/index.js +0 -2
  282. package/package/transpiler/lib/aggregate.js +0 -32
  283. package/package/transpiler/lib/build.js +0 -15
  284. package/package/transpiler/lib/compile.js +0 -12
  285. package/package/transpiler/lib/expand-dirs.js +0 -14
  286. package/package/transpiler/lib/write-files.js +0 -24
  287. package/package/utilities/autofill/index.js +0 -189
  288. package/package/utilities/autofill/inputs.js +0 -60
  289. package/package/utilities/countries.js +0 -12
  290. package/package/utilities/helpers/index.js +0 -189
  291. package/package/utilities/index.js +0 -9
  292. package/package/utilities/reqres/index.js +0 -18
  293. package/package/utilities/test-data/data/domain.json +0 -7
  294. package/package/utilities/test-data/data/firstname.json +0 -16
  295. package/package/utilities/test-data/data/lastname.json +0 -10
  296. package/package/utilities/test-data/data/postcode.json +0 -12
  297. package/package/utilities/test-data/data/streetname.json +0 -8
  298. package/package/utilities/test-data/data/streetsuffix.json +0 -7
  299. package/package/utilities/test-data/data/town.json +0 -9
  300. package/package/utilities/test-data/index.js +0 -67
  301. package/package/wizard/behaviours/complete.js +0 -20
  302. package/package/wizard/behaviours/index.js +0 -5
  303. package/package/wizard/index.js +0 -124
  304. package/package/wizard/middleware/back-links.js +0 -68
  305. package/package/wizard/middleware/check-complete.js +0 -13
  306. package/package/wizard/middleware/check-progress.js +0 -139
  307. package/package/wizard/middleware/check-session.js +0 -17
  308. package/package/wizard/middleware/csrf.js +0 -47
  309. package/package/wizard/middleware/session-model.js +0 -11
  310. package/package/wizard/middleware/session.js +0 -9
  311. package/package/wizard/model.js +0 -29
  312. package/package/wizard/util/constants.js +0 -5
  313. package/package/wizard/util/helpers.js +0 -19
@@ -1,43 +0,0 @@
1
- const moment = require('moment');
2
- const PRETTY_DATE_FORMAT = 'Do MMMM YYYY';
3
- const APPEAL_STAGES = require('../lib/staticAppealStages').getstaticAppealStages();
4
- const _ = require('lodash');
5
-
6
- module.exports = {
7
- applicantsDetails: [
8
- 'name',
9
- {
10
- field: 'dateOfBirth',
11
- parse: d => d && moment(d).format(PRETTY_DATE_FORMAT)
12
- }
13
- ],
14
- address: [
15
- 'building',
16
- 'street',
17
- 'townOrCity',
18
- 'postcode'
19
- ],
20
- income: [
21
- 'incomeTypes'
22
- ],
23
- appealDetails: [
24
- 'countryOfHearing',
25
- {
26
- field: 'appealStages',
27
- parse: v => _.get(_.find(APPEAL_STAGES, stage => stage.value === v), 'label', '')
28
- }
29
- ],
30
- contactDetails: [
31
- 'email',
32
- 'phone'
33
- ],
34
- countrySelect: [
35
- 'countrySelect'
36
- ],
37
- complaintDetails: [
38
- 'complaintDetails'
39
- ],
40
- whatHappened: [
41
- 'whatHappened'
42
- ]
43
- };
@@ -1,5 +0,0 @@
1
- {
2
- "service-unavailable": {
3
- "contact": "You can email for more information"
4
- }
5
- }
@@ -1,4 +0,0 @@
1
- {
2
- "header": "You have left this form",
3
- "title": "You have left this form"
4
- }
@@ -1,101 +0,0 @@
1
- {
2
- "landing-page-radio": {
3
- "legend": "Which form would you like to explore?",
4
- "hint": "Choose one of the options below and press continue.",
5
- "options": {
6
- "basic-form": {
7
- "label": "Basic form"
8
- },
9
- "complex-form": {
10
- "label": "Complex form"
11
- },
12
- "build-your-own-form": {
13
- "label": "Build your own form"
14
- }
15
- }
16
- },
17
- "name": {
18
- "label": "Full name"
19
- },
20
- "dateOfBirth": {
21
- "legend": "What is your date of birth?",
22
- "hint": "For example, 31 10 1990"
23
- },
24
- "building": {
25
- "label": "Building and street"
26
- },
27
- "street": {
28
- "label": "Address line 2"
29
- },
30
- "townOrCity": {
31
- "label": "Town or city"
32
- },
33
- "postcode": {
34
- "label": "Postcode"
35
- },
36
- "incomeTypes" : {
37
- "label": "Sources of income",
38
- "legend": "Select the options where you receive income from",
39
- "hint": "Select all options that apply to you.",
40
- "options": {
41
- "salary": {
42
- "label": "Salary"
43
- },
44
- "universal_credit": {
45
- "label": "Universal Credit"
46
- },
47
- "child_benefit": {
48
- "label": "Child Benefit"
49
- },
50
- "housing_benefit": {
51
- "label": "Housing Benefit"
52
- },
53
- "other": {
54
- "label": "Other"
55
- }
56
- }
57
- },
58
- "countryOfHearing": {
59
- "legend": "What country was the appeal lodged?",
60
- "options": {
61
- "englandAndWales": {
62
- "label": "England and Wales"
63
- },
64
- "scotland": {
65
- "label": "Scotland"
66
- },
67
- "northernIreland": {
68
- "label": "Northern Ireland"
69
- }
70
- }
71
- },
72
- "email" : {
73
- "label": "Email address"
74
- },
75
- "phone": {
76
- "label": "Phone number",
77
- "hint": "International phone numbers require the international dialling code, for example +33235066182"
78
- },
79
- "int-phone-number": {
80
- "legend": "International phone number"
81
- },
82
- "complaintDetails": {
83
- "label": "Complaint details",
84
- "hint": "Briefly summarise your complaint. Include anything that can help our investigation."
85
- },
86
- "whatHappened": {
87
- "label": "What happened",
88
- "hint": "Briefly summarise what happened."
89
- },
90
- "countrySelect": {
91
- "label": "Which country are you based in?",
92
- "hint": "Start to type the country name and options will appear"
93
- },
94
- "appealStages": {
95
- "label": "Appeal stage",
96
- "hint": "Choose an appeal stage from the drop down menu",
97
- "options": {
98
- "null": "Select..."
99
- }
100
- }
101
- }
@@ -1,7 +0,0 @@
1
- {
2
- "header": "HOF Bootstrap Sandbox Form",
3
- "serviceName": "HOF Bootstrap Sandbox Form",
4
- "confirmation": {
5
- "details": "Your reference number <br><strong>HDJ2123F</strong>"
6
- }
7
- }
@@ -1,72 +0,0 @@
1
- {
2
- "landing-page": {
3
- "header": "Landing page"
4
- },
5
- "build-your-own-form": {
6
- "title": "Build your own form",
7
- "subheader": "Access the build your own form guidance link"
8
- },
9
- "address": {
10
- "header": "What is your address in the UK?",
11
- "intro": "If you have no fixed address, enter an address where we can contact you."
12
- },
13
- "name": {
14
- "header": "What is your full name?"
15
- },
16
- "email": {
17
- "header": "Enter your email address"
18
- },
19
- "phone-number": {
20
- "header": "Enter your phone number"
21
- },
22
- "confirm": {
23
- "header": "Check your answers before submitting your application.",
24
- "sections": {
25
- "applicantsDetails": {
26
- "header": "Applicant's details"
27
- },
28
- "address": {
29
- "header": "Address"
30
- },
31
- "income": {
32
- "header": "Income"
33
- },
34
- "appealDetails": {
35
- "header": "Appeal details"
36
- },
37
- "countrySelect": {
38
- "header": "Country of residence"
39
- },
40
- "contactDetails": {
41
- "header": "Contact details"
42
- },
43
- "complaintDetails": {
44
- "header": "Complaint details"
45
- },
46
- "whatHappened": {
47
- "header": "What happened"
48
- }
49
- }
50
- },
51
- "confirmation": {
52
- "title": "Application sent",
53
- "alert": "Application sent",
54
- "subheader": "What happens next",
55
- "content": "We’ll contact you with the decision of your application or if we need more information from you."
56
- },
57
- "exit": {
58
- "message": "We have cleared your information to keep it secure. Your information has not been saved."
59
- },
60
- "session-timeout-warning": {
61
- "dialog-title": "{{^showSaveAndExit}}Your application will close soon{{/showSaveAndExit}}{{#showSaveAndExit}}You will be signed out soon{{/showSaveAndExit}}",
62
- "dialog-text": "{{^showSaveAndExit}}If that happens, your progress will not be saved.{{/showSaveAndExit}}{{#showSaveAndExit}}Any answers you have saved will not be affected, but your progress on this page will not be saved.{{/showSaveAndExit}}",
63
- "timeout-continue-button": "{{^showSaveAndExit}}Stay on this page{{/showSaveAndExit}}{{#showSaveAndExit}}Stay signed in{{/showSaveAndExit}}",
64
- "dialog-exit-link": "{{^showSaveAndExit}}Exit this form{{/showSaveAndExit}}{{#showSaveAndExit}}Sign out{{/showSaveAndExit}}"
65
- },
66
- "save-and-exit": {
67
- "header": "You have been signed out",
68
- "paragraph-1": "Your form doesn't appear to have been worked on for 30 minutes so we closed it for security.",
69
- "paragraph-2": "Any answers you saved have not been affected.",
70
- "paragraph-3": "You can sign back in to your application at any time by returning to the <a href='/' class='govuk-link'>start page</a>."
71
- }
72
- }
@@ -1,54 +0,0 @@
1
- {
2
- "landing-page-radio": {
3
- "required": "Select an option below and press continue"
4
- },
5
- "name":{
6
- "default": "Enter your full name"
7
- },
8
- "dateOfBirth": {
9
- "default": "Enter your date of birth in the correct format; for example, 31 10 1990",
10
- "after": "Enter a date after 1 1 1900",
11
- "before": "Enter a date that is in the past"
12
- },
13
- "building": {
14
- "default": "Enter details of your building and street"
15
- },
16
- "townOrCity": {
17
- "default": "Enter a town or city",
18
- "regex": "Enter a town or city without including digits"
19
- },
20
- "postcode": {
21
- "default": "Enter your postcode"
22
- },
23
- "incomeTypes": {
24
- "default": "Select all options that apply to you."
25
- },
26
- "countryOfHearing": {
27
- "default": "Select where the appeal hearing is to be held"
28
- },
29
- "countrySelect": {
30
- "default": "Enter a valid country of residence",
31
- "required": "Enter your country of residence"
32
- },
33
- "email": {
34
- "default": "Enter your email address in the correct format"
35
- },
36
- "phone": {
37
- "default": "Enter your phone number"
38
- },
39
- "int-phone-number": {
40
- "required": "Enter an international phone number",
41
- "internationalPhoneNumber": "Enter a valid international phone number"
42
- },
43
- "complaintDetails": {
44
- "default": "Enter details about why you are making a complaint",
45
- "maxlength": "Keep to the {{maxlength}} character limit"
46
- },
47
- "whatHappened": {
48
- "default": "Enter details about what happened",
49
- "maxword": "Keep to the {{maxword}} word limit"
50
- },
51
- "appealStages": {
52
- "required": "Select an appeal stage from the list"
53
- }
54
- }
@@ -1,8 +0,0 @@
1
- <title>{{#t}}pages.build-your-own-form.title{{/t}} – GOV.UK</title>
2
-
3
- {{<partials-page}}
4
- {{$page-content}}
5
- <h2>{{#t}}pages.build-your-own-form.subheader{{/t}}</h2>
6
- <a href="https://ukhomeofficeforms.github.io/hof-guide/documentation/#building-your-first-hof-form">Link to HOF form guidance</a>
7
- {{/page-content}}
8
- {{/partials-page}}
@@ -1,19 +0,0 @@
1
- {{<layout}}
2
- {{$journeyHeader}}
3
- {{#t}}journey.header{{/t}}
4
- {{/journeyHeader}}
5
-
6
- {{$propositionHeader}}
7
- {{> partials-navigation}}
8
- {{/propositionHeader}}
9
-
10
- {{$header}}
11
- {{header}}
12
- {{/header}}
13
-
14
- {{$content}}
15
- <p>{{#t}}pages.save-and-exit.paragraph-1{{/t}}</p>
16
- <p>{{#t}}pages.save-and-exit.paragraph-2{{/t}}</p>
17
- <p>{{#t}}pages.save-and-exit.paragraph-3{{/t}}</p>
18
- {{/content}}
19
- {{/layout}}
@@ -1,70 +0,0 @@
1
- /* eslint-disable */
2
- 'use strict'
3
-
4
- require('../../../frontend/themes/gov-uk/client-js');
5
-
6
- var $ = require('jquery');
7
- var typeahead = require('typeahead-aria');
8
- var Bloodhound = require('typeahead-aria').Bloodhound;
9
-
10
- typeahead.loadjQueryPlugin();
11
-
12
- $('.typeahead').each(function applyTypeahead() {
13
- var $el = $(this);
14
- var $parent = $el.parent();
15
- var attributes = $el.prop('attributes');
16
- var $input = $('<input/>');
17
- var selectedValue = $el.val();
18
- var typeaheadList = $el.find('option').map(function mapOptions() {
19
- if (this.value === '') {
20
- return undefined;
21
- }
22
- return this.value;
23
- }).get();
24
-
25
- // remove the selectbox
26
- $el.remove();
27
-
28
- $.each(attributes, function applyAttributes() {
29
- $input.attr(this.name, this.value);
30
- });
31
-
32
- $input.removeClass('js-hidden');
33
- $input.addClass('form-control');
34
- $input.val(selectedValue);
35
-
36
- $parent.append($input);
37
-
38
- $input.typeahead({
39
- hint: false
40
- }, {
41
- source: new Bloodhound({
42
- datumTokenizer: Bloodhound.tokenizers.whitespace,
43
- queryTokenizer: Bloodhound.tokenizers.whitespace,
44
- local: typeaheadList,
45
- sorter: function sorter(a, b) {
46
- var input = $input.val();
47
- var startsWithInput = function startsWithInput(x) {
48
- return x.toLowerCase().substr(0, input.length) === input.toLowerCase() ? -1 : 1;
49
- };
50
-
51
- var compareAlpha = function compareAlpha(x, y) {
52
- var less = x < y ? -1 : 1;
53
- return x === y ? 0 : less;
54
- };
55
-
56
- var compareStartsWithInput = function compareStartsWithInput(x, y) {
57
- var startsWithFirst = startsWithInput(x);
58
- var startsWithSecond = startsWithInput(y);
59
-
60
- return startsWithFirst === startsWithSecond ? 0 : startsWithFirst;
61
- };
62
-
63
- var first = compareStartsWithInput(a, b);
64
-
65
- return first === 0 ? compareAlpha(a, b) : first;
66
- }
67
- }),
68
- limit: 100
69
- });
70
- });
@@ -1,27 +0,0 @@
1
-
2
- @import "../../../frontend/themes/gov-uk/styles/govuk";
3
-
4
- //autocomplete styling
5
- .tt-menu {
6
- background-color: #fff;
7
- border: 1px solid #ccc;
8
- width: 65%;
9
- }
10
-
11
- .tt-suggestion {
12
- padding: 0.5em;
13
-
14
- &:hover,
15
- &.tt-cursor {
16
- color: #fff;
17
- background-color: #0097cf;
18
- }
19
-
20
- &:hover {
21
- cursor: pointer;
22
- }
23
- }
24
-
25
- .twitter-typeahead {
26
- width: 100%;
27
- }
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- const path = require('path');
4
-
5
- const pagesPath = page => path.resolve(__dirname,
6
- `./apps/sandbox/acceptance/pages/${page}`);
7
-
8
- module.exports = {
9
- name: 'sandbox',
10
- include: {
11
- firstPage: pagesPath('first-step.js'),
12
- secondPage: pagesPath('second-step.js'),
13
- thirdPage: pagesPath('third-step.js')
14
- }
15
- };
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- /* eslint no-process-env: 0 */
4
- module.exports = {
5
- email: {
6
- caseworker: process.env.CASEWORKER_EMAIL || '',
7
- from: process.env.FROM_ADDRESS || '',
8
- replyTo: process.env.REPLY_TO || '',
9
- accessKeyId: process.env.AWS_USER || '',
10
- secretAccessKey: process.env.AWS_PASSWORD || '',
11
- transportType: 'ses',
12
- region: process.env.EMAIL_REGION || ''
13
- },
14
- hosts: {
15
- acceptanceTests: process.env.ACCEPTANCE_HOST_NAME || `http://localhost:${process.env.PORT || 8080}`
16
- }
17
- };
@@ -1,26 +0,0 @@
1
- {
2
- "name": "hof-bootstrap-example-app",
3
- "version": "1.0.0",
4
- "description": "",
5
- "main": "index.js",
6
- "engines": {
7
- "node": ">=10.22.1"
8
- },
9
- "scripts": {
10
- "start": "node server.js",
11
- "start:dev": "HOF_SANDBOX=true ../bin/hof-build watch",
12
- "dev": "yarn && GA_TAG=test nodemon server",
13
- "build": "HOF_SANDBOX=true ../bin/hof-build",
14
- "postinstall": "yarn run build"
15
- },
16
- "author": "",
17
- "dependencies": {
18
- "govuk-frontend": "3.14",
19
- "jquery": "^3.7.1",
20
- "sass": "^1.53.0",
21
- "typeahead-aria": "^1.0.4"
22
- },
23
- "devDependencies": {
24
- "nodemon": "^2.0.15"
25
- }
26
- }
@@ -1,23 +0,0 @@
1
- /* eslint-disable */
2
- 'use strict';
3
-
4
- const bootstrap = require('../');
5
-
6
- bootstrap({
7
- translations: './apps/sandbox/translations',
8
- routes: [
9
- require('./apps/sandbox')
10
- ],
11
- behaviours: [
12
- require('../').components.sessionTimeoutWarning
13
- ],
14
- rateLimits: {
15
- requests: {
16
- active: true
17
- }
18
- },
19
- getAccessibility: true,
20
- sessionTimeoutWarningContent: true,
21
- exitFormContent: true,
22
- "port": 8082
23
- });