@progress/kendo-angular-upload 17.0.0-develop.9 → 17.0.0

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 (87) hide show
  1. package/common/action-buttons-layout.d.ts +1 -1
  2. package/common/base.d.ts +1 -1
  3. package/dropzone-external.directive.d.ts +1 -1
  4. package/dropzone-internal.directive.d.ts +1 -1
  5. package/dropzone.component.d.ts +1 -1
  6. package/{esm2020 → esm2022}/common/base.mjs +96 -67
  7. package/{esm2020 → esm2022}/dropzone-base.mjs +13 -9
  8. package/{esm2020 → esm2022}/dropzone-external.directive.mjs +16 -5
  9. package/{esm2020 → esm2022}/dropzone-internal.directive.mjs +14 -6
  10. package/{esm2020 → esm2022}/dropzone.component.mjs +38 -19
  11. package/{esm2020 → esm2022}/dropzone.service.mjs +3 -3
  12. package/{esm2020 → esm2022}/events/cancel-event.mjs +4 -0
  13. package/{esm2020 → esm2022}/events/error-event.mjs +12 -0
  14. package/{esm2020 → esm2022}/events/pause-event.mjs +4 -0
  15. package/{esm2020 → esm2022}/events/preventable-event.mjs +1 -3
  16. package/{esm2020 → esm2022}/events/remove-event.mjs +12 -0
  17. package/{esm2020 → esm2022}/events/resume-event.mjs +4 -0
  18. package/{esm2020 → esm2022}/events/select-event.mjs +4 -0
  19. package/{esm2020 → esm2022}/events/success-event.mjs +12 -0
  20. package/{esm2020 → esm2022}/events/upload-event.mjs +35 -0
  21. package/{esm2020 → esm2022}/events/upload-progress-event.mjs +8 -0
  22. package/{esm2020 → esm2022}/file-select.directive.mjs +17 -8
  23. package/{esm2020 → esm2022}/fileselect.component.mjs +60 -42
  24. package/{esm2020 → esm2022}/fileselect.module.mjs +8 -8
  25. package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +12 -11
  26. package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
  27. package/esm2022/localization/messages.mjs +143 -0
  28. package/{esm2020 → esm2022}/navigation.service.mjs +17 -14
  29. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  30. package/{esm2020 → esm2022}/rendering/file-list-item-action-button.component.mjs +15 -9
  31. package/{esm2020 → esm2022}/rendering/file-list-item-base.mjs +7 -4
  32. package/{esm2020 → esm2022}/rendering/file-list-item.mjs +10 -5
  33. package/{esm2020 → esm2022}/rendering/file-list-multiple-items.component.mjs +18 -13
  34. package/{esm2020 → esm2022}/rendering/file-list-single-item.component.mjs +16 -12
  35. package/{esm2020 → esm2022}/rendering/file-list.component.mjs +14 -5
  36. package/{esm2020 → esm2022}/rendering/upload-action-buttons.component.mjs +17 -10
  37. package/{esm2020 → esm2022}/rendering/upload-status-total.component.mjs +14 -8
  38. package/esm2022/templates/file-info-template.directive.mjs +40 -0
  39. package/esm2022/templates/file-template.directive.mjs +40 -0
  40. package/{esm2020 → esm2022}/types/chunk-map.mjs +1 -0
  41. package/{esm2020 → esm2022}/types/file-map.mjs +1 -0
  42. package/{esm2020 → esm2022}/upload.component.mjs +113 -95
  43. package/{esm2020 → esm2022}/upload.module.mjs +8 -8
  44. package/{esm2020 → esm2022}/upload.service.mjs +50 -49
  45. package/{esm2020 → esm2022}/uploads.module.mjs +8 -8
  46. package/{fesm2020 → fesm2022}/progress-kendo-angular-upload.mjs +822 -442
  47. package/file-select.directive.d.ts +1 -1
  48. package/fileselect.component.d.ts +1 -1
  49. package/localization/messages.d.ts +1 -1
  50. package/package.json +16 -22
  51. package/rendering/file-list-item-action-button.component.d.ts +1 -1
  52. package/rendering/file-list-item.d.ts +1 -1
  53. package/rendering/file-list-multiple-items.component.d.ts +1 -1
  54. package/rendering/file-list-single-item.component.d.ts +1 -1
  55. package/rendering/file-list.component.d.ts +1 -1
  56. package/rendering/upload-action-buttons.component.d.ts +1 -1
  57. package/rendering/upload-status-total.component.d.ts +1 -1
  58. package/schematics/ngAdd/index.js +4 -4
  59. package/templates/file-info-template.directive.d.ts +17 -1
  60. package/templates/file-template.directive.d.ts +17 -1
  61. package/types/direction.d.ts +1 -1
  62. package/types/operation-type.d.ts +1 -1
  63. package/upload.component.d.ts +1 -1
  64. package/upload.service.d.ts +1 -1
  65. package/esm2020/localization/messages.mjs +0 -59
  66. package/esm2020/templates/file-info-template.directive.mjs +0 -23
  67. package/esm2020/templates/file-template.directive.mjs +0 -23
  68. package/fesm2015/progress-kendo-angular-upload.mjs +0 -4808
  69. /package/{esm2020 → esm2022}/common/action-buttons-layout.mjs +0 -0
  70. /package/{esm2020 → esm2022}/common/util.mjs +0 -0
  71. /package/{esm2020 → esm2022}/common/validation-util.mjs +0 -0
  72. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  73. /package/{esm2020 → esm2022}/events/clear-event.mjs +0 -0
  74. /package/{esm2020 → esm2022}/events.mjs +0 -0
  75. /package/{esm2020 → esm2022}/index.mjs +0 -0
  76. /package/{esm2020 → esm2022}/progress-kendo-angular-upload.mjs +0 -0
  77. /package/{esm2020 → esm2022}/types/async-settings.mjs +0 -0
  78. /package/{esm2020 → esm2022}/types/chunk-info.mjs +0 -0
  79. /package/{esm2020 → esm2022}/types/chunk-metadata.mjs +0 -0
  80. /package/{esm2020 → esm2022}/types/chunk-settings.mjs +0 -0
  81. /package/{esm2020 → esm2022}/types/direction.mjs +0 -0
  82. /package/{esm2020 → esm2022}/types/file-groups.mjs +0 -0
  83. /package/{esm2020 → esm2022}/types/file-info.mjs +0 -0
  84. /package/{esm2020 → esm2022}/types/file-restrictions.mjs +0 -0
  85. /package/{esm2020 → esm2022}/types/file-state.mjs +0 -0
  86. /package/{esm2020 → esm2022}/types/operation-type.mjs +0 -0
  87. /package/{esm2020 → esm2022}/types.mjs +0 -0
@@ -21,15 +21,15 @@ import * as i8 from "./dropzone.component";
21
21
  * Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the Upload component.
22
22
  */
23
23
  export class UploadModule {
24
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
25
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: UploadModule, imports: [i1.UploadComponent, i2.UploadActionButtonsComponent, i3.UploadStatusTotalComponent, i4.FileTemplateDirective, i5.FileInfoTemplateDirective, i6.CustomMessagesComponent, i7.UploadDropZoneDirective, i8.UploadDropZoneComponent], exports: [i1.UploadComponent, i2.UploadActionButtonsComponent, i3.UploadStatusTotalComponent, i4.FileTemplateDirective, i5.FileInfoTemplateDirective, i6.CustomMessagesComponent, i7.UploadDropZoneDirective, i8.UploadDropZoneComponent] });
26
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadModule, providers: [
27
+ IconsService,
28
+ PopupService,
29
+ ResizeBatchService
30
+ ], imports: [i1.UploadComponent, i3.UploadStatusTotalComponent, i8.UploadDropZoneComponent] });
24
31
  }
25
- UploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
26
- UploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UploadModule, imports: [i1.UploadComponent, i2.UploadActionButtonsComponent, i3.UploadStatusTotalComponent, i4.FileTemplateDirective, i5.FileInfoTemplateDirective, i6.CustomMessagesComponent, i7.UploadDropZoneDirective, i8.UploadDropZoneComponent], exports: [i1.UploadComponent, i2.UploadActionButtonsComponent, i3.UploadStatusTotalComponent, i4.FileTemplateDirective, i5.FileInfoTemplateDirective, i6.CustomMessagesComponent, i7.UploadDropZoneDirective, i8.UploadDropZoneComponent] });
27
- UploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UploadModule, providers: [
28
- IconsService,
29
- PopupService,
30
- ResizeBatchService
31
- ], imports: [i1.UploadComponent, i2.UploadActionButtonsComponent, i3.UploadStatusTotalComponent, i6.CustomMessagesComponent, i8.UploadDropZoneComponent] });
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UploadModule, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadModule, decorators: [{
33
33
  type: NgModule,
34
34
  args: [{
35
35
  exports: [...KENDO_UPLOAD],
@@ -15,54 +15,55 @@ import * as i1 from "@angular/common/http";
15
15
  * @hidden
16
16
  */
17
17
  export class UploadService {
18
+ http;
19
+ cancelEvent = new EventEmitter();
20
+ clearEvent = new EventEmitter();
21
+ completeEvent = new EventEmitter();
22
+ errorEvent = new EventEmitter();
23
+ pauseEvent = new EventEmitter();
24
+ removeEvent = new EventEmitter();
25
+ resumeEvent = new EventEmitter();
26
+ selectEvent = new EventEmitter();
27
+ successEvent = new EventEmitter();
28
+ uploadEvent = new EventEmitter();
29
+ uploadProgressEvent = new EventEmitter();
30
+ /**
31
+ * Required for the `ControlValueAccessor` integration
32
+ */
33
+ changeEvent = new EventEmitter();
34
+ /**
35
+ * Default async settings
36
+ */
37
+ async = {
38
+ autoUpload: true,
39
+ batch: false,
40
+ chunk: false,
41
+ concurrent: true,
42
+ removeField: "fileNames",
43
+ removeHeaders: new HttpHeaders(),
44
+ removeMethod: "POST",
45
+ removeUrl: "",
46
+ responseType: "json",
47
+ saveField: "files",
48
+ saveHeaders: new HttpHeaders(),
49
+ saveMethod: "POST",
50
+ saveUrl: "",
51
+ withCredentials: true
52
+ };
53
+ /**
54
+ * Default chunk settings
55
+ */
56
+ chunk = {
57
+ autoRetryAfter: 100,
58
+ size: 1024 * 1024,
59
+ maxAutoRetries: 1,
60
+ resumable: true
61
+ };
62
+ component = 'Upload';
63
+ chunkMap = new ChunkMap();
64
+ fileList = new FileMap();
18
65
  constructor(http) {
19
66
  this.http = http;
20
- this.cancelEvent = new EventEmitter();
21
- this.clearEvent = new EventEmitter();
22
- this.completeEvent = new EventEmitter();
23
- this.errorEvent = new EventEmitter();
24
- this.pauseEvent = new EventEmitter();
25
- this.removeEvent = new EventEmitter();
26
- this.resumeEvent = new EventEmitter();
27
- this.selectEvent = new EventEmitter();
28
- this.successEvent = new EventEmitter();
29
- this.uploadEvent = new EventEmitter();
30
- this.uploadProgressEvent = new EventEmitter();
31
- /**
32
- * Required for the `ControlValueAccessor` integration
33
- */
34
- this.changeEvent = new EventEmitter();
35
- /**
36
- * Default async settings
37
- */
38
- this.async = {
39
- autoUpload: true,
40
- batch: false,
41
- chunk: false,
42
- concurrent: true,
43
- removeField: "fileNames",
44
- removeHeaders: new HttpHeaders(),
45
- removeMethod: "POST",
46
- removeUrl: "",
47
- responseType: "json",
48
- saveField: "files",
49
- saveHeaders: new HttpHeaders(),
50
- saveMethod: "POST",
51
- saveUrl: "",
52
- withCredentials: true
53
- };
54
- /**
55
- * Default chunk settings
56
- */
57
- this.chunk = {
58
- autoRetryAfter: 100,
59
- size: 1024 * 1024,
60
- maxAutoRetries: 1,
61
- resumable: true
62
- };
63
- this.component = 'Upload';
64
- this.chunkMap = new ChunkMap();
65
- this.fileList = new FileMap();
66
67
  }
67
68
  get files() {
68
69
  return this.fileList;
@@ -420,9 +421,9 @@ export class UploadService {
420
421
  }
421
422
  return false;
422
423
  }
424
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
425
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadService });
423
426
  }
424
- UploadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UploadService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
425
- UploadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UploadService });
426
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UploadService, decorators: [{
427
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadService, decorators: [{
427
428
  type: Injectable
428
429
  }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
@@ -44,15 +44,15 @@ import * as i9 from "./rendering/upload-status-total.component";
44
44
  * ```
45
45
  */
46
46
  export class UploadsModule {
47
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: UploadsModule, imports: [i1.FileSelectComponent, i2.FileTemplateDirective, i3.FileInfoTemplateDirective, i4.CustomMessagesComponent, i5.UploadDropZoneDirective, i6.UploadDropZoneComponent, i7.UploadComponent, i8.UploadActionButtonsComponent, i9.UploadStatusTotalComponent, i2.FileTemplateDirective, i3.FileInfoTemplateDirective, i4.CustomMessagesComponent, i5.UploadDropZoneDirective, i6.UploadDropZoneComponent], exports: [i1.FileSelectComponent, i2.FileTemplateDirective, i3.FileInfoTemplateDirective, i4.CustomMessagesComponent, i5.UploadDropZoneDirective, i6.UploadDropZoneComponent, i7.UploadComponent, i8.UploadActionButtonsComponent, i9.UploadStatusTotalComponent, i2.FileTemplateDirective, i3.FileInfoTemplateDirective, i4.CustomMessagesComponent, i5.UploadDropZoneDirective, i6.UploadDropZoneComponent] });
49
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadsModule, providers: [
50
+ IconsService,
51
+ PopupService,
52
+ ResizeBatchService
53
+ ], imports: [i1.FileSelectComponent, i6.UploadDropZoneComponent, i7.UploadComponent, i9.UploadStatusTotalComponent, i6.UploadDropZoneComponent] });
47
54
  }
48
- UploadsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UploadsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
49
- UploadsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UploadsModule, imports: [i1.FileSelectComponent, i2.FileTemplateDirective, i3.FileInfoTemplateDirective, i4.CustomMessagesComponent, i5.UploadDropZoneDirective, i6.UploadDropZoneComponent, i7.UploadComponent, i8.UploadActionButtonsComponent, i9.UploadStatusTotalComponent, i2.FileTemplateDirective, i3.FileInfoTemplateDirective, i4.CustomMessagesComponent, i5.UploadDropZoneDirective, i6.UploadDropZoneComponent], exports: [i1.FileSelectComponent, i2.FileTemplateDirective, i3.FileInfoTemplateDirective, i4.CustomMessagesComponent, i5.UploadDropZoneDirective, i6.UploadDropZoneComponent, i7.UploadComponent, i8.UploadActionButtonsComponent, i9.UploadStatusTotalComponent, i2.FileTemplateDirective, i3.FileInfoTemplateDirective, i4.CustomMessagesComponent, i5.UploadDropZoneDirective, i6.UploadDropZoneComponent] });
50
- UploadsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UploadsModule, providers: [
51
- IconsService,
52
- PopupService,
53
- ResizeBatchService
54
- ], imports: [i1.FileSelectComponent, i4.CustomMessagesComponent, i6.UploadDropZoneComponent, i7.UploadComponent, i8.UploadActionButtonsComponent, i9.UploadStatusTotalComponent, i4.CustomMessagesComponent, i6.UploadDropZoneComponent] });
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UploadsModule, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UploadsModule, decorators: [{
56
56
  type: NgModule,
57
57
  args: [{
58
58
  exports: [...KENDO_UPLOADS],