@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.
- package/README.md +6 -1
- package/dist/CHANGELOG.md +59 -1
- package/dist/DateCellRenderer-BX8RfCHm.cjs +63 -0
- package/dist/{IconButton-DHOFapLo.cjs → IconButton-CsePS6PY.cjs} +1 -1
- package/dist/JsonEditor-DQhHSm93.cjs +1 -0
- package/dist/{MarkdownEditor-Cp-KX6-T.cjs → MarkdownEditor-CvIPIbPq.cjs} +1 -1
- package/dist/{MarkdownEditor-Dav_pp0T.cjs → MarkdownEditor-TR6X_gdl.cjs} +1 -1
- package/dist/MarkdownEditorContainer-JIn_VNUX.cjs +1 -0
- package/dist/{Switch-DE6MrcqJ.cjs → Switch-HEL_aq23.cjs} +1 -1
- package/dist/_virtual/_commonjsHelpers.js +3 -28
- package/dist/_virtual/index.js +5 -3
- package/dist/components/Analytics/Bar/Bar.js +7 -7
- package/dist/components/Analytics/BarGroup/BarGroup.js +18 -18
- package/dist/components/Analytics/Histogram/Histogram.js +10 -10
- package/dist/components/Checkbox/Checkbox.js +9 -9
- package/dist/components/Dropdown/constants.js +2 -2
- package/dist/components/DropdownIcon/DropdownIcon.js +5 -5
- package/dist/components/Grid/Grid.js +11 -11
- package/dist/components/IconButton/IconButton.js +7 -7
- package/dist/components/InputPopup/InputPopup.js +8 -8
- package/dist/components/LoadFileArea/EmptyFileArea.js +28 -28
- package/dist/components/Loader/Loader.js +8 -8
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +16 -18
- package/dist/components/New/Avatar/Avatar.js +18 -17
- package/dist/components/New/BottomSheet/BottomSheet.js +53 -52
- package/dist/components/New/Breadcrumbs/constants.js +1 -1
- package/dist/components/New/Calendar/Calendar.js +314 -227
- package/dist/components/New/Calendar/TimePickerPanel.js +87 -0
- package/dist/components/New/Calendar/constants.js +27 -25
- package/dist/components/New/CaptionText/CaptionText.js +3 -4
- package/dist/components/New/Checkbox/Checkbox.js +23 -21
- package/dist/components/New/Checkbox/CheckboxBox.js +25 -18
- package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +49 -44
- package/dist/components/New/Dropdown/Dropdown.js +334 -254
- package/dist/components/New/Dropdown/constants.js +21 -18
- package/dist/components/New/Dropdown/search.js +37 -0
- package/dist/components/New/FolderPath/FolderPath.js +151 -46
- package/dist/components/New/Grid/Grid.js +139 -132
- package/dist/components/New/Grid/constants.js +5 -2
- package/dist/components/New/Input/Input.js +121 -107
- package/dist/components/New/MenuItem/MenuItem.js +17 -17
- package/dist/components/New/NoDataContent/NoDataContent.js +22 -27
- package/dist/components/New/NoDataContent/NoDataIllustration.js +53 -0
- package/dist/components/New/Popup/constants.js +1 -1
- package/dist/components/New/Radio/Radio.js +19 -17
- package/dist/components/New/ResizeHandle/ResizeHandle.js +147 -0
- package/dist/components/New/SchemaRenderer/components/SchemaField.js +45 -44
- package/dist/components/New/SchemaRenderer/components/SchemaFieldContent.js +41 -38
- package/dist/components/New/SchemaRenderer/components/SchemaPrimitiveField.js +45 -39
- package/dist/components/New/Select/Select.js +205 -202
- package/dist/components/New/Select/constants.js +29 -38
- package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +1 -1
- package/dist/components/New/SideDrawer/SideDrawer.js +1 -1
- package/dist/components/New/StateScreen/StateScreen.js +61 -0
- package/dist/components/New/Switch/Switch.js +19 -17
- package/dist/components/New/Textarea/Textarea.js +37 -33
- package/dist/components/New/TransferQueue/TransferQueue.js +66 -71
- package/dist/components/New/TransferQueue/TransferQueueHeader.js +30 -38
- package/dist/components/New/TransferQueue/TransferQueueRow.js +106 -49
- package/dist/components/Search/Search.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/constants.js +6 -6
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Steps/Step.js +9 -9
- package/dist/components/TagInput/TagInput.js +1 -1
- package/dist/components-manifest.json +422 -1171
- package/dist/constants/public-class-names.js +11 -0
- package/dist/dial-ui-kit.cjs +4 -2
- package/dist/dial-ui-kit.js +354 -366
- package/dist/editors.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +19 -17
- package/dist/index.css +2 -6
- package/dist/lazy-kq-xfXXv.cjs +1 -0
- package/dist/{merge-classes-BEJXjzkx.cjs → merge-classes-B0SnCG4i.cjs} +1 -1
- package/dist/migration-guides/0.16.0/caption-text-no-alert-role.md +90 -0
- package/dist/migration-guides/0.16.0/legacy-file-manager-removal.md +89 -0
- package/dist/migration-guides/0.16.0/tailwind-v4-stylesheet.md +98 -0
- package/dist/migration-guides/README.md +3 -0
- package/dist/node_modules/ag-grid-community/dist/package/main.esm.js +1767 -1763
- package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +1 -1
- package/dist/src/components/ButtonDropdown/constants.d.ts +2 -2
- package/dist/src/components/Dropdown/constants.d.ts +1 -1
- package/dist/src/components/Grid/Grid.d.ts +1 -1
- package/dist/src/components/JsonEditor/lazy.d.ts +1 -1
- package/dist/src/components/MarkdownEditor/lazy.d.ts +1 -1
- package/dist/src/components/New/Avatar/Avatar.d.ts +9 -3
- package/dist/src/components/New/Breadcrumbs/constants.d.ts +2 -2
- package/dist/src/components/New/ButtonDropdown/constants.d.ts +1 -1
- package/dist/src/components/New/Calendar/Calendar.d.ts +10 -2
- package/dist/src/components/New/Calendar/TimePickerPanel.d.ts +15 -0
- package/dist/src/components/New/Calendar/constants.d.ts +7 -5
- package/dist/src/components/New/CaptionText/CaptionText.d.ts +8 -1
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +42 -0
- package/dist/src/components/New/Dropdown/constants.d.ts +7 -1
- package/dist/src/components/New/Dropdown/search.d.ts +9 -0
- package/dist/src/components/New/FilterChips/FilterChips.d.ts +1 -1
- package/dist/src/components/New/FolderPath/FolderPath.d.ts +16 -8
- package/dist/src/components/New/Grid/Grid.d.ts +12 -1
- package/dist/src/components/New/Grid/components/SelectionCell.d.ts +1 -1
- package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +1 -1
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +1 -1
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +1 -1
- package/dist/src/components/New/MenuItem/constants.d.ts +1 -1
- package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +16 -8
- package/dist/src/components/New/NoDataContent/NoDataIllustration.d.ts +7 -0
- package/dist/src/components/New/Popup/constants.d.ts +1 -1
- package/dist/src/components/New/ResizeHandle/ResizeHandle.d.ts +68 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaFieldContent.d.ts +1 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaPrimitiveField.d.ts +2 -0
- package/dist/src/components/New/SchemaRenderer/types.d.ts +3 -1
- package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/src/components/New/Select/Select.d.ts +2 -0
- package/dist/src/components/New/Select/constants.d.ts +3 -4
- package/dist/src/components/New/StateScreen/StateScreen.d.ts +47 -0
- package/dist/src/components/New/Tooltip/constants.d.ts +2 -2
- package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +9 -5
- package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +1 -3
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/src/components/Select/constants.d.ts +3 -3
- package/dist/src/constants/public-class-names.d.ts +11 -0
- package/dist/src/index.d.ts +8 -13
- package/dist/src/subpaths/editors.d.ts +1 -1
- package/dist/src/subpaths/grid.d.ts +1 -0
- package/dist/src/types/avatar.d.ts +9 -0
- package/dist/src/types/grid.d.ts +8 -0
- package/dist/src/utils/avatar.d.ts +2 -1
- package/dist/src/utils/sub-menu-floating.d.ts +1 -1
- package/dist/types/avatar.js +3 -2
- package/dist/types/grid.js +4 -0
- package/dist/utils/avatar.js +41 -18
- package/dist/utils/merge-classes.js +36 -7
- package/dist/utils/sub-menu-floating.js +8 -8
- package/package.json +9 -12
- package/dist/DateCellRenderer-BdUMSg-E.cjs +0 -1
- package/dist/DateCellRenderer-CZNa4jVJ.cjs +0 -63
- package/dist/JsonEditor-eAV7SaKu.cjs +0 -1
- package/dist/MarkdownEditorContainer-96cKYmYd.cjs +0 -1
- package/dist/_virtual/___vite-browser-external.js +0 -6
- package/dist/_virtual/__vite-browser-external.js +0 -4
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -7
- package/dist/assets/icons/add-child.svg.js +0 -5
- package/dist/assets/icons/add-sibling.svg.js +0 -5
- package/dist/assets/icons/copy-to.svg.js +0 -5
- package/dist/assets/icons/move-to.svg.js +0 -5
- package/dist/assets/icons/no-data.svg.js +0 -5
- package/dist/assets/icons/unshare.svg.js +0 -5
- package/dist/components/FileManager/FileManager.js +0 -888
- package/dist/components/FileManager/FileManagerContext.js +0 -5
- package/dist/components/FileManager/FileManagerProvider.js +0 -772
- package/dist/components/FileManager/FileManagerTooltip.js +0 -92
- package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +0 -293
- package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +0 -201
- package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +0 -52
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +0 -103
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +0 -5
- package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +0 -56
- package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +0 -69
- package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +0 -100
- package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +0 -93
- package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +0 -165
- package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +0 -6
- package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +0 -120
- package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +0 -119
- package/dist/components/FileManager/components/FileMetadataPopup/constants.js +0 -9
- package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +0 -180
- package/dist/components/FileManager/components/FoldersTree/constants.js +0 -9
- package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +0 -51
- package/dist/components/FileManager/constants.js +0 -28
- package/dist/components/FileManager/errors.js +0 -10
- package/dist/components/FileManager/hooks/use-bulk-actions.js +0 -143
- package/dist/components/FileManager/hooks/use-collapse-tree.js +0 -22
- package/dist/components/FileManager/hooks/use-conflict-resolution.js +0 -158
- package/dist/components/FileManager/hooks/use-current-path.js +0 -29
- package/dist/components/FileManager/hooks/use-file-clipboard.js +0 -154
- package/dist/components/FileManager/hooks/use-file-delete.js +0 -39
- package/dist/components/FileManager/hooks/use-file-download.js +0 -16
- package/dist/components/FileManager/hooks/use-file-manager-columns.js +0 -106
- package/dist/components/FileManager/hooks/use-file-manager-context.js +0 -13
- package/dist/components/FileManager/hooks/use-file-manager-tabs.js +0 -23
- package/dist/components/FileManager/hooks/use-file-metadata.js +0 -20
- package/dist/components/FileManager/hooks/use-file-search.js +0 -90
- package/dist/components/FileManager/hooks/use-file-upload.js +0 -338
- package/dist/components/FileManager/hooks/use-folder-creation.js +0 -151
- package/dist/components/FileManager/hooks/use-grid-actions-column.js +0 -65
- package/dist/components/FileManager/hooks/use-grid-context-menu.js +0 -188
- package/dist/components/FileManager/hooks/use-item-renaming.js +0 -124
- package/dist/components/FileManager/hooks/use-new-actions.js +0 -67
- package/dist/components/FileManager/hooks/use-paths-selection.js +0 -28
- package/dist/components/FileManager/hooks/use-show-hidden-files.js +0 -20
- package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +0 -39
- package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +0 -42
- package/dist/components/FileManager/hooks/use-trigger-view-rename.js +0 -25
- package/dist/components/FileManager/utils.js +0 -129
- package/dist/constants/file-grid-columns.js +0 -176
- package/dist/editor-BH6_A1k2.cjs +0 -1
- package/dist/file-manager.cjs +0 -1
- package/dist/file-manager.js +0 -22
- package/dist/hooks/use-flexible-actions.js +0 -72
- package/dist/hooks/use-width-breakpoint.js +0 -15
- package/dist/lazy-DMVYJhUR.cjs +0 -1
- package/dist/node_modules/mime-db/db.json.js +0 -2527
- package/dist/node_modules/mime-db/index.js +0 -8
- package/dist/node_modules/mime-types/index.js +0 -70
- package/dist/node_modules/mime-types/mimeScore.js +0 -38
- package/dist/src/__mocks__/monaco-editor.d.ts +0 -13
- package/dist/src/components/Analytics/Bar/utils.spec.d.ts +0 -1
- package/dist/src/components/Analytics/Histogram/utils.spec.d.ts +0 -1
- package/dist/src/components/Button/ButtonWrappers.test.d.ts +0 -1
- package/dist/src/components/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/src/components/FileManager/FileManager.d.ts +0 -326
- package/dist/src/components/FileManager/FileManagerContext.d.ts +0 -181
- package/dist/src/components/FileManager/FileManagerProvider.d.ts +0 -21
- package/dist/src/components/FileManager/FileManagerTooltip.d.ts +0 -12
- package/dist/src/components/FileManager/__mocks__/files.d.ts +0 -3
- package/dist/src/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.d.ts +0 -90
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +0 -73
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.d.ts +0 -63
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.test.d.ts +0 -1
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.d.ts +0 -56
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/constants.d.ts +0 -3
- package/dist/src/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.d.ts +0 -26
- package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts +0 -51
- package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +0 -57
- package/dist/src/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.d.ts +0 -71
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +0 -64
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts +0 -3
- package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +0 -76
- package/dist/src/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.d.ts +0 -50
- package/dist/src/components/FileManager/components/FileMetadataPopup/constants.d.ts +0 -6
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +0 -135
- package/dist/src/components/FileManager/components/FoldersTree/constants.d.ts +0 -6
- package/dist/src/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.d.ts +0 -13
- package/dist/src/components/FileManager/constants.d.ts +0 -21
- package/dist/src/components/FileManager/errors.d.ts +0 -6
- package/dist/src/components/FileManager/hooks/__tests__/use-conflict-resolution.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-current-path.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-clipboard.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-delete.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-download.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-upload.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-show-hidden-files.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-trigger-view-rename.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/use-bulk-actions.d.ts +0 -30
- package/dist/src/components/FileManager/hooks/use-collapse-tree.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-conflict-resolution.d.ts +0 -27
- package/dist/src/components/FileManager/hooks/use-current-path.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-file-clipboard.d.ts +0 -37
- package/dist/src/components/FileManager/hooks/use-file-delete.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-file-download.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-file-manager-columns.d.ts +0 -43
- package/dist/src/components/FileManager/hooks/use-file-manager-context.d.ts +0 -7
- package/dist/src/components/FileManager/hooks/use-file-manager-tabs.d.ts +0 -10
- package/dist/src/components/FileManager/hooks/use-file-metadata.d.ts +0 -10
- package/dist/src/components/FileManager/hooks/use-file-search.d.ts +0 -23
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +0 -64
- package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +0 -30
- package/dist/src/components/FileManager/hooks/use-grid-actions-column.d.ts +0 -15
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +0 -44
- package/dist/src/components/FileManager/hooks/use-item-renaming.d.ts +0 -22
- package/dist/src/components/FileManager/hooks/use-new-actions.d.ts +0 -23
- package/dist/src/components/FileManager/hooks/use-paths-selection.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-show-hidden-files.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-tree-additional-buttons.d.ts +0 -22
- package/dist/src/components/FileManager/hooks/use-trigger-view-create-folder.d.ts +0 -26
- package/dist/src/components/FileManager/hooks/use-trigger-view-rename.d.ts +0 -20
- package/dist/src/components/FileManager/utils.d.ts +0 -69
- package/dist/src/components/FileManager/utils.spec.d.ts +0 -1
- package/dist/src/components/Grid/comparators/base-column-comparator.spec.d.ts +0 -1
- package/dist/src/components/Grid/renderers/utils.spec.d.ts +0 -1
- package/dist/src/components/New/AutocompleteTagInput/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Calendar/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Slider/utils.spec.d.ts +0 -1
- package/dist/src/components/New/TagInput/utils.spec.d.ts +0 -1
- package/dist/src/components/Pagination/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/SchemaRenderer/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/Steps/tests/Steps.test.d.ts +0 -1
- package/dist/src/components/Steps/tests/utils.spec.d.ts +0 -1
- package/dist/src/constants/file-grid-columns.d.ts +0 -4
- package/dist/src/models/file-manager.d.ts +0 -19
- package/dist/src/subpaths/file-manager.d.ts +0 -21
- package/dist/src/types/file-manager.d.ts +0 -59
- package/dist/src/utils/__tests__/accessible-name.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/avatar.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/file-accept.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/merge-classes.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/path.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/pointer.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/timezone.spec.d.ts +0 -1
- package/dist/src/utils/grid-registration.spec.d.ts +0 -1
- package/dist/types/file-manager.js +0 -12
- package/dist/use-file-manager-tabs-Bzzwwcgk.cjs +0 -3
- package/dist/utils/path.js +0 -4
|
@@ -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 +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>;
|