@exmg/exm-navigation 1.1.9-alpha.0 → 1.1.9
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.
|
@@ -20,7 +20,7 @@ export class ExmNavigationBase extends MediaQueries(ExmgElement) {
|
|
|
20
20
|
super();
|
|
21
21
|
this.items = [];
|
|
22
22
|
this.path = ['chat'];
|
|
23
|
-
this.drawerWidth =
|
|
23
|
+
this.drawerWidth = 275;
|
|
24
24
|
this.disableNavigate = false;
|
|
25
25
|
/**
|
|
26
26
|
* The menu item triggered by hovering and entering submenu's
|
|
@@ -91,6 +91,7 @@ export class ExmNavigationBase extends MediaQueries(ExmgElement) {
|
|
|
91
91
|
this.path = path;
|
|
92
92
|
this.selectedItem = path;
|
|
93
93
|
this.activeItem = path;
|
|
94
|
+
this.handleDrawerOpen();
|
|
94
95
|
}
|
|
95
96
|
updated(changedProperties) {
|
|
96
97
|
if (changedProperties.has('media')) {
|
|
@@ -7,8 +7,8 @@ export const MediaQueries = (superClass) => {
|
|
|
7
7
|
this.media = 'desktop';
|
|
8
8
|
this.touch = false;
|
|
9
9
|
this.mobileMedia = window.matchMedia('(max-width: 960px)');
|
|
10
|
-
this.tabletMedia = window.matchMedia('(min-width: 961px) and (max-width:
|
|
11
|
-
this.desktopMedia = window.matchMedia('(min-width:
|
|
10
|
+
this.tabletMedia = window.matchMedia('(min-width: 961px) and (max-width: 1600px)');
|
|
11
|
+
this.desktopMedia = window.matchMedia('(min-width: 1601px)');
|
|
12
12
|
this.hoverMedia = window.matchMedia('(hover: hover)');
|
|
13
13
|
}
|
|
14
14
|
updateMedia(media) {
|
|
@@ -2,10 +2,10 @@ import { css } from 'lit';
|
|
|
2
2
|
export const style = css `
|
|
3
3
|
:root {
|
|
4
4
|
--md-sys-color-background: var(--md-sys-color-surface-container-high);
|
|
5
|
+
--exm-drawer-max-width: 319px;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
:host {
|
|
8
|
-
--exm-drawer-max-width: 319px;
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-columns: var(--mdc-drawer-width, 300px) 1fr;
|
|
11
11
|
height: 100vh;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-navigation",
|
|
3
|
-
"version": "1.1.9
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "ac876ab3f3d6d83a43a3944c052c8e71de300832"
|
|
54
54
|
}
|