@progress/kendo-angular-upload 24.2.2 → 25.0.0-develop.12
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/fesm2022/progress-kendo-angular-upload.mjs +99 -91
- package/index.d.ts +1994 -29
- package/package-metadata.mjs +2 -2
- package/package.json +13 -13
- package/schematics/ngAdd/index.js +3 -3
- package/common/action-buttons-layout.d.ts +0 -8
- package/common/base.d.ts +0 -172
- package/common/fileselect-settings.d.ts +0 -50
- package/common/util.d.ts +0 -87
- package/common/validation-util.d.ts +0 -20
- package/directives.d.ts +0 -70
- package/dropzone-base.d.ts +0 -30
- package/dropzone-external.directive.d.ts +0 -48
- package/dropzone-internal.directive.d.ts +0 -35
- package/dropzone.component.d.ts +0 -64
- package/dropzone.service.d.ts +0 -18
- package/events/cancel-event.d.ts +0 -34
- package/events/clear-event.d.ts +0 -29
- package/events/error-event.d.ts +0 -46
- package/events/pause-event.d.ts +0 -37
- package/events/preventable-event.d.ts +0 -21
- package/events/remove-event.d.ts +0 -47
- package/events/resume-event.d.ts +0 -37
- package/events/select-event.d.ts +0 -35
- package/events/success-event.d.ts +0 -46
- package/events/upload-event.d.ts +0 -47
- package/events/upload-progress-event.d.ts +0 -39
- package/events.d.ts +0 -14
- package/file-select.directive.d.ts +0 -39
- package/fileselect.component.d.ts +0 -111
- package/fileselect.module.d.ts +0 -19
- package/localization/custom-messages.component.d.ts +0 -44
- package/localization/localized-messages.directive.d.ts +0 -16
- package/localization/messages.d.ts +0 -139
- package/navigation.service.d.ts +0 -43
- package/package-metadata.d.ts +0 -9
- package/rendering/file-list-item-action-button.component.d.ts +0 -40
- package/rendering/file-list-item-base.d.ts +0 -31
- package/rendering/file-list-item.d.ts +0 -35
- package/rendering/file-list-multiple-items.component.d.ts +0 -32
- package/rendering/file-list-single-item.component.d.ts +0 -31
- package/rendering/file-list.component.d.ts +0 -41
- package/rendering/upload-action-buttons.component.d.ts +0 -37
- package/rendering/upload-status-total.component.d.ts +0 -30
- package/templates/file-info-template.directive.d.ts +0 -30
- package/templates/file-template.directive.d.ts +0 -30
- package/types/async-settings.d.ts +0 -24
- package/types/chunk-info.d.ts +0 -25
- package/types/chunk-map.d.ts +0 -16
- package/types/chunk-metadata.d.ts +0 -34
- package/types/chunk-settings.d.ts +0 -33
- package/types/direction.d.ts +0 -8
- package/types/file-groups.d.ts +0 -45
- package/types/file-info.d.ts +0 -45
- package/types/file-map.d.ts +0 -26
- package/types/file-restrictions.d.ts +0 -25
- package/types/file-state.d.ts +0 -33
- package/types/operation-type.d.ts +0 -8
- package/types.d.ts +0 -11
- package/upload.component.d.ts +0 -298
- package/upload.module.d.ts +0 -21
- package/upload.service.d.ts +0 -85
- package/uploads.module.d.ts +0 -44
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "
|
|
10
|
+
"publishDate": 1785317821,
|
|
11
|
+
"version": "25.0.0-develop.12",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-upload",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.0.0-develop.12",
|
|
4
4
|
"description": "Kendo UI Angular Upload Component",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -34,27 +34,27 @@
|
|
|
34
34
|
"package": {
|
|
35
35
|
"productName": "Kendo UI for Angular",
|
|
36
36
|
"productCode": "KENDOUIANGULAR",
|
|
37
|
-
"publishDate":
|
|
37
|
+
"publishDate": 1785317821,
|
|
38
38
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@angular/animations": "
|
|
43
|
-
"@angular/common": "
|
|
44
|
-
"@angular/core": "
|
|
45
|
-
"@angular/forms": "
|
|
46
|
-
"@angular/platform-browser": "
|
|
42
|
+
"@angular/animations": "20 - 22",
|
|
43
|
+
"@angular/common": "20 - 22",
|
|
44
|
+
"@angular/core": "20 - 22",
|
|
45
|
+
"@angular/forms": "20 - 22",
|
|
46
|
+
"@angular/platform-browser": "20 - 22",
|
|
47
47
|
"@progress/kendo-licensing": "^1.11.0",
|
|
48
|
-
"@progress/kendo-angular-common": "
|
|
49
|
-
"@progress/kendo-angular-l10n": "
|
|
50
|
-
"@progress/kendo-angular-icons": "
|
|
51
|
-
"@progress/kendo-angular-buttons": "
|
|
52
|
-
"@progress/kendo-angular-progressbar": "
|
|
48
|
+
"@progress/kendo-angular-common": "25.0.0-develop.12",
|
|
49
|
+
"@progress/kendo-angular-l10n": "25.0.0-develop.12",
|
|
50
|
+
"@progress/kendo-angular-icons": "25.0.0-develop.12",
|
|
51
|
+
"@progress/kendo-angular-buttons": "25.0.0-develop.12",
|
|
52
|
+
"@progress/kendo-angular-progressbar": "25.0.0-develop.12",
|
|
53
53
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"tslib": "^2.3.1",
|
|
57
|
-
"@progress/kendo-angular-schematics": "
|
|
57
|
+
"@progress/kendo-angular-schematics": "25.0.0-develop.12"
|
|
58
58
|
},
|
|
59
59
|
"schematics": "./schematics/collection.json",
|
|
60
60
|
"module": "fesm2022/progress-kendo-angular-upload.mjs",
|
|
@@ -15,9 +15,9 @@ function default_1(options) {
|
|
|
15
15
|
], peerDependencies: {
|
|
16
16
|
// peer dep of the icons
|
|
17
17
|
'@progress/kendo-svg-icons': '^4.0.0',
|
|
18
|
-
'@progress/kendo-angular-buttons': '
|
|
19
|
-
'@progress/kendo-angular-progressbar': '
|
|
20
|
-
'@progress/kendo-angular-popup': '
|
|
18
|
+
'@progress/kendo-angular-buttons': '25.0.0-develop.12',
|
|
19
|
+
'@progress/kendo-angular-progressbar': '25.0.0-develop.12',
|
|
20
|
+
'@progress/kendo-angular-popup': '25.0.0-develop.12',
|
|
21
21
|
} });
|
|
22
22
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
23
23
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Specifies the layout options for the Upload action buttons.
|
|
7
|
-
*/
|
|
8
|
-
export type ActionsLayout = 'start' | 'center' | 'end' | 'stretched';
|
package/common/base.d.ts
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, NgZone } from "@angular/core";
|
|
6
|
-
import { RemoveEvent, SelectEvent } from "../events";
|
|
7
|
-
import { FileTemplateDirective } from "../templates/file-template.directive";
|
|
8
|
-
import { FileInfoTemplateDirective } from "../templates/file-info-template.directive";
|
|
9
|
-
import { FileMap, FileRestrictions } from "../types";
|
|
10
|
-
import { UploadService } from "../upload.service";
|
|
11
|
-
import { FormControl } from "@angular/forms";
|
|
12
|
-
import { NavigationService } from "../navigation.service";
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare abstract class UploadFileSelectBase {
|
|
18
|
-
protected uploadService: UploadService;
|
|
19
|
-
protected navigation: NavigationService;
|
|
20
|
-
protected cdr: ChangeDetectorRef;
|
|
21
|
-
protected injector: Injector;
|
|
22
|
-
protected zone: NgZone;
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
fileTemplate: FileTemplateDirective;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
fileInfoTemplate: FileInfoTemplateDirective;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
fileSelectButton: ElementRef;
|
|
35
|
-
/**
|
|
36
|
-
* Sets the `accept` attribute of the internal `input` element of the component.
|
|
37
|
-
*/
|
|
38
|
-
accept: string;
|
|
39
|
-
/**
|
|
40
|
-
* Disables the component.
|
|
41
|
-
*
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
|
-
disabled: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Allows you to select multiple files.
|
|
47
|
-
* When you set this to `false`, you can select only one file at a time.
|
|
48
|
-
*
|
|
49
|
-
* @default true
|
|
50
|
-
*/
|
|
51
|
-
multiple: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Controls the visibility of the file list.
|
|
54
|
-
*
|
|
55
|
-
* @default true
|
|
56
|
-
*/
|
|
57
|
-
showFileList: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
60
|
-
*
|
|
61
|
-
* @default 0
|
|
62
|
-
*/
|
|
63
|
-
tabindex: number;
|
|
64
|
-
/**
|
|
65
|
-
* Sets the restrictions for selected files.
|
|
66
|
-
*/
|
|
67
|
-
set restrictions(restrictions: FileRestrictions);
|
|
68
|
-
get restrictions(): FileRestrictions;
|
|
69
|
-
/**
|
|
70
|
-
* Sets the `id` of the external drop zone that you want to associate with the component.
|
|
71
|
-
*/
|
|
72
|
-
zoneId: string;
|
|
73
|
-
/**
|
|
74
|
-
* @hidden
|
|
75
|
-
*/
|
|
76
|
-
focusableId: string;
|
|
77
|
-
/**
|
|
78
|
-
* @hidden
|
|
79
|
-
*/
|
|
80
|
-
hostUploadClass: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* @hidden
|
|
83
|
-
*/
|
|
84
|
-
hostUploadAsyncClass: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* @hidden
|
|
87
|
-
*/
|
|
88
|
-
get hostDisabledClass(): boolean;
|
|
89
|
-
/**
|
|
90
|
-
* @hidden
|
|
91
|
-
*/
|
|
92
|
-
get hostEmptyClass(): boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Fires when you navigate outside the component.
|
|
95
|
-
*/
|
|
96
|
-
onBlur: EventEmitter<any>;
|
|
97
|
-
/**
|
|
98
|
-
* Fires when you focus the component.
|
|
99
|
-
*/
|
|
100
|
-
onFocus: EventEmitter<any>;
|
|
101
|
-
/**
|
|
102
|
-
* Fires when you select files. If you prevent this event, the component will not add the selected files to the list.
|
|
103
|
-
*/
|
|
104
|
-
select: EventEmitter<SelectEvent>;
|
|
105
|
-
/**
|
|
106
|
-
* Fires when you are about to remove a file. If you prevent this event, the file will remain in the list.
|
|
107
|
-
*/
|
|
108
|
-
remove: EventEmitter<RemoveEvent>;
|
|
109
|
-
/**
|
|
110
|
-
* @hidden
|
|
111
|
-
*/
|
|
112
|
-
_restrictions: FileRestrictions;
|
|
113
|
-
/**
|
|
114
|
-
* @hidden
|
|
115
|
-
*/
|
|
116
|
-
fileList: FileMap;
|
|
117
|
-
constructor(uploadService: UploadService, navigation: NavigationService, cdr: ChangeDetectorRef, injector: Injector, zone: NgZone);
|
|
118
|
-
/**
|
|
119
|
-
* @hidden
|
|
120
|
-
*/
|
|
121
|
-
get formControl(): FormControl;
|
|
122
|
-
/**
|
|
123
|
-
* @hidden
|
|
124
|
-
*/
|
|
125
|
-
get isControlRequired(): boolean;
|
|
126
|
-
/**
|
|
127
|
-
* @hidden
|
|
128
|
-
*/
|
|
129
|
-
get hasFileList(): boolean;
|
|
130
|
-
/**
|
|
131
|
-
* @hidden
|
|
132
|
-
*/
|
|
133
|
-
writeValue(newValue: any, validation: Function, callback: string): void;
|
|
134
|
-
protected onTouchedCallback: Function;
|
|
135
|
-
protected onChangeCallback: Function;
|
|
136
|
-
/**
|
|
137
|
-
* @hidden
|
|
138
|
-
*/
|
|
139
|
-
registerOnChange(fn: any): void;
|
|
140
|
-
/**
|
|
141
|
-
* @hidden
|
|
142
|
-
*/
|
|
143
|
-
registerOnTouched(fn: any): void;
|
|
144
|
-
/**
|
|
145
|
-
* @hidden
|
|
146
|
-
*/
|
|
147
|
-
setDisabledState(isDisabled: boolean): void;
|
|
148
|
-
/**
|
|
149
|
-
* @hidden
|
|
150
|
-
*/
|
|
151
|
-
onFileSelectButtonFocus(): void;
|
|
152
|
-
/**
|
|
153
|
-
* Focuses the component's **Select files** button.
|
|
154
|
-
*/
|
|
155
|
-
focus(): void;
|
|
156
|
-
/**
|
|
157
|
-
* @hidden
|
|
158
|
-
* @deprecated
|
|
159
|
-
*/
|
|
160
|
-
focusComponent(): void;
|
|
161
|
-
/**
|
|
162
|
-
* Blurs the component if you previously focused it.
|
|
163
|
-
*/
|
|
164
|
-
blur(): void;
|
|
165
|
-
/**
|
|
166
|
-
* @hidden
|
|
167
|
-
* @deprecated
|
|
168
|
-
*/
|
|
169
|
-
blurComponent(): void;
|
|
170
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UploadFileSelectBase, never>;
|
|
171
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UploadFileSelectBase, never, never, { "accept": { "alias": "accept"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "showFileList": { "alias": "showFileList"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "restrictions": { "alias": "restrictions"; "required": false; }; "zoneId": { "alias": "zoneId"; "required": false; }; "focusableId": { "alias": "focusableId"; "required": false; }; }, { "onBlur": "blur"; "onFocus": "focus"; "select": "select"; "remove": "remove"; }, ["fileTemplate", "fileInfoTemplate"], never, true, never>;
|
|
172
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { FileRestrictions } from "../types";
|
|
6
|
-
/**
|
|
7
|
-
* Defines the settings interface for the FileSelect functionality used in components that integrate the FileSelect component.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```typescript
|
|
11
|
-
* const fileSelectSettings: FileSelectSettings = {
|
|
12
|
-
* multiple: true,
|
|
13
|
-
* disabled: false
|
|
14
|
-
* };
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export interface FileSelectSettings {
|
|
18
|
-
/**
|
|
19
|
-
* Sets the `accept` attribute of the internal `input` element of the component.
|
|
20
|
-
*/
|
|
21
|
-
accept?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Disables the component.
|
|
24
|
-
*/
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Allows you to select multiple files. When you set this to `false`, you can select only one file at a time.
|
|
28
|
-
*/
|
|
29
|
-
multiple?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Specifies the `name` attribute of the `input` element of the FileSelect.
|
|
32
|
-
*/
|
|
33
|
-
name?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Sets the restrictions for selected files.
|
|
36
|
-
*/
|
|
37
|
-
restrictions?: FileRestrictions;
|
|
38
|
-
/**
|
|
39
|
-
* Controls the visibility of the file list.
|
|
40
|
-
*/
|
|
41
|
-
showFileList?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Sets the `tabindex` of the component.
|
|
44
|
-
*/
|
|
45
|
-
tabindex?: number;
|
|
46
|
-
/**
|
|
47
|
-
* Sets the `id` of the external drop zone that you want to associate with the component.
|
|
48
|
-
*/
|
|
49
|
-
zoneId?: string;
|
|
50
|
-
}
|
package/common/util.d.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { SVGIcon } from '@progress/kendo-angular-icons';
|
|
6
|
-
/**
|
|
7
|
-
* Calculates the total size of the files in KB or MB.
|
|
8
|
-
*/
|
|
9
|
-
export declare const getTotalFilesSizeMessage: Function;
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare const validateInitialFileInfo: Function;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare const validateInitialFileSelectFile: Function;
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export declare const getInitialFileInfo: Function;
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
export declare const convertFileToFileInfo: Function;
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
export declare const getAllFileInfo: Function;
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
export declare const fileHasValidationErrors: Function;
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
export declare const filesHaveValidationErrors: Function;
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
export declare const inputFiles: Function;
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
export declare const assignGuidToFiles: Function;
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
export declare const supportsFormData: Function;
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
*/
|
|
53
|
-
export declare const userAgent: Function;
|
|
54
|
-
/**
|
|
55
|
-
* @hidden
|
|
56
|
-
*/
|
|
57
|
-
export declare const IGNORE_TARGET_CLASSES = "k-icon k-select k-input k-multiselect-wrap";
|
|
58
|
-
/**
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
export declare const UPLOAD_CLASSES = "k-upload-button k-clear-selected k-upload-selected k-upload-action k-file";
|
|
62
|
-
/**
|
|
63
|
-
* @hidden
|
|
64
|
-
*/
|
|
65
|
-
export declare const hasClasses: (element: HTMLElement, classNames: string) => boolean;
|
|
66
|
-
/**
|
|
67
|
-
* @hidden
|
|
68
|
-
*/
|
|
69
|
-
export declare const isFocusable: Function;
|
|
70
|
-
/**
|
|
71
|
-
* @hidden
|
|
72
|
-
*/
|
|
73
|
-
export declare const getFileGroupCssClass: Function;
|
|
74
|
-
/**
|
|
75
|
-
* @hidden
|
|
76
|
-
*/
|
|
77
|
-
export declare const isPresent: (value: any) => boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Matches the file extension with the corresponding SVG icon.
|
|
80
|
-
* @returns The SVG icon that corresponds to the file extension.
|
|
81
|
-
*/
|
|
82
|
-
export declare const fileSVGGroupIcon: (extension: string) => SVGIcon;
|
|
83
|
-
/**
|
|
84
|
-
* Matches the file extension with the corresponding CSS class.
|
|
85
|
-
* @returns The CSS class name that corresponds to the file extension.
|
|
86
|
-
*/
|
|
87
|
-
export declare const fileGroupClass: (extension: string) => string;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const INVALIDMAXFILESIZE = "invalidMaxFileSize";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare const INVALIDMINFILESIZE = "invalidMinFileSize";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export declare const INVALIDFILEEXTENSION = "invalidFileExtension";
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export declare const validateFiles: Function;
|
package/directives.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { UploadDropZoneDirective } from "./dropzone-external.directive";
|
|
6
|
-
import { UploadDropZoneComponent } from "./dropzone.component";
|
|
7
|
-
import { FileSelectComponent } from "./fileselect.component";
|
|
8
|
-
import { CustomMessagesComponent } from "./localization/custom-messages.component";
|
|
9
|
-
import { UploadActionButtonsComponent } from "./rendering/upload-action-buttons.component";
|
|
10
|
-
import { UploadStatusTotalComponent } from "./rendering/upload-status-total.component";
|
|
11
|
-
import { FileInfoTemplateDirective } from "./templates/file-info-template.directive";
|
|
12
|
-
import { FileTemplateDirective } from "./templates/file-template.directive";
|
|
13
|
-
import { UploadComponent } from "./upload.component";
|
|
14
|
-
/**
|
|
15
|
-
* Use the `KENDO_FILESELECT` utility array to add all FileSelect-related components and directives to a standalone Angular component.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```typescript
|
|
19
|
-
* import { Component } from '@angular/core';
|
|
20
|
-
* import { KENDO_FILESELECT } from '@progress/kendo-angular-upload';
|
|
21
|
-
*
|
|
22
|
-
* @Component({
|
|
23
|
-
* selector: 'my-app',
|
|
24
|
-
* standalone: true,
|
|
25
|
-
* imports: [KENDO_FILESELECT],
|
|
26
|
-
* template: `<kendo-fileselect></kendo-fileselect>`
|
|
27
|
-
* })
|
|
28
|
-
* export class AppComponent {}
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export declare const KENDO_FILESELECT: readonly [typeof FileSelectComponent, typeof FileTemplateDirective, typeof FileInfoTemplateDirective, typeof CustomMessagesComponent, typeof UploadDropZoneDirective, typeof UploadDropZoneComponent];
|
|
32
|
-
/**
|
|
33
|
-
* Use the `KENDO_UPLOAD` utility array to add all Upload-related components and directives to a standalone Angular component.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```typescript
|
|
37
|
-
* import { Component } from '@angular/core';
|
|
38
|
-
* import { KENDO_UPLOAD } from '@progress/kendo-angular-upload';
|
|
39
|
-
*
|
|
40
|
-
* @Component({
|
|
41
|
-
* selector: 'my-app',
|
|
42
|
-
* standalone: true,
|
|
43
|
-
* imports: [KENDO_UPLOAD],
|
|
44
|
-
* template: `<kendo-upload></kendo-upload>`
|
|
45
|
-
* })
|
|
46
|
-
* export class AppComponent {}
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
export declare const KENDO_UPLOAD: readonly [typeof UploadComponent, typeof UploadActionButtonsComponent, typeof UploadStatusTotalComponent, typeof FileTemplateDirective, typeof FileInfoTemplateDirective, typeof CustomMessagesComponent, typeof UploadDropZoneDirective, typeof UploadDropZoneComponent];
|
|
50
|
-
/**
|
|
51
|
-
* Use the `KENDO_UPLOADS` utility array to add all `@progress/kendo-angular-upload`-related components and directives to a standalone Angular component.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```typescript
|
|
55
|
-
* import { Component } from '@angular/core';
|
|
56
|
-
* import { KENDO_UPLOADS } from '@progress/kendo-angular-upload';
|
|
57
|
-
*
|
|
58
|
-
* @Component({
|
|
59
|
-
* selector: 'my-app',
|
|
60
|
-
* standalone: true,
|
|
61
|
-
* imports: [KENDO_UPLOADS],
|
|
62
|
-
* template: `
|
|
63
|
-
* <kendo-upload></kendo-upload>
|
|
64
|
-
* <kendo-fileselect></kendo-fileselect>
|
|
65
|
-
* `
|
|
66
|
-
* })
|
|
67
|
-
* export class AppComponent {}
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
export declare const KENDO_UPLOADS: readonly [typeof FileSelectComponent, typeof FileTemplateDirective, typeof FileInfoTemplateDirective, typeof CustomMessagesComponent, typeof UploadDropZoneDirective, typeof UploadDropZoneComponent, typeof UploadComponent, typeof UploadActionButtonsComponent, typeof UploadStatusTotalComponent, typeof FileTemplateDirective, typeof FileInfoTemplateDirective, typeof CustomMessagesComponent, typeof UploadDropZoneDirective, typeof UploadDropZoneComponent];
|
package/dropzone-base.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef, Renderer2 } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare abstract class DropZoneBase {
|
|
11
|
-
protected element: ElementRef;
|
|
12
|
-
protected renderer: Renderer2;
|
|
13
|
-
protected hoverClass: string;
|
|
14
|
-
protected lastDragElement: Date;
|
|
15
|
-
protected hideIntervalElement: any;
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
onElementDragEnterListener(): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
onElementDragOverListener(): boolean;
|
|
24
|
-
constructor(element: ElementRef, renderer: Renderer2, cssClass: string);
|
|
25
|
-
protected calculateTimeDiff(prevEvent: Date): number;
|
|
26
|
-
protected addClass(className: string): void;
|
|
27
|
-
protected removeClass(className: string): void;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DropZoneBase, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DropZoneBase, never, never, {}, {}, never, never, true, never>;
|
|
30
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { DropZoneService } from './dropzone.service';
|
|
6
|
-
import { UploadComponent } from './upload.component';
|
|
7
|
-
import { FileSelectComponent } from './fileselect.component';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Represents the [Kendo UI UploadDropZone directive for Angular](https://www.telerik.com/kendo-angular-ui/components/uploads).
|
|
11
|
-
* Use this directive to create external drop zones for Upload and FileSelect components.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```html
|
|
15
|
-
* <div kendoUploadDropZone="upload1">Drop files here</div>
|
|
16
|
-
* <kendo-upload [saveUrl]="uploadSaveUrl" zoneId="upload1"></kendo-upload>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare class UploadDropZoneDirective {
|
|
20
|
-
private dropZoneService;
|
|
21
|
-
/**
|
|
22
|
-
* The id of the drop zone to associate with an existing Upload component.
|
|
23
|
-
*/
|
|
24
|
-
zoneId: string;
|
|
25
|
-
/**
|
|
26
|
-
* The id of the drop zone to associate with an existing FileSelect component.
|
|
27
|
-
*/
|
|
28
|
-
fileSelectZoneId: string;
|
|
29
|
-
constructor(dropZoneService: DropZoneService);
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
onElementDragEnter(): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
onElementDragOver(): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
onDropListener(event: any): boolean;
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
get componentInstance(): Array<UploadComponent | FileSelectComponent>;
|
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UploadDropZoneDirective, never>;
|
|
47
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UploadDropZoneDirective, "[kendoUploadDropZone], [kendoFileSelectDropZone]", never, { "zoneId": { "alias": "kendoUploadDropZone"; "required": false; }; "fileSelectZoneId": { "alias": "kendoFileSelectDropZone"; "required": false; }; }, {}, never, never, true, never>;
|
|
48
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef, Renderer2, NgZone } from '@angular/core';
|
|
6
|
-
import { FileRestrictions } from './types';
|
|
7
|
-
import { DropZoneBase } from './dropzone-base';
|
|
8
|
-
import { UploadService } from './upload.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare class DropZoneInternalDirective extends DropZoneBase {
|
|
14
|
-
private ngZone;
|
|
15
|
-
protected uploadService: UploadService;
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
multiple: boolean;
|
|
18
|
-
restrictions: FileRestrictions;
|
|
19
|
-
initialClassName: boolean;
|
|
20
|
-
private unsubscribeDocumentDragEnter;
|
|
21
|
-
private unsubscribeDocumentDragOver;
|
|
22
|
-
private lastDragDocument;
|
|
23
|
-
private hideIntervalDocument;
|
|
24
|
-
private activeClass;
|
|
25
|
-
constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone, uploadService: UploadService);
|
|
26
|
-
ngOnDestroy(): void;
|
|
27
|
-
onDocumentDragEnter(): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
onDocumentDragOver(): boolean;
|
|
32
|
-
onDropListener(event: any): boolean;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DropZoneInternalDirective, never>;
|
|
34
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DropZoneInternalDirective, " [kendoUploadInternalDropZone], [kendoFileSelectInternalDropZone] ", never, { "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "restrictions": { "alias": "restrictions"; "required": false; }; }, {}, never, never, true, never>;
|
|
35
|
-
}
|
package/dropzone.component.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef, Renderer2 } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { DropZoneBase } from './dropzone-base';
|
|
8
|
-
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Represents the [Kendo UI UploadDropZone component for Angular](https://www.telerik.com/kendo-angular-ui/components/uploads).
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```html
|
|
15
|
-
* <kendo-uploaddropzone zoneId="upload1">
|
|
16
|
-
* Drop files here to upload
|
|
17
|
-
* </kendo-uploaddropzone>
|
|
18
|
-
* <kendo-upload [saveUrl]="uploadSaveUrl" zoneId="upload1"></kendo-upload>
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* Supported children components are: {@link CustomMessagesComponent}
|
|
23
|
-
*/
|
|
24
|
-
export declare class UploadDropZoneComponent extends DropZoneBase {
|
|
25
|
-
private localization;
|
|
26
|
-
hostClass: boolean;
|
|
27
|
-
get dirAttribute(): string;
|
|
28
|
-
/**
|
|
29
|
-
* Specifies the id of the component.
|
|
30
|
-
* Use this id to associate the DropZone with an existing Upload or FileSelect component.
|
|
31
|
-
*/
|
|
32
|
-
zoneId: string;
|
|
33
|
-
/**
|
|
34
|
-
* Specifies the name for an existing icon in a Kendo UI theme.
|
|
35
|
-
* The icon renders inside the DropZone.
|
|
36
|
-
*/
|
|
37
|
-
icon: string;
|
|
38
|
-
/**
|
|
39
|
-
* Specifies a CSS class or multiple classes separated by spaces which apply to a span element.
|
|
40
|
-
* Use this property to apply custom icons.
|
|
41
|
-
*/
|
|
42
|
-
iconClass: string;
|
|
43
|
-
/**
|
|
44
|
-
* Specifies an SVGIcon to render inside the DropZone.
|
|
45
|
-
* The input accepts either an [existing Kendo SVG icon](https://www.telerik.com/kendo-angular-ui/components/icons/svgicon/svgicon-list) or a custom one.
|
|
46
|
-
*/
|
|
47
|
-
set svgIcon(icon: SVGIcon);
|
|
48
|
-
get svgIcon(): SVGIcon;
|
|
49
|
-
private direction;
|
|
50
|
-
private localizationChangeSubscription;
|
|
51
|
-
private _svgIcon;
|
|
52
|
-
constructor(element: ElementRef, renderer: Renderer2, localization: LocalizationService);
|
|
53
|
-
/**
|
|
54
|
-
* @hidden
|
|
55
|
-
*/
|
|
56
|
-
textFor(key: string): string;
|
|
57
|
-
/**
|
|
58
|
-
* @hidden
|
|
59
|
-
*/
|
|
60
|
-
get iconClasses(): string;
|
|
61
|
-
ngOnDestroy(): void;
|
|
62
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UploadDropZoneComponent, never>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UploadDropZoneComponent, "kendo-uploaddropzone", ["kendoUploadDropZone"], { "zoneId": { "alias": "zoneId"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
64
|
-
}
|