@energycap/components 0.39.3-ECAP-20249-page-view-fit-content-fix.20231206-1437 → 0.39.4-ECAP-23220-bc-file-upload-dialog.20231218-1520
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 +21 -7
- package/fesm2015/energycap-components.mjs +14 -2
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +14 -2
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/controls/file-upload/file-upload.component.d.ts +7 -1
- package/package.json +1 -1
@@ -35,6 +35,12 @@ export declare class FileUploadComponent extends FormControlBase implements OnIn
|
|
35
35
|
* and set the file name and contents to the formModel, otherwise on failure it'll do nothing.
|
36
36
|
*/
|
37
37
|
onFileSelected?: (file: File) => Promise<any>;
|
38
|
+
/**
|
39
|
+
* Optional display type that controls whether the file input textbox is displayed or
|
40
|
+
* simply a button the user clicks to launch the OS file storage dialog.
|
41
|
+
* Default: file
|
42
|
+
*/
|
43
|
+
displayType?: 'file' | 'button';
|
38
44
|
fileInput?: ElementRef;
|
39
45
|
/** Property bound to the file input to filter what file types are shown in the dialog */
|
40
46
|
fileTypeAccept: string | undefined;
|
@@ -69,5 +75,5 @@ export declare class FileUploadComponent extends FormControlBase implements OnIn
|
|
69
75
|
*/
|
70
76
|
private patchFileResult;
|
71
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ec-file-upload", never, { "placeholder": "placeholder"; "fileType": "fileType"; "fileOutput": "fileOutput"; "customExtensions": "customExtensions"; "onFileSelected": "onFileSelected"; }, {}, never, never, false, never>;
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ec-file-upload", never, { "placeholder": "placeholder"; "fileType": "fileType"; "fileOutput": "fileOutput"; "customExtensions": "customExtensions"; "onFileSelected": "onFileSelected"; "displayType": "displayType"; }, {}, never, never, false, never>;
|
73
79
|
}
|