cat-documents-ng 0.3.83 → 0.3.84
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/README.md +322 -322
- package/Shared/components/table-primary/table-primary.component.d.ts +1 -1
- package/Shared/constant/SHARED.d.ts +7 -1
- package/fesm2022/cat-documents-ng.mjs +254 -203
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-content-viewer/document-content-viewer.component.d.ts +2 -5
- package/lib/document/components/document-history/document-history.component.d.ts +9 -1
- package/lib/document/models/document-history.model.d.ts +13 -0
- package/lib/document/models/document-list-response.model.d.ts +1 -0
- package/lib/document/services/document-upload-business.service.d.ts +4 -4
- package/lib/document/services/document-upload.service.d.ts +1 -1
- package/lib/document/services/document-viewer.service.d.ts +1 -1
- package/package.json +1 -1
package/lib/document/components/document-content-viewer/document-content-viewer.component.d.ts
CHANGED
|
@@ -123,11 +123,6 @@ export declare class DocumentContentViewerComponent implements OnChanges, OnInit
|
|
|
123
123
|
* @param {DocumentZoomService} zoomService - Service for handling zoom functionality
|
|
124
124
|
*/
|
|
125
125
|
constructor(excelParserService: ExcelParserService, csvParserService: CsvParserService, documentHttpService: DocumentHttpService, zoomService: DocumentZoomService);
|
|
126
|
-
/**
|
|
127
|
-
* Computed property to determine if the document is an image
|
|
128
|
-
* @type {boolean}
|
|
129
|
-
*/
|
|
130
|
-
get isImage(): boolean;
|
|
131
126
|
/**
|
|
132
127
|
* Computed property to determine if the document is a PDF
|
|
133
128
|
* @type {boolean}
|
|
@@ -259,6 +254,8 @@ export declare class DocumentContentViewerComponent implements OnChanges, OnInit
|
|
|
259
254
|
* @returns {boolean} True if CSV data is valid
|
|
260
255
|
*/
|
|
261
256
|
private isCsvDataValid;
|
|
257
|
+
private getFileExtension;
|
|
258
|
+
get isImage(): boolean;
|
|
262
259
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentContentViewerComponent, never>;
|
|
263
260
|
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContentViewerComponent, "document-content-viewer", never, { "documentUrl": { "alias": "documentUrl"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; "documentName": { "alias": "documentName"; "required": false; }; "selectedDocument": { "alias": "selectedDocument"; "required": false; }; "contextId": { "alias": "contextId"; "required": false; }; "isFormHide": { "alias": "isFormHide"; "required": false; }; }, {}, never, never, false, never>;
|
|
264
261
|
}
|
|
@@ -29,6 +29,10 @@ export declare class DocumentHistoryComponent implements OnChanges {
|
|
|
29
29
|
* The selected document for actions
|
|
30
30
|
*/
|
|
31
31
|
selectedDocument?: any;
|
|
32
|
+
/**
|
|
33
|
+
* The document type name for displaying alerts
|
|
34
|
+
*/
|
|
35
|
+
documentTypeName?: string;
|
|
32
36
|
/**
|
|
33
37
|
* Event emitted when delete task is requested
|
|
34
38
|
*/
|
|
@@ -84,6 +88,10 @@ export declare class DocumentHistoryComponent implements OnChanges {
|
|
|
84
88
|
* Get alert count for the alerts section
|
|
85
89
|
*/
|
|
86
90
|
getAlertCount(): number;
|
|
91
|
+
/**
|
|
92
|
+
* Get alerts based on document type name
|
|
93
|
+
*/
|
|
94
|
+
getAlertsForDocumentType(): string[];
|
|
87
95
|
/**
|
|
88
96
|
* Get CSS class for event card based on action type
|
|
89
97
|
*/
|
|
@@ -144,5 +152,5 @@ export declare class DocumentHistoryComponent implements OnChanges {
|
|
|
144
152
|
*/
|
|
145
153
|
onDocumentClickOutside(event: Event): void;
|
|
146
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentHistoryComponent, never>;
|
|
147
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentHistoryComponent, "document-history", never, { "historyData": { "alias": "historyData"; "required": false; }; "showHistory": { "alias": "showHistory"; "required": false; }; "contextId": { "alias": "contextId"; "required": false; }; "selectedDocument": { "alias": "selectedDocument"; "required": false; }; }, { "deleteTaskRequested": "deleteTaskRequested"; "documentSelected": "documentSelected"; }, never, ["*", "[actions-component]"], false, never>;
|
|
155
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentHistoryComponent, "document-history", never, { "historyData": { "alias": "historyData"; "required": false; }; "showHistory": { "alias": "showHistory"; "required": false; }; "contextId": { "alias": "contextId"; "required": false; }; "selectedDocument": { "alias": "selectedDocument"; "required": false; }; "documentTypeName": { "alias": "documentTypeName"; "required": false; }; }, { "deleteTaskRequested": "deleteTaskRequested"; "documentSelected": "documentSelected"; }, never, ["*", "[actions-component]"], false, never>;
|
|
148
156
|
}
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* Represents a document in the history item.
|
|
3
3
|
*/
|
|
4
4
|
export interface HistoryDocument {
|
|
5
|
+
/**
|
|
6
|
+
* Unique identifier of the document
|
|
7
|
+
*/
|
|
8
|
+
_id?: string | null;
|
|
5
9
|
/**
|
|
6
10
|
* Name of the document
|
|
7
11
|
*/
|
|
@@ -14,6 +18,15 @@ export interface HistoryDocument {
|
|
|
14
18
|
* Content type of the document
|
|
15
19
|
*/
|
|
16
20
|
contentType: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Parent request/task document id, if applicable
|
|
23
|
+
*/
|
|
24
|
+
parentDocumentId?: string | null;
|
|
25
|
+
/** Optional alias and flags preserved if backend provides them */
|
|
26
|
+
aliasName?: string | null;
|
|
27
|
+
isAliasEditable?: boolean | null;
|
|
28
|
+
documentTypeName?: string | null;
|
|
29
|
+
isSystemDocument?: boolean | null;
|
|
17
30
|
}
|
|
18
31
|
/**
|
|
19
32
|
* Represents a document history item.
|
|
@@ -91,10 +91,10 @@ export declare class DocumentUploadBusinessService {
|
|
|
91
91
|
* Resets form data to initial state
|
|
92
92
|
*/
|
|
93
93
|
getInitialFormState(): {
|
|
94
|
-
selectedAssignmentType:
|
|
95
|
-
selectedApplicant:
|
|
96
|
-
selectedCategory:
|
|
97
|
-
selectedDocumentType:
|
|
94
|
+
selectedAssignmentType: any;
|
|
95
|
+
selectedApplicant: any;
|
|
96
|
+
selectedCategory: any;
|
|
97
|
+
selectedDocumentType: any;
|
|
98
98
|
uploadedFiles: UploadedFile[];
|
|
99
99
|
isFormValid: boolean;
|
|
100
100
|
};
|
|
@@ -84,7 +84,7 @@ export declare class DocumentUploadService {
|
|
|
84
84
|
* Handle the creation of formdata.
|
|
85
85
|
* @returns {*} - The formdata object.
|
|
86
86
|
*/
|
|
87
|
-
handleCreateFormData(uploadedFile?: File, contextId?: string): FormData
|
|
87
|
+
handleCreateFormData(uploadedFile?: File, contextId?: string): FormData;
|
|
88
88
|
/**
|
|
89
89
|
* Generic method to sort any list of objects by a specified property.
|
|
90
90
|
* Supports fallback properties if the primary property is undefined.
|
|
@@ -64,7 +64,7 @@ export declare class DocumentViewerService {
|
|
|
64
64
|
*/
|
|
65
65
|
private updateDocumentStatus;
|
|
66
66
|
/**
|
|
67
|
-
* Deletes a document
|
|
67
|
+
* Deletes a document without immediate refresh - refresh will happen when viewer is closed
|
|
68
68
|
* @param documentId The ID of the document to delete
|
|
69
69
|
* @param contextId The context ID for API calls
|
|
70
70
|
*/
|