@vaadin/vaadin-dialog
Advanced tools
Comparing version 2.0.0-pre.2 to 2.0.0-pre.3
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-dialog", | ||
"version": "2.0.0-pre.2", | ||
"version": "2.0.0-pre.3", | ||
"main": "vaadin-dialog.js", | ||
@@ -25,19 +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-overlay": "^3.0.1-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-overlay": "^3.0.2-pre.1", | ||
"@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", | ||
"@vaadin/vaadin-button": "^2.0.0-pre.1", | ||
"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", | ||
"@vaadin/vaadin-button": "^2.0.0-pre.2", | ||
"@webcomponents/webcomponentsjs": "^2.0.0-beta.2", | ||
"wct-browser-legacy": "^0.0.1-pre.11", | ||
"@vaadin/vaadin-demo-helpers": "^1.2.5-pre.1" | ||
} | ||
} |
@@ -14,3 +14,3 @@ ![Bower version](https://img.shields.io/bower/v/vaadin-dialog.svg) | ||
[<vaadin-dialog>](https://vaadin.com/components/vaadin-dialog) is a [Polymer 2](http://polymer-project.org) element for customized modal dialogs, part of the [Vaadin components](https://vaadin.com/components). | ||
[<vaadin-dialog>](https://vaadin.com/components/vaadin-dialog) is a Web Component for customized modal dialogs, part of the [Vaadin components](https://vaadin.com/components). | ||
@@ -38,2 +38,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-dialog`: | ||
```sh | ||
bower i vaadin/vaadin-dialog --save | ||
``` | ||
Once installed, import it in your application: | ||
```html | ||
<link rel="import" href="bower_components/vaadin-dialog/vaadin-dialog.html"> | ||
``` | ||
### Polymer 3 and ES Modules Compatible Version | ||
Install `vaadin-dialog`: | ||
```sh | ||
npm i @vaadin/vaadin-dialog --save | ||
``` | ||
Once installed, import it in your application: | ||
```js | ||
import '@vaadin/vaadin-dialog/vaadin-dialog.js'; | ||
``` | ||
## Getting Started | ||
@@ -40,0 +76,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 '@polymer/polymer/lib/utils/templatize.js'; | ||
@@ -68,3 +74,3 @@ import { OverlayElement } from '@vaadin/vaadin-overlay/src/vaadin-overlay.js'; | ||
static get version() { | ||
return '2.0.0-pre.2'; | ||
return '2.0.0-pre.3'; | ||
} | ||
@@ -71,0 +77,0 @@ |
import '@vaadin/vaadin-lumo-styles/spacing.js'; | ||
import '@vaadin/vaadin-lumo-styles/mixins/overlay.js'; | ||
const $_documentContainer = document.createElement('div'); | ||
const $_documentContainer = document.createElement('template'); | ||
$_documentContainer.setAttribute('style', 'display: none;'); | ||
@@ -55,2 +55,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
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
63514
208
130
7
1