cat-documents-ng 0.0.51 → 0.0.53
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/README.md +322 -322
- package/fesm2022/cat-documents-ng.mjs +109 -39
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-container/document-container.component.d.ts +1 -1
- package/lib/document/components/document-list/document-list.component.d.ts +1 -1
- package/lib/document/components/document-viewer/document-viewer.component.d.ts +11 -9
- package/lib/document/directives/document-type.directive.d.ts +20 -0
- package/lib/document/document.module.d.ts +19 -18
- package/lib/document/models/document.model.d.ts +5 -0
- package/lib/document/services/document-type.service.d.ts +19 -0
- package/package.json +1 -1
- package/src/assets/config/api.config.json +21 -0
|
@@ -78,5 +78,5 @@ export declare class DocumentContainerComponent implements OnInit {
|
|
|
78
78
|
*/
|
|
79
79
|
ngOnDestroy(): void;
|
|
80
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentContainerComponent, 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,
|
|
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, ["*"], false, never>;
|
|
82
82
|
}
|
|
@@ -131,5 +131,5 @@ export declare class DocumentListComponent implements OnInit {
|
|
|
131
131
|
getDocumentTypeList(): void;
|
|
132
132
|
handleOpenSideBar(isVisible: boolean): void;
|
|
133
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentListComponent, never>;
|
|
134
|
-
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; }; }, { "onRefresh": "onRefresh"; }, never,
|
|
134
|
+
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; }; }, { "onRefresh": "onRefresh"; }, never, ["*"], false, never>;
|
|
135
135
|
}
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { OnChanges, OnDestroy } from '@angular/core';
|
|
2
2
|
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
3
3
|
import { DocumentHttpService } from '../../services/document-http.service';
|
|
4
|
+
import { DocumentModel } from '../../models/document.model';
|
|
5
|
+
import { DocumentTypeService } from '../../services/document-type.service';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
/**
|
|
6
8
|
* Component for viewing and managing document details.
|
|
7
9
|
* @class DocumentViewerComponent
|
|
8
10
|
* @typedef {DocumentViewerComponent}
|
|
9
|
-
* @implements {OnInit}
|
|
10
11
|
*/
|
|
11
12
|
export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
12
13
|
documentHttpService: DocumentHttpService;
|
|
14
|
+
private documentTypeService;
|
|
13
15
|
/**
|
|
14
16
|
* Get the selected document by user.
|
|
15
17
|
* @type {*}
|
|
16
18
|
*/
|
|
17
|
-
selectedDocument
|
|
19
|
+
selectedDocument?: DocumentModel;
|
|
18
20
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
* Get the selected document by user.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
*/
|
|
22
24
|
showSummaryAndNotes: boolean;
|
|
23
25
|
/**
|
|
24
26
|
* Handle notes data.
|
|
@@ -76,7 +78,7 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
|
76
78
|
/**
|
|
77
79
|
* Initializes a new instance of the DocumentViewerComponent.
|
|
78
80
|
*/
|
|
79
|
-
constructor(documentHttpService: DocumentHttpService);
|
|
81
|
+
constructor(documentHttpService: DocumentHttpService, documentTypeService: DocumentTypeService);
|
|
80
82
|
/**
|
|
81
83
|
* Fetches the alerts for the selected document.
|
|
82
84
|
* @returns {void}
|
|
@@ -84,11 +86,11 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
|
84
86
|
ngOnChanges(): void;
|
|
85
87
|
/**
|
|
86
88
|
* Determines if the given content type is an image.
|
|
87
|
-
* @param {string} contentType - The MIME type of the content.
|
|
89
|
+
* @param {string | undefined} contentType - The MIME type of the content.
|
|
88
90
|
* @returns {boolean} `true` if the content type is an image; otherwise, `false`.
|
|
89
91
|
*/
|
|
90
|
-
isImage(contentType
|
|
92
|
+
isImage(contentType?: string): boolean;
|
|
91
93
|
ngOnDestroy(): void;
|
|
92
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentViewerComponent, never>;
|
|
93
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentViewerComponent, "document-viewer", never, { "selectedDocument": { "alias": "selectedDocument"; "required": false; }; "showSummaryAndNotes": { "alias": "showSummaryAndNotes"; "required": false; }; }, {}, never,
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentViewerComponent, "document-viewer", never, { "selectedDocument": { "alias": "selectedDocument"; "required": false; }; "showSummaryAndNotes": { "alias": "showSummaryAndNotes"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
94
96
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import { DocumentTypeService } from "../services/document-type.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Directive to display the document type
|
|
6
|
+
*/
|
|
7
|
+
export declare class DocumentTypeDirective {
|
|
8
|
+
private documentTypeService;
|
|
9
|
+
private templateRef;
|
|
10
|
+
private vcr;
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instance of DocumentTypeDirective.
|
|
13
|
+
* @param documentTypeService Service to get the document type.
|
|
14
|
+
* @param templateRef Reference to the template.
|
|
15
|
+
* @param vcr View container reference to manage the view.
|
|
16
|
+
*/
|
|
17
|
+
constructor(documentTypeService: DocumentTypeService, templateRef: TemplateRef<any>, vcr: ViewContainerRef);
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTypeDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DocumentTypeDirective, "[docType]", never, {}, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -6,23 +6,24 @@ import * as i4 from "./components/document-list/document-list.component";
|
|
|
6
6
|
import * as i5 from "./components/document-list-item/document-list-item.component";
|
|
7
7
|
import * as i6 from "./components/document-upload/document-upload.component";
|
|
8
8
|
import * as i7 from "./components/document-viewer/document-viewer.component";
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "primeng/
|
|
14
|
-
import * as i13 from "primeng/
|
|
15
|
-
import * as i14 from "primeng/
|
|
16
|
-
import * as i15 from "primeng/
|
|
17
|
-
import * as i16 from "primeng/
|
|
18
|
-
import * as i17 from "primeng/
|
|
19
|
-
import * as i18 from "primeng/
|
|
20
|
-
import * as i19 from "primeng/
|
|
21
|
-
import * as i20 from "
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "
|
|
24
|
-
import * as i23 from "primeng/
|
|
25
|
-
import * as i24 from "primeng/
|
|
9
|
+
import * as i8 from "./directives/document-type.directive";
|
|
10
|
+
import * as i9 from "@angular/common";
|
|
11
|
+
import * as i10 from "primeng/accordion";
|
|
12
|
+
import * as i11 from "@angular/common/http";
|
|
13
|
+
import * as i12 from "primeng/button";
|
|
14
|
+
import * as i13 from "primeng/sidebar";
|
|
15
|
+
import * as i14 from "primeng/fileupload";
|
|
16
|
+
import * as i15 from "primeng/progressbar";
|
|
17
|
+
import * as i16 from "primeng/badge";
|
|
18
|
+
import * as i17 from "primeng/listbox";
|
|
19
|
+
import * as i18 from "primeng/checkbox";
|
|
20
|
+
import * as i19 from "primeng/timeline";
|
|
21
|
+
import * as i20 from "primeng/inputtextarea";
|
|
22
|
+
import * as i21 from "@angular/forms";
|
|
23
|
+
import * as i22 from "ng2-pdf-viewer";
|
|
24
|
+
import * as i23 from "primeng/dialog";
|
|
25
|
+
import * as i24 from "primeng/dropdown";
|
|
26
|
+
import * as i25 from "primeng/inputtext";
|
|
26
27
|
/**
|
|
27
28
|
* @module DocumentModule
|
|
28
29
|
*
|
|
@@ -32,6 +33,6 @@ import * as i24 from "primeng/inputtext";
|
|
|
32
33
|
*/
|
|
33
34
|
export declare class DocumentModule {
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentModule, never>;
|
|
35
|
-
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
|
|
36
|
+
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.DocumentTypeDirective], [typeof i9.CommonModule, typeof i10.AccordionModule, typeof i11.HttpClientModule, typeof i12.ButtonModule, typeof i13.SidebarModule, typeof i14.FileUploadModule, typeof i15.ProgressBarModule, typeof i16.BadgeModule, typeof i17.ListboxModule, typeof i18.CheckboxModule, typeof i19.TimelineModule, typeof i20.InputTextareaModule, typeof i21.FormsModule, typeof i22.PdfViewerModule, typeof i23.DialogModule, typeof i24.DropdownModule, typeof i25.InputTextModule], [typeof i1.DocumentContainerComponent, typeof i7.DocumentViewerComponent, typeof i4.DocumentListComponent]>;
|
|
36
37
|
static ɵinj: i0.ɵɵInjectorDeclaration<DocumentModule>;
|
|
37
38
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Service to manage the document type
|
|
4
|
+
*/
|
|
5
|
+
export declare class DocumentTypeService {
|
|
6
|
+
private documentTypeSubject$;
|
|
7
|
+
/**
|
|
8
|
+
* Set the document type
|
|
9
|
+
* @param type the document type
|
|
10
|
+
*/
|
|
11
|
+
set(type: string | undefined): void;
|
|
12
|
+
/**
|
|
13
|
+
* Get the document type
|
|
14
|
+
* @returns the document type
|
|
15
|
+
*/
|
|
16
|
+
get(): import("rxjs").Observable<string | null>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTypeService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentTypeService>;
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"catQwUrl": "https://gb-qw-api.dynamatix.com/api/",
|
|
3
|
+
"apiUrl": "https://gb-apis-qa.dynamatix.com/api/",
|
|
4
|
+
"swaggerUrl": "https://qa-qw-api.dynamatix.com/api-docs/",
|
|
5
|
+
"adminEmail": "neeraj.kumar@catura.co.uk",
|
|
6
|
+
"baseUrl": "https://gb-interact-qa.dynamatix.com",
|
|
7
|
+
"interactBaseApi": "https://gb-interact-qa.dynamatix.com/api/",
|
|
8
|
+
"actionBaseApi": "https://gb-qw-api.dynamatix.com/api/",
|
|
9
|
+
"documentApiUrl": "https://gb-doc-qa.dynamatix.com/api/",
|
|
10
|
+
"adminPhoneNumber": "+447380300545",
|
|
11
|
+
"visibilityOption": {
|
|
12
|
+
"isRationalVisible": false,
|
|
13
|
+
"isChecklistVisible": false,
|
|
14
|
+
"isAudit": false,
|
|
15
|
+
"isConversation": true,
|
|
16
|
+
"isOverview": true,
|
|
17
|
+
"isDocuments": true
|
|
18
|
+
},
|
|
19
|
+
"env": "qa",
|
|
20
|
+
"test": "test"
|
|
21
|
+
}
|