@vaadin/radio-group 24.2.0-alpha5 → 24.2.0-alpha7

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": "24.2.0-alpha5",
3
+ "version": "24.2.0-alpha7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,12 +38,12 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/a11y-base": "24.2.0-alpha5",
42
- "@vaadin/component-base": "24.2.0-alpha5",
43
- "@vaadin/field-base": "24.2.0-alpha5",
44
- "@vaadin/vaadin-lumo-styles": "24.2.0-alpha5",
45
- "@vaadin/vaadin-material-styles": "24.2.0-alpha5",
46
- "@vaadin/vaadin-themable-mixin": "24.2.0-alpha5"
41
+ "@vaadin/a11y-base": "24.2.0-alpha7",
42
+ "@vaadin/component-base": "24.2.0-alpha7",
43
+ "@vaadin/field-base": "24.2.0-alpha7",
44
+ "@vaadin/vaadin-lumo-styles": "24.2.0-alpha7",
45
+ "@vaadin/vaadin-material-styles": "24.2.0-alpha7",
46
+ "@vaadin/vaadin-themable-mixin": "24.2.0-alpha7"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@esm-bundle/chai": "^4.3.4",
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "73db22a5e8993e3ce48d1e6540d30eff9cb5c257"
57
+ "gitHead": "81ecf12d2d59a3e5b467273c37a391e31932dc9c"
58
58
  }
@@ -3,12 +3,12 @@
3
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
- import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
7
6
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
8
7
  import { DisabledMixin } from '@vaadin/a11y-base/src/disabled-mixin.js';
9
8
  import { FocusMixin } from '@vaadin/a11y-base/src/focus-mixin.js';
10
9
  import { KeyboardMixin } from '@vaadin/a11y-base/src/keyboard-mixin.js';
11
10
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
11
+ import { SlotObserver } from '@vaadin/component-base/src/slot-observer.js';
12
12
  import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
13
13
  import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js';
14
14
  import { FieldMixin } from '@vaadin/field-base/src/field-mixin.js';
@@ -213,7 +213,8 @@ class RadioGroup extends FieldMixin(
213
213
 
214
214
  this._fieldName = `${this.localName}-${generateUniqueId()}`;
215
215
 
216
- this._observer = new FlattenedNodesObserver(this, ({ addedNodes, removedNodes }) => {
216
+ const slot = this.shadowRoot.querySelector('slot:not([name])');
217
+ this._observer = new SlotObserver(slot, ({ addedNodes, removedNodes }) => {
217
218
  // Registers the added radio buttons in the reverse order
218
219
  // in order for the group to take the value of the most recent button.
219
220
  this.__filterRadioButtons(addedNodes).reverse().forEach(this.__registerRadioButton);
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": "24.2.0-alpha5",
4
+ "version": "24.2.0-alpha7",
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": "24.2.0-alpha5",
4
+ "version": "24.2.0-alpha7",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {