@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.
@@ -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?: (file: File) => Promise<any>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.39.4-ECAP-23220-bc-file-upload-dialog.20231218-1520",
3
+ "version": "0.39.4-ECAP-23220-bc-file-upload-dialog.20231219-1515",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -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
  }