@vaadin/notification 24.8.5 → 24.9.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 +11 -11
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- package/src/vaadin-lit-notification.js +0 -133
- package/theme/lumo/vaadin-lit-notification.d.ts +0 -2
- package/theme/lumo/vaadin-lit-notification.js +0 -2
- package/theme/material/vaadin-lit-notification.d.ts +0 -2
- package/theme/material/vaadin-lit-notification.js +0 -2
- package/vaadin-lit-notification.d.ts +0 -1
- package/vaadin-lit-notification.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/notification",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.9.0-alpha1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
41
41
|
"@polymer/polymer": "^3.0.0",
|
|
42
|
-
"@vaadin/component-base": "
|
|
43
|
-
"@vaadin/lit-renderer": "
|
|
44
|
-
"@vaadin/overlay": "
|
|
45
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
46
|
-
"@vaadin/vaadin-material-styles": "
|
|
47
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
42
|
+
"@vaadin/component-base": "24.9.0-alpha1",
|
|
43
|
+
"@vaadin/lit-renderer": "24.9.0-alpha1",
|
|
44
|
+
"@vaadin/overlay": "24.9.0-alpha1",
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "24.9.0-alpha1",
|
|
46
|
+
"@vaadin/vaadin-material-styles": "24.9.0-alpha1",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "24.9.0-alpha1",
|
|
48
48
|
"lit": "^3.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@vaadin/button": "
|
|
52
|
-
"@vaadin/chai-plugins": "
|
|
53
|
-
"@vaadin/test-runner-commands": "
|
|
51
|
+
"@vaadin/button": "24.9.0-alpha1",
|
|
52
|
+
"@vaadin/chai-plugins": "24.9.0-alpha1",
|
|
53
|
+
"@vaadin/test-runner-commands": "24.9.0-alpha1",
|
|
54
54
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
55
55
|
"sinon": "^18.0.0"
|
|
56
56
|
},
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"web-types.json",
|
|
59
59
|
"web-types.lit.json"
|
|
60
60
|
],
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "cc13d59f0e3cd1a3b0c19c1a900a5308446fe7ac"
|
|
62
62
|
}
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/
|
|
6
|
-
import { css, html, LitElement } from 'lit';
|
|
7
|
-
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
8
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
9
|
-
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
10
|
-
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
11
|
-
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
-
import { NotificationContainerMixin, NotificationMixin } from './vaadin-notification-mixin.js';
|
|
13
|
-
import { notificationCardStyles, notificationContainerStyles } from './vaadin-notification-styles.js';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* An element used internally by `<vaadin-notification>`. Not intended to be used separately.
|
|
17
|
-
*
|
|
18
|
-
* @customElement
|
|
19
|
-
* @extends HTMLElement
|
|
20
|
-
* @mixes NotificationContainerMixin
|
|
21
|
-
* @mixes ElementMixin
|
|
22
|
-
* @mixes ThemableMixin
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
class NotificationContainer extends NotificationContainerMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement)))) {
|
|
26
|
-
static get styles() {
|
|
27
|
-
return notificationContainerStyles;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/** @protected */
|
|
31
|
-
render() {
|
|
32
|
-
return html`
|
|
33
|
-
<div region="top-stretch"><slot name="top-stretch"></slot></div>
|
|
34
|
-
<div region-group="top">
|
|
35
|
-
<div region="top-start"><slot name="top-start"></slot></div>
|
|
36
|
-
<div region="top-center"><slot name="top-center"></slot></div>
|
|
37
|
-
<div region="top-end"><slot name="top-end"></slot></div>
|
|
38
|
-
</div>
|
|
39
|
-
<div region="middle"><slot name="middle"></slot></div>
|
|
40
|
-
<div region-group="bottom">
|
|
41
|
-
<div region="bottom-start"><slot name="bottom-start"></slot></div>
|
|
42
|
-
<div region="bottom-center"><slot name="bottom-center"></slot></div>
|
|
43
|
-
<div region="bottom-end"><slot name="bottom-end"></slot></div>
|
|
44
|
-
</div>
|
|
45
|
-
<div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
|
|
46
|
-
`;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
static get is() {
|
|
50
|
-
return 'vaadin-notification-container';
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* An element used internally by `<vaadin-notification>`. Not intended to be used separately.
|
|
56
|
-
*
|
|
57
|
-
* @customElement
|
|
58
|
-
* @extends HTMLElement
|
|
59
|
-
* @mixes ThemableMixin
|
|
60
|
-
* @mixes ElementMixin
|
|
61
|
-
* @private
|
|
62
|
-
*/
|
|
63
|
-
class NotificationCard extends ElementMixin(ThemableMixin(PolylitMixin(LitElement))) {
|
|
64
|
-
static get styles() {
|
|
65
|
-
return notificationCardStyles;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/** @protected */
|
|
69
|
-
render() {
|
|
70
|
-
return html`
|
|
71
|
-
<div part="overlay">
|
|
72
|
-
<div part="content">
|
|
73
|
-
<slot></slot>
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
`;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
static get is() {
|
|
80
|
-
return 'vaadin-notification-card';
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/** @protected */
|
|
84
|
-
ready() {
|
|
85
|
-
super.ready();
|
|
86
|
-
this.setAttribute('role', 'alert');
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* LitElement based version of `<vaadin-notification>` web component.
|
|
92
|
-
*
|
|
93
|
-
* ## Disclaimer
|
|
94
|
-
*
|
|
95
|
-
* This component is an experiment and not yet a part of Vaadin platform.
|
|
96
|
-
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
97
|
-
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
98
|
-
*/
|
|
99
|
-
class Notification extends NotificationMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement)))) {
|
|
100
|
-
static get styles() {
|
|
101
|
-
return css`
|
|
102
|
-
:host {
|
|
103
|
-
display: none !important;
|
|
104
|
-
}
|
|
105
|
-
`;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/** @protected */
|
|
109
|
-
render() {
|
|
110
|
-
return html`
|
|
111
|
-
<vaadin-notification-card
|
|
112
|
-
theme="${ifDefined(this._theme)}"
|
|
113
|
-
aria-live="${this.__computeAriaLive(this.assertive)}"
|
|
114
|
-
></vaadin-notification-card>
|
|
115
|
-
`;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
static get is() {
|
|
119
|
-
return 'vaadin-notification';
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Fired when the notification is closed.
|
|
124
|
-
*
|
|
125
|
-
* @event closed
|
|
126
|
-
*/
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
defineCustomElement(NotificationContainer);
|
|
130
|
-
defineCustomElement(NotificationCard);
|
|
131
|
-
defineCustomElement(Notification);
|
|
132
|
-
|
|
133
|
-
export { Notification };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './vaadin-notification.js';
|