@topconsultnpm/sdkui-react 6.19.0-test.1 → 6.19.0-test2
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/assets/IconsS4t/add.svg +12 -12
- package/lib/assets/IconsS4t/aggiorna.svg +18 -18
- package/lib/assets/IconsS4t/bookmark.svg +42 -42
- package/lib/assets/IconsS4t/cancella.svg +15 -15
- package/lib/assets/IconsS4t/check-box.svg +19 -19
- package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -40
- package/lib/assets/IconsS4t/down.svg +28 -28
- package/lib/assets/IconsS4t/edit-file.svg +19 -19
- package/lib/assets/IconsS4t/edita.svg +32 -32
- package/lib/assets/IconsS4t/firma.svg +19 -19
- package/lib/assets/IconsS4t/icona_download.svg +16 -16
- package/lib/assets/IconsS4t/info.svg +51 -51
- package/lib/assets/IconsS4t/left.svg +20 -20
- package/lib/assets/IconsS4t/line.svg +40 -40
- package/lib/assets/IconsS4t/more.svg +19 -19
- package/lib/assets/IconsS4t/plus.svg +23 -23
- package/lib/assets/IconsS4t/printer.svg +49 -49
- package/lib/assets/IconsS4t/radio-on-button.svg +25 -25
- package/lib/assets/IconsS4t/rectangle.svg +41 -41
- package/lib/assets/IconsS4t/redo.svg +19 -19
- package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -40
- package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -40
- package/lib/assets/IconsS4t/right.svg +22 -22
- package/lib/assets/IconsS4t/searchbar.svg +21 -21
- package/lib/assets/IconsS4t/text-box.svg +36 -36
- package/lib/assets/IconsS4t/tick.svg +8 -8
- package/lib/assets/IconsS4t/trash-white.svg +10 -10
- package/lib/assets/IconsS4t/undo.svg +19 -19
- package/lib/assets/IconsS4t/up.svg +32 -32
- package/lib/assets/IconsS4t/video-streaming.svg +2 -2
- package/lib/assets/IconsS4t/zoom-in.svg +58 -58
- package/lib/assets/IconsS4t/zoom-out.svg +56 -56
- package/lib/assets/icomoon.svg +96 -96
- package/lib/assets/italy.svg +16 -16
- package/lib/assets/six.svg +3 -3
- package/lib/assets/thumbnails/index.ts +39 -39
- package/lib/assets/topmedia-six.svg +65 -65
- package/lib/assets/topmeida-six-bianco.svg +65 -65
- package/lib/components/base/Styled.js +302 -302
- package/lib/components/base/TMAccordion.js +43 -43
- package/lib/components/base/TMAccordionNew.d.ts +28 -0
- package/lib/components/base/TMAccordionNew.js +326 -0
- package/lib/components/base/TMAreaManager.js +23 -23
- package/lib/components/base/TMButton.d.ts +1 -0
- package/lib/components/base/TMButton.js +136 -136
- package/lib/components/base/TMClosableList.js +46 -46
- package/lib/components/base/TMConfirm.js +20 -20
- package/lib/components/base/TMContextMenu.js +4 -4
- package/lib/components/base/TMContextMenuOLD.js +25 -25
- package/lib/components/base/TMCounterBar.js +32 -32
- package/lib/components/base/TMCounterContainer.js +30 -30
- package/lib/components/base/TMCustomButton.d.ts +1 -1
- package/lib/components/base/TMCustomButton.js +90 -35
- package/lib/components/base/TMDataGridExportForm.d.ts +1 -1
- package/lib/components/base/TMDataGridExportForm.js +9 -3
- package/lib/components/base/TMDropDownMenu.js +24 -24
- package/lib/components/base/TMFileManager.js +12 -3
- package/lib/components/base/TMFileManagerDataGridView.d.ts +2 -0
- package/lib/components/base/TMFileManagerDataGridView.js +12 -3
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +2 -0
- package/lib/components/base/TMFileManagerThumbnailItems.js +12 -2
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +2 -0
- package/lib/components/base/TMFileManagerThumbnailsView.js +2 -2
- package/lib/components/base/TMFileManagerUtils.js +19 -19
- package/lib/components/base/TMFloatingToolbar.js +34 -34
- package/lib/components/base/TMLayout.js +44 -44
- package/lib/components/base/TMList.js +34 -34
- package/lib/components/base/TMModal.d.ts +2 -0
- package/lib/components/base/TMModal.js +79 -34
- package/lib/components/base/TMPanel.js +57 -57
- package/lib/components/base/TMPopUp.js +186 -117
- package/lib/components/base/TMProgressBar.js +20 -20
- package/lib/components/base/TMResizableMenu.js +28 -28
- package/lib/components/base/TMRightSidebar.js +40 -40
- package/lib/components/base/TMSpinner.js +121 -121
- package/lib/components/base/TMTab.js +11 -11
- package/lib/components/base/TMToggleButton.js +36 -36
- package/lib/components/base/TMToolbarCard.js +35 -35
- package/lib/components/base/TMTooltip.d.ts +1 -1
- package/lib/components/base/TMTooltip.js +1 -1
- package/lib/components/base/TMTreeView.js +16 -16
- package/lib/components/base/TMUserAvatar.js +7 -7
- package/lib/components/base/TMWaitPanel.js +30 -24
- package/lib/components/choosers/TMCultureIDPicker.js +35 -35
- package/lib/components/choosers/TMDataListItemChooser.js +1 -1
- package/lib/components/choosers/TMDataListItemPicker.js +54 -54
- package/lib/components/choosers/TMDcmtTypeChooser.js +2 -2
- package/lib/components/choosers/TMMetadataChooser.d.ts +4 -1
- package/lib/components/choosers/TMMetadataChooser.js +31 -8
- package/lib/components/choosers/TMUserChooser.d.ts +4 -0
- package/lib/components/choosers/TMUserChooser.js +21 -5
- package/lib/components/editors/TMCheckBox.js +24 -24
- package/lib/components/editors/TMDateBox.d.ts +1 -1
- package/lib/components/editors/TMDropDown.js +43 -43
- package/lib/components/editors/TMEditorStyled.js +71 -71
- package/lib/components/editors/TMHtmlContentDisplay.js +16 -16
- package/lib/components/editors/TMLocalizedTextBox.js +31 -31
- package/lib/components/editors/TMMetadataValues.js +62 -21
- package/lib/components/editors/TMRadioButton.js +39 -39
- package/lib/components/editors/TMSummary.js +39 -39
- package/lib/components/editors/TMTextArea.d.ts +1 -0
- package/lib/components/editors/TMTextArea.js +56 -22
- package/lib/components/editors/TMTextBox.js +53 -23
- package/lib/components/editors/TMTextExpression.js +36 -28
- package/lib/components/features/assistant/ToppyDraggableHelpCenter.d.ts +30 -0
- package/lib/components/features/assistant/ToppyDraggableHelpCenter.js +471 -0
- package/lib/components/features/assistant/ToppySpeechBubble.d.ts +9 -0
- package/lib/components/features/assistant/ToppySpeechBubble.js +117 -0
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +2 -0
- package/lib/components/features/blog/TMBlogCommentForm.js +21 -9
- package/lib/components/features/documents/TMDcmtBlog.js +1 -1
- package/lib/components/features/documents/TMDcmtForm.js +321 -62
- package/lib/components/features/documents/TMDcmtIcon.js +17 -12
- package/lib/components/features/documents/TMDcmtPreview.js +75 -38
- package/lib/components/features/documents/TMFileUploader.js +21 -21
- package/lib/components/features/documents/TMRelationViewer.js +56 -23
- package/lib/components/features/search/TMSavedQuerySelector.js +52 -52
- package/lib/components/features/search/TMSearch.js +2 -2
- package/lib/components/features/search/TMSearchQueryEditor.js +14 -14
- package/lib/components/features/search/TMSearchQueryPanel.js +40 -58
- package/lib/components/features/search/TMSearchResult.js +160 -35
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +2 -1
- package/lib/components/features/search/TMSearchResultsMenuItems.js +117 -60
- package/lib/components/features/search/TMSignSettingsForm.d.ts +9 -0
- package/lib/components/features/search/TMSignSettingsForm.js +621 -0
- package/lib/components/features/search/TMTreeSelector.js +66 -66
- package/lib/components/features/tasks/TMTaskForm.js +42 -36
- package/lib/components/features/tasks/TMTasksAgenda.js +4 -4
- package/lib/components/features/tasks/TMTasksCalendar.js +2 -2
- package/lib/components/features/tasks/TMTasksHeader.js +1 -1
- package/lib/components/features/tasks/TMTasksUtils.d.ts +2 -1
- package/lib/components/features/tasks/TMTasksUtils.js +18 -3
- package/lib/components/features/tasks/TMTasksUtilsView.js +26 -4
- package/lib/components/features/tasks/TMTasksView.js +12 -6
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +9 -9
- package/lib/components/features/workflow/TMWorkflowPopup.js +44 -44
- package/lib/components/features/workflow/diagram/ConnectionComponent.js +29 -29
- package/lib/components/features/workflow/diagram/ConnectionForm.js +10 -10
- package/lib/components/features/workflow/diagram/DiagramItemComponent.js +57 -57
- package/lib/components/features/workflow/diagram/DiagramItemForm.js +40 -35
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +12 -12
- package/lib/components/features/workflow/diagram/RecipientList.js +39 -39
- package/lib/components/features/workflow/diagram/WFDiagram.js +317 -285
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +4 -4
- package/lib/components/forms/Login/Chooser.js +35 -35
- package/lib/components/forms/Login/Menu.js +22 -22
- package/lib/components/forms/Login/SelectBox.js +46 -46
- package/lib/components/forms/Login/TMLoginForm.js +14 -14
- package/lib/components/forms/Login/TextBox.js +57 -57
- package/lib/components/forms/TMResultDialog.js +8 -2
- package/lib/components/forms/TMSaveForm.js +3 -11
- package/lib/components/grids/TMBlogAttachments.d.ts +0 -14
- package/lib/components/grids/TMBlogAttachments.js +10 -5
- package/lib/components/grids/TMBlogsPost.d.ts +8 -3
- package/lib/components/grids/TMBlogsPost.js +100 -39
- package/lib/components/grids/TMBlogsPostUtils.d.ts +1 -0
- package/lib/components/grids/TMBlogsPostUtils.js +32 -11
- package/lib/components/grids/TMRecentsManager.js +51 -51
- package/lib/components/grids/TMValidationItemsList.js +48 -48
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +2 -1
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +14 -14
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +0 -1
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +36 -35
- package/lib/components/layout/panelManager/types.d.ts +1 -0
- package/lib/components/pages/TMPage.js +1 -1
- package/lib/components/query/TMQueryEditor.js +17 -17
- package/lib/components/query/TMQuerySummary.d.ts +1 -0
- package/lib/components/query/TMQuerySummary.js +15 -15
- package/lib/components/settings/SettingsAppearance.js +9 -1
- package/lib/components/sidebar/TMCommandsPanel.js +10 -10
- package/lib/components/sidebar/TMHeader.js +307 -307
- package/lib/components/sidebar/TMSidebar.js +24 -24
- package/lib/components/sidebar/TMSidebarItem.js +21 -21
- package/lib/components/viewers/TMDataListItemViewer.d.ts +1 -1
- package/lib/components/viewers/TMMidViewer.d.ts +1 -1
- package/lib/components/viewers/TMTidViewer.d.ts +1 -1
- package/lib/components/wizard/TMStepIndicator.js +102 -102
- package/lib/components/wizard/TMWizard.js +29 -29
- package/lib/helper/GlobalStyles.d.ts +2 -0
- package/lib/helper/GlobalStyles.js +10 -0
- package/lib/helper/Globalization.d.ts +1 -0
- package/lib/helper/Globalization.js +30 -0
- package/lib/helper/SDKUI_Globals.d.ts +2 -0
- package/lib/helper/SDKUI_Globals.js +9 -1
- package/lib/helper/SDKUI_Localizator.d.ts +50 -2
- package/lib/helper/SDKUI_Localizator.js +502 -22
- package/lib/helper/TMCustomSearchBar.js +1 -1
- package/lib/helper/TMIcons.d.ts +4 -1
- package/lib/helper/TMIcons.js +14 -2
- package/lib/helper/TMToppyMessage.d.ts +1 -0
- package/lib/helper/TMToppyMessage.js +33 -32
- package/lib/helper/TMUtils.d.ts +42 -4
- package/lib/helper/TMUtils.js +227 -60
- package/lib/helper/dcmtsHelper.d.ts +2 -1
- package/lib/helper/dcmtsHelper.js +56 -17
- package/lib/helper/helpers.d.ts +1 -1
- package/lib/helper/helpers.js +12 -17
- package/lib/helper/index.d.ts +1 -0
- package/lib/helper/index.js +1 -0
- package/lib/hooks/useDcmtOperations.d.ts +1 -1
- package/lib/hooks/useDcmtOperations.js +10 -6
- package/lib/hooks/useRelatedDocuments.js +35 -26
- package/lib/ts/types.d.ts +3 -1
- package/package.json +54 -54
- package/lib/components/features/assistant/ToppyHelpCenter.d.ts +0 -12
- package/lib/components/features/assistant/ToppyHelpCenter.js +0 -173
|
@@ -15,55 +15,55 @@ import TMTextArea from "../../editors/TMTextArea";
|
|
|
15
15
|
import TMDropDown from "../../editors/TMDropDown";
|
|
16
16
|
import TMDateBox from "../../editors/TMDateBox";
|
|
17
17
|
import ShowAlert from "../../base/TMAlert";
|
|
18
|
-
const StyledWorkFlowOperationButtonsContainer = styled.div `
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
gap: 10px;
|
|
22
|
-
flex-direction: column;
|
|
18
|
+
const StyledWorkFlowOperationButtonsContainer = styled.div `
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 10px;
|
|
22
|
+
flex-direction: column;
|
|
23
23
|
`;
|
|
24
24
|
const StyledTextArea = styled.textarea.attrs({
|
|
25
25
|
maxLength: 200
|
|
26
|
-
}) `
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
border: 1px solid ${props => props.$isValid ? '#b4b4b4' : TMColors.error};
|
|
30
|
-
border-radius: 10px;
|
|
31
|
-
padding: 10px;
|
|
32
|
-
&:focus{
|
|
33
|
-
outline: none;
|
|
34
|
-
border-bottom: 4px solid ${props => props.$isValid ? TMColors.primaryColor : TMColors.error};
|
|
35
|
-
}
|
|
26
|
+
}) `
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
border: 1px solid ${props => props.$isValid ? '#b4b4b4' : TMColors.error};
|
|
30
|
+
border-radius: 10px;
|
|
31
|
+
padding: 10px;
|
|
32
|
+
&:focus{
|
|
33
|
+
outline: none;
|
|
34
|
+
border-bottom: 4px solid ${props => props.$isValid ? TMColors.primaryColor : TMColors.error};
|
|
35
|
+
}
|
|
36
36
|
`;
|
|
37
|
-
const CharacterCounter = styled.div `
|
|
38
|
-
text-align: right;
|
|
39
|
-
font-size: 0.8rem;
|
|
40
|
-
color: #6c757d;
|
|
41
|
-
margin-top: 2px;
|
|
37
|
+
const CharacterCounter = styled.div `
|
|
38
|
+
text-align: right;
|
|
39
|
+
font-size: 0.8rem;
|
|
40
|
+
color: #6c757d;
|
|
41
|
+
margin-top: 2px;
|
|
42
42
|
`;
|
|
43
|
-
const StyledModalBodyWrapper = styled.div `
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-direction: column;
|
|
46
|
-
height: 100%;
|
|
43
|
+
const StyledModalBodyWrapper = styled.div `
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
height: 100%;
|
|
47
47
|
`;
|
|
48
|
-
const StyledModalFooter = styled.div `
|
|
49
|
-
padding: 16px 0 12px 0;
|
|
50
|
-
height: 60px;
|
|
51
|
-
display: flex;
|
|
52
|
-
justify-content: center;
|
|
48
|
+
const StyledModalFooter = styled.div `
|
|
49
|
+
padding: 16px 0 12px 0;
|
|
50
|
+
height: 60px;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
53
|
`;
|
|
54
|
-
const StyledModalContentContainer = styled.div `
|
|
55
|
-
width: 100%;
|
|
56
|
-
padding: 10px;
|
|
57
|
-
flex: 1; /* Questo fa sì che prenda tutto lo spazio verticale disponibile */
|
|
58
|
-
overflow-y: auto;
|
|
59
|
-
display: flex;
|
|
60
|
-
flex-direction: column;
|
|
61
|
-
gap: 5px;
|
|
54
|
+
const StyledModalContentContainer = styled.div `
|
|
55
|
+
width: 100%;
|
|
56
|
+
padding: 10px;
|
|
57
|
+
flex: 1; /* Questo fa sì che prenda tutto lo spazio verticale disponibile */
|
|
58
|
+
overflow-y: auto;
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: 5px;
|
|
62
62
|
`;
|
|
63
|
-
const StyledHorizontalContainer = styled.div `
|
|
64
|
-
display: flex;
|
|
65
|
-
gap: 10px;
|
|
66
|
-
/* align-items: flex-end; */
|
|
63
|
+
const StyledHorizontalContainer = styled.div `
|
|
64
|
+
display: flex;
|
|
65
|
+
gap: 10px;
|
|
66
|
+
/* align-items: flex-end; */
|
|
67
67
|
`;
|
|
68
68
|
export const WorkFlowOperationButtons = (props) => {
|
|
69
69
|
const { dtd = undefined, deviceType = DeviceType.DESKTOP, approveDisable = false, signApproveDisable = false, rejectDisable = false, reassignDisable = false, infoDisable = false, onApprove, onSignApprove, onReject, onReAssign, onMoreInfo } = props;
|
|
@@ -80,7 +80,7 @@ export const WorkFlowOperationButtons = (props) => {
|
|
|
80
80
|
setIsSignWorkflow(false);
|
|
81
81
|
}
|
|
82
82
|
}, [dtd]);
|
|
83
|
-
return (_jsx(StyledWorkFlowOperationButtonsContainer, { "$isMobile": isMobile, children: isSignWorkflow ? (_jsxs(_Fragment, { children: [_jsx(TMButton, { btnStyle: isMobile ? 'toolbar' : 'advanced', showTooltip: isMobile, icon: _jsx(IconSignaturePencil, {}), caption: SDKUI_Localizator.SignatureAndApprove, width: "160px", disabled: signApproveDisable, onClick: () => !signApproveDisable && onSignApprove?.(),
|
|
83
|
+
return (_jsx(StyledWorkFlowOperationButtonsContainer, { "$isMobile": isMobile, children: isSignWorkflow ? (_jsxs(_Fragment, { children: [_jsx(TMButton, { btnStyle: isMobile ? 'toolbar' : 'advanced', showTooltip: isMobile, icon: _jsx(IconSignaturePencil, {}), caption: SDKUI_Localizator.SignatureAndApprove, width: "160px", disabled: signApproveDisable, onClick: () => !signApproveDisable && onSignApprove?.(), onMouseDown: e => e.stopPropagation(), advancedColor: "#1a9a49", color: "success" }), _jsx(TMButton, { btnStyle: isMobile ? 'toolbar' : 'advanced', showTooltip: isMobile, icon: _jsx(IconCloseOutline, {}), caption: SDKUI_Localizator.Reject, disabled: rejectDisable, onClick: () => !rejectDisable && onReject?.(), onMouseDown: e => e.stopPropagation(), advancedColor: TMColors.error, color: "error" }), _jsx(TMButton, { btnStyle: isMobile ? 'toolbar' : 'advanced', showTooltip: isMobile, icon: _jsx(IconInfo, { fontSize: 16 }), caption: SDKUI_Localizator.MoreInformation, width: "180px", disabled: infoDisable, onClick: () => !infoDisable && onMoreInfo?.(), onMouseDown: e => e.stopPropagation(), advancedColor: TMColors.info, color: "info" })] })) : (_jsxs(_Fragment, { children: [_jsx(TMButton, { btnStyle: isMobile ? 'toolbar' : 'advanced', showTooltip: isMobile, icon: _jsx(IconApply, {}), caption: SDKUI_Localizator.Approve, disabled: approveDisable, onClick: () => !approveDisable && onApprove?.(), advancedColor: "#1a9a49", color: "success" }), _jsx(TMButton, { btnStyle: isMobile ? 'toolbar' : 'advanced', showTooltip: isMobile, icon: _jsx(IconCloseOutline, {}), caption: SDKUI_Localizator.Reject, disabled: rejectDisable, onClick: () => !rejectDisable && onReject?.(), advancedColor: TMColors.error, color: "error" }), _jsx(TMButton, { btnStyle: isMobile ? 'toolbar' : 'advanced', showTooltip: isMobile, icon: _jsx(IconUser, { fontSize: 16 }), caption: SDKUI_Localizator.Reassign, disabled: reassignDisable, onClick: () => !reassignDisable && onReAssign?.(), advancedColor: TMColors.tertiary, color: "tertiary" }), _jsx(TMButton, { btnStyle: isMobile ? 'toolbar' : 'advanced', showTooltip: isMobile, icon: _jsx(IconInfo, { fontSize: 16 }), caption: SDKUI_Localizator.MoreInformation, width: "180px", disabled: infoDisable, onClick: () => !infoDisable && onMoreInfo?.(), advancedColor: TMColors.info, color: "info" })] })) }));
|
|
84
84
|
};
|
|
85
85
|
export const WorkFlowApproveRejectPopUp = ({ TID = 0, DID = 0, deviceType = DeviceType.DESKTOP, isReject, selectedItems = [], onClose, onCompleted }) => {
|
|
86
86
|
const [commentValue, setCommentValue] = useState('');
|
|
@@ -198,7 +198,7 @@ export const WorkFlowMoreInfoPopUp = ({ DID = 0, TID = 0, deviceType = DeviceTyp
|
|
|
198
198
|
}
|
|
199
199
|
// Validate toID
|
|
200
200
|
if (!taskDescriptor.toID || taskDescriptor.toID <= 0)
|
|
201
|
-
vil.push(new ValidationItem(ResultTypes.ERROR, SDKUI_Localizator.
|
|
201
|
+
vil.push(new ValidationItem(ResultTypes.ERROR, SDKUI_Localizator.AssignedTo_Female, `${SDK_Localizator.RequiredField}`));
|
|
202
202
|
return vil;
|
|
203
203
|
};
|
|
204
204
|
const requestMoreInfoAsync = async () => {
|
|
@@ -271,7 +271,7 @@ export const WorkFlowMoreInfoPopUp = ({ DID = 0, TID = 0, deviceType = DeviceTyp
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
};
|
|
274
|
-
return (_jsx(TMModal, { title: SDKUI_Localizator.MoreInformation, onClose: onClose, width: deviceType === DeviceType.MOBILE ? '95%' : '640px', height: deviceType === DeviceType.MOBILE ? '60%' : '440px', isModal: true, children: _jsxs(StyledModalBodyWrapper, { children: [_jsxs(StyledModalContentContainer, { children: [_jsx(TMUserChooser, { width: "250px", label: SDKUI_Localizator.RequestTo, dataSource: users, values: task?.toID ? [task.toID] : [], validationItems: validationItems?.filter(o => o.PropertyName === SDKUI_Localizator.
|
|
274
|
+
return (_jsx(TMModal, { title: SDKUI_Localizator.MoreInformation, onClose: onClose, width: deviceType === DeviceType.MOBILE ? '95%' : '640px', height: deviceType === DeviceType.MOBILE ? '60%' : '440px', isModal: true, children: _jsxs(StyledModalBodyWrapper, { children: [_jsxs(StyledModalContentContainer, { children: [_jsx(TMUserChooser, { width: "250px", label: SDKUI_Localizator.RequestTo, dataSource: users, values: task?.toID ? [task.toID] : [], validationItems: validationItems?.filter(o => o.PropertyName === SDKUI_Localizator.AssignedTo_Female), onValueChanged: (IDs) => {
|
|
275
275
|
if (IDs === undefined)
|
|
276
276
|
return;
|
|
277
277
|
setTask({ ...task ?? {}, toID: IDs?.[0] });
|
|
@@ -3,39 +3,39 @@ import React, { useCallback } from 'react';
|
|
|
3
3
|
import { ArrowSymbol } from './interfaces';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import { getConnectionColor } from './workflowHelpers';
|
|
6
|
-
const StyledPath = styled.path ` // Aggiungi $isTemporary
|
|
7
|
-
fill: none;
|
|
8
|
-
stroke: ${props => getConnectionColor(props.$outputStatus)};
|
|
9
|
-
stroke-width: ${props => props.$isSelected ? 3 : 1};
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
transition: stroke-width 0.1s ease-in-out;
|
|
12
|
-
pointer-events: stroke;
|
|
13
|
-
|
|
14
|
-
${props => props.$isTemporary && css `
|
|
15
|
-
stroke: #888;
|
|
16
|
-
stroke-dasharray: 5 5;
|
|
17
|
-
opacity: 0.5;
|
|
18
|
-
`}
|
|
6
|
+
const StyledPath = styled.path ` // Aggiungi $isTemporary
|
|
7
|
+
fill: none;
|
|
8
|
+
stroke: ${props => getConnectionColor(props.$outputStatus)};
|
|
9
|
+
stroke-width: ${props => props.$isSelected ? 3 : 1};
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
transition: stroke-width 0.1s ease-in-out;
|
|
12
|
+
pointer-events: stroke;
|
|
13
|
+
|
|
14
|
+
${props => props.$isTemporary && css `
|
|
15
|
+
stroke: #888;
|
|
16
|
+
stroke-dasharray: 5 5;
|
|
17
|
+
opacity: 0.5;
|
|
18
|
+
`}
|
|
19
19
|
`;
|
|
20
20
|
// Path invisibile e più spesso per migliorare l'area di click
|
|
21
|
-
const StyledPathHitArea = styled.path `
|
|
22
|
-
fill: none;
|
|
23
|
-
stroke: transparent;
|
|
24
|
-
stroke-width: 10;
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
pointer-events: stroke;
|
|
21
|
+
const StyledPathHitArea = styled.path `
|
|
22
|
+
fill: none;
|
|
23
|
+
stroke: transparent;
|
|
24
|
+
stroke-width: 10;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
pointer-events: stroke;
|
|
27
27
|
`;
|
|
28
|
-
const StyledArrow = styled.path `
|
|
29
|
-
fill: ${props => props.$color};
|
|
30
|
-
stroke: ${props => props.$color};
|
|
31
|
-
stroke-width: 1;
|
|
32
|
-
pointer-events: none;
|
|
28
|
+
const StyledArrow = styled.path `
|
|
29
|
+
fill: ${props => props.$color};
|
|
30
|
+
stroke: ${props => props.$color};
|
|
31
|
+
stroke-width: 1;
|
|
32
|
+
pointer-events: none;
|
|
33
33
|
`;
|
|
34
|
-
const StyledSquareConnector = styled.rect `
|
|
35
|
-
fill: #007bff;
|
|
36
|
-
stroke: #007bff;
|
|
37
|
-
stroke-width: 1;
|
|
38
|
-
pointer-events: all;
|
|
34
|
+
const StyledSquareConnector = styled.rect `
|
|
35
|
+
fill: #007bff;
|
|
36
|
+
stroke: #007bff;
|
|
37
|
+
stroke-width: 1;
|
|
38
|
+
pointer-events: all;
|
|
39
39
|
`;
|
|
40
40
|
const ConnectionComponent = ({ connection, isSelected, sourcePoint, sinkPoint, isTemporary, onClick, onDoubleClick, onConnectionEndpointMouseDown }) => {
|
|
41
41
|
const connectionColor = getConnectionColor(connection.OutputStatus);
|
|
@@ -7,17 +7,17 @@ import TMModal from '../../../base/TMModal';
|
|
|
7
7
|
import { TMColors } from '../../../../utils/theme';
|
|
8
8
|
import { CultureIDs, WorkItemStatus } from '@topconsultnpm/sdk-ts';
|
|
9
9
|
import TMLocalizedTextBox from '../../../editors/TMLocalizedTextBox';
|
|
10
|
-
const FormContainer = styled.div `
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
gap: 5px;
|
|
14
|
-
padding: 10px;
|
|
10
|
+
const FormContainer = styled.div `
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: 5px;
|
|
14
|
+
padding: 10px;
|
|
15
15
|
`;
|
|
16
|
-
const ModalFooter = styled.div `
|
|
17
|
-
display: flex;
|
|
18
|
-
justify-content: flex-end;
|
|
19
|
-
gap: 10px;
|
|
20
|
-
margin-top: 20px;
|
|
16
|
+
const ModalFooter = styled.div `
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: flex-end;
|
|
19
|
+
gap: 10px;
|
|
20
|
+
margin-top: 20px;
|
|
21
21
|
`;
|
|
22
22
|
const WORKITEMSTATUS_DATASOURCE = [
|
|
23
23
|
{ value: WorkItemStatus.New, display: SDKUI_Localizator.WorkItemStatus_New },
|
|
@@ -5,82 +5,82 @@ import styled, { keyframes, css } from 'styled-components';
|
|
|
5
5
|
import DiagramItemSvgContent from './DiagramItemSvgContent';
|
|
6
6
|
import { calculateDiagramItemFullDimensions, FONT_SIZE, MAX_ITEM_WIDTH, MAX_LINES, PADDING_HORIZONTAL, PADDING_TOP, SPACING_SVG_TEXT, SVG_ICON_SIZE, wrapText } from './workflowHelpers';
|
|
7
7
|
import { DataListCacheService } from '@topconsultnpm/sdk-ts';
|
|
8
|
-
const blink = keyframes `
|
|
9
|
-
0%, 100% { opacity: 1; }
|
|
10
|
-
50% { opacity: 0.4; }
|
|
8
|
+
const blink = keyframes `
|
|
9
|
+
0%, 100% { opacity: 1; }
|
|
10
|
+
50% { opacity: 0.4; }
|
|
11
11
|
`;
|
|
12
|
-
const pulseAnimation = keyframes `
|
|
13
|
-
0% {
|
|
14
|
-
transform: scale(1);
|
|
15
|
-
}
|
|
16
|
-
50% {
|
|
17
|
-
transform: scale(1.1);
|
|
18
|
-
}
|
|
19
|
-
100% {
|
|
20
|
-
transform: scale(1);
|
|
21
|
-
}
|
|
12
|
+
const pulseAnimation = keyframes `
|
|
13
|
+
0% {
|
|
14
|
+
transform: scale(1);
|
|
15
|
+
}
|
|
16
|
+
50% {
|
|
17
|
+
transform: scale(1.1);
|
|
18
|
+
}
|
|
19
|
+
100% {
|
|
20
|
+
transform: scale(1);
|
|
21
|
+
}
|
|
22
22
|
`;
|
|
23
|
-
const bounceAnimation = keyframes `
|
|
24
|
-
0%, 20%, 50%, 80%, 100% {
|
|
25
|
-
transform: translateY(0);
|
|
26
|
-
}
|
|
27
|
-
40% {
|
|
28
|
-
transform: translateY(-10px);
|
|
29
|
-
}
|
|
30
|
-
60% {
|
|
31
|
-
transform: translateY(-5px);
|
|
32
|
-
}
|
|
23
|
+
const bounceAnimation = keyframes `
|
|
24
|
+
0%, 20%, 50%, 80%, 100% {
|
|
25
|
+
transform: translateY(0);
|
|
26
|
+
}
|
|
27
|
+
40% {
|
|
28
|
+
transform: translateY(-10px);
|
|
29
|
+
}
|
|
30
|
+
60% {
|
|
31
|
+
transform: translateY(-5px);
|
|
32
|
+
}
|
|
33
33
|
`;
|
|
34
|
-
const AnimatingGroup = styled.g `
|
|
34
|
+
const AnimatingGroup = styled.g `
|
|
35
35
|
${({ $isCurrent }) => $isCurrent &&
|
|
36
|
-
css `
|
|
37
|
-
animation: ${pulseAnimation} 1.5s infinite;
|
|
38
|
-
`}
|
|
36
|
+
css `
|
|
37
|
+
animation: ${pulseAnimation} 1.5s infinite;
|
|
38
|
+
`}
|
|
39
39
|
`;
|
|
40
|
-
const StyledDiagramItem = styled.g `
|
|
41
|
-
cursor: ${props => (props.$isReadOnly ? 'default' : (props.$isDragging ? 'grabbing' : 'grab'))};
|
|
42
|
-
filter: ${props => (props.$isSelected || props.$isDragging || props.$isHovered ? 'drop-shadow(2px 4px 6px rgba(0,0,0,0.4))' : 'none')};
|
|
43
|
-
|
|
44
|
-
& .item-main-shape {
|
|
45
|
-
fill: transparent;
|
|
40
|
+
const StyledDiagramItem = styled.g `
|
|
41
|
+
cursor: ${props => (props.$isReadOnly ? 'default' : (props.$isDragging ? 'grabbing' : 'grab'))};
|
|
42
|
+
filter: ${props => (props.$isSelected || props.$isDragging || props.$isHovered ? 'drop-shadow(2px 4px 6px rgba(0,0,0,0.4))' : 'none')};
|
|
43
|
+
|
|
44
|
+
& .item-main-shape {
|
|
45
|
+
fill: transparent;
|
|
46
46
|
stroke: ${props => {
|
|
47
47
|
if (props.$isDragging)
|
|
48
48
|
return '#ffc107';
|
|
49
49
|
if (props.$isSelected)
|
|
50
50
|
return '#007bff';
|
|
51
51
|
return 'none';
|
|
52
|
-
}};
|
|
52
|
+
}};
|
|
53
53
|
stroke-width: ${props => {
|
|
54
54
|
if (props.$isDragging)
|
|
55
55
|
return 2;
|
|
56
56
|
if (props.$isSelected)
|
|
57
57
|
return 2;
|
|
58
58
|
return 1;
|
|
59
|
-
}};
|
|
60
|
-
transition: stroke 0.2s ease-in-out, stroke-width 0.2s ease-in-out;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
& .item-text {
|
|
64
|
-
font-size: 11px;
|
|
65
|
-
fill: #333;
|
|
66
|
-
text-anchor: middle;
|
|
67
|
-
user-select: none;
|
|
68
|
-
pointer-events: none;
|
|
69
|
-
}
|
|
59
|
+
}};
|
|
60
|
+
transition: stroke 0.2s ease-in-out, stroke-width 0.2s ease-in-out;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& .item-text {
|
|
64
|
+
font-size: 11px;
|
|
65
|
+
fill: #333;
|
|
66
|
+
text-anchor: middle;
|
|
67
|
+
user-select: none;
|
|
68
|
+
pointer-events: none;
|
|
69
|
+
}
|
|
70
70
|
`;
|
|
71
|
-
const Connector = styled.circle `
|
|
72
|
-
fill: transparent;
|
|
73
|
-
stroke: blue;
|
|
74
|
-
stroke-width: 1;
|
|
75
|
-
cursor: ${props => (props.$isReadOnly ? 'default' : 'crosshair')};
|
|
76
|
-
opacity: ${props => (props.$isVisible ? 1 : 0)};
|
|
77
|
-
transition: opacity 0.2s ease-in-out;
|
|
71
|
+
const Connector = styled.circle `
|
|
72
|
+
fill: transparent;
|
|
73
|
+
stroke: blue;
|
|
74
|
+
stroke-width: 1;
|
|
75
|
+
cursor: ${props => (props.$isReadOnly ? 'default' : 'crosshair')};
|
|
76
|
+
opacity: ${props => (props.$isVisible ? 1 : 0)};
|
|
77
|
+
transition: opacity 0.2s ease-in-out;
|
|
78
78
|
`;
|
|
79
|
-
const ConnectorHitArea = styled.circle `
|
|
80
|
-
fill: transparent;
|
|
81
|
-
cursor: ${props => (props.$isReadOnly ? 'default' : 'crosshair')};
|
|
82
|
-
opacity: 0;
|
|
83
|
-
pointer-events: all;
|
|
79
|
+
const ConnectorHitArea = styled.circle `
|
|
80
|
+
fill: transparent;
|
|
81
|
+
cursor: ${props => (props.$isReadOnly ? 'default' : 'crosshair')};
|
|
82
|
+
opacity: 0;
|
|
83
|
+
pointer-events: all;
|
|
84
84
|
`;
|
|
85
85
|
const DiagramItemComponent = ({ wf, item, isSelected, isCurrent, readOnly, onClick, onDrag, onDragEnd, onConnectorMouseDown, onConnectorMouseUp, onDimensionsChange, onDoubleClick, }) => {
|
|
86
86
|
const diagramItemRef = useRef(null);
|
|
@@ -27,39 +27,39 @@ import RecipientList, { WorkItemActorTypes } from './RecipientList';
|
|
|
27
27
|
import TMRadioButton from '../../../editors/TMRadioButton';
|
|
28
28
|
import TMVilViewer from '../../../base/TMVilViewer';
|
|
29
29
|
import { DiagramItemProps, wfDiagramItemValidator } from './workflowHelpers';
|
|
30
|
-
const FormContainer = styled.div `
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
gap: 5px;
|
|
34
|
-
padding: 10px;
|
|
30
|
+
const FormContainer = styled.div `
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: 5px;
|
|
34
|
+
padding: 10px;
|
|
35
35
|
`;
|
|
36
|
-
const FlexContainer = styled.div `
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
gap: 20px;
|
|
36
|
+
const FlexContainer = styled.div `
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 20px;
|
|
40
40
|
`;
|
|
41
|
-
const BoxContainer = styled.div `
|
|
42
|
-
flex: 1;
|
|
43
|
-
border: 1px solid #ccc;
|
|
44
|
-
border-radius: 5px;
|
|
45
|
-
padding: 10px;
|
|
46
|
-
min-width: 300px;
|
|
47
|
-
position: relative;
|
|
41
|
+
const BoxContainer = styled.div `
|
|
42
|
+
flex: 1;
|
|
43
|
+
border: 1px solid #ccc;
|
|
44
|
+
border-radius: 5px;
|
|
45
|
+
padding: 10px;
|
|
46
|
+
min-width: 300px;
|
|
47
|
+
position: relative;
|
|
48
48
|
`;
|
|
49
|
-
const HeaderContainer = styled.div `
|
|
50
|
-
display: flex;
|
|
51
|
-
justify-content: space-between;
|
|
52
|
-
align-items: center;
|
|
53
|
-
position: relative;
|
|
54
|
-
margin-bottom: 10px;
|
|
55
|
-
font-weight: 600;
|
|
49
|
+
const HeaderContainer = styled.div `
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
align-items: center;
|
|
53
|
+
position: relative;
|
|
54
|
+
margin-bottom: 10px;
|
|
55
|
+
font-weight: 600;
|
|
56
56
|
`;
|
|
57
|
-
const ButtonsContainer = styled.div `
|
|
58
|
-
display: flex;
|
|
59
|
-
justify-content: center;
|
|
60
|
-
gap: 10px;
|
|
61
|
-
margin-top: auto;
|
|
62
|
-
padding-top: 20px;
|
|
57
|
+
const ButtonsContainer = styled.div `
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
gap: 10px;
|
|
61
|
+
margin-top: auto;
|
|
62
|
+
padding-top: 20px;
|
|
63
63
|
`;
|
|
64
64
|
const SET_RULE_DATASOURCE = [
|
|
65
65
|
{ value: WorkItemSetRules.Ands_AND_Ors, display: "Ands_AND_Ors" },
|
|
@@ -107,7 +107,7 @@ const DiagramItemForm = ({ itemToEdit, wf, onClose, onApply }) => {
|
|
|
107
107
|
case DiagramItemTypes.Approval:
|
|
108
108
|
case DiagramItemTypes.DataEntry:
|
|
109
109
|
width = '700px';
|
|
110
|
-
height = '
|
|
110
|
+
height = '530px';
|
|
111
111
|
break;
|
|
112
112
|
case DiagramItemTypes.ExecTask:
|
|
113
113
|
width = '700px';
|
|
@@ -130,6 +130,11 @@ const DiagramItemForm = ({ itemToEdit, wf, onClose, onApply }) => {
|
|
|
130
130
|
width = '700px';
|
|
131
131
|
height = '700px';
|
|
132
132
|
break;
|
|
133
|
+
case DiagramItemTypes.WorkGroup_AddParts:
|
|
134
|
+
case DiagramItemTypes.CaseFlow_AddParts:
|
|
135
|
+
width = '700px';
|
|
136
|
+
height = '530px';
|
|
137
|
+
break;
|
|
133
138
|
default:
|
|
134
139
|
width = '50%';
|
|
135
140
|
height = '50%';
|
|
@@ -383,7 +388,7 @@ const DiagramItemForm = ({ itemToEdit, wf, onClose, onApply }) => {
|
|
|
383
388
|
};
|
|
384
389
|
// Function to render Condition-specific fields
|
|
385
390
|
const renderConditionFields = () => {
|
|
386
|
-
return (_jsx(TMQuerySummary, { qd: localItem.QD, validateSelect: true, validateOrderBy: false, validationItems: validationItems.filter(v => v.PropertyScopes.includes(DiagramItemProps.QD)), onValueChanged: handleQDChange }));
|
|
391
|
+
return (_jsx(TMQuerySummary, { qd: localItem.QD, showDistinct: true, validateSelect: true, validateOrderBy: false, validationItems: validationItems.filter(v => v.PropertyScopes.includes(DiagramItemProps.QD)), onValueChanged: handleQDChange }));
|
|
387
392
|
};
|
|
388
393
|
// Function to render Status-specific fields
|
|
389
394
|
const renderStatusFields = () => {
|
|
@@ -404,7 +409,7 @@ const DiagramItemForm = ({ itemToEdit, wf, onClose, onApply }) => {
|
|
|
404
409
|
return qd;
|
|
405
410
|
};
|
|
406
411
|
const qdForRecipientsEditor = localItem.QD ?? newQD();
|
|
407
|
-
return (_jsxs(_Fragment, { children: [_jsx(TMLocalizedTextBox, { label: SDKUI_Localizator.Description, value: localItem.Description, value_IT: localItem.Description_IT, value_EN: localItem.Description_EN, value_FR: localItem.Description_FR, value_PT: localItem.Description_PT, value_ES: localItem.Description_ES, value_DE: localItem.Description_DE, isModifiedWhen: localItem.Description !== localItemOrig.Description, validationItems: validationItems.filter(v => v.PropertyName === DiagramItemProps.Description), onValueChanged: handleLocalizedDescriptionChange }), _jsx(WorkitemRecipientsEditor, { tos: localItem.Tos ?? '', mTID: wf?.MTID, qd: qdForRecipientsEditor, onTosChange: handleTosChange, onQDChange: handleSetRuleQDChange }), _jsx(TMVilViewer, { vil: validationItems.filter(v => v.PropertyName === DiagramItemProps.Tos) }), _jsxs(FlexContainer, { children: [_jsx(TMDropDown, { label: SDKUI_Localizator.WorkflowRecipientSetRule, elementStyle: { width: '320px' }, dataSource: SET_RULE_DATASOURCE, value: localItem.SetRule, isModifiedWhen: localItem.SetRule !== localItemOrig.SetRule, onValueChanged: (e) => { handleSetRuleChange(e.target.value); } }), _jsx(TMCheckBox, { value: localItem.AllowZeroTos ?? 0, label: SDKUI_Localizator.WorkflowAllowZeroTos, isModifiedWhen: localItem.AllowZeroTos !== localItemOrig.AllowZeroTos, onValueChanged: handleAllowZeroTosChange })] }), localItem.Type === DiagramItemTypes.ExecTask &&
|
|
412
|
+
return (_jsxs(_Fragment, { children: [_jsx(TMLocalizedTextBox, { label: SDKUI_Localizator.Description, value: localItem.Description, value_IT: localItem.Description_IT, value_EN: localItem.Description_EN, value_FR: localItem.Description_FR, value_PT: localItem.Description_PT, value_ES: localItem.Description_ES, value_DE: localItem.Description_DE, isModifiedWhen: localItem.Description !== localItemOrig.Description, validationItems: validationItems.filter(v => v.PropertyName === DiagramItemProps.Description), onValueChanged: handleLocalizedDescriptionChange }), _jsx(TMTextBox, { label: "SetID", value: localItem.ID ?? '', readOnly: true }), _jsx(WorkitemRecipientsEditor, { tos: localItem.Tos ?? '', mTID: wf?.MTID, qd: qdForRecipientsEditor, onTosChange: handleTosChange, onQDChange: handleSetRuleQDChange }), _jsx(TMVilViewer, { vil: validationItems.filter(v => v.PropertyName === DiagramItemProps.Tos) }), _jsxs(FlexContainer, { children: [_jsx(TMDropDown, { label: SDKUI_Localizator.WorkflowRecipientSetRule, elementStyle: { width: '320px' }, dataSource: SET_RULE_DATASOURCE, value: localItem.SetRule, isModifiedWhen: localItem.SetRule !== localItemOrig.SetRule, onValueChanged: (e) => { handleSetRuleChange(e.target.value); } }), _jsx(TMCheckBox, { value: localItem.AllowZeroTos ?? 0, label: SDKUI_Localizator.WorkflowAllowZeroTos, isModifiedWhen: localItem.AllowZeroTos !== localItemOrig.AllowZeroTos, onValueChanged: handleAllowZeroTosChange })] }), localItem.Type === DiagramItemTypes.ExecTask &&
|
|
408
413
|
_jsxs(BoxContainer, { children: [_jsx(HeaderContainer, { children: _jsx("span", { children: SDKUI_Localizator.Application }) }), renderAppFields()] })] }));
|
|
409
414
|
};
|
|
410
415
|
// Function to render UpdateDcmt-specific fields
|
|
@@ -562,7 +567,7 @@ const DiagramItemForm = ({ itemToEdit, wf, onClose, onApply }) => {
|
|
|
562
567
|
const newTos = actorsToTos(updatedRecipients);
|
|
563
568
|
handleTos2Change(newTos);
|
|
564
569
|
}, [localItem.Tos2, handleTos2Change]);
|
|
565
|
-
return (_jsxs(_Fragment, { children: [_jsx(TMTextExpression, { label: `${SDKUI_Localizator.Name} (${SDKUI_Localizator.
|
|
570
|
+
return (_jsxs(_Fragment, { children: [_jsx(TMTextExpression, { label: `${SDKUI_Localizator.Name} (${SDKUI_Localizator.Dossier})`, value: localItem.PlatformObjName, valueOrig: localItemOrig.PlatformObjName, tid: wf?.MTID, isModifiedWhen: (localItem.PlatformObjName ?? '') !== (localItemOrig.PlatformObjName ?? ''), onValueChanged: handlePlatformObjNameChange }), _jsx(TMTextExpression, { label: `${SDKUI_Localizator.Description} (${SDKUI_Localizator.Dossier})`, value: localItem.PlatformObjDescr, valueOrig: localItemOrig.PlatformObjDescr, tid: wf?.MTID, isModifiedWhen: (localItem.PlatformObjDescr ?? '') !== (localItemOrig.PlatformObjDescr ?? ''), onValueChanged: handlePlatformObjDescrChange }), _jsx(TMCultureIDPicker, { label: SDKUI_Localizator.Format, selectedValue: localItem.FormatCultureID, isModifiedWhen: localItem.FormatCultureID !== localItemOrig.FormatCultureID, openChooserBySingleClick: true, onSelectCultureID: handleFormatCultureIDChange }), _jsx(TMTextExpression, { label: `${SDKUI_Localizator.CommentText} (${SDKUI_Localizator.BlogCase})`, placeHolder: 'Inserisci il valore', rows: 2, value: localItem.Value1asString, valueOrig: localItemOrig.Value1asString, tid: wf?.MTID, isModifiedWhen: (localItem.Value1asString ?? '') !== (localItemOrig.Value1asString ?? ''), onValueChanged: handleValue1asStringChange }), _jsx(TMCheckBox, { value: localItem.Value1asInt ?? 0, label: SDKUI_Localizator.WorkflowAddDraftToWg, isModifiedWhen: localItem.Value1asInt !== localItemOrig.Value1asInt, onValueChanged: handleValue1asIntChange }), _jsx(TMCheckBox, { value: localItem.Value2asInt ?? 0, label: SDKUI_Localizator.WorkflowAddDcmtToWg, isModifiedWhen: localItem.Value2asInt !== localItemOrig.Value2asInt, onValueChanged: handleValue2asIntChange }), _jsx(TMCheckBox, { value: localItem.Trunc ?? 0, label: SDKUI_Localizator.TruncateString, isModifiedWhen: localItem.Trunc !== localItemOrig.Trunc, onValueChanged: handleTruncChange }), _jsxs(RecipientsContainer, { children: [_jsx(RecipientList, { recipients: tosRecipients, title: SDKUI_Localizator.OwnerName, tid: wf?.MTID, onAdd: (newRecipients) => handleAddTosRecipients(newRecipients, 0), onRemove: handleRemoveTosRecipient }), _jsx(RecipientList, { recipients: tos2Recipients, title: SDKUI_Localizator.Participants, tid: wf?.MTID, onAdd: (newRecipients) => handleAddTos2Recipients(newRecipients, 0), onRemove: handleRemoveTos2Recipient })] })] }));
|
|
566
571
|
};
|
|
567
572
|
const renderCaseFlowCreateFields = () => {
|
|
568
573
|
const [dossierTypes, setDossierTypes] = useState([]);
|
|
@@ -606,7 +611,7 @@ const DiagramItemForm = ({ itemToEdit, wf, onClose, onApply }) => {
|
|
|
606
611
|
const newTos = actorsToTos(updatedRecipients);
|
|
607
612
|
handleTos2Change(newTos);
|
|
608
613
|
}, [localItem.Tos2, handleTos2Change]);
|
|
609
|
-
return (_jsxs(_Fragment, { children: [_jsx(TMTextExpression, { label: `${SDKUI_Localizator.Name} (${SDKUI_Localizator.
|
|
614
|
+
return (_jsxs(_Fragment, { children: [_jsx(TMTextExpression, { label: `${SDKUI_Localizator.Name} (${SDKUI_Localizator.Dossier})`, value: localItem.PlatformObjName, valueOrig: localItemOrig.PlatformObjName, tid: wf?.MTID, isModifiedWhen: (localItem.PlatformObjName ?? '') !== (localItemOrig.PlatformObjName ?? ''), onValueChanged: handlePlatformObjNameChange }), _jsx(TMDropDown, { dataSource: dossierTypes, label: `${SDKUI_Localizator.Description} (${SDKUI_Localizator.Dossier})`, value: localItem.Value3asInt, isModifiedWhen: (localItem.Value3asInt ?? 0) !== (localItemOrig.Value3asInt ?? 0), onValueChanged: (e) => { handleValue3asIntChange(e.target.value); } }), _jsx(TMTextExpression, { label: `${SDKUI_Localizator.Description} (${SDKUI_Localizator.Dossier})`, value: localItem.PlatformObjDescr, valueOrig: localItemOrig.PlatformObjDescr, tid: wf?.MTID, isModifiedWhen: (localItem.PlatformObjDescr ?? '') !== (localItemOrig.PlatformObjDescr ?? ''), onValueChanged: handlePlatformObjDescrChange }), _jsx(TMCultureIDPicker, { label: SDKUI_Localizator.Format, selectedValue: localItem.FormatCultureID, isModifiedWhen: localItem.FormatCultureID !== localItemOrig.FormatCultureID, openChooserBySingleClick: true, onSelectCultureID: handleFormatCultureIDChange }), _jsx(TMTextExpression, { label: `${SDKUI_Localizator.CommentText} (${SDKUI_Localizator.BlogCase})`, placeHolder: 'Inserisci il valore', rows: 2, value: localItem.Value1asString, valueOrig: localItemOrig.Value1asString, tid: wf?.MTID, isModifiedWhen: (localItem.Value1asString ?? '') !== (localItemOrig.Value1asString ?? ''), onValueChanged: handleValue1asStringChange }), _jsx(TMCheckBox, { value: localItem.Value1asInt ?? 0, label: SDKUI_Localizator.WorkflowAddDcmtAsAttachment, isModifiedWhen: localItem.Value1asInt !== localItemOrig.Value1asInt, onValueChanged: handleValue1asIntChange }), _jsx(TMCheckBox, { value: localItem.Value2asInt ?? 0, label: SDKUI_Localizator.WorkflowAddDcmtToDossier, isModifiedWhen: localItem.Value2asInt !== localItemOrig.Value2asInt, onValueChanged: handleValue2asIntChange }), _jsx(TMCheckBox, { value: localItem.Trunc ?? 0, label: SDKUI_Localizator.TruncateString, isModifiedWhen: localItem.Trunc !== localItemOrig.Trunc, onValueChanged: handleTruncChange }), _jsxs(RecipientsContainer, { children: [_jsx(RecipientList, { recipients: tosRecipients, title: SDKUI_Localizator.OwnerName, tid: wf?.MTID, onAdd: (newRecipients) => handleAddTosRecipients(newRecipients, 0), onRemove: handleRemoveTosRecipient }), _jsx(RecipientList, { recipients: tos2Recipients, title: SDKUI_Localizator.Participants, tid: wf?.MTID, onAdd: (newRecipients) => handleAddTos2Recipients(newRecipients, 0), onRemove: handleRemoveTos2Recipient })] })] }));
|
|
610
615
|
};
|
|
611
616
|
const renderAddPartsFields = () => {
|
|
612
617
|
const { andRecipients: tosRecipients } = useMemo(() => {
|
|
@@ -624,7 +629,7 @@ const DiagramItemForm = ({ itemToEdit, wf, onClose, onApply }) => {
|
|
|
624
629
|
const newTos = actorsToTos(updatedRecipients);
|
|
625
630
|
handleTosChange(newTos);
|
|
626
631
|
}, [localItem.Tos, handleTosChange]);
|
|
627
|
-
return (_jsxs(_Fragment, { children: [_jsx(TMTextExpression, { label: `${SDKUI_Localizator.Name} (${localItem.Type === DiagramItemTypes.CaseFlow_AddParts ? SDKUI_Localizator.
|
|
632
|
+
return (_jsxs(_Fragment, { children: [_jsx(TMTextExpression, { label: `${SDKUI_Localizator.Name} (${localItem.Type === DiagramItemTypes.CaseFlow_AddParts ? SDKUI_Localizator.Dossier : SDKUI_Localizator.WorkGroup})`, value: localItem.PlatformObjName, valueOrig: localItemOrig.PlatformObjName, tid: wf?.MTID, isModifiedWhen: (localItem.PlatformObjName ?? '') !== (localItemOrig.PlatformObjName ?? ''), onValueChanged: handlePlatformObjNameChange }), _jsx(TMCultureIDPicker, { label: SDKUI_Localizator.Format, selectedValue: localItem.FormatCultureID, isModifiedWhen: localItem.FormatCultureID !== localItemOrig.FormatCultureID, openChooserBySingleClick: true, onSelectCultureID: handleFormatCultureIDChange }), _jsx(TMCheckBox, { value: localItem.Trunc ?? 0, label: SDKUI_Localizator.TruncateString, isModifiedWhen: localItem.Trunc !== localItemOrig.Trunc, onValueChanged: handleTruncChange }), _jsx(TMRadioButton, { label: SDKUI_Localizator.OperationType, dataSource: [
|
|
628
633
|
{ value: 1, display: SDKUI_Localizator.Add },
|
|
629
634
|
{ value: 0, display: SDKUI_Localizator.Remove },
|
|
630
635
|
], value: localItem.Value1asInt, isModifiedWhen: localItem.Value1asInt !== localItemOrig.Value1asInt, onValueChanged: handleValue1asIntChange }), _jsx(RecipientList, { recipients: tosRecipients, title: SDKUI_Localizator.OwnerName, tid: wf?.MTID, onAdd: (newRecipients) => handleAddTosRecipients(newRecipients, 0), onRemove: handleRemoveTosRecipient })] }));
|
|
@@ -3,18 +3,18 @@ import { DiagramItemTypes } from './interfaces'; // Assicurati che il percorso s
|
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { TMImageLibrary } from '../../../../helper';
|
|
5
5
|
// Stili per il contenitore SVG nella toolbox per centrare l'elemento
|
|
6
|
-
const StyledToolboxSvgContainer = styled.div `
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
overflow: hidden; // Previene lo scroll se l'SVG è leggermente più grande
|
|
13
|
-
svg {
|
|
14
|
-
max-width: 100%;
|
|
15
|
-
max-height: 100%;
|
|
16
|
-
display: block; // Rimuove spazi extra sotto l'SVG
|
|
17
|
-
}
|
|
6
|
+
const StyledToolboxSvgContainer = styled.div `
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
overflow: hidden; // Previene lo scroll se l'SVG è leggermente più grande
|
|
13
|
+
svg {
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
max-height: 100%;
|
|
16
|
+
display: block; // Rimuove spazi extra sotto l'SVG
|
|
17
|
+
}
|
|
18
18
|
`;
|
|
19
19
|
const DiagramItemSvgContent = ({ itemType, width, height, isToolboxPreview = false, statusData }) => {
|
|
20
20
|
const PADDING = 10;
|