{"id":22762450,"url":"https://github.com/tunayagci/multiselect-autocomplete","last_synced_at":"2025-03-30T09:22:07.235Z","repository":{"id":35925649,"uuid":"141874813","full_name":"TunaYagci/multiselect-autocomplete","owner":"TunaYagci","description":"A Vue.js component for multi selectable auto complete.","archived":false,"fork":false,"pushed_at":"2023-04-26T16:08:53.000Z","size":2580,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T11:12:18.335Z","etag":null,"topics":["auto-complete","autocomplete","multi-select","multiple","multiple-autocomplete","multiselect","multiselect-autocomplete","vue"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TunaYagci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-07-22T07:24:21.000Z","updated_at":"2019-11-12T08:37:35.000Z","dependencies_parsed_at":"2024-10-22T20:17:41.665Z","dependency_job_id":null,"html_url":"https://github.com/TunaYagci/multiselect-autocomplete","commit_stats":{"total_commits":40,"total_committers":2,"mean_commits":20.0,"dds":0.275,"last_synced_commit":"36b8eec07e36270542b58bfaf8fd0f9d71955652"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TunaYagci%2Fmultiselect-autocomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TunaYagci%2Fmultiselect-autocomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TunaYagci%2Fmultiselect-autocomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TunaYagci%2Fmultiselect-autocomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TunaYagci","download_url":"https://codeload.github.com/TunaYagci/multiselect-autocomplete/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246297542,"owners_count":20754806,"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":["auto-complete","autocomplete","multi-select","multiple","multiple-autocomplete","multiselect","multiselect-autocomplete","vue"],"created_at":"2024-12-11T10:08:05.794Z","updated_at":"2025-03-30T09:22:07.198Z","avatar_url":"https://github.com/TunaYagci.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multiselect-autocomplete\n[![Build Status](https://semaphoreci.com/api/v1/tunayagci/multiselect-autocomplete/branches/master/shields_badge.svg)](https://semaphoreci.com/tunayagci/multiselect-autocomplete)\n![npm](https://img.shields.io/npm/v/multiselect-autocomplete)\n\n![](/public/autocomplete-3.gif)\n\n## Install:  \n* `npm i multiselect-autocomplete`\n* Add `fontawesome` to your index.html for **loading icon**, like:\n```html\n    \u003clink rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.2.0/css/all.css\"\n```\n\n## Docs: \nhttps://tunayagci.github.io/multiselect-autocomplete/#/docs\n\n## Example:    \n\nhttps://tunayagci.github.io/multiselect-autocomplete\n\n```vue\n\u003c!--StarWarsAutoComplete.vue--\u003e\n\u003ctemplate\u003e\n    \u003cmulti-select-auto-complete\n            :suggestions=\"suggestions\"\n            @onSearchParamChanged=\"searchParamChanged($event, getInstance)\"\n            @onSelected=\"onSelected\"\n            @onSelectedSelectionDelete=\"onSelectedEntityDelete\"\n            :selectionArray=\"selectedEntities\"\n            :is-loading=\"isLoading\"\u003e\n    \u003c/multi-select-auto-complete\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n    import MultiSelectAutoComplete from \"./MultiSelectAutoComplete.vue\";\n    import Vue from 'vue';\n    import backend from \"./backend\";\n    import debounce from 'debounce';\n\n    export default {\n        components: {\n            MultiSelectAutoComplete,\n        },\n        name: 'star-wars-auto-complete',\n        data() {\n            return {\n                suggestions: [],\n                selectedEntities: [],\n                isLoading: false\n            }\n        },\n        props: {\n            value: {\n                type: String,\n                required: false\n            }\n        },\n        computed: {\n            getInstance() {\n                return this;\n            }\n        },\n        created() {\n            const c3po = 'C-3PO';\n            const r2d2 = 'R2-D2';\n            this.selectedEntities.push({id: c3po, visibleName: c3po});\n            this.selectedEntities.push({id: r2d2, visibleName: r2d2});\n        },\n        methods: {\n            onSelected(selection) {\n                if (!this.selectedEntities.find(f =\u003e f.id === selection.id)) {\n                    this.selectedEntities.push(selection);\n                }\n            },\n            searchParamChanged: debounce((searchString, self) =\u003e {\n                self.inputValue = searchString;\n                if (searchString) {\n                    self.isLoading = true;\n                    return backend.searchCharacters(searchString).then((characters) =\u003e {\n                        let suggestions = [];\n                        if (characters \u0026\u0026 characters.count \u003e 0) {\n                            suggestions = characters.results.map(result =\u003e {\n                                return {\n                                    id: result.name,\n                                    visibleName: result.name\n                                }\n                            });\n                        }\n                        self.suggestions = suggestions;\n                    }).finally(() =\u003e self.isLoading = false);\n                } else {\n                    return self.suggestions = [];\n                }\n            }, 400),\n            onSelectedEntityDelete(index) {\n                Vue.delete(this.selectedEntities, index);\n            }\n        }\n    }\n\u003c/script\u003e\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftunayagci%2Fmultiselect-autocomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftunayagci%2Fmultiselect-autocomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftunayagci%2Fmultiselect-autocomplete/lists"}