frst-components 0.21.31 → 0.21.33
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.
- package/dist/index.js +288 -216
- package/dist/src/components/DS/dropdown-Multiselect/index.d.ts +1 -0
- package/dist/src/components/DS/dropdown-Multiselect/index.d.ts.map +1 -1
- package/dist/src/components/DS/dropdown-Multiselect/styles/multiselectStyles.d.ts.map +1 -1
- package/dist/src/components/DS/scroll-container-v2/ButtonControl/buttonControlStyles.d.ts.map +1 -1
- package/dist/src/components/DS/scroll-container-v2/ButtonControl/index.d.ts.map +1 -1
- package/dist/src/components/DS/scroll-container-v2/ButtonControl/useLongPress.d.ts.map +1 -1
- package/dist/src/components/DS/select/styles/StylesSelect.d.ts.map +1 -1
- package/dist/src/components/FI/bannerProblemFeed/index.d.ts +2 -0
- package/dist/src/components/FI/bannerProblemFeed/index.d.ts.map +1 -1
- package/dist/src/components/FI/interactionsModal/index.d.ts.map +1 -1
- package/dist/src/components/FI/notificationCard/index.d.ts +2 -0
- package/dist/src/components/FI/notificationCard/index.d.ts.map +1 -1
- package/dist/src/components/FI/notificationCard/notificationCardStyles.d.ts +1 -0
- package/dist/src/components/FI/notificationCard/notificationCardStyles.d.ts.map +1 -1
- package/dist/src/components/FI/notificationPopOver/index.d.ts +2 -0
- package/dist/src/components/FI/notificationPopOver/index.d.ts.map +1 -1
- package/dist/src/components/IJ/learningCycleCard/components/menu/index.d.ts.map +1 -1
- package/dist/src/components/IJ/learningCycleCard/components/menu/menuStyle.d.ts.map +1 -1
- package/dist/src/components/IJ/participantCardOld/index.d.ts +1 -1
- package/dist/src/components/IJ/participantCardOld/index.d.ts.map +1 -1
- package/dist/src/components/IJ/participantCardOld/participantCardStyle.d.ts.map +1 -1
- package/dist/src/components/LXP/extraContent/richTextEditor/components.d.ts +8 -8
- package/dist/src/components/LXP/extraContent/richTextEditor/components.d.ts.map +1 -1
- package/dist/src/components/LXP/extraContent/richTextEditor/index.d.ts.map +1 -1
- package/dist/src/components/LXP/tooltip/index.d.ts.map +1 -1
- package/dist/src/components/LXP/tooltip/tooltipStyle.d.ts +2 -0
- package/dist/src/components/LXP/tooltip/tooltipStyle.d.ts.map +1 -1
- package/dist/src/components/calendar/calendarStyle.d.ts +1 -1
- package/dist/src/components/cardLT/AvatarWithInfo/index.d.ts +1 -0
- package/dist/src/components/cardLT/AvatarWithInfo/index.d.ts.map +1 -1
- package/dist/src/components/cardLT/BannerProblem/index.d.ts.map +1 -1
- package/dist/src/components/cardLT/MessageBox/icons/errorIcon.d.ts.map +1 -1
- package/dist/src/components/cardLT/MessageBox/icons/successIcon.d.ts.map +1 -1
- package/dist/src/components/cardLT/MessageBox/icons/warningIcon.d.ts.map +1 -1
- package/dist/src/components/cards/cardProblem/index.d.ts +2 -2
- package/dist/src/components/cards/cardProblem/index.d.ts.map +1 -1
- package/dist/src/components/cards/cardProblemGestor/index.d.ts +2 -0
- package/dist/src/components/cards/cardProblemGestor/index.d.ts.map +1 -1
- package/dist/src/components/cards/cardResultConquista/index.d.ts +1 -0
- package/dist/src/components/cards/cardResultConquista/index.d.ts.map +1 -1
- package/dist/src/components/commentary-box/index.d.ts +1 -1
- package/dist/src/components/commentary-box/index.d.ts.map +1 -1
- package/dist/src/components/conquistaCarrossel/index.d.ts +1 -1
- package/dist/src/components/conquistaCarrossel/index.d.ts.map +1 -1
- package/dist/src/components/global-menu/components/customMenu/index.d.ts.map +1 -1
- package/dist/src/components/modal/statusProblema/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1852,6 +1852,184 @@ function RatingCurtidas(props) {
|
|
|
1852
1852
|
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { className: style$f.container, style: { ...props.style }, children: [jsxRuntime.jsx("div", { style: { display: 'flex', justifyContent: 'flex-start', alignItems: 'center', fontSize: 16, fontWeight: 600 }, children: props.titulo }), jsxRuntime.jsxs("div", { style: { display: 'flex', width: '100%', justifyContent: 'flex-start', alignItems: 'flex-start' }, children: [jsxRuntime.jsx("div", { style: { display: 'inline-flex', width: 40, height: 40, justifyContent: 'center', alignItems: 'center', position: 'relative' }, children: jsxRuntime.jsx(RocketButton, { tipoBotao: props.tipoBotao }) }), jsxRuntime.jsx("div", { style: { display: 'inline-flex', width: 90, marginLeft: 4 }, children: jsxRuntime.jsxs("div", { style: { display: 'flex', flexDirection: 'column', flexWrap: 'wrap', width: 100 }, children: [jsxRuntime.jsx("span", { style: { fontSize: 14, fontWeight: 600 }, children: props.qtdeCurtidas ? props.qtdeCurtidas : 0 }), jsxRuntime.jsx("span", { style: { fontSize: 12, fontWeight: 400 }, children: props.descricaoCurtida })] }) })] })] }) }));
|
|
1853
1853
|
}
|
|
1854
1854
|
|
|
1855
|
+
const TooltipWrapper = styled__default["default"].div `
|
|
1856
|
+
display: inline-flex;
|
|
1857
|
+
position: relative;
|
|
1858
|
+
`;
|
|
1859
|
+
const TooltipTip = styled__default["default"].div `
|
|
1860
|
+
background: #FFF;
|
|
1861
|
+
border-radius: 4px;
|
|
1862
|
+
border: 1px solid #BDBDBD;
|
|
1863
|
+
font-family: 'PT Sans';
|
|
1864
|
+
font-style: normal;
|
|
1865
|
+
font-weight: 400;
|
|
1866
|
+
font-size: 14px;
|
|
1867
|
+
line-height: 18px;
|
|
1868
|
+
color: #757575;
|
|
1869
|
+
box-shadow: 0px 25px 18px -20px rgba(34, 34, 34, 0.2);
|
|
1870
|
+
padding: 6px;
|
|
1871
|
+
position: relative;
|
|
1872
|
+
|
|
1873
|
+
${({ width }) => width && `width: ${width};`}
|
|
1874
|
+
${({ height }) => height && `height: ${height};`}
|
|
1875
|
+
|
|
1876
|
+
&::after {
|
|
1877
|
+
content: " ";
|
|
1878
|
+
left: 50%;
|
|
1879
|
+
border: solid transparent;
|
|
1880
|
+
height: 0;
|
|
1881
|
+
width: 0;
|
|
1882
|
+
position: absolute;
|
|
1883
|
+
pointer-events: none;
|
|
1884
|
+
border-width: 5px;
|
|
1885
|
+
margin-left: calc(5px * -1);
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
&::before {
|
|
1889
|
+
content: " ";
|
|
1890
|
+
left: 50%;
|
|
1891
|
+
border: solid transparent;
|
|
1892
|
+
height: 0;
|
|
1893
|
+
width: 0;
|
|
1894
|
+
position: absolute;
|
|
1895
|
+
pointer-events: none;
|
|
1896
|
+
border-width: 6px;
|
|
1897
|
+
margin-left: calc(6px * -1);
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
${({ direction }) => {
|
|
1901
|
+
switch (direction) {
|
|
1902
|
+
case 'top':
|
|
1903
|
+
return `
|
|
1904
|
+
&::before,
|
|
1905
|
+
&::after {
|
|
1906
|
+
top: 100%;
|
|
1907
|
+
border-top-color: #BDBDBD
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
&::after {
|
|
1911
|
+
border-top-color: #FFFFFF;
|
|
1912
|
+
}
|
|
1913
|
+
`;
|
|
1914
|
+
case 'right':
|
|
1915
|
+
return `
|
|
1916
|
+
&::before,
|
|
1917
|
+
&::after {
|
|
1918
|
+
left: calc(6px * -1);
|
|
1919
|
+
top: 50%;
|
|
1920
|
+
transform: translateX(0) translateY(-50%);
|
|
1921
|
+
border-right-color: #BDBDBD;
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
&::after {
|
|
1925
|
+
border-right-color: #FFFFFF;
|
|
1926
|
+
}
|
|
1927
|
+
`;
|
|
1928
|
+
case 'bottom':
|
|
1929
|
+
return `
|
|
1930
|
+
&::before,
|
|
1931
|
+
&::after {
|
|
1932
|
+
bottom: 100%;
|
|
1933
|
+
border-bottom-color: #BDBDBD;
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
&::after {
|
|
1937
|
+
border-bottom-color: #FFFFFF;
|
|
1938
|
+
}
|
|
1939
|
+
`;
|
|
1940
|
+
case 'left':
|
|
1941
|
+
return `
|
|
1942
|
+
&::before,
|
|
1943
|
+
&::after {
|
|
1944
|
+
left: auto;
|
|
1945
|
+
right: calc(6px * -2);
|
|
1946
|
+
top: 50%;
|
|
1947
|
+
transform: translateX(0) translateY(-50%);
|
|
1948
|
+
border-left-color: #BDBDBD;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
&::after {
|
|
1952
|
+
border-left-color: #FFFFFF;
|
|
1953
|
+
}
|
|
1954
|
+
`;
|
|
1955
|
+
default:
|
|
1956
|
+
return '';
|
|
1957
|
+
}
|
|
1958
|
+
}}
|
|
1959
|
+
|
|
1960
|
+
`;
|
|
1961
|
+
const TooltipGhost = styled__default["default"].div `
|
|
1962
|
+
position: absolute;
|
|
1963
|
+
left: 50%;
|
|
1964
|
+
transform: translateX(-50%);
|
|
1965
|
+
z-index: 100;
|
|
1966
|
+
|
|
1967
|
+
|
|
1968
|
+
${({ direction, height }) => {
|
|
1969
|
+
switch (direction) {
|
|
1970
|
+
case 'top':
|
|
1971
|
+
return `
|
|
1972
|
+
top: calc(${height} * -1);
|
|
1973
|
+
`;
|
|
1974
|
+
case 'right':
|
|
1975
|
+
return `
|
|
1976
|
+
left: calc(100% + 5px);
|
|
1977
|
+
top: 50%;
|
|
1978
|
+
transform: translateX(0) translateY(-50%);
|
|
1979
|
+
`;
|
|
1980
|
+
case 'bottom':
|
|
1981
|
+
return `
|
|
1982
|
+
bottom: calc(${height} * -1);
|
|
1983
|
+
`;
|
|
1984
|
+
case 'left':
|
|
1985
|
+
return `
|
|
1986
|
+
left: auto;
|
|
1987
|
+
right: calc(100% + 5px);
|
|
1988
|
+
top: 50%;
|
|
1989
|
+
transform: translateX(0) translateY(-50%);
|
|
1990
|
+
`;
|
|
1991
|
+
default:
|
|
1992
|
+
return '';
|
|
1993
|
+
}
|
|
1994
|
+
}}
|
|
1995
|
+
`;
|
|
1996
|
+
|
|
1997
|
+
function Tooltip$2({ content, direction, children, trigger = 'hover', delay = 400, style, className, width, height, onShow, onHide }) {
|
|
1998
|
+
let shpwTimeout;
|
|
1999
|
+
let hideTimeout;
|
|
2000
|
+
const [active, setActive] = React.useState(false);
|
|
2001
|
+
const [renderHeight, setRenderHeight] = React.useState('51px');
|
|
2002
|
+
const ref = React.useRef(null);
|
|
2003
|
+
React.useEffect(() => {
|
|
2004
|
+
if (!ref.current || !active)
|
|
2005
|
+
return;
|
|
2006
|
+
if (height)
|
|
2007
|
+
setRenderHeight(height);
|
|
2008
|
+
if (renderHeight === '51px')
|
|
2009
|
+
setRenderHeight(ref.current.clientHeight + 'px');
|
|
2010
|
+
}, [active]);
|
|
2011
|
+
const showTip = () => {
|
|
2012
|
+
const timeoutDelay = trigger === 'click' ? 0 : delay;
|
|
2013
|
+
shpwTimeout = setTimeout(() => {
|
|
2014
|
+
setActive(true);
|
|
2015
|
+
if (onShow)
|
|
2016
|
+
onShow({ active: true });
|
|
2017
|
+
}, timeoutDelay);
|
|
2018
|
+
};
|
|
2019
|
+
const hideTip = () => {
|
|
2020
|
+
clearInterval(shpwTimeout);
|
|
2021
|
+
clearInterval(hideTimeout);
|
|
2022
|
+
hideTimeout = setTimeout(() => {
|
|
2023
|
+
ref.current = null;
|
|
2024
|
+
setRenderHeight('51px');
|
|
2025
|
+
setActive(false);
|
|
2026
|
+
if (onHide)
|
|
2027
|
+
onHide({ active: false });
|
|
2028
|
+
}, 1000);
|
|
2029
|
+
};
|
|
2030
|
+
return (jsxRuntime.jsxs(TooltipWrapper, { onMouseEnter: trigger === 'hover' ? showTip : undefined, onMouseLeave: hideTip, onClick: trigger === 'click' ? showTip : undefined, children: [children, active && (jsxRuntime.jsx(TooltipGhost, { direction: direction || 'top', className: className, width: width || '100px', height: height ? height : renderHeight || '100px', ref: ref, children: jsxRuntime.jsx(TooltipTip, { direction: direction || 'top', style: style, width: width || '100px', height: height ? height : renderHeight || '100px', children: content }) }))] }));
|
|
2031
|
+
}
|
|
2032
|
+
|
|
1855
2033
|
const ProgressBar$2 = styled__default["default"](material.Box) `
|
|
1856
2034
|
display: flex;
|
|
1857
2035
|
justify-content: space-between;
|
|
@@ -1989,7 +2167,7 @@ function Vector(props) {
|
|
|
1989
2167
|
* @componente Planet: Componente responsável por gerenciar os controles dos steps das missões
|
|
1990
2168
|
*/
|
|
1991
2169
|
function AvatarWithInfo(props) {
|
|
1992
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { className: style$e.container, style: { ...props.style }, children: [jsxRuntime.jsx(Avatar, { size: '40px', src: props.fotoAvatar }), jsxRuntime.jsx("span", { style: { fontWeight: 600, marginLeft: 8, marginRight: 4 }, children: props.nomeCompleto }), " ", props.cargo ? jsxRuntime.jsx(Vector, {}) : '', " ", jsxRuntime.jsx("span", { style: { fontWeight: 400, marginLeft: 4, marginRight: 8, textAlign: 'center' }, children: props.cargo })] }) }));
|
|
2170
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { className: style$e.container, style: { ...props.style }, onClick: () => props?.onClick ? props.onClick() : {}, children: [jsxRuntime.jsx(Avatar, { size: '40px', src: props.fotoAvatar, isActiveClick: !!props?.onClick }), jsxRuntime.jsx("span", { style: { fontWeight: 600, marginLeft: 8, marginRight: 4 }, children: props.nomeCompleto }), " ", props.cargo ? jsxRuntime.jsx(Vector, {}) : '', " ", jsxRuntime.jsx("span", { style: { fontWeight: 400, marginLeft: 4, marginRight: 8, textAlign: 'center' }, children: props.cargo })] }) }));
|
|
1993
2171
|
}
|
|
1994
2172
|
|
|
1995
2173
|
const LinkButton$1 = styled__default["default"].a `
|
|
@@ -2497,7 +2675,10 @@ function BannerProblem(props) {
|
|
|
2497
2675
|
wordBreak: 'break-word',
|
|
2498
2676
|
}, children: TituloProblema }) })
|
|
2499
2677
|
:
|
|
2500
|
-
jsxRuntime.jsx("h1", { className: style$d.description, children: TituloProblema }), jsxRuntime.jsx("div", { style: { display: 'flex', justifyContent: 'space-between', position: 'relative', width: '100%', borderBottom: '1px solid #CCCCCC' }, children: jsxRuntime.jsxs("div", { style: { display: 'inline-flex', width: '100%' }, children: [jsxRuntime.jsxs("div", { style: { width: '100%', maxWidth: 600 }, children: [jsxRuntime.jsxs("div", { style: { display: 'flex', flexDirection: 'column', width: 'fit-content', paddingTop: '16px' }, children: [jsxRuntime.jsx("span", { className: style$d.created, children: props.dataCriacao }),
|
|
2678
|
+
jsxRuntime.jsx("h1", { className: style$d.description, children: TituloProblema }), jsxRuntime.jsx("div", { style: { display: 'flex', justifyContent: 'space-between', position: 'relative', width: '100%', borderBottom: '1px solid #CCCCCC' }, children: jsxRuntime.jsxs("div", { style: { display: 'inline-flex', width: '100%' }, children: [jsxRuntime.jsxs("div", { style: { width: '100%', maxWidth: 600 }, children: [jsxRuntime.jsxs("div", { style: { display: 'flex', flexDirection: 'column', width: 'fit-content', paddingTop: '16px' }, children: [jsxRuntime.jsx("span", { className: style$d.created, children: props.dataCriacao }), props.onClickUserInfo ?
|
|
2679
|
+
jsxRuntime.jsx(Tooltip$2, { direction: "bottom", content: props.textVisitProfile ? props.textVisitProfile : 'Visitar perfil', trigger: 'hover', width: '101px', height: '32px', style: { top: '10px', textAlign: 'center' }, children: jsxRuntime.jsx(AvatarWithInfo, { cargo: props.cargo, nomeCompleto: props.nome, fotoAvatar: props.avatar, style: { marginBottom: 8, marginTop: 24, cursor: props.onClickUserInfo ? 'pointer' : 'auto' }, onClick: () => props.onClickUserInfo ? props.onClickUserInfo() : {} }) })
|
|
2680
|
+
:
|
|
2681
|
+
jsxRuntime.jsx(AvatarWithInfo, { cargo: props.cargo, nomeCompleto: props.nome, fotoAvatar: props.avatar, style: { marginBottom: 8, marginTop: 24 } })] }), jsxRuntime.jsx(TextIcon, { description: props.area, svg: jsxRuntime.jsx(Brain, {}) }), props.company && jsxRuntime.jsx(TextIcon, { style: { width: '80%' }, description: props.company, svg: jsxRuntime.jsx(CompanyIcon, {}) }), jsxRuntime.jsx(TextIcon, { description: adapterEmail(props.email, size[0]), svg: jsxRuntime.jsx(Mail, {}) }), Edit && props.isVisibleEditTrail ?
|
|
2501
2682
|
jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { style: { marginTop: 12, backgroundColor: '#F2F2F2', borderWidth: 1, borderRadius: 4, padding: '24px 16px 24px 16px', border: '1px solid #BDBDBD' }, children: [jsxRuntime.jsx("h3", { style: { marginBottom: 12, textAlign: 'left', width: '100%', fontSize: 16 }, children: props.textTrailLabel ? props.textTrailLabel : 'Deseja vincular este novo problema a uma Trilha de Aprendizagem?' }), jsxRuntime.jsx(Select__default$1["default"], { id: "select", styles: customStyles, options: props.trilhaData ? props.trilhaData : [], value: props.trilhaData.filter(function (temp) { return temp.value === TrilhaId; }), placeholder: props.placeholderSelectTrail ? props.placeholderSelectTrail : 'Selecione uma trilha', onChange: e => {
|
|
2502
2683
|
setTrilhaId(e.value);
|
|
2503
2684
|
setTrilhaDescricaoSelecionada(e.label);
|
|
@@ -3482,7 +3663,7 @@ function buildShortName(name) {
|
|
|
3482
3663
|
}
|
|
3483
3664
|
|
|
3484
3665
|
const WIDTH_MOBILE = 550;
|
|
3485
|
-
function CommentaryBox({ name, className, styles, position, value, date, actionLike, actionAnswer, isMe, isAuthor, actionDeleteComment, actionEditComment, actionMakePrivate, actionUpdateValue, detectLinks, idTextComment, wasEdited, hasAnswer, hasDropdown, isLiked, totalLikes, textSaveButton, textSaveButtonMobile, textCancelButton, textYou, textPrivateComment, textEdited, textLiked, textUnliked, textAnswer, textMakePrivate, textMakePublic, textEditComment, textDeleteComment, isPrivateMe, isPrivateAuthor }) {
|
|
3666
|
+
function CommentaryBox({ name, className, styles, position, value, date, actionLike, actionAnswer, isMe, isAuthor, actionDeleteComment, actionEditComment, actionMakePrivate, actionUpdateValue, detectLinks, idTextComment, wasEdited, hasAnswer, hasDropdown, isLiked, totalLikes, textSaveButton, textSaveButtonMobile, textCancelButton, textYou, textPrivateComment, textEdited, textLiked, textUnliked, textAnswer, textMakePrivate, textMakePublic, textEditComment, textDeleteComment, isPrivateMe, isPrivateAuthor, onClickUserInfo, showStatusLike }) {
|
|
3486
3667
|
// Identify Screen Resizing
|
|
3487
3668
|
const [size, setSize] = React.useState([0, 0]);
|
|
3488
3669
|
React.useLayoutEffect(() => {
|
|
@@ -3552,7 +3733,7 @@ function CommentaryBox({ name, className, styles, position, value, date, actionL
|
|
|
3552
3733
|
(isOpenDrop) && (finalColor = '#ff4d0d'); // Selected
|
|
3553
3734
|
return finalColor;
|
|
3554
3735
|
};
|
|
3555
|
-
return (jsxRuntime.jsx("div", { style: { width: 'auto', ...styles }, children: jsxRuntime.jsxs(SpeechBubble$1, { className: className, highlight: onEditing, children: [jsxRuntime.jsxs(HeaderWrapper$1, { children: [jsxRuntime.jsxs(IdentificationWrapper, { children: [jsxRuntime.jsxs(NameWrapper, { children: [jsxRuntime.jsxs(Name$2, { children: [" ", size[0] > WIDTH_MOBILE ? name : buildShortName(name), " "] }), isMe &&
|
|
3736
|
+
return (jsxRuntime.jsx("div", { style: { width: 'auto', ...styles }, children: jsxRuntime.jsxs(SpeechBubble$1, { className: className, highlight: onEditing, children: [jsxRuntime.jsxs(HeaderWrapper$1, { children: [jsxRuntime.jsxs(IdentificationWrapper, { onClick: () => onClickUserInfo ? onClickUserInfo() : {}, style: { cursor: onClickUserInfo ? 'pointer' : 'auto' }, children: [jsxRuntime.jsxs(NameWrapper, { children: [jsxRuntime.jsxs(Name$2, { children: [" ", size[0] > WIDTH_MOBILE ? name : buildShortName(name), " "] }), isMe &&
|
|
3556
3737
|
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(DividerDot, { children: jsxRuntime.jsx(Dot, { fill: '#757575' }) }), jsxRuntime.jsxs(IsMe, { children: [" ", textYou, " "] })] }), size[0] > WIDTH_MOBILE ?
|
|
3557
3738
|
((isPrivateAuthor || isPrivateMe) &&
|
|
3558
3739
|
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(DividerDot, { children: jsxRuntime.jsx(Dot, { fill: '#757575' }) }), jsxRuntime.jsx(EyeOffIcon, { children: jsxRuntime.jsx(EyeOff, { fill: '#757575' }) }), jsxRuntime.jsx(CommentPrivate, { children: textPrivateComment })] })) : null] }), jsxRuntime.jsxs(Position$2, { children: [" ", position, " "] })] }), jsxRuntime.jsxs(OptionsWrapper, { children: [size[0] > WIDTH_MOBILE &&
|
|
@@ -3566,10 +3747,12 @@ function CommentaryBox({ name, className, styles, position, value, date, actionL
|
|
|
3566
3747
|
jsxRuntime.jsx("div", { style: { marginRight: '10px' }, children: jsxRuntime.jsx(EyeOffIcon, { children: jsxRuntime.jsx(EyeOff, { fill: '#757575' }) }) }), jsxRuntime.jsxs(Date$2, { children: [" ", date, " ", wasEdited && `(${textEdited})`, " "] })] }), onEditing ?
|
|
3567
3748
|
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(CommentaryEditingContent, { id: iDCommentInEditing, "data-gramm": "false", contentEditable: "true", role: "textbox", "aria-multiline": "true", suppressContentEditableWarning: true, children: value }), jsxRuntime.jsxs(FooterEditingWrapper, { width: size[0], children: [jsxRuntime.jsx(Button$5, { handleClick: () => { saveEditComment(); }, label: size[0] > WIDTH_MOBILE ? textSaveButton : textSaveButtonMobile, disabled: !enableSaveEdit, variant: "primary", style: { marginRight: '20px' } }), jsxRuntime.jsx(Button$5, { handleClick: () => { cancelEditComment(); }, label: textCancelButton, variant: "secondary" })] })] })
|
|
3568
3749
|
:
|
|
3569
|
-
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(CommentaryContent, { id: iDCommentPosted, children: value }), jsxRuntime.jsxs(IterationsWrapper, { children: [jsxRuntime.jsxs(LikesStatistics, { children: [isLiked ?
|
|
3750
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(CommentaryContent, { id: iDCommentPosted, children: value }), jsxRuntime.jsxs(IterationsWrapper, { children: [showStatusLike ? jsxRuntime.jsxs(LikesStatistics, { children: [!isLiked ?
|
|
3570
3751
|
jsxRuntime.jsx(ThumbsUpCovered, { width: '16px', height: '16px' })
|
|
3571
3752
|
:
|
|
3572
|
-
jsxRuntime.
|
|
3753
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [" ", totalLikes > 0 &&
|
|
3754
|
+
jsxRuntime.jsx(ThumbsUpCovered, { width: '16px', height: '16px', customColor_1: "#CCCCCC" })] }), jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [" ", totalLikes > 0 && jsxRuntime.jsx(TextTotalLikes, { children: totalLikes })] })] }) :
|
|
3755
|
+
jsxRuntime.jsx(LikesStatistics, {}), jsxRuntime.jsxs(IterationsButtonsWrapper, { children: [actionLike && (jsxRuntime.jsx(LinkButton, { onClick: actionLike, children: isLiked ? textLiked : textUnliked })), hasAnswer &&
|
|
3573
3756
|
jsxRuntime.jsxs(LinkButton, { onClick: actionAnswer, children: [" ", textAnswer, " "] })] })] })] })] }) }));
|
|
3574
3757
|
}
|
|
3575
3758
|
|
|
@@ -4012,184 +4195,6 @@ function TotalizerCard$1({ titleCard, textTotal, numberTotal, numberPartial, loa
|
|
|
4012
4195
|
jsxRuntime.jsxs(AreaCounter, { children: [jsxRuntime.jsxs(TotalText, { children: [" ", textTotal, " "] }), jsxRuntime.jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'baseline', marginBottom: '16px' }, children: [jsxRuntime.jsxs(TotalNumber, { children: [" ", numberTotal, " "] }), numberPartial && jsxRuntime.jsxs(PartialNumber, { children: ["/", numberPartial, " "] })] })] })] }) }));
|
|
4013
4196
|
}
|
|
4014
4197
|
|
|
4015
|
-
const TooltipWrapper = styled__default["default"].div `
|
|
4016
|
-
display: inline-flex;
|
|
4017
|
-
position: relative;
|
|
4018
|
-
`;
|
|
4019
|
-
const TooltipTip = styled__default["default"].div `
|
|
4020
|
-
background: #FFF;
|
|
4021
|
-
border-radius: 4px;
|
|
4022
|
-
border: 1px solid #BDBDBD;
|
|
4023
|
-
font-family: 'PT Sans';
|
|
4024
|
-
font-style: normal;
|
|
4025
|
-
font-weight: 400;
|
|
4026
|
-
font-size: 14px;
|
|
4027
|
-
line-height: 18px;
|
|
4028
|
-
color: #757575;
|
|
4029
|
-
box-shadow: 0px 25px 18px -20px rgba(34, 34, 34, 0.2);
|
|
4030
|
-
padding: 6px;
|
|
4031
|
-
position: relative;
|
|
4032
|
-
|
|
4033
|
-
${({ width }) => width && `width: ${width};`}
|
|
4034
|
-
${({ height }) => height && `height: ${height};`}
|
|
4035
|
-
|
|
4036
|
-
&::after {
|
|
4037
|
-
content: " ";
|
|
4038
|
-
left: 50%;
|
|
4039
|
-
border: solid transparent;
|
|
4040
|
-
height: 0;
|
|
4041
|
-
width: 0;
|
|
4042
|
-
position: absolute;
|
|
4043
|
-
pointer-events: none;
|
|
4044
|
-
border-width: 5px;
|
|
4045
|
-
margin-left: calc(5px * -1);
|
|
4046
|
-
}
|
|
4047
|
-
|
|
4048
|
-
&::before {
|
|
4049
|
-
content: " ";
|
|
4050
|
-
left: 50%;
|
|
4051
|
-
border: solid transparent;
|
|
4052
|
-
height: 0;
|
|
4053
|
-
width: 0;
|
|
4054
|
-
position: absolute;
|
|
4055
|
-
pointer-events: none;
|
|
4056
|
-
border-width: 6px;
|
|
4057
|
-
margin-left: calc(6px * -1);
|
|
4058
|
-
}
|
|
4059
|
-
|
|
4060
|
-
${({ direction }) => {
|
|
4061
|
-
switch (direction) {
|
|
4062
|
-
case 'top':
|
|
4063
|
-
return `
|
|
4064
|
-
&::before,
|
|
4065
|
-
&::after {
|
|
4066
|
-
top: 100%;
|
|
4067
|
-
border-top-color: #BDBDBD
|
|
4068
|
-
}
|
|
4069
|
-
|
|
4070
|
-
&::after {
|
|
4071
|
-
border-top-color: #FFFFFF;
|
|
4072
|
-
}
|
|
4073
|
-
`;
|
|
4074
|
-
case 'right':
|
|
4075
|
-
return `
|
|
4076
|
-
&::before,
|
|
4077
|
-
&::after {
|
|
4078
|
-
left: calc(6px * -1);
|
|
4079
|
-
top: 50%;
|
|
4080
|
-
transform: translateX(0) translateY(-50%);
|
|
4081
|
-
border-right-color: #BDBDBD;
|
|
4082
|
-
}
|
|
4083
|
-
|
|
4084
|
-
&::after {
|
|
4085
|
-
border-right-color: #FFFFFF;
|
|
4086
|
-
}
|
|
4087
|
-
`;
|
|
4088
|
-
case 'bottom':
|
|
4089
|
-
return `
|
|
4090
|
-
&::before,
|
|
4091
|
-
&::after {
|
|
4092
|
-
bottom: 100%;
|
|
4093
|
-
border-bottom-color: #BDBDBD;
|
|
4094
|
-
}
|
|
4095
|
-
|
|
4096
|
-
&::after {
|
|
4097
|
-
border-bottom-color: #FFFFFF;
|
|
4098
|
-
}
|
|
4099
|
-
`;
|
|
4100
|
-
case 'left':
|
|
4101
|
-
return `
|
|
4102
|
-
&::before,
|
|
4103
|
-
&::after {
|
|
4104
|
-
left: auto;
|
|
4105
|
-
right: calc(6px * -2);
|
|
4106
|
-
top: 50%;
|
|
4107
|
-
transform: translateX(0) translateY(-50%);
|
|
4108
|
-
border-left-color: #BDBDBD;
|
|
4109
|
-
}
|
|
4110
|
-
|
|
4111
|
-
&::after {
|
|
4112
|
-
border-left-color: #FFFFFF;
|
|
4113
|
-
}
|
|
4114
|
-
`;
|
|
4115
|
-
default:
|
|
4116
|
-
return '';
|
|
4117
|
-
}
|
|
4118
|
-
}}
|
|
4119
|
-
|
|
4120
|
-
`;
|
|
4121
|
-
const TooltipGhost = styled__default["default"].div `
|
|
4122
|
-
position: absolute;
|
|
4123
|
-
left: 50%;
|
|
4124
|
-
transform: translateX(-50%);
|
|
4125
|
-
z-index: 100;
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
${({ direction, height }) => {
|
|
4129
|
-
switch (direction) {
|
|
4130
|
-
case 'top':
|
|
4131
|
-
return `
|
|
4132
|
-
top: calc(${height} * -1);
|
|
4133
|
-
`;
|
|
4134
|
-
case 'right':
|
|
4135
|
-
return `
|
|
4136
|
-
left: calc(100% + 5px);
|
|
4137
|
-
top: 50%;
|
|
4138
|
-
transform: translateX(0) translateY(-50%);
|
|
4139
|
-
`;
|
|
4140
|
-
case 'bottom':
|
|
4141
|
-
return `
|
|
4142
|
-
bottom: calc(${height} * -1);
|
|
4143
|
-
`;
|
|
4144
|
-
case 'left':
|
|
4145
|
-
return `
|
|
4146
|
-
left: auto;
|
|
4147
|
-
right: calc(100% + 5px);
|
|
4148
|
-
top: 50%;
|
|
4149
|
-
transform: translateX(0) translateY(-50%);
|
|
4150
|
-
`;
|
|
4151
|
-
default:
|
|
4152
|
-
return '';
|
|
4153
|
-
}
|
|
4154
|
-
}}
|
|
4155
|
-
`;
|
|
4156
|
-
|
|
4157
|
-
function Tooltip$2({ content, direction, children, trigger = 'hover', delay = 400, style, className, width, height, onShow, onHide }) {
|
|
4158
|
-
let shpwTimeout;
|
|
4159
|
-
let hideTimeout;
|
|
4160
|
-
const [active, setActive] = React.useState(false);
|
|
4161
|
-
const [renderHeight, setRenderHeight] = React.useState('51px');
|
|
4162
|
-
const ref = React.useRef(null);
|
|
4163
|
-
React.useEffect(() => {
|
|
4164
|
-
if (!ref.current || !active)
|
|
4165
|
-
return;
|
|
4166
|
-
if (height)
|
|
4167
|
-
setRenderHeight(height);
|
|
4168
|
-
if (renderHeight === '51px')
|
|
4169
|
-
setRenderHeight(ref.current.clientHeight + 'px');
|
|
4170
|
-
}, [active]);
|
|
4171
|
-
const showTip = () => {
|
|
4172
|
-
const timeoutDelay = trigger === 'click' ? 0 : delay;
|
|
4173
|
-
shpwTimeout = setTimeout(() => {
|
|
4174
|
-
setActive(true);
|
|
4175
|
-
if (onShow)
|
|
4176
|
-
onShow({ active: true });
|
|
4177
|
-
}, timeoutDelay);
|
|
4178
|
-
};
|
|
4179
|
-
const hideTip = () => {
|
|
4180
|
-
clearInterval(shpwTimeout);
|
|
4181
|
-
clearInterval(hideTimeout);
|
|
4182
|
-
hideTimeout = setTimeout(() => {
|
|
4183
|
-
ref.current = null;
|
|
4184
|
-
setRenderHeight('51px');
|
|
4185
|
-
setActive(false);
|
|
4186
|
-
if (onHide)
|
|
4187
|
-
onHide({ active: false });
|
|
4188
|
-
}, 1000);
|
|
4189
|
-
};
|
|
4190
|
-
return (jsxRuntime.jsxs(TooltipWrapper, { onMouseEnter: trigger === 'hover' ? showTip : undefined, onMouseLeave: hideTip, onClick: trigger === 'click' ? showTip : undefined, children: [children, active && (jsxRuntime.jsx(TooltipGhost, { direction: direction || 'top', className: className, width: width || '100px', height: height ? height : renderHeight || '100px', ref: ref, children: jsxRuntime.jsx(TooltipTip, { direction: direction || 'top', style: style, width: width || '100px', height: height ? height : renderHeight || '100px', children: content }) }))] }));
|
|
4191
|
-
}
|
|
4192
|
-
|
|
4193
4198
|
// Create react context to share data between components
|
|
4194
4199
|
const SelectContext = React__default["default"].createContext(null);
|
|
4195
4200
|
|
|
@@ -5483,12 +5488,12 @@ styleInject(css_248z$i);
|
|
|
5483
5488
|
var problemaFRST = "data:image/png;base64,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";
|
|
5484
5489
|
|
|
5485
5490
|
function ApprovesItem(props) {
|
|
5486
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: style$b.containerItem, children: [jsxRuntime.jsx("div", { className: style$b.avatar, style: { width: props.size }, children: jsxRuntime.jsx(Avatar, { src: props.avatar, size: props.avatarSize }) }), props.statusApprove === 'reviewed' ?
|
|
5491
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: style$b.containerItem, children: [jsxRuntime.jsx("div", { className: style$b.avatar, style: { width: props.size, cursor: props.onClickUserInfo ? 'pointer' : 'auto' }, onClick: () => props.onClickUserInfo ? props.onClickUserInfo() : {}, children: jsxRuntime.jsx(Avatar, { src: props.avatar, size: props.avatarSize, isActiveClick: !!props.onClickUserInfo }) }), props.statusApprove === 'reviewed' ?
|
|
5487
5492
|
jsxRuntime.jsx("div", { children: jsxRuntime.jsx(StatusProblemaSawBadgeIcon, {}) })
|
|
5488
5493
|
: props.statusApprove === 'adjustments' ?
|
|
5489
5494
|
jsxRuntime.jsx("div", { children: jsxRuntime.jsx(StatusProblemaEdit, {}) })
|
|
5490
5495
|
:
|
|
5491
|
-
jsxRuntime.jsx("div", { children: jsxRuntime.jsx(StatusProblemaSendIcon, {}) }), jsxRuntime.jsx("div", { style: { width: props.size }, className: style$b.status_logo, children: jsxRuntime.jsx(Avatar, { src: problemaFRST, size: props.avatarSize }) })] }), jsxRuntime.jsx("div", { className: style$b.containerItem, style: { marginTop: '8px' }, children: jsxRuntime.jsxs("div", { className: style$b.containerData, style: { width: props.size }, children: [jsxRuntime.jsx("span", { className: style$b.name, children: props.nomeAvatar }), jsxRuntime.jsx("span", { className: style$b.sub_title, children: props.dataAvatar })] }) })] }));
|
|
5496
|
+
jsxRuntime.jsx("div", { children: jsxRuntime.jsx(StatusProblemaSendIcon, {}) }), jsxRuntime.jsx("div", { style: { width: props.size }, className: style$b.status_logo, children: jsxRuntime.jsx(Avatar, { src: problemaFRST, size: props.avatarSize }) })] }), jsxRuntime.jsx("div", { className: style$b.containerItem, style: { marginTop: '8px', cursor: props.onClickUserInfo ? 'pointer' : 'auto' }, onClick: () => props.onClickUserInfo ? props.onClickUserInfo() : {}, children: jsxRuntime.jsxs("div", { className: style$b.containerData, style: { width: props.size }, children: [jsxRuntime.jsx("span", { className: style$b.name, children: props.nomeAvatar }), jsxRuntime.jsx("span", { className: style$b.sub_title, children: props.dataAvatar })] }) })] }));
|
|
5492
5497
|
}
|
|
5493
5498
|
function ModalStatusProblema(props) {
|
|
5494
5499
|
// Função para pegar o width da tela
|
|
@@ -5502,7 +5507,7 @@ function ModalStatusProblema(props) {
|
|
|
5502
5507
|
return () => window.removeEventListener('resize', updateSize);
|
|
5503
5508
|
}, []);
|
|
5504
5509
|
const BREAKWIDTH = 500;
|
|
5505
|
-
return (jsxRuntime.jsx(material.Modal, { open: props.open, onClose: props.handleClose, children: jsxRuntime.jsxs(material.Box, { className: style$b.modalBox, style: { top: '50%', left: '50%', transform: 'translate(-50%, -50%)', ...props.style }, children: [jsxRuntime.jsx("div", { className: style$b.fechar, onClick: props.handleClose, children: jsxRuntime.jsx(CloseIcon, {}) }), jsxRuntime.jsx("div", { className: style$b.titulo, children: props.title }), jsxRuntime.jsx("div", { className: style$b.container, style: { height: props.approves.length >= 3 ? 555 : 185 * props.approves.length }, children: props.approves.map((item, index) => (jsxRuntime.jsx(ApprovesItem, { avatarSize: (size[0] >= BREAKWIDTH) ? '120px' : '100px', size: (size[0] >= BREAKWIDTH) ? '160px' : '120px', nomeAvatar: item.nome, dataAvatar: item.data, statusApprove: item.approve, avatar: item.avatarFoto }, index))) }), jsxRuntime.jsxs("div", { className: style$b.modal_controls_wrapper, children: [jsxRuntime.jsx("div", { className: style$b.descricao, children: props.description }), jsxRuntime.jsx("div", { className: style$b.conclusao, children: jsxRuntime.jsx(Button$5, { variant: 'primary', label: props.language === 'en-US' ? 'ok, close' : 'Ok, entendi', handleClick: props.handleClose, style: { width: '100%', minWidth: '140px' } }) })] })] }) }));
|
|
5510
|
+
return (jsxRuntime.jsx(material.Modal, { open: props.open, onClose: props.handleClose, children: jsxRuntime.jsxs(material.Box, { className: style$b.modalBox, style: { top: '50%', left: '50%', transform: 'translate(-50%, -50%)', ...props.style }, children: [jsxRuntime.jsx("div", { className: style$b.fechar, onClick: props.handleClose, children: jsxRuntime.jsx(CloseIcon, {}) }), jsxRuntime.jsx("div", { className: style$b.titulo, children: props.title }), jsxRuntime.jsx("div", { className: style$b.container, style: { height: props.approves.length >= 3 ? 555 : 185 * props.approves.length }, children: props.approves.map((item, index) => (jsxRuntime.jsx(ApprovesItem, { avatarSize: (size[0] >= BREAKWIDTH) ? '120px' : '100px', size: (size[0] >= BREAKWIDTH) ? '160px' : '120px', nomeAvatar: item.nome, dataAvatar: item.data, statusApprove: item.approve, avatar: item.avatarFoto, onClickUserInfo: item?.onClickUserInfo }, index))) }), jsxRuntime.jsxs("div", { className: style$b.modal_controls_wrapper, children: [jsxRuntime.jsx("div", { className: style$b.descricao, children: props.description }), jsxRuntime.jsx("div", { className: style$b.conclusao, children: jsxRuntime.jsx(Button$5, { variant: 'primary', label: props.language === 'en-US' ? 'ok, close' : 'Ok, entendi', handleClick: props.handleClose, style: { width: '100%', minWidth: '140px' } }) })] })] }) }));
|
|
5506
5511
|
}
|
|
5507
5512
|
|
|
5508
5513
|
var css_248z$h = ".modalLearningTech-module_modalBox__y9RGt{\n background-color: #FFF;\n max-width: 900px;\n min-height: 300px;\n max-height: 80%;\n padding-top: 30px;\n padding-bottom: 30px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n position: relative;\n\n border-radius: 10px;\n\n font-family: 'Work Sans';\n \n\n}\n\n.modalLearningTech-module_fechar__1Vw6M{\n font-size: 12px;\n color: #222222;\n padding: 12px;\n background-color: transparent;\n border-top-right-radius: 10px;\n\n display: flex;\n justify-content: right;\n align-items: center;\n position: absolute;\n top: 0px;\n right: 0px;\n\n margin-top: 0px;\n cursor: pointer;\n}\n\n.modalLearningTech-module_titulo__U8Urp{\n \n width: 100%;\n\n margin-top: 10px;\n \n font-size: 24px;\n font-weight: 700;\n \n\n display: flex;\n justify-content: center;\n align-items: center;\n\n \n}\n\n.modalLearningTech-module_container__HKtAY {\n overflow: auto;\n width: 100%;\n\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-direction: column;\n flex-wrap: noWrap;\n\n margin-top: 10px;\n\n}\n\n.modalLearningTech-module_conclusao__KHnxJ{\n margin-top: 30px;\n\n display: inline-flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: nowrap;\n\n}";
|
|
@@ -5657,7 +5662,14 @@ styleInject(css_248z$f);
|
|
|
5657
5662
|
function CardProblemGestor(props) {
|
|
5658
5663
|
const statusBg = props.statusBackgroundColor || '#757575';
|
|
5659
5664
|
const statusColor = props.statusColor || '#FFFFFF';
|
|
5660
|
-
|
|
5665
|
+
const handleChildClick = (event) => {
|
|
5666
|
+
event.stopPropagation();
|
|
5667
|
+
props.onClickUserInfo && props.onClickUserInfo();
|
|
5668
|
+
};
|
|
5669
|
+
return (jsxRuntime.jsxs("div", { className: style$8.container, style: { border: '1px solid ', borderColor: '#CCC', backgroundColor: '#FFF', color: '#000' }, onClick: () => props.onClick(props.problemID), children: [props.problemStatus !== 'problemaCriado' && (jsxRuntime.jsx("div", { className: style$8.tagStatusProblem, style: { background: statusBg || '#757575', color: statusColor }, children: props.statusName })), jsxRuntime.jsxs("div", { className: style$8.contentCard, children: [!!props?.onClickUserInfo ?
|
|
5670
|
+
jsxRuntime.jsx(Tooltip$2, { direction: "bottom", content: props.textVisitProfile ? props.textVisitProfile : 'Visitar perfil', trigger: 'hover', width: '101px', height: '32px', style: { top: '10px', textAlign: 'center' }, children: jsxRuntime.jsxs("div", { className: style$8.avatarInfoUser, onClick: handleChildClick, children: [jsxRuntime.jsxs("div", { children: [' ', jsxRuntime.jsx(Avatar, { size: "40px", src: props.userAvatar }), ' '] }), jsxRuntime.jsxs("div", { className: style$8.infoUser, children: [jsxRuntime.jsx("span", { style: { fontSize: 16, fontWeight: 600 }, children: props.userName }), jsxRuntime.jsx("span", { style: { fontSize: 14, fontWeight: 400 }, children: props.userCargo })] })] }) })
|
|
5671
|
+
:
|
|
5672
|
+
jsxRuntime.jsxs("div", { className: style$8.avatarInfoUser, children: [jsxRuntime.jsxs("div", { children: [' ', jsxRuntime.jsx(Avatar, { size: "40px", src: props.userAvatar }), ' '] }), jsxRuntime.jsxs("div", { className: style$8.infoUser, children: [jsxRuntime.jsx("span", { style: { fontSize: 16, fontWeight: 600 }, children: props.userName }), jsxRuntime.jsx("span", { style: { fontSize: 14, fontWeight: 400 }, children: props.userCargo })] })] }), props.cardTitle && (jsxRuntime.jsx("div", { className: style$8.tituloCard, style: { color: '#FF4D0D', width: '100%' }, children: jsxRuntime.jsx("span", { children: props.cardTitle }) })), props.tags && (jsxRuntime.jsx("div", { className: style$8.tagsContainer, children: props.tags.map((item, index) => (jsxRuntime.jsx(Tag, { title: item, color: '#050505', selected: false, inverted: true, style: { fontWeight: 500, fontSize: 14, marginRight: 8, marginTop: 8 } }, index))) })), props.ratingImpacto && (jsxRuntime.jsxs("div", { className: style$8.avaliacao, children: [jsxRuntime.jsx(Rating$1, { nota: props.ratingImpacto.nota, qtdeAvaliacao: props.ratingImpacto.qtdeAvaliacao, descricaoAvaliacao: props.ratingImpacto.description, titulo: props.locales?.impact, tipoVisualizacao: 2, style: { margin: 0, width: 120 }, nomeAvaliacao: props.locales?.evaluation }), jsxRuntime.jsx(Rating$1, { nota: props.ratingRelevancia.nota, qtdeAvaliacao: props.ratingRelevancia.qtdeAvaliacao, descricaoAvaliacao: props.ratingRelevancia.description, titulo: props.locales?.relevance, tipoVisualizacao: 2, style: { margin: 0, width: 120 }, nomeAvaliacao: props.locales?.evaluation }), jsxRuntime.jsx(RatingCurtidas, { qtdeCurtidas: props.ratingCurtidas, titulo: props.locales?.likes, tipoBotao: 4, style: { margin: 0, width: 90 }, descricaoCurtida: props.locales?.likesDescription })] })), props.lastUpdated && (jsxRuntime.jsxs("div", { style: { color: '#0645AD', fontSize: 12, fontWeight: 400, marginTop: 8 }, children: [props.lastUpdated, " "] }))] })] }));
|
|
5661
5673
|
}
|
|
5662
5674
|
|
|
5663
5675
|
var css_248z$e = ".cardProblem-module_container__eYX3j {\n width: 100%;\n border-radius: 10px;\n padding-right: 24px;\n padding-left: 48px;\n padding-top: 40px;\n padding-bottom: 24px;\n\n justify-content: flex-start;\n align-items: flex-start;\n flex-direction: row;\n position: relative;\n}\n\n.cardProblem-module_container__eYX3j:hover {\n box-shadow: 4px 8px 8px rgba(0, 0, 0, 0.2);\n}\n\n\n\n.cardProblem-module_tagStatusProblem__11NQe {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n font-size: 12px;\n font-weight: 500;\n padding: 8px;\n border-bottom-left-radius: 8px;\n border-top-right-radius: 5px;\n}\n\n.cardProblem-module_checkBox__hhdF6 {\n display: flex;\n justify-content: flex-start;\n align-items: flex-start;\n height: 100%;\n padding-top: 17px;\n padding-left: 16px;\n\n position: absolute;\n left: 0;\n}\n\n.cardProblem-module_contentCard__oBqoN {\n margin-left: 8px;\n display: flex;\n justify-content: center;\n align-items: flex-start;\n flex-direction: column;\n}\n\n.cardProblem-module_avatarInfoUser__0ppVK {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: row;\n margin-bottom: 24px;\n}\n\n.cardProblem-module_infoUser__Zx6rx {\n display: flex;\n justify-content: center;\n align-items: flex-start;\n flex-direction: column;\n margin-left: 16px;\n}\n\n.cardProblem-module_tituloCard__JD95u {\n margin-top: 4px;\n margin-bottom: 8px;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n font-weight: 600;\n font-size: 18px;\n word-break: break-word;\n}\n\n.cardProblem-module_tagsContainer__IwGeV {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n}\n\n.cardProblem-module_buttonVerMais__qgmLA {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n position: absolute;\n bottom: 0;\n right: 0;\n font-weight: 600;\n\n margin-bottom: 26px;\n margin-right: 30px;\n}\n";
|
|
@@ -5792,7 +5804,10 @@ function CardProblem(props) {
|
|
|
5792
5804
|
color: statusName === translate[languageSlected]['hypothesesTaised'] ? '#222222' : '#FFF'
|
|
5793
5805
|
}, children: [statusName, statusName === translate[languageSlected]['finished'] && (jsxRuntime.jsx("div", { style: { marginLeft: '0.5rem' }, children: jsxRuntime.jsx(CardFinished, {}) }))] }), jsxRuntime.jsx("div", { className: style$7.checkBox, onClick: () => {
|
|
5794
5806
|
props.handleSelect(props.problemID);
|
|
5795
|
-
}, children: selected ? jsxRuntime.jsx(CheckboxChecked, {}) : jsxRuntime.jsx(CheckboxEmpty, {}) }), jsxRuntime.jsxs("div", { className: style$7.contentCard, children: [
|
|
5807
|
+
}, children: selected ? jsxRuntime.jsx(CheckboxChecked, {}) : jsxRuntime.jsx(CheckboxEmpty, {}) }), jsxRuntime.jsxs("div", { className: style$7.contentCard, children: [props.onClickUserInfo ?
|
|
5808
|
+
jsxRuntime.jsx(Tooltip$2, { direction: "bottom", content: props.textVisitProfile ? props.textVisitProfile : 'Visitar perfil', trigger: 'hover', width: '101px', height: '32px', style: { top: '-10px', textAlign: 'center' }, children: jsxRuntime.jsxs("div", { className: style$7.avatarInfoUser, onClick: () => props.onClickUserInfo ? props.onClickUserInfo() : {}, style: { cursor: 'pointer' }, children: [jsxRuntime.jsxs("div", { children: [' ', jsxRuntime.jsx(Avatar, { size: "40px", src: props.userAvatar, isActiveClick: true }), ' '] }), jsxRuntime.jsxs("div", { className: style$7.infoUser, children: [jsxRuntime.jsx("span", { style: { fontSize: 16, fontWeight: 600, cursor: 'pointer' }, children: props.userName }), jsxRuntime.jsx("span", { style: { fontSize: 14, fontWeight: 400 }, children: props.userCargo })] })] }) })
|
|
5809
|
+
:
|
|
5810
|
+
jsxRuntime.jsxs("div", { className: style$7.avatarInfoUser, children: [jsxRuntime.jsxs("div", { children: [' ', jsxRuntime.jsx(Avatar, { size: "40px", src: props.userAvatar }), ' '] }), jsxRuntime.jsxs("div", { className: style$7.infoUser, children: [jsxRuntime.jsx("span", { style: { fontSize: 16, fontWeight: 600, cursor: 'auto' }, children: props.userName }), jsxRuntime.jsx("span", { style: { fontSize: 14, fontWeight: 400 }, children: props.userCargo })] })] }), props.isVerified ? (jsxRuntime.jsxs("div", { style: { textAlign: 'center', display: 'flex' }, children: [jsxRuntime.jsx("div", { style: { color: selected ? '#FFF' : '#000', width: '100%', fontWeight: 700 }, children: jsxRuntime.jsx("span", { children: translate[languageSlected]['verifiedChallenge'] }) }), jsxRuntime.jsx(SawBadgeIcon, {})] })) : (jsxRuntime.jsx("div", { style: { color: selected ? '#FFF' : '#000', width: '100%', fontWeight: 700 }, children: jsxRuntime.jsx("span", { children: translate[languageSlected]['challenge'] }) })), props.cardTitle && (jsxRuntime.jsx("div", { className: style$7.tituloCard, style: { color: selected ? '#FFF' : '#FF4D0D', width: '100%' }, children: jsxRuntime.jsx("span", { children: props.cardTitle }) })), statusName !== translate[languageSlected][6] ? (props.trilhaVinculada ? (jsxRuntime.jsx(TextIcon, { description: `${translate[languageSlected]['linkedTrail']} ${props.trilhaVinculada}`, svg: jsxRuntime.jsx(WithTrail, {}), style: { fontSize: 12, fontWeight: 400, marginTop: 8 } })) : (jsxRuntime.jsx(TextIcon, { description: translate[languageSlected]['notLinkedTrail'], svg: jsxRuntime.jsx(WithoutTrail, {}), style: { fontSize: 12, fontWeight: 400, marginTop: 8 } }))) : (jsxRuntime.jsx(jsxRuntime.Fragment, {})), props.lastUpdated && (jsxRuntime.jsxs("div", { style: { color: '#000', fontSize: 12, fontWeight: 400, marginTop: 40 }, children: [props.lastUpdated, " "] })), props.isButtonVerMais && (jsxRuntime.jsx("div", { className: style$7.buttonVerMais, children: jsxRuntime.jsx(Button$5, { variant: "link", label: translate[languageSlected]['viewMore'], handleClick: () => props.onClick(props.problemID) }) }))] })] }));
|
|
5796
5811
|
}
|
|
5797
5812
|
|
|
5798
5813
|
var css_248z$d = ".cardDefinicaoFase-module_container__KEYns {\r\n width: 282px !important;\r\n max-width: 282px !important;\r\n color: #222222;\r\n background-color: #fff;\r\n border-radius: 10px;\r\n justify-content: center;\r\n align-items: center;\r\n flex-direction: column;\r\n position: relative;\r\n word-break: break-word !important;\r\n word-wrap: break-word !important;\r\n overflow-wrap: break-word !important;\r\n}\r\n\r\n.cardDefinicaoFase-module_headerContainer__uxRId {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-end;\r\n background: rgba(241, 134, 36, 0.2);\r\n height: 200px;\r\n max-width: 282px;\r\n}\r\n\r\n.cardDefinicaoFase-module_titleDescription__x7pED {\r\n font-family: 'PT Sans';\r\n font-style: normal;\r\n font-weight: 700;\r\n font-size: 16px;\r\n line-height: 110%;\r\n color: #444444;\r\n max-width: 250px;\r\n word-break: break-word !important;\r\n word-wrap: break-word !important;\r\n overflow-wrap: break-word !important;\r\n}\r\n\r\n.cardDefinicaoFase-module_description__-pzJG {\r\n font-family: 'Work Sans';\r\n font-style: normal;\r\n font-weight: 500;\r\n font-size: 20px;\r\n line-height: 23px;\r\n color: #f26818;\r\n max-width: 250px;\r\n word-break: break-word !important;\r\n word-wrap: break-word !important;\r\n overflow-wrap: break-word !important;\r\n}\r\n\r\n.cardDefinicaoFase-module_descriptionContainer__XLHCC {\r\n padding: 20px;\r\n height: 197px;\r\n max-width: 282px !important;\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: flex-start;\r\n flex-wrap: wrap;\r\n margin-bottom: 1rem;\r\n word-break: break-word !important;\r\n word-wrap: break-word !important;\r\n overflow-wrap: break-word !important;\r\n}\r\n\r\n.cardDefinicaoFase-module_buttonContainer__6u6bM {\r\n display: flex;\r\n justify-content: space-between;\r\n height: 55px;\r\n padding: 0 35px;\r\n border-radius: 0px 0px 8px 8px;\r\n border: 1px solid #bdbdbd;\r\n}\r\n\r\n.cardDefinicaoFase-module_divisoria__IYAiv {\r\n border: 1px solid #bdbdbd;\r\n transform: rotate(360deg);\r\n}\r\n\r\n.cardDefinicaoFase-module_titleAndMenu__aqXT0 {\r\n display: flex;\r\n justify-content: space-between;\r\n width: 100%;\r\n align-items: center;\r\n margin-bottom: 9px;\r\n}\r\n\r\n.cardDefinicaoFase-module_titleFrase__b8v0i {\r\n font-family: 'PT Sans';\r\n font-style: normal;\r\n font-weight: 700;\r\n font-size: 25px;\r\n line-height: 110%;\r\n color: #f18624;\r\n max-width: 200px;\r\n padding-left: 1.5rem;\r\n padding-bottom: 2rem;\r\n word-break: break-word !important;\r\n word-wrap: break-word !important;\r\n overflow-wrap: break-word !important;\r\n}\r\n\r\n.cardDefinicaoFase-module_buttonFinalizado__V8Oas {\r\n display: flex;\r\n justify-content: center;\r\n height: 55px;\r\n padding: 0 35px;\r\n border-radius: 0px 0px 8px 8px;\r\n border: 1px solid #bdbdbd;\r\n}\r\n";
|
|
@@ -5980,7 +5995,10 @@ function CardResultConquista(props) {
|
|
|
5980
5995
|
React.useEffect(() => {
|
|
5981
5996
|
setBtnViewMore(props.textMoreDetails);
|
|
5982
5997
|
}, [props.textMoreDetails]);
|
|
5983
|
-
return (jsxRuntime.jsxs("div", { className: style$5.container, style: { ...props.style,
|
|
5998
|
+
return (jsxRuntime.jsxs("div", { className: style$5.container, style: { ...props.style, backgroundColor: isPressed ? '#FF4D0D' : '#FFF' }, children: [jsxRuntime.jsxs("div", { className: style$5.cardAvatar, children: [jsxRuntime.jsx(Avatar, { size: "50px", src: props.userAvatar, onClick: props.onClickAvatar, isActiveClick: !!props.onClickAvatar }), jsxRuntime.jsx("span", { children: "\u00A0\u00A0" }), props.statusCard === 1 ? (isPressed ? (jsxRuntime.jsx("img", { src: ConquistaPressed, alt: "Icone de conquista" })) : (jsxRuntime.jsx("img", { src: Conquista, alt: "Icone de conquista" }))) : isPressed ? (jsxRuntime.jsx("img", { src: AprendizadoPressed, alt: "Icone de aprendizado" })) : (jsxRuntime.jsx("img", { src: Aprendizado, alt: "Icone de aprendizado" }))] }), props.onClickName ?
|
|
5999
|
+
jsxRuntime.jsx(Tooltip$2, { direction: "bottom", content: props.textVisitProfile ? props.textVisitProfile : 'Visitar perfil', trigger: 'hover', width: '101px', height: '32px', style: { top: '10px', textAlign: 'center' }, children: jsxRuntime.jsx("span", { style: { color: isPressed ? '#FFF' : '#222', fontWeight: 600, fontSize: 16, marginTop: 12, cursor: props.onClickName ? 'pointer' : 'auto' }, onClick: props.onClickName, children: props.userName }) })
|
|
6000
|
+
:
|
|
6001
|
+
jsxRuntime.jsx("span", { style: { color: isPressed ? '#FFF' : '#222', fontWeight: 600, fontSize: 16, marginTop: 12 }, onClick: props.onClickName, children: props.userName }), jsxRuntime.jsx("span", { style: { color: isPressed ? '#FFF' : '#222', fontWeight: 400, fontSize: 12, marginTop: 4 }, children: props.userArea }), jsxRuntime.jsx("div", { className: style$5.description, style: {
|
|
5984
6002
|
color: isPressed ? '#FFD600' : '#FF4D0D',
|
|
5985
6003
|
fontWeight: 500,
|
|
5986
6004
|
fontSize: 16,
|
|
@@ -5989,7 +6007,7 @@ function CardResultConquista(props) {
|
|
|
5989
6007
|
}, children: props.description }), jsxRuntime.jsx("div", { onClick: () => {
|
|
5990
6008
|
props.onClick(props.problemId);
|
|
5991
6009
|
setIsPressed(true);
|
|
5992
|
-
}, className: style$5.verMais, children: btnViewMore ? btnViewMore : 'Mais detalhes' })] }));
|
|
6010
|
+
}, className: style$5.verMais, style: { cursor: 'pointer' }, children: btnViewMore ? btnViewMore : 'Mais detalhes' })] }));
|
|
5993
6011
|
}
|
|
5994
6012
|
|
|
5995
6013
|
const WrapperCard$7 = styled__default["default"].div `
|
|
@@ -6025,14 +6043,14 @@ function ExclusiveClassCard({ titleClass, labelButton, className, handleClick })
|
|
|
6025
6043
|
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(WrapperCard$7, { children: [jsxRuntime.jsxs(WrapperTitle, { children: [jsxRuntime.jsx(PeopleIcon, {}), jsxRuntime.jsx(TitleCard$1, { style: { marginLeft: '14.67px' }, children: titleClass })] }), jsxRuntime.jsx(WrapperButton$3, { style: { display: 'flex', justifyContent: 'end', marginRight: '26px' }, children: jsxRuntime.jsx(Button$5, { label: labelButton, startIcon: jsxRuntime.jsx(EditIcon, {}), variant: "link", handleClick: handleClick }) })] }) }));
|
|
6026
6044
|
}
|
|
6027
6045
|
|
|
6028
|
-
function ConquistaCarrossel({ onSelected, objectCards, marginsArrowButton, sizeArrowButton, horizontalMarginInternScroll, positionArrowButton, marginTopArrrowButton, textMoreDetails,
|
|
6046
|
+
function ConquistaCarrossel({ onSelected, objectCards, marginsArrowButton, sizeArrowButton, horizontalMarginInternScroll, positionArrowButton, marginTopArrrowButton, textMoreDetails, }) {
|
|
6029
6047
|
React.useState(-1);
|
|
6030
6048
|
const [btnViewMore, setBtnViewMore] = React.useState('');
|
|
6031
6049
|
React.useEffect(() => {
|
|
6032
6050
|
setBtnViewMore(textMoreDetails);
|
|
6033
6051
|
}, [textMoreDetails]);
|
|
6034
6052
|
function renderCard(item, index) {
|
|
6035
|
-
return (jsxRuntime.jsx(CardResultConquista, { textMoreDetails: btnViewMore ? btnViewMore : 'Mais detalhes', description: item.description, problemId: item.problemId, statusCard: item.statusCard, userArea: item.userArea, userName: item.userName, userAvatar: item.userAvatar, onClick: () => onSelected(item.problemId), style: { marginRight: '24px', whiteSpace: 'pre-wrap' }, onClickAvatar:
|
|
6053
|
+
return (jsxRuntime.jsx(CardResultConquista, { textMoreDetails: btnViewMore ? btnViewMore : 'Mais detalhes', description: item.description, problemId: item.problemId, statusCard: item.statusCard, userArea: item.userArea, userName: item.userName, userAvatar: item.userAvatar, onClick: () => onSelected(item.problemId), style: { marginRight: '24px', whiteSpace: 'pre-wrap' }, onClickAvatar: item.onClickUserInfo, onClickName: item.onClickUserInfo, textVisitProfile: item.textVisitProfile }, index));
|
|
6036
6054
|
}
|
|
6037
6055
|
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsx(ScrollContainer$1, { stepMove: 380, isVisibleControlsButtons: true, sizeArrowButton: sizeArrowButton, marginsArrowButton: marginsArrowButton, horizontalMarginInternScroll: horizontalMarginInternScroll, positionArrowButton: positionArrowButton ? positionArrowButton : '', marginTopArrrowButton: marginTopArrrowButton ? marginTopArrrowButton : '20px', children: objectCards.map(renderCard) }) }));
|
|
6038
6056
|
}
|
|
@@ -6873,6 +6891,7 @@ const Progress = styled__default["default"].span `
|
|
|
6873
6891
|
const Tooltip$1 = styled__default["default"].div `
|
|
6874
6892
|
position: relative;
|
|
6875
6893
|
display: inline-block;
|
|
6894
|
+
z-index: 999;
|
|
6876
6895
|
|
|
6877
6896
|
&:after #tooltipinfo {
|
|
6878
6897
|
content: "";
|
|
@@ -6906,7 +6925,7 @@ const Tooltip$1 = styled__default["default"].div `
|
|
|
6906
6925
|
`;
|
|
6907
6926
|
const Tooltiptext = styled__default["default"].div `
|
|
6908
6927
|
visibility: hidden;
|
|
6909
|
-
width: 156px;
|
|
6928
|
+
width: ${({ customWidth }) => customWidth ? customWidth : '156px'};
|
|
6910
6929
|
background-color: #fff;
|
|
6911
6930
|
border: solid 1px #BDBDBD;
|
|
6912
6931
|
|
|
@@ -6940,7 +6959,7 @@ const Tooltiptext = styled__default["default"].div `
|
|
|
6940
6959
|
}
|
|
6941
6960
|
}}
|
|
6942
6961
|
|
|
6943
|
-
margin-left: -70px;
|
|
6962
|
+
margin-left: ${({ customMarginLeft }) => customMarginLeft ? customMarginLeft : '-70px'};
|
|
6944
6963
|
|
|
6945
6964
|
-webkit-box-shadow: 10px 35px 40px -8px rgba(0,0,0,0.31);
|
|
6946
6965
|
-moz-box-shadow: 10px 35px 40px -8px rgba(0,0,0,0.31);
|
|
@@ -6969,10 +6988,36 @@ const Tooltiptext = styled__default["default"].div `
|
|
|
6969
6988
|
transform: rotate(135deg);
|
|
6970
6989
|
transition: border 0.3s ease-in-out;
|
|
6971
6990
|
}
|
|
6991
|
+
|
|
6992
|
+
&:before {
|
|
6993
|
+
content: "";
|
|
6994
|
+
width: 0;
|
|
6995
|
+
height: 0;
|
|
6996
|
+
|
|
6997
|
+
${({ position }) => {
|
|
6998
|
+
switch (position) {
|
|
6999
|
+
case 'top':
|
|
7000
|
+
return 'left: 48%; bottom: -6px;';
|
|
7001
|
+
case 'bottom':
|
|
7002
|
+
return 'left: 48%; top: -6px;';
|
|
7003
|
+
case 'right':
|
|
7004
|
+
return `
|
|
7005
|
+
top: 35%; left: -7px; border: 5px solid rgba(0,0,0,0.31)!important;
|
|
7006
|
+
position: absolute;
|
|
7007
|
+
border: 6px solid #fff;
|
|
7008
|
+
transform: rotate(135deg);
|
|
7009
|
+
transition: border 0.3s ease-in-out;`;
|
|
7010
|
+
case 'left':
|
|
7011
|
+
return 'top: 35%; right: -6px; border: 5px solid rgba(0,0,0,0.31)!important;';
|
|
7012
|
+
default:
|
|
7013
|
+
return '';
|
|
7014
|
+
}
|
|
7015
|
+
}}
|
|
7016
|
+
}
|
|
6972
7017
|
`;
|
|
6973
7018
|
|
|
6974
7019
|
function Tooltip(props) {
|
|
6975
|
-
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(Tooltip$1, { position: props.position, children: [props?.children, jsxRuntime.jsx(Tooltiptext, { id: "tooltipinfo", position: props.position, children: props?.textTooltip })] }) }));
|
|
7020
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(Tooltip$1, { position: props.position, children: [props?.children, jsxRuntime.jsx(Tooltiptext, { id: "tooltipinfo", position: props.position, customWidth: props?.customWidth ? props?.customWidth : '156px', customMarginLeft: props?.customMarginLeft ? props?.customMarginLeft : '-70px', children: props?.textTooltip })] }) }));
|
|
6976
7021
|
}
|
|
6977
7022
|
|
|
6978
7023
|
function ContentCycle({ title, description, selected, listSkils, urlPhoto, urlVideo, titleVideo, progress, started, stepContent, onSelect, typeContent, id }) {
|
|
@@ -9909,6 +9954,14 @@ const notificationDate = styled__default["default"].div `
|
|
|
9909
9954
|
font-size: 14px;
|
|
9910
9955
|
font-weight: 400;
|
|
9911
9956
|
color: ${({ theme }) => theme.colors.neutralsGrey3};
|
|
9957
|
+
`;
|
|
9958
|
+
styled__default["default"].div `
|
|
9959
|
+
display: none;
|
|
9960
|
+
position: absolute;
|
|
9961
|
+
border: 1px solid black;
|
|
9962
|
+
background-color: #fff;
|
|
9963
|
+
padding: 10px;
|
|
9964
|
+
z-index: 1000;
|
|
9912
9965
|
`;
|
|
9913
9966
|
|
|
9914
9967
|
const Divider = () => {
|
|
@@ -9919,7 +9972,14 @@ function NotificationCard(props) {
|
|
|
9919
9972
|
React.useEffect(() => {
|
|
9920
9973
|
setDescriptionNotification(props.notificationDescription);
|
|
9921
9974
|
}, [props.notificationDescription]);
|
|
9922
|
-
|
|
9975
|
+
const handleChildClick = (event) => {
|
|
9976
|
+
event.stopPropagation();
|
|
9977
|
+
props.onClickUserInfo && props.onClickUserInfo();
|
|
9978
|
+
};
|
|
9979
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(notificationContainer$1, { onClick: props.handleClick, style: { ...props.style, backgroundColor: props.isNewNotification ? '#FEF0D0' : FRSTTheme['colors'].shadeWhite }, children: [!!props?.onClickUserInfo ?
|
|
9980
|
+
jsxRuntime.jsx(Tooltip, { position: "right", textTooltip: props?.textVisitProfile ? props?.textVisitProfile : 'Visitar Perfil', customWidth: '106px', customMarginLeft: '-30px', children: jsxRuntime.jsx("div", { onClick: (e) => handleChildClick(e), children: jsxRuntime.jsx(Avatar, { src: props.notificationAvatar, size: '40px', isActiveClick: true }) }) })
|
|
9981
|
+
:
|
|
9982
|
+
jsxRuntime.jsx(Avatar, { src: props.notificationAvatar, size: '40px', isActiveClick: false }), jsxRuntime.jsxs(notificationInfo, { children: [jsxRuntime.jsx(notificationDescription, { children: jsxRuntime.jsx(Markdown__default["default"], { children: descriptionNotification }) }), props.isNewNotification ?
|
|
9923
9983
|
jsxRuntime.jsxs(notificationDate, { children: [jsxRuntime.jsx("span", { style: { fontWeight: 700, color: FRSTTheme['colors'].primary1 }, children: props.textNew }), jsxRuntime.jsx(Divider, {}), props.notificationDate] })
|
|
9924
9984
|
:
|
|
9925
9985
|
jsxRuntime.jsx(notificationDate, { children: props.notificationDate })] })] }) }));
|
|
@@ -10032,7 +10092,7 @@ function NotificationPopOver(props) {
|
|
|
10032
10092
|
const emptyStateImage = imgNotification;
|
|
10033
10093
|
const notificationsLength = props?.notificationList?.length;
|
|
10034
10094
|
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: props.isMobile ? (jsxRuntime.jsxs("div", { style: { backgroundColor: '#E5E5E5' }, children: [jsxRuntime.jsx("div", { style: { padding: 16 }, children: jsxRuntime.jsx(Button$5, { variant: "link", startIcon: jsxRuntime.jsx(BackArrow, { fill: "currentColor" }), label: props.textBack, handleClick: () => props.handleClickBack() }) }), jsxRuntime.jsxs(notificationContainerMobile, { children: [jsxRuntime.jsxs(notificationHeader, { children: [jsxRuntime.jsx("span", { style: { fontFamily: 'Work Sans', fontSize: 20, fontWeight: 500, color: FRSTTheme['colors'].primary1 }, children: props.textNotification }), jsxRuntime.jsx(Button$5, { variant: "link", label: props.textMarkAllAsRead, disabled: isNewNotification.length ? false : true, handleClick: props.handleClickMarkRead })] }), props.notificationList ? (jsxRuntime.jsx(notificationCardList, { children: props.notificationList.map((item, index) => {
|
|
10035
|
-
return (jsxRuntime.jsx("div", { style: { borderBottom: `1px solid ${FRSTTheme['colors'].borderPrimary}` }, children: jsxRuntime.jsx(NotificationCard, { style: { width: '100%' }, notificationAvatar: item.notificationAvatar, notificationDescription: item.notificationDescription, notificationDate: item.notificationDate, textNew: item.textNew, isNewNotification: item.isNewNotification, handleClick: item.handleClick }, index) }));
|
|
10095
|
+
return (jsxRuntime.jsx("div", { style: { borderBottom: `1px solid ${FRSTTheme['colors'].borderPrimary}` }, children: jsxRuntime.jsx(NotificationCard, { style: { width: '100%' }, onClickUserInfo: item.onClickUserInfo, textVisitProfile: item.textVisitProfile, notificationAvatar: item.notificationAvatar, notificationDescription: item.notificationDescription, notificationDate: item.notificationDate, textNew: item.textNew, isNewNotification: item.isNewNotification, handleClick: item.handleClick }, index) }));
|
|
10036
10096
|
}) })) : (jsxRuntime.jsx(emptyState, { children: jsxRuntime.jsxs(emptyStateInfo, { children: [jsxRuntime.jsx("img", { src: emptyStateImage, alt: "Empty notification list" }), jsxRuntime.jsx("span", { children: props.textEmptyState })] }) }))] })] })) : (jsxRuntime.jsxs(PopoverCustom, { open: props.isOpen, anchorEl: props.anchor, anchorOrigin: {
|
|
10037
10097
|
vertical: 'bottom',
|
|
10038
10098
|
horizontal: 'center'
|
|
@@ -10059,8 +10119,8 @@ function NotificationPopOver(props) {
|
|
|
10059
10119
|
transform: 'rotate(45deg)',
|
|
10060
10120
|
left: 'calc(50% - 6px)'
|
|
10061
10121
|
}
|
|
10062
|
-
} }), jsxRuntime.jsxs(notificationContainer, { children: [jsxRuntime.jsxs(notificationHeader, { onMouseOver: () => props?.setOnAreaPopOver(true), onMouseOut: () => props?.setOnAreaPopOver(false), children: [jsxRuntime.jsx("span", { style: { fontFamily: 'Work Sans', fontSize: 20, fontWeight: 500, color: FRSTTheme['colors'].primary1 }, children: props.textNotification }), jsxRuntime.jsx(Button$5, { variant: "link", label: props.textMarkAllAsRead, disabled: isNewNotification.length ? false : true, handleClick: props.handleClickMarkRead })] }), props.notificationList ? (jsxRuntime.jsx(notificationCardList, { notificationsLength: notificationsLength, children: props.notificationList.map((item, index) => {
|
|
10063
|
-
return (jsxRuntime.jsx("div", { style: { borderBottom: `1px solid ${FRSTTheme['colors'].borderPrimary}` }, onMouseOver: () => props?.setOnAreaPopOver(true), onMouseOut: () => props?.setOnAreaPopOver(false), children: jsxRuntime.jsx(NotificationCard, { notificationAvatar: item.notificationAvatar, notificationDescription: item.notificationDescription, notificationDate: item.notificationDate, textNew: item.textNew, isNewNotification: item.isNewNotification, handleClick: item.handleClick }, index) }, index));
|
|
10122
|
+
} }), jsxRuntime.jsxs(notificationContainer, { children: [jsxRuntime.jsxs(notificationHeader, { onMouseOver: () => props?.setOnAreaPopOver ? props?.setOnAreaPopOver(true) : {}, onMouseOut: () => props?.setOnAreaPopOver ? props?.setOnAreaPopOver(false) : {}, children: [jsxRuntime.jsx("span", { style: { fontFamily: 'Work Sans', fontSize: 20, fontWeight: 500, color: FRSTTheme['colors'].primary1 }, children: props.textNotification }), jsxRuntime.jsx(Button$5, { variant: "link", label: props.textMarkAllAsRead, disabled: isNewNotification.length ? false : true, handleClick: props.handleClickMarkRead })] }), props.notificationList ? (jsxRuntime.jsx(notificationCardList, { notificationsLength: notificationsLength, children: props.notificationList.map((item, index) => {
|
|
10123
|
+
return (jsxRuntime.jsx("div", { style: { borderBottom: `1px solid ${FRSTTheme['colors'].borderPrimary}` }, onMouseOver: () => props?.setOnAreaPopOver ? props?.setOnAreaPopOver(true) : {}, onMouseOut: () => props?.setOnAreaPopOver ? props?.setOnAreaPopOver(false) : {}, children: jsxRuntime.jsx(NotificationCard, { onClickUserInfo: item.onClickUserInfo, textVisitProfile: item.textVisitProfile, notificationAvatar: item.notificationAvatar, notificationDescription: item.notificationDescription, notificationDate: item.notificationDate, textNew: item.textNew, isNewNotification: item.isNewNotification, handleClick: item.handleClick }, index) }, index));
|
|
10064
10124
|
}) })) : (jsxRuntime.jsx(emptyState, { children: jsxRuntime.jsxs(emptyStateInfo, { children: [jsxRuntime.jsx("img", { src: emptyStateImage, alt: "Empty notification list" }), jsxRuntime.jsx("span", { children: props.textEmptyState })] }) }))] })] })) }));
|
|
10065
10125
|
}
|
|
10066
10126
|
|
|
@@ -14241,13 +14301,22 @@ function BannerProblemFeed(props) {
|
|
|
14241
14301
|
return (jsxRuntime.jsxs(styled.ThemeProvider, { theme: FRSTTheme, children: [props.mainAchievementValue || props.mainLearningValue ?
|
|
14242
14302
|
jsxRuntime.jsxs(achievementHeader, { style: { backgroundColor: props.isSuccessCase ? '#444' : '#4B2961' }, children: [jsxRuntime.jsx("img", { src: props.mainAchievementValue ? achievementIcon : learningIcon, width: '56', height: '56' }), jsxRuntime.jsx("span", { style: { marginLeft: 16, wordBreak: 'break-word', overflow: 'hidden', display: '-webkit-box', WebkitLineClamp: 3, WebkitBoxOrient: 'vertical' }, children: props.mainAchievementValue ? props.mainAchievementValue : props.mainLearningValue })] })
|
|
14243
14303
|
: null, jsxRuntime.jsxs(bannerContainer, { style: { borderTopLeftRadius: props.mainAchievementValue || props.mainLearningValue ? 0 : 8, borderTopRightRadius: props.mainAchievementValue || props.mainLearningValue ? 0 : 8 }, children: [props.topHeaderTagText &&
|
|
14244
|
-
jsxRuntime.jsx(topHeaderTag, { background: props.topHeaderTagBgColor, color: props.topHeaderTagColor, children: props.topHeaderTagText }), jsxRuntime.
|
|
14245
|
-
|
|
14246
|
-
|
|
14247
|
-
|
|
14248
|
-
|
|
14249
|
-
|
|
14250
|
-
|
|
14304
|
+
jsxRuntime.jsx(topHeaderTag, { background: props.topHeaderTagBgColor, color: props.topHeaderTagColor, children: props.topHeaderTagText }), jsxRuntime.jsx(headerContent, { children: props.onClickUserInfo ?
|
|
14305
|
+
jsxRuntime.jsxs(Tooltip$2, { direction: "bottom", content: props.textVisitProfile ? props.textVisitProfile : 'Visitar perfil', trigger: 'hover', width: '101px', height: '32px', style: { top: '10px', textAlign: 'center' }, children: [jsxRuntime.jsx(Avatar, { isActiveClick: true, onClick: () => props.onClickUserInfo ? props.onClickUserInfo() : {}, size: "54px", src: props.isSuccessCase ? 'https://i.gyazo.com/e9608cb76d36242de07661bee9da60dd.png' : props.userAvatar }), jsxRuntime.jsxs(userInfo, { onClick: () => props.onClickUserInfo ? props.onClickUserInfo() : {}, style: { cursor: 'pointer' }, children: [jsxRuntime.jsx("span", { style: { fontWeight: 600, fontSize: 20 }, children: props.isSuccessCase ?
|
|
14306
|
+
(props.language === 'pt-BR' ? 'Case de sucesso'
|
|
14307
|
+
: props.language === 'en-US' ? 'Success case'
|
|
14308
|
+
: props.language === 'es' ? 'Caso de exito'
|
|
14309
|
+
: props.language === 'pt-PT' ? 'Case de sucesso'
|
|
14310
|
+
: null)
|
|
14311
|
+
: props.userName }), jsxRuntime.jsx("span", { style: { fontWeight: 400, fontSize: 16 }, children: props.userPosition }), jsxRuntime.jsx("span", { style: { fontWeight: 400, fontSize: 16 }, children: props.userCompany })] })] })
|
|
14312
|
+
:
|
|
14313
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Avatar, { size: "54px", src: props.isSuccessCase ? 'https://i.gyazo.com/e9608cb76d36242de07661bee9da60dd.png' : props.userAvatar }), jsxRuntime.jsxs(userInfo, { children: [jsxRuntime.jsx("span", { style: { fontWeight: 600, fontSize: 20 }, children: props.isSuccessCase ?
|
|
14314
|
+
(props.language === 'pt-BR' ? 'Case de sucesso'
|
|
14315
|
+
: props.language === 'en-US' ? 'Success case'
|
|
14316
|
+
: props.language === 'es' ? 'Caso de exito'
|
|
14317
|
+
: props.language === 'pt-PT' ? 'Case de sucesso'
|
|
14318
|
+
: null)
|
|
14319
|
+
: props.userName }), jsxRuntime.jsx("span", { style: { fontWeight: 400, fontSize: 16 }, children: props.userPosition }), jsxRuntime.jsx("span", { style: { fontWeight: 400, fontSize: 16 }, children: props.userCompany })] })] }) }), jsxRuntime.jsxs(problemTitle, { children: [" ", props.problemTitle, " "] }), jsxRuntime.jsx(tagContent, { children: props.problemTags?.map((item, index) => (item &&
|
|
14251
14320
|
jsxRuntime.jsx(Tag, { style: { color: '#000 !important' }, title: item, color: "#E4E1FF", selected: false, inverted: false }, index))) }), jsxRuntime.jsxs(lastUpdatedText, { children: [jsxRuntime.jsxs("span", { style: { fontWeight: 700 }, children: [props.lastUpdated, ":"] }), jsxRuntime.jsxs("span", { children: ["\u00A0", props.lastUpdatedStep] })] }), jsxRuntime.jsx("div", { style: {
|
|
14252
14321
|
width: '100%',
|
|
14253
14322
|
paddingTop: 30,
|
|
@@ -14911,7 +14980,9 @@ function InteractionsModal({ textTitle, textSubtitle, listUsers, isOpen, handleC
|
|
|
14911
14980
|
transform: 'translate(-50%, -50%)',
|
|
14912
14981
|
...style
|
|
14913
14982
|
}, children: [jsxRuntime.jsxs(HeaderDiv, { children: [jsxRuntime.jsx("div", { style: { width: '100%', display: 'flex', justifyContent: 'flex-end' }, children: jsxRuntime.jsx(CloseButton, { onClick: () => handleClickClose(), children: jsxRuntime.jsx(CloseIcon, { width: '11' }) }) }), jsxRuntime.jsx(Typography, { children: textTitle }), jsxRuntime.jsx(Typography, { children: textSubtitle })] }), jsxRuntime.jsx(ContentDiv, { ref: scrollContainerRef, onScroll: handleScroll, onClick: trackClick ? () => trackClick() : () => { }, children: jsxRuntime.jsx(ContentScroll, { children: listUsersState && listUsersState.map((item) => {
|
|
14914
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.
|
|
14983
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(CardItemUser, { children: item?.onClickUserInfo ?
|
|
14984
|
+
jsxRuntime.jsxs(Tooltip$2, { direction: "bottom", content: item.textVisitProfile ? item.textVisitProfile : 'Visitar perfil', trigger: 'hover', width: '101px', height: '32px', style: { top: '10px', textAlign: 'center' }, children: [jsxRuntime.jsx(Avatar, { size: '50px', src: item?.avatar, isActiveClick: true, onClick: () => item?.onClickUserInfo ? item?.onClickUserInfo() : {} }), jsxRuntime.jsxs(UserInfoContainer, { onClick: () => item?.onClickUserInfo ? item?.onClickUserInfo() : {}, style: { cursor: item?.onClickUserInfo ? 'pointer' : 'auto' }, children: [jsxRuntime.jsxs(NameUser$2, { children: [" ", item?.name, " "] }), jsxRuntime.jsxs(PositionUser, { children: [" ", item?.position, " "] }), jsxRuntime.jsxs(OrgUser, { children: [" ", item?.organization, " "] })] })] })
|
|
14985
|
+
: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Avatar, { size: '50px', src: item?.avatar }), jsxRuntime.jsxs(UserInfoContainer, { onClick: () => item?.onClickUserInfo ? item?.onClickUserInfo() : {}, style: { cursor: item?.onClickUserInfo ? 'pointer' : 'auto' }, children: [jsxRuntime.jsxs(NameUser$2, { children: [" ", item?.name, " "] }), jsxRuntime.jsxs(PositionUser, { children: [" ", item?.position, " "] }), jsxRuntime.jsxs(OrgUser, { children: [" ", item?.organization, " "] })] })] }) }, item?.id) }));
|
|
14915
14986
|
}) }) })] }) }) }));
|
|
14916
14987
|
}
|
|
14917
14988
|
|
|
@@ -15334,6 +15405,7 @@ styled__default["default"].div `
|
|
|
15334
15405
|
const UserInfo$1 = styled__default["default"].div `
|
|
15335
15406
|
display: flex;
|
|
15336
15407
|
flex-direction: row;
|
|
15408
|
+
cursor: pointer !important;
|
|
15337
15409
|
`;
|
|
15338
15410
|
const DescriptionUser$1 = styled__default["default"].div `
|
|
15339
15411
|
display: flex;
|
|
@@ -15600,7 +15672,7 @@ const ButtonSuccessV2 = styled__default["default"].div `
|
|
|
15600
15672
|
transition: all 1s ease-in-out;
|
|
15601
15673
|
`;
|
|
15602
15674
|
|
|
15603
|
-
function ParticipantCardOld({ variant, userInfo, labels, successfullInvite, style, handleSendInvitation, handleClickRemove }) {
|
|
15675
|
+
function ParticipantCardOld({ variant, userInfo, labels, successfullInvite, style, handleSendInvitation, handleClickRemove, onClickUserInfo, textVisitProfile }) {
|
|
15604
15676
|
const [userName, setUserName] = React.useState(userInfo?.name);
|
|
15605
15677
|
const [userEmail, setUserEmail] = React.useState(userInfo?.email);
|
|
15606
15678
|
const [area, setArea] = React.useState(`${labels?.area ? labels?.area : 'Área'}: ${userInfo?.area}`);
|
|
@@ -15617,7 +15689,7 @@ function ParticipantCardOld({ variant, userInfo, labels, successfullInvite, styl
|
|
|
15617
15689
|
setStatusSend('success');
|
|
15618
15690
|
handleSendInvitation(userInfo?.id);
|
|
15619
15691
|
};
|
|
15620
|
-
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(WrapperCard$2, { variant: variant, style: { ...style }, children: [jsxRuntime.jsxs(UserInfo$1, { children: [jsxRuntime.jsx(Avatar, { size: "40px", src: userInfo?.avatar }), jsxRuntime.jsxs(DescriptionUser$1, { children: [userName && userName?.length > 25 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userName, children: jsxRuntime.jsx(NameUser$1, { children: userName }) })) : (jsxRuntime.jsx(NameUser$1, { children: userName })), userEmail && userEmail?.length > 20 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userEmail, children: jsxRuntime.jsx(EmailUser$1, { children: limitString(userEmail, 20) }) })) : (jsxRuntime.jsx(EmailUser$1, { children: userEmail }))] })] }), jsxRuntime.jsxs(UserAdditionalInfo$1, { children: [area && area?.length > 31 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userInfo?.area, children: jsxRuntime.jsx(Area$1, { variant: variant, children: area }) })) : (jsxRuntime.jsx(Area$1, { variant: variant, children: area })), position && position?.length > 33 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userInfo?.position, children: jsxRuntime.jsx(Position$1, { children: position }) })) : (jsxRuntime.jsx(Position$1, { children: position }))] }), variant == 'secondary' ? (jsxRuntime.jsx(FooterButtonVariantIcons, { statusSend: statusSend, clickSendInvitation: clickSendInvitation, handleClickRemove: handleClickRemove, labels: labels, userInfo: userInfo, variant: variant, IconSend: jsxRuntime.jsx(LetterEnvelopLineIcon, {}) })) : (variant == 'tertiary' ?
|
|
15692
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(WrapperCard$2, { variant: variant, style: { ...style }, children: [jsxRuntime.jsxs(UserInfo$1, { onClick: () => onClickUserInfo ? onClickUserInfo() : {}, children: [jsxRuntime.jsx(Tooltip$2, { direction: "top", content: textVisitProfile ? textVisitProfile : 'Visitar perfil', trigger: 'hover', width: '101px', height: '32px', style: { top: '-10px', textAlign: 'center' }, children: jsxRuntime.jsx(Avatar, { size: "40px", src: userInfo?.avatar, isActiveClick: true }) }), jsxRuntime.jsxs(DescriptionUser$1, { children: [userName && userName?.length > 25 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userName, children: jsxRuntime.jsx(NameUser$1, { children: userName }) })) : (jsxRuntime.jsx(NameUser$1, { children: userName })), userEmail && userEmail?.length > 20 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userEmail, children: jsxRuntime.jsx(EmailUser$1, { children: limitString(userEmail, 20) }) })) : (jsxRuntime.jsx(EmailUser$1, { children: userEmail }))] })] }), jsxRuntime.jsxs(UserAdditionalInfo$1, { children: [area && area?.length > 31 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userInfo?.area, children: jsxRuntime.jsx(Area$1, { variant: variant, children: area }) })) : (jsxRuntime.jsx(Area$1, { variant: variant, children: area })), position && position?.length > 33 ? (jsxRuntime.jsx(Tooltip, { position: "top", textTooltip: userInfo?.position, children: jsxRuntime.jsx(Position$1, { children: position }) })) : (jsxRuntime.jsx(Position$1, { children: position }))] }), variant == 'secondary' ? (jsxRuntime.jsx(FooterButtonVariantIcons, { statusSend: statusSend, clickSendInvitation: clickSendInvitation, handleClickRemove: handleClickRemove, labels: labels, userInfo: userInfo, variant: variant, IconSend: jsxRuntime.jsx(LetterEnvelopLineIcon, {}) })) : (variant == 'tertiary' ?
|
|
15621
15693
|
jsxRuntime.jsx(FooterButtonVariantIcons, { statusSend: statusSend, clickSendInvitation: () => handleSendInvitation(userInfo?.id), handleClickRemove: handleClickRemove, labels: labels, userInfo: userInfo, variant: variant, IconSend: jsxRuntime.jsx(PeopleLineIcon, {}) })
|
|
15622
15694
|
:
|
|
15623
15695
|
jsxRuntime.jsx(FooterButtonDefault, { statusSend: statusSend, clickSendInvitation: clickSendInvitation, handleClickRemove: handleClickRemove, labels: labels, userInfo: userInfo }))] }) }));
|
|
@@ -18707,7 +18779,7 @@ styleInject(css_248z);
|
|
|
18707
18779
|
|
|
18708
18780
|
function DropdownMultiselect(props) {
|
|
18709
18781
|
const [selectedValues, setSelectedValues] = React.useState([]);
|
|
18710
|
-
const [textFilter, setTextFilter] =
|
|
18782
|
+
// const [textFilter, setTextFilter] = useState('')
|
|
18711
18783
|
const [listItemsFilter, setListItemsFilter] = React.useState(props.listItems);
|
|
18712
18784
|
const [showModal, setShowModal] = React.useState(false);
|
|
18713
18785
|
const [listFilterSearch, setListFilterSearch] = React.useState();
|
|
@@ -18717,10 +18789,10 @@ function DropdownMultiselect(props) {
|
|
|
18717
18789
|
React.useEffect(() => {
|
|
18718
18790
|
setListFilterSearch(props.listItems);
|
|
18719
18791
|
}, [props.listItems]);
|
|
18720
|
-
|
|
18721
|
-
|
|
18722
|
-
|
|
18723
|
-
}, [textFilter])
|
|
18792
|
+
// useEffect(() => {
|
|
18793
|
+
// let temp = listItemsFilter.filter((resp) => resp.name.toLowerCase().includes(textFilter))
|
|
18794
|
+
// setListFilterSearch(temp)
|
|
18795
|
+
// }, [textFilter])
|
|
18724
18796
|
React.useEffect(() => {
|
|
18725
18797
|
if (props.selectedDefault) {
|
|
18726
18798
|
setSelectedValues(props?.selectedDefault);
|
|
@@ -18766,7 +18838,7 @@ function DropdownMultiselect(props) {
|
|
|
18766
18838
|
const selectedItems = selectedValues;
|
|
18767
18839
|
const lengthList = selectedItems ? selectedItems?.length : 0;
|
|
18768
18840
|
return props.listItems.length >= lengthList ? (jsxRuntime.jsxs(searchAndButton, { children: [jsxRuntime.jsx("div", { style: { marginBottom: '1rem' }, children: jsxRuntime.jsx(SearchField, { placeholder: props.searchSelectPlaceholder ? props.searchSelectPlaceholder : 'Buscar', className: null, handleClickButton: null, isButton: true, hasSearchIcon: true, onChange: (e) => {
|
|
18769
|
-
|
|
18841
|
+
props.onSearch(e.target.value);
|
|
18770
18842
|
} }) }), jsxRuntime.jsx(Button$5, { variant: 'link', label: props.btnSelectAllText ? props.btnSelectAllText : 'Selecionar todos', disabled: false, handleClick: () => {
|
|
18771
18843
|
setSelectedValues(listItemsFilter);
|
|
18772
18844
|
} })] })) : jsxRuntime.jsx(jsxRuntime.Fragment, {});
|