├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── bower.json ├── countries.json ├── demo └── index.html ├── fakeRemote.json ├── gpages.sh ├── index.html ├── paper-typeahead-input.html ├── statesInObjects.json ├── test ├── index.html ├── paper-typeahead-input.html └── typeahead-feature.html └── wct.conf.json /.gitignore: -------------------------------------------------------------------------------- 1 | bower_components/ 2 | coverage/ 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: required 3 | dist: trusty 4 | node_js: stable 5 | before_install: 6 | - export CHROME_BIN=/usr/bin/google-chrome 7 | - sudo apt-get update 8 | - sudo apt-get install -y libappindicator1 fonts-liberation 9 | - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 10 | - sudo dpkg -i google-chrome*.deb 11 | - rm google-chrome-stable_current_amd64.deb 12 | - "npm install -g bower" 13 | - "bower install" 14 | - "npm i -g web-component-tester@4.3.1 istanbul https://github.com/t2ym/web-component-tester-istanbul/tarball/0.10.1" 15 | - "npm install coveralls" 16 | - "export DISPLAY=:99.0" 17 | - "sh -e /etc/init.d/xvfb start" 18 | script: 19 | - wct 20 | after_script: 21 | - "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" 22 | deploy: 23 | provider: script 24 | script: "bash ./gpages.sh cheonhyangzhang paper-typeahead-input" 25 | on: 26 | branch: release 27 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to paper-typeahead-input 2 | 3 | Want to contribute to paper-typeahead-input... that's awesome! I really appreciate the help in making this project better. Here you will find everything you need to know in order to solve problems, report bugs, request features and implement your contribution and send it as a pull request. 4 | 5 | ## Reporting a bug 6 | 7 | If you find a bug in the code or an error in the documentation and want to report it, check whether it's already been reported by searching the issue tracker. In case it hasn't yet, create a new issue and describe the problem you've found. Please be sure to include the following information along with your message: 8 | 9 | - Version of paper-typeahead-input you are using. 10 | - Version of Polymer you are using. 11 | 12 | ## Setting up your environment 13 | 14 | Here's what you need to do before start working on the code: 15 | 16 | 1. Fork the repository 17 | 2. Clone your repository 18 | 19 | git clone https://github.com//paper-typeahead-input 20 | 21 | 5. Go to the paper-typeahead-input directory 22 | 23 | cd paper-typeahead-input 24 | 25 | 6. Add the main paper-typeahead-input repo as an upstream remote 26 | 27 | git remote add upstream https://github.com/cheonhyangzhang/paper-typeahead-input 28 | 29 | 7. Install all the bower packages 30 | 31 | bower install 32 | 33 | 8. Run local server 34 | 35 | polyserve -p 36 | 37 | ## Pull Request guidelines 38 | 39 | Before submitting your pull request, consider the following: 40 | 41 | - Make your changes in a new branch (this will help you rebase your code if/when needed). Make sure you checkout this branch based on latest master branch. 42 | 43 | git checkout -b my-feature-branch 44 | 45 | **Important**: 46 | Each feature/bugfix should reside in its own branch, and each branch should be based on the master branch. Avoid implementing a new feature/bugfix on top of another one because that makes code reviews harder and prevents pull requests from being selectively merged. 47 | 48 | You may need to rebase your branch on top of the latest version of the master branch. To do so is simple: 49 | 50 | 1. Switch to `master` branch 51 | 52 | git checkout master 53 | 54 | 2. Pull the latest changes from the server 55 | 56 | git pull upstream master 57 | 58 | **Note:** That command should **always** result in a fast-forward merge. 59 | 60 | 3. Switch back to your feature branch 61 | 62 | git checkout my-feature-branch 63 | 64 | 4. Rebase it on top of the master branch (there might be conflicts you'll need to resolve) 65 | 66 | git rebase master -i 67 | 68 | 5. Push the changes into your remote repository 69 | 70 | git push 71 | 72 | 6. In GitHub, send a pull request to `paper-typeahead-input:master` 73 | 74 | That's it! Thank you for contributing! 75 | 76 | In case you need to do changes after creating a pull request, repeat steps 1 though 4 and force a push into your remote repository 77 | 78 | git push --force 79 | 80 | That will update your pull request. You might want to update the PR page explaining the changes you have done. 81 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 Tianxiang Zhang 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # paper-typeahead-input 2 | 3 | [![Travis](https://img.shields.io/travis/cheonhyangzhang/paper-typeahead-input.svg?style=flat)](https://travis-ci.org/cheonhyangzhang/paper-typeahead-input) 4 | 5 | [![Coverage Status](https://coveralls.io/repos/github/cheonhyangzhang/paper-typeahead-input/badge.svg?branch=master)](https://coveralls.io/github/cheonhyangzhang/paper-typeahead-input?branch=master) 6 | 7 | An element providing a starting point for your own reusable Polymer elements. 8 | 9 | ## Demo 10 | 11 | 12 | [Documentation and Demo](http://cheonhyangzhang.github.io/paper-typeahead-input/components/paper-typeahead-input/) 13 | 14 | ## Installation 15 | 16 | bower install paper-typeahead-input 17 | 18 | ## Dependencies 19 | 20 | Element dependencies are managed via [Bower](http://bower.io/). You can 21 | install that via: 22 | 23 | npm install -g bower 24 | 25 | Then, go ahead and download the element's dependencies: 26 | 27 | bower install 28 | 29 | 30 | ## Playing With Your Element 31 | 32 | If you wish to work on your element in isolation, we recommend that you use 33 | [Polyserve](https://github.com/PolymerLabs/polyserve) to keep your element's 34 | bower dependencies in line. You can install it via: 35 | 36 | npm install -g polyserve 37 | 38 | And you can run it via: 39 | 40 | polyserve 41 | 42 | Once running, you can preview your element at 43 | `http://localhost:8080/components/paper-typeahead-input/`, where `paper-typeahead-input` is the name of the directory containing it. 44 | 45 | ## Want to contribute? 46 | Please read the [CONTRIBUTING.md](https://github.com/cheonhyangzhang/paper-typeahead-input/blob/master/CONTRIBUTING.md) before making your changes. 47 | 48 | ## Testing Your Element 49 | 50 | Simply navigate to the `/test` directory of your element to run its tests. If 51 | you are using Polyserve: `http://localhost:8080/components/paper-typeahead-input/test/` 52 | 53 | ### web-component-tester 54 | 55 | The tests are compatible with [web-component-tester](https://github.com/Polymer/web-component-tester). 56 | Install it via: 57 | 58 | npm install -g web-component-tester 59 | 60 | Then, you can run your tests on _all_ of your local browsers via: 61 | 62 | wct 63 | 64 | #### WCT Tips 65 | 66 | `wct -l chrome` will only run tests in chrome. 67 | 68 | `wct -p` will keep the browsers alive after test runs (refresh to re-run). 69 | 70 | `wct test/some-file.html` will test only the files you specify. 71 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-typeahead-input", 3 | "version": "1.3.12", 4 | "authors": [ 5 | "Tianxiang Zhang " 6 | ], 7 | "description": "paper-typeahead-input is an element providing typeahead feature for input.", 8 | "keywords": [ 9 | "web-component", 10 | "web-components", 11 | "polymer", 12 | "seed" 13 | ], 14 | "main": "paper-typeahead-input.html", 15 | "license": "http://polymer.github.io/LICENSE.txt", 16 | "homepage": "https://github.com/cheonhyangzhang/paper-typeahead-input/", 17 | "ignore": [ 18 | "/.*", 19 | "/test/", 20 | "/demo/" 21 | ], 22 | "dependencies": { 23 | "iron-test-helpers": "~1.2.5", 24 | "paper-input": "PolymerElements/paper-input#^1.0.5", 25 | "paper-item": "PolymerElements/paper-item#^1.0.1", 26 | "paper-material": "PolymerElements/paper-material#^1.0.7", 27 | "paper-menu": "PolymerElements/paper-menu#^1.0.0", 28 | "polymer": "Polymer/polymer#^1.0.0" 29 | }, 30 | "devDependencies": { 31 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 32 | "web-component-tester": "*" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /countries.json: -------------------------------------------------------------------------------- 1 | [ 2 | "United States", 3 | "Canada", 4 | "Afghanistan", 5 | "Albania", 6 | "Algeria", 7 | "American Samoa", 8 | "Andorra", 9 | "Angola", 10 | "Anguilla", 11 | "Antarctica", 12 | "Antigua and/or Barbuda", 13 | "Argentina", 14 | "Armenia", 15 | "Aruba", 16 | "Australia", 17 | "Austria", 18 | "Azerbaijan", 19 | "Bahamas", 20 | "Bahrain", 21 | "Bangladesh", 22 | "Barbados", 23 | "Belarus", 24 | "Belgium", 25 | "Belize", 26 | "Benin", 27 | "Bermuda", 28 | "Bhutan", 29 | "Bolivia", 30 | "Bosnia and Herzegovina", 31 | "Botswana", 32 | "Bouvet Island", 33 | "Brazil", 34 | "British lndian Ocean Territory", 35 | "Brunei Darussalam", 36 | "Bulgaria", 37 | "Burkina Faso", 38 | "Burundi", 39 | "Cambodia", 40 | "Cameroon", 41 | "Cape Verde", 42 | "Cayman Islands", 43 | "Central African Republic", 44 | "Chad", 45 | "Chile", 46 | "China", 47 | "Christmas Island", 48 | "Cocos (Keeling) Islands", 49 | "Colombia", 50 | "Comoros", 51 | "Congo", 52 | "Cook Islands", 53 | "Costa Rica", 54 | "Croatia (Hrvatska)", 55 | "Cuba", 56 | "Cyprus", 57 | "Czech Republic", 58 | "Denmark", 59 | "Djibouti", 60 | "Dominica", 61 | "Dominican Republic", 62 | "East Timor", 63 | "Ecudaor", 64 | "Egypt", 65 | "El Salvador", 66 | "Equatorial Guinea", 67 | "Eritrea", 68 | "Estonia", 69 | "Ethiopia", 70 | "Falkland Islands (Malvinas)", 71 | "Faroe Islands", 72 | "Fiji", 73 | "Finland", 74 | "France", 75 | "France, Metropolitan", 76 | "French Guiana", 77 | "French Polynesia", 78 | "French Southern Territories", 79 | "Gabon", 80 | "Gambia", 81 | "Georgia", 82 | "Germany", 83 | "Ghana", 84 | "Gibraltar", 85 | "Greece", 86 | "Greenland", 87 | "Grenada", 88 | "Guadeloupe", 89 | "Guam", 90 | "Guatemala", 91 | "Guinea", 92 | "Guinea-Bissau", 93 | "Guyana", 94 | "Haiti", 95 | "Heard and Mc Donald Islands", 96 | "Honduras", 97 | "Hong Kong", 98 | "Hungary", 99 | "Iceland", 100 | "India", 101 | "Indonesia", 102 | "Iran (Islamic Republic of)", 103 | "Iraq", 104 | "Ireland", 105 | "Israel", 106 | "Italy", 107 | "Ivory Coast", 108 | "Jamaica", 109 | "Japan", 110 | "Jordan", 111 | "Kazakhstan", 112 | "Kenya", 113 | "Kiribati", 114 | "Korea, Democratic People's Republic of", 115 | "Korea, Republic of", 116 | "Kuwait", 117 | "Kyrgyzstan", 118 | "Lao People's Democratic Republic", 119 | "Latvia", 120 | "Lebanon", 121 | "Lesotho", 122 | "Liberia", 123 | "Libyan Arab Jamahiriya", 124 | "Liechtenstein", 125 | "Lithuania", 126 | "Luxembourg", 127 | "Macau", 128 | "Macedonia", 129 | "Madagascar", 130 | "Malawi", 131 | "Malaysia", 132 | "Maldives", 133 | "Mali", 134 | "Malta", 135 | "Marshall Islands", 136 | "Martinique", 137 | "Mauritania", 138 | "Mauritius", 139 | "Mayotte", 140 | "Mexico", 141 | "Micronesia, Federated States of", 142 | "Moldova, Republic of", 143 | "Monaco", 144 | "Mongolia", 145 | "Montserrat", 146 | "Morocco", 147 | "Mozambique", 148 | "Myanmar", 149 | "Namibia", 150 | "Nauru", 151 | "Nepal", 152 | "Netherlands", 153 | "Netherlands Antilles", 154 | "New Caledonia", 155 | "New Zealand", 156 | "Nicaragua", 157 | "Niger", 158 | "Nigeria", 159 | "Niue", 160 | "Norfork Island", 161 | "Northern Mariana Islands", 162 | "Norway", 163 | "Oman", 164 | "Pakistan", 165 | "Palau", 166 | "Panama", 167 | "Papua New Guinea", 168 | "Paraguay", 169 | "Peru", 170 | "Philippines", 171 | "Pitcairn", 172 | "Poland", 173 | "Portugal", 174 | "Puerto Rico", 175 | "Qatar", 176 | "Reunion", 177 | "Romania", 178 | "Russian Federation", 179 | "Rwanda", 180 | "Saint Kitts and Nevis", 181 | "Saint Lucia", 182 | "Saint Vincent and the Grenadines", 183 | "Samoa", 184 | "San Marino", 185 | "Sao Tome and Principe", 186 | "Saudi Arabia", 187 | "Senegal", 188 | "Seychelles", 189 | "Sierra Leone", 190 | "Singapore", 191 | "Slovakia", 192 | "Slovenia", 193 | "Solomon Islands", 194 | "Somalia", 195 | "South Africa", 196 | "South Georgia South Sandwich Islands", 197 | "Spain", 198 | "Sri Lanka", 199 | "St. Helena", 200 | "St. Pierre and Miquelon", 201 | "Sudan", 202 | "Suriname", 203 | "Svalbarn and Jan Mayen Islands", 204 | "Swaziland", 205 | "Sweden", 206 | "Switzerland", 207 | "Syrian Arab Republic", 208 | "Taiwan", 209 | "Tajikistan", 210 | "Tanzania, United Republic of", 211 | "Thailand", 212 | "Togo", 213 | "Tokelau", 214 | "Tonga", 215 | "Trinidad and Tobago", 216 | "Tunisia", 217 | "Turkey", 218 | "Turkmenistan", 219 | "Turks and Caicos Islands", 220 | "Tuvalu", 221 | "Uganda", 222 | "Ukraine", 223 | "United Arab Emirates", 224 | "United Kingdom", 225 | "United States minor outlying islands", 226 | "Uruguay", 227 | "Uzbekistan", 228 | "Vanuatu", 229 | "Vatican City State", 230 | "Venezuela", 231 | "Vietnam", 232 | "Virigan Islands (British)", 233 | "Virgin Islands (U.S.)", 234 | "Wallis and Futuna Islands", 235 | "Western Sahara", 236 | "Yemen", 237 | "Yugoslavia", 238 | "Zaire", 239 | "Zambia", 240 | "Zimbabwe" 241 | ] 242 | -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | paper-typeahead-input Demo 16 | 17 | 18 | 26 | 27 | 28 | 178 | 179 | 180 | -------------------------------------------------------------------------------- /fakeRemote.json: -------------------------------------------------------------------------------- 1 | [ 2 | "White", 3 | "Gray", 4 | "Pink", 5 | "Red", 6 | "Brown", 7 | "Orange", 8 | "Yellow", 9 | "Green", 10 | "Blue", 11 | "Black" 12 | ] -------------------------------------------------------------------------------- /gpages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # 3 | # @license 4 | # Copyright (c) 2014 The Polymer Project Authors. All rights reserved. 5 | # This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt 6 | # The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 7 | # The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt 8 | # Code distributed by Google as part of the polymer project is also 9 | # subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt 10 | # 11 | 12 | # This script pushes a demo-friendly version of your element and its 13 | # dependencies to gh-pages. 14 | 15 | # usage gp Polymer core-item [branch] 16 | # Run in a clean directory passing in a GitHub org and repo name 17 | echo 'Deploy gpages' 18 | org=$1 19 | repo=$2 20 | name="Tianxiang Zhang" 21 | email="cenhiangapply@gmail.com" 22 | branch=${3:-"release"} # default to release when branch isn't specified 23 | 24 | rm -rf temp 25 | mkdir temp && cd temp 26 | mkdir $repo 27 | git clone "https://${org}:${GH_TOKEN}@github.com/${org}/${repo}" --single-branch 28 | 29 | # switch to gh-pages branch 30 | pushd $repo >/dev/null 31 | git checkout --orphan gh-pages 32 | 33 | # remove all content 34 | echo 'Remove all content' 35 | git rm -rf -q . 36 | 37 | # use bower to install runtime deployment 38 | bower cache clean $repo # ensure we're getting the latest from the desired branch. 39 | git show ${branch}:bower.json > bower.json 40 | echo "{ 41 | \"directory\": \"components\" 42 | } 43 | " > .bowerrc 44 | bower install 45 | bower install $org/$repo#$branch 46 | git checkout ${branch} -- demo 47 | rm -rf components/$repo/demo 48 | mv demo components/$repo/ 49 | 50 | # redirect by default to the component folder 51 | echo "" >index.html 52 | 53 | git config user.name $name 54 | git config user.email $email 55 | # send it all to github 56 | git add -A . 57 | git commit -am 'Deploy to Github Pages' 58 | git push --force --quiet -u "https://${org}:${GH_TOKEN}@github.com/${org}/${repo}" gh-pages > /dev/null 2>&1 59 | 60 | popd >/dev/null 61 | rm -rf temp 62 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /paper-typeahead-input.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 41 | 42 | 43 | 79 | 80 | 131 | 132 | 133 | 134 | 659 | -------------------------------------------------------------------------------- /statesInObjects.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name":"Alabama", 4 | "nickname":"Cotton Plantation State Cotton State Heart of Dixie (used on license plates) Lizard State Yellowhammer State", 5 | "flag":"5/5c/Flag_of_Alabama.svg/45px-Flag_of_Alabama.svg.png" 6 | }, 7 | { 8 | "name":"Alaska", 9 | "nickname":"Land of the Midnight Sun Land of the Noonday Moon The Last Frontier Seward's Folly", 10 | "flag":"e/e6/Flag_of_Alaska.svg/43px-Flag_of_Alaska.svg.png" 11 | }, 12 | { 13 | "name":"Arizona", 14 | "nickname":"Apache State Aztec State Baby State Copper State Grand Canyon State Italy of America Sand Hill State Sunset State Sweetheart State Valentine State", 15 | "flag":"9/9d/Flag_of_Arizona.svg/45px-Flag_of_Arizona.svg.png" 16 | }, 17 | { 18 | "name":"Arkansas", 19 | "nickname":"Bear State Bowie State Hot Springs State Land of Opportunity The Natural State Razorback State Toothpick State Wonder State", 20 | "flag":"9/9d/Flag_of_Arkansas.svg/45px-Flag_of_Arkansas.svg.png" 21 | }, 22 | { 23 | "name":"California", 24 | "nickname":"Sunny State El Dorado State The Golden State", 25 | "flag":"0/01/Flag_of_California.svg/45px-Flag_of_California.svg.png" 26 | }, 27 | { 28 | "name":"Colorado", 29 | "nickname":"Buffalo Plains State Centennial State Colorful Colorado Columbine State Highest State Lead State Mother of Rivers Rocky Mountain Empire Rocky Mountain State Silver State Ski Country USA Switzerland of America", 30 | "flag":"4/46/Flag_of_Colorado.svg/45px-Flag_of_Colorado.svg.png" 31 | }, 32 | { 33 | "name":"Connecticut", 34 | "nickname":"Constitution State Nutmeg State Blue Law State Provisions State Freestone State Land of Steady Habits", 35 | "flag":"9/96/Flag_of_Connecticut.svg/39px-Flag_of_Connecticut.svg.png" 36 | }, 37 | { 38 | "name":"Delaware", 39 | "nickname":"Chemical Capital of the World Corporate Capital Diamond State The First State Peach State Small Wonder", 40 | "flag":"c/c6/Flag_of_Delaware.svg/45px-Flag_of_Delaware.svg.png" 41 | }, 42 | { 43 | "name":"Florida", 44 | "nickname":"Alligator State Everglade State Flower State Gulf State La Florida Orange State Peninsula State or Peninsular State Sunshine State", 45 | "flag":"f/f7/Flag_of_Florida.svg/45px-Flag_of_Florida.svg.png" 46 | }, 47 | { 48 | "name":"Georgia", 49 | "nickname":"Peach State Cracker State Empire State of the South Yankee-land of the South Goober State State of Adventure", 50 | "flag":"5/54/Flag_of_Georgia_%28U.S._state%29.svg/46px-Flag_of_Georgia_%28U.S._state%29.svg.png" 51 | }, 52 | { 53 | "name":"Hawaii", 54 | "nickname":"Aloha State Paradise The Islands of Aloha Paradise of the Pacific Pineapple State Rainbow State Youngest State 808 State", 55 | "flag":"e/ef/Flag_of_Hawaii.svg/46px-Flag_of_Hawaii.svg.png" 56 | }, 57 | { 58 | "name":"Idaho", 59 | "nickname":"Gem State Gem of the Mountains Little Ida Spud State Potatonia Little Ida", 60 | "flag":"a/a4/Flag_of_Idaho.svg/38px-Flag_of_Idaho.svg.png" 61 | }, 62 | { 63 | "name":"Illinois", 64 | "nickname":"Land of Lincoln Prairie State Corn State Inland Empire State Garden of the Wes", 65 | "flag":"0/01/Flag_of_Illinois.svg/46px-Flag_of_Illinois.svg.png" 66 | }, 67 | { 68 | "name":"Indiana", 69 | "nickname":"Hoosier State", 70 | "flag":"a/ac/Flag_of_Indiana.svg/45px-Flag_of_Indiana.svg.png" 71 | }, 72 | { 73 | "name":"Iowa", 74 | "nickname":"Hawkeye State Land of the Rolling Prairie Tall Corn State", 75 | "flag":"a/aa/Flag_of_Iowa.svg/44px-Flag_of_Iowa.svg.png"}, 76 | { 77 | "name":"Kansas", 78 | "nickname":"America's Bread Basket Wheat State Home of Beautiful Women Central State Sunflower State", 79 | "flag":"d/da/Flag_of_Kansas.svg/46px-Flag_of_Kansas.svg.png" 80 | }, 81 | { 82 | "name":"Kentucky", 83 | "nickname":"Bluegrass State Corn-cracker State The Dark and Bloody Ground State Hemp State Tobacco State", 84 | "flag":"8/8d/Flag_of_Kentucky.svg/46px-Flag_of_Kentucky.svg.png" 85 | }, 86 | { 87 | "name":"Louisiana", 88 | "nickname":"Bayou State Child of the Mississippi Creole State Fisherman's Paradise Holland of America Pelican State Sportsman's Paradise Sugar State", 89 | "flag":"e/e0/Flag_of_Louisiana.svg/46px-Flag_of_Louisiana.svg.png" 90 | }, 91 | { 92 | "name":"Maine", 93 | "nickname":"Vacationland Pine Tree State Lumber State", 94 | "flag":"3/35/Flag_of_Maine.svg/45px-Flag_of_Maine.svg.png" 95 | }, 96 | { 97 | "name":"Maryland", 98 | "nickname":"America in Miniature Chesapeake State Cockade State Crab State Free State Monumental State Old Line State Oyster State Queen State Terrapin State", 99 | "flag":"a/a0/Flag_of_Maryland.svg/45px-Flag_of_Maryland.svg.png" 100 | }, 101 | { 102 | "name":"Massachusetts", 103 | "nickname":"Baked Bean State Codfish State The Bay State The Commonwealth Old Colony State Pilgrim State The Spirit of America The People's Republic of Massachusetts Taxachusetts", 104 | "flag":"f/f2/Flag_of_Massachusetts.svg/46px-Flag_of_Massachusetts.svg.png" 105 | }, 106 | { 107 | "name":"Michigan", 108 | "nickname":"The Great Lakes State Winter Water Wonderland the Wolverine State The World's Motor Capital Mitten State America's High Five", 109 | "flag":"b/b5/Flag_of_Michigan.svg/45px-Flag_of_Michigan.svg.png" 110 | }, 111 | { 112 | "name":"Minnesota", 113 | "nickname":"Butter Country Gopher State Land of 10,000 Lakes Land of Lakes Land of Sky-Blue Waters New England of the West North Star State State of Hockey Vikings State Bread and Butter State", 114 | "flag":"b/b9/Flag_of_Minnesota.svg/46px-Flag_of_Minnesota.svg.png" 115 | }, 116 | { 117 | "name":"Mississippi", 118 | "nickname":"Hospitality State Magnolia State The South's Warmest Welcome The Birthplace of America's Music The Bayou State", 119 | "flag":"4/42/Flag_of_Mississippi.svg/45px-Flag_of_Mississippi.svg.png" 120 | }, 121 | { 122 | "name":"Missouri", 123 | "nickname":"Bullion State Cave State Gateway State Bellwether State Lead State The Great Rivers State The State of Misery Ozark State The Puke State Show-Me State", 124 | "flag":"5/5a/Flag_of_Missouri.svg/46px-Flag_of_Missouri.svg.png" 125 | }, 126 | { 127 | "name":"Montana", 128 | "nickname":"Bullion State Cave State Gateway State Bellwether State Lead State The Great Rivers State The State of Misery Ozark State The Puke State Show-Me State", 129 | "flag":"c/cb/Flag_of_Montana.svg/45px-Flag_of_Montana.svg.png" 130 | }, 131 | { 132 | "name":"Nebraska", 133 | "nickname":"Beef State Cornhusker State Tree Planter's State Blackwater State The Good Life", 134 | "flag":"4/4d/Flag_of_Nebraska.svg/46px-Flag_of_Nebraska.svg.png" 135 | }, 136 | { 137 | "name":"Nevada", 138 | "nickname":"Battle Born State Sagebrush State Silver State ", 139 | "flag":"f/f1/Flag_of_Nevada.svg/45px-Flag_of_Nevada.svg.png" 140 | }, 141 | { 142 | "name":"New Hampshire", 143 | "nickname":"Granite State Mother of Rivers White Mountain State", 144 | "flag":"2/28/Flag_of_New_Hampshire.svg/45px-Flag_of_New_Hampshire.svg.png" 145 | }, 146 | { 147 | "name":"New Jersey", 148 | "nickname":"Garden State The Crossroads of the Revolution The Tomato State The Armpit of America", 149 | "flag":"9/92/Flag_of_New_Jersey.svg/45px-Flag_of_New_Jersey.svg.png" 150 | }, 151 | { 152 | "name":"New Mexico", 153 | "nickname":"Cactus State The Colorful State Land of Enchantment Land of Sunshine New Andalusia The Outer Space State The Spanish State", 154 | "flag":"c/c3/Flag_of_New_Mexico.svg/45px-Flag_of_New_Mexico.svg.png" 155 | }, 156 | { 157 | "name":"New York", 158 | "nickname":"Empire State Excelsior State", 159 | "flag":"1/1a/Flag_of_New_York.svg/46px-Flag_of_New_York.svg.png" 160 | }, 161 | { 162 | "name":"North Carolina", 163 | "nickname":"Old North State Tar Heel State Turpentine State Variety Vacationland Rip Van Winkle State Land of the Sky First in Flight State", 164 | "flag":"b/bb/Flag_of_North_Carolina.svg/45px-Flag_of_North_Carolina.svg.png" 165 | }, 166 | { 167 | "name":"North Dakota", 168 | "nickname":"Flickertail State Peace Garden State Rough Rider State Sioux State", 169 | "flag":"e/ee/Flag_of_North_Dakota.svg/38px-Flag_of_North_Dakota.svg.png" 170 | }, 171 | { 172 | "name":"Ohio", 173 | "nickname":"Buckeye State Birthplace of Aviation Mother of Modern Presidents The Heart Of It All", 174 | "flag":"4/4c/Flag_of_Ohio.svg/46px-Flag_of_Ohio.svg.png" 175 | }, 176 | { 177 | "name":"Oklahoma", 178 | "nickname":"Native America Land of the Red Man Sooner State", 179 | "flag":"6/6e/Flag_of_Oklahoma.svg/45px-Flag_of_Oklahoma.svg.png" 180 | }, 181 | { 182 | "name":"Oregon", 183 | "nickname":"Beaver State Union State Pacific Wonderland Sunset State Webfoot State", 184 | "flag":"b/b9/Flag_of_Oregon.svg/46px-Flag_of_Oregon.svg.png" 185 | }, 186 | { 187 | "name":"Pennsylvania", 188 | "nickname":"Liberty Bell State Independence State Keystone State Quaker State Toll Booth State", 189 | "flag":"f/f7/Flag_of_Pennsylvania.svg/45px-Flag_of_Pennsylvania.svg.png" 190 | }, 191 | { 192 | "name":"Rhode Island", 193 | "nickname":"Little Rhody Ocean State", 194 | "flag":"f/f3/Flag_of_Rhode_Island.svg/32px-Flag_of_Rhode_Island.svg.png" 195 | }, 196 | { 197 | "name":"South Carolina", 198 | "nickname":"Palmetto State Sandlapper State Iodine Products State", 199 | "flag":"6/69/Flag_of_South_Carolina.svg/45px-Flag_of_South_Carolina.svg.png" 200 | }, 201 | { 202 | "name":"South Dakota", 203 | "nickname":"Artesian State Blizzard State Coyote State Land of Infinite Variety The Mount Rushmore State Sunshine State", 204 | "flag":"1/1a/Flag_of_South_Dakota.svg/46px-Flag_of_South_Dakota.svg.png" 205 | }, 206 | { 207 | "name":"Tennessee", 208 | "nickname":"Big Bend State Butternut State Hog and Hominy State The Mother of Southwestern Statesmen Volunteer State", 209 | "flag":"9/9e/Flag_of_Tennessee.svg/46px-Flag_of_Tennessee.svg.png" 210 | }, 211 | { 212 | "name":"Texas", 213 | "nickname":"Friendship State Lone Star State Chili State", 214 | "flag":"f/f7/Flag_of_Texas.svg/45px-Flag_of_Texas.svg.png" 215 | }, 216 | { 217 | "name":"Utah", 218 | "nickname":"Beehive State Mormon State Friendly State ", 219 | "flag":"f/f6/Flag_of_Utah.svg/45px-Flag_of_Utah.svg.png" 220 | }, 221 | { 222 | "name":"Vermont", 223 | "nickname":"Green Mountain State", 224 | "flag":"4/49/Flag_of_Vermont.svg/46px-Flag_of_Vermont.svg.png" 225 | }, 226 | { 227 | "name":"Virginia", 228 | "nickname":"Mother of Presidents Mother of States The Old Dominion The Commonwealth", 229 | "flag":"4/47/Flag_of_Virginia.svg/44px-Flag_of_Virginia.svg.png" 230 | }, 231 | { 232 | "name":"Washington", 233 | "nickname":"Evergreen State Apple State", 234 | "flag":"5/54/Flag_of_Washington.svg/46px-Flag_of_Washington.svg.png" 235 | }, 236 | { 237 | "name":"West Virginia", 238 | "nickname":"Mountain State Almost Heaven Panhandle State", 239 | "flag":"2/22/Flag_of_West_Virginia.svg/46px-Flag_of_West_Virginia.svg.png" 240 | }, 241 | { 242 | "name":"Wisconsin", 243 | "nickname":"Cheese State Badger State America's Dairyland The Copper State", 244 | "flag":"2/22/Flag_of_Wisconsin.svg/45px-Flag_of_Wisconsin.svg.png" 245 | }, 246 | { 247 | "name":"Wyoming", 248 | "nickname":"Cowboy State Equality State Park State Like No Place On Earth Forever West", 249 | "flag":"b/bc/Flag_of_Wyoming.svg/43px-Flag_of_Wyoming.svg.png" 250 | } 251 | ] 252 | -------------------------------------------------------------------------------- /test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 30 | 31 | ]); 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /test/paper-typeahead-input.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 30 | 31 | 32 | 35 | 36 | 37 | 40 | 41 | 42 | 43 | 46 | 47 | 48 | 49 | 52 | 53 | 54 | 274 | 275 | 276 | 277 | -------------------------------------------------------------------------------- /test/typeahead-feature.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 29 | 30 | 31 | 34 | 35 | 36 | 39 | 40 | 41 | 171 | 172 | 173 | 174 | -------------------------------------------------------------------------------- /wct.conf.json: -------------------------------------------------------------------------------- 1 | { 2 | "suites": [ 3 | "test/index.html" 4 | ], 5 | "verbose": true, 6 | "plugins": { 7 | "istanbul": { 8 | "dir": "./coverage", 9 | "reporters": ["text-summary", "lcov"], 10 | "include": [ 11 | "/paper-typeahead-input.html" 12 | ], 13 | "exclude": [] 14 | }, 15 | "local": { 16 | "browsers": ["chrome", "firefox"] 17 | } 18 | } 19 | } 20 | --------------------------------------------------------------------------------