@vaadin/avatar 24.9.0-alpha2 → 24.9.0-beta2
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 +10 -10
- package/src/vaadin-avatar-mixin.js +2 -0
- package/src/vaadin-avatar.d.ts +1 -0
- package/src/vaadin-avatar.js +1 -0
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/avatar",
|
|
3
|
-
"version": "24.9.0-
|
|
3
|
+
"version": "24.9.0-beta2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
40
|
"@polymer/polymer": "^3.0.0",
|
|
41
|
-
"@vaadin/a11y-base": "24.9.0-
|
|
42
|
-
"@vaadin/component-base": "24.9.0-
|
|
43
|
-
"@vaadin/tooltip": "24.9.0-
|
|
44
|
-
"@vaadin/vaadin-lumo-styles": "24.9.0-
|
|
45
|
-
"@vaadin/vaadin-material-styles": "24.9.0-
|
|
46
|
-
"@vaadin/vaadin-themable-mixin": "24.9.0-
|
|
41
|
+
"@vaadin/a11y-base": "24.9.0-beta2",
|
|
42
|
+
"@vaadin/component-base": "24.9.0-beta2",
|
|
43
|
+
"@vaadin/tooltip": "24.9.0-beta2",
|
|
44
|
+
"@vaadin/vaadin-lumo-styles": "24.9.0-beta2",
|
|
45
|
+
"@vaadin/vaadin-material-styles": "24.9.0-beta2",
|
|
46
|
+
"@vaadin/vaadin-themable-mixin": "24.9.0-beta2",
|
|
47
47
|
"lit": "^3.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@vaadin/chai-plugins": "24.9.0-
|
|
51
|
-
"@vaadin/test-runner-commands": "24.9.0-
|
|
50
|
+
"@vaadin/chai-plugins": "24.9.0-beta2",
|
|
51
|
+
"@vaadin/test-runner-commands": "24.9.0-beta2",
|
|
52
52
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
53
53
|
"sinon": "^18.0.0"
|
|
54
54
|
},
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"web-types.json",
|
|
57
57
|
"web-types.lit.json"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "cf8def153fcf724b305f9ad823dc9af27e31ad07"
|
|
60
60
|
}
|
|
@@ -198,6 +198,8 @@ export const AvatarMixin = (superClass) =>
|
|
|
198
198
|
|
|
199
199
|
/** @private */
|
|
200
200
|
__withTooltipChanged(withTooltip, oldWithTooltip) {
|
|
201
|
+
this.toggleAttribute('has-tooltip', withTooltip);
|
|
202
|
+
|
|
201
203
|
if (withTooltip) {
|
|
202
204
|
// Create and attach tooltip
|
|
203
205
|
const tooltipNode = document.createElement('vaadin-tooltip');
|
package/src/vaadin-avatar.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export { AvatarI18n } from './vaadin-avatar-mixin.js';
|
|
|
33
33
|
* `focus-ring` | Set when the avatar is focused using the keyboard.
|
|
34
34
|
* `focused` | Set when the avatar is focused.
|
|
35
35
|
* `has-color-index` | Set when the avatar has `colorIndex` and the corresponding custom CSS property exists.
|
|
36
|
+
* `has-tooltip` | Set when the element has a slotted tooltip.
|
|
36
37
|
*
|
|
37
38
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
38
39
|
*/
|
package/src/vaadin-avatar.js
CHANGED
|
@@ -39,6 +39,7 @@ registerStyles('vaadin-avatar', avatarStyles, { moduleId: 'vaadin-avatar-styles'
|
|
|
39
39
|
* `focus-ring` | Set when the avatar is focused using the keyboard.
|
|
40
40
|
* `focused` | Set when the avatar is focused.
|
|
41
41
|
* `has-color-index` | Set when the avatar has `colorIndex` and the corresponding custom CSS property exists.
|
|
42
|
+
* `has-tooltip` | Set when the element has a slotted tooltip.
|
|
42
43
|
*
|
|
43
44
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
44
45
|
*
|
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",
|
|
4
|
-
"version": "24.9.0-
|
|
4
|
+
"version": "24.9.0-beta2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-avatar",
|
|
11
|
-
"description": "`<vaadin-avatar>` is a Web Component providing avatar displaying functionality.\n\n```html\n<vaadin-avatar img=\"avatars/avatar-1.jpg\"></vaadin-avatar>\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n--------- | ---------------\n`abbr` | The abbreviation element\n`icon` | The icon element\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`focus-ring` | Set when the avatar is focused using the keyboard.\n`focused` | Set when the avatar is focused.\n`has-color-index` | Set when the avatar has `colorIndex` and the corresponding custom CSS property exists.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
11
|
+
"description": "`<vaadin-avatar>` is a Web Component providing avatar displaying functionality.\n\n```html\n<vaadin-avatar img=\"avatars/avatar-1.jpg\"></vaadin-avatar>\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n--------- | ---------------\n`abbr` | The abbreviation element\n`icon` | The icon element\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`focus-ring` | Set when the avatar is focused using the keyboard.\n`focused` | Set when the avatar is focused.\n`has-color-index` | Set when the avatar has `colorIndex` and the corresponding custom CSS property exists.\n`has-tooltip` | Set when the element has a slotted tooltip.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "img",
|
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",
|
|
4
|
-
"version": "24.9.0-
|
|
4
|
+
"version": "24.9.0-beta2",
|
|
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",
|
|
19
|
-
"description": "`<vaadin-avatar>` is a Web Component providing avatar displaying functionality.\n\n```html\n<vaadin-avatar img=\"avatars/avatar-1.jpg\"></vaadin-avatar>\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n--------- | ---------------\n`abbr` | The abbreviation element\n`icon` | The icon element\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`focus-ring` | Set when the avatar is focused using the keyboard.\n`focused` | Set when the avatar is focused.\n`has-color-index` | Set when the avatar has `colorIndex` and the corresponding custom CSS property exists.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
19
|
+
"description": "`<vaadin-avatar>` is a Web Component providing avatar displaying functionality.\n\n```html\n<vaadin-avatar img=\"avatars/avatar-1.jpg\"></vaadin-avatar>\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n--------- | ---------------\n`abbr` | The abbreviation element\n`icon` | The icon element\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`focus-ring` | Set when the avatar is focused using the keyboard.\n`focused` | Set when the avatar is focused.\n`has-color-index` | Set when the avatar has `colorIndex` and the corresponding custom CSS property exists.\n`has-tooltip` | Set when the element has a slotted tooltip.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|