cat-documents-ng 1.0.36 → 1.0.38
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
CHANGED
|
@@ -1,322 +1,322 @@
|
|
|
1
|
-
## Installation
|
|
2
|
-
To install the library, use the following npm command:
|
|
3
|
-
npm i cat-documents-ng
|
|
4
|
-
|
|
5
|
-
# CatDocumentLib
|
|
6
|
-
|
|
7
|
-
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.0.
|
|
8
|
-
|
|
9
|
-
## Using the Components
|
|
10
|
-
To use the lib-document-container component in your project, include it in your template as follows:
|
|
11
|
-
it needs an contextId to get document-container deatils.
|
|
12
|
-
<lib-document-container [contextId]="contextId"></lib-document-container>
|
|
13
|
-
|
|
14
|
-
Using the Document Viewer
|
|
15
|
-
|
|
16
|
-
If you want to use the standalone document-viewer component, include it in your template like this:
|
|
17
|
-
the document which you want to see pass it to the document-viewer.
|
|
18
|
-
<document-viewer [selectedDocument]="selectedDocument"></document-viewer>
|
|
19
|
-
|
|
20
|
-
Both components are designed to integrate seamlessly into your Angular application.
|
|
21
|
-
|
|
22
|
-
## Usage
|
|
23
|
-
|
|
24
|
-
Add DocumentModule to your module's imports
|
|
25
|
-
|
|
26
|
-
import { NgModule } from '@angular/core';
|
|
27
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
28
|
-
import { AppComponent } from './app/app.component';
|
|
29
|
-
|
|
30
|
-
import { DocumentModule } from 'cat-documents-ng';
|
|
31
|
-
|
|
32
|
-
@NgModule({
|
|
33
|
-
imports: [BrowserModule, DocumentModule],
|
|
34
|
-
declarations: [AppComponent],
|
|
35
|
-
bootstrap: [AppComponent]
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
class AppModule {}
|
|
39
|
-
platformBrowserDynamic().bootstrapModule(AppModule);
|
|
40
|
-
|
|
41
|
-
## DoumentContainer Overview
|
|
42
|
-
The DocumentContainerComponent is a comprehensive Angular component for managing and displaying a list of documents, integrating services and folder components.
|
|
43
|
-
|
|
44
|
-
Features
|
|
45
|
-
|
|
46
|
-
Document Fetching:
|
|
47
|
-
|
|
48
|
-
Fetches documents based on contextId using DocumentService.
|
|
49
|
-
|
|
50
|
-
Handles subscription management for observables.
|
|
51
|
-
|
|
52
|
-
Component Integration:
|
|
53
|
-
|
|
54
|
-
Uses FolderContainerComponent to display folder panels.
|
|
55
|
-
|
|
56
|
-
Displays documents via DocumentListComponent.
|
|
57
|
-
|
|
58
|
-
Template Highlights
|
|
59
|
-
|
|
60
|
-
Grid Layout: Organizes folder and document displays in a scrollable container.
|
|
61
|
-
|
|
62
|
-
Component Embedding: Integrates lib-folder-container and lib-document-list for seamless functionality.
|
|
63
|
-
|
|
64
|
-
Key Properties and Methods
|
|
65
|
-
|
|
66
|
-
Properties:
|
|
67
|
-
|
|
68
|
-
contextId: Input for context identification.
|
|
69
|
-
|
|
70
|
-
documentList: Stores the list of documents fetched from the service.
|
|
71
|
-
|
|
72
|
-
Methods:
|
|
73
|
-
|
|
74
|
-
ngOnInit(): Fetches documents using DocumentService based on contextId.
|
|
75
|
-
|
|
76
|
-
ngOnDestroy(): Cleans up subscriptions on component destruction.
|
|
77
|
-

|
|
78
|
-
|
|
79
|
-
## DocumentUploadComponent Overview
|
|
80
|
-
|
|
81
|
-
The DocumentUploadComponent is a robust Angular component for handling file uploads with real-time progress tracking and user-friendly interfaces.
|
|
82
|
-
|
|
83
|
-
Features
|
|
84
|
-
|
|
85
|
-
File Upload:
|
|
86
|
-
|
|
87
|
-
Allows drag-and-drop or manual selection of files.
|
|
88
|
-
|
|
89
|
-
Accepts .pdf and .png file formats.
|
|
90
|
-
|
|
91
|
-
Supports multiple file uploads.
|
|
92
|
-
|
|
93
|
-
Progress Tracking:
|
|
94
|
-
|
|
95
|
-
Displays individual file upload progress.
|
|
96
|
-
|
|
97
|
-
Shows overall progress as a percentage.
|
|
98
|
-
|
|
99
|
-
Error Handling:
|
|
100
|
-
|
|
101
|
-
Provides feedback for upload errors.
|
|
102
|
-
|
|
103
|
-
Allows users to remove failed uploads.
|
|
104
|
-
|
|
105
|
-
Template Highlights
|
|
106
|
-
|
|
107
|
-
Drag-and-Drop Interface: Encourages intuitive file uploads.
|
|
108
|
-
|
|
109
|
-
Progress Bars: Visualizes upload progress for individual files and total size.
|
|
110
|
-
|
|
111
|
-
Dynamic Interaction: Includes removal options for uploaded or in-progress files.
|
|
112
|
-
|
|
113
|
-
Key Properties and Methods
|
|
114
|
-
|
|
115
|
-
Properties:
|
|
116
|
-
|
|
117
|
-
contextId: Input for the context to associate with uploaded files.
|
|
118
|
-
|
|
119
|
-
uploadedFiles: List of uploaded files.
|
|
120
|
-
|
|
121
|
-
totalSizePercent: Tracks overall upload progress.
|
|
122
|
-
|
|
123
|
-
Methods:
|
|
124
|
-
|
|
125
|
-
choose(event, callback): Triggers file explorer.
|
|
126
|
-
|
|
127
|
-
handleTemplatedUpload(file): Processes and uploads a single file.
|
|
128
|
-
|
|
129
|
-
onSelectedFiles(event): Handles new file selections and initiates uploads.
|
|
130
|
-
|
|
131
|
-
handleDocumentRemove(file, index): Removes a file from the upload list.
|
|
132
|
-
|
|
133
|
-
getProgress(file): Retrieves upload progress for a specific file.
|
|
134
|
-
|
|
135
|
-
## DocumentViewerComponent Overview
|
|
136
|
-
|
|
137
|
-
The DocumentViewerComponent is an Angular component for managing and viewing detailed document information, including images and PDFs.
|
|
138
|
-
|
|
139
|
-
Features
|
|
140
|
-
|
|
141
|
-
Document Display:
|
|
142
|
-
|
|
143
|
-
Displays documents as images or PDFs based on the content type.
|
|
144
|
-
|
|
145
|
-
Alert and Summary Integration:
|
|
146
|
-
|
|
147
|
-
Provides alerts and timeline summaries for document status.
|
|
148
|
-
|
|
149
|
-
Editable Notes:
|
|
150
|
-
|
|
151
|
-
Allows users to add and edit notes related to the document.
|
|
152
|
-
|
|
153
|
-
Property Details:
|
|
154
|
-
|
|
155
|
-
Displays detailed property information associated with the document.
|
|
156
|
-
|
|
157
|
-
Template Highlights
|
|
158
|
-
|
|
159
|
-
Content Viewer: Dynamically displays images or PDFs based on document type.
|
|
160
|
-
|
|
161
|
-
Interactive Alerts: Shows verification status with interactive visuals.
|
|
162
|
-
|
|
163
|
-
Timeline Summary: Uses a timeline to show document-related events.
|
|
164
|
-
|
|
165
|
-
Property Details: Displays additional document-related property information.
|
|
166
|
-
|
|
167
|
-
Key Properties and Methods
|
|
168
|
-
|
|
169
|
-
Properties:
|
|
170
|
-
|
|
171
|
-
selectedDocument: Input for the currently selected document.
|
|
172
|
-
|
|
173
|
-
notes: Editable notes associated with the document.
|
|
174
|
-
|
|
175
|
-
countries: List of countries for additional document metadata.
|
|
176
|
-
|
|
177
|
-
propertyDetails: Additional details related to the document.
|
|
178
|
-
|
|
179
|
-
alertData: Data for alerts and verification statuses.
|
|
180
|
-
|
|
181
|
-
Methods:
|
|
182
|
-
|
|
183
|
-
isImage(contentType): Determines if the document is an image based on MIME type.
|
|
184
|
-

|
|
185
|
-
|
|
186
|
-
## DocumentListComponent Overview
|
|
187
|
-
The DocumentListComponent is an Angular component designed to display a list of documents and manage interactions such as viewing document details and uploading new files. It integrates seamlessly with other components like the Document Viewer and Upload Sidebar to provide a comprehensive document management experience.
|
|
188
|
-
|
|
189
|
-
Features
|
|
190
|
-
|
|
191
|
-
Displays a list of documents using the lib-document-list-item component.
|
|
192
|
-
|
|
193
|
-
Supports user interaction for viewing individual documents.
|
|
194
|
-
|
|
195
|
-
Includes functionality to upload new documents via a sidebar.
|
|
196
|
-
|
|
197
|
-
Configurable through input properties for customization and integration.
|
|
198
|
-
|
|
199
|
-
Key Properties
|
|
200
|
-
|
|
201
|
-
Input Properties
|
|
202
|
-
|
|
203
|
-
contextId: (string)
|
|
204
|
-
|
|
205
|
-
Represents the context identifier for document operations.
|
|
206
|
-
|
|
207
|
-
Default Value: SHARED.EMPTY
|
|
208
|
-
|
|
209
|
-
documentList: (DocumentModel[])
|
|
210
|
-
|
|
211
|
-
An array of documents to display in the component.
|
|
212
|
-
|
|
213
|
-
Default Value: []
|
|
214
|
-
|
|
215
|
-
Internal Properties
|
|
216
|
-
|
|
217
|
-
selectedDocument: (DocumentModel)
|
|
218
|
-
|
|
219
|
-
Represents the currently selected document for viewing in the dialog.
|
|
220
|
-
|
|
221
|
-
isSidebarVisible: (boolean)
|
|
222
|
-
|
|
223
|
-
Determines the visibility of the document upload sidebar.
|
|
224
|
-
|
|
225
|
-
Default Value: false
|
|
226
|
-
|
|
227
|
-
isdialogVisible: (boolean)
|
|
228
|
-
|
|
229
|
-
Determines the visibility of the document viewer dialog.
|
|
230
|
-
|
|
231
|
-
Default Value: false
|
|
232
|
-
|
|
233
|
-
Key Methods
|
|
234
|
-
|
|
235
|
-
handleFileUploadClick(event: MouseEvent): void
|
|
236
|
-
|
|
237
|
-
Handles the click event for the file upload button.
|
|
238
|
-
|
|
239
|
-
Prevents event propagation and displays the upload sidebar.
|
|
240
|
-
|
|
241
|
-
Parameters:
|
|
242
|
-
|
|
243
|
-
event: The MouseEvent triggered by the button click.
|
|
244
|
-
|
|
245
|
-
handleClickForDocument(document: DocumentModel): void
|
|
246
|
-
|
|
247
|
-
Selects a document to view and displays it in the dialog.
|
|
248
|
-
|
|
249
|
-
Parameters:
|
|
250
|
-
|
|
251
|
-
document: The document clicked by the user.
|
|
252
|
-
|
|
253
|
-
handleCloseModal(): void
|
|
254
|
-
|
|
255
|
-
Closes the document viewer dialog and resets the selected document.
|
|
256
|
-
|
|
257
|
-
## FolderBlockComponent Overview
|
|
258
|
-
|
|
259
|
-
The FolderBlockComponent is an Angular component designed for displaying folder blocks with functionality to filter based on folder IDs.
|
|
260
|
-
|
|
261
|
-
Features
|
|
262
|
-
|
|
263
|
-
Folder Display:
|
|
264
|
-
|
|
265
|
-
Renders a grid of folder blocks with details such as file count and status.
|
|
266
|
-
|
|
267
|
-
Each folder block is represented by a FolderBlockModel.
|
|
268
|
-
|
|
269
|
-
Status Indicators:
|
|
270
|
-
|
|
271
|
-
Displays counts for missing and pending files using SHARED constants.
|
|
272
|
-
|
|
273
|
-
Template Highlights
|
|
274
|
-
|
|
275
|
-
Folder Details: Displays file counts, folder name, and dynamic status indicators.
|
|
276
|
-
|
|
277
|
-
Filter Interaction: Allows users to filter documents by clicking on a folder.
|
|
278
|
-
|
|
279
|
-
Key Properties and Methods
|
|
280
|
-
|
|
281
|
-
Properties:
|
|
282
|
-
|
|
283
|
-
folderBlocks: Input property for an array of FolderBlockModel representing folder data.
|
|
284
|
-
|
|
285
|
-
missingFileCount & pendingFileCount: Display counts for missing and pending files.
|
|
286
|
-
|
|
287
|
-
Methods:
|
|
288
|
-
|
|
289
|
-
handleClickForFilter(folderBlockId): Validates the folder ID and triggers filtering logic.
|
|
290
|
-
|
|
291
|
-
## FolderContainerComponent Overview
|
|
292
|
-
|
|
293
|
-
The FolderContainerComponent is responsible for rendering a container that displays a list of documents along with associated folder panel data.
|
|
294
|
-
|
|
295
|
-
Features
|
|
296
|
-
|
|
297
|
-
Folder and Document Integration:
|
|
298
|
-
|
|
299
|
-
Combines folder panel data (FOLDERPANEL) and a list of documents (DocumentModel[]).
|
|
300
|
-
|
|
301
|
-
Displays folder blocks using FolderBlockComponent.
|
|
302
|
-
|
|
303
|
-
Data Sourcing:
|
|
304
|
-
|
|
305
|
-
Sources folder panel data from FOLDERPANEL.
|
|
306
|
-
|
|
307
|
-
Accepts a document list as an input.
|
|
308
|
-
|
|
309
|
-
Template Highlights
|
|
310
|
-
|
|
311
|
-
Folder Blocks Display: Uses lib-folder-block to render folder panels.
|
|
312
|
-
|
|
313
|
-
Key Properties
|
|
314
|
-
|
|
315
|
-
Properties:
|
|
316
|
-
|
|
317
|
-
documentList: Input for a list of documents to display.
|
|
318
|
-
|
|
319
|
-
folderBlocks: Data sourced from FOLDERPANEL for folder blocks.
|
|
320
|
-
|
|
321
|
-
## Additional Resources
|
|
322
|
-
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
1
|
+
## Installation
|
|
2
|
+
To install the library, use the following npm command:
|
|
3
|
+
npm i cat-documents-ng
|
|
4
|
+
|
|
5
|
+
# CatDocumentLib
|
|
6
|
+
|
|
7
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.0.
|
|
8
|
+
|
|
9
|
+
## Using the Components
|
|
10
|
+
To use the lib-document-container component in your project, include it in your template as follows:
|
|
11
|
+
it needs an contextId to get document-container deatils.
|
|
12
|
+
<lib-document-container [contextId]="contextId"></lib-document-container>
|
|
13
|
+
|
|
14
|
+
Using the Document Viewer
|
|
15
|
+
|
|
16
|
+
If you want to use the standalone document-viewer component, include it in your template like this:
|
|
17
|
+
the document which you want to see pass it to the document-viewer.
|
|
18
|
+
<document-viewer [selectedDocument]="selectedDocument"></document-viewer>
|
|
19
|
+
|
|
20
|
+
Both components are designed to integrate seamlessly into your Angular application.
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
Add DocumentModule to your module's imports
|
|
25
|
+
|
|
26
|
+
import { NgModule } from '@angular/core';
|
|
27
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
28
|
+
import { AppComponent } from './app/app.component';
|
|
29
|
+
|
|
30
|
+
import { DocumentModule } from 'cat-documents-ng';
|
|
31
|
+
|
|
32
|
+
@NgModule({
|
|
33
|
+
imports: [BrowserModule, DocumentModule],
|
|
34
|
+
declarations: [AppComponent],
|
|
35
|
+
bootstrap: [AppComponent]
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
class AppModule {}
|
|
39
|
+
platformBrowserDynamic().bootstrapModule(AppModule);
|
|
40
|
+
|
|
41
|
+
## DoumentContainer Overview
|
|
42
|
+
The DocumentContainerComponent is a comprehensive Angular component for managing and displaying a list of documents, integrating services and folder components.
|
|
43
|
+
|
|
44
|
+
Features
|
|
45
|
+
|
|
46
|
+
Document Fetching:
|
|
47
|
+
|
|
48
|
+
Fetches documents based on contextId using DocumentService.
|
|
49
|
+
|
|
50
|
+
Handles subscription management for observables.
|
|
51
|
+
|
|
52
|
+
Component Integration:
|
|
53
|
+
|
|
54
|
+
Uses FolderContainerComponent to display folder panels.
|
|
55
|
+
|
|
56
|
+
Displays documents via DocumentListComponent.
|
|
57
|
+
|
|
58
|
+
Template Highlights
|
|
59
|
+
|
|
60
|
+
Grid Layout: Organizes folder and document displays in a scrollable container.
|
|
61
|
+
|
|
62
|
+
Component Embedding: Integrates lib-folder-container and lib-document-list for seamless functionality.
|
|
63
|
+
|
|
64
|
+
Key Properties and Methods
|
|
65
|
+
|
|
66
|
+
Properties:
|
|
67
|
+
|
|
68
|
+
contextId: Input for context identification.
|
|
69
|
+
|
|
70
|
+
documentList: Stores the list of documents fetched from the service.
|
|
71
|
+
|
|
72
|
+
Methods:
|
|
73
|
+
|
|
74
|
+
ngOnInit(): Fetches documents using DocumentService based on contextId.
|
|
75
|
+
|
|
76
|
+
ngOnDestroy(): Cleans up subscriptions on component destruction.
|
|
77
|
+

|
|
78
|
+
|
|
79
|
+
## DocumentUploadComponent Overview
|
|
80
|
+
|
|
81
|
+
The DocumentUploadComponent is a robust Angular component for handling file uploads with real-time progress tracking and user-friendly interfaces.
|
|
82
|
+
|
|
83
|
+
Features
|
|
84
|
+
|
|
85
|
+
File Upload:
|
|
86
|
+
|
|
87
|
+
Allows drag-and-drop or manual selection of files.
|
|
88
|
+
|
|
89
|
+
Accepts .pdf and .png file formats.
|
|
90
|
+
|
|
91
|
+
Supports multiple file uploads.
|
|
92
|
+
|
|
93
|
+
Progress Tracking:
|
|
94
|
+
|
|
95
|
+
Displays individual file upload progress.
|
|
96
|
+
|
|
97
|
+
Shows overall progress as a percentage.
|
|
98
|
+
|
|
99
|
+
Error Handling:
|
|
100
|
+
|
|
101
|
+
Provides feedback for upload errors.
|
|
102
|
+
|
|
103
|
+
Allows users to remove failed uploads.
|
|
104
|
+
|
|
105
|
+
Template Highlights
|
|
106
|
+
|
|
107
|
+
Drag-and-Drop Interface: Encourages intuitive file uploads.
|
|
108
|
+
|
|
109
|
+
Progress Bars: Visualizes upload progress for individual files and total size.
|
|
110
|
+
|
|
111
|
+
Dynamic Interaction: Includes removal options for uploaded or in-progress files.
|
|
112
|
+
|
|
113
|
+
Key Properties and Methods
|
|
114
|
+
|
|
115
|
+
Properties:
|
|
116
|
+
|
|
117
|
+
contextId: Input for the context to associate with uploaded files.
|
|
118
|
+
|
|
119
|
+
uploadedFiles: List of uploaded files.
|
|
120
|
+
|
|
121
|
+
totalSizePercent: Tracks overall upload progress.
|
|
122
|
+
|
|
123
|
+
Methods:
|
|
124
|
+
|
|
125
|
+
choose(event, callback): Triggers file explorer.
|
|
126
|
+
|
|
127
|
+
handleTemplatedUpload(file): Processes and uploads a single file.
|
|
128
|
+
|
|
129
|
+
onSelectedFiles(event): Handles new file selections and initiates uploads.
|
|
130
|
+
|
|
131
|
+
handleDocumentRemove(file, index): Removes a file from the upload list.
|
|
132
|
+
|
|
133
|
+
getProgress(file): Retrieves upload progress for a specific file.
|
|
134
|
+
|
|
135
|
+
## DocumentViewerComponent Overview
|
|
136
|
+
|
|
137
|
+
The DocumentViewerComponent is an Angular component for managing and viewing detailed document information, including images and PDFs.
|
|
138
|
+
|
|
139
|
+
Features
|
|
140
|
+
|
|
141
|
+
Document Display:
|
|
142
|
+
|
|
143
|
+
Displays documents as images or PDFs based on the content type.
|
|
144
|
+
|
|
145
|
+
Alert and Summary Integration:
|
|
146
|
+
|
|
147
|
+
Provides alerts and timeline summaries for document status.
|
|
148
|
+
|
|
149
|
+
Editable Notes:
|
|
150
|
+
|
|
151
|
+
Allows users to add and edit notes related to the document.
|
|
152
|
+
|
|
153
|
+
Property Details:
|
|
154
|
+
|
|
155
|
+
Displays detailed property information associated with the document.
|
|
156
|
+
|
|
157
|
+
Template Highlights
|
|
158
|
+
|
|
159
|
+
Content Viewer: Dynamically displays images or PDFs based on document type.
|
|
160
|
+
|
|
161
|
+
Interactive Alerts: Shows verification status with interactive visuals.
|
|
162
|
+
|
|
163
|
+
Timeline Summary: Uses a timeline to show document-related events.
|
|
164
|
+
|
|
165
|
+
Property Details: Displays additional document-related property information.
|
|
166
|
+
|
|
167
|
+
Key Properties and Methods
|
|
168
|
+
|
|
169
|
+
Properties:
|
|
170
|
+
|
|
171
|
+
selectedDocument: Input for the currently selected document.
|
|
172
|
+
|
|
173
|
+
notes: Editable notes associated with the document.
|
|
174
|
+
|
|
175
|
+
countries: List of countries for additional document metadata.
|
|
176
|
+
|
|
177
|
+
propertyDetails: Additional details related to the document.
|
|
178
|
+
|
|
179
|
+
alertData: Data for alerts and verification statuses.
|
|
180
|
+
|
|
181
|
+
Methods:
|
|
182
|
+
|
|
183
|
+
isImage(contentType): Determines if the document is an image based on MIME type.
|
|
184
|
+

|
|
185
|
+
|
|
186
|
+
## DocumentListComponent Overview
|
|
187
|
+
The DocumentListComponent is an Angular component designed to display a list of documents and manage interactions such as viewing document details and uploading new files. It integrates seamlessly with other components like the Document Viewer and Upload Sidebar to provide a comprehensive document management experience.
|
|
188
|
+
|
|
189
|
+
Features
|
|
190
|
+
|
|
191
|
+
Displays a list of documents using the lib-document-list-item component.
|
|
192
|
+
|
|
193
|
+
Supports user interaction for viewing individual documents.
|
|
194
|
+
|
|
195
|
+
Includes functionality to upload new documents via a sidebar.
|
|
196
|
+
|
|
197
|
+
Configurable through input properties for customization and integration.
|
|
198
|
+
|
|
199
|
+
Key Properties
|
|
200
|
+
|
|
201
|
+
Input Properties
|
|
202
|
+
|
|
203
|
+
contextId: (string)
|
|
204
|
+
|
|
205
|
+
Represents the context identifier for document operations.
|
|
206
|
+
|
|
207
|
+
Default Value: SHARED.EMPTY
|
|
208
|
+
|
|
209
|
+
documentList: (DocumentModel[])
|
|
210
|
+
|
|
211
|
+
An array of documents to display in the component.
|
|
212
|
+
|
|
213
|
+
Default Value: []
|
|
214
|
+
|
|
215
|
+
Internal Properties
|
|
216
|
+
|
|
217
|
+
selectedDocument: (DocumentModel)
|
|
218
|
+
|
|
219
|
+
Represents the currently selected document for viewing in the dialog.
|
|
220
|
+
|
|
221
|
+
isSidebarVisible: (boolean)
|
|
222
|
+
|
|
223
|
+
Determines the visibility of the document upload sidebar.
|
|
224
|
+
|
|
225
|
+
Default Value: false
|
|
226
|
+
|
|
227
|
+
isdialogVisible: (boolean)
|
|
228
|
+
|
|
229
|
+
Determines the visibility of the document viewer dialog.
|
|
230
|
+
|
|
231
|
+
Default Value: false
|
|
232
|
+
|
|
233
|
+
Key Methods
|
|
234
|
+
|
|
235
|
+
handleFileUploadClick(event: MouseEvent): void
|
|
236
|
+
|
|
237
|
+
Handles the click event for the file upload button.
|
|
238
|
+
|
|
239
|
+
Prevents event propagation and displays the upload sidebar.
|
|
240
|
+
|
|
241
|
+
Parameters:
|
|
242
|
+
|
|
243
|
+
event: The MouseEvent triggered by the button click.
|
|
244
|
+
|
|
245
|
+
handleClickForDocument(document: DocumentModel): void
|
|
246
|
+
|
|
247
|
+
Selects a document to view and displays it in the dialog.
|
|
248
|
+
|
|
249
|
+
Parameters:
|
|
250
|
+
|
|
251
|
+
document: The document clicked by the user.
|
|
252
|
+
|
|
253
|
+
handleCloseModal(): void
|
|
254
|
+
|
|
255
|
+
Closes the document viewer dialog and resets the selected document.
|
|
256
|
+
|
|
257
|
+
## FolderBlockComponent Overview
|
|
258
|
+
|
|
259
|
+
The FolderBlockComponent is an Angular component designed for displaying folder blocks with functionality to filter based on folder IDs.
|
|
260
|
+
|
|
261
|
+
Features
|
|
262
|
+
|
|
263
|
+
Folder Display:
|
|
264
|
+
|
|
265
|
+
Renders a grid of folder blocks with details such as file count and status.
|
|
266
|
+
|
|
267
|
+
Each folder block is represented by a FolderBlockModel.
|
|
268
|
+
|
|
269
|
+
Status Indicators:
|
|
270
|
+
|
|
271
|
+
Displays counts for missing and pending files using SHARED constants.
|
|
272
|
+
|
|
273
|
+
Template Highlights
|
|
274
|
+
|
|
275
|
+
Folder Details: Displays file counts, folder name, and dynamic status indicators.
|
|
276
|
+
|
|
277
|
+
Filter Interaction: Allows users to filter documents by clicking on a folder.
|
|
278
|
+
|
|
279
|
+
Key Properties and Methods
|
|
280
|
+
|
|
281
|
+
Properties:
|
|
282
|
+
|
|
283
|
+
folderBlocks: Input property for an array of FolderBlockModel representing folder data.
|
|
284
|
+
|
|
285
|
+
missingFileCount & pendingFileCount: Display counts for missing and pending files.
|
|
286
|
+
|
|
287
|
+
Methods:
|
|
288
|
+
|
|
289
|
+
handleClickForFilter(folderBlockId): Validates the folder ID and triggers filtering logic.
|
|
290
|
+
|
|
291
|
+
## FolderContainerComponent Overview
|
|
292
|
+
|
|
293
|
+
The FolderContainerComponent is responsible for rendering a container that displays a list of documents along with associated folder panel data.
|
|
294
|
+
|
|
295
|
+
Features
|
|
296
|
+
|
|
297
|
+
Folder and Document Integration:
|
|
298
|
+
|
|
299
|
+
Combines folder panel data (FOLDERPANEL) and a list of documents (DocumentModel[]).
|
|
300
|
+
|
|
301
|
+
Displays folder blocks using FolderBlockComponent.
|
|
302
|
+
|
|
303
|
+
Data Sourcing:
|
|
304
|
+
|
|
305
|
+
Sources folder panel data from FOLDERPANEL.
|
|
306
|
+
|
|
307
|
+
Accepts a document list as an input.
|
|
308
|
+
|
|
309
|
+
Template Highlights
|
|
310
|
+
|
|
311
|
+
Folder Blocks Display: Uses lib-folder-block to render folder panels.
|
|
312
|
+
|
|
313
|
+
Key Properties
|
|
314
|
+
|
|
315
|
+
Properties:
|
|
316
|
+
|
|
317
|
+
documentList: Input for a list of documents to display.
|
|
318
|
+
|
|
319
|
+
folderBlocks: Data sourced from FOLDERPANEL for folder blocks.
|
|
320
|
+
|
|
321
|
+
## Additional Resources
|
|
322
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|