{"_id":"@2alheure/vue-pagination","_rev":"4-360738452f31cc86e02233ce285cd716","name":"@2alheure/vue-pagination","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@2alheure/vue-pagination","version":"1.0.0","description":"A simple Vue.js component that helps to print and handle a pagination","main":"src/Pagination.vue","scripts":{"test":"vue serve src/Pagination.vue"},"repository":{"type":"git","url":"git+https://github.com/2alheure/vue_pagination.git"},"keywords":["Vue.js","pagination"],"author":{"name":"2alheure","email":"contact@2alheure.fr"},"license":"WTFPL","bugs":{"url":"https://github.com/2alheure/vue_pagination/issues"},"homepage":"https://github.com/2alheure/vue_pagination#readme","gitHead":"b9d6ad81580f383d59b9da9c919d3df39da61c79","_id":"@2alheure/vue-pagination@1.0.0","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-J7tLC1/ePZHUpYDVW0DrvkmZAdGlG2KAb/IJf840Kf1tZVRjykTnvoPB4fctROYG7/Fo4pInMZR+0G+j8CAC9g==","shasum":"f39e54d680ec27be124575f89cb173981dbca8b9","tarball":"https://registry.npmjs.org/@2alheure/vue-pagination/-/vue-pagination-1.0.0.tgz","fileCount":3,"unpackedSize":9462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmER1CRA9TVsSAnZWagAAnw8QAIogQkQ99T76H8fsL+Di\nvP0ZNOKMmS5s6Klhoqo7YCqdgvxs13XA1IoYHXxNWY4ztCPhgmLqbr6tLOoL\nMMVMvrrUR5wLWXaARhUquCrM1tgSHUY8R8P0Zr6cJy+MJOMEIxsGPRPX/tkD\nkYJi5Zw3RAJCMH4/X+K+165J5oa/xXqXQKKp5qBqqgIUrvOGzOZT3XOURJoL\nbg/NXdPNasbEgsGTtJg20S70hEvFRmSY794raLM1h0clxWVhPEF0kzZ//f7I\nAs+48zaexPvqv3XL9oOG5/BFWuLFyAk9VIzQ7unM2amG0zXeiKJhoVikCWVn\nBEtx4UpLK+n4cZLWt13DLzaGs5WoltS8hYOoIyDfk6F3IoTFS8W53PVa3ANF\n3WdJwt5dV0qdQ81S3JGPwd8+UlxAJms70pEIED+6OpGYHQwKWIyx9QIu6qob\nMDiB2lwrSPMBbGAtyWwB+0Ph/HyeQiB1LRR8jhpB0NPmBTDF8vCdLCGYWCaf\ned6ipCz0WJj+yua2V7L2IiCCfftMKbSsvOavakGzcch5JJaTzMPGwdskl0lz\n713/MXWX5rZT4crAJBKJ6TSD34qy+c32x9nM7XfltYLyrd5cQQ0szHeyOnHa\nZVQb15KY7pXkP2ZkyZSSpHVFu/H09BV+DG5fDeF7AI2Ez8OsipZp/GfPHHlN\nMQyn\r\n=McSA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCz+Y+2QfcRxF+/8+nu6G2E0gvIX1JSWMe6MTv7NTrw1wIhAJXBDa3/HLg3YAsP5InL1mT/ykGYNAhRiMfo4o1cXl3V"}]},"_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-pagination_1.0.0_1620591733228_0.16264249863821534"},"_hasShrinkwrap":false},"1.0.1":{"name":"@2alheure/vue-pagination","version":"1.0.1","description":"A simple Vue.js component that helps to print and handle a pagination","main":"src/Pagination.vue","scripts":{"test":"vue serve src/Pagination.vue"},"repository":{"type":"git","url":"git+https://github.com/2alheure/vue_pagination.git"},"keywords":["Vue.js","pagination"],"author":{"name":"2alheure","email":"contact@2alheure.fr"},"license":"WTFPL","bugs":{"url":"https://github.com/2alheure/vue_pagination/issues"},"homepage":"https://github.com/2alheure/vue_pagination#readme","gitHead":"9b9e5525a22557ad6bde1e0b331956ec97ce1954","_id":"@2alheure/vue-pagination@1.0.1","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fWDg5RZ+2/Ddrh0XAs7z8bJevcOy62ybi2aAR5sUCLagMsv1fsx2X1Ct/NN/tzl2UqdyRXoEbzmUBIT/sXfPuA==","shasum":"1f7b570ed7e7b7cb2f7ad7bbf69259842fc2daf4","tarball":"https://registry.npmjs.org/@2alheure/vue-pagination/-/vue-pagination-1.0.1.tgz","fileCount":3,"unpackedSize":9495,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoMurCRA9TVsSAnZWagAA79gP/3uW8Vb+xXW9YAK8qcn6\nWsHpNrcUruTAfp7owx2DSwQBfg4/dJqI17VMm81UeKFawTrx+3KJuooiU2Rf\nR+WHn+s8eauYYDI+gden2Y4bd746K0AQZaOFJpK7+sYpr0WRsjM7ZAZvSaYx\nOkvxrxJrUnrfLlU3A029a9W8hx4eNg8mmB2J3XpI19K40KzB6F5nA9jFk+Ld\n7VNDF02n3iop/oFk8tI3Nmc9rN9BUOY0l/nJqlcuO2P6yfCi6CUafrHYd5h5\nMxI7M4Yxuf8oK/nj6iBStESBsKk7c9/cxvKABNnEbhcK+XnVIJWLtX5ozYwn\nqcjkpq8B0Sl1SrKkV4s4Dmd5evjnuLYX6DGZlz24dAgFUWBl+s4RfCvPsV4Q\nllEFSMRmBTvj9qGqh1C95G0xUglYVJU32/jVpLCb5x6iVzXpy4vfHybjpkht\n+x+z6bxxY6FoZdKzj7tS3LVo+sBnnb9Ng04FlZuDEPpBVMFggOUmFvc7uR+g\n7eJUYEt5PCTnw+pC9fkJnoouaBFkurNgr7Z4iMnA9MX8m6rrilaIzQLeLzN7\n4fkwcCC0Mb2KI4bMEopGCWNjktFeFdiQ4I9HDiE9+TZsm2gQZQdoHVf5JJX1\nOaJRDapeLqQFqyYZXelen/moD0mx2dGnrQ4KoR1JmRZSPKvlZQj6GzLT+NkU\nr5Xz\r\n=m4OF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDB4PWPbcX5ok6iywrJlKTPXfDq4W7KdGkd03CiEzPpxQIgBtwkUhEMBRMVRZwWpkfAGcs5qkafGtKWJc+5vIy5p9A="}]},"_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-pagination_1.0.1_1621150634473_0.05782623386903074"},"_hasShrinkwrap":false},"1.1.0":{"name":"@2alheure/vue-pagination","version":"1.1.0","description":"A simple Vue.js component that helps to print and handle a pagination","main":"src/Pagination.vue","scripts":{"test":"vue serve src/Pagination.vue"},"repository":{"type":"git","url":"git+https://github.com/2alheure/vue_pagination.git"},"keywords":["Vue.js","pagination"],"author":{"name":"2alheure","email":"contact@2alheure.fr"},"license":"WTFPL","bugs":{"url":"https://github.com/2alheure/vue_pagination/issues"},"homepage":"https://github.com/2alheure/vue_pagination#readme","gitHead":"cb5b0d6ea6fdfab787a5eb0029b456aaaacdff31","_id":"@2alheure/vue-pagination@1.1.0","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-jJ8QVxbMMwYtzUcOAxSm4buE4aqmz2jKY7+sz2gwGAsr3s2sAmSfHAsjNMfccHcAAW3NNzOJBQ+kDIY3bRhVZA==","shasum":"f6709224e305acdb6294e12b74995db2bb947d3b","tarball":"https://registry.npmjs.org/@2alheure/vue-pagination/-/vue-pagination-1.1.0.tgz","fileCount":3,"unpackedSize":9678,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhH977CRA9TVsSAnZWagAAyrwP/ROpYvumOM2ae1il0Gu0\ngJxYoluPQDNYAMZZHnLORWp2dYmbJvHqBB9OVoqSeKJipSWyi5eOlaL5KA84\nPUMVxprVt6f0fkxd1jsNewh5K7ypF37Mx62rdjjgAeisSD+9g84gEeL0lwIf\nZgMJIpNn8C6r/gU9VjPxOBkR7OiG0wU2QW7X4K9c16JWJVbvuGcFsSAu7DaD\n5r9BlViQhDo6hXjppFiKRRM3eKvb8ALliz/JjA0jhDrjHbb9/iVWmm8JmYus\nqdHTNIrz8LlK28782vvt4cOnRabJdmd03RGx3cSqlapIRXfAw7b2BnkXroo8\nRl3foLcUGL0Sj9S4YQItVK+DPOAu+5a7RqOCXAdoqPKZah3hQ+aVvV3KbABO\nyFtRteN89CRGHgryxXvRd7sTLuC4OSXHl6ooNsl00mE9GvS4bfjcDeNCJkRC\naidrZXPKdTQfEyyvnXRL7Yp0HrUi1xLluOgvIIF6VubWWQvgMI8rUMuzOu02\n7TBYqOKVluqyQMezkRfQHPdLdKPb1wwsqia7LLDpN3hUNXrCGWGMdUwjzARi\njMlgLlIuS4LDRlScFUtV35gUlsOWgKFz1F2toBKz8Lm5K0n9RpbLG+/69X0v\n7FEOmYHqy6/sdKidfQtaOMjd1+pbb0Mhkek/75Cqkz24LE6b5TivKQnuZ/r8\nwS6O\r\n=rKAx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/uB/R2WBKASBq4bbGJtzmQhce76/bfYwxAAbo7TP1ZAiATqAgnP2T/NE5RKvaIgpMOAaEckTiI7Qn8N3LBlqwg8Q=="}]},"_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-pagination_1.1.0_1629478651761_0.7755393030347095"},"_hasShrinkwrap":false},"1.1.1":{"name":"@2alheure/vue-pagination","version":"1.1.1","description":"A simple Vue.js component that helps to print and handle a pagination","main":"src/Pagination.vue","scripts":{"test":"vue serve src/Pagination.vue"},"repository":{"type":"git","url":"git+https://github.com/2alheure/vue_pagination.git"},"keywords":["Vue.js","Vue 3","pagination"],"author":{"name":"2alheure","email":"contact@2alheure.fr"},"license":"WTFPL","bugs":{"url":"https://github.com/2alheure/vue_pagination/issues"},"homepage":"https://github.com/2alheure/vue_pagination#readme","gitHead":"3d53cebfe452ce21bd820c799fa8916e53c14613","_id":"@2alheure/vue-pagination@1.1.1","_nodeVersion":"14.6.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-78zf72K3rxMA356Q/nFZ3gtjaqGladm/1qWRSNla3/O5+nif0g9fKUW3CUnw82XHl2qMP4k7uU5+XNIGokRAWw==","shasum":"de1b259a50d8be48f62bf4ec1acbf7b233b136dd","tarball":"https://registry.npmjs.org/@2alheure/vue-pagination/-/vue-pagination-1.1.1.tgz","fileCount":3,"unpackedSize":9737,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLeohCRA9TVsSAnZWagAAQ/4P/3oq9a0iQh7J8WzYFLI3\nXUuSrzK3sVBSbQk0i23knXTxcuoZNI6pO5IxPqJ63Se6gK8EbrtfRu81KPB1\n6oQVkhFsYLVW+8vZrGqDZvlj7CEpV0dWVGRHj8vHjqZQX/DkmypRC8Gfisc9\nDHh2lbUAm/KiFl21lSFnJvqDHaUwM/EXB1FejYqYdW2K/OJbTSKXL2ZTy3UH\n/BlGbEvKuTIgYH66TOTenMALL//cG9H50deqdVfyRT0YvV7zVGfX/70pdpwv\nDoHTX3CS92e8UfYyED2Jcu/aaPB8ftxYybl8eGvSWKzqyxToyYRxM+m7K64A\n4alPsO/BMM7CZrusfYaIMidg1i/n9IzrASpYf/BJXk0cCT1VkSnQYdyZ16G2\naJ9O6jawl/PRgOX2RGuWc+SfarcmSsa52eJJlb/ERlzL+l2yAc4oE/oEjL+S\n7LZITRnQJcEyFYgmb2hRXHpCXNyy0rfBMpEvGSkzh8saS6zsITnFPi4IGi5u\nSAjr49oYiuU9qXgQ/6uqYju5ZEx9E8PRlHlid3hxiJy4TRnnnjiGL2f2O33H\nmtI9zowRoO7YiyDmh9zcHIJKH04TuDLyqyjNVBAlz2up03BHlXcRzcBGQzB5\nkOyhbyMNraPmW1ZyYYrUkfcrMxLRng8F9h0LTd32nEVCrKsEiqs7rJ123hxl\nygFM\r\n=Ov93\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClTJ7Hev5reqyy2M+r/Vq1jJBRnGgJ17sr76bmZVWsxAIgW4kXsjWYVwGGfX9QQcYdU5BmWqo9iryRnLdU++v+EXQ="}]},"_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-pagination_1.1.1_1630399009072_0.759344626238643"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-09T20:22:13.177Z","1.0.0":"2021-05-09T20:22:13.368Z","modified":"2022-04-04T10:41:59.365Z","1.0.1":"2021-05-16T07:37:14.596Z","1.1.0":"2021-08-20T16:57:31.915Z","1.1.1":"2021-08-31T08:36:49.194Z"},"maintainers":[{"name":"2alheure","email":"jordan.juventin@2alheure.fr"}],"description":"A simple Vue.js component that helps to print and handle a pagination","homepage":"https://github.com/2alheure/vue_pagination#readme","keywords":["Vue.js","Vue 3","pagination"],"repository":{"type":"git","url":"git+https://github.com/2alheure/vue_pagination.git"},"author":{"name":"2alheure","email":"contact@2alheure.fr"},"bugs":{"url":"https://github.com/2alheure/vue_pagination/issues"},"license":"WTFPL","readme":"# Vue.js Pagination\r\nA simple Vue.js component that helps to print and handle a pagination.  \r\nThis component is compatible with Vue 3.\r\n\r\n- [Vue.js Pagination](#vuejs-pagination)\r\n  - [Installation](#installation)\r\n  - [Usage](#usage)\r\n  - [Example](#example)\r\n  - [Props](#props)\r\n  - [Events](#events)\r\n\r\n## Installation\r\nFirst, you must run `npm install @2alheure/vue-pagination`.  \r\nThen, you can import it with `import Pagination from \"@2alheure/vue-pagination\";`.\r\n\r\n## Usage\r\nCall the component with two things:\r\n- a `v-model` directive, using a variable representing the active page (integer)\r\n- a `maxPage` prop (integer) representing the max page number\r\n\r\n## Example\r\n```html\r\n<Pagination v-model=\"page\" :maxPage=\"10\" />\r\n\r\n<script>\r\n  import Pagination from \"@2alheure/vue-pagination\";\r\n  \r\n  export default {\r\n    components: {\r\n      Pagination\r\n    },\r\n    data() {\r\n      return {\r\n        page: 3\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               | Number |     none      | The prop linked to the `v-model` directive (mandatory).                |\r\n| maxPage                  | Number |     none      | The maximum number of pages (mandatory).                               |\r\n| textColor                | String |   `#4a5568`   | The color of the buttons' text.                                        |\r\n| backgroundColor          | String |    `#fff`     | The color of the buttons' background.                                  |\r\n| borderColor              | String |   `#e2e8f0`   | The color of the buttons' borders.                                     |\r\n| selectedTextColor        | String |   `#f7fafc`   | The color of the text for the selected button.                         |\r\n| selectedBackgroundColor  | String |   `#4a5568`   | The color of the background for the selected button.                   |\r\n| selectedBorderColor      | String |   `#e2e8f0`   | The color of the borders for the selected button.                      |\r\n| hoverTextColor           | String |   `#f7fafc`   | The color of the text for the hovered button.                          |\r\n| hoverBackgroundColor     | String |   `#a0aec0`   | The color of the background for the hovered button.                    |\r\n| hoverBorderColor         | String |   `#e2e8f0`   | The color of the borders for the hovered button.                       |\r\n| controlsHoverBorderColor | String |   `#cbd5e0`   | The color of the borders for the hovered \"Previous\" or \"Next\" buttons. |\r\n\r\n## Events\r\n| Name              | Value type |          Value           | Description                                   |\r\n| :---------------- | :--------: | :----------------------: | --------------------------------------------- |\r\n| update:modelValue |   Number   |     The page clicked     | Emitted each time the page changes            |\r\n| prev              |   Number   | The previous page number | Emitted when the \"Previous\" button is clicked |\r\n| next              |   Number   |   The next page number   | Emitted when the \"Next\" button is clicked     |\r\n","readmeFilename":"README.md"}