@vaadin/avatar 24.3.2 → 24.4.0-dev.223e39f050

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": "24.3.2",
3
+ "version": "24.4.0-dev.223e39f050",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,13 +38,14 @@
38
38
  "polymer"
39
39
  ],
40
40
  "dependencies": {
41
+ "@open-wc/dedupe-mixin": "^1.3.0",
41
42
  "@polymer/polymer": "^3.0.0",
42
- "@vaadin/a11y-base": "~24.3.2",
43
- "@vaadin/component-base": "~24.3.2",
44
- "@vaadin/tooltip": "~24.3.2",
45
- "@vaadin/vaadin-lumo-styles": "~24.3.2",
46
- "@vaadin/vaadin-material-styles": "~24.3.2",
47
- "@vaadin/vaadin-themable-mixin": "~24.3.2",
43
+ "@vaadin/a11y-base": "24.4.0-dev.223e39f050",
44
+ "@vaadin/component-base": "24.4.0-dev.223e39f050",
45
+ "@vaadin/tooltip": "24.4.0-dev.223e39f050",
46
+ "@vaadin/vaadin-lumo-styles": "24.4.0-dev.223e39f050",
47
+ "@vaadin/vaadin-material-styles": "24.4.0-dev.223e39f050",
48
+ "@vaadin/vaadin-themable-mixin": "24.4.0-dev.223e39f050",
48
49
  "lit": "^3.0.0"
49
50
  },
50
51
  "devDependencies": {
@@ -56,5 +57,5 @@
56
57
  "web-types.json",
57
58
  "web-types.lit.json"
58
59
  ],
59
- "gitHead": "615ee9dd4611f52db90445b0db13dcbb91ca74d4"
60
+ "gitHead": "5e2e3bfc811c95aed9354235fab93fdbf43eb354"
60
61
  }
package/web-types.json DELETED
@@ -1,153 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/web-types",
3
- "name": "@vaadin/avatar",
4
- "version": "24.3.2",
5
- "description-markup": "markdown",
6
- "contributions": {
7
- "html": {
8
- "elements": [
9
- {
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.",
12
- "attributes": [
13
- {
14
- "name": "img",
15
- "description": "The path to the image",
16
- "value": {
17
- "type": [
18
- "string",
19
- "null",
20
- "undefined"
21
- ]
22
- }
23
- },
24
- {
25
- "name": "abbr",
26
- "description": "A shortened form of name that is displayed\nin the avatar when `img` is not provided.",
27
- "value": {
28
- "type": [
29
- "string",
30
- "null",
31
- "undefined"
32
- ]
33
- }
34
- },
35
- {
36
- "name": "name",
37
- "description": "Full name of the user\nused for the tooltip of the avatar.",
38
- "value": {
39
- "type": [
40
- "string",
41
- "null",
42
- "undefined"
43
- ]
44
- }
45
- },
46
- {
47
- "name": "color-index",
48
- "description": "Color index used for avatar background.",
49
- "value": {
50
- "type": [
51
- "number",
52
- "null",
53
- "undefined"
54
- ]
55
- }
56
- },
57
- {
58
- "name": "with-tooltip",
59
- "description": "When true, the avatar has tooltip shown on hover and focus.\nThe tooltip text is based on the `name` and `abbr` properties.\nWhen neither is provided, `i18n.anonymous` is used instead.",
60
- "value": {
61
- "type": [
62
- "boolean",
63
- "null",
64
- "undefined"
65
- ]
66
- }
67
- },
68
- {
69
- "name": "theme",
70
- "description": "The theme variants to apply to the component.",
71
- "value": {
72
- "type": [
73
- "string",
74
- "null",
75
- "undefined"
76
- ]
77
- }
78
- }
79
- ],
80
- "js": {
81
- "properties": [
82
- {
83
- "name": "img",
84
- "description": "The path to the image",
85
- "value": {
86
- "type": [
87
- "string",
88
- "null",
89
- "undefined"
90
- ]
91
- }
92
- },
93
- {
94
- "name": "abbr",
95
- "description": "A shortened form of name that is displayed\nin the avatar when `img` is not provided.",
96
- "value": {
97
- "type": [
98
- "string",
99
- "null",
100
- "undefined"
101
- ]
102
- }
103
- },
104
- {
105
- "name": "name",
106
- "description": "Full name of the user\nused for the tooltip of the avatar.",
107
- "value": {
108
- "type": [
109
- "string",
110
- "null",
111
- "undefined"
112
- ]
113
- }
114
- },
115
- {
116
- "name": "colorIndex",
117
- "description": "Color index used for avatar background.",
118
- "value": {
119
- "type": [
120
- "number",
121
- "null",
122
- "undefined"
123
- ]
124
- }
125
- },
126
- {
127
- "name": "i18n",
128
- "description": "The object used to localize this component.\nTo change the default localization, replace the entire\n_i18n_ object or just the property you want to modify.\n\nThe object has the following JSON structure and default values:\n\n```\n{\n // Translation of the anonymous user avatar tooltip.\n anonymous: 'anonymous'\n}\n```",
129
- "value": {
130
- "type": [
131
- "AvatarI18n"
132
- ]
133
- }
134
- },
135
- {
136
- "name": "withTooltip",
137
- "description": "When true, the avatar has tooltip shown on hover and focus.\nThe tooltip text is based on the `name` and `abbr` properties.\nWhen neither is provided, `i18n.anonymous` is used instead.",
138
- "value": {
139
- "type": [
140
- "boolean",
141
- "null",
142
- "undefined"
143
- ]
144
- }
145
- }
146
- ],
147
- "events": []
148
- }
149
- }
150
- ]
151
- }
152
- }
153
- }
@@ -1,69 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/web-types",
3
- "name": "@vaadin/avatar",
4
- "version": "24.3.2",
5
- "description-markup": "markdown",
6
- "framework": "lit",
7
- "framework-config": {
8
- "enable-when": {
9
- "node-packages": [
10
- "lit"
11
- ]
12
- }
13
- },
14
- "contributions": {
15
- "html": {
16
- "elements": [
17
- {
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.",
20
- "extension": true,
21
- "attributes": [
22
- {
23
- "name": "?withTooltip",
24
- "description": "When true, the avatar has tooltip shown on hover and focus.\nThe tooltip text is based on the `name` and `abbr` properties.\nWhen neither is provided, `i18n.anonymous` is used instead.",
25
- "value": {
26
- "kind": "expression"
27
- }
28
- },
29
- {
30
- "name": ".img",
31
- "description": "The path to the image",
32
- "value": {
33
- "kind": "expression"
34
- }
35
- },
36
- {
37
- "name": ".abbr",
38
- "description": "A shortened form of name that is displayed\nin the avatar when `img` is not provided.",
39
- "value": {
40
- "kind": "expression"
41
- }
42
- },
43
- {
44
- "name": ".name",
45
- "description": "Full name of the user\nused for the tooltip of the avatar.",
46
- "value": {
47
- "kind": "expression"
48
- }
49
- },
50
- {
51
- "name": ".colorIndex",
52
- "description": "Color index used for avatar background.",
53
- "value": {
54
- "kind": "expression"
55
- }
56
- },
57
- {
58
- "name": ".i18n",
59
- "description": "The object used to localize this component.\nTo change the default localization, replace the entire\n_i18n_ object or just the property you want to modify.\n\nThe object has the following JSON structure and default values:\n\n```\n{\n // Translation of the anonymous user avatar tooltip.\n anonymous: 'anonymous'\n}\n```",
60
- "value": {
61
- "kind": "expression"
62
- }
63
- }
64
- ]
65
- }
66
- ]
67
- }
68
- }
69
- }