Browse Source

feat(lib): remove deprecated undefined loading state from value component

pull/7964/head
KenTandrian 3 weeks ago
parent
commit
9669655ad4
  1. 6
      libs/ui/src/lib/value/value.component.html
  2. 2
      libs/ui/src/lib/value/value.component.ts

6
libs/ui/src/lib/value/value.component.html

@ -27,11 +27,7 @@
} }
</ng-template> </ng-template>
<!-- @if (isLoading()) {
@deprecated Rendering the loading state for an undefined value is kept for
backward compatibility. Use the isLoading attribute instead.
-->
@if (isLoading() || value === undefined) {
<ngx-skeleton-loader <ngx-skeleton-loader
animation="pulse" animation="pulse"
[theme]="{ [theme]="{

2
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() size: 'large' | 'medium' | 'small' = 'small';
@Input() subLabel?: string = ''; @Input() subLabel?: string = '';
@Input() unit?: string | null = ''; @Input() unit?: string | null = '';
@Input() value?: number | string | null = ''; @Input() value: number | string | null = '';
@ViewChild('labelContent', { static: false }) @ViewChild('labelContent', { static: false })
labelContent!: ElementRef<HTMLSpanElement>; labelContent!: ElementRef<HTMLSpanElement>;

Loading…
Cancel
Save