@energycap/components 0.39.4-ECAP-23220-bc-file-upload-dialog.20231218-1520 → 0.39.4-ECAP-23220-bc-file-upload-dialog.20231219-1515
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 +67 -30
- package/fesm2015/energycap-components.mjs +69 -32
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +68 -31
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/controls/file-upload/file-upload.component.d.ts +6 -2
- package/package.json +1 -1
- package/src/assets/locales/en_US.json +3 -1
@@ -34,13 +34,17 @@ export declare class FileUploadComponent extends FormControlBase implements OnIn
|
|
34
34
|
* setting the formModel with the file information. If the promise resolves it will continue
|
35
35
|
* and set the file name and contents to the formModel, otherwise on failure it'll do nothing.
|
36
36
|
*/
|
37
|
-
onFileSelected?: (
|
37
|
+
onFileSelected?: (files: File | File[]) => Promise<any>;
|
38
38
|
/**
|
39
39
|
* Optional display type that controls whether the file input textbox is displayed or
|
40
40
|
* simply a button the user clicks to launch the OS file storage dialog.
|
41
41
|
* Default: file
|
42
42
|
*/
|
43
43
|
displayType?: 'file' | 'button';
|
44
|
+
/**
|
45
|
+
* When display type is set to button this property will control the button label
|
46
|
+
*/
|
47
|
+
buttonLabel?: string;
|
44
48
|
fileInput?: ElementRef;
|
45
49
|
/** Property bound to the file input to filter what file types are shown in the dialog */
|
46
50
|
fileTypeAccept: string | undefined;
|
@@ -75,5 +79,5 @@ export declare class FileUploadComponent extends FormControlBase implements OnIn
|
|
75
79
|
*/
|
76
80
|
private patchFileResult;
|
77
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, 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>;
|
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>;
|
79
83
|
}
|
package/package.json
CHANGED
@@ -41,5 +41,7 @@
|
|
41
41
|
"ClearSelection_TC": "Clear Selection",
|
42
42
|
"ItemPickerNoItemsSelected_SC": "No {{itemName}} selected. Select from the available {{itemName}} list.",
|
43
43
|
"Done_TC": "Done",
|
44
|
-
"LearnMore_SC": "Learn more"
|
44
|
+
"LearnMore_SC": "Learn more",
|
45
|
+
"SelectZipFiles_ELS": "Select ZIP files...",
|
46
|
+
"Browse_TC": "Browse"
|
45
47
|
}
|