@epam/ai-dial-ui-kit 0.15.0-dev.9 → 0.15.0
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 +55 -2
- package/dist/CHANGELOG.md +84 -0
- package/dist/DateCellRenderer-BdUMSg-E.cjs +1 -0
- package/dist/{DateCellRenderer-Bu40QyHE.cjs → DateCellRenderer-CZNa4jVJ.cjs} +30 -30
- package/dist/IconButton-DHOFapLo.cjs +1 -0
- package/dist/{JsonEditor-qv1Z0dLX.cjs → JsonEditor-Bxui5wJH.cjs} +1 -1
- package/dist/{MarkdownEditor-DHn2pYOJ.cjs → MarkdownEditor-BKtFs714.cjs} +1 -1
- package/dist/MarkdownEditor-Bapd1ycU.cjs +1 -0
- package/dist/MarkdownEditorContainer-B5aHwoYF.cjs +1 -0
- package/dist/{Switch-CUKClcEz.cjs → Switch-DE6MrcqJ.cjs} +1 -1
- package/dist/components/Button/constants.js +9 -8
- package/dist/components/Dropdown/Dropdown.js +2 -2
- package/dist/components/Dropdown/DropdownSubMenuItem.js +1 -1
- package/dist/components/Dropdown/constants.js +7 -7
- package/dist/components/DropdownIcon/DropdownIcon.js +4 -4
- package/dist/components/FileManager/FileManager.js +373 -372
- package/dist/components/FileManager/FileManagerProvider.js +266 -264
- package/dist/components/FileManager/hooks/use-grid-context-menu.js +59 -59
- package/dist/components/MarkdownEditor/MarkdownEditor.js +23 -21
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +27 -25
- package/dist/components/New/Accordion/Accordion.js +86 -72
- package/dist/components/New/AutocompleteTagInput/AutocompleteTagInput.js +214 -0
- package/dist/components/New/AutocompleteTagInput/utils.js +11 -0
- package/dist/components/New/Avatar/Avatar.js +70 -0
- package/dist/components/New/Badge/Badge.js +45 -0
- package/dist/components/New/BottomSheet/BottomSheet.js +128 -0
- package/dist/components/New/Breadcrumbs/Breadcrumbs.js +159 -0
- package/dist/components/New/Breadcrumbs/constants.js +41 -0
- package/dist/components/New/Button/Button.js +32 -32
- package/dist/components/New/Button/ButtonWrappers.js +103 -37
- package/dist/components/New/Button/constants.js +3 -0
- package/dist/components/New/Button/utils.js +18 -8
- package/dist/components/New/ButtonDropdown/ButtonDropdown.js +27 -18
- package/dist/components/New/Calendar/Calendar.js +6 -6
- package/dist/components/New/Calendar/constants.js +5 -5
- package/dist/components/New/CaptionText/CaptionText.js +3 -3
- package/dist/components/New/CardShell/CardShell.js +2 -2
- package/dist/components/New/Checkbox/Checkbox.js +2 -2
- package/dist/components/New/Checkbox/CheckboxBox.js +2 -2
- package/dist/components/New/CloseButton/CloseButton.js +1 -1
- package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +2 -2
- package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +21 -25
- package/dist/components/New/ConfirmationPopup/constants.js +8 -11
- package/dist/components/New/Dropdown/Dropdown.js +99 -98
- package/dist/components/New/Dropdown/DropdownSubMenuItem.js +17 -17
- package/dist/components/New/Dropdown/constants.js +22 -17
- package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +2 -2
- package/dist/components/New/EntityIdentity/EntityIdentity.js +135 -0
- package/dist/components/New/FileDropzone/FileDropzone.js +2 -2
- package/dist/components/New/FileIcon/FileIcon.js +55 -0
- package/dist/components/New/FileIcon/constants.js +134 -0
- package/dist/components/New/FileIcon/icons/FileGlyph.js +150 -0
- package/dist/components/New/FileIcon/icons/FolderGlyph.js +50 -0
- package/dist/components/New/FileName/FileName.js +78 -0
- package/dist/components/New/FilterChips/FilterChips.js +2 -2
- package/dist/components/New/FolderName/FolderName.js +16 -0
- package/dist/components/New/FolderPath/FolderPath.js +1 -1
- package/dist/components/New/Grid/constants.js +14 -5
- package/dist/components/New/Highlight/Highlight.js +2 -2
- package/dist/components/New/IconButton/IconButton.js +30 -28
- package/dist/components/New/InfoButton/InfoButton.js +2 -2
- package/dist/components/New/InlineSelect/InlineSelect.js +75 -59
- package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +70 -66
- package/dist/components/New/InteractiveTooltip/constants.js +2 -2
- package/dist/components/New/Label/Label.js +2 -2
- package/dist/components/New/MarkdownEditor/MarkdownEditor.js +29 -27
- package/dist/components/New/MenuItem/MenuItem.js +2 -2
- package/dist/components/New/MenuItem/constants.js +1 -1
- package/dist/components/New/NoDataContent/NoDataContent.js +2 -2
- package/dist/components/New/Notification/Notification.js +37 -35
- package/dist/components/New/NumberInput/NumberInput.js +2 -2
- package/dist/components/New/PasswordInput/PasswordInput.js +2 -2
- package/dist/components/New/Popup/Popup.js +59 -57
- package/dist/components/New/Popup/constants.js +3 -3
- package/dist/components/New/Radio/Radio.js +2 -2
- package/dist/components/New/RadioGroup/RadioGroup.js +2 -2
- package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +2 -2
- package/dist/components/New/ResizableContainer/ResizableContainer.js +2 -2
- package/dist/components/New/SchemaRenderer/SchemaRenderer.js +164 -0
- package/dist/components/New/SchemaRenderer/components/SchemaAnyOfEditor.js +65 -0
- package/dist/components/New/SchemaRenderer/components/SchemaArrayEditor.js +109 -0
- package/dist/components/New/SchemaRenderer/components/SchemaField.js +83 -0
- package/dist/components/New/SchemaRenderer/components/SchemaFieldContent.js +72 -0
- package/dist/components/New/SchemaRenderer/components/SchemaJsonEditor.js +41 -0
- package/dist/components/New/SchemaRenderer/components/SchemaKeyValueEditor.js +250 -0
- package/dist/components/New/SchemaRenderer/components/SchemaObjectEditor.js +36 -0
- package/dist/components/New/SchemaRenderer/components/SchemaOneOfEditor.js +163 -0
- package/dist/components/New/SchemaRenderer/components/SchemaPrimitiveField.js +150 -0
- package/dist/components/New/SchemaRenderer/components/SchemaSection.js +135 -0
- package/dist/components/New/SchemaRenderer/context.js +17 -0
- package/dist/components/New/Search/Search.js +2 -2
- package/dist/components/New/SegmentedControl/SegmentedControl.js +4 -4
- package/dist/components/New/Select/CollapsedSelectTags.js +127 -0
- package/dist/components/New/Select/MultiSelectTags.js +18 -15
- package/dist/components/New/Select/Select.js +184 -173
- package/dist/components/New/Select/constants.js +23 -20
- package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +34 -0
- package/dist/components/New/SideDrawer/SideDrawer.js +148 -0
- package/dist/components/New/Slider/Slider.js +184 -91
- package/dist/components/New/Slider/utils.js +20 -0
- package/dist/components/New/Switch/Switch.js +2 -2
- package/dist/components/New/Tabs/Tabs.js +124 -66
- package/dist/components/New/Tag/Tag.js +2 -2
- package/dist/components/New/TagInput/TagInput.js +5 -3
- package/dist/components/New/Textarea/Textarea.js +21 -20
- package/dist/components/New/ToggleIconButton/ToggleIconButton.js +2 -2
- package/dist/components/New/Tooltip/TooltipContent.js +2 -2
- package/dist/components/New/Tooltip/constants.js +1 -1
- package/dist/components/New/TransferQueue/TransferQueue.js +124 -0
- package/dist/components/New/TransferQueue/TransferQueueHeader.js +71 -0
- package/dist/components/New/TransferQueue/TransferQueueRow.js +119 -0
- package/dist/components/New/TransferQueue/constants.js +24 -0
- package/dist/components/New/constants/overlay.js +17 -9
- package/dist/components/Popup/constants.js +8 -8
- package/dist/components/ProgressBar/ProgressBar.js +6 -6
- package/dist/components/SchemaRenderer/SchemaRenderer.js +16 -15
- package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +2 -2
- package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +1 -1
- package/dist/components/SchemaRenderer/components/SchemaField.js +23 -23
- package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +19 -19
- package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +2 -2
- package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +1 -1
- package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +13 -13
- package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +5 -5
- package/dist/components/Skeleton/Skeleton.js +2 -2
- package/dist/components/Spinner/Spinner.js +2 -2
- package/dist/components/Tooltip/TooltipContent.js +11 -11
- package/dist/components-manifest.json +1826 -109
- package/dist/constants/public-class-names.js +64 -3
- package/dist/{components/SchemaRenderer/types.js → constants/schema-renderer.js} +2 -7
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/dial-ui-kit.js +357 -311
- package/dist/editors.cjs +1 -1
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/index.css +2 -2
- package/dist/lazy-_W6FYhKg.cjs +1 -0
- package/dist/merge-classes-BEJXjzkx.cjs +1 -0
- package/dist/migration-guides/0.15.0/legacy-theme-variable-fallbacks-removal.md +69 -0
- package/dist/migration-guides/0.15.0/slider-redesign.md +110 -0
- package/dist/migration-guides/README.md +2 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +419 -399
- package/dist/src/components/FileManager/FileManager.d.ts +2 -0
- package/dist/src/components/FileManager/FileManagerContext.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +2 -1
- package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +2 -0
- package/dist/src/components/MarkdownEditor/MarkdownEditorContainer.d.ts +2 -0
- package/dist/src/components/New/Accordion/Accordion.d.ts +6 -1
- package/dist/src/components/New/AutocompleteTagInput/AutocompleteTagInput.d.ts +108 -0
- package/dist/src/components/New/AutocompleteTagInput/utils.d.ts +17 -0
- package/dist/src/components/New/AutocompleteTagInput/utils.spec.d.ts +1 -0
- package/dist/src/components/New/Avatar/Avatar.d.ts +55 -0
- package/dist/src/components/New/Badge/Badge.d.ts +47 -0
- package/dist/src/components/New/BottomSheet/BottomSheet.d.ts +84 -0
- package/dist/src/components/New/Breadcrumbs/Breadcrumbs.d.ts +94 -0
- package/dist/src/components/New/Breadcrumbs/constants.d.ts +60 -0
- package/dist/src/components/New/Button/Button.d.ts +4 -1
- package/dist/src/components/New/Button/ButtonWrappers.d.ts +21 -0
- package/dist/src/components/New/Button/utils.d.ts +15 -0
- package/dist/src/components/New/ButtonDropdown/ButtonDropdown.d.ts +4 -0
- package/dist/src/components/New/Calendar/constants.d.ts +1 -1
- package/dist/src/components/New/ConfirmationPopup/constants.d.ts +0 -1
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +9 -1
- package/dist/src/components/New/Dropdown/constants.d.ts +3 -0
- package/dist/src/components/New/EntityIdentity/EntityIdentity.d.ts +85 -0
- package/dist/src/components/New/FileIcon/FileIcon.d.ts +61 -0
- package/dist/src/components/New/FileIcon/constants.d.ts +16 -0
- package/dist/src/components/New/FileIcon/icons/FileGlyph.d.ts +18 -0
- package/dist/src/components/New/FileIcon/icons/FolderGlyph.d.ts +17 -0
- package/dist/src/components/New/FileName/FileName.d.ts +79 -0
- package/dist/src/components/New/FolderName/FolderName.d.ts +37 -0
- package/dist/src/components/New/Grid/constants.d.ts +6 -4
- package/dist/src/components/New/InlineSelect/InlineSelect.d.ts +16 -1
- package/dist/src/components/New/InteractiveTooltip/InteractiveTooltip.d.ts +13 -2
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +5 -4
- package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +3 -0
- package/dist/src/components/New/Notification/Notification.d.ts +18 -0
- package/dist/src/components/New/Popup/Popup.d.ts +8 -1
- package/dist/src/components/New/Popup/constants.d.ts +1 -1
- package/dist/src/components/New/SchemaRenderer/SchemaRenderer.d.ts +38 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaAnyOfEditor.d.ts +37 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaArrayEditor.d.ts +35 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaField.d.ts +33 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaFieldContent.d.ts +30 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaJsonEditor.d.ts +29 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaKeyValueEditor.d.ts +37 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaObjectEditor.d.ts +32 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaOneOfEditor.d.ts +39 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaPrimitiveField.d.ts +38 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaSection.d.ts +39 -0
- package/dist/src/components/New/SchemaRenderer/context.d.ts +8 -0
- package/dist/src/components/New/SchemaRenderer/types.d.ts +76 -0
- package/dist/src/components/New/Select/CollapsedSelectTags.d.ts +22 -0
- package/dist/src/components/New/Select/MultiSelectTags.d.ts +5 -0
- package/dist/src/components/New/Select/Select.d.ts +9 -0
- package/dist/src/components/New/Select/constants.d.ts +3 -2
- package/dist/src/components/New/SharedEntityIndicator/SharedEntityIndicator.d.ts +35 -0
- package/dist/src/components/New/SideDrawer/SideDrawer.d.ts +100 -0
- package/dist/src/components/New/Slider/Slider.d.ts +29 -1
- package/dist/src/components/New/Slider/utils.d.ts +14 -0
- package/dist/src/components/New/Slider/utils.spec.d.ts +1 -0
- package/dist/src/components/New/Tabs/Tabs.d.ts +54 -6
- package/dist/src/components/New/Tooltip/constants.d.ts +5 -3
- package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +139 -0
- package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +16 -0
- package/dist/src/components/New/TransferQueue/TransferQueueRow.d.ts +10 -0
- package/dist/src/components/New/TransferQueue/constants.d.ts +6 -0
- package/dist/src/components/New/constants/overlay.d.ts +13 -0
- package/dist/src/components/Popup/constants.d.ts +1 -1
- package/dist/src/components/SchemaRenderer/types.d.ts +5 -93
- package/dist/src/components/SchemaRenderer/utils.d.ts +1 -17
- package/dist/src/constants/public-class-names.d.ts +64 -3
- package/dist/src/constants/schema-renderer.d.ts +2 -0
- package/dist/src/index.d.ts +37 -3
- package/dist/src/models/json-schema.d.ts +71 -0
- package/dist/src/types/accordion.d.ts +7 -0
- package/dist/src/types/avatar.d.ts +7 -0
- package/dist/src/types/badge.d.ts +16 -0
- package/dist/src/types/breadcrumbs.d.ts +9 -0
- package/dist/src/types/button.d.ts +1 -0
- package/dist/src/types/entity-type.d.ts +9 -0
- package/dist/src/types/json-schema.d.ts +22 -0
- package/dist/src/types/tooltip.d.ts +4 -0
- package/dist/src/types/transfer-queue.d.ts +10 -0
- package/dist/src/utils/__tests__/avatar.spec.d.ts +1 -0
- package/dist/src/utils/avatar.d.ts +12 -0
- package/dist/src/utils/json-schema.d.ts +23 -0
- package/dist/src/utils/sub-menu-floating.d.ts +7 -4
- package/dist/types/accordion.js +4 -0
- package/dist/types/avatar.js +4 -0
- package/dist/types/badge.js +5 -0
- package/dist/types/breadcrumbs.js +4 -0
- package/dist/types/button.js +3 -3
- package/dist/types/entity-type.js +4 -0
- package/dist/types/json-schema.js +7 -0
- package/dist/types/tooltip.js +3 -2
- package/dist/types/transfer-queue.js +4 -0
- package/dist/use-file-manager-tabs-Bzzwwcgk.cjs +3 -0
- package/dist/utils/avatar.js +22 -0
- package/dist/{components/SchemaRenderer/utils.js → utils/json-schema.js} +22 -20
- package/dist/utils/merge-classes.js +12 -5
- package/dist/utils/sub-menu-floating.js +99 -54
- package/package.json +4 -9
- package/dist/DateCellRenderer-C3e61i75.cjs +0 -1
- package/dist/IconButton-DWqoaBWf.cjs +0 -1
- package/dist/MarkdownEditor-jQ8nDJfx.cjs +0 -1
- package/dist/MarkdownEditorContainer-Bzcnoemw.cjs +0 -1
- package/dist/lazy-tfN4sKhq.cjs +0 -1
- package/dist/merge-classes-Dipy1Ih1.cjs +0 -1
- package/dist/use-file-manager-tabs-9DWkp9IJ.cjs +0 -3
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { jsx as o, jsxs as A } from "react/jsx-runtime";
|
|
2
|
-
import { IconCopy as
|
|
3
|
-
import
|
|
4
|
-
import { useState as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { DialCollapsibleSidebar as
|
|
11
|
-
import { ConflictResolutionPopup as
|
|
12
|
-
import { useGridActionsColumn as
|
|
13
|
-
import { useTriggerViewRename as
|
|
14
|
-
import { DialGrid as
|
|
15
|
-
import { DialConditionalResizableContainer as
|
|
2
|
+
import { IconCopy as Aa, IconDownload as ka, IconExternalLink as Oa, IconTrashX as xa, IconPencilMinus as Ea, IconUserX as za, IconFileDescription as Ga } from "@tabler/icons-react";
|
|
3
|
+
import Ba from "classnames";
|
|
4
|
+
import { useState as Va, useRef as _a, useMemo as f, useCallback as r, useImperativeHandle as Ha } from "react";
|
|
5
|
+
import Ua from "../../assets/icons/add-child.svg.js";
|
|
6
|
+
import Wa from "../../assets/icons/add-sibling.svg.js";
|
|
7
|
+
import ja from "../../assets/icons/copy-to.svg.js";
|
|
8
|
+
import Xa from "../../assets/icons/move-to.svg.js";
|
|
9
|
+
import Ka from "../../assets/icons/unshare.svg.js";
|
|
10
|
+
import { DialCollapsibleSidebar as qa } from "../CollapsibleSidebar/CollapsibleSidebar.js";
|
|
11
|
+
import { ConflictResolutionPopup as uo } from "./components/ConflictResolutionPopup/ConflictResolutionPopup.js";
|
|
12
|
+
import { useGridActionsColumn as Ya } from "./hooks/use-grid-actions-column.js";
|
|
13
|
+
import { useTriggerViewRename as Ja } from "./hooks/use-trigger-view-rename.js";
|
|
14
|
+
import { DialGrid as Qa } from "../Grid/Grid.js";
|
|
15
|
+
import { DialConditionalResizableContainer as Za } from "../ResizableContainer/ConditionalResizableContainer.js";
|
|
16
16
|
import { BASE_ICON_PROPS as l } from "../../constants/icon.js";
|
|
17
|
-
import { useWidthBreakpoint as
|
|
18
|
-
import { DialFileNodeType as
|
|
19
|
-
import { DropdownItemType as
|
|
20
|
-
import { FileManagerColumnKey as k, DialFileManagerActions as i, DestinationFolderMode as p, FileManagerCreateFolderTriggerView as
|
|
17
|
+
import { useWidthBreakpoint as $a } from "../../hooks/use-width-breakpoint.js";
|
|
18
|
+
import { DialFileNodeType as De, DialFilePermission as ei } from "../../models/file.js";
|
|
19
|
+
import { DropdownItemType as oi } from "../../types/dropdown.js";
|
|
20
|
+
import { FileManagerColumnKey as k, DialFileManagerActions as i, DestinationFolderMode as p, FileManagerCreateFolderTriggerView as ai, FileManagerRenameTriggerView as ii } from "../../types/file-manager.js";
|
|
21
21
|
import { mergeClasses as te } from "../../utils/merge-classes.js";
|
|
22
|
-
import { DialNoDataContent as
|
|
23
|
-
import { FileManagerProvider as
|
|
24
|
-
import { FileManagerTooltip as
|
|
25
|
-
import { DialDestinationFolderPopup as
|
|
26
|
-
import { DialFileManagerBulkActionsToolbar as
|
|
27
|
-
import { FileManagerDeleteConfirmationPopup as
|
|
28
|
-
import { DialFileManagerNavigationPanel as
|
|
29
|
-
import { DialFileManagerToolbar as
|
|
30
|
-
import { FileMetadataPopup as
|
|
31
|
-
import { DialFoldersTree as
|
|
32
|
-
import { DEFAULT_COMPACT_VIEW_WIDTH_BREAKPOINT as
|
|
33
|
-
import { useBulkActions as
|
|
34
|
-
import { useFileManagerColumns as
|
|
35
|
-
import { useFileManagerContext as
|
|
36
|
-
import { useGridContextMenu as
|
|
37
|
-
import { getRowTooltip as
|
|
38
|
-
import { useTriggerViewCreateFolder as
|
|
39
|
-
const
|
|
22
|
+
import { DialNoDataContent as ni } from "../NoDataContent/NoDataContent.js";
|
|
23
|
+
import { FileManagerProvider as ti } from "./FileManagerProvider.js";
|
|
24
|
+
import { FileManagerTooltip as li } from "./FileManagerTooltip.js";
|
|
25
|
+
import { DialDestinationFolderPopup as ri } from "./components/DestinationFolderPopup/DestinationFolderPopup.js";
|
|
26
|
+
import { DialFileManagerBulkActionsToolbar as si } from "./components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js";
|
|
27
|
+
import { FileManagerDeleteConfirmationPopup as di } from "./components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js";
|
|
28
|
+
import { DialFileManagerNavigationPanel as ci } from "./components/FileManagerNavigationPanel/FileManagerNavigationPanel.js";
|
|
29
|
+
import { DialFileManagerToolbar as pi } from "./components/FileManagerToolbar/DialFileManagerToolbar.js";
|
|
30
|
+
import { FileMetadataPopup as mi } from "./components/FileMetadataPopup/FileMetadataPopup.js";
|
|
31
|
+
import { DialFoldersTree as hi } from "./components/FoldersTree/FoldersTree.js";
|
|
32
|
+
import { DEFAULT_COMPACT_VIEW_WIDTH_BREAKPOINT as ui, sidebarWidth as Ci, sidebarTitleDefault as bi, treeBaseClassName as gi, DEFAULT_VISIBLE_COLUMN as fi, toolbarBaseClassName as Co, FOLDERS_TREE_PANEL_MAX_WIDTH as Di, FOLDERS_TREE_PANEL_MIN_WIDTH as Fi, COMPACT_VIEW_HEADER_HEIGHT as bo, gridBaseClassName as Ti, contentGridClassName as wi, mainGridClassName as yi, containerBaseClassName as Ri, actionsColumnButtonClassName as Mi } from "./constants.js";
|
|
33
|
+
import { useBulkActions as Pi } from "./hooks/use-bulk-actions.js";
|
|
34
|
+
import { useFileManagerColumns as Li } from "./hooks/use-file-manager-columns.js";
|
|
35
|
+
import { useFileManagerContext as Ni } from "./hooks/use-file-manager-context.js";
|
|
36
|
+
import { useGridContextMenu as Ii } from "./hooks/use-grid-context-menu.js";
|
|
37
|
+
import { getRowTooltip as Si, findNodeByPath as vi } from "./utils.js";
|
|
38
|
+
import { useTriggerViewCreateFolder as Ai } from "./hooks/use-trigger-view-create-folder.js";
|
|
39
|
+
const Dn = (O) => /* @__PURE__ */ o(ti, { ...O, children: /* @__PURE__ */ o(ki, {}) }), ki = () => {
|
|
40
40
|
const {
|
|
41
41
|
managerLabel: O,
|
|
42
42
|
className: go,
|
|
@@ -44,218 +44,217 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
44
44
|
rootItem: c,
|
|
45
45
|
filesLoading: D,
|
|
46
46
|
treeOptions: a,
|
|
47
|
-
showNavigationPanel:
|
|
47
|
+
showNavigationPanel: fo,
|
|
48
48
|
navigationPanelOptions: le,
|
|
49
49
|
gridOptions: L,
|
|
50
50
|
toolbarOptions: N,
|
|
51
51
|
bulkActionsToolbarOptions: F,
|
|
52
|
-
deleteConfirmationOptions:
|
|
52
|
+
deleteConfirmationOptions: Do,
|
|
53
53
|
destinationFolderPopupOptions: T,
|
|
54
|
-
conflictResolutionPopupOptions:
|
|
55
|
-
compactViewWidthBreakpoint:
|
|
56
|
-
customBreakpointRef:
|
|
54
|
+
conflictResolutionPopupOptions: Fe,
|
|
55
|
+
compactViewWidthBreakpoint: Fo = ui,
|
|
56
|
+
customBreakpointRef: To,
|
|
57
57
|
sharedByMePaths: m,
|
|
58
58
|
allowedFileTypes: x,
|
|
59
59
|
maxSelectableFileSize: re,
|
|
60
60
|
areHiddenFilesVisible: E,
|
|
61
|
-
toggleHiddenFilesVisibility:
|
|
61
|
+
toggleHiddenFilesVisibility: Te,
|
|
62
62
|
isTreeCollapsed: se,
|
|
63
|
-
toggleTreeCollapse:
|
|
63
|
+
toggleTreeCollapse: we,
|
|
64
64
|
currentPath: w,
|
|
65
65
|
gridRows: y,
|
|
66
66
|
selectedPaths: h,
|
|
67
67
|
selectedFiles: de,
|
|
68
68
|
clearSelection: ce,
|
|
69
|
-
setSelectedPaths:
|
|
70
|
-
effectiveSearchValue:
|
|
71
|
-
handleBreadcrumbItemClick:
|
|
72
|
-
handleSearchChange:
|
|
73
|
-
handleTreeItemClick:
|
|
74
|
-
handleTableRowClick:
|
|
75
|
-
handleSelectionClick:
|
|
76
|
-
onGridApiChange:
|
|
77
|
-
handleOpenDestinationFolderPopup:
|
|
78
|
-
handleCloseDestinationFolderPopup:
|
|
79
|
-
openDestinationFolderPopup:
|
|
80
|
-
destinationFolderMode:
|
|
69
|
+
setSelectedPaths: ye,
|
|
70
|
+
effectiveSearchValue: wo,
|
|
71
|
+
handleBreadcrumbItemClick: yo,
|
|
72
|
+
handleSearchChange: Ro,
|
|
73
|
+
handleTreeItemClick: Re,
|
|
74
|
+
handleTableRowClick: Me,
|
|
75
|
+
handleSelectionClick: Pe,
|
|
76
|
+
onGridApiChange: Le,
|
|
77
|
+
handleOpenDestinationFolderPopup: b,
|
|
78
|
+
handleCloseDestinationFolderPopup: Ne,
|
|
79
|
+
openDestinationFolderPopup: Mo,
|
|
80
|
+
destinationFolderMode: Ie,
|
|
81
81
|
handleSetCopiedFiles: z,
|
|
82
82
|
handleSetMovedFiles: G,
|
|
83
83
|
handleDuplicate: B,
|
|
84
|
-
handleCopyTo:
|
|
85
|
-
handleMoveTo:
|
|
86
|
-
handleGridAddSibling:
|
|
87
|
-
handleGridAddChild:
|
|
88
|
-
handleTreeAddSibling:
|
|
89
|
-
handleTreeAddChild:
|
|
84
|
+
handleCopyTo: Po,
|
|
85
|
+
handleMoveTo: Lo,
|
|
86
|
+
handleGridAddSibling: No,
|
|
87
|
+
handleGridAddChild: Io,
|
|
88
|
+
handleTreeAddSibling: So,
|
|
89
|
+
handleTreeAddChild: vo,
|
|
90
90
|
handleDownloadFiles: V,
|
|
91
91
|
openDeleteConfirmation: _,
|
|
92
|
-
closeDeleteConfirmation:
|
|
93
|
-
confirmDelete:
|
|
94
|
-
deleteConfirmationOpen:
|
|
95
|
-
itemsToDelete:
|
|
96
|
-
renamedPath:
|
|
97
|
-
renamedItem:
|
|
98
|
-
onRename:
|
|
92
|
+
closeDeleteConfirmation: Ao,
|
|
93
|
+
confirmDelete: ko,
|
|
94
|
+
deleteConfirmationOpen: Oo,
|
|
95
|
+
itemsToDelete: xo,
|
|
96
|
+
renamedPath: g,
|
|
97
|
+
renamedItem: Se,
|
|
98
|
+
onRename: Eo,
|
|
99
99
|
onRenameSave: H,
|
|
100
100
|
onRenameCancel: U,
|
|
101
101
|
onRenameValidate: W,
|
|
102
102
|
createdFolderPath: j,
|
|
103
103
|
forbiddenSymbolsRegExp: u,
|
|
104
104
|
forbiddenSymbolsTooltip: X,
|
|
105
|
-
|
|
105
|
+
skipForbiddenSymbolsCheckForActions: pe,
|
|
106
|
+
getDisplayName: ve,
|
|
106
107
|
isDragging: I,
|
|
107
108
|
isDraggingOverWindow: K,
|
|
108
|
-
handleDragEnter:
|
|
109
|
-
handleDragLeave:
|
|
110
|
-
handleDragOver:
|
|
111
|
-
handleDrop:
|
|
112
|
-
onUploadFiles:
|
|
113
|
-
onValidateUpload:
|
|
114
|
-
maxFileSize:
|
|
115
|
-
newActions:
|
|
116
|
-
isNewButtonVisible:
|
|
117
|
-
isNewButtonDisabled:
|
|
118
|
-
newFolderTempId:
|
|
109
|
+
handleDragEnter: zo,
|
|
110
|
+
handleDragLeave: Go,
|
|
111
|
+
handleDragOver: Bo,
|
|
112
|
+
handleDrop: Vo,
|
|
113
|
+
onUploadFiles: _o,
|
|
114
|
+
onValidateUpload: Ho,
|
|
115
|
+
maxFileSize: Uo,
|
|
116
|
+
newActions: Ae,
|
|
117
|
+
isNewButtonVisible: ke,
|
|
118
|
+
isNewButtonDisabled: Oe,
|
|
119
|
+
newFolderTempId: xe,
|
|
119
120
|
cancelFolderCreation: R,
|
|
120
121
|
saveFolderCreation: q,
|
|
121
|
-
validateFolderName:
|
|
122
|
-
startFolderCreation:
|
|
123
|
-
conflictingFiles:
|
|
124
|
-
conflictResolutionOpen:
|
|
125
|
-
handleConflictReplace:
|
|
126
|
-
handleConflictDuplicate:
|
|
127
|
-
handleConflictCancel:
|
|
128
|
-
handleConflictDecideForEach:
|
|
129
|
-
uploadConflictingFiles:
|
|
130
|
-
uploadConflictResolutionOpen:
|
|
131
|
-
handleUploadConflictReplace:
|
|
132
|
-
handleUploadConflictDuplicate:
|
|
133
|
-
handleUploadConflictCancel:
|
|
134
|
-
handleUploadConflictDecideForEach:
|
|
135
|
-
openMetadataPopup:
|
|
122
|
+
validateFolderName: Ee,
|
|
123
|
+
startFolderCreation: ze,
|
|
124
|
+
conflictingFiles: Wo,
|
|
125
|
+
conflictResolutionOpen: jo,
|
|
126
|
+
handleConflictReplace: Xo,
|
|
127
|
+
handleConflictDuplicate: Ko,
|
|
128
|
+
handleConflictCancel: qo,
|
|
129
|
+
handleConflictDecideForEach: Yo,
|
|
130
|
+
uploadConflictingFiles: Jo,
|
|
131
|
+
uploadConflictResolutionOpen: Qo,
|
|
132
|
+
handleUploadConflictReplace: Zo,
|
|
133
|
+
handleUploadConflictDuplicate: $o,
|
|
134
|
+
handleUploadConflictCancel: ea,
|
|
135
|
+
handleUploadConflictDecideForEach: oa,
|
|
136
|
+
openMetadataPopup: aa,
|
|
136
137
|
fileMetadataPopupOptions: C,
|
|
137
|
-
isMetadataPopupOpen:
|
|
138
|
-
selectedFileForMetadata:
|
|
139
|
-
closeMetadataPopup:
|
|
138
|
+
isMetadataPopupOpen: ia,
|
|
139
|
+
selectedFileForMetadata: na,
|
|
140
|
+
closeMetadataPopup: ta,
|
|
140
141
|
onUnshareFiles: Y,
|
|
141
142
|
onRemoveFilesAccess: J,
|
|
142
|
-
actionsRef:
|
|
143
|
-
searchInProgress:
|
|
143
|
+
actionsRef: la,
|
|
144
|
+
searchInProgress: Ge,
|
|
144
145
|
isSearchMode: Q,
|
|
145
|
-
emptyStateIcon:
|
|
146
|
-
emptyStateTitle:
|
|
147
|
-
emptyStateDescription:
|
|
146
|
+
emptyStateIcon: Be,
|
|
147
|
+
emptyStateTitle: Ve = "You don't have any files",
|
|
148
|
+
emptyStateDescription: _e = "Upload or drag and drop files",
|
|
148
149
|
sharedWithMeIds: Z,
|
|
149
|
-
onFolderPopupPathChange:
|
|
150
|
+
onFolderPopupPathChange: ra,
|
|
150
151
|
onManagePermissions: $,
|
|
151
|
-
onPreview:
|
|
152
|
-
onOpenInNewTab:
|
|
153
|
-
previewExtensions:
|
|
154
|
-
isRenameFileAvailable:
|
|
155
|
-
isDuplicateFolderAvailable:
|
|
156
|
-
getDisabledTooltip:
|
|
157
|
-
fileTooLargeTooltip:
|
|
158
|
-
unsupportedFileTypeTooltip:
|
|
159
|
-
gridClassName:
|
|
160
|
-
nonClickableTableColumns:
|
|
161
|
-
hideSearchPathItemName:
|
|
162
|
-
showHiddenFileSwitcherInDestinationPopup:
|
|
163
|
-
showCreateFolderButtonInDestinationPopup:
|
|
152
|
+
onPreview: sa,
|
|
153
|
+
onOpenInNewTab: da,
|
|
154
|
+
previewExtensions: ca,
|
|
155
|
+
isRenameFileAvailable: pa,
|
|
156
|
+
isDuplicateFolderAvailable: ma,
|
|
157
|
+
getDisabledTooltip: me,
|
|
158
|
+
fileTooLargeTooltip: He,
|
|
159
|
+
unsupportedFileTypeTooltip: Ue,
|
|
160
|
+
gridClassName: ha,
|
|
161
|
+
nonClickableTableColumns: he,
|
|
162
|
+
hideSearchPathItemName: ue,
|
|
163
|
+
showHiddenFileSwitcherInDestinationPopup: ua,
|
|
164
|
+
showCreateFolderButtonInDestinationPopup: Ca,
|
|
164
165
|
newFolderDefaultName: ee
|
|
165
|
-
} =
|
|
166
|
-
width:
|
|
167
|
-
header:
|
|
168
|
-
containerClassName:
|
|
169
|
-
additionalButtons:
|
|
170
|
-
...
|
|
171
|
-
} = a ?? {}, [oe,
|
|
172
|
-
createFolderTriggerView:
|
|
173
|
-
onGridCreateSiblingFolder:
|
|
174
|
-
onTreeCreateSiblingFolder:
|
|
175
|
-
onGridCreateChildFolder:
|
|
176
|
-
onTreeCreateChildFolder:
|
|
177
|
-
} =
|
|
178
|
-
onGridAddSibling:
|
|
179
|
-
onGridAddChild:
|
|
180
|
-
onTreeAddSibling:
|
|
181
|
-
onTreeAddChild:
|
|
182
|
-
}),
|
|
183
|
-
|
|
184
|
-
|
|
166
|
+
} = Ni(), {
|
|
167
|
+
width: ba = Ci,
|
|
168
|
+
header: We = bi,
|
|
169
|
+
containerClassName: je = gi,
|
|
170
|
+
additionalButtons: Xe,
|
|
171
|
+
...Ke
|
|
172
|
+
} = a ?? {}, [oe, qe] = Va(ba), { renameTriggerView: ae, onGridRename: ga, onTreeRename: Ye } = Ja({ onRename: Eo }), {
|
|
173
|
+
createFolderTriggerView: Je,
|
|
174
|
+
onGridCreateSiblingFolder: fa,
|
|
175
|
+
onTreeCreateSiblingFolder: Qe,
|
|
176
|
+
onGridCreateChildFolder: Da,
|
|
177
|
+
onTreeCreateChildFolder: Ze
|
|
178
|
+
} = Ai({
|
|
179
|
+
onGridAddSibling: No,
|
|
180
|
+
onGridAddChild: Io,
|
|
181
|
+
onTreeAddSibling: So,
|
|
182
|
+
onTreeAddChild: vo
|
|
183
|
+
}), Ce = _a(null), Fa = (e) => {
|
|
184
|
+
Ce.current === null && (Ce.current = requestAnimationFrame(() => {
|
|
185
|
+
qe(e), Ce.current = null;
|
|
185
186
|
}));
|
|
186
187
|
}, {
|
|
187
|
-
columnDefs:
|
|
188
|
-
filterable:
|
|
189
|
-
dateLocale:
|
|
190
|
-
dateOptions:
|
|
191
|
-
selectionMode:
|
|
192
|
-
wrapCustomCellRenderers:
|
|
193
|
-
visibleColumns:
|
|
188
|
+
columnDefs: Ta,
|
|
189
|
+
filterable: wa = !0,
|
|
190
|
+
dateLocale: ya,
|
|
191
|
+
dateOptions: Ra,
|
|
192
|
+
selectionMode: $e,
|
|
193
|
+
wrapCustomCellRenderers: eo,
|
|
194
|
+
visibleColumns: oo = fi,
|
|
194
195
|
allowDisabledContextMenu: ie = !1,
|
|
195
196
|
...M
|
|
196
|
-
} = L ?? {}, { containerRef:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
),
|
|
197
|
+
} = L ?? {}, { containerRef: Ma, isBelowBreakpoint: s } = $a(
|
|
198
|
+
Fo,
|
|
199
|
+
To
|
|
200
|
+
), Pa = f(() => Q ? [
|
|
200
201
|
k.Name,
|
|
201
202
|
k.Path,
|
|
202
203
|
k.Actions
|
|
203
|
-
] :
|
|
204
|
-
(e, n, t) =>
|
|
204
|
+
] : oo, [Q, oo]), be = r(
|
|
205
|
+
(e, n, t) => Si(
|
|
205
206
|
e,
|
|
206
207
|
n,
|
|
207
208
|
t,
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
Ue,
|
|
210
|
+
He
|
|
210
211
|
),
|
|
211
|
-
[
|
|
212
|
+
[He, Ue]
|
|
212
213
|
), ne = r(
|
|
213
|
-
(e, n, t) => !!
|
|
214
|
-
[
|
|
214
|
+
(e, n, t) => !!me?.(e) || !!be(e, n, t),
|
|
215
|
+
[be, me]
|
|
215
216
|
), S = f(() => {
|
|
216
217
|
const e = /* @__PURE__ */ new Set();
|
|
217
218
|
for (const n of y)
|
|
218
219
|
ne(n, x, re) && e.add(n.path);
|
|
219
220
|
return e;
|
|
220
|
-
}, [x, re, y, ne]),
|
|
221
|
+
}, [x, re, y, ne]), ao = r(
|
|
221
222
|
(e) => {
|
|
222
|
-
const n = [], t = [], d = !e.parentPath, v = u?.test(
|
|
223
|
-
|
|
224
|
-
);
|
|
225
|
-
return a?.actionLabels && (a.actionLabels[i.AddSibling] && e.nodeType === fe.FOLDER && !d && n.push({
|
|
223
|
+
const n = [], t = [], d = !e.parentPath, v = !pe && u?.test(e.name);
|
|
224
|
+
return a?.actionLabels && (a.actionLabels[i.AddSibling] && e.nodeType === De.FOLDER && !d && n.push({
|
|
226
225
|
key: "addSibling",
|
|
227
226
|
label: a.actionLabels[i.AddSibling],
|
|
228
227
|
icon: /* @__PURE__ */ o(
|
|
229
|
-
|
|
228
|
+
Wa,
|
|
230
229
|
{
|
|
231
230
|
width: l.size,
|
|
232
231
|
height: l.size,
|
|
233
232
|
className: "text-secondary"
|
|
234
233
|
}
|
|
235
234
|
),
|
|
236
|
-
onClick: () =>
|
|
237
|
-
}), a.actionLabels[i.AddChild] && e.nodeType ===
|
|
235
|
+
onClick: () => Qe([e])
|
|
236
|
+
}), a.actionLabels[i.AddChild] && e.nodeType === De.FOLDER && !v && n.push({
|
|
238
237
|
key: "addChild",
|
|
239
238
|
label: a.actionLabels[i.AddChild],
|
|
240
239
|
icon: /* @__PURE__ */ o(
|
|
241
|
-
|
|
240
|
+
Ua,
|
|
242
241
|
{
|
|
243
242
|
width: l.size,
|
|
244
243
|
height: l.size,
|
|
245
244
|
className: "text-secondary"
|
|
246
245
|
}
|
|
247
246
|
),
|
|
248
|
-
onClick: () =>
|
|
247
|
+
onClick: () => Ze([e])
|
|
249
248
|
}), a.actionLabels[i.Duplicate] && !d && !v && t.push({
|
|
250
249
|
key: "duplicate",
|
|
251
250
|
label: a.actionLabels[i.Duplicate],
|
|
252
|
-
icon: /* @__PURE__ */ o(
|
|
251
|
+
icon: /* @__PURE__ */ o(Aa, { ...l, className: "text-secondary" }),
|
|
253
252
|
onClick: () => B([e])
|
|
254
253
|
}), a.actionLabels[i.Copy] && !d && !v && t.push({
|
|
255
254
|
key: p.Copy,
|
|
256
255
|
label: a.actionLabels[i.Copy],
|
|
257
256
|
icon: /* @__PURE__ */ o(
|
|
258
|
-
|
|
257
|
+
ja,
|
|
259
258
|
{
|
|
260
259
|
width: l.size,
|
|
261
260
|
height: l.size,
|
|
@@ -263,13 +262,13 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
263
262
|
}
|
|
264
263
|
),
|
|
265
264
|
onClick: () => {
|
|
266
|
-
z([e]),
|
|
265
|
+
z([e]), b(p.Copy);
|
|
267
266
|
}
|
|
268
267
|
}), a.actionLabels[i.Move] && !d && !v && t.push({
|
|
269
268
|
key: p.Move,
|
|
270
269
|
label: a.actionLabels[i.Move],
|
|
271
270
|
icon: /* @__PURE__ */ o(
|
|
272
|
-
|
|
271
|
+
Xa,
|
|
273
272
|
{
|
|
274
273
|
width: l.size,
|
|
275
274
|
height: l.size,
|
|
@@ -277,45 +276,45 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
277
276
|
}
|
|
278
277
|
),
|
|
279
278
|
onClick: () => {
|
|
280
|
-
G([e]),
|
|
279
|
+
G([e]), b(p.Move);
|
|
281
280
|
}
|
|
282
281
|
}), a.actionLabels[i.Download] && !d && !v && t.push({
|
|
283
282
|
key: "download",
|
|
284
283
|
label: a.actionLabels[i.Download],
|
|
285
|
-
icon: /* @__PURE__ */ o(
|
|
284
|
+
icon: /* @__PURE__ */ o(ka, { ...l, className: "text-secondary" }),
|
|
286
285
|
onClick: () => V([e])
|
|
287
|
-
}), a.actionLabels[i.ManagePermissions] && typeof $ == "function" && e.nodeType ===
|
|
286
|
+
}), a.actionLabels[i.ManagePermissions] && typeof $ == "function" && e.nodeType === De.FOLDER && !d && t.push({
|
|
288
287
|
key: i.ManagePermissions,
|
|
289
288
|
label: a.actionLabels[i.ManagePermissions],
|
|
290
289
|
icon: /* @__PURE__ */ o(
|
|
291
|
-
|
|
290
|
+
Oa,
|
|
292
291
|
{
|
|
293
292
|
...l,
|
|
294
293
|
className: "text-secondary"
|
|
295
294
|
}
|
|
296
295
|
),
|
|
297
296
|
onClick: () => $?.(e.path)
|
|
298
|
-
}), a.actionLabels[i.Delete] && e.permissions?.includes(
|
|
297
|
+
}), a.actionLabels[i.Delete] && e.permissions?.includes(ei.WRITE) && !d && t.push({
|
|
299
298
|
key: "delete",
|
|
300
299
|
label: a.actionLabels[i.Delete],
|
|
301
|
-
icon: /* @__PURE__ */ o(
|
|
300
|
+
icon: /* @__PURE__ */ o(xa, { ...l, className: "text-secondary" }),
|
|
302
301
|
onClick: () => _([e], e.parentPath ?? "")
|
|
303
302
|
}), a.actionLabels[i.Rename] && !d && t.push({
|
|
304
303
|
key: "rename",
|
|
305
304
|
label: a.actionLabels[i.Rename],
|
|
306
305
|
icon: /* @__PURE__ */ o(
|
|
307
|
-
|
|
306
|
+
Ea,
|
|
308
307
|
{
|
|
309
308
|
...l,
|
|
310
309
|
className: "text-secondary"
|
|
311
310
|
}
|
|
312
311
|
),
|
|
313
|
-
onClick: () =>
|
|
312
|
+
onClick: () => Ye(e.path)
|
|
314
313
|
}), a.actionLabels[i.Unshare] && Z?.includes(e.path) && !d && t.push({
|
|
315
314
|
key: "unshare",
|
|
316
315
|
label: a.actionLabels[i.Unshare],
|
|
317
316
|
icon: /* @__PURE__ */ o(
|
|
318
|
-
|
|
317
|
+
Ka,
|
|
319
318
|
{
|
|
320
319
|
width: l.size,
|
|
321
320
|
height: l.size,
|
|
@@ -327,7 +326,7 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
327
326
|
key: i.RemoveAccess,
|
|
328
327
|
label: a.actionLabels[i.RemoveAccess],
|
|
329
328
|
icon: /* @__PURE__ */ o(
|
|
330
|
-
|
|
329
|
+
za,
|
|
331
330
|
{
|
|
332
331
|
size: l.size,
|
|
333
332
|
className: "text-secondary"
|
|
@@ -336,45 +335,46 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
336
335
|
onClick: () => J?.([e])
|
|
337
336
|
})), n.length ? t.length === 0 ? n : n.length === 0 ? t : [
|
|
338
337
|
...n,
|
|
339
|
-
{ key: "divider", type:
|
|
338
|
+
{ key: "divider", type: oi.Divider },
|
|
340
339
|
...t
|
|
341
340
|
] : t;
|
|
342
341
|
},
|
|
343
342
|
[
|
|
344
343
|
a?.actionLabels,
|
|
345
344
|
u,
|
|
345
|
+
pe,
|
|
346
346
|
$,
|
|
347
347
|
B,
|
|
348
348
|
z,
|
|
349
|
-
|
|
349
|
+
b,
|
|
350
350
|
G,
|
|
351
351
|
V,
|
|
352
|
-
|
|
352
|
+
Ye,
|
|
353
353
|
Y,
|
|
354
354
|
J,
|
|
355
355
|
Z,
|
|
356
356
|
m,
|
|
357
357
|
_,
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
Ze,
|
|
359
|
+
Qe
|
|
360
360
|
]
|
|
361
|
-
),
|
|
361
|
+
), io = f(() => {
|
|
362
362
|
const e = /* @__PURE__ */ new Set();
|
|
363
363
|
return de.forEach((n, t) => e.add(t)), e;
|
|
364
|
-
}, [de]),
|
|
364
|
+
}, [de]), no = r(
|
|
365
365
|
(e, n) => {
|
|
366
|
-
|
|
366
|
+
ye(e), Pe?.(n);
|
|
367
367
|
},
|
|
368
|
-
[
|
|
369
|
-
),
|
|
368
|
+
[Pe, ye]
|
|
369
|
+
), to = Pi({
|
|
370
370
|
selectedFiles: de,
|
|
371
371
|
actionLabels: F?.actionLabels,
|
|
372
372
|
onDuplicate: B,
|
|
373
373
|
onCopy: (e) => {
|
|
374
|
-
z(e),
|
|
374
|
+
z(e), b(p.Copy);
|
|
375
375
|
},
|
|
376
376
|
onMove: (e) => {
|
|
377
|
-
G(e),
|
|
377
|
+
G(e), b(p.Move);
|
|
378
378
|
},
|
|
379
379
|
onDownload: V,
|
|
380
380
|
onDelete: _,
|
|
@@ -385,29 +385,29 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
385
385
|
sharedByMePaths: m,
|
|
386
386
|
onClearSelection: ce,
|
|
387
387
|
forbiddenSymbolsRegExp: u
|
|
388
|
-
}),
|
|
388
|
+
}), lo = r(
|
|
389
389
|
(e) => {
|
|
390
390
|
N?.onTabChange?.(e), R();
|
|
391
391
|
},
|
|
392
392
|
[N, R]
|
|
393
|
-
),
|
|
393
|
+
), La = r(() => N && h.size === 0 ? /* @__PURE__ */ A(
|
|
394
394
|
"div",
|
|
395
395
|
{
|
|
396
|
-
className:
|
|
396
|
+
className: Co,
|
|
397
397
|
role: "toolbar",
|
|
398
398
|
"aria-label": "File Manager Toolbar",
|
|
399
399
|
children: [
|
|
400
400
|
O,
|
|
401
401
|
/* @__PURE__ */ o(
|
|
402
|
-
|
|
402
|
+
pi,
|
|
403
403
|
{
|
|
404
404
|
...N,
|
|
405
|
-
onTabChange:
|
|
405
|
+
onTabChange: lo,
|
|
406
406
|
areHiddenFilesVisible: E,
|
|
407
|
-
onToggleHiddenFiles:
|
|
408
|
-
isNewButtonVisible:
|
|
409
|
-
isNewButtonDisabled:
|
|
410
|
-
newButtonDropdownItems:
|
|
407
|
+
onToggleHiddenFiles: Te,
|
|
408
|
+
isNewButtonVisible: ke,
|
|
409
|
+
isNewButtonDisabled: Oe,
|
|
410
|
+
newButtonDropdownItems: Ae
|
|
411
411
|
}
|
|
412
412
|
)
|
|
413
413
|
]
|
|
@@ -415,70 +415,70 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
415
415
|
) : h.size > 0 && F ? /* @__PURE__ */ o(
|
|
416
416
|
"div",
|
|
417
417
|
{
|
|
418
|
-
className:
|
|
418
|
+
className: Co,
|
|
419
419
|
role: "toolbar",
|
|
420
420
|
"aria-label": "File Manager Toolbar",
|
|
421
421
|
children: /* @__PURE__ */ o(
|
|
422
|
-
|
|
422
|
+
si,
|
|
423
423
|
{
|
|
424
424
|
...F,
|
|
425
425
|
selectedCount: h.size,
|
|
426
426
|
onClearSelection: ce,
|
|
427
|
-
actions:
|
|
427
|
+
actions: to
|
|
428
428
|
}
|
|
429
429
|
)
|
|
430
430
|
}
|
|
431
431
|
) : null, [
|
|
432
|
-
|
|
432
|
+
lo,
|
|
433
433
|
F,
|
|
434
434
|
h,
|
|
435
435
|
ce,
|
|
436
|
-
|
|
436
|
+
to,
|
|
437
437
|
E,
|
|
438
|
-
|
|
438
|
+
Te,
|
|
439
439
|
N,
|
|
440
|
-
Ae,
|
|
441
440
|
ke,
|
|
442
|
-
|
|
441
|
+
Oe,
|
|
442
|
+
Ae,
|
|
443
443
|
O
|
|
444
444
|
]);
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
Ha(
|
|
446
|
+
la,
|
|
447
447
|
() => ({
|
|
448
|
-
createFolder:
|
|
448
|
+
createFolder: ze
|
|
449
449
|
}),
|
|
450
|
-
[
|
|
450
|
+
[ze]
|
|
451
451
|
);
|
|
452
|
-
const
|
|
452
|
+
const Na = r(() => s ? null : /* @__PURE__ */ o(
|
|
453
453
|
"aside",
|
|
454
454
|
{
|
|
455
455
|
role: "region",
|
|
456
456
|
"aria-label": "File Manager Tree Navigation",
|
|
457
457
|
className: "min-h-0 min-w-0 h-full flex-none",
|
|
458
458
|
children: /* @__PURE__ */ o(
|
|
459
|
-
|
|
459
|
+
Za,
|
|
460
460
|
{
|
|
461
461
|
defaultWidth: oe,
|
|
462
462
|
width: oe,
|
|
463
|
-
onResizeStop:
|
|
464
|
-
onResize:
|
|
465
|
-
minWidth:
|
|
466
|
-
maxWidth:
|
|
463
|
+
onResizeStop: qe,
|
|
464
|
+
onResize: Fa,
|
|
465
|
+
minWidth: Fi,
|
|
466
|
+
maxWidth: Di,
|
|
467
467
|
enabled: !se,
|
|
468
468
|
children: /* @__PURE__ */ o(
|
|
469
|
-
|
|
469
|
+
qa,
|
|
470
470
|
{
|
|
471
471
|
width: oe,
|
|
472
|
-
title:
|
|
473
|
-
containerClassName:
|
|
472
|
+
title: We,
|
|
473
|
+
containerClassName: je,
|
|
474
474
|
titleClassName: "dial-body-text text-primary",
|
|
475
|
-
additionalButtons:
|
|
475
|
+
additionalButtons: Xe,
|
|
476
476
|
isOpened: !se,
|
|
477
|
-
onToggle:
|
|
477
|
+
onToggle: we,
|
|
478
478
|
children: /* @__PURE__ */ o(
|
|
479
|
-
|
|
479
|
+
hi,
|
|
480
480
|
{
|
|
481
|
-
...
|
|
481
|
+
...Ke,
|
|
482
482
|
items: P,
|
|
483
483
|
rootItemPath: c?.path,
|
|
484
484
|
rootItemLabel: c?.label,
|
|
@@ -486,14 +486,14 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
486
486
|
sharedByMePaths: m,
|
|
487
487
|
forbiddenSymbolsRegExp: u,
|
|
488
488
|
forbiddenSymbolsTooltip: X,
|
|
489
|
-
onItemClick:
|
|
489
|
+
onItemClick: Re,
|
|
490
490
|
areHiddenFilesVisible: E,
|
|
491
|
-
getContextMenuItems:
|
|
492
|
-
renamedPath: ae ===
|
|
491
|
+
getContextMenuItems: ao,
|
|
492
|
+
renamedPath: ae === ii.Tree ? g : void 0,
|
|
493
493
|
onRenameSave: H,
|
|
494
494
|
onRenameCancel: U,
|
|
495
495
|
onRenameValidate: W,
|
|
496
|
-
createdFolderPath:
|
|
496
|
+
createdFolderPath: Je === ai.Tree ? j : null,
|
|
497
497
|
onCreateFolderCancel: R,
|
|
498
498
|
onCreateFolderSave: q,
|
|
499
499
|
newFolderDefaultName: ee
|
|
@@ -508,11 +508,11 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
508
508
|
s,
|
|
509
509
|
oe,
|
|
510
510
|
se,
|
|
511
|
-
Ue,
|
|
512
511
|
We,
|
|
513
512
|
je,
|
|
514
|
-
Te,
|
|
515
513
|
Xe,
|
|
514
|
+
we,
|
|
515
|
+
Ke,
|
|
516
516
|
P,
|
|
517
517
|
c?.path,
|
|
518
518
|
c?.label,
|
|
@@ -520,12 +520,12 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
520
520
|
m,
|
|
521
521
|
u,
|
|
522
522
|
X,
|
|
523
|
-
|
|
523
|
+
Re,
|
|
524
524
|
E,
|
|
525
|
-
|
|
525
|
+
ao,
|
|
526
526
|
ae,
|
|
527
|
-
|
|
528
|
-
|
|
527
|
+
Je,
|
|
528
|
+
g,
|
|
529
529
|
H,
|
|
530
530
|
U,
|
|
531
531
|
W,
|
|
@@ -533,75 +533,76 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
533
533
|
R,
|
|
534
534
|
q,
|
|
535
535
|
ee
|
|
536
|
-
]),
|
|
536
|
+
]), ro = Ii({
|
|
537
537
|
actionLabels: L?.actionLabels,
|
|
538
538
|
onDuplicate: (e) => B([e]),
|
|
539
539
|
onCopy: (e) => {
|
|
540
|
-
z([e]),
|
|
540
|
+
z([e]), b(p.Copy);
|
|
541
541
|
},
|
|
542
542
|
onMove: (e) => {
|
|
543
|
-
G([e]),
|
|
543
|
+
G([e]), b(p.Move);
|
|
544
544
|
},
|
|
545
545
|
onDownload: (e) => V([e]),
|
|
546
546
|
onRename: ga,
|
|
547
547
|
onDelete: (e, n) => _([e], n),
|
|
548
|
-
onInfo: (e) =>
|
|
548
|
+
onInfo: (e) => aa(e),
|
|
549
549
|
onUnshare: (e) => Y?.([e]),
|
|
550
550
|
onRemoveAccess: (e) => J?.([e]),
|
|
551
551
|
sharedWithMeIds: Z,
|
|
552
552
|
sharedByMePaths: m,
|
|
553
553
|
onManagePermissions: (e) => $?.(e),
|
|
554
|
-
onPreview: (e) =>
|
|
555
|
-
onOpenInNewTab: (e) =>
|
|
556
|
-
previewExtensions:
|
|
557
|
-
isRenameFileAvailable:
|
|
558
|
-
isDuplicateFolderAvailable:
|
|
554
|
+
onPreview: (e) => sa?.(e),
|
|
555
|
+
onOpenInNewTab: (e) => da?.(e),
|
|
556
|
+
previewExtensions: ca,
|
|
557
|
+
isRenameFileAvailable: pa,
|
|
558
|
+
isDuplicateFolderAvailable: ma,
|
|
559
559
|
forbiddenSymbolsRegExp: u,
|
|
560
|
-
|
|
561
|
-
|
|
560
|
+
skipForbiddenSymbolsCheckForActions: pe,
|
|
561
|
+
onGridCreateSiblingFolder: fa,
|
|
562
|
+
onGridCreateChildFolder: Da
|
|
562
563
|
}), ge = r(
|
|
563
564
|
(e) => {
|
|
564
|
-
const n =
|
|
565
|
-
return n ?
|
|
565
|
+
const n = vi(P, e.path);
|
|
566
|
+
return n ? ro(n) : [];
|
|
566
567
|
},
|
|
567
|
-
[P,
|
|
568
|
-
),
|
|
568
|
+
[P, ro]
|
|
569
|
+
), Ia = r(
|
|
569
570
|
(e, n, t) => ie ? !1 : ne(e, n, t),
|
|
570
571
|
[ie, ne]
|
|
571
|
-
), { actionsColumnDef:
|
|
572
|
+
), { actionsColumnDef: Sa } = Ya({
|
|
572
573
|
getContextMenuItems: ge,
|
|
573
|
-
isRowDisabled:
|
|
574
|
+
isRowDisabled: Ia,
|
|
574
575
|
allowedFileTypes: x,
|
|
575
|
-
buttonClassName: s ? "" :
|
|
576
|
-
}), { columnDefs:
|
|
577
|
-
userColumnDefs:
|
|
578
|
-
filterable:
|
|
579
|
-
dateLocale:
|
|
580
|
-
dateOptions:
|
|
581
|
-
effectiveVisibleColumns:
|
|
576
|
+
buttonClassName: s ? "" : Mi
|
|
577
|
+
}), { columnDefs: fe } = Li({
|
|
578
|
+
userColumnDefs: Ta,
|
|
579
|
+
filterable: wa,
|
|
580
|
+
dateLocale: ya,
|
|
581
|
+
dateOptions: Ra,
|
|
582
|
+
effectiveVisibleColumns: Pa,
|
|
582
583
|
isCompactView: s,
|
|
583
584
|
hasActions: !!L?.actionLabels,
|
|
584
|
-
actionsColumnDef:
|
|
585
|
+
actionsColumnDef: Sa,
|
|
585
586
|
rootItemLabel: c?.label,
|
|
586
587
|
rootItemPath: c?.path
|
|
587
|
-
}),
|
|
588
|
+
}), so = r(
|
|
588
589
|
(e) => {
|
|
589
|
-
e.colDef.colId === "ag-Grid-SelectionColumn" || e.colDef.colId === k.Actions ||
|
|
590
|
+
e.colDef.colId === "ag-Grid-SelectionColumn" || e.colDef.colId === k.Actions || g && e.data?.path === g || e.data?.isTemporary || he && he.includes(
|
|
590
591
|
e.colDef.colId
|
|
591
|
-
) || e.data &&
|
|
592
|
+
) || e.data && Me(e.data);
|
|
592
593
|
},
|
|
593
|
-
[
|
|
594
|
-
),
|
|
594
|
+
[g, Me, he]
|
|
595
|
+
), co = r(
|
|
595
596
|
() => /* @__PURE__ */ o(
|
|
596
|
-
|
|
597
|
+
ni,
|
|
597
598
|
{
|
|
598
|
-
title:
|
|
599
|
-
description:
|
|
599
|
+
title: Ve,
|
|
600
|
+
description: _e,
|
|
600
601
|
descriptionClassName: "text-sm",
|
|
601
602
|
containerClassName: "gap-3 size-full bg-layer-2 border rounded-[4px] border-primary",
|
|
602
603
|
titleClassName: "mt-2 !text-lg",
|
|
603
|
-
icon:
|
|
604
|
-
|
|
604
|
+
icon: Be || /* @__PURE__ */ o(
|
|
605
|
+
Ga,
|
|
605
606
|
{
|
|
606
607
|
size: 100,
|
|
607
608
|
stroke: 0.5,
|
|
@@ -610,20 +611,20 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
610
611
|
)
|
|
611
612
|
}
|
|
612
613
|
),
|
|
613
|
-
[
|
|
614
|
-
),
|
|
615
|
-
() =>
|
|
614
|
+
[_e, Be, Ve]
|
|
615
|
+
), po = f(() => (e) => e.path, []), mo = f(
|
|
616
|
+
() => Ba(
|
|
616
617
|
"min-h-[248px] overflow-auto md:min-h-[266px]",
|
|
617
618
|
I ? "border border-dashed border-accent-primary" : "",
|
|
618
619
|
K && !I ? "border border-dashed border-primary" : ""
|
|
619
620
|
),
|
|
620
621
|
[I, K]
|
|
621
|
-
),
|
|
622
|
+
), ho = f(
|
|
622
623
|
() => ({
|
|
624
|
+
headerHeight: bo,
|
|
625
|
+
rowHeight: bo,
|
|
623
626
|
...M.additionalGridOptions,
|
|
624
|
-
onCellClicked:
|
|
625
|
-
headerHeight: Co,
|
|
626
|
-
rowHeight: Co,
|
|
627
|
+
onCellClicked: so,
|
|
627
628
|
rowClass: "group/grid-row",
|
|
628
629
|
defaultColDef: {
|
|
629
630
|
...M.additionalGridOptions?.defaultColDef,
|
|
@@ -632,69 +633,69 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
632
633
|
context: {
|
|
633
634
|
cancelFolderCreation: R,
|
|
634
635
|
saveFolderCreation: q,
|
|
635
|
-
getDisplayName:
|
|
636
|
+
getDisplayName: ve,
|
|
636
637
|
onRenameCancel: U,
|
|
637
638
|
onRenameSave: H,
|
|
638
639
|
onRenameValidate: W,
|
|
639
640
|
renameTriggerView: ae,
|
|
640
|
-
validateFolderName:
|
|
641
|
-
renamedItem:
|
|
642
|
-
renamedPath:
|
|
641
|
+
validateFolderName: Ee,
|
|
642
|
+
renamedItem: Se,
|
|
643
|
+
renamedPath: g,
|
|
643
644
|
createdFolderPath: j,
|
|
644
|
-
newFolderTempId:
|
|
645
|
+
newFolderTempId: xe,
|
|
645
646
|
sharedByMePaths: m,
|
|
646
647
|
selectedPaths: h,
|
|
647
648
|
disabledRowIds: S,
|
|
648
649
|
forbiddenSymbolsRegExp: u,
|
|
649
650
|
forbiddenSymbolsTooltip: X,
|
|
650
|
-
hideSearchPathItemName:
|
|
651
|
+
hideSearchPathItemName: ue,
|
|
651
652
|
newFolderDefaultName: ee,
|
|
652
653
|
filesLoading: D
|
|
653
654
|
}
|
|
654
655
|
}),
|
|
655
656
|
[
|
|
656
657
|
M.additionalGridOptions,
|
|
657
|
-
|
|
658
|
+
so,
|
|
658
659
|
le?.searchable,
|
|
659
660
|
R,
|
|
660
661
|
q,
|
|
661
|
-
|
|
662
|
+
ve,
|
|
662
663
|
U,
|
|
663
664
|
H,
|
|
664
665
|
W,
|
|
665
666
|
ae,
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
667
|
+
Ee,
|
|
668
|
+
Se,
|
|
669
|
+
g,
|
|
669
670
|
j,
|
|
670
|
-
|
|
671
|
+
xe,
|
|
671
672
|
m,
|
|
672
673
|
h,
|
|
673
674
|
S,
|
|
674
675
|
u,
|
|
675
676
|
X,
|
|
676
|
-
|
|
677
|
+
ue,
|
|
677
678
|
ee,
|
|
678
679
|
D
|
|
679
680
|
]
|
|
680
|
-
),
|
|
681
|
-
() => y.length === 0 && !Q && !D ?
|
|
682
|
-
|
|
681
|
+
), va = f(
|
|
682
|
+
() => y.length === 0 && !Q && !D ? co() : /* @__PURE__ */ o(
|
|
683
|
+
Qa,
|
|
683
684
|
{
|
|
684
|
-
columnDefs:
|
|
685
|
+
columnDefs: fe,
|
|
685
686
|
rowData: y,
|
|
686
|
-
getRowId:
|
|
687
|
-
loading: D ||
|
|
687
|
+
getRowId: po,
|
|
688
|
+
loading: D || Ge,
|
|
688
689
|
getContextMenuItems: ge,
|
|
689
690
|
withoutHeaderBorders: s,
|
|
690
|
-
onGridApiChange:
|
|
691
|
-
className:
|
|
691
|
+
onGridApiChange: Le,
|
|
692
|
+
className: mo,
|
|
692
693
|
...M,
|
|
693
|
-
selectionMode:
|
|
694
|
-
wrapCustomCellRenderers:
|
|
695
|
-
additionalGridOptions:
|
|
696
|
-
selectedRowIds:
|
|
697
|
-
onSelectionChange:
|
|
694
|
+
selectionMode: $e,
|
|
695
|
+
wrapCustomCellRenderers: eo,
|
|
696
|
+
additionalGridOptions: ho,
|
|
697
|
+
selectedRowIds: io,
|
|
698
|
+
onSelectionChange: no,
|
|
698
699
|
wrapperBorder: !I && !K,
|
|
699
700
|
disabledRowIds: S,
|
|
700
701
|
allowDisabledContextMenu: ie
|
|
@@ -704,31 +705,31 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
704
705
|
y,
|
|
705
706
|
Q,
|
|
706
707
|
D,
|
|
707
|
-
so,
|
|
708
|
-
be,
|
|
709
708
|
co,
|
|
710
|
-
|
|
709
|
+
fe,
|
|
710
|
+
po,
|
|
711
|
+
Ge,
|
|
711
712
|
ge,
|
|
712
713
|
s,
|
|
713
|
-
|
|
714
|
-
|
|
714
|
+
Le,
|
|
715
|
+
mo,
|
|
715
716
|
M,
|
|
716
|
-
Ze,
|
|
717
717
|
$e,
|
|
718
|
-
|
|
719
|
-
|
|
718
|
+
eo,
|
|
719
|
+
ho,
|
|
720
720
|
io,
|
|
721
|
+
no,
|
|
721
722
|
I,
|
|
722
723
|
K,
|
|
723
724
|
S,
|
|
724
725
|
ie
|
|
725
726
|
]
|
|
726
727
|
);
|
|
727
|
-
return /* @__PURE__ */ o("section", { ref:
|
|
728
|
+
return /* @__PURE__ */ o("section", { ref: Ma, className: "size-full", children: /* @__PURE__ */ A(
|
|
728
729
|
"div",
|
|
729
730
|
{
|
|
730
731
|
className: te(
|
|
731
|
-
|
|
732
|
+
Ri,
|
|
732
733
|
{
|
|
733
734
|
"gap-3 pt-4": F && h.size > 0,
|
|
734
735
|
"gap-4 p-3 pt-4": s,
|
|
@@ -737,27 +738,27 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
737
738
|
go
|
|
738
739
|
),
|
|
739
740
|
children: [
|
|
740
|
-
|
|
741
|
-
/* @__PURE__ */ A("div", { className: te(
|
|
742
|
-
|
|
741
|
+
La(),
|
|
742
|
+
/* @__PURE__ */ A("div", { className: te(yi, ha), children: [
|
|
743
|
+
Na(),
|
|
743
744
|
/* @__PURE__ */ A(
|
|
744
745
|
"div",
|
|
745
746
|
{
|
|
746
|
-
className: te(
|
|
747
|
+
className: te(wi, {
|
|
747
748
|
"gap-3": s
|
|
748
749
|
}),
|
|
749
750
|
children: [
|
|
750
|
-
|
|
751
|
-
|
|
751
|
+
fo && /* @__PURE__ */ o(
|
|
752
|
+
ci,
|
|
752
753
|
{
|
|
753
754
|
...le ?? {},
|
|
754
755
|
makeHref: (e) => e.join("/"),
|
|
755
756
|
path: w,
|
|
756
|
-
onItemClick:
|
|
757
|
+
onItemClick: yo,
|
|
757
758
|
rootItemPath: c?.path,
|
|
758
759
|
rootItemLabel: c?.label,
|
|
759
|
-
value:
|
|
760
|
-
onSearchChange:
|
|
760
|
+
value: wo,
|
|
761
|
+
onSearchChange: Ro,
|
|
761
762
|
isCompactView: s,
|
|
762
763
|
labelClassName: "dial-tiny-text"
|
|
763
764
|
}
|
|
@@ -767,20 +768,20 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
767
768
|
{
|
|
768
769
|
role: "region",
|
|
769
770
|
"aria-label": "File Manager Grid View",
|
|
770
|
-
className: te(
|
|
771
|
-
onDragEnter:
|
|
772
|
-
onDragLeave:
|
|
773
|
-
onDragOver:
|
|
774
|
-
onDrop:
|
|
771
|
+
className: te(Ti, "relative"),
|
|
772
|
+
onDragEnter: zo,
|
|
773
|
+
onDragLeave: Go,
|
|
774
|
+
onDragOver: Bo,
|
|
775
|
+
onDrop: Vo,
|
|
775
776
|
children: [
|
|
776
|
-
|
|
777
|
+
va,
|
|
777
778
|
/* @__PURE__ */ o(
|
|
778
|
-
|
|
779
|
+
li,
|
|
779
780
|
{
|
|
780
781
|
disabledGridRowIds: S,
|
|
781
782
|
gridRows: y,
|
|
782
|
-
getDisabledTooltip:
|
|
783
|
-
getRowDisabledTooltip:
|
|
783
|
+
getDisabledTooltip: me,
|
|
784
|
+
getRowDisabledTooltip: be,
|
|
784
785
|
allowedFileTypes: x,
|
|
785
786
|
maxSelectableFileSize: re
|
|
786
787
|
}
|
|
@@ -793,79 +794,79 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
793
794
|
)
|
|
794
795
|
] }),
|
|
795
796
|
/* @__PURE__ */ o(
|
|
796
|
-
|
|
797
|
+
di,
|
|
797
798
|
{
|
|
798
|
-
...
|
|
799
|
-
open:
|
|
800
|
-
itemsToDelete:
|
|
801
|
-
onClose:
|
|
802
|
-
onConfirm:
|
|
799
|
+
...Do,
|
|
800
|
+
open: Oo,
|
|
801
|
+
itemsToDelete: xo,
|
|
802
|
+
onClose: Ao,
|
|
803
|
+
onConfirm: ko
|
|
803
804
|
}
|
|
804
805
|
),
|
|
805
806
|
/* @__PURE__ */ o(
|
|
806
|
-
|
|
807
|
+
ri,
|
|
807
808
|
{
|
|
808
809
|
...T,
|
|
809
|
-
open:
|
|
810
|
-
onClose:
|
|
810
|
+
open: Mo,
|
|
811
|
+
onClose: Ne,
|
|
811
812
|
onConfirm: () => {
|
|
812
813
|
const e = T?.destinationFolderPath ?? "/";
|
|
813
|
-
|
|
814
|
+
Ie === p.Copy ? Po(e) : Lo(e), Ne();
|
|
814
815
|
},
|
|
815
|
-
mode:
|
|
816
|
+
mode: Ie,
|
|
816
817
|
items: P,
|
|
817
818
|
rootItem: c,
|
|
818
819
|
gridOptions: {
|
|
819
|
-
columnDefs:
|
|
820
|
+
columnDefs: fe.filter(
|
|
820
821
|
(e) => e.colId !== k.Actions
|
|
821
822
|
),
|
|
822
823
|
loading: D
|
|
823
824
|
},
|
|
824
|
-
onUploadFiles:
|
|
825
|
-
onValidateUpload:
|
|
826
|
-
maxFileSize:
|
|
825
|
+
onUploadFiles: _o,
|
|
826
|
+
onValidateUpload: Ho,
|
|
827
|
+
maxFileSize: Uo,
|
|
827
828
|
path: T?.destinationFolderPath ?? T?.sourceFolder ?? w,
|
|
828
829
|
onPathChange: (e) => {
|
|
829
830
|
T?.setDestinationFolderPath?.(e);
|
|
830
831
|
},
|
|
831
832
|
sourceFolder: T?.sourceFolder ?? w,
|
|
832
833
|
treeOptions: { header: a?.header },
|
|
833
|
-
onFolderPopupPathChange:
|
|
834
|
-
showHiddenFileSwitcher:
|
|
835
|
-
showCreateFolderButton:
|
|
836
|
-
hideSearchPathItemName:
|
|
834
|
+
onFolderPopupPathChange: ra,
|
|
835
|
+
showHiddenFileSwitcher: ua,
|
|
836
|
+
showCreateFolderButton: Ca,
|
|
837
|
+
hideSearchPathItemName: ue
|
|
837
838
|
}
|
|
838
839
|
),
|
|
839
840
|
/* @__PURE__ */ o(
|
|
840
|
-
|
|
841
|
+
uo,
|
|
841
842
|
{
|
|
842
|
-
...
|
|
843
|
-
open:
|
|
844
|
-
onClose:
|
|
845
|
-
onReplace:
|
|
846
|
-
onDuplicate:
|
|
847
|
-
onDecideForEach:
|
|
848
|
-
conflictingFiles:
|
|
843
|
+
...Fe,
|
|
844
|
+
open: jo,
|
|
845
|
+
onClose: qo,
|
|
846
|
+
onReplace: Xo,
|
|
847
|
+
onDuplicate: Ko,
|
|
848
|
+
onDecideForEach: Yo,
|
|
849
|
+
conflictingFiles: Wo
|
|
849
850
|
}
|
|
850
851
|
),
|
|
851
852
|
/* @__PURE__ */ o(
|
|
852
|
-
|
|
853
|
+
uo,
|
|
853
854
|
{
|
|
854
|
-
...
|
|
855
|
-
open:
|
|
856
|
-
onClose:
|
|
857
|
-
onReplace:
|
|
858
|
-
onDuplicate:
|
|
859
|
-
onDecideForEach:
|
|
860
|
-
conflictingFiles:
|
|
855
|
+
...Fe,
|
|
856
|
+
open: Qo,
|
|
857
|
+
onClose: ea,
|
|
858
|
+
onReplace: Zo,
|
|
859
|
+
onDuplicate: $o,
|
|
860
|
+
onDecideForEach: oa,
|
|
861
|
+
conflictingFiles: Jo
|
|
861
862
|
}
|
|
862
863
|
),
|
|
863
864
|
/* @__PURE__ */ o(
|
|
864
|
-
|
|
865
|
+
mi,
|
|
865
866
|
{
|
|
866
|
-
open:
|
|
867
|
-
onClose:
|
|
868
|
-
fileMetadata: C?.fileMetadata ??
|
|
867
|
+
open: ia,
|
|
868
|
+
onClose: ta,
|
|
869
|
+
fileMetadata: C?.fileMetadata ?? na,
|
|
869
870
|
loading: C?.loading,
|
|
870
871
|
header: C?.header,
|
|
871
872
|
nameLabel: C?.nameLabel,
|
|
@@ -882,6 +883,6 @@ const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai,
|
|
|
882
883
|
) });
|
|
883
884
|
};
|
|
884
885
|
export {
|
|
885
|
-
|
|
886
|
-
|
|
886
|
+
Dn as DialFileManager,
|
|
887
|
+
ki as DialFileManagerView
|
|
887
888
|
};
|