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

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 +32 -102
  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
@@ -1,101 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
10
- var dropzone_base_1 = require("./dropzone-base");
11
- /* tslint:disable: no-use-before-declare */
12
- /**
13
- * Represents the [Kendo UI UploadDropZone component for Angular]({% slug overview_upload %}).
14
- */
15
- var UploadDropZoneComponent = /** @class */ (function (_super) {
16
- tslib_1.__extends(UploadDropZoneComponent, _super);
17
- function UploadDropZoneComponent(element, renderer, localization) {
18
- var _this = _super.call(this, element, renderer, 'k-external-dropzone-hover') || this;
19
- _this.localization = localization;
20
- _this.hostClass = true;
21
- _this.localizationChangeSubscription = _this.localization.changes.subscribe(function (_a) {
22
- var rtl = _a.rtl;
23
- _this.direction = rtl ? 'rtl' : 'ltr';
24
- });
25
- return _this;
26
- }
27
- Object.defineProperty(UploadDropZoneComponent.prototype, "dirAttribute", {
28
- get: function () {
29
- return this.direction;
30
- },
31
- enumerable: true,
32
- configurable: true
33
- });
34
- /**
35
- * @hidden
36
- */
37
- UploadDropZoneComponent.prototype.textFor = function (key) {
38
- return this.localization.get(key);
39
- };
40
- Object.defineProperty(UploadDropZoneComponent.prototype, "iconClasses", {
41
- /**
42
- * @hidden
43
- */
44
- get: function () {
45
- if (this.icon) {
46
- return "k-icon k-i-" + this.icon;
47
- }
48
- if (this.iconClass) {
49
- return "" + this.iconClass;
50
- }
51
- return 'k-icon k-i-upload';
52
- },
53
- enumerable: true,
54
- configurable: true
55
- });
56
- UploadDropZoneComponent.prototype.ngOnDestroy = function () {
57
- if (this.localizationChangeSubscription) {
58
- this.localizationChangeSubscription.unsubscribe();
59
- }
60
- };
61
- tslib_1.__decorate([
62
- core_1.HostBinding('class.k-external-dropzone'),
63
- tslib_1.__metadata("design:type", Boolean)
64
- ], UploadDropZoneComponent.prototype, "hostClass", void 0);
65
- tslib_1.__decorate([
66
- core_1.HostBinding('attr.dir'),
67
- tslib_1.__metadata("design:type", String),
68
- tslib_1.__metadata("design:paramtypes", [])
69
- ], UploadDropZoneComponent.prototype, "dirAttribute", null);
70
- tslib_1.__decorate([
71
- core_1.Input(),
72
- tslib_1.__metadata("design:type", String)
73
- ], UploadDropZoneComponent.prototype, "zoneId", void 0);
74
- tslib_1.__decorate([
75
- core_1.Input(),
76
- tslib_1.__metadata("design:type", String)
77
- ], UploadDropZoneComponent.prototype, "icon", void 0);
78
- tslib_1.__decorate([
79
- core_1.Input(),
80
- tslib_1.__metadata("design:type", String)
81
- ], UploadDropZoneComponent.prototype, "iconClass", void 0);
82
- UploadDropZoneComponent = tslib_1.__decorate([
83
- core_1.Component({
84
- exportAs: 'kendoUploadDropZone',
85
- providers: [
86
- kendo_angular_l10n_1.LocalizationService,
87
- {
88
- provide: kendo_angular_l10n_1.L10N_PREFIX,
89
- useValue: 'kendo.uploaddropzone'
90
- }
91
- ],
92
- selector: 'kendo-uploaddropzone',
93
- template: "\n <ng-container kendoUploadDropZoneLocalizedMessages\n i18n-externalDropFilesHere='kendo.uploaddropzone.externalDropFilesHere|Sets the external drop-zone hint'\n externalDropFilesHere='Drag and drop files here to upload'\n >\n </ng-container>\n <div class='k-dropzone-inner' [kendoUploadDropZone]=\"zoneId\">\n <span [ngClass]=\"iconClasses\"></span>\n <span class=\"k-dropzone-hint\">{{ textFor('externalDropFilesHere') }}</span>\n <span class=\"k-dropzone-note\">\n <ng-content></ng-content>\n </span>\n </div>\n "
94
- }),
95
- tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
96
- core_1.Renderer2,
97
- kendo_angular_l10n_1.LocalizationService])
98
- ], UploadDropZoneComponent);
99
- return UploadDropZoneComponent;
100
- }(dropzone_base_1.DropZoneBase));
101
- exports.UploadDropZoneComponent = UploadDropZoneComponent;
@@ -1,35 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var components = {};
10
- /**
11
- * @hidden
12
- */
13
- var DropZoneService = /** @class */ (function () {
14
- function DropZoneService() {
15
- }
16
- DropZoneService.prototype.addComponent = function (component, zoneId) {
17
- if (this.has(zoneId)) {
18
- components[zoneId].push(component);
19
- }
20
- else {
21
- components[zoneId] = [component];
22
- }
23
- };
24
- DropZoneService.prototype.getComponents = function (zoneId) {
25
- return components[zoneId];
26
- };
27
- DropZoneService.prototype.has = function (id) {
28
- return id in components;
29
- };
30
- DropZoneService = tslib_1.__decorate([
31
- core_1.Injectable()
32
- ], DropZoneService);
33
- return DropZoneService;
34
- }());
35
- exports.DropZoneService = DropZoneService;
@@ -1,43 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- /**
8
- * Arguments for the `cancel` event. The `cancel` event fires when
9
- * the user cancels the process of uploading a file or a batch of files.
10
- *
11
- * ```ts-no-run
12
- * @Component({
13
- * selector: 'my-upload',
14
- * template: `
15
- * <p>Click the <span class='k-icon k-i-cancel'></span> icon during upload to trigger the event</p>
16
- * <kendo-upload
17
- * [saveUrl]="uploadSaveUrl"
18
- * [removeUrl]="uploadRemoveUrl"
19
- * (cancel)="cancelEventHandler($event)">
20
- * </kendo-upload>
21
- * `
22
- * })
23
- * export class UploadComponent {
24
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
25
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
26
- *
27
- * cancelEventHandler(e: CancelEvent) {
28
- * console.log('Canceling file upload', e.files);
29
- * }
30
- * }
31
- * ```
32
- */
33
- var CancelEvent = /** @class */ (function () {
34
- /**
35
- * Constructs the event arguments for the `cancel` event.
36
- * @param files - The list of the files that were going to be uploaded.
37
- */
38
- function CancelEvent(files) {
39
- this.files = files;
40
- }
41
- return CancelEvent;
42
- }());
43
- exports.CancelEvent = CancelEvent;
@@ -1,45 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var preventable_event_1 = require("./preventable-event");
9
- /**
10
- * Arguments for the `clear` event. The `clear` event fires when
11
- * the **Clear** button is clicked. At this point, the selected files are about to be cleared.
12
- *
13
- * ```ts-no-run
14
- * @Component({
15
- * selector: 'my-upload',
16
- * template: `
17
- * <kendo-upload
18
- * [autoUpload]="false"
19
- * [saveUrl]="uploadSaveUrl"
20
- * [removeUrl]="uploadRemoveUrl"
21
- * (clear)="clearEventHandler($event)">
22
- * </kendo-upload>
23
- * `
24
- * })
25
- * export class UploadComponent {
26
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
27
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
28
- *
29
- * clearEventHandler(e: ClearEvent) {
30
- * console.log('Clearing the file upload');
31
- * }
32
- * }
33
- * ```
34
- */
35
- var ClearEvent = /** @class */ (function (_super) {
36
- tslib_1.__extends(ClearEvent, _super);
37
- /**
38
- * Constructs the event arguments for the `clear` event.
39
- */
40
- function ClearEvent() {
41
- return _super.call(this) || this;
42
- }
43
- return ClearEvent;
44
- }(preventable_event_1.PreventableEvent));
45
- exports.ClearEvent = ClearEvent;
@@ -1,47 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- /**
8
- * Arguments for the `error` event. The `error` event fires when
9
- * an `upload` or `remove` operation fails.
10
- *
11
- * ```ts-no-run
12
- * @Component({
13
- * selector: 'my-upload',
14
- * template: `
15
- * <kendo-upload
16
- * [saveUrl]="uploadSaveUrl"
17
- * [removeUrl]="uploadRemoveUrl"
18
- * (error)="errorEventHandler($event)">
19
- * </kendo-upload>
20
- * `
21
- * })
22
- * export class UploadComponent {
23
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
24
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
25
- *
26
- * errorEventHandler(e: ErrorEvent) {
27
- * console.log('An error occurred');
28
- * }
29
- * }
30
- * ```
31
- */
32
- var ErrorEvent = /** @class */ (function () {
33
- /**
34
- * Constructs the event arguments for the `error` event.
35
- *
36
- * @param files - The list of the files that failed to be uploaded or removed.
37
- * @param operation - The operation type (`upload` or `remove`).
38
- * @param response - The response object returned by the server.
39
- */
40
- function ErrorEvent(files, operation, response) {
41
- this.files = files;
42
- this.operation = operation;
43
- this.response = response;
44
- }
45
- return ErrorEvent;
46
- }());
47
- exports.ErrorEvent = ErrorEvent;
@@ -1,44 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- /**
8
- * Arguments for the `pause` event. The `pause` event fires when the user
9
- * pauses a file that is currently uploading.
10
- *
11
- * ```ts-no-run
12
- * @Component({
13
- * selector: 'my-upload',
14
- * template: `
15
- * <kendo-upload
16
- * [chunkable]="true"
17
- * [saveUrl]="uploadSaveUrl"
18
- * [removeUrl]="uploadRemoveUrl"
19
- * (pause)="pauseEventHandler($event)">
20
- * </kendo-upload>
21
- * `
22
- * })
23
- * export class UploadComponent {
24
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
25
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
26
- *
27
- * pauseEventHandler(ev: PauseEvent) {
28
- * console.log('File paused');
29
- * }
30
- * }
31
- * ```
32
- *
33
- */
34
- var PauseEvent = /** @class */ (function () {
35
- /**
36
- * Constructs the event arguments for the `pause` event.
37
- * @param file - The file that is going to be paused.
38
- */
39
- function PauseEvent(file) {
40
- this.file = file;
41
- }
42
- return PauseEvent;
43
- }());
44
- exports.PauseEvent = PauseEvent;
@@ -1,31 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- /**
8
- * @hidden
9
- */
10
- var PreventableEvent = /** @class */ (function () {
11
- function PreventableEvent() {
12
- this.prevented = false;
13
- }
14
- /**
15
- * Prevents the default action for a specified event.
16
- * In this way, the source component suppresses the built-in behavior that follows the event.
17
- */
18
- PreventableEvent.prototype.preventDefault = function () {
19
- this.prevented = true;
20
- };
21
- /**
22
- * If the event is prevented by any of its subscribers, returns `true`.
23
- *
24
- * @returns `true` if the default action was prevented. Otherwise, returns `false`.
25
- */
26
- PreventableEvent.prototype.isDefaultPrevented = function () {
27
- return this.prevented;
28
- };
29
- return PreventableEvent;
30
- }());
31
- exports.PreventableEvent = PreventableEvent;
@@ -1,49 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var preventable_event_1 = require("./preventable-event");
9
- /**
10
- * Arguments for the `remove` event. The `remove` event fires when an uploaded
11
- * or selected file is about to be removed. If you cancel the event, the removal is prevented.
12
- *
13
- * ```ts-no-run
14
- * @Component({
15
- * selector: 'my-upload',
16
- * template: `
17
- * <kendo-upload
18
- * [saveUrl]="uploadSaveUrl"
19
- * [removeUrl]="uploadRemoveUrl"
20
- * (remove)="removeEventHandler($event)">
21
- * </kendo-upload>
22
- * `
23
- * })
24
- * export class UploadComponent {
25
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
26
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
27
- *
28
- * removeEventHandler(e: RemoveEvent) {
29
- * console.log('Removing a file');
30
- * }
31
- * }
32
- * ```
33
- */
34
- var RemoveEvent = /** @class */ (function (_super) {
35
- tslib_1.__extends(RemoveEvent, _super);
36
- /**
37
- * Constructs the event arguments for the `remove` event.
38
- * @param files - The list of the files that will be removed.
39
- * @param headers - The headers of the request.
40
- */
41
- function RemoveEvent(files, headers) {
42
- var _this = _super.call(this) || this;
43
- _this.files = files;
44
- _this.headers = headers;
45
- return _this;
46
- }
47
- return RemoveEvent;
48
- }(preventable_event_1.PreventableEvent));
49
- exports.RemoveEvent = RemoveEvent;
@@ -1,44 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- /**
8
- * Arguments for the `resume` event. The `resume` event fires when the user
9
- * resumes the upload of a file that has been previously paused.
10
- *
11
- * ```ts-no-run
12
- * @Component({
13
- * selector: 'my-upload',
14
- * template: `
15
- * <kendo-upload
16
- * [chunkable]="true"
17
- * [saveUrl]="uploadSaveUrl"
18
- * [removeUrl]="uploadRemoveUrl"
19
- * (resume)="resumeEventHandler($event)">
20
- * </kendo-upload>
21
- * `
22
- * })
23
- * export class UploadComponent {
24
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
25
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
26
- *
27
- * resumeEventHandler(ev: ResumeEvent) {
28
- * console.log('File resumed');
29
- * }
30
- * }
31
- * ```
32
- *
33
- */
34
- var ResumeEvent = /** @class */ (function () {
35
- /**
36
- * Constructs the event arguments for the `resume` event.
37
- * @param file - The file that is going to be resumed.
38
- */
39
- function ResumeEvent(file) {
40
- this.file = file;
41
- }
42
- return ResumeEvent;
43
- }());
44
- exports.ResumeEvent = ResumeEvent;
@@ -1,47 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var preventable_event_1 = require("./preventable-event");
9
- /**
10
- * Arguments for the `select` event. The `select` event fires when the user
11
- * selects a file or multiple files for upload. If you cancel the event, the selection is prevented.
12
- *
13
- * ```ts-no-run
14
- * @Component({
15
- * selector: 'my-upload',
16
- * template: `
17
- * <kendo-upload
18
- * [saveUrl]="uploadSaveUrl"
19
- * [removeUrl]="uploadRemoveUrl"
20
- * (select)="selectEventHandler($event)">
21
- * </kendo-upload>
22
- * `
23
- * })
24
- * export class UploadComponent {
25
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
26
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
27
- *
28
- * selectEventHandler(e: SelectEvent) {
29
- * console.log('File selected');
30
- * }
31
- * }
32
- * ```
33
- */
34
- var SelectEvent = /** @class */ (function (_super) {
35
- tslib_1.__extends(SelectEvent, _super);
36
- /**
37
- * Constructs the event arguments for the `select` event.
38
- * @param files - The list of the selected files.
39
- */
40
- function SelectEvent(files) {
41
- var _this = _super.call(this) || this;
42
- _this.files = files;
43
- return _this;
44
- }
45
- return SelectEvent;
46
- }(preventable_event_1.PreventableEvent));
47
- exports.SelectEvent = SelectEvent;
@@ -1,51 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var preventable_event_1 = require("./preventable-event");
9
- /**
10
- * Arguments for the `success` event. The `success` event fires when
11
- * the selected files are successfully uploaded or removed.
12
- *
13
- * ```ts-no-run
14
- * @Component({
15
- * selector: 'my-upload',
16
- * template: `
17
- * <kendo-upload
18
- * [saveUrl]="uploadSaveUrl"
19
- * [removeUrl]="uploadRemoveUrl"
20
- * (success)="successEventHandler($event)">
21
- * </kendo-upload>
22
- * `
23
- * })
24
- * export class UploadComponent {
25
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
26
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
27
- *
28
- * successEventHandler(e: SuccessEvent) {
29
- * console.log('The ' + e.operation + ' was successful!');
30
- * }
31
- * }
32
- * ```
33
- */
34
- var SuccessEvent = /** @class */ (function (_super) {
35
- tslib_1.__extends(SuccessEvent, _super);
36
- /**
37
- * Constructs the event arguments for the `success` event.
38
- * @param files - The list of the files that were uploaded or removed.
39
- * @param operation - The operation type (`upload` or `remove`).
40
- * @param response - The response object returned by the server.
41
- */
42
- function SuccessEvent(files, operation, response) {
43
- var _this = _super.call(this) || this;
44
- _this.files = files;
45
- _this.operation = operation;
46
- _this.response = response;
47
- return _this;
48
- }
49
- return SuccessEvent;
50
- }(preventable_event_1.PreventableEvent));
51
- exports.SuccessEvent = SuccessEvent;
@@ -1,49 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var preventable_event_1 = require("./preventable-event");
9
- /**
10
- * Arguments for the `upload` event. The `upload` event fires when one or more files are about
11
- * to be uploaded. If you cancel the event, the upload is prevented. You can add headers to the request.
12
- *
13
- * ```ts-no-run
14
- * @Component({
15
- * selector: 'my-upload',
16
- * template: `
17
- * <kendo-upload
18
- * [saveUrl]="uploadSaveUrl"
19
- * [removeUrl]="uploadRemoveUrl"
20
- * (upload)="uploadEventHandler($event)">
21
- * </kendo-upload>
22
- * `
23
- * })
24
- * export class UploadComponent {
25
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
26
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
27
- *
28
- * uploadEventHandler(e: UploadEvent) {
29
- * e.headers = e.headers.append('X-Foo', 'Bar');
30
- * }
31
- * }
32
- * ```
33
- */
34
- var UploadEvent = /** @class */ (function (_super) {
35
- tslib_1.__extends(UploadEvent, _super);
36
- /**
37
- * Constructs the event arguments for the `upload` event.
38
- * @param files - The list of the files that will be uploaded.
39
- * @param headers - The headers of the request.
40
- */
41
- function UploadEvent(files, headers) {
42
- var _this = _super.call(this) || this;
43
- _this.files = files;
44
- _this.headers = headers;
45
- return _this;
46
- }
47
- return UploadEvent;
48
- }(preventable_event_1.PreventableEvent));
49
- exports.UploadEvent = UploadEvent;
@@ -1,44 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- /**
8
- * Arguments for the `uploadprogress` event. The `uploadprogress` event
9
- * fires when the files are in the process of uploading.
10
- *
11
- * ```ts-no-run
12
- * @Component({
13
- * selector: 'my-upload',
14
- * template: `
15
- * <kendo-upload
16
- * [saveUrl]="uploadSaveUrl"
17
- * [removeUrl]="uploadRemoveUrl"
18
- * (uploadProgress)="uploadProgressEventHandler($event)">
19
- * </kendo-upload>
20
- * `
21
- * })
22
- * export class UploadComponent {
23
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
24
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
25
- *
26
- * uploadProgressEventHandler(e: UploadProgressEvent) {
27
- * console.log(e.files[0].name + ' is ' + e.percentComplete + ' uploaded');
28
- * }
29
- * }
30
- * ```
31
- */
32
- var UploadProgressEvent = /** @class */ (function () {
33
- /**
34
- * Constructs the event arguments for the `uploadprogress` event.
35
- * @param files - The list of files that are being uploaded.
36
- * @param percentComplete - The portion that has been uploaded.
37
- */
38
- function UploadProgressEvent(files, percentComplete) {
39
- this.files = files;
40
- this.percentComplete = percentComplete;
41
- }
42
- return UploadProgressEvent;
43
- }());
44
- exports.UploadProgressEvent = UploadProgressEvent;
@@ -1,26 +0,0 @@
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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var cancel_event_1 = require("./events/cancel-event");
8
- exports.CancelEvent = cancel_event_1.CancelEvent;
9
- var clear_event_1 = require("./events/clear-event");
10
- exports.ClearEvent = clear_event_1.ClearEvent;
11
- var error_event_1 = require("./events/error-event");
12
- exports.ErrorEvent = error_event_1.ErrorEvent;
13
- var pause_event_1 = require("./events/pause-event");
14
- exports.PauseEvent = pause_event_1.PauseEvent;
15
- var remove_event_1 = require("./events/remove-event");
16
- exports.RemoveEvent = remove_event_1.RemoveEvent;
17
- var resume_event_1 = require("./events/resume-event");
18
- exports.ResumeEvent = resume_event_1.ResumeEvent;
19
- var select_event_1 = require("./events/select-event");
20
- exports.SelectEvent = select_event_1.SelectEvent;
21
- var success_event_1 = require("./events/success-event");
22
- exports.SuccessEvent = success_event_1.SuccessEvent;
23
- var upload_event_1 = require("./events/upload-event");
24
- exports.UploadEvent = upload_event_1.UploadEvent;
25
- var upload_progress_event_1 = require("./events/upload-progress-event");
26
- exports.UploadProgressEvent = upload_progress_event_1.UploadProgressEvent;