@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.
- package/bundles/kendo-angular-upload.umd.js +5 -0
- package/{dist/es2015/common → common}/action-buttons-layout.d.ts +0 -0
- package/{dist/es2015/common → common}/util.d.ts +0 -0
- package/{dist/es2015/common → common}/validation-util.d.ts +0 -0
- package/{dist/es2015/dropzone-base.d.ts → dropzone-base.d.ts} +4 -1
- package/{dist/es2015/dropzone-external.directive.d.ts → dropzone-external.directive.d.ts} +4 -1
- package/{dist/es2015/dropzone-internal.directive.d.ts → dropzone-internal.directive.d.ts} +3 -0
- package/{dist/es2015/dropzone.component.d.ts → dropzone.component.d.ts} +5 -2
- package/{dist/es2015/dropzone.service.d.ts → dropzone.service.d.ts} +3 -0
- package/{dist/es2015 → esm2015}/common/action-buttons-layout.js +1 -0
- package/{dist/es2015 → esm2015}/common/util.js +1 -7
- package/{dist/es2015 → esm2015}/common/validation-util.js +0 -4
- package/{dist/es2015 → esm2015}/dropzone-base.js +18 -16
- package/{dist/es2015 → esm2015}/dropzone-external.directive.js +29 -35
- package/{dist/es2015 → esm2015}/dropzone-internal.directive.js +25 -37
- package/esm2015/dropzone.component.js +112 -0
- package/{dist/es2015 → esm2015}/dropzone.service.js +8 -7
- package/{dist/es2015 → esm2015}/events/cancel-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/clear-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/error-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/pause-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/preventable-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/remove-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/resume-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/select-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/success-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/upload-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/upload-progress-event.js +1 -0
- package/{dist/es → esm2015}/events.js +0 -0
- package/esm2015/file-select.directive.js +100 -0
- package/{dist/es2015 → esm2015}/fileselect.component.js +160 -132
- package/esm2015/fileselect.module.js +35 -0
- package/{dist/es/types/chunk-info.js → esm2015/kendo-angular-upload.js} +4 -0
- package/esm2015/localization/custom-messages.component.js +50 -0
- package/esm2015/localization/localized-messages.directive.js +40 -0
- package/esm2015/localization/messages.js +59 -0
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es2015 → esm2015}/navigation.service.js +9 -9
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/rendering/file-list-item-action-button.component.js +70 -28
- package/{dist/es2015 → esm2015}/rendering/file-list-item-base.js +9 -0
- package/esm2015/rendering/file-list-item.js +107 -0
- package/esm2015/rendering/file-list-multiple-items.component.js +172 -0
- package/esm2015/rendering/file-list-single-item.component.js +154 -0
- package/esm2015/rendering/file-list.component.js +145 -0
- package/esm2015/rendering/upload-action-buttons.component.js +136 -0
- package/esm2015/rendering/upload-status-total.component.js +60 -0
- package/{dist/es2015 → esm2015}/shared.module.js +45 -18
- package/esm2015/templates/file-info-template.directive.js +22 -0
- package/esm2015/templates/file-template.directive.js +22 -0
- package/esm2015/templates/template-context.directive.js +34 -0
- package/{dist/es2015 → esm2015}/types/async-settings.js +1 -0
- package/{dist/es2015 → esm2015}/types/chunk-info.js +1 -0
- package/{dist/es2015 → esm2015}/types/chunk-map.js +0 -0
- package/{dist/es → esm2015}/types/chunk-metadata.js +1 -0
- package/{dist/es → esm2015}/types/chunk-settings.js +1 -0
- package/{dist/es → esm2015}/types/direction.js +1 -0
- package/{dist/es2015 → esm2015}/types/file-groups.js +3 -5
- package/{dist/es → esm2015}/types/file-info.js +1 -0
- package/{dist/es2015 → esm2015}/types/file-map.js +0 -0
- package/{dist/es → esm2015}/types/file-restrictions.js +1 -0
- package/{dist/es → esm2015}/types/file-state.js +0 -0
- package/{dist/es → esm2015}/types/operation-type.js +1 -0
- package/{dist/es → esm2015}/types.js +0 -0
- package/{dist/es2015 → esm2015}/upload.component.js +262 -243
- package/esm2015/upload.module.js +43 -0
- package/{dist/es2015 → esm2015}/upload.service.js +10 -9
- package/{dist/es2015 → esm2015}/uploads.module.js +17 -12
- package/{dist/es2015/events → events}/cancel-event.d.ts +4 -0
- package/{dist/es2015/events → events}/clear-event.d.ts +1 -0
- package/{dist/es2015/events → events}/error-event.d.ts +10 -0
- package/{dist/es2015/events → events}/pause-event.d.ts +4 -0
- package/{dist/es2015/events → events}/preventable-event.d.ts +0 -0
- package/{dist/es2015/events → events}/remove-event.d.ts +9 -2
- package/{dist/es2015/events → events}/resume-event.d.ts +4 -0
- package/{dist/es2015/events → events}/select-event.d.ts +4 -0
- package/{dist/es2015/events → events}/success-event.d.ts +10 -0
- package/{dist/es2015/events → events}/upload-event.d.ts +9 -2
- package/{dist/es2015/events → events}/upload-progress-event.d.ts +7 -0
- package/{dist/es2015/events.d.ts → events.d.ts} +0 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-upload.js} +2192 -2010
- package/{dist/es2015/file-select.directive.d.ts → file-select.directive.d.ts} +7 -4
- package/{dist/es2015/fileselect.component.d.ts → fileselect.component.d.ts} +14 -6
- package/fileselect.module.d.ts +20 -0
- package/{dist/es/common/action-buttons-layout.js → kendo-angular-upload.d.ts} +5 -0
- package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/navigation.service.d.ts → navigation.service.d.ts} +7 -3
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +36 -104
- package/{dist/es2015/rendering → rendering}/file-list-item-action-button.component.d.ts +11 -8
- package/{dist/es2015/rendering → rendering}/file-list-item-base.d.ts +3 -0
- package/{dist/es2015/rendering → rendering}/file-list-item.d.ts +10 -7
- package/{dist/es2015/rendering → rendering}/file-list-multiple-items.component.d.ts +7 -4
- package/{dist/es2015/rendering → rendering}/file-list-single-item.component.d.ts +9 -6
- package/{dist/es2015/rendering → rendering}/file-list.component.d.ts +3 -0
- package/{dist/es2015/rendering → rendering}/upload-action-buttons.component.d.ts +7 -4
- package/{dist/es2015/rendering → rendering}/upload-status-total.component.d.ts +3 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/shared.module.d.ts +36 -0
- package/{dist/es2015/templates → templates}/file-info-template.directive.d.ts +3 -0
- package/{dist/es2015/templates → templates}/file-template.directive.d.ts +3 -0
- package/{dist/es2015/templates → templates}/template-context.directive.d.ts +4 -1
- package/{dist/es2015/types → types}/async-settings.d.ts +0 -0
- package/{dist/es2015/types → types}/chunk-info.d.ts +0 -0
- package/{dist/es2015/types → types}/chunk-map.d.ts +0 -0
- package/{dist/es2015/types → types}/chunk-metadata.d.ts +0 -0
- package/{dist/es2015/types → types}/chunk-settings.d.ts +0 -0
- package/{dist/es2015/types → types}/direction.d.ts +0 -0
- package/{dist/es2015/types → types}/file-groups.d.ts +0 -0
- package/{dist/es2015/types → types}/file-info.d.ts +0 -0
- package/{dist/es2015/types → types}/file-map.d.ts +5 -5
- package/{dist/es2015/types → types}/file-restrictions.d.ts +0 -0
- package/{dist/es2015/types → types}/file-state.d.ts +0 -0
- package/{dist/es2015/types → types}/operation-type.d.ts +0 -0
- package/{dist/es2015/types.d.ts → types.d.ts} +0 -0
- package/{dist/es2015/upload.component.d.ts → upload.component.d.ts} +42 -21
- package/upload.module.d.ts +22 -0
- package/{dist/es2015/upload.service.d.ts → upload.service.d.ts} +4 -1
- package/{dist/es2015/uploads.module.d.ts → uploads.module.d.ts} +6 -0
- package/dist/cdn/js/kendo-angular-upload.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/common/util.js +0 -234
- package/dist/es/common/validation-util.js +0 -64
- package/dist/es/dropzone-base.js +0 -66
- package/dist/es/dropzone-external.directive.js +0 -98
- package/dist/es/dropzone-internal.directive.js +0 -110
- package/dist/es/dropzone.component.js +0 -99
- package/dist/es/dropzone.service.js +0 -33
- package/dist/es/events/cancel-event.js +0 -41
- package/dist/es/events/clear-event.js +0 -43
- package/dist/es/events/error-event.js +0 -45
- package/dist/es/events/pause-event.js +0 -42
- package/dist/es/events/preventable-event.js +0 -29
- package/dist/es/events/remove-event.js +0 -47
- package/dist/es/events/resume-event.js +0 -42
- package/dist/es/events/select-event.js +0 -45
- package/dist/es/events/success-event.js +0 -49
- package/dist/es/events/upload-event.js +0 -47
- package/dist/es/events/upload-progress-event.js +0 -42
- package/dist/es/file-select.directive.js +0 -141
- package/dist/es/fileselect.component.js +0 -484
- package/dist/es/fileselect.module.js +0 -30
- package/dist/es/index.js +0 -21
- package/dist/es/localization/custom-messages.component.js +0 -53
- package/dist/es/localization/localized-messages.directive.js +0 -35
- package/dist/es/localization/messages.js +0 -102
- package/dist/es/navigation.service.js +0 -166
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/rendering/file-list-item-action-button.component.js +0 -169
- package/dist/es/rendering/file-list-item-base.js +0 -41
- package/dist/es/rendering/file-list-item.js +0 -165
- package/dist/es/rendering/file-list-multiple-items.component.js +0 -107
- package/dist/es/rendering/file-list-single-item.component.js +0 -112
- package/dist/es/rendering/file-list.component.js +0 -98
- package/dist/es/rendering/upload-action-buttons.component.js +0 -149
- package/dist/es/rendering/upload-status-total.component.js +0 -42
- package/dist/es/shared.module.js +0 -68
- package/dist/es/templates/file-info-template.directive.js +0 -22
- package/dist/es/templates/file-template.directive.js +0 -22
- package/dist/es/templates/template-context.directive.js +0 -40
- package/dist/es/types/async-settings.js +0 -4
- package/dist/es/types/chunk-map.js +0 -36
- package/dist/es/types/file-groups.js +0 -45
- package/dist/es/types/file-map.js +0 -170
- package/dist/es/upload.component.js +0 -967
- package/dist/es/upload.module.js +0 -34
- package/dist/es/upload.service.js +0 -448
- package/dist/es/uploads.module.js +0 -47
- package/dist/es2015/dropzone.component.js +0 -100
- package/dist/es2015/events.js +0 -14
- package/dist/es2015/file-select.directive.js +0 -123
- package/dist/es2015/fileselect.module.d.ts +0 -9
- package/dist/es2015/fileselect.module.js +0 -27
- package/dist/es2015/index.d.ts +0 -21
- package/dist/es2015/index.js +0 -21
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/custom-messages.component.js +0 -45
- package/dist/es2015/localization/localized-messages.directive.js +0 -35
- package/dist/es2015/localization/messages.js +0 -96
- package/dist/es2015/main.js +0 -24
- package/dist/es2015/rendering/file-list-item.js +0 -136
- package/dist/es2015/rendering/file-list-multiple-items.component.js +0 -128
- package/dist/es2015/rendering/file-list-single-item.component.js +0 -117
- package/dist/es2015/rendering/file-list.component.js +0 -123
- package/dist/es2015/rendering/upload-action-buttons.component.js +0 -141
- package/dist/es2015/rendering/upload-status-total.component.js +0 -51
- package/dist/es2015/shared.module.d.ts +0 -17
- package/dist/es2015/templates/file-info-template.directive.js +0 -21
- package/dist/es2015/templates/file-template.directive.js +0 -21
- package/dist/es2015/templates/template-context.directive.js +0 -35
- package/dist/es2015/types/chunk-metadata.js +0 -4
- package/dist/es2015/types/chunk-settings.js +0 -4
- package/dist/es2015/types/direction.js +0 -4
- package/dist/es2015/types/file-info.js +0 -4
- package/dist/es2015/types/file-restrictions.js +0 -4
- package/dist/es2015/types/file-state.js +0 -34
- package/dist/es2015/types/operation-type.js +0 -4
- package/dist/es2015/types.js +0 -5
- package/dist/es2015/upload.module.d.ts +0 -9
- package/dist/es2015/upload.module.js +0 -31
- package/dist/fesm5/index.js +0 -4653
- package/dist/npm/common/action-buttons-layout.js +0 -6
- package/dist/npm/common/util.js +0 -240
- package/dist/npm/common/validation-util.js +0 -68
- package/dist/npm/dropzone-base.js +0 -68
- package/dist/npm/dropzone-external.directive.js +0 -100
- package/dist/npm/dropzone-internal.directive.js +0 -112
- package/dist/npm/dropzone.component.js +0 -101
- package/dist/npm/dropzone.service.js +0 -35
- package/dist/npm/events/cancel-event.js +0 -43
- package/dist/npm/events/clear-event.js +0 -45
- package/dist/npm/events/error-event.js +0 -47
- package/dist/npm/events/pause-event.js +0 -44
- package/dist/npm/events/preventable-event.js +0 -31
- package/dist/npm/events/remove-event.js +0 -49
- package/dist/npm/events/resume-event.js +0 -44
- package/dist/npm/events/select-event.js +0 -47
- package/dist/npm/events/success-event.js +0 -51
- package/dist/npm/events/upload-event.js +0 -49
- package/dist/npm/events/upload-progress-event.js +0 -44
- package/dist/npm/events.js +0 -26
- package/dist/npm/file-select.directive.js +0 -143
- package/dist/npm/fileselect.component.js +0 -486
- package/dist/npm/fileselect.module.js +0 -32
- package/dist/npm/index.js +0 -39
- package/dist/npm/localization/custom-messages.component.js +0 -55
- package/dist/npm/localization/localized-messages.directive.js +0 -37
- package/dist/npm/localization/messages.js +0 -104
- package/dist/npm/main.js +0 -45
- package/dist/npm/navigation.service.js +0 -168
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/rendering/file-list-item-action-button.component.js +0 -171
- package/dist/npm/rendering/file-list-item-base.js +0 -43
- package/dist/npm/rendering/file-list-item.js +0 -167
- package/dist/npm/rendering/file-list-multiple-items.component.js +0 -109
- package/dist/npm/rendering/file-list-single-item.component.js +0 -114
- package/dist/npm/rendering/file-list.component.js +0 -100
- package/dist/npm/rendering/upload-action-buttons.component.js +0 -151
- package/dist/npm/rendering/upload-status-total.component.js +0 -44
- package/dist/npm/shared.module.js +0 -70
- package/dist/npm/templates/file-info-template.directive.js +0 -24
- package/dist/npm/templates/file-template.directive.js +0 -24
- package/dist/npm/templates/template-context.directive.js +0 -42
- package/dist/npm/types/async-settings.js +0 -6
- package/dist/npm/types/chunk-info.js +0 -6
- package/dist/npm/types/chunk-map.js +0 -38
- package/dist/npm/types/chunk-metadata.js +0 -6
- package/dist/npm/types/chunk-settings.js +0 -6
- package/dist/npm/types/direction.js +0 -6
- package/dist/npm/types/file-groups.js +0 -47
- package/dist/npm/types/file-info.js +0 -6
- package/dist/npm/types/file-map.js +0 -172
- package/dist/npm/types/file-restrictions.js +0 -6
- package/dist/npm/types/file-state.js +0 -36
- package/dist/npm/types/operation-type.js +0 -6
- package/dist/npm/types.js +0 -8
- package/dist/npm/upload.component.js +0 -969
- package/dist/npm/upload.module.js +0 -36
- package/dist/npm/upload.service.js +0 -450
- package/dist/npm/uploads.module.js +0 -49
- 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
|
|
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
|
-
|
|
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)
|
|
38
|
+
useExisting: forwardRef(() => UploadComponent)
|
|
31
39
|
};
|
|
32
40
|
/**
|
|
33
41
|
* Represents the [Kendo UI Upload component for Angular]({% slug overview_upload %}).
|
|
34
42
|
*/
|
|
35
|
-
|
|
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
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
]
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
]
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
]
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
]
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
]
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
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
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
],
|
|
980
|
-
|
|
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
|
|
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
|
-
|
|
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 =
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
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 }]; } });
|