cat-documents-ng 1.0.60 → 1.0.61
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/PERMISSIONS.d.ts +17 -0
- package/Shared/services/session.service.d.ts +14 -0
- package/fesm2022/cat-documents-ng.mjs +124 -87
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-actions/document-actions.component.d.ts +5 -0
- package/lib/document/components/document-search/document-search.component.d.ts +7 -1
- package/lib/document/services/document-http.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -28,6 +28,11 @@ export declare class DocumentActionsComponent implements OnChanges {
|
|
|
28
28
|
showApproveRejectActions: boolean;
|
|
29
29
|
showNoActions: boolean;
|
|
30
30
|
constructor(documentActionsService: DocumentActionsService, sessionService: SessionService);
|
|
31
|
+
/**
|
|
32
|
+
* Trait-based permission for approve/reject/delete style operations.
|
|
33
|
+
* Requirement: enable actions only when user has Documents-PUT or Documents-POST.
|
|
34
|
+
*/
|
|
35
|
+
get canUpdateDocuments(): boolean;
|
|
31
36
|
get rejectNote(): string;
|
|
32
37
|
set rejectNote(value: string);
|
|
33
38
|
/**
|
|
@@ -2,10 +2,12 @@ import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { SHARED } from '../../../../Shared/constant/SHARED';
|
|
3
3
|
import { DocumentHelperService } from '../../services/document.service';
|
|
4
4
|
import { DocumentQuery } from '../../state/document.query';
|
|
5
|
+
import { SessionService } from '../../../../Shared/services/session.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class DocumentSearchComponent implements OnInit, OnDestroy {
|
|
7
8
|
private documentHelperService;
|
|
8
9
|
private documentQuery;
|
|
10
|
+
private sessionService;
|
|
9
11
|
readonly SHARED: typeof SHARED;
|
|
10
12
|
contextId: string;
|
|
11
13
|
onActionClick: EventEmitter<void>;
|
|
@@ -15,7 +17,7 @@ export declare class DocumentSearchComponent implements OnInit, OnDestroy {
|
|
|
15
17
|
private destroy$;
|
|
16
18
|
private searchSubject;
|
|
17
19
|
private hasActiveFilters;
|
|
18
|
-
constructor(documentHelperService: DocumentHelperService, documentQuery: DocumentQuery);
|
|
20
|
+
constructor(documentHelperService: DocumentHelperService, documentQuery: DocumentQuery, sessionService: SessionService);
|
|
19
21
|
ngOnInit(): void;
|
|
20
22
|
ngOnDestroy(): void;
|
|
21
23
|
/**
|
|
@@ -48,6 +50,10 @@ export declare class DocumentSearchComponent implements OnInit, OnDestroy {
|
|
|
48
50
|
* Determines if the Clear All button should be visible
|
|
49
51
|
*/
|
|
50
52
|
get shouldShowClearAll(): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Determines if the Actions button should be visible
|
|
55
|
+
*/
|
|
56
|
+
get shouldShowActionButton(): boolean;
|
|
51
57
|
/**
|
|
52
58
|
* Toggles the actions dropdown menu
|
|
53
59
|
*/
|
|
@@ -84,14 +84,14 @@ export declare class DocumentHttpService {
|
|
|
84
84
|
* Fetches a document by its path name and transforms the response for dropdown options.
|
|
85
85
|
* @param {string} documentId - The document ID to fetch the document.
|
|
86
86
|
* @returns {Observable<any>} Observable that emits the transformed data for dropdown options.
|
|
87
|
-
|
|
87
|
+
*/
|
|
88
88
|
getAlertsByDocumentID(documentId: string): Observable<DocumentAlertModel>;
|
|
89
89
|
/**
|
|
90
90
|
* Fetches a document by its folder ID and transforms the response for dropdown options.
|
|
91
91
|
* @param {string} folderId - The folder ID to fetch the document.
|
|
92
92
|
* @param {string} contextId - The context ID to fetch the document.
|
|
93
93
|
* @returns {Observable<any>} Observable that emits the transformed data for dropdown options.
|
|
94
|
-
|
|
94
|
+
*/
|
|
95
95
|
getDocumentByFolderID(folderId: string, contextId: string): Observable<DocumentModel[]>;
|
|
96
96
|
/**
|
|
97
97
|
* Updates the name of a document.
|