@evidence-dev/components
Advanced tools
Comparing version 1.3.1 to 1.3.2
# @evidence-dev/components | ||
## 1.3.2 | ||
### Patch Changes | ||
- bc62401: Add testIds to support e2e testing | ||
- 9275cda: Fixed the hms format to have two digits all the time for mm and ss | ||
- 07971d8: Ensure the version of Vite stays belows 3.0 | ||
- b5d4f28: adding currency 0 suffix tag eg usd0, increased threshold for applying units (k,M,B,T) | ||
## 1.3.1 | ||
@@ -4,0 +13,0 @@ |
@@ -333,10 +333,10 @@ import ssf from "ssf"; | ||
function getAutoColumnUnit(value) { | ||
let abosoluteValue = Math.abs(value); | ||
if (abosoluteValue >= 1000000000000) { | ||
let absoluteValue = Math.abs(value); | ||
if (absoluteValue >= 5000000000000) { | ||
return "T"; | ||
} else if (abosoluteValue >= 1000000000) { | ||
} else if (absoluteValue >= 5000000000) { | ||
return "B"; | ||
} else if (abosoluteValue >= 1000000) { | ||
} else if (absoluteValue >= 5000000) { | ||
return "M"; | ||
} else if (abosoluteValue >= 1000) { | ||
} else if (absoluteValue >= 5000) { | ||
return "k"; | ||
@@ -343,0 +343,0 @@ } else { |
@@ -90,5 +90,22 @@ import { | ||
}, | ||
{ derivedSuffix: "1", valueFormatCode: "#,##0.0", exampleInput: 7043.123 }, | ||
{ derivedSuffix: "2", valueFormatCode: "#,##0.00", exampleInput: 7043.123 }, | ||
{ derivedSuffix: "0k", valueFormatCode: '#,##0,"k"', exampleInput: 64301.12 }, | ||
{ | ||
derivedSuffix: "0", | ||
valueFormatCode: "#,##0", | ||
exampleInput: 7043.123 | ||
}, | ||
{ | ||
derivedSuffix: "1", | ||
valueFormatCode: "#,##0.0", | ||
exampleInput: 7043.123 | ||
}, | ||
{ | ||
derivedSuffix: "2", | ||
valueFormatCode: "#,##0.00", | ||
exampleInput: 7043.123 | ||
}, | ||
{ | ||
derivedSuffix: "0k", | ||
valueFormatCode: '#,##0,"k"', | ||
exampleInput: 64301.12 | ||
}, | ||
{ | ||
@@ -263,6 +280,6 @@ derivedSuffix: "1k", | ||
formatTag: "hms", | ||
formatCode: "H:M:S AM/PM", | ||
formatCode: "H:MM:SS AM/PM", | ||
formatCategory: "date", | ||
valueType: "date", | ||
exampleInput: "2022-01-09T11:45:23", | ||
exampleInput: "2022-01-09T11:45:03", | ||
}, | ||
@@ -269,0 +286,0 @@ // Numbers: |
{ | ||
"name": "@evidence-dev/components", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
391895
5846