Skip to content

Commit

Permalink
Add support for queryTransformer function
Browse files Browse the repository at this point in the history
This function can be used to e.g. add RegEx operators to the
query string before it is compared to the data entries.
  • Loading branch information
bakoe committed Aug 19, 2019
1 parent d0bc765 commit f1dddbc
Show file tree
Hide file tree
Showing 25 changed files with 3,128 additions and 3,047 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Name | Type | Default | Description
--- | --- | --- | ---
data | `Array` | | Array of data to be available for querying. **Required**
serializer | `Function` | `input => input` | Function used to convert the entries in the `data` array into a text string.
queryTransformer | `Function` | `input => input` | Function used to transform the query string before comparing it to the data entries. Because the function is executed after sanitizing the query string and escaping RegEx characters, it can be used to inject RegEx operators.
size | `String` | | Size of the `input-group`. Valid values: `sm` or `lg`
backgroundVariant | `String` | | Background color for the autocomplete result `list-group` items. [See valid values](http://getbootstrap.com/docs/4.1/utilities/colors/#background-color)
textVariant | `String` | | Text color for the autocomplete result `list-group` items. [See valid values](http://getbootstrap.com/docs/4.1/utilities/colors/#color)
Expand Down
83 changes: 51 additions & 32 deletions dist/VueBootstrapTypeahead.common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueBootstrapTypeahead.common.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueBootstrapTypeahead.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 51 additions & 32 deletions dist/VueBootstrapTypeahead.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueBootstrapTypeahead.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueBootstrapTypeahead.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueBootstrapTypeahead.umd.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/css/app.9999740f.css → docs/css/app.145bfe29.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/vue-bootstrap-typeahead/favicon.ico><title>vue-bootstrap-typeahead - A simple typeahead using Vue and Bootstrap 4</title><link href=/vue-bootstrap-typeahead/js/examples.f4b323dd.js rel=prefetch><link href=/vue-bootstrap-typeahead/js/reference.6395bf5b.js rel=prefetch><link href=/vue-bootstrap-typeahead/css/app.9999740f.css rel=preload as=style><link href=/vue-bootstrap-typeahead/css/chunk-vendors.d12e13d5.css rel=preload as=style><link href=/vue-bootstrap-typeahead/js/app.15abc5c0.js rel=preload as=script><link href=/vue-bootstrap-typeahead/js/chunk-vendors.0cb2df39.js rel=preload as=script><link href=/vue-bootstrap-typeahead/css/chunk-vendors.d12e13d5.css rel=stylesheet><link href=/vue-bootstrap-typeahead/css/app.9999740f.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-bootstrap-typeahead doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script async defer src=https://buttons.github.io/buttons.js></script><script src=/vue-bootstrap-typeahead/js/chunk-vendors.0cb2df39.js></script><script src=/vue-bootstrap-typeahead/js/app.15abc5c0.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/vue-bootstrap-typeahead/favicon.ico><title>vue-bootstrap-typeahead - A simple typeahead using Vue and Bootstrap 4</title><link href=/vue-bootstrap-typeahead/js/examples.8843bdf9.js rel=prefetch><link href=/vue-bootstrap-typeahead/js/reference.195ab206.js rel=prefetch><link href=/vue-bootstrap-typeahead/css/app.145bfe29.css rel=preload as=style><link href=/vue-bootstrap-typeahead/css/chunk-vendors.d12e13d5.css rel=preload as=style><link href=/vue-bootstrap-typeahead/js/app.6781ce40.js rel=preload as=script><link href=/vue-bootstrap-typeahead/js/chunk-vendors.0cb2df39.js rel=preload as=script><link href=/vue-bootstrap-typeahead/css/chunk-vendors.d12e13d5.css rel=stylesheet><link href=/vue-bootstrap-typeahead/css/app.145bfe29.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-bootstrap-typeahead doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script async defer src=https://buttons.github.io/buttons.js></script><script src=/vue-bootstrap-typeahead/js/chunk-vendors.0cb2df39.js></script><script src=/vue-bootstrap-typeahead/js/app.6781ce40.js></script></body></html>
2 changes: 0 additions & 2 deletions docs/js/app.15abc5c0.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/js/app.15abc5c0.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions docs/js/app.6781ce40.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/js/app.6781ce40.js.map

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f1dddbc

Please sign in to comment.