cat-documents-ng 0.0.38 → 0.0.39
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/fesm2022/cat-documents-ng.mjs +69 -24
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-container/document-container.component.d.ts +6 -1
- package/lib/document/components/document-list/document-list.component.d.ts +18 -2
- package/lib/document/components/document-viewer/document-viewer.component.d.ts +6 -1
- package/lib/document/state/document.query.d.ts +6 -0
- package/lib/document/state/document.state.d.ts +2 -0
- package/lib/document/state/document.store.d.ts +2 -0
- package/package.json +1 -1
- package/src/assets/config/api.config.json +20 -0
|
@@ -36,6 +36,11 @@ export declare class DocumentContainerComponent implements OnInit {
|
|
|
36
36
|
* @type {boolean}
|
|
37
37
|
*/
|
|
38
38
|
isUploadButtonVisible: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Get isUploadButtonVisible in input.
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
*/
|
|
43
|
+
showSummaryAndNotes: boolean;
|
|
39
44
|
/**
|
|
40
45
|
* The list of documents.
|
|
41
46
|
* @type {Array}
|
|
@@ -73,5 +78,5 @@ export declare class DocumentContainerComponent implements OnInit {
|
|
|
73
78
|
*/
|
|
74
79
|
ngOnDestroy(): void;
|
|
75
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentContainerComponent, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContainerComponent, "lib-document-container", never, { "contextId": { "alias": "contextId"; "required": false; }; "showFolderList": { "alias": "showFolderList"; "required": false; }; "isUploadButtonVisible": { "alias": "isUploadButtonVisible"; "required": false; }; }, {}, never, never, false, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContainerComponent, "lib-document-container", never, { "contextId": { "alias": "contextId"; "required": false; }; "showFolderList": { "alias": "showFolderList"; "required": false; }; "isUploadButtonVisible": { "alias": "isUploadButtonVisible"; "required": false; }; "showSummaryAndNotes": { "alias": "showSummaryAndNotes"; "required": false; }; }, {}, never, never, false, never>;
|
|
77
82
|
}
|
|
@@ -2,6 +2,8 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { DocumentModel } from '../../models/document.model';
|
|
3
3
|
import { DocumentHttpService } from '../../services/document-http.service';
|
|
4
4
|
import { DocumentUploadService } from '../../services/document-upload.service';
|
|
5
|
+
import { Message } from 'primeng/api';
|
|
6
|
+
import { DocumentQuery } from '../../state/document.query';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* This component is responsible for displaying and managing a list of documents.
|
|
@@ -11,6 +13,7 @@ import * as i0 from "@angular/core";
|
|
|
11
13
|
export declare class DocumentListComponent implements OnInit {
|
|
12
14
|
documentUploadService: DocumentUploadService;
|
|
13
15
|
documentHttpService: DocumentHttpService;
|
|
16
|
+
documentQuery: DocumentQuery;
|
|
14
17
|
/**
|
|
15
18
|
* Represents the context ID for the document list.
|
|
16
19
|
* This value is passed from the parent component.
|
|
@@ -24,6 +27,12 @@ export declare class DocumentListComponent implements OnInit {
|
|
|
24
27
|
* @memberof DocumentListComponent
|
|
25
28
|
*/
|
|
26
29
|
isUploadButtonVisible: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Default visibility of the summary and notes.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof DocumentListComponent
|
|
34
|
+
*/
|
|
35
|
+
showSummaryAndNotes: boolean;
|
|
27
36
|
/**
|
|
28
37
|
* The currently selected document.
|
|
29
38
|
* @type {DocumentModel}
|
|
@@ -36,6 +45,12 @@ export declare class DocumentListComponent implements OnInit {
|
|
|
36
45
|
* @memberof DocumentListComponent
|
|
37
46
|
*/
|
|
38
47
|
isSidebarVisible: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Default visibility of the messages.
|
|
50
|
+
* @type {Message[]}
|
|
51
|
+
* @memberof DocumentListComponent
|
|
52
|
+
*/
|
|
53
|
+
messages: Message[];
|
|
39
54
|
/**
|
|
40
55
|
* Default visibility of the dialog.
|
|
41
56
|
* @type {boolean}
|
|
@@ -72,8 +87,9 @@ export declare class DocumentListComponent implements OnInit {
|
|
|
72
87
|
* @class
|
|
73
88
|
* @param {DocumentUploadService} documentUploadService - The service responsible for uploading documents.
|
|
74
89
|
* @param {DocumentHttpService} documentHttpService - The service responsible for fetching documents from the server.
|
|
90
|
+
* @param {DocumentQuery} documentQuery - The service responsible for storing documents.
|
|
75
91
|
*/
|
|
76
|
-
constructor(documentUploadService: DocumentUploadService, documentHttpService: DocumentHttpService);
|
|
92
|
+
constructor(documentUploadService: DocumentUploadService, documentHttpService: DocumentHttpService, documentQuery: DocumentQuery);
|
|
77
93
|
/**
|
|
78
94
|
* Initializes the component by fetching the document type list.
|
|
79
95
|
*/
|
|
@@ -111,5 +127,5 @@ export declare class DocumentListComponent implements OnInit {
|
|
|
111
127
|
*/
|
|
112
128
|
getDocumentTypeList(): void;
|
|
113
129
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentListComponent, never>;
|
|
114
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentListComponent, "lib-document-list", never, { "contextId": { "alias": "contextId"; "required": false; }; "isUploadButtonVisible": { "alias": "isUploadButtonVisible"; "required": false; }; "documentList": { "alias": "documentList"; "required": false; }; }, {}, never, never, false, never>;
|
|
130
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentListComponent, "lib-document-list", never, { "contextId": { "alias": "contextId"; "required": false; }; "isUploadButtonVisible": { "alias": "isUploadButtonVisible"; "required": false; }; "showSummaryAndNotes": { "alias": "showSummaryAndNotes"; "required": false; }; "documentList": { "alias": "documentList"; "required": false; }; }, {}, never, never, false, never>;
|
|
115
131
|
}
|
|
@@ -15,6 +15,11 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
|
15
15
|
* @type {*}
|
|
16
16
|
*/
|
|
17
17
|
selectedDocument: any;
|
|
18
|
+
/**
|
|
19
|
+
* Get the selected document by user.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
*/
|
|
22
|
+
showSummaryAndNotes: boolean;
|
|
18
23
|
/**
|
|
19
24
|
* Handle notes data.
|
|
20
25
|
* @type {!string}
|
|
@@ -85,5 +90,5 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
|
85
90
|
isImage(contentType: string): boolean;
|
|
86
91
|
ngOnDestroy(): void;
|
|
87
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentViewerComponent, never>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentViewerComponent, "document-viewer", never, { "selectedDocument": { "alias": "selectedDocument"; "required": false; }; }, {}, never, never, false, never>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentViewerComponent, "document-viewer", never, { "selectedDocument": { "alias": "selectedDocument"; "required": false; }; "showSummaryAndNotes": { "alias": "showSummaryAndNotes"; "required": false; }; }, {}, never, never, false, never>;
|
|
89
94
|
}
|
|
@@ -2,6 +2,7 @@ import { QueryEntity } from '@datorama/akita';
|
|
|
2
2
|
import { DocumentStore } from './document.store';
|
|
3
3
|
import { DocumentState } from './document.state';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
+
import { Message } from 'primeng/api';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Query service for managing document state.
|
|
@@ -23,6 +24,11 @@ export declare class DocumentQuery extends QueryEntity<DocumentState> {
|
|
|
23
24
|
* @returns {Observable<string | null>} Observable that emits the currently selected folder ID.
|
|
24
25
|
*/
|
|
25
26
|
selectParentDocumentTypeId(): Observable<string | null>;
|
|
27
|
+
/**
|
|
28
|
+
* Selects the set messages.
|
|
29
|
+
* @returns {Observable<Message>} Observable that emits the current Message.
|
|
30
|
+
*/
|
|
31
|
+
selectMessages(): Observable<Message[]>;
|
|
26
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentQuery, never>;
|
|
27
33
|
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentQuery>;
|
|
28
34
|
}
|
|
@@ -3,6 +3,7 @@ import { DocumentModel } from '../models/document.model';
|
|
|
3
3
|
import { DocumentTypeModel } from '../models/document-type.model';
|
|
4
4
|
import { DocumentAlertModel } from '../models/document-alert.model';
|
|
5
5
|
import { FolderBlockModel } from '../models/folder.model';
|
|
6
|
+
import { Message } from 'primeng/api';
|
|
6
7
|
/**
|
|
7
8
|
* Represents the state of the documents in the application.
|
|
8
9
|
* This interface extends Akita's `EntityState` to include additional properties
|
|
@@ -23,6 +24,7 @@ export interface DocumentState extends EntityState<DocumentModel, string> {
|
|
|
23
24
|
parentDocumentTypeId: string | null;
|
|
24
25
|
documentAlert: DocumentAlertModel;
|
|
25
26
|
folders: FolderBlockModel[];
|
|
27
|
+
messages: Message[];
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
* Creates the initial state for the `DocumentState` store.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EntityStore } from '@datorama/akita';
|
|
2
2
|
import { DocumentState } from './document.state';
|
|
3
|
+
import { Message } from 'primeng/api';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Store that manages the state of documents in the application.
|
|
@@ -18,6 +19,7 @@ export declare class DocumentStore extends EntityStore<DocumentState> {
|
|
|
18
19
|
setDocumentTypes(documentType: any): void;
|
|
19
20
|
setDocumentAlert(documentAlert: any): void;
|
|
20
21
|
setParentDocumentTypeId(parentDocumentTypeId: string): void;
|
|
22
|
+
setMessage(message: Message[]): void;
|
|
21
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentStore, never>;
|
|
22
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentStore>;
|
|
23
25
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"catQwUrl": "https://qa-qw-api.dynamatix.com/api/",
|
|
3
|
+
"apiUrl": "https://gatehouse-qa.dynamatix.com/api/",
|
|
4
|
+
"swaggerUrl": "https://qa-qw-api.dynamatix.com/api-docs/",
|
|
5
|
+
"adminEmail": "neeraj.kumar@catura.co.uk",
|
|
6
|
+
"interactBaseApi": "https://qa-interact-api.dynamatix.com/api/",
|
|
7
|
+
"actionBaseApi": "https://qa-qw-api.dynamatix.com/api/",
|
|
8
|
+
"documentApiUrl": "https://gb-doc-qa.dynamatix.com/api/",
|
|
9
|
+
"adminPhoneNumber": "+447380300545",
|
|
10
|
+
"visibilityOption": {
|
|
11
|
+
"isRationalVisible": false,
|
|
12
|
+
"isChecklistVisible": false,
|
|
13
|
+
"isAudit": false,
|
|
14
|
+
"isConversation": true,
|
|
15
|
+
"isOverview": true,
|
|
16
|
+
"isDocuments": true
|
|
17
|
+
},
|
|
18
|
+
"env": "qa"
|
|
19
|
+
|
|
20
|
+
}
|