@ieeesa-npm/presentation 0.27.1 → 0.27.3

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.
@@ -312,6 +312,9 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
312
312
  message: {
313
313
  errors: {
314
314
  errorReadingFile: string;
315
+ "5038": string;
316
+ "6027": string;
317
+ "6028": string;
315
318
  };
316
319
  };
317
320
  };
@@ -91,7 +91,7 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit, A
91
91
  formTimeSelected: EventEmitter<SelectedTime>;
92
92
  supportTextLinkClick: EventEmitter<LinkEventEmitType>;
93
93
  formSlideToggleChange: EventEmitter<SlideToggleOption>;
94
- formFileUpload: EventEmitter<FileList | File>;
94
+ formFileUpload: EventEmitter<File | FileList>;
95
95
  dropdownOpenedChange: EventEmitter<SelectOpenedState>;
96
96
  formColorPickerChange: EventEmitter<string>;
97
97
  formRadioOptionSelected: EventEmitter<RadioOption>;
@@ -299,6 +299,9 @@ export declare class FileDownloadComponent implements OnDestroy {
299
299
  message: {
300
300
  errors: {
301
301
  errorReadingFile: string;
302
+ "5038": string;
303
+ "6027": string;
304
+ "6028": string;
302
305
  };
303
306
  };
304
307
  };
@@ -309,6 +309,9 @@ export declare class FileUploadComponent implements OnInit {
309
309
  message: {
310
310
  errors: {
311
311
  errorReadingFile: string;
312
+ "5038": string;
313
+ "6027": string;
314
+ "6028": string;
312
315
  };
313
316
  };
314
317
  };
@@ -388,7 +391,7 @@ export declare class FileUploadComponent implements OnInit {
388
391
  _fileDownloadConfig: FileDownloadConfig;
389
392
  set fileDownloadConfig(value: FileDownloadConfig);
390
393
  get fileDownloadConfig(): FileDownloadConfig;
391
- uploadSelectedFiles: EventEmitter<FileList | File>;
394
+ uploadSelectedFiles: EventEmitter<File | FileList>;
392
395
  downloadSelectedFile: EventEmitter<File | DownloadFile>;
393
396
  constructor(formUtilityService: FormUtilityService, fileUploadService: FileUploadService);
394
397
  /**
@@ -82,7 +82,7 @@ export declare class DynamicFormFieldDirective implements FormField, OnInit, OnD
82
82
  formSlideToggleChange: EventEmitter<SlideToggleOption>;
83
83
  dropdownOpenedChange: EventEmitter<SelectOpenedState>;
84
84
  formColorPickerChange: EventEmitter<string>;
85
- formFileUpload: EventEmitter<FileList | File>;
85
+ formFileUpload: EventEmitter<File | FileList>;
86
86
  formRadioOptionSelected: EventEmitter<RadioOption>;
87
87
  ctaButtonClick: EventEmitter<IconButton>;
88
88
  formMultiSelectAutoCompleteSearch: EventEmitter<string>;
@@ -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<FileList | File>;
11
+ fileDropped: EventEmitter<File | FileList>;
12
12
  /**
13
13
  * Binds the 'multiple' attribute based on the value of allowMultiple property.
14
14
  * @readonly
@@ -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
+ }
@@ -6,6 +6,8 @@ export interface FileUploadBodyResponse {
6
6
  }
7
7
  export interface FileUploadResponse {
8
8
  status: boolean;
9
- body: FileUploadBodyResponse[];
9
+ body: FileUploadBodyResponse[] | {
10
+ errorCodes: string[];
11
+ };
10
12
  message: string;
11
13
  }
@@ -258,6 +258,12 @@ export declare class FileUploadService implements OnDestroy {
258
258
  };
259
259
  iconUrl: {
260
260
  fileUploadIcon: string;
261
+ /**
262
+ * Deletes file by given fileId
263
+ * @param {string} fileId
264
+ * @return {*} {Observable<DeleteFileResponse>}
265
+ * @memberof FileUploadService
266
+ */
261
267
  fileRemoveIcon: string;
262
268
  deleteIcon: string;
263
269
  };
@@ -313,6 +319,9 @@ export declare class FileUploadService implements OnDestroy {
313
319
  message: {
314
320
  errors: {
315
321
  errorReadingFile: string;
322
+ "5038": string;
323
+ "6027": string;
324
+ "6028": string;
316
325
  };
317
326
  };
318
327
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.27.1",
3
+ "version": "0.27.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
@@ -623,10 +623,13 @@
623
623
  "disabled": false
624
624
  }
625
625
  ],
626
- "preSignedDuration":"5",
626
+ "preSignedDuration": "5",
627
627
  "message": {
628
628
  "errors": {
629
- "errorReadingFile": "File is damaged or unreadable."
629
+ "errorReadingFile": "File is damaged or unreadable.",
630
+ "5038": "Presigned duration is either null/empty.",
631
+ "6027": "Attachment id is either null/empty.",
632
+ "6028": "Agenda item attachment id does not exist."
630
633
  }
631
634
  }
632
635
  }