cat-documents-ng 0.2.86 → 0.2.87

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.
@@ -31,6 +31,10 @@ export declare class DocumentSearchComponent implements OnInit, OnDestroy {
31
31
  * Clears the search input
32
32
  */
33
33
  onClearSearch(): void;
34
+ /**
35
+ * Clears all filters including search, menu item, user, and status selections
36
+ */
37
+ onClearAllFilters(): void;
34
38
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentSearchComponent, never>;
35
39
  static ɵcmp: i0.ɵɵComponentDeclaration<DocumentSearchComponent, "document-search", never, { "contextId": { "alias": "contextId"; "required": false; }; }, { "onActionClick": "onActionClick"; }, never, never, false, never>;
36
40
  }
@@ -0,0 +1,7 @@
1
+ export interface UploadedFileResponse {
2
+ id?: string;
3
+ fileName: string;
4
+ contentType: string;
5
+ url: string;
6
+ size: string;
7
+ }
@@ -4,14 +4,17 @@ import { FileFormatService } from './file-format.service';
4
4
  import { UserListModel } from '../models/user-list.model';
5
5
  import { DocumentCategory } from '../models/document-category.model';
6
6
  import { DocumentTypeModel } from '../models/document-type.model';
7
+ import { UploadedFileResponse } from '../models/uploaded-file-response.model';
7
8
  import * as i0 from "@angular/core";
8
9
  export interface UploadedFile {
9
10
  file: File;
10
- formattedSize: string;
11
- progress: number;
12
- uploadResponse?: any;
11
+ formattedSize?: string;
12
+ progress?: number;
13
+ uploadResponse?: UploadedFileResponse;
13
14
  url?: string;
14
15
  contentType?: string;
16
+ fileName?: string;
17
+ size?: string;
15
18
  }
16
19
  export interface DocumentUploadPayload {
17
20
  source: 'Applicant' | 'Application';
@@ -25,6 +28,7 @@ export interface DocumentUploadPayload {
25
28
  uploadedFileId?: string;
26
29
  url?: string;
27
30
  contentType?: string;
31
+ size?: string;
28
32
  }[];
29
33
  }
30
34
  export declare class DocumentUploadBusinessService {
@@ -46,6 +46,11 @@ export declare class DocumentQuery extends QueryEntity<DocumentState> {
46
46
  * @returns {Observable<DocumentCategory[]>} Observable that emits the document categories.
47
47
  */
48
48
  selectDocumentCategories(): Observable<DocumentCategory[]>;
49
+ /**
50
+ * Gets the current document categories value (synchronous).
51
+ * @returns {DocumentCategory[]} The current document categories.
52
+ */
53
+ getDocumentCategories(): DocumentCategory[];
49
54
  /**
50
55
  * Selects the currently selected menu item.
51
56
  * @returns {Observable<string | null>} Observable that emits the currently selected menu item _id (not the label).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.2.86",
3
+ "version": "0.2.87",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"
package/public-api.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './lib/document/components/document-list/document-list.component';
7
7
  export * from './lib/document/components/document-search/document-search.component';
8
8
  export * from './lib/document/components/sidebar/sidebar.component';
9
9
  export * from './lib/document/models/document-history.model';
10
+ export * from './lib/document/models/uploaded-file-response.model';
10
11
  export * from './lib/document/services/document-table-builder.service';
11
12
  export * from './lib/document/directives/document.directive';
12
13
  export * from './lib/document/directives/permission.directive';