@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,46 +0,0 @@
|
|
|
1
|
-
import { FC, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
export interface DialCollapsibleSidebarProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
width?: number;
|
|
5
|
-
title: ReactNode;
|
|
6
|
-
titleClassName?: string;
|
|
7
|
-
containerClassName?: string;
|
|
8
|
-
iconSize?: number;
|
|
9
|
-
additionalButtons?: ReactNode;
|
|
10
|
-
iconStroke?: number;
|
|
11
|
-
isOpened?: boolean;
|
|
12
|
-
onToggle?: (nextOpened: boolean, e: MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A collapsible horizontal bar component that allows toggling between an expanded and collapsed state.
|
|
16
|
-
* aliases: ToggleSidebar|CollapsiblePanel
|
|
17
|
-
* Design system 1.0
|
|
18
|
-
*
|
|
19
|
-
* It supports customizable width, title, icons, additional buttons, and flexible styling options.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```tsx
|
|
23
|
-
* <DialCollapsibleSidebar
|
|
24
|
-
* width={300}
|
|
25
|
-
* title="Menu"
|
|
26
|
-
* titleClassName="text-primary font-bold"
|
|
27
|
-
* containerClassName="bg-gray-100 shadow-md"
|
|
28
|
-
* iconSize={24}
|
|
29
|
-
* additionalButtons={<button>Extra</button>}
|
|
30
|
-
* >
|
|
31
|
-
* <div>Content goes here</div>
|
|
32
|
-
* </DialCollapsibleSidebar>
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @param children - The content to display inside the collapsible bar when expanded
|
|
36
|
-
* @param [width = 280] - The width of the bar when expanded
|
|
37
|
-
* @param title - The title displayed when the bar is collapsed
|
|
38
|
-
* @param [titleClassName] - Additional CSS classes applied to the title element
|
|
39
|
-
* @param [containerClassName] - Additional CSS classes applied to the container element
|
|
40
|
-
* @param [iconSize = 32] - The size of the toggle icons. Defaults to 32
|
|
41
|
-
* @param [iconStroke = 1.5] - The stroke width of the toggle icons. Defaults to 1.5
|
|
42
|
-
* @param [additionalButtons] - Additional buttons or elements displayed next to the toggle button when expanded
|
|
43
|
-
* @param [isOpened] - When provided, the component becomes controlled by this value
|
|
44
|
-
* @param [onToggle] - Fired when user clicks the toggle in controlled mode, with the next state
|
|
45
|
-
*/
|
|
46
|
-
export declare const DialCollapsibleSidebar: FC<DialCollapsibleSidebarProps>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { DialPopupProps } from '../Popup/Popup';
|
|
3
|
-
import { ConfirmationPopupVariant } from '../../types/confirmation-popup';
|
|
4
|
-
export interface DialConfirmationPopupProps extends DialPopupProps {
|
|
5
|
-
description?: ReactNode;
|
|
6
|
-
descriptionClassName?: string;
|
|
7
|
-
confirmLabel?: string;
|
|
8
|
-
cancelLabel?: string;
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
disableConfirmButton?: boolean;
|
|
11
|
-
confirmClassName?: string;
|
|
12
|
-
onConfirm: () => void;
|
|
13
|
-
onCancel?: () => void;
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
variant?: ConfirmationPopupVariant;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A confirmation dialog built with DialPopup and DialButton.
|
|
19
|
-
* aliases: ConfirmDialog|WarningDialog
|
|
20
|
-
* Design system 1.0
|
|
21
|
-
*
|
|
22
|
-
* Provides an accessible modal with a title, optional description or custom content,
|
|
23
|
-
* and a footer with Cancel / Confirm actions.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```tsx
|
|
27
|
-
* <ConfirmationModal
|
|
28
|
-
* open
|
|
29
|
-
* header="Delete item?"
|
|
30
|
-
* description="This action cannot be undone."
|
|
31
|
-
* confirmLabel="Delete"
|
|
32
|
-
* onClose={() => setOpen(false)}
|
|
33
|
-
* onConfirm={handleDelete}
|
|
34
|
-
* />
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @param header - Title content for the header
|
|
38
|
-
* @param [description] - Secondary text (ignored when `children` set)
|
|
39
|
-
* @param [descriptionClassName] - Custom CSS class for the description
|
|
40
|
-
* @param [open=false] - Controls visibility of the popup
|
|
41
|
-
* @param [confirmLabel="Ok"] - Label for the confirm button
|
|
42
|
-
* @param [cancelLabel="Cancel"] - Label for the cancel button
|
|
43
|
-
* @param [isLoading=false] - Shows loader placeholder and hides actions
|
|
44
|
-
* @param [disableConfirmButton=false] - Disables the confirm button
|
|
45
|
-
* @param [className] - Extra classes for the popup container
|
|
46
|
-
* @param [confirmClassName] - Extra classes merged into the confirm button
|
|
47
|
-
* @param onClose - Fired on close
|
|
48
|
-
* @param onConfirm - Fired on confirm
|
|
49
|
-
* @param [onCancel] - Fired on cancel (falls back to `onClose`)
|
|
50
|
-
* @param [children] - Custom body content
|
|
51
|
-
* @param [dividers=false] - Whether to render separators between sections
|
|
52
|
-
* @param [variant=ConfirmationPopupVariant.Info] - Visual variant for the popup
|
|
53
|
-
* @param [size=PopupSize.Sm] - Size of the popup
|
|
54
|
-
*/
|
|
55
|
-
export declare const DialConfirmationPopup: FC<DialConfirmationPopupProps>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ButtonAppearance, ButtonVariant } from '../../types/button';
|
|
2
|
-
import { ConfirmationPopupVariant } from '../../types/confirmation-popup';
|
|
3
|
-
export declare const actionsBaseClassName = "flex justify-end gap-2 px-6 py-4 border-t border-tertiary";
|
|
4
|
-
export declare const descriptionBaseClassName = "text-secondary dial-small-text px-6 pb-4";
|
|
5
|
-
export declare const defaultCancelLabel = "Cancel";
|
|
6
|
-
export declare const defaultConfirmLabel = "Ok";
|
|
7
|
-
export declare const variantConfig: Record<ConfirmationPopupVariant, {
|
|
8
|
-
container?: string;
|
|
9
|
-
confirm?: {
|
|
10
|
-
variant: ButtonVariant;
|
|
11
|
-
appearance: ButtonAppearance;
|
|
12
|
-
};
|
|
13
|
-
confirmClassName?: string;
|
|
14
|
-
cancel?: {
|
|
15
|
-
variant: ButtonVariant;
|
|
16
|
-
appearance: ButtonAppearance;
|
|
17
|
-
};
|
|
18
|
-
}>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export interface DialDraggableItemProps {
|
|
3
|
-
id: string;
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
ariaLabel?: string;
|
|
7
|
-
onFind?: (field: string) => number;
|
|
8
|
-
onMove?: (field: string, atIndex: number) => void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A lightweight wrapper that makes its children sortable via drag-and-drop.
|
|
12
|
-
* aliases: SortableItem|DragHandle
|
|
13
|
-
* Design system 1.0
|
|
14
|
-
*
|
|
15
|
-
* Renders a row with a grab handle (left) and the provided content (right).
|
|
16
|
-
* Integrates with `react-dnd` using a simple "column" drag type and delegates
|
|
17
|
-
* reordering logic to the provided `findItem` and `moveItem` callbacks.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* <DialDraggableItem id="a" findItem={find} moveItem={move}>
|
|
22
|
-
* <span>Item A</span>
|
|
23
|
-
* </DialDraggableItem>
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @param id - Unique identifier of the draggable item
|
|
27
|
-
* @param children - Content rendered within the draggable row
|
|
28
|
-
* @param [className] - Additional CSS classes applied to the root container
|
|
29
|
-
* @param [onFind] - Function to resolve an item's current index by id
|
|
30
|
-
* @param [onMove] - Function to move an item (by id) to a target index
|
|
31
|
-
* @param [ariaLabel='Drag item'] - Accessible label for the handle
|
|
32
|
-
*/
|
|
33
|
-
export declare const DialDraggableItem: FC<DialDraggableItemProps>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { DialDropdownProps } from '../Dropdown/Dropdown';
|
|
3
|
-
import { ElementSize } from '../../types/size';
|
|
4
|
-
export interface DialDropdownIconProps extends Omit<DialDropdownProps, 'children' | 'className'> {
|
|
5
|
-
icon: ReactNode;
|
|
6
|
-
ariaLabel: string;
|
|
7
|
-
size?: ElementSize;
|
|
8
|
-
className?: string;
|
|
9
|
-
buttonClassName?: string;
|
|
10
|
-
iconClassName?: string;
|
|
11
|
-
caretIcon?: ReactNode;
|
|
12
|
-
showCaret?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A compact icon trigger with a dropdown menu.
|
|
16
|
-
* aliases: ModelPicker|IconMenu|AvatarDropdown
|
|
17
|
-
* Design system 1.0
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* <DialDropdownIcon
|
|
22
|
-
* ariaLabel="Select model"
|
|
23
|
-
* icon={<IconBrandOpenai size={18} />}
|
|
24
|
-
* items={items}
|
|
25
|
-
* />
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @param items - Menu items to display.
|
|
29
|
-
* @param icon - Primary trigger icon.
|
|
30
|
-
* @param ariaLabel - Accessible name for the trigger button.
|
|
31
|
-
* @param [size=ElementSize.Standard] - Trigger size.
|
|
32
|
-
* @param [className] - Additional CSS classes applied to the dropdown wrapper.
|
|
33
|
-
* @param [buttonClassName] - Additional CSS classes applied to the trigger button.
|
|
34
|
-
* @param [iconClassName] - Additional CSS classes applied to the primary icon wrapper.
|
|
35
|
-
* @param [caretIcon] - Custom caret icon.
|
|
36
|
-
* @param [showCaret=true] - Whether to render the caret.
|
|
37
|
-
*/
|
|
38
|
-
export declare const DialDropdownIcon: FC<DialDropdownIconProps>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export interface DialFileIconProps {
|
|
3
|
-
extension?: string;
|
|
4
|
-
size?: number;
|
|
5
|
-
stroke?: number;
|
|
6
|
-
className?: string;
|
|
7
|
-
decorative?: boolean;
|
|
8
|
-
label?: ReactNode;
|
|
9
|
-
indicator?: ReactNode;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Renders a file-type icon based on a file extension.
|
|
13
|
-
* aliases: ExtensionIcon|TypeIcon
|
|
14
|
-
* Design system 1.0
|
|
15
|
-
*
|
|
16
|
-
* Uses DialIcon to provide consistent icon wrapper styling.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* <DialFileIcon extension=".pdf" />
|
|
21
|
-
* <DialFileIcon extension="tsx" size={28} stroke={1.25} />
|
|
22
|
-
* <DialFileIcon extension="unknown" decorative /> // decorative, hidden from AT
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @param extension - File extension string (with or without leading dot)
|
|
26
|
-
* @param [size=baseIconProps.size] - Icon pixel size
|
|
27
|
-
* @param [stroke=baseIconProps.stroke] - Tabler icon stroke width
|
|
28
|
-
* @param [className] - Additional classes on the container
|
|
29
|
-
* @param [decorative=false] - Whether the icon should be hidden from assistive technologies
|
|
30
|
-
* @param [label] - Accessible label when not decorative; defaults to "<EXT> file icon"
|
|
31
|
-
* @param [indicator] - Optional indicator element to display alongside the icon
|
|
32
|
-
*/
|
|
33
|
-
export declare const DialFileIcon: FC<DialFileIconProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type ExtensionKey = '.bmp' | '.cpp' | '.c' | '.cs' | '.css' | '.csv' | '.doc' | '.docx' | '.html' | '.ini' | '.jpg' | '.js' | '.json' | '.jsx' | '.md' | '.pdf' | '.php' | '.png' | '.ppt' | '.py' | '.rs' | '.sql' | '.svg' | '.ts' | '.tsx' | '.txt' | '.vue' | '.xls' | '.xml' | '.zip';
|
|
3
|
-
export interface BaseFileIconOpts {
|
|
4
|
-
size?: number;
|
|
5
|
-
stroke?: number;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const fileIconFactories: Record<string, (opts: BaseFileIconOpts) => ReactNode>;
|
|
9
|
-
export declare const supportedExtensions: ExtensionKey[];
|
|
@@ -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 {};
|