1
- import PropTypes from 'prop-types' ;
2
1
import React , { useCallback , useMemo , useState } from 'react' ;
3
-
2
+ import Search from '@mui/icons-material/Search' ;
4
3
import { Box , Button , Grid , Typography } from '@mui/material' ;
5
4
import { makeStyles } from '@mui/styles' ;
6
-
7
- import Search from '@mui/icons-material/Search' ;
8
5
import {
9
6
QueryBuilderInput ,
10
7
commonStyles ,
@@ -13,35 +10,36 @@ import {
13
10
useSkipEffectOnMount ,
14
11
InputWithInfos ,
15
12
} from 'bluesquare-components' ;
13
+ import PropTypes from 'prop-types' ;
16
14
17
15
import DatesRange from '../../../components/filters/DatesRange' ;
16
+ import { AsyncSelect } from '../../../components/forms/AsyncSelect.tsx' ;
18
17
import InputComponent from '../../../components/forms/InputComponent.tsx' ;
18
+ import { UserOrgUnitRestriction } from '../../../components/UserOrgUnitRestriction.tsx' ;
19
+ import { getInstancesFilterValues , useFormState } from '../../../hooks/form' ;
20
+ import { LocationLimit } from '../../../utils/map/LocationLimit' ;
21
+ import { Popper } from '../../forms/fields/components/Popper.tsx' ;
22
+ import { useGetFormDescriptor } from '../../forms/fields/hooks/useGetFormDescriptor.ts' ;
23
+ import { useGetQueryBuilderListToReplace } from '../../forms/fields/hooks/useGetQueryBuilderListToReplace.ts' ;
24
+ import { useGetQueryBuildersFields } from '../../forms/fields/hooks/useGetQueryBuildersFields.ts' ;
25
+ import { OrgUnitTreeviewModal } from '../../orgUnits/components/TreeView/OrgUnitTreeviewModal.tsx' ;
26
+ import { useGetOrgUnit } from '../../orgUnits/components/TreeView/requests.ts' ;
19
27
import PeriodPicker from '../../periods/components/PeriodPicker.tsx' ;
20
28
import { periodTypeOptions } from '../../periods/constants' ;
21
29
import { Period } from '../../periods/models.ts' ;
22
30
import { isValidPeriod } from '../../periods/utils' ;
23
31
24
32
import { INSTANCE_STATUSES } from '../constants' ;
25
33
26
- import { getInstancesFilterValues , useFormState } from '../../../hooks/form' ;
27
- import { useGetFormDescriptor } from '../../forms/fields/hooks/useGetFormDescriptor.ts' ;
28
- import { useGetQueryBuilderListToReplace } from '../../forms/fields/hooks/useGetQueryBuilderListToReplace.ts' ;
29
- import { useGetQueryBuildersFields } from '../../forms/fields/hooks/useGetQueryBuildersFields.ts' ;
30
34
import { useGetForms } from '../hooks' ;
35
+ import { getUsersDropDown } from '../hooks/requests/getUsersDropDown.tsx' ;
36
+ import { useGetProfilesDropdown } from '../hooks/useGetProfilesDropdown.tsx' ;
37
+ import MESSAGES from '../messages' ;
31
38
import { parseJson } from '../utils/jsonLogicParse.ts' ;
32
39
33
- import { Popper } from '../../forms/fields/components/Popper.tsx' ;
34
- import { OrgUnitTreeviewModal } from '../../orgUnits/components/TreeView/OrgUnitTreeviewModal.tsx' ;
35
- import { useGetOrgUnit } from '../../orgUnits/components/TreeView/requests.ts' ;
36
- import MESSAGES from '../messages' ;
37
40
38
- import { AsyncSelect } from '../../../components/forms/AsyncSelect.tsx' ;
39
- import { UserOrgUnitRestriction } from '../../../components/UserOrgUnitRestriction.tsx' ;
40
- import { LocationLimit } from '../../../utils/map/LocationLimit' ;
41
41
import { useGetPlanningsOptions } from '../../plannings/hooks/requests/useGetPlannings.ts' ;
42
42
import { useGetProjectsDropdownOptions } from '../../projects/hooks/requests.ts' ;
43
- import { getUsersDropDown } from '../hooks/requests/getUsersDropDown.tsx' ;
44
- import { useGetProfilesDropdown } from '../hooks/useGetProfilesDropdown.tsx' ;
45
43
import { ColumnSelect } from './ColumnSelect.tsx' ;
46
44
import { useGetOrgUnitTypesDropdownOptions } from '../../orgUnits/orgUnitTypes/hooks/useGetOrgUnitTypesDropdownOptions' ;
47
45
@@ -600,7 +598,6 @@ InstancesFiltersComponent.propTypes = {
600
598
labelKeys : PropTypes . array . isRequired ,
601
599
periodType : PropTypes . string ,
602
600
possibleFields : PropTypes . array ,
603
- formDetails : PropTypes . object ,
604
601
} ;
605
602
606
603
export default InstancesFiltersComponent ;
0 commit comments