├── .gitignore ├── .yo-rc.json ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── bower.json ├── demo ├── index-custom-chips-styles.html ├── index-grouped-suggestions.html └── index.html ├── index.html ├── input-autocomplete-behavior.html ├── paper-autocomplete-results.html ├── paper-input-autocomplete-chips.html ├── paper-input-autocomplete.html └── test ├── basic-test.html └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | .idea 3 | -------------------------------------------------------------------------------- /.yo-rc.json: -------------------------------------------------------------------------------- 1 | { 2 | "generator-polymer": { 3 | "ghUser": "patrinhani-ciandt" 4 | } 5 | } -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 5 | 6 | # WebPaperElements Elements 7 | ## Guide for Contributors 8 | 9 | ### Filing Issues 10 | 11 | **If you are filing an issue to request a feature**, please provide a clear description of the feature. It can be helpful to describe answers to the following questions: 12 | 13 | 1. **Who will use the feature?** _“As someone filling out a form…”_ 14 | 2. **When will they use the feature?** _“When I enter an invalid value…”_ 15 | 3. **What is the user’s goal?** _“I want to be visually notified that the value needs to be corrected…”_ 16 | 17 | **If you are filing an issue to report a bug**, please provide: 18 | 19 | 1. **A clear description of the bug and related expectations.** Consider using the following example template for reporting a bug: 20 | 21 | ```markdown 22 | The `x` element causes the page to turn pink when clicked. 23 | 24 | ## Expected outcome 25 | 26 | The page stays the same color. 27 | 28 | ## Actual outcome 29 | 30 | The page turns pink. 31 | 32 | ## Steps to reproduce 33 | 34 | 1. Put a `x` element in the page. 35 | 2. Open the page in a web browser. 36 | 3. Click the `x` element. 37 | ``` 38 | 39 | 2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [https://jsbin.com/cagaye/edit?html,output](https://jsbin.com/cagaye/edit?html,output). 40 | 41 | 3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers. 42 | 43 | ### Submitting Pull Requests 44 | 45 | **Before creating a pull request**, please ensure that an issue exists for the corresponding change in the pull request that you intend to make. **If an issue does not exist, please create one per the guidelines above**. The goal is to discuss the design and necessity of the proposed change with Polymer authors and community before diving into a pull request. 46 | 47 | When submitting pull requests, please provide: 48 | 49 | 1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues in the pull request description using the following syntax: 50 | 51 | ```markdown 52 | (For a single issue) 53 | Fixes #20 54 | 55 | (For multiple issues) 56 | Fixes #32, fixes #40 57 | ``` 58 | 59 | 2. **A succinct description of the design** used to fix any related issues. For example: 60 | 61 | ```markdown 62 | This fixes #20 by removing styles that leaked which would cause the page to turn pink whenever `paper-foo` is clicked. 63 | ``` 64 | 65 | 3. **At least one test for each bug fixed or feature added** as part of the pull request. Pull requests that fix bugs or add features without accompanying tests will not be considered. 66 | 67 | If a proposed change contains multiple commits, please [squash commits](https://www.google.com/url?q=http://blog.steveklabnik.com/posts/2012-11-08-how-to-squash-commits-in-a-github-pull-request) to as few as is necessary to succinctly express the change. 68 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 WebPaperElements 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # paper-input-autocomplete-chips 2 | 3 | An element providing a starting point for your own reusable Polymer elements. 4 | 5 | [DOCS](http://webpaperelements.github.io/paper-input-autocomplete-chips/components/paper-input-autocomplete-chips/) 6 | 7 | [DEMO](http://webpaperelements.github.io/paper-input-autocomplete-chips/components/paper-input-autocomplete-chips/demo/index.html) 8 | 9 | ## Dependencies 10 | 11 | Element dependencies are managed via [Bower](http://bower.io/). You can 12 | install that via: 13 | 14 | npm install -g bower 15 | 16 | Then, go ahead and download the element's dependencies: 17 | 18 | bower install 19 | 20 | 21 | ## Playing With Your Element 22 | 23 | If you wish to work on your element in isolation, we recommend that you use 24 | [Polyserve](https://github.com/PolymerLabs/polyserve) to keep your element's 25 | bower dependencies in line. You can install it via: 26 | 27 | npm install -g polyserve 28 | 29 | And you can run it via: 30 | 31 | polyserve 32 | 33 | Once running, you can preview your element at 34 | `http://localhost:8080/components/paper-input-autocomplete-chips/`, where `paper-input-autocomplete-chips` is the name of the directory containing it. 35 | 36 | 37 | ## Testing Your Element 38 | 39 | Simply navigate to the `/test` directory of your element to run its tests. If 40 | you are using Polyserve: `http://localhost:8080/components/paper-input-autocomplete-chips/test/` 41 | 42 | ### web-component-tester 43 | 44 | The tests are compatible with [web-component-tester](https://github.com/Polymer/web-component-tester). 45 | Install it via: 46 | 47 | npm install -g web-component-tester 48 | 49 | Then, you can run your tests on _all_ of your local browsers via: 50 | 51 | wct 52 | 53 | #### WCT Tips 54 | 55 | `wct -l chrome` will only run tests in chrome. 56 | 57 | `wct -p` will keep the browsers alive after test runs (refresh to re-run). 58 | 59 | `wct test/some-file.html` will test only the files you specify. 60 | 61 | 62 | ## Yeoman support 63 | 64 | If you'd like to use Yeoman to scaffold your element that's possible. The official [`generator-polymer`](https://github.com/yeoman/generator-polymer) generator has a [`seed`](https://github.com/yeoman/generator-polymer#seed) subgenerator. 65 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-input-autocomplete-chips", 3 | "version": "0.30.4", 4 | "authors": [ 5 | "Vinicius Patrinhani " 6 | ], 7 | "description": "Web Component for Input autocomplete chips based on Polymer Paper Elements.", 8 | "keywords": [ 9 | "web-component", 10 | "polymer", 11 | "material", 12 | "autocomplete", 13 | "chips" 14 | ], 15 | "main": "paper-input-autocomplete-chips.html", 16 | "license": "MIT", 17 | "homepage": "https://github.com/WebPaperElements/paper-input-autocomplete-chips", 18 | "ignore": [ 19 | "/.*", 20 | "/test/" 21 | ], 22 | "dependencies": { 23 | "polymer": "Polymer/polymer#^1.4.0", 24 | "paper-menu": "PolymerElements/paper-menu#^1.1.1", 25 | "paper-input": "PolymerElements/paper-input#^1.0.15", 26 | "paper-item": "PolymerElements/paper-item#^1.0.3", 27 | "iron-icons": "PolymerElements/iron-icons#^1.0.4", 28 | "paper-icon-button": "PolymerElements/paper-icon-button#^1.0.6", 29 | "iron-a11y-keys": "PolymerElements/iron-a11y-keys#^1.0.5", 30 | "paper-chip": "WebPaperElements/paper-chip#^1.0.9", 31 | "paper-material": "PolymerElements/paper-material#^1.0.6", 32 | "iron-behaviors": "PolymerElements/iron-behaviors#^1.0.12", 33 | "iron-form-element-behavior": "PolymerElements/iron-form-element-behavior#^1.0.6", 34 | "iron-input": "PolymerElements/iron-input#^1.0.8" 35 | }, 36 | "devDependencies": { 37 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 38 | "web-component-tester": "Polymer/web-component-tester#^5.0.0" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /demo/index-custom-chips-styles.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | paper-input-autocomplete-chips Demo 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 49 | 50 | 51 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /demo/index-grouped-suggestions.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | paper-input-autocomplete-chips Demo 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 52 | 53 | 54 | 157 | 158 | 159 | -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | paper-input-autocomplete-chips Demo 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 53 | 54 | 55 | 381 | 382 | 383 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /input-autocomplete-behavior.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 614 | -------------------------------------------------------------------------------- /paper-autocomplete-results.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 21 | 163 | 164 | -------------------------------------------------------------------------------- /paper-input-autocomplete-chips.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 31 | 32 | 311 | 820 | 821 | -------------------------------------------------------------------------------- /paper-input-autocomplete.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 31 | 54 | 55 | -------------------------------------------------------------------------------- /test/basic-test.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 27 | 28 | --------------------------------------------------------------------------------