cat-documents-ng 0.2.50 → 0.2.51
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.
|
@@ -5,6 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class DocumentActionsComponent implements OnChanges {
|
|
6
6
|
private documentActionsService;
|
|
7
7
|
readonly SHARED: typeof SHARED;
|
|
8
|
+
document?: any;
|
|
8
9
|
documentId?: string;
|
|
9
10
|
currentStatus?: typeof SHARED.STATUS_PENDING | typeof SHARED.STATUS_ACCEPTED | typeof SHARED.STATUS_REJECTED_LOWERCASE;
|
|
10
11
|
isLoading?: boolean;
|
|
@@ -44,5 +45,5 @@ export declare class DocumentActionsComponent implements OnChanges {
|
|
|
44
45
|
onRejectConfirm(): void;
|
|
45
46
|
onCancel(): void;
|
|
46
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentActionsComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentActionsComponent, "document-actions", never, { "documentId": { "alias": "documentId"; "required": false; }; "currentStatus": { "alias": "currentStatus"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isUploaded": { "alias": "isUploaded"; "required": false; }; "statusId": { "alias": "statusId"; "required": false; }; }, { "actionPerformed": "actionPerformed"; }, never, never, false, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentActionsComponent, "document-actions", never, { "document": { "alias": "document"; "required": false; }; "documentId": { "alias": "documentId"; "required": false; }; "currentStatus": { "alias": "currentStatus"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isUploaded": { "alias": "isUploaded"; "required": false; }; "statusId": { "alias": "statusId"; "required": false; }; }, { "actionPerformed": "actionPerformed"; }, never, never, false, never>;
|
|
48
49
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { DocumentService } from '../../state/document.service';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
3
4
|
import { DocumentHttpService } from '../../services/document-http.service';
|
|
4
5
|
import { DocumentQuery } from '../../state/document.query';
|
|
5
6
|
import { DocumentStore } from '../../state/document.store';
|
|
@@ -52,10 +53,10 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
|
|
|
52
53
|
documentListResponse: DocumentListResponse[] | null;
|
|
53
54
|
/**
|
|
54
55
|
* Holds the subscription to manage observable cleanup.
|
|
55
|
-
* @
|
|
56
|
+
* @
|
|
56
57
|
* @type {Subscription}
|
|
57
58
|
*/
|
|
58
|
-
|
|
59
|
+
subscription: Subscription;
|
|
59
60
|
/**
|
|
60
61
|
* Handles changes to input properties
|
|
61
62
|
*/
|
|
@@ -68,24 +69,24 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
|
|
|
68
69
|
/**
|
|
69
70
|
* Initialize all data with proper sequencing to avoid duplicate API calls
|
|
70
71
|
*/
|
|
71
|
-
|
|
72
|
+
initializeData(): void;
|
|
72
73
|
/**
|
|
73
74
|
* Clears all state (store and component) comprehensively
|
|
74
75
|
*/
|
|
75
|
-
|
|
76
|
+
clearAllState(): void;
|
|
76
77
|
/**
|
|
77
78
|
* Handles contextId change by clearing all state and refetching data
|
|
78
79
|
*/
|
|
79
|
-
|
|
80
|
+
handleContextIdChange(): void;
|
|
80
81
|
/**
|
|
81
82
|
* Sets up subscriptions to monitor menu item and user selection changes
|
|
82
83
|
* to trigger status data fetching and user list refreshing
|
|
83
84
|
*/
|
|
84
|
-
|
|
85
|
+
setupStatusDataSubscriptions(): void;
|
|
85
86
|
/**
|
|
86
87
|
* Fetches status data based on current selections
|
|
87
88
|
*/
|
|
88
|
-
|
|
89
|
+
fetchStatusData(): void;
|
|
89
90
|
/**
|
|
90
91
|
* Fetches userlist data with current filters applied
|
|
91
92
|
*/
|
|
@@ -97,11 +98,11 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
|
|
|
97
98
|
/**
|
|
98
99
|
* Refetches all data when contextId changes
|
|
99
100
|
*/
|
|
100
|
-
|
|
101
|
+
refetchAllDataForNewContext(): void;
|
|
101
102
|
/**
|
|
102
103
|
* Sets up subscription to listen for filtered document responses
|
|
103
104
|
*/
|
|
104
|
-
|
|
105
|
+
setupFilteredDocumentSubscription(): void;
|
|
105
106
|
/**
|
|
106
107
|
* Unsubscribe subscription on destroy of component and clean up state.
|
|
107
108
|
*/
|