@ieeesa-npm/presentation 0.29.7 → 0.29.9
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 -2
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +75 -73
- package/esm2022/lib/components/file-upload/file-upload.component.mjs +4 -29
- package/esm2022/lib/components/list/list.component.mjs +6 -31
- package/esm2022/lib/models/file-attachment.model.mjs +2 -0
- package/esm2022/lib/models/list-item.model.mjs +1 -1
- package/esm2022/lib/services/breadcrumb.service.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +93 -142
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +10 -2
- package/lib/components/chips/chips.component.d.ts +0 -1
- package/lib/components/file-download/file-download.component.d.ts +0 -1
- package/lib/components/file-upload/file-upload.component.d.ts +0 -23
- package/lib/components/list/list.component.d.ts +1 -11
- package/lib/models/file-attachment.model.d.ts +21 -0
- package/lib/models/list-item.model.d.ts +0 -1
- package/lib/services/breadcrumb.service.d.ts +3 -3
- package/lib/services/file-upload.service.d.ts +0 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/lib/assets/constants.json +1 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { ActivatedRoute, ActivatedRouteSnapshot, Router } from '@angular/router';
|
|
4
4
|
import { Breadcrumb } from '../../models/breadcrumb.model';
|
|
5
5
|
import { BreadcrumbService } from '../../services/breadcrumb.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare class BreadcrumbComponent implements OnDestroy {
|
|
12
12
|
activatedRoute: ActivatedRoute;
|
|
13
|
-
|
|
13
|
+
router: Router;
|
|
14
14
|
breadcrumbService: BreadcrumbService;
|
|
15
15
|
breadcrumbTexts: any;
|
|
16
16
|
rootParentCount: number;
|
|
@@ -29,6 +29,7 @@ export declare class BreadcrumbComponent implements OnDestroy {
|
|
|
29
29
|
*/
|
|
30
30
|
breadcrumbInitialRouteLabel: any;
|
|
31
31
|
breadcrumbs: Breadcrumb[];
|
|
32
|
+
breadcrumbLevel: number;
|
|
32
33
|
destroy$: Subject<boolean>;
|
|
33
34
|
constructor(activatedRoute: ActivatedRoute, router: Router, breadcrumbService: BreadcrumbService);
|
|
34
35
|
/**
|
|
@@ -45,6 +46,13 @@ export declare class BreadcrumbComponent implements OnDestroy {
|
|
|
45
46
|
* @memberof BreadcrumbComponent
|
|
46
47
|
*/
|
|
47
48
|
getBreadcrumbs(route: ActivatedRoute, url?: string, breadcrumbs?: Breadcrumb[]): Breadcrumb[];
|
|
49
|
+
/**
|
|
50
|
+
* Returns breadcrumb label.
|
|
51
|
+
* @param {ActivatedRouteSnapshot} snapshot
|
|
52
|
+
* @return {*}
|
|
53
|
+
* @memberof BreadcrumbComponent
|
|
54
|
+
*/
|
|
55
|
+
getExtrasState(snapshot: ActivatedRouteSnapshot): any;
|
|
48
56
|
/**
|
|
49
57
|
* Navigates to the specified breadcrumb item.
|
|
50
58
|
* @param {Breadcrumb} breadcrumb -The breadcrumb item to navigate to.
|
|
@@ -282,13 +282,8 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
282
282
|
maxFilesUploadedOnce: number;
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
|
-
/**
|
|
286
|
-
* Based on isMultiFileUpload flag return files to download.
|
|
287
|
-
* @memberof FileUploadComponent
|
|
288
|
-
*/
|
|
289
285
|
list: {
|
|
290
286
|
defaultIndentation: number;
|
|
291
|
-
dragAndDropIconUrl: string;
|
|
292
287
|
};
|
|
293
288
|
search: {
|
|
294
289
|
searchIcon: string;
|
|
@@ -308,11 +303,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
308
303
|
ariaLabel: string;
|
|
309
304
|
iconURL: string;
|
|
310
305
|
toolTip: string;
|
|
311
|
-
/**
|
|
312
|
-
* Sets empty value to file form control once it is clicked.
|
|
313
|
-
* @param {Event} event
|
|
314
|
-
* @memberof FileUploadComponent
|
|
315
|
-
*/
|
|
316
306
|
disabled: boolean;
|
|
317
307
|
}[];
|
|
318
308
|
preSignedDuration: string;
|
|
@@ -404,7 +394,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
404
394
|
uploadSelectedFiles: EventEmitter<File | FileList>;
|
|
405
395
|
downloadSelectedFile: EventEmitter<File | DownloadAttachment>;
|
|
406
396
|
apiBaseUrl: string;
|
|
407
|
-
selectedFileNamesCount: number;
|
|
408
397
|
constructor(formUtilityService: FormUtilityService, fileUploadService: FileUploadService);
|
|
409
398
|
/**
|
|
410
399
|
* Initializes component properties and retrieves configuration.
|
|
@@ -506,18 +495,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
506
495
|
* @memberof FileUploadComponent
|
|
507
496
|
*/
|
|
508
497
|
setEmptyValue(event: Event): void;
|
|
509
|
-
/**
|
|
510
|
-
* Removes the file from selectedFiles once the file uploaded successfully to AWS S3.
|
|
511
|
-
* @param {File} file
|
|
512
|
-
* @memberof FileUploadComponent
|
|
513
|
-
*/
|
|
514
|
-
removeSelectedFileInUploadedFiles(fileName: string): void;
|
|
515
|
-
/**
|
|
516
|
-
* Returns the count of files selected for the upload.
|
|
517
|
-
* @return {number}
|
|
518
|
-
* @memberof FileUploadComponent
|
|
519
|
-
*/
|
|
520
|
-
getSelectedFileCount(): number;
|
|
521
498
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
522
499
|
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; }; "fileDownloadAndDeleteConfig": { "alias": "fileDownloadAndDeleteConfig"; "required": false; }; }, { "uploadSelectedFiles": "uploadSelectedFiles"; "downloadSelectedFile": "downloadSelectedFile"; }, never, never, true, never>;
|
|
523
500
|
}
|
|
@@ -4,7 +4,6 @@ import { Menu } from '../../models/menu.model';
|
|
|
4
4
|
import { IconButton } from '../../models/icon-button.model';
|
|
5
5
|
import { FileDownloadAndDeleteConfig } from '../../models/file-download-config.model';
|
|
6
6
|
import { DownloadAttachment } from '../../models/download-file.model';
|
|
7
|
-
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class ListComponent implements OnDestroy {
|
|
10
9
|
elementRef: ElementRef;
|
|
@@ -23,7 +22,6 @@ export declare class ListComponent implements OnDestroy {
|
|
|
23
22
|
downloadSelectedFile: EventEmitter<File | DownloadAttachment>;
|
|
24
23
|
constants: any;
|
|
25
24
|
indentation: any;
|
|
26
|
-
dragAndDropIconUrl: any;
|
|
27
25
|
addListButton: IconButton;
|
|
28
26
|
safeType: string;
|
|
29
27
|
set addListButtonConfig(addListButton: IconButton);
|
|
@@ -32,7 +30,6 @@ export declare class ListComponent implements OnDestroy {
|
|
|
32
30
|
private _fileDownloadAndDeleteConfig;
|
|
33
31
|
set fileDownloadAndDeleteConfig(value: FileDownloadAndDeleteConfig);
|
|
34
32
|
get fileDownloadAndDeleteConfig(): FileDownloadAndDeleteConfig;
|
|
35
|
-
isReorderRequired: boolean;
|
|
36
33
|
constructor(elementRef: ElementRef);
|
|
37
34
|
/**
|
|
38
35
|
* Emits hyperLinkAndButtonClick event on click of hyper link.
|
|
@@ -78,18 +75,11 @@ export declare class ListComponent implements OnDestroy {
|
|
|
78
75
|
* @memberof ListComponent
|
|
79
76
|
*/
|
|
80
77
|
downloadFile(file: File | DownloadAttachment): void;
|
|
81
|
-
/**
|
|
82
|
-
* Triggers when the item is dropped.
|
|
83
|
-
* @param {CdkDragDrop} event
|
|
84
|
-
* @param {ListItem[]} items
|
|
85
|
-
* @param {number} nestingLevel
|
|
86
|
-
*/
|
|
87
|
-
drop(event: CdkDragDrop<any>, items: ListItem[], nestingLevel: number): void;
|
|
88
78
|
/**
|
|
89
79
|
* Removing the event listeners on destroy.
|
|
90
80
|
* @memberof ListComponent
|
|
91
81
|
*/
|
|
92
82
|
ngOnDestroy(): void;
|
|
93
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
|
|
94
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "ieeesa-list", never, { "listDataItems": { "alias": "listDataItems"; "required": false; }; "listHeaderConfig": { "alias": "listHeaderConfig"; "required": false; }; "indentation": { "alias": "indentation"; "required": false; }; "addListButtonConfig": { "alias": "addListButtonConfig"; "required": false; }; "fileDownloadAndDeleteConfig": { "alias": "fileDownloadAndDeleteConfig"; "required": false; };
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "ieeesa-list", never, { "listDataItems": { "alias": "listDataItems"; "required": false; }; "listHeaderConfig": { "alias": "listHeaderConfig"; "required": false; }; "indentation": { "alias": "indentation"; "required": false; }; "addListButtonConfig": { "alias": "addListButtonConfig"; "required": false; }; "fileDownloadAndDeleteConfig": { "alias": "fileDownloadAndDeleteConfig"; "required": false; }; }, { "selectedItemAndAction": "selectedItemAndAction"; "reorderedList": "reorderedList"; "hyperLinkAndButtonClick": "hyperLinkAndButtonClick"; "downloadSelectedFile": "downloadSelectedFile"; "domChangeEvent": "domChangeEvent"; }, never, never, true, never>;
|
|
95
85
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface FileAttachment {
|
|
2
|
+
agendaItemId: string;
|
|
3
|
+
agendaId: string;
|
|
4
|
+
s3FilePath: string;
|
|
5
|
+
fileName: string;
|
|
6
|
+
}
|
|
7
|
+
export interface FileAttachmentPayload {
|
|
8
|
+
payload: FileAttachment[];
|
|
9
|
+
}
|
|
10
|
+
export interface AgendaItemAttachment {
|
|
11
|
+
fileName: string;
|
|
12
|
+
agendaItemAttachmentId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface FileAttachmentResponse {
|
|
15
|
+
status: boolean;
|
|
16
|
+
message: string;
|
|
17
|
+
body: {
|
|
18
|
+
totalRecords: number;
|
|
19
|
+
agendaItemAttachmentList: AgendaItemAttachment[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class BreadcrumbService {
|
|
3
|
-
isPreviousExtrasPresent: boolean;
|
|
3
|
+
isPreviousExtrasPresent: boolean | undefined;
|
|
4
4
|
/**
|
|
5
5
|
* Sets the status of whether previous extras are present.
|
|
6
6
|
* @param {boolean} flag -Boolean flag indicating if previous extras are present.
|
|
7
7
|
* @memberof BreadcrumbService
|
|
8
8
|
*/
|
|
9
|
-
setPreviousExtras(flag: boolean): void;
|
|
9
|
+
setPreviousExtras(flag: boolean | undefined): void;
|
|
10
10
|
/**
|
|
11
11
|
* Retrieves the status of whether previous extras are present.
|
|
12
12
|
* @return {boolean} -Boolean indicating if previous extras are present.
|
|
13
13
|
* @memberof BreadcrumbService
|
|
14
14
|
*/
|
|
15
|
-
getPreviousExtras(): boolean;
|
|
15
|
+
getPreviousExtras(): boolean | undefined;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, never>;
|
|
17
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbService>;
|
|
18
18
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export * from './lib/models/date-picker.model';
|
|
|
59
59
|
export * from './lib/models/download-file.model';
|
|
60
60
|
export * from './lib/models/event-emit-type.model';
|
|
61
61
|
export * from './lib/models/field-config.model';
|
|
62
|
+
export * from './lib/models/file-attachment.model';
|
|
62
63
|
export * from './lib/models/footer-config.model';
|
|
63
64
|
export * from './lib/models/form-control-types.model';
|
|
64
65
|
export * from './lib/models/form-field.model';
|
|
@@ -599,8 +599,7 @@
|
|
|
599
599
|
}
|
|
600
600
|
},
|
|
601
601
|
"list": {
|
|
602
|
-
"defaultIndentation": 12
|
|
603
|
-
"dragAndDropIconUrl": "assets/images/sprites/sprites.svg#icon-drag-indicator"
|
|
602
|
+
"defaultIndentation": 12
|
|
604
603
|
},
|
|
605
604
|
"search": {
|
|
606
605
|
"searchIcon": "assets/images/sprites/sprites.svg#icon-search"
|