@centreon/ui 24.11.2 → 24.11.4

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.
Files changed (75) hide show
  1. package/package.json +2 -3
  2. package/src/Dashboard/Dashboard.styles.ts +4 -3
  3. package/src/Dashboard/DashboardLayout.stories.tsx +1 -1
  4. package/src/Dashboard/Grid.tsx +17 -11
  5. package/src/Dashboard/Layout.tsx +56 -27
  6. package/src/FileDropZone/index.tsx +21 -23
  7. package/src/Form/CollapsibleGroup.tsx +3 -2
  8. package/src/Form/Form.cypress.spec.tsx +39 -0
  9. package/src/Form/Form.tsx +1 -0
  10. package/src/Form/Inputs/Autocomplete.tsx +27 -4
  11. package/src/Form/Inputs/ConnectedAutocomplete.tsx +20 -10
  12. package/src/Form/Inputs/File.tsx +69 -0
  13. package/src/Form/Inputs/Grid.tsx +30 -2
  14. package/src/Form/Inputs/Radio.tsx +12 -4
  15. package/src/Form/Inputs/Switch.tsx +10 -2
  16. package/src/Form/Inputs/Text.tsx +13 -4
  17. package/src/Form/Inputs/index.tsx +5 -2
  18. package/src/Form/Inputs/models.ts +18 -2
  19. package/src/Form/storiesData.tsx +15 -3
  20. package/src/Form/translatedLabels.ts +1 -0
  21. package/src/Graph/BarChart/BarChart.tsx +4 -1
  22. package/src/Graph/BarChart/ResponsiveBarChart.tsx +3 -2
  23. package/src/Graph/Chart/Chart.tsx +9 -2
  24. package/src/Graph/Chart/InteractiveComponents/AnchorPoint/useTickGraph.ts +2 -2
  25. package/src/Graph/Chart/InteractiveComponents/index.tsx +10 -2
  26. package/src/Graph/Chart/helpers/index.ts +5 -5
  27. package/src/Graph/Chart/index.tsx +7 -0
  28. package/src/Graph/Chart/models.ts +1 -0
  29. package/src/Graph/common/timeSeries/index.ts +15 -8
  30. package/src/InputField/Text/index.tsx +1 -1
  31. package/src/Listing/index.tsx +39 -27
  32. package/src/Listing/models.ts +8 -0
  33. package/src/MultiSelectEntries/index.tsx +0 -2
  34. package/src/PopoverMenu/index.tsx +9 -2
  35. package/src/SortableItems/index.tsx +1 -0
  36. package/src/ThemeProvider/index.tsx +1 -1
  37. package/src/ThemeProvider/palettes.ts +4 -4
  38. package/src/api/customFetch.ts +4 -1
  39. package/src/components/CrudPage/Actions/Actions.styles.ts +16 -0
  40. package/src/components/CrudPage/Actions/Actions.tsx +24 -0
  41. package/src/components/CrudPage/Actions/AddButton.tsx +23 -0
  42. package/src/components/CrudPage/Actions/Filters.tsx +25 -0
  43. package/src/components/CrudPage/Actions/Search.tsx +31 -0
  44. package/src/components/CrudPage/Actions/useSearch.tsx +24 -0
  45. package/src/components/CrudPage/Columns/Actions.tsx +88 -0
  46. package/src/components/CrudPage/CrudPage.cypress.spec.tsx +559 -0
  47. package/src/components/CrudPage/CrudPage.stories.tsx +278 -0
  48. package/src/components/CrudPage/CrudPageRoot.tsx +142 -0
  49. package/src/components/CrudPage/DeleteModal.tsx +77 -0
  50. package/src/components/CrudPage/Form/AddModal.tsx +35 -0
  51. package/src/components/CrudPage/Form/Buttons.tsx +98 -0
  52. package/src/components/CrudPage/Form/UpdateModal.tsx +60 -0
  53. package/src/components/CrudPage/Listing.tsx +63 -0
  54. package/src/components/CrudPage/atoms.ts +30 -0
  55. package/src/components/CrudPage/hooks/useDeleteItem.ts +53 -0
  56. package/src/components/CrudPage/hooks/useGetItem.ts +36 -0
  57. package/src/components/CrudPage/hooks/useGetItems.ts +67 -0
  58. package/src/components/CrudPage/hooks/useListingQueryKey.ts +31 -0
  59. package/src/components/CrudPage/index.tsx +7 -0
  60. package/src/components/CrudPage/models.ts +118 -0
  61. package/src/components/CrudPage/utils.ts +4 -0
  62. package/src/components/DataTable/DataTable.cypress.spec.tsx +2 -1
  63. package/src/components/DataTable/DataTable.stories.tsx +17 -0
  64. package/src/components/DataTable/DataTable.styles.ts +1 -1
  65. package/src/components/DataTable/EmptyState/DataTableEmptyState.styles.ts +3 -1
  66. package/src/components/DataTable/EmptyState/DataTableEmptyState.tsx +6 -0
  67. package/src/components/DataTable/Item/DataTableItem.styles.ts +28 -2
  68. package/src/components/DataTable/Item/DataTableItem.tsx +19 -4
  69. package/src/components/Layout/AreaIndicator.tsx +1 -1
  70. package/src/components/Layout/PageLayout/PageLayout.styles.ts +7 -2
  71. package/src/components/Layout/PageLayout/PageLayoutBody.tsx +1 -0
  72. package/src/components/Modal/Modal.styles.ts +1 -1
  73. package/src/components/Zoom/Zoom.tsx +2 -2
  74. package/src/components/Zoom/ZoomContent.tsx +2 -2
  75. package/src/components/index.ts +1 -0
@@ -1,7 +1,7 @@
1
1
  import { useEffect, useRef, useState } from 'react';
2
2
 
3
3
  import { RectClipPath } from '@visx/clip-path';
4
- import { ProvidedZoom } from '@visx/zoom/lib/types';
4
+ import type { ProvidedZoom } from '@visx/zoom/lib/types';
5
5
 
6
6
  import ZoomInIcon from '@mui/icons-material/Add';
7
7
  import ZoomOutIcon from '@mui/icons-material/Remove';
@@ -12,7 +12,7 @@ import { IconButton } from '../Button';
12
12
  import Minimap from './Minimap';
13
13
  import { useZoomStyles } from './Zoom.styles';
14
14
  import { minimapScale, radius } from './constants';
15
- import { ChildrenProps, MinimapPosition, ZoomState } from './models';
15
+ import type { ChildrenProps, MinimapPosition, ZoomState } from './models';
16
16
  import { useZoom } from './useZoom';
17
17
 
18
18
  export interface Props {
@@ -12,5 +12,6 @@ export * from './Avatar';
12
12
  export * from './CollapsibleItem';
13
13
  export * from './Inputs';
14
14
  export { default as Zoom } from './Zoom/Zoom';
15
+ export type { ZoomState } from './Zoom/models';
15
16
  export * from './Tabs';
16
17
  export { default as CopyCommand } from './CopyCommand/CopyCommand';