@topconsultnpm/sdkui-react-beta 6.13.36 → 6.13.37

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.
@@ -210,7 +210,7 @@ const TMFileManager = (props) => {
210
210
  };
211
211
  // Main render of the file manager component with a split layout
212
212
  return _jsxs("div", { style: { height: "100%", width: "100%" }, children: [!isMobile &&
213
- _jsx(TMPanel, { title: SDKUI_Localizator.Drafts, totalItems: dcmtsFound ?? 0, showHeader: showPanel, onClose: onClosePanel, onMaximize: onMaximizePanel, toolbar: _jsxs(_Fragment, { children: [_jsx(IconMenuVertical, { id: "TMPanel-Draft-Commands-Header", color: 'white', cursor: 'pointer' }), _jsx(ContextMenu, { showEvent: 'click', dataSource: [
213
+ _jsx(TMPanel, { title: SDKUI_Localizator.Drafts, totalItems: dcmtsFound ?? 0, showHeader: showPanel, onClose: onClosePanel, onMaximize: onMaximizePanel, onHeaderDoubleClick: onMaximizePanel, toolbar: _jsxs(_Fragment, { children: [_jsx(IconMenuVertical, { id: "TMPanel-Draft-Commands-Header", color: 'white', cursor: 'pointer' }), _jsx(ContextMenu, { showEvent: 'click', dataSource: [
214
214
  {
215
215
  icon: isLeftPanelCollapsed ? "eyeclose" : "eyeopen",
216
216
  onClick: () => setIsLeftPanelCollapsed(prev => !prev),
@@ -408,7 +408,7 @@ const TMPanelManager = (props) => {
408
408
  panelRefs.current[fullId] = el;
409
409
  }, style: panelStyle, children: [_jsx("div", { style: contentStyle, children: hasChildren
410
410
  ? renderPanels(panel.contentOptions.content, fullId, 'vertical')
411
- : panel.contentOptions?.panelContainer ? _jsx(TMPanel, { title: panel.contentOptions.panelContainer.title, totalItems: panel.contentOptions.panelContainer.totalItems, displayedItemsCount: panel.contentOptions.panelContainer.displayedItemsCount, onClose: () => handleTogglePanel(fullId), onMaximize: () => handleToggleMaximize(fullId), allowMaximize: !isMobile, children: typeof panel.contentOptions.content === "function" ? panel.contentOptions.content(handleTogglePanel, handleToggleMaximize, handleVisibilityButton, handleDisableButton) : panel.contentOptions.content })
411
+ : panel.contentOptions?.panelContainer ? _jsx(TMPanel, { title: panel.contentOptions.panelContainer.title, totalItems: panel.contentOptions.panelContainer.totalItems, displayedItemsCount: panel.contentOptions.panelContainer.displayedItemsCount, onClose: () => handleTogglePanel(fullId), onMaximize: () => handleToggleMaximize(fullId), onHeaderDoubleClick: () => handleToggleMaximize(fullId), allowMaximize: !isMobile, children: typeof panel.contentOptions.content === "function" ? panel.contentOptions.content(handleTogglePanel, handleToggleMaximize, handleVisibilityButton, handleDisableButton) : panel.contentOptions.content })
412
412
  :
413
413
  typeof panel.contentOptions.content === "function" ? panel.contentOptions.content(handleTogglePanel, handleToggleMaximize, handleVisibilityButton, handleDisableButton) : panel.contentOptions.content }), !isLastVisible && isActive && maximizedPanelPath.length === 0 && (_jsx("div", { style: {
414
414
  cursor: direction === 'horizontal' ? 'col-resize' : 'row-resize',
@@ -74,7 +74,7 @@ const TMPanelManagerToolbar = (props) => {
74
74
  alignSelf: 'center',
75
75
  } }, `sep-${p.fullId}`)) : null;
76
76
  // Button JSX
77
- const button = (_jsx(TMTooltip, { content: p.config.name, position: 'left', children: _jsx("button", { disabled: isToolbarDisabled, onClick: () => { handleTogglePanel(p.fullId); if (handleClick)
77
+ const button = (_jsx(TMTooltip, { content: p.config.name, position: isMobile ? 'top' : 'left', children: _jsx("button", { disabled: isToolbarDisabled, onClick: () => { handleTogglePanel(p.fullId); if (handleClick)
78
78
  handleClick(); }, style: {
79
79
  display: 'flex',
80
80
  alignItems: 'center',
@@ -89,7 +89,7 @@ const TMPanelManagerToolbar = (props) => {
89
89
  transition: 'transform 0.2s ease, box-shadow 0.2s ease',
90
90
  cursor: isToolbarDisabled ? 'not-allowed' : 'pointer',
91
91
  opacity: isToolbarDisabled ? 0.6 : 1,
92
- backgroundColor: isActive ? '#81c784' : '#e57373',
92
+ backgroundColor: isActive || p.config.toolbarOptions?.alwaysActiveColor ? '#81c784' : '#e57373',
93
93
  }, onMouseEnter: (e) => { if (!isToolbarDisabled) {
94
94
  e.currentTarget.style.transform = 'scale(1.1)';
95
95
  } }, onMouseLeave: (e) => { e.currentTarget.style.transform = 'scale(1)'; }, children: typeof p.config.toolbarOptions?.icon === 'string' ? (_jsx("i", { className: `dx-icon dx-icon-${p.config.toolbarOptions?.icon}` })) : (p.config.toolbarOptions?.icon) }) }, p.fullId));
@@ -21,6 +21,7 @@ export type TMPanelItemConfig = {
21
21
  disabled?: boolean;
22
22
  orderNumber?: number;
23
23
  beginGroup?: boolean;
24
+ alwaysActiveColor?: boolean;
24
25
  };
25
26
  };
26
27
  export type TMPanelEntry = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.13.36",
3
+ "version": "6.13.37",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",