From 5d38a440b11f6751b4d25b5ffdf5ff6793a7df6d Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 11 Feb 2024 20:17:12 +0100 Subject: [PATCH] Revert value.component.html --- libs/ui/src/lib/value/value.component.html | 140 +++++++++------------ 1 file changed, 62 insertions(+), 78 deletions(-) diff --git a/libs/ui/src/lib/value/value.component.html b/libs/ui/src/lib/value/value.component.html index f35ac86b4..07c4616df 100644 --- a/libs/ui/src/lib/value/value.component.html +++ b/libs/ui/src/lib/value/value.component.html @@ -1,61 +1,51 @@ -@if (icon) { -
- -
-} +
+ +
- @if (value || value === 0 || value === null) { +
- @if (isNumber || value === null) { - @if (colorizeSign && !useAbsoluteValue) { - @if (value > 0) { -
+
- } @else if (value < 0) { -
-
- } - } - @if (isPercent) { -
- {{ formattedValue }}% -
- } @else { -
- @if (value === null) { - ***** - } @else { - {{ formattedValue }} - } -
- } - @if (unit) { - @if (size === 'medium') { - - {{ unit }} - - } @else { -
- {{ unit }} -
- } - } - } - @if (isString) { + + +
+
+
-
+
+
+ {{ formattedValue }}% +
+
+ + ***** + + + {{ formattedValue }} + +
+ + {{ unit }} + +
+ {{ unit }} +
+
+
- } + - @if (size === 'large') { -
- - @if (subLabel) { - {{ subLabel }} - } -
- } @else { - - - - } +
+ + {{ subLabel }} +
+ + +