@vaadin/menu-bar 23.0.7 → 23.0.8
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/menu-bar",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.8",
|
|
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.8",
|
|
39
|
+
"@vaadin/component-base": "^23.0.8",
|
|
40
|
+
"@vaadin/vaadin-context-menu": "^23.0.8",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "^23.0.8",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "^23.0.8",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "^23.0.8"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@esm-bundle/chai": "^4.3.4",
|
|
47
|
-
"@vaadin/icon": "^23.0.
|
|
47
|
+
"@vaadin/icon": "^23.0.8",
|
|
48
48
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
49
49
|
"sinon": "^9.2.1"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "43fe9d95c8cd745adc7bef214c0097c47f4f83ed"
|
|
52
52
|
}
|
|
@@ -28,6 +28,16 @@ export const ButtonsMixin = (superClass) =>
|
|
|
28
28
|
return ['_menuItemsChanged(items, items.splices)'];
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Override getter from `ResizeMixin` to observe parent.
|
|
33
|
+
*
|
|
34
|
+
* @protected
|
|
35
|
+
* @override
|
|
36
|
+
*/
|
|
37
|
+
get _observeParent() {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
31
41
|
/** @protected */
|
|
32
42
|
ready() {
|
|
33
43
|
super.ready();
|
|
@@ -95,8 +105,13 @@ export const ButtonsMixin = (superClass) =>
|
|
|
95
105
|
item.classList.remove('vaadin-menu-item');
|
|
96
106
|
}
|
|
97
107
|
}
|
|
98
|
-
this.
|
|
99
|
-
|
|
108
|
+
this.__updateOverflow([]);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** @private */
|
|
112
|
+
__updateOverflow(items) {
|
|
113
|
+
this._overflow.item = { children: items };
|
|
114
|
+
this._hasOverflow = items.length > 0;
|
|
100
115
|
}
|
|
101
116
|
|
|
102
117
|
/** @private */
|
|
@@ -127,9 +142,8 @@ export const ButtonsMixin = (superClass) =>
|
|
|
127
142
|
// save width for buttons with component
|
|
128
143
|
btn.style.width = btnStyle.width;
|
|
129
144
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
};
|
|
145
|
+
const items = buttons.filter((_, idx) => idx >= i).map((b) => b.item);
|
|
146
|
+
this.__updateOverflow(items);
|
|
133
147
|
}
|
|
134
148
|
}
|
|
135
149
|
|