cat-documents-ng 0.0.62 → 0.0.64
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 +66 -105
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-container/document-container.component.d.ts +1 -6
- package/lib/document/components/document-list/document-list.component.d.ts +1 -7
- package/lib/document/components/document-viewer/document-viewer.component.d.ts +4 -36
- package/lib/document/directives/document.directive.d.ts +20 -0
- package/lib/document/document.module.d.ts +2 -2
- package/lib/document/services/document.service.d.ts +20 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/lib/document/directives/document-type.directive.d.ts +0 -20
- package/lib/document/services/document-type.service.d.ts +0 -19
|
@@ -36,11 +36,6 @@ 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;
|
|
44
39
|
/**
|
|
45
40
|
* The list of documents.
|
|
46
41
|
* @type {Array}
|
|
@@ -78,5 +73,5 @@ export declare class DocumentContainerComponent implements OnInit {
|
|
|
78
73
|
*/
|
|
79
74
|
ngOnDestroy(): void;
|
|
80
75
|
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; };
|
|
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, ["*"], false, never>;
|
|
82
77
|
}
|
|
@@ -30,12 +30,6 @@ export declare class DocumentListComponent implements OnInit {
|
|
|
30
30
|
* @memberof DocumentListComponent
|
|
31
31
|
*/
|
|
32
32
|
isUploadButtonVisible: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Default visibility of the summary and notes.
|
|
35
|
-
* @type {boolean}
|
|
36
|
-
* @memberof DocumentListComponent
|
|
37
|
-
*/
|
|
38
|
-
showSummaryAndNotes: boolean;
|
|
39
33
|
/**
|
|
40
34
|
* The currently selected document.
|
|
41
35
|
* @type {DocumentModel}
|
|
@@ -131,5 +125,5 @@ export declare class DocumentListComponent implements OnInit {
|
|
|
131
125
|
getDocumentTypeList(): void;
|
|
132
126
|
handleOpenSideBar(isVisible: boolean): void;
|
|
133
127
|
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; }; "
|
|
128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentListComponent, "lib-document-list", never, { "contextId": { "alias": "contextId"; "required": false; }; "isUploadButtonVisible": { "alias": "isUploadButtonVisible"; "required": false; }; "documentList": { "alias": "documentList"; "required": false; }; }, { "onRefresh": "onRefresh"; }, never, ["*"], false, never>;
|
|
135
129
|
}
|
|
@@ -2,7 +2,7 @@ import { OnChanges, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
3
3
|
import { DocumentHttpService } from '../../services/document-http.service';
|
|
4
4
|
import { DocumentModel } from '../../models/document.model';
|
|
5
|
-
import {
|
|
5
|
+
import { DocumentService } from '../../services/document.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Component for viewing and managing document details.
|
|
@@ -11,22 +11,12 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
13
13
|
documentHttpService: DocumentHttpService;
|
|
14
|
-
private
|
|
14
|
+
private documentService;
|
|
15
15
|
/**
|
|
16
16
|
* Get the selected document by user.
|
|
17
17
|
* @type {*}
|
|
18
18
|
*/
|
|
19
19
|
selectedDocument?: DocumentModel;
|
|
20
|
-
/**
|
|
21
|
-
* Get the selected document by user.
|
|
22
|
-
* @type {boolean}
|
|
23
|
-
*/
|
|
24
|
-
showSummaryAndNotes: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Handle notes data.
|
|
27
|
-
* @type {!string}
|
|
28
|
-
*/
|
|
29
|
-
notes: string;
|
|
30
20
|
/**
|
|
31
21
|
* Indicates whether a checkbox is selected.
|
|
32
22
|
* @type {boolean}
|
|
@@ -42,28 +32,6 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
|
42
32
|
* @type {boolean}
|
|
43
33
|
*/
|
|
44
34
|
isVerified: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Additional property details related to the document.
|
|
47
|
-
* @type {any}
|
|
48
|
-
*/
|
|
49
|
-
propertyDetails: any;
|
|
50
|
-
/**
|
|
51
|
-
* List of predefined events used for summaries or alerts.
|
|
52
|
-
* @type {*}
|
|
53
|
-
*/
|
|
54
|
-
events: ({
|
|
55
|
-
status: string;
|
|
56
|
-
date: string;
|
|
57
|
-
icon: string;
|
|
58
|
-
color: string;
|
|
59
|
-
image: string;
|
|
60
|
-
} | {
|
|
61
|
-
status: string;
|
|
62
|
-
date: string;
|
|
63
|
-
icon: string;
|
|
64
|
-
color: string;
|
|
65
|
-
image?: undefined;
|
|
66
|
-
})[];
|
|
67
35
|
/**
|
|
68
36
|
* Data used for displaying alert messages.
|
|
69
37
|
* @type {any}
|
|
@@ -78,7 +46,7 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
|
78
46
|
/**
|
|
79
47
|
* Initializes a new instance of the DocumentViewerComponent.
|
|
80
48
|
*/
|
|
81
|
-
constructor(documentHttpService: DocumentHttpService,
|
|
49
|
+
constructor(documentHttpService: DocumentHttpService, documentService: DocumentService);
|
|
82
50
|
/**
|
|
83
51
|
* Fetches the alerts for the selected document.
|
|
84
52
|
* @returns {void}
|
|
@@ -92,5 +60,5 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
|
92
60
|
isImage(contentType?: string): boolean;
|
|
93
61
|
ngOnDestroy(): void;
|
|
94
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentViewerComponent, never>;
|
|
95
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentViewerComponent, "document-viewer", never, { "selectedDocument": { "alias": "selectedDocument"; "required": false; };
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentViewerComponent, "document-viewer", never, { "selectedDocument": { "alias": "selectedDocument"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
96
64
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import { DocumentService } from "../services/document.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Directive to display the document data
|
|
6
|
+
*/
|
|
7
|
+
export declare class DocumentDirective {
|
|
8
|
+
private documentService;
|
|
9
|
+
private templateRef;
|
|
10
|
+
private vcr;
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instance of DocumentDirective.
|
|
13
|
+
* @param documentService Service to get the document data.
|
|
14
|
+
* @param templateRef Reference to the template.
|
|
15
|
+
* @param vcr View container reference to manage the view.
|
|
16
|
+
*/
|
|
17
|
+
constructor(documentService: DocumentService, templateRef: TemplateRef<any>, vcr: ViewContainerRef);
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DocumentDirective, "[doc]", never, {}, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -6,7 +6,7 @@ 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 "./directives/document
|
|
9
|
+
import * as i8 from "./directives/document.directive";
|
|
10
10
|
import * as i9 from "@angular/common";
|
|
11
11
|
import * as i10 from "primeng/accordion";
|
|
12
12
|
import * as i11 from "@angular/common/http";
|
|
@@ -33,6 +33,6 @@ import * as i25 from "primeng/inputtext";
|
|
|
33
33
|
*/
|
|
34
34
|
export declare class DocumentModule {
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentModule, never>;
|
|
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.
|
|
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.DocumentDirective], [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, typeof i8.DocumentDirective]>;
|
|
37
37
|
static ɵinj: i0.ɵɵInjectorDeclaration<DocumentModule>;
|
|
38
38
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DocumentModel } from "../models/document.model";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Service to manage the document data
|
|
5
|
+
*/
|
|
6
|
+
export declare class DocumentService {
|
|
7
|
+
private documentSubject$;
|
|
8
|
+
/**
|
|
9
|
+
* Set the document data
|
|
10
|
+
* @param document the document data
|
|
11
|
+
*/
|
|
12
|
+
set(document: DocumentModel | null): void;
|
|
13
|
+
/**
|
|
14
|
+
* Get the document data
|
|
15
|
+
* @returns the document data
|
|
16
|
+
*/
|
|
17
|
+
get(): import("rxjs").Observable<DocumentModel | null>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentService>;
|
|
20
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ 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/directives/document
|
|
5
|
+
export * from './lib/document/directives/document.directive';
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}
|