cat-documents-ng 0.2.48 → 0.2.50

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.
@@ -15,6 +15,8 @@ export declare class DocumentActionsComponent implements OnChanges {
15
15
  showRejectDialog: boolean;
16
16
  acceptNote: string;
17
17
  private _rejectNote;
18
+ isAccepting: boolean;
19
+ isRejecting: boolean;
18
20
  cardClass: string;
19
21
  rejectButtonClass: string;
20
22
  acceptButtonClass: string;
@@ -31,6 +33,10 @@ export declare class DocumentActionsComponent implements OnChanges {
31
33
  * Updates the isRejectNoteEmpty property based on current rejectNote value
32
34
  */
33
35
  private updateRejectNoteEmpty;
36
+ /**
37
+ * Resets the action processing flags
38
+ */
39
+ private resetActionFlags;
34
40
  onAcceptClick(): void;
35
41
  onRejectClick(): void;
36
42
  onDeleteClick(): void;
@@ -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
@@ -62,6 +62,21 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
62
62
  * @type {DocumentViewerState}
63
63
  */
64
64
  currentState: DocumentViewerState;
65
+ /**
66
+ * Computed property to determine if the selected document is an image
67
+ * @type {boolean}
68
+ */
69
+ get isSelectedDocumentImage(): boolean;
70
+ /**
71
+ * Computed property to determine if the selected document is a PDF
72
+ * @type {boolean}
73
+ */
74
+ get isSelectedDocumentPdf(): boolean;
75
+ /**
76
+ * Computed property to determine if the selected document has an unsupported content type
77
+ * @type {boolean}
78
+ */
79
+ get isSelectedDocumentUnsupported(): boolean;
65
80
  /**
66
81
  * Holds the subscription to manage observable cleanup.
67
82
  * @private
@@ -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.50",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"