@vaadin/avatar 25.1.0-alpha6 → 25.1.0-alpha7

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.
@@ -0,0 +1,331 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "vaadin-avatar.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "*",
13
+ "declaration": {
14
+ "name": "*",
15
+ "module": "src/vaadin-avatar.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "src/vaadin-avatar-mixin.js",
23
+ "declarations": [
24
+ {
25
+ "kind": "mixin",
26
+ "description": "A mixin providing common avatar functionality.",
27
+ "name": "AvatarMixin",
28
+ "members": [
29
+ {
30
+ "kind": "field",
31
+ "name": "abbr",
32
+ "privacy": "public",
33
+ "type": {
34
+ "text": "string"
35
+ },
36
+ "description": "A shortened form of name that is displayed\nin the avatar when `img` is not provided.",
37
+ "attribute": "abbr"
38
+ },
39
+ {
40
+ "kind": "field",
41
+ "name": "colorIndex",
42
+ "privacy": "public",
43
+ "type": {
44
+ "text": "number"
45
+ },
46
+ "description": "Color index used for avatar background.",
47
+ "attribute": "color-index"
48
+ },
49
+ {
50
+ "kind": "field",
51
+ "name": "img",
52
+ "privacy": "public",
53
+ "type": {
54
+ "text": "string"
55
+ },
56
+ "description": "The path to the image",
57
+ "attribute": "img"
58
+ },
59
+ {
60
+ "kind": "field",
61
+ "name": "name",
62
+ "privacy": "public",
63
+ "type": {
64
+ "text": "string"
65
+ },
66
+ "description": "Full name of the user\nused for the tooltip of the avatar.",
67
+ "attribute": "name"
68
+ },
69
+ {
70
+ "kind": "field",
71
+ "name": "withTooltip",
72
+ "privacy": "public",
73
+ "type": {
74
+ "text": "boolean"
75
+ },
76
+ "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.",
77
+ "attribute": "with-tooltip"
78
+ }
79
+ ],
80
+ "attributes": [
81
+ {
82
+ "name": "abbr",
83
+ "type": {
84
+ "text": "string"
85
+ },
86
+ "description": "A shortened form of name that is displayed\nin the avatar when `img` is not provided.",
87
+ "fieldName": "abbr"
88
+ },
89
+ {
90
+ "name": "color-index",
91
+ "type": {
92
+ "text": "number"
93
+ },
94
+ "description": "Color index used for avatar background.",
95
+ "fieldName": "colorIndex"
96
+ },
97
+ {
98
+ "name": "img",
99
+ "type": {
100
+ "text": "string"
101
+ },
102
+ "description": "The path to the image",
103
+ "fieldName": "img"
104
+ },
105
+ {
106
+ "name": "name",
107
+ "type": {
108
+ "text": "string"
109
+ },
110
+ "description": "Full name of the user\nused for the tooltip of the avatar.",
111
+ "fieldName": "name"
112
+ },
113
+ {
114
+ "name": "with-tooltip",
115
+ "type": {
116
+ "text": "boolean"
117
+ },
118
+ "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.",
119
+ "fieldName": "withTooltip"
120
+ }
121
+ ],
122
+ "mixins": [
123
+ {
124
+ "name": "I18nMixin",
125
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
126
+ }
127
+ ],
128
+ "parameters": [
129
+ {
130
+ "name": "superClass"
131
+ }
132
+ ]
133
+ }
134
+ ],
135
+ "exports": [
136
+ {
137
+ "kind": "js",
138
+ "name": "AvatarMixin",
139
+ "declaration": {
140
+ "name": "AvatarMixin",
141
+ "module": "src/vaadin-avatar-mixin.js"
142
+ }
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ "kind": "javascript-module",
148
+ "path": "src/vaadin-avatar.js",
149
+ "declarations": [
150
+ {
151
+ "kind": "class",
152
+ "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 available for styling:\n\nPart name | Description\n--------- | ---------------\n`abbr` | The abbreviation element\n`icon` | The icon element\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property | Description\n-------------------------------|-------------\n`--vaadin-avatar-background` | Background color of the avatar\n`--vaadin-avatar-border-color` | Border color of the avatar\n`--vaadin-avatar-border-width` | Border width of the avatar\n`--vaadin-avatar-font-size` | Font size of the avatar\n`--vaadin-avatar-font-weight` | Font weight of the avatar\n`--vaadin-avatar-size` | Size of the avatar\n`--vaadin-avatar-text-color` | Text color of the avatar\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.",
153
+ "name": "Avatar",
154
+ "members": [
155
+ {
156
+ "kind": "field",
157
+ "name": "abbr",
158
+ "privacy": "public",
159
+ "type": {
160
+ "text": "string"
161
+ },
162
+ "description": "A shortened form of name that is displayed\nin the avatar when `img` is not provided.",
163
+ "attribute": "abbr",
164
+ "inheritedFrom": {
165
+ "name": "AvatarMixin",
166
+ "module": "src/vaadin-avatar-mixin.js"
167
+ }
168
+ },
169
+ {
170
+ "kind": "field",
171
+ "name": "colorIndex",
172
+ "privacy": "public",
173
+ "type": {
174
+ "text": "number"
175
+ },
176
+ "description": "Color index used for avatar background.",
177
+ "attribute": "color-index",
178
+ "inheritedFrom": {
179
+ "name": "AvatarMixin",
180
+ "module": "src/vaadin-avatar-mixin.js"
181
+ }
182
+ },
183
+ {
184
+ "kind": "field",
185
+ "name": "img",
186
+ "privacy": "public",
187
+ "type": {
188
+ "text": "string"
189
+ },
190
+ "description": "The path to the image",
191
+ "attribute": "img",
192
+ "inheritedFrom": {
193
+ "name": "AvatarMixin",
194
+ "module": "src/vaadin-avatar-mixin.js"
195
+ }
196
+ },
197
+ {
198
+ "kind": "field",
199
+ "name": "name",
200
+ "privacy": "public",
201
+ "type": {
202
+ "text": "string"
203
+ },
204
+ "description": "Full name of the user\nused for the tooltip of the avatar.",
205
+ "attribute": "name",
206
+ "inheritedFrom": {
207
+ "name": "AvatarMixin",
208
+ "module": "src/vaadin-avatar-mixin.js"
209
+ }
210
+ },
211
+ {
212
+ "kind": "field",
213
+ "name": "withTooltip",
214
+ "privacy": "public",
215
+ "type": {
216
+ "text": "boolean"
217
+ },
218
+ "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.",
219
+ "attribute": "with-tooltip",
220
+ "inheritedFrom": {
221
+ "name": "AvatarMixin",
222
+ "module": "src/vaadin-avatar-mixin.js"
223
+ }
224
+ }
225
+ ],
226
+ "mixins": [
227
+ {
228
+ "name": "AvatarMixin",
229
+ "module": "src/vaadin-avatar-mixin.js"
230
+ },
231
+ {
232
+ "name": "ElementMixin",
233
+ "package": "@vaadin/component-base/src/element-mixin.js"
234
+ },
235
+ {
236
+ "name": "ThemableMixin",
237
+ "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
238
+ },
239
+ {
240
+ "name": "PolylitMixin",
241
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
242
+ },
243
+ {
244
+ "name": "LumoInjectionMixin",
245
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
246
+ }
247
+ ],
248
+ "superclass": {
249
+ "name": "LitElement",
250
+ "package": "lit"
251
+ },
252
+ "tagName": "vaadin-avatar",
253
+ "customElement": true,
254
+ "attributes": [
255
+ {
256
+ "name": "abbr",
257
+ "type": {
258
+ "text": "string"
259
+ },
260
+ "description": "A shortened form of name that is displayed\nin the avatar when `img` is not provided.",
261
+ "fieldName": "abbr",
262
+ "inheritedFrom": {
263
+ "name": "AvatarMixin",
264
+ "module": "src/vaadin-avatar-mixin.js"
265
+ }
266
+ },
267
+ {
268
+ "name": "color-index",
269
+ "type": {
270
+ "text": "number"
271
+ },
272
+ "description": "Color index used for avatar background.",
273
+ "fieldName": "colorIndex",
274
+ "inheritedFrom": {
275
+ "name": "AvatarMixin",
276
+ "module": "src/vaadin-avatar-mixin.js"
277
+ }
278
+ },
279
+ {
280
+ "name": "img",
281
+ "type": {
282
+ "text": "string"
283
+ },
284
+ "description": "The path to the image",
285
+ "fieldName": "img",
286
+ "inheritedFrom": {
287
+ "name": "AvatarMixin",
288
+ "module": "src/vaadin-avatar-mixin.js"
289
+ }
290
+ },
291
+ {
292
+ "name": "name",
293
+ "type": {
294
+ "text": "string"
295
+ },
296
+ "description": "Full name of the user\nused for the tooltip of the avatar.",
297
+ "fieldName": "name",
298
+ "inheritedFrom": {
299
+ "name": "AvatarMixin",
300
+ "module": "src/vaadin-avatar-mixin.js"
301
+ }
302
+ },
303
+ {
304
+ "name": "with-tooltip",
305
+ "type": {
306
+ "text": "boolean"
307
+ },
308
+ "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.",
309
+ "fieldName": "withTooltip",
310
+ "inheritedFrom": {
311
+ "name": "AvatarMixin",
312
+ "module": "src/vaadin-avatar-mixin.js"
313
+ }
314
+ }
315
+ ],
316
+ "events": []
317
+ }
318
+ ],
319
+ "exports": [
320
+ {
321
+ "kind": "js",
322
+ "name": "Avatar",
323
+ "declaration": {
324
+ "name": "Avatar",
325
+ "module": "src/vaadin-avatar.js"
326
+ }
327
+ }
328
+ ]
329
+ }
330
+ ]
331
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/avatar",
3
- "version": "25.1.0-alpha6",
3
+ "version": "25.1.0-alpha7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,6 +23,7 @@
23
23
  "src",
24
24
  "vaadin-*.d.ts",
25
25
  "vaadin-*.js",
26
+ "custom-elements.json",
26
27
  "web-types.json",
27
28
  "web-types.lit.json"
28
29
  ],
@@ -35,23 +36,24 @@
35
36
  ],
36
37
  "dependencies": {
37
38
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.1.0-alpha6",
39
- "@vaadin/component-base": "25.1.0-alpha6",
40
- "@vaadin/tooltip": "25.1.0-alpha6",
41
- "@vaadin/vaadin-themable-mixin": "25.1.0-alpha6",
39
+ "@vaadin/a11y-base": "25.1.0-alpha7",
40
+ "@vaadin/component-base": "25.1.0-alpha7",
41
+ "@vaadin/tooltip": "25.1.0-alpha7",
42
+ "@vaadin/vaadin-themable-mixin": "25.1.0-alpha7",
42
43
  "lit": "^3.0.0"
43
44
  },
44
45
  "devDependencies": {
45
- "@vaadin/aura": "25.1.0-alpha6",
46
- "@vaadin/chai-plugins": "25.1.0-alpha6",
47
- "@vaadin/test-runner-commands": "25.1.0-alpha6",
46
+ "@vaadin/aura": "25.1.0-alpha7",
47
+ "@vaadin/chai-plugins": "25.1.0-alpha7",
48
+ "@vaadin/test-runner-commands": "25.1.0-alpha7",
48
49
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "25.1.0-alpha6",
50
+ "@vaadin/vaadin-lumo-styles": "25.1.0-alpha7",
50
51
  "sinon": "^21.0.0"
51
52
  },
53
+ "customElements": "custom-elements.json",
52
54
  "web-types": [
53
55
  "web-types.json",
54
56
  "web-types.lit.json"
55
57
  ],
56
- "gitHead": "da6f4194492cbd77d18c6c1cd8d4d9f072e9ce8d"
58
+ "gitHead": "98c586125f769c8fefd307536965293668fda81d"
57
59
  }
@@ -54,7 +54,7 @@ import { AvatarMixin } from './vaadin-avatar-mixin.js';
54
54
  *
55
55
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
56
56
  *
57
- * @customElement
57
+ * @customElement vaadin-avatar
58
58
  * @extends HTMLElement
59
59
  * @mixes AvatarMixin
60
60
  * @mixes ElementMixin
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/avatar",
4
- "version": "25.1.0-alpha6",
4
+ "version": "25.1.0-alpha7",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/avatar",
4
- "version": "25.1.0-alpha6",
4
+ "version": "25.1.0-alpha7",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {