@centreon/ui 24.7.9 → 24.7.10

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.7.9",
3
+ "version": "24.7.10",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "update:deps": "pnpx npm-check-updates -i --format group",
@@ -33,7 +33,8 @@ const ResponsiveBarStack = ({
33
33
  unit = 'number',
34
34
  displayValues,
35
35
  variant = 'vertical',
36
- legendDirection = 'column'
36
+ legendDirection = 'column',
37
+ tooltipProps = {}
37
38
  }: BarStackProps & { height: number; width: number }): JSX.Element => {
38
39
  const { t } = useTranslation();
39
40
  const { classes, cx } = useBarStackStyles();
@@ -143,6 +144,7 @@ const ResponsiveBarStack = ({
143
144
  title={title}
144
145
  total={total}
145
146
  value={barStack.bars[0].bar.data[barStack.key]}
147
+ {...tooltipProps}
146
148
  />
147
149
  )
148
150
  }
@@ -14,6 +14,7 @@ export type BarStackProps = {
14
14
  onSingleBarClick?: (barData) => void;
15
15
  size?: number;
16
16
  title?: string;
17
+ tooltipProps?: object;
17
18
  unit?: 'percentage' | 'number';
18
19
  variant?: 'vertical' | 'horizontal';
19
20
  };
@@ -53,7 +53,8 @@ const ResponsivePie = ({
53
53
  onArcClick,
54
54
  displayValues,
55
55
  TooltipContent,
56
- legendDirection = 'column'
56
+ legendDirection = 'column',
57
+ tooltipProps = {}
57
58
  }: PieProps & { height: number; width: number }): JSX.Element => {
58
59
  const { t } = useTranslation();
59
60
  const theme = useTheme();
@@ -163,6 +164,7 @@ const ResponsivePie = ({
163
164
  title={title}
164
165
  total={total}
165
166
  value={arc.data.value}
167
+ {...tooltipProps}
166
168
  />
167
169
  )
168
170
  }
@@ -14,6 +14,7 @@ export interface PieProps {
14
14
  legendDirection?: 'row' | 'column';
15
15
  onArcClick?: (ardata) => void;
16
16
  title?: string;
17
+ tooltipProps?: object;
17
18
  unit?: 'percentage' | 'number';
18
19
  variant?: 'pie' | 'donut';
19
20
  }
@@ -60,7 +60,12 @@ export const useInfiniteScrollListing = <T>({
60
60
  customQueryParameters,
61
61
  parameters: { limit, page: params?.page || page, ...parameters }
62
62
  }),
63
- getQueryKey: () => [queryKeyName, page],
63
+ getQueryKey: () => [
64
+ queryKeyName,
65
+ page,
66
+ JSON.stringify(parameters),
67
+ JSON.stringify(customQueryParameters)
68
+ ],
64
69
  isPaginated: true,
65
70
  queryOptions: {
66
71
  enabled,