backend.ai-ui 25.16.0-canary-d6a3d2a60-20251113 → 25.16.0-canary-71d1e09fe-20251119
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 +8850 -8707
- package/dist/backend.ai-ui.js.map +1 -1
- package/dist/components/BAIFetchKeyButton.d.ts +15 -0
- package/dist/components/Table/BAITable.d.ts +2 -1
- package/dist/components/baiClient/FileExplorer/BAIFileExplorer.d.ts +1 -0
- package/dist/components/baiClient/FileExplorer/ExplorerActionControls.d.ts +1 -0
- package/dist/components/baiClient/FileExplorer/hooks.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useIntervalValue.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ButtonProps } from 'antd';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
interface BAIFetchKeyButtonProps extends Omit<ButtonProps, 'value' | 'onChange' | 'loading'> {
|
|
4
|
+
value: string;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
lastLoadTime?: Date;
|
|
7
|
+
showLastLoadTime?: boolean;
|
|
8
|
+
autoUpdateDelay?: number | null;
|
|
9
|
+
size?: ButtonProps['size'];
|
|
10
|
+
onChange: (fetchKey: string) => void;
|
|
11
|
+
hidden?: boolean;
|
|
12
|
+
pauseWhenHidden?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const BAIFetchKeyButton: React.FC<BAIFetchKeyButtonProps>;
|
|
15
|
+
export default BAIFetchKeyButton;
|
|
@@ -98,6 +98,7 @@ export interface BAITableProps<RecordType extends AnyObject> extends BAITableBas
|
|
|
98
98
|
tableSettings?: BAITableSettings;
|
|
99
99
|
/** Array of column configurations using BAIColumnType */
|
|
100
100
|
columns?: BAIColumnsType<RecordType>;
|
|
101
|
+
spinnerLoading?: boolean;
|
|
101
102
|
}
|
|
102
103
|
/**
|
|
103
104
|
* BAITable - Enhanced table component with column management and sorting
|
|
@@ -129,5 +130,5 @@ export interface BAITableProps<RecordType extends AnyObject> extends BAITableBas
|
|
|
129
130
|
* />
|
|
130
131
|
* ```
|
|
131
132
|
*/
|
|
132
|
-
declare const BAITable: <RecordType extends object = any>({ resizable, columns, components, loading, order, onChangeOrder, tableSettings, ...tableProps }: BAITableProps<RecordType>) => React.ReactElement;
|
|
133
|
+
declare const BAITable: <RecordType extends object = any>({ resizable, columns, components, loading, spinnerLoading, order, onChangeOrder, tableSettings, ...tableProps }: BAITableProps<RecordType>) => React.ReactElement;
|
|
133
134
|
export default BAITable;
|
|
@@ -15,6 +15,7 @@ export interface BAIFileExplorerProps {
|
|
|
15
15
|
enableDownload?: boolean;
|
|
16
16
|
enableDelete?: boolean;
|
|
17
17
|
enableWrite?: boolean;
|
|
18
|
+
onChangeFetchKey?: (fetchKey: string) => void;
|
|
18
19
|
}
|
|
19
20
|
declare const BAIFileExplorer: React.FC<BAIFileExplorerProps>;
|
|
20
21
|
export default BAIFileExplorer;
|
|
@@ -6,6 +6,7 @@ interface ExplorerActionControlsProps {
|
|
|
6
6
|
onUpload: (files: Array<RcFile>, currentPath: string) => void;
|
|
7
7
|
enableDelete?: boolean;
|
|
8
8
|
enableWrite?: boolean;
|
|
9
|
+
extra?: React.ReactNode;
|
|
9
10
|
}
|
|
10
11
|
declare const ExplorerActionControls: React.FC<ExplorerActionControlsProps>;
|
|
11
12
|
export default ExplorerActionControls;
|
|
@@ -13,6 +13,7 @@ export declare const useSearchVFolderFiles: (vfolder: string, fetchKey?: string)
|
|
|
13
13
|
items: Array<VFolderFile>;
|
|
14
14
|
}, Error>>;
|
|
15
15
|
isFetching: boolean;
|
|
16
|
+
isLoading: boolean;
|
|
16
17
|
};
|
|
17
18
|
export declare const useUploadVFolderFiles: () => {
|
|
18
19
|
uploadFiles: (fileList: Array<RcFile>, onUpload: (files: Array<RcFile>, currentPath: string) => void, afterUpload?: () => void) => Promise<void>;
|
|
@@ -33,6 +33,7 @@ export { default as BAIConfirmModalWithInput } from './BAIConfirmModalWithInput'
|
|
|
33
33
|
export type { BAIConfirmModalWithInputProps } from './BAIConfirmModalWithInput';
|
|
34
34
|
export { default as BAIButton } from './BAIButton';
|
|
35
35
|
export type { BAIButtonProps } from './BAIButton';
|
|
36
|
+
export { default as BAIFetchKeyButton } from './BAIFetchKeyButton';
|
|
36
37
|
export * from './Table';
|
|
37
38
|
export * from './fragments';
|
|
38
39
|
export * from './provider';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -19,3 +19,4 @@ export { default as useViewer } from './useViewer';
|
|
|
19
19
|
export type { ErrorResponse } from './useErrorMessageResolver';
|
|
20
20
|
export type { ESMClientErrorResponse } from './useErrorMessageResolver';
|
|
21
21
|
export { default as useGetAvailableFolderName } from './useGetAvailableFolderName';
|
|
22
|
+
export { useInterval, useIntervalValue } from './useIntervalValue';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom hook that executes a callback function at a specified interval.
|
|
3
|
+
*
|
|
4
|
+
* @param callback The function to be executed at the specified interval.
|
|
5
|
+
* @param delay The delay (in milliseconds) between each execution of the callback function. If `null`, the interval is cleared(pause).
|
|
6
|
+
* @param pauseWhenHidden Whether to pause the interval when the page becomes hidden. Defaults to true.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useInterval(callback: () => void, delay: number | null, pauseWhenHidden?: boolean): void;
|
|
9
|
+
/**
|
|
10
|
+
* Custom hook that provides a value updated at a specified interval.
|
|
11
|
+
*
|
|
12
|
+
* @param calculator - A function that calculates the value.
|
|
13
|
+
* @param delay - The delay in milliseconds between updates.
|
|
14
|
+
* @param triggerKey - An optional key that triggers an immediate update when changed.
|
|
15
|
+
* @param pauseWhenHidden - Whether to pause the interval when the page becomes hidden. Defaults to true.
|
|
16
|
+
* @returns The updated value.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useIntervalValue<T>(calculator: () => T, delay: number | null, triggerKey?: string, pauseWhenHidden?: boolean): T;
|