@topconsultnpm/sdkui-react 6.19.0-dev2.2 → 6.19.0-test.1
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/TMAreaManager.js +23 -23
- package/lib/components/base/TMButton.js +130 -130
- 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.js +7 -7
- package/lib/components/base/TMDropDownMenu.js +24 -24
- 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.js +31 -31
- package/lib/components/base/TMPanel.js +57 -57
- package/lib/components/base/TMPopUp.js +114 -114
- 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/TMTreeView.js +16 -16
- package/lib/components/base/TMUserAvatar.js +7 -7
- package/lib/components/base/TMWaitPanel.js +22 -22
- package/lib/components/choosers/TMCultureIDPicker.js +35 -35
- package/lib/components/choosers/TMDataListItemPicker.js +54 -54
- package/lib/components/editors/TMCheckBox.js +24 -24
- 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 +17 -17
- package/lib/components/editors/TMRadioButton.js +39 -39
- package/lib/components/editors/TMSummary.js +39 -39
- package/lib/components/editors/TMTextArea.js +12 -12
- package/lib/components/editors/TMTextBox.js +19 -19
- package/lib/components/features/assistant/ToppyHelpCenter.js +114 -114
- package/lib/components/features/blog/TMBlogCommentForm.js +3 -3
- package/lib/components/features/documents/TMDcmtIcon.js +8 -8
- package/lib/components/features/documents/TMDcmtPreview.js +30 -30
- package/lib/components/features/documents/TMFileUploader.js +21 -21
- package/lib/components/features/search/TMSavedQuerySelector.js +51 -51
- package/lib/components/features/search/TMSearchQueryEditor.js +13 -13
- package/lib/components/features/search/TMSearchQueryPanel.js +30 -30
- package/lib/components/features/search/TMSearchResult.js +3 -3
- package/lib/components/features/search/TMTreeSelector.js +66 -66
- package/lib/components/features/tasks/TMTaskForm.js +31 -31
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +9 -9
- package/lib/components/features/workflow/TMWorkflowPopup.js +41 -41
- 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 +29 -29
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +12 -12
- package/lib/components/features/workflow/diagram/RecipientList.js +38 -38
- package/lib/components/features/workflow/diagram/WFDiagram.js +278 -278
- 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/grids/TMBlogsPostUtils.js +5 -5
- package/lib/components/grids/TMRecentsManager.js +50 -50
- package/lib/components/grids/TMValidationItemsList.js +48 -48
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +12 -12
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +34 -34
- package/lib/components/query/TMQueryEditor.js +17 -17
- package/lib/components/query/TMQuerySummary.js +12 -12
- package/lib/components/settings/SettingsAppearance.js +0 -8
- 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/wizard/TMStepIndicator.js +102 -102
- package/lib/components/wizard/TMWizard.js +29 -29
- package/lib/helper/SDKUI_Globals.d.ts +0 -2
- package/lib/helper/SDKUI_Globals.js +1 -9
- package/lib/helper/TMIcons.js +1 -1
- package/lib/helper/TMToppyMessage.js +30 -30
- package/lib/helper/TMUtils.js +37 -37
- package/package.json +54 -54
|
@@ -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
|
`;
|