cat-documents-ng 0.2.44 → 0.2.45
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/fesm2022/cat-documents-ng.mjs +136 -17
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-container/document-container.component.d.ts +11 -3
- package/lib/document/components/document-list/document-list.component.d.ts +10 -2
- package/lib/document/components/document-status/document-status.component.d.ts +5 -3
- package/lib/document/components/documents-menu/documents-menu.component.d.ts +4 -0
- package/lib/document/services/document.service.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { DocumentService } from '../../state/document.service';
|
|
3
3
|
import { DocumentHttpService } from '../../services/document-http.service';
|
|
4
4
|
import { DocumentQuery } from '../../state/document.query';
|
|
@@ -14,7 +14,7 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
* @class DocumentContainerComponent
|
|
15
15
|
* @typedef {DocumentContainerComponent}
|
|
16
16
|
*/
|
|
17
|
-
export declare class DocumentContainerComponent implements OnInit, OnDestroy {
|
|
17
|
+
export declare class DocumentContainerComponent implements OnInit, OnDestroy, OnChanges {
|
|
18
18
|
documentStore: DocumentStore;
|
|
19
19
|
documentService: DocumentService;
|
|
20
20
|
documentQuery: DocumentQuery;
|
|
@@ -56,6 +56,10 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy {
|
|
|
56
56
|
* @type {Subscription}
|
|
57
57
|
*/
|
|
58
58
|
private subscription;
|
|
59
|
+
/**
|
|
60
|
+
* Handles changes to input properties
|
|
61
|
+
*/
|
|
62
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
59
63
|
/**
|
|
60
64
|
* Fetches the folder and document data on initialization.
|
|
61
65
|
* @returns {void}
|
|
@@ -78,12 +82,16 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy {
|
|
|
78
82
|
* Fetches document catagory data.
|
|
79
83
|
*/
|
|
80
84
|
fetchDocumentCatagories(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Refetches all data when contextId changes
|
|
87
|
+
*/
|
|
88
|
+
private refetchAllDataForNewContext;
|
|
81
89
|
/**
|
|
82
90
|
* Sets up subscription to listen for filtered document responses
|
|
83
91
|
*/
|
|
84
92
|
private setupFilteredDocumentSubscription;
|
|
85
93
|
/**
|
|
86
|
-
* Unsubscribe subscription on destroy of component .
|
|
94
|
+
* Unsubscribe subscription on destroy of component and clean up state.
|
|
87
95
|
*/
|
|
88
96
|
ngOnDestroy(): void;
|
|
89
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentContainerComponent, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { DocumentHttpService } from '../../services/document-http.service';
|
|
3
3
|
import { DocumentUploadService } from '../../services/document-upload.service';
|
|
4
4
|
import { Message } from 'primeng/api';
|
|
@@ -15,7 +15,7 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
* Provides functionality for file upload, document selection, and dialog management.
|
|
16
16
|
* @class DocumentListComponent
|
|
17
17
|
*/
|
|
18
|
-
export declare class DocumentListComponent implements OnInit, OnDestroy {
|
|
18
|
+
export declare class DocumentListComponent implements OnInit, OnDestroy, OnChanges {
|
|
19
19
|
documentUploadService: DocumentUploadService;
|
|
20
20
|
documentHttpService: DocumentHttpService;
|
|
21
21
|
documentQuery: DocumentQuery;
|
|
@@ -131,6 +131,10 @@ export declare class DocumentListComponent implements OnInit, OnDestroy {
|
|
|
131
131
|
* @param {DocumentStore} documentStore - The service responsible for storing documents.
|
|
132
132
|
*/
|
|
133
133
|
constructor(documentUploadService: DocumentUploadService, documentHttpService: DocumentHttpService, documentQuery: DocumentQuery, documentStore: DocumentStore, documentTableBuilder: DocumentTableBuilderService, documentHelperService: DocumentHelperService);
|
|
134
|
+
/**
|
|
135
|
+
* Handles changes to input properties
|
|
136
|
+
*/
|
|
137
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
134
138
|
/**
|
|
135
139
|
* Initializes the component by fetching the document type list.
|
|
136
140
|
*/
|
|
@@ -190,6 +194,10 @@ export declare class DocumentListComponent implements OnInit, OnDestroy {
|
|
|
190
194
|
* @param {any} rowData - The row data containing the document to delete
|
|
191
195
|
*/
|
|
192
196
|
handleDeleteAction(rowData: any): void;
|
|
197
|
+
/**
|
|
198
|
+
* Refreshes the document list for a new context
|
|
199
|
+
*/
|
|
200
|
+
private refreshDocumentListForNewContext;
|
|
193
201
|
/**
|
|
194
202
|
* Refreshes the document list after a status update
|
|
195
203
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { DocumentQuery } from '../../state/document.query';
|
|
3
3
|
import { StatusCalculatorService, CalculatedStatusData } from '../../services/status-calculator.service';
|
|
4
4
|
import { DocumentHelperService } from '../../services/document.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DocumentStatusComponent implements OnInit, OnDestroy {
|
|
6
|
+
export declare class DocumentStatusComponent implements OnInit, OnDestroy, OnChanges {
|
|
7
7
|
private documentQuery;
|
|
8
8
|
private documentService;
|
|
9
9
|
private statusCalculatorService;
|
|
@@ -13,10 +13,12 @@ export declare class DocumentStatusComponent implements OnInit, OnDestroy {
|
|
|
13
13
|
statusDataWithPercentages: CalculatedStatusData[];
|
|
14
14
|
private subscription;
|
|
15
15
|
constructor(documentQuery: DocumentQuery, documentService: DocumentHelperService, statusCalculatorService: StatusCalculatorService);
|
|
16
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
17
|
ngOnInit(): void;
|
|
17
|
-
|
|
18
|
+
private refetchStatusData;
|
|
18
19
|
selectStatus(status: string): void;
|
|
19
20
|
private updateCalculatedStatusData;
|
|
21
|
+
ngOnDestroy(): void;
|
|
20
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentStatusComponent, never>;
|
|
21
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentStatusComponent, "lib-document-status", never, { "contextId": { "alias": "contextId"; "required": false; }; "statusData": { "alias": "statusData"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
24
|
}
|
|
@@ -37,6 +37,10 @@ export declare class DocumentsMenuComponent implements OnInit, OnChanges {
|
|
|
37
37
|
onSelectMenuItem(menuItemId: string): void;
|
|
38
38
|
onUnselectMenuItem(): void;
|
|
39
39
|
getSelectedMenuItem(): string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Handles contextId changes by clearing current selection and refreshing data
|
|
42
|
+
*/
|
|
43
|
+
private handleContextIdChange;
|
|
40
44
|
getSelectedMenuItemId(): string | null;
|
|
41
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentsMenuComponent, never>;
|
|
42
46
|
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentsMenuComponent, "lib-documents-menu", never, { "catagories": { "alias": "catagories"; "required": false; }; "applicationNumber": { "alias": "applicationNumber"; "required": false; }; "contextId": { "alias": "contextId"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -117,6 +117,13 @@ export declare class DocumentHelperService {
|
|
|
117
117
|
* @param contextId - The context ID to use for the API call
|
|
118
118
|
*/
|
|
119
119
|
refreshDocumentsWithoutFilters(contextId: string): void;
|
|
120
|
+
/**
|
|
121
|
+
* Refresh status data for a specific context
|
|
122
|
+
* @param contextId - The context ID to use for the API call
|
|
123
|
+
* @param statusContextId - The status context ID (usually userId)
|
|
124
|
+
* @param categoryId - The category ID (usually menuItem)
|
|
125
|
+
*/
|
|
126
|
+
refreshStatusData(contextId: string, statusContextId: string | null, categoryId: string | null): void;
|
|
120
127
|
/**
|
|
121
128
|
* Refresh all data with current filters after accept/reject/delete operations
|
|
122
129
|
* This includes document categories, status data, user list, and document list
|