@topconsultnpm/sdkui-react 6.22.0-dev3.22 → 6.22.0-dev3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/NewComponents/ContextMenu/styles.d.ts +45 -43
- package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +67 -60
- package/lib/components/base/Styled.d.ts +93 -77
- package/lib/components/base/TMCounterBar.d.ts +2 -2
- package/lib/components/base/TMCounterContainer.d.ts +2 -1
- package/lib/components/base/TMCustomButton.d.ts +1 -1
- package/lib/components/base/TMDataGridExportForm.d.ts +2 -1
- package/lib/components/base/TMFileManager.d.ts +2 -1
- package/lib/components/base/TMFileManagerDataGridView.d.ts +2 -1
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +1 -1
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +1 -1
- package/lib/components/base/TMFileManagerUtils.d.ts +4 -6
- package/lib/components/base/TMLayout.d.ts +4 -4
- package/lib/components/base/TMList.d.ts +2 -1
- package/lib/components/base/TMListView.d.ts +1 -1
- package/lib/components/base/TMPanel.js +167 -167
- package/lib/components/base/TMSpinner.d.ts +2 -1
- package/lib/components/base/TMTab.d.ts +4 -3
- package/lib/components/base/TMTabControl.js +208 -208
- package/lib/components/base/TMTooltip.d.ts +1 -1
- package/lib/components/base/TMTreeView.d.ts +14 -8
- package/lib/components/base/TMUserAvatar.d.ts +2 -1
- package/lib/components/base/TMVilViewer.d.ts +2 -1
- package/lib/components/base/TMWaitPanel.d.ts +3 -2
- package/lib/components/choosers/TMDynDataListItemChooser.d.ts +1 -1
- package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +2 -1
- package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +2 -1
- package/lib/components/choosers/TMQuickSearchInfo.d.ts +2 -1
- package/lib/components/choosers/TMRelationChooser.d.ts +3 -3
- package/lib/components/choosers/TMUserChooser.d.ts +2 -2
- package/lib/components/editors/TMEditorStyled.d.ts +20 -42
- package/lib/components/editors/TMFormulaEditor.d.ts +1 -1
- package/lib/components/editors/TMHtmlContentDisplay.d.ts +2 -1
- package/lib/components/editors/TMHtmlEditor.d.ts +2 -1
- package/lib/components/editors/TMTreeDropDown.d.ts +1 -1
- package/lib/components/features/assistant/TMToppyDraggableHelpCenter.d.ts +1 -1
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +2 -1
- package/lib/components/features/documents/TMDcmtFormActionButtons.d.ts +1 -1
- package/lib/components/features/documents/TMDcmtIcon.d.ts +2 -1
- package/lib/components/features/documents/TMDcmtPreview.d.ts +8 -6
- package/lib/components/features/documents/TMDcmtTasks.d.ts +2 -1
- package/lib/components/features/documents/TMDragDropOverlay.d.ts +1 -1
- package/lib/components/features/documents/TMFileUploader.js +21 -21
- package/lib/components/features/documents/TMMasterInfoFields.d.ts +2 -1
- package/lib/components/features/documents/TMMasterInfoFields.js +3 -2
- package/lib/components/features/documents/TMMergeToPdfForm.d.ts +2 -1
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.d.ts +2 -1
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsUtils.d.ts +5 -5
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsUtils.js +3 -3
- package/lib/components/features/search/TMDcmtCheckoutInfoForm.d.ts +2 -1
- package/lib/components/features/search/TMMetadataOutputForm.d.ts +2 -1
- package/lib/components/features/search/TMMetadataSorterForm.d.ts +2 -1
- package/lib/components/features/search/TMSavedQuerySelector.d.ts +2 -2
- package/lib/components/features/search/TMSearch.d.ts +2 -1
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +9 -3
- package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +1 -1
- package/lib/components/features/search/TMSignatureInfoContent.d.ts +2 -1
- package/lib/components/features/search/TMViewHistoryDcmt.d.ts +2 -1
- package/lib/components/features/tasks/TMTaskForm.d.ts +1 -1
- package/lib/components/features/tasks/TMTaskFormUtils.d.ts +10 -10
- package/lib/components/features/tasks/TMTasksAgenda.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksCalendar.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksHeader.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksPanelContent.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksUtilsView.d.ts +5 -5
- package/lib/components/features/tasks/TMTasksView.d.ts +1 -1
- package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +3 -2
- package/lib/components/features/workflow/TMWorkflowPopup.d.ts +8 -7
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +3 -1
- package/lib/components/forms/Login/ChangePasswordInputs.d.ts +3 -1
- package/lib/components/forms/Login/Chooser.d.ts +2 -2
- package/lib/components/forms/TMChooserForm.d.ts +2 -1
- package/lib/components/forms/TMSaveForm.d.ts +4 -4
- package/lib/components/grids/TMBlogAttachments.d.ts +2 -1
- package/lib/components/grids/TMBlogHeader.d.ts +1 -1
- package/lib/components/grids/TMBlogsPost.d.ts +1 -1
- package/lib/components/grids/TMBlogsPostUtils.d.ts +9 -9
- package/lib/components/grids/TMValidationItemsList.d.ts +2 -1
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +2 -1
- package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +2 -2
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +5 -6
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +2 -2
- package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +2 -2
- package/lib/components/pages/TMPage.d.ts +1 -1
- package/lib/components/query/TMQueryEditor.d.ts +17 -10
- package/lib/components/query/TMQueryEditor.js +2 -1
- package/lib/components/settings/SettingsAppearance.d.ts +2 -1
- package/lib/components/sidebar/TMAboutApp.d.ts +2 -1
- package/lib/components/sidebar/TMCommandsPanel.d.ts +4 -4
- package/lib/components/sidebar/TMHeader.d.ts +3 -3
- package/lib/components/viewers/TMDataListItemViewer.d.ts +3 -2
- package/lib/components/viewers/TMDataUserIdItemViewer.d.ts +3 -2
- package/lib/components/viewers/TMMidViewer.d.ts +2 -2
- package/lib/components/viewers/TMTidViewer.d.ts +2 -2
- package/lib/helper/TMAppUpdatedModal.d.ts +2 -1
- package/lib/helper/TMAppUpdatedModal.js +93 -93
- package/lib/helper/TMCommandsContextMenu.d.ts +1 -1
- package/lib/helper/TMIcons.d.ts +280 -280
- package/lib/helper/TMPdfViewer.d.ts +2 -1
- package/lib/helper/TMToppyMessage.d.ts +2 -2
- package/lib/helper/TMUtils.d.ts +10 -4
- package/lib/helper/dcmtsHelper.d.ts +2 -0
- package/lib/helper/dcmtsHelper.js +3 -1
- package/lib/helper/helpers.d.ts +1 -1
- package/lib/hooks/useInputDialog.d.ts +2 -1
- package/lib/hooks/useMultiMasterDetailDcmts.js +3 -2
- package/lib/services/platform_services.d.ts +3 -2
- package/package.json +2 -2
|
@@ -6,97 +6,97 @@ import TMButton from './TMButton';
|
|
|
6
6
|
import { LoadIndicator } from 'devextreme-react/load-indicator';
|
|
7
7
|
import { TMExceptionBoxManager } from './TMPopUp';
|
|
8
8
|
import { Gutters, TMColors } from '../../utils/theme';
|
|
9
|
-
const StyledBackButton = styled.button `
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
gap: 4px;
|
|
14
|
-
padding: 4px 10px;
|
|
15
|
-
border: 1px solid ${({ $isActive }) => $isActive ? 'rgba(37, 89, 165, 0.3)' : 'rgba(255, 255, 255, 0.4)'};
|
|
16
|
-
border-radius: 6px;
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
font-weight: 500;
|
|
19
|
-
font-size: 0.85rem;
|
|
20
|
-
flex-shrink: 0;
|
|
21
|
-
transition: all 0.15s ease;
|
|
22
|
-
background-color: ${({ $isActive }) => $isActive ? '#FFFFFF' : '#2559A5'};
|
|
23
|
-
box-shadow: none;
|
|
24
|
-
|
|
25
|
-
&&, && * {
|
|
26
|
-
color: ${({ $isActive }) => $isActive ? '#2559A5' : '#FFFFFF'} !important;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
svg {
|
|
30
|
-
font-size: 14px;
|
|
31
|
-
}
|
|
9
|
+
const StyledBackButton = styled.button `
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
gap: 4px;
|
|
14
|
+
padding: 4px 10px;
|
|
15
|
+
border: 1px solid ${({ $isActive }) => $isActive ? 'rgba(37, 89, 165, 0.3)' : 'rgba(255, 255, 255, 0.4)'};
|
|
16
|
+
border-radius: 6px;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
font-size: 0.85rem;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
transition: all 0.15s ease;
|
|
22
|
+
background-color: ${({ $isActive }) => $isActive ? '#FFFFFF' : '#2559A5'};
|
|
23
|
+
box-shadow: none;
|
|
24
|
+
|
|
25
|
+
&&, && * {
|
|
26
|
+
color: ${({ $isActive }) => $isActive ? '#2559A5' : '#FFFFFF'} !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
svg {
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
}
|
|
32
32
|
`;
|
|
33
33
|
import { AppModules, SDK_Globals } from '@topconsultnpm/sdk-ts';
|
|
34
34
|
import { DeviceType, useDeviceType } from './TMDeviceProvider';
|
|
35
|
-
const StyledPanelContainer = styled.div `
|
|
36
|
-
width: 100%;
|
|
37
|
-
height: 100%;
|
|
38
|
-
font-size: 1rem;
|
|
39
|
-
box-shadow: 3px 3px 5px #D3D3D3BF;
|
|
40
|
-
border-radius: 10px;
|
|
41
|
-
opacity: 1;
|
|
42
|
-
background: #FFFFFF;
|
|
43
|
-
min-height: 0;
|
|
44
|
-
overflow: hidden;
|
|
45
|
-
position: ${({ $isMaximized }) => $isMaximized ? 'fixed' : 'relative'};
|
|
46
|
-
top: ${({ $isMaximized }) => $isMaximized ? '50px' : 'auto'};
|
|
47
|
-
left: ${({ $isMaximized }) => $isMaximized ? '50px' : 'auto'};
|
|
48
|
-
width: ${({ $isMaximized }) => $isMaximized ? `calc(100vw - 50px - (${Gutters.getGutters()}px * 2))` : '100%'};
|
|
49
|
-
height: ${({ $isMaximized }) => $isMaximized ? `calc(100vh - 50px - (${Gutters.getGutters()}px * 2))` : '100%'};
|
|
50
|
-
z-index: ${({ $isMaximized }) => $isMaximized ? 2000 : 'auto'};
|
|
51
|
-
margin: ${({ $isMaximized }) => $isMaximized ? `${Gutters.getGutters()}px` : '0'};
|
|
52
|
-
outline: none;
|
|
53
|
-
/* transition: all 0.2s; */
|
|
35
|
+
const StyledPanelContainer = styled.div `
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
font-size: 1rem;
|
|
39
|
+
box-shadow: 3px 3px 5px #D3D3D3BF;
|
|
40
|
+
border-radius: 10px;
|
|
41
|
+
opacity: 1;
|
|
42
|
+
background: #FFFFFF;
|
|
43
|
+
min-height: 0;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
position: ${({ $isMaximized }) => $isMaximized ? 'fixed' : 'relative'};
|
|
46
|
+
top: ${({ $isMaximized }) => $isMaximized ? '50px' : 'auto'};
|
|
47
|
+
left: ${({ $isMaximized }) => $isMaximized ? '50px' : 'auto'};
|
|
48
|
+
width: ${({ $isMaximized }) => $isMaximized ? `calc(100vw - 50px - (${Gutters.getGutters()}px * 2))` : '100%'};
|
|
49
|
+
height: ${({ $isMaximized }) => $isMaximized ? `calc(100vh - 50px - (${Gutters.getGutters()}px * 2))` : '100%'};
|
|
50
|
+
z-index: ${({ $isMaximized }) => $isMaximized ? 2000 : 'auto'};
|
|
51
|
+
margin: ${({ $isMaximized }) => $isMaximized ? `${Gutters.getGutters()}px` : '0'};
|
|
52
|
+
outline: none;
|
|
53
|
+
/* transition: all 0.2s; */
|
|
54
54
|
`;
|
|
55
|
-
const StyledPanelHeader = styled.div `
|
|
56
|
-
width:100% ;
|
|
57
|
-
display: flex;
|
|
58
|
-
flex-direction: row;
|
|
59
|
-
align-items: center;
|
|
60
|
-
justify-content: flex-start;
|
|
61
|
-
padding: 4px 10px;
|
|
55
|
+
const StyledPanelHeader = styled.div `
|
|
56
|
+
width:100% ;
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: flex-start;
|
|
61
|
+
padding: 4px 10px;
|
|
62
62
|
background: ${({ $isActive, $backgroundColor, $activeGradient }) => $isActive
|
|
63
63
|
? ($activeGradient ??
|
|
64
64
|
'linear-gradient(270deg, #46B5A2 16%, #3BAABC 34%, #3BAABC 34%, #3681AD 54%, #3368A5 72%, #2F549D 88%, #304F99 100%)')
|
|
65
|
-
: ($backgroundColor ?? '#F4F4F4')};
|
|
66
|
-
box-shadow: 3px 3px 5px #D3D3D3BF;
|
|
67
|
-
color: ${({ $isActive, $color }) => $isActive ? '#FFFFFF' : ($color ?? '#2559A5')};
|
|
68
|
-
border-top-right-radius: 10px;
|
|
69
|
-
border-top-left-radius: 10px;
|
|
70
|
-
height: 40px;
|
|
71
|
-
font-weight: 600;
|
|
72
|
-
outline: none;
|
|
73
|
-
&:focus {
|
|
74
|
-
outline: none;
|
|
75
|
-
}
|
|
76
|
-
// Ensure all children inherit the header color
|
|
77
|
-
&,
|
|
78
|
-
* {
|
|
79
|
-
color: ${({ $isActive, $color }) => $isActive ? '#FFFFFF' : ($color ?? '#2559A5')} !important;
|
|
80
|
-
}
|
|
65
|
+
: ($backgroundColor ?? '#F4F4F4')};
|
|
66
|
+
box-shadow: 3px 3px 5px #D3D3D3BF;
|
|
67
|
+
color: ${({ $isActive, $color }) => $isActive ? '#FFFFFF' : ($color ?? '#2559A5')};
|
|
68
|
+
border-top-right-radius: 10px;
|
|
69
|
+
border-top-left-radius: 10px;
|
|
70
|
+
height: 40px;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
outline: none;
|
|
73
|
+
&:focus {
|
|
74
|
+
outline: none;
|
|
75
|
+
}
|
|
76
|
+
// Ensure all children inherit the header color
|
|
77
|
+
&,
|
|
78
|
+
* {
|
|
79
|
+
color: ${({ $isActive, $color }) => $isActive ? '#FFFFFF' : ($color ?? '#2559A5')} !important;
|
|
80
|
+
}
|
|
81
81
|
`;
|
|
82
|
-
const StyledPanelContent = styled.div `
|
|
83
|
-
width: 100%;
|
|
84
|
-
height: ${props => props.$height};
|
|
85
|
-
min-height: 0;
|
|
86
|
-
overflow: hidden;
|
|
87
|
-
border-bottom-right-radius: 10px;
|
|
88
|
-
border-bottom-left-radius: 10px;
|
|
89
|
-
padding: ${props => props.$padding};
|
|
90
|
-
display: flex;
|
|
91
|
-
justify-content: space-between;
|
|
92
|
-
position: relative;
|
|
93
|
-
user-select: none;
|
|
94
|
-
-webkit-touch-callout: none;
|
|
95
|
-
-webkit-user-select: none;
|
|
96
|
-
outline: none;
|
|
97
|
-
&:focus {
|
|
98
|
-
outline: none;
|
|
99
|
-
}
|
|
82
|
+
const StyledPanelContent = styled.div `
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: ${props => props.$height};
|
|
85
|
+
min-height: 0;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
border-bottom-right-radius: 10px;
|
|
88
|
+
border-bottom-left-radius: 10px;
|
|
89
|
+
padding: ${props => props.$padding};
|
|
90
|
+
display: flex;
|
|
91
|
+
justify-content: space-between;
|
|
92
|
+
position: relative;
|
|
93
|
+
user-select: none;
|
|
94
|
+
-webkit-touch-callout: none;
|
|
95
|
+
-webkit-user-select: none;
|
|
96
|
+
outline: none;
|
|
97
|
+
&:focus {
|
|
98
|
+
outline: none;
|
|
99
|
+
}
|
|
100
100
|
`;
|
|
101
101
|
// Allineata al TABLET_BREAKPOINT (768) di TMDeviceProvider
|
|
102
102
|
const MOBILE_MEDIA_QUERY = '(max-width: 767.98px)';
|
|
@@ -105,102 +105,102 @@ const MOBILE_MEDIA_QUERY = '(max-width: 767.98px)';
|
|
|
105
105
|
// la track (larga quanto il viewport) va a +100% della PROPRIA larghezza, il testo a -100%
|
|
106
106
|
// della SUA. Le due animazioni hanno stessa durata ed easing, quindi lo scostamento netto
|
|
107
107
|
// in ogni istante è esattamente e(t) * (viewport - testo).
|
|
108
|
-
const panelTitleTrackMarquee = keyframes `
|
|
109
|
-
0%, 15% { transform: translateX(0); }
|
|
110
|
-
45%, 55% { transform: translateX(100%); }
|
|
111
|
-
85%, 100% { transform: translateX(0); }
|
|
108
|
+
const panelTitleTrackMarquee = keyframes `
|
|
109
|
+
0%, 15% { transform: translateX(0); }
|
|
110
|
+
45%, 55% { transform: translateX(100%); }
|
|
111
|
+
85%, 100% { transform: translateX(0); }
|
|
112
112
|
`;
|
|
113
|
-
const panelTitleTextMarquee = keyframes `
|
|
114
|
-
0%, 15% { transform: translateX(0); }
|
|
115
|
-
45%, 55% { transform: translateX(-100%); }
|
|
116
|
-
85%, 100% { transform: translateX(0); }
|
|
113
|
+
const panelTitleTextMarquee = keyframes `
|
|
114
|
+
0%, 15% { transform: translateX(0); }
|
|
115
|
+
45%, 55% { transform: translateX(-100%); }
|
|
116
|
+
85%, 100% { transform: translateX(0); }
|
|
117
117
|
`;
|
|
118
118
|
// Ritaglia il testo in eccesso: è l'unico box con overflow hidden, la track ci scorre dentro
|
|
119
|
-
const StyledPanelTitleViewport = styled.div `
|
|
120
|
-
flex: 1;
|
|
121
|
-
display: flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
justify-content: flex-start;
|
|
124
|
-
min-width: 0;
|
|
125
|
-
overflow: hidden;
|
|
126
|
-
padding: 0 8px;
|
|
119
|
+
const StyledPanelTitleViewport = styled.div `
|
|
120
|
+
flex: 1;
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
justify-content: flex-start;
|
|
124
|
+
min-width: 0;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
padding: 0 8px;
|
|
127
127
|
`;
|
|
128
128
|
// Larga quanto il viewport: è il metro con cui il -100% del testo viene compensato.
|
|
129
|
-
const StyledPanelTitleTrack = styled.div `
|
|
130
|
-
flex: 1;
|
|
131
|
-
min-width: 0;
|
|
132
|
-
display: flex;
|
|
133
|
-
align-items: center;
|
|
134
|
-
|
|
135
|
-
${({ $marquee }) => $marquee && css `
|
|
136
|
-
@media ${MOBILE_MEDIA_QUERY} {
|
|
137
|
-
animation: ${panelTitleTrackMarquee} 10s ease-in-out infinite;
|
|
138
|
-
|
|
139
|
-
@media (prefers-reduced-motion: reduce) {
|
|
140
|
-
animation: none;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
`}
|
|
129
|
+
const StyledPanelTitleTrack = styled.div `
|
|
130
|
+
flex: 1;
|
|
131
|
+
min-width: 0;
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
|
|
135
|
+
${({ $marquee }) => $marquee && css `
|
|
136
|
+
@media ${MOBILE_MEDIA_QUERY} {
|
|
137
|
+
animation: ${panelTitleTrackMarquee} 10s ease-in-out infinite;
|
|
138
|
+
|
|
139
|
+
@media (prefers-reduced-motion: reduce) {
|
|
140
|
+
animation: none;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
`}
|
|
144
144
|
`;
|
|
145
145
|
// Senza $marquee resta il troncamento con i puntini di sempre
|
|
146
|
-
const StyledPanelTitle = styled.div `
|
|
147
|
-
margin: 0;
|
|
148
|
-
white-space: nowrap;
|
|
149
|
-
overflow: hidden;
|
|
150
|
-
text-overflow: ellipsis;
|
|
151
|
-
|
|
152
|
-
${({ $marquee }) => $marquee && css `
|
|
153
|
-
@media ${MOBILE_MEDIA_QUERY} {
|
|
154
|
-
flex: 0 0 auto;
|
|
155
|
-
width: max-content;
|
|
156
|
-
min-width: 100%;
|
|
157
|
-
max-width: none;
|
|
158
|
-
overflow: visible;
|
|
159
|
-
text-overflow: clip;
|
|
160
|
-
animation: ${panelTitleTextMarquee} 10s ease-in-out infinite;
|
|
161
|
-
|
|
162
|
-
@media (prefers-reduced-motion: reduce) {
|
|
163
|
-
animation: none;
|
|
164
|
-
width: auto;
|
|
165
|
-
min-width: 0;
|
|
166
|
-
overflow: hidden;
|
|
167
|
-
text-overflow: ellipsis;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
`}
|
|
146
|
+
const StyledPanelTitle = styled.div `
|
|
147
|
+
margin: 0;
|
|
148
|
+
white-space: nowrap;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
text-overflow: ellipsis;
|
|
151
|
+
|
|
152
|
+
${({ $marquee }) => $marquee && css `
|
|
153
|
+
@media ${MOBILE_MEDIA_QUERY} {
|
|
154
|
+
flex: 0 0 auto;
|
|
155
|
+
width: max-content;
|
|
156
|
+
min-width: 100%;
|
|
157
|
+
max-width: none;
|
|
158
|
+
overflow: visible;
|
|
159
|
+
text-overflow: clip;
|
|
160
|
+
animation: ${panelTitleTextMarquee} 10s ease-in-out infinite;
|
|
161
|
+
|
|
162
|
+
@media (prefers-reduced-motion: reduce) {
|
|
163
|
+
animation: none;
|
|
164
|
+
width: auto;
|
|
165
|
+
min-width: 0;
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
text-overflow: ellipsis;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
`}
|
|
171
171
|
`;
|
|
172
|
-
const refreshSpin = keyframes `
|
|
173
|
-
from { transform: rotate(0deg); }
|
|
174
|
-
to { transform: rotate(360deg); }
|
|
172
|
+
const refreshSpin = keyframes `
|
|
173
|
+
from { transform: rotate(0deg); }
|
|
174
|
+
to { transform: rotate(360deg); }
|
|
175
175
|
`;
|
|
176
176
|
// Fa girare l'icona per tutta la durata del ricaricamento
|
|
177
|
-
const StyledRefreshIcon = styled.span `
|
|
178
|
-
display: flex;
|
|
179
|
-
align-items: center;
|
|
180
|
-
justify-content: center;
|
|
181
|
-
|
|
182
|
-
${({ $isSpinning }) => $isSpinning && css `
|
|
183
|
-
animation: ${refreshSpin} 1s linear infinite;
|
|
184
|
-
|
|
185
|
-
@media (prefers-reduced-motion: reduce) {
|
|
186
|
-
animation: none;
|
|
187
|
-
}
|
|
188
|
-
`}
|
|
177
|
+
const StyledRefreshIcon = styled.span `
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
justify-content: center;
|
|
181
|
+
|
|
182
|
+
${({ $isSpinning }) => $isSpinning && css `
|
|
183
|
+
animation: ${refreshSpin} 1s linear infinite;
|
|
184
|
+
|
|
185
|
+
@media (prefers-reduced-motion: reduce) {
|
|
186
|
+
animation: none;
|
|
187
|
+
}
|
|
188
|
+
`}
|
|
189
189
|
`;
|
|
190
190
|
// Copre il solo contenuto del pannello (StyledPanelContent è position: relative con overflow hidden)
|
|
191
|
-
const StyledPanelLoaderOverlay = styled.div `
|
|
192
|
-
position: absolute;
|
|
193
|
-
inset: 0;
|
|
194
|
-
z-index: 10;
|
|
195
|
-
display: flex;
|
|
196
|
-
flex-direction: column;
|
|
197
|
-
align-items: center;
|
|
198
|
-
justify-content: center;
|
|
199
|
-
gap: 10px;
|
|
200
|
-
background: rgba(255, 255, 255, 0.65);
|
|
201
|
-
border-bottom-right-radius: 10px;
|
|
202
|
-
border-bottom-left-radius: 10px;
|
|
203
|
-
color: ${TMColors.primaryColor};
|
|
191
|
+
const StyledPanelLoaderOverlay = styled.div `
|
|
192
|
+
position: absolute;
|
|
193
|
+
inset: 0;
|
|
194
|
+
z-index: 10;
|
|
195
|
+
display: flex;
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
align-items: center;
|
|
198
|
+
justify-content: center;
|
|
199
|
+
gap: 10px;
|
|
200
|
+
background: rgba(255, 255, 255, 0.65);
|
|
201
|
+
border-bottom-right-radius: 10px;
|
|
202
|
+
border-bottom-left-radius: 10px;
|
|
203
|
+
color: ${TMColors.primaryColor};
|
|
204
204
|
`;
|
|
205
205
|
/**
|
|
206
206
|
* TMPanel - Pannello con supporto Controlled/Uncontrolled
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface ITMSpinner {
|
|
2
3
|
backgroundColor?: string;
|
|
3
4
|
fontSize?: string;
|
|
@@ -7,7 +8,7 @@ interface ITMSpinner {
|
|
|
7
8
|
onCancel?: () => void;
|
|
8
9
|
cancelText?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const Spinner: ({ backgroundColor, description, fontSize, width, flat, onCancel, cancelText }: ITMSpinner) =>
|
|
11
|
+
declare const Spinner: ({ backgroundColor, description, fontSize, width, flat, onCancel, cancelText }: ITMSpinner) => React.JSX.Element;
|
|
11
12
|
declare class TMSpinner {
|
|
12
13
|
static show({ description, backgroundColor, fontSize, flat, onCancel, cancelText }?: ITMSpinner): void;
|
|
13
14
|
static hide(): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ValidationItem } from '@topconsultnpm/sdk-ts';
|
|
2
3
|
export interface ITMTabProps {
|
|
3
4
|
title: string;
|
|
@@ -7,14 +8,14 @@ export declare const TMTab: ({ label, propsToBeValidated, children }: {
|
|
|
7
8
|
label?: string;
|
|
8
9
|
propsToBeValidated?: string[] | undefined;
|
|
9
10
|
children?: any;
|
|
10
|
-
}) =>
|
|
11
|
+
}) => React.JSX.Element;
|
|
11
12
|
export declare const TMTabItemBadge: ({ vil }: {
|
|
12
13
|
vil: ValidationItem[];
|
|
13
|
-
}) =>
|
|
14
|
+
}) => React.JSX.Element;
|
|
14
15
|
declare const TMTabGroup: ({ children, fontSize, validationItems, onTabIndexChanged }: {
|
|
15
16
|
onTabIndexChanged?: (e: number) => void;
|
|
16
17
|
children: any;
|
|
17
18
|
fontSize?: string;
|
|
18
19
|
validationItems?: ValidationItem[];
|
|
19
|
-
}) =>
|
|
20
|
+
}) => React.JSX.Element;
|
|
20
21
|
export default TMTabGroup;
|