@vaadin/upload 25.3.0 → 25.4.0-dev.55bb86e155
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 +16 -16
- package/package.json +11 -11
- package/src/vaadin-upload-file-list-mixin.d.ts +4 -2
- package/src/vaadin-upload-file-list-mixin.js +4 -2
- package/src/vaadin-upload-mixin.d.ts +4 -4
- package/src/vaadin-upload-mixin.js +4 -2
- package/web-types.json +7 -5
- package/web-types.lit.json +3 -3
package/custom-elements.json
CHANGED
|
@@ -362,9 +362,9 @@
|
|
|
362
362
|
"name": "i18n",
|
|
363
363
|
"privacy": "public",
|
|
364
364
|
"type": {
|
|
365
|
-
"text": "Object"
|
|
365
|
+
"text": "Object | undefined"
|
|
366
366
|
},
|
|
367
|
-
"description": "The object used to localize this component.\nTo change the default localization,
|
|
367
|
+
"description": "The object used to localize this component.\nTo change the default localization, set this to an object\nthat provides all properties, or just the individual properties\nyou want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following JSON structure and default values:\n```js\n{\n file: {\n retry: 'Retry',\n start: 'Start',\n remove: 'Remove'\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 fileTooLarge: 'File is too large'\n }\n },\n units: {\n size: ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']\n }\n}\n```",
|
|
368
368
|
"attribute": "i18n",
|
|
369
369
|
"inheritedFrom": {
|
|
370
370
|
"name": "I18nMixin",
|
|
@@ -405,9 +405,9 @@
|
|
|
405
405
|
{
|
|
406
406
|
"name": "i18n",
|
|
407
407
|
"type": {
|
|
408
|
-
"text": "Object"
|
|
408
|
+
"text": "Object | undefined"
|
|
409
409
|
},
|
|
410
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
410
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
411
411
|
"fieldName": "i18n",
|
|
412
412
|
"inheritedFrom": {
|
|
413
413
|
"name": "I18nMixin",
|
|
@@ -492,9 +492,9 @@
|
|
|
492
492
|
"name": "i18n",
|
|
493
493
|
"privacy": "public",
|
|
494
494
|
"type": {
|
|
495
|
-
"text": "Object"
|
|
495
|
+
"text": "Object | undefined"
|
|
496
496
|
},
|
|
497
|
-
"description": "The object used to localize this component.\nTo change the default localization,
|
|
497
|
+
"description": "The object used to localize this component.\nTo change the default localization, set this to an object\nthat provides all properties, or just the individual properties\nyou want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following JSON structure and default values:\n```js\n{\n file: {\n retry: 'Retry',\n start: 'Start',\n remove: 'Remove'\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 fileTooLarge: 'File is too large'\n }\n },\n units: {\n size: ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']\n }\n}\n```",
|
|
498
498
|
"attribute": "i18n",
|
|
499
499
|
"inheritedFrom": {
|
|
500
500
|
"name": "I18nMixin",
|
|
@@ -547,9 +547,9 @@
|
|
|
547
547
|
{
|
|
548
548
|
"name": "i18n",
|
|
549
549
|
"type": {
|
|
550
|
-
"text": "Object"
|
|
550
|
+
"text": "Object | undefined"
|
|
551
551
|
},
|
|
552
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
552
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
553
553
|
"fieldName": "i18n",
|
|
554
554
|
"inheritedFrom": {
|
|
555
555
|
"name": "I18nMixin",
|
|
@@ -2013,9 +2013,9 @@
|
|
|
2013
2013
|
"name": "i18n",
|
|
2014
2014
|
"privacy": "public",
|
|
2015
2015
|
"type": {
|
|
2016
|
-
"text": "Object"
|
|
2016
|
+
"text": "Object | undefined"
|
|
2017
2017
|
},
|
|
2018
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
2018
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\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 fileTooLarge: 'File is too large'\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```",
|
|
2019
2019
|
"attribute": "i18n",
|
|
2020
2020
|
"inheritedFrom": {
|
|
2021
2021
|
"name": "I18nMixin",
|
|
@@ -2206,9 +2206,9 @@
|
|
|
2206
2206
|
{
|
|
2207
2207
|
"name": "i18n",
|
|
2208
2208
|
"type": {
|
|
2209
|
-
"text": "Object"
|
|
2209
|
+
"text": "Object | undefined"
|
|
2210
2210
|
},
|
|
2211
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
2211
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
2212
2212
|
"fieldName": "i18n",
|
|
2213
2213
|
"inheritedFrom": {
|
|
2214
2214
|
"name": "I18nMixin",
|
|
@@ -2435,9 +2435,9 @@
|
|
|
2435
2435
|
"name": "i18n",
|
|
2436
2436
|
"privacy": "public",
|
|
2437
2437
|
"type": {
|
|
2438
|
-
"text": "Object"
|
|
2438
|
+
"text": "Object | undefined"
|
|
2439
2439
|
},
|
|
2440
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
2440
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\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 fileTooLarge: 'File is too large'\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```",
|
|
2441
2441
|
"attribute": "i18n",
|
|
2442
2442
|
"inheritedFrom": {
|
|
2443
2443
|
"name": "I18nMixin",
|
|
@@ -2777,9 +2777,9 @@
|
|
|
2777
2777
|
{
|
|
2778
2778
|
"name": "i18n",
|
|
2779
2779
|
"type": {
|
|
2780
|
-
"text": "Object"
|
|
2780
|
+
"text": "Object | undefined"
|
|
2781
2781
|
},
|
|
2782
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
2782
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
2783
2783
|
"fieldName": "i18n",
|
|
2784
2784
|
"inheritedFrom": {
|
|
2785
2785
|
"name": "I18nMixin",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/upload",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.4.0-dev.55bb86e155",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "
|
|
39
|
-
"@vaadin/button": "
|
|
40
|
-
"@vaadin/component-base": "
|
|
41
|
-
"@vaadin/progress-bar": "
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
38
|
+
"@vaadin/a11y-base": "25.4.0-dev.55bb86e155",
|
|
39
|
+
"@vaadin/button": "25.4.0-dev.55bb86e155",
|
|
40
|
+
"@vaadin/component-base": "25.4.0-dev.55bb86e155",
|
|
41
|
+
"@vaadin/progress-bar": "25.4.0-dev.55bb86e155",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "25.4.0-dev.55bb86e155",
|
|
43
43
|
"lit": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/aura": "
|
|
47
|
-
"@vaadin/chai-plugins": "
|
|
48
|
-
"@vaadin/test-runner-commands": "
|
|
46
|
+
"@vaadin/aura": "25.4.0-dev.55bb86e155",
|
|
47
|
+
"@vaadin/chai-plugins": "25.4.0-dev.55bb86e155",
|
|
48
|
+
"@vaadin/test-runner-commands": "25.4.0-dev.55bb86e155",
|
|
49
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "25.4.0-dev.55bb86e155",
|
|
51
51
|
"sinon": "^22.0.0"
|
|
52
52
|
},
|
|
53
53
|
"customElements": "custom-elements.json",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "5db8e58fb088121b067290b0ed90d12d7d4084f2"
|
|
59
59
|
}
|
|
@@ -67,10 +67,12 @@ export declare class UploadFileListMixinClass {
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The object used to localize this component.
|
|
70
|
-
* To change the default localization,
|
|
70
|
+
* To change the default localization, set this to an object
|
|
71
71
|
* that provides all properties, or just the individual properties
|
|
72
72
|
* you want to change.
|
|
73
73
|
*
|
|
74
|
+
* When not set, defaults to `undefined`.
|
|
75
|
+
*
|
|
74
76
|
* The object has the following JSON structure and default values:
|
|
75
77
|
* ```js
|
|
76
78
|
* {
|
|
@@ -108,5 +110,5 @@ export declare class UploadFileListMixinClass {
|
|
|
108
110
|
* }
|
|
109
111
|
* ```
|
|
110
112
|
*/
|
|
111
|
-
i18n: UploadFileListI18n;
|
|
113
|
+
i18n: UploadFileListI18n | undefined;
|
|
112
114
|
}
|
|
@@ -89,10 +89,12 @@ export const UploadFileListMixin = (superClass) =>
|
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* The object used to localize this component.
|
|
92
|
-
* To change the default localization,
|
|
92
|
+
* To change the default localization, set this to an object
|
|
93
93
|
* that provides all properties, or just the individual properties
|
|
94
94
|
* you want to change.
|
|
95
95
|
*
|
|
96
|
+
* When not set, defaults to `undefined`.
|
|
97
|
+
*
|
|
96
98
|
* The object has the following JSON structure and default values:
|
|
97
99
|
* ```js
|
|
98
100
|
* {
|
|
@@ -129,7 +131,7 @@ export const UploadFileListMixin = (superClass) =>
|
|
|
129
131
|
* }
|
|
130
132
|
* }
|
|
131
133
|
* ```
|
|
132
|
-
* @type {
|
|
134
|
+
* @type {UploadFileListI18n | undefined}
|
|
133
135
|
*/
|
|
134
136
|
get i18n() {
|
|
135
137
|
return super.i18n;
|
|
@@ -178,9 +178,11 @@ export declare class UploadMixinClass {
|
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
* The object used to localize this component. To change the default
|
|
181
|
-
* localization,
|
|
181
|
+
* localization, set this to an object that provides all properties, or
|
|
182
182
|
* just the individual properties you want to change.
|
|
183
183
|
*
|
|
184
|
+
* When not set, defaults to `undefined`.
|
|
185
|
+
*
|
|
184
186
|
* The object has the following JSON structure and default values:
|
|
185
187
|
*
|
|
186
188
|
* ```js
|
|
@@ -233,10 +235,8 @@ export declare class UploadMixinClass {
|
|
|
233
235
|
* }
|
|
234
236
|
* }
|
|
235
237
|
* ```
|
|
236
|
-
*
|
|
237
|
-
* @default {English}
|
|
238
238
|
*/
|
|
239
|
-
i18n: UploadI18n;
|
|
239
|
+
i18n: UploadI18n | undefined;
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
242
|
* Triggers the upload of any files that are not completed
|
|
@@ -285,9 +285,11 @@ export const UploadMixin = (superClass) =>
|
|
|
285
285
|
|
|
286
286
|
/**
|
|
287
287
|
* The object used to localize this component. To change the default
|
|
288
|
-
* localization,
|
|
288
|
+
* localization, set this to an object that provides all properties, or
|
|
289
289
|
* just the individual properties you want to change.
|
|
290
290
|
*
|
|
291
|
+
* When not set, defaults to `undefined`.
|
|
292
|
+
*
|
|
291
293
|
* The object has the following JSON structure and default values:
|
|
292
294
|
*
|
|
293
295
|
* ```js
|
|
@@ -340,7 +342,7 @@ export const UploadMixin = (superClass) =>
|
|
|
340
342
|
* }
|
|
341
343
|
* }
|
|
342
344
|
* ```
|
|
343
|
-
* @type {
|
|
345
|
+
* @type {UploadI18n | undefined}
|
|
344
346
|
*/
|
|
345
347
|
get i18n() {
|
|
346
348
|
return super.i18n;
|
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.
|
|
4
|
+
"version": "25.4.0-dev.55bb86e155",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -174,10 +174,11 @@
|
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
"name": "i18n",
|
|
177
|
-
"description": "The object used to localize this component.\nTo change the default localization,
|
|
177
|
+
"description": "The object used to localize this component.\nTo change the default localization, set this to an object\nthat provides all properties, or just the individual properties\nyou want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following JSON structure and default values:\n```js\n{\n file: {\n retry: 'Retry',\n start: 'Start',\n remove: 'Remove'\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 fileTooLarge: 'File is too large'\n }\n },\n units: {\n size: ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']\n }\n}\n```",
|
|
178
178
|
"value": {
|
|
179
179
|
"type": [
|
|
180
|
-
"Object"
|
|
180
|
+
"Object",
|
|
181
|
+
"undefined"
|
|
181
182
|
]
|
|
182
183
|
}
|
|
183
184
|
},
|
|
@@ -607,10 +608,11 @@
|
|
|
607
608
|
},
|
|
608
609
|
{
|
|
609
610
|
"name": "i18n",
|
|
610
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
611
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\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 fileTooLarge: 'File is too large'\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```",
|
|
611
612
|
"value": {
|
|
612
613
|
"type": [
|
|
613
|
-
"Object"
|
|
614
|
+
"Object",
|
|
615
|
+
"undefined"
|
|
614
616
|
]
|
|
615
617
|
}
|
|
616
618
|
},
|
package/web-types.lit.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.
|
|
4
|
+
"version": "25.4.0-dev.55bb86e155",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"name": ".i18n",
|
|
87
|
-
"description": "The object used to localize this component.\nTo change the default localization,
|
|
87
|
+
"description": "The object used to localize this component.\nTo change the default localization, set this to an object\nthat provides all properties, or just the individual properties\nyou want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following JSON structure and default values:\n```js\n{\n file: {\n retry: 'Retry',\n start: 'Start',\n remove: 'Remove'\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 fileTooLarge: 'File is too large'\n }\n },\n units: {\n size: ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']\n }\n}\n```",
|
|
88
88
|
"value": {
|
|
89
89
|
"kind": "expression"
|
|
90
90
|
}
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
"name": ".i18n",
|
|
255
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
255
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\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 fileTooLarge: 'File is too large'\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```",
|
|
256
256
|
"value": {
|
|
257
257
|
"kind": "expression"
|
|
258
258
|
}
|