@vaadin/notification 24.5.0-alpha1 → 24.5.0-alpha2

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.5.0-alpha1",
3
+ "version": "24.5.0-alpha2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,16 +38,16 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/component-base": "24.5.0-alpha1",
42
- "@vaadin/lit-renderer": "24.5.0-alpha1",
43
- "@vaadin/vaadin-lumo-styles": "24.5.0-alpha1",
44
- "@vaadin/vaadin-material-styles": "24.5.0-alpha1",
45
- "@vaadin/vaadin-themable-mixin": "24.5.0-alpha1",
41
+ "@vaadin/component-base": "24.5.0-alpha2",
42
+ "@vaadin/lit-renderer": "24.5.0-alpha2",
43
+ "@vaadin/vaadin-lumo-styles": "24.5.0-alpha2",
44
+ "@vaadin/vaadin-material-styles": "24.5.0-alpha2",
45
+ "@vaadin/vaadin-themable-mixin": "24.5.0-alpha2",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@esm-bundle/chai": "^4.3.4",
50
- "@vaadin/button": "24.5.0-alpha1",
50
+ "@vaadin/button": "24.5.0-alpha2",
51
51
  "@vaadin/testing-helpers": "^0.6.0",
52
52
  "sinon": "^13.0.2"
53
53
  },
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "57806caac5468532a3b4e3dbdda730cd0fca193a"
58
+ "gitHead": "403f153bf4351f220cb6172485a0575ddf0d0fba"
59
59
  }
@@ -27,8 +27,14 @@ export type NotificationRenderer = (root: HTMLElement, notification: Notificatio
27
27
  */
28
28
  export type NotificationOpenedChangedEvent = CustomEvent<{ value: boolean }>;
29
29
 
30
+ /**
31
+ * Fired when the notification is closed.
32
+ */
33
+ export type NotificationClosedEvent = CustomEvent;
34
+
30
35
  export interface NotificationCustomEventMap {
31
36
  'opened-changed': NotificationOpenedChangedEvent;
37
+ closed: NotificationClosedEvent;
32
38
  }
33
39
 
34
40
  export interface NotificationEventMap extends HTMLElementEventMap, NotificationCustomEventMap {}
@@ -99,6 +105,7 @@ declare class NotificationCard extends ThemableMixin(HTMLElement) {}
99
105
  * propagated to the internal `<vaadin-notification-card>`.
100
106
  *
101
107
  * @fires {CustomEvent} opened-changed - Fired when the `opened` property changes.
108
+ * @fires {CustomEvent} closed - Fired when the notification is closed.
102
109
  */
103
110
  declare class Notification extends OverlayClassMixin(ThemePropertyMixin(ElementMixin(HTMLElement))) {
104
111
  /**
@@ -257,6 +257,7 @@ class NotificationCard extends ThemableMixin(PolymerElement) {
257
257
  * propagated to the internal `<vaadin-notification-card>`.
258
258
  *
259
259
  * @fires {CustomEvent} opened-changed - Fired when the `opened` property changes.
260
+ * @fires {CustomEvent} closed - Fired when the notification is closed.
260
261
  *
261
262
  * @customElement
262
263
  * @extends HTMLElement
@@ -532,6 +533,7 @@ class Notification extends OverlayClassMixin(ThemePropertyMixin(ElementMixin(Pol
532
533
  }
533
534
  this._card.removeAttribute('closing');
534
535
  this._container.opened = Boolean(this._container.firstElementChild);
536
+ this.dispatchEvent(new CustomEvent('closed'));
535
537
  }
536
538
 
537
539
  /** @private */
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.5.0-alpha1",
4
+ "version": "24.5.0-alpha2",
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.5.0-alpha1",
4
+ "version": "24.5.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {