From 5aec4a8a163e5e5422b29611613b0097f20bd08c Mon Sep 17 00:00:00 2001 From: Kenrick Tandrian <60643640+KenTandrian@users.noreply.github.com> Date: Sun, 4 Oct 2026 01:58:47 +0700 Subject: [PATCH] Task/widen input types in value component (#8032) Widen input types --- libs/ui/src/lib/value/value.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ui/src/lib/value/value.component.ts b/libs/ui/src/lib/value/value.component.ts index 4101b4066f..dfbe461f60 100644 --- a/libs/ui/src/lib/value/value.component.ts +++ b/libs/ui/src/lib/value/value.component.ts @@ -47,7 +47,7 @@ export class GfValueComponent implements AfterViewInit, OnChanges, OnDestroy { @Input() size: 'large' | 'medium' | 'small' = 'small'; @Input() subLabel?: string = ''; @Input() unit?: string | null = ''; - @Input() value?: number | string | null = ''; + @Input() value?: Date | number | string | null = ''; @ViewChild('labelContent', { static: false }) labelContent!: ElementRef; @@ -171,7 +171,7 @@ export class GfValueComponent implements AfterViewInit, OnChanges, OnDestroy { } ); } else { - this.formattedValue = this.value; + this.formattedValue = String(this.value); } } }