From 46b543265b00fa6960d6b4452b8ddb761dcfe0c6 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 16 Feb 2025 21:01:05 +0100 Subject: [PATCH] Revert value component --- libs/ui/src/lib/value/value.component.html | 142 +++++++++------------ 1 file changed, 62 insertions(+), 80 deletions(-) diff --git a/libs/ui/src/lib/value/value.component.html b/libs/ui/src/lib/value/value.component.html index 5a7d6cc76..a691c54e8 100644 --- a/libs/ui/src/lib/value/value.component.html +++ b/libs/ui/src/lib/value/value.component.html @@ -1,66 +1,54 @@ -@if (icon) { -
- -
-} +
+ +
- @if (value || value === 0 || value === null) { +
- @if (isNumber || value === null) { - @if (colorizeSign && !useAbsoluteValue) { - @if (+value > 0) { -
+
- } - @if (+value < 0) { -
-
+ + +
+
+
-
+
+
+ @if (value === null) { + *****% + } @else { + {{ formattedValue }}% } - } - @if (isPercent) { -
- @if (value === null) { - *****% - } @else { - {{ formattedValue }}% - } -
- } @else { -
- @if (value === null) { - ***** - } @else { - {{ formattedValue }} - } -
- } - @if (unit && size === 'medium') { - @if (size === 'medium') { - - {{ unit }} - +
+
+ @if (value === null) { + ***** } @else { -
- {{ unit }} -
+ {{ formattedValue }} } - } - } - @if (isString) { +
+ + {{ unit }} + +
+ {{ unit }} +
+
+
- } + - @if (size === 'large') { -
- - @if (subLabel) { - {{ subLabel }} - } -
- } @else { - - - - } +
+ + {{ subLabel }} +
+ + +