@vaadin/menu-bar
Advanced tools
Comparing version 22.0.0-alpha7 to 22.0.0-alpha8
{ | ||
"name": "@vaadin/menu-bar", | ||
"version": "22.0.0-alpha7", | ||
"version": "22.0.0-alpha8", | ||
"publishConfig": { | ||
@@ -37,16 +37,16 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/button": "22.0.0-alpha7", | ||
"@vaadin/component-base": "22.0.0-alpha7", | ||
"@vaadin/vaadin-context-menu": "22.0.0-alpha7", | ||
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha7", | ||
"@vaadin/vaadin-material-styles": "22.0.0-alpha7", | ||
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha7" | ||
"@vaadin/button": "22.0.0-alpha8", | ||
"@vaadin/component-base": "22.0.0-alpha8", | ||
"@vaadin/vaadin-context-menu": "22.0.0-alpha8", | ||
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha8", | ||
"@vaadin/vaadin-material-styles": "22.0.0-alpha8", | ||
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha8" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/icon": "22.0.0-alpha7", | ||
"@vaadin/icon": "22.0.0-alpha8", | ||
"@vaadin/testing-helpers": "^0.3.0", | ||
"sinon": "^9.2.1" | ||
}, | ||
"gitHead": "8e89419c6b44a1d225d5859e180d7b35e47ddb52" | ||
"gitHead": "c24468526298ee26ad7f7280b59f6c8789e1f75f" | ||
} |
@@ -0,1 +1,7 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
declare function ButtonsMixin<T extends new (...args: any[]) => {}>(base: T): T & ButtonsMixinConstructor; | ||
@@ -15,10 +21,4 @@ | ||
_hasOverflow: boolean; | ||
/** | ||
* Call this method after updating menu bar `items` dynamically, including changing | ||
* any property on the item object corresponding to one of the menu bar buttons. | ||
*/ | ||
render(): void; | ||
} | ||
export { ButtonsMixin, ButtonsMixinConstructor }; |
@@ -170,20 +170,2 @@ /** | ||
/** | ||
* Call this method after updating menu bar `items` dynamically, including changing | ||
* any property on the item object corresponding to one of the menu bar buttons. | ||
* | ||
* @deprecated Since Vaadin 21, `render()` is deprecated. The `items` value is immutable. Please replace it with a new value instead of mutating in place. | ||
*/ | ||
render() { | ||
console.warn( | ||
'WARNING: Since Vaadin 21, render() is deprecated. The items value is immutable. Please replace it with a new value instead of mutating in place.' | ||
); | ||
if (!this.shadowRoot) { | ||
return; | ||
} | ||
this.__renderButtons(this.items); | ||
} | ||
/** @protected */ | ||
@@ -190,0 +172,0 @@ _removeButtons() { |
@@ -0,1 +1,7 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
declare function InteractionsMixin<T extends new (...args: any[]) => {}>(base: T): T & InteractionsMixinConstructor; | ||
@@ -19,12 +25,4 @@ | ||
notifyResize(): void; | ||
_onFocusin(event: FocusEvent): void; | ||
_onKeydown(event: KeyboardEvent): void; | ||
_onMouseOver(e: MouseEvent): void; | ||
_close(restoreFocus: boolean): void; | ||
} | ||
export { InteractionsMixin, InteractionsMixinConstructor }; |
@@ -0,12 +1,43 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js'; | ||
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
import { ButtonsMixin } from './vaadin-menu-bar-buttons-mixin.js'; | ||
import { InteractionsMixin } from './vaadin-menu-bar-interactions-mixin.js'; | ||
import { MenuBarEventMap, MenuBarI18n, MenuBarItem } from './interfaces'; | ||
export interface MenuBarItem { | ||
text?: string; | ||
component?: string | HTMLElement; | ||
disabled?: boolean; | ||
theme?: string | string[]; | ||
children?: SubMenuItem[]; | ||
} | ||
export interface SubMenuItem { | ||
text?: string; | ||
component?: string | HTMLElement; | ||
disabled?: boolean; | ||
checked?: boolean; | ||
children?: SubMenuItem[]; | ||
} | ||
export interface MenuBarI18n { | ||
moreOptions: string; | ||
} | ||
/** | ||
* Fired when a submenu item or menu bar button without children is clicked. | ||
*/ | ||
export type MenuBarItemSelectedEvent = CustomEvent<{ value: MenuBarItem }>; | ||
export interface MenuBarCustomEventMap { | ||
'item-selected': MenuBarItemSelectedEvent; | ||
} | ||
export interface MenuBarEventMap extends HTMLElementEventMap, MenuBarCustomEventMap {} | ||
/** | ||
* `<vaadin-menu-bar>` is a Web Component providing a set of horizontally stacked buttons offering | ||
@@ -13,0 +44,0 @@ * the user quick access to a consistent set of commands. Each button can toggle a submenu with |
export * from './src/vaadin-menu-bar.js'; | ||
export * from './src/interfaces'; |
58512
24
1349
+ Added@vaadin/button@22.0.0-alpha8(transitive)
+ Added@vaadin/component-base@22.0.0-alpha8(transitive)
+ Added@vaadin/context-menu@22.0.0-alpha8(transitive)
+ Added@vaadin/icon@22.0.0-alpha8(transitive)
+ Added@vaadin/item@22.0.0-alpha8(transitive)
+ Added@vaadin/list-box@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-context-menu@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-list-mixin@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-lumo-styles@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-material-styles@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-overlay@22.0.0-alpha8(transitive)
+ Added@vaadin/vaadin-themable-mixin@22.0.0-alpha8(transitive)
- Removed@vaadin/button@22.0.0-alpha7(transitive)
- Removed@vaadin/component-base@22.0.0-alpha7(transitive)
- Removed@vaadin/context-menu@22.0.0-alpha7(transitive)
- Removed@vaadin/icon@22.0.0-alpha7(transitive)
- Removed@vaadin/item@22.0.0-alpha7(transitive)
- Removed@vaadin/list-box@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-context-menu@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-list-mixin@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-lumo-styles@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-material-styles@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-overlay@22.0.0-alpha7(transitive)
- Removed@vaadin/vaadin-themable-mixin@22.0.0-alpha7(transitive)
Updated@vaadin/button@22.0.0-alpha8