@epam/ai-dial-ui-kit 0.4.0-rc.60 → 0.4.0-rc.61
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/dial-ui-kit.cjs.js +3 -3
- package/dist/dial-ui-kit.es.js +771 -773
- package/dist/src/components/FileManager/FileManager.d.ts +4 -4
- package/dist/src/components/FileManager/FileManagerContext.d.ts +1 -1
- package/dist/src/components/FileManager/hooks/use-file-clipboard.d.ts +2 -2
- package/dist/src/components/FileManager/hooks/use-file-delete.d.ts +2 -3
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { DialFileManagerNavigationPanelProps } from './components/FileManagerNav
|
|
|
6
6
|
import { DialGridProps } from '../Grid/Grid';
|
|
7
7
|
import { DialFileManagerToolbarProps } from './components/FileManagerToolbar/DialFileManagerToolbar';
|
|
8
8
|
import { DialFileManagerBulkActionsToolbarProps } from './components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar';
|
|
9
|
-
import { DialFileManagerActions, DialCopiedItem } from '../../types/file-manager';
|
|
9
|
+
import { DialFileManagerActions, DialCopiedItem, DialDeletedItem } from '../../types/file-manager';
|
|
10
10
|
import { FileManagerGridRow } from './FileManagerContext';
|
|
11
11
|
type GridRow = FileManagerGridRow;
|
|
12
12
|
export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 'selectedPath' | 'onItemClick'> {
|
|
@@ -52,9 +52,9 @@ export interface DialFileManagerProps {
|
|
|
52
52
|
deleteConfirmationOptions?: DeleteConfirmationOptions;
|
|
53
53
|
onPathChange?: (nextPath?: string) => void;
|
|
54
54
|
onTableFileClick?: (file: GridRow) => void;
|
|
55
|
-
onCopyFiles?: (items: DialCopiedItem[]) => void;
|
|
56
|
-
onMoveToFiles?: (items: DialCopiedItem[]) => void;
|
|
57
|
-
onDeleteFiles?: (items:
|
|
55
|
+
onCopyFiles?: (items: DialCopiedItem[], destinationFolder: string) => void;
|
|
56
|
+
onMoveToFiles?: (items: DialCopiedItem[], sourceFolder: string, destinationFolder: string) => void;
|
|
57
|
+
onDeleteFiles?: (items: DialDeletedItem[], sourceFolder: string) => void;
|
|
58
58
|
onRename?: (itemPath: string) => void;
|
|
59
59
|
onRenameSave?: (value: string) => void;
|
|
60
60
|
onRenameCancel?: () => void;
|
|
@@ -48,7 +48,7 @@ export interface FileManagerContextValue {
|
|
|
48
48
|
onRenameSave: (value: string) => void;
|
|
49
49
|
onRenameCancel: () => void;
|
|
50
50
|
onRenameValidate: (value: string, item: DialFile) => string | null;
|
|
51
|
-
openDeleteConfirmation: (items: DialFile[]) => void;
|
|
51
|
+
openDeleteConfirmation: (items: DialFile[], parentFolderPath: string) => void;
|
|
52
52
|
closeDeleteConfirmation: () => void;
|
|
53
53
|
confirmDelete: () => void;
|
|
54
54
|
deleteConfirmationOpen: boolean;
|
|
@@ -4,8 +4,8 @@ export interface UseFileClipboardOptions {
|
|
|
4
4
|
getDestination: () => string;
|
|
5
5
|
getDestinationFiles: () => DialFile[];
|
|
6
6
|
getSourceFiles: () => DialFile[];
|
|
7
|
-
onCopyFiles?: (items: DialCopiedItem[]) => void;
|
|
8
|
-
onMoveToFiles?: (items: DialCopiedItem[]) => void;
|
|
7
|
+
onCopyFiles?: (items: DialCopiedItem[], destinationFolder: string) => void;
|
|
8
|
+
onMoveToFiles?: (items: DialCopiedItem[], sourceFolder: string, destinationFolder: string) => void;
|
|
9
9
|
}
|
|
10
10
|
export declare const useFileClipboard: ({ getDestination, getDestinationFiles, getSourceFiles, onCopyFiles, onMoveToFiles, }: UseFileClipboardOptions) => {
|
|
11
11
|
state: {
|
|
@@ -2,12 +2,11 @@ import { DialFile } from '../../../models/file';
|
|
|
2
2
|
import { DialDeletedItem } from '../../../types/file-manager';
|
|
3
3
|
export interface UseFileDeleteOptions {
|
|
4
4
|
onDeleteFiles?: (items: DialDeletedItem[], sourceFolder: string) => void;
|
|
5
|
-
getCurrentPath: () => string;
|
|
6
5
|
}
|
|
7
|
-
export declare const useFileDelete: ({ onDeleteFiles
|
|
6
|
+
export declare const useFileDelete: ({ onDeleteFiles }: UseFileDeleteOptions) => {
|
|
8
7
|
deleteConfirmationOpen: boolean;
|
|
9
8
|
itemsToDelete: DialFile[];
|
|
10
|
-
openDeleteConfirmation: (items: DialFile[]) => void;
|
|
9
|
+
openDeleteConfirmation: (items: DialFile[], parentFolderPath: string) => void;
|
|
11
10
|
closeDeleteConfirmation: () => void;
|
|
12
11
|
confirmDelete: () => void;
|
|
13
12
|
};
|