@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
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Used to customize the rendering of the file info section in the list. All other elements of the default template, such as file icon, action buttons, upload progress etc. will be preserved in place. ([see example]({% slug templates_upload %}#toc-file-info-template)).
|
|
8
9
|
*/
|
|
9
10
|
export declare class FileInfoTemplateDirective {
|
|
10
11
|
templateRef: TemplateRef<any>;
|
|
11
12
|
constructor(templateRef: TemplateRef<any>);
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileInfoTemplateDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileInfoTemplateDirective, "[kendoUploadFileInfoTemplate], [kendoFileSelectFileInfoTemplate]", never, {}, {}, never>;
|
|
12
15
|
}
|
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Used to customize the rendering of the files in the list ([see example]({% slug templates_upload %}#toc-file-template)).
|
|
8
9
|
*/
|
|
9
10
|
export declare class FileTemplateDirective {
|
|
10
11
|
templateRef: TemplateRef<any>;
|
|
11
12
|
constructor(templateRef: TemplateRef<any>);
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileTemplateDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileTemplateDirective, "[kendoUploadFileTemplate], [kendoFileSelectFileTemplate]", never, {}, {}, never>;
|
|
12
15
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ViewContainerRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* @hidden
|
|
8
9
|
*/
|
|
@@ -10,5 +11,7 @@ export declare class TemplateContextDirective {
|
|
|
10
11
|
private viewContainerRef;
|
|
11
12
|
private insertedViewRef;
|
|
12
13
|
constructor(viewContainerRef: ViewContainerRef);
|
|
13
|
-
templateContext: any;
|
|
14
|
+
set templateContext(context: any);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateContextDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateContextDirective, "[templateContext]", never, { "templateContext": "templateContext"; }, {}, never>;
|
|
14
17
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -16,11 +16,11 @@ export declare class FileMap {
|
|
|
16
16
|
get(uid: string): Array<FileInfo>;
|
|
17
17
|
setFilesState(files: Array<FileInfo>, state: FileState): void;
|
|
18
18
|
setFilesStateByUid(uid: string, state: FileState): void;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
get count(): number;
|
|
20
|
+
get files(): Array<Array<FileInfo>>;
|
|
21
|
+
get filesFlat(): Array<FileInfo>;
|
|
22
|
+
get filesToUpload(): Array<Array<FileInfo>>;
|
|
23
|
+
get firstFileToUpload(): Array<FileInfo>;
|
|
24
24
|
getFilesWithState(state: FileState): Array<FileInfo>;
|
|
25
25
|
hasFileWithState(fileStates: Array<FileState>): boolean;
|
|
26
26
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -17,6 +17,7 @@ import { ChunkSettings } from './types/chunk-settings';
|
|
|
17
17
|
import { DropZoneService } from './dropzone.service';
|
|
18
18
|
import { ActionsLayout } from './common/action-buttons-layout';
|
|
19
19
|
import { FileInfoTemplateDirective } from './templates/file-info-template.directive';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
20
21
|
/**
|
|
21
22
|
* @hidden
|
|
22
23
|
*/
|
|
@@ -37,13 +38,15 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
37
38
|
* ([see example]({% slug fileprocessing_upload %}#toc-automatic-upload-of-files)).
|
|
38
39
|
* To change this behavior, set `autoUpload` to `false`.
|
|
39
40
|
*/
|
|
40
|
-
autoUpload: boolean;
|
|
41
|
+
set autoUpload(autoUpload: boolean);
|
|
42
|
+
get autoUpload(): boolean;
|
|
41
43
|
/**
|
|
42
44
|
* When enabled, all files in the selection are uploaded in one request
|
|
43
45
|
* ([see example]({% slug fileprocessing_upload %}#toc-upload-of-batches-of-files)).
|
|
44
46
|
* Any files that are selected one after the other are uploaded in separate requests.
|
|
45
47
|
*/
|
|
46
|
-
batch: boolean;
|
|
48
|
+
set batch(batch: boolean);
|
|
49
|
+
get batch(): boolean;
|
|
47
50
|
/**
|
|
48
51
|
* Configures whether credentials (cookies, headers) will be sent for cross-site requests
|
|
49
52
|
* ([see example]({% slug credentials_upload %}#toc-attaching-credentials-to-requests)).
|
|
@@ -51,56 +54,66 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
51
54
|
* To add credentials to the request, use the `saveHeaders` or `removeHeaders` property,
|
|
52
55
|
* or the [`upload`]({% slug api_upload_uploadevent %}) event.
|
|
53
56
|
*/
|
|
54
|
-
withCredentials: boolean;
|
|
57
|
+
set withCredentials(withCredentials: boolean);
|
|
58
|
+
get withCredentials(): boolean;
|
|
55
59
|
/**
|
|
56
60
|
* Sets the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key which contains the files submitted to `saveUrl`.
|
|
57
61
|
* The default value is `files`.
|
|
58
62
|
*/
|
|
59
|
-
saveField: string;
|
|
63
|
+
set saveField(saveField: string);
|
|
64
|
+
get saveField(): string;
|
|
60
65
|
/**
|
|
61
66
|
* Configures the [`HttpHeaders`](https://angular.io/api/common/http/HttpHeaders)
|
|
62
67
|
* that are attached to each upload request.
|
|
63
68
|
*/
|
|
64
|
-
saveHeaders: HttpHeaders;
|
|
69
|
+
set saveHeaders(saveHeaders: HttpHeaders);
|
|
70
|
+
get saveHeaders(): HttpHeaders;
|
|
65
71
|
/**
|
|
66
72
|
* Sets the [`RequestMethod`](https://angular.io/api/http/RequestMethod) of the upload request.
|
|
67
73
|
* The default value is `POST`.
|
|
68
74
|
*/
|
|
69
|
-
saveMethod: string;
|
|
75
|
+
set saveMethod(saveMethod: string);
|
|
76
|
+
get saveMethod(): string;
|
|
70
77
|
/**
|
|
71
78
|
* Sets the URL of the endpoint for the upload request.
|
|
72
79
|
* The request [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key is named after the `saveField` property.
|
|
73
80
|
* It contains the list of files to be uploaded.
|
|
74
81
|
*/
|
|
75
|
-
saveUrl: string;
|
|
82
|
+
set saveUrl(saveUrl: string);
|
|
83
|
+
get saveUrl(): string;
|
|
76
84
|
/**
|
|
77
85
|
* Sets the expected [`response type`](https://angular.io/api/common/http/HttpRequest#responseType) of the server.
|
|
78
86
|
* It is used to parse the response appropriately.
|
|
79
87
|
* The default value is `json`.
|
|
80
88
|
*/
|
|
81
|
-
responseType: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
89
|
+
set responseType(responseType: 'arraybuffer' | 'blob' | 'json' | 'text');
|
|
90
|
+
get responseType(): 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
82
91
|
/**
|
|
83
92
|
* Sets the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key
|
|
84
93
|
* which contains the list of file names that are submitted to `removeUrl`.
|
|
85
94
|
* The default value is `fileNames`.
|
|
86
95
|
*/
|
|
87
|
-
removeField: string;
|
|
96
|
+
set removeField(removeField: string);
|
|
97
|
+
get removeField(): string;
|
|
88
98
|
/**
|
|
89
99
|
* Configures the [`HttpHeaders`](https://angular.io/api/common/http/HttpHeaders)
|
|
90
100
|
* that are attached to each `remove` request.
|
|
91
101
|
*/
|
|
92
|
-
removeHeaders: HttpHeaders;
|
|
102
|
+
set removeHeaders(removeHeaders: HttpHeaders);
|
|
103
|
+
get removeHeaders(): HttpHeaders;
|
|
93
104
|
/**
|
|
94
105
|
* Sets the [`RequestMethod`](https://angular.io/api/http/RequestMethod) of the `remove` request.
|
|
95
106
|
* The default value is `POST`.
|
|
96
107
|
*/
|
|
97
|
-
removeMethod: string;
|
|
108
|
+
set removeMethod(removeMethod: string);
|
|
109
|
+
get removeMethod(): string;
|
|
98
110
|
/**
|
|
99
111
|
* Sets the URL of the endpoint for the `remove` request.
|
|
100
112
|
* The [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) request key is named after the `removeField` property.
|
|
101
113
|
* It contains the list of file names which will be removed.
|
|
102
114
|
*/
|
|
103
|
-
removeUrl: string;
|
|
115
|
+
set removeUrl(removeUrl: string);
|
|
116
|
+
get removeUrl(): string;
|
|
104
117
|
/**
|
|
105
118
|
* Enables the chunk functionality of the Upload.
|
|
106
119
|
*
|
|
@@ -112,7 +125,8 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
112
125
|
*
|
|
113
126
|
* The default value is `true`.
|
|
114
127
|
*/
|
|
115
|
-
concurrent: boolean;
|
|
128
|
+
set concurrent(concurrent: boolean);
|
|
129
|
+
get concurrent(): boolean;
|
|
116
130
|
/**
|
|
117
131
|
* Enables the selection of multiple files
|
|
118
132
|
* ([see example]({% slug fileprocessing_upload %}#toc-upload-of-sinlge-or-multiple-files)).
|
|
@@ -139,7 +153,8 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
139
153
|
/**
|
|
140
154
|
* @hidden
|
|
141
155
|
*/
|
|
142
|
-
tabIndex: number;
|
|
156
|
+
set tabIndex(tabIndex: number);
|
|
157
|
+
get tabIndex(): number;
|
|
143
158
|
/**
|
|
144
159
|
* Sets the `accept` attribute of the `input` element of the Upload.
|
|
145
160
|
*/
|
|
@@ -147,7 +162,8 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
147
162
|
/**
|
|
148
163
|
* Sets the restrictions for selected files ([see example]({% slug api_upload_filerestrictions %})).
|
|
149
164
|
*/
|
|
150
|
-
restrictions: FileRestrictions;
|
|
165
|
+
set restrictions(restrictions: FileRestrictions);
|
|
166
|
+
get restrictions(): FileRestrictions;
|
|
151
167
|
/**
|
|
152
168
|
* @hidden
|
|
153
169
|
*/
|
|
@@ -217,8 +233,8 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
217
233
|
*/
|
|
218
234
|
valueChange: EventEmitter<Array<FileInfo>>;
|
|
219
235
|
hostDefaultClasses: boolean;
|
|
220
|
-
|
|
221
|
-
|
|
236
|
+
get hostDisabledClass(): boolean;
|
|
237
|
+
get dir(): string;
|
|
222
238
|
/**
|
|
223
239
|
* @hidden
|
|
224
240
|
*/
|
|
@@ -228,7 +244,10 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
228
244
|
*/
|
|
229
245
|
fileList: FileMap;
|
|
230
246
|
direction: Direction;
|
|
231
|
-
|
|
247
|
+
/**
|
|
248
|
+
* @hidden
|
|
249
|
+
*/
|
|
250
|
+
wrapper: HTMLElement;
|
|
232
251
|
private documentClick;
|
|
233
252
|
private blurSubscription;
|
|
234
253
|
private wrapperFocusSubscription;
|
|
@@ -264,7 +283,7 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
264
283
|
/**
|
|
265
284
|
* @hidden
|
|
266
285
|
*/
|
|
267
|
-
|
|
286
|
+
get selectButtonTabIndex(): number;
|
|
268
287
|
/**
|
|
269
288
|
* @hidden
|
|
270
289
|
*/
|
|
@@ -276,11 +295,11 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
276
295
|
/**
|
|
277
296
|
* @hidden
|
|
278
297
|
*/
|
|
279
|
-
|
|
298
|
+
get showActionButtons(): boolean;
|
|
280
299
|
/**
|
|
281
300
|
* @hidden
|
|
282
301
|
*/
|
|
283
|
-
|
|
302
|
+
get showTotalStatus(): boolean;
|
|
284
303
|
/**
|
|
285
304
|
* @hidden
|
|
286
305
|
*/
|
|
@@ -354,4 +373,6 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
354
373
|
private subscribeBlur;
|
|
355
374
|
private subscribeFocus;
|
|
356
375
|
private attachEventHandlers;
|
|
376
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadComponent, never>;
|
|
377
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UploadComponent, "kendo-upload", ["kendoUpload"], { "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"; }, { "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"; }, ["fileTemplate", "fileInfoTemplate"], never>;
|
|
357
378
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./upload.component";
|
|
7
|
+
import * as i2 from "./rendering/upload-action-buttons.component";
|
|
8
|
+
import * as i3 from "./rendering/upload-status-total.component";
|
|
9
|
+
import * as i4 from "./shared.module";
|
|
10
|
+
import * as i5 from "./templates/file-template.directive";
|
|
11
|
+
import * as i6 from "./templates/file-info-template.directive";
|
|
12
|
+
import * as i7 from "./localization/custom-messages.component";
|
|
13
|
+
import * as i8 from "./dropzone-external.directive";
|
|
14
|
+
import * as i9 from "./dropzone.component";
|
|
15
|
+
/**
|
|
16
|
+
* Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the Upload component.
|
|
17
|
+
*/
|
|
18
|
+
export declare class UploadModule {
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadModule, never>;
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UploadModule, [typeof i1.UploadComponent, typeof i2.UploadActionButtonsComponent, typeof i3.UploadStatusTotalComponent], [typeof i4.SharedModule], [typeof i5.FileTemplateDirective, typeof i6.FileInfoTemplateDirective, typeof i7.CustomMessagesComponent, typeof i8.UploadDropZoneDirective, typeof i9.UploadDropZoneComponent, typeof i1.UploadComponent, typeof i2.UploadActionButtonsComponent, typeof i3.UploadStatusTotalComponent]>;
|
|
21
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UploadModule>;
|
|
22
|
+
}
|
|
@@ -9,6 +9,7 @@ import { FileInfo } from './types';
|
|
|
9
9
|
import { FileMap } from './types/file-map';
|
|
10
10
|
import { CancelEvent, ClearEvent, ErrorEvent, PauseEvent, RemoveEvent, ResumeEvent, SelectEvent, SuccessEvent, UploadEvent, UploadProgressEvent } from './events';
|
|
11
11
|
import { ChunkSettings } from './types';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
12
13
|
/**
|
|
13
14
|
* @hidden
|
|
14
15
|
*/
|
|
@@ -45,7 +46,7 @@ export declare class UploadService {
|
|
|
45
46
|
private chunkMap;
|
|
46
47
|
private fileList;
|
|
47
48
|
constructor(http: HttpClient);
|
|
48
|
-
|
|
49
|
+
get files(): FileMap;
|
|
49
50
|
setChunkSettings(settings: ChunkSettings | boolean): void;
|
|
50
51
|
onChange(): void;
|
|
51
52
|
addFiles(files: Array<FileInfo>): void;
|
|
@@ -79,4 +80,6 @@ export declare class UploadService {
|
|
|
79
80
|
private removeChunkInfo;
|
|
80
81
|
private getChunkMetadata;
|
|
81
82
|
private isChunkUploadComplete;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadService, never>;
|
|
84
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UploadService>;
|
|
82
85
|
}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./fileselect.module";
|
|
7
|
+
import * as i2 from "./upload.module";
|
|
5
8
|
/**
|
|
6
9
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
7
10
|
* definition for the Uploads components.
|
|
@@ -28,4 +31,7 @@
|
|
|
28
31
|
* ```
|
|
29
32
|
*/
|
|
30
33
|
export declare class UploadsModule {
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadsModule, never>;
|
|
35
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UploadsModule, never, never, [typeof i1.FileSelectModule, typeof i2.UploadModule]>;
|
|
36
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UploadsModule>;
|
|
31
37
|
}
|