Skip to content

Commit f4cafd6

Browse files
committed
init
1 parent d14c10a commit f4cafd6

File tree

5 files changed

+20
-100
lines changed

5 files changed

+20
-100
lines changed

Diff for: .eslintignore

-2
This file was deleted.

Diff for: .eslintrc.json

-30
This file was deleted.

Diff for: README.md

+3-53
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/fooloomanzoo/color-picker)
2-
[![API](https://img.shields.io/badge/API-available-green.svg)](https://www.webcomponents.org/element/fooloomanzoo/color-picker/elements/color-picker)
3-
[![Demo](https://img.shields.io/badge/demo-available-red.svg)](https://www.webcomponents.org/element/fooloomanzoo/color-picker/demo/demo/color-picker.html)
1+
[![Published on NPM](https://img.shields.io/npm/v/@fooloomanzoo/color-input.svg)](https://www.npmjs.com/package/@fooloomanzoo/color-picker)
2+
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/@fooloomanzoo/color-picker)
43
[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/fooloomanzoocolor-picker)
54

65
_[Demo and API docs](https://fooloomanzoo.github.io/color-picker/components/color-picker/)_
@@ -14,7 +13,7 @@ _[Demo and API docs](https://fooloomanzoo.github.io/color-picker/components/colo
1413

1514
Internally it tests the browser, if native input-type `color` is supported. You can decide to use the native or the replacements during runtime. `color-element` can also be used separately. By default, the polyfilled version is used.
1615

17-
It might be useful for you to use, if you like to keep the native approach of Browsers on Mobile Devices, or you like to have a different look or you would like to have a guaranteed working **color-picker**. Another use case could be for example, if you want on _mobile devices_ use the native picker, when supported, and on _desktop devices_ this polyfill.
16+
It might be useful for you to use, if you like to keep the native approach of Browsers on Mobile Devices, or you like to have a different look or you would like to have a guaranteed working **color-picker**. Another use case could be for example, if you want on _mobile devices_ use the native picker, when supported, and on _desktop devices_ this polyfill.
1817

1918
For that purposes the attributes **native** and **native-on-mobile** are provided.
2019

@@ -30,28 +29,6 @@ The **[component page](https://fooloomanzoo.github.io/color-picker/components/co
3029
Examples:
3130

3231
#### color-picker
33-
34-
<!--
35-
```
36-
<custom-element-demo height="300">
37-
<template>
38-
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
39-
<link rel="import" href="color-picker.html">
40-
<style>
41-
html {
42-
font-family: 'Source Sans Pro', sans-serif;
43-
}
44-
</style>
45-
<dom-bind>
46-
<template is="dom-bind">
47-
<next-code-block></next-code-block>
48-
</template>
49-
</dom-bind>
50-
</template>
51-
</custom-element-demo>
52-
```
53-
-->
54-
5532
```html
5633
<color-picker r="{{r}}" g="{{g}}" b="{{b}}" default="green" native="[[native]]" auto-confirm="[[autoConfirm]]"></color-picker>
5734
<p>
@@ -70,28 +47,6 @@ Examples:
7047
```
7148

7249
#### Stand-alone color-element
73-
74-
<!--
75-
```
76-
<custom-element-demo height="300">
77-
<template>
78-
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
79-
<link rel="import" href="color-picker.html">
80-
<style>
81-
html {
82-
font-family: 'Source Sans Pro', sans-serif;
83-
}
84-
</style>
85-
<dom-bind>
86-
<template is="dom-bind">
87-
<next-code-block></next-code-block>
88-
</template>
89-
</dom-bind>
90-
</template>
91-
</custom-element-demo>
92-
```
93-
-->
94-
9550
```html
9651
<color-element alpha="{{alpha}}" r="{{r}}" g="{{g}}" b="{{b}}" h="{{h}}" s="{{s}}" l="{{l}}" format="{{format}}"></color-element><br>
9752
<p>
@@ -128,13 +83,8 @@ Have a look at [input-picker-pattern#input-shared-style](https://github.com/fool
12883

12984
### Installation
13085
```
131-
bower install --save fooloomanzoo/color-picker
132-
```
133-
or
134-
```
13586
npm install --save @fooloomanzoo/color-picker
13687
```
13788

138-
13989
### Contribute?
14090
Feel free to send a new issue, a commit, a pull request or just fork it!

Diff for: package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
],
1818
"main": "index.html",
1919
"scripts": {
20-
"prepublish": "npm run build && git add . && git commit -m \"publish new version\" && npm version patch && git push",
21-
"gh-pages": "git checkout gh-pages && git pull && bower update -f && git add . && git commit -m \"update\" && git push && git checkout master",
22-
"build": "git pull && bower update && npm run analyze",
20+
"prepublishOnly": "npm run build && git add . && git commit -m \"publish new version\" && npm version patch && git push",
21+
"gh-pages": "git checkout gh-pages && git pull && npm update -f && git add . && git commit -m \"update\" && git push && git checkout master",
22+
"build": "git pull && npm update && npm run analyze",
2323
"start": "npm run analyze && polymer serve -o",
2424
"analyze": "polymer analyze > analysis.json",
2525
"test": "polymer test",
@@ -31,16 +31,16 @@
3131
},
3232
"license": "MIT",
3333
"dependencies": {
34-
"@polymer/polymer": "^2.6.1",
35-
"@fooloomanzoo/input-picker-pattern": "^2",
36-
"@fooloomanzoo/color-input": "^2"
34+
"@polymer/polymer": "^3",
35+
"@fooloomanzoo/input-picker-pattern": "^3",
36+
"@fooloomanzoo/color-input": "^3"
3737
},
3838
"devDependencies": {
3939
"web-component-tester": "^6.5.0",
40-
"@webcomponents/webcomponentsjs": "^1",
41-
"@polymer/iron-component-page": "^3",
42-
"@polymer/iron-flex-layout": "^2",
43-
"@polymer/iron-demo-helpers": "^2",
44-
"@polymer/iron-form": "^2"
40+
"@webcomponents/webcomponentsjs": "^2",
41+
"@polymer/iron-component-page": "^4",
42+
"@polymer/iron-flex-layout": "^3",
43+
"@polymer/iron-demo-helpers": "^3",
44+
"@polymer/iron-form": "^3"
4545
}
4646
}

Diff for: polymer.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2+
"npm": true,
3+
"modules": "node",
24
"sources": [
3-
"color-element.html",
4-
"color-picker.html",
5-
"overlay-color-picker.html"
5+
"color-element.js",
6+
"color-picker.js",
7+
"overlay-color-picker.js"
68
],
79
"lint": {
810
"rules": [
9-
"polymer-2"
11+
"polymer-3"
1012
]
1113
}
1214
}

0 commit comments

Comments
 (0)