@ieeesa-npm/presentation 0.33.0 → 1.0.0
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 +13 -561
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +28 -60
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +16 -77
- package/esm2022/lib/components/date-picker/date-picker.component.mjs +10 -27
- package/esm2022/lib/components/date-picker-header/date-picker-header.component.mjs +11 -6
- package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +14 -275
- package/esm2022/lib/components/form-error/form-error.component.mjs +6 -6
- package/esm2022/lib/components/input/input.component.mjs +13 -34
- package/esm2022/lib/components/notification/notification.component.mjs +6 -18
- package/esm2022/lib/components/radio/radio.component.mjs +6 -12
- package/esm2022/lib/components/search/search.component.mjs +10 -62
- package/esm2022/lib/components/select/select.component.mjs +9 -32
- package/esm2022/lib/components/text-area/text-area.component.mjs +7 -65
- package/esm2022/lib/date-formats.mjs +2 -2
- package/esm2022/lib/directives/dynamic-form-field/dynamic-form-field.directive.mjs +5 -206
- package/esm2022/lib/models/checkbox-option.model.mjs +2 -0
- package/esm2022/lib/models/confirmation-modal-data.model.mjs +2 -0
- package/esm2022/lib/models/date-picker.model.mjs +1 -1
- package/esm2022/lib/models/field-config.model.mjs +1 -1
- package/esm2022/lib/models/footer-config.model.mjs +1 -1
- package/esm2022/lib/models/form-control-types.model.mjs +9 -9
- package/esm2022/lib/models/header-config.model.mjs +1 -1
- package/esm2022/lib/models/navigation-menu.model.mjs +1 -1
- package/esm2022/lib/models/select-option.model.mjs +2 -0
- package/esm2022/lib/models/toggle-button.model.mjs +1 -1
- package/esm2022/lib/presentation.module.mjs +5 -5
- package/esm2022/lib/services/datepicker.service.mjs +4 -4
- package/esm2022/lib/services/form-utility.service.mjs +5 -17
- package/esm2022/public-api.mjs +17 -97
- package/fesm2022/ieeesa-npm-presentation.mjs +599 -7589
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/autocomplete/autocomplete.component.d.ts +13 -27
- package/lib/components/checkbox/checkbox.component.d.ts +6 -32
- package/lib/components/date-picker/date-picker.component.d.ts +2 -11
- package/lib/components/dynamic-form/dynamic-form.component.d.ts +11 -157
- package/lib/components/input/input.component.d.ts +2 -9
- package/lib/components/notification/notification.component.d.ts +1 -4
- package/lib/components/radio/radio.component.d.ts +1 -3
- package/lib/components/search/search.component.d.ts +4 -13
- package/lib/components/select/select.component.d.ts +2 -5
- package/lib/components/text-area/text-area.component.d.ts +2 -24
- package/lib/directives/dynamic-form-field/dynamic-form-field.directive.d.ts +3 -36
- package/lib/models/checkbox-option.model.d.ts +6 -0
- package/lib/models/confirmation-modal-data.model.d.ts +5 -0
- package/lib/models/date-picker.model.d.ts +0 -3
- package/lib/models/field-config.model.d.ts +2 -54
- package/lib/models/footer-config.model.d.ts +0 -1
- package/lib/models/form-control-types.model.d.ts +1 -8
- package/lib/models/header-config.model.d.ts +0 -6
- package/lib/models/navigation-menu.model.d.ts +1 -1
- package/lib/models/select-option.model.d.ts +5 -0
- package/lib/models/toggle-button.model.d.ts +0 -4
- package/lib/services/form-utility.service.d.ts +1 -1
- package/package.json +2 -4
- package/public-api.d.ts +16 -95
- package/src/lib/assets/constants.json +13 -561
- package/esm2022/lib/components/accordion/accordion.component.mjs +0 -61
- package/esm2022/lib/components/add-form-group/add-form-group.component.mjs +0 -34
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +0 -129
- package/esm2022/lib/components/card/card.component.mjs +0 -74
- package/esm2022/lib/components/chips/chips.component.mjs +0 -162
- package/esm2022/lib/components/color-picker/color-picker.component.mjs +0 -314
- package/esm2022/lib/components/data-table/data-table.component.mjs +0 -781
- package/esm2022/lib/components/export-format-popover/export-format-popover.component.mjs +0 -75
- package/esm2022/lib/components/export-success-dialog/export-success-dialog.component.mjs +0 -39
- package/esm2022/lib/components/file-download/file-download.component.mjs +0 -176
- package/esm2022/lib/components/file-upload/file-upload.component.mjs +0 -474
- package/esm2022/lib/components/filter/filter.component.mjs +0 -302
- package/esm2022/lib/components/filter-popover/filter-popover.component.mjs +0 -198
- package/esm2022/lib/components/footer/footer.component.mjs +0 -55
- package/esm2022/lib/components/form-support-text/form-support-text.component.mjs +0 -63
- package/esm2022/lib/components/header/header.component.mjs +0 -193
- package/esm2022/lib/components/icon-button/icon-button.component.mjs +0 -38
- package/esm2022/lib/components/image-preview/image-preview.component.mjs +0 -30
- package/esm2022/lib/components/inactive-tenant/inactive-tenant.component.mjs +0 -44
- package/esm2022/lib/components/legend/legend.component.mjs +0 -37
- package/esm2022/lib/components/list/list.component.mjs +0 -199
- package/esm2022/lib/components/loader/loader.component.mjs +0 -22
- package/esm2022/lib/components/menu/menu.component.mjs +0 -75
- package/esm2022/lib/components/modal/modal.component.mjs +0 -166
- package/esm2022/lib/components/modal-confirmation/modal-confirmation.component.mjs +0 -45
- package/esm2022/lib/components/modal-info/modal-info.component.mjs +0 -41
- package/esm2022/lib/components/multi-select-autocomplete/multi-select-autocomplete.component.mjs +0 -321
- package/esm2022/lib/components/navigation-menu/navigation-menu.component.mjs +0 -89
- package/esm2022/lib/components/policy-confirmation-dialog/policy-confirmation-dialog.component.mjs +0 -81
- package/esm2022/lib/components/rich-text-editor/rich-text-editor.component.mjs +0 -214
- package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +0 -98
- package/esm2022/lib/components/stepper/stepper.component.mjs +0 -69
- package/esm2022/lib/components/tabs/tabs.component.mjs +0 -210
- package/esm2022/lib/components/tile/tile.component.mjs +0 -70
- package/esm2022/lib/components/time-picker/time-picker.component.mjs +0 -59
- package/esm2022/lib/components/toggle-button/toggle-button.component.mjs +0 -76
- package/esm2022/lib/components/welcome/welcome.component.mjs +0 -85
- package/esm2022/lib/directives/file-upload/file-upload.directive.mjs +0 -85
- package/esm2022/lib/directives/focus-invalid-form-field/focus-invalid-form-field.directive.mjs +0 -34
- package/esm2022/lib/directives/observe-dom-change/observe-dom-change.directive.mjs +0 -54
- package/esm2022/lib/directives/set-background/set-background.directive.mjs +0 -53
- package/esm2022/lib/directives/text-truncated/text-truncated.directive.mjs +0 -72
- package/esm2022/lib/models/accordion-info.model.mjs +0 -14
- package/esm2022/lib/models/align-browsed-files.model.mjs +0 -7
- package/esm2022/lib/models/allowed-file-types.model.mjs +0 -8
- package/esm2022/lib/models/app-config-info.model.mjs +0 -2
- package/esm2022/lib/models/breadcrumb.model.mjs +0 -2
- package/esm2022/lib/models/button-type.model.mjs +0 -7
- package/esm2022/lib/models/card-button.model.mjs +0 -2
- package/esm2022/lib/models/card-info.model.mjs +0 -2
- package/esm2022/lib/models/chip-option.model.mjs +0 -21
- package/esm2022/lib/models/color-format.model.mjs +0 -13
- package/esm2022/lib/models/custom-properties.model.mjs +0 -14
- package/esm2022/lib/models/download-file.model.mjs +0 -2
- package/esm2022/lib/models/event-emit-type.model.mjs +0 -2
- package/esm2022/lib/models/export-format-popover.model.mjs +0 -10
- package/esm2022/lib/models/export-success-dialog.model.mjs +0 -2
- package/esm2022/lib/models/file-download-config.model.mjs +0 -2
- package/esm2022/lib/models/file-info.model.mjs +0 -2
- package/esm2022/lib/models/file-upload-payload-model.mjs +0 -2
- package/esm2022/lib/models/file-upload-presigned-url-res.model.mjs +0 -2
- package/esm2022/lib/models/file-upload-response.model.mjs +0 -2
- package/esm2022/lib/models/file-upload-status.model.mjs +0 -2
- package/esm2022/lib/models/filter-popover.model.mjs +0 -2
- package/esm2022/lib/models/filters-options.model.mjs +0 -2
- package/esm2022/lib/models/inactive-tenant.model.mjs +0 -2
- package/esm2022/lib/models/input-field-type.model.mjs +0 -8
- package/esm2022/lib/models/legend.model.mjs +0 -2
- package/esm2022/lib/models/link-type.model.mjs +0 -6
- package/esm2022/lib/models/list-item.model.mjs +0 -2
- package/esm2022/lib/models/menu.model.mjs +0 -2
- package/esm2022/lib/models/paginator-config.model.mjs +0 -2
- package/esm2022/lib/models/policy-confirmation-dialog.model.mjs +0 -2
- package/esm2022/lib/models/profile-menu.model.mjs +0 -8
- package/esm2022/lib/models/select-opened-state.model.mjs +0 -2
- package/esm2022/lib/models/selected-date.model.mjs +0 -2
- package/esm2022/lib/models/selected-time.model.mjs +0 -2
- package/esm2022/lib/models/slide-toggle-options.model.mjs +0 -2
- package/esm2022/lib/models/tab.model.mjs +0 -2
- package/esm2022/lib/models/table-actions.model.mjs +0 -2
- package/esm2022/lib/models/table-column-menu-info.model.mjs +0 -2
- package/esm2022/lib/models/table-schema.model.mjs +0 -20
- package/esm2022/lib/models/tile.model.mjs +0 -2
- package/esm2022/lib/pipes/safe.pipe.mjs +0 -44
- package/esm2022/lib/services/break-point-observer.service.mjs +0 -36
- package/esm2022/lib/services/file-upload.service.mjs +0 -378
- package/lib/components/accordion/accordion.component.d.ts +0 -30
- package/lib/components/add-form-group/add-form-group.component.d.ts +0 -19
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +0 -61
- package/lib/components/card/card.component.d.ts +0 -39
- package/lib/components/chips/chips.component.d.ts +0 -374
- package/lib/components/color-picker/color-picker.component.d.ts +0 -88
- package/lib/components/data-table/data-table.component.d.ts +0 -326
- package/lib/components/export-format-popover/export-format-popover.component.d.ts +0 -45
- package/lib/components/export-success-dialog/export-success-dialog.component.d.ts +0 -24
- package/lib/components/file-download/file-download.component.d.ts +0 -383
- package/lib/components/file-upload/file-upload.component.d.ts +0 -522
- package/lib/components/filter/filter.component.d.ts +0 -113
- package/lib/components/filter-popover/filter-popover.component.d.ts +0 -84
- package/lib/components/footer/footer.component.d.ts +0 -37
- package/lib/components/form-support-text/form-support-text.component.d.ts +0 -32
- package/lib/components/header/header.component.d.ts +0 -86
- package/lib/components/icon-button/icon-button.component.d.ts +0 -21
- package/lib/components/image-preview/image-preview.component.d.ts +0 -11
- package/lib/components/inactive-tenant/inactive-tenant.component.d.ts +0 -21
- package/lib/components/legend/legend.component.d.ts +0 -13
- package/lib/components/list/list.component.d.ts +0 -95
- package/lib/components/loader/loader.component.d.ts +0 -7
- package/lib/components/menu/menu.component.d.ts +0 -36
- package/lib/components/modal/modal.component.d.ts +0 -75
- package/lib/components/modal-confirmation/modal-confirmation.component.d.ts +0 -24
- package/lib/components/modal-info/modal-info.component.d.ts +0 -23
- package/lib/components/multi-select-autocomplete/multi-select-autocomplete.component.d.ts +0 -130
- package/lib/components/navigation-menu/navigation-menu.component.d.ts +0 -45
- package/lib/components/policy-confirmation-dialog/policy-confirmation-dialog.component.d.ts +0 -46
- package/lib/components/rich-text-editor/rich-text-editor.component.d.ts +0 -75
- package/lib/components/slide-toggle/slide-toggle.component.d.ts +0 -45
- package/lib/components/stepper/stepper.component.d.ts +0 -46
- package/lib/components/tabs/tabs.component.d.ts +0 -86
- package/lib/components/tile/tile.component.d.ts +0 -39
- package/lib/components/time-picker/time-picker.component.d.ts +0 -20
- package/lib/components/toggle-button/toggle-button.component.d.ts +0 -51
- package/lib/components/welcome/welcome.component.d.ts +0 -41
- package/lib/directives/file-upload/file-upload.directive.d.ts +0 -42
- package/lib/directives/focus-invalid-form-field/focus-invalid-form-field.directive.d.ts +0 -18
- package/lib/directives/observe-dom-change/observe-dom-change.directive.d.ts +0 -23
- package/lib/directives/set-background/set-background.directive.d.ts +0 -28
- package/lib/directives/text-truncated/text-truncated.directive.d.ts +0 -30
- package/lib/models/accordion-info.model.d.ts +0 -12
- package/lib/models/align-browsed-files.model.d.ts +0 -4
- package/lib/models/allowed-file-types.model.d.ts +0 -5
- package/lib/models/app-config-info.model.d.ts +0 -16
- package/lib/models/breadcrumb.model.d.ts +0 -6
- package/lib/models/button-type.model.d.ts +0 -4
- package/lib/models/card-button.model.d.ts +0 -6
- package/lib/models/card-info.model.d.ts +0 -8
- package/lib/models/chip-option.model.d.ts +0 -25
- package/lib/models/color-format.model.d.ts +0 -13
- package/lib/models/custom-properties.model.d.ts +0 -11
- package/lib/models/download-file.model.d.ts +0 -4
- package/lib/models/event-emit-type.model.d.ts +0 -5
- package/lib/models/export-format-popover.model.d.ts +0 -15
- package/lib/models/export-success-dialog.model.d.ts +0 -8
- package/lib/models/file-download-config.model.d.ts +0 -9
- package/lib/models/file-info.model.d.ts +0 -12
- package/lib/models/file-upload-payload-model.d.ts +0 -10
- package/lib/models/file-upload-presigned-url-res.model.d.ts +0 -35
- package/lib/models/file-upload-response.model.d.ts +0 -13
- package/lib/models/file-upload-status.model.d.ts +0 -8
- package/lib/models/filter-popover.model.d.ts +0 -24
- package/lib/models/filters-options.model.d.ts +0 -4
- package/lib/models/inactive-tenant.model.d.ts +0 -5
- package/lib/models/input-field-type.model.d.ts +0 -5
- package/lib/models/legend.model.d.ts +0 -6
- package/lib/models/link-type.model.d.ts +0 -3
- package/lib/models/list-item.model.d.ts +0 -24
- package/lib/models/menu.model.d.ts +0 -9
- package/lib/models/paginator-config.model.d.ts +0 -5
- package/lib/models/policy-confirmation-dialog.model.d.ts +0 -13
- package/lib/models/profile-menu.model.d.ts +0 -4
- package/lib/models/select-opened-state.model.d.ts +0 -4
- package/lib/models/selected-date.model.d.ts +0 -4
- package/lib/models/selected-time.model.d.ts +0 -4
- package/lib/models/slide-toggle-options.model.d.ts +0 -6
- package/lib/models/tab.model.d.ts +0 -6
- package/lib/models/table-actions.model.d.ts +0 -8
- package/lib/models/table-column-menu-info.model.d.ts +0 -6
- package/lib/models/table-schema.model.d.ts +0 -32
- package/lib/models/tile.model.d.ts +0 -12
- package/lib/pipes/safe.pipe.d.ts +0 -16
- package/lib/services/break-point-observer.service.d.ts +0 -21
- package/lib/services/file-upload.service.d.ts +0 -462
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* BreakpointObserver utility service helps us to get the mobile view based on the configured breakpoint.
|
|
6
|
-
* @export
|
|
7
|
-
* @class BreakpointObserverService
|
|
8
|
-
*/
|
|
9
|
-
export declare class BreakpointObserverService {
|
|
10
|
-
private breakpointObserver;
|
|
11
|
-
constants: any;
|
|
12
|
-
constructor(breakpointObserver: BreakpointObserver);
|
|
13
|
-
/**
|
|
14
|
-
* Based on break point max-width it returns the Observable of BreakpointState
|
|
15
|
-
* @return {Observable<BreakpointState>}
|
|
16
|
-
* @memberof BreakpointObserverService
|
|
17
|
-
*/
|
|
18
|
-
getBreakpoint(): Observable<BreakpointState>;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BreakpointObserverService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BreakpointObserverService>;
|
|
21
|
-
}
|
|
@@ -1,462 +0,0 @@
|
|
|
1
|
-
import { HttpBackend, HttpClient, HttpEvent } from '@angular/common/http';
|
|
2
|
-
import { OnDestroy } from '@angular/core';
|
|
3
|
-
import { AlertsService, HttpService, LoaderNotificationService } from '@ieeesa-npm/utility';
|
|
4
|
-
import { FileUploadPresignedUrl, GetFileDownloadPresignedUrlByAttachmentIdResponse } from '../models/file-upload-presigned-url-res.model';
|
|
5
|
-
import { Observable, Subject } from 'rxjs';
|
|
6
|
-
import { FileUploadPayload } from '../models/file-upload-payload-model';
|
|
7
|
-
import { FileAttachmentInfo, GetFileUploadPresignedUrlsResponse } from '../models/file-upload-response.model';
|
|
8
|
-
import { DeleteFileResponse } from '../models/file-info.model';
|
|
9
|
-
import { DownloadAttachment } from '../models/download-file.model';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* This service interacts with the server to obtain pre-signed URLs for file upload and uploads files to Amazon S3.
|
|
13
|
-
* @class FileUploadService
|
|
14
|
-
*/
|
|
15
|
-
export declare class FileUploadService implements OnDestroy {
|
|
16
|
-
httpService: HttpService;
|
|
17
|
-
alertService: AlertsService;
|
|
18
|
-
loaderNotificationService: LoaderNotificationService;
|
|
19
|
-
destroy$: Subject<boolean>;
|
|
20
|
-
constants: {
|
|
21
|
-
ariaLabel: {
|
|
22
|
-
clear: string;
|
|
23
|
-
warning: string;
|
|
24
|
-
previousMonth: string;
|
|
25
|
-
nextMonth: string;
|
|
26
|
-
menuIcon: string;
|
|
27
|
-
close: string;
|
|
28
|
-
search: string;
|
|
29
|
-
addFormGroup: string;
|
|
30
|
-
};
|
|
31
|
-
button: {
|
|
32
|
-
cancel: string;
|
|
33
|
-
ok: string;
|
|
34
|
-
add: string;
|
|
35
|
-
};
|
|
36
|
-
modalConfig: {
|
|
37
|
-
ariaLabel: string;
|
|
38
|
-
autoFocus: string;
|
|
39
|
-
width: string;
|
|
40
|
-
};
|
|
41
|
-
chips: {
|
|
42
|
-
noOfDefaultVisibleChips: number;
|
|
43
|
-
label: {
|
|
44
|
-
viewAll: string;
|
|
45
|
-
viewLess: string;
|
|
46
|
-
};
|
|
47
|
-
ariaLabel: {
|
|
48
|
-
chipsList: string;
|
|
49
|
-
};
|
|
50
|
-
icons: {
|
|
51
|
-
arrow: {
|
|
52
|
-
id: number;
|
|
53
|
-
iconURL: string;
|
|
54
|
-
toolTip: string;
|
|
55
|
-
ariaLabel: string;
|
|
56
|
-
};
|
|
57
|
-
remove: {
|
|
58
|
-
id: number;
|
|
59
|
-
iconURL: string;
|
|
60
|
-
toolTip: string;
|
|
61
|
-
ariaLabel: string;
|
|
62
|
-
};
|
|
63
|
-
check: {
|
|
64
|
-
id: number;
|
|
65
|
-
iconURL: string;
|
|
66
|
-
toolTip: string;
|
|
67
|
-
ariaLabel: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
dataTable: {
|
|
72
|
-
label: {
|
|
73
|
-
clearAll: string;
|
|
74
|
-
};
|
|
75
|
-
message: {
|
|
76
|
-
noRecordFound: string;
|
|
77
|
-
};
|
|
78
|
-
ariaLabel: {
|
|
79
|
-
search: string;
|
|
80
|
-
selectAll: string;
|
|
81
|
-
select: string;
|
|
82
|
-
link: string;
|
|
83
|
-
pagination: string;
|
|
84
|
-
};
|
|
85
|
-
buttons: {
|
|
86
|
-
id: number;
|
|
87
|
-
iconURL: string;
|
|
88
|
-
toolTip: string;
|
|
89
|
-
ariaLabel: string;
|
|
90
|
-
}[];
|
|
91
|
-
};
|
|
92
|
-
datePicker: {
|
|
93
|
-
selectDateLabel: string;
|
|
94
|
-
dateFormatLabel: string;
|
|
95
|
-
startDateLabel: string;
|
|
96
|
-
endDateLabel: string;
|
|
97
|
-
datePickerIcon: string;
|
|
98
|
-
};
|
|
99
|
-
dropdown: {
|
|
100
|
-
placeholderText: string;
|
|
101
|
-
};
|
|
102
|
-
filter: {
|
|
103
|
-
label: {
|
|
104
|
-
filterBy: string;
|
|
105
|
-
applyButton: string;
|
|
106
|
-
clearAll: string;
|
|
107
|
-
};
|
|
108
|
-
buttons: {
|
|
109
|
-
id: number;
|
|
110
|
-
iconURL: string;
|
|
111
|
-
toolTip: string;
|
|
112
|
-
ariaLabel: string;
|
|
113
|
-
}[];
|
|
114
|
-
};
|
|
115
|
-
textarea: {
|
|
116
|
-
maxLengthDefault: number;
|
|
117
|
-
leftCharacters: string;
|
|
118
|
-
};
|
|
119
|
-
autocomplete: {
|
|
120
|
-
minCharToSearch: number;
|
|
121
|
-
debounceTime: number;
|
|
122
|
-
};
|
|
123
|
-
multiSelectAutoComplete: {
|
|
124
|
-
label: {
|
|
125
|
-
clearAll: string;
|
|
126
|
-
};
|
|
127
|
-
ariaLabel: {
|
|
128
|
-
selectedOption: string;
|
|
129
|
-
removeOption: string;
|
|
130
|
-
};
|
|
131
|
-
icons: {
|
|
132
|
-
remove: string;
|
|
133
|
-
clearAll: string;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
header: {
|
|
137
|
-
alt: {
|
|
138
|
-
logo: string;
|
|
139
|
-
};
|
|
140
|
-
ariaLabel: {
|
|
141
|
-
helpLink: string;
|
|
142
|
-
hamburgerMenu: string;
|
|
143
|
-
};
|
|
144
|
-
label: {
|
|
145
|
-
signOut: string;
|
|
146
|
-
};
|
|
147
|
-
buttons: {
|
|
148
|
-
id: number;
|
|
149
|
-
iconURL: string;
|
|
150
|
-
toolTip: string;
|
|
151
|
-
ariaLabel: string;
|
|
152
|
-
}[];
|
|
153
|
-
userProfileMenuOptions: {
|
|
154
|
-
id: number;
|
|
155
|
-
iconURL: string;
|
|
156
|
-
label: string;
|
|
157
|
-
ariaLabel: string;
|
|
158
|
-
toolTip: string;
|
|
159
|
-
isToolTipNeeded: boolean;
|
|
160
|
-
}[];
|
|
161
|
-
errors: {
|
|
162
|
-
"2029": string;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
footer: {
|
|
166
|
-
alt: {
|
|
167
|
-
logo: string;
|
|
168
|
-
};
|
|
169
|
-
links: {
|
|
170
|
-
label: string;
|
|
171
|
-
ariaLabel: string;
|
|
172
|
-
redirectUrl: string;
|
|
173
|
-
}[];
|
|
174
|
-
ieeeLogo: string;
|
|
175
|
-
copyright: {
|
|
176
|
-
link: string;
|
|
177
|
-
textPart1: string;
|
|
178
|
-
textPart2: string;
|
|
179
|
-
hyperLinkPart3: string;
|
|
180
|
-
textPart4: string;
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
welcome: {
|
|
184
|
-
buttons: {
|
|
185
|
-
label: string;
|
|
186
|
-
ariaLabel: string;
|
|
187
|
-
url: string;
|
|
188
|
-
}[];
|
|
189
|
-
};
|
|
190
|
-
breadcrumb: {
|
|
191
|
-
label: {
|
|
192
|
-
initial: string;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
loader: {
|
|
196
|
-
ariaLabel: {
|
|
197
|
-
spinner: string;
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
defaultWelcomeBgColor: string;
|
|
201
|
-
timePicker: {
|
|
202
|
-
defaultTimeFormat: number;
|
|
203
|
-
timePickerIcon: string;
|
|
204
|
-
};
|
|
205
|
-
colorPicker: {
|
|
206
|
-
label: {
|
|
207
|
-
select: string;
|
|
208
|
-
cancel: string;
|
|
209
|
-
};
|
|
210
|
-
ariaLabel: {
|
|
211
|
-
colorPicker: string;
|
|
212
|
-
next: string;
|
|
213
|
-
back: string;
|
|
214
|
-
select: string;
|
|
215
|
-
cancel: string;
|
|
216
|
-
hexCodeInput: string;
|
|
217
|
-
palette: string;
|
|
218
|
-
};
|
|
219
|
-
defaultColor: string;
|
|
220
|
-
ariaDescription: string;
|
|
221
|
-
ariaDescribedById: string;
|
|
222
|
-
paletteColors: {
|
|
223
|
-
name: string;
|
|
224
|
-
hexCode: string;
|
|
225
|
-
}[];
|
|
226
|
-
};
|
|
227
|
-
fileUpload: {
|
|
228
|
-
label: {
|
|
229
|
-
fileUpload: string;
|
|
230
|
-
allowedFileSize1: string;
|
|
231
|
-
allowedFileSize2: string;
|
|
232
|
-
allowedFileFormat: string;
|
|
233
|
-
browseFiles: string;
|
|
234
|
-
uploadProgress: string;
|
|
235
|
-
upload: string;
|
|
236
|
-
mb: string;
|
|
237
|
-
uploadFor: string;
|
|
238
|
-
uploadErrorMsg: string;
|
|
239
|
-
of: string;
|
|
240
|
-
filesUploaded: string;
|
|
241
|
-
fileAlreadyExists: string;
|
|
242
|
-
};
|
|
243
|
-
ariaLabel: {
|
|
244
|
-
fileUpload: string;
|
|
245
|
-
browseFiles: string;
|
|
246
|
-
fileUploadIcon: string;
|
|
247
|
-
removeFileIcon: string;
|
|
248
|
-
deleteFileIcon: string;
|
|
249
|
-
fileDownload: string;
|
|
250
|
-
fileUploadInput: string;
|
|
251
|
-
};
|
|
252
|
-
iconUrl: {
|
|
253
|
-
fileUploadIcon: string;
|
|
254
|
-
fileRemoveIcon: string;
|
|
255
|
-
deleteIcon: string;
|
|
256
|
-
};
|
|
257
|
-
buttons: {
|
|
258
|
-
id: number;
|
|
259
|
-
ariaLabel: string;
|
|
260
|
-
iconURL: string;
|
|
261
|
-
toolTip: string;
|
|
262
|
-
disabled: boolean;
|
|
263
|
-
}[];
|
|
264
|
-
message: {
|
|
265
|
-
error: {
|
|
266
|
-
ER1002: string;
|
|
267
|
-
invalidFileFormat: string;
|
|
268
|
-
invalidFileSize: string;
|
|
269
|
-
"2026": string;
|
|
270
|
-
"2059": string;
|
|
271
|
-
"2060": string;
|
|
272
|
-
"2061": string;
|
|
273
|
-
"2062": string;
|
|
274
|
-
"2063": string;
|
|
275
|
-
"2064": string;
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
limit: {
|
|
279
|
-
maxFilesUploadedOnce: number;
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
list: {
|
|
283
|
-
defaultIndentation: number;
|
|
284
|
-
dragAndDropIconUrl: string;
|
|
285
|
-
};
|
|
286
|
-
search: {
|
|
287
|
-
minCharToSearch: number;
|
|
288
|
-
searchIcon: string;
|
|
289
|
-
};
|
|
290
|
-
richTextEditor: {
|
|
291
|
-
label: {
|
|
292
|
-
editor: string;
|
|
293
|
-
};
|
|
294
|
-
ariaLabel: {
|
|
295
|
-
editor: string;
|
|
296
|
-
colorPicker: string;
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
fileDownload: {
|
|
300
|
-
buttons: {
|
|
301
|
-
id: number;
|
|
302
|
-
ariaLabel: string;
|
|
303
|
-
iconURL: string;
|
|
304
|
-
toolTip: string;
|
|
305
|
-
disabled: boolean;
|
|
306
|
-
}[];
|
|
307
|
-
preSignedDuration: string;
|
|
308
|
-
message: {
|
|
309
|
-
errors: {
|
|
310
|
-
ER1002: string;
|
|
311
|
-
"5038": string;
|
|
312
|
-
"6027": string;
|
|
313
|
-
"6028": string;
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
breakPointMaxWidth: string;
|
|
318
|
-
};
|
|
319
|
-
apiBaseUrl: string;
|
|
320
|
-
fileByteArray: Uint8Array | undefined;
|
|
321
|
-
httpClient: HttpClient;
|
|
322
|
-
isFileUploading: boolean;
|
|
323
|
-
filesNameOfUploadFailed: string[];
|
|
324
|
-
noOfFilesUploadedSuccessfully: number;
|
|
325
|
-
uploadedFileName: string;
|
|
326
|
-
constructor(httpService: HttpService, handler: HttpBackend, alertService: AlertsService, loaderNotificationService: LoaderNotificationService);
|
|
327
|
-
/**
|
|
328
|
-
* Sets the base URL for API requests.
|
|
329
|
-
* @param {string} apiBaseUrl -API base URL.
|
|
330
|
-
* @memberof FileUploadService
|
|
331
|
-
*/
|
|
332
|
-
setApiBaseUrl(apiBaseUrl: string): void;
|
|
333
|
-
/**
|
|
334
|
-
* Gets API base URL for API requests.
|
|
335
|
-
* @return {*} {string}
|
|
336
|
-
* @memberof FileUploadService
|
|
337
|
-
*/
|
|
338
|
-
getApiBaseUrl(): string;
|
|
339
|
-
/**
|
|
340
|
-
* Retrieves presigned URL for uploading files to Amazon S3 bucket.
|
|
341
|
-
* @param {(File | FileList)} file
|
|
342
|
-
* @return {Observable<FileUploadPresignedUrl>}
|
|
343
|
-
* @memberof FileUploadService
|
|
344
|
-
*/
|
|
345
|
-
getFileUploadPresignedUrl(file: File | FileList, appId: string): Observable<FileUploadPresignedUrl>;
|
|
346
|
-
/**
|
|
347
|
-
* Gets pre-signed URL for the files to be uploaded in S3 bucket
|
|
348
|
-
* @param {FileUploadPayload} fileUploadPayload
|
|
349
|
-
* @param {string} fileUploadAPIPath
|
|
350
|
-
* @return {Observable<GetFileUploadPresignedUrlsResponse>}
|
|
351
|
-
* @memberof FileUploadService
|
|
352
|
-
*/
|
|
353
|
-
getPreSignedURL(fileUploadPayload: FileUploadPayload, fileUploadAPIPath: string): Observable<GetFileUploadPresignedUrlsResponse>;
|
|
354
|
-
/**
|
|
355
|
-
* Uploads file to AWS S3 using a pre-signed URL.
|
|
356
|
-
* @param {string} preSignedUrl
|
|
357
|
-
* @param files
|
|
358
|
-
* @param isMultipleFileUpload
|
|
359
|
-
* @return {Observable<any>} -Returns an observable that emits the response after uploading the file to S3.
|
|
360
|
-
* @memberof FileUploadService
|
|
361
|
-
*/
|
|
362
|
-
uploadFileToS3(preSignedUrl: FileAttachmentInfo[] | string, files: File | FileList, isMultipleFileUpload?: boolean): Observable<any>;
|
|
363
|
-
/**
|
|
364
|
-
* Makes http call to AWS to upload file in S3 bucket
|
|
365
|
-
* @param {string} preSignedUrl
|
|
366
|
-
* @param {File} file
|
|
367
|
-
* @param {string} fileType
|
|
368
|
-
* @param {number} fileSize
|
|
369
|
-
* @return {*} {Observable<any>}
|
|
370
|
-
* @memberof FileUploadService
|
|
371
|
-
*/
|
|
372
|
-
httpCallToAWS(preSignedUrl: string, file: File, fileType: string, fileSize: number): Observable<any>;
|
|
373
|
-
/**
|
|
374
|
-
* Gets file upload progress.
|
|
375
|
-
* @param {*} message
|
|
376
|
-
* @memberof FileUploadService
|
|
377
|
-
*/
|
|
378
|
-
showProgress(message: any): void;
|
|
379
|
-
/**
|
|
380
|
-
* Return distinct message for sent, upload progress, & response events.
|
|
381
|
-
* @param {HttpEvent<any>} event
|
|
382
|
-
* @param {(File | FileList)} file
|
|
383
|
-
* @return {*}
|
|
384
|
-
* @memberof FileUploadService
|
|
385
|
-
*/
|
|
386
|
-
getEventMessage(event: HttpEvent<any>, file: File): string | boolean;
|
|
387
|
-
/**
|
|
388
|
-
* Converts file to byte array.
|
|
389
|
-
* @param {File} file
|
|
390
|
-
* @memberof FileUploadService
|
|
391
|
-
*/
|
|
392
|
-
convertFileToByteArray(file: File): void;
|
|
393
|
-
/**
|
|
394
|
-
* Resets file byte array format to undefined.
|
|
395
|
-
* @memberof FileUploadService
|
|
396
|
-
*/
|
|
397
|
-
clearFileByteArray(): void;
|
|
398
|
-
/**
|
|
399
|
-
* Sets file upload status.
|
|
400
|
-
* @param {boolean} status
|
|
401
|
-
* @memberof FileUploadService
|
|
402
|
-
*/
|
|
403
|
-
setFileUploadStatus(status: boolean): void;
|
|
404
|
-
/**
|
|
405
|
-
* Returns file upload status.
|
|
406
|
-
* @return {boolean}
|
|
407
|
-
* @memberof FileUploadService
|
|
408
|
-
*/
|
|
409
|
-
getFileUploadStatus(): boolean;
|
|
410
|
-
/**
|
|
411
|
-
* Retrieves presigned URL for downloading files to Amazon S3 bucket.
|
|
412
|
-
* @param {(File | FileList)} file
|
|
413
|
-
* @return {Observable<string>}
|
|
414
|
-
* @memberof FileUploadService
|
|
415
|
-
*/
|
|
416
|
-
getFileDownloadPresignedUrls(file: File | FileList | string | DownloadAttachment, isPublicAPI?: boolean, domainUrl?: string, presignedApiUrl?: string): Observable<string | GetFileDownloadPresignedUrlByAttachmentIdResponse>;
|
|
417
|
-
/**
|
|
418
|
-
* Downloads file to AWS S3 using a presigned URL.
|
|
419
|
-
* @return {Observable<any>}
|
|
420
|
-
* @memberof FileUploadService
|
|
421
|
-
*/
|
|
422
|
-
downloadFile(fileDownloadPresignedUrl: string): Observable<any>;
|
|
423
|
-
/**
|
|
424
|
-
* Validates the total size of the files uploaded.
|
|
425
|
-
* @param {(File | FileList)} files -The files to be validated.
|
|
426
|
-
* @param {number} maxFileSize
|
|
427
|
-
* @param {boolean} isMultiFileUpload
|
|
428
|
-
* @return {boolean} -Returns true if the total size of files is within the specified limit, otherwise false.
|
|
429
|
-
* @memberof FileUploadService
|
|
430
|
-
*/
|
|
431
|
-
validateFileSize(files: File | FileList, maxFileSize: number, isMultiFileUpload: boolean): boolean;
|
|
432
|
-
/**
|
|
433
|
-
* Validates the file types of the uploaded files.
|
|
434
|
-
* @param {(File | FileList)} files
|
|
435
|
-
* @param {string[]} allowedFileTypes
|
|
436
|
-
* @param {boolean} isMultiFileUpload
|
|
437
|
-
* @return {boolean} -Returns true if all files have valid extensions, otherwise false.
|
|
438
|
-
* @memberof FileUploadService
|
|
439
|
-
*/
|
|
440
|
-
validateFileTypes(files: File | FileList, allowedFileTypes: string[], isMultiFileUpload: boolean): boolean;
|
|
441
|
-
/**
|
|
442
|
-
* Extracts and returns the extension of a file from its name.
|
|
443
|
-
* @private
|
|
444
|
-
* @param {string} fileName
|
|
445
|
-
* @return {string} -The file extension in lowercase.
|
|
446
|
-
* @memberof FileUploadService
|
|
447
|
-
*/
|
|
448
|
-
private getFileExtension;
|
|
449
|
-
/**
|
|
450
|
-
* Delete the file from AWS S3 based on the given fileId along with deleteFileApiPath.
|
|
451
|
-
* @return {Observable<DeleteFileResponse>}
|
|
452
|
-
* @memberof FileUploadService
|
|
453
|
-
*/
|
|
454
|
-
deleteFile(deleteFileApiPath: string): Observable<DeleteFileResponse>;
|
|
455
|
-
/**
|
|
456
|
-
* Implementation of ngOnDestroy lifecycle hook method to unsubscribe the open observable subscriptions.
|
|
457
|
-
* @memberof FileUploadService
|
|
458
|
-
*/
|
|
459
|
-
ngOnDestroy(): void;
|
|
460
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadService, never>;
|
|
461
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FileUploadService>;
|
|
462
|
-
}
|