{"_id":"@2alheure/vue-modal","_rev":"3-e517284d631eb119b6dfed9da8b18938","name":"@2alheure/vue-modal","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@2alheure/vue-modal","version":"1.0.0","description":"A simple Modal component for Vue.js.","main":"src/Modal.vue","scripts":{"test":"vue serve src/Modal.vue"},"repository":{"type":"git","url":"git+https://github.com/2alheure/vue_js_modal.git"},"keywords":["Vue.js","modal","window","pop-up"],"author":{"name":"2alheure","email":"contact@2alheure.fr"},"license":"WTFPL","bugs":{"url":"https://github.com/2alheure/vue_js_modal/issues"},"homepage":"https://github.com/2alheure/vue_js_modal#readme","gitHead":"cdae2ce1fe14856e0c3084c535c29a5c3a74a0dd","_id":"@2alheure/vue-modal@1.0.0","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Bx4+bHOM8UmfES+WL1nG4tp9XXckZl+54EkVg59izyYmV++cjpPz/tpUMhdPToyrPZRF68WQo0cAApfMoWGnqQ==","shasum":"c1ccfcaa4b7f668427ec0a57c5d1a884086b8ec1","tarball":"https://registry.npmjs.org/@2alheure/vue-modal/-/vue-modal-1.0.0.tgz","fileCount":3,"unpackedSize":6406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmUJzCRA9TVsSAnZWagAA5g4QAJjaPdh7sXvW+cEodje6\nsv2Vd6XmCRRYQLA7JB+q8j4y/0loODX49jWuOx0KuuDDiv5ZQB7xZIGKyJVZ\nqnzPiWXEyWpIDnDifIJHOudKIdnuxegrWT2cWCMTVl9SXzHoPi+mCXBzEzk4\nmDD9HCJ/opK/RoDR51atGa+spqhx8Um5AXtr+d+1apfR5j7o5OZBaX442VEb\nFPwLeZa0aAEGcJc/LF0jF48zC+k02ZtD5go8oooYS8elG/TkFJWDcwBBDdDl\nRD+HGYIMdGVQIp3ucwAbVEZnpke67c1xz5oXJA372AP9kzqaCjdDfLXbWGAA\ncSj7YRqFSBOKhZSfaZC7+p6dtoR39YiZuP2glgKK/dGtbRkU8sK43V9rnMBT\nhWUTuwmjuj7HAtGxx8IrVSBtG3n9FGr5s9VMi8WTubNZ+j0EYS1oUpn7PldF\nGioyQlfvccW735bNER2Tz08lqQVdJtS/hAM2GTZUVcfRsMTMIuyHIxw10JRn\n8qQsmF3D1sLNIoNaa6SnwNnDpR3DH/DDG97yUO5jrar200mm4FfEC8JOZGAJ\nKQEN4XH2Q7VE/AOQy2sk0kVu2HbLbvpwaTDZ2V/YpC3pngFYOVEfN3BRdK9Z\n133ywZivo4/XwYUT07/I3/90POzEfk0xZyy9qAOptdwpyS+2YS6iWofadmSm\nMCiZ\r\n=t5Ll\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESDgoCuu2t+WkvekGl5rLVoMePtdS58gm6NJgDSvTVnAiEA1QtDzSl93+ooAuQcsz9C6HHpsQlCD2QwsNO6Uo1Pbdw="}]},"_npmUser":{"name":"2alheure","email":"jordan.juventin@2alheure.fr"},"directories":{},"maintainers":[{"name":"2alheure","email":"jordan.juventin@2alheure.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-modal_1.0.0_1620656754928_0.5531284230820892"},"_hasShrinkwrap":false},"1.1.0":{"name":"@2alheure/vue-modal","version":"1.1.0","description":"A simple Modal component for Vue.js.","main":"src/Modal.vue","scripts":{"test":"vue serve src/Modal.vue"},"repository":{"type":"git","url":"git+https://github.com/2alheure/vue_js_modal.git"},"keywords":["Vue.js","modal","window","pop-up"],"author":{"name":"2alheure","email":"contact@2alheure.fr"},"license":"WTFPL","bugs":{"url":"https://github.com/2alheure/vue_js_modal/issues"},"homepage":"https://github.com/2alheure/vue_js_modal#readme","gitHead":"2e65ce7228582759b764962345cd3c3a8167e915","_id":"@2alheure/vue-modal@1.1.0","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-onS5doBwgTA6snB2XLryy3RIlnSMFLoYajdlKca1LZYMf4+Gug7ZYBPD4uDdWAYjJ0STNCVu8S5dae26V5nIsA==","shasum":"df0d1b36096cdeed7461a9eed9084a548a2fd2f8","tarball":"https://registry.npmjs.org/@2alheure/vue-modal/-/vue-modal-1.1.0.tgz","fileCount":3,"unpackedSize":6695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhH98dCRA9TVsSAnZWagAAXW0P/iowoPp5ZIMryPOA+Mvp\nw6d57IuMvOcGOXYRnP2yOpZm7NSJbkZ8/DNlqH4LNWEoj3+NF9HJmx9uBYq5\nIXyXFNDWG2SgzUKttcIxB4AFIuZo48rFsrqu+dNI3FtJT1teYoqqCrJrq/tg\n4df9VLQXHzx0LkV4MhBFxfqo4Q9hUYhOUdn4dWdzObna5uJKJjF+1SqdV0vW\nQumc56Ud6g/eXV6FGkn3ZcV7dxlFwrDYznONF8/fq8M49OXAmNZWHpx8iHvY\n0xEGeLibQ/DetO4nd756wyX3G+e16TKqjU82/miiGzSA1AuzVqllA467zsFk\nbg5b5teD6KK02mci5NKuVI7M2plZIBN+KwS5do0ILXqRcIPq+ZsVWmB1ZCdm\nuyxcdZ0oMm6cOMYzfja1VQsjHp+SiVTlenIHRDByVUS8UUzcnEvdTuOKUMHE\n/G8231ZA3mrzrRPwD/OEYVs6QNqkZHd6uunyYemsvz7rG0dlfTD7xDsgwlkV\nq+/U3UEbPGz3XyC8f+LqXWK6zHiyhBID+LZXTiWzkcRPPtGAJ6pJOTepYcpH\nQ0J5OphDHrAzoIaBWE878Wwqdt0ye57dlHJvf5VWdsB8BSv8CXX5o8mRzGQT\n/VoO8VHKJY4/8CCyN9+17eI79kiMYT72x9KQUadl5T2ttyjN9KmpYnEXebF5\nrTXc\r\n=WBMe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7KDJHtTXyCxYL6/Xir7Kw/q4+oq6EIjJAVLufoPjdoAIhAL81D32/sVadj6cN4Ea1uGt07TXvcX61/MVVmyoAR0eC"}]},"_npmUser":{"name":"2alheure","email":"jordan.juventin@2alheure.fr"},"directories":{},"maintainers":[{"name":"2alheure","email":"jordan.juventin@2alheure.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-modal_1.1.0_1629478685484_0.7940378929934975"},"_hasShrinkwrap":false},"1.1.1":{"name":"@2alheure/vue-modal","version":"1.1.1","description":"A simple Modal component for Vue.js.","main":"src/Modal.vue","scripts":{"test":"vue serve src/Modal.vue"},"repository":{"type":"git","url":"git+https://github.com/2alheure/vue_js_modal.git"},"keywords":["Vue.js","Vue 3","modal","window","pop-up"],"author":{"name":"2alheure","email":"contact@2alheure.fr"},"license":"WTFPL","bugs":{"url":"https://github.com/2alheure/vue_js_modal/issues"},"homepage":"https://github.com/2alheure/vue_js_modal#readme","gitHead":"b488aaeda4441480f6825ff66c6ad9b6c3d05c47","_id":"@2alheure/vue-modal@1.1.1","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0+uJtgrSBlx7WKtxuoG6xGYaEx7gQBwztDzRwzrSKJADXB9gFnQ/uOS6DNRgVS/XeETLJ3bHrSR/p8UvhxMNGg==","shasum":"622a4d09c5ecb9ca4433c0881f72aeb6796830df","tarball":"https://registry.npmjs.org/@2alheure/vue-modal/-/vue-modal-1.1.1.tgz","fileCount":3,"unpackedSize":6752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLereCRA9TVsSAnZWagAAU/UP/R5TDI3ZgGCv3JV1q8is\n12FZVKlpV7cujz9xvBkC8KIg3bPCcfSOgM/kjk14ofhM9RRu9AjSH5R4BJFw\nLfT0u2zavkQArIXzY1IfxZdJBw5Ejmcw6UG8PMGmpB16LlOQq9LW9bB15F6I\nInarPqFwmSkoVpeEy+4Q5kkkJh6kO/CjLCaxubCG4D3Pg4KdL0Bt0nmI+uoX\nwo4un90PZm9a5oEodZfn8LCPvLvmJYZ6GViq6CAAP+eqIcTYhl53Pypbzw9n\nB3FyAy8CVOG3UZg8FNOXuXMK4Xay+Cd7EWUcZBEjRkQ7lJGU77Rvugqc62ce\nqpajSz3zpAP2RX4tSN4JqdWhFYkmheFHAjHG19MDub7BDL9fzVrMkDiiTg2/\nIbJUX7YRLJBHkj+OXeP10E/1h9R7DKUZVYKgbso2jBp1efIwcQVvUdEsw050\n3oCctLG8VL0zQvZliGxPFVIUcJWxlCpBq1VQB5x6wbc2uFFSpfdT/ETs3pS2\nNZfNAvnf7g+UvHUo90Ef7mSBeiFt4XQWysv6/gpgxUZM3NsHW6nAgAbAUv/Z\nak5CBmA5Dd46jvr+gVOUJMj/U9tHWX1fGnywsLMjdhnYqVIHr6X1Vnd5tws2\npiGCJV0JDR1pWVYOcqf2t1Ailn/S2BH/tt51BzO+2Cczbhx+Nrcsucn+Av/a\ncgn5\r\n=530v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE5RretK1WUXEP74iLCfOYjQG4M4oDbCBLA9PI2uB6+TAiA0qcrzLZ2gwWXoDNpmRMf0sbdRxSNtN3XM++1ha+5aYA=="}]},"_npmUser":{"name":"2alheure","email":"jordan.juventin@2alheure.fr"},"directories":{},"maintainers":[{"name":"2alheure","email":"jordan.juventin@2alheure.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-modal_1.1.1_1630399198601_0.2218961752448141"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-10T14:25:54.874Z","1.0.0":"2021-05-10T14:25:55.076Z","modified":"2022-04-04T10:41:59.199Z","1.1.0":"2021-08-20T16:58:05.636Z","1.1.1":"2021-08-31T08:39:58.751Z"},"maintainers":[{"name":"2alheure","email":"jordan.juventin@2alheure.fr"}],"description":"A simple Modal component for Vue.js.","homepage":"https://github.com/2alheure/vue_js_modal#readme","keywords":["Vue.js","Vue 3","modal","window","pop-up"],"repository":{"type":"git","url":"git+https://github.com/2alheure/vue_js_modal.git"},"author":{"name":"2alheure","email":"contact@2alheure.fr"},"bugs":{"url":"https://github.com/2alheure/vue_js_modal/issues"},"license":"WTFPL","readme":"# Vue.js Modal\r\nA simple Modal component for Vue.js.  \r\nThis component is compatible with Vue 3.\r\n\r\n- [Vue.js Modal](#vuejs-modal)\r\n  - [Installation](#installation)\r\n  - [Usage](#usage)\r\n    - [Simple usage example](#simple-usage-example)\r\n    - [Props](#props)\r\n    - [Events](#events)\r\n\r\n## Installation\r\nFirst, run `npm install @2alheure/vue-modal`.  \r\nThen import it with `import Modal from \"@2alheure/vue-modal\";`.  \r\n\r\n## Usage\r\n### Simple usage example\r\n```html\r\n<Modal :displayed=\"isModalDisplayed\" @close=\"isModalDisplayed = false\">\r\n  <p>Look at that beautiful modal! =D</p>\r\n</Modal>\r\n\r\n<!-- OR -->\r\n\r\n<Modal v-model=\"isModalDisplayed\">\r\n  <p>Look at that beautiful modal! =D</p>\r\n</Modal>\r\n\r\n\r\n\r\n<script>\r\n  import Modal from \"@2alheure/vue-modal\";\r\n  \r\n  export default {\r\n    components: {\r\n      Modal\r\n    },\r\n    data() {\r\n      return {\r\n        isModalDisplayed: true\r\n      };\r\n    }\r\n  }\r\n</script>\r\n```\r\n\r\n### Props\r\n| Name         |  Type   | Default value | Description                                                                                                                                |\r\n| :----------- | :-----: | :-----------: | ------------------------------------------------------------------------------------------------------------------------------------------ |\r\n| modelValue   | Boolean |    `false`    | Whether the modal should be displayed or not. <br><br>This is the prop actually used by the `v-model` directive.<br>This prop is required. |\r\n| adaptative   | Boolean |    `false`    | Whether to let the modal adapt its size to its content or not. If not, the modal will be half the width of the window.                     |\r\n| btnClose     | Boolean |    `true`     | Whether a \"close\" button should be displayed or not.                                                                                       |\r\n| escClose     | Boolean |    `true`     | Whether the modal should close when the \"escape\" key is pressed or not.                                                                    |\r\n| overlayClose | Boolean |    `true`     | Whether the modal should close when the user clicks outside its content or not.                                                            |\r\n\r\n### Events\r\n| Name              | Value type |  Value  | Description                                                                                                                                                                                                  |\r\n| :---------------- | :--------: | :-----: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\r\n| update:modelValue |  Boolean   | `false` | Triggered each time the modal *should be* closed: <br>The cross button or the outside of the modal has been cliked, escape key has been pressed. <br><br>This is the event used for the `v-model` directive. |\r\n| update:modelValue |  Boolean   | `true`  | Triggered each time the modal is opened.                                                                                                                                                                     |\r\n\r\n","readmeFilename":"README.md"}