frst-components 0.23.84 → 0.23.86
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
|
@@ -7640,6 +7640,7 @@ function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpediment
|
|
|
7640
7640
|
description: 'Priorizar',
|
|
7641
7641
|
onClick: () => selectedTab?.handlePriorize(selectedTab),
|
|
7642
7642
|
disabled: !!selectedTab?.disabledPriorize,
|
|
7643
|
+
color: !!selectedTab?.disabledPriorize ? "#b7b7b7" : "#222222",
|
|
7643
7644
|
startIcon: jsxRuntime.jsx(StarPrioritize, { stroke: !!selectedTab?.disabledPriorize ? "#b7b7b7" : "#222222" })
|
|
7644
7645
|
}] : []),
|
|
7645
7646
|
...(selectedTab?.handleEdit ? [{
|
|
@@ -21938,7 +21939,10 @@ function TableBody$1({ data, expandedRows, handleExpandClick, columns }) {
|
|
|
21938
21939
|
return (jsxRuntime.jsx("tbody", { children: data.map((row, index) => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(TableRow, { row: row, index: index, columns: columns, handleExpandClick: handleExpandClick, isExpanded: !!expandedRows?.[row?.id] }), jsxRuntime.jsx(ExpandableRow, { index: index, row: row, columns: columns, isExpanded: !!expandedRows?.[row?.id] })] }, row.id))) }));
|
|
21939
21940
|
}
|
|
21940
21941
|
function TableRow({ row, index, handleExpandClick, isExpanded, columns }) {
|
|
21941
|
-
return (jsxRuntime.jsxs(WrapperDataRow, { index: index, children: [row.value.map((cell, index) => (jsxRuntime.jsx(TableDataRowItem, { children: cell }, index))), row.showButtonExpanded ? (jsxRuntime.jsx("td", { children: jsxRuntime.jsx(ExpandButton, { isExpanded: isExpanded, onClick: () =>
|
|
21942
|
+
return (jsxRuntime.jsxs(WrapperDataRow, { index: index, onClick: () => row.showButtonExpanded && handleExpandClick(row.id), style: { cursor: row.showButtonExpanded ? 'pointer' : 'auto' }, children: [row.value.map((cell, index) => (jsxRuntime.jsx(TableDataRowItem, { children: cell }, index))), row.showButtonExpanded ? (jsxRuntime.jsx("td", { children: jsxRuntime.jsx(ExpandButton, { isExpanded: isExpanded, onClick: (event) => {
|
|
21943
|
+
handleExpandClick(row.id);
|
|
21944
|
+
event.stopPropagation();
|
|
21945
|
+
} }) })) : (jsxRuntime.jsx("td", {}))] }));
|
|
21942
21946
|
}
|
|
21943
21947
|
function ExpandableRow({ index, row, columns, isExpanded }) {
|
|
21944
21948
|
return (jsxRuntime.jsx(TableDataChildrenItem, { index: index, children: jsxRuntime.jsx("td", { colSpan: columns.length + 1, children: jsxRuntime.jsx(TableDataChildrenControlExpand, { index: index, isExpanded: isExpanded, children: row.children }) }) }));
|
|
@@ -21984,7 +21988,10 @@ const WrapperCollaboratorAvatar = styled__default["default"].div `
|
|
|
21984
21988
|
`;
|
|
21985
21989
|
|
|
21986
21990
|
function CollaboratorAvatar({ src, onPressAvatar, labelTextVisitProfile, uuid, align }) {
|
|
21987
|
-
return (jsxRuntime.jsx(WrapperCollaboratorAvatar, { align: align, children: onPressAvatar && uuid ? (jsxRuntime.jsx(Tooltip$2, { direction: "bottom", content: labelTextVisitProfile ? labelTextVisitProfile : 'Visitar perfil', trigger: "hover", width: "fit-content", height: "32px", style: { top: '10px', textAlign: 'center', whiteSpace: 'nowrap' }, children: jsxRuntime.jsx(
|
|
21991
|
+
return (jsxRuntime.jsx(WrapperCollaboratorAvatar, { align: align, children: onPressAvatar && uuid ? (jsxRuntime.jsx(Tooltip$2, { direction: "bottom", content: labelTextVisitProfile ? labelTextVisitProfile : 'Visitar perfil', trigger: "hover", width: "fit-content", height: "32px", style: { top: '10px', textAlign: 'center', whiteSpace: 'nowrap' }, children: jsxRuntime.jsx("div", { onClick: (event) => {
|
|
21992
|
+
event.stopPropagation();
|
|
21993
|
+
onPressAvatar?.(uuid);
|
|
21994
|
+
}, children: jsxRuntime.jsx(Avatar, { size: "32px", src: src ? src : 'https://cdn-images.frstfalconi.cloud/path582.svg', isActiveClick: !!(onPressAvatar && uuid) }) }) })) : (jsxRuntime.jsx(Avatar, { size: "32px", src: src ? src : 'https://cdn-images.frstfalconi.cloud/path582.svg', onClick: null, isActiveClick: !!(onPressAvatar && uuid) })) }));
|
|
21988
21995
|
}
|
|
21989
21996
|
|
|
21990
21997
|
const WrapperDateLimit = styled__default["default"].div `
|
|
@@ -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,EACb,EAAE,oBAAoB,
|
|
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,2CAoQtB"}
|
package/dist/src/components/form-elements/table-actions/parts/CollaboratorAvatar/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form-elements/table-actions/parts/CollaboratorAvatar/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAI3D,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,GAAG,EAAE,aAAa,EAAE,qBAAqB,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form-elements/table-actions/parts/CollaboratorAvatar/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAI3D,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,GAAG,EAAE,aAAa,EAAE,qBAAqB,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,mBAAmB,2CAiCzH"}
|