@vaadin/vaadin-notification 22.0.0-alpha9 → 22.0.0
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/README.md +7 -57
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,62 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @vaadin/vaadin-notification
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
[API documentation ↗](https://vaadin.com/components/vaadin-notification/html-api)
|
|
3
|
+
> ⚠️ Starting from Vaadin 22, this package is deprecated.
|
|
4
|
+
> Please use [`@vaadin/notification`](https://www.npmjs.com/package/@vaadin/notification) instead.
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
A web component for providing feedback to the user.
|
|
8
7
|
|
|
9
|
-
[
|
|
10
|
-
[](https://vaadin.com/directory/component/vaadinvaadin-notification)
|
|
11
|
-
[](https://discord.gg/PHmkCKC)
|
|
12
|
-
|
|
13
|
-
```html
|
|
14
|
-
<vaadin-notification opened position="middle" duration="-1"></vaadin-notification>
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
const notification = document.querySelector('vaadin-notification');
|
|
18
|
-
|
|
19
|
-
notification.renderer = function (root) {
|
|
20
|
-
root.textContent = 'Your work has been saved';
|
|
21
|
-
};
|
|
22
|
-
</script>
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
[<img src="https://raw.githubusercontent.com/vaadin/vaadin-notification/master/screenshot.png" width="336" alt="Screenshot of vaadin-notification">](https://vaadin.com/components/vaadin-notification)
|
|
26
|
-
|
|
27
|
-
## Installation
|
|
28
|
-
|
|
29
|
-
Install `vaadin-notification`:
|
|
30
|
-
|
|
31
|
-
```sh
|
|
32
|
-
npm i @vaadin/vaadin-notification --save
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Once installed, import it in your application:
|
|
36
|
-
|
|
37
|
-
```js
|
|
38
|
-
import '@vaadin/vaadin-notification/vaadin-notification.js';
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Getting started
|
|
42
|
-
|
|
43
|
-
Vaadin components use the Lumo theme by default.
|
|
44
|
-
|
|
45
|
-
To use the Material theme, import the correspondent file from the `theme/material` folder.
|
|
46
|
-
|
|
47
|
-
## Entry points
|
|
48
|
-
|
|
49
|
-
- The component with the Lumo theme:
|
|
50
|
-
|
|
51
|
-
`theme/lumo/vaadin-notification.js`
|
|
52
|
-
|
|
53
|
-
- The component with the Material theme:
|
|
54
|
-
|
|
55
|
-
`theme/material/vaadin-notification.js`
|
|
56
|
-
|
|
57
|
-
- Alias for `theme/lumo/vaadin-notification.js`:
|
|
58
|
-
|
|
59
|
-
- `vaadin-notification.js`
|
|
8
|
+
[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/ds/components/notification)
|
|
60
9
|
|
|
61
10
|
## Contributing
|
|
62
11
|
|
|
@@ -66,4 +15,5 @@ Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/
|
|
|
66
15
|
|
|
67
16
|
Apache License 2.0
|
|
68
17
|
|
|
69
|
-
Vaadin collects development time
|
|
18
|
+
Vaadin collects usage statistics at development time to improve this product..
|
|
19
|
+
For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/vaadin-notification",
|
|
3
|
-
"version": "22.0.0
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"polymer"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vaadin/notification": "22.0.0
|
|
35
|
+
"@vaadin/notification": "^22.0.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "b668e9b1a975227fbe34beb70d1cd5b03dce2348"
|
|
38
38
|
}
|