├── .browserslistrc
├── .eslintrc.js
├── .github
└── workflows
│ └── nodejs.yml
├── .gitignore
├── .npmignore
├── .postcssrc.js
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── LICENSE.txt
├── README.md
├── assets
└── screenshot.png
├── babel.config.js
├── deploy.sh
├── docs
├── .vuepress
│ ├── components
│ │ ├── APIExample.vue
│ │ ├── CustomSuggestion.vue
│ │ ├── HomePageDemo.vue
│ │ └── PendingAppendingExample.vue
│ └── config.js
├── README.md
├── examples
│ └── examples.md
└── guide
│ ├── gettingStarted.md
│ └── reference.md
├── jest.config.js
├── package-lock.json
├── package.json
├── public
├── countries.json
├── favicon.ico
└── index.html
├── src
└── components
│ ├── VueTypeaheadBootstrap.vue
│ ├── VueTypeaheadBootstrapList.vue
│ └── VueTypeaheadBootstrapListItem.vue
├── tests
└── unit
│ ├── .eslintrc.js
│ ├── VueTypeaheadBootstrap.spec.js
│ ├── VueTypeaheadBootstrapList.spec.js
│ └── VueTypeaheadBootstrapListItem.spec.js
└── vue.config.js
/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not ie <= 9
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | env: {
4 | node: true
5 | },
6 | 'extends': [
7 | 'plugin:vue/essential',
8 | '@vue/standard'
9 | ],
10 | rules: {
11 | 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
12 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
13 | 'space-before-function-paren': 'off'
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/.github/workflows/nodejs.yml:
--------------------------------------------------------------------------------
1 | # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3 |
4 | name: Node.js CI
5 |
6 | on: [push, pull_request]
7 |
8 | env:
9 | CI: true
10 |
11 | jobs:
12 | test:
13 | runs-on: ubuntu-latest
14 | strategy:
15 | matrix:
16 | node-version: [ 12.x, 14.x ]
17 | steps:
18 | - uses: actions/checkout@v2
19 | - name: Lint & Test
20 | uses: actions/setup-node@v1
21 | with:
22 | node-version: ${{ matrix.node-version }}
23 | - run: npm ci
24 | - run: npm run lint
25 | - run: npm run test:unit
26 |
27 | release:
28 | runs-on: ubuntu-latest
29 | needs: test
30 | strategy:
31 | matrix:
32 | node-version: [ 12.x, 13.x ]
33 | steps:
34 | - uses: actions/checkout@v2
35 | - name: Build & Release
36 | uses: actions/setup-node@v1
37 | with:
38 | node-version: ${{ matrix.node }}
39 | - run: npm ci
40 | - run: npm run build
41 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | coverage
4 |
5 | # local env files
6 | .env.local
7 | .env.*.local
8 |
9 | # Log files
10 | npm-debug.log*
11 | yarn-debug.log*
12 | yarn-error.log*
13 |
14 | # Editor directories and files
15 | .idea
16 | .vscode
17 | *.suo
18 | *.ntvs*
19 | *.njsproj
20 | *.sln
21 | *.sw*
22 | /docs/.vuepress/dist
23 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | docs
2 | .vscode
3 | assets
4 | public
5 |
--------------------------------------------------------------------------------
/.postcssrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | autoprefixer: {}
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 2.12.0 - 26 Aug 2021
2 | - Revert localization changes
3 | - Update CI build targets
4 |
5 | ## 2.11.1 - 23 Apr 2021
6 | - Improve screen reader text support
7 |
8 | ## 2.11.0 - 7 Apr 2021
9 | - Rebuild dist files that were missed in previous two versions (2.9.0 & 2.10.0)
10 |
11 | ## 2.10.0 - 5 Apr 2021
12 | - Provide for customizable screen reader text
13 |
14 | ## 2.9.0 - 5 Apr 2021
15 | - Support 'enter' selecting the first item of the list
16 |
17 | ## 2.8.0 - 9 Feb 2021
18 | - Issues blur event when leaving the dropdown navigated to with arrow keys
19 |
20 | ## 2.7.3 - 9 Feb 2021
21 | - Fix internationalization support. Bug with the `z` characters
22 |
23 | ## 2.7.2 - 31 Dec 2020
24 | - Update highlight.js for security vulnerability
25 | - Update missing doc link
26 |
27 | ## 2.7.1 - 31 Dec 2020
28 | - Update docs to match new usage of `list-group-item-${context}`
29 |
30 | ## 2.7.0 - 31 Dec 2020
31 | - Add support for different background colors per list item
32 | - NOTE: also changing from `bg-${context}` to `list-group-item-${context}` to match bootstrap docs and allow text colors to change automatically
33 |
34 | ## 2.6.1 - 28 Dec 2020
35 | - Add internationalization support, specifically for diacritics (accents, etc)
36 | - Allow `md` as a size option
37 |
38 | ## 2.5.6 - 28 Dec 2020
39 | - Formalize IE close fix
40 |
41 | ## 2.5.5 - 19 Dec 2020
42 | - Include lodash in dependencies
43 |
44 | ## 2.5.4 - 11 Nov 2020
45 | - Reduced package size
46 |
47 | ## 2.5.3.beta - 28 Sep 2020
48 | - Attempted a11y improvements to use standard combobox aria tags
49 |
50 | ## 2.5.2 - 28 Sep 2020
51 | - Fix IE dropdowns closing
52 |
53 | ## 2.5.1 - 08 Aug 2020
54 | - Fix broken key handling events
55 |
56 | ## 2.5.0 - 07 Jul 2020
57 | - Propagate keyup events from the input.
58 |
59 | ## 2.4.1 - 05 Jul 2020
60 | - Fix bug when given a null query
61 |
62 | ## 2.4.0 - 05 Jul 2020
63 | - Add the ability to disable list items
64 |
65 | ## 2.3.0 - 18 Jun 2020
66 | - Add support for inputName
67 |
68 | ## 2.2.0 - 18 Jun 2020
69 | - Fix IE support for click handling
70 | - Clean up tests
71 |
72 | ## 2.1.0 - 26 May 2020
73 | - Add disabled option
74 |
75 | ## 2.0.2 - 26 May 2020
76 | - Rename file
77 |
78 | ## 2.0.1 - 22 May 2020
79 | - Add migration instructions
80 |
81 | ## 2.0.0 - 22 May 2020
82 | - Breaking change: Rename this component fully. To continue using this component, you'll need to change all
83 | your usages from `vue-bootstrap-typeahead` to `vue-typeahead-bootstrap`.
84 |
85 | - Bug Fix: Handle `ESC` keypress more appropriately
86 | - Feature: Add `autoclose` to allow for the component to hide upon item selection
87 | - Feature: Migrate to VuePress style documentation
88 |
89 | ## 1.0.3 - 2 Mar 2020
90 | - Allow up/down arrow keys to wrap without an extra key push.
91 |
92 | ## 1.0.2 - 1 Mar 2020
93 | - Added `disableSort`. No sorting occurs and the list is presented to the user as it is given to the component.
94 | - Fix IE 11 display issue. Fixes issue listed here:
95 | https://github.com/alexurquhart/vue-bootstrap-typeahead/issues/2#issuecomment-418142023
96 |
97 | ## 1.0.1 - 22 Feb 2020
98 | - Add documentation.
99 |
100 | ## 1.0.0 - 22 Feb 2020
101 | - Restarted maintenance of this project. Needed to rename because I was unable to contact the original
102 | developer.
103 |
104 | Merge PRs from previous repo:
105 | - Keyboard support for arrow keys
106 | - Added `showOnFocus`. Show results as soon as the input gains focus before the user has typed anything.
107 | - Added `showAllResults`. Show all results even ones that highlighting doesn't match.
108 | - Initialize input field correctly
109 |
110 | ## 0.1.2 - 28 Aug 2018
111 | - Fixed #3 & #4
112 |
113 | ## 0.2.0 - 6 Sept 2018
114 | - Added a scoped slot for custom suggestion list items
115 | - Added library build + unpkg tags
116 | - Updated documentation site (working on gh-pages)
117 | - Added basic unit tests
118 |
119 | ## 0.2.1 - 7 Sept 2018
120 | - Fixed positioning bug for the typeahead list when the prepend slot was used
121 |
122 | ## 0.2.2 - 7 Sept 2018
123 | - Forgot to update the `dist/` folder with new build from last release.
124 | - Added updated documentation. `docs` folder now to be published to gh-pages
125 | - Updated readme
126 | - Added `.npmignore`
127 |
128 | ## 0.2.3 - 21 Sept 2018
129 | - Fixed Safari bug (issue #14)
130 | - Fixed error when `v-model` is not used on component (issue #18)
131 |
132 | ## 0.2.4 - 21 Sept 2018
133 | - Re-fixed error when `v-model` is not used on component (issue #18)
134 |
135 | ## 0.2.5 - 21 Sept 2018
136 | - Re-fixed error when `v-model` is not used on component (issue #18)
137 | - More comprehensive unit testing is now a priority, edge cases are harder to find than I thought :joy:
138 |
139 | ## 0.2.6 - 30 Sept 2018
140 | - Fixed `maxMatches` bug. Thanks to @jimfisher
141 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | In the interest of fostering an open and welcoming environment, we as
6 | contributors and maintainers pledge to making participation in our project and
7 | our community a harassment-free experience for everyone, regardless of age, body
8 | size, disability, ethnicity, sex characteristics, gender identity and expression,
9 | level of experience, education, socio-economic status, nationality, personal
10 | appearance, race, religion, or sexual identity and orientation.
11 |
12 | ## Our Standards
13 |
14 | Examples of behavior that contributes to creating a positive environment
15 | include:
16 |
17 | * Using welcoming and inclusive language
18 | * Being respectful of differing viewpoints and experiences
19 | * Gracefully accepting constructive criticism
20 | * Focusing on what is best for the community
21 | * Showing empathy towards other community members
22 |
23 | Examples of unacceptable behavior by participants include:
24 |
25 | * The use of sexualized language or imagery and unwelcome sexual attention or
26 | advances
27 | * Trolling, insulting/derogatory comments, and personal or political attacks
28 | * Public or private harassment
29 | * Publishing others' private information, such as a physical or electronic
30 | address, without explicit permission
31 | * Other conduct which could reasonably be considered inappropriate in a
32 | professional setting
33 |
34 | ## Our Responsibilities
35 |
36 | Project maintainers are responsible for clarifying the standards of acceptable
37 | behavior and are expected to take appropriate and fair corrective action in
38 | response to any instances of unacceptable behavior.
39 |
40 | Project maintainers have the right and responsibility to remove, edit, or
41 | reject comments, commits, code, wiki edits, issues, and other contributions
42 | that are not aligned to this Code of Conduct, or to ban temporarily or
43 | permanently any contributor for other behaviors that they deem inappropriate,
44 | threatening, offensive, or harmful.
45 |
46 | ## Scope
47 |
48 | This Code of Conduct applies both within project spaces and in public spaces
49 | when an individual is representing the project or its community. Examples of
50 | representing a project or community include using an official project e-mail
51 | address, posting via an official social media account, or acting as an appointed
52 | representative at an online or offline event. Representation of a project may be
53 | further defined and clarified by project maintainers.
54 |
55 | ## Enforcement
56 |
57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
58 | reported by contacting the project team at vue.typeahead.bootstrap@gmail.com. All
59 | complaints will be reviewed and investigated and will result in a response that
60 | is deemed necessary and appropriate to the circumstances. The project team is
61 | obligated to maintain confidentiality with regard to the reporter of an incident.
62 | Further details of specific enforcement policies may be posted separately.
63 |
64 | Project maintainers who do not follow or enforce the Code of Conduct in good
65 | faith may face temporary or permanent repercussions as determined by other
66 | members of the project's leadership.
67 |
68 | ## Attribution
69 |
70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72 |
73 | [homepage]: https://www.contributor-covenant.org
74 |
75 | For answers to common questions about this code of conduct, see
76 | https://www.contributor-covenant.org/faq
77 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Alex Urquhart
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # No Longer Maintained, Moved
2 | This version of the project is no longer maintained. Graciously, [@drikusroor](https://github.com/drikusroor) has taken over development and maintenance at [this repository](https://github.com/drikusroor/vue-bootstrap-autocomplete) and it is published on [NPM here](https://www.npmjs.com/package/@vue-bootstrap-components/vue-bootstrap-autocomplete).
3 |
4 | ## Lineage
5 | I want to specifically acknowledge the original repository by Alex Urquhart for this work: https://github.com/alexurquhart/vue-bootstrap-typeahead. He brought this project into reality, we're simply trying to help keep it moving forward. Thanks, Alex!
6 |
--------------------------------------------------------------------------------
/assets/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mattzollinhofer/vue-typeahead-bootstrap/279ff4c37a4a8c3c920dd9d19ec8175594df89ea/assets/screenshot.png
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/app'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/deploy.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | # Build latest docs
4 | yarn docs:build
5 |
6 | # navigate to docs output directory
7 | cd docs/.vuepress/dist
8 |
9 | # create a new blank git repository
10 | git init
11 | git add -A
12 | git commit -m 'deploy'
13 |
14 | # force push to docs repo
15 | git push -f git@github.com:mattzollinhofer/vue-typeahead-bootstrap-docs.git master:gh-pages
16 |
17 | cd -
18 |
--------------------------------------------------------------------------------
/docs/.vuepress/components/APIExample.vue:
--------------------------------------------------------------------------------
1 |
2 |