@progress/kendo-angular-upload 24.2.2 → 25.0.0-develop.2
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 +86 -86
- 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/dropzone.service.d.ts
DELETED
|
@@ -1,18 +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 { UploadComponent } from './upload.component';
|
|
6
|
-
import { FileSelectComponent } from './fileselect.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare class DropZoneService {
|
|
12
|
-
addComponent(component: UploadComponent | FileSelectComponent, zoneId: string): void;
|
|
13
|
-
clearComponent(component: UploadComponent | FileSelectComponent, zoneId: string): void;
|
|
14
|
-
getComponents(zoneId: string): Array<UploadComponent | FileSelectComponent>;
|
|
15
|
-
private has;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DropZoneService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DropZoneService>;
|
|
18
|
-
}
|
package/events/cancel-event.d.ts
DELETED
|
@@ -1,34 +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 { FileInfo } from '../types';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `cancel` event. The `cancel` event fires when
|
|
8
|
-
* you cancel the upload of a file or batch of files.
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* @Component({
|
|
12
|
-
* template: `
|
|
13
|
-
* <kendo-upload (cancel)="cancelEventHandler($event)"></kendo-upload>
|
|
14
|
-
* `
|
|
15
|
-
* })
|
|
16
|
-
* export class UploadComponent {
|
|
17
|
-
* public cancelEventHandler(e: CancelEvent) {
|
|
18
|
-
* console.log('Canceling file upload', e.files);
|
|
19
|
-
* }
|
|
20
|
-
* }
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare class CancelEvent {
|
|
24
|
-
/**
|
|
25
|
-
* The files that you canceled during the upload process.
|
|
26
|
-
*/
|
|
27
|
-
files: Array<FileInfo>;
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
* Constructs the event arguments for the `cancel` event.
|
|
31
|
-
* @param files - The list of the files that were going to be uploaded.
|
|
32
|
-
*/
|
|
33
|
-
constructor(files: Array<FileInfo>);
|
|
34
|
-
}
|
package/events/clear-event.d.ts
DELETED
|
@@ -1,29 +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 { PreventableEvent } from './preventable-event';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `clear` event. The `clear` event fires when
|
|
8
|
-
* the **Clear** button is clicked and selected files are about to be cleared.
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* @Component({
|
|
12
|
-
* template: `
|
|
13
|
-
* <kendo-upload (clear)="clearEventHandler($event)"></kendo-upload>
|
|
14
|
-
* `
|
|
15
|
-
* })
|
|
16
|
-
* export class UploadComponent {
|
|
17
|
-
* public clearEventHandler(e: ClearEvent) {
|
|
18
|
-
* console.log('Clearing the file upload');
|
|
19
|
-
* }
|
|
20
|
-
* }
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare class ClearEvent extends PreventableEvent {
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
* Constructs the event arguments for the `clear` event.
|
|
27
|
-
*/
|
|
28
|
-
constructor();
|
|
29
|
-
}
|
package/events/error-event.d.ts
DELETED
|
@@ -1,46 +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 { HttpResponse } from '@angular/common/http';
|
|
6
|
-
import { FileInfo, OperationType } from '../types';
|
|
7
|
-
/**
|
|
8
|
-
* Arguments for the `error` event. The `error` event fires when
|
|
9
|
-
* an `upload` or `remove` operation fails.
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* @Component({
|
|
13
|
-
* template: `
|
|
14
|
-
* <kendo-upload (error)="errorEventHandler($event)"></kendo-upload>
|
|
15
|
-
* `
|
|
16
|
-
* })
|
|
17
|
-
* export class UploadComponent {
|
|
18
|
-
* public errorEventHandler(e: ErrorEvent) {
|
|
19
|
-
* console.log('An error occurred');
|
|
20
|
-
* }
|
|
21
|
-
* }
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare class ErrorEvent {
|
|
25
|
-
/**
|
|
26
|
-
* The array of files that failed to be uploaded or removed.
|
|
27
|
-
*/
|
|
28
|
-
files: Array<FileInfo>;
|
|
29
|
-
/**
|
|
30
|
-
* The operation type that failed (`upload` or `remove`).
|
|
31
|
-
*/
|
|
32
|
-
operation: OperationType;
|
|
33
|
-
/**
|
|
34
|
-
* The HTTP response returned by the server containing error details.
|
|
35
|
-
*/
|
|
36
|
-
response: HttpResponse<any>;
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
* Constructs the event arguments for the `error` event.
|
|
40
|
-
*
|
|
41
|
-
* @param files - The list of the files that failed to be uploaded or removed.
|
|
42
|
-
* @param operation - The operation type (`upload` or `remove`).
|
|
43
|
-
* @param response - The response object returned by the server.
|
|
44
|
-
*/
|
|
45
|
-
constructor(files: Array<FileInfo>, operation: OperationType, response: HttpResponse<any>);
|
|
46
|
-
}
|
package/events/pause-event.d.ts
DELETED
|
@@ -1,37 +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 { FileInfo } from '../types';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `pause` event. The `pause` event fires when
|
|
8
|
-
* you pause a file that is currently uploading.
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* @Component({
|
|
12
|
-
* template: `
|
|
13
|
-
* <kendo-upload
|
|
14
|
-
* [chunkable]="true"
|
|
15
|
-
* (pause)="pauseEventHandler($event)">
|
|
16
|
-
* </kendo-upload>
|
|
17
|
-
* `
|
|
18
|
-
* })
|
|
19
|
-
* export class UploadComponent {
|
|
20
|
-
* public pauseEventHandler(ev: PauseEvent) {
|
|
21
|
-
* console.log('File paused');
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare class PauseEvent {
|
|
27
|
-
/**
|
|
28
|
-
* The file that you paused during the upload process.
|
|
29
|
-
*/
|
|
30
|
-
file: FileInfo;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
* Constructs the event arguments for the `pause` event.
|
|
34
|
-
* @param file - The file that is going to be paused.
|
|
35
|
-
*/
|
|
36
|
-
constructor(file: FileInfo);
|
|
37
|
-
}
|
|
@@ -1,21 +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 abstract class PreventableEvent {
|
|
9
|
-
private prevented;
|
|
10
|
-
/**
|
|
11
|
-
* Prevents the default action for a specified event.
|
|
12
|
-
* In this way, the source component suppresses the built-in behavior that follows the event.
|
|
13
|
-
*/
|
|
14
|
-
preventDefault(): void;
|
|
15
|
-
/**
|
|
16
|
-
* If the event is prevented by any of its subscribers, returns `true`.
|
|
17
|
-
*
|
|
18
|
-
* @returns `true` if the default action was prevented. Otherwise, returns `false`.
|
|
19
|
-
*/
|
|
20
|
-
isDefaultPrevented(): boolean;
|
|
21
|
-
}
|
package/events/remove-event.d.ts
DELETED
|
@@ -1,47 +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 { HttpHeaders } from '@angular/common/http';
|
|
6
|
-
import { PreventableEvent } from './preventable-event';
|
|
7
|
-
import { FileInfo } from '../types';
|
|
8
|
-
/**
|
|
9
|
-
* Arguments for the `remove` event. The `remove` event fires when you are about to remove an uploaded
|
|
10
|
-
* or selected file. You can cancel this event to prevent removal.
|
|
11
|
-
*
|
|
12
|
-
* ```typescript
|
|
13
|
-
* @Component({
|
|
14
|
-
* template: `
|
|
15
|
-
* <kendo-upload (remove)="removeEventHandler($event)"></kendo-upload>
|
|
16
|
-
* `
|
|
17
|
-
* })
|
|
18
|
-
* export class UploadComponent {
|
|
19
|
-
* public removeEventHandler(e: RemoveEvent) {
|
|
20
|
-
* console.log('Removing a file');
|
|
21
|
-
* }
|
|
22
|
-
* }
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export declare class RemoveEvent extends PreventableEvent {
|
|
26
|
-
/**
|
|
27
|
-
* An optional object that you send to the `remove` handler as key/value pairs.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
data: object;
|
|
31
|
-
/**
|
|
32
|
-
* The files that you will remove from the server.
|
|
33
|
-
*/
|
|
34
|
-
files: Array<FileInfo>;
|
|
35
|
-
/**
|
|
36
|
-
* The headers of the request.
|
|
37
|
-
* You can use this to add custom headers to the remove request.
|
|
38
|
-
*/
|
|
39
|
-
headers: HttpHeaders;
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
* Constructs the event arguments for the `remove` event.
|
|
43
|
-
* @param files - The list of the files that will be removed.
|
|
44
|
-
* @param headers - The headers of the request.
|
|
45
|
-
*/
|
|
46
|
-
constructor(files: Array<FileInfo>, headers: HttpHeaders);
|
|
47
|
-
}
|
package/events/resume-event.d.ts
DELETED
|
@@ -1,37 +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 { FileInfo } from '../types';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `resume` event. The `resume` event fires when
|
|
8
|
-
* you resume a previously paused file upload.
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* @Component({
|
|
12
|
-
* template: `
|
|
13
|
-
* <kendo-upload
|
|
14
|
-
* [chunkable]="true"
|
|
15
|
-
* (resume)="resumeEventHandler($event)">
|
|
16
|
-
* </kendo-upload>
|
|
17
|
-
* `
|
|
18
|
-
* })
|
|
19
|
-
* export class UploadComponent {
|
|
20
|
-
* public resumeEventHandler(ev: ResumeEvent) {
|
|
21
|
-
* console.log('File resumed');
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare class ResumeEvent {
|
|
27
|
-
/**
|
|
28
|
-
* The file that you resumed during the upload process.
|
|
29
|
-
*/
|
|
30
|
-
file: FileInfo;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
* Constructs the event arguments for the `resume` event.
|
|
34
|
-
* @param file - The file that is going to be resumed.
|
|
35
|
-
*/
|
|
36
|
-
constructor(file: FileInfo);
|
|
37
|
-
}
|
package/events/select-event.d.ts
DELETED
|
@@ -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 { PreventableEvent } from './preventable-event';
|
|
6
|
-
import { FileInfo } from '../types';
|
|
7
|
-
/**
|
|
8
|
-
* Arguments for the `select` event. The `select` event fires when
|
|
9
|
-
* a file or multiple files are selected for upload. The event can be canceled to prevent selection.
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* @Component({
|
|
13
|
-
* template: `
|
|
14
|
-
* <kendo-upload (select)="selectEventHandler($event)"></kendo-upload>
|
|
15
|
-
* `
|
|
16
|
-
* })
|
|
17
|
-
* export class UploadComponent {
|
|
18
|
-
* public selectEventHandler(e: SelectEvent) {
|
|
19
|
-
* console.log('File selected');
|
|
20
|
-
* }
|
|
21
|
-
* }
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare class SelectEvent extends PreventableEvent {
|
|
25
|
-
/**
|
|
26
|
-
* The files that are selected for upload.
|
|
27
|
-
*/
|
|
28
|
-
files: Array<FileInfo>;
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
* Constructs the event arguments for the `select` event.
|
|
32
|
-
* @param files - The list of the selected files.
|
|
33
|
-
*/
|
|
34
|
-
constructor(files: Array<FileInfo>);
|
|
35
|
-
}
|
|
@@ -1,46 +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 { HttpResponse } from '@angular/common/http';
|
|
6
|
-
import { FileInfo, OperationType } from '../types';
|
|
7
|
-
import { PreventableEvent } from './preventable-event';
|
|
8
|
-
/**
|
|
9
|
-
* Arguments for the `success` event. The `success` event fires when
|
|
10
|
-
* you successfully upload or remove the selected files.
|
|
11
|
-
*
|
|
12
|
-
* ```typescript
|
|
13
|
-
* @Component({
|
|
14
|
-
* template: `
|
|
15
|
-
* <kendo-upload (success)="successEventHandler($event)"></kendo-upload>
|
|
16
|
-
* `
|
|
17
|
-
* })
|
|
18
|
-
* export class UploadComponent {
|
|
19
|
-
* public successEventHandler(e: SuccessEvent) {
|
|
20
|
-
* console.log('The ' + e.operation + ' was successful!');
|
|
21
|
-
* }
|
|
22
|
-
* }
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export declare class SuccessEvent extends PreventableEvent {
|
|
26
|
-
/**
|
|
27
|
-
* The files that you successfully uploaded or removed.
|
|
28
|
-
*/
|
|
29
|
-
files: Array<FileInfo>;
|
|
30
|
-
/**
|
|
31
|
-
* The operation type that succeeded (`upload` or `remove`).
|
|
32
|
-
*/
|
|
33
|
-
operation: OperationType;
|
|
34
|
-
/**
|
|
35
|
-
* The HTTP response that the server returns to confirm success.
|
|
36
|
-
*/
|
|
37
|
-
response: HttpResponse<any>;
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
* Constructs the event arguments for the `success` event.
|
|
41
|
-
* @param files - The list of the files that were uploaded or removed.
|
|
42
|
-
* @param operation - The operation type (`upload` or `remove`).
|
|
43
|
-
* @param response - The response object returned by the server.
|
|
44
|
-
*/
|
|
45
|
-
constructor(files: Array<FileInfo>, operation: OperationType, response: HttpResponse<any>);
|
|
46
|
-
}
|
package/events/upload-event.d.ts
DELETED
|
@@ -1,47 +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 { HttpHeaders } from '@angular/common/http';
|
|
6
|
-
import { FileInfo } from '../types';
|
|
7
|
-
import { PreventableEvent } from './preventable-event';
|
|
8
|
-
/**
|
|
9
|
-
* Arguments for the `upload` event. The `upload` event fires when you are about
|
|
10
|
-
* to upload one or more files. You can cancel this event to prevent upload and add headers to the request.
|
|
11
|
-
*
|
|
12
|
-
* ```typescript
|
|
13
|
-
* @Component({
|
|
14
|
-
* template: `
|
|
15
|
-
* <kendo-upload (upload)="uploadEventHandler($event)"></kendo-upload>
|
|
16
|
-
* `
|
|
17
|
-
* })
|
|
18
|
-
* export class UploadComponent {
|
|
19
|
-
* public uploadEventHandler(e: UploadEvent) {
|
|
20
|
-
* e.headers = e.headers.append('X-Foo', 'Bar');
|
|
21
|
-
* }
|
|
22
|
-
* }
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export declare class UploadEvent extends PreventableEvent {
|
|
26
|
-
/**
|
|
27
|
-
* The optional object that you send to the `upload` handler as key/value pairs.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
data: object;
|
|
31
|
-
/**
|
|
32
|
-
* The files that you will upload to the server.
|
|
33
|
-
*/
|
|
34
|
-
files: Array<FileInfo>;
|
|
35
|
-
/**
|
|
36
|
-
* The headers of the request.
|
|
37
|
-
* You can use this to add custom headers to the upload request.
|
|
38
|
-
*/
|
|
39
|
-
headers: HttpHeaders;
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
* Constructs the event arguments for the `upload` event.
|
|
43
|
-
* @param files - The list of the files that will be uploaded.
|
|
44
|
-
* @param headers - The headers of the request.
|
|
45
|
-
*/
|
|
46
|
-
constructor(files: Array<FileInfo>, headers: HttpHeaders);
|
|
47
|
-
}
|
|
@@ -1,39 +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 { FileInfo } from '../types';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `uploadprogress` event. The `uploadprogress` event
|
|
8
|
-
* fires when you upload files.
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* @Component({
|
|
12
|
-
* template: `
|
|
13
|
-
* <kendo-upload (uploadProgress)="uploadProgressEventHandler($event)"></kendo-upload>
|
|
14
|
-
* `
|
|
15
|
-
* })
|
|
16
|
-
* export class UploadComponent {
|
|
17
|
-
* public uploadProgressEventHandler(e: UploadProgressEvent) {
|
|
18
|
-
* console.log(e.files[0].name + ' is ' + e.percentComplete + ' uploaded');
|
|
19
|
-
* }
|
|
20
|
-
* }
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare class UploadProgressEvent {
|
|
24
|
-
/**
|
|
25
|
-
* The files that you are currently uploading.
|
|
26
|
-
*/
|
|
27
|
-
files: Array<FileInfo>;
|
|
28
|
-
/**
|
|
29
|
-
* The upload progress as a percentage from 0 to 100.
|
|
30
|
-
*/
|
|
31
|
-
percentComplete: number;
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
* Constructs the event arguments for the `uploadprogress` event.
|
|
35
|
-
* @param files - The list of files that are being uploaded.
|
|
36
|
-
* @param percentComplete - The portion that has been uploaded.
|
|
37
|
-
*/
|
|
38
|
-
constructor(files: Array<FileInfo>, percentComplete: number);
|
|
39
|
-
}
|
package/events.d.ts
DELETED
|
@@ -1,14 +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
|
-
export { CancelEvent } from './events/cancel-event';
|
|
6
|
-
export { ClearEvent } from './events/clear-event';
|
|
7
|
-
export { ErrorEvent } from './events/error-event';
|
|
8
|
-
export { PauseEvent } from './events/pause-event';
|
|
9
|
-
export { RemoveEvent } from './events/remove-event';
|
|
10
|
-
export { ResumeEvent } from './events/resume-event';
|
|
11
|
-
export { SelectEvent } from './events/select-event';
|
|
12
|
-
export { SuccessEvent } from './events/success-event';
|
|
13
|
-
export { UploadEvent } from './events/upload-event';
|
|
14
|
-
export { UploadProgressEvent } from './events/upload-progress-event';
|
|
@@ -1,39 +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 } from '@angular/core';
|
|
6
|
-
import { Direction } from './types/direction';
|
|
7
|
-
import { FileRestrictions } from './types';
|
|
8
|
-
import { NavigationService } from './navigation.service';
|
|
9
|
-
import { UploadService } from './upload.service';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export declare class FileSelectDirective {
|
|
15
|
-
private uploadService;
|
|
16
|
-
private navigation;
|
|
17
|
-
dir: Direction;
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
multiple: boolean;
|
|
20
|
-
restrictions: FileRestrictions;
|
|
21
|
-
accept: string;
|
|
22
|
-
required: boolean;
|
|
23
|
-
type: string;
|
|
24
|
-
autocomplete: string;
|
|
25
|
-
tabIndex: number;
|
|
26
|
-
ariaHidden: boolean;
|
|
27
|
-
element: ElementRef;
|
|
28
|
-
constructor(uploadService: UploadService, navigation: NavigationService, el: ElementRef);
|
|
29
|
-
classNames: boolean;
|
|
30
|
-
get nameAttribute(): string;
|
|
31
|
-
get multipleAttribute(): string;
|
|
32
|
-
get dirAttribute(): string;
|
|
33
|
-
get disabledAttribute(): string;
|
|
34
|
-
get acceptAttribute(): string;
|
|
35
|
-
get requiredAttribute(): string;
|
|
36
|
-
onInputChange(event: any): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileSelectDirective, 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
|
-
}
|
|
@@ -1,111 +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 { OnDestroy, Renderer2, ElementRef, NgZone, OnInit, ChangeDetectorRef, Injector, EventEmitter } from "@angular/core";
|
|
6
|
-
import { FileRestrictions, FileInfo } from './types';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { UploadService } from './upload.service';
|
|
9
|
-
import { Direction } from './types/direction';
|
|
10
|
-
import { NavigationService } from './navigation.service';
|
|
11
|
-
import { DropZoneService } from './dropzone.service';
|
|
12
|
-
import { UploadFileSelectBase } from "./common/base";
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare const FILESELECT_VALUE_ACCESSOR: any;
|
|
18
|
-
/**
|
|
19
|
-
* Represents the [Kendo UI FileSelect component for Angular](https://www.telerik.com/kendo-angular-ui/components/uploads/fileselect).
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```html
|
|
23
|
-
* <kendo-fileselect> </kendo-fileselect>
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @remarks
|
|
27
|
-
* Supported children components are: {@link CustomMessagesComponent}
|
|
28
|
-
*/
|
|
29
|
-
export declare class FileSelectComponent extends UploadFileSelectBase implements OnInit, OnDestroy {
|
|
30
|
-
protected uploadService: UploadService;
|
|
31
|
-
private localization;
|
|
32
|
-
protected navigation: NavigationService;
|
|
33
|
-
private dropZoneService;
|
|
34
|
-
protected ngZone: NgZone;
|
|
35
|
-
private renderer;
|
|
36
|
-
protected cdr: ChangeDetectorRef;
|
|
37
|
-
protected injector: Injector;
|
|
38
|
-
fileSelectInput: ElementRef;
|
|
39
|
-
get dir(): string;
|
|
40
|
-
/**
|
|
41
|
-
* Specifies the `name` attribute of the `input` element of the FileSelect.
|
|
42
|
-
*/
|
|
43
|
-
set name(name: string);
|
|
44
|
-
get name(): string;
|
|
45
|
-
/**
|
|
46
|
-
* Fires when the component value changes after a successful `select` or `remove` operation.
|
|
47
|
-
*/
|
|
48
|
-
valueChange: EventEmitter<Array<File>>;
|
|
49
|
-
/**
|
|
50
|
-
* @hidden
|
|
51
|
-
*/
|
|
52
|
-
_restrictions: FileRestrictions;
|
|
53
|
-
direction: Direction;
|
|
54
|
-
wrapper: HTMLElement;
|
|
55
|
-
fileListId: string;
|
|
56
|
-
private documentClick;
|
|
57
|
-
private blurSubscription;
|
|
58
|
-
private wrapperFocusSubscription;
|
|
59
|
-
private selectButtonFocusSubscription;
|
|
60
|
-
private localizationChangeSubscription;
|
|
61
|
-
private subs;
|
|
62
|
-
constructor(uploadService: UploadService, localization: LocalizationService, navigation: NavigationService, dropZoneService: DropZoneService, ngZone: NgZone, renderer: Renderer2, cdr: ChangeDetectorRef, wrapper: ElementRef, injector: Injector);
|
|
63
|
-
ngOnInit(): void;
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
textFor(key: string): string;
|
|
68
|
-
ngOnDestroy(): void;
|
|
69
|
-
/**
|
|
70
|
-
* Removes a specific file from the file list.
|
|
71
|
-
*
|
|
72
|
-
* @param uid The `uid` of the file to be removed.
|
|
73
|
-
*/
|
|
74
|
-
removeFileByUid(uid: string): void;
|
|
75
|
-
/**
|
|
76
|
-
* Clears all files from the UI.
|
|
77
|
-
*/
|
|
78
|
-
clearFiles(): void;
|
|
79
|
-
/**
|
|
80
|
-
* @hidden
|
|
81
|
-
* Used to determine if the component is empty.
|
|
82
|
-
*/
|
|
83
|
-
isEmpty(): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* @hidden
|
|
86
|
-
* Used by the external dropzone to add files to the FileSelect
|
|
87
|
-
*/
|
|
88
|
-
addFiles(files: FileInfo[]): void;
|
|
89
|
-
/**
|
|
90
|
-
* @hidden
|
|
91
|
-
*/
|
|
92
|
-
get selectButtonTabIndex(): number;
|
|
93
|
-
/**
|
|
94
|
-
* @hidden
|
|
95
|
-
*/
|
|
96
|
-
getIds(): {
|
|
97
|
-
buttonId: string;
|
|
98
|
-
fileListId: string;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* @hidden
|
|
102
|
-
*/
|
|
103
|
-
writeValue(newValue: any): void;
|
|
104
|
-
private subscribeBlur;
|
|
105
|
-
private subscribeFocus;
|
|
106
|
-
private handleKeydown;
|
|
107
|
-
private attachEventHandlers;
|
|
108
|
-
private setDefaultSettings;
|
|
109
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileSelectComponent, never>;
|
|
110
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileSelectComponent, "kendo-fileselect", ["kendoFileSelect"], { "name": { "alias": "name"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
111
|
-
}
|
package/fileselect.module.d.ts
DELETED
|
@@ -1,19 +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 * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./fileselect.component";
|
|
7
|
-
import * as i2 from "./templates/file-template.directive";
|
|
8
|
-
import * as i3 from "./templates/file-info-template.directive";
|
|
9
|
-
import * as i4 from "./localization/custom-messages.component";
|
|
10
|
-
import * as i5 from "./dropzone-external.directive";
|
|
11
|
-
import * as i6 from "./dropzone.component";
|
|
12
|
-
/**
|
|
13
|
-
* Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the FileSelect component.
|
|
14
|
-
*/
|
|
15
|
-
export declare class FileSelectModule {
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileSelectModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FileSelectModule, never, [typeof i1.FileSelectComponent, typeof i2.FileTemplateDirective, typeof i3.FileInfoTemplateDirective, typeof i4.CustomMessagesComponent, typeof i5.UploadDropZoneDirective, typeof i6.UploadDropZoneComponent], [typeof i1.FileSelectComponent, typeof i2.FileTemplateDirective, typeof i3.FileInfoTemplateDirective, typeof i4.CustomMessagesComponent, typeof i5.UploadDropZoneDirective, typeof i6.UploadDropZoneComponent]>;
|
|
18
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FileSelectModule>;
|
|
19
|
-
}
|