@ieeesa-npm/presentation 0.27.3 → 0.27.5
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 +2 -2
- package/esm2022/lib/components/file-download/file-download.component.mjs +36 -3
- package/esm2022/lib/components/file-upload/file-upload.component.mjs +59 -32
- package/esm2022/lib/components/list/list.component.mjs +2 -2
- package/esm2022/lib/components/tabs/tabs.component.mjs +13 -13
- package/esm2022/lib/directives/dynamic-form-field/dynamic-form-field.directive.mjs +4 -2
- package/esm2022/lib/models/align-browsed-files.model.mjs +7 -0
- package/esm2022/lib/models/align-type.model.mjs +2 -1
- package/esm2022/lib/models/custom-properties.model.mjs +13 -0
- package/esm2022/lib/models/download-file.model.mjs +1 -1
- package/esm2022/lib/models/field-config.model.mjs +1 -1
- package/esm2022/lib/models/file-attachment.model.mjs +1 -1
- package/esm2022/lib/models/file-download-config.model.mjs +1 -1
- package/esm2022/lib/models/file-info.model.mjs +2 -0
- package/esm2022/lib/models/file-upload-status.model.mjs +1 -1
- package/esm2022/lib/services/file-upload.service.mjs +16 -11
- package/esm2022/public-api.mjs +6 -6
- package/fesm2022/ieeesa-npm-presentation.mjs +156 -88
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/chips/chips.component.d.ts +1 -1
- package/lib/components/dynamic-form/dynamic-form.component.d.ts +1 -1
- package/lib/components/file-download/file-download.component.d.ts +28 -6
- package/lib/components/file-upload/file-upload.component.d.ts +49 -13
- package/lib/components/tabs/tabs.component.d.ts +3 -3
- package/lib/directives/dynamic-form-field/dynamic-form-field.directive.d.ts +1 -1
- package/lib/directives/file-upload/file-upload.directive.d.ts +1 -1
- package/lib/models/{view-files-format.model.d.ts → align-browsed-files.model.d.ts} +1 -1
- package/lib/models/align-type.model.d.ts +2 -1
- package/lib/models/{dynamic-properties.model.d.ts → custom-properties.model.d.ts} +1 -1
- package/lib/models/download-file.model.d.ts +1 -1
- package/lib/models/field-config.model.d.ts +4 -4
- package/lib/models/file-attachment.model.d.ts +5 -3
- package/lib/models/file-download-config.model.d.ts +1 -0
- package/lib/models/{delete-file.model.d.ts → file-info.model.d.ts} +2 -2
- package/lib/models/file-upload-status.model.d.ts +1 -1
- package/lib/services/file-upload.service.d.ts +24 -16
- package/package.json +1 -1
- package/public-api.d.ts +5 -5
- package/src/lib/assets/constants.json +2 -2
- package/esm2022/lib/models/delete-file.model.mjs +0 -2
- package/esm2022/lib/models/dynamic-properties.model.mjs +0 -13
- package/esm2022/lib/models/view-files-format.model.mjs +0 -7
|
@@ -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<
|
|
94
|
+
formFileUpload: EventEmitter<FileList | File>;
|
|
95
95
|
dropdownOpenedChange: EventEmitter<SelectOpenedState>;
|
|
96
96
|
formColorPickerChange: EventEmitter<string>;
|
|
97
97
|
formRadioOptionSelected: EventEmitter<RadioOption>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormUtilityService } from '../../services/form-utility.service';
|
|
3
3
|
import { FileUploadService } from '../../services/file-upload.service';
|
|
4
4
|
import { FileDownloadConfig } from '../../models/file-download-config.model';
|
|
@@ -6,10 +6,10 @@ import { DownloadFile } from '../../models/download-file.model';
|
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
7
|
import { SharedService } from '@ieeesa-npm/shared';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class FileDownloadComponent implements OnDestroy {
|
|
9
|
+
export declare class FileDownloadComponent implements OnInit, OnDestroy {
|
|
10
10
|
formUtilityService: FormUtilityService;
|
|
11
11
|
sharedService: SharedService;
|
|
12
|
-
fileUploadService
|
|
12
|
+
private fileUploadService;
|
|
13
13
|
constants: {
|
|
14
14
|
ariaLabel: {
|
|
15
15
|
clear: string;
|
|
@@ -134,6 +134,12 @@ export declare class FileDownloadComponent implements OnDestroy {
|
|
|
134
134
|
helpLink: string;
|
|
135
135
|
hamburgerMenu: string;
|
|
136
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* Removes the selected file from the downloaded files list.
|
|
139
|
+
* @param {number} index
|
|
140
|
+
* @param {File } file
|
|
141
|
+
* @memberof FileDownloadedComponent
|
|
142
|
+
*/
|
|
137
143
|
label: {
|
|
138
144
|
signOut: string;
|
|
139
145
|
};
|
|
@@ -148,7 +154,11 @@ export declare class FileDownloadComponent implements OnDestroy {
|
|
|
148
154
|
iconURL: string;
|
|
149
155
|
label: string;
|
|
150
156
|
ariaLabel: string;
|
|
151
|
-
toolTip: string;
|
|
157
|
+
toolTip: string; /**
|
|
158
|
+
* Deletes file by given agendaAttachmentId
|
|
159
|
+
* @param {string} agendaAttachmentId
|
|
160
|
+
* @memberof UploadAttachmentsComponent
|
|
161
|
+
*/
|
|
152
162
|
isToolTipNeeded: boolean;
|
|
153
163
|
}[];
|
|
154
164
|
errors: {
|
|
@@ -269,7 +279,7 @@ export declare class FileDownloadComponent implements OnDestroy {
|
|
|
269
279
|
};
|
|
270
280
|
};
|
|
271
281
|
limit: {
|
|
272
|
-
|
|
282
|
+
maxFilesUploadedOnce: number;
|
|
273
283
|
};
|
|
274
284
|
};
|
|
275
285
|
list: {
|
|
@@ -322,7 +332,13 @@ export declare class FileDownloadComponent implements OnDestroy {
|
|
|
322
332
|
toolTip: string;
|
|
323
333
|
disabled: boolean;
|
|
324
334
|
};
|
|
335
|
+
apiBaseUrl: string;
|
|
325
336
|
constructor(formUtilityService: FormUtilityService, sharedService: SharedService, fileUploadService: FileUploadService);
|
|
337
|
+
/**
|
|
338
|
+
* Sets API base URL to file upload service
|
|
339
|
+
* @memberof FileDownloadComponent
|
|
340
|
+
*/
|
|
341
|
+
ngOnInit(): void;
|
|
326
342
|
/**
|
|
327
343
|
* Gets the download AWS pre-signed URL from API on button click or emit the downloadSelectedFile if isNotDownloadFileInternally flg is true.
|
|
328
344
|
* @param {File } file
|
|
@@ -341,6 +357,12 @@ export declare class FileDownloadComponent implements OnDestroy {
|
|
|
341
357
|
* @memberof FileDownloadedComponent
|
|
342
358
|
*/
|
|
343
359
|
onDeleteFile(file: File | DownloadFile, index: number): void;
|
|
360
|
+
/**
|
|
361
|
+
* Deletes file by given agendaAttachmentId
|
|
362
|
+
* @param {string} agendaAttachmentId
|
|
363
|
+
* @memberof UploadAttachmentsComponent
|
|
364
|
+
*/
|
|
365
|
+
deleteFile(agendaAttachmentId: string, index: number): void;
|
|
344
366
|
/**
|
|
345
367
|
* Returns unique identifier for the file list.
|
|
346
368
|
* @param {number} index
|
|
@@ -361,5 +383,5 @@ export declare class FileDownloadComponent implements OnDestroy {
|
|
|
361
383
|
*/
|
|
362
384
|
downloadFileFromPresignedUrl(fileDownloadPresignedUrl: string, fileName: string): void;
|
|
363
385
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileDownloadComponent, never>;
|
|
364
|
-
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; }; }, { "downloadSelectedFile": "downloadSelectedFile"; "deleteSelectedFile": "deleteSelectedFile"; }, never, never, true, never>;
|
|
386
|
+
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>;
|
|
365
387
|
}
|
|
@@ -4,7 +4,7 @@ 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 {
|
|
7
|
+
import { AlignBrowsedFiles } from '../../models/align-browsed-files.model';
|
|
8
8
|
import { AlignType } from '../../models/align-type.model';
|
|
9
9
|
import { FileUploadStatus } from '../../models/file-upload-status.model';
|
|
10
10
|
import { FileDownloadConfig } from '../../models/file-download-config.model';
|
|
@@ -234,11 +234,21 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
234
234
|
allowedFileSize2: string;
|
|
235
235
|
allowedFileFormat: string;
|
|
236
236
|
browseFiles: string;
|
|
237
|
+
/**
|
|
238
|
+
* Triggers and opens the file browse window when the Browse button is clicked.
|
|
239
|
+
* @memberof FileUploadComponent
|
|
240
|
+
*/
|
|
237
241
|
uploadProgress: string;
|
|
238
242
|
upload: string;
|
|
239
243
|
mb: string;
|
|
240
244
|
uploadFor: string;
|
|
241
245
|
uploadErrorMsg: string;
|
|
246
|
+
/**
|
|
247
|
+
* Returns the failed file names with comma separation.
|
|
248
|
+
* @param {string[]} fileNames
|
|
249
|
+
* @return {*} {string}
|
|
250
|
+
* @memberof FileUploadComponent
|
|
251
|
+
*/
|
|
242
252
|
of: string;
|
|
243
253
|
filesUploaded: string;
|
|
244
254
|
fileAlreadyExists: string;
|
|
@@ -279,7 +289,7 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
279
289
|
};
|
|
280
290
|
};
|
|
281
291
|
limit: {
|
|
282
|
-
|
|
292
|
+
maxFilesUploadedOnce: number;
|
|
283
293
|
};
|
|
284
294
|
};
|
|
285
295
|
list: {
|
|
@@ -322,11 +332,21 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
322
332
|
allowedFileSize2: string;
|
|
323
333
|
allowedFileFormat: string;
|
|
324
334
|
browseFiles: string;
|
|
335
|
+
/**
|
|
336
|
+
* Triggers and opens the file browse window when the Browse button is clicked.
|
|
337
|
+
* @memberof FileUploadComponent
|
|
338
|
+
*/
|
|
325
339
|
uploadProgress: string;
|
|
326
340
|
upload: string;
|
|
327
341
|
mb: string;
|
|
328
342
|
uploadFor: string;
|
|
329
343
|
uploadErrorMsg: string;
|
|
344
|
+
/**
|
|
345
|
+
* Returns the failed file names with comma separation.
|
|
346
|
+
* @param {string[]} fileNames
|
|
347
|
+
* @return {*} {string}
|
|
348
|
+
* @memberof FileUploadComponent
|
|
349
|
+
*/
|
|
330
350
|
of: string;
|
|
331
351
|
filesUploaded: string;
|
|
332
352
|
fileAlreadyExists: string;
|
|
@@ -376,12 +396,12 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
376
396
|
isUploadInProgress: boolean;
|
|
377
397
|
fileUploadHeading: string;
|
|
378
398
|
isAllowAnyFileType: boolean;
|
|
379
|
-
|
|
399
|
+
alignBrowsedFiles: AlignBrowsedFiles;
|
|
380
400
|
isUploadButtonNeeded: boolean;
|
|
381
401
|
maxUploadFileSize: number;
|
|
382
402
|
private uploadedSizeValue;
|
|
383
|
-
|
|
384
|
-
|
|
403
|
+
alignFileUploadErrorMessageTo: AlignType;
|
|
404
|
+
maxFilesUploadedOnce: number;
|
|
385
405
|
maxFilesUploadLimitErrorMessage: string;
|
|
386
406
|
private _fileUploadStatus;
|
|
387
407
|
get fileUploadStatus(): FileUploadStatus;
|
|
@@ -391,8 +411,9 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
391
411
|
_fileDownloadConfig: FileDownloadConfig;
|
|
392
412
|
set fileDownloadConfig(value: FileDownloadConfig);
|
|
393
413
|
get fileDownloadConfig(): FileDownloadConfig;
|
|
394
|
-
uploadSelectedFiles: EventEmitter<
|
|
414
|
+
uploadSelectedFiles: EventEmitter<FileList | File>;
|
|
395
415
|
downloadSelectedFile: EventEmitter<File | DownloadFile>;
|
|
416
|
+
apiBaseUrl: string;
|
|
396
417
|
constructor(formUtilityService: FormUtilityService, fileUploadService: FileUploadService);
|
|
397
418
|
/**
|
|
398
419
|
* Initializes component properties and retrieves configuration.
|
|
@@ -413,9 +434,10 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
413
434
|
/**
|
|
414
435
|
* Validates the selected file(s) format and size.
|
|
415
436
|
* @param {(File | FileList)} file
|
|
437
|
+
* @return {boolean}
|
|
416
438
|
* @memberof FileUploadComponent
|
|
417
439
|
*/
|
|
418
|
-
validateFile(file: File | FileList):
|
|
440
|
+
validateFile(file: File | FileList): boolean;
|
|
419
441
|
/**
|
|
420
442
|
* Initiates the file upload process for independent file upload component.
|
|
421
443
|
* @memberof FileUploadComponent
|
|
@@ -451,33 +473,47 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
451
473
|
*/
|
|
452
474
|
trackByFn(index: number): number | string;
|
|
453
475
|
/**
|
|
454
|
-
* Triggers
|
|
476
|
+
* Triggers and opens the file browse window when the Browse button is clicked.
|
|
455
477
|
* @memberof FileUploadComponent
|
|
456
478
|
*/
|
|
457
479
|
fileClick(): void;
|
|
458
480
|
/**
|
|
459
|
-
*
|
|
460
|
-
* @param {string[]}
|
|
481
|
+
* Returns the failed file names with comma separation.
|
|
482
|
+
* @param {string[]} fileNames
|
|
461
483
|
* @return {*} {string}
|
|
462
484
|
* @memberof FileUploadComponent
|
|
463
485
|
*/
|
|
464
486
|
displayFileNames(fileNames: string[]): string;
|
|
465
487
|
/**
|
|
466
|
-
* Removes file from
|
|
488
|
+
* Removes the unselected file from the browsed or selected files and emits uploadSelectedFiles event with the selected files.
|
|
467
489
|
* @param {number} index
|
|
468
490
|
* @memberof FileUploadComponent
|
|
469
491
|
*/
|
|
470
492
|
removeFile(index: number): void;
|
|
471
493
|
/**
|
|
472
|
-
*
|
|
494
|
+
* Disables the file upload button.
|
|
473
495
|
* @memberof FileUploadComponent
|
|
474
496
|
*/
|
|
475
497
|
disableUploadButton(): void;
|
|
498
|
+
/**
|
|
499
|
+
* Enables or disables the file upload button.
|
|
500
|
+
* @param {boolean} enable
|
|
501
|
+
* @memberof FileUploadComponent
|
|
502
|
+
*/
|
|
503
|
+
canEnableUploadButton(enable: boolean): void;
|
|
476
504
|
/**
|
|
477
505
|
* Based on isMultiFileUpload flag return files to download.
|
|
478
506
|
* @memberof FileUploadComponent
|
|
479
507
|
*/
|
|
480
508
|
getFilesToDownload(): DownloadFile[];
|
|
509
|
+
/**
|
|
510
|
+
* TrackByFunction is called for each file in the collection and return a unique identifier for that file.
|
|
511
|
+
* @param {number} index
|
|
512
|
+
* @param {File} file
|
|
513
|
+
* @return {File}
|
|
514
|
+
* @memberof FileUploadComponent
|
|
515
|
+
*/
|
|
516
|
+
trackByFunc(index: number, file: File): File;
|
|
481
517
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
482
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ieeesa-file-upload", never, { "maxFileSizeErrorMessage": { "alias": "maxFileSizeErrorMessage"; "required": false; }; "actionButtonAlign": { "alias": "actionButtonAlign"; "required": false; }; "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; }; "isAllowAnyFileType": { "alias": "isAllowAnyFileType"; "required": false; }; "
|
|
518
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ieeesa-file-upload", never, { "maxFileSizeErrorMessage": { "alias": "maxFileSizeErrorMessage"; "required": false; }; "actionButtonAlign": { "alias": "actionButtonAlign"; "required": false; }; "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; }; "isAllowAnyFileType": { "alias": "isAllowAnyFileType"; "required": false; }; "alignBrowsedFiles": { "alias": "alignBrowsedFiles"; "required": false; }; "isUploadButtonNeeded": { "alias": "isUploadButtonNeeded"; "required": false; }; "maxUploadFileSize": { "alias": "maxUploadFileSize"; "required": false; }; "alignFileUploadErrorMessageTo": { "alias": "alignFileUploadErrorMessageTo"; "required": false; }; "maxFilesUploadedOnce": { "alias": "maxFilesUploadedOnce"; "required": false; }; "maxFilesUploadLimitErrorMessage": { "alias": "maxFilesUploadLimitErrorMessage"; "required": false; }; "fileUploadStatus": { "alias": "fileUploadStatus"; "required": false; }; "uploadedSize": { "alias": "uploadedSize"; "required": false; }; "fileDownloadConfig": { "alias": "fileDownloadConfig"; "required": false; }; }, { "uploadSelectedFiles": "uploadSelectedFiles"; "downloadSelectedFile": "downloadSelectedFile"; }, never, never, true, never>;
|
|
483
519
|
}
|
|
@@ -6,7 +6,7 @@ import { ConfirmationModalData } from '../../models/confirmation-modal-data.mode
|
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
7
|
import { FormGroup } from '@angular/forms';
|
|
8
8
|
import { EventsAndMeetingRouteConfig, UserPermission } from '@ieeesa-npm/shared';
|
|
9
|
-
import {
|
|
9
|
+
import { CustomProperties } from '../../models/custom-properties.model';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class TabsComponent implements OnInit, OnDestroy {
|
|
12
12
|
dialog: MatDialog;
|
|
@@ -36,7 +36,7 @@ export declare class TabsComponent implements OnInit, OnDestroy {
|
|
|
36
36
|
routePaths: EventsAndMeetingRouteConfig;
|
|
37
37
|
apiBaseURL: string;
|
|
38
38
|
userPermissions: UserPermission[];
|
|
39
|
-
|
|
39
|
+
customProperties: CustomProperties[];
|
|
40
40
|
constructor(dialog: MatDialog);
|
|
41
41
|
/**
|
|
42
42
|
* Verifies tabs count and calls createComponent() to load selected component.
|
|
@@ -67,7 +67,7 @@ export declare class TabsComponent implements OnInit, OnDestroy {
|
|
|
67
67
|
* @param {[]} properties
|
|
68
68
|
* @memberof TabsComponent
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
setCustomComponentProperties(properties: []): void;
|
|
71
71
|
/**
|
|
72
72
|
* Returns unique identifier for the tab.
|
|
73
73
|
* @param {number} index
|
|
@@ -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<
|
|
85
|
+
formFileUpload: EventEmitter<FileList | File>;
|
|
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<
|
|
11
|
+
fileDropped: EventEmitter<FileList | File>;
|
|
12
12
|
/**
|
|
13
13
|
* Binds the 'multiple' attribute based on the value of allowMultiple property.
|
|
14
14
|
* @readonly
|
|
@@ -10,7 +10,7 @@ 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 {
|
|
13
|
+
import { AlignBrowsedFiles } from './align-browsed-files.model';
|
|
14
14
|
import { AlignType } from './align-type.model';
|
|
15
15
|
export interface FieldConfig {
|
|
16
16
|
isSortNeeded?: boolean;
|
|
@@ -87,10 +87,10 @@ export interface FieldConfig {
|
|
|
87
87
|
multiSelectAutoCompleteOptions?: AutoCompleteOption[];
|
|
88
88
|
editorConfig?: EditorConfig;
|
|
89
89
|
isAllowAnyFileType?: boolean;
|
|
90
|
-
|
|
90
|
+
alignBrowsedFiles?: AlignBrowsedFiles;
|
|
91
91
|
isUploadButtonNeeded?: boolean;
|
|
92
92
|
actionButtonAlign?: AlignType;
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
alignFileUploadErrorMessageTo?: AlignType;
|
|
94
|
+
maxFilesUploadedOnce?: number;
|
|
95
95
|
maxFilesUploadLimitErrorMessage?: string;
|
|
96
96
|
}
|
|
@@ -7,13 +7,15 @@ export interface FileAttachment {
|
|
|
7
7
|
export interface FileAttachmentPayload {
|
|
8
8
|
payload: FileAttachment[];
|
|
9
9
|
}
|
|
10
|
+
export interface AgendaItemAttachment {
|
|
11
|
+
fileName: string;
|
|
12
|
+
agendaItemAttachmentId: string;
|
|
13
|
+
}
|
|
10
14
|
export interface FileAttachmentResponse {
|
|
11
15
|
status: boolean;
|
|
12
16
|
message: string;
|
|
13
17
|
body: {
|
|
14
|
-
id: string | null;
|
|
15
|
-
name: string | null;
|
|
16
|
-
message: string;
|
|
17
18
|
totalRecords: number;
|
|
19
|
+
agendaItemAttachmentList: AgendaItemAttachment[];
|
|
18
20
|
};
|
|
19
21
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export interface DeleteFilePayload {
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
}
|
|
4
|
-
export interface
|
|
4
|
+
export interface FileInfo {
|
|
5
5
|
id: string | null;
|
|
6
6
|
name: string | null;
|
|
7
7
|
}
|
|
8
8
|
export interface DeleteFileResponse {
|
|
9
9
|
status: boolean;
|
|
10
10
|
message: string;
|
|
11
|
-
body:
|
|
11
|
+
body: FileInfo;
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DownloadFile } from './download-file.model';
|
|
2
2
|
export interface FileUploadStatus {
|
|
3
|
-
|
|
3
|
+
noOfFilesUploadedSuccessfully: number;
|
|
4
4
|
filesNamesUploadFailed: string[];
|
|
5
5
|
alreadyExistsFiles: string[];
|
|
6
6
|
isUploadingStart: boolean;
|
|
@@ -5,7 +5,7 @@ import { FileUploadPresignedUrl, GetFileDownloadPresignedUrlByAttachmentIdRespon
|
|
|
5
5
|
import { Observable, Subject } from 'rxjs';
|
|
6
6
|
import { FileUploadPayload } from '../models/file-upload-payload-model';
|
|
7
7
|
import { FileUploadBodyResponse, FileUploadResponse } from '../models/file-upload-response.model';
|
|
8
|
-
import { DeleteFileResponse } from '../models/
|
|
8
|
+
import { DeleteFileResponse } from '../models/file-info.model';
|
|
9
9
|
import { DownloadFile } from '../models/download-file.model';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
@@ -137,6 +137,14 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
137
137
|
alt: {
|
|
138
138
|
logo: string;
|
|
139
139
|
};
|
|
140
|
+
/**
|
|
141
|
+
* Uploads file to AWS S3 using a pre-signed URL.
|
|
142
|
+
* @param {string} preSignedUrl
|
|
143
|
+
* @param files
|
|
144
|
+
* @param isMultipleFileUpload
|
|
145
|
+
* @return {Observable<any>} -Returns an observable that emits the response after uploading the file to S3.
|
|
146
|
+
* @memberof FileUploadService
|
|
147
|
+
*/
|
|
140
148
|
ariaLabel: {
|
|
141
149
|
helpLink: string;
|
|
142
150
|
hamburgerMenu: string;
|
|
@@ -200,13 +208,6 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
200
208
|
defaultWelcomeBgColor: string;
|
|
201
209
|
timePicker: {
|
|
202
210
|
defaultTimeFormat: number;
|
|
203
|
-
/**
|
|
204
|
-
* Return distinct message for sent, upload progress, & response events.
|
|
205
|
-
* @param {HttpEvent<any>} event
|
|
206
|
-
* @param {(File | FileList)} file
|
|
207
|
-
* @return {*}
|
|
208
|
-
* @memberof FileUploadService
|
|
209
|
-
*/
|
|
210
211
|
timePickerIcon: string;
|
|
211
212
|
};
|
|
212
213
|
colorPicker: {
|
|
@@ -214,6 +215,13 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
214
215
|
select: string;
|
|
215
216
|
cancel: string;
|
|
216
217
|
};
|
|
218
|
+
/**
|
|
219
|
+
* Return distinct message for sent, upload progress, & response events.
|
|
220
|
+
* @param {HttpEvent<any>} event
|
|
221
|
+
* @param {(File | FileList)} file
|
|
222
|
+
* @return {*}
|
|
223
|
+
* @memberof FileUploadService
|
|
224
|
+
*/
|
|
217
225
|
ariaLabel: {
|
|
218
226
|
colorPicker: string;
|
|
219
227
|
next: string;
|
|
@@ -258,12 +266,6 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
258
266
|
};
|
|
259
267
|
iconUrl: {
|
|
260
268
|
fileUploadIcon: string;
|
|
261
|
-
/**
|
|
262
|
-
* Deletes file by given fileId
|
|
263
|
-
* @param {string} fileId
|
|
264
|
-
* @return {*} {Observable<DeleteFileResponse>}
|
|
265
|
-
* @memberof FileUploadService
|
|
266
|
-
*/
|
|
267
269
|
fileRemoveIcon: string;
|
|
268
270
|
deleteIcon: string;
|
|
269
271
|
};
|
|
@@ -289,7 +291,7 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
289
291
|
};
|
|
290
292
|
};
|
|
291
293
|
limit: {
|
|
292
|
-
|
|
294
|
+
maxFilesUploadedOnce: number;
|
|
293
295
|
};
|
|
294
296
|
};
|
|
295
297
|
list: {
|
|
@@ -331,7 +333,7 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
331
333
|
httpClient: HttpClient;
|
|
332
334
|
isFileUploading: boolean;
|
|
333
335
|
filesNamesUploadFailed: string[];
|
|
334
|
-
|
|
336
|
+
noOfFilesUploadedSuccessfully: number;
|
|
335
337
|
uploadedFileName: string;
|
|
336
338
|
constructor(httpService: HttpService, handler: HttpBackend, alertService: AlertsService, loaderNotificationService: LoaderNotificationService);
|
|
337
339
|
/**
|
|
@@ -340,6 +342,12 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
340
342
|
* @memberof FileUploadService
|
|
341
343
|
*/
|
|
342
344
|
setApiBaseUrl(apiBaseUrl: string): void;
|
|
345
|
+
/**
|
|
346
|
+
* Gets API base URL for API requests.
|
|
347
|
+
* @return {*} {string}
|
|
348
|
+
* @memberof FileUploadService
|
|
349
|
+
*/
|
|
350
|
+
getApiBaseUrl(): string;
|
|
343
351
|
/**
|
|
344
352
|
* Retrieves presigned URL for uploading files to Amazon S3 bucket.
|
|
345
353
|
* @param {(File | FileList)} file
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -45,16 +45,18 @@ export * from './lib/directives/set-background/set-background.directive';
|
|
|
45
45
|
export * from './lib/directives/text-truncated/text-truncated.directive';
|
|
46
46
|
export * from './lib/directives/file-upload/file-upload.directive';
|
|
47
47
|
export * from './lib/directives/observe-dom-change/observe-dom-change.directive';
|
|
48
|
+
export * from './lib/models/accordion-info.model';
|
|
49
|
+
export * from './lib/models/align-browsed-files.model';
|
|
48
50
|
export * from './lib/models/align-type.model';
|
|
51
|
+
export * from './lib/models/allowed-file-types.model';
|
|
49
52
|
export * from './lib/models/app-config-info.model';
|
|
50
53
|
export * from './lib/models/autocomplete-option.model';
|
|
51
54
|
export * from './lib/models/calendar.model';
|
|
52
55
|
export * from './lib/models/checkbox-option.model';
|
|
53
56
|
export * from './lib/models/confirmation-modal-data.model';
|
|
57
|
+
export * from './lib/models/custom-properties.model';
|
|
54
58
|
export * from './lib/models/date-picker.model';
|
|
55
|
-
export * from './lib/models/delete-file.model';
|
|
56
59
|
export * from './lib/models/download-file.model';
|
|
57
|
-
export * from './lib/models/dynamic-properties.model';
|
|
58
60
|
export * from './lib/models/event-emit-type.model';
|
|
59
61
|
export * from './lib/models/field-config.model';
|
|
60
62
|
export * from './lib/models/file-attachment.model';
|
|
@@ -94,14 +96,12 @@ export * from './lib/models/button-type.model';
|
|
|
94
96
|
export * from './lib/models/card-button.model';
|
|
95
97
|
export * from './lib/models/card-info.model';
|
|
96
98
|
export * from './lib/models/color-format.model';
|
|
97
|
-
export * from './lib/models/
|
|
99
|
+
export * from './lib/models/file-info.model';
|
|
98
100
|
export * from './lib/models/file-upload-payload-model';
|
|
99
101
|
export * from './lib/models/file-upload-presigned-url-res.model';
|
|
100
102
|
export * from './lib/models/file-upload-response.model';
|
|
101
|
-
export * from './lib/models/accordion-info.model';
|
|
102
103
|
export * from './lib/models/inactive-tenant.model';
|
|
103
104
|
export * from './lib/models/table-column-menu-info.model';
|
|
104
|
-
export * from './lib/models/view-files-format.model';
|
|
105
105
|
export * from './lib/services/datepicker.service';
|
|
106
106
|
export * from './lib/services/form-utility.service';
|
|
107
107
|
export * from './lib/services/file-upload.service';
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
"upload": "Upload",
|
|
553
553
|
"mb": "MB",
|
|
554
554
|
"uploadFor": "Upload for",
|
|
555
|
-
"uploadErrorMsg": "could not be completed. Please try again",
|
|
555
|
+
"uploadErrorMsg": "could not be completed. Please try again.",
|
|
556
556
|
"of": "of",
|
|
557
557
|
"filesUploaded": "files Uploaded",
|
|
558
558
|
"fileAlreadyExists": "already exists"
|
|
@@ -595,7 +595,7 @@
|
|
|
595
595
|
}
|
|
596
596
|
},
|
|
597
597
|
"limit": {
|
|
598
|
-
"
|
|
598
|
+
"maxFilesUploadedOnce": 5
|
|
599
599
|
}
|
|
600
600
|
},
|
|
601
601
|
"list": {
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLWZpbGUubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcmVzZW50YXRpb24vc3JjL2xpYi9tb2RlbHMvZGVsZXRlLWZpbGUubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgRGVsZXRlRmlsZVBheWxvYWQge1xyXG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tZXhwbGljaXQtYW55XHJcbiAgW2tleTogc3RyaW5nXTogYW55O1xyXG59XHJcbmV4cG9ydCBpbnRlcmZhY2UgRGVsZXRlRmlsZSB7XHJcbiAgaWQ6IHN0cmluZyB8IG51bGw7XHJcbiAgbmFtZTogc3RyaW5nIHwgbnVsbDtcclxufVxyXG5leHBvcnQgaW50ZXJmYWNlIERlbGV0ZUZpbGVSZXNwb25zZSB7XHJcbiAgc3RhdHVzOiBib29sZWFuO1xyXG4gIG1lc3NhZ2U6IHN0cmluZztcclxuICBib2R5OiBEZWxldGVGaWxlO1xyXG59XHJcbiJdfQ==
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
|
2
|
-
export var DynamicProperties;
|
|
3
|
-
(function (DynamicProperties) {
|
|
4
|
-
DynamicProperties["EVENT_ID"] = "eventId";
|
|
5
|
-
DynamicProperties["MEETING_ID"] = "meetingId";
|
|
6
|
-
DynamicProperties["ROUTE_PATHS"] = "routePaths";
|
|
7
|
-
DynamicProperties["API_BASE_URL"] = "apiBaseURL";
|
|
8
|
-
DynamicProperties["USER_PERMISSIONS"] = "userPermissions";
|
|
9
|
-
DynamicProperties["ACTION_TYPE"] = "actionType";
|
|
10
|
-
DynamicProperties["IS_VIEW_ONLY"] = "isViewOnly";
|
|
11
|
-
DynamicProperties["IS_MEMBER_OF_GROUP"] = "isMemberOfGroup";
|
|
12
|
-
})(DynamicProperties || (DynamicProperties = {}));
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1wcm9wZXJ0aWVzLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcHJlc2VudGF0aW9uL3NyYy9saWIvbW9kZWxzL2R5bmFtaWMtcHJvcGVydGllcy5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxtQ0FBbUM7QUFDbkMsTUFBTSxDQUFOLElBQVksaUJBU1g7QUFURCxXQUFZLGlCQUFpQjtJQUMzQix5Q0FBb0IsQ0FBQTtJQUNwQiw2Q0FBd0IsQ0FBQTtJQUN4QiwrQ0FBMEIsQ0FBQTtJQUMxQixnREFBMkIsQ0FBQTtJQUMzQix5REFBb0MsQ0FBQTtJQUNwQywrQ0FBMEIsQ0FBQTtJQUMxQixnREFBMkIsQ0FBQTtJQUMzQiwyREFBc0MsQ0FBQTtBQUN4QyxDQUFDLEVBVFcsaUJBQWlCLEtBQWpCLGlCQUFpQixRQVM1QiIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXVudXNlZC12YXJzICovXHJcbmV4cG9ydCBlbnVtIER5bmFtaWNQcm9wZXJ0aWVzIHtcclxuICBFVkVOVF9JRCA9ICdldmVudElkJyxcclxuICBNRUVUSU5HX0lEID0gJ21lZXRpbmdJZCcsXHJcbiAgUk9VVEVfUEFUSFMgPSAncm91dGVQYXRocycsXHJcbiAgQVBJX0JBU0VfVVJMID0gJ2FwaUJhc2VVUkwnLFxyXG4gIFVTRVJfUEVSTUlTU0lPTlMgPSAndXNlclBlcm1pc3Npb25zJyxcclxuICBBQ1RJT05fVFlQRSA9ICdhY3Rpb25UeXBlJyxcclxuICBJU19WSUVXX09OTFkgPSAnaXNWaWV3T25seScsXHJcbiAgSVNfTUVNQkVSX09GX0dST1VQID0gJ2lzTWVtYmVyT2ZHcm91cCcsXHJcbn1cclxuIl19
|
|
@@ -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==
|