@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.
Files changed (250) hide show
  1. package/README.md +55 -2
  2. package/dist/CHANGELOG.md +84 -0
  3. package/dist/DateCellRenderer-BdUMSg-E.cjs +1 -0
  4. package/dist/{DateCellRenderer-Bu40QyHE.cjs → DateCellRenderer-CZNa4jVJ.cjs} +30 -30
  5. package/dist/IconButton-DHOFapLo.cjs +1 -0
  6. package/dist/{JsonEditor-qv1Z0dLX.cjs → JsonEditor-Bxui5wJH.cjs} +1 -1
  7. package/dist/{MarkdownEditor-DHn2pYOJ.cjs → MarkdownEditor-BKtFs714.cjs} +1 -1
  8. package/dist/MarkdownEditor-Bapd1ycU.cjs +1 -0
  9. package/dist/MarkdownEditorContainer-B5aHwoYF.cjs +1 -0
  10. package/dist/{Switch-CUKClcEz.cjs → Switch-DE6MrcqJ.cjs} +1 -1
  11. package/dist/components/Button/constants.js +9 -8
  12. package/dist/components/Dropdown/Dropdown.js +2 -2
  13. package/dist/components/Dropdown/DropdownSubMenuItem.js +1 -1
  14. package/dist/components/Dropdown/constants.js +7 -7
  15. package/dist/components/DropdownIcon/DropdownIcon.js +4 -4
  16. package/dist/components/FileManager/FileManager.js +373 -372
  17. package/dist/components/FileManager/FileManagerProvider.js +266 -264
  18. package/dist/components/FileManager/hooks/use-grid-context-menu.js +59 -59
  19. package/dist/components/MarkdownEditor/MarkdownEditor.js +23 -21
  20. package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +27 -25
  21. package/dist/components/New/Accordion/Accordion.js +86 -72
  22. package/dist/components/New/AutocompleteTagInput/AutocompleteTagInput.js +214 -0
  23. package/dist/components/New/AutocompleteTagInput/utils.js +11 -0
  24. package/dist/components/New/Avatar/Avatar.js +70 -0
  25. package/dist/components/New/Badge/Badge.js +45 -0
  26. package/dist/components/New/BottomSheet/BottomSheet.js +128 -0
  27. package/dist/components/New/Breadcrumbs/Breadcrumbs.js +159 -0
  28. package/dist/components/New/Breadcrumbs/constants.js +41 -0
  29. package/dist/components/New/Button/Button.js +32 -32
  30. package/dist/components/New/Button/ButtonWrappers.js +103 -37
  31. package/dist/components/New/Button/constants.js +3 -0
  32. package/dist/components/New/Button/utils.js +18 -8
  33. package/dist/components/New/ButtonDropdown/ButtonDropdown.js +27 -18
  34. package/dist/components/New/Calendar/Calendar.js +6 -6
  35. package/dist/components/New/Calendar/constants.js +5 -5
  36. package/dist/components/New/CaptionText/CaptionText.js +3 -3
  37. package/dist/components/New/CardShell/CardShell.js +2 -2
  38. package/dist/components/New/Checkbox/Checkbox.js +2 -2
  39. package/dist/components/New/Checkbox/CheckboxBox.js +2 -2
  40. package/dist/components/New/CloseButton/CloseButton.js +1 -1
  41. package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +2 -2
  42. package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +21 -25
  43. package/dist/components/New/ConfirmationPopup/constants.js +8 -11
  44. package/dist/components/New/Dropdown/Dropdown.js +99 -98
  45. package/dist/components/New/Dropdown/DropdownSubMenuItem.js +17 -17
  46. package/dist/components/New/Dropdown/constants.js +22 -17
  47. package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +2 -2
  48. package/dist/components/New/EntityIdentity/EntityIdentity.js +135 -0
  49. package/dist/components/New/FileDropzone/FileDropzone.js +2 -2
  50. package/dist/components/New/FileIcon/FileIcon.js +55 -0
  51. package/dist/components/New/FileIcon/constants.js +134 -0
  52. package/dist/components/New/FileIcon/icons/FileGlyph.js +150 -0
  53. package/dist/components/New/FileIcon/icons/FolderGlyph.js +50 -0
  54. package/dist/components/New/FileName/FileName.js +78 -0
  55. package/dist/components/New/FilterChips/FilterChips.js +2 -2
  56. package/dist/components/New/FolderName/FolderName.js +16 -0
  57. package/dist/components/New/FolderPath/FolderPath.js +1 -1
  58. package/dist/components/New/Grid/constants.js +14 -5
  59. package/dist/components/New/Highlight/Highlight.js +2 -2
  60. package/dist/components/New/IconButton/IconButton.js +30 -28
  61. package/dist/components/New/InfoButton/InfoButton.js +2 -2
  62. package/dist/components/New/InlineSelect/InlineSelect.js +75 -59
  63. package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +70 -66
  64. package/dist/components/New/InteractiveTooltip/constants.js +2 -2
  65. package/dist/components/New/Label/Label.js +2 -2
  66. package/dist/components/New/MarkdownEditor/MarkdownEditor.js +29 -27
  67. package/dist/components/New/MenuItem/MenuItem.js +2 -2
  68. package/dist/components/New/MenuItem/constants.js +1 -1
  69. package/dist/components/New/NoDataContent/NoDataContent.js +2 -2
  70. package/dist/components/New/Notification/Notification.js +37 -35
  71. package/dist/components/New/NumberInput/NumberInput.js +2 -2
  72. package/dist/components/New/PasswordInput/PasswordInput.js +2 -2
  73. package/dist/components/New/Popup/Popup.js +59 -57
  74. package/dist/components/New/Popup/constants.js +3 -3
  75. package/dist/components/New/Radio/Radio.js +2 -2
  76. package/dist/components/New/RadioGroup/RadioGroup.js +2 -2
  77. package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +2 -2
  78. package/dist/components/New/ResizableContainer/ResizableContainer.js +2 -2
  79. package/dist/components/New/SchemaRenderer/SchemaRenderer.js +164 -0
  80. package/dist/components/New/SchemaRenderer/components/SchemaAnyOfEditor.js +65 -0
  81. package/dist/components/New/SchemaRenderer/components/SchemaArrayEditor.js +109 -0
  82. package/dist/components/New/SchemaRenderer/components/SchemaField.js +83 -0
  83. package/dist/components/New/SchemaRenderer/components/SchemaFieldContent.js +72 -0
  84. package/dist/components/New/SchemaRenderer/components/SchemaJsonEditor.js +41 -0
  85. package/dist/components/New/SchemaRenderer/components/SchemaKeyValueEditor.js +250 -0
  86. package/dist/components/New/SchemaRenderer/components/SchemaObjectEditor.js +36 -0
  87. package/dist/components/New/SchemaRenderer/components/SchemaOneOfEditor.js +163 -0
  88. package/dist/components/New/SchemaRenderer/components/SchemaPrimitiveField.js +150 -0
  89. package/dist/components/New/SchemaRenderer/components/SchemaSection.js +135 -0
  90. package/dist/components/New/SchemaRenderer/context.js +17 -0
  91. package/dist/components/New/Search/Search.js +2 -2
  92. package/dist/components/New/SegmentedControl/SegmentedControl.js +4 -4
  93. package/dist/components/New/Select/CollapsedSelectTags.js +127 -0
  94. package/dist/components/New/Select/MultiSelectTags.js +18 -15
  95. package/dist/components/New/Select/Select.js +184 -173
  96. package/dist/components/New/Select/constants.js +23 -20
  97. package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +34 -0
  98. package/dist/components/New/SideDrawer/SideDrawer.js +148 -0
  99. package/dist/components/New/Slider/Slider.js +184 -91
  100. package/dist/components/New/Slider/utils.js +20 -0
  101. package/dist/components/New/Switch/Switch.js +2 -2
  102. package/dist/components/New/Tabs/Tabs.js +124 -66
  103. package/dist/components/New/Tag/Tag.js +2 -2
  104. package/dist/components/New/TagInput/TagInput.js +5 -3
  105. package/dist/components/New/Textarea/Textarea.js +21 -20
  106. package/dist/components/New/ToggleIconButton/ToggleIconButton.js +2 -2
  107. package/dist/components/New/Tooltip/TooltipContent.js +2 -2
  108. package/dist/components/New/Tooltip/constants.js +1 -1
  109. package/dist/components/New/TransferQueue/TransferQueue.js +124 -0
  110. package/dist/components/New/TransferQueue/TransferQueueHeader.js +71 -0
  111. package/dist/components/New/TransferQueue/TransferQueueRow.js +119 -0
  112. package/dist/components/New/TransferQueue/constants.js +24 -0
  113. package/dist/components/New/constants/overlay.js +17 -9
  114. package/dist/components/Popup/constants.js +8 -8
  115. package/dist/components/ProgressBar/ProgressBar.js +6 -6
  116. package/dist/components/SchemaRenderer/SchemaRenderer.js +16 -15
  117. package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +2 -2
  118. package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +1 -1
  119. package/dist/components/SchemaRenderer/components/SchemaField.js +23 -23
  120. package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +19 -19
  121. package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +2 -2
  122. package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +1 -1
  123. package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +13 -13
  124. package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +5 -5
  125. package/dist/components/Skeleton/Skeleton.js +2 -2
  126. package/dist/components/Spinner/Spinner.js +2 -2
  127. package/dist/components/Tooltip/TooltipContent.js +11 -11
  128. package/dist/components-manifest.json +1826 -109
  129. package/dist/constants/public-class-names.js +64 -3
  130. package/dist/{components/SchemaRenderer/types.js → constants/schema-renderer.js} +2 -7
  131. package/dist/dial-ui-kit.cjs +2 -2
  132. package/dist/dial-ui-kit.js +357 -311
  133. package/dist/editors.cjs +1 -1
  134. package/dist/file-manager.cjs +1 -1
  135. package/dist/grid.cjs +1 -1
  136. package/dist/index.css +2 -2
  137. package/dist/lazy-_W6FYhKg.cjs +1 -0
  138. package/dist/merge-classes-BEJXjzkx.cjs +1 -0
  139. package/dist/migration-guides/0.15.0/legacy-theme-variable-fallbacks-removal.md +69 -0
  140. package/dist/migration-guides/0.15.0/slider-redesign.md +110 -0
  141. package/dist/migration-guides/README.md +2 -0
  142. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +419 -399
  143. package/dist/src/components/FileManager/FileManager.d.ts +2 -0
  144. package/dist/src/components/FileManager/FileManagerContext.d.ts +1 -0
  145. package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +2 -1
  146. package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +2 -0
  147. package/dist/src/components/MarkdownEditor/MarkdownEditorContainer.d.ts +2 -0
  148. package/dist/src/components/New/Accordion/Accordion.d.ts +6 -1
  149. package/dist/src/components/New/AutocompleteTagInput/AutocompleteTagInput.d.ts +108 -0
  150. package/dist/src/components/New/AutocompleteTagInput/utils.d.ts +17 -0
  151. package/dist/src/components/New/AutocompleteTagInput/utils.spec.d.ts +1 -0
  152. package/dist/src/components/New/Avatar/Avatar.d.ts +55 -0
  153. package/dist/src/components/New/Badge/Badge.d.ts +47 -0
  154. package/dist/src/components/New/BottomSheet/BottomSheet.d.ts +84 -0
  155. package/dist/src/components/New/Breadcrumbs/Breadcrumbs.d.ts +94 -0
  156. package/dist/src/components/New/Breadcrumbs/constants.d.ts +60 -0
  157. package/dist/src/components/New/Button/Button.d.ts +4 -1
  158. package/dist/src/components/New/Button/ButtonWrappers.d.ts +21 -0
  159. package/dist/src/components/New/Button/utils.d.ts +15 -0
  160. package/dist/src/components/New/ButtonDropdown/ButtonDropdown.d.ts +4 -0
  161. package/dist/src/components/New/Calendar/constants.d.ts +1 -1
  162. package/dist/src/components/New/ConfirmationPopup/constants.d.ts +0 -1
  163. package/dist/src/components/New/Dropdown/Dropdown.d.ts +9 -1
  164. package/dist/src/components/New/Dropdown/constants.d.ts +3 -0
  165. package/dist/src/components/New/EntityIdentity/EntityIdentity.d.ts +85 -0
  166. package/dist/src/components/New/FileIcon/FileIcon.d.ts +61 -0
  167. package/dist/src/components/New/FileIcon/constants.d.ts +16 -0
  168. package/dist/src/components/New/FileIcon/icons/FileGlyph.d.ts +18 -0
  169. package/dist/src/components/New/FileIcon/icons/FolderGlyph.d.ts +17 -0
  170. package/dist/src/components/New/FileName/FileName.d.ts +79 -0
  171. package/dist/src/components/New/FolderName/FolderName.d.ts +37 -0
  172. package/dist/src/components/New/Grid/constants.d.ts +6 -4
  173. package/dist/src/components/New/InlineSelect/InlineSelect.d.ts +16 -1
  174. package/dist/src/components/New/InteractiveTooltip/InteractiveTooltip.d.ts +13 -2
  175. package/dist/src/components/New/InteractiveTooltip/constants.d.ts +5 -4
  176. package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +3 -0
  177. package/dist/src/components/New/Notification/Notification.d.ts +18 -0
  178. package/dist/src/components/New/Popup/Popup.d.ts +8 -1
  179. package/dist/src/components/New/Popup/constants.d.ts +1 -1
  180. package/dist/src/components/New/SchemaRenderer/SchemaRenderer.d.ts +38 -0
  181. package/dist/src/components/New/SchemaRenderer/components/SchemaAnyOfEditor.d.ts +37 -0
  182. package/dist/src/components/New/SchemaRenderer/components/SchemaArrayEditor.d.ts +35 -0
  183. package/dist/src/components/New/SchemaRenderer/components/SchemaField.d.ts +33 -0
  184. package/dist/src/components/New/SchemaRenderer/components/SchemaFieldContent.d.ts +30 -0
  185. package/dist/src/components/New/SchemaRenderer/components/SchemaJsonEditor.d.ts +29 -0
  186. package/dist/src/components/New/SchemaRenderer/components/SchemaKeyValueEditor.d.ts +37 -0
  187. package/dist/src/components/New/SchemaRenderer/components/SchemaObjectEditor.d.ts +32 -0
  188. package/dist/src/components/New/SchemaRenderer/components/SchemaOneOfEditor.d.ts +39 -0
  189. package/dist/src/components/New/SchemaRenderer/components/SchemaPrimitiveField.d.ts +38 -0
  190. package/dist/src/components/New/SchemaRenderer/components/SchemaSection.d.ts +39 -0
  191. package/dist/src/components/New/SchemaRenderer/context.d.ts +8 -0
  192. package/dist/src/components/New/SchemaRenderer/types.d.ts +76 -0
  193. package/dist/src/components/New/Select/CollapsedSelectTags.d.ts +22 -0
  194. package/dist/src/components/New/Select/MultiSelectTags.d.ts +5 -0
  195. package/dist/src/components/New/Select/Select.d.ts +9 -0
  196. package/dist/src/components/New/Select/constants.d.ts +3 -2
  197. package/dist/src/components/New/SharedEntityIndicator/SharedEntityIndicator.d.ts +35 -0
  198. package/dist/src/components/New/SideDrawer/SideDrawer.d.ts +100 -0
  199. package/dist/src/components/New/Slider/Slider.d.ts +29 -1
  200. package/dist/src/components/New/Slider/utils.d.ts +14 -0
  201. package/dist/src/components/New/Slider/utils.spec.d.ts +1 -0
  202. package/dist/src/components/New/Tabs/Tabs.d.ts +54 -6
  203. package/dist/src/components/New/Tooltip/constants.d.ts +5 -3
  204. package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +139 -0
  205. package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +16 -0
  206. package/dist/src/components/New/TransferQueue/TransferQueueRow.d.ts +10 -0
  207. package/dist/src/components/New/TransferQueue/constants.d.ts +6 -0
  208. package/dist/src/components/New/constants/overlay.d.ts +13 -0
  209. package/dist/src/components/Popup/constants.d.ts +1 -1
  210. package/dist/src/components/SchemaRenderer/types.d.ts +5 -93
  211. package/dist/src/components/SchemaRenderer/utils.d.ts +1 -17
  212. package/dist/src/constants/public-class-names.d.ts +64 -3
  213. package/dist/src/constants/schema-renderer.d.ts +2 -0
  214. package/dist/src/index.d.ts +37 -3
  215. package/dist/src/models/json-schema.d.ts +71 -0
  216. package/dist/src/types/accordion.d.ts +7 -0
  217. package/dist/src/types/avatar.d.ts +7 -0
  218. package/dist/src/types/badge.d.ts +16 -0
  219. package/dist/src/types/breadcrumbs.d.ts +9 -0
  220. package/dist/src/types/button.d.ts +1 -0
  221. package/dist/src/types/entity-type.d.ts +9 -0
  222. package/dist/src/types/json-schema.d.ts +22 -0
  223. package/dist/src/types/tooltip.d.ts +4 -0
  224. package/dist/src/types/transfer-queue.d.ts +10 -0
  225. package/dist/src/utils/__tests__/avatar.spec.d.ts +1 -0
  226. package/dist/src/utils/avatar.d.ts +12 -0
  227. package/dist/src/utils/json-schema.d.ts +23 -0
  228. package/dist/src/utils/sub-menu-floating.d.ts +7 -4
  229. package/dist/types/accordion.js +4 -0
  230. package/dist/types/avatar.js +4 -0
  231. package/dist/types/badge.js +5 -0
  232. package/dist/types/breadcrumbs.js +4 -0
  233. package/dist/types/button.js +3 -3
  234. package/dist/types/entity-type.js +4 -0
  235. package/dist/types/json-schema.js +7 -0
  236. package/dist/types/tooltip.js +3 -2
  237. package/dist/types/transfer-queue.js +4 -0
  238. package/dist/use-file-manager-tabs-Bzzwwcgk.cjs +3 -0
  239. package/dist/utils/avatar.js +22 -0
  240. package/dist/{components/SchemaRenderer/utils.js → utils/json-schema.js} +22 -20
  241. package/dist/utils/merge-classes.js +12 -5
  242. package/dist/utils/sub-menu-floating.js +99 -54
  243. package/package.json +4 -9
  244. package/dist/DateCellRenderer-C3e61i75.cjs +0 -1
  245. package/dist/IconButton-DWqoaBWf.cjs +0 -1
  246. package/dist/MarkdownEditor-jQ8nDJfx.cjs +0 -1
  247. package/dist/MarkdownEditorContainer-Bzcnoemw.cjs +0 -1
  248. package/dist/lazy-tfN4sKhq.cjs +0 -1
  249. package/dist/merge-classes-Dipy1Ih1.cjs +0 -1
  250. 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 va, IconDownload as Aa, IconExternalLink as ka, IconTrashX as Oa, IconPencilMinus as xa, IconUserX as Ea, IconFileDescription as za } from "@tabler/icons-react";
3
- import Ga from "classnames";
4
- import { useState as Ba, useRef as Va, useMemo as f, useCallback as r, useImperativeHandle as _a } from "react";
5
- import Ha from "../../assets/icons/add-child.svg.js";
6
- import Ua from "../../assets/icons/add-sibling.svg.js";
7
- import Wa from "../../assets/icons/copy-to.svg.js";
8
- import ja from "../../assets/icons/move-to.svg.js";
9
- import Xa from "../../assets/icons/unshare.svg.js";
10
- import { DialCollapsibleSidebar as Ka } from "../CollapsibleSidebar/CollapsibleSidebar.js";
11
- import { ConflictResolutionPopup as ho } from "./components/ConflictResolutionPopup/ConflictResolutionPopup.js";
12
- import { useGridActionsColumn as qa } from "./hooks/use-grid-actions-column.js";
13
- import { useTriggerViewRename as Ya } from "./hooks/use-trigger-view-rename.js";
14
- import { DialGrid as Ja } from "../Grid/Grid.js";
15
- import { DialConditionalResizableContainer as Qa } from "../ResizableContainer/ConditionalResizableContainer.js";
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 Za } from "../../hooks/use-width-breakpoint.js";
18
- import { DialFileNodeType as fe, DialFilePermission as $a } from "../../models/file.js";
19
- import { DropdownItemType as ei } from "../../types/dropdown.js";
20
- import { FileManagerColumnKey as k, DialFileManagerActions as i, DestinationFolderMode as p, FileManagerCreateFolderTriggerView as oi, FileManagerRenameTriggerView as ai } from "../../types/file-manager.js";
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 ii } from "../NoDataContent/NoDataContent.js";
23
- import { FileManagerProvider as ni } from "./FileManagerProvider.js";
24
- import { FileManagerTooltip as ti } from "./FileManagerTooltip.js";
25
- import { DialDestinationFolderPopup as li } from "./components/DestinationFolderPopup/DestinationFolderPopup.js";
26
- import { DialFileManagerBulkActionsToolbar as ri } from "./components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js";
27
- import { FileManagerDeleteConfirmationPopup as si } from "./components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js";
28
- import { DialFileManagerNavigationPanel as di } from "./components/FileManagerNavigationPanel/FileManagerNavigationPanel.js";
29
- import { DialFileManagerToolbar as ci } from "./components/FileManagerToolbar/DialFileManagerToolbar.js";
30
- import { FileMetadataPopup as pi } from "./components/FileMetadataPopup/FileMetadataPopup.js";
31
- import { DialFoldersTree as mi } from "./components/FoldersTree/FoldersTree.js";
32
- import { DEFAULT_COMPACT_VIEW_WIDTH_BREAKPOINT as hi, sidebarWidth as ui, sidebarTitleDefault as Ci, treeBaseClassName as gi, DEFAULT_VISIBLE_COLUMN as bi, toolbarBaseClassName as uo, FOLDERS_TREE_PANEL_MAX_WIDTH as fi, FOLDERS_TREE_PANEL_MIN_WIDTH as Di, COMPACT_VIEW_HEADER_HEIGHT as Co, gridBaseClassName as Fi, contentGridClassName as Ti, mainGridClassName as wi, containerBaseClassName as yi, actionsColumnButtonClassName as Ri } from "./constants.js";
33
- import { useBulkActions as Mi } from "./hooks/use-bulk-actions.js";
34
- import { useFileManagerColumns as Pi } from "./hooks/use-file-manager-columns.js";
35
- import { useFileManagerContext as Li } from "./hooks/use-file-manager-context.js";
36
- import { useGridContextMenu as Ni } from "./hooks/use-grid-context-menu.js";
37
- import { getRowTooltip as Ii, findNodeByPath as Si } from "./utils.js";
38
- import { useTriggerViewCreateFolder as vi } from "./hooks/use-trigger-view-create-folder.js";
39
- const fn = (O) => /* @__PURE__ */ o(ni, { ...O, children: /* @__PURE__ */ o(Ai, {}) }), Ai = () => {
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: bo,
47
+ showNavigationPanel: fo,
48
48
  navigationPanelOptions: le,
49
49
  gridOptions: L,
50
50
  toolbarOptions: N,
51
51
  bulkActionsToolbarOptions: F,
52
- deleteConfirmationOptions: fo,
52
+ deleteConfirmationOptions: Do,
53
53
  destinationFolderPopupOptions: T,
54
- conflictResolutionPopupOptions: De,
55
- compactViewWidthBreakpoint: Do = hi,
56
- customBreakpointRef: Fo,
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: Fe,
61
+ toggleHiddenFilesVisibility: Te,
62
62
  isTreeCollapsed: se,
63
- toggleTreeCollapse: Te,
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: we,
70
- effectiveSearchValue: To,
71
- handleBreadcrumbItemClick: wo,
72
- handleSearchChange: yo,
73
- handleTreeItemClick: ye,
74
- handleTableRowClick: Re,
75
- handleSelectionClick: Me,
76
- onGridApiChange: Pe,
77
- handleOpenDestinationFolderPopup: g,
78
- handleCloseDestinationFolderPopup: Le,
79
- openDestinationFolderPopup: Ro,
80
- destinationFolderMode: Ne,
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: Mo,
85
- handleMoveTo: Po,
86
- handleGridAddSibling: Lo,
87
- handleGridAddChild: No,
88
- handleTreeAddSibling: Io,
89
- handleTreeAddChild: So,
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: vo,
93
- confirmDelete: Ao,
94
- deleteConfirmationOpen: ko,
95
- itemsToDelete: Oo,
96
- renamedPath: b,
97
- renamedItem: Ie,
98
- onRename: xo,
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
- getDisplayName: Se,
105
+ skipForbiddenSymbolsCheckForActions: pe,
106
+ getDisplayName: ve,
106
107
  isDragging: I,
107
108
  isDraggingOverWindow: K,
108
- handleDragEnter: Eo,
109
- handleDragLeave: zo,
110
- handleDragOver: Go,
111
- handleDrop: Bo,
112
- onUploadFiles: Vo,
113
- onValidateUpload: _o,
114
- maxFileSize: Ho,
115
- newActions: ve,
116
- isNewButtonVisible: Ae,
117
- isNewButtonDisabled: ke,
118
- newFolderTempId: Oe,
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: xe,
122
- startFolderCreation: Ee,
123
- conflictingFiles: Uo,
124
- conflictResolutionOpen: Wo,
125
- handleConflictReplace: jo,
126
- handleConflictDuplicate: Xo,
127
- handleConflictCancel: Ko,
128
- handleConflictDecideForEach: qo,
129
- uploadConflictingFiles: Yo,
130
- uploadConflictResolutionOpen: Jo,
131
- handleUploadConflictReplace: Qo,
132
- handleUploadConflictDuplicate: Zo,
133
- handleUploadConflictCancel: $o,
134
- handleUploadConflictDecideForEach: ea,
135
- openMetadataPopup: oa,
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: aa,
138
- selectedFileForMetadata: ia,
139
- closeMetadataPopup: na,
138
+ isMetadataPopupOpen: ia,
139
+ selectedFileForMetadata: na,
140
+ closeMetadataPopup: ta,
140
141
  onUnshareFiles: Y,
141
142
  onRemoveFilesAccess: J,
142
- actionsRef: ta,
143
- searchInProgress: ze,
143
+ actionsRef: la,
144
+ searchInProgress: Ge,
144
145
  isSearchMode: Q,
145
- emptyStateIcon: Ge,
146
- emptyStateTitle: Be = "You don't have any files",
147
- emptyStateDescription: Ve = "Upload or drag and drop files",
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: la,
150
+ onFolderPopupPathChange: ra,
150
151
  onManagePermissions: $,
151
- onPreview: ra,
152
- onOpenInNewTab: sa,
153
- previewExtensions: da,
154
- isRenameFileAvailable: ca,
155
- isDuplicateFolderAvailable: pa,
156
- getDisabledTooltip: pe,
157
- fileTooLargeTooltip: _e,
158
- unsupportedFileTypeTooltip: He,
159
- gridClassName: ma,
160
- nonClickableTableColumns: me,
161
- hideSearchPathItemName: he,
162
- showHiddenFileSwitcherInDestinationPopup: ha,
163
- showCreateFolderButtonInDestinationPopup: ua,
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
- } = Li(), {
166
- width: Ca = ui,
167
- header: Ue = Ci,
168
- containerClassName: We = gi,
169
- additionalButtons: je,
170
- ...Xe
171
- } = a ?? {}, [oe, Ke] = Ba(Ca), { renameTriggerView: ae, onGridRename: ga, onTreeRename: qe } = Ya({ onRename: xo }), {
172
- createFolderTriggerView: Ye,
173
- onGridCreateSiblingFolder: ba,
174
- onTreeCreateSiblingFolder: Je,
175
- onGridCreateChildFolder: fa,
176
- onTreeCreateChildFolder: Qe
177
- } = vi({
178
- onGridAddSibling: Lo,
179
- onGridAddChild: No,
180
- onTreeAddSibling: Io,
181
- onTreeAddChild: So
182
- }), ue = Va(null), Da = (e) => {
183
- ue.current === null && (ue.current = requestAnimationFrame(() => {
184
- Ke(e), ue.current = null;
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: Fa,
188
- filterable: Ta = !0,
189
- dateLocale: wa,
190
- dateOptions: ya,
191
- selectionMode: Ze,
192
- wrapCustomCellRenderers: $e,
193
- visibleColumns: eo = bi,
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: Ra, isBelowBreakpoint: s } = Za(
197
- Do,
198
- Fo
199
- ), Ma = f(() => Q ? [
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
- ] : eo, [Q, eo]), Ce = r(
204
- (e, n, t) => Ii(
204
+ ] : oo, [Q, oo]), be = r(
205
+ (e, n, t) => Si(
205
206
  e,
206
207
  n,
207
208
  t,
208
- He,
209
- _e
209
+ Ue,
210
+ He
210
211
  ),
211
- [_e, He]
212
+ [He, Ue]
212
213
  ), ne = r(
213
- (e, n, t) => !!pe?.(e) || !!Ce(e, n, t),
214
- [Ce, pe]
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]), oo = r(
221
+ }, [x, re, y, ne]), ao = r(
221
222
  (e) => {
222
- const n = [], t = [], d = !e.parentPath, v = u?.test(
223
- e.name
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
- Ua,
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: () => Je([e])
237
- }), a.actionLabels[i.AddChild] && e.nodeType === fe.FOLDER && !v && n.push({
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
- Ha,
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: () => Qe([e])
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(va, { ...l, className: "text-secondary" }),
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
- Wa,
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]), g(p.Copy);
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
- ja,
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]), g(p.Move);
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(Aa, { ...l, className: "text-secondary" }),
284
+ icon: /* @__PURE__ */ o(ka, { ...l, className: "text-secondary" }),
286
285
  onClick: () => V([e])
287
- }), a.actionLabels[i.ManagePermissions] && typeof $ == "function" && e.nodeType === fe.FOLDER && !d && t.push({
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
- ka,
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($a.WRITE) && !d && t.push({
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(Oa, { ...l, className: "text-secondary" }),
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
- xa,
306
+ Ea,
308
307
  {
309
308
  ...l,
310
309
  className: "text-secondary"
311
310
  }
312
311
  ),
313
- onClick: () => qe(e.path)
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
- Xa,
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
- Ea,
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: ei.Divider },
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
- g,
349
+ b,
350
350
  G,
351
351
  V,
352
- qe,
352
+ Ye,
353
353
  Y,
354
354
  J,
355
355
  Z,
356
356
  m,
357
357
  _,
358
- Qe,
359
- Je
358
+ Ze,
359
+ Qe
360
360
  ]
361
- ), ao = f(() => {
361
+ ), io = f(() => {
362
362
  const e = /* @__PURE__ */ new Set();
363
363
  return de.forEach((n, t) => e.add(t)), e;
364
- }, [de]), io = r(
364
+ }, [de]), no = r(
365
365
  (e, n) => {
366
- we(e), Me?.(n);
366
+ ye(e), Pe?.(n);
367
367
  },
368
- [Me, we]
369
- ), no = Mi({
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), g(p.Copy);
374
+ z(e), b(p.Copy);
375
375
  },
376
376
  onMove: (e) => {
377
- G(e), g(p.Move);
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
- }), to = r(
388
+ }), lo = r(
389
389
  (e) => {
390
390
  N?.onTabChange?.(e), R();
391
391
  },
392
392
  [N, R]
393
- ), Pa = r(() => N && h.size === 0 ? /* @__PURE__ */ A(
393
+ ), La = r(() => N && h.size === 0 ? /* @__PURE__ */ A(
394
394
  "div",
395
395
  {
396
- className: uo,
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
- ci,
402
+ pi,
403
403
  {
404
404
  ...N,
405
- onTabChange: to,
405
+ onTabChange: lo,
406
406
  areHiddenFilesVisible: E,
407
- onToggleHiddenFiles: Fe,
408
- isNewButtonVisible: Ae,
409
- isNewButtonDisabled: ke,
410
- newButtonDropdownItems: ve
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: uo,
418
+ className: Co,
419
419
  role: "toolbar",
420
420
  "aria-label": "File Manager Toolbar",
421
421
  children: /* @__PURE__ */ o(
422
- ri,
422
+ si,
423
423
  {
424
424
  ...F,
425
425
  selectedCount: h.size,
426
426
  onClearSelection: ce,
427
- actions: no
427
+ actions: to
428
428
  }
429
429
  )
430
430
  }
431
431
  ) : null, [
432
- to,
432
+ lo,
433
433
  F,
434
434
  h,
435
435
  ce,
436
- no,
436
+ to,
437
437
  E,
438
- Fe,
438
+ Te,
439
439
  N,
440
- Ae,
441
440
  ke,
442
- ve,
441
+ Oe,
442
+ Ae,
443
443
  O
444
444
  ]);
445
- _a(
446
- ta,
445
+ Ha(
446
+ la,
447
447
  () => ({
448
- createFolder: Ee
448
+ createFolder: ze
449
449
  }),
450
- [Ee]
450
+ [ze]
451
451
  );
452
- const La = r(() => s ? null : /* @__PURE__ */ o(
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
- Qa,
459
+ Za,
460
460
  {
461
461
  defaultWidth: oe,
462
462
  width: oe,
463
- onResizeStop: Ke,
464
- onResize: Da,
465
- minWidth: Di,
466
- maxWidth: fi,
463
+ onResizeStop: qe,
464
+ onResize: Fa,
465
+ minWidth: Fi,
466
+ maxWidth: Di,
467
467
  enabled: !se,
468
468
  children: /* @__PURE__ */ o(
469
- Ka,
469
+ qa,
470
470
  {
471
471
  width: oe,
472
- title: Ue,
473
- containerClassName: We,
472
+ title: We,
473
+ containerClassName: je,
474
474
  titleClassName: "dial-body-text text-primary",
475
- additionalButtons: je,
475
+ additionalButtons: Xe,
476
476
  isOpened: !se,
477
- onToggle: Te,
477
+ onToggle: we,
478
478
  children: /* @__PURE__ */ o(
479
- mi,
479
+ hi,
480
480
  {
481
- ...Xe,
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: ye,
489
+ onItemClick: Re,
490
490
  areHiddenFilesVisible: E,
491
- getContextMenuItems: oo,
492
- renamedPath: ae === ai.Tree ? b : void 0,
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: Ye === oi.Tree ? j : null,
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
- ye,
523
+ Re,
524
524
  E,
525
- oo,
525
+ ao,
526
526
  ae,
527
- Ye,
528
- b,
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
- ]), lo = Ni({
536
+ ]), ro = Ii({
537
537
  actionLabels: L?.actionLabels,
538
538
  onDuplicate: (e) => B([e]),
539
539
  onCopy: (e) => {
540
- z([e]), g(p.Copy);
540
+ z([e]), b(p.Copy);
541
541
  },
542
542
  onMove: (e) => {
543
- G([e]), g(p.Move);
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) => oa(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) => ra?.(e),
555
- onOpenInNewTab: (e) => sa?.(e),
556
- previewExtensions: da,
557
- isRenameFileAvailable: ca,
558
- isDuplicateFolderAvailable: pa,
554
+ onPreview: (e) => sa?.(e),
555
+ onOpenInNewTab: (e) => da?.(e),
556
+ previewExtensions: ca,
557
+ isRenameFileAvailable: pa,
558
+ isDuplicateFolderAvailable: ma,
559
559
  forbiddenSymbolsRegExp: u,
560
- onGridCreateSiblingFolder: ba,
561
- onGridCreateChildFolder: fa
560
+ skipForbiddenSymbolsCheckForActions: pe,
561
+ onGridCreateSiblingFolder: fa,
562
+ onGridCreateChildFolder: Da
562
563
  }), ge = r(
563
564
  (e) => {
564
- const n = Si(P, e.path);
565
- return n ? lo(n) : [];
565
+ const n = vi(P, e.path);
566
+ return n ? ro(n) : [];
566
567
  },
567
- [P, lo]
568
- ), Na = r(
568
+ [P, ro]
569
+ ), Ia = r(
569
570
  (e, n, t) => ie ? !1 : ne(e, n, t),
570
571
  [ie, ne]
571
- ), { actionsColumnDef: Ia } = qa({
572
+ ), { actionsColumnDef: Sa } = Ya({
572
573
  getContextMenuItems: ge,
573
- isRowDisabled: Na,
574
+ isRowDisabled: Ia,
574
575
  allowedFileTypes: x,
575
- buttonClassName: s ? "" : Ri
576
- }), { columnDefs: be } = Pi({
577
- userColumnDefs: Fa,
578
- filterable: Ta,
579
- dateLocale: wa,
580
- dateOptions: ya,
581
- effectiveVisibleColumns: Ma,
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: Ia,
585
+ actionsColumnDef: Sa,
585
586
  rootItemLabel: c?.label,
586
587
  rootItemPath: c?.path
587
- }), ro = r(
588
+ }), so = r(
588
589
  (e) => {
589
- e.colDef.colId === "ag-Grid-SelectionColumn" || e.colDef.colId === k.Actions || b && e.data?.path === b || e.data?.isTemporary || me && me.includes(
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 && Re(e.data);
592
+ ) || e.data && Me(e.data);
592
593
  },
593
- [b, Re, me]
594
- ), so = r(
594
+ [g, Me, he]
595
+ ), co = r(
595
596
  () => /* @__PURE__ */ o(
596
- ii,
597
+ ni,
597
598
  {
598
- title: Be,
599
- description: Ve,
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: Ge || /* @__PURE__ */ o(
604
- za,
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
- [Ve, Ge, Be]
614
- ), co = f(() => (e) => e.path, []), po = f(
615
- () => Ga(
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
- ), mo = f(
622
+ ), ho = f(
622
623
  () => ({
624
+ headerHeight: bo,
625
+ rowHeight: bo,
623
626
  ...M.additionalGridOptions,
624
- onCellClicked: ro,
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: Se,
636
+ getDisplayName: ve,
636
637
  onRenameCancel: U,
637
638
  onRenameSave: H,
638
639
  onRenameValidate: W,
639
640
  renameTriggerView: ae,
640
- validateFolderName: xe,
641
- renamedItem: Ie,
642
- renamedPath: b,
641
+ validateFolderName: Ee,
642
+ renamedItem: Se,
643
+ renamedPath: g,
643
644
  createdFolderPath: j,
644
- newFolderTempId: Oe,
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: he,
651
+ hideSearchPathItemName: ue,
651
652
  newFolderDefaultName: ee,
652
653
  filesLoading: D
653
654
  }
654
655
  }),
655
656
  [
656
657
  M.additionalGridOptions,
657
- ro,
658
+ so,
658
659
  le?.searchable,
659
660
  R,
660
661
  q,
661
- Se,
662
+ ve,
662
663
  U,
663
664
  H,
664
665
  W,
665
666
  ae,
666
- xe,
667
- Ie,
668
- b,
667
+ Ee,
668
+ Se,
669
+ g,
669
670
  j,
670
- Oe,
671
+ xe,
671
672
  m,
672
673
  h,
673
674
  S,
674
675
  u,
675
676
  X,
676
- he,
677
+ ue,
677
678
  ee,
678
679
  D
679
680
  ]
680
- ), Sa = f(
681
- () => y.length === 0 && !Q && !D ? so() : /* @__PURE__ */ o(
682
- Ja,
681
+ ), va = f(
682
+ () => y.length === 0 && !Q && !D ? co() : /* @__PURE__ */ o(
683
+ Qa,
683
684
  {
684
- columnDefs: be,
685
+ columnDefs: fe,
685
686
  rowData: y,
686
- getRowId: co,
687
- loading: D || ze,
687
+ getRowId: po,
688
+ loading: D || Ge,
688
689
  getContextMenuItems: ge,
689
690
  withoutHeaderBorders: s,
690
- onGridApiChange: Pe,
691
- className: po,
691
+ onGridApiChange: Le,
692
+ className: mo,
692
693
  ...M,
693
- selectionMode: Ze,
694
- wrapCustomCellRenderers: $e,
695
- additionalGridOptions: mo,
696
- selectedRowIds: ao,
697
- onSelectionChange: io,
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
- ze,
709
+ fe,
710
+ po,
711
+ Ge,
711
712
  ge,
712
713
  s,
713
- Pe,
714
- po,
714
+ Le,
715
+ mo,
715
716
  M,
716
- Ze,
717
717
  $e,
718
- mo,
719
- ao,
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: Ra, className: "size-full", children: /* @__PURE__ */ A(
728
+ return /* @__PURE__ */ o("section", { ref: Ma, className: "size-full", children: /* @__PURE__ */ A(
728
729
  "div",
729
730
  {
730
731
  className: te(
731
- yi,
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
- Pa(),
741
- /* @__PURE__ */ A("div", { className: te(wi, ma), children: [
742
- La(),
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(Ti, {
747
+ className: te(wi, {
747
748
  "gap-3": s
748
749
  }),
749
750
  children: [
750
- bo && /* @__PURE__ */ o(
751
- di,
751
+ fo && /* @__PURE__ */ o(
752
+ ci,
752
753
  {
753
754
  ...le ?? {},
754
755
  makeHref: (e) => e.join("/"),
755
756
  path: w,
756
- onItemClick: wo,
757
+ onItemClick: yo,
757
758
  rootItemPath: c?.path,
758
759
  rootItemLabel: c?.label,
759
- value: To,
760
- onSearchChange: yo,
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(Fi, "relative"),
771
- onDragEnter: Eo,
772
- onDragLeave: zo,
773
- onDragOver: Go,
774
- onDrop: Bo,
771
+ className: te(Ti, "relative"),
772
+ onDragEnter: zo,
773
+ onDragLeave: Go,
774
+ onDragOver: Bo,
775
+ onDrop: Vo,
775
776
  children: [
776
- Sa,
777
+ va,
777
778
  /* @__PURE__ */ o(
778
- ti,
779
+ li,
779
780
  {
780
781
  disabledGridRowIds: S,
781
782
  gridRows: y,
782
- getDisabledTooltip: pe,
783
- getRowDisabledTooltip: Ce,
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
- si,
797
+ di,
797
798
  {
798
- ...fo,
799
- open: ko,
800
- itemsToDelete: Oo,
801
- onClose: vo,
802
- onConfirm: Ao
799
+ ...Do,
800
+ open: Oo,
801
+ itemsToDelete: xo,
802
+ onClose: Ao,
803
+ onConfirm: ko
803
804
  }
804
805
  ),
805
806
  /* @__PURE__ */ o(
806
- li,
807
+ ri,
807
808
  {
808
809
  ...T,
809
- open: Ro,
810
- onClose: Le,
810
+ open: Mo,
811
+ onClose: Ne,
811
812
  onConfirm: () => {
812
813
  const e = T?.destinationFolderPath ?? "/";
813
- Ne === p.Copy ? Mo(e) : Po(e), Le();
814
+ Ie === p.Copy ? Po(e) : Lo(e), Ne();
814
815
  },
815
- mode: Ne,
816
+ mode: Ie,
816
817
  items: P,
817
818
  rootItem: c,
818
819
  gridOptions: {
819
- columnDefs: be.filter(
820
+ columnDefs: fe.filter(
820
821
  (e) => e.colId !== k.Actions
821
822
  ),
822
823
  loading: D
823
824
  },
824
- onUploadFiles: Vo,
825
- onValidateUpload: _o,
826
- maxFileSize: Ho,
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: la,
834
- showHiddenFileSwitcher: ha,
835
- showCreateFolderButton: ua,
836
- hideSearchPathItemName: he
834
+ onFolderPopupPathChange: ra,
835
+ showHiddenFileSwitcher: ua,
836
+ showCreateFolderButton: Ca,
837
+ hideSearchPathItemName: ue
837
838
  }
838
839
  ),
839
840
  /* @__PURE__ */ o(
840
- ho,
841
+ uo,
841
842
  {
842
- ...De,
843
- open: Wo,
844
- onClose: Ko,
845
- onReplace: jo,
846
- onDuplicate: Xo,
847
- onDecideForEach: qo,
848
- conflictingFiles: Uo
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
- ho,
853
+ uo,
853
854
  {
854
- ...De,
855
- open: Jo,
856
- onClose: $o,
857
- onReplace: Qo,
858
- onDuplicate: Zo,
859
- onDecideForEach: ea,
860
- conflictingFiles: Yo
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
- pi,
865
+ mi,
865
866
  {
866
- open: aa,
867
- onClose: na,
868
- fileMetadata: C?.fileMetadata ?? ia,
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
- fn as DialFileManager,
886
- Ai as DialFileManagerView
886
+ Dn as DialFileManager,
887
+ ki as DialFileManagerView
887
888
  };