@epam/ai-dial-ui-kit 0.6.0-rc.58 → 0.6.0-rc.59
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 +26 -26
- package/dist/dial-ui-kit.es.js +6430 -6410
- package/dist/src/components/FileManager/FileManager.d.ts +3 -0
- package/dist/src/components/FileManager/FileManagerContext.d.ts +2 -0
- package/dist/src/components/FileManager/hooks/use-grid-actions-column.d.ts +3 -2
- package/package.json +1 -1
|
@@ -106,6 +106,7 @@ export interface DialFileManagerProps {
|
|
|
106
106
|
rootItem?: DialRootFolder;
|
|
107
107
|
filesLoading?: boolean;
|
|
108
108
|
sharedByMePaths?: Set<string>;
|
|
109
|
+
maxSelectableFileSize?: number;
|
|
109
110
|
selectedPaths?: Set<string>;
|
|
110
111
|
defaultSelectedPaths?: Set<string>;
|
|
111
112
|
onSelectedPathsChange?: (paths: Set<string>) => void;
|
|
@@ -235,6 +236,8 @@ export interface DialFileManagerProps {
|
|
|
235
236
|
*
|
|
236
237
|
* @param [allowedFileTypes] - Allowed file types (same format as the HTML `<input accept>` attribute). Controls upload filtering and which items are disabled in the File Manager UI. Supports MIME types, wildcards (e.g. `image/*`), and extensions (e.g. `.svg`).
|
|
237
238
|
*
|
|
239
|
+
* @param [maxSelectableFileSize] - Maximum allowed file size for selection in bytes
|
|
240
|
+
*
|
|
238
241
|
* @param [emptyStateIcon] - Optional icon for empty state
|
|
239
242
|
* @param [emptyStateTitle] - Optional title text displayed when there are no files.
|
|
240
243
|
* @param [emptyStateDescription] - Optional description text displayed below the empty state title.
|
|
@@ -18,12 +18,14 @@ export interface FileManagerGridRow {
|
|
|
18
18
|
isTemporary?: boolean;
|
|
19
19
|
owner?: string;
|
|
20
20
|
contentType?: string;
|
|
21
|
+
contentLength?: number;
|
|
21
22
|
}
|
|
22
23
|
export interface FileManagerContextValue {
|
|
23
24
|
className?: string;
|
|
24
25
|
items: DialFile[];
|
|
25
26
|
rootItem?: DialRootFolder;
|
|
26
27
|
allowedFileTypes?: DialFileAcceptType[];
|
|
28
|
+
maxSelectableFileSize?: number;
|
|
27
29
|
filesLoading?: boolean;
|
|
28
30
|
treeOptions?: FileTreeOptions;
|
|
29
31
|
navigationPanelOptions?: NavigationPanelOptions;
|
|
@@ -4,10 +4,11 @@ import { DropdownItem } from '../../../models/dropdown';
|
|
|
4
4
|
import { DialFileAcceptType } from '../../../models/file-manager';
|
|
5
5
|
interface UseGridActionsColumnProps {
|
|
6
6
|
getContextMenuItems: (row: FileManagerGridRow) => DropdownItem[];
|
|
7
|
-
isRowDisabled: (row: FileManagerGridRow, allowedFileTypes?: DialFileAcceptType[]) => boolean;
|
|
7
|
+
isRowDisabled: (row: FileManagerGridRow, allowedFileTypes?: DialFileAcceptType[], maxSelectableFileSize?: number) => boolean;
|
|
8
8
|
allowedFileTypes?: DialFileAcceptType[];
|
|
9
|
+
maxSelectableFileSize?: number;
|
|
9
10
|
}
|
|
10
|
-
export declare const useGridActionsColumn: ({ getContextMenuItems, isRowDisabled, allowedFileTypes, }: UseGridActionsColumnProps) => {
|
|
11
|
+
export declare const useGridActionsColumn: ({ getContextMenuItems, isRowDisabled, allowedFileTypes, maxSelectableFileSize, }: UseGridActionsColumnProps) => {
|
|
11
12
|
actionsColumnDef: ColDef<FileManagerGridRow, any>;
|
|
12
13
|
};
|
|
13
14
|
export {};
|