@vaadin/notification
Advanced tools
Comparing version 22.0.0-alpha7 to 22.0.0-alpha8
{ | ||
"name": "@vaadin/notification", | ||
"version": "22.0.0-alpha7", | ||
"version": "22.0.0-alpha8", | ||
"publishConfig": { | ||
@@ -36,6 +36,6 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "22.0.0-alpha7", | ||
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha7", | ||
"@vaadin/vaadin-material-styles": "22.0.0-alpha7", | ||
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha7", | ||
"@vaadin/component-base": "22.0.0-alpha8", | ||
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha8", | ||
"@vaadin/vaadin-material-styles": "22.0.0-alpha8", | ||
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha8", | ||
"lit": "^2.0.0" | ||
@@ -45,8 +45,8 @@ }, | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/button": "22.0.0-alpha7", | ||
"@vaadin/polymer-legacy-adapter": "22.0.0-alpha7", | ||
"@vaadin/button": "22.0.0-alpha8", | ||
"@vaadin/polymer-legacy-adapter": "22.0.0-alpha8", | ||
"@vaadin/testing-helpers": "^0.3.0", | ||
"sinon": "^9.2.1" | ||
}, | ||
"gitHead": "8e89419c6b44a1d225d5859e180d7b35e47ddb52" | ||
"gitHead": "c24468526298ee26ad7f7280b59f6c8789e1f75f" | ||
} |
@@ -0,1 +1,6 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import { TemplateResult } from 'lit'; | ||
@@ -5,5 +10,33 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js'; | ||
import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js'; | ||
import { NotificationEventMap, NotificationPosition, NotificationRenderer, ShowOptions } from './interfaces'; | ||
export type NotificationPosition = | ||
| 'top-stretch' | ||
| 'top-start' | ||
| 'top-center' | ||
| 'top-end' | ||
| 'middle' | ||
| 'bottom-start' | ||
| 'bottom-center' | ||
| 'bottom-end' | ||
| 'bottom-stretch'; | ||
export type NotificationRenderer = (root: HTMLElement, notification?: Notification) => void; | ||
/** | ||
* Fired when the `opened` property changes. | ||
*/ | ||
export type NotificationOpenedChangedEvent = CustomEvent<{ value: boolean }>; | ||
export interface NotificationCustomEventMap { | ||
'opened-changed': NotificationOpenedChangedEvent; | ||
} | ||
export interface NotificationEventMap extends HTMLElementEventMap, NotificationCustomEventMap {} | ||
export interface ShowOptions { | ||
duration?: number; | ||
position?: NotificationPosition; | ||
} | ||
/** | ||
* An element used internally by `<vaadin-notification>`. Not intended to be used separately. | ||
@@ -106,9 +139,2 @@ */ | ||
/** | ||
* Manually invoke existing renderer. | ||
* | ||
* @deprecated Since Vaadin 21, `render()` is deprecated. Please use `requestContentUpdate()` instead. | ||
*/ | ||
render(): void; | ||
/** | ||
* Opens the notification. | ||
@@ -115,0 +141,0 @@ */ |
@@ -328,13 +328,2 @@ /** | ||
/** | ||
* Manually invoke existing renderer. | ||
* | ||
* @deprecated Since Vaadin 21, `render()` is deprecated. Please use `requestContentUpdate()` instead. | ||
*/ | ||
render() { | ||
console.warn('WARNING: Since Vaadin 21, render() is deprecated. Please use requestContentUpdate() instead.'); | ||
this.requestContentUpdate(); | ||
} | ||
/** @private */ | ||
@@ -341,0 +330,0 @@ _rendererChanged(renderer, opened, card) { |
export * from './src/vaadin-notification.js'; | ||
export * from './src/interfaces'; |
44031
11
933
+ Added@vaadin/component-base@22.0.0-alpha8(transitive)
+ Added@vaadin/icon@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-lumo-styles@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-material-styles@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-themable-mixin@22.0.0-alpha8(transitive)
- Removed@vaadin/component-base@22.0.0-alpha7(transitive)
- Removed@vaadin/icon@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-lumo-styles@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-material-styles@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-themable-mixin@22.0.0-alpha7(transitive)