@vaadin/vaadin-app-layout 22.0.0-alpha7 → 22.0.0-beta2
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 -73
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,78 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @vaadin/vaadin-app-layout
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
[API documentation ↗](https://vaadin.com/components/vaadin-app-layout/html-api)
|
|
3
|
+
> ⚠️ Starting from Vaadin 22, this package is deprecated.
|
|
4
|
+
> Please use [`@vaadin/app-layout`](https://www.npmjs.com/package/@vaadin/app-layout) instead.
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
A web component for building common application layouts.
|
|
8
7
|
|
|
9
|
-
[
|
|
10
|
-
[](https://vaadin.com/directory/component/vaadinvaadin-app-layout)
|
|
11
|
-
[](https://discord.gg/PHmkCKC)
|
|
12
|
-
|
|
13
|
-
```html
|
|
14
|
-
<vaadin-app-layout>
|
|
15
|
-
<vaadin-drawer-toggle slot="navbar touch-optimized"></vaadin-drawer-toggle>
|
|
16
|
-
<h3 slot="navbar touch-optimized">Application Name</h3>
|
|
17
|
-
<vaadin-tabs orientation="vertical" slot="drawer">
|
|
18
|
-
<vaadin-tab>
|
|
19
|
-
<a href="/profile">
|
|
20
|
-
<vaadin-icon icon="lumo:user"></vaadin-icon>
|
|
21
|
-
Profile
|
|
22
|
-
</a>
|
|
23
|
-
</vaadin-tab>
|
|
24
|
-
<vaadin-tab>
|
|
25
|
-
<a href="/contact">
|
|
26
|
-
<vaadin-icon icon="lumo:phone"></vaadin-icon>
|
|
27
|
-
Contact
|
|
28
|
-
</a>
|
|
29
|
-
</vaadin-tab>
|
|
30
|
-
</vaadin-tabs>
|
|
31
|
-
<div>Page content</div>
|
|
32
|
-
</vaadin-app-layout>
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
[<img src="https://raw.githubusercontent.com/vaadin/vaadin-app-layout/master/screenshot.png" width="900" alt="Screenshot of vaadin-app-layout">](https://vaadin.com/components/vaadin-app-layout)
|
|
36
|
-
|
|
37
|
-
[<img src="https://raw.githubusercontent.com/vaadin/vaadin-app-layout/master/screenshot-mobile.png" width="350" alt="Screenshot of vaadin-app-layout on mobile">](https://vaadin.com/components/vaadin-app-layout)
|
|
38
|
-
|
|
39
|
-
## Installation
|
|
40
|
-
|
|
41
|
-
Install `vaadin-app-layout`:
|
|
42
|
-
|
|
43
|
-
```sh
|
|
44
|
-
npm i @vaadin/vaadin-app-layout --save
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Once installed, import it in your application:
|
|
48
|
-
|
|
49
|
-
```js
|
|
50
|
-
import '@vaadin/vaadin-app-layout/vaadin-app-layout.js';
|
|
51
|
-
import '@vaadin/vaadin-app-layout/vaadin-drawer-toggle.js';
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Getting Started
|
|
55
|
-
|
|
56
|
-
Vaadin components use the Lumo theme by default.
|
|
57
|
-
|
|
58
|
-
To use the Material theme, import the correspondent file from the `theme/material` folder.
|
|
59
|
-
|
|
60
|
-
## Entry points
|
|
61
|
-
|
|
62
|
-
- The components with the Lumo theme:
|
|
63
|
-
|
|
64
|
-
`theme/lumo/vaadin-app-layout.js`
|
|
65
|
-
`theme/lumo/vaadin-drawer-toggle.js`
|
|
66
|
-
|
|
67
|
-
- The components with the Material theme:
|
|
68
|
-
|
|
69
|
-
`theme/material/vaadin-app-layout.js`
|
|
70
|
-
`theme/material/vaadin-drawer-toggle.js`
|
|
71
|
-
|
|
72
|
-
- Aliases for `theme/lumo/vaadin-app-layout.js` `theme/lumo/vaadin-drawer-toggle.js`
|
|
73
|
-
|
|
74
|
-
`vaadin-app-layout.js`
|
|
75
|
-
`vaadin-drawer-toggle.js`
|
|
8
|
+
[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/ds/components/app-layout)
|
|
76
9
|
|
|
77
10
|
## Contributing
|
|
78
11
|
|
|
@@ -82,4 +15,5 @@ Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/
|
|
|
82
15
|
|
|
83
16
|
Apache License 2.0
|
|
84
17
|
|
|
85
|
-
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-app-layout",
|
|
3
|
-
"version": "22.0.0-
|
|
3
|
+
"version": "22.0.0-beta2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"polymer"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vaadin/app-layout": "22.0.0-
|
|
35
|
+
"@vaadin/app-layout": "22.0.0-beta2"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "f13833683e6667f6ca6678452db14aa6b7eac4a4"
|
|
38
38
|
}
|