@vaadin/context-menu 23.0.4 → 23.1.0-alpha2

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.4",
3
+ "version": "23.1.0-alpha2",
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": "^23.0.4",
39
- "@vaadin/item": "^23.0.4",
40
- "@vaadin/list-box": "^23.0.4",
41
- "@vaadin/vaadin-lumo-styles": "^23.0.4",
42
- "@vaadin/vaadin-material-styles": "^23.0.4",
43
- "@vaadin/vaadin-overlay": "^23.0.4",
44
- "@vaadin/vaadin-themable-mixin": "^23.0.4"
38
+ "@vaadin/component-base": "23.1.0-alpha2",
39
+ "@vaadin/item": "23.1.0-alpha2",
40
+ "@vaadin/list-box": "23.1.0-alpha2",
41
+ "@vaadin/vaadin-lumo-styles": "23.1.0-alpha2",
42
+ "@vaadin/vaadin-material-styles": "23.1.0-alpha2",
43
+ "@vaadin/vaadin-overlay": "23.1.0-alpha2",
44
+ "@vaadin/vaadin-themable-mixin": "23.1.0-alpha2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@esm-bundle/chai": "^4.3.4",
48
- "@vaadin/polymer-legacy-adapter": "^23.0.4",
48
+ "@vaadin/polymer-legacy-adapter": "23.1.0-alpha2",
49
49
  "@vaadin/testing-helpers": "^0.3.2",
50
50
  "sinon": "^9.2.1"
51
51
  },
52
- "gitHead": "d8db2046661c42fb5aac09ed683b500bf4613b26"
52
+ "gitHead": "6842dcb8b163d4512fae8d3d12a6559077a4aee6"
53
53
  }
@@ -55,7 +55,7 @@ class ContextMenuOverlay extends PositionMixin(OverlayElement) {
55
55
  }
56
56
 
57
57
  static get observers() {
58
- return ['_themeChanged(theme)'];
58
+ return ['_themeChanged(_theme)'];
59
59
  }
60
60
 
61
61
  ready() {
@@ -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$="[[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.theme);
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.theme && listBox.setAttribute('theme', this.theme);
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.theme) {
381
- listBox.setAttribute('theme', this.theme);
380
+ if (this._theme) {
381
+ listBox.setAttribute('theme', this._theme);
382
382
  } else {
383
383
  listBox.removeAttribute('theme');
384
384
  }