@vaadin/context-menu 23.2.0-alpha2 → 23.2.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.2.0-alpha2",
3
+ "version": "23.2.0-alpha3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,20 +37,20 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/component-base": "23.2.0-alpha2",
41
- "@vaadin/item": "23.2.0-alpha2",
42
- "@vaadin/list-box": "23.2.0-alpha2",
43
- "@vaadin/lit-renderer": "23.2.0-alpha2",
44
- "@vaadin/vaadin-lumo-styles": "23.2.0-alpha2",
45
- "@vaadin/vaadin-material-styles": "23.2.0-alpha2",
46
- "@vaadin/vaadin-overlay": "23.2.0-alpha2",
47
- "@vaadin/vaadin-themable-mixin": "23.2.0-alpha2"
40
+ "@vaadin/component-base": "23.2.0-alpha3",
41
+ "@vaadin/item": "23.2.0-alpha3",
42
+ "@vaadin/list-box": "23.2.0-alpha3",
43
+ "@vaadin/lit-renderer": "23.2.0-alpha3",
44
+ "@vaadin/vaadin-lumo-styles": "23.2.0-alpha3",
45
+ "@vaadin/vaadin-material-styles": "23.2.0-alpha3",
46
+ "@vaadin/vaadin-overlay": "23.2.0-alpha3",
47
+ "@vaadin/vaadin-themable-mixin": "23.2.0-alpha3"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@esm-bundle/chai": "^4.3.4",
51
- "@vaadin/polymer-legacy-adapter": "23.2.0-alpha2",
51
+ "@vaadin/polymer-legacy-adapter": "23.2.0-alpha3",
52
52
  "@vaadin/testing-helpers": "^0.3.2",
53
53
  "sinon": "^13.0.2"
54
54
  },
55
- "gitHead": "c9b8113d0fa9a602f8b9cb915c1826355af2e8df"
55
+ "gitHead": "06e5875be93ca50da2846dafc65a8531010c0576"
56
56
  }
@@ -3,10 +3,10 @@
3
3
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { TemplateResult } from 'lit';
7
- import { DirectiveResult } from 'lit/directive.js';
6
+ import type { TemplateResult } from 'lit';
7
+ import type { DirectiveResult } from 'lit/directive.js';
8
8
  import { LitRendererDirective } from '@vaadin/lit-renderer';
9
- import { ContextMenu, ContextMenuRendererContext } from '../vaadin-context-menu.js';
9
+ import type { ContextMenu, ContextMenuRendererContext } from '../vaadin-context-menu.js';
10
10
 
11
11
  export type ContextMenuLitRenderer = (context: ContextMenuRendererContext, menu: ContextMenu) => TemplateResult;
12
12
 
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2016 - 2022 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { Constructor } from '@open-wc/dedupe-mixin';
6
+ import type { Constructor } from '@open-wc/dedupe-mixin';
7
7
  import { Item } from '@vaadin/item/src/vaadin-item.js';
8
8
  import { ListBox } from '@vaadin/list-box/src/vaadin-list-box.js';
9
9
 
@@ -330,7 +330,9 @@ export const ItemsMixin = (superClass) =>
330
330
  }
331
331
  });
332
332
 
333
- requestAnimationFrame(() => (this.__openListenerActive = true));
333
+ requestAnimationFrame(() => {
334
+ this.__openListenerActive = true;
335
+ });
334
336
  const openSubMenu = (
335
337
  e,
336
338
  itemElement = e.composedPath().filter((e) => e.localName === 'vaadin-context-menu-item')[0],