@progress/kendo-angular-upload 8.0.2-dev.202203071504 → 9.0.0-dev.202204131914

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 (265) hide show
  1. package/bundles/kendo-angular-upload.umd.js +5 -0
  2. package/{dist/es2015/common → common}/action-buttons-layout.d.ts +0 -0
  3. package/{dist/es2015/common → common}/util.d.ts +0 -0
  4. package/{dist/es2015/common → common}/validation-util.d.ts +0 -0
  5. package/{dist/es2015/dropzone-base.d.ts → dropzone-base.d.ts} +4 -1
  6. package/{dist/es2015/dropzone-external.directive.d.ts → dropzone-external.directive.d.ts} +4 -1
  7. package/{dist/es2015/dropzone-internal.directive.d.ts → dropzone-internal.directive.d.ts} +3 -0
  8. package/{dist/es2015/dropzone.component.d.ts → dropzone.component.d.ts} +5 -2
  9. package/{dist/es2015/dropzone.service.d.ts → dropzone.service.d.ts} +3 -0
  10. package/{dist/es2015 → esm2015}/common/action-buttons-layout.js +1 -0
  11. package/{dist/es2015 → esm2015}/common/util.js +1 -7
  12. package/{dist/es2015 → esm2015}/common/validation-util.js +0 -4
  13. package/{dist/es2015 → esm2015}/dropzone-base.js +18 -16
  14. package/{dist/es2015 → esm2015}/dropzone-external.directive.js +29 -35
  15. package/{dist/es2015 → esm2015}/dropzone-internal.directive.js +25 -37
  16. package/esm2015/dropzone.component.js +112 -0
  17. package/{dist/es2015 → esm2015}/dropzone.service.js +8 -7
  18. package/{dist/es2015 → esm2015}/events/cancel-event.js +1 -0
  19. package/{dist/es2015 → esm2015}/events/clear-event.js +1 -0
  20. package/{dist/es2015 → esm2015}/events/error-event.js +1 -0
  21. package/{dist/es2015 → esm2015}/events/pause-event.js +1 -0
  22. package/{dist/es2015 → esm2015}/events/preventable-event.js +0 -0
  23. package/{dist/es2015 → esm2015}/events/remove-event.js +1 -0
  24. package/{dist/es2015 → esm2015}/events/resume-event.js +1 -0
  25. package/{dist/es2015 → esm2015}/events/select-event.js +1 -0
  26. package/{dist/es2015 → esm2015}/events/success-event.js +1 -0
  27. package/{dist/es2015 → esm2015}/events/upload-event.js +1 -0
  28. package/{dist/es2015 → esm2015}/events/upload-progress-event.js +1 -0
  29. package/{dist/es → esm2015}/events.js +0 -0
  30. package/esm2015/file-select.directive.js +100 -0
  31. package/{dist/es2015 → esm2015}/fileselect.component.js +160 -132
  32. package/esm2015/fileselect.module.js +35 -0
  33. package/{dist/es/types/chunk-info.js → esm2015/kendo-angular-upload.js} +4 -0
  34. package/esm2015/localization/custom-messages.component.js +50 -0
  35. package/esm2015/localization/localized-messages.directive.js +40 -0
  36. package/esm2015/localization/messages.js +59 -0
  37. package/{dist/es → esm2015}/main.js +0 -0
  38. package/{dist/es2015 → esm2015}/navigation.service.js +9 -9
  39. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  40. package/{dist/es2015 → esm2015}/rendering/file-list-item-action-button.component.js +70 -28
  41. package/{dist/es2015 → esm2015}/rendering/file-list-item-base.js +9 -0
  42. package/esm2015/rendering/file-list-item.js +107 -0
  43. package/esm2015/rendering/file-list-multiple-items.component.js +172 -0
  44. package/esm2015/rendering/file-list-single-item.component.js +154 -0
  45. package/esm2015/rendering/file-list.component.js +145 -0
  46. package/esm2015/rendering/upload-action-buttons.component.js +136 -0
  47. package/esm2015/rendering/upload-status-total.component.js +60 -0
  48. package/{dist/es2015 → esm2015}/shared.module.js +45 -18
  49. package/esm2015/templates/file-info-template.directive.js +22 -0
  50. package/esm2015/templates/file-template.directive.js +22 -0
  51. package/esm2015/templates/template-context.directive.js +34 -0
  52. package/{dist/es2015 → esm2015}/types/async-settings.js +1 -0
  53. package/{dist/es2015 → esm2015}/types/chunk-info.js +1 -0
  54. package/{dist/es2015 → esm2015}/types/chunk-map.js +0 -0
  55. package/{dist/es → esm2015}/types/chunk-metadata.js +1 -0
  56. package/{dist/es → esm2015}/types/chunk-settings.js +1 -0
  57. package/{dist/es → esm2015}/types/direction.js +1 -0
  58. package/{dist/es2015 → esm2015}/types/file-groups.js +3 -5
  59. package/{dist/es → esm2015}/types/file-info.js +1 -0
  60. package/{dist/es2015 → esm2015}/types/file-map.js +0 -0
  61. package/{dist/es → esm2015}/types/file-restrictions.js +1 -0
  62. package/{dist/es → esm2015}/types/file-state.js +0 -0
  63. package/{dist/es → esm2015}/types/operation-type.js +1 -0
  64. package/{dist/es → esm2015}/types.js +0 -0
  65. package/{dist/es2015 → esm2015}/upload.component.js +262 -243
  66. package/esm2015/upload.module.js +43 -0
  67. package/{dist/es2015 → esm2015}/upload.service.js +10 -9
  68. package/{dist/es2015 → esm2015}/uploads.module.js +17 -12
  69. package/{dist/es2015/events → events}/cancel-event.d.ts +4 -0
  70. package/{dist/es2015/events → events}/clear-event.d.ts +1 -0
  71. package/{dist/es2015/events → events}/error-event.d.ts +10 -0
  72. package/{dist/es2015/events → events}/pause-event.d.ts +4 -0
  73. package/{dist/es2015/events → events}/preventable-event.d.ts +0 -0
  74. package/{dist/es2015/events → events}/remove-event.d.ts +9 -2
  75. package/{dist/es2015/events → events}/resume-event.d.ts +4 -0
  76. package/{dist/es2015/events → events}/select-event.d.ts +4 -0
  77. package/{dist/es2015/events → events}/success-event.d.ts +10 -0
  78. package/{dist/es2015/events → events}/upload-event.d.ts +9 -2
  79. package/{dist/es2015/events → events}/upload-progress-event.d.ts +7 -0
  80. package/{dist/es2015/events.d.ts → events.d.ts} +0 -0
  81. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-upload.js} +2192 -2010
  82. package/{dist/es2015/file-select.directive.d.ts → file-select.directive.d.ts} +7 -4
  83. package/{dist/es2015/fileselect.component.d.ts → fileselect.component.d.ts} +14 -6
  84. package/fileselect.module.d.ts +20 -0
  85. package/{dist/es/common/action-buttons-layout.js → kendo-angular-upload.d.ts} +5 -0
  86. package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
  87. package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
  88. package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
  89. package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
  90. package/{dist/es2015/navigation.service.d.ts → navigation.service.d.ts} +7 -3
  91. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  92. package/package.json +36 -104
  93. package/{dist/es2015/rendering → rendering}/file-list-item-action-button.component.d.ts +11 -8
  94. package/{dist/es2015/rendering → rendering}/file-list-item-base.d.ts +3 -0
  95. package/{dist/es2015/rendering → rendering}/file-list-item.d.ts +10 -7
  96. package/{dist/es2015/rendering → rendering}/file-list-multiple-items.component.d.ts +7 -4
  97. package/{dist/es2015/rendering → rendering}/file-list-single-item.component.d.ts +9 -6
  98. package/{dist/es2015/rendering → rendering}/file-list.component.d.ts +3 -0
  99. package/{dist/es2015/rendering → rendering}/upload-action-buttons.component.d.ts +7 -4
  100. package/{dist/es2015/rendering → rendering}/upload-status-total.component.d.ts +3 -0
  101. package/schematics/ngAdd/index.js +5 -2
  102. package/schematics/ngAdd/index.js.map +1 -1
  103. package/shared.module.d.ts +36 -0
  104. package/{dist/es2015/templates → templates}/file-info-template.directive.d.ts +3 -0
  105. package/{dist/es2015/templates → templates}/file-template.directive.d.ts +3 -0
  106. package/{dist/es2015/templates → templates}/template-context.directive.d.ts +4 -1
  107. package/{dist/es2015/types → types}/async-settings.d.ts +0 -0
  108. package/{dist/es2015/types → types}/chunk-info.d.ts +0 -0
  109. package/{dist/es2015/types → types}/chunk-map.d.ts +0 -0
  110. package/{dist/es2015/types → types}/chunk-metadata.d.ts +0 -0
  111. package/{dist/es2015/types → types}/chunk-settings.d.ts +0 -0
  112. package/{dist/es2015/types → types}/direction.d.ts +0 -0
  113. package/{dist/es2015/types → types}/file-groups.d.ts +0 -0
  114. package/{dist/es2015/types → types}/file-info.d.ts +0 -0
  115. package/{dist/es2015/types → types}/file-map.d.ts +5 -5
  116. package/{dist/es2015/types → types}/file-restrictions.d.ts +0 -0
  117. package/{dist/es2015/types → types}/file-state.d.ts +0 -0
  118. package/{dist/es2015/types → types}/operation-type.d.ts +0 -0
  119. package/{dist/es2015/types.d.ts → types.d.ts} +0 -0
  120. package/{dist/es2015/upload.component.d.ts → upload.component.d.ts} +42 -21
  121. package/upload.module.d.ts +22 -0
  122. package/{dist/es2015/upload.service.d.ts → upload.service.d.ts} +4 -1
  123. package/{dist/es2015/uploads.module.d.ts → uploads.module.d.ts} +6 -0
  124. package/dist/cdn/js/kendo-angular-upload.js +0 -20
  125. package/dist/cdn/main.js +0 -5
  126. package/dist/es/common/util.js +0 -234
  127. package/dist/es/common/validation-util.js +0 -64
  128. package/dist/es/dropzone-base.js +0 -66
  129. package/dist/es/dropzone-external.directive.js +0 -98
  130. package/dist/es/dropzone-internal.directive.js +0 -110
  131. package/dist/es/dropzone.component.js +0 -99
  132. package/dist/es/dropzone.service.js +0 -33
  133. package/dist/es/events/cancel-event.js +0 -41
  134. package/dist/es/events/clear-event.js +0 -43
  135. package/dist/es/events/error-event.js +0 -45
  136. package/dist/es/events/pause-event.js +0 -42
  137. package/dist/es/events/preventable-event.js +0 -29
  138. package/dist/es/events/remove-event.js +0 -47
  139. package/dist/es/events/resume-event.js +0 -42
  140. package/dist/es/events/select-event.js +0 -45
  141. package/dist/es/events/success-event.js +0 -49
  142. package/dist/es/events/upload-event.js +0 -47
  143. package/dist/es/events/upload-progress-event.js +0 -42
  144. package/dist/es/file-select.directive.js +0 -141
  145. package/dist/es/fileselect.component.js +0 -484
  146. package/dist/es/fileselect.module.js +0 -30
  147. package/dist/es/index.js +0 -21
  148. package/dist/es/localization/custom-messages.component.js +0 -53
  149. package/dist/es/localization/localized-messages.directive.js +0 -35
  150. package/dist/es/localization/messages.js +0 -102
  151. package/dist/es/navigation.service.js +0 -166
  152. package/dist/es/package-metadata.js +0 -15
  153. package/dist/es/rendering/file-list-item-action-button.component.js +0 -169
  154. package/dist/es/rendering/file-list-item-base.js +0 -41
  155. package/dist/es/rendering/file-list-item.js +0 -165
  156. package/dist/es/rendering/file-list-multiple-items.component.js +0 -107
  157. package/dist/es/rendering/file-list-single-item.component.js +0 -112
  158. package/dist/es/rendering/file-list.component.js +0 -98
  159. package/dist/es/rendering/upload-action-buttons.component.js +0 -149
  160. package/dist/es/rendering/upload-status-total.component.js +0 -42
  161. package/dist/es/shared.module.js +0 -68
  162. package/dist/es/templates/file-info-template.directive.js +0 -22
  163. package/dist/es/templates/file-template.directive.js +0 -22
  164. package/dist/es/templates/template-context.directive.js +0 -40
  165. package/dist/es/types/async-settings.js +0 -4
  166. package/dist/es/types/chunk-map.js +0 -36
  167. package/dist/es/types/file-groups.js +0 -45
  168. package/dist/es/types/file-map.js +0 -170
  169. package/dist/es/upload.component.js +0 -967
  170. package/dist/es/upload.module.js +0 -34
  171. package/dist/es/upload.service.js +0 -448
  172. package/dist/es/uploads.module.js +0 -47
  173. package/dist/es2015/dropzone.component.js +0 -100
  174. package/dist/es2015/events.js +0 -14
  175. package/dist/es2015/file-select.directive.js +0 -123
  176. package/dist/es2015/fileselect.module.d.ts +0 -9
  177. package/dist/es2015/fileselect.module.js +0 -27
  178. package/dist/es2015/index.d.ts +0 -21
  179. package/dist/es2015/index.js +0 -21
  180. package/dist/es2015/index.metadata.json +0 -1
  181. package/dist/es2015/localization/custom-messages.component.js +0 -45
  182. package/dist/es2015/localization/localized-messages.directive.js +0 -35
  183. package/dist/es2015/localization/messages.js +0 -96
  184. package/dist/es2015/main.js +0 -24
  185. package/dist/es2015/rendering/file-list-item.js +0 -136
  186. package/dist/es2015/rendering/file-list-multiple-items.component.js +0 -128
  187. package/dist/es2015/rendering/file-list-single-item.component.js +0 -117
  188. package/dist/es2015/rendering/file-list.component.js +0 -123
  189. package/dist/es2015/rendering/upload-action-buttons.component.js +0 -141
  190. package/dist/es2015/rendering/upload-status-total.component.js +0 -51
  191. package/dist/es2015/shared.module.d.ts +0 -17
  192. package/dist/es2015/templates/file-info-template.directive.js +0 -21
  193. package/dist/es2015/templates/file-template.directive.js +0 -21
  194. package/dist/es2015/templates/template-context.directive.js +0 -35
  195. package/dist/es2015/types/chunk-metadata.js +0 -4
  196. package/dist/es2015/types/chunk-settings.js +0 -4
  197. package/dist/es2015/types/direction.js +0 -4
  198. package/dist/es2015/types/file-info.js +0 -4
  199. package/dist/es2015/types/file-restrictions.js +0 -4
  200. package/dist/es2015/types/file-state.js +0 -34
  201. package/dist/es2015/types/operation-type.js +0 -4
  202. package/dist/es2015/types.js +0 -5
  203. package/dist/es2015/upload.module.d.ts +0 -9
  204. package/dist/es2015/upload.module.js +0 -31
  205. package/dist/fesm5/index.js +0 -4653
  206. package/dist/npm/common/action-buttons-layout.js +0 -6
  207. package/dist/npm/common/util.js +0 -240
  208. package/dist/npm/common/validation-util.js +0 -68
  209. package/dist/npm/dropzone-base.js +0 -68
  210. package/dist/npm/dropzone-external.directive.js +0 -100
  211. package/dist/npm/dropzone-internal.directive.js +0 -112
  212. package/dist/npm/dropzone.component.js +0 -101
  213. package/dist/npm/dropzone.service.js +0 -35
  214. package/dist/npm/events/cancel-event.js +0 -43
  215. package/dist/npm/events/clear-event.js +0 -45
  216. package/dist/npm/events/error-event.js +0 -47
  217. package/dist/npm/events/pause-event.js +0 -44
  218. package/dist/npm/events/preventable-event.js +0 -31
  219. package/dist/npm/events/remove-event.js +0 -49
  220. package/dist/npm/events/resume-event.js +0 -44
  221. package/dist/npm/events/select-event.js +0 -47
  222. package/dist/npm/events/success-event.js +0 -51
  223. package/dist/npm/events/upload-event.js +0 -49
  224. package/dist/npm/events/upload-progress-event.js +0 -44
  225. package/dist/npm/events.js +0 -26
  226. package/dist/npm/file-select.directive.js +0 -143
  227. package/dist/npm/fileselect.component.js +0 -486
  228. package/dist/npm/fileselect.module.js +0 -32
  229. package/dist/npm/index.js +0 -39
  230. package/dist/npm/localization/custom-messages.component.js +0 -55
  231. package/dist/npm/localization/localized-messages.directive.js +0 -37
  232. package/dist/npm/localization/messages.js +0 -104
  233. package/dist/npm/main.js +0 -45
  234. package/dist/npm/navigation.service.js +0 -168
  235. package/dist/npm/package-metadata.js +0 -17
  236. package/dist/npm/rendering/file-list-item-action-button.component.js +0 -171
  237. package/dist/npm/rendering/file-list-item-base.js +0 -43
  238. package/dist/npm/rendering/file-list-item.js +0 -167
  239. package/dist/npm/rendering/file-list-multiple-items.component.js +0 -109
  240. package/dist/npm/rendering/file-list-single-item.component.js +0 -114
  241. package/dist/npm/rendering/file-list.component.js +0 -100
  242. package/dist/npm/rendering/upload-action-buttons.component.js +0 -151
  243. package/dist/npm/rendering/upload-status-total.component.js +0 -44
  244. package/dist/npm/shared.module.js +0 -70
  245. package/dist/npm/templates/file-info-template.directive.js +0 -24
  246. package/dist/npm/templates/file-template.directive.js +0 -24
  247. package/dist/npm/templates/template-context.directive.js +0 -42
  248. package/dist/npm/types/async-settings.js +0 -6
  249. package/dist/npm/types/chunk-info.js +0 -6
  250. package/dist/npm/types/chunk-map.js +0 -38
  251. package/dist/npm/types/chunk-metadata.js +0 -6
  252. package/dist/npm/types/chunk-settings.js +0 -6
  253. package/dist/npm/types/direction.js +0 -6
  254. package/dist/npm/types/file-groups.js +0 -47
  255. package/dist/npm/types/file-info.js +0 -6
  256. package/dist/npm/types/file-map.js +0 -172
  257. package/dist/npm/types/file-restrictions.js +0 -6
  258. package/dist/npm/types/file-state.js +0 -36
  259. package/dist/npm/types/operation-type.js +0 -6
  260. package/dist/npm/types.js +0 -8
  261. package/dist/npm/upload.component.js +0 -969
  262. package/dist/npm/upload.module.js +0 -36
  263. package/dist/npm/upload.service.js +0 -450
  264. package/dist/npm/uploads.module.js +0 -49
  265. package/dist/systemjs/kendo-angular-upload.js +0 -5
@@ -2,10 +2,7 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- var UploadComponent_1;
7
- import { HttpHeaders } from '@angular/common/http';
8
- import { Component, ContentChild, ElementRef, EventEmitter, forwardRef, HostBinding, HostListener, Input, NgZone, Output, Renderer2, ViewChild, isDevMode, ChangeDetectorRef } from '@angular/core';
5
+ import { Component, ContentChild, EventEmitter, forwardRef, HostBinding, HostListener, Input, Output, ViewChild, isDevMode } from '@angular/core';
9
6
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
10
7
  import { guid, isDocumentAvailable, KendoInput, Keys, isChanged } from '@progress/kendo-angular-common';
11
8
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
@@ -20,19 +17,30 @@ import { UploadService } from './upload.service';
20
17
  import { hasClasses, IGNORE_TARGET_CLASSES, isFocusable, UPLOAD_CLASSES, validateInitialFileInfo } from './common/util';
21
18
  import { DropZoneService } from './dropzone.service';
22
19
  import { FileInfoTemplateDirective } from './templates/file-info-template.directive';
23
- /* tslint:disable: no-use-before-declare */
20
+ import * as i0 from "@angular/core";
21
+ import * as i1 from "./upload.service";
22
+ import * as i2 from "@progress/kendo-angular-l10n";
23
+ import * as i3 from "./navigation.service";
24
+ import * as i4 from "./dropzone.service";
25
+ import * as i5 from "./rendering/upload-status-total.component";
26
+ import * as i6 from "./rendering/file-list.component";
27
+ import * as i7 from "./rendering/upload-action-buttons.component";
28
+ import * as i8 from "./localization/localized-messages.directive";
29
+ import * as i9 from "./dropzone-internal.directive";
30
+ import * as i10 from "./file-select.directive";
31
+ import * as i11 from "@angular/common";
24
32
  /**
25
33
  * @hidden
26
34
  */
27
35
  export const UPLOAD_VALUE_ACCESSOR = {
28
36
  multi: true,
29
37
  provide: NG_VALUE_ACCESSOR,
30
- useExisting: forwardRef(() => UploadComponent) // tslint:disable-line:no-forward-ref
38
+ useExisting: forwardRef(() => UploadComponent)
31
39
  };
32
40
  /**
33
41
  * Represents the [Kendo UI Upload component for Angular]({% slug overview_upload %}).
34
42
  */
35
- let UploadComponent = UploadComponent_1 = class UploadComponent {
43
+ export class UploadComponent {
36
44
  constructor(uploadService, localization, navigation, dropZoneService, _ngZone, renderer, cdr, wrapper) {
37
45
  this.uploadService = uploadService;
38
46
  this.localization = localization;
@@ -641,231 +649,145 @@ let UploadComponent = UploadComponent_1 = class UploadComponent {
641
649
  this.uploadProgress.emit(args);
642
650
  }));
643
651
  }
644
- };
645
- tslib_1.__decorate([
646
- Input(),
647
- tslib_1.__metadata("design:type", Boolean),
648
- tslib_1.__metadata("design:paramtypes", [Boolean])
649
- ], UploadComponent.prototype, "autoUpload", null);
650
- tslib_1.__decorate([
651
- Input(),
652
- tslib_1.__metadata("design:type", Boolean),
653
- tslib_1.__metadata("design:paramtypes", [Boolean])
654
- ], UploadComponent.prototype, "batch", null);
655
- tslib_1.__decorate([
656
- Input(),
657
- tslib_1.__metadata("design:type", Boolean),
658
- tslib_1.__metadata("design:paramtypes", [Boolean])
659
- ], UploadComponent.prototype, "withCredentials", null);
660
- tslib_1.__decorate([
661
- Input(),
662
- tslib_1.__metadata("design:type", String),
663
- tslib_1.__metadata("design:paramtypes", [String])
664
- ], UploadComponent.prototype, "saveField", null);
665
- tslib_1.__decorate([
666
- Input(),
667
- tslib_1.__metadata("design:type", HttpHeaders),
668
- tslib_1.__metadata("design:paramtypes", [HttpHeaders])
669
- ], UploadComponent.prototype, "saveHeaders", null);
670
- tslib_1.__decorate([
671
- Input(),
672
- tslib_1.__metadata("design:type", String),
673
- tslib_1.__metadata("design:paramtypes", [String])
674
- ], UploadComponent.prototype, "saveMethod", null);
675
- tslib_1.__decorate([
676
- Input(),
677
- tslib_1.__metadata("design:type", String),
678
- tslib_1.__metadata("design:paramtypes", [String])
679
- ], UploadComponent.prototype, "saveUrl", null);
680
- tslib_1.__decorate([
681
- Input(),
682
- tslib_1.__metadata("design:type", String),
683
- tslib_1.__metadata("design:paramtypes", [String])
684
- ], UploadComponent.prototype, "responseType", null);
685
- tslib_1.__decorate([
686
- Input(),
687
- tslib_1.__metadata("design:type", String),
688
- tslib_1.__metadata("design:paramtypes", [String])
689
- ], UploadComponent.prototype, "removeField", null);
690
- tslib_1.__decorate([
691
- Input(),
692
- tslib_1.__metadata("design:type", HttpHeaders),
693
- tslib_1.__metadata("design:paramtypes", [HttpHeaders])
694
- ], UploadComponent.prototype, "removeHeaders", null);
695
- tslib_1.__decorate([
696
- Input(),
697
- tslib_1.__metadata("design:type", String),
698
- tslib_1.__metadata("design:paramtypes", [String])
699
- ], UploadComponent.prototype, "removeMethod", null);
700
- tslib_1.__decorate([
701
- Input(),
702
- tslib_1.__metadata("design:type", String),
703
- tslib_1.__metadata("design:paramtypes", [String])
704
- ], UploadComponent.prototype, "removeUrl", null);
705
- tslib_1.__decorate([
706
- Input(),
707
- tslib_1.__metadata("design:type", Object)
708
- ], UploadComponent.prototype, "chunkable", void 0);
709
- tslib_1.__decorate([
710
- Input(),
711
- tslib_1.__metadata("design:type", Boolean),
712
- tslib_1.__metadata("design:paramtypes", [Boolean])
713
- ], UploadComponent.prototype, "concurrent", null);
714
- tslib_1.__decorate([
715
- Input(),
716
- tslib_1.__metadata("design:type", Boolean)
717
- ], UploadComponent.prototype, "multiple", void 0);
718
- tslib_1.__decorate([
719
- Input(),
720
- tslib_1.__metadata("design:type", Boolean)
721
- ], UploadComponent.prototype, "disabled", void 0);
722
- tslib_1.__decorate([
723
- Input(),
724
- tslib_1.__metadata("design:type", Boolean)
725
- ], UploadComponent.prototype, "showFileList", void 0);
726
- tslib_1.__decorate([
727
- Input(),
728
- tslib_1.__metadata("design:type", Number)
729
- ], UploadComponent.prototype, "tabindex", void 0);
730
- tslib_1.__decorate([
731
- Input(),
732
- tslib_1.__metadata("design:type", String)
733
- ], UploadComponent.prototype, "zoneId", void 0);
734
- tslib_1.__decorate([
735
- Input('tabIndex'),
736
- tslib_1.__metadata("design:type", Number),
737
- tslib_1.__metadata("design:paramtypes", [Number])
738
- ], UploadComponent.prototype, "tabIndex", null);
739
- tslib_1.__decorate([
740
- Input(),
741
- tslib_1.__metadata("design:type", String)
742
- ], UploadComponent.prototype, "accept", void 0);
743
- tslib_1.__decorate([
744
- Input(),
745
- tslib_1.__metadata("design:type", Object),
746
- tslib_1.__metadata("design:paramtypes", [Object])
747
- ], UploadComponent.prototype, "restrictions", null);
748
- tslib_1.__decorate([
749
- Input(),
750
- tslib_1.__metadata("design:type", String)
751
- ], UploadComponent.prototype, "focusableId", void 0);
752
- tslib_1.__decorate([
753
- Input(),
754
- tslib_1.__metadata("design:type", String)
755
- ], UploadComponent.prototype, "actionsLayout", void 0);
756
- tslib_1.__decorate([
757
- ContentChild(FileTemplateDirective, { static: false }),
758
- tslib_1.__metadata("design:type", FileTemplateDirective)
759
- ], UploadComponent.prototype, "fileTemplate", void 0);
760
- tslib_1.__decorate([
761
- ContentChild(FileInfoTemplateDirective, { static: false }),
762
- tslib_1.__metadata("design:type", FileInfoTemplateDirective)
763
- ], UploadComponent.prototype, "fileInfoTemplate", void 0);
764
- tslib_1.__decorate([
765
- ViewChild('fileSelect', { static: true }),
766
- tslib_1.__metadata("design:type", ElementRef)
767
- ], UploadComponent.prototype, "fileSelect", void 0);
768
- tslib_1.__decorate([
769
- ViewChild('fileSelectButton', { static: true }),
770
- tslib_1.__metadata("design:type", ElementRef)
771
- ], UploadComponent.prototype, "fileSelectButton", void 0);
772
- tslib_1.__decorate([
773
- Output('blur'),
774
- tslib_1.__metadata("design:type", EventEmitter)
775
- ], UploadComponent.prototype, "onBlur", void 0);
776
- tslib_1.__decorate([
777
- Output(),
778
- tslib_1.__metadata("design:type", EventEmitter)
779
- ], UploadComponent.prototype, "cancel", void 0);
780
- tslib_1.__decorate([
781
- Output(),
782
- tslib_1.__metadata("design:type", EventEmitter)
783
- ], UploadComponent.prototype, "clear", void 0);
784
- tslib_1.__decorate([
785
- Output(),
786
- tslib_1.__metadata("design:type", EventEmitter)
787
- ], UploadComponent.prototype, "complete", void 0);
788
- tslib_1.__decorate([
789
- Output(),
790
- tslib_1.__metadata("design:type", EventEmitter)
791
- ], UploadComponent.prototype, "error", void 0);
792
- tslib_1.__decorate([
793
- Output('focus'),
794
- tslib_1.__metadata("design:type", EventEmitter)
795
- ], UploadComponent.prototype, "onFocus", void 0);
796
- tslib_1.__decorate([
797
- Output(),
798
- tslib_1.__metadata("design:type", EventEmitter)
799
- ], UploadComponent.prototype, "pause", void 0);
800
- tslib_1.__decorate([
801
- Output(),
802
- tslib_1.__metadata("design:type", EventEmitter)
803
- ], UploadComponent.prototype, "remove", void 0);
804
- tslib_1.__decorate([
805
- Output(),
806
- tslib_1.__metadata("design:type", EventEmitter)
807
- ], UploadComponent.prototype, "resume", void 0);
808
- tslib_1.__decorate([
809
- Output(),
810
- tslib_1.__metadata("design:type", EventEmitter)
811
- ], UploadComponent.prototype, "select", void 0);
812
- tslib_1.__decorate([
813
- Output(),
814
- tslib_1.__metadata("design:type", EventEmitter)
815
- ], UploadComponent.prototype, "success", void 0);
816
- tslib_1.__decorate([
817
- Output(),
818
- tslib_1.__metadata("design:type", EventEmitter)
819
- ], UploadComponent.prototype, "upload", void 0);
820
- tslib_1.__decorate([
821
- Output(),
822
- tslib_1.__metadata("design:type", EventEmitter)
823
- ], UploadComponent.prototype, "uploadProgress", void 0);
824
- tslib_1.__decorate([
825
- Output(),
826
- tslib_1.__metadata("design:type", EventEmitter)
827
- ], UploadComponent.prototype, "valueChange", void 0);
828
- tslib_1.__decorate([
829
- HostBinding('class.k-widget'),
830
- HostBinding('class.k-upload'),
831
- tslib_1.__metadata("design:type", Boolean)
832
- ], UploadComponent.prototype, "hostDefaultClasses", void 0);
833
- tslib_1.__decorate([
834
- HostBinding('class.k-disabled'),
835
- tslib_1.__metadata("design:type", Boolean),
836
- tslib_1.__metadata("design:paramtypes", [])
837
- ], UploadComponent.prototype, "hostDisabledClass", null);
838
- tslib_1.__decorate([
839
- HostBinding('attr.dir'),
840
- tslib_1.__metadata("design:type", String),
841
- tslib_1.__metadata("design:paramtypes", [])
842
- ], UploadComponent.prototype, "dir", null);
843
- tslib_1.__decorate([
844
- HostListener('keydown', ['$event']),
845
- tslib_1.__metadata("design:type", Function),
846
- tslib_1.__metadata("design:paramtypes", [Object]),
847
- tslib_1.__metadata("design:returntype", void 0)
848
- ], UploadComponent.prototype, "handleKeydown", null);
849
- UploadComponent = UploadComponent_1 = tslib_1.__decorate([
850
- Component({
851
- exportAs: 'kendoUpload',
852
- providers: [
853
- LocalizationService,
854
- NavigationService,
855
- UploadService,
856
- DropZoneService,
857
- UPLOAD_VALUE_ACCESSOR,
858
- {
859
- provide: L10N_PREFIX,
860
- useValue: 'kendo.upload'
861
- },
862
- {
863
- provide: KendoInput,
864
- useExisting: forwardRef(() => UploadComponent_1)
865
- }
866
- ],
867
- selector: 'kendo-upload',
868
- template: `
652
+ }
653
+ UploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadComponent, deps: [{ token: i1.UploadService }, { token: i2.LocalizationService }, { token: i3.NavigationService }, { token: i4.DropZoneService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
654
+ UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: UploadComponent, selector: "kendo-upload", inputs: { autoUpload: "autoUpload", batch: "batch", withCredentials: "withCredentials", saveField: "saveField", saveHeaders: "saveHeaders", saveMethod: "saveMethod", saveUrl: "saveUrl", responseType: "responseType", removeField: "removeField", removeHeaders: "removeHeaders", removeMethod: "removeMethod", removeUrl: "removeUrl", chunkable: "chunkable", concurrent: "concurrent", multiple: "multiple", disabled: "disabled", showFileList: "showFileList", tabindex: "tabindex", zoneId: "zoneId", tabIndex: "tabIndex", accept: "accept", restrictions: "restrictions", focusableId: "focusableId", actionsLayout: "actionsLayout" }, outputs: { onBlur: "blur", cancel: "cancel", clear: "clear", complete: "complete", error: "error", onFocus: "focus", pause: "pause", remove: "remove", resume: "resume", select: "select", success: "success", upload: "upload", uploadProgress: "uploadProgress", valueChange: "valueChange" }, host: { listeners: { "keydown": "handleKeydown($event)" }, properties: { "class.k-widget": "this.hostDefaultClasses", "class.k-upload": "this.hostDefaultClasses", "class.k-disabled": "this.hostDisabledClass", "attr.dir": "this.dir" } }, providers: [
655
+ LocalizationService,
656
+ NavigationService,
657
+ UploadService,
658
+ DropZoneService,
659
+ UPLOAD_VALUE_ACCESSOR,
660
+ {
661
+ provide: L10N_PREFIX,
662
+ useValue: 'kendo.upload'
663
+ },
664
+ {
665
+ provide: KendoInput,
666
+ useExisting: forwardRef(() => UploadComponent)
667
+ }
668
+ ], queries: [{ propertyName: "fileTemplate", first: true, predicate: FileTemplateDirective, descendants: true }, { propertyName: "fileInfoTemplate", first: true, predicate: FileInfoTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "fileSelect", first: true, predicate: ["fileSelect"], descendants: true, static: true }, { propertyName: "fileSelectButton", first: true, predicate: ["fileSelectButton"], descendants: true, static: true }], exportAs: ["kendoUpload"], usesOnChanges: true, ngImport: i0, template: `
669
+ <ng-container kendoUploadLocalizedMessages
670
+ i18n-cancel="kendo.upload.cancel|The text for the Cancel button"
671
+ cancel="Cancel"
672
+
673
+ i18n-clearSelectedFiles="kendo.upload.clearSelectedFiles|The text for the Clear button"
674
+ clearSelectedFiles="Clear"
675
+
676
+ i18n-dropFilesHere="kendo.upload.dropFilesHere|The drop zone hint"
677
+ dropFilesHere="Drop files here to upload"
678
+
679
+ i18n-filesBatchStatus="kendo.upload.filesBatchStatus|The status message for a batch of files"
680
+ filesBatchStatus="files"
681
+
682
+ i18n-filesBatchStatusFailed="kendo.upload.filesBatchStatusFailed|The status message for a batch of files after failed upload"
683
+ filesBatchStatusFailed="files failed to upload."
684
+
685
+ i18n-filesBatchStatusUploaded="kendo.upload.filesBatchStatusUploaded|The status message for a batch of files after successful upload"
686
+ filesBatchStatusUploaded="files successfully uploaded."
687
+
688
+ i18n-fileStatusFailed="kendo.upload.fileStatusFailed|The file status message after failed upload"
689
+ fileStatusFailed="File failed to upload."
690
+
691
+ i18n-fileStatusUploaded="kendo.upload.fileStatusUploaded|The file status message after successful upload"
692
+ fileStatusUploaded="File successfully uploaded."
693
+
694
+ i18n-headerStatusPaused="kendo.upload.headerStatusPaused|The header status message when the file upload is paused"
695
+ headerStatusPaused="Paused"
696
+
697
+ i18n-headerStatusUploaded="kendo.upload.headerStatusUploaded|The header status message after file upload completion"
698
+ headerStatusUploaded="Done"
699
+
700
+ i18n-headerStatusUploading="kendo.upload.headerStatusUploading|The header status message during file upload"
701
+ headerStatusUploading="Uploading..."
702
+
703
+ i18n-invalidFileExtension="kendo.upload.invalidFileExtension|The text for the invalid allowed extensions restriction message"
704
+ invalidFileExtension="File type not allowed."
705
+
706
+ i18n-invalidMaxFileSize="kendo.upload.invalidMaxFileSize|The text for the invalid max file size restriction message"
707
+ invalidMaxFileSize="File size too large."
708
+
709
+ i18n-invalidMinFileSize="kendo.upload.invalidMinFileSize|The text for the invalid min file size restriction message"
710
+ invalidMinFileSize="File size too small."
711
+
712
+ i18n-pause="kendo.upload.pause|The text for the Pause button"
713
+ pause="Pause"
714
+
715
+ i18n-remove="kendo.upload.remove|The text for the Remove button"
716
+ remove="Remove"
717
+
718
+ i18n-resume="kendo.upload.resume|The text for the Resume button"
719
+ resume="Resume"
720
+
721
+ i18n-retry="kendo.upload.retry|The text for the Retry button"
722
+ retry="Retry"
723
+
724
+ i18n-select="kendo.upload.select|The text for the Select button"
725
+ select="Select files..."
726
+
727
+ i18n-uploadSelectedFiles="kendo.upload.uploadSelectedFiles|The text for the Upload files button"
728
+ uploadSelectedFiles="Upload"
729
+ >
730
+ </ng-container>
731
+ <div kendoUploadInternalDropZone
732
+ [restrictions]="restrictions"
733
+ [multiple]="multiple"
734
+ [disabled]="disabled">
735
+ <div role="button" #fileSelectButton
736
+ [id]="focusableId"
737
+ [attr.aria-label]="textFor('select')"
738
+ [attr.tabindex]="selectButtonTabIndex"
739
+ (focus)="onFileSelectButtonFocus($event)"
740
+ (blur)="onFileSelectButtonBlur($event)"
741
+ class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-upload-button">
742
+ <input #fileSelect kendoFileSelect
743
+ [attr.accept]="accept ? accept : null"
744
+ [attr.aria-hidden]="true"
745
+ [dir]="direction"
746
+ [restrictions]="restrictions"
747
+ [multiple]="multiple"
748
+ [disabled]="disabled" />
749
+ <span>{{textFor('select')}}</span>
750
+ </div>
751
+ <kendo-upload-status-total *ngIf="showTotalStatus"
752
+ class="k-upload-status k-upload-status-total"
753
+ [fileList]="fileList">
754
+ </kendo-upload-status-total>
755
+ <div class="k-dropzone-hint">{{textFor('dropFilesHere')}}</div>
756
+ </div>
757
+ <ul kendo-upload-file-list *ngIf="showFileList && fileList.count > 0"
758
+ class="k-upload-files k-reset"
759
+ [disabled]="disabled"
760
+ [fileList]="fileList.files"
761
+ [fileTemplate]="fileTemplate"
762
+ [fileInfoTemplate]="fileInfoTemplate">
763
+ </ul>
764
+ <kendo-upload-action-buttons
765
+ *ngIf="showActionButtons"
766
+ [disabled]="disabled"
767
+ [actionsLayout]="actionsLayout">
768
+ </kendo-upload-action-buttons>
769
+ `, isInline: true, components: [{ type: i5.UploadStatusTotalComponent, selector: "kendo-upload-status-total", inputs: ["fileList"] }, { type: i6.FileListComponent, selector: "[kendo-upload-file-list]", inputs: ["disabled", "fileList", "fileTemplate", "fileInfoTemplate"] }, { type: i7.UploadActionButtonsComponent, selector: "kendo-upload-action-buttons", inputs: ["disabled", "actionsLayout"] }], directives: [{ type: i8.LocalizedMessagesDirective, selector: "\n [kendoUploadLocalizedMessages],\n [kendoFileSelectLocalizedMessages],\n [kendoUploadDropZoneLocalizedMessages]\n " }, { type: i9.DropZoneInternalDirective, selector: "\n [kendoUploadInternalDropZone],\n [kendoFileSelectInternalDropZone]\n ", inputs: ["disabled", "multiple", "restrictions"] }, { type: i10.FileSelectDirective, selector: "[kendoFileSelect]", inputs: ["dir", "disabled", "multiple", "restrictions"] }, { type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
770
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadComponent, decorators: [{
771
+ type: Component,
772
+ args: [{
773
+ exportAs: 'kendoUpload',
774
+ providers: [
775
+ LocalizationService,
776
+ NavigationService,
777
+ UploadService,
778
+ DropZoneService,
779
+ UPLOAD_VALUE_ACCESSOR,
780
+ {
781
+ provide: L10N_PREFIX,
782
+ useValue: 'kendo.upload'
783
+ },
784
+ {
785
+ provide: KendoInput,
786
+ useExisting: forwardRef(() => UploadComponent)
787
+ }
788
+ ],
789
+ selector: 'kendo-upload',
790
+ template: `
869
791
  <ng-container kendoUploadLocalizedMessages
870
792
  i18n-cancel="kendo.upload.cancel|The text for the Cancel button"
871
793
  cancel="Cancel"
@@ -967,14 +889,111 @@ UploadComponent = UploadComponent_1 = tslib_1.__decorate([
967
889
  [actionsLayout]="actionsLayout">
968
890
  </kendo-upload-action-buttons>
969
891
  `
970
- }),
971
- tslib_1.__metadata("design:paramtypes", [UploadService,
972
- LocalizationService,
973
- NavigationService,
974
- DropZoneService,
975
- NgZone,
976
- Renderer2,
977
- ChangeDetectorRef,
978
- ElementRef])
979
- ], UploadComponent);
980
- export { UploadComponent };
892
+ }]
893
+ }], ctorParameters: function () { return [{ type: i1.UploadService }, { type: i2.LocalizationService }, { type: i3.NavigationService }, { type: i4.DropZoneService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { autoUpload: [{
894
+ type: Input
895
+ }], batch: [{
896
+ type: Input
897
+ }], withCredentials: [{
898
+ type: Input
899
+ }], saveField: [{
900
+ type: Input
901
+ }], saveHeaders: [{
902
+ type: Input
903
+ }], saveMethod: [{
904
+ type: Input
905
+ }], saveUrl: [{
906
+ type: Input
907
+ }], responseType: [{
908
+ type: Input
909
+ }], removeField: [{
910
+ type: Input
911
+ }], removeHeaders: [{
912
+ type: Input
913
+ }], removeMethod: [{
914
+ type: Input
915
+ }], removeUrl: [{
916
+ type: Input
917
+ }], chunkable: [{
918
+ type: Input
919
+ }], concurrent: [{
920
+ type: Input
921
+ }], multiple: [{
922
+ type: Input
923
+ }], disabled: [{
924
+ type: Input
925
+ }], showFileList: [{
926
+ type: Input
927
+ }], tabindex: [{
928
+ type: Input
929
+ }], zoneId: [{
930
+ type: Input
931
+ }], tabIndex: [{
932
+ type: Input,
933
+ args: ['tabIndex']
934
+ }], accept: [{
935
+ type: Input
936
+ }], restrictions: [{
937
+ type: Input
938
+ }], focusableId: [{
939
+ type: Input
940
+ }], actionsLayout: [{
941
+ type: Input
942
+ }], fileTemplate: [{
943
+ type: ContentChild,
944
+ args: [FileTemplateDirective, { static: false }]
945
+ }], fileInfoTemplate: [{
946
+ type: ContentChild,
947
+ args: [FileInfoTemplateDirective, { static: false }]
948
+ }], fileSelect: [{
949
+ type: ViewChild,
950
+ args: ['fileSelect', { static: true }]
951
+ }], fileSelectButton: [{
952
+ type: ViewChild,
953
+ args: ['fileSelectButton', { static: true }]
954
+ }], onBlur: [{
955
+ type: Output,
956
+ args: ['blur']
957
+ }], cancel: [{
958
+ type: Output
959
+ }], clear: [{
960
+ type: Output
961
+ }], complete: [{
962
+ type: Output
963
+ }], error: [{
964
+ type: Output
965
+ }], onFocus: [{
966
+ type: Output,
967
+ args: ['focus']
968
+ }], pause: [{
969
+ type: Output
970
+ }], remove: [{
971
+ type: Output
972
+ }], resume: [{
973
+ type: Output
974
+ }], select: [{
975
+ type: Output
976
+ }], success: [{
977
+ type: Output
978
+ }], upload: [{
979
+ type: Output
980
+ }], uploadProgress: [{
981
+ type: Output
982
+ }], valueChange: [{
983
+ type: Output
984
+ }], hostDefaultClasses: [{
985
+ type: HostBinding,
986
+ args: ['class.k-widget']
987
+ }, {
988
+ type: HostBinding,
989
+ args: ['class.k-upload']
990
+ }], hostDisabledClass: [{
991
+ type: HostBinding,
992
+ args: ['class.k-disabled']
993
+ }], dir: [{
994
+ type: HostBinding,
995
+ args: ['attr.dir']
996
+ }], handleKeydown: [{
997
+ type: HostListener,
998
+ args: ['keydown', ['$event']]
999
+ }] } });
@@ -0,0 +1,43 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { NgModule } from '@angular/core';
6
+ import { UploadComponent } from './upload.component';
7
+ import { UploadActionButtonsComponent } from './rendering/upload-action-buttons.component';
8
+ import { UploadStatusTotalComponent } from './rendering/upload-status-total.component';
9
+ import { SharedModule, PUBLIC_DIRECTIVES } from './shared.module';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "./templates/file-template.directive";
12
+ import * as i2 from "./templates/file-info-template.directive";
13
+ import * as i3 from "./localization/custom-messages.component";
14
+ import * as i4 from "./dropzone-external.directive";
15
+ import * as i5 from "./dropzone.component";
16
+ const UPLOAD_DECLARATIONS = [
17
+ UploadComponent,
18
+ UploadActionButtonsComponent,
19
+ UploadStatusTotalComponent
20
+ ];
21
+ /**
22
+ * Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the Upload component.
23
+ */
24
+ export class UploadModule {
25
+ }
26
+ UploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
27
+ UploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadModule, declarations: [UploadComponent,
28
+ UploadActionButtonsComponent,
29
+ UploadStatusTotalComponent], imports: [SharedModule], exports: [i1.FileTemplateDirective, i2.FileInfoTemplateDirective, i3.CustomMessagesComponent, i4.UploadDropZoneDirective, i5.UploadDropZoneComponent, UploadComponent,
30
+ UploadActionButtonsComponent,
31
+ UploadStatusTotalComponent] });
32
+ UploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadModule, imports: [[SharedModule]] });
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadModule, decorators: [{
34
+ type: NgModule,
35
+ args: [{
36
+ declarations: [UPLOAD_DECLARATIONS],
37
+ exports: [
38
+ PUBLIC_DIRECTIVES,
39
+ UPLOAD_DECLARATIONS
40
+ ],
41
+ imports: [SharedModule]
42
+ }]
43
+ }] });
@@ -2,18 +2,19 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { HttpClient, HttpEventType, HttpHeaders, HttpRequest, HttpResponse } from '@angular/common/http';
5
+ import { HttpEventType, HttpHeaders, HttpRequest, HttpResponse } from '@angular/common/http';
7
6
  import { EventEmitter, Injectable } from '@angular/core';
8
7
  import { FileState } from './types';
9
8
  import { FileMap } from './types/file-map';
10
9
  import { CancelEvent, ClearEvent, ErrorEvent, PauseEvent, RemoveEvent, ResumeEvent, SelectEvent, SuccessEvent, UploadEvent, UploadProgressEvent } from './events';
11
10
  import { getInitialFileInfo, convertFileToFileInfo } from './common/util';
12
11
  import { ChunkMap } from './types/chunk-map';
12
+ import * as i0 from "@angular/core";
13
+ import * as i1 from "@angular/common/http";
13
14
  /**
14
15
  * @hidden
15
16
  */
16
- let UploadService = class UploadService {
17
+ export class UploadService {
17
18
  constructor(http) {
18
19
  this.http = http;
19
20
  this.cancelEvent = new EventEmitter();
@@ -419,9 +420,9 @@ let UploadService = class UploadService {
419
420
  }
420
421
  return false;
421
422
  }
422
- };
423
- UploadService = tslib_1.__decorate([
424
- Injectable(),
425
- tslib_1.__metadata("design:paramtypes", [HttpClient])
426
- ], UploadService);
427
- export { UploadService };
423
+ }
424
+ UploadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
425
+ UploadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadService });
426
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadService, decorators: [{
427
+ type: Injectable
428
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });