hof 19.13.15 → 20.0.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/.nyc_output/65af88d9-aebe-4d1b-a21d-6fbf7f2bbda4.json +1 -0
  2. package/.nyc_output/processinfo/65af88d9-aebe-4d1b-a21d-6fbf7f2bbda4.json +1 -0
  3. package/.nyc_output/processinfo/index.json +1 -0
  4. package/.vscode/settings.json +6 -0
  5. package/components/date/index.js +23 -34
  6. package/components/date/templates/date.html +15 -12
  7. package/controller/controller.js +39 -0
  8. package/frontend/govuk-template/build/config.js +3 -3
  9. package/frontend/govuk-template/build/govuk_template.html +104 -0
  10. package/frontend/govuk-template/build/index.js +2 -2
  11. package/frontend/govuk-template/govuk_template_generated.html +104 -0
  12. package/frontend/govuk-template/index.js +4 -4
  13. package/frontend/template-mixins/mixins/template-mixins.js +19 -8
  14. package/frontend/template-mixins/partials/forms/checkbox-group.html +38 -0
  15. package/frontend/template-mixins/partials/forms/checkbox.html +4 -4
  16. package/frontend/template-mixins/partials/forms/input-submit.html +1 -1
  17. package/frontend/template-mixins/partials/forms/input-text-date.html +37 -0
  18. package/frontend/template-mixins/partials/forms/input-text-group.html +12 -9
  19. package/frontend/template-mixins/partials/forms/option-group.html +33 -26
  20. package/frontend/template-mixins/partials/forms/select.html +10 -5
  21. package/frontend/template-mixins/partials/forms/textarea-group.html +15 -6
  22. package/frontend/template-mixins/partials/mixins/panel.html +1 -1
  23. package/frontend/template-partials/views/accessibility.html +4 -4
  24. package/frontend/template-partials/views/cookies.html +1 -1
  25. package/frontend/template-partials/views/layout.html +22 -22
  26. package/frontend/template-partials/views/partials/back.html +1 -1
  27. package/frontend/template-partials/views/partials/bullet-list.html +1 -1
  28. package/frontend/template-partials/views/partials/confirmation-alert.html +4 -3
  29. package/frontend/template-partials/views/partials/continue.html +1 -1
  30. package/frontend/template-partials/views/partials/cookie-banner.html +27 -24
  31. package/frontend/template-partials/views/partials/cookie-settings-radio.html +6 -6
  32. package/frontend/template-partials/views/partials/external-link.html +1 -1
  33. package/frontend/template-partials/views/partials/form.html +1 -1
  34. package/frontend/template-partials/views/partials/maincontent-left.html +4 -4
  35. package/frontend/template-partials/views/partials/navigation.html +7 -6
  36. package/frontend/template-partials/views/partials/session-cookies-table.html +6 -6
  37. package/frontend/template-partials/views/partials/table.html +7 -7
  38. package/frontend/template-partials/views/partials/validation-list.html +2 -2
  39. package/frontend/template-partials/views/partials/validation-summary.html +14 -13
  40. package/frontend/template-partials/views/session-timeout.html +1 -1
  41. package/frontend/themes/gov-uk/client-js/cookieSettings.js +1 -1
  42. package/frontend/themes/gov-uk/client-js/govuk-cookies.js +122 -0
  43. package/frontend/themes/gov-uk/client-js/index.js +5 -0
  44. package/frontend/themes/gov-uk/client-js/skip-to-main.js +18 -0
  45. package/frontend/themes/gov-uk/styles/modules/_validation.scss +3 -3
  46. package/frontend/toolkit/assets/javascript/character-count.js +4 -4
  47. package/frontend/toolkit/assets/stylesheets/modules/_validation.scss +3 -3
  48. package/index.js +5 -1
  49. package/package.json +7 -6
  50. package/sandbox/.env +1 -0
  51. package/sandbox/apps/sandbox/fields.js +12 -5
  52. package/sandbox/apps/sandbox/index.js +5 -1
  53. package/sandbox/apps/sandbox/translations/en/default.json +212 -0
  54. package/sandbox/apps/sandbox/translations/src/en/fields.json +6 -4
  55. package/sandbox/apps/sandbox/translations/src/en/journey.json +4 -1
  56. package/sandbox/apps/sandbox/translations/src/en/pages.json +0 -17
  57. package/sandbox/apps/sandbox/translations/src/en/validation.json +1 -1
  58. package/sandbox/assets/js/index.js +1 -1
  59. package/sandbox/assets/scss/app.scss +71 -15
  60. package/sandbox/package.json +4 -1
  61. package/sandbox/public/css/app.css +9399 -0
  62. package/sandbox/public/images/icons/icon-caret-left.png +0 -0
  63. package/sandbox/public/images/icons/icon-complete.png +0 -0
  64. package/sandbox/public/images/icons/icon-cross-remove-sign.png +0 -0
  65. package/sandbox/public/js/bundle.js +35644 -0
  66. package/sandbox/yarn.lock +767 -0
  67. package/frontend/govuk-template/govuk_template.html +0 -109
  68. package/frontend/themes/gov-uk/views/partials/form.html +0 -9
  69. package/frontend/themes/gov-uk/views/partials/forms/option-group.html +0 -28
  70. package/frontend/themes/gov-uk/views/partials/mixins/panel.html +0 -3
  71. package/frontend/themes/gov-uk/views/partials/validation-summary.html +0 -24
  72. package/sandbox/apps/sandbox/views/confirmation.html +0 -15
@@ -1,109 +0,0 @@
1
-
2
- <!DOCTYPE html>
3
- <!--[if lt IE 9]><html class="lte-ie8" lang="{{htmlLang}}"><![endif]-->
4
- <!--[if gt IE 8]><!--><html lang="{{htmlLang}}"><!--<![endif]-->
5
- <head>
6
- <meta charset="utf-8" />
7
- <title>{{$pageTitle}}{{/pageTitle}}</title>
8
-
9
- <!--[if gt IE 8]><!--><link rel="stylesheet" media="screen" href="{{govukAssetPath}}stylesheets/govuk-template.css?0.26.0"/><!--<![endif]-->
10
- <!--[if IE 6]><link rel="stylesheet" media="screen" href="{{govukAssetPath}}stylesheets/govuk-template-ie6.css?0.26.0"/><![endif]-->
11
- <!--[if IE 7]><link rel="stylesheet" media="screen" href="{{govukAssetPath}}stylesheets/govuk-template-ie7.css?0.26.0"/><![endif]-->
12
- <!--[if IE 8]><link rel="stylesheet" media="screen" href="{{govukAssetPath}}stylesheets/govuk-template-ie8.css?0.26.0"/><![endif]-->
13
- <link rel="stylesheet" media="print" href="{{govukAssetPath}}stylesheets/govuk-template-print.css?0.26.0"/>
14
-
15
- <link rel="stylesheet" media="all" href="{{govukAssetPath}}stylesheets/fonts.css?0.26.0"/>
16
- <!--[if lt IE 9]><script src="{{govukAssetPath}}javascripts/ie.js?0.26.0"></script><![endif]-->
17
-
18
- <link rel="shortcut icon" href="{{govukAssetPath}}images/favicon.ico?0.26.0" type="image/x-icon" />
19
-
20
- <link rel="mask-icon" href="{{govukAssetPath}}images/gov.uk_logotype_crown.svg?0.26.0" color="#0b0c0c">
21
- <link rel="apple-touch-icon" sizes="180x180" href="{{govukAssetPath}}images/apple-touch-icon-180x180.png?0.26.0">
22
- <link rel="apple-touch-icon" sizes="167x167" href="{{govukAssetPath}}images/apple-touch-icon-167x167.png?0.26.0">
23
- <link rel="apple-touch-icon" sizes="152x152" href="{{govukAssetPath}}images/apple-touch-icon-152x152.png?0.26.0">
24
- <link rel="apple-touch-icon" href="{{govukAssetPath}}images/apple-touch-icon.png?0.26.0">
25
-
26
-
27
- <meta name="theme-color" content="#0b0c0c" />
28
-
29
- <meta name="viewport" content="width=device-width, initial-scale=1">
30
-
31
- {{$head}}{{/head}}
32
-
33
-
34
- <meta property="og:image" content="{{govukAssetPath}}images/opengraph-image.png?0.26.0">
35
- </head>
36
-
37
- <body class="{{$bodyClasses}}{{/bodyClasses}}">
38
- <script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
39
-
40
-
41
-
42
- <div id="skiplink-container">
43
- <div>
44
- <a href="#content" class="skiplink">{{$skipLinkMessage}}Skip to main content{{/skipLinkMessage}}</a>
45
- </div>
46
- </div>
47
-
48
- <div id="global-cookie-message">
49
-
50
- {{$cookieMessage}}{{/cookieMessage}}
51
-
52
- </div>
53
-
54
-
55
- <header role="banner" id="global-header" class="{{$headerClass}}{{/headerClass}}">
56
- <div class="header-wrapper">
57
- <div class="header-global">
58
- <div class="header-logo">
59
- <a href="{{$homepageUrl}}https://www.gov.uk{{/homepageUrl}}" title="{{$logoLinkTitle}}Go to the GOV.UK homepage{{/logoLinkTitle}}" id="logo" class="content" data-module="track-click" data-track-category="homeLinkClicked" data-track-action="homeHeader">
60
- <img src="{{govukAssetPath}}images/gov.uk_logotype_crown_invert_trans.png?0.26.0" width="36" height="32" alt=""> {{$globalHeaderText}}GOV.UK{{/globalHeaderText}}
61
- </a>
62
- </div>
63
- {{$insideHeader}}{{/insideHeader}}
64
- </div>
65
- {{$propositionHeader}}{{/propositionHeader}}
66
- </div>
67
- </header>
68
-
69
-
70
- {{$afterHeader}}{{/afterHeader}}
71
-
72
- <div id="global-header-bar"></div>
73
-
74
- {{$main}}{{/main}}
75
-
76
- <footer class="group js-footer" id="footer" role="contentinfo">
77
-
78
- <div class="footer-wrapper">
79
- {{$footerTop}}{{/footerTop}}
80
-
81
- <div class="footer-meta">
82
- <div class="footer-meta-inner">
83
- {{$footerSupportLinks}}{{/footerSupportLinks}}
84
-
85
- <div class="open-government-licence">
86
- <p class="logo"><a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence</a></p>
87
-
88
- {{$licenceMessage}}<p>All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated</p>{{/licenceMessage}}
89
-
90
- </div>
91
- </div>
92
-
93
- <div class="copyright">
94
- <a href="https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/">{{$crownCopyrightMessage}}© Crown copyright{{/crownCopyrightMessage}}</a>
95
- </div>
96
- </div>
97
- </div>
98
- </footer>
99
-
100
- <div id="global-app-error" class="app-error hidden"></div>
101
-
102
- <script src="{{govukAssetPath}}javascripts/govuk-template.js?0.26.0"></script>
103
-
104
- {{$bodyEnd}}{{/bodyEnd}}
105
-
106
-
107
- <script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>if (typeof window.GOVUK === 'undefined') document.body.className = document.body.className.replace('js-enabled', '');</script>
108
- </body>
109
- </html>
@@ -1,9 +0,0 @@
1
- <form action="" method="POST" {{$encoding}}{{/encoding}} autocomplete="off" novalidate="true" spellcheck="false">
2
- {{$intro}}
3
- {{#intro}}<p>{{intro}}</p>{{/intro}}
4
- {{/intro}}
5
- {{$form}}{{/form}}
6
- {{#csrf-token}}
7
- <input type="hidden" name="x-csrf-token" value="{{csrf-token}}" />
8
- {{/csrf-token}}
9
- </form>
@@ -1,28 +0,0 @@
1
- <div id="{{key}}-group" class="form-group{{#className}} {{className}} {{/className}}{{#formGroupClassName}} {{formGroupClassName}}{{/formGroupClassName}}{{#error}} validation-error{{/error}}">
2
- <fieldset role="{{role}}"{{#ariaRequired}} aria-required="true"{{/ariaRequired}}{{#hint}} aria-describedby="{{key}}-hint"{{/hint}}>
3
- <legend>
4
- <span{{#legendClassName}} class="{{legendClassName}}"{{/legendClassName}}>{{legend}}</span>
5
- {{#hint}}<span id="{{key}}-hint" class="form-hint">{{hint}}</span>{{/hint}}
6
- {{#error}}<span id="{{key}}-error" class="error-message">{{error.message}}</span>{{/error}}
7
- </legend>
8
- {{#options}}
9
- <div class="multiple-choice">
10
- <input
11
- type="{{type}}"
12
- name="{{key}}"
13
- id="{{key}}-{{value}}"
14
- value="{{value}}"
15
- {{#toggle}} data-toggle="{{toggle}}"{{/toggle}}
16
- {{#selected}} checked="checked"{{/selected}}
17
- {{^error}}{{#optionHint}} aria-describedby="{{key}}-{{value}}-hint"{{/optionHint}}{{^optionHint}}{{#hint}} aria-describedby="{{key}}-hint"{{/hint}}{{/optionHint}}{{/error}}
18
- {{#error}} aria-describedby="{{key}}-error" aria-invalid="true"{{/error}}
19
- >
20
- <label class="block-label" for="{{key}}-{{value}}">
21
- {{{label}}}
22
- {{#optionHint}}<span id="{{key}}-{{value}}-hint" class="form-hint">{{optionHint}}</span>{{/optionHint}}
23
- </label>
24
- </div>
25
- {{#renderChild}}{{/renderChild}}
26
- {{/options}}
27
- </fieldset>
28
- </div>
@@ -1,3 +0,0 @@
1
- <div id="{{toggle}}-panel" class="reveal js-hidden panel panel-border-narrow">
2
- {{#renderMixin}}{{/renderMixin}}
3
- </div>
@@ -1,24 +0,0 @@
1
- {{#errorlist.length}}
2
- <div class="validation-summary error-summary" tabindex="-1">
3
- {{$errorlist-title}}
4
-
5
- {{#errorLength.single}}
6
- <h2>{{#t}}errorlist.title.single{{/t}}</h2>
7
- {{/errorLength.single}}
8
- {{#errorLength.multiple}}
9
- <h2>{{#t}}errorlist.title.multiple{{/t}}</h2>
10
- {{/errorLength.multiple}}
11
-
12
- {{/errorlist-title}}
13
-
14
- {{<partials-validation-list}}
15
- {{$validation-list}}
16
- {{#errorlist}}
17
- {{#message}}
18
- <li><a href="#{{key}}">{{ message }}</a></li>
19
- {{/message}}
20
- {{/errorlist}}
21
- {{/validation-list}}
22
- {{/partials-validation-list}}
23
- </div>
24
- {{/errorlist.length}}
@@ -1,15 +0,0 @@
1
- <title>{{#t}}pages.confirmation.title{{/t}} – GOV.UK</title>
2
-
3
- {{<partials-page}}
4
- {{$page-content}}
5
- <div class="alert-complete" role="alert">
6
- <span class="icon icon-complete" role="presentation"></span>
7
- <div class="alert-message">
8
- <h1>{{#t}}pages.confirmation.alert{{/t}}</h1>
9
- </div>
10
- </div>
11
- <h2>{{#t}}pages.confirmation.subheader{{/t}}</h2>
12
- <p>{{#t}}pages.confirmation.content{{/t}}</p>
13
- <a href="/landing-page" class="button" role="button">{{#t}}buttons.start-again{{/t}}</a>
14
- {{/page-content}}
15
- {{/partials-page}}