@ieeesa-npm/presentation 0.27.0 → 0.27.2
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/esm2022/lib/assets/constants.json +0 -17
- package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +3 -11
- package/esm2022/lib/components/file-upload/file-upload.component.mjs +4 -26
- package/esm2022/lib/components/list/list.component.mjs +3 -24
- package/esm2022/lib/directives/dynamic-form-field/dynamic-form-field.directive.mjs +2 -14
- package/esm2022/lib/models/delete-file.model.mjs +1 -1
- package/esm2022/lib/models/download-file.model.mjs +1 -1
- package/esm2022/lib/models/file-attachment.model.mjs +1 -1
- package/esm2022/lib/models/file-upload-presigned-url-res.model.mjs +1 -1
- package/esm2022/lib/models/file-upload-response.model.mjs +1 -1
- package/esm2022/lib/models/file-upload-status.model.mjs +1 -1
- package/esm2022/lib/models/list-item.model.mjs +1 -1
- package/esm2022/lib/services/file-upload.service.mjs +2 -11
- package/esm2022/public-api.mjs +1 -3
- package/fesm2022/ieeesa-npm-presentation.mjs +32 -240
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/chips/chips.component.d.ts +0 -15
- package/lib/components/dynamic-form/dynamic-form.component.d.ts +1 -5
- package/lib/components/file-upload/file-upload.component.d.ts +8 -32
- package/lib/components/list/list.component.d.ts +1 -12
- package/lib/directives/dynamic-form-field/dynamic-form-field.directive.d.ts +1 -5
- package/lib/models/delete-file.model.d.ts +5 -3
- package/lib/models/download-file.model.d.ts +1 -1
- package/lib/models/file-attachment.model.d.ts +10 -0
- package/lib/models/file-upload-presigned-url-res.model.d.ts +0 -18
- package/lib/models/file-upload-response.model.d.ts +3 -1
- package/lib/models/file-upload-status.model.d.ts +1 -1
- package/lib/models/list-item.model.d.ts +0 -2
- package/lib/services/file-upload.service.d.ts +9 -26
- package/package.json +1 -1
- package/public-api.d.ts +0 -2
- package/src/lib/assets/constants.json +0 -17
- package/esm2022/lib/components/file-download/file-download.component.mjs +0 -132
- package/esm2022/lib/models/file-download-config.model.mjs +0 -2
- package/lib/components/file-download/file-download.component.d.ts +0 -362
- package/lib/models/file-download-config.model.d.ts +0 -8
|
@@ -300,21 +300,6 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
300
300
|
colorPicker: string;
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
|
-
fileDownload: {
|
|
304
|
-
buttons: {
|
|
305
|
-
id: number;
|
|
306
|
-
ariaLabel: string;
|
|
307
|
-
iconURL: string;
|
|
308
|
-
toolTip: string;
|
|
309
|
-
disabled: boolean;
|
|
310
|
-
}[];
|
|
311
|
-
preSignedDuration: string;
|
|
312
|
-
message: {
|
|
313
|
-
errors: {
|
|
314
|
-
errorReadingFile: string;
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
};
|
|
318
303
|
};
|
|
319
304
|
chipsType: typeof ChipsType;
|
|
320
305
|
orientations: typeof ChipOrientation;
|
|
@@ -15,7 +15,6 @@ import { RadioOption } from '../../models/radio-option.model';
|
|
|
15
15
|
import { IconButton } from '../../models/icon-button.model';
|
|
16
16
|
import { AutoCompleteOption } from '../../models/autocomplete-option.model';
|
|
17
17
|
import { FileUploadStatus } from '../../models/file-upload-status.model';
|
|
18
|
-
import { FileDownloadConfig } from '../../models/file-download-config.model';
|
|
19
18
|
import * as i0 from "@angular/core";
|
|
20
19
|
/**
|
|
21
20
|
* Creates a reactive form dynamically based on the passed form field configuration and handles the form events.
|
|
@@ -61,9 +60,6 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit, A
|
|
|
61
60
|
isLeftButtonNeeded: boolean;
|
|
62
61
|
isRightButtonNeeded: boolean;
|
|
63
62
|
actionButtonAlign: AlignType;
|
|
64
|
-
_fileDownloadConfig: FileDownloadConfig;
|
|
65
|
-
set fileDownloadConfig(value: FileDownloadConfig);
|
|
66
|
-
get fileDownloadConfig(): FileDownloadConfig;
|
|
67
63
|
alignmentType: typeof AlignType;
|
|
68
64
|
formSubmit: EventEmitter<any>;
|
|
69
65
|
formChange: EventEmitter<any>;
|
|
@@ -330,5 +326,5 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit, A
|
|
|
330
326
|
*/
|
|
331
327
|
onCheckboxCTAButtonClick(event: IconButton): void;
|
|
332
328
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
333
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "ieeesa-dynamic-form", ["dynamicForm"], { "formGroups": { "alias": "formGroups"; "required": false; }; "submitResponse": { "alias": "submitResponse"; "required": false; }; "searchResponse": { "alias": "searchResponse"; "required": false; }; "fileUploadStatus": { "alias": "fileUploadStatus"; "required": false; }; "colWidth": { "alias": "colWidth"; "required": false; }; "isLegendVisible": { "alias": "isLegendVisible"; "required": false; }; "rightButtonLabel": { "alias": "rightButtonLabel"; "required": false; }; "leftButtonLabel": { "alias": "leftButtonLabel"; "required": false; }; "isSubmitButtonDisabled": { "alias": "isSubmitButtonDisabled"; "required": false; }; "isLeftButtonDisabled": { "alias": "isLeftButtonDisabled"; "required": false; }; "isLeftButtonNeeded": { "alias": "isLeftButtonNeeded"; "required": false; }; "isRightButtonNeeded": { "alias": "isRightButtonNeeded"; "required": false; }; "actionButtonAlign": { "alias": "actionButtonAlign"; "required": false; };
|
|
329
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "ieeesa-dynamic-form", ["dynamicForm"], { "formGroups": { "alias": "formGroups"; "required": false; }; "submitResponse": { "alias": "submitResponse"; "required": false; }; "searchResponse": { "alias": "searchResponse"; "required": false; }; "fileUploadStatus": { "alias": "fileUploadStatus"; "required": false; }; "colWidth": { "alias": "colWidth"; "required": false; }; "isLegendVisible": { "alias": "isLegendVisible"; "required": false; }; "rightButtonLabel": { "alias": "rightButtonLabel"; "required": false; }; "leftButtonLabel": { "alias": "leftButtonLabel"; "required": false; }; "isSubmitButtonDisabled": { "alias": "isSubmitButtonDisabled"; "required": false; }; "isLeftButtonDisabled": { "alias": "isLeftButtonDisabled"; "required": false; }; "isLeftButtonNeeded": { "alias": "isLeftButtonNeeded"; "required": false; }; "isRightButtonNeeded": { "alias": "isRightButtonNeeded"; "required": false; }; "actionButtonAlign": { "alias": "actionButtonAlign"; "required": false; }; }, { "formSubmit": "formSubmit"; "formChange": "formChange"; "formInput": "formInput"; "formLeftButtonClicked": "formLeftButtonClicked"; "formSearchApply": "formSearchApply"; "formGroupsReference": "formGroupsReference"; "dropdownChange": "dropdownChange"; "formCheckboxSelection": "formCheckboxSelection"; "formDateSelected": "formDateSelected"; "formSelectSearch": "formSelectSearch"; "formControlChange": "formControlChange"; "formAutoCompleteSearch": "formAutoCompleteSearch"; "formAutoCompleteClearSearchValue": "formAutoCompleteClearSearchValue"; "autoCompleteOptionSelected": "autoCompleteOptionSelected"; "formAfterContentInit": "formAfterContentInit"; "formSelectedDateRange": "formSelectedDateRange"; "addFormGroup": "addFormGroup"; "formTimeSelected": "formTimeSelected"; "supportTextLinkClick": "supportTextLinkClick"; "formSlideToggleChange": "formSlideToggleChange"; "formFileUpload": "formFileUpload"; "dropdownOpenedChange": "dropdownOpenedChange"; "formColorPickerChange": "formColorPickerChange"; "formRadioOptionSelected": "formRadioOptionSelected"; "ctaButtonClick": "ctaButtonClick"; "formMultiSelectAutoCompleteSearch": "formMultiSelectAutoCompleteSearch"; "formMultiSelectAutoCompleteClearSearchValue": "formMultiSelectAutoCompleteClearSearchValue"; "multiSelectAutoCompleteOptionsSelected": "multiSelectAutoCompleteOptionsSelected"; "formRichTextEditorContentChange": "formRichTextEditorContentChange"; }, never, ["[component]"], true, never>;
|
|
334
330
|
}
|
|
@@ -7,8 +7,6 @@ import { FileUploadService } from '../../services/file-upload.service';
|
|
|
7
7
|
import { ViewFilesFormat } from '../../models/view-files-format.model';
|
|
8
8
|
import { AlignType } from '../../models/align-type.model';
|
|
9
9
|
import { FileUploadStatus } from '../../models/file-upload-status.model';
|
|
10
|
-
import { FileDownloadConfig } from '../../models/file-download-config.model';
|
|
11
|
-
import { DownloadFile } from '@presentation/models/download-file.model';
|
|
12
10
|
import * as i0 from "@angular/core";
|
|
13
11
|
/**
|
|
14
12
|
* Provides functionality for uploading files to aws s3 bucket.
|
|
@@ -214,15 +212,16 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
214
212
|
colorPicker: string;
|
|
215
213
|
next: string;
|
|
216
214
|
back: string;
|
|
217
|
-
/**
|
|
218
|
-
* Formats allowed file format and size message in required format.
|
|
219
|
-
* @memberof FileUploadComponent
|
|
220
|
-
*/
|
|
221
215
|
select: string;
|
|
222
216
|
cancel: string;
|
|
223
217
|
hexCodeInput: string;
|
|
224
218
|
palette: string;
|
|
225
219
|
};
|
|
220
|
+
/**
|
|
221
|
+
* Handles the selected file(s) and emits FileUpload event emitter for uploading the file(s).
|
|
222
|
+
* @param {(File | FileList)} file
|
|
223
|
+
* @memberof FileUploadComponent
|
|
224
|
+
*/
|
|
226
225
|
defaultColor: string;
|
|
227
226
|
ariaDescription: string;
|
|
228
227
|
ariaDescribedById: string;
|
|
@@ -301,21 +300,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
301
300
|
colorPicker: string;
|
|
302
301
|
};
|
|
303
302
|
};
|
|
304
|
-
fileDownload: {
|
|
305
|
-
buttons: {
|
|
306
|
-
id: number;
|
|
307
|
-
ariaLabel: string;
|
|
308
|
-
iconURL: string;
|
|
309
|
-
toolTip: string;
|
|
310
|
-
disabled: boolean;
|
|
311
|
-
}[];
|
|
312
|
-
preSignedDuration: string;
|
|
313
|
-
message: {
|
|
314
|
-
errors: {
|
|
315
|
-
errorReadingFile: string;
|
|
316
|
-
};
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
303
|
};
|
|
320
304
|
fileUploadLabel: {
|
|
321
305
|
fileUpload: string;
|
|
@@ -389,11 +373,8 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
389
373
|
set fileUploadStatus(value: FileUploadStatus);
|
|
390
374
|
get uploadedSize(): number;
|
|
391
375
|
set uploadedSize(value: number);
|
|
392
|
-
_fileDownloadConfig: FileDownloadConfig;
|
|
393
|
-
set fileDownloadConfig(value: FileDownloadConfig);
|
|
394
|
-
get fileDownloadConfig(): FileDownloadConfig;
|
|
395
376
|
uploadSelectedFiles: EventEmitter<File | FileList>;
|
|
396
|
-
downloadSelectedFile: EventEmitter<File |
|
|
377
|
+
downloadSelectedFile: EventEmitter<File | FileList>;
|
|
397
378
|
constructor(formUtilityService: FormUtilityService, fileUploadService: FileUploadService);
|
|
398
379
|
/**
|
|
399
380
|
* Initializes component properties and retrieves configuration.
|
|
@@ -443,7 +424,7 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
443
424
|
* Emits file download event emitter.
|
|
444
425
|
* @memberof FileUploadComponent
|
|
445
426
|
*/
|
|
446
|
-
downloadFile(
|
|
427
|
+
downloadFile(): void;
|
|
447
428
|
/**
|
|
448
429
|
* Returns unique identifier for the file list.
|
|
449
430
|
* @param {number} index
|
|
@@ -474,11 +455,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
474
455
|
* @memberof FileUploadComponent
|
|
475
456
|
*/
|
|
476
457
|
disableUploadButton(): void;
|
|
477
|
-
/**
|
|
478
|
-
* Based on isMultiFileUpload flag return files to download.
|
|
479
|
-
* @memberof FileUploadComponent
|
|
480
|
-
*/
|
|
481
|
-
getFilesToDownload(): DownloadFile[];
|
|
482
458
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
483
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ieeesa-file-upload", never, { "maxFileSizeErrorMessage": { "alias": "maxFileSizeErrorMessage"; "required": false; }; "actionButtonAlign": { "alias": "actionButtonAlign"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "isFileSelected": { "alias": "isFileSelected"; "required": false; }; "supportMessage": { "alias": "supportMessage"; "required": false; }; "allowedFileTypes": { "alias": "allowedFileTypes"; "required": false; }; "isMultiFileUpload": { "alias": "isMultiFileUpload"; "required": false; }; "isUploadInProgress": { "alias": "isUploadInProgress"; "required": false; }; "fileUploadHeading": { "alias": "fileUploadHeading"; "required": false; }; "isAllowAnyFileType": { "alias": "isAllowAnyFileType"; "required": false; }; "viewFilesFormat": { "alias": "viewFilesFormat"; "required": false; }; "isUploadButtonNeeded": { "alias": "isUploadButtonNeeded"; "required": false; }; "maxUploadFileSize": { "alias": "maxUploadFileSize"; "required": false; }; "fileUploadErrorPosition": { "alias": "fileUploadErrorPosition"; "required": false; }; "maxFilesUploadLimit": { "alias": "maxFilesUploadLimit"; "required": false; }; "maxFilesUploadLimitErrorMessage": { "alias": "maxFilesUploadLimitErrorMessage"; "required": false; }; "fileUploadStatus": { "alias": "fileUploadStatus"; "required": false; }; "uploadedSize": { "alias": "uploadedSize"; "required": false; };
|
|
459
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ieeesa-file-upload", never, { "maxFileSizeErrorMessage": { "alias": "maxFileSizeErrorMessage"; "required": false; }; "actionButtonAlign": { "alias": "actionButtonAlign"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "isFileSelected": { "alias": "isFileSelected"; "required": false; }; "supportMessage": { "alias": "supportMessage"; "required": false; }; "allowedFileTypes": { "alias": "allowedFileTypes"; "required": false; }; "isMultiFileUpload": { "alias": "isMultiFileUpload"; "required": false; }; "isUploadInProgress": { "alias": "isUploadInProgress"; "required": false; }; "fileUploadHeading": { "alias": "fileUploadHeading"; "required": false; }; "isAllowAnyFileType": { "alias": "isAllowAnyFileType"; "required": false; }; "viewFilesFormat": { "alias": "viewFilesFormat"; "required": false; }; "isUploadButtonNeeded": { "alias": "isUploadButtonNeeded"; "required": false; }; "maxUploadFileSize": { "alias": "maxUploadFileSize"; "required": false; }; "fileUploadErrorPosition": { "alias": "fileUploadErrorPosition"; "required": false; }; "maxFilesUploadLimit": { "alias": "maxFilesUploadLimit"; "required": false; }; "maxFilesUploadLimitErrorMessage": { "alias": "maxFilesUploadLimitErrorMessage"; "required": false; }; "fileUploadStatus": { "alias": "fileUploadStatus"; "required": false; }; "uploadedSize": { "alias": "uploadedSize"; "required": false; }; }, { "uploadSelectedFiles": "uploadSelectedFiles"; "downloadSelectedFile": "downloadSelectedFile"; }, never, never, true, never>;
|
|
484
460
|
}
|
|
@@ -2,8 +2,6 @@ import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { ListHeader, ListItem } from '../../models/list-item.model';
|
|
3
3
|
import { Menu } from '../../models/menu.model';
|
|
4
4
|
import { IconButton } from '../../models/icon-button.model';
|
|
5
|
-
import { FileDownloadConfig } from '../../models/file-download-config.model';
|
|
6
|
-
import { DownloadFile } from '../../models/download-file.model';
|
|
7
5
|
import * as i0 from "@angular/core";
|
|
8
6
|
export declare class ListComponent implements OnDestroy {
|
|
9
7
|
elementRef: ElementRef;
|
|
@@ -19,7 +17,6 @@ export declare class ListComponent implements OnDestroy {
|
|
|
19
17
|
set listHeaderConfig(listHeaderDetail: ListHeader);
|
|
20
18
|
get listHeaderConfig(): ListHeader;
|
|
21
19
|
hyperLinkAndButtonClick: EventEmitter<Event>;
|
|
22
|
-
downloadSelectedFile: EventEmitter<File | DownloadFile>;
|
|
23
20
|
constants: any;
|
|
24
21
|
indentation: any;
|
|
25
22
|
addListButton: IconButton;
|
|
@@ -27,9 +24,6 @@ export declare class ListComponent implements OnDestroy {
|
|
|
27
24
|
set addListButtonConfig(addListButton: IconButton);
|
|
28
25
|
get addListButtonConfig(): IconButton;
|
|
29
26
|
domChangeEvent: EventEmitter<MutationRecord>;
|
|
30
|
-
_fileDownloadConfig: FileDownloadConfig;
|
|
31
|
-
set fileDownloadConfig(value: FileDownloadConfig);
|
|
32
|
-
get fileDownloadConfig(): FileDownloadConfig;
|
|
33
27
|
constructor(elementRef: ElementRef);
|
|
34
28
|
/**
|
|
35
29
|
* Emits hyperLinkAndButtonClick event on click of hyper link.
|
|
@@ -70,16 +64,11 @@ export declare class ListComponent implements OnDestroy {
|
|
|
70
64
|
* @memberof ListComponent
|
|
71
65
|
*/
|
|
72
66
|
onDomChange(event: MutationRecord): void;
|
|
73
|
-
/**
|
|
74
|
-
* Emits file download event emitter.
|
|
75
|
-
* @memberof ListComponent
|
|
76
|
-
*/
|
|
77
|
-
downloadFile(file: File | DownloadFile): void;
|
|
78
67
|
/**
|
|
79
68
|
* Removing the event listeners on destroy.
|
|
80
69
|
* @memberof ListComponent
|
|
81
70
|
*/
|
|
82
71
|
ngOnDestroy(): void;
|
|
83
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "ieeesa-list", never, { "listDataItems": { "alias": "listDataItems"; "required": false; }; "listHeaderConfig": { "alias": "listHeaderConfig"; "required": false; }; "indentation": { "alias": "indentation"; "required": false; }; "addListButtonConfig": { "alias": "addListButtonConfig"; "required": false; };
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "ieeesa-list", never, { "listDataItems": { "alias": "listDataItems"; "required": false; }; "listHeaderConfig": { "alias": "listHeaderConfig"; "required": false; }; "indentation": { "alias": "indentation"; "required": false; }; "addListButtonConfig": { "alias": "addListButtonConfig"; "required": false; }; }, { "selectedItemAndAction": "selectedItemAndAction"; "reorderedList": "reorderedList"; "hyperLinkAndButtonClick": "hyperLinkAndButtonClick"; "domChangeEvent": "domChangeEvent"; }, never, never, true, never>;
|
|
85
74
|
}
|
|
@@ -13,7 +13,6 @@ import { RadioOption } from '../../models/radio-option.model';
|
|
|
13
13
|
import { IconButton } from '../../models/icon-button.model';
|
|
14
14
|
import { AutoCompleteOption } from '../../models/autocomplete-option.model';
|
|
15
15
|
import { FileUploadStatus } from '../../models/file-upload-status.model';
|
|
16
|
-
import { FileDownloadConfig } from '../../models/file-download-config.model';
|
|
17
16
|
import * as i0 from "@angular/core";
|
|
18
17
|
/**
|
|
19
18
|
* Provides the implementation of DynamicFormFieldDirective which hosts and creates the form fields components dynamically.
|
|
@@ -43,9 +42,6 @@ export declare class DynamicFormFieldDirective implements FormField, OnInit, OnD
|
|
|
43
42
|
private _fileUploadStatus;
|
|
44
43
|
get fileUploadStatus(): FileUploadStatus;
|
|
45
44
|
set fileUploadStatus(value: FileUploadStatus);
|
|
46
|
-
_fileDownloadConfig: FileDownloadConfig;
|
|
47
|
-
set fileDownloadConfig(value: FileDownloadConfig);
|
|
48
|
-
get fileDownloadConfig(): FileDownloadConfig;
|
|
49
45
|
private _submitResponse;
|
|
50
46
|
/**
|
|
51
47
|
* Sets the submit response of form submit event
|
|
@@ -107,5 +103,5 @@ export declare class DynamicFormFieldDirective implements FormField, OnInit, OnD
|
|
|
107
103
|
*/
|
|
108
104
|
ngOnDestroy(): void;
|
|
109
105
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormFieldDirective, never>;
|
|
110
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicFormFieldDirective, "[ieeesaDynamicFormField]", never, { "config": { "alias": "config"; "required": false; }; "group": { "alias": "group"; "required": false; }; "fileUploadStatus": { "alias": "fileUploadStatus"; "required": false; }; "
|
|
106
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicFormFieldDirective, "[ieeesaDynamicFormField]", never, { "config": { "alias": "config"; "required": false; }; "group": { "alias": "group"; "required": false; }; "fileUploadStatus": { "alias": "fileUploadStatus"; "required": false; }; "submitResponse": { "alias": "submitResponse"; "required": false; }; "searchResponse": { "alias": "searchResponse"; "required": false; }; }, { "formSearchApply": "formSearchApply"; "formDropdownSelected": "formDropdownSelected"; "formDateSelected": "formDateSelected"; "formTimeSelected": "formTimeSelected"; "formSelectedDateRange": "formSelectedDateRange"; "formSelectSearch": "formSelectSearch"; "formAutoCompleteSearch": "formAutoCompleteSearch"; "autoCompleteClearSearchValue": "autoCompleteClearSearchValue"; "autoCompleteOptionSelected": "autoCompleteOptionSelected"; "formCheckboxSelection": "formCheckboxSelection"; "formInputValue": "formInputValue"; "addFormGroup": "addFormGroup"; "supportTextLinkClick": "supportTextLinkClick"; "formSlideToggleChange": "formSlideToggleChange"; "dropdownOpenedChange": "dropdownOpenedChange"; "formColorPickerChange": "formColorPickerChange"; "formFileUpload": "formFileUpload"; "formRadioOptionSelected": "formRadioOptionSelected"; "ctaButtonClick": "ctaButtonClick"; "formMultiSelectAutoCompleteSearch": "formMultiSelectAutoCompleteSearch"; "multiSelectAutoCompleteClearSearchValue": "multiSelectAutoCompleteClearSearchValue"; "multiSelectAutoCompleteOptionsSelected": "multiSelectAutoCompleteOptionsSelected"; "formRichTextEditorContentChange": "formRichTextEditorContentChange"; }, never, never, true, never>;
|
|
111
107
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export interface DeleteFilePayload {
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
}
|
|
4
|
+
export interface DeleteFile {
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
}
|
|
4
8
|
export interface DeleteFileResponse {
|
|
5
9
|
status: boolean;
|
|
6
10
|
message: string;
|
|
7
|
-
body:
|
|
8
|
-
message: string;
|
|
9
|
-
};
|
|
11
|
+
body: DeleteFile;
|
|
10
12
|
}
|
|
@@ -7,3 +7,13 @@ export interface FileAttachment {
|
|
|
7
7
|
export interface FileAttachmentPayload {
|
|
8
8
|
payload: FileAttachment[];
|
|
9
9
|
}
|
|
10
|
+
export interface FileAttachmentResponse {
|
|
11
|
+
status: boolean;
|
|
12
|
+
message: string;
|
|
13
|
+
body: {
|
|
14
|
+
id: string | null;
|
|
15
|
+
name: string | null;
|
|
16
|
+
message: string;
|
|
17
|
+
totalRecords: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -9,24 +9,6 @@ export interface GetFileDownloadPresignedUrlPayload {
|
|
|
9
9
|
domain: string;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
export interface GetFileDownloadPresignedUrlByAttachmentIdPayload {
|
|
13
|
-
payload: {
|
|
14
|
-
attachmentId?: string;
|
|
15
|
-
preSignedDuration: string;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export interface GetFileDownloadPresignedUrlByAttachmentIdResponse {
|
|
19
|
-
status: boolean;
|
|
20
|
-
message: string;
|
|
21
|
-
body: {
|
|
22
|
-
preSignedUrl: string;
|
|
23
|
-
fileName: string;
|
|
24
|
-
s3Path?: string;
|
|
25
|
-
errorMessage?: string;
|
|
26
|
-
} | null | {
|
|
27
|
-
errorCodes: string[];
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
12
|
export interface GetFileUploadPresignedUrlPayload {
|
|
31
13
|
payload: {
|
|
32
14
|
fileName: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconButton } from '../models/icon-button.model';
|
|
2
|
-
import { DownloadFile } from './download-file.model';
|
|
3
2
|
import { Menu } from './menu.model';
|
|
4
3
|
export interface ListItem {
|
|
5
4
|
id: string;
|
|
@@ -14,7 +13,6 @@ export interface ListItem {
|
|
|
14
13
|
itemLevel?: number;
|
|
15
14
|
actionMenus?: Menu[];
|
|
16
15
|
actionIcon?: IconButton;
|
|
17
|
-
attachments?: DownloadFile[];
|
|
18
16
|
}
|
|
19
17
|
export interface ListHeader {
|
|
20
18
|
title: string;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { HttpBackend, HttpClient, HttpEvent } from '@angular/common/http';
|
|
2
2
|
import { OnDestroy } from '@angular/core';
|
|
3
3
|
import { AlertsService, HttpService, LoaderNotificationService } from '@ieeesa-npm/utility';
|
|
4
|
-
import { FileUploadPresignedUrl
|
|
4
|
+
import { FileUploadPresignedUrl } from '../models/file-upload-presigned-url-res.model';
|
|
5
5
|
import { Observable, Subject } from 'rxjs';
|
|
6
6
|
import { FileUploadPayload } from '../models/file-upload-payload-model';
|
|
7
7
|
import { FileUploadBodyResponse, FileUploadResponse } from '../models/file-upload-response.model';
|
|
8
8
|
import { DeleteFileResponse } from '../models/delete-file.model';
|
|
9
|
-
import { DownloadFile } from '../models/download-file.model';
|
|
10
9
|
import * as i0 from "@angular/core";
|
|
11
10
|
/**
|
|
12
11
|
* This service interacts with the server to obtain pre-signed URLs for file upload and uploads files to Amazon S3.
|
|
@@ -191,7 +190,13 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
191
190
|
label: {
|
|
192
191
|
initial: string;
|
|
193
192
|
};
|
|
194
|
-
};
|
|
193
|
+
}; /**
|
|
194
|
+
* Return distinct message for sent, upload progress, & response events.
|
|
195
|
+
* @param {HttpEvent<any>} event
|
|
196
|
+
* @param {(File | FileList)} file
|
|
197
|
+
* @return {*}
|
|
198
|
+
* @memberof FileUploadService
|
|
199
|
+
*/
|
|
195
200
|
loader: {
|
|
196
201
|
ariaLabel: {
|
|
197
202
|
spinner: string;
|
|
@@ -200,13 +205,6 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
200
205
|
defaultWelcomeBgColor: string;
|
|
201
206
|
timePicker: {
|
|
202
207
|
defaultTimeFormat: number;
|
|
203
|
-
/**
|
|
204
|
-
* Return distinct message for sent, upload progress, & response events.
|
|
205
|
-
* @param {HttpEvent<any>} event
|
|
206
|
-
* @param {(File | FileList)} file
|
|
207
|
-
* @return {*}
|
|
208
|
-
* @memberof FileUploadService
|
|
209
|
-
*/
|
|
210
208
|
timePickerIcon: string;
|
|
211
209
|
};
|
|
212
210
|
colorPicker: {
|
|
@@ -301,21 +299,6 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
301
299
|
colorPicker: string;
|
|
302
300
|
};
|
|
303
301
|
};
|
|
304
|
-
fileDownload: {
|
|
305
|
-
buttons: {
|
|
306
|
-
id: number;
|
|
307
|
-
ariaLabel: string;
|
|
308
|
-
iconURL: string;
|
|
309
|
-
toolTip: string;
|
|
310
|
-
disabled: boolean;
|
|
311
|
-
}[];
|
|
312
|
-
preSignedDuration: string;
|
|
313
|
-
message: {
|
|
314
|
-
errors: {
|
|
315
|
-
errorReadingFile: string;
|
|
316
|
-
};
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
302
|
};
|
|
320
303
|
apiBaseUrl: string;
|
|
321
304
|
fileByteArray: Uint8Array | undefined;
|
|
@@ -406,7 +389,7 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
406
389
|
* @return {Observable<string>}
|
|
407
390
|
* @memberof FileUploadService
|
|
408
391
|
*/
|
|
409
|
-
getFileDownloadPresignedUrls(file: File | FileList | string
|
|
392
|
+
getFileDownloadPresignedUrls(file: File | FileList | string, isPublicAPI?: boolean, domainUrl?: string): Observable<string>;
|
|
410
393
|
/**
|
|
411
394
|
* Downloads file to AWS S3 using a presigned URL.
|
|
412
395
|
* @return {Observable<any>}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -34,7 +34,6 @@ export * from './lib/components/slide-toggle/slide-toggle.component';
|
|
|
34
34
|
export * from './lib/components/card/card.component';
|
|
35
35
|
export * from './lib/components/color-picker/color-picker.component';
|
|
36
36
|
export * from './lib/components/file-upload/file-upload.component';
|
|
37
|
-
export * from './lib/components/file-download/file-download.component';
|
|
38
37
|
export * from './lib/components/accordion/accordion.component';
|
|
39
38
|
export * from './lib/components/inactive-tenant/inactive-tenant.component';
|
|
40
39
|
export * from './lib/components/image-preview/image-preview.component';
|
|
@@ -58,7 +57,6 @@ export * from './lib/models/dynamic-properties.model';
|
|
|
58
57
|
export * from './lib/models/event-emit-type.model';
|
|
59
58
|
export * from './lib/models/field-config.model';
|
|
60
59
|
export * from './lib/models/file-attachment.model';
|
|
61
|
-
export * from './lib/models/file-download-config.model';
|
|
62
60
|
export * from './lib/models/footer-config.model';
|
|
63
61
|
export * from './lib/models/form-control-types.model';
|
|
64
62
|
export * from './lib/models/form-field.model';
|
|
@@ -612,22 +612,5 @@
|
|
|
612
612
|
"editor": "Rich text editor.",
|
|
613
613
|
"colorPicker": "Color picker."
|
|
614
614
|
}
|
|
615
|
-
},
|
|
616
|
-
"fileDownload": {
|
|
617
|
-
"buttons": [
|
|
618
|
-
{
|
|
619
|
-
"id": 1,
|
|
620
|
-
"ariaLabel": "File delete icon.",
|
|
621
|
-
"iconURL": "assets/images/sprites/sprites.svg#icon-file-delete",
|
|
622
|
-
"toolTip": "",
|
|
623
|
-
"disabled": false
|
|
624
|
-
}
|
|
625
|
-
],
|
|
626
|
-
"preSignedDuration":"5",
|
|
627
|
-
"message": {
|
|
628
|
-
"errors": {
|
|
629
|
-
"errorReadingFile": "File is damaged or unreadable."
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
615
|
}
|
|
633
616
|
}
|