@kigi/components 1.40.2 → 1.41.0-alpha.1
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 +2 -2
- package/src/components/index.ts +2 -0
- package/src/components/mbg-average-customer-time/index.ts +8 -0
- package/src/components/mbg-average-customer-time/mbg-average-customer-time.html +3 -0
- package/src/components/mbg-average-customer-time/mbg-average-customer-time.scss +301 -0
- package/src/components/mbg-average-customer-time/mbg-average-customer-time.ts +31 -0
- package/src/components/mbg-store-goal/mbg-store-goal.ts +0 -3
- package/src/index.html +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kigi/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.41.0-alpha.1",
|
|
4
4
|
"description": "@kigi/components",
|
|
5
5
|
"main": "src/components/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"progressbar.js": "^1.0.1",
|
|
76
76
|
"raphael": "^2.2.8",
|
|
77
77
|
"sugarss": "^2.0.0",
|
|
78
|
-
"swiper": "^5.
|
|
78
|
+
"swiper": "^5.3.6",
|
|
79
79
|
"webcamjs": "^1.0.25"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
package/src/components/index.ts
CHANGED
|
@@ -87,6 +87,7 @@ import { mbgAceEditorModule } from './mbg-ace-editor'
|
|
|
87
87
|
import { mbgImageUploadCropModule } from './mbg-image-upload-crop'
|
|
88
88
|
import { mbgStoreGoalModule } from './mbg-store-goal'
|
|
89
89
|
import { mbgStatusLabelModule } from './mbg-status-label'
|
|
90
|
+
import { mbgAverageCustomerTimeModule } from './mbg-average-customer-time'
|
|
90
91
|
|
|
91
92
|
if (!window['$']) {
|
|
92
93
|
window['$'] = $
|
|
@@ -155,6 +156,7 @@ const mbgComponentsModule = angular
|
|
|
155
156
|
mbgAceEditorModule,
|
|
156
157
|
mbgStoreGoalModule,
|
|
157
158
|
mbgStatusLabelModule,
|
|
159
|
+
mbgAverageCustomerTimeModule,
|
|
158
160
|
])
|
|
159
161
|
.config(appConfig)
|
|
160
162
|
.service('mbgAlert', MbgAlert)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as angular from 'angular'
|
|
2
|
+
import { mbgAverageCustomerTime } from './mbg-average-customer-time'
|
|
3
|
+
|
|
4
|
+
const mbgAverageCustomerTimeModule = angular
|
|
5
|
+
.module('mbg.components.mbgAverageCustomerTime', [])
|
|
6
|
+
.component('mbgAverageCustomerTime', mbgAverageCustomerTime).name
|
|
7
|
+
|
|
8
|
+
export { mbgAverageCustomerTimeModule }
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
.store-goal-wrapper {
|
|
2
|
+
|
|
3
|
+
.swiper {
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.swiper-wrapper {
|
|
10
|
+
display: flex;
|
|
11
|
+
transition: transform 0.3s ease;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.swiper-slide {
|
|
15
|
+
width: 100%;
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.swiper-slide-active {
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
align-items: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.swiper-pagination {
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: 100px;
|
|
32
|
+
left: 54%;
|
|
33
|
+
transform: translateX(-50%);
|
|
34
|
+
display: flex;
|
|
35
|
+
gap: 5px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.swiper-pagination-bullet {
|
|
39
|
+
width: 10px;
|
|
40
|
+
height: 10px;
|
|
41
|
+
background-color: #606A90;
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
opacity: 0.5;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.swiper-pagination-bullet-active {
|
|
47
|
+
background-color: #0EBCBD;
|
|
48
|
+
opacity: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.active-index {
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: end;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
margin-top: -17px;
|
|
56
|
+
color: var(--titleColor);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
.line-goal {
|
|
61
|
+
width: 100%;
|
|
62
|
+
background: #737373;
|
|
63
|
+
height: 1px;
|
|
64
|
+
opacity: 0.3;
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.dashboard-wrapper {
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
align-items: center;
|
|
73
|
+
height: 100%;
|
|
74
|
+
width: 100%;
|
|
75
|
+
position: relative;
|
|
76
|
+
left: -22px;
|
|
77
|
+
|
|
78
|
+
.dashboard-estimated {
|
|
79
|
+
|
|
80
|
+
position: relative;
|
|
81
|
+
left: 52px;
|
|
82
|
+
top: 10px;
|
|
83
|
+
height: 115px;
|
|
84
|
+
font-size: 14px;
|
|
85
|
+
color: #5f5b5b;
|
|
86
|
+
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.dashboard-estimated-store {
|
|
90
|
+
|
|
91
|
+
position: relative;
|
|
92
|
+
top: 18px;
|
|
93
|
+
left: 38px;
|
|
94
|
+
height: 115px;
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
color: #5f5b5b;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.chart-container {
|
|
101
|
+
display: flex;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
align-items: center;
|
|
104
|
+
width: 300px;
|
|
105
|
+
height: auto;
|
|
106
|
+
position: relative;
|
|
107
|
+
left: 10%;
|
|
108
|
+
bottom: 195px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.opacity-dash-goal {
|
|
112
|
+
opacity: 0.5;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.goal-target {
|
|
116
|
+
position: relative;
|
|
117
|
+
top: 180px;
|
|
118
|
+
font-size: 14px;
|
|
119
|
+
color: #5f5b5b;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.estimate-goal {
|
|
123
|
+
font-size: 14px;
|
|
124
|
+
color: #5f5b5b;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.estimate-goal-store {
|
|
128
|
+
font-size: 14px;
|
|
129
|
+
color: #5f5b5b;
|
|
130
|
+
|
|
131
|
+
i {
|
|
132
|
+
color: #0EBCBD;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.tooltip-inner {
|
|
136
|
+
width: 250px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
.tooltip-chart-panel {
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-direction: column;
|
|
143
|
+
position: relative;
|
|
144
|
+
background: #0EBCBD !important;
|
|
145
|
+
font-weight: bold;
|
|
146
|
+
color: #FFFFFF;
|
|
147
|
+
width: 100%;
|
|
148
|
+
height: 100%;
|
|
149
|
+
margin-right: 200px;
|
|
150
|
+
border-radius: 10px;
|
|
151
|
+
opacity: 1.0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
}
|
|
155
|
+
.lock-permition{
|
|
156
|
+
|
|
157
|
+
.tooltip-inner {
|
|
158
|
+
background: #0EBCBD !important;
|
|
159
|
+
color: #000000 !important;
|
|
160
|
+
width: 300px;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.goal-day {
|
|
165
|
+
display: flex;
|
|
166
|
+
justify-content: space-between;
|
|
167
|
+
align-items: end;
|
|
168
|
+
position: relative;
|
|
169
|
+
top: 170px;
|
|
170
|
+
font-size: 16px;
|
|
171
|
+
color: #5f5b5b;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.description-container-dash {
|
|
175
|
+
flex-grow: 1;
|
|
176
|
+
color: var(--titleColor);
|
|
177
|
+
display: flex;
|
|
178
|
+
justify-content: space-between;
|
|
179
|
+
width: 100%;
|
|
180
|
+
margin-top: 16px;
|
|
181
|
+
font-weight: 600;
|
|
182
|
+
font-size: 14px;
|
|
183
|
+
|
|
184
|
+
.active-index-slide{
|
|
185
|
+
position: relative;
|
|
186
|
+
top: -11px;
|
|
187
|
+
left: 95px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.mbg-h-c-tone-s-icon-dash {
|
|
191
|
+
margin-top: -10px;
|
|
192
|
+
transition: opacity 500ms ease;
|
|
193
|
+
opacity: 0.9;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.lock-dash-store {
|
|
197
|
+
position: relative;
|
|
198
|
+
right: -20px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.show-tooltip {
|
|
202
|
+
font-size: 20px;
|
|
203
|
+
color: #5f5b5b;
|
|
204
|
+
z-index: 9999;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@keyframes blink {
|
|
209
|
+
0% {
|
|
210
|
+
opacity: 1;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
50% {
|
|
214
|
+
opacity: 0;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
100% {
|
|
218
|
+
opacity: 1;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.description-dash {
|
|
223
|
+
font-size: 20px;
|
|
224
|
+
color: #5f5b5b;
|
|
225
|
+
|
|
226
|
+
i {
|
|
227
|
+
animation: blink 1s infinite;
|
|
228
|
+
color: #ff8c00;
|
|
229
|
+
position: relative;
|
|
230
|
+
z-index: 9999;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.tooltip-inner {
|
|
234
|
+
background: #ff8c00 !important;
|
|
235
|
+
color: #000000 !important;
|
|
236
|
+
width: 300px;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
@media screen and (max-width: 1920px){
|
|
241
|
+
.description-container-dash{
|
|
242
|
+
.active-index-slide {
|
|
243
|
+
left: 140px;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
@media screen and (max-width: 1728px){
|
|
249
|
+
.description-container-dash{
|
|
250
|
+
.active-index-slide {
|
|
251
|
+
left: 108px;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@media screen and (max-width: 1536px){
|
|
257
|
+
.description-container-dash{
|
|
258
|
+
.active-index-slide {
|
|
259
|
+
left: 70px;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
@media screen and (max-width: 1440px){
|
|
264
|
+
.description-container-dash{
|
|
265
|
+
.active-index-slide {
|
|
266
|
+
left: 58px;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
@media screen and (max-width: 1366px){
|
|
272
|
+
.description-container-dash{
|
|
273
|
+
.active-index-slide {
|
|
274
|
+
left: 125px;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
@media screen and (max-width: 1024px){
|
|
280
|
+
.description-container-dash{
|
|
281
|
+
.active-index-slide {
|
|
282
|
+
left: 44px;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.hide-goal {
|
|
290
|
+
display: flex;
|
|
291
|
+
justify-content: center;
|
|
292
|
+
align-items: center;
|
|
293
|
+
width: 100%;
|
|
294
|
+
height: 100%;
|
|
295
|
+
font-size: 14px;
|
|
296
|
+
color: #5f5b5b;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.state-goal {
|
|
300
|
+
cursor: pointer;
|
|
301
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import './mbg-average-customer-time.scss'
|
|
2
|
+
import template from './mbg-average-customer-time.html'
|
|
3
|
+
|
|
4
|
+
class MbgAverageCustomerTimeController {
|
|
5
|
+
constructor(
|
|
6
|
+
public $scope,
|
|
7
|
+
public $element,
|
|
8
|
+
public $attrs,
|
|
9
|
+
public $timeout,
|
|
10
|
+
public $filter,
|
|
11
|
+
public $state,
|
|
12
|
+
) {}
|
|
13
|
+
|
|
14
|
+
async $onInit() {}
|
|
15
|
+
}
|
|
16
|
+
MbgAverageCustomerTimeController['$inject'] = [
|
|
17
|
+
'$scope',
|
|
18
|
+
'$element',
|
|
19
|
+
'$attrs',
|
|
20
|
+
'$timeout',
|
|
21
|
+
'$filter',
|
|
22
|
+
'$state',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
const mbgAverageCustomerTime = {
|
|
26
|
+
bindings: {},
|
|
27
|
+
template,
|
|
28
|
+
controller: MbgAverageCustomerTimeController,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { mbgAverageCustomerTime }
|
|
@@ -7,7 +7,6 @@ import * as Exporting from 'highcharts/modules/exporting.js'
|
|
|
7
7
|
import * as ExportData from 'highcharts/modules/export-data.js'
|
|
8
8
|
import * as Accessibility from 'highcharts/modules/accessibility.js'
|
|
9
9
|
import Swiper from 'swiper'
|
|
10
|
-
import { Pagination } from 'swiper'
|
|
11
10
|
|
|
12
11
|
// Inicialize os módulos
|
|
13
12
|
HighchartsMore(Highcharts)
|
|
@@ -59,7 +58,6 @@ class MbgStoreGoalController {
|
|
|
59
58
|
|
|
60
59
|
configSwiperSlides() {
|
|
61
60
|
const swiper = new Swiper('.swiper', {
|
|
62
|
-
modules: [Pagination],
|
|
63
61
|
speed: 1000,
|
|
64
62
|
autoplay: {
|
|
65
63
|
delay: 20000,
|
|
@@ -68,7 +66,6 @@ class MbgStoreGoalController {
|
|
|
68
66
|
pagination: {
|
|
69
67
|
el: '.swiper-pagination',
|
|
70
68
|
progressbarOpposite: true,
|
|
71
|
-
allowTouchMove: false,
|
|
72
69
|
clickable: true,
|
|
73
70
|
bulletClass: 'swiper-pagination-bullet',
|
|
74
71
|
bulletActiveClass: 'swiper-pagination-bullet-active',
|
package/src/index.html
CHANGED
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<div class="col-md-12"> -->
|
|
162
162
|
<div class=""
|
|
163
163
|
style="height: 260px">
|
|
164
|
-
<mbg-
|
|
164
|
+
<mbg-average-customer-time></mbg-average-customer-time>
|
|
165
165
|
|
|
166
166
|
<!-- <mbg-text-editor ng-model="editorJodit"
|
|
167
167
|
ng-if="testeeditorif"
|