@vaadin/vaadin-context-menu 21.0.0-beta2 → 21.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,20 +7,17 @@
7
7
  [<vaadin-context-menu>](https://vaadin.com/components/vaadin-context-menu) is a Web Component providing a contextual menu, part of the [Vaadin components](https://vaadin.com/components).
8
8
 
9
9
  [![npm version](https://badgen.net/npm/v/@vaadin/vaadin-context-menu)](https://www.npmjs.com/package/@vaadin/vaadin-context-menu)
10
- [![Build Status](https://travis-ci.org/vaadin/vaadin-context-menu.svg?branch=master)](https://travis-ci.org/vaadin/vaadin-context-menu)
11
- [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/vaadin/vaadin-context-menu)
12
10
  [![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-context-menu)
13
- [![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/vaadinvaadin-context-menu.svg)](https://vaadin.com/directory/component/vaadinvaadin-context-menu)
14
11
  [![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](https://discord.gg/PHmkCKC)
15
12
 
16
13
  ```html
17
14
  <vaadin-context-menu>
18
- Open a context menu with <b>right click</b> or with <b>long touch.</b>
15
+ <span>Open a context menu with <b>right click</b> or with <b>long touch.</b></span>
19
16
  </vaadin-context-menu>
20
17
 
21
18
  <script>
22
19
  const contextMenu = document.querySelector('vaadin-context-menu');
23
- contextMenu.renderer = function(root) {
20
+ contextMenu.renderer = function (root) {
24
21
  let listBox = root.firstElementChild;
25
22
  // Check if there is a list-box generated with the previous renderer call to update its content instead of recreation
26
23
  if (listBox) {
@@ -30,7 +27,7 @@
30
27
  root.appendChild(listBox);
31
28
  }
32
29
 
33
- ['First', 'Second', 'Third'].forEach(function(name) {
30
+ ['First', 'Second', 'Third'].forEach(function (name) {
34
31
  const item = document.createElement('vaadin-item');
35
32
  item.textContent = name + ' menu item';
36
33
  listBox.appendChild(item);
@@ -77,47 +74,9 @@ To use the Material theme, import the correspondent file from the `theme/materia
77
74
 
78
75
  `vaadin-context-menu.js`
79
76
 
80
-
81
- ## Running API docs and tests in a browser
82
-
83
- 1. Fork the `vaadin-context-menu` repository and clone it locally.
84
-
85
- 1. Make sure you have [node.js](https://nodejs.org/) 12.x installed.
86
-
87
- 1. Make sure you have [npm](https://www.npmjs.com/) installed.
88
-
89
- 1. When in the `vaadin-context-menu` directory, run `npm install` to install dependencies.
90
-
91
- 1. Run `npm start`, browser will automatically open the component API documentation.
92
-
93
- 1. You can also open visual tests, for example:
94
-
95
- - http://127.0.0.1:3000/test/visual/default.html
96
-
97
-
98
- ## Running tests from the command line
99
-
100
- 1. When in the `vaadin-context-menu` directory, run `npm test`
101
-
102
- ## Debugging tests in the browser
103
-
104
- 1. Run `npm run debug`, then choose manual mode (M) and open the link in browser.
105
-
106
-
107
- ## Following the coding style
108
-
109
- We are using [ESLint](http://eslint.org/) for linting JavaScript code. You can check if your code is following our standards by running `npm run lint`, which will automatically lint all `.js` files.
110
-
111
-
112
- ## Big Thanks
113
-
114
- Cross-browser Testing Platform and Open Source <3 Provided by [Sauce Labs](https://saucelabs.com).
115
-
116
-
117
77
  ## Contributing
118
78
 
119
- To contribute to the component, please read [the guideline](https://github.com/vaadin/vaadin-core/blob/master/CONTRIBUTING.md) first.
120
-
79
+ Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
121
80
 
122
81
  ## License
123
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/vaadin-context-menu",
3
- "version": "21.0.0-beta2",
3
+ "version": "21.0.2",
4
4
  "description": "Web Component for showing context dependent items for any element on the page",
5
5
  "main": "vaadin-context-menu.js",
6
6
  "module": "vaadin-context-menu.js",
@@ -27,22 +27,22 @@
27
27
  "dependencies": {
28
28
  "@polymer/iron-media-query": "^3.0.0",
29
29
  "@polymer/polymer": "^3.0.0",
30
- "@vaadin/vaadin-element-mixin": "^21.0.0-beta2",
31
- "@vaadin/vaadin-item": "^21.0.0-beta2",
32
- "@vaadin/vaadin-list-box": "^21.0.0-beta2",
33
- "@vaadin/vaadin-lumo-styles": "^21.0.0-beta2",
34
- "@vaadin/vaadin-material-styles": "^21.0.0-beta2",
35
- "@vaadin/vaadin-overlay": "^21.0.0-beta2",
36
- "@vaadin/vaadin-themable-mixin": "^21.0.0-beta2"
30
+ "@vaadin/vaadin-element-mixin": "^21.0.2",
31
+ "@vaadin/vaadin-item": "^21.0.2",
32
+ "@vaadin/vaadin-list-box": "^21.0.2",
33
+ "@vaadin/vaadin-lumo-styles": "^21.0.2",
34
+ "@vaadin/vaadin-material-styles": "^21.0.2",
35
+ "@vaadin/vaadin-overlay": "^21.0.2",
36
+ "@vaadin/vaadin-themable-mixin": "^21.0.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@esm-bundle/chai": "^4.1.5",
40
40
  "@vaadin/testing-helpers": "^0.2.1",
41
- "@vaadin/vaadin-template-renderer": "^21.0.0-beta2",
41
+ "@vaadin/vaadin-template-renderer": "^21.0.2",
42
42
  "sinon": "^9.2.1"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "85ac717fc9f16941a1593a44d1aec90735a5db54"
47
+ "gitHead": "6d0571bce4ecc084a9c40b9d72d7c7cecaeae196"
48
48
  }
@@ -236,7 +236,7 @@ class ContextMenuElement extends ElementMixin(ThemePropertyMixin(ItemsMixin(Gest
236
236
  }
237
237
 
238
238
  static get version() {
239
- return '21.0.0-beta2';
239
+ return '21.0.2';
240
240
  }
241
241
 
242
242
  static get properties() {