@energycap/components 0.39.3 → 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.
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.39.3",
3
+ "version": "0.39.4-ECAP-23220-bc-file-upload-dialog.20231218-1520",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },