@vaadin/notification 25.0.0 → 25.1.0-alpha1
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/lit/renderer-directives.d.ts +1 -1
- package/src/lit/renderer-directives.js +1 -1
- package/src/styles/vaadin-notification-card-base-styles.d.ts +1 -1
- package/src/styles/vaadin-notification-card-base-styles.js +1 -1
- package/src/styles/vaadin-notification-container-base-styles.d.ts +1 -1
- package/src/styles/vaadin-notification-container-base-styles.js +1 -1
- package/src/vaadin-notification-mixin.d.ts +1 -1
- package/src/vaadin-notification-mixin.js +4 -1
- package/src/vaadin-notification.d.ts +4 -2
- package/src/vaadin-notification.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/notification",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.1.0-alpha1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
|
-
"@vaadin/component-base": "
|
|
40
|
-
"@vaadin/lit-renderer": "
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
39
|
+
"@vaadin/component-base": "25.1.0-alpha1",
|
|
40
|
+
"@vaadin/lit-renderer": "25.1.0-alpha1",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "25.1.0-alpha1",
|
|
42
42
|
"lit": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@vaadin/button": "
|
|
46
|
-
"@vaadin/chai-plugins": "
|
|
47
|
-
"@vaadin/test-runner-commands": "
|
|
45
|
+
"@vaadin/button": "25.1.0-alpha1",
|
|
46
|
+
"@vaadin/chai-plugins": "25.1.0-alpha1",
|
|
47
|
+
"@vaadin/test-runner-commands": "25.1.0-alpha1",
|
|
48
48
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
49
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
49
|
+
"@vaadin/vaadin-lumo-styles": "25.1.0-alpha1",
|
|
50
50
|
"sinon": "^21.0.0"
|
|
51
51
|
},
|
|
52
52
|
"web-types": [
|
|
53
53
|
"web-types.json",
|
|
54
54
|
"web-types.lit.json"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "c789cdd350bcd74b280268a83f5475ad7f2f65e1"
|
|
57
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { DirectiveResult } from 'lit/directive.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/component-base/src/styles/style-props.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/component-base/src/styles/style-props.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { render } from 'lit';
|
|
@@ -229,6 +229,9 @@ export const NotificationMixin = (superClass) =>
|
|
|
229
229
|
if (options && options.theme) {
|
|
230
230
|
notification.setAttribute('theme', options.theme);
|
|
231
231
|
}
|
|
232
|
+
if (options && options.className) {
|
|
233
|
+
notification.overlayClass = options.className;
|
|
234
|
+
}
|
|
232
235
|
notification.renderer = renderer;
|
|
233
236
|
document.body.appendChild(notification);
|
|
234
237
|
notification.opened = true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { TemplateResult } from 'lit';
|
|
@@ -16,6 +16,7 @@ export * from './vaadin-notification-mixin.js';
|
|
|
16
16
|
|
|
17
17
|
export interface ShowOptions {
|
|
18
18
|
assertive?: boolean;
|
|
19
|
+
className?: string;
|
|
19
20
|
duration?: number;
|
|
20
21
|
position?: NotificationPosition;
|
|
21
22
|
theme?: string;
|
|
@@ -105,8 +106,9 @@ declare class Notification extends NotificationMixin(ElementMixin(HTMLElement))
|
|
|
105
106
|
* ```ts
|
|
106
107
|
* {
|
|
107
108
|
* assertive?: boolean
|
|
108
|
-
*
|
|
109
|
+
* className?: string
|
|
109
110
|
* duration?: number
|
|
111
|
+
* position?: string
|
|
110
112
|
* theme?: string
|
|
111
113
|
* }
|
|
112
114
|
* ```
|
package/web-types.json
CHANGED