cat-documents-ng 0.2.92 → 0.2.94
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.
|
@@ -2,9 +2,11 @@ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { SHARED } from '../../../../Shared/constant/SHARED';
|
|
3
3
|
import { DocumentActionsService, DocumentAction } from '../../services/document-actions.service';
|
|
4
4
|
import { ConfirmationDialogComponent } from '../../../../Shared/components/confirmation-dialog/confirmation-dialog.component';
|
|
5
|
+
import { SessionService } from '../../../../Shared/services/session.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class DocumentActionsComponent implements OnChanges {
|
|
7
8
|
private documentActionsService;
|
|
9
|
+
private sessionService;
|
|
8
10
|
readonly SHARED: typeof SHARED;
|
|
9
11
|
document?: any;
|
|
10
12
|
documentId?: string;
|
|
@@ -17,14 +19,18 @@ export declare class DocumentActionsComponent implements OnChanges {
|
|
|
17
19
|
showRejectDialog: boolean;
|
|
18
20
|
acceptNote: string;
|
|
19
21
|
private _rejectNote;
|
|
22
|
+
userRole: any;
|
|
20
23
|
isAccepting: boolean;
|
|
21
24
|
isRejecting: boolean;
|
|
22
25
|
cardClass: string;
|
|
23
26
|
rejectButtonClass: string;
|
|
24
27
|
acceptButtonClass: string;
|
|
25
28
|
isRejectNoteEmpty: boolean;
|
|
29
|
+
showApproveRejectActions: boolean;
|
|
30
|
+
showDeleteAction: boolean;
|
|
31
|
+
showNoActions: boolean;
|
|
26
32
|
confirmationDialog: ConfirmationDialogComponent;
|
|
27
|
-
constructor(documentActionsService: DocumentActionsService);
|
|
33
|
+
constructor(documentActionsService: DocumentActionsService, sessionService: SessionService);
|
|
28
34
|
get rejectNote(): string;
|
|
29
35
|
set rejectNote(value: string);
|
|
30
36
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -32,10 +38,20 @@ export declare class DocumentActionsComponent implements OnChanges {
|
|
|
32
38
|
* Updates computed properties based on currentStatus and statusId
|
|
33
39
|
*/
|
|
34
40
|
private updateComputedProperties;
|
|
41
|
+
/**
|
|
42
|
+
* Checks if the current user is a Team Leader
|
|
43
|
+
* @returns {boolean} True if user is Team Leader
|
|
44
|
+
*/
|
|
45
|
+
isUserTeamLeader(): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Checks if the current user is an Underwriter
|
|
48
|
+
* @returns {boolean} True if user is Underwriter
|
|
49
|
+
*/
|
|
50
|
+
isUserUnderwriter(): boolean;
|
|
35
51
|
/**
|
|
36
52
|
* Updates the isRejectNoteEmpty property based on current rejectNote value
|
|
37
53
|
*/
|
|
38
|
-
|
|
54
|
+
updateRejectNoteEmpty(): void;
|
|
39
55
|
/**
|
|
40
56
|
* Resets the action processing flags
|
|
41
57
|
*/
|