diff --git a/openbas-front/eslint.config.js b/openbas-front/eslint.config.js index e0756b9310..ebd8db5abc 100644 --- a/openbas-front/eslint.config.js +++ b/openbas-front/eslint.config.js @@ -151,12 +151,14 @@ export default [ 'error', { patterns: [ { - group: ['@mui/material/*', '!@mui/material/locale', '!@mui/material/styles', '!@mui/material/colors', '!@mui/material/transitions'], - message: 'Please use named import from @mui/material instead.', - }, - { - group: ['@mui/styles/*'], - message: 'Please use named import from @mui/styles instead.', + group: [ + '@mui/material/*', '!@mui/material/locale', '!@mui/material/styles', '!@mui/material/colors', '!@mui/material/transitions', + '@mui/styles/*', + '@mui/x-date-pickers/*', '!@mui/x-date-pickers/AdapterDateFnsV3', + '@mui/icons-material/*', + '@mui/lab/*', + ], + message: 'Please use named import from @mui/* instead.', }, ], }, diff --git a/openbas-front/package.json b/openbas-front/package.json index 7bf61f425e..bfc99cf841 100644 --- a/openbas-front/package.json +++ b/openbas-front/package.json @@ -14,12 +14,13 @@ "@fontsource/ibm-plex-sans": "5.0.21", "@hookform/resolvers": "3.9.0", "@microsoft/fetch-event-source": "2.0.1", - "@mui/icons-material": "5.16.7", - "@mui/lab": "5.0.0-alpha.173", - "@mui/material": "5.16.7", - "@mui/styles": "5.16.7", - "@mui/utils": "5.16.6", - "@mui/x-date-pickers": "7.22.0", + "@mui/icons-material": "6.1.6", + "@mui/lab": "6.0.0-beta.14", + "@mui/material": "6.1.6", + "@mui/styles": "6.1.6", + "@mui/system": "6.1.6", + "@mui/utils": "6.1.6", + "@mui/x-date-pickers": "7.22.1", "@redux-devtools/extension": "3.3.0", "@uiw/react-md-editor": "4.0.4", "@xyflow/react": "12.3.0", diff --git a/openbas-front/src/admin/components/assets/asset_groups/AssetGroups.tsx b/openbas-front/src/admin/components/assets/asset_groups/AssetGroups.tsx index 6f9ceeff95..0355d235f4 100644 --- a/openbas-front/src/admin/components/assets/asset_groups/AssetGroups.tsx +++ b/openbas-front/src/admin/components/assets/asset_groups/AssetGroups.tsx @@ -1,4 +1,4 @@ -import { Box, Chip, Drawer as MuiDrawer, List, ListItem, ListItemIcon, ListItemSecondaryAction, ListItemText } from '@mui/material'; +import { Box, Chip, Drawer as MuiDrawer, List, ListItem, ListItemButton, ListItemIcon, ListItemText } from '@mui/material'; import { makeStyles } from '@mui/styles'; import { SelectGroup } from 'mdi-material-ui'; import { CSSProperties, Fragment, useMemo, useState } from 'react'; @@ -234,30 +234,8 @@ const AssetGroups = () => { {assetGroups.map((assetGroup: AssetGroupOutput) => ( setSelectedAssetGroupId(assetGroup.asset_group_id)} - > - - - - - {headers.map(header => ( -
- {header.value?.(assetGroup)} -
- ))} - - )} - /> - + secondaryAction={( setAssetGroups(assetGroups.map(ag => (ag.asset_group_id !== result.asset_group_id ? ag : result)))} @@ -270,7 +248,32 @@ const AssetGroups = () => { })))} openEditOnInit={assetGroup.asset_group_id === searchId} /> - + )} + disablePadding + > + setSelectedAssetGroupId(assetGroup.asset_group_id)} + > + + + + + {headers.map(header => ( +
+ {header.value?.(assetGroup)} +
+ ))} + + )} + /> +
))} diff --git a/openbas-front/src/admin/components/common/articles/ArticleAddDocuments.js b/openbas-front/src/admin/components/common/articles/ArticleAddDocuments.js index 76fe4f633a..e60a4581d8 100644 --- a/openbas-front/src/admin/components/common/articles/ArticleAddDocuments.js +++ b/openbas-front/src/admin/components/common/articles/ArticleAddDocuments.js @@ -1,5 +1,17 @@ import { ControlPointOutlined, DescriptionOutlined } from '@mui/icons-material'; -import { Box, Button, Chip, Dialog, DialogActions, DialogContent, DialogTitle, Grid, List, ListItem, ListItemIcon, ListItemText } from '@mui/material'; +import { + Box, + Button, + Chip, + Dialog, + DialogActions, + DialogContent, + DialogTitle, + Grid, + List, + ListItemButton, + ListItemIcon, + ListItemText } from '@mui/material'; import { makeStyles } from '@mui/styles'; import * as R from 'ramda'; import { useContext, useState } from 'react'; @@ -145,120 +157,122 @@ const ArticleAddDocuments = (props) => { const { permissions } = useContext(PermissionsContext); return ( -
- - - - - - - - {t('Add documents in this media pressure article')} - - - - - - + ( +
+ + + + + + + + {t('Add documents in this media pressure article')} + + + + + + + + + + - - + {finalDocuments.map((document) => { + const disabled = documentsIds.includes(document.document_id) + || articleDocumentsIds.includes(document.document_id); + return ( + ( + addDocument(document.document_id)} + > + + + + + + + ) + ); + })} + - + - - {finalDocuments.map((document) => { - const disabled = documentsIds.includes(document.document_id) - || articleDocumentsIds.includes(document.document_id); - return ( - addDocument(document.document_id)} - > - - - - + + {documentsIds.map((documentId) => { + const document = documents[documentId]; + return ( + removeDocument(documentId)} + label={truncate(document.document_name, 22)} + icon={} + classes={{ root: classes.chip }} /> - - - ); - })} - - - - - - {documentsIds.map((documentId) => { - const document = documents[documentId]; - return ( - removeDocument(documentId)} - label={truncate(document.document_name, 22)} - icon={} - classes={{ root: classes.chip }} - /> - ); - })} - + ); + })} + + - - - - - - - -
+
+ + + + +
+
+ ) ); }; diff --git a/openbas-front/src/admin/components/common/articles/ArticleForm.js b/openbas-front/src/admin/components/common/articles/ArticleForm.js index 85ef587e5c..254ac33406 100644 --- a/openbas-front/src/admin/components/common/articles/ArticleForm.js +++ b/openbas-front/src/admin/components/common/articles/ArticleForm.js @@ -1,5 +1,5 @@ import { ArrowDropDownOutlined, ArrowDropUpOutlined, AttachmentOutlined } from '@mui/icons-material'; -import { Box, Button, Grid, List, ListItem, ListItemIcon, ListItemSecondaryAction, ListItemText, Typography } from '@mui/material'; +import { Box, Button, Grid, List, ListItem, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText, Typography } from '@mui/material'; import { makeStyles } from '@mui/styles'; import * as R from 'ramda'; import { useState } from 'react'; @@ -185,6 +185,7 @@ const ArticleForm = ({ // Rendering return ( +
{({ handleSubmit, submitting, values }) => { return ( + {t('Information')} @@ -303,11 +305,10 @@ const ArticleForm = ({ {documents.map((documentId) => { const document = documentsMap[documentId] || {}; return ( - @@ -352,7 +353,7 @@ const ArticleForm = ({ onRemoveDocument={handleRemoveDocument} /> - + ); })} {values.article_channel?.type && ( diff --git a/openbas-front/src/admin/components/common/articles/CreateArticle.js b/openbas-front/src/admin/components/common/articles/CreateArticle.js index abd68b8b08..1da21d6020 100644 --- a/openbas-front/src/admin/components/common/articles/CreateArticle.js +++ b/openbas-front/src/admin/components/common/articles/CreateArticle.js @@ -1,5 +1,5 @@ import { Add, ControlPointOutlined } from '@mui/icons-material'; -import { Dialog, DialogContent, DialogTitle, IconButton, ListItem, ListItemIcon, ListItemText } from '@mui/material'; +import { Dialog, DialogContent, DialogTitle, IconButton, ListItemButton, ListItemIcon, ListItemText } from '@mui/material'; import { makeStyles } from '@mui/styles'; import { useContext } from 'react'; @@ -45,12 +45,7 @@ const CreateArticle = (props) => { return ( <> {inline === true ? ( - + @@ -58,7 +53,7 @@ const CreateArticle = (props) => { primary={t('Create a new media pressure article')} classes={{ primary: classes.text }} /> - + ) : ( = ({ )(fullArticles); return (
- = ({ primary={t('Add media pressure')} classes={{ primary: classes.text }} /> - + = ({ const disabled = articleIds.includes(article.article_id) || injectArticlesIds.includes(article.article_id); return ( - addArticle(article.article_id)} @@ -181,7 +191,7 @@ const InjectAddArticles: FunctionComponent = ({ primary={article.article_name} secondary={article.article_author} /> - + ); })} = ({ )(challenges); return (
- = ({ primary={t('Add challenges')} classes={{ primary: classes.text }} /> - + = ({ const disabled = challengesIds.includes(challenge.challenge_id) || injectChallengesIds.includes(challenge.challenge_id); return ( - addChallenge(challenge.challenge_id)} - > - - - - - + ( + addChallenge(challenge.challenge_id)} + > + + + + + + ) ); })} = ({ return (
- setOpen(true)} color="primary" @@ -123,7 +132,7 @@ const InjectAddTeams: FunctionComponent = ({ primary={t('Add target teams')} classes={{ primary: classes.text }} /> - + !builtInFields.includes(f.key) && !f.expectation, ) .filter((f) => { - // Filter display if linked fields + // Filter display if linked fields for ( let index = 0; index < f.linkedFields.length; @@ -1415,7 +1416,7 @@ class InjectDefinition extends Component {
{this.renderFields( expectationsNotManual.filter((f) => { - // Filter display if linked fields + // Filter display if linked fields for (let index = 0; index < f.linkedFields.length; index += 1) { const linkedField = f.linkedFields[index]; if (linkedField.type === 'checkbox' && values[linkedField.key] === false) { @@ -1449,11 +1450,10 @@ class InjectDefinition extends Component { {sortedDocuments.map(document => ( - @@ -1515,7 +1515,7 @@ class InjectDefinition extends Component { disabled={this.props.permissions.readOnly || (hasAttachments && fieldAttachements.readOnly)} /> - + ))} !a.inject_document_attached).map(d => d.document_id)} diff --git a/openbas-front/src/admin/components/common/injects/Injects.tsx b/openbas-front/src/admin/components/common/injects/Injects.tsx index 91500f4c83..5f5acfca9e 100644 --- a/openbas-front/src/admin/components/common/injects/Injects.tsx +++ b/openbas-front/src/admin/components/common/injects/Injects.tsx @@ -1,4 +1,4 @@ -import { Checkbox, Chip, List, ListItem, ListItemIcon, ListItemSecondaryAction, ListItemText } from '@mui/material'; +import { Checkbox, Chip, List, ListItem, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText } from '@mui/material'; import { makeStyles } from '@mui/styles'; import * as R from 'ramda'; import { CSSProperties, FunctionComponent, useContext, useMemo, useState } from 'react'; @@ -558,11 +558,10 @@ const Injects: FunctionComponent = ({ const injectContract = inject.inject_injector_contract?.convertedContent; const isContractExposed = injectContract?.config.expose; return ( - { if (injectContract && isContractExposed) { setSelectedInjectId(inject.inject_id); @@ -628,7 +627,7 @@ const Injects: FunctionComponent = ({ onDelete={onDelete} /> - + ); })} diff --git a/openbas-front/src/admin/components/common/injects/UpdateInjectLogicalChains.tsx b/openbas-front/src/admin/components/common/injects/UpdateInjectLogicalChains.tsx index 674364f819..e48592628b 100644 --- a/openbas-front/src/admin/components/common/injects/UpdateInjectLogicalChains.tsx +++ b/openbas-front/src/admin/components/common/injects/UpdateInjectLogicalChains.tsx @@ -82,7 +82,7 @@ const UpdateInjectLogicalChains: React.FC = ({ inject, handleClose, onUpd return { ...injectsMap[currentInject.inject_id], inject_id: currentInject.inject_id, - inject_injector_contract: currentInject.inject_injector_contract.injector_contract_id, + inject_injector_contract: currentInject.inject_injector_contract?.injector_contract_id, inject_depends_on: undefined, } as unknown as Inject; }) @@ -100,7 +100,7 @@ const UpdateInjectLogicalChains: React.FC = ({ inject, handleClose, onUpd const injectChildrenUpdate: Inject = { ...injectsMap[children.inject_id], inject_id: children.inject_id, - inject_injector_contract: children.inject_injector_contract.injector_contract_id, + inject_injector_contract: children.inject_injector_contract?.injector_contract_id, inject_depends_on: injectDependsOnUpdate ? [injectDependsOnUpdate] : [], }; injectsToUpdate.push(injectChildrenUpdate); diff --git a/openbas-front/src/admin/components/components/challenges/ChallengeForm.js b/openbas-front/src/admin/components/components/challenges/ChallengeForm.js index ed9be68742..e7da6f3f04 100644 --- a/openbas-front/src/admin/components/components/challenges/ChallengeForm.js +++ b/openbas-front/src/admin/components/components/challenges/ChallengeForm.js @@ -1,5 +1,5 @@ import { ArrowDropDownOutlined, ArrowDropUpOutlined, AttachmentOutlined, ControlPointOutlined, DeleteOutlined } from '@mui/icons-material'; -import { Button, Grid, IconButton, List, ListItem, ListItemIcon, ListItemSecondaryAction, ListItemText, MenuItem, Typography } from '@mui/material'; +import { Button, Grid, IconButton, List, ListItem, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText, MenuItem, Typography } from '@mui/material'; import { makeStyles } from '@mui/styles'; import arrayMutators from 'final-form-arrays'; import { useState } from 'react'; @@ -254,11 +254,10 @@ const ChallengeForm = (props) => { {documents.map((documentId) => { const document = documentsMap[documentId] || {}; return ( - @@ -302,7 +301,7 @@ const ChallengeForm = (props) => { onRemoveDocument={handleRemoveDocument} /> - + ); })} { return (
{inline === true ? ( - + @@ -62,7 +57,7 @@ const CreateChallenge = (props) => { primary={t('Create a new challenge')} classes={{ primary: classes.text }} /> - + ) : ( { )} - {inline ? ( { -   +   {   {sortedChannels.map(channel => ( - @@ -209,7 +208,7 @@ const Channels = () => { - + ))} {userAdmin && } diff --git a/openbas-front/src/admin/components/components/documents/CreateDocument.js b/openbas-front/src/admin/components/components/documents/CreateDocument.js index f7ae5c1977..832bcfda50 100644 --- a/openbas-front/src/admin/components/components/documents/CreateDocument.js +++ b/openbas-front/src/admin/components/components/documents/CreateDocument.js @@ -1,5 +1,5 @@ import { Add, ControlPointOutlined } from '@mui/icons-material'; -import { Fab, ListItem, ListItemIcon, ListItemText } from '@mui/material'; +import { Fab, ListItemButton, ListItemIcon, ListItemText } from '@mui/material'; import { withStyles } from '@mui/styles'; import * as PropTypes from 'prop-types'; import * as R from 'ramda'; @@ -68,12 +68,7 @@ const CreateDocument = (props) => { return ( <> {inline === true ? ( - setOpen(true)} - color="primary" - > + setOpen(true)} color="primary"> @@ -81,7 +76,7 @@ const CreateDocument = (props) => { primary={t('Create a new document')} classes={{ primary: classes.text }} /> - + ) : ( setOpen(true)} diff --git a/openbas-front/src/admin/components/components/documents/Documents.js b/openbas-front/src/admin/components/components/documents/Documents.js index 2ecc2f7ce8..6717b4dd64 100644 --- a/openbas-front/src/admin/components/components/documents/Documents.js +++ b/openbas-front/src/admin/components/components/documents/Documents.js @@ -1,5 +1,5 @@ import { DescriptionOutlined, RowingOutlined } from '@mui/icons-material'; -import { Chip, List, ListItem, ListItemIcon, ListItemSecondaryAction, ListItemText, Tooltip } from '@mui/material'; +import { Chip, List, ListItem, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText, Tooltip } from '@mui/material'; import { makeStyles } from '@mui/styles'; import * as R from 'ramda'; import { useState } from 'react'; @@ -147,7 +147,7 @@ const Documents = () => { fontSize: 12, }} > -   +   { {documents.map(document => ( - - - - -
- {document.document_name} -
-
- {document.document_description} -
-
- {R.take(3, document.document_exercises).map((e, i) => { - const exercise = exercisesMap[e]; - if (exercise === undefined) return
; - return ( - - } - classes={{ root: classes.exercise }} - variant="outlined" - label={exercise.exercise_name} - clickable={true} - onClick={ - (event) => { - // prevent parent link from triggering - event.stopPropagation(); - event.preventDefault(); - navigate(`/admin/exercises/${exercise.exercise_id}`); - } - } - /> - - ); - })} -
-
- {R.take(3, document.document_scenarios).map((e, i) => { - const scenario = scenariosMap[e]; - if (scenario === undefined) return
; - return ( - - } - classes={{ root: classes.scenario }} - variant="outlined" - label={scenario.scenario_name} - clickable={true} - onClick={ - (event) => { - // prevent parent link from triggering - event.stopPropagation(); - event.preventDefault(); - navigate(`/admin/scenarios/${scenario.scenario_id}`); - } - } - /> - - ); - })} -
-
- -
-
- -
-
- )} - /> - + secondaryAction={( setDocuments(documents.map(d => (d.document_id !== result.document_id ? d : result)))} onDelete={result => setDocuments(documents.filter(d => (d.document_id !== result)))} scenariosAndExercisesFetched + inList + /> + )} + disablePadding + > + + + + + +
+ {document.document_name} +
+
+ {document.document_description} +
+
+ {R.take(3, document.document_exercises).map((e, i) => { + const exercise = exercisesMap[e]; + if (exercise === undefined) return
; + return ( + + } + classes={{ root: classes.exercise }} + variant="outlined" + label={exercise.exercise_name} + clickable={true} + onClick={ + (event) => { + // prevent parent link from triggering + event.stopPropagation(); + event.preventDefault(); + navigate(`/admin/exercises/${exercise.exercise_id}`); + } + } + /> + + ); + })} +
+
+ {R.take(3, document.document_scenarios).map((e, i) => { + const scenario = scenariosMap[e]; + if (scenario === undefined) return
; + return ( + + } + classes={{ root: classes.scenario }} + variant="outlined" + label={scenario.scenario_name} + clickable={true} + onClick={ + (event) => { + // prevent parent link from triggering + event.stopPropagation(); + event.preventDefault(); + navigate(`/admin/scenarios/${scenario.scenario_id}`); + } + } + /> + + ); + })} +
+
+ +
+
+ +
+
+ )} /> - + ))} diff --git a/openbas-front/src/admin/components/components/teams/ContextualTeams.tsx b/openbas-front/src/admin/components/components/teams/ContextualTeams.tsx index 28b30578a6..655aaa14cf 100644 --- a/openbas-front/src/admin/components/components/teams/ContextualTeams.tsx +++ b/openbas-front/src/admin/components/components/teams/ContextualTeams.tsx @@ -1,5 +1,5 @@ import { CheckCircleOutlined, GroupsOutlined } from '@mui/icons-material'; -import { Drawer, List, ListItem, ListItemIcon, ListItemSecondaryAction, ListItemText } from '@mui/material'; +import { Drawer, List, ListItem, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText } from '@mui/material'; import { makeStyles } from '@mui/styles'; import { CSSProperties, useContext, useState } from 'react'; import * as React from 'react'; @@ -213,11 +213,10 @@ const ContextualTeams: React.FC = ({ teams }) => {   {sortedTeams.map((team: TeamStoreExtended) => ( - setSelectedTeam(team.team_id)} > @@ -269,7 +268,7 @@ const ContextualTeams: React.FC = ({ teams }) => { openEditOnInit={team.team_id === searchId} /> - + ))} = ({ addedUsersIds, teamId }) => { const disabled = usersIds.includes(user.user_id) || addedUsersIds.includes(user.user_id); return ( - setUsersIds([...usersIds, user.user_id])} - > - - - - - - + ( + setUsersIds([...usersIds, user.user_id])} + > + + + + + + + ) ); })} = ({ return ( <> {inline ? ( - setOpen(true)} - color="primary" - > + setOpen(true)} color="primary"> @@ -59,7 +63,7 @@ const CreateVariable: React.FC = ({ primary={t('Create a new variable')} classes={{ primary: classes.text }} /> - + ) : ( { return (
{inline === true ? ( - + @@ -61,7 +56,7 @@ const CreateLessonsCategory = (props) => { primary={t('Create a new lessons learned category')} classes={{ primary: classes.text }} /> - + ) : ( )} diff --git a/openbas-front/src/admin/components/lessons/categories/LessonsCategoryAddTeams.js b/openbas-front/src/admin/components/lessons/categories/LessonsCategoryAddTeams.js index 83ec1f50fb..2d030c4d73 100644 --- a/openbas-front/src/admin/components/lessons/categories/LessonsCategoryAddTeams.js +++ b/openbas-front/src/admin/components/lessons/categories/LessonsCategoryAddTeams.js @@ -1,5 +1,19 @@ import { Add, CastForEducationOutlined } from '@mui/icons-material'; -import { Box, Button, Chip, Dialog, DialogActions, DialogContent, DialogTitle, Grid, IconButton, List, ListItem, ListItemIcon, ListItemText } from '@mui/material'; +import { + Box, + Button, + Chip, + Dialog, + DialogActions, + DialogContent, + DialogTitle, + Grid, + IconButton, + List, + ListItemButton, + ListItemIcon, + ListItemText, +} from '@mui/material'; import { withStyles } from '@mui/styles'; import * as PropTypes from 'prop-types'; import * as R from 'ramda'; @@ -202,10 +216,9 @@ class LessonsCategoryAddTeams extends Component { team.team_id, ); return ( - - + ); })} { return (
{inline === true ? ( - + @@ -63,7 +67,7 @@ const CreateLessonsQuestion = (props) => { primary={t('Create a new lessons learned question')} classes={{ primary: classes.text }} /> - + ) : ( 0 ? ( {sortedObjectives.map(objective => ( - setSelectedObjective && setSelectedObjective(objective.objective_id)} > @@ -117,7 +127,7 @@ const LessonsObjectives = ({ /> )} - + ))} ) : ( diff --git a/openbas-front/src/admin/components/lessons/scenarios/LessonsObjectives.js b/openbas-front/src/admin/components/lessons/scenarios/LessonsObjectives.js index 99ead6af50..3fa790b3da 100644 --- a/openbas-front/src/admin/components/lessons/scenarios/LessonsObjectives.js +++ b/openbas-front/src/admin/components/lessons/scenarios/LessonsObjectives.js @@ -1,5 +1,16 @@ import { FlagOutlined } from '@mui/icons-material'; -import { Box, Grid, LinearProgress, List, ListItem, ListItemIcon, ListItemSecondaryAction, ListItemText, Paper, Typography } from '@mui/material'; +import { + Box, + Grid, + LinearProgress, + List, + ListItemButton, + ListItemIcon, + ListItemSecondaryAction, + ListItemText, + Paper, + Typography, +} from '@mui/material'; import { makeStyles } from '@mui/styles'; import * as R from 'ramda'; @@ -42,10 +53,9 @@ const LessonsObjectives = ({ {sortedObjectives.length > 0 ? ( {sortedObjectives.map(objective => ( - setSelectedObjective && setSelectedObjective(objective.objective_id)} > @@ -86,7 +96,7 @@ const LessonsObjectives = ({ /> )} - + ))} ) : ( diff --git a/openbas-front/src/admin/components/payloads/Payloads.tsx b/openbas-front/src/admin/components/payloads/Payloads.tsx index eaacf97f83..6020f3fc3a 100644 --- a/openbas-front/src/admin/components/payloads/Payloads.tsx +++ b/openbas-front/src/admin/components/payloads/Payloads.tsx @@ -1,4 +1,4 @@ -import { Chip, Grid, List, ListItem, ListItemIcon, ListItemSecondaryAction, ListItemText, Typography } from '@mui/material'; +import { Chip, Grid, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Typography } from '@mui/material'; import { makeStyles } from '@mui/styles'; import { CSSProperties, useMemo, useState } from 'react'; @@ -268,56 +268,61 @@ const Payloads = () => { {payloads.map((payload: PayloadStore) => { const collector = payload.payload_collector ? collectorsMap[payload.payload_collector] : null; return ( - setSelectedPayload(payload)} - > - - {collector ? ( - {collector.collector_type} setPayloads(payloads.map(a => (a.payload_id !== result.payload_id ? a : result)))} + onDuplicate={(result: PayloadStore) => setPayloads([result, ...payloads])} + onDelete={(result: string) => setPayloads(payloads.filter(a => (a.payload_id !== result)))} + disabled={collector !== null} /> - ) : ( - )} - - - {headers.map(header => ( -
- {header.value?.(payload)} + disablePadding + > + setSelectedPayload(payload)} + > + + {collector ? ( + {collector.collector_type} + ) : ( + + )} + + + {headers.map(header => ( +
+ {header.value?.(payload)} +
+ ))}
- ))} -
- )} - /> - - setPayloads(payloads.map(a => (a.payload_id !== result.payload_id ? a : result)))} - onDuplicate={(result: PayloadStore) => setPayloads([result, ...payloads])} - onDelete={(result: string) => setPayloads(payloads.filter(a => (a.payload_id !== result)))} - disabled={collector !== null} - /> - - + )} + /> + + + ) ); })} diff --git a/openbas-front/src/admin/components/settings/groups/GroupPopover.js b/openbas-front/src/admin/components/settings/groups/GroupPopover.js index 165216dd4d..bffc7a5868 100644 --- a/openbas-front/src/admin/components/settings/groups/GroupPopover.js +++ b/openbas-front/src/admin/components/settings/groups/GroupPopover.js @@ -12,7 +12,7 @@ import { Grid, IconButton, List, - ListItem, + ListItemButton, ListItemIcon, ListItemText, Menu, @@ -390,10 +390,9 @@ class GroupPopover extends Component { {filteredUsers.map((user) => { const disabled = this.state.usersIds.includes(user.user_id); return ( - - + ); })} diff --git a/openbas-front/src/admin/components/simulations/simulation/definition/ExerciseControlComChecks.tsx b/openbas-front/src/admin/components/simulations/simulation/definition/ExerciseControlComChecks.tsx index b95cc3330a..cfda536e59 100644 --- a/openbas-front/src/admin/components/simulations/simulation/definition/ExerciseControlComChecks.tsx +++ b/openbas-front/src/admin/components/simulations/simulation/definition/ExerciseControlComChecks.tsx @@ -1,5 +1,5 @@ import { DeleteOutlined, MarkEmailReadOutlined } from '@mui/icons-material'; -import { IconButton, List, ListItem, ListItemIcon, ListItemSecondaryAction, ListItemText } from '@mui/material'; +import { IconButton, List, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText } from '@mui/material'; import { makeStyles } from '@mui/styles'; import { FunctionComponent, useState } from 'react'; import { Link } from 'react-router-dom'; @@ -66,10 +66,9 @@ const ExerciseControlComChecks: FunctionComponent = ({ {comchecks.length > 0 ? ( {comchecks.map((comcheck: Comcheck) => ( - = ({ - + ))} ) : ( )} - setOpenComcheckDelete(null)} diff --git a/openbas-front/src/admin/components/simulations/simulation/definition/ExerciseControlDryRuns.tsx b/openbas-front/src/admin/components/simulations/simulation/definition/ExerciseControlDryRuns.tsx index 4176d6f50d..934f1d752c 100644 --- a/openbas-front/src/admin/components/simulations/simulation/definition/ExerciseControlDryRuns.tsx +++ b/openbas-front/src/admin/components/simulations/simulation/definition/ExerciseControlDryRuns.tsx @@ -1,5 +1,5 @@ import { DeleteOutlined, VideoSettingsOutlined } from '@mui/icons-material'; -import { IconButton, List, ListItem, ListItemIcon, ListItemSecondaryAction, ListItemText } from '@mui/material'; +import { IconButton, List, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText } from '@mui/material'; import { makeStyles } from '@mui/styles'; import { FunctionComponent, useState } from 'react'; import { Link } from 'react-router-dom'; @@ -66,10 +66,9 @@ const ExerciseControlDryRuns: FunctionComponent = ({ {dryruns.length > 0 ? ( {dryruns.map((dryrun: Dryrun) => ( - = ({ - + ))} ) : ( )} - setOpenDryrunDelete(null)} diff --git a/openbas-front/src/admin/components/simulations/simulation/injects/QuickInject.js b/openbas-front/src/admin/components/simulations/simulation/injects/QuickInject.js index 4a9cac4cc3..417c570558 100644 --- a/openbas-front/src/admin/components/simulations/simulation/injects/QuickInject.js +++ b/openbas-front/src/admin/components/simulations/simulation/injects/QuickInject.js @@ -16,6 +16,7 @@ import { InputLabel, List, ListItem, + ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText, @@ -1315,11 +1316,10 @@ class QuickInject extends Component {   {sortedDocuments.map(document => ( - @@ -1399,7 +1399,7 @@ class QuickInject extends Component { disabled={isExerciseReadOnly(exercise)} /> - + ))} { {sortedInjects.map((inject) => { return ( - @@ -419,7 +418,7 @@ const Mails = () => { - + ); })} diff --git a/openbas-front/src/admin/components/simulations/simulation/timeline/TimelineOverview.tsx b/openbas-front/src/admin/components/simulations/simulation/timeline/TimelineOverview.tsx index f939ae1002..a3e1c21669 100644 --- a/openbas-front/src/admin/components/simulations/simulation/timeline/TimelineOverview.tsx +++ b/openbas-front/src/admin/components/simulations/simulation/timeline/TimelineOverview.tsx @@ -1,5 +1,14 @@ import { PreviewOutlined } from '@mui/icons-material'; -import { Grid, List, ListItem, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText, Paper, Typography } from '@mui/material'; +import { + Grid, + List, + ListItemButton, + ListItemIcon, + ListItemSecondaryAction, + ListItemText, + Paper, + Typography, +} from '@mui/material'; import { makeStyles } from '@mui/styles'; import { useState } from 'react'; import { Link, useParams } from 'react-router-dom'; @@ -148,12 +157,11 @@ const TimelineOverview = () => { {pendingInjects.map((inject: InjectStore) => { const isDisabled = !inject.inject_injector_contract.injector_contract_content_parsed?.config.expose; return ( - setSelectedInjectId(inject.inject_id)} > @@ -211,7 +219,7 @@ const TimelineOverview = () => { canTriggerNow /> - + ); })} @@ -275,10 +283,11 @@ const TimelineOverview = () => { > {fndt(inject.inject_status?.tracking_sent_date)} {' '} - ( - {inject.inject_status && inject.inject_status.tracking_total_execution_time && (inject.inject_status.tracking_total_execution_time / 1000).toFixed(2)} + { + inject.inject_status && inject.inject_status.tracking_total_execution_time + && (inject.inject_status.tracking_total_execution_time / 1000).toFixed(2) + } {t('s')} - )
)} diff --git a/openbas-front/src/admin/components/simulations/simulation/validation/expectations/ExpectationLine.tsx b/openbas-front/src/admin/components/simulations/simulation/validation/expectations/ExpectationLine.tsx index 2e2d4ba752..8be6b179cf 100644 --- a/openbas-front/src/admin/components/simulations/simulation/validation/expectations/ExpectationLine.tsx +++ b/openbas-front/src/admin/components/simulations/simulation/validation/expectations/ExpectationLine.tsx @@ -1,4 +1,4 @@ -import { ListItem, ListItemIcon, ListItemText } from '@mui/material'; +import { ListItemButton, ListItemIcon, ListItemText } from '@mui/material'; import { makeStyles } from '@mui/styles'; import { FunctionComponent, ReactElement } from 'react'; @@ -46,14 +46,11 @@ const ExpectationLine: FunctionComponent = ({ return ( <> - @@ -76,7 +73,7 @@ const ExpectationLine: FunctionComponent = ({
)} /> -
+ ); }; diff --git a/openbas-front/src/admin/components/simulations/simulation/validation/expectations/TechnicalExpectationAsset.tsx b/openbas-front/src/admin/components/simulations/simulation/validation/expectations/TechnicalExpectationAsset.tsx index 3fd9b82f31..d242060fa1 100644 --- a/openbas-front/src/admin/components/simulations/simulation/validation/expectations/TechnicalExpectationAsset.tsx +++ b/openbas-front/src/admin/components/simulations/simulation/validation/expectations/TechnicalExpectationAsset.tsx @@ -1,5 +1,5 @@ import { KeyboardArrowRightOutlined } from '@mui/icons-material'; -import { Alert, Button, List, ListItem, ListItemIcon, ListItemText } from '@mui/material'; +import { Alert, Button, List, ListItem, ListItemButton, ListItemIcon, ListItemText } from '@mui/material'; import { makeStyles } from '@mui/styles'; import * as R from 'ramda'; import { FunctionComponent, useState } from 'react'; @@ -96,18 +96,13 @@ const TechnicalExpectationAsset: FunctionComponent = ({ disablePadding > {expectation.inject_expectation_results?.map(result => ( - setSelected(result)} - > + setSelected(result)}> {result.sourceName}} /> {truncate(result.result, 40)}} /> - + ))} diff --git a/openbas-front/src/components/common/queryable/filter/FilterAutocomplete.tsx b/openbas-front/src/components/common/queryable/filter/FilterAutocomplete.tsx index a261dce9b4..36b8fbb6b5 100644 --- a/openbas-front/src/components/common/queryable/filter/FilterAutocomplete.tsx +++ b/openbas-front/src/components/common/queryable/filter/FilterAutocomplete.tsx @@ -79,7 +79,7 @@ const FilterAutocomplete: FunctionComponent = ({ style={style} /> )} - renderOption={(props, option) =>
  • {option.label}
  • } + renderOption={(props, option) =>
  • {option.label}
  • } /> ({ margin: '0 4px', padding: '0 4px', }, - modeTooltip: { - margin: '0 4px', - }, container: { gap: '4px', display: 'flex', - overflow: 'hidden', - maxWidth: '400px', alignItems: 'center', lineHeight: '32px', - whiteSpace: 'nowrap', - textOverflow: 'ellipsis', + maxWidth: '400px', }, label: { 'cursor': 'pointer', @@ -64,42 +58,21 @@ const FilterChipValues: FunctionComponent = ({ } }, [filter]); - const toValues = (opts: Option[]) => { - return opts.map((o, idx) => { - let or = <>; - if (idx > 0) { - or = ( -
    - {t('OR')} -
    - ); - } - if (propertySchema?.schema_property_type.includes('instant')) { - return ( - <> - {or} - - {' '} - {fldt(o.label)} - - - ); - } - return ( - <> - {or} - - {' '} - {o.label} - - - ); - }); - }; + const or = ( +
    + {t('OR')} +
    + ); + + const toValues = (opts: Option[]) => opts.map((o, idx) => ( + + {idx > 0 && or} + + {' '} + { propertySchema?.schema_property_type.includes('instant') ? (o.label) : o.label} + + + )); const operator = filter.operator ?? 'eq'; const isOperatorNil = ['empty', 'not_empty'].includes(operator); @@ -119,22 +92,36 @@ const FilterChipValues: FunctionComponent = ({ ); } + + if (isTooltip) { + let str = ''; + options.forEach((o, idx) => { + if (idx > 0) { + str = `${str} ${t('OR')}`; + } + if (propertySchema?.schema_property_type.includes('instant')) { + str = `${str} ${fldt(o.label)}`; + } else { + str = `${str} ${o.label}`; + } + }); + return str; + } + return ( - <> - - - {t(filter.key)} - {convertOperatorToIcon(t, filter.operator)} - - {' '} - - {toValues(options)} - - - + + + {t(filter.key)} + {convertOperatorToIcon(t, filter.operator)} + + {' '} + + {toValues(options)} + + ); }; diff --git a/openbas-front/src/components/fields/MultipleFileLoader.tsx b/openbas-front/src/components/fields/MultipleFileLoader.tsx index 415a09319a..510580f41a 100644 --- a/openbas-front/src/components/fields/MultipleFileLoader.tsx +++ b/openbas-front/src/components/fields/MultipleFileLoader.tsx @@ -1,5 +1,5 @@ import { ControlPointOutlined } from '@mui/icons-material'; -import { ListItem, ListItemIcon, ListItemText } from '@mui/material'; +import { ListItemButton, ListItemIcon, ListItemText } from '@mui/material'; import { makeStyles } from '@mui/styles'; import { FunctionComponent, useContext, useState } from 'react'; @@ -59,9 +59,8 @@ const MultipleFileLoader: FunctionComponent = ({ return ( <> - = ({ primary={t('Add documents')} classes={{ primary: classes.text }} /> - + =5.15.0" - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 - react-dom: ^17.0.0 || ^18.0.0 + "@mui/material": ^6.1.6 + "@mui/material-pigment-css": ^6.1.6 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: "@emotion/react": optional: true "@emotion/styled": optional: true + "@mui/material-pigment-css": + optional: true "@types/react": optional: true - checksum: 10c0/2ecd7da650bb5dab84035360621c2657dcd82f397e01044259b4373d54e1ecd12a8c2bc31163d0ce28f62276df208b50a6739ce8537552ec45e1005d24ba8080 + checksum: 10c0/dc46e8c984cc5caa261df2d48f943967049ad6118e7ba52b1aa60cfb15dc7b6fb11d2f0129616987b49865a54133286867d57a5d1aeba318ec558e523e6437fa languageName: node linkType: hard -"@mui/material@npm:5.16.7": - version: 5.16.7 - resolution: "@mui/material@npm:5.16.7" +"@mui/material@npm:6.1.6": + version: 6.1.6 + resolution: "@mui/material@npm:6.1.6" dependencies: - "@babel/runtime": "npm:^7.23.9" - "@mui/core-downloads-tracker": "npm:^5.16.7" - "@mui/system": "npm:^5.16.7" - "@mui/types": "npm:^7.2.15" - "@mui/utils": "npm:^5.16.6" + "@babel/runtime": "npm:^7.26.0" + "@mui/core-downloads-tracker": "npm:^6.1.6" + "@mui/system": "npm:^6.1.6" + "@mui/types": "npm:^7.2.19" + "@mui/utils": "npm:^6.1.6" "@popperjs/core": "npm:^2.11.8" - "@types/react-transition-group": "npm:^4.4.10" - clsx: "npm:^2.1.0" + "@types/react-transition-group": "npm:^4.4.11" + clsx: "npm:^2.1.1" csstype: "npm:^3.1.3" prop-types: "npm:^15.8.1" react-is: "npm:^18.3.1" @@ -2044,68 +2047,73 @@ __metadata: peerDependencies: "@emotion/react": ^11.5.0 "@emotion/styled": ^11.3.0 - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 - react-dom: ^17.0.0 || ^18.0.0 + "@mui/material-pigment-css": ^6.1.6 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: "@emotion/react": optional: true "@emotion/styled": optional: true + "@mui/material-pigment-css": + optional: true "@types/react": optional: true - checksum: 10c0/b11419c1a77835413471f9352586fed65fb5de19c6737e121669da0484c441c7dd9939aa73fdad779482c30efaa694fb9fdcf18dcf418af07881e60eaff92b4f + checksum: 10c0/b54c0b01f33f63a700ec7b13d615dd3a109497ee48a1af0f750f780112a7034fbecfcecf29ad67aa62ec12047d465fbcb243052d8680ce681240096fef1f8d63 languageName: node linkType: hard -"@mui/private-theming@npm:^5.16.6": - version: 5.16.6 - resolution: "@mui/private-theming@npm:5.16.6" +"@mui/private-theming@npm:^6.1.6": + version: 6.1.6 + resolution: "@mui/private-theming@npm:6.1.6" dependencies: - "@babel/runtime": "npm:^7.23.9" - "@mui/utils": "npm:^5.16.6" + "@babel/runtime": "npm:^7.26.0" + "@mui/utils": "npm:^6.1.6" prop-types: "npm:^15.8.1" peerDependencies: - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: "@types/react": optional: true - checksum: 10c0/0a09afd6c2be37197973a856049f97e2f17f3e5e6cf6387af036055342efbfcd7d7066dcad587886f25f491e5940e4e9bb7d732d5099eb85b53b84ef120e9555 + checksum: 10c0/d9138bd3ae8b318b0f14e3d9a9aa414f31698ce3934b94f0a1e78d9c2c37fd3d2b24a6bd45ded321ffc41658e70fc055226b9c1b9767695a93c927adf54302a0 languageName: node linkType: hard -"@mui/styled-engine@npm:^5.16.6": - version: 5.16.6 - resolution: "@mui/styled-engine@npm:5.16.6" +"@mui/styled-engine@npm:^6.1.6": + version: 6.1.6 + resolution: "@mui/styled-engine@npm:6.1.6" dependencies: - "@babel/runtime": "npm:^7.23.9" - "@emotion/cache": "npm:^11.11.0" + "@babel/runtime": "npm:^7.26.0" + "@emotion/cache": "npm:^11.13.1" + "@emotion/serialize": "npm:^1.3.2" + "@emotion/sheet": "npm:^1.4.0" csstype: "npm:^3.1.3" prop-types: "npm:^15.8.1" peerDependencies: "@emotion/react": ^11.4.1 "@emotion/styled": ^11.3.0 - react: ^17.0.0 || ^18.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: "@emotion/react": optional: true "@emotion/styled": optional: true - checksum: 10c0/b15e653c8756059c8ae2891ca54900573e22f6ed1aaf65a389ec838f2aca3252aeeb9a79aec4a43f080152b161a416e60b31a62595ba86ad5f72eda5642caaf2 + checksum: 10c0/2554248f83db98b404b299494c4f039fe5a1f1b9166fc95268958ea00aa3be04915ffbabe0ea418cb2d600e11b6d08f765ddd23240a63e6d06161d07eaac6aa8 languageName: node linkType: hard -"@mui/styles@npm:5.16.7": - version: 5.16.7 - resolution: "@mui/styles@npm:5.16.7" +"@mui/styles@npm:6.1.6": + version: 6.1.6 + resolution: "@mui/styles@npm:6.1.6" dependencies: - "@babel/runtime": "npm:^7.23.9" - "@emotion/hash": "npm:^0.9.1" - "@mui/private-theming": "npm:^5.16.6" - "@mui/types": "npm:^7.2.15" - "@mui/utils": "npm:^5.16.6" - clsx: "npm:^2.1.0" + "@babel/runtime": "npm:^7.26.0" + "@emotion/hash": "npm:^0.9.2" + "@mui/private-theming": "npm:^6.1.6" + "@mui/types": "npm:^7.2.19" + "@mui/utils": "npm:^6.1.6" + clsx: "npm:^2.1.1" csstype: "npm:^3.1.3" hoist-non-react-statics: "npm:^3.3.2" jss: "npm:^10.10.0" @@ -2118,32 +2126,32 @@ __metadata: jss-plugin-vendor-prefixer: "npm:^10.10.0" prop-types: "npm:^15.8.1" peerDependencies: - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: "@types/react": optional: true - checksum: 10c0/545e96ce5955c1cfee8ba3642e121acd3fcb9af0cd515c2748729d8d36758f26eb44c36d8ab95fe9fb040d29d40fc234c6f402c60f7fbd65d902e85e5154929f + checksum: 10c0/714d4e9ec47b64042139e516c0fa4f57a1331a748099797b6a920918a17e0266082b93ba9c5020b8e62c52140e682a2b7fa55fd86398f92e0e3d45057ca48a8b languageName: node linkType: hard -"@mui/system@npm:^5.16.5, @mui/system@npm:^5.16.7": - version: 5.16.7 - resolution: "@mui/system@npm:5.16.7" +"@mui/system@npm:6.1.6, @mui/system@npm:^6.1.6": + version: 6.1.6 + resolution: "@mui/system@npm:6.1.6" dependencies: - "@babel/runtime": "npm:^7.23.9" - "@mui/private-theming": "npm:^5.16.6" - "@mui/styled-engine": "npm:^5.16.6" - "@mui/types": "npm:^7.2.15" - "@mui/utils": "npm:^5.16.6" - clsx: "npm:^2.1.0" + "@babel/runtime": "npm:^7.26.0" + "@mui/private-theming": "npm:^6.1.6" + "@mui/styled-engine": "npm:^6.1.6" + "@mui/types": "npm:^7.2.19" + "@mui/utils": "npm:^6.1.6" + clsx: "npm:^2.1.1" csstype: "npm:^3.1.3" prop-types: "npm:^15.8.1" peerDependencies: "@emotion/react": ^11.5.0 "@emotion/styled": ^11.3.0 - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: "@emotion/react": optional: true @@ -2151,11 +2159,11 @@ __metadata: optional: true "@types/react": optional: true - checksum: 10c0/c07479c0728433847c1e3d7f57b96d9e0770cc814dfd1c9e070304955984a0b706832703b22388eb83906d1a01691f37047e2bac6a5e5c083e8c29a54302d476 + checksum: 10c0/125d38ad5b0d610cfedace8253e43b4be47b46ad2d96eeac019c6c37b4f09286512e2280924753f8bb0314c4d7cc5e8f03fc7f97cf9830c4f6d1869b721eb8c2 languageName: node linkType: hard -"@mui/types@npm:^7.2.14, @mui/types@npm:^7.2.15, @mui/types@npm:^7.2.18": +"@mui/types@npm:^7.2.18": version: 7.2.18 resolution: "@mui/types@npm:7.2.18" peerDependencies: @@ -2167,23 +2175,35 @@ __metadata: languageName: node linkType: hard -"@mui/utils@npm:5.16.6, @mui/utils@npm:^5.15.14, @mui/utils@npm:^5.16.5, @mui/utils@npm:^5.16.6": - version: 5.16.6 - resolution: "@mui/utils@npm:5.16.6" +"@mui/types@npm:^7.2.19": + version: 7.2.19 + resolution: "@mui/types@npm:7.2.19" + peerDependencies: + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/9c390d7eddc7e7c396852202fdca021aee275391bc7f48d0b6458748bf75eebb34c73109958692655ba5e72946cf47db2c0c7d2e1c26be568599ed65c931d080 + languageName: node + linkType: hard + +"@mui/utils@npm:6.1.6, @mui/utils@npm:^6.1.6": + version: 6.1.6 + resolution: "@mui/utils@npm:6.1.6" dependencies: - "@babel/runtime": "npm:^7.23.9" - "@mui/types": "npm:^7.2.15" - "@types/prop-types": "npm:^15.7.12" + "@babel/runtime": "npm:^7.26.0" + "@mui/types": "npm:^7.2.19" + "@types/prop-types": "npm:^15.7.13" clsx: "npm:^2.1.1" prop-types: "npm:^15.8.1" react-is: "npm:^18.3.1" peerDependencies: - "@types/react": ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: "@types/react": optional: true - checksum: 10c0/2db3d11a83d7216fb8ceb459d4b30c795922c04cd8fabc26c721dd7b4f5ed5c4f3f3ace6ea70227bf3b79361bd58f13b723562cfd40255424d979ab238ab2e91 + checksum: 10c0/8752b3ca3fa1cee7f1a8477b6babcd80fef01724f7d8106c8665a252ec960ca38ef5f4fe21cfb60ee11176a9a8034400420d5b0719953ecc2c4f25980682614c languageName: node linkType: hard @@ -2207,9 +2227,9 @@ __metadata: languageName: node linkType: hard -"@mui/x-date-pickers@npm:7.22.0": - version: 7.22.0 - resolution: "@mui/x-date-pickers@npm:7.22.0" +"@mui/x-date-pickers@npm:7.22.1": + version: 7.22.1 + resolution: "@mui/x-date-pickers@npm:7.22.1" dependencies: "@babel/runtime": "npm:^7.25.7" "@mui/utils": "npm:^5.16.6 || ^6.0.0" @@ -2251,7 +2271,7 @@ __metadata: optional: true moment-jalaali: optional: true - checksum: 10c0/7b5ba6a2b523956631219af912f0689e2f24e3d0023aa7bcb285c20065b6160c829879a9c21d19697e1622c0b8a42dd311bd53e2c8f877a5fb96d3eeff011c5e + checksum: 10c0/d55576817d11a6b7ff787bc51f9b719ba9822cc1fa9343d3d7e3bc0b19597e4346fdf1833fa88d20215b85f31306214dbb0e23b31c6b3e080a53051ae401fa27 languageName: node linkType: hard @@ -2908,7 +2928,7 @@ __metadata: languageName: node linkType: hard -"@types/prop-types@npm:*, @types/prop-types@npm:^15.7.12, @types/prop-types@npm:^15.7.13": +"@types/prop-types@npm:*, @types/prop-types@npm:^15.7.13": version: 15.7.13 resolution: "@types/prop-types@npm:15.7.13" checksum: 10c0/1b20fc67281902c6743379960247bc161f3f0406ffc0df8e7058745a85ea1538612109db0406290512947f9632fe9e10e7337bf0ce6338a91d6c948df16a7c61 @@ -2949,7 +2969,7 @@ __metadata: languageName: node linkType: hard -"@types/react-transition-group@npm:^4.4.10, @types/react-transition-group@npm:^4.4.11": +"@types/react-transition-group@npm:^4.4.11": version: 4.4.11 resolution: "@types/react-transition-group@npm:4.4.11" dependencies: @@ -4176,7 +4196,7 @@ __metadata: languageName: node linkType: hard -"clsx@npm:^2.1.0, clsx@npm:^2.1.1": +"clsx@npm:^2.1.1": version: 2.1.1 resolution: "clsx@npm:2.1.1" checksum: 10c0/c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839 @@ -8815,12 +8835,13 @@ __metadata: "@fontsource/ibm-plex-sans": "npm:5.0.21" "@hookform/resolvers": "npm:3.9.0" "@microsoft/fetch-event-source": "npm:2.0.1" - "@mui/icons-material": "npm:5.16.7" - "@mui/lab": "npm:5.0.0-alpha.173" - "@mui/material": "npm:5.16.7" - "@mui/styles": "npm:5.16.7" - "@mui/utils": "npm:5.16.6" - "@mui/x-date-pickers": "npm:7.22.0" + "@mui/icons-material": "npm:6.1.6" + "@mui/lab": "npm:6.0.0-beta.14" + "@mui/material": "npm:6.1.6" + "@mui/styles": "npm:6.1.6" + "@mui/system": "npm:6.1.6" + "@mui/utils": "npm:6.1.6" + "@mui/x-date-pickers": "npm:7.22.1" "@playwright/test": "npm:1.48.2" "@redux-devtools/extension": "npm:3.3.0" "@stylistic/eslint-plugin": "npm:2.10.1"