cat-documents-ng 0.2.49 → 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;
@@ -15,6 +16,8 @@ export declare class DocumentActionsComponent implements OnChanges {
15
16
  showRejectDialog: boolean;
16
17
  acceptNote: string;
17
18
  private _rejectNote;
19
+ isAccepting: boolean;
20
+ isRejecting: boolean;
18
21
  cardClass: string;
19
22
  rejectButtonClass: string;
20
23
  acceptButtonClass: string;
@@ -31,6 +34,10 @@ export declare class DocumentActionsComponent implements OnChanges {
31
34
  * Updates the isRejectNoteEmpty property based on current rejectNote value
32
35
  */
33
36
  private updateRejectNoteEmpty;
37
+ /**
38
+ * Resets the action processing flags
39
+ */
40
+ private resetActionFlags;
34
41
  onAcceptClick(): void;
35
42
  onRejectClick(): void;
36
43
  onDeleteClick(): void;
@@ -38,5 +45,5 @@ export declare class DocumentActionsComponent implements OnChanges {
38
45
  onRejectConfirm(): void;
39
46
  onCancel(): void;
40
47
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentActionsComponent, never>;
41
- 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>;
42
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
- * @private
56
+ * @
56
57
  * @type {Subscription}
57
58
  */
58
- private subscription;
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
- private initializeData;
72
+ initializeData(): void;
72
73
  /**
73
74
  * Clears all state (store and component) comprehensively
74
75
  */
75
- private clearAllState;
76
+ clearAllState(): void;
76
77
  /**
77
78
  * Handles contextId change by clearing all state and refetching data
78
79
  */
79
- private handleContextIdChange;
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
- private setupStatusDataSubscriptions;
85
+ setupStatusDataSubscriptions(): void;
85
86
  /**
86
87
  * Fetches status data based on current selections
87
88
  */
88
- private fetchStatusData;
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
- private refetchAllDataForNewContext;
101
+ refetchAllDataForNewContext(): void;
101
102
  /**
102
103
  * Sets up subscription to listen for filtered document responses
103
104
  */
104
- private setupFilteredDocumentSubscription;
105
+ setupFilteredDocumentSubscription(): void;
105
106
  /**
106
107
  * Unsubscribe subscription on destroy of component and clean up state.
107
108
  */
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.2.49",
3
+ "version": "0.2.51",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"