@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,8 +0,0 @@
1
- import i from "./db.json.js";
2
- var r, e;
3
- function m() {
4
- return e || (e = 1, r = i), r;
5
- }
6
- export {
7
- m as __require
8
- };
@@ -1,70 +0,0 @@
1
- import { __exports as l } from "../../_virtual/index2.js";
2
- import { __require as R } from "../mime-db/index.js";
3
- import b from "../../_virtual/___vite-browser-external.js";
4
- import { __require as k } from "./mimeScore.js";
5
- var h;
6
- function j() {
7
- return h ? l : (h = 1, (function(i) {
8
- var t = R(), E = b.extname, m = k(), v = /^\s*([^;\s]*)(?:;|\s|$)/, d = /^text\//i;
9
- i.charset = _, i.charsets = { lookup: _ }, i.contentType = g, i.extension = o, i.extensions = /* @__PURE__ */ Object.create(null), i.lookup = q, i.types = /* @__PURE__ */ Object.create(null), i._extensionConflicts = [], C(i.extensions, i.types);
10
- function _(r) {
11
- if (!r || typeof r != "string")
12
- return !1;
13
- var e = v.exec(r), n = e && t[e[1].toLowerCase()];
14
- return n && n.charset ? n.charset : e && d.test(e[1]) ? "UTF-8" : !1;
15
- }
16
- function g(r) {
17
- if (!r || typeof r != "string")
18
- return !1;
19
- var e = r.indexOf("/") === -1 ? i.lookup(r) : r;
20
- if (!e)
21
- return !1;
22
- if (e.indexOf("charset") === -1) {
23
- var n = i.charset(e);
24
- n && (e += "; charset=" + n.toLowerCase());
25
- }
26
- return e;
27
- }
28
- function o(r) {
29
- if (!r || typeof r != "string")
30
- return !1;
31
- var e = v.exec(r), n = e && i.extensions[e[1].toLowerCase()];
32
- return !n || !n.length ? !1 : n[0];
33
- }
34
- function q(r) {
35
- if (!r || typeof r != "string")
36
- return !1;
37
- var e = E("x." + r).toLowerCase().slice(1);
38
- return e && i.types[e] || !1;
39
- }
40
- function C(r, e) {
41
- Object.keys(t).forEach(function(a) {
42
- var u = t[a], f = u.extensions;
43
- if (!(!f || !f.length)) {
44
- r[a] = f;
45
- for (var s = 0; s < f.length; s++) {
46
- var c = f[s];
47
- e[c] = O(c, e[c], a);
48
- const T = M(
49
- c,
50
- e[c],
51
- a
52
- );
53
- T !== e[c] && i._extensionConflicts.push([c, T, e[c]]);
54
- }
55
- }
56
- });
57
- }
58
- function O(r, e, n) {
59
- var a = e ? m(e, t[e].source) : 0, u = n ? m(n, t[n].source) : 0;
60
- return a > u ? e : n;
61
- }
62
- function M(r, e, n) {
63
- var a = ["nginx", "apache", void 0, "iana"], u = e ? a.indexOf(t[e].source) : 0, f = n ? a.indexOf(t[n].source) : 0;
64
- return i.types[o] !== "application/octet-stream" && (u > f || u === f && i.types[o]?.slice(0, 12) === "application/") || u > f ? e : n;
65
- }
66
- })(l), l);
67
- }
68
- export {
69
- j as __require
70
- };
@@ -1,38 +0,0 @@
1
- var t, o;
2
- function v() {
3
- if (o) return t;
4
- o = 1;
5
- var r = {
6
- "prs.": 100,
7
- "x-": 200,
8
- "x.": 300,
9
- "vnd.": 400,
10
- default: 900
11
- }, a = {
12
- nginx: 10,
13
- apache: 20,
14
- iana: 40,
15
- default: 30
16
- // definitions added by `jshttp/mime-db` project?
17
- }, c = {
18
- // prefer application/xml over text/xml
19
- // prefer application/rtf over text/rtf
20
- application: 1,
21
- // prefer font/woff over application/font-woff
22
- font: 2,
23
- // prefer video/mp4 over audio/mp4 over application/mp4
24
- // See https://www.rfc-editor.org/rfc/rfc4337.html#section-2
25
- audio: 2,
26
- video: 3,
27
- default: 0
28
- };
29
- return t = function(e, n = "default") {
30
- if (e === "application/octet-stream")
31
- return 0;
32
- const [u, i] = e.split("/"), S = i.replace(/(\.|x-).*/, "$1"), f = r[S] || r.default, l = a[n] || a.default, s = c[u] || c.default, d = 1 - e.length / 100;
33
- return f + l + s + d;
34
- }, t;
35
- }
36
- export {
37
- v as __require
38
- };
@@ -1,13 +0,0 @@
1
- export declare const editor: {
2
- IStandaloneThemeData: Record<string, unknown>;
3
- IMarker: Record<string, unknown>;
4
- IStandaloneEditorConstructionOptions: Record<string, unknown>;
5
- };
6
- declare const _default: {
7
- editor: {
8
- IStandaloneThemeData: Record<string, unknown>;
9
- IMarker: Record<string, unknown>;
10
- IStandaloneEditorConstructionOptions: Record<string, unknown>;
11
- };
12
- };
13
- export default _default;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,326 +0,0 @@
1
- import { ColDef, GridApi } from 'ag-grid-community';
2
- import { FC, ReactNode, Ref, RefObject } from 'react';
3
- import { ConflictResolutionPopupProps } from './components/ConflictResolutionPopup/ConflictResolutionPopup';
4
- import { FileUploadValidationMessages, FileUploadValidationResult } from './hooks/use-file-upload';
5
- import { RenameValidationMessages } from './hooks/use-item-renaming';
6
- import { DialGridProps } from '../Grid/Grid';
7
- import { DropdownItem } from '../../models/dropdown';
8
- import { DialFile, DialRootFolder } from '../../models/file';
9
- import { DialCopiedItem, DialDeletedItem, DialFileAcceptType, DialFileManagerActionsRef, DialUploadFileItem } from '../../models/file-manager';
10
- import { GridSelectionMode } from '../../models/selection-mode.ts';
11
- import { DialFileManagerActions, FileManagerColumnKey } from '../../types/file-manager';
12
- import { FileManagerGridRow } from './FileManagerContext';
13
- import { DestinationFolderPopupProps } from './components/DestinationFolderPopup/DestinationFolderPopup';
14
- import { DialFileManagerBulkActionsToolbarProps } from './components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar';
15
- import { DialFileManagerNavigationPanelProps } from './components/FileManagerNavigationPanel/FileManagerNavigationPanel';
16
- import { DialFileManagerToolbarProps } from './components/FileManagerToolbar/DialFileManagerToolbar';
17
- import { DialFoldersTreeProps } from './components/FoldersTree/FoldersTree';
18
- type GridRow = FileManagerGridRow;
19
- export type DialFileManagerConflictResolutionPopupOptions = Omit<ConflictResolutionPopupProps, 'open' | 'onClose' | 'onReplace' | 'onDuplicate' | 'conflictingFiles'>;
20
- export type DialFileManagerDestinationFolderPopupOptions = Pick<DestinationFolderPopupProps, 'setDestinationFolderPath' | 'destinationFolderPath' | 'addFolderLabel' | 'copyLabel' | 'moveLabel' | 'hiddenFilesSwitcherLabel' | 'header' | 'onCreateFolder' | 'onCreateFolderValidate' | 'folderCreationValidationMessages' | 'disabledPathTooltip' | 'emptyStateTitle' | 'emptyStateDescription' | 'excludedPaths'> & {
21
- getCopyHeader?: (itemsCount: number, itemName?: string) => string;
22
- getMoveHeader?: (itemsCount: number, itemName?: string) => string;
23
- processDestinationFolderPath?: (path: string) => string;
24
- };
25
- export interface FileMetadataPopupOptions {
26
- fileMetadata?: DialFile;
27
- loading?: boolean;
28
- clearMetadata?: () => void;
29
- header?: ReactNode;
30
- nameLabel?: string;
31
- pathLabel?: string;
32
- modifiedDateLabel?: string;
33
- sizeLabel?: string;
34
- authorLabel?: string;
35
- }
36
- export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 'selectedPath' | 'onItemClick'> {
37
- width?: number;
38
- header?: ReactNode;
39
- containerClassName?: string;
40
- additionalButtons?: ReactNode;
41
- collapsed?: boolean;
42
- onCollapseChange?: (collapsed: boolean) => void;
43
- expandedPaths?: Set<string>;
44
- loadedPaths?: Set<string>;
45
- onExpandedPathsChange?: (expandedPaths: Set<string>) => void;
46
- actionLabels?: {
47
- [DialFileManagerActions.AddSibling]?: string;
48
- [DialFileManagerActions.AddChild]?: string;
49
- [DialFileManagerActions.Duplicate]?: string;
50
- [DialFileManagerActions.Copy]?: string;
51
- [DialFileManagerActions.Rename]?: string;
52
- [DialFileManagerActions.Download]?: string;
53
- [DialFileManagerActions.Delete]?: string;
54
- [DialFileManagerActions.Move]?: string;
55
- [DialFileManagerActions.Unshare]?: string;
56
- [DialFileManagerActions.ManagePermissions]?: string;
57
- [DialFileManagerActions.RemoveAccess]?: string;
58
- };
59
- }
60
- export interface DeleteConfirmationOptions {
61
- cancelLabel?: string;
62
- titleRenderer?: (fileNames: string[]) => ReactNode;
63
- confirmLabel?: string;
64
- contentRenderer?: (fileNames: string[]) => ReactNode;
65
- }
66
- export type NavigationPanelOptions = Omit<DialFileManagerNavigationPanelProps, 'path' | 'makeHref' | 'onItemClick'>;
67
- export interface GridOptions extends Omit<DialGridProps<GridRow>, 'rowData' | 'columnDefs'> {
68
- columnDefs?: (ColDef<GridRow> | ((dateLocale: Intl.LocalesArgument, dateOptions: Intl.DateTimeFormatOptions | undefined, isCompactView: boolean) => ColDef<GridRow, unknown>))[];
69
- filterable?: boolean;
70
- dateLocale?: Intl.LocalesArgument;
71
- dateOptions?: Intl.DateTimeFormatOptions;
72
- showFiles?: boolean;
73
- showFolders?: boolean;
74
- visibleColumns?: FileManagerColumnKey[];
75
- selectionMode?: GridSelectionMode;
76
- wrapCustomCellRenderers?: boolean;
77
- allowDisabledContextMenu?: boolean;
78
- actionLabels?: {
79
- [DialFileManagerActions.AddSibling]?: string;
80
- [DialFileManagerActions.AddChild]?: string;
81
- [DialFileManagerActions.Duplicate]?: string;
82
- [DialFileManagerActions.Copy]?: string;
83
- [DialFileManagerActions.Rename]?: string;
84
- [DialFileManagerActions.Download]?: string;
85
- [DialFileManagerActions.Delete]?: string;
86
- [DialFileManagerActions.Move]?: string;
87
- [DialFileManagerActions.Info]?: string;
88
- [DialFileManagerActions.Unshare]?: string;
89
- [DialFileManagerActions.ManagePermissions]?: string;
90
- [DialFileManagerActions.Preview]?: string;
91
- [DialFileManagerActions.RemoveAccess]?: string;
92
- };
93
- }
94
- export type NewAction = Pick<DropdownItem, 'label' | 'icon'>;
95
- export type ToolbarOptions = Omit<DialFileManagerToolbarProps, 'areHiddenFilesVisible' | 'onToggleHiddenFiles'> & {
96
- newActions?: {
97
- uploadFiles?: NewAction;
98
- newFolder?: NewAction;
99
- uploadArchive?: NewAction;
100
- newItem?: NewAction;
101
- };
102
- showHiddenFilesToggle?: boolean;
103
- };
104
- export type BulkActionsToolbarOptions = Omit<DialFileManagerBulkActionsToolbarProps, 'onClearSelection' | 'actions' | 'selectedCount'> & {
105
- actionLabels?: {
106
- [DialFileManagerActions.Duplicate]?: string;
107
- [DialFileManagerActions.Copy]?: string;
108
- [DialFileManagerActions.Download]?: string;
109
- [DialFileManagerActions.Delete]?: string;
110
- [DialFileManagerActions.Move]?: string;
111
- [DialFileManagerActions.Unshare]?: string;
112
- [DialFileManagerActions.RemoveAccess]?: string;
113
- };
114
- };
115
- export interface CreateFolderValidationMessages {
116
- emptyName?: string;
117
- duplicateName?: string;
118
- forbiddenChars?: string;
119
- }
120
- export interface DialFileManagerProps {
121
- path?: string;
122
- defaultPath?: string;
123
- className?: string;
124
- managerLabel?: ReactNode;
125
- gridClassName?: string;
126
- allowedFileTypes?: DialFileAcceptType[];
127
- items?: DialFile[];
128
- rootItem?: DialRootFolder;
129
- filesLoading?: boolean;
130
- sharedByMePaths?: Set<string>;
131
- maxSelectableFileSize?: number;
132
- selectedPaths?: Set<string>;
133
- defaultSelectedPaths?: Set<string>;
134
- onSelectedPathsChange?: (paths: Set<string>) => void;
135
- showHiddenFiles?: boolean;
136
- onShowHiddenFilesChange?: (value: boolean) => void;
137
- treeOptions?: FileTreeOptions;
138
- toolbarOptions?: ToolbarOptions;
139
- showNavigationPanel?: boolean;
140
- navigationPanelOptions?: NavigationPanelOptions;
141
- gridOptions?: GridOptions;
142
- bulkActionsToolbarOptions?: BulkActionsToolbarOptions;
143
- deleteConfirmationOptions?: DeleteConfirmationOptions;
144
- destinationFolderPopupOptions?: DialFileManagerDestinationFolderPopupOptions;
145
- conflictResolutionPopupOptions?: DialFileManagerConflictResolutionPopupOptions;
146
- compactViewWidthBreakpoint?: number;
147
- customBreakpointRef?: RefObject<HTMLElement | null>;
148
- onPathChange?: (nextPath?: string) => void;
149
- onTableFileClick?: (file: GridRow) => void;
150
- handleSelectionClick?: (file: GridRow[]) => void;
151
- onGridApiChange?: (api: GridApi) => void;
152
- onCopyFiles?: (items: DialCopiedItem[], destinationFolder: string) => void;
153
- onMoveToFiles?: (items: DialCopiedItem[], sourceFolder: string, destinationFolder: string) => void;
154
- onDeleteFiles?: (items: DialDeletedItem[], sourceFolder: string) => void;
155
- onDownloadFiles?: (items: DialFile[]) => void;
156
- onRenameValidate?: (value: string, item: DialFile) => string | null;
157
- renameValidationMessages?: RenameValidationMessages;
158
- forbiddenSymbolsRegExp?: RegExp;
159
- forbiddenSymbolsTooltip?: ReactNode;
160
- skipForbiddenSymbolsCheckForActions?: boolean;
161
- onCreateFolder?: (file: DialUploadFileItem, folderPath: string, fileId: string) => void | Promise<void>;
162
- onCreateFolderValidate?: (name: string, parentFolder: DialFile) => string | null;
163
- folderCreationValidationMessages?: CreateFolderValidationMessages;
164
- getDisabledTooltip?: (row: FileManagerGridRow) => string | undefined;
165
- fileTooLargeTooltip?: string;
166
- unsupportedFileTypeTooltip?: string;
167
- onUploadFiles?: (files: DialUploadFileItem[], destinationFolder: string) => void;
168
- prepareUploadFileName?: (name: string) => string;
169
- onValidateUpload?: (files: DialUploadFileItem[], existingFiles: DialFile[], destinationFolder: string) => FileUploadValidationResult | Promise<FileUploadValidationResult>;
170
- maxFileSize?: number;
171
- uploadValidationMessages?: FileUploadValidationMessages;
172
- onUploadArchive?: (file: File, name: string, destinationFolder: string) => void;
173
- uploadEnabled?: boolean;
174
- fileMetadataPopupOptions?: FileMetadataPopupOptions;
175
- onGetInfo?: (file: DialFile) => void | Promise<void>;
176
- onUnshareFiles?: (files: DialFile[]) => void | Promise<void>;
177
- onRemoveFilesAccess?: (files: DialFile[]) => void | Promise<void>;
178
- actionsRef?: Ref<DialFileManagerActionsRef>;
179
- onSearchFiles?: (folder: string, query: string) => void;
180
- searchInProgress?: boolean;
181
- searchResults?: DialFile[];
182
- clearSearchResults?: () => void;
183
- emptyStateIcon?: ReactNode;
184
- emptyStateTitle?: string;
185
- emptyStateDescription?: string;
186
- sharedWithMeIds?: string[];
187
- onFolderPopupPathChange?: (newPath?: string) => void;
188
- onManagePermissions?: (path?: string) => void;
189
- onPreview?: (path?: string) => void;
190
- onOpenInNewTab?: (file: DialFile) => void;
191
- previewExtensions?: string[];
192
- isRenameFileAvailable?: boolean;
193
- isDuplicateFolderAvailable?: boolean;
194
- customUploadFileAction?: (currentPath?: string, currentFolder?: DialFile) => void;
195
- customCreateNewItemAction?: (currentPath?: string, currentFolder?: DialFile) => void;
196
- customDuplicateAction?: (items?: DialFile[]) => void;
197
- customDeleteItemsAction?: (items: DialFile[], parentFolderPath: string) => void;
198
- customDownloadItemsAction?: (items?: DialFile[]) => void;
199
- nonClickableTableColumns?: FileManagerColumnKey[];
200
- hideSearchPathItemName?: boolean;
201
- showHiddenFileSwitcherInDestinationPopup?: boolean;
202
- showCreateFolderButtonInDestinationPopup?: boolean;
203
- autoSelectUploadedItems?: boolean;
204
- maxNewFolderDepth?: number;
205
- onNewFolderDepthExceeded?: () => void;
206
- initialUploadFilesOpen?: boolean;
207
- }
208
- /**
209
- * File Manager layout with a collapsible folders tree, breadcrumb/search header, and a data grid.
210
- * aliases: FileExplorer|FileBrowser
211
- * Design system 1.0
212
- *
213
- * @deprecated Import `DialFileManager` from `@epam/ai-dial-react-file-manager` instead.
214
- *
215
- * Features:
216
- * - Global `path` drives both the breadcrumb trail and the visible folder in the grid.
217
- * - The grid shows children of the current folder. When a search query is present, it scans all nested descendants.
218
- * - Pluggable tree, navigation panel, and grid behaviors via `treeOptions`, `navigationPanelOptions`, and `gridOptions`.
219
- * - Optional filters toggle via `gridOptions.filterable` (default `true`).
220
- * - Supports bulk actions toolbar when items are selected.
221
- *
222
- * @example
223
- * ```tsx
224
- * // Minimal usage
225
- * <DialFileManager items={files} path="/All files" />
226
- *
227
- * // With loading state
228
- * <DialFileManager items={files} path="/All files" filesLoading={true} />
229
- *
230
- * // With controlled search and disabled grid filters
231
- * const [query, setQuery] = useState('');
232
- * <DialFileManager
233
- * items={files}
234
- * path="/All files/Design"
235
- * navigationPanelOptions={{
236
- * searchable: true,
237
- * value: query,
238
- * onSearchChange: setQuery,
239
- * }}
240
- * gridOptions={{ filterable: false }}
241
- * />
242
- *
243
- * // With custom tree width and title
244
- * <DialFileManager
245
- * items={files}
246
- * treeOptions={{ width: 300, title: 'Explorer', showFiles: true }}
247
- * />
248
- *
249
- * // With explicit provider (advanced apps)
250
- * <FileManagerProvider items={files} path="/All files">
251
- * <MyCustomHeader />
252
- * <DialFileManagerView /> // internal view
253
- * <MyCustomFooter />
254
- * </FileManagerProvider>
255
- * ```
256
- *
257
- * @param [path] - Absolute path of the current location (e.g. "/All files/Design/Icons")
258
- * @param [defaultPath] - Initial path used in uncontrolled mode (applied only on first render)
259
- * @param [className] - Additional classes for the root container
260
- * @param [gridClassName] - Additional classes for the grid container
261
- * @param [items] - Full hierarchical list of files and folders used by both tree and grid
262
- * @param [rootItem] - Optional root folder item to represent the top-level container in the tree
263
- * @param [filesLoading=false] - When true, shows skeleton loading state in the grid
264
- * @param [selectedPaths] - Controlled set of selected item paths
265
- * @param [defaultSelectedPaths] - Initial selected paths used in uncontrolled mode
266
- *
267
- * @param [treeOptions] - Options that configure the collapsible sidebar and folders tree
268
- * @param [showNavigationPanel] - Determines whether to display the navigation panel.
269
- * @param [navigationPanelOptions] - Options for the breadcrumb and search panel (value/onSearchChange for controlled search)
270
- * @param [toolbarOptions] - Options for the file manager toolbar
271
- * @param [gridOptions] - Options forwarded to `DialGrid`; supports `columnDefs` override and `filterable` flag and date locale/options
272
- * @param [bulkActionsToolbarOptions] - Options for the bulk actions toolbar shown when items are selected
273
- * @param [deleteConfirmationOptions] - Options for the delete confirmation popup
274
- * @param [destinationFolderPopupOptions.excludedPaths] - Paths to hide from the Copy/Move destination popup only (e.g. a root folder that shouldn't be a valid destination); the main tree/grid are unaffected
275
- *
276
- * @param [compactViewWidthBreakpoint=DEFAULT_COMPACT_VIEW_WIDTH_BREAKPOINT] - Width (px) below which the component switches to compact view.
277
- *
278
- * @param [onPathChange] - Callback fired when user navigates via tree or breadcrumb
279
- * @param [onSelectedPathsChange] - Callback fired when the selected paths change
280
- * @param [onTableFileClick] - Callback fired when a file row is clicked in the grid
281
- *
282
- * @param [onCopyFiles] - Callback fired when files copy-paste
283
- * @param [onMoveToFiles] - Callback fired when files cut-paste or rename
284
- * @param [onDeleteFiles] - Callback fired when files are deleted
285
- *
286
- * @param [onRenameValidate] - Optional callback to validate a file or folder name during renaming. Should return an error message string if the name is invalid, or null if it's valid.
287
- * @param [renameValidationMessages] - Optional custom validation messages for renaming files and folders. Note that you need to add `${NotificationVariant.Warning}__` prefix to the `hiddenItemWarning` message to display it as a warning with the warning icon.
288
- * @param [forbiddenSymbolsRegExp] - Optional RegExp will be used in the validation for the files and folders names. The "g" and "y" flags are not allowed in this RegExp and will be ignored.
289
- * @param [forbiddenSymbolsTooltip] - Optional tooltip displayed when a file or folder name contains forbidden characters
290
- * @param [skipForbiddenSymbolsCheckForActions] - When provided, skips the forbidden-symbols check when building row action menus, so all actions are shown even for items whose names contain forbidden characters.
291
- *
292
- * @param [onDownloadFiles] - Callback fired when files are downloaded
293
- *
294
- * @param [onUploadArchive] - Callback fired when archive files are uploaded
295
- * @param [onUploadFiles] - Callback fired when files are uploaded
296
- * @param [prepareUploadFileName] - Optional mapper applied to each uploaded item's name before conflict resolution runs and before `onUploadFiles`/`onUploadArchive` are called. Use it to sanitize or normalize names (e.g. stripping forbidden symbols). Conflict detection is performed against the mapped names, so renames take place before the conflict check.
297
- * @param [onValidateUpload] - Callback to validate files before upload
298
- * @param [maxFileSize] - Maximum allowed file size for uploads in bytes
299
- * @param [uploadValidationMessages] - Custom validation messages for file uploads. Consumers can customize these strings for a11y and copy consistency.
300
- * @param [uploadEnabled=true] - Whether files uploads are enabled
301
- * @param [autoSelectUploadedItems=false] - When true, automatically selects newly uploaded or created items (files, archives, folders) after they appear in the current directory. Useful in attach flows where the user expects immediate selection feedback.
302
- *
303
- * @param [sharedByMePaths] - Set of items paths that the user has shared with others. Enables UI indicators (icons/badges) in the tree and grid.
304
- *
305
- * @param [actionsRef] - Ref exposing a limited set of imperative File Manager actions (e.g., creating a folder). Allows parent components to trigger internal behaviors programmatically. This ref is not a DOM ref and should be used only for invoking the component’s public actions API.
306
- *
307
- * @param [allowedFileTypes] - Allowed file types (same format as the HTML `<input accept>` attribute). Controls upload filtering and which items are disabled in the File Manager UI. Supports MIME types, wildcards (e.g. `image/*`), and extensions (e.g. `.svg`).
308
- *
309
- * @param [maxSelectableFileSize] - Maximum allowed file size for selection in bytes
310
- *
311
- * @param [emptyStateIcon] - Optional icon for empty state
312
- * @param [emptyStateTitle] - Optional title text displayed when there are no files.
313
- * @param [emptyStateDescription] - Optional description text displayed below the empty state title.
314
- *
315
- * @param [sharedWithMeIds] - Optional list of file IDs that are shared with the current user.
316
- * @param [unsupportedFileTypeTooltip] - Optional tooltip text displayed when an unsupported file type is selected.
317
- * @param [fileTooLargeTooltip] - Optional tooltip text displayed when a file is too large.
318
- */
319
- export declare const DialFileManager: FC<DialFileManagerProps>;
320
- /**
321
- * Internal view-only component.
322
- * Reads all data from FileManagerContext and renders the actual layout.
323
- * This is what apps can reuse if they want to control the provider manually.
324
- */
325
- export declare const DialFileManagerView: FC;
326
- export {};
@@ -1,181 +0,0 @@
1
- import { DragEvent, ReactNode, Ref, RefObject } from 'react';
2
- import { DialFile, DialRootFolder, DialFileNodeType } from '../../models/file';
3
- import { FileTreeOptions, NavigationPanelOptions, GridOptions, ToolbarOptions, BulkActionsToolbarOptions, DialFileManagerProps, DeleteConfirmationOptions, DialFileManagerDestinationFolderPopupOptions, DialFileManagerConflictResolutionPopupOptions, FileMetadataPopupOptions } from './FileManager';
4
- import { FileUploadValidationMessages } from './hooks/use-file-upload';
5
- import { DropdownItem } from '../../models/dropdown';
6
- import { FileConflictDecision } from './components/ConflictResolutionPopup/ConflictResolutionPopup';
7
- import { DestinationFolderMode, FileManagerColumnKey } from '../../types/file-manager';
8
- import { DialFileAcceptType, DialFileManagerActionsRef } from '../../models/file-manager';
9
- import { GridApi } from 'ag-grid-community';
10
- export interface FileManagerGridRow {
11
- id: string;
12
- name: string;
13
- updatedAt?: string;
14
- size?: number;
15
- author?: string;
16
- path: string;
17
- parentPath?: string | null;
18
- nodeType: DialFileNodeType;
19
- extension?: string;
20
- isTemporary?: boolean;
21
- owner?: string;
22
- contentType?: string;
23
- contentLength?: number;
24
- folderId?: string;
25
- }
26
- export interface FileManagerContextValue {
27
- managerLabel?: ReactNode;
28
- className?: string;
29
- gridClassName?: string;
30
- items: DialFile[];
31
- rootItem?: DialRootFolder;
32
- allowedFileTypes?: DialFileAcceptType[];
33
- maxSelectableFileSize?: number;
34
- filesLoading?: boolean;
35
- treeOptions?: FileTreeOptions;
36
- showNavigationPanel?: boolean;
37
- navigationPanelOptions?: NavigationPanelOptions;
38
- gridOptions?: GridOptions;
39
- toolbarOptions?: ToolbarOptions;
40
- bulkActionsToolbarOptions?: BulkActionsToolbarOptions;
41
- deleteConfirmationOptions?: DeleteConfirmationOptions;
42
- destinationFolderPopupOptions?: DialFileManagerDestinationFolderPopupOptions & {
43
- sourceFolder?: string;
44
- };
45
- conflictResolutionPopupOptions?: DialFileManagerConflictResolutionPopupOptions;
46
- fileMetadataPopupOptions?: FileMetadataPopupOptions;
47
- compactViewWidthBreakpoint?: number;
48
- customBreakpointRef?: RefObject<HTMLElement | null>;
49
- currentPath?: string;
50
- setCurrentPath: (p?: string) => void;
51
- searchValue: string;
52
- effectiveSearchValue: string;
53
- setSearchValue: (v: string) => void;
54
- areHiddenFilesVisible: boolean;
55
- toggleHiddenFilesVisibility: () => void;
56
- isTreeCollapsed: boolean;
57
- toggleTreeCollapse: () => void;
58
- setIsTreeCollapsed: (value: boolean) => void;
59
- selectedPaths: Set<string>;
60
- selectedFiles: Map<string, DialFile>;
61
- setSelectedPaths: (paths: Set<string>) => void;
62
- clearSelection: () => void;
63
- currentFolder?: DialFile;
64
- gridRows: FileManagerGridRow[];
65
- handleCopyTo: (destinationFolder: string) => void;
66
- handleMoveTo: (destinationFolder: string, sourceFolder?: string) => void;
67
- handleDuplicate: (files: DialFile[]) => void;
68
- handleOpenDestinationFolderPopup: (mode: DestinationFolderMode) => void;
69
- handleCloseDestinationFolderPopup: () => void;
70
- openDestinationFolderPopup: boolean;
71
- destinationFolderMode: DestinationFolderMode;
72
- handleSetCopiedFiles: (files: DialFile[]) => void;
73
- handleSetMovedFiles: (files: DialFile[]) => void;
74
- handleGridAddSibling?: (files: DialFile[]) => void;
75
- handleGridAddChild?: (files: DialFile[]) => void;
76
- handleTreeAddSibling?: (files: DialFile[]) => void;
77
- handleTreeAddChild?: (files: DialFile[]) => void;
78
- renamedPath?: string;
79
- renamedItem?: DialFile;
80
- createdFolderPath?: string | null;
81
- onRename: (file: string) => void;
82
- onRenameSave: (value: string) => void;
83
- onRenameCancel: () => void;
84
- onRenameValidate: (value: string, item: DialFile) => string | null;
85
- getDisplayName: (item: DialFile) => string;
86
- forbiddenSymbolsRegExp?: RegExp;
87
- forbiddenSymbolsTooltip?: ReactNode;
88
- skipForbiddenSymbolsCheckForActions?: boolean;
89
- openDeleteConfirmation: (items: DialFile[], parentFolderPath: string) => void;
90
- closeDeleteConfirmation: () => void;
91
- confirmDelete: () => void;
92
- deleteConfirmationOpen: boolean;
93
- itemsToDelete: DialFile[];
94
- handlePathChange: (nextPath?: string) => void;
95
- handleTreeItemClick: (item: DialFile) => void;
96
- handleBreadcrumbItemClick: (href?: string) => void;
97
- handleSearchChange: (value?: string) => void;
98
- handleTableRowClick: (row: FileManagerGridRow) => void;
99
- handleSelectionClick?: (row: FileManagerGridRow[]) => void;
100
- onTableFileClick?: DialFileManagerProps['onTableFileClick'];
101
- handleDownloadFiles: (items: DialFile[]) => void;
102
- onGridApiChange?: (api: GridApi) => void;
103
- isDragging: boolean;
104
- isDraggingOverWindow: boolean;
105
- uploadError?: string;
106
- handleDragEnter: (e: DragEvent) => void;
107
- handleDragLeave: (e: DragEvent) => void;
108
- handleDragOver: (e: DragEvent) => void;
109
- handleDrop: (e: DragEvent) => void;
110
- clearUploadError: () => void;
111
- onUploadFiles?: DialFileManagerProps['onUploadFiles'];
112
- onValidateUpload?: DialFileManagerProps['onValidateUpload'];
113
- maxFileSize?: number;
114
- uploadValidationMessages?: FileUploadValidationMessages;
115
- newActions: DropdownItem[];
116
- isNewButtonVisible: boolean;
117
- isNewButtonDisabled: boolean;
118
- openFileDialog: () => void;
119
- fileInputRef: RefObject<HTMLInputElement | null>;
120
- isCreatingFolder: boolean;
121
- newFolderTempId: string | null;
122
- newFolderDefaultName: string;
123
- startFolderCreation: () => void;
124
- cancelFolderCreation: () => void;
125
- saveFolderCreation: (name: string) => Promise<void>;
126
- validateFolderName: (name: string) => string | null;
127
- conflictingFiles: DialFile[];
128
- conflictResolutionOpen: boolean;
129
- closeConflictResolution: () => void;
130
- handleConflictReplace: () => void;
131
- handleConflictCancel: () => void;
132
- handleConflictDuplicate: () => void;
133
- handleConflictDecideForEach: (decisions: FileConflictDecision[]) => void;
134
- uploadConflictingFiles: DialFile[];
135
- uploadConflictResolutionOpen: boolean;
136
- closeUploadConflictResolution: () => void;
137
- handleUploadConflictReplace: () => void;
138
- handleUploadConflictCancel: () => void;
139
- handleUploadConflictDuplicate: () => void;
140
- handleUploadConflictDecideForEach: (decisions: FileConflictDecision[]) => void;
141
- isMetadataPopupOpen: boolean;
142
- selectedFileForMetadata?: DialFile;
143
- openMetadataPopup: (file: DialFile) => void;
144
- closeMetadataPopup: () => void;
145
- onGetInfo?: (file: DialFile) => void | Promise<void>;
146
- onUnshareFiles?: (file: DialFile[]) => void;
147
- onRemoveFilesAccess?: (file: DialFile[]) => void;
148
- actionsRef?: Ref<DialFileManagerActionsRef>;
149
- sharedByMePaths?: Set<string>;
150
- onSearchFiles?: (folder: string, query: string) => void;
151
- searchInProgress?: boolean;
152
- searchResults?: DialFile[];
153
- clearSearchResults?: () => void;
154
- isSearchMode: boolean;
155
- emptyStateIcon?: ReactNode;
156
- emptyStateTitle?: string;
157
- emptyStateDescription?: string;
158
- sharedWithMeIds?: string[];
159
- onFolderPopupPathChange?: (newPath?: string) => void;
160
- onManagePermissions?: (path?: string) => void;
161
- onPreview?: (path?: string) => void;
162
- onOpenInNewTab?: (file: DialFile) => void;
163
- previewExtensions?: string[];
164
- isRenameFileAvailable?: boolean;
165
- isDuplicateFolderAvailable?: boolean;
166
- customUploadFileAction?: (currentPath?: string, currentFolder?: DialFile) => void;
167
- customCreateNewItemAction?: (currentPath?: string, currentFolder?: DialFile) => void;
168
- customDuplicateAction?: (items?: DialFile[]) => void;
169
- customDeleteItemsAction?: (items: DialFile[], parentFolderPath: string) => void;
170
- customDownloadItemsAction?: (items?: DialFile[]) => void;
171
- nonClickableTableColumns?: FileManagerColumnKey[];
172
- getDisabledTooltip?: (row: FileManagerGridRow) => string | undefined;
173
- fileTooLargeTooltip?: string;
174
- unsupportedFileTypeTooltip?: string;
175
- hideSearchPathItemName?: boolean;
176
- showHiddenFileSwitcherInDestinationPopup?: boolean;
177
- showCreateFolderButtonInDestinationPopup?: boolean;
178
- maxNewFolderDepth?: number;
179
- onNewFolderDepthExceeded?: () => void;
180
- }
181
- export declare const FileManagerContext: import('react').Context<FileManagerContextValue | undefined>;