@vaadin/vaadin-context-menu
Advanced tools
Comparing version 21.0.0-alpha10 to 21.0.0-alpha11
{ | ||
"name": "@vaadin/vaadin-context-menu", | ||
"version": "21.0.0-alpha10", | ||
"version": "21.0.0-alpha11", | ||
"description": "Web Component for showing context dependent items for any element on the page", | ||
@@ -30,9 +30,9 @@ "main": "vaadin-context-menu.js", | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/vaadin-element-mixin": "^21.0.0-alpha10", | ||
"@vaadin/vaadin-item": "^21.0.0-alpha10", | ||
"@vaadin/vaadin-list-box": "^21.0.0-alpha10", | ||
"@vaadin/vaadin-lumo-styles": "^21.0.0-alpha10", | ||
"@vaadin/vaadin-material-styles": "^21.0.0-alpha10", | ||
"@vaadin/vaadin-overlay": "^21.0.0-alpha10", | ||
"@vaadin/vaadin-themable-mixin": "^21.0.0-alpha10" | ||
"@vaadin/vaadin-element-mixin": "^21.0.0-alpha11", | ||
"@vaadin/vaadin-item": "^21.0.0-alpha11", | ||
"@vaadin/vaadin-list-box": "^21.0.0-alpha11", | ||
"@vaadin/vaadin-lumo-styles": "^21.0.0-alpha11", | ||
"@vaadin/vaadin-material-styles": "^21.0.0-alpha11", | ||
"@vaadin/vaadin-overlay": "^21.0.0-alpha11", | ||
"@vaadin/vaadin-themable-mixin": "^21.0.0-alpha11" | ||
}, | ||
@@ -42,3 +42,3 @@ "devDependencies": { | ||
"@vaadin/testing-helpers": "^0.2.1", | ||
"@vaadin/vaadin-template-renderer": "^21.0.0-alpha10", | ||
"@vaadin/vaadin-template-renderer": "^21.0.0-alpha11", | ||
"sinon": "^9.2.1" | ||
@@ -49,3 +49,3 @@ }, | ||
}, | ||
"gitHead": "9e75b3416edc041e35720c29a842423a1da66e60" | ||
"gitHead": "56048b90b53071c3dcd29c14420d3460c5fd14b8" | ||
} |
@@ -238,3 +238,13 @@ import { GestureEventListeners } from '@polymer/polymer/lib/mixins/gesture-event-listeners.js'; | ||
/** | ||
* Requests an update for the content of the menu overlay. | ||
* While performing the update, it invokes the renderer passed in the `renderer` property. | ||
* | ||
* It is not guaranteed that the update happens immediately (synchronously) after it is requested. | ||
*/ | ||
requestContentUpdate(): void; | ||
/** | ||
* Manually invoke existing renderer. | ||
* | ||
* @deprecated Since Vaadin 21, `render()` is deprecated. Please use `requestContentUpdate()` instead. | ||
*/ | ||
@@ -241,0 +251,0 @@ render(): void; |
@@ -239,3 +239,3 @@ /** | ||
static get version() { | ||
return '21.0.0-alpha10'; | ||
return '21.0.0-alpha11'; | ||
} | ||
@@ -456,6 +456,20 @@ | ||
/** | ||
* Requests an update for the content of the menu overlay. | ||
* While performing the update, it invokes the renderer passed in the `renderer` property. | ||
* | ||
* It is not guaranteed that the update happens immediately (synchronously) after it is requested. | ||
*/ | ||
requestContentUpdate() { | ||
this.$.overlay.requestContentUpdate(); | ||
} | ||
/** | ||
* Manually invoke existing renderer. | ||
* | ||
* @deprecated Since Vaadin 21, `render()` is deprecated. Please use `requestContentUpdate()` instead. | ||
*/ | ||
render() { | ||
this.$.overlay.render(); | ||
console.warn('WARNING: Since Vaadin 21, render() is deprecated. Please use requestContentUpdate() instead.'); | ||
this.requestContentUpdate(); | ||
} | ||
@@ -462,0 +476,0 @@ |
80363
1791