@epam/ai-dial-chat-shared 1.3.0-dev.34 → 1.3.0-dev.343
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/components/ActionMenu/ActionMenu.d.ts +26 -0
- package/components/ActionMenu/ActionMenu.d.ts.map +1 -0
- package/components/ActionMenu/ActionMenu.js +50 -0
- package/components/ConfirmationDialog/ConfirmationDialog.d.ts +46 -0
- package/components/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -0
- package/components/ConfirmationDialog/ConfirmationDialog.js +11 -9
- package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts +33 -0
- package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts.map +1 -0
- package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.module.scss.js +5 -4
- package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts +33 -0
- package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts.map +1 -0
- package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.js +2 -2
- package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.module.scss.js +3 -2
- package/components/ConfirmationView/ConfirmationFooter.d.ts +41 -0
- package/components/ConfirmationView/ConfirmationFooter.d.ts.map +1 -0
- package/components/ConfirmationView/ConfirmationFooter.js +25 -26
- package/components/ConfirmationView/ConfirmationView.d.ts +59 -0
- package/components/ConfirmationView/ConfirmationView.d.ts.map +1 -0
- package/components/ConfirmationView/ConfirmationView.js +12 -12
- package/components/ConfirmationView/ConfirmationView.module.scss.js +6 -5
- package/components/CopyButton/CopyButton.d.ts +19 -0
- package/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts +41 -0
- package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts.map +1 -0
- package/components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.d.ts +31 -0
- package/components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.d.ts.map +1 -0
- package/components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.js +36 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts +52 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts.map +1 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.js +36 -27
- package/components/DeleteConfirmationView/DeleteConfirmationView.module.scss.js +5 -4
- package/components/DeploymentIcon/DeploymentIcon.d.ts +36 -0
- package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -0
- package/components/DeploymentIcon/DeploymentIcon.module.scss.js +3 -2
- package/components/EntityHeader/EntityHeader.d.ts +38 -0
- package/components/EntityHeader/EntityHeader.d.ts.map +1 -0
- package/components/EntityHeader/EntityHeader.js +1 -1
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts +18 -0
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
- package/components/FeaturedChip/FeaturedChip.d.ts +16 -0
- package/components/FeaturedChip/FeaturedChip.d.ts.map +1 -0
- package/components/InitialsAvatar/InitialsAvatar.d.ts +18 -0
- package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -0
- package/components/InitialsAvatar/InitialsAvatar.js +4 -3
- package/components/ItemHeader/ItemHeader.d.ts +40 -0
- package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
- package/components/ItemHeader/ItemHeader.js +4 -1
- package/components/ItemHeader/ItemHeader.module.scss.js +5 -4
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +57 -0
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +58 -58
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss.js +9 -8
- package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts +7 -0
- package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +1 -0
- package/components/MarkdownRenderer/MDMessageViewer.d.ts +66 -0
- package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -0
- package/components/MarkdownRenderer/MDMessageViewer.js +14 -12
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts +145 -0
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
- package/components/MarkdownRenderer/MarkdownRenderer.js +146 -136
- package/components/MarkdownRenderer/MarkdownRenderer.module.scss.js +9 -8
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +18 -0
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +1 -0
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.js +1 -1
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.module.scss.js +5 -4
- package/components/MarkdownRenderer/PlainTextRenderer.d.ts +39 -0
- package/components/MarkdownRenderer/PlainTextRenderer.d.ts.map +1 -0
- package/components/MarkdownRenderer/PlainTextRenderer.js +1 -1
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +51 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.js +68 -63
- package/components/MarkdownRenderer/Table/MarkdownTable.module.scss.js +15 -13
- package/components/MarkdownRenderer/Table/TableHeader.d.ts +22 -0
- package/components/MarkdownRenderer/Table/TableHeader.d.ts.map +1 -0
- package/components/MarkdownRenderer/Table/TableHeader.module.scss.js +3 -2
- package/components/MarkdownRenderer/Table/table-serialization.d.ts +16 -0
- package/components/MarkdownRenderer/Table/table-serialization.d.ts.map +1 -0
- package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts +27 -0
- package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts.map +1 -0
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +9 -0
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -0
- package/components/MarkdownRenderer/ThinkingShimmer.d.ts +17 -0
- package/components/MarkdownRenderer/ThinkingShimmer.d.ts.map +1 -0
- package/components/MarkdownRenderer/markdown-class-names.d.ts +10 -0
- package/components/MarkdownRenderer/markdown-class-names.d.ts.map +1 -0
- package/components/MarkdownRenderer/markdown-whitespace.d.ts +15 -0
- package/components/MarkdownRenderer/markdown-whitespace.d.ts.map +1 -0
- package/components/MarkdownRenderer/markdown-whitespace.js +2 -6
- package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +25 -0
- package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +1 -0
- package/components/NewVersionAlert/NewVersionAlert.d.ts +27 -0
- package/components/NewVersionAlert/NewVersionAlert.d.ts.map +1 -0
- package/components/NewVersionAlert/NewVersionAlert.js +28 -0
- package/components/NewVersionAlert/NewVersionAlert.module.scss.js +4 -0
- package/components/NotificationStack/NotificationStack.d.ts +48 -0
- package/components/NotificationStack/NotificationStack.d.ts.map +1 -0
- package/components/NotificationStack/NotificationStack.js +111 -0
- package/components/PanelEmptyState/PanelEmptyState.d.ts +32 -0
- package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -0
- package/components/PanelEmptyState/PanelEmptyState.js +19 -9
- package/components/PanelEmptyState/PanelEmptyState.module.scss.js +6 -2
- package/components/ResourceSummary/ResourceSummary.d.ts +49 -0
- package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
- package/components/ResourceSummary/ResourceSummary.module.scss.js +5 -4
- package/components/TextRefinementField/TextRefinementField.d.ts +33 -0
- package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -0
- package/components/TextRefinementField/TextRefinementField.js +84 -55
- package/components/UnsavedChangesProvider/UnsavedChangesProvider.d.ts +22 -0
- package/components/UnsavedChangesProvider/UnsavedChangesProvider.d.ts.map +1 -0
- package/components/UnsavedChangesProvider/UnsavedChangesProvider.js +57 -0
- package/components/UnsavedChangesProvider/unsaved-changes-context.d.ts +44 -0
- package/components/UnsavedChangesProvider/unsaved-changes-context.d.ts.map +1 -0
- package/components/UnsavedChangesProvider/unsaved-changes-context.js +13 -0
- package/constants/breakpoint.d.ts +15 -0
- package/constants/breakpoint.d.ts.map +1 -0
- package/constants/breakpoint.js +2 -2
- package/constants/dial.d.ts +5 -0
- package/constants/dial.d.ts.map +1 -0
- package/constants/entity-colors.d.ts +6 -0
- package/constants/entity-colors.d.ts.map +1 -0
- package/constants/icon.d.ts +14 -0
- package/constants/icon.d.ts.map +1 -0
- package/constants/markdown-editor.d.ts +2 -0
- package/constants/markdown-editor.d.ts.map +1 -0
- package/constants/mime-types.d.ts +27 -0
- package/constants/mime-types.d.ts.map +1 -0
- package/constants/public-class-names.d.ts +13 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/constants/resizable-fields.d.ts +5 -0
- package/constants/resizable-fields.d.ts.map +1 -0
- package/constants/select-list.d.ts +4 -0
- package/constants/select-list.d.ts.map +1 -0
- package/constants/tag-input.d.ts +2 -0
- package/constants/tag-input.d.ts.map +1 -0
- package/conversation-transfer/conversation-transfer-queue.d.ts +16 -0
- package/conversation-transfer/conversation-transfer-queue.d.ts.map +1 -0
- package/conversation-transfer/conversation-transfer-queue.js +24 -0
- package/entry-points/file-manager.d.ts +5 -0
- package/entry-points/file-manager.d.ts.map +1 -0
- package/entry-points/markdown.d.ts +19 -0
- package/entry-points/markdown.d.ts.map +1 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +67 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.js +328 -266
- package/file-manager/DialFileManagerShell/DialFileManagerShell.module.scss.js +8 -0
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +96 -0
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +82 -78
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.module.scss.js +7 -0
- package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +22 -0
- package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
- package/file-manager/OperationLoaderModal/OperationLoaderModal.js +25 -20
- package/file-manager/OperationLoaderModal/OperationLoaderModal.module.scss.js +4 -0
- package/file-manager/attach-result.d.ts +9 -0
- package/file-manager/attach-result.d.ts.map +1 -0
- package/file-manager/file-manager-controller.d.ts +129 -0
- package/file-manager/file-manager-controller.d.ts.map +1 -0
- package/file-manager/file-manager-variant.d.ts +21 -0
- package/file-manager/file-manager-variant.d.ts.map +1 -0
- package/file-manager/file-upload-validation.d.ts +8 -0
- package/file-manager/file-upload-validation.d.ts.map +1 -0
- package/file-manager/index.d.ts +11 -0
- package/file-manager/index.d.ts.map +1 -0
- package/file-manager/labels.d.ts +177 -0
- package/file-manager/labels.d.ts.map +1 -0
- package/file-manager/path.d.ts +12 -0
- package/file-manager/path.d.ts.map +1 -0
- package/file-manager/shell-styles.d.ts +33 -0
- package/file-manager/shell-styles.d.ts.map +1 -0
- package/file-manager/upload-batch.d.ts +75 -0
- package/file-manager/upload-batch.d.ts.map +1 -0
- package/file-manager/upload-batch.js +6 -2
- package/file-manager/upload-queue.d.ts +45 -0
- package/file-manager/upload-queue.d.ts.map +1 -0
- package/file-manager/upload-queue.js +45 -13
- package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +27 -0
- package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +1 -0
- package/file-manager.d.ts +2 -506
- package/file-manager.js +4 -4
- package/hooks/useAvailableHeightCap.d.ts +30 -0
- package/hooks/useAvailableHeightCap.d.ts.map +1 -0
- package/hooks/useAvailableHeightCap.js +1 -1
- package/hooks/useCodeCopy.d.ts +6 -0
- package/hooks/useCodeCopy.d.ts.map +1 -0
- package/hooks/useCollapsedText.d.ts +27 -0
- package/hooks/useCollapsedText.d.ts.map +1 -0
- package/hooks/useControlErrorAssociation.d.ts +3 -0
- package/hooks/useControlErrorAssociation.d.ts.map +1 -0
- package/hooks/useControlErrorAssociation.js +12 -0
- package/hooks/useHorizontalOverflow.d.ts +21 -0
- package/hooks/useHorizontalOverflow.d.ts.map +1 -0
- package/hooks/useIsMobile.d.ts +3 -0
- package/hooks/useIsMobile.d.ts.map +1 -0
- package/hooks/useIsMobile.js +1 -1
- package/hooks/useIsPhone.d.ts +3 -0
- package/hooks/useIsPhone.d.ts.map +1 -0
- package/hooks/useIsPhone.js +13 -0
- package/hooks/useIsTablet.d.ts +3 -0
- package/hooks/useIsTablet.d.ts.map +1 -0
- package/hooks/useIsTablet.js +13 -0
- package/hooks/useIsTextClipped.d.ts +26 -0
- package/hooks/useIsTextClipped.d.ts.map +1 -0
- package/hooks/useIsTextClipped.js +25 -0
- package/hooks/useStreamedMarkdownContent.d.ts +3 -0
- package/hooks/useStreamedMarkdownContent.d.ts.map +1 -0
- package/hooks/useTextRefinement.d.ts +44 -0
- package/hooks/useTextRefinement.d.ts.map +1 -0
- package/hooks/useTextRefinement.js +4 -4
- package/hooks/useUnsavedChangesGuard.d.ts +14 -0
- package/hooks/useUnsavedChangesGuard.d.ts.map +1 -0
- package/hooks/useUnsavedChangesGuard.js +1 -5
- package/hooks/useUnsavedChangesLeaveConfirmation.d.ts +12 -0
- package/hooks/useUnsavedChangesLeaveConfirmation.d.ts.map +1 -0
- package/hooks/useUnsavedChangesLeaveConfirmation.js +22 -0
- package/hooks/useUnsavedChangesLeaveGuard.d.ts +24 -0
- package/hooks/useUnsavedChangesLeaveGuard.d.ts.map +1 -0
- package/hooks/useUnsavedChangesLeaveGuard.js +24 -0
- package/index.css +3 -2
- package/index.d.ts +93 -3167
- package/index.d.ts.map +1 -0
- package/index.js +92 -76
- package/markdown.d.ts +2 -465
- package/markdown.js +3 -2
- package/models/annotation.d.ts +143 -0
- package/models/annotation.d.ts.map +1 -0
- package/models/application-visualizer.d.ts +67 -0
- package/models/application-visualizer.d.ts.map +1 -0
- package/models/auth.d.ts +28 -0
- package/models/auth.d.ts.map +1 -0
- package/models/chat.d.ts +409 -0
- package/models/chat.d.ts.map +1 -0
- package/models/conversation-classification.d.ts +14 -0
- package/models/conversation-classification.d.ts.map +1 -0
- package/models/conversation-classification.js +3 -1
- package/models/conversation-transfer.d.ts +96 -0
- package/models/conversation-transfer.d.ts.map +1 -0
- package/models/custom-visualizer.d.ts +61 -0
- package/models/custom-visualizer.d.ts.map +1 -0
- package/models/deployment-configuration.d.ts +55 -0
- package/models/deployment-configuration.d.ts.map +1 -0
- package/models/deployment-features.d.ts +17 -0
- package/models/deployment-features.d.ts.map +1 -0
- package/models/deployment.d.ts +31 -0
- package/models/deployment.d.ts.map +1 -0
- package/models/dial-model.d.ts +19 -0
- package/models/dial-model.d.ts.map +1 -0
- package/models/entity.d.ts +15 -0
- package/models/entity.d.ts.map +1 -0
- package/models/import-export.d.ts +23 -0
- package/models/import-export.d.ts.map +1 -0
- package/models/inline-segment.d.ts +11 -0
- package/models/inline-segment.d.ts.map +1 -0
- package/models/locale.d.ts +19 -0
- package/models/locale.d.ts.map +1 -0
- package/models/text-refinement.d.ts +22 -0
- package/models/text-refinement.d.ts.map +1 -0
- package/models/theme.d.ts +36 -0
- package/models/theme.d.ts.map +1 -0
- package/models/tool-menu-item.d.ts +13 -0
- package/models/tool-menu-item.d.ts.map +1 -0
- package/package.json +10 -17
- package/types/attachment.d.ts +25 -0
- package/types/attachment.d.ts.map +1 -0
- package/types/code-editor.d.ts +8 -0
- package/types/code-editor.d.ts.map +1 -0
- package/types/entity-type.d.ts +10 -0
- package/types/entity-type.d.ts.map +1 -0
- package/types/file-manager-node.d.ts +17 -0
- package/types/file-manager-node.d.ts.map +1 -0
- package/types/mime-type.d.ts +59 -0
- package/types/mime-type.d.ts.map +1 -0
- package/utils/annotation.d.ts +29 -0
- package/utils/annotation.d.ts.map +1 -0
- package/utils/avatar-color.d.ts +10 -0
- package/utils/avatar-color.d.ts.map +1 -0
- package/utils/base64-json.d.ts +14 -0
- package/utils/base64-json.d.ts.map +1 -0
- package/utils/base64-json.js +4 -0
- package/utils/build-css-vars.d.ts +4 -0
- package/utils/build-css-vars.d.ts.map +1 -0
- package/utils/copy-to-clipboard.d.ts +18 -0
- package/utils/copy-to-clipboard.d.ts.map +1 -0
- package/utils/dom.d.ts +8 -0
- package/utils/dom.d.ts.map +1 -0
- package/utils/dom.js +10 -0
- package/utils/entity-field-limits.d.ts +11 -0
- package/utils/entity-field-limits.d.ts.map +1 -0
- package/utils/entity-type.d.ts +5 -0
- package/utils/entity-type.d.ts.map +1 -0
- package/utils/file-download.d.ts +21 -0
- package/utils/file-download.d.ts.map +1 -0
- package/utils/format-file-size.d.ts +3 -0
- package/utils/format-file-size.d.ts.map +1 -0
- package/utils/format-last-used.d.ts +3 -0
- package/utils/format-last-used.d.ts.map +1 -0
- package/utils/format-price.d.ts +7 -0
- package/utils/format-price.d.ts.map +1 -0
- package/utils/format-price.js +10 -10
- package/utils/generate-uuid.d.ts +3 -0
- package/utils/generate-uuid.d.ts.map +1 -0
- package/utils/initials.d.ts +3 -0
- package/utils/initials.d.ts.map +1 -0
- package/utils/inline-segments.d.ts +38 -0
- package/utils/inline-segments.d.ts.map +1 -0
- package/utils/inline-segments.js +53 -0
- package/utils/is-audio-transcription-supported.d.ts +3 -0
- package/utils/is-audio-transcription-supported.d.ts.map +1 -0
- package/utils/is-skill-selection-unsupported.d.ts +3 -0
- package/utils/is-skill-selection-unsupported.d.ts.map +1 -0
- package/utils/latex.d.ts +22 -0
- package/utils/latex.d.ts.map +1 -0
- package/utils/latex.js +47 -41
- package/utils/markdown-html.d.ts +14 -0
- package/utils/markdown-html.d.ts.map +1 -0
- package/utils/markdown-html.js +11 -0
- package/utils/merge-class.d.ts +4 -0
- package/utils/merge-class.d.ts.map +1 -0
- package/utils/message-attachment-to-display.d.ts +22 -0
- package/utils/message-attachment-to-display.d.ts.map +1 -0
- package/utils/message-attachment-to-display.js +1 -1
- package/utils/message.d.ts +4 -0
- package/utils/message.d.ts.map +1 -0
- package/utils/mime-type.d.ts +22 -0
- package/utils/mime-type.d.ts.map +1 -0
- package/utils/mime-type.js +1 -1
- package/utils/prompt-variables.d.ts +62 -0
- package/utils/prompt-variables.d.ts.map +1 -0
- package/utils/prompt-variables.js +5 -9
- package/utils/string-utils.d.ts +11 -0
- package/utils/string-utils.d.ts.map +1 -0
- package/utils/syntax-highlighting.d.ts +8 -0
- package/utils/syntax-highlighting.d.ts.map +1 -0
- package/utils/syntax-highlighting.js +8 -8
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/file-manager/DialFileManagerShell/DialFileManagerShell.module.scss
|
|
2
|
+
var e = "_surface_186yw_1", t = "_tree_186yw_5", n = "_overlay_186yw_10", r = {
|
|
3
|
+
surface: e,
|
|
4
|
+
tree: t,
|
|
5
|
+
overlay: n
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { r as default, n as overlay, e as surface, t as tree };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { DialFileManagerTabs, DialFile, DialFileAcceptType, FileManagerGridRow, FileTreeOptions } from '@epam/ai-dial-react-file-manager';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { FileManagerSelectableNode } from '../../types/file-manager-node';
|
|
4
|
+
import { AttachResult } from '../attach-result';
|
|
5
|
+
import { FileManagerController } from '../file-manager-controller';
|
|
6
|
+
import { DialFileManagerActionProfile, DialFileManagerVariant } from '../file-manager-variant';
|
|
7
|
+
import { FileManagerAttachModalLabels } from '../labels';
|
|
8
|
+
import { FileManagerAttachModalColors } from '../shell-styles';
|
|
9
|
+
/** Props accepted by `FileManagerAttachModal`. */
|
|
10
|
+
export interface FileManagerAttachModalProps {
|
|
11
|
+
/** Whether the modal is open. */
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
/** Called when the modal requests to be closed. */
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
/** Called with the confirmed selection when the user presses Attach. */
|
|
16
|
+
onAttach: (result: AttachResult) => void;
|
|
17
|
+
/** Called when one or more selected files were filtered out due to an unsupported type. */
|
|
18
|
+
onSkippedUnsupportedFiles?: () => void;
|
|
19
|
+
/** Called when the total attachment count would exceed the limit. */
|
|
20
|
+
onCountLimitExceeded?: (totalCount: number, limit: number) => void;
|
|
21
|
+
/** Live file-manager state driving the grid. */
|
|
22
|
+
controller: FileManagerController;
|
|
23
|
+
/**
|
|
24
|
+
* True while any mutating operation is in progress (upload, delete, rename, etc.).
|
|
25
|
+
* Disables the Attach button alongside `isLoading`.
|
|
26
|
+
*/
|
|
27
|
+
isAnyOperationInProgress: boolean;
|
|
28
|
+
/** Currently active tab. */
|
|
29
|
+
activeTab: DialFileManagerTabs;
|
|
30
|
+
/** Filter chips scoping the tree and the grid, rendered above the folder tree. */
|
|
31
|
+
tabs: FileTreeOptions['tabs'];
|
|
32
|
+
/**
|
|
33
|
+
* Called when the user switches tabs.
|
|
34
|
+
* The host is responsible for resetting `selectedPaths` to an empty set.
|
|
35
|
+
*/
|
|
36
|
+
onTabChange: (tab: DialFileManagerTabs) => void;
|
|
37
|
+
/** All user-visible strings. */
|
|
38
|
+
labels: FileManagerAttachModalLabels;
|
|
39
|
+
/** File-manager variant (controls which toolbar entries are shown). */
|
|
40
|
+
variant: DialFileManagerVariant;
|
|
41
|
+
/** Action profile controlling toolbar entry visibility. */
|
|
42
|
+
actionProfile: DialFileManagerActionProfile;
|
|
43
|
+
/**
|
|
44
|
+
* Current set of selected virtual paths, managed by the host.
|
|
45
|
+
* The host must reset this to an empty set when the active tab changes.
|
|
46
|
+
*/
|
|
47
|
+
selectedPaths: Set<string>;
|
|
48
|
+
/** Called when the user changes the grid selection. */
|
|
49
|
+
onSelectedPathsChange: (paths: Set<string>) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Resolves a folder `DialFile` to its DIAL Core path string for inclusion in
|
|
52
|
+
* `AttachResult.folderPaths`. Return `null` to skip the folder.
|
|
53
|
+
* Path normalization and bucket resolution are the host's responsibility.
|
|
54
|
+
*/
|
|
55
|
+
resolveFolderPath: (file: DialFile) => string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Returns `false` for file content-types that must be filtered out on attach.
|
|
58
|
+
* When absent, all content types are accepted.
|
|
59
|
+
*/
|
|
60
|
+
isFileTypeAllowed?: (contentType: string) => boolean;
|
|
61
|
+
/** Maximum size in bytes a selectable file may have. */
|
|
62
|
+
maxSelectableFileSize?: number;
|
|
63
|
+
/** Maximum total attachments (already-attached plus newly selected). */
|
|
64
|
+
maximumAttachmentsAmount?: number;
|
|
65
|
+
/** Count of attachments already present before this modal opens. Defaults to `0`. */
|
|
66
|
+
existingAttachmentsAmount?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Row selectability predicate forwarded to the grid and re-applied to every
|
|
69
|
+
* selection change, so items that were not clicked manually (e.g. the file
|
|
70
|
+
* manager's auto-select of newly created items) cannot enter selection
|
|
71
|
+
* unless manually selectable. Paths resolving to no listed node are dropped.
|
|
72
|
+
* When absent, selection changes are forwarded unfiltered.
|
|
73
|
+
*/
|
|
74
|
+
isRowSelectable?: (node: {
|
|
75
|
+
data?: FileManagerSelectableNode | null;
|
|
76
|
+
}) => boolean;
|
|
77
|
+
/** Returns a tooltip for disabled rows; forwarded to the grid. */
|
|
78
|
+
getDisabledTooltip?: (row: FileManagerGridRow) => string | undefined;
|
|
79
|
+
/** Tooltip shown on files with an unsupported type; forwarded to the grid. */
|
|
80
|
+
unsupportedFileTypeTooltip?: string;
|
|
81
|
+
/** Accepted file types for the upload file input. */
|
|
82
|
+
allowedFileTypes?: DialFileAcceptType[];
|
|
83
|
+
/** Whether to auto-select items immediately after upload. Defaults to `false`. */
|
|
84
|
+
autoSelectUploadedItems?: boolean;
|
|
85
|
+
/** Pre-translated message shown by the ui-kit when a newly-selected file exceeds `maxSelectableFileSize`. Omit to leave upload-size validation unrestricted regardless of `maxSelectableFileSize`. */
|
|
86
|
+
oversizedUploadMessage?: string;
|
|
87
|
+
/** Color overrides applied as CSS custom properties. */
|
|
88
|
+
colors?: FileManagerAttachModalColors;
|
|
89
|
+
/** Typography class of the modal title. Defaults to `'dial-h1-text'`. */
|
|
90
|
+
titleClassName?: string;
|
|
91
|
+
/** Typography class of the header description. Defaults to `'dial-small-text'`. */
|
|
92
|
+
descriptionClassName?: string;
|
|
93
|
+
}
|
|
94
|
+
/** File-manager modal with Popup chrome and an Attach footer. Selection and tab state are controlled by the host. */
|
|
95
|
+
export declare const FileManagerAttachModal: FC<FileManagerAttachModalProps>;
|
|
96
|
+
//# sourceMappingURL=FileManagerAttachModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileManagerAttachModal.d.ts","sourceRoot":"","sources":["../../../src/file-manager/FileManagerAttachModal/FileManagerAttachModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAEnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAA8B,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAE9D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAGpE,kDAAkD;AAClD,MAAM,WAAW,2BAA2B;IAC1C,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,mDAAmD;IACnD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wEAAwE;IACxE,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACzC,2FAA2F;IAC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AC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,MAAM,GAAG,SAAS,CAAC;IACrE,8EAA8E;IAC9E,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAEpC,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACxC,kFAAkF;IAClF,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,sMAAsM;IACtM,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,wDAAwD;IACxD,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mFAAmF;IACnF,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,qHAAqH;AACrH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CA4PlE,CAAC"}
|
|
@@ -1,113 +1,117 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
1
|
+
import { mergeClasses as e } from "../../utils/merge-class.js";
|
|
2
|
+
import { buildCssVars as t } from "../../utils/build-css-vars.js";
|
|
3
|
+
import { isHiddenPath as n } from "../path.js";
|
|
4
|
+
import { DialFileManagerShell as r } from "../DialFileManagerShell/DialFileManagerShell.js";
|
|
5
|
+
import i from "./FileManagerAttachModal.module.scss.js";
|
|
6
|
+
import { ButtonVariant as a, Popup as o, PopupSize as s } from "@epam/ai-dial-ui-kit";
|
|
7
|
+
import { memo as c, useCallback as l, useMemo as u } from "react";
|
|
8
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
|
+
import { DialFileNodeType as p } from "@epam/ai-dial-react-file-manager";
|
|
7
10
|
//#region src/file-manager/FileManagerAttachModal/FileManagerAttachModal.tsx
|
|
8
|
-
var
|
|
9
|
-
let { items:
|
|
11
|
+
var m = c(({ isOpen: c, onClose: m, onAttach: h, onSkippedUnsupportedFiles: g, onCountLimitExceeded: _, controller: v, isAnyOperationInProgress: y, activeTab: b, tabs: x, onTabChange: S, labels: C, variant: w, actionProfile: T, selectedPaths: E, onSelectedPathsChange: D, resolveFolderPath: O, isFileTypeAllowed: k, maxSelectableFileSize: A, maximumAttachmentsAmount: j, existingAttachmentsAmount: M = 0, isRowSelectable: N, getDisabledTooltip: P, unsupportedFileTypeTooltip: F, allowedFileTypes: I, autoSelectUploadedItems: L = !1, oversizedUploadMessage: R, colors: z, titleClassName: B = "dial-h1-text", descriptionClassName: V = "dial-small-text" }) => {
|
|
12
|
+
let { items: H, isLoading: U, searchResults: W } = v, G = u(() => {
|
|
10
13
|
let e = /* @__PURE__ */ new Map(), t = (n) => {
|
|
11
14
|
n.forEach((n) => {
|
|
12
|
-
(n.nodeType ===
|
|
15
|
+
(n.nodeType === p.ITEM || n.nodeType === p.FOLDER) && (e.set(n.path, n), n.id && e.set(n.id, n)), n.items && t(n.items);
|
|
13
16
|
});
|
|
14
17
|
};
|
|
15
|
-
return t(
|
|
18
|
+
return t(H), W?.forEach((t) => {
|
|
16
19
|
e.set(t.path, t), t.id && e.set(t.id, t);
|
|
17
20
|
}), e;
|
|
18
|
-
}, [
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
+
}, [H, W]), K = u(() => Array.from(E).map((e) => G.get(e)).filter((e) => e != null), [G, E]), q = l((e) => {
|
|
22
|
+
if (N == null) {
|
|
23
|
+
D(new Set(e));
|
|
21
24
|
return;
|
|
22
25
|
}
|
|
23
26
|
let t = /* @__PURE__ */ new Set();
|
|
24
27
|
for (let n of e) {
|
|
25
|
-
let e =
|
|
26
|
-
e != null &&
|
|
28
|
+
let e = G.get(n);
|
|
29
|
+
e != null && N({ data: e }) && t.add(n);
|
|
27
30
|
}
|
|
28
|
-
|
|
31
|
+
D(t);
|
|
29
32
|
}, [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
]),
|
|
34
|
-
let
|
|
35
|
-
for (let r of
|
|
36
|
-
let r =
|
|
37
|
-
|
|
33
|
+
G,
|
|
34
|
+
N,
|
|
35
|
+
D
|
|
36
|
+
]), J = l(() => {
|
|
37
|
+
let e = [], t = [];
|
|
38
|
+
for (let r of K) n(r.path) || (r.nodeType === p.FOLDER ? e.push(r.path) : t.push(r));
|
|
39
|
+
let r = e.filter((t) => !e.some((e) => e !== t && t.startsWith(`${e}/`))), i = t.filter((e) => !(n(e.path) || k != null && e.contentType != null && !k(e.contentType))), a = i.filter((e) => !r.some((t) => e.path.startsWith(`${t}/`)));
|
|
40
|
+
t.length - i.length > 0 && g?.();
|
|
38
41
|
let o = r.flatMap((e) => {
|
|
39
|
-
let t =
|
|
42
|
+
let t = G.get(e);
|
|
40
43
|
if (t == null) return [];
|
|
41
|
-
let n =
|
|
44
|
+
let n = O(t);
|
|
42
45
|
return n == null ? [] : [n];
|
|
43
|
-
}), s =
|
|
44
|
-
|
|
45
|
-
m?.(s, O);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
f({
|
|
46
|
+
}), s = M + a.length + o.length;
|
|
47
|
+
j != null && j > 0 && s > j ? _?.(s, j) : h({
|
|
49
48
|
files: a,
|
|
50
49
|
folderPaths: o
|
|
51
50
|
});
|
|
52
51
|
}, [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
E,
|
|
58
|
-
O,
|
|
52
|
+
h,
|
|
53
|
+
g,
|
|
54
|
+
_,
|
|
55
|
+
K,
|
|
59
56
|
k,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
j,
|
|
58
|
+
M,
|
|
59
|
+
G,
|
|
60
|
+
O
|
|
61
|
+
]), { title: Y, attachLabel: X, headerDescription: Z, ...Q } = C;
|
|
62
|
+
return /* @__PURE__ */ d(o, {
|
|
63
|
+
open: c,
|
|
64
|
+
header: Z == null ? Y : /* @__PURE__ */ f("div", {
|
|
66
65
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
67
|
-
children: [/* @__PURE__ */
|
|
68
|
-
className: "
|
|
69
|
-
children:
|
|
70
|
-
}), /* @__PURE__ */
|
|
71
|
-
className: "
|
|
72
|
-
children:
|
|
66
|
+
children: [/* @__PURE__ */ d("h3", {
|
|
67
|
+
className: e("truncate", B, i.title),
|
|
68
|
+
children: Y
|
|
69
|
+
}), /* @__PURE__ */ d("p", {
|
|
70
|
+
className: e("text-start", V),
|
|
71
|
+
children: Z
|
|
73
72
|
})]
|
|
74
73
|
}),
|
|
75
|
-
ariaLabel:
|
|
76
|
-
size:
|
|
77
|
-
className: "flex
|
|
74
|
+
ariaLabel: Y,
|
|
75
|
+
size: s.Lg,
|
|
76
|
+
className: e("flex h-[min(900px,100dvh)]! w-full max-w-[1600px]! flex-col mobile:h-full! mobile:max-w-full! mobile:rounded-none", i.popup),
|
|
78
77
|
overlayClassName: "mobile:p-0",
|
|
78
|
+
overlayStyle: t({
|
|
79
|
+
"--fmam-bg": z?.background,
|
|
80
|
+
"--fmam-title": z?.title
|
|
81
|
+
}),
|
|
79
82
|
headerClassName: "pb-0",
|
|
80
83
|
footerClassName: "pt-0",
|
|
81
|
-
onClose:
|
|
84
|
+
onClose: m,
|
|
82
85
|
mainButtons: [{
|
|
83
|
-
label:
|
|
84
|
-
variant:
|
|
85
|
-
disabled:
|
|
86
|
-
onClick:
|
|
86
|
+
label: X,
|
|
87
|
+
variant: a.Primary,
|
|
88
|
+
disabled: K.length === 0 || U || y,
|
|
89
|
+
onClick: J
|
|
87
90
|
}],
|
|
88
|
-
children: /* @__PURE__ */
|
|
91
|
+
children: /* @__PURE__ */ d("div", {
|
|
89
92
|
className: "flex h-full min-h-0 flex-col",
|
|
90
|
-
children: /* @__PURE__ */
|
|
91
|
-
controller:
|
|
92
|
-
labels:
|
|
93
|
-
activeTab:
|
|
94
|
-
tabs:
|
|
95
|
-
onTabChange:
|
|
96
|
-
selectedPaths:
|
|
97
|
-
onSelectedPathsChange:
|
|
98
|
-
variant:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
93
|
+
children: /* @__PURE__ */ d(r, {
|
|
94
|
+
controller: v,
|
|
95
|
+
labels: Q,
|
|
96
|
+
activeTab: b,
|
|
97
|
+
tabs: x,
|
|
98
|
+
onTabChange: S,
|
|
99
|
+
selectedPaths: E,
|
|
100
|
+
onSelectedPathsChange: q,
|
|
101
|
+
variant: w,
|
|
102
|
+
styles: { colors: { surface: "var(--fmam-bg, var(--bg-layer-raised, #fcfcfc))" } },
|
|
103
|
+
actionProfile: T,
|
|
104
|
+
autoSelectUploadedItems: L,
|
|
105
|
+
allowedFileTypes: I,
|
|
106
|
+
maxSelectableFileSize: A,
|
|
107
|
+
isRowSelectable: N,
|
|
108
|
+
getDisabledTooltip: P,
|
|
109
|
+
unsupportedFileTypeTooltip: F,
|
|
110
|
+
oversizedUploadMessage: R
|
|
107
111
|
})
|
|
108
112
|
})
|
|
109
113
|
});
|
|
110
114
|
});
|
|
111
|
-
|
|
115
|
+
m.displayName = "FileManagerAttachModal";
|
|
112
116
|
//#endregion
|
|
113
|
-
export {
|
|
117
|
+
export { m as FileManagerAttachModal };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { OperationLoaderModalColors } from '../shell-styles';
|
|
3
|
+
/** Props for the operation-in-progress overlay modal (copy/move spinner). */
|
|
4
|
+
export interface OperationLoaderModalProps {
|
|
5
|
+
/** Title shown above the spinner (e.g. "Copying files"). */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Secondary text below the title (e.g. "Copying 2 items"). */
|
|
8
|
+
text: string;
|
|
9
|
+
/** Label for the cancel button. */
|
|
10
|
+
cancelLabel: string;
|
|
11
|
+
/** Called when the user clicks Cancel. */
|
|
12
|
+
onCancel: () => void;
|
|
13
|
+
/** Color overrides applied as CSS custom properties. */
|
|
14
|
+
colors?: OperationLoaderModalColors;
|
|
15
|
+
/** Typography class of the secondary text. Defaults to `'dial-small-text'`. */
|
|
16
|
+
textClassName?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Modal overlay with a spinner and cancel button for long-running file operations. */
|
|
19
|
+
export declare const OperationLoaderModal: FC<OperationLoaderModalProps>;
|
|
20
|
+
declare const _default: import('react').NamedExoticComponent<OperationLoaderModalProps>;
|
|
21
|
+
export default _default;
|
|
22
|
+
//# sourceMappingURL=OperationLoaderModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationLoaderModal.d.ts","sourceRoot":"","sources":["../../../src/file-manager/OperationLoaderModal/OperationLoaderModal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAGlE,6EAA6E;AAC7E,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wDAAwD;IACxD,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,uFAAuF;AACvF,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA6B9D,CAAC;;AAEF,wBAA0C"}
|
|
@@ -1,33 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { mergeClasses as e } from "../../utils/merge-class.js";
|
|
2
|
+
import { buildCssVars as t } from "../../utils/build-css-vars.js";
|
|
3
|
+
import n from "./OperationLoaderModal.module.scss.js";
|
|
4
|
+
import { LiveRegion as r, Popup as i, Spinner as a } from "@epam/ai-dial-ui-kit";
|
|
5
|
+
import { memo as o } from "react";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
7
|
//#region src/file-manager/OperationLoaderModal/OperationLoaderModal.tsx
|
|
5
|
-
var
|
|
6
|
-
className: "
|
|
8
|
+
var l = ({ title: o, text: l, cancelLabel: u, onCancel: d, colors: f, textClassName: p = "dial-small-text" }) => /* @__PURE__ */ s(i, {
|
|
9
|
+
className: "h-fit! max-h-full! w-[400px]!",
|
|
7
10
|
open: !0,
|
|
8
11
|
closeOnOutsideClick: !1,
|
|
9
12
|
hideClose: !0,
|
|
10
|
-
onClose:
|
|
13
|
+
onClose: d,
|
|
14
|
+
overlayStyle: t({ "--olm-text": f?.text }),
|
|
11
15
|
mainButtons: [{
|
|
12
|
-
label:
|
|
13
|
-
onClick:
|
|
16
|
+
label: u,
|
|
17
|
+
onClick: d
|
|
14
18
|
}],
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
"aria-live": "polite",
|
|
19
|
+
children: /* @__PURE__ */ c("div", {
|
|
17
20
|
className: "flex flex-col items-center gap-4 px-6 py-4 text-center",
|
|
18
|
-
children: [/* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
children: [/* @__PURE__ */ s("span", {
|
|
22
|
+
"aria-hidden": !0,
|
|
23
|
+
children: /* @__PURE__ */ s(a, {
|
|
24
|
+
size: 32,
|
|
25
|
+
fullWidth: !1
|
|
26
|
+
})
|
|
27
|
+
}), /* @__PURE__ */ c(r, {
|
|
23
28
|
className: "flex flex-col gap-1",
|
|
24
|
-
children: [/* @__PURE__ */
|
|
25
|
-
className:
|
|
26
|
-
children:
|
|
29
|
+
children: [/* @__PURE__ */ s("div", { children: o }), /* @__PURE__ */ s("div", {
|
|
30
|
+
className: e(p, n.text),
|
|
31
|
+
children: l
|
|
27
32
|
})]
|
|
28
33
|
})]
|
|
29
34
|
})
|
|
30
35
|
});
|
|
31
|
-
|
|
36
|
+
o(l);
|
|
32
37
|
//#endregion
|
|
33
|
-
export {
|
|
38
|
+
export { l as OperationLoaderModal };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DialFile } from '@epam/ai-dial-react-file-manager';
|
|
2
|
+
/** Result returned by the file-manager attach modal when the user confirms a selection. */
|
|
3
|
+
export interface AttachResult {
|
|
4
|
+
/** Selected files (individual items, not folders). */
|
|
5
|
+
files: DialFile[];
|
|
6
|
+
/** Virtual paths of selected folders. */
|
|
7
|
+
folderPaths: string[];
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=attach-result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attach-result.d.ts","sourceRoot":"","sources":["../../src/file-manager/attach-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAEjE,2FAA2F;AAC3F,MAAM,WAAW,YAAY;IAC3B,sDAAsD;IACtD,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,yCAAyC;IACzC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { DialCopiedItem, DialDeletedItem, DialFile, DialFileManagerActions, DialFileManagerTabs, DialUploadFileItem, FileManagerColumnKey } from '@epam/ai-dial-react-file-manager';
|
|
2
|
+
import { FileUploadValidationResult } from './file-upload-validation';
|
|
3
|
+
import { FileDownloadBatchState, FileUploadBatchState } from './upload-batch';
|
|
4
|
+
/**
|
|
5
|
+
* Structural view contract consumed by `DialFileManagerShell`. Contains exactly
|
|
6
|
+
* the fields of `UseDialFileManagerResult` that the shell reads, with the same
|
|
7
|
+
* names and types. Tabs, active tab, selection, destination-picker options, and
|
|
8
|
+
* host integration callbacks are explicit component props outside this contract.
|
|
9
|
+
*
|
|
10
|
+
* A `UseDialFileManagerResult` value is structurally assignable to this
|
|
11
|
+
* interface without a cast or adapter object.
|
|
12
|
+
*/
|
|
13
|
+
export interface FileManagerController {
|
|
14
|
+
/** Hierarchical items for DialFileManager's `items` prop. */
|
|
15
|
+
items: DialFile[];
|
|
16
|
+
/** True while the current folder is loading. */
|
|
17
|
+
isLoading: boolean;
|
|
18
|
+
/** Non-null when the last fetch failed. */
|
|
19
|
+
error: string | null;
|
|
20
|
+
/** Current path in DialFileManager format (e.g. `"/My files"`, `"/My files/reports/"`). */
|
|
21
|
+
path: string;
|
|
22
|
+
/** Pass directly to DialFileManager's `onPathChange`. */
|
|
23
|
+
onPathChange: (nextPath?: string) => void;
|
|
24
|
+
/** Re-runs the fetch for the current `folderPath`. */
|
|
25
|
+
retry: () => void;
|
|
26
|
+
/** Search: called by DialFileManager when the user types in the search box. */
|
|
27
|
+
onSearchFiles: (folder: string, query: string) => void;
|
|
28
|
+
/** Search: true while a search request is in flight. */
|
|
29
|
+
isSearching: boolean;
|
|
30
|
+
/** Search: flat, unfiltered recursive listing of the current folder, or null when search is not active. */
|
|
31
|
+
searchResults: DialFile[] | null;
|
|
32
|
+
/** Search: clears results and exits search mode. */
|
|
33
|
+
clearSearchResults: () => void;
|
|
34
|
+
/** Tree: controlled set of expanded folder virtual paths. */
|
|
35
|
+
expandedPaths: Set<string>;
|
|
36
|
+
/** Tree: virtual paths whose children are already in the cache (derived). */
|
|
37
|
+
loadedPaths: Set<string>;
|
|
38
|
+
/** Tree: called by DialFileManager when a folder is expanded/collapsed. */
|
|
39
|
+
onExpandedPathsChange: (paths: Set<string>) => void;
|
|
40
|
+
/** Destination folder popup: preloads the browsed folder without changing the outer grid path. */
|
|
41
|
+
onFolderPopupPathChange: (nextPath?: string) => void;
|
|
42
|
+
/** Destination folder popup: normalized virtual paths currently being preloaded. */
|
|
43
|
+
folderPopupLoadingPaths: Set<string>;
|
|
44
|
+
/** Upload: start a new batch. */
|
|
45
|
+
onUploadFiles: (files: DialUploadFileItem[], destinationFolder: string) => void;
|
|
46
|
+
/** Upload: extracts and uploads a ZIP archive's entries to the destination folder. */
|
|
47
|
+
onUploadArchive: (file: File, name: string, destinationFolder: string) => void;
|
|
48
|
+
/** Upload: validate file names before upload (called by DialFileManager). */
|
|
49
|
+
onValidateUpload: (files: DialUploadFileItem[], existingFiles: DialFile[], destinationFolder: string) => Promise<FileUploadValidationResult>;
|
|
50
|
+
/** Upload: current batch state (null when idle). */
|
|
51
|
+
uploadBatchState: FileUploadBatchState | null;
|
|
52
|
+
/** Upload: abort all in-flight and queued uploads. */
|
|
53
|
+
cancelUpload: () => void;
|
|
54
|
+
/** Upload: abort one queued or in-flight upload by its entry id. */
|
|
55
|
+
cancelUploadFile: (id: string) => void;
|
|
56
|
+
/** Upload: empty the upload queue. */
|
|
57
|
+
clearUploadBatch: () => void;
|
|
58
|
+
/** Folder creation: called when user confirms a new folder name. */
|
|
59
|
+
onCreateFolder: (file: DialUploadFileItem, folderPath: string, fileId: string) => Promise<void>;
|
|
60
|
+
/** Folder creation: inline synchronous validation (returns error message or null). */
|
|
61
|
+
onCreateFolderValidate: (name: string, parentFolder: DialFile) => string | null;
|
|
62
|
+
/** Download: called when user triggers download on one or more items; returns without waiting for the transfer. */
|
|
63
|
+
onDownloadFiles: (dialFiles: DialFile[]) => void;
|
|
64
|
+
/** True while at least one download is in progress. Does not block other actions. */
|
|
65
|
+
isDownloading: boolean;
|
|
66
|
+
/** Download: current batch state (null when idle). */
|
|
67
|
+
downloadBatchState: FileDownloadBatchState | null;
|
|
68
|
+
/** Download: abort one in-flight download by its entry id. */
|
|
69
|
+
cancelDownloadFile: (id: string) => void;
|
|
70
|
+
/** Download: abort every in-flight download. */
|
|
71
|
+
cancelAllDownloads: () => void;
|
|
72
|
+
/** Download: empty the download batch. */
|
|
73
|
+
clearDownloadBatch: () => void;
|
|
74
|
+
/** Delete: called when user confirms deletion of one or more items. */
|
|
75
|
+
onDeleteFiles: (items: DialDeletedItem[], sourceFolder: string) => void;
|
|
76
|
+
/** True while a delete request is in flight. */
|
|
77
|
+
isDeleting: boolean;
|
|
78
|
+
/** Rename: inline validation — returns error string or null. */
|
|
79
|
+
onRenameValidate: (value: string, item: DialFile) => string | null;
|
|
80
|
+
/** Rename: called when user confirms an inline rename. Also dispatches cross-folder move (see D3). */
|
|
81
|
+
onMoveToFiles: (items: DialCopiedItem[], sourceFolder: string, destinationFolder: string) => void;
|
|
82
|
+
/** True while a rename request is in flight. */
|
|
83
|
+
isRenaming: boolean;
|
|
84
|
+
/** Copy: called when user confirms a copy-paste. */
|
|
85
|
+
onCopyFiles: (items: DialCopiedItem[], destinationFolder: string) => void;
|
|
86
|
+
/** True while a copy request is in flight. */
|
|
87
|
+
isCopying: boolean;
|
|
88
|
+
/** True while the cross-folder-move branch of onMoveToFiles is in flight. */
|
|
89
|
+
isMoving: boolean;
|
|
90
|
+
/** Aborts whichever of copy/move is currently in flight. */
|
|
91
|
+
cancelCopyMove: () => void;
|
|
92
|
+
/** True when the current folder grants WRITE (upload + new folder). */
|
|
93
|
+
uploadEnabled: boolean;
|
|
94
|
+
/** True when Upload/New must be disabled. */
|
|
95
|
+
isNewButtonDisabled: boolean;
|
|
96
|
+
/** Tooltip for disabled New/Upload when `isNewButtonDisabled` is true. */
|
|
97
|
+
disabledNewButtonTooltip: string;
|
|
98
|
+
/** Columns to show in the grid — tab-dependent. */
|
|
99
|
+
visibleColumns: FileManagerColumnKey[];
|
|
100
|
+
/** BCP-47 locale string for date formatting, sourced from i18n.language. */
|
|
101
|
+
dateLocale: string;
|
|
102
|
+
/** Fixed date format options for the UpdatedAt column. */
|
|
103
|
+
dateOptions: Intl.DateTimeFormatOptions;
|
|
104
|
+
/** Action labels for grid/tree/bulk — Delete present only on my_files tab. */
|
|
105
|
+
actionLabels: Partial<Record<DialFileManagerActions, string>>;
|
|
106
|
+
/** Root-level shared item paths, populated only on the Shared tab. */
|
|
107
|
+
sharedWithMeIds: string[] | undefined;
|
|
108
|
+
/** Share: paths the user has shared with others, populated only on my_files tab. */
|
|
109
|
+
sharedByMePaths: Set<string>;
|
|
110
|
+
/** Unshare: called when user removes a shared-with-me item (Shared tab only). */
|
|
111
|
+
onUnshareFiles: (files: DialFile[]) => void;
|
|
112
|
+
/** True while an unshare request is in flight. */
|
|
113
|
+
isUnsharing: boolean;
|
|
114
|
+
/** Remove access: called when user revokes access to an owned shared item (my_files tab only). */
|
|
115
|
+
onRemoveFilesAccess: (files: DialFile[]) => void;
|
|
116
|
+
/** True while a remove-access request is in flight. */
|
|
117
|
+
isRemovingAccess: boolean;
|
|
118
|
+
/** Metadata: populated once onGetInfo resolves; passed to fileMetadataPopupOptions.fileMetadata. */
|
|
119
|
+
fileMetadata: DialFile | undefined;
|
|
120
|
+
/** True while a metadata request is in flight. */
|
|
121
|
+
isFileMetadataLoading: boolean;
|
|
122
|
+
/** Metadata: called by DialFileManager.onGetInfo to fetch and display a file's details. */
|
|
123
|
+
onGetInfo: (file: DialFile) => void;
|
|
124
|
+
/** Metadata: resets fileMetadata/isFileMetadataLoading; passed to fileMetadataPopupOptions.clearMetadata. */
|
|
125
|
+
clearMetadata: () => void;
|
|
126
|
+
/** Source tab of the browsed folder, never `All`; omitted by single-source controllers. */
|
|
127
|
+
sectionTab?: DialFileManagerTabs;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=file-manager-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-manager-controller.d.ts","sourceRoot":"","sources":["../../src/file-manager/file-manager-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,QAAQ,EACR,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;GAQ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CAAC;IACjD,uDAAuD;IACvD,gBAAgB,EAAE,OAAO,CAAC;IAE1B,oGAAoG;IACpG,YAAY,EAAE,QAAQ,GAAG,SAAS,CAAC;IACnC,kDAAkD;IAClD,qBAAqB,EAAE,OAAO,CAAC;IAC/B,2FAA2F;IAC3F,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,6GAA6G;IAC7G,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B,2FAA2F;IAC3F,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identifies which host is driving `useDialFileManager` / `DialFileManagerShell`.
|
|
3
|
+
* `FolderPicker` is a reserved value with no implemented UI yet (#7503+).
|
|
4
|
+
*/
|
|
5
|
+
export declare enum DialFileManagerVariant {
|
|
6
|
+
Attach = "attach",
|
|
7
|
+
Standalone = "standalone",
|
|
8
|
+
FolderPicker = "folder-picker"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Gates which actions `useDialFileManager` exposes per tab. `Attach` excludes
|
|
12
|
+
* Copy/Move/Duplicate (it is a file picker, not a management surface); `Browse`
|
|
13
|
+
* exposes the full #7503 action set. `Full` is reserved for
|
|
14
|
+
* `DialFileManagerVariant.FolderPicker` (#7503+).
|
|
15
|
+
*/
|
|
16
|
+
export declare enum DialFileManagerActionProfile {
|
|
17
|
+
Attach = "attach",
|
|
18
|
+
Browse = "browse",
|
|
19
|
+
Full = "full"
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=file-manager-variant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-manager-variant.d.ts","sourceRoot":"","sources":["../../src/file-manager/file-manager-variant.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,YAAY,kBAAkB;CAC/B;AAED;;;;;GAKG;AACH,oBAAY,4BAA4B;IACtC,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Result of validating files before upload. */
|
|
2
|
+
export interface FileUploadValidationResult {
|
|
3
|
+
/** Whether the files passed validation. */
|
|
4
|
+
valid: boolean;
|
|
5
|
+
/** Human-readable validation error message when `valid` is false. */
|
|
6
|
+
message?: string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=file-upload-validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-upload-validation.d.ts","sourceRoot":"","sources":["../../src/file-manager/file-upload-validation.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,MAAM,WAAW,0BAA0B;IACzC,2CAA2C;IAC3C,KAAK,EAAE,OAAO,CAAC;IACf,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './attach-result';
|
|
2
|
+
export * from './file-manager-controller';
|
|
3
|
+
export * from './file-manager-variant';
|
|
4
|
+
export * from './file-upload-validation';
|
|
5
|
+
export * from './labels';
|
|
6
|
+
export * from './path';
|
|
7
|
+
export * from './shell-styles';
|
|
8
|
+
export * from './upload-batch';
|
|
9
|
+
export * from './useGridEditingScroll/useGridEditingScroll';
|
|
10
|
+
export * from './OperationLoaderModal/OperationLoaderModal';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/file-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC"}
|