|
@ -20,6 +20,7 @@ export class ValueComponent implements OnChanges, OnInit { |
|
|
@Input() currency: string; |
|
|
@Input() currency: string; |
|
|
@Input() isCurrency: boolean; |
|
|
@Input() isCurrency: boolean; |
|
|
@Input() isPercent: boolean; |
|
|
@Input() isPercent: boolean; |
|
|
|
|
|
@Input() isInteger: boolean; |
|
|
@Input() label: string; |
|
|
@Input() label: string; |
|
|
@Input() locale: string; |
|
|
@Input() locale: string; |
|
|
@Input() position: string; |
|
|
@Input() position: string; |
|
@ -84,6 +85,13 @@ export class ValueComponent implements OnChanges, OnInit { |
|
|
minimumFractionDigits: 2 |
|
|
minimumFractionDigits: 2 |
|
|
}); |
|
|
}); |
|
|
} catch {} |
|
|
} catch {} |
|
|
|
|
|
} else if (this.isInteger) { |
|
|
|
|
|
try { |
|
|
|
|
|
this.formattedValue = this.value?.toLocaleString(this.locale, { |
|
|
|
|
|
maximumFractionDigits: 0, |
|
|
|
|
|
minimumFractionDigits: 0 |
|
|
|
|
|
}); |
|
|
|
|
|
} catch {} |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
try { |
|
|
try { |
|
|