@vaadin/vaadin-context-menu
Advanced tools
Comparing version 4.1.0-alpha4 to 4.1.0-beta1
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-context-menu", | ||
"version": "4.1.0-alpha4", | ||
"version": "4.1.0-beta1", | ||
"main": "vaadin-context-menu.js", | ||
@@ -29,22 +29,22 @@ "author": "Vaadin Ltd", | ||
"@polymer/polymer": "^3.0.0", | ||
"@polymer/iron-media-query": "^3.0.0-pre.12", | ||
"@vaadin/vaadin-themable-mixin": "^1.2.0-alpha2", | ||
"@vaadin/vaadin-overlay": "^3.1.0-alpha2", | ||
"@vaadin/vaadin-lumo-styles": "^1.1.0-alpha3", | ||
"@vaadin/vaadin-material-styles": "^1.1.0-alpha2", | ||
"@vaadin/vaadin-element-mixin": "^1.1.0-alpha1" | ||
"@polymer/iron-media-query": "^3.0.0-pre.18", | ||
"@vaadin/vaadin-themable-mixin": "^1.2.1", | ||
"@vaadin/vaadin-overlay": "^3.1.0-beta1", | ||
"@vaadin/vaadin-lumo-styles": "^1.1.0-beta1", | ||
"@vaadin/vaadin-material-styles": "^1.1.0-beta1", | ||
"@vaadin/vaadin-element-mixin": "^1.1.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", | ||
"@polymer/test-fixture": "^3.0.0-pre.12", | ||
"@vaadin/vaadin-button": "^2.1.0-alpha2", | ||
"@vaadin/vaadin-grid": "^5.1.0-alpha2", | ||
"@vaadin/vaadin-item": "^2.1.0-alpha2", | ||
"@vaadin/vaadin-list-box": "^1.1.0-alpha2", | ||
"@webcomponents/webcomponentsjs": "^1.0.0", | ||
"wct-browser-legacy": "0.0.1-pre.11", | ||
"@vaadin/vaadin-demo-helpers": "^2.0.0-alpha2" | ||
"@polymer/iron-component-page": "^3.0.0-pre.18", | ||
"@polymer/iron-demo-helpers": "^3.0.0-pre.18", | ||
"@polymer/iron-test-helpers": "^3.0.0-pre.18", | ||
"@polymer/test-fixture": "^3.0.0-pre.18", | ||
"@vaadin/vaadin-button": "^2.1.0-beta1", | ||
"@vaadin/vaadin-grid": "^5.1.0-beta1", | ||
"@vaadin/vaadin-item": "^2.1.0-beta1", | ||
"@vaadin/vaadin-list-box": "^1.1.0-beta1", | ||
"@webcomponents/webcomponentsjs": "^2.0.0", | ||
"wct-browser-legacy": "^1.0.1", | ||
"@vaadin/vaadin-demo-helpers": "^2.0.1" | ||
} | ||
} |
@@ -93,20 +93,23 @@ [](https://badge.fury.io/js/%40vaadin%2Fvaadin-context-menu) | ||
## Getting Started | ||
## Getting started | ||
Vaadin components use the Lumo theme by default. | ||
## The file structure for Vaadin components | ||
To use the Material theme, import the correspondent file from the `theme/material` folder. | ||
- `src/vaadin-context-menu.html` | ||
## Entry points | ||
Unstyled component. | ||
- The component with the Lumo theme: | ||
- `theme/lumo/vaadin-context-menu.html` | ||
`theme/lumo/vaadin-context-menu.html` | ||
Component with Lumo theme. | ||
- The component with the Material theme: | ||
- `vaadin-context-menu.html` | ||
`theme/material/vaadin-context-menu.html` | ||
Alias for theme/lumo/vaadin-context-menu.html | ||
- Alias for `theme/lumo/vaadin-context-menu.html`: | ||
`vaadin-context-menu.html` | ||
## Running demos and tests in browser | ||
@@ -138,8 +141,5 @@ | ||
## Creating a pull request | ||
## Contributing | ||
- Make sure your code is compliant with our code linters: `gulp lint` | ||
- Check that tests are passing: `polymer test` | ||
- [Submit a pull request](https://www.digitalocean.com/community/tutorials/how-to-create-a-pull-request-on-github) with detailed title and description | ||
- Wait for response from one of Vaadin components team members | ||
To contribute to the component, please read [the guideline](https://github.com/vaadin/vaadin-core/blob/master/CONTRIBUTING.md) first. | ||
@@ -146,0 +146,0 @@ |
@@ -0,5 +1,10 @@ | ||
/** | ||
@license | ||
Copyright (c) 2017 Vaadin Ltd. | ||
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import '@polymer/polymer/lib/elements/dom-module.js'; | ||
import { OverlayElement } from '@vaadin/vaadin-overlay/src/vaadin-overlay.js'; | ||
const $_documentContainer = document.createElement('div'); | ||
$_documentContainer.setAttribute('style', 'display: none;'); | ||
const $_documentContainer = document.createElement('template'); | ||
@@ -29,3 +34,3 @@ $_documentContainer.innerHTML = `<dom-module id="vaadin-context-menu-overlay-styles" theme-for="vaadin-context-menu-overlay"> | ||
document.head.appendChild($_documentContainer); | ||
document.head.appendChild($_documentContainer.content); | ||
/** | ||
@@ -32,0 +37,0 @@ * The overlay element. |
@@ -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'; | ||
@@ -156,3 +162,3 @@ import './vaadin-contextmenu-event.js'; | ||
static get version() { | ||
return '4.1.0-alpha4'; | ||
return '4.1.0-beta1'; | ||
} | ||
@@ -159,0 +165,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 { register, prevent } from '@polymer/polymer/lib/utils/gestures.js'; | ||
register({ | ||
@@ -3,0 +9,0 @@ name: 'vaadin-contextmenu', |
@@ -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/iron-media-query/iron-media-query.js'; | ||
@@ -3,0 +9,0 @@ import { html } from '@polymer/polymer/lib/utils/html-tag.js'; |
@@ -1,3 +0,2 @@ | ||
const $_documentContainer = document.createElement('div'); | ||
$_documentContainer.setAttribute('style', 'display: none;'); | ||
const $_documentContainer = document.createElement('template'); | ||
@@ -17,2 +16,2 @@ $_documentContainer.innerHTML = `<dom-module id="not-animated-context-menu-overlay" theme-for="vaadin-context-menu-overlay"> | ||
document.head.appendChild($_documentContainer); | ||
document.head.appendChild($_documentContainer.content); |
import '@vaadin/vaadin-lumo-styles/spacing.js'; | ||
import '@vaadin/vaadin-lumo-styles/style.js'; | ||
import '@vaadin/vaadin-lumo-styles/mixins/menu-overlay.js'; | ||
const $_documentContainer = document.createElement('div'); | ||
$_documentContainer.setAttribute('style', 'display: none;'); | ||
const $_documentContainer = document.createElement('template'); | ||
@@ -35,2 +34,2 @@ $_documentContainer.innerHTML = `<dom-module id="lumo-context-menu-overlay" theme-for="vaadin-context-menu-overlay"> | ||
document.head.appendChild($_documentContainer); | ||
document.head.appendChild($_documentContainer.content); |
@@ -6,4 +6,3 @@ import '@vaadin/vaadin-material-styles/font-icons.js'; | ||
import '@vaadin/vaadin-material-styles/mixins/menu-overlay.js'; | ||
const $_documentContainer = document.createElement('div'); | ||
$_documentContainer.setAttribute('style', 'display: none;'); | ||
const $_documentContainer = document.createElement('template'); | ||
@@ -21,2 +20,2 @@ $_documentContainer.innerHTML = `<dom-module id="material-context-menu-overlay" theme-for="vaadin-context-menu-overlay"> | ||
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
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
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
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
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
203523
33
732