@vaadin/upload 25.1.0-alpha9 → 25.1.0-beta2

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.
@@ -155,18 +155,6 @@
155
155
  },
156
156
  "description": "True when max files has been reached on the manager.",
157
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
158
  }
171
159
  ],
172
160
  "mixins": [
@@ -262,13 +250,6 @@
262
250
  "description": "Whether the drop zone is disabled.\nReturns true if either explicitly disabled, manager is disabled, or no manager is set.",
263
251
  "fieldName": "disabled"
264
252
  },
265
- {
266
- "name": "dragover",
267
- "type": {
268
- "text": "boolean"
269
- },
270
- "fieldName": "__dragover"
271
- },
272
253
  {
273
254
  "name": "manager",
274
255
  "type": {
@@ -348,19 +329,9 @@
348
329
  "kind": "field",
349
330
  "name": "i18n",
350
331
  "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.",
351
- "return": {
352
- "type": {
353
- "text": "Object"
354
- }
332
+ "type": {
333
+ "text": "Object"
355
334
  },
356
- "parameters": [
357
- {
358
- "name": "value",
359
- "type": {
360
- "text": "Object"
361
- }
362
- }
363
- ],
364
335
  "inheritedFrom": {
365
336
  "name": "I18nMixin",
366
337
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -473,19 +444,9 @@
473
444
  "kind": "field",
474
445
  "name": "i18n",
475
446
  "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.",
476
- "return": {
477
- "type": {
478
- "text": "Object"
479
- }
447
+ "type": {
448
+ "text": "Object"
480
449
  },
481
- "parameters": [
482
- {
483
- "name": "value",
484
- "type": {
485
- "text": "Object"
486
- }
487
- }
488
- ],
489
450
  "inheritedFrom": {
490
451
  "name": "I18nMixin",
491
452
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -787,14 +748,6 @@
787
748
  "description": "Uploading status.",
788
749
  "fieldName": "status"
789
750
  },
790
- {
791
- "name": "tabindex",
792
- "type": {
793
- "text": "number"
794
- },
795
- "description": "Indicates whether the element can be focused and where it participates in sequential keyboard navigation.",
796
- "fieldName": "tabindex"
797
- },
798
751
  {
799
752
  "name": "uploading",
800
753
  "type": {
@@ -834,7 +787,7 @@
834
787
  "declarations": [
835
788
  {
836
789
  "kind": "class",
837
- "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.",
790
+ "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`loader` | Loading spinner (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.",
838
791
  "name": "UploadFile",
839
792
  "members": [
840
793
  {
@@ -1113,18 +1066,6 @@
1113
1066
  "module": "src/vaadin-upload-file-mixin.js"
1114
1067
  }
1115
1068
  },
1116
- {
1117
- "name": "tabindex",
1118
- "type": {
1119
- "text": "number"
1120
- },
1121
- "description": "Indicates whether the element can be focused and where it participates in sequential keyboard navigation.",
1122
- "fieldName": "tabindex",
1123
- "inheritedFrom": {
1124
- "name": "UploadFileMixin",
1125
- "module": "src/vaadin-upload-file-mixin.js"
1126
- }
1127
- },
1128
1069
  {
1129
1070
  "name": "uploading",
1130
1071
  "type": {
@@ -1152,86 +1093,6 @@
1152
1093
  }
1153
1094
  ]
1154
1095
  },
1155
- {
1156
- "kind": "javascript-module",
1157
- "path": "src/vaadin-upload-helpers.js",
1158
- "declarations": [
1159
- {
1160
- "kind": "function",
1161
- "name": "getFilesFromDropEvent",
1162
- "parameters": [
1163
- {
1164
- "name": "dropEvent",
1165
- "description": "The drop event",
1166
- "type": {
1167
- "text": "DragEvent"
1168
- }
1169
- }
1170
- ],
1171
- "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.",
1172
- "return": {
1173
- "type": {
1174
- "text": "Promise<File[]>"
1175
- }
1176
- },
1177
- "privacy": "private"
1178
- }
1179
- ],
1180
- "exports": [
1181
- {
1182
- "kind": "js",
1183
- "name": "getFilesFromDropEvent",
1184
- "declaration": {
1185
- "name": "getFilesFromDropEvent",
1186
- "module": "src/vaadin-upload-helpers.js"
1187
- }
1188
- }
1189
- ]
1190
- },
1191
- {
1192
- "kind": "javascript-module",
1193
- "path": "src/vaadin-upload-icon.js",
1194
- "declarations": [
1195
- {
1196
- "kind": "class",
1197
- "description": "An element used internally by `<vaadin-upload>`. Not intended to be used separately.",
1198
- "name": "UploadIcon",
1199
- "members": [],
1200
- "mixins": [
1201
- {
1202
- "name": "ThemableMixin",
1203
- "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
1204
- },
1205
- {
1206
- "name": "LumoInjectionMixin",
1207
- "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
1208
- }
1209
- ],
1210
- "superclass": {
1211
- "name": "LitElement",
1212
- "package": "lit"
1213
- },
1214
- "tagName": "vaadin-upload-icon",
1215
- "customElement": true
1216
- }
1217
- ],
1218
- "exports": [
1219
- {
1220
- "kind": "js",
1221
- "name": "UploadIcon",
1222
- "declaration": {
1223
- "name": "UploadIcon",
1224
- "module": "src/vaadin-upload-icon.js"
1225
- }
1226
- }
1227
- ]
1228
- },
1229
- {
1230
- "kind": "javascript-module",
1231
- "path": "src/vaadin-upload-icons.js",
1232
- "declarations": [],
1233
- "exports": []
1234
- },
1235
1096
  {
1236
1097
  "kind": "javascript-module",
1237
1098
  "path": "src/vaadin-upload-manager.js",
@@ -1613,19 +1474,9 @@
1613
1474
  "kind": "field",
1614
1475
  "name": "i18n",
1615
1476
  "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```",
1616
- "return": {
1617
- "type": {
1618
- "text": "!UploadI18n"
1619
- }
1477
+ "type": {
1478
+ "text": "Object"
1620
1479
  },
1621
- "parameters": [
1622
- {
1623
- "name": "value",
1624
- "type": {
1625
- "text": "Object"
1626
- }
1627
- }
1628
- ],
1629
1480
  "inheritedFrom": {
1630
1481
  "name": "I18nMixin",
1631
1482
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -1669,7 +1520,8 @@
1669
1520
  "text": "boolean"
1670
1521
  },
1671
1522
  "description": "Specifies if the maximum number of files have been uploaded",
1672
- "attribute": "max-files-reached"
1523
+ "attribute": "max-files-reached",
1524
+ "readonly": true
1673
1525
  },
1674
1526
  {
1675
1527
  "kind": "field",
@@ -2076,19 +1928,9 @@
2076
1928
  "kind": "field",
2077
1929
  "name": "i18n",
2078
1930
  "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```",
2079
- "return": {
2080
- "type": {
2081
- "text": "!UploadI18n"
2082
- }
1931
+ "type": {
1932
+ "text": "Object"
2083
1933
  },
2084
- "parameters": [
2085
- {
2086
- "name": "value",
2087
- "type": {
2088
- "text": "Object"
2089
- }
2090
- }
2091
- ],
2092
1934
  "inheritedFrom": {
2093
1935
  "name": "I18nMixin",
2094
1936
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -2145,6 +1987,7 @@
2145
1987
  },
2146
1988
  "description": "Specifies if the maximum number of files have been uploaded",
2147
1989
  "attribute": "max-files-reached",
1990
+ "readonly": true,
2148
1991
  "inheritedFrom": {
2149
1992
  "name": "UploadMixin",
2150
1993
  "module": "src/vaadin-upload-mixin.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/upload",
3
- "version": "25.1.0-alpha9",
3
+ "version": "25.1.0-beta2",
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": "25.1.0-alpha9",
39
- "@vaadin/button": "25.1.0-alpha9",
40
- "@vaadin/component-base": "25.1.0-alpha9",
41
- "@vaadin/progress-bar": "25.1.0-alpha9",
42
- "@vaadin/vaadin-themable-mixin": "25.1.0-alpha9",
38
+ "@vaadin/a11y-base": "25.1.0-beta2",
39
+ "@vaadin/button": "25.1.0-beta2",
40
+ "@vaadin/component-base": "25.1.0-beta2",
41
+ "@vaadin/progress-bar": "25.1.0-beta2",
42
+ "@vaadin/vaadin-themable-mixin": "25.1.0-beta2",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/aura": "25.1.0-alpha9",
47
- "@vaadin/chai-plugins": "25.1.0-alpha9",
48
- "@vaadin/test-runner-commands": "25.1.0-alpha9",
46
+ "@vaadin/aura": "25.1.0-beta2",
47
+ "@vaadin/chai-plugins": "25.1.0-beta2",
48
+ "@vaadin/test-runner-commands": "25.1.0-beta2",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "25.1.0-alpha9",
50
+ "@vaadin/vaadin-lumo-styles": "25.1.0-beta2",
51
51
  "sinon": "^21.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": "ef432311376ba3dac4233cb23d393a49a425e0a4"
58
+ "gitHead": "ffbedbae08a5160d13bcd1c6fcaa328df5103a05"
59
59
  }