cat-documents-ng 0.1.32 → 0.1.34
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/constant/PERMISSIONS.d.ts +0 -1
- package/fesm2022/cat-documents-ng.mjs +178 -24
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-container/document-container.component.d.ts +8 -2
- package/lib/document/components/document-list/document-list.component.d.ts +1 -0
- package/lib/document/components/document-renderer/document-renderer.component.d.ts +17 -0
- package/lib/document/components/document-viewer/document-viewer.component.d.ts +2 -0
- package/lib/document/document.module.d.ts +19 -18
- package/lib/document/models/document-alert.model.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -48,13 +48,13 @@ export declare class DocumentContainerComponent implements OnInit {
|
|
|
48
48
|
/**
|
|
49
49
|
* Emits the document selected by the user.
|
|
50
50
|
* @type {EventEmitter<DocumentModel>}
|
|
51
|
-
|
|
51
|
+
*/
|
|
52
52
|
selectedDocument: EventEmitter<DocumentModel>;
|
|
53
53
|
/**
|
|
54
54
|
* Subject used to clean up subscriptions when the component is destroyed.
|
|
55
55
|
* Helps prevent memory leaks in observables.
|
|
56
56
|
* @type {Subject<void>}
|
|
57
|
-
|
|
57
|
+
*/
|
|
58
58
|
destroy$: Subject<void>;
|
|
59
59
|
/**
|
|
60
60
|
* The list of documents.
|
|
@@ -77,6 +77,12 @@ export declare class DocumentContainerComponent implements OnInit {
|
|
|
77
77
|
* @returns {void}
|
|
78
78
|
*/
|
|
79
79
|
ngOnInit(): void;
|
|
80
|
+
/**
|
|
81
|
+
* Subscribes to the selected document from the document query store.
|
|
82
|
+
* Emits the selected document using the `selectedDocument` EventEmitter if it exists.
|
|
83
|
+
* Automatically unsubscribes when the component is destroyed.
|
|
84
|
+
*/
|
|
85
|
+
getSelectedDocumentData(): void;
|
|
80
86
|
/**
|
|
81
87
|
* Fetches the folder data from the API.
|
|
82
88
|
* @returns {void}
|
|
@@ -132,6 +132,7 @@ export declare class DocumentListComponent implements OnInit {
|
|
|
132
132
|
* @param {DocumentHttpService} documentHttpService - The service responsible for fetching documents from the server.
|
|
133
133
|
* @param {DocumentQuery} documentQuery - The service responsible for geting stored documents.
|
|
134
134
|
* @param {DocumentStore} documentStore - The service responsible for storing documents.
|
|
135
|
+
* @param {SessionService} sessionService - Service for managing user session and authentication.
|
|
135
136
|
*/
|
|
136
137
|
constructor(documentUploadService: DocumentUploadService, documentHttpService: DocumentHttpService, documentQuery: DocumentQuery, documentStore: DocumentStore, sessionService: SessionService);
|
|
137
138
|
/**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DocumentRendererComponent implements OnInit {
|
|
4
|
+
selectedDocumentType: string;
|
|
5
|
+
documentType: {
|
|
6
|
+
_id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
__v: number;
|
|
9
|
+
label: string;
|
|
10
|
+
parentDocumentTypeId: string;
|
|
11
|
+
source: null;
|
|
12
|
+
}[];
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
handleFileUploadClick(event: any): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentRendererComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentRendererComponent, "app-document-renderer", never, {}, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -42,6 +42,7 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
|
42
42
|
* @type {any}
|
|
43
43
|
*/
|
|
44
44
|
alertData: any;
|
|
45
|
+
private destroy$;
|
|
45
46
|
/**
|
|
46
47
|
* Emits the updated document after changes like upload, rename, or replace.
|
|
47
48
|
* @type {EventEmitter<DocumentModel>}
|
|
@@ -64,6 +65,7 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
|
|
|
64
65
|
* @returns {void}
|
|
65
66
|
*/
|
|
66
67
|
ngOnChanges(): void;
|
|
68
|
+
getDocumentAlertList(): void;
|
|
67
69
|
handleSelectedDocument(document: DocumentModel): void;
|
|
68
70
|
/**
|
|
69
71
|
* Determines if the given content type is an image.
|
|
@@ -9,23 +9,24 @@ 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
11
|
import * as i10 from "./components/linked-document/linked-document.component";
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "
|
|
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 "primeng/
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "
|
|
27
|
-
import * as i26 from "primeng/
|
|
28
|
-
import * as i27 from "primeng/
|
|
12
|
+
import * as i11 from "./components/document-renderer/document-renderer.component";
|
|
13
|
+
import * as i12 from "@angular/common";
|
|
14
|
+
import * as i13 from "primeng/accordion";
|
|
15
|
+
import * as i14 from "@angular/common/http";
|
|
16
|
+
import * as i15 from "primeng/button";
|
|
17
|
+
import * as i16 from "primeng/sidebar";
|
|
18
|
+
import * as i17 from "primeng/fileupload";
|
|
19
|
+
import * as i18 from "primeng/progressbar";
|
|
20
|
+
import * as i19 from "primeng/badge";
|
|
21
|
+
import * as i20 from "primeng/listbox";
|
|
22
|
+
import * as i21 from "primeng/checkbox";
|
|
23
|
+
import * as i22 from "primeng/timeline";
|
|
24
|
+
import * as i23 from "primeng/inputtextarea";
|
|
25
|
+
import * as i24 from "@angular/forms";
|
|
26
|
+
import * as i25 from "ng2-pdf-viewer";
|
|
27
|
+
import * as i26 from "primeng/dialog";
|
|
28
|
+
import * as i27 from "primeng/dropdown";
|
|
29
|
+
import * as i28 from "primeng/inputtext";
|
|
29
30
|
/**
|
|
30
31
|
* @module DocumentModule
|
|
31
32
|
*
|
|
@@ -35,6 +36,6 @@ import * as i27 from "primeng/inputtext";
|
|
|
35
36
|
*/
|
|
36
37
|
export declare class DocumentModule {
|
|
37
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentModule, never>;
|
|
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
|
|
39
|
+
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.DocumentRendererComponent], [typeof i12.CommonModule, typeof i13.AccordionModule, typeof i14.HttpClientModule, typeof i15.ButtonModule, typeof i16.SidebarModule, typeof i17.FileUploadModule, typeof i18.ProgressBarModule, typeof i19.BadgeModule, typeof i20.ListboxModule, typeof i21.CheckboxModule, typeof i22.TimelineModule, typeof i23.InputTextareaModule, typeof i24.FormsModule, typeof i25.PdfViewerModule, typeof i26.DialogModule, typeof i27.DropdownModule, typeof i28.InputTextModule], [typeof i9.HasPermissionDirective, typeof i1.DocumentContainerComponent, typeof i7.DocumentViewerComponent, typeof i4.DocumentListComponent, typeof i8.DocumentDirective, typeof i11.DocumentRendererComponent]>;
|
|
39
40
|
static ɵinj: i0.ɵɵInjectorDeclaration<DocumentModule>;
|
|
40
41
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ 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/components/document-renderer/document-renderer.component';
|
|
5
6
|
export * from './lib/document/directives/document.directive';
|
|
6
7
|
export * from './lib/document/directives/permission.directive';
|