Browse Source

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

pull/7964/head
KenTandrian 2 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>
<!--
@deprecated Rendering the loading state for an undefined value is kept for
backward compatibility. Use the isLoading attribute instead.
-->
@if (isLoading() || value === undefined) {
@if (isLoading()) {
<ngx-skeleton-loader
animation="pulse"
[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() subLabel?: string = '';
@Input() unit?: string | null = '';
@Input() value?: number | string | null = '';
@Input() value: number | string | null = '';
@ViewChild('labelContent', { static: false })
labelContent!: ElementRef<HTMLSpanElement>;

Loading…
Cancel
Save