@epam/ai-dial-ui-kit 0.5.0-rc.32 → 0.5.0-rc.33
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.
|
@@ -106,6 +106,7 @@ export interface DialFileManagerProps {
|
|
|
106
106
|
onValidateUpload?: (files: DialUploadFileItem[], existingFiles: DialFile[], destinationFolder: string) => FileUploadValidationResult | Promise<FileUploadValidationResult>;
|
|
107
107
|
maxFileSize?: number;
|
|
108
108
|
uploadValidationMessages?: FileUploadValidationMessages;
|
|
109
|
+
onUploadArchive?: (file: File, name: string, destinationFolder: string) => void;
|
|
109
110
|
}
|
|
110
111
|
/**
|
|
111
112
|
* File Manager layout with a collapsible folders tree, breadcrumb/search header, and a data grid.
|
|
@@ -171,6 +172,10 @@ export interface DialFileManagerProps {
|
|
|
171
172
|
* @param [onCopyFiles] - Callback fired when files copy-paste
|
|
172
173
|
* @param [onMoveToFiles] - Callback fired when files cut-paste or rename
|
|
173
174
|
* @param [onDeleteFiles] - Callback fired when files are deleted
|
|
175
|
+
*
|
|
176
|
+
* @param [onDownloadFiles] - Callback fired when files are downloaded
|
|
177
|
+
*
|
|
178
|
+
* @param [onUploadArchive] - Callback fired when archive files are uploaded
|
|
174
179
|
*/
|
|
175
180
|
export declare const DialFileManager: FC<DialFileManagerProps>;
|
|
176
181
|
/**
|
|
@@ -16,8 +16,9 @@ export interface UseFileUploadOptions {
|
|
|
16
16
|
onValidateUpload?: (files: DialUploadFileItem[], existingFiles: DialFile[], destinationFolder: string) => FileUploadValidationResult | Promise<FileUploadValidationResult>;
|
|
17
17
|
maxFileSize?: number;
|
|
18
18
|
validationMessages?: FileUploadValidationMessages;
|
|
19
|
+
onUploadArchive?: (file: File, name: string, destinationFolder: string) => void;
|
|
19
20
|
}
|
|
20
|
-
export declare const useFileUpload: ({ onUploadFiles, onValidateUpload, maxFileSize, validationMessages, }?: UseFileUploadOptions) => {
|
|
21
|
+
export declare const useFileUpload: ({ onUploadFiles, onValidateUpload, maxFileSize, validationMessages, onUploadArchive, }?: UseFileUploadOptions) => {
|
|
21
22
|
isDragging: boolean;
|
|
22
23
|
isDraggingOverWindow: boolean;
|
|
23
24
|
uploadError: string | undefined;
|
|
@@ -28,5 +29,6 @@ export declare const useFileUpload: ({ onUploadFiles, onValidateUpload, maxFileS
|
|
|
28
29
|
clearError: () => void;
|
|
29
30
|
handleUpload: (files: DialUploadFileItem[], destinationFolder: string, existingFiles: DialFile[]) => Promise<boolean>;
|
|
30
31
|
openFileDialog: (destinationFolder: string, existingFiles: DialFile[]) => void;
|
|
32
|
+
openArchiveDialog: (destinationFolder: string, existingFiles: DialFile[]) => void;
|
|
31
33
|
fileInputRef: import('react').RefObject<HTMLInputElement | null>;
|
|
32
34
|
};
|