@vaadin/notification 24.6.5 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/notification",
3
- "version": "24.6.5",
3
+ "version": "24.7.0-alpha10",
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": "~24.6.5",
43
- "@vaadin/lit-renderer": "~24.6.5",
44
- "@vaadin/overlay": "~24.6.5",
45
- "@vaadin/vaadin-lumo-styles": "~24.6.5",
46
- "@vaadin/vaadin-material-styles": "~24.6.5",
47
- "@vaadin/vaadin-themable-mixin": "~24.6.5",
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.6.5",
52
- "@vaadin/chai-plugins": "~24.6.5",
53
- "@vaadin/test-runner-commands": "~24.6.5",
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
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": "fc109a4234a1f60e89717ab1c0dc8fb4451aa418"
61
+ "gitHead": "c0f8933df2a6a40648d3fb9cfbae6bbf86a8aa90"
62
62
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
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,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
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 { directive } from 'lit/directive.js';
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
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 - 2024 Vaadin Ltd.
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';
@@ -356,10 +356,6 @@ export const NotificationMixin = (superClass) =>
356
356
  return;
357
357
  }
358
358
 
359
- if (this._container.performUpdate) {
360
- this._container.performUpdate();
361
- }
362
-
363
359
  if (!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)) {
364
360
  console.warn(`Invalid alignment parameter provided: position=${this.position}`);
365
361
  return;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2024 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 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 } from 'lit';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
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 { TemplateResult } from 'lit';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/notification",
4
- "version": "24.6.5",
4
+ "version": "24.7.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/notification",
4
- "version": "24.6.5",
4
+ "version": "24.7.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {