Directory

paper-swatch-picker - Vaadin Add-on Directory

A color picker with all the Material Design colours paper-swatch-picker - Vaadin Add-on Directory
[![Published on NPM](https://img.shields.io/npm/v/@polymer/paper-swatch-picker.svg)](https://www.npmjs.com/package/@polymer/paper-swatch-picker) [![Build status](https://travis-ci.org/PolymerElements/paper-swatch-picker.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-swatch-picker) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://webcomponents.org/element/@polymer/paper-swatch-picker) ## <paper-swatch-picker> `` is a simple color picker element that will allow you to choose one of the Material Design colors from a list of available swatches. See: [Documentation](https://www.webcomponents.org/element/@polymer/paper-swatch-picker), [Demo](https://www.webcomponents.org/element/@polymer/paper-swatch-picker/demo/demo/index.html). ## Usage ### Installation ``` npm install --save @polymer/paper-swatch-picker ``` ### In an html file ```html ``` ### In a Polymer 3 element ```js import {PolymerElement, html} from '@polymer/polymer'; import '@polymer/paper-swatch-picker/paper-swatch-picker.js'; class SampleElement extends PolymerElement { static get template() { return html` `; } } customElements.define('sample-element', SampleElement); ``` ## Contributing If you want to send a PR to this element, here are the instructions for running the tests and demo locally: ### Installation ```sh git clone https://github.com/PolymerElements/paper-swatch-picker cd paper-swatch-picker npm install npm install -g polymer-cli ``` ### Running the demo locally ```sh polymer serve --npm open http://127.0.0.1:/demo/ ``` ### Running the tests ```sh polymer test --npm ``` [![Published on NPM](https://img.shields.io/npm/v/@polymer/paper-swatch-picker.svg)](https://www.npmjs.com/package/@polymer/paper-swatch-picker) [![Build status](https://travis-ci.org/PolymerElements/paper-swatch-picker.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-swatch-picker) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://webcomponents.org/element/@polymer/paper-swatch-picker) ## <paper-swatch-picker> `` is a single-line text field with Material Design styling. See: [Documentation](https://www.webcomponents.org/element/@polymer/paper-swatch-picker), [Demo](https://www.webcomponents.org/element/@polymer/paper-swatch-picker/demo/demo/index.html). ## Usage ### Installation ``` npm install --save @polymer/paper-swatch-picker ``` ### In an html file ```html ``` ### In a Polymer 3 element ```js import {PolymerElement, html} from '@polymer/polymer'; import '@polymer/paper-swatch-picker/paper-swatch-picker.js'; class SampleElement extends PolymerElement { static get template() { return html` `; } } customElements.define('sample-element', SampleElement); ``` ## Contributing If you want to send a PR to this element, here are the instructions for running the tests and demo locally: ### Installation ```sh git clone https://github.com/PolymerElements/paper-swatch-picker cd paper-swatch-picker npm install npm install -g polymer-cli ``` ### Running the demo locally ```sh polymer serve --npm open http://127.0.0.1:/demo/ ``` ### Running the tests ```sh polymer test --npm ```
Documentation
View on GitHub
Online Demo
View on NPM
GitHub Homepage
Issue tracker
License

paper-swatch-picker version 1.0.0
### Dependencies * iron-iconset-svg#PolymerElements/iron-iconset-svg#^1.0.0 * iron-flex-layout#PolymerElements/iron-flex-layout#^1.0.0 * paper-icon-button#PolymerElements/paper-icon-button#^1.0.0 * paper-item#PolymerElements/paper-item#^1.0.0 * paper-listbox#PolymerElements/paper-listbox#^1.1.1 * paper-menu-button#PolymerElements/paper-menu-button#^1.0.0 * polymer#Polymer/polymer#^1.1.0

paper-swatch-picker version 1.0.1
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#^1.0.0 * iron-iconset-svg#PolymerElements/iron-iconset-svg#^1.0.0 * paper-icon-button#PolymerElements/paper-icon-button#^1.0.0 * paper-item#PolymerElements/paper-item#^1.0.0 * paper-listbox#PolymerElements/paper-listbox#^1.1.1 * paper-menu-button#PolymerElements/paper-menu-button#^1.0.0 * polymer#Polymer/polymer#^1.1.0

paper-swatch-picker version 1.0.2
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#^1.0.0 * iron-iconset-svg#PolymerElements/iron-iconset-svg#^1.0.0 * paper-icon-button#PolymerElements/paper-icon-button#^1.0.0 * paper-item#PolymerElements/paper-item#^1.0.0 * paper-listbox#PolymerElements/paper-listbox#^1.1.1 * paper-menu-button#PolymerElements/paper-menu-button#^1.0.0 * polymer#Polymer/polymer#^1.1.0

paper-swatch-picker version 2.0.0
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#1 - 2 * iron-iconset-svg#PolymerElements/iron-iconset-svg#1 - 2 * paper-icon-button#PolymerElements/paper-icon-button#1 - 2 * paper-item#PolymerElements/paper-item#1 - 2 * paper-listbox#PolymerElements/paper-listbox#1 - 2 * paper-menu-button#PolymerElements/paper-menu-button#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-swatch-picker version 2.0.1
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#1 - 2 * iron-iconset-svg#PolymerElements/iron-iconset-svg#1 - 2 * paper-icon-button#PolymerElements/paper-icon-button#1 - 2 * paper-item#PolymerElements/paper-item#1 - 2 * paper-listbox#PolymerElements/paper-listbox#1 - 2 * paper-menu-button#PolymerElements/paper-menu-button#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-swatch-picker version 3.0.0-pre.1
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.1 * @polymer/iron-iconset-svg#^3.0.0-pre.1 * @polymer/paper-icon-button#^3.0.0-pre.1 * @polymer/paper-item#^3.0.0-pre.1 * @polymer/paper-listbox#^3.0.0-pre.1 * @polymer/paper-menu-button#^3.0.0-pre.1 * @polymer/polymer#^3.0.0-pre.1

paper-swatch-picker version 3.0.0-pre.2
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.1 * @polymer/iron-iconset-svg#^3.0.0-pre.1 * @polymer/paper-icon-button#^3.0.0-pre.1 * @polymer/paper-item#^3.0.0-pre.1 * @polymer/paper-listbox#^3.0.0-pre.1 * @polymer/paper-menu-button#^3.0.0-pre.1 * @polymer/polymer#^3.0.0-pre.1

paper-swatch-picker version 3.0.0-pre.3
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.3 * @polymer/iron-iconset-svg#^3.0.0-pre.3 * @polymer/paper-icon-button#^3.0.0-pre.3 * @polymer/paper-item#^3.0.0-pre.3 * @polymer/paper-listbox#^3.0.0-pre.3 * @polymer/paper-menu-button#^3.0.0-pre.3 * @polymer/polymer#^3.0.0-pre.3

paper-swatch-picker version 3.0.0-pre.4
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.4 * @polymer/iron-iconset-svg#^3.0.0-pre.4 * @polymer/paper-icon-button#^3.0.0-pre.4 * @polymer/paper-item#^3.0.0-pre.4 * @polymer/paper-listbox#^3.0.0-pre.4 * @polymer/paper-menu-button#^3.0.0-pre.4 * @polymer/polymer#^3.0.0-pre.4

paper-swatch-picker version 3.0.0-pre.6
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.6 * @polymer/iron-iconset-svg#^3.0.0-pre.6 * @polymer/paper-icon-button#^3.0.0-pre.6 * @polymer/paper-item#^3.0.0-pre.6 * @polymer/paper-listbox#^3.0.0-pre.6 * @polymer/paper-menu-button#^3.0.0-pre.6 * @polymer/polymer#^3.0.0-pre.6

paper-swatch-picker version 3.0.0-pre.7
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.7 * @polymer/iron-iconset-svg#^3.0.0-pre.7 * @polymer/paper-icon-button#^3.0.0-pre.7 * @polymer/paper-item#^3.0.0-pre.7 * @polymer/paper-listbox#^3.0.0-pre.7 * @polymer/paper-menu-button#^3.0.0-pre.7 * @polymer/polymer#^3.0.0-pre.7

paper-swatch-picker version 2.0.2
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#1 - 2 * iron-iconset-svg#PolymerElements/iron-iconset-svg#1 - 2 * paper-icon-button#PolymerElements/paper-icon-button#1 - 2 * paper-item#PolymerElements/paper-item#1 - 2 * paper-listbox#PolymerElements/paper-listbox#1 - 2 * paper-menu-button#PolymerElements/paper-menu-button#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-swatch-picker version 3.0.0-pre.8
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.7 * @polymer/iron-iconset-svg#^3.0.0-pre.7 * @polymer/paper-icon-button#^3.0.0-pre.7 * @polymer/paper-item#^3.0.0-pre.7 * @polymer/paper-listbox#^3.0.0-pre.7 * @polymer/paper-menu-button#^3.0.0-pre.7 * @polymer/polymer#^3.0.0-pre.7

paper-swatch-picker version 3.0.0-pre.10
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.10 * @polymer/iron-iconset-svg#^3.0.0-pre.10 * @polymer/paper-icon-button#^3.0.0-pre.10 * @polymer/paper-item#^3.0.0-pre.10 * @polymer/paper-listbox#^3.0.0-pre.10 * @polymer/paper-menu-button#^3.0.0-pre.10 * @polymer/polymer#^3.0.0-pre.10

paper-swatch-picker version 2.1.0
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#1 - 2 * iron-iconset-svg#PolymerElements/iron-iconset-svg#1 - 2 * paper-icon-button#PolymerElements/paper-icon-button#1 - 2 * paper-item#PolymerElements/paper-item#1 - 2 * paper-listbox#PolymerElements/paper-listbox#1 - 2 * paper-menu-button#PolymerElements/paper-menu-button#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-swatch-picker version 2.1.1
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#1 - 2 * iron-iconset-svg#PolymerElements/iron-iconset-svg#1 - 2 * paper-icon-button#PolymerElements/paper-icon-button#1 - 2 * paper-item#PolymerElements/paper-item#1 - 2 * paper-listbox#PolymerElements/paper-listbox#1 - 2 * paper-menu-button#PolymerElements/paper-menu-button#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-swatch-picker version 2.2.0
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#1 - 2 * iron-iconset-svg#PolymerElements/iron-iconset-svg#1 - 2 * paper-icon-button#PolymerElements/paper-icon-button#1 - 2 * paper-item#PolymerElements/paper-item#1 - 2 * paper-listbox#PolymerElements/paper-listbox#1 - 2 * paper-menu-button#PolymerElements/paper-menu-button#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-swatch-picker version 3.0.0-pre.11
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.10 * @polymer/iron-iconset-svg#^3.0.0-pre.10 * @polymer/paper-icon-button#^3.0.0-pre.10 * @polymer/paper-item#^3.0.0-pre.10 * @polymer/paper-listbox#^3.0.0-pre.10 * @polymer/paper-menu-button#^3.0.0-pre.10 * @polymer/polymer#^3.0.0-pre.10

paper-swatch-picker version 3.0.0-pre.12
### Dependencies * @polymer/iron-flex-layout#3.0.0-pre.12 * @polymer/iron-iconset-svg#3.0.0-pre.12 * @polymer/paper-icon-button#3.0.0-pre.12 * @polymer/paper-item#3.0.0-pre.12 * @polymer/paper-listbox#3.0.0-pre.12 * @polymer/paper-menu-button#3.0.0-pre.12 * @polymer/polymer#3.0.0-pre.12

paper-swatch-picker version 3.0.0-pre.13
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.13 * @polymer/iron-iconset-svg#^3.0.0-pre.13 * @polymer/paper-icon-button#^3.0.0-pre.13 * @polymer/paper-item#^3.0.0-pre.13 * @polymer/paper-listbox#^3.0.0-pre.13 * @polymer/paper-menu-button#^3.0.0-pre.13 * @polymer/polymer#^3.0.0-pre.13

paper-swatch-picker version 3.0.0-pre.14
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.14 * @polymer/iron-iconset-svg#^3.0.0-pre.14 * @polymer/paper-icon-button#^3.0.0-pre.14 * @polymer/paper-item#^3.0.0-pre.14 * @polymer/paper-listbox#^3.0.0-pre.14 * @polymer/paper-menu-button#^3.0.0-pre.14 * @polymer/polymer#^3.0.0-pre.13

paper-swatch-picker version 3.0.0-pre.15
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.15 * @polymer/iron-iconset-svg#^3.0.0-pre.15 * @polymer/paper-icon-button#^3.0.0-pre.15 * @polymer/paper-item#^3.0.0-pre.15 * @polymer/paper-listbox#^3.0.0-pre.15 * @polymer/paper-menu-button#^3.0.0-pre.15 * @polymer/polymer#^3.0.0-pre.13

paper-swatch-picker version 3.0.0-pre.16
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.16 * @polymer/iron-iconset-svg#^3.0.0-pre.16 * @polymer/paper-icon-button#^3.0.0-pre.16 * @polymer/paper-item#^3.0.0-pre.16 * @polymer/paper-listbox#^3.0.0-pre.16 * @polymer/paper-menu-button#^3.0.0-pre.16 * @polymer/polymer#^3.0.0-pre.13

paper-swatch-picker version 3.0.0-pre.17
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.17 * @polymer/iron-iconset-svg#^3.0.0-pre.17 * @polymer/paper-icon-button#^3.0.0-pre.17 * @polymer/paper-item#^3.0.0-pre.17 * @polymer/paper-listbox#^3.0.0-pre.17 * @polymer/paper-menu-button#^3.0.0-pre.17 * @polymer/polymer#^3.0.0-pre.13

paper-swatch-picker version 3.0.0-pre.18
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.18 * @polymer/iron-iconset-svg#^3.0.0-pre.18 * @polymer/paper-icon-button#^3.0.0-pre.18 * @polymer/paper-item#^3.0.0-pre.18 * @polymer/paper-listbox#^3.0.0-pre.18 * @polymer/paper-menu-button#^3.0.0-pre.18 * @polymer/polymer#^3.0.0

paper-swatch-picker version 3.0.0-pre.19
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.19 * @polymer/iron-iconset-svg#^3.0.0-pre.19 * @polymer/paper-icon-button#^3.0.0-pre.19 * @polymer/paper-item#^3.0.0-pre.19 * @polymer/paper-listbox#^3.0.0-pre.19 * @polymer/paper-menu-button#^3.0.0-pre.19 * @polymer/polymer#^3.0.0

paper-swatch-picker version 2.2.1
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#1 - 2 * iron-iconset-svg#PolymerElements/iron-iconset-svg#1 - 2 * paper-icon-button#PolymerElements/paper-icon-button#1 - 2 * paper-item#PolymerElements/paper-item#1 - 2 * paper-listbox#PolymerElements/paper-listbox#1 - 2 * paper-menu-button#PolymerElements/paper-menu-button#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-swatch-picker version 3.0.0-pre.20
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.20 * @polymer/iron-iconset-svg#^3.0.0-pre.20 * @polymer/paper-icon-button#^3.0.0-pre.20 * @polymer/paper-item#^3.0.0-pre.20 * @polymer/paper-listbox#^3.0.0-pre.20 * @polymer/paper-menu-button#^3.0.0-pre.20 * @polymer/polymer#^3.0.0

paper-swatch-picker version 3.0.0-pre.21
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.21 * @polymer/iron-iconset-svg#^3.0.0-pre.21 * @polymer/paper-icon-button#^3.0.0-pre.21 * @polymer/paper-item#^3.0.0-pre.21 * @polymer/paper-listbox#^3.0.0-pre.21 * @polymer/paper-menu-button#^3.0.0-pre.21 * @polymer/polymer#^3.0.0

paper-swatch-picker version 3.0.0-pre.22
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.20 * @polymer/iron-iconset-svg#^3.0.0-pre.20 * @polymer/paper-icon-button#^3.0.0-pre.20 * @polymer/paper-item#^3.0.0-pre.20 * @polymer/paper-listbox#^3.0.0-pre.20 * @polymer/paper-menu-button#^3.0.0-pre.20 * @polymer/polymer#^3.0.0

paper-swatch-picker version 3.0.0-pre.23
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.22 * @polymer/iron-iconset-svg#^3.0.0-pre.22 * @polymer/paper-icon-button#^3.0.0-pre.22 * @polymer/paper-item#^3.0.0-pre.22 * @polymer/paper-listbox#^3.0.0-pre.22 * @polymer/paper-menu-button#^3.0.0-pre.22 * @polymer/polymer#^3.0.0

paper-swatch-picker version 3.0.0-pre.24
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.22 * @polymer/iron-iconset-svg#^3.0.0-pre.22 * @polymer/paper-icon-button#^3.0.0-pre.22 * @polymer/paper-item#^3.0.0-pre.22 * @polymer/paper-listbox#^3.0.0-pre.22 * @polymer/paper-menu-button#^3.0.0-pre.22 * @polymer/polymer#^3.0.0

paper-swatch-picker version 3.0.0-pre.25
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.24 * @polymer/iron-iconset-svg#^3.0.0-pre.24 * @polymer/paper-icon-button#^3.0.0-pre.24 * @polymer/paper-item#^3.0.0-pre.24 * @polymer/paper-listbox#^3.0.0-pre.24 * @polymer/paper-menu-button#^3.0.0-pre.24 * @polymer/polymer#^3.0.0

paper-swatch-picker version 3.0.0-pre.26
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.25 * @polymer/iron-iconset-svg#^3.0.0-pre.25 * @polymer/paper-icon-button#^3.0.0-pre.25 * @polymer/paper-item#^3.0.0-pre.25 * @polymer/paper-listbox#^3.0.0-pre.25 * @polymer/paper-menu-button#^3.0.0-pre.25 * @polymer/polymer#^3.0.0

paper-swatch-picker version 3.0.0
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.26 * @polymer/iron-iconset-svg#^3.0.0-pre.26 * @polymer/paper-icon-button#^3.0.0-pre.26 * @polymer/paper-item#^3.0.0-pre.26 * @polymer/paper-listbox#^3.0.0-pre.26 * @polymer/paper-menu-button#^3.0.0-pre.26 * @polymer/polymer#^3.0.0

paper-swatch-picker version 3.0.1
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.26 * @polymer/iron-iconset-svg#^3.0.0-pre.26 * @polymer/paper-icon-button#^3.0.0-pre.26 * @polymer/paper-item#^3.0.0-pre.26 * @polymer/paper-listbox#^3.0.0-pre.26 * @polymer/paper-menu-button#^3.0.0-pre.26 * @polymer/polymer#^3.0.0