cat-documents-ng 0.2.31 → 0.2.34

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.
@@ -54,6 +54,7 @@ export declare class DocumentContainerComponent implements OnInit {
54
54
  * @type {Array}
55
55
  */
56
56
  folderList: FolderBlockModel[];
57
+ items: any;
57
58
  /**
58
59
  * Holds the subscription to manage observable cleanup.
59
60
  * @private
@@ -6,6 +6,8 @@ import { Message } from 'primeng/api';
6
6
  import { DocumentQuery } from '../../state/document.query';
7
7
  import { DocumentStore } from '../../state/document.store';
8
8
  import { PERMISSIONS } from '../../../../Shared/constant/PERMISSIONS';
9
+ import { DocumentTableBuilderService, DocumentSection } from '../../services/document-table-builder.service';
10
+ import { TableData } from '../../../../Shared/components/table-primary/table-primary.component';
9
11
  import * as i0 from "@angular/core";
10
12
  /**
11
13
  * This component is responsible for displaying and managing a list of documents.
@@ -17,6 +19,7 @@ export declare class DocumentListComponent implements OnInit {
17
19
  documentHttpService: DocumentHttpService;
18
20
  documentQuery: DocumentQuery;
19
21
  documentStore: DocumentStore;
22
+ private documentTableBuilder;
20
23
  onRefresh: EventEmitter<any>;
21
24
  /**
22
25
  * Represents the context ID for the document list.
@@ -96,6 +99,14 @@ export declare class DocumentListComponent implements OnInit {
96
99
  * @type {string | undefined}
97
100
  */
98
101
  fileName: string | undefined;
102
+ /**
103
+ * Document sections data for rendering tables
104
+ */
105
+ documentSections: DocumentSection[];
106
+ /**
107
+ * Table data for each section
108
+ */
109
+ sectionTables: TableData[];
99
110
  /**
100
111
  * Creates an instance of DocumentListComponent.
101
112
  * @class
@@ -104,7 +115,7 @@ export declare class DocumentListComponent implements OnInit {
104
115
  * @param {DocumentQuery} documentQuery - The service responsible for geting stored documents.
105
116
  * @param {DocumentStore} documentStore - The service responsible for storing documents.
106
117
  */
107
- constructor(documentUploadService: DocumentUploadService, documentHttpService: DocumentHttpService, documentQuery: DocumentQuery, documentStore: DocumentStore);
118
+ constructor(documentUploadService: DocumentUploadService, documentHttpService: DocumentHttpService, documentQuery: DocumentQuery, documentStore: DocumentStore, documentTableBuilder: DocumentTableBuilderService);
108
119
  /**
109
120
  * Initializes the component by fetching the document type list.
110
121
  */
@@ -150,6 +161,14 @@ export declare class DocumentListComponent implements OnInit {
150
161
  */
151
162
  getDocumentTypeList(): void;
152
163
  handleOpenSideBar(isVisible: boolean): void;
164
+ /**
165
+ * Builds table data for all document sections
166
+ */
167
+ private buildSectionTables;
168
+ /**
169
+ * Gets completion count for a section
170
+ */
171
+ getCompletionCount(section: DocumentSection): string;
153
172
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentListComponent, never>;
154
173
  static ɵcmp: i0.ɵɵComponentDeclaration<DocumentListComponent, "lib-document-list", never, { "contextId": { "alias": "contextId"; "required": false; }; "isUploadButtonVisible": { "alias": "isUploadButtonVisible"; "required": false; }; "isCollapsed": { "alias": "isCollapsed"; "required": false; }; "documentList": { "alias": "documentList"; "required": false; }; }, { "onRefresh": "onRefresh"; }, never, ["*"], false, never>;
155
174
  }
@@ -0,0 +1,25 @@
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
+ import { StatusDataModel } from '../../models/document-status.model';
3
+ import { DocumentStore } from '../../state/document.store';
4
+ import { DocumentQuery } from '../../state/document.query';
5
+ import { DocumentService } from '../../services/document.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DocumentStatusComponent implements OnInit, OnDestroy {
8
+ private documentStore;
9
+ private documentQuery;
10
+ private documentService;
11
+ statusData: StatusDataModel[];
12
+ selectedStatus: string | null;
13
+ private subscription;
14
+ constructor(documentStore: DocumentStore, documentQuery: DocumentQuery, documentService: DocumentService);
15
+ ngOnInit(): void;
16
+ ngOnDestroy(): void;
17
+ getTotalCount(): number;
18
+ getPercentage(count: number): number;
19
+ selectStatus(status: string): void;
20
+ isSelected(status: string): boolean;
21
+ setExampleSelections(): void;
22
+ clearAllSelections(): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocumentStatusComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentStatusComponent, "lib-document-status", never, {}, {}, never, never, false, never>;
25
+ }
@@ -1,6 +1,21 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { DocumentStore } from '../../state/document.store';
3
+ import { DocumentQuery } from '../../state/document.query';
1
4
  import * as i0 from "@angular/core";
2
- export declare class DocumentsMenuComponent {
5
+ export declare class DocumentsMenuComponent implements OnInit {
6
+ private documentStore;
7
+ private documentQuery;
3
8
  items: any;
9
+ selectedMenuItem: string | null;
10
+ constructor(documentStore: DocumentStore, documentQuery: DocumentQuery);
11
+ ngOnInit(): void;
12
+ onMenuItemClick(event: any, item: any): void;
13
+ selectMenuItem(menuItemLabel: string): void;
14
+ unselectMenuItem(): void;
15
+ isMenuItemSelected(menuItemLabel: string): boolean;
16
+ getSelectedMenuItem(): string | null;
17
+ private getMenuItemCategory;
18
+ private handleUserListVisibility;
4
19
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentsMenuComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentsMenuComponent, "lib-documents-menu", never, {}, {}, never, never, false, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentsMenuComponent, "lib-documents-menu", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, false, never>;
6
21
  }
@@ -1,5 +1,7 @@
1
+ import { OnInit } from '@angular/core';
1
2
  import { DocumentModel } from '../../models/document.model';
2
3
  import { FolderBlockModel } from '../../models/folder.model';
4
+ import { DocumentQuery } from '../../state/document.query';
3
5
  import * as i0 from "@angular/core";
4
6
  /**
5
7
  * The `FolderContainerComponent` is responsible for rendering a container
@@ -8,7 +10,8 @@ import * as i0 from "@angular/core";
8
10
  * This component utilizes the `FOLDERPANEL` constant for folder panel data
9
11
  * and accepts a document list input of type `DocumentModel`.
10
12
  */
11
- export declare class FolderContainerComponent {
13
+ export declare class FolderContainerComponent implements OnInit {
14
+ private documentQuery;
12
15
  /**
13
16
  * A list of documents passed as input to the component.
14
17
  * Represents the document data to be displayed in the folder container.
@@ -24,6 +27,16 @@ export declare class FolderContainerComponent {
24
27
  * @type {string}
25
28
  */
26
29
  contextId: string;
30
+ /**
31
+ * Flag to control user list visibility
32
+ */
33
+ showUserList: boolean;
34
+ constructor(documentQuery: DocumentQuery);
35
+ ngOnInit(): void;
36
+ /**
37
+ * Get the animation state for the user list
38
+ */
39
+ getUserListAnimationState(): string;
27
40
  static ɵfac: i0.ɵɵFactoryDeclaration<FolderContainerComponent, never>;
28
41
  static ɵcmp: i0.ɵɵComponentDeclaration<FolderContainerComponent, "lib-folder-container", never, { "documentList": { "alias": "documentList"; "required": false; }; "folderList": { "alias": "folderList"; "required": false; }; "contextId": { "alias": "contextId"; "required": false; }; }, {}, never, never, false, never>;
29
42
  }
@@ -0,0 +1,32 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { DocumentService } from '../../services/document.service';
3
+ import { DocumentStore } from '../../state/document.store';
4
+ import { DocumentQuery } from '../../state/document.query';
5
+ import * as i0 from "@angular/core";
6
+ export interface UserData {
7
+ _id: string;
8
+ username: string;
9
+ approveDocumentCount: number;
10
+ pendingDocumentCount: number;
11
+ initials?: string;
12
+ color: string;
13
+ }
14
+ export declare class UserListComponent implements OnInit {
15
+ documentService: DocumentService;
16
+ private documentStore;
17
+ private documentQuery;
18
+ userData: UserData[];
19
+ selectedUser?: string;
20
+ userSelected: EventEmitter<string>;
21
+ constructor(documentService: DocumentService, documentStore: DocumentStore, documentQuery: DocumentQuery);
22
+ ngOnInit(): void;
23
+ getInitials(username: string): string;
24
+ getColorByIndex(index: number): string;
25
+ getColorValue(colorName: string): string;
26
+ onUserSelect(username: string, id: string): void;
27
+ selectUser(userId: string): void;
28
+ unselectUser(): void;
29
+ isUserSelected(userId: string): boolean;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserListComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserListComponent, "lib-user-list", never, {}, { "userSelected": "userSelected"; }, never, never, false, never>;
32
+ }
@@ -10,26 +10,30 @@ import * as i8 from "./directives/document.directive";
10
10
  import * as i9 from "./directives/permission.directive";
11
11
  import * as i10 from "./components/linked-document/linked-document.component";
12
12
  import * as i11 from "./components/documents-menu/documents-menu.component";
13
- import * as i12 from "@angular/common";
14
- import * as i13 from "primeng/accordion";
15
- import * as i14 from "@angular/common/http";
16
- import * as i15 from "primeng/button";
17
- import * as i16 from "primeng/sidebar";
18
- import * as i17 from "primeng/fileupload";
19
- import * as i18 from "primeng/progressbar";
20
- import * as i19 from "primeng/badge";
21
- import * as i20 from "primeng/listbox";
22
- import * as i21 from "primeng/checkbox";
23
- import * as i22 from "primeng/timeline";
24
- import * as i23 from "primeng/inputtextarea";
25
- import * as i24 from "@angular/forms";
26
- import * as i25 from "ng2-pdf-viewer";
27
- import * as i26 from "primeng/dialog";
28
- import * as i27 from "primeng/dropdown";
29
- import * as i28 from "primeng/inputtext";
30
- import * as i29 from "primeng/menu";
31
- import * as i30 from "primeng/panelmenu";
32
- import * as i31 from "primeng/card";
13
+ import * as i12 from "./components/user-list/user-list.component";
14
+ import * as i13 from "./components/document-status/document-status.component";
15
+ import * as i14 from "@angular/common";
16
+ import * as i15 from "primeng/accordion";
17
+ import * as i16 from "@angular/common/http";
18
+ import * as i17 from "primeng/button";
19
+ import * as i18 from "primeng/sidebar";
20
+ import * as i19 from "primeng/fileupload";
21
+ import * as i20 from "primeng/progressbar";
22
+ import * as i21 from "primeng/badge";
23
+ import * as i22 from "primeng/listbox";
24
+ import * as i23 from "primeng/checkbox";
25
+ import * as i24 from "primeng/timeline";
26
+ import * as i25 from "primeng/inputtextarea";
27
+ import * as i26 from "@angular/forms";
28
+ import * as i27 from "ng2-pdf-viewer";
29
+ import * as i28 from "primeng/dialog";
30
+ import * as i29 from "primeng/dropdown";
31
+ import * as i30 from "primeng/inputtext";
32
+ import * as i31 from "primeng/menu";
33
+ import * as i32 from "primeng/panelmenu";
34
+ import * as i33 from "primeng/card";
35
+ import * as i34 from "primeng/table";
36
+ import * as i35 from "../../Shared/shared.module";
33
37
  /**
34
38
  * @module DocumentModule
35
39
  *
@@ -39,6 +43,6 @@ import * as i31 from "primeng/card";
39
43
  */
40
44
  export declare class DocumentModule {
41
45
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentModule, never>;
42
- static ɵmod: i0.ɵɵNgModuleDeclaration<DocumentModule, [typeof i1.DocumentContainerComponent, typeof i2.FolderContainerComponent, typeof i3.FolderBlockComponent, typeof i4.DocumentListComponent, typeof i5.DocumentListItemComponent, typeof i6.DocumentUploadComponent, typeof i7.DocumentViewerComponent, typeof i8.DocumentDirective, typeof i9.HasPermissionDirective, typeof i10.LinkedDocumentComponent, typeof i11.DocumentsMenuComponent], [typeof i12.CommonModule, typeof i13.AccordionModule, typeof i14.HttpClientModule, typeof i15.ButtonModule, typeof i16.SidebarModule, typeof i17.FileUploadModule, typeof i18.ProgressBarModule, typeof i19.BadgeModule, typeof i20.ListboxModule, typeof i21.CheckboxModule, typeof i22.TimelineModule, typeof i23.InputTextareaModule, typeof i24.FormsModule, typeof i25.PdfViewerModule, typeof i26.DialogModule, typeof i27.DropdownModule, typeof i28.InputTextModule, typeof i29.MenuModule, typeof i30.PanelMenuModule, typeof i31.CardModule], [typeof i9.HasPermissionDirective, typeof i1.DocumentContainerComponent, typeof i7.DocumentViewerComponent, typeof i4.DocumentListComponent, typeof i8.DocumentDirective]>;
46
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DocumentModule, [typeof i1.DocumentContainerComponent, typeof i2.FolderContainerComponent, typeof i3.FolderBlockComponent, typeof i4.DocumentListComponent, typeof i5.DocumentListItemComponent, typeof i6.DocumentUploadComponent, typeof i7.DocumentViewerComponent, typeof i8.DocumentDirective, typeof i9.HasPermissionDirective, typeof i10.LinkedDocumentComponent, typeof i11.DocumentsMenuComponent, typeof i12.UserListComponent, typeof i13.DocumentStatusComponent], [typeof i14.CommonModule, typeof i15.AccordionModule, typeof i16.HttpClientModule, typeof i17.ButtonModule, typeof i18.SidebarModule, typeof i19.FileUploadModule, typeof i20.ProgressBarModule, typeof i21.BadgeModule, typeof i22.ListboxModule, typeof i23.CheckboxModule, typeof i24.TimelineModule, typeof i25.InputTextareaModule, typeof i26.FormsModule, typeof i27.PdfViewerModule, typeof i28.DialogModule, typeof i29.DropdownModule, typeof i30.InputTextModule, typeof i31.MenuModule, typeof i32.PanelMenuModule, typeof i33.CardModule, typeof i34.TableModule, typeof i35.SharedModule], [typeof i9.HasPermissionDirective, typeof i1.DocumentContainerComponent, typeof i7.DocumentViewerComponent, typeof i4.DocumentListComponent, typeof i8.DocumentDirective]>;
43
47
  static ɵinj: i0.ɵɵInjectorDeclaration<DocumentModule>;
44
48
  }
@@ -0,0 +1,6 @@
1
+ export declare class StatusDataModel {
2
+ status?: string;
3
+ count?: number;
4
+ color?: string;
5
+ icon?: string;
6
+ }
@@ -64,6 +64,15 @@ export declare class DocumentHttpService {
64
64
  * @returns {Observable<DocumentModel>} An observable that emits the updated DocumentModel.
65
65
  */
66
66
  updateDocumentName(documentId: string, payload: any): Observable<DocumentModel>;
67
+ /**
68
+ * Fetches documents based on selection criteria (menu item, user ID, and status).
69
+ * This method sends an HTTP GET request with query parameters for the selected filters.
70
+ * @param {string | null} menuItem - The selected menu item filter.
71
+ * @param {string | null} userId - The selected user ID filter.
72
+ * @param {string | null} status - The selected status filter.
73
+ * @returns {Observable<any>} An observable that emits the filtered document data.
74
+ */
75
+ getDocumentsBySelection(menuItem: string | null, userId: string | null, status: string | null): Observable<any>;
67
76
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentHttpService, never>;
68
77
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentHttpService>;
69
78
  }
@@ -0,0 +1,52 @@
1
+ import { TableData } from '../../../Shared/components/table-primary/table-primary.component';
2
+ import * as i0 from "@angular/core";
3
+ export interface DocumentSection {
4
+ header: string;
5
+ description: string;
6
+ pendingDocument: number;
7
+ approvedDocument: number;
8
+ list: DocumentItem[];
9
+ }
10
+ export interface DocumentItem {
11
+ documentName: string;
12
+ documentType: string;
13
+ documentUrl: string;
14
+ status: string;
15
+ applicantName: string;
16
+ uploadedTime: string;
17
+ }
18
+ export declare class DocumentTableBuilderService {
19
+ constructor();
20
+ /**
21
+ * Builds table data for document sections
22
+ * @param sections Array of document sections
23
+ * @returns Array of TableData objects
24
+ */
25
+ buildDocumentSectionsTables(sections: DocumentSection[]): TableData[];
26
+ /**
27
+ * Builds table data for a single document section
28
+ * @param section Document section
29
+ * @returns TableData object
30
+ */
31
+ private buildTableForSection;
32
+ /**
33
+ * Builds a single table from document list
34
+ * @param documents Array of document items
35
+ * @returns TableData object
36
+ */
37
+ buildDocumentTable(documents: DocumentItem[]): TableData;
38
+ /**
39
+ * Gets completion count for a section
40
+ * @param section Document section
41
+ * @returns Completion string (e.g., "2/4")
42
+ */
43
+ getCompletionCount(section: DocumentSection): string;
44
+ /**
45
+ * Transforms document model to document item
46
+ * @param documents Array of DocumentModel
47
+ * @returns Array of DocumentItem
48
+ */
49
+ transformDocumentModelToItem(documents: any[]): DocumentItem[];
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTableBuilderService, never>;
51
+ static ɵprov: i0.ɵɵInjectableDeclaration<DocumentTableBuilderService>;
52
+ }
@@ -1,10 +1,22 @@
1
+ import { Observable } from "rxjs";
1
2
  import { DocumentModel } from "../models/document.model";
3
+ import { DocumentStore } from "../state/document.store";
4
+ import { DocumentQuery } from "../state/document.query";
5
+ import { DocumentHttpService } from "./document-http.service";
2
6
  import * as i0 from "@angular/core";
3
7
  /**
4
- * Service to manage the document data
8
+ * Service to manage the document data and selection state
5
9
  */
6
10
  export declare class DocumentService {
11
+ private documentStore;
12
+ private documentQuery;
13
+ private documentHttpService;
7
14
  private documentSubject$;
15
+ constructor(documentStore: DocumentStore, documentQuery: DocumentQuery, documentHttpService: DocumentHttpService);
16
+ /**
17
+ * Initialize watcher for selection state changes
18
+ */
19
+ private initializeSelectionWatcher;
8
20
  /**
9
21
  * Set the document data
10
22
  * @param document the document data
@@ -14,7 +26,51 @@ export declare class DocumentService {
14
26
  * Get the document data
15
27
  * @returns the document data
16
28
  */
17
- get(): import("rxjs").Observable<DocumentModel | null>;
29
+ get(): Observable<DocumentModel | null>;
30
+ /**
31
+ * Set the selected menu item
32
+ * @param menuItem the selected menu item
33
+ */
34
+ setSelectedMenuItem(menuItem: string | null): void;
35
+ /**
36
+ * Set the selected user ID
37
+ * @param userId the selected user ID
38
+ */
39
+ setSelectedUserId(userId: string | null): void;
40
+ /**
41
+ * Set the selected status
42
+ * @param status the selected status
43
+ */
44
+ setSelectedStatus(status: string | null): void;
45
+ /**
46
+ * Set all selection state at once
47
+ * @param menuItem the selected menu item
48
+ * @param userId the selected user ID
49
+ * @param status the selected status
50
+ */
51
+ setSelectionState(menuItem: string | null, userId: string | null, status: string | null): void;
52
+ /**
53
+ * Clear all selection state
54
+ */
55
+ clearSelectionState(): void;
56
+ /**
57
+ * Set user list visibility
58
+ * @param show whether to show the user list
59
+ */
60
+ setShowUserList(show: boolean): void;
61
+ /**
62
+ * Get the current selection state
63
+ * @returns observable of the current selection state
64
+ */
65
+ getSelectionState(): Observable<{
66
+ menuItem: string | null;
67
+ userId: string | null;
68
+ status: string | null;
69
+ }>;
70
+ /**
71
+ * Manually trigger API call with current selection state
72
+ */
73
+ refreshDocumentsWithCurrentSelection(): void;
18
74
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentService, never>;
19
75
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentService>;
20
76
  }
@@ -35,6 +35,49 @@ export declare class DocumentQuery extends QueryEntity<DocumentState> {
35
35
  * @returns {Observable<DocumentModel[]>} Observable that emits the documets.
36
36
  */
37
37
  selectDocumets(): Observable<DocumentModel[]>;
38
+ /**
39
+ * Selects the currently selected menu item.
40
+ * @returns {Observable<string | null>} Observable that emits the currently selected menu item.
41
+ */
42
+ selectSelectedMenuItem(): Observable<string | null>;
43
+ /**
44
+ * Selects the currently selected user ID.
45
+ * @returns {Observable<string | null>} Observable that emits the currently selected user ID.
46
+ */
47
+ selectSelectedUserId(): Observable<string | null>;
48
+ /**
49
+ * Selects the currently selected status.
50
+ * @returns {Observable<string | null>} Observable that emits the currently selected status.
51
+ */
52
+ selectSelectedStatus(): Observable<string | null>;
53
+ /**
54
+ * Selects all selection state properties (menu item, user ID, status).
55
+ * @returns {Observable<{menuItem: string | null, userId: string | null, status: string | null}>} Observable that emits the current selection state.
56
+ */
57
+ selectSelectionState(): Observable<{
58
+ menuItem: string | null;
59
+ userId: string | null;
60
+ status: string | null;
61
+ }>;
62
+ /**
63
+ * Gets the current selection state values (synchronous).
64
+ * @returns {Object} The current selection state values.
65
+ */
66
+ getSelectionState(): {
67
+ menuItem: string | null;
68
+ userId: string | null;
69
+ status: string | null;
70
+ };
71
+ /**
72
+ * Selects the user list visibility state.
73
+ * @returns {Observable<boolean>} Observable that emits the current user list visibility.
74
+ */
75
+ selectShowUserList(): Observable<boolean>;
76
+ /**
77
+ * Gets the current user list visibility value (synchronous).
78
+ * @returns {boolean} The current user list visibility.
79
+ */
80
+ getShowUserList(): boolean;
38
81
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentQuery, never>;
39
82
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentQuery>;
40
83
  }
@@ -26,6 +26,10 @@ export interface DocumentState extends EntityState<DocumentModel, string> {
26
26
  folders: FolderBlockModel[];
27
27
  messages: Message[];
28
28
  documentList: DocumentModel[];
29
+ selectedMenuItem: string | null;
30
+ selectedUserId: string | null;
31
+ selectedStatus: string | null;
32
+ showUserList: boolean;
29
33
  }
30
34
  /**
31
35
  * Creates the initial state for the `DocumentState` store.
@@ -22,6 +22,12 @@ export declare class DocumentStore extends EntityStore<DocumentState> {
22
22
  setParentDocumentTypeId(parentDocumentTypeId: string): void;
23
23
  setMessage(message: Message[]): void;
24
24
  setDocumentList(documents: DocumentModel[]): void;
25
+ setSelectedMenuItem(menuItem: string | null): void;
26
+ setSelectedUserId(userId: string | null): void;
27
+ setSelectedStatus(status: string | null): void;
28
+ setSelectionState(menuItem: string | null, userId: string | null, status: string | null): void;
29
+ clearSelectionState(): void;
30
+ setShowUserList(show: boolean): void;
25
31
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentStore, never>;
26
32
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentStore>;
27
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.2.31",
3
+ "version": "0.2.34",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"
package/public-api.d.ts CHANGED
@@ -2,5 +2,6 @@ export * from './lib/document/document.module';
2
2
  export * from './lib/document/components/document-container/document-container.component';
3
3
  export * from './lib/document/components/document-viewer/document-viewer.component';
4
4
  export * from './lib/document/components/document-list/document-list.component';
5
+ export * from './lib/document/services/document-table-builder.service';
5
6
  export * from './lib/document/directives/document.directive';
6
7
  export * from './lib/document/directives/permission.directive';