@epam/ai-dial-ui-kit 0.8.0-rc.12 → 0.8.0-rc.13
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 +6820 -6772
- package/dist/src/components/FileManager/FileManager.d.ts +4 -0
- package/dist/src/components/FileManager/FileManagerContext.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-bulk-actions.d.ts +4 -1
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +4 -1
- package/dist/src/types/file-manager.d.ts +1 -0
- package/package.json +1 -1
|
@@ -54,6 +54,7 @@ export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 's
|
|
|
54
54
|
[DialFileManagerActions.Move]?: string;
|
|
55
55
|
[DialFileManagerActions.Unshare]?: string;
|
|
56
56
|
[DialFileManagerActions.ManagePermissions]?: string;
|
|
57
|
+
[DialFileManagerActions.RemoveAccess]?: string;
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
60
|
export interface DeleteConfirmationOptions {
|
|
@@ -86,6 +87,7 @@ export interface GridOptions extends Omit<DialGridProps<GridRow>, 'rowData' | 'c
|
|
|
86
87
|
[DialFileManagerActions.Unshare]?: string;
|
|
87
88
|
[DialFileManagerActions.ManagePermissions]?: string;
|
|
88
89
|
[DialFileManagerActions.Preview]?: string;
|
|
90
|
+
[DialFileManagerActions.RemoveAccess]?: string;
|
|
89
91
|
};
|
|
90
92
|
}
|
|
91
93
|
export type NewAction = Pick<DropdownItem, 'label' | 'icon'>;
|
|
@@ -105,6 +107,7 @@ export type BulkActionsToolbarOptions = Omit<DialFileManagerBulkActionsToolbarPr
|
|
|
105
107
|
[DialFileManagerActions.Delete]?: string;
|
|
106
108
|
[DialFileManagerActions.Move]?: string;
|
|
107
109
|
[DialFileManagerActions.Unshare]?: string;
|
|
110
|
+
[DialFileManagerActions.RemoveAccess]?: string;
|
|
108
111
|
};
|
|
109
112
|
};
|
|
110
113
|
export interface CreateFolderValidationMessages {
|
|
@@ -163,6 +166,7 @@ export interface DialFileManagerProps {
|
|
|
163
166
|
fileMetadataPopupOptions?: FileMetadataPopupOptions;
|
|
164
167
|
onGetInfo?: (file: DialFile) => void | Promise<void>;
|
|
165
168
|
onUnshareFiles?: (files: DialFile[]) => void | Promise<void>;
|
|
169
|
+
onRemoveFilesAccess?: (files: DialFile[]) => void | Promise<void>;
|
|
166
170
|
actionsRef?: Ref<DialFileManagerActionsRef>;
|
|
167
171
|
onSearchFiles?: (folder: string, query: string) => void;
|
|
168
172
|
searchInProgress?: boolean;
|
|
@@ -134,6 +134,7 @@ export interface FileManagerContextValue {
|
|
|
134
134
|
closeMetadataPopup: () => void;
|
|
135
135
|
onGetInfo?: (file: DialFile) => void | Promise<void>;
|
|
136
136
|
onUnshareFiles?: (file: DialFile[]) => void;
|
|
137
|
+
onRemoveFilesAccess?: (file: DialFile[]) => void;
|
|
137
138
|
actionsRef?: Ref<DialFileManagerActionsRef>;
|
|
138
139
|
sharedByMePaths?: Set<string>;
|
|
139
140
|
onSearchFiles?: (folder: string, query: string) => void;
|
|
@@ -11,16 +11,19 @@ export interface UseBulkActionsProps {
|
|
|
11
11
|
[DialFileManagerActions.Unshare]?: string;
|
|
12
12
|
[DialFileManagerActions.Delete]?: string;
|
|
13
13
|
[DialFileManagerActions.Move]?: string;
|
|
14
|
+
[DialFileManagerActions.RemoveAccess]?: string;
|
|
14
15
|
};
|
|
15
16
|
onDuplicate: (files: DialFile[]) => void;
|
|
16
17
|
onCopy: (files: DialFile[]) => void;
|
|
17
18
|
onMove: (files: DialFile[]) => void;
|
|
18
19
|
onDownload: (files: DialFile[]) => void;
|
|
19
20
|
onUnshare?: (files: DialFile[]) => void;
|
|
21
|
+
onRemoveAccess?: (files: DialFile[]) => void;
|
|
20
22
|
onRename: (filePath: string) => void;
|
|
21
23
|
onDelete: (files: DialFile[], parentFolderPath: string) => void;
|
|
22
24
|
getCurrentFolderPath: () => string;
|
|
23
25
|
sharedWithMeIds?: string[];
|
|
26
|
+
sharedByMePaths?: Set<string>;
|
|
24
27
|
onClearSelection: () => void;
|
|
25
28
|
}
|
|
26
|
-
export declare const useBulkActions: ({ selectedFiles, actionLabels, onDuplicate, onCopy, onMove, onDownload, onUnshare, onDelete, getCurrentFolderPath, sharedWithMeIds, onClearSelection, }: UseBulkActionsProps) => DialActionDropdownItem[];
|
|
29
|
+
export declare const useBulkActions: ({ selectedFiles, actionLabels, onDuplicate, onCopy, onMove, onDownload, onUnshare, onRemoveAccess, onDelete, getCurrentFolderPath, sharedWithMeIds, sharedByMePaths, onClearSelection, }: UseBulkActionsProps) => DialActionDropdownItem[];
|
|
@@ -16,6 +16,7 @@ export interface UseGridContextMenuProps {
|
|
|
16
16
|
[DialFileManagerActions.Move]?: string;
|
|
17
17
|
[DialFileManagerActions.Info]?: string;
|
|
18
18
|
[DialFileManagerActions.Unshare]?: string;
|
|
19
|
+
[DialFileManagerActions.RemoveAccess]?: string;
|
|
19
20
|
};
|
|
20
21
|
onDuplicate: (file: DialFile) => void;
|
|
21
22
|
onCopy: (file: DialFile) => void;
|
|
@@ -25,7 +26,9 @@ export interface UseGridContextMenuProps {
|
|
|
25
26
|
onDelete: (file: DialFile, parentFolderPath: string) => void;
|
|
26
27
|
onInfo: (file: DialFile) => void;
|
|
27
28
|
onUnshare: (file: DialFile) => void;
|
|
29
|
+
onRemoveAccess?: (file: DialFile) => void;
|
|
28
30
|
sharedWithMeIds?: string[];
|
|
31
|
+
sharedByMePaths?: Set<string>;
|
|
29
32
|
onAddSibling?: (file: DialFile) => void;
|
|
30
33
|
onAddChild?: (file: DialFile) => void;
|
|
31
34
|
onManagePermissions?: (path?: string) => void;
|
|
@@ -33,4 +36,4 @@ export interface UseGridContextMenuProps {
|
|
|
33
36
|
previewExtensions?: string[];
|
|
34
37
|
isRenameFileAvailable?: boolean;
|
|
35
38
|
}
|
|
36
|
-
export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, sharedWithMeIds, onAddSibling, onAddChild, onManagePermissions, onPreview, previewExtensions, isRenameFileAvailable, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
|
|
39
|
+
export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, onRemoveAccess, sharedWithMeIds, sharedByMePaths, onAddSibling, onAddChild, onManagePermissions, onPreview, previewExtensions, isRenameFileAvailable, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
|