@topconsultnpm/sdkui-react-beta 6.11.11 → 6.11.12
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.
|
@@ -26,7 +26,18 @@ export const TMMidViewer = ({ isMetadataSelected = false, tmSession, tid_mid, sh
|
|
|
26
26
|
return getCompleteMetadataName(dcmtTypeName, SDK_Globals.useLocalizedName ? md.nameLoc : md.name);
|
|
27
27
|
return SDK_Globals.useLocalizedName ? md.nameLoc : md.name;
|
|
28
28
|
};
|
|
29
|
-
return (_jsxs(StyledDivHorizontal, {
|
|
29
|
+
return (_jsxs(StyledDivHorizontal, { style: {
|
|
30
|
+
whiteSpace: 'nowrap',
|
|
31
|
+
overflow: 'hidden',
|
|
32
|
+
textOverflow: 'ellipsis'
|
|
33
|
+
}, children: [showIcon && _jsx(TMMetadataIcon, { isMetadataSelected: isMetadataSelected, tid: tid_mid?.tid, md: md }), _jsx("p", { style: {
|
|
34
|
+
textAlign: 'left',
|
|
35
|
+
marginLeft: showIcon ? '5px' : '',
|
|
36
|
+
color: md?.isRequired == 1 ? 'red' : undefined,
|
|
37
|
+
whiteSpace: 'nowrap',
|
|
38
|
+
overflow: 'hidden',
|
|
39
|
+
textOverflow: 'ellipsis'
|
|
40
|
+
}, children: displayName() }), showId && _jsx("p", { style: { padding: '0px 3px' }, children: `(MID: ${tid_mid?.mid})` })] }));
|
|
30
41
|
};
|
|
31
42
|
export const TMMetadataIcon = ({ tid, md, layoutMode = LayoutModes.Update, isMetadataSelected = false }) => {
|
|
32
43
|
let selectedMetadataStyle = { borderBottom: isMetadataSelected ? `thick solid ${TMColors.text_normal}` : 'none', height: 'max-content' };
|
|
@@ -390,7 +390,18 @@ const TMTidViewer = ({ tmSession, tid, showIcon = false, showId = false, noneSel
|
|
|
390
390
|
return noneSelectionText;
|
|
391
391
|
return SDK_Globals.useLocalizedName ? dtd.nameLoc : dtd.name;
|
|
392
392
|
};
|
|
393
|
-
return (_jsxs(StyledDivHorizontal, {
|
|
393
|
+
return (_jsxs(StyledDivHorizontal, { style: {
|
|
394
|
+
whiteSpace: 'nowrap',
|
|
395
|
+
overflow: 'hidden',
|
|
396
|
+
textOverflow: 'ellipsis'
|
|
397
|
+
}, children: [showIcon && dtd && _jsx(TMDcmtTypeIcon, { dtd: dtd }), _jsx("p", { style: {
|
|
398
|
+
textAlign: 'left',
|
|
399
|
+
marginLeft: showIcon ? '5px' : '',
|
|
400
|
+
color: dtd?.isView ? 'red' : '',
|
|
401
|
+
whiteSpace: 'nowrap',
|
|
402
|
+
overflow: 'hidden',
|
|
403
|
+
textOverflow: 'ellipsis'
|
|
404
|
+
}, children: displayName() }), showId && _jsx("p", { style: { padding: '0px 3px' }, children: `(TID: ${tid})` })] }));
|
|
394
405
|
};
|
|
395
406
|
export default TMTidViewer;
|
|
396
407
|
export const cellRenderTID = (data, noneSelectionText) => {
|