@kigi/components 1.42.0 → 1.43.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kigi/components",
3
- "version": "1.42.0",
3
+ "version": "1.43.0-alpha.1",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -88,6 +88,7 @@ import { mbgImageUploadCropModule } from './mbg-image-upload-crop'
88
88
  import { mbgStoreGoalModule } from './mbg-store-goal'
89
89
  import { mbgStatusLabelModule } from './mbg-status-label'
90
90
  import { mbgAverageCustomerTimeModule } from './mbg-average-customer-time'
91
+ import { mbgTopSellingsProductsModule } from './mbg-top-sellings-products'
91
92
 
92
93
  if (!window['$']) {
93
94
  window['$'] = $
@@ -157,6 +158,7 @@ const mbgComponentsModule = angular
157
158
  mbgStoreGoalModule,
158
159
  mbgStatusLabelModule,
159
160
  mbgAverageCustomerTimeModule,
161
+ mbgTopSellingsProductsModule,
160
162
  ])
161
163
  .config(appConfig)
162
164
  .service('mbgAlert', MbgAlert)
@@ -0,0 +1,8 @@
1
+ import * as angular from 'angular'
2
+ import { mbgTopSellingsProducts } from './mbg-top-sellings-products'
3
+
4
+ const mbgTopSellingsProductsModule = angular
5
+ .module('mbg.components.mbgTopSellingsProducts', [])
6
+ .component('mbgTopSellingsProducts', mbgTopSellingsProducts).name
7
+
8
+ export { mbgTopSellingsProductsModule }
@@ -0,0 +1,27 @@
1
+ <div class="average-customer-time-wrapper"
2
+ ng-class="{'opacity-dash': $ctrl.isBlockValuesDashboarReturnCustomer}">
3
+ <figure class="highcharts-figure">
4
+ <div class="description-container-dash"
5
+ ng-show="$ctrl.percentagesReturnCustomerTime.length">
6
+ <div class="mbg-h-c-tone-s-icon-dash"
7
+ ng-click="$ctrl.toggleShowValuesReturnCustomer(false)">
8
+ <i class="fa fa-lock lock-dash-store"
9
+ aria-hidden="true"
10
+ uib-tooltip="Sem permissão para visualizar"
11
+ tooltip-placement="left"
12
+ ng-if="$ctrl.isBlockValuesDashboarReturnCustomer"></i>
13
+ <i ng-if="$ctrl.hideValue && !$ctrl.isBlockValuesDashboarReturnCustomer"
14
+ disable-animate
15
+ class="far fa-eye eye-board-target"></i>
16
+ <i ng-if="!$ctrl.hideValue && !$ctrl.isBlockValuesDashboarReturnCustomer"
17
+ disable-animate
18
+ class="far fa-eye-slash eye-board-target"></i>
19
+ </div>
20
+ </div>
21
+ <div class="chart-container"
22
+ id="container">
23
+ </div>
24
+ <div class="line-pay"
25
+ id="line"></div>
26
+ </figure>
27
+ </div>
@@ -0,0 +1,208 @@
1
+ .average-customer-time-wrapper {
2
+ .opacity-dash{
3
+ opacity: 0.6;
4
+ }
5
+ }
6
+
7
+ .highcharts-figure {
8
+ .custom-title-container{
9
+ .custom-title{
10
+ position: relative;
11
+ }
12
+ }
13
+
14
+ .line-pay {
15
+ background: #737373;
16
+ height: 1px;
17
+ opacity: 0.3;
18
+ position: relative;
19
+ top: -357px;
20
+ left: 34px;
21
+ width: 100%;
22
+ }
23
+
24
+ #container {
25
+ border-radius: 10px;
26
+ background: #FFF;
27
+ box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.05);
28
+ width: 100%;
29
+ margin-left: 19px;
30
+ display: flex;
31
+ justify-content: center;
32
+ align-items: center;
33
+ }
34
+
35
+ .description-container-dash {
36
+ color: var(--titleColor);
37
+ display: flex;
38
+ justify-content: end;
39
+ position: relative;
40
+ top: 22px;
41
+ z-index: 9999;
42
+
43
+ .mbg-h-c-tone-s-icon-dash {
44
+ margin-top: -10px;
45
+ transition: opacity 500ms ease;
46
+ opacity: 0.9;
47
+ }
48
+ }
49
+ }
50
+
51
+ @media screen and (max-width: 1920px){
52
+ .highcharts-figure {
53
+ .custom-title-container{
54
+ .custom-title{
55
+ position: relative;
56
+ left: 4px;
57
+ }
58
+ }
59
+ .line-pay {
60
+ position: relative;
61
+ left: 30px;
62
+ width: 480px;
63
+ }
64
+ #container {
65
+ border-radius: 10px;
66
+ background: #FFF;
67
+ box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.05);
68
+ width: 504px;
69
+ margin-left: 19px;
70
+ }
71
+
72
+ }
73
+
74
+ }
75
+
76
+ @media screen and (max-width: 1728px){
77
+ .highcharts-figure {
78
+ .line-pay {
79
+ position: relative;
80
+ left: 30px;
81
+ width: 418px;
82
+ }
83
+ #container {
84
+ border-radius: 10px;
85
+ background: #FFF;
86
+ box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.05);
87
+ width: 444px;
88
+ padding: inherit;
89
+ }
90
+ }
91
+ }
92
+
93
+ @media screen and (max-width: 1536px){
94
+ .highcharts-figure {
95
+ .custom-title-container{
96
+ .custom-title{
97
+ font-size: 17px;
98
+ }
99
+ }
100
+ .line-pay {
101
+ position: relative;
102
+ left: 30px;
103
+ width: 366px;
104
+ }
105
+ #container {
106
+ border-radius: 10px;
107
+ background: #FFF;
108
+ box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.05);
109
+ width: 390px;
110
+ }
111
+ }
112
+ }
113
+
114
+ @media screen and (max-width: 1440px){
115
+ .highcharts-figure {
116
+ .custom-title-container{
117
+ .custom-title{
118
+ font-size: 16px;
119
+ width: 100vw;
120
+ }
121
+ }
122
+
123
+ .line-pay {
124
+ position: relative;
125
+ left: 30px;
126
+ width: 332px;
127
+ }
128
+ #container {
129
+ border-radius: 10px;
130
+ background: #FFF;
131
+ box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.05);
132
+ width: 358px;
133
+
134
+ }
135
+ }
136
+ }
137
+
138
+ @media screen and (max-width: 1368px){
139
+ .highcharts-figure {
140
+ .custom-title-container{
141
+ .custom-title{
142
+ font-size: 20px;
143
+ width: 100vw;
144
+ }
145
+ }
146
+
147
+ .line-pay {
148
+ position: relative;
149
+ left: 30px;
150
+ width: 450px;
151
+ }
152
+ #container {
153
+ border-radius: 10px;
154
+ background: #FFF;
155
+ box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.05);
156
+ width: 474px;
157
+
158
+ }
159
+ }
160
+ }
161
+
162
+ @media screen and (max-width: 1366px){
163
+ .highcharts-figure {
164
+ .custom-title-container{
165
+ .custom-title{
166
+ font-size: 20px;
167
+ width: 100vw;
168
+ }
169
+ }
170
+
171
+ .line-pay {
172
+ position: relative;
173
+ left: 30px;
174
+ width: 450px;
175
+ }
176
+ #container {
177
+ border-radius: 10px;
178
+ background: #FFF;
179
+ box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.05);
180
+ width: 474px;
181
+
182
+ }
183
+ }
184
+ }
185
+
186
+ @media screen and (max-width: 1024px){
187
+ .highcharts-figure {
188
+ .custom-title-container{
189
+ .custom-title{
190
+ font-size: 15px;
191
+ width: 100vw;
192
+ }
193
+ }
194
+
195
+ .line-pay {
196
+ position: relative;
197
+ left: 30px;
198
+ width: 306px;
199
+ }
200
+ #container {
201
+ border-radius: 10px;
202
+ background: #FFF;
203
+ box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.05);
204
+ width: 330px;
205
+
206
+ }
207
+ }
208
+ }
@@ -0,0 +1,31 @@
1
+ import './mbg-top-sellings-products.scss'
2
+ import template from './mbg-top-sellings-products.html'
3
+
4
+ class MbgTopSellingsProducts {
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
+ MbgTopSellingsProducts['$inject'] = [
17
+ '$scope',
18
+ '$element',
19
+ '$attrs',
20
+ '$timeout',
21
+ '$filter',
22
+ '$state',
23
+ ]
24
+
25
+ const mbgTopSellingsProducts = {
26
+ bindings: {},
27
+ template,
28
+ controller: MbgTopSellingsProducts,
29
+ }
30
+
31
+ export { mbgTopSellingsProducts }