cat-documents-ng 0.3.35 → 0.3.38

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.
@@ -174,11 +174,11 @@ export declare class DocumentContentViewerComponent implements OnChanges, OnInit
174
174
  */
175
175
  ngOnInit(): void;
176
176
  /**
177
- * Downloads the document using a robust approach that bypasses Angular Router interception
177
+ * Downloads the document
178
178
  */
179
179
  downloadDocument(): void;
180
180
  /**
181
- * Opens the document in a new tab using a robust approach that bypasses Angular Router interception
181
+ * Opens the document in a new tab
182
182
  */
183
183
  openInNewTab(): void;
184
184
  /**
@@ -55,17 +55,15 @@ export declare class DocumentHistoryComponent {
55
55
  */
56
56
  toggleAccordion(): void;
57
57
  /**
58
- * Process history data to add computed properties
59
- */
58
+ * Process history data to add computed properties
59
+ */
60
60
  get processedHistoryData(): ProcessedDocumentHistorySection[];
61
61
  /**
62
- * Download document using the service
62
+ * Downloads a document when clicked
63
+ * @param documentUrl - The URL of the document to download
64
+ * @param docName - The name of the document
63
65
  */
64
66
  downloadDocument(documentUrl: string, docName?: string): void;
65
- /**
66
- * Test method to verify download functionality
67
- */
68
- testDownload(): void;
69
67
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentHistoryComponent, never>;
70
68
  static ɵcmp: i0.ɵɵComponentDeclaration<DocumentHistoryComponent, "document-history", never, { "historyData": { "alias": "historyData"; "required": false; }; "showHistory": { "alias": "showHistory"; "required": false; }; }, {}, never, never, false, never>;
71
69
  }
@@ -1,22 +1,29 @@
1
1
  import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
2
2
  import { SHARED } from '../../../../Shared/constant/SHARED';
3
3
  import { DocumentHelperService } from '../../services/document.service';
4
+ import { DocumentQuery } from '../../state/document.query';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class DocumentSearchComponent implements OnInit, OnDestroy {
6
7
  private documentHelperService;
8
+ private documentQuery;
7
9
  readonly SHARED: typeof SHARED;
8
10
  contextId: string;
9
11
  onActionClick: EventEmitter<void>;
10
12
  searchTerm: string;
11
13
  private destroy$;
12
14
  private searchSubject;
13
- constructor(documentHelperService: DocumentHelperService);
15
+ private hasActiveFilters;
16
+ constructor(documentHelperService: DocumentHelperService, documentQuery: DocumentQuery);
14
17
  ngOnInit(): void;
15
18
  ngOnDestroy(): void;
16
19
  /**
17
20
  * Sets up the search input subscription with debouncing
18
21
  */
19
22
  private setupSearchSubscription;
23
+ /**
24
+ * Sets up subscription to monitor all filter states
25
+ */
26
+ private setupFilterSubscription;
20
27
  /**
21
28
  * Handles search term changes from ngModel
22
29
  * @param searchTerm - The search term entered by the user
@@ -35,6 +42,10 @@ export declare class DocumentSearchComponent implements OnInit, OnDestroy {
35
42
  * Clears all filters including search, menu item, user, and status selections
36
43
  */
37
44
  onClearAllFilters(): void;
45
+ /**
46
+ * Determines if the Clear All button should be visible
47
+ */
48
+ get shouldShowClearAll(): boolean;
38
49
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentSearchComponent, never>;
39
50
  static ɵcmp: i0.ɵɵComponentDeclaration<DocumentSearchComponent, "document-search", never, { "contextId": { "alias": "contextId"; "required": false; }; }, { "onActionClick": "onActionClick"; }, never, never, false, never>;
40
51
  }
@@ -27,6 +27,7 @@ export declare class UserListComponent implements OnInit, OnChanges {
27
27
  updateFilteredUserData(): void;
28
28
  ngOnInit(): void;
29
29
  onUserSelect(username: string, id: string): void;
30
+ getAvatarColor(color: string | undefined): string;
30
31
  ngOnDestroy(): void;
31
32
  static ɵfac: i0.ɵɵFactoryDeclaration<UserListComponent, never>;
32
33
  static ɵcmp: i0.ɵɵComponentDeclaration<UserListComponent, "lib-user-list", never, { "userList": { "alias": "userList"; "required": false; }; "categories": { "alias": "categories"; "required": false; }; }, { "userSelected": "userSelected"; }, never, never, false, never>;
@@ -31,23 +31,11 @@ export declare class DocumentHistoryService {
31
31
  */
32
32
  processHistoryData(historyData: DocumentHistorySection[]): ProcessedDocumentHistorySection[];
33
33
  /**
34
- * Downloads a document when clicked using a robust approach that bypasses Angular Router interception
34
+ * Downloads a document when clicked
35
35
  * @param documentUrl - The URL of the document to download
36
36
  * @param docName - The name of the document
37
37
  */
38
38
  downloadDocument(documentUrl: string, docName?: string): void;
39
- /**
40
- * Downloads PDF files directly using a more reliable method
41
- */
42
- private downloadPdfDirectly;
43
- /**
44
- * Downloads other file types using a robust blob approach
45
- */
46
- private downloadWithBlob;
47
- /**
48
- * Fallback download method when other methods fail
49
- */
50
- private fallbackDownload;
51
39
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentHistoryService, never>;
52
40
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentHistoryService>;
53
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.3.35",
3
+ "version": "0.3.38",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"