{"id":26234551,"url":"https://github.com/carodriguezg/primevue-mandatory","last_synced_at":"2026-02-14T06:32:12.679Z","repository":{"id":281556934,"uuid":"945630158","full_name":"CARodriguezG/primevue-mandatory","owner":"CARodriguezG","description":"Vue directive for avoiding PrimeVue Listbox component to set a null value when an option is already selected.","archived":false,"fork":false,"pushed_at":"2025-03-10T21:43:41.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T16:03:07.419Z","etag":null,"topics":["directive","mandatory","nuxt","nuxt3","primevue","vue","vue3"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@carodriguezg/primevue-mandatory","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CARodriguezG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-09T21:19:16.000Z","updated_at":"2025-03-10T21:43:45.000Z","dependencies_parsed_at":"2025-03-09T22:27:18.441Z","dependency_job_id":null,"html_url":"https://github.com/CARodriguezG/primevue-mandatory","commit_stats":null,"previous_names":["carodriguezg/primevue-mandatory"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CARodriguezG%2Fprimevue-mandatory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CARodriguezG%2Fprimevue-mandatory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CARodriguezG%2Fprimevue-mandatory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CARodriguezG%2Fprimevue-mandatory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CARodriguezG","download_url":"https://codeload.github.com/CARodriguezG/primevue-mandatory/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250257204,"owners_count":21400675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["directive","mandatory","nuxt","nuxt3","primevue","vue","vue3"],"created_at":"2025-03-13T02:19:09.536Z","updated_at":"2026-02-14T06:32:12.647Z","avatar_url":"https://github.com/CARodriguezG.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Project description\n\nVue directive for avoiding PrimeVue Listbox component to set a null value when an option is already selected.\n\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.**\n\n### Nuxt 3 Usage\n\n1. Create a plugin in [nuxt plugins folder](https://nuxt.com/docs/guide/directory-structure/plugins).\n2. Add the following code to install the directive:\n\n```typescript\nimport PrimeVueMandatory from '@carodriguezg/primevue-mandatory'\n\nexport default defineNuxtPlugin((nuxtApp) =\u003e {\n    nuxtApp.vueApp.use(PrimeVueMandatory)\n})\n```\n3. Add `v-mandatory` on the component:\n```html\n\u003cListbox v-mandatory :options=\"your_items\" /\u003e\n```\n4. Enjoy!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarodriguezg%2Fprimevue-mandatory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarodriguezg%2Fprimevue-mandatory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarodriguezg%2Fprimevue-mandatory/lists"}