@epam/ai-dial-react-file-manager 0.3.0-dev.23 → 0.3.0-dev.25
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/ai-dial-react-file-manager.es.js +2724 -2675
- package/dist/src/components/FileManager/FileManager.d.ts +6 -2
- package/dist/src/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.d.ts +9 -5
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +9 -0
- package/package.json +1 -1
|
@@ -73,9 +73,13 @@ export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 's
|
|
|
73
73
|
}
|
|
74
74
|
export interface DeleteConfirmationOptions {
|
|
75
75
|
cancelLabel?: string;
|
|
76
|
-
|
|
76
|
+
/** Receives the names and the items, so a host can title a folder and a file differently by `nodeType`. */
|
|
77
|
+
titleRenderer?: (fileNames: string[], items: DialFile[]) => ReactNode;
|
|
77
78
|
confirmLabel?: string;
|
|
78
|
-
|
|
79
|
+
/** Accessible name of the header close control. Defaults to `"Close dialog"`. */
|
|
80
|
+
closeLabel?: string;
|
|
81
|
+
/** Receives the names and the items, like `titleRenderer`. */
|
|
82
|
+
contentRenderer?: (fileNames: string[], items: DialFile[]) => ReactNode;
|
|
79
83
|
}
|
|
80
84
|
/**
|
|
81
85
|
* The breadcrumb trail and the search field are configured together but render
|
|
@@ -7,12 +7,15 @@ export interface FileManagerDeleteConfirmationPopupProps {
|
|
|
7
7
|
onConfirm: () => void;
|
|
8
8
|
cancelLabel?: string;
|
|
9
9
|
confirmLabel?: string;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
closeLabel?: string;
|
|
11
|
+
titleRenderer?: (fileNames: string[], items: DialFile[]) => ReactNode;
|
|
12
|
+
contentRenderer?: (fileNames: string[], items: DialFile[]) => ReactNode;
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* Confirmation popup for deleting files in FileManager.
|
|
15
|
-
* Shows a list of files to be deleted with customizable title and content
|
|
16
|
+
* Shows a list of files to be deleted with customizable title and content,
|
|
17
|
+
* a close control in the header, a text Cancel, and a danger Delete with a
|
|
18
|
+
* leading trash icon.
|
|
16
19
|
*
|
|
17
20
|
* @param open - Controls visibility of the popup
|
|
18
21
|
* @param itemsToDelete - Array of files to be deleted
|
|
@@ -20,7 +23,8 @@ export interface FileManagerDeleteConfirmationPopupProps {
|
|
|
20
23
|
* @param onConfirm - Callback when delete is confirmed
|
|
21
24
|
* @param [cancelLabel='Cancel'] - Label for cancel button
|
|
22
25
|
* @param [confirmLabel='Delete'] - Label for confirm button
|
|
23
|
-
* @param [
|
|
24
|
-
* @param [
|
|
26
|
+
* @param [closeLabel='Close dialog'] - Accessible name of the header close control
|
|
27
|
+
* @param [titleRenderer] - Custom title renderer; receives the names and the items, so it can tell a folder from a file by `nodeType`
|
|
28
|
+
* @param [contentRenderer] - Custom content renderer; receives the names and the items
|
|
25
29
|
*/
|
|
26
30
|
export declare const FileManagerDeleteConfirmationPopup: FC<FileManagerDeleteConfirmationPopupProps>;
|
|
@@ -9,6 +9,12 @@ export interface DialFileManagerNavigationPanelProps extends Omit<BreadcrumbsPro
|
|
|
9
9
|
rootItemPath?: string;
|
|
10
10
|
rootItemLabel?: string;
|
|
11
11
|
breadcrumbsHiddenPathPart?: string;
|
|
12
|
+
/** Names a level above the folder roots; when set, it heads the trail. */
|
|
13
|
+
topLevelLabel?: string;
|
|
14
|
+
/** Whether that top level is the current view, so the trail is its one segment. */
|
|
15
|
+
isTopLevel?: boolean;
|
|
16
|
+
/** Fired when the top-level segment is activated from inside a root. */
|
|
17
|
+
onTopLevelClick?: () => void;
|
|
12
18
|
}
|
|
13
19
|
/**
|
|
14
20
|
* FileManagerNavigationPanel
|
|
@@ -42,5 +48,8 @@ export interface DialFileManagerNavigationPanelProps extends Omit<BreadcrumbsPro
|
|
|
42
48
|
* @param [className] - Additional classes for the panel container
|
|
43
49
|
* @param [breadcrumbClassName] - ClassName forwarded to inner `Breadcrumbs`
|
|
44
50
|
* @param [breadcrumbsHiddenPathPart] - A slash-separated path fragment whose segments will be omitted from the rendered breadcrumb trail.
|
|
51
|
+
* @param [topLevelLabel] - Label of a level above the folder roots, drawn as the first segment
|
|
52
|
+
* @param [isTopLevel=false] - Whether that top level is the current view, so the trail is just its segment
|
|
53
|
+
* @param [onTopLevelClick] - Callback fired when the top-level segment is activated
|
|
45
54
|
*/
|
|
46
55
|
export declare const DialFileManagerNavigationPanel: FC<DialFileManagerNavigationPanelProps>;
|