@topconsultnpm/sdkui-react-beta 6.16.48 → 6.16.50
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.
|
@@ -192,15 +192,15 @@ const TMMessageBox = ({ resizable = false, onButtonClick, title = 'TopMedia', me
|
|
|
192
192
|
}, [buttons]);
|
|
193
193
|
const MessageToolbar = () => {
|
|
194
194
|
return (_jsxs(StyledMessageToolbar, { children: [(btns.includes(ButtonNames.OK) || btns.includes(ButtonNames.YES)) &&
|
|
195
|
-
_jsx(ResponsiveButton, { fontSize: 'clamp(
|
|
195
|
+
_jsx(ResponsiveButton, { fontSize: 'clamp(12px, 2vw, 1.1rem)', color: 'primaryOutline', btnStyle: 'text', onClick: () => {
|
|
196
196
|
onButtonClick && btns.includes(ButtonNames.YES) ? onButtonClick(ButtonNames.YES) : onButtonClick && onButtonClick(ButtonNames.OK);
|
|
197
197
|
setIsVisible(false);
|
|
198
198
|
}, caption: btns.includes(ButtonNames.YES) ? SDKUI_Localizator.Yes : 'OK', showTooltip: false }), btns.includes(ButtonNames.NO) &&
|
|
199
|
-
_jsx(ResponsiveButton, { fontSize: 'clamp(
|
|
199
|
+
_jsx(ResponsiveButton, { fontSize: 'clamp(12px, 2vw, 1.1rem)', btnStyle: 'text', onClick: () => {
|
|
200
200
|
onButtonClick && onButtonClick(ButtonNames.NO);
|
|
201
201
|
setIsVisible(false);
|
|
202
202
|
}, caption: SDKUI_Localizator.No, showTooltip: false, color: 'error' }), btns.includes(ButtonNames.CANCEL) &&
|
|
203
|
-
_jsx(ResponsiveButton, { fontSize: 'clamp(
|
|
203
|
+
_jsx(ResponsiveButton, { fontSize: 'clamp(12px, 2vw, 1.1rem)', btnStyle: 'text', onClick: () => {
|
|
204
204
|
onButtonClick && onButtonClick(ButtonNames.CANCEL);
|
|
205
205
|
setIsVisible(false);
|
|
206
206
|
}, caption: SDKUI_Localizator.Cancel, showTooltip: false, color: 'error' })] }));
|
|
@@ -238,7 +238,7 @@ const TMHeader = ({ customButtons = _jsx(_Fragment, {}), onMenusOpen, showSettin
|
|
|
238
238
|
;
|
|
239
239
|
}, [SDK_Globals.appModule]);
|
|
240
240
|
const isOfficeConnector = useMemo(() => {
|
|
241
|
-
return SDK_Globals.appModule === AppModules.WORD_CONNECTOR || SDK_Globals.appModule === AppModules.EXCEL_CONNECTOR || SDK_Globals.appModule === AppModules.POWERPOINT_CONNECTOR;
|
|
241
|
+
return SDK_Globals.appModule === AppModules.WORD_CONNECTOR || SDK_Globals.appModule === AppModules.EXCEL_CONNECTOR || SDK_Globals.appModule === AppModules.POWERPOINT_CONNECTOR || SDK_Globals.appModule === AppModules.OUTLOOK_CONNECTOR;
|
|
242
242
|
}, [SDK_Globals.appModule]);
|
|
243
243
|
return (_jsxs(StyledHeaderContainer, { "$appName": SDK_Globals.appModule, children: [(isAdministrativeLevel && !isOfficeConnector) &&
|
|
244
244
|
_jsx(TMResizableMenu, { ref: appMenuRef, isVisible: showAppMenu, top: 58, left: 10, resizable: false, maxWidth: 215, minWidth: 215, maxHeight: 180, minHeight: 180, onClose: () => { }, children: _jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '10px' }, children: [_jsx("h5", { style: { color: TMColors.primary }, children: "Accessi ad altre applicazioni " }), _jsx("hr", {}), _jsxs("div", { style: { display: 'flex', gap: '10px', alignItems: 'center', width: '100%' }, children: [_jsxs(AppMenuButton, { onClick: () => openAppsHandler(appModuleHandler.app_1, tmSession, appRoutes), "$bgColor": '#482234', children: [_jsx("img", { src: six, alt: appModuleHandler.app_1, width: 30, height: 30 }), " ", appModuleHandler.app_1.toUpperCase()] }), _jsxs(AppMenuButton, { onClick: () => openAppsHandler(appModuleHandler.app_2, tmSession, appRoutes), "$bgColor": '#1d6f42', children: [_jsx("img", { src: six, alt: appModuleHandler.app_2, width: 30, height: 30 }), " ", appModuleHandler.app_2.toUpperCase()] })] })] }) }), _jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', width: '100%', gap: isMobile ? 5 : 15 }, children: [_jsxs("div", { style: { height: '50px', display: 'flex', alignItems: 'center', gap: 20, justifyContent: 'center' }, children: [_jsx(StyledLogo, { ref: logoRef, style: { cursor: (isAdministrativeLevel && !isOfficeConnector) ? 'pointer' : 'default' }, onMouseEnter: () => {
|