@epam/ai-dial-ui-kit 0.5.0-rc.96 → 0.5.0-rc.98
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 +27 -27
- package/dist/dial-ui-kit.es.js +7741 -7686
- package/dist/src/components/FileManager/FileManager.d.ts +6 -0
- package/dist/src/components/FileManager/FileManagerContext.d.ts +2 -0
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.d.ts +1 -0
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +2 -0
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +3 -1
- package/dist/src/types/file-manager.d.ts +2 -1
- package/package.json +1 -1
|
@@ -48,6 +48,7 @@ export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 's
|
|
|
48
48
|
[DialFileManagerActions.Download]?: string;
|
|
49
49
|
[DialFileManagerActions.Delete]?: string;
|
|
50
50
|
[DialFileManagerActions.Move]?: string;
|
|
51
|
+
[DialFileManagerActions.Unshare]?: string;
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
export interface DeleteConfirmationOptions {
|
|
@@ -71,6 +72,7 @@ export interface GridOptions extends Omit<DialGridProps<GridRow>, 'rowData' | 'c
|
|
|
71
72
|
[DialFileManagerActions.Delete]?: string;
|
|
72
73
|
[DialFileManagerActions.Move]?: string;
|
|
73
74
|
[DialFileManagerActions.Info]?: string;
|
|
75
|
+
[DialFileManagerActions.Unshare]?: string;
|
|
74
76
|
};
|
|
75
77
|
}
|
|
76
78
|
export type ToolbarOptions = Omit<DialFileManagerToolbarProps, 'areHiddenFilesVisible' | 'onToggleHiddenFiles'> & {
|
|
@@ -100,6 +102,7 @@ export interface DialFileManagerProps {
|
|
|
100
102
|
items?: DialFile[];
|
|
101
103
|
rootItem?: DialRootFolder;
|
|
102
104
|
filesLoading?: boolean;
|
|
105
|
+
sharedByMePaths?: Set<string>;
|
|
103
106
|
showHiddenFiles?: boolean;
|
|
104
107
|
onShowHiddenFilesChange?: (value: boolean) => void;
|
|
105
108
|
treeOptions?: FileTreeOptions;
|
|
@@ -129,6 +132,7 @@ export interface DialFileManagerProps {
|
|
|
129
132
|
onUploadArchive?: (file: File, name: string, destinationFolder: string) => void;
|
|
130
133
|
fileMetadataPopupOptions?: FileMetadataPopupOptions;
|
|
131
134
|
onGetInfo?: (file: DialFile) => void | Promise<void>;
|
|
135
|
+
onUnshareFile?: (file: DialFile) => void | Promise<void>;
|
|
132
136
|
actionsRef?: Ref<DialFileManagerActionsRef>;
|
|
133
137
|
}
|
|
134
138
|
/**
|
|
@@ -202,6 +206,8 @@ export interface DialFileManagerProps {
|
|
|
202
206
|
*
|
|
203
207
|
* @param [onUploadArchive] - Callback fired when archive files are uploaded
|
|
204
208
|
*
|
|
209
|
+
* @param [sharedByMePaths] - Set of items paths that the user has shared with others. Enables UI indicators (icons/badges) in the tree and grid.
|
|
210
|
+
*
|
|
205
211
|
* @param [actionsRef] - Ref exposing a limited set of imperative File Manager actions (e.g., creating a folder). Allows parent components to trigger internal behaviors programmatically. This ref is not a DOM ref and should be used only for invoking the component’s public actions API.
|
|
206
212
|
*/
|
|
207
213
|
export declare const DialFileManager: FC<DialFileManagerProps>;
|
|
@@ -116,6 +116,8 @@ export interface FileManagerContextValue {
|
|
|
116
116
|
openMetadataPopup: (file: DialFile) => void;
|
|
117
117
|
closeMetadataPopup: () => void;
|
|
118
118
|
onGetInfo?: (file: DialFile) => void | Promise<void>;
|
|
119
|
+
onUnshareFile?: (file: DialFile) => void | Promise<void>;
|
|
119
120
|
actionsRef?: Ref<DialFileManagerActionsRef>;
|
|
121
|
+
sharedByMePaths?: Set<string>;
|
|
120
122
|
}
|
|
121
123
|
export declare const FileManagerContext: import('react').Context<FileManagerContextValue | undefined>;
|
|
@@ -6,6 +6,7 @@ export interface DialFoldersTreeProps {
|
|
|
6
6
|
expandedPaths?: Set<string>;
|
|
7
7
|
loadingPaths?: Set<string>;
|
|
8
8
|
loadedPaths?: Set<string>;
|
|
9
|
+
sharedByMePaths?: Set<string>;
|
|
9
10
|
selectedPath?: string;
|
|
10
11
|
renamedPath?: string;
|
|
11
12
|
showFiles?: boolean;
|
|
@@ -94,6 +95,7 @@ export interface DialFoldersTreeProps {
|
|
|
94
95
|
* @param [expandedPaths] - Set of folder paths that should be expanded.
|
|
95
96
|
* @param [loadingPaths] - Set of folder paths currently loading (shows spinner or placeholder).
|
|
96
97
|
* @param [loadedPaths] - Set of folder paths that have loaded.
|
|
98
|
+
* @param [sharedByMePaths] - Set of items paths that the user has shared with others. Enables UI indicators (icons/badges).
|
|
97
99
|
* @param [selectedPath] - Path representing the currently selected folder or file.
|
|
98
100
|
* @param [renamedPath] - Path of the folder or file currently being edited.
|
|
99
101
|
* @param [showFiles=false] - Whether to show files in addition to folders.
|
|
@@ -10,6 +10,7 @@ export interface UseGridContextMenuProps {
|
|
|
10
10
|
[DialFileManagerActions.Delete]?: string;
|
|
11
11
|
[DialFileManagerActions.Move]?: string;
|
|
12
12
|
[DialFileManagerActions.Info]?: string;
|
|
13
|
+
[DialFileManagerActions.Unshare]?: string;
|
|
13
14
|
};
|
|
14
15
|
onDuplicate: (file: DialFile) => void;
|
|
15
16
|
onCopy: (file: DialFile) => void;
|
|
@@ -18,5 +19,6 @@ export interface UseGridContextMenuProps {
|
|
|
18
19
|
onRename: (filePath: string) => void;
|
|
19
20
|
onDelete: (file: DialFile, parentFolderPath: string) => void;
|
|
20
21
|
onInfo: (file: DialFile) => void;
|
|
22
|
+
onUnshare: (file: DialFile) => void;
|
|
21
23
|
}
|
|
22
|
-
export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
|
|
24
|
+
export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
|