@topconsultnpm/sdkui-react 6.19.0-dev2.22 → 6.19.0-dev2.23
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.
|
@@ -159,18 +159,20 @@ export const getDcmtTypeDescriptor = async (blogPosts) => {
|
|
|
159
159
|
export const BlogPostHomeHeader = (header, classId, isSelected, searchText, headerClickCallback) => {
|
|
160
160
|
const isWorkGroup = classId === 'WG';
|
|
161
161
|
const iconColor = isSelected ? '#ffffff' : isWorkGroup ? '#009700' : '#e65b00';
|
|
162
|
-
return (_jsxs("div", {
|
|
162
|
+
return (_jsxs("div", { style: {
|
|
163
163
|
display: "flex",
|
|
164
164
|
alignItems: "center",
|
|
165
165
|
cursor: "pointer",
|
|
166
166
|
fontWeight: "bold",
|
|
167
167
|
color: isSelected ? "#fff" : TMColors.primary,
|
|
168
168
|
gap: "4px",
|
|
169
|
-
}, children: [_jsx(TMTooltip, { content: isWorkGroup ? SDKUI_Localizator.WorkGroup : SDKUI_Localizator.Dossier, children: isWorkGroup ? (_jsx(IconMenuCAWorkingGroups, { color: iconColor, fontSize: 28 })) : (_jsx(IconCADossier, { color: iconColor, fontSize: 28 })) }), _jsx("div", { style: {
|
|
169
|
+
}, children: [_jsx(TMTooltip, { content: isWorkGroup ? SDKUI_Localizator.WorkGroup : SDKUI_Localizator.Dossier, children: isWorkGroup ? (_jsx(IconMenuCAWorkingGroups, { color: iconColor, fontSize: 28, onClick: headerClickCallback })) : (_jsx(IconCADossier, { color: iconColor, fontSize: 28, onClick: headerClickCallback })) }), _jsx("div", { onClick: headerClickCallback, style: {
|
|
170
170
|
whiteSpace: "nowrap",
|
|
171
171
|
overflow: "hidden",
|
|
172
172
|
textOverflow: "ellipsis",
|
|
173
|
-
|
|
173
|
+
display: "inline-block",
|
|
174
|
+
cursor: "pointer",
|
|
175
|
+
maxWidth: "100%",
|
|
174
176
|
}, children: highlightText(header ?? "", searchText, isSelected) })] }));
|
|
175
177
|
};
|
|
176
178
|
export const isHeaderFullyHidden = (header) => {
|
package/lib/helper/TMUtils.js
CHANGED
|
@@ -205,7 +205,7 @@ export const getPdgsIconMap = (fontSize = 20) => {
|
|
|
205
205
|
return new Map([
|
|
206
206
|
[PdGs.None, _jsx("span", {}, "PdGs-None")],
|
|
207
207
|
[PdGs.CF, _jsx(IconCADossier, { color: "#e65b00", fontSize: 28 }, "PdGs-CF")],
|
|
208
|
-
[PdGs.DT, _jsx("i", { style: { fontSize, color: '#
|
|
208
|
+
[PdGs.DT, _jsx("i", { style: { fontSize, color: '#b38600' }, className: "dx-icon-file" }, "PdGs-DT")],
|
|
209
209
|
[PdGs.WF, _jsx("i", { style: { fontSize }, className: "dx-icon-box" }, "PdGs-WF")],
|
|
210
210
|
[PdGs.WG, _jsx(IconMenuCAWorkingGroups, { color: "#009700", fontSize: 28 }, "PdGs-WG")],
|
|
211
211
|
]);
|