@topconsultnpm/sdkui-react-beta 6.17.0 → 6.17.2

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.
Files changed (127) hide show
  1. package/lib/assets/IconsS4t/add.svg +12 -12
  2. package/lib/assets/IconsS4t/aggiorna.svg +18 -18
  3. package/lib/assets/IconsS4t/bookmark.svg +42 -42
  4. package/lib/assets/IconsS4t/cancella.svg +15 -15
  5. package/lib/assets/IconsS4t/check-box.svg +19 -19
  6. package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -40
  7. package/lib/assets/IconsS4t/down.svg +28 -28
  8. package/lib/assets/IconsS4t/edit-file.svg +19 -19
  9. package/lib/assets/IconsS4t/edita.svg +32 -32
  10. package/lib/assets/IconsS4t/firma.svg +19 -19
  11. package/lib/assets/IconsS4t/icona_download.svg +16 -16
  12. package/lib/assets/IconsS4t/info.svg +51 -51
  13. package/lib/assets/IconsS4t/left.svg +20 -20
  14. package/lib/assets/IconsS4t/line.svg +40 -40
  15. package/lib/assets/IconsS4t/more.svg +19 -19
  16. package/lib/assets/IconsS4t/plus.svg +23 -23
  17. package/lib/assets/IconsS4t/printer.svg +49 -49
  18. package/lib/assets/IconsS4t/radio-on-button.svg +25 -25
  19. package/lib/assets/IconsS4t/rectangle.svg +41 -41
  20. package/lib/assets/IconsS4t/redo.svg +19 -19
  21. package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -40
  22. package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -40
  23. package/lib/assets/IconsS4t/right.svg +22 -22
  24. package/lib/assets/IconsS4t/searchbar.svg +21 -21
  25. package/lib/assets/IconsS4t/text-box.svg +36 -36
  26. package/lib/assets/IconsS4t/tick.svg +8 -8
  27. package/lib/assets/IconsS4t/trash-white.svg +10 -10
  28. package/lib/assets/IconsS4t/undo.svg +19 -19
  29. package/lib/assets/IconsS4t/up.svg +32 -32
  30. package/lib/assets/IconsS4t/video-streaming.svg +2 -2
  31. package/lib/assets/IconsS4t/zoom-in.svg +58 -58
  32. package/lib/assets/IconsS4t/zoom-out.svg +56 -56
  33. package/lib/assets/six.svg +3 -3
  34. package/lib/assets/thumbnails/index.ts +38 -38
  35. package/lib/components/base/Styled.js +263 -263
  36. package/lib/components/base/TMAccordion.js +43 -43
  37. package/lib/components/base/TMAreaManager.js +23 -23
  38. package/lib/components/base/TMButton.js +130 -130
  39. package/lib/components/base/TMClosableList.js +46 -46
  40. package/lib/components/base/TMConfirm.js +20 -20
  41. package/lib/components/base/TMContextMenu.js +4 -4
  42. package/lib/components/base/TMContextMenuOLD.js +25 -25
  43. package/lib/components/base/TMCounterBar.js +32 -32
  44. package/lib/components/base/TMCounterContainer.js +30 -30
  45. package/lib/components/base/TMDropDownMenu.js +24 -24
  46. package/lib/components/base/TMFileManagerUtils.js +19 -19
  47. package/lib/components/base/TMFloatingToolbar.js +34 -34
  48. package/lib/components/base/TMLayout.js +44 -44
  49. package/lib/components/base/TMList.js +34 -34
  50. package/lib/components/base/TMModal.js +31 -31
  51. package/lib/components/base/TMPanel.js +57 -57
  52. package/lib/components/base/TMPopUp.js +131 -131
  53. package/lib/components/base/TMProgressBar.js +20 -20
  54. package/lib/components/base/TMResizableMenu.js +28 -28
  55. package/lib/components/base/TMRightSidebar.js +40 -40
  56. package/lib/components/base/TMTab.js +11 -11
  57. package/lib/components/base/TMToggleButton.js +36 -36
  58. package/lib/components/base/TMToolbarCard.js +35 -35
  59. package/lib/components/base/TMTreeView.js +12 -12
  60. package/lib/components/base/TMUserAvatar.js +7 -7
  61. package/lib/components/base/TMWaitPanel.js +22 -22
  62. package/lib/components/choosers/TMCultureIDPicker.js +35 -35
  63. package/lib/components/choosers/TMDataListItemPicker.js +54 -54
  64. package/lib/components/editors/TMCheckBox.js +24 -24
  65. package/lib/components/editors/TMDropDown.js +43 -43
  66. package/lib/components/editors/TMEditorStyled.js +71 -71
  67. package/lib/components/editors/TMHtmlContentDisplay.js +16 -16
  68. package/lib/components/editors/TMLocalizedTextBox.js +31 -31
  69. package/lib/components/editors/TMMetadataValues.js +12 -12
  70. package/lib/components/editors/TMRadioButton.js +39 -39
  71. package/lib/components/editors/TMSummary.js +39 -39
  72. package/lib/components/editors/TMTextArea.js +12 -12
  73. package/lib/components/editors/TMTextBox.js +19 -19
  74. package/lib/components/features/archive/TMArchive.js +1 -0
  75. package/lib/components/features/assistant/ToppyHelpCenter.js +114 -114
  76. package/lib/components/features/blog/TMBlogCommentForm.js +3 -3
  77. package/lib/components/features/documents/TMDcmtIcon.js +8 -8
  78. package/lib/components/features/documents/TMDcmtPreview.js +30 -30
  79. package/lib/components/features/documents/TMFileUploader.js +21 -21
  80. package/lib/components/features/search/TMSavedQuerySelector.js +51 -51
  81. package/lib/components/features/search/TMSearch.d.ts +2 -0
  82. package/lib/components/features/search/TMSearch.js +11 -6
  83. package/lib/components/features/search/TMSearchQueryEditor.js +13 -13
  84. package/lib/components/features/search/TMSearchQueryPanel.d.ts +1 -0
  85. package/lib/components/features/search/TMSearchQueryPanel.js +33 -32
  86. package/lib/components/features/search/TMSearchResult.d.ts +1 -0
  87. package/lib/components/features/search/TMSearchResult.js +7 -7
  88. package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +1 -1
  89. package/lib/components/features/search/TMSearchResultsMenuItems.js +12 -2
  90. package/lib/components/features/search/TMTreeSelector.js +66 -66
  91. package/lib/components/features/wg/TMWGsCopyMoveForm.js +9 -9
  92. package/lib/components/features/workflow/TMWorkflowPopup.js +41 -41
  93. package/lib/components/features/workflow/diagram/ConnectionComponent.js +29 -29
  94. package/lib/components/features/workflow/diagram/ConnectionForm.js +10 -10
  95. package/lib/components/features/workflow/diagram/DiagramItemComponent.js +57 -57
  96. package/lib/components/features/workflow/diagram/DiagramItemForm.js +29 -29
  97. package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +12 -12
  98. package/lib/components/features/workflow/diagram/RecipientList.js +40 -40
  99. package/lib/components/features/workflow/diagram/WFDiagram.js +279 -279
  100. package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +4 -4
  101. package/lib/components/features/workflow/diagram/workflowHelpers.js +1 -1
  102. package/lib/components/forms/Login/Chooser.js +35 -35
  103. package/lib/components/forms/Login/Menu.js +22 -22
  104. package/lib/components/forms/Login/SelectBox.js +46 -46
  105. package/lib/components/forms/Login/TMLoginForm.js +4 -4
  106. package/lib/components/forms/Login/TextBox.js +57 -57
  107. package/lib/components/grids/TMBlogsUtils.js +25 -25
  108. package/lib/components/grids/TMRecentsManager.js +50 -50
  109. package/lib/components/grids/TMValidationItemsList.js +48 -48
  110. package/lib/components/layout/panelManager/TMPanelManagerContainer.js +12 -12
  111. package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +34 -34
  112. package/lib/components/query/TMQueryEditor.js +17 -17
  113. package/lib/components/query/TMQuerySummary.js +12 -12
  114. package/lib/components/sidebar/TMCommandsPanel.js +10 -10
  115. package/lib/components/sidebar/TMHeader.js +307 -307
  116. package/lib/components/sidebar/TMSidebar.js +24 -24
  117. package/lib/components/sidebar/TMSidebarItem.js +21 -21
  118. package/lib/helper/SDKUI_Localizator.d.ts +1 -0
  119. package/lib/helper/SDKUI_Localizator.js +10 -0
  120. package/lib/helper/TMUtils.js +19 -19
  121. package/lib/hooks/useForm.d.ts +1 -1
  122. package/lib/hooks/useForm.js +4 -4
  123. package/lib/services/platform_services.d.ts +1 -1
  124. package/lib/services/platform_services.js +2 -2
  125. package/lib/stories/TMHtmlContentDisplay.stories.js +16 -16
  126. package/lib/stories/TMHtmlEditor.stories.js +3 -3
  127. package/package.json +1 -1
@@ -12,79 +12,79 @@ export const editorColorManager = (validationItems) => {
12
12
  return TMColors.info;
13
13
  return '';
14
14
  };
15
- export const StyledEditorContainer = styled.div `
16
- width: ${props => props.$width};
17
- position: relative;
15
+ export const StyledEditorContainer = styled.div `
16
+ width: ${props => props.$width};
17
+ position: relative;
18
18
  `;
19
- export const StyledEditor = styled.input `
20
- width: ${props => props.$width};
21
- padding: ${props => props.$type === 'password' ? '4px 10px 4px 13px' : props.$type === 'number' ? '4px 4px 5px 13px' : '4px 10px 4px 13px'};
22
- border: 1px solid;
23
- border-color: ${props => props.$isModified ? TMColors.isModified : TMColors.border_normal};
24
- border-bottom: ${props => (props.$vil.length > 0) ? '3px' : '1px'} solid ;
25
- border-bottom-color: ${props => (props.$vil.length === 0) ? !props.$isModified ? TMColors.border_normal : TMColors.isModified : editorColorManager(props.$vil)};
26
- color: ${props => props.readOnly ? '#525252' : !props.$disabled ? (props.$vil.length === 0) ? !props.$isModified ? 'black' : TMColors.isModified : editorColorManager(props.$vil) : TMColors.disabled};
27
- border-radius: ${props => props.$borderRadius ?? TMEditorsDefaultBorderRadius};
28
- min-width: ${props => props.$isMobile && '70px'};
29
- background: ${props => props.readOnly ? 'linear-gradient(white 20%, #d6d6d6 80%)' : 'white'};
30
- &:focus{
31
- outline: none;
32
- background-image: linear-gradient(white, #E4E9F7);
33
- border: ${props => props.$isModified ? `1px solid ${TMColors.isModified}` : '1px solid rgb(180,180,180)'};
34
- border-bottom: 2px solid ;
35
- border-bottom-color: ${props => (props.$vil.length === 0) ? !props.$isModified ? TMColors.primary : TMColors.isModified : editorColorManager(props.$vil)};
36
- }
37
-
38
- font-size: ${props => props.$fontSize};
39
- &::placeholder {
40
- /* color: ${props => (props.$vil.length === 0) ? 'gray' : editorColorManager(props.$vil)}; */
41
- font-size: ${props => props.$fontSize};
42
- }
19
+ export const StyledEditor = styled.input `
20
+ width: ${props => props.$width};
21
+ padding: ${props => props.$type === 'password' ? '4px 10px 4px 13px' : props.$type === 'number' ? '4px 4px 5px 13px' : '4px 10px 4px 13px'};
22
+ border: 1px solid;
23
+ border-color: ${props => props.$isModified ? TMColors.isModified : TMColors.border_normal};
24
+ border-bottom: ${props => (props.$vil.length > 0) ? '3px' : '1px'} solid ;
25
+ border-bottom-color: ${props => (props.$vil.length === 0) ? !props.$isModified ? TMColors.border_normal : TMColors.isModified : editorColorManager(props.$vil)};
26
+ color: ${props => props.readOnly ? '#525252' : !props.$disabled ? (props.$vil.length === 0) ? !props.$isModified ? 'black' : TMColors.isModified : editorColorManager(props.$vil) : TMColors.disabled};
27
+ border-radius: ${props => props.$borderRadius ?? TMEditorsDefaultBorderRadius};
28
+ min-width: ${props => props.$isMobile && '70px'};
29
+ background: ${props => props.readOnly ? 'linear-gradient(white 20%, #d6d6d6 80%)' : 'white'};
30
+ &:focus{
31
+ outline: none;
32
+ background-image: linear-gradient(white, #E4E9F7);
33
+ border: ${props => props.$isModified ? `1px solid ${TMColors.isModified}` : '1px solid rgb(180,180,180)'};
34
+ border-bottom: 2px solid ;
35
+ border-bottom-color: ${props => (props.$vil.length === 0) ? !props.$isModified ? TMColors.primary : TMColors.isModified : editorColorManager(props.$vil)};
36
+ }
37
+
38
+ font-size: ${props => props.$fontSize};
39
+ &::placeholder {
40
+ /* color: ${props => (props.$vil.length === 0) ? 'gray' : editorColorManager(props.$vil)}; */
41
+ font-size: ${props => props.$fontSize};
42
+ }
43
43
  `;
44
- export const StyledEditorIcon = styled.div `
45
- color: ${props => !props.$disabled ? (props.$vil.length === 0) ? !props.$isModified ? 'rgb(80,80,80)' : TMColors.tertiary : editorColorManager(props.$vil) : 'rgb(180,180,180)'};
46
- width: 25px;
47
- height: 25px;
48
- margin-right: 2px;
49
- font-size: 18px;
50
- user-select: none;
51
- transform: translateY(18px);
44
+ export const StyledEditorIcon = styled.div `
45
+ color: ${props => !props.$disabled ? (props.$vil.length === 0) ? !props.$isModified ? 'rgb(80,80,80)' : TMColors.tertiary : editorColorManager(props.$vil) : 'rgb(180,180,180)'};
46
+ width: 25px;
47
+ height: 25px;
48
+ margin-right: 2px;
49
+ font-size: 18px;
50
+ user-select: none;
51
+ transform: translateY(18px);
52
52
  `;
53
- export const StyledEditorLabel = styled.div `
54
- font-size: ${props => props.$fontSize ?? TMEditorsDefaultLabelFontSize} ;
55
- color:${props => !props.$disabled ? props.$isFocused ? TMColors.primary : props.$color ? props.$color : TMColors.label_normal : TMColors.disabled};
56
- padding: 0 3px;
57
- user-select: none;
58
- transform: ${props => props.$labelPosition === 'left' && 'translateY(5px)'};
59
- width: max-content;
60
- transform: translate(10px, 6px);
61
- background-color: ${TMColors.default_background};
62
- position: relative;
63
- z-index: 1;
53
+ export const StyledEditorLabel = styled.div `
54
+ font-size: ${props => props.$fontSize ?? TMEditorsDefaultLabelFontSize} ;
55
+ color:${props => !props.$disabled ? props.$isFocused ? TMColors.primary : props.$color ? props.$color : TMColors.label_normal : TMColors.disabled};
56
+ padding: 0 3px;
57
+ user-select: none;
58
+ transform: ${props => props.$labelPosition === 'left' && 'translateY(5px)'};
59
+ width: max-content;
60
+ transform: translate(10px, 6px);
61
+ background-color: ${TMColors.default_background};
62
+ position: relative;
63
+ z-index: 1;
64
64
  `;
65
- export const StyledTextareaEditor = styled.textarea `
66
- width: ${props => props.$width};
67
- padding: 4px 5px 4px 13px;
68
- border: 1px solid;
69
- border-color: ${props => props.$isModified ? TMColors.isModified : TMColors.border_normal};
70
- border-bottom: ${props => (props.$vil.length > 0) ? '3px' : '1px'} solid;
71
- border-bottom-color: ${props => props.$vil.length === 0 ? !props.$isModified ? TMColors.border_normal : TMColors.isModified : editorColorManager(props.$vil)};
72
- color: ${props => props.readOnly ? '#525252' : !props.$disabled ? (props.$vil.length === 0) ? !props.$isModified ? 'black' : TMColors.isModified : editorColorManager(props.$vil) : TMColors.disabled};
73
- background: ${props => props.readOnly ? 'linear-gradient(white 20%, #d6d6d6 80%)' : 'white'};
74
- border-radius: ${props => props.$borderRadius ?? TMEditorsDefaultBorderRadius}; /* Slightly increased radius for smoother corners */
75
- min-width: ${props => (props.$isMobile ? '70px' : '100%')}; /* Adjust for mobile */
76
- max-height: ${props => props.$maxHeight ?? 'auto'};
77
- resize: ${props => (props.$resize === false ? 'none' : 'both')};
78
- &:focus {
79
- outline: none;
80
- background-image: linear-gradient(white, #E4E9F7);
81
- border: ${props => props.$isModified ? `1px solid ${TMColors.isModified}` : '1px solid rgb(180,180,180)'};
82
- border-bottom: 2px solid;
83
- border-bottom-color: ${props => props.$vil.length === 0 ? !props.$isModified ? TMColors.primary : TMColors.isModified : editorColorManager(props.$vil)};
84
- }
85
- font-size: ${props => props.$fontSize};
86
- &::placeholder {
87
- color: ${props => (props.$vil.length === 0) ? 'gray' : editorColorManager(props.$vil)};
88
- font-size: ${props => props.$fontSize};
89
- }
65
+ export const StyledTextareaEditor = styled.textarea `
66
+ width: ${props => props.$width};
67
+ padding: 4px 5px 4px 13px;
68
+ border: 1px solid;
69
+ border-color: ${props => props.$isModified ? TMColors.isModified : TMColors.border_normal};
70
+ border-bottom: ${props => (props.$vil.length > 0) ? '3px' : '1px'} solid;
71
+ border-bottom-color: ${props => props.$vil.length === 0 ? !props.$isModified ? TMColors.border_normal : TMColors.isModified : editorColorManager(props.$vil)};
72
+ color: ${props => props.readOnly ? '#525252' : !props.$disabled ? (props.$vil.length === 0) ? !props.$isModified ? 'black' : TMColors.isModified : editorColorManager(props.$vil) : TMColors.disabled};
73
+ background: ${props => props.readOnly ? 'linear-gradient(white 20%, #d6d6d6 80%)' : 'white'};
74
+ border-radius: ${props => props.$borderRadius ?? TMEditorsDefaultBorderRadius}; /* Slightly increased radius for smoother corners */
75
+ min-width: ${props => (props.$isMobile ? '70px' : '100%')}; /* Adjust for mobile */
76
+ max-height: ${props => props.$maxHeight ?? 'auto'};
77
+ resize: ${props => (props.$resize === false ? 'none' : 'both')};
78
+ &:focus {
79
+ outline: none;
80
+ background-image: linear-gradient(white, #E4E9F7);
81
+ border: ${props => props.$isModified ? `1px solid ${TMColors.isModified}` : '1px solid rgb(180,180,180)'};
82
+ border-bottom: 2px solid;
83
+ border-bottom-color: ${props => props.$vil.length === 0 ? !props.$isModified ? TMColors.primary : TMColors.isModified : editorColorManager(props.$vil)};
84
+ }
85
+ font-size: ${props => props.$fontSize};
86
+ &::placeholder {
87
+ color: ${props => (props.$vil.length === 0) ? 'gray' : editorColorManager(props.$vil)};
88
+ font-size: ${props => props.$fontSize};
89
+ }
90
90
  `;
@@ -3,22 +3,22 @@ import { useEffect, useState } from 'react';
3
3
  import { UserListCacheService } from '@topconsultnpm/sdk-ts-beta';
4
4
  import styled from 'styled-components';
5
5
  import { TMColors } from '../../utils/theme';
6
- const Wrapper = styled.div `
7
- * {
8
- color: ${(props) => props.$isSelected && '#fff !important'};
9
- }
10
- ul li {
11
- list-style-position: inside;
12
- }
13
- ol li {
14
- list-style-position: inside;
15
- }
16
- .highlight {
17
- background-color: ${(props) => props.$isSelected ? '#6c9023' : 'yellow'};
18
- }
19
- a {
20
- color: ${(props) => (props.$isSelected ? '#fff' : 'rgb(26, 13, 171)')};
21
- }
6
+ const Wrapper = styled.div `
7
+ * {
8
+ color: ${(props) => props.$isSelected && '#fff !important'};
9
+ }
10
+ ul li {
11
+ list-style-position: inside;
12
+ }
13
+ ol li {
14
+ list-style-position: inside;
15
+ }
16
+ .highlight {
17
+ background-color: ${(props) => props.$isSelected ? '#6c9023' : 'yellow'};
18
+ }
19
+ a {
20
+ color: ${(props) => (props.$isSelected ? '#fff' : 'rgb(26, 13, 171)')};
21
+ }
22
22
  `;
23
23
  const convertLinksToAnchors = (markup) => {
24
24
  const urlRegex = /(?<!href=["'])(https?:\/\/[^\s"'<>]+[^\s"'<>.,;:!?)])/g;
@@ -26,40 +26,40 @@ const Portal = ({ children, popoverRef }) => {
26
26
  }, [popoverRef]);
27
27
  return createPortal(children, elRef.current);
28
28
  };
29
- const LocalizedContainer = styled.div `
30
- position: relative;
31
- width: 100%;
29
+ const LocalizedContainer = styled.div `
30
+ position: relative;
31
+ width: 100%;
32
32
  `;
33
- const Popover = styled.div `
34
- display: ${props => props.$isVisible ? 'flex' : 'none'};
35
- flex-direction: column;
36
- position: fixed; /* Usa 'fixed' o 'absolute' a seconda del comportamento desiderato */
37
- top: ${props => props.$top}px;
38
- left: ${props => props.$left}px;
39
- width: ${props => props.$width}px;
40
- border: 1px solid #ccc;
41
- border-radius: 4px;
42
- background-color: #fff;
43
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
44
- z-index: 2000;
45
- padding: 8px;
33
+ const Popover = styled.div `
34
+ display: ${props => props.$isVisible ? 'flex' : 'none'};
35
+ flex-direction: column;
36
+ position: fixed; /* Usa 'fixed' o 'absolute' a seconda del comportamento desiderato */
37
+ top: ${props => props.$top}px;
38
+ left: ${props => props.$left}px;
39
+ width: ${props => props.$width}px;
40
+ border: 1px solid #ccc;
41
+ border-radius: 4px;
42
+ background-color: #fff;
43
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
44
+ z-index: 2000;
45
+ padding: 8px;
46
46
  `;
47
- const Badge = styled.span `
48
- position: absolute;
49
- top: -8px;
50
- right: -8px;
51
- background-color: #ff9800;
52
- color: white;
53
- border-radius: 50%;
54
- padding: 2px 6px;
55
- font-size: 10px;
56
- font-weight: bold;
57
- pointer-events: none;
47
+ const Badge = styled.span `
48
+ position: absolute;
49
+ top: -8px;
50
+ right: -8px;
51
+ background-color: #ff9800;
52
+ color: white;
53
+ border-radius: 50%;
54
+ padding: 2px 6px;
55
+ font-size: 10px;
56
+ font-weight: bold;
57
+ pointer-events: none;
58
58
  `;
59
- const IconContainer = styled.div `
60
- position: relative;
61
- display: flex;
62
- align-items: center;
59
+ const IconContainer = styled.div `
60
+ position: relative;
61
+ display: flex;
62
+ align-items: center;
63
63
  `;
64
64
  // Helper function to get image path
65
65
  export const getCultureIDImg = (cultureID) => {
@@ -405,17 +405,17 @@ const TMMetadataValues = ({ showCheckBoxes = ShowCheckBoxesMode.Never, checkPerm
405
405
  };
406
406
  export default TMMetadataValues;
407
407
  //#region Styled Components
408
- const StyledMetadataValuesContainer = styled.div `
409
- display: flex;
410
- flex-direction: column;
411
- width: 100%;
412
- height: 100%;
413
- overflow: auto;
414
- padding: 0 10px 10px 10px;
408
+ const StyledMetadataValuesContainer = styled.div `
409
+ display: flex;
410
+ flex-direction: column;
411
+ width: 100%;
412
+ height: 100%;
413
+ overflow: auto;
414
+ padding: 0 10px 10px 10px;
415
415
  `;
416
- const StyledRow = styled.div `
417
- display: flex;
418
- flex-direction: row;
419
- width: 100%;
420
- gap: 5px;
416
+ const StyledRow = styled.div `
417
+ display: flex;
418
+ flex-direction: row;
419
+ width: 100%;
420
+ gap: 5px;
421
421
  `;
@@ -2,51 +2,51 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { FontSize, TMColors } from '../../utils/theme';
3
3
  import styled from 'styled-components';
4
4
  import { makeID } from '../../helper/helpers';
5
- const StyledWrapper = styled.label `
6
- color: ${props => !props.$disabled ? props.$isModifiedWhen ? TMColors.isModified : TMColors.text_normal : TMColors.disabled};
7
- display: flex;
8
- flex-direction: ${props => props.$direction};
9
- align-items: ${props => props.$direction === 'row' ? 'center' : 'flex-start'};
10
- font-size: ${props => props.$fontSize};
11
- gap: ${props => props.$direction === 'row' ? '20px' : "10px"};
5
+ const StyledWrapper = styled.label `
6
+ color: ${props => !props.$disabled ? props.$isModifiedWhen ? TMColors.isModified : TMColors.text_normal : TMColors.disabled};
7
+ display: flex;
8
+ flex-direction: ${props => props.$direction};
9
+ align-items: ${props => props.$direction === 'row' ? 'center' : 'flex-start'};
10
+ font-size: ${props => props.$fontSize};
11
+ gap: ${props => props.$direction === 'row' ? '20px' : "10px"};
12
12
  `;
13
- const StyledRadioGroupLabel = styled.div `
14
- flex: ${props => props.$flexBase};
13
+ const StyledRadioGroupLabel = styled.div `
14
+ flex: ${props => props.$flexBase};
15
15
  `;
16
- const StyledRadioGroupContainer = styled.div `
17
- flex: ${props => 10 - props.$flexBase};
16
+ const StyledRadioGroupContainer = styled.div `
17
+ flex: ${props => 10 - props.$flexBase};
18
18
  `;
19
- const StyledRadioButtonWrapper = styled.div `
20
- display: flex;
21
- flex-direction: ${props => props.$direction};
22
- align-items: ${props => props.$direction === 'row' ? 'center' : 'flex-start'};
23
- justify-content: flex-start;
24
- gap: ${props => props.$direction === 'row' ? '10px' : '5px'};
19
+ const StyledRadioButtonWrapper = styled.div `
20
+ display: flex;
21
+ flex-direction: ${props => props.$direction};
22
+ align-items: ${props => props.$direction === 'row' ? 'center' : 'flex-start'};
23
+ justify-content: flex-start;
24
+ gap: ${props => props.$direction === 'row' ? '10px' : '5px'};
25
25
  `;
26
- const StyledRadioButtoncontainer = styled.div `
27
- display: flex;
28
- flex-direction: row;
29
- align-items: center;
30
- justify-content: flex-start;
31
- gap: 5px;
32
- height: 18px;
26
+ const StyledRadioButtoncontainer = styled.div `
27
+ display: flex;
28
+ flex-direction: row;
29
+ align-items: center;
30
+ justify-content: flex-start;
31
+ gap: 5px;
32
+ height: 18px;
33
33
  `;
34
- const StyledRadioButton = styled.input `
35
- accent-color: ${props => !props.$disabled ? props.$isModifiedWhen ? TMColors.isModified : TMColors.primary : TMColors.disabled};
36
- cursor: ${props => !props.$disabled && 'pointer'};
34
+ const StyledRadioButton = styled.input `
35
+ accent-color: ${props => !props.$disabled ? props.$isModifiedWhen ? TMColors.isModified : TMColors.primary : TMColors.disabled};
36
+ cursor: ${props => !props.$disabled && 'pointer'};
37
37
  `;
38
- const StyledradioButtonLabel = styled.label `
39
- font-size: ${props => props.$fontSize};
40
- color: ${props => !props.$disabled ? props.$isModifiedWhen ? TMColors.isModified : TMColors.text_normal : TMColors.disabled};
41
- user-select: none;
42
- width: 100%;
43
- cursor: ${props => !props.$disabled && 'pointer'};
44
- &:focus{
45
- outline: none;
46
- background-image: linear-gradient(white, #E4E9F7);
47
- border-bottom: 2px solid ;
48
- border-bottom-color: ${props => !props.$isModifiedWhen ? TMColors.primary : TMColors.isModified};
49
- }
38
+ const StyledradioButtonLabel = styled.label `
39
+ font-size: ${props => props.$fontSize};
40
+ color: ${props => !props.$disabled ? props.$isModifiedWhen ? TMColors.isModified : TMColors.text_normal : TMColors.disabled};
41
+ user-select: none;
42
+ width: 100%;
43
+ cursor: ${props => !props.$disabled && 'pointer'};
44
+ &:focus{
45
+ outline: none;
46
+ background-image: linear-gradient(white, #E4E9F7);
47
+ border-bottom: 2px solid ;
48
+ border-bottom-color: ${props => !props.$isModifiedWhen ? TMColors.primary : TMColors.isModified};
49
+ }
50
50
  `;
51
51
  const TMRadioButton = ({ isModifiedWhen, flexBase = 1, elementStyle, label, value, fontSize = FontSize.defaultFontSize, dataSource = [], direction = 'row', onValueChanged, disabled = false }) => {
52
52
  const renderedRadioButtons = () => {
@@ -7,46 +7,46 @@ import { IconClearButton, IconPencil, SDKUI_Localizator } from '../../helper';
7
7
  import TMLayoutContainer, { TMLayoutItem } from '../base/TMLayout';
8
8
  import TMVilViewer from '../base/TMVilViewer';
9
9
  import TMTooltip from '../base/TMTooltip';
10
- const StyledSummaryTemplateInput = styled.div `
11
- width: ${props => props.$width};
12
- height: ${props => props.$height};
13
- padding: ${props => !props.$showBorder ? '4px 5px' : '5px 5px 5px 13px'};
14
- border: ${props => !props.$showBorder ? '' : '1px solid'};
15
- background: ${props => props.$readOnly ? 'linear-gradient(white 20%, #d6d6d6 80%)' : props.$backgroundColor};
16
- border-color: ${props => props.$isModified ? TMColors.isModified : TMColors.border_normal};
17
- border-bottom: ${props => !props.$showBorder ? '' : (props.$vil.length > 0) ? '3px solid' : '1px solid'} ;
18
- border-bottom-color: ${props => (props.$vil.length === 0) ? !props.$isModified ? TMColors.border_normal : TMColors.isModified : editorColorManager(props.$vil)};
19
- color: ${props => props.$readOnly ? '#525252' : !props.$disabled ? (props.$vil.length === 0) ? !props.$isModified ? 'black' : TMColors.isModified : editorColorManager(props.$vil) : TMColors.disabled};
20
- border-radius: ${props => !props.$showBorder ? props.$borderRadius : TMEditorsDefaultBorderRadius};
21
- display: flex;
22
- align-items: center;
23
- overflow: hidden;
24
-
25
- &:focus{
26
- outline: none;
27
- background-image: ${props => !props.$showBorder ? '' : 'linear-gradient(white, #E4E9F7)'};
28
- border: ${props => !props.$showBorder ? '' : props.$isModified ? `1px solid ${TMColors.isModified}` : '1px solid rgb(180,180,180)'};
29
- border-bottom: ${props => !props.$showBorder ? '' : '2px solid'};
30
- border-bottom-color: ${props => !props.$showBorder ? '' : (props.$vil.length === 0) ? !props.$isModified ? TMColors.primary : TMColors.isModified : editorColorManager(props.$vil)};
31
- }
32
- font-size: ${props => props.$fontSize};
33
- &::placeholder {
34
- /* color: ${props => (props.$vil.length === 0) ? 'gray' : editorColorManager(props.$vil)}; */
35
- font-size: ${props => props.$fontSize};
36
- }
10
+ const StyledSummaryTemplateInput = styled.div `
11
+ width: ${props => props.$width};
12
+ height: ${props => props.$height};
13
+ padding: ${props => !props.$showBorder ? '4px 5px' : '5px 5px 5px 13px'};
14
+ border: ${props => !props.$showBorder ? '' : '1px solid'};
15
+ background: ${props => props.$readOnly ? 'linear-gradient(white 20%, #d6d6d6 80%)' : props.$backgroundColor};
16
+ border-color: ${props => props.$isModified ? TMColors.isModified : TMColors.border_normal};
17
+ border-bottom: ${props => !props.$showBorder ? '' : (props.$vil.length > 0) ? '3px solid' : '1px solid'} ;
18
+ border-bottom-color: ${props => (props.$vil.length === 0) ? !props.$isModified ? TMColors.border_normal : TMColors.isModified : editorColorManager(props.$vil)};
19
+ color: ${props => props.$readOnly ? '#525252' : !props.$disabled ? (props.$vil.length === 0) ? !props.$isModified ? 'black' : TMColors.isModified : editorColorManager(props.$vil) : TMColors.disabled};
20
+ border-radius: ${props => !props.$showBorder ? props.$borderRadius : TMEditorsDefaultBorderRadius};
21
+ display: flex;
22
+ align-items: center;
23
+ overflow: hidden;
24
+
25
+ &:focus{
26
+ outline: none;
27
+ background-image: ${props => !props.$showBorder ? '' : 'linear-gradient(white, #E4E9F7)'};
28
+ border: ${props => !props.$showBorder ? '' : props.$isModified ? `1px solid ${TMColors.isModified}` : '1px solid rgb(180,180,180)'};
29
+ border-bottom: ${props => !props.$showBorder ? '' : '2px solid'};
30
+ border-bottom-color: ${props => !props.$showBorder ? '' : (props.$vil.length === 0) ? !props.$isModified ? TMColors.primary : TMColors.isModified : editorColorManager(props.$vil)};
31
+ }
32
+ font-size: ${props => props.$fontSize};
33
+ &::placeholder {
34
+ /* color: ${props => (props.$vil.length === 0) ? 'gray' : editorColorManager(props.$vil)}; */
35
+ font-size: ${props => props.$fontSize};
36
+ }
37
37
  `;
38
- const StyledEditorButtonIcon2 = styled.div `
39
- color: ${TMColors.button_icon};
40
- display: flex;
41
- align-items: center;
42
- position: relative;
43
- cursor: pointer;
44
- &:focus{
45
- outline: none;
46
- background-image: linear-gradient(white, #E4E9F7);
47
- border-bottom: 2px solid;
48
- border-bottom-color: ${TMColors.primary};
49
- }
38
+ const StyledEditorButtonIcon2 = styled.div `
39
+ color: ${TMColors.button_icon};
40
+ display: flex;
41
+ align-items: center;
42
+ position: relative;
43
+ cursor: pointer;
44
+ &:focus{
45
+ outline: none;
46
+ background-image: linear-gradient(white, #E4E9F7);
47
+ border-bottom: 2px solid;
48
+ border-bottom-color: ${TMColors.primary};
49
+ }
50
50
  `;
51
51
  const TMSummary = forwardRef(({ placeHolder, readOnly, labelColor, hasValue, borderRadius = '4px', validationItems = [], buttons = [], label = '', onClearClick, openEditorOnSummaryClick = true, onEditorClick, backgroundColor = 'transparent', showBorder = true, isModifiedWhen, elementStyle, width = '100%', height = '100%', fontSize = FontSize.defaultFontSize, icon, showEditButton = true, showClearButton, iconEditButton, iconeEditTooltip, labelPosition = 'left', template, disabled = false, onValueChanged }, ref) => {
52
52
  const summaryElementRef = useRef(null); // Ref all'elemento DOM div principale
@@ -10,18 +10,18 @@ import TMTooltip from '../base/TMTooltip';
10
10
  import { DeviceType, useDeviceType } from '../base/TMDeviceProvider';
11
11
  import { IconClearButton } from '../../helper';
12
12
  import styled from 'styled-components';
13
- const StyledTextAreaEditorButton = styled.div `
14
- color: ${TMColors.button_icon};
15
- display: flex;
16
- align-items: center;
17
- position: relative;
18
- cursor: pointer;
19
- &:focus{
20
- outline: none;
21
- background-image: linear-gradient(white, #E4E9F7);
22
- border-bottom: 2px solid;
23
- border-bottom-color: ${TMColors.primary};
24
- }
13
+ const StyledTextAreaEditorButton = styled.div `
14
+ color: ${TMColors.button_icon};
15
+ display: flex;
16
+ align-items: center;
17
+ position: relative;
18
+ cursor: pointer;
19
+ &:focus{
20
+ outline: none;
21
+ background-image: linear-gradient(white, #E4E9F7);
22
+ border-bottom: 2px solid;
23
+ border-bottom-color: ${TMColors.primary};
24
+ }
25
25
  `;
26
26
  // Define the TMTextArea component
27
27
  const TMTextArea = (props) => {
@@ -11,26 +11,26 @@ import TMVilViewer from '../base/TMVilViewer';
11
11
  import TMTooltip from '../base/TMTooltip';
12
12
  import { ContextMenu } from 'devextreme-react';
13
13
  import { DeviceType, useDeviceType } from '../base/TMDeviceProvider';
14
- const StyledShowPasswordIcon = styled.div `
15
- color: ${props => !props.$disabled ? (props.$vil.length === 0) ? !props.$isModified ? TMColors.text_normal : TMColors.isModified : editorColorManager(props.$vil) : TMColors.disabled};
16
- position: absolute;
17
- right: 10px;
18
- font-size: 18px;
19
- transform: translateY(-25px);
20
- cursor: pointer;
14
+ const StyledShowPasswordIcon = styled.div `
15
+ color: ${props => !props.$disabled ? (props.$vil.length === 0) ? !props.$isModified ? TMColors.text_normal : TMColors.isModified : editorColorManager(props.$vil) : TMColors.disabled};
16
+ position: absolute;
17
+ right: 10px;
18
+ font-size: 18px;
19
+ transform: translateY(-25px);
20
+ cursor: pointer;
21
21
  `;
22
- const StyledTextBoxEditorButton = styled.div `
23
- color: ${TMColors.button_icon};
24
- display: flex;
25
- align-items: center;
26
- position: relative;
27
- cursor: pointer;
28
- &:focus{
29
- outline: none;
30
- background-image: linear-gradient(white, #E4E9F7);
31
- border-bottom: 2px solid;
32
- border-bottom-color: ${TMColors.primary};
33
- }
22
+ const StyledTextBoxEditorButton = styled.div `
23
+ color: ${TMColors.button_icon};
24
+ display: flex;
25
+ align-items: center;
26
+ position: relative;
27
+ cursor: pointer;
28
+ &:focus{
29
+ outline: none;
30
+ background-image: linear-gradient(white, #E4E9F7);
31
+ border-bottom: 2px solid;
32
+ border-bottom-color: ${TMColors.primary};
33
+ }
34
34
  `;
35
35
  const TMTextBox = ({ autoFocus, maxLength, labelColor, precision, fromModal = false, scale, showClearButton, validationItems = [], label = '', readOnly = false, formulaItems = [], buttons = [], isModifiedWhen, placeHolder, elementStyle, width = '100%', maxValue, minValue, fontSize = FontSize.defaultFontSize, icon, labelPosition = 'left', value, disabled = false, type = 'text', onValueChanged, onBlur, borderRadius, allowedPattern }) => {
36
36
  const [initialType, setInitialType] = useState(type);
@@ -23,6 +23,7 @@ const TMArchive = ({ onDcmtTypeSelect = undefined, inputTID, inputFile = null, c
23
23
  if (!inputTID)
24
24
  return;
25
25
  setCurrentTID(inputTID);
26
+ setCurrentMruTID(mruTIDs.includes(inputTID) ? inputTID : 0);
26
27
  }, [inputTID]);
27
28
  useEffect(() => {
28
29
  if (!currentTID || currentTID <= 0) {