hplx-feature-library 1.0.132 → 1.0.134
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-preview/document-image-pane.d.ts +1 -0
- 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 +195 -191
- 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>;
|
|
@@ -3,6 +3,7 @@ interface DocumentImagePaneProps {
|
|
|
3
3
|
selectedIndex: number;
|
|
4
4
|
documentPreview: I_DOCUMENT[];
|
|
5
5
|
handleImageChange: (action: 'next' | 'prev') => void;
|
|
6
|
+
showButtons: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare function DocumentImagePane(props: DocumentImagePaneProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default DocumentImagePane;
|
|
@@ -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>;
|