@appscode/design-system 1.1.0 → 2.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 (215) hide show
  1. package/base/_video-player.scss +65 -0
  2. package/base/utilities/_all.scss +7 -5
  3. package/base/utilities/_colors.scss +377 -0
  4. package/base/utilities/_customize-bulma.scss +23 -27
  5. package/base/utilities/_extended.scss +39 -0
  6. package/base/utilities/{_default.scss → _global.scss} +192 -333
  7. package/base/utilities/_layouts.scss +19 -0
  8. package/base/utilities/_mixin.scss +11 -11
  9. package/base/utilities/_spacing.scss +96 -0
  10. package/base/utilities/_typography.scss +56 -24
  11. package/components/_ac-alert-box.scss +205 -263
  12. package/components/_ac-calendar.scss +4 -4
  13. package/components/_ac-code-highlight.scss +13 -16
  14. package/components/_ac-content-layout.scss +165 -165
  15. package/components/_ac-drag.scss +13 -13
  16. package/components/_ac-modal.scss +212 -212
  17. package/components/_ac-options.scss +122 -123
  18. package/components/_ac-select-box.scss +10 -10
  19. package/components/_ac-table.scss +503 -502
  20. package/components/_ac-tabs.scss +65 -61
  21. package/components/_ac-tags.scss +116 -116
  22. package/components/_accordion.scss +117 -0
  23. package/components/_add-card.scss +3 -3
  24. package/components/_all.scss +35 -28
  25. package/components/_app-drawer.scss +0 -134
  26. package/components/_breadcumb.scss +0 -71
  27. package/components/_buttons.scss +779 -779
  28. package/components/_card-body-wrapper.scss +5 -5
  29. package/components/_dashboard-header.scss +0 -115
  30. package/components/_direct-deploy.scss +8 -8
  31. package/components/_getkeeper.scss +110 -0
  32. package/components/_go-to-top.scss +1 -1
  33. package/components/_graph.scss +10 -10
  34. package/components/_image-upload.scss +9 -9
  35. package/components/_input-card.scss +232 -0
  36. package/components/_input.scss +573 -0
  37. package/components/_left-sidebar-menu.scss +452 -587
  38. package/components/_monaco-editor.scss +2 -2
  39. package/components/{_ac-multi-select.scss → _multi-select.scss} +89 -251
  40. package/components/_navbar.scss +786 -752
  41. package/components/_nested-list.scss +3 -3
  42. package/components/_overview-info.scss +10 -10
  43. package/components/_overview-page.scss +4 -4
  44. package/components/_pagination.scss +106 -124
  45. package/components/_payment-card.scss +21 -21
  46. package/components/_preloader.scss +1 -1
  47. package/components/_preview-modal.scss +18 -18
  48. package/components/_pricing-table.scss +14 -14
  49. package/components/_progress-bar.scss +73 -86
  50. package/components/_subscription-card.scss +22 -24
  51. package/components/_table-of-content.scss +8 -8
  52. package/components/{_ac-terminal.scss → _terminal.scss} +114 -81
  53. package/components/_tfa.scss +9 -9
  54. package/components/_transitions.scss +35 -0
  55. package/components/_widget-menu.scss +252 -257
  56. package/components/_wizard.scss +518 -793
  57. package/components/ac-toaster/_ac-toasted.scss +11 -16
  58. package/components/bbum/_activities-header.scss +1 -1
  59. package/components/bbum/_card-team.scss +12 -12
  60. package/components/bbum/_information-center.scss +21 -23
  61. package/components/bbum/_left-sidebar.scss +8 -8
  62. package/components/bbum/_mobile-desktop.scss +16 -21
  63. package/components/bbum/_post.scss +5 -5
  64. package/components/bbum/_sign-up-notification.scss +10 -10
  65. package/components/bbum/_single-post-preview.scss +29 -29
  66. package/components/bbum/_user-profile.scss +10 -10
  67. package/components/ui-builder/_ui-builder.scss +221 -31
  68. package/components/ui-builder/_vue-open-api.scss +565 -7
  69. package/icons/close-icon.svg +3 -0
  70. package/layouts/_code-preview.scss +17 -18
  71. package/main.scss +26 -10
  72. package/package.json +1 -1
  73. package/plugins/theme.js +11 -9
  74. package/plugins/vue-toaster.js +1 -1
  75. package/vue-components/images/icons/cluster-icon.svg +10 -0
  76. package/vue-components/images/icons/org-icon.svg +10 -0
  77. package/vue-components/plugins/time-convert.js +49 -0
  78. package/vue-components/types/cluster.ts +6 -0
  79. package/vue-components/types/importFlow.ts +16 -0
  80. package/vue-components/types/notification.ts +6 -0
  81. package/vue-components/types/previewYaml.ts +8 -0
  82. package/vue-components/types/table.ts +55 -0
  83. package/vue-components/types/theme.ts +10 -0
  84. package/vue-components/types/user.ts +22 -0
  85. package/vue-components/v2/banner/Banner.vue +1 -1
  86. package/vue-components/v2/button/Buttons.vue +1 -1
  87. package/vue-components/v2/card/Card.vue +1 -1
  88. package/vue-components/v2/card/OverviewCards.vue +17 -2
  89. package/vue-components/v2/content/ContentTable.vue +14 -9
  90. package/vue-components/v2/editor/FilteredFileEditor.vue +2 -2
  91. package/vue-components/v2/editor/ResourceKeyValueEditor.vue +21 -21
  92. package/vue-components/v2/icons/Ellipsis.vue +2 -1
  93. package/vue-components/v2/modal/Modal.vue +2 -6
  94. package/vue-components/v2/navbar/Appdrawer.vue +37 -12
  95. package/vue-components/v2/navbar/Navbar.vue +3 -3
  96. package/vue-components/v2/navbar/NavbarItem.vue +3 -1
  97. package/vue-components/v2/navbar/NavbarItemContent.vue +1 -1
  98. package/vue-components/v2/navbar/User.vue +5 -22
  99. package/vue-components/v2/pagination/Pagination.vue +66 -0
  100. package/vue-components/v2/sidebar/SidebarItem.vue +10 -7
  101. package/{components/_ac-accordion.scss → vue-components/v3/accordion/Accordion.vue} +40 -6
  102. package/vue-components/v3/alert/Alert.vue +238 -0
  103. package/vue-components/v3/alert/Toast.vue +79 -0
  104. package/vue-components/v3/banner/Banner.vue +10 -0
  105. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +166 -0
  106. package/vue-components/v3/button/Button.vue +110 -57
  107. package/vue-components/v3/button/Buttons.vue +22 -0
  108. package/vue-components/v3/button/DownloadBtn.vue +31 -0
  109. package/vue-components/v3/cards/Card.vue +32 -0
  110. package/vue-components/v3/cards/CardContent.vue +7 -0
  111. package/vue-components/v3/cards/CardHeader.vue +14 -0
  112. package/vue-components/v3/cards/Cards.vue +7 -0
  113. package/vue-components/v3/cards/Cluster.vue +159 -0
  114. package/vue-components/v3/cards/Counter.vue +39 -0
  115. package/vue-components/v3/cards/FeatureCard.vue +67 -0
  116. package/vue-components/v3/cards/FeatureCards.vue +6 -0
  117. package/vue-components/v3/cards/InfoCard.vue +242 -0
  118. package/vue-components/v3/cards/Monitoring.vue +90 -0
  119. package/vue-components/v3/cards/OrgClusterCard.vue +86 -0
  120. package/vue-components/v3/cards/OverviewCard.vue +28 -0
  121. package/vue-components/v3/cards/OverviewCards.vue +39 -0
  122. package/vue-components/v3/cards/Payment.vue +62 -0
  123. package/vue-components/v3/cards/Vendor.vue +89 -0
  124. package/vue-components/v3/content/ContentHeader.vue +39 -30
  125. package/vue-components/v3/content/ContentLayout.vue +20 -0
  126. package/vue-components/v3/content/ContentTable.vue +44 -58
  127. package/vue-components/v3/dropdown/DropdownAction.vue +95 -0
  128. package/vue-components/v3/dropdown/DropdownDivider.vue +2 -0
  129. package/vue-components/v3/dropdown/DropdownItem.vue +2 -0
  130. package/vue-components/v3/dropdown/DropdownMenu.vue +85 -91
  131. package/vue-components/v3/editor/Editor.vue +117 -115
  132. package/vue-components/v3/editor/FilteredFileEditor.vue +325 -128
  133. package/vue-components/v3/editor/ResourceKeyValueEditor.vue +73 -94
  134. package/vue-components/v3/footer/FooterArea.vue +40 -0
  135. package/vue-components/v3/footer/FooterItem.vue +32 -0
  136. package/vue-components/v3/footer/FooterItems.vue +15 -0
  137. package/vue-components/v3/footer/Info.vue +25 -0
  138. package/vue-components/v3/footer/Status.vue +43 -0
  139. package/vue-components/v3/footer/Usage.vue +34 -0
  140. package/vue-components/v3/form/Form.vue +24 -36
  141. package/vue-components/v3/form/FormFooter.vue +24 -0
  142. package/vue-components/v3/form/FormFooterControl.vue +7 -0
  143. package/vue-components/v3/form/FormFooterControls.vue +7 -0
  144. package/vue-components/v3/form-fields/AcSingleInput.vue +21 -0
  145. package/vue-components/v3/form-fields/FileUpload.vue +89 -0
  146. package/vue-components/v3/form-fields/Input.vue +19 -15
  147. package/vue-components/v3/header/Header.vue +120 -26
  148. package/vue-components/v3/header/HeaderItem.vue +18 -0
  149. package/vue-components/v3/header/HeaderItems.vue +4 -0
  150. package/vue-components/v3/icons/Ellipsis.vue +2 -0
  151. package/vue-components/v3/loaders/ClusterSwitcherLoader.vue +13 -0
  152. package/vue-components/v3/loaders/InfoCardLoader.vue +19 -0
  153. package/vue-components/v3/loaders/ResourceLoader.vue +4 -12
  154. package/vue-components/v3/loaders/SidebarLoader.vue +4 -12
  155. package/vue-components/v3/loaders/SingleInfoCardLoader.vue +24 -0
  156. package/vue-components/v3/modal/Modal.vue +294 -95
  157. package/vue-components/v3/modals/DeleteConfirmationModal.vue +37 -50
  158. package/vue-components/v3/modals/JsonShowModal.vue +63 -68
  159. package/vue-components/v3/navbar/Appdrawer.vue +198 -51
  160. package/vue-components/v3/navbar/Navbar.vue +139 -0
  161. package/vue-components/v3/navbar/NavbarItem.vue +103 -0
  162. package/vue-components/v3/navbar/NavbarItemContent.vue +282 -0
  163. package/vue-components/v3/navbar/Notification.vue +207 -0
  164. package/vue-components/v3/navbar/ThemeMode.vue +128 -112
  165. package/vue-components/v3/navbar/User.vue +394 -267
  166. package/vue-components/v3/notification/AlertBox.vue +266 -39
  167. package/vue-components/v3/notification/Notification.vue +50 -44
  168. package/vue-components/v3/notification/NotificationItem.vue +51 -19
  169. package/vue-components/v3/option-dots/Options.vue +197 -0
  170. package/vue-components/v3/pagination/Pagination.vue +216 -102
  171. package/vue-components/v3/preloader/Preloader.vue +23 -0
  172. package/vue-components/v3/searchbars/SearchBar.vue +50 -34
  173. package/vue-components/v3/sidebar/AccentColorPicker.vue +97 -0
  174. package/vue-components/v3/sidebar/ClusterSwitcher.vue +71 -86
  175. package/vue-components/v3/sidebar/Sidebar.vue +239 -0
  176. package/vue-components/v3/sidebar/SidebarBody.vue +14 -0
  177. package/vue-components/v3/sidebar/SidebarFooter.vue +89 -0
  178. package/vue-components/v3/sidebar/SidebarHeader.vue +131 -0
  179. package/vue-components/v3/sidebar/SidebarItem.vue +62 -0
  180. package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +101 -104
  181. package/vue-components/v3/sidebar/SidebarMenuList.vue +9 -0
  182. package/vue-components/v3/sidebar/Steps.vue +152 -0
  183. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabs.vue +204 -0
  184. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +44 -0
  185. package/vue-components/v3/sidebar/sidebar-tabs/TabsContent.vue +99 -0
  186. package/vue-components/v3/tab/TabItem.vue +10 -12
  187. package/vue-components/v3/tab/Tabs.vue +36 -0
  188. package/vue-components/v3/tab/TabsBody.vue +7 -0
  189. package/vue-components/v3/table/EmptyTableInfo.vue +8 -0
  190. package/vue-components/v3/table/FakeTableCell.vue +22 -31
  191. package/vue-components/v3/table/InfoTable.vue +89 -61
  192. package/vue-components/v3/table/MultiInfoTable.vue +72 -95
  193. package/vue-components/v3/table/Table.vue +596 -157
  194. package/vue-components/v3/table/TableCell.vue +13 -24
  195. package/vue-components/v3/table/TableContainer.vue +50 -28
  196. package/vue-components/v3/table/TableRow.vue +65 -87
  197. package/vue-components/v3/table/table-cell/ArrayCell.vue +94 -103
  198. package/vue-components/v3/table/table-cell/CellValue.vue +74 -106
  199. package/vue-components/v3/table/table-cell/GenericCell.vue +43 -42
  200. package/vue-components/v3/table/table-cell/ObjectCell.vue +91 -101
  201. package/vue-components/v3/table/table-cell/ValueWithModal.vue +22 -31
  202. package/vue-components/v3/tabs/EditorTabs.vue +18 -24
  203. package/vue-components/v3/tag/Tag.vue +16 -12
  204. package/vue-components/v3/tag/Tags.vue +7 -0
  205. package/base/utilities/_derived-variables.scss +0 -25
  206. package/base/utilities/_initial-variables.scss +0 -215
  207. package/base/utilities/dark-theme.scss +0 -26
  208. package/components/_ac-card.scss +0 -597
  209. package/components/_ac-input.scss +0 -876
  210. package/mixins/stickyContent.js +0 -141
  211. package/plugins/caching.ts +0 -243
  212. package/vue-components/v3/long-running-tasks/LongRunningTaskItem.vue +0 -92
  213. package/vue-components/v3/modals/LongRunningTasksModal.vue +0 -400
  214. package/vue-components/v3/terminal/LongRunningTaskTerminal.vue +0 -148
  215. /package/components/{_ac-report.scss → _report.scss} +0 -0
@@ -0,0 +1,282 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div class="ac-menu-content">
5
+ <slot />
6
+ </div>
7
+ </template>
8
+
9
+ <style lang="scss" scoped>
10
+ .ac-menu-content {
11
+ position: absolute;
12
+ right: 0;
13
+ top: 80px;
14
+ min-width: 180px;
15
+ opacity: 0;
16
+ visibility: hidden;
17
+ transition: 0.3s ease-in;
18
+ width: 260px;
19
+ box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1),
20
+ 0 0px 0 1px rgba(10, 10, 10, 0.02);
21
+
22
+ &.quick-access {
23
+ background-color: $white-100;
24
+ padding: 20px;
25
+ min-width: 260px !important;
26
+ max-height: 250px;
27
+ overflow-y: auto;
28
+ border-radius: 4px;
29
+
30
+ .header {
31
+ display: flex;
32
+ justify-content: space-between;
33
+ align-items: center;
34
+ border-bottom: 1px solid $primary-90;
35
+ padding-bottom: 20px;
36
+
37
+ p {
38
+ font-size: 13px;
39
+ color: $primary-10;
40
+ }
41
+
42
+ button {
43
+ background-color: transparent;
44
+ border: none;
45
+ cursor: pointer;
46
+ color: $primary-20;
47
+ }
48
+ }
49
+
50
+ .body-content {
51
+ margin-top: 20px;
52
+
53
+ p {
54
+ font-size: 13px;
55
+ color: $primary-10;
56
+ }
57
+
58
+ .organizations {
59
+ .organization {
60
+ display: flex;
61
+ align-items: center;
62
+ justify-content: space-between;
63
+ padding: 5px 0;
64
+
65
+ .org-info {
66
+ display: flex;
67
+ align-items: center;
68
+
69
+ img {
70
+ max-width: 30px;
71
+ margin-right: 10px;
72
+ object-fit: cover;
73
+ }
74
+ }
75
+
76
+ .remove {
77
+ border: none;
78
+ padding: 0;
79
+ font-size: 11px;
80
+ color: $danger;
81
+ background-color: transparent;
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+
88
+ &::-webkit-scrollbar {
89
+ width: 7px;
90
+ }
91
+
92
+ /* Track */
93
+ &::-webkit-scrollbar-track {
94
+ background-color: #d1d4de;
95
+ border-radius: 10px;
96
+ }
97
+
98
+ /* Handle */
99
+ &::-webkit-scrollbar-thumb {
100
+ background-color: $primary-80;
101
+ border-radius: 10px;
102
+ }
103
+
104
+ /* Handle on hover */
105
+ &::-webkit-scrollbar-thumb:hover {
106
+ background-color: $primary-80;
107
+ }
108
+
109
+ // &:last-child {
110
+ // right: 0;
111
+ // }
112
+
113
+ &.is-notification {
114
+ right: 0;
115
+ background-color: $white-100;
116
+ box-shadow: 0px 4px 8px rgba(84, 101, 126, 0.2);
117
+ border-radius: 4px;
118
+ min-width: 330px;
119
+ max-height: 400px;
120
+ overflow-y: auto;
121
+
122
+ .notification-header {
123
+ padding: 20px 20px 6px 20px;
124
+ display: flex;
125
+ justify-content: space-between;
126
+ align-items: baseline;
127
+
128
+ .left-content {
129
+ p {
130
+ font-weight: 500;
131
+ font-size: 13px;
132
+ line-height: 19px;
133
+ margin-bottom: 15px;
134
+
135
+ span {
136
+ font-weight: normal;
137
+ }
138
+
139
+ &.date {
140
+ font-size: 11px;
141
+ line-height: 14px;
142
+ font-weight: normal;
143
+ margin-bottom: 0;
144
+ }
145
+ }
146
+ }
147
+
148
+ .right-content {
149
+ .button {
150
+ border: none;
151
+ margin: 0;
152
+ padding: 10px;
153
+ font-size: 13px;
154
+
155
+ &.is-active {
156
+ background-color: $primary;
157
+ color: $white-100;
158
+
159
+ img {
160
+ filter: brightness(100);
161
+ }
162
+ }
163
+
164
+ &:hover {
165
+ background-color: $primary;
166
+ color: $white-100;
167
+
168
+ img {
169
+ filter: brightness(100);
170
+ }
171
+ }
172
+ }
173
+ }
174
+ }
175
+
176
+ .notification-body {
177
+ .single-notification-item {
178
+ display: block;
179
+ border-top: 1px solid $primary-90;
180
+ padding: 15px 20px;
181
+ font-weight: 500;
182
+
183
+ &.is-complete {
184
+ font-weight: 400;
185
+ }
186
+
187
+ &:hover {
188
+ background-color: #d1e3f2;
189
+ }
190
+
191
+ p {
192
+ color: $primary-10;
193
+ font-size: 11px;
194
+ }
195
+
196
+ .notification-status {
197
+ margin-top: 10px;
198
+ display: flex;
199
+ align-items: center;
200
+ justify-content: space-between;
201
+
202
+ p {
203
+ font-size: 11px;
204
+ color: $primary-20;
205
+
206
+ &.is-success {
207
+ color: $success;
208
+ }
209
+
210
+ &.is-danger {
211
+ color: $danger;
212
+ }
213
+
214
+ &.is-warning {
215
+ color: $warning;
216
+ }
217
+ }
218
+ }
219
+ }
220
+ }
221
+
222
+ .see-all-message {
223
+ border-top: 1px solid $primary-90;
224
+ text-align: center;
225
+ font-weight: 500;
226
+ font-size: 13px;
227
+ color: $primary-10;
228
+ display: block;
229
+ padding: 10px 20px;
230
+ }
231
+ }
232
+
233
+ ul {
234
+ background-color: $white-100;
235
+ padding: 0;
236
+ // border-radius: 4px;
237
+ overflow: hidden;
238
+
239
+ li {
240
+ a {
241
+ display: block;
242
+ padding: 8px 15px;
243
+ color: $primary-10;
244
+ transition: 0.3s ease-in-out;
245
+ font-size: 13px;
246
+
247
+ &:hover {
248
+ background-color: $primary-95;
249
+
250
+ p {
251
+ color: $primary !important;
252
+ }
253
+ }
254
+ }
255
+ }
256
+ }
257
+ }
258
+
259
+ .ac-menu-item {
260
+ &.is-active {
261
+ .ac-menu-content {
262
+ opacity: 1;
263
+ visibility: visible;
264
+ top: 35px;
265
+ z-index: 99;
266
+
267
+ &::after {
268
+ position: absolute;
269
+ content: "";
270
+ right: 38px;
271
+ top: -6px;
272
+ background-color: $white-100;
273
+ width: 15px;
274
+ height: 15px;
275
+ transform: rotate(45deg);
276
+ box-shadow: 0px -1px 4px rgba(0, 0, 0, 0.16);
277
+ z-index: -1;
278
+ }
279
+ }
280
+ }
281
+ }
282
+ </style>
@@ -0,0 +1,207 @@
1
+ <script setup lang="ts">
2
+ import { defineAsyncComponent } from "vue";
3
+ import TimeConvert from "../../plugins/time-convert";
4
+ import type { Notification } from "../../types/notification";
5
+ const NavbarItem = defineAsyncComponent(() => import("./NavbarItem.vue"));
6
+ const NavbarItemContent = defineAsyncComponent(
7
+ () => import("./NavbarItemContent.vue")
8
+ );
9
+ withDefaults(
10
+ defineProps<{
11
+ notifications?: Array<Notification>;
12
+ unreadNotification?: number;
13
+ }>(),
14
+ {
15
+ notifications: () => [],
16
+ unreadNotification: 0,
17
+ }
18
+ );
19
+ defineEmits(["isActive"]);
20
+ function notificationTime(time: number) {
21
+ return TimeConvert.getDayDifferences({ past: time });
22
+ }
23
+ </script>
24
+ <template>
25
+ <navbar-item ref="notificationItem" @is-active="$emit('isActive', $event)">
26
+ <template #navbar-item>
27
+ <svg
28
+ width="16"
29
+ height="16"
30
+ viewBox="0 0 16 16"
31
+ fill="none"
32
+ xmlns="http://www.w3.org/2000/svg"
33
+ >
34
+ <g clip-path="url(#clip0_534_14009)">
35
+ <path
36
+ d="M9.15331 14C9.03611 14.2021 8.86787 14.3698 8.66546 14.4864C8.46305 14.603 8.23357 14.6643 7.99998 14.6643C7.76639 14.6643 7.53691 14.603 7.3345 14.4864C7.13208 14.3698 6.96385 14.2021 6.84665 14M14.6666 11.3334H1.33331C1.86375 11.3334 2.37245 11.1227 2.74753 10.7476C3.1226 10.3725 3.33331 9.86381 3.33331 9.33337V6.00004C3.33331 4.76236 3.82498 3.57538 4.70015 2.70021C5.57532 1.82504 6.7623 1.33337 7.99998 1.33337C9.23766 1.33337 10.4246 1.82504 11.2998 2.70021C12.175 3.57538 12.6666 4.76236 12.6666 6.00004V9.33337C12.6666 9.86381 12.8774 10.3725 13.2524 10.7476C13.6275 11.1227 14.1362 11.3334 14.6666 11.3334Z"
37
+ stroke="#061B2D"
38
+ stroke-width="1.5"
39
+ stroke-linecap="round"
40
+ stroke-linejoin="round"
41
+ />
42
+ </g>
43
+ <defs>
44
+ <clipPath id="clip0_534_14009">
45
+ <rect width="16" height="16" fill="white" />
46
+ </clipPath>
47
+ </defs>
48
+ </svg>
49
+
50
+ <span v-if="unreadNotification > 999" class="notification-count"
51
+ >999+</span
52
+ >
53
+ <span v-else-if="unreadNotification !== 0" class="notification-count">{{
54
+ unreadNotification
55
+ }}</span>
56
+ </template>
57
+
58
+ <template #navbar-content>
59
+ <navbar-item-content
60
+ class="navbar-dropdown-wrapper"
61
+ style="width: 320px; right: -30px"
62
+ >
63
+ <div class="dropdown-inner">
64
+ <div class="notification-header">
65
+ <h5>Notification</h5>
66
+ <span>{{ notifications.length }}</span>
67
+ </div>
68
+
69
+ <div class="notification-body ac-scrollbar p-0">
70
+ <a
71
+ v-for="data in notifications"
72
+ href="#"
73
+ class="single-notification"
74
+ :key="data.id"
75
+ >
76
+ <!-- <span class="round-icon">Z</span> -->
77
+ <div class="notification-content">
78
+ <h6>{{ data.msg }}</h6>
79
+ <p>{{ data.status }}</p>
80
+ </div>
81
+ <span>{{ notificationTime(data.time) }}</span>
82
+ </a>
83
+
84
+ <a
85
+ v-if="!notifications.length"
86
+ href="#"
87
+ class="single-notification"
88
+ >
89
+ <!-- <span class="round-icon">Y</span> -->
90
+ <div class="notification-content">
91
+ <h6>No New Notification</h6>
92
+ <p></p>
93
+ </div>
94
+ <span> </span>
95
+ </a>
96
+ </div>
97
+ </div>
98
+ </navbar-item-content>
99
+ </template>
100
+ </navbar-item>
101
+ </template>
102
+
103
+ <style lang="scss" scoped>
104
+ .notification-count {
105
+ position: absolute;
106
+ background-color: $primary;
107
+ color: $white-100;
108
+ padding: 4px;
109
+ font-size: 11px;
110
+ line-height: 1;
111
+ border-radius: 50px;
112
+ min-width: 20px;
113
+ height: 20px;
114
+ right: -10px;
115
+ top: -8px;
116
+ border: 1px solid $primary-97;
117
+ opacity: 1;
118
+ z-index: 9;
119
+ }
120
+ .dropdown-inner {
121
+ border-radius: 4px;
122
+ overflow: hidden;
123
+ background-color: $white-100;
124
+ border: 1px solid $primary-90;
125
+ }
126
+ .notification-header {
127
+ display: flex;
128
+ align-items: center;
129
+ justify-content: space-between;
130
+ border-bottom: 1px solid $primary-90;
131
+ padding: 8px 16px;
132
+ h5 {
133
+ color: $primary-5;
134
+ }
135
+ span {
136
+ display: flex;
137
+ color: $primary-30;
138
+ padding: 2px 8px;
139
+ border-radius: 4px;
140
+ background-color: $primary-95;
141
+ }
142
+ }
143
+ .notification-body {
144
+ max-height: calc(100vh - 100px);
145
+ overflow-y: auto;
146
+ a {
147
+ display: flex;
148
+ color: $primary-20;
149
+ padding: 16px;
150
+ border-bottom: 1px solid $primary-95;
151
+ transition: 0.3s ease-in-out;
152
+ justify-content: space-between;
153
+
154
+ &:hover {
155
+ background-color: $primary-97;
156
+ }
157
+ .round-icon {
158
+ width: 36px;
159
+ height: 36px;
160
+ background-color: $primary-95;
161
+ color: $primary;
162
+ font-size: 14px;
163
+ display: flex;
164
+ align-items: center;
165
+ justify-content: center;
166
+ border-radius: 50%;
167
+ margin-right: 8px;
168
+ line-height: 1;
169
+ font-weight: 500;
170
+ }
171
+
172
+ .notification-content {
173
+ width: calc(100% - 100px);
174
+ h6 {
175
+ font-size: 14px;
176
+ font-weight: 500;
177
+ }
178
+
179
+ p {
180
+ font-size: 12px;
181
+ }
182
+ }
183
+
184
+ span {
185
+ font-size: 11px;
186
+ color: $primary-30;
187
+ }
188
+ }
189
+ }
190
+ .notification-footer {
191
+ button {
192
+ background-color: transparent;
193
+ border: none;
194
+ display: flex;
195
+ align-items: center;
196
+ justify-content: center;
197
+ width: 100%;
198
+ padding: 8px;
199
+ color: $primary;
200
+ cursor: pointer;
201
+ transition: 0.3s ease-in-out;
202
+ &:hover {
203
+ text-decoration: underline;
204
+ }
205
+ }
206
+ }
207
+ </style>