@centreon/ui 24.5.11 → 24.5.12

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 (630) hide show
  1. package/.storybook/main.js +82 -0
  2. package/.storybook/preview.tsx +21 -0
  3. package/README.md +14 -44
  4. package/jest.config.js +20 -0
  5. package/package.json +37 -124
  6. package/{test/setupTests.js → setupTests.js} +1 -1
  7. package/src/ActionsList/index.stories.tsx +0 -80
  8. package/src/ActionsList/index.tsx +21 -58
  9. package/src/Button/Icon/index.stories.tsx +1 -1
  10. package/src/Button/Icon/index.tsx +4 -13
  11. package/src/Button/Save/StartIcon.tsx +3 -3
  12. package/src/Button/Save/index.stories.tsx +5 -10
  13. package/src/Button/Save/index.tsx +6 -10
  14. package/src/Dialog/Confirm/index.tsx +5 -26
  15. package/src/Dialog/Duplicate/index.test.tsx +1 -1
  16. package/src/Dialog/UnsavedChanges/index.tsx +20 -21
  17. package/src/Dialog/UnsavedChanges/translatedLabels.ts +6 -4
  18. package/src/Dialog/index.tsx +4 -23
  19. package/src/FallbackPage/FallbackPage.tsx +5 -5
  20. package/src/FileDropZone/index.tsx +2 -4
  21. package/src/Form/CollapsibleGroup.tsx +5 -15
  22. package/src/Form/FormButtons.tsx +4 -2
  23. package/src/Form/Inputs/Autocomplete.tsx +1 -1
  24. package/src/Form/Inputs/ConnectedAutocomplete.tsx +1 -3
  25. package/src/Form/Inputs/Grid.tsx +2 -4
  26. package/src/Form/Inputs/Radio.tsx +5 -16
  27. package/src/Form/Inputs/Switch.tsx +1 -1
  28. package/src/Form/Inputs/Text.tsx +8 -21
  29. package/src/Form/Inputs/index.tsx +16 -34
  30. package/src/Form/Inputs/models.ts +4 -29
  31. package/src/Form/{Form.stories.tsx → index.stories.tsx} +3 -2
  32. package/src/Form/{Form.tsx → index.tsx} +16 -38
  33. package/src/Form/storiesData.tsx +3 -50
  34. package/src/Home.stories.mdx +84 -1
  35. package/src/Image/Image.tsx +1 -11
  36. package/src/Image/index.stories.tsx +2 -2
  37. package/src/Image/index.test.tsx +3 -3
  38. package/src/InputField/Search/PersistentTooltip.tsx +6 -10
  39. package/src/InputField/Search/index.tsx +2 -2
  40. package/src/InputField/Select/Autocomplete/Connected/Multi/index.test.tsx +22 -4
  41. package/src/InputField/Select/Autocomplete/Connected/index.stories.tsx +3 -0
  42. package/src/InputField/Select/Autocomplete/Connected/index.test.tsx +7 -4
  43. package/src/InputField/Select/Autocomplete/Connected/index.tsx +15 -56
  44. package/src/InputField/Select/Autocomplete/Draggable/SortableList.tsx +1 -1
  45. package/src/InputField/Select/Autocomplete/Draggable/SortableListContent.tsx +1 -1
  46. package/src/InputField/Select/Autocomplete/Draggable/index.stories.tsx +2 -0
  47. package/src/InputField/Select/Autocomplete/Draggable/index.tsx +1 -1
  48. package/src/InputField/Select/Autocomplete/Multi/index.tsx +17 -36
  49. package/src/InputField/Select/Autocomplete/index.stories.tsx +10 -1
  50. package/src/InputField/Select/Autocomplete/index.tsx +115 -131
  51. package/src/InputField/Select/IconPopover/index.tsx +3 -3
  52. package/src/InputField/Select/index.tsx +3 -17
  53. package/src/InputField/Text/index.tsx +46 -56
  54. package/src/Listing/ActionBar/index.tsx +18 -26
  55. package/src/Listing/Cell/DataCell.tsx +72 -65
  56. package/src/Listing/Cell/index.tsx +8 -82
  57. package/src/Listing/Header/{_internals/PredefinedSelectionList.tsx → PredefinedSelectionList.tsx} +1 -1
  58. package/src/Listing/Header/{Cell/ListingHeaderCell.tsx → SortableCell/Content.tsx} +83 -18
  59. package/src/Listing/Header/SortableCell/DraggableIcon.tsx +41 -0
  60. package/src/Listing/Header/{ListingHeader.tsx → index.tsx} +106 -29
  61. package/src/Listing/{Row/Row.tsx → Row.tsx} +14 -19
  62. package/src/Listing/Skeleton.tsx +11 -0
  63. package/src/Listing/index.stories.tsx +42 -180
  64. package/src/Listing/index.test.tsx +2 -2
  65. package/src/Listing/index.tsx +273 -286
  66. package/src/Listing/models.ts +0 -2
  67. package/src/Listing/tableAtoms.ts +10 -15
  68. package/src/Listing/useStyleTable.ts +9 -10
  69. package/src/ListingPage/index.stories.tsx +8 -21
  70. package/src/ListingPage/index.tsx +38 -20
  71. package/src/Logo/CentreonLogo.tsx +2 -2
  72. package/src/Module/LicensedModule/LicenseCheck/index.stories.tsx +2 -0
  73. package/src/Module/LicensedModule/LicenseCheck/index.tsx +9 -24
  74. package/src/Module/LicensedModule/index.tsx +1 -7
  75. package/src/Module/index.tsx +6 -7
  76. package/src/Panel/Memoized.tsx +1 -1
  77. package/src/Panel/Section/index.test.tsx +1 -1
  78. package/src/Panel/Section/index.tsx +1 -1
  79. package/src/Panel/index.tsx +7 -11
  80. package/src/PopoverMenu/index.tsx +9 -24
  81. package/src/RichTextEditor/ContentEditable.tsx +24 -70
  82. package/src/RichTextEditor/RichTextEditor.tsx +47 -172
  83. package/src/RichTextEditor/index.stories.tsx +0 -14
  84. package/src/RichTextEditor/plugins/AutoLinkPlugin/index.tsx +5 -53
  85. package/src/RichTextEditor/plugins/FloatingLinkEditorPlugin.tsx +16 -54
  86. package/src/RichTextEditor/plugins/ToolbarPlugin/FormatButtons.tsx +92 -31
  87. package/src/RichTextEditor/plugins/ToolbarPlugin/UndoRedoButtons.tsx +3 -13
  88. package/src/RichTextEditor/plugins/ToolbarPlugin/index.tsx +10 -35
  89. package/src/RichTextEditor/translatedLabels.ts +0 -3
  90. package/src/Snackbar/index.tsx +4 -14
  91. package/src/Snackbar/useSnackbar.tsx +1 -5
  92. package/src/SortableItems/SortableItem.tsx +2 -3
  93. package/src/SortableItems/index.tsx +7 -2
  94. package/src/ThemeProvider/index.tsx +10 -45
  95. package/src/ThemeProvider/palettes.ts +201 -422
  96. package/src/TopCounterElements/TopCounterLayout.tsx +4 -3
  97. package/src/TopCounterElements/{useCloseOnLegacyPage.tsx → useCloseOnLegacyPage.ts} +2 -5
  98. package/src/Typography/{Typography.stories.tsx → index.stories.tsx} +5 -5
  99. package/src/WallpaperPage/index.stories.tsx +1 -1
  100. package/src/Wizard/ActionsBar.test.tsx +1 -1
  101. package/src/Wizard/WizardContent.tsx +3 -2
  102. package/src/Wizard/index.stories.tsx +18 -5
  103. package/src/Wizard/index.test.tsx +1 -1
  104. package/src/Wizard/index.tsx +5 -20
  105. package/src/Wizard/models.ts +0 -7
  106. package/src/__image_snapshots__/storyshots-test-js-image-story-shots-listing-loading-with-no-data-1-snap.png +0 -0
  107. package/src/api/QueryProvider.tsx +4 -7
  108. package/src/api/TestQueryProvider.tsx +1 -2
  109. package/src/api/buildListingEndpoint/getSearchQueryParameterValue.ts +26 -35
  110. package/src/api/buildListingEndpoint/index.test.ts +2 -2
  111. package/src/api/buildListingEndpoint/index.ts +1 -1
  112. package/src/api/buildListingEndpoint/models.ts +2 -2
  113. package/src/api/customFetch.ts +3 -22
  114. package/src/api/useFetchQuery/index.test.ts +5 -0
  115. package/src/api/useFetchQuery/index.ts +42 -72
  116. package/src/api/useMutationQuery/index.test.ts +4 -4
  117. package/src/api/useMutationQuery/index.ts +27 -90
  118. package/src/api/useRequest/index.test.ts +3 -0
  119. package/src/api/useRequest/index.ts +12 -12
  120. package/src/index.ts +22 -33
  121. package/src/queryParameters/url/index.ts +1 -5
  122. package/src/storyshots.test.js +52 -0
  123. package/{test → src}/testRenderer.tsx +1 -1
  124. package/src/utils/getNormalizedId.ts +3 -1
  125. package/src/utils/useCopyToClipboard.ts +3 -2
  126. package/src/utils/useDebounce.ts +5 -8
  127. package/src/utils/useDeepCallback.ts +3 -1
  128. package/src/utils/useDeepMemo.ts +3 -1
  129. package/src/utils/useIntersectionObserver.ts +5 -5
  130. package/src/utils/useKeyObserver.tsx +3 -1
  131. package/src/utils/useLocaleDateTimeFormat/index.test.tsx +1 -1
  132. package/src/utils/useLocaleDateTimeFormat/index.ts +2 -4
  133. package/src/utils/useLocaleDateTimeFormat/localeFallback.test.tsx +1 -1
  134. package/src/utils/useMemoComponent.ts +1 -1
  135. package/testRunner.js +36 -0
  136. package/tsconfig.json +29 -0
  137. package/types/declarations.d.ts +9 -0
  138. package/public/README.md +0 -39
  139. package/public/mockServiceWorker.js +0 -284
  140. package/src/@assets/README.md +0 -5
  141. package/src/@assets/brand/centreon-logo-one-line-dark.svg +0 -1
  142. package/src/@assets/brand/centreon-logo-one-line-light.svg +0 -1
  143. package/src/@assets/icons/downtime.icon.svg +0 -1
  144. package/src/@types/aria-attributes.d.ts +0 -10
  145. package/src/@types/data-attributes.d.ts +0 -3
  146. package/src/@types/globals.d.ts +0 -9
  147. package/src/@types/vite-env.d.ts +0 -2
  148. package/src/ActionsList/ActionsList.styles.ts +0 -85
  149. package/src/ActionsList/models.ts +0 -8
  150. package/src/Checkbox/Checkbox.tsx +0 -109
  151. package/src/Checkbox/CheckboxGroup/index.stories.tsx +0 -41
  152. package/src/Checkbox/CheckboxGroup/index.tsx +0 -75
  153. package/src/Checkbox/index.stories.tsx +0 -39
  154. package/src/Checkbox/index.tsx +0 -2
  155. package/src/Dashboard/Dashboard.cypress.spec.tsx +0 -68
  156. package/src/Dashboard/Dashboard.styles.ts +0 -110
  157. package/src/Dashboard/DashboardLayout.stories.tsx +0 -104
  158. package/src/Dashboard/Grid.tsx +0 -70
  159. package/src/Dashboard/Item.tsx +0 -134
  160. package/src/Dashboard/Layout.tsx +0 -81
  161. package/src/Dashboard/index.tsx +0 -9
  162. package/src/Dashboard/utils.ts +0 -28
  163. package/src/Form/Form.cypress.spec.tsx +0 -133
  164. package/src/Form/Form.styles.ts +0 -11
  165. package/src/Form/Inputs/Checkbox.tsx +0 -57
  166. package/src/Form/Inputs/CheckboxGroup.tsx +0 -76
  167. package/src/Form/Inputs/List/Content.tsx +0 -62
  168. package/src/Form/Inputs/List/List.styles.ts +0 -29
  169. package/src/Form/Inputs/List/List.tsx +0 -58
  170. package/src/Form/Inputs/List/useList.ts +0 -81
  171. package/src/Form/index.ts +0 -1
  172. package/src/Graph/BarStack/BarStack.cypress.spec.tsx +0 -139
  173. package/src/Graph/BarStack/BarStack.stories.tsx +0 -125
  174. package/src/Graph/BarStack/BarStack.styles.ts +0 -37
  175. package/src/Graph/BarStack/BarStack.tsx +0 -14
  176. package/src/Graph/BarStack/ResponsiveBarStack.tsx +0 -209
  177. package/src/Graph/BarStack/index.ts +0 -1
  178. package/src/Graph/BarStack/models.ts +0 -19
  179. package/src/Graph/BarStack/useResponsiveBarStack.ts +0 -131
  180. package/src/Graph/Gauge/AnimatedPie.tsx +0 -102
  181. package/src/Graph/Gauge/Gauge.cypress.spec.tsx +0 -102
  182. package/src/Graph/Gauge/Gauge.stories.tsx +0 -159
  183. package/src/Graph/Gauge/Gauge.tsx +0 -41
  184. package/src/Graph/Gauge/PieData.tsx +0 -63
  185. package/src/Graph/Gauge/ResponsiveGauge.tsx +0 -148
  186. package/src/Graph/Gauge/Thresholds.tsx +0 -117
  187. package/src/Graph/Gauge/index.ts +0 -1
  188. package/src/Graph/Gauge/models.ts +0 -20
  189. package/src/Graph/HeatMap/HeatMap.cypress.spec.tsx +0 -145
  190. package/src/Graph/HeatMap/HeatMap.stories.tsx +0 -100
  191. package/src/Graph/HeatMap/HeatMap.styles.tsx +0 -29
  192. package/src/Graph/HeatMap/HeatMap.tsx +0 -12
  193. package/src/Graph/HeatMap/HeatMapData.json +0 -137
  194. package/src/Graph/HeatMap/ResponsiveHeatMap.tsx +0 -104
  195. package/src/Graph/HeatMap/index.ts +0 -1
  196. package/src/Graph/HeatMap/model.ts +0 -33
  197. package/src/Graph/Legend/Legend.tsx +0 -21
  198. package/src/Graph/Legend/index.ts +0 -1
  199. package/src/Graph/Legend/models.ts +0 -11
  200. package/src/Graph/LineChart/BasicComponents/Axes/UnitLabel.tsx +0 -20
  201. package/src/Graph/LineChart/BasicComponents/Axes/index.tsx +0 -88
  202. package/src/Graph/LineChart/BasicComponents/Axes/models.ts +0 -26
  203. package/src/Graph/LineChart/BasicComponents/Axes/useAxisY.ts +0 -100
  204. package/src/Graph/LineChart/BasicComponents/Grids/index.tsx +0 -20
  205. package/src/Graph/LineChart/BasicComponents/Lines/RegularLines/index.tsx +0 -103
  206. package/src/Graph/LineChart/BasicComponents/Lines/RegularLines/useRegularLines.ts +0 -15
  207. package/src/Graph/LineChart/BasicComponents/Lines/StackedLines/index.tsx +0 -81
  208. package/src/Graph/LineChart/BasicComponents/Lines/StackedLines/useStackedLines.ts +0 -39
  209. package/src/Graph/LineChart/BasicComponents/Lines/Threshold/BasicThreshold.tsx +0 -52
  210. package/src/Graph/LineChart/BasicComponents/Lines/Threshold/Circle.tsx +0 -43
  211. package/src/Graph/LineChart/BasicComponents/Lines/Threshold/ThresholdWithPatternLines.tsx +0 -77
  212. package/src/Graph/LineChart/BasicComponents/Lines/Threshold/ThresholdWithVariation.tsx +0 -62
  213. package/src/Graph/LineChart/BasicComponents/Lines/Threshold/helpers/index.ts +0 -69
  214. package/src/Graph/LineChart/BasicComponents/Lines/Threshold/index.tsx +0 -141
  215. package/src/Graph/LineChart/BasicComponents/Lines/Threshold/models.ts +0 -105
  216. package/src/Graph/LineChart/BasicComponents/Lines/Threshold/useCoordinateCircle.ts +0 -46
  217. package/src/Graph/LineChart/BasicComponents/Lines/Threshold/useScaleThreshold.ts +0 -171
  218. package/src/Graph/LineChart/BasicComponents/Lines/index.tsx +0 -188
  219. package/src/Graph/LineChart/BasicComponents/Lines/models.ts +0 -42
  220. package/src/Graph/LineChart/BasicComponents/ThresholdLine.tsx +0 -66
  221. package/src/Graph/LineChart/BasicComponents/Thresholds.tsx +0 -77
  222. package/src/Graph/LineChart/BasicComponents/useFilterLines.ts +0 -60
  223. package/src/Graph/LineChart/Header/index.tsx +0 -37
  224. package/src/Graph/LineChart/Icons/Downtime.tsx +0 -9
  225. package/src/Graph/LineChart/InteractiveComponents/AnchorPoint/GuidingLines.tsx +0 -45
  226. package/src/Graph/LineChart/InteractiveComponents/AnchorPoint/RegularAnchorPoint.tsx +0 -66
  227. package/src/Graph/LineChart/InteractiveComponents/AnchorPoint/StackedAnchorPoint.tsx +0 -76
  228. package/src/Graph/LineChart/InteractiveComponents/AnchorPoint/index.tsx +0 -20
  229. package/src/Graph/LineChart/InteractiveComponents/AnchorPoint/models.ts +0 -62
  230. package/src/Graph/LineChart/InteractiveComponents/AnchorPoint/useTickGraph.ts +0 -92
  231. package/src/Graph/LineChart/InteractiveComponents/Annotations/Annotation/Area.tsx +0 -114
  232. package/src/Graph/LineChart/InteractiveComponents/Annotations/Annotation/Line.tsx +0 -103
  233. package/src/Graph/LineChart/InteractiveComponents/Annotations/Annotation/index.tsx +0 -81
  234. package/src/Graph/LineChart/InteractiveComponents/Annotations/Area/Downtime.tsx +0 -27
  235. package/src/Graph/LineChart/InteractiveComponents/Annotations/EventAnnotations.tsx +0 -61
  236. package/src/Graph/LineChart/InteractiveComponents/Annotations/Line/Acknowledgement.tsx +0 -27
  237. package/src/Graph/LineChart/InteractiveComponents/Annotations/Line/Comments.tsx +0 -25
  238. package/src/Graph/LineChart/InteractiveComponents/Annotations/annotationsAtoms.ts +0 -183
  239. package/src/Graph/LineChart/InteractiveComponents/Annotations/index.tsx +0 -49
  240. package/src/Graph/LineChart/InteractiveComponents/Annotations/models.ts +0 -25
  241. package/src/Graph/LineChart/InteractiveComponents/Annotations/useAnnotation.ts +0 -56
  242. package/src/Graph/LineChart/InteractiveComponents/Bar.tsx +0 -21
  243. package/src/Graph/LineChart/InteractiveComponents/GraphValueTooltip/GraphValueTooltip.tsx +0 -68
  244. package/src/Graph/LineChart/InteractiveComponents/GraphValueTooltip/useGraphValueTooltip.ts +0 -27
  245. package/src/Graph/LineChart/InteractiveComponents/GraphValueTooltip/useGraphValueTooltipStyles.ts +0 -31
  246. package/src/Graph/LineChart/InteractiveComponents/TimeShiftZones/TimeShiftIcon.tsx +0 -62
  247. package/src/Graph/LineChart/InteractiveComponents/TimeShiftZones/TimeShiftZone.tsx +0 -74
  248. package/src/Graph/LineChart/InteractiveComponents/TimeShiftZones/index.tsx +0 -85
  249. package/src/Graph/LineChart/InteractiveComponents/TimeShiftZones/models.ts +0 -12
  250. package/src/Graph/LineChart/InteractiveComponents/TimeShiftZones/useTimeShiftZones.ts +0 -72
  251. package/src/Graph/LineChart/InteractiveComponents/Tooltip/index.tsx +0 -59
  252. package/src/Graph/LineChart/InteractiveComponents/Tooltip/models.ts +0 -9
  253. package/src/Graph/LineChart/InteractiveComponents/Tooltip/useGraphTooltip.ts +0 -67
  254. package/src/Graph/LineChart/InteractiveComponents/ZoomPreview/index.tsx +0 -38
  255. package/src/Graph/LineChart/InteractiveComponents/ZoomPreview/models.ts +0 -9
  256. package/src/Graph/LineChart/InteractiveComponents/ZoomPreview/useZoomPreview.ts +0 -107
  257. package/src/Graph/LineChart/InteractiveComponents/ZoomPreview/zoomPreviewAtoms.ts +0 -3
  258. package/src/Graph/LineChart/InteractiveComponents/index.tsx +0 -283
  259. package/src/Graph/LineChart/InteractiveComponents/interactionWithGraphAtoms.ts +0 -32
  260. package/src/Graph/LineChart/Legend/Legend.styles.ts +0 -113
  261. package/src/Graph/LineChart/Legend/LegendContent.tsx +0 -33
  262. package/src/Graph/LineChart/Legend/LegendHeader.tsx +0 -84
  263. package/src/Graph/LineChart/Legend/index.tsx +0 -163
  264. package/src/Graph/LineChart/Legend/models.ts +0 -16
  265. package/src/Graph/LineChart/Legend/useLegend.ts +0 -104
  266. package/src/Graph/LineChart/LineChart.cypress.spec.tsx +0 -144
  267. package/src/Graph/LineChart/LineChart.styles.ts +0 -53
  268. package/src/Graph/LineChart/LineChart.tsx +0 -306
  269. package/src/Graph/LineChart/LoadingSkeleton.tsx +0 -44
  270. package/src/Graph/LineChart/common/index.ts +0 -49
  271. package/src/Graph/LineChart/graphAtoms.ts +0 -3
  272. package/src/Graph/LineChart/helpers/doc.ts +0 -563
  273. package/src/Graph/LineChart/helpers/index.ts +0 -63
  274. package/src/Graph/LineChart/index.stories.tsx +0 -492
  275. package/src/Graph/LineChart/index.tsx +0 -112
  276. package/src/Graph/LineChart/mockedData/annotationData.json +0 -326
  277. package/src/Graph/LineChart/mockedData/curvesWithSameColor.json +0 -252
  278. package/src/Graph/LineChart/mockedData/exclusionPeriodFirstPeriod.json +0 -588
  279. package/src/Graph/LineChart/mockedData/exclusionPeriodSecondPeriod.json +0 -588
  280. package/src/Graph/LineChart/mockedData/exclusionPeriodThirdPeriod.json +0 -581
  281. package/src/Graph/LineChart/mockedData/lastDay.json +0 -1326
  282. package/src/Graph/LineChart/mockedData/lastDayAreaStack.json +0 -3106
  283. package/src/Graph/LineChart/mockedData/lastDayForward.json +0 -1338
  284. package/src/Graph/LineChart/mockedData/lastDayThreshold.json +0 -2352
  285. package/src/Graph/LineChart/mockedData/lastDayWithIncompleteValues.json +0 -1320
  286. package/src/Graph/LineChart/mockedData/lastDayWithNullValues.json +0 -1314
  287. package/src/Graph/LineChart/mockedData/lastMonth.json +0 -1674
  288. package/src/Graph/LineChart/mockedData/lastWeek.json +0 -2202
  289. package/src/Graph/LineChart/mockedData/zoomPreview.json +0 -742
  290. package/src/Graph/LineChart/models.ts +0 -157
  291. package/src/Graph/LineChart/translatedLabels.ts +0 -9
  292. package/src/Graph/LineChart/useLineChartData.ts +0 -88
  293. package/src/Graph/LineChart/useLineChartIntersection.ts +0 -36
  294. package/src/Graph/PieChart/PieChart.cypress.spec.tsx +0 -154
  295. package/src/Graph/PieChart/PieChart.stories.tsx +0 -190
  296. package/src/Graph/PieChart/PieChart.styles.ts +0 -39
  297. package/src/Graph/PieChart/PieChart.tsx +0 -14
  298. package/src/Graph/PieChart/ResponsivePie.tsx +0 -243
  299. package/src/Graph/PieChart/index.ts +0 -1
  300. package/src/Graph/PieChart/models.ts +0 -19
  301. package/src/Graph/PieChart/useResponsivePie.ts +0 -81
  302. package/src/Graph/SingleBar/ResponsiveSingleBar.tsx +0 -197
  303. package/src/Graph/SingleBar/SingleBar.cypress.spec.tsx +0 -121
  304. package/src/Graph/SingleBar/SingleBar.stories.tsx +0 -204
  305. package/src/Graph/SingleBar/SingleBar.tsx +0 -25
  306. package/src/Graph/SingleBar/ThresholdLine.tsx +0 -103
  307. package/src/Graph/SingleBar/Thresholds.tsx +0 -50
  308. package/src/Graph/SingleBar/index.ts +0 -1
  309. package/src/Graph/SingleBar/models.ts +0 -10
  310. package/src/Graph/Text/Text.cypress.spec.tsx +0 -101
  311. package/src/Graph/Text/Text.stories.tsx +0 -123
  312. package/src/Graph/Text/Text.styles.ts +0 -28
  313. package/src/Graph/Text/Text.tsx +0 -96
  314. package/src/Graph/Text/index.ts +0 -1
  315. package/src/Graph/Tree/DescendantNodes.tsx +0 -89
  316. package/src/Graph/Tree/Links.tsx +0 -77
  317. package/src/Graph/Tree/StandaloneTree.tsx +0 -32
  318. package/src/Graph/Tree/Tree.cypress.spec.tsx +0 -195
  319. package/src/Graph/Tree/Tree.stories.tsx +0 -160
  320. package/src/Graph/Tree/Tree.tsx +0 -116
  321. package/src/Graph/Tree/constants.ts +0 -2
  322. package/src/Graph/Tree/index.ts +0 -4
  323. package/src/Graph/Tree/models.ts +0 -55
  324. package/src/Graph/Tree/stories/contents.tsx +0 -164
  325. package/src/Graph/Tree/stories/datas.ts +0 -305
  326. package/src/Graph/Tree/utils.ts +0 -49
  327. package/src/Graph/common/margins.ts +0 -1
  328. package/src/Graph/common/models.ts +0 -19
  329. package/src/Graph/common/testUtils.ts +0 -71
  330. package/src/Graph/common/timeSeries/index.test.ts +0 -624
  331. package/src/Graph/common/timeSeries/index.ts +0 -664
  332. package/src/Graph/common/timeSeries/models.ts +0 -129
  333. package/src/Graph/common/utils.ts +0 -142
  334. package/src/Graph/index.ts +0 -9
  335. package/src/InputField/Number/Number.cypress.spec.tsx +0 -85
  336. package/src/InputField/Number/Number.stories.tsx +0 -66
  337. package/src/InputField/Number/Number.tsx +0 -74
  338. package/src/InputField/Select/Autocomplete/Connected/Multi/MultiConnectedAutocompleteField.cypress.spec.tsx +0 -127
  339. package/src/InputField/Select/Autocomplete/Connected/Multi/utils/index.ts +0 -22
  340. package/src/Listing/Cell/DataCell.styles.ts +0 -27
  341. package/src/Listing/EmptyResult/EmptyResult.tsx +0 -13
  342. package/src/Listing/Header/Cell/ListingHeaderCell.styles.ts +0 -71
  343. package/src/Listing/Header/Cell/SelectActionListingHeaderCell.styles.ts +0 -26
  344. package/src/Listing/Header/Cell/SelectActionListingHeaderCell.tsx +0 -70
  345. package/src/Listing/Header/ListingHeader.styles.ts +0 -16
  346. package/src/Listing/Header/_internals/DraggableIconButton.tsx +0 -35
  347. package/src/Listing/Header/index.ts +0 -1
  348. package/src/Listing/Listing.cypress.spec.tsx +0 -307
  349. package/src/Listing/Listing.styles.ts +0 -78
  350. package/src/Listing/ListingDocs.mdx +0 -61
  351. package/src/Listing/Row/EmptyRow.styles.ts +0 -14
  352. package/src/Listing/Row/EmptyRow.tsx +0 -30
  353. package/src/Listing/Row/SkeletonLoaderRows.tsx +0 -23
  354. package/src/Module/Module.cypress.spec.tsx +0 -129
  355. package/src/ParentSize/ParentSize.tsx +0 -24
  356. package/src/ParentSize/index.ts +0 -1
  357. package/src/RichTextEditor/RichTextEditor.cypress.spec.tsx +0 -408
  358. package/src/RichTextEditor/plugins/ToolbarPlugin/AlignPicker.tsx +0 -116
  359. package/src/RichTextEditor/plugins/ToolbarPlugin/BlockButtons.tsx +0 -155
  360. package/src/RichTextEditor/plugins/ToolbarPlugin/LinkButton.tsx +0 -106
  361. package/src/RichTextEditor/plugins/ToolbarPlugin/ListButton.tsx +0 -155
  362. package/src/RichTextEditor/plugins/ToolbarPlugin/MacrosButton.tsx +0 -75
  363. package/src/RichTextEditor/plugins/ToolbarPlugin/ToolbarPlugin.styles.ts +0 -32
  364. package/src/TimePeriods/CustomTimePeriod/CompactCustomTimePeriod.styles.ts +0 -50
  365. package/src/TimePeriods/CustomTimePeriod/CompactCustomTimePeriod.tsx +0 -95
  366. package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/ErrorText.tsx +0 -14
  367. package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/PickersStartEndDate.tsx +0 -171
  368. package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/index.tsx +0 -76
  369. package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/models.ts +0 -59
  370. package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/usePickersStartEndDate.ts +0 -82
  371. package/src/TimePeriods/CustomTimePeriod/SimpleCustomTimePeriod.tsx +0 -28
  372. package/src/TimePeriods/CustomTimePeriod/index.tsx +0 -66
  373. package/src/TimePeriods/DateTimePickerInput.tsx +0 -86
  374. package/src/TimePeriods/ResolutionTimePeriod.cypress.spec.tsx +0 -68
  375. package/src/TimePeriods/SelectedTimePeriod.tsx +0 -102
  376. package/src/TimePeriods/TimePeriods.cypress.spec.tsx +0 -486
  377. package/src/TimePeriods/TimePeriods.styles.ts +0 -22
  378. package/src/TimePeriods/helpers/index.ts +0 -26
  379. package/src/TimePeriods/index.stories.tsx +0 -116
  380. package/src/TimePeriods/index.tsx +0 -79
  381. package/src/TimePeriods/mockedData.ts +0 -12
  382. package/src/TimePeriods/models.ts +0 -97
  383. package/src/TimePeriods/timePeriodsAtoms.ts +0 -102
  384. package/src/TimePeriods/translatedLabels.ts +0 -9
  385. package/src/TimePeriods/useSortTimePeriods.ts +0 -31
  386. package/src/TimePeriods/useTimePeriod.ts +0 -49
  387. package/src/Typography/EllipsisTypography.tsx +0 -18
  388. package/src/Typography/FluidTypography/FluidTypography.cypress.spec.tsx +0 -27
  389. package/src/Typography/FluidTypography/index.stories.tsx +0 -63
  390. package/src/Typography/FluidTypography/index.tsx +0 -44
  391. package/src/Typography/Subtitle.tsx +0 -55
  392. package/src/__image_snapshots__/storyshots-test-js-image-story-shots-dashboard-normal-1-snap.png +0 -0
  393. package/src/__image_snapshots__/storyshots-test-js-image-story-shots-dashboard-with-item-header-1-snap.png +0 -0
  394. package/src/__image_snapshots__/storyshots-test-js-image-story-shots-dashboard-with-many-panels-1-snap.png +0 -0
  395. package/src/__image_snapshots__/storyshots-test-js-image-story-shots-fluid-typography-basic-1-snap.png +0 -0
  396. package/src/__image_snapshots__/storyshots-test-js-image-story-shots-fluid-typography-with-20-px-height-1-snap.png +0 -0
  397. package/src/__image_snapshots__/storyshots-test-js-image-story-shots-fluid-typography-with-200-px-width-1-snap.png +0 -0
  398. package/src/__image_snapshots__/storyshots-test-js-image-story-shots-fluid-typography-with-heading-5-variant-1-snap.png +0 -0
  399. package/src/__image_snapshots__/storyshots-test-js-image-story-shots-fluid-typography-with-long-text-1-snap.png +0 -0
  400. package/src/__image_snapshots__/storyshots-test-js-image-story-shots-listing-as-empty-state-1-snap.png +0 -0
  401. package/src/__image_snapshots__/storyshots-test-js-image-story-shots-listing-with-editable-and-sortable-columns-1-snap.png +0 -0
  402. package/src/api/logger.ts +0 -11
  403. package/src/api/useGraphQuery/index.ts +0 -199
  404. package/src/api/useGraphQuery/models.ts +0 -20
  405. package/src/base/tokens/README.md +0 -3
  406. package/src/base/tokens/source/$metadata.json +0 -5
  407. package/src/base/tokens/source/base.json +0 -142
  408. package/src/base/tokens/themes/base.tokens.d.ts +0 -38
  409. package/src/base/tokens/themes/base.tokens.json +0 -695
  410. package/src/base/tokens/themes/base.tokens.ts +0 -38
  411. package/src/base/tokens/themes/ui-dark.tokens.d.ts +0 -38
  412. package/src/base/tokens/themes/ui-dark.tokens.json +0 -695
  413. package/src/base/tokens/themes/ui-dark.tokens.ts +0 -38
  414. package/src/base/tokens/themes/ui-light.tokens.d.ts +0 -38
  415. package/src/base/tokens/themes/ui-light.tokens.json +0 -695
  416. package/src/base/tokens/themes/ui-light.tokens.ts +0 -38
  417. package/src/components/Avatar/Avatar.stories.tsx +0 -23
  418. package/src/components/Avatar/Avatar.styles.ts +0 -11
  419. package/src/components/Avatar/Avatar.tsx +0 -32
  420. package/src/components/Avatar/index.ts +0 -1
  421. package/src/components/Button/Button.stories.tsx +0 -34
  422. package/src/components/Button/Button.styles.ts +0 -44
  423. package/src/components/Button/Button.tsx +0 -78
  424. package/src/components/Button/Icon/IconButton.stories.tsx +0 -18
  425. package/src/components/Button/Icon/IconButton.styles.ts +0 -14
  426. package/src/components/Button/Icon/IconButton.tsx +0 -62
  427. package/src/components/Button/Icon/index.tsx +0 -1
  428. package/src/components/Button/index.ts +0 -2
  429. package/src/components/CollapsibleItem/CollapsibleItem.cypress.spec.tsx +0 -76
  430. package/src/components/CollapsibleItem/CollapsibleItem.stories.tsx +0 -51
  431. package/src/components/CollapsibleItem/CollapsibleItem.tsx +0 -76
  432. package/src/components/CollapsibleItem/index.ts +0 -1
  433. package/src/components/CollapsibleItem/useCollapsibleItemStyles.ts +0 -38
  434. package/src/components/DataTable/DataListing.tsx +0 -6
  435. package/src/components/DataTable/DataTable.cypress.spec.tsx +0 -174
  436. package/src/components/DataTable/DataTable.stories.tsx +0 -91
  437. package/src/components/DataTable/DataTable.styles.ts +0 -30
  438. package/src/components/DataTable/DataTable.tsx +0 -35
  439. package/src/components/DataTable/EmptyState/DataTableEmptyState.stories.tsx +0 -21
  440. package/src/components/DataTable/EmptyState/DataTableEmptyState.styles.ts +0 -26
  441. package/src/components/DataTable/EmptyState/DataTableEmptyState.tsx +0 -53
  442. package/src/components/DataTable/Item/DataTableItem.stories.tsx +0 -25
  443. package/src/components/DataTable/Item/DataTableItem.styles.ts +0 -38
  444. package/src/components/DataTable/Item/DataTableItem.tsx +0 -67
  445. package/src/components/DataTable/Item/DataTableItemSkeleton.tsx +0 -13
  446. package/src/components/DataTable/index.ts +0 -12
  447. package/src/components/Form/AccessRights/AccessRights.cypress.spec.tsx +0 -387
  448. package/src/components/Form/AccessRights/AccessRights.stories.tsx +0 -100
  449. package/src/components/Form/AccessRights/AccessRights.styles.ts +0 -10
  450. package/src/components/Form/AccessRights/AccessRights.tsx +0 -61
  451. package/src/components/Form/AccessRights/Actions/Actions.styles.ts +0 -10
  452. package/src/components/Form/AccessRights/Actions/Actions.tsx +0 -64
  453. package/src/components/Form/AccessRights/Actions/useActions.ts +0 -46
  454. package/src/components/Form/AccessRights/List/Item.tsx +0 -90
  455. package/src/components/Form/AccessRights/List/List.styles.tsx +0 -45
  456. package/src/components/Form/AccessRights/List/List.tsx +0 -52
  457. package/src/components/Form/AccessRights/List/ListItemSkeleton.tsx +0 -18
  458. package/src/components/Form/AccessRights/List/ListSkeleton.tsx +0 -22
  459. package/src/components/Form/AccessRights/List/RemoveAccessRight.tsx +0 -38
  460. package/src/components/Form/AccessRights/List/StateChip.tsx +0 -28
  461. package/src/components/Form/AccessRights/List/useItem.ts +0 -64
  462. package/src/components/Form/AccessRights/Provider.tsx +0 -15
  463. package/src/components/Form/AccessRights/ShareInput/ContactSwitch.tsx +0 -50
  464. package/src/components/Form/AccessRights/ShareInput/ShareInput.styles.ts +0 -17
  465. package/src/components/Form/AccessRights/ShareInput/ShareInput.tsx +0 -79
  466. package/src/components/Form/AccessRights/ShareInput/useShareInput.tsx +0 -113
  467. package/src/components/Form/AccessRights/Stats/Stats.tsx +0 -36
  468. package/src/components/Form/AccessRights/atoms.ts +0 -97
  469. package/src/components/Form/AccessRights/common/RoleSelectField.styles.tsx +0 -7
  470. package/src/components/Form/AccessRights/common/RoleSelectField.tsx +0 -45
  471. package/src/components/Form/AccessRights/models.ts +0 -52
  472. package/src/components/Form/AccessRights/storiesData.ts +0 -219
  473. package/src/components/Form/AccessRights/useAccessRightsChange.ts +0 -30
  474. package/src/components/Form/AccessRights/useAccessRightsInitValues.ts +0 -51
  475. package/src/components/Form/AccessRights/utils.ts +0 -18
  476. package/src/components/Form/Dashboard/Dashboard.resource.ts +0 -9
  477. package/src/components/Form/Dashboard/DashboardDuplicationForm.tsx +0 -85
  478. package/src/components/Form/Dashboard/DashboardForm.styles.ts +0 -21
  479. package/src/components/Form/Dashboard/DashboardForm.tsx +0 -137
  480. package/src/components/Form/Dashboard/GlobalRefreshFieldOption.tsx +0 -59
  481. package/src/components/Form/Dashboard/index.ts +0 -3
  482. package/src/components/Form/Dashboard/translatedLabels.ts +0 -8
  483. package/src/components/Form/Form.models.ts +0 -1
  484. package/src/components/Form/Form.resource.ts +0 -1
  485. package/src/components/Form/Form.styles.ts +0 -17
  486. package/src/components/Form/FormActions.tsx +0 -62
  487. package/src/components/Form/index.ts +0 -4
  488. package/src/components/Header/PageHeader/PageHeader.stories.tsx +0 -97
  489. package/src/components/Header/PageHeader/PageHeader.styles.ts +0 -126
  490. package/src/components/Header/PageHeader/PageHeader.tsx +0 -15
  491. package/src/components/Header/PageHeader/PageHeaderActions.tsx +0 -17
  492. package/src/components/Header/PageHeader/PageHeaderMain.tsx +0 -15
  493. package/src/components/Header/PageHeader/PageHeaderMenu.tsx +0 -15
  494. package/src/components/Header/PageHeader/PageHeaderMessage.tsx +0 -32
  495. package/src/components/Header/PageHeader/PageHeaderTitle.tsx +0 -47
  496. package/src/components/Header/PageHeader/index.ts +0 -14
  497. package/src/components/Header/index.ts +0 -1
  498. package/src/components/Icon/Icon.styles.ts +0 -0
  499. package/src/components/Icon/Icon.tsx +0 -2
  500. package/src/components/Icon/index.ts +0 -0
  501. package/src/components/Inputs/Switch/Switch.stories.tsx +0 -22
  502. package/src/components/Inputs/Switch/Switch.styles.ts +0 -13
  503. package/src/components/Inputs/Switch/Switch.tsx +0 -18
  504. package/src/components/Inputs/index.ts +0 -1
  505. package/src/components/ItemComposition/Item.tsx +0 -41
  506. package/src/components/ItemComposition/ItemComposition.cypress.spec.tsx +0 -113
  507. package/src/components/ItemComposition/ItemComposition.stories.tsx +0 -92
  508. package/src/components/ItemComposition/ItemComposition.styles.ts +0 -62
  509. package/src/components/ItemComposition/ItemComposition.tsx +0 -71
  510. package/src/components/ItemComposition/index.ts +0 -6
  511. package/src/components/Layout/AreaIndicator.styles.ts +0 -33
  512. package/src/components/Layout/AreaIndicator.tsx +0 -35
  513. package/src/components/Layout/PageLayout/PageLayout.stories.tsx +0 -81
  514. package/src/components/Layout/PageLayout/PageLayout.styles.ts +0 -41
  515. package/src/components/Layout/PageLayout/PageLayout.tsx +0 -21
  516. package/src/components/Layout/PageLayout/PageLayoutActions.tsx +0 -25
  517. package/src/components/Layout/PageLayout/PageLayoutBody.tsx +0 -25
  518. package/src/components/Layout/PageLayout/PageLayoutHeader.tsx +0 -19
  519. package/src/components/Layout/PageLayout/PageQuickAccess.tsx +0 -76
  520. package/src/components/Layout/PageLayout/index.ts +0 -12
  521. package/src/components/Layout/PageLayout.cypress.spec.tsx +0 -66
  522. package/src/components/Layout/index.ts +0 -1
  523. package/src/components/List/Item/Avatar.tsx +0 -21
  524. package/src/components/List/Item/AvatarSkeleton.tsx +0 -17
  525. package/src/components/List/Item/ListItem.stories.tsx +0 -41
  526. package/src/components/List/Item/ListItem.styles.ts +0 -63
  527. package/src/components/List/Item/ListItem.tsx +0 -34
  528. package/src/components/List/Item/Text.tsx +0 -27
  529. package/src/components/List/Item/TextSkeleton.tsx +0 -22
  530. package/src/components/List/Item/index.ts +0 -14
  531. package/src/components/List/List.stories.tsx +0 -70
  532. package/src/components/List/List.styles.ts +0 -8
  533. package/src/components/List/List.tsx +0 -19
  534. package/src/components/List/index.ts +0 -6
  535. package/src/components/Menu/Button/MenuButton.stories.tsx +0 -16
  536. package/src/components/Menu/Button/MenuButton.styles.ts +0 -27
  537. package/src/components/Menu/Button/MenuButton.tsx +0 -67
  538. package/src/components/Menu/Button/index.ts +0 -1
  539. package/src/components/Menu/Menu.stories.tsx +0 -71
  540. package/src/components/Menu/Menu.styles.ts +0 -68
  541. package/src/components/Menu/Menu.tsx +0 -25
  542. package/src/components/Menu/MenuDivider.tsx +0 -13
  543. package/src/components/Menu/MenuItem.tsx +0 -38
  544. package/src/components/Menu/MenuItems.tsx +0 -36
  545. package/src/components/Menu/index.ts +0 -12
  546. package/src/components/Menu/useMenu.tsx +0 -79
  547. package/src/components/Modal/ConfirmationModal/ConfirmationModal.cypress.spec.tsx +0 -168
  548. package/src/components/Modal/ConfirmationModal/ConfirmationModal.stories.tsx +0 -62
  549. package/src/components/Modal/ConfirmationModal/ConfirmationModal.tsx +0 -87
  550. package/src/components/Modal/Modal.stories.tsx +0 -142
  551. package/src/components/Modal/Modal.styles.ts +0 -96
  552. package/src/components/Modal/Modal.tsx +0 -79
  553. package/src/components/Modal/ModalActions.tsx +0 -64
  554. package/src/components/Modal/ModalBody.tsx +0 -15
  555. package/src/components/Modal/ModalHeader.tsx +0 -21
  556. package/src/components/Modal/index.ts +0 -14
  557. package/src/components/README.md +0 -3
  558. package/src/components/Tabs/Tab.styles.ts +0 -25
  559. package/src/components/Tabs/TabPanel.tsx +0 -22
  560. package/src/components/Tabs/Tabs.cypress.spec.tsx +0 -70
  561. package/src/components/Tabs/Tabs.stories.tsx +0 -55
  562. package/src/components/Tabs/Tabs.tsx +0 -55
  563. package/src/components/Tabs/index.ts +0 -6
  564. package/src/components/Tooltip/ConfirmationTooltip/ConfirmationTooltip.stories.tsx +0 -62
  565. package/src/components/Tooltip/ConfirmationTooltip/ConfirmationTooltip.styles.tsx +0 -22
  566. package/src/components/Tooltip/ConfirmationTooltip/ConfirmationTooltip.tsx +0 -68
  567. package/src/components/Tooltip/ConfirmationTooltip/TooltipContent.tsx +0 -31
  568. package/src/components/Tooltip/ConfirmationTooltip/index.ts +0 -1
  569. package/src/components/Tooltip/ConfirmationTooltip/models.ts +0 -18
  570. package/src/components/Tooltip/TextOverflowTooltip/TextOverflowTooltip.stories.tsx +0 -70
  571. package/src/components/Tooltip/TextOverflowTooltip/TextOverflowTooltip.styles.ts +0 -5
  572. package/src/components/Tooltip/TextOverflowTooltip/TextOverflowTooltip.tsx +0 -115
  573. package/src/components/Tooltip/TextOverflowTooltip/index.tsx +0 -1
  574. package/src/components/Tooltip/Tooltip.stories.tsx +0 -41
  575. package/src/components/Tooltip/Tooltip.tsx +0 -57
  576. package/src/components/Tooltip/index.ts +0 -2
  577. package/src/components/Zoom/Minimap.tsx +0 -129
  578. package/src/components/Zoom/Zoom.cypress.spec.tsx +0 -246
  579. package/src/components/Zoom/Zoom.stories.tsx +0 -115
  580. package/src/components/Zoom/Zoom.styles.tsx +0 -68
  581. package/src/components/Zoom/Zoom.tsx +0 -64
  582. package/src/components/Zoom/ZoomContent.tsx +0 -170
  583. package/src/components/Zoom/constants.ts +0 -2
  584. package/src/components/Zoom/localPoint.ts +0 -51
  585. package/src/components/Zoom/models.ts +0 -25
  586. package/src/components/Zoom/useMinimap.ts +0 -156
  587. package/src/components/Zoom/useZoom.ts +0 -70
  588. package/src/components/Zoom/utils.ts +0 -55
  589. package/src/components/index.ts +0 -15
  590. package/src/styles/tokens/themes/_ui-dark.tokens.json +0 -695
  591. package/src/styles/tokens/themes/_ui-light.tokens.json +0 -695
  592. package/src/utils/centreonBaseURL.ts +0 -4
  593. package/src/utils/docsURL.ts +0 -31
  594. package/src/utils/index.ts +0 -25
  595. package/src/utils/panelSize.ts +0 -15
  596. package/src/utils/resourcesStatusURL.ts +0 -166
  597. package/src/utils/sanitizedHTML.ts +0 -18
  598. package/src/utils/translatedLabel.ts +0 -2
  599. package/src/utils/useFullscreen/Fullscreen.cypress.spec.tsx +0 -130
  600. package/src/utils/useFullscreen/atoms.ts +0 -3
  601. package/src/utils/useFullscreen/index.ts +0 -2
  602. package/src/utils/useFullscreen/translatedLabels.ts +0 -1
  603. package/src/utils/useFullscreen/useFullscreen.ts +0 -73
  604. package/src/utils/useFullscreen/useFullscreenListener.ts +0 -62
  605. package/src/utils/useInfiniteScrollListing.ts +0 -124
  606. package/src/utils/useLicenseExpirationWarning.test.tsx +0 -148
  607. package/src/utils/useLicenseExpirationWarning.ts +0 -52
  608. package/src/utils/usePluralizedTranslation.test.ts +0 -159
  609. package/src/utils/usePluralizedTranslation.ts +0 -38
  610. package/src/utils/useRefreshInterval.ts +0 -39
  611. package/src/utils/useResizeObserver.ts +0 -6
  612. package/src/utils/useThresholds.ts +0 -0
  613. /package/{public/brand → assets}/centreon-logo-one-line-dark.svg +0 -0
  614. /package/{public/brand → assets}/centreon-logo-one-line-light.svg +0 -0
  615. /package/{src/@assets/images → assets}/not-authorized-template-background-dark.svg +0 -0
  616. /package/{src/@assets/images → assets}/not-authorized-template-background-light.svg +0 -0
  617. /package/{public/fonts → fonts/fonts-generated}/roboto-bold-webfont.ttf +0 -0
  618. /package/{public/fonts → fonts/fonts-generated}/roboto-bold-webfont.woff +0 -0
  619. /package/{public/fonts → fonts/fonts-generated}/roboto-bold-webfont.woff2 +0 -0
  620. /package/{public/fonts → fonts/fonts-generated}/roboto-light-webfont.ttf +0 -0
  621. /package/{public/fonts → fonts/fonts-generated}/roboto-light-webfont.woff +0 -0
  622. /package/{public/fonts → fonts/fonts-generated}/roboto-light-webfont.woff2 +0 -0
  623. /package/{public/fonts → fonts/fonts-generated}/roboto-medium-webfont.ttf +0 -0
  624. /package/{public/fonts → fonts/fonts-generated}/roboto-medium-webfont.woff +0 -0
  625. /package/{public/fonts → fonts/fonts-generated}/roboto-medium-webfont.woff2 +0 -0
  626. /package/{public/fonts → fonts/fonts-generated}/roboto-regular-webfont.ttf +0 -0
  627. /package/{public/fonts → fonts/fonts-generated}/roboto-regular-webfont.woff +0 -0
  628. /package/{public/fonts → fonts/fonts-generated}/roboto-regular-webfont.woff2 +0 -0
  629. /package/src/Listing/Header/{_internals/Label.tsx → Label.tsx} +0 -0
  630. /package/src/Typography/{story.utils.tsx → index.tsx} +0 -0
@@ -1,46 +0,0 @@
1
- import { useEffect } from 'react';
2
-
3
- import { isNil } from 'ramda';
4
-
5
- import { checkArePointsOnline } from './helpers';
6
- import { Circle, Point } from './models';
7
-
8
- const useCoordinateCircle = ({
9
- timeSeries,
10
- getX,
11
- getY0Variation,
12
- getY1Variation,
13
- getYOrigin,
14
- getCountDisplayedCircles
15
- }: Circle): Array<Point> => {
16
- const getCoordinate = (): Array<Point | null> => {
17
- return timeSeries.map((timeValue) => {
18
- const x = getX(timeValue);
19
- const y = getYOrigin(timeValue);
20
-
21
- const y0 = getY0Variation(timeValue);
22
- const y1 = getY1Variation(timeValue);
23
-
24
- return checkArePointsOnline({
25
- pointLower: { x, y: y0 },
26
- pointOrigin: { x, y },
27
- pointUpper: { x, y: y1 }
28
- });
29
- });
30
- };
31
-
32
- const coordinates = getCoordinate()?.filter(
33
- (element) => !isNil(element)
34
- ) as Array<Point>;
35
-
36
- useEffect(() => {
37
- if (!coordinates) {
38
- return;
39
- }
40
- getCountDisplayedCircles?.(coordinates.length);
41
- }, [coordinates.length]);
42
-
43
- return coordinates;
44
- };
45
-
46
- export default useCoordinateCircle;
@@ -1,171 +0,0 @@
1
- import { equals, isNil, prop } from 'ramda';
2
-
3
- import { ThresholdType, VariationThreshold } from '../../../models';
4
- import { TimeValue } from '../../../../common/timeSeries/models';
5
- import { getTime, getUnits, getYScale } from '../../../../common/timeSeries';
6
- import { displayArea } from '../../../helpers/index';
7
-
8
- import { envelopeVariationFormula } from './helpers';
9
- import {
10
- LinesThreshold,
11
- ScaleVariationThreshold,
12
- WrapperThresholdLinesModel,
13
- findLineOfOriginMetricThreshold,
14
- lowerLineName,
15
- upperLineName
16
- } from './models';
17
-
18
- interface Result extends Partial<ScaleVariationThreshold> {
19
- getX: (timeValue: TimeValue) => number;
20
- getY0: (timeValue: TimeValue) => number;
21
- getY1: (timeValue: TimeValue) => number;
22
- lineColorY0: string;
23
- lineColorY1: string;
24
- }
25
-
26
- const useScaleThreshold = ({
27
- lines,
28
- areaThresholdLines,
29
- leftScale,
30
- rightScale,
31
- xScale
32
- }: WrapperThresholdLinesModel): Result | null => {
33
- const getLinesThreshold = (): LinesThreshold | null => {
34
- const lineUpper = lines.find((line) => equals(line.name, upperLineName));
35
-
36
- const lineLower = lines.find((line) => equals(line.name, lowerLineName));
37
-
38
- const lineOrigin = findLineOfOriginMetricThreshold(lines)[0];
39
- if (!lineLower || !lineOrigin || !lineUpper) {
40
- return null;
41
- }
42
-
43
- return { lineLower, lineOrigin, lineUpper };
44
- };
45
-
46
- const linesThreshold = getLinesThreshold();
47
- if (!linesThreshold) {
48
- return null;
49
- }
50
-
51
- const { lineUpper, lineLower, lineOrigin } = linesThreshold;
52
-
53
- const [, secondUnit, thirdUnit] = getUnits(lines);
54
-
55
- const {
56
- metric_id: metricY1,
57
- unit: unitY1,
58
- invert: invertY1,
59
- lineColor: lineColorY1
60
- } = lineUpper;
61
-
62
- const {
63
- metric_id: metricY0,
64
- unit: unitY0,
65
- invert: invertY0,
66
- lineColor: lineColorY0
67
- } = lineLower;
68
-
69
- const {
70
- metric_id: metricOrigin,
71
- unit: unitYOrigin,
72
- invert: invertYOrigin
73
- } = lineOrigin;
74
-
75
- const y1Scale = getYScale({
76
- hasMoreThanTwoUnits: !isNil(thirdUnit),
77
- invert: invertY1,
78
- leftScale,
79
- rightScale,
80
- secondUnit,
81
- unit: unitY1
82
- });
83
-
84
- const y0Scale = getYScale({
85
- hasMoreThanTwoUnits: !isNil(thirdUnit),
86
- invert: invertY0,
87
- leftScale,
88
- rightScale,
89
- secondUnit,
90
- unit: unitY0
91
- });
92
-
93
- const yScale = getYScale({
94
- hasMoreThanTwoUnits: !isNil(thirdUnit),
95
- invert: invertYOrigin,
96
- leftScale,
97
- rightScale,
98
- secondUnit,
99
- unit: unitYOrigin
100
- });
101
-
102
- const getX = (timeValue: TimeValue): number => {
103
- return xScale(getTime(timeValue)) ?? null;
104
- };
105
-
106
- const getY0 = (timeValue: TimeValue): number => {
107
- return y0Scale(prop(metricY0, timeValue)) ?? null;
108
- };
109
- const getY1 = (timeValue: TimeValue): number => {
110
- return y1Scale(prop(metricY1, timeValue)) ?? null;
111
- };
112
-
113
- const commonResult = { getX, getY0, getY1, lineColorY0, lineColorY1 };
114
-
115
- const isVariationType = !!areaThresholdLines?.find(
116
- (item) => item && equals(item.type, ThresholdType.variation)
117
- );
118
- if (isVariationType) {
119
- const data = areaThresholdLines?.find((item) =>
120
- equals(item.type, ThresholdType.variation) ? item : null
121
- ) as VariationThreshold;
122
-
123
- const variationFactorsExist =
124
- displayArea(data?.factors) &&
125
- !isNil(data?.factors?.simulatedFactorMultiplication) &&
126
- !isNil(data?.factors?.currentFactorMultiplication);
127
-
128
- if (!variationFactorsExist) {
129
- return commonResult;
130
- }
131
-
132
- const getY0Variation = (timeValue: TimeValue): number => {
133
- const upperRealValue = prop(metricY1, timeValue);
134
- const lowerRealValue = prop(metricY0, timeValue);
135
-
136
- const variation = envelopeVariationFormula({
137
- factorsData: data.factors,
138
- lowerRealValue,
139
- upperRealValue
140
- });
141
-
142
- return y0Scale(prop(metricY0, timeValue) + variation) ?? null;
143
- };
144
-
145
- const getY1Variation = (timeValue: TimeValue): number => {
146
- const upperRealValue = prop(metricY1, timeValue);
147
- const lowerRealValue = prop(metricY0, timeValue);
148
-
149
- const variation = envelopeVariationFormula({
150
- factorsData: data.factors,
151
- lowerRealValue,
152
- upperRealValue
153
- });
154
-
155
- return y1Scale(prop(metricY1, timeValue) - variation) ?? null;
156
- };
157
- const getYOrigin = (timeValue: TimeValue): number =>
158
- yScale(prop(metricOrigin, timeValue));
159
-
160
- return {
161
- getY0Variation,
162
- getY1Variation,
163
- getYOrigin,
164
- ...commonResult
165
- };
166
- }
167
-
168
- return commonResult;
169
- };
170
-
171
- export default useScaleThreshold;
@@ -1,188 +0,0 @@
1
- import { MutableRefObject } from 'react';
2
-
3
- import { ScaleLinear } from 'd3-scale';
4
- import { isNil } from 'ramda';
5
-
6
- import GuidingLines from '../../InteractiveComponents/AnchorPoint/GuidingLines';
7
- import RegularAnchorPoint from '../../InteractiveComponents/AnchorPoint/RegularAnchorPoint';
8
- import { displayArea } from '../../helpers/index';
9
- import { DisplayAnchor, GlobalAreaLines } from '../../models';
10
- import {
11
- getStackedYScale,
12
- getUnits,
13
- getYScale
14
- } from '../../../common/timeSeries';
15
- import { Line, TimeValue } from '../../../common/timeSeries/models';
16
-
17
- import RegularLine from './RegularLines';
18
- import useRegularLines from './RegularLines/useRegularLines';
19
- import StackedLines from './StackedLines';
20
- import useStackedLines from './StackedLines/useStackedLines';
21
- import WrapperThresholdLines from './Threshold';
22
- import {
23
- canDisplayThreshold,
24
- requiredNumberLinesThreshold
25
- } from './Threshold/models';
26
-
27
- interface Props extends GlobalAreaLines {
28
- curve: 'linear' | 'step' | 'natural';
29
- displayAnchor?: DisplayAnchor;
30
- displayedLines: Array<Line>;
31
- graphSvgRef: MutableRefObject<SVGSVGElement | null>;
32
- height: number;
33
- leftScale: ScaleLinear<number, number>;
34
- rightScale: ScaleLinear<number, number>;
35
- timeSeries: Array<TimeValue>;
36
- width: number;
37
- xScale: ScaleLinear<number, number>;
38
- }
39
-
40
- const Lines = ({
41
- height,
42
- graphSvgRef,
43
- width,
44
- displayAnchor,
45
- leftScale,
46
- rightScale,
47
- xScale,
48
- timeSeries,
49
- displayedLines,
50
- areaThresholdLines,
51
- areaStackedLines,
52
- areaRegularLines,
53
- curve
54
- }: Props): JSX.Element => {
55
- const { stackedLinesData, invertedStackedLinesData } = useStackedLines({
56
- lines: displayedLines,
57
- timeSeries
58
- });
59
-
60
- const { regularLines } = useRegularLines({ lines: displayedLines });
61
-
62
- const displayThresholdArea =
63
- displayedLines?.length >= requiredNumberLinesThreshold &&
64
- canDisplayThreshold(areaThresholdLines);
65
-
66
- const displayAreaRegularLines =
67
- (areaRegularLines?.display ?? true) && displayArea(regularLines);
68
-
69
- const stackedYScale = getStackedYScale({
70
- leftScale,
71
- rightScale
72
- });
73
-
74
- const displayGuidingLines = displayAnchor?.displayGuidingLines ?? true;
75
- const commonStackedLinesProps = {
76
- curve,
77
- displayAnchor: displayGuidingLines,
78
- graphHeight: height,
79
- graphSvgRef,
80
- graphWidth: width,
81
- xScale,
82
- yScale: stackedYScale
83
- };
84
-
85
- return (
86
- <g>
87
- {displayGuidingLines && (
88
- <GuidingLines
89
- graphHeight={height}
90
- graphWidth={width}
91
- timeSeries={timeSeries}
92
- xScale={xScale}
93
- />
94
- )}
95
-
96
- {(areaStackedLines?.display ?? true) && (
97
- <>
98
- {displayArea(stackedLinesData.lines) && (
99
- <StackedLines
100
- lines={stackedLinesData.lines}
101
- timeSeries={stackedLinesData.timeSeries}
102
- {...commonStackedLinesProps}
103
- />
104
- )}
105
-
106
- {displayArea(invertedStackedLinesData.lines) && (
107
- <StackedLines
108
- lines={invertedStackedLinesData.lines}
109
- timeSeries={invertedStackedLinesData.timeSeries}
110
- {...commonStackedLinesProps}
111
- />
112
- )}
113
- </>
114
- )}
115
-
116
- {displayThresholdArea && (
117
- <WrapperThresholdLines
118
- areaThresholdLines={areaThresholdLines}
119
- graphHeight={height}
120
- leftScale={leftScale}
121
- lines={displayedLines}
122
- rightScale={rightScale}
123
- timeSeries={timeSeries}
124
- xScale={xScale}
125
- />
126
- )}
127
-
128
- {displayAreaRegularLines
129
- ? regularLines.map(
130
- ({
131
- areaColor,
132
- transparency,
133
- lineColor,
134
- filled,
135
- unit,
136
- highlight,
137
- invert,
138
- metric_id
139
- }) => {
140
- const [, secondUnit, thirdUnit] = getUnits(
141
- regularLines as Array<Line>
142
- );
143
- const yScale = getYScale({
144
- hasMoreThanTwoUnits: !isNil(thirdUnit),
145
- invert,
146
- leftScale,
147
- rightScale,
148
- secondUnit,
149
- unit
150
- });
151
-
152
- return (
153
- <g key={metric_id}>
154
- {displayGuidingLines && (
155
- <RegularAnchorPoint
156
- areaColor={areaColor}
157
- lineColor={lineColor}
158
- metric_id={metric_id}
159
- timeSeries={timeSeries}
160
- transparency={transparency}
161
- xScale={xScale}
162
- yScale={yScale}
163
- />
164
- )}
165
- <RegularLine
166
- areaColor={areaColor}
167
- curve={curve}
168
- filled={filled}
169
- graphHeight={height}
170
- highlight={highlight}
171
- lineColor={lineColor}
172
- metric_id={metric_id}
173
- timeSeries={timeSeries}
174
- transparency={transparency}
175
- unit={unit}
176
- xScale={xScale}
177
- yScale={yScale}
178
- />
179
- </g>
180
- );
181
- }
182
- )
183
- : null}
184
- </g>
185
- );
186
- };
187
-
188
- export default Lines;
@@ -1,42 +0,0 @@
1
- import { ScaleLinear } from 'd3-scale';
2
-
3
- import { Line, TimeValue } from '../../../common/timeSeries/models';
4
- import { LineChartData } from '../../../common/models';
5
-
6
- import { FactorsVariation } from './Threshold/models';
7
-
8
- export interface ShapeGraphData {
9
- [x: string]: unknown;
10
- display: boolean;
11
- leftScale?: ScaleLinear<number, number>;
12
- rightScale?: ScaleLinear<number, number>;
13
- xScale?: ScaleLinear<number, number>;
14
- yScale?: ScaleLinear<number, number>;
15
- }
16
-
17
- export interface LinesData {
18
- lines: Array<Line>;
19
- timeSeries: Array<TimeValue>;
20
- }
21
-
22
- export interface AreaStackedLines extends ShapeGraphData {
23
- invertedStackedLinesData: LinesData;
24
- stackedLinesData: LinesData;
25
- }
26
-
27
- export interface AreaRegularLines extends ShapeGraphData {
28
- lines: Array<Line>;
29
- timeSeries: Array<TimeValue>;
30
- }
31
-
32
- export interface AreaThreshold extends AreaRegularLines {
33
- dataExclusionPeriods?: Array<LineChartData>;
34
- factors?: FactorsVariation;
35
- getCountDisplayedCircles?: (value: number) => void;
36
- }
37
-
38
- export interface Shape {
39
- areaRegularLines: AreaRegularLines;
40
- areaStackedLines: AreaStackedLines;
41
- areaThreshold: AreaThreshold;
42
- }
@@ -1,66 +0,0 @@
1
- import { equals } from 'ramda';
2
-
3
- import { useTheme } from '@mui/material';
4
-
5
- import { margin } from '../common';
6
-
7
- interface Props {
8
- hideTooltip: () => void;
9
- label: string;
10
- showTooltip: (args) => void;
11
- thresholdType: string;
12
- value: number;
13
- width: number;
14
- yScale: (value: number) => number;
15
- }
16
-
17
- export const ThresholdLine = ({
18
- value,
19
- label,
20
- yScale,
21
- thresholdType,
22
- showTooltip,
23
- hideTooltip,
24
- width
25
- }: Props): JSX.Element => {
26
- const theme = useTheme();
27
-
28
- const scaledValue = yScale(value);
29
-
30
- const onMouseEnter = (): void =>
31
- showTooltip({
32
- tooltipData: label,
33
- tooltipLeft: -(margin.left + margin.right),
34
- tooltipTop: scaledValue
35
- });
36
-
37
- const lineColor = equals(thresholdType, 'warning')
38
- ? theme.palette.warning.main
39
- : theme.palette.error.main;
40
-
41
- return (
42
- <>
43
- <line
44
- data-testid={`${thresholdType}-line-${value}`}
45
- stroke={lineColor}
46
- strokeDasharray="5,5"
47
- strokeWidth={2}
48
- x1={0}
49
- x2={width}
50
- y1={scaledValue}
51
- y2={scaledValue}
52
- />
53
- <line
54
- data-testid={`${thresholdType}-line-${value}-tooltip`}
55
- stroke="transparent"
56
- strokeWidth={5}
57
- x1={0}
58
- x2={width}
59
- y1={scaledValue}
60
- y2={scaledValue}
61
- onMouseEnter={onMouseEnter}
62
- onMouseLeave={hideTooltip}
63
- />
64
- </>
65
- );
66
- };
@@ -1,77 +0,0 @@
1
- import { equals, isNil } from 'ramda';
2
-
3
- import { getUnits, getYScale } from '../../common/timeSeries';
4
- import { Line } from '../../common/timeSeries/models';
5
- import { Thresholds as ThresholdsModel } from '../../common/models';
6
-
7
- import { ThresholdLine } from './ThresholdLine';
8
-
9
- interface Props {
10
- displayedLines: Array<Line>;
11
- hideTooltip: () => void;
12
- leftScale: (value: number) => number;
13
- rightScale: (value: number) => number;
14
- showTooltip: (props) => void;
15
- thresholdUnit?: string;
16
- thresholds: ThresholdsModel;
17
- width: number;
18
- }
19
-
20
- const Thresholds = ({
21
- thresholds,
22
- leftScale,
23
- rightScale,
24
- width,
25
- displayedLines,
26
- thresholdUnit,
27
- showTooltip,
28
- hideTooltip
29
- }: Props): JSX.Element => {
30
- const [firstUnit, secondUnit, thirdUnit] = getUnits(
31
- displayedLines as Array<Line>
32
- );
33
-
34
- const shouldUseRightScale = equals(thresholdUnit, secondUnit);
35
-
36
- const yScale = shouldUseRightScale
37
- ? rightScale
38
- : getYScale({
39
- hasMoreThanTwoUnits: !isNil(thirdUnit),
40
- invert: null,
41
- leftScale,
42
- rightScale,
43
- secondUnit,
44
- unit: firstUnit
45
- });
46
-
47
- return (
48
- <>
49
- {thresholds.warning.map(({ value, label }) => (
50
- <ThresholdLine
51
- hideTooltip={hideTooltip}
52
- key={`warning-${value}`}
53
- label={label}
54
- showTooltip={showTooltip}
55
- thresholdType="warning"
56
- value={value}
57
- width={width}
58
- yScale={yScale}
59
- />
60
- ))}
61
- {thresholds.critical.map(({ value, label }) => (
62
- <ThresholdLine
63
- hideTooltip={hideTooltip}
64
- key={`critical-${value}`}
65
- label={label}
66
- showTooltip={showTooltip}
67
- thresholdType="critical"
68
- value={value}
69
- width={width}
70
- yScale={yScale}
71
- />
72
- ))}
73
- </>
74
- );
75
- };
76
-
77
- export default Thresholds;
@@ -1,60 +0,0 @@
1
- import { Dispatch, SetStateAction, useEffect } from 'react';
2
-
3
- import { equals, propEq, reject } from 'ramda';
4
-
5
- import { Line } from '../../common/timeSeries/models';
6
-
7
- import {
8
- findLineOfOriginMetricThreshold,
9
- lowerLineName,
10
- upperLineName
11
- } from './Lines/Threshold/models';
12
-
13
- interface UseFilterLines {
14
- displayThreshold?: boolean;
15
- lines: Array<Line>;
16
- linesGraph: Array<Line> | null;
17
- setLinesGraph: Dispatch<SetStateAction<Array<Line> | null>>;
18
- }
19
-
20
- interface Result {
21
- displayedLines: Array<Line>;
22
- newLines: Array<Line>;
23
- }
24
-
25
- const useFilterLines = ({
26
- displayThreshold = false,
27
- lines,
28
- linesGraph,
29
- setLinesGraph
30
- }: UseFilterLines): Result => {
31
- const displayedLines = reject(propEq(false, 'display'), linesGraph ?? lines);
32
- const filterLines = (): Array<Line> => {
33
- const lineOriginMetric = findLineOfOriginMetricThreshold(lines);
34
-
35
- const findLinesUpperLower = lines.map((line) =>
36
- equals(line.name, lowerLineName) || equals(line.name, upperLineName)
37
- ? line
38
- : null
39
- );
40
-
41
- const linesUpperLower = reject((element) => !element, findLinesUpperLower);
42
-
43
- return [...lineOriginMetric, ...linesUpperLower] as Array<Line>;
44
- };
45
-
46
- useEffect(() => {
47
- const filteredLines = filterLines();
48
- if (!lines || !displayThreshold) {
49
- setLinesGraph(lines);
50
-
51
- return;
52
- }
53
-
54
- setLinesGraph(filteredLines);
55
- }, [lines, displayThreshold]);
56
-
57
- return { displayedLines, newLines: linesGraph ?? lines };
58
- };
59
-
60
- export default useFilterLines;
@@ -1,37 +0,0 @@
1
- import Typography from '@mui/material/Typography';
2
-
3
- import { useMemoComponent } from '@centreon/ui';
4
-
5
- import { useStyles } from '../LineChart.styles';
6
- import { LineChartHeader } from '../models';
7
-
8
- interface Props {
9
- header?: LineChartHeader;
10
- title: string;
11
- }
12
-
13
- const Header = ({ title, header }: Props): JSX.Element => {
14
- const { classes } = useStyles();
15
-
16
- const displayTitle = header?.displayTitle ?? true;
17
-
18
- return useMemoComponent({
19
- Component: (
20
- <div className={classes.header}>
21
- <div />
22
- <div>
23
- {displayTitle && (
24
- <Typography align="center" variant="body1">
25
- {title}
26
- </Typography>
27
- )}
28
- </div>
29
- {header?.extraComponent}
30
- </div>
31
- ),
32
-
33
- memoProps: [title, header]
34
- });
35
- };
36
-
37
- export default Header;
@@ -1,9 +0,0 @@
1
- import { SvgIcon, SvgIconProps } from '@mui/material';
2
-
3
- import { ReactComponent as IconDowntime } from '../../../@assets/icons/downtime.icon.svg';
4
-
5
- const Downtime = (props: SvgIconProps): JSX.Element => (
6
- <SvgIcon component={IconDowntime} {...props} />
7
- );
8
-
9
- export default Downtime;