@epam/ai-dial-ui-kit 0.14.0-dev.48 → 0.14.0-dev.49
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/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +94 -87
- package/dist/components/FileManager/utils.js +31 -23
- package/dist/components-manifest.json +2 -2
- package/dist/dial-ui-kit.cjs +1 -1
- package/dist/file-manager.cjs +1 -1
- package/dist/src/components/FileManager/FileManager.d.ts +2 -1
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +2 -0
- package/dist/src/components/FileManager/utils.d.ts +11 -0
- package/dist/{use-file-manager-tabs-dJ-RvTEw.cjs → use-file-manager-tabs-DjdR_mYM.cjs} +2 -2
- package/package.json +1 -1
package/dist/file-manager.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-file-manager-tabs-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-file-manager-tabs-DjdR_mYM.cjs");exports.DialDestinationFolderPopup=e.DialDestinationFolderPopup;exports.DialFileManager=e.DialFileManager;exports.DialFileManagerActions=e.DialFileManagerActions;exports.DialFileManagerTabs=e.DialFileManagerTabs;exports.DialFoldersTree=e.DialFoldersTree;exports.FileManagerColumnKey=e.FileManagerColumnKey;exports.FileManagerProvider=e.FileManagerProvider;exports.NAME_COLUMN=e.NAME_COLUMN;exports.SIZE_COLUMN=e.SIZE_COLUMN;exports.UPDATED_AT_COLUMN=e.UPDATED_AT_COLUMN;exports.useDialFileManagerTabs=e.useDialFileManagerTabs;exports.useFileManagerContext=e.useFileManagerContext;
|
|
@@ -17,7 +17,7 @@ import { DialFileManagerToolbarProps } from './components/FileManagerToolbar/Dia
|
|
|
17
17
|
import { DialFoldersTreeProps } from './components/FoldersTree/FoldersTree';
|
|
18
18
|
type GridRow = FileManagerGridRow;
|
|
19
19
|
export type DialFileManagerConflictResolutionPopupOptions = Omit<ConflictResolutionPopupProps, 'open' | 'onClose' | 'onReplace' | 'onDuplicate' | 'conflictingFiles'>;
|
|
20
|
-
export type DialFileManagerDestinationFolderPopupOptions = Pick<DestinationFolderPopupProps, 'setDestinationFolderPath' | 'destinationFolderPath' | 'addFolderLabel' | 'copyLabel' | 'moveLabel' | 'hiddenFilesSwitcherLabel' | 'header' | 'onCreateFolder' | 'onCreateFolderValidate' | 'folderCreationValidationMessages' | 'disabledPathTooltip' | 'emptyStateTitle' | 'emptyStateDescription'> & {
|
|
20
|
+
export type DialFileManagerDestinationFolderPopupOptions = Pick<DestinationFolderPopupProps, 'setDestinationFolderPath' | 'destinationFolderPath' | 'addFolderLabel' | 'copyLabel' | 'moveLabel' | 'hiddenFilesSwitcherLabel' | 'header' | 'onCreateFolder' | 'onCreateFolderValidate' | 'folderCreationValidationMessages' | 'disabledPathTooltip' | 'emptyStateTitle' | 'emptyStateDescription' | 'excludedPaths'> & {
|
|
21
21
|
getCopyHeader?: (itemsCount: number, itemName?: string) => string;
|
|
22
22
|
getMoveHeader?: (itemsCount: number, itemName?: string) => string;
|
|
23
23
|
processDestinationFolderPath?: (path: string) => string;
|
|
@@ -270,6 +270,7 @@ export interface DialFileManagerProps {
|
|
|
270
270
|
* @param [gridOptions] - Options forwarded to `DialGrid`; supports `columnDefs` override and `filterable` flag and date locale/options
|
|
271
271
|
* @param [bulkActionsToolbarOptions] - Options for the bulk actions toolbar shown when items are selected
|
|
272
272
|
* @param [deleteConfirmationOptions] - Options for the delete confirmation popup
|
|
273
|
+
* @param [destinationFolderPopupOptions.excludedPaths] - Paths to hide from the Copy/Move destination popup only (e.g. a root folder that shouldn't be a valid destination); the main tree/grid are unaffected
|
|
273
274
|
*
|
|
274
275
|
* @param [compactViewWidthBreakpoint=DEFAULT_COMPACT_VIEW_WIDTH_BREAKPOINT] - Width (px) below which the component switches to compact view.
|
|
275
276
|
*
|
|
@@ -21,6 +21,7 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
|
|
|
21
21
|
alertProps?: DialNotificationProps;
|
|
22
22
|
onFolderPopupPathChange?: (newPath?: string) => void;
|
|
23
23
|
processDestinationFolderPath?: (path: string) => string;
|
|
24
|
+
excludedPaths?: string[];
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* DestinationFolderPopup
|
|
@@ -65,6 +66,7 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
|
|
|
65
66
|
* @param [disabledPathTooltip="Unavailable for the original path. Please select another folder"] - Tooltip text when destination is disabled
|
|
66
67
|
* @param [collapsedFileTree=false] - Whether the file tree should be initially collapsed
|
|
67
68
|
* @param [processDestinationFolderPath] - Optional function to process the destination folder path before setting it
|
|
69
|
+
* @param [excludedPaths] - Paths to hide from this popup's tree and grid (e.g. a root folder that shouldn't be a valid destination). Matching items and their subtree are excluded.
|
|
68
70
|
*
|
|
69
71
|
* @returns A React component for the destination folder selection popup
|
|
70
72
|
*/
|
|
@@ -7,6 +7,17 @@ export declare const findFolderForPath: (root: DialFile[] | undefined, path?: st
|
|
|
7
7
|
export declare const normalizeToLowerCase: (input?: string) => string;
|
|
8
8
|
export declare const normalizeExtensionWithoutDot: (input?: string) => string;
|
|
9
9
|
export declare const collectAllDescendants: (folder?: DialFile) => DialFile[];
|
|
10
|
+
/**
|
|
11
|
+
* Removes items (and their entire subtree) whose path matches one of the
|
|
12
|
+
* excluded paths, at any nesting depth. Used to hide specific folders (e.g.
|
|
13
|
+
* a root folder) from the Move/Copy destination popup without affecting the
|
|
14
|
+
* main file manager view.
|
|
15
|
+
*
|
|
16
|
+
* @param nodes - Hierarchical items to filter
|
|
17
|
+
* @param excludedPaths - Paths to exclude; pass `undefined`/empty to no-op
|
|
18
|
+
* @returns A new array with matching nodes (and their descendants) removed
|
|
19
|
+
*/
|
|
20
|
+
export declare const excludePathsFromTree: (nodes: DialFile[] | undefined, excludedPaths?: string[]) => DialFile[];
|
|
10
21
|
export declare const isHiddenDotFile: (node: DialFile) => boolean;
|
|
11
22
|
/**
|
|
12
23
|
* Formats bytes into a short, human-readable string.
|