@vaadin/upload 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,2513 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "vaadin-upload.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "*",
13
+ "declaration": {
14
+ "name": "*",
15
+ "module": "src/vaadin-upload.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "vaadin-upload-manager.js",
23
+ "declarations": [],
24
+ "exports": [
25
+ {
26
+ "kind": "js",
27
+ "name": "*",
28
+ "declaration": {
29
+ "name": "*",
30
+ "module": "src/vaadin-upload-manager.js"
31
+ }
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "kind": "javascript-module",
37
+ "path": "vaadin-upload-file-list.js",
38
+ "declarations": [],
39
+ "exports": [
40
+ {
41
+ "kind": "js",
42
+ "name": "*",
43
+ "declaration": {
44
+ "name": "*",
45
+ "module": "src/vaadin-upload-file-list.js"
46
+ }
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "kind": "javascript-module",
52
+ "path": "vaadin-upload-drop-zone.js",
53
+ "declarations": [],
54
+ "exports": [
55
+ {
56
+ "kind": "js",
57
+ "name": "*",
58
+ "declaration": {
59
+ "name": "*",
60
+ "module": "src/vaadin-upload-drop-zone.js"
61
+ }
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "kind": "javascript-module",
67
+ "path": "vaadin-upload-button.js",
68
+ "declarations": [],
69
+ "exports": [
70
+ {
71
+ "kind": "js",
72
+ "name": "*",
73
+ "declaration": {
74
+ "name": "*",
75
+ "module": "src/vaadin-upload-button.js"
76
+ }
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ "kind": "javascript-module",
82
+ "path": "src/vaadin-upload-button.js",
83
+ "declarations": [
84
+ {
85
+ "kind": "class",
86
+ "description": "`<vaadin-upload-button>` is a button component for file uploads.\nWhen clicked, it opens a file picker dialog and calls addFiles\non a linked UploadManager.\n\n```html\n<vaadin-upload-button>Upload Files</vaadin-upload-button>\n```\n\nThe button must be linked to an UploadManager by setting the\n`manager` property:\n\n```javascript\nconst button = document.querySelector('vaadin-upload-button');\nbutton.manager = uploadManager;\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------|-------------\n`label` | The label (text) inside the button.\n`prefix` | A slot for content before the label (e.g. an icon).\n`suffix` | A slot for content after the label (e.g. an icon).\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------|-------------\n`active` | Set when the button is pressed down, either with mouse, touch or the keyboard\n`disabled` | Set when the button is disabled\n`focus-ring` | Set when the button is focused using the keyboard\n`focused` | Set when the button is focused\n`has-tooltip` | Set when the button has a slotted tooltip\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:----------------------------------|\n| `--vaadin-button-background` |\n| `--vaadin-button-border-color` |\n| `--vaadin-button-border-radius` |\n| `--vaadin-button-border-width` |\n| `--vaadin-button-font-size` |\n| `--vaadin-button-font-weight` |\n| `--vaadin-button-gap` |\n| `--vaadin-button-height` |\n| `--vaadin-button-line-height` |\n| `--vaadin-button-margin` |\n| `--vaadin-button-padding` |\n| `--vaadin-button-text-color` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
87
+ "name": "UploadButton",
88
+ "members": [
89
+ {
90
+ "kind": "field",
91
+ "name": "capture",
92
+ "privacy": "public",
93
+ "type": {
94
+ "text": "string"
95
+ },
96
+ "description": "Capture attribute for mobile file input.",
97
+ "attribute": "capture"
98
+ },
99
+ {
100
+ "kind": "field",
101
+ "name": "disabled",
102
+ "description": "Whether the button is disabled.\nReturns true if either explicitly disabled, manager is disabled, or maxFilesReached is true.",
103
+ "type": {
104
+ "text": "boolean"
105
+ }
106
+ },
107
+ {
108
+ "kind": "field",
109
+ "name": "manager",
110
+ "privacy": "public",
111
+ "type": {
112
+ "text": "Object | null"
113
+ },
114
+ "description": "Reference to an UploadManager.\nWhen set, the button will automatically disable when maxFilesReached\nbecomes true on the manager.",
115
+ "attribute": "manager"
116
+ },
117
+ {
118
+ "kind": "field",
119
+ "name": "maxFilesReached",
120
+ "privacy": "public",
121
+ "type": {
122
+ "text": "boolean"
123
+ },
124
+ "description": "True when max files has been reached on the manager.",
125
+ "attribute": "max-files-reached",
126
+ "reflects": true
127
+ },
128
+ {
129
+ "kind": "method",
130
+ "name": "openFilePicker",
131
+ "description": "Opens the file picker dialog."
132
+ }
133
+ ],
134
+ "attributes": [
135
+ {
136
+ "name": "capture",
137
+ "type": {
138
+ "text": "string"
139
+ },
140
+ "description": "Capture attribute for mobile file input.",
141
+ "fieldName": "capture"
142
+ },
143
+ {
144
+ "name": "manager",
145
+ "type": {
146
+ "text": "Object | null"
147
+ },
148
+ "description": "Reference to an UploadManager.\nWhen set, the button will automatically disable when maxFilesReached\nbecomes true on the manager.",
149
+ "fieldName": "manager"
150
+ },
151
+ {
152
+ "name": "max-files-reached",
153
+ "type": {
154
+ "text": "boolean"
155
+ },
156
+ "description": "True when max files has been reached on the manager.",
157
+ "fieldName": "maxFilesReached"
158
+ },
159
+ {
160
+ "name": "tabindex",
161
+ "type": {
162
+ "text": "number"
163
+ },
164
+ "description": "Indicates whether the element can be focused and where it participates in sequential keyboard navigation.",
165
+ "fieldName": "tabindex",
166
+ "inheritedFrom": {
167
+ "name": "TabindexMixin",
168
+ "package": "@vaadin/a11y-base/src/tabindex-mixin.js"
169
+ }
170
+ }
171
+ ],
172
+ "mixins": [
173
+ {
174
+ "name": "ButtonMixin",
175
+ "package": "@vaadin/button/src/vaadin-button-mixin.js"
176
+ },
177
+ {
178
+ "name": "ElementMixin",
179
+ "package": "@vaadin/component-base/src/element-mixin.js"
180
+ },
181
+ {
182
+ "name": "ThemableMixin",
183
+ "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
184
+ },
185
+ {
186
+ "name": "PolylitMixin",
187
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
188
+ },
189
+ {
190
+ "name": "LumoInjectionMixin",
191
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
192
+ }
193
+ ],
194
+ "superclass": {
195
+ "name": "LitElement",
196
+ "package": "lit"
197
+ },
198
+ "tagName": "vaadin-upload-button",
199
+ "customElement": true,
200
+ "events": []
201
+ }
202
+ ],
203
+ "exports": [
204
+ {
205
+ "kind": "js",
206
+ "name": "UploadButton",
207
+ "declaration": {
208
+ "name": "UploadButton",
209
+ "module": "src/vaadin-upload-button.js"
210
+ }
211
+ }
212
+ ]
213
+ },
214
+ {
215
+ "kind": "javascript-module",
216
+ "path": "src/vaadin-upload-drop-zone.js",
217
+ "declarations": [
218
+ {
219
+ "kind": "class",
220
+ "description": "`<vaadin-upload-drop-zone>` is a Web Component that can be used as a drop zone\nfor file uploads. When files are dropped on the drop zone, they are added to\na linked UploadManager.\n\n```html\n<vaadin-upload-drop-zone>\n <p>Drop files here</p>\n</vaadin-upload-drop-zone>\n```\n\nThe drop zone must be linked to an UploadManager by setting the\n`manager` property:\n\n```javascript\nconst dropZone = document.querySelector('vaadin-upload-drop-zone');\ndropZone.manager = uploadManager;\n```\n\n### Styling\n\nThe component has no styling by default. When files are dragged over,\nthe `dragover` attribute is set and the component uses a hover effect.\nTo override the hover effect, use `vaadin-upload-drop-zone[dragover]::after`\nselector to style the pseudo-element covering the drop zone during dragover.\n\nAttribute | Description\n-------------------|--------------------------------------------\n`dragover` | Set when files are being dragged over the element\n`disabled` | Set when the drop zone is effectively disabled\n`max-files-reached`| Set when the manager has reached maxFiles\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
221
+ "name": "UploadDropZone",
222
+ "members": [
223
+ {
224
+ "kind": "field",
225
+ "name": "disabled",
226
+ "privacy": "public",
227
+ "type": {
228
+ "text": "boolean"
229
+ },
230
+ "description": "Whether the drop zone is disabled.\nReturns true if either explicitly disabled, manager is disabled, or no manager is set.",
231
+ "attribute": "disabled"
232
+ },
233
+ {
234
+ "kind": "field",
235
+ "name": "manager",
236
+ "privacy": "public",
237
+ "type": {
238
+ "text": "Object | null"
239
+ },
240
+ "description": "Reference to an UploadManager.\nWhen set, dropped files will be automatically added to the manager.",
241
+ "attribute": "manager"
242
+ },
243
+ {
244
+ "kind": "field",
245
+ "name": "maxFilesReached",
246
+ "privacy": "public",
247
+ "type": {
248
+ "text": "boolean"
249
+ },
250
+ "description": "True when max files has been reached on the manager.",
251
+ "readonly": true,
252
+ "attribute": "max-files-reached",
253
+ "reflects": true
254
+ }
255
+ ],
256
+ "attributes": [
257
+ {
258
+ "name": "disabled",
259
+ "type": {
260
+ "text": "boolean"
261
+ },
262
+ "description": "Whether the drop zone is disabled.\nReturns true if either explicitly disabled, manager is disabled, or no manager is set.",
263
+ "fieldName": "disabled"
264
+ },
265
+ {
266
+ "name": "dragover",
267
+ "type": {
268
+ "text": "boolean"
269
+ },
270
+ "fieldName": "__dragover"
271
+ },
272
+ {
273
+ "name": "manager",
274
+ "type": {
275
+ "text": "Object | null"
276
+ },
277
+ "description": "Reference to an UploadManager.\nWhen set, dropped files will be automatically added to the manager.",
278
+ "fieldName": "manager"
279
+ },
280
+ {
281
+ "name": "max-files-reached",
282
+ "type": {
283
+ "text": "boolean"
284
+ },
285
+ "description": "True when max files has been reached on the manager.",
286
+ "readonly": true,
287
+ "fieldName": "maxFilesReached"
288
+ }
289
+ ],
290
+ "mixins": [
291
+ {
292
+ "name": "ElementMixin",
293
+ "package": "@vaadin/component-base/src/element-mixin.js"
294
+ },
295
+ {
296
+ "name": "ThemableMixin",
297
+ "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
298
+ },
299
+ {
300
+ "name": "PolylitMixin",
301
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
302
+ },
303
+ {
304
+ "name": "LumoInjectionMixin",
305
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
306
+ }
307
+ ],
308
+ "superclass": {
309
+ "name": "LitElement",
310
+ "package": "lit"
311
+ },
312
+ "tagName": "vaadin-upload-drop-zone",
313
+ "customElement": true,
314
+ "events": []
315
+ }
316
+ ],
317
+ "exports": [
318
+ {
319
+ "kind": "js",
320
+ "name": "UploadDropZone",
321
+ "declaration": {
322
+ "name": "UploadDropZone",
323
+ "module": "src/vaadin-upload-drop-zone.js"
324
+ }
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ "kind": "javascript-module",
330
+ "path": "src/vaadin-upload-file-list-mixin.js",
331
+ "declarations": [
332
+ {
333
+ "kind": "mixin",
334
+ "description": "",
335
+ "name": "UploadFileListMixin",
336
+ "members": [
337
+ {
338
+ "kind": "field",
339
+ "name": "disabled",
340
+ "privacy": "public",
341
+ "type": {
342
+ "text": "boolean"
343
+ },
344
+ "description": "If true, the user cannot interact with this element.",
345
+ "attribute": "disabled"
346
+ },
347
+ {
348
+ "kind": "field",
349
+ "name": "items",
350
+ "privacy": "public",
351
+ "type": {
352
+ "text": "array"
353
+ },
354
+ "description": "The array of files being processed, or already uploaded.",
355
+ "readonly": true,
356
+ "attribute": "items"
357
+ },
358
+ {
359
+ "kind": "field",
360
+ "name": "manager",
361
+ "privacy": "public",
362
+ "type": {
363
+ "text": "Object | null"
364
+ },
365
+ "description": "Reference to an UploadManager to link this file list to.\nWhen set, the file list automatically:\n- Syncs files from the manager\n- Forwards retry/abort/start/remove events back to the manager",
366
+ "attribute": "manager"
367
+ }
368
+ ],
369
+ "attributes": [
370
+ {
371
+ "name": "disabled",
372
+ "type": {
373
+ "text": "boolean"
374
+ },
375
+ "description": "If true, the user cannot interact with this element.",
376
+ "fieldName": "disabled"
377
+ },
378
+ {
379
+ "name": "items",
380
+ "type": {
381
+ "text": "array"
382
+ },
383
+ "description": "The array of files being processed, or already uploaded.",
384
+ "readonly": true,
385
+ "fieldName": "items"
386
+ },
387
+ {
388
+ "name": "manager",
389
+ "type": {
390
+ "text": "Object | null"
391
+ },
392
+ "description": "Reference to an UploadManager to link this file list to.\nWhen set, the file list automatically:\n- Syncs files from the manager\n- Forwards retry/abort/start/remove events back to the manager",
393
+ "fieldName": "manager"
394
+ }
395
+ ],
396
+ "mixins": [
397
+ {
398
+ "name": "I18nMixin",
399
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
400
+ }
401
+ ],
402
+ "parameters": [
403
+ {
404
+ "name": "superClass"
405
+ }
406
+ ]
407
+ }
408
+ ],
409
+ "exports": [
410
+ {
411
+ "kind": "js",
412
+ "name": "UploadFileListMixin",
413
+ "declaration": {
414
+ "name": "UploadFileListMixin",
415
+ "module": "src/vaadin-upload-file-list-mixin.js"
416
+ }
417
+ }
418
+ ]
419
+ },
420
+ {
421
+ "kind": "javascript-module",
422
+ "path": "src/vaadin-upload-file-list.js",
423
+ "declarations": [
424
+ {
425
+ "kind": "class",
426
+ "description": "`<vaadin-upload-file-list>` is a Web Component that displays a list of uploaded files.\nIt automatically syncs files from the manager and forwards file events back to it.\n\n```html\n<vaadin-upload-file-list></vaadin-upload-file-list>\n```\n\nThe file list must be linked to an UploadManager by setting the `manager` property:\n\n```javascript\nimport { UploadManager } from '@vaadin/upload/vaadin-upload-manager.js';\n\nconst manager = new UploadManager({ target: '/api/upload' });\nconst fileList = document.querySelector('vaadin-upload-file-list');\nfileList.manager = manager;\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------|-------------\n`list` | The `<ul>` element wrapping the file items\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------|-------------\n`disabled` | Set when the element is disabled\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:--------------------------------------------|\n`--vaadin-upload-file-list-divider-color` |\n`--vaadin-upload-file-list-divider-width` |\n`--vaadin-upload-file-border-radius` |\n`--vaadin-upload-file-button-background` |\n`--vaadin-upload-file-button-border-color` |\n`--vaadin-upload-file-button-border-radius` |\n`--vaadin-upload-file-button-border-width` |\n`--vaadin-upload-file-button-text-color` |\n`--vaadin-upload-file-button-padding` |\n`--vaadin-upload-file-done-color` |\n`--vaadin-upload-file-error-color` |\n`--vaadin-upload-file-error-font-size` |\n`--vaadin-upload-file-error-font-weight` |\n`--vaadin-upload-file-error-line-height` |\n`--vaadin-upload-file-gap` |\n`--vaadin-upload-file-name-color` |\n`--vaadin-upload-file-name-font-size` |\n`--vaadin-upload-file-name-font-weight` |\n`--vaadin-upload-file-name-line-height` |\n`--vaadin-upload-file-padding` |\n`--vaadin-upload-file-status-color` |\n`--vaadin-upload-file-status-font-size` |\n`--vaadin-upload-file-status-font-weight` |\n`--vaadin-upload-file-status-line-height` |\n`--vaadin-upload-file-warning-color` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
427
+ "name": "UploadFileList",
428
+ "members": [
429
+ {
430
+ "kind": "field",
431
+ "name": "disabled",
432
+ "privacy": "public",
433
+ "type": {
434
+ "text": "boolean"
435
+ },
436
+ "description": "If true, the user cannot interact with this element.",
437
+ "attribute": "disabled",
438
+ "inheritedFrom": {
439
+ "name": "UploadFileListMixin",
440
+ "module": "src/vaadin-upload-file-list-mixin.js"
441
+ }
442
+ },
443
+ {
444
+ "kind": "field",
445
+ "name": "items",
446
+ "privacy": "public",
447
+ "type": {
448
+ "text": "array"
449
+ },
450
+ "description": "The array of files being processed, or already uploaded.",
451
+ "readonly": true,
452
+ "attribute": "items",
453
+ "inheritedFrom": {
454
+ "name": "UploadFileListMixin",
455
+ "module": "src/vaadin-upload-file-list-mixin.js"
456
+ }
457
+ },
458
+ {
459
+ "kind": "field",
460
+ "name": "manager",
461
+ "privacy": "public",
462
+ "type": {
463
+ "text": "Object | null"
464
+ },
465
+ "description": "Reference to an UploadManager to link this file list to.\nWhen set, the file list automatically:\n- Syncs files from the manager\n- Forwards retry/abort/start/remove events back to the manager",
466
+ "attribute": "manager",
467
+ "inheritedFrom": {
468
+ "name": "UploadFileListMixin",
469
+ "module": "src/vaadin-upload-file-list-mixin.js"
470
+ }
471
+ }
472
+ ],
473
+ "mixins": [
474
+ {
475
+ "name": "UploadFileListMixin",
476
+ "module": "src/vaadin-upload-file-list-mixin.js"
477
+ },
478
+ {
479
+ "name": "ThemableMixin",
480
+ "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
481
+ },
482
+ {
483
+ "name": "PolylitMixin",
484
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
485
+ }
486
+ ],
487
+ "superclass": {
488
+ "name": "LitElement",
489
+ "package": "lit"
490
+ },
491
+ "tagName": "vaadin-upload-file-list",
492
+ "customElement": true,
493
+ "attributes": [
494
+ {
495
+ "name": "disabled",
496
+ "type": {
497
+ "text": "boolean"
498
+ },
499
+ "description": "If true, the user cannot interact with this element.",
500
+ "fieldName": "disabled",
501
+ "inheritedFrom": {
502
+ "name": "UploadFileListMixin",
503
+ "module": "src/vaadin-upload-file-list-mixin.js"
504
+ }
505
+ },
506
+ {
507
+ "name": "items",
508
+ "type": {
509
+ "text": "array"
510
+ },
511
+ "description": "The array of files being processed, or already uploaded.",
512
+ "readonly": true,
513
+ "fieldName": "items",
514
+ "inheritedFrom": {
515
+ "name": "UploadFileListMixin",
516
+ "module": "src/vaadin-upload-file-list-mixin.js"
517
+ }
518
+ },
519
+ {
520
+ "name": "manager",
521
+ "type": {
522
+ "text": "Object | null"
523
+ },
524
+ "description": "Reference to an UploadManager to link this file list to.\nWhen set, the file list automatically:\n- Syncs files from the manager\n- Forwards retry/abort/start/remove events back to the manager",
525
+ "fieldName": "manager",
526
+ "inheritedFrom": {
527
+ "name": "UploadFileListMixin",
528
+ "module": "src/vaadin-upload-file-list-mixin.js"
529
+ }
530
+ }
531
+ ],
532
+ "events": []
533
+ }
534
+ ],
535
+ "exports": [
536
+ {
537
+ "kind": "js",
538
+ "name": "UploadFileList",
539
+ "declaration": {
540
+ "name": "UploadFileList",
541
+ "module": "src/vaadin-upload-file-list.js"
542
+ }
543
+ }
544
+ ]
545
+ },
546
+ {
547
+ "kind": "javascript-module",
548
+ "path": "src/vaadin-upload-file-mixin.js",
549
+ "declarations": [
550
+ {
551
+ "kind": "mixin",
552
+ "description": "",
553
+ "name": "UploadFileMixin",
554
+ "members": [
555
+ {
556
+ "kind": "field",
557
+ "name": "complete",
558
+ "privacy": "public",
559
+ "type": {
560
+ "text": "boolean"
561
+ },
562
+ "description": "True if uploading is completed, false otherwise.",
563
+ "attribute": "complete"
564
+ },
565
+ {
566
+ "kind": "field",
567
+ "name": "disabled",
568
+ "privacy": "public",
569
+ "type": {
570
+ "text": "boolean"
571
+ },
572
+ "description": "If true, the user cannot interact with this element.",
573
+ "attribute": "disabled"
574
+ },
575
+ {
576
+ "kind": "field",
577
+ "name": "errorMessage",
578
+ "privacy": "public",
579
+ "type": {
580
+ "text": "string"
581
+ },
582
+ "description": "Error message returned by the server, if any.",
583
+ "attribute": "error-message"
584
+ },
585
+ {
586
+ "kind": "field",
587
+ "name": "file",
588
+ "privacy": "public",
589
+ "type": {
590
+ "text": "object"
591
+ },
592
+ "description": "The object representing a file.",
593
+ "attribute": "file"
594
+ },
595
+ {
596
+ "kind": "field",
597
+ "name": "fileName",
598
+ "privacy": "public",
599
+ "type": {
600
+ "text": "string"
601
+ },
602
+ "description": "Name of the uploading file.",
603
+ "attribute": "file-name"
604
+ },
605
+ {
606
+ "kind": "field",
607
+ "name": "held",
608
+ "privacy": "public",
609
+ "type": {
610
+ "text": "boolean"
611
+ },
612
+ "description": "True if uploading is not started, false otherwise.",
613
+ "attribute": "held"
614
+ },
615
+ {
616
+ "kind": "field",
617
+ "name": "i18n",
618
+ "privacy": "public",
619
+ "type": {
620
+ "text": "object"
621
+ },
622
+ "description": "The object used to localize this component.",
623
+ "attribute": "i18n"
624
+ },
625
+ {
626
+ "kind": "field",
627
+ "name": "indeterminate",
628
+ "privacy": "public",
629
+ "type": {
630
+ "text": "boolean"
631
+ },
632
+ "description": "True if remaining time is unknown, false otherwise.",
633
+ "attribute": "indeterminate"
634
+ },
635
+ {
636
+ "kind": "field",
637
+ "name": "progress",
638
+ "privacy": "public",
639
+ "type": {
640
+ "text": "number"
641
+ },
642
+ "description": "Number representing the uploading progress.",
643
+ "attribute": "progress"
644
+ },
645
+ {
646
+ "kind": "field",
647
+ "name": "status",
648
+ "privacy": "public",
649
+ "type": {
650
+ "text": "string"
651
+ },
652
+ "description": "Uploading status.",
653
+ "attribute": "status"
654
+ },
655
+ {
656
+ "kind": "field",
657
+ "name": "uploading",
658
+ "privacy": "public",
659
+ "type": {
660
+ "text": "boolean"
661
+ },
662
+ "description": "True if uploading is in progress, false otherwise.",
663
+ "attribute": "uploading"
664
+ }
665
+ ],
666
+ "events": [],
667
+ "attributes": [
668
+ {
669
+ "name": "complete",
670
+ "type": {
671
+ "text": "boolean"
672
+ },
673
+ "description": "True if uploading is completed, false otherwise.",
674
+ "fieldName": "complete"
675
+ },
676
+ {
677
+ "name": "disabled",
678
+ "type": {
679
+ "text": "boolean"
680
+ },
681
+ "description": "If true, the user cannot interact with this element.",
682
+ "fieldName": "disabled"
683
+ },
684
+ {
685
+ "name": "error-message",
686
+ "type": {
687
+ "text": "string"
688
+ },
689
+ "description": "Error message returned by the server, if any.",
690
+ "fieldName": "errorMessage"
691
+ },
692
+ {
693
+ "name": "file-name",
694
+ "type": {
695
+ "text": "string"
696
+ },
697
+ "description": "Name of the uploading file.",
698
+ "fieldName": "fileName"
699
+ },
700
+ {
701
+ "name": "held",
702
+ "type": {
703
+ "text": "boolean"
704
+ },
705
+ "description": "True if uploading is not started, false otherwise.",
706
+ "fieldName": "held"
707
+ },
708
+ {
709
+ "name": "indeterminate",
710
+ "type": {
711
+ "text": "boolean"
712
+ },
713
+ "description": "True if remaining time is unknown, false otherwise.",
714
+ "fieldName": "indeterminate"
715
+ },
716
+ {
717
+ "name": "progress",
718
+ "type": {
719
+ "text": "number"
720
+ },
721
+ "description": "Number representing the uploading progress.",
722
+ "fieldName": "progress"
723
+ },
724
+ {
725
+ "name": "status",
726
+ "type": {
727
+ "text": "string"
728
+ },
729
+ "description": "Uploading status.",
730
+ "fieldName": "status"
731
+ },
732
+ {
733
+ "name": "tabindex",
734
+ "type": {
735
+ "text": "number"
736
+ },
737
+ "description": "Indicates whether the element can be focused and where it participates in sequential keyboard navigation.",
738
+ "fieldName": "tabindex"
739
+ },
740
+ {
741
+ "name": "uploading",
742
+ "type": {
743
+ "text": "boolean"
744
+ },
745
+ "description": "True if uploading is in progress, false otherwise.",
746
+ "fieldName": "uploading"
747
+ }
748
+ ],
749
+ "mixins": [
750
+ {
751
+ "name": "FocusMixin",
752
+ "package": "@vaadin/a11y-base/src/focus-mixin.js"
753
+ }
754
+ ],
755
+ "parameters": [
756
+ {
757
+ "name": "superClass"
758
+ }
759
+ ]
760
+ }
761
+ ],
762
+ "exports": [
763
+ {
764
+ "kind": "js",
765
+ "name": "UploadFileMixin",
766
+ "declaration": {
767
+ "name": "UploadFileMixin",
768
+ "module": "src/vaadin-upload-file-mixin.js"
769
+ }
770
+ }
771
+ ]
772
+ },
773
+ {
774
+ "kind": "javascript-module",
775
+ "path": "src/vaadin-upload-file.js",
776
+ "declarations": [
777
+ {
778
+ "kind": "class",
779
+ "description": "`<vaadin-upload-file>` element represents a file in the file list of `<vaadin-upload>`.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-----------------|-------------\n`thumbnail` | Image thumbnail for image files (used with `thumbnails` theme)\n`file-icon` | Generic file icon for non-image files (used with `thumbnails` theme)\n`done-icon` | File done status icon\n`warning-icon` | File warning status icon\n`meta` | Container for file name, status and error messages\n`name` | File name\n`error` | Error message, shown when error happens\n`status` | Status message\n`commands` | Container for file command buttons\n`start-button` | Start file upload button\n`retry-button` | Retry file upload button\n`remove-button` | Remove file button\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|-------------\n`disabled` | Set when the element is disabled\n`focus-ring` | Set when the element is focused using the keyboard.\n`focused` | Set when the element is focused.\n`error` | An error has happened during uploading.\n`indeterminate` | Uploading is in progress, but the progress value is unknown.\n`uploading` | Uploading is in progress.\n`complete` | Uploading has finished successfully.\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:--------------------------------------------|\n`--vaadin-upload-file-border-radius` |\n`--vaadin-upload-file-button-background` |\n`--vaadin-upload-file-button-border-color` |\n`--vaadin-upload-file-button-border-radius` |\n`--vaadin-upload-file-button-border-width` |\n`--vaadin-upload-file-button-text-color` |\n`--vaadin-upload-file-button-padding` |\n`--vaadin-upload-file-done-color` |\n`--vaadin-upload-file-error-color` |\n`--vaadin-upload-file-error-font-size` |\n`--vaadin-upload-file-error-font-weight` |\n`--vaadin-upload-file-error-line-height` |\n`--vaadin-upload-file-gap` |\n`--vaadin-upload-file-name-color` |\n`--vaadin-upload-file-name-font-size` |\n`--vaadin-upload-file-name-font-weight` |\n`--vaadin-upload-file-name-line-height` |\n`--vaadin-upload-file-padding` |\n`--vaadin-upload-file-status-color` |\n`--vaadin-upload-file-status-font-size` |\n`--vaadin-upload-file-status-font-weight` |\n`--vaadin-upload-file-status-line-height` |\n`--vaadin-upload-file-warning-color` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
780
+ "name": "UploadFile",
781
+ "members": [
782
+ {
783
+ "kind": "field",
784
+ "name": "complete",
785
+ "privacy": "public",
786
+ "type": {
787
+ "text": "boolean"
788
+ },
789
+ "description": "True if uploading is completed, false otherwise.",
790
+ "attribute": "complete",
791
+ "inheritedFrom": {
792
+ "name": "UploadFileMixin",
793
+ "module": "src/vaadin-upload-file-mixin.js"
794
+ }
795
+ },
796
+ {
797
+ "kind": "field",
798
+ "name": "disabled",
799
+ "privacy": "public",
800
+ "type": {
801
+ "text": "boolean"
802
+ },
803
+ "description": "If true, the user cannot interact with this element.",
804
+ "attribute": "disabled",
805
+ "inheritedFrom": {
806
+ "name": "UploadFileMixin",
807
+ "module": "src/vaadin-upload-file-mixin.js"
808
+ }
809
+ },
810
+ {
811
+ "kind": "field",
812
+ "name": "errorMessage",
813
+ "privacy": "public",
814
+ "type": {
815
+ "text": "string"
816
+ },
817
+ "description": "Error message returned by the server, if any.",
818
+ "attribute": "error-message",
819
+ "inheritedFrom": {
820
+ "name": "UploadFileMixin",
821
+ "module": "src/vaadin-upload-file-mixin.js"
822
+ }
823
+ },
824
+ {
825
+ "kind": "field",
826
+ "name": "file",
827
+ "privacy": "public",
828
+ "type": {
829
+ "text": "object"
830
+ },
831
+ "description": "The object representing a file.",
832
+ "attribute": "file",
833
+ "inheritedFrom": {
834
+ "name": "UploadFileMixin",
835
+ "module": "src/vaadin-upload-file-mixin.js"
836
+ }
837
+ },
838
+ {
839
+ "kind": "field",
840
+ "name": "fileName",
841
+ "privacy": "public",
842
+ "type": {
843
+ "text": "string"
844
+ },
845
+ "description": "Name of the uploading file.",
846
+ "attribute": "file-name",
847
+ "inheritedFrom": {
848
+ "name": "UploadFileMixin",
849
+ "module": "src/vaadin-upload-file-mixin.js"
850
+ }
851
+ },
852
+ {
853
+ "kind": "field",
854
+ "name": "held",
855
+ "privacy": "public",
856
+ "type": {
857
+ "text": "boolean"
858
+ },
859
+ "description": "True if uploading is not started, false otherwise.",
860
+ "attribute": "held",
861
+ "inheritedFrom": {
862
+ "name": "UploadFileMixin",
863
+ "module": "src/vaadin-upload-file-mixin.js"
864
+ }
865
+ },
866
+ {
867
+ "kind": "field",
868
+ "name": "i18n",
869
+ "privacy": "public",
870
+ "type": {
871
+ "text": "object"
872
+ },
873
+ "description": "The object used to localize this component.",
874
+ "attribute": "i18n",
875
+ "inheritedFrom": {
876
+ "name": "UploadFileMixin",
877
+ "module": "src/vaadin-upload-file-mixin.js"
878
+ }
879
+ },
880
+ {
881
+ "kind": "field",
882
+ "name": "indeterminate",
883
+ "privacy": "public",
884
+ "type": {
885
+ "text": "boolean"
886
+ },
887
+ "description": "True if remaining time is unknown, false otherwise.",
888
+ "attribute": "indeterminate",
889
+ "inheritedFrom": {
890
+ "name": "UploadFileMixin",
891
+ "module": "src/vaadin-upload-file-mixin.js"
892
+ }
893
+ },
894
+ {
895
+ "kind": "field",
896
+ "name": "progress",
897
+ "privacy": "public",
898
+ "type": {
899
+ "text": "number"
900
+ },
901
+ "description": "Number representing the uploading progress.",
902
+ "attribute": "progress",
903
+ "inheritedFrom": {
904
+ "name": "UploadFileMixin",
905
+ "module": "src/vaadin-upload-file-mixin.js"
906
+ }
907
+ },
908
+ {
909
+ "kind": "field",
910
+ "name": "status",
911
+ "privacy": "public",
912
+ "type": {
913
+ "text": "string"
914
+ },
915
+ "description": "Uploading status.",
916
+ "attribute": "status",
917
+ "inheritedFrom": {
918
+ "name": "UploadFileMixin",
919
+ "module": "src/vaadin-upload-file-mixin.js"
920
+ }
921
+ },
922
+ {
923
+ "kind": "field",
924
+ "name": "uploading",
925
+ "privacy": "public",
926
+ "type": {
927
+ "text": "boolean"
928
+ },
929
+ "description": "True if uploading is in progress, false otherwise.",
930
+ "attribute": "uploading",
931
+ "inheritedFrom": {
932
+ "name": "UploadFileMixin",
933
+ "module": "src/vaadin-upload-file-mixin.js"
934
+ }
935
+ }
936
+ ],
937
+ "mixins": [
938
+ {
939
+ "name": "UploadFileMixin",
940
+ "module": "src/vaadin-upload-file-mixin.js"
941
+ },
942
+ {
943
+ "name": "ThemableMixin",
944
+ "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
945
+ },
946
+ {
947
+ "name": "PolylitMixin",
948
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
949
+ },
950
+ {
951
+ "name": "LumoInjectionMixin",
952
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
953
+ }
954
+ ],
955
+ "superclass": {
956
+ "name": "LitElement",
957
+ "package": "lit"
958
+ },
959
+ "tagName": "vaadin-upload-file",
960
+ "customElement": true,
961
+ "attributes": [
962
+ {
963
+ "name": "complete",
964
+ "type": {
965
+ "text": "boolean"
966
+ },
967
+ "description": "True if uploading is completed, false otherwise.",
968
+ "fieldName": "complete",
969
+ "inheritedFrom": {
970
+ "name": "UploadFileMixin",
971
+ "module": "src/vaadin-upload-file-mixin.js"
972
+ }
973
+ },
974
+ {
975
+ "name": "disabled",
976
+ "type": {
977
+ "text": "boolean"
978
+ },
979
+ "description": "If true, the user cannot interact with this element.",
980
+ "fieldName": "disabled",
981
+ "inheritedFrom": {
982
+ "name": "UploadFileMixin",
983
+ "module": "src/vaadin-upload-file-mixin.js"
984
+ }
985
+ },
986
+ {
987
+ "name": "error-message",
988
+ "type": {
989
+ "text": "string"
990
+ },
991
+ "description": "Error message returned by the server, if any.",
992
+ "fieldName": "errorMessage",
993
+ "inheritedFrom": {
994
+ "name": "UploadFileMixin",
995
+ "module": "src/vaadin-upload-file-mixin.js"
996
+ }
997
+ },
998
+ {
999
+ "name": "file-name",
1000
+ "type": {
1001
+ "text": "string"
1002
+ },
1003
+ "description": "Name of the uploading file.",
1004
+ "fieldName": "fileName",
1005
+ "inheritedFrom": {
1006
+ "name": "UploadFileMixin",
1007
+ "module": "src/vaadin-upload-file-mixin.js"
1008
+ }
1009
+ },
1010
+ {
1011
+ "name": "held",
1012
+ "type": {
1013
+ "text": "boolean"
1014
+ },
1015
+ "description": "True if uploading is not started, false otherwise.",
1016
+ "fieldName": "held",
1017
+ "inheritedFrom": {
1018
+ "name": "UploadFileMixin",
1019
+ "module": "src/vaadin-upload-file-mixin.js"
1020
+ }
1021
+ },
1022
+ {
1023
+ "name": "indeterminate",
1024
+ "type": {
1025
+ "text": "boolean"
1026
+ },
1027
+ "description": "True if remaining time is unknown, false otherwise.",
1028
+ "fieldName": "indeterminate",
1029
+ "inheritedFrom": {
1030
+ "name": "UploadFileMixin",
1031
+ "module": "src/vaadin-upload-file-mixin.js"
1032
+ }
1033
+ },
1034
+ {
1035
+ "name": "progress",
1036
+ "type": {
1037
+ "text": "number"
1038
+ },
1039
+ "description": "Number representing the uploading progress.",
1040
+ "fieldName": "progress",
1041
+ "inheritedFrom": {
1042
+ "name": "UploadFileMixin",
1043
+ "module": "src/vaadin-upload-file-mixin.js"
1044
+ }
1045
+ },
1046
+ {
1047
+ "name": "status",
1048
+ "type": {
1049
+ "text": "string"
1050
+ },
1051
+ "description": "Uploading status.",
1052
+ "fieldName": "status",
1053
+ "inheritedFrom": {
1054
+ "name": "UploadFileMixin",
1055
+ "module": "src/vaadin-upload-file-mixin.js"
1056
+ }
1057
+ },
1058
+ {
1059
+ "name": "tabindex",
1060
+ "type": {
1061
+ "text": "number"
1062
+ },
1063
+ "description": "Indicates whether the element can be focused and where it participates in sequential keyboard navigation.",
1064
+ "fieldName": "tabindex",
1065
+ "inheritedFrom": {
1066
+ "name": "UploadFileMixin",
1067
+ "module": "src/vaadin-upload-file-mixin.js"
1068
+ }
1069
+ },
1070
+ {
1071
+ "name": "uploading",
1072
+ "type": {
1073
+ "text": "boolean"
1074
+ },
1075
+ "description": "True if uploading is in progress, false otherwise.",
1076
+ "fieldName": "uploading",
1077
+ "inheritedFrom": {
1078
+ "name": "UploadFileMixin",
1079
+ "module": "src/vaadin-upload-file-mixin.js"
1080
+ }
1081
+ }
1082
+ ],
1083
+ "events": []
1084
+ }
1085
+ ],
1086
+ "exports": [
1087
+ {
1088
+ "kind": "js",
1089
+ "name": "UploadFile",
1090
+ "declaration": {
1091
+ "name": "UploadFile",
1092
+ "module": "src/vaadin-upload-file.js"
1093
+ }
1094
+ }
1095
+ ]
1096
+ },
1097
+ {
1098
+ "kind": "javascript-module",
1099
+ "path": "src/vaadin-upload-helpers.js",
1100
+ "declarations": [
1101
+ {
1102
+ "kind": "function",
1103
+ "name": "getFilesFromDropEvent",
1104
+ "parameters": [
1105
+ {
1106
+ "name": "dropEvent",
1107
+ "description": "The drop event",
1108
+ "type": {
1109
+ "text": "DragEvent"
1110
+ }
1111
+ }
1112
+ ],
1113
+ "description": "Get the files from the drop event. The dropped items may contain a\ncombination of files and directories. If a dropped item is a directory,\nit will be recursively traversed to get all files.",
1114
+ "return": {
1115
+ "type": {
1116
+ "text": "Promise<File[]>"
1117
+ }
1118
+ },
1119
+ "privacy": "private"
1120
+ }
1121
+ ],
1122
+ "exports": [
1123
+ {
1124
+ "kind": "js",
1125
+ "name": "getFilesFromDropEvent",
1126
+ "declaration": {
1127
+ "name": "getFilesFromDropEvent",
1128
+ "module": "src/vaadin-upload-helpers.js"
1129
+ }
1130
+ }
1131
+ ]
1132
+ },
1133
+ {
1134
+ "kind": "javascript-module",
1135
+ "path": "src/vaadin-upload-icon.js",
1136
+ "declarations": [
1137
+ {
1138
+ "kind": "class",
1139
+ "description": "An element used internally by `<vaadin-upload>`. Not intended to be used separately.",
1140
+ "name": "UploadIcon",
1141
+ "members": [],
1142
+ "mixins": [
1143
+ {
1144
+ "name": "ThemableMixin",
1145
+ "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
1146
+ },
1147
+ {
1148
+ "name": "LumoInjectionMixin",
1149
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
1150
+ }
1151
+ ],
1152
+ "superclass": {
1153
+ "name": "LitElement",
1154
+ "package": "lit"
1155
+ },
1156
+ "tagName": "vaadin-upload-icon",
1157
+ "customElement": true
1158
+ }
1159
+ ],
1160
+ "exports": [
1161
+ {
1162
+ "kind": "js",
1163
+ "name": "UploadIcon",
1164
+ "declaration": {
1165
+ "name": "UploadIcon",
1166
+ "module": "src/vaadin-upload-icon.js"
1167
+ }
1168
+ }
1169
+ ]
1170
+ },
1171
+ {
1172
+ "kind": "javascript-module",
1173
+ "path": "src/vaadin-upload-icons.js",
1174
+ "declarations": [],
1175
+ "exports": []
1176
+ },
1177
+ {
1178
+ "kind": "javascript-module",
1179
+ "path": "src/vaadin-upload-manager.js",
1180
+ "declarations": [
1181
+ {
1182
+ "kind": "class",
1183
+ "description": "A pure JavaScript class that manages file upload state and XHR requests.\nIt has no knowledge of UI components - components should listen to events and\ncall methods to interact with the manager.\n\n**Note:** This class is experimental and requires the `modularUpload` or `aiComponents` feature flag to be enabled:\n```javascript\nwindow.Vaadin.featureFlags.modularUpload = true;\n```",
1184
+ "name": "UploadManager",
1185
+ "members": [
1186
+ {
1187
+ "kind": "method",
1188
+ "name": "abortUpload",
1189
+ "parameters": [
1190
+ {
1191
+ "name": "file",
1192
+ "description": "The file to abort",
1193
+ "type": {
1194
+ "text": "UploadFile"
1195
+ }
1196
+ }
1197
+ ],
1198
+ "description": "Abort an upload."
1199
+ },
1200
+ {
1201
+ "kind": "field",
1202
+ "name": "accept"
1203
+ },
1204
+ {
1205
+ "kind": "method",
1206
+ "name": "addFiles",
1207
+ "parameters": [
1208
+ {
1209
+ "name": "files",
1210
+ "description": "Files to add",
1211
+ "type": {
1212
+ "text": "FileList|File[]"
1213
+ }
1214
+ }
1215
+ ],
1216
+ "description": "Add files to the upload list."
1217
+ },
1218
+ {
1219
+ "kind": "field",
1220
+ "name": "disabled",
1221
+ "description": "Whether the upload manager is disabled.\nWhen true, connected components (upload-button, upload-drop-zone) will be automatically disabled.",
1222
+ "type": {
1223
+ "text": "boolean"
1224
+ }
1225
+ },
1226
+ {
1227
+ "kind": "field",
1228
+ "name": "files",
1229
+ "description": "The array of files being processed, or already uploaded.\n\nEach element is a [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File)\nobject with a number of extra properties to track the upload process:\n- `uploadTarget`: The target URL used to upload this file.\n- `elapsed`: Elapsed time since the upload started.\n- `remaining`: Number of seconds remaining for the upload to finish.\n- `progress`: Percentage of the file already uploaded.\n- `speed`: Upload speed in kB/s.\n- `size`: File size in bytes.\n- `total`: The total size of the data being transmitted or processed\n- `loaded`: Bytes transferred so far.\n- `status`: Status of the upload process.\n- `errorKey`: Error key in case the upload failed.\n- `abort`: True if the file was canceled by the user.\n- `complete`: True when the file was transferred to the server.\n- `uploading`: True while transferring data to the server.\n\n**Note:** The getter returns a shallow copy of the internal array to prevent\nexternal mutation. Modifying the returned array will not affect the manager's state.\n\n**Note:** The setter validates files against maxFiles, maxFileSize, and accept constraints.\nFiles that fail validation will be rejected with a 'file-reject' event.",
1230
+ "type": {
1231
+ "text": "Array<UploadFile>"
1232
+ }
1233
+ },
1234
+ {
1235
+ "kind": "field",
1236
+ "name": "formDataName"
1237
+ },
1238
+ {
1239
+ "kind": "field",
1240
+ "name": "headers",
1241
+ "description": "Key-Value map to send to the server.",
1242
+ "type": {
1243
+ "text": "Record<string, string>"
1244
+ }
1245
+ },
1246
+ {
1247
+ "kind": "field",
1248
+ "name": "maxConcurrentUploads",
1249
+ "description": "Maximum number of files that can be uploaded simultaneously.",
1250
+ "type": {
1251
+ "text": "number"
1252
+ }
1253
+ },
1254
+ {
1255
+ "kind": "field",
1256
+ "name": "maxFiles",
1257
+ "description": "Limit of files to upload, by default it is unlimited.",
1258
+ "type": {
1259
+ "text": "number"
1260
+ }
1261
+ },
1262
+ {
1263
+ "kind": "field",
1264
+ "name": "maxFileSize"
1265
+ },
1266
+ {
1267
+ "kind": "field",
1268
+ "name": "maxFilesReached",
1269
+ "description": "Specifies if the maximum number of files have been uploaded.",
1270
+ "type": {
1271
+ "text": "boolean"
1272
+ },
1273
+ "readonly": true
1274
+ },
1275
+ {
1276
+ "kind": "field",
1277
+ "name": "method",
1278
+ "description": "HTTP Method used to send the files. Only POST and PUT are allowed.",
1279
+ "type": {
1280
+ "text": "string"
1281
+ }
1282
+ },
1283
+ {
1284
+ "kind": "field",
1285
+ "name": "noAuto"
1286
+ },
1287
+ {
1288
+ "kind": "method",
1289
+ "name": "removeFile",
1290
+ "parameters": [
1291
+ {
1292
+ "name": "file",
1293
+ "description": "The file to remove",
1294
+ "type": {
1295
+ "text": "UploadFile"
1296
+ }
1297
+ }
1298
+ ],
1299
+ "description": "Remove a file from the list."
1300
+ },
1301
+ {
1302
+ "kind": "method",
1303
+ "name": "retryUpload",
1304
+ "parameters": [
1305
+ {
1306
+ "name": "file",
1307
+ "description": "The file to retry",
1308
+ "type": {
1309
+ "text": "UploadFile"
1310
+ }
1311
+ }
1312
+ ],
1313
+ "description": "Retry a failed upload."
1314
+ },
1315
+ {
1316
+ "kind": "field",
1317
+ "name": "target"
1318
+ },
1319
+ {
1320
+ "kind": "field",
1321
+ "name": "timeout"
1322
+ },
1323
+ {
1324
+ "kind": "method",
1325
+ "name": "uploadFiles",
1326
+ "parameters": [
1327
+ {
1328
+ "name": "files",
1329
+ "default": "this.#files",
1330
+ "description": "Files being uploaded. Defaults to all outstanding files.",
1331
+ "optional": true,
1332
+ "type": {
1333
+ "text": "UploadFile|UploadFile[]"
1334
+ }
1335
+ }
1336
+ ],
1337
+ "description": "Triggers the upload of any files that are not completed."
1338
+ },
1339
+ {
1340
+ "kind": "field",
1341
+ "name": "uploadFormat"
1342
+ },
1343
+ {
1344
+ "kind": "field",
1345
+ "name": "withCredentials"
1346
+ }
1347
+ ],
1348
+ "events": [
1349
+ {
1350
+ "type": {
1351
+ "text": "CustomEvent"
1352
+ },
1353
+ "description": "Fired when disabled changes",
1354
+ "name": "disabled-changed"
1355
+ },
1356
+ {
1357
+ "name": "eventName",
1358
+ "type": {
1359
+ "text": "CustomEvent"
1360
+ }
1361
+ },
1362
+ {
1363
+ "name": "file-reject",
1364
+ "type": {
1365
+ "text": "CustomEvent"
1366
+ },
1367
+ "description": "Fired when a file cannot be added due to constraints"
1368
+ },
1369
+ {
1370
+ "name": "file-remove",
1371
+ "type": {
1372
+ "text": "CustomEvent"
1373
+ },
1374
+ "description": "Fired when a file is removed from the list"
1375
+ },
1376
+ {
1377
+ "name": "files-changed",
1378
+ "type": {
1379
+ "text": "CustomEvent"
1380
+ },
1381
+ "description": "Fired when the files array changes"
1382
+ },
1383
+ {
1384
+ "name": "max-files-reached-changed",
1385
+ "type": {
1386
+ "text": "CustomEvent"
1387
+ },
1388
+ "description": "Fired when maxFilesReached changes"
1389
+ },
1390
+ {
1391
+ "name": "upload-abort",
1392
+ "type": {
1393
+ "text": "CustomEvent"
1394
+ },
1395
+ "description": "Fired when abort is requested"
1396
+ },
1397
+ {
1398
+ "name": "upload-before",
1399
+ "type": {
1400
+ "text": "CustomEvent"
1401
+ },
1402
+ "description": "Fired before the XHR is opened (can modify uploadTarget)"
1403
+ },
1404
+ {
1405
+ "name": "upload-error",
1406
+ "type": {
1407
+ "text": "CustomEvent"
1408
+ },
1409
+ "description": "Fired on upload error"
1410
+ },
1411
+ {
1412
+ "name": "upload-progress",
1413
+ "type": {
1414
+ "text": "CustomEvent"
1415
+ },
1416
+ "description": "Fired during upload progress"
1417
+ },
1418
+ {
1419
+ "name": "upload-request",
1420
+ "type": {
1421
+ "text": "CustomEvent"
1422
+ },
1423
+ "description": "Fired after the XHR is opened (can modify FormData/headers)"
1424
+ },
1425
+ {
1426
+ "name": "upload-response",
1427
+ "type": {
1428
+ "text": "CustomEvent"
1429
+ },
1430
+ "description": "Fired when response is received"
1431
+ },
1432
+ {
1433
+ "name": "upload-retry",
1434
+ "type": {
1435
+ "text": "CustomEvent"
1436
+ },
1437
+ "description": "Fired when retry is requested"
1438
+ },
1439
+ {
1440
+ "name": "upload-start",
1441
+ "type": {
1442
+ "text": "CustomEvent"
1443
+ },
1444
+ "description": "Fired when the upload starts"
1445
+ },
1446
+ {
1447
+ "type": {
1448
+ "text": "CustomEvent"
1449
+ },
1450
+ "description": "Fired on successful upload",
1451
+ "name": "upload-success"
1452
+ }
1453
+ ],
1454
+ "superclass": {
1455
+ "name": "EventTarget",
1456
+ "module": "src/vaadin-upload-manager.js"
1457
+ }
1458
+ },
1459
+ {
1460
+ "kind": "variable",
1461
+ "name": "xhr",
1462
+ "default": "(file.xhr = this._createXhr())"
1463
+ },
1464
+ {
1465
+ "kind": "variable",
1466
+ "name": "requestBody"
1467
+ }
1468
+ ],
1469
+ "exports": [
1470
+ {
1471
+ "kind": "js",
1472
+ "name": "UploadManager",
1473
+ "declaration": {
1474
+ "name": "UploadManager",
1475
+ "module": "src/vaadin-upload-manager.js"
1476
+ }
1477
+ }
1478
+ ]
1479
+ },
1480
+ {
1481
+ "kind": "javascript-module",
1482
+ "path": "src/vaadin-upload-mixin.js",
1483
+ "declarations": [
1484
+ {
1485
+ "kind": "variable",
1486
+ "name": "DEFAULT_I18N",
1487
+ "type": {
1488
+ "text": "object"
1489
+ },
1490
+ "default": "{ dropFiles: { one: 'Drop file here', many: 'Drop files here', }, addFiles: { one: 'Upload File...', many: 'Upload Files...', }, error: { tooManyFiles: 'Too Many Files.', fileIsTooBig: 'File is Too Big.', incorrectFileType: 'Incorrect File Type.', }, uploading: { status: { connecting: 'Connecting...', stalled: 'Stalled', processing: 'Processing File...', held: 'Queued', }, remainingTime: { prefix: 'remaining time: ', unknown: 'unknown remaining time', }, error: { serverUnavailable: 'Upload failed, please try again later', unexpectedServerError: 'Upload failed due to server error', forbidden: 'Upload forbidden', }, }, file: { retry: 'Retry', start: 'Start', remove: 'Remove', }, units: { size: ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], }, }"
1491
+ },
1492
+ {
1493
+ "kind": "mixin",
1494
+ "description": "",
1495
+ "name": "UploadMixin",
1496
+ "members": [
1497
+ {
1498
+ "kind": "field",
1499
+ "name": "accept",
1500
+ "privacy": "public",
1501
+ "type": {
1502
+ "text": "string"
1503
+ },
1504
+ "description": "Specifies the types of files that the server accepts.\nSyntax: a comma-separated list of MIME type patterns (wildcards are\nallowed) or file extensions.\nNotice that MIME types are widely supported, while file extensions\nare only implemented in certain browsers, so avoid using it.\nExample: accept=\"video/*,image/tiff\" or accept=\".pdf,audio/mp3\"",
1505
+ "attribute": "accept"
1506
+ },
1507
+ {
1508
+ "kind": "field",
1509
+ "name": "capture",
1510
+ "privacy": "public",
1511
+ "description": "Pass-through to input's capture attribute. Allows user to trigger device inputs\nsuch as camera or microphone immediately.",
1512
+ "attribute": "capture"
1513
+ },
1514
+ {
1515
+ "kind": "field",
1516
+ "name": "disabled",
1517
+ "privacy": "public",
1518
+ "type": {
1519
+ "text": "boolean"
1520
+ },
1521
+ "description": "If true, the user cannot interact with this element.",
1522
+ "attribute": "disabled"
1523
+ },
1524
+ {
1525
+ "kind": "field",
1526
+ "name": "files",
1527
+ "privacy": "public",
1528
+ "type": {
1529
+ "text": "!Array<!UploadFile>"
1530
+ },
1531
+ "description": "The array of files being processed, or already uploaded.\n\nEach element is a [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File)\nobject with a number of extra properties to track the upload process:\n- `uploadTarget`: The target URL used to upload this file.\n- `elapsed`: Elapsed time since the upload started.\n- `elapsedStr`: Human-readable elapsed time.\n- `remaining`: Number of seconds remaining for the upload to finish.\n- `remainingStr`: Human-readable remaining time for the upload to finish.\n- `progress`: Percentage of the file already uploaded.\n- `speed`: Upload speed in kB/s.\n- `size`: File size in bytes.\n- `totalStr`: Human-readable total size of the file.\n- `loaded`: Bytes transferred so far.\n- `loadedStr`: Human-readable uploaded size at the moment.\n- `status`: Status of the upload process.\n- `error`: Error message in case the upload failed.\n- `abort`: True if the file was canceled by the user.\n- `complete`: True when the file was transferred to the server.\n- `uploading`: True while transferring data to the server.",
1532
+ "attribute": "files"
1533
+ },
1534
+ {
1535
+ "kind": "field",
1536
+ "name": "formDataName",
1537
+ "privacy": "public",
1538
+ "type": {
1539
+ "text": "string"
1540
+ },
1541
+ "description": "Specifies the 'name' property at Content-Disposition for multipart uploads.\nThis property is ignored when uploadFormat is 'raw'.",
1542
+ "attribute": "form-data-name"
1543
+ },
1544
+ {
1545
+ "kind": "field",
1546
+ "name": "headers",
1547
+ "privacy": "public",
1548
+ "type": {
1549
+ "text": "object | string"
1550
+ },
1551
+ "description": "Key-Value map to send to the server. If you set this property as an\nattribute, use a valid JSON string, for example:\n```html\n<vaadin-upload headers='{\"X-Foo\": \"Bar\"}'></vaadin-upload>\n```",
1552
+ "attribute": "headers"
1553
+ },
1554
+ {
1555
+ "kind": "field",
1556
+ "name": "maxConcurrentUploads",
1557
+ "privacy": "public",
1558
+ "type": {
1559
+ "text": "number"
1560
+ },
1561
+ "description": "Specifies the maximum number of files that can be uploaded simultaneously.\nThis helps prevent browser performance degradation and XHR limitations when\nuploading large numbers of files. Files exceeding this limit will be queued\nand uploaded as active uploads complete.",
1562
+ "attribute": "max-concurrent-uploads"
1563
+ },
1564
+ {
1565
+ "kind": "field",
1566
+ "name": "maxFiles",
1567
+ "privacy": "public",
1568
+ "type": {
1569
+ "text": "number"
1570
+ },
1571
+ "description": "Limit of files to upload, by default it is unlimited. If the value is\nset to one, native file browser will prevent selecting multiple files.",
1572
+ "attribute": "max-files"
1573
+ },
1574
+ {
1575
+ "kind": "field",
1576
+ "name": "maxFileSize",
1577
+ "privacy": "public",
1578
+ "type": {
1579
+ "text": "number"
1580
+ },
1581
+ "description": "Specifies the maximum file size in bytes allowed to upload.\nNotice that it is a client-side constraint, which will be checked before\nsending the request. Obviously you need to do the same validation in\nthe server-side and be sure that they are aligned.",
1582
+ "attribute": "max-file-size"
1583
+ },
1584
+ {
1585
+ "kind": "field",
1586
+ "name": "maxFilesReached",
1587
+ "privacy": "public",
1588
+ "type": {
1589
+ "text": "boolean"
1590
+ },
1591
+ "description": "Specifies if the maximum number of files have been uploaded",
1592
+ "attribute": "max-files-reached"
1593
+ },
1594
+ {
1595
+ "kind": "field",
1596
+ "name": "method",
1597
+ "privacy": "public",
1598
+ "type": {
1599
+ "text": "!UploadMethod"
1600
+ },
1601
+ "description": "HTTP Method used to send the files. Only POST and PUT are allowed.",
1602
+ "attribute": "method"
1603
+ },
1604
+ {
1605
+ "kind": "field",
1606
+ "name": "noAuto",
1607
+ "privacy": "public",
1608
+ "type": {
1609
+ "text": "boolean"
1610
+ },
1611
+ "description": "Prevents upload(s) from immediately uploading upon adding file(s).\nWhen set, you must manually trigger uploads using the `uploadFiles` method",
1612
+ "attribute": "no-auto"
1613
+ },
1614
+ {
1615
+ "kind": "field",
1616
+ "name": "nodrop",
1617
+ "privacy": "public",
1618
+ "type": {
1619
+ "text": "boolean"
1620
+ },
1621
+ "description": "Define whether the element supports dropping files on it for uploading.\nBy default it's enabled in desktop and disabled in touch devices\nbecause mobile devices do not support drag events in general. Setting\nit false means that drop is enabled even in touch-devices, and true\ndisables drop in all devices.",
1622
+ "default": "true in touch-devices, false otherwise.",
1623
+ "attribute": "nodrop"
1624
+ },
1625
+ {
1626
+ "kind": "field",
1627
+ "name": "target",
1628
+ "privacy": "public",
1629
+ "type": {
1630
+ "text": "string"
1631
+ },
1632
+ "description": "The server URL. The default value is an empty string, which means that\n_window.location_ will be used.",
1633
+ "attribute": "target"
1634
+ },
1635
+ {
1636
+ "kind": "field",
1637
+ "name": "timeout",
1638
+ "privacy": "public",
1639
+ "type": {
1640
+ "text": "number"
1641
+ },
1642
+ "description": "Max time in milliseconds for the entire upload process, if exceeded the\nrequest will be aborted. Zero means that there is no timeout.",
1643
+ "attribute": "timeout"
1644
+ },
1645
+ {
1646
+ "kind": "method",
1647
+ "name": "uploadFiles",
1648
+ "parameters": [
1649
+ {
1650
+ "name": "files",
1651
+ "default": "this.files",
1652
+ "description": "Files being uploaded. Defaults to all outstanding files",
1653
+ "type": {
1654
+ "text": "!UploadFile | !Array<!UploadFile>="
1655
+ }
1656
+ }
1657
+ ],
1658
+ "description": "Triggers the upload of any files that are not completed"
1659
+ },
1660
+ {
1661
+ "kind": "field",
1662
+ "name": "uploadFormat",
1663
+ "privacy": "public",
1664
+ "type": {
1665
+ "text": "string"
1666
+ },
1667
+ "description": "Specifies the upload format to use when sending files to the server.\n- 'raw': Send file as raw binary data with the file's MIME type as Content-Type (default)\n- 'multipart': Send file using multipart/form-data encoding",
1668
+ "attribute": "upload-format"
1669
+ },
1670
+ {
1671
+ "kind": "field",
1672
+ "name": "withCredentials",
1673
+ "privacy": "public",
1674
+ "type": {
1675
+ "text": "boolean"
1676
+ },
1677
+ "description": "Set the withCredentials flag on the request.",
1678
+ "attribute": "with-credentials"
1679
+ }
1680
+ ],
1681
+ "events": [
1682
+ {
1683
+ "name": "file-reject",
1684
+ "type": {
1685
+ "text": "CustomEvent"
1686
+ }
1687
+ },
1688
+ {
1689
+ "name": "file-remove",
1690
+ "type": {
1691
+ "text": "CustomEvent"
1692
+ }
1693
+ },
1694
+ {
1695
+ "name": "upload-abort",
1696
+ "type": {
1697
+ "text": "CustomEvent"
1698
+ }
1699
+ },
1700
+ {
1701
+ "name": "upload-before",
1702
+ "type": {
1703
+ "text": "CustomEvent"
1704
+ }
1705
+ },
1706
+ {
1707
+ "name": "upload-progress",
1708
+ "type": {
1709
+ "text": "CustomEvent"
1710
+ }
1711
+ },
1712
+ {
1713
+ "name": "upload-request",
1714
+ "type": {
1715
+ "text": "CustomEvent"
1716
+ }
1717
+ },
1718
+ {
1719
+ "name": "upload-response",
1720
+ "type": {
1721
+ "text": "CustomEvent"
1722
+ }
1723
+ },
1724
+ {
1725
+ "name": "upload-retry",
1726
+ "type": {
1727
+ "text": "CustomEvent"
1728
+ }
1729
+ },
1730
+ {
1731
+ "name": "upload-start",
1732
+ "type": {
1733
+ "text": "CustomEvent"
1734
+ }
1735
+ }
1736
+ ],
1737
+ "attributes": [
1738
+ {
1739
+ "name": "accept",
1740
+ "type": {
1741
+ "text": "string"
1742
+ },
1743
+ "description": "Specifies the types of files that the server accepts.\nSyntax: a comma-separated list of MIME type patterns (wildcards are\nallowed) or file extensions.\nNotice that MIME types are widely supported, while file extensions\nare only implemented in certain browsers, so avoid using it.\nExample: accept=\"video/*,image/tiff\" or accept=\".pdf,audio/mp3\"",
1744
+ "fieldName": "accept"
1745
+ },
1746
+ {
1747
+ "name": "capture",
1748
+ "description": "Pass-through to input's capture attribute. Allows user to trigger device inputs\nsuch as camera or microphone immediately.",
1749
+ "fieldName": "capture"
1750
+ },
1751
+ {
1752
+ "name": "disabled",
1753
+ "type": {
1754
+ "text": "boolean"
1755
+ },
1756
+ "description": "If true, the user cannot interact with this element.",
1757
+ "fieldName": "disabled"
1758
+ },
1759
+ {
1760
+ "name": "form-data-name",
1761
+ "type": {
1762
+ "text": "string"
1763
+ },
1764
+ "description": "Specifies the 'name' property at Content-Disposition for multipart uploads.\nThis property is ignored when uploadFormat is 'raw'.",
1765
+ "fieldName": "formDataName"
1766
+ },
1767
+ {
1768
+ "name": "max-concurrent-uploads",
1769
+ "type": {
1770
+ "text": "number"
1771
+ },
1772
+ "description": "Specifies the maximum number of files that can be uploaded simultaneously.\nThis helps prevent browser performance degradation and XHR limitations when\nuploading large numbers of files. Files exceeding this limit will be queued\nand uploaded as active uploads complete.",
1773
+ "fieldName": "maxConcurrentUploads"
1774
+ },
1775
+ {
1776
+ "name": "max-file-size",
1777
+ "type": {
1778
+ "text": "number"
1779
+ },
1780
+ "description": "Specifies the maximum file size in bytes allowed to upload.\nNotice that it is a client-side constraint, which will be checked before\nsending the request. Obviously you need to do the same validation in\nthe server-side and be sure that they are aligned.",
1781
+ "fieldName": "maxFileSize"
1782
+ },
1783
+ {
1784
+ "name": "max-files",
1785
+ "type": {
1786
+ "text": "number"
1787
+ },
1788
+ "description": "Limit of files to upload, by default it is unlimited. If the value is\nset to one, native file browser will prevent selecting multiple files.",
1789
+ "fieldName": "maxFiles"
1790
+ },
1791
+ {
1792
+ "name": "max-files-reached",
1793
+ "type": {
1794
+ "text": "boolean"
1795
+ },
1796
+ "description": "Specifies if the maximum number of files have been uploaded",
1797
+ "fieldName": "maxFilesReached"
1798
+ },
1799
+ {
1800
+ "name": "method",
1801
+ "type": {
1802
+ "text": "!UploadMethod"
1803
+ },
1804
+ "description": "HTTP Method used to send the files. Only POST and PUT are allowed.",
1805
+ "fieldName": "method"
1806
+ },
1807
+ {
1808
+ "name": "no-auto",
1809
+ "type": {
1810
+ "text": "boolean"
1811
+ },
1812
+ "description": "Prevents upload(s) from immediately uploading upon adding file(s).\nWhen set, you must manually trigger uploads using the `uploadFiles` method",
1813
+ "fieldName": "noAuto"
1814
+ },
1815
+ {
1816
+ "name": "nodrop",
1817
+ "type": {
1818
+ "text": "boolean"
1819
+ },
1820
+ "description": "Define whether the element supports dropping files on it for uploading.\nBy default it's enabled in desktop and disabled in touch devices\nbecause mobile devices do not support drag events in general. Setting\nit false means that drop is enabled even in touch-devices, and true\ndisables drop in all devices.",
1821
+ "default": "true in touch-devices, false otherwise.",
1822
+ "fieldName": "nodrop"
1823
+ },
1824
+ {
1825
+ "name": "target",
1826
+ "type": {
1827
+ "text": "string"
1828
+ },
1829
+ "description": "The server URL. The default value is an empty string, which means that\n_window.location_ will be used.",
1830
+ "fieldName": "target"
1831
+ },
1832
+ {
1833
+ "name": "timeout",
1834
+ "type": {
1835
+ "text": "number"
1836
+ },
1837
+ "description": "Max time in milliseconds for the entire upload process, if exceeded the\nrequest will be aborted. Zero means that there is no timeout.",
1838
+ "fieldName": "timeout"
1839
+ },
1840
+ {
1841
+ "name": "upload-format",
1842
+ "type": {
1843
+ "text": "string"
1844
+ },
1845
+ "description": "Specifies the upload format to use when sending files to the server.\n- 'raw': Send file as raw binary data with the file's MIME type as Content-Type (default)\n- 'multipart': Send file using multipart/form-data encoding",
1846
+ "fieldName": "uploadFormat"
1847
+ },
1848
+ {
1849
+ "name": "with-credentials",
1850
+ "type": {
1851
+ "text": "boolean"
1852
+ },
1853
+ "description": "Set the withCredentials flag on the request.",
1854
+ "fieldName": "withCredentials"
1855
+ }
1856
+ ],
1857
+ "mixins": [
1858
+ {
1859
+ "name": "I18nMixin",
1860
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
1861
+ }
1862
+ ],
1863
+ "parameters": [
1864
+ {
1865
+ "name": "superClass"
1866
+ }
1867
+ ]
1868
+ },
1869
+ {
1870
+ "kind": "variable",
1871
+ "name": "xhr",
1872
+ "default": "(file.xhr = this._createXhr())"
1873
+ },
1874
+ {
1875
+ "kind": "variable",
1876
+ "name": "requestBody"
1877
+ }
1878
+ ],
1879
+ "exports": [
1880
+ {
1881
+ "kind": "js",
1882
+ "name": "DEFAULT_I18N",
1883
+ "declaration": {
1884
+ "name": "DEFAULT_I18N",
1885
+ "module": "src/vaadin-upload-mixin.js"
1886
+ }
1887
+ },
1888
+ {
1889
+ "kind": "js",
1890
+ "name": "UploadMixin",
1891
+ "declaration": {
1892
+ "name": "UploadMixin",
1893
+ "module": "src/vaadin-upload-mixin.js"
1894
+ }
1895
+ }
1896
+ ]
1897
+ },
1898
+ {
1899
+ "kind": "javascript-module",
1900
+ "path": "src/vaadin-upload.js",
1901
+ "declarations": [
1902
+ {
1903
+ "kind": "class",
1904
+ "description": "`<vaadin-upload>` is a Web Component for uploading multiple files with drag and drop support.\n\nExample:\n\n```html\n<vaadin-upload></vaadin-upload>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-------------------|-------------------------------------\n`primary-buttons` | Upload container\n`drop-label` | Element wrapping drop label and icon\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`nodrop` | Set when drag and drop is disabled (e.g., on touch devices)\n`dragover` | Set when the file is being dragged over the element\n`dragover-valid` | Set when the dragged file is valid with `maxFiles` and `accept` criteria\n`max-files-reached` | Set when maximum number of files that the user is allowed to add has been reached\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:--------------------------------------------|\n`--vaadin-upload-background` |\n`--vaadin-upload-border-color` |\n`--vaadin-upload-border-radius` |\n`--vaadin-upload-border-width` |\n`--vaadin-upload-gap` |\n`--vaadin-upload-padding` |\n`--vaadin-upload-drop-label-color` |\n`--vaadin-upload-drop-label-font-size` |\n`--vaadin-upload-drop-label-font-weight` |\n`--vaadin-upload-drop-label-gap` |\n`--vaadin-upload-drop-label-line-height` |\n`--vaadin-upload-file-list-divider-color` |\n`--vaadin-upload-file-list-divider-width` |\n`--vaadin-upload-file-border-radius` |\n`--vaadin-upload-file-button-background` |\n`--vaadin-upload-file-button-border-color` |\n`--vaadin-upload-file-button-border-radius` |\n`--vaadin-upload-file-button-border-width` |\n`--vaadin-upload-file-button-text-color` |\n`--vaadin-upload-file-button-padding` |\n`--vaadin-upload-file-done-color` |\n`--vaadin-upload-file-error-color` |\n`--vaadin-upload-file-error-font-size` |\n`--vaadin-upload-file-error-font-weight` |\n`--vaadin-upload-file-error-line-height` |\n`--vaadin-upload-file-gap` |\n`--vaadin-upload-file-name-color` |\n`--vaadin-upload-file-name-font-size` |\n`--vaadin-upload-file-name-font-weight` |\n`--vaadin-upload-file-name-line-height` |\n`--vaadin-upload-file-padding` |\n`--vaadin-upload-file-status-color` |\n`--vaadin-upload-file-status-font-size` |\n`--vaadin-upload-file-status-font-weight` |\n`--vaadin-upload-file-status-line-height` |\n`--vaadin-upload-file-warning-color` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
1905
+ "name": "Upload",
1906
+ "members": [
1907
+ {
1908
+ "kind": "field",
1909
+ "name": "accept",
1910
+ "privacy": "public",
1911
+ "type": {
1912
+ "text": "string"
1913
+ },
1914
+ "description": "Specifies the types of files that the server accepts.\nSyntax: a comma-separated list of MIME type patterns (wildcards are\nallowed) or file extensions.\nNotice that MIME types are widely supported, while file extensions\nare only implemented in certain browsers, so avoid using it.\nExample: accept=\"video/*,image/tiff\" or accept=\".pdf,audio/mp3\"",
1915
+ "attribute": "accept",
1916
+ "inheritedFrom": {
1917
+ "name": "UploadMixin",
1918
+ "module": "src/vaadin-upload-mixin.js"
1919
+ }
1920
+ },
1921
+ {
1922
+ "kind": "field",
1923
+ "name": "capture",
1924
+ "privacy": "public",
1925
+ "description": "Pass-through to input's capture attribute. Allows user to trigger device inputs\nsuch as camera or microphone immediately.",
1926
+ "attribute": "capture",
1927
+ "inheritedFrom": {
1928
+ "name": "UploadMixin",
1929
+ "module": "src/vaadin-upload-mixin.js"
1930
+ }
1931
+ },
1932
+ {
1933
+ "kind": "field",
1934
+ "name": "disabled",
1935
+ "privacy": "public",
1936
+ "type": {
1937
+ "text": "boolean"
1938
+ },
1939
+ "description": "If true, the user cannot interact with this element.",
1940
+ "attribute": "disabled",
1941
+ "inheritedFrom": {
1942
+ "name": "UploadMixin",
1943
+ "module": "src/vaadin-upload-mixin.js"
1944
+ }
1945
+ },
1946
+ {
1947
+ "kind": "field",
1948
+ "name": "files",
1949
+ "privacy": "public",
1950
+ "type": {
1951
+ "text": "!Array<!UploadFile>"
1952
+ },
1953
+ "description": "The array of files being processed, or already uploaded.\n\nEach element is a [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File)\nobject with a number of extra properties to track the upload process:\n- `uploadTarget`: The target URL used to upload this file.\n- `elapsed`: Elapsed time since the upload started.\n- `elapsedStr`: Human-readable elapsed time.\n- `remaining`: Number of seconds remaining for the upload to finish.\n- `remainingStr`: Human-readable remaining time for the upload to finish.\n- `progress`: Percentage of the file already uploaded.\n- `speed`: Upload speed in kB/s.\n- `size`: File size in bytes.\n- `totalStr`: Human-readable total size of the file.\n- `loaded`: Bytes transferred so far.\n- `loadedStr`: Human-readable uploaded size at the moment.\n- `status`: Status of the upload process.\n- `error`: Error message in case the upload failed.\n- `abort`: True if the file was canceled by the user.\n- `complete`: True when the file was transferred to the server.\n- `uploading`: True while transferring data to the server.",
1954
+ "attribute": "files",
1955
+ "inheritedFrom": {
1956
+ "name": "UploadMixin",
1957
+ "module": "src/vaadin-upload-mixin.js"
1958
+ }
1959
+ },
1960
+ {
1961
+ "kind": "field",
1962
+ "name": "formDataName",
1963
+ "privacy": "public",
1964
+ "type": {
1965
+ "text": "string"
1966
+ },
1967
+ "description": "Specifies the 'name' property at Content-Disposition for multipart uploads.\nThis property is ignored when uploadFormat is 'raw'.",
1968
+ "attribute": "form-data-name",
1969
+ "inheritedFrom": {
1970
+ "name": "UploadMixin",
1971
+ "module": "src/vaadin-upload-mixin.js"
1972
+ }
1973
+ },
1974
+ {
1975
+ "kind": "field",
1976
+ "name": "headers",
1977
+ "privacy": "public",
1978
+ "type": {
1979
+ "text": "object | string"
1980
+ },
1981
+ "description": "Key-Value map to send to the server. If you set this property as an\nattribute, use a valid JSON string, for example:\n```html\n<vaadin-upload headers='{\"X-Foo\": \"Bar\"}'></vaadin-upload>\n```",
1982
+ "attribute": "headers",
1983
+ "inheritedFrom": {
1984
+ "name": "UploadMixin",
1985
+ "module": "src/vaadin-upload-mixin.js"
1986
+ }
1987
+ },
1988
+ {
1989
+ "kind": "field",
1990
+ "name": "maxConcurrentUploads",
1991
+ "privacy": "public",
1992
+ "type": {
1993
+ "text": "number"
1994
+ },
1995
+ "description": "Specifies the maximum number of files that can be uploaded simultaneously.\nThis helps prevent browser performance degradation and XHR limitations when\nuploading large numbers of files. Files exceeding this limit will be queued\nand uploaded as active uploads complete.",
1996
+ "attribute": "max-concurrent-uploads",
1997
+ "inheritedFrom": {
1998
+ "name": "UploadMixin",
1999
+ "module": "src/vaadin-upload-mixin.js"
2000
+ }
2001
+ },
2002
+ {
2003
+ "kind": "field",
2004
+ "name": "maxFiles",
2005
+ "privacy": "public",
2006
+ "type": {
2007
+ "text": "number"
2008
+ },
2009
+ "description": "Limit of files to upload, by default it is unlimited. If the value is\nset to one, native file browser will prevent selecting multiple files.",
2010
+ "attribute": "max-files",
2011
+ "inheritedFrom": {
2012
+ "name": "UploadMixin",
2013
+ "module": "src/vaadin-upload-mixin.js"
2014
+ }
2015
+ },
2016
+ {
2017
+ "kind": "field",
2018
+ "name": "maxFileSize",
2019
+ "privacy": "public",
2020
+ "type": {
2021
+ "text": "number"
2022
+ },
2023
+ "description": "Specifies the maximum file size in bytes allowed to upload.\nNotice that it is a client-side constraint, which will be checked before\nsending the request. Obviously you need to do the same validation in\nthe server-side and be sure that they are aligned.",
2024
+ "attribute": "max-file-size",
2025
+ "inheritedFrom": {
2026
+ "name": "UploadMixin",
2027
+ "module": "src/vaadin-upload-mixin.js"
2028
+ }
2029
+ },
2030
+ {
2031
+ "kind": "field",
2032
+ "name": "maxFilesReached",
2033
+ "privacy": "public",
2034
+ "type": {
2035
+ "text": "boolean"
2036
+ },
2037
+ "description": "Specifies if the maximum number of files have been uploaded",
2038
+ "attribute": "max-files-reached",
2039
+ "inheritedFrom": {
2040
+ "name": "UploadMixin",
2041
+ "module": "src/vaadin-upload-mixin.js"
2042
+ }
2043
+ },
2044
+ {
2045
+ "kind": "field",
2046
+ "name": "method",
2047
+ "privacy": "public",
2048
+ "type": {
2049
+ "text": "!UploadMethod"
2050
+ },
2051
+ "description": "HTTP Method used to send the files. Only POST and PUT are allowed.",
2052
+ "attribute": "method",
2053
+ "inheritedFrom": {
2054
+ "name": "UploadMixin",
2055
+ "module": "src/vaadin-upload-mixin.js"
2056
+ }
2057
+ },
2058
+ {
2059
+ "kind": "field",
2060
+ "name": "noAuto",
2061
+ "privacy": "public",
2062
+ "type": {
2063
+ "text": "boolean"
2064
+ },
2065
+ "description": "Prevents upload(s) from immediately uploading upon adding file(s).\nWhen set, you must manually trigger uploads using the `uploadFiles` method",
2066
+ "attribute": "no-auto",
2067
+ "inheritedFrom": {
2068
+ "name": "UploadMixin",
2069
+ "module": "src/vaadin-upload-mixin.js"
2070
+ }
2071
+ },
2072
+ {
2073
+ "kind": "field",
2074
+ "name": "nodrop",
2075
+ "privacy": "public",
2076
+ "type": {
2077
+ "text": "boolean"
2078
+ },
2079
+ "description": "Define whether the element supports dropping files on it for uploading.\nBy default it's enabled in desktop and disabled in touch devices\nbecause mobile devices do not support drag events in general. Setting\nit false means that drop is enabled even in touch-devices, and true\ndisables drop in all devices.",
2080
+ "default": "true in touch-devices, false otherwise.",
2081
+ "attribute": "nodrop",
2082
+ "inheritedFrom": {
2083
+ "name": "UploadMixin",
2084
+ "module": "src/vaadin-upload-mixin.js"
2085
+ }
2086
+ },
2087
+ {
2088
+ "kind": "field",
2089
+ "name": "target",
2090
+ "privacy": "public",
2091
+ "type": {
2092
+ "text": "string"
2093
+ },
2094
+ "description": "The server URL. The default value is an empty string, which means that\n_window.location_ will be used.",
2095
+ "attribute": "target",
2096
+ "inheritedFrom": {
2097
+ "name": "UploadMixin",
2098
+ "module": "src/vaadin-upload-mixin.js"
2099
+ }
2100
+ },
2101
+ {
2102
+ "kind": "field",
2103
+ "name": "timeout",
2104
+ "privacy": "public",
2105
+ "type": {
2106
+ "text": "number"
2107
+ },
2108
+ "description": "Max time in milliseconds for the entire upload process, if exceeded the\nrequest will be aborted. Zero means that there is no timeout.",
2109
+ "attribute": "timeout",
2110
+ "inheritedFrom": {
2111
+ "name": "UploadMixin",
2112
+ "module": "src/vaadin-upload-mixin.js"
2113
+ }
2114
+ },
2115
+ {
2116
+ "kind": "method",
2117
+ "name": "uploadFiles",
2118
+ "parameters": [
2119
+ {
2120
+ "name": "files",
2121
+ "default": "this.files",
2122
+ "description": "Files being uploaded. Defaults to all outstanding files",
2123
+ "type": {
2124
+ "text": "!UploadFile | !Array<!UploadFile>="
2125
+ }
2126
+ }
2127
+ ],
2128
+ "description": "Triggers the upload of any files that are not completed",
2129
+ "inheritedFrom": {
2130
+ "name": "UploadMixin",
2131
+ "module": "src/vaadin-upload-mixin.js"
2132
+ }
2133
+ },
2134
+ {
2135
+ "kind": "field",
2136
+ "name": "uploadFormat",
2137
+ "privacy": "public",
2138
+ "type": {
2139
+ "text": "string"
2140
+ },
2141
+ "description": "Specifies the upload format to use when sending files to the server.\n- 'raw': Send file as raw binary data with the file's MIME type as Content-Type (default)\n- 'multipart': Send file using multipart/form-data encoding",
2142
+ "attribute": "upload-format",
2143
+ "inheritedFrom": {
2144
+ "name": "UploadMixin",
2145
+ "module": "src/vaadin-upload-mixin.js"
2146
+ }
2147
+ },
2148
+ {
2149
+ "kind": "field",
2150
+ "name": "withCredentials",
2151
+ "privacy": "public",
2152
+ "type": {
2153
+ "text": "boolean"
2154
+ },
2155
+ "description": "Set the withCredentials flag on the request.",
2156
+ "attribute": "with-credentials",
2157
+ "inheritedFrom": {
2158
+ "name": "UploadMixin",
2159
+ "module": "src/vaadin-upload-mixin.js"
2160
+ }
2161
+ }
2162
+ ],
2163
+ "events": [
2164
+ {
2165
+ "name": "file-reject",
2166
+ "type": {
2167
+ "text": "CustomEvent"
2168
+ },
2169
+ "description": "Fired when a file cannot be added to the queue due to a constrain.",
2170
+ "inheritedFrom": {
2171
+ "name": "UploadMixin",
2172
+ "module": "src/vaadin-upload-mixin.js"
2173
+ }
2174
+ },
2175
+ {
2176
+ "name": "file-remove",
2177
+ "type": {
2178
+ "text": "CustomEvent"
2179
+ },
2180
+ "inheritedFrom": {
2181
+ "name": "UploadMixin",
2182
+ "module": "src/vaadin-upload-mixin.js"
2183
+ }
2184
+ },
2185
+ {
2186
+ "type": {
2187
+ "text": "CustomEvent"
2188
+ },
2189
+ "description": "Fired when the `files` property changes.",
2190
+ "name": "files-changed"
2191
+ },
2192
+ {
2193
+ "type": {
2194
+ "text": "CustomEvent"
2195
+ },
2196
+ "description": "Fired when the `maxFilesReached` property changes.",
2197
+ "name": "max-files-reached-changed"
2198
+ },
2199
+ {
2200
+ "name": "upload-abort",
2201
+ "type": {
2202
+ "text": "CustomEvent"
2203
+ },
2204
+ "description": "Fired when upload abort is requested.",
2205
+ "inheritedFrom": {
2206
+ "name": "UploadMixin",
2207
+ "module": "src/vaadin-upload-mixin.js"
2208
+ }
2209
+ },
2210
+ {
2211
+ "name": "upload-before",
2212
+ "type": {
2213
+ "text": "CustomEvent"
2214
+ },
2215
+ "description": "Fired before the XHR is opened.",
2216
+ "inheritedFrom": {
2217
+ "name": "UploadMixin",
2218
+ "module": "src/vaadin-upload-mixin.js"
2219
+ }
2220
+ },
2221
+ {
2222
+ "type": {
2223
+ "text": "CustomEvent"
2224
+ },
2225
+ "description": "Fired in case the upload process failed.",
2226
+ "name": "upload-error"
2227
+ },
2228
+ {
2229
+ "name": "upload-progress",
2230
+ "type": {
2231
+ "text": "CustomEvent"
2232
+ },
2233
+ "description": "Fired as many times as the progress is updated.",
2234
+ "inheritedFrom": {
2235
+ "name": "UploadMixin",
2236
+ "module": "src/vaadin-upload-mixin.js"
2237
+ }
2238
+ },
2239
+ {
2240
+ "name": "upload-request",
2241
+ "type": {
2242
+ "text": "CustomEvent"
2243
+ },
2244
+ "description": "Fired when the XHR has been opened but not sent yet.",
2245
+ "inheritedFrom": {
2246
+ "name": "UploadMixin",
2247
+ "module": "src/vaadin-upload-mixin.js"
2248
+ }
2249
+ },
2250
+ {
2251
+ "name": "upload-response",
2252
+ "type": {
2253
+ "text": "CustomEvent"
2254
+ },
2255
+ "description": "Fired when on the server response before analyzing it.",
2256
+ "inheritedFrom": {
2257
+ "name": "UploadMixin",
2258
+ "module": "src/vaadin-upload-mixin.js"
2259
+ }
2260
+ },
2261
+ {
2262
+ "name": "upload-retry",
2263
+ "type": {
2264
+ "text": "CustomEvent"
2265
+ },
2266
+ "description": "Fired when retry upload is requested.",
2267
+ "inheritedFrom": {
2268
+ "name": "UploadMixin",
2269
+ "module": "src/vaadin-upload-mixin.js"
2270
+ }
2271
+ },
2272
+ {
2273
+ "name": "upload-start",
2274
+ "type": {
2275
+ "text": "CustomEvent"
2276
+ },
2277
+ "description": "Fired when the XHR is sent.",
2278
+ "inheritedFrom": {
2279
+ "name": "UploadMixin",
2280
+ "module": "src/vaadin-upload-mixin.js"
2281
+ }
2282
+ },
2283
+ {
2284
+ "type": {
2285
+ "text": "CustomEvent"
2286
+ },
2287
+ "description": "Fired in case the upload process succeeded.",
2288
+ "name": "upload-success"
2289
+ }
2290
+ ],
2291
+ "mixins": [
2292
+ {
2293
+ "name": "UploadMixin",
2294
+ "module": "src/vaadin-upload-mixin.js"
2295
+ },
2296
+ {
2297
+ "name": "ElementMixin",
2298
+ "package": "@vaadin/component-base/src/element-mixin.js"
2299
+ },
2300
+ {
2301
+ "name": "ThemableMixin",
2302
+ "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
2303
+ },
2304
+ {
2305
+ "name": "PolylitMixin",
2306
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
2307
+ },
2308
+ {
2309
+ "name": "LumoInjectionMixin",
2310
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
2311
+ }
2312
+ ],
2313
+ "superclass": {
2314
+ "name": "LitElement",
2315
+ "package": "lit"
2316
+ },
2317
+ "tagName": "vaadin-upload",
2318
+ "customElement": true,
2319
+ "attributes": [
2320
+ {
2321
+ "name": "accept",
2322
+ "type": {
2323
+ "text": "string"
2324
+ },
2325
+ "description": "Specifies the types of files that the server accepts.\nSyntax: a comma-separated list of MIME type patterns (wildcards are\nallowed) or file extensions.\nNotice that MIME types are widely supported, while file extensions\nare only implemented in certain browsers, so avoid using it.\nExample: accept=\"video/*,image/tiff\" or accept=\".pdf,audio/mp3\"",
2326
+ "fieldName": "accept",
2327
+ "inheritedFrom": {
2328
+ "name": "UploadMixin",
2329
+ "module": "src/vaadin-upload-mixin.js"
2330
+ }
2331
+ },
2332
+ {
2333
+ "name": "capture",
2334
+ "description": "Pass-through to input's capture attribute. Allows user to trigger device inputs\nsuch as camera or microphone immediately.",
2335
+ "fieldName": "capture",
2336
+ "inheritedFrom": {
2337
+ "name": "UploadMixin",
2338
+ "module": "src/vaadin-upload-mixin.js"
2339
+ }
2340
+ },
2341
+ {
2342
+ "name": "disabled",
2343
+ "type": {
2344
+ "text": "boolean"
2345
+ },
2346
+ "description": "If true, the user cannot interact with this element.",
2347
+ "fieldName": "disabled",
2348
+ "inheritedFrom": {
2349
+ "name": "UploadMixin",
2350
+ "module": "src/vaadin-upload-mixin.js"
2351
+ }
2352
+ },
2353
+ {
2354
+ "name": "form-data-name",
2355
+ "type": {
2356
+ "text": "string"
2357
+ },
2358
+ "description": "Specifies the 'name' property at Content-Disposition for multipart uploads.\nThis property is ignored when uploadFormat is 'raw'.",
2359
+ "fieldName": "formDataName",
2360
+ "inheritedFrom": {
2361
+ "name": "UploadMixin",
2362
+ "module": "src/vaadin-upload-mixin.js"
2363
+ }
2364
+ },
2365
+ {
2366
+ "name": "max-concurrent-uploads",
2367
+ "type": {
2368
+ "text": "number"
2369
+ },
2370
+ "description": "Specifies the maximum number of files that can be uploaded simultaneously.\nThis helps prevent browser performance degradation and XHR limitations when\nuploading large numbers of files. Files exceeding this limit will be queued\nand uploaded as active uploads complete.",
2371
+ "fieldName": "maxConcurrentUploads",
2372
+ "inheritedFrom": {
2373
+ "name": "UploadMixin",
2374
+ "module": "src/vaadin-upload-mixin.js"
2375
+ }
2376
+ },
2377
+ {
2378
+ "name": "max-file-size",
2379
+ "type": {
2380
+ "text": "number"
2381
+ },
2382
+ "description": "Specifies the maximum file size in bytes allowed to upload.\nNotice that it is a client-side constraint, which will be checked before\nsending the request. Obviously you need to do the same validation in\nthe server-side and be sure that they are aligned.",
2383
+ "fieldName": "maxFileSize",
2384
+ "inheritedFrom": {
2385
+ "name": "UploadMixin",
2386
+ "module": "src/vaadin-upload-mixin.js"
2387
+ }
2388
+ },
2389
+ {
2390
+ "name": "max-files",
2391
+ "type": {
2392
+ "text": "number"
2393
+ },
2394
+ "description": "Limit of files to upload, by default it is unlimited. If the value is\nset to one, native file browser will prevent selecting multiple files.",
2395
+ "fieldName": "maxFiles",
2396
+ "inheritedFrom": {
2397
+ "name": "UploadMixin",
2398
+ "module": "src/vaadin-upload-mixin.js"
2399
+ }
2400
+ },
2401
+ {
2402
+ "name": "max-files-reached",
2403
+ "type": {
2404
+ "text": "boolean"
2405
+ },
2406
+ "description": "Specifies if the maximum number of files have been uploaded",
2407
+ "fieldName": "maxFilesReached",
2408
+ "inheritedFrom": {
2409
+ "name": "UploadMixin",
2410
+ "module": "src/vaadin-upload-mixin.js"
2411
+ }
2412
+ },
2413
+ {
2414
+ "name": "method",
2415
+ "type": {
2416
+ "text": "!UploadMethod"
2417
+ },
2418
+ "description": "HTTP Method used to send the files. Only POST and PUT are allowed.",
2419
+ "fieldName": "method",
2420
+ "inheritedFrom": {
2421
+ "name": "UploadMixin",
2422
+ "module": "src/vaadin-upload-mixin.js"
2423
+ }
2424
+ },
2425
+ {
2426
+ "name": "no-auto",
2427
+ "type": {
2428
+ "text": "boolean"
2429
+ },
2430
+ "description": "Prevents upload(s) from immediately uploading upon adding file(s).\nWhen set, you must manually trigger uploads using the `uploadFiles` method",
2431
+ "fieldName": "noAuto",
2432
+ "inheritedFrom": {
2433
+ "name": "UploadMixin",
2434
+ "module": "src/vaadin-upload-mixin.js"
2435
+ }
2436
+ },
2437
+ {
2438
+ "name": "nodrop",
2439
+ "type": {
2440
+ "text": "boolean"
2441
+ },
2442
+ "description": "Define whether the element supports dropping files on it for uploading.\nBy default it's enabled in desktop and disabled in touch devices\nbecause mobile devices do not support drag events in general. Setting\nit false means that drop is enabled even in touch-devices, and true\ndisables drop in all devices.",
2443
+ "default": "true in touch-devices, false otherwise.",
2444
+ "fieldName": "nodrop",
2445
+ "inheritedFrom": {
2446
+ "name": "UploadMixin",
2447
+ "module": "src/vaadin-upload-mixin.js"
2448
+ }
2449
+ },
2450
+ {
2451
+ "name": "target",
2452
+ "type": {
2453
+ "text": "string"
2454
+ },
2455
+ "description": "The server URL. The default value is an empty string, which means that\n_window.location_ will be used.",
2456
+ "fieldName": "target",
2457
+ "inheritedFrom": {
2458
+ "name": "UploadMixin",
2459
+ "module": "src/vaadin-upload-mixin.js"
2460
+ }
2461
+ },
2462
+ {
2463
+ "name": "timeout",
2464
+ "type": {
2465
+ "text": "number"
2466
+ },
2467
+ "description": "Max time in milliseconds for the entire upload process, if exceeded the\nrequest will be aborted. Zero means that there is no timeout.",
2468
+ "fieldName": "timeout",
2469
+ "inheritedFrom": {
2470
+ "name": "UploadMixin",
2471
+ "module": "src/vaadin-upload-mixin.js"
2472
+ }
2473
+ },
2474
+ {
2475
+ "name": "upload-format",
2476
+ "type": {
2477
+ "text": "string"
2478
+ },
2479
+ "description": "Specifies the upload format to use when sending files to the server.\n- 'raw': Send file as raw binary data with the file's MIME type as Content-Type (default)\n- 'multipart': Send file using multipart/form-data encoding",
2480
+ "fieldName": "uploadFormat",
2481
+ "inheritedFrom": {
2482
+ "name": "UploadMixin",
2483
+ "module": "src/vaadin-upload-mixin.js"
2484
+ }
2485
+ },
2486
+ {
2487
+ "name": "with-credentials",
2488
+ "type": {
2489
+ "text": "boolean"
2490
+ },
2491
+ "description": "Set the withCredentials flag on the request.",
2492
+ "fieldName": "withCredentials",
2493
+ "inheritedFrom": {
2494
+ "name": "UploadMixin",
2495
+ "module": "src/vaadin-upload-mixin.js"
2496
+ }
2497
+ }
2498
+ ]
2499
+ }
2500
+ ],
2501
+ "exports": [
2502
+ {
2503
+ "kind": "js",
2504
+ "name": "Upload",
2505
+ "declaration": {
2506
+ "name": "Upload",
2507
+ "module": "src/vaadin-upload.js"
2508
+ }
2509
+ }
2510
+ ]
2511
+ }
2512
+ ]
2513
+ }