| @@ -10,7 +10,7 @@ import {TablePagination, Typography} from '@mui/material'; | |||||
| export function FiDataGrid({ rows, columns, sx, autoHeight, | export function FiDataGrid({ rows, columns, sx, autoHeight, | ||||
| hideFooterSelectedRowCount, rowModesModel, editMode, | hideFooterSelectedRowCount, rowModesModel, editMode, | ||||
| pageSizeOptions, filterItems, ...props }) { | |||||
| pageSizeOptions, filterItems, customPageSize, ...props }) { | |||||
| const intl = useIntl(); | const intl = useIntl(); | ||||
| const [_rows, set_rows] = React.useState([]); | const [_rows, set_rows] = React.useState([]); | ||||
| const [_columns, set_columns] = React.useState([]); | const [_columns, set_columns] = React.useState([]); | ||||
| @@ -64,7 +64,11 @@ export function FiDataGrid({ rows, columns, sx, autoHeight, | |||||
| if(filterItems){ | if(filterItems){ | ||||
| set_filterItems(filterItems); | set_filterItems(filterItems); | ||||
| } | } | ||||
| }, [sx, hideFooterSelectedRowCount, rowModesModel, rows, columns, pageSizeOptions, autoHeight, editMode, filterItems]); | |||||
| if(customPageSize){ | |||||
| setPageSize(customPageSize); | |||||
| } | |||||
| }, [sx, hideFooterSelectedRowCount, rowModesModel, rows, columns, pageSizeOptions, autoHeight, editMode, filterItems, customPageSize]); | |||||
| const handleChangePage = (event, newPage) => { | const handleChangePage = (event, newPage) => { | ||||
| setPage(newPage); | setPage(newPage); | ||||
| @@ -109,7 +113,7 @@ export function FiDataGrid({ rows, columns, sx, autoHeight, | |||||
| count={_rows.length} | count={_rows.length} | ||||
| page={page} | page={page} | ||||
| rowsPerPage={pageSize} | rowsPerPage={pageSize} | ||||
| rowsPerPageOptions={[5,10,15]} | |||||
| rowsPerPageOptions={[5,10,15,20,100]} | |||||
| labelDisplayedRows={({ from, to, count }) => | labelDisplayedRows={({ from, to, count }) => | ||||
| `${from}-${to} ${intl.formatMessage({ id: "of" })} ${count}` | `${from}-${to} ${intl.formatMessage({ id: "of" })} ${count}` | ||||
| } | } | ||||
| @@ -110,11 +110,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| rowHeight={80} | rowHeight={80} | ||||
| rows={rows} | rows={rows} | ||||
| columns={columns} | columns={columns} | ||||
| initialState={{ | |||||
| pagination: { | |||||
| paginationModel: { page: 0, pageSize: 5 }, | |||||
| }, | |||||
| }} | |||||
| customPageSize={5} | |||||
| onRowDoubleClick={handleEditClick} | onRowDoubleClick={handleEditClick} | ||||
| /> | /> | ||||
| </div> | </div> | ||||
| @@ -347,11 +347,7 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch }) | |||||
| }} | }} | ||||
| rows={rows} | rows={rows} | ||||
| columns={columns} | columns={columns} | ||||
| initialState={{ | |||||
| pagination: { | |||||
| paginationModel: { page: 0, pageSize: 100 }, | |||||
| }, | |||||
| }} | |||||
| customPageSize={100} | |||||
| getRowHeight={() => 'auto'} | getRowHeight={() => 'auto'} | ||||
| onRowDoubleClick={handleRowDoubleClick} | onRowDoubleClick={handleRowDoubleClick} | ||||
| /> | /> | ||||
| @@ -80,11 +80,7 @@ export default function SearchDemandNote({ recordList }) { | |||||
| <FiDataGrid | <FiDataGrid | ||||
| rows={rows} | rows={rows} | ||||
| columns={columns} | columns={columns} | ||||
| initialState={{ | |||||
| pagination: { | |||||
| paginationModel: { page: 0, pageSize: 100 }, | |||||
| }, | |||||
| }} | |||||
| customPageSize={100} | |||||
| getRowHeight={() => 'auto'} | getRowHeight={() => 'auto'} | ||||
| /> | /> | ||||
| </Box> | </Box> | ||||
| @@ -76,11 +76,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| rowHeight={80} | rowHeight={80} | ||||
| rows={rows} | rows={rows} | ||||
| columns={columns} | columns={columns} | ||||
| initialState={{ | |||||
| pagination: { | |||||
| paginationModel: { page: 0, pageSize: 10 }, | |||||
| }, | |||||
| }} | |||||
| customPageSize={10} | |||||
| onRowDoubleClick={handleEditClick} | onRowDoubleClick={handleEditClick} | ||||
| /> | /> | ||||
| </div> | </div> | ||||
| @@ -93,11 +93,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| rowHeight={80} | rowHeight={80} | ||||
| rows={rows} | rows={rows} | ||||
| columns={columns} | columns={columns} | ||||
| initialState={{ | |||||
| pagination: { | |||||
| paginationModel: { page: 0, pageSize: 5 }, | |||||
| }, | |||||
| }} | |||||
| customPageSize={5} | |||||
| onRowDoubleClick={handleEditClick} | onRowDoubleClick={handleEditClick} | ||||
| /> | /> | ||||
| </div> | </div> | ||||
| @@ -251,6 +251,7 @@ const FormPanel = ({ formData }) => { | |||||
| color="save" | color="save" | ||||
| component="span" | component="span" | ||||
| variant="contained" | variant="contained" | ||||
| aria-label={intl.formatMessage({id: 'upload'})} | |||||
| disabled={attachments.length >= (formik.values.groupType === "Private Bill" ? 2 : 1)} | disabled={attachments.length >= (formik.values.groupType === "Private Bill" ? 2 : 1)} | ||||
| > | > | ||||
| <FormattedMessage id="upload" /> | <FormattedMessage id="upload" /> | ||||
| @@ -303,6 +304,7 @@ const FormPanel = ({ formData }) => { | |||||
| variant="contained" | variant="contained" | ||||
| color="success" | color="success" | ||||
| type="submit" | type="submit" | ||||
| aria-label={intl.formatMessage({id: 'submitReply'})} | |||||
| > | > | ||||
| <FormattedMessage id="submitReply" /> | <FormattedMessage id="submitReply" /> | ||||
| </Button> | </Button> | ||||
| @@ -328,7 +330,12 @@ const FormPanel = ({ formData }) => { | |||||
| <Typography variant="h3" style={{ padding: '16px' }}>{warningText}</Typography> | <Typography variant="h3" style={{ padding: '16px' }}>{warningText}</Typography> | ||||
| </DialogContent> | </DialogContent> | ||||
| <DialogActions> | <DialogActions> | ||||
| <Button onClick={() => setIsWarningPopUp(false)}>OK</Button> | |||||
| <Button | |||||
| aria-label={intl.formatMessage({id: 'ok'})} | |||||
| onClick={() => setIsWarningPopUp(false)} | |||||
| > | |||||
| OK | |||||
| </Button> | |||||
| </DialogActions> | </DialogActions> | ||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| @@ -95,7 +95,11 @@ const Index = () => { | |||||
| </div> | </div> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} width="100%"> | <Grid item xs={12} width="100%"> | ||||
| <Button title={intl.formatMessage({id: 'back'})} sx={{ mt: 2.5, ml: 3 }} style={{ border: '2px solid' }} variant="outlined" onClick={() => { navigate("/proof/search") }}> | |||||
| <Button | |||||
| aria-label={intl.formatMessage({id: 'back'})} | |||||
| title={intl.formatMessage({id: 'back'})} | |||||
| sx={{ mt: 2.5, ml: 3 }} style={{ border: '2px solid' }} | |||||
| variant="outlined" onClick={() => { navigate("/proof/search") }}> | |||||
| <ForwardIcon style={{ height: 30, width: 50, transform: "rotate(180deg)" }} /> | <ForwardIcon style={{ height: 30, width: 50, transform: "rotate(180deg)" }} /> | ||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| @@ -133,12 +133,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| <FiDataGrid | <FiDataGrid | ||||
| rows={rows} | rows={rows} | ||||
| columns={columns} | columns={columns} | ||||
| pageSizeOptions={[5]} | |||||
| initialState={{ | |||||
| pagination: { | |||||
| paginationModel: { page: 0, pageSize: 10 }, | |||||
| }, | |||||
| }} | |||||
| customPageSize={10} | |||||
| onRowDoubleClick={handleRowDoubleClick} | onRowDoubleClick={handleRowDoubleClick} | ||||
| getRowHeight={() => 'auto'} | getRowHeight={() => 'auto'} | ||||
| /> | /> | ||||
| @@ -277,6 +277,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData | |||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||
| onClick={resetForm} | onClick={resetForm} | ||||
| aria-label={intl.formatMessage({id: 'reset'})} | |||||
| > | > | ||||
| <FormattedMessage id="reset"/> | <FormattedMessage id="reset"/> | ||||
| </Button> | </Button> | ||||
| @@ -286,6 +287,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData | |||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||
| type="submit" | type="submit" | ||||
| aria-label={intl.formatMessage({id: 'submit'})} | |||||
| > | > | ||||
| <FormattedMessage id="submit"/> | <FormattedMessage id="submit"/> | ||||
| </Button> | </Button> | ||||
| @@ -70,11 +70,7 @@ export default function SubmittedTab({ rows }) { | |||||
| <FiDataGrid | <FiDataGrid | ||||
| rows={rows} | rows={rows} | ||||
| columns={columns} | columns={columns} | ||||
| initialState={{ | |||||
| pagination: { | |||||
| paginationModel: { page: 0, pageSize: 5 }, | |||||
| }, | |||||
| }} | |||||
| customPageSize={5} | |||||
| /> | /> | ||||
| </div> | </div> | ||||
| </> | </> | ||||
| @@ -72,11 +72,7 @@ export default function SubmittedTab({ rows }) { | |||||
| <FiDataGrid | <FiDataGrid | ||||
| rows={rows} | rows={rows} | ||||
| columns={columns} | columns={columns} | ||||
| initialState={{ | |||||
| pagination: { | |||||
| paginationModel: { page: 0, pageSize: 5 }, | |||||
| }, | |||||
| }} | |||||
| customPageSize={5} | |||||
| /> | /> | ||||
| </div> | </div> | ||||
| </> | </> | ||||
| @@ -307,11 +307,7 @@ export default function SubmittedTab({ rows }) { | |||||
| disableRowSelectionOnClick | disableRowSelectionOnClick | ||||
| rows={rowList} | rows={rowList} | ||||
| columns={columns} | columns={columns} | ||||
| initialState={{ | |||||
| pagination: { | |||||
| paginationModel: { page: 0, pageSize: 20 }, | |||||
| }, | |||||
| }} | |||||
| customPageSize={20} | |||||
| onRowSelectionModelChange={(newSelection) => { | onRowSelectionModelChange={(newSelection) => { | ||||
| setSelectedRowItems(newSelection); | setSelectedRowItems(newSelection); | ||||
| }} | }} | ||||
| @@ -60,7 +60,7 @@ const UserSearchPage_Individual = () => { | |||||
| content={false} | content={false} | ||||
| sx={{width: "-webkit-fill-available",height: "100%", minHeight:'100%'}} | sx={{width: "-webkit-fill-available",height: "100%", minHeight:'100%'}} | ||||
| > | > | ||||
| <div style={{height: '100%', width: '100%' , minHeight:'80vh'}}> | |||||
| <div style={{height: '100%', width: '100%' }}> | |||||
| <EventTable | <EventTable | ||||
| autoHeight | autoHeight | ||||
| recordList={record} | recordList={record} | ||||
| @@ -114,11 +114,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| <FiDataGrid | <FiDataGrid | ||||
| rows={rows} | rows={rows} | ||||
| columns={columns} | columns={columns} | ||||
| initialState={{ | |||||
| pagination: { | |||||
| paginationModel: { page: 0, pageSize: 10 }, | |||||
| }, | |||||
| }} | |||||
| customPageSize={10} | |||||
| getRowHeight={() => 'auto'} | getRowHeight={() => 'auto'} | ||||
| onRowDoubleClick={handleRowDoubleClick} | onRowDoubleClick={handleRowDoubleClick} | ||||
| /> | /> | ||||
| @@ -234,11 +234,7 @@ const ManageOrgUserPage = () => { | |||||
| sx={_sx} | sx={_sx} | ||||
| rows={rows} | rows={rows} | ||||
| columns={columns} | columns={columns} | ||||
| initialState={{ | |||||
| pagination: { | |||||
| paginationModel: { page: 0, pageSize: 10 }, | |||||
| }, | |||||
| }} | |||||
| customPageSize={10} | |||||
| /> | /> | ||||
| </Grid> | </Grid> | ||||
| <div> | <div> | ||||