@ieeesa-npm/presentation 0.25.6 → 0.25.7
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 +1 -10
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/lib/components/color-picker/color-picker.component.mjs +2 -2
- package/esm2022/lib/components/date-picker/date-picker.component.mjs +3 -3
- package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +8 -37
- package/esm2022/lib/components/file-upload/file-upload.component.mjs +9 -124
- package/esm2022/lib/components/form-error/form-error.component.mjs +3 -3
- package/esm2022/lib/components/input/input.component.mjs +3 -3
- package/esm2022/lib/components/multi-select-autocomplete/multi-select-autocomplete.component.mjs +3 -3
- package/esm2022/lib/components/notification/notification.component.mjs +3 -3
- package/esm2022/lib/components/radio/radio.component.mjs +3 -3
- package/esm2022/lib/components/select/select.component.mjs +3 -3
- package/esm2022/lib/components/tabs/tabs.component.mjs +3 -8
- package/esm2022/lib/components/text-area/text-area.component.mjs +3 -3
- package/esm2022/lib/components/time-picker/time-picker.component.mjs +3 -3
- package/esm2022/lib/directives/dynamic-form-field/dynamic-form-field.directive.mjs +2 -29
- package/esm2022/lib/models/field-config.model.mjs +1 -1
- package/esm2022/lib/models/tab.model.mjs +1 -1
- package/esm2022/lib/services/file-upload.service.mjs +29 -93
- package/esm2022/public-api.mjs +1 -7
- package/fesm2022/ieeesa-npm-presentation.mjs +78 -332
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/chips/chips.component.d.ts +0 -9
- package/lib/components/dynamic-form/dynamic-form.component.d.ts +5 -18
- package/lib/components/file-upload/file-upload.component.d.ts +5 -56
- package/lib/components/tabs/tabs.component.d.ts +1 -2
- package/lib/directives/dynamic-form-field/dynamic-form-field.directive.d.ts +2 -8
- package/lib/directives/file-upload/file-upload.directive.d.ts +1 -1
- package/lib/models/field-config.model.d.ts +0 -9
- package/lib/models/tab.model.d.ts +0 -1
- package/lib/services/file-upload.service.d.ts +11 -45
- package/package.json +1 -1
- package/public-api.d.ts +0 -6
- package/src/lib/assets/constants.json +1 -10
- package/esm2022/lib/models/delete-file.model.mjs +0 -2
- package/esm2022/lib/models/file-attachment.model.mjs +0 -2
- package/esm2022/lib/models/file-upload-payload-model.mjs +0 -2
- package/esm2022/lib/models/file-upload-response.model.mjs +0 -2
- package/esm2022/lib/models/view-files-format.model.mjs +0 -7
- package/lib/models/delete-file.model.d.ts +0 -10
- package/lib/models/file-attachment.model.d.ts +0 -9
- package/lib/models/file-upload-payload-model.d.ts +0 -3
- package/lib/models/file-upload-response.model.d.ts +0 -10
- package/lib/models/view-files-format.model.d.ts +0 -4
|
@@ -238,12 +238,6 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
238
238
|
allowedFileFormat: string;
|
|
239
239
|
browseFiles: string;
|
|
240
240
|
uploadProgress: string;
|
|
241
|
-
upload: string;
|
|
242
|
-
mb: string;
|
|
243
|
-
uploadFor: string;
|
|
244
|
-
uploadErrorMsg: string;
|
|
245
|
-
of: string;
|
|
246
|
-
filesUploaded: string;
|
|
247
241
|
};
|
|
248
242
|
ariaLabel: {
|
|
249
243
|
fileUpload: string;
|
|
@@ -280,9 +274,6 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
280
274
|
"2064": string;
|
|
281
275
|
};
|
|
282
276
|
};
|
|
283
|
-
limit: {
|
|
284
|
-
maxFileUpload: number;
|
|
285
|
-
};
|
|
286
277
|
};
|
|
287
278
|
list: {
|
|
288
279
|
defaultIndentation: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterContentInit,
|
|
1
|
+
import { AfterContentInit, EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { FormArray, FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { FormModel } from '../../models/form.model';
|
|
4
4
|
import { FieldConfig } from '../../models/field-config.model';
|
|
@@ -22,9 +22,8 @@ import * as i0 from "@angular/core";
|
|
|
22
22
|
* @implements {OnInit}
|
|
23
23
|
* @implements {AfterContentInit}
|
|
24
24
|
*/
|
|
25
|
-
export declare class DynamicFormComponent implements OnInit, AfterContentInit
|
|
25
|
+
export declare class DynamicFormComponent implements OnInit, AfterContentInit {
|
|
26
26
|
private fb;
|
|
27
|
-
private elementRef;
|
|
28
27
|
formFields: QueryList<DynamicFormFieldDirective>;
|
|
29
28
|
private _formGroups;
|
|
30
29
|
/**
|
|
@@ -47,12 +46,6 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit, A
|
|
|
47
46
|
*/
|
|
48
47
|
set searchResponse(value: any);
|
|
49
48
|
get searchResponse(): any;
|
|
50
|
-
private _filesNamesUploadFailed;
|
|
51
|
-
get filesNamesUploadFailed(): string[];
|
|
52
|
-
set filesNamesUploadFailed(value: string[]);
|
|
53
|
-
private _filesUploadedSuccessfullyCount;
|
|
54
|
-
get filesUploadedSuccessfullyCount(): number;
|
|
55
|
-
set filesUploadedSuccessfullyCount(value: number);
|
|
56
49
|
colWidth: FormGrid;
|
|
57
50
|
isLegendVisible: boolean;
|
|
58
51
|
rightButtonLabel: string;
|
|
@@ -60,7 +53,6 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit, A
|
|
|
60
53
|
isSubmitButtonDisabled: boolean;
|
|
61
54
|
isLeftButtonDisabled: boolean;
|
|
62
55
|
isLeftButtonNeeded: boolean;
|
|
63
|
-
isRightButtonNeeded: boolean;
|
|
64
56
|
actionButtonAlign: AlignType;
|
|
65
57
|
alignmentType: typeof AlignType;
|
|
66
58
|
formSubmit: EventEmitter<any>;
|
|
@@ -89,7 +81,7 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit, A
|
|
|
89
81
|
formTimeSelected: EventEmitter<SelectedTime>;
|
|
90
82
|
supportTextLinkClick: EventEmitter<LinkEventEmitType>;
|
|
91
83
|
formSlideToggleChange: EventEmitter<SlideToggleOption>;
|
|
92
|
-
formFileUpload: EventEmitter<
|
|
84
|
+
formFileUpload: EventEmitter<File | FileList>;
|
|
93
85
|
dropdownOpenedChange: EventEmitter<SelectOpenedState>;
|
|
94
86
|
formColorPickerChange: EventEmitter<string>;
|
|
95
87
|
formRadioOptionSelected: EventEmitter<RadioOption>;
|
|
@@ -102,7 +94,7 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit, A
|
|
|
102
94
|
formGroupArray: FormGroup[];
|
|
103
95
|
formControlArray: any[];
|
|
104
96
|
legendsArray: string[];
|
|
105
|
-
constructor(fb: FormBuilder
|
|
97
|
+
constructor(fb: FormBuilder);
|
|
106
98
|
/**
|
|
107
99
|
* Implementation of ngOnInit lifecycle hook method to create form group
|
|
108
100
|
* @memberof DynamicFormComponent
|
|
@@ -113,11 +105,6 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit, A
|
|
|
113
105
|
* @memberof DynamicFormComponent
|
|
114
106
|
*/
|
|
115
107
|
ngAfterContentInit(): void;
|
|
116
|
-
/**
|
|
117
|
-
* Sets the focus to the first field.
|
|
118
|
-
* @memberof DynamicFormComponent
|
|
119
|
-
*/
|
|
120
|
-
ngAfterViewInit(): void;
|
|
121
108
|
/**
|
|
122
109
|
* Creates form group on the basis of formGroups configuration input
|
|
123
110
|
* @return {void}
|
|
@@ -328,5 +315,5 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit, A
|
|
|
328
315
|
*/
|
|
329
316
|
onCheckboxCTAButtonClick(event: IconButton): void;
|
|
330
317
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
331
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "ieeesa-dynamic-form", ["dynamicForm"], { "formGroups": { "alias": "formGroups"; "required": false; }; "submitResponse": { "alias": "submitResponse"; "required": false; }; "searchResponse": { "alias": "searchResponse"; "required": false; }; "
|
|
318
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "ieeesa-dynamic-form", ["dynamicForm"], { "formGroups": { "alias": "formGroups"; "required": false; }; "submitResponse": { "alias": "submitResponse"; "required": false; }; "searchResponse": { "alias": "searchResponse"; "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; }; "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>;
|
|
332
319
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { FormUtilityService } from '../../services/form-utility.service';
|
|
4
4
|
import { FieldConfig } from '../../models/field-config.model';
|
|
5
5
|
import { AllowedFileTypes } from '../../models/allowed-file-types.model';
|
|
6
6
|
import { FileUploadService } from '../../services/file-upload.service';
|
|
7
|
-
import { ViewFilesFormat } from '../../models/view-files-format.model';
|
|
8
|
-
import { AlignType } from '../../models/align-type.model';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
8
|
/**
|
|
11
9
|
* Provides functionality for uploading files to aws s3 bucket.
|
|
@@ -16,7 +14,6 @@ import * as i0 from "@angular/core";
|
|
|
16
14
|
export declare class FileUploadComponent implements OnInit {
|
|
17
15
|
formUtilityService: FormUtilityService;
|
|
18
16
|
fileUploadService: FileUploadService;
|
|
19
|
-
fileField: ElementRef;
|
|
20
17
|
constants: {
|
|
21
18
|
ariaLabel: {
|
|
22
19
|
clear: string;
|
|
@@ -232,12 +229,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
232
229
|
allowedFileFormat: string;
|
|
233
230
|
browseFiles: string;
|
|
234
231
|
uploadProgress: string;
|
|
235
|
-
upload: string;
|
|
236
|
-
mb: string;
|
|
237
|
-
uploadFor: string;
|
|
238
|
-
uploadErrorMsg: string;
|
|
239
|
-
of: string;
|
|
240
|
-
filesUploaded: string;
|
|
241
232
|
};
|
|
242
233
|
ariaLabel: {
|
|
243
234
|
fileUpload: string;
|
|
@@ -274,9 +265,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
274
265
|
"2064": string;
|
|
275
266
|
};
|
|
276
267
|
};
|
|
277
|
-
limit: {
|
|
278
|
-
maxFileUpload: number;
|
|
279
|
-
};
|
|
280
268
|
};
|
|
281
269
|
list: {
|
|
282
270
|
defaultIndentation: number;
|
|
@@ -301,12 +289,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
301
289
|
allowedFileFormat: string;
|
|
302
290
|
browseFiles: string;
|
|
303
291
|
uploadProgress: string;
|
|
304
|
-
upload: string;
|
|
305
|
-
mb: string;
|
|
306
|
-
uploadFor: string;
|
|
307
|
-
uploadErrorMsg: string;
|
|
308
|
-
of: string;
|
|
309
|
-
filesUploaded: string;
|
|
310
292
|
};
|
|
311
293
|
fileUploadAriaLabel: {
|
|
312
294
|
fileUpload: string;
|
|
@@ -336,14 +318,11 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
336
318
|
group: FormGroup;
|
|
337
319
|
isValidFileType: boolean;
|
|
338
320
|
isValidFileSize: boolean;
|
|
339
|
-
isValidMaxFileUploadLimit: boolean;
|
|
340
321
|
selectedFiles: FileList | File | any;
|
|
341
322
|
selectedFileNames: string;
|
|
342
323
|
isFormField: boolean;
|
|
343
324
|
totalSize: number;
|
|
344
325
|
uploadedFiles: FileList | File | any;
|
|
345
|
-
actionButtonAlign: AlignType;
|
|
346
|
-
alignmentType: typeof AlignType;
|
|
347
326
|
formControlName: string;
|
|
348
327
|
isFileSelected: boolean;
|
|
349
328
|
supportMessage: string;
|
|
@@ -351,24 +330,12 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
351
330
|
isMultiFileUpload: boolean;
|
|
352
331
|
isUploadInProgress: boolean;
|
|
353
332
|
fileUploadHeading: string;
|
|
354
|
-
isAllowAnyFileType: boolean;
|
|
355
|
-
viewFilesFormat: ViewFilesFormat;
|
|
356
|
-
isUploadButtonNeeded: boolean;
|
|
357
333
|
maxUploadFileSize: number;
|
|
358
334
|
private uploadedSizeValue;
|
|
359
|
-
fileUploadErrorPosition: string;
|
|
360
|
-
maxFilesUploadLimit: number;
|
|
361
|
-
maxFilesUploadLimitErrorMessage: string;
|
|
362
|
-
private _filesNamesUploadFailed;
|
|
363
|
-
get filesNamesUploadFailed(): string[];
|
|
364
|
-
set filesNamesUploadFailed(value: string[]);
|
|
365
|
-
private _filesUploadedSuccessfullyCount;
|
|
366
|
-
get filesUploadedSuccessfullyCount(): number;
|
|
367
|
-
set filesUploadedSuccessfullyCount(value: number);
|
|
368
335
|
get uploadedSize(): number;
|
|
369
336
|
set uploadedSize(value: number);
|
|
370
|
-
uploadSelectedFiles: EventEmitter<
|
|
371
|
-
downloadSelectedFile: EventEmitter<
|
|
337
|
+
uploadSelectedFiles: EventEmitter<File | FileList>;
|
|
338
|
+
downloadSelectedFile: EventEmitter<File | FileList>;
|
|
372
339
|
constructor(formUtilityService: FormUtilityService, fileUploadService: FileUploadService);
|
|
373
340
|
/**
|
|
374
341
|
* Initializes component properties and retrieves configuration.
|
|
@@ -381,7 +348,7 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
381
348
|
*/
|
|
382
349
|
getAllowedFileFormatSizeMessage(): void;
|
|
383
350
|
/**
|
|
384
|
-
* Handles the selected file(s) and emits FileUpload event emitter for uploading the file(s).
|
|
351
|
+
* Handles the selected of file(s) and emits FileUpload event emitter for uploading the file(s).
|
|
385
352
|
* @param {(File | FileList)} file
|
|
386
353
|
* @memberof FileUploadComponent
|
|
387
354
|
*/
|
|
@@ -426,24 +393,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
426
393
|
* @memberof FileUploadComponent
|
|
427
394
|
*/
|
|
428
395
|
trackByFn(index: number): number | string;
|
|
429
|
-
/**
|
|
430
|
-
* Triggers on browse element clicked
|
|
431
|
-
* @memberof FileUploadComponent
|
|
432
|
-
*/
|
|
433
|
-
fileClick(): void;
|
|
434
|
-
/**
|
|
435
|
-
* Display comma separated failed file names
|
|
436
|
-
* @param {string[]} filesNamesUploadFailed
|
|
437
|
-
* @return {*} {string}
|
|
438
|
-
* @memberof FileUploadComponent
|
|
439
|
-
*/
|
|
440
|
-
displayFailedFileNames(filesNamesUploadFailed: string[]): string;
|
|
441
|
-
/**
|
|
442
|
-
* Removes file from respective properties used.
|
|
443
|
-
* @param {number} index
|
|
444
|
-
* @memberof FileUploadComponent
|
|
445
|
-
*/
|
|
446
|
-
removeFile(index: number): void;
|
|
447
396
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
448
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ieeesa-file-upload", never, { "
|
|
397
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ieeesa-file-upload", never, { "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; }; "maxUploadFileSize": { "alias": "maxUploadFileSize"; "required": false; }; "uploadedSize": { "alias": "uploadedSize"; "required": false; }; }, { "uploadSelectedFiles": "uploadSelectedFiles"; "downloadSelectedFile": "downloadSelectedFile"; }, never, never, true, never>;
|
|
449
398
|
}
|
|
@@ -28,7 +28,6 @@ export declare class TabsComponent implements OnInit, OnDestroy {
|
|
|
28
28
|
constants: any;
|
|
29
29
|
modalConfigTexts: any;
|
|
30
30
|
isViewOnly: string | boolean;
|
|
31
|
-
isMemberOfGroup: string | boolean;
|
|
32
31
|
eventId: string;
|
|
33
32
|
meetingId: string;
|
|
34
33
|
actionType: any;
|
|
@@ -74,5 +73,5 @@ export declare class TabsComponent implements OnInit, OnDestroy {
|
|
|
74
73
|
*/
|
|
75
74
|
ngOnDestroy(): void;
|
|
76
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "ieeesa-tabs", never, { "selectedTabIndex": { "alias": "selectedTabIndex"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "isFormChanged": { "alias": "isFormChanged"; "required": false; }; "confirmationModalConfig": { "alias": "confirmationModalConfig"; "required": false; }; "isViewOnly": { "alias": "isViewOnly"; "required": false; }; "
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "ieeesa-tabs", never, { "selectedTabIndex": { "alias": "selectedTabIndex"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "isFormChanged": { "alias": "isFormChanged"; "required": false; }; "confirmationModalConfig": { "alias": "confirmationModalConfig"; "required": false; }; "isViewOnly": { "alias": "isViewOnly"; "required": false; }; "eventId": { "alias": "eventId"; "required": false; }; "meetingId": { "alias": "meetingId"; "required": false; }; "actionType": { "alias": "actionType"; "required": false; }; "routePaths": { "alias": "routePaths"; "required": false; }; "apiBaseURL": { "alias": "apiBaseURL"; "required": false; }; "userPermissions": { "alias": "userPermissions"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; }, never, never, true, never>;
|
|
78
77
|
}
|
|
@@ -38,12 +38,6 @@ export declare class DynamicFormFieldDirective implements FormField, OnInit, OnD
|
|
|
38
38
|
*/
|
|
39
39
|
set group(value: FormGroup);
|
|
40
40
|
get group(): FormGroup;
|
|
41
|
-
private _filesUploadedSuccessfullyCount;
|
|
42
|
-
get filesUploadedSuccessfullyCount(): number;
|
|
43
|
-
set filesUploadedSuccessfullyCount(value: number);
|
|
44
|
-
private _filesNamesUploadFailed;
|
|
45
|
-
get filesNamesUploadFailed(): string[];
|
|
46
|
-
set filesNamesUploadFailed(value: string[]);
|
|
47
41
|
private _submitResponse;
|
|
48
42
|
/**
|
|
49
43
|
* Sets the submit response of form submit event
|
|
@@ -80,7 +74,7 @@ export declare class DynamicFormFieldDirective implements FormField, OnInit, OnD
|
|
|
80
74
|
formSlideToggleChange: EventEmitter<SlideToggleOption>;
|
|
81
75
|
dropdownOpenedChange: EventEmitter<SelectOpenedState>;
|
|
82
76
|
formColorPickerChange: EventEmitter<string>;
|
|
83
|
-
formFileUpload: EventEmitter<
|
|
77
|
+
formFileUpload: EventEmitter<File | FileList>;
|
|
84
78
|
formRadioOptionSelected: EventEmitter<RadioOption>;
|
|
85
79
|
ctaButtonClick: EventEmitter<IconButton>;
|
|
86
80
|
formMultiSelectAutoCompleteSearch: EventEmitter<string>;
|
|
@@ -105,5 +99,5 @@ export declare class DynamicFormFieldDirective implements FormField, OnInit, OnD
|
|
|
105
99
|
*/
|
|
106
100
|
ngOnDestroy(): void;
|
|
107
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormFieldDirective, never>;
|
|
108
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicFormFieldDirective, "[ieeesaDynamicFormField]", never, { "config": { "alias": "config"; "required": false; }; "group": { "alias": "group"; "required": false; }; "
|
|
102
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicFormFieldDirective, "[ieeesaDynamicFormField]", never, { "config": { "alias": "config"; "required": false; }; "group": { "alias": "group"; "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>;
|
|
109
103
|
}
|
|
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
export declare class FileUploadDirective {
|
|
9
9
|
allowedFileTypes: string[];
|
|
10
10
|
isMultiFileUpload: boolean;
|
|
11
|
-
fileDropped: EventEmitter<
|
|
11
|
+
fileDropped: EventEmitter<File | FileList>;
|
|
12
12
|
/**
|
|
13
13
|
* Binds the 'multiple' attribute based on the value of allowMultiple property.
|
|
14
14
|
* @readonly
|
|
@@ -10,8 +10,6 @@ import { SlideToggleOption } from './slide-toggle-options.model';
|
|
|
10
10
|
import { ColorFormat, ColorsAnimation } from './color-format.model';
|
|
11
11
|
import { AllowedFileTypes } from './allowed-file-types.model';
|
|
12
12
|
import { EditorConfig } from 'ngx-simple-text-editor';
|
|
13
|
-
import { ViewFilesFormat } from './view-files-format.model';
|
|
14
|
-
import { AlignType } from './align-type.model';
|
|
15
13
|
export interface FieldConfig {
|
|
16
14
|
isSortNeeded?: boolean;
|
|
17
15
|
disabled?: boolean;
|
|
@@ -86,11 +84,4 @@ export interface FieldConfig {
|
|
|
86
84
|
canHideTextInput?: boolean;
|
|
87
85
|
multiSelectAutoCompleteOptions?: AutoCompleteOption[];
|
|
88
86
|
editorConfig?: EditorConfig;
|
|
89
|
-
isAllowAnyFileType?: boolean;
|
|
90
|
-
viewFilesFormat?: ViewFilesFormat;
|
|
91
|
-
isUploadButtonNeeded?: boolean;
|
|
92
|
-
actionButtonAlign?: AlignType;
|
|
93
|
-
fileUploadErrorPosition?: string;
|
|
94
|
-
maxFilesUploadLimit?: number;
|
|
95
|
-
maxFilesUploadLimitErrorMessage?: string;
|
|
96
87
|
}
|
|
@@ -3,9 +3,6 @@ import { OnDestroy } from '@angular/core';
|
|
|
3
3
|
import { AlertsService, HttpService, LoaderNotificationService } from '@ieeesa-npm/utility';
|
|
4
4
|
import { FileUploadPresignedUrl } from '../models/file-upload-presigned-url-res.model';
|
|
5
5
|
import { Observable, Subject } from 'rxjs';
|
|
6
|
-
import { FileUploadPayload } from '../models/file-upload-payload-model';
|
|
7
|
-
import { FileUploadBodyResponse, FileUploadResponse } from '../models/file-upload-response.model';
|
|
8
|
-
import { DeleteFileResponse } from '../models/delete-file.model';
|
|
9
6
|
import * as i0 from "@angular/core";
|
|
10
7
|
/**
|
|
11
8
|
* This service interacts with the server to obtain pre-signed URLs for file upload and uploads files to Amazon S3.
|
|
@@ -195,7 +192,12 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
195
192
|
ariaLabel: {
|
|
196
193
|
spinner: string;
|
|
197
194
|
};
|
|
198
|
-
};
|
|
195
|
+
}; /**
|
|
196
|
+
* Retrieves presigned URL for downloading files to Amazon S3 bucket.
|
|
197
|
+
* @param {(File | FileList)} file
|
|
198
|
+
* @return {Observable<string>}
|
|
199
|
+
* @memberof FileUploadService
|
|
200
|
+
*/
|
|
199
201
|
defaultWelcomeBgColor: string;
|
|
200
202
|
timePicker: {
|
|
201
203
|
defaultTimeFormat: number;
|
|
@@ -231,12 +233,6 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
231
233
|
allowedFileFormat: string;
|
|
232
234
|
browseFiles: string;
|
|
233
235
|
uploadProgress: string;
|
|
234
|
-
upload: string;
|
|
235
|
-
mb: string;
|
|
236
|
-
uploadFor: string;
|
|
237
|
-
uploadErrorMsg: string;
|
|
238
|
-
of: string;
|
|
239
|
-
filesUploaded: string;
|
|
240
236
|
};
|
|
241
237
|
ariaLabel: {
|
|
242
238
|
fileUpload: string;
|
|
@@ -273,9 +269,6 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
273
269
|
"2064": string;
|
|
274
270
|
};
|
|
275
271
|
};
|
|
276
|
-
limit: {
|
|
277
|
-
maxFileUpload: number;
|
|
278
|
-
};
|
|
279
272
|
};
|
|
280
273
|
list: {
|
|
281
274
|
defaultIndentation: number;
|
|
@@ -297,9 +290,6 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
297
290
|
fileByteArray: Uint8Array | undefined;
|
|
298
291
|
httpClient: HttpClient;
|
|
299
292
|
isFileUploading: boolean;
|
|
300
|
-
filesNamesUploadFailed: string[];
|
|
301
|
-
filesUploadedSuccessfullyCount: number;
|
|
302
|
-
uploadedFileName: string;
|
|
303
293
|
constructor(httpService: HttpService, handler: HttpBackend, alertService: AlertsService, loaderNotificationService: LoaderNotificationService);
|
|
304
294
|
/**
|
|
305
295
|
* Sets the base URL for API requests.
|
|
@@ -315,30 +305,13 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
315
305
|
*/
|
|
316
306
|
getFileUploadPresignedUrl(file: File | FileList, appId: string): Observable<FileUploadPresignedUrl>;
|
|
317
307
|
/**
|
|
318
|
-
*
|
|
319
|
-
* @param
|
|
320
|
-
* @param
|
|
321
|
-
*/
|
|
322
|
-
getPreSignedURL(fileUploadPayload: FileUploadPayload, fileUploadAPIPath?: string): Observable<FileUploadResponse>;
|
|
323
|
-
/**
|
|
324
|
-
* Uploads file to AWS S3 using a pre-signed URL.
|
|
325
|
-
* @param {string} preSignedUrl
|
|
326
|
-
* @param files
|
|
327
|
-
* @param isMultipleFileUpload
|
|
308
|
+
* Uploads file to AWS S3 using a presigned URL.
|
|
309
|
+
* @param {string} presignedUrl
|
|
310
|
+
* @param {(File | FileList)} file
|
|
328
311
|
* @return {Observable<any>} -Returns an observable that emits the response after uploading the file to S3.
|
|
329
312
|
* @memberof FileUploadService
|
|
330
313
|
*/
|
|
331
|
-
uploadFileToS3(
|
|
332
|
-
/**
|
|
333
|
-
* Makes http call to AWS to upload file in S3 bucket
|
|
334
|
-
* @param {string} preSignedUrl
|
|
335
|
-
* @param {File} file
|
|
336
|
-
* @param {string} fileType
|
|
337
|
-
* @param {number} fileSize
|
|
338
|
-
* @return {*} {Observable<any>}
|
|
339
|
-
* @memberof FileUploadService
|
|
340
|
-
*/
|
|
341
|
-
httpCallToAWS(preSignedUrl: string, file: File, fileType: string, fileSize: number): Observable<any>;
|
|
314
|
+
uploadFileToS3(presignedUrl: string, file: File | FileList): Observable<any>;
|
|
342
315
|
/**
|
|
343
316
|
* Gets file upload progress.
|
|
344
317
|
* @param {*} message
|
|
@@ -352,7 +325,7 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
352
325
|
* @return {*}
|
|
353
326
|
* @memberof FileUploadService
|
|
354
327
|
*/
|
|
355
|
-
getEventMessage(event: HttpEvent<any>, file: File): string |
|
|
328
|
+
getEventMessage(event: HttpEvent<any>, file: File | FileList): string | true;
|
|
356
329
|
/**
|
|
357
330
|
* Converts file to byte array.
|
|
358
331
|
* @param {File} file
|
|
@@ -415,13 +388,6 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
415
388
|
* @memberof FileUploadService
|
|
416
389
|
*/
|
|
417
390
|
private getFileExtension;
|
|
418
|
-
/**
|
|
419
|
-
* Deletes file by given fileId
|
|
420
|
-
* @param {string} fileId
|
|
421
|
-
* @return {*} {Observable<DeleteFileResponse>}
|
|
422
|
-
* @memberof FileUploadService
|
|
423
|
-
*/
|
|
424
|
-
deleteFile(deleteFileApiPath: string): Observable<DeleteFileResponse>;
|
|
425
391
|
/**
|
|
426
392
|
* Implementation of ngOnDestroy lifecycle hook method to unsubscribe the open observable subscriptions.
|
|
427
393
|
* @memberof FileUploadService
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -51,10 +51,8 @@ export * from './lib/models/calendar.model';
|
|
|
51
51
|
export * from './lib/models/checkbox-option.model';
|
|
52
52
|
export * from './lib/models/confirmation-modal-data.model';
|
|
53
53
|
export * from './lib/models/date-picker.model';
|
|
54
|
-
export * from './lib/models/delete-file.model';
|
|
55
54
|
export * from './lib/models/event-emit-type.model';
|
|
56
55
|
export * from './lib/models/field-config.model';
|
|
57
|
-
export * from './lib/models/file-attachment.model';
|
|
58
56
|
export * from './lib/models/footer-config.model';
|
|
59
57
|
export * from './lib/models/form-control-types.model';
|
|
60
58
|
export * from './lib/models/form-field.model';
|
|
@@ -81,7 +79,6 @@ export * from './lib/models/table-actions.model';
|
|
|
81
79
|
export * from './lib/models/table-schema.model';
|
|
82
80
|
export * from './lib/models/breadcrumb.model';
|
|
83
81
|
export * from './lib/models/tile.model';
|
|
84
|
-
export * from './lib/models/file-upload-response.model';
|
|
85
82
|
export * from './lib/models/filters-options.model';
|
|
86
83
|
export * from './lib/models/profile-menu.model';
|
|
87
84
|
export * from './lib/models/slide-toggle-options.model';
|
|
@@ -90,13 +87,10 @@ export * from './lib/models/card-button.model';
|
|
|
90
87
|
export * from './lib/models/card-info.model';
|
|
91
88
|
export * from './lib/models/color-format.model';
|
|
92
89
|
export * from './lib/models/allowed-file-types.model';
|
|
93
|
-
export * from './lib/models/file-upload-payload-model';
|
|
94
90
|
export * from './lib/models/file-upload-presigned-url-res.model';
|
|
95
|
-
export * from './lib/models/file-upload-response.model';
|
|
96
91
|
export * from './lib/models/accordion-info.model';
|
|
97
92
|
export * from './lib/models/inactive-tenant.model';
|
|
98
93
|
export * from './lib/models/table-column-menu-info.model';
|
|
99
|
-
export * from './lib/models/view-files-format.model';
|
|
100
94
|
export * from './lib/services/datepicker.service';
|
|
101
95
|
export * from './lib/services/form-utility.service';
|
|
102
96
|
export * from './lib/services/file-upload.service';
|
|
@@ -548,13 +548,7 @@
|
|
|
548
548
|
"allowedFileSize2": "mb only;",
|
|
549
549
|
"allowedFileFormat": "Allowed file format(s): ",
|
|
550
550
|
"browseFiles": "Browse Files",
|
|
551
|
-
"uploadProgress": "Uploading... please wait"
|
|
552
|
-
"upload": "Upload",
|
|
553
|
-
"mb": "MB",
|
|
554
|
-
"uploadFor": "Upload for",
|
|
555
|
-
"uploadErrorMsg": "could not be completed. Please try again",
|
|
556
|
-
"of": "of",
|
|
557
|
-
"filesUploaded": "files Uploaded"
|
|
551
|
+
"uploadProgress": "Uploading... please wait"
|
|
558
552
|
},
|
|
559
553
|
"ariaLabel": {
|
|
560
554
|
"fileUpload": "Drag and Drop your files here or Click 'Browse Files'.",
|
|
@@ -592,9 +586,6 @@
|
|
|
592
586
|
"2063": "File Name is required.",
|
|
593
587
|
"2064": "Application Id or Domain is required."
|
|
594
588
|
}
|
|
595
|
-
},
|
|
596
|
-
"limit": {
|
|
597
|
-
"maxFileUpload": 5
|
|
598
589
|
}
|
|
599
590
|
},
|
|
600
591
|
"list": {
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLWZpbGUubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcmVzZW50YXRpb24vc3JjL2xpYi9tb2RlbHMvZGVsZXRlLWZpbGUubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgRGVsZXRlRmlsZVBheWxvYWQge1xyXG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tZXhwbGljaXQtYW55XHJcbiAgW2tleTogc3RyaW5nXTogYW55O1xyXG59XHJcbmV4cG9ydCBpbnRlcmZhY2UgRGVsZXRlRmlsZVJlc3BvbnNlIHtcclxuICBzdGF0dXM6IGJvb2xlYW47XHJcbiAgbWVzc2FnZTogc3RyaW5nO1xyXG4gIGJvZHk6IHtcclxuICAgIG1lc3NhZ2U6IHN0cmluZztcclxuICB9O1xyXG59XHJcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1hdHRhY2htZW50Lm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcHJlc2VudGF0aW9uL3NyYy9saWIvbW9kZWxzL2ZpbGUtYXR0YWNobWVudC5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBGaWxlQXR0YWNobWVudCB7XHJcbiAgYWdlbmRhSXRlbUlkOiBzdHJpbmc7XHJcbiAgYWdlbmRhSWQ6IHN0cmluZztcclxuICBzM0ZpbGVQYXRoOiBzdHJpbmc7XHJcbiAgZmlsZU5hbWU6IHN0cmluZztcclxufVxyXG5leHBvcnQgaW50ZXJmYWNlIEZpbGVBdHRhY2htZW50UGF5bG9hZCB7XHJcbiAgcGF5bG9hZDogRmlsZUF0dGFjaG1lbnRbXTtcclxufVxyXG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQtcGF5bG9hZC1tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ByZXNlbnRhdGlvbi9zcmMvbGliL21vZGVscy9maWxlLXVwbG9hZC1wYXlsb2FkLW1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIEZpbGVVcGxvYWRQYXlsb2FkIHtcclxuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLWV4cGxpY2l0LWFueVxyXG4gIFtrZXk6IHN0cmluZ106IGFueTtcclxufVxyXG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQtcmVzcG9uc2UubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcmVzZW50YXRpb24vc3JjL2xpYi9tb2RlbHMvZmlsZS11cGxvYWQtcmVzcG9uc2UubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgRmlsZVVwbG9hZEJvZHlSZXNwb25zZSB7XHJcbiAgZmlsZU5hbWU6IHN0cmluZztcclxuICBwcmVTaWduZWRVcmw6IHN0cmluZztcclxuICBzM1BhdGg6IHN0cmluZztcclxufVxyXG5cclxuZXhwb3J0IGludGVyZmFjZSBGaWxlVXBsb2FkUmVzcG9uc2Uge1xyXG4gIHN0YXR1czogYm9vbGVhbjtcclxuICBib2R5OiBGaWxlVXBsb2FkQm9keVJlc3BvbnNlW107XHJcbiAgbWVzc2FnZTogc3RyaW5nO1xyXG59XHJcbiJdfQ==
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
|
2
|
-
export var ViewFilesFormat;
|
|
3
|
-
(function (ViewFilesFormat) {
|
|
4
|
-
ViewFilesFormat["DEFAULT"] = "default";
|
|
5
|
-
ViewFilesFormat["BOTTOM"] = "bottom";
|
|
6
|
-
})(ViewFilesFormat || (ViewFilesFormat = {}));
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy1maWxlcy1mb3JtYXQubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcmVzZW50YXRpb24vc3JjL2xpYi9tb2RlbHMvdmlldy1maWxlcy1mb3JtYXQubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsbUNBQW1DO0FBQ25DLE1BQU0sQ0FBTixJQUFZLGVBR1g7QUFIRCxXQUFZLGVBQWU7SUFDekIsc0NBQW1CLENBQUE7SUFDbkIsb0NBQWlCLENBQUE7QUFDbkIsQ0FBQyxFQUhXLGVBQWUsS0FBZixlQUFlLFFBRzFCIiwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbm8tdW51c2VkLXZhcnMgKi9cclxuZXhwb3J0IGVudW0gVmlld0ZpbGVzRm9ybWF0IHtcclxuICBERUZBVUxUID0gJ2RlZmF1bHQnLFxyXG4gIEJPVFRPTSA9ICdib3R0b20nLFxyXG59XHJcbiJdfQ==
|