|
|
|
@ -38,45 +38,23 @@ |
|
|
|
<div class="mr-1 text-danger">-</div> |
|
|
|
} |
|
|
|
} |
|
|
|
@if (isPercent) { |
|
|
|
<div |
|
|
|
class="mb-0 value" |
|
|
|
[ngClass]="{ |
|
|
|
'font-weight-bold h2': size === 'large', |
|
|
|
h4: size === 'medium' |
|
|
|
}" |
|
|
|
> |
|
|
|
@if (value === null) { |
|
|
|
<span class="text-monospace text-muted">*****</span>% |
|
|
|
} @else { |
|
|
|
{{ formattedValue }}% |
|
|
|
} |
|
|
|
</div> |
|
|
|
} @else { |
|
|
|
<div |
|
|
|
class="mb-0 value" |
|
|
|
[ngClass]="{ |
|
|
|
'font-weight-bold h2': size === 'large', |
|
|
|
h4: size === 'medium' |
|
|
|
}" |
|
|
|
> |
|
|
|
@if (value === null) { |
|
|
|
<span class="text-monospace text-muted">*****</span> |
|
|
|
} @else { |
|
|
|
{{ formattedValue }} |
|
|
|
} |
|
|
|
</div> |
|
|
|
} |
|
|
|
@if (unit) { |
|
|
|
@if (size === 'medium') { |
|
|
|
<small class="ml-1"> |
|
|
|
{{ unit }} |
|
|
|
</small> |
|
|
|
<div |
|
|
|
class="mb-0 value" |
|
|
|
[ngClass]="{ |
|
|
|
'font-weight-bold h2': size === 'large', |
|
|
|
h4: size === 'medium' |
|
|
|
}" |
|
|
|
> |
|
|
|
@if (value === null) { |
|
|
|
<span class="text-monospace text-muted">*****</span> |
|
|
|
} @else { |
|
|
|
<div class="ml-1"> |
|
|
|
{{ unit }} |
|
|
|
</div> |
|
|
|
{{ formattedValue }} |
|
|
|
} |
|
|
|
</div> |
|
|
|
@if (isPercent || unit) { |
|
|
|
<div class="ml-1"> |
|
|
|
{{ isPercent ? '%' : unit }} |
|
|
|
</div> |
|
|
|
} |
|
|
|
} |
|
|
|
@if (isString) { |
|
|
|
|