backend.ai-ui 25.17.0 → 25.17.2
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/backend.ai-ui.js +3743 -3724
- package/dist/backend.ai-ui.js.map +1 -1
- package/dist/components/BAIConfirmModalWithInput.d.ts +2 -0
- package/dist/components/baiClient/FileExplorer/BAIFileExplorer.d.ts +2 -0
- package/dist/components/baiClient/FileExplorer/DeleteSelectedItemsModal.d.ts +3 -2
- package/dist/components/baiClient/FileExplorer/ExplorerActionControls.d.ts +2 -0
- package/dist/components/baiClient/FileExplorer/FileItemControls.d.ts +3 -0
- package/dist/components/provider/BAIClientProvider/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BAIModalProps } from './BAIModal';
|
|
2
|
+
import { InputProps } from 'antd';
|
|
2
3
|
import { default as React } from 'react';
|
|
3
4
|
export interface BAIConfirmModalWithInputProps extends Omit<BAIModalProps, 'icon' | 'okButtonProps'> {
|
|
4
5
|
confirmText: string;
|
|
@@ -6,6 +7,7 @@ export interface BAIConfirmModalWithInputProps extends Omit<BAIModalProps, 'icon
|
|
|
6
7
|
title: React.ReactNode;
|
|
7
8
|
icon?: React.ReactNode;
|
|
8
9
|
okButtonProps?: Omit<BAIModalProps['okButtonProps'], 'disabled' | 'danger'>;
|
|
10
|
+
inputProps?: InputProps;
|
|
9
11
|
}
|
|
10
12
|
declare const BAIConfirmModalWithInput: React.FC<BAIConfirmModalWithInputProps>;
|
|
11
13
|
export default BAIConfirmModalWithInput;
|
|
@@ -20,6 +20,8 @@ export interface BAIFileExplorerProps {
|
|
|
20
20
|
enableWrite?: boolean;
|
|
21
21
|
onChangeFetchKey?: (fetchKey: string) => void;
|
|
22
22
|
ref?: React.Ref<BAIFileExplorerRef>;
|
|
23
|
+
onDeleteFilesInBackground?: (bgTaskId: string, targetVFolderId: string, deletingFilePaths: Array<string>) => void;
|
|
24
|
+
deletingFilePaths?: Array<string>;
|
|
23
25
|
}
|
|
24
26
|
declare const BAIFileExplorer: React.FC<BAIFileExplorerProps>;
|
|
25
27
|
export default BAIFileExplorer;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { VFolderFile } from '../../provider/BAIClientProvider/types';
|
|
2
2
|
import { ModalProps } from 'antd';
|
|
3
|
-
interface DeleteSelectedItemsModalProps extends ModalProps {
|
|
4
|
-
onRequestClose: (success: boolean) => void;
|
|
3
|
+
export interface DeleteSelectedItemsModalProps extends ModalProps {
|
|
4
|
+
onRequestClose: (success: boolean, deletingFilePaths?: Array<string>) => void;
|
|
5
|
+
onDeleteFilesInBackground?: (bgTaskId: string, targetVFolderId: string, deletingFilePaths: Array<string>) => void;
|
|
5
6
|
selectedFiles: Array<VFolderFile>;
|
|
6
7
|
}
|
|
7
8
|
declare const DeleteSelectedItemsModal: React.FC<DeleteSelectedItemsModalProps>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { VFolderFile } from '../../provider/BAIClientProvider/types';
|
|
2
|
+
import { DeleteSelectedItemsModalProps } from './DeleteSelectedItemsModal';
|
|
2
3
|
import { RcFile } from 'antd/es/upload';
|
|
3
4
|
interface ExplorerActionControlsProps {
|
|
4
5
|
selectedFiles: Array<VFolderFile>;
|
|
5
6
|
onRequestClose: (success: boolean, modifiedItems?: Array<VFolderFile>) => void;
|
|
6
7
|
onUpload: (files: Array<RcFile>, currentPath: string) => void;
|
|
8
|
+
onDeleteFilesInBackground: DeleteSelectedItemsModalProps['onDeleteFilesInBackground'];
|
|
7
9
|
enableDelete?: boolean;
|
|
8
10
|
enableWrite?: boolean;
|
|
9
11
|
extra?: React.ReactNode;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { BAIButtonProps } from '../../BAIButton';
|
|
1
2
|
import { VFolderFile } from '../../provider/BAIClientProvider/types';
|
|
2
3
|
interface FileItemControlsProps {
|
|
3
4
|
selectedItem: VFolderFile;
|
|
4
5
|
onClickDelete: () => void;
|
|
5
6
|
enableDownload?: boolean;
|
|
6
7
|
enableDelete?: boolean;
|
|
8
|
+
downloadButtonProps?: BAIButtonProps;
|
|
9
|
+
deleteButtonProps?: BAIButtonProps;
|
|
7
10
|
}
|
|
8
11
|
declare const FileItemControls: React.FC<FileItemControlsProps>;
|
|
9
12
|
export default FileItemControls;
|