@vaadin/notification 24.7.0-alpha1 → 24.7.0-alpha3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/notification",
|
|
3
|
-
"version": "24.7.0-
|
|
3
|
+
"version": "24.7.0-alpha3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,23 +39,23 @@
|
|
|
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-alpha3",
|
|
43
|
+
"@vaadin/lit-renderer": "24.7.0-alpha3",
|
|
44
|
+
"@vaadin/overlay": "24.7.0-alpha3",
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "24.7.0-alpha3",
|
|
46
|
+
"@vaadin/vaadin-material-styles": "24.7.0-alpha3",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "24.7.0-alpha3",
|
|
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/testing-helpers": "^1.
|
|
51
|
+
"@vaadin/button": "24.7.0-alpha3",
|
|
52
|
+
"@vaadin/chai-plugins": "24.7.0-alpha3",
|
|
53
|
+
"@vaadin/testing-helpers": "^1.1.0",
|
|
54
54
|
"sinon": "^18.0.0"
|
|
55
55
|
},
|
|
56
56
|
"web-types": [
|
|
57
57
|
"web-types.json",
|
|
58
58
|
"web-types.lit.json"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "dd5cfad6c9b54e676f5b10dffba2233775378f40"
|
|
61
61
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
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';
|
|
@@ -105,7 +106,7 @@ class Notification extends NotificationMixin(ElementMixin(ThemableMixin(PolylitM
|
|
|
105
106
|
render() {
|
|
106
107
|
return html`
|
|
107
108
|
<vaadin-notification-card
|
|
108
|
-
theme="${this._theme
|
|
109
|
+
theme="${ifDefined(this._theme)}"
|
|
109
110
|
aria-live="${this.__computeAriaLive(this.assertive)}"
|
|
110
111
|
></vaadin-notification-card>
|
|
111
112
|
`;
|
|
@@ -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;
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED