@epam/ai-dial-react-file-manager 0.3.0-dev.2 → 0.3.0-dev.4
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 +3405 -3454
- package/dist/index.css +1 -1
- package/dist/src/components/FileManager/FileManager.d.ts +55 -12
- package/dist/src/components/FileManager/FileManagerContext.d.ts +0 -1
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +3 -3
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.d.ts +20 -8
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/constants.d.ts +5 -0
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +13 -32
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts +2 -3
- package/dist/src/components/FileManager/components/FileManagerSearchBar/FileManagerSearchBar.d.ts +44 -0
- package/dist/src/components/FileManager/components/FileManagerSearchBar/constants.d.ts +2 -0
- package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +10 -27
- package/dist/src/components/FileManager/constants.d.ts +13 -9
- package/dist/src/components/FileManager/hooks/use-file-manager-tabs.d.ts +2 -2
- package/dist/src/components/FileManager/utils.d.ts +0 -1
- package/package.json +3 -4
- package/dist/src/components/FileManager/hooks/use-tree-additional-buttons.d.ts +0 -22
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import { FileManagerColumnKey } from '../../types/file-manager.ts';
|
|
2
|
-
export declare const containerBaseClassName = "w-full h-full grid grid-rows-[
|
|
3
|
-
export declare const toolbarBaseClassName = "
|
|
2
|
+
export declare const containerBaseClassName = "w-full h-full grid grid-rows-[minmax(0,1fr)] overflow-hidden min-w-0";
|
|
3
|
+
export declare const toolbarBaseClassName = "text-secondary flex items-center gap-2";
|
|
4
4
|
export declare const mainGridClassName = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden";
|
|
5
|
-
export declare const contentGridClassName = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-
|
|
6
|
-
export declare const contentHeaderClassName = "items-center";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
5
|
+
export declare const contentGridClassName = "flex flex-col flex-1 min-h-0 min-w-0 h-full px-5 gap-5";
|
|
6
|
+
export declare const contentHeaderClassName = "flex w-full shrink-0 items-center justify-between gap-4 h-[64px]";
|
|
7
|
+
export declare const sidebarPanelClassName = "min-h-0 min-w-[360px] h-full bg-layer-raised shadow-sm";
|
|
8
|
+
export declare const sidebarContentClassName = "flex h-full min-h-0 flex-col gap-3";
|
|
9
|
+
export declare const sidebarHeadingClassName = "dial-h1-text text-primary";
|
|
10
|
+
export declare const sidebarHeadingRowClassName = "px-4 h-[64px] flex items-center justify-between gap-2";
|
|
11
|
+
export declare const sidebarTreeContainerClassName = "min-h-0 flex-1 px-3";
|
|
12
|
+
export declare const sidebarTabsAriaLabelDefault = "File storage sections";
|
|
13
|
+
export declare const gridPanelClassName = "flex flex-1 flex-col w-full min-h-0 min-w-0 gap-5";
|
|
14
|
+
export declare const gridBaseClassName = "flex-1 w-full text-secondary overflow-auto min-h-0 min-w-0";
|
|
15
|
+
export declare const bulkActionsToolbarWrapperClassName = "absolute bottom-4 left-4 right-4 z-10";
|
|
9
16
|
export declare const actionsColumnButtonClassName = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto";
|
|
10
|
-
export declare const sidebarWidth = 280;
|
|
11
17
|
export declare const sidebarTitleDefault = "Files";
|
|
12
18
|
export declare const BASE_FILE_MANAGER_ICON_SIZE = 20;
|
|
13
19
|
export declare const FILES_DATA_TRANSFER_TYPE = "Files";
|
|
14
20
|
export declare const FOLDER_PLACEHOLDER_FILE_NAME = ".dial_folder";
|
|
15
21
|
export declare const DEFAULT_FOLDER_BASE_NAME = "New folder";
|
|
16
|
-
export declare const FOLDERS_TREE_PANEL_MIN_WIDTH = 280;
|
|
17
|
-
export declare const FOLDERS_TREE_PANEL_MAX_WIDTH = 460;
|
|
18
22
|
export declare const AG_GRID_SELECTION_COLUMN_ID = "ag-Grid-SelectionColumn";
|
|
19
23
|
export declare const COMPACT_VIEW_HEADER_HEIGHT = 44;
|
|
20
24
|
export declare const COMPACT_VIEW_FILE_ROW_HEIGHT = 56;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilterChipItem } from '@epam/ai-dial-ui-kit';
|
|
2
2
|
import { DialFileManagerTabs } from '../../../types/file-manager';
|
|
3
3
|
export declare const useDialFileManagerTabs: (tabLabels?: Record<DialFileManagerTabs, string>, initialTab?: DialFileManagerTabs) => {
|
|
4
4
|
activeTab: DialFileManagerTabs;
|
|
5
5
|
handleTabChange: (tab: DialFileManagerTabs) => void;
|
|
6
|
-
tabs:
|
|
6
|
+
tabs: FilterChipItem<DialFileManagerTabs>[] | undefined;
|
|
7
7
|
};
|
|
@@ -65,6 +65,5 @@ export declare const splitPathAndName: (fullPath: string) => {
|
|
|
65
65
|
};
|
|
66
66
|
export declare const isFileSelectable: (file: Pick<DialFile, "contentLength" | "contentType" | "name">, allowedFileTypes?: DialFileAcceptType[], maxSelectableFileSize?: number) => boolean;
|
|
67
67
|
export declare const getRowTooltip: (file: FileManagerGridRow, allowedFileTypes?: DialFileAcceptType[], maxSelectableFileSize?: number, unsupportedFileTypeTooltip?: string, fileTooLargeTooltip?: string) => string | undefined;
|
|
68
|
-
export declare const baseColumnComparator: (a: string | number | undefined, b: string | number | undefined, _nodeA?: unknown, _nodeB?: unknown, isInverted?: boolean) => number;
|
|
69
68
|
export declare const getFolderNestingDepth: (folderPath: string) => number;
|
|
70
69
|
export declare const getNextFolderName: (existingFolders: DialFile[]) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-react-file-manager",
|
|
3
|
-
"version": "0.3.0-dev.
|
|
3
|
+
"version": "0.3.0-dev.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "React file manager package for AI DIAL interfaces",
|
|
@@ -78,11 +78,10 @@
|
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@tabler/icons-react": "^3.41.1",
|
|
81
|
-
"classnames": "^2.5.1",
|
|
82
81
|
"mime-types": "^3.0.2"
|
|
83
82
|
},
|
|
84
83
|
"peerDependencies": {
|
|
85
|
-
"@epam/ai-dial-ui-kit": "^0.15.0-dev.
|
|
84
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.11",
|
|
86
85
|
"ag-grid-community": "^35.2.1",
|
|
87
86
|
"ag-grid-react": "^35.2.1",
|
|
88
87
|
"react": "^19.2.5",
|
|
@@ -90,7 +89,7 @@
|
|
|
90
89
|
},
|
|
91
90
|
"devDependencies": {
|
|
92
91
|
"@chromatic-com/storybook": "^5.1.2",
|
|
93
|
-
"@epam/ai-dial-ui-kit": "^0.15.0-dev.
|
|
92
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.11",
|
|
94
93
|
"@eslint/js": "^9.39.2",
|
|
95
94
|
"@floating-ui/react": "^0.27.19",
|
|
96
95
|
"@storybook/addon-a11y": "^10.3.6",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface useTreeAdditionalButtonsOptions {
|
|
3
|
-
additionalButtons?: ReactNode;
|
|
4
|
-
expandedPathsLength: number;
|
|
5
|
-
collapseAll: () => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Provides additional action buttons for the tree component, including a
|
|
9
|
-
* built-in "Collapse All" button. The hook memoizes the returned JSX to avoid
|
|
10
|
-
* unnecessary re-renders and applies disabled state automatically based on
|
|
11
|
-
* the number of expanded paths.
|
|
12
|
-
*
|
|
13
|
-
* @param {ReactNode} [additionalButtons] - Optional custom buttons rendered before the Collapse All button.
|
|
14
|
-
* @param {number} expandedPathsLength - Number of currently expanded paths in the tree.
|
|
15
|
-
* @param {() => void} collapseAll - Callback fired when the Collapse All button is clicked.
|
|
16
|
-
*
|
|
17
|
-
* @returns {{ additionalButtons: ReactNode }} - The rendered buttons fragment.
|
|
18
|
-
*/
|
|
19
|
-
export declare const useTreeAdditionalButtons: ({ additionalButtons, expandedPathsLength, collapseAll, }: useTreeAdditionalButtonsOptions) => {
|
|
20
|
-
additionalButtons: import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
};
|
|
22
|
-
export {};
|