@vaadin/notification 24.7.0-alpha1 → 24.7.0-alpha10
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 +12 -11
- package/src/lit/renderer-directives.d.ts +1 -1
- package/src/lit/renderer-directives.js +1 -1
- package/src/vaadin-lit-notification.js +6 -2
- package/src/vaadin-notification-mixin.js +2 -5
- package/src/vaadin-notification-styles.js +1 -1
- package/src/vaadin-notification.d.ts +1 -1
- 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": "24.7.0-
|
|
3
|
+
"version": "24.7.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,23 +39,24 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
41
41
|
"@polymer/polymer": "^3.0.0",
|
|
42
|
-
"@vaadin/component-base": "24.7.0-
|
|
43
|
-
"@vaadin/lit-renderer": "24.7.0-
|
|
44
|
-
"@vaadin/overlay": "24.7.0-
|
|
45
|
-
"@vaadin/vaadin-lumo-styles": "24.7.0-
|
|
46
|
-
"@vaadin/vaadin-material-styles": "24.7.0-
|
|
47
|
-
"@vaadin/vaadin-themable-mixin": "24.7.0-
|
|
42
|
+
"@vaadin/component-base": "24.7.0-alpha10",
|
|
43
|
+
"@vaadin/lit-renderer": "24.7.0-alpha10",
|
|
44
|
+
"@vaadin/overlay": "24.7.0-alpha10",
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "24.7.0-alpha10",
|
|
46
|
+
"@vaadin/vaadin-material-styles": "24.7.0-alpha10",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "24.7.0-alpha10",
|
|
48
48
|
"lit": "^3.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@vaadin/button": "24.7.0-
|
|
52
|
-
"@vaadin/chai-plugins": "24.7.0-
|
|
53
|
-
"@vaadin/
|
|
51
|
+
"@vaadin/button": "24.7.0-alpha10",
|
|
52
|
+
"@vaadin/chai-plugins": "24.7.0-alpha10",
|
|
53
|
+
"@vaadin/test-runner-commands": "24.7.0-alpha10",
|
|
54
|
+
"@vaadin/testing-helpers": "^1.1.0",
|
|
54
55
|
"sinon": "^18.0.0"
|
|
55
56
|
},
|
|
56
57
|
"web-types": [
|
|
57
58
|
"web-types.json",
|
|
58
59
|
"web-types.lit.json"
|
|
59
60
|
],
|
|
60
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "c0f8933df2a6a40648d3fb9cfbae6bbf86a8aa90"
|
|
61
62
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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 { css, html, LitElement } from 'lit';
|
|
7
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
7
8
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
8
9
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
9
10
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
@@ -26,6 +27,7 @@ class NotificationContainer extends NotificationContainerMixin(ElementMixin(Them
|
|
|
26
27
|
return notificationContainerStyles;
|
|
27
28
|
}
|
|
28
29
|
|
|
30
|
+
/** @protected */
|
|
29
31
|
render() {
|
|
30
32
|
return html`
|
|
31
33
|
<div region="top-stretch"><slot name="top-stretch"></slot></div>
|
|
@@ -63,6 +65,7 @@ class NotificationCard extends ElementMixin(ThemableMixin(PolylitMixin(LitElemen
|
|
|
63
65
|
return notificationCardStyles;
|
|
64
66
|
}
|
|
65
67
|
|
|
68
|
+
/** @protected */
|
|
66
69
|
render() {
|
|
67
70
|
return html`
|
|
68
71
|
<div part="overlay">
|
|
@@ -102,10 +105,11 @@ class Notification extends NotificationMixin(ElementMixin(ThemableMixin(PolylitM
|
|
|
102
105
|
`;
|
|
103
106
|
}
|
|
104
107
|
|
|
108
|
+
/** @protected */
|
|
105
109
|
render() {
|
|
106
110
|
return html`
|
|
107
111
|
<vaadin-notification-card
|
|
108
|
-
theme="${this._theme
|
|
112
|
+
theme="${ifDefined(this._theme)}"
|
|
109
113
|
aria-live="${this.__computeAriaLive(this.assertive)}"
|
|
110
114
|
></vaadin-notification-card>
|
|
111
115
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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';
|
|
@@ -228,6 +228,7 @@ export const NotificationMixin = (superClass) =>
|
|
|
228
228
|
|
|
229
229
|
/** @private */
|
|
230
230
|
get _container() {
|
|
231
|
+
const Notification = customElements.get('vaadin-notification');
|
|
231
232
|
if (!Notification._container) {
|
|
232
233
|
Notification._container = document.createElement('vaadin-notification-container');
|
|
233
234
|
document.body.appendChild(Notification._container);
|
|
@@ -355,10 +356,6 @@ export const NotificationMixin = (superClass) =>
|
|
|
355
356
|
return;
|
|
356
357
|
}
|
|
357
358
|
|
|
358
|
-
if (this._container.performUpdate) {
|
|
359
|
-
this._container.performUpdate();
|
|
360
|
-
}
|
|
361
|
-
|
|
362
359
|
if (!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)) {
|
|
363
360
|
console.warn(`Invalid alignment parameter provided: position=${this.position}`);
|
|
364
361
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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 { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED