@vaadin/avatar-group 25.0.0-alpha3 → 25.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/avatar-group",
3
- "version": "25.0.0-alpha3",
3
+ "version": "25.0.0-alpha4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,6 +21,8 @@
21
21
  "type": "module",
22
22
  "files": [
23
23
  "src",
24
+ "!src/styles/*-base-styles.d.ts",
25
+ "!src/styles/*-base-styles.js",
24
26
  "theme",
25
27
  "vaadin-*.d.ts",
26
28
  "vaadin-*.js",
@@ -36,20 +38,20 @@
36
38
  ],
37
39
  "dependencies": {
38
40
  "@open-wc/dedupe-mixin": "^1.3.0",
39
- "@vaadin/a11y-base": "25.0.0-alpha3",
40
- "@vaadin/avatar": "25.0.0-alpha3",
41
- "@vaadin/component-base": "25.0.0-alpha3",
42
- "@vaadin/item": "25.0.0-alpha3",
43
- "@vaadin/list-box": "25.0.0-alpha3",
44
- "@vaadin/overlay": "25.0.0-alpha3",
45
- "@vaadin/tooltip": "25.0.0-alpha3",
46
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha3",
47
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha3",
41
+ "@vaadin/a11y-base": "25.0.0-alpha4",
42
+ "@vaadin/avatar": "25.0.0-alpha4",
43
+ "@vaadin/component-base": "25.0.0-alpha4",
44
+ "@vaadin/item": "25.0.0-alpha4",
45
+ "@vaadin/list-box": "25.0.0-alpha4",
46
+ "@vaadin/overlay": "25.0.0-alpha4",
47
+ "@vaadin/tooltip": "25.0.0-alpha4",
48
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha4",
49
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha4",
48
50
  "lit": "^3.0.0"
49
51
  },
50
52
  "devDependencies": {
51
- "@vaadin/chai-plugins": "25.0.0-alpha3",
52
- "@vaadin/test-runner-commands": "25.0.0-alpha3",
53
+ "@vaadin/chai-plugins": "25.0.0-alpha4",
54
+ "@vaadin/test-runner-commands": "25.0.0-alpha4",
53
55
  "@vaadin/testing-helpers": "^2.0.0",
54
56
  "sinon": "^18.0.0"
55
57
  },
@@ -57,5 +59,5 @@
57
59
  "web-types.json",
58
60
  "web-types.lit.json"
59
61
  ],
60
- "gitHead": "8367dd20a47f53ca5589ad349a8e286ec2673055"
62
+ "gitHead": "ce4421f0daf26027b863b91787a474e4cc264344"
61
63
  }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2020 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { css } from 'lit';
7
+
8
+ export const avatarGroupStyles = css`
9
+ @layer base {
10
+ :host {
11
+ display: block;
12
+ width: 100%; /* prevent collapsing inside non-stretching column flex */
13
+ /* 1: last on top */
14
+ /* -1: first on top */
15
+ --_dir: 1;
16
+ }
17
+
18
+ :host([theme~='reverse']) {
19
+ --_dir: -1;
20
+ }
21
+
22
+ :host([hidden]) {
23
+ display: none !important;
24
+ }
25
+
26
+ [part='container'] {
27
+ display: flex;
28
+ position: relative;
29
+ width: 100%;
30
+ flex-wrap: nowrap;
31
+ }
32
+
33
+ ::slotted(vaadin-avatar) {
34
+ mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M300 0H0V300H300V0ZM150 200C177.614 200 200 177.614 200 150C200 122.386 177.614 100 150 100C122.386 100 100 122.386 100 150C100 177.614 122.386 200 150 200Z" fill="black"/></svg>');
35
+ mask-size: calc(300% + var(--vaadin-avatar-group-gap, 2px) * 6 - var(--vaadin-focus-ring-width) * 6);
36
+ mask-position: calc(
37
+ 50% +
38
+ (
39
+ var(--vaadin-avatar-size, 2em) - var(--vaadin-avatar-group-overlap, 8px) +
40
+ var(--vaadin-avatar-group-gap, 2px)
41
+ ) *
42
+ var(--_d)
43
+ );
44
+ --_d: var(--_dir);
45
+ }
46
+
47
+ :host(:dir(rtl)) ::slotted(vaadin-avatar) {
48
+ --_d: calc(var(--_dir) * -1);
49
+ }
50
+
51
+ ::slotted(vaadin-avatar:not(:first-child)) {
52
+ margin-inline-start: calc(
53
+ var(--vaadin-avatar-group-overlap, 8px) * -1 - var(--vaadin-focus-ring-width) +
54
+ var(--vaadin-avatar-group-gap, 2px)
55
+ );
56
+ }
57
+
58
+ :host(:not([theme~='reverse'])) ::slotted(vaadin-avatar:last-child),
59
+ :host(:not([theme~='reverse'])) [part='container']:not(.has-overflow) ::slotted(vaadin-avatar:nth-last-child(2)),
60
+ :host([theme~='reverse']) ::slotted(vaadin-avatar:first-child) {
61
+ mask-image: none;
62
+ }
63
+ }
64
+ `;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2020 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import type { CSSResult } from 'lit';
7
+
8
+ export const avatarGroupStyles: CSSResult;
@@ -3,14 +3,15 @@
3
3
  * Copyright (c) 2020 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
6
+ import { css } from 'lit';
7
7
 
8
8
  export const avatarGroupStyles = css`
9
9
  :host {
10
10
  display: block;
11
11
  width: 100%; /* prevent collapsing inside non-stretching column flex */
12
12
  --vaadin-avatar-group-overlap: 8px;
13
- --vaadin-avatar-group-overlap-border: 2px;
13
+ /* Deprecated property name (overlap-border), for backwards compatibility */
14
+ --vaadin-avatar-group-overlap-border: var(--vaadin-avatar-group-gap, 2px);
14
15
  }
15
16
 
16
17
  :host([hidden]) {
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2020 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { css } from 'lit';
7
+
8
+ export const avatarGroupMenuStyles = css`
9
+ @layer base {
10
+ :host {
11
+ display: block;
12
+ padding: var(--vaadin-item-overlay-padding, 4px);
13
+ }
14
+
15
+ :host([hidden]) {
16
+ display: none !important;
17
+ }
18
+
19
+ [part='items'] {
20
+ display: contents;
21
+ }
22
+ }
23
+ `;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2020 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { listBoxStyles } from '@vaadin/list-box/src/styles/vaadin-list-box-core-styles.js';
7
+
8
+ export { listBoxStyles as avatarGroupMenuStyles };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2020 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { css } from 'lit';
7
+ import { itemStyles } from '@vaadin/item/src/styles/vaadin-item-base-styles.js';
8
+
9
+ const menuItemStyles = css`
10
+ @layer base {
11
+ [part='content'] {
12
+ display: flex;
13
+ align-items: center;
14
+ gap: inherit;
15
+ }
16
+ }
17
+ `;
18
+
19
+ export const avatarGroupMenuItemStyles = [itemStyles, menuItemStyles];
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2020 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { itemStyles } from '@vaadin/item/src/styles/vaadin-item-core-styles.js';
7
+
8
+ export const avatarGroupMenuItemStyles = itemStyles;
@@ -3,12 +3,14 @@
3
3
  * Copyright (c) 2020 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { css, html, LitElement } from 'lit';
6
+ import { html, LitElement } from 'lit';
7
7
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
8
8
  import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
9
9
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
10
10
  import { ItemMixin } from '@vaadin/item/src/vaadin-item-mixin.js';
11
+ import { CSSInjectionMixin } from '@vaadin/vaadin-themable-mixin/css-injection-mixin.js';
11
12
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
13
+ import { avatarGroupMenuItemStyles } from './styles/vaadin-avatar-group-menu-item-core-styles.js';
12
14
 
13
15
  /**
14
16
  * An element used internally by `<vaadin-avatar-group>`. Not intended to be used separately.
@@ -20,21 +22,13 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
20
22
  * @mixes ThemableMixin
21
23
  * @protected
22
24
  */
23
- class AvatarGroupMenuItem extends ItemMixin(ThemableMixin(DirMixin(PolylitMixin(LitElement)))) {
25
+ class AvatarGroupMenuItem extends ItemMixin(ThemableMixin(DirMixin(CSSInjectionMixin(PolylitMixin(LitElement))))) {
24
26
  static get is() {
25
27
  return 'vaadin-avatar-group-menu-item';
26
28
  }
27
29
 
28
30
  static get styles() {
29
- return css`
30
- :host {
31
- display: inline-block;
32
- }
33
-
34
- :host([hidden]) {
35
- display: none !important;
36
- }
37
- `;
31
+ return avatarGroupMenuItemStyles;
38
32
  }
39
33
 
40
34
  /** @protected */
@@ -3,12 +3,14 @@
3
3
  * Copyright (c) 2020 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { css, html, LitElement } from 'lit';
6
+ import { html, LitElement } from 'lit';
7
7
  import { ListMixin } from '@vaadin/a11y-base/src/list-mixin.js';
8
8
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
9
9
  import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
10
10
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
11
+ import { CSSInjectionMixin } from '@vaadin/vaadin-themable-mixin/css-injection-mixin.js';
11
12
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
13
+ import { avatarGroupMenuStyles } from './styles/vaadin-avatar-group-menu-core-styles.js';
12
14
 
13
15
  /**
14
16
  * An element used internally by `<vaadin-avatar-group>`. Not intended to be used separately.
@@ -20,28 +22,13 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
20
22
  * @mixes ThemableMixin
21
23
  * @protected
22
24
  */
23
- class AvatarGroupMenu extends ListMixin(ThemableMixin(DirMixin(PolylitMixin(LitElement)))) {
25
+ class AvatarGroupMenu extends ListMixin(ThemableMixin(DirMixin(CSSInjectionMixin(PolylitMixin(LitElement))))) {
24
26
  static get is() {
25
27
  return 'vaadin-avatar-group-menu';
26
28
  }
27
29
 
28
30
  static get styles() {
29
- return css`
30
- :host {
31
- display: flex;
32
- }
33
-
34
- :host([hidden]) {
35
- display: none !important;
36
- }
37
-
38
- [part='items'] {
39
- height: 100%;
40
- width: 100%;
41
- overflow-y: auto;
42
- -webkit-overflow-scrolling: touch;
43
- }
44
- `;
31
+ return avatarGroupMenuStyles;
45
32
  }
46
33
 
47
34
  static get properties() {
@@ -167,6 +167,12 @@ export const AvatarGroupMixin = (superClass) =>
167
167
  super.i18n = value;
168
168
  }
169
169
 
170
+ constructor() {
171
+ super();
172
+
173
+ this.__overlayRenderer = this.__overlayRenderer.bind(this);
174
+ }
175
+
170
176
  /** @protected */
171
177
  ready() {
172
178
  super.ready();
@@ -189,9 +195,7 @@ export const AvatarGroupMixin = (superClass) =>
189
195
  });
190
196
  this.addController(this._overflowController);
191
197
 
192
- const overlay = this.$.overlay;
193
- overlay.renderer = this.__overlayRenderer.bind(this);
194
- this._overlayElement = overlay;
198
+ this._overlayElement = this.$.overlay;
195
199
  }
196
200
 
197
201
  /** @protected */
@@ -209,57 +213,35 @@ export const AvatarGroupMixin = (superClass) =>
209
213
  /**
210
214
  * Renders items when they are provided by the `items` property and clears the content otherwise.
211
215
  * @param {!HTMLElement} root
212
- * @param {!Select} _select
213
216
  * @private
214
217
  */
215
218
  __overlayRenderer(root) {
216
- let menu = root.firstElementChild;
217
- if (!menu) {
218
- menu = document.createElement('vaadin-avatar-group-menu');
219
- menu.addEventListener('keydown', (event) => this._onListKeyDown(event));
220
- root.appendChild(menu);
221
- }
222
-
223
- menu.textContent = '';
224
-
225
- if (!this._overflowItems) {
226
- return;
227
- }
228
-
229
- this._overflowItems.forEach((item) => {
230
- menu.appendChild(this.__createItemElement(item));
231
- });
232
- }
233
-
234
- /** @private */
235
- __createItemElement(item) {
236
- const itemElement = document.createElement('vaadin-avatar-group-menu-item');
237
-
238
- const avatar = document.createElement('vaadin-avatar');
239
- itemElement.appendChild(avatar);
240
-
241
- avatar.setAttribute('aria-hidden', 'true');
242
- avatar.setAttribute('tabindex', '-1');
243
- avatar.i18n = this.__effectiveI18n;
244
-
245
- if (this._theme) {
246
- avatar.setAttribute('theme', this._theme);
247
- }
248
-
249
- avatar.name = item.name;
250
- avatar.abbr = item.abbr;
251
- avatar.img = item.img;
252
- avatar.colorIndex = item.colorIndex;
253
- if (item.className) {
254
- avatar.className = item.className;
255
- }
256
-
257
- if (item.name) {
258
- const text = document.createTextNode(item.name);
259
- itemElement.appendChild(text);
260
- }
261
-
262
- return itemElement;
219
+ render(
220
+ html`
221
+ <vaadin-avatar-group-menu @keydown="${this._onListKeyDown}">
222
+ ${(this._overflowItems || []).map(
223
+ (item) => html`
224
+ <vaadin-avatar-group-menu-item>
225
+ <vaadin-avatar
226
+ .name="${item.name}"
227
+ .abbr="${item.abbr}"
228
+ .img="${item.img}"
229
+ .colorIndex="${item.colorIndex}"
230
+ .i18n="${this.__effectiveI18n}"
231
+ class="${ifDefined(item.className)}"
232
+ theme="${ifDefined(this._theme)}"
233
+ aria-hidden="true"
234
+ tabindex="-1"
235
+ ></vaadin-avatar>
236
+ ${item.name || ''}
237
+ </vaadin-avatar-group-menu-item>
238
+ `,
239
+ )}
240
+ </vaadin-avatar-group-menu>
241
+ `,
242
+ root,
243
+ { host: this },
244
+ );
263
245
  }
264
246
 
265
247
  /** @private */
@@ -361,7 +343,9 @@ export const AvatarGroupMixin = (superClass) =>
361
343
  const maxReached = maxItemsVisible != null && count > this.__getMax(maxItemsVisible);
362
344
 
363
345
  overflow.abbr = `+${count - this.__getLimit(count, itemsInView, maxItemsVisible)}`;
364
- overflow.toggleAttribute('hidden', !maxReached && !(itemsInView && itemsInView < count));
346
+ const hasOverflow = maxReached || (itemsInView && itemsInView < count);
347
+ overflow.toggleAttribute('hidden', !hasOverflow);
348
+ this.$.container.classList.toggle('has-overflow', hasOverflow);
365
349
  }
366
350
  }
367
351
 
@@ -498,6 +482,11 @@ export const AvatarGroupMixin = (superClass) =>
498
482
 
499
483
  /** @private */
500
484
  __overflowItemsChanged(items, oldItems) {
485
+ // Prevent renderer from being called unnecessarily on initialization
486
+ if (items && items.length === 0 && (!oldItems || oldItems.length === 0)) {
487
+ return;
488
+ }
489
+
501
490
  if (items || oldItems) {
502
491
  this.$.overlay.requestContentUpdate();
503
492
  }
@@ -7,9 +7,10 @@ import { html, LitElement } from 'lit';
7
7
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
8
8
  import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
9
9
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
10
+ import { overlayStyles } from '@vaadin/overlay/src/styles/vaadin-overlay-core-styles.js';
10
11
  import { OverlayMixin } from '@vaadin/overlay/src/vaadin-overlay-mixin.js';
11
12
  import { PositionMixin } from '@vaadin/overlay/src/vaadin-overlay-position-mixin.js';
12
- import { overlayStyles } from '@vaadin/overlay/src/vaadin-overlay-styles.js';
13
+ import { CSSInjectionMixin } from '@vaadin/vaadin-themable-mixin/css-injection-mixin.js';
13
14
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
14
15
 
15
16
  /**
@@ -23,7 +24,9 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
23
24
  * @mixes ThemableMixin
24
25
  * @private
25
26
  */
26
- class AvatarGroupOverlay extends PositionMixin(OverlayMixin(DirMixin(ThemableMixin(PolylitMixin(LitElement))))) {
27
+ class AvatarGroupOverlay extends PositionMixin(
28
+ OverlayMixin(DirMixin(ThemableMixin(CSSInjectionMixin(PolylitMixin(LitElement))))),
29
+ ) {
27
30
  static get is() {
28
31
  return 'vaadin-avatar-group-overlay';
29
32
  }
@@ -12,9 +12,10 @@ import { html, LitElement } from 'lit';
12
12
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
13
13
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
14
14
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
15
+ import { CSSInjectionMixin } from '@vaadin/vaadin-themable-mixin/css-injection-mixin.js';
15
16
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
17
+ import { avatarGroupStyles } from './styles/vaadin-avatar-group-core-styles.js';
16
18
  import { AvatarGroupMixin } from './vaadin-avatar-group-mixin.js';
17
- import { avatarGroupStyles } from './vaadin-avatar-group-styles.js';
18
19
 
19
20
  /**
20
21
  * `<vaadin-avatar-group>` is a Web Component providing avatar group displaying functionality.
@@ -62,7 +63,7 @@ import { avatarGroupStyles } from './vaadin-avatar-group-styles.js';
62
63
  * @mixes AvatarGroupMixin
63
64
  * @mixes ThemableMixin
64
65
  */
65
- class AvatarGroup extends AvatarGroupMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement)))) {
66
+ class AvatarGroup extends AvatarGroupMixin(ElementMixin(ThemableMixin(CSSInjectionMixin(PolylitMixin(LitElement))))) {
66
67
  static get is() {
67
68
  return 'vaadin-avatar-group';
68
69
  }
@@ -82,6 +83,7 @@ class AvatarGroup extends AvatarGroupMixin(ElementMixin(ThemableMixin(PolylitMix
82
83
  id="overlay"
83
84
  .opened="${this._opened}"
84
85
  .positionTarget="${this._overflow}"
86
+ .renderer="${this.__overlayRenderer}"
85
87
  no-vertical-overlap
86
88
  @vaadin-overlay-close="${this._onVaadinOverlayClose}"
87
89
  @vaadin-overlay-open="${this._onVaadinOverlayOpen}"
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/avatar-group",
4
- "version": "25.0.0-alpha3",
4
+ "version": "25.0.0-alpha4",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-avatar-group",
11
- "description": "`<vaadin-avatar-group>` is a Web Component providing avatar group displaying functionality.\n\nTo create the avatar group, first add the component to the page:\n\n```\n<vaadin-avatar-group></vaadin-avatar-group>\n```\n\nAnd then use [`items`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-avatar-group#property-items) property to initialize the structure:\n\n```\ndocument.querySelector('vaadin-avatar-group').items = [\n {name: 'John Doe'},\n {abbr: 'AB'}\n];\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n----------- | ---------------\n`container` | The container element\n\nSee the [`<vaadin-avatar>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-avatar) documentation for the available\nstate attributes and stylable shadow parts of avatar elements.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Internal components\n\nIn addition to `<vaadin-avatar-group>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-avatar-group-overlay>` - has the same API as [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-overlay).\n- `<vaadin-avatar-group-menu>` - has the same API as [`<vaadin-list-box>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-list-box).\n- `<vaadin-avatar-group-menu-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-item).",
11
+ "description": "`<vaadin-avatar-group>` is a Web Component providing avatar group displaying functionality.\n\nTo create the avatar group, first add the component to the page:\n\n```\n<vaadin-avatar-group></vaadin-avatar-group>\n```\n\nAnd then use [`items`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-avatar-group#property-items) property to initialize the structure:\n\n```\ndocument.querySelector('vaadin-avatar-group').items = [\n {name: 'John Doe'},\n {abbr: 'AB'}\n];\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n----------- | ---------------\n`container` | The container element\n\nSee the [`<vaadin-avatar>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-avatar) documentation for the available\nstate attributes and stylable shadow parts of avatar elements.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Internal components\n\nIn addition to `<vaadin-avatar-group>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-avatar-group-overlay>` - has the same API as [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-overlay).\n- `<vaadin-avatar-group-menu>` - has the same API as [`<vaadin-list-box>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-list-box).\n- `<vaadin-avatar-group-menu-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-item).",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "i18n",
@@ -77,7 +77,7 @@
77
77
  },
78
78
  {
79
79
  "name": "items",
80
- "description": "An array containing the items which will be stamped as avatars.\n\nThe items objects allow to configure [`name`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-avatar#property-name),\n[`abbr`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-avatar#property-abbr), [`img`](#/elements/vaadin-avatar#property-img)\nand [`colorIndex`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-avatar#property-colorIndex) properties on the\nstamped avatars, and set `className` to provide CSS class names.\n\n#### Example\n\n```js\ngroup.items = [\n {\n name: 'User name',\n img: 'url-to-image.png',\n className: 'even'\n },\n {\n abbr: 'JD',\n colorIndex: 1,\n className: 'odd'\n },\n];\n```",
80
+ "description": "An array containing the items which will be stamped as avatars.\n\nThe items objects allow to configure [`name`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-avatar#property-name),\n[`abbr`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-avatar#property-abbr), [`img`](#/elements/vaadin-avatar#property-img)\nand [`colorIndex`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-avatar#property-colorIndex) properties on the\nstamped avatars, and set `className` to provide CSS class names.\n\n#### Example\n\n```js\ngroup.items = [\n {\n name: 'User name',\n img: 'url-to-image.png',\n className: 'even'\n },\n {\n abbr: 'JD',\n colorIndex: 1,\n className: 'odd'\n },\n];\n```",
81
81
  "value": {
82
82
  "type": [
83
83
  "Array.<AvatarGroupItem>",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/avatar-group",
4
- "version": "25.0.0-alpha3",
4
+ "version": "25.0.0-alpha4",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-avatar-group",
19
- "description": "`<vaadin-avatar-group>` is a Web Component providing avatar group displaying functionality.\n\nTo create the avatar group, first add the component to the page:\n\n```\n<vaadin-avatar-group></vaadin-avatar-group>\n```\n\nAnd then use [`items`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-avatar-group#property-items) property to initialize the structure:\n\n```\ndocument.querySelector('vaadin-avatar-group').items = [\n {name: 'John Doe'},\n {abbr: 'AB'}\n];\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n----------- | ---------------\n`container` | The container element\n\nSee the [`<vaadin-avatar>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-avatar) documentation for the available\nstate attributes and stylable shadow parts of avatar elements.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Internal components\n\nIn addition to `<vaadin-avatar-group>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-avatar-group-overlay>` - has the same API as [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-overlay).\n- `<vaadin-avatar-group-menu>` - has the same API as [`<vaadin-list-box>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-list-box).\n- `<vaadin-avatar-group-menu-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-item).",
19
+ "description": "`<vaadin-avatar-group>` is a Web Component providing avatar group displaying functionality.\n\nTo create the avatar group, first add the component to the page:\n\n```\n<vaadin-avatar-group></vaadin-avatar-group>\n```\n\nAnd then use [`items`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-avatar-group#property-items) property to initialize the structure:\n\n```\ndocument.querySelector('vaadin-avatar-group').items = [\n {name: 'John Doe'},\n {abbr: 'AB'}\n];\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n----------- | ---------------\n`container` | The container element\n\nSee the [`<vaadin-avatar>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-avatar) documentation for the available\nstate attributes and stylable shadow parts of avatar elements.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Internal components\n\nIn addition to `<vaadin-avatar-group>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-avatar-group-overlay>` - has the same API as [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-overlay).\n- `<vaadin-avatar-group-menu>` - has the same API as [`<vaadin-list-box>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-list-box).\n- `<vaadin-avatar-group-menu-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-item).",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {
@@ -35,7 +35,7 @@
35
35
  },
36
36
  {
37
37
  "name": ".items",
38
- "description": "An array containing the items which will be stamped as avatars.\n\nThe items objects allow to configure [`name`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-avatar#property-name),\n[`abbr`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-avatar#property-abbr), [`img`](#/elements/vaadin-avatar#property-img)\nand [`colorIndex`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha3/#/elements/vaadin-avatar#property-colorIndex) properties on the\nstamped avatars, and set `className` to provide CSS class names.\n\n#### Example\n\n```js\ngroup.items = [\n {\n name: 'User name',\n img: 'url-to-image.png',\n className: 'even'\n },\n {\n abbr: 'JD',\n colorIndex: 1,\n className: 'odd'\n },\n];\n```",
38
+ "description": "An array containing the items which will be stamped as avatars.\n\nThe items objects allow to configure [`name`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-avatar#property-name),\n[`abbr`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-avatar#property-abbr), [`img`](#/elements/vaadin-avatar#property-img)\nand [`colorIndex`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha4/#/elements/vaadin-avatar#property-colorIndex) properties on the\nstamped avatars, and set `className` to provide CSS class names.\n\n#### Example\n\n```js\ngroup.items = [\n {\n name: 'User name',\n img: 'url-to-image.png',\n className: 'even'\n },\n {\n abbr: 'JD',\n colorIndex: 1,\n className: 'odd'\n },\n];\n```",
39
39
  "value": {
40
40
  "kind": "expression"
41
41
  }