cat-documents-ng 0.1.28 → 0.1.31

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.
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { OnInit } from '@angular/core';
2
2
  import { DocumentService } from '../../state/document.service';
3
3
  import { DocumentModel } from '../../models/document.model';
4
4
  import { FolderBlockModel } from '../../models/folder.model';
@@ -29,6 +29,11 @@ export declare class DocumentContainerComponent implements OnInit {
29
29
  * @type {string}
30
30
  */
31
31
  contextId: string;
32
+ /**
33
+ * Get isCollapsed in input.
34
+ * @type {string}
35
+ */
36
+ isCollapsed: boolean;
32
37
  /**
33
38
  * Get showFolderList in input.
34
39
  * @type {boolean}
@@ -39,7 +44,6 @@ export declare class DocumentContainerComponent implements OnInit {
39
44
  * @type {boolean}
40
45
  */
41
46
  isUploadButtonVisible: boolean;
42
- selectedDocument: EventEmitter<DocumentModel>;
43
47
  /**
44
48
  * The list of documents.
45
49
  * @type {Array}
@@ -81,5 +85,5 @@ export declare class DocumentContainerComponent implements OnInit {
81
85
  */
82
86
  ngOnDestroy(): void;
83
87
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentContainerComponent, never>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContainerComponent, "lib-document-container", never, { "contextId": { "alias": "contextId"; "required": false; }; "showFolderList": { "alias": "showFolderList"; "required": false; }; "isUploadButtonVisible": { "alias": "isUploadButtonVisible"; "required": false; }; }, { "selectedDocument": "selectedDocument"; }, never, ["*"], false, never>;
88
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContainerComponent, "lib-document-container", never, { "contextId": { "alias": "contextId"; "required": false; }; "isCollapsed": { "alias": "isCollapsed"; "required": false; }; "showFolderList": { "alias": "showFolderList"; "required": false; }; "isUploadButtonVisible": { "alias": "isUploadButtonVisible"; "required": false; }; }, {}, never, ["*"], false, never>;
85
89
  }
@@ -1,4 +1,4 @@
1
- import { ElementRef, EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, 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';
@@ -6,8 +6,6 @@ import { Message } from 'primeng/api';
6
6
  import { DocumentQuery } from '../../state/document.query';
7
7
  import { DocumentStore } from '../../state/document.store';
8
8
  import { PERMISSIONS } from '../../../../Shared/constant/PERMISSIONS';
9
- import { SessionService } from '../../../../Shared/services/session.service';
10
- import { DocumentService } from '../../services/document.service';
11
9
  import * as i0 from "@angular/core";
12
10
  /**
13
11
  * This component is responsible for displaying and managing a list of documents.
@@ -19,8 +17,6 @@ export declare class DocumentListComponent implements OnInit {
19
17
  documentHttpService: DocumentHttpService;
20
18
  documentQuery: DocumentQuery;
21
19
  documentStore: DocumentStore;
22
- private sessionService;
23
- private documentService;
24
20
  onRefresh: EventEmitter<any>;
25
21
  /**
26
22
  * Represents the context ID for the document list.
@@ -47,6 +43,12 @@ export declare class DocumentListComponent implements OnInit {
47
43
  * @memberof DocumentListComponent
48
44
  */
49
45
  isSidebarVisible: boolean;
46
+ /**
47
+ * Default visibility of the Accordion.
48
+ * @type {boolean}
49
+ * @memberof DocumentListComponent
50
+ */
51
+ isCollapsed: boolean;
50
52
  /**
51
53
  * Default visibility of the messages.
52
54
  * @type {Message[]}
@@ -71,7 +73,7 @@ export declare class DocumentListComponent implements OnInit {
71
73
  * @type {string}
72
74
  * @memberof DocumentListComponent
73
75
  */
74
- documentName: string | undefined;
76
+ documentName: string;
75
77
  /**
76
78
  * Available document types for selection.
77
79
  * @type {string[]}
@@ -93,12 +95,7 @@ export declare class DocumentListComponent implements OnInit {
93
95
  * It may be undefined until a file is selected or loaded.
94
96
  * @type {string | undefined}
95
97
  */
96
- documentStatus: string | undefined;
97
- hasDocumentPutAccess: any;
98
- fileNameError: string;
99
- documentExtension: string;
100
- disallowedCharsRegex: RegExp;
101
- fileInput: ElementRef<HTMLInputElement>;
98
+ fileName: string | undefined;
102
99
  /**
103
100
  * Creates an instance of DocumentListComponent.
104
101
  * @class
@@ -107,12 +104,11 @@ export declare class DocumentListComponent implements OnInit {
107
104
  * @param {DocumentQuery} documentQuery - The service responsible for geting stored documents.
108
105
  * @param {DocumentStore} documentStore - The service responsible for storing documents.
109
106
  */
110
- constructor(documentUploadService: DocumentUploadService, documentHttpService: DocumentHttpService, documentQuery: DocumentQuery, documentStore: DocumentStore, sessionService: SessionService, documentService: DocumentService);
107
+ constructor(documentUploadService: DocumentUploadService, documentHttpService: DocumentHttpService, documentQuery: DocumentQuery, documentStore: DocumentStore);
111
108
  /**
112
109
  * Initializes the component by fetching the document type list.
113
110
  */
114
111
  ngOnInit(): void;
115
- handleUpdatedDocument(document: DocumentModel): void;
116
112
  /**
117
113
  * Handles the click event for file upload.
118
114
  * Prevents event propagation and displays the sidebar.
@@ -140,7 +136,6 @@ export declare class DocumentListComponent implements OnInit {
140
136
  * @memberof DocumentListComponent
141
137
  */
142
138
  handleCloseModal(): void;
143
- onDocumentNameChange(event: Event): void;
144
139
  /**
145
140
  * Handles the upload action for a document.
146
141
  * Validates if a document type is selected and logs the result.
@@ -156,5 +151,5 @@ export declare class DocumentListComponent implements OnInit {
156
151
  getDocumentTypeList(): void;
157
152
  handleOpenSideBar(isVisible: boolean): void;
158
153
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentListComponent, never>;
159
- 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>;
154
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentListComponent, "lib-document-list", never, { "contextId": { "alias": "contextId"; "required": false; }; "isUploadButtonVisible": { "alias": "isUploadButtonVisible"; "required": false; }; "isCollapsed": { "alias": "isCollapsed"; "required": false; }; "documentList": { "alias": "documentList"; "required": false; }; }, { "onRefresh": "onRefresh"; }, never, ["*"], false, never>;
160
155
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnChanges, OnDestroy } from '@angular/core';
1
+ 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';
@@ -42,7 +42,6 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
42
42
  * @type {any}
43
43
  */
44
44
  alertData: any;
45
- updatedDocument: EventEmitter<DocumentModel>;
46
45
  /**
47
46
  * Holds the subscription to manage observable cleanup.
48
47
  * @private
@@ -69,5 +68,5 @@ export declare class DocumentViewerComponent implements OnChanges, OnDestroy {
69
68
  isImage(contentType?: string): boolean;
70
69
  ngOnDestroy(): void;
71
70
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentViewerComponent, never>;
72
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentViewerComponent, "document-viewer", never, { "selectedDocument": { "alias": "selectedDocument"; "required": false; }; "documentList": { "alias": "documentList"; "required": false; }; }, { "updatedDocument": "updatedDocument"; }, never, ["[action-launcher]", "*"], false, never>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentViewerComponent, "document-viewer", never, { "selectedDocument": { "alias": "selectedDocument"; "required": false; }; "documentList": { "alias": "documentList"; "required": false; }; }, {}, never, ["*"], false, never>;
73
72
  }
@@ -31,7 +31,7 @@ export declare class FolderBlockComponent {
31
31
  * @param {string} folderBlockId - The unique identifier of the folder to filter by.
32
32
  * @returns {string} The validated folder ID, or an empty string if the input is invalid.
33
33
  */
34
- handleClickForFilter(folderBlockId: any): string;
34
+ handleClickForFilter(folderBlockId: string): string;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<FolderBlockComponent, never>;
36
36
  static ɵcmp: i0.ɵɵComponentDeclaration<FolderBlockComponent, "lib-folder-block", never, { "folderList": { "alias": "folderList"; "required": false; }; }, {}, never, never, false, never>;
37
37
  }
@@ -35,8 +35,6 @@ export declare class DocumentQuery extends QueryEntity<DocumentState> {
35
35
  * @returns {Observable<DocumentModel[]>} Observable that emits the documets.
36
36
  */
37
37
  selectDocumets(): Observable<DocumentModel[]>;
38
- getSelectedDocument(): Observable<any>;
39
- getIsDocumentUpdated(): Observable<any>;
40
38
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentQuery, never>;
41
39
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentQuery>;
42
40
  }
@@ -22,8 +22,6 @@ export declare class DocumentStore extends EntityStore<DocumentState> {
22
22
  setParentDocumentTypeId(parentDocumentTypeId: string): void;
23
23
  setMessage(message: Message[]): void;
24
24
  setDocumentList(documents: DocumentModel[]): void;
25
- setSelectedDocument(selectedDocument: any): void;
26
- setIsDocumentUpdated(isDocumentUpdated: any): void;
27
25
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentStore, never>;
28
26
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentStore>;
29
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.1.28",
3
+ "version": "0.1.31",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"