@vaadin/button 24.2.0-alpha9 → 24.2.0-beta2

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/button",
3
- "version": "24.2.0-alpha9",
3
+ "version": "24.2.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,16 +38,16 @@
38
38
  "dependencies": {
39
39
  "@open-wc/dedupe-mixin": "^1.3.0",
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/a11y-base": "24.2.0-alpha9",
42
- "@vaadin/component-base": "24.2.0-alpha9",
43
- "@vaadin/vaadin-lumo-styles": "24.2.0-alpha9",
44
- "@vaadin/vaadin-material-styles": "24.2.0-alpha9",
45
- "@vaadin/vaadin-themable-mixin": "24.2.0-alpha9",
41
+ "@vaadin/a11y-base": "24.2.0-beta2",
42
+ "@vaadin/component-base": "24.2.0-beta2",
43
+ "@vaadin/vaadin-lumo-styles": "24.2.0-beta2",
44
+ "@vaadin/vaadin-material-styles": "24.2.0-beta2",
45
+ "@vaadin/vaadin-themable-mixin": "24.2.0-beta2",
46
46
  "lit": "^2.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@esm-bundle/chai": "^4.3.4",
50
- "@vaadin/icon": "24.2.0-alpha9",
50
+ "@vaadin/icon": "24.2.0-beta2",
51
51
  "@vaadin/testing-helpers": "^0.5.0",
52
52
  "sinon": "^13.0.2"
53
53
  },
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "e9765733fea96542e379e02e6f42b07145893140"
58
+ "gitHead": "4b852f9a12d4dade7f0fb3c73b7212436cebf310"
59
59
  }
@@ -74,6 +74,10 @@ export const ButtonMixin = (superClass) =>
74
74
  _onKeyDown(event) {
75
75
  super._onKeyDown(event);
76
76
 
77
+ if (event.altKey || event.shiftKey || event.ctrlKey || event.metaKey) {
78
+ return;
79
+ }
80
+
77
81
  if (this._activeKeys.includes(event.key)) {
78
82
  event.preventDefault();
79
83
 
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
7
7
  import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
8
+ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
8
9
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
9
10
  import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
10
11
  import { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
@@ -41,6 +42,7 @@ registerStyles('vaadin-button', buttonStyles, { moduleId: 'vaadin-button-styles'
41
42
  *
42
43
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
43
44
  *
45
+ * @customElement
44
46
  * @extends HTMLElement
45
47
  * @mixes ButtonMixin
46
48
  * @mixes ControllerMixin
@@ -65,6 +67,6 @@ class Button extends ButtonMixin(ElementMixin(ThemableMixin(ControllerMixin(Poly
65
67
  }
66
68
  }
67
69
 
68
- customElements.define(Button.is, Button);
70
+ defineCustomElement(Button);
69
71
 
70
72
  export { Button };
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/button",
4
- "version": "24.2.0-alpha9",
4
+ "version": "24.2.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/button",
4
- "version": "24.2.0-alpha9",
4
+ "version": "24.2.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {