hplx-feature-library 1.0.133 → 1.0.135
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/dist/Attachments/Attachments.d.ts +2 -2
- package/dist/Attachments/components/document-container.d.ts +2 -2
- package/dist/Attachments/components/document-view/document-view-grid.d.ts +2 -2
- package/dist/Attachments/components/document-view/documet-view-date.d.ts +2 -2
- package/dist/Attachments/index.js +3 -1
- package/dist/types/AttachmentsTypes.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
import { E_ATTACHMENT_QUERY_TYPE, E_DOCUMENT_TYPE,
|
|
2
|
+
import { E_ATTACHMENT_QUERY_TYPE, E_DOCUMENT_TYPE, I_DOCUMENT_GROUP, I_DOCUMENTS_BASE_RESPONSE, I_DOCUMENTS_DELETE_RESPONSE, I_FETCH_DOCUMENTS_RESPONSE, I_UPDATE_DOCUMENT_RESPONSE, I_UPLOAD_FILES_REQUEST, I_UPLOAD_RESPONSE, IDOCUMENT_DataItem } from '../types/AttachmentsTypes';
|
|
3
3
|
export type TDateState = {
|
|
4
4
|
startDate: string | null;
|
|
5
5
|
endDate: string | null;
|
|
@@ -9,7 +9,7 @@ interface AttachmentsProps {
|
|
|
9
9
|
fetchAttachments: (page: number, search: string, types: E_DOCUMENT_TYPE[], limit: number, query_type: E_ATTACHMENT_QUERY_TYPE, date: TDateState, next_date: string) => Promise<I_FETCH_DOCUMENTS_RESPONSE>;
|
|
10
10
|
uploadFiles: (request: I_UPLOAD_FILES_REQUEST) => Promise<I_UPLOAD_RESPONSE>;
|
|
11
11
|
onDocumentPreview?: (document: IDOCUMENT_DataItem) => void;
|
|
12
|
-
onDocumentDownload?: (document:
|
|
12
|
+
onDocumentDownload?: (document: IDOCUMENT_DataItem) => void;
|
|
13
13
|
onDocumentUpdate: (document: unknown) => Promise<I_UPDATE_DOCUMENT_RESPONSE>;
|
|
14
14
|
setError?: (error: string) => void;
|
|
15
15
|
showHeaderBackButton?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { I_DOCUMENT, I_DOCUMENT_GROUP, IDOCUMENT_DataItem } from '../../types/AttachmentsTypes';
|
|
2
2
|
interface DocumentContainerProps {
|
|
3
|
-
document:
|
|
3
|
+
document: IDOCUMENT_DataItem;
|
|
4
4
|
onEdit: (document: IDOCUMENT_DataItem) => void;
|
|
5
5
|
onPreview: (document: IDOCUMENT_DataItem) => void;
|
|
6
|
-
onDownload: (document: I_DOCUMENT) => void;
|
|
6
|
+
onDownload: (document: I_DOCUMENT | I_DOCUMENT_GROUP) => void;
|
|
7
7
|
}
|
|
8
8
|
declare function DocumentContainer(props: DocumentContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare const _default: import('react').MemoExoticComponent<typeof DocumentContainer>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IDOCUMENT_DataItem } from '../../../types/AttachmentsTypes';
|
|
2
2
|
interface DocumentGridViewProps {
|
|
3
3
|
onFileUpload: (files: File[]) => Promise<void>;
|
|
4
4
|
onEdit: (document: IDOCUMENT_DataItem) => void;
|
|
5
5
|
onPreview: (document: IDOCUMENT_DataItem) => void;
|
|
6
|
-
onDownload: (document:
|
|
6
|
+
onDownload: (document: IDOCUMENT_DataItem) => void;
|
|
7
7
|
}
|
|
8
8
|
declare function DocumentGridView({ onFileUpload, onEdit, onPreview, onDownload }: DocumentGridViewProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare const _default: import('react').MemoExoticComponent<typeof DocumentGridView>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IDOCUMENT_DataItem } from '../../../types/AttachmentsTypes';
|
|
2
2
|
interface DocumentDateViewProps {
|
|
3
3
|
onFileUpload: (files: File[]) => Promise<void>;
|
|
4
4
|
onEdit: (document: IDOCUMENT_DataItem) => void;
|
|
5
5
|
onPreview: (document: IDOCUMENT_DataItem) => void;
|
|
6
|
-
onDownload: (document:
|
|
6
|
+
onDownload: (document: IDOCUMENT_DataItem) => void;
|
|
7
7
|
}
|
|
8
8
|
declare function DocumentDateView({ onFileUpload, onEdit, onPreview, onDownload }: DocumentDateViewProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare const _default: import('react').MemoExoticComponent<typeof DocumentDateView>;
|
|
@@ -23345,7 +23345,9 @@ function HS({ isOpen: o, document: u, onClose: C, onSave: P }) {
|
|
|
23345
23345
|
reportType: R === Vf.REPORT_TYPE_UNSPECIFIED ? "" : R,
|
|
23346
23346
|
createdAt: new Date(p).toISOString(),
|
|
23347
23347
|
filePath: u.filePath,
|
|
23348
|
-
mimeType: u.mimeType
|
|
23348
|
+
mimeType: u.mimeType,
|
|
23349
|
+
downloadPath: u.downloadPath,
|
|
23350
|
+
fileName: u.fileName
|
|
23349
23351
|
};
|
|
23350
23352
|
await P(D), C();
|
|
23351
23353
|
} catch (D) {
|