@epam/ai-dial-ui-kit 0.4.0-rc.56 → 0.4.0-rc.58

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.
@@ -1,6 +1,6 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { ColDef } from 'ag-grid-community';
3
- import { DialFile } from '../../models/file';
3
+ import { DialFile, DialRootFolder } from '../../models/file';
4
4
  import { DialFoldersTreeProps } from './components/FoldersTree/FoldersTree';
5
5
  import { DialFileManagerNavigationPanelProps } from './components/FileManagerNavigationPanel/FileManagerNavigationPanel';
6
6
  import { DialGridProps } from '../Grid/Grid';
@@ -36,6 +36,7 @@ export interface DialFileManagerProps {
36
36
  path?: string;
37
37
  cssClass?: string;
38
38
  items?: DialFile[];
39
+ rootItem?: DialRootFolder;
39
40
  treeOptions?: FileTreeOptions;
40
41
  toolbarOptions?: ToolbarOptions;
41
42
  navigationPanelOptions?: NavigationPanelOptions;
@@ -95,6 +96,7 @@ export interface DialFileManagerProps {
95
96
  * @param [path] - Absolute path of the current location (e.g. "/All files/Design/Icons")
96
97
  * @param [cssClass] - Additional classes for the root container
97
98
  * @param [items] - Full hierarchical list of files and folders used by both tree and grid
99
+ * @param [rootItem] - Optional root folder item to represent the top-level container in the tree
98
100
  *
99
101
  * @param [treeOptions] - Options that configure the collapsible sidebar and folders tree
100
102
  * @param [navigationPanelOptions] - Options for the breadcrumb and search panel (value/onSearchChange for controlled search)
@@ -1,4 +1,4 @@
1
- import { DialFile, DialFileNodeType } from '../../models/file';
1
+ import { DialFile, DialRootFolder, DialFileNodeType } from '../../models/file';
2
2
  import { FileTreeOptions, NavigationPanelOptions, GridOptions, ToolbarOptions, BulkActionsToolbarOptions, DialFileManagerProps } from './FileManager';
3
3
  export interface FileManagerGridRow {
4
4
  id: string;
@@ -13,6 +13,7 @@ export interface FileManagerGridRow {
13
13
  export interface FileManagerContextValue {
14
14
  cssClass?: string;
15
15
  items: DialFile[];
16
+ rootItem?: DialRootFolder;
16
17
  treeOptions?: FileTreeOptions;
17
18
  navigationPanelOptions?: NavigationPanelOptions;
18
19
  gridOptions?: GridOptions;
@@ -7,6 +7,8 @@ export interface DialFileManagerNavigationPanelProps extends Omit<DialBreadcrumb
7
7
  cssClass?: string;
8
8
  breadcrumbCssClass?: string;
9
9
  onItemClick?: (href?: string) => void;
10
+ rootItemPath?: string;
11
+ rootItemLabel?: string;
10
12
  searchable?: boolean;
11
13
  value?: string | number | null;
12
14
  elementId?: string;
@@ -33,3 +33,6 @@ export declare enum DialFilePermission {
33
33
  WRITE = "WRITE",
34
34
  SHARE = "SHARE"
35
35
  }
36
+ export interface DialRootFolder extends DialFile {
37
+ breadcrumbLabel: string;
38
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.4.0-rc.56",
3
+ "version": "0.4.0-rc.58",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",