@ieeesa-npm/presentation 0.27.9 → 0.28.1
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 +3 -3
- package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +1 -1
- package/esm2022/lib/components/file-download/file-download.component.mjs +18 -18
- package/esm2022/lib/components/file-upload/file-upload.component.mjs +4 -4
- package/esm2022/lib/components/list/list.component.mjs +4 -4
- package/esm2022/lib/directives/dynamic-form-field/dynamic-form-field.directive.mjs +2 -2
- package/esm2022/lib/models/file-download-config.model.mjs +1 -1
- package/esm2022/lib/services/file-upload.service.mjs +9 -9
- package/fesm2022/ieeesa-npm-presentation.mjs +35 -35
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/chips/chips.component.d.ts +2 -2
- package/lib/components/dynamic-form/dynamic-form.component.d.ts +1 -1
- package/lib/components/file-download/file-download.component.d.ts +12 -11
- package/lib/components/file-upload/file-upload.component.d.ts +4 -28
- package/lib/components/list/list.component.d.ts +2 -2
- package/lib/directives/dynamic-form-field/dynamic-form-field.directive.d.ts +1 -1
- package/lib/models/file-download-config.model.d.ts +5 -5
- package/lib/services/file-upload.service.d.ts +12 -5
- package/package.json +1 -1
- package/src/lib/assets/constants.json +3 -3
|
@@ -269,7 +269,7 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
269
269
|
}[];
|
|
270
270
|
message: {
|
|
271
271
|
error: {
|
|
272
|
-
|
|
272
|
+
ER1002: string;
|
|
273
273
|
invalidFileFormat: string;
|
|
274
274
|
invalidFileSize: string;
|
|
275
275
|
"2026": string;
|
|
@@ -311,7 +311,7 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
311
311
|
preSignedDuration: string;
|
|
312
312
|
message: {
|
|
313
313
|
errors: {
|
|
314
|
-
|
|
314
|
+
ER1002: string;
|
|
315
315
|
"5038": string;
|
|
316
316
|
"6027": string;
|
|
317
317
|
"6028": string;
|
|
@@ -61,7 +61,7 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit, A
|
|
|
61
61
|
isLeftButtonNeeded: boolean;
|
|
62
62
|
isRightButtonNeeded: boolean;
|
|
63
63
|
actionButtonAlign: AlignType;
|
|
64
|
-
_fileDownloadConfig
|
|
64
|
+
private _fileDownloadConfig;
|
|
65
65
|
set fileDownloadConfig(value: FileDownloadConfig);
|
|
66
66
|
get fileDownloadConfig(): FileDownloadConfig;
|
|
67
67
|
alignmentType: typeof AlignType;
|
|
@@ -132,16 +132,16 @@ export declare class FileDownloadComponent implements OnInit, OnDestroy {
|
|
|
132
132
|
};
|
|
133
133
|
ariaLabel: {
|
|
134
134
|
helpLink: string;
|
|
135
|
-
hamburgerMenu: string;
|
|
136
|
-
|
|
137
|
-
label: {
|
|
138
|
-
signOut: string; /**
|
|
139
|
-
* Removes the selected file from the downloaded files list.
|
|
135
|
+
hamburgerMenu: string; /**
|
|
136
|
+
* Emits deleteSelectedFile event or deletes the selected file by calling deleteFile() if the file can be deleted internally.
|
|
140
137
|
* @param {number} index
|
|
141
138
|
* @param {File } file
|
|
142
139
|
* @memberof FileDownloadedComponent
|
|
143
140
|
*/
|
|
144
141
|
};
|
|
142
|
+
label: {
|
|
143
|
+
signOut: string;
|
|
144
|
+
};
|
|
145
145
|
buttons: {
|
|
146
146
|
id: number;
|
|
147
147
|
iconURL: string;
|
|
@@ -261,7 +261,7 @@ export declare class FileDownloadComponent implements OnInit, OnDestroy {
|
|
|
261
261
|
}[];
|
|
262
262
|
message: {
|
|
263
263
|
error: {
|
|
264
|
-
|
|
264
|
+
ER1002: string;
|
|
265
265
|
invalidFileFormat: string;
|
|
266
266
|
invalidFileSize: string;
|
|
267
267
|
"2026": string;
|
|
@@ -303,7 +303,7 @@ export declare class FileDownloadComponent implements OnInit, OnDestroy {
|
|
|
303
303
|
preSignedDuration: string;
|
|
304
304
|
message: {
|
|
305
305
|
errors: {
|
|
306
|
-
|
|
306
|
+
ER1002: string;
|
|
307
307
|
"5038": string;
|
|
308
308
|
"6027": string;
|
|
309
309
|
"6028": string;
|
|
@@ -335,7 +335,7 @@ export declare class FileDownloadComponent implements OnInit, OnDestroy {
|
|
|
335
335
|
*/
|
|
336
336
|
ngOnInit(): void;
|
|
337
337
|
/**
|
|
338
|
-
* Gets the download AWS pre-signed URL from API on button click or emit the downloadSelectedFile if
|
|
338
|
+
* Gets the download AWS pre-signed URL from API on button click or emit the downloadSelectedFile if canDownloadFileInternally flg is true.
|
|
339
339
|
* @param {File } file
|
|
340
340
|
* @memberof FileDownloadedComponent
|
|
341
341
|
*/
|
|
@@ -346,15 +346,16 @@ export declare class FileDownloadComponent implements OnInit, OnDestroy {
|
|
|
346
346
|
*/
|
|
347
347
|
getFileDownloadPresignedUrls(file: File | DownloadAttachment): void;
|
|
348
348
|
/**
|
|
349
|
-
*
|
|
349
|
+
* Emits deleteSelectedFile event or deletes the selected file by calling deleteFile() if the file can be deleted internally.
|
|
350
350
|
* @param {number} index
|
|
351
351
|
* @param {File } file
|
|
352
352
|
* @memberof FileDownloadedComponent
|
|
353
353
|
*/
|
|
354
354
|
onDeleteFile(file: File | DownloadAttachment, index: number): void;
|
|
355
355
|
/**
|
|
356
|
-
* Deletes file by given agendaAttachmentId
|
|
356
|
+
* Deletes the file by given agendaAttachmentId,index
|
|
357
357
|
* @param {string} agendaAttachmentId
|
|
358
|
+
* @param {number} index
|
|
358
359
|
* @memberof UploadAttachmentsComponent
|
|
359
360
|
*/
|
|
360
361
|
deleteFile(agendaAttachmentId: string, index: number): void;
|
|
@@ -376,7 +377,7 @@ export declare class FileDownloadComponent implements OnInit, OnDestroy {
|
|
|
376
377
|
* @param {string} fileName
|
|
377
378
|
* @memberof FileDownloadComponent
|
|
378
379
|
*/
|
|
379
|
-
|
|
380
|
+
downloadFileFromS3(fileDownloadPresignedUrl: string, fileName: string): void;
|
|
380
381
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileDownloadComponent, never>;
|
|
381
382
|
static ɵcmp: i0.ɵɵComponentDeclaration<FileDownloadComponent, "ieeesa-file-download", never, { "downloadFiles": { "alias": "downloadFiles"; "required": false; }; "fileDownloadConfig": { "alias": "fileDownloadConfig"; "required": false; }; "isPublicAPI": { "alias": "isPublicAPI"; "required": false; }; "domainUrl": { "alias": "domainUrl"; "required": false; }; "apiBaseUrl": { "alias": "apiBaseUrl"; "required": false; }; }, { "downloadSelectedFile": "downloadSelectedFile"; "deleteSelectedFile": "deleteSelectedFile"; }, never, never, true, never>;
|
|
382
383
|
}
|
|
@@ -240,12 +240,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
240
240
|
uploadFor: string;
|
|
241
241
|
uploadErrorMsg: string;
|
|
242
242
|
of: string;
|
|
243
|
-
/**
|
|
244
|
-
* Returns the failed file names with comma separation.
|
|
245
|
-
* @param {string[]} fileNames
|
|
246
|
-
* @return {*} {string}
|
|
247
|
-
* @memberof FileUploadComponent
|
|
248
|
-
*/
|
|
249
243
|
filesUploaded: string;
|
|
250
244
|
fileAlreadyExists: string;
|
|
251
245
|
};
|
|
@@ -272,15 +266,10 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
272
266
|
}[];
|
|
273
267
|
message: {
|
|
274
268
|
error: {
|
|
275
|
-
|
|
269
|
+
ER1002: string;
|
|
276
270
|
invalidFileFormat: string;
|
|
277
271
|
invalidFileSize: string;
|
|
278
272
|
"2026": string;
|
|
279
|
-
/**
|
|
280
|
-
* Enables or disables the file upload button.
|
|
281
|
-
* @param {boolean} enable
|
|
282
|
-
* @memberof FileUploadComponent
|
|
283
|
-
*/
|
|
284
273
|
"2059": string;
|
|
285
274
|
"2060": string;
|
|
286
275
|
"2061": string;
|
|
@@ -299,13 +288,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
299
288
|
search: {
|
|
300
289
|
searchIcon: string;
|
|
301
290
|
};
|
|
302
|
-
/**
|
|
303
|
-
* TrackByFunction is called for each file in the collection and return a unique identifier for that file.
|
|
304
|
-
* @param {number} index
|
|
305
|
-
* @param {File} file
|
|
306
|
-
* @return {File}
|
|
307
|
-
* @memberof FileUploadComponent
|
|
308
|
-
*/
|
|
309
291
|
richTextEditor: {
|
|
310
292
|
label: {
|
|
311
293
|
editor: string;
|
|
@@ -326,7 +308,7 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
326
308
|
preSignedDuration: string;
|
|
327
309
|
message: {
|
|
328
310
|
errors: {
|
|
329
|
-
|
|
311
|
+
ER1002: string;
|
|
330
312
|
"5038": string;
|
|
331
313
|
"6027": string;
|
|
332
314
|
"6028": string;
|
|
@@ -346,12 +328,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
346
328
|
uploadFor: string;
|
|
347
329
|
uploadErrorMsg: string;
|
|
348
330
|
of: string;
|
|
349
|
-
/**
|
|
350
|
-
* Returns the failed file names with comma separation.
|
|
351
|
-
* @param {string[]} fileNames
|
|
352
|
-
* @return {*} {string}
|
|
353
|
-
* @memberof FileUploadComponent
|
|
354
|
-
*/
|
|
355
331
|
filesUploaded: string;
|
|
356
332
|
fileAlreadyExists: string;
|
|
357
333
|
};
|
|
@@ -412,7 +388,7 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
412
388
|
set fileUploadStatus(value: FileUploadStatus);
|
|
413
389
|
get uploadedSize(): number;
|
|
414
390
|
set uploadedSize(value: number);
|
|
415
|
-
_fileDownloadConfig
|
|
391
|
+
private _fileDownloadConfig;
|
|
416
392
|
set fileDownloadConfig(value: FileDownloadConfig);
|
|
417
393
|
get fileDownloadConfig(): FileDownloadConfig;
|
|
418
394
|
uploadSelectedFiles: EventEmitter<File | FileList>;
|
|
@@ -465,7 +441,7 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
465
441
|
*/
|
|
466
442
|
onKeyDown(event: KeyboardEvent): void;
|
|
467
443
|
/**
|
|
468
|
-
* Emits
|
|
444
|
+
* Emits downloadSelectedFile event.
|
|
469
445
|
* @memberof FileUploadComponent
|
|
470
446
|
*/
|
|
471
447
|
downloadFile(file: File | DownloadAttachment): void;
|
|
@@ -27,7 +27,7 @@ export declare class ListComponent implements OnDestroy {
|
|
|
27
27
|
set addListButtonConfig(addListButton: IconButton);
|
|
28
28
|
get addListButtonConfig(): IconButton;
|
|
29
29
|
domChangeEvent: EventEmitter<MutationRecord>;
|
|
30
|
-
_fileDownloadConfig
|
|
30
|
+
private _fileDownloadConfig;
|
|
31
31
|
set fileDownloadConfig(value: FileDownloadConfig);
|
|
32
32
|
get fileDownloadConfig(): FileDownloadConfig;
|
|
33
33
|
constructor(elementRef: ElementRef);
|
|
@@ -71,7 +71,7 @@ export declare class ListComponent implements OnDestroy {
|
|
|
71
71
|
*/
|
|
72
72
|
onDomChange(event: MutationRecord): void;
|
|
73
73
|
/**
|
|
74
|
-
* Emits
|
|
74
|
+
* Emits downloadSelectedFile event.
|
|
75
75
|
* @memberof ListComponent
|
|
76
76
|
*/
|
|
77
77
|
downloadFile(file: File | DownloadAttachment): void;
|
|
@@ -43,7 +43,7 @@ export declare class DynamicFormFieldDirective implements FormField, OnInit, OnD
|
|
|
43
43
|
private _fileUploadStatus;
|
|
44
44
|
get fileUploadStatus(): FileUploadStatus;
|
|
45
45
|
set fileUploadStatus(value: FileUploadStatus);
|
|
46
|
-
_fileDownloadConfig
|
|
46
|
+
private _fileDownloadConfig;
|
|
47
47
|
set fileDownloadConfig(value: FileDownloadConfig);
|
|
48
48
|
get fileDownloadConfig(): FileDownloadConfig;
|
|
49
49
|
private _submitResponse;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface FileDownloadConfig {
|
|
2
|
-
|
|
2
|
+
isDownloadNeeded?: boolean;
|
|
3
3
|
isDeleteNeeded?: boolean;
|
|
4
4
|
isAlignedVertical?: boolean;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
downloadFileAPIUrl?: string;
|
|
6
|
+
deleteFileAPIUrl?: string;
|
|
7
|
+
canDownloadFileInternally?: boolean;
|
|
8
|
+
canDeleteFileInternally?: boolean;
|
|
9
9
|
}
|
|
@@ -208,6 +208,13 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
208
208
|
cancel: string;
|
|
209
209
|
};
|
|
210
210
|
ariaLabel: {
|
|
211
|
+
/**
|
|
212
|
+
* Return distinct message for sent, upload progress, & response events.
|
|
213
|
+
* @param {HttpEvent<any>} event
|
|
214
|
+
* @param {(File | FileList)} file
|
|
215
|
+
* @return {*}
|
|
216
|
+
* @memberof FileUploadService
|
|
217
|
+
*/
|
|
211
218
|
colorPicker: string;
|
|
212
219
|
next: string;
|
|
213
220
|
back: string;
|
|
@@ -263,7 +270,7 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
263
270
|
}[];
|
|
264
271
|
message: {
|
|
265
272
|
error: {
|
|
266
|
-
|
|
273
|
+
ER1002: string;
|
|
267
274
|
invalidFileFormat: string;
|
|
268
275
|
invalidFileSize: string;
|
|
269
276
|
"2026": string;
|
|
@@ -305,7 +312,7 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
305
312
|
preSignedDuration: string;
|
|
306
313
|
message: {
|
|
307
314
|
errors: {
|
|
308
|
-
|
|
315
|
+
ER1002: string;
|
|
309
316
|
"5038": string;
|
|
310
317
|
"6027": string;
|
|
311
318
|
"6028": string;
|
|
@@ -410,7 +417,7 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
410
417
|
* @return {Observable<string>}
|
|
411
418
|
* @memberof FileUploadService
|
|
412
419
|
*/
|
|
413
|
-
getFileDownloadPresignedUrls(file: File | FileList | string | DownloadAttachment, isPublicAPI?: boolean, domainUrl?: string,
|
|
420
|
+
getFileDownloadPresignedUrls(file: File | FileList | string | DownloadAttachment, isPublicAPI?: boolean, domainUrl?: string, presignedApiUrl?: string): Observable<string | GetFileDownloadPresignedUrlByAttachmentIdResponse>;
|
|
414
421
|
/**
|
|
415
422
|
* Downloads file to AWS S3 using a presigned URL.
|
|
416
423
|
* @return {Observable<any>}
|
|
@@ -444,8 +451,8 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
444
451
|
*/
|
|
445
452
|
private getFileExtension;
|
|
446
453
|
/**
|
|
447
|
-
* Delete the file from AWS S3 based on the
|
|
448
|
-
* @param {string}
|
|
454
|
+
* Delete the file from AWS S3 based on the given fileId along with deleteFileApiPath.
|
|
455
|
+
* @param {string} fileId
|
|
449
456
|
* @return {*} {Observable<DeleteFileResponse>}
|
|
450
457
|
* @memberof FileUploadService
|
|
451
458
|
*/
|
package/package.json
CHANGED
|
@@ -582,7 +582,7 @@
|
|
|
582
582
|
],
|
|
583
583
|
"message": {
|
|
584
584
|
"error": {
|
|
585
|
-
"
|
|
585
|
+
"ER1002": "File is damaged or unreadable.",
|
|
586
586
|
"invalidFileFormat": "Invalid file format. Please upload SVG, PNG and JPG file format only.",
|
|
587
587
|
"invalidFileSize": "File size exceeds the maximum limit.",
|
|
588
588
|
"2026": "Invalid file format. Please upload SVG, PNG and JPG file format only.",
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
"buttons": [
|
|
618
618
|
{
|
|
619
619
|
"id": 1,
|
|
620
|
-
"ariaLabel": "
|
|
620
|
+
"ariaLabel": "Delete file.",
|
|
621
621
|
"iconURL": "assets/images/sprites/sprites.svg#icon-file-delete",
|
|
622
622
|
"toolTip": "",
|
|
623
623
|
"disabled": false
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
"preSignedDuration": "5",
|
|
627
627
|
"message": {
|
|
628
628
|
"errors": {
|
|
629
|
-
"
|
|
629
|
+
"ER1002": "File is damaged or unreadable.",
|
|
630
630
|
"5038": "Presigned duration is either null/empty.",
|
|
631
631
|
"6027": "Attachment id is either null/empty.",
|
|
632
632
|
"6028": "Agenda item attachment id does not exist."
|