@progress/kendo-vue-upload 3.7.4-dev.202212300853 → 3.7.4-dev.202301120847

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.
Files changed (41) hide show
  1. package/dist/cdn/js/kendo-vue-upload.js +1 -1
  2. package/dist/es/ExternalDropZone.js +6 -3
  3. package/dist/es/UploadAddButton.js +28 -5
  4. package/dist/es/UploadDropZone.js +3 -2
  5. package/dist/es/UploadInput.d.ts +1 -0
  6. package/dist/es/UploadInput.js +4 -1
  7. package/dist/es/UploadListActionButton.d.ts +1 -0
  8. package/dist/es/UploadListActionButton.js +40 -27
  9. package/dist/es/UploadListGroup.js +9 -1
  10. package/dist/es/UploadListMultiItem.js +25 -21
  11. package/dist/es/UploadListSingleItem.js +82 -33
  12. package/dist/es/UploadStatus.js +12 -6
  13. package/dist/es/UploadUI.js +1 -1
  14. package/dist/es/package-metadata.js +1 -1
  15. package/dist/esm/ExternalDropZone.js +6 -3
  16. package/dist/esm/UploadAddButton.js +28 -5
  17. package/dist/esm/UploadDropZone.js +3 -2
  18. package/dist/esm/UploadInput.d.ts +1 -0
  19. package/dist/esm/UploadInput.js +4 -1
  20. package/dist/esm/UploadListActionButton.d.ts +1 -0
  21. package/dist/esm/UploadListActionButton.js +40 -27
  22. package/dist/esm/UploadListGroup.js +9 -1
  23. package/dist/esm/UploadListMultiItem.js +25 -21
  24. package/dist/esm/UploadListSingleItem.js +82 -33
  25. package/dist/esm/UploadStatus.js +12 -6
  26. package/dist/esm/UploadUI.js +1 -1
  27. package/dist/esm/package-metadata.js +1 -1
  28. package/dist/npm/ExternalDropZone.js +6 -3
  29. package/dist/npm/UploadAddButton.js +27 -4
  30. package/dist/npm/UploadDropZone.js +3 -2
  31. package/dist/npm/UploadInput.d.ts +1 -0
  32. package/dist/npm/UploadInput.js +4 -1
  33. package/dist/npm/UploadListActionButton.d.ts +1 -0
  34. package/dist/npm/UploadListActionButton.js +40 -27
  35. package/dist/npm/UploadListGroup.js +9 -1
  36. package/dist/npm/UploadListMultiItem.js +24 -20
  37. package/dist/npm/UploadListSingleItem.js +81 -32
  38. package/dist/npm/UploadStatus.js +11 -5
  39. package/dist/npm/UploadUI.js +1 -1
  40. package/dist/npm/package-metadata.js +1 -1
  41. package/package.json +9 -6
@@ -13,6 +13,7 @@ var ref = allVue.ref;
13
13
  var inject = allVue.inject;
14
14
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
15
15
  var main_1 = require("./messages/main");
16
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
16
17
  var package_metadata_1 = require("./package-metadata");
17
18
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
18
19
  /**
@@ -153,14 +154,16 @@ var ExternalDropZoneVue2 = {
153
154
  }, [h(kendo_vue_common_1.Icon, {
154
155
  name: 'upload',
155
156
  attrs: this.v3 ? undefined : {
156
- name: 'upload'
157
- }
157
+ name: 'upload',
158
+ icon: kendo_svg_icons_1.uploadIcon
159
+ },
160
+ icon: kendo_svg_icons_1.uploadIcon
158
161
  }), h("span", {
159
162
  "class": 'k-dropzone-hint'
160
163
  }, [hintElement]), h("span", {
161
164
  "class": 'k-dropzone-note'
162
165
  }, [noteElement])]), h("div", {
163
- "class": 'k-widget k-upload'
166
+ "class": 'k-upload'
164
167
  })]);
165
168
  }
166
169
  };
@@ -15,6 +15,7 @@ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
15
15
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
16
16
  var main_1 = require("./messages/main");
17
17
  var UploadInput_1 = require("./UploadInput");
18
+ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
18
19
  /**
19
20
  * @hidden
20
21
  */
@@ -54,6 +55,9 @@ var UploadAddButtonVue2 = {
54
55
  kendoLocalizationService: kendoLocalizationService
55
56
  };
56
57
  },
58
+ created: function created() {
59
+ this.uploadInputId = (0, kendo_vue_common_1.guid)();
60
+ },
57
61
  mounted: function mounted() {
58
62
  this.element = this.v3 ? this.elementRef : this.$refs.element;
59
63
  this.uploadInput = this.v3 ? this.uploadInputRef : this.$refs.uploadInput;
@@ -110,30 +114,49 @@ var UploadAddButtonVue2 = {
110
114
  accept = _a.accept;
111
115
  var localizationService = (0, kendo_vue_intl_1.provideLocalizationService)(this);
112
116
  var selectMessage = localizationService.toLanguageString(main_1.select, main_1.messages[main_1.select]);
113
- var buttonClassName = (0, kendo_vue_common_1.classNames)('k-button', 'k-button-md', 'k-button-solid', 'k-button-solid-base', 'k-rounded-md', 'k-upload-button', navigationIndex === addButtonIndex ? 'k-focus' : '');
117
+ var buttonClassName = (0, kendo_vue_common_1.classNames)('k-upload-button', navigationIndex === addButtonIndex ? 'k-focus' : '');
114
118
  return h("div", {
119
+ "class": "k-upload-button-wrap"
120
+ }, [h("label", {
121
+ "for": this.uploadInputId,
122
+ attrs: this.v3 ? undefined : {
123
+ "for": this.uploadInputId
124
+ }
125
+ }, [
126
+ // @ts-ignore function children
127
+ h(kendo_vue_buttons_1.Button, {
115
128
  id: id,
116
129
  attrs: this.v3 ? undefined : {
117
130
  id: id,
131
+ role: 'button',
132
+ disabled: disabled,
133
+ ariaLabel: selectMessage,
118
134
  tabindex: tabIndex
119
135
  },
120
136
  ref: (0, kendo_vue_common_1.setRef)(this, 'element'),
137
+ role: 'button',
138
+ disabled: disabled,
139
+ ariaLabel: selectMessage,
121
140
  "class": buttonClassName,
122
141
  tabindex: tabIndex,
123
142
  onClick: this.onClick,
124
143
  on: this.v3 ? undefined : {
125
144
  "click": this.onClick
126
145
  }
127
- }, [
146
+ }, this.v3 ? function () {
147
+ return [selectMessage];
148
+ } : [selectMessage])]),
128
149
  // @ts-ignore function children
129
150
  h(UploadInput_1.UploadInput, {
130
- async: async,
151
+ id: this.uploadInputId,
131
152
  attrs: this.v3 ? undefined : {
153
+ id: this.uploadInputId,
132
154
  async: async,
133
155
  multiple: multiple,
134
156
  disabled: disabled,
135
157
  accept: accept
136
158
  },
159
+ async: async,
137
160
  multiple: multiple,
138
161
  disabled: disabled,
139
162
  accept: accept,
@@ -146,7 +169,7 @@ var UploadAddButtonVue2 = {
146
169
  ref: this.v3 ? function (el) {
147
170
  _this.uploadInputRef = el;
148
171
  } : 'uploadInput'
149
- }), h("span", [selectMessage])]);
172
+ })]);
150
173
  }
151
174
  };
152
175
  exports.UploadAddButtonVue2 = UploadAddButtonVue2;
@@ -109,8 +109,9 @@ var UploadDropZoneVue2 = {
109
109
  dropZoneClasses: function dropZoneClasses() {
110
110
  return {
111
111
  'k-dropzone': true,
112
- 'k-dropzone-active': this.currentDocumentActive,
113
- 'k-dropzone-hovered': this.currentElementActive
112
+ 'k-upload-dropzone': true,
113
+ 'k-active': this.currentDocumentActive,
114
+ 'k-hover': this.currentElementActive
114
115
  };
115
116
  }
116
117
  },
@@ -8,6 +8,7 @@ import { UploadAsyncProps } from './interfaces/UploadAsyncProps';
8
8
  * @hidden
9
9
  */
10
10
  export interface UploadInputProps {
11
+ id: String;
11
12
  async: UploadAsyncProps;
12
13
  multiple?: boolean;
13
14
  disabled?: boolean;
@@ -22,6 +22,7 @@ var UploadInputVue2 = {
22
22
  name: 'KendoVueUploadInput',
23
23
  props: {
24
24
  async: Object,
25
+ id: String,
25
26
  multiple: {
26
27
  type: Boolean,
27
28
  default: undefined
@@ -111,8 +112,9 @@ var UploadInputVue2 = {
111
112
  var selectLabel = localizationService.toLanguageString(main_1.select, main_1.messages[main_1.select]);
112
113
  return h("input", {
113
114
  ref: (0, kendo_vue_common_1.setRef)(this, 'input'),
114
- autocomplete: 'off',
115
+ id: this.id,
115
116
  attrs: this.v3 ? undefined : {
117
+ id: this.id,
116
118
  autocomplete: 'off',
117
119
  name: async.saveField,
118
120
  accept: accept,
@@ -125,6 +127,7 @@ var UploadInputVue2 = {
125
127
  "aria-labelledby": ariaLabelledBy,
126
128
  "aria-describedby": ariaDescribedBy
127
129
  },
130
+ autocomplete: 'off',
128
131
  name: async.saveField,
129
132
  accept: accept,
130
133
  type: 'file',
@@ -14,6 +14,7 @@ export interface UploadListActionButtonProps {
14
14
  status: UploadFileStatus;
15
15
  async: UploadAsyncProps;
16
16
  disabled: boolean;
17
+ files: any[];
17
18
  }
18
19
  /**
19
20
  * @hidden
@@ -12,6 +12,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
12
12
  var ref = allVue.ref;
13
13
  var inject = allVue.inject;
14
14
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
15
+ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
15
16
  var UploadFileStatus_1 = require("./interfaces/UploadFileStatus");
16
17
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
17
18
  var main_1 = require("./messages/main");
@@ -25,7 +26,8 @@ var UploadListActionButtonVue2 = {
25
26
  uid: String,
26
27
  status: Number,
27
28
  async: Object,
28
- disabled: Boolean
29
+ disabled: Boolean,
30
+ files: Array
29
31
  },
30
32
  // @ts-ignore
31
33
  emits: {
@@ -55,7 +57,7 @@ var UploadListActionButtonVue2 = {
55
57
  return localizationService.toLanguageString(main_1.retry, main_1.messages[main_1.retry]);
56
58
  },
57
59
  buttonClassNames: function buttonClassNames(type) {
58
- return (0, kendo_vue_common_1.classNames)('k-button k-button-icon k-flat k-upload-action', this.$props.disabled ? 'k-disabled' : '', this.actionFocused && type === 'action' || this.retryFocused && type === 'retry' ? 'k-focus' : '');
60
+ return (0, kendo_vue_common_1.classNames)(this.actionFocused && type === 'action' || this.retryFocused && type === 'retry' ? 'k-focus' : '');
59
61
  },
60
62
  onRetryFocus: function onRetryFocus() {
61
63
  this.retryFocused = true;
@@ -107,24 +109,37 @@ var UploadListActionButtonVue2 = {
107
109
  var _a = this.$props,
108
110
  status = _a.status,
109
111
  progress = _a.progress;
110
- var actionButtonClassNames = (0, kendo_vue_common_1.classNames)('k-icon', status === UploadFileStatus_1.UploadFileStatus.Uploading ? 'k-cancel k-i-deny' : '', status !== UploadFileStatus_1.UploadFileStatus.Uploading ? 'k-delete k-i-x' : '');
111
112
  var isRetryVisible = status === UploadFileStatus_1.UploadFileStatus.UploadFailed;
112
113
  var isProgressVisible = status === UploadFileStatus_1.UploadFileStatus.Uploading;
113
114
  var isActionHidden = (status === UploadFileStatus_1.UploadFileStatus.Uploaded || status === UploadFileStatus_1.UploadFileStatus.Initial) && !this.$props.async.removeUrl;
114
115
  var localizationService = (0, kendo_vue_intl_1.provideLocalizationService)(this);
115
116
  var percent = '%';
116
- return h("strong", {
117
- "class": 'k-upload-status'
117
+ return h("div", {
118
+ "class": 'k-upload-actions'
118
119
  }, [isProgressVisible ? h("span", {
119
120
  "class": 'k-upload-pct'
120
- }, [progress, percent]) : undefined, isRetryVisible ? h("button", {
121
+ }, [progress, percent]) : undefined, isRetryVisible ?
122
+ // @ts-ignore
123
+ h(kendo_vue_buttons_1.Button, {
121
124
  type: "button",
122
125
  attrs: this.v3 ? undefined : {
123
126
  type: "button",
124
- tabindex: -1
127
+ tabindex: -1,
128
+ disabled: this.disabled,
129
+ icon: 'arrow-rotate-cw-small'
130
+ // svgIcon={isProgressVisible ? denyIcon : xIcon}
131
+ ,
132
+ iconClass: 'k-retry',
133
+ ariaLabel: this.retryButtonTitle(localizationService),
134
+ title: this.retryButtonTitle(localizationService)
125
135
  },
126
136
  tabindex: -1,
137
+ disabled: this.disabled,
127
138
  "class": this.buttonClassNames('retry'),
139
+ icon: 'arrow-rotate-cw-small',
140
+ iconClass: 'k-retry',
141
+ ariaLabel: this.retryButtonTitle(localizationService),
142
+ title: this.retryButtonTitle(localizationService),
128
143
  onFocus: this.onRetryFocus,
129
144
  on: this.v3 ? undefined : {
130
145
  "focus": this.onRetryFocus,
@@ -133,21 +148,24 @@ var UploadListActionButtonVue2 = {
133
148
  },
134
149
  onBlur: this.onRetryBlur,
135
150
  onClick: this.onRetryClick
136
- }, [h("span", {
137
- "aria-label": this.retryButtonTitle(localizationService),
138
- attrs: this.v3 ? undefined : {
139
- "aria-label": this.retryButtonTitle(localizationService),
140
- title: this.retryButtonTitle(localizationService)
141
- },
142
- title: this.retryButtonTitle(localizationService),
143
- "class": 'k-icon k-retry k-i-arrow-rotate-cw-small'
144
- })]) : undefined, !isActionHidden ? h("button", {
151
+ }) : undefined, !isActionHidden ?
152
+ // @ts-ignore
153
+ h(kendo_vue_buttons_1.Button, {
145
154
  type: "button",
146
155
  attrs: this.v3 ? undefined : {
147
156
  type: "button",
148
- tabindex: -1
157
+ fillMode: 'flat',
158
+ tabindex: -1,
159
+ disabled: this.disabled,
160
+ icon: isProgressVisible ? 'deny' : 'x'
161
+ // svgIcon={isProgressVisible ? denyIcon : xIcon}
162
+ ,
163
+ ariaLabel: this.actionButtonTitle(status, localizationService),
164
+ title: this.actionButtonTitle(status, localizationService)
149
165
  },
166
+ fillMode: 'flat',
150
167
  tabindex: -1,
168
+ disabled: this.disabled,
151
169
  "class": this.buttonClassNames('action'),
152
170
  onFocus: this.onActionFocus,
153
171
  on: this.v3 ? undefined : {
@@ -156,16 +174,11 @@ var UploadListActionButtonVue2 = {
156
174
  "click": this.onActionClick
157
175
  },
158
176
  onBlur: this.onActionBlur,
159
- onClick: this.onActionClick
160
- }, [h("span", {
161
- "aria-label": this.actionButtonTitle(status, localizationService),
162
- attrs: this.v3 ? undefined : {
163
- "aria-label": this.actionButtonTitle(status, localizationService),
164
- title: this.actionButtonTitle(status, localizationService)
165
- },
166
- title: this.actionButtonTitle(status, localizationService),
167
- "class": actionButtonClassNames
168
- })]) : undefined]);
177
+ onClick: this.onActionClick,
178
+ icon: isProgressVisible ? 'deny' : 'x',
179
+ ariaLabel: this.actionButtonTitle(status, localizationService),
180
+ title: this.actionButtonTitle(status, localizationService)
181
+ }) : undefined]);
169
182
  }
170
183
  };
171
184
  exports.UploadListActionButtonVue2 = UploadListActionButtonVue2;
@@ -80,7 +80,15 @@ var UploadListGroupVue2 = {
80
80
  list = _a.list;
81
81
  var firstFile = files[0];
82
82
  var isFileSuccess = firstFile.status === UploadFileStatus_1.UploadFileStatus.Uploaded || firstFile.status === UploadFileStatus_1.UploadFileStatus.Initial;
83
- var liClassName = (0, kendo_vue_common_1.classNames)('k-file', utils_1.default.filesHaveValidationErrors(files) ? 'k-file-invalid' : '', firstFile.status === UploadFileStatus_1.UploadFileStatus.UploadFailed || firstFile.status === UploadFileStatus_1.UploadFileStatus.RemoveFailed ? 'k-file-error' : '', firstFile.status === UploadFileStatus_1.UploadFileStatus.Uploading ? 'k-file-progress' : '', isFileSuccess ? 'k-file-success' : '', navigationIndex === index ? 'k-focus' : '');
83
+ var validationErrors = utils_1.default.filesHaveValidationErrors(files);
84
+ var actionFailed = firstFile.status === UploadFileStatus_1.UploadFileStatus.UploadFailed || firstFile.status === UploadFileStatus_1.UploadFileStatus.RemoveFailed;
85
+ var liClassName = (0, kendo_vue_common_1.classNames)('k-file', {
86
+ 'k-file-invalid': validationErrors,
87
+ 'k-file-error': actionFailed,
88
+ 'k-file-progress': firstFile.status === UploadFileStatus_1.UploadFileStatus.Uploading,
89
+ 'k-file-success': isFileSuccess,
90
+ 'k-focus': navigationIndex === index
91
+ });
84
92
  var itemComponent;
85
93
  var defaultItemRendering = files.length === 1 ?
86
94
  // @ts-ignore
@@ -16,6 +16,8 @@ var utils_1 = require("./utils/utils");
16
16
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
17
17
  var main_1 = require("./messages/main");
18
18
  var UploadListActionButton_1 = require("./UploadListActionButton");
19
+ var kendo_vue_progressbars_1 = require("@progress/kendo-vue-progressbars");
20
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
19
21
  /**
20
22
  * @hidden
21
23
  */
@@ -96,7 +98,7 @@ var UploadListMultiItemVue2 = {
96
98
  return files.map(function (file) {
97
99
  return h("span", {
98
100
  key: file.name,
99
- "class": 'k-file-name-size-wrapper'
101
+ "class": 'k-file-info'
100
102
  }, [h("span", {
101
103
  "class": 'k-file-name',
102
104
  title: file.name,
@@ -104,7 +106,7 @@ var UploadListMultiItemVue2 = {
104
106
  title: file.name
105
107
  }
106
108
  }, [file.name]), utils_1.default.fileHasValidationErrors(file) ? h("span", {
107
- "class": 'k-file-validation-message k-text-error'
109
+ "class": 'k-file-validation-message'
108
110
  }, [this.getFileValidationMessage(file)]) : h("span", {
109
111
  key: "".concat(file.name, "-size"),
110
112
  "class": 'k-file-size'
@@ -113,29 +115,31 @@ var UploadListMultiItemVue2 = {
113
115
  };
114
116
  return h("div", {
115
117
  "class": itemClassName
116
- }, [h("div", {
117
- "class": 'k-progressbar',
118
- style: {
119
- transition: 'opacity 1s ease-in-out',
120
- opacity: showProgressBar ? 1 : 0
121
- }
122
- }, [h("span", {
123
- "class": 'k-progress',
124
- style: {
125
- width: (progress || 0) + '%'
126
- }
127
- })]), h("span", {
128
- "class": 'k-multiple-files-group-wrapper'
129
- }, [h("span", {
130
- "class": 'k-file-group k-icon k-i-copy'
118
+ }, [showProgressBar && h(kendo_vue_progressbars_1.ProgressBar, {
119
+ value: progress || 0,
120
+ attrs: this.v3 ? undefined : {
121
+ value: progress || 0,
122
+ labelVisible: false
123
+ },
124
+ labelVisible: false
125
+ }), h("span", {
126
+ "class": 'k-file-icon-wrapper'
127
+ }, [h(kendo_vue_common_1.Icon, {
128
+ name: 'copy',
129
+ attrs: this.v3 ? undefined : {
130
+ name: 'copy',
131
+ icon: kendo_svg_icons_1.copyIcon
132
+ },
133
+ icon: kendo_svg_icons_1.copyIcon,
134
+ "class": 'k-file-icon'
131
135
  })]), h("span", {
132
136
  "class": "k-multiple-files-wrapper"
133
137
  }, [mapFiles.call(this), !isUploadFailed ? progress !== 100 ? h("span", {
134
- "class": 'k-file-information'
138
+ "class": 'k-file-summary'
135
139
  }, ["".concat(totalMessage, ": ").concat(files.length, " ").concat(filesMessage, ", ").concat(utils_1.default.getTotalFilesSizeMessage(files))]) : h("span", {
136
- "class": 'k-file-information k-text-success'
140
+ "class": 'k-file-summary k-text-success'
137
141
  }, ["".concat(files.length, " ").concat(successMessage)]) : h("span", {
138
- "class": 'k-file-validation-message k-text-error'
142
+ "class": 'k-file-validation-message'
139
143
  }, ["".concat(files.length, " ").concat(uploadFailedMessage)])]),
140
144
  // @ts-ignore function children
141
145
  h(UploadListActionButton_1.UploadListActionButton, {
@@ -13,9 +13,11 @@ var ref = allVue.ref;
13
13
  var inject = allVue.inject;
14
14
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
15
15
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
16
+ var kendo_vue_progressbars_1 = require("@progress/kendo-vue-progressbars");
16
17
  var main_1 = require("./messages/main");
17
18
  var utils_1 = require("./utils/utils");
18
19
  var UploadListActionButton_1 = require("./UploadListActionButton");
20
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
19
21
  /**
20
22
  * @hidden
21
23
  */
@@ -61,7 +63,7 @@ var UploadListSingleItemVue2 = {
61
63
  }
62
64
  return validationMessage;
63
65
  },
64
- getFileExtensionIcon: function getFileExtensionIcon(file) {
66
+ getFileExtensionName: function getFileExtensionName(file) {
65
67
  switch (file.extension) {
66
68
  case '.png':
67
69
  case '.jpg':
@@ -69,41 +71,86 @@ var UploadListSingleItemVue2 = {
69
71
  case '.tiff':
70
72
  case '.bmp':
71
73
  case '.gif':
72
- return 'k-i-file-image';
74
+ return 'file-image';
73
75
  case '.mp3':
74
76
  case '.mp4':
75
77
  case '.wav':
76
- return 'k-i-file-audio';
78
+ return 'file-audio';
77
79
  case '.mkv':
78
80
  case '.webm':
79
81
  case '.flv':
80
82
  case '.gifv':
81
83
  case '.avi':
82
84
  case '.wmv':
83
- return 'k-i-file-video';
85
+ return 'file-video';
84
86
  case '.txt':
85
- return 'k-i-file-txt';
87
+ return 'file-txt';
86
88
  case '.pdf':
87
- return 'k-i-file-pdf';
89
+ return 'file-pdf';
88
90
  case '.ppt':
89
91
  case '.pptx':
90
- return 'k-i-file-presentation';
92
+ return 'file-presentation';
91
93
  case '.csv':
92
94
  case '.xls':
93
95
  case '.xlsx':
94
- return 'k-i-file-data';
96
+ return 'file-data';
95
97
  case '.html':
96
98
  case '.css':
97
99
  case '.js':
98
100
  case '.ts':
99
- return 'k-i-file-programming';
101
+ return 'file-programming';
100
102
  case '.exe':
101
- return 'k-i-file-config';
103
+ return 'file-config';
102
104
  case '.zip':
103
105
  case '.rar':
104
- return 'k-i-file-zip';
106
+ return 'file-zip';
105
107
  default:
106
- return 'k-i-file';
108
+ return 'file';
109
+ }
110
+ },
111
+ getFileExtensionSVG: function getFileExtensionSVG(file) {
112
+ switch (file.extension) {
113
+ case '.png':
114
+ case '.jpg':
115
+ case '.jpeg':
116
+ case '.tiff':
117
+ case '.bmp':
118
+ case '.gif':
119
+ return kendo_svg_icons_1.fileImageIcon;
120
+ case '.mp3':
121
+ case '.mp4':
122
+ case '.wav':
123
+ return kendo_svg_icons_1.fileAudioIcon;
124
+ case '.mkv':
125
+ case '.webm':
126
+ case '.flv':
127
+ case '.gifv':
128
+ case '.avi':
129
+ case '.wmv':
130
+ return kendo_svg_icons_1.fileVideoIcon;
131
+ case '.txt':
132
+ return kendo_svg_icons_1.fileTxtIcon;
133
+ case '.pdf':
134
+ return kendo_svg_icons_1.filePdfIcon;
135
+ case '.ppt':
136
+ case '.pptx':
137
+ return kendo_svg_icons_1.filePresentationIcon;
138
+ case '.csv':
139
+ case '.xls':
140
+ case '.xlsx':
141
+ return kendo_svg_icons_1.fileDataIcon;
142
+ case '.html':
143
+ case '.css':
144
+ case '.js':
145
+ case '.ts':
146
+ return kendo_svg_icons_1.fileProgrammingIcon;
147
+ case '.exe':
148
+ return kendo_svg_icons_1.fileConfigIcon;
149
+ case '.zip':
150
+ case '.rar':
151
+ return kendo_svg_icons_1.fileZipIcon;
152
+ default:
153
+ return kendo_svg_icons_1.fileIcon;
107
154
  }
108
155
  }
109
156
  },
@@ -131,23 +178,23 @@ var UploadListSingleItemVue2 = {
131
178
  var showProgressBar = !isUploadValidationFailed && !isUploaded && !isUploadFailed;
132
179
  var renderValidationError = function renderValidationError(currentFile, isCurrentUploadFailed) {
133
180
  return h("span", {
134
- "class": 'k-file-name-size-wrapper',
181
+ "class": 'k-file-info',
135
182
  key: '2'
136
183
  }, [h("span", {
137
- "class": 'k-file-name k-file-name-invalid',
184
+ "class": 'k-file-name',
138
185
  title: currentFile.name,
139
186
  attrs: this.v3 ? undefined : {
140
187
  title: currentFile.name
141
188
  }
142
189
  }, [currentFile.name]), h("span", {
143
- "class": 'k-file-validation-message k-text-error'
190
+ "class": 'k-file-validation-message'
144
191
  }, [this.getFileValidationMessage(currentFile, isCurrentUploadFailed)])]);
145
192
  };
146
193
  var renderFileDetails = function renderFileDetails(currentFile) {
147
194
  var localizationService = (0, kendo_vue_intl_1.provideLocalizationService)(this);
148
195
  var successMessage = localizationService.toLanguageString(main_1.statusUploaded, main_1.messages[main_1.statusUploaded]);
149
196
  return h("span", {
150
- "class": 'k-file-name-size-wrapper',
197
+ "class": 'k-file-info',
151
198
  key: '2'
152
199
  }, [h("span", {
153
200
  "class": 'k-file-name',
@@ -158,27 +205,29 @@ var UploadListSingleItemVue2 = {
158
205
  }, [currentFile.name]), currentFile.progress !== 100 ? h("span", {
159
206
  "class": 'k-file-size'
160
207
  }, [utils_1.default.getTotalFilesSizeMessage([currentFile])]) : h("span", {
161
- "class": 'k-file-validation-message k-text-success'
208
+ "class": 'k-file-validation-message'
162
209
  }, [successMessage])]);
163
210
  };
164
211
  return h("div", {
165
212
  "class": itemClassName
166
- }, [h("div", {
167
- "class": 'k-progressbar',
168
- style: {
169
- transition: 'opacity 1s ease-in-out',
170
- opacity: showProgressBar ? 1 : 0
171
- }
172
- }, [h("span", {
173
- "class": 'k-progress',
174
- style: {
175
- width: (file.progress || 0) + '%'
176
- }
177
- })]), h("span", {
178
- "class": 'k-file-group-wrapper',
213
+ }, [showProgressBar && h(kendo_vue_progressbars_1.ProgressBar, {
214
+ value: file.progress || 0,
215
+ attrs: this.v3 ? undefined : {
216
+ value: file.progress || 0,
217
+ labelVisible: false
218
+ },
219
+ labelVisible: false
220
+ }), h("span", {
221
+ "class": 'k-file-icon-wrapper',
179
222
  key: '1'
180
- }, [h("span", {
181
- "class": 'k-file-group k-icon ' + this.getFileExtensionIcon(file)
223
+ }, [h(kendo_vue_common_1.Icon, {
224
+ name: this.getFileExtensionName(file),
225
+ attrs: this.v3 ? undefined : {
226
+ name: this.getFileExtensionName(file),
227
+ icon: this.getFileExtensionSVG(file)
228
+ },
229
+ icon: this.getFileExtensionSVG(file),
230
+ "class": 'k-file-icon'
182
231
  }), h("span", {
183
232
  "class": 'k-file-state'
184
233
  })]), isUploadValidationFailed || isUploadFailed ? renderValidationError.call(this, file, isUploadFailed) : renderFileDetails.call(this, file),
@@ -9,11 +9,11 @@ var Vue = require("vue");
9
9
  var allVue = Vue;
10
10
  var gh = allVue.h;
11
11
  var isV3 = allVue.version && allVue.version[0] === '3';
12
- var ref = allVue.ref;
13
12
  var inject = allVue.inject;
14
13
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
15
14
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
16
15
  var main_1 = require("./messages/main");
16
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
17
17
  /**
18
18
  * @hidden
19
19
  */
@@ -43,7 +43,6 @@ var UploadStatusVue2 = {
43
43
  isUploading = _a.isUploading,
44
44
  isUploaded = _a.isUploaded,
45
45
  isUploadFailed = _a.isUploadFailed;
46
- var statusClassName = (0, kendo_vue_common_1.classNames)(!isUploading && !isUploadFailed && isUploaded ? 'k-i-checkmark' : '', !isUploading && isUploadFailed ? 'k-i-exception' : '', isUploading ? 'k-i-loading' : '', 'k-icon');
47
46
  var statusText = '';
48
47
  var localizationService = (0, kendo_vue_intl_1.provideLocalizationService)(this);
49
48
  if (isUploading) {
@@ -52,9 +51,16 @@ var UploadStatusVue2 = {
52
51
  statusText = localizationService.toLanguageString(main_1.headerStatusUploaded, main_1.messages[main_1.headerStatusUploaded]);
53
52
  }
54
53
  return h("div", {
55
- "class": (0, kendo_vue_common_1.classNames)('k-upload-status', 'k-upload-status-total')
56
- }, [h("span", {
57
- "class": statusClassName
54
+ "class": (0, kendo_vue_common_1.classNames)('k-upload-status')
55
+ }, [isUploading ? h("span", {
56
+ "class": 'k-icon k-i-loading'
57
+ }) : h(kendo_vue_common_1.Icon, {
58
+ name: isUploadFailed ? 'exclamation-circle' : isUploaded ? 'check' : '',
59
+ attrs: this.v3 ? undefined : {
60
+ name: isUploadFailed ? 'exclamation-circle' : isUploaded ? 'check' : '',
61
+ icon: isUploadFailed ? kendo_svg_icons_1.exclamationCircleIcon : isUploaded ? kendo_svg_icons_1.checkIcon : undefined
62
+ },
63
+ icon: isUploadFailed ? kendo_svg_icons_1.exclamationCircleIcon : isUploaded ? kendo_svg_icons_1.checkIcon : undefined
58
64
  }), statusText]);
59
65
  }
60
66
  };
@@ -163,7 +163,7 @@ var UploadUIVue2 = {
163
163
  ariaLabelledBy = _a.ariaLabelledBy,
164
164
  ariaDescribedBy = _a.ariaDescribedBy,
165
165
  async = _a.async;
166
- var className = (0, kendo_vue_common_1.classNames)('k-widget', 'k-upload', this.$props.className, disabled ? 'k-disabled' : '');
166
+ var className = (0, kendo_vue_common_1.classNames)('k-upload', 'k-upload-async', this.$props.className, disabled ? 'k-disabled' : '');
167
167
  return h("div", {
168
168
  ref: (0, kendo_vue_common_1.setRef)(this, 'container'),
169
169
  "class": className,
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-upload',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1672390325,
11
+ publishDate: 1673513086,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
14
14
  };