diff --git a/CHANGELOG.md b/CHANGELOG.md index ae794b2..7e14d59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## [4.0.4](https://github.com/Neovici/paper-autocomplete/compare/v4.0.3...v4.0.4) (2020-01-28) + + +### Bug Fixes + +* show suggestions also when value is null ([#18](https://github.com/Neovici/paper-autocomplete/issues/18)) ([0f37347](https://github.com/Neovici/paper-autocomplete/commit/0f37347)) + +## [4.0.3](https://github.com/Neovici/paper-autocomplete/compare/v4.0.2...v4.0.3) (2019-10-09) + + +### Bug Fixes + +* **ci:** adopt semantic release ([0f9d5d5](https://github.com/Neovici/paper-autocomplete/commit/0f9d5d5)) + # Changelog This component follows *Semantic Versioning* (aka SemVer), visit (http://semver.org/) to learn more about it. diff --git a/README.md b/README.md index b51979b..6b81fdd 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,16 @@ # paper-autocomplete -> Autocomplete component compatible with Polymer 1.x and 2.x +> Autocomplete component compatible with Polymer 3.x [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/ellipticaljs/paper-autocomplete) -[![Sauce Test Status](https://saucelabs.com/browser-matrix/jhuesos.svg)](https://saucelabs.com/u/jhuesos) +[![Build Status](https://github.com/Neovici/paper-autocomplete/workflows/Github%20CI/badge.svg)](https://github.com/Neovici/paper-autocomplete/actions?workflow=Github+CI) -`paper-autocomplete` extends earlier efforts such as this -[https://github.com/rodo1111/paper-input-autocomplete](https://github.com/rodo1111/paper-input-autocomplete) to provide -keyboard support, remote binding and results scrolling. +[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) -# About Polymer 1.x and 2.x Compatibility -From version `3.x.x`, this component work with both Polymer 1.7+ or Polymer 2.0+ Please take a look to the -[MIGRATION.md](./MIGRATION.md) file that contains more information. +`paper-autocomplete` extends earlier efforts such as this +[https://github.com/rodo1111/paper-input-autocomplete](https://github.com/rodo1111/paper-input-autocomplete) to provide +keyboard support, remote binding and results scrolling. # Installation @@ -36,13 +34,13 @@ bower install paper-autocomplete http://ellipticaljs.github.io/paper-autocomplete/ -**Important: The demos only work with browers which are ES2015/ES6 compatible.**. This component is compatible with older +**Important: The demos only work with browers which are ES2015/ES6 compatible.**. This component is compatible with older browsers as well, but the code need to be transpiled to ES5. `polymer build` and `polymer serve` can do that for you. This code from this page is not transpiled. # Want to contribute? -Check out our [Contributing guide](./CONTRIBUTING.md)! +Check out our [Contributing guide](./CONTRIBUTING.md)! # For Developers diff --git a/analysis.json b/analysis.json new file mode 100644 index 0000000..567aafa --- /dev/null +++ b/analysis.json @@ -0,0 +1,3429 @@ +{ + "schema_version": "1.0.0", + "elements": [ + { + "description": "`paper-autocomplete-suggestions`\n\n*From v4.x.x, this component only works with Polymer 3.**\n\n [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/ellipticaljs/paper-autocomplete)\n\n Allows to add autocomplete capabilities to any input field. This is desirable when you have an input field with custom\n logic and you just want to add the feature to help users with the selection. If you want to use it in combination with\n a regular ``, you can use ``.\n\n Example:\n ```\n
\n \n\n \n
\n ```\n\n It is **important to provide both `textProperty` and `valueProperty` when working with a custom search function and\n or custom templates.** They are needed to keep the component accessible and for the events (e.g. onSelect) to keep\n working.\n\n ### About Polymer 1.x and 2.x Compatibility\n From version `3.x.x`, this component work with both Polymer 1.7+ or Polymer 2.0+ Please take a look to the\n [MIGRATION.md](./MIGRATION.md) file that contains more information.\n\n ### Custom search\n This component has the public method `queryFn` that is called in each key stroke and it is responsible to query\n all items in the `source` and returns only those items that matches certain filtering criteria. By default, this\n component search for items that start with the recent query (case insensitive).\n You can override this behavior providing your own query function, as long as these two requirements are fulfill:\n\n - The query function is synchronous.\n - The API is respected and the method always return an Array.\n\n The template use to render each suggestion depends on the structure of each object that this method returns. For the\n default template, each suggestion should follow this object structure:\n\n ```\n {\n text: objText,\n value: objValue\n }\n ```\n\n This function is only used when a local data source is used. When using a `remoteDataSource` user is responsible of\n doing the search and specify suggestions manually.\n\n ### Custom templates\n A template for each suggestion can be provided, but for now, there are limitations in the way you can customize\n the template. Please read the the following sections carefully.\n In order to set your own template, you need to add a `