@epam/ai-dial-ui-kit 0.16.0-dev.6 → 0.16.0-dev.61
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 +24 -11
- package/dist/CHANGELOG.md +110 -0
- package/dist/{DateCellRenderer-ElULb0hY.cjs → DateCellRenderer-BFcpoREG.cjs} +32 -32
- package/dist/MarkdownEditor-5Jq0NTTP.cjs +1 -0
- package/dist/_virtual/_commonjsHelpers.js +3 -28
- package/dist/_virtual/index.js +5 -3
- package/dist/components/Dropdown/constants.js +2 -2
- package/dist/components/IconButton/IconButton.js +7 -7
- package/dist/components/LoadFileArea/EmptyFileArea.js +28 -28
- package/dist/components/Loader/Loader.js +8 -8
- package/dist/components/New/Analytics/Bar/Bar.js +104 -0
- package/dist/components/New/Analytics/BarGroup/BarGroup.js +143 -0
- package/dist/components/New/Analytics/Card/Card.js +107 -0
- package/dist/components/New/Analytics/Histogram/Histogram.js +212 -0
- package/dist/components/New/Avatar/Avatar.js +17 -16
- 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 +324 -228
- 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 +31 -26
- 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 +350 -261
- package/dist/components/New/Dropdown/constants.js +21 -18
- package/dist/components/New/Dropdown/search.js +37 -0
- package/dist/components/New/EntityIdentity/EntityIdentity.js +62 -60
- package/dist/components/New/FileName/FileName.js +38 -37
- package/dist/components/New/FolderPath/FolderPath.js +151 -46
- package/dist/components/New/FormSection/FormSection.js +87 -0
- package/dist/components/New/Grid/Grid.js +187 -174
- package/dist/components/New/Grid/constants.js +9 -8
- package/dist/components/New/Input/Input.js +121 -107
- package/dist/components/New/LabelledText/LabelledText.js +43 -0
- package/dist/components/New/LiveRegion/LiveRegion.js +33 -0
- package/dist/components/New/MarkdownEditor/MarkdownEditor.js +40 -28
- 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/Notification/Notification.js +51 -39
- package/dist/components/New/Notification/constants.js +26 -17
- package/dist/components/New/PasswordInput/PasswordInput.js +33 -32
- 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/SelectedEntityCard/SelectedEntityCard.js +86 -0
- 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 +63 -0
- package/dist/components/New/Steps/Steps.js +86 -0
- package/dist/components/New/Switch/Switch.js +19 -17
- package/dist/components/New/Tabs/Tabs.js +91 -58
- package/dist/components/New/Tag/Tag.js +34 -34
- package/dist/components/New/Tag/constants.js +13 -4
- package/dist/components/New/Textarea/Textarea.js +37 -33
- package/dist/components/New/ToggleChip/ToggleChip.js +54 -0
- package/dist/components/New/ToggleChip/constants.js +11 -0
- 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/ProgressBar/ProgressBar.js +43 -38
- package/dist/components-manifest.json +3712 -6488
- package/dist/constants/public-class-names.js +34 -7
- package/dist/dial-ui-kit.cjs +4 -2
- package/dist/dial-ui-kit.js +387 -467
- package/dist/editors.cjs +1 -1
- package/dist/editors.js +4 -10
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +22 -29
- package/dist/{merge-classes-BEJXjzkx.cjs → icon-4D9xu6E_.cjs} +1 -1
- package/dist/index.css +2 -6
- package/dist/migration-guides/0.16.0/caption-text-no-alert-role.md +90 -0
- package/dist/migration-guides/0.16.0/legacy-analytics-and-steps-removal.md +54 -0
- package/dist/migration-guides/0.16.0/legacy-file-manager-removal.md +91 -0
- package/dist/migration-guides/0.16.0/tailwind-v4-stylesheet.md +98 -0
- package/dist/migration-guides/0.16.0/unused-legacy-components-removal.md +128 -0
- package/dist/migration-guides/README.md +5 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +1 -1
- package/dist/node_modules/react-dnd/dist/internals/registration.js +5 -13
- package/dist/src/components/Dropdown/constants.d.ts +1 -1
- package/dist/src/components/{Analytics → New/Analytics}/Bar/Bar.d.ts +6 -6
- package/dist/src/components/{Analytics → New/Analytics}/Bar/utils.d.ts +1 -1
- package/dist/src/components/{Analytics → New/Analytics}/BarGroup/BarGroup.d.ts +7 -7
- package/dist/src/components/{Analytics → New/Analytics}/Card/Card.d.ts +14 -8
- package/dist/src/components/{Analytics → New/Analytics}/Histogram/Histogram.d.ts +5 -5
- package/dist/src/components/{Analytics → New/Analytics}/Histogram/utils.d.ts +1 -1
- package/dist/src/components/New/Analytics/index.d.ts +11 -0
- package/dist/src/components/New/Avatar/Avatar.d.ts +3 -0
- 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 +17 -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 +24 -2
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +95 -1
- 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/EntityIdentity/EntityIdentity.d.ts +6 -2
- package/dist/src/components/New/FileName/FileName.d.ts +11 -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/FormSection/FormSection.d.ts +63 -0
- package/dist/src/components/New/Grid/Grid.d.ts +8 -2
- 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/Grid/constants.d.ts +2 -0
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +1 -1
- package/dist/src/components/New/LabelledText/LabelledText.d.ts +48 -0
- package/dist/src/components/New/LiveRegion/LiveRegion.d.ts +58 -0
- package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +6 -0
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +9 -3
- 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/Notification/Notification.d.ts +24 -2
- package/dist/src/components/New/Notification/constants.d.ts +11 -0
- package/dist/src/components/New/PasswordInput/PasswordInput.d.ts +6 -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 +3 -3
- 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/SelectedEntityCard/SelectedEntityCard.d.ts +67 -0
- package/dist/src/components/New/StateScreen/StateScreen.d.ts +55 -0
- package/dist/src/components/New/Steps/Steps.d.ts +55 -0
- package/dist/src/components/New/Tabs/Tabs.d.ts +17 -1
- package/dist/src/components/New/Tag/Tag.d.ts +9 -5
- package/dist/src/components/New/Tag/constants.d.ts +12 -4
- package/dist/src/components/New/ToggleChip/ToggleChip.d.ts +70 -0
- package/dist/src/components/New/ToggleChip/constants.d.ts +12 -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/ProgressBar/ProgressBar.d.ts +23 -3
- package/dist/src/constants/public-class-names.d.ts +34 -7
- package/dist/src/index.d.ts +36 -82
- package/dist/src/models/step.d.ts +2 -0
- package/dist/src/subpaths/editors.d.ts +9 -15
- package/dist/src/subpaths/grid.d.ts +3 -9
- package/dist/src/types/dropdown.d.ts +16 -0
- package/dist/src/types/editor.d.ts +0 -6
- package/dist/src/types/form-section.d.ts +9 -0
- package/dist/src/types/grid.d.ts +10 -0
- package/dist/src/types/live-region.d.ts +17 -0
- package/dist/src/types/notification.d.ts +11 -0
- package/dist/src/types/progress-bar.d.ts +13 -0
- package/dist/src/types/tab.d.ts +5 -0
- package/dist/src/types/tag.d.ts +3 -1
- package/dist/src/utils/grid-registration.d.ts +6 -8
- package/dist/src/utils/sub-menu-floating.d.ts +1 -1
- package/dist/types/dropdown.js +5 -4
- package/dist/types/form-section.js +4 -0
- package/dist/types/grid.js +3 -2
- package/dist/types/live-region.js +5 -0
- package/dist/types/notification.js +3 -2
- package/dist/types/progress-bar.js +4 -0
- package/dist/types/tab.js +5 -4
- package/dist/types/tag.js +2 -2
- package/dist/utils/merge-classes.js +39 -7
- package/dist/utils/sub-menu-floating.js +8 -8
- package/package.json +12 -26
- package/dist/DateCellRenderer-C7yExfh5.cjs +0 -1
- package/dist/IconButton-DHOFapLo.cjs +0 -1
- package/dist/JsonEditor-Bxui5wJH.cjs +0 -1
- package/dist/MarkdownEditor-BKtFs714.cjs +0 -1
- package/dist/MarkdownEditor-Bapd1ycU.cjs +0 -1
- package/dist/MarkdownEditorContainer-B5aHwoYF.cjs +0 -1
- package/dist/Switch-DE6MrcqJ.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/file/c.svg.js +0 -5
- package/dist/assets/icons/file/cpp.svg.js +0 -5
- package/dist/assets/icons/file/cs.svg.js +0 -5
- package/dist/assets/icons/file/ini.svg.js +0 -5
- package/dist/assets/icons/file/json.svg.js +0 -5
- package/dist/assets/icons/file/md.svg.js +0 -5
- package/dist/assets/icons/file/py.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/open-popup.svg.js +0 -5
- package/dist/assets/icons/unshare.svg.js +0 -5
- package/dist/components/Analytics/Bar/Bar.js +0 -80
- package/dist/components/Analytics/BarGroup/BarGroup.js +0 -142
- package/dist/components/Analytics/Card/Card.js +0 -87
- package/dist/components/Analytics/ErrorTag/ErrorTag.js +0 -19
- package/dist/components/Analytics/Histogram/Histogram.js +0 -200
- package/dist/components/AutocompleteInput/AutocompleteInputValue.js +0 -21
- package/dist/components/ButtonDropdown/ButtonDropdown.js +0 -33
- package/dist/components/ButtonDropdown/constants.js +0 -8
- package/dist/components/Checkbox/Checkbox.js +0 -64
- package/dist/components/Checkbox/constants.js +0 -4
- package/dist/components/CollapsibleSidebar/CollapsibleSidebar.js +0 -84
- package/dist/components/ConfirmationPopup/ConfirmationPopup.js +0 -75
- package/dist/components/ConfirmationPopup/constants.js +0 -32
- package/dist/components/DraggableItem/DraggableItem.js +0 -61
- package/dist/components/DraggableItem/constants.js +0 -6
- package/dist/components/DropdownIcon/DropdownIcon.js +0 -103
- package/dist/components/FileIcon/FileIcon.js +0 -37
- package/dist/components/FileIcon/constants.js +0 -60
- 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/components/FileName/FileName.js +0 -68
- package/dist/components/FolderName/FolderName.js +0 -57
- package/dist/components/FormItem/FormItem.js +0 -90
- package/dist/components/FormItem/constants.js +0 -9
- package/dist/components/FormPopup/FormPopup.js +0 -59
- package/dist/components/FormPopup/constants.js +0 -6
- package/dist/components/Grid/Grid.js +0 -333
- package/dist/components/Grid/constants.js +0 -33
- package/dist/components/Grid/renderers/DateCellRenderer.js +0 -27
- package/dist/components/Grid/renderers/constants.js +0 -25
- package/dist/components/InputPopup/InputPopup.js +0 -174
- package/dist/components/JsonEditor/JsonEditor.js +0 -65
- package/dist/components/JsonEditor/lazy.js +0 -4
- package/dist/components/MarkdownEditor/MarkdownEditor.js +0 -39
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +0 -82
- package/dist/components/MarkdownEditor/lazy.js +0 -4
- package/dist/components/Notification/Notification.js +0 -67
- package/dist/components/Notification/constants.js +0 -24
- package/dist/components/NumberInput/NumberInput.js +0 -41
- package/dist/components/Pagination/Pagination.js +0 -80
- package/dist/components/Pagination/utils.js +0 -10
- package/dist/components/PasswordInput/Icons/HideIcon.js +0 -16
- package/dist/components/PasswordInput/Icons/ShowIcon.js +0 -16
- package/dist/components/PasswordInput/PasswordInput.js +0 -21
- package/dist/components/Popup/Popup.js +0 -110
- package/dist/components/Popup/constants.js +0 -12
- package/dist/components/RadioButton/RadioButton.js +0 -103
- package/dist/components/RadioGroup/RadioGroup.js +0 -92
- package/dist/components/RadioGroup/constants.js +0 -10
- package/dist/components/RadioGroupPopupField/RadioGroupPopupField.js +0 -101
- package/dist/components/ResizableContainer/ConditionalResizableContainer.js +0 -6
- package/dist/components/ResizableContainer/ResizableContainer.js +0 -79
- package/dist/components/ResizableContainer/components/ResizeHandle.js +0 -20
- package/dist/components/ResizableContainer/components/ResizeIcon.js +0 -11
- package/dist/components/SchemaRenderer/SchemaRenderer.js +0 -151
- package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +0 -56
- package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +0 -74
- package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +0 -118
- package/dist/components/SchemaRenderer/components/SchemaField.js +0 -78
- package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +0 -114
- package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +0 -272
- package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +0 -36
- package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +0 -192
- package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +0 -161
- package/dist/components/SchemaRenderer/components/SchemaSection.js +0 -81
- package/dist/components/SchemaRenderer/context.js +0 -12
- package/dist/components/Search/Search.js +0 -63
- package/dist/components/Search/constants.js +0 -27
- package/dist/components/SegmentedControl/SegmentedControl.js +0 -87
- package/dist/components/SegmentedControl/constants.js +0 -8
- package/dist/components/Select/MultiSelectTags.js +0 -23
- package/dist/components/Select/Select.js +0 -435
- package/dist/components/Select/SelectSubMenuItem.js +0 -90
- package/dist/components/Select/constants.js +0 -15
- package/dist/components/SelectField/SelectField.js +0 -66
- package/dist/components/SharedEntityIndicator/SharedEntityIndicator.js +0 -34
- package/dist/components/Slider/Slider.js +0 -158
- package/dist/components/Steps/Step.js +0 -34
- package/dist/components/Steps/Steps.js +0 -27
- package/dist/components/Steps/utils.js +0 -42
- package/dist/components/Switch/Switch.js +0 -70
- package/dist/components/TagInput/TagInput.js +0 -179
- package/dist/components/Textarea/Textarea.js +0 -43
- package/dist/constants/editor.js +0 -52
- package/dist/constants/file-grid-columns.js +0 -176
- 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/icon-CrGVkVpG.cjs +0 -1
- package/dist/icon-DhjrDQ8I.cjs +0 -1
- package/dist/lazy-_W6FYhKg.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/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js +0 -25
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/connectors.js +0 -21
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDrag.js +0 -20
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js +0 -19
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js +0 -22
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js +0 -15
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragType.js +0 -13
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js +0 -23
- package/dist/node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js +0 -88
- package/dist/node_modules/react-dnd/dist/internals/SourceConnector.js +0 -87
- 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/ErrorTag/ErrorTag.d.ts +0 -22
- package/dist/src/components/Analytics/Histogram/utils.spec.d.ts +0 -1
- package/dist/src/components/Analytics/index.d.ts +0 -13
- package/dist/src/components/AutocompleteInput/AutocompleteInputValue.d.ts +0 -34
- 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/ButtonDropdown/ButtonDropdown.d.ts +0 -24
- package/dist/src/components/ButtonDropdown/constants.d.ts +0 -2
- package/dist/src/components/Checkbox/Checkbox.d.ts +0 -36
- package/dist/src/components/Checkbox/constants.d.ts +0 -1
- package/dist/src/components/CollapsibleSidebar/CollapsibleSidebar.d.ts +0 -46
- package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +0 -55
- package/dist/src/components/ConfirmationPopup/constants.d.ts +0 -18
- package/dist/src/components/DraggableItem/DraggableItem.d.ts +0 -33
- package/dist/src/components/DraggableItem/constants.d.ts +0 -3
- package/dist/src/components/DropdownIcon/DropdownIcon.d.ts +0 -38
- package/dist/src/components/FileIcon/FileIcon.d.ts +0 -33
- package/dist/src/components/FileIcon/constants.d.ts +0 -9
- 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/FileName/FileName.d.ts +0 -49
- package/dist/src/components/FolderName/FolderName.d.ts +0 -37
- package/dist/src/components/FormItem/FormItem.d.ts +0 -66
- package/dist/src/components/FormItem/constants.d.ts +0 -3
- package/dist/src/components/FormPopup/FormPopup.d.ts +0 -46
- package/dist/src/components/FormPopup/constants.d.ts +0 -3
- package/dist/src/components/Grid/Grid.d.ts +0 -120
- package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +0 -1
- package/dist/src/components/Grid/comparators/base-column-comparator.spec.d.ts +0 -1
- package/dist/src/components/Grid/constants.d.ts +0 -28
- package/dist/src/components/Grid/renderers/DateCellRenderer.d.ts +0 -34
- package/dist/src/components/Grid/renderers/constants.d.ts +0 -7
- package/dist/src/components/Grid/renderers/utils.d.ts +0 -1
- package/dist/src/components/Grid/renderers/utils.spec.d.ts +0 -1
- package/dist/src/components/InputPopup/InputPopup.d.ts +0 -61
- package/dist/src/components/JsonEditor/JsonEditor.d.ts +0 -25
- package/dist/src/components/JsonEditor/lazy.d.ts +0 -14
- package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +0 -38
- package/dist/src/components/MarkdownEditor/MarkdownEditorContainer.d.ts +0 -51
- package/dist/src/components/MarkdownEditor/lazy.d.ts +0 -7
- 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/Notification/Notification.d.ts +0 -58
- package/dist/src/components/Notification/constants.d.ts +0 -8
- package/dist/src/components/NumberInput/NumberInput.d.ts +0 -34
- package/dist/src/components/Pagination/Pagination.d.ts +0 -11
- package/dist/src/components/Pagination/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/Pagination/utils.d.ts +0 -9
- package/dist/src/components/PasswordInput/Icons/HideIcon.d.ts +0 -16
- package/dist/src/components/PasswordInput/Icons/ShowIcon.d.ts +0 -16
- package/dist/src/components/PasswordInput/PasswordInput.d.ts +0 -26
- package/dist/src/components/Popup/Popup.d.ts +0 -64
- package/dist/src/components/Popup/constants.d.ts +0 -5
- package/dist/src/components/RadioButton/RadioButton.d.ts +0 -54
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +0 -66
- package/dist/src/components/RadioGroup/constants.d.ts +0 -5
- package/dist/src/components/RadioGroupPopupField/RadioGroupPopupField.d.ts +0 -74
- package/dist/src/components/ResizableContainer/ConditionalResizableContainer.d.ts +0 -35
- package/dist/src/components/ResizableContainer/ResizableContainer.d.ts +0 -72
- package/dist/src/components/ResizableContainer/components/ResizeHandle.d.ts +0 -10
- package/dist/src/components/ResizableContainer/components/ResizeIcon.d.ts +0 -8
- package/dist/src/components/SchemaRenderer/SchemaRenderer.d.ts +0 -30
- package/dist/src/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.d.ts +0 -20
- package/dist/src/components/SchemaRenderer/components/SchemaAnyOfEditor.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaArrayEditor.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaField.d.ts +0 -29
- package/dist/src/components/SchemaRenderer/components/SchemaFieldContent.d.ts +0 -25
- package/dist/src/components/SchemaRenderer/components/SchemaKeyValueEditor.d.ts +0 -33
- package/dist/src/components/SchemaRenderer/components/SchemaObjectEditor.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaOneOfEditor.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaPrimitiveField.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaSection.d.ts +0 -33
- package/dist/src/components/SchemaRenderer/context.d.ts +0 -19
- package/dist/src/components/SchemaRenderer/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/SchemaRenderer/types.d.ts +0 -62
- package/dist/src/components/SchemaRenderer/utils.d.ts +0 -1
- package/dist/src/components/Search/Search.d.ts +0 -35
- package/dist/src/components/Search/constants.d.ts +0 -8
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +0 -40
- package/dist/src/components/SegmentedControl/constants.d.ts +0 -5
- package/dist/src/components/Select/MultiSelectTags.d.ts +0 -8
- package/dist/src/components/Select/Select.d.ts +0 -100
- package/dist/src/components/Select/SelectSubMenuItem.d.ts +0 -8
- package/dist/src/components/Select/constants.d.ts +0 -9
- package/dist/src/components/SelectField/SelectField.d.ts +0 -42
- package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +0 -31
- package/dist/src/components/Slider/Slider.d.ts +0 -57
- package/dist/src/components/Steps/Step.d.ts +0 -9
- package/dist/src/components/Steps/Steps.d.ts +0 -26
- 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/components/Steps/utils.d.ts +0 -3
- package/dist/src/components/Switch/Switch.d.ts +0 -34
- package/dist/src/components/TagInput/TagInput.d.ts +0 -52
- package/dist/src/components/Textarea/Textarea.d.ts +0 -39
- package/dist/src/constants/editor.d.ts +0 -2
- package/dist/src/constants/file-grid-columns.d.ts +0 -4
- package/dist/src/constants/storybook/form-item.d.ts +0 -3
- package/dist/src/models/file-manager.d.ts +0 -19
- package/dist/src/models/segmented-control.d.ts +0 -7
- package/dist/src/subpaths/file-manager.d.ts +0 -21
- package/dist/src/types/file-manager.d.ts +0 -59
- package/dist/src/types/form-item.d.ts +0 -31
- package/dist/src/types/select.d.ts +0 -8
- 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/types/form-item.js +0 -4
- package/dist/types/select.js +0 -5
- package/dist/use-file-manager-tabs-Bgh8mfOJ.cjs +0 -3
- package/dist/utils/path.js +0 -4
- /package/dist/components/{Analytics → New/Analytics}/Bar/utils.js +0 -0
- /package/dist/components/{Analytics → New/Analytics}/Histogram/utils.js +0 -0
|
@@ -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>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { DialFileManagerProps } from './FileManager';
|
|
3
|
-
export interface FileManagerProviderProps extends Omit<DialFileManagerProps, 'children'> {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
autoSelectUploadedItems?: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Provider that encapsulates all File Manager business logic:
|
|
9
|
-
* - path & navigation
|
|
10
|
-
* - search (controlled + uncontrolled)
|
|
11
|
-
* - hidden files toggle
|
|
12
|
-
* - tree collapsed state
|
|
13
|
-
* - selection
|
|
14
|
-
* - clipboard (copy / cut / paste)
|
|
15
|
-
* - delete confirmation state
|
|
16
|
-
* - computed grid rows
|
|
17
|
-
* - new actions
|
|
18
|
-
*
|
|
19
|
-
* @deprecated Import `FileManagerProvider` from `@epam/ai-dial-react-file-manager` instead.
|
|
20
|
-
*/
|
|
21
|
-
export declare const FileManagerProvider: FC<FileManagerProviderProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FileManagerGridRow } from './FileManagerContext';
|
|
2
|
-
import { DialFileAcceptType } from '../../models/file-manager';
|
|
3
|
-
interface FileManagerTooltipProps {
|
|
4
|
-
disabledGridRowIds: Set<string>;
|
|
5
|
-
gridRows: FileManagerGridRow[];
|
|
6
|
-
getDisabledTooltip?: (row: FileManagerGridRow) => string | undefined;
|
|
7
|
-
getRowDisabledTooltip: (row: FileManagerGridRow, allowedFileTypes?: DialFileAcceptType[], maxSelectableFileSize?: number) => string | undefined;
|
|
8
|
-
allowedFileTypes?: DialFileAcceptType[];
|
|
9
|
-
maxSelectableFileSize?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const FileManagerTooltip: ({ disabledGridRowIds, gridRows, getDisabledTooltip, getRowDisabledTooltip, allowedFileTypes, maxSelectableFileSize, }: FileManagerTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { DialFile } from '../../../../models/file';
|
|
2
|
-
import { DialFileManagerConflictActions, DialFileManagerConflictStrategies } from '../../../../types/file-manager';
|
|
3
|
-
import { FC } from 'react';
|
|
4
|
-
export interface FileConflictDecision {
|
|
5
|
-
file: DialFile;
|
|
6
|
-
action: DialFileManagerConflictActions;
|
|
7
|
-
}
|
|
8
|
-
export interface ConflictResolutionPopupProps {
|
|
9
|
-
open: boolean;
|
|
10
|
-
onClose: () => void;
|
|
11
|
-
onReplace: () => void;
|
|
12
|
-
onDuplicate: () => void;
|
|
13
|
-
onDecideForEach?: (decisions: FileConflictDecision[]) => void;
|
|
14
|
-
conflictingFiles: DialFile[];
|
|
15
|
-
singleFileTitle?: string;
|
|
16
|
-
multipleFilesTitle?: string;
|
|
17
|
-
message?: string;
|
|
18
|
-
actionLabels?: {
|
|
19
|
-
[DialFileManagerConflictActions.Replace]?: string;
|
|
20
|
-
[DialFileManagerConflictActions.Duplicate]?: string;
|
|
21
|
-
[DialFileManagerConflictActions.Cancel]?: string;
|
|
22
|
-
};
|
|
23
|
-
strategyLabels?: {
|
|
24
|
-
[DialFileManagerConflictStrategies.ReplaceAll]?: string;
|
|
25
|
-
[DialFileManagerConflictStrategies.DuplicateAll]?: string;
|
|
26
|
-
[DialFileManagerConflictStrategies.DecideForEach]?: string;
|
|
27
|
-
};
|
|
28
|
-
confirmLabel?: string;
|
|
29
|
-
cancelLabel?: string;
|
|
30
|
-
nameColumnLabel?: string;
|
|
31
|
-
actionColumnLabel?: string;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* ConflictResolutionPopup
|
|
35
|
-
*
|
|
36
|
-
* A popup dialog for resolving file name conflicts during copy or move operations.
|
|
37
|
-
* Shows different UI based on number of conflicting files:
|
|
38
|
-
* - Single file: Simple Replace/Duplicate choice with radio buttons
|
|
39
|
-
* - Multiple files: Replace all / Duplicate all / Decide for each strategy with optional grid
|
|
40
|
-
*
|
|
41
|
-
* When "Decide for each" is selected, displays a grid with dropdown selectors for individual
|
|
42
|
-
* file resolution (Replace/Duplicate/Cancel).
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```tsx
|
|
46
|
-
* // Single file conflict
|
|
47
|
-
* <ConflictResolutionPopup
|
|
48
|
-
* open={isOpen}
|
|
49
|
-
* onClose={handleClose}
|
|
50
|
-
* onReplace={handleReplace}
|
|
51
|
-
* onDuplicate={handleDuplicate}
|
|
52
|
-
* conflictingFiles={[file]}
|
|
53
|
-
* />
|
|
54
|
-
*
|
|
55
|
-
* // Multiple files with custom labels
|
|
56
|
-
* <ConflictResolutionPopup
|
|
57
|
-
* open={isOpen}
|
|
58
|
-
* onClose={handleClose}
|
|
59
|
-
* onReplace={handleReplaceAll}
|
|
60
|
-
* onDuplicate={handleDuplicateAll}
|
|
61
|
-
* onDecideForEach={handleDecisions}
|
|
62
|
-
* conflictingFiles={files}
|
|
63
|
-
* actionLabels={{
|
|
64
|
-
* [DialFileManagerConflictActions.Replace]: 'Overwrite',
|
|
65
|
-
* [DialFileManagerConflictActions.Duplicate]: 'Keep Both',
|
|
66
|
-
* }}
|
|
67
|
-
* strategyLabels={{
|
|
68
|
-
* [DialFileManagerConflictStrategies.ReplaceAll]: 'Overwrite All',
|
|
69
|
-
* [DialFileManagerConflictStrategies.DuplicateAll]: 'Keep All',
|
|
70
|
-
* }}
|
|
71
|
-
* />
|
|
72
|
-
* ```
|
|
73
|
-
*
|
|
74
|
-
* @param open - Whether the popup is visible
|
|
75
|
-
* @param onClose - Callback fired when the popup is closed
|
|
76
|
-
* @param onReplace - Callback fired when Replace/Replace All is confirmed
|
|
77
|
-
* @param onDuplicate - Callback fired when Duplicate/Duplicate All is confirmed
|
|
78
|
-
* @param [onDecideForEach] - Callback fired when individual decisions are confirmed; receives array of decisions
|
|
79
|
-
* @param conflictingFiles - Array of files with name conflicts
|
|
80
|
-
* @param [singleFileTitle="Replace Or Duplicate Item"] - Title for single file conflicts
|
|
81
|
-
* @param [multipleFilesTitle="Replace Or Duplicate Items"] - Title for multiple file conflicts
|
|
82
|
-
* @param [message] - Custom message (overrides default conflict description)
|
|
83
|
-
* @param [actionLabels] - Custom labels for conflict actions (Replace/Duplicate/Cancel)
|
|
84
|
-
* @param [strategyLabels] - Custom labels for conflict strategies (Replace all/Duplicate all/Decide for each)
|
|
85
|
-
* @param [confirmLabel="Confirm"] - Label for the confirm button
|
|
86
|
-
* @param [cancelLabel="Cancel"] - Label for the cancel button
|
|
87
|
-
* @param [nameColumnLabel="Name"] - Label for the file name column in the grid
|
|
88
|
-
* @param [actionColumnLabel="Action"] - Label for the action column in the grid
|
|
89
|
-
*/
|
|
90
|
-
export declare const ConflictResolutionPopup: FC<ConflictResolutionPopupProps>;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { DialFileManagerProps } from '../../FileManager';
|
|
2
|
-
import { FC, ReactNode } from 'react';
|
|
3
|
-
import { DialNotificationProps } from '../../../Notification/Notification';
|
|
4
|
-
export interface DestinationFolderPopupProps extends DialFileManagerProps {
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
onConfirm?: () => void;
|
|
7
|
-
open: boolean;
|
|
8
|
-
setDestinationFolderPath?: (path?: string) => void;
|
|
9
|
-
destinationFolderPath?: string;
|
|
10
|
-
copyLabel?: string;
|
|
11
|
-
moveLabel?: string;
|
|
12
|
-
addFolderLabel?: string;
|
|
13
|
-
showHiddenFileSwitcher?: boolean;
|
|
14
|
-
showCreateFolderButton?: boolean;
|
|
15
|
-
hiddenFilesSwitcherLabel?: string;
|
|
16
|
-
mode?: 'copy' | 'move';
|
|
17
|
-
header?: ReactNode;
|
|
18
|
-
sourceFolder?: string;
|
|
19
|
-
disabledPathTooltip?: string;
|
|
20
|
-
collapsedFileTree?: boolean;
|
|
21
|
-
alertProps?: DialNotificationProps;
|
|
22
|
-
onFolderPopupPathChange?: (newPath?: string) => void;
|
|
23
|
-
processDestinationFolderPath?: (path: string) => string;
|
|
24
|
-
excludedPaths?: string[];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* DestinationFolderPopup
|
|
28
|
-
* aliases: FolderSelector|PathChooser
|
|
29
|
-
* Design system 1.0
|
|
30
|
-
*
|
|
31
|
-
* @deprecated Import `DialDestinationFolderPopup` from `@epam/ai-dial-react-file-manager` instead.
|
|
32
|
-
*
|
|
33
|
-
* A popup dialog for selecting a destination folder when copying or moving files.
|
|
34
|
-
* Displays a File Manager interface with a footer containing action buttons and
|
|
35
|
-
* a toggle for showing hidden files.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```tsx
|
|
39
|
-
* <DestinationFolderPopup
|
|
40
|
-
* open={isOpen}
|
|
41
|
-
* onClose={handleClose}
|
|
42
|
-
* onConfirm={handleConfirm}
|
|
43
|
-
* mode="copy"
|
|
44
|
-
* title="Copy 3 files"
|
|
45
|
-
* items={files}
|
|
46
|
-
* rootItem={rootFolder}
|
|
47
|
-
* path={currentPath}
|
|
48
|
-
* onPathChange={setCurrentPath}
|
|
49
|
-
* />
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* @param open - Whether the popup is visible
|
|
53
|
-
* @param onClose - Callback fired when the popup is closed
|
|
54
|
-
* @param [onConfirm] - Callback fired when the confirm button is clicked
|
|
55
|
-
* @param [mode=DestinationFolderMode.Copy] - Operation mode: 'copy' or 'move'
|
|
56
|
-
* @param [copyLabel="Copy"] - Label for the copy button
|
|
57
|
-
* @param [moveLabel="Move"] - Label for the move button
|
|
58
|
-
* @param [addFolderLabel="Add folder"] - Label for the add folder button
|
|
59
|
-
* @param [hiddenFilesSwitcherLabel="Show hidden files"] - Label for the hidden files toggle
|
|
60
|
-
* @param [title] - Custom title for the popup header
|
|
61
|
-
* @param items - Array of files to display in the File Manager
|
|
62
|
-
* @param rootItem - Root folder item
|
|
63
|
-
* @param path - Current path in the File Manager
|
|
64
|
-
* @param onPathChange - Callback fired when the path changes
|
|
65
|
-
* @param [sourceFolder] - The source folder path for move operations
|
|
66
|
-
* @param [disabledPathTooltip="Unavailable for the original path. Please select another folder"] - Tooltip text when destination is disabled
|
|
67
|
-
* @param [collapsedFileTree=false] - Whether the file tree should be initially collapsed
|
|
68
|
-
* @param [processDestinationFolderPath] - Optional function to process the destination folder path before setting it
|
|
69
|
-
* @param [excludedPaths] - Paths to hide from this popup's tree and grid (e.g. a root folder that shouldn't be a valid destination). Matching items and their subtree are excluded.
|
|
70
|
-
*
|
|
71
|
-
* @returns A React component for the destination folder selection popup
|
|
72
|
-
*/
|
|
73
|
-
export declare const DialDestinationFolderPopup: FC<DestinationFolderPopupProps>;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { DialFileNodeType } from '../../../../models/file';
|
|
3
|
-
interface DialFileManagerItemSummaryCellProps {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
nodeType: DialFileNodeType;
|
|
7
|
-
size?: number;
|
|
8
|
-
updatedAt?: string;
|
|
9
|
-
shared?: boolean;
|
|
10
|
-
dateLocale?: Intl.LocalesArgument;
|
|
11
|
-
dateOptions?: Intl.DateTimeFormatOptions;
|
|
12
|
-
sharedIndicatorClassName?: string;
|
|
13
|
-
hideTooltip?: boolean;
|
|
14
|
-
forbiddenSymbolsRegExp?: RegExp;
|
|
15
|
-
forbiddenSymbolsTooltip?: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Renders file or folder details inside the File Manager list/grid item.
|
|
19
|
-
*
|
|
20
|
-
* Displays the item name with an icon (via `DialFileManagerItemName`),
|
|
21
|
-
* followed by a small details row:
|
|
22
|
-
*
|
|
23
|
-
* - File size (e.g., `"15 KB"`)
|
|
24
|
-
* - A separator dot
|
|
25
|
-
* - Formatted update date (via `DialDateCellRenderer`)
|
|
26
|
-
*
|
|
27
|
-
* The component automatically determines whether to show a **file** or **folder**
|
|
28
|
-
* icon based on `nodeType`.
|
|
29
|
-
*
|
|
30
|
-
* ### Example
|
|
31
|
-
* ```tsx
|
|
32
|
-
* <DialFileManagerItemSummaryCell
|
|
33
|
-
* id="42"
|
|
34
|
-
* name="Report.pdf"
|
|
35
|
-
* nodeType={DialFileNodeType.ITEM}
|
|
36
|
-
* size={225280}
|
|
37
|
-
* updatedAt="2025-07-20T00:00:00Z"
|
|
38
|
-
* dateLocale="en-US"
|
|
39
|
-
* dateOptions={{ timeZone: 'UTC' }}
|
|
40
|
-
* />
|
|
41
|
-
*
|
|
42
|
-
* <DialFileManagerItemSummaryCell
|
|
43
|
-
* id="folder-1"
|
|
44
|
-
* name="Projects"
|
|
45
|
-
* nodeType={DialFileNodeType.FOLDER}
|
|
46
|
-
* updatedAt={undefined}
|
|
47
|
-
* />
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @param id - Unique identifier passed to `DialFileManagerItemName` as `elementId`.
|
|
51
|
-
* @param name - File or folder display name.
|
|
52
|
-
* @param nodeType - Determines whether the item renders as a **File** or **Folder**.
|
|
53
|
-
* @param size - File size in bytes; formatted with {@link formatBytes}. Omit for folders.
|
|
54
|
-
* @param updatedAt - Date or timestamp passed to `DialDateCellRenderer`. If invalid or missing, renders `"—"`.
|
|
55
|
-
* @param dateLocale - Optional locale override for date formatting (e.g., `"fr-FR"`).
|
|
56
|
-
* @param dateOptions - Optional `Intl.DateTimeFormat` configuration (e.g., `{ timeZone: 'UTC' }`).
|
|
57
|
-
* @params sharedIndicatorClassName - Optional CSS classes for the shared indicator.
|
|
58
|
-
* @param hideTooltip - If `true`, disables tooltips on the name and date, even if truncated.
|
|
59
|
-
* @param forbiddenSymbolsRegExp - Optional RegExp to validate the name for forbidden symbols.
|
|
60
|
-
* @param forbiddenSymbolsTooltip - Custom tooltip content when the name contains forbidden symbols; defaults to a standard message.
|
|
61
|
-
*/
|
|
62
|
-
export declare const DialFileManagerItemSummaryCell: FC<DialFileManagerItemSummaryCellProps>;
|
|
63
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { DropdownItem } from '../../../../models/dropdown';
|
|
3
|
-
export interface DialActionDropdownItem extends DropdownItem {
|
|
4
|
-
title: string;
|
|
5
|
-
tooltip?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface DialFileManagerBulkActionsToolbarProps {
|
|
8
|
-
getSelectionLabel: (selectedCount: number) => string;
|
|
9
|
-
onClearSelection: () => void;
|
|
10
|
-
actions: DialActionDropdownItem[];
|
|
11
|
-
selectedCount: number;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A responsive toolbar component displayed when files or items are selected
|
|
15
|
-
* in the file manager. It shows a label with the number or name of selected
|
|
16
|
-
* items and provides contextual action buttons.
|
|
17
|
-
*
|
|
18
|
-
* On smaller screens or when there’s not enough horizontal space,
|
|
19
|
-
* some action buttons are automatically moved into a dropdown menu.
|
|
20
|
-
*
|
|
21
|
-
* **Key Features:**
|
|
22
|
-
* - Dynamically measures available container width to determine how many actions
|
|
23
|
-
* can fit inline.
|
|
24
|
-
* - Uses a hidden measurement container to precisely calculate button widths.
|
|
25
|
-
* - Automatically moves overflow actions into a "More" dropdown (`IconDotsVertical`).
|
|
26
|
-
* - Responsive design with support for mobile layout via `useIsMobileScreen`.
|
|
27
|
-
*
|
|
28
|
-
* **Layout logic:**
|
|
29
|
-
* - `measureRef`: hidden element used to measure the width of each button.
|
|
30
|
-
* - `containerRef`: visible container where the toolbar is rendered.
|
|
31
|
-
* - `leftSectionRef`: left section containing the "selected items" button.
|
|
32
|
-
* - `visibleCount`: dynamically updated number of visible actions.
|
|
33
|
-
* - Uses `ResizeObserver` + `requestAnimationFrame` to update layout on resize.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```tsx
|
|
37
|
-
* <DialFileManagerSelectionToolbar
|
|
38
|
-
* getSelectionLabel={(count) => `${count} files selected`}
|
|
39
|
-
* onClearSelection={() => console.log('Cleared')}
|
|
40
|
-
* actions={[
|
|
41
|
-
* { key: 'download', title: 'Download', icon: <IconDownload />, onClick: () => {} },
|
|
42
|
-
* { key: 'delete', title: 'Delete', icon: <IconTrash />, onClick: () => {} },
|
|
43
|
-
* ]}
|
|
44
|
-
* />
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @param {object} props
|
|
48
|
-
* @param {() => string} props.getSelectionLabel - Function to get the label showing current selection status (e.g., "3 files selected").
|
|
49
|
-
* @param {() => void} props.onClearSelection - Callback invoked when the clear selection button is clicked.
|
|
50
|
-
* @param {DialActionDropdownItem[]} props.actions - List of available toolbar actions.
|
|
51
|
-
* Each action defines a title, icon, key, and optional click handler.
|
|
52
|
-
* @param {number} [props.selectedCount] - Count of currently selected items.
|
|
53
|
-
*
|
|
54
|
-
* @returns {JSX.Element} A responsive toolbar that adjusts visible actions based on available width.
|
|
55
|
-
*/
|
|
56
|
-
export declare const DialFileManagerBulkActionsToolbar: FC<DialFileManagerBulkActionsToolbarProps>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { DialFile } from '../../../../models/file';
|
|
3
|
-
export interface FileManagerDeleteConfirmationPopupProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
itemsToDelete: DialFile[];
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
onConfirm: () => void;
|
|
8
|
-
cancelLabel?: string;
|
|
9
|
-
confirmLabel?: string;
|
|
10
|
-
titleRenderer?: (fileNames: string[]) => ReactNode;
|
|
11
|
-
contentRenderer?: (fileNames: string[]) => ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Confirmation popup for deleting files in FileManager.
|
|
15
|
-
* Shows a list of files to be deleted with customizable title and content.
|
|
16
|
-
*
|
|
17
|
-
* @param open - Controls visibility of the popup
|
|
18
|
-
* @param itemsToDelete - Array of files to be deleted
|
|
19
|
-
* @param onClose - Callback when popup is closed
|
|
20
|
-
* @param onConfirm - Callback when delete is confirmed
|
|
21
|
-
* @param [cancelLabel='Cancel'] - Label for cancel button
|
|
22
|
-
* @param [confirmLabel='Delete'] - Label for confirm button
|
|
23
|
-
* @param [titleRenderer] - Custom title renderer function
|
|
24
|
-
* @param [contentRenderer] - Custom content renderer function
|
|
25
|
-
*/
|
|
26
|
-
export declare const FileManagerDeleteConfirmationPopup: FC<FileManagerDeleteConfirmationPopupProps>;
|
package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { DialFileIconProps } from '../../../FileIcon/FileIcon';
|
|
3
|
-
import { DialItemType } from '../../../../types/item';
|
|
4
|
-
export interface DialFileManagerItemIconProps extends Omit<DialFileIconProps, 'extension'> {
|
|
5
|
-
type: DialItemType;
|
|
6
|
-
name: string;
|
|
7
|
-
shared?: boolean;
|
|
8
|
-
loading?: boolean;
|
|
9
|
-
sharedIndicatorClassName?: string;
|
|
10
|
-
sharedIndicatorTooltip?: ReactNode;
|
|
11
|
-
fileExtension?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Renders an icon representing either a file or folder entity in the Dial system.
|
|
15
|
-
*
|
|
16
|
-
* Displays:
|
|
17
|
-
* - A file icon based on its extension (via `DialFileIcon`)
|
|
18
|
-
* - A folder icon (via `IconFolder`)
|
|
19
|
-
* - A loading spinner if `loading` is true
|
|
20
|
-
* - A shared indicator if the entity is marked as shared
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```tsx
|
|
24
|
-
* <DialFileManagerItemIcon
|
|
25
|
-
* name="document.pdf"
|
|
26
|
-
* type={DialItemType.File}
|
|
27
|
-
* shared
|
|
28
|
-
* />
|
|
29
|
-
*
|
|
30
|
-
* <DialFileManagerItemIcon
|
|
31
|
-
* name="My Folder"
|
|
32
|
-
* type={DialItemType.Folder}
|
|
33
|
-
* loading
|
|
34
|
-
* />
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @param {Object} props
|
|
38
|
-
* @param {string} props.name - The name of the file or folder (used to determine extension for files).
|
|
39
|
-
* @param {DialItemType} props.type - The type of the item (`file` or `folder`).
|
|
40
|
-
* @param {boolean} [props.shared=false] - Whether the item is shared.
|
|
41
|
-
* @param {boolean} [props.loading=false] - Whether to display the loading state.
|
|
42
|
-
* @param {number} [props.size] - Optional icon size override.
|
|
43
|
-
* @param {number} [props.stroke] - Optional icon stroke width override.
|
|
44
|
-
* @param {string} [props.className] - Optional CSS class for styling.
|
|
45
|
-
* @param {boolean} [props.decorative] - Whether the icon is decorative (for accessibility).
|
|
46
|
-
* @param {string} [props.label] - Accessible label for screen readers.
|
|
47
|
-
* @param {ReactNode} [props.indicator] - Optional indicator to display over the icon.
|
|
48
|
-
* @param {string} [props.sharedIndicatorClassName] - Optional CSS class for the shared indicator.
|
|
49
|
-
* @param [sharedIndicatorTooltip] - Custom tooltip content for the shared indicator; defaults to "Shared"
|
|
50
|
-
*/
|
|
51
|
-
export declare const DialFileManagerItemIcon: FC<DialFileManagerItemIconProps>;
|
package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { DialFileManagerItemNameInputProps } from '../FileManagerItemNameInput/FileManagerItemNameInput';
|
|
3
|
-
import { DialItemType } from '../../../../types/item';
|
|
4
|
-
export interface DialFileManagerItemNameProps extends DialFileManagerItemNameInputProps {
|
|
5
|
-
name: string;
|
|
6
|
-
type: DialItemType;
|
|
7
|
-
elementId: string;
|
|
8
|
-
editing?: boolean;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
creating?: boolean;
|
|
11
|
-
shared?: boolean;
|
|
12
|
-
details?: ReactNode;
|
|
13
|
-
sharedIndicatorTooltip?: ReactNode;
|
|
14
|
-
fileExtension?: string;
|
|
15
|
-
validate?: (value: string) => string | null;
|
|
16
|
-
onSave?: (value: string) => void;
|
|
17
|
-
onCancel?: () => void;
|
|
18
|
-
onCreateFolderSave?: (value: string) => void;
|
|
19
|
-
onCreateFolderCancel?: () => void;
|
|
20
|
-
hideTooltip?: boolean;
|
|
21
|
-
forbiddenSymbolsRegExp?: RegExp;
|
|
22
|
-
forbiddenSymbolsTooltip?: ReactNode;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A component that renders a file or folder name with optional edit mode.
|
|
26
|
-
*
|
|
27
|
-
* When `editing` is `false`, it displays a read-only name via:
|
|
28
|
-
* - `DialFolderName` for folders
|
|
29
|
-
* - `DialFileName` for files
|
|
30
|
-
*
|
|
31
|
-
* When `editing` is `true`, it renders an editable input using `DialItemNameInput`,
|
|
32
|
-
* driven by validation and change logic from the `useEditableItem` hook.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```tsx
|
|
36
|
-
* import { DialFileManagerItemName } from '@/components/DialFileManagerItemName/DialFileManagerItemName';
|
|
37
|
-
* import { DialItemType } from '@/types/item';
|
|
38
|
-
*
|
|
39
|
-
* function Example() {
|
|
40
|
-
* return (
|
|
41
|
-
* <DialFileManagerItemName
|
|
42
|
-
* name="Project"
|
|
43
|
-
* type={DialItemType.Folder}
|
|
44
|
-
* elementId="folder-123"
|
|
45
|
-
* editing={true}
|
|
46
|
-
* validate={(value) => (value.trim() ? null : 'Name cannot be empty')}
|
|
47
|
-
* onSave={(newName) => console.log('Saved:', newName)}
|
|
48
|
-
* onCancel={() => console.log('Canceled')}
|
|
49
|
-
* />
|
|
50
|
-
* );
|
|
51
|
-
* }
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* @param props - Component props.
|
|
55
|
-
* @returns Rendered file or folder name element (editable or static).
|
|
56
|
-
*/
|
|
57
|
-
export declare const DialFileManagerItemName: FC<DialFileManagerItemNameProps>;
|