Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | 1x 13x 13x 13x 10x | /** * Copyright (c) Siemens 2016 - 2025 * SPDX-License-Identifier: MIT */ import { Component, computed, input } from '@angular/core'; import { SiWidgetBaseComponent } from '../si-widget-base.component'; import { SiTimelineWidgetItem, SiTimelineWidgetItemComponent } from './si-timeline-widget-item.component'; @Component({ selector: 'si-timeline-widget-body', imports: [SiTimelineWidgetItemComponent], templateUrl: './si-timeline-widget-body.component.html', styleUrl: './si-timeline-widget-body.component.scss' }) export class SiTimelineWidgetBodyComponent extends SiWidgetBaseComponent<SiTimelineWidgetItem[]> { /** * Number of skeleton progress indication items. * * @defaultValue 4 */ readonly numberOfItems = input(4); /** * Whether to show or hide the description row during skeleton progress indication. * * @defaultValue `true` */ readonly showDescription = input(true); /** Used to display the defined number of ghost items */ protected readonly ghosts = computed(() => { return new Array(this.numberOfItems() ?? 4); }); } |