@vaadin/checkbox-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/checkbox-group",
3
- "version": "24.2.0-alpha5",
3
+ "version": "24.2.0-alpha7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,13 +36,13 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/a11y-base": "24.2.0-alpha5",
40
- "@vaadin/checkbox": "24.2.0-alpha5",
41
- "@vaadin/component-base": "24.2.0-alpha5",
42
- "@vaadin/field-base": "24.2.0-alpha5",
43
- "@vaadin/vaadin-lumo-styles": "24.2.0-alpha5",
44
- "@vaadin/vaadin-material-styles": "24.2.0-alpha5",
45
- "@vaadin/vaadin-themable-mixin": "24.2.0-alpha5"
39
+ "@vaadin/a11y-base": "24.2.0-alpha7",
40
+ "@vaadin/checkbox": "24.2.0-alpha7",
41
+ "@vaadin/component-base": "24.2.0-alpha7",
42
+ "@vaadin/field-base": "24.2.0-alpha7",
43
+ "@vaadin/vaadin-lumo-styles": "24.2.0-alpha7",
44
+ "@vaadin/vaadin-material-styles": "24.2.0-alpha7",
45
+ "@vaadin/vaadin-themable-mixin": "24.2.0-alpha7"
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": "73db22a5e8993e3ce48d1e6540d30eff9cb5c257"
56
+ "gitHead": "81ecf12d2d59a3e5b467273c37a391e31932dc9c"
57
57
  }
@@ -3,12 +3,12 @@
3
3
  * Copyright (c) 2018 - 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 { Checkbox } from '@vaadin/checkbox/src/vaadin-checkbox.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 { FieldMixin } from '@vaadin/field-base/src/field-mixin.js';
14
14
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
@@ -169,7 +169,8 @@ class CheckboxGroup extends FieldMixin(FocusMixin(DisabledMixin(ElementMixin(The
169
169
  // See https://github.com/vaadin/vaadin-web-components/issues/94
170
170
  this.setAttribute('role', 'group');
171
171
 
172
- this._observer = new FlattenedNodesObserver(this, ({ addedNodes, removedNodes }) => {
172
+ const slot = this.shadowRoot.querySelector('slot:not([name])');
173
+ this._observer = new SlotObserver(slot, ({ addedNodes, removedNodes }) => {
173
174
  const addedCheckboxes = this.__filterCheckboxes(addedNodes);
174
175
  const removedCheckboxes = this.__filterCheckboxes(removedNodes);
175
176
 
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/checkbox-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/checkbox-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": {