@sgcloud-sgsistemas/base 1.0.8 → 1.0.10
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/modules/pageloader/styles/pageloader.style.scss +1 -1
- package/src/modules/side-menu/components/btn/btn.style.scss +1 -1
- package/src/modules/side-menu/components/category/category.style.scss +2 -2
- package/src/modules/side-menu/components/sub-category/sub-category.style.scss +1 -1
- package/src/modules/themes/themes.style.scss +52 -13
- package/src/modules/topbar/components/notifications/notifications.styles.scss +11 -11
- package/src/modules/topbar/components/notifications/notifications.template.html +1 -1
- package/src/modules/topbar/components/search/components/input/input.style.scss +2 -2
- package/src/modules/topbar/components/search/components/result-line/result-line.style.scss +1 -1
- package/src/modules/topbar/components/search/styles/search.style.scss +1 -1
- package/src/modules/topbar/components/user/components/btn/btn.style.scss +1 -1
- package/src/modules/topbar/components/user/controllers/user.controller.js +30 -3
- package/src/modules/topbar/components/user/services/user.service.js +5 -1
- package/src/modules/topbar/components/user/styles/user.style.scss +7 -7
- package/src/modules/topbar/styles/topbar.style.scss +1 -1
package/package.json
CHANGED
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
|
|
37
37
|
> .mbg-smc-detail-path {
|
|
38
38
|
fill: #ccc;
|
|
39
|
-
@include themify(fill,
|
|
39
|
+
@include themify(fill, font3);
|
|
40
40
|
stroke: #ccc;
|
|
41
|
-
@include themify(stroke,
|
|
41
|
+
@include themify(stroke, font3);
|
|
42
42
|
stroke-miterlimit: 10;
|
|
43
43
|
stroke-width: 2px;
|
|
44
44
|
}
|
|
@@ -23,7 +23,10 @@ $themes: (
|
|
|
23
23
|
quickMenuBtnBackground: var(--contrast),
|
|
24
24
|
quickMenuBackground: var(--quickMenuBackground),
|
|
25
25
|
backgroundSideMenu: var(--bgColor),
|
|
26
|
-
backgroundTopBar: var(--backgroundTopBar)
|
|
26
|
+
backgroundTopBar: var(--backgroundTopBar),
|
|
27
|
+
font1: var(--font1),
|
|
28
|
+
font2: var(--font2),
|
|
29
|
+
font3: var(--font3)
|
|
27
30
|
),
|
|
28
31
|
theme1: (
|
|
29
32
|
color1: #0747a6,
|
|
@@ -37,7 +40,10 @@ $themes: (
|
|
|
37
40
|
quickMenuBtnBackground: #0747a6,
|
|
38
41
|
quickMenuBackground: #063c8e,
|
|
39
42
|
backgroundSideMenu: #fcfcfc,
|
|
40
|
-
backgroundTopBar: #fff
|
|
43
|
+
backgroundTopBar: #fff,
|
|
44
|
+
font1: var(--font1),
|
|
45
|
+
font2: var(--font2),
|
|
46
|
+
font3: var(--font3)
|
|
41
47
|
),
|
|
42
48
|
theme2: (
|
|
43
49
|
color1: #e8c553,
|
|
@@ -51,7 +57,10 @@ $themes: (
|
|
|
51
57
|
quickMenuBtnBackground: #e8c553,
|
|
52
58
|
quickMenuBackground: #fff7e1,
|
|
53
59
|
backgroundSideMenu: #fcfcfc,
|
|
54
|
-
backgroundTopBar: #fff
|
|
60
|
+
backgroundTopBar: #fff,
|
|
61
|
+
font1: var(--font1),
|
|
62
|
+
font2: var(--font2),
|
|
63
|
+
font3: var(--font3)
|
|
55
64
|
),
|
|
56
65
|
theme3: (
|
|
57
66
|
color1: #02ce69,
|
|
@@ -65,7 +74,10 @@ $themes: (
|
|
|
65
74
|
quickMenuBtnBackground: #02ce69,
|
|
66
75
|
quickMenuBackground: #03914b,
|
|
67
76
|
backgroundSideMenu: #fcfcfc,
|
|
68
|
-
backgroundTopBar: #fff
|
|
77
|
+
backgroundTopBar: #fff,
|
|
78
|
+
font1: var(--font1),
|
|
79
|
+
font2: var(--font2),
|
|
80
|
+
font3: var(--font3)
|
|
69
81
|
),
|
|
70
82
|
theme4: (
|
|
71
83
|
color1: #c73444,
|
|
@@ -79,7 +91,10 @@ $themes: (
|
|
|
79
91
|
quickMenuBtnBackground: #c73444,
|
|
80
92
|
quickMenuBackground: #972733,
|
|
81
93
|
backgroundSideMenu: #fcfcfc,
|
|
82
|
-
backgroundTopBar: #fff
|
|
94
|
+
backgroundTopBar: #fff,
|
|
95
|
+
font1: var(--font1),
|
|
96
|
+
font2: var(--font2),
|
|
97
|
+
font3: var(--font3)
|
|
83
98
|
),
|
|
84
99
|
theme5: (
|
|
85
100
|
color1: #540095,
|
|
@@ -93,7 +108,10 @@ $themes: (
|
|
|
93
108
|
quickMenuBtnBackground: #540095,
|
|
94
109
|
quickMenuBackground: #37085c,
|
|
95
110
|
backgroundSideMenu: #fcfcfc,
|
|
96
|
-
backgroundTopBar: #fff
|
|
111
|
+
backgroundTopBar: #fff,
|
|
112
|
+
font1: var(--font1),
|
|
113
|
+
font2: var(--font2),
|
|
114
|
+
font3: var(--font3)
|
|
97
115
|
),
|
|
98
116
|
theme6: (
|
|
99
117
|
color1: #de6d28,
|
|
@@ -107,7 +125,10 @@ $themes: (
|
|
|
107
125
|
quickMenuBtnBackground: #de6d28,
|
|
108
126
|
quickMenuBackground: #a04e1d,
|
|
109
127
|
backgroundSideMenu: #fcfcfc,
|
|
110
|
-
backgroundTopBar: #fff
|
|
128
|
+
backgroundTopBar: #fff,
|
|
129
|
+
font1: var(--font1),
|
|
130
|
+
font2: var(--font2),
|
|
131
|
+
font3: var(--font3)
|
|
111
132
|
),
|
|
112
133
|
theme7: (
|
|
113
134
|
color1: #ea4c89,
|
|
@@ -121,7 +142,10 @@ $themes: (
|
|
|
121
142
|
quickMenuBtnBackground: #ea4c89,
|
|
122
143
|
quickMenuBackground: #a24267,
|
|
123
144
|
backgroundSideMenu: #fcfcfc,
|
|
124
|
-
backgroundTopBar: #fff
|
|
145
|
+
backgroundTopBar: #fff,
|
|
146
|
+
font1: var(--font1),
|
|
147
|
+
font2: var(--font2),
|
|
148
|
+
font3: var(--font3)
|
|
125
149
|
),
|
|
126
150
|
theme8: (
|
|
127
151
|
color1: #000000,
|
|
@@ -135,7 +159,10 @@ $themes: (
|
|
|
135
159
|
quickMenuBtnBackground: #000000,
|
|
136
160
|
quickMenuBackground: #3f3f3f,
|
|
137
161
|
backgroundSideMenu: #fcfcfc,
|
|
138
|
-
backgroundTopBar: #fff
|
|
162
|
+
backgroundTopBar: #fff,
|
|
163
|
+
font1: var(--font1),
|
|
164
|
+
font2: var(--font2),
|
|
165
|
+
font3: var(--font3)
|
|
139
166
|
),
|
|
140
167
|
theme9: (
|
|
141
168
|
color1: #3acbc7,
|
|
@@ -149,7 +176,10 @@ $themes: (
|
|
|
149
176
|
quickMenuBtnBackground: #3acbc7,
|
|
150
177
|
quickMenuBackground: #25a5a1,
|
|
151
178
|
backgroundSideMenu: #fcfcfc,
|
|
152
|
-
backgroundTopBar: #fff
|
|
179
|
+
backgroundTopBar: #fff,
|
|
180
|
+
font1: var(--font1),
|
|
181
|
+
font2: var(--font2),
|
|
182
|
+
font3: var(--font3)
|
|
153
183
|
),
|
|
154
184
|
/* Tema da Mobiage */
|
|
155
185
|
theme10: (
|
|
@@ -164,7 +194,10 @@ $themes: (
|
|
|
164
194
|
quickMenuBtnBackground: #635596,
|
|
165
195
|
quickMenuBackground: #493E6E,
|
|
166
196
|
backgroundSideMenu: #fcfcfc,
|
|
167
|
-
backgroundTopBar: #fff
|
|
197
|
+
backgroundTopBar: #fff,
|
|
198
|
+
font1: var(--font1),
|
|
199
|
+
font2: var(--font2),
|
|
200
|
+
font3: var(--font3)
|
|
168
201
|
),
|
|
169
202
|
/* Tema do Finance */
|
|
170
203
|
theme11: (
|
|
@@ -179,7 +212,10 @@ $themes: (
|
|
|
179
212
|
quickMenuBtnBackground: #00c74d,
|
|
180
213
|
quickMenuBackground: #009338,
|
|
181
214
|
backgroundSideMenu: #f6f6f6,
|
|
182
|
-
backgroundTopBar: #f6f6f6
|
|
215
|
+
backgroundTopBar: #f6f6f6,
|
|
216
|
+
font1: var(--font1),
|
|
217
|
+
font2: var(--font2),
|
|
218
|
+
font3: var(--font3)
|
|
183
219
|
),
|
|
184
220
|
/* Tema Kigi */
|
|
185
221
|
theme12: (
|
|
@@ -194,7 +230,10 @@ $themes: (
|
|
|
194
230
|
quickMenuBtnBackground: #E81756,
|
|
195
231
|
quickMenuBackground: #ba1546,
|
|
196
232
|
backgroundSideMenu: #fcfcfc,
|
|
197
|
-
backgroundTopBar: #fff
|
|
233
|
+
backgroundTopBar: #fff,
|
|
234
|
+
font1: var(--font1),
|
|
235
|
+
font2: var(--font2),
|
|
236
|
+
font3: var(--font3)
|
|
198
237
|
)
|
|
199
238
|
);
|
|
200
239
|
|
|
@@ -11,7 +11,7 @@ mb-topbar-notifications {
|
|
|
11
11
|
|
|
12
12
|
.link {
|
|
13
13
|
border-bottom: none;
|
|
14
|
-
color: var(--
|
|
14
|
+
color: var(--font2);
|
|
15
15
|
font-size: 1.1rem;
|
|
16
16
|
margin-top: 0px;
|
|
17
17
|
&:hover {
|
|
@@ -36,7 +36,7 @@ mb-topbar-notifications {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.button-see-more {
|
|
39
|
-
color:
|
|
39
|
+
color: var(--font2);
|
|
40
40
|
width: 100%;
|
|
41
41
|
font-size: 14px;
|
|
42
42
|
text-align: center;
|
|
@@ -45,7 +45,7 @@ mb-topbar-notifications {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.button-see-more:hover {
|
|
48
|
-
color:
|
|
48
|
+
color: var(--font2);
|
|
49
49
|
font-weight: bold;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -125,13 +125,13 @@ mb-topbar-notifications {
|
|
|
125
125
|
* {
|
|
126
126
|
line-height: normal;
|
|
127
127
|
font-size: 11px;
|
|
128
|
-
color:
|
|
128
|
+
color: var(--font2);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
label {
|
|
132
132
|
text-align: left;
|
|
133
133
|
margin: 0;
|
|
134
|
-
color:
|
|
134
|
+
color: var(--font2);
|
|
135
135
|
font-weight: 100;
|
|
136
136
|
}
|
|
137
137
|
.notification-time {
|
|
@@ -162,7 +162,7 @@ mb-topbar-notifications {
|
|
|
162
162
|
font-size: 12px;
|
|
163
163
|
line-height: 1.4;
|
|
164
164
|
border-radius: 4px;
|
|
165
|
-
color:
|
|
165
|
+
color: var(--font2);
|
|
166
166
|
padding: 5px 8px;
|
|
167
167
|
cursor: pointer;
|
|
168
168
|
outline: none;
|
|
@@ -178,11 +178,11 @@ mb-topbar-notifications {
|
|
|
178
178
|
padding: 44px 0;
|
|
179
179
|
svg {
|
|
180
180
|
width: 84px;
|
|
181
|
-
fill:
|
|
181
|
+
fill: var(--font2);
|
|
182
182
|
}
|
|
183
183
|
label {
|
|
184
184
|
font-size: 14px;
|
|
185
|
-
color:
|
|
185
|
+
color: var(--font2);
|
|
186
186
|
padding: 0;
|
|
187
187
|
margin: 0;
|
|
188
188
|
}
|
|
@@ -244,7 +244,7 @@ mb-topbar-notifications {
|
|
|
244
244
|
}
|
|
245
245
|
.info-import {
|
|
246
246
|
span {
|
|
247
|
-
color:
|
|
247
|
+
color: var(--font2);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
}
|
|
@@ -275,12 +275,12 @@ mb-topbar-notifications {
|
|
|
275
275
|
|
|
276
276
|
.fas.fa-eye {
|
|
277
277
|
font-size: 18px;
|
|
278
|
-
color:
|
|
278
|
+
color: var(--font2);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
.fas.fa-times {
|
|
282
282
|
font-size: 18px;
|
|
283
|
-
color:
|
|
283
|
+
color: var(--font2);
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
.notification-bottom {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
width: 30px;
|
|
28
28
|
text-align: center;
|
|
29
29
|
color: #ccc;
|
|
30
|
-
@include themify(color,
|
|
30
|
+
@include themify(color, font3);
|
|
31
31
|
font-size: 16px;
|
|
32
32
|
|
|
33
33
|
&.mb-tsi-active {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
&::placeholder {
|
|
63
63
|
// color: #ccc;
|
|
64
64
|
// @include themify(color, neutral3);
|
|
65
|
-
color:
|
|
65
|
+
color: var(--font2);
|
|
66
66
|
font-weight: 500;
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SessionStorage } from "../../../../../helper/namespaces/sessionstorage";
|
|
2
|
-
|
|
2
|
+
import Swal from 'sweetalert2'
|
|
3
3
|
|
|
4
4
|
const controller = function ($scope, $timeout, mbUserService, $state) {
|
|
5
5
|
$scope.changeZIndex = false;
|
|
@@ -186,19 +186,46 @@ const controller = function ($scope, $timeout, mbUserService, $state) {
|
|
|
186
186
|
$scope.organizationSelected = index;
|
|
187
187
|
};
|
|
188
188
|
|
|
189
|
-
$scope.changeOrganization = () => {
|
|
189
|
+
$scope.changeOrganization = async () => {
|
|
190
190
|
if ($scope.organizationSelected !== undefined) {
|
|
191
191
|
if (!$scope.user.changeOrganizationAction) {
|
|
192
192
|
mbUserService.setUser(this.config);
|
|
193
193
|
$scope.user = mbUserService.getUser();
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
let result = (await mbUserService.validTime(
|
|
196
|
+
$scope.user.otherOrganizations[$scope.organizationSelected].organizationHierarchyCode ||
|
|
197
|
+
$scope.user.otherOrganizations[$scope.organizationSelected].hierarchyCode,
|
|
198
|
+
SessionStorage.getItem('user').login,
|
|
199
|
+
SessionStorage.getItem('user').token
|
|
200
|
+
)).data
|
|
201
|
+
if(!result.valid){
|
|
202
|
+
$scope.outOfHourAccess(result.nextAccess || 'Próximo acesso: nunca. Entre em contato com o superior.')
|
|
203
|
+
return
|
|
204
|
+
} else {
|
|
205
|
+
$scope.user.changeOrganizationAction($scope.user.otherOrganizations[$scope.organizationSelected]);
|
|
206
|
+
}
|
|
196
207
|
}
|
|
197
208
|
};
|
|
198
209
|
|
|
210
|
+
$scope.outOfHourAccess = (text) => {
|
|
211
|
+
Swal.fire({
|
|
212
|
+
title: 'Aviso',
|
|
213
|
+
text: text,
|
|
214
|
+
icon: 'warning',
|
|
215
|
+
showCancelButton: false,
|
|
216
|
+
reverseButtons: true,
|
|
217
|
+
confirmButtonColor: '#3085d6',
|
|
218
|
+
cancelButtonColor: '#d33',
|
|
219
|
+
cancelButtonText: 'Cancelar',
|
|
220
|
+
confirmButtonText: 'Ok'
|
|
221
|
+
}).then((result) => {
|
|
222
|
+
})
|
|
223
|
+
}
|
|
224
|
+
|
|
199
225
|
this.$onInit = () => {
|
|
200
226
|
mbUserService.setComponentCallback((user) => { $scope.user = user; });
|
|
201
227
|
mbUserService.setUser(this.config);
|
|
228
|
+
mbUserService.initAppUrl(SessionStorage.getItem('LoginConfiguration').appUrl);
|
|
202
229
|
$scope.user = mbUserService.getUser();
|
|
203
230
|
if (SessionStorage.getItem('currentCompany')) {
|
|
204
231
|
$scope.setCompanyInfo()
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
const service = function UserService() {
|
|
1
|
+
const service = function UserService($http) {
|
|
2
2
|
this.user = {};
|
|
3
|
+
this.initAppUrl = (appUrl) => { this.user.appUrl = appUrl; };
|
|
3
4
|
this.onUpdateUser = () => { };
|
|
4
5
|
this.userComponentCallback = () => { };
|
|
5
6
|
/* Usamos o object assign para que não seja substituido o objeto inteiro ao passar apenas algumas configurações */
|
|
@@ -9,6 +10,9 @@ const service = function UserService() {
|
|
|
9
10
|
};
|
|
10
11
|
this.getUser = () => this.user;
|
|
11
12
|
this.setComponentCallback = (fn) => { this.userComponentCallback = fn; };
|
|
13
|
+
this.validTime = (oi, login, token) => {
|
|
14
|
+
return $http.get(this.user.appUrl.concat(`/api/user-access-time/user-invitation/${oi}?gumgaToken=${token}`), {params:{login}})
|
|
15
|
+
}
|
|
12
16
|
};
|
|
13
17
|
|
|
14
18
|
export default service;
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
text-align: right;
|
|
568
568
|
color: #ccc;
|
|
569
569
|
|
|
570
|
-
@include themify(color,
|
|
570
|
+
@include themify(color, font3);
|
|
571
571
|
|
|
572
572
|
font-size: 12px;
|
|
573
573
|
font-weight: 400;
|
|
@@ -736,7 +736,7 @@
|
|
|
736
736
|
.mb-tu-menu-company-info-text {
|
|
737
737
|
color: #ccc;
|
|
738
738
|
|
|
739
|
-
@include themify(color,
|
|
739
|
+
@include themify(color, font2);
|
|
740
740
|
|
|
741
741
|
font-weight: 400;
|
|
742
742
|
font-size: 14px;
|
|
@@ -769,7 +769,7 @@
|
|
|
769
769
|
flex-direction: row;
|
|
770
770
|
color: #fff;
|
|
771
771
|
|
|
772
|
-
@include themify(color,
|
|
772
|
+
@include themify(color, font2);
|
|
773
773
|
|
|
774
774
|
cursor: pointer;
|
|
775
775
|
|
|
@@ -816,7 +816,7 @@
|
|
|
816
816
|
> .mb-tu-m-ca-t-text {
|
|
817
817
|
color: #ccc;
|
|
818
818
|
|
|
819
|
-
@include themify(color,
|
|
819
|
+
@include themify(color, font2);
|
|
820
820
|
|
|
821
821
|
font-weight: 700;
|
|
822
822
|
font-size: 16px;
|
|
@@ -833,11 +833,11 @@
|
|
|
833
833
|
> .mb-tu-m-ca-t-d-path {
|
|
834
834
|
fill: #ccc;
|
|
835
835
|
|
|
836
|
-
@include themify(fill,
|
|
836
|
+
@include themify(fill, font3);
|
|
837
837
|
|
|
838
838
|
stroke: #ccc;
|
|
839
839
|
|
|
840
|
-
@include themify(stroke,
|
|
840
|
+
@include themify(stroke, font3);
|
|
841
841
|
|
|
842
842
|
stroke-miterlimit: 10;
|
|
843
843
|
stroke-width: 2px;
|
|
@@ -888,7 +888,7 @@
|
|
|
888
888
|
transition: 200ms linear;
|
|
889
889
|
text-align: left;
|
|
890
890
|
|
|
891
|
-
@include themify(color,
|
|
891
|
+
@include themify(color, font2);
|
|
892
892
|
}
|
|
893
893
|
|
|
894
894
|
> .mb-tu-m-ca-company-confirm {
|