@acvl/frontend-components 0.0.10 → 0.0.12
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/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v1/drawers/HistorialDrawer/index.d.ts +4 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v1/drawers/HistorialDrawer/index.d.ts +4 -1
- package/dist/index.d.ts +4 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -25862,7 +25862,7 @@ const _HistorialDrawer = (props) => {
|
|
|
25862
25862
|
const [getHistorial, { data, isLoading, isFetching }] = api.useLazyGetHistorialQuery();
|
|
25863
25863
|
React.useEffect(() => {
|
|
25864
25864
|
if (props.open)
|
|
25865
|
-
getHistorial({ endpoint:
|
|
25865
|
+
getHistorial({ endpoint: props.endpoint || pathname });
|
|
25866
25866
|
}, [getHistorial, pathname, props.endpoint, props.open]);
|
|
25867
25867
|
return (jsxRuntime.jsx(MainDrawer, { open: props.open, drawerToggle: props.handleDrawer, title: 'Historial', children: jsxRuntime.jsx(LoadingComponent, { height: '50vh', isLoading: isLoading || isFetching, children: jsxRuntime.jsx(lab.Timeline, { sx: {
|
|
25868
25868
|
pr: 0,
|
|
@@ -25924,7 +25924,7 @@ const HistorialDrawer = (props) => {
|
|
|
25924
25924
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(material.Tooltip, { title: 'Historial', children: jsxRuntime.jsx(material.IconButton, { color: 'primary', onClick: handleDrawer, sx: {
|
|
25925
25925
|
position: 'absolute',
|
|
25926
25926
|
right: 0,
|
|
25927
|
-
}, children: jsxRuntime.jsx(HistoryIcon, {}) }) }), jsxRuntime.jsx(_HistorialDrawer, { open: open, handleDrawer: handleDrawer,
|
|
25927
|
+
}, ...props.iconButtonProps, children: jsxRuntime.jsx(HistoryIcon, {}) }) }), jsxRuntime.jsx(_HistorialDrawer, { open: open, handleDrawer: handleDrawer, endpoint: props.endpoint })] }));
|
|
25928
25928
|
};
|
|
25929
25929
|
|
|
25930
25930
|
const buildListItems = (content) => {
|
|
@@ -31610,7 +31610,7 @@ function DetailPage(props) {
|
|
|
31610
31610
|
// ==============================|| RENDER SECTIONS ||============================== //
|
|
31611
31611
|
const renderContent = () => {
|
|
31612
31612
|
let displayed_sections = -1;
|
|
31613
|
-
return (jsxRuntime.jsxs(material.Grid, { size: 12, container: true, direction: 'column', position: 'relative', pb: 2, children: [props.pageType == 'detail' && data
|
|
31613
|
+
return (jsxRuntime.jsxs(material.Grid, { size: 12, container: true, direction: 'column', position: 'relative', pb: 2, children: [props.pageType == 'detail' && data?.has_history && jsxRuntime.jsx(HistorialDrawer, { ...props.slotProps?.historial }), props.sections.map((section, index) => {
|
|
31614
31614
|
if (!section.display)
|
|
31615
31615
|
return null;
|
|
31616
31616
|
if (typeof section.display == 'object') {
|