@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.
Files changed (208) 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/icomoon.svg +96 -96
  34. package/lib/assets/italy.svg +16 -16
  35. package/lib/assets/six.svg +3 -3
  36. package/lib/assets/thumbnails/index.ts +39 -39
  37. package/lib/assets/topmedia-six.svg +65 -65
  38. package/lib/assets/topmeida-six-bianco.svg +65 -65
  39. package/lib/components/base/Styled.js +302 -302
  40. package/lib/components/base/TMAccordion.js +43 -43
  41. package/lib/components/base/TMAccordionNew.d.ts +28 -0
  42. package/lib/components/base/TMAccordionNew.js +326 -0
  43. package/lib/components/base/TMAreaManager.js +23 -23
  44. package/lib/components/base/TMButton.d.ts +1 -0
  45. package/lib/components/base/TMButton.js +136 -136
  46. package/lib/components/base/TMClosableList.js +46 -46
  47. package/lib/components/base/TMConfirm.js +20 -20
  48. package/lib/components/base/TMContextMenu.js +4 -4
  49. package/lib/components/base/TMContextMenuOLD.js +25 -25
  50. package/lib/components/base/TMCounterBar.js +32 -32
  51. package/lib/components/base/TMCounterContainer.js +30 -30
  52. package/lib/components/base/TMCustomButton.d.ts +1 -1
  53. package/lib/components/base/TMCustomButton.js +90 -35
  54. package/lib/components/base/TMDataGridExportForm.d.ts +1 -1
  55. package/lib/components/base/TMDataGridExportForm.js +9 -3
  56. package/lib/components/base/TMDropDownMenu.js +24 -24
  57. package/lib/components/base/TMFileManager.js +12 -3
  58. package/lib/components/base/TMFileManagerDataGridView.d.ts +2 -0
  59. package/lib/components/base/TMFileManagerDataGridView.js +12 -3
  60. package/lib/components/base/TMFileManagerThumbnailItems.d.ts +2 -0
  61. package/lib/components/base/TMFileManagerThumbnailItems.js +12 -2
  62. package/lib/components/base/TMFileManagerThumbnailsView.d.ts +2 -0
  63. package/lib/components/base/TMFileManagerThumbnailsView.js +2 -2
  64. package/lib/components/base/TMFileManagerUtils.js +19 -19
  65. package/lib/components/base/TMFloatingToolbar.js +34 -34
  66. package/lib/components/base/TMLayout.js +44 -44
  67. package/lib/components/base/TMList.js +34 -34
  68. package/lib/components/base/TMModal.d.ts +2 -0
  69. package/lib/components/base/TMModal.js +79 -34
  70. package/lib/components/base/TMPanel.js +57 -57
  71. package/lib/components/base/TMPopUp.js +186 -117
  72. package/lib/components/base/TMProgressBar.js +20 -20
  73. package/lib/components/base/TMResizableMenu.js +28 -28
  74. package/lib/components/base/TMRightSidebar.js +40 -40
  75. package/lib/components/base/TMSpinner.js +121 -121
  76. package/lib/components/base/TMTab.js +11 -11
  77. package/lib/components/base/TMToggleButton.js +36 -36
  78. package/lib/components/base/TMToolbarCard.js +35 -35
  79. package/lib/components/base/TMTooltip.d.ts +1 -1
  80. package/lib/components/base/TMTooltip.js +1 -1
  81. package/lib/components/base/TMTreeView.js +16 -16
  82. package/lib/components/base/TMUserAvatar.js +7 -7
  83. package/lib/components/base/TMWaitPanel.js +30 -24
  84. package/lib/components/choosers/TMCultureIDPicker.js +35 -35
  85. package/lib/components/choosers/TMDataListItemChooser.js +1 -1
  86. package/lib/components/choosers/TMDataListItemPicker.js +54 -54
  87. package/lib/components/choosers/TMDcmtTypeChooser.js +2 -2
  88. package/lib/components/choosers/TMMetadataChooser.d.ts +4 -1
  89. package/lib/components/choosers/TMMetadataChooser.js +31 -8
  90. package/lib/components/choosers/TMUserChooser.d.ts +4 -0
  91. package/lib/components/choosers/TMUserChooser.js +21 -5
  92. package/lib/components/editors/TMCheckBox.js +24 -24
  93. package/lib/components/editors/TMDateBox.d.ts +1 -1
  94. package/lib/components/editors/TMDropDown.js +43 -43
  95. package/lib/components/editors/TMEditorStyled.js +71 -71
  96. package/lib/components/editors/TMHtmlContentDisplay.js +16 -16
  97. package/lib/components/editors/TMLocalizedTextBox.js +31 -31
  98. package/lib/components/editors/TMMetadataValues.js +62 -21
  99. package/lib/components/editors/TMRadioButton.js +39 -39
  100. package/lib/components/editors/TMSummary.js +39 -39
  101. package/lib/components/editors/TMTextArea.d.ts +1 -0
  102. package/lib/components/editors/TMTextArea.js +56 -22
  103. package/lib/components/editors/TMTextBox.js +53 -23
  104. package/lib/components/editors/TMTextExpression.js +36 -28
  105. package/lib/components/features/assistant/ToppyDraggableHelpCenter.d.ts +30 -0
  106. package/lib/components/features/assistant/ToppyDraggableHelpCenter.js +471 -0
  107. package/lib/components/features/assistant/ToppySpeechBubble.d.ts +9 -0
  108. package/lib/components/features/assistant/ToppySpeechBubble.js +117 -0
  109. package/lib/components/features/blog/TMBlogCommentForm.d.ts +2 -0
  110. package/lib/components/features/blog/TMBlogCommentForm.js +21 -9
  111. package/lib/components/features/documents/TMDcmtBlog.js +1 -1
  112. package/lib/components/features/documents/TMDcmtForm.js +321 -62
  113. package/lib/components/features/documents/TMDcmtIcon.js +17 -12
  114. package/lib/components/features/documents/TMDcmtPreview.js +75 -38
  115. package/lib/components/features/documents/TMFileUploader.js +21 -21
  116. package/lib/components/features/documents/TMRelationViewer.js +56 -23
  117. package/lib/components/features/search/TMSavedQuerySelector.js +52 -52
  118. package/lib/components/features/search/TMSearch.js +2 -2
  119. package/lib/components/features/search/TMSearchQueryEditor.js +14 -14
  120. package/lib/components/features/search/TMSearchQueryPanel.js +40 -58
  121. package/lib/components/features/search/TMSearchResult.js +160 -35
  122. package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +2 -1
  123. package/lib/components/features/search/TMSearchResultsMenuItems.js +117 -60
  124. package/lib/components/features/search/TMSignSettingsForm.d.ts +9 -0
  125. package/lib/components/features/search/TMSignSettingsForm.js +621 -0
  126. package/lib/components/features/search/TMTreeSelector.js +66 -66
  127. package/lib/components/features/tasks/TMTaskForm.js +42 -36
  128. package/lib/components/features/tasks/TMTasksAgenda.js +4 -4
  129. package/lib/components/features/tasks/TMTasksCalendar.js +2 -2
  130. package/lib/components/features/tasks/TMTasksHeader.js +1 -1
  131. package/lib/components/features/tasks/TMTasksUtils.d.ts +2 -1
  132. package/lib/components/features/tasks/TMTasksUtils.js +18 -3
  133. package/lib/components/features/tasks/TMTasksUtilsView.js +26 -4
  134. package/lib/components/features/tasks/TMTasksView.js +12 -6
  135. package/lib/components/features/wg/TMWGsCopyMoveForm.js +9 -9
  136. package/lib/components/features/workflow/TMWorkflowPopup.js +44 -44
  137. package/lib/components/features/workflow/diagram/ConnectionComponent.js +29 -29
  138. package/lib/components/features/workflow/diagram/ConnectionForm.js +10 -10
  139. package/lib/components/features/workflow/diagram/DiagramItemComponent.js +57 -57
  140. package/lib/components/features/workflow/diagram/DiagramItemForm.js +40 -35
  141. package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +12 -12
  142. package/lib/components/features/workflow/diagram/RecipientList.js +39 -39
  143. package/lib/components/features/workflow/diagram/WFDiagram.js +317 -285
  144. package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +4 -4
  145. package/lib/components/forms/Login/Chooser.js +35 -35
  146. package/lib/components/forms/Login/Menu.js +22 -22
  147. package/lib/components/forms/Login/SelectBox.js +46 -46
  148. package/lib/components/forms/Login/TMLoginForm.js +14 -14
  149. package/lib/components/forms/Login/TextBox.js +57 -57
  150. package/lib/components/forms/TMResultDialog.js +8 -2
  151. package/lib/components/forms/TMSaveForm.js +3 -11
  152. package/lib/components/grids/TMBlogAttachments.d.ts +0 -14
  153. package/lib/components/grids/TMBlogAttachments.js +10 -5
  154. package/lib/components/grids/TMBlogsPost.d.ts +8 -3
  155. package/lib/components/grids/TMBlogsPost.js +100 -39
  156. package/lib/components/grids/TMBlogsPostUtils.d.ts +1 -0
  157. package/lib/components/grids/TMBlogsPostUtils.js +32 -11
  158. package/lib/components/grids/TMRecentsManager.js +51 -51
  159. package/lib/components/grids/TMValidationItemsList.js +48 -48
  160. package/lib/components/index.d.ts +2 -1
  161. package/lib/components/index.js +2 -1
  162. package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -0
  163. package/lib/components/layout/panelManager/TMPanelManagerContainer.js +14 -14
  164. package/lib/components/layout/panelManager/TMPanelManagerContext.js +0 -1
  165. package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +36 -35
  166. package/lib/components/layout/panelManager/types.d.ts +1 -0
  167. package/lib/components/pages/TMPage.js +1 -1
  168. package/lib/components/query/TMQueryEditor.js +17 -17
  169. package/lib/components/query/TMQuerySummary.d.ts +1 -0
  170. package/lib/components/query/TMQuerySummary.js +15 -15
  171. package/lib/components/settings/SettingsAppearance.js +9 -1
  172. package/lib/components/sidebar/TMCommandsPanel.js +10 -10
  173. package/lib/components/sidebar/TMHeader.js +307 -307
  174. package/lib/components/sidebar/TMSidebar.js +24 -24
  175. package/lib/components/sidebar/TMSidebarItem.js +21 -21
  176. package/lib/components/viewers/TMDataListItemViewer.d.ts +1 -1
  177. package/lib/components/viewers/TMMidViewer.d.ts +1 -1
  178. package/lib/components/viewers/TMTidViewer.d.ts +1 -1
  179. package/lib/components/wizard/TMStepIndicator.js +102 -102
  180. package/lib/components/wizard/TMWizard.js +29 -29
  181. package/lib/helper/GlobalStyles.d.ts +2 -0
  182. package/lib/helper/GlobalStyles.js +10 -0
  183. package/lib/helper/Globalization.d.ts +1 -0
  184. package/lib/helper/Globalization.js +30 -0
  185. package/lib/helper/SDKUI_Globals.d.ts +2 -0
  186. package/lib/helper/SDKUI_Globals.js +9 -1
  187. package/lib/helper/SDKUI_Localizator.d.ts +50 -2
  188. package/lib/helper/SDKUI_Localizator.js +502 -22
  189. package/lib/helper/TMCustomSearchBar.js +1 -1
  190. package/lib/helper/TMIcons.d.ts +4 -1
  191. package/lib/helper/TMIcons.js +14 -2
  192. package/lib/helper/TMToppyMessage.d.ts +1 -0
  193. package/lib/helper/TMToppyMessage.js +33 -32
  194. package/lib/helper/TMUtils.d.ts +42 -4
  195. package/lib/helper/TMUtils.js +227 -60
  196. package/lib/helper/dcmtsHelper.d.ts +2 -1
  197. package/lib/helper/dcmtsHelper.js +56 -17
  198. package/lib/helper/helpers.d.ts +1 -1
  199. package/lib/helper/helpers.js +12 -17
  200. package/lib/helper/index.d.ts +1 -0
  201. package/lib/helper/index.js +1 -0
  202. package/lib/hooks/useDcmtOperations.d.ts +1 -1
  203. package/lib/hooks/useDcmtOperations.js +10 -6
  204. package/lib/hooks/useRelatedDocuments.js +35 -26
  205. package/lib/ts/types.d.ts +3 -1
  206. package/package.json +54 -54
  207. package/lib/components/features/assistant/ToppyHelpCenter.d.ts +0 -12
  208. package/lib/components/features/assistant/ToppyHelpCenter.js +0 -173
@@ -2,336 +2,336 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import styled, { keyframes } from 'styled-components';
3
3
  import { ResultTypes } from '@topconsultnpm/sdk-ts';
4
4
  import { FontSize, Gutters, TMColors } from '../../utils/theme';
5
- export const StyledDivHorizontal = styled.div `
6
- display: flex;
7
- flex-direction: row;
8
- align-items: center;
9
- justify-content: flex-start;
5
+ export const StyledDivHorizontal = styled.div `
6
+ display: flex;
7
+ flex-direction: row;
8
+ align-items: center;
9
+ justify-content: flex-start;
10
10
  `;
11
- export const StyledMultiViewPanel = styled.div `
12
- display: flex;
13
- width: 100%;
14
- height: 100%;
15
- position: ${(props) => props.$isVisible ? 'relative' : 'absolute'};
16
- left: ${(props) => props.$isVisible ? '0px' : '-9999px'};
17
- top: ${(props) => props.$isVisible ? '0px' : '-9999px'};
18
- visibility: ${(props) => props.$isVisible ? 'visible' : 'hidden'};
11
+ export const StyledMultiViewPanel = styled.div `
12
+ display: flex;
13
+ width: 100%;
14
+ height: 100%;
15
+ position: ${(props) => props.$isVisible ? 'relative' : 'absolute'};
16
+ left: ${(props) => props.$isVisible ? '0px' : '-9999px'};
17
+ top: ${(props) => props.$isVisible ? '0px' : '-9999px'};
18
+ visibility: ${(props) => props.$isVisible ? 'visible' : 'hidden'};
19
19
  `;
20
- export const StyledParagraph = styled.p `
21
- display: flex;
22
- flex-direction: row;
23
- align-items: center;
24
- justify-content: flex-start;
25
- padding: 0 10px;
26
- font-size: 1rem;
20
+ export const StyledParagraph = styled.p `
21
+ display: flex;
22
+ flex-direction: row;
23
+ align-items: center;
24
+ justify-content: flex-start;
25
+ padding: 0 10px;
26
+ font-size: 1rem;
27
27
  `;
28
- export const StyledToolbarForm = styled.div `
29
- display: flex;
30
- flex-direction: row;
31
- align-items: center;
32
- justify-content: flex-start;
33
- height: 35px;
34
- width: 100%;
35
- padding-left: 10px;
36
- gap: 2px;
37
- background-color: ${TMColors.toolbar_background};
28
+ export const StyledToolbarForm = styled.div `
29
+ display: flex;
30
+ flex-direction: row;
31
+ align-items: center;
32
+ justify-content: flex-start;
33
+ height: 35px;
34
+ width: 100%;
35
+ padding-left: 10px;
36
+ gap: 2px;
37
+ background-color: ${TMColors.toolbar_background};
38
38
  `;
39
- export const StyledReferenceButton = styled.button `
40
- display: flex;
41
- flex-direction: column;
42
- align-items: center;
43
- justify-content: center;
44
- padding: 10px 16px;
45
- border-radius: 20px;
46
- border: none;
47
- background-color: ${TMColors.button_floating_background};
48
- color: white;
49
- font-size: 0.9rem;
50
- font-weight: 500;
51
- cursor: pointer;
52
- transition: all 0.2s ease;
53
- text-align: center;
54
- max-width: 200px;
55
- gap: 2px;
56
-
57
- &:hover {
58
- opacity: 0.9;
59
- transform: translateY(-1px);
60
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
61
- }
62
-
63
- &:active {
64
- transform: translateY(0);
65
- }
66
-
67
- &:disabled {
68
- opacity: 0.5;
69
- cursor: not-allowed;
70
- }
71
-
72
- span {
73
- width: 100%;
74
- white-space: nowrap;
75
- overflow: hidden;
76
- text-overflow: ellipsis;
77
- }
39
+ export const StyledReferenceButton = styled.button `
40
+ display: flex;
41
+ flex-direction: column;
42
+ align-items: center;
43
+ justify-content: center;
44
+ padding: 10px 16px;
45
+ border-radius: 20px;
46
+ border: none;
47
+ background-color: ${TMColors.button_floating_background};
48
+ color: white;
49
+ font-size: 0.9rem;
50
+ font-weight: 500;
51
+ cursor: pointer;
52
+ transition: all 0.2s ease;
53
+ text-align: center;
54
+ max-width: 200px;
55
+ gap: 2px;
56
+
57
+ &:hover {
58
+ opacity: 0.9;
59
+ transform: translateY(-1px);
60
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
61
+ }
62
+
63
+ &:active {
64
+ transform: translateY(0);
65
+ }
66
+
67
+ &:disabled {
68
+ opacity: 0.5;
69
+ cursor: not-allowed;
70
+ }
71
+
72
+ span {
73
+ width: 100%;
74
+ white-space: nowrap;
75
+ overflow: hidden;
76
+ text-overflow: ellipsis;
77
+ }
78
78
  `;
79
- export const StyledPanelPage = styled.div `
80
- position: absolute;
81
- width: calc(100% - 50px);
82
- top: ${(props) => props.$isOpen ? '50px' : '-9999px'};
83
- left: ${(props) => props.$isOpen ? '50px' : '-9999px'};
84
- visibility: ${(props) => props.$isOpen ? 'visible' : 'hidden'};
85
- bottom: 0;
86
- border-radius: 0px;
87
- background: ${(props) => props.$background ?? 'transparent'};
88
- z-index: 1500;
89
- overflow: hidden;
90
-
91
- @media (min-width: 768px) {
92
- padding: ${(props) => props.$padding ?? `${Gutters.defaultDesktop}px`};
93
- padding-right: ${(props) => props.$withMenu ? '0' : 'auto'};
94
- }
95
-
96
- @media (max-width: 767px) {
97
- padding: ${(props) => props.$padding ?? `${Gutters.defaultMobile}px`};
98
- }
79
+ export const StyledPanelPage = styled.div `
80
+ position: absolute;
81
+ width: calc(100% - 50px);
82
+ top: ${(props) => props.$isOpen ? '50px' : '-9999px'};
83
+ left: ${(props) => props.$isOpen ? '50px' : '-9999px'};
84
+ visibility: ${(props) => props.$isOpen ? 'visible' : 'hidden'};
85
+ bottom: 0;
86
+ border-radius: 0px;
87
+ background: ${(props) => props.$background ?? 'transparent'};
88
+ z-index: 1500;
89
+ overflow: hidden;
90
+
91
+ @media (min-width: 768px) {
92
+ padding: ${(props) => props.$padding ?? `${Gutters.defaultDesktop}px`};
93
+ padding-right: ${(props) => props.$withMenu ? '0' : 'auto'};
94
+ }
95
+
96
+ @media (max-width: 767px) {
97
+ padding: ${(props) => props.$padding ?? `${Gutters.defaultMobile}px`};
98
+ }
99
99
  `;
100
- export const StyledClickableIconWrapper = styled.div `
101
- width: 100%;
102
- flex-grow: 1;
103
- display: flex;
104
- justify-content: center;
105
- align-items: center;
106
- min-height: 30px;
107
- cursor: ${props => props.$disabled ? 'not-allowed' : 'pointer'};
108
- opacity: ${props => props.$disabled ? 0.5 : 1};
109
- &:hover {
110
- background-color: ${props => props.$disabled ? 'transparent' : 'rgba(255, 255, 255, 0.1)'};
111
- }
100
+ export const StyledClickableIconWrapper = styled.div `
101
+ width: 100%;
102
+ flex-grow: 1;
103
+ display: flex;
104
+ justify-content: center;
105
+ align-items: center;
106
+ min-height: 30px;
107
+ cursor: ${props => props.$disabled ? 'not-allowed' : 'pointer'};
108
+ opacity: ${props => props.$disabled ? 0.5 : 1};
109
+ &:hover {
110
+ background-color: ${props => props.$disabled ? 'transparent' : 'rgba(255, 255, 255, 0.1)'};
111
+ }
112
112
  `;
113
- export const StyledOffCanvasPanel = styled.div `
114
- position: fixed;
115
- background-color: ${TMColors.default_background};
116
- box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
117
- transition: transform 0.3s ease, visibility 0.3s ease;
118
- z-index: 1502;
119
- display: flex;
120
- flex-direction: column;
121
- border-top-left-radius: 10px;
122
- border-bottom-left-radius: 10px;
123
-
124
- /* Default: Open from the right */
125
- top: 0;
126
- right: 0;
127
- width: ${({ $width }) => $width ?? '550px'}; /* Use $width or default to 550px */
128
- max-width: 100%;
129
- height: 100%;
130
- transform: ${({ $isOpen }) => ($isOpen ? 'translateX(0)' : 'translateX(100%)')};
131
- visibility: ${({ $isOpen }) => ($isOpen ? 'visible' : 'hidden')};
132
-
133
- /* Mobile: Open from the bottom */
134
- @media (max-width: 768px) {
135
- top: auto;
136
- bottom: 0;
137
- right: 0;
138
- width: 100%;
139
- height: ${({ $mobileHeight }) => $mobileHeight ?? '90%'}; /* Use $mobileHeight or default to 90% */
140
- transform: ${({ $isOpen }) => ($isOpen ? 'translateY(0)' : 'translateY(100%)')};
141
- visibility: ${({ $isOpen }) => ($isOpen ? 'visible' : 'hidden')};
142
- border-top-left-radius: 10px;
143
- border-top-right-radius: 10px;
144
- border-bottom-left-radius: 0;
145
- border-bottom-right-radius: 0;
146
- }
113
+ export const StyledOffCanvasPanel = styled.div `
114
+ position: fixed;
115
+ background-color: ${TMColors.default_background};
116
+ box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
117
+ transition: transform 0.3s ease, visibility 0.3s ease;
118
+ z-index: 1502;
119
+ display: flex;
120
+ flex-direction: column;
121
+ border-top-left-radius: 10px;
122
+ border-bottom-left-radius: 10px;
123
+
124
+ /* Default: Open from the right */
125
+ top: 0;
126
+ right: 0;
127
+ width: ${({ $width }) => $width ?? '550px'}; /* Use $width or default to 550px */
128
+ max-width: 100%;
129
+ height: 100%;
130
+ transform: ${({ $isOpen }) => ($isOpen ? 'translateX(0)' : 'translateX(100%)')};
131
+ visibility: ${({ $isOpen }) => ($isOpen ? 'visible' : 'hidden')};
132
+
133
+ /* Mobile: Open from the bottom */
134
+ @media (max-width: 768px) {
135
+ top: auto;
136
+ bottom: 0;
137
+ right: 0;
138
+ width: 100%;
139
+ height: ${({ $mobileHeight }) => $mobileHeight ?? '90%'}; /* Use $mobileHeight or default to 90% */
140
+ transform: ${({ $isOpen }) => ($isOpen ? 'translateY(0)' : 'translateY(100%)')};
141
+ visibility: ${({ $isOpen }) => ($isOpen ? 'visible' : 'hidden')};
142
+ border-top-left-radius: 10px;
143
+ border-top-right-radius: 10px;
144
+ border-bottom-left-radius: 0;
145
+ border-bottom-right-radius: 0;
146
+ }
147
147
  `;
148
- export const StyledOverlay = styled.div `
149
- position: fixed;
150
- top: 0;
151
- left: 0;
152
- width: 100%;
153
- height: 100%;
154
- background-color: rgba(0, 0, 0, 0.4);
155
- opacity: ${({ $isOpen }) => ($isOpen ? 1 : 0)};
156
- visibility: ${({ $isOpen }) => ($isOpen ? 'visible' : 'hidden')};
157
- transition: opacity 0.3s ease, visibility 0.3s ease;
158
- z-index: 1501;
148
+ export const StyledOverlay = styled.div `
149
+ position: fixed;
150
+ top: 0;
151
+ left: 0;
152
+ width: 100%;
153
+ height: 100%;
154
+ background-color: rgba(0, 0, 0, 0.4);
155
+ opacity: ${({ $isOpen }) => ($isOpen ? 1 : 0)};
156
+ visibility: ${({ $isOpen }) => ($isOpen ? 'visible' : 'hidden')};
157
+ transition: opacity 0.3s ease, visibility 0.3s ease;
158
+ z-index: 1501;
159
159
  `;
160
- export const StyledModalContainer = styled.div `
161
- position: absolute;
162
- width: 100%;
163
- height: calc(100%);//TODO: Centralizzare STATUSBAR_HEIGHT
164
- top: 0;
165
- left: 0;
166
- background-color: transparent;
167
- z-index: 100;//TODO: Devexpress checkbox DataGrid z-index: 2
160
+ export const StyledModalContainer = styled.div `
161
+ position: absolute;
162
+ width: 100%;
163
+ height: calc(100%);//TODO: Centralizzare STATUSBAR_HEIGHT
164
+ top: 0;
165
+ left: 0;
166
+ background-color: transparent;
167
+ z-index: 100;//TODO: Devexpress checkbox DataGrid z-index: 2
168
168
  `;
169
- export const StyledResultTypeContainer = styled.div `
170
- display: flex;
171
- align-items: center;
172
- justify-content: center;
173
- width: fit-content;
174
- gap: 5px;
175
- padding: 6px 3px;
176
- height: 100%;
177
- border-radius: 3px;
178
- color: white;
179
- font-weight: bold;
180
- cursor: pointer;
181
- background-color: ${props => props.$resultType === ResultTypes.ERROR ? TMColors.error : props.$resultType === ResultTypes.WARNING ? TMColors.warning : TMColors.success};
169
+ export const StyledResultTypeContainer = styled.div `
170
+ display: flex;
171
+ align-items: center;
172
+ justify-content: center;
173
+ width: fit-content;
174
+ gap: 5px;
175
+ padding: 6px 3px;
176
+ height: 100%;
177
+ border-radius: 3px;
178
+ color: white;
179
+ font-weight: bold;
180
+ cursor: pointer;
181
+ background-color: ${props => props.$resultType === ResultTypes.ERROR ? TMColors.error : props.$resultType === ResultTypes.WARNING ? TMColors.warning : TMColors.success};
182
182
  `;
183
- export const StyledTooltipSeparatorItem = styled.hr `
184
- width: 75%;
185
- margin-bottom: 3px;
183
+ export const StyledTooltipSeparatorItem = styled.hr `
184
+ width: 75%;
185
+ margin-bottom: 3px;
186
186
  `;
187
- export const StyledTooltipItem = styled.div `
188
- margin-right: 5px;
189
- margin-bottom: 3px;
190
- margin-top: ${props => props.$marginTop ?? '0px'};
191
- color: ${TMColors.text_normal};
192
- font-size: ${props => props.$fontSize ?? FontSize.defaultFontSize};
187
+ export const StyledTooltipItem = styled.div `
188
+ margin-right: 5px;
189
+ margin-bottom: 3px;
190
+ margin-top: ${props => props.$marginTop ?? '0px'};
191
+ color: ${TMColors.text_normal};
192
+ font-size: ${props => props.$fontSize ?? FontSize.defaultFontSize};
193
193
  `;
194
- export const StyledTooltipContainer = styled.div `
195
- display: flex;
196
- flex-direction: column;
197
- align-items: flex-start;
198
- z-index: 100; //TODO: Devexpress checkbox DataGrid z-index: 2
194
+ export const StyledTooltipContainer = styled.div `
195
+ display: flex;
196
+ flex-direction: column;
197
+ align-items: flex-start;
198
+ z-index: 100; //TODO: Devexpress checkbox DataGrid z-index: 2
199
199
  `;
200
- export const StyledDraggableDiv = styled.div `
201
- display: flex;
202
- cursor: move;
200
+ export const StyledDraggableDiv = styled.div `
201
+ display: flex;
202
+ cursor: move;
203
203
  `;
204
- export const StyledBadge = styled.div `
205
- display: inline-flex;
206
- align-items: center;
207
- justify-content: center;
208
- background-color: ${(props) => props.$backgroundColor};
209
- color: #fff;
210
- font-size: 10px;
211
- padding: 0 6px;
212
- border-radius: 999em;
213
- line-height: 16px;
214
- margin-left: 5px;
204
+ export const StyledBadge = styled.div `
205
+ display: inline-flex;
206
+ align-items: center;
207
+ justify-content: center;
208
+ background-color: ${(props) => props.$backgroundColor};
209
+ color: #fff;
210
+ font-size: 10px;
211
+ padding: 0 6px;
212
+ border-radius: 999em;
213
+ line-height: 16px;
214
+ margin-left: 5px;
215
215
  `;
216
- export const StyledDxGridGroupHeader = styled.div `
217
- display: flex;
218
- flex-direction: row;
219
- align-items: center;
220
- justify-content: flex-start;
221
- gap: 5px;
222
- height: 30px;
223
- font-weight: bold;
224
- /* background-image: linear-gradient(white, #E4E9F7); */
225
- background: ${(props) => props.$backgroundColor ? `linear-gradient(90deg, #f0f4fa, ${props.$backgroundColor}) ` : 'linear-gradient(90deg, #f0f4fa, #135596)'} ;
216
+ export const StyledDxGridGroupHeader = styled.div `
217
+ display: flex;
218
+ flex-direction: row;
219
+ align-items: center;
220
+ justify-content: flex-start;
221
+ gap: 5px;
222
+ height: 30px;
223
+ font-weight: bold;
224
+ /* background-image: linear-gradient(white, #E4E9F7); */
225
+ background: ${(props) => props.$backgroundColor ? `linear-gradient(90deg, #f0f4fa, ${props.$backgroundColor}) ` : 'linear-gradient(90deg, #f0f4fa, #135596)'} ;
226
226
  `;
227
- const StyledCellRenderObjectIcon = styled.div `
228
- display: flex;
229
- flex-direction: row;
230
- align-items: center;
231
- justify-content: center;
232
- overflow: visible;
227
+ const StyledCellRenderObjectIcon = styled.div `
228
+ display: flex;
229
+ flex-direction: row;
230
+ align-items: center;
231
+ justify-content: center;
232
+ overflow: visible;
233
233
  `;
234
234
  export const cellRenderObjectIcon = (icon) => (_jsxs(StyledCellRenderObjectIcon, { children: [" ", icon, " "] }));
235
- export const StyledChartOverlay = styled.div `
236
- top: 0;
237
- left: 0;
238
- right: 0;
239
- bottom: 0;
240
- opacity: .6;
241
- z-index: 999;
242
- display: flex;
243
- position: absolute;
244
- align-items: center;
245
- justify-content: center;
246
- background-color: ${(props) => props.$backgroundColor ?? 'black'};
235
+ export const StyledChartOverlay = styled.div `
236
+ top: 0;
237
+ left: 0;
238
+ right: 0;
239
+ bottom: 0;
240
+ opacity: .6;
241
+ z-index: 999;
242
+ display: flex;
243
+ position: absolute;
244
+ align-items: center;
245
+ justify-content: center;
246
+ background-color: ${(props) => props.$backgroundColor ?? 'black'};
247
247
  `;
248
- export const StyledBtnLoadChart = styled.button `
249
- display: flex;
250
- font-size: 18px;
251
- color: #383b3a;
252
- padding: 8px 15px;
253
- border-radius: 5px;
254
- align-items: center;
255
- background: #eeeeee;
256
- transition: all 300ms;
257
- border: 2px solid black;
258
- justify-content: center;
259
- box-shadow: 3px 5px #bbbbbb;
260
- &:hover {
261
- color: black;
262
- cursor: pointer;
263
- transform: translateY(1px);
264
- box-shadow: 1px 1px #bbbbbb;
265
- background-color: ${(props) => props.$backgroundColor ?? 'orange'};
266
- .iconrefresh {
267
- transition:.5s;
268
- transform: rotate(180deg);
269
- color: black;
270
- }
271
- }
272
- &:active {
273
- transform: translateY(3px);
274
- box-shadow: 0 0 1px #bbbbbb;
275
- }
248
+ export const StyledBtnLoadChart = styled.button `
249
+ display: flex;
250
+ font-size: 18px;
251
+ color: #383b3a;
252
+ padding: 8px 15px;
253
+ border-radius: 5px;
254
+ align-items: center;
255
+ background: #eeeeee;
256
+ transition: all 300ms;
257
+ border: 2px solid black;
258
+ justify-content: center;
259
+ box-shadow: 3px 5px #bbbbbb;
260
+ &:hover {
261
+ color: black;
262
+ cursor: pointer;
263
+ transform: translateY(1px);
264
+ box-shadow: 1px 1px #bbbbbb;
265
+ background-color: ${(props) => props.$backgroundColor ?? 'orange'};
266
+ .iconrefresh {
267
+ transition:.5s;
268
+ transform: rotate(180deg);
269
+ color: black;
270
+ }
271
+ }
272
+ &:active {
273
+ transform: translateY(3px);
274
+ box-shadow: 0 0 1px #bbbbbb;
275
+ }
276
276
  `;
277
- export const StyledFormButtonsContainer = styled.div `
278
- display: flex;
279
- justify-content: center;
280
- align-items: center;
281
- padding: 10px;
282
- position: relative;
283
- width: 100%;
284
- min-width: max-content;
285
- gap: 80px;
277
+ export const StyledFormButtonsContainer = styled.div `
278
+ display: flex;
279
+ justify-content: center;
280
+ align-items: center;
281
+ padding: 10px;
282
+ position: relative;
283
+ width: 100%;
284
+ min-width: max-content;
285
+ gap: 80px;
286
286
  `;
287
- export const StyledToolbarCardContainer = styled.div `
288
- background-color: #ffffff;
289
- width: 100%;
290
- height: 100%;
291
- display: flex;
292
- flex-direction: column;
293
- gap: 10px;
287
+ export const StyledToolbarCardContainer = styled.div `
288
+ background-color: #ffffff;
289
+ width: 100%;
290
+ height: 100%;
291
+ display: flex;
292
+ flex-direction: column;
293
+ gap: 10px;
294
294
  `;
295
- const spinAnimation = keyframes `
296
- 0% { transform: rotate(0deg); }
297
- 100% { transform: rotate(360deg); }
295
+ const spinAnimation = keyframes `
296
+ 0% { transform: rotate(0deg); }
297
+ 100% { transform: rotate(360deg); }
298
298
  `;
299
- export const StyledSpinner = styled.div `
300
- border: 4px solid #f3f3f3; /* Light grey */
301
- border-top: 4px solid #C2388B; /* Colore primario della toolbar */
302
- border-radius: 50%;
303
- width: 40px;
304
- height: 40px;
305
- animation: ${spinAnimation} 1s linear infinite;
299
+ export const StyledSpinner = styled.div `
300
+ border: 4px solid #f3f3f3; /* Light grey */
301
+ border-top: 4px solid #C2388B; /* Colore primario della toolbar */
302
+ border-radius: 50%;
303
+ width: 40px;
304
+ height: 40px;
305
+ animation: ${spinAnimation} 1s linear infinite;
306
306
  `;
307
- export const StyledLoadingContainer = styled.div `
308
- position: absolute;
309
- top: 50%;
310
- left: 50%;
311
- transform: translate(-50%, -50%);
312
- display: flex;
313
- flex-direction: column;
314
- align-items: center;
315
- gap: 15px;
316
- font-size: 1rem;
317
- color: #555;
307
+ export const StyledLoadingContainer = styled.div `
308
+ position: absolute;
309
+ top: 50%;
310
+ left: 50%;
311
+ transform: translate(-50%, -50%);
312
+ display: flex;
313
+ flex-direction: column;
314
+ align-items: center;
315
+ gap: 15px;
316
+ font-size: 1rem;
317
+ color: #555;
318
318
  `;
319
319
  //#region Animations
320
- const scaleAndColorChange = (scaleValue) => keyframes `
321
- 0% { transform: scale(1); color: white; }
322
- 50% { transform: scale(${scaleValue}); color: orange; }
323
- 100% { transform: scale(1); color: white; }
320
+ const scaleAndColorChange = (scaleValue) => keyframes `
321
+ 0% { transform: scale(1); color: white; }
322
+ 50% { transform: scale(${scaleValue}); color: orange; }
323
+ 100% { transform: scale(1); color: white; }
324
324
  `;
325
- const opacityChange = keyframes `
326
- from { opacity: 0; }
327
- to { opacity: 1; }
325
+ const opacityChange = keyframes `
326
+ from { opacity: 0; }
327
+ to { opacity: 1; }
328
328
  `;
329
- export const StyledAnimatedComponentScaleColor = styled.div `
330
- animation: ${props => scaleAndColorChange(props.$scale ?? 1.5)} 400ms ease-in-out ;
331
- animation-delay: ${props => props.$delay ?? '0'};
329
+ export const StyledAnimatedComponentScaleColor = styled.div `
330
+ animation: ${props => scaleAndColorChange(props.$scale ?? 1.5)} 400ms ease-in-out ;
331
+ animation-delay: ${props => props.$delay ?? '0'};
332
332
  `;
333
- export const StyledAnimatedComponentOpacity = styled.div `
334
- opacity: 0;
335
- animation: ${opacityChange} 400ms ease forwards normal ;
336
- animation-delay: ${props => props.$delay ?? '0'};
333
+ export const StyledAnimatedComponentOpacity = styled.div `
334
+ opacity: 0;
335
+ animation: ${opacityChange} 400ms ease forwards normal ;
336
+ animation-delay: ${props => props.$delay ?? '0'};
337
337
  `;