umwd-components 0.1.684 → 0.1.686
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/node_modules/base64-js/index.js +1 -1
- package/dist/node_modules/ieee754/index.js +1 -1
- package/dist/src/components/common/AmountIndicator.js +1 -1
- package/dist/src/components/e-commerce/products/EditStockForm.js +1 -1
- package/dist/src/components/logistics/report/ReportMakingComponent.js +1 -1
- package/dist/src/components/logistics/report/ReportsDisplay.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/common/AmountIndicator.tsx +8 -2
- package/src/components/e-commerce/products/EditStockForm.tsx +6 -2
- package/src/components/logistics/report/ReportMakingComponent.tsx +9 -6
- package/src/components/logistics/report/ReportsDisplay.tsx +2 -2
package/package.json
CHANGED
|
@@ -31,9 +31,15 @@ export function AmountIndicator({
|
|
|
31
31
|
}}
|
|
32
32
|
>
|
|
33
33
|
{value !== maxValue ? (
|
|
34
|
-
<Typography
|
|
34
|
+
<Typography
|
|
35
|
+
variant="body2"
|
|
36
|
+
color={theme.palette[color].contrastText}
|
|
37
|
+
>{`${value} / ${maxValue}`}</Typography>
|
|
35
38
|
) : (
|
|
36
|
-
<Typography
|
|
39
|
+
<Typography
|
|
40
|
+
variant="body2"
|
|
41
|
+
color={theme.palette[color].contrastText}
|
|
42
|
+
>{`${value}`}</Typography>
|
|
37
43
|
)}
|
|
38
44
|
</Box>
|
|
39
45
|
);
|
|
@@ -85,7 +85,9 @@ export function EditStockForm({
|
|
|
85
85
|
</Grid>
|
|
86
86
|
<Grid item xs={12}>
|
|
87
87
|
<TableContainer component={Paper}>
|
|
88
|
-
<Typography variant="h6"
|
|
88
|
+
<Typography variant="h6" sx={{ pl: 2 }}>
|
|
89
|
+
Incoming orders
|
|
90
|
+
</Typography>
|
|
89
91
|
<Table size="small">
|
|
90
92
|
<TableHead>
|
|
91
93
|
<TableRow>
|
|
@@ -159,7 +161,9 @@ export function EditStockForm({
|
|
|
159
161
|
</TableRow>
|
|
160
162
|
</TableFooter>
|
|
161
163
|
</Table>
|
|
162
|
-
<Typography variant="h6"
|
|
164
|
+
<Typography variant="h6" sx={{ pl: 2 }}>
|
|
165
|
+
Outgoing orders
|
|
166
|
+
</Typography>
|
|
163
167
|
<Table size="small">
|
|
164
168
|
<TableHead>
|
|
165
169
|
<TableRow>
|
|
@@ -18,7 +18,8 @@ import { createReportAction } from "../../../data/actions/logistics/report/creat
|
|
|
18
18
|
import { ReportMakingComponentProps } from "../../../types/logistics/Report";
|
|
19
19
|
import MarkdownEditor from "../../../components/common/markdown/MarkdownEditor";
|
|
20
20
|
import AnnouncementIcon from "@mui/icons-material/Announcement";
|
|
21
|
-
import { Tooltip } from "@mui/material";
|
|
21
|
+
import { Box, Tooltip } from "@mui/material";
|
|
22
|
+
import { Block } from "@mui/icons-material";
|
|
22
23
|
|
|
23
24
|
const INITIAL_STATE = {
|
|
24
25
|
zodErrors: null,
|
|
@@ -57,11 +58,13 @@ export default function ReportMakingComponent({
|
|
|
57
58
|
|
|
58
59
|
return (
|
|
59
60
|
<>
|
|
60
|
-
<
|
|
61
|
-
<
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
<Box sx={{ display: "block", position: "relative" }}>
|
|
62
|
+
<Tooltip title="Create a report">
|
|
63
|
+
<IconButton onClick={() => setOpen(true)}>
|
|
64
|
+
<AnnouncementIcon fontSize="large" />
|
|
65
|
+
</IconButton>
|
|
66
|
+
</Tooltip>
|
|
67
|
+
</Box>
|
|
65
68
|
|
|
66
69
|
<Dialog open={open} fullWidth={true} maxWidth={"lg"}>
|
|
67
70
|
<form action={formAction}>
|
|
@@ -30,12 +30,12 @@ const ReportsDisplay = ({ reports }: { reports: Report[] }) => {
|
|
|
30
30
|
</Grid>
|
|
31
31
|
<Grid item xs={2}>
|
|
32
32
|
<Typography variant="body2" align="right">
|
|
33
|
-
{report.author?.username}
|
|
33
|
+
{report.author?.username ? report.author.username : "Unknown"}
|
|
34
34
|
</Typography>
|
|
35
35
|
</Grid>
|
|
36
36
|
|
|
37
37
|
<Grid item xs={12}>
|
|
38
|
-
<Divider sx={{
|
|
38
|
+
<Divider sx={{ my: 1 }} />
|
|
39
39
|
</Grid>
|
|
40
40
|
</Grid>
|
|
41
41
|
);
|