@vaadin/radio-group 23.3.3 → 24.0.0-alpha10

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": "23.3.3",
3
+ "version": "24.0.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,11 +38,11 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/component-base": "~23.3.3",
42
- "@vaadin/field-base": "~23.3.3",
43
- "@vaadin/vaadin-lumo-styles": "~23.3.3",
44
- "@vaadin/vaadin-material-styles": "~23.3.3",
45
- "@vaadin/vaadin-themable-mixin": "~23.3.3"
41
+ "@vaadin/component-base": "24.0.0-alpha10",
42
+ "@vaadin/field-base": "24.0.0-alpha10",
43
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha10",
44
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha10",
45
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha10"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@esm-bundle/chai": "^4.3.4",
@@ -53,5 +53,5 @@
53
53
  "web-types.json",
54
54
  "web-types.lit.json"
55
55
  ],
56
- "gitHead": "1529ed623e053d28a3c1c66af55ebe402743ddd0"
56
+ "gitHead": "2e04534d8b47bcd216f89b5f849bafef1a73b174"
57
57
  }
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2023 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';
7
7
  import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
8
+ import { DelegateFocusMixin } from '@vaadin/component-base/src/delegate-focus-mixin.js';
8
9
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
9
10
  import { CheckedMixin } from '@vaadin/field-base/src/checked-mixin.js';
10
- import { DelegateFocusMixin } from '@vaadin/field-base/src/delegate-focus-mixin.js';
11
11
  import { LabelMixin } from '@vaadin/field-base/src/label-mixin.js';
12
12
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
13
13
 
@@ -1,18 +1,17 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2023 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';
7
7
  import { ActiveMixin } from '@vaadin/component-base/src/active-mixin.js';
8
8
  import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
9
+ import { DelegateFocusMixin } from '@vaadin/component-base/src/delegate-focus-mixin.js';
9
10
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
10
11
  import { CheckedMixin } from '@vaadin/field-base/src/checked-mixin.js';
11
- import { DelegateFocusMixin } from '@vaadin/field-base/src/delegate-focus-mixin.js';
12
12
  import { InputController } from '@vaadin/field-base/src/input-controller.js';
13
13
  import { LabelMixin } from '@vaadin/field-base/src/label-mixin.js';
14
14
  import { LabelledInputController } from '@vaadin/field-base/src/labelled-input-controller.js';
15
- import { SlotTargetController } from '@vaadin/field-base/src/slot-target-controller.js';
16
15
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
17
16
 
18
17
  /**
@@ -111,10 +110,6 @@ class RadioButton extends LabelMixin(
111
110
  </div>
112
111
 
113
112
  <slot name="label"></slot>
114
-
115
- <div style="display: none !important">
116
- <slot id="noop"></slot>
117
- </div>
118
113
  </div>
119
114
  `;
120
115
  }
@@ -161,21 +156,6 @@ class RadioButton extends LabelMixin(
161
156
  }),
162
157
  );
163
158
  this.addController(new LabelledInputController(this.inputElement, this._labelController));
164
- this.addController(
165
- new SlotTargetController(
166
- this.$.noop,
167
- () => this._labelController.node,
168
- () => this.__warnDeprecated(),
169
- ),
170
- );
171
- }
172
-
173
- /** @private */
174
- __warnDeprecated() {
175
- console.warn(
176
- `WARNING: Since Vaadin 22, placing the label as a direct child of a <vaadin-radio-button> is deprecated.
177
- Please use <label slot="label"> wrapper or the label property instead.`,
178
- );
179
159
  }
180
160
  }
181
161
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2023 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 { DisabledMixin } from '@vaadin/component-base/src/disabled-mixin.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2023 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';
@@ -169,6 +169,34 @@ class RadioGroup extends FieldMixin(
169
169
  this.__onRadioButtonCheckedChange = this.__onRadioButtonCheckedChange.bind(this);
170
170
  }
171
171
 
172
+ /**
173
+ * A collection of the group's radio buttons.
174
+ *
175
+ * @return {!Array<!RadioButton>}
176
+ * @private
177
+ */
178
+ get __radioButtons() {
179
+ return this.__filterRadioButtons([...this.children]);
180
+ }
181
+
182
+ /**
183
+ * A currently selected radio button.
184
+ *
185
+ * @return {!RadioButton | undefined}
186
+ * @private
187
+ */
188
+ get __selectedRadioButton() {
189
+ return this.__radioButtons.find((radioButton) => radioButton.checked);
190
+ }
191
+
192
+ /**
193
+ * @return {boolean}
194
+ * @private
195
+ */
196
+ get isHorizontalRTL() {
197
+ return this.__isRTL && this._theme !== 'vertical';
198
+ }
199
+
172
200
  /** @protected */
173
201
  ready() {
174
202
  super.ready();
@@ -202,34 +230,6 @@ class RadioGroup extends FieldMixin(
202
230
  return nodes.filter((child) => child instanceof RadioButton);
203
231
  }
204
232
 
205
- /**
206
- * A collection of the group's radio buttons.
207
- *
208
- * @return {!Array<!RadioButton>}
209
- * @private
210
- */
211
- get __radioButtons() {
212
- return this.__filterRadioButtons([...this.children]);
213
- }
214
-
215
- /**
216
- * A currently selected radio button.
217
- *
218
- * @return {!RadioButton | undefined}
219
- * @private
220
- */
221
- get __selectedRadioButton() {
222
- return this.__radioButtons.find((radioButton) => radioButton.checked);
223
- }
224
-
225
- /**
226
- * @return {boolean}
227
- * @private
228
- */
229
- get isHorizontalRTL() {
230
- return this.getAttribute('dir') === 'rtl' && this._theme !== 'vertical';
231
- }
232
-
233
233
  /**
234
234
  * Override method inherited from `KeyboardMixin`
235
235
  * to implement the custom keyboard navigation as a replacement for the native one
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/radio-group",
4
- "version": "23.3.3",
4
+ "version": "24.0.0-alpha10",
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/radio-group",
4
- "version": "23.3.3",
4
+ "version": "24.0.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {