Files
KiraTV---Aplicacion-para-Wi…/libs/ui/components/src/lib/channel-list-loading-state/channel-list-loading-state.component.ts
T
2026-05-03 23:36:48 +02:00

26 lines
957 B
TypeScript

import {
ChangeDetectionStrategy,
Component,
computed,
input,
} from '@angular/core';
import { TranslatePipe } from '@ngx-translate/core';
@Component({
selector: 'app-channel-list-loading-state',
templateUrl: './channel-list-loading-state.component.html',
styleUrl: './channel-list-loading-state.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [TranslatePipe],
})
export class ChannelListLoadingStateComponent {
readonly view = input<string>('all');
readonly isGroupsView = computed(() => this.view() === 'groups');
readonly channelRows = Array.from({ length: 9 }, (_, index) => index);
readonly groupRows = Array.from({ length: 10 }, (_, index) => index);
readonly channelMetaWidths = [38, 34, 42, 36, 44, 35, 40, 32, 39];
readonly channelTitleWidths = [72, 61, 68, 54, 78, 64, 70, 57, 75];
readonly groupLabelWidths = [78, 66, 84, 58, 73, 69, 81, 62, 76, 71];
}