@acvl/frontend-components 0.0.15 → 0.0.16
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 +9 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v1/badges/StatusBadge/StatusBadge.d.ts +4 -1
- package/dist/cjs/types/src/components/v1/datagrids/wrappers/CreateGridWrapper.d.ts +1 -0
- package/dist/esm/index.js +9 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v1/badges/StatusBadge/StatusBadge.d.ts +4 -1
- package/dist/esm/types/src/components/v1/datagrids/wrappers/CreateGridWrapper.d.ts +1 -0
- package/dist/index.d.ts +4 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -26783,7 +26783,7 @@ const StatusBadge = (props) => {
|
|
|
26783
26783
|
}
|
|
26784
26784
|
}, [props?.severity]);
|
|
26785
26785
|
if (props)
|
|
26786
|
-
return (jsxRuntime.jsx(material.Box, { display: 'flex', justifyContent: 'center', alignItems: 'center', border: 4, borderRadius: 1, borderColor: color[800], bgcolor: color[100], height: 1, minWidth: 100, px: 1, children: jsxRuntime.jsx(material.Typography, { fontWeight: 'bold', sx: {
|
|
26786
|
+
return (jsxRuntime.jsx(material.Box, { display: 'flex', justifyContent: 'center', alignItems: 'center', border: 4, borderRadius: 1, borderColor: color[800], bgcolor: color[100], height: 1, minWidth: 100, px: 1, ...props.slotProps?.box, children: jsxRuntime.jsx(material.Typography, { fontWeight: 'bold', sx: {
|
|
26787
26787
|
color: color[900]
|
|
26788
26788
|
}, children: props.title }) }));
|
|
26789
26789
|
return null;
|
|
@@ -27586,7 +27586,7 @@ const CreateGridWrapper = (props) => {
|
|
|
27586
27586
|
handleClose();
|
|
27587
27587
|
}, disableRipple: true, children: option.title }, index));
|
|
27588
27588
|
})), jsxRuntime.jsx(MenuItem, { onClick: () => {
|
|
27589
|
-
navigate(`crear`);
|
|
27589
|
+
navigate(props.navigation ? `${props.navigation}crear` : `crear`);
|
|
27590
27590
|
handleClose();
|
|
27591
27591
|
}, disableRipple: true, children: "Manual" })] }), props.csv_upload?.enable && (jsxRuntime.jsx(CSVUpload, { open: csv.open, drawerToggle: handleToggleClose, data: csv.data })), props.renderFunction({ dataGridProps: createGridProps })] }));
|
|
27592
27592
|
};
|
|
@@ -27793,6 +27793,7 @@ const Base = (props) => {
|
|
|
27793
27793
|
permission: data?.permissions?.create,
|
|
27794
27794
|
renderFunction: renderFunction,
|
|
27795
27795
|
pathname: props.pathname,
|
|
27796
|
+
navigation: props.slotProps?.navigation,
|
|
27796
27797
|
...renderProps,
|
|
27797
27798
|
...props.api.create
|
|
27798
27799
|
};
|
|
@@ -27935,6 +27936,12 @@ const DetailField = (props) => {
|
|
|
27935
27936
|
if (props.fieldData)
|
|
27936
27937
|
return lodash.map(props.fieldData, function (item) { return item.label; }).join(', ');
|
|
27937
27938
|
}
|
|
27939
|
+
else if (props.type.name == 'ControlledDate') {
|
|
27940
|
+
if (props.fieldData) {
|
|
27941
|
+
if (props.extraProps.type == 'datetime')
|
|
27942
|
+
return dayjs(props.fieldData).format('YYYY-MM-DD HH:mm');
|
|
27943
|
+
}
|
|
27944
|
+
}
|
|
27938
27945
|
else {
|
|
27939
27946
|
if (props.fieldData) {
|
|
27940
27947
|
if (props.detail_name) {
|