@centreon/ui 24.10.17 → 24.10.19

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.10.17",
3
+ "version": "24.10.19",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "update:deps": "pnpx npm-check-updates -i --format group",
@@ -136,6 +136,8 @@ const ConnectedAutocomplete = ({
136
136
  getEndpoint={getEndpoint}
137
137
  decoder={connectedAutocomplete?.decoder}
138
138
  getRenderedOptionText={connectedAutocomplete?.getRenderedOptionText}
139
+ getOptionLabel={connectedAutocomplete?.getOptionLabel}
140
+ optionProperty={connectedAutocomplete?.optionProperty}
139
141
  initialPage={1}
140
142
  isOptionEqualToValue={isOptionEqualToValue}
141
143
  label={t(label)}
@@ -59,6 +59,10 @@ export interface InputProps {
59
59
  endpoint?: string;
60
60
  filterKey?: string;
61
61
  getRenderedOptionText?: (option) => string | JSX.Element;
62
+ getOptionLabel?: (option) => string;
63
+ optionProperty?: string;
64
+ disableSelectAll?: boolean;
65
+ limitTags?: number;
62
66
  decoder?;
63
67
  limitTags: number;
64
68
  };
@@ -65,7 +65,7 @@ const ConnectedAutocompleteField = (
65
65
  open,
66
66
  exclusionOptionProperty = 'id',
67
67
  searchConditions = [],
68
- getRenderedOptionText = (option): string => option.name?.toString(),
68
+ getRenderedOptionText = (option): string => option?.name?.toString(),
69
69
  getRequestHeaders,
70
70
  displayOptionThumbnail,
71
71
  queryKey,