govuk_publishing_components 16.9.2 → 16.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9817345ffaebeffcf8cf25f17abfd8015b7b3652a346364fab24356567cb89dc
4
- data.tar.gz: 47014ac0c7359e4f29000a5a4bed98d4b8ce2a80c8019bb6169344688add659d
3
+ metadata.gz: eeb2017f4bd9e7a1a096e23f4a7ee4e7e372bd8250059cbbd5c5b2d301f04668
4
+ data.tar.gz: 9792f974ec5cbced915a53a46accbaa66f5a1e9ddba21edfe389838797435c38
5
5
  SHA512:
6
- metadata.gz: 7843eb05f192b222dd466afa02739193b6592bb77c9b45ded8573d67168f442b02f4dbf03294df06f732d1316f749f29207d25732511b496602b70861fa89b39
7
- data.tar.gz: faf88f569fb8c1988d8e9c3d06a46f4425a3cafedb823672704d90ee8f836f1c17a0bd07ce1c27a6ecd346063a29125c501f2b9e7531623b1d02b6c38e2bfb90
6
+ metadata.gz: ed0b6a92e628dab6a7244042641e7f1006ced7ce3deff727eddb09bce518c0bc3d2ea08343f062644ea39d218a59d6fc6c6575b3361641e8ba684463327bbf95
7
+ data.tar.gz: cba6c1380cca1654f9e0566511af9112161d4a7de3ec3ca96d0eab57d65b919c0ba8651a9f96dec687ba10ab3ac9aa0e3bd066a0684c1944feb9362c083c4a32
@@ -11,6 +11,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
11
11
  this.$html = document.querySelector('html')
12
12
  this.$body = document.querySelector('body')
13
13
 
14
+ this.$module.resize = this.handleResize.bind(this)
14
15
  this.$module.open = this.handleOpen.bind(this)
15
16
  this.$module.close = this.handleClose.bind(this)
16
17
  this.$module.focusDialog = this.handleFocusDialog.bind(this)
@@ -29,6 +30,16 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
29
30
  }
30
31
  }
31
32
 
33
+ ModalDialogue.prototype.handleResize = function (size) {
34
+ if (size == "narrow") {
35
+ this.$dialogBox.classList.remove('gem-c-modal-dialogue__box--wide')
36
+ }
37
+
38
+ if (size == "wide") {
39
+ this.$dialogBox.classList.add('gem-c-modal-dialogue__box--wide')
40
+ }
41
+ }
42
+
32
43
  ModalDialogue.prototype.handleOpen = function (event) {
33
44
  if (event) {
34
45
  event.preventDefault()
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '16.9.2'.freeze
2
+ VERSION = '16.10.0'.freeze
3
3
  end
@@ -49,7 +49,7 @@
49
49
  "/"
50
50
  ],
51
51
  "_resolved": "git://github.com/alphagov/accessible-autocomplete.git#0c518b4fa79b9a95b544410858486ed9e6403c84",
52
- "_shasum": "a41a63e08d55015cd7500da890c7ebb8e2563e4c",
52
+ "_shasum": "3ca2050fdc6815abdd4028c65ae6f12ac825c119",
53
53
  "_shrinkwrap": null,
54
54
  "_spec": "accessible-autocomplete@git://github.com/alphagov/accessible-autocomplete.git#add-multiselect-support",
55
55
  "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.9.2
4
+ version: 16.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-04 00:00:00.000000000 Z
11
+ date: 2019-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govspeak