@topconsultnpm/sdkui-react-beta 6.13.0 → 6.13.2
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.
@@ -96,7 +96,7 @@ export const getAttachmentInfo = (attachment, treeFs, draftLatestInfoMap, archiv
|
|
96
96
|
}
|
97
97
|
const content = (_jsxs("div", { children: [_jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.Version }), ": ", attachment.version] }), draftLatestInfoMap && (_jsxs("div", { children: [_jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.LastVersion }), ": ", latestVersion ? SDKUI_Localizator.Yes : SDKUI_Localizator.No] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.Size }), ": ", fileSize] })] })), _jsx("hr", {}), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.Path }), ": \"", SDKUI_Localizator.Drafts, "\\", pathName.length > 0 ? (pathName + '\\') : '', name, "\""] })] }));
|
98
98
|
tooltipContent = getTooltipContent(draftfileItem.name, content);
|
99
|
-
nameElement = (_jsxs("span", { children: [highlightText(`${draftfileItem.name}`, searchText, isSelected), "\u00A0", _jsx("span", { style: {
|
99
|
+
nameElement = (_jsxs("span", { children: [highlightText(`${draftfileItem.name}`, searchText, isSelected), "\u00A0", attachment.version && _jsx("span", { style: {
|
100
100
|
display: 'inline-flex',
|
101
101
|
marginLeft: '5px',
|
102
102
|
width: '20px',
|
package/lib/helper/TMUtils.js
CHANGED
@@ -80,7 +80,7 @@ export const getFileIcon = (fileExtension, fileCount, tooltipContent) => {
|
|
80
80
|
fileBgColor = '#576D7E';
|
81
81
|
break;
|
82
82
|
}
|
83
|
-
return (_jsx(StyledIconFileContainer, { children: _jsx(StyledIconFileExt, { "$backgroundColor": fileCount
|
83
|
+
return (_jsx(StyledIconFileContainer, { children: _jsx(StyledIconFileExt, { "$backgroundColor": (fileCount === 0 || !fileExtension) ? "#424040" : fileBgColor, "$color": fileColor, children: (fileCount === 0 || !fileExtOri)
|
84
84
|
? _jsxs(TMTooltip, { content: "Documento di soli metadati", children: [" ", _jsx(IconKey, { fontSize: 17, color: '#f8d775' }), " "] })
|
85
85
|
: _jsx(TMTooltip, { content: tooltipContent ?? fileExtOri, children: fileExtension.toUpperCase() }) }) }));
|
86
86
|
};
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { useEffect, useState } from 'react';
|
3
3
|
import TMHtmlEditor from '../components/editors/TMHtmlEditor';
|
4
|
+
import { TMHtmlContentDisplay } from '../components';
|
4
5
|
const meta = {
|
5
6
|
title: 'Components/TMHtmlEditor',
|
6
7
|
component: TMHtmlEditor,
|
@@ -15,7 +16,7 @@ export const Default = {
|
|
15
16
|
const [mentionsConfig, setMentionsConfig] = useState([]);
|
16
17
|
useEffect(() => {
|
17
18
|
const mentions = [{
|
18
|
-
dataSource: [{ text: '
|
19
|
+
dataSource: [{ text: 'Marco Rossi', icon: '👤' }, { text: 'Paolo Bianchi', icon: '👩' },],
|
19
20
|
searchExpr: 'text',
|
20
21
|
displayExpr: 'text',
|
21
22
|
valueExpr: 'text',
|
@@ -31,6 +32,6 @@ export const Default = {
|
|
31
32
|
const handleValueChange = (e) => {
|
32
33
|
setContent(e.value);
|
33
34
|
};
|
34
|
-
return (_jsxs("div", { style: { padding: 20 }, children: [_jsx(TMHtmlEditor, { ...args, onValueChanged: handleValueChange, isEditorEnabled: true, mentionsConfig: mentionsConfig }), _jsxs("div", { style: { marginTop: '1rem', padding: '0.5rem', backgroundColor: '#f5f5f5' }, children: [_jsx("h4", { children: "
|
35
|
+
return (_jsxs("div", { style: { padding: 20 }, children: [_jsx(TMHtmlEditor, { ...args, onValueChanged: handleValueChange, isEditorEnabled: true, mentionsConfig: mentionsConfig }), _jsxs("div", { style: { marginTop: '1rem', padding: '0.5rem', backgroundColor: '#f5f5f5' }, children: [_jsx("h4", { children: "Output" }), _jsx(TMHtmlContentDisplay, { markup: content, isSelected: false })] })] }));
|
35
36
|
},
|
36
37
|
};
|