@ieeesa-npm/presentation 0.15.1 → 0.15.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.
@@ -79,7 +79,7 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit {
79
79
  formTimeSelected: EventEmitter<SelectedTime>;
80
80
  supportTextLinkClick: EventEmitter<LinkEventEmitType>;
81
81
  formSlideToggleChange: EventEmitter<SlideToggleOption>;
82
- formFileUpload: EventEmitter<FileList | File>;
82
+ formFileUpload: EventEmitter<File | FileList>;
83
83
  dropdownOpenedChange: EventEmitter<SelectOpenedState>;
84
84
  formColorPickerChange: EventEmitter<string>;
85
85
  formRadioOptionSelected: EventEmitter<RadioOption>;
@@ -288,8 +288,8 @@ export declare class FileUploadComponent implements OnInit {
288
288
  private uploadedSizeValue;
289
289
  get uploadedSize(): number;
290
290
  set uploadedSize(value: number);
291
- uploadSelectedFiles: EventEmitter<FileList | File>;
292
- downloadSelectedFile: EventEmitter<FileList | File>;
291
+ uploadSelectedFiles: EventEmitter<File | FileList>;
292
+ downloadSelectedFile: EventEmitter<File | FileList>;
293
293
  constructor(formUtilityService: FormUtilityService, fileUploadService: FileUploadService);
294
294
  /**
295
295
  * Initializes component properties and retrieves configuration.
@@ -72,7 +72,7 @@ export declare class DynamicFormFieldDirective implements FormField, OnInit, OnD
72
72
  formSlideToggleChange: EventEmitter<SlideToggleOption>;
73
73
  dropdownOpenedChange: EventEmitter<SelectOpenedState>;
74
74
  formColorPickerChange: EventEmitter<string>;
75
- formFileUpload: EventEmitter<FileList | File>;
75
+ formFileUpload: EventEmitter<File | FileList>;
76
76
  formRadioOptionSelected: EventEmitter<RadioOption>;
77
77
  component: ComponentRef<any>;
78
78
  constructor(container: ViewContainerRef);
@@ -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
@@ -112,11 +112,6 @@ export declare class FileUploadService implements OnDestroy {
112
112
  id: number;
113
113
  iconURL: string;
114
114
  toolTip: string;
115
- /**
116
- * Gets file upload progress.
117
- * @param {*} message
118
- * @memberof FileUploadService
119
- */
120
115
  ariaLabel: string;
121
116
  }[];
122
117
  };
@@ -174,12 +169,6 @@ export declare class FileUploadService implements OnDestroy {
174
169
  };
175
170
  welcome: {
176
171
  buttons: {
177
- /**
178
- * Retrieves presigned URL for downloading files to Amazon S3 bucket.
179
- * @param {(File | FileList)} file
180
- * @return {Observable<string>}
181
- * @memberof FileUploadService
182
- */
183
172
  label: string;
184
173
  ariaLabel: string;
185
174
  url: string;
@@ -216,6 +205,14 @@ export declare class FileUploadService implements OnDestroy {
216
205
  browseFiles: string;
217
206
  uploadProgress: string;
218
207
  };
208
+ /**
209
+ * Validates the total size of the files uploaded.
210
+ * @param {(File | FileList)} files -The files to be validated.
211
+ * @param {number} maxFileSize
212
+ * @param {boolean} isMultiFileUpload
213
+ * @return {boolean} -Returns true if the total size of files is within the specified limit, otherwise false.
214
+ * @memberof FileUploadService
215
+ */
219
216
  ariaLabel: {
220
217
  fileUpload: string;
221
218
  browseFiles: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.15.1",
3
+ "version": "0.15.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",