@topconsultnpm/sdkui-react 6.22.0-t1 → 6.22.0-t3
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/lib/components/NewComponents/ContextMenu/TMContextMenu.js +3 -3
- package/lib/components/NewComponents/ContextMenu/hooks.d.ts +1 -1
- package/lib/components/NewComponents/ContextMenu/styles.d.ts +45 -43
- package/lib/components/NewComponents/FloatingMenuBar/TMFloatingMenuBar.js +6 -6
- package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +80 -73
- package/lib/components/base/Styled.d.ts +92 -76
- package/lib/components/base/Styled.js +7 -5
- package/lib/components/base/TMAccordionNew.js +7 -7
- package/lib/components/base/TMAlert.d.ts +32 -32
- package/lib/components/base/TMAlert.js +6 -8
- package/lib/components/base/TMAreaManager.js +53 -55
- package/lib/components/base/TMButton.d.ts +13 -0
- package/lib/components/base/TMButton.js +139 -7
- package/lib/components/base/TMClosableList.js +3 -3
- package/lib/components/base/TMCustomButton.js +40 -48
- package/lib/components/base/TMDataGrid.d.ts +4 -0
- package/lib/components/base/TMDataGrid.js +292 -12
- package/lib/components/base/TMDataGridExportForm.js +39 -30
- package/lib/components/base/TMDropDownMenu.js +1 -1
- package/lib/components/base/TMEditorBase.d.ts +2 -0
- package/lib/components/base/TMFileManager.js +5 -3
- package/lib/components/base/TMFileManagerDataGridView.js +12 -3
- package/lib/components/base/TMFileManagerThumbnailItems.js +20 -10
- package/lib/components/base/TMFileManagerUtils.d.ts +6 -6
- package/lib/components/base/TMFileManagerUtils.js +37 -1
- package/lib/components/base/TMLayout.d.ts +2 -2
- package/lib/components/base/TMLayout.js +3 -3
- package/lib/components/base/TMList.js +1 -1
- package/lib/components/base/TMListView.js +3 -3
- package/lib/components/base/TMModal.d.ts +11 -0
- package/lib/components/base/TMModal.js +47 -13
- package/lib/components/base/TMPanel.d.ts +6 -0
- package/lib/components/base/TMPanel.js +141 -28
- package/lib/components/base/TMPopUp.js +5 -2
- package/lib/components/base/TMResizableMenu.js +2 -2
- package/lib/components/base/TMRightSidebar.js +1 -1
- package/lib/components/base/TMShowAllOrMaxItemsButton.js +1 -1
- package/lib/components/base/TMSpinner.d.ts +2 -1
- package/lib/components/base/TMSpinner.js +9 -7
- package/lib/components/base/TMTab.js +2 -2
- package/lib/components/base/TMTabControl.d.ts +106 -0
- package/lib/components/base/TMTabControl.js +664 -0
- package/lib/components/base/TMToggleButton.js +2 -2
- package/lib/components/base/TMToolbarCard.js +3 -3
- package/lib/components/base/TMTooltip.d.ts +2 -1
- package/lib/components/base/TMTooltip.js +24 -8
- package/lib/components/base/TMTreeView.d.ts +13 -7
- package/lib/components/base/TMTreeView.js +143 -70
- package/lib/components/base/TMWaitPanel.js +3 -3
- package/lib/components/base/waitPanel/TMWaitPanelConfirm.d.ts +12 -0
- package/lib/components/base/waitPanel/TMWaitPanelConfirm.js +185 -0
- package/lib/components/base/waitPanel/TMWaitPanelManager.d.ts +169 -0
- package/lib/components/base/waitPanel/TMWaitPanelManager.js +320 -0
- package/lib/components/base/waitPanel/TMWaitPanelView.d.ts +53 -0
- package/lib/components/base/waitPanel/TMWaitPanelView.js +274 -0
- package/lib/components/base/waitPanel/index.d.ts +1 -0
- package/lib/components/base/waitPanel/index.js +1 -0
- package/lib/components/choosers/TMCultureIDPicker.js +2 -2
- package/lib/components/choosers/TMDataListItemChooser.js +1 -1
- package/lib/components/choosers/TMDataListItemPicker.js +2 -2
- package/lib/components/choosers/TMDcmtTypeChooser.js +5 -4
- package/lib/components/choosers/TMDiskChooser.js +1 -1
- package/lib/components/choosers/TMDistinctValues.d.ts +9 -7
- package/lib/components/choosers/TMDistinctValues.js +157 -141
- package/lib/components/choosers/TMDynDataListItemChooser.js +1 -1
- package/lib/components/choosers/TMImageIDChooser.js +1 -1
- package/lib/components/choosers/TMMetadataChooser.js +3 -3
- package/lib/components/choosers/TMPathChooser.js +17 -34
- package/lib/components/choosers/TMQuickSearchInfo.d.ts +13 -0
- package/lib/components/choosers/TMQuickSearchInfo.js +279 -0
- package/lib/components/choosers/TMQuickSearchSettingsForm.d.ts +16 -0
- package/lib/components/choosers/TMQuickSearchSettingsForm.js +94 -0
- package/lib/components/choosers/TMRelationChooser.js +1 -1
- package/lib/components/choosers/TMSelectedValuesSummary.d.ts +13 -0
- package/lib/components/choosers/TMSelectedValuesSummary.js +89 -0
- package/lib/components/choosers/TMUserChooser.js +1 -1
- package/lib/components/editors/TMCheckBox.js +1 -1
- package/lib/components/editors/TMDateBox.d.ts +16 -1
- package/lib/components/editors/TMDateBox.js +90 -22
- package/lib/components/editors/TMDropDown.d.ts +3 -0
- package/lib/components/editors/TMDropDown.js +197 -5
- package/lib/components/editors/TMEditorStyled.d.ts +21 -43
- package/lib/components/editors/TMFormulaEditor.js +1 -1
- package/lib/components/editors/TMHtmlContentDisplay.js +1 -1
- package/lib/components/editors/TMLocalizedTextBox.js +1 -1
- package/lib/components/editors/TMMetadataEditor.d.ts +5 -1
- package/lib/components/editors/TMMetadataEditor.js +27 -23
- package/lib/components/editors/TMMetadataValues.js +6 -6
- package/lib/components/editors/TMRadioButton.js +2 -2
- package/lib/components/editors/TMSummary.js +3 -3
- package/lib/components/editors/TMTextArea.d.ts +1 -0
- package/lib/components/editors/TMTextArea.js +25 -17
- package/lib/components/editors/TMTextBox.d.ts +2 -0
- package/lib/components/editors/TMTextBox.js +32 -21
- package/lib/components/editors/TMTextExpression.js +1 -1
- package/lib/components/features/archive/TMArchive.js +24 -5
- package/lib/components/features/assistant/TMHelpOnLineChat.d.ts +29 -0
- package/lib/components/features/assistant/TMHelpOnLineChat.js +1384 -0
- package/lib/components/features/assistant/TMToppyDraggableHelpCenter.js +4 -4
- package/lib/components/features/assistant/TMToppySpeechBubble.js +1 -1
- package/lib/components/features/assistant/dataset/Designer-Suggested-Questions.json +102 -0
- package/lib/components/features/assistant/dataset/Login-Suggested-Questions.json +32 -0
- package/lib/components/features/assistant/dataset/Surfer-Suggested-Questions.json +102 -0
- package/lib/components/features/documents/TMBatchUpdateForm.js +22 -9
- package/lib/components/features/documents/TMCopyToFolderForm.js +50 -42
- package/lib/components/features/documents/TMDcmtBlog.d.ts +3 -0
- package/lib/components/features/documents/TMDcmtBlog.js +4 -4
- package/lib/components/features/documents/TMDcmtForm.d.ts +7 -0
- package/lib/components/features/documents/TMDcmtForm.js +281 -113
- package/lib/components/features/documents/TMDcmtFormActionButtons.d.ts +11 -0
- package/lib/components/features/documents/TMDcmtFormActionButtons.js +79 -9
- package/lib/components/features/documents/TMDcmtIcon.d.ts +1 -3
- package/lib/components/features/documents/TMDcmtIcon.js +8 -8
- package/lib/components/features/documents/TMDcmtPreview.d.ts +7 -5
- package/lib/components/features/documents/TMDcmtPreview.js +16 -10
- package/lib/components/features/documents/TMDcmtTasks.js +2 -9
- package/lib/components/features/documents/TMDownloadRelationViewerSection.js +1 -1
- package/lib/components/features/documents/TMFileUploader.js +7 -7
- package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +2 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.js +95 -108
- package/lib/components/features/documents/TMMasterInfoFields.d.ts +20 -0
- package/lib/components/features/documents/TMMasterInfoFields.js +185 -0
- package/lib/components/features/documents/TMMergeToPdfForm.d.ts +1 -2
- package/lib/components/features/documents/TMMergeToPdfForm.js +83 -56
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.d.ts +46 -0
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.js +320 -0
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsUtils.d.ts +370 -0
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsUtils.js +283 -0
- package/lib/components/features/documents/TMRelationViewer.d.ts +29 -9
- package/lib/components/features/documents/TMRelationViewer.js +310 -208
- package/lib/components/features/documents/copyAndMergeDcmtsShared.d.ts +1 -1
- package/lib/components/features/documents/relationTreeState.d.ts +32 -0
- package/lib/components/features/documents/relationTreeState.js +89 -0
- package/lib/components/features/search/TMMetadataOutputForm.js +1 -1
- package/lib/components/features/search/TMMetadataSorterForm.js +1 -1
- package/lib/components/features/search/TMSavedQuerySelector.js +2 -2
- package/lib/components/features/search/TMSearch.d.ts +1 -1
- package/lib/components/features/search/TMSearch.js +172 -34
- package/lib/components/features/search/TMSearchQueryEditor.js +7 -5
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +14 -4
- package/lib/components/features/search/TMSearchQueryPanel.js +153 -62
- package/lib/components/features/search/TMSearchResult.d.ts +21 -0
- package/lib/components/features/search/TMSearchResult.js +461 -152
- package/lib/components/features/search/TMSignatureInfoContent.js +1 -1
- package/lib/components/features/search/TMTreeSelector.js +130 -83
- package/lib/components/features/search/TMViewHistoryDcmt.js +14 -25
- package/lib/components/features/tasks/TMTaskForm.js +1 -1
- package/lib/components/features/tasks/TMTaskFormUtils.js +3 -3
- package/lib/components/features/tasks/TMTasksAgenda.js +1 -1
- package/lib/components/features/tasks/TMTasksCalendar.js +1 -1
- package/lib/components/features/tasks/TMTasksHeader.js +1 -1
- package/lib/components/features/tasks/TMTasksUtilsView.js +1 -1
- package/lib/components/features/tasks/TMTasksView.js +97 -102
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +92 -92
- package/lib/components/features/workflow/TMWorkflowPopup.d.ts +10 -0
- package/lib/components/features/workflow/TMWorkflowPopup.js +9 -5
- package/lib/components/features/workflow/diagram/ConnectionComponent.js +3 -3
- package/lib/components/features/workflow/diagram/DiagramItemComponent.js +3 -3
- package/lib/components/features/workflow/diagram/DiagramItemForm.js +1 -1
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +1 -1
- package/lib/components/features/workflow/diagram/RecipientList.js +1 -1
- package/lib/components/features/workflow/diagram/WFDiagram.js +4 -4
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +3 -1
- package/lib/components/forms/Login/ChangePasswordInputs.d.ts +3 -1
- package/lib/components/forms/Login/Menu.js +1 -1
- package/lib/components/forms/Login/OTPReader.js +1 -1
- package/lib/components/forms/Login/PasswordStrengthChecker.js +1 -1
- package/lib/components/forms/Login/RapidAccessLogin.js +2 -2
- package/lib/components/forms/Login/RecoverPasswordFlow.js +2 -2
- package/lib/components/forms/Login/SelectBox.js +1 -1
- package/lib/components/forms/Login/StepIndicator.js +1 -1
- package/lib/components/forms/Login/TMLoginForm.js +7 -7
- package/lib/components/forms/Login/TextBox.js +1 -1
- package/lib/components/forms/TMApplyForm.js +3 -3
- package/lib/components/forms/TMChooserForm.js +1 -1
- package/lib/components/forms/TMResultDialog.js +1 -1
- package/lib/components/forms/TMSaveForm.js +3 -3
- package/lib/components/grids/TMBlogAttachments.js +14 -3
- package/lib/components/grids/TMBlogHeader.js +5 -1
- package/lib/components/grids/TMBlogsPost.d.ts +2 -0
- package/lib/components/grids/TMBlogsPost.js +122 -99
- package/lib/components/grids/TMBlogsPostUtils.d.ts +1 -0
- package/lib/components/grids/TMBlogsPostUtils.js +15 -4
- package/lib/components/grids/TMRecentsManager.js +4 -4
- package/lib/components/grids/TMValidationItemsList.js +1 -1
- package/lib/components/index.d.ts +6 -0
- package/lib/components/index.js +5 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +25 -15
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +68 -93
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +4 -5
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +1 -1
- package/lib/components/layout/panelManager/TMPanelWrapper.js +3 -3
- package/lib/components/layout/panelManager/types.d.ts +3 -0
- package/lib/components/layout/panelManager/utils.js +13 -11
- package/lib/components/pages/TMPage.js +30 -32
- package/lib/components/query/TMQueryCountButton.js +1 -1
- package/lib/components/query/TMQueryEditor.d.ts +17 -10
- package/lib/components/query/TMQueryEditor.js +9 -8
- package/lib/components/sidebar/TMCommandsPanel.d.ts +4 -4
- package/lib/components/sidebar/TMCommandsPanel.js +1 -1
- package/lib/components/sidebar/TMHeader.d.ts +1 -0
- package/lib/components/sidebar/TMHeader.js +37 -27
- package/lib/components/sidebar/TMSidebar.js +1 -1
- package/lib/components/sidebar/TMSidebarItem.js +1 -1
- package/lib/components/viewers/TMMidViewer.js +6 -3
- package/lib/components/viewers/TMTidViewer.js +89 -28
- package/lib/components/wizard/TMStepIndicator.js +3 -3
- package/lib/css/tm-sdkui.css +1 -1
- package/lib/devextreme-license.d.ts +1 -0
- package/lib/devextreme-license.js +3 -0
- package/lib/helper/Enum_Localizator.d.ts +4 -4
- package/lib/helper/Enum_Localizator.js +1 -0
- package/lib/helper/Globalization.d.ts +1 -1
- package/lib/helper/SDKUI_Globals.d.ts +110 -0
- package/lib/helper/SDKUI_Globals.js +151 -0
- package/lib/helper/SDKUI_Localizator.d.ts +756 -677
- package/lib/helper/SDKUI_Localizator.js +790 -0
- package/lib/helper/TMAppUpdatedModal.d.ts +2 -0
- package/lib/helper/TMAppUpdatedModal.js +134 -0
- package/lib/helper/TMIcons.d.ts +1 -0
- package/lib/helper/TMIcons.js +4 -3
- package/lib/helper/TMPdfViewer.js +1 -1
- package/lib/helper/TMToppyMessage.js +1 -1
- package/lib/helper/TMUtils.d.ts +51 -4
- package/lib/helper/TMUtils.js +273 -12
- package/lib/helper/ZipManager.d.ts +1 -1
- package/lib/helper/ZipManager.js +2 -1
- package/lib/helper/checkinCheckoutManager.d.ts +1 -1
- package/lib/helper/checkinCheckoutManager.js +1 -1
- package/lib/helper/dataGridSearchHelper.d.ts +28 -0
- package/lib/helper/dataGridSearchHelper.js +51 -0
- package/lib/helper/dcmtsHelper.d.ts +22 -0
- package/lib/helper/dcmtsHelper.js +60 -1
- package/lib/helper/helpers.d.ts +24 -2
- package/lib/helper/helpers.js +59 -3
- package/lib/helper/index.d.ts +2 -0
- package/lib/helper/index.js +2 -0
- package/lib/helper/queryHelper.d.ts +6 -1
- package/lib/helper/queryHelper.js +8 -3
- package/lib/hooks/tmDistinctValuesGridHelper.d.ts +16 -0
- package/lib/hooks/tmDistinctValuesGridHelper.js +31 -0
- package/lib/hooks/useArchiveListForm.d.ts +39 -0
- package/lib/hooks/useArchiveListForm.js +46 -0
- package/lib/hooks/useCaseFlowApprove.d.ts +56 -0
- package/lib/hooks/useCaseFlowApprove.js +157 -0
- package/lib/hooks/useCheckInOutOperations.d.ts +0 -6
- package/lib/hooks/useCheckInOutOperations.js +14 -34
- package/lib/hooks/useDataUserIdItem.d.ts +1 -0
- package/lib/hooks/useDataUserIdItem.js +1 -0
- package/lib/hooks/useDcmtOperations.d.ts +3 -12
- package/lib/hooks/useDcmtOperations.js +187 -179
- package/lib/hooks/useDocumentOperations.d.ts +5 -0
- package/lib/hooks/useDocumentOperations.js +64 -33
- package/lib/hooks/useInputDialog.js +1 -1
- package/lib/hooks/useMultiMasterDetailDcmts.d.ts +98 -0
- package/lib/hooks/useMultiMasterDetailDcmts.js +758 -0
- package/lib/hooks/usePreventFileDrop.js +9 -0
- package/lib/hooks/useQueryParametersDialog.js +1 -1
- package/lib/hooks/useRelatedDocuments.d.ts +1 -0
- package/lib/hooks/useRelatedDocuments.js +22 -27
- package/lib/hooks/useShowDossiersV5.d.ts +12 -0
- package/lib/hooks/useShowDossiersV5.js +37 -0
- package/lib/hooks/useTMDistinctValuesMetadataDisplay.d.ts +18 -0
- package/lib/hooks/useTMDistinctValuesMetadataDisplay.js +103 -0
- package/lib/hooks/useTMDistinctValuesQuickSearch.d.ts +49 -0
- package/lib/hooks/useTMDistinctValuesQuickSearch.js +307 -0
- package/lib/hooks/useTMDistinctValuesSelection.d.ts +42 -0
- package/lib/hooks/useTMDistinctValuesSelection.js +103 -0
- package/lib/hooks/useTMDistinctValuesSource.d.ts +29 -0
- package/lib/hooks/useTMDistinctValuesSource.js +105 -0
- package/lib/hooks/useWorkflowApprove.js +33 -17
- package/lib/index.d.ts +2 -0
- package/lib/index.js +5 -2
- package/lib/services/caseflow/CaseFlowService.d.ts +277 -0
- package/lib/services/caseflow/CaseFlowService.js +761 -0
- package/lib/services/caseflow/CaseFlowTemplateCacheService.d.ts +28 -0
- package/lib/services/caseflow/CaseFlowTemplateCacheService.js +121 -0
- package/lib/services/caseflow/caseFlowNameCache.d.ts +32 -0
- package/lib/services/caseflow/caseFlowNameCache.js +116 -0
- package/lib/services/caseflow/caseFlowWorkItemUtils.d.ts +61 -0
- package/lib/services/caseflow/caseFlowWorkItemUtils.js +113 -0
- package/lib/services/index.d.ts +4 -0
- package/lib/services/index.js +4 -0
- package/lib/services/platform_services.d.ts +4 -4
- package/package.json +16 -13
|
@@ -1,102 +1,118 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ResultTypes } from '@topconsultnpm/sdk-ts';
|
|
3
3
|
import { TMColors } from '../../utils/theme';
|
|
4
|
-
export declare const StyledDivHorizontal: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
5
|
-
|
|
4
|
+
export declare const StyledDivHorizontal: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
5
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
6
|
+
}> & string;
|
|
7
|
+
export declare const StyledMultiViewPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
8
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
9
|
+
}, {
|
|
6
10
|
$isVisible: boolean;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare const StyledToolbarForm: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
}>> & string;
|
|
12
|
+
export declare const StyledParagraph: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
13
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
14
|
+
}> & string;
|
|
15
|
+
export declare const StyledToolbarForm: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
16
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
17
|
+
}> & string;
|
|
18
|
+
export declare const ReferencesContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
19
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
20
|
+
}> & string;
|
|
21
|
+
export declare const StyledReferenceButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
22
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
23
|
+
}, {
|
|
16
24
|
$bgColor?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare const StyledPanelPage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
$background?: string;
|
|
22
|
-
$withMenu?: boolean;
|
|
23
|
-
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$padding" | "$isOpen" | "$background" | "$withMenu"> & {
|
|
25
|
+
}>> & string;
|
|
26
|
+
export declare const StyledPanelPage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
27
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
28
|
+
}, {
|
|
24
29
|
$isOpen?: boolean;
|
|
25
30
|
$padding?: string;
|
|
26
31
|
$background?: string;
|
|
27
32
|
$withMenu?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export declare const StyledClickableIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
33
|
+
}>> & string;
|
|
34
|
+
export declare const StyledClickableIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
35
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
36
|
+
}, {
|
|
30
37
|
$disabled?: boolean;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
}>> & string;
|
|
39
|
+
export declare const StyledOffCanvasPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
40
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
41
|
+
}, {
|
|
35
42
|
$isOpen: boolean;
|
|
36
43
|
$width?: string;
|
|
37
44
|
$mobileHeight?: string;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, never>>> & string;
|
|
43
|
-
export declare const StyledOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isOpen"> & {
|
|
44
|
-
$isOpen: boolean;
|
|
45
|
-
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isOpen"> & {
|
|
45
|
+
}>> & string;
|
|
46
|
+
export declare const StyledOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
47
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
48
|
+
}, {
|
|
46
49
|
$isOpen: boolean;
|
|
47
|
-
}
|
|
48
|
-
export declare const StyledModalContainer: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
49
|
-
|
|
50
|
+
}>> & string;
|
|
51
|
+
export declare const StyledModalContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
52
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
53
|
+
}> & string;
|
|
54
|
+
export declare const StyledResultTypeContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
55
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
56
|
+
}, {
|
|
50
57
|
$resultType: ResultTypes;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export declare const StyledTooltipItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
$marginTop?: string;
|
|
59
|
-
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$color" | "$fontSize" | "$marginTop"> & {
|
|
58
|
+
}>> & string;
|
|
59
|
+
export declare const StyledTooltipSeparatorItem: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "style"> & {
|
|
60
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
61
|
+
}> & string;
|
|
62
|
+
export declare const StyledTooltipItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
63
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
64
|
+
}, {
|
|
60
65
|
$color?: TMColors;
|
|
61
66
|
$fontSize?: string;
|
|
62
67
|
$marginTop?: string;
|
|
63
|
-
}
|
|
64
|
-
export declare const StyledTooltipContainer: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
}>> & string;
|
|
69
|
+
export declare const StyledTooltipContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
70
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
71
|
+
}> & string;
|
|
72
|
+
export declare const StyledDraggableDiv: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
73
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
74
|
+
}> & string;
|
|
75
|
+
export declare const StyledBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
76
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
77
|
+
}, {
|
|
69
78
|
$backgroundColor: string;
|
|
70
|
-
}
|
|
71
|
-
export declare const StyledDxGridGroupHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
72
|
-
|
|
73
|
-
},
|
|
79
|
+
}>> & string;
|
|
80
|
+
export declare const StyledDxGridGroupHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
81
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
82
|
+
}, {
|
|
74
83
|
$backgroundColor?: string;
|
|
75
|
-
}
|
|
84
|
+
}>> & string;
|
|
76
85
|
export declare const cellRenderObjectIcon: (icon: any) => React.JSX.Element;
|
|
77
|
-
export declare const StyledChartOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
86
|
+
export declare const StyledChartOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
87
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
88
|
+
}, {
|
|
78
89
|
$backgroundColor?: string;
|
|
79
|
-
}
|
|
90
|
+
}>> & string;
|
|
91
|
+
export declare const StyledBtnLoadChart: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
92
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
93
|
+
}, {
|
|
80
94
|
$backgroundColor?: string;
|
|
81
|
-
}
|
|
82
|
-
export declare const
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
export declare const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
export declare const
|
|
95
|
+
}>> & string;
|
|
96
|
+
export declare const StyledFormButtonsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
97
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
98
|
+
}> & string;
|
|
99
|
+
export declare const StyledToolbarCardContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
100
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
101
|
+
}> & string;
|
|
102
|
+
export declare const StyledSpinner: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
103
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
104
|
+
}> & string;
|
|
105
|
+
export declare const StyledLoadingContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
106
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
107
|
+
}> & string;
|
|
108
|
+
export declare const StyledAnimatedComponentScaleColor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
109
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
110
|
+
}, {
|
|
92
111
|
$delay?: string;
|
|
93
112
|
$scale?: number;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
export declare const StyledAnimatedComponentOpacity: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$delay"> & {
|
|
99
|
-
$delay?: string;
|
|
100
|
-
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$delay"> & {
|
|
113
|
+
}>> & string;
|
|
114
|
+
export declare const StyledAnimatedComponentOpacity: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
115
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
116
|
+
}, {
|
|
101
117
|
$delay?: string;
|
|
102
|
-
}
|
|
118
|
+
}>> & string;
|
|
@@ -87,11 +87,13 @@ export const StyledReferenceButton = styled.button `
|
|
|
87
87
|
export const StyledPanelPage = styled.div `
|
|
88
88
|
position: absolute;
|
|
89
89
|
width: calc(100% - 50px);
|
|
90
|
-
top:
|
|
91
|
-
left:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
top: 50px;
|
|
91
|
+
left: 50px;
|
|
92
|
+
bottom: ${(props) => props.$isOpen ? '0' : 'auto'};
|
|
93
|
+
height: ${(props) => props.$isOpen ? 'auto' : '0'};
|
|
94
|
+
visibility: ${(props) => props.$isOpen ? 'visible' : 'hidden'};
|
|
95
|
+
content-visibility: ${(props) => props.$isOpen ? 'visible' : 'hidden'};
|
|
96
|
+
border-radius: 0px;
|
|
95
97
|
background: ${(props) => props.$background ?? 'transparent'};
|
|
96
98
|
z-index: 1500;
|
|
97
99
|
overflow: hidden;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect, useCallback } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { LoadIndicator } from 'devextreme-react';
|
|
@@ -293,7 +293,7 @@ const TMAccordion = ({ groups, localStorageKey, selectedItem, onSelectedItemChan
|
|
|
293
293
|
if (group.badges && group.badges.length > 0) {
|
|
294
294
|
return (_jsx(BadgeContainer, { children: group.badges.map((badgeData, idx) => {
|
|
295
295
|
const badgeKey = `${group.id}-badge-${badgeData.badge}-${idx}`;
|
|
296
|
-
const badge = _jsx(Badge, {
|
|
296
|
+
const badge = _jsx(Badge, { $color: color, children: badgeData.badge });
|
|
297
297
|
if (badgeData.tooltip) {
|
|
298
298
|
return (_jsx(TMTooltip, { content: badgeData.tooltip, children: badge }, badgeKey));
|
|
299
299
|
}
|
|
@@ -301,7 +301,7 @@ const TMAccordion = ({ groups, localStorageKey, selectedItem, onSelectedItemChan
|
|
|
301
301
|
}) }));
|
|
302
302
|
}
|
|
303
303
|
if (group.dataSource && group.dataSource.length > 0) {
|
|
304
|
-
return _jsx(Badge, {
|
|
304
|
+
return _jsx(Badge, { $color: color, children: group.dataSource.length });
|
|
305
305
|
}
|
|
306
306
|
return null;
|
|
307
307
|
};
|
|
@@ -309,19 +309,19 @@ const TMAccordion = ({ groups, localStorageKey, selectedItem, onSelectedItemChan
|
|
|
309
309
|
const color = getGroupColor(group, index);
|
|
310
310
|
const isOpen = openAccordions[group.id] ?? true;
|
|
311
311
|
if (group.customComponent) {
|
|
312
|
-
return (_jsxs(AccordionItem, {
|
|
312
|
+
return (_jsxs(AccordionItem, { $marginBottom: itemMarginBottom, children: [_jsxs(AccordionHeader, { id: `accordion-header-${group.id}`, $color: color, $isOpen: isOpen, onClick: (e) => handleHeaderClick(e, group.id), onContextMenu: (e) => handleHeaderContextMenu(e, group.id), children: [_jsxs(AccordionTitle, { children: [group.icon, _jsx(TitleText, { children: group.title })] }), _jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '10px' }, children: [renderBadges(group, color), _jsx(ToggleIcon, { $isOpen: isOpen, children: _jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: _jsx("path", { d: "M4 6L8 10L12 6", stroke: "#495057", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) })] })] }), isOpen && (_jsx(CustomComponentContainer, { children: group.customComponent }))] }, group.id));
|
|
313
313
|
}
|
|
314
314
|
if (!group.dataSource || group.dataSource.length === 0)
|
|
315
315
|
return null;
|
|
316
316
|
if (!group.renderItem) {
|
|
317
|
-
return (_jsxs(AccordionItem, {
|
|
317
|
+
return (_jsxs(AccordionItem, { $marginBottom: itemMarginBottom, children: [_jsxs(AccordionHeader, { id: `accordion-header-${group.id}`, $color: color, $isOpen: isOpen, onClick: (e) => handleHeaderClick(e, group.id), onContextMenu: (e) => handleHeaderContextMenu(e, group.id), children: [_jsxs(AccordionTitle, { children: [group.icon, _jsx(TitleText, { children: group.title })] }), _jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '10px' }, children: [renderBadges(group, color), _jsx(ToggleIcon, { $isOpen: isOpen, children: _jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: _jsx("path", { d: "M4 6L8 10L12 6", stroke: "#495057", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) })] })] }), _jsx(AccordionContent, { $isOpen: isOpen, $maxHeight: 100, children: _jsxs(ErrorMessage, { children: ["\u26A0\uFE0F renderItem function is required for \"", group.title, "\" group"] }) })] }, group.id));
|
|
318
318
|
}
|
|
319
319
|
const itemHeight = group.itemHeight || 80;
|
|
320
320
|
const maxHeight = group.dataSource.length * itemHeight + 20;
|
|
321
|
-
return (_jsxs(AccordionItem, {
|
|
321
|
+
return (_jsxs(AccordionItem, { $marginBottom: itemMarginBottom, children: [_jsxs(AccordionHeader, { id: `accordion-header-${group.id}`, $color: color, $isOpen: isOpen, onClick: (e) => handleHeaderClick(e, group.id), onContextMenu: (e) => handleHeaderContextMenu(e, group.id), children: [_jsxs(AccordionTitle, { children: [group.icon, _jsx(TitleText, { children: group.title })] }), _jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '10px' }, children: [renderBadges(group, color), _jsx(ToggleIcon, { $isOpen: isOpen, children: _jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: _jsx("path", { d: "M4 6L8 10L12 6", stroke: "#495057", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) })] })] }), _jsx(AccordionContent, { $isOpen: isOpen, $maxHeight: maxHeight, children: _jsx(ItemsList, { children: group.dataSource.map((item, itemIndex) => {
|
|
322
322
|
const isSelected = selectedItem === item;
|
|
323
323
|
const isFocused = focusedItem === item;
|
|
324
|
-
return (_jsx(ListItem, { id: `accordion-item-${group.id}-${itemIndex}`, className: "tm-accordion-list-item",
|
|
324
|
+
return (_jsx(ListItem, { id: `accordion-item-${group.id}-${itemIndex}`, className: "tm-accordion-list-item", $isSelected: isSelected, $color: color, onClick: () => handleItemClick(item, group), onDoubleClick: () => handleItemDoubleClick(item, group), onMouseEnter: () => setFocusedItem(item), onMouseLeave: () => setFocusedItem(undefined), onContextMenu: (e) => handleContextMenu(e, item, group), children: group.renderItem(item, isSelected, isFocused, color) }, itemIndex * 2));
|
|
325
325
|
}) }) })] }, group.id));
|
|
326
326
|
};
|
|
327
327
|
if (!isInitialized) {
|
|
@@ -13,54 +13,54 @@ interface AlertModes {
|
|
|
13
13
|
}
|
|
14
14
|
declare const TMAlertPosition: {
|
|
15
15
|
readonly TOP_RIGHT: {
|
|
16
|
-
readonly top:
|
|
17
|
-
readonly right:
|
|
18
|
-
readonly position:
|
|
16
|
+
readonly top: '10px';
|
|
17
|
+
readonly right: '10px';
|
|
18
|
+
readonly position: 'absolute';
|
|
19
19
|
};
|
|
20
20
|
readonly TOP_CENTER: {
|
|
21
|
-
readonly top:
|
|
22
|
-
readonly left:
|
|
23
|
-
readonly transform:
|
|
24
|
-
readonly position:
|
|
21
|
+
readonly top: '10px';
|
|
22
|
+
readonly left: '50%';
|
|
23
|
+
readonly transform: 'translateX(-50%)';
|
|
24
|
+
readonly position: 'absolute';
|
|
25
25
|
};
|
|
26
26
|
readonly TOP_LEFT: {
|
|
27
|
-
readonly top:
|
|
28
|
-
readonly left:
|
|
29
|
-
readonly position:
|
|
27
|
+
readonly top: '10px';
|
|
28
|
+
readonly left: '10px';
|
|
29
|
+
readonly position: 'absolute';
|
|
30
30
|
};
|
|
31
31
|
readonly BOTTOM_RIGHT: {
|
|
32
|
-
readonly bottom:
|
|
33
|
-
readonly right:
|
|
34
|
-
readonly position:
|
|
32
|
+
readonly bottom: '10px';
|
|
33
|
+
readonly right: '10px';
|
|
34
|
+
readonly position: 'absolute';
|
|
35
35
|
};
|
|
36
36
|
readonly BOTTOM_LEFT: {
|
|
37
|
-
readonly bottom:
|
|
38
|
-
readonly left:
|
|
39
|
-
readonly position:
|
|
37
|
+
readonly bottom: '10px';
|
|
38
|
+
readonly left: '10px';
|
|
39
|
+
readonly position: 'absolute';
|
|
40
40
|
};
|
|
41
41
|
readonly BOTTOM_CENTER: {
|
|
42
|
-
readonly bottom:
|
|
43
|
-
readonly left:
|
|
44
|
-
readonly transform:
|
|
45
|
-
readonly position:
|
|
42
|
+
readonly bottom: '10px';
|
|
43
|
+
readonly left: '50%';
|
|
44
|
+
readonly transform: 'translateX(-50%)';
|
|
45
|
+
readonly position: 'absolute';
|
|
46
46
|
};
|
|
47
47
|
readonly CENTER_RIGHT: {
|
|
48
|
-
readonly top:
|
|
49
|
-
readonly right:
|
|
50
|
-
readonly transform:
|
|
51
|
-
readonly position:
|
|
48
|
+
readonly top: '50%';
|
|
49
|
+
readonly right: '10px';
|
|
50
|
+
readonly transform: 'translateY(-50%)';
|
|
51
|
+
readonly position: 'absolute';
|
|
52
52
|
};
|
|
53
53
|
readonly CENTER_LEFT: {
|
|
54
|
-
readonly top:
|
|
55
|
-
readonly left:
|
|
56
|
-
readonly transform:
|
|
57
|
-
readonly position:
|
|
54
|
+
readonly top: '50%';
|
|
55
|
+
readonly left: '10px';
|
|
56
|
+
readonly transform: 'translateY(-50%)';
|
|
57
|
+
readonly position: 'absolute';
|
|
58
58
|
};
|
|
59
59
|
readonly CENTER_CENTER: {
|
|
60
|
-
readonly top:
|
|
61
|
-
readonly left:
|
|
62
|
-
readonly transform:
|
|
63
|
-
readonly position:
|
|
60
|
+
readonly top: '50%';
|
|
61
|
+
readonly left: '50%';
|
|
62
|
+
readonly transform: 'translate(-50%, -50%)';
|
|
63
|
+
readonly position: 'absolute';
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
declare const ShowAlert: ({ mode, message, duration, title, position }: {
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
3
|
import ReactDOM from 'react-dom/client';
|
|
4
4
|
import { IconCloseCircle, IconInfo, IconSuccess, IconWarning } from '../../helper';
|
|
5
|
+
import { DeviceType, TMDeviceProvider, useDeviceType } from './TMDeviceProvider';
|
|
5
6
|
const TMAlertPosition = {
|
|
6
7
|
TOP_RIGHT: { top: '10px', right: '10px', position: 'absolute' },
|
|
7
8
|
TOP_CENTER: { top: '10px', left: '50%', transform: 'translateX(-50%)', position: 'absolute' },
|
|
@@ -45,13 +46,8 @@ const Mode = {
|
|
|
45
46
|
};
|
|
46
47
|
// const TMAlert = ({ mode, duration = 5000, message, position = 'BOTTOM_CENTER' }: { mode: keyof AlertModes, duration?: number, message: string, position?: keyof typeof TMAlertPosition }) => {
|
|
47
48
|
const TMAlert = ({ mode, duration = 1000, title, message, position = 'BOTTOM_RIGHT' }) => {
|
|
48
|
-
const
|
|
49
|
+
const deviceType = useDeviceType();
|
|
49
50
|
const [container] = useState(document.getElementsByClassName('tm-alert-temporary-container'));
|
|
50
|
-
useEffect(() => {
|
|
51
|
-
window.addEventListener('resize', () => {
|
|
52
|
-
setCurrentWidth(window.innerWidth);
|
|
53
|
-
});
|
|
54
|
-
}, [currentWidth]);
|
|
55
51
|
useEffect(() => {
|
|
56
52
|
const tiemout = setTimeout(() => {
|
|
57
53
|
let container = document.getElementsByClassName('tm-alert-temporary-container');
|
|
@@ -63,7 +59,9 @@ const TMAlert = ({ mode, duration = 1000, title, message, position = 'BOTTOM_RIG
|
|
|
63
59
|
}, [container]);
|
|
64
60
|
// Determine the style for the alert container based on the position prop
|
|
65
61
|
const alertContainerStyle = TMAlertPosition[position];
|
|
66
|
-
|
|
62
|
+
// Su mobile l'alert e' piu' basso e con testo piu' piccolo: la versione desktop copre troppo schermo.
|
|
63
|
+
const isMobile = deviceType === DeviceType.MOBILE;
|
|
64
|
+
return (_jsx("div", { style: { width: '100%', paddingTop: '3px', ...alertContainerStyle }, children: _jsx("div", { className: 'tm-alert-animation-style', style: { animationDuration: `${duration}ms`, position: 'relative', float: 'right', zIndex: '20000999', width: isMobile ? 'min(300px, calc(100vw - 20px))' : '356px', height: isMobile ? '58px' : '86px', borderRadius: '8px', overflow: 'hidden', border: '2px white solid', boxShadow: '0px 3px 6px #00000029' }, children: _jsx("div", { className: 'tm-alert-animation-style', style: { animationDuration: `${duration}ms` }, children: _jsxs("div", { className: 'tm-alert-container', style: { background: Mode[mode].color, animationDuration: `${duration}ms` }, children: [_jsxs("div", { className: "tm-alert-context", style: { position: 'relative' }, children: [_jsx("div", { className: 'tm-alert-icon', style: { position: 'absolute', top: isMobile ? '8px' : '12px', left: isMobile ? '8px' : '12px', paddingTop: '1px' }, children: Mode[mode].icon }), _jsx("div", { style: { color: Mode[mode].textColor, position: 'absolute', top: isMobile ? '7px' : '15px', left: isMobile ? '38px' : '45px', textAlign: 'left', fontSize: isMobile ? '0.85rem' : '1.1rem', fontWeight: 'bold', maxWidth: isMobile ? 'calc(100% - 46px)' : '280px', ...(isMobile && { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }) }, children: title }), _jsx("div", { style: { color: Mode[mode].textColor, position: 'absolute', top: isMobile ? '25px' : '35px', left: isMobile ? '38px' : '45px', textAlign: 'left', fontSize: isMobile ? '0.8rem' : '1rem', maxWidth: isMobile ? 'calc(100% - 46px)' : '280px', ...(isMobile && { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }) }, children: message })] }), _jsx("div", { className: 'tm-alert-loading', style: { backgroundImage: `linear-gradient(to right, ${Mode[mode].borderColor}, ${Mode[mode].textColor})`, animationDuration: `${duration}ms` } })] }) }) }) }));
|
|
67
65
|
};
|
|
68
66
|
const ShowAlert = ({ mode, message, duration, title, position = 'BOTTOM_RIGHT' }) => {
|
|
69
67
|
let container = document.createElement('div');
|
|
@@ -72,6 +70,6 @@ const ShowAlert = ({ mode, message, duration, title, position = 'BOTTOM_RIGHT' }
|
|
|
72
70
|
// container.style.position = 'relative'
|
|
73
71
|
container.style.display = 'flex';
|
|
74
72
|
const root = ReactDOM.createRoot(container);
|
|
75
|
-
root.render(_jsx(React.StrictMode, { children: _jsx(TMAlert, { message: message, mode: mode, duration: duration, title: title, position: position }) }));
|
|
73
|
+
root.render(_jsx(React.StrictMode, { children: _jsx(TMDeviceProvider, { children: _jsx(TMAlert, { message: message, mode: mode, duration: duration, title: title, position: position }) }) }));
|
|
76
74
|
};
|
|
77
75
|
export default ShowAlert;
|
|
@@ -10,7 +10,8 @@ import { loadMessages } from 'devextreme/localization';
|
|
|
10
10
|
import { getFileManagerFolderColor, Globalization, IconAll, IconCloud, IconFolder, IconFolderForCSS, IconSelected, SDKUI_Localizator, svgToString } from '../../helper';
|
|
11
11
|
import { TMExceptionBoxManager } from './TMPopUp';
|
|
12
12
|
import ShowAlert from './TMAlert';
|
|
13
|
-
import
|
|
13
|
+
import TMLayoutContainer from './TMLayout';
|
|
14
|
+
import TMWaitPanelManager from './waitPanel/TMWaitPanelManager';
|
|
14
15
|
import TMCounterContainer, { CounterItemKey } from './TMCounterContainer';
|
|
15
16
|
import { IconPdf, IconTxt, IconXls, IconDocx, IconImage, IconZip, IconXml, IconMp4, IconEmail, IconPpt, IconSigned, IconExe, IconHtml, IconDwg, IconDicom, IconSlddrw } from '../../assets/thumbnails';
|
|
16
17
|
import styled from 'styled-components';
|
|
@@ -89,17 +90,6 @@ const TMAreaManager = (props = { selectionMode: 'multiple', isPathChooser: false
|
|
|
89
90
|
const [counterValues, setCounterValues] = useState(new Map());
|
|
90
91
|
// State to maintain the selection mode (File System Item - right panel)
|
|
91
92
|
const [selectionMode, setSelectionMode] = useState('single');
|
|
92
|
-
/* State to manage the Wait Panel */
|
|
93
|
-
const [showWaitPanel, setShowWaitPanel] = useState(false);
|
|
94
|
-
const [waitPanelTitle, setWaitPanelTitle] = useState('');
|
|
95
|
-
const [showPrimary, setShowPrimary] = useState(false);
|
|
96
|
-
const [waitPanelTextPrimary, setWaitPanelTextPrimary] = useState('');
|
|
97
|
-
const [waitPanelValuePrimary, setWaitPanelValuePrimary] = useState(0);
|
|
98
|
-
const [waitPanelMaxValuePrimary, setWaitPanelMaxValuePrimary] = useState(0);
|
|
99
|
-
const [showSecondary, setShowSecondary] = useState(false);
|
|
100
|
-
const [waitPanelTextSecondary, setWaitPanelTextSecondary] = useState('');
|
|
101
|
-
const [waitPanelValueSecondary, setWaitPanelValueSecondary] = useState(0);
|
|
102
|
-
const [waitPanelMaxValueSecondary, setWaitPanelMaxValueSecondary] = useState(0);
|
|
103
93
|
// Timer ID to store reference for any scheduled operation
|
|
104
94
|
let timerId = null;
|
|
105
95
|
// Prefix for area folder names
|
|
@@ -430,44 +420,55 @@ const TMAreaManager = (props = { selectionMode: 'multiple', isPathChooser: false
|
|
|
430
420
|
}
|
|
431
421
|
};
|
|
432
422
|
const downloadItems = async (items) => {
|
|
423
|
+
const files = items.filter(item => !item.isDirectory);
|
|
424
|
+
const isBatch = files.length > 1;
|
|
425
|
+
const waitPanel = TMWaitPanelManager.show({
|
|
426
|
+
title: "Download",
|
|
427
|
+
max: isBatch ? files.length : 0,
|
|
428
|
+
cancelable: true,
|
|
429
|
+
showCounters: false,
|
|
430
|
+
showSecondary: isBatch,
|
|
431
|
+
primaryLabel: isBatch ? 'File' : undefined,
|
|
432
|
+
secondaryLabel: isBatch ? 'File corrente' : undefined,
|
|
433
|
+
});
|
|
434
|
+
abortController = waitPanel.abortController;
|
|
435
|
+
const publishBytes = (loaded, total) => {
|
|
436
|
+
const text = total > 0
|
|
437
|
+
? `Downloading... ${Globalization.getNumberDisplayValue(loaded, true)} / ${Globalization.getNumberDisplayValue(total, true)}`
|
|
438
|
+
: '';
|
|
439
|
+
if (isBatch)
|
|
440
|
+
waitPanel.setSecondary({ value: loaded, max: total, text });
|
|
441
|
+
else
|
|
442
|
+
waitPanel.update({ value: loaded, max: total, subtitle: text });
|
|
443
|
+
};
|
|
444
|
+
// Un solo avviso per tutta l'operazione: con più file riporta quanti ne sono stati scaricati.
|
|
445
|
+
let downloaded = 0;
|
|
446
|
+
const showInterrupted = () => ShowAlert({
|
|
447
|
+
mode: 'warning',
|
|
448
|
+
title: "Download",
|
|
449
|
+
duration: 3000,
|
|
450
|
+
message: isBatch ? SDKUI_Localizator.DownloadInterruptedFiles.replaceParams(downloaded, files.length) : SDKUI_Localizator.DownloadInterrupted,
|
|
451
|
+
});
|
|
433
452
|
try {
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
setWaitPanelTitle("Download");
|
|
438
|
-
abortController = new AbortController();
|
|
439
|
-
let i = 0;
|
|
440
|
-
setWaitPanelMaxValuePrimary(items.length);
|
|
441
|
-
let firstBlock = true;
|
|
442
|
-
let maxFileSize = 0;
|
|
443
|
-
for (const item of items) {
|
|
444
|
-
if (item.isDirectory)
|
|
445
|
-
continue;
|
|
446
|
-
if (abortController.signal.aborted) {
|
|
447
|
-
ShowAlert({ message: 'Operazione interrotta', mode: 'warning', title: "Download files", duration: 3000 });
|
|
453
|
+
for (const item of files) {
|
|
454
|
+
if (waitPanel.aborted) {
|
|
455
|
+
showInterrupted();
|
|
448
456
|
return;
|
|
449
457
|
}
|
|
450
|
-
|
|
458
|
+
if (isBatch)
|
|
459
|
+
waitPanel.setSubtitle(`Download ${item.name}`);
|
|
451
460
|
const ad = item.dataItem.dataItem;
|
|
452
461
|
const aid = ad?.id;
|
|
453
462
|
const subFolder = item.parentPath === ad.name ? '' : item.parentPath.replace(ad.name + '/', '');
|
|
454
463
|
const tms = props.tmSession ?? SDK_Globals.tmSession;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
if (pd.ProgressBarValue === pd.ProgressBarMaximum) {
|
|
464
|
-
setWaitPanelMaxValueSecondary(0);
|
|
465
|
-
setWaitPanelValueSecondary(0);
|
|
466
|
-
setWaitPanelTextSecondary('');
|
|
467
|
-
firstBlock = true;
|
|
468
|
-
}
|
|
469
|
-
});
|
|
470
|
-
setWaitPanelValuePrimary(i + 1);
|
|
464
|
+
let file;
|
|
465
|
+
try {
|
|
466
|
+
file = await tms?.NewAreaEngine().RetrieveFileAsync(aid, subFolder, item.name, FileFormats.None, waitPanel.signal, (pd) => publishBytes(pd.ProgressBarValue, pd.ProgressBarMaximum ?? 0));
|
|
467
|
+
}
|
|
468
|
+
finally {
|
|
469
|
+
if (isBatch)
|
|
470
|
+
publishBytes(0, 0);
|
|
471
|
+
}
|
|
471
472
|
const fileURL = window.URL.createObjectURL(file);
|
|
472
473
|
const alink2 = document.createElement('a');
|
|
473
474
|
alink2.href = fileURL;
|
|
@@ -475,25 +476,22 @@ const TMAreaManager = (props = { selectionMode: 'multiple', isPathChooser: false
|
|
|
475
476
|
alink2.target = "_blank";
|
|
476
477
|
alink2.rel = "noreferrer";
|
|
477
478
|
alink2.click();
|
|
478
|
-
|
|
479
|
+
downloaded++;
|
|
480
|
+
if (isBatch)
|
|
481
|
+
await waitPanel.step();
|
|
479
482
|
}
|
|
483
|
+
if (files.length > 0)
|
|
484
|
+
ShowAlert({ mode: 'success', message: SDKUI_Localizator.OperationSuccess, title: "Download", duration: 3000 });
|
|
480
485
|
}
|
|
481
486
|
catch (ex) {
|
|
482
487
|
const err = ex;
|
|
483
|
-
if (err.name === 'CanceledError')
|
|
484
|
-
|
|
485
|
-
}
|
|
488
|
+
if (waitPanel.aborted || err.name === 'CanceledError')
|
|
489
|
+
showInterrupted();
|
|
486
490
|
else
|
|
487
491
|
TMExceptionBoxManager.show({ exception: ex });
|
|
488
492
|
}
|
|
489
493
|
finally {
|
|
490
|
-
|
|
491
|
-
setWaitPanelMaxValuePrimary(0);
|
|
492
|
-
setWaitPanelValuePrimary(0);
|
|
493
|
-
setWaitPanelTextSecondary('');
|
|
494
|
-
setWaitPanelMaxValueSecondary(0);
|
|
495
|
-
setWaitPanelValueSecondary(0);
|
|
496
|
-
setShowWaitPanel(false);
|
|
494
|
+
waitPanel.close();
|
|
497
495
|
}
|
|
498
496
|
};
|
|
499
497
|
// Asynchronous function to retrieve the items in a given directory (parentDirectory)
|
|
@@ -767,7 +765,7 @@ const TMAreaManager = (props = { selectionMode: 'multiple', isPathChooser: false
|
|
|
767
765
|
}
|
|
768
766
|
};
|
|
769
767
|
const folderColor = getFileManagerFolderColor(SDK_Globals.tmSession?.SessionDescr?.appModuleID ?? AppModules.SURFER);
|
|
770
|
-
return (_jsx(
|
|
768
|
+
return (_jsx(TMLayoutContainer, { direction: 'vertical', children: _jsxs(StyledFileManagerWrapper, { $folderColor: folderColor, style: { width: "100%", height: "100%" }, children: [_jsxs(FileManager, { width: props.width, ref: fileManagerRef, height: `calc(${props.height} - 30px)`, onItemMoving: onItemCopying, onItemCopying: onItemCopying, onFileUploading: onFileUploading, fileSystemProvider: areaProvider, customizeThumbnail: customizeIcon, rootFolderName: SDK_Localizator.Areas, onSelectionChanged: onSelectionChanged, onDirectoryCreating: onDirectoryCreating, onFocusedItemChanged: onFocusedItemChanged, onSelectedFileOpened: onSelectedFileOpened, onContextMenuItemClick: onContextMenuItemClick,
|
|
771
769
|
/* onItemMoved={() => setCounter(counter => counter + 1)}
|
|
772
770
|
onItemCopied={() => setCounter(counter => counter + 1)}
|
|
773
771
|
onItemDeleted={() => setCounter(counter => counter - 1)}
|