@sgcloud-sgsistemas/base 1.0.0

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.
Files changed (140) hide show
  1. package/README.md +505 -0
  2. package/app.js +686 -0
  3. package/assets/img/custom-icon.svg +1 -0
  4. package/assets/img/logo-finance.png +0 -0
  5. package/assets/img/logo.png +0 -0
  6. package/assets/img/logo_company.png +0 -0
  7. package/assets/img/perfil.png +0 -0
  8. package/config/postcss.config.js +14 -0
  9. package/config/webpack.config.common.js +53 -0
  10. package/config/webpack.config.dev.js +50 -0
  11. package/config/webpack.config.prod.js +49 -0
  12. package/index.html +115 -0
  13. package/package.json +64 -0
  14. package/resources/audio/mouth-pop.mp3 +0 -0
  15. package/src/index.js +1 -0
  16. package/src/modules/base/components/container/container.style.scss +7 -0
  17. package/src/modules/base/components/container/container.template.html +2 -0
  18. package/src/modules/base/components/container/index.js +9 -0
  19. package/src/modules/base/components/content-container/content-container.style.scss +36 -0
  20. package/src/modules/base/components/content-container/content-container.template.html +8 -0
  21. package/src/modules/base/components/content-container/index.js +9 -0
  22. package/src/modules/base/controllers/base.controller.js +39 -0
  23. package/src/modules/base/index.js +42 -0
  24. package/src/modules/base/providers/theme.provider.js +12 -0
  25. package/src/modules/base/providers/themes.list.js +233 -0
  26. package/src/modules/base/styles/base.animations.scss +43 -0
  27. package/src/modules/base/styles/base.flex.scss +45 -0
  28. package/src/modules/base/styles/base.style.scss +169 -0
  29. package/src/modules/base/templates/base.template.html +6 -0
  30. package/src/modules/footer/components/footer/footer.controller.js +17 -0
  31. package/src/modules/footer/components/footer/footer.style.scss +0 -0
  32. package/src/modules/footer/components/footer/footer.template.html +25 -0
  33. package/src/modules/footer/components/footer/index.js +13 -0
  34. package/src/modules/footer/controllers/footer.controller.js +13 -0
  35. package/src/modules/footer/index.js +19 -0
  36. package/src/modules/footer/services/footer.service.js +24 -0
  37. package/src/modules/footer/styles/footer.animations.scss +11 -0
  38. package/src/modules/footer/styles/footer.style.scss +28 -0
  39. package/src/modules/footer/templates/footer.template.html +1 -0
  40. package/src/modules/pageloader/controllers/pageloader.controller.js +60 -0
  41. package/src/modules/pageloader/index.js +15 -0
  42. package/src/modules/pageloader/services/pageloader.service.js +15 -0
  43. package/src/modules/pageloader/styles/pageloader.style.scss +67 -0
  44. package/src/modules/pageloader/templates/pageloader.template.html +9 -0
  45. package/src/modules/side-content/components/btn/btn.controller.js +55 -0
  46. package/src/modules/side-content/components/btn/btn.style.scss +48 -0
  47. package/src/modules/side-content/components/btn/btn.template.html +18 -0
  48. package/src/modules/side-content/components/btn/index.js +17 -0
  49. package/src/modules/side-content/controllers/side-content.controller.js +93 -0
  50. package/src/modules/side-content/index.js +17 -0
  51. package/src/modules/side-content/services/side-content.service.js +49 -0
  52. package/src/modules/side-content/styles/side-content.style.scss +73 -0
  53. package/src/modules/side-content/templates/side-content.template.html +25 -0
  54. package/src/modules/side-menu/components/btn/btn.controller.js +13 -0
  55. package/src/modules/side-menu/components/btn/btn.style.scss +75 -0
  56. package/src/modules/side-menu/components/btn/btn.template.html +43 -0
  57. package/src/modules/side-menu/components/btn/index.js +26 -0
  58. package/src/modules/side-menu/components/category/category.style.scss +47 -0
  59. package/src/modules/side-menu/components/category/category.template.html +23 -0
  60. package/src/modules/side-menu/components/category/index.js +13 -0
  61. package/src/modules/side-menu/components/html/html.controller.js +5 -0
  62. package/src/modules/side-menu/components/html/html.template.html +3 -0
  63. package/src/modules/side-menu/components/html/index.js +14 -0
  64. package/src/modules/side-menu/components/item/index.js +29 -0
  65. package/src/modules/side-menu/components/item/item.template.html +40 -0
  66. package/src/modules/side-menu/components/link/index.js +18 -0
  67. package/src/modules/side-menu/components/link/link.controller.js +48 -0
  68. package/src/modules/side-menu/components/link/link.style.scss +10 -0
  69. package/src/modules/side-menu/components/link/link.template.html +21 -0
  70. package/src/modules/side-menu/components/quick-menu/index.js +14 -0
  71. package/src/modules/side-menu/components/quick-menu/quick-menu.controller.js +67 -0
  72. package/src/modules/side-menu/components/quick-menu/quick-menu.style.scss +151 -0
  73. package/src/modules/side-menu/components/quick-menu/quick-menu.template.html +44 -0
  74. package/src/modules/side-menu/components/sub-category/index.js +20 -0
  75. package/src/modules/side-menu/components/sub-category/sub-category.controller.js +16 -0
  76. package/src/modules/side-menu/components/sub-category/sub-category.style.scss +48 -0
  77. package/src/modules/side-menu/components/sub-category/sub-category.template.html +47 -0
  78. package/src/modules/side-menu/controllers/sideMenu.js +71 -0
  79. package/src/modules/side-menu/index.js +33 -0
  80. package/src/modules/side-menu/services/sideMenu.js +12 -0
  81. package/src/modules/side-menu/styles/side-menu.style.scss +86 -0
  82. package/src/modules/side-menu/templates/side-menu.template.html +30 -0
  83. package/src/modules/themes/themes.style.scss +227 -0
  84. package/src/modules/top-notifications/components/notification/index.js +17 -0
  85. package/src/modules/top-notifications/components/notification/notification.controller.js +168 -0
  86. package/src/modules/top-notifications/components/notification/notification.style.scss +210 -0
  87. package/src/modules/top-notifications/components/notification/notification.template.html +22 -0
  88. package/src/modules/top-notifications/controllers/top-notifications.controller.js +33 -0
  89. package/src/modules/top-notifications/index.js +18 -0
  90. package/src/modules/top-notifications/services/top-notifications.services.js +108 -0
  91. package/src/modules/top-notifications/styles/top-notifications.style.scss +0 -0
  92. package/src/modules/top-notifications/templates/top-notifications.template.html +5 -0
  93. package/src/modules/topbar/components/cashier/cashier.controller.js +17 -0
  94. package/src/modules/topbar/components/cashier/cashier.styles.scss +79 -0
  95. package/src/modules/topbar/components/cashier/cashier.template.html +32 -0
  96. package/src/modules/topbar/components/cashier/index.js +14 -0
  97. package/src/modules/topbar/components/cashier/service/cashier.service.js +43 -0
  98. package/src/modules/topbar/components/environment/environment.html +24 -0
  99. package/src/modules/topbar/components/environment/environment.js +16 -0
  100. package/src/modules/topbar/components/environment/environment.scss +137 -0
  101. package/src/modules/topbar/components/environment/index.js +11 -0
  102. package/src/modules/topbar/components/environment/service/environment.service.js +19 -0
  103. package/src/modules/topbar/components/notifications/index.js +13 -0
  104. package/src/modules/topbar/components/notifications/notifications.controller.js +108 -0
  105. package/src/modules/topbar/components/notifications/notifications.styles.scss +282 -0
  106. package/src/modules/topbar/components/notifications/notifications.template.html +154 -0
  107. package/src/modules/topbar/components/search/components/input/index.js +19 -0
  108. package/src/modules/topbar/components/search/components/input/input.controller.js +19 -0
  109. package/src/modules/topbar/components/search/components/input/input.style.scss +74 -0
  110. package/src/modules/topbar/components/search/components/input/input.template.html +8 -0
  111. package/src/modules/topbar/components/search/components/result-line/index.js +16 -0
  112. package/src/modules/topbar/components/search/components/result-line/result-line.controller.js +69 -0
  113. package/src/modules/topbar/components/search/components/result-line/result-line.style.scss +58 -0
  114. package/src/modules/topbar/components/search/components/result-line/result-line.template.html +29 -0
  115. package/src/modules/topbar/components/search/controllers/search.controller.js +298 -0
  116. package/src/modules/topbar/components/search/index.js +21 -0
  117. package/src/modules/topbar/components/search/styles/search.style.scss +114 -0
  118. package/src/modules/topbar/components/search/templates/search.template.html +48 -0
  119. package/src/modules/topbar/components/user/components/btn/btn.style.scss +35 -0
  120. package/src/modules/topbar/components/user/components/btn/btn.template.html +36 -0
  121. package/src/modules/topbar/components/user/components/btn/index.js +15 -0
  122. package/src/modules/topbar/components/user/components/link/index.js +18 -0
  123. package/src/modules/topbar/components/user/components/link/link.controller.js +15 -0
  124. package/src/modules/topbar/components/user/components/link/link.style.scss +13 -0
  125. package/src/modules/topbar/components/user/components/link/link.template.html +26 -0
  126. package/src/modules/topbar/components/user/components/loading/index.js +14 -0
  127. package/src/modules/topbar/components/user/components/loading/loading.animations.scss +9 -0
  128. package/src/modules/topbar/components/user/components/loading/loading.style.scss +12 -0
  129. package/src/modules/topbar/components/user/components/loading/loading.template.html +3 -0
  130. package/src/modules/topbar/components/user/controllers/user.controller.js +200 -0
  131. package/src/modules/topbar/components/user/index.js +27 -0
  132. package/src/modules/topbar/components/user/services/user.service.js +14 -0
  133. package/src/modules/topbar/components/user/styles/user.animations.scss +27 -0
  134. package/src/modules/topbar/components/user/styles/user.style.scss +997 -0
  135. package/src/modules/topbar/components/user/templates/user.template.html +252 -0
  136. package/src/modules/topbar/controllers/topbar.controller.js +27 -0
  137. package/src/modules/topbar/index.js +31 -0
  138. package/src/modules/topbar/services/base-notification-service.js +40 -0
  139. package/src/modules/topbar/styles/topbar.style.scss +211 -0
  140. package/src/modules/topbar/templates/topbar.template.html +93 -0
@@ -0,0 +1,14 @@
1
+ import controller from './cashier.controller';
2
+ import template from './cashier.template.html';
3
+ import './cashier.styles.scss';
4
+
5
+ const component = {
6
+ bindings: {
7
+ config: '=',
8
+ activeColor: '@?'
9
+ },
10
+ template,
11
+ controller
12
+ };
13
+
14
+ export default component;
@@ -0,0 +1,43 @@
1
+ const cashierService = function () {
2
+ const service = this
3
+
4
+ service.configCashier = {}
5
+
6
+ let execAfterRegister = false
7
+ service.updateComponent = () => {
8
+ execAfterRegister = true
9
+ }
10
+
11
+ service.setCashier = (setting) => {
12
+ service.configCashier = setting
13
+ service.updateComponent()
14
+ }
15
+
16
+ service.updateCashier = (setting) => {
17
+ service.configCashier = setting
18
+ if (execAfterRegister) {
19
+ const tryExecute = () => {
20
+ if (service.startFunction) {
21
+ service.startFunction()
22
+ service.updateComponent()
23
+ } else {
24
+ setTimeout(() => tryExecute(), 1000)
25
+ }
26
+ }
27
+ tryExecute()
28
+ }
29
+ service.updateComponent()
30
+ }
31
+
32
+ service.registerCashier = (setting) => {
33
+ service.startFunction = setting
34
+ if (execAfterRegister === true) {
35
+ service.startFunction()
36
+ }
37
+ service.updateComponent()
38
+ }
39
+
40
+ return service
41
+ }
42
+
43
+ export default cashierService
@@ -0,0 +1,24 @@
1
+ <!-- <div class="environment-wrapper"
2
+ ng-show="isDemo != undefined"
3
+ ng-class="{ 'is-demo': isDemo, 'is-prod': !isDemo }"
4
+ ng-click="handleClick()">
5
+ <div class="environment-content development">
6
+ <b>{{ isDemo ? 'Modo' : 'Ir para' }}</b> <br>
7
+ <label>Teste</label>
8
+ </div>
9
+ <div class="environment-content production">
10
+ <b>{{ !isDemo ? 'Modo' : 'Ir para' }}</b> <br>
11
+ <label>Produção</label>
12
+ </div>
13
+ </div> -->
14
+
15
+
16
+ <div class="environment-wrapper" ng-show="isDemo">
17
+ <div class="environment-content">
18
+ <div class="environment-alert">
19
+ <i class="fas fa-exclamation-circle"></i>
20
+ <span><b>Atenção:</b> Você está operando em modo teste</span>
21
+ </div>
22
+ <button class="btn" ng-click="handleClick()">Ir para produção</button>
23
+ </div>
24
+ </div>
@@ -0,0 +1,16 @@
1
+ const controller = ($scope, environmentService, $timeout) => {
2
+
3
+ environmentService.registerCBEnvironment((isDemo, onClick) => {
4
+ $timeout(() => {
5
+ $scope.isDemo = isDemo
6
+ $scope.onClick = onClick
7
+ })
8
+ })
9
+
10
+ $scope.handleClick = () => {
11
+ if ($scope.onClick) { $scope.onClick() }
12
+ }
13
+
14
+ };
15
+
16
+ export default controller;
@@ -0,0 +1,137 @@
1
+ // .environment-wrapper {
2
+ // position: absolute;
3
+ // right: 0;
4
+ // top: 0;
5
+ // height: 80px;
6
+ // width: 100px;
7
+ // overflow: hidden;
8
+ // cursor: pointer;
9
+ // * {
10
+ // transition: all 350ms ease;
11
+ // }
12
+ // &.is-demo {
13
+ // color: var(--environment-demo);
14
+ // .environment-content {
15
+ // &.development {
16
+ // opacity: 1;
17
+ // }
18
+ // }
19
+ // }
20
+ // &.is-prod {
21
+ // color: var(--environment-prod);
22
+ // .environment-content {
23
+ // &.development {
24
+ // opacity: 0;
25
+ // }
26
+ // &.production {
27
+ // opacity: 1;
28
+ // }
29
+ // }
30
+ // }
31
+ // &:hover {
32
+ // opacity: 0.8;
33
+ // &.is-demo {
34
+ // color: var(--environment-prod);
35
+ // .environment-content {
36
+ // &.development {
37
+ // opacity: 0;
38
+ // }
39
+ // &.production {
40
+ // opacity: 1;
41
+ // }
42
+ // }
43
+ // }
44
+ // &.is-prod {
45
+ // color: var(--environment-demo);
46
+ // .environment-content {
47
+ // &.development {
48
+ // opacity: 1;
49
+ // }
50
+ // &.production {
51
+ // opacity: 0;
52
+ // }
53
+ // }
54
+ // }
55
+ // }
56
+ // * {
57
+ // cursor: pointer;
58
+ // }
59
+ // &::before {
60
+ // position: absolute;
61
+ // content: "";
62
+ // width: 0;
63
+ // height: 0;
64
+ // border-left: 100px solid transparent;
65
+ // border-right: 12px solid transparent;
66
+ // border-top: 80px solid currentColor;
67
+ // left: 0px;
68
+ // z-index: 5;
69
+ // }
70
+ // .environment-content {
71
+ // width: 144px;
72
+ // -ms-transform: rotate(40deg);
73
+ // transform: rotate(40deg);
74
+ // text-align: center;
75
+ // top: 8px;
76
+ // position: absolute;
77
+ // color: #fff;
78
+ // z-index: 9;
79
+ // right: -45px;
80
+ // &.production {
81
+ // opacity: 0;
82
+ // }
83
+ // &.development {
84
+ // opacity: 0;
85
+ // }
86
+ // b {
87
+ // font-size: 10px;
88
+ // font-weight: 500;
89
+ // }
90
+ // label {
91
+ // margin: 0;
92
+ // font-weight: bold;
93
+ // font-size: 13px;
94
+ // }
95
+ // }
96
+ // }
97
+
98
+ .environment-wrapper {
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: center;
102
+ background: linear-gradient(90deg, #ff8a3f, #f44);
103
+
104
+ .environment-content {
105
+ height: 54px;
106
+ max-width: 1000px;
107
+ width: 100%;
108
+ display: flex;
109
+ align-items: center;
110
+ justify-content: space-around;
111
+
112
+ .environment-alert{
113
+ color: #fff;
114
+ }
115
+ }
116
+
117
+ button {
118
+ border: 1px solid #fff;
119
+ color: #fff;
120
+ border-radius: 50px;
121
+ padding-left: 24px;
122
+ padding-right: 24px;
123
+ transform: scale(0.8);
124
+ transition: all 300ms ease;
125
+
126
+ &:focus, &:active {
127
+ color: #fff;
128
+ outline: none;
129
+ box-shadow: none;
130
+ }
131
+
132
+ &:hover {
133
+ color: #fff;
134
+ transform: scale(0.9);
135
+ }
136
+ }
137
+ }
@@ -0,0 +1,11 @@
1
+ import controller from './environment';
2
+ import template from './environment.html';
3
+ import './environment.scss';
4
+
5
+ const component = {
6
+ bindings: {},
7
+ template,
8
+ controller
9
+ };
10
+
11
+ export default component;
@@ -0,0 +1,19 @@
1
+ const environmentService = function () {
2
+ const service = this;
3
+
4
+ service.registerCBEnvironment = (cb) => service.cb = cb
5
+
6
+ service.setIsDemo = (environment, cb) => {
7
+ if (!service.cb) {
8
+ setTimeout(() => {
9
+ service.setIsDemo(environment, cb)
10
+ }, 1000)
11
+ } else {
12
+ service.cb(environment, cb)
13
+ }
14
+ }
15
+
16
+ return service;
17
+ };
18
+
19
+ export default environmentService;
@@ -0,0 +1,13 @@
1
+ import controller from './notifications.controller';
2
+ import template from './notifications.template.html';
3
+ import './notifications.styles.scss';
4
+
5
+ const component = {
6
+ bindings: {
7
+
8
+ },
9
+ template,
10
+ controller
11
+ };
12
+
13
+ export default component;
@@ -0,0 +1,108 @@
1
+ const controller = ($scope, $timeout, baseNotificationService, $sce) => {
2
+ const vm = $scope
3
+ vm.lastNotificationId = null
4
+ vm.notificationsNews = []
5
+ vm.notificationsOlds = []
6
+ vm.total = 0
7
+ vm.totalDisplay = 0
8
+
9
+ vm.clearAllNoticationsOlds = () => {
10
+ for (const notification of vm.notificationsOlds) {
11
+ notification.onClick(notification, 'all', true)
12
+ break
13
+ }
14
+ }
15
+
16
+ const separatorNotications = (notifications = []) => {
17
+ vm.totalDisplay = notifications.length
18
+ vm.total = baseNotificationService.total
19
+ vm.lastNotificationId = notifications[notifications.length-1] ? notifications[notifications.length-1].id : null
20
+ vm.notificationsNews = notifications.filter((n) => !n.read)
21
+ vm.notificationsOlds = notifications.filter((n) => n.read)
22
+ if (vm.notificationsNews.length > 0 || vm.notificationsOlds.length > 0) {
23
+ $timeout(() => {
24
+ vm.notifications = []
25
+ if (vm.notificationsNews.length > 0) {
26
+ vm.notifications.push({
27
+ label: 'Novas',
28
+ active: false,
29
+ items: vm.notificationsNews
30
+ })
31
+ }
32
+ if (vm.notificationsOlds.length > 0) {
33
+ vm.notifications.push({
34
+ label: `Anteriores`,
35
+ active: true,
36
+ items: vm.notificationsOlds
37
+ })
38
+ }
39
+ })
40
+ }
41
+ }
42
+
43
+ vm.getWidth = (size) => {
44
+ return (23 + (size.toString().length * 4)) + 'px'
45
+ }
46
+
47
+ vm.getRight = (size) => {
48
+ return size.toString().length * -3
49
+ }
50
+
51
+ separatorNotications(baseNotificationService.notifications)
52
+
53
+ baseNotificationService.onNotificationChange((notifications) => {
54
+ $timeout(() => {
55
+ separatorNotications(notifications)
56
+ })
57
+ })
58
+
59
+ const onClickOutside = () => {
60
+ $timeout(() => {
61
+ vm.notificationOpen = false
62
+ $timeout(() => document.removeEventListener('dblclick', onClickOutside))
63
+ })
64
+ }
65
+
66
+ vm.trustAsHtml = function (string) {
67
+ return $sce.trustAsHtml(string)
68
+ }
69
+
70
+ vm.toogle = () => {
71
+ vm.notificationOpen = !vm.notificationOpen
72
+ if (vm.notificationOpen) {
73
+ $timeout(() => document.addEventListener('dblclick', onClickOutside))
74
+ } else {
75
+ $timeout(() => document.removeEventListener('dblclick', onClickOutside))
76
+ }
77
+ }
78
+
79
+ vm.handleClickNotification = (evt, notification, action) => {
80
+ if (notification.actions && notification.actions.length > 0) {
81
+ evt.preventDefault()
82
+ evt.stopPropagation()
83
+ if (action) {
84
+ onClickOutside()
85
+ notification.onClick(notification, action)
86
+ }
87
+ } else {
88
+ if (notification.onClick) {
89
+ notification.onClick(notification, action)
90
+ }
91
+ }
92
+ }
93
+
94
+ vm.removeNotification = (notification) => {
95
+ notification.onClick(notification, undefined, true)
96
+ }
97
+
98
+ vm.seeMore = () => {
99
+ baseNotificationService.seeMoreFunction(vm.lastNotificationId)
100
+ }
101
+
102
+ vm.openSetting = () => {
103
+ baseNotificationService.openSetting()
104
+ }
105
+
106
+ };
107
+
108
+ export default controller;
@@ -0,0 +1,282 @@
1
+ @import "../../../themes/themes.style.scss";
2
+
3
+ mb-topbar-notifications {
4
+ // position: absolute;
5
+ // left: 0;
6
+ z-index: 7000;
7
+ height: 100%;
8
+ display: flex;
9
+ align-items: center;
10
+ }
11
+
12
+ .link {
13
+ border-bottom: none;
14
+ color: var(--neutral2);
15
+ font-size: 1.1rem;
16
+ margin-top: 0px;
17
+ &:hover {
18
+ color: initial;
19
+ text-decoration: underline;
20
+ }
21
+ }
22
+
23
+ .mb-notification-label-category {
24
+ width: 100%;
25
+ font-size: 14px;
26
+ text-align: left;
27
+ padding: 0 15px;
28
+ line-height: 1.2 !important;
29
+ color: var(--primary);
30
+ }
31
+
32
+ .see-more-wrapper {
33
+ display: flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ }
37
+
38
+ .button-see-more {
39
+ color: #666;
40
+ width: 100%;
41
+ font-size: 14px;
42
+ text-align: center;
43
+ padding: 0 15px;
44
+ line-height: 2.2 !important;
45
+ }
46
+
47
+ .button-see-more:hover {
48
+ color: #666;
49
+ font-weight: bold;
50
+ }
51
+
52
+ .mb[notifications] {
53
+ height: 50px;
54
+ width: 50px;
55
+ text-align: center;
56
+ line-height: 50px;
57
+ font-size: 25px;
58
+ color: #8034ad;
59
+ @include themify(color, color1);
60
+ cursor: pointer;
61
+ position: relative;
62
+ transform-origin: center;
63
+ transition: transform 350ms ease;
64
+ .mb-tn-number, i.bell {
65
+ transition: transform 350ms ease;
66
+ }
67
+
68
+ > .mb-tn-number {
69
+ position: absolute;
70
+ top: 5px;
71
+ right: 0;
72
+ line-height: 23px;
73
+ width: 23px;
74
+ height: 23px;
75
+ border-radius: 11.5px;
76
+ background-color: map-get($semantic, error);
77
+ font-size: 12px;
78
+ font-weight: 700;
79
+ color: white;
80
+ }
81
+ .mb-tn-wrapper {
82
+ width: 30rem;
83
+ background: #fff;
84
+ transform: translateY(0);
85
+ pointer-events: none;
86
+ opacity: 0;
87
+ transition: transform 350ms ease;
88
+ box-shadow: 0 0 15px rgba(0, 0, 0, 0.1), 0 0 70px rgba(0, 0, 0, 0.25);
89
+ border-bottom-left-radius: 15px;
90
+ border-bottom-right-radius: 15px;
91
+ position: relative;
92
+ .notifition-item {
93
+ width: 100%;
94
+ overflow: hidden;
95
+ display: flex;
96
+ padding: 7px 0px;
97
+ &:last-child {
98
+ border: none;
99
+ border-bottom-left-radius: 15px;
100
+ border-bottom-right-radius: 15px;
101
+ }
102
+ &:hover {
103
+ cursor: pointer;
104
+ background: #f5f5f5;
105
+ * {
106
+ cursor: pointer;
107
+ }
108
+ &:nth-child(2) {
109
+ ~ .arrow-up {
110
+ &:before {
111
+ border-bottom: 14px solid #f5f5f5;
112
+ }
113
+ }
114
+ }
115
+ }
116
+ .notification-icon {
117
+ width: 64px;
118
+ }
119
+ .notification-metadata {
120
+ padding-right: 14px;
121
+ display: flex;
122
+ flex: 1;
123
+ flex-direction: column;
124
+ align-items: flex-start;
125
+ * {
126
+ line-height: normal;
127
+ font-size: 11px;
128
+ color: #666;
129
+ }
130
+
131
+ label {
132
+ text-align: left;
133
+ margin: 0;
134
+ color: #666;
135
+ font-weight: 100;
136
+ }
137
+ .notification-time {
138
+ font-size: 10px;
139
+ margin-bottom: 8px;
140
+ line-height: 1;
141
+ i {
142
+ margin-right: 2px;
143
+ font-size: 10px;
144
+ }
145
+ }
146
+ .notification-title {
147
+ font-size: 12px;
148
+ margin-bottom: 4px;
149
+ line-height: 1;
150
+ }
151
+ .notification-body {
152
+ width: 100%;
153
+ font-size: 11px;
154
+ line-height: 1.4;
155
+ }
156
+ .notification-actions {
157
+ display: flex;
158
+ width: 100%;
159
+ justify-content: space-between;
160
+ margin-top: 8px;
161
+ button {
162
+ font-size: 12px;
163
+ line-height: 1.4;
164
+ border-radius: 4px;
165
+ color: #666;
166
+ padding: 5px 8px;
167
+ cursor: pointer;
168
+ outline: none;
169
+ &:hover {
170
+ @include themify(color, color1);
171
+ @include themify(border-color, color1);
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
177
+ .empty-notification {
178
+ padding: 44px 0;
179
+ svg {
180
+ width: 84px;
181
+ fill: #666;
182
+ }
183
+ label {
184
+ font-size: 14px;
185
+ color: #666;
186
+ padding: 0;
187
+ margin: 0;
188
+ }
189
+ }
190
+ .arrow-up {
191
+ position: absolute;
192
+ left: 0;
193
+ top: 0;
194
+ pointer-events: none;
195
+ &:before {
196
+ pointer-events: none;
197
+ content: "";
198
+ display: inline-block;
199
+ vertical-align: middle;
200
+ width: 0;
201
+ height: 0;
202
+ border-left: 14px solid transparent;
203
+ border-right: 14px solid transparent;
204
+ border-bottom: 14px solid #ffffff;
205
+ margin-top: -68px;
206
+ margin-left: 10px;
207
+ }
208
+ }
209
+ &.open {
210
+ transform: translateY(14px);
211
+ pointer-events: all;
212
+ opacity: 1;
213
+ }
214
+ }
215
+
216
+ .progress-wrapper {
217
+ width: 100%;
218
+ display: flex;
219
+ align-items: center;
220
+ height: 14px;
221
+
222
+ .mbg-progress-bar {
223
+ width: 100%;
224
+ height: 4px;
225
+ background-color: #dedede;
226
+ border-radius: 50px;
227
+ position: relative;
228
+ display:flex;
229
+ &::after {
230
+ content: "";
231
+ position: absolute;
232
+ left:0px;
233
+ height: 100%;
234
+ width: var(--percentage);
235
+ background: var(--contrast);
236
+ border-radius: 50px;
237
+ transition: width 500ms ease;
238
+ }
239
+ }
240
+ label.progress-label {
241
+ font-size: 11px;
242
+ margin-left: 14px !important;
243
+ min-width: 34px;
244
+ }
245
+ .info-import {
246
+ span {
247
+ color: #666;
248
+ }
249
+ }
250
+ }
251
+
252
+ .fas.fa-check-circle {
253
+ color: var(--success);
254
+ }
255
+
256
+ .fas.fa-times-circle {
257
+ color: var(--error);
258
+ }
259
+
260
+ .remove-notification {
261
+ display: flex;
262
+ flex-direction: column;
263
+ align-items: center;
264
+ justify-content: space-between;
265
+ padding-right: 14px;
266
+ }
267
+
268
+ .fas.fa-times {
269
+ font-size: 18px;
270
+ color: #666;
271
+ }
272
+
273
+ .notification-bottom {
274
+ border-bottom: .5px solid #f5f5f5 !important;
275
+ }
276
+
277
+ .label-notification-empty {
278
+ display: block;
279
+ justify-content: center;
280
+ align-items: center;
281
+ }
282
+ }