hof 22.11.0 → 22.11.6-unit-of-measure-beta.2
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/CHANGELOG.md +20 -0
- package/README.md +78 -0
- package/components/amount-with-unit-select/amount-with-unit-select.js +107 -0
- package/components/amount-with-unit-select/fields.js +15 -0
- package/components/amount-with-unit-select/hooks.js +168 -0
- package/components/amount-with-unit-select/templates/amount-with-unit-select.html +20 -0
- package/components/amount-with-unit-select/utils.js +194 -0
- package/components/amount-with-unit-select/validation.js +175 -0
- package/components/index.js +1 -0
- package/config/hof-defaults.js +1 -1
- package/controller/controller.js +5 -3
- package/controller/validation/index.js +1 -1
- package/controller/validation/validators.js +0 -1
- package/frontend/template-mixins/mixins/template-mixins.js +55 -5
- package/frontend/template-mixins/partials/forms/grouped-inputs-select.html +13 -0
- package/frontend/template-mixins/partials/forms/grouped-inputs-text.html +37 -0
- package/frontend/themes/gov-uk/styles/_grouped-input.scss +5 -0
- package/frontend/themes/gov-uk/styles/govuk.scss +1 -0
- package/frontend/toolkit/assets/javascript/form-focus.js +4 -0
- package/lib/encryption.js +43 -17
- package/lib/sessions.js +5 -2
- package/lib/settings.js +1 -1
- package/package.json +2 -3
- package/sandbox/apps/sandbox/fields.js +18 -1
- package/sandbox/apps/sandbox/index.js +4 -0
- package/sandbox/apps/sandbox/sections/summary-data-sections.js +7 -1
- package/sandbox/apps/sandbox/translations/en/default.json +33 -0
- package/sandbox/apps/sandbox/translations/src/en/fields.json +10 -0
- package/sandbox/apps/sandbox/translations/src/en/pages.json +3 -0
- package/sandbox/apps/sandbox/translations/src/en/validation.json +12 -0
- package/sandbox/package.json +1 -1
- package/sandbox/public/css/app.css +10042 -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 +4 -0
|
@@ -50,5 +50,17 @@
|
|
|
50
50
|
},
|
|
51
51
|
"appealStages": {
|
|
52
52
|
"required": "Select an appeal stage from the list"
|
|
53
|
+
},
|
|
54
|
+
"amountWithUnitSelect": {
|
|
55
|
+
"default": "Enter the amount in the correct format; for example, 10 Litres",
|
|
56
|
+
"alphanum": "The amount must not contain any special characters",
|
|
57
|
+
"required": "Enter an amount and a unit value"
|
|
58
|
+
},
|
|
59
|
+
"amountWithUnitSelect-unit": {
|
|
60
|
+
"default": "A valid value must be selected as the amount unit",
|
|
61
|
+
"required": "A unit must be selected for the amount"
|
|
62
|
+
},
|
|
63
|
+
"amountWithUnitSelect-amount": {
|
|
64
|
+
"required": "An amount must be selected with the unit"
|
|
53
65
|
}
|
|
54
66
|
}
|
package/sandbox/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "node server.js",
|
|
11
|
-
"start:dev": "HOF_SANDBOX=true ../bin/hof-build watch",
|
|
11
|
+
"start:dev": "HOF_SANDBOX=true ../bin/hof-build watch --env",
|
|
12
12
|
"dev": "yarn && GA_TAG=test nodemon server",
|
|
13
13
|
"build": "HOF_SANDBOX=true ../bin/hof-build",
|
|
14
14
|
"postinstall": "yarn run build"
|