{"_id":"@carodriguezg/primevue-mandatory","_rev":"5-ce3b6ad86b978285d418e9808d43b3c7","name":"@carodriguezg/primevue-mandatory","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@carodriguezg/primevue-mandatory","version":"1.0.0","keywords":["vue","vue3","primevue","listbox","mandatory","directive"],"author":{"url":"https://github.com/carodriguezg","name":"César Rodríguez","email":"candres06@hotmail.com"},"license":"MIT","_id":"@carodriguezg/primevue-mandatory@1.0.0","maintainers":[{"name":"crodriguezg","email":"candres06@hotmail.com"}],"dist":{"shasum":"0d54375222a1fb5b7637f537207838090925677d","tarball":"https://registry.npmjs.org/@carodriguezg/primevue-mandatory/-/primevue-mandatory-1.0.0.tgz","fileCount":5,"integrity":"sha512-MnmLD79PoIM1c1unNwA9/6ALWGpUOGOhrM/xz52TexUfwjhEzELRckUqxC1oJaHiy2aIudrJgHtGwE25tFDt+w==","signatures":[{"sig":"MEUCIQCQCJJV1133tqJ/KadyNo10D/Av7iCmqnGRXdVUZI4kbgIgOWZVjfsPRNs1kMIIk8biYnqIDyBUVS1Vz0M+IOqDIXs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3405},"type":"module","scripts":{"build":"rollup -c"},"_npmUser":{"name":"crodriguezg","email":"candres06@hotmail.com"},"_npmVersion":"10.9.2","description":"Directive for using mandatory value in Primevue Listbox component","directories":{},"productName":"Primevue Mandatory Directive","_nodeVersion":"22.13.1","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.35.0"},"peerDependencies":{"vue":"^3.0.0","primevue":"^4.3.1"},"_npmOperationalInternal":{"tmp":"tmp/primevue-mandatory_1.0.0_1741551315239_0.25664178101143675","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@carodriguezg/primevue-mandatory","version":"1.0.1","keywords":["vue","vue3","primevue","listbox","mandatory","directive"],"author":{"url":"https://github.com/carodriguezg","name":"César Rodríguez","email":"candres06@hotmail.com"},"license":"MIT","_id":"@carodriguezg/primevue-mandatory@1.0.1","maintainers":[{"name":"crodriguezg","email":"candres06@hotmail.com"}],"dist":{"shasum":"c5d1d9439d6124ac13ff08134c75741472626430","tarball":"https://registry.npmjs.org/@carodriguezg/primevue-mandatory/-/primevue-mandatory-1.0.1.tgz","fileCount":6,"integrity":"sha512-rpF9iLRTxIwjRDH/BekLXWIjc4MXZZeZcN2yz7OrxOSRndK5+4mfdfhvHq3z0DgZweRxF4VUOqdx2xT1o59yAQ==","signatures":[{"sig":"MEUCICSZzVI+c6o95UBDyJfHC8sp+sABSeT5095vziShQuyqAiEA4rMkln0kTP28u6rKKOO8RWdvJbgIbgu/tCCXzukgaCM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4166},"type":"module","scripts":{"build":"rollup -c"},"_npmUser":{"name":"crodriguezg","email":"candres06@hotmail.com"},"_npmVersion":"10.9.2","description":"Directive for using mandatory value in Primevue Listbox component","directories":{},"productName":"Primevue Mandatory Directive","_nodeVersion":"22.13.1","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.35.0"},"peerDependencies":{"vue":"^3.0.0","primevue":"^4.3.1"},"_npmOperationalInternal":{"tmp":"tmp/primevue-mandatory_1.0.1_1741554672010_0.6209910939302177","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@carodriguezg/primevue-mandatory","version":"1.0.2","keywords":["vue","vue3","primevue","listbox","mandatory","directive"],"author":{"url":"https://github.com/carodriguezg","name":"César Rodríguez","email":"candres06@hotmail.com"},"license":"MIT","_id":"@carodriguezg/primevue-mandatory@1.0.2","maintainers":[{"name":"crodriguezg","email":"candres06@hotmail.com"}],"homepage":"https://github.com/CARodriguezG/primevue-mandatory#readme","bugs":{"url":"https://github.com/CARodriguezG/primevue-mandatory/issues"},"dist":{"shasum":"6d2dbc19f05c5f3bcaaa2a09af291fc71933291e","tarball":"https://registry.npmjs.org/@carodriguezg/primevue-mandatory/-/primevue-mandatory-1.0.2.tgz","fileCount":8,"integrity":"sha512-sBIN4qppXqSEIJvCee4OaGKEcHQxyXBpOJpuUkpWrQE8vyGzv87olx1WnRfYZV/jN441KUsE4agHiJZtN0Mqrw==","signatures":[{"sig":"MEYCIQCpl3OvdFVEIUSguZVZ3YTbz6dw4Hv6zwbad0MJSZMsPwIhAP73LJwvOJ8khUHayTP5mBghybY7VVDGD7H1SQqcuzun","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6668},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"6aa80ad20d822acaecb49b8efd1b6eaed96e9b37","scripts":{"build":"tsup"},"_npmUser":{"name":"crodriguezg","email":"candres06@hotmail.com"},"repository":{"url":"git+https://github.com/CARodriguezG/primevue-mandatory.git","type":"git"},"_npmVersion":"10.9.2","description":"Directive for using mandatory value in Primevue Listbox component","directories":{},"_nodeVersion":"22.13.1","dependencies":{"tsup":"^8.4.0"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.8.2"},"peerDependencies":{"vue":"^3.0.0","primevue":"^4.3.1"},"_npmOperationalInternal":{"tmp":"tmp/primevue-mandatory_1.0.2_1741557311023_0.9869725491697627","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@carodriguezg/primevue-mandatory","version":"1.0.3","keywords":["vue","vue3","primevue","listbox","mandatory","directive"],"author":{"url":"https://github.com/carodriguezg","name":"César Rodríguez","email":"candres06@hotmail.com"},"license":"MIT","_id":"@carodriguezg/primevue-mandatory@1.0.3","maintainers":[{"name":"crodriguezg","email":"candres06@hotmail.com"}],"homepage":"https://github.com/CARodriguezG/primevue-mandatory#readme","bugs":{"url":"https://github.com/CARodriguezG/primevue-mandatory/issues"},"dist":{"shasum":"d00e7073458b55125df9771e200400c899b2b8db","tarball":"https://registry.npmjs.org/@carodriguezg/primevue-mandatory/-/primevue-mandatory-1.0.3.tgz","fileCount":8,"integrity":"sha512-z5zNkCmv/c11ewaYpF0LWMA4i+QWtL9CKsIGHnX1kTOp8FelB5HDSo9+FYxfsrK4gpbNC92L3vaxPQWZoCRxYg==","signatures":[{"sig":"MEUCIQCPt9umv/vIS5nfjR57nvLFR7hqHt2HbDTGWBQ69lLiHQIgC1BfHV+QrY3nkoox3b8DlZJ30+yIMFSamgGWF+fuJRk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6644},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"799a36db1a1864f5f259175b038ea9c01c4e428e","scripts":{"build":"tsup"},"_npmUser":{"name":"crodriguezg","email":"candres06@hotmail.com"},"repository":{"url":"git+https://github.com/CARodriguezG/primevue-mandatory.git","type":"git"},"_npmVersion":"10.9.2","description":"Directive for using mandatory value in Primevue Listbox component","directories":{},"_nodeVersion":"22.13.1","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","ts-node":"^10.9.2","typescript":"^5.8.2"},"peerDependencies":{"vue":"^3.0.0","primevue":"^4.3.1"},"_npmOperationalInternal":{"tmp":"tmp/primevue-mandatory_1.0.3_1741557516076_0.7036064535010849","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@carodriguezg/primevue-mandatory","version":"1.0.4","description":"Directive for using mandatory value in Primevue Listbox component","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","author":{"name":"César Rodríguez","email":"candres06@hotmail.com","url":"https://github.com/carodriguezg"},"repository":{"type":"git","url":"git+https://github.com/CARodriguezG/primevue-mandatory.git"},"keywords":["vue","vue3","primevue","listbox","mandatory","directive"],"license":"MIT","type":"module","peerDependencies":{"primevue":"^4.3.1","vue":"^3.0.0"},"scripts":{"build":"tsup"},"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.8.2","tsup":"^8.4.0"},"_id":"@carodriguezg/primevue-mandatory@1.0.4","gitHead":"79b6831e83de5abbb9d03fd4a2f5da01861bbbb1","bugs":{"url":"https://github.com/CARodriguezG/primevue-mandatory/issues"},"homepage":"https://github.com/CARodriguezG/primevue-mandatory#readme","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-9kclCOJdRR20OC1wQAIPI2gVmtcGiWieNO8Rwi+aFu2URJ8o05zdF9UcG/7MVuQ5WmNtBds0xW105zjybTNFdA==","shasum":"846e83c2cd5ffebe24037873cf067cbd07a36fb6","tarball":"https://registry.npmjs.org/@carodriguezg/primevue-mandatory/-/primevue-mandatory-1.0.4.tgz","fileCount":8,"unpackedSize":6932,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDpFy7+RvOymovr95LEmQ54xrsVnr/0NN6Y0UVePEU0pgIhALFxv4b/yjpWzsWCtRUY7J5y54i4jI8ao4DX2H1Nalhj"}]},"_npmUser":{"name":"crodriguezg","email":"candres06@hotmail.com"},"directories":{},"maintainers":[{"name":"crodriguezg","email":"candres06@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/primevue-mandatory_1.0.4_1741643152404_0.706300395727866"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-09T20:15:15.164Z","modified":"2025-03-10T21:45:52.739Z","1.0.0":"2025-03-09T20:15:15.426Z","1.0.1":"2025-03-09T21:11:12.191Z","1.0.2":"2025-03-09T21:55:11.218Z","1.0.3":"2025-03-09T21:58:36.254Z","1.0.4":"2025-03-10T21:45:52.561Z"},"bugs":{"url":"https://github.com/CARodriguezG/primevue-mandatory/issues"},"author":{"name":"César Rodríguez","email":"candres06@hotmail.com","url":"https://github.com/carodriguezg"},"license":"MIT","homepage":"https://github.com/CARodriguezG/primevue-mandatory#readme","keywords":["vue","vue3","primevue","listbox","mandatory","directive"],"repository":{"type":"git","url":"git+https://github.com/CARodriguezG/primevue-mandatory.git"},"description":"Directive for using mandatory value in Primevue Listbox component","maintainers":[{"name":"crodriguezg","email":"candres06@hotmail.com"}],"readme":"## Project description\r\n\r\nVue directive for avoiding PrimeVue Listbox component to set a null value when an option is already selected.\r\n\r\n**WARNING: This directive has only been test on Listbox PrimeVue component, but it should work on components which use the `updateModel` method to update their model.**\r\n\r\n### Nuxt 3 Usage\r\n\r\n1. Create a plugin in [nuxt plugins folder](https://nuxt.com/docs/guide/directory-structure/plugins).\r\n2. Add the following code to install the directive:\r\n\r\n```typescript\r\nimport PrimeVueMandatory from '@carodriguezg/primevue-mandatory'\r\n\r\nexport default defineNuxtPlugin((nuxtApp) => {\r\n    nuxtApp.vueApp.use(PrimeVueMandatory)\r\n})\r\n```\r\n3. Add `v-mandatory` on the component:\r\n```html\r\n<Listbox v-mandatory :options=\"your_items\" />\r\n```\r\n4. Enjoy!","readmeFilename":"README.md"}