@centreon/ui 25.10.8 → 25.10.10

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": "25.10.8",
3
+ "version": "25.10.10",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "update:deps": "pnpx npm-check-updates -i --format group",
@@ -100,7 +100,7 @@ describe('Bar chart', () => {
100
100
  cy.contains('Centreon-Server: Round-Trip Maximum Time').should(
101
101
  'be.visible'
102
102
  );
103
- cy.contains('7.47 KB').should('be.visible');
103
+ cy.contains('7.47 KiB').should('be.visible');
104
104
 
105
105
  cy.makeSnapshot();
106
106
  });
@@ -713,7 +713,7 @@ describe('Lines and bars', () => {
713
713
  cy.findByLabelText('B').click();
714
714
 
715
715
  cy.findAllByTestId('unit-selector').eq(0).should('have.value', 'B');
716
- cy.contains('8.79 KB').should('be.visible');
716
+ cy.contains('8.79 KiB').should('be.visible');
717
717
 
718
718
  cy.findAllByTestId('unit-selector').eq(1).parent().click();
719
719
  cy.findByLabelText('%').click();
@@ -362,10 +362,10 @@ describe('timeSeries', () => {
362
362
  describe(formatMetricValue, () => {
363
363
  const cases: Array<TestCase> = [
364
364
  [218857269, '', 1000, '218.86m'],
365
- [218857269, '', 1024, '208.72 M'],
365
+ [218857269, '', 1024, '208.72 Mi'],
366
366
  [0.12232323445, '', 1000, '0.12'],
367
- [1024, 'B', 1000, '1 KB'],
368
- [1024, 'B', 1024, '1 KB'],
367
+ [1024, 'B', 1000, '1 KiB'],
368
+ [1024, 'B', 1024, '1 KiB'],
369
369
  [null, 'B', 1024, null]
370
370
  ];
371
371
 
@@ -553,7 +553,7 @@ describe('Format value with unit', () => {
553
553
  return '324.23m';
554
554
  }
555
555
 
556
- return `309.21 M${unit}`;
556
+ return `309.21 Mi${unit}`;
557
557
  };
558
558
 
559
559
  const humanReadableTestCases = units.map((unit) => {
@@ -677,7 +677,7 @@ const formatMetricValue = ({
677
677
 
678
678
  const formattedMetricValue = numeral(Math.abs(value))
679
679
  .format(`0.[00]${formatSuffix}`)
680
- .replace(/(iB|B)/g, unit);
680
+ .replace(/B/, unit);
681
681
 
682
682
  if (lt(value, 0)) {
683
683
  return `-${formattedMetricValue}`;