@centreon/ui 24.4.0-PR-for-test.0 → 24.4.0-SECU-dependency-check-dev-24.4.x.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "24.4.0-PR-for-test.0",
3
+ "version": "24.4.0-SECU-dependency-check-dev-24.4.x.0",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "update:deps": "pnpx npm-check-updates -i --format group",
@@ -1,7 +1,7 @@
1
1
  import { useCallback, useMemo } from 'react';
2
2
 
3
3
  import { FormikValues, useFormikContext } from 'formik';
4
- import { path, equals, isEmpty, split } from 'ramda';
4
+ import { equals, isEmpty, path, split } from 'ramda';
5
5
  import { useTranslation } from 'react-i18next';
6
6
 
7
7
  import {
@@ -113,8 +113,6 @@ const ConnectedAutocomplete = ({
113
113
  field={filterKey}
114
114
  getEndpoint={getEndpoint}
115
115
  getRenderedOptionText={connectedAutocomplete?.getRenderedOptionText}
116
- getOptionLabel={connectedAutocomplete?.getOptionLabel}
117
- optionProperty={connectedAutocomplete?.optionProperty}
118
116
  initialPage={1}
119
117
  isOptionEqualToValue={isOptionEqualToValue}
120
118
  label={t(label)}
@@ -49,9 +49,6 @@ export interface InputProps {
49
49
  endpoint?: string;
50
50
  filterKey?: string;
51
51
  getRenderedOptionText?: (option) => string | JSX.Element;
52
- getOptionLabel?: (option) => string;
53
- optionProperty?: string;
54
- limitTags?: number;
55
52
  };
56
53
  custom?: {
57
54
  Component: React.ComponentType<InputPropsWithoutGroup>;
@@ -1,34 +1,34 @@
1
- import { useEffect, useState } from 'react';
1
+ import { useState, useEffect } from 'react';
2
2
 
3
3
  import {
4
4
  equals,
5
- has,
6
- isEmpty,
7
- isNil,
5
+ prop,
8
6
  last,
7
+ isEmpty,
9
8
  map,
9
+ isNil,
10
+ pipe,
10
11
  not,
12
+ has,
11
13
  omit,
12
- pipe,
13
- prop,
14
14
  uniqBy
15
15
  } from 'ramda';
16
16
 
17
17
  import { CircularProgress, useTheme } from '@mui/material';
18
18
 
19
19
  import { Props as AutocompleteFieldProps } from '..';
20
+ import {
21
+ useDebounce,
22
+ useIntersectionObserver,
23
+ useDeepCompare
24
+ } from '../../../../utils';
20
25
  import { ListingModel, SelectEntry } from '../../../..';
26
+ import Option from '../../Option';
21
27
  import {
22
28
  ConditionsSearchParameter,
23
29
  SearchParameter
24
30
  } from '../../../../api/buildListingEndpoint/models';
25
31
  import useFetchQuery from '../../../../api/useFetchQuery';
26
- import {
27
- useDebounce,
28
- useDeepCompare,
29
- useIntersectionObserver
30
- } from '../../../../utils';
31
- import Option from '../../Option';
32
32
 
33
33
  export interface ConnectedAutoCompleteFieldProps<TData> {
34
34
  allowUniqOption?: boolean;
@@ -57,7 +57,7 @@ const ConnectedAutocompleteField = (
57
57
  open,
58
58
  exclusionOptionProperty = 'id',
59
59
  searchConditions = [],
60
- getRenderedOptionText = (option): string => option?.name?.toString(),
60
+ getRenderedOptionText = (option): string => option.name?.toString(),
61
61
  getRequestHeaders,
62
62
  displayOptionThumbnail,
63
63
  queryKey,