@energycap/components 0.39.4-ECAP-23220-bc-file-upload-dialog.20231220-1530 → 0.39.4-ECAP-23219-bills-tree-collapse.20231221-1308
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 +32 -93
- package/esm2020/lib/display/hierarchy/hierarchy-base.mjs +2 -2
- package/esm2020/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.mjs +3 -3
- package/fesm2015/energycap-components.mjs +33 -97
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +30 -89
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/controls/file-upload/file-upload.component.d.ts +2 -19
- package/lib/display/hierarchy/hierarchy-base.d.ts +2 -2
- package/package.json +1 -1
- package/src/assets/locales/en_US.json +1 -3
@@ -34,21 +34,7 @@ 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?: (
|
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';
|
44
|
-
/**
|
45
|
-
* When display type is set to button this property will control the button label
|
46
|
-
*/
|
47
|
-
buttonLabel?: string;
|
48
|
-
/**
|
49
|
-
* Optional property to control whether the user can select multiple files
|
50
|
-
*/
|
51
|
-
multiSelect?: boolean;
|
37
|
+
onFileSelected?: (file: File) => Promise<any>;
|
52
38
|
fileInput?: ElementRef;
|
53
39
|
/** Property bound to the file input to filter what file types are shown in the dialog */
|
54
40
|
fileTypeAccept: string | undefined;
|
@@ -82,9 +68,6 @@ export declare class FileUploadComponent extends FormControlBase implements OnIn
|
|
82
68
|
* @param onFileSelectedResult
|
83
69
|
*/
|
84
70
|
private patchFileResult;
|
85
|
-
private clearFormModel;
|
86
|
-
private handleMultipleFiles;
|
87
|
-
private readFile;
|
88
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ec-file-upload", never, { "placeholder": "placeholder"; "fileType": "fileType"; "fileOutput": "fileOutput"; "customExtensions": "customExtensions"; "onFileSelected": "onFileSelected";
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ec-file-upload", never, { "placeholder": "placeholder"; "fileType": "fileType"; "fileOutput": "fileOutput"; "customExtensions": "customExtensions"; "onFileSelected": "onFileSelected"; }, {}, never, never, false, never>;
|
90
73
|
}
|
@@ -17,8 +17,8 @@ export declare class HierarchyItem implements LinkItem {
|
|
17
17
|
queryParams?: Params | null;
|
18
18
|
queryParamsHandling?: QueryParamsHandling;
|
19
19
|
icon?: string;
|
20
|
-
/** Display item as a link or a
|
21
|
-
display?: 'default' | 'heading';
|
20
|
+
/** Display item as a link, a heading, or with a divider line below it */
|
21
|
+
display?: 'default' | 'heading' | 'divider';
|
22
22
|
/** Set to hide toggle, even if item has children */
|
23
23
|
hideToggle?: boolean;
|
24
24
|
/** Flag to indicate whether the item has children or not, mostly drives
|
package/package.json
CHANGED
@@ -41,7 +41,5 @@
|
|
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"
|
45
|
-
"SelectZipFiles_ELS": "Select ZIP files...",
|
46
|
-
"Browse_TC": "Browse"
|
44
|
+
"LearnMore_SC": "Learn more"
|
47
45
|
}
|