@vaadin/radio-group 22.0.2 → 23.0.0-alpha4

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/radio-group",
3
- "version": "22.0.2",
3
+ "version": "23.0.0-alpha4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -18,6 +18,7 @@
18
18
  },
19
19
  "main": "vaadin-radio-group.js",
20
20
  "module": "vaadin-radio-group.js",
21
+ "type": "module",
21
22
  "files": [
22
23
  "src",
23
24
  "theme",
@@ -35,16 +36,16 @@
35
36
  ],
36
37
  "dependencies": {
37
38
  "@polymer/polymer": "^3.0.0",
38
- "@vaadin/component-base": "^22.0.2",
39
- "@vaadin/field-base": "^22.0.2",
40
- "@vaadin/vaadin-lumo-styles": "^22.0.2",
41
- "@vaadin/vaadin-material-styles": "^22.0.2",
42
- "@vaadin/vaadin-themable-mixin": "^22.0.2"
39
+ "@vaadin/component-base": "23.0.0-alpha4",
40
+ "@vaadin/field-base": "23.0.0-alpha4",
41
+ "@vaadin/vaadin-lumo-styles": "23.0.0-alpha4",
42
+ "@vaadin/vaadin-material-styles": "23.0.0-alpha4",
43
+ "@vaadin/vaadin-themable-mixin": "23.0.0-alpha4"
43
44
  },
44
45
  "devDependencies": {
45
46
  "@esm-bundle/chai": "^4.3.4",
46
47
  "@vaadin/testing-helpers": "^0.3.2",
47
48
  "sinon": "^9.2.1"
48
49
  },
49
- "gitHead": "df21370c4a655a38eac11f79686021ab3b0887ad"
50
+ "gitHead": "81e2deee5147bb7c1f4884760f4598613306f1fb"
50
51
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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
6
  import { ActiveMixin } from '@vaadin/component-base/src/active-mixin.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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
6
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
@@ -173,18 +173,19 @@ class RadioButton extends SlotLabelMixin(
173
173
  }
174
174
 
175
175
  /** @protected */
176
- ready() {
177
- super.ready();
176
+ connectedCallback() {
177
+ super.connectedCallback();
178
178
 
179
- this.addController(
180
- new InputController(this, (input) => {
179
+ if (!this._inputController) {
180
+ this._inputController = new InputController(this, (input) => {
181
181
  this._setInputElement(input);
182
182
  this._setFocusElement(input);
183
183
  this.stateTarget = input;
184
184
  this.ariaTarget = input;
185
- })
186
- );
187
- this.addController(new LabelledInputController(this.inputElement, this._labelNode));
185
+ });
186
+ this.addController(this._inputController);
187
+ this.addController(new LabelledInputController(this.inputElement, this._labelController));
188
+ }
188
189
  }
189
190
  }
190
191
 
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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 { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
7
6
  import { DisabledMixin } from '@vaadin/component-base/src/disabled-mixin.js';
7
+ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
8
8
  import { FocusMixin } from '@vaadin/component-base/src/focus-mixin.js';
9
9
  import { KeyboardMixin } from '@vaadin/component-base/src/keyboard-mixin.js';
10
10
  import { FieldMixin } from '@vaadin/field-base/src/field-mixin.js';
@@ -70,7 +70,7 @@ export interface RadioGroupEventMap extends HTMLElementEventMap, RadioGroupCusto
70
70
  * @fires {CustomEvent} value-changed - Fired when the `value` property changes.
71
71
  */
72
72
  declare class RadioGroup extends FieldMixin(
73
- FocusMixin(DisabledMixin(KeyboardMixin(DirMixin(ThemableMixin(HTMLElement)))))
73
+ FocusMixin(DisabledMixin(KeyboardMixin(ElementMixin(ThemableMixin(HTMLElement)))))
74
74
  ) {
75
75
  /**
76
76
  * The value of the radio group.
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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
6
  import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
7
7
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
8
- import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
9
8
  import { DisabledMixin } from '@vaadin/component-base/src/disabled-mixin.js';
9
+ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
10
10
  import { FocusMixin } from '@vaadin/component-base/src/focus-mixin.js';
11
11
  import { KeyboardMixin } from '@vaadin/component-base/src/keyboard-mixin.js';
12
12
  import { FieldMixin } from '@vaadin/field-base/src/field-mixin.js';
@@ -56,13 +56,15 @@ import { RadioButton } from './vaadin-radio-button.js';
56
56
  *
57
57
  * @extends HTMLElement
58
58
  * @mixes ThemableMixin
59
- * @mixes DirMixin
60
- * @mixes KeyboardMixin
61
59
  * @mixes DisabledMixin
60
+ * @mixes ElementMixin
62
61
  * @mixes FocusMixin
63
62
  * @mixes FieldMixin
63
+ * @mixes KeyboardMixin
64
64
  */
65
- class RadioGroup extends FieldMixin(FocusMixin(DisabledMixin(KeyboardMixin(DirMixin(ThemableMixin(PolymerElement)))))) {
65
+ class RadioGroup extends FieldMixin(
66
+ FocusMixin(DisabledMixin(KeyboardMixin(ElementMixin(ThemableMixin(PolymerElement)))))
67
+ ) {
66
68
  static get is() {
67
69
  return 'vaadin-radio-group';
68
70
  }