cat-documents-ng 0.2.48 → 0.2.49

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.
@@ -69,6 +69,14 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
69
69
  * Initialize all data with proper sequencing to avoid duplicate API calls
70
70
  */
71
71
  private initializeData;
72
+ /**
73
+ * Clears all state (store and component) comprehensively
74
+ */
75
+ private clearAllState;
76
+ /**
77
+ * Handles contextId change by clearing all state and refetching data
78
+ */
79
+ private handleContextIdChange;
72
80
  /**
73
81
  * Sets up subscriptions to monitor menu item and user selection changes
74
82
  * to trigger status data fetching and user list refreshing
@@ -36,16 +36,10 @@ export declare class DocumentMenuService {
36
36
  * @returns Total number of documents
37
37
  */
38
38
  getTotalDocuments(item: DocumentCategoryItem): number;
39
- /**
40
- * Calculates completed documents for a menu item
41
- * @param item - The menu item
42
- * @returns Number of completed documents
43
- */
44
- getCompletedDocuments(item: DocumentCategoryItem): number;
45
39
  /**
46
40
  * Gets badge value for a menu item
47
41
  * @param item - The menu item
48
- * @returns Badge value string (e.g., "1/2")
42
+ * @returns Badge value string (e.g., "2/3")
49
43
  */
50
44
  getBadgeValue(item: DocumentCategoryItem): string;
51
45
  /**
@@ -60,6 +54,12 @@ export declare class DocumentMenuService {
60
54
  * @returns True if badge should be shown
61
55
  */
62
56
  shouldShowBadge(item: DocumentCategoryItem): boolean;
57
+ /**
58
+ * Calculates approved documents for a menu item
59
+ * @param item - The menu item
60
+ * @returns Number of approved documents
61
+ */
62
+ getApprovedDocuments(item: DocumentCategoryItem): number;
63
63
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentMenuService, never>;
64
64
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentMenuService>;
65
65
  }
@@ -11,6 +11,7 @@ export declare class DocumentHelperService {
11
11
  private documentStore;
12
12
  private documentQuery;
13
13
  private documentHttpService;
14
+ private selectionWatcherSubscription;
14
15
  constructor(documentStore: DocumentStore, documentQuery: DocumentQuery, documentHttpService: DocumentHttpService);
15
16
  /**
16
17
  * Initialize watcher for selection state changes
@@ -22,6 +23,10 @@ export declare class DocumentHelperService {
22
23
  * @param contextId - The context ID to use for API calls
23
24
  */
24
25
  initializeSelectionWatcherWithInitialLoad(contextId: string): void;
26
+ /**
27
+ * Clean up the selection watcher subscription
28
+ */
29
+ cleanupSelectionWatcher(): void;
25
30
  /**
26
31
  * Set the document data
27
32
  * @param document the document data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.2.48",
3
+ "version": "0.2.49",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"