@epam/ai-dial-ui-kit 0.5.0-rc.7 → 0.5.0-rc.71
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/README.md +3 -3
- package/dist/dial-ui-kit.cjs.js +29 -29
- package/dist/dial-ui-kit.es.js +15182 -13066
- package/dist/index.css +2 -2
- package/dist/src/components/Alert/Alert.d.ts +2 -2
- package/dist/src/components/Alert/constants.d.ts +2 -2
- package/dist/src/components/AutocompleteInput/AutocompleteInput.d.ts +10 -10
- package/dist/src/components/AutocompleteInput/AutocompleteInputValue.d.ts +6 -6
- package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +8 -8
- package/dist/src/components/Breadcrumb/BreadcrumbItem.d.ts +2 -2
- package/dist/src/components/Breadcrumb/constants.d.ts +10 -10
- package/dist/src/components/Button/Button.d.ts +10 -18
- package/dist/src/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/src/components/CloseButton/CloseButton.d.ts +5 -3
- package/dist/src/components/CollapsibleSidebar/CollapsibleSidebar.d.ts +6 -6
- package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +3 -3
- package/dist/src/components/ConfirmationPopup/constants.d.ts +3 -3
- package/dist/src/components/DraggableItem/DraggableItem.d.ts +8 -8
- package/dist/src/components/DraggableItem/constants.d.ts +2 -2
- package/dist/src/components/Dropdown/Dropdown.d.ts +4 -2
- package/dist/src/components/Dropdown/constants.d.ts +7 -7
- package/dist/src/components/EllipsisTooltip/EllipsisTooltip.d.ts +4 -4
- package/dist/src/components/EllipsisTooltip/constants.d.ts +1 -1
- package/dist/src/components/Field/Field.d.ts +4 -6
- package/dist/src/components/FileIcon/FileIcon.d.ts +2 -2
- package/dist/src/components/FileManager/FileManager.d.ts +63 -10
- package/dist/src/components/FileManager/FileManagerContext.d.ts +41 -4
- package/dist/src/components/FileManager/FileManagerProvider.d.ts +1 -0
- package/dist/src/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.d.ts +92 -0
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +4 -1
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.d.ts +55 -0
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.test.d.ts +1 -0
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.d.ts +5 -3
- package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts +1 -1
- package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +2 -1
- package/dist/src/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.d.ts +4 -2
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +13 -11
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts +3 -3
- package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +13 -13
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +3 -0
- package/dist/src/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.d.ts +13 -0
- package/dist/src/components/FileManager/constants.d.ts +15 -7
- package/dist/src/components/FileManager/hooks/__tests__/use-conflict-resolution.spec.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/__tests__/use-file-upload.spec.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-bulk-actions.d.ts +22 -0
- package/dist/src/components/FileManager/hooks/use-conflict-resolution.d.ts +26 -0
- package/dist/src/components/FileManager/hooks/use-file-clipboard.d.ts +17 -3
- package/dist/src/components/FileManager/hooks/use-file-delete.d.ts +3 -2
- package/dist/src/components/FileManager/hooks/use-file-download.d.ts +2 -1
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +34 -0
- package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +21 -0
- package/dist/src/components/FileManager/hooks/use-grid-actions-column.d.ts +10 -0
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +20 -0
- package/dist/src/components/FileManager/hooks/use-item-renaming.d.ts +8 -5
- package/dist/src/components/FileManager/hooks/use-new-actions.d.ts +16 -0
- package/dist/src/components/FileManager/hooks/use-tree-additional-buttons.d.ts +22 -0
- package/dist/src/components/FileManager/utils.d.ts +1 -1
- package/dist/src/components/FileName/FileName.d.ts +19 -5
- package/dist/src/components/FolderName/FolderName.d.ts +6 -3
- package/dist/src/components/FormItem/FormItem.d.ts +9 -9
- package/dist/src/components/FormItem/constants.d.ts +1 -1
- package/dist/src/components/FormPopup/FormPopup.d.ts +1 -1
- package/dist/src/components/FormPopup/constants.d.ts +1 -1
- package/dist/src/components/Grid/Grid.d.ts +12 -3
- package/dist/src/components/Grid/constants.d.ts +1 -1
- package/dist/src/components/Grid/hooks/use-grid-selection.d.ts +7 -4
- package/dist/src/components/Grid/renderers/DateCellRenderer.d.ts +2 -2
- package/dist/src/components/Grid/renderers/constants.d.ts +1 -1
- package/dist/src/components/Icon/Icon.d.ts +0 -1
- package/dist/src/components/Input/Input.d.ts +4 -4
- package/dist/src/components/InputField/InputField.d.ts +3 -3
- package/dist/src/components/InputPopup/InputPopup.d.ts +6 -6
- package/dist/src/components/Loader/Loader.d.ts +5 -5
- package/dist/src/components/Loader/constants.d.ts +2 -2
- package/dist/src/components/NoDataContent/NoDataContent.d.ts +6 -3
- package/dist/src/components/PasswordInput/PasswordInputField.d.ts +1 -1
- package/dist/src/components/Popup/Popup.d.ts +6 -6
- package/dist/src/components/Popup/constants.d.ts +3 -3
- package/dist/src/components/RadioButton/RadioButton.d.ts +6 -6
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +20 -20
- package/dist/src/components/RadioGroup/constants.d.ts +3 -3
- package/dist/src/components/RadioGroupPopupField/RadioGroupPopupField.d.ts +2 -2
- package/dist/src/components/RemoveButton/RemoveButton.d.ts +6 -8
- package/dist/src/components/ResizableContainer/ConditionalResizableContainer.d.ts +33 -0
- package/dist/src/components/ResizableContainer/ResizableContainer.d.ts +69 -0
- package/dist/src/components/ResizableContainer/components/ResizeHandle.d.ts +10 -0
- package/dist/src/components/ResizableContainer/components/ResizeIcon.d.ts +8 -0
- package/dist/src/components/Search/Search.d.ts +4 -4
- package/dist/src/components/Search/constants.d.ts +4 -4
- package/dist/src/components/Select/Select.d.ts +9 -3
- package/dist/src/components/Select/constants.d.ts +7 -6
- package/dist/src/components/SelectField/SelectField.d.ts +6 -6
- package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +2 -2
- package/dist/src/components/Tab/Tab.d.ts +4 -4
- package/dist/src/components/Tabs/Tabs.d.ts +9 -9
- package/dist/src/components/Tag/Tag.d.ts +2 -2
- package/dist/src/components/TextAreaField/TextAreaField.d.ts +3 -3
- package/dist/src/components/Textarea/Textarea.d.ts +4 -4
- package/dist/src/hooks/use-width-breakpoint.d.ts +23 -0
- package/dist/src/index.d.ts +5 -1
- package/dist/src/models/breadcrumb.d.ts +1 -1
- package/dist/src/models/dropdown.d.ts +1 -0
- package/dist/src/models/file-manager.d.ts +15 -0
- package/dist/src/models/tab.d.ts +2 -1
- package/dist/src/types/dropdown.d.ts +2 -1
- package/dist/src/types/file-manager.d.ts +12 -9
- package/dist/src/types/resizable-container.d.ts +4 -0
- package/dist/src/types/tab.d.ts +1 -1
- package/package.json +5 -4
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
|
|
1
|
+
import { FC, LabelHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
type NativeLabelProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, 'children' | 'defaultValue' | 'onChange'>;
|
|
3
|
+
export interface DialFieldLabelProps extends NativeLabelProps {
|
|
3
4
|
fieldTitle?: string | ReactNode;
|
|
4
|
-
htmlFor: string;
|
|
5
5
|
optional?: boolean;
|
|
6
6
|
optionalText?: string;
|
|
7
|
-
cssClass?: string;
|
|
8
7
|
description?: string;
|
|
9
8
|
}
|
|
10
9
|
/**
|
|
@@ -16,11 +15,10 @@ export interface DialFieldLabelProps {
|
|
|
16
15
|
* <DialFieldLabel htmlFor="email-input" fieldTitle="Email Address" />
|
|
17
16
|
* ```
|
|
18
17
|
*
|
|
19
|
-
* @param htmlFor - The ID of the form element this label is associated with
|
|
20
18
|
* @param [fieldTitle] - The title/label text to display for the field
|
|
21
19
|
* @param [optional=false] - Whether the field is optional (displays "(Optional)" text if optionalText is not provided)
|
|
22
20
|
* @param [optionalText="(Optional)"] - Custom text for optional indicator
|
|
23
|
-
* @param [cssClass] - Additional CSS classes to apply to the label element
|
|
24
21
|
* @param [description] - Additional description text, displayed below the label.
|
|
25
22
|
*/
|
|
26
23
|
export declare const DialFieldLabel: FC<DialFieldLabelProps>;
|
|
24
|
+
export {};
|
|
@@ -3,7 +3,7 @@ export interface DialFileIconProps {
|
|
|
3
3
|
extension: string;
|
|
4
4
|
size?: number;
|
|
5
5
|
stroke?: number;
|
|
6
|
-
|
|
6
|
+
className?: string;
|
|
7
7
|
decorative?: boolean;
|
|
8
8
|
label?: string;
|
|
9
9
|
indicator?: ReactNode;
|
|
@@ -23,7 +23,7 @@ export interface DialFileIconProps {
|
|
|
23
23
|
* @param extension - File extension string (with or without leading dot)
|
|
24
24
|
* @param [size=baseIconProps.size] - Icon pixel size
|
|
25
25
|
* @param [stroke=baseIconProps.stroke] - Tabler icon stroke width
|
|
26
|
-
* @param [
|
|
26
|
+
* @param [className] - Additional classes on the container
|
|
27
27
|
* @param [decorative=false] - Whether the icon should be hidden from assistive technologies
|
|
28
28
|
* @param [label] - Accessible label when not decorative; defaults to "<EXT> file icon"
|
|
29
29
|
* @param [indicator] - Optional indicator element to display alongside the icon
|
|
@@ -6,18 +6,30 @@ import { DialFileManagerNavigationPanelProps } from './components/FileManagerNav
|
|
|
6
6
|
import { DialGridProps } from '../Grid/Grid';
|
|
7
7
|
import { DialFileManagerToolbarProps } from './components/FileManagerToolbar/DialFileManagerToolbar';
|
|
8
8
|
import { DialFileManagerBulkActionsToolbarProps } from './components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar';
|
|
9
|
-
import {
|
|
9
|
+
import { DialCopiedItem, DialDeletedItem, DialUploadFileItem } from '../../models/file-manager';
|
|
10
10
|
import { FileManagerGridRow } from './FileManagerContext';
|
|
11
11
|
import { DestinationFolderPopupProps } from './components/DestinationFolderPopup/DestinationFolderPopup';
|
|
12
|
+
import { FileUploadValidationResult, FileUploadValidationMessages } from './hooks/use-file-upload';
|
|
13
|
+
import { DialFileManagerActions } from '../../types/file-manager';
|
|
14
|
+
import { FolderCreationValidationMessages } from './hooks/use-folder-creation';
|
|
15
|
+
import { ConflictResolutionPopupProps } from './components/ConflictResolutionPopup/ConflictResolutionPopup';
|
|
16
|
+
import { RenameValidationMessages } from './hooks/use-item-renaming';
|
|
12
17
|
type GridRow = FileManagerGridRow;
|
|
13
|
-
export type
|
|
18
|
+
export type DialFileManagerConflictResolutionPopupOptions = Omit<ConflictResolutionPopupProps, 'open' | 'onClose' | 'onReplace' | 'onDuplicate' | 'conflictingFiles'>;
|
|
19
|
+
export type DialFileManagerDestinationFolderPopupOptions = Pick<DestinationFolderPopupProps, 'setDestinationFolderPath' | 'destinationFolderPath' | 'addFolderLabel' | 'copyLabel' | 'moveLabel' | 'hiddenFilesSwitcherLabel' | 'title'> & {
|
|
20
|
+
getCopyHeader?: (itemsCount: number, itemName?: string) => string;
|
|
21
|
+
getMoveHeader?: (itemsCount: number, itemName?: string) => string;
|
|
22
|
+
};
|
|
14
23
|
export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 'selectedPath' | 'onItemClick'> {
|
|
15
24
|
width?: number;
|
|
16
25
|
title?: string;
|
|
17
|
-
|
|
26
|
+
containerClassName?: string;
|
|
18
27
|
additionalButtons?: ReactNode;
|
|
19
28
|
collapsed?: boolean;
|
|
20
29
|
onCollapseChange?: (collapsed: boolean) => void;
|
|
30
|
+
expandedPaths?: Set<string>;
|
|
31
|
+
loadedPaths?: Set<string>;
|
|
32
|
+
onExpandedPathsChange?: (expandedPaths: Set<string>) => void;
|
|
21
33
|
actionLabels?: {
|
|
22
34
|
[DialFileManagerActions.Duplicate]?: string;
|
|
23
35
|
[DialFileManagerActions.Copy]?: string;
|
|
@@ -39,12 +51,39 @@ export interface GridOptions extends Omit<DialGridProps<GridRow>, 'rowData' | 'c
|
|
|
39
51
|
filterable?: boolean;
|
|
40
52
|
dateLocale?: Intl.LocalesArgument;
|
|
41
53
|
dateOptions?: Intl.DateTimeFormatOptions;
|
|
54
|
+
actionLabels?: {
|
|
55
|
+
[DialFileManagerActions.Duplicate]?: string;
|
|
56
|
+
[DialFileManagerActions.Copy]?: string;
|
|
57
|
+
[DialFileManagerActions.Rename]?: string;
|
|
58
|
+
[DialFileManagerActions.Download]?: string;
|
|
59
|
+
[DialFileManagerActions.Delete]?: string;
|
|
60
|
+
[DialFileManagerActions.Move]?: string;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export type ToolbarOptions = Omit<DialFileManagerToolbarProps, 'areHiddenFilesVisible' | 'onToggleHiddenFiles'> & {
|
|
64
|
+
newActionLabels?: {
|
|
65
|
+
uploadFiles?: string;
|
|
66
|
+
newFolder?: string;
|
|
67
|
+
uploadArchive?: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export type BulkActionsToolbarOptions = Omit<DialFileManagerBulkActionsToolbarProps, 'onClearSelection' | 'actions' | 'selectedCount'> & {
|
|
71
|
+
actionLabels?: {
|
|
72
|
+
[DialFileManagerActions.Duplicate]?: string;
|
|
73
|
+
[DialFileManagerActions.Copy]?: string;
|
|
74
|
+
[DialFileManagerActions.Download]?: string;
|
|
75
|
+
[DialFileManagerActions.Delete]?: string;
|
|
76
|
+
[DialFileManagerActions.Move]?: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export interface CreateFolderValidationMessages {
|
|
80
|
+
emptyName?: string;
|
|
81
|
+
duplicateName?: string;
|
|
82
|
+
forbiddenChars?: string;
|
|
42
83
|
}
|
|
43
|
-
export type ToolbarOptions = Omit<DialFileManagerToolbarProps, 'areHiddenFilesVisible' | 'onToggleHiddenFiles'>;
|
|
44
|
-
export type BulkActionsToolbarOptions = Omit<DialFileManagerBulkActionsToolbarProps, 'onClearSelection'>;
|
|
45
84
|
export interface DialFileManagerProps {
|
|
46
85
|
path?: string;
|
|
47
|
-
|
|
86
|
+
className?: string;
|
|
48
87
|
items?: DialFile[];
|
|
49
88
|
rootItem?: DialRootFolder;
|
|
50
89
|
filesLoading?: boolean;
|
|
@@ -57,16 +96,24 @@ export interface DialFileManagerProps {
|
|
|
57
96
|
bulkActionsToolbarOptions?: BulkActionsToolbarOptions;
|
|
58
97
|
deleteConfirmationOptions?: DeleteConfirmationOptions;
|
|
59
98
|
destinationFolderPopupOptions?: DialFileManagerDestinationFolderPopupOptions;
|
|
99
|
+
conflictResolutionPopupOptions?: DialFileManagerConflictResolutionPopupOptions;
|
|
100
|
+
compactViewWidthBreakpoint?: number;
|
|
60
101
|
onPathChange?: (nextPath?: string) => void;
|
|
61
102
|
onTableFileClick?: (file: GridRow) => void;
|
|
62
103
|
onCopyFiles?: (items: DialCopiedItem[], destinationFolder: string) => void;
|
|
63
104
|
onMoveToFiles?: (items: DialCopiedItem[], sourceFolder: string, destinationFolder: string) => void;
|
|
64
105
|
onDeleteFiles?: (items: DialDeletedItem[], sourceFolder: string) => void;
|
|
65
106
|
onDownloadFiles?: (items: DialFile[]) => void;
|
|
66
|
-
onRename?: (itemPath: string) => void;
|
|
67
|
-
onRenameSave?: (value: string) => void;
|
|
68
|
-
onRenameCancel?: () => void;
|
|
69
107
|
onRenameValidate?: (value: string, item: DialFile) => string | null;
|
|
108
|
+
renameValidationMessages?: RenameValidationMessages;
|
|
109
|
+
onCreateFolder?: (file: DialUploadFileItem, folderPath: string, fileId: string) => void | Promise<void>;
|
|
110
|
+
onCreateFolderValidate?: (name: string, parentFolder: DialFile) => string | null;
|
|
111
|
+
folderCreationValidationMessages?: FolderCreationValidationMessages;
|
|
112
|
+
onUploadFiles?: (files: DialUploadFileItem[], destinationFolder: string) => void;
|
|
113
|
+
onValidateUpload?: (files: DialUploadFileItem[], existingFiles: DialFile[], destinationFolder: string) => FileUploadValidationResult | Promise<FileUploadValidationResult>;
|
|
114
|
+
maxFileSize?: number;
|
|
115
|
+
uploadValidationMessages?: FileUploadValidationMessages;
|
|
116
|
+
onUploadArchive?: (file: File, name: string, destinationFolder: string) => void;
|
|
70
117
|
}
|
|
71
118
|
/**
|
|
72
119
|
* File Manager layout with a collapsible folders tree, breadcrumb/search header, and a data grid.
|
|
@@ -114,7 +161,7 @@ export interface DialFileManagerProps {
|
|
|
114
161
|
* ```
|
|
115
162
|
*
|
|
116
163
|
* @param [path] - Absolute path of the current location (e.g. "/All files/Design/Icons")
|
|
117
|
-
* @param [
|
|
164
|
+
* @param [className] - Additional classes for the root container
|
|
118
165
|
* @param [items] - Full hierarchical list of files and folders used by both tree and grid
|
|
119
166
|
* @param [rootItem] - Optional root folder item to represent the top-level container in the tree
|
|
120
167
|
* @param [filesLoading=false] - When true, shows skeleton loading state in the grid
|
|
@@ -126,12 +173,18 @@ export interface DialFileManagerProps {
|
|
|
126
173
|
* @param [bulkActionsToolbarOptions] - Options for the bulk actions toolbar shown when items are selected
|
|
127
174
|
* @param [deleteConfirmationOptions] - Options for the delete confirmation popup
|
|
128
175
|
*
|
|
176
|
+
* @param [compactViewWidthBreakpoint=DEFAULT_COMPACT_VIEW_WIDTH_BREAKPOINT] - Width (px) below which the component switches to compact view.
|
|
177
|
+
*
|
|
129
178
|
* @param [onPathChange] - Callback fired when user navigates via tree or breadcrumb
|
|
130
179
|
* @param [onTableFileClick] - Callback fired when a file row is clicked in the grid
|
|
131
180
|
*
|
|
132
181
|
* @param [onCopyFiles] - Callback fired when files copy-paste
|
|
133
182
|
* @param [onMoveToFiles] - Callback fired when files cut-paste or rename
|
|
134
183
|
* @param [onDeleteFiles] - Callback fired when files are deleted
|
|
184
|
+
*
|
|
185
|
+
* @param [onDownloadFiles] - Callback fired when files are downloaded
|
|
186
|
+
*
|
|
187
|
+
* @param [onUploadArchive] - Callback fired when archive files are uploaded
|
|
135
188
|
*/
|
|
136
189
|
export declare const DialFileManager: FC<DialFileManagerProps>;
|
|
137
190
|
/**
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { DragEvent, RefObject } from 'react';
|
|
1
2
|
import { DialFile, DialRootFolder, DialFileNodeType } from '../../models/file';
|
|
2
|
-
import { FileTreeOptions, NavigationPanelOptions, GridOptions, ToolbarOptions, BulkActionsToolbarOptions, DialFileManagerProps, DeleteConfirmationOptions, DialFileManagerDestinationFolderPopupOptions } from './FileManager';
|
|
3
|
-
import {
|
|
3
|
+
import { FileTreeOptions, NavigationPanelOptions, GridOptions, ToolbarOptions, BulkActionsToolbarOptions, DialFileManagerProps, DeleteConfirmationOptions, DialFileManagerDestinationFolderPopupOptions, DialFileManagerConflictResolutionPopupOptions } from './FileManager';
|
|
4
|
+
import { FileUploadValidationMessages } from './hooks/use-file-upload';
|
|
5
|
+
import { DropdownItem } from '../../models/dropdown';
|
|
6
|
+
import { FileConflictDecision } from './components/ConflictResolutionPopup/ConflictResolutionPopup';
|
|
7
|
+
import { DestinationFolderMode } from '../../types/file-manager';
|
|
4
8
|
export interface FileManagerGridRow {
|
|
5
9
|
id: string;
|
|
6
10
|
name: string;
|
|
@@ -10,9 +14,10 @@ export interface FileManagerGridRow {
|
|
|
10
14
|
path: string;
|
|
11
15
|
nodeType: DialFileNodeType;
|
|
12
16
|
extension?: string;
|
|
17
|
+
isTemporary?: boolean;
|
|
13
18
|
}
|
|
14
19
|
export interface FileManagerContextValue {
|
|
15
|
-
|
|
20
|
+
className?: string;
|
|
16
21
|
items: DialFile[];
|
|
17
22
|
rootItem?: DialRootFolder;
|
|
18
23
|
filesLoading?: boolean;
|
|
@@ -23,6 +28,8 @@ export interface FileManagerContextValue {
|
|
|
23
28
|
bulkActionsToolbarOptions?: BulkActionsToolbarOptions;
|
|
24
29
|
deleteConfirmationOptions?: DeleteConfirmationOptions;
|
|
25
30
|
destinationFolderPopupOptions?: DialFileManagerDestinationFolderPopupOptions;
|
|
31
|
+
conflictResolutionPopupOptions?: DialFileManagerConflictResolutionPopupOptions;
|
|
32
|
+
compactViewWidthBreakpoint?: number;
|
|
26
33
|
currentPath?: string;
|
|
27
34
|
setCurrentPath: (p?: string) => void;
|
|
28
35
|
searchValue: string;
|
|
@@ -34,7 +41,8 @@ export interface FileManagerContextValue {
|
|
|
34
41
|
toggleTreeCollapse: () => void;
|
|
35
42
|
setIsTreeCollapsed: (value: boolean) => void;
|
|
36
43
|
selectedIds: Set<string>;
|
|
37
|
-
|
|
44
|
+
selectedFiles: Map<string, DialFile>;
|
|
45
|
+
setSelectedFiles: (next: Map<string, DialFile>) => void;
|
|
38
46
|
clearSelection: () => void;
|
|
39
47
|
currentFolder?: DialFile;
|
|
40
48
|
gridRows: FileManagerGridRow[];
|
|
@@ -48,6 +56,7 @@ export interface FileManagerContextValue {
|
|
|
48
56
|
handleSetCopiedFiles: (files: DialFile[]) => void;
|
|
49
57
|
handleSetMovedFiles: (files: DialFile[]) => void;
|
|
50
58
|
renamedPath?: string;
|
|
59
|
+
renamedItem?: DialFile;
|
|
51
60
|
onRename: (file: string) => void;
|
|
52
61
|
onRenameSave: (value: string) => void;
|
|
53
62
|
onRenameCancel: () => void;
|
|
@@ -64,5 +73,33 @@ export interface FileManagerContextValue {
|
|
|
64
73
|
handleTableRowClick: (row: FileManagerGridRow) => void;
|
|
65
74
|
onTableFileClick?: DialFileManagerProps['onTableFileClick'];
|
|
66
75
|
handleDownloadFiles: (items: DialFile[]) => void;
|
|
76
|
+
isDragging: boolean;
|
|
77
|
+
isDraggingOverWindow: boolean;
|
|
78
|
+
uploadError?: string;
|
|
79
|
+
handleDragEnter: (e: DragEvent) => void;
|
|
80
|
+
handleDragLeave: (e: DragEvent) => void;
|
|
81
|
+
handleDragOver: (e: DragEvent) => void;
|
|
82
|
+
handleDrop: (e: DragEvent) => void;
|
|
83
|
+
clearUploadError: () => void;
|
|
84
|
+
onUploadFiles?: DialFileManagerProps['onUploadFiles'];
|
|
85
|
+
onValidateUpload?: DialFileManagerProps['onValidateUpload'];
|
|
86
|
+
maxFileSize?: number;
|
|
87
|
+
uploadValidationMessages?: FileUploadValidationMessages;
|
|
88
|
+
newActions: DropdownItem[];
|
|
89
|
+
isNewButtonVisible: boolean;
|
|
90
|
+
openFileDialog: () => void;
|
|
91
|
+
fileInputRef: RefObject<HTMLInputElement | null>;
|
|
92
|
+
isCreatingFolder: boolean;
|
|
93
|
+
newFolderTempId: string | null;
|
|
94
|
+
startFolderCreation: () => void;
|
|
95
|
+
cancelFolderCreation: () => void;
|
|
96
|
+
saveFolderCreation: (name: string) => Promise<void>;
|
|
97
|
+
validateFolderName: (name: string) => string | null;
|
|
98
|
+
conflictingFiles: DialFile[];
|
|
99
|
+
conflictResolutionOpen: boolean;
|
|
100
|
+
closeConflictResolution: () => void;
|
|
101
|
+
handleConflictReplace: () => void;
|
|
102
|
+
handleConflictDuplicate: () => void;
|
|
103
|
+
handleConflictDecideForEach: (decisions: FileConflictDecision[]) => void;
|
|
67
104
|
}
|
|
68
105
|
export declare const FileManagerContext: import('react').Context<FileManagerContextValue | undefined>;
|
|
@@ -13,6 +13,7 @@ export interface FileManagerProviderProps extends Omit<DialFileManagerProps, 'ch
|
|
|
13
13
|
* - clipboard (copy / cut / paste)
|
|
14
14
|
* - delete confirmation state
|
|
15
15
|
* - computed grid rows
|
|
16
|
+
* - new actions
|
|
16
17
|
*
|
|
17
18
|
*/
|
|
18
19
|
export declare const FileManagerProvider: FC<FileManagerProviderProps>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { DialFile } from '../../../../models/file';
|
|
3
|
+
import { DialFileManagerConflictActions, DialFileManagerConflictStrategies } from '../../../../types/file-manager';
|
|
4
|
+
export interface FileConflictDecision {
|
|
5
|
+
file: DialFile;
|
|
6
|
+
action: DialFileManagerConflictActions;
|
|
7
|
+
}
|
|
8
|
+
export interface ConflictResolutionPopupProps {
|
|
9
|
+
open: boolean;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
onReplace: () => void;
|
|
12
|
+
onDuplicate: () => void;
|
|
13
|
+
onDecideForEach?: (decisions: FileConflictDecision[]) => void;
|
|
14
|
+
conflictingFiles: DialFile[];
|
|
15
|
+
title?: string;
|
|
16
|
+
singleFileTitle?: string;
|
|
17
|
+
multipleFilesTitle?: string;
|
|
18
|
+
message?: string;
|
|
19
|
+
actionLabels?: {
|
|
20
|
+
[DialFileManagerConflictActions.Replace]?: string;
|
|
21
|
+
[DialFileManagerConflictActions.Duplicate]?: string;
|
|
22
|
+
[DialFileManagerConflictActions.Cancel]?: string;
|
|
23
|
+
};
|
|
24
|
+
strategyLabels?: {
|
|
25
|
+
[DialFileManagerConflictStrategies.ReplaceAll]?: string;
|
|
26
|
+
[DialFileManagerConflictStrategies.DuplicateAll]?: string;
|
|
27
|
+
[DialFileManagerConflictStrategies.DecideForEach]?: string;
|
|
28
|
+
};
|
|
29
|
+
confirmLabel?: string;
|
|
30
|
+
cancelLabel?: string;
|
|
31
|
+
nameColumnLabel?: string;
|
|
32
|
+
actionColumnLabel?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* ConflictResolutionPopup
|
|
36
|
+
*
|
|
37
|
+
* A popup dialog for resolving file name conflicts during copy or move operations.
|
|
38
|
+
* Shows different UI based on number of conflicting files:
|
|
39
|
+
* - Single file: Simple Replace/Duplicate choice with radio buttons
|
|
40
|
+
* - Multiple files: Replace all / Duplicate all / Decide for each strategy with optional grid
|
|
41
|
+
*
|
|
42
|
+
* When "Decide for each" is selected, displays a grid with dropdown selectors for individual
|
|
43
|
+
* file resolution (Replace/Duplicate/Cancel).
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* // Single file conflict
|
|
48
|
+
* <ConflictResolutionPopup
|
|
49
|
+
* open={isOpen}
|
|
50
|
+
* onClose={handleClose}
|
|
51
|
+
* onReplace={handleReplace}
|
|
52
|
+
* onDuplicate={handleDuplicate}
|
|
53
|
+
* conflictingFiles={[file]}
|
|
54
|
+
* />
|
|
55
|
+
*
|
|
56
|
+
* // Multiple files with custom labels
|
|
57
|
+
* <ConflictResolutionPopup
|
|
58
|
+
* open={isOpen}
|
|
59
|
+
* onClose={handleClose}
|
|
60
|
+
* onReplace={handleReplaceAll}
|
|
61
|
+
* onDuplicate={handleDuplicateAll}
|
|
62
|
+
* onDecideForEach={handleDecisions}
|
|
63
|
+
* conflictingFiles={files}
|
|
64
|
+
* actionLabels={{
|
|
65
|
+
* [DialFileManagerConflictActions.Replace]: 'Overwrite',
|
|
66
|
+
* [DialFileManagerConflictActions.Duplicate]: 'Keep Both',
|
|
67
|
+
* }}
|
|
68
|
+
* strategyLabels={{
|
|
69
|
+
* [DialFileManagerConflictStrategies.ReplaceAll]: 'Overwrite All',
|
|
70
|
+
* [DialFileManagerConflictStrategies.DuplicateAll]: 'Keep All',
|
|
71
|
+
* }}
|
|
72
|
+
* />
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param open - Whether the popup is visible
|
|
76
|
+
* @param onClose - Callback fired when the popup is closed
|
|
77
|
+
* @param onReplace - Callback fired when Replace/Replace All is confirmed
|
|
78
|
+
* @param onDuplicate - Callback fired when Duplicate/Duplicate All is confirmed
|
|
79
|
+
* @param [onDecideForEach] - Callback fired when individual decisions are confirmed; receives array of decisions
|
|
80
|
+
* @param conflictingFiles - Array of files with name conflicts
|
|
81
|
+
* @param [title] - Custom title (overrides singleFileTitle and multipleFilesTitle)
|
|
82
|
+
* @param [singleFileTitle="Replace Or Duplicate Item"] - Title for single file conflicts
|
|
83
|
+
* @param [multipleFilesTitle="Replace Or Duplicate Items"] - Title for multiple file conflicts
|
|
84
|
+
* @param [message] - Custom message (overrides default conflict description)
|
|
85
|
+
* @param [actionLabels] - Custom labels for conflict actions (Replace/Duplicate/Cancel)
|
|
86
|
+
* @param [strategyLabels] - Custom labels for conflict strategies (Replace all/Duplicate all/Decide for each)
|
|
87
|
+
* @param [confirmLabel="Confirm"] - Label for the confirm button
|
|
88
|
+
* @param [cancelLabel="Cancel"] - Label for the cancel button
|
|
89
|
+
* @param [nameColumnLabel="Name"] - Label for the file name column in the grid
|
|
90
|
+
* @param [actionColumnLabel="Action"] - Label for the action column in the grid
|
|
91
|
+
*/
|
|
92
|
+
export declare const ConflictResolutionPopup: FC<ConflictResolutionPopupProps>;
|
|
@@ -11,6 +11,7 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
|
|
|
11
11
|
addFolderLabel?: string;
|
|
12
12
|
hiddenFilesSwitcherLabel?: string;
|
|
13
13
|
mode?: 'copy' | 'move';
|
|
14
|
+
title?: string;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* DestinationFolderPopup
|
|
@@ -26,6 +27,7 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
|
|
|
26
27
|
* onClose={handleClose}
|
|
27
28
|
* onConfirm={handleConfirm}
|
|
28
29
|
* mode="copy"
|
|
30
|
+
* title="Copy 3 files"
|
|
29
31
|
* items={files}
|
|
30
32
|
* rootItem={rootFolder}
|
|
31
33
|
* path={currentPath}
|
|
@@ -36,11 +38,12 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
|
|
|
36
38
|
* @param open - Whether the popup is visible
|
|
37
39
|
* @param onClose - Callback fired when the popup is closed
|
|
38
40
|
* @param [onConfirm] - Callback fired when the confirm button is clicked
|
|
39
|
-
* @param [mode=
|
|
41
|
+
* @param [mode=DestinationFolderMode.Copy] - Operation mode: 'copy' or 'move'
|
|
40
42
|
* @param [copyLabel="Copy"] - Label for the copy button
|
|
41
43
|
* @param [moveLabel="Move"] - Label for the move button
|
|
42
44
|
* @param [addFolderLabel="Add folder"] - Label for the add folder button
|
|
43
45
|
* @param [hiddenFilesSwitcherLabel="Show hidden files"] - Label for the hidden files toggle
|
|
46
|
+
* @param [title] - Custom title for the popup header
|
|
44
47
|
* @param items - Array of files to display in the File Manager
|
|
45
48
|
* @param rootItem - Root folder item
|
|
46
49
|
* @param path - Current path in the File Manager
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { DialFileNodeType } from '../../../../models/file';
|
|
3
|
+
interface DialFileManagerItemSummaryCellProps {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
nodeType: DialFileNodeType;
|
|
7
|
+
size?: string;
|
|
8
|
+
updatedAt?: string;
|
|
9
|
+
dateLocale?: Intl.LocalesArgument;
|
|
10
|
+
dateOptions?: Intl.DateTimeFormatOptions;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Renders file or folder details inside the File Manager list/grid item.
|
|
14
|
+
*
|
|
15
|
+
* Displays the item name with an icon (via `DialFileManagerItemName`),
|
|
16
|
+
* followed by a small details row:
|
|
17
|
+
*
|
|
18
|
+
* - File size (e.g., `"15 KB"`)
|
|
19
|
+
* - A separator dot
|
|
20
|
+
* - Formatted update date (via `DialDateCellRenderer`)
|
|
21
|
+
*
|
|
22
|
+
* The component automatically determines whether to show a **file** or **folder**
|
|
23
|
+
* icon based on `nodeType`.
|
|
24
|
+
*
|
|
25
|
+
* ### Example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <DialFileManagerItemSummaryCell
|
|
28
|
+
* id="42"
|
|
29
|
+
* name="Report.pdf"
|
|
30
|
+
* nodeType={DialFileNodeType.FILE}
|
|
31
|
+
* size="220 KB"
|
|
32
|
+
* updatedAt="2025-07-20T00:00:00Z"
|
|
33
|
+
* dateLocale="en-US"
|
|
34
|
+
* dateOptions={{ timeZone: 'UTC' }}
|
|
35
|
+
* />
|
|
36
|
+
*
|
|
37
|
+
* <DialFileManagerItemSummaryCell
|
|
38
|
+
* id="folder-1"
|
|
39
|
+
* name="Projects"
|
|
40
|
+
* nodeType={DialFileNodeType.FOLDER}
|
|
41
|
+
* size="—"
|
|
42
|
+
* updatedAt={undefined}
|
|
43
|
+
* />
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param id - Unique identifier passed to `DialFileManagerItemName` as `elementId`.
|
|
47
|
+
* @param name - File or folder display name.
|
|
48
|
+
* @param nodeType - Determines whether the item renders as a **File** or **Folder**.
|
|
49
|
+
* @param size - Human-readable file size (e.g., `"15 KB"`). May be `"—"` or omitted.
|
|
50
|
+
* @param updatedAt - Date or timestamp passed to `DialDateCellRenderer`. If invalid or missing, renders `"—"`.
|
|
51
|
+
* @param dateLocale - Optional locale override for date formatting (e.g., `"fr-FR"`).
|
|
52
|
+
* @param dateOptions - Optional `Intl.DateTimeFormat` configuration (e.g., `{ timeZone: 'UTC' }`).
|
|
53
|
+
*/
|
|
54
|
+
export declare const DialFileManagerItemSummaryCell: FC<DialFileManagerItemSummaryCellProps>;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,9 +4,10 @@ export interface DialActionDropdownItem extends DropdownItem {
|
|
|
4
4
|
title: string;
|
|
5
5
|
}
|
|
6
6
|
export interface DialFileManagerBulkActionsToolbarProps {
|
|
7
|
-
|
|
7
|
+
getSelectionLabel: (selectedCount: number) => string;
|
|
8
8
|
onClearSelection: () => void;
|
|
9
9
|
actions: DialActionDropdownItem[];
|
|
10
|
+
selectedCount: number;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* A responsive toolbar component displayed when files or items are selected
|
|
@@ -33,7 +34,7 @@ export interface DialFileManagerBulkActionsToolbarProps {
|
|
|
33
34
|
* @example
|
|
34
35
|
* ```tsx
|
|
35
36
|
* <DialFileManagerSelectionToolbar
|
|
36
|
-
*
|
|
37
|
+
* getSelectionLabel={(count) => `${count} files selected`}
|
|
37
38
|
* onClearSelection={() => console.log('Cleared')}
|
|
38
39
|
* actions={[
|
|
39
40
|
* { key: 'download', title: 'Download', icon: <IconDownload />, onClick: () => {} },
|
|
@@ -43,10 +44,11 @@ export interface DialFileManagerBulkActionsToolbarProps {
|
|
|
43
44
|
* ```
|
|
44
45
|
*
|
|
45
46
|
* @param {object} props
|
|
46
|
-
* @param {string} props.
|
|
47
|
+
* @param {() => string} props.getSelectionLabel - Function to get the label showing current selection status (e.g., "3 files selected").
|
|
47
48
|
* @param {() => void} props.onClearSelection - Callback invoked when the clear selection button is clicked.
|
|
48
49
|
* @param {DialActionDropdownItem[]} props.actions - List of available toolbar actions.
|
|
49
50
|
* Each action defines a title, icon, key, and optional click handler.
|
|
51
|
+
* @param {number} [props.selectedCount] - Count of currently selected items.
|
|
50
52
|
*
|
|
51
53
|
* @returns {JSX.Element} A responsive toolbar that adjusts visible actions based on available width.
|
|
52
54
|
*/
|
package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export interface DialFileManagerItemIconProps extends Omit<DialFileIconProps, 'e
|
|
|
38
38
|
* @param {boolean} [props.loading=false] - Whether to display the loading state.
|
|
39
39
|
* @param {number} [props.size] - Optional icon size override.
|
|
40
40
|
* @param {number} [props.stroke] - Optional icon stroke width override.
|
|
41
|
-
* @param {string} [props.
|
|
41
|
+
* @param {string} [props.className] - Optional CSS class for styling.
|
|
42
42
|
* @param {boolean} [props.decorative] - Whether the icon is decorative (for accessibility).
|
|
43
43
|
* @param {string} [props.label] - Accessible label for screen readers.
|
|
44
44
|
* @param {ReactNode} [props.indicator] - Optional indicator to display over the icon.
|
package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { DialFileManagerItemNameInputProps } from '../FileManagerItemNameInput/FileManagerItemNameInput';
|
|
3
3
|
import { DialItemType } from '../../../../types/item';
|
|
4
4
|
export interface DialFileManagerItemNameProps extends DialFileManagerItemNameInputProps {
|
|
@@ -8,6 +8,7 @@ export interface DialFileManagerItemNameProps extends DialFileManagerItemNameInp
|
|
|
8
8
|
editing?: boolean;
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
shared?: boolean;
|
|
11
|
+
details?: ReactNode;
|
|
11
12
|
validate?: (value: string) => string | null;
|
|
12
13
|
onSave?: (value: string) => void;
|
|
13
14
|
onCancel?: () => void;
|
|
@@ -8,11 +8,12 @@ export interface DialFileManagerItemNameInputProps {
|
|
|
8
8
|
elementId: string;
|
|
9
9
|
iconSize?: number;
|
|
10
10
|
iconStroke?: number;
|
|
11
|
-
|
|
11
|
+
iconClassName?: string;
|
|
12
12
|
iconLabel?: string;
|
|
13
13
|
iconIndicator?: ReactNode;
|
|
14
14
|
inputInvalid?: boolean;
|
|
15
15
|
inputInvalidMessage?: string;
|
|
16
|
+
inputContainerClassName?: string;
|
|
16
17
|
inputIconAfter?: ReactNode;
|
|
17
18
|
inputRef?: Ref<HTMLInputElement>;
|
|
18
19
|
onChange?: (value?: string) => void;
|
|
@@ -53,12 +54,13 @@ export interface DialFileManagerItemNameInputProps {
|
|
|
53
54
|
* @param {boolean} [props.loading=false] - Whether the icon is loading.
|
|
54
55
|
* @param {number} [props.iconSize] - Optional size override for the icon.
|
|
55
56
|
* @param {number} [props.iconStroke] - Optional stroke width override for the icon.
|
|
56
|
-
* @param {string} [props.
|
|
57
|
+
* @param {string} [props.iconClassName] - Optional CSS class for the icon.
|
|
57
58
|
* @param {string} [props.iconLabel] - Optional accessible label for the icon.
|
|
58
59
|
* @param {ReactNode} [props.iconIndicator] - Optional indicator to render over the icon.
|
|
59
60
|
* @param {boolean} [props.inputInvalid=false] - Marks the input as invalid.
|
|
60
61
|
* @param {string} [props.inputInvalidMessage] - Tooltip message shown when invalid.
|
|
61
62
|
* @param {ReactNode} [props.inputIconAfter] - Optional icon shown after the input (defaults to an error icon).
|
|
63
|
+
* @param {string} [props.inputContainerClassName] - Additional CSS classes applied to the input container.
|
|
62
64
|
* @param {Ref<HTMLInputElement>} [props.inputRef] - Ref to access the underlying input element.
|
|
63
65
|
* @param {(value: string) => void} [props.onChange] - Callback fired when input value changes.
|
|
64
66
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { DialBreadcrumbProps } from '../../../Breadcrumb/Breadcrumb';
|
|
3
3
|
import { DialSearchProps } from '../../../Search/Search';
|
|
4
|
-
export interface DialFileManagerNavigationPanelProps extends Omit<DialBreadcrumbProps, 'pathItems' | 'children' | '
|
|
4
|
+
export interface DialFileManagerNavigationPanelProps extends Omit<DialBreadcrumbProps, 'pathItems' | 'children' | 'className' | 'separator'>, Omit<DialSearchProps, 'onChange' | 'elementId' | 'value' | 'className' | 'containerClassName' | 'placeholder' | 'size'> {
|
|
5
5
|
path?: string;
|
|
6
6
|
makeHref?: (segments: string[], index: number) => string | undefined;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
className?: string;
|
|
8
|
+
breadcrumbClassName?: string;
|
|
9
9
|
onItemClick?: (href?: string) => void;
|
|
10
10
|
rootItemPath?: string;
|
|
11
11
|
rootItemLabel?: string;
|
|
@@ -13,8 +13,9 @@ export interface DialFileManagerNavigationPanelProps extends Omit<DialBreadcrumb
|
|
|
13
13
|
value?: string | number | null;
|
|
14
14
|
elementId?: string;
|
|
15
15
|
onSearchChange?: (value: string) => void;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
searchClassName?: string;
|
|
17
|
+
searchContainerClassName?: string;
|
|
18
|
+
isCompactView?: boolean;
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* FileManagerNavigationPanel
|
|
@@ -38,23 +39,24 @@ export interface DialFileManagerNavigationPanelProps extends Omit<DialBreadcrumb
|
|
|
38
39
|
* // With clickable parents
|
|
39
40
|
* <FileManagerNavigationPanel
|
|
40
41
|
* path="Org/Design/Assets"
|
|
41
|
-
* makeHref={(segments, i) => '#' +
|
|
42
|
+
* makeHref={(segments, i) => '#' + segments.slice(0, i + 1).join('/')}
|
|
42
43
|
* />
|
|
43
44
|
* ```
|
|
44
45
|
*
|
|
45
46
|
* @param [ariaLabel="Breadcrumb"] - Aria label for the breadcrumb `<nav>`
|
|
46
|
-
* @param [
|
|
47
|
+
* @param [titleClassName] - Extra classes for breadcrumb titles
|
|
47
48
|
* @param [path] - A full path string that will be split into breadcrumb items
|
|
48
49
|
* @param [makeHref] - Factory to create hrefs for segments
|
|
49
50
|
* @param [onItemClick] - Callback fired when a breadcrumb item is clicked
|
|
50
|
-
* @param [
|
|
51
|
-
* @param [
|
|
51
|
+
* @param [className] - Additional classes for the panel container
|
|
52
|
+
* @param [breadcrumbClassName] - ClassName forwarded to inner `DialBreadcrumb`
|
|
52
53
|
* @param [searchable=true] - Whether to render the search control
|
|
53
54
|
* @param [value] - Controlled value for the search input (parent-managed)
|
|
54
55
|
* @param [elementId="fm-search"] - DOM id for the internal DialSearch input
|
|
55
56
|
* @param [size=SearchSize.Base] - Size of the search input (from DialSearchProps)
|
|
56
57
|
* @param [onSearchChange] - Callback fired when the search value changes
|
|
57
|
-
* @param [
|
|
58
|
-
* @param [
|
|
58
|
+
* @param [searchClassName] - Extra classes for the search input element
|
|
59
|
+
* @param [searchContainerClassName] - Extra classes for the search container
|
|
60
|
+
* @param [isCompactView=false] - Whether the component should render in compact mode
|
|
59
61
|
*/
|
|
60
62
|
export declare const DialFileManagerNavigationPanel: FC<DialFileManagerNavigationPanelProps>;
|
package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
export declare const panelBaseClassName = "w-full h-[12] flex items-center justify-between gap-4";
|
|
2
|
+
export declare const breadcrumbContainerClassName = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-3 px-3 flex items-center rounded";
|
|
3
|
+
export declare const searchContainerWrapperClassName = "w-[260px]";
|