├── .gitignore ├── LICENSE ├── README.md ├── best-of-web-2017-elm-polymer ├── Counter.elm ├── counter.js └── index.html ├── bower.json ├── bower_components ├── font-roboto │ ├── .bower.json │ ├── README.md │ ├── bower.json │ └── roboto.html ├── iron-a11y-keys-behavior │ ├── .bower.json │ ├── .github │ │ └── ISSUE_TEMPLATE.md │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── demo │ │ ├── index.html │ │ └── x-key-aware.html │ ├── index.html │ ├── iron-a11y-keys-behavior.html │ └── test │ │ ├── basic-test.html │ │ └── index.html ├── iron-behaviors │ ├── .bower.json │ ├── .github │ │ └── ISSUE_TEMPLATE.md │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── demo │ │ ├── index.html │ │ └── simple-button.html │ ├── index.html │ ├── iron-button-state.html │ ├── iron-control-state.html │ └── test │ │ ├── active-state.html │ │ ├── disabled-state.html │ │ ├── focused-state.html │ │ ├── index.html │ │ └── test-elements.html ├── iron-checked-element-behavior │ ├── .bower.json │ ├── .github │ │ └── ISSUE_TEMPLATE.md │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── demo │ │ ├── index.html │ │ └── simple-checkbox.html │ ├── index.html │ ├── iron-checked-element-behavior.html │ └── test │ │ ├── basic.html │ │ ├── index.html │ │ └── simple-checkbox.html ├── iron-flex-layout │ ├── .bower.json │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── classes │ │ ├── iron-flex-layout.html │ │ └── iron-shadow-flex-layout.html │ ├── demo │ │ └── index.html │ ├── index.html │ ├── iron-flex-layout-classes.html │ ├── iron-flex-layout.html │ └── test │ │ ├── index.html │ │ ├── iron-flex-layout-classes.html │ │ └── iron-flex-layout.html ├── iron-form-element-behavior │ ├── .bower.json │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── demo │ │ ├── index.html │ │ ├── simple-element.html │ │ └── simple-form.html │ ├── index.html │ ├── iron-form-element-behavior.html │ └── test │ │ ├── basic.html │ │ ├── index.html │ │ ├── simple-element.html │ │ └── simple-form.html ├── iron-image │ ├── .bower.json │ ├── .github │ │ └── ISSUE_TEMPLATE.md │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── demo │ │ ├── index.html │ │ ├── loading.png │ │ └── polymer.svg │ ├── index.html │ ├── iron-image.html │ └── test │ │ ├── index.html │ │ └── iron-image.html ├── iron-meta │ ├── .bower.json │ ├── .github │ │ └── ISSUE_TEMPLATE.md │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── demo │ │ └── index.html │ ├── hero.svg │ ├── index.html │ ├── iron-meta.html │ └── test │ │ ├── basic.html │ │ ├── index.html │ │ └── iron-meta.html ├── iron-validatable-behavior │ ├── .bower.json │ ├── .github │ │ └── ISSUE_TEMPLATE.md │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── demo │ │ ├── cats-only.html │ │ ├── index.html │ │ └── validatable-input.html │ ├── index.html │ ├── iron-validatable-behavior.html │ └── test │ │ ├── cats-only.html │ │ ├── dogs-only.html │ │ ├── index.html │ │ ├── iron-validatable-behavior.html │ │ └── test-validatable.html ├── paper-behaviors │ ├── .bower.json │ ├── .github │ │ └── ISSUE_TEMPLATE.md │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── demo │ │ ├── index.html │ │ ├── paper-button.html │ │ └── paper-radio-button.html │ ├── index.html │ ├── paper-button-behavior.html │ ├── paper-checked-element-behavior.html │ ├── paper-inky-focus-behavior.html │ ├── paper-ripple-behavior.html │ └── test │ │ ├── index.html │ │ ├── paper-button-behavior.html │ │ ├── paper-checked-element-behavior.html │ │ ├── paper-radio-button-behavior.html │ │ ├── paper-ripple-behavior.html │ │ ├── shadowed-ripple.html │ │ ├── test-button.html │ │ └── test-radio-button.html ├── paper-button │ ├── .bower.json │ ├── .github │ │ └── ISSUE_TEMPLATE.md │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── demo │ │ └── index.html │ ├── index.html │ ├── paper-button.html │ └── test │ │ ├── index.html │ │ └── paper-button.html ├── paper-card │ ├── .bower.json │ ├── .github │ │ └── ISSUE_TEMPLATE.md │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── demo │ │ ├── cafe.png │ │ ├── donuts.png │ │ ├── house.png │ │ ├── index.html │ │ ├── travel.png │ │ └── trip.png │ ├── index.html │ ├── paper-card.html │ └── test │ │ ├── basic.html │ │ └── index.html ├── paper-material │ ├── .bower.json │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── demo │ │ └── index.html │ ├── index.html │ ├── paper-material-shared-styles.html │ ├── paper-material.html │ └── test │ │ ├── index.html │ │ └── paper-material.html ├── paper-ripple │ ├── .bower.json │ ├── .github │ │ └── ISSUE_TEMPLATE.md │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── demo │ │ └── index.html │ ├── hero.svg │ ├── index.html │ ├── paper-ripple.html │ └── test │ │ ├── index.html │ │ └── paper-ripple.html ├── paper-styles │ ├── .bower.json │ ├── CONTRIBUTING.md │ ├── README.md │ ├── bower.json │ ├── classes │ │ ├── global.html │ │ ├── shadow-layout.html │ │ ├── shadow.html │ │ └── typography.html │ ├── color.html │ ├── default-theme.html │ ├── demo-pages.html │ ├── demo.css │ ├── demo │ │ └── index.html │ ├── index.html │ ├── paper-styles-classes.html │ ├── paper-styles.html │ ├── shadow.html │ └── typography.html ├── polymer │ ├── .bower.json │ ├── LICENSE.txt │ ├── bower.json │ ├── build.log │ ├── polymer-micro.html │ ├── polymer-mini.html │ └── polymer.html └── webcomponentsjs │ ├── .bower.json │ ├── CustomElements.js │ ├── CustomElements.min.js │ ├── HTMLImports.js │ ├── HTMLImports.min.js │ ├── MutationObserver.js │ ├── MutationObserver.min.js │ ├── README.md │ ├── ShadowDOM.js │ ├── ShadowDOM.min.js │ ├── bower.json │ ├── build.log │ ├── package.json │ ├── webcomponents-lite.js │ ├── webcomponents-lite.min.js │ ├── webcomponents.js │ └── webcomponents.min.js ├── build.sh ├── counter-elm-inside-polymer ├── Counter.elm ├── counter.js ├── index.html └── my-elm-counter.html ├── counter-elm-with-paper-components-keyed-nodes ├── Counter.elm ├── card.js └── index.html ├── counter-elm-with-paper-components-not-working ├── Counter.elm ├── card.js └── index.html ├── counter-elm-with-paper-components ├── Counter.elm ├── card.js └── index.html ├── counter-elm ├── Counter.elm ├── counter.js └── index.html ├── counter-everything-on-top ├── Counter.elm ├── counter.js ├── index.html └── my-counter-controls.html ├── counter-polymer-inside-elm ├── Main.elm ├── index.html ├── main.js └── my-counter.html ├── counter-polymer ├── index.html └── my-counter.html ├── elm-package.json ├── index.html └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | elm-stuff 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Kevin Le Brun 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 11 | all 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 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Elm + Polymer = ? 2 | 3 | You can find the accompanying slides 4 | [here](http://slides.com/kevinlebrun/elm-polymer). 5 | 6 | ## Usage 7 | 8 | Install dependencies: 9 | 10 | $ npm install 11 | 12 | You can build all Elm sources using: 13 | 14 | $ ./build.sh 15 | 16 | I usually serve that kind of content with 17 | [Caddy](https://github.com/mholt/caddy): 18 | 19 | $ caddy 20 | 21 | ## License 22 | 23 | The MIT license 24 | -------------------------------------------------------------------------------- /best-of-web-2017-elm-polymer/Counter.elm: -------------------------------------------------------------------------------- 1 | module Counter exposing (..) 2 | 3 | import Html exposing (..) 4 | import Html.Attributes exposing (..) 5 | import Html.Events exposing (..) 6 | 7 | 8 | type alias Model = 9 | Int 10 | 11 | 12 | init : ( Model, Cmd Msg ) 13 | init = 14 | ( 3, Cmd.none ) 15 | 16 | 17 | paperCard = 18 | node "paper-card" 19 | 20 | 21 | paperButton = 22 | node "paper-button" 23 | 24 | 25 | heading = 26 | attribute "heading" 27 | 28 | 29 | cardContent = 30 | div [ class "card-content" ] 31 | 32 | 33 | cardActions = 34 | div [ class "card-actions" ] 35 | 36 | 37 | view : Model -> Html Msg 38 | view model = 39 | div [] 40 | [ paperCard [ heading "Hello World!" ] 41 | [ cardContent [ text (toString model) ] 42 | , cardActions 43 | [ paperButton [ onClick Decrement ] [ text "Decrement" ] 44 | , paperButton [ onClick Increment ] [ text "Increment" ] 45 | ] 46 | ] 47 | ] 48 | 49 | 50 | type Msg 51 | = Increment 52 | | Decrement 53 | 54 | 55 | update : Msg -> Model -> ( Model, Cmd Msg ) 56 | update msg model = 57 | case msg of 58 | Increment -> 59 | ( model + 1, Cmd.none ) 60 | 61 | Decrement -> 62 | ( model - 1, Cmd.none ) 63 | 64 | 65 | main : Program Never Model Msg 66 | main = 67 | program 68 | { init = init 69 | , view = view 70 | , update = update 71 | , subscriptions = \_ -> Sub.none 72 | } 73 | -------------------------------------------------------------------------------- /best-of-web-2017-elm-polymer/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Card Counter 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "elm-polymer", 3 | "description": "Thoughts on how to integrate Polymer with Elm", 4 | "main": "", 5 | "authors": [ 6 | "Kevin LE BRUN " 7 | ], 8 | "license": "MIT", 9 | "homepage": "", 10 | "private": true, 11 | "ignore": [ 12 | "**/.*", 13 | "node_modules", 14 | "bower_components", 15 | "test", 16 | "tests" 17 | ], 18 | "dependencies": { 19 | "paper-button": "PolymerElements/paper-button#^1.0.12", 20 | "paper-card": "PolymerElements/paper-card#^1.1.1", 21 | "polymer": "Polymer/polymer#^1.5.0" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /bower_components/font-roboto/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "font-roboto", 3 | "version": "1.0.1", 4 | "description": "An HTML import for Roboto", 5 | "authors": [ 6 | "The Polymer Authors" 7 | ], 8 | "keywords": [ 9 | "font", 10 | "roboto" 11 | ], 12 | "repository": { 13 | "type": "git", 14 | "url": "git://github.com/PolymerElements/font-roboto.git" 15 | }, 16 | "main": "roboto.html", 17 | "license": "http://polymer.github.io/LICENSE.txt", 18 | "homepage": "https://github.com/PolymerElements/font-roboto/", 19 | "ignore": [ 20 | "/.*" 21 | ], 22 | "_release": "1.0.1", 23 | "_resolution": { 24 | "type": "version", 25 | "tag": "v1.0.1", 26 | "commit": "21ce9b51a417fa9995cf6606e886aba0728f70a1" 27 | }, 28 | "_source": "git://github.com/PolymerElements/font-roboto.git", 29 | "_target": "^1.0.1", 30 | "_originalSource": "PolymerElements/font-roboto" 31 | } -------------------------------------------------------------------------------- /bower_components/font-roboto/README.md: -------------------------------------------------------------------------------- 1 | # font-roboto 2 | -------------------------------------------------------------------------------- /bower_components/font-roboto/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "font-roboto", 3 | "version": "1.0.1", 4 | "description": "An HTML import for Roboto", 5 | "authors": [ 6 | "The Polymer Authors" 7 | ], 8 | "keywords": [ 9 | "font", 10 | "roboto" 11 | ], 12 | "repository": { 13 | "type": "git", 14 | "url": "git://github.com/PolymerElements/font-roboto.git" 15 | }, 16 | "main": "roboto.html", 17 | "license": "http://polymer.github.io/LICENSE.txt", 18 | "homepage": "https://github.com/PolymerElements/font-roboto/", 19 | "ignore": [ 20 | "/.*" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /bower_components/font-roboto/roboto.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /bower_components/iron-a11y-keys-behavior/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-a11y-keys-behavior", 3 | "version": "1.1.9", 4 | "description": "A behavior that enables keybindings for greater a11y.", 5 | "keywords": [ 6 | "web-components", 7 | "web-component", 8 | "polymer", 9 | "a11y", 10 | "input" 11 | ], 12 | "authors": [ 13 | "The Polymer Authors" 14 | ], 15 | "repository": { 16 | "type": "git", 17 | "url": "git://github.com/PolymerElements/iron-a11y-keys-behavior.git" 18 | }, 19 | "main": "iron-a11y-keys-behavior.html", 20 | "license": "http://polymer.github.io/LICENSE.txt", 21 | "dependencies": { 22 | "polymer": "Polymer/polymer#^1.1.0" 23 | }, 24 | "devDependencies": { 25 | "paper-styles": "PolymerElements/paper-styles#^1.0.2", 26 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 27 | "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0", 28 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 29 | "web-component-tester": "^4.0.0", 30 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 31 | }, 32 | "ignore": [], 33 | "homepage": "https://github.com/polymerelements/iron-a11y-keys-behavior", 34 | "_release": "1.1.9", 35 | "_resolution": { 36 | "type": "version", 37 | "tag": "v1.1.9", 38 | "commit": "26243e0f8687b8ea3d95eed3cefb7661a388dbce" 39 | }, 40 | "_source": "git://github.com/polymerelements/iron-a11y-keys-behavior.git", 41 | "_target": "^1.1.5", 42 | "_originalSource": "polymerelements/iron-a11y-keys-behavior" 43 | } -------------------------------------------------------------------------------- /bower_components/iron-a11y-keys-behavior/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | ### Description 3 | 4 | 5 | ### Expected outcome 6 | 7 | 8 | 9 | ### Actual outcome 10 | 11 | 12 | 13 | ### Live Demo 14 | 15 | 16 | ### Steps to reproduce 17 | 18 | 23 | 24 | ### Browsers Affected 25 | 26 | - [ ] Chrome 27 | - [ ] Firefox 28 | - [ ] Safari 9 29 | - [ ] Safari 8 30 | - [ ] Safari 7 31 | - [ ] Edge 32 | - [ ] IE 11 33 | - [ ] IE 10 34 | -------------------------------------------------------------------------------- /bower_components/iron-a11y-keys-behavior/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | -------------------------------------------------------------------------------- /bower_components/iron-a11y-keys-behavior/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: required 3 | before_script: 4 | - npm install -g bower polylint web-component-tester 5 | - bower install 6 | - polylint 7 | env: 8 | global: 9 | - secure: >- 10 | XJ31r/5USVGZRtziCLfr8qM1pJKKQMUN1AeYbCdDFEc6i293WxZneR8PwUVhvyptu+qdyd28uy24sH+Ob7kShFbZTUaif5P4gqHPekrYToI0aHyhmVX7C1LmT7nEL8IcT62NhUwh+83eHTAdodkXgnhfQhPn9FHV24Dkvwm8OKhhzEhtTgUGVuGX9j9FyNV6n1+gf4X3Zq63+NkEUh5vpolpue4W7ul2u0sf4l0fzg9pvKPCmywUwX2i7wwAEf3CJghMu2xup54OzXTEkjjSou/ebt1ZnxaUNV1+dblfUne0v9wTD0dPF8H3DwgewwzcZSbOZmj6lFVHRzmLzWcRJOEKdDrpJkjpg7HIhNPGCKDUcNylekafqi7ezhzrkzFwkh6JCdAj7He4mv/X/OUDNjNCClB7Ms/+WPZwtACvIcR2/pvgZ+1PHbIkbIInyAe6iVMMR0oUecei/X+d04DH7iW7rrODVEu6qdibsJki0R0lR2184rrDO9pGek4rLu9sUQBDNgEM6ZLEXXByO8lpG4xStRdkg0/uR5i1/Q8kux4gIJ9yV8WLANkS8NVlmuJgIi6kbh5n4VVKaihGhbBUuTt2aL7fLnH2I6YRwjyNI9TOIRxwk4afppFYUuq6Fv+nfPcdqDOi5Y2AOXLJ3Yvco0+H57nXe/Ny29gFVW4Kftg= 11 | - secure: >- 12 | huEi/Ja2qnLatb7EJ4Jdc/XAeKphhdH6G+px7/XZY33oDawjStxakx0N/MpT0LPE1BdEWOYTzc17CzKv9R2L3ybWksqXyv/Zs+1NMTmpEAS/54Sk4E61aE3nrV5cfS2R8dBGbJhFoH1W237BDsbw9A4XhsTvhxlIsluWsZgeurbleGg+DgAmg8KlHGRddsfBFgXEk+Khhj6KPsbgPUiWhXpdnXKBPJKF7fJEAbsGR4aFK2eFbYd1OAgJg2Aye0n93IHe+SsxcKRUYteg6UK9V8fk7q5PBlvaodly4F3gH82l+zbnhcTFVW+qN0s6xDBTQzsQ55eTlO3pEezIo3u/1Lq41Yoe6scEkLs63pSYqoB3kakbhLMDJAen080ggdNg9evqvgyznKFYM7sqEcPu+KxHd043DyLTTW11y9lZ/hV3xSTdG4W8mV7+ILbIi54wMaYAcWSGMTOVM0JC/KDoVjze3tzDmfcZwiutLPBFgfrkfJQf3fyqcgvhoLKtHaWHI+76XDsXwEOS2Q5OX9oDtjoZaZ7r8Gp4dqwaKYceOrlsLbaZOLh5nJ4WnDbf4AqZkeM22QWWIfUN6aK+yhsDpQ/d+xJ+/WFENDADrMEKp0Lf3CkzAAcpHp3u65B9qsqweD5/5Je9t0GsA/NvK2xCasnNz6inYy4tAx9i4NWPcOY= 13 | node_js: stable 14 | addons: 15 | firefox: '46.0' 16 | apt: 17 | sources: 18 | - google-chrome 19 | packages: 20 | - google-chrome-stable 21 | sauce_connect: true 22 | script: 23 | - xvfb-run wct 24 | - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s ''default''; fi' 25 | dist: trusty 26 | -------------------------------------------------------------------------------- /bower_components/iron-a11y-keys-behavior/README.md: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | [![Build status](https://travis-ci.org/PolymerElements/iron-a11y-keys-behavior.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-a11y-keys-behavior) 16 | 17 | _[Demo and API docs](https://elements.polymer-project.org/elements/iron-a11y-keys-behavior)_ 18 | 19 | 20 | ##Polymer.IronA11yKeysBehavior 21 | 22 | `Polymer.IronA11yKeysBehavior` provides a normalized interface for processing 23 | keyboard commands that pertain to [WAI-ARIA best practices](http://www.w3.org/TR/wai-aria-practices/#kbd_general_binding). 24 | The element takes care of browser differences with respect to Keyboard events 25 | and uses an expressive syntax to filter key presses. 26 | 27 | Use the `keyBindings` prototype property to express what combination of keys 28 | will trigger the callback. A key binding has the format 29 | `"KEY+MODIFIER:EVENT": "callback"` (`"KEY": "callback"` or 30 | `"KEY:EVENT": "callback"` are valid as well). Some examples: 31 | 32 | ```javascript 33 | keyBindings: { 34 | 'space': '_onKeydown', // same as 'space:keydown' 35 | 'shift+tab': '_onKeydown', 36 | 'enter:keypress': '_onKeypress', 37 | 'esc:keyup': '_onKeyup' 38 | } 39 | ``` 40 | 41 | The callback will receive with an event containing the following information in `event.detail`: 42 | 43 | ```javascript 44 | _onKeydown: function(event) { 45 | console.log(event.detail.combo); // KEY+MODIFIER, e.g. "shift+tab" 46 | console.log(event.detail.key); // KEY only, e.g. "tab" 47 | console.log(event.detail.event); // EVENT, e.g. "keydown" 48 | console.log(event.detail.keyboardEvent); // the original KeyboardEvent 49 | } 50 | ``` 51 | 52 | Use the `keyEventTarget` attribute to set up event handlers on a specific 53 | node. 54 | 55 | See the [demo source code](https://github.com/PolymerElements/iron-a11y-keys-behavior/blob/master/demo/x-key-aware.html) 56 | for an example. 57 | 58 | 59 | -------------------------------------------------------------------------------- /bower_components/iron-a11y-keys-behavior/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-a11y-keys-behavior", 3 | "version": "1.1.9", 4 | "description": "A behavior that enables keybindings for greater a11y.", 5 | "keywords": [ 6 | "web-components", 7 | "web-component", 8 | "polymer", 9 | "a11y", 10 | "input" 11 | ], 12 | "authors": [ 13 | "The Polymer Authors" 14 | ], 15 | "repository": { 16 | "type": "git", 17 | "url": "git://github.com/PolymerElements/iron-a11y-keys-behavior.git" 18 | }, 19 | "main": "iron-a11y-keys-behavior.html", 20 | "license": "http://polymer.github.io/LICENSE.txt", 21 | "dependencies": { 22 | "polymer": "Polymer/polymer#^1.1.0" 23 | }, 24 | "devDependencies": { 25 | "paper-styles": "PolymerElements/paper-styles#^1.0.2", 26 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 27 | "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0", 28 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 29 | "web-component-tester": "^4.0.0", 30 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 31 | }, 32 | "ignore": [] 33 | } 34 | -------------------------------------------------------------------------------- /bower_components/iron-a11y-keys-behavior/demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | Iron A11y Keys Behavior demo 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /bower_components/iron-a11y-keys-behavior/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | iron-a11y-keys-behavior 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /bower_components/iron-a11y-keys-behavior/test/index.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | Tests 13 | 14 | 15 | 16 | 17 | 18 | 19 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /bower_components/iron-behaviors/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-behaviors", 3 | "version": "1.0.17", 4 | "description": "Provides a set of behaviors for the iron elements", 5 | "private": true, 6 | "authors": [ 7 | "The Polymer Authors" 8 | ], 9 | "repository": { 10 | "type": "git", 11 | "url": "git://github.com/PolymerElements/iron-behaviors.git" 12 | }, 13 | "main": [ 14 | "iron-button-state.html", 15 | "iron-control-state.html" 16 | ], 17 | "license": "http://polymer.github.io/LICENSE.txt", 18 | "dependencies": { 19 | "polymer": "Polymer/polymer#^1.2.0", 20 | "iron-a11y-keys-behavior": "PolymerElements/iron-a11y-keys-behavior#^1.0.0" 21 | }, 22 | "devDependencies": { 23 | "paper-styles": "polymerelements/paper-styles#^1.0.2", 24 | "paper-input": "polymerelements/paper-input#^1.0.0", 25 | "iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0", 26 | "iron-component-page": "polymerelements/iron-component-page#^1.0.0", 27 | "test-fixture": "polymerelements/test-fixture#^1.0.0", 28 | "web-component-tester": "^4.0.0", 29 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 30 | }, 31 | "ignore": [], 32 | "homepage": "https://github.com/PolymerElements/iron-behaviors", 33 | "_release": "1.0.17", 34 | "_resolution": { 35 | "type": "version", 36 | "tag": "v1.0.17", 37 | "commit": "ef8e89b5f0aa4e8a6b51ca6491ea453bf395f94f" 38 | }, 39 | "_source": "git://github.com/PolymerElements/iron-behaviors.git", 40 | "_target": "^1.0.0", 41 | "_originalSource": "PolymerElements/iron-behaviors" 42 | } -------------------------------------------------------------------------------- /bower_components/iron-behaviors/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | ### Description 3 | 4 | 5 | ### Expected outcome 6 | 7 | 8 | 9 | ### Actual outcome 10 | 11 | 12 | 13 | ### Live Demo 14 | 15 | 16 | ### Steps to reproduce 17 | 18 | 23 | 24 | ### Browsers Affected 25 | 26 | - [ ] Chrome 27 | - [ ] Firefox 28 | - [ ] Safari 9 29 | - [ ] Safari 8 30 | - [ ] Safari 7 31 | - [ ] Edge 32 | - [ ] IE 11 33 | - [ ] IE 10 34 | -------------------------------------------------------------------------------- /bower_components/iron-behaviors/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | -------------------------------------------------------------------------------- /bower_components/iron-behaviors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: required 3 | before_script: 4 | - npm install -g bower polylint web-component-tester 5 | - bower install 6 | - polylint 7 | env: 8 | global: 9 | - secure: H49pcRc5C6G+ti/ehtT74GZdsUsM/xCvEVJBmKq8rpck7s18R6BbH37RkF2XgYfO4rVa1Bl4KU4Wf5S6aIDYzdaq/phGtFQ04NmDYGbmBhRjwfgxlW4dJ7mkXqXCvNZkxJtAJpgzgVG+xu/I6GsO1Lp4VjGENvVYSsrkGIlSA34= 10 | - secure: Zq+hvOlL1RmTtMfAtO3bxqYnB7X6MY199cVCKo2J/EbsMvOHII1JvEU1+s2/UG9tgoiXkd7N2OfFOivlbQ75BDIwtvkq32KZNrUEC6vRGhbMBc8JCKkdFB/XHh1mNhQcn6Js656PhZIj2WteZYMSGYDUj7KcBBMacRZQKWuB0OU= 11 | node_js: stable 12 | addons: 13 | firefox: '46.0' 14 | apt: 15 | sources: 16 | - google-chrome 17 | packages: 18 | - google-chrome-stable 19 | sauce_connect: true 20 | script: 21 | - xvfb-run wct 22 | - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s 'default'; fi 23 | dist: trusty 24 | -------------------------------------------------------------------------------- /bower_components/iron-behaviors/README.md: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | [![Build status](https://travis-ci.org/PolymerElements/iron-behaviors.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-behaviors) 16 | 17 | _[Demo and API docs](https://elements.polymer-project.org/elements/iron-behaviors)_ 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /bower_components/iron-behaviors/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-behaviors", 3 | "version": "1.0.17", 4 | "description": "Provides a set of behaviors for the iron elements", 5 | "private": true, 6 | "authors": [ 7 | "The Polymer Authors" 8 | ], 9 | "repository": { 10 | "type": "git", 11 | "url": "git://github.com/PolymerElements/iron-behaviors.git" 12 | }, 13 | "main": [ 14 | "iron-button-state.html", 15 | "iron-control-state.html" 16 | ], 17 | "license": "http://polymer.github.io/LICENSE.txt", 18 | "dependencies": { 19 | "polymer": "Polymer/polymer#^1.2.0", 20 | "iron-a11y-keys-behavior": "PolymerElements/iron-a11y-keys-behavior#^1.0.0" 21 | }, 22 | "devDependencies": { 23 | "paper-styles": "polymerelements/paper-styles#^1.0.2", 24 | "paper-input": "polymerelements/paper-input#^1.0.0", 25 | "iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0", 26 | "iron-component-page": "polymerelements/iron-component-page#^1.0.0", 27 | "test-fixture": "polymerelements/test-fixture#^1.0.0", 28 | "web-component-tester": "^4.0.0", 29 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 30 | }, 31 | "ignore": [] 32 | } 33 | -------------------------------------------------------------------------------- /bower_components/iron-behaviors/demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | simple-button 19 | 20 | 21 | 22 | 23 | 24 | 31 | 32 | 33 | 34 |
35 |

Normal

36 | 37 | Hello World 38 | 39 |

Toggles

40 | 41 | Hello World 42 | 43 |

Disabled

44 | 45 | Hello World 46 |
47 | 48 | 49 | -------------------------------------------------------------------------------- /bower_components/iron-behaviors/demo/simple-button.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 49 | 50 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /bower_components/iron-behaviors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | Iron Behaviors 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /bower_components/iron-behaviors/test/index.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /bower_components/iron-behaviors/test/test-elements.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 28 | 29 | 47 | 48 | 49 | 50 | 53 | 54 | 55 | 56 | 69 | 70 | 71 | 72 | 75 | 76 | 77 | 78 | 92 | -------------------------------------------------------------------------------- /bower_components/iron-checked-element-behavior/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-checked-element-behavior", 3 | "version": "1.0.5", 4 | "description": "Implements an element that has a checked attribute and can be added to a form", 5 | "authors": "The Polymer Authors", 6 | "keywords": [ 7 | "web-components", 8 | "polymer", 9 | "iron", 10 | "behavior" 11 | ], 12 | "main": "iron-checked-element-behavior.html", 13 | "private": true, 14 | "repository": { 15 | "type": "git", 16 | "url": "git://github.com/PolymerElements/iron-checked-element-behavior.git" 17 | }, 18 | "license": "http://polymer.github.io/LICENSE.txt", 19 | "homepage": "https://github.com/PolymerElements/iron-checked-element-behavior", 20 | "ignore": [], 21 | "dependencies": { 22 | "polymer": "Polymer/polymer#^1.1.0", 23 | "iron-validatable-behavior": "PolymerElements/iron-validatable-behavior#^1.0.0", 24 | "iron-form-element-behavior": "PolymerElements/iron-form-element-behavior#^1.0.0" 25 | }, 26 | "devDependencies": { 27 | "paper-styles": "PolymerElements/paper-styles#^1.0.0", 28 | "paper-button": "PolymerElements/paper-button#^1.0.0", 29 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 30 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 31 | "web-component-tester": "^4.0.0", 32 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 33 | }, 34 | "_release": "1.0.5", 35 | "_resolution": { 36 | "type": "version", 37 | "tag": "v1.0.5", 38 | "commit": "c70add47a9af62d30746587e8a1303fb390787c6" 39 | }, 40 | "_source": "git://github.com/PolymerElements/iron-checked-element-behavior.git", 41 | "_target": "^1.0.0", 42 | "_originalSource": "PolymerElements/iron-checked-element-behavior" 43 | } -------------------------------------------------------------------------------- /bower_components/iron-checked-element-behavior/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | ### Description 3 | 4 | 5 | ### Expected outcome 6 | 7 | 8 | 9 | ### Actual outcome 10 | 11 | 12 | 13 | ### Live Demo 14 | 15 | 16 | ### Steps to reproduce 17 | 18 | 23 | 24 | ### Browsers Affected 25 | 26 | - [ ] Chrome 27 | - [ ] Firefox 28 | - [ ] Safari 9 29 | - [ ] Safari 8 30 | - [ ] Safari 7 31 | - [ ] Edge 32 | - [ ] IE 11 33 | - [ ] IE 10 34 | -------------------------------------------------------------------------------- /bower_components/iron-checked-element-behavior/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | -------------------------------------------------------------------------------- /bower_components/iron-checked-element-behavior/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: required 3 | before_script: 4 | - npm install -g bower polylint web-component-tester 5 | - bower install 6 | - polylint 7 | env: 8 | global: 9 | - secure: zj5WTkJrZAy1QK0j65jHEsHluT4B/PZl0u3iVEWnyd4CSUbHh3rS5NytZTA8wZ63DYnUcrdbhPeIQI3UKaVBUM2MO/K4MwsC2YTRpifpCLbC+wlRV9WRZNZ9CJ3hu6leshOBWHzZucUWAcKtyQRm66rAU+90ZaJcrBPC/xtgPG1n/Bm2aygr5IA36vJy80Zpwk1+yFmb08eu7jpzNVhcFor+VX0gBW3rxeX0kvzhHGn0bTLxKztNB56Oe+bzx6vU8ACjBcSylouOtPJVIk/iIh7AIDHDcpoZGzmwtVnwAV2mJQtu3V8hQ2kE8eXpDloBGID+AUfTF3YSOVQo34I1yv4T+FlB7uxWrgJo80X5IRXUe15+OoXqraZ25v736RPdTWPjV2b6cWHqdOa45wODkDY0KZ9SrmwZibF3vcfVOG21llW2jF/HC5FvDIiM7gv1ro5jsFbEIwv7ligh0KKa+TOZBphL4sEtMrpxR/zXLqBLXUbKL54A+AefHelxjDIqT3oKQylesrGZ58fEF7Fx5xDSYGJwhIEwTLsEQWIWw8sWB34yRtDBIPocqh8nNZ9pJBOdhK3oC5KK44IQnE44YrIzLRRinHzRVoywpUb5OJDxxSSvOwcqmTYbkFmRJMzfJCEj/EtYsEokmSFv8zIRRDetvenBTGouNK/VsU9xQpA= 10 | - secure: Q3xN3fRvTQuy/HKlkYFFnVrFo01r6Q8zgzHHK8yKNKio9T/BM0+iIMYP8mRY+qvCQxCboXuUawG6gsxxT2Zn/p7SgNZ+UHq7DcLmocqxmECdGfqra6Hy9Y7BZVYPWlWIADkNUjI0RfOz69/3o/TAFlt4Cnw3BX3ip0o0Rri5/jzj0Nn+xSF+onyMnpH2gQvUE77MHvCuWTPki3R86Bz8RRzbTwKYwVa0oVca7jzdPtOjqzsnz8k9X0HVwQEpHGjqgTP3lg8EotON0rac/ayWs3J3bk9ye5AfvdTCYcZnDcz8POAN6FeC2Xey7oqQO4N8vFagru88mC3AmN67ZYqwI0fmDEYre20lnXFAFBFzsiu4FvKMgFYi/C5tG5ngSR5XcXwLskax82Un7yYYRzVbyhFSxxWZCqIC4cJ5d+E0Wex4eEYDwAlZ9AFP/hRJ2qrBVUbzXeGVMkHlg4qtdUIzHRkMUmjvEWVzTvk0Xa2wD+S0mYPcBwQcscoZy9zqdJM4hfbG9IGi02/DyrTOL3IuNH8WHHvGWS4ajDhSRkGCV4I5VtGKQ/Y3RA/pU6AaI7tVcDhbxOyIPKuOXO6PWuZOiJhhPQ/kceMkUXeh0TmsDtSBpe5OKCnjsdSn02lTT5yYf4nlVIVczP9p6zBerXorzZk1/S3CRBtqYZPgRrefbCw= 11 | node_js: stable 12 | addons: 13 | firefox: '46.0' 14 | apt: 15 | sources: 16 | - google-chrome 17 | packages: 18 | - google-chrome-stable 19 | sauce_connect: true 20 | script: 21 | - xvfb-run wct 22 | - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s 'default'; fi 23 | dist: trusty 24 | -------------------------------------------------------------------------------- /bower_components/iron-checked-element-behavior/README.md: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | [![Build status](https://travis-ci.org/PolymerElements/iron-checked-element-behavior.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-checked-element-behavior) 16 | 17 | _[Demo and API docs](https://elements.polymer-project.org/elements/iron-checked-element-behavior)_ 18 | 19 | 20 | ##Polymer.IronCheckedElementBehavior 21 | 22 | Use `Polymer.IronCheckedElementBehavior` to implement a custom element 23 | that has a `checked` property, which can be used for validation if the 24 | element is also `required`. Element instances implementing this behavior 25 | will also be registered for use in an `iron-form` element. 26 | 27 | 28 | -------------------------------------------------------------------------------- /bower_components/iron-checked-element-behavior/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-checked-element-behavior", 3 | "version": "1.0.5", 4 | "description": "Implements an element that has a checked attribute and can be added to a form", 5 | "authors": "The Polymer Authors", 6 | "keywords": [ 7 | "web-components", 8 | "polymer", 9 | "iron", 10 | "behavior" 11 | ], 12 | "main": "iron-checked-element-behavior.html", 13 | "private": true, 14 | "repository": { 15 | "type": "git", 16 | "url": "git://github.com/PolymerElements/iron-checked-element-behavior.git" 17 | }, 18 | "license": "http://polymer.github.io/LICENSE.txt", 19 | "homepage": "https://github.com/PolymerElements/iron-checked-element-behavior", 20 | "ignore": [], 21 | "dependencies": { 22 | "polymer": "Polymer/polymer#^1.1.0", 23 | "iron-validatable-behavior": "PolymerElements/iron-validatable-behavior#^1.0.0", 24 | "iron-form-element-behavior": "PolymerElements/iron-form-element-behavior#^1.0.0" 25 | }, 26 | "devDependencies": { 27 | "paper-styles": "PolymerElements/paper-styles#^1.0.0", 28 | "paper-button": "PolymerElements/paper-button#^1.0.0", 29 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 30 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 31 | "web-component-tester": "^4.0.0", 32 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /bower_components/iron-checked-element-behavior/demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | iron-checked-element-behavior demo 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 |
26 |

Not required

27 |
28 | 29 |
30 |
31 |
32 |

Required

33 |
34 | 35 |
36 |
37 |
38 | 39 | 40 | -------------------------------------------------------------------------------- /bower_components/iron-checked-element-behavior/demo/simple-checkbox.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 37 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /bower_components/iron-checked-element-behavior/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | iron-checked-element-behavior 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /bower_components/iron-checked-element-behavior/test/index.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | iron-checked-element-behavior tests 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /bower_components/iron-checked-element-behavior/test/simple-checkbox.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 27 | -------------------------------------------------------------------------------- /bower_components/iron-flex-layout/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-flex-layout", 3 | "version": "1.3.1", 4 | "description": "Provide flexbox-based layouts", 5 | "keywords": [ 6 | "web-components", 7 | "polymer", 8 | "layout" 9 | ], 10 | "main": "iron-flex-layout.html", 11 | "private": true, 12 | "license": "http://polymer.github.io/LICENSE.txt", 13 | "authors": [ 14 | "The Polymer Authors" 15 | ], 16 | "repository": { 17 | "type": "git", 18 | "url": "git://github.com/PolymerElements/iron-flex-layout.git" 19 | }, 20 | "dependencies": { 21 | "polymer": "Polymer/polymer#^1.1.0" 22 | }, 23 | "devDependencies": { 24 | "iron-component-page": "polymerelements/iron-component-page#^1.0.0", 25 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", 26 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 27 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", 28 | "web-component-tester": "^4.0.0" 29 | }, 30 | "ignore": [], 31 | "homepage": "https://github.com/PolymerElements/iron-flex-layout", 32 | "_release": "1.3.1", 33 | "_resolution": { 34 | "type": "version", 35 | "tag": "v1.3.1", 36 | "commit": "6d88f29f3a7181daa2a5c7f678de44f0a0e6a717" 37 | }, 38 | "_source": "git://github.com/PolymerElements/iron-flex-layout.git", 39 | "_target": "^1.0.0", 40 | "_originalSource": "PolymerElements/iron-flex-layout" 41 | } -------------------------------------------------------------------------------- /bower_components/iron-flex-layout/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | 3 | -------------------------------------------------------------------------------- /bower_components/iron-flex-layout/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: false 3 | before_script: 4 | - npm install -g bower polylint web-component-tester 5 | - bower install 6 | - polylint 7 | env: 8 | global: 9 | - secure: jFaXkmco40NlJT4VyFYM34Zv9D1XVfLXgixobnyHQyJDBKSXrNLcwDuvrGUpJx/pwBCxEhKAbvxeJ+PBMUv8QV08MAdw2S6QOsIe3CUxAehoNoOMJw5duhE8faWlz8qzmCWEowHVFUeVsd0ZUsgOu6RTspj2A51D/CztQuW0Ljw= 10 | - secure: fKrO5yMx8kZM1WQ3k0bzo6MCREKGW2WkCl2suDjuEtb1SQ/SaZa9Tun0fcqIHVJqg9+jOS1Romt/+MN27Nc6IT1tv/NdLd+uWjtMA+OzLyv48gzcdu8Ls/TISUGm5Wb7XHkcvMAb1tRoBs5BOvQ/85FilZLEq1km8snG9ZsOOWI= 11 | - CXX=g++-4.8 12 | node_js: stable 13 | addons: 14 | firefox: latest 15 | apt: 16 | sources: 17 | - google-chrome 18 | - ubuntu-toolchain-r-test 19 | packages: 20 | - google-chrome-stable 21 | - g++-4.8 22 | sauce_connect: true 23 | script: 24 | - xvfb-run wct 25 | - "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi" 26 | -------------------------------------------------------------------------------- /bower_components/iron-flex-layout/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-flex-layout", 3 | "version": "1.3.1", 4 | "description": "Provide flexbox-based layouts", 5 | "keywords": [ 6 | "web-components", 7 | "polymer", 8 | "layout" 9 | ], 10 | "main": "iron-flex-layout.html", 11 | "private": true, 12 | "license": "http://polymer.github.io/LICENSE.txt", 13 | "authors": [ 14 | "The Polymer Authors" 15 | ], 16 | "repository": { 17 | "type": "git", 18 | "url": "git://github.com/PolymerElements/iron-flex-layout.git" 19 | }, 20 | "dependencies": { 21 | "polymer": "Polymer/polymer#^1.1.0" 22 | }, 23 | "devDependencies": { 24 | "iron-component-page": "polymerelements/iron-component-page#^1.0.0", 25 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", 26 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 27 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", 28 | "web-component-tester": "^4.0.0" 29 | }, 30 | "ignore": [] 31 | } 32 | -------------------------------------------------------------------------------- /bower_components/iron-flex-layout/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | iron-flex-layout 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /bower_components/iron-flex-layout/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | iron-flex-behavior tests 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /bower_components/iron-form-element-behavior/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-form-element-behavior", 3 | "version": "1.0.6", 4 | "license": "http://polymer.github.io/LICENSE.txt", 5 | "private": true, 6 | "main": "iron-form-element-behavior.html", 7 | "authors": [ 8 | "The Polymer Authors" 9 | ], 10 | "description": "Enables a custom element to be included in an iron-form", 11 | "keywords": [ 12 | "web-components", 13 | "polymer", 14 | "form" 15 | ], 16 | "repository": { 17 | "type": "git", 18 | "url": "git://github.com/PolymerElements/iron-form-element-behavior.git" 19 | }, 20 | "dependencies": { 21 | "polymer": "Polymer/polymer#^1.0.0" 22 | }, 23 | "devDependencies": { 24 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 25 | "paper-styles": "PolymerElements/paper-styles#^1.0.0", 26 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 27 | "web-component-tester": "polymer/web-component-tester#^3.4.0", 28 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 29 | }, 30 | "ignore": [], 31 | "homepage": "https://github.com/PolymerElements/iron-form-element-behavior", 32 | "_release": "1.0.6", 33 | "_resolution": { 34 | "type": "version", 35 | "tag": "v1.0.6", 36 | "commit": "cf9e09ded62daf3363852ce98260aaad1ed0fae1" 37 | }, 38 | "_source": "git://github.com/PolymerElements/iron-form-element-behavior.git", 39 | "_target": "^1.0.0", 40 | "_originalSource": "PolymerElements/iron-form-element-behavior" 41 | } -------------------------------------------------------------------------------- /bower_components/iron-form-element-behavior/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | -------------------------------------------------------------------------------- /bower_components/iron-form-element-behavior/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: false 3 | before_script: 4 | - npm install web-component-tester 5 | - npm install bower 6 | - 'export PATH=$PWD/node_modules/.bin:$PATH' 7 | - bower install 8 | env: 9 | global: 10 | - secure: EN5HtbAeaCE1IzGk5JlSq7GWcANh/zYgbpZn1y0VocfkZfzOv8cIh8Zmr4Q6shII6K07Fyx1LQuAjsURqX9mc3AmfMHgPIbpZGpOKrjvt1Vf0bPN+uIC9vIFj3sLQj12gcfJg48EXk6HWsHscCZ3+am1xvRflhNEY3TjHPrUTgkF+KLbBEfb4mCZwVc4dln76ffvTQ/cPI9eYczNp1q9wWpYvn794qRLtAkKuQ5Z1b6hunOAx/hzCjGNbJDO3gkxO68dzzSp9YDIhKEFAUlMDalwLRr7sNgB4sNeDCg4mmie5fe6xk831HvBYFxZxmXD1uS6/Hvd8MiBDiols3lwz8uEUnPyrwDlxUkjn2sl5S+gO8CcHU2mShUCl73JfBtyWDKPSfQLR5QHEk4eqNzNn2HinAE/aezi4/TVCY7P3ujeK8sFlTsb9vlywnlJO3fqyZ+lBwZ4CbNjOTs1L2W+guT1Oq30PJ5TVxU2mvmIMtdpPveZB0iM/PM9FECsb303KeV5Zomk4dp2MxirK1O/4mPAHIz9UUpGopGOtpuODnRV4Lq7V9HaDxYOZzAHZDK4mJ1y6tSRH/yMUTEidhG2j5F6MXmhbKXj3I0oR95xx1RH+b8myErvUBlto4jR21Pd+mOVlkU78CBSN9XGhtBQjklF5+aC8YeH1DEv6mTn2o8= 11 | - secure: q3AjjaoaTZcdAdjIvzSf8Q1SdEg1mY6lBkeoDTMKJcftJ8zz1qIfjGzEuycSVVnOJhZ6WmvMMBxdThQCymF1wzT++SV+u34DYSFoZ5EhjM0TFhP63PRuhbE3DquPaISpM5aCH7epV4nMFD7PFE1BP4u/qiETAgPeAoY9LMT/JPclOfcQ3euwks3TSM6O8g7Ro1h1ElywCQ1souzkcjvJ3FxsqysJb7Mg/n9bmtwnkol/mrBaP6JzQMURUyswx7ZPj3qiFoA9ZLiNirzf+O781A4msKursjYrKr6TZtB6xcMlEg89YhFBXrLE9IEEM/fNp+vPNhaIA5VjYRy8iIK402RXpbh7/AlPD7yMFITeMSfT+Bqldur+pi0oN1N9SeWrmk6P+bdfdkdyGl1CVKP4S35z8cyFRgmvxO4/UG65cb66AdMeNVBEQsi2flCWgPyaTmOQ53YryCs7cFRu3zSMnU3F/gWqlmletgxGhFOBHTtEmr2A9QBLgg+EvB/83wj2dEEfMlIpoeq83/2PaE8hKAWyqPga7t532vU5AIFNOUk9vGzRCxsqGKF2j0/zFBdgHSLYCsWVrbjxmxdu6Fzi8ZATeqjDoc0eaIPhBkekOvDrUtUSHA9sSSG8j69GGUL4+WkoCMB74dz+GXz85fMJlMZWBXPtazDlNXYfU60T/1E= 12 | node_js: 4 13 | addons: 14 | firefox: latest 15 | apt: 16 | sources: 17 | - google-chrome 18 | packages: 19 | - google-chrome-stable 20 | script: 21 | - xvfb-run wct 22 | - "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi" 23 | -------------------------------------------------------------------------------- /bower_components/iron-form-element-behavior/README.md: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | [![Build Status](https://travis-ci.org/PolymerElements/iron-form-element-behavior.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-form-element-behavior) 13 | 14 | _[Demo and API Docs](https://elements.polymer-project.org/elements/iron-form-element-behavior)_ 15 | 16 | 17 | ##Polymer.IronFormElementBehavior 18 | 19 | 20 | Polymer.IronFormElementBehavior enables a custom element to be included 21 | in an `iron-form`. 22 | 23 | 24 | -------------------------------------------------------------------------------- /bower_components/iron-form-element-behavior/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-form-element-behavior", 3 | "version": "1.0.6", 4 | "license": "http://polymer.github.io/LICENSE.txt", 5 | "private": true, 6 | "main": "iron-form-element-behavior.html", 7 | "authors": [ 8 | "The Polymer Authors" 9 | ], 10 | "description": "Enables a custom element to be included in an iron-form", 11 | "keywords": [ 12 | "web-components", 13 | "polymer", 14 | "form" 15 | ], 16 | "repository": { 17 | "type": "git", 18 | "url": "git://github.com/PolymerElements/iron-form-element-behavior.git" 19 | }, 20 | "dependencies": { 21 | "polymer": "Polymer/polymer#^1.0.0" 22 | }, 23 | "devDependencies": { 24 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 25 | "paper-styles": "PolymerElements/paper-styles#^1.0.0", 26 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 27 | "web-component-tester": "polymer/web-component-tester#^3.4.0", 28 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 29 | }, 30 | "ignore": [] 31 | } 32 | -------------------------------------------------------------------------------- /bower_components/iron-form-element-behavior/demo/simple-element.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 28 | -------------------------------------------------------------------------------- /bower_components/iron-form-element-behavior/demo/simple-form.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 54 | -------------------------------------------------------------------------------- /bower_components/iron-form-element-behavior/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | iron-form-element-behavior 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /bower_components/iron-form-element-behavior/test/basic.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | iron-form-element-behavior 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 29 | 30 | 31 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /bower_components/iron-form-element-behavior/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /bower_components/iron-form-element-behavior/test/simple-element.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 24 | -------------------------------------------------------------------------------- /bower_components/iron-form-element-behavior/test/simple-form.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 20 | -------------------------------------------------------------------------------- /bower_components/iron-image/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-image", 3 | "version": "1.2.5", 4 | "license": "http://polymer.github.io/LICENSE.txt", 5 | "description": "An image-displaying element with lots of convenient features", 6 | "private": true, 7 | "authors": [ 8 | "The Polymer Authors" 9 | ], 10 | "keywords": [ 11 | "web-components", 12 | "polymer", 13 | "media" 14 | ], 15 | "repository": { 16 | "type": "git", 17 | "url": "git://github.com/PolymerElements/iron-image.git" 18 | }, 19 | "dependencies": { 20 | "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", 21 | "polymer": "Polymer/polymer#^1.1.0" 22 | }, 23 | "devDependencies": { 24 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 25 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", 26 | "paper-styles": "PolymerElements/paper-styles#^1.0.4", 27 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 28 | "web-component-tester": "^4.0.0", 29 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 30 | }, 31 | "main": "iron-image.html", 32 | "ignore": [], 33 | "homepage": "https://github.com/PolymerElements/iron-image", 34 | "_release": "1.2.5", 35 | "_resolution": { 36 | "type": "version", 37 | "tag": "v1.2.5", 38 | "commit": "d0699b5adf7a60d5d294c07d8765e3a3c5781b8c" 39 | }, 40 | "_source": "git://github.com/PolymerElements/iron-image.git", 41 | "_target": "^1.2.0", 42 | "_originalSource": "PolymerElements/iron-image" 43 | } -------------------------------------------------------------------------------- /bower_components/iron-image/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | ### Description 3 | 4 | 5 | ### Expected outcome 6 | 7 | 8 | 9 | ### Actual outcome 10 | 11 | 12 | 13 | ### Live Demo 14 | 15 | 16 | ### Steps to reproduce 17 | 18 | 23 | 24 | ### Browsers Affected 25 | 26 | - [ ] Chrome 27 | - [ ] Firefox 28 | - [ ] Safari 9 29 | - [ ] Safari 8 30 | - [ ] Safari 7 31 | - [ ] Edge 32 | - [ ] IE 11 33 | - [ ] IE 10 34 | -------------------------------------------------------------------------------- /bower_components/iron-image/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | -------------------------------------------------------------------------------- /bower_components/iron-image/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: required 3 | before_script: 4 | - npm install -g bower polylint web-component-tester 5 | - bower install 6 | - polylint 7 | env: 8 | global: 9 | - secure: JOd5P49LsE77iYvmnXcjrv4UOPBz5iXed34LnK4FB8+hJ79wFan/HuymA8mof1FDnyBYFqV9Zgmeo2BAmFxomtADwLL6fcX34fh5r0JPuM6pv1ovoaE/yNBrt3o7RfhQ9/VkezjGBFkrXF8ciw2e+OHu6aEcAvdqG8O0UqWHVn4= 10 | - secure: HV8pPsLmz3GsoAyAnJosqMPVL/2QA/0G71b9KTrXGvnydRwPfaxPmgklrVs0S8LlS4t1OzJcL1M8p/k2ulWL/OsmG+KVB2LRB51JsrhfDEb+XF9VpXFXv5TSx2Bv9RE4gBlY2YaVnpq5OsL9oQDLmwMvsEcPZPF/nRfnbG6zD6g= 11 | node_js: stable 12 | addons: 13 | firefox: '46.0' 14 | apt: 15 | sources: 16 | - google-chrome 17 | packages: 18 | - google-chrome-stable 19 | sauce_connect: true 20 | script: 21 | - xvfb-run wct 22 | - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s 'default'; fi 23 | dist: trusty 24 | -------------------------------------------------------------------------------- /bower_components/iron-image/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-image", 3 | "version": "1.2.5", 4 | "license": "http://polymer.github.io/LICENSE.txt", 5 | "description": "An image-displaying element with lots of convenient features", 6 | "private": true, 7 | "authors": [ 8 | "The Polymer Authors" 9 | ], 10 | "keywords": [ 11 | "web-components", 12 | "polymer", 13 | "media" 14 | ], 15 | "repository": { 16 | "type": "git", 17 | "url": "git://github.com/PolymerElements/iron-image.git" 18 | }, 19 | "dependencies": { 20 | "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", 21 | "polymer": "Polymer/polymer#^1.1.0" 22 | }, 23 | "devDependencies": { 24 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 25 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", 26 | "paper-styles": "PolymerElements/paper-styles#^1.0.4", 27 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 28 | "web-component-tester": "^4.0.0", 29 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 30 | }, 31 | "main": "iron-image.html", 32 | "ignore": [] 33 | } 34 | -------------------------------------------------------------------------------- /bower_components/iron-image/demo/loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinlebrun/elm-polymer/848991324f014eb3791a1cf6e6df11a8545993eb/bower_components/iron-image/demo/loading.png -------------------------------------------------------------------------------- /bower_components/iron-image/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | iron-image 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /bower_components/iron-image/test/index.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /bower_components/iron-meta/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-meta", 3 | "version": "1.1.2", 4 | "keywords": [ 5 | "web-components", 6 | "polymer" 7 | ], 8 | "license": "http://polymer.github.io/LICENSE.txt", 9 | "description": "Useful for sharing information across a DOM tree", 10 | "private": true, 11 | "authors": [ 12 | "The Polymer Authors" 13 | ], 14 | "repository": { 15 | "type": "git", 16 | "url": "git://github.com/PolymerElements/iron-meta.git" 17 | }, 18 | "dependencies": { 19 | "polymer": "Polymer/polymer#^1.0.0" 20 | }, 21 | "devDependencies": { 22 | "paper-styles": "polymerelements/paper-styles#^1.0.4", 23 | "iron-component-page": "polymerelements/iron-component-page#^1.0.0", 24 | "test-fixture": "polymerelements/test-fixture#^1.0.0", 25 | "web-component-tester": "^4.0.0", 26 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 27 | }, 28 | "main": "iron-meta.html", 29 | "ignore": [], 30 | "homepage": "https://github.com/PolymerElements/iron-meta", 31 | "_release": "1.1.2", 32 | "_resolution": { 33 | "type": "version", 34 | "tag": "v1.1.2", 35 | "commit": "bae96531b63ea6d4ce982f5592248aea849c0f5a" 36 | }, 37 | "_source": "git://github.com/PolymerElements/iron-meta.git", 38 | "_target": "^1.0.0", 39 | "_originalSource": "PolymerElements/iron-meta" 40 | } -------------------------------------------------------------------------------- /bower_components/iron-meta/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | ### Description 3 | 4 | 5 | ### Expected outcome 6 | 7 | 8 | 9 | ### Actual outcome 10 | 11 | 12 | 13 | ### Live Demo 14 | 15 | 16 | ### Steps to reproduce 17 | 18 | 23 | 24 | ### Browsers Affected 25 | 26 | - [ ] Chrome 27 | - [ ] Firefox 28 | - [ ] Safari 9 29 | - [ ] Safari 8 30 | - [ ] Safari 7 31 | - [ ] Edge 32 | - [ ] IE 11 33 | - [ ] IE 10 34 | -------------------------------------------------------------------------------- /bower_components/iron-meta/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | -------------------------------------------------------------------------------- /bower_components/iron-meta/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: required 3 | before_script: 4 | - npm install -g bower polylint web-component-tester 5 | - bower install 6 | - polylint 7 | env: 8 | global: 9 | - secure: mjikUCoN+UpTbFHwbGXUoKp4vtZ2qNN1JYW79WcOik7fCFmvdFzfYQPDa6y9aJvU3kgkDndGdR/ynLG4kejZjmqTS5fYtdHEwpPVPapbVYnquJvCJKbMN4S2QpGCoq51pjKQ8U3Ys6G5HkmdcDfw3SKk1uMgVzKV7fEI+6WnZ/M= 10 | - secure: LHDnBtwK7yO2X4GNmIaAl7t85WWc1U189OiPqemD27+jTcKml0by1n9Mu/yrg94jYgeXab9mHgU3uMtIdQstNNwTDu8CgmmIP4H2EWopHrTi3KM7Z7aeofPgMJsVFXwg+WhNlcCfhEsygHZWTxjJXM4fcGOrFPDa4+BTgRa2hEE= 11 | node_js: stable 12 | addons: 13 | firefox: '46.0' 14 | apt: 15 | sources: 16 | - google-chrome 17 | packages: 18 | - google-chrome-stable 19 | sauce_connect: true 20 | script: 21 | - xvfb-run wct 22 | - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s 'default'; fi 23 | dist: trusty 24 | -------------------------------------------------------------------------------- /bower_components/iron-meta/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-meta", 3 | "version": "1.1.2", 4 | "keywords": [ 5 | "web-components", 6 | "polymer" 7 | ], 8 | "license": "http://polymer.github.io/LICENSE.txt", 9 | "description": "Useful for sharing information across a DOM tree", 10 | "private": true, 11 | "authors": [ 12 | "The Polymer Authors" 13 | ], 14 | "repository": { 15 | "type": "git", 16 | "url": "git://github.com/PolymerElements/iron-meta.git" 17 | }, 18 | "dependencies": { 19 | "polymer": "Polymer/polymer#^1.0.0" 20 | }, 21 | "devDependencies": { 22 | "paper-styles": "polymerelements/paper-styles#^1.0.4", 23 | "iron-component-page": "polymerelements/iron-component-page#^1.0.0", 24 | "test-fixture": "polymerelements/test-fixture#^1.0.0", 25 | "web-component-tester": "^4.0.0", 26 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 27 | }, 28 | "main": "iron-meta.html", 29 | "ignore": [] 30 | } 31 | -------------------------------------------------------------------------------- /bower_components/iron-meta/hero.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /bower_components/iron-meta/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | iron-meta 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /bower_components/iron-meta/test/basic.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | iron-meta-basic 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /bower_components/iron-meta/test/index.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | Tests 13 | 14 | 15 | 16 | 17 | 18 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-validatable-behavior", 3 | "version": "1.1.1", 4 | "description": "Provides a behavior for an element that validates user input", 5 | "authors": "The Polymer Authors", 6 | "keywords": [ 7 | "web-components", 8 | "polymer", 9 | "iron", 10 | "behavior" 11 | ], 12 | "main": "iron-validatable-behavior.html", 13 | "private": true, 14 | "repository": { 15 | "type": "git", 16 | "url": "git://github.com/PolymerElements/iron-validatable-behavior.git" 17 | }, 18 | "license": "http://polymer.github.io/LICENSE.txt", 19 | "homepage": "https://github.com/PolymerElements/iron-validatable-behavior", 20 | "ignore": [], 21 | "dependencies": { 22 | "iron-meta": "PolymerElements/iron-meta#^1.0.0", 23 | "polymer": "Polymer/polymer#^1.0.0" 24 | }, 25 | "devDependencies": { 26 | "paper-styles": "PolymerElements/paper-styles#^1.0.4", 27 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 28 | "iron-validator-behavior": "PolymerElements/iron-validator-behavior#^1.0.0", 29 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 30 | "web-component-tester": "^4.0.0", 31 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 32 | }, 33 | "_release": "1.1.1", 34 | "_resolution": { 35 | "type": "version", 36 | "tag": "v1.1.1", 37 | "commit": "2ecd3f411e298733b29f1660f75cb9b03ea31d77" 38 | }, 39 | "_source": "git://github.com/PolymerElements/iron-validatable-behavior.git", 40 | "_target": "^1.0.0", 41 | "_originalSource": "PolymerElements/iron-validatable-behavior" 42 | } -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | ### Description 3 | 4 | 5 | ### Expected outcome 6 | 7 | 8 | 9 | ### Actual outcome 10 | 11 | 12 | 13 | ### Live Demo 14 | 15 | 16 | ### Steps to reproduce 17 | 18 | 23 | 24 | ### Browsers Affected 25 | 26 | - [ ] Chrome 27 | - [ ] Firefox 28 | - [ ] Safari 9 29 | - [ ] Safari 8 30 | - [ ] Safari 7 31 | - [ ] Edge 32 | - [ ] IE 11 33 | - [ ] IE 10 34 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: required 3 | before_script: 4 | - npm install -g bower polylint web-component-tester 5 | - bower install 6 | - polylint 7 | env: 8 | global: 9 | - secure: AsXK1s4viLG4eumYMxE0bJasVbWrpQ7JaUboMoK4Nzhmunx01udikRRAJifl3nkcc4m2GpzCb4Kmtyh5hxyLA05uE416VzmfDq3dGJKsNAQXbSescSVik63llq4HXAdOvek2eSo5wOVGNHslscIed5K2bJajXfPMIODJyBxo8aE= 10 | - secure: V/H/0+/R8owujbwe3IDbND8v5zs4pWTe0hRCLefjgR9ci2lmNNP54Zb97nOZnLQqynafDSyrngL3+RP5F0fk1dC++cpuxQNKoYPwDFPZ41LAxp5dgtyxkb+J4eWtq0UilWF5thVt4oB1OWwPGtxMmSl+imXXKtq4a4Ov++t2Apo= 11 | node_js: stable 12 | addons: 13 | firefox: latest 14 | apt: 15 | sources: 16 | - google-chrome 17 | packages: 18 | - google-chrome-stable 19 | sauce_connect: true 20 | script: 21 | - xvfb-run wct 22 | - "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi" 23 | dist: trusty 24 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/README.md: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | [![Build status](https://travis-ci.org/PolymerElements/iron-validatable-behavior.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-validatable-behavior) 16 | 17 | _[Demo and API docs](https://elements.polymer-project.org/elements/iron-validatable-behavior)_ 18 | 19 | 20 | ##Polymer.IronValidatableBehavior 21 | 22 | `Use Polymer.IronValidatableBehavior` to implement an element that validates user input. 23 | Use the related `Polymer.IronValidatorBehavior` to add custom validation logic to an iron-input. 24 | 25 | By default, an `` element validates its fields when the user presses the submit button. 26 | To validate a form imperatively, call the form's `validate()` method, which in turn will 27 | call `validate()` on all its children. By using `Polymer.IronValidatableBehavior`, your 28 | custom element will get a public `validate()`, which 29 | will return the validity of the element, and a corresponding `invalid` attribute, 30 | which can be used for styling. 31 | 32 | To implement the custom validation logic of your element, you must override 33 | the protected `_getValidity()` method of this behaviour, rather than `validate()`. 34 | See [this](https://github.com/PolymerElements/iron-form/blob/master/demo/simple-element.html) 35 | for an example. 36 | 37 | ### Accessibility 38 | 39 | Changing the `invalid` property, either manually or by calling `validate()` will update the 40 | `aria-invalid` attribute. 41 | 42 | 43 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iron-validatable-behavior", 3 | "version": "1.1.1", 4 | "description": "Provides a behavior for an element that validates user input", 5 | "authors": "The Polymer Authors", 6 | "keywords": [ 7 | "web-components", 8 | "polymer", 9 | "iron", 10 | "behavior" 11 | ], 12 | "main": "iron-validatable-behavior.html", 13 | "private": true, 14 | "repository": { 15 | "type": "git", 16 | "url": "git://github.com/PolymerElements/iron-validatable-behavior.git" 17 | }, 18 | "license": "http://polymer.github.io/LICENSE.txt", 19 | "homepage": "https://github.com/PolymerElements/iron-validatable-behavior", 20 | "ignore": [], 21 | "dependencies": { 22 | "iron-meta": "PolymerElements/iron-meta#^1.0.0", 23 | "polymer": "Polymer/polymer#^1.0.0" 24 | }, 25 | "devDependencies": { 26 | "paper-styles": "PolymerElements/paper-styles#^1.0.4", 27 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 28 | "iron-validator-behavior": "PolymerElements/iron-validator-behavior#^1.0.0", 29 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 30 | "web-component-tester": "^4.0.0", 31 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/demo/cats-only.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 47 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | iron-validatable-behavior demo 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 37 | 38 | 39 | 40 |
41 |

<iron-validatable-behavior>

42 | 43 | 61 | 62 |
63 | 64 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/demo/validatable-input.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 47 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | iron-validatable-behavior 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/test/cats-only.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 31 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/test/dogs-only.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 31 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/test/index.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | iron-validatable-behavior tests 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /bower_components/iron-validatable-behavior/test/test-validatable.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 16 | 17 | 18 | 30 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-behaviors", 3 | "version": "1.0.12", 4 | "description": "Common behaviors across the paper elements", 5 | "authors": [ 6 | "The Polymer Authors" 7 | ], 8 | "main": [ 9 | "paper-button-behavior.html", 10 | "paper-checked-element-behavior.html", 11 | "paper-inky-focus-behavior.html" 12 | ], 13 | "keywords": [ 14 | "web-components", 15 | "web-component", 16 | "polymer", 17 | "paper", 18 | "behavior" 19 | ], 20 | "private": true, 21 | "repository": { 22 | "type": "git", 23 | "url": "git://github.com/PolymerElements/paper-behaviors" 24 | }, 25 | "license": "http://polymer.github.io/LICENSE.txt", 26 | "homepage": "https://github.com/PolymerElements/paper-behaviors", 27 | "dependencies": { 28 | "iron-behaviors": "PolymerElements/iron-behaviors#^1.0.0", 29 | "iron-checked-element-behavior": "PolymerElements/iron-checked-element-behavior#^1.0.0", 30 | "paper-ripple": "PolymerElements/paper-ripple#^1.0.0", 31 | "polymer": "Polymer/polymer#^1.2.1" 32 | }, 33 | "devDependencies": { 34 | "iron-component-page": "polymerelements/iron-component-page#^1.0.0", 35 | "iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0", 36 | "paper-material": "PolymerElements/paper-material#^1.0.0", 37 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 38 | "web-component-tester": "^4.0.0", 39 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 40 | }, 41 | "ignore": [], 42 | "_release": "1.0.12", 43 | "_resolution": { 44 | "type": "version", 45 | "tag": "v1.0.12", 46 | "commit": "424919089ce3a68dfac1de17e6a56f4e09048e95" 47 | }, 48 | "_source": "git://github.com/PolymerElements/paper-behaviors.git", 49 | "_target": "^1.0.0", 50 | "_originalSource": "PolymerElements/paper-behaviors" 51 | } -------------------------------------------------------------------------------- /bower_components/paper-behaviors/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | ### Description 3 | 4 | 5 | ### Expected outcome 6 | 7 | 8 | 9 | ### Actual outcome 10 | 11 | 12 | 13 | ### Live Demo 14 | 15 | 16 | ### Steps to reproduce 17 | 18 | 23 | 24 | ### Browsers Affected 25 | 26 | - [ ] Chrome 27 | - [ ] Firefox 28 | - [ ] Safari 9 29 | - [ ] Safari 8 30 | - [ ] Safari 7 31 | - [ ] Edge 32 | - [ ] IE 11 33 | - [ ] IE 10 34 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: required 3 | before_script: 4 | - npm install -g bower polylint web-component-tester 5 | - bower install 6 | - polylint 7 | env: 8 | global: 9 | - secure: TYkyKHfqK31bPGX+x388nfvBWtoGhD7lwYYLdunZi2pwvR2N3ngzblklwK/ADgYVDC0y+lZaJsrODvQW2cUxVdQP8p+DifXoOig5b8S2H7HFFFf83gaXv0SJ50rIaKLQmXfBdI0ICFzeQOeJ9TlKvtF3/yn/LDpYftuzgbXIyp4= 10 | - secure: eUlJabqBW3P+MRieHvRcr446jhpV2YYRfZasOh3zh2vkAVsi5R5mPJXVBwk6xP4tdNPbRo0M3boKnMHjoK8AgFolxQwXpVaoOt/oiFUsBFIUNcwKnSdfnadQa6ON5VoDmPd9UhDwES/gq7i906XkV/1jwRKKhPkx1DCyCBfuTvM= 11 | node_js: stable 12 | addons: 13 | firefox: '46.0' 14 | apt: 15 | sources: 16 | - google-chrome 17 | packages: 18 | - google-chrome-stable 19 | sauce_connect: true 20 | script: 21 | - xvfb-run wct 22 | - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s 'default'; fi 23 | dist: trusty 24 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/README.md: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | [![Build status](https://travis-ci.org/PolymerElements/paper-behaviors.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-behaviors) 16 | 17 | _[Demo and API docs](https://elements.polymer-project.org/elements/paper-behaviors)_ 18 | 19 | 20 | 21 | 22 | ##Polymer.PaperCheckedElementBehavior 23 | 24 | Use `Polymer.PaperCheckedElementBehavior` to implement a custom element 25 | that has a `checked` property similar to `Polymer.IronCheckedElementBehavior` 26 | and is compatible with having a ripple effect. 27 | 28 | 29 | 30 | ##Polymer.PaperInkyFocusBehavior 31 | 32 | `Polymer.PaperInkyFocusBehavior` implements a ripple when the element has keyboard focus. 33 | 34 | 35 | 36 | ##Polymer.PaperRippleBehavior 37 | 38 | `Polymer.PaperRippleBehavior` dynamically implements a ripple 39 | when the element has focus via pointer or keyboard. 40 | 41 | NOTE: This behavior is intended to be used in conjunction with and after 42 | `Polymer.IronButtonState` and `Polymer.IronControlState`. 43 | 44 | 45 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-behaviors", 3 | "version": "1.0.12", 4 | "description": "Common behaviors across the paper elements", 5 | "authors": [ 6 | "The Polymer Authors" 7 | ], 8 | "main": [ 9 | "paper-button-behavior.html", 10 | "paper-checked-element-behavior.html", 11 | "paper-inky-focus-behavior.html" 12 | ], 13 | "keywords": [ 14 | "web-components", 15 | "web-component", 16 | "polymer", 17 | "paper", 18 | "behavior" 19 | ], 20 | "private": true, 21 | "repository": { 22 | "type": "git", 23 | "url": "git://github.com/PolymerElements/paper-behaviors" 24 | }, 25 | "license": "http://polymer.github.io/LICENSE.txt", 26 | "homepage": "https://github.com/PolymerElements/paper-behaviors", 27 | "dependencies": { 28 | "iron-behaviors": "PolymerElements/iron-behaviors#^1.0.0", 29 | "iron-checked-element-behavior": "PolymerElements/iron-checked-element-behavior#^1.0.0", 30 | "paper-ripple": "PolymerElements/paper-ripple#^1.0.0", 31 | "polymer": "Polymer/polymer#^1.2.1" 32 | }, 33 | "devDependencies": { 34 | "iron-component-page": "polymerelements/iron-component-page#^1.0.0", 35 | "iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0", 36 | "paper-material": "PolymerElements/paper-material#^1.0.0", 37 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 38 | "web-component-tester": "^4.0.0", 39 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 40 | }, 41 | "ignore": [] 42 | } 43 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | paper-behaviors demo 18 | 19 | 20 | 21 | 22 | 23 | 24 | 31 | 32 | 33 |

Normal

34 | Hello World 35 | 36 |

Toggles

37 | Hello World 38 | 39 |

Disabled

40 | Hello World 41 | 42 |

Radio button with focus state

43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/demo/paper-button.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 54 | 55 | 64 | 65 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/paper-checked-element-behavior.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 58 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/paper-inky-focus-behavior.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 52 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/test/index.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/test/paper-radio-button-behavior.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | paper-radio-button-behavior 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 31 | 32 | 33 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/test/shadowed-ripple.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 45 | 55 | 56 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/test/test-button.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /bower_components/paper-behaviors/test/test-radio-button.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 31 | 32 | 33 | 42 | -------------------------------------------------------------------------------- /bower_components/paper-button/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-button", 3 | "version": "1.0.13", 4 | "description": "Material design button", 5 | "authors": [ 6 | "The Polymer Authors" 7 | ], 8 | "keywords": [ 9 | "web-components", 10 | "web-component", 11 | "polymer", 12 | "paper", 13 | "button" 14 | ], 15 | "main": "paper-button.html", 16 | "private": true, 17 | "repository": { 18 | "type": "git", 19 | "url": "git://github.com/PolymerElements/paper-button.git" 20 | }, 21 | "license": "http://polymer.github.io/LICENSE.txt", 22 | "homepage": "https://github.com/PolymerElements/paper-button", 23 | "dependencies": { 24 | "polymer": "Polymer/polymer#^1.1.0", 25 | "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", 26 | "paper-behaviors": "PolymerElements/paper-behaviors#^1.0.0", 27 | "paper-material": "PolymerElements/paper-material#^1.0.0" 28 | }, 29 | "devDependencies": { 30 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 31 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", 32 | "iron-icon": "PolymerElements/iron-icon#^1.0.0", 33 | "iron-icons": "PolymerElements/iron-icons#^1.0.0", 34 | "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0", 35 | "paper-styles": "PolymerElements/paper-styles#^1.0.0", 36 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 37 | "web-component-tester": "^4.0.0", 38 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 39 | }, 40 | "ignore": [], 41 | "_release": "1.0.13", 42 | "_resolution": { 43 | "type": "version", 44 | "tag": "v1.0.13", 45 | "commit": "649ac0c09fa74b5af258cb6debebba811024f7cc" 46 | }, 47 | "_source": "git://github.com/PolymerElements/paper-button.git", 48 | "_target": "^1.0.12", 49 | "_originalSource": "PolymerElements/paper-button" 50 | } -------------------------------------------------------------------------------- /bower_components/paper-button/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | ### Description 3 | 4 | 5 | ### Expected outcome 6 | 7 | 8 | 9 | ### Actual outcome 10 | 11 | 12 | 13 | ### Live Demo 14 | 15 | 16 | ### Steps to reproduce 17 | 18 | 23 | 24 | ### Browsers Affected 25 | 26 | - [ ] Chrome 27 | - [ ] Firefox 28 | - [ ] Safari 9 29 | - [ ] Safari 8 30 | - [ ] Safari 7 31 | - [ ] Edge 32 | - [ ] IE 11 33 | - [ ] IE 10 34 | -------------------------------------------------------------------------------- /bower_components/paper-button/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | -------------------------------------------------------------------------------- /bower_components/paper-button/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: required 3 | before_script: 4 | - npm install -g bower polylint web-component-tester 5 | - bower install 6 | - polylint 7 | env: 8 | global: 9 | - secure: YhRb8f1f4y3Rjs5wnp4sCzIcEcL07HOBoJcEp6U/KVgIIk/sBxkxMVmZsoUeABrNbKcdE6Gn6OS2K1lFq4VThKppJ0yjvESa1p0FjmQ0Nf1xCYxc46n936xj87khZy3rrTGHxwcOY5vAa5mvNzXI4BYxjmSjmqRsQwsJBsJHWVw= 10 | - secure: eQjSTRxQKF5vyRa6yK2o+j5xWK480hHCKDh7RJQISEVhyzAaCzPZNmWf2pmaDj+ZoZZrahBcoRwOZAiVdHDaKQ+VLHbEECzV3OVV32/9DHi608BPCBdxVR2MDTtZVt3fGVhPQwCnFhwRTWtVVGx8y8HnTDMv/r4xW1OMSThPsbM= 11 | node_js: stable 12 | addons: 13 | firefox: '46.0' 14 | apt: 15 | sources: 16 | - google-chrome 17 | packages: 18 | - google-chrome-stable 19 | sauce_connect: true 20 | script: 21 | - xvfb-run wct 22 | - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s 'default'; fi 23 | dist: trusty 24 | -------------------------------------------------------------------------------- /bower_components/paper-button/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-button", 3 | "version": "1.0.13", 4 | "description": "Material design button", 5 | "authors": [ 6 | "The Polymer Authors" 7 | ], 8 | "keywords": [ 9 | "web-components", 10 | "web-component", 11 | "polymer", 12 | "paper", 13 | "button" 14 | ], 15 | "main": "paper-button.html", 16 | "private": true, 17 | "repository": { 18 | "type": "git", 19 | "url": "git://github.com/PolymerElements/paper-button.git" 20 | }, 21 | "license": "http://polymer.github.io/LICENSE.txt", 22 | "homepage": "https://github.com/PolymerElements/paper-button", 23 | "dependencies": { 24 | "polymer": "Polymer/polymer#^1.1.0", 25 | "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", 26 | "paper-behaviors": "PolymerElements/paper-behaviors#^1.0.0", 27 | "paper-material": "PolymerElements/paper-material#^1.0.0" 28 | }, 29 | "devDependencies": { 30 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 31 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", 32 | "iron-icon": "PolymerElements/iron-icon#^1.0.0", 33 | "iron-icons": "PolymerElements/iron-icons#^1.0.0", 34 | "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0", 35 | "paper-styles": "PolymerElements/paper-styles#^1.0.0", 36 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 37 | "web-component-tester": "^4.0.0", 38 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 39 | }, 40 | "ignore": [] 41 | } 42 | -------------------------------------------------------------------------------- /bower_components/paper-button/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /bower_components/paper-button/test/index.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | paper-button tests 13 | 14 | 15 | 16 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /bower_components/paper-card/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-card", 3 | "version": "1.1.2", 4 | "description": "Material design piece of paper with unique related data", 5 | "authors": [ 6 | "The Polymer Authors" 7 | ], 8 | "keywords": [ 9 | "web-components", 10 | "polymer", 11 | "card" 12 | ], 13 | "main": "paper-card.html", 14 | "private": true, 15 | "repository": { 16 | "type": "git", 17 | "url": "git://github.com/PolymerElements/paper-card.git" 18 | }, 19 | "license": "http://polymer.github.io/LICENSE.txt", 20 | "homepage": "https://github.com/PolymerElements/paper-card", 21 | "ignore": [], 22 | "dependencies": { 23 | "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", 24 | "iron-image": "PolymerElements/iron-image#^1.2.0", 25 | "paper-material": "PolymerElements/paper-material#^1.0.0", 26 | "paper-styles": "PolymerElements/paper-styles#^1.1.0", 27 | "polymer": "Polymer/polymer#^1.1.0" 28 | }, 29 | "devDependencies": { 30 | "iron-collapse": "PolymerElements/iron-collapse#^1.0.0", 31 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 32 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", 33 | "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", 34 | "paper-button": "PolymerElements/paper-button#^1.0.0", 35 | "paper-checkbox": "PolymerElements/paper-checkbox#^1.0.0", 36 | "paper-icon-button": "PolymerElements/paper-icon-button#^1.0.0", 37 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 38 | "web-component-tester": "^4.0.0", 39 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 40 | }, 41 | "_release": "1.1.2", 42 | "_resolution": { 43 | "type": "version", 44 | "tag": "v1.1.2", 45 | "commit": "eef34e36fe62ed4c7c64390c09cc064771b607e4" 46 | }, 47 | "_source": "git://github.com/PolymerElements/paper-card.git", 48 | "_target": "^1.1.1", 49 | "_originalSource": "PolymerElements/paper-card" 50 | } -------------------------------------------------------------------------------- /bower_components/paper-card/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | ### Description 3 | 4 | 5 | ### Expected outcome 6 | 7 | 8 | 9 | ### Actual outcome 10 | 11 | 12 | 13 | ### Live Demo 14 | 15 | 16 | ### Steps to reproduce 17 | 18 | 23 | 24 | ### Browsers Affected 25 | 26 | - [ ] Chrome 27 | - [ ] Firefox 28 | - [ ] Safari 9 29 | - [ ] Safari 8 30 | - [ ] Safari 7 31 | - [ ] Edge 32 | - [ ] IE 11 33 | - [ ] IE 10 34 | -------------------------------------------------------------------------------- /bower_components/paper-card/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components/ 2 | -------------------------------------------------------------------------------- /bower_components/paper-card/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: required 3 | before_script: 4 | - npm install -g bower polylint web-component-tester 5 | - bower install 6 | - polylint 7 | env: 8 | global: 9 | - secure: YkY6O9xjr/gIEyNzSLIUdSiixej4jiYAmNIqvnnuYUm3E26kjr3RLoK6E7L9W0Z3hDsWGu6LOIMY/W+eYzL4bcjk1ir2nKjccQm6Am5kS1lZdjOitGHVbGofX11wfR/BinB6EKs3z4maYF/3knrzSTHm0Ur29IxChv4pHjW1uH4tnKhh3LZ1X+64WR+JtE5woElRJbjj6F3QCKMCFUciPHVg/TP6BvKqhKvia6nEeGH2koRfjx5/+Id5qGgrWtOyNUgU15po+GDts++s5K5ZtxpaMBy1689V30KSJb/p70DOWvkVICKC+9PAPOBnizteX4TTTaIaUday1h6MaFQw5ovQ5XdYIBDwgeIOPXE0YFc4nx8fjrtTJC9ww+kgcWUTX6y0MIGbW1ENSh3/q/Aq4SX6HNB+6n6WfkwuAjCKvUABXJxY3umb+M7IGu7p12UkbUbuq7rAmnKEqFEDt4bfmChWW0O1xSdcC7rDLeO/V8mrd+3cQEz5byOLQGbK35RtXafStuLPBKaqgngSn8iQbYdz5ShMu0UDWS2Ataq6Fbz3TJpiCOhp3yuG0dUiYTSD8RDFMex9m8Au9FdacxH96AcNEILYYYXAUFsJlB2xoRp9T/f3Whz9VQKsJnhswjHz4FWERrcyOhZ1x8LIqbcKzdRk4R38GupHYLvKhZFrlnQ= 10 | - secure: ESwK5pyqySA21n64vbX0Ie5S+M483A5gY2j/ysrZRtF0G1SSjbPz5Yoj4moUwMwvyEIpkiHBNmH7qJJ0j3Zm42U7dnpDIpble2ikkGumD128nVeOf3s+R7IS5ADATkTNQl1B/tj7rt7douJwTAwqbzSy2QvMnxfFnK/7Axp6VtLl6GjcDCvJR+2vFRvfrbnHQtOBVDtr7ncGIaPWgcl8lyYV+es11IAo2vY3Oja0V8N7VRyc7C8OwheI0/pCN3Hw5waX8Od946JI21NMZGkzaZPLGh4UYcVRMvYJZLpIm12AZmvfE3OO54JumiZ+UoWNGWWtKXBsJPNsLR//NjgJZIG5lBuhlblZYaW798FZOmAeG06YjOkHYSEiMglFfNtv4ug4KFWogEuzdlTISXFhW7gSp5sTumasgs2Z61qS6ipkFvYJLGU/MdXhICCHlG2a2lnKXymz3sILqvWc4uoZxXov6mSIoi6KpG1zAgwOLSsw+JZ25A2vfU9YKXSdMteXRUTfo6WCNASXrQNOcvOfyNigGs40qAPVMYOvqsQSUi2mOmRXd/xMc57BAlu2swTpDvpzverrDv3rVujCxG4PZOgrC4Z4Z25TQp8r8SsDNO2F0OREGOjayhqEKS7QmYY+jLvYF2Wa0Hmb6xN9uLOhaYREjtCHt/DfBLAiSU4x+A8= 11 | node_js: stable 12 | addons: 13 | firefox: '46.0' 14 | apt: 15 | sources: 16 | - google-chrome 17 | packages: 18 | - google-chrome-stable 19 | sauce_connect: true 20 | script: 21 | - xvfb-run wct 22 | - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s 'default'; fi 23 | dist: trusty 24 | -------------------------------------------------------------------------------- /bower_components/paper-card/README.md: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | [![Build status](https://travis-ci.org/PolymerElements/paper-card.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-card) 16 | 17 | _[Demo and API docs](https://elements.polymer-project.org/elements/paper-card)_ 18 | 19 | 20 | ##<paper-card> 21 | 22 | Material design: [Cards](https://www.google.com/design/spec/components/cards.html) 23 | 24 | `paper-card` is a container with a drop shadow. 25 | 26 | Example: 27 | 28 | ```html 29 | 30 |
Some content
31 |
32 | Some action 33 |
34 |
35 | ``` 36 | 37 | Example - top card image: 38 | 39 | ```html 40 | 41 | ... 42 | 43 | ``` 44 | 45 | ### Accessibility 46 | 47 | By default, the `aria-label` will be set to the value of the `heading` attribute. 48 | 49 | ### Styling 50 | 51 | The following custom properties and mixins are available for styling: 52 | 53 | | Custom property | Description | Default | 54 | | --- | --- | --- | 55 | | `--paper-card-background-color` | The background color of the card | `--primary-background-color` | 56 | | `--paper-card-header-color` | The color of the header text | `#000` | 57 | | `--paper-card-header` | Mixin applied to the card header section | `{}` | 58 | | `--paper-card-header-text` | Mixin applied to the title in the card header section | `{}` | 59 | | `--paper-card-header-image` | Mixin applied to the image in the card header section | `{}` | 60 | | `--paper-card-header-image-text` | Mixin applied to the text overlapping the image in the card header section | `{}` | 61 | | `--paper-card-content` | Mixin applied to the card content section | `{}` | 62 | | `--paper-card-actions` | Mixin applied to the card action section | `{}` | 63 | | `--paper-card` | Mixin applied to the card | `{}` | 64 | 65 | 66 | -------------------------------------------------------------------------------- /bower_components/paper-card/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-card", 3 | "version": "1.1.2", 4 | "description": "Material design piece of paper with unique related data", 5 | "authors": [ 6 | "The Polymer Authors" 7 | ], 8 | "keywords": [ 9 | "web-components", 10 | "polymer", 11 | "card" 12 | ], 13 | "main": "paper-card.html", 14 | "private": true, 15 | "repository": { 16 | "type": "git", 17 | "url": "git://github.com/PolymerElements/paper-card.git" 18 | }, 19 | "license": "http://polymer.github.io/LICENSE.txt", 20 | "homepage": "https://github.com/PolymerElements/paper-card", 21 | "ignore": [], 22 | "dependencies": { 23 | "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", 24 | "iron-image": "PolymerElements/iron-image#^1.2.0", 25 | "paper-material": "PolymerElements/paper-material#^1.0.0", 26 | "paper-styles": "PolymerElements/paper-styles#^1.1.0", 27 | "polymer": "Polymer/polymer#^1.1.0" 28 | }, 29 | "devDependencies": { 30 | "iron-collapse": "PolymerElements/iron-collapse#^1.0.0", 31 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 32 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", 33 | "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", 34 | "paper-button": "PolymerElements/paper-button#^1.0.0", 35 | "paper-checkbox": "PolymerElements/paper-checkbox#^1.0.0", 36 | "paper-icon-button": "PolymerElements/paper-icon-button#^1.0.0", 37 | "test-fixture": "PolymerElements/test-fixture#^1.0.0", 38 | "web-component-tester": "^4.0.0", 39 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /bower_components/paper-card/demo/cafe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinlebrun/elm-polymer/848991324f014eb3791a1cf6e6df11a8545993eb/bower_components/paper-card/demo/cafe.png -------------------------------------------------------------------------------- /bower_components/paper-card/demo/donuts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinlebrun/elm-polymer/848991324f014eb3791a1cf6e6df11a8545993eb/bower_components/paper-card/demo/donuts.png -------------------------------------------------------------------------------- /bower_components/paper-card/demo/house.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinlebrun/elm-polymer/848991324f014eb3791a1cf6e6df11a8545993eb/bower_components/paper-card/demo/house.png -------------------------------------------------------------------------------- /bower_components/paper-card/demo/travel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinlebrun/elm-polymer/848991324f014eb3791a1cf6e6df11a8545993eb/bower_components/paper-card/demo/travel.png -------------------------------------------------------------------------------- /bower_components/paper-card/demo/trip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinlebrun/elm-polymer/848991324f014eb3791a1cf6e6df11a8545993eb/bower_components/paper-card/demo/trip.png -------------------------------------------------------------------------------- /bower_components/paper-card/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | paper-card 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /bower_components/paper-card/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | paper-card tests 16 | 17 | 18 | 19 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /bower_components/paper-material/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-material", 3 | "version": "1.0.6", 4 | "description": "A material design container that looks like a lifted sheet of paper", 5 | "private": true, 6 | "authors": [ 7 | "The Polymer Authors" 8 | ], 9 | "keywords": [ 10 | "web-components", 11 | "web-component", 12 | "polymer", 13 | "paper", 14 | "container" 15 | ], 16 | "main": "paper-material.html", 17 | "repository": { 18 | "type": "git", 19 | "url": "git://github.com/PolymerElements/paper-material" 20 | }, 21 | "license": "http://polymer.github.io/LICENSE.txt", 22 | "homepage": "https://github.com/PolymerElements/paper-material", 23 | "ignore": [], 24 | "dependencies": { 25 | "polymer": "Polymer/polymer#^1.1.0", 26 | "paper-styles": "polymerelements/paper-styles#^1.0.0" 27 | }, 28 | "devDependencies": { 29 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", 30 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", 31 | "web-component-tester": "^4.0.0", 32 | "test-fixture": "polymerelements/test-fixture#^1.0.0", 33 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0" 34 | }, 35 | "_release": "1.0.6", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v1.0.6", 39 | "commit": "6aef0896fcbc25f9f5bd1dd55f7679e6ab7f92ad" 40 | }, 41 | "_source": "git://github.com/PolymerElements/paper-material.git", 42 | "_target": "^1.0.0", 43 | "_originalSource": "PolymerElements/paper-material" 44 | } -------------------------------------------------------------------------------- /bower_components/paper-material/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | -------------------------------------------------------------------------------- /bower_components/paper-material/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: false 3 | before_script: 4 | - npm install -g bower polylint web-component-tester 5 | - bower install 6 | - polylint 7 | env: 8 | global: 9 | - secure: PEaqY+YpV0ZhnQbJlNQbmfIFLqy7UvvCtii0sPoGKT5/P7ulMqMOPQV9l/zLAtYi14HEz63FKLqDrpnGaVe7Cz7jtt2WRWrWqTBdarqwSHs73Z2XqztD1+2wW6vgz/lfK00B8UplAk28B7d5dbWzwUF6Kg02zOfQMsawMpulFjo= 10 | - secure: f/3XYrYjM8aXLe9kqM/MjHQ6IEsDRuoxDqM+l2JiR3v2Nw7lP6ZyXSNvKm8bN+VNU7ubSzAmRbUGnRU7e61BhnGzuLXjOqxYeJLWZaqoSm9TDz3re3rd7wB2ddAhRokeSSPO2KeAgr6C02P9M3Au1DiO1G66fuWVH62WtzW4+qY= 11 | - CXX=g++-4.8 12 | node_js: stable 13 | addons: 14 | firefox: latest 15 | apt: 16 | sources: 17 | - google-chrome 18 | - ubuntu-toolchain-r-test 19 | packages: 20 | - google-chrome-stable 21 | - g++-4.8 22 | sauce_connect: true 23 | script: 24 | - xvfb-run wct 25 | - "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi" 26 | -------------------------------------------------------------------------------- /bower_components/paper-material/README.md: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | [![Build Status](https://travis-ci.org/PolymerElements/paper-material.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-material) 16 | 17 | _[Demo and API Docs](https://elements.polymer-project.org/elements/paper-material)_ 18 | 19 | 20 | ##<paper-material> 21 | 22 | Material design: [Cards](https://www.google.com/design/spec/components/cards.html) 23 | 24 | `paper-material` is a container that renders two shadows on top of each other to 25 | create the effect of a lifted piece of paper. 26 | 27 | Example: 28 | 29 | ```html 30 | 31 | ... content ... 32 | 33 | ``` 34 | 35 | 36 | -------------------------------------------------------------------------------- /bower_components/paper-material/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-material", 3 | "version": "1.0.6", 4 | "description": "A material design container that looks like a lifted sheet of paper", 5 | "private": true, 6 | "authors": [ 7 | "The Polymer Authors" 8 | ], 9 | "keywords": [ 10 | "web-components", 11 | "web-component", 12 | "polymer", 13 | "paper", 14 | "container" 15 | ], 16 | "main": "paper-material.html", 17 | "repository": { 18 | "type": "git", 19 | "url": "git://github.com/PolymerElements/paper-material" 20 | }, 21 | "license": "http://polymer.github.io/LICENSE.txt", 22 | "homepage": "https://github.com/PolymerElements/paper-material", 23 | "ignore": [], 24 | "dependencies": { 25 | "polymer": "Polymer/polymer#^1.1.0", 26 | "paper-styles": "polymerelements/paper-styles#^1.0.0" 27 | }, 28 | "devDependencies": { 29 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", 30 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", 31 | "web-component-tester": "^4.0.0", 32 | "test-fixture": "polymerelements/test-fixture#^1.0.0", 33 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /bower_components/paper-material/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | paper-material 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /bower_components/paper-material/paper-material-shared-styles.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 42 | 43 | -------------------------------------------------------------------------------- /bower_components/paper-material/paper-material.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 30 | 31 | 32 | 42 | 43 | 79 | -------------------------------------------------------------------------------- /bower_components/paper-material/test/index.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | paper-material tests 13 | 14 | 15 | 16 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /bower_components/paper-ripple/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-ripple", 3 | "version": "1.0.8", 4 | "license": "http://polymer.github.io/LICENSE.txt", 5 | "description": "Adds a material design ripple to any container", 6 | "private": true, 7 | "authors": [ 8 | "The Polymer Authors" 9 | ], 10 | "keywords": [ 11 | "web-components", 12 | "polymer", 13 | "ripple" 14 | ], 15 | "repository": { 16 | "type": "git", 17 | "url": "git://github.com/PolymerElements/paper-ripple.git" 18 | }, 19 | "main": "paper-ripple.html", 20 | "dependencies": { 21 | "iron-a11y-keys-behavior": "polymerelements/iron-a11y-keys-behavior#^1.1.5", 22 | "polymer": "Polymer/polymer#^1.1.0" 23 | }, 24 | "devDependencies": { 25 | "iron-component-page": "polymerelements/iron-component-page#^1.0.0", 26 | "iron-icon": "polymerelements/iron-icon#^1.0.0", 27 | "iron-icons": "polymerelements/iron-icons#^1.0.0", 28 | "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0", 29 | "paper-styles": "polymerelements/paper-styles#^1.0.0", 30 | "test-fixture": "polymerelements/test-fixture#^1.0.0", 31 | "web-component-tester": "^4.0.0", 32 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 33 | }, 34 | "ignore": [], 35 | "homepage": "https://github.com/PolymerElements/paper-ripple", 36 | "_release": "1.0.8", 37 | "_resolution": { 38 | "type": "version", 39 | "tag": "v1.0.8", 40 | "commit": "eb1c01cac162b7ce7e78760d5c0df61c9a5c2974" 41 | }, 42 | "_source": "git://github.com/PolymerElements/paper-ripple.git", 43 | "_target": "^1.0.0", 44 | "_originalSource": "PolymerElements/paper-ripple" 45 | } -------------------------------------------------------------------------------- /bower_components/paper-ripple/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | ### Description 3 | 4 | 5 | ### Expected outcome 6 | 7 | 8 | 9 | ### Actual outcome 10 | 11 | 12 | 13 | ### Live Demo 14 | 15 | 16 | ### Steps to reproduce 17 | 18 | 23 | 24 | ### Browsers Affected 25 | 26 | - [ ] Chrome 27 | - [ ] Firefox 28 | - [ ] Safari 9 29 | - [ ] Safari 8 30 | - [ ] Safari 7 31 | - [ ] Edge 32 | - [ ] IE 11 33 | - [ ] IE 10 34 | -------------------------------------------------------------------------------- /bower_components/paper-ripple/.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | -------------------------------------------------------------------------------- /bower_components/paper-ripple/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: required 3 | before_script: 4 | - npm install -g bower polylint web-component-tester 5 | - bower install 6 | - polylint 7 | env: 8 | global: 9 | - secure: YrC5bTrJwlszZQWfnRwDbLaZNLf+KnWXTAfzvul7eij21W3/v+E0wp9pFTLQj/G3bZWgOEZSsoXxASNcNu1JUmJRyLXpJgTps25IlS/VJTRHoK7jUjt5pJG1CbcgTixQblyOVtPqT6j0V23V0d3mhQ3H2xFBbcl87iYO1w+6nmQ= 10 | - secure: NZv74uwtibMbmarEOWRUNkEwjz/2akWEIe2JDxglag2JUECWrcAKJIQUqYsO0KNUIg09xJEqWLWED4fN73p3z27Jl/z99ssVMvPQt8duoxwZ6UwcjVWUQNjgXKN6JDZCf+3hJsmU51Lp6mpzj0Y5m8nCjhh7/bBnJahH+VRm7bA= 11 | node_js: stable 12 | addons: 13 | firefox: '46.0' 14 | apt: 15 | sources: 16 | - google-chrome 17 | packages: 18 | - google-chrome-stable 19 | sauce_connect: true 20 | script: 21 | - xvfb-run wct 22 | - "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi" 23 | dist: trusty 24 | -------------------------------------------------------------------------------- /bower_components/paper-ripple/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-ripple", 3 | "version": "1.0.8", 4 | "license": "http://polymer.github.io/LICENSE.txt", 5 | "description": "Adds a material design ripple to any container", 6 | "private": true, 7 | "authors": [ 8 | "The Polymer Authors" 9 | ], 10 | "keywords": [ 11 | "web-components", 12 | "polymer", 13 | "ripple" 14 | ], 15 | "repository": { 16 | "type": "git", 17 | "url": "git://github.com/PolymerElements/paper-ripple.git" 18 | }, 19 | "main": "paper-ripple.html", 20 | "dependencies": { 21 | "iron-a11y-keys-behavior": "polymerelements/iron-a11y-keys-behavior#^1.1.5", 22 | "polymer": "Polymer/polymer#^1.1.0" 23 | }, 24 | "devDependencies": { 25 | "iron-component-page": "polymerelements/iron-component-page#^1.0.0", 26 | "iron-icon": "polymerelements/iron-icon#^1.0.0", 27 | "iron-icons": "polymerelements/iron-icons#^1.0.0", 28 | "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0", 29 | "paper-styles": "polymerelements/paper-styles#^1.0.0", 30 | "test-fixture": "polymerelements/test-fixture#^1.0.0", 31 | "web-component-tester": "^4.0.0", 32 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 33 | }, 34 | "ignore": [] 35 | } 36 | -------------------------------------------------------------------------------- /bower_components/paper-ripple/hero.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /bower_components/paper-ripple/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | paper-ripple 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /bower_components/paper-ripple/test/index.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | Tests 13 | 14 | 15 | 16 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /bower_components/paper-styles/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-styles", 3 | "version": "1.1.4", 4 | "description": "Common (global) styles for Material Design elements.", 5 | "authors": [ 6 | "The Polymer Authors" 7 | ], 8 | "keywords": [ 9 | "web-component", 10 | "polymer", 11 | "style" 12 | ], 13 | "repository": { 14 | "type": "git", 15 | "url": "git://github.com/PolymerElements/paper-styles.git" 16 | }, 17 | "main": "paper-styles.html", 18 | "license": "http://polymer.github.io/LICENSE.txt", 19 | "homepage": "https://github.com/polymerelements/paper-styles/", 20 | "ignore": [ 21 | "/.*" 22 | ], 23 | "dependencies": { 24 | "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", 25 | "font-roboto": "PolymerElements/font-roboto#^1.0.1", 26 | "polymer": "Polymer/polymer#^1.0.0" 27 | }, 28 | "devDependencies": { 29 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", 30 | "iron-component-page": "polymerelements/iron-component-page#^1.0.0", 31 | "web-component-tester": "^4.0.0" 32 | }, 33 | "_release": "1.1.4", 34 | "_resolution": { 35 | "type": "version", 36 | "tag": "v1.1.4", 37 | "commit": "885bbd74db88dab4fb5dc229cdf994c55fb2b31b" 38 | }, 39 | "_source": "git://github.com/polymerelements/paper-styles.git", 40 | "_target": "^1.0.0", 41 | "_originalSource": "polymerelements/paper-styles" 42 | } -------------------------------------------------------------------------------- /bower_components/paper-styles/README.md: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | [![Build status](https://travis-ci.org/PolymerElements/paper-styles.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-styles) 16 | 17 | _[Demo and API docs](https://elements.polymer-project.org/elements/paper-styles)_ 18 | 19 | 20 | ##<paper-styles> 21 | 22 | The `` component provides simple ways to use Material Design CSS styles 23 | in your application. The following imports are available: 24 | 25 | 1. [color.html](https://github.com/PolymerElements/paper-styles/blob/master/color.html): 26 | a complete list of the colors defined in the Material Design [palette](https://www.google.com/design/spec/style/color.html) 27 | 28 | 29 | 1. [default-theme.html](https://github.com/PolymerElements/paper-styles/blob/master/default-theme.html): text, 30 | background and accent colors that match the default Material Design theme 31 | 32 | 33 | 1. [shadow.html](https://github.com/PolymerElements/paper-styles/blob/master/shadow.html): Material Design 34 | [elevation](https://www.google.com/design/spec/what-is-material/elevation-shadows.html) and shadow styles 35 | 36 | 37 | 1. [typography.html](https://github.com/PolymerElements/paper-styles/blob/master/typography.html): 38 | Material Design [font](http://www.google.com/design/spec/style/typography.html#typography-styles) styles and sizes 39 | 40 | 41 | 1. [demo-pages.html](https://github.com/PolymerElements/paper-styles/blob/master/demo-pages.html): generic styles 42 | used in the PolymerElements demo pages 43 | 44 | 45 | 46 | We recommend importing each of these individual files, and using the style mixins 47 | available in each ones, rather than the aggregated `paper-styles.html` as a whole. 48 | 49 | 50 | -------------------------------------------------------------------------------- /bower_components/paper-styles/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paper-styles", 3 | "version": "1.1.4", 4 | "description": "Common (global) styles for Material Design elements.", 5 | "authors": [ 6 | "The Polymer Authors" 7 | ], 8 | "keywords": [ 9 | "web-component", 10 | "polymer", 11 | "style" 12 | ], 13 | "repository": { 14 | "type": "git", 15 | "url": "git://github.com/PolymerElements/paper-styles.git" 16 | }, 17 | "main": "paper-styles.html", 18 | "license": "http://polymer.github.io/LICENSE.txt", 19 | "homepage": "https://github.com/polymerelements/paper-styles/", 20 | "ignore": [ 21 | "/.*" 22 | ], 23 | "dependencies": { 24 | "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", 25 | "font-roboto": "PolymerElements/font-roboto#^1.0.1", 26 | "polymer": "Polymer/polymer#^1.0.0" 27 | }, 28 | "devDependencies": { 29 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", 30 | "iron-component-page": "polymerelements/iron-component-page#^1.0.0", 31 | "web-component-tester": "^4.0.0" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /bower_components/paper-styles/classes/global.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 16 | 97 | -------------------------------------------------------------------------------- /bower_components/paper-styles/classes/shadow.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 53 | -------------------------------------------------------------------------------- /bower_components/paper-styles/demo-pages.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 73 | -------------------------------------------------------------------------------- /bower_components/paper-styles/demo.css: -------------------------------------------------------------------------------- 1 | /** 2 | @license 3 | Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 4 | This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt 5 | The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 6 | The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt 7 | Code distributed by Google as part of the polymer project is also 8 | subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt 9 | 10 | */ 11 | body { 12 | font-family: 'Roboto', 'Noto', sans-serif; 13 | font-size: 14px; 14 | margin: 0; 15 | padding: 24px; 16 | } 17 | 18 | section { 19 | padding: 20px 0; 20 | } 21 | 22 | section > div { 23 | padding: 14px; 24 | font-size: 16px; 25 | } 26 | -------------------------------------------------------------------------------- /bower_components/paper-styles/index.html: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | paper-styles 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /bower_components/paper-styles/paper-styles-classes.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /bower_components/paper-styles/paper-styles.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /bower_components/paper-styles/shadow.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 72 | -------------------------------------------------------------------------------- /bower_components/polymer/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "polymer", 3 | "version": "1.6.1", 4 | "main": [ 5 | "polymer.html", 6 | "polymer-mini.html", 7 | "polymer-micro.html" 8 | ], 9 | "license": "http://polymer.github.io/LICENSE.txt", 10 | "ignore": [ 11 | "/.*", 12 | "/test/", 13 | "/util/", 14 | "/explainer/", 15 | "gulpfile.js", 16 | "PRIMER.md", 17 | "CONTRIBUTING.md", 18 | "CHANGELOG.md" 19 | ], 20 | "authors": [ 21 | "The Polymer Authors (http://polymer.github.io/AUTHORS.txt)" 22 | ], 23 | "repository": { 24 | "type": "git", 25 | "url": "https://github.com/Polymer/polymer.git" 26 | }, 27 | "dependencies": { 28 | "webcomponentsjs": "^0.7.20" 29 | }, 30 | "devDependencies": { 31 | "web-component-tester": "*", 32 | "iron-component-page": "polymerElements/iron-component-page#^1.1.6" 33 | }, 34 | "private": true, 35 | "homepage": "https://github.com/Polymer/polymer", 36 | "_release": "1.6.1", 37 | "_resolution": { 38 | "type": "version", 39 | "tag": "v1.6.1", 40 | "commit": "1f197d9d7874b1e5808b2a5c26f34446a7d912fc" 41 | }, 42 | "_source": "git://github.com/Polymer/polymer.git", 43 | "_target": "^1.5.0", 44 | "_originalSource": "Polymer/polymer" 45 | } -------------------------------------------------------------------------------- /bower_components/polymer/LICENSE.txt: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The Polymer Authors. All rights reserved. 2 | // 3 | // Redistribution and use in source and binary forms, with or without 4 | // modification, are permitted provided that the following conditions are 5 | // met: 6 | // 7 | // * Redistributions of source code must retain the above copyright 8 | // notice, this list of conditions and the following disclaimer. 9 | // * Redistributions in binary form must reproduce the above 10 | // copyright notice, this list of conditions and the following disclaimer 11 | // in the documentation and/or other materials provided with the 12 | // distribution. 13 | // * Neither the name of Google Inc. nor the names of its 14 | // contributors may be used to endorse or promote products derived from 15 | // this software without specific prior written permission. 16 | // 17 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /bower_components/polymer/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "polymer", 3 | "version": "1.6.1", 4 | "main": [ 5 | "polymer.html", 6 | "polymer-mini.html", 7 | "polymer-micro.html" 8 | ], 9 | "license": "http://polymer.github.io/LICENSE.txt", 10 | "ignore": [ 11 | "/.*", 12 | "/test/", 13 | "/util/", 14 | "/explainer/", 15 | "gulpfile.js", 16 | "PRIMER.md", 17 | "CONTRIBUTING.md", 18 | "CHANGELOG.md" 19 | ], 20 | "authors": [ 21 | "The Polymer Authors (http://polymer.github.io/AUTHORS.txt)" 22 | ], 23 | "repository": { 24 | "type": "git", 25 | "url": "https://github.com/Polymer/polymer.git" 26 | }, 27 | "dependencies": { 28 | "webcomponentsjs": "^0.7.20" 29 | }, 30 | "devDependencies": { 31 | "web-component-tester": "*", 32 | "iron-component-page": "polymerElements/iron-component-page#^1.1.6" 33 | }, 34 | "private": true 35 | } 36 | -------------------------------------------------------------------------------- /bower_components/webcomponentsjs/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "webcomponentsjs", 3 | "main": "webcomponents.js", 4 | "version": "0.7.22", 5 | "homepage": "http://webcomponents.org", 6 | "authors": [ 7 | "The Polymer Authors" 8 | ], 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/webcomponents/webcomponentsjs.git" 12 | }, 13 | "keywords": [ 14 | "webcomponents" 15 | ], 16 | "license": "BSD", 17 | "ignore": [], 18 | "devDependencies": { 19 | "web-component-tester": "^4.0.1" 20 | }, 21 | "_release": "0.7.22", 22 | "_resolution": { 23 | "type": "version", 24 | "tag": "v0.7.22", 25 | "commit": "50f9751f8e638301603aebb33ba9f1e90d2b0d32" 26 | }, 27 | "_source": "https://github.com/Polymer/webcomponentsjs.git", 28 | "_target": "^0.7.20", 29 | "_originalSource": "webcomponentsjs" 30 | } -------------------------------------------------------------------------------- /bower_components/webcomponentsjs/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "webcomponentsjs", 3 | "main": "webcomponents.js", 4 | "version": "0.7.22", 5 | "homepage": "http://webcomponents.org", 6 | "authors": [ 7 | "The Polymer Authors" 8 | ], 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/webcomponents/webcomponentsjs.git" 12 | }, 13 | "keywords": [ 14 | "webcomponents" 15 | ], 16 | "license": "BSD", 17 | "ignore": [], 18 | "devDependencies": { 19 | "web-component-tester": "^4.0.1" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /bower_components/webcomponentsjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "webcomponents.js", 3 | "version": "0.7.22", 4 | "description": "webcomponents.js", 5 | "main": "webcomponents.js", 6 | "directories": { 7 | "test": "tests" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/webcomponents/webcomponentsjs.git" 12 | }, 13 | "author": "The Polymer Authors", 14 | "license": "BSD-3-Clause", 15 | "bugs": { 16 | "url": "https://github.com/webcomponents/webcomponentsjs/issues" 17 | }, 18 | "scripts": { 19 | "test": "wct" 20 | }, 21 | "homepage": "http://webcomponents.org", 22 | "devDependencies": { 23 | "gulp": "^3.8.8", 24 | "gulp-audit": "^1.0.0", 25 | "gulp-concat": "^2.4.1", 26 | "gulp-header": "^1.1.1", 27 | "gulp-uglify": "^1.0.1", 28 | "run-sequence": "^1.0.1", 29 | "web-component-tester": "^4.0.1" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | elm make counter-elm-with-paper-components/Counter.elm --output counter-elm-with-paper-components/card.js 4 | elm make counter-elm-with-paper-components-keyed-nodes/Counter.elm --output counter-elm-with-paper-components-keyed-nodes/card.js 5 | elm make counter-elm-inside-polymer/Counter.elm --output counter-elm-inside-polymer/counter.js 6 | elm make counter-everything-on-top/Counter.elm --output counter-everything-on-top/counter.js 7 | elm make counter-polymer-inside-elm/Main.elm --output counter-polymer-inside-elm/main.js 8 | elm make counter-elm/Counter.elm --output counter-elm/counter.js 9 | elm make best-of-web-2017-elm-polymer/Counter.elm --output best-of-web-2017-elm-polymer/counter.js 10 | -------------------------------------------------------------------------------- /counter-elm-inside-polymer/Counter.elm: -------------------------------------------------------------------------------- 1 | port module Counter exposing (..) 2 | 3 | import Html exposing (..) 4 | import Html.Events exposing (..) 5 | 6 | 7 | type alias Model = 8 | Int 9 | 10 | 11 | init : { a | value : Int } -> ( Model, Cmd Msg ) 12 | init flags = 13 | ( flags.value, Cmd.none ) 14 | 15 | 16 | view : Model -> Html Msg 17 | view model = 18 | div [] 19 | [ button [ onClick Decrement ] [ text "-" ] 20 | , span [] [ text <| toString model ] 21 | , button [ onClick Increment ] [ text "+" ] 22 | ] 23 | 24 | 25 | type Msg 26 | = Increment 27 | | Decrement 28 | | Set Model 29 | 30 | 31 | update : Msg -> Model -> ( Model, Cmd Msg ) 32 | update msg model = 33 | case msg of 34 | Increment -> 35 | let 36 | new = 37 | model + 1 38 | in 39 | ( new, change new ) 40 | 41 | Decrement -> 42 | let 43 | new = 44 | model - 1 45 | in 46 | ( new, change new ) 47 | 48 | Set value -> 49 | ( value, change value ) 50 | 51 | 52 | main : Program { value : Int } Model Msg 53 | main = 54 | programWithFlags 55 | { init = init 56 | , view = view 57 | , update = update 58 | , subscriptions = \_ -> set Set 59 | } 60 | 61 | 62 | port change : Model -> Cmd msg 63 | 64 | 65 | port set : (Model -> msg) -> Sub msg 66 | -------------------------------------------------------------------------------- /counter-elm-inside-polymer/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Elm counter inside Polymer 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |

In the document,
the value is 1

15 | 16 | 17 | 18 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /counter-elm-inside-polymer/my-elm-counter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 36 | 37 | -------------------------------------------------------------------------------- /counter-elm-with-paper-components-keyed-nodes/Counter.elm: -------------------------------------------------------------------------------- 1 | module Card exposing (..) 2 | 3 | import Html exposing (..) 4 | import Html.Attributes exposing (..) 5 | import Html.Events exposing (..) 6 | import Html.Keyed 7 | 8 | 9 | type alias Model = 10 | Int 11 | 12 | 13 | init : ( Model, Cmd Msg ) 14 | init = 15 | ( 3, Cmd.none ) 16 | 17 | 18 | paperCard = 19 | node "paper-card" 20 | 21 | 22 | paperButton = 23 | node "paper-button" 24 | 25 | 26 | view : Model -> Html Msg 27 | view model = 28 | Html.Keyed.node "div" 29 | [] 30 | [ ( toString model 31 | , paperCard [ attribute "heading" ("Counter: " ++ (toString model)) ] 32 | [ div [ class "card-content" ] [ text (toString model) ] 33 | , div [ class "card-actions" ] 34 | [ paperButton [ onClick Decrement ] [ text "Decrement" ] 35 | , paperButton [ onClick Increment ] [ text "Increment" ] 36 | ] 37 | ] 38 | ) 39 | ] 40 | 41 | 42 | type Msg 43 | = Increment 44 | | Decrement 45 | 46 | 47 | update : Msg -> Model -> ( Model, Cmd Msg ) 48 | update msg model = 49 | case msg of 50 | Increment -> 51 | ( model + 1, Cmd.none ) 52 | 53 | Decrement -> 54 | ( model - 1, Cmd.none ) 55 | 56 | 57 | main : Program Never Model Msg 58 | main = 59 | program 60 | { init = init 61 | , view = view 62 | , update = update 63 | , subscriptions = \_ -> Sub.none 64 | } 65 | -------------------------------------------------------------------------------- /counter-elm-with-paper-components-keyed-nodes/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Card Counter with keyed nodes 5 | 6 | 7 | 8 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /counter-elm-with-paper-components-not-working/Counter.elm: -------------------------------------------------------------------------------- 1 | module Card exposing (..) 2 | 3 | import Html exposing (..) 4 | import Html.Attributes exposing (..) 5 | import Html.Events exposing (..) 6 | 7 | 8 | type alias Model = 9 | Int 10 | 11 | 12 | init : ( Model, Cmd Msg ) 13 | init = 14 | ( 3, Cmd.none ) 15 | 16 | 17 | paperCard = 18 | node "paper-card" 19 | 20 | 21 | paperButton = 22 | node "paper-button" 23 | 24 | 25 | view : Model -> Html Msg 26 | view model = 27 | div [] 28 | [ paperCard 29 | [ attribute "heading" ("Counter: " ++ (toString model)) ] 30 | [ div [ class "card-content" ] [ text (toString model) ] 31 | , div [ class "card-actions" ] 32 | [ paperButton [ onClick Decrement ] [ text "Decrement" ] 33 | , paperButton [ onClick Increment ] [ text "Increment" ] 34 | ] 35 | ] 36 | ] 37 | 38 | 39 | type Msg 40 | = Increment 41 | | Decrement 42 | 43 | 44 | update : Msg -> Model -> ( Model, Cmd Msg ) 45 | update msg model = 46 | case msg of 47 | Increment -> 48 | ( model + 1, Cmd.none ) 49 | 50 | Decrement -> 51 | ( model - 1, Cmd.none ) 52 | 53 | 54 | main : Program Never Model Msg 55 | main = 56 | program 57 | { init = init 58 | , view = view 59 | , update = update 60 | , subscriptions = \_ -> Sub.none 61 | } 62 | -------------------------------------------------------------------------------- /counter-elm-with-paper-components-not-working/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Card Counter 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /counter-elm-with-paper-components/Counter.elm: -------------------------------------------------------------------------------- 1 | module Card exposing (..) 2 | 3 | import Html exposing (..) 4 | import Html.Attributes exposing (..) 5 | import Html.Events exposing (..) 6 | 7 | 8 | type alias Model = 9 | Int 10 | 11 | 12 | init : ( Model, Cmd Msg ) 13 | init = 14 | ( 3, Cmd.none ) 15 | 16 | 17 | paperCard = 18 | node "paper-card" 19 | 20 | 21 | paperButton = 22 | node "paper-button" 23 | 24 | 25 | view : Model -> Html Msg 26 | view model = 27 | div [] 28 | [ paperCard 29 | [ attribute "heading" ("Counter: " ++ (toString model)) ] 30 | [ div [ class "card-content" ] [ text (toString model) ] 31 | , div [ class "card-actions" ] 32 | [ paperButton [ onClick Decrement ] [ text "Decrement" ] 33 | , paperButton [ onClick Increment ] [ text "Increment" ] 34 | ] 35 | ] 36 | ] 37 | 38 | 39 | type Msg 40 | = Increment 41 | | Decrement 42 | 43 | 44 | update : Msg -> Model -> ( Model, Cmd Msg ) 45 | update msg model = 46 | case msg of 47 | Increment -> 48 | ( model + 1, Cmd.none ) 49 | 50 | Decrement -> 51 | ( model - 1, Cmd.none ) 52 | 53 | 54 | main : Program Never Model Msg 55 | main = 56 | program 57 | { init = init 58 | , view = view 59 | , update = update 60 | , subscriptions = \_ -> Sub.none 61 | } 62 | -------------------------------------------------------------------------------- /counter-elm-with-paper-components/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Card Counter 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /counter-elm/Counter.elm: -------------------------------------------------------------------------------- 1 | module Counter exposing (..) 2 | 3 | import Html exposing (..) 4 | import Html.Events exposing (..) 5 | 6 | 7 | type alias Model = 8 | Int 9 | 10 | 11 | view : Model -> Html Msg 12 | view model = 13 | div [] 14 | [ button [ onClick Decrement ] [ text "-" ] 15 | , span [] [ text <| toString model ] 16 | , button [ onClick Increment ] [ text "+" ] 17 | ] 18 | 19 | 20 | type Msg 21 | = Increment 22 | | Decrement 23 | 24 | 25 | update : Msg -> Model -> Model 26 | update msg model = 27 | case msg of 28 | Increment -> 29 | model + 1 30 | 31 | Decrement -> 32 | model - 1 33 | 34 | 35 | main : Program Never Model Msg 36 | main = 37 | beginnerProgram 38 | { model = 0 39 | , view = view 40 | , update = update 41 | } 42 | -------------------------------------------------------------------------------- /counter-elm/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Counter Elm 5 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /counter-everything-on-top/Counter.elm: -------------------------------------------------------------------------------- 1 | port module Counter exposing (..) 2 | 3 | import Html exposing (..) 4 | import Html.Events exposing (..) 5 | 6 | 7 | type alias Model = 8 | Int 9 | 10 | 11 | init : { a | value : Int } -> ( Model, Cmd Msg ) 12 | init flags = 13 | ( flags.value, Cmd.none ) 14 | 15 | 16 | view : Model -> Html Msg 17 | view model = 18 | div [] 19 | [ button [ onClick Decrement ] [ text "-" ] 20 | , span [] [ text <| toString model ] 21 | , button [ onClick Increment ] [ text "+" ] 22 | ] 23 | 24 | 25 | type Msg 26 | = Increment 27 | | Decrement 28 | | Set Model 29 | 30 | 31 | update : Msg -> Model -> ( Model, Cmd Msg ) 32 | update msg model = 33 | case msg of 34 | Increment -> 35 | let 36 | new = 37 | model + 1 38 | in 39 | ( new, change new ) 40 | 41 | Decrement -> 42 | let 43 | new = 44 | model - 1 45 | in 46 | ( new, change new ) 47 | 48 | Set value -> 49 | ( value, change value ) 50 | 51 | 52 | main : Program { value : Int } Model Msg 53 | main = 54 | programWithFlags 55 | { init = init 56 | , view = view 57 | , update = update 58 | , subscriptions = \_ -> set Set 59 | } 60 | 61 | 62 | port change : Model -> Cmd msg 63 | 64 | 65 | port set : (Model -> msg) -> Sub msg 66 | -------------------------------------------------------------------------------- /counter-everything-on-top/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Counter with everything on top 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |

In the document,
the value is 0

15 | 16 |
17 | 18 | 19 | 20 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /counter-everything-on-top/my-counter-controls.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 19 | 20 | -------------------------------------------------------------------------------- /counter-polymer-inside-elm/Main.elm: -------------------------------------------------------------------------------- 1 | port module Main exposing (..) 2 | 3 | import Html exposing (..) 4 | import Html.Attributes exposing (..) 5 | import Html.Events exposing (..) 6 | import Json.Decode as Json 7 | 8 | 9 | type alias Model = 10 | Int 11 | 12 | 13 | init : { a | value : Int } -> ( Model, Cmd Msg ) 14 | init flags = 15 | ( flags.value, Cmd.none ) 16 | 17 | 18 | detailValue = 19 | Json.at [ "detail", "value" ] Json.int 20 | 21 | 22 | onValueChanged tagger = 23 | on "value-changed" <| Json.map tagger detailValue 24 | 25 | 26 | value = 27 | attribute "value" 28 | 29 | 30 | myCounter = 31 | node "my-counter" 32 | 33 | 34 | view : Model -> Html Msg 35 | view model = 36 | div [] 37 | [ myCounter [ value <| toString model, onValueChanged Change ] [] 38 | , p [] 39 | [ text "Controls:" 40 | , button [ onClick Reset ] [ text "Reset" ] 41 | ] 42 | ] 43 | 44 | 45 | helpMessage model = 46 | p [ class "help" ] [ text <| "My help message" ++ (toString model) ] 47 | 48 | 49 | type Msg 50 | = NoOp 51 | | Change Int 52 | | Reset 53 | 54 | 55 | update : Msg -> Model -> ( Model, Cmd Msg ) 56 | update msg model = 57 | case msg of 58 | Change v -> 59 | ( v, change v ) 60 | 61 | Reset -> 62 | ( 0, change 0 ) 63 | 64 | NoOp -> 65 | ( model, Cmd.none ) 66 | 67 | 68 | main : Program { value : Int } Model Msg 69 | main = 70 | programWithFlags 71 | { init = init 72 | , view = view 73 | , update = update 74 | , subscriptions = \_ -> Sub.none 75 | } 76 | 77 | 78 | port change : Model -> Cmd msg 79 | -------------------------------------------------------------------------------- /counter-polymer-inside-elm/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Polymer counter inside Elm 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |

In the document,
the value is 2

15 | 16 |
17 | 18 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /counter-polymer-inside-elm/my-counter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | 34 | 35 | -------------------------------------------------------------------------------- /counter-polymer/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Counter Polymer 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /counter-polymer/my-counter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | 39 | 40 | -------------------------------------------------------------------------------- /elm-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | "summary": "Some thoughts on how to integrate Polymer with Elm", 4 | "repository": "https://github.com/kevinlebrun/elm-polymer-sandbox.git", 5 | "license": "MIT", 6 | "source-directories": [ 7 | "." 8 | ], 9 | "exposed-modules": [], 10 | "dependencies": { 11 | "elm-lang/core": "5.1.1 <= v < 6.0.0", 12 | "elm-lang/html": "2.0.0 <= v < 3.0.0" 13 | }, 14 | "elm-version": "0.18.0 <= v < 0.19.0" 15 | } 16 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "elm-polymer", 3 | "version": "1.0.0", 4 | "description": "Thoughts on how to integrate Polymer with Elm", 5 | "dependencies": { 6 | "elm": "^0.18.0" 7 | }, 8 | "devDependencies": {}, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/kevinlebrun/elm-polymer-sandbox.git" 12 | }, 13 | "author": "Kevin LE BRUN ", 14 | "license": "MIT", 15 | "bugs": { 16 | "url": "https://github.com/kevinlebrun/elm-polymer-sandbox/issues" 17 | }, 18 | "scripts": { 19 | "postinstall": "bower install && elm-package install && sh ./build.sh" 20 | }, 21 | "homepage": "https://github.com/kevinlebrun/elm-polymer-sandbox#readme" 22 | } 23 | --------------------------------------------------------------------------------