@vaadin/notification 25.0.0-alpha2 → 25.0.0-alpha4
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 +10 -10
- package/src/styles/vaadin-notification-card-styles.d.ts +8 -0
- package/src/styles/vaadin-notification-card-styles.js +22 -0
- package/src/styles/vaadin-notification-container-styles.d.ts +8 -0
- package/src/{vaadin-notification-styles.js → styles/vaadin-notification-container-styles.js} +0 -16
- package/src/vaadin-notification-mixin.d.ts +5 -0
- package/src/vaadin-notification.js +8 -4
- 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.0.0-
|
|
3
|
+
"version": "25.0.0-alpha4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
|
-
"@vaadin/component-base": "25.0.0-
|
|
41
|
-
"@vaadin/lit-renderer": "25.0.0-
|
|
42
|
-
"@vaadin/overlay": "25.0.0-
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
40
|
+
"@vaadin/component-base": "25.0.0-alpha4",
|
|
41
|
+
"@vaadin/lit-renderer": "25.0.0-alpha4",
|
|
42
|
+
"@vaadin/overlay": "25.0.0-alpha4",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha4",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha4",
|
|
45
45
|
"lit": "^3.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@vaadin/button": "25.0.0-
|
|
49
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
50
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
48
|
+
"@vaadin/button": "25.0.0-alpha4",
|
|
49
|
+
"@vaadin/chai-plugins": "25.0.0-alpha4",
|
|
50
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha4",
|
|
51
51
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
52
52
|
"sinon": "^18.0.0"
|
|
53
53
|
},
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "ce4421f0daf26027b863b91787a474e4cc264344"
|
|
59
59
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2016 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import { css } from 'lit';
|
|
7
|
+
|
|
8
|
+
export const notificationCardStyles = css`
|
|
9
|
+
:host {
|
|
10
|
+
display: block;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[part='overlay'] {
|
|
14
|
+
pointer-events: auto;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media (forced-colors: active) {
|
|
18
|
+
[part='overlay'] {
|
|
19
|
+
outline: 3px solid;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
package/src/{vaadin-notification-styles.js → styles/vaadin-notification-container-styles.js}
RENAMED
|
@@ -53,19 +53,3 @@ export const notificationContainerStyles = css`
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
`;
|
|
56
|
-
|
|
57
|
-
export const notificationCardStyles = css`
|
|
58
|
-
:host {
|
|
59
|
-
display: block;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
[part='overlay'] {
|
|
63
|
-
pointer-events: auto;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@media (forced-colors: active) {
|
|
67
|
-
[part='overlay'] {
|
|
68
|
-
outline: 3px solid;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
`;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
1
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
2
7
|
import type { OverlayClassMixinClass } from '@vaadin/component-base/src/overlay-class-mixin.js';
|
|
3
8
|
import type { OverlayStackMixinClass } from '@vaadin/overlay/src/vaadin-overlay-stack-mixin.js';
|
|
@@ -8,9 +8,11 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
8
8
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
9
9
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
10
10
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
11
|
+
import { CSSInjectionMixin } from '@vaadin/vaadin-themable-mixin/css-injection-mixin.js';
|
|
11
12
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
13
|
+
import { notificationCardStyles } from './styles/vaadin-notification-card-styles.js';
|
|
14
|
+
import { notificationContainerStyles } from './styles/vaadin-notification-container-styles.js';
|
|
12
15
|
import { NotificationContainerMixin, NotificationMixin } from './vaadin-notification-mixin.js';
|
|
13
|
-
import { notificationCardStyles, notificationContainerStyles } from './vaadin-notification-styles.js';
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* An element used internally by `<vaadin-notification>`. Not intended to be used separately.
|
|
@@ -22,7 +24,9 @@ import { notificationCardStyles, notificationContainerStyles } from './vaadin-no
|
|
|
22
24
|
* @mixes ThemableMixin
|
|
23
25
|
* @private
|
|
24
26
|
*/
|
|
25
|
-
class NotificationContainer extends NotificationContainerMixin(
|
|
27
|
+
class NotificationContainer extends NotificationContainerMixin(
|
|
28
|
+
ThemableMixin(ElementMixin(CSSInjectionMixin(PolylitMixin(LitElement)))),
|
|
29
|
+
) {
|
|
26
30
|
static get is() {
|
|
27
31
|
return 'vaadin-notification-container';
|
|
28
32
|
}
|
|
@@ -59,7 +63,7 @@ class NotificationContainer extends NotificationContainerMixin(ThemableMixin(Ele
|
|
|
59
63
|
* @mixes ThemableMixin
|
|
60
64
|
* @private
|
|
61
65
|
*/
|
|
62
|
-
class NotificationCard extends ThemableMixin(PolylitMixin(LitElement)) {
|
|
66
|
+
class NotificationCard extends ThemableMixin(CSSInjectionMixin(PolylitMixin(LitElement))) {
|
|
63
67
|
static get is() {
|
|
64
68
|
return 'vaadin-notification-card';
|
|
65
69
|
}
|
|
@@ -138,7 +142,7 @@ class NotificationCard extends ThemableMixin(PolylitMixin(LitElement)) {
|
|
|
138
142
|
* @mixes NotificationMixin
|
|
139
143
|
* @mixes ElementMixin
|
|
140
144
|
*/
|
|
141
|
-
class Notification extends NotificationMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement)))) {
|
|
145
|
+
class Notification extends NotificationMixin(ElementMixin(ThemableMixin(CSSInjectionMixin(PolylitMixin(LitElement))))) {
|
|
142
146
|
static get is() {
|
|
143
147
|
return 'vaadin-notification';
|
|
144
148
|
}
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED