cat-documents-ng 1.0.3 → 1.0.4

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.
Files changed (142) hide show
  1. package/README.md +298 -35
  2. package/Shared/components/confirmation-dialog/confirmation-dialog.component.d.ts +44 -0
  3. package/Shared/components/table-primary/table-primary.component.d.ts +31 -0
  4. package/Shared/components/table-primary/table-primary.model.d.ts +19 -0
  5. package/Shared/constant/ERROR.d.ts +52 -0
  6. package/Shared/constant/SHARED.d.ts +546 -0
  7. package/Shared/constant/URLS.d.ts +123 -0
  8. package/Shared/services/app-config.service.d.ts +51 -0
  9. package/{projects/cat-document-lib/src/shared/services/global-error.handler.ts → Shared/services/global-error.handler.d.ts} +9 -11
  10. package/Shared/services/session.service.d.ts +46 -0
  11. package/Shared/shared.module.d.ts +14 -0
  12. package/fesm2022/cat-documents-ng.mjs +11392 -0
  13. package/fesm2022/cat-documents-ng.mjs.map +1 -0
  14. package/index.d.ts +5 -0
  15. package/lib/document/components/document-actions/document-actions.component.d.ts +78 -0
  16. package/lib/document/components/document-container/document-container.component.d.ts +162 -0
  17. package/lib/document/components/document-content-viewer/document-content-viewer.component.d.ts +291 -0
  18. package/lib/document/components/document-history/document-history.component.d.ts +160 -0
  19. package/lib/document/components/document-list/document-list.component.d.ts +299 -0
  20. package/lib/document/components/document-list-item/document-list-item.component.d.ts +28 -0
  21. package/lib/document/components/document-search/document-search.component.d.ts +77 -0
  22. package/lib/document/components/document-status/document-status.component.d.ts +24 -0
  23. package/lib/document/components/document-upload/document-upload.component.d.ts +321 -0
  24. package/lib/document/components/document-viewer/document-viewer.component.d.ts +137 -0
  25. package/lib/document/components/document-zoom-controls/document-zoom-controls.component.d.ts +33 -0
  26. package/lib/document/components/documents-menu/documents-menu.component.d.ts +110 -0
  27. package/{projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.ts → lib/document/components/folder-block/folder-block.component.d.ts} +12 -26
  28. package/lib/document/components/folder-container/folder-container.component.d.ts +162 -0
  29. package/lib/document/components/linked-document/linked-document.component.d.ts +39 -0
  30. package/lib/document/components/request-document/request-document.component.d.ts +69 -0
  31. package/lib/document/components/sidebar/sidebar.component.d.ts +109 -0
  32. package/lib/document/components/user-list/user-list.component.d.ts +34 -0
  33. package/lib/document/constant/DOCUMENT_HISTORY.d.ts +41 -0
  34. package/lib/document/directives/document.directive.d.ts +20 -0
  35. package/lib/document/directives/permission.directive.d.ts +38 -0
  36. package/lib/document/document.module.d.ts +60 -0
  37. package/lib/document/models/document-alert.model.d.ts +38 -0
  38. package/lib/document/models/document-category.model.d.ts +24 -0
  39. package/lib/document/models/document-history.model.d.ts +94 -0
  40. package/lib/document/models/document-list-response.model.d.ts +33 -0
  41. package/lib/document/models/document-type.model.d.ts +37 -0
  42. package/lib/document/models/document.model.d.ts +44 -0
  43. package/{projects/cat-document-lib/src/lib/document/models/folder.model.ts → lib/document/models/folder.model.d.ts} +7 -13
  44. package/lib/document/models/status-data.model.d.ts +27 -0
  45. package/lib/document/models/uploaded-file-response.model.d.ts +7 -0
  46. package/lib/document/models/user-list.model.d.ts +8 -0
  47. package/lib/document/services/csv-parser.service.d.ts +88 -0
  48. package/lib/document/services/document-actions.service.d.ts +48 -0
  49. package/lib/document/services/document-content-type.service.d.ts +85 -0
  50. package/lib/document/services/document-history-style.service.d.ts +34 -0
  51. package/lib/document/services/document-history.service.d.ts +42 -0
  52. package/lib/document/services/document-http.service.d.ts +179 -0
  53. package/lib/document/services/document-list.service.d.ts +74 -0
  54. package/lib/document/services/document-menu.service.d.ts +122 -0
  55. package/lib/document/services/document-scroll.service.d.ts +55 -0
  56. package/lib/document/services/document-table-builder.service.d.ts +38 -0
  57. package/lib/document/services/document-upload-business.service.d.ts +107 -0
  58. package/lib/document/services/document-upload-data.service.d.ts +40 -0
  59. package/lib/document/services/document-upload-form.service.d.ts +41 -0
  60. package/lib/document/services/document-upload.service.d.ts +99 -0
  61. package/lib/document/services/document-viewer.service.d.ts +97 -0
  62. package/lib/document/services/document-zoom.service.d.ts +81 -0
  63. package/lib/document/services/document.service.d.ts +161 -0
  64. package/lib/document/services/eml-parser.service.d.ts +116 -0
  65. package/lib/document/services/excel-parser.service.d.ts +169 -0
  66. package/lib/document/services/file-format.service.d.ts +34 -0
  67. package/lib/document/services/status-calculator.service.d.ts +20 -0
  68. package/lib/document/services/user-list.service.d.ts +29 -0
  69. package/lib/document/state/document.query.d.ts +243 -0
  70. package/{projects/cat-document-lib/src/lib/document/state/document.service.ts → lib/document/state/document.service.d.ts} +15 -46
  71. package/lib/document/state/document.state.d.ts +61 -0
  72. package/lib/document/state/document.store.d.ts +56 -0
  73. package/package.json +19 -57
  74. package/public-api.d.ts +27 -0
  75. package/src/assets/images/Document interface.png +0 -0
  76. package/src/assets/images/Document upload.png +0 -0
  77. package/src/assets/images/Pdf viewer dialog.png +0 -0
  78. package/.github/PULL_REQUEST_TEMPLATE.md +0 -32
  79. package/.husky/pre-commit +0 -4
  80. package/angular.json +0 -119
  81. package/eslint.config.cjs +0 -148
  82. package/projects/cat-document-lib/README.md +0 -63
  83. package/projects/cat-document-lib/ng-package.json +0 -11
  84. package/projects/cat-document-lib/package.json +0 -16
  85. package/projects/cat-document-lib/setup-jest.ts +0 -1
  86. package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.html +0 -6
  87. package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.scss +0 -0
  88. package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.spec.ts +0 -0
  89. package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.ts +0 -82
  90. package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.html +0 -35
  91. package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.scss +0 -12
  92. package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.spec.ts +0 -0
  93. package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.ts +0 -73
  94. package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.html +0 -33
  95. package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.scss +0 -22
  96. package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.spec.ts +0 -23
  97. package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.ts +0 -40
  98. package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.html +0 -56
  99. package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.scss +0 -26
  100. package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.spec.ts +0 -24
  101. package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.ts +0 -184
  102. package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.html +0 -244
  103. package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.scss +0 -36
  104. package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.spec.ts +0 -21
  105. package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.ts +0 -125
  106. package/projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.html +0 -46
  107. package/projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.scss +0 -0
  108. package/projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.spec.ts +0 -0
  109. package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.html +0 -2
  110. package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.scss +0 -0
  111. package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.spec.ts +0 -0
  112. package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.ts +0 -29
  113. package/projects/cat-document-lib/src/lib/document/document.module.ts +0 -187
  114. package/projects/cat-document-lib/src/lib/document/models/document.model.ts +0 -39
  115. package/projects/cat-document-lib/src/lib/document/services/file-format.service.spec.ts +0 -16
  116. package/projects/cat-document-lib/src/lib/document/services/file-format.service.ts +0 -41
  117. package/projects/cat-document-lib/src/lib/document/state/document.query.ts +0 -23
  118. package/projects/cat-document-lib/src/lib/document/state/document.state.ts +0 -39
  119. package/projects/cat-document-lib/src/lib/document/state/document.store.ts +0 -23
  120. package/projects/cat-document-lib/src/public-api.ts +0 -8
  121. package/projects/cat-document-lib/src/shared/constant/SHARED.ts +0 -232
  122. package/projects/cat-document-lib/src/shared/constant/URLS.ts +0 -31
  123. package/projects/cat-document-lib/src/shared/services/app-config.service.spec.ts +0 -16
  124. package/projects/cat-document-lib/src/shared/services/app-config.service.ts +0 -73
  125. package/projects/cat-document-lib/tsconfig.lib.json +0 -15
  126. package/projects/cat-document-lib/tsconfig.lib.prod.json +0 -11
  127. package/projects/cat-document-lib/tsconfig.spec.json +0 -15
  128. package/public/favicon.ico +0 -0
  129. package/src/app/app.component.html +0 -1
  130. package/src/app/app.component.scss +0 -0
  131. package/src/app/app.component.spec.ts +0 -29
  132. package/src/app/app.component.ts +0 -15
  133. package/src/app/app.module.ts +0 -60
  134. package/src/app/app.routing.module.ts +0 -19
  135. package/src/index.html +0 -13
  136. package/src/main.ts +0 -5
  137. package/src/styles.scss +0 -39
  138. package/tsconfig.app.json +0 -15
  139. package/tsconfig.json +0 -32
  140. /package/{projects/cat-document-lib/src → src}/assets/images/FolderImg.png +0 -0
  141. /package/{projects/cat-document-lib/src → src}/assets/images/Frame.png +0 -0
  142. /package/{projects/cat-document-lib/src → src}/assets/images/document.png +0 -0
package/README.md CHANGED
@@ -1,59 +1,322 @@
1
- # CatDocumentsNg
1
+ ## Installation
2
+ To install the library, use the following npm command:
3
+ npm i cat-documents-ng
2
4
 
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.5.
5
+ # CatDocumentLib
4
6
 
5
- ## Development server
7
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.0.
6
8
 
7
- To start a local development server, run:
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>
8
13
 
9
- ```bash
10
- ng serve
11
- ```
14
+ Using the Document Viewer
12
15
 
13
- Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
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>
14
19
 
15
- ## Code scaffolding
20
+ Both components are designed to integrate seamlessly into your Angular application.
16
21
 
17
- Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
22
+ ## Usage
18
23
 
19
- ```bash
20
- ng generate component component-name
21
- ```
24
+ Add DocumentModule to your module's imports
22
25
 
23
- For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
26
+ import { NgModule } from '@angular/core';
27
+ import { BrowserModule } from '@angular/platform-browser';
28
+ import { AppComponent } from './app/app.component';
24
29
 
25
- ```bash
26
- ng generate --help
27
- ```
30
+ import { DocumentModule } from 'cat-documents-ng';
28
31
 
29
- ## Building
32
+ @NgModule({
33
+ imports: [BrowserModule, DocumentModule],
34
+ declarations: [AppComponent],
35
+ bootstrap: [AppComponent]
36
+ })
30
37
 
31
- To build the project run:
38
+ class AppModule {}
39
+ platformBrowserDynamic().bootstrapModule(AppModule);
32
40
 
33
- ```bash
34
- ng build
35
- ```
41
+ ## DoumentContainer Overview
42
+ The DocumentContainerComponent is a comprehensive Angular component for managing and displaying a list of documents, integrating services and folder components.
36
43
 
37
- This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
44
+ Features
38
45
 
39
- ## Running unit tests
46
+ Document Fetching:
40
47
 
41
- To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
48
+ Fetches documents based on contextId using DocumentService.
42
49
 
43
- ```bash
44
- ng test
45
- ```
50
+ Handles subscription management for observables.
46
51
 
47
- ## Running end-to-end tests
52
+ Component Integration:
48
53
 
49
- For end-to-end (e2e) testing, run:
54
+ Uses FolderContainerComponent to display folder panels.
50
55
 
51
- ```bash
52
- ng e2e
53
- ```
56
+ Displays documents via DocumentListComponent.
54
57
 
55
- Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
58
+ Template Highlights
56
59
 
57
- ## Additional Resources
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
+ ![Alt text for the image](../../projects/cat-document-lib/src/assets/images/Document%20interface.png)
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
+ ![Alt text for the image](../../projects/cat-document-lib/src/assets/images/Pdf%20viewer%20dialog.png)
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.
58
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
59
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.
@@ -0,0 +1,44 @@
1
+ import { ConfirmationService } from 'primeng/api';
2
+ import * as i0 from "@angular/core";
3
+ export interface ConfirmationOptions {
4
+ message: string;
5
+ header?: string;
6
+ icon?: string;
7
+ acceptLabel?: string;
8
+ rejectLabel?: string;
9
+ acceptIcon?: string;
10
+ rejectIcon?: string;
11
+ acceptButtonClass?: string;
12
+ rejectButtonClass?: string;
13
+ }
14
+ export declare class ConfirmationDialogComponent {
15
+ private confirmationService;
16
+ confirmationOptions: ConfirmationOptions;
17
+ constructor(confirmationService: ConfirmationService);
18
+ /**
19
+ * Shows the confirmation dialog with the specified options
20
+ * @param options - Configuration options for the confirmation dialog
21
+ * @param acceptCallback - Function to execute when user accepts
22
+ * @param rejectCallback - Function to execute when user rejects
23
+ */
24
+ confirm(options: Partial<ConfirmationOptions>, acceptCallback: () => void, rejectCallback?: () => void): void;
25
+ /**
26
+ * Static method to show a confirmation dialog (for components that don't want to inject this component)
27
+ * @param confirmationService - The ConfirmationService instance
28
+ * @param options - Configuration options for the confirmation dialog
29
+ * @param acceptCallback - Function to execute when user accepts
30
+ * @param rejectCallback - Function to execute when user rejects
31
+ */
32
+ static confirm(confirmationService: ConfirmationService, options: Partial<ConfirmationOptions>, acceptCallback: () => void, rejectCallback?: () => void): void;
33
+ /**
34
+ * Static method to show a delete confirmation dialog
35
+ * @param confirmationService - The ConfirmationService instance
36
+ * @param itemName - Name of the item to be deleted
37
+ * @param acceptCallback - Function to execute when user accepts deletion
38
+ * @param rejectCallback - Function to execute when user rejects deletion
39
+ */
40
+ static confirmDelete(confirmationService: ConfirmationService, itemName: string, acceptCallback: () => void, rejectCallback?: () => void): void;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationDialogComponent, "app-confirmation-dialog", never, { "confirmationOptions": { "alias": "confirmationOptions"; "required": false; }; }, {}, never, never, false, never>;
43
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationDialogComponent>;
44
+ }
@@ -0,0 +1,31 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { SHARED } from '../../constant/SHARED';
3
+ import { ProcessedRowData, TableData } from './table-primary.model';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TablePrimaryComponent implements OnChanges {
6
+ tableData: TableData;
7
+ showHeader: boolean;
8
+ tableStyle: any;
9
+ rowClick: EventEmitter<any>;
10
+ rowCtrlClick: EventEmitter<any>;
11
+ processedData: ProcessedRowData[];
12
+ readonly SHARED: typeof SHARED;
13
+ get visibleColumns(): import("cat-documents-ng").TableColumn[];
14
+ ngOnChanges(changes: SimpleChanges): void;
15
+ private processTableData;
16
+ getStatusClass(status: string): string;
17
+ getStatusIcon(status: string): string;
18
+ getFileExtension(fileName: string): string;
19
+ onRowClick(event: MouseEvent, rowData: any): void;
20
+ getVisibleColumnCount(): number;
21
+ /**
22
+ * Formats document display name based on whether aliasName exists:
23
+ * - Without aliasName: fileName on top, docName below
24
+ * - With aliasName: aliasName on top, docName - fileName below
25
+ * @param rowData The row data containing docName, aliasName, and fileName
26
+ * @returns HTML string with proper formatting
27
+ */
28
+ formatDocumentDisplayName(rowData: any): string;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<TablePrimaryComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<TablePrimaryComponent, "lib-table-primary", never, { "tableData": { "alias": "tableData"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "tableStyle": { "alias": "tableStyle"; "required": false; }; }, { "rowClick": "rowClick"; "rowCtrlClick": "rowCtrlClick"; }, never, never, false, never>;
31
+ }
@@ -0,0 +1,19 @@
1
+ export interface TableColumn {
2
+ field: string;
3
+ header: string;
4
+ type?: 'text' | 'status' | 'document' | 'actions';
5
+ width?: string;
6
+ }
7
+ export interface TableData {
8
+ columns: TableColumn[];
9
+ data: any[];
10
+ }
11
+ export interface ProcessedRowData {
12
+ _fileExtension?: string;
13
+ _isPdfFile?: boolean;
14
+ _isImageFile?: boolean;
15
+ _isExcelFile?: boolean;
16
+ _isOtherFile?: boolean;
17
+ _statusClass?: string;
18
+ _statusIcon?: string;
19
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * A utility class containing common error messages.
3
+ * @class ERRORS
4
+ */
5
+ export declare class ERRORS {
6
+ /**
7
+ * Error message for invalid recipient.
8
+ * @static
9
+ * @type {string}
10
+ */
11
+ static INVALID_RECIPIENT: string;
12
+ static NO_VALUE_FOUND: string;
13
+ /**
14
+ * Error message for invalid document.
15
+ * @static
16
+ * @type {string}
17
+ */
18
+ static ERROR_FETCHING_DOCUMENTS: string;
19
+ /**
20
+ * Error message for invalid document.
21
+ * @static
22
+ * @type {string}
23
+ */
24
+ static ERROR_FETCHING_FOLDERS: string;
25
+ /**
26
+ * Error message for invalid document.
27
+ * @static
28
+ * @type {string}
29
+ */
30
+ static ERROR_ALLDOCUMENT_MISSING: string;
31
+ /**
32
+ * Error message for invalid document.
33
+ * @static
34
+ * @type {string}
35
+ */
36
+ static ERROR_DOCUMENT_TYPES: string;
37
+ static ERROR_DOCUMENT_CATAGORY: string;
38
+ static NO_DOCUMENT_URL: string;
39
+ static DOWNLOAD_FAIL: string;
40
+ static ERROR_DELETING_DOCUMENT: string;
41
+ static ERROR_RECEIVING_DOCUMENT_LIST: string;
42
+ static CONTEXT_ID_REQUIRED: string;
43
+ static ERROR_FETCHING_STATUS_DATA: string;
44
+ static ERROR_FETCHING_USER_LIST: string;
45
+ static ERROR_FETCHING_DOCUMENT_LIST: string;
46
+ static ERROR_FETCHING_DOCUMENT_CATEGORIES: string;
47
+ static ERROR_FETCHING_DOCUMENTS_BY_STATUS: string;
48
+ static ERROR_FETCHING_DOCUMENTS_BY_CATEGORY: string;
49
+ static ERROR_CALLING_API_WITH_SELECTION: string;
50
+ static ERROR_FILE_NAME_INVALID_CHARACTERS: string;
51
+ static ERROR_FILE_NAME_EMPTY: string;
52
+ }