trithuc-mvc-react 2.9.0 → 2.9.2
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/components/DataManagement/DataTable.jsx +3 -1
- package/components/DataManagement/DataTableSM.jsx +3 -1
- package/components/DataManagement/EditorForm.jsx +3 -3
- package/components/DataManagement/FilterGod.jsx +2 -2
- package/components/DataManagement/TableRowRenderSM.jsx +6 -3
- package/package.json +1 -1
|
@@ -255,7 +255,9 @@ const DataTable = ({ multipleActions = [], page, setPage = () => {}, disableEdit
|
|
|
255
255
|
rowCount={rows.length}
|
|
256
256
|
/>
|
|
257
257
|
{isLoading ? (
|
|
258
|
-
<
|
|
258
|
+
<TableBody>
|
|
259
|
+
<TableRowsLoader rowsNum={5} colsNum={columns.length + 4} />
|
|
260
|
+
</TableBody>
|
|
259
261
|
) : (
|
|
260
262
|
<TableBody>
|
|
261
263
|
{[...rows].map((row, index) => (
|
|
@@ -254,7 +254,9 @@ const DataTableSM = ({ multipleActions = [], page, setPage = () => {}, disableEd
|
|
|
254
254
|
rowCount={rows.length}
|
|
255
255
|
/> */}
|
|
256
256
|
{isLoading ? (
|
|
257
|
-
<
|
|
257
|
+
<TableBody>
|
|
258
|
+
<TableRowsLoader rowsNum={5} colsNum={columns.length + 4} />
|
|
259
|
+
</TableBody>
|
|
258
260
|
) : (
|
|
259
261
|
<TableBody>
|
|
260
262
|
{[...rows].map((row, index) => (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Box,
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { Box, useMediaQuery, useTheme } from "@mui/material";
|
|
2
|
+
import Grid from "@mui/material/Unstable_Grid2";
|
|
4
3
|
import PropTypes from "prop-types";
|
|
4
|
+
import { FormProvider, useForm } from "react-hook-form";
|
|
5
5
|
|
|
6
6
|
import moment from "moment/moment";
|
|
7
7
|
import { useEffect } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Accordion, AccordionSummary, Box,
|
|
1
|
+
import { Accordion, AccordionSummary, Box, Slider, Typography } from "@mui/material";
|
|
2
|
+
import Grid from "@mui/material/Unstable_Grid2";
|
|
2
3
|
import { useFormContext } from "react-hook-form";
|
|
3
|
-
|
|
4
4
|
import { FilterElement } from "./FilterElement";
|
|
5
5
|
import { useDataTable } from "./hooks";
|
|
6
6
|
|
|
@@ -93,14 +93,16 @@ export const TableRowRenderSM = ({
|
|
|
93
93
|
<Tooltip title="Chỉnh sửa">
|
|
94
94
|
<IconButton size={downXl ? "small" : "medium"} onClick={() => onEdit(row)}>
|
|
95
95
|
<EditOutlined fontSize="inherit" color="primary" />
|
|
96
|
-
</IconButton>
|
|
96
|
+
</IconButton>{" "}
|
|
97
|
+
sửa
|
|
97
98
|
</Tooltip>
|
|
98
99
|
)}
|
|
99
100
|
{canView && !tableActions?.some(({ permissionType }) => permissionType === "view") && (
|
|
100
101
|
<Tooltip title="Xem chi tiết">
|
|
101
102
|
<IconButton onClick={() => onView(row)}>
|
|
102
103
|
<RemoveRedEyeOutlinedIcon color="info" />
|
|
103
|
-
</IconButton>
|
|
104
|
+
</IconButton>{" "}
|
|
105
|
+
Xem
|
|
104
106
|
</Tooltip>
|
|
105
107
|
)}
|
|
106
108
|
{!disableDelete && canDelete && (
|
|
@@ -112,7 +114,8 @@ export const TableRowRenderSM = ({
|
|
|
112
114
|
}}
|
|
113
115
|
>
|
|
114
116
|
<DeleteOutlineIcon fontSize="inherit" color="error" />
|
|
115
|
-
</IconButton>
|
|
117
|
+
</IconButton>{" "}
|
|
118
|
+
Xóa
|
|
116
119
|
</Tooltip>
|
|
117
120
|
)}
|
|
118
121
|
</Box>
|