Browse Source

fix(ui): widen input types on value component

pull/7953/head
KenTandrian 2 days ago
parent
commit
9e0fb63d83
  1. 10
      libs/ui/src/lib/value/value.component.ts

10
libs/ui/src/lib/value/value.component.ts

@ -42,12 +42,12 @@ export class GfValueComponent implements AfterViewInit, OnChanges, OnDestroy {
@Input() isCurrency = false; @Input() isCurrency = false;
@Input() isDate = false; @Input() isDate = false;
@Input() isPercent = false; @Input() isPercent = false;
@Input() locale: string; @Input() locale?: string;
@Input() position = ''; @Input() position = '';
@Input() size: 'large' | 'medium' | 'small' = 'small'; @Input() size: 'large' | 'medium' | 'small' = 'small';
@Input() subLabel = ''; @Input() subLabel?: string = '';
@Input() unit = ''; @Input() unit?: string | null = '';
@Input() value: number | string = ''; @Input() value?: number | string | null = '';
@ViewChild('labelContent', { static: false }) @ViewChild('labelContent', { static: false })
labelContent!: ElementRef<HTMLSpanElement>; labelContent!: ElementRef<HTMLSpanElement>;
@ -219,7 +219,7 @@ export class GfValueComponent implements AfterViewInit, OnChanges, OnDestroy {
this.isCopied = false; this.isCopied = false;
this.isNumber = false; this.isNumber = false;
this.isString = false; this.isString = false;
this.locale = this.locale || getLocale(); this.locale = this.locale ?? getLocale();
this.useAbsoluteValue = false; this.useAbsoluteValue = false;
if (this.copyToClipboardTimeout) { if (this.copyToClipboardTimeout) {

Loading…
Cancel
Save