@vaadin/upload 25.3.0-alpha9 → 25.3.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +482 -84
- package/package.json +11 -11
- package/src/vaadin-upload-button.js +1 -1
- package/src/vaadin-upload-file-list-mixin.d.ts +1 -0
- package/src/vaadin-upload-file-list-mixin.js +10 -103
- package/src/vaadin-upload-helpers.js +143 -0
- package/src/vaadin-upload-internal-manager.js +174 -0
- package/src/vaadin-upload-manager.js +85 -32
- package/src/vaadin-upload-mixin.d.ts +4 -44
- package/src/vaadin-upload-mixin.js +359 -564
- package/src/vaadin-upload.d.ts +39 -38
- package/src/vaadin-upload.js +39 -38
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -334,6 +334,14 @@
|
|
|
334
334
|
"kind": "javascript-module",
|
|
335
335
|
"path": "src/vaadin-upload-file-list-mixin.js",
|
|
336
336
|
"declarations": [
|
|
337
|
+
{
|
|
338
|
+
"kind": "variable",
|
|
339
|
+
"name": "DEFAULT_I18N",
|
|
340
|
+
"type": {
|
|
341
|
+
"text": "object"
|
|
342
|
+
},
|
|
343
|
+
"default": "{ file: { retry: 'Retry', start: 'Start', remove: 'Remove', }, 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', fileTooLarge: 'File is too large', }, }, units: { size: ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], }, }"
|
|
344
|
+
},
|
|
337
345
|
{
|
|
338
346
|
"kind": "mixin",
|
|
339
347
|
"description": "",
|
|
@@ -438,6 +446,14 @@
|
|
|
438
446
|
}
|
|
439
447
|
],
|
|
440
448
|
"exports": [
|
|
449
|
+
{
|
|
450
|
+
"kind": "js",
|
|
451
|
+
"name": "DEFAULT_I18N",
|
|
452
|
+
"declaration": {
|
|
453
|
+
"name": "DEFAULT_I18N",
|
|
454
|
+
"module": "src/vaadin-upload-file-list-mixin.js"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
441
457
|
{
|
|
442
458
|
"kind": "js",
|
|
443
459
|
"name": "UploadFileListMixin",
|
|
@@ -1167,6 +1183,457 @@
|
|
|
1167
1183
|
}
|
|
1168
1184
|
]
|
|
1169
1185
|
},
|
|
1186
|
+
{
|
|
1187
|
+
"kind": "javascript-module",
|
|
1188
|
+
"path": "src/vaadin-upload-internal-manager.js",
|
|
1189
|
+
"declarations": [
|
|
1190
|
+
{
|
|
1191
|
+
"kind": "function",
|
|
1192
|
+
"name": "parseHeaders",
|
|
1193
|
+
"parameters": [
|
|
1194
|
+
{
|
|
1195
|
+
"name": "headers"
|
|
1196
|
+
}
|
|
1197
|
+
],
|
|
1198
|
+
"description": "The `headers` property also supports a JSON string, while the manager only\naccepts an object, so strings are parsed. An invalid JSON string parses to\nundefined, which throws when the request is configured."
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
"kind": "class",
|
|
1202
|
+
"description": "An `UploadManager` subclass used internally by `<vaadin-upload>`. It reads\nits configuration from the host component, and overrides the manager\nbehavior where the component behavior that predates the manager integration\ndiffers from the standalone manager.",
|
|
1203
|
+
"name": "InternalUploadManager",
|
|
1204
|
+
"members": [
|
|
1205
|
+
{
|
|
1206
|
+
"kind": "method",
|
|
1207
|
+
"name": "abortUpload",
|
|
1208
|
+
"parameters": [
|
|
1209
|
+
{
|
|
1210
|
+
"name": "file",
|
|
1211
|
+
"description": "The file to abort",
|
|
1212
|
+
"type": {
|
|
1213
|
+
"text": "UploadFile"
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
],
|
|
1217
|
+
"description": "Abort an upload.",
|
|
1218
|
+
"inheritedFrom": {
|
|
1219
|
+
"name": "UploadManager",
|
|
1220
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"kind": "field",
|
|
1225
|
+
"name": "accept",
|
|
1226
|
+
"inheritedFrom": {
|
|
1227
|
+
"name": "UploadManager",
|
|
1228
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"kind": "method",
|
|
1233
|
+
"name": "addFiles",
|
|
1234
|
+
"parameters": [
|
|
1235
|
+
{
|
|
1236
|
+
"name": "files",
|
|
1237
|
+
"description": "Files to add",
|
|
1238
|
+
"type": {
|
|
1239
|
+
"text": "FileList|File[]"
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
],
|
|
1243
|
+
"description": "Add files to the upload list.",
|
|
1244
|
+
"inheritedFrom": {
|
|
1245
|
+
"name": "UploadManager",
|
|
1246
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"kind": "field",
|
|
1251
|
+
"name": "disabled",
|
|
1252
|
+
"description": "Whether the upload manager is disabled.\nWhen true, connected components (upload-button, upload-drop-zone) will be automatically disabled.",
|
|
1253
|
+
"type": {
|
|
1254
|
+
"text": "boolean"
|
|
1255
|
+
},
|
|
1256
|
+
"inheritedFrom": {
|
|
1257
|
+
"name": "UploadManager",
|
|
1258
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
"kind": "field",
|
|
1263
|
+
"name": "files",
|
|
1264
|
+
"description": "Override accessor from `UploadManager` to accept assigned files as-is,\nwithout validating them against the maxFiles, maxFileSize and accept\nconstraints, e.g. to show previously uploaded files.",
|
|
1265
|
+
"type": {
|
|
1266
|
+
"text": "Array<UploadFile>"
|
|
1267
|
+
},
|
|
1268
|
+
"inheritedFrom": {
|
|
1269
|
+
"name": "UploadManager",
|
|
1270
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1271
|
+
}
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"kind": "field",
|
|
1275
|
+
"name": "formDataName",
|
|
1276
|
+
"inheritedFrom": {
|
|
1277
|
+
"name": "UploadManager",
|
|
1278
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"kind": "field",
|
|
1283
|
+
"name": "headers",
|
|
1284
|
+
"description": "Key-Value map to send to the server.",
|
|
1285
|
+
"type": {
|
|
1286
|
+
"text": "Record<string, string>"
|
|
1287
|
+
},
|
|
1288
|
+
"inheritedFrom": {
|
|
1289
|
+
"name": "UploadManager",
|
|
1290
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"kind": "field",
|
|
1295
|
+
"name": "maxConcurrentUploads",
|
|
1296
|
+
"description": "Maximum number of files that can be uploaded simultaneously.",
|
|
1297
|
+
"type": {
|
|
1298
|
+
"text": "number"
|
|
1299
|
+
},
|
|
1300
|
+
"inheritedFrom": {
|
|
1301
|
+
"name": "UploadManager",
|
|
1302
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"kind": "field",
|
|
1307
|
+
"name": "maxFiles",
|
|
1308
|
+
"description": "Limit of files to upload, by default it is unlimited.",
|
|
1309
|
+
"type": {
|
|
1310
|
+
"text": "number"
|
|
1311
|
+
},
|
|
1312
|
+
"inheritedFrom": {
|
|
1313
|
+
"name": "UploadManager",
|
|
1314
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1315
|
+
}
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
"kind": "field",
|
|
1319
|
+
"name": "maxFileSize",
|
|
1320
|
+
"inheritedFrom": {
|
|
1321
|
+
"name": "UploadManager",
|
|
1322
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"kind": "field",
|
|
1327
|
+
"name": "maxFilesReached",
|
|
1328
|
+
"description": "Specifies if the maximum number of files have been uploaded.",
|
|
1329
|
+
"type": {
|
|
1330
|
+
"text": "boolean"
|
|
1331
|
+
},
|
|
1332
|
+
"readonly": true,
|
|
1333
|
+
"inheritedFrom": {
|
|
1334
|
+
"name": "UploadManager",
|
|
1335
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1336
|
+
}
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"kind": "field",
|
|
1340
|
+
"name": "method",
|
|
1341
|
+
"description": "HTTP Method used to send the files. Only POST and PUT are allowed.",
|
|
1342
|
+
"type": {
|
|
1343
|
+
"text": "string"
|
|
1344
|
+
},
|
|
1345
|
+
"inheritedFrom": {
|
|
1346
|
+
"name": "UploadManager",
|
|
1347
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"kind": "field",
|
|
1352
|
+
"name": "noAuto",
|
|
1353
|
+
"inheritedFrom": {
|
|
1354
|
+
"name": "UploadManager",
|
|
1355
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"kind": "method",
|
|
1360
|
+
"name": "removeFile",
|
|
1361
|
+
"parameters": [
|
|
1362
|
+
{
|
|
1363
|
+
"name": "file",
|
|
1364
|
+
"description": "The file to remove",
|
|
1365
|
+
"type": {
|
|
1366
|
+
"text": "UploadFile"
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
],
|
|
1370
|
+
"description": "Remove a file from the list.",
|
|
1371
|
+
"inheritedFrom": {
|
|
1372
|
+
"name": "UploadManager",
|
|
1373
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1374
|
+
}
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
"kind": "method",
|
|
1378
|
+
"name": "retryUpload",
|
|
1379
|
+
"parameters": [
|
|
1380
|
+
{
|
|
1381
|
+
"name": "file"
|
|
1382
|
+
}
|
|
1383
|
+
],
|
|
1384
|
+
"description": "Override method from `UploadManager` to not restart the upload of a\nfile that is already uploading or queued, like the component\nhistorically does; only the `upload-retry` event is dispatched.",
|
|
1385
|
+
"inheritedFrom": {
|
|
1386
|
+
"name": "UploadManager",
|
|
1387
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
"kind": "method",
|
|
1392
|
+
"name": "startUpload",
|
|
1393
|
+
"parameters": [
|
|
1394
|
+
{
|
|
1395
|
+
"name": "file",
|
|
1396
|
+
"type": {
|
|
1397
|
+
"text": "UploadFile"
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
],
|
|
1401
|
+
"description": "Start the upload of the given file, even if it is already complete, in\nwhich case it is uploaded again from scratch. A file that is already\nuploading or queued is ignored."
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"kind": "field",
|
|
1405
|
+
"name": "target",
|
|
1406
|
+
"inheritedFrom": {
|
|
1407
|
+
"name": "UploadManager",
|
|
1408
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"kind": "field",
|
|
1413
|
+
"name": "timeout",
|
|
1414
|
+
"inheritedFrom": {
|
|
1415
|
+
"name": "UploadManager",
|
|
1416
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1417
|
+
}
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"kind": "method",
|
|
1421
|
+
"name": "uploadFiles",
|
|
1422
|
+
"parameters": [
|
|
1423
|
+
{
|
|
1424
|
+
"name": "files",
|
|
1425
|
+
"default": "this.#files",
|
|
1426
|
+
"description": "Files being uploaded. Defaults to all outstanding files.",
|
|
1427
|
+
"optional": true,
|
|
1428
|
+
"type": {
|
|
1429
|
+
"text": "UploadFile|UploadFile[]"
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
],
|
|
1433
|
+
"description": "Triggers the upload of any files that are not completed.",
|
|
1434
|
+
"inheritedFrom": {
|
|
1435
|
+
"name": "UploadManager",
|
|
1436
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"kind": "field",
|
|
1441
|
+
"name": "uploadFormat",
|
|
1442
|
+
"inheritedFrom": {
|
|
1443
|
+
"name": "UploadManager",
|
|
1444
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"kind": "field",
|
|
1449
|
+
"name": "withCredentials",
|
|
1450
|
+
"inheritedFrom": {
|
|
1451
|
+
"name": "UploadManager",
|
|
1452
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
],
|
|
1456
|
+
"events": [
|
|
1457
|
+
{
|
|
1458
|
+
"type": {
|
|
1459
|
+
"text": "CustomEvent"
|
|
1460
|
+
},
|
|
1461
|
+
"description": "Fired when disabled changes",
|
|
1462
|
+
"name": "disabled-changed",
|
|
1463
|
+
"inheritedFrom": {
|
|
1464
|
+
"name": "UploadManager",
|
|
1465
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1466
|
+
}
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
"name": "file-reject",
|
|
1470
|
+
"type": {
|
|
1471
|
+
"text": "CustomEvent"
|
|
1472
|
+
},
|
|
1473
|
+
"description": "Fired when a file cannot be added due to constraints",
|
|
1474
|
+
"inheritedFrom": {
|
|
1475
|
+
"name": "UploadManager",
|
|
1476
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1477
|
+
}
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"name": "file-remove",
|
|
1481
|
+
"type": {
|
|
1482
|
+
"text": "CustomEvent"
|
|
1483
|
+
},
|
|
1484
|
+
"description": "Fired when a file is removed from the list",
|
|
1485
|
+
"inheritedFrom": {
|
|
1486
|
+
"name": "UploadManager",
|
|
1487
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
"name": "files-changed",
|
|
1492
|
+
"type": {
|
|
1493
|
+
"text": "CustomEvent"
|
|
1494
|
+
},
|
|
1495
|
+
"description": "Fired when the files array changes",
|
|
1496
|
+
"inheritedFrom": {
|
|
1497
|
+
"name": "UploadManager",
|
|
1498
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
"name": "max-files-reached-changed",
|
|
1503
|
+
"type": {
|
|
1504
|
+
"text": "CustomEvent"
|
|
1505
|
+
},
|
|
1506
|
+
"description": "Fired when maxFilesReached changes",
|
|
1507
|
+
"inheritedFrom": {
|
|
1508
|
+
"name": "UploadManager",
|
|
1509
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"name": "upload-abort",
|
|
1514
|
+
"type": {
|
|
1515
|
+
"text": "CustomEvent"
|
|
1516
|
+
},
|
|
1517
|
+
"description": "Fired when abort is requested",
|
|
1518
|
+
"inheritedFrom": {
|
|
1519
|
+
"name": "UploadManager",
|
|
1520
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1521
|
+
}
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"name": "upload-before",
|
|
1525
|
+
"type": {
|
|
1526
|
+
"text": "CustomEvent"
|
|
1527
|
+
},
|
|
1528
|
+
"description": "Fired before the XHR is opened (can modify uploadTarget)",
|
|
1529
|
+
"inheritedFrom": {
|
|
1530
|
+
"name": "UploadManager",
|
|
1531
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1532
|
+
}
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"name": "upload-error",
|
|
1536
|
+
"type": {
|
|
1537
|
+
"text": "CustomEvent"
|
|
1538
|
+
},
|
|
1539
|
+
"description": "Fired on upload error",
|
|
1540
|
+
"inheritedFrom": {
|
|
1541
|
+
"name": "UploadManager",
|
|
1542
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1543
|
+
}
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
"name": "upload-progress",
|
|
1547
|
+
"type": {
|
|
1548
|
+
"text": "CustomEvent"
|
|
1549
|
+
},
|
|
1550
|
+
"description": "Fired during upload progress",
|
|
1551
|
+
"inheritedFrom": {
|
|
1552
|
+
"name": "UploadManager",
|
|
1553
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1554
|
+
}
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
"name": "upload-request",
|
|
1558
|
+
"type": {
|
|
1559
|
+
"text": "CustomEvent"
|
|
1560
|
+
},
|
|
1561
|
+
"description": "Fired after the XHR is opened (can modify FormData/headers)",
|
|
1562
|
+
"inheritedFrom": {
|
|
1563
|
+
"name": "UploadManager",
|
|
1564
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
"name": "upload-response",
|
|
1569
|
+
"type": {
|
|
1570
|
+
"text": "CustomEvent"
|
|
1571
|
+
},
|
|
1572
|
+
"description": "Fired when response is received",
|
|
1573
|
+
"inheritedFrom": {
|
|
1574
|
+
"name": "UploadManager",
|
|
1575
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1576
|
+
}
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"name": "upload-retry",
|
|
1580
|
+
"type": {
|
|
1581
|
+
"text": "CustomEvent"
|
|
1582
|
+
},
|
|
1583
|
+
"description": "Fired when retry is requested",
|
|
1584
|
+
"inheritedFrom": {
|
|
1585
|
+
"name": "UploadManager",
|
|
1586
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
"name": "upload-start",
|
|
1591
|
+
"type": {
|
|
1592
|
+
"text": "CustomEvent"
|
|
1593
|
+
},
|
|
1594
|
+
"description": "Fired when the upload starts",
|
|
1595
|
+
"inheritedFrom": {
|
|
1596
|
+
"name": "UploadManager",
|
|
1597
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1598
|
+
}
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
"type": {
|
|
1602
|
+
"text": "CustomEvent"
|
|
1603
|
+
},
|
|
1604
|
+
"description": "Fired on successful upload",
|
|
1605
|
+
"name": "upload-success",
|
|
1606
|
+
"inheritedFrom": {
|
|
1607
|
+
"name": "UploadManager",
|
|
1608
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
],
|
|
1612
|
+
"superclass": {
|
|
1613
|
+
"name": "UploadManager",
|
|
1614
|
+
"module": "src/vaadin-upload-manager.js"
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
],
|
|
1618
|
+
"exports": [
|
|
1619
|
+
{
|
|
1620
|
+
"kind": "js",
|
|
1621
|
+
"name": "parseHeaders",
|
|
1622
|
+
"declaration": {
|
|
1623
|
+
"name": "parseHeaders",
|
|
1624
|
+
"module": "src/vaadin-upload-internal-manager.js"
|
|
1625
|
+
}
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
"kind": "js",
|
|
1629
|
+
"name": "InternalUploadManager",
|
|
1630
|
+
"declaration": {
|
|
1631
|
+
"name": "InternalUploadManager",
|
|
1632
|
+
"module": "src/vaadin-upload-internal-manager.js"
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
]
|
|
1636
|
+
},
|
|
1170
1637
|
{
|
|
1171
1638
|
"kind": "javascript-module",
|
|
1172
1639
|
"path": "src/vaadin-upload-manager.js",
|
|
@@ -1474,7 +1941,7 @@
|
|
|
1474
1941
|
"type": {
|
|
1475
1942
|
"text": "object"
|
|
1476
1943
|
},
|
|
1477
|
-
"default": "{ dropFiles: { one: 'Drop file here', many: 'Drop files here', }, addFiles: { one: 'Upload File...', many: 'Upload Files...', }, error:
|
|
1944
|
+
"default": "{ dropFiles: { one: 'Drop file here', many: 'Drop files here', }, addFiles: { one: 'Upload File...', many: 'Upload Files...', }, error: FILE_LIST_DEFAULT_I18N.error, uploading: FILE_LIST_DEFAULT_I18N.uploading, file: FILE_LIST_DEFAULT_I18N.file, units: FILE_LIST_DEFAULT_I18N.units, }"
|
|
1478
1945
|
},
|
|
1479
1946
|
{
|
|
1480
1947
|
"kind": "mixin",
|
|
@@ -1697,43 +2164,7 @@
|
|
|
1697
2164
|
}
|
|
1698
2165
|
},
|
|
1699
2166
|
{
|
|
1700
|
-
"name": "upload-
|
|
1701
|
-
"type": {
|
|
1702
|
-
"text": "CustomEvent"
|
|
1703
|
-
}
|
|
1704
|
-
},
|
|
1705
|
-
{
|
|
1706
|
-
"name": "upload-before",
|
|
1707
|
-
"type": {
|
|
1708
|
-
"text": "CustomEvent"
|
|
1709
|
-
}
|
|
1710
|
-
},
|
|
1711
|
-
{
|
|
1712
|
-
"name": "upload-progress",
|
|
1713
|
-
"type": {
|
|
1714
|
-
"text": "CustomEvent"
|
|
1715
|
-
}
|
|
1716
|
-
},
|
|
1717
|
-
{
|
|
1718
|
-
"name": "upload-request",
|
|
1719
|
-
"type": {
|
|
1720
|
-
"text": "CustomEvent"
|
|
1721
|
-
}
|
|
1722
|
-
},
|
|
1723
|
-
{
|
|
1724
|
-
"name": "upload-response",
|
|
1725
|
-
"type": {
|
|
1726
|
-
"text": "CustomEvent"
|
|
1727
|
-
}
|
|
1728
|
-
},
|
|
1729
|
-
{
|
|
1730
|
-
"name": "upload-retry",
|
|
1731
|
-
"type": {
|
|
1732
|
-
"text": "CustomEvent"
|
|
1733
|
-
}
|
|
1734
|
-
},
|
|
1735
|
-
{
|
|
1736
|
-
"name": "upload-start",
|
|
2167
|
+
"name": "upload-error",
|
|
1737
2168
|
"type": {
|
|
1738
2169
|
"text": "CustomEvent"
|
|
1739
2170
|
}
|
|
@@ -1885,15 +2316,6 @@
|
|
|
1885
2316
|
"name": "superClass"
|
|
1886
2317
|
}
|
|
1887
2318
|
]
|
|
1888
|
-
},
|
|
1889
|
-
{
|
|
1890
|
-
"kind": "variable",
|
|
1891
|
-
"name": "xhr",
|
|
1892
|
-
"default": "(file.xhr = this._createXhr())"
|
|
1893
|
-
},
|
|
1894
|
-
{
|
|
1895
|
-
"kind": "variable",
|
|
1896
|
-
"name": "requestBody"
|
|
1897
2319
|
}
|
|
1898
2320
|
],
|
|
1899
2321
|
"exports": [
|
|
@@ -1921,7 +2343,7 @@
|
|
|
1921
2343
|
"declarations": [
|
|
1922
2344
|
{
|
|
1923
2345
|
"kind": "class",
|
|
1924
|
-
"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
|
|
2346
|
+
"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-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-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-padding` |\n| `--vaadin-upload-file-button-text-color` |\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-list-divider-color` |\n| `--vaadin-upload-file-list-divider-width` |\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| `--vaadin-upload-gap` |\n| `--vaadin-upload-icon-color` |\n| `--vaadin-upload-padding` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
1925
2347
|
"name": "Upload",
|
|
1926
2348
|
"members": [
|
|
1927
2349
|
{
|
|
@@ -2236,88 +2658,64 @@
|
|
|
2236
2658
|
"name": "max-files-reached-changed"
|
|
2237
2659
|
},
|
|
2238
2660
|
{
|
|
2239
|
-
"name": "upload-abort",
|
|
2240
2661
|
"type": {
|
|
2241
2662
|
"text": "CustomEvent"
|
|
2242
2663
|
},
|
|
2243
2664
|
"description": "Fired when upload abort is requested. If the default is prevented, the upload is not aborted.",
|
|
2244
|
-
"
|
|
2245
|
-
"name": "UploadMixin",
|
|
2246
|
-
"module": "src/vaadin-upload-mixin.js"
|
|
2247
|
-
}
|
|
2665
|
+
"name": "upload-abort"
|
|
2248
2666
|
},
|
|
2249
2667
|
{
|
|
2250
|
-
"name": "upload-before",
|
|
2251
2668
|
"type": {
|
|
2252
2669
|
"text": "CustomEvent"
|
|
2253
2670
|
},
|
|
2254
2671
|
"description": "Fired before the XHR is opened. Useful for changing the request URL. If the default is prevented, the XHR is not opened.",
|
|
2255
|
-
"
|
|
2256
|
-
"name": "UploadMixin",
|
|
2257
|
-
"module": "src/vaadin-upload-mixin.js"
|
|
2258
|
-
}
|
|
2672
|
+
"name": "upload-before"
|
|
2259
2673
|
},
|
|
2260
2674
|
{
|
|
2675
|
+
"name": "upload-error",
|
|
2261
2676
|
"type": {
|
|
2262
2677
|
"text": "CustomEvent"
|
|
2263
2678
|
},
|
|
2264
2679
|
"description": "Fired when the upload process fails.",
|
|
2265
|
-
"
|
|
2680
|
+
"inheritedFrom": {
|
|
2681
|
+
"name": "UploadMixin",
|
|
2682
|
+
"module": "src/vaadin-upload-mixin.js"
|
|
2683
|
+
}
|
|
2266
2684
|
},
|
|
2267
2685
|
{
|
|
2268
|
-
"name": "upload-progress",
|
|
2269
2686
|
"type": {
|
|
2270
2687
|
"text": "CustomEvent"
|
|
2271
2688
|
},
|
|
2272
2689
|
"description": "Fired as many times as the progress is updated.",
|
|
2273
|
-
"
|
|
2274
|
-
"name": "UploadMixin",
|
|
2275
|
-
"module": "src/vaadin-upload-mixin.js"
|
|
2276
|
-
}
|
|
2690
|
+
"name": "upload-progress"
|
|
2277
2691
|
},
|
|
2278
2692
|
{
|
|
2279
|
-
"name": "upload-request",
|
|
2280
2693
|
"type": {
|
|
2281
2694
|
"text": "CustomEvent"
|
|
2282
2695
|
},
|
|
2283
2696
|
"description": "Fired when the XHR has been opened but not sent yet. Useful for appending data to the FormData or modifying request parameters. If the default is prevented, the request is not sent.",
|
|
2284
|
-
"
|
|
2285
|
-
"name": "UploadMixin",
|
|
2286
|
-
"module": "src/vaadin-upload-mixin.js"
|
|
2287
|
-
}
|
|
2697
|
+
"name": "upload-request"
|
|
2288
2698
|
},
|
|
2289
2699
|
{
|
|
2290
|
-
"name": "upload-response",
|
|
2291
2700
|
"type": {
|
|
2292
2701
|
"text": "CustomEvent"
|
|
2293
2702
|
},
|
|
2294
2703
|
"description": "Fired when the server response is received, before the component analyzes it. If the default is prevented, the component returns and the listener can handle `xhr` and `file` directly; otherwise the normal flow checks `xhr.status` and `file.error`, which can be modified to force a custom outcome.",
|
|
2295
|
-
"
|
|
2296
|
-
"name": "UploadMixin",
|
|
2297
|
-
"module": "src/vaadin-upload-mixin.js"
|
|
2298
|
-
}
|
|
2704
|
+
"name": "upload-response"
|
|
2299
2705
|
},
|
|
2300
2706
|
{
|
|
2301
|
-
"name": "upload-retry",
|
|
2302
2707
|
"type": {
|
|
2303
2708
|
"text": "CustomEvent"
|
|
2304
2709
|
},
|
|
2305
2710
|
"description": "Fired when retry upload is requested. If the default is prevented, the retry is not performed.",
|
|
2306
|
-
"
|
|
2307
|
-
"name": "UploadMixin",
|
|
2308
|
-
"module": "src/vaadin-upload-mixin.js"
|
|
2309
|
-
}
|
|
2711
|
+
"name": "upload-retry"
|
|
2310
2712
|
},
|
|
2311
2713
|
{
|
|
2312
|
-
"name": "upload-start",
|
|
2313
2714
|
"type": {
|
|
2314
2715
|
"text": "CustomEvent"
|
|
2315
2716
|
},
|
|
2316
2717
|
"description": "Fired when the XHR is sent.",
|
|
2317
|
-
"
|
|
2318
|
-
"name": "UploadMixin",
|
|
2319
|
-
"module": "src/vaadin-upload-mixin.js"
|
|
2320
|
-
}
|
|
2718
|
+
"name": "upload-start"
|
|
2321
2719
|
},
|
|
2322
2720
|
{
|
|
2323
2721
|
"type": {
|