@centreon/ui 26.9.1 → 26.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@centreon/ui",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.11.1",
|
|
4
4
|
"description": "Centreon UI Components",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update:deps": "pnpx npm-check-updates -i --format group",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"ramda": "0.30.1",
|
|
163
163
|
"react-grid-layout": "^2.2.2",
|
|
164
164
|
"react-resizable": "^3.0.5",
|
|
165
|
-
"react-router": "7.
|
|
165
|
+
"react-router": "7.14.2",
|
|
166
166
|
"react-transition-group": "^4.4.5",
|
|
167
167
|
"sanitize-html": "^2.14.0",
|
|
168
168
|
"ulog": "^2.0.0-beta.19"
|
|
@@ -154,7 +154,7 @@ const checkGraphWidth = (): void => {
|
|
|
154
154
|
.and('equal', '392');
|
|
155
155
|
|
|
156
156
|
cy.findByTestId('graph-interaction-zone').then((graph) => {
|
|
157
|
-
expect(Number(graph[0].attributes.width.value)).to.be.greaterThan(
|
|
157
|
+
expect(Number(graph[0].attributes.width.value)).to.be.greaterThan(1149);
|
|
158
158
|
});
|
|
159
159
|
};
|
|
160
160
|
|
|
@@ -177,9 +177,6 @@ describe('Line chart', () => {
|
|
|
177
177
|
|
|
178
178
|
cy.contains('06/18/2023').should('be.visible');
|
|
179
179
|
|
|
180
|
-
cy.contains('0.56 s').should('be.visible');
|
|
181
|
-
cy.contains('73.25%').should('be.visible');
|
|
182
|
-
|
|
183
180
|
cy.makeSnapshot();
|
|
184
181
|
});
|
|
185
182
|
|
|
@@ -291,7 +288,7 @@ describe('Line chart', () => {
|
|
|
291
288
|
|
|
292
289
|
cy.findByTestId('graph-interaction-zone')
|
|
293
290
|
.should('have.attr', 'width')
|
|
294
|
-
.and('equal', '
|
|
291
|
+
.and('equal', '1220');
|
|
295
292
|
|
|
296
293
|
cy.get('[data-icon="true"]')
|
|
297
294
|
.eq(0)
|
|
@@ -743,12 +740,10 @@ describe('Lines and bars', () => {
|
|
|
743
740
|
|
|
744
741
|
checkGraphWidth();
|
|
745
742
|
|
|
746
|
-
cy.get(
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
'path[d="M23.953168044077135,235.36727985204413 h23.305785123966935 a17.479338842975203,17.479338842975203 0 0 1 17.479338842975203,17.479338842975203 v19.598028628005196 v17.479338842975203h-17.479338842975203 h-23.305785123966935 h-17.479338842975203v-17.479338842975203 v-19.598028628005196 a17.479338842975203,17.479338842975203 0 0 1 17.479338842975203,-17.479338842975203z"]'
|
|
751
|
-
).should('be.visible');
|
|
743
|
+
cy.get('[data-testid="stacked-bar-2-0-1243"]').should('be.visible');
|
|
744
|
+
cy.get('[data-testid="stacked-bar-10-0-8520.53622137828"]').should(
|
|
745
|
+
'be.visible'
|
|
746
|
+
);
|
|
752
747
|
|
|
753
748
|
cy.makeSnapshot();
|
|
754
749
|
});
|
|
@@ -44,7 +44,7 @@ export const useComputeYAxisMaxCharacters = ({
|
|
|
44
44
|
isHorizontal
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
// Always add a
|
|
47
|
+
// Always add a space in case the algorithm does not compute the displayed value in axis.
|
|
48
48
|
const maxLeftAxisCharacters = useMemo(() => {
|
|
49
49
|
if (!leftScale) {
|
|
50
50
|
return 0;
|
|
@@ -55,7 +55,7 @@ export const useComputeYAxisMaxCharacters = ({
|
|
|
55
55
|
|
|
56
56
|
return isEmpty(formattedTicks)
|
|
57
57
|
? 2
|
|
58
|
-
: Math.max(...formattedTicks.map((value) => value.length), 2) +
|
|
58
|
+
: Math.max(...formattedTicks.map((value) => value.length), 2) + 3;
|
|
59
59
|
}, [leftScale, axisLeft]);
|
|
60
60
|
|
|
61
61
|
const maxRightAxisCharacters = useMemo(() => {
|
|
@@ -68,7 +68,7 @@ export const useComputeYAxisMaxCharacters = ({
|
|
|
68
68
|
|
|
69
69
|
return isEmpty(formattedTicks)
|
|
70
70
|
? 2
|
|
71
|
-
: Math.max(...formattedTicks.map((value) => value.length), 2) +
|
|
71
|
+
: Math.max(...formattedTicks.map((value) => value.length), 2) + 3;
|
|
72
72
|
}, [rightScale, axisRight]);
|
|
73
73
|
|
|
74
74
|
return {
|