@centreon/ui 25.10.28 → 25.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 +3 -3
- package/public/mockServiceWorker.js +8 -31
- package/src/Dashboard/Item.tsx +142 -149
- package/src/Form/Inputs/ConnectedAutocomplete.tsx +2 -0
- package/src/Form/Inputs/Grid.tsx +2 -3
- package/src/Form/Inputs/models.ts +2 -0
- package/src/Form/Section/navigateToSection.ts +6 -6
- package/src/Graph/BarChart/BarChart.cypress.spec.tsx +55 -102
- package/src/Graph/BarChart/BarChart.stories.tsx +1 -51
- package/src/Graph/BarChart/BarChart.tsx +1 -1
- package/src/Graph/BarChart/BarGroup.tsx +32 -22
- package/src/Graph/BarChart/BarStack.tsx +26 -15
- package/src/Graph/BarChart/MemoizedGroup.tsx +18 -14
- package/src/Graph/BarChart/ResponsiveBarChart.tsx +6 -7
- package/src/Graph/BarChart/Tooltip/BarChartTooltip.tsx +2 -2
- package/src/Graph/Chart/BasicComponents/Lines/StackedLines/index.tsx +5 -4
- package/src/Graph/Chart/BasicComponents/Lines/StackedLines/useStackedLines.ts +45 -18
- package/src/Graph/Chart/BasicComponents/Lines/index.tsx +118 -124
- package/src/Graph/Chart/Chart.cypress.spec.tsx +6 -25
- package/src/Graph/Chart/Chart.stories.tsx +1 -43
- package/src/Graph/Chart/Chart.tsx +13 -9
- package/src/Graph/Chart/InteractiveComponents/GraphValueTooltip/useGraphValueTooltip.ts +4 -2
- package/src/Graph/Chart/Legend/index.tsx +2 -26
- package/src/Graph/Chart/index.tsx +45 -31
- package/src/Graph/Chart/models.ts +1 -6
- package/src/Graph/Chart/translatedLabels.ts +1 -0
- package/src/Graph/Chart/useChartData.ts +24 -3
- package/src/Graph/common/Axes/index.tsx +1 -1
- package/src/Graph/common/BaseChart/BaseChart.tsx +1 -6
- package/src/Graph/common/BaseChart/ChartSvgWrapper.tsx +23 -16
- package/src/Graph/common/Error/NoData.tsx +18 -0
- package/src/Graph/common/Grids/index.tsx +4 -4
- package/src/Graph/common/timeSeries/index.test.ts +4 -24
- package/src/Graph/common/timeSeries/index.ts +120 -184
- package/src/Graph/common/timeSeries/models.ts +1 -1
- package/src/Graph/common/utils.ts +4 -10
- package/src/Graph/index.ts +20 -20
- package/src/InputField/Select/Autocomplete/Connected/index.tsx +9 -9
- package/src/InputField/Select/Autocomplete/Multi/Listbox.tsx +11 -3
- package/src/InputField/Select/Autocomplete/Multi/Multi.tsx +3 -2
- package/src/InputField/Select/Autocomplete/index.tsx +28 -17
- package/src/InputField/Select/Option.tsx +3 -3
- package/src/InputField/Select/index.tsx +2 -1
- package/src/Listing/ActionBar/Pagination.tsx +2 -1
- package/src/Listing/ActionBar/index.tsx +113 -8
- package/src/Listing/index.tsx +19 -2
- package/src/Listing/translatedLabels.ts +4 -0
- package/src/Module/index.tsx +2 -8
- package/src/ThemeProvider/index.tsx +21 -30
- package/src/ThemeProvider/tailwindcss.css +12 -10
- package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/PickersStartEndDate.tsx +8 -5
- package/src/TimePeriods/CustomTimePeriod/PopoverCustomTimePeriod/models.ts +0 -1
- package/src/api/useGraphQuery/index.ts +7 -4
- package/src/components/Form/AccessRights/ShareInput/ShareInput.tsx +4 -3
- package/src/components/Form/AccessRights/ShareInput/useShareInput.tsx +15 -10
- package/src/components/Layout/PageLayout/PageLayout.tsx +3 -9
- package/src/components/Layout/PageLayout/PageLayoutActions.tsx +3 -5
- package/src/components/Layout/PageLayout/PageLayoutBody.tsx +3 -5
- package/src/components/Layout/PageLayout/PageLayoutHeader.tsx +3 -5
- package/src/components/Layout/PageLayout/PageQuickAccess.tsx +44 -25
- package/src/components/Layout/PageLayout/translatedLabels.ts +1 -0
- package/src/components/Menu/Button/MenuButton.styles.ts +27 -0
- package/src/components/Menu/Button/MenuButton.tsx +5 -8
- package/src/components/Menu/Menu.styles.ts +68 -0
- package/src/components/Menu/MenuDivider.tsx +5 -1
- package/src/components/Menu/MenuItem.tsx +5 -1
- package/src/components/Menu/MenuItems.tsx +4 -5
- package/src/components/Modal/Modal.styles.ts +2 -1
- package/src/components/Modal/ModalHeader.tsx +1 -5
- package/src/utils/useInfiniteScrollListing.ts +11 -7
- package/src/utils/useViewportIntersection.ts +3 -4
- package/src/Graph/mockedData/dataWithMissingPoint.json +0 -74
- package/src/Graph/mockedData/pingServiceWithStackedKeys.json +0 -205
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"global": {},
|
|
3
|
-
"metrics": [
|
|
4
|
-
{
|
|
5
|
-
"metric": "count",
|
|
6
|
-
"metric_id": 1,
|
|
7
|
-
"legend": "count",
|
|
8
|
-
"displayAs": "bar",
|
|
9
|
-
"ds_data": {
|
|
10
|
-
"ds_stack": true,
|
|
11
|
-
"ds_transparency": 0,
|
|
12
|
-
"ds_filled": false,
|
|
13
|
-
"ds_color_area": "#4269d0",
|
|
14
|
-
"ds_color_line": "#4269d0"
|
|
15
|
-
},
|
|
16
|
-
"datasourceOptions": {
|
|
17
|
-
"field": null,
|
|
18
|
-
"group_by": null,
|
|
19
|
-
"op": "count-doc",
|
|
20
|
-
"query": "severity_text:\"Fatal\" OR severity_text:\"Error\"",
|
|
21
|
-
"period": 3600
|
|
22
|
-
},
|
|
23
|
-
"data": [
|
|
24
|
-
217, 270, 293, 300, 303, 295, 298, 283, 299, 299, 297, 285, 270, 248,
|
|
25
|
-
274, 292, 284, 47
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"metric": "count",
|
|
30
|
-
"metric_id": 2,
|
|
31
|
-
"legend": "count",
|
|
32
|
-
"displayAs": "bar",
|
|
33
|
-
"ds_data": {
|
|
34
|
-
"ds_stack": true,
|
|
35
|
-
"ds_transparency": 0,
|
|
36
|
-
"ds_filled": false,
|
|
37
|
-
"ds_color_area": "#efb118",
|
|
38
|
-
"ds_color_line": "#efb118"
|
|
39
|
-
},
|
|
40
|
-
"datasourceOptions": {
|
|
41
|
-
"field": null,
|
|
42
|
-
"group_by": null,
|
|
43
|
-
"op": "count-doc",
|
|
44
|
-
"query": "",
|
|
45
|
-
"period": 3600
|
|
46
|
-
},
|
|
47
|
-
"data": [
|
|
48
|
-
32, 825, 939, 922, 918, 939, 943, 947, 946, 909, 931, 939, 883, 907,
|
|
49
|
-
928, 904, 923, 893, 139
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"times": [
|
|
54
|
-
"2025-10-04T16:19:30.000Z",
|
|
55
|
-
"2025-10-04T16:20:00.000Z",
|
|
56
|
-
"2025-10-04T16:20:30.000Z",
|
|
57
|
-
"2025-10-04T16:21:00.000Z",
|
|
58
|
-
"2025-10-04T16:21:30.000Z",
|
|
59
|
-
"2025-10-04T16:22:00.000Z",
|
|
60
|
-
"2025-10-04T16:22:30.000Z",
|
|
61
|
-
"2025-10-04T16:23:00.000Z",
|
|
62
|
-
"2025-10-04T16:23:30.000Z",
|
|
63
|
-
"2025-10-04T16:24:00.000Z",
|
|
64
|
-
"2025-10-04T16:24:30.000Z",
|
|
65
|
-
"2025-10-04T16:25:00.000Z",
|
|
66
|
-
"2025-10-04T16:25:30.000Z",
|
|
67
|
-
"2025-10-04T16:26:00.000Z",
|
|
68
|
-
"2025-10-04T16:26:30.000Z",
|
|
69
|
-
"2025-10-04T16:27:00.000Z",
|
|
70
|
-
"2025-10-04T16:27:30.000Z",
|
|
71
|
-
"2025-10-04T16:28:00.000Z",
|
|
72
|
-
"2025-10-04T16:28:30.000Z"
|
|
73
|
-
]
|
|
74
|
-
}
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"global": {
|
|
3
|
-
"base": 1000,
|
|
4
|
-
"title": "Ping service"
|
|
5
|
-
},
|
|
6
|
-
"metrics": [
|
|
7
|
-
{
|
|
8
|
-
"metric_id": 2,
|
|
9
|
-
"metric": "Centreon-Server: pl",
|
|
10
|
-
"metric_legend": "Centreon-Server: pl",
|
|
11
|
-
"unit": "%",
|
|
12
|
-
"min": 0.0,
|
|
13
|
-
"max": 100.0,
|
|
14
|
-
"ds_data": {
|
|
15
|
-
"ds_color_line": "#F30B23",
|
|
16
|
-
"ds_color_area": "#F30B23",
|
|
17
|
-
"ds_filled": true,
|
|
18
|
-
"ds_invert": false,
|
|
19
|
-
"ds_legend": null,
|
|
20
|
-
"ds_stack": false,
|
|
21
|
-
"ds_order": 1,
|
|
22
|
-
"ds_transparency": 80.0,
|
|
23
|
-
"ds_color_line_mode": 0
|
|
24
|
-
},
|
|
25
|
-
"legend": "Centreon-Server: Packet Loss",
|
|
26
|
-
"stack": 0,
|
|
27
|
-
"warning_high_threshold": 20.0,
|
|
28
|
-
"critical_high_threshold": 50.0,
|
|
29
|
-
"warning_low_threshold": 0.0,
|
|
30
|
-
"critical_low_threshold": 0.0,
|
|
31
|
-
"ds_order": 1,
|
|
32
|
-
"data": [
|
|
33
|
-
0.0,
|
|
34
|
-
0.0,
|
|
35
|
-
0.0,
|
|
36
|
-
0.0,
|
|
37
|
-
0.0,
|
|
38
|
-
0.0,
|
|
39
|
-
0.0,
|
|
40
|
-
0.0,
|
|
41
|
-
0.0,
|
|
42
|
-
10.0,
|
|
43
|
-
20.0,
|
|
44
|
-
null,
|
|
45
|
-
null
|
|
46
|
-
],
|
|
47
|
-
"last_value": 0.0,
|
|
48
|
-
"minimum_value": null,
|
|
49
|
-
"maximum_value": 0.0,
|
|
50
|
-
"average_value": 0.0
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"metric_id": 1,
|
|
54
|
-
"metric": "Centreon-Server: rta",
|
|
55
|
-
"metric_legend": "Centreon-Server: rta",
|
|
56
|
-
"unit": "ms",
|
|
57
|
-
"min": 0.0,
|
|
58
|
-
"max": null,
|
|
59
|
-
"ds_data": {
|
|
60
|
-
"ds_color_line": "#29AFEE",
|
|
61
|
-
"ds_color_area": "#29AFEE",
|
|
62
|
-
"ds_filled": true,
|
|
63
|
-
"ds_invert": false,
|
|
64
|
-
"ds_legend": null,
|
|
65
|
-
"ds_stack": true,
|
|
66
|
-
"ds_order": 1,
|
|
67
|
-
"ds_transparency": 80.0,
|
|
68
|
-
"ds_color_line_mode": 0
|
|
69
|
-
},
|
|
70
|
-
"legend": "Centreon-Server: Round-Trip Average Time",
|
|
71
|
-
"stack": 0,
|
|
72
|
-
"warning_high_threshold": 200.0,
|
|
73
|
-
"critical_high_threshold": 400.0,
|
|
74
|
-
"warning_low_threshold": 0.0,
|
|
75
|
-
"critical_low_threshold": 0.0,
|
|
76
|
-
"ds_order": 1,
|
|
77
|
-
"data": [
|
|
78
|
-
0.04508,
|
|
79
|
-
0.0242,
|
|
80
|
-
0.03592,
|
|
81
|
-
0.01304,
|
|
82
|
-
0.025,
|
|
83
|
-
0.02748,
|
|
84
|
-
0.05296,
|
|
85
|
-
0.01864,
|
|
86
|
-
0.02688,
|
|
87
|
-
0.03676,
|
|
88
|
-
0.03696,
|
|
89
|
-
null,
|
|
90
|
-
null
|
|
91
|
-
],
|
|
92
|
-
"last_value": 0.04,
|
|
93
|
-
"minimum_value": null,
|
|
94
|
-
"maximum_value": null,
|
|
95
|
-
"average_value": 0.03
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"metric_id": 3,
|
|
99
|
-
"metric": "Centreon-Server: rtmax",
|
|
100
|
-
"metric_legend": "Centreon-Server: rtmax",
|
|
101
|
-
"unit": "ms",
|
|
102
|
-
"min": null,
|
|
103
|
-
"max": null,
|
|
104
|
-
"ds_data": {
|
|
105
|
-
"ds_color_line": "#525256",
|
|
106
|
-
"ds_color_area": "#525256",
|
|
107
|
-
"ds_filled": false,
|
|
108
|
-
"ds_invert": false,
|
|
109
|
-
"ds_legend": null,
|
|
110
|
-
"ds_stack": true,
|
|
111
|
-
"ds_stack_key": "test",
|
|
112
|
-
"ds_order": 2,
|
|
113
|
-
"ds_transparency": 80.0,
|
|
114
|
-
"ds_color_line_mode": 0
|
|
115
|
-
},
|
|
116
|
-
"legend": "Centreon-Server: Round-Trip Maximum Time",
|
|
117
|
-
"stack": 0,
|
|
118
|
-
"warning_high_threshold": null,
|
|
119
|
-
"critical_high_threshold": null,
|
|
120
|
-
"warning_low_threshold": null,
|
|
121
|
-
"critical_low_threshold": null,
|
|
122
|
-
"ds_order": 2,
|
|
123
|
-
"data": [
|
|
124
|
-
0.11372,
|
|
125
|
-
0.05604,
|
|
126
|
-
0.08556,
|
|
127
|
-
0.02548,
|
|
128
|
-
0.05352,
|
|
129
|
-
0.05336,
|
|
130
|
-
0.109,
|
|
131
|
-
0.04112,
|
|
132
|
-
0.05504,
|
|
133
|
-
0.06812,
|
|
134
|
-
0.08644,
|
|
135
|
-
null,
|
|
136
|
-
null
|
|
137
|
-
],
|
|
138
|
-
"last_value": 0.09,
|
|
139
|
-
"minimum_value": null,
|
|
140
|
-
"maximum_value": 0.11,
|
|
141
|
-
"average_value": null
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"metric_id": 4,
|
|
145
|
-
"metric": "Centreon-Server: rtmin",
|
|
146
|
-
"metric_legend": "Centreon-Server: rtmin",
|
|
147
|
-
"unit": "ms",
|
|
148
|
-
"min": null,
|
|
149
|
-
"max": null,
|
|
150
|
-
"ds_data": {
|
|
151
|
-
"ds_color_line": "#191777",
|
|
152
|
-
"ds_color_area": "#191777",
|
|
153
|
-
"ds_filled": false,
|
|
154
|
-
"ds_invert": false,
|
|
155
|
-
"ds_legend": null,
|
|
156
|
-
"ds_stack": true,
|
|
157
|
-
"ds_stack_key": "test",
|
|
158
|
-
"ds_order": 2,
|
|
159
|
-
"ds_transparency": 80.0,
|
|
160
|
-
"ds_color_line_mode": 0
|
|
161
|
-
},
|
|
162
|
-
"legend": "Centreon-Server: Round-Trip Minimum Time",
|
|
163
|
-
"stack": 0,
|
|
164
|
-
"warning_high_threshold": null,
|
|
165
|
-
"critical_high_threshold": null,
|
|
166
|
-
"warning_low_threshold": null,
|
|
167
|
-
"critical_low_threshold": null,
|
|
168
|
-
"ds_order": 2,
|
|
169
|
-
"data": [
|
|
170
|
-
0.00984,
|
|
171
|
-
0.008,
|
|
172
|
-
0.00784,
|
|
173
|
-
0.00624,
|
|
174
|
-
0.00932,
|
|
175
|
-
0.01348,
|
|
176
|
-
0.01796,
|
|
177
|
-
0.0064,
|
|
178
|
-
0.01148,
|
|
179
|
-
0.01644,
|
|
180
|
-
0.01168,
|
|
181
|
-
null,
|
|
182
|
-
null
|
|
183
|
-
],
|
|
184
|
-
"last_value": 0.01,
|
|
185
|
-
"minimum_value": 0.01,
|
|
186
|
-
"maximum_value": null,
|
|
187
|
-
"average_value": null
|
|
188
|
-
}
|
|
189
|
-
],
|
|
190
|
-
"times": [
|
|
191
|
-
"2024-06-19T10:50:00+02:00",
|
|
192
|
-
"2024-06-19T10:55:00+02:00",
|
|
193
|
-
"2024-06-19T11:00:00+02:00",
|
|
194
|
-
"2024-06-19T11:05:00+02:00",
|
|
195
|
-
"2024-06-19T11:10:00+02:00",
|
|
196
|
-
"2024-06-19T11:15:00+02:00",
|
|
197
|
-
"2024-06-19T11:20:00+02:00",
|
|
198
|
-
"2024-06-19T11:25:00+02:00",
|
|
199
|
-
"2024-06-19T11:30:00+02:00",
|
|
200
|
-
"2024-06-19T11:35:00+02:00",
|
|
201
|
-
"2024-06-19T11:40:00+02:00",
|
|
202
|
-
"2024-06-19T11:45:00+02:00",
|
|
203
|
-
"2024-06-19T11:50:00+02:00"
|
|
204
|
-
]
|
|
205
|
-
}
|