@energycap/components 0.39.4-ECAP-23220-bc-file-upload-dialog.20231219-1515 → 0.39.4-ECAP-23220-bc-file-upload-dialog.20231220-1222
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/esm2020/lib/controls/file-upload/file-upload.component.mjs +60 -50
- package/fesm2015/energycap-components.mjs +66 -51
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +59 -49
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/controls/file-upload/file-upload.component.d.ts +8 -1
- package/package.json +1 -1
@@ -45,6 +45,10 @@ export declare class FileUploadComponent extends FormControlBase implements OnIn
|
|
45
45
|
* When display type is set to button this property will control the button label
|
46
46
|
*/
|
47
47
|
buttonLabel?: string;
|
48
|
+
/**
|
49
|
+
* Optional property to control whether the user can select multiple files
|
50
|
+
*/
|
51
|
+
multiSelect?: boolean;
|
48
52
|
fileInput?: ElementRef;
|
49
53
|
/** Property bound to the file input to filter what file types are shown in the dialog */
|
50
54
|
fileTypeAccept: string | undefined;
|
@@ -78,6 +82,9 @@ export declare class FileUploadComponent extends FormControlBase implements OnIn
|
|
78
82
|
* @param onFileSelectedResult
|
79
83
|
*/
|
80
84
|
private patchFileResult;
|
85
|
+
private clearFormModel;
|
86
|
+
private handleMultipleFiles;
|
87
|
+
private readFile;
|
81
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
82
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ec-file-upload", never, { "placeholder": "placeholder"; "fileType": "fileType"; "fileOutput": "fileOutput"; "customExtensions": "customExtensions"; "onFileSelected": "onFileSelected"; "displayType": "displayType"; "buttonLabel": "buttonLabel"; }, {}, never, never, false, never>;
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ec-file-upload", never, { "placeholder": "placeholder"; "fileType": "fileType"; "fileOutput": "fileOutput"; "customExtensions": "customExtensions"; "onFileSelected": "onFileSelected"; "displayType": "displayType"; "buttonLabel": "buttonLabel"; "multiSelect": "multiSelect"; }, {}, never, never, false, never>;
|
83
90
|
}
|