@vaadin/context-menu 23.0.6 → 23.1.0-alpha3
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/context-menu",
|
|
3
|
-
"version": "23.0
|
|
3
|
+
"version": "23.1.0-alpha3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
37
|
"@polymer/polymer": "^3.0.0",
|
|
38
|
-
"@vaadin/component-base": "
|
|
39
|
-
"@vaadin/item": "
|
|
40
|
-
"@vaadin/list-box": "
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
42
|
-
"@vaadin/vaadin-material-styles": "
|
|
43
|
-
"@vaadin/vaadin-overlay": "
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
38
|
+
"@vaadin/component-base": "23.1.0-alpha3",
|
|
39
|
+
"@vaadin/item": "23.1.0-alpha3",
|
|
40
|
+
"@vaadin/list-box": "23.1.0-alpha3",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "23.1.0-alpha3",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "23.1.0-alpha3",
|
|
43
|
+
"@vaadin/vaadin-overlay": "23.1.0-alpha3",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "23.1.0-alpha3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@esm-bundle/chai": "^4.3.4",
|
|
48
|
-
"@vaadin/polymer-legacy-adapter": "
|
|
48
|
+
"@vaadin/polymer-legacy-adapter": "23.1.0-alpha3",
|
|
49
49
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
50
|
-
"sinon": "^
|
|
50
|
+
"sinon": "^13.0.2"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "8c9e64e8dfa158dd52a9bf6da351ff038c88ca85"
|
|
53
53
|
}
|
|
@@ -224,7 +224,7 @@ class ContextMenu extends ControllerMixin(ElementMixin(ThemePropertyMixin(ItemsM
|
|
|
224
224
|
with-backdrop="[[_phone]]"
|
|
225
225
|
phone$="[[_phone]]"
|
|
226
226
|
model="[[_context]]"
|
|
227
|
-
theme$="[[
|
|
227
|
+
theme$="[[_theme]]"
|
|
228
228
|
>
|
|
229
229
|
</vaadin-context-menu-overlay>
|
|
230
230
|
`;
|
|
@@ -166,8 +166,8 @@ export const ItemsMixin = (superClass) =>
|
|
|
166
166
|
subMenuOverlay._setParentOverlay(parent);
|
|
167
167
|
|
|
168
168
|
// Set theme attribute from parent element
|
|
169
|
-
if (parent.theme) {
|
|
170
|
-
subMenu.setAttribute('theme', parent.theme);
|
|
169
|
+
if (parent.hasAttribute('theme')) {
|
|
170
|
+
subMenu.setAttribute('theme', parent.getAttribute('theme'));
|
|
171
171
|
} else {
|
|
172
172
|
subMenu.removeAttribute('theme');
|
|
173
173
|
}
|
|
@@ -217,7 +217,7 @@ export const ItemsMixin = (superClass) =>
|
|
|
217
217
|
component.setAttribute('role', 'separator');
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
this._setMenuItemTheme(component, item, this.
|
|
220
|
+
this._setMenuItemTheme(component, item, this._theme);
|
|
221
221
|
|
|
222
222
|
component._item = item;
|
|
223
223
|
|
|
@@ -280,7 +280,7 @@ export const ItemsMixin = (superClass) =>
|
|
|
280
280
|
`;
|
|
281
281
|
flush();
|
|
282
282
|
const listBox = root.querySelector('vaadin-context-menu-list-box');
|
|
283
|
-
this.
|
|
283
|
+
this._theme && listBox.setAttribute('theme', this._theme);
|
|
284
284
|
listBox.classList.add('vaadin-menu-list-box');
|
|
285
285
|
requestAnimationFrame(() => listBox.setAttribute('role', 'menu'));
|
|
286
286
|
|
|
@@ -377,8 +377,8 @@ export const ItemsMixin = (superClass) =>
|
|
|
377
377
|
});
|
|
378
378
|
} else {
|
|
379
379
|
const listBox = root.querySelector('vaadin-context-menu-list-box');
|
|
380
|
-
if (this.
|
|
381
|
-
listBox.setAttribute('theme', this.
|
|
380
|
+
if (this._theme) {
|
|
381
|
+
listBox.setAttribute('theme', this._theme);
|
|
382
382
|
} else {
|
|
383
383
|
listBox.removeAttribute('theme');
|
|
384
384
|
}
|