@progress/kendo-angular-upload 16.3.0-develop.3 → 16.3.0-develop.4
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/base.d.ts +161 -0
- package/common/util.d.ts +1 -1
- package/esm2020/common/base.mjs +247 -0
- package/esm2020/common/util.mjs +1 -1
- package/esm2020/fileselect.component.mjs +36 -204
- package/esm2020/navigation.service.mjs +23 -34
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/rendering/file-list-item-action-button.component.mjs +50 -103
- package/esm2020/rendering/file-list-item.mjs +5 -5
- package/esm2020/rendering/file-list.component.mjs +21 -6
- package/esm2020/upload.component.mjs +23 -212
- package/fesm2015/progress-kendo-angular-upload.mjs +405 -575
- package/fesm2020/progress-kendo-angular-upload.mjs +405 -575
- package/fileselect.component.d.ts +17 -114
- package/navigation.service.d.ts +4 -3
- package/package.json +7 -7
- package/rendering/file-list-item-action-button.component.d.ts +0 -5
- package/rendering/file-list.component.d.ts +1 -0
- package/schematics/ngAdd/index.js +3 -3
- package/upload.component.d.ts +13 -120
|
@@ -2,121 +2,46 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { OnDestroy, Renderer2, ElementRef,
|
|
5
|
+
import { OnDestroy, Renderer2, ElementRef, NgZone, OnInit, ChangeDetectorRef, Injector, EventEmitter } from "@angular/core";
|
|
6
6
|
import { FileRestrictions, FileInfo } from './types';
|
|
7
|
-
import { FormControl } from '@angular/forms';
|
|
8
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
8
|
import { UploadService } from './upload.service';
|
|
10
|
-
import { FileMap } from './types/file-map';
|
|
11
9
|
import { Direction } from './types/direction';
|
|
12
|
-
import { RemoveEvent, SelectEvent } from './events';
|
|
13
10
|
import { NavigationService } from './navigation.service';
|
|
14
|
-
import { FileTemplateDirective } from './templates/file-template.directive';
|
|
15
11
|
import { DropZoneService } from './dropzone.service';
|
|
16
|
-
import {
|
|
12
|
+
import { UploadFileSelectBase } from "./common/base";
|
|
17
13
|
import * as i0 from "@angular/core";
|
|
18
14
|
/**
|
|
19
15
|
* @hidden
|
|
20
16
|
*/
|
|
21
17
|
export declare const FILESELECT_VALUE_ACCESSOR: any;
|
|
22
|
-
export declare class FileSelectComponent implements OnInit, OnDestroy {
|
|
23
|
-
|
|
18
|
+
export declare class FileSelectComponent extends UploadFileSelectBase implements OnInit, OnDestroy {
|
|
19
|
+
protected uploadService: UploadService;
|
|
24
20
|
private localization;
|
|
25
|
-
|
|
21
|
+
protected navigation: NavigationService;
|
|
26
22
|
private dropZoneService;
|
|
27
|
-
|
|
23
|
+
protected ngZone: NgZone;
|
|
28
24
|
private renderer;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*/
|
|
34
|
-
accept: string;
|
|
35
|
-
/**
|
|
36
|
-
* Disables the FileSelect.
|
|
37
|
-
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_fileselect#toc-managing-the-fileselect-disabled-state-in-reactive-forms).
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
disabled: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Enables the selection of multiple files
|
|
43
|
-
* ([see example]({% slug fileprocessing_upload %}#toc-upload-of-sinlge-or-multiple-files)).
|
|
44
|
-
* If set to `false`, only one file can be selected at a time.
|
|
45
|
-
* @default true
|
|
46
|
-
*/
|
|
47
|
-
multiple: boolean;
|
|
25
|
+
protected cdr: ChangeDetectorRef;
|
|
26
|
+
protected injector: Injector;
|
|
27
|
+
fileSelectInput: ElementRef;
|
|
28
|
+
get dir(): string;
|
|
48
29
|
/**
|
|
49
30
|
* Sets the `name` attribute of the `input` element of the FileSelect.
|
|
50
31
|
*/
|
|
51
32
|
set name(name: string);
|
|
52
33
|
get name(): string;
|
|
53
|
-
/**
|
|
54
|
-
* Toggles the visibility of the file list.
|
|
55
|
-
* @default true
|
|
56
|
-
*/
|
|
57
|
-
showFileList: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the FileSelect.
|
|
60
|
-
* @default 0
|
|
61
|
-
*/
|
|
62
|
-
tabindex: number;
|
|
63
|
-
/**
|
|
64
|
-
* Sets the restrictions for selected files.
|
|
65
|
-
*/
|
|
66
|
-
set restrictions(restrictions: FileRestrictions);
|
|
67
|
-
get restrictions(): FileRestrictions;
|
|
68
|
-
/**
|
|
69
|
-
* Specifies the id of the external drop zone to associate with the FileSelect.
|
|
70
|
-
*/
|
|
71
|
-
zoneId: string;
|
|
72
|
-
/**
|
|
73
|
-
* @hidden
|
|
74
|
-
*/
|
|
75
|
-
focusableId: string;
|
|
76
|
-
fileTemplate: FileTemplateDirective;
|
|
77
|
-
fileInfoTemplate: FileInfoTemplateDirective;
|
|
78
|
-
fileSelectInput: ElementRef;
|
|
79
|
-
fileSelectButton: ElementRef;
|
|
80
|
-
/**
|
|
81
|
-
* Fires when the user navigates outside the component.
|
|
82
|
-
*/
|
|
83
|
-
onBlur: EventEmitter<any>;
|
|
84
|
-
/**
|
|
85
|
-
* Fires when the component is focused.
|
|
86
|
-
*/
|
|
87
|
-
onFocus: EventEmitter<any>;
|
|
88
|
-
/**
|
|
89
|
-
* Fires when files are selected. If prevented, the selected files will not be added to the list.
|
|
90
|
-
*/
|
|
91
|
-
select: EventEmitter<SelectEvent>;
|
|
92
|
-
/**
|
|
93
|
-
* Fires when a file is about to be removed. If prevented, the file will remain in the list.
|
|
94
|
-
*/
|
|
95
|
-
remove: EventEmitter<RemoveEvent>;
|
|
96
34
|
/**
|
|
97
35
|
* Fires when the value of the component has changed as a result of a successful `select` or `remove` operation.
|
|
98
36
|
*/
|
|
99
37
|
valueChange: EventEmitter<Array<File>>;
|
|
100
|
-
hostDefaultClasses: boolean;
|
|
101
|
-
get hostDisabledClass(): boolean;
|
|
102
|
-
get dir(): string;
|
|
103
|
-
get hostRole(): string;
|
|
104
|
-
/**
|
|
105
|
-
* @hidden
|
|
106
|
-
*/
|
|
107
|
-
get formControl(): FormControl;
|
|
108
|
-
/**
|
|
109
|
-
* @hidden
|
|
110
|
-
*/
|
|
111
|
-
get isControlRequired(): boolean;
|
|
112
38
|
/**
|
|
113
39
|
* @hidden
|
|
114
40
|
*/
|
|
115
41
|
_restrictions: FileRestrictions;
|
|
116
|
-
fileList: FileMap;
|
|
117
42
|
direction: Direction;
|
|
118
43
|
wrapper: HTMLElement;
|
|
119
|
-
|
|
44
|
+
fileListId: string;
|
|
120
45
|
private documentClick;
|
|
121
46
|
private blurSubscription;
|
|
122
47
|
private wrapperFocusSubscription;
|
|
@@ -129,33 +54,7 @@ export declare class FileSelectComponent implements OnInit, OnDestroy {
|
|
|
129
54
|
* @hidden
|
|
130
55
|
*/
|
|
131
56
|
textFor(key: string): string;
|
|
132
|
-
/**
|
|
133
|
-
* Focuses the underlying input element.
|
|
134
|
-
*/
|
|
135
|
-
focus(): void;
|
|
136
57
|
ngOnDestroy(): void;
|
|
137
|
-
/**
|
|
138
|
-
* @hidden
|
|
139
|
-
*/
|
|
140
|
-
writeValue(newValue: any): void;
|
|
141
|
-
protected onTouchedCallback: Function;
|
|
142
|
-
protected onChangeCallback: Function;
|
|
143
|
-
/**
|
|
144
|
-
* @hidden
|
|
145
|
-
*/
|
|
146
|
-
registerOnChange(fn: any): void;
|
|
147
|
-
/**
|
|
148
|
-
* @hidden
|
|
149
|
-
*/
|
|
150
|
-
registerOnTouched(fn: any): void;
|
|
151
|
-
/**
|
|
152
|
-
* @hidden
|
|
153
|
-
*/
|
|
154
|
-
setDisabledState(isDisabled: boolean): void;
|
|
155
|
-
/**
|
|
156
|
-
* @hidden
|
|
157
|
-
*/
|
|
158
|
-
onFileSelectButtonFocus(): void;
|
|
159
58
|
/**
|
|
160
59
|
* Removes specific file from the file list.
|
|
161
60
|
*/
|
|
@@ -183,13 +82,17 @@ export declare class FileSelectComponent implements OnInit, OnDestroy {
|
|
|
183
82
|
*/
|
|
184
83
|
getIds(): {
|
|
185
84
|
buttonId: string;
|
|
186
|
-
|
|
85
|
+
fileListId: string;
|
|
187
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* @hidden
|
|
89
|
+
*/
|
|
90
|
+
writeValue(newValue: any): void;
|
|
188
91
|
private subscribeBlur;
|
|
189
92
|
private subscribeFocus;
|
|
190
93
|
private handleKeydown;
|
|
191
94
|
private attachEventHandlers;
|
|
192
95
|
private setDefaultSettings;
|
|
193
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileSelectComponent, never>;
|
|
194
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileSelectComponent, "kendo-fileselect", ["kendoFileSelect"], { "
|
|
97
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileSelectComponent, "kendo-fileselect", ["kendoFileSelect"], { "name": "name"; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
195
98
|
}
|
package/navigation.service.d.ts
CHANGED
|
@@ -18,8 +18,10 @@ export declare class NavigationService {
|
|
|
18
18
|
onWrapperFocus: EventEmitter<any>;
|
|
19
19
|
onSelectButtonFocus: EventEmitter<any>;
|
|
20
20
|
actionButtonsVisible: boolean;
|
|
21
|
+
fileListVisible: boolean;
|
|
21
22
|
focused: boolean;
|
|
22
23
|
keyBindings: Object;
|
|
24
|
+
focusedFileIndex: number;
|
|
23
25
|
private _focusedIndex;
|
|
24
26
|
constructor(uploadService: UploadService, zone: NgZone);
|
|
25
27
|
action(event: any): Function;
|
|
@@ -30,9 +32,8 @@ export declare class NavigationService {
|
|
|
30
32
|
handleSpace(): void;
|
|
31
33
|
handleDelete(): void;
|
|
32
34
|
handleEscape(): void;
|
|
33
|
-
handleTab(
|
|
34
|
-
|
|
35
|
-
handleUp(event: any): void;
|
|
35
|
+
handleTab(event: any, component: any): void;
|
|
36
|
+
handleUpDown(event: any, direction: any): void;
|
|
36
37
|
get focusedIndex(): number;
|
|
37
38
|
set focusedIndex(index: number);
|
|
38
39
|
get lastFileIndex(): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-upload",
|
|
3
|
-
"version": "16.3.0-develop.
|
|
3
|
+
"version": "16.3.0-develop.4",
|
|
4
4
|
"description": "Kendo UI Angular Upload Component",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"@angular/forms": "15 - 18",
|
|
25
25
|
"@angular/platform-browser": "15 - 18",
|
|
26
26
|
"@progress/kendo-licensing": "^1.0.2",
|
|
27
|
-
"@progress/kendo-angular-common": "16.3.0-develop.
|
|
28
|
-
"@progress/kendo-angular-l10n": "16.3.0-develop.
|
|
29
|
-
"@progress/kendo-angular-icons": "16.3.0-develop.
|
|
30
|
-
"@progress/kendo-angular-buttons": "16.3.0-develop.
|
|
31
|
-
"@progress/kendo-angular-progressbar": "16.3.0-develop.
|
|
27
|
+
"@progress/kendo-angular-common": "16.3.0-develop.4",
|
|
28
|
+
"@progress/kendo-angular-l10n": "16.3.0-develop.4",
|
|
29
|
+
"@progress/kendo-angular-icons": "16.3.0-develop.4",
|
|
30
|
+
"@progress/kendo-angular-buttons": "16.3.0-develop.4",
|
|
31
|
+
"@progress/kendo-angular-progressbar": "16.3.0-develop.4",
|
|
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": "16.3.0-develop.
|
|
36
|
+
"@progress/kendo-angular-schematics": "16.3.0-develop.4"
|
|
37
37
|
},
|
|
38
38
|
"schematics": "./schematics/collection.json",
|
|
39
39
|
"module": "fesm2015/progress-kendo-angular-upload.mjs",
|
|
@@ -18,17 +18,12 @@ export declare class FileListItemActionButtonComponent {
|
|
|
18
18
|
file: FileInfo;
|
|
19
19
|
disabled: boolean;
|
|
20
20
|
progress: number;
|
|
21
|
-
actionFocused: boolean;
|
|
22
|
-
retryFocused: boolean;
|
|
23
|
-
pauseResumeFocused: boolean;
|
|
24
21
|
retrySVGIcon: SVGIcon;
|
|
25
22
|
playSVGIcon: SVGIcon;
|
|
26
23
|
pauseSVGIcon: SVGIcon;
|
|
27
24
|
cancelSVGIcon: SVGIcon;
|
|
28
25
|
deleteSVGIcon: SVGIcon;
|
|
29
26
|
constructor(uploadService: UploadService, localization: LocalizationService, navigation: NavigationService);
|
|
30
|
-
onFocus(type: string): void;
|
|
31
|
-
onBlur(type: string): void;
|
|
32
27
|
onRetryClick(): void;
|
|
33
28
|
onRemoveCancelClick(event?: any): void;
|
|
34
29
|
onPauseResumeClick(): void;
|
|
@@ -21,6 +21,7 @@ export declare class FileListComponent implements OnDestroy {
|
|
|
21
21
|
fileTemplate: FileTemplateDirective;
|
|
22
22
|
fileInfoTemplate: FileInfoTemplateDirective;
|
|
23
23
|
fileListItems: QueryList<FileListItemDirective>;
|
|
24
|
+
fileListRole: string;
|
|
24
25
|
private focusSubscription;
|
|
25
26
|
private actionSubscription;
|
|
26
27
|
constructor(uploadService: UploadService, navigation: NavigationService);
|
|
@@ -10,9 +10,9 @@ function default_1(options) {
|
|
|
10
10
|
], peerDependencies: {
|
|
11
11
|
// peer dep of the icons
|
|
12
12
|
'@progress/kendo-svg-icons': '^3.0.0',
|
|
13
|
-
'@progress/kendo-angular-buttons': '16.3.0-develop.
|
|
14
|
-
'@progress/kendo-angular-progressbar': '16.3.0-develop.
|
|
15
|
-
'@progress/kendo-angular-popup': '16.3.0-develop.
|
|
13
|
+
'@progress/kendo-angular-buttons': '16.3.0-develop.4',
|
|
14
|
+
'@progress/kendo-angular-progressbar': '16.3.0-develop.4',
|
|
15
|
+
'@progress/kendo-angular-popup': '16.3.0-develop.4',
|
|
16
16
|
} });
|
|
17
17
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
18
18
|
}
|
package/upload.component.d.ts
CHANGED
|
@@ -4,19 +4,17 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { HttpHeaders } from '@angular/common/http';
|
|
6
6
|
import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, Renderer2, ChangeDetectorRef, Injector } from '@angular/core';
|
|
7
|
-
import { ControlValueAccessor
|
|
7
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
8
8
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { Direction } from './types/direction';
|
|
10
|
-
import { FileInfo
|
|
11
|
-
import { FileMap } from './types/file-map';
|
|
10
|
+
import { FileInfo } from './types';
|
|
12
11
|
import { NavigationService } from './navigation.service';
|
|
13
|
-
import {
|
|
14
|
-
import { CancelEvent, ClearEvent, ErrorEvent, RemoveEvent, SelectEvent, SuccessEvent, UploadEvent, UploadProgressEvent } from './events';
|
|
12
|
+
import { CancelEvent, ClearEvent, ErrorEvent, SuccessEvent, UploadEvent, UploadProgressEvent } from './events';
|
|
15
13
|
import { UploadService } from './upload.service';
|
|
16
14
|
import { ChunkSettings } from './types/chunk-settings';
|
|
17
15
|
import { DropZoneService } from './dropzone.service';
|
|
18
16
|
import { ActionsLayout } from './common/action-buttons-layout';
|
|
19
|
-
import {
|
|
17
|
+
import { UploadFileSelectBase } from './common/base';
|
|
20
18
|
import * as i0 from "@angular/core";
|
|
21
19
|
/**
|
|
22
20
|
* @hidden
|
|
@@ -25,15 +23,15 @@ export declare const UPLOAD_VALUE_ACCESSOR: any;
|
|
|
25
23
|
/**
|
|
26
24
|
* Represents the [Kendo UI Upload component for Angular]({% slug overview_upload %}).
|
|
27
25
|
*/
|
|
28
|
-
export declare class UploadComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
29
|
-
|
|
26
|
+
export declare class UploadComponent extends UploadFileSelectBase implements OnInit, OnDestroy, ControlValueAccessor {
|
|
27
|
+
protected uploadService: UploadService;
|
|
30
28
|
private localization;
|
|
31
|
-
|
|
29
|
+
protected navigation: NavigationService;
|
|
32
30
|
private dropZoneService;
|
|
33
|
-
|
|
31
|
+
protected zone: NgZone;
|
|
34
32
|
private renderer;
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
protected cdr: ChangeDetectorRef;
|
|
34
|
+
protected injector: Injector;
|
|
37
35
|
/**
|
|
38
36
|
* By default, the selected files are immediately uploaded
|
|
39
37
|
* ([see example]({% slug fileprocessing_upload %}#toc-automatic-upload-of-files)).
|
|
@@ -128,63 +126,21 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
128
126
|
*/
|
|
129
127
|
set concurrent(concurrent: boolean);
|
|
130
128
|
get concurrent(): boolean;
|
|
131
|
-
/**
|
|
132
|
-
* Enables the selection of multiple files
|
|
133
|
-
* ([see example]({% slug fileprocessing_upload %}#toc-upload-of-sinlge-or-multiple-files)).
|
|
134
|
-
* If set to `false`, only one file can be selected at a time.
|
|
135
|
-
* @default true
|
|
136
|
-
*/
|
|
137
|
-
multiple: boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Disables the Upload ([see example]({% slug disabledstate_upload %})).
|
|
140
|
-
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_upload#toc-managing-the-upload-disabled-state-in-reactive-forms).
|
|
141
|
-
* @default false
|
|
142
|
-
*/
|
|
143
|
-
disabled: boolean;
|
|
144
129
|
/**
|
|
145
130
|
* Toggles the visibility of the file list.
|
|
146
131
|
* @default true
|
|
147
132
|
*/
|
|
148
133
|
showFileList: boolean;
|
|
149
|
-
/**
|
|
150
|
-
* Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
151
|
-
* @default 0
|
|
152
|
-
*/
|
|
153
|
-
tabindex: number;
|
|
154
|
-
/**
|
|
155
|
-
* Specifies the id of the external drop zone to associate with the Upload.
|
|
156
|
-
*/
|
|
157
|
-
zoneId: string;
|
|
158
134
|
/**
|
|
159
135
|
* @hidden
|
|
160
136
|
*/
|
|
161
137
|
set tabIndex(tabIndex: number);
|
|
162
138
|
get tabIndex(): number;
|
|
163
|
-
/**
|
|
164
|
-
* Sets the `accept` attribute of the `input` element of the Upload.
|
|
165
|
-
*/
|
|
166
|
-
accept: string;
|
|
167
|
-
/**
|
|
168
|
-
* Sets the restrictions for selected files ([see example]({% slug api_upload_filerestrictions %})).
|
|
169
|
-
*/
|
|
170
|
-
set restrictions(restrictions: FileRestrictions);
|
|
171
|
-
get restrictions(): FileRestrictions;
|
|
172
|
-
/**
|
|
173
|
-
* @hidden
|
|
174
|
-
*/
|
|
175
|
-
focusableId: string;
|
|
176
139
|
/**
|
|
177
140
|
* Specifies the possible layout of the action buttons.
|
|
178
141
|
*/
|
|
179
142
|
actionsLayout: ActionsLayout;
|
|
180
|
-
fileTemplate: FileTemplateDirective;
|
|
181
|
-
fileInfoTemplate: FileInfoTemplateDirective;
|
|
182
143
|
fileSelectInput: ElementRef;
|
|
183
|
-
fileSelectButton: ElementRef;
|
|
184
|
-
/**
|
|
185
|
-
* Fires when the user navigates outside the component.
|
|
186
|
-
*/
|
|
187
|
-
onBlur: EventEmitter<any>;
|
|
188
144
|
/**
|
|
189
145
|
* Fires when the upload is canceled while in progress.
|
|
190
146
|
*/
|
|
@@ -201,26 +157,14 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
201
157
|
* Fires when an `upload` or `remove` operation has failed.
|
|
202
158
|
*/
|
|
203
159
|
error: EventEmitter<ErrorEvent>;
|
|
204
|
-
/**
|
|
205
|
-
* Fires when the component is focused.
|
|
206
|
-
*/
|
|
207
|
-
onFocus: EventEmitter<any>;
|
|
208
160
|
/**
|
|
209
161
|
* Fires when the upload of a file has been paused.
|
|
210
162
|
*/
|
|
211
163
|
pause: EventEmitter<any>;
|
|
212
|
-
/**
|
|
213
|
-
* Fires when an uploaded file is about to be removed. If prevented, the files will remain in the list.
|
|
214
|
-
*/
|
|
215
|
-
remove: EventEmitter<RemoveEvent>;
|
|
216
164
|
/**
|
|
217
165
|
* Fires when the upload of a file has been resumed.
|
|
218
166
|
*/
|
|
219
167
|
resume: EventEmitter<any>;
|
|
220
|
-
/**
|
|
221
|
-
* Fires when files are selected. If prevented, the selected files will not be added to the list.
|
|
222
|
-
*/
|
|
223
|
-
select: EventEmitter<SelectEvent>;
|
|
224
168
|
/**
|
|
225
169
|
* Fires when an `upload` or `remove` operation is successfully completed.
|
|
226
170
|
*/
|
|
@@ -237,25 +181,10 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
237
181
|
* Fires when the value of the component has changed as a result of a successful `upload`, `remove` or `clear` operation.
|
|
238
182
|
*/
|
|
239
183
|
valueChange: EventEmitter<Array<FileInfo>>;
|
|
240
|
-
hostDefaultClasses: boolean;
|
|
241
|
-
get hostRole(): string;
|
|
242
|
-
get hostDisabledClass(): boolean;
|
|
243
184
|
get dir(): string;
|
|
244
|
-
/**
|
|
245
|
-
* @hidden
|
|
246
|
-
*/
|
|
247
|
-
get formControl(): FormControl;
|
|
248
|
-
/**
|
|
249
|
-
* @hidden
|
|
250
|
-
*/
|
|
251
|
-
get isControlRequired(): boolean;
|
|
252
|
-
/**
|
|
253
|
-
* @hidden
|
|
254
|
-
*/
|
|
255
|
-
_restrictions: FileRestrictions;
|
|
256
|
-
fileList: FileMap;
|
|
257
185
|
direction: Direction;
|
|
258
186
|
wrapper: HTMLElement;
|
|
187
|
+
fileListId: string;
|
|
259
188
|
private documentClick;
|
|
260
189
|
private blurSubscription;
|
|
261
190
|
private wrapperFocusSubscription;
|
|
@@ -270,24 +199,6 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
270
199
|
* @hidden
|
|
271
200
|
*/
|
|
272
201
|
writeValue(newValue: any): void;
|
|
273
|
-
protected onTouchedCallback: Function;
|
|
274
|
-
protected onChangeCallback: Function;
|
|
275
|
-
/**
|
|
276
|
-
* @hidden
|
|
277
|
-
*/
|
|
278
|
-
registerOnChange(fn: any): void;
|
|
279
|
-
/**
|
|
280
|
-
* @hidden
|
|
281
|
-
*/
|
|
282
|
-
registerOnTouched(fn: any): void;
|
|
283
|
-
/**
|
|
284
|
-
* @hidden
|
|
285
|
-
*/
|
|
286
|
-
setDisabledState(isDisabled: boolean): void;
|
|
287
|
-
/**
|
|
288
|
-
* @hidden
|
|
289
|
-
*/
|
|
290
|
-
onFileSelectButtonFocus(): void;
|
|
291
202
|
/**
|
|
292
203
|
* @hidden
|
|
293
204
|
*/
|
|
@@ -305,26 +216,8 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
305
216
|
*/
|
|
306
217
|
getIds(): {
|
|
307
218
|
buttonId: string;
|
|
308
|
-
|
|
219
|
+
fileListId: string;
|
|
309
220
|
};
|
|
310
|
-
/**
|
|
311
|
-
* Focuses the underlying input element.
|
|
312
|
-
*/
|
|
313
|
-
focus(): void;
|
|
314
|
-
/**
|
|
315
|
-
* @hidden
|
|
316
|
-
* @deprecated
|
|
317
|
-
*/
|
|
318
|
-
focusComponent(): void;
|
|
319
|
-
/**
|
|
320
|
-
* Blurs the Upload if it was previously focused.
|
|
321
|
-
*/
|
|
322
|
-
blur(): void;
|
|
323
|
-
/**
|
|
324
|
-
* @hidden
|
|
325
|
-
* @deprecated
|
|
326
|
-
*/
|
|
327
|
-
blurComponent(): void;
|
|
328
221
|
/**
|
|
329
222
|
* Pauses the upload process of a file that is currently uploading.
|
|
330
223
|
* The `pauseFileByUid` method requires the `chunkable` option of the Upload to be enabled.
|
|
@@ -378,5 +271,5 @@ export declare class UploadComponent implements OnInit, OnDestroy, ControlValueA
|
|
|
378
271
|
private subscribeFocus;
|
|
379
272
|
private attachEventHandlers;
|
|
380
273
|
static ɵfac: i0.ɵɵFactoryDeclaration<UploadComponent, never>;
|
|
381
|
-
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"; "
|
|
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, false, never>;
|
|
382
275
|
}
|