@epam/ai-dial-ui-kit 0.14.0-dev.46 → 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/DateCellRenderer-D437_mi0.cjs +1 -0
- package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +94 -87
- package/dist/components/FileManager/utils.js +31 -23
- package/dist/components/New/Dropdown/Dropdown.js +94 -93
- package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +52 -50
- package/dist/components-manifest.json +8 -2
- package/dist/dial-ui-kit.cjs +1 -1
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.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/src/components/New/Dropdown/Dropdown.d.ts +10 -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/DateCellRenderer-BYItGoO_.cjs +0 -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;
|
package/dist/grid.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DateCellRenderer-BVM-Q8yx.cjs"),D=require("./DateCellRenderer-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DateCellRenderer-BVM-Q8yx.cjs"),D=require("./DateCellRenderer-D437_mi0.cjs");exports.DEFAULT_GRID_DATE_FORMAT_OPTIONS=e.DEFAULT_DATE_FORMAT_OPTIONS;exports.DEFAULT_GRID_DATE_LOCALE=e.DEFAULT_LOCALE;exports.DialDateCellRenderer=e.DialDateCellRenderer;exports.DialGrid=e.DialGrid;exports.GridSelectionMode=e.GridSelectionMode;exports.baseColumnComparator=e.baseColumnComparator;exports.checkColDefsChanges=e.checkColDefsChanges;exports.convertGridDateToDate=e.convertToDate;exports.convertToDate=e.convertToDate;exports.DEFAULT_DATE_FORMAT_OPTIONS=D.DEFAULT_DATE_FORMAT_OPTIONS;exports.DEFAULT_DATE_LOCALE=D.DEFAULT_LOCALE;exports.DateCellRenderer=D.DateCellRenderer;exports.GRID_ALIGN_RIGHT_CLASS=D.GRID_ALIGN_RIGHT_CLASS;exports.GRID_ROOT_CLASS=D.GRID_ROOT_CLASS;exports.GRID_ROW_HEIGHT=D.ROW_HEIGHT;exports.GRID_SELECTION_COLUMN_ID=D.GRID_SELECTION_COLUMN_ID;exports.GRID_THEME_PARAMS=D.GRID_THEME_PARAMS;exports.Grid=D.Grid;
|
|
@@ -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.
|
|
@@ -30,6 +30,15 @@ export interface DropdownProps {
|
|
|
30
30
|
anchorToMouse?: boolean;
|
|
31
31
|
matchReferenceWidth?: boolean;
|
|
32
32
|
maxDropdownHeight?: number | null;
|
|
33
|
+
/**
|
|
34
|
+
* Initial focus inside the overlay on open, forwarded to
|
|
35
|
+
* `FloatingFocusManager`'s `initialFocus`. `0` focuses the first tabbable
|
|
36
|
+
* element (menu behavior); `-1` leaves focus where it is (typeahead
|
|
37
|
+
* behavior, e.g. a `/`-command menu opened from a textarea). When omitted,
|
|
38
|
+
* defaults to menu behavior for click/context opens and to `-1` for hover
|
|
39
|
+
* opens, matching the pre-existing behavior.
|
|
40
|
+
*/
|
|
41
|
+
initialFocus?: 0 | -1 | RefObject<HTMLElement | null>;
|
|
33
42
|
}
|
|
34
43
|
/**
|
|
35
44
|
*
|
|
@@ -93,5 +102,6 @@ export interface DropdownProps {
|
|
|
93
102
|
* @param [anchorToMouse=false] - Whether to anchor the dropdown to the mouse position
|
|
94
103
|
* @param [matchReferenceWidth=true] - Whether to match the reference element's width
|
|
95
104
|
* @param [maxDropdownHeight] - Maximum height of the dropdown menu; when omitted, no limit is applied
|
|
105
|
+
* @param [initialFocus] - Initial focus target inside the overlay on open, forwarded to `FloatingFocusManager`; when omitted, matches pre-existing behavior
|
|
96
106
|
*/
|
|
97
107
|
export declare const Dropdown: FC<DropdownProps>;
|