@topconsultnpm/sdkui-react-beta 6.9.117 → 6.9.120
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.
|
@@ -67,13 +67,11 @@ export const TMUserIdViewer = ({ userId, showIcon = false, noneSelectionText = `
|
|
|
67
67
|
_jsx(TMTooltip, { content: SDKUI_Localizator.ValueNotPresent, children: _jsx(IconWarning, { color: TMColors.warning }) });
|
|
68
68
|
};
|
|
69
69
|
const getDescription = () => {
|
|
70
|
-
if (!ud)
|
|
71
|
-
return undefined;
|
|
72
70
|
if (!userId)
|
|
73
71
|
return undefined;
|
|
74
72
|
return ud ? getCompleteUserName(ud.domain, ud.name) : userId.toString() ?? noneSelectionText;
|
|
75
73
|
};
|
|
76
|
-
return (_jsxs(StyledDivHorizontal, { children: [getIcon(), _jsx("p", { style: { textAlign: 'left', marginLeft: showIcon ? '5px' : '' }, children: getDescription() })] }));
|
|
74
|
+
return (_jsxs(StyledDivHorizontal, { children: [getIcon(), _jsx("p", { style: { textAlign: 'left', marginLeft: showIcon ? '5px' : '', opacity: ud ? 1 : 0.5 }, children: getDescription() })] }));
|
|
77
75
|
};
|
|
78
76
|
export const TMUserIcon = ({ ud }) => {
|
|
79
77
|
if (!ud)
|
|
@@ -27,13 +27,13 @@ const TMDataListItemViewer = ({ dataListId, value, viewMode = DataListViewModes.
|
|
|
27
27
|
_jsx(TMTooltip, { content: SDKUI_Localizator.ValueNotPresent, children: _jsx(IconWarning, { color: TMColors.warning }) });
|
|
28
28
|
};
|
|
29
29
|
const getDescription = () => {
|
|
30
|
-
if (!dataListItem)
|
|
31
|
-
return undefined;
|
|
32
30
|
if (!dataListId)
|
|
33
31
|
return undefined;
|
|
32
|
+
if (!value)
|
|
33
|
+
return undefined;
|
|
34
34
|
return dataListItem ? dataListItem.name : value;
|
|
35
35
|
};
|
|
36
|
-
return (_jsxs(StyledDivHorizontal, { children: [getIcon(), _jsx("p", { style: { textAlign: 'left', marginLeft: showIcon ? '5px' : '' }, children: getDescription() })] }));
|
|
36
|
+
return (_jsxs(StyledDivHorizontal, { children: [getIcon(), _jsx("p", { style: { textAlign: 'left', marginLeft: showIcon ? '5px' : '', opacity: dataListItem ? 1 : 0.5 }, children: getDescription() })] }));
|
|
37
37
|
};
|
|
38
38
|
export default TMDataListItemViewer;
|
|
39
39
|
export const cellRenderDataListItem = (data, dataListId, viewMode) => {
|
|
@@ -2,7 +2,7 @@ var _a;
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { SDK_Globals, SDK_Localizator, JobTypes, ObjectClasses, OwnershipLevels, ProcessStates, DcmtTypeListCacheService } from "@topconsultnpm/sdk-ts-beta";
|
|
4
4
|
import { TMTooltip } from "../components";
|
|
5
|
-
import { Icon123, IconAccessPoint, IconBasket, IconCloud, IconDataList, IconDisk, IconProcess, IconSettings, IconSignCert, IconSuitcase, IconTree, IconUser, SDKUI_Localizator } from "../helper";
|
|
5
|
+
import { Icon123, IconAccessPoint, IconBasket, IconCloud, IconDataList, IconDisk, IconProcess, IconServerService, IconSettings, IconSignCert, IconSuitcase, IconTree, IconUser, SDKUI_Localizator } from "../helper";
|
|
6
6
|
import { TMColors } from "../utils/theme";
|
|
7
7
|
import { LocalizeOwnershipLevels } from "../helper/Enum_Localizator";
|
|
8
8
|
export class PlatformObjectService {
|
|
@@ -390,7 +390,7 @@ PlatformObjectService.getIcon = (objClass, d) => {
|
|
|
390
390
|
ownershipColor = "red";
|
|
391
391
|
break;
|
|
392
392
|
}
|
|
393
|
-
return (_jsx("div", { style: { flexDirection: "row", display: "flex", alignItems: "center", justifyContent: "center", overflow: 'visible' }, children: _jsxs(TMTooltip, { content: _a.getTooltip(objClass, d), children: [objClass == ObjectClasses.Area && _jsx(IconCloud, { color: ownershipColor }), objClass == ObjectClasses.BasketType && _jsx(IconBasket, { color: ownershipColor }), objClass == ObjectClasses.Disk && _jsx(IconDisk, { color: ownershipColor }), objClass == ObjectClasses.DataList && d.id && d.id > 26 && _jsx(IconDataList, { color: ownershipColor }), objClass == ObjectClasses.DataList && d.id && d.id <= 26 && _jsx(IconSettings, { color: ownershipColor }), objClass == ObjectClasses.Numerator && _jsx(Icon123, { color: ownershipColor }), objClass == ObjectClasses.SignCert && _jsx(IconSignCert, { fontSize: 22, color: ownershipColor }), objClass == ObjectClasses.Tree && _jsx(IconTree, { color: ownershipColor }), objClass == ObjectClasses.TSA && _jsx(IconAccessPoint, { color: ownershipColor }), objClass == ObjectClasses.User && _jsx(IconUser, { color: ownershipColor }), objClass == ObjectClasses.Job && _jsx(IconSuitcase, { color: ownershipColor }), objClass == ObjectClasses.Process && _jsx(IconProcess, { color: d.state === ProcessStates.Running ? TMColors.primary : d.state === ProcessStates.Ready || d.state === ProcessStates.Started ? TMColors.secondary : d.state === ProcessStates.Freezed ? 'rgb(180,180,180)' : d.state === ProcessStates.Completed ? TMColors.success : TMColors.error })] }) }));
|
|
393
|
+
return (_jsx("div", { style: { flexDirection: "row", display: "flex", alignItems: "center", justifyContent: "center", overflow: 'visible' }, children: _jsxs(TMTooltip, { content: _a.getTooltip(objClass, d), children: [objClass == ObjectClasses.Area && _jsx(IconCloud, { color: ownershipColor }), objClass == ObjectClasses.BasketType && _jsx(IconBasket, { color: ownershipColor }), objClass == ObjectClasses.Disk && _jsx(IconDisk, { color: ownershipColor }), objClass == ObjectClasses.DataList && d.id && d.id > 26 && _jsx(IconDataList, { color: ownershipColor }), objClass == ObjectClasses.DataList && d.id && d.id <= 26 && _jsx(IconSettings, { color: ownershipColor }), objClass == ObjectClasses.Numerator && _jsx(Icon123, { color: ownershipColor }), objClass == ObjectClasses.SignCert && _jsx(IconSignCert, { fontSize: 22, color: ownershipColor }), objClass == ObjectClasses.SignServer && _jsx(IconServerService, { fontSize: 22, color: ownershipColor }), objClass == ObjectClasses.Tree && _jsx(IconTree, { color: ownershipColor }), objClass == ObjectClasses.TSA && _jsx(IconAccessPoint, { color: ownershipColor }), objClass == ObjectClasses.User && _jsx(IconUser, { color: ownershipColor }), objClass == ObjectClasses.Job && _jsx(IconSuitcase, { color: ownershipColor }), objClass == ObjectClasses.Process && _jsx(IconProcess, { color: d.state === ProcessStates.Running ? TMColors.primary : d.state === ProcessStates.Ready || d.state === ProcessStates.Started ? TMColors.secondary : d.state === ProcessStates.Freezed ? 'rgb(180,180,180)' : d.state === ProcessStates.Completed ? TMColors.success : TMColors.error })] }) }));
|
|
394
394
|
};
|
|
395
395
|
PlatformObjectService.getTooltip = (objClass, d) => {
|
|
396
396
|
let ownLevel = LocalizeOwnershipLevels(d.ownershipLevel);
|