-
Notifications
You must be signed in to change notification settings - Fork 1
/
552a947b-2c25-43f9-bae9-35d611eb2733.html
104 lines (80 loc) · 2.3 KB
/
552a947b-2c25-43f9-bae9-35d611eb2733.html
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<style>@kpiBackgroundColor: {{settings.useMeasureColor ? layout.qHyperCube.qMeasureInfo[0].baseColor.color : settings.backgroundColor}};
@kpiTextColor : {{settings.kpiTextColor}};
@kpiBorderRadius : {{ settings.roundedCorners ? '15px' : '0px'}};
@labelColor: {{settings.labelColor}};
@labelOpacity: {{settings.opacity}};
@arrowUpColor: {{settings.arrowUpColor}};
@arrowDownColor: {{settings.arrowDownColor}};
@kpiCompareTextColor : {{settings.kpiCompareTextColor}};
@baseSize: 16px;
.bm-kpi {
width: 100%;
height: 100%;
max-width: 600px;
max-height: 180px;
font-size: @baseSize;
overflow: hidden;
border-radius: @kpiBorderRadius;
background-color: @kpiBackgroundColor;
align-items: center;
display: flex;
.bm-kpi-container {
padding: 20px;
text-align: right;
.bm-kpi-title {
font-size: 1.2rem;
color: @labelColor;
opacity: @labelOpacity;
text-transform: uppercase;
}
.bm-kpi-value {
display: flex;
.bm-kpi-value-text {
font-size: 2.5rem;
font-weight: bold;
color: @kpiTextColor;
flex: 1 1;
}
.bm-kpi-arrow {
span {
font-size: 3rem;
padding-left: 20px;
}
.bm-kpi-arrow-up {
color: @arrowUpColor;
}
.bm-kpi-arrow-down {
color: @arrowDownColor;
}
}
}
.bm-kpi-compare {
padding-top: 10px;
.bm-kpi-compare-title {
font-size: 0.8rem;
color: @kpiCompareTextColor;
}
.bm-kpi-compare-value {
font-size: 0.8rem;
color: @kpiCompareTextColor;
}
}
}
}</style>
<div><div class="bm-kpi">
<div class="bm-kpi-container">
<div class="bm-kpi-title">{{data.headers[0].qFallbackTitle}}</div>
<div class="bm-kpi-value">
<div class="bm-kpi-value-text">{{data.rows[0].cells[0].qText}}</div>
<div class="bm-kpi-arrow">
<span class="lui-icon lui-icon--triangle-top bm-kpi-arrow-up" ng-if="data.rows[0].cells[0].qNum > data.rows[0].cells[1].qNum"></span>
<span class="lui-icon lui-icon--triangle-bottom bm-kpi-arrow-down" ng-if="data.rows[0].cells[0].qNum < data.rows[0].cells[1].qNum"></span>
</div>
</div>
<div class="bm-kpi-compare">
<div class="bm-kpi-compare-title">{{data.headers[1].qFallbackTitle}}</div>
<div class="bm-kpi-compare-value">{{data.rows[0].cells[1].qText}}</div>
</div>
</div>
</div>
</div>