@kigi/components 1.35.0-beta.2 → 1.35.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/mbg-homescreen/cards/chart-wrapper/chart-wrapper.html +1 -0
- package/src/components/mbg-homescreen/cards/chart-wrapper/chart-wrapper.ts +1 -0
- package/src/components/mbg-homescreen/cards/panel/panel.scss +1 -11
- package/src/components/mbg-homescreen/cards/panel/panel.ts +3 -1
- package/src/components/mbg-homescreen/charts/bar-line/bar-line.html +1 -0
- package/src/components/mbg-homescreen/charts/bar-line/bar-line.ts +11 -0
- package/src/components/mbg-homescreen/charts/bar-line-pie/bar-line-pie.html +1 -0
- package/src/components/mbg-homescreen/charts/bar-line-pie/bar-line-pie.ts +11 -0
- package/src/components/mbg-homescreen/charts/line/line.html +1 -0
- package/src/components/mbg-homescreen/charts/line/line.ts +11 -0
- package/src/components/mbg-homescreen/mbg-homescreen.html +3 -0
- package/src/components/mbg-homescreen/mbg-homescreen.ts +3 -1
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<div class="home-cards">
|
|
5
5
|
<mbg-card-panel ng-repeat="panel in $ctrl.panels"
|
|
6
6
|
loading="$ctrl.loading"
|
|
7
|
+
allow-dashboard-main-sales="$ctrl.allowDashboardMainSales"
|
|
7
8
|
display-values="$ctrl.displayValues"
|
|
8
9
|
allowed-to-see="$ctrl.allowedToSee"
|
|
9
10
|
allowed-call-back="$ctrl.allowedCallBack()"
|
|
@@ -32,7 +32,7 @@ mbg-card-panel {
|
|
|
32
32
|
|
|
33
33
|
.mbg-h-c-tone-s-icon {
|
|
34
34
|
transition: opacity 500ms ease;
|
|
35
|
-
opacity:
|
|
35
|
+
opacity: 1;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -60,15 +60,5 @@ mbg-card-panel {
|
|
|
60
60
|
.negative {
|
|
61
61
|
color: var(--error);
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
&:hover {
|
|
65
|
-
.panel-container {
|
|
66
|
-
.panel-content {
|
|
67
|
-
.mbg-h-c-tone-s-icon {
|
|
68
|
-
opacity: 1;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
63
|
}
|
|
74
64
|
}
|
|
@@ -8,6 +8,7 @@ class MbgCardPanelController {
|
|
|
8
8
|
public randomEmoji: string
|
|
9
9
|
public allowedToSee: boolean
|
|
10
10
|
private allowedCallBack: Function
|
|
11
|
+
private allowDashboardMainSales
|
|
11
12
|
|
|
12
13
|
constructor(public $scope, public $element, public $attrs, public $timeout) {}
|
|
13
14
|
$onInit() {
|
|
@@ -45,7 +46,7 @@ class MbgCardPanelController {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
toggleShowValue = () => {
|
|
48
|
-
if (this.allowedToSee !== undefined && !this.allowedToSee) {
|
|
49
|
+
if ((this.allowedToSee !== undefined && !this.allowedToSee) || !this.allowDashboardMainSales) {
|
|
49
50
|
if (this.allowedCallBack) {
|
|
50
51
|
this.allowedCallBack()
|
|
51
52
|
}
|
|
@@ -66,6 +67,7 @@ const mbgCardPanel = {
|
|
|
66
67
|
displayValues: '=?',
|
|
67
68
|
allowedToSee: '=?',
|
|
68
69
|
allowedCallBack: '&?',
|
|
70
|
+
allowDashboardMainSales: '=?',
|
|
69
71
|
},
|
|
70
72
|
template,
|
|
71
73
|
controller: MbgCardPanelController,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<mbg-chart-wrapper panels="$ctrl.panels"
|
|
4
4
|
loading="$ctrl.loading"
|
|
5
|
+
allow-dashboard-main-sales="$ctrl.allowDashboardMainSales"
|
|
5
6
|
display-values="$ctrl.displayValues"
|
|
6
7
|
allowed-to-see="$ctrl.allowedToSee"
|
|
7
8
|
allowed-call-back="$ctrl.allowedCallBack()"></mbg-chart-wrapper>
|
|
@@ -132,6 +132,16 @@ class MbgChartBarLineController {
|
|
|
132
132
|
},
|
|
133
133
|
},
|
|
134
134
|
plotOptions: {
|
|
135
|
+
series: {
|
|
136
|
+
marker: {
|
|
137
|
+
enabled: false,
|
|
138
|
+
states: {
|
|
139
|
+
hover: {
|
|
140
|
+
enabled: true,
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
135
145
|
label: {
|
|
136
146
|
enabled: false,
|
|
137
147
|
},
|
|
@@ -246,6 +256,7 @@ const mbgChartBarLine = {
|
|
|
246
256
|
displayValues: '=?',
|
|
247
257
|
allowedToSee: '=?',
|
|
248
258
|
allowedCallBack: '&?',
|
|
259
|
+
allowDashboardMainSales: '=?',
|
|
249
260
|
},
|
|
250
261
|
template,
|
|
251
262
|
controller: MbgChartBarLineController,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<mbg-chart-wrapper panels="$ctrl.panels"
|
|
4
4
|
loading="$ctrl.loading"
|
|
5
5
|
display-values="$ctrl.displayValues"
|
|
6
|
+
allow-dashboard-main-sales="$ctrl.allowDashboardMainSales"
|
|
6
7
|
allowed-to-see="$ctrl.allowedToSee"
|
|
7
8
|
allowed-call-back="$ctrl.allowedCallBack()"></mbg-chart-wrapper>
|
|
8
9
|
|
|
@@ -141,6 +141,16 @@ class MbgChartBarLinePieController {
|
|
|
141
141
|
},
|
|
142
142
|
},
|
|
143
143
|
plotOptions: {
|
|
144
|
+
series: {
|
|
145
|
+
marker: {
|
|
146
|
+
enabled: false,
|
|
147
|
+
states: {
|
|
148
|
+
hover: {
|
|
149
|
+
enabled: true,
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
144
154
|
label: {
|
|
145
155
|
enabled: false,
|
|
146
156
|
},
|
|
@@ -271,6 +281,7 @@ const mbgChartBarLinePie = {
|
|
|
271
281
|
displayValues: '=?',
|
|
272
282
|
allowedToSee: '=?',
|
|
273
283
|
allowedCallBack: '&?',
|
|
284
|
+
allowDashboardMainSales: '=?',
|
|
274
285
|
},
|
|
275
286
|
template,
|
|
276
287
|
controller: MbgChartBarLinePieController,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<mbg-chart-wrapper panels="$ctrl.panels"
|
|
4
4
|
loading="$ctrl.loading"
|
|
5
5
|
display-values="$ctrl.displayValues"
|
|
6
|
+
allow-dashboard-main-sales="$ctrl.allowDashboardMainSales"
|
|
6
7
|
allowed-to-see="$ctrl.allowedToSee"
|
|
7
8
|
allowed-call-back="$ctrl.allowedCallBack()"></mbg-chart-wrapper>
|
|
8
9
|
|
|
@@ -134,6 +134,16 @@ class MbgChartLineController {
|
|
|
134
134
|
},
|
|
135
135
|
},
|
|
136
136
|
plotOptions: {
|
|
137
|
+
series: {
|
|
138
|
+
marker: {
|
|
139
|
+
enabled: false,
|
|
140
|
+
states: {
|
|
141
|
+
hover: {
|
|
142
|
+
enabled: true,
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
},
|
|
137
147
|
label: {
|
|
138
148
|
enabled: true,
|
|
139
149
|
},
|
|
@@ -267,6 +277,7 @@ const mbgChartLine = {
|
|
|
267
277
|
displayValues: '=?',
|
|
268
278
|
allowedToSee: '=?',
|
|
269
279
|
allowedCallBack: '&?',
|
|
280
|
+
allowDashboardMainSales: '=?',
|
|
270
281
|
},
|
|
271
282
|
template,
|
|
272
283
|
controller: MbgChartLineController,
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
<mbg-chart-line chart="$ctrl.chart"
|
|
49
49
|
panels="$ctrl.cards"
|
|
50
50
|
display-values="$ctrl.displayValues"
|
|
51
|
+
allow-dashboard-main-sales="$ctrl.allowDashboardMainSales"
|
|
51
52
|
loading="$ctrl.loading"
|
|
52
53
|
allowed-to-see="$ctrl.allowedToSee"
|
|
53
54
|
allowed-call-back="$ctrl.allowedCallBack()"
|
|
@@ -55,12 +56,14 @@
|
|
|
55
56
|
<mbg-chart-bar-line chart="$ctrl.chart"
|
|
56
57
|
panels="$ctrl.cards"
|
|
57
58
|
display-values="$ctrl.displayValues"
|
|
59
|
+
allow-dashboard-main-sales="$ctrl.allowDashboardMainSales"
|
|
58
60
|
loading="$ctrl.loading"
|
|
59
61
|
allowed-to-see="$ctrl.allowedToSee"
|
|
60
62
|
allowed-call-back="$ctrl.allowedCallBack()"
|
|
61
63
|
ng-if="$ctrl.chart && $ctrl.chart.type == 'barline'"></mbg-chart-bar-line>
|
|
62
64
|
<mbg-chart-bar-line-pie chart="$ctrl.chart"
|
|
63
65
|
panels="$ctrl.cards"
|
|
66
|
+
allow-dashboard-main-sales="$ctrl.allowDashboardMainSales"
|
|
64
67
|
display-values="$ctrl.displayValues"
|
|
65
68
|
loading="$ctrl.loading"
|
|
66
69
|
allowed-to-see="$ctrl.allowedToSee"
|
|
@@ -21,6 +21,7 @@ class MbgHomescreenController {
|
|
|
21
21
|
value: number
|
|
22
22
|
isCurrency: boolean
|
|
23
23
|
}[]
|
|
24
|
+
private allowDashboardMainSales
|
|
24
25
|
|
|
25
26
|
constructor(public $scope, public $element, public $attrs, public $timeout) {}
|
|
26
27
|
|
|
@@ -84,7 +85,7 @@ class MbgHomescreenController {
|
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
handleDisplayValues() {
|
|
87
|
-
if (this.allowedToSee !== undefined && !this.allowedToSee) {
|
|
88
|
+
if ((this.allowedToSee !== undefined && !this.allowedToSee) || !this.allowDashboardMainSales) {
|
|
88
89
|
if (this.allowedCallBack) {
|
|
89
90
|
this.allowedCallBack()
|
|
90
91
|
}
|
|
@@ -104,6 +105,7 @@ const mbgHomescreen = {
|
|
|
104
105
|
allowedToSee: '=?',
|
|
105
106
|
allowedCallBack: '&?',
|
|
106
107
|
activeFilter: '=?',
|
|
108
|
+
allowDashboardMainSales: '=?',
|
|
107
109
|
},
|
|
108
110
|
template,
|
|
109
111
|
controller: MbgHomescreenController,
|