cat-documents-ng 0.1.22 → 0.1.24

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 { ElementRef, 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,6 +6,7 @@ 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';
9
10
  import * as i0 from "@angular/core";
10
11
  /**
11
12
  * This component is responsible for displaying and managing a list of documents.
@@ -17,6 +18,7 @@ export declare class DocumentListComponent implements OnInit {
17
18
  documentHttpService: DocumentHttpService;
18
19
  documentQuery: DocumentQuery;
19
20
  documentStore: DocumentStore;
21
+ private sessionService;
20
22
  onRefresh: EventEmitter<any>;
21
23
  /**
22
24
  * Represents the context ID for the document list.
@@ -90,6 +92,11 @@ export declare class DocumentListComponent implements OnInit {
90
92
  * @type {string | undefined}
91
93
  */
92
94
  fileName: string | undefined;
95
+ documentStatus: string | undefined;
96
+ hasDocumentPutAccess: any;
97
+ fileNameError: string;
98
+ disallowedCharsRegex: RegExp;
99
+ fileInput: ElementRef<HTMLInputElement>;
93
100
  /**
94
101
  * Creates an instance of DocumentListComponent.
95
102
  * @class
@@ -98,7 +105,7 @@ export declare class DocumentListComponent implements OnInit {
98
105
  * @param {DocumentQuery} documentQuery - The service responsible for geting stored documents.
99
106
  * @param {DocumentStore} documentStore - The service responsible for storing documents.
100
107
  */
101
- constructor(documentUploadService: DocumentUploadService, documentHttpService: DocumentHttpService, documentQuery: DocumentQuery, documentStore: DocumentStore);
108
+ constructor(documentUploadService: DocumentUploadService, documentHttpService: DocumentHttpService, documentQuery: DocumentQuery, documentStore: DocumentStore, sessionService: SessionService);
102
109
  /**
103
110
  * Initializes the component by fetching the document type list.
104
111
  */
@@ -130,6 +137,7 @@ export declare class DocumentListComponent implements OnInit {
130
137
  * @memberof DocumentListComponent
131
138
  */
132
139
  handleCloseModal(): void;
140
+ onFileNameChange(event: Event): void;
133
141
  /**
134
142
  * Handles the upload action for a document.
135
143
  * Validates if a document type is selected and logs the result.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"