@vaadin/app-layout 24.0.0-beta1 → 24.0.0-beta3
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 +8 -8
- package/src/vaadin-drawer-toggle.js +46 -36
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/app-layout",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-beta3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/button": "24.0.0-
|
|
40
|
-
"@vaadin/component-base": "24.0.0-
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "24.0.0-
|
|
42
|
-
"@vaadin/vaadin-material-styles": "24.0.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "24.0.0-
|
|
39
|
+
"@vaadin/button": "24.0.0-beta3",
|
|
40
|
+
"@vaadin/component-base": "24.0.0-beta3",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "24.0.0-beta3",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "24.0.0-beta3",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "24.0.0-beta3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@esm-bundle/chai": "^4.3.4",
|
|
47
|
-
"@vaadin/tabs": "24.0.0-
|
|
47
|
+
"@vaadin/tabs": "24.0.0-beta3",
|
|
48
48
|
"@vaadin/testing-helpers": "^0.4.0",
|
|
49
49
|
"sinon": "^13.0.2"
|
|
50
50
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"web-types.json",
|
|
53
53
|
"web-types.lit.json"
|
|
54
54
|
],
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "4daeac63327393aacd9cfaa5abeb031ea86b14a5"
|
|
56
56
|
}
|
|
@@ -7,6 +7,52 @@ import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nod
|
|
|
7
7
|
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
|
|
8
8
|
import { Button } from '@vaadin/button/src/vaadin-button.js';
|
|
9
9
|
import { isEmptyTextNode } from '@vaadin/component-base/src/dom-utils.js';
|
|
10
|
+
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Use registerStyles instead of the `<style>` tag to make sure
|
|
14
|
+
* that this CSS will override core styles of `vaadin-button`.
|
|
15
|
+
*/
|
|
16
|
+
registerStyles(
|
|
17
|
+
'vaadin-drawer-toggle',
|
|
18
|
+
css`
|
|
19
|
+
:host {
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
cursor: default;
|
|
24
|
+
position: relative;
|
|
25
|
+
outline: none;
|
|
26
|
+
height: 24px;
|
|
27
|
+
width: 24px;
|
|
28
|
+
padding: 4px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[part='icon'],
|
|
32
|
+
[part='icon']::after,
|
|
33
|
+
[part='icon']::before {
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 8px;
|
|
36
|
+
height: 3px;
|
|
37
|
+
width: 24px;
|
|
38
|
+
background-color: #000;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[part='icon']::after,
|
|
42
|
+
[part='icon']::before {
|
|
43
|
+
content: '';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[part='icon']::after {
|
|
47
|
+
top: 6px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[part='icon']::before {
|
|
51
|
+
top: 12px;
|
|
52
|
+
}
|
|
53
|
+
`,
|
|
54
|
+
{ moduleId: 'vaadin-drawer-toggle-styles' },
|
|
55
|
+
);
|
|
10
56
|
|
|
11
57
|
/**
|
|
12
58
|
* The Drawer Toggle component controls the drawer in App Layout component.
|
|
@@ -22,42 +68,6 @@ import { isEmptyTextNode } from '@vaadin/component-base/src/dom-utils.js';
|
|
|
22
68
|
class DrawerToggle extends Button {
|
|
23
69
|
static get template() {
|
|
24
70
|
return html`
|
|
25
|
-
<style>
|
|
26
|
-
:host {
|
|
27
|
-
display: inline-flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
cursor: default;
|
|
31
|
-
position: relative;
|
|
32
|
-
outline: none;
|
|
33
|
-
height: 24px;
|
|
34
|
-
width: 24px;
|
|
35
|
-
padding: 4px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
[part='icon'],
|
|
39
|
-
[part='icon']::after,
|
|
40
|
-
[part='icon']::before {
|
|
41
|
-
position: absolute;
|
|
42
|
-
top: 8px;
|
|
43
|
-
height: 3px;
|
|
44
|
-
width: 24px;
|
|
45
|
-
background-color: #000;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
[part='icon']::after,
|
|
49
|
-
[part='icon']::before {
|
|
50
|
-
content: '';
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
[part='icon']::after {
|
|
54
|
-
top: 6px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
[part='icon']::before {
|
|
58
|
-
top: 12px;
|
|
59
|
-
}
|
|
60
|
-
</style>
|
|
61
71
|
<slot id="slot">
|
|
62
72
|
<div part="icon"></div>
|
|
63
73
|
</slot>
|
package/web-types.json
CHANGED