|
1 | | -<div class="container-fluid p-3"> |
2 | | - <div class="card-header p-2"> |
| 1 | + <div class="card-header p-2"> |
3 | 2 | <h6 class="d-flex align-items-center text-blue-800 font-weight-light"> |
4 | 3 | Control Status Timeline |
5 | 4 | </h6> |
6 | 5 | </div> |
7 | | - <div class="card-body p-2 h-10"> |
8 | | - <div *ngIf="evaluations.length > 0 && !loading" |
9 | | - class="m-0 h-100" id="eventsTimeline"> |
10 | | - <div class="timeline-scroll-wrapper"> |
11 | | - <ul class="timeline"> |
12 | | - <li *ngFor="let evaluation of evaluations" class="cursor-pointer"> |
13 | | - <div class="timeline-item" (click)="selectEvaluation(evaluation)"> |
14 | | - <!--<div class="utm_tmlabel timeline-label cursor-pointer" |
15 | | - [ngClass]="selected === evaluation ? |
16 | | - evaluation.status === 'COMPLIANT' ? 'selected compliant': 'selected non-compliant' |
17 | | - : ''" |
18 | | - (click)="selectEvaluation(evaluation)"> |
19 | | - <p class="vertical-text">{{ evaluation.status }}</p> |
20 | | - </div> |
21 | | -
|
22 | | - <div class="timeline-line" [ngClass]="evaluation.status === 'COMPLIANT' ? 'compliant' : 'non-compliant'"></div>--> |
23 | | - |
24 | | - <div class="timeline-icons" [ngClass]="evaluation.status === 'COMPLIANT' ? 'compliant' : 'non-compliant'"></div> |
25 | | - |
26 | | - <time class="timeline-time"> |
27 | | - {{ evaluation.timestamp | date:formatDateEnum.UTM_SHORT:'UTC' }} |
28 | | - </time> |
29 | | - </div> |
30 | | - |
31 | | - </li> |
32 | | - </ul> |
33 | | - <!--<div *ngIf="loadingMore && !noMoreResult" |
34 | | - class="d-flex justify-content-center align-items-center p-3 loading"> |
35 | | - <app-utm-spinner [height]="'35px'" [loading]="true" |
36 | | - [width]="'35px'" label="Loading more events"></app-utm-spinner> |
37 | | - </div> |
38 | | - <div *ngIf="noMoreResult" |
39 | | - class="d-flex justify-content-center align-items-center p-3 loading"> |
40 | | - <i class="icon-three-bars font-size-lg text-blue-800"></i> |
41 | | - <span class="text-blue-800 mt-2">No more data</span> |
42 | | - </div>--> |
43 | | - </div> |
44 | | - <!--<div *ngIf="evaluations && evaluations.length>0" class="my-3 mt-1"> |
45 | | - <div class="row justify-content-center"> |
46 | | - <ngb-pagination (pageChange)="loadPage($event)" |
47 | | - [(page)]="page" |
48 | | - [boundaryLinks]="true" |
49 | | - [collectionSize]="totalItems" |
50 | | - [maxSize]="3" |
51 | | - [pageSize]="itemsPerPage"eastc |
52 | | - [rotate]="true" |
53 | | - [size]="'sm'"></ngb-pagination> |
54 | | - <app-utm-items-per-page (itemsInPage)="onItemsPerPageChange($event)" |
55 | | - class="ml-3"> |
56 | | - </app-utm-items-per-page> |
57 | | - </div>--> |
58 | | - |
59 | | - </div> |
60 | | - </div> |
61 | | - <div *ngIf="loading" |
62 | | - class=" h-100 d-flex justify-content-center align-items-center p-3 loading"> |
63 | | - <app-utm-spinner [height]="'35px'" [loading]="true" |
64 | | - [width]="'35px'" label="Loading"></app-utm-spinner> |
65 | | - </div> |
66 | | - <div *ngIf="evaluations.length===0 && !loading" |
67 | | - class="card-body message-container p-2 timeline-container h-100"> |
68 | | - <div class="h-100 w-100 d-flex justify-content-center align-items-center flex-column"> |
69 | | - <div class="event-icon utm-icon-lg utm-icon-light"></div> |
70 | | - <h6 class="text-blue-800 mt-2 text-justify font-weight-light"> |
71 | | - No data found |
72 | | - </h6> |
73 | | - </div> |
| 6 | + <div class="chart-container"> |
| 7 | + <div echarts [options]="options" class="chart" |
| 8 | + (chartClick)="onChartClick($event)"> |
74 | 9 | </div> |
75 | 10 | </div> |
| 11 | + |
0 commit comments