@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.
- package/common/action-buttons-layout.d.ts +1 -1
- package/common/base.d.ts +1 -1
- package/dropzone-external.directive.d.ts +1 -1
- package/dropzone-internal.directive.d.ts +1 -1
- package/dropzone.component.d.ts +1 -1
- package/{esm2020 → esm2022}/common/base.mjs +96 -67
- package/{esm2020 → esm2022}/dropzone-base.mjs +13 -9
- package/{esm2020 → esm2022}/dropzone-external.directive.mjs +16 -5
- package/{esm2020 → esm2022}/dropzone-internal.directive.mjs +14 -6
- package/{esm2020 → esm2022}/dropzone.component.mjs +38 -19
- package/{esm2020 → esm2022}/dropzone.service.mjs +3 -3
- package/{esm2020 → esm2022}/events/cancel-event.mjs +4 -0
- package/{esm2020 → esm2022}/events/error-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/pause-event.mjs +4 -0
- package/{esm2020 → esm2022}/events/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/events/remove-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/resume-event.mjs +4 -0
- package/{esm2020 → esm2022}/events/select-event.mjs +4 -0
- package/{esm2020 → esm2022}/events/success-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/upload-event.mjs +35 -0
- package/{esm2020 → esm2022}/events/upload-progress-event.mjs +8 -0
- package/{esm2020 → esm2022}/file-select.directive.mjs +17 -8
- package/{esm2020 → esm2022}/fileselect.component.mjs +60 -42
- package/{esm2020 → esm2022}/fileselect.module.mjs +8 -8
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +12 -11
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/localization/messages.mjs +143 -0
- package/{esm2020 → esm2022}/navigation.service.mjs +17 -14
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/rendering/file-list-item-action-button.component.mjs +15 -9
- package/{esm2020 → esm2022}/rendering/file-list-item-base.mjs +7 -4
- package/{esm2020 → esm2022}/rendering/file-list-item.mjs +10 -5
- package/{esm2020 → esm2022}/rendering/file-list-multiple-items.component.mjs +18 -13
- package/{esm2020 → esm2022}/rendering/file-list-single-item.component.mjs +16 -12
- package/{esm2020 → esm2022}/rendering/file-list.component.mjs +14 -5
- package/{esm2020 → esm2022}/rendering/upload-action-buttons.component.mjs +17 -10
- package/{esm2020 → esm2022}/rendering/upload-status-total.component.mjs +14 -8
- package/esm2022/templates/file-info-template.directive.mjs +40 -0
- package/esm2022/templates/file-template.directive.mjs +40 -0
- package/{esm2020 → esm2022}/types/chunk-map.mjs +1 -0
- package/{esm2020 → esm2022}/types/file-map.mjs +1 -0
- package/{esm2020 → esm2022}/upload.component.mjs +113 -95
- package/{esm2020 → esm2022}/upload.module.mjs +8 -8
- package/{esm2020 → esm2022}/upload.service.mjs +50 -49
- package/{esm2020 → esm2022}/uploads.module.mjs +8 -8
- package/{fesm2020 → fesm2022}/progress-kendo-angular-upload.mjs +822 -442
- package/file-select.directive.d.ts +1 -1
- package/fileselect.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +16 -22
- package/rendering/file-list-item-action-button.component.d.ts +1 -1
- package/rendering/file-list-item.d.ts +1 -1
- package/rendering/file-list-multiple-items.component.d.ts +1 -1
- package/rendering/file-list-single-item.component.d.ts +1 -1
- package/rendering/file-list.component.d.ts +1 -1
- package/rendering/upload-action-buttons.component.d.ts +1 -1
- package/rendering/upload-status-total.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +4 -4
- package/templates/file-info-template.directive.d.ts +17 -1
- package/templates/file-template.directive.d.ts +17 -1
- package/types/direction.d.ts +1 -1
- package/types/operation-type.d.ts +1 -1
- package/upload.component.d.ts +1 -1
- package/upload.service.d.ts +1 -1
- package/esm2020/localization/messages.mjs +0 -59
- package/esm2020/templates/file-info-template.directive.mjs +0 -23
- package/esm2020/templates/file-template.directive.mjs +0 -23
- package/fesm2015/progress-kendo-angular-upload.mjs +0 -4808
- /package/{esm2020 → esm2022}/common/action-buttons-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/common/util.mjs +0 -0
- /package/{esm2020 → esm2022}/common/validation-util.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/events/clear-event.mjs +0 -0
- /package/{esm2020 → esm2022}/events.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-upload.mjs +0 -0
- /package/{esm2020 → esm2022}/types/async-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/types/chunk-info.mjs +0 -0
- /package/{esm2020 → esm2022}/types/chunk-metadata.mjs +0 -0
- /package/{esm2020 → esm2022}/types/chunk-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/types/direction.mjs +0 -0
- /package/{esm2020 → esm2022}/types/file-groups.mjs +0 -0
- /package/{esm2020 → esm2022}/types/file-info.mjs +0 -0
- /package/{esm2020 → esm2022}/types/file-restrictions.mjs +0 -0
- /package/{esm2020 → esm2022}/types/file-state.mjs +0 -0
- /package/{esm2020 → esm2022}/types/operation-type.mjs +0 -0
- /package/{esm2020 → esm2022}/types.mjs +0 -0
|
@@ -35,5 +35,5 @@ export declare class FileSelectDirective {
|
|
|
35
35
|
get requiredAttribute(): string;
|
|
36
36
|
onInputChange(event: any): void;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileSelectDirective, never>;
|
|
38
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FileSelectDirective, "[kendoFileSelect]", never, { "dir": "dir"; "disabled": "disabled"; "multiple": "multiple"; "restrictions": "restrictions"; "accept": "accept"; "required": "required"; }, {}, never, never, true, never>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileSelectDirective, "[kendoFileSelect]", never, { "dir": { "alias": "dir"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "restrictions": { "alias": "restrictions"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
39
|
}
|
|
@@ -94,5 +94,5 @@ export declare class FileSelectComponent extends UploadFileSelectBase implements
|
|
|
94
94
|
private attachEventHandlers;
|
|
95
95
|
private setDefaultSettings;
|
|
96
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileSelectComponent, never>;
|
|
97
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileSelectComponent, "kendo-fileselect", ["kendoFileSelect"], { "name": "name"; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
97
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileSelectComponent, "kendo-fileselect", ["kendoFileSelect"], { "name": { "alias": "name"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
98
98
|
}
|
|
@@ -93,5 +93,5 @@ export declare class Messages extends ComponentMessages {
|
|
|
93
93
|
*/
|
|
94
94
|
uploadSelectedFiles: string;
|
|
95
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
|
|
96
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "cancel": "cancel"; "clearSelectedFiles": "clearSelectedFiles"; "dropFilesHere": "dropFilesHere"; "externalDropFilesHere": "externalDropFilesHere"; "filesBatchStatus": "filesBatchStatus"; "filesBatchStatusFailed": "filesBatchStatusFailed"; "filesBatchStatusUploaded": "filesBatchStatusUploaded"; "fileStatusFailed": "fileStatusFailed"; "fileStatusUploaded": "fileStatusUploaded"; "headerStatusPaused": "headerStatusPaused"; "headerStatusUploaded": "headerStatusUploaded"; "headerStatusUploading": "headerStatusUploading"; "invalidFileExtension": "invalidFileExtension"; "invalidMaxFileSize": "invalidMaxFileSize"; "invalidMinFileSize": "invalidMinFileSize"; "pause": "pause"; "remove": "remove"; "resume": "resume"; "retry": "retry"; "select": "select"; "uploadSelectedFiles": "uploadSelectedFiles"; }, {}, never, never, false, never>;
|
|
96
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "cancel": { "alias": "cancel"; "required": false; }; "clearSelectedFiles": { "alias": "clearSelectedFiles"; "required": false; }; "dropFilesHere": { "alias": "dropFilesHere"; "required": false; }; "externalDropFilesHere": { "alias": "externalDropFilesHere"; "required": false; }; "filesBatchStatus": { "alias": "filesBatchStatus"; "required": false; }; "filesBatchStatusFailed": { "alias": "filesBatchStatusFailed"; "required": false; }; "filesBatchStatusUploaded": { "alias": "filesBatchStatusUploaded"; "required": false; }; "fileStatusFailed": { "alias": "fileStatusFailed"; "required": false; }; "fileStatusUploaded": { "alias": "fileStatusUploaded"; "required": false; }; "headerStatusPaused": { "alias": "headerStatusPaused"; "required": false; }; "headerStatusUploaded": { "alias": "headerStatusUploaded"; "required": false; }; "headerStatusUploading": { "alias": "headerStatusUploading"; "required": false; }; "invalidFileExtension": { "alias": "invalidFileExtension"; "required": false; }; "invalidMaxFileSize": { "alias": "invalidMaxFileSize"; "required": false; }; "invalidMinFileSize": { "alias": "invalidMinFileSize"; "required": false; }; "pause": { "alias": "pause"; "required": false; }; "remove": { "alias": "remove"; "required": false; }; "resume": { "alias": "resume"; "required": false; }; "retry": { "alias": "retry"; "required": false; }; "select": { "alias": "select"; "required": false; }; "uploadSelectedFiles": { "alias": "uploadSelectedFiles"; "required": false; }; }, {}, never, never, false, never>;
|
|
97
97
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-upload",
|
|
3
|
-
"version": "17.0.0
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "Kendo UI Angular Upload Component",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -18,29 +18,25 @@
|
|
|
18
18
|
"friendlyName": "Upload"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@angular/animations": "
|
|
22
|
-
"@angular/common": "
|
|
23
|
-
"@angular/core": "
|
|
24
|
-
"@angular/forms": "
|
|
25
|
-
"@angular/platform-browser": "
|
|
21
|
+
"@angular/animations": "16 - 18",
|
|
22
|
+
"@angular/common": "16 - 18",
|
|
23
|
+
"@angular/core": "16 - 18",
|
|
24
|
+
"@angular/forms": "16 - 18",
|
|
25
|
+
"@angular/platform-browser": "16 - 18",
|
|
26
26
|
"@progress/kendo-licensing": "^1.0.2",
|
|
27
|
-
"@progress/kendo-angular-common": "17.0.0
|
|
28
|
-
"@progress/kendo-angular-l10n": "17.0.0
|
|
29
|
-
"@progress/kendo-angular-icons": "17.0.0
|
|
30
|
-
"@progress/kendo-angular-buttons": "17.0.0
|
|
31
|
-
"@progress/kendo-angular-progressbar": "17.0.0
|
|
27
|
+
"@progress/kendo-angular-common": "17.0.0",
|
|
28
|
+
"@progress/kendo-angular-l10n": "17.0.0",
|
|
29
|
+
"@progress/kendo-angular-icons": "17.0.0",
|
|
30
|
+
"@progress/kendo-angular-buttons": "17.0.0",
|
|
31
|
+
"@progress/kendo-angular-progressbar": "17.0.0",
|
|
32
32
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"tslib": "^2.3.1",
|
|
36
|
-
"@progress/kendo-angular-schematics": "17.0.0
|
|
36
|
+
"@progress/kendo-angular-schematics": "17.0.0"
|
|
37
37
|
},
|
|
38
38
|
"schematics": "./schematics/collection.json",
|
|
39
|
-
"module": "
|
|
40
|
-
"es2020": "fesm2020/progress-kendo-angular-upload.mjs",
|
|
41
|
-
"esm2020": "esm2020/progress-kendo-angular-upload.mjs",
|
|
42
|
-
"fesm2020": "fesm2020/progress-kendo-angular-upload.mjs",
|
|
43
|
-
"fesm2015": "fesm2015/progress-kendo-angular-upload.mjs",
|
|
39
|
+
"module": "fesm2022/progress-kendo-angular-upload.mjs",
|
|
44
40
|
"typings": "index.d.ts",
|
|
45
41
|
"exports": {
|
|
46
42
|
"./package.json": {
|
|
@@ -48,11 +44,9 @@
|
|
|
48
44
|
},
|
|
49
45
|
".": {
|
|
50
46
|
"types": "./index.d.ts",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"node": "./fesm2015/progress-kendo-angular-upload.mjs",
|
|
55
|
-
"default": "./fesm2020/progress-kendo-angular-upload.mjs"
|
|
47
|
+
"esm2022": "./esm2022/progress-kendo-angular-upload.mjs",
|
|
48
|
+
"esm": "./esm2022/progress-kendo-angular-upload.mjs",
|
|
49
|
+
"default": "./fesm2022/progress-kendo-angular-upload.mjs"
|
|
56
50
|
}
|
|
57
51
|
},
|
|
58
52
|
"sideEffects": false
|
|
@@ -36,5 +36,5 @@ export declare class FileListItemActionButtonComponent {
|
|
|
36
36
|
get isResumable(): boolean;
|
|
37
37
|
get isActionButtonVisible(): boolean;
|
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileListItemActionButtonComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileListItemActionButtonComponent, "kendo-upload-file-list-item-action-button", never, { "file": "file"; "disabled": "disabled"; "progress": "progress"; }, {}, never, never, true, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileListItemActionButtonComponent, "kendo-upload-file-list-item-action-button", never, { "file": { "alias": "file"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "progress": { "alias": "progress"; "required": false; }; }, {}, never, never, true, never>;
|
|
40
40
|
}
|
|
@@ -31,5 +31,5 @@ export declare class FileListItemDirective {
|
|
|
31
31
|
onBlur(): void;
|
|
32
32
|
onClick(event: any): void;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileListItemDirective, never>;
|
|
34
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FileListItemDirective, "[kendoUploadFileListItem]", never, { "files": "files"; "index": "index"; }, {}, never, never, true, never>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileListItemDirective, "[kendoUploadFileListItem]", never, { "files": { "alias": "files"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
|
|
35
35
|
}
|
|
@@ -28,5 +28,5 @@ export declare class FileListMultipleItemsComponent extends FileListItemBase imp
|
|
|
28
28
|
get isUploadSuccessful(): boolean;
|
|
29
29
|
get isUploadFailed(): boolean;
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileListMultipleItemsComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileListMultipleItemsComponent, "kendo-upload-file-list-multiple-items", never, { "disabled": "disabled"; "files": "files"; "fileInfoTemplate": "fileInfoTemplate"; }, {}, never, never, true, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileListMultipleItemsComponent, "kendo-upload-file-list-multiple-items", never, { "disabled": { "alias": "disabled"; "required": false; }; "files": { "alias": "files"; "required": false; }; "fileInfoTemplate": { "alias": "fileInfoTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
32
32
|
}
|
|
@@ -26,5 +26,5 @@ export declare class FileListSingleItemComponent extends FileListItemBase {
|
|
|
26
26
|
get isUploadFailed(): boolean;
|
|
27
27
|
get isNotYetUploaded(): boolean;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileListSingleItemComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileListSingleItemComponent, "kendo-upload-file-list-single-item", never, { "disabled": "disabled"; "file": "file"; "fileInfoTemplate": "fileInfoTemplate"; }, {}, never, never, true, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileListSingleItemComponent, "kendo-upload-file-list-single-item", never, { "disabled": { "alias": "disabled"; "required": false; }; "file": { "alias": "file"; "required": false; }; "fileInfoTemplate": { "alias": "fileInfoTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
30
|
}
|
|
@@ -31,5 +31,5 @@ export declare class FileListComponent implements OnDestroy {
|
|
|
31
31
|
hasDelete(item: FileListItemDirective): boolean;
|
|
32
32
|
ngOnDestroy(): void;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileListComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileListComponent, "[kendo-upload-file-list]", never, { "disabled": "disabled"; "fileList": "fileList"; "fileTemplate": "fileTemplate"; "fileInfoTemplate": "fileInfoTemplate"; }, {}, never, never, true, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileListComponent, "[kendo-upload-file-list]", never, { "disabled": { "alias": "disabled"; "required": false; }; "fileList": { "alias": "fileList"; "required": false; }; "fileTemplate": { "alias": "fileTemplate"; "required": false; }; "fileInfoTemplate": { "alias": "fileInfoTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
35
35
|
}
|
|
@@ -32,5 +32,5 @@ export declare class UploadActionButtonsComponent {
|
|
|
32
32
|
clearFiles(): void;
|
|
33
33
|
textFor(key: string): string;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<UploadActionButtonsComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UploadActionButtonsComponent, "kendo-upload-action-buttons", never, { "disabled": "disabled"; "actionsLayout": "actionsLayout"; }, {}, never, never, true, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UploadActionButtonsComponent, "kendo-upload-action-buttons", never, { "disabled": { "alias": "disabled"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
36
|
}
|
|
@@ -26,5 +26,5 @@ export declare class UploadStatusTotalComponent implements DoCheck {
|
|
|
26
26
|
get SVGIconClass(): SVGIcon;
|
|
27
27
|
ngDoCheck(): void;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<UploadStatusTotalComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UploadStatusTotalComponent, "kendo-upload-status-total", never, { "fileList": "fileList"; }, {}, never, never, true, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UploadStatusTotalComponent, "kendo-upload-status-total", never, { "fileList": { "alias": "fileList"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
30
|
}
|
|
@@ -9,10 +9,10 @@ function default_1(options) {
|
|
|
9
9
|
}
|
|
10
10
|
], peerDependencies: {
|
|
11
11
|
// peer dep of the icons
|
|
12
|
-
'@progress/kendo-svg-icons': '^
|
|
13
|
-
'@progress/kendo-angular-buttons': '17.0.0
|
|
14
|
-
'@progress/kendo-angular-progressbar': '17.0.0
|
|
15
|
-
'@progress/kendo-angular-popup': '17.0.0
|
|
12
|
+
'@progress/kendo-svg-icons': '^4.0.0',
|
|
13
|
+
'@progress/kendo-angular-buttons': '17.0.0',
|
|
14
|
+
'@progress/kendo-angular-progressbar': '17.0.0',
|
|
15
|
+
'@progress/kendo-angular-popup': '17.0.0',
|
|
16
16
|
} });
|
|
17
17
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
18
18
|
}
|
|
@@ -5,7 +5,23 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
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. ([
|
|
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))
|
|
9
|
+
*
|
|
10
|
+
* The following context variables are available in the template:
|
|
11
|
+
*
|
|
12
|
+
* * `let-files`—Provides a reference to the files which are associated with the current item.
|
|
13
|
+
* * `let-state`—Gets a reference to the current state of each file. If the [`batch`](slug:api_upload_uploadcomponent#toc-batch) option of the Upload is set to `true`, the field reflects the state of the whole batch.
|
|
14
|
+
* * `#myUpload="kendoUpload"` or `#myFileSelect="kendoFileSelect"`—Provides a reference to the instance of the Upload/FileSelect component. It is exported as `kendoUpload`/`kendoFileSelect` by using the [`exportAs`](https://angular.io/api/core/Component) metadata property.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```html
|
|
18
|
+
* <kendo-upload #myUpload="kendoUpload" ... >
|
|
19
|
+
* <ng-template kendoUploadFileInfoTemplate let-files let-state>
|
|
20
|
+
* <div>Name: {{ files[0].name }}</div>
|
|
21
|
+
* ...
|
|
22
|
+
* </ng-template>
|
|
23
|
+
* </kendo-upload>
|
|
24
|
+
* ```
|
|
9
25
|
*/
|
|
10
26
|
export declare class FileInfoTemplateDirective {
|
|
11
27
|
templateRef: TemplateRef<any>;
|
|
@@ -5,7 +5,23 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Used to customize the rendering of the files in the list ([
|
|
8
|
+
* Used to customize the rendering of the files in the list. ([See example.](slug:templates_upload#toc-file-template))
|
|
9
|
+
*
|
|
10
|
+
* The following context variables are available in the template:
|
|
11
|
+
*
|
|
12
|
+
* * `let-files`—Provides a reference to the files which are associated with the current item.
|
|
13
|
+
* * `let-state`—Gets a reference to the current state of each file. If the [`batch`](slug:api_upload_uploadcomponent#toc-batch) option of the Upload is set to `true`, the field reflects the state of the whole batch.
|
|
14
|
+
* * `#myUpload="kendoUpload"` or `#myFileSelect="kendoFileSelect"`—Provides a reference to the instance of the Upload/FileSelect component. It is exported as `kendoUpload`/`kendoFileSelect` by using the [`exportAs`](https://angular.io/api/core/Component) metadata property.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```html
|
|
18
|
+
* <kendo-upload #myUpload="kendoUpload" ... >
|
|
19
|
+
* <ng-template kendoUploadFileTemplate let-files let-state>
|
|
20
|
+
* <div>Name: {{ files[0].name }} Size: {{ files[0].size }} bytes</div>
|
|
21
|
+
* ...
|
|
22
|
+
* </ng-template>
|
|
23
|
+
* </kendo-upload>
|
|
24
|
+
* ```
|
|
9
25
|
*/
|
|
10
26
|
export declare class FileTemplateDirective {
|
|
11
27
|
templateRef: TemplateRef<any>;
|
package/types/direction.d.ts
CHANGED
package/upload.component.d.ts
CHANGED
|
@@ -271,5 +271,5 @@ export declare class UploadComponent extends UploadFileSelectBase implements OnI
|
|
|
271
271
|
private subscribeFocus;
|
|
272
272
|
private attachEventHandlers;
|
|
273
273
|
static ɵfac: i0.ɵɵFactoryDeclaration<UploadComponent, never>;
|
|
274
|
-
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"; "showFileList": "showFileList"; "tabIndex": "tabIndex"; "actionsLayout": "actionsLayout"; }, { "cancel": "cancel"; "clear": "clear"; "complete": "complete"; "error": "error"; "pause": "pause"; "resume": "resume"; "success": "success"; "upload": "upload"; "uploadProgress": "uploadProgress"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
274
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UploadComponent, "kendo-upload", ["kendoUpload"], { "autoUpload": { "alias": "autoUpload"; "required": false; }; "batch": { "alias": "batch"; "required": false; }; "withCredentials": { "alias": "withCredentials"; "required": false; }; "saveField": { "alias": "saveField"; "required": false; }; "saveHeaders": { "alias": "saveHeaders"; "required": false; }; "saveMethod": { "alias": "saveMethod"; "required": false; }; "saveUrl": { "alias": "saveUrl"; "required": false; }; "responseType": { "alias": "responseType"; "required": false; }; "removeField": { "alias": "removeField"; "required": false; }; "removeHeaders": { "alias": "removeHeaders"; "required": false; }; "removeMethod": { "alias": "removeMethod"; "required": false; }; "removeUrl": { "alias": "removeUrl"; "required": false; }; "chunkable": { "alias": "chunkable"; "required": false; }; "concurrent": { "alias": "concurrent"; "required": false; }; "showFileList": { "alias": "showFileList"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; }, { "cancel": "cancel"; "clear": "clear"; "complete": "complete"; "error": "error"; "pause": "pause"; "resume": "resume"; "success": "success"; "upload": "upload"; "uploadProgress": "uploadProgress"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
275
275
|
}
|
package/upload.service.d.ts
CHANGED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, Input } from '@angular/core';
|
|
6
|
-
import { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export class Messages extends ComponentMessages {
|
|
12
|
-
}
|
|
13
|
-
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: Messages, inputs: { cancel: "cancel", clearSelectedFiles: "clearSelectedFiles", dropFilesHere: "dropFilesHere", externalDropFilesHere: "externalDropFilesHere", filesBatchStatus: "filesBatchStatus", filesBatchStatusFailed: "filesBatchStatusFailed", filesBatchStatusUploaded: "filesBatchStatusUploaded", fileStatusFailed: "fileStatusFailed", fileStatusUploaded: "fileStatusUploaded", headerStatusPaused: "headerStatusPaused", headerStatusUploaded: "headerStatusUploaded", headerStatusUploading: "headerStatusUploading", invalidFileExtension: "invalidFileExtension", invalidMaxFileSize: "invalidMaxFileSize", invalidMinFileSize: "invalidMinFileSize", pause: "pause", remove: "remove", resume: "resume", retry: "retry", select: "select", uploadSelectedFiles: "uploadSelectedFiles" }, usesInheritance: true, ngImport: i0 });
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, decorators: [{
|
|
16
|
-
type: Directive
|
|
17
|
-
}], propDecorators: { cancel: [{
|
|
18
|
-
type: Input
|
|
19
|
-
}], clearSelectedFiles: [{
|
|
20
|
-
type: Input
|
|
21
|
-
}], dropFilesHere: [{
|
|
22
|
-
type: Input
|
|
23
|
-
}], externalDropFilesHere: [{
|
|
24
|
-
type: Input
|
|
25
|
-
}], filesBatchStatus: [{
|
|
26
|
-
type: Input
|
|
27
|
-
}], filesBatchStatusFailed: [{
|
|
28
|
-
type: Input
|
|
29
|
-
}], filesBatchStatusUploaded: [{
|
|
30
|
-
type: Input
|
|
31
|
-
}], fileStatusFailed: [{
|
|
32
|
-
type: Input
|
|
33
|
-
}], fileStatusUploaded: [{
|
|
34
|
-
type: Input
|
|
35
|
-
}], headerStatusPaused: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], headerStatusUploaded: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}], headerStatusUploading: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}], invalidFileExtension: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}], invalidMaxFileSize: [{
|
|
44
|
-
type: Input
|
|
45
|
-
}], invalidMinFileSize: [{
|
|
46
|
-
type: Input
|
|
47
|
-
}], pause: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}], remove: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], resume: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}], retry: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], select: [{
|
|
56
|
-
type: Input
|
|
57
|
-
}], uploadSelectedFiles: [{
|
|
58
|
-
type: Input
|
|
59
|
-
}] } });
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
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)).
|
|
9
|
-
*/
|
|
10
|
-
export class FileInfoTemplateDirective {
|
|
11
|
-
constructor(templateRef) {
|
|
12
|
-
this.templateRef = templateRef;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
FileInfoTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileInfoTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
-
FileInfoTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FileInfoTemplateDirective, isStandalone: true, selector: "[kendoUploadFileInfoTemplate], [kendoFileSelectFileInfoTemplate]", ngImport: i0 });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileInfoTemplateDirective, decorators: [{
|
|
18
|
-
type: Directive,
|
|
19
|
-
args: [{
|
|
20
|
-
selector: '[kendoUploadFileInfoTemplate], [kendoFileSelectFileInfoTemplate]',
|
|
21
|
-
standalone: true
|
|
22
|
-
}]
|
|
23
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Used to customize the rendering of the files in the list ([see example]({% slug templates_upload %}#toc-file-template)).
|
|
9
|
-
*/
|
|
10
|
-
export class FileTemplateDirective {
|
|
11
|
-
constructor(templateRef) {
|
|
12
|
-
this.templateRef = templateRef;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
FileTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
-
FileTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FileTemplateDirective, isStandalone: true, selector: "[kendoUploadFileTemplate], [kendoFileSelectFileTemplate]", ngImport: i0 });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileTemplateDirective, decorators: [{
|
|
18
|
-
type: Directive,
|
|
19
|
-
args: [{
|
|
20
|
-
selector: '[kendoUploadFileTemplate], [kendoFileSelectFileTemplate]',
|
|
21
|
-
standalone: true
|
|
22
|
-
}]
|
|
23
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|