@vaadin/upload 25.1.0-beta2 → 25.1.0-beta3
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 +73 -16
- package/package.json +12 -12
- package/src/vaadin-upload-file.d.ts +4 -0
- package/src/vaadin-upload-file.js +4 -0
- package/src/vaadin-upload-mixin.d.ts +0 -1
- package/src/vaadin-upload-mixin.js +3 -2
- package/src/vaadin-upload.d.ts +8 -0
- package/src/vaadin-upload.js +1 -0
- package/web-types.json +21 -4
- package/web-types.lit.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -328,10 +328,12 @@
|
|
|
328
328
|
{
|
|
329
329
|
"kind": "field",
|
|
330
330
|
"name": "i18n",
|
|
331
|
-
"
|
|
331
|
+
"privacy": "public",
|
|
332
332
|
"type": {
|
|
333
333
|
"text": "Object"
|
|
334
334
|
},
|
|
335
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
336
|
+
"attribute": "i18n",
|
|
335
337
|
"inheritedFrom": {
|
|
336
338
|
"name": "I18nMixin",
|
|
337
339
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -370,6 +372,11 @@
|
|
|
370
372
|
},
|
|
371
373
|
{
|
|
372
374
|
"name": "i18n",
|
|
375
|
+
"type": {
|
|
376
|
+
"text": "Object"
|
|
377
|
+
},
|
|
378
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
379
|
+
"fieldName": "i18n",
|
|
373
380
|
"inheritedFrom": {
|
|
374
381
|
"name": "I18nMixin",
|
|
375
382
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -443,10 +450,12 @@
|
|
|
443
450
|
{
|
|
444
451
|
"kind": "field",
|
|
445
452
|
"name": "i18n",
|
|
446
|
-
"
|
|
453
|
+
"privacy": "public",
|
|
447
454
|
"type": {
|
|
448
455
|
"text": "Object"
|
|
449
456
|
},
|
|
457
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
458
|
+
"attribute": "i18n",
|
|
450
459
|
"inheritedFrom": {
|
|
451
460
|
"name": "I18nMixin",
|
|
452
461
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -517,6 +526,11 @@
|
|
|
517
526
|
},
|
|
518
527
|
{
|
|
519
528
|
"name": "i18n",
|
|
529
|
+
"type": {
|
|
530
|
+
"text": "Object"
|
|
531
|
+
},
|
|
532
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
533
|
+
"fieldName": "i18n",
|
|
520
534
|
"inheritedFrom": {
|
|
521
535
|
"name": "I18nMixin",
|
|
522
536
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -945,6 +959,29 @@
|
|
|
945
959
|
}
|
|
946
960
|
}
|
|
947
961
|
],
|
|
962
|
+
"events": [
|
|
963
|
+
{
|
|
964
|
+
"type": {
|
|
965
|
+
"text": "CustomEvent"
|
|
966
|
+
},
|
|
967
|
+
"description": "Fired when the abort button is pressed.",
|
|
968
|
+
"name": "file-abort"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"type": {
|
|
972
|
+
"text": "CustomEvent"
|
|
973
|
+
},
|
|
974
|
+
"description": "Fired when the retry button is pressed.",
|
|
975
|
+
"name": "file-retry"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"type": {
|
|
979
|
+
"text": "CustomEvent"
|
|
980
|
+
},
|
|
981
|
+
"description": "Fired when the start button is pressed.",
|
|
982
|
+
"name": "file-start"
|
|
983
|
+
}
|
|
984
|
+
],
|
|
948
985
|
"mixins": [
|
|
949
986
|
{
|
|
950
987
|
"name": "UploadFileMixin",
|
|
@@ -1078,8 +1115,7 @@
|
|
|
1078
1115
|
"module": "src/vaadin-upload-file-mixin.js"
|
|
1079
1116
|
}
|
|
1080
1117
|
}
|
|
1081
|
-
]
|
|
1082
|
-
"events": []
|
|
1118
|
+
]
|
|
1083
1119
|
}
|
|
1084
1120
|
],
|
|
1085
1121
|
"exports": [
|
|
@@ -1272,12 +1308,6 @@
|
|
|
1272
1308
|
"description": "Fired when disabled changes",
|
|
1273
1309
|
"name": "disabled-changed"
|
|
1274
1310
|
},
|
|
1275
|
-
{
|
|
1276
|
-
"name": "eventName",
|
|
1277
|
-
"type": {
|
|
1278
|
-
"text": "CustomEvent"
|
|
1279
|
-
}
|
|
1280
|
-
},
|
|
1281
1311
|
{
|
|
1282
1312
|
"name": "file-reject",
|
|
1283
1313
|
"type": {
|
|
@@ -1427,6 +1457,9 @@
|
|
|
1427
1457
|
"kind": "field",
|
|
1428
1458
|
"name": "capture",
|
|
1429
1459
|
"privacy": "public",
|
|
1460
|
+
"type": {
|
|
1461
|
+
"text": "string"
|
|
1462
|
+
},
|
|
1430
1463
|
"description": "Pass-through to input's capture attribute. Allows user to trigger device inputs\nsuch as camera or microphone immediately.",
|
|
1431
1464
|
"attribute": "capture"
|
|
1432
1465
|
},
|
|
@@ -1473,10 +1506,12 @@
|
|
|
1473
1506
|
{
|
|
1474
1507
|
"kind": "field",
|
|
1475
1508
|
"name": "i18n",
|
|
1476
|
-
"
|
|
1509
|
+
"privacy": "public",
|
|
1477
1510
|
"type": {
|
|
1478
1511
|
"text": "Object"
|
|
1479
1512
|
},
|
|
1513
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n\n```js\n{\n dropFiles: {\n one: 'Drop file here',\n many: 'Drop files here'\n },\n addFiles: {\n one: 'Upload File...',\n many: 'Upload Files...'\n },\n error: {\n tooManyFiles: 'Too Many Files.',\n fileIsTooBig: 'File is Too Big.',\n incorrectFileType: 'Incorrect File Type.'\n },\n uploading: {\n status: {\n connecting: 'Connecting...',\n stalled: 'Stalled',\n processing: 'Processing File...',\n held: 'Queued'\n },\n remainingTime: {\n prefix: 'remaining time: ',\n unknown: 'unknown remaining time'\n },\n error: {\n serverUnavailable: 'Upload failed, please try again later',\n unexpectedServerError: 'Upload failed due to server error',\n forbidden: 'Upload forbidden'\n }\n },\n file: {\n retry: 'Retry',\n start: 'Start',\n remove: 'Remove'\n },\n units: {\n size: ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],\n sizeBase: 1000\n },\n formatSize: function(bytes) {\n // returns the size followed by the best suitable unit\n },\n formatTime: function(seconds, [secs, mins, hours]) {\n // returns a 'HH:MM:SS' string\n }\n}\n```",
|
|
1514
|
+
"attribute": "i18n",
|
|
1480
1515
|
"inheritedFrom": {
|
|
1481
1516
|
"name": "I18nMixin",
|
|
1482
1517
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -1528,7 +1563,7 @@
|
|
|
1528
1563
|
"name": "method",
|
|
1529
1564
|
"privacy": "public",
|
|
1530
1565
|
"type": {
|
|
1531
|
-
"text": "
|
|
1566
|
+
"text": "string"
|
|
1532
1567
|
},
|
|
1533
1568
|
"description": "HTTP Method used to send the files. Only POST and PUT are allowed.",
|
|
1534
1569
|
"attribute": "method"
|
|
@@ -1677,6 +1712,9 @@
|
|
|
1677
1712
|
},
|
|
1678
1713
|
{
|
|
1679
1714
|
"name": "capture",
|
|
1715
|
+
"type": {
|
|
1716
|
+
"text": "string"
|
|
1717
|
+
},
|
|
1680
1718
|
"description": "Pass-through to input's capture attribute. Allows user to trigger device inputs\nsuch as camera or microphone immediately.",
|
|
1681
1719
|
"fieldName": "capture"
|
|
1682
1720
|
},
|
|
@@ -1698,6 +1736,11 @@
|
|
|
1698
1736
|
},
|
|
1699
1737
|
{
|
|
1700
1738
|
"name": "i18n",
|
|
1739
|
+
"type": {
|
|
1740
|
+
"text": "Object"
|
|
1741
|
+
},
|
|
1742
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
1743
|
+
"fieldName": "i18n",
|
|
1701
1744
|
"inheritedFrom": {
|
|
1702
1745
|
"name": "I18nMixin",
|
|
1703
1746
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -1738,7 +1781,7 @@
|
|
|
1738
1781
|
{
|
|
1739
1782
|
"name": "method",
|
|
1740
1783
|
"type": {
|
|
1741
|
-
"text": "
|
|
1784
|
+
"text": "string"
|
|
1742
1785
|
},
|
|
1743
1786
|
"description": "HTTP Method used to send the files. Only POST and PUT are allowed.",
|
|
1744
1787
|
"fieldName": "method"
|
|
@@ -1861,6 +1904,9 @@
|
|
|
1861
1904
|
"kind": "field",
|
|
1862
1905
|
"name": "capture",
|
|
1863
1906
|
"privacy": "public",
|
|
1907
|
+
"type": {
|
|
1908
|
+
"text": "string"
|
|
1909
|
+
},
|
|
1864
1910
|
"description": "Pass-through to input's capture attribute. Allows user to trigger device inputs\nsuch as camera or microphone immediately.",
|
|
1865
1911
|
"attribute": "capture",
|
|
1866
1912
|
"inheritedFrom": {
|
|
@@ -1927,10 +1973,12 @@
|
|
|
1927
1973
|
{
|
|
1928
1974
|
"kind": "field",
|
|
1929
1975
|
"name": "i18n",
|
|
1930
|
-
"
|
|
1976
|
+
"privacy": "public",
|
|
1931
1977
|
"type": {
|
|
1932
1978
|
"text": "Object"
|
|
1933
1979
|
},
|
|
1980
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n\n```js\n{\n dropFiles: {\n one: 'Drop file here',\n many: 'Drop files here'\n },\n addFiles: {\n one: 'Upload File...',\n many: 'Upload Files...'\n },\n error: {\n tooManyFiles: 'Too Many Files.',\n fileIsTooBig: 'File is Too Big.',\n incorrectFileType: 'Incorrect File Type.'\n },\n uploading: {\n status: {\n connecting: 'Connecting...',\n stalled: 'Stalled',\n processing: 'Processing File...',\n held: 'Queued'\n },\n remainingTime: {\n prefix: 'remaining time: ',\n unknown: 'unknown remaining time'\n },\n error: {\n serverUnavailable: 'Upload failed, please try again later',\n unexpectedServerError: 'Upload failed due to server error',\n forbidden: 'Upload forbidden'\n }\n },\n file: {\n retry: 'Retry',\n start: 'Start',\n remove: 'Remove'\n },\n units: {\n size: ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],\n sizeBase: 1000\n },\n formatSize: function(bytes) {\n // returns the size followed by the best suitable unit\n },\n formatTime: function(seconds, [secs, mins, hours]) {\n // returns a 'HH:MM:SS' string\n }\n}\n```",
|
|
1981
|
+
"attribute": "i18n",
|
|
1934
1982
|
"inheritedFrom": {
|
|
1935
1983
|
"name": "I18nMixin",
|
|
1936
1984
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -1998,7 +2046,7 @@
|
|
|
1998
2046
|
"name": "method",
|
|
1999
2047
|
"privacy": "public",
|
|
2000
2048
|
"type": {
|
|
2001
|
-
"text": "
|
|
2049
|
+
"text": "string"
|
|
2002
2050
|
},
|
|
2003
2051
|
"description": "HTTP Method used to send the files. Only POST and PUT are allowed.",
|
|
2004
2052
|
"attribute": "method",
|
|
@@ -2129,6 +2177,7 @@
|
|
|
2129
2177
|
"type": {
|
|
2130
2178
|
"text": "CustomEvent"
|
|
2131
2179
|
},
|
|
2180
|
+
"description": "Fired when a file is removed from the list.",
|
|
2132
2181
|
"inheritedFrom": {
|
|
2133
2182
|
"name": "UploadMixin",
|
|
2134
2183
|
"module": "src/vaadin-upload-mixin.js"
|
|
@@ -2283,6 +2332,9 @@
|
|
|
2283
2332
|
},
|
|
2284
2333
|
{
|
|
2285
2334
|
"name": "capture",
|
|
2335
|
+
"type": {
|
|
2336
|
+
"text": "string"
|
|
2337
|
+
},
|
|
2286
2338
|
"description": "Pass-through to input's capture attribute. Allows user to trigger device inputs\nsuch as camera or microphone immediately.",
|
|
2287
2339
|
"fieldName": "capture",
|
|
2288
2340
|
"inheritedFrom": {
|
|
@@ -2316,6 +2368,11 @@
|
|
|
2316
2368
|
},
|
|
2317
2369
|
{
|
|
2318
2370
|
"name": "i18n",
|
|
2371
|
+
"type": {
|
|
2372
|
+
"text": "Object"
|
|
2373
|
+
},
|
|
2374
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
2375
|
+
"fieldName": "i18n",
|
|
2319
2376
|
"inheritedFrom": {
|
|
2320
2377
|
"name": "I18nMixin",
|
|
2321
2378
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -2372,7 +2429,7 @@
|
|
|
2372
2429
|
{
|
|
2373
2430
|
"name": "method",
|
|
2374
2431
|
"type": {
|
|
2375
|
-
"text": "
|
|
2432
|
+
"text": "string"
|
|
2376
2433
|
},
|
|
2377
2434
|
"description": "HTTP Method used to send the files. Only POST and PUT are allowed.",
|
|
2378
2435
|
"fieldName": "method",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/upload",
|
|
3
|
-
"version": "25.1.0-
|
|
3
|
+
"version": "25.1.0-beta3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,25 +35,25 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.1.0-
|
|
39
|
-
"@vaadin/button": "25.1.0-
|
|
40
|
-
"@vaadin/component-base": "25.1.0-
|
|
41
|
-
"@vaadin/progress-bar": "25.1.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "25.1.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.1.0-beta3",
|
|
39
|
+
"@vaadin/button": "25.1.0-beta3",
|
|
40
|
+
"@vaadin/component-base": "25.1.0-beta3",
|
|
41
|
+
"@vaadin/progress-bar": "25.1.0-beta3",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "25.1.0-beta3",
|
|
43
43
|
"lit": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/aura": "25.1.0-
|
|
47
|
-
"@vaadin/chai-plugins": "25.1.0-
|
|
48
|
-
"@vaadin/test-runner-commands": "25.1.0-
|
|
46
|
+
"@vaadin/aura": "25.1.0-beta3",
|
|
47
|
+
"@vaadin/chai-plugins": "25.1.0-beta3",
|
|
48
|
+
"@vaadin/test-runner-commands": "25.1.0-beta3",
|
|
49
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "25.1.0-
|
|
51
|
-
"sinon": "^21.0.
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "25.1.0-beta3",
|
|
51
|
+
"sinon": "^21.0.2"
|
|
52
52
|
},
|
|
53
53
|
"customElements": "custom-elements.json",
|
|
54
54
|
"web-types": [
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "4251850231a42298fda23b83928da588831cdb5d"
|
|
59
59
|
}
|
|
@@ -96,6 +96,10 @@ export interface UploadFileEventMap extends HTMLElementEventMap, UploadFileCusto
|
|
|
96
96
|
* `--vaadin-upload-file-warning-color` |
|
|
97
97
|
*
|
|
98
98
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
99
|
+
*
|
|
100
|
+
* @fires {CustomEvent} file-abort - Fired when the abort button is pressed.
|
|
101
|
+
* @fires {CustomEvent} file-retry - Fired when the retry button is pressed.
|
|
102
|
+
* @fires {CustomEvent} file-start - Fired when the start button is pressed.
|
|
99
103
|
*/
|
|
100
104
|
declare class UploadFile extends UploadFileMixin(ThemableMixin(HTMLElement)) {
|
|
101
105
|
addEventListener<K extends keyof UploadFileEventMap>(
|
|
@@ -77,6 +77,10 @@ import { UploadFileMixin } from './vaadin-upload-file-mixin.js';
|
|
|
77
77
|
*
|
|
78
78
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
79
79
|
*
|
|
80
|
+
* @fires {CustomEvent} file-abort - Fired when the abort button is pressed.
|
|
81
|
+
* @fires {CustomEvent} file-retry - Fired when the retry button is pressed.
|
|
82
|
+
* @fires {CustomEvent} file-start - Fired when the start button is pressed.
|
|
83
|
+
*
|
|
80
84
|
* @customElement vaadin-upload-file
|
|
81
85
|
* @extends HTMLElement
|
|
82
86
|
* @mixes UploadFileMixin
|
|
@@ -147,7 +147,6 @@ export const UploadMixin = (superClass) =>
|
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* HTTP Method used to send the files. Only POST and PUT are allowed.
|
|
150
|
-
* @type {!UploadMethod}
|
|
151
150
|
*/
|
|
152
151
|
method: {
|
|
153
152
|
type: String,
|
|
@@ -329,7 +328,9 @@ export const UploadMixin = (superClass) =>
|
|
|
329
328
|
* Pass-through to input's capture attribute. Allows user to trigger device inputs
|
|
330
329
|
* such as camera or microphone immediately.
|
|
331
330
|
*/
|
|
332
|
-
capture:
|
|
331
|
+
capture: {
|
|
332
|
+
type: String,
|
|
333
|
+
},
|
|
333
334
|
|
|
334
335
|
/** @private */
|
|
335
336
|
_addButton: {
|
package/src/vaadin-upload.d.ts
CHANGED
|
@@ -77,6 +77,11 @@ export type UploadRetryEvent = UploadEvent<{ xhr: XMLHttpRequest; file: UploadFi
|
|
|
77
77
|
*/
|
|
78
78
|
export type UploadAbortEvent = UploadEvent<{ xhr: XMLHttpRequest; file: UploadFile }>;
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Fired when a file is removed from the list.
|
|
82
|
+
*/
|
|
83
|
+
export type UploadFileRemoveEvent = UploadEvent<{ file: UploadFile }>;
|
|
84
|
+
|
|
80
85
|
/**
|
|
81
86
|
* Fired when the XHR has been opened but not sent yet. Useful for appending
|
|
82
87
|
* data keys to the FormData object, for changing some parameters like
|
|
@@ -94,6 +99,8 @@ export type UploadRequestEvent = UploadEvent<{
|
|
|
94
99
|
export interface UploadCustomEventMap {
|
|
95
100
|
'file-reject': UploadFileRejectEvent;
|
|
96
101
|
|
|
102
|
+
'file-remove': UploadFileRemoveEvent;
|
|
103
|
+
|
|
97
104
|
'files-changed': UploadFilesChangedEvent;
|
|
98
105
|
|
|
99
106
|
'max-files-reached-changed': UploadMaxFilesReachedChangedEvent;
|
|
@@ -191,6 +198,7 @@ export interface UploadEventMap extends HTMLElementEventMap, UploadCustomEventMa
|
|
|
191
198
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
192
199
|
*
|
|
193
200
|
* @fires {CustomEvent} file-reject - Fired when a file cannot be added to the queue due to a constrain.
|
|
201
|
+
* @fires {CustomEvent} file-remove - Fired when a file is removed from the list.
|
|
194
202
|
* @fires {CustomEvent} files-changed - Fired when the `files` property changes.
|
|
195
203
|
* @fires {CustomEvent} max-files-reached-changed - Fired when the `maxFilesReached` property changes.
|
|
196
204
|
* @fires {CustomEvent} upload-before - Fired before the XHR is opened.
|
package/src/vaadin-upload.js
CHANGED
|
@@ -89,6 +89,7 @@ import { UploadMixin } from './vaadin-upload-mixin.js';
|
|
|
89
89
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
90
90
|
*
|
|
91
91
|
* @fires {CustomEvent} file-reject - Fired when a file cannot be added to the queue due to a constrain.
|
|
92
|
+
* @fires {CustomEvent} file-remove - Fired when a file is removed from the list.
|
|
92
93
|
* @fires {CustomEvent} files-changed - Fired when the `files` property changes.
|
|
93
94
|
* @fires {CustomEvent} max-files-reached-changed - Fired when the `maxFilesReached` property changes.
|
|
94
95
|
* @fires {CustomEvent} upload-before - Fired before the XHR is opened.
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/upload",
|
|
4
|
-
"version": "25.1.0-
|
|
4
|
+
"version": "25.1.0-beta3",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -448,6 +448,17 @@
|
|
|
448
448
|
]
|
|
449
449
|
}
|
|
450
450
|
},
|
|
451
|
+
{
|
|
452
|
+
"name": "i18n",
|
|
453
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
454
|
+
"value": {
|
|
455
|
+
"type": [
|
|
456
|
+
"Object",
|
|
457
|
+
"null",
|
|
458
|
+
"undefined"
|
|
459
|
+
]
|
|
460
|
+
}
|
|
461
|
+
},
|
|
451
462
|
{
|
|
452
463
|
"name": "theme",
|
|
453
464
|
"description": "The theme variants to apply to the component.",
|
|
@@ -478,7 +489,9 @@
|
|
|
478
489
|
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
479
490
|
"value": {
|
|
480
491
|
"type": [
|
|
481
|
-
"
|
|
492
|
+
"Object",
|
|
493
|
+
"null",
|
|
494
|
+
"undefined"
|
|
482
495
|
]
|
|
483
496
|
}
|
|
484
497
|
},
|
|
@@ -593,7 +606,9 @@
|
|
|
593
606
|
"description": "HTTP Method used to send the files. Only POST and PUT are allowed.",
|
|
594
607
|
"value": {
|
|
595
608
|
"type": [
|
|
596
|
-
"
|
|
609
|
+
"string",
|
|
610
|
+
"null",
|
|
611
|
+
"undefined"
|
|
597
612
|
]
|
|
598
613
|
}
|
|
599
614
|
},
|
|
@@ -787,7 +802,9 @@
|
|
|
787
802
|
"description": "HTTP Method used to send the files. Only POST and PUT are allowed.",
|
|
788
803
|
"value": {
|
|
789
804
|
"type": [
|
|
790
|
-
"
|
|
805
|
+
"string",
|
|
806
|
+
"null",
|
|
807
|
+
"undefined"
|
|
791
808
|
]
|
|
792
809
|
}
|
|
793
810
|
},
|