@vaadin/avatar 25.2.0-alpha10 → 25.2.0-alpha12
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",
|
|
3
|
-
"version": "25.2.0-
|
|
3
|
+
"version": "25.2.0-alpha12",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
|
-
"@vaadin/a11y-base": "25.2.0-
|
|
40
|
-
"@vaadin/component-base": "25.2.0-
|
|
41
|
-
"@vaadin/tooltip": "25.2.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "25.2.0-
|
|
39
|
+
"@vaadin/a11y-base": "25.2.0-alpha12",
|
|
40
|
+
"@vaadin/component-base": "25.2.0-alpha12",
|
|
41
|
+
"@vaadin/tooltip": "25.2.0-alpha12",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "25.2.0-alpha12",
|
|
43
43
|
"lit": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/aura": "25.2.0-
|
|
47
|
-
"@vaadin/chai-plugins": "25.2.0-
|
|
48
|
-
"@vaadin/test-runner-commands": "25.2.0-
|
|
46
|
+
"@vaadin/aura": "25.2.0-alpha12",
|
|
47
|
+
"@vaadin/chai-plugins": "25.2.0-alpha12",
|
|
48
|
+
"@vaadin/test-runner-commands": "25.2.0-alpha12",
|
|
49
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "25.2.0-
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "25.2.0-alpha12",
|
|
51
51
|
"sinon": "^21.0.2"
|
|
52
52
|
},
|
|
53
53
|
"customElements": "custom-elements.json",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "ae1e4373aec3653d63a45b6be18eee36f4b245a1"
|
|
59
59
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2020 - 2026 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 '@vaadin/component-base/src/styles/style-props.js';
|
|
@@ -12,12 +12,9 @@ const DEFAULT_I18N = {
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* A mixin providing common avatar functionality.
|
|
15
|
-
*
|
|
16
|
-
* @polymerMixin
|
|
17
|
-
* @mixes FocusMixin
|
|
18
15
|
*/
|
|
19
16
|
export const AvatarMixin = (superClass) =>
|
|
20
|
-
class AvatarMixinClass extends I18nMixin(
|
|
17
|
+
class AvatarMixinClass extends I18nMixin(FocusMixin(superClass)) {
|
|
21
18
|
static get properties() {
|
|
22
19
|
return {
|
|
23
20
|
/**
|
|
@@ -90,6 +87,10 @@ export const AvatarMixin = (superClass) =>
|
|
|
90
87
|
];
|
|
91
88
|
}
|
|
92
89
|
|
|
90
|
+
static get defaultI18n() {
|
|
91
|
+
return DEFAULT_I18N;
|
|
92
|
+
}
|
|
93
|
+
|
|
93
94
|
/**
|
|
94
95
|
* The object used to localize this component. To change the default
|
|
95
96
|
* localization, replace this with an object that provides all properties, or
|
package/src/vaadin-avatar.js
CHANGED
|
@@ -56,9 +56,6 @@ import { AvatarMixin } from './vaadin-avatar-mixin.js';
|
|
|
56
56
|
*
|
|
57
57
|
* @customElement vaadin-avatar
|
|
58
58
|
* @extends HTMLElement
|
|
59
|
-
* @mixes AvatarMixin
|
|
60
|
-
* @mixes ElementMixin
|
|
61
|
-
* @mixes ThemableMixin
|
|
62
59
|
*/
|
|
63
60
|
class Avatar extends AvatarMixin(ElementMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
|
|
64
61
|
static get is() {
|
package/web-types.json
CHANGED