From 390bd2fd7cf4a9abedfd833daadacf3fa47b02b9 Mon Sep 17 00:00:00 2001 From: Amin Ghasempoor Date: Sun, 16 Jul 2023 11:00:57 +0330 Subject: [PATCH 01/10] machinary office implement --- .../machinary-office/Form/ConfirmForm.jsx | 16 +++--- .../machinary-office/Form/RejectForm.jsx | 16 +++--- .../machinary-office/TableRowActions.jsx | 51 ++++++++++--------- .../dashboard/machinary-office/index.jsx | 4 +- .../passenger-office/TableRowActions.jsx | 9 ++-- src/core/data/apiRoutes.js | 11 ++++ src/lib/app/hooks/useDatatable.jsx | 4 +- 7 files changed, 67 insertions(+), 44 deletions(-) diff --git a/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx b/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx index 5fd3f3b..702ce9b 100644 --- a/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx +++ b/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx @@ -1,3 +1,4 @@ +import { CONFIRM_MACHINARY_OFFICE } from "@/core/data/apiRoutes"; import { Dialog, DialogTitle, @@ -13,24 +14,25 @@ const ConfirmForm = ({ handleClose, handleDelete, rowId, - deleteData, + confirmData, }) => { const t = useTranslations(); - const handleDeleteExpert = () => { + const handleConfirm = () => { handleDelete(); + confirmData(CONFIRM_MACHINARY_OFFICE, rowId); }; return ( - {t("delete-dialog.confirm")} + {t("ConfirmDialog.confirm")} - {t("delete-dialog.context")} + {t("ConfirmDialog.context")} - diff --git a/src/components/dashboard/machinary-office/Form/RejectForm.jsx b/src/components/dashboard/machinary-office/Form/RejectForm.jsx index cf551a8..4fce632 100644 --- a/src/components/dashboard/machinary-office/Form/RejectForm.jsx +++ b/src/components/dashboard/machinary-office/Form/RejectForm.jsx @@ -1,3 +1,4 @@ +import { REJECT_MACHINARY_OFFICE } from "@/core/data/apiRoutes"; import { Dialog, DialogTitle, @@ -8,23 +9,24 @@ import { } from "@mui/material"; import { useTranslations } from "next-intl"; -const RejectForm = ({ open, handleClose, handleDelete, rowId, deleteData }) => { +const RejectForm = ({ open, handleClose, handleDelete, rowId, rejectData }) => { const t = useTranslations(); - const handleDeleteExpert = () => { + const handleRejectRequest = () => { handleDelete(); + rejectData(REJECT_MACHINARY_OFFICE, rowId); }; return ( - {t("delete-dialog.confirm")} + {t("RejectDialog.reject")} - {t("delete-dialog.context")} + {t("RejectDialog.context")} - diff --git a/src/components/dashboard/machinary-office/TableRowActions.jsx b/src/components/dashboard/machinary-office/TableRowActions.jsx index 832e77e..f5ec46b 100644 --- a/src/components/dashboard/machinary-office/TableRowActions.jsx +++ b/src/components/dashboard/machinary-office/TableRowActions.jsx @@ -6,39 +6,42 @@ import { DataTableContext } from "@/lib/app/contexts/DataTableContext"; import ConfirmForm from "./Form/ConfirmForm"; import RejectForm from "./Form/RejectForm"; -// import DeleteForm from "./Form/DeleteForm"; - const TableRowActions = ({ row }) => { - // const { - // openDeleteDialog, - // handleOpenDeleteDialog, - // handleCloseDeleteDialog, - // handleDeleteDialog, - // rowId, - // deleteData, - // } = useContext(DataTableContext); + const { + openConfirmDialog, + openRejectDialog, + handleOpenConfirmDialog, + handleOpenRejectDialog, + handleCloseConfirmDialog, + handleCloseRejectDialog, + handleConfirmDialog, + handleRejectDialog, + rowId, + confirmData, + rejectData, + } = useContext(DataTableContext); return ( - handleOpenDeleteDialog(row)}> + handleOpenConfirmDialog(row)}> - {/* */} - handleOpenDeleteDialog(row)}> + open={openConfirmDialog} + handleClose={handleCloseConfirmDialog} + handleDelete={handleConfirmDialog} + confirmData={confirmData} + /> + handleOpenRejectDialog(row)}> - {/* */} + open={openRejectDialog} + handleClose={handleCloseRejectDialog} + handleDelete={handleRejectDialog} + rejectData={rejectData} + /> ); }; diff --git a/src/components/dashboard/machinary-office/index.jsx b/src/components/dashboard/machinary-office/index.jsx index a9af448..8a88f5f 100644 --- a/src/components/dashboard/machinary-office/index.jsx +++ b/src/components/dashboard/machinary-office/index.jsx @@ -3,7 +3,7 @@ import DashboardLayouts from "@/layouts/dashboardLayouts"; import { Box, Typography } from "@mui/material"; import { useMemo } from "react"; // import TableToolbar from "./TableTollbar"; -import { GET_PASSENGER_OFFICE } from "@/core/data/apiRoutes"; +import { GET_MACHINARY_OFFICE } from "@/core/data/apiRoutes"; import { useTranslations } from "next-intl"; import TableRowActions from "./TableRowActions"; @@ -153,7 +153,7 @@ function DashboardMachinaryOfficeComponent() { { const { openConfirmDialog, @@ -24,7 +22,12 @@ const TableRowActions = ({ row }) => { } = useContext(DataTableContext); return ( - handleOpenConfirmDialog(row)}> + { + handleOpenConfirmDialog(row); + }} + > { dispatch({ type: "CONFIRM_DATA", url: url, rowID: rowID }); axios .post(`${url}/${rowID}`, { - headers: { authorization: `Bearer ${token}` }, + headers: { + Authorization: `Bearer ${token}`, + }, }) .then(() => { setReloadDataTable(true); From 024da3baf7dd45649f397950459276f5501ac0a4 Mon Sep 17 00:00:00 2001 From: Amin Ghasempoor Date: Sun, 16 Jul 2023 13:39:46 +0330 Subject: [PATCH 02/10] machinary implement --- public/locales/fa/app.json | 3 ++- .../machinary-office/Form/ConfirmForm.jsx | 16 +++++++++++++++- src/lib/app/hooks/useDatatable.jsx | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/public/locales/fa/app.json b/public/locales/fa/app.json index 1a505df..35fa040 100644 --- a/public/locales/fa/app.json +++ b/public/locales/fa/app.json @@ -109,7 +109,8 @@ "updated_at": "تاریخ بروزرسانی", "navgan_id": "کد ناوگان", "vehicle_type": "نوع ماشین", - "state_name": "وضعیت درخواست" + "state_name": "وضعیت درخواست", + "proposed_amount": "مقدار پیشنهادی" }, "ConfirmDialog": { "confirm": "تایید", diff --git a/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx b/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx index 702ce9b..3e64087 100644 --- a/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx +++ b/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx @@ -6,8 +6,10 @@ import { DialogContentText, DialogActions, Button, + TextField, } from "@mui/material"; import { useTranslations } from "next-intl"; +import { useState } from "react"; const ConfirmForm = ({ open, @@ -17,15 +19,27 @@ const ConfirmForm = ({ confirmData, }) => { const t = useTranslations(); + const [proposedAmount, setProposedAmount] = useState(""); const handleConfirm = () => { + const formData = new FormData(); + formData.append("proposed_amount", proposedAmount); handleDelete(); - confirmData(CONFIRM_MACHINARY_OFFICE, rowId); + confirmData(CONFIRM_MACHINARY_OFFICE, rowId, formData); }; return ( {t("ConfirmDialog.confirm")} {t("ConfirmDialog.context")} + setProposedAmount(e.target.value)} + sx={{ mt: 2 }} + fullWidth + /> ); }; + export default RejectForm; diff --git a/src/components/dashboard/passenger-office/TableRowActions.jsx b/src/components/dashboard/passenger-office/TableRowActions.jsx index ec2d790..1c3004c 100644 --- a/src/components/dashboard/passenger-office/TableRowActions.jsx +++ b/src/components/dashboard/passenger-office/TableRowActions.jsx @@ -16,8 +16,6 @@ const TableRowActions = ({ row }) => { handleOpenRejectDialog, handleCloseConfirmDialog, handleCloseRejectDialog, - handleConfirmDialog, - handleRejectDialog, rowId, confirmData, rejectData, @@ -27,23 +25,25 @@ const TableRowActions = ({ row }) => { handleOpenConfirmDialog(row)}> - + {openConfirmDialog && ( + + )} handleOpenRejectDialog(row)}> - + {openRejectDialog && ( + + )} ); }; diff --git a/src/lib/app/hooks/useDatatable.jsx b/src/lib/app/hooks/useDatatable.jsx index ccd772a..5627213 100644 --- a/src/lib/app/hooks/useDatatable.jsx +++ b/src/lib/app/hooks/useDatatable.jsx @@ -57,10 +57,10 @@ const useDataTable = () => { }); }, []); - const rejectData = useCallback(async (url, rowID) => { - dispatch({ type: "REJECT_DATA", url: url, rowID: rowID }); + const rejectData = useCallback(async (url, rowID, values) => { + dispatch({ type: "REJECT_DATA", url: url, rowID: rowID, values: values }); axios - .post(`${url}/${rowID}`, { + .post(`${url}/${rowID}`,values, { headers: { authorization: `Bearer ${token}` }, }) .then(() => { @@ -80,10 +80,6 @@ const useDataTable = () => { const handleCloseConfirmDialog = () => { setOpenConfirmDialog(false); }; - - const handleConfirmDialog = () => { - setOpenConfirmDialog(false); - }; //End Confirm Data // Reject Data @@ -95,19 +91,13 @@ const useDataTable = () => { const handleCloseRejectDialog = () => { setOpenRejectDialog(false); }; - - const handleRejectDialog = () => { - setOpenRejectDialog(false); - }; // End Reject Data const contextValue = { handleOpenConfirmDialog, handleCloseConfirmDialog, - handleConfirmDialog, handleOpenRejectDialog, handleCloseRejectDialog, - handleRejectDialog, rowId, openConfirmDialog, openRejectDialog, From 7d5d69203f31c200307800c8d8be7888021773e9 Mon Sep 17 00:00:00 2001 From: Yasiu1376 Date: Sun, 16 Jul 2023 14:55:54 +0330 Subject: [PATCH 04/10] fix confirm data --- src/lib/app/hooks/useDatatable.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/app/hooks/useDatatable.jsx b/src/lib/app/hooks/useDatatable.jsx index 5627213..2a9d31f 100644 --- a/src/lib/app/hooks/useDatatable.jsx +++ b/src/lib/app/hooks/useDatatable.jsx @@ -43,10 +43,10 @@ const useDataTable = () => { const { token } = useUser(); - const confirmData = useCallback(async (url, rowID) => { - dispatch({ type: "CONFIRM_DATA", url: url, rowID: rowID }); + const confirmData = useCallback(async (url, rowID, values) => { + dispatch({ type: "CONFIRM_DATA", url: url, rowID: rowID, values: values }); axios - .post(`${url}/${rowID}`, null, { + .post(`${url}/${rowID}`, values, { headers: { authorization: `Bearer ${token}` }, }) .then(() => { @@ -60,7 +60,7 @@ const useDataTable = () => { const rejectData = useCallback(async (url, rowID, values) => { dispatch({ type: "REJECT_DATA", url: url, rowID: rowID, values: values }); axios - .post(`${url}/${rowID}`,values, { + .post(`${url}/${rowID}`, values, { headers: { authorization: `Bearer ${token}` }, }) .then(() => { From 29d031a83e6b34afd11c9d1046bf284ea8a61826 Mon Sep 17 00:00:00 2001 From: Amin Ghasempoor Date: Sun, 16 Jul 2023 15:16:31 +0330 Subject: [PATCH 05/10] machinary implement --- public/locales/fa/app.json | 3 +- .../machinary-office/Form/ConfirmForm.jsx | 69 +++++++++++++++---- .../machinary-office/Form/RejectForm.jsx | 51 ++++++++++++-- .../machinary-office/TableRowActions.jsx | 39 ++++++----- src/core/data/apiRoutes.js | 2 +- src/lib/app/hooks/useDatatable.jsx | 7 +- 6 files changed, 129 insertions(+), 42 deletions(-) diff --git a/public/locales/fa/app.json b/public/locales/fa/app.json index c7b9d16..ef91fef 100644 --- a/public/locales/fa/app.json +++ b/public/locales/fa/app.json @@ -116,7 +116,8 @@ "confirm": "تایید", "context": "آیا از تایید این آیتم اطمینان دارید", "button-confirm": "تایید", - "button-cancel": "بستن" + "button-cancel": "بستن", + "amount_error": "وارد کردن مقدار پیشنهادی الزامیست" }, "RejectDialog": { "reject": "عدم تایید", diff --git a/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx b/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx index 3e64087..804036a 100644 --- a/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx +++ b/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx @@ -10,39 +10,78 @@ import { } from "@mui/material"; import { useTranslations } from "next-intl"; import { useState } from "react"; +import { useFormik } from "formik"; +import * as Yup from "yup"; -const ConfirmForm = ({ - open, - handleClose, - handleDelete, - rowId, - confirmData, -}) => { +const ConfirmForm = ({ open, handleClose, rowId, confirmData }) => { const t = useTranslations(); const [proposedAmount, setProposedAmount] = useState(""); - const handleConfirm = () => { - const formData = new FormData(); - formData.append("proposed_amount", proposedAmount); - handleDelete(); - confirmData(CONFIRM_MACHINARY_OFFICE, rowId, formData); + const [description, setDescription] = useState(""); + + //formik + const validationSchema = Yup.object().shape({ + proposed_amount: Yup.string().required(t("ConfirmDialog.amount_error")), + }); + const formik = useFormik({ + initialValues: { + proposed_amount: "", + description: "", + }, + validationSchema, + onSubmit: () => { + const formData = new FormData(); + formData.append("proposed_amount", proposedAmount); + formData.append("expert_description", description); + handleClose(); + confirmData(CONFIRM_MACHINARY_OFFICE, rowId, formData); + }, + }); + + const handleDescriptionChange = (event) => { + setDescription(event.target.value); }; + const handleAmountChange = (event) => { + setProposedAmount(event.target.value); + formik.handleChange(event); + }; + return ( {t("ConfirmDialog.confirm")} {t("ConfirmDialog.context")} + setProposedAmount(e.target.value)} - sx={{ mt: 2 }} + onChange={handleAmountChange} + onBlur={formik.handleBlur("proposed_amount")} + error={ + formik.touched.proposed_amount && + Boolean(formik.errors.proposed_amount) + } + helperText={ + formik.touched.proposed_amount && formik.errors.proposed_amount + } + sx={{ mt: 1 }} fullWidth /> - ); }; + export default RejectForm; diff --git a/src/components/dashboard/machinary-office/TableRowActions.jsx b/src/components/dashboard/machinary-office/TableRowActions.jsx index f5ec46b..e9e815e 100644 --- a/src/components/dashboard/machinary-office/TableRowActions.jsx +++ b/src/components/dashboard/machinary-office/TableRowActions.jsx @@ -14,34 +14,39 @@ const TableRowActions = ({ row }) => { handleOpenRejectDialog, handleCloseConfirmDialog, handleCloseRejectDialog, - handleConfirmDialog, - handleRejectDialog, rowId, confirmData, rejectData, } = useContext(DataTableContext); return ( - handleOpenConfirmDialog(row)}> + { + handleOpenConfirmDialog(row); + }} + > - + {openConfirmDialog && ( + + )} handleOpenRejectDialog(row)}> - + {openRejectDialog && ( + + )} ); }; diff --git a/src/core/data/apiRoutes.js b/src/core/data/apiRoutes.js index f16d573..79046bc 100644 --- a/src/core/data/apiRoutes.js +++ b/src/core/data/apiRoutes.js @@ -31,5 +31,5 @@ export const CONFIRM_MACHINARY_OFFICE = BASE_URL + "/dashboard/machinery_expert/confirm"; export const REJECT_MACHINARY_OFFICE = - BASE_URL + "dashboard/machinery_expert/reject"; + BASE_URL + "/dashboard/machinery_expert/reject"; //passenger office diff --git a/src/lib/app/hooks/useDatatable.jsx b/src/lib/app/hooks/useDatatable.jsx index e7730bc..9823aca 100644 --- a/src/lib/app/hooks/useDatatable.jsx +++ b/src/lib/app/hooks/useDatatable.jsx @@ -44,9 +44,9 @@ const useDataTable = () => { const { token } = useUser(); const confirmData = useCallback(async (url, rowID, values) => { - dispatch({ type: "CONFIRM_DATA", url: url, rowID: rowID }); + dispatch({ type: "CONFIRM_DATA", url: url, rowID: rowID, values: values }); axios - .post(`${url}/${rowID}`, null, { + .post(`${url}/${rowID}`, values, { headers: { authorization: `Bearer ${token}` }, }) .then(() => { @@ -60,13 +60,14 @@ const useDataTable = () => { const rejectData = useCallback(async (url, rowID, values) => { dispatch({ type: "REJECT_DATA", url: url, rowID: rowID, values: values }); axios - .post(`${url}/${rowID}`,values, { + .post(`${url}/${rowID}`, values, { headers: { authorization: `Bearer ${token}` }, }) .then(() => { setReloadDataTable(true); }) .catch((error) => { + console.log(error); Notifications(directionApp, error.response, t); }); }, []); From c2259031fc73e68b090fd9b88b45d9789e802c1e Mon Sep 17 00:00:00 2001 From: Amin Ghasempoor Date: Sun, 16 Jul 2023 15:31:20 +0330 Subject: [PATCH 06/10] confirm data --- src/components/dashboard/machinary-office/Form/ConfirmForm.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx b/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx index 804036a..754abce 100644 --- a/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx +++ b/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx @@ -31,7 +31,7 @@ const ConfirmForm = ({ open, handleClose, rowId, confirmData }) => { onSubmit: () => { const formData = new FormData(); formData.append("proposed_amount", proposedAmount); - formData.append("expert_description", description); + if (description != "") formData.append("expert_description", description); handleClose(); confirmData(CONFIRM_MACHINARY_OFFICE, rowId, formData); }, From 69a7f3525a3ad5233a761db690d599e607f0a0d7 Mon Sep 17 00:00:00 2001 From: Yasiu1376 Date: Sun, 16 Jul 2023 15:41:58 +0330 Subject: [PATCH 07/10] add notification to datatable --- src/lib/app/hooks/useDatatable.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/app/hooks/useDatatable.jsx b/src/lib/app/hooks/useDatatable.jsx index 2a9d31f..8b097b1 100644 --- a/src/lib/app/hooks/useDatatable.jsx +++ b/src/lib/app/hooks/useDatatable.jsx @@ -49,8 +49,9 @@ const useDataTable = () => { .post(`${url}/${rowID}`, values, { headers: { authorization: `Bearer ${token}` }, }) - .then(() => { + .then((response) => { setReloadDataTable(true); + Notifications(directionApp, response, t); }) .catch((error) => { Notifications(directionApp, error.response, t); @@ -63,8 +64,9 @@ const useDataTable = () => { .post(`${url}/${rowID}`, values, { headers: { authorization: `Bearer ${token}` }, }) - .then(() => { + .then((response) => { setReloadDataTable(true); + Notifications(directionApp, response, t); }) .catch((error) => { Notifications(directionApp, error.response, t); From 4e9d81ca719aa20b1645637ddace4f372336e151 Mon Sep 17 00:00:00 2001 From: Amin Ghasempoor Date: Sun, 16 Jul 2023 15:59:31 +0330 Subject: [PATCH 08/10] change id to national id --- public/locales/fa/app.json | 4 ++-- src/components/dashboard/machinary-office/index.jsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/locales/fa/app.json b/public/locales/fa/app.json index ef91fef..f50b62e 100644 --- a/public/locales/fa/app.json +++ b/public/locales/fa/app.json @@ -93,7 +93,7 @@ }, "PassengerOffice": { "name": "نام", - "id": "کد ملی", + "national_id": "کد ملی", "phone_number": "موبایل", "created_at": "تاریخ درخواست", "updated_at": "تاریخ بروزرسانی", @@ -103,7 +103,7 @@ }, "MachinaryOffice": { "name": "نام", - "id": "کد ملی", + "national_id": "کد ملی", "phone_number": "موبایل", "created_at": "تاریخ درخواست", "updated_at": "تاریخ بروزرسانی", diff --git a/src/components/dashboard/machinary-office/index.jsx b/src/components/dashboard/machinary-office/index.jsx index 8a88f5f..bcd3eb4 100644 --- a/src/components/dashboard/machinary-office/index.jsx +++ b/src/components/dashboard/machinary-office/index.jsx @@ -24,9 +24,9 @@ function DashboardMachinaryOfficeComponent() { ), }, { - accessorFn: (row) => row.id, - id: "id", - header: t("MachinaryOffice.id"), + accessorFn: (row) => row.national_id, + id: "national_id", + header: t("MachinaryOffice.national_id"), enableColumnFilter: true, datatype: "numeric", filterFn: "equals", From c505f57cfbb92a989d611dcde4b8d37d4b48b352 Mon Sep 17 00:00:00 2001 From: Amin Ghasempoor Date: Sun, 16 Jul 2023 16:01:22 +0330 Subject: [PATCH 09/10] change id to national id in passenger office --- src/components/dashboard/passenger-office/index.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/dashboard/passenger-office/index.jsx b/src/components/dashboard/passenger-office/index.jsx index 98af2b7..9313a5b 100644 --- a/src/components/dashboard/passenger-office/index.jsx +++ b/src/components/dashboard/passenger-office/index.jsx @@ -24,9 +24,9 @@ function DashboardPassengerOfficeComponent() { ), }, { - accessorFn: (row) => row.id, - id: "id", - header: t("PassengerOffice.id"), + accessorFn: (row) => row.national_id, + id: "national_id", + header: t("PassengerOffice.national_id"), enableColumnFilter: true, datatype: "numeric", filterFn: "equals", From 05d436058e85a04b2a09e55e63d51cbef08098db Mon Sep 17 00:00:00 2001 From: Yasiu1376 Date: Sun, 16 Jul 2023 16:38:26 +0330 Subject: [PATCH 10/10] datatable_locale --- public/locales/fa/datatable.js | 176 ++++++++++++++++----------------- 1 file changed, 88 insertions(+), 88 deletions(-) diff --git a/public/locales/fa/datatable.js b/public/locales/fa/datatable.js index e42208f..819a84b 100644 --- a/public/locales/fa/datatable.js +++ b/public/locales/fa/datatable.js @@ -1,92 +1,92 @@ export const FA_DATATABLE_LOCALIZATION = { - actions: "Actions", - and: "and", - cancel: "Cancel", - changeFilterMode: "Change filter mode", - changeSearchMode: "Change search mode", - clearFilter: "Clear filter", - clearSearch: "Clear search", - clearSort: "Clear sort", - clickToCopy: "Click to copy", - collapse: "Collapse", - collapseAll: "Collapse all", - columnActions: "Column Actions", - copiedToClipboard: "Copied to clipboard", - dropToGroupBy: "Drop to group by {column}", - edit: "Edit", - expand: "Expand", - expandAll: "Expand all", - filterArrIncludes: "Includes", - filterArrIncludesAll: "Includes all", - filterArrIncludesSome: "Includes", - filterBetween: "Between", - filterBetweenInclusive: "Between Inclusive", - filterByColumn: "Filter by {column}", - filterContains: "Contains", - filterEmpty: "Empty", - filterEndsWith: "Ends With", - filterEquals: "Equals", - filterEqualsString: "Equals", - filterFuzzy: "Fuzzy", - filterGreaterThan: "Greater Than", - filterGreaterThanOrEqualTo: "Greater Than Or Equal To", - filterInNumberRange: "Between", - filterIncludesString: "Contains", - filterIncludesStringSensitive: "Contains", - filterLessThan: "Less Than", - filterLessThanOrEqualTo: "Less Than Or Equal To", - filterMode: "Filter Mode: {filterType}", - filterNotEmpty: "Not Empty", - filterNotEquals: "Not Equals", - filterStartsWith: "Starts With", - filterWeakEquals: "Equals", - filteringByColumn: "Filtering by {column} - {filterType} {filterValue}", - goToFirstPage: "Go to first page", - goToLastPage: "Go to last page", - goToNextPage: "Go to next page", - goToPreviousPage: "Go to previous page", - grab: "Grab", - groupByColumn: "Group by {column}", - groupedBy: "Grouped by ", - hideAll: "Hide all", - hideColumn: "Hide {column} column", - max: "Max", - min: "Min", - move: "Move", - noRecordsToDisplay: "No records to display", - noResultsFound: "No results found", - of: "of", - or: "or", - pinToLeft: "Pin to left", - pinToRight: "Pin to right", - resetColumnSize: "Reset column size", - resetOrder: "Reset order", - rowActions: "Row Actions", + actions: "عملیات", + and: "و", + cancel: "لغو", + changeFilterMode: "تغییر حالت فیلتر", + changeSearchMode: "تغییر حالت جستجو", + clearFilter: "پاک کردن فیلتر", + clearSearch: "پاک کردن جستجو", + clearSort: "پاک کردن مرتب سازی", + clickToCopy: "کلیک برای کپی", + collapse: "جمع شدن", + collapseAll: "جمع شدن همه", + columnActions: "عملیات ستون", + copiedToClipboard: "کپی شد", + dropToGroupBy: "رها کردن برای گروه بندی بر اساس {column}", + edit: "ویرایش", + expand: "باز شدن", + expandAll: "باز شدن همه", + filterArrIncludes: "شامل", + filterArrIncludesAll: "شامل همه", + filterArrIncludesSome: "شامل", + filterBetween: "میان", + filterBetweenInclusive: "میان با احتساب هر دو", + filterByColumn: "فیلتر بر اساس {column}", + filterContains: "شامل", + filterEmpty: "خالی", + filterEndsWith: "به پایان می‌رسد با", + filterEquals: "برابر", + filterEqualsString: "برابر", + filterFuzzy: "نزدیک", + filterGreaterThan: "بزرگتر از", + filterGreaterThanOrEqualTo: "بزرگتر یا مساوی", + filterInNumberRange: "میان", + filterIncludesString: "شامل", + filterIncludesStringSensitive: "شامل", + filterLessThan: "کوچکتر از", + filterLessThanOrEqualTo: "کوچکتر یا مساوی", + filterMode: "حالت فیلتر: {filterType}", + filterNotEmpty: "غیر خالی", + filterNotEquals: "نا برابر", + filterStartsWith: "شروع می‌شود با", + filterWeakEquals: "برابر", + filteringByColumn: "فیلتر بر اساس {column} - {filterType} {filterValue}", + goToFirstPage: "رفتن به صفحه اول", + goToLastPage: "رفتن به صفحه آخر", + goToNextPage: "رفتن به صفحه بعدی", + goToPreviousPage: "رفتن به صفحه قبلی", + grab: "گرفتن", + groupByColumn: "گروه بندی بر اساس {column}", + groupedBy: "گروه بندی شده بر اساس", + hideAll: "پنهان کردن همه", + hideColumn: "پنهان کردن ستون {column}", + max: "حداکثر", + min: "حداقل", + move: "انتقال", + noRecordsToDisplay: "هیچ رکوردی برای نمایش وجود ندارد", + noResultsFound: "نتیجه‌ای یافت نشد", + of: "از", + or: "یا", + pinToLeft: "چسباندن به سمت چپ", + pinToRight: "چسباندن به سمت راست", + resetColumnSize: "بازنشانی اندازه ستون", + resetOrder: "بازنشانی ترتیب", + rowActions: "عملیات ردیف", rowNumber: "#", - rowNumbers: "Row Numbers", - rowsPerPage: "Rows per page", - save: "Save", - search: "Search", + rowNumbers: "شماره ردیف", + rowsPerPage: "ردیف در هر صفحه", + save: "ذخیره", + search: "جستجو", selectedCountOfRowCountRowsSelected: - "{selectedCount} of {rowCount} row(s) selected", - select: "Select", - showAll: "Show all", - showAllColumns: "Show all columns", - showHideColumns: "Show/Hide columns", - showHideFilters: "Show/Hide filters", - showHideSearch: "Show/Hide search", - sortByColumnAsc: "Sort by {column} ascending", - sortByColumnDesc: "Sort by {column} descending", - sortedByColumnAsc: "Sorted by {column} ascending", - sortedByColumnDesc: "Sorted by {column} descending", - thenBy: ", then by ", - toggleDensity: "Toggle density", - toggleFullScreen: "Toggle full screen", - toggleSelectAll: "Toggle select all", - toggleSelectRow: "Toggle select row", - toggleVisibility: "Toggle visibility", - ungroupByColumn: "Ungroup by {column}", - unpin: "Unpin", - unpinAll: "Unpin all", - unsorted: "Unsorted", + "{selectedCount} از {rowCount} ردیف انتخاب شده", + select: "انتخاب", + showAll: "نمایش همه", + showAllColumns: "نمایش همه ستون‌ها", + showHideColumns: "نمایش/مخفی کردن ستون‌ها", + showHideFilters: "نمایش/مخفی کردن فیلترها", + showHideSearch: "نمایش/مخفی کردن جستجو", + sortByColumnAsc: "مرتب سازی بر اساس {column} صعودی", + sortByColumnDesc: "مرتب سازی بر اساس {column} نزولی", + sortedByColumnAsc: "مرتب شده بر اساس {column} صعودی", + sortedByColumnDesc: "مرتب شده بر اساس {column} نزولی", + thenBy: "، سپس بر اساس ", + toggleDensity: "تغییر تراکم", + toggleFullScreen: "تغییر حالت تمام صفحه", + toggleSelectAll: "انتخاب/عدم انتخاب همه", + toggleSelectRow: "انتخاب/عدم انتخاب ردیف", + toggleVisibility: "تغییر پیدا/پنهان", + ungroupByColumn: "لغو گروه بندی بر اساس {column}", + unpin: "رها کردن", + unpinAll: "رها کردن همه", + unsorted: "بدون مرتب سازی", };