@centreon/ui 23.10.30-MON-19324-dashboard-section-navigation.3 → 23.10.30
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 +9 -12
- package/src/@assets/icons/downtime.icon.svg +1 -0
- package/src/Dashboard/DashboardLayout.stories.tsx +5 -3
- package/src/Dashboard/Layout.tsx +4 -4
- package/src/Dashboard/utils.ts +28 -28
- package/src/Graph/BasicComponents/Axes/UnitLabel.tsx +20 -0
- package/src/Graph/BasicComponents/Axes/index.tsx +88 -0
- package/src/Graph/BasicComponents/Axes/models.ts +26 -0
- package/src/Graph/BasicComponents/Axes/useAxisY.ts +100 -0
- package/src/Graph/BasicComponents/Grids/index.tsx +20 -0
- package/src/Graph/BasicComponents/Lines/RegularLines/index.tsx +91 -0
- package/src/Graph/BasicComponents/Lines/RegularLines/useRegularLines.ts +15 -0
- package/src/Graph/BasicComponents/Lines/StackedLines/index.tsx +76 -0
- package/src/Graph/BasicComponents/Lines/StackedLines/useStackedLines.ts +39 -0
- package/src/Graph/BasicComponents/Lines/Threshold/BasicThreshold.tsx +51 -0
- package/src/Graph/BasicComponents/Lines/Threshold/Circle.tsx +43 -0
- package/src/Graph/BasicComponents/Lines/Threshold/ThresholdWithPatternLines.tsx +73 -0
- package/src/Graph/BasicComponents/Lines/Threshold/ThresholdWithVariation.tsx +59 -0
- package/src/Graph/BasicComponents/Lines/Threshold/helpers/index.ts +69 -0
- package/src/Graph/BasicComponents/Lines/Threshold/index.tsx +138 -0
- package/src/Graph/BasicComponents/Lines/Threshold/models.ts +105 -0
- package/src/Graph/BasicComponents/Lines/Threshold/useCoordinateCircle.ts +46 -0
- package/src/Graph/BasicComponents/Lines/Threshold/useScaleThreshold.ts +171 -0
- package/src/Graph/BasicComponents/Lines/index.tsx +180 -0
- package/src/Graph/BasicComponents/Lines/models.ts +42 -0
- package/src/Graph/BasicComponents/LoadingProgress.tsx +46 -0
- package/src/Graph/BasicComponents/useFilterLines.ts +60 -0
- package/src/Graph/Graph.styles.ts +45 -0
- package/src/Graph/Graph.tsx +217 -0
- package/src/Graph/Header/index.tsx +65 -0
- package/src/Graph/Icons/Downtime.tsx +9 -0
- package/src/Graph/InteractiveComponents/AnchorPoint/AnchorPoint.styles.ts +58 -0
- package/src/Graph/InteractiveComponents/AnchorPoint/GuidingLines.tsx +45 -0
- package/src/Graph/InteractiveComponents/AnchorPoint/RegularAnchorPoint.tsx +66 -0
- package/src/Graph/InteractiveComponents/AnchorPoint/StackedAnchorPoint.tsx +76 -0
- package/src/Graph/InteractiveComponents/AnchorPoint/TooltipAnchorPoint.tsx +70 -0
- package/src/Graph/InteractiveComponents/AnchorPoint/index.tsx +20 -0
- package/src/Graph/InteractiveComponents/AnchorPoint/models.ts +62 -0
- package/src/Graph/InteractiveComponents/AnchorPoint/useTickGraph.ts +94 -0
- package/src/Graph/InteractiveComponents/AnchorPoint/useTooltipAnchorPoint.ts +107 -0
- package/src/Graph/InteractiveComponents/Annotations/Annotation/Area.tsx +114 -0
- package/src/Graph/InteractiveComponents/Annotations/Annotation/Line.tsx +103 -0
- package/src/Graph/InteractiveComponents/Annotations/Annotation/index.tsx +81 -0
- package/src/Graph/InteractiveComponents/Annotations/Area/Downtime.tsx +27 -0
- package/src/Graph/InteractiveComponents/Annotations/EventAnnotations.tsx +61 -0
- package/src/Graph/InteractiveComponents/Annotations/Line/Acknowledgement.tsx +27 -0
- package/src/Graph/InteractiveComponents/Annotations/Line/Comments.tsx +25 -0
- package/src/Graph/InteractiveComponents/Annotations/annotationsAtoms.ts +183 -0
- package/src/Graph/InteractiveComponents/Annotations/index.tsx +49 -0
- package/src/Graph/InteractiveComponents/Annotations/models.ts +25 -0
- package/src/Graph/InteractiveComponents/Annotations/useAnnotation.ts +56 -0
- package/src/Graph/InteractiveComponents/Bar.tsx +21 -0
- package/src/Graph/InteractiveComponents/TimeShiftZones/TimeShiftIcon.tsx +62 -0
- package/src/Graph/InteractiveComponents/TimeShiftZones/TimeShiftZone.tsx +74 -0
- package/src/Graph/InteractiveComponents/TimeShiftZones/index.tsx +85 -0
- package/src/Graph/InteractiveComponents/TimeShiftZones/models.ts +12 -0
- package/src/Graph/InteractiveComponents/TimeShiftZones/useTimeShiftZones.ts +72 -0
- package/src/Graph/InteractiveComponents/Tooltip/index.tsx +59 -0
- package/src/Graph/InteractiveComponents/Tooltip/models.ts +9 -0
- package/src/Graph/InteractiveComponents/Tooltip/useGraphTooltip.ts +67 -0
- package/src/Graph/InteractiveComponents/ZoomPreview/index.tsx +38 -0
- package/src/Graph/InteractiveComponents/ZoomPreview/models.ts +9 -0
- package/src/Graph/InteractiveComponents/ZoomPreview/useZoomPreview.ts +107 -0
- package/src/Graph/InteractiveComponents/ZoomPreview/zoomPreviewAtoms.ts +3 -0
- package/src/Graph/InteractiveComponents/index.tsx +168 -0
- package/src/Graph/InteractiveComponents/interactionWithGraphAtoms.ts +51 -0
- package/src/Graph/Legend/InteractiveValue.tsx +22 -0
- package/src/Graph/Legend/Legend.styles.ts +71 -0
- package/src/Graph/Legend/LegendContent.tsx +27 -0
- package/src/Graph/Legend/LegendHeader.tsx +45 -0
- package/src/Graph/Legend/Marker.tsx +43 -0
- package/src/Graph/Legend/index.tsx +166 -0
- package/src/Graph/Legend/models.ts +11 -0
- package/src/Graph/Legend/useInteractiveValues.ts +86 -0
- package/src/Graph/Legend/useLegend.ts +114 -0
- package/src/Graph/LoadingSkeleton.tsx +44 -0
- package/src/Graph/common/index.ts +35 -0
- package/src/Graph/graphAtoms.ts +6 -0
- package/src/Graph/helpers/doc.ts +560 -0
- package/src/Graph/helpers/index.ts +58 -0
- package/src/Graph/index.stories.tsx +372 -0
- package/src/Graph/index.tsx +90 -0
- package/src/Graph/mockedData/annotationData.json +326 -0
- package/src/Graph/mockedData/exclusionPeriodFirstPeriod.json +588 -0
- package/src/Graph/mockedData/exclusionPeriodSecondPeriod.json +588 -0
- package/src/Graph/mockedData/exclusionPeriodThirdPeriod.json +581 -0
- package/src/Graph/mockedData/lastDay.json +1326 -0
- package/src/Graph/mockedData/lastDayAreaStack.json +3106 -0
- package/src/Graph/mockedData/lastDayForward.json +1338 -0
- package/src/Graph/mockedData/lastDayThreshold.json +2352 -0
- package/src/Graph/mockedData/lastMonth.json +1674 -0
- package/src/Graph/mockedData/lastWeek.json +2202 -0
- package/src/Graph/mockedData/zoomPreview.json +742 -0
- package/src/Graph/models.ts +150 -0
- package/src/Graph/timeSeries/index.test.ts +506 -0
- package/src/Graph/timeSeries/index.ts +512 -0
- package/src/Graph/timeSeries/models.ts +120 -0
- package/src/Graph/translatedLabels.ts +9 -0
- package/src/Graph/useGraphData.ts +47 -0
- package/src/Graph/useGraphIntersection.ts +36 -0
- package/src/ThemeProvider/index.tsx +5 -6
- package/src/ThemeProvider/palettes.ts +215 -385
- package/src/TimePeriods/CustomTimePeriod/CompactCustomTimePeriod.styles.ts +51 -0
- package/src/TimePeriods/CustomTimePeriod/CompactCustomTimePeriod.tsx +95 -0
- package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/ErrorText.tsx +14 -0
- package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/PickersStartEndDate.tsx +163 -0
- package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/index.tsx +76 -0
- package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/models.ts +61 -0
- package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/usePickersStartEndDate.ts +82 -0
- package/src/TimePeriods/CustomTimePeriod/index.tsx +66 -0
- package/src/TimePeriods/DateTimePickerInput.tsx +49 -0
- package/src/TimePeriods/ResolutionTimePeriod.cypress.spec.tsx +65 -0
- package/src/TimePeriods/SelectedTimePeriod.tsx +102 -0
- package/src/TimePeriods/TimePeriods.cypress.spec.tsx +510 -0
- package/src/TimePeriods/TimePeriods.styles.ts +22 -0
- package/src/TimePeriods/helpers/index.ts +26 -0
- package/src/TimePeriods/index.stories.tsx +98 -0
- package/src/TimePeriods/index.tsx +78 -0
- package/src/TimePeriods/mockedData.ts +12 -0
- package/src/TimePeriods/models.ts +97 -0
- package/src/TimePeriods/timePeriodsAtoms.ts +102 -0
- package/src/TimePeriods/translatedLabels.ts +9 -0
- package/src/TimePeriods/useSortTimePeriods.ts +31 -0
- package/src/TimePeriods/useTimePeriod.ts +49 -0
- package/src/api/TestQueryProvider.tsx +1 -2
- package/src/api/useFetchQuery/index.ts +7 -8
- package/src/api/useMutationQuery/index.ts +10 -11
- package/src/components/Button/Button.styles.ts +3 -17
- package/src/components/Button/Button.tsx +3 -6
- package/src/components/Button/Icon/IconButton.styles.ts +2 -9
- package/src/components/DataTable/DataTable.stories.tsx +0 -9
- package/src/components/DataTable/DataTable.styles.ts +0 -5
- package/src/components/DataTable/DataTable.tsx +6 -8
- package/src/components/DataTable/EmptyState/DataTableEmptyState.tsx +1 -4
- package/src/components/DataTable/Item/DataTableItem.styles.ts +2 -5
- package/src/components/DataTable/Item/DataTableItem.tsx +18 -36
- package/src/components/Header/Header.stories.tsx +27 -0
- package/src/components/Header/Header.styles.ts +27 -0
- package/src/components/Header/Header.tsx +23 -0
- package/src/components/Header/index.ts +1 -1
- package/src/components/Modal/index.ts +0 -2
- package/src/components/index.ts +0 -3
- package/src/index.ts +2 -0
- package/src/layout/TiledListingPage/TiledListingActions.tsx +15 -0
- package/src/layout/TiledListingPage/TiledListingContent.tsx +21 -0
- package/src/layout/TiledListingPage/TiledListingList.tsx +11 -0
- package/src/layout/TiledListingPage/TiledListingPage.styles.ts +16 -0
- package/src/layout/TiledListingPage/TiledListingPage.tsx +15 -0
- package/src/layout/TiledListingPage/index.ts +4 -0
- package/src/screens/dashboard/DashboardsOverview.stories.tsx +102 -110
- package/src/utils/index.ts +1 -1
- package/src/utils/sanitizedHTML.ts +1 -1
- package/test/setupTests.js +0 -3
- package/src/base/tokens/README.md +0 -3
- package/src/base/tokens/source/$metadata.json +0 -5
- package/src/base/tokens/source/base.json +0 -142
- package/src/base/tokens/themes/base.tokens.d.ts +0 -38
- package/src/base/tokens/themes/base.tokens.json +0 -695
- package/src/base/tokens/themes/base.tokens.ts +0 -38
- package/src/base/tokens/themes/ui-dark.tokens.d.ts +0 -38
- package/src/base/tokens/themes/ui-dark.tokens.json +0 -695
- package/src/base/tokens/themes/ui-dark.tokens.ts +0 -38
- package/src/base/tokens/themes/ui-light.tokens.d.ts +0 -38
- package/src/base/tokens/themes/ui-light.tokens.json +0 -695
- package/src/base/tokens/themes/ui-light.tokens.ts +0 -38
- package/src/components/Header/PageHeader/PageHeader.stories.tsx +0 -88
- package/src/components/Header/PageHeader/PageHeader.styles.ts +0 -99
- package/src/components/Header/PageHeader/PageHeader.tsx +0 -15
- package/src/components/Header/PageHeader/PageHeaderActions.tsx +0 -17
- package/src/components/Header/PageHeader/PageHeaderMain.tsx +0 -15
- package/src/components/Header/PageHeader/PageHeaderMenu.tsx +0 -15
- package/src/components/Header/PageHeader/PageHeaderTitle.tsx +0 -47
- package/src/components/Header/PageHeader/index.ts +0 -12
- package/src/components/Layout/AreaIndicator.styles.ts +0 -33
- package/src/components/Layout/AreaIndicator.tsx +0 -35
- package/src/components/Layout/PageLayout/PageLayout.stories.tsx +0 -81
- package/src/components/Layout/PageLayout/PageLayout.styles.ts +0 -40
- package/src/components/Layout/PageLayout/PageLayout.tsx +0 -21
- package/src/components/Layout/PageLayout/PageLayoutActions.tsx +0 -15
- package/src/components/Layout/PageLayout/PageLayoutBody.tsx +0 -24
- package/src/components/Layout/PageLayout/PageLayoutHeader.tsx +0 -15
- package/src/components/Layout/PageLayout/index.ts +0 -10
- package/src/components/Layout/index.ts +0 -1
- package/src/components/Menu/Button/MenuButton.stories.tsx +0 -16
- package/src/components/Menu/Button/MenuButton.styles.ts +0 -27
- package/src/components/Menu/Button/MenuButton.tsx +0 -59
- package/src/components/Menu/Button/index.ts +0 -1
- package/src/components/Menu/Menu.stories.tsx +0 -71
- package/src/components/Menu/Menu.styles.ts +0 -70
- package/src/components/Menu/Menu.tsx +0 -25
- package/src/components/Menu/MenuDivider.tsx +0 -13
- package/src/components/Menu/MenuItem.tsx +0 -36
- package/src/components/Menu/MenuItems.tsx +0 -35
- package/src/components/Menu/index.ts +0 -12
- package/src/components/Menu/useMenu.tsx +0 -79
- package/src/components/Tooltip/TextOverflowTooltip/TextOverflowTooltip.stories.tsx +0 -71
- package/src/components/Tooltip/TextOverflowTooltip/TextOverflowTooltip.styles.ts +0 -5
- package/src/components/Tooltip/TextOverflowTooltip/TextOverflowTooltip.tsx +0 -115
- package/src/components/Tooltip/TextOverflowTooltip/index.tsx +0 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +0 -41
- package/src/components/Tooltip/Tooltip.styles.ts +0 -5
- package/src/components/Tooltip/Tooltip.tsx +0 -46
- package/src/components/Tooltip/index.ts +0 -1
- package/src/screens/dashboard/DashboardsDetail.stories.tsx +0 -108
- package/src/utils/useResizeObserver.ts +0 -6
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"color": {
|
|
3
|
-
"blue": {
|
|
4
|
-
"50": {
|
|
5
|
-
"value": "#ECF4FD",
|
|
6
|
-
"type": "color"
|
|
7
|
-
},
|
|
8
|
-
"100": {
|
|
9
|
-
"value": "#D2E4F9",
|
|
10
|
-
"type": "color"
|
|
11
|
-
},
|
|
12
|
-
"200": {
|
|
13
|
-
"value": "#9EC4F0",
|
|
14
|
-
"type": "color"
|
|
15
|
-
},
|
|
16
|
-
"300": {
|
|
17
|
-
"value": "#6DA4E4",
|
|
18
|
-
"type": "color"
|
|
19
|
-
},
|
|
20
|
-
"400": {
|
|
21
|
-
"value": "#3e85d5",
|
|
22
|
-
"type": "color"
|
|
23
|
-
},
|
|
24
|
-
"500": {
|
|
25
|
-
"value": "#2e68aa",
|
|
26
|
-
"type": "color"
|
|
27
|
-
},
|
|
28
|
-
"600": {
|
|
29
|
-
"value": "#205593",
|
|
30
|
-
"type": "color"
|
|
31
|
-
},
|
|
32
|
-
"700": {
|
|
33
|
-
"value": "#164274",
|
|
34
|
-
"type": "color"
|
|
35
|
-
},
|
|
36
|
-
"800": {
|
|
37
|
-
"value": "#0d2e54",
|
|
38
|
-
"type": "color"
|
|
39
|
-
},
|
|
40
|
-
"900": {
|
|
41
|
-
"value": "#071d37",
|
|
42
|
-
"type": "color"
|
|
43
|
-
},
|
|
44
|
-
"950": {
|
|
45
|
-
"value": "#031326",
|
|
46
|
-
"type": "color"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"purple": {
|
|
50
|
-
"50": {
|
|
51
|
-
"value": "#F8F1F9",
|
|
52
|
-
"type": "color"
|
|
53
|
-
},
|
|
54
|
-
"100": {
|
|
55
|
-
"value": "#F0DEF2",
|
|
56
|
-
"type": "color"
|
|
57
|
-
},
|
|
58
|
-
"200": {
|
|
59
|
-
"value": "#DDAFE4",
|
|
60
|
-
"type": "color"
|
|
61
|
-
},
|
|
62
|
-
"300": {
|
|
63
|
-
"value": "#CE81DA",
|
|
64
|
-
"type": "color"
|
|
65
|
-
},
|
|
66
|
-
"400": {
|
|
67
|
-
"value": "#c151d2",
|
|
68
|
-
"type": "color"
|
|
69
|
-
},
|
|
70
|
-
"500": {
|
|
71
|
-
"value": "#ac28c1",
|
|
72
|
-
"type": "color"
|
|
73
|
-
},
|
|
74
|
-
"600": {
|
|
75
|
-
"value": "#872796",
|
|
76
|
-
"type": "color"
|
|
77
|
-
},
|
|
78
|
-
"700": {
|
|
79
|
-
"value": "#682172",
|
|
80
|
-
"type": "color"
|
|
81
|
-
},
|
|
82
|
-
"800": {
|
|
83
|
-
"value": "#491b50",
|
|
84
|
-
"type": "color"
|
|
85
|
-
},
|
|
86
|
-
"900": {
|
|
87
|
-
"value": "#29112c",
|
|
88
|
-
"type": "color"
|
|
89
|
-
},
|
|
90
|
-
"950": {
|
|
91
|
-
"value": "#1a0d1c",
|
|
92
|
-
"type": "color"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"grey": {
|
|
96
|
-
"50": {
|
|
97
|
-
"value": "#f9fafb",
|
|
98
|
-
"type": "color"
|
|
99
|
-
},
|
|
100
|
-
"100": {
|
|
101
|
-
"value": "#eaedf0",
|
|
102
|
-
"type": "color"
|
|
103
|
-
},
|
|
104
|
-
"200": {
|
|
105
|
-
"value": "#cad0d8",
|
|
106
|
-
"type": "color"
|
|
107
|
-
},
|
|
108
|
-
"300": {
|
|
109
|
-
"value": "#aab4c0",
|
|
110
|
-
"type": "color"
|
|
111
|
-
},
|
|
112
|
-
"400": {
|
|
113
|
-
"value": "#8c98a6",
|
|
114
|
-
"type": "color"
|
|
115
|
-
},
|
|
116
|
-
"500": {
|
|
117
|
-
"value": "#6f7b8a",
|
|
118
|
-
"type": "color"
|
|
119
|
-
},
|
|
120
|
-
"600": {
|
|
121
|
-
"value": "#596573",
|
|
122
|
-
"type": "color"
|
|
123
|
-
},
|
|
124
|
-
"700": {
|
|
125
|
-
"value": "#434e5b",
|
|
126
|
-
"type": "color"
|
|
127
|
-
},
|
|
128
|
-
"800": {
|
|
129
|
-
"value": "#2f3741",
|
|
130
|
-
"type": "color"
|
|
131
|
-
},
|
|
132
|
-
"900": {
|
|
133
|
-
"value": "#1b2127",
|
|
134
|
-
"type": "color"
|
|
135
|
-
},
|
|
136
|
-
"950": {
|
|
137
|
-
"value": "#101418",
|
|
138
|
-
"type": "color"
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Do not edit directly
|
|
3
|
-
* Generated on Sun, 04 Jun 2023 10:14:22 GMT
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export const colorBlue50: string;
|
|
7
|
-
export const colorBlue100: string;
|
|
8
|
-
export const colorBlue200: string;
|
|
9
|
-
export const colorBlue300: string;
|
|
10
|
-
export const colorBlue400: string;
|
|
11
|
-
export const colorBlue500: string;
|
|
12
|
-
export const colorBlue600: string;
|
|
13
|
-
export const colorBlue700: string;
|
|
14
|
-
export const colorBlue800: string;
|
|
15
|
-
export const colorBlue900: string;
|
|
16
|
-
export const colorBlue950: string;
|
|
17
|
-
export const colorPurple50: string;
|
|
18
|
-
export const colorPurple100: string;
|
|
19
|
-
export const colorPurple200: string;
|
|
20
|
-
export const colorPurple300: string;
|
|
21
|
-
export const colorPurple400: string;
|
|
22
|
-
export const colorPurple500: string;
|
|
23
|
-
export const colorPurple600: string;
|
|
24
|
-
export const colorPurple700: string;
|
|
25
|
-
export const colorPurple800: string;
|
|
26
|
-
export const colorPurple900: string;
|
|
27
|
-
export const colorPurple950: string;
|
|
28
|
-
export const colorGrey50: string;
|
|
29
|
-
export const colorGrey100: string;
|
|
30
|
-
export const colorGrey200: string;
|
|
31
|
-
export const colorGrey300: string;
|
|
32
|
-
export const colorGrey400: string;
|
|
33
|
-
export const colorGrey500: string;
|
|
34
|
-
export const colorGrey600: string;
|
|
35
|
-
export const colorGrey700: string;
|
|
36
|
-
export const colorGrey800: string;
|
|
37
|
-
export const colorGrey900: string;
|
|
38
|
-
export const colorGrey950: string;
|