techsbcn-storybook 0.16.0 → 0.17.0
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/dist/components/tables/SimpleTableComponent/SimpleTableComponent.d.ts +3 -0
- package/dist/components/tables/TableComponent/TableComponent.d.ts +3 -0
- package/dist/techsbcn-storybook.cjs.development.js +2 -2
- package/dist/techsbcn-storybook.cjs.development.js.map +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js.map +1 -1
- package/dist/techsbcn-storybook.esm.js +2 -2
- package/dist/techsbcn-storybook.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/tables/SimpleTableComponent/SimpleTableComponent.tsx +9 -1
- package/src/components/tables/TableComponent/TableComponent.tsx +9 -1
|
@@ -562,7 +562,7 @@ var TableComponent = function TableComponent(props) {
|
|
|
562
562
|
}
|
|
563
563
|
|
|
564
564
|
if (column.isDate && value) return new Date(value).toLocaleDateString('es-ES');
|
|
565
|
-
if (column.isPrice && value) return Number(value).toFixed(2).replace('.', ',') + " " + props.values.SYMBOL_EURO;
|
|
565
|
+
if (column.isPrice && value) return Number(value).toFixed(2).replace('.', ',').toLocaleString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1.') + " " + props.values.SYMBOL_EURO;
|
|
566
566
|
|
|
567
567
|
if (column.isImage && value) {
|
|
568
568
|
if (column.isImage.isUrl) {
|
|
@@ -958,7 +958,7 @@ var SimpleTableComponent = function SimpleTableComponent(props) {
|
|
|
958
958
|
}
|
|
959
959
|
|
|
960
960
|
if (column.isDate && value) return new Date(value).toLocaleDateString('es-ES');
|
|
961
|
-
if (column.isPrice && value) return Number(value).toFixed(2).replace('.', ',') + " " + props.values.SYMBOL_EURO;
|
|
961
|
+
if (column.isPrice && value) return Number(value).toFixed(2).replace('.', ',').toLocaleString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1.') + " " + props.values.SYMBOL_EURO;
|
|
962
962
|
|
|
963
963
|
if (column.isImage && value) {
|
|
964
964
|
if (column.isImage.isUrl) {
|