@sumaris-net/ngx-components 1.19.14-rc1 → 1.19.14
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/bundles/sumaris-net.ngx-components.umd.js +5 -2
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/shared/pipes/number-format.pipe.js +6 -3
- package/fesm2015/sumaris-net.ngx-components.js +5 -2
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/pipes/number-format.pipe.d.ts +3 -1
- package/src/assets/i18n/fr.json +2 -2
- package/src/theme/_ngx-components.scss +11 -4
|
@@ -2649,11 +2649,14 @@
|
|
|
2649
2649
|
var NumberFormatPipe = /** @class */ (function () {
|
|
2650
2650
|
function NumberFormatPipe() {
|
|
2651
2651
|
}
|
|
2652
|
-
NumberFormatPipe.prototype.transform = function (val,
|
|
2652
|
+
NumberFormatPipe.prototype.transform = function (val, opts) {
|
|
2653
2653
|
// Format the output to display any way you want here.
|
|
2654
2654
|
// For instance:
|
|
2655
2655
|
if (val !== undefined && val !== null) {
|
|
2656
|
-
|
|
2656
|
+
if (opts === null || opts === void 0 ? void 0 : opts.fixedDecimals) {
|
|
2657
|
+
return val.toFixed(opts.fixedDecimals);
|
|
2658
|
+
}
|
|
2659
|
+
return val.toLocaleString(undefined, opts);
|
|
2657
2660
|
}
|
|
2658
2661
|
else {
|
|
2659
2662
|
return '';
|