@vaadin/vaadin-checkbox
Advanced tools
Comparing version 2.0.0-pre.2 to 2.0.0-pre.3
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-checkbox", | ||
"version": "2.0.0-pre.2", | ||
"version": "2.0.0-pre.3", | ||
"main": "vaadin-checkbox.js", | ||
@@ -25,20 +25,21 @@ "author": "Vaadin Ltd", | ||
"supports-color": "3.1.2", | ||
"type-detect": "1.0.0" | ||
"type-detect": "1.0.0", | ||
"@webcomponents/webcomponentsjs": "2.0.0-beta.2" | ||
}, | ||
"dependencies": { | ||
"@polymer/polymer": "^3.0.0-pre.12", | ||
"@vaadin/vaadin-control-state-mixin": "^2.0.3-pre.1", | ||
"@vaadin/vaadin-themable-mixin": "^1.1.5-pre.1", | ||
"@vaadin/vaadin-lumo-styles": "^1.0.0-pre.1", | ||
"@vaadin/vaadin-element-mixin": "^1.0.2-pre.1" | ||
"@polymer/polymer": "^3.0.0-pre.13", | ||
"@vaadin/vaadin-control-state-mixin": "^2.0.3-pre.2", | ||
"@vaadin/vaadin-themable-mixin": "^1.1.5-pre.2", | ||
"@vaadin/vaadin-lumo-styles": "^1.0.0-pre.4", | ||
"@vaadin/vaadin-element-mixin": "^1.0.2-pre.2" | ||
}, | ||
"devDependencies": { | ||
"@polymer/iron-component-page": "^3.0.0-pre.12", | ||
"@polymer/iron-demo-helpers": "^3.0.0-pre.12", | ||
"@polymer/iron-test-helpers": "^3.0.0-pre.12", | ||
"@webcomponents/webcomponentsjs": "^1.0.0", | ||
"wct-browser-legacy": "0.0.1-pre.11", | ||
"@polymer/iron-component-page": "^3.0.0-pre.15", | ||
"@polymer/iron-demo-helpers": "^3.0.0-pre.15", | ||
"@polymer/iron-test-helpers": "^3.0.0-pre.15", | ||
"@webcomponents/webcomponentsjs": "^2.0.0-beta.2", | ||
"wct-browser-legacy": "^0.0.1-pre.11", | ||
"@vaadin/vaadin-demo-helpers": "^1.2.5-pre.1", | ||
"@polymer/iron-form": "^3.0.0-pre.12" | ||
"@polymer/iron-form": "^3.0.0-pre.15" | ||
} | ||
} |
@@ -13,3 +13,3 @@ ![Bower version](https://img.shields.io/bower/v/vaadin-checkbox.svg) | ||
[<vaadin-checkbox>](https://vaadin.com/components/vaadin-checkbox) is a [Polymer 2](http://polymer-project.org) element providing an accessible and customizable checkbox, part of the [Vaadin components](https://vaadin.com/components). | ||
[<vaadin-checkbox>](https://vaadin.com/components/vaadin-checkbox) is a Web Component providing an accessible and customizable checkbox, part of the [Vaadin components](https://vaadin.com/components). | ||
@@ -35,2 +35,38 @@ <!-- | ||
## Installation | ||
The Vaadin components are distributed as Bower and npm packages. | ||
Please note that the version range is the same, as the API has not changed. | ||
You should not mix Bower and npm versions in the same application, though. | ||
Unlike the official Polymer Elements, the converted Polymer 3 compatible Vaadin components | ||
are only published on npm, not pushed to GitHub repositories. | ||
### Polymer 2 and HTML Imports Compatible Version | ||
Install `vaadin-checkbox`: | ||
```sh | ||
bower i vaadin/vaadin-checkbox --save | ||
``` | ||
Once installed, import it in your application: | ||
```html | ||
<link rel="import" href="bower_components/vaadin-checkbox/vaadin-checkbox.html"> | ||
``` | ||
### Polymer 3 and ES Modules Compatible Version | ||
Install `vaadin-checkbox`: | ||
```sh | ||
npm i @vaadin/vaadin-checkbox --save | ||
``` | ||
Once installed, import it in your application: | ||
```js | ||
import '@vaadin/vaadin-checkbox/vaadin-checkbox.js'; | ||
``` | ||
## Getting Started | ||
@@ -37,0 +73,0 @@ |
@@ -0,2 +1,8 @@ | ||
/** | ||
@license | ||
Copyright (c) 2017 Vaadin Ltd. | ||
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import { PolymerElement } from '@polymer/polymer/polymer-element.js'; | ||
import { GestureEventListeners } from '@polymer/polymer/lib/mixins/gesture-event-listeners.js'; | ||
@@ -101,3 +107,3 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
static get version() { | ||
return '2.0.0-pre.2'; | ||
return '2.0.0-pre.3'; | ||
} | ||
@@ -104,0 +110,0 @@ |
import '@vaadin/vaadin-lumo-styles/color.js'; | ||
import '@vaadin/vaadin-lumo-styles/style.js'; | ||
const $_documentContainer = document.createElement('div'); | ||
const $_documentContainer = document.createElement('template'); | ||
$_documentContainer.setAttribute('style', 'display: none;'); | ||
@@ -175,2 +175,2 @@ | ||
document.head.appendChild($_documentContainer); | ||
document.head.appendChild($_documentContainer.content); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
72161
582
127