@vaadin/avatar-group 24.8.0-alpha9 → 25.0.0-alpha2
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/README.md +0 -23
- package/package.json +15 -17
- package/src/vaadin-avatar-group-menu-item.js +17 -12
- package/src/vaadin-avatar-group-menu.d.ts +1 -2
- package/src/vaadin-avatar-group-menu.js +26 -23
- package/src/vaadin-avatar-group-mixin.js +0 -5
- package/src/vaadin-avatar-group-overlay.js +11 -9
- package/src/vaadin-avatar-group.d.ts +1 -2
- package/src/vaadin-avatar-group.js +23 -14
- package/web-types.json +3 -3
- package/web-types.lit.json +3 -3
- package/src/vaadin-lit-avatar-group-menu-item.js +0 -60
- package/src/vaadin-lit-avatar-group-menu.js +0 -87
- package/src/vaadin-lit-avatar-group-overlay.js +0 -48
- package/src/vaadin-lit-avatar-group.d.ts +0 -1
- package/src/vaadin-lit-avatar-group.js +0 -64
- package/theme/lumo/vaadin-lit-avatar-group.d.ts +0 -3
- package/theme/lumo/vaadin-lit-avatar-group.js +0 -3
- package/theme/material/vaadin-avatar-group-styles.d.ts +0 -1
- package/theme/material/vaadin-avatar-group-styles.js +0 -78
- package/theme/material/vaadin-avatar-group.d.ts +0 -3
- package/theme/material/vaadin-avatar-group.js +0 -3
- package/theme/material/vaadin-lit-avatar-group.d.ts +0 -3
- package/theme/material/vaadin-lit-avatar-group.js +0 -3
- package/vaadin-lit-avatar-group.d.ts +0 -1
- package/vaadin-lit-avatar-group.js +0 -2
package/README.md
CHANGED
|
@@ -34,29 +34,6 @@ Once installed, import the component in your application:
|
|
|
34
34
|
import '@vaadin/avatar-group';
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
## Themes
|
|
38
|
-
|
|
39
|
-
Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/styling), Lumo and Material.
|
|
40
|
-
The [main entrypoint](https://github.com/vaadin/web-components/blob/main/packages/avatar-group/vaadin-avatar-group.js) of the package uses the Lumo theme.
|
|
41
|
-
|
|
42
|
-
To use the Material theme, import the component from the `theme/material` folder:
|
|
43
|
-
|
|
44
|
-
```js
|
|
45
|
-
import '@vaadin/avatar-group/theme/material/vaadin-avatar-group.js';
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
You can also import the Lumo version of the component explicitly:
|
|
49
|
-
|
|
50
|
-
```js
|
|
51
|
-
import '@vaadin/avatar-group/theme/lumo/vaadin-avatar-group.js';
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Finally, you can import the un-themed component from the `src` folder to get a minimal starting point:
|
|
55
|
-
|
|
56
|
-
```js
|
|
57
|
-
import '@vaadin/avatar-group/src/vaadin-avatar-group.js';
|
|
58
|
-
```
|
|
59
|
-
|
|
60
37
|
## Contributing
|
|
61
38
|
|
|
62
39
|
Read the [contributing guide](https://vaadin.com/docs/latest/contributing) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/avatar-group",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.0.0-alpha2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,32 +32,30 @@
|
|
|
32
32
|
"vaadin-avatar-group",
|
|
33
33
|
"avatar-group",
|
|
34
34
|
"web-components",
|
|
35
|
-
"web-component"
|
|
36
|
-
"polymer"
|
|
35
|
+
"web-component"
|
|
37
36
|
],
|
|
38
37
|
"dependencies": {
|
|
39
38
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
|
-
"@
|
|
41
|
-
"@vaadin/
|
|
42
|
-
"@vaadin/
|
|
43
|
-
"@vaadin/
|
|
44
|
-
"@vaadin/
|
|
45
|
-
"@vaadin/
|
|
46
|
-
"@vaadin/
|
|
47
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
48
|
-
"@vaadin/vaadin-
|
|
49
|
-
"@vaadin/vaadin-themable-mixin": "24.8.0-alpha9",
|
|
39
|
+
"@vaadin/a11y-base": "25.0.0-alpha2",
|
|
40
|
+
"@vaadin/avatar": "25.0.0-alpha2",
|
|
41
|
+
"@vaadin/component-base": "25.0.0-alpha2",
|
|
42
|
+
"@vaadin/item": "25.0.0-alpha2",
|
|
43
|
+
"@vaadin/list-box": "25.0.0-alpha2",
|
|
44
|
+
"@vaadin/overlay": "25.0.0-alpha2",
|
|
45
|
+
"@vaadin/tooltip": "25.0.0-alpha2",
|
|
46
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha2",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha2",
|
|
50
48
|
"lit": "^3.0.0"
|
|
51
49
|
},
|
|
52
50
|
"devDependencies": {
|
|
53
|
-
"@vaadin/chai-plugins": "
|
|
54
|
-
"@vaadin/test-runner-commands": "
|
|
55
|
-
"@vaadin/testing-helpers": "^
|
|
51
|
+
"@vaadin/chai-plugins": "25.0.0-alpha2",
|
|
52
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha2",
|
|
53
|
+
"@vaadin/testing-helpers": "^2.0.0",
|
|
56
54
|
"sinon": "^18.0.0"
|
|
57
55
|
},
|
|
58
56
|
"web-types": [
|
|
59
57
|
"web-types.json",
|
|
60
58
|
"web-types.lit.json"
|
|
61
59
|
],
|
|
62
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "67ffcd5355cf21ce1b5039c598525109fc4c164b"
|
|
63
61
|
}
|
|
@@ -3,9 +3,10 @@
|
|
|
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 { html,
|
|
6
|
+
import { css, 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
|
+
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
9
10
|
import { ItemMixin } from '@vaadin/item/src/vaadin-item-mixin.js';
|
|
10
11
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
11
12
|
|
|
@@ -19,22 +20,26 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
19
20
|
* @mixes ThemableMixin
|
|
20
21
|
* @protected
|
|
21
22
|
*/
|
|
22
|
-
class AvatarGroupMenuItem extends ItemMixin(ThemableMixin(DirMixin(
|
|
23
|
+
class AvatarGroupMenuItem extends ItemMixin(ThemableMixin(DirMixin(PolylitMixin(LitElement)))) {
|
|
23
24
|
static get is() {
|
|
24
25
|
return 'vaadin-avatar-group-menu-item';
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
static get
|
|
28
|
+
static get styles() {
|
|
29
|
+
return css`
|
|
30
|
+
:host {
|
|
31
|
+
display: inline-block;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host([hidden]) {
|
|
35
|
+
display: none !important;
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** @protected */
|
|
41
|
+
render() {
|
|
28
42
|
return html`
|
|
29
|
-
<style>
|
|
30
|
-
:host {
|
|
31
|
-
display: inline-block;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host([hidden]) {
|
|
35
|
-
display: none !important;
|
|
36
|
-
}
|
|
37
|
-
</style>
|
|
38
43
|
<span part="checkmark" aria-hidden="true"></span>
|
|
39
44
|
<div part="content">
|
|
40
45
|
<slot></slot>
|
|
@@ -4,14 +4,13 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { ListMixin } from '@vaadin/a11y-base/src/list-mixin.js';
|
|
7
|
-
import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
|
|
8
7
|
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
9
8
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* An element used internally by `<vaadin-avatar-group>`. Not intended to be used separately.
|
|
13
12
|
*/
|
|
14
|
-
declare class AvatarGroupMenu extends ListMixin(DirMixin(ThemableMixin(
|
|
13
|
+
declare class AvatarGroupMenu extends ListMixin(DirMixin(ThemableMixin(HTMLElement))) {}
|
|
15
14
|
|
|
16
15
|
declare global {
|
|
17
16
|
interface HTMLElementTagNameMap {
|
|
@@ -3,11 +3,11 @@
|
|
|
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 { html,
|
|
6
|
+
import { css, html, LitElement } from 'lit';
|
|
7
7
|
import { ListMixin } from '@vaadin/a11y-base/src/list-mixin.js';
|
|
8
|
-
import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
|
|
9
8
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
10
9
|
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
10
|
+
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
11
11
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -15,38 +15,32 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
15
15
|
*
|
|
16
16
|
* @customElement
|
|
17
17
|
* @extends HTMLElement
|
|
18
|
-
* @mixes ControllerMixin
|
|
19
18
|
* @mixes DirMixin
|
|
20
19
|
* @mixes ListMixin
|
|
21
20
|
* @mixes ThemableMixin
|
|
22
21
|
* @protected
|
|
23
22
|
*/
|
|
24
|
-
class AvatarGroupMenu extends ListMixin(ThemableMixin(DirMixin(
|
|
23
|
+
class AvatarGroupMenu extends ListMixin(ThemableMixin(DirMixin(PolylitMixin(LitElement)))) {
|
|
25
24
|
static get is() {
|
|
26
25
|
return 'vaadin-avatar-group-menu';
|
|
27
26
|
}
|
|
28
27
|
|
|
29
|
-
static get
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
:
|
|
33
|
-
|
|
34
|
-
}
|
|
28
|
+
static get styles() {
|
|
29
|
+
return css`
|
|
30
|
+
:host {
|
|
31
|
+
display: flex;
|
|
32
|
+
}
|
|
35
33
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
:host([hidden]) {
|
|
35
|
+
display: none !important;
|
|
36
|
+
}
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</style>
|
|
47
|
-
<div part="items">
|
|
48
|
-
<slot></slot>
|
|
49
|
-
</div>
|
|
38
|
+
[part='items'] {
|
|
39
|
+
height: 100%;
|
|
40
|
+
width: 100%;
|
|
41
|
+
overflow-y: auto;
|
|
42
|
+
-webkit-overflow-scrolling: touch;
|
|
43
|
+
}
|
|
50
44
|
`;
|
|
51
45
|
}
|
|
52
46
|
|
|
@@ -70,6 +64,15 @@ class AvatarGroupMenu extends ListMixin(ThemableMixin(DirMixin(ControllerMixin(P
|
|
|
70
64
|
return this.shadowRoot.querySelector('[part="items"]');
|
|
71
65
|
}
|
|
72
66
|
|
|
67
|
+
/** @protected */
|
|
68
|
+
render() {
|
|
69
|
+
return html`
|
|
70
|
+
<div part="items">
|
|
71
|
+
<slot></slot>
|
|
72
|
+
</div>
|
|
73
|
+
`;
|
|
74
|
+
}
|
|
75
|
+
|
|
73
76
|
/** @protected */
|
|
74
77
|
ready() {
|
|
75
78
|
super.ready();
|
|
@@ -3,7 +3,6 @@
|
|
|
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 { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js';
|
|
7
6
|
import { html, render } from 'lit';
|
|
8
7
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
9
8
|
import { announce } from '@vaadin/a11y-base/src/announce.js';
|
|
@@ -193,10 +192,6 @@ export const AvatarGroupMixin = (superClass) =>
|
|
|
193
192
|
const overlay = this.$.overlay;
|
|
194
193
|
overlay.renderer = this.__overlayRenderer.bind(this);
|
|
195
194
|
this._overlayElement = overlay;
|
|
196
|
-
|
|
197
|
-
afterNextRender(this, () => {
|
|
198
|
-
this.__setItemsInView();
|
|
199
|
-
});
|
|
200
195
|
}
|
|
201
196
|
|
|
202
197
|
/** @protected */
|
|
@@ -3,17 +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 { html,
|
|
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
|
+
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
9
10
|
import { OverlayMixin } from '@vaadin/overlay/src/vaadin-overlay-mixin.js';
|
|
10
11
|
import { PositionMixin } from '@vaadin/overlay/src/vaadin-overlay-position-mixin.js';
|
|
11
12
|
import { overlayStyles } from '@vaadin/overlay/src/vaadin-overlay-styles.js';
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
registerStyles('vaadin-avatar-group-overlay', [overlayStyles], {
|
|
15
|
-
moduleId: 'vaadin-avatar-group-overlay-styles',
|
|
16
|
-
});
|
|
13
|
+
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
17
14
|
|
|
18
15
|
/**
|
|
19
16
|
* An element used internally by `<vaadin-avatar-group>`. Not intended to be used separately.
|
|
@@ -26,14 +23,19 @@ registerStyles('vaadin-avatar-group-overlay', [overlayStyles], {
|
|
|
26
23
|
* @mixes ThemableMixin
|
|
27
24
|
* @private
|
|
28
25
|
*/
|
|
29
|
-
class AvatarGroupOverlay extends PositionMixin(OverlayMixin(DirMixin(ThemableMixin(
|
|
26
|
+
class AvatarGroupOverlay extends PositionMixin(OverlayMixin(DirMixin(ThemableMixin(PolylitMixin(LitElement))))) {
|
|
30
27
|
static get is() {
|
|
31
28
|
return 'vaadin-avatar-group-overlay';
|
|
32
29
|
}
|
|
33
30
|
|
|
34
|
-
static get
|
|
31
|
+
static get styles() {
|
|
32
|
+
return overlayStyles;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** @protected */
|
|
36
|
+
render() {
|
|
35
37
|
return html`
|
|
36
|
-
<div id="backdrop" part="backdrop" hidden
|
|
38
|
+
<div id="backdrop" part="backdrop" ?hidden="${!this.withBackdrop}"></div>
|
|
37
39
|
<div part="overlay" id="overlay" tabindex="0">
|
|
38
40
|
<div part="content" id="content">
|
|
39
41
|
<slot></slot>
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { AvatarI18n } from '@vaadin/avatar/src/vaadin-avatar.js';
|
|
7
|
-
import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
|
|
8
7
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
9
8
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
10
9
|
import { AvatarGroupI18n, AvatarGroupItem, AvatarGroupMixin } from './vaadin-avatar-group-mixin.js';
|
|
@@ -51,7 +50,7 @@ export { AvatarGroupI18n, AvatarGroupItem, AvatarI18n };
|
|
|
51
50
|
* - `<vaadin-avatar-group-menu>` - has the same API as [`<vaadin-list-box>`](#/elements/vaadin-list-box).
|
|
52
51
|
* - `<vaadin-avatar-group-menu-item>` - has the same API as [`<vaadin-item>`](#/elements/vaadin-item).
|
|
53
52
|
*/
|
|
54
|
-
declare class AvatarGroup extends AvatarGroupMixin(ElementMixin(ThemableMixin(
|
|
53
|
+
declare class AvatarGroup extends AvatarGroupMixin(ElementMixin(ThemableMixin(HTMLElement))) {}
|
|
55
54
|
|
|
56
55
|
declare global {
|
|
57
56
|
interface HTMLElementTagNameMap {
|
|
@@ -4,19 +4,18 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/avatar/src/vaadin-avatar.js';
|
|
7
|
+
import '@vaadin/tooltip/src/vaadin-tooltip.js';
|
|
7
8
|
import './vaadin-avatar-group-menu.js';
|
|
8
9
|
import './vaadin-avatar-group-menu-item.js';
|
|
9
10
|
import './vaadin-avatar-group-overlay.js';
|
|
10
|
-
import { html,
|
|
11
|
-
import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
|
|
11
|
+
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
|
-
import {
|
|
14
|
+
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
15
|
+
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
15
16
|
import { AvatarGroupMixin } from './vaadin-avatar-group-mixin.js';
|
|
16
17
|
import { avatarGroupStyles } from './vaadin-avatar-group-styles.js';
|
|
17
18
|
|
|
18
|
-
registerStyles('vaadin-avatar-group', avatarGroupStyles, { moduleId: 'vaadin-avatar-group-styles' });
|
|
19
|
-
|
|
20
19
|
/**
|
|
21
20
|
* `<vaadin-avatar-group>` is a Web Component providing avatar group displaying functionality.
|
|
22
21
|
*
|
|
@@ -59,13 +58,21 @@ registerStyles('vaadin-avatar-group', avatarGroupStyles, { moduleId: 'vaadin-ava
|
|
|
59
58
|
*
|
|
60
59
|
* @customElement
|
|
61
60
|
* @extends HTMLElement
|
|
62
|
-
* @mixes ControllerMixin
|
|
63
61
|
* @mixes ElementMixin
|
|
64
62
|
* @mixes AvatarGroupMixin
|
|
65
63
|
* @mixes ThemableMixin
|
|
66
64
|
*/
|
|
67
|
-
class AvatarGroup extends AvatarGroupMixin(ElementMixin(ThemableMixin(
|
|
68
|
-
static get
|
|
65
|
+
class AvatarGroup extends AvatarGroupMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement)))) {
|
|
66
|
+
static get is() {
|
|
67
|
+
return 'vaadin-avatar-group';
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static get styles() {
|
|
71
|
+
return avatarGroupStyles;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** @protected */
|
|
75
|
+
render() {
|
|
69
76
|
return html`
|
|
70
77
|
<div id="container" part="container">
|
|
71
78
|
<slot></slot>
|
|
@@ -73,17 +80,19 @@ class AvatarGroup extends AvatarGroupMixin(ElementMixin(ThemableMixin(Controller
|
|
|
73
80
|
</div>
|
|
74
81
|
<vaadin-avatar-group-overlay
|
|
75
82
|
id="overlay"
|
|
76
|
-
opened="{
|
|
77
|
-
|
|
83
|
+
.opened="${this._opened}"
|
|
84
|
+
.positionTarget="${this._overflow}"
|
|
78
85
|
no-vertical-overlap
|
|
79
|
-
|
|
80
|
-
|
|
86
|
+
@vaadin-overlay-close="${this._onVaadinOverlayClose}"
|
|
87
|
+
@vaadin-overlay-open="${this._onVaadinOverlayOpen}"
|
|
88
|
+
@opened-changed="${this._onOpenedChanged}"
|
|
81
89
|
></vaadin-avatar-group-overlay>
|
|
82
90
|
`;
|
|
83
91
|
}
|
|
84
92
|
|
|
85
|
-
|
|
86
|
-
|
|
93
|
+
/** @private */
|
|
94
|
+
_onOpenedChanged(event) {
|
|
95
|
+
this._opened = event.detail.value;
|
|
87
96
|
}
|
|
88
97
|
}
|
|
89
98
|
|
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": "
|
|
4
|
+
"version": "25.0.0-alpha2",
|
|
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/
|
|
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-alpha2/#/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-alpha2/#/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-alpha2/#/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-alpha2/#/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-alpha2/#/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/
|
|
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-alpha2/#/elements/vaadin-avatar#property-name),\n[`abbr`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha2/#/elements/vaadin-avatar#property-abbr), [`img`](#/elements/vaadin-avatar#property-img)\nand [`colorIndex`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha2/#/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>",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/avatar-group",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "25.0.0-alpha2",
|
|
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/
|
|
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-alpha2/#/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-alpha2/#/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-alpha2/#/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-alpha2/#/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-alpha2/#/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/
|
|
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-alpha2/#/elements/vaadin-avatar#property-name),\n[`abbr`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha2/#/elements/vaadin-avatar#property-abbr), [`img`](#/elements/vaadin-avatar#property-img)\nand [`colorIndex`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha2/#/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
|
}
|
|
@@ -1,60 +0,0 @@
|
|
|
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, html, LitElement } from 'lit';
|
|
7
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
8
|
-
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
9
|
-
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
10
|
-
import { ItemMixin } from '@vaadin/item/src/vaadin-item-mixin.js';
|
|
11
|
-
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* An element used internally by `<vaadin-avatar-group>`. Not intended to be used separately.
|
|
15
|
-
*
|
|
16
|
-
* @customElement
|
|
17
|
-
* @extends HTMLElement
|
|
18
|
-
* @mixes DirMixin
|
|
19
|
-
* @mixes ItemMixin
|
|
20
|
-
* @mixes ThemableMixin
|
|
21
|
-
* @protected
|
|
22
|
-
*/
|
|
23
|
-
class AvatarGroupMenuItem extends ItemMixin(ThemableMixin(DirMixin(PolylitMixin(LitElement)))) {
|
|
24
|
-
static get is() {
|
|
25
|
-
return 'vaadin-avatar-group-menu-item';
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
static get styles() {
|
|
29
|
-
return css`
|
|
30
|
-
:host {
|
|
31
|
-
display: inline-block;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host([hidden]) {
|
|
35
|
-
display: none !important;
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/** @protected */
|
|
41
|
-
render() {
|
|
42
|
-
return html`
|
|
43
|
-
<span part="checkmark" aria-hidden="true"></span>
|
|
44
|
-
<div part="content">
|
|
45
|
-
<slot></slot>
|
|
46
|
-
</div>
|
|
47
|
-
`;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/** @protected */
|
|
51
|
-
ready() {
|
|
52
|
-
super.ready();
|
|
53
|
-
|
|
54
|
-
this.setAttribute('role', 'menuitem');
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
defineCustomElement(AvatarGroupMenuItem);
|
|
59
|
-
|
|
60
|
-
export { AvatarGroupMenuItem };
|
|
@@ -1,87 +0,0 @@
|
|
|
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, html, LitElement } from 'lit';
|
|
7
|
-
import { ListMixin } from '@vaadin/a11y-base/src/list-mixin.js';
|
|
8
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
9
|
-
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
10
|
-
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
11
|
-
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* An element used internally by `<vaadin-avatar-group>`. Not intended to be used separately.
|
|
15
|
-
*
|
|
16
|
-
* @customElement
|
|
17
|
-
* @extends HTMLElement
|
|
18
|
-
* @mixes ControllerMixin
|
|
19
|
-
* @mixes DirMixin
|
|
20
|
-
* @mixes ListMixin
|
|
21
|
-
* @mixes ThemableMixin
|
|
22
|
-
* @protected
|
|
23
|
-
*/
|
|
24
|
-
class AvatarGroupMenu extends ListMixin(ThemableMixin(DirMixin(PolylitMixin(LitElement)))) {
|
|
25
|
-
static get is() {
|
|
26
|
-
return 'vaadin-avatar-group-menu';
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
static get styles() {
|
|
30
|
-
return css`
|
|
31
|
-
:host {
|
|
32
|
-
display: flex;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host([hidden]) {
|
|
36
|
-
display: none !important;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
[part='items'] {
|
|
40
|
-
height: 100%;
|
|
41
|
-
width: 100%;
|
|
42
|
-
overflow-y: auto;
|
|
43
|
-
-webkit-overflow-scrolling: touch;
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
static get properties() {
|
|
49
|
-
return {
|
|
50
|
-
// We don't need to define this property since super default is vertical,
|
|
51
|
-
// but we don't want it to be modified, or be shown in the API docs.
|
|
52
|
-
/** @private */
|
|
53
|
-
orientation: {
|
|
54
|
-
readOnly: true,
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @return {!HTMLElement}
|
|
61
|
-
* @protected
|
|
62
|
-
* @override
|
|
63
|
-
*/
|
|
64
|
-
get _scrollerElement() {
|
|
65
|
-
return this.shadowRoot.querySelector('[part="items"]');
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/** @protected */
|
|
69
|
-
render() {
|
|
70
|
-
return html`
|
|
71
|
-
<div part="items">
|
|
72
|
-
<slot></slot>
|
|
73
|
-
</div>
|
|
74
|
-
`;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** @protected */
|
|
78
|
-
ready() {
|
|
79
|
-
super.ready();
|
|
80
|
-
|
|
81
|
-
this.setAttribute('role', 'menu');
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
defineCustomElement(AvatarGroupMenu);
|
|
86
|
-
|
|
87
|
-
export { AvatarGroupMenu };
|
|
@@ -1,48 +0,0 @@
|
|
|
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 { html, LitElement } from 'lit';
|
|
7
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
8
|
-
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
9
|
-
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
10
|
-
import { OverlayMixin } from '@vaadin/overlay/src/vaadin-overlay-mixin.js';
|
|
11
|
-
import { PositionMixin } from '@vaadin/overlay/src/vaadin-overlay-position-mixin.js';
|
|
12
|
-
import { overlayStyles } from '@vaadin/overlay/src/vaadin-overlay-styles.js';
|
|
13
|
-
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* An element used internally by `<vaadin-avatar-group>`. Not intended to be used separately.
|
|
17
|
-
*
|
|
18
|
-
* @customElement
|
|
19
|
-
* @extends HTMLElement
|
|
20
|
-
* @mixes PositionMixin
|
|
21
|
-
* @mixes OverlayMixin
|
|
22
|
-
* @mixes DirMixin
|
|
23
|
-
* @mixes ThemableMixin
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
class AvatarGroupOverlay extends PositionMixin(OverlayMixin(DirMixin(ThemableMixin(PolylitMixin(LitElement))))) {
|
|
27
|
-
static get is() {
|
|
28
|
-
return 'vaadin-avatar-group-overlay';
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
static get styles() {
|
|
32
|
-
return overlayStyles;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/** @protected */
|
|
36
|
-
render() {
|
|
37
|
-
return html`
|
|
38
|
-
<div id="backdrop" part="backdrop" ?hidden="${!this.withBackdrop}"></div>
|
|
39
|
-
<div part="overlay" id="overlay" tabindex="0">
|
|
40
|
-
<div part="content" id="content">
|
|
41
|
-
<slot></slot>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
`;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
defineCustomElement(AvatarGroupOverlay);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './vaadin-avatar-group.js';
|
|
@@ -1,64 +0,0 @@
|
|
|
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 '@vaadin/avatar/src/vaadin-lit-avatar.js';
|
|
7
|
-
import './vaadin-lit-avatar-group-menu.js';
|
|
8
|
-
import './vaadin-lit-avatar-group-menu-item.js';
|
|
9
|
-
import './vaadin-lit-avatar-group-overlay.js';
|
|
10
|
-
import { html, LitElement } from 'lit';
|
|
11
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
12
|
-
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
13
|
-
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
14
|
-
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
15
|
-
import { AvatarGroupMixin } from './vaadin-avatar-group-mixin.js';
|
|
16
|
-
import { avatarGroupStyles } from './vaadin-avatar-group-styles.js';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* LitElement based version of `<vaadin-avatar-group>` web component.
|
|
20
|
-
*
|
|
21
|
-
* ## Disclaimer
|
|
22
|
-
*
|
|
23
|
-
* This component is an experiment and not yet a part of Vaadin platform.
|
|
24
|
-
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
25
|
-
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
26
|
-
*/
|
|
27
|
-
class AvatarGroup extends AvatarGroupMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement)))) {
|
|
28
|
-
static get is() {
|
|
29
|
-
return 'vaadin-avatar-group';
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
static get styles() {
|
|
33
|
-
return avatarGroupStyles;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/** @protected */
|
|
37
|
-
render() {
|
|
38
|
-
return html`
|
|
39
|
-
<div id="container" part="container">
|
|
40
|
-
<slot></slot>
|
|
41
|
-
<slot name="overflow"></slot>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<vaadin-avatar-group-overlay
|
|
45
|
-
id="overlay"
|
|
46
|
-
.opened="${this._opened}"
|
|
47
|
-
.positionTarget="${this._overflow}"
|
|
48
|
-
no-vertical-overlap
|
|
49
|
-
@vaadin-overlay-close="${this._onVaadinOverlayClose}"
|
|
50
|
-
@vaadin-overlay-open="${this._onVaadinOverlayOpen}"
|
|
51
|
-
@opened-changed="${this._onOpenedChanged}"
|
|
52
|
-
></vaadin-avatar-group-overlay>
|
|
53
|
-
`;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/** @private */
|
|
57
|
-
_onOpenedChanged(event) {
|
|
58
|
-
this._opened = event.detail.value;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
defineCustomElement(AvatarGroup);
|
|
63
|
-
|
|
64
|
-
export { AvatarGroup };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@vaadin/vaadin-material-styles/color.js';
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import '@vaadin/vaadin-material-styles/color.js';
|
|
2
|
-
import { item } from '@vaadin/item/theme/material/vaadin-item-styles.js';
|
|
3
|
-
import { listBox } from '@vaadin/list-box/theme/material/vaadin-list-box-styles.js';
|
|
4
|
-
import { menuOverlay } from '@vaadin/vaadin-material-styles/mixins/menu-overlay.js';
|
|
5
|
-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
6
|
-
|
|
7
|
-
registerStyles(
|
|
8
|
-
'vaadin-avatar-group',
|
|
9
|
-
css`
|
|
10
|
-
:host {
|
|
11
|
-
--vaadin-avatar-size: 2.25rem;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host([theme~='xlarge']) {
|
|
15
|
-
--vaadin-avatar-group-overlap: 12px;
|
|
16
|
-
--vaadin-avatar-group-overlap-border: 3px;
|
|
17
|
-
--vaadin-avatar-size: 3.5rem;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:host([theme~='large']) {
|
|
21
|
-
--vaadin-avatar-group-overlap: 10px;
|
|
22
|
-
--vaadin-avatar-group-overlap-border: 3px;
|
|
23
|
-
--vaadin-avatar-size: 2.75rem;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:host([theme~='small']) {
|
|
27
|
-
--vaadin-avatar-group-overlap: 6px;
|
|
28
|
-
--vaadin-avatar-group-overlap-border: 2px;
|
|
29
|
-
--vaadin-avatar-size: 1.875rem;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
:host([theme~='xsmall']) {
|
|
33
|
-
--vaadin-avatar-group-overlap: 4px;
|
|
34
|
-
--vaadin-avatar-group-overlap-border: 2px;
|
|
35
|
-
--vaadin-avatar-size: 1.625rem;
|
|
36
|
-
}
|
|
37
|
-
`,
|
|
38
|
-
{ moduleId: 'material-avatar-group' },
|
|
39
|
-
);
|
|
40
|
-
|
|
41
|
-
const avatarGroupOverlay = css`
|
|
42
|
-
[part='overlay'] {
|
|
43
|
-
outline: none;
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
|
|
47
|
-
registerStyles('vaadin-avatar-group-overlay', [menuOverlay, avatarGroupOverlay], {
|
|
48
|
-
moduleId: 'material-avatar-group-overlay',
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
registerStyles('vaadin-avatar-group-menu', listBox, { moduleId: 'material-avatar-group-menu' });
|
|
52
|
-
|
|
53
|
-
registerStyles(
|
|
54
|
-
'vaadin-avatar-group-menu-item',
|
|
55
|
-
[
|
|
56
|
-
item,
|
|
57
|
-
css`
|
|
58
|
-
:host {
|
|
59
|
-
padding: 8px;
|
|
60
|
-
padding-inline-end: 24px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
[part='content'] {
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
[part='checkmark']::before {
|
|
69
|
-
display: none;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
[part='content'] ::slotted(vaadin-avatar) {
|
|
73
|
-
margin-inline-end: 8px;
|
|
74
|
-
}
|
|
75
|
-
`,
|
|
76
|
-
],
|
|
77
|
-
{ moduleId: 'material-avatar-group-menu-item' },
|
|
78
|
-
);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/vaadin-avatar-group.js';
|