@epam/ai-dial-ui-kit 0.16.0-dev.3 → 0.16.0-dev.33

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 (296) hide show
  1. package/README.md +6 -1
  2. package/dist/CHANGELOG.md +59 -1
  3. package/dist/DateCellRenderer-BX8RfCHm.cjs +63 -0
  4. package/dist/{IconButton-DHOFapLo.cjs → IconButton-CsePS6PY.cjs} +1 -1
  5. package/dist/JsonEditor-DQhHSm93.cjs +1 -0
  6. package/dist/{MarkdownEditor-Cp-KX6-T.cjs → MarkdownEditor-CvIPIbPq.cjs} +1 -1
  7. package/dist/{MarkdownEditor-Dav_pp0T.cjs → MarkdownEditor-TR6X_gdl.cjs} +1 -1
  8. package/dist/MarkdownEditorContainer-JIn_VNUX.cjs +1 -0
  9. package/dist/{Switch-DE6MrcqJ.cjs → Switch-HEL_aq23.cjs} +1 -1
  10. package/dist/_virtual/_commonjsHelpers.js +3 -28
  11. package/dist/_virtual/index.js +5 -3
  12. package/dist/components/Analytics/Bar/Bar.js +7 -7
  13. package/dist/components/Analytics/BarGroup/BarGroup.js +18 -18
  14. package/dist/components/Analytics/Histogram/Histogram.js +10 -10
  15. package/dist/components/Checkbox/Checkbox.js +9 -9
  16. package/dist/components/Dropdown/constants.js +2 -2
  17. package/dist/components/DropdownIcon/DropdownIcon.js +5 -5
  18. package/dist/components/Grid/Grid.js +11 -11
  19. package/dist/components/IconButton/IconButton.js +7 -7
  20. package/dist/components/InputPopup/InputPopup.js +8 -8
  21. package/dist/components/LoadFileArea/EmptyFileArea.js +28 -28
  22. package/dist/components/Loader/Loader.js +8 -8
  23. package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +16 -18
  24. package/dist/components/New/Avatar/Avatar.js +18 -17
  25. package/dist/components/New/BottomSheet/BottomSheet.js +53 -52
  26. package/dist/components/New/Breadcrumbs/constants.js +1 -1
  27. package/dist/components/New/Calendar/Calendar.js +314 -227
  28. package/dist/components/New/Calendar/TimePickerPanel.js +87 -0
  29. package/dist/components/New/Calendar/constants.js +27 -25
  30. package/dist/components/New/CaptionText/CaptionText.js +3 -4
  31. package/dist/components/New/Checkbox/Checkbox.js +23 -21
  32. package/dist/components/New/Checkbox/CheckboxBox.js +25 -18
  33. package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +49 -44
  34. package/dist/components/New/Dropdown/Dropdown.js +334 -254
  35. package/dist/components/New/Dropdown/constants.js +21 -18
  36. package/dist/components/New/Dropdown/search.js +37 -0
  37. package/dist/components/New/FolderPath/FolderPath.js +151 -46
  38. package/dist/components/New/Grid/Grid.js +139 -132
  39. package/dist/components/New/Grid/constants.js +5 -2
  40. package/dist/components/New/Input/Input.js +121 -107
  41. package/dist/components/New/MenuItem/MenuItem.js +17 -17
  42. package/dist/components/New/NoDataContent/NoDataContent.js +22 -27
  43. package/dist/components/New/NoDataContent/NoDataIllustration.js +53 -0
  44. package/dist/components/New/Popup/constants.js +1 -1
  45. package/dist/components/New/Radio/Radio.js +19 -17
  46. package/dist/components/New/ResizeHandle/ResizeHandle.js +147 -0
  47. package/dist/components/New/SchemaRenderer/components/SchemaField.js +45 -44
  48. package/dist/components/New/SchemaRenderer/components/SchemaFieldContent.js +41 -38
  49. package/dist/components/New/SchemaRenderer/components/SchemaPrimitiveField.js +45 -39
  50. package/dist/components/New/Select/Select.js +205 -202
  51. package/dist/components/New/Select/constants.js +29 -38
  52. package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +1 -1
  53. package/dist/components/New/SideDrawer/SideDrawer.js +1 -1
  54. package/dist/components/New/StateScreen/StateScreen.js +61 -0
  55. package/dist/components/New/Switch/Switch.js +19 -17
  56. package/dist/components/New/Textarea/Textarea.js +37 -33
  57. package/dist/components/New/TransferQueue/TransferQueue.js +66 -71
  58. package/dist/components/New/TransferQueue/TransferQueueHeader.js +30 -38
  59. package/dist/components/New/TransferQueue/TransferQueueRow.js +106 -49
  60. package/dist/components/Search/Search.js +1 -1
  61. package/dist/components/Select/Select.js +1 -1
  62. package/dist/components/Select/constants.js +6 -6
  63. package/dist/components/Slider/Slider.js +1 -1
  64. package/dist/components/Steps/Step.js +9 -9
  65. package/dist/components/TagInput/TagInput.js +1 -1
  66. package/dist/components-manifest.json +422 -1171
  67. package/dist/constants/public-class-names.js +11 -0
  68. package/dist/dial-ui-kit.cjs +4 -2
  69. package/dist/dial-ui-kit.js +354 -366
  70. package/dist/editors.cjs +1 -1
  71. package/dist/grid.cjs +1 -1
  72. package/dist/grid.js +19 -17
  73. package/dist/index.css +2 -6
  74. package/dist/lazy-kq-xfXXv.cjs +1 -0
  75. package/dist/{merge-classes-BEJXjzkx.cjs → merge-classes-B0SnCG4i.cjs} +1 -1
  76. package/dist/migration-guides/0.16.0/caption-text-no-alert-role.md +90 -0
  77. package/dist/migration-guides/0.16.0/legacy-file-manager-removal.md +89 -0
  78. package/dist/migration-guides/0.16.0/tailwind-v4-stylesheet.md +98 -0
  79. package/dist/migration-guides/README.md +3 -0
  80. package/dist/node_modules/ag-grid-community/dist/package/main.esm.js +1767 -1763
  81. package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +1 -1
  82. package/dist/src/components/ButtonDropdown/constants.d.ts +2 -2
  83. package/dist/src/components/Dropdown/constants.d.ts +1 -1
  84. package/dist/src/components/Grid/Grid.d.ts +1 -1
  85. package/dist/src/components/JsonEditor/lazy.d.ts +1 -1
  86. package/dist/src/components/MarkdownEditor/lazy.d.ts +1 -1
  87. package/dist/src/components/New/Avatar/Avatar.d.ts +9 -3
  88. package/dist/src/components/New/Breadcrumbs/constants.d.ts +2 -2
  89. package/dist/src/components/New/ButtonDropdown/constants.d.ts +1 -1
  90. package/dist/src/components/New/Calendar/Calendar.d.ts +10 -2
  91. package/dist/src/components/New/Calendar/TimePickerPanel.d.ts +15 -0
  92. package/dist/src/components/New/Calendar/constants.d.ts +7 -5
  93. package/dist/src/components/New/CaptionText/CaptionText.d.ts +8 -1
  94. package/dist/src/components/New/Dropdown/Dropdown.d.ts +42 -0
  95. package/dist/src/components/New/Dropdown/constants.d.ts +7 -1
  96. package/dist/src/components/New/Dropdown/search.d.ts +9 -0
  97. package/dist/src/components/New/FilterChips/FilterChips.d.ts +1 -1
  98. package/dist/src/components/New/FolderPath/FolderPath.d.ts +16 -8
  99. package/dist/src/components/New/Grid/Grid.d.ts +12 -1
  100. package/dist/src/components/New/Grid/components/SelectionCell.d.ts +1 -1
  101. package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +1 -1
  102. package/dist/src/components/New/InteractiveTooltip/constants.d.ts +1 -1
  103. package/dist/src/components/New/MarkdownEditor/lazy.d.ts +1 -1
  104. package/dist/src/components/New/MenuItem/constants.d.ts +1 -1
  105. package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +16 -8
  106. package/dist/src/components/New/NoDataContent/NoDataIllustration.d.ts +7 -0
  107. package/dist/src/components/New/Popup/constants.d.ts +1 -1
  108. package/dist/src/components/New/ResizeHandle/ResizeHandle.d.ts +68 -0
  109. package/dist/src/components/New/SchemaRenderer/components/SchemaFieldContent.d.ts +1 -0
  110. package/dist/src/components/New/SchemaRenderer/components/SchemaPrimitiveField.d.ts +2 -0
  111. package/dist/src/components/New/SchemaRenderer/types.d.ts +3 -1
  112. package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +1 -1
  113. package/dist/src/components/New/Select/Select.d.ts +2 -0
  114. package/dist/src/components/New/Select/constants.d.ts +3 -4
  115. package/dist/src/components/New/StateScreen/StateScreen.d.ts +47 -0
  116. package/dist/src/components/New/Tooltip/constants.d.ts +2 -2
  117. package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +9 -5
  118. package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +1 -3
  119. package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +1 -1
  120. package/dist/src/components/Select/constants.d.ts +3 -3
  121. package/dist/src/constants/public-class-names.d.ts +11 -0
  122. package/dist/src/index.d.ts +8 -13
  123. package/dist/src/subpaths/editors.d.ts +1 -1
  124. package/dist/src/subpaths/grid.d.ts +1 -0
  125. package/dist/src/types/avatar.d.ts +9 -0
  126. package/dist/src/types/grid.d.ts +8 -0
  127. package/dist/src/utils/avatar.d.ts +2 -1
  128. package/dist/src/utils/sub-menu-floating.d.ts +1 -1
  129. package/dist/types/avatar.js +3 -2
  130. package/dist/types/grid.js +4 -0
  131. package/dist/utils/avatar.js +41 -18
  132. package/dist/utils/merge-classes.js +36 -7
  133. package/dist/utils/sub-menu-floating.js +8 -8
  134. package/package.json +9 -12
  135. package/dist/DateCellRenderer-BdUMSg-E.cjs +0 -1
  136. package/dist/DateCellRenderer-CZNa4jVJ.cjs +0 -63
  137. package/dist/JsonEditor-eAV7SaKu.cjs +0 -1
  138. package/dist/MarkdownEditorContainer-96cKYmYd.cjs +0 -1
  139. package/dist/_virtual/___vite-browser-external.js +0 -6
  140. package/dist/_virtual/__vite-browser-external.js +0 -4
  141. package/dist/_virtual/index2.js +0 -4
  142. package/dist/_virtual/index3.js +0 -7
  143. package/dist/assets/icons/add-child.svg.js +0 -5
  144. package/dist/assets/icons/add-sibling.svg.js +0 -5
  145. package/dist/assets/icons/copy-to.svg.js +0 -5
  146. package/dist/assets/icons/move-to.svg.js +0 -5
  147. package/dist/assets/icons/no-data.svg.js +0 -5
  148. package/dist/assets/icons/unshare.svg.js +0 -5
  149. package/dist/components/FileManager/FileManager.js +0 -888
  150. package/dist/components/FileManager/FileManagerContext.js +0 -5
  151. package/dist/components/FileManager/FileManagerProvider.js +0 -772
  152. package/dist/components/FileManager/FileManagerTooltip.js +0 -92
  153. package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +0 -293
  154. package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +0 -201
  155. package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +0 -52
  156. package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +0 -103
  157. package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +0 -5
  158. package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +0 -56
  159. package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +0 -69
  160. package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +0 -100
  161. package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +0 -93
  162. package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +0 -165
  163. package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +0 -6
  164. package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +0 -120
  165. package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +0 -119
  166. package/dist/components/FileManager/components/FileMetadataPopup/constants.js +0 -9
  167. package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +0 -180
  168. package/dist/components/FileManager/components/FoldersTree/constants.js +0 -9
  169. package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +0 -51
  170. package/dist/components/FileManager/constants.js +0 -28
  171. package/dist/components/FileManager/errors.js +0 -10
  172. package/dist/components/FileManager/hooks/use-bulk-actions.js +0 -143
  173. package/dist/components/FileManager/hooks/use-collapse-tree.js +0 -22
  174. package/dist/components/FileManager/hooks/use-conflict-resolution.js +0 -158
  175. package/dist/components/FileManager/hooks/use-current-path.js +0 -29
  176. package/dist/components/FileManager/hooks/use-file-clipboard.js +0 -154
  177. package/dist/components/FileManager/hooks/use-file-delete.js +0 -39
  178. package/dist/components/FileManager/hooks/use-file-download.js +0 -16
  179. package/dist/components/FileManager/hooks/use-file-manager-columns.js +0 -106
  180. package/dist/components/FileManager/hooks/use-file-manager-context.js +0 -13
  181. package/dist/components/FileManager/hooks/use-file-manager-tabs.js +0 -23
  182. package/dist/components/FileManager/hooks/use-file-metadata.js +0 -20
  183. package/dist/components/FileManager/hooks/use-file-search.js +0 -90
  184. package/dist/components/FileManager/hooks/use-file-upload.js +0 -338
  185. package/dist/components/FileManager/hooks/use-folder-creation.js +0 -151
  186. package/dist/components/FileManager/hooks/use-grid-actions-column.js +0 -65
  187. package/dist/components/FileManager/hooks/use-grid-context-menu.js +0 -188
  188. package/dist/components/FileManager/hooks/use-item-renaming.js +0 -124
  189. package/dist/components/FileManager/hooks/use-new-actions.js +0 -67
  190. package/dist/components/FileManager/hooks/use-paths-selection.js +0 -28
  191. package/dist/components/FileManager/hooks/use-show-hidden-files.js +0 -20
  192. package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +0 -39
  193. package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +0 -42
  194. package/dist/components/FileManager/hooks/use-trigger-view-rename.js +0 -25
  195. package/dist/components/FileManager/utils.js +0 -129
  196. package/dist/constants/file-grid-columns.js +0 -176
  197. package/dist/editor-BH6_A1k2.cjs +0 -1
  198. package/dist/file-manager.cjs +0 -1
  199. package/dist/file-manager.js +0 -22
  200. package/dist/hooks/use-flexible-actions.js +0 -72
  201. package/dist/hooks/use-width-breakpoint.js +0 -15
  202. package/dist/lazy-DMVYJhUR.cjs +0 -1
  203. package/dist/node_modules/mime-db/db.json.js +0 -2527
  204. package/dist/node_modules/mime-db/index.js +0 -8
  205. package/dist/node_modules/mime-types/index.js +0 -70
  206. package/dist/node_modules/mime-types/mimeScore.js +0 -38
  207. package/dist/src/__mocks__/monaco-editor.d.ts +0 -13
  208. package/dist/src/components/Analytics/Bar/utils.spec.d.ts +0 -1
  209. package/dist/src/components/Analytics/Histogram/utils.spec.d.ts +0 -1
  210. package/dist/src/components/Button/ButtonWrappers.test.d.ts +0 -1
  211. package/dist/src/components/Button/__tests__/utils.spec.d.ts +0 -1
  212. package/dist/src/components/FileManager/FileManager.d.ts +0 -326
  213. package/dist/src/components/FileManager/FileManagerContext.d.ts +0 -181
  214. package/dist/src/components/FileManager/FileManagerProvider.d.ts +0 -21
  215. package/dist/src/components/FileManager/FileManagerTooltip.d.ts +0 -12
  216. package/dist/src/components/FileManager/__mocks__/files.d.ts +0 -3
  217. package/dist/src/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.d.ts +0 -90
  218. package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +0 -73
  219. package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.d.ts +0 -63
  220. package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.test.d.ts +0 -1
  221. package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.d.ts +0 -56
  222. package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/constants.d.ts +0 -3
  223. package/dist/src/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.d.ts +0 -26
  224. package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts +0 -51
  225. package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +0 -57
  226. package/dist/src/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.d.ts +0 -71
  227. package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +0 -64
  228. package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts +0 -3
  229. package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +0 -76
  230. package/dist/src/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.d.ts +0 -50
  231. package/dist/src/components/FileManager/components/FileMetadataPopup/constants.d.ts +0 -6
  232. package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +0 -135
  233. package/dist/src/components/FileManager/components/FoldersTree/constants.d.ts +0 -6
  234. package/dist/src/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.d.ts +0 -13
  235. package/dist/src/components/FileManager/constants.d.ts +0 -21
  236. package/dist/src/components/FileManager/errors.d.ts +0 -6
  237. package/dist/src/components/FileManager/hooks/__tests__/use-conflict-resolution.spec.d.ts +0 -1
  238. package/dist/src/components/FileManager/hooks/__tests__/use-current-path.spec.d.ts +0 -1
  239. package/dist/src/components/FileManager/hooks/__tests__/use-file-clipboard.spec.d.ts +0 -1
  240. package/dist/src/components/FileManager/hooks/__tests__/use-file-delete.spec.d.ts +0 -1
  241. package/dist/src/components/FileManager/hooks/__tests__/use-file-download.spec.d.ts +0 -1
  242. package/dist/src/components/FileManager/hooks/__tests__/use-file-upload.spec.d.ts +0 -1
  243. package/dist/src/components/FileManager/hooks/__tests__/use-show-hidden-files.spec.d.ts +0 -1
  244. package/dist/src/components/FileManager/hooks/__tests__/use-trigger-view-rename.spec.d.ts +0 -1
  245. package/dist/src/components/FileManager/hooks/use-bulk-actions.d.ts +0 -30
  246. package/dist/src/components/FileManager/hooks/use-collapse-tree.d.ts +0 -9
  247. package/dist/src/components/FileManager/hooks/use-conflict-resolution.d.ts +0 -27
  248. package/dist/src/components/FileManager/hooks/use-current-path.d.ts +0 -13
  249. package/dist/src/components/FileManager/hooks/use-file-clipboard.d.ts +0 -37
  250. package/dist/src/components/FileManager/hooks/use-file-delete.d.ts +0 -13
  251. package/dist/src/components/FileManager/hooks/use-file-download.d.ts +0 -9
  252. package/dist/src/components/FileManager/hooks/use-file-manager-columns.d.ts +0 -43
  253. package/dist/src/components/FileManager/hooks/use-file-manager-context.d.ts +0 -7
  254. package/dist/src/components/FileManager/hooks/use-file-manager-tabs.d.ts +0 -10
  255. package/dist/src/components/FileManager/hooks/use-file-metadata.d.ts +0 -10
  256. package/dist/src/components/FileManager/hooks/use-file-search.d.ts +0 -23
  257. package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +0 -64
  258. package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +0 -30
  259. package/dist/src/components/FileManager/hooks/use-grid-actions-column.d.ts +0 -15
  260. package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +0 -44
  261. package/dist/src/components/FileManager/hooks/use-item-renaming.d.ts +0 -22
  262. package/dist/src/components/FileManager/hooks/use-new-actions.d.ts +0 -23
  263. package/dist/src/components/FileManager/hooks/use-paths-selection.d.ts +0 -13
  264. package/dist/src/components/FileManager/hooks/use-show-hidden-files.d.ts +0 -9
  265. package/dist/src/components/FileManager/hooks/use-tree-additional-buttons.d.ts +0 -22
  266. package/dist/src/components/FileManager/hooks/use-trigger-view-create-folder.d.ts +0 -26
  267. package/dist/src/components/FileManager/hooks/use-trigger-view-rename.d.ts +0 -20
  268. package/dist/src/components/FileManager/utils.d.ts +0 -69
  269. package/dist/src/components/FileManager/utils.spec.d.ts +0 -1
  270. package/dist/src/components/Grid/comparators/base-column-comparator.spec.d.ts +0 -1
  271. package/dist/src/components/Grid/renderers/utils.spec.d.ts +0 -1
  272. package/dist/src/components/New/AutocompleteTagInput/utils.spec.d.ts +0 -1
  273. package/dist/src/components/New/Button/__tests__/utils.spec.d.ts +0 -1
  274. package/dist/src/components/New/Calendar/utils.spec.d.ts +0 -1
  275. package/dist/src/components/New/Slider/utils.spec.d.ts +0 -1
  276. package/dist/src/components/New/TagInput/utils.spec.d.ts +0 -1
  277. package/dist/src/components/Pagination/tests/utils.spec.d.ts +0 -1
  278. package/dist/src/components/SchemaRenderer/tests/utils.spec.d.ts +0 -1
  279. package/dist/src/components/Steps/tests/Steps.test.d.ts +0 -1
  280. package/dist/src/components/Steps/tests/utils.spec.d.ts +0 -1
  281. package/dist/src/constants/file-grid-columns.d.ts +0 -4
  282. package/dist/src/models/file-manager.d.ts +0 -19
  283. package/dist/src/subpaths/file-manager.d.ts +0 -21
  284. package/dist/src/types/file-manager.d.ts +0 -59
  285. package/dist/src/utils/__tests__/accessible-name.spec.d.ts +0 -1
  286. package/dist/src/utils/__tests__/avatar.spec.d.ts +0 -1
  287. package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +0 -1
  288. package/dist/src/utils/__tests__/file-accept.spec.d.ts +0 -1
  289. package/dist/src/utils/__tests__/merge-classes.spec.d.ts +0 -1
  290. package/dist/src/utils/__tests__/path.spec.d.ts +0 -1
  291. package/dist/src/utils/__tests__/pointer.spec.d.ts +0 -1
  292. package/dist/src/utils/__tests__/timezone.spec.d.ts +0 -1
  293. package/dist/src/utils/grid-registration.spec.d.ts +0 -1
  294. package/dist/types/file-manager.js +0 -12
  295. package/dist/use-file-manager-tabs-Bzzwwcgk.cjs +0 -3
  296. package/dist/utils/path.js +0 -4
@@ -1,76 +0,0 @@
1
- import { DropdownItem } from '../../../../models/dropdown';
2
- import { TabModel } from '../../../../models/tab';
3
- import { ButtonVariant } from '../../../../types/button';
4
- import { DialFileManagerTabs } from '../../../../types/file-manager';
5
- import { FC } from 'react';
6
- export interface DialFileManagerToolbarProps {
7
- tabs?: TabModel[];
8
- activeTab?: string;
9
- areHiddenFilesVisible: boolean;
10
- hiddenFilesSwitcherLabel?: string;
11
- showHiddenFilesLabel?: string;
12
- hideHiddenFilesLabel?: string;
13
- isNewButtonVisible?: boolean;
14
- isNewButtonDisabled?: boolean;
15
- newButtonVariant?: ButtonVariant;
16
- newButtonDropdownItems?: DropdownItem[];
17
- newButtonLabel?: string;
18
- showHiddenFilesToggle?: boolean;
19
- onTabChange?: (id: DialFileManagerTabs) => void;
20
- onToggleHiddenFiles?: (value: boolean) => void;
21
- disabledNewButtonTooltip?: string;
22
- }
23
- /**
24
- * DialFileManagerToolbar — A configurable, responsive toolbar component for file management views.
25
- *
26
- * Provides a flexible toolbar interface for file managers or similar UIs, supporting:
27
- * - Tab navigation for switching between file sections or views
28
- * - A toggle for showing or hiding hidden files
29
- * - A refresh button for reloading content
30
- * - An optional "New" button or dropdown for creating new files or folders
31
- *
32
- * @example
33
- * ```tsx
34
- * const tabs: TabModel[] = [
35
- * { id: 'all', name: 'All Files' },
36
- * { id: 'favorites', name: 'Favorites' },
37
- * ];
38
- *
39
- * <DialFileManagerToolbar
40
- * tabs={tabs}
41
- * activeTab="all"
42
- * areHiddenFilesVisible={false}
43
- * onTabChange={(id) => console.log('Switched to tab:', id)}
44
- * onToggleHiddenFiles={(visible) => console.log('Hidden files visible:', visible)}
45
- * onRefresh={() => console.log('Refreshed')}
46
- * isNewButtonVisible
47
- * newButtonDropdownItems={[
48
- * { key: 'folder', label: 'New Folder' },
49
- * { key: 'file', label: 'Upload File' },
50
- * ]}
51
- * />
52
- * ```
53
- *
54
- * @param [tabs] - List of tab definitions to display, each represented by a `TabModel` containing `id` and `name`.
55
- * @param [activeTab] - The ID of the currently active tab.
56
- * @param areHiddenFilesVisible - Whether hidden files are currently visible.
57
- * @param [hiddenFilesSwitcherLabel='Hidden files'] - Label for the hidden files toggle control.
58
- * @param [showHiddenFilesLabel='Show hidden'] - Label shown when hidden files are not visible.
59
- * @param [hideHiddenFilesLabel='Hide hidden'] - Label shown when hidden files are visible.
60
- * @param [onTabChange] - Callback fired when the user switches between tabs. Receives the selected tab ID.
61
- * @param [onToggleHiddenFiles] - Callback fired when the hidden files visibility is toggled. Receives the new visibility state.
62
- * @param [isNewButtonVisible] - Whether the "New" button or dropdown should be displayed.
63
- * @param [isNewButtonDisabled] - Whether the "New" button is disabled.
64
- * @param [newButtonVariant=ButtonVariant.Primary] - Visual style variant for the new button.
65
- * @param [newButtonDropdownItems=[]] - Dropdown items available under the new button. If empty, a single new button is shown instead.
66
- * @param [newButtonLabel='New'] - Label text for the new button.
67
- * @param [disabledNewButtonTooltip] - Tooltip text to show when the new button is disabled.
68
- *
69
- * @remarks
70
- * - Tabs are rendered via `DialTabs`.
71
- * - The hidden files toggle uses `DialSwitch`.
72
- * - The refresh and new actions use `DialButton` or dropdown variants for consistency.
73
- * - The toolbar automatically adapts its layout for different screen sizes.
74
- * - When `newButtonDropdownItems` is provided, the new button becomes a dropdown menu.
75
- */
76
- export declare const DialFileManagerToolbar: FC<DialFileManagerToolbarProps>;
@@ -1,50 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { DialFile } from '../../../../models/file';
3
- export interface FileMetadataPopupProps {
4
- open: boolean;
5
- onClose: () => void;
6
- fileMetadata?: DialFile;
7
- loading?: boolean;
8
- header?: ReactNode;
9
- nameLabel?: string;
10
- pathLabel?: string;
11
- modifiedDateLabel?: string;
12
- sizeLabel?: string;
13
- authorLabel?: string;
14
- dateLocale?: Intl.LocalesArgument;
15
- dateOptions?: Intl.DateTimeFormatOptions;
16
- }
17
- /**
18
- * FileMetadataPopup
19
- *
20
- * A popup dialog for displaying file metadata information.
21
- * Shows file details like name, path, modified date, size, and author.
22
- * Displays a loading skeleton while metadata is being fetched.
23
- *
24
- * @example
25
- * ```tsx
26
- * <FileMetadataPopup
27
- * open={isOpen}
28
- * onClose={handleClose}
29
- * fileMetadata={file}
30
- * loading={isLoading}
31
- * title="Information"
32
- * dateLocale="en-US"
33
- * dateOptions={{ year: 'numeric', month: 'short', day: '2-digit' }}
34
- * />
35
- * ```
36
- *
37
- * @param open - Whether the popup is visible
38
- * @param onClose - Callback fired when the popup is closed
39
- * @param [fileMetadata] - File metadata to display
40
- * @param [loading] - Whether metadata is being loaded
41
- * @param [title="Information"] - Title of the popup
42
- * @param [nameLabel="Name:"] - Label for the name field
43
- * @param [pathLabel="Path:"] - Label for the path field
44
- * @param [modifiedDateLabel="Modified Date:"] - Label for the modified date field
45
- * @param [sizeLabel="Size:"] - Label for the size field
46
- * @param [authorLabel="Author:"] - Label for the author field
47
- * @param [dateLocale="en-US"] - Locale for date formatting
48
- * @param [dateOptions] - Options for date formatting
49
- */
50
- export declare const FileMetadataPopup: FC<FileMetadataPopupProps>;
@@ -1,6 +0,0 @@
1
- export declare const LABEL_COLUMN_WIDTH = 100;
2
- export declare const SKELETON_HEIGHT = 16;
3
- export declare const LABEL_CLASS = "text-secondary";
4
- export declare const VALUE_CLASS = "text-primary min-w-0";
5
- export declare const PATH_CLASS = "text-primary break-words min-w-0";
6
- export declare const SKELETON_CLASS = "bg-layer-2";
@@ -1,135 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { DialFile } from '../../../../models/file';
3
- import { DropdownItem } from '../../../../models/dropdown';
4
- export interface DialFoldersTreeProps {
5
- items: DialFile[];
6
- expandedPaths?: Set<string>;
7
- loadingPaths?: Set<string>;
8
- loadedPaths?: Set<string>;
9
- sharedByMePaths?: Set<string>;
10
- selectedPath?: string;
11
- renamedPath?: string;
12
- createdFolderPath?: string | null;
13
- showFiles?: boolean;
14
- rootItemPath?: string;
15
- rootItemLabel?: string;
16
- emptyStateTitle?: string;
17
- emptyStateDescription?: string;
18
- emptyStateIcon?: ReactNode;
19
- onItemClick?: (item: DialFile) => void;
20
- onRenameSave?: (value: string) => void;
21
- onRenameCancel?: () => void;
22
- onRenameValidate?: (value: string, item: DialFile) => string | null;
23
- onCreateFolderSave?: (value: string) => void;
24
- onCreateFolderCancel?: () => void;
25
- getContextMenuItems?: (item: DialFile) => DropdownItem[];
26
- areHiddenFilesVisible?: boolean;
27
- onExpandedPathsChange?: (expandedPaths: Set<string>) => void;
28
- forbiddenSymbolsRegExp?: RegExp;
29
- forbiddenSymbolsTooltip?: ReactNode;
30
- newFolderDefaultName?: string;
31
- }
32
- /**
33
- * DialFoldersTree — A hierarchical folder tree component with nested expand/collapse support, selection highlighting,
34
- * Design system 1.0
35
- * and optional file display.
36
- *
37
- * @deprecated Import `DialFoldersTree` from `@epam/ai-dial-react-file-manager` instead.
38
- *
39
- * Provides a fully interactive, recursive folder structure with:
40
- * - Expandable and collapsible items
41
- * - Optional file visibility
42
- * - Loading state indicators for specific paths
43
- * - Inline renaming support for folders or files
44
- * - Multi-item selection highlighting
45
- * - Context menu integration via `DialDropdown`
46
- * - Recursive rendering with indentation and icons
47
- * - Customizable empty state (title, description, and icon)
48
- *
49
- * @example
50
- * ```tsx
51
- * // Basic usage with folders and files
52
- * const items: DialFile[] = [
53
- * {
54
- * path: '/documents',
55
- * name: 'Documents',
56
- * nodeType: DialFileNodeType.FOLDER,
57
- * items: [
58
- * {
59
- * path: '/documents/file.txt',
60
- * name: 'file.txt',
61
- * nodeType: DialFileNodeType.FILE,
62
- * },
63
- * ],
64
- * },
65
- * ];
66
- *
67
- * <DialFoldersTree items={items} showFiles />
68
- *
69
- * // With expanded and selected items
70
- * const expandedPaths = new Set(['/documents']);
71
- *
72
- * <DialFoldersTree
73
- * items={items}
74
- * expandedPaths={expandedPaths}
75
- * selectedPath="/documents/file.txt"
76
- * onItemClick={(item) => console.log('Clicked:', item.path)}
77
- * />
78
- *
79
- * // With inline renaming and validation
80
- * <DialFoldersTree
81
- * items={items}
82
- * renamedPath="/documents"
83
- * onRenameValidate={(value) => (value.trim() ? null : 'Name cannot be empty')}
84
- * onRenameSave={(newValue) => console.log('Saved new name:', newValue)}
85
- * onRenameCancel={() => console.log('Edit cancelled')}
86
- * />
87
- *
88
- * // With custom empty state and context menu
89
- * const getContextMenuItems = (item: DialFile): DropdownItem[] => [
90
- * { key: 'rename', label: 'Rename' },
91
- * { key: 'delete', label: 'Delete', danger: true },
92
- * ];
93
- *
94
- * <DialFoldersTree
95
- * items={[]}
96
- * emptyStateTitle="No Content"
97
- * emptyStateDescription="Upload files or create a new folder to get started."
98
- * emptyStateIcon={<IconFolderPlus />}
99
- * getContextMenuItems={getContextMenuItems}
100
- * />
101
- * ```
102
- *
103
- * @param [items] - Array of folder and file nodes to display in the tree.
104
- * @param [expandedPaths] - Set of folder paths that should be expanded.
105
- * @param [loadingPaths] - Set of folder paths currently loading (shows spinner or placeholder).
106
- * @param [loadedPaths] - Set of folder paths that have loaded.
107
- * @param [sharedByMePaths] - Set of items paths that the user has shared with others. Enables UI indicators (icons/badges).
108
- * @param [selectedPath] - Path representing the currently selected folder or file.
109
- * @param [renamedPath] - Path of the folder or file currently being edited.
110
- * @param [showFiles=false] - Whether to show files in addition to folders.
111
- * @param [emptyStateTitle='No Folders'] - Title text displayed when there are no items.
112
- * @param [emptyStateDescription] - Optional description text for the empty state.
113
- * @param [emptyStateIcon] - Optional icon to display in the empty state.
114
- * @param [onItemClick] - Callback fired when a folder or file is clicked (receives the corresponding `DialFile` node).
115
- * @param [onRenameSave] - Callback fired when editing is confirmed with a valid name (receives the new name).
116
- * @param [onRenameCancel] - Callback fired when editing is cancelled.
117
- * @param [onRenameValidate] - Function to validate the new name during editing. Should return an error string or `null` if valid.
118
- * @param [getContextMenuItems] - Function returning context menu items for a given node.
119
- * @param [areHiddenFilesVisible=false] - Whether hidden files (dotfiles) should be visible in the tree.
120
- * @param [rootItemPath] - Path of the folder to treat as the custom root node (no context menu, special label).
121
- * @param [rootItemLabel] - Label to display for the root node instead of its actual name.
122
- * @param [forbiddenSymbolsRegExp] - Optional RegExp used to validate folder and file names for forbidden characters.
123
- * @param [forbiddenSymbolsTooltip] - Optional tooltip content displayed when a name contains forbidden characters.
124
- * @param [createdFolderPath] - Optional Path of the new created folder.
125
- * @param [onCreateFolderSave] - Optional Callback fired when create new folder is confirmed
126
- * @param [onCreateFolderCancel] - Optional Callback fired when create new folder is cancelled
127
- * @param [newFolderDefaultName] - Optional new folder default name.
128
- * @remarks
129
- * - Folder and file data must follow the `DialFile` model.
130
- * - The `expandedPaths`, `loadingPaths`, `selectedPath`, and `renamedPath` props are externally controlled.
131
- * - Inline renaming is fully customizable using `onRenameSave`, `onRenameCancel`, and `onRenameValidate`.
132
- * - Context menus can be attached to both folders and files using `getContextMenuItems`.
133
- * - Use `showFiles={false}` to render only folders for a simplified tree.
134
- */
135
- export declare const DialFoldersTree: FC<DialFoldersTreeProps>;
@@ -1,6 +0,0 @@
1
- export declare const CARET_ICON_PROPS: {
2
- size: number;
3
- stroke: number;
4
- };
5
- export declare const FOLDER_LEVEL_PADDING = 26;
6
- export declare const NEW_FOLDER_TEMP_NAME = "__new_folder";
@@ -1,13 +0,0 @@
1
- export interface UseExpandedPathsOptions {
2
- expandedPaths?: Set<string>;
3
- onExpandedPathsChange?: (expandedPaths: Set<string>) => void;
4
- }
5
- export declare const useExpandedPaths: (options?: UseExpandedPathsOptions) => {
6
- expandedPaths: Set<string>;
7
- setExpandedPaths: (newSet: Set<string>) => void;
8
- togglePath: (path: string) => void;
9
- collapseAll: () => void;
10
- expandPath: (path: string) => void;
11
- collapsePath: (path: string) => void;
12
- isControlled: boolean;
13
- };
@@ -1,21 +0,0 @@
1
- import { FileManagerColumnKey } from '../../types/file-manager.ts';
2
- export declare const containerBaseClassName = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1";
3
- export declare const toolbarBaseClassName = "w-full text-secondary flex items-center gap-2";
4
- export declare const mainGridClassName = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden";
5
- export declare const contentGridClassName = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4";
6
- export declare const contentHeaderClassName = "items-center";
7
- export declare const treeBaseClassName = "h-full rounded bg-layer-3 text-secondary min-w-0";
8
- export declare const gridBaseClassName = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0";
9
- export declare const actionsColumnButtonClassName = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto";
10
- export declare const sidebarWidth = 280;
11
- export declare const sidebarTitleDefault = "Files";
12
- export declare const BASE_FILE_MANAGER_ICON_SIZE = 20;
13
- export declare const FILES_DATA_TRANSFER_TYPE = "Files";
14
- export declare const FOLDER_PLACEHOLDER_FILE_NAME = ".dial_folder";
15
- export declare const DEFAULT_FOLDER_BASE_NAME = "New folder";
16
- export declare const FOLDERS_TREE_PANEL_MIN_WIDTH = 280;
17
- export declare const FOLDERS_TREE_PANEL_MAX_WIDTH = 460;
18
- export declare const COMPACT_VIEW_HEADER_HEIGHT = 44;
19
- export declare const COMPACT_VIEW_FILE_ROW_HEIGHT = 56;
20
- export declare const DEFAULT_COMPACT_VIEW_WIDTH_BREAKPOINT = 800;
21
- export declare const DEFAULT_VISIBLE_COLUMN: FileManagerColumnKey[];
@@ -1,6 +0,0 @@
1
- export declare const DEFAULT_WARNINGS: {
2
- hiddenItemWarning: string;
3
- };
4
- export declare const DEFAULT_ERRORS: {
5
- consecutiveDotsError: string;
6
- };
@@ -1,30 +0,0 @@
1
- import { DialFile } from '../../../models/file';
2
- import { DialFileManagerActions } from '../../../types/file-manager';
3
- import { DialActionDropdownItem } from '../components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar';
4
- export interface UseBulkActionsProps {
5
- selectedFiles: Map<string, DialFile>;
6
- actionLabels?: {
7
- [DialFileManagerActions.Duplicate]?: string;
8
- [DialFileManagerActions.Copy]?: string;
9
- [DialFileManagerActions.Rename]?: string;
10
- [DialFileManagerActions.Download]?: string;
11
- [DialFileManagerActions.Unshare]?: string;
12
- [DialFileManagerActions.Delete]?: string;
13
- [DialFileManagerActions.Move]?: string;
14
- [DialFileManagerActions.RemoveAccess]?: string;
15
- };
16
- onDuplicate: (files: DialFile[]) => void;
17
- onCopy: (files: DialFile[]) => void;
18
- onMove: (files: DialFile[]) => void;
19
- onDownload: (files: DialFile[]) => void;
20
- onUnshare?: (files: DialFile[]) => void;
21
- onRemoveAccess?: (files: DialFile[]) => void;
22
- onRename: (filePath: string) => void;
23
- onDelete: (files: DialFile[], parentFolderPath: string) => void;
24
- getCurrentFolderPath: () => string;
25
- sharedWithMeIds?: string[];
26
- sharedByMePaths?: Set<string>;
27
- onClearSelection: () => void;
28
- forbiddenSymbolsRegExp?: RegExp;
29
- }
30
- export declare const useBulkActions: ({ selectedFiles, actionLabels, onDuplicate, onCopy, onMove, onDownload, onUnshare, onRemoveAccess, onDelete, getCurrentFolderPath, sharedWithMeIds, sharedByMePaths, onClearSelection, forbiddenSymbolsRegExp, }: UseBulkActionsProps) => DialActionDropdownItem[];
@@ -1,9 +0,0 @@
1
- export interface UseCollapseTreeOptions {
2
- collapsed?: boolean;
3
- onCollapseChange?: (collapsed: boolean) => void;
4
- }
5
- export declare const useCollapseTree: (options?: UseCollapseTreeOptions) => {
6
- isTreeCollapsed: boolean;
7
- toggleTreeCollapse: () => void;
8
- setIsTreeCollapsed: (value: boolean) => void;
9
- };
@@ -1,27 +0,0 @@
1
- import { DialFile } from '../../../models/file';
2
- import { DialCopiedItem } from '../../../models/file-manager';
3
- import { FileConflictDecision } from '../components/ConflictResolutionPopup/ConflictResolutionPopup';
4
- import { DialFileManagerConflictActions } from '../../../types/file-manager';
5
- export interface UseConflictResolutionOptions {
6
- getDestinationFiles: (path: string) => DialFile[];
7
- onResolve?: (items: DialCopiedItem[], destinationFolder: string) => void;
8
- }
9
- export interface ConflictResolutionResult {
10
- hasConflicts: boolean;
11
- conflicts: DialFile[];
12
- }
13
- export declare const useConflictResolution: ({ getDestinationFiles, onResolve, }: UseConflictResolutionOptions) => {
14
- conflictingFiles: DialFile[];
15
- conflictResolutionOpen: boolean;
16
- hasActiveConflictRef: import('react').RefObject<boolean>;
17
- checkForConflicts: (destinationFolder: string, files: DialFile[]) => ConflictResolutionResult;
18
- startConflictResolution: (destinationFolder: string, files: DialFile[], metadata?: Record<string, unknown>) => ConflictResolutionResult;
19
- resolveConflictsWithStrategy: (destinationFolder: string, files: DialFile[], overwrite: boolean, metadata?: Record<string, unknown>) => DialCopiedItem[];
20
- resolveConflictsWithDecisions: (destinationFolder: string, files: DialFile[], decisions: Map<string, DialFileManagerConflictActions>, metadata?: Record<string, unknown>) => DialCopiedItem[];
21
- openConflictResolution: (files: DialFile[]) => void;
22
- closeConflictResolution: () => void;
23
- handleReplaceAll: () => void;
24
- handleDuplicateAll: () => void;
25
- handleCancelAll: () => void;
26
- handleDecideForEach: (decisions: FileConflictDecision[]) => void;
27
- };
@@ -1,13 +0,0 @@
1
- export interface UseCurrentPathOptions {
2
- path?: string;
3
- defaultPath?: string;
4
- onPathChange?: (nextPath?: string) => void;
5
- onSelectionClear?: () => void;
6
- }
7
- interface UseCurrentPathResult {
8
- currentPath?: string;
9
- setCurrentPath: (nextPath?: string) => void;
10
- handlePathChange: (nextPath?: string) => void;
11
- }
12
- export declare const useCurrentPath: ({ path, defaultPath, onPathChange, onSelectionClear, }: UseCurrentPathOptions) => UseCurrentPathResult;
13
- export {};
@@ -1,37 +0,0 @@
1
- import { DialFile } from '../../../models/file';
2
- import { DialCopiedItem } from '../../../models/file-manager';
3
- import { FileConflictDecision } from '../components/ConflictResolutionPopup/ConflictResolutionPopup';
4
- import { DestinationFolderMode } from '../../../types/file-manager';
5
- export interface UseFileClipboardOptions {
6
- getDestinationFiles: (path: string) => DialFile[];
7
- getSourceFiles: () => DialFile[];
8
- onCopyFiles?: (items: DialCopiedItem[], destinationFolder: string) => void;
9
- onMoveToFiles?: (items: DialCopiedItem[], sourceFolder: string, destinationFolder: string) => void;
10
- onCopySuccess?: () => void;
11
- onMoveSuccess?: () => void;
12
- onDuplicateSuccess?: () => void;
13
- getCopyHeader?: (itemsCount: number, itemName?: string) => string;
14
- getMoveHeader?: (itemsCount: number, itemName?: string) => string;
15
- }
16
- export declare const useFileClipboard: ({ getDestinationFiles, onCopyFiles, onMoveToFiles, onCopySuccess, onMoveSuccess, onDuplicateSuccess, getCopyHeader, getMoveHeader, }: UseFileClipboardOptions) => {
17
- handleDuplicate: (files: DialFile[]) => void;
18
- handleCloseDestinationFolderPopup: () => void;
19
- handleOpenDestinationFolderPopup: (mode: DestinationFolderMode) => void;
20
- handleCopyTo: (destinationFolder: string) => void;
21
- handleMoveTo: (destinationFolder: string, sourceFolder?: string) => void;
22
- openDestinationFolderPopup: boolean;
23
- destinationFolderMode: DestinationFolderMode;
24
- destinationFolderTitle: string | undefined;
25
- handleSetCopiedFiles: (files: DialFile[]) => void;
26
- handleSetMovedFiles: (files: DialFile[]) => void;
27
- clearState: () => void;
28
- conflictingFiles: DialFile[];
29
- conflictResolutionOpen: boolean;
30
- openConflictResolution: (files: DialFile[]) => void;
31
- closeConflictResolution: () => void;
32
- handleConflictReplace: () => void;
33
- handleConflictCancel: () => void;
34
- handleConflictDuplicate: () => void;
35
- handleConflictDecideForEach: (decisions: FileConflictDecision[]) => void;
36
- sourceFolder: string | undefined;
37
- };
@@ -1,13 +0,0 @@
1
- import { DialFile } from '../../../models/file';
2
- import { DialDeletedItem } from '../../../models/file-manager';
3
- export interface UseFileDeleteOptions {
4
- onDeleteFiles?: (items: DialDeletedItem[], sourceFolder: string) => void;
5
- onDeleteSuccess?: () => void;
6
- }
7
- export declare const useFileDelete: ({ onDeleteFiles, onDeleteSuccess, }: UseFileDeleteOptions) => {
8
- deleteConfirmationOpen: boolean;
9
- itemsToDelete: DialFile[];
10
- openDeleteConfirmation: (items: DialFile[], parentFolderPath: string) => void;
11
- closeDeleteConfirmation: () => void;
12
- confirmDelete: () => void;
13
- };
@@ -1,9 +0,0 @@
1
- import { DialFile } from '../../../models/file';
2
- export interface UseFileDownloadOptions {
3
- onDownloadFiles?: (items: DialFile[]) => void;
4
- customDownloadItemsAction?: (items: DialFile[]) => void;
5
- onDownloadSuccess?: () => void;
6
- }
7
- export declare const useFileDownload: ({ onDownloadFiles, customDownloadItemsAction, onDownloadSuccess, }: UseFileDownloadOptions) => {
8
- handleDownloadFiles: (items: DialFile[]) => void;
9
- };
@@ -1,43 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ColDef } from 'ag-grid-community';
3
- import { DialFile } from '../../../models/file';
4
- import { FileManagerRenameTriggerView, FileManagerColumnKey } from '../../../types/file-manager';
5
- import { FileManagerGridRow } from '../FileManagerContext';
6
- type GridRow = FileManagerGridRow;
7
- export interface FileManagerGridContext {
8
- newFolderTempId?: string;
9
- renamedPath?: string;
10
- renamedItem?: DialFile;
11
- renameTriggerView: FileManagerRenameTriggerView;
12
- sharedByMePaths?: Set<string>;
13
- selectedPaths?: Set<string>;
14
- disabledRowIds?: Set<string>;
15
- forbiddenSymbolsRegExp?: RegExp;
16
- forbiddenSymbolsTooltip?: ReactNode;
17
- cancelFolderCreation: () => void;
18
- saveFolderCreation: (name: string) => Promise<void>;
19
- validateFolderName: (name: string) => string | null;
20
- onRenameValidate: (value: string, item: DialFile) => string | null;
21
- onRenameSave: (value: string) => void;
22
- onRenameCancel: () => void;
23
- getDisplayName: (item: DialFile) => string;
24
- hideSearchPathItemName?: boolean;
25
- filesLoading?: boolean;
26
- }
27
- export interface UseFileManagerColumnsArgs {
28
- userColumnDefs?: (ColDef<GridRow> | ((dateLocale: Intl.LocalesArgument, dateOptions: Intl.DateTimeFormatOptions | undefined, isCompactView: boolean) => ColDef<GridRow, unknown>))[];
29
- filterable: boolean;
30
- dateLocale?: Intl.LocalesArgument;
31
- dateOptions?: Intl.DateTimeFormatOptions;
32
- effectiveVisibleColumns: FileManagerColumnKey[];
33
- isCompactView: boolean;
34
- hasActions: boolean;
35
- actionsColumnDef: ColDef<GridRow>;
36
- rootItemPath?: string;
37
- rootItemLabel?: string;
38
- }
39
- export interface UseFileManagerColumnsResult {
40
- columnDefs: ColDef<GridRow>[];
41
- }
42
- export declare function useFileManagerColumns({ userColumnDefs, filterable, dateLocale, dateOptions, effectiveVisibleColumns, isCompactView, hasActions, actionsColumnDef, rootItemLabel, rootItemPath, }: UseFileManagerColumnsArgs): UseFileManagerColumnsResult;
43
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * Hook to read the File Manager context.
3
- * Throws if used outside of the provider.
4
- *
5
- * @deprecated Import `useFileManagerContext` from `@epam/ai-dial-react-file-manager` instead.
6
- */
7
- export declare const useFileManagerContext: () => import('../FileManagerContext').FileManagerContextValue;
@@ -1,10 +0,0 @@
1
- import { TabModel } from '../../../models/tab';
2
- import { DialFileManagerTabs } from '../../../types/file-manager';
3
- /**
4
- * @deprecated Import `useDialFileManagerTabs` from `@epam/ai-dial-react-file-manager` instead.
5
- */
6
- export declare const useDialFileManagerTabs: (tabLabels?: Record<DialFileManagerTabs, string>, initialTab?: DialFileManagerTabs) => {
7
- activeTab: DialFileManagerTabs;
8
- handleTabChange: (tab: DialFileManagerTabs) => void;
9
- tabs: TabModel[] | undefined;
10
- };
@@ -1,10 +0,0 @@
1
- import { DialFile } from '../../../models/file';
2
- export interface UseFileMetadataProps {
3
- onGetInfo?: (file: DialFile) => void | Promise<void>;
4
- }
5
- export declare const useFileMetadata: ({ onGetInfo }: UseFileMetadataProps) => {
6
- isMetadataPopupOpen: boolean;
7
- selectedFileForMetadata: DialFile | undefined;
8
- openMetadataPopup: (file: DialFile) => Promise<void>;
9
- closeMetadataPopup: () => void;
10
- };
@@ -1,23 +0,0 @@
1
- import { DialFile } from '../../../models/file';
2
- export interface UseFileSearchOptions {
3
- onSearchFiles?: (folder: string, query: string) => void;
4
- clearSearchResults?: () => void;
5
- currentPath?: string;
6
- searchResults?: DialFile[];
7
- searchInProgress?: boolean;
8
- navigationPanelValue?: string | number | null;
9
- onNavigationPanelSearchChange?: (value: string) => void;
10
- allItems?: DialFile[];
11
- activeTab?: string;
12
- }
13
- export interface UseFileSearchReturn {
14
- isSearchMode: boolean;
15
- searchValue: string;
16
- effectiveSearchValue: string;
17
- setSearchValue: (value: string) => void;
18
- handleSearchChange: (value?: string) => void;
19
- handleSearchActivate: (query: string) => void;
20
- handleSearchClear: () => void;
21
- searchResultsRows: DialFile[];
22
- }
23
- export declare function useFileSearch({ onSearchFiles, clearSearchResults, currentPath, searchResults, searchInProgress, navigationPanelValue, onNavigationPanelSearchChange, allItems, activeTab, }: UseFileSearchOptions): UseFileSearchReturn;