cat-documents-ng 0.1.5 → 0.1.7
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/interceptor/error-interceptor.interceptor.d.ts +15 -0
- package/fesm2022/cat-documents-ng.mjs +221 -75
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-container/document-container.component.d.ts +3 -1
- package/lib/document/components/document-viewer/document-viewer.component.d.ts +7 -1
- package/lib/document/components/linked-document/linked-document.component.d.ts +14 -0
- package/lib/document/document.module.d.ts +19 -18
- package/lib/document/state/document.query.d.ts +6 -0
- package/lib/document/state/document.state.d.ts +1 -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
|
@@ -4,6 +4,7 @@ import { DocumentModel } from '../../models/document.model';
|
|
|
4
4
|
import { FolderBlockModel } from '../../models/folder.model';
|
|
5
5
|
import { DocumentHttpService } from '../../services/document-http.service';
|
|
6
6
|
import { DocumentQuery } from '../../state/document.query';
|
|
7
|
+
import { DocumentStore } from '../../state/document.store';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
*This component is responsible for managing and displaying a list of documents.
|
|
@@ -11,6 +12,7 @@ import * as i0 from "@angular/core";
|
|
|
11
12
|
* @typedef {DocumentContainerComponent}
|
|
12
13
|
*/
|
|
13
14
|
export declare class DocumentContainerComponent implements OnInit {
|
|
15
|
+
documentStore: DocumentStore;
|
|
14
16
|
documentService: DocumentService;
|
|
15
17
|
documentQuery: DocumentQuery;
|
|
16
18
|
documentHttpService: DocumentHttpService;
|
|
@@ -20,7 +22,7 @@ export declare class DocumentContainerComponent implements OnInit {
|
|
|
20
22
|
* @param {DocumentQuery} documentQuery - Query service to manage document-related state.
|
|
21
23
|
* @param {DocumentHttpService} documentHttpService - Service to make HTTP requests related to documents.
|
|
22
24
|
*/
|
|
23
|
-
constructor(documentService: DocumentService, documentQuery: DocumentQuery, documentHttpService: DocumentHttpService);
|
|
25
|
+
constructor(documentStore: DocumentStore, documentService: DocumentService, documentQuery: DocumentQuery, documentHttpService: DocumentHttpService);
|
|
24
26
|
/**
|
|
25
27
|
* Get contextId in input.
|
|
26
28
|
* @type {string}
|
|
@@ -17,6 +17,11 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
|
17
17
|
* @type {*}
|
|
18
18
|
*/
|
|
19
19
|
selectedDocument?: DocumentModel;
|
|
20
|
+
/**
|
|
21
|
+
* Get the selected document by user.
|
|
22
|
+
* @type {*}
|
|
23
|
+
*/
|
|
24
|
+
documentList?: DocumentModel[];
|
|
20
25
|
/**
|
|
21
26
|
* Indicates whether a checkbox is selected.
|
|
22
27
|
* @type {boolean}
|
|
@@ -52,6 +57,7 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
|
52
57
|
* @returns {void}
|
|
53
58
|
*/
|
|
54
59
|
ngOnChanges(): void;
|
|
60
|
+
handleSelectedDocument(document: DocumentModel): void;
|
|
55
61
|
/**
|
|
56
62
|
* Determines if the given content type is an image.
|
|
57
63
|
* @param {string | undefined} contentType - The MIME type of the content.
|
|
@@ -60,5 +66,5 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
|
60
66
|
isImage(contentType?: string): boolean;
|
|
61
67
|
ngOnDestroy(): void;
|
|
62
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentViewerComponent, never>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentViewerComponent, "document-viewer", never, { "selectedDocument": { "alias": "selectedDocument"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentViewerComponent, "document-viewer", never, { "selectedDocument": { "alias": "selectedDocument"; "required": false; }; "documentList": { "alias": "documentList"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
64
70
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
|
+
import { DocumentModel } from '../../models/document.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LinkedDocumentComponent implements OnChanges {
|
|
5
|
+
selectedDocument?: DocumentModel;
|
|
6
|
+
documentList?: DocumentModel[];
|
|
7
|
+
selectedDocumentChange: EventEmitter<DocumentModel>;
|
|
8
|
+
filteredDocuments: DocumentModel[];
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
updateFilteredDocuments(): void;
|
|
11
|
+
handleDocumentClick(document: DocumentModel): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkedDocumentComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinkedDocumentComponent, "app-linked-document", never, { "selectedDocument": { "alias": "selectedDocument"; "required": false; }; "documentList": { "alias": "documentList"; "required": false; }; }, { "selectedDocumentChange": "selectedDocumentChange"; }, never, never, false, never>;
|
|
14
|
+
}
|
|
@@ -8,23 +8,24 @@ import * as i6 from "./components/document-upload/document-upload.component";
|
|
|
8
8
|
import * as i7 from "./components/document-viewer/document-viewer.component";
|
|
9
9
|
import * as i8 from "./directives/document.directive";
|
|
10
10
|
import * as i9 from "./directives/permission.directive";
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "
|
|
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 "primeng/
|
|
22
|
-
import * as i21 from "primeng/
|
|
23
|
-
import * as i22 from "
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "primeng/
|
|
27
|
-
import * as i26 from "primeng/
|
|
11
|
+
import * as i10 from "./components/linked-document/linked-document.component";
|
|
12
|
+
import * as i11 from "@angular/common";
|
|
13
|
+
import * as i12 from "primeng/accordion";
|
|
14
|
+
import * as i13 from "@angular/common/http";
|
|
15
|
+
import * as i14 from "primeng/button";
|
|
16
|
+
import * as i15 from "primeng/sidebar";
|
|
17
|
+
import * as i16 from "primeng/fileupload";
|
|
18
|
+
import * as i17 from "primeng/progressbar";
|
|
19
|
+
import * as i18 from "primeng/badge";
|
|
20
|
+
import * as i19 from "primeng/listbox";
|
|
21
|
+
import * as i20 from "primeng/checkbox";
|
|
22
|
+
import * as i21 from "primeng/timeline";
|
|
23
|
+
import * as i22 from "primeng/inputtextarea";
|
|
24
|
+
import * as i23 from "@angular/forms";
|
|
25
|
+
import * as i24 from "ng2-pdf-viewer";
|
|
26
|
+
import * as i25 from "primeng/dialog";
|
|
27
|
+
import * as i26 from "primeng/dropdown";
|
|
28
|
+
import * as i27 from "primeng/inputtext";
|
|
28
29
|
/**
|
|
29
30
|
* @module DocumentModule
|
|
30
31
|
*
|
|
@@ -34,6 +35,6 @@ import * as i26 from "primeng/inputtext";
|
|
|
34
35
|
*/
|
|
35
36
|
export declare class DocumentModule {
|
|
36
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentModule, never>;
|
|
37
|
-
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
|
|
38
|
+
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.CommonModule, typeof i12.AccordionModule, typeof i13.HttpClientModule, typeof i14.ButtonModule, typeof i15.SidebarModule, typeof i16.FileUploadModule, typeof i17.ProgressBarModule, typeof i18.BadgeModule, typeof i19.ListboxModule, typeof i20.CheckboxModule, typeof i21.TimelineModule, typeof i22.InputTextareaModule, typeof i23.FormsModule, typeof i24.PdfViewerModule, typeof i25.DialogModule, typeof i26.DropdownModule, typeof i27.InputTextModule], [typeof i9.HasPermissionDirective, typeof i1.DocumentContainerComponent, typeof i7.DocumentViewerComponent, typeof i4.DocumentListComponent, typeof i8.DocumentDirective]>;
|
|
38
39
|
static ɵinj: i0.ɵɵInjectorDeclaration<DocumentModule>;
|
|
39
40
|
}
|
|
@@ -3,6 +3,7 @@ import { DocumentStore } from './document.store';
|
|
|
3
3
|
import { DocumentState } from './document.state';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { Message } from 'primeng/api';
|
|
6
|
+
import { DocumentModel } from '../models/document.model';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Query service for managing document state.
|
|
@@ -29,6 +30,11 @@ export declare class DocumentQuery extends QueryEntity<DocumentState> {
|
|
|
29
30
|
* @returns {Observable<Message>} Observable that emits the current Message.
|
|
30
31
|
*/
|
|
31
32
|
selectMessages(): Observable<Message[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Selects the set documents.
|
|
35
|
+
* @returns {Observable<documentModel[]>} Observable that emits the documets.
|
|
36
|
+
*/
|
|
37
|
+
selectDocumets(): Observable<DocumentModel[]>;
|
|
32
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentQuery, never>;
|
|
33
39
|
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentQuery>;
|
|
34
40
|
}
|
|
@@ -25,6 +25,7 @@ export interface DocumentState extends EntityState<DocumentModel, string> {
|
|
|
25
25
|
documentAlert: DocumentAlertModel;
|
|
26
26
|
folders: FolderBlockModel[];
|
|
27
27
|
messages: Message[];
|
|
28
|
+
documentList: DocumentModel[];
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* Creates the initial state for the `DocumentState` store.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EntityStore } from '@datorama/akita';
|
|
2
2
|
import { DocumentState } from './document.state';
|
|
3
3
|
import { Message } from 'primeng/api';
|
|
4
|
+
import { DocumentModel } from '../models/document.model';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Store that manages the state of documents in the application.
|
|
@@ -20,6 +21,7 @@ export declare class DocumentStore extends EntityStore<DocumentState> {
|
|
|
20
21
|
setDocumentAlert(documentAlert: any): void;
|
|
21
22
|
setParentDocumentTypeId(parentDocumentTypeId: string): void;
|
|
22
23
|
setMessage(message: Message[]): void;
|
|
24
|
+
setDocumentList(documents: DocumentModel[]): void;
|
|
23
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentStore, never>;
|
|
24
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentStore>;
|
|
25
27
|
}
|
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": "http://localhost:5100/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
|
+
}
|