@vaadin/app-layout
Advanced tools
Comparing version 23.1.0-alpha3 to 23.1.0-alpha4
{ | ||
"name": "@vaadin/app-layout", | ||
"version": "23.1.0-alpha3", | ||
"version": "23.1.0-alpha4", | ||
"publishConfig": { | ||
@@ -37,15 +37,15 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/button": "23.1.0-alpha3", | ||
"@vaadin/component-base": "23.1.0-alpha3", | ||
"@vaadin/vaadin-lumo-styles": "23.1.0-alpha3", | ||
"@vaadin/vaadin-material-styles": "23.1.0-alpha3", | ||
"@vaadin/vaadin-themable-mixin": "23.1.0-alpha3" | ||
"@vaadin/button": "23.1.0-alpha4", | ||
"@vaadin/component-base": "23.1.0-alpha4", | ||
"@vaadin/vaadin-lumo-styles": "23.1.0-alpha4", | ||
"@vaadin/vaadin-material-styles": "23.1.0-alpha4", | ||
"@vaadin/vaadin-themable-mixin": "23.1.0-alpha4" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/tabs": "23.1.0-alpha3", | ||
"@vaadin/tabs": "23.1.0-alpha4", | ||
"@vaadin/testing-helpers": "^0.3.2", | ||
"sinon": "^13.0.2" | ||
}, | ||
"gitHead": "8c9e64e8dfa158dd52a9bf6da351ff038c88ca85" | ||
"gitHead": "aacdb7fe09811894751f0378ff7fb66071892c71" | ||
} |
@@ -16,3 +16,3 @@ /** | ||
if (landscape && clientHeight > innerHeight) { | ||
document.documentElement.style.setProperty('--vaadin-viewport-offset-bottom', clientHeight - innerHeight + 'px'); | ||
document.documentElement.style.setProperty('--vaadin-viewport-offset-bottom', `${clientHeight - innerHeight}px`); | ||
} else { | ||
@@ -19,0 +19,0 @@ document.documentElement.style.setProperty('--vaadin-viewport-offset-bottom', ''); |
@@ -188,3 +188,3 @@ /** | ||
listener: (this: AppLayout, ev: AppLayoutEventMap[K]) => void, | ||
options?: boolean | AddEventListenerOptions | ||
options?: boolean | AddEventListenerOptions, | ||
): void; | ||
@@ -195,3 +195,3 @@ | ||
listener: (this: AppLayout, ev: AppLayoutEventMap[K]) => void, | ||
options?: boolean | EventListenerOptions | ||
options?: boolean | EventListenerOptions, | ||
): void; | ||
@@ -198,0 +198,0 @@ } |
@@ -344,5 +344,5 @@ /** | ||
return { | ||
drawer: 'Drawer' | ||
drawer: 'Drawer', | ||
}; | ||
} | ||
}, | ||
}, | ||
@@ -362,3 +362,3 @@ | ||
reflectToAttribute: true, | ||
observer: '__primarySectionChanged' | ||
observer: '__primarySectionChanged', | ||
}, | ||
@@ -379,3 +379,3 @@ | ||
reflectToAttribute: true, | ||
observer: '__drawerOpenedChanged' | ||
observer: '__drawerOpenedChanged', | ||
}, | ||
@@ -393,3 +393,3 @@ | ||
value: false, | ||
reflectToAttribute: true | ||
reflectToAttribute: true, | ||
}, | ||
@@ -407,4 +407,4 @@ | ||
value: 'vaadin-router-location-changed', | ||
observer: '_closeDrawerOnChanged' | ||
} | ||
observer: '_closeDrawerOnChanged', | ||
}, | ||
}; | ||
@@ -466,5 +466,12 @@ } | ||
this._navbarChildObserver && this._navbarChildObserver.disconnect(); | ||
this._drawerChildObserver && this._drawerChildObserver.disconnect(); | ||
this._touchChildObserver && this._touchChildObserver.disconnect(); | ||
if (this._navbarChildObserver) { | ||
this._navbarChildObserver.disconnect(); | ||
} | ||
if (this._drawerChildObserver) { | ||
this._drawerChildObserver.disconnect(); | ||
} | ||
if (this._touchChildObserver) { | ||
this._touchChildObserver.disconnect(); | ||
} | ||
window.removeEventListener('resize', this.__boundResizeListener); | ||
@@ -590,4 +597,4 @@ this.removeEventListener('drawer-toggle-click', this.__drawerToggleClickListener); | ||
this.style.setProperty('--_vaadin-app-layout-navbar-offset-size', navbarRect.height + 'px'); | ||
this.style.setProperty('--_vaadin-app-layout-navbar-offset-size-bottom', navbarBottomRect.height + 'px'); | ||
this.style.setProperty('--_vaadin-app-layout-navbar-offset-size', `${navbarRect.height}px`); | ||
this.style.setProperty('--_vaadin-app-layout-navbar-offset-size-bottom', `${navbarBottomRect.height}px`); | ||
@@ -597,3 +604,3 @@ const drawer = this.$.drawer; | ||
this.style.setProperty('--_vaadin-app-layout-drawer-offset-size', drawerRect.width + 'px'); | ||
this.style.setProperty('--_vaadin-app-layout-drawer-offset-size', `${drawerRect.width}px`); | ||
} | ||
@@ -744,3 +751,3 @@ | ||
_updateTouchOptimizedMode() { | ||
const touchOptimized = this._getCustomPropertyValue('--vaadin-app-layout-touch-optimized') == 'true'; | ||
const touchOptimized = this._getCustomPropertyValue('--vaadin-app-layout-touch-optimized') === 'true'; | ||
@@ -747,0 +754,0 @@ const navbarItems = this.querySelectorAll('[slot*="navbar"]'); |
@@ -74,4 +74,4 @@ /** | ||
value: 'Toggle navigation panel', | ||
reflectToAttribute: true | ||
} | ||
reflectToAttribute: true, | ||
}, | ||
}; | ||
@@ -78,0 +78,0 @@ } |
@@ -71,3 +71,3 @@ import '@vaadin/vaadin-lumo-styles/color.js'; | ||
`, | ||
{ moduleId: 'lumo-app-layout' } | ||
{ moduleId: 'lumo-app-layout' }, | ||
); |
@@ -59,3 +59,3 @@ import '@vaadin/vaadin-material-styles/color.js'; | ||
`, | ||
{ moduleId: 'material-app-layout' } | ||
{ moduleId: 'material-app-layout' }, | ||
); |
@@ -50,3 +50,3 @@ import '@vaadin/vaadin-material-styles/color.js'; | ||
registerStyles('vaadin-drawer-toggle', [button, drawerToggle], { | ||
moduleId: 'material-drawer-toggle' | ||
moduleId: 'material-drawer-toggle', | ||
}); |
57984
1218
+ Added@vaadin/button@23.1.0-alpha4(transitive)
+ Added@vaadin/component-base@23.1.0-alpha4(transitive)
+ Added@vaadin/icon@23.1.0-alpha4(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.1.0-alpha4(transitive)
+ Added@vaadin/vaadin-material-styles@23.1.0-alpha4(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.1.0-alpha4(transitive)
- Removed@vaadin/button@23.1.0-alpha3(transitive)
- Removed@vaadin/component-base@23.1.0-alpha3(transitive)
- Removed@vaadin/icon@23.1.0-alpha3(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.1.0-alpha3(transitive)
- Removed@vaadin/vaadin-material-styles@23.1.0-alpha3(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.1.0-alpha3(transitive)
Updated@vaadin/button@23.1.0-alpha4