@sgcloud-sgsistemas/base 1.0.17 → 1.0.18
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/side-menu/components/hotbar/hotbar.html +1 -1
- package/src/modules/side-menu/components/hotbar/hotbar.scss +7 -6
- package/src/modules/side-menu/services/sidemenu-service.ts +1 -1
- package/src/modules/topbar/components/notifications/notifications.controller.js +5 -5
- package/src/modules/topbar/components/notifications/notifications.template.html +3 -1
- package/src/modules/topbar/index.js +2 -1
- package/src/modules/topbar/styles/topbar.style.scss +3 -2
- package/src/modules/topbar/templates/topbar.template.html +2 -1
package/package.json
CHANGED
|
@@ -46,16 +46,21 @@ $subModulePadding: 10px;
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
hotbar {
|
|
49
|
-
@include
|
|
49
|
+
@include delayOnBack(width);
|
|
50
50
|
z-index: 100;
|
|
51
51
|
position: relative;
|
|
52
52
|
min-width: 100%;
|
|
53
|
-
width:
|
|
53
|
+
width: 0px;
|
|
54
54
|
height: 100%;
|
|
55
55
|
display: block;
|
|
56
56
|
@include block();
|
|
57
57
|
color: var(--color2);
|
|
58
58
|
|
|
59
|
+
&:has(:hover,.opened) {
|
|
60
|
+
@include delayOnBack(width);
|
|
61
|
+
width: 200px;
|
|
62
|
+
}
|
|
63
|
+
|
|
59
64
|
@mixin onDisplay() {
|
|
60
65
|
>modules {
|
|
61
66
|
>module {
|
|
@@ -200,10 +205,6 @@ hotbar {
|
|
|
200
205
|
@include onDisplay();
|
|
201
206
|
}
|
|
202
207
|
|
|
203
|
-
&.opened,&:hover{
|
|
204
|
-
min-width: 200px;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
208
|
&.opened {
|
|
208
209
|
@include onDisplay();
|
|
209
210
|
|
|
@@ -37,7 +37,7 @@ const controller = ($scope, $timeout, baseNotificationService, $sce) => {
|
|
|
37
37
|
const onClickOutside = () => {
|
|
38
38
|
$timeout(() => {
|
|
39
39
|
vm.notificationOpen = false
|
|
40
|
-
$timeout(() => document.removeEventListener('
|
|
40
|
+
$timeout(() => document.removeEventListener('click', onClickOutside))
|
|
41
41
|
})
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -49,9 +49,9 @@ const controller = ($scope, $timeout, baseNotificationService, $sce) => {
|
|
|
49
49
|
vm.notificationOpen = !vm.notificationOpen
|
|
50
50
|
if (vm.notificationOpen) {
|
|
51
51
|
baseNotificationService.getNotifications()
|
|
52
|
-
$timeout(() => document.addEventListener('
|
|
52
|
+
$timeout(() => document.addEventListener('click', onClickOutside))
|
|
53
53
|
} else {
|
|
54
|
-
$timeout(() => document.removeEventListener('
|
|
54
|
+
$timeout(() => document.removeEventListener('click', onClickOutside))
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -74,7 +74,7 @@ const controller = ($scope, $timeout, baseNotificationService, $sce) => {
|
|
|
74
74
|
baseNotificationService.removeNotification(notification.id)
|
|
75
75
|
$timeout(() => {
|
|
76
76
|
vm.notifications.read = vm.notifications.read.filter((not) => not.id != notification.id)
|
|
77
|
-
vm.notifications.countRead = vm.notifications.countRead - 1
|
|
77
|
+
vm.notifications.countRead = vm.notifications.countRead - 1
|
|
78
78
|
if (vm.notifications.read.length == 0) {
|
|
79
79
|
baseNotificationService.getNotifications()
|
|
80
80
|
}
|
|
@@ -85,7 +85,7 @@ const controller = ($scope, $timeout, baseNotificationService, $sce) => {
|
|
|
85
85
|
baseNotificationService.markRead(notification.id)
|
|
86
86
|
$timeout(() => {
|
|
87
87
|
vm.notifications.unread = vm.notifications.unread.filter((not) => not.id != notification.id)
|
|
88
|
-
vm.notifications.countUnread = vm.notifications.countUnread - 1
|
|
88
|
+
vm.notifications.countUnread = vm.notifications.countUnread - 1
|
|
89
89
|
baseNotificationService.seeMoreRead(0, vm.notifications.pageSizeRead)
|
|
90
90
|
if (vm.notifications.unread.length == 0) {
|
|
91
91
|
baseNotificationService.getNotifications()
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
<div class="mb-tn-number"
|
|
9
9
|
tabindex="-1"
|
|
10
10
|
ng-style="{'width': getWidth(total), 'right': getRight(total)}"
|
|
11
|
-
ng-show="total > 0"
|
|
11
|
+
ng-show="total > 0"
|
|
12
|
+
ng-click="toogle()">
|
|
12
13
|
{{ total }}
|
|
13
14
|
</div>
|
|
14
15
|
<div class="mb-tn-wrapper"
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
tabindex="-1"
|
|
48
49
|
ng-show="notifications && (notifications.read.length > 0 || notifications.unread.length > 0)">
|
|
49
50
|
<div class="row" tabindex="-1">
|
|
51
|
+
|
|
50
52
|
<div class="col-md-12"
|
|
51
53
|
tabindex="-1"
|
|
52
54
|
style="display: flex;
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
display: flex;
|
|
116
116
|
align-items: center;
|
|
117
117
|
justify-items: center;
|
|
118
|
-
|
|
118
|
+
|
|
119
119
|
span{
|
|
120
120
|
color: var(--font1);
|
|
121
121
|
font-size: 22px;
|
|
@@ -182,10 +182,11 @@
|
|
|
182
182
|
font-size: 25px;
|
|
183
183
|
position: relative;
|
|
184
184
|
text-align: center;
|
|
185
|
-
|
|
185
|
+
cursor: unset;
|
|
186
186
|
i {
|
|
187
187
|
color: #8034ad;
|
|
188
188
|
@include themify(color, color1);
|
|
189
|
+
cursor: pointer;
|
|
189
190
|
}
|
|
190
191
|
.mb-tn-number {
|
|
191
192
|
position: absolute;
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
<div class="mb-t-container"
|
|
7
7
|
tabindex="-1">
|
|
8
8
|
<div class="mb-t-buguer-btn-container"
|
|
9
|
-
ng-click="vm.openMenu()"
|
|
9
|
+
ng-click="vm.openMenu()"
|
|
10
|
+
ng-hide="vm.hideSidebarButtom">
|
|
10
11
|
<i class="fas fa-bars"></i>
|
|
11
12
|
</div>
|
|
12
13
|
<a ng-if="vm.config.logoActionType === 'state'" ui-sref="{{vm.config.logoAction}}"
|