@vaadin/menu-bar 23.0.9 → 23.0.12
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 +9 -9
- package/src/vaadin-menu-bar-button.js +1 -1
- package/src/vaadin-menu-bar-buttons-mixin.d.ts +1 -1
- package/src/vaadin-menu-bar-buttons-mixin.js +2 -2
- package/src/vaadin-menu-bar-interactions-mixin.d.ts +1 -1
- package/src/vaadin-menu-bar-interactions-mixin.js +5 -5
- package/src/vaadin-menu-bar.d.ts +8 -2
- package/src/vaadin-menu-bar.js +11 -4
- package/theme/lumo/vaadin-menu-bar-button-styles.js +1 -1
- package/theme/lumo/vaadin-menu-bar-item-styles.js +1 -1
- package/theme/lumo/vaadin-menu-bar-overlay-styles.js +1 -1
- package/theme/material/vaadin-menu-bar-button-styles.js +1 -1
- package/theme/material/vaadin-menu-bar-item-styles.js +1 -1
- package/theme/material/vaadin-menu-bar-overlay-styles.js +1 -1
- package/theme/material/vaadin-menu-bar-styles.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/menu-bar",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.12",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
37
|
"@polymer/polymer": "^3.0.0",
|
|
38
|
-
"@vaadin/button": "^23.0.
|
|
39
|
-
"@vaadin/component-base": "^23.0.
|
|
40
|
-
"@vaadin/vaadin-context-menu": "^23.0.
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "^23.0.
|
|
42
|
-
"@vaadin/vaadin-material-styles": "^23.0.
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "^23.0.
|
|
38
|
+
"@vaadin/button": "^23.0.12",
|
|
39
|
+
"@vaadin/component-base": "^23.0.12",
|
|
40
|
+
"@vaadin/vaadin-context-menu": "^23.0.12",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "^23.0.12",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "^23.0.12",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "^23.0.12"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@esm-bundle/chai": "^4.3.4",
|
|
47
|
-
"@vaadin/icon": "^23.0.
|
|
47
|
+
"@vaadin/icon": "^23.0.12",
|
|
48
48
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
49
49
|
"sinon": "^9.2.1"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "717908c222c1e241259e30b4144cd5ba32734819"
|
|
52
52
|
}
|
|
@@ -7,7 +7,7 @@ import { Constructor } from '@open-wc/dedupe-mixin';
|
|
|
7
7
|
import { ResizeMixinClass } from '@vaadin/component-base/src/resize-mixin.js';
|
|
8
8
|
|
|
9
9
|
export declare function ButtonsMixin<T extends Constructor<HTMLElement>>(
|
|
10
|
-
base: T
|
|
10
|
+
base: T,
|
|
11
11
|
): T & Constructor<ButtonsMixinClass> & Constructor<ResizeMixinClass>;
|
|
12
12
|
|
|
13
13
|
export declare class ButtonsMixinClass {
|
|
@@ -16,8 +16,8 @@ export const InteractionsMixin = (superClass) =>
|
|
|
16
16
|
* @attr {boolean} open-on-hover
|
|
17
17
|
*/
|
|
18
18
|
openOnHover: {
|
|
19
|
-
type: Boolean
|
|
20
|
-
}
|
|
19
|
+
type: Boolean,
|
|
20
|
+
},
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -324,9 +324,9 @@ export const InteractionsMixin = (superClass) =>
|
|
|
324
324
|
button.dispatchEvent(
|
|
325
325
|
new CustomEvent('opensubmenu', {
|
|
326
326
|
detail: {
|
|
327
|
-
children: items
|
|
328
|
-
}
|
|
329
|
-
})
|
|
327
|
+
children: items,
|
|
328
|
+
},
|
|
329
|
+
}),
|
|
330
330
|
);
|
|
331
331
|
|
|
332
332
|
this._setExpanded(button, true);
|
package/src/vaadin-menu-bar.d.ts
CHANGED
|
@@ -68,6 +68,12 @@ export interface MenuBarEventMap extends HTMLElementEventMap, MenuBarCustomEvent
|
|
|
68
68
|
* `menu-bar-button` | The menu bar button.
|
|
69
69
|
* `overflow-button` | The "overflow" button appearing when menu bar width is not enough to fit all the buttons.
|
|
70
70
|
*
|
|
71
|
+
* The following state attributes are available for styling:
|
|
72
|
+
*
|
|
73
|
+
* Attribute | Description
|
|
74
|
+
* --------------------|----------------------------------
|
|
75
|
+
* `disabled` | Set when the menu bar is disabled
|
|
76
|
+
*
|
|
71
77
|
* See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.
|
|
72
78
|
*
|
|
73
79
|
* ### Internal components
|
|
@@ -138,13 +144,13 @@ declare class MenuBar extends ButtonsMixin(DisabledMixin(InteractionsMixin(Eleme
|
|
|
138
144
|
addEventListener<K extends keyof MenuBarEventMap>(
|
|
139
145
|
type: K,
|
|
140
146
|
listener: (this: MenuBar, ev: MenuBarEventMap[K]) => void,
|
|
141
|
-
options?: boolean | AddEventListenerOptions
|
|
147
|
+
options?: boolean | AddEventListenerOptions,
|
|
142
148
|
): void;
|
|
143
149
|
|
|
144
150
|
removeEventListener<K extends keyof MenuBarEventMap>(
|
|
145
151
|
type: K,
|
|
146
152
|
listener: (this: MenuBar, ev: MenuBarEventMap[K]) => void,
|
|
147
|
-
options?: boolean | EventListenerOptions
|
|
153
|
+
options?: boolean | EventListenerOptions,
|
|
148
154
|
): void;
|
|
149
155
|
}
|
|
150
156
|
|
package/src/vaadin-menu-bar.js
CHANGED
|
@@ -39,6 +39,12 @@ import { InteractionsMixin } from './vaadin-menu-bar-interactions-mixin.js';
|
|
|
39
39
|
* `menu-bar-button` | The menu bar button.
|
|
40
40
|
* `overflow-button` | The "overflow" button appearing when menu bar width is not enough to fit all the buttons.
|
|
41
41
|
*
|
|
42
|
+
* The following state attributes are available for styling:
|
|
43
|
+
*
|
|
44
|
+
* Attribute | Description
|
|
45
|
+
* --------------------|----------------------------------
|
|
46
|
+
* `disabled` | Set when the menu bar is disabled
|
|
47
|
+
*
|
|
42
48
|
* See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.
|
|
43
49
|
*
|
|
44
50
|
* ### Internal components
|
|
@@ -56,6 +62,7 @@ import { InteractionsMixin } from './vaadin-menu-bar-interactions-mixin.js';
|
|
|
56
62
|
* @extends HTMLElement
|
|
57
63
|
* @mixes ButtonsMixin
|
|
58
64
|
* @mixes InteractionsMixin
|
|
65
|
+
* @mixes DisabledMixin
|
|
59
66
|
* @mixes ElementMixin
|
|
60
67
|
* @mixes ThemableMixin
|
|
61
68
|
*/
|
|
@@ -164,7 +171,7 @@ class MenuBar extends ButtonsMixin(DisabledMixin(InteractionsMixin(ElementMixin(
|
|
|
164
171
|
*/
|
|
165
172
|
items: {
|
|
166
173
|
type: Array,
|
|
167
|
-
value: () => []
|
|
174
|
+
value: () => [],
|
|
168
175
|
},
|
|
169
176
|
|
|
170
177
|
/**
|
|
@@ -194,10 +201,10 @@ class MenuBar extends ButtonsMixin(DisabledMixin(InteractionsMixin(ElementMixin(
|
|
|
194
201
|
type: Object,
|
|
195
202
|
value: () => {
|
|
196
203
|
return {
|
|
197
|
-
moreOptions: 'More options'
|
|
204
|
+
moreOptions: 'More options',
|
|
198
205
|
};
|
|
199
|
-
}
|
|
200
|
-
}
|
|
206
|
+
},
|
|
207
|
+
},
|
|
201
208
|
};
|
|
202
209
|
}
|
|
203
210
|
|