katalyst-govuk-formbuilder 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/builds/katalyst/govuk/formbuilder.css +1 -1
- data/app/assets/builds/katalyst/govuk/formbuilder.js +1 -1
- data/app/assets/builds/katalyst/govuk/formbuilder.min.js +1 -1
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +1 -1
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/password-input/_index.scss +1 -2
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/skip-link/_index.scss +1 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/warning-text/_index.scss +3 -3
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2232e16e720462bee65e4a8d1ddba9ede8974f53f75e66bf661d5ea0045c944
|
4
|
+
data.tar.gz: c8a115ad8e584186287020026a6a6c89a8fc2cf2dce42759e25c78557476af7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e11a027b4dbcca03a96ed12a2920ae8754227ff6ad20823516a6f264340ef48d0ba0bf6443db1608fe9ba1cab26a90ff947182e234c58273bd7e5e6b1ee324f3
|
7
|
+
data.tar.gz: 4e906bfa116d0725a2bce118d46ee5ed48add3532722d924b6815e37374421e5b8d4d9bf91928bcddb2c63236ac0fd7d2d105cb6f104dc7494e8196c0ffc8979
|
@@ -1160,7 +1160,7 @@ class Checkboxes extends GOVUKFrontendComponent {
|
|
1160
1160
|
return;
|
1161
1161
|
}
|
1162
1162
|
const $target = document.getElementById(targetId);
|
1163
|
-
if ($target && $target.classList.contains('govuk-checkboxes__conditional')) {
|
1163
|
+
if ($target != null && $target.classList.contains('govuk-checkboxes__conditional')) {
|
1164
1164
|
const inputIsChecked = $input.checked;
|
1165
1165
|
$input.setAttribute('aria-expanded', inputIsChecked.toString());
|
1166
1166
|
$target.classList.toggle('govuk-checkboxes__conditional--hidden', !inputIsChecked);
|
@@ -37,7 +37,7 @@ class b extends m{constructor(e,s={}){if(super(),this.$module=void 0,this.config
|
|
37
37
|
*
|
38
38
|
* @preserve
|
39
39
|
*/
|
40
|
-
class $ extends m{constructor(e){if(super(),this.$module=void 0,this.$inputs=void 0,!(e instanceof HTMLElement))throw new d({componentName:"Checkboxes",element:e,identifier:"Root element (`$module`)"});const t=e.querySelectorAll('input[type="checkbox"]');if(!t.length)throw new d({componentName:"Checkboxes",identifier:'Form inputs (`<input type="checkbox">`)'});this.$module=e,this.$inputs=t,this.$inputs.forEach((e=>{const t=e.getAttribute("data-aria-controls");if(t){if(!document.getElementById(t))throw new d({componentName:"Checkboxes",identifier:`Conditional reveal (\`id="${t}"\`)`});e.setAttribute("aria-controls",t),e.removeAttribute("data-aria-controls")}})),window.addEventListener("pageshow",(()=>this.syncAllConditionalReveals())),this.syncAllConditionalReveals(),this.$module.addEventListener("click",(e=>this.handleClick(e)))}syncAllConditionalReveals(){this.$inputs.forEach((e=>this.syncConditionalRevealWithInputState(e)))}syncConditionalRevealWithInputState(e){const t=e.getAttribute("aria-controls");if(!t)return;const s=document.getElementById(t);if(s&&s.classList.contains("govuk-checkboxes__conditional")){const t=e.checked;e.setAttribute("aria-expanded",t.toString()),s.classList.toggle("govuk-checkboxes__conditional--hidden",!t)}}unCheckAllInputsExcept(e){document.querySelectorAll(`input[type="checkbox"][name="${e.name}"]`).forEach((t=>{e.form===t.form&&t!==e&&(t.checked=!1,this.syncConditionalRevealWithInputState(t))}))}unCheckExclusiveInputs(e){document.querySelectorAll(`input[data-behaviour="exclusive"][type="checkbox"][name="${e.name}"]`).forEach((t=>{e.form===t.form&&(t.checked=!1,this.syncConditionalRevealWithInputState(t))}))}handleClick(e){const t=e.target;if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type)return;if(t.getAttribute("aria-controls")&&this.syncConditionalRevealWithInputState(t),!t.checked)return;"exclusive"===t.getAttribute("data-behaviour")?this.unCheckAllInputsExcept(t):this.unCheckExclusiveInputs(t)}}$.moduleName="govuk-checkboxes";
|
40
|
+
class $ extends m{constructor(e){if(super(),this.$module=void 0,this.$inputs=void 0,!(e instanceof HTMLElement))throw new d({componentName:"Checkboxes",element:e,identifier:"Root element (`$module`)"});const t=e.querySelectorAll('input[type="checkbox"]');if(!t.length)throw new d({componentName:"Checkboxes",identifier:'Form inputs (`<input type="checkbox">`)'});this.$module=e,this.$inputs=t,this.$inputs.forEach((e=>{const t=e.getAttribute("data-aria-controls");if(t){if(!document.getElementById(t))throw new d({componentName:"Checkboxes",identifier:`Conditional reveal (\`id="${t}"\`)`});e.setAttribute("aria-controls",t),e.removeAttribute("data-aria-controls")}})),window.addEventListener("pageshow",(()=>this.syncAllConditionalReveals())),this.syncAllConditionalReveals(),this.$module.addEventListener("click",(e=>this.handleClick(e)))}syncAllConditionalReveals(){this.$inputs.forEach((e=>this.syncConditionalRevealWithInputState(e)))}syncConditionalRevealWithInputState(e){const t=e.getAttribute("aria-controls");if(!t)return;const s=document.getElementById(t);if(null!=s&&s.classList.contains("govuk-checkboxes__conditional")){const t=e.checked;e.setAttribute("aria-expanded",t.toString()),s.classList.toggle("govuk-checkboxes__conditional--hidden",!t)}}unCheckAllInputsExcept(e){document.querySelectorAll(`input[type="checkbox"][name="${e.name}"]`).forEach((t=>{e.form===t.form&&t!==e&&(t.checked=!1,this.syncConditionalRevealWithInputState(t))}))}unCheckExclusiveInputs(e){document.querySelectorAll(`input[data-behaviour="exclusive"][type="checkbox"][name="${e.name}"]`).forEach((t=>{e.form===t.form&&(t.checked=!1,this.syncConditionalRevealWithInputState(t))}))}handleClick(e){const t=e.target;if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type)return;if(t.getAttribute("aria-controls")&&this.syncConditionalRevealWithInputState(t),!t.checked)return;"exclusive"===t.getAttribute("data-behaviour")?this.unCheckAllInputsExcept(t):this.unCheckExclusiveInputs(t)}}$.moduleName="govuk-checkboxes";
|
41
41
|
/**
|
42
42
|
* Error summary component
|
43
43
|
*
|
data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
// when user changes colours in their browser.
|
12
12
|
border-bottom: $border-bottom-width solid transparent;
|
13
13
|
|
14
|
-
background-color: govuk-colour
|
14
|
+
background-color: $govuk-canvas-background-colour;
|
15
15
|
}
|
16
16
|
|
17
17
|
// Support older browsers which don't hide elements with the `hidden` attribute
|
data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/password-input/_index.scss
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
// IE 11 and Microsoft Edge comes with its own password reveal function. We want to hide it,
|
21
21
|
// so that there aren't two controls presented to the user that do the same thing but aren't in
|
22
22
|
// sync with one another. This doesn't affect the function that allows Edge users to toggle
|
23
|
-
// password visibility by pressing Alt+F8, which cannot be
|
23
|
+
// password visibility by pressing Alt+F8, which cannot be programmatically disabled.
|
24
24
|
&::-ms-reveal {
|
25
25
|
display: none;
|
26
26
|
}
|
@@ -41,7 +41,6 @@
|
|
41
41
|
@include govuk-media-query($from: mobile) {
|
42
42
|
// Buttons are normally 100% width on this breakpoint, but we don't want that in this case
|
43
43
|
width: auto;
|
44
|
-
flex-grow: 1;
|
45
44
|
flex-shrink: 0;
|
46
45
|
flex-basis: 5em;
|
47
46
|
|
data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/warning-text/_index.scss
CHANGED
@@ -27,11 +27,11 @@
|
|
27
27
|
|
28
28
|
// When a user customises their colours the background colour will often be removed.
|
29
29
|
// Adding a border to the component keeps it's shape as a circle.
|
30
|
-
border: 3px solid govuk-colour
|
30
|
+
border: 3px solid $govuk-text-colour;
|
31
31
|
border-radius: 50%;
|
32
32
|
|
33
|
-
color: govuk-colour
|
34
|
-
background: govuk-colour
|
33
|
+
color: $govuk-body-background-colour;
|
34
|
+
background: $govuk-text-colour;
|
35
35
|
|
36
36
|
font-size: 30px;
|
37
37
|
line-height: 29px;
|
data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
:root {
|
2
2
|
// This variable is automatically overwritten during builds and releases.
|
3
3
|
// It doesn't need to be updated manually.
|
4
|
-
--govuk-frontend-version: "5.3.
|
4
|
+
--govuk-frontend-version: "5.3.1";
|
5
5
|
|
6
6
|
// CSS custom property for each breakpoint
|
7
7
|
@each $name, $value in $govuk-breakpoints {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: katalyst-govuk-formbuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katalyst Interactive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_design_system_formbuilder
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
196
|
- !ruby/object:Gem::Version
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
|
-
rubygems_version: 3.
|
199
|
+
rubygems_version: 3.5.9
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: Repackaging of UK.GOV forms for Rails 7 asset pipeline
|