@vaadin/notification 23.1.0 → 23.1.3
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/package.json +9 -9
- package/src/vaadin-notification.d.ts +10 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/notification",
|
|
3
|
-
"version": "23.1.
|
|
3
|
+
"version": "23.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/component-base": "^23.1.
|
|
40
|
-
"@vaadin/lit-renderer": "^23.1.
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "^23.1.
|
|
42
|
-
"@vaadin/vaadin-material-styles": "^23.1.
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "^23.1.
|
|
39
|
+
"@vaadin/component-base": "^23.1.3",
|
|
40
|
+
"@vaadin/lit-renderer": "^23.1.3",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "^23.1.3",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "^23.1.3",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "^23.1.3",
|
|
44
44
|
"lit": "^2.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@esm-bundle/chai": "^4.3.4",
|
|
48
|
-
"@vaadin/button": "^23.1.
|
|
49
|
-
"@vaadin/polymer-legacy-adapter": "^23.1.
|
|
48
|
+
"@vaadin/button": "^23.1.3",
|
|
49
|
+
"@vaadin/polymer-legacy-adapter": "^23.1.3",
|
|
50
50
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
51
51
|
"sinon": "^13.0.2"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "3066c296ad0ef652bc49417005523398199f1bf2"
|
|
54
54
|
}
|
|
@@ -9,15 +9,15 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
9
9
|
import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';
|
|
10
10
|
|
|
11
11
|
export type NotificationPosition =
|
|
12
|
-
| 'top-stretch'
|
|
13
|
-
| 'top-start'
|
|
14
|
-
| 'top-center'
|
|
15
|
-
| 'top-end'
|
|
16
|
-
| 'middle'
|
|
17
|
-
| 'bottom-start'
|
|
18
12
|
| 'bottom-center'
|
|
19
13
|
| 'bottom-end'
|
|
20
|
-
| 'bottom-
|
|
14
|
+
| 'bottom-start'
|
|
15
|
+
| 'bottom-stretch'
|
|
16
|
+
| 'middle'
|
|
17
|
+
| 'top-center'
|
|
18
|
+
| 'top-end'
|
|
19
|
+
| 'top-start'
|
|
20
|
+
| 'top-stretch';
|
|
21
21
|
|
|
22
22
|
export type NotificationRenderer = (root: HTMLElement, notification?: Notification) => void;
|
|
23
23
|
|
|
@@ -121,7 +121,7 @@ declare class Notification extends ThemePropertyMixin(ElementMixin(HTMLElement))
|
|
|
121
121
|
* @param contents the contents to show, either as a string or a Lit template.
|
|
122
122
|
* @param options optional options for customizing the notification.
|
|
123
123
|
*/
|
|
124
|
-
static show(contents:
|
|
124
|
+
static show(contents: TemplateResult | string, options?: ShowOptions): Notification;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* The duration in milliseconds to show the notification.
|
|
@@ -171,13 +171,13 @@ declare class Notification extends ThemePropertyMixin(ElementMixin(HTMLElement))
|
|
|
171
171
|
addEventListener<K extends keyof NotificationEventMap>(
|
|
172
172
|
type: K,
|
|
173
173
|
listener: (this: Notification, ev: NotificationEventMap[K]) => void,
|
|
174
|
-
options?:
|
|
174
|
+
options?: AddEventListenerOptions | boolean,
|
|
175
175
|
): void;
|
|
176
176
|
|
|
177
177
|
removeEventListener<K extends keyof NotificationEventMap>(
|
|
178
178
|
type: K,
|
|
179
179
|
listener: (this: Notification, ev: NotificationEventMap[K]) => void,
|
|
180
|
-
options?:
|
|
180
|
+
options?: EventListenerOptions | boolean,
|
|
181
181
|
): void;
|
|
182
182
|
}
|
|
183
183
|
|