cat-documents-ng 0.2.91 → 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.
- package/Shared/constant/SHARED.d.ts +4 -0
- package/fesm2022/cat-documents-ng.mjs +107 -39
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-actions/document-actions.component.d.ts +18 -2
- package/lib/document/components/document-upload/document-upload.component.d.ts +5 -0
- package/lib/document/services/file-format.service.d.ts +11 -0
- package/package.json +1 -1
- package/src/lib/styles.scss +0 -23
|
@@ -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
|
*/
|
|
@@ -272,6 +272,11 @@ export declare class DocumentUploadComponent implements OnDestroy {
|
|
|
272
272
|
* @param size - The file size in bytes
|
|
273
273
|
*/
|
|
274
274
|
formatSize(size: number): void;
|
|
275
|
+
/**
|
|
276
|
+
* Gets the accept string for the file upload component
|
|
277
|
+
* @returns String with file extensions for the accept attribute
|
|
278
|
+
*/
|
|
279
|
+
getFileUploadAcceptString(): string;
|
|
275
280
|
/**
|
|
276
281
|
* Lifecycle hook that is called when component is destroyed.
|
|
277
282
|
* Cleans up subscriptions and destroys services.
|
|
@@ -18,6 +18,17 @@ export declare class FileFormatService {
|
|
|
18
18
|
* @returns {string}
|
|
19
19
|
*/
|
|
20
20
|
formatFileSize(bytes: number, config: PrimeNGConfig): string;
|
|
21
|
+
/**
|
|
22
|
+
* Validates if a file has an allowed extension
|
|
23
|
+
* @param fileName - The name of the file to validate
|
|
24
|
+
* @returns True if the file extension is allowed, false otherwise
|
|
25
|
+
*/
|
|
26
|
+
isAllowedFileType(fileName: string): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Gets the list of allowed file extensions
|
|
29
|
+
* @returns Array of allowed file extensions
|
|
30
|
+
*/
|
|
31
|
+
getAllowedFileExtensions(): string[];
|
|
21
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileFormatService, never>;
|
|
22
33
|
static ɵprov: i0.ɵɵInjectableDeclaration<FileFormatService>;
|
|
23
34
|
}
|
package/package.json
CHANGED
package/src/lib/styles.scss
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* Global styles for cat-document-lib to ensure proper z-index stacking */
|
|
2
|
-
|
|
3
|
-
/* Ensure PrimeNG components have proper z-index values */
|
|
4
|
-
.p-confirm-dialog {
|
|
5
|
-
z-index: 10001 !important;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.p-dialog-mask {
|
|
9
|
-
z-index: 10000 !important;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.p-confirm-dialog-mask {
|
|
13
|
-
z-index: 10000 !important;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.p-sidebar {
|
|
17
|
-
z-index: 10000 !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/* Ensure backdrop is visible */
|
|
21
|
-
.custom-sidebar-backdrop {
|
|
22
|
-
z-index: 9999 !important;
|
|
23
|
-
}
|