@sgcloud-sgsistemas/base 1.0.14 → 1.0.15

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": "@sgcloud-sgsistemas/base",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "Base para os sistemas da mobiage",
5
5
  "repository": {
6
6
  "type": "private",
@@ -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('dblclick', onClickOutside))
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('dblclick', onClickOutside))
52
+ $timeout(() => document.addEventListener('click', onClickOutside))
53
53
  } else {
54
- $timeout(() => document.removeEventListener('dblclick', onClickOutside))
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;
@@ -114,7 +114,7 @@
114
114
  display: flex;
115
115
  align-items: center;
116
116
  justify-items: center;
117
-
117
+
118
118
  span{
119
119
  color: var(--font1);
120
120
  font-size: 22px;
@@ -181,10 +181,11 @@
181
181
  font-size: 25px;
182
182
  position: relative;
183
183
  text-align: center;
184
- cursor: pointer;
184
+ cursor: unset;
185
185
  i {
186
186
  color: #8034ad;
187
187
  @include themify(color, color1);
188
+ cursor: pointer;
188
189
  }
189
190
  .mb-tn-number {
190
191
  position: absolute;