1
|
<div class="p-grid p-nogutter">
|
2
|
|
3
|
<app-left-panel class="hidden-left-panel"></app-left-panel>
|
4
|
|
5
|
<div class="p-col main-content">
|
6
|
<h1>{{'MY-DASHBOARD' | translate}}</h1>
|
7
|
|
8
|
<div class="p-mb-5 hidden-horizontal-menu">
|
9
|
<app-horizontal-menu></app-horizontal-menu>
|
10
|
</div>
|
11
|
|
12
|
<div class="p-grid p-nogutter">
|
13
|
<div class="progress-spinner"
|
14
|
*ngIf="!dashboardSections || (dashboardSections.length === 0)">
|
15
|
<div class="spinner">
|
16
|
<p-progressSpinner></p-progressSpinner>
|
17
|
</div>
|
18
|
</div>
|
19
|
|
20
|
<!--<pre> {{dashboardSections | json}} </pre>-->
|
21
|
<!--<pre> {{iPowerClients | json}} </pre>-->
|
22
|
<!--<pre> {{selectedIPowerClients | json}} </pre>-->
|
23
|
|
24
|
<div class="p-col-12 p-text-center p-mb-5"
|
25
|
*ngIf="dashboardSections && (dashboardSections.length > 0) && iPowerClients && (iPowerClients.length > 0)">
|
26
|
<h3 class="p-mt-0 p-mb-2">Selected iPower clients</h3>
|
27
|
<p-multiSelect [options]="iPowerClients"
|
28
|
[(ngModel)]="selectedIPowerClients"
|
29
|
defaultLabel="Select an iPower client"
|
30
|
optionLabel="name"
|
31
|
optionValue="clientCode"
|
32
|
(onChange)="getData('', 0, 3)"></p-multiSelect>
|
33
|
</div>
|
34
|
|
35
|
<div class="p-col-12"
|
36
|
*ngIf="dashboardSections && (dashboardSections.length > 0)">
|
37
|
<div class="p-mb-5"
|
38
|
*ngFor="let section of dashboardSections">
|
39
|
|
40
|
<p-fieldset legend="{{section.type}}"
|
41
|
[toggleable]="true">
|
42
|
|
43
|
<app-dashboard-metrics [section]="section">
|
44
|
</app-dashboard-metrics>
|
45
|
|
46
|
<div class="p-grid p-nogutter p-mt-3"
|
47
|
*ngIf="section.aggregatedResults.length > 0">
|
48
|
<div class="p-col-12">
|
49
|
<app-dashboard-processes-per-client [section]="section"
|
50
|
[documentClassifications]="documentClassifications"
|
51
|
(onTotalElementsChanged)="totalElementsChanged($event, section)"
|
52
|
(paginationEvent)="paginationEvent($event)">
|
53
|
</app-dashboard-processes-per-client>
|
54
|
</div>
|
55
|
</div>
|
56
|
|
57
|
</p-fieldset>
|
58
|
|
59
|
</div>
|
60
|
</div>
|
61
|
|
62
|
</div>
|
63
|
</div>
|
64
|
|
65
|
</div>
|