frst-components 0.23.80 → 0.23.82
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
CHANGED
|
@@ -7520,7 +7520,7 @@ function Dropdown$1({ isOpen, anchor, onClose, impedimentoList, onClickImpedimen
|
|
|
7520
7520
|
}, children: jsxRuntime.jsx(ContainerDropdown, { children: render() }) }));
|
|
7521
7521
|
}
|
|
7522
7522
|
|
|
7523
|
-
function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpedimento, onSelectedTab, idSelectedTab, currentTab
|
|
7523
|
+
function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpedimento, onSelectedTab, idSelectedTab, currentTab }) {
|
|
7524
7524
|
const [selectedTab, setSelectedTab] = React.useState(null);
|
|
7525
7525
|
const [allTabs, setAllTabs] = React.useState([]);
|
|
7526
7526
|
const [onShowTabs, setOnShowTabs] = React.useState([]);
|
|
@@ -7602,9 +7602,9 @@ function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpediment
|
|
|
7602
7602
|
:
|
|
7603
7603
|
jsxRuntime.jsx(jsxRuntime.Fragment, {}) })] }), selectedTab?.id ?
|
|
7604
7604
|
jsxRuntime.jsx(material.Box, { display: 'flex', flexDirection: 'column', gap: '8px', onDoubleClick: () => selectedTab?.showOptions && setIsEdit(true), children: jsxRuntime.jsxs(TabInfoWrapper, { children: [jsxRuntime.jsx(Tooltip$2, { content: selectedTab?.user_name, direction: 'bottom', delay: 200, style: { width: 'fit-content', height: 'fit-content' }, children: selectedTab.isGoalOwner ?
|
|
7605
|
-
jsxRuntime.jsx(material.Box, { border: '2px solid #AD46FF', borderRadius: '50%', onClick: handleClickAvatar, children: jsxRuntime.jsx(Avatar, { src: selectedTab.avatar, size: '24px', isActiveClick: true }) })
|
|
7605
|
+
jsxRuntime.jsx(material.Box, { border: '2px solid #AD46FF', borderRadius: '50%', onClick: selectedTab?.handleClickAvatar, children: jsxRuntime.jsx(Avatar, { src: selectedTab.avatar, size: '24px', isActiveClick: true }) })
|
|
7606
7606
|
:
|
|
7607
|
-
jsxRuntime.jsx(Avatar, { src: selectedTab.avatar, size: '24px', isActiveClick: true, onClick: handleClickAvatar }) }), isEdit ?
|
|
7607
|
+
jsxRuntime.jsx(Avatar, { src: selectedTab.avatar, size: '24px', isActiveClick: true, onClick: selectedTab?.handleClickAvatar }) }), isEdit ?
|
|
7608
7608
|
jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(material.TextField, { placeholder: editDescription, value: editDescription, onChange: (e) => setEditDescription(e.target.value), fullWidth: true, variant: 'standard', InputProps: {
|
|
7609
7609
|
autoFocus: true,
|
|
7610
7610
|
disableUnderline: true,
|
|
@@ -8061,8 +8061,9 @@ hasVoting, voteHasAlreadyBeenRegistered, isVotedByUserLogged, voteText, onDelete
|
|
|
8061
8061
|
if (clickTimeoutRef.current) {
|
|
8062
8062
|
clearTimeout(clickTimeoutRef.current);
|
|
8063
8063
|
}
|
|
8064
|
-
|
|
8065
|
-
|
|
8064
|
+
if (hasEditHipotesisOrImpediment)
|
|
8065
|
+
setIsEditing(true);
|
|
8066
|
+
}, style: { height: '36px' }, children: jsxRuntime.jsxs(Tooltip$2, { content: 'Clique na hipótese para ver as ações vinculadas', direction: 'bottom', wrapperWidth: '100%', style: {
|
|
8066
8067
|
fontFamily: 'PT Sans',
|
|
8067
8068
|
fontWeight: 400,
|
|
8068
8069
|
fontSize: '14px',
|
|
@@ -8076,11 +8077,9 @@ hasVoting, voteHasAlreadyBeenRegistered, isVotedByUserLogged, voteText, onDelete
|
|
|
8076
8077
|
display: variant === 'impediment' ? 'none' : 'block'
|
|
8077
8078
|
}, children: [jsxRuntime.jsx("div", { style: {
|
|
8078
8079
|
width: isEditing ? '100%' : '0',
|
|
8080
|
+
height: isEditing ? '20px' : '0',
|
|
8079
8081
|
overflow: 'hidden',
|
|
8080
|
-
border: 'none',
|
|
8081
|
-
outline: 'none',
|
|
8082
8082
|
background: 'transparent',
|
|
8083
|
-
marginTop: '-8px'
|
|
8084
8083
|
}, children: jsxRuntime.jsx("input", { ref: inputRef, type: "text", value: editDescription, onBlur: handleSaveDescription, onChange: handleChange, onKeyDown: handleKeyDown, autoFocus: true, style: { width: '100%', border: 'none', outline: 'none', background: 'transparent' } }) }), jsxRuntime.jsx("div", { style: { width: !isEditing ? '100%' : '0', overflow: 'hidden', }, children: editDescription })] }) }), !isEditing && hasVoting && (jsxRuntime.jsx(Voting, { voteText: voteText, type: type, onDeleteVote: onDeleteVote, votersList: votersList, onVote: () => onVote(id), onChangeVote: () => onChangeVote(id), isVotedByUserLogged: isVotedByUserLogged, voteHasAlreadyBeenRegistered: voteHasAlreadyBeenRegistered, popperStyle: popperStyle })), !isEditing && validHasEditHipotesisOrImpediment && (jsxRuntime.jsx(MenuMore, { options: options, isContainerOptions: true, closeAfterClick: true }))] })] }) }) }));
|
|
8085
8084
|
};
|
|
8086
8085
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/hypotesisAndImpediment/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iCAAiC,EAAE,MAAM,2BAA2B,CAAA;AAU7E,eAAO,MAAM,uBAAuB,wbA+BjC,iCAAiC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/hypotesisAndImpediment/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iCAAiC,EAAE,MAAM,2BAA2B,CAAA;AAU7E,eAAO,MAAM,uBAAuB,wbA+BjC,iCAAiC,4CAkPnC,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ImpedimentosTabProps } from './impedimentosTab';
|
|
2
|
-
export default function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpedimento, onSelectedTab, idSelectedTab, currentTab
|
|
2
|
+
export default function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpedimento, onSelectedTab, idSelectedTab, currentTab }: ImpedimentosTabProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/impedimentosTab/index.tsx"],"names":[],"mappings":"AAUA,OAAO,EACH,oBAAoB,EAEvB,MAAM,mBAAmB,CAAA;AAa1B,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACpC,OAAO,EACP,QAAQ,EACR,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/impedimentosTab/index.tsx"],"names":[],"mappings":"AAUA,OAAO,EACH,oBAAoB,EAEvB,MAAM,mBAAmB,CAAA;AAa1B,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACpC,OAAO,EACP,QAAQ,EACR,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,UAAU,EACb,EAAE,oBAAoB,2CA+PtB"}
|