cat-documents-ng 0.2.35 → 0.2.36
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.
- package/Shared/components/table-primary/table-primary.component.d.ts +8 -12
- package/Shared/components/table-primary/table-primary.model.d.ts +19 -0
- package/Shared/constant/SHARED.d.ts +46 -0
- package/fesm2022/cat-documents-ng.mjs +179 -193
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-list/document-list.component.d.ts +5 -5
- package/lib/document/components/document-status/document-status.component.d.ts +2 -2
- package/lib/document/models/document-list-response.model.d.ts +1 -0
- package/lib/document/services/document-table-builder.service.d.ts +1 -19
- package/lib/document/services/status-calculator.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@ import { DocumentQuery } from '../../state/document.query';
|
|
|
6
6
|
import { DocumentStore } from '../../state/document.store';
|
|
7
7
|
import { PERMISSIONS } from '../../../../Shared/constant/PERMISSIONS';
|
|
8
8
|
import { DocumentTableBuilderService } from '../../services/document-table-builder.service';
|
|
9
|
-
import { TableData } from '../../../../Shared/components/table-primary/table-primary.component';
|
|
10
9
|
import { DocumentListItem, DocumentListResponse } from '../../models/document-list-response.model';
|
|
10
|
+
import { TableData } from '../../../../Shared/components/table-primary/table-primary.model';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
13
|
* This component is responsible for displaying and managing a list of documents.
|
|
@@ -110,6 +110,10 @@ export declare class DocumentListComponent implements OnInit, OnDestroy {
|
|
|
110
110
|
* Document categories from the response
|
|
111
111
|
*/
|
|
112
112
|
documentCategories: DocumentListResponse[];
|
|
113
|
+
/**
|
|
114
|
+
* Completion counts for each category
|
|
115
|
+
*/
|
|
116
|
+
categoryCompletionCounts: string[];
|
|
113
117
|
/**
|
|
114
118
|
* Filter properties
|
|
115
119
|
*/
|
|
@@ -158,10 +162,6 @@ export declare class DocumentListComponent implements OnInit, OnDestroy {
|
|
|
158
162
|
*/
|
|
159
163
|
getDocumentTypeList(): void;
|
|
160
164
|
handleOpenSideBar(isVisible: boolean): void;
|
|
161
|
-
/**
|
|
162
|
-
* Builds table data for all document categories
|
|
163
|
-
*/
|
|
164
|
-
private buildCategoryTables;
|
|
165
165
|
/**
|
|
166
166
|
* Gets completion count for a category
|
|
167
167
|
*/
|
|
@@ -9,13 +9,13 @@ export declare class DocumentStatusComponent implements OnInit, OnDestroy {
|
|
|
9
9
|
private statusCalculatorService;
|
|
10
10
|
contextId: string;
|
|
11
11
|
statusData: any;
|
|
12
|
-
|
|
12
|
+
selectedStatus: string | null;
|
|
13
13
|
statusDataWithPercentages: CalculatedStatusData[];
|
|
14
14
|
private subscription;
|
|
15
15
|
constructor(documentQuery: DocumentQuery, documentService: DocumentHelperService, statusCalculatorService: StatusCalculatorService);
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
ngOnDestroy(): void;
|
|
18
|
-
selectStatus(
|
|
18
|
+
selectStatus(status: string): void;
|
|
19
19
|
private updateCalculatedStatusData;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentStatusComponent, never>;
|
|
21
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentStatusComponent, "lib-document-status", never, { "contextId": { "alias": "contextId"; "required": false; }; "statusData": { "alias": "statusData"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -1,26 +1,8 @@
|
|
|
1
|
-
import { TableData } from '../../../Shared/components/table-primary/table-primary.component';
|
|
2
1
|
import { DocumentListResponse, DocumentListItem } from '../models/document-list-response.model';
|
|
2
|
+
import { TableData } from '../../../Shared/components/table-primary/table-primary.model';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DocumentTableBuilderService {
|
|
5
5
|
constructor();
|
|
6
|
-
/**
|
|
7
|
-
* Gets document type from file name extension
|
|
8
|
-
* @param fileName File name with extension
|
|
9
|
-
* @returns Document type string
|
|
10
|
-
*/
|
|
11
|
-
private getDocumentTypeFromFileName;
|
|
12
|
-
/**
|
|
13
|
-
* Builds table data for document categories
|
|
14
|
-
* @param categories Array of document categories
|
|
15
|
-
* @returns Array of TableData objects
|
|
16
|
-
*/
|
|
17
|
-
buildDocumentCategoriesTables(categories: DocumentListResponse[]): TableData[];
|
|
18
|
-
/**
|
|
19
|
-
* Builds table data for a single document category
|
|
20
|
-
* @param category Document category
|
|
21
|
-
* @returns TableData object
|
|
22
|
-
*/
|
|
23
|
-
private buildTableForCategory;
|
|
24
6
|
/**
|
|
25
7
|
* Builds a single table from document list items
|
|
26
8
|
* @param documents Array of document list items
|
|
@@ -14,7 +14,7 @@ export interface CalculatedStatusData extends StatusData {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class StatusCalculatorService {
|
|
16
16
|
calculateTotalCount(statusData: StatusData[]): number;
|
|
17
|
-
calculateStatusDataWithPercentages(statusData: StatusData[],
|
|
17
|
+
calculateStatusDataWithPercentages(statusData: StatusData[], selectedStatus: string | null): CalculatedStatusData[];
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<StatusCalculatorService, never>;
|
|
19
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<StatusCalculatorService>;
|
|
20
20
|
}
|