@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.
- package/base/_video-player.scss +65 -0
- package/base/utilities/_all.scss +7 -5
- package/base/utilities/_colors.scss +377 -0
- package/base/utilities/_customize-bulma.scss +23 -27
- package/base/utilities/_extended.scss +39 -0
- package/base/utilities/{_default.scss → _global.scss} +192 -333
- package/base/utilities/_layouts.scss +19 -0
- package/base/utilities/_mixin.scss +11 -11
- package/base/utilities/_spacing.scss +96 -0
- package/base/utilities/_typography.scss +56 -24
- package/components/_ac-alert-box.scss +205 -263
- package/components/_ac-calendar.scss +4 -4
- package/components/_ac-code-highlight.scss +13 -16
- package/components/_ac-content-layout.scss +165 -165
- package/components/_ac-drag.scss +13 -13
- package/components/_ac-modal.scss +212 -212
- package/components/_ac-options.scss +122 -123
- package/components/_ac-select-box.scss +10 -10
- package/components/_ac-table.scss +503 -502
- package/components/_ac-tabs.scss +65 -61
- package/components/_ac-tags.scss +116 -116
- package/components/_accordion.scss +117 -0
- package/components/_add-card.scss +3 -3
- package/components/_all.scss +35 -28
- package/components/_app-drawer.scss +0 -134
- package/components/_breadcumb.scss +0 -71
- package/components/_buttons.scss +779 -779
- package/components/_card-body-wrapper.scss +5 -5
- package/components/_dashboard-header.scss +0 -115
- package/components/_direct-deploy.scss +8 -8
- package/components/_getkeeper.scss +110 -0
- package/components/_go-to-top.scss +1 -1
- package/components/_graph.scss +10 -10
- package/components/_image-upload.scss +9 -9
- package/components/_input-card.scss +232 -0
- package/components/_input.scss +573 -0
- package/components/_left-sidebar-menu.scss +452 -587
- package/components/_monaco-editor.scss +2 -2
- package/components/{_ac-multi-select.scss → _multi-select.scss} +89 -251
- package/components/_navbar.scss +786 -752
- package/components/_nested-list.scss +3 -3
- package/components/_overview-info.scss +10 -10
- package/components/_overview-page.scss +4 -4
- package/components/_pagination.scss +106 -124
- package/components/_payment-card.scss +21 -21
- package/components/_preloader.scss +1 -1
- package/components/_preview-modal.scss +18 -18
- package/components/_pricing-table.scss +14 -14
- package/components/_progress-bar.scss +73 -86
- package/components/_subscription-card.scss +22 -24
- package/components/_table-of-content.scss +8 -8
- package/components/{_ac-terminal.scss → _terminal.scss} +114 -81
- package/components/_tfa.scss +9 -9
- package/components/_transitions.scss +35 -0
- package/components/_widget-menu.scss +252 -257
- package/components/_wizard.scss +518 -793
- package/components/ac-toaster/_ac-toasted.scss +11 -16
- package/components/bbum/_activities-header.scss +1 -1
- package/components/bbum/_card-team.scss +12 -12
- package/components/bbum/_information-center.scss +21 -23
- package/components/bbum/_left-sidebar.scss +8 -8
- package/components/bbum/_mobile-desktop.scss +16 -21
- package/components/bbum/_post.scss +5 -5
- package/components/bbum/_sign-up-notification.scss +10 -10
- package/components/bbum/_single-post-preview.scss +29 -29
- package/components/bbum/_user-profile.scss +10 -10
- package/components/ui-builder/_ui-builder.scss +221 -31
- package/components/ui-builder/_vue-open-api.scss +565 -7
- package/icons/close-icon.svg +3 -0
- package/layouts/_code-preview.scss +17 -18
- package/main.scss +26 -10
- package/package.json +1 -1
- package/plugins/theme.js +11 -9
- package/plugins/vue-toaster.js +1 -1
- package/vue-components/images/icons/cluster-icon.svg +10 -0
- package/vue-components/images/icons/org-icon.svg +10 -0
- package/vue-components/plugins/time-convert.js +49 -0
- package/vue-components/types/cluster.ts +6 -0
- package/vue-components/types/importFlow.ts +16 -0
- package/vue-components/types/notification.ts +6 -0
- package/vue-components/types/previewYaml.ts +8 -0
- package/vue-components/types/table.ts +55 -0
- package/vue-components/types/theme.ts +10 -0
- package/vue-components/types/user.ts +22 -0
- package/vue-components/v2/banner/Banner.vue +1 -1
- package/vue-components/v2/button/Buttons.vue +1 -1
- package/vue-components/v2/card/Card.vue +1 -1
- package/vue-components/v2/card/OverviewCards.vue +17 -2
- package/vue-components/v2/content/ContentTable.vue +14 -9
- package/vue-components/v2/editor/FilteredFileEditor.vue +2 -2
- package/vue-components/v2/editor/ResourceKeyValueEditor.vue +21 -21
- package/vue-components/v2/icons/Ellipsis.vue +2 -1
- package/vue-components/v2/modal/Modal.vue +2 -6
- package/vue-components/v2/navbar/Appdrawer.vue +37 -12
- package/vue-components/v2/navbar/Navbar.vue +3 -3
- package/vue-components/v2/navbar/NavbarItem.vue +3 -1
- package/vue-components/v2/navbar/NavbarItemContent.vue +1 -1
- package/vue-components/v2/navbar/User.vue +5 -22
- package/vue-components/v2/pagination/Pagination.vue +66 -0
- package/vue-components/v2/sidebar/SidebarItem.vue +10 -7
- package/{components/_ac-accordion.scss → vue-components/v3/accordion/Accordion.vue} +40 -6
- package/vue-components/v3/alert/Alert.vue +238 -0
- package/vue-components/v3/alert/Toast.vue +79 -0
- package/vue-components/v3/banner/Banner.vue +10 -0
- package/vue-components/v3/breadcrumbs/Breadcrumb.vue +166 -0
- package/vue-components/v3/button/Button.vue +110 -57
- package/vue-components/v3/button/Buttons.vue +22 -0
- package/vue-components/v3/button/DownloadBtn.vue +31 -0
- package/vue-components/v3/cards/Card.vue +32 -0
- package/vue-components/v3/cards/CardContent.vue +7 -0
- package/vue-components/v3/cards/CardHeader.vue +14 -0
- package/vue-components/v3/cards/Cards.vue +7 -0
- package/vue-components/v3/cards/Cluster.vue +159 -0
- package/vue-components/v3/cards/Counter.vue +39 -0
- package/vue-components/v3/cards/FeatureCard.vue +67 -0
- package/vue-components/v3/cards/FeatureCards.vue +6 -0
- package/vue-components/v3/cards/InfoCard.vue +242 -0
- package/vue-components/v3/cards/Monitoring.vue +90 -0
- package/vue-components/v3/cards/OrgClusterCard.vue +86 -0
- package/vue-components/v3/cards/OverviewCard.vue +28 -0
- package/vue-components/v3/cards/OverviewCards.vue +39 -0
- package/vue-components/v3/cards/Payment.vue +62 -0
- package/vue-components/v3/cards/Vendor.vue +89 -0
- package/vue-components/v3/content/ContentHeader.vue +39 -30
- package/vue-components/v3/content/ContentLayout.vue +20 -0
- package/vue-components/v3/content/ContentTable.vue +44 -58
- package/vue-components/v3/dropdown/DropdownAction.vue +95 -0
- package/vue-components/v3/dropdown/DropdownDivider.vue +2 -0
- package/vue-components/v3/dropdown/DropdownItem.vue +2 -0
- package/vue-components/v3/dropdown/DropdownMenu.vue +85 -91
- package/vue-components/v3/editor/Editor.vue +117 -115
- package/vue-components/v3/editor/FilteredFileEditor.vue +325 -128
- package/vue-components/v3/editor/ResourceKeyValueEditor.vue +73 -94
- package/vue-components/v3/footer/FooterArea.vue +40 -0
- package/vue-components/v3/footer/FooterItem.vue +32 -0
- package/vue-components/v3/footer/FooterItems.vue +15 -0
- package/vue-components/v3/footer/Info.vue +25 -0
- package/vue-components/v3/footer/Status.vue +43 -0
- package/vue-components/v3/footer/Usage.vue +34 -0
- package/vue-components/v3/form/Form.vue +24 -36
- package/vue-components/v3/form/FormFooter.vue +24 -0
- package/vue-components/v3/form/FormFooterControl.vue +7 -0
- package/vue-components/v3/form/FormFooterControls.vue +7 -0
- package/vue-components/v3/form-fields/AcSingleInput.vue +21 -0
- package/vue-components/v3/form-fields/FileUpload.vue +89 -0
- package/vue-components/v3/form-fields/Input.vue +19 -15
- package/vue-components/v3/header/Header.vue +120 -26
- package/vue-components/v3/header/HeaderItem.vue +18 -0
- package/vue-components/v3/header/HeaderItems.vue +4 -0
- package/vue-components/v3/icons/Ellipsis.vue +2 -0
- package/vue-components/v3/loaders/ClusterSwitcherLoader.vue +13 -0
- package/vue-components/v3/loaders/InfoCardLoader.vue +19 -0
- package/vue-components/v3/loaders/ResourceLoader.vue +4 -12
- package/vue-components/v3/loaders/SidebarLoader.vue +4 -12
- package/vue-components/v3/loaders/SingleInfoCardLoader.vue +24 -0
- package/vue-components/v3/modal/Modal.vue +294 -95
- package/vue-components/v3/modals/DeleteConfirmationModal.vue +37 -50
- package/vue-components/v3/modals/JsonShowModal.vue +63 -68
- package/vue-components/v3/navbar/Appdrawer.vue +198 -51
- package/vue-components/v3/navbar/Navbar.vue +139 -0
- package/vue-components/v3/navbar/NavbarItem.vue +103 -0
- package/vue-components/v3/navbar/NavbarItemContent.vue +282 -0
- package/vue-components/v3/navbar/Notification.vue +207 -0
- package/vue-components/v3/navbar/ThemeMode.vue +128 -112
- package/vue-components/v3/navbar/User.vue +394 -267
- package/vue-components/v3/notification/AlertBox.vue +266 -39
- package/vue-components/v3/notification/Notification.vue +50 -44
- package/vue-components/v3/notification/NotificationItem.vue +51 -19
- package/vue-components/v3/option-dots/Options.vue +197 -0
- package/vue-components/v3/pagination/Pagination.vue +216 -102
- package/vue-components/v3/preloader/Preloader.vue +23 -0
- package/vue-components/v3/searchbars/SearchBar.vue +50 -34
- package/vue-components/v3/sidebar/AccentColorPicker.vue +97 -0
- package/vue-components/v3/sidebar/ClusterSwitcher.vue +71 -86
- package/vue-components/v3/sidebar/Sidebar.vue +239 -0
- package/vue-components/v3/sidebar/SidebarBody.vue +14 -0
- package/vue-components/v3/sidebar/SidebarFooter.vue +89 -0
- package/vue-components/v3/sidebar/SidebarHeader.vue +131 -0
- package/vue-components/v3/sidebar/SidebarItem.vue +62 -0
- package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +101 -104
- package/vue-components/v3/sidebar/SidebarMenuList.vue +9 -0
- package/vue-components/v3/sidebar/Steps.vue +152 -0
- package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabs.vue +204 -0
- package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +44 -0
- package/vue-components/v3/sidebar/sidebar-tabs/TabsContent.vue +99 -0
- package/vue-components/v3/tab/TabItem.vue +10 -12
- package/vue-components/v3/tab/Tabs.vue +36 -0
- package/vue-components/v3/tab/TabsBody.vue +7 -0
- package/vue-components/v3/table/EmptyTableInfo.vue +8 -0
- package/vue-components/v3/table/FakeTableCell.vue +22 -31
- package/vue-components/v3/table/InfoTable.vue +89 -61
- package/vue-components/v3/table/MultiInfoTable.vue +72 -95
- package/vue-components/v3/table/Table.vue +596 -157
- package/vue-components/v3/table/TableCell.vue +13 -24
- package/vue-components/v3/table/TableContainer.vue +50 -28
- package/vue-components/v3/table/TableRow.vue +65 -87
- package/vue-components/v3/table/table-cell/ArrayCell.vue +94 -103
- package/vue-components/v3/table/table-cell/CellValue.vue +74 -106
- package/vue-components/v3/table/table-cell/GenericCell.vue +43 -42
- package/vue-components/v3/table/table-cell/ObjectCell.vue +91 -101
- package/vue-components/v3/table/table-cell/ValueWithModal.vue +22 -31
- package/vue-components/v3/tabs/EditorTabs.vue +18 -24
- package/vue-components/v3/tag/Tag.vue +16 -12
- package/vue-components/v3/tag/Tags.vue +7 -0
- package/base/utilities/_derived-variables.scss +0 -25
- package/base/utilities/_initial-variables.scss +0 -215
- package/base/utilities/dark-theme.scss +0 -26
- package/components/_ac-card.scss +0 -597
- package/components/_ac-input.scss +0 -876
- package/mixins/stickyContent.js +0 -141
- package/plugins/caching.ts +0 -243
- package/vue-components/v3/long-running-tasks/LongRunningTaskItem.vue +0 -92
- package/vue-components/v3/modals/LongRunningTasksModal.vue +0 -400
- package/vue-components/v3/terminal/LongRunningTaskTerminal.vue +0 -148
- /package/components/{_ac-report.scss → _report.scss} +0 -0
|
@@ -1,63 +1,210 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineAsyncComponent } from "vue";
|
|
3
|
+
interface app {
|
|
4
|
+
url: string;
|
|
5
|
+
icon_url: string;
|
|
6
|
+
title: string;
|
|
7
|
+
sub_title: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface Props {
|
|
11
|
+
apps?: Array<app>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
withDefaults(defineProps<Props>(), {
|
|
15
|
+
apps: () => [],
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const NavbarItem = defineAsyncComponent(() => import("./NavbarItem.vue"));
|
|
19
|
+
const NavbarItemContent = defineAsyncComponent(
|
|
20
|
+
() => import("./NavbarItemContent.vue")
|
|
21
|
+
);
|
|
22
|
+
</script>
|
|
23
|
+
|
|
1
24
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
class="drawer-icon is-flex is-justify-content-center is-align-items-center"
|
|
5
|
-
>
|
|
25
|
+
<navbar-item>
|
|
26
|
+
<template #navbar-item>
|
|
6
27
|
<svg
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
viewBox="0 0
|
|
10
|
-
|
|
11
|
-
|
|
28
|
+
width="16"
|
|
29
|
+
height="16"
|
|
30
|
+
viewBox="0 0 16 16"
|
|
31
|
+
fill="none"
|
|
32
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
33
|
>
|
|
13
34
|
<path
|
|
14
|
-
d="M6
|
|
15
|
-
|
|
35
|
+
d="M6.66667 2H2V6.66667H6.66667V2Z"
|
|
36
|
+
stroke="#061B2D"
|
|
37
|
+
stroke-width="1.5"
|
|
38
|
+
stroke-linecap="round"
|
|
39
|
+
stroke-linejoin="round"
|
|
40
|
+
/>
|
|
41
|
+
<path
|
|
42
|
+
d="M14 2H9.33337V6.66667H14V2Z"
|
|
43
|
+
stroke="#061B2D"
|
|
44
|
+
stroke-width="1.5"
|
|
45
|
+
stroke-linecap="round"
|
|
46
|
+
stroke-linejoin="round"
|
|
47
|
+
/>
|
|
48
|
+
<path
|
|
49
|
+
d="M14 9.33334H9.33337V14H14V9.33334Z"
|
|
50
|
+
stroke="#061B2D"
|
|
51
|
+
stroke-width="1.5"
|
|
52
|
+
stroke-linecap="round"
|
|
53
|
+
stroke-linejoin="round"
|
|
54
|
+
/>
|
|
55
|
+
<path
|
|
56
|
+
d="M6.66667 9.33334H2V14H6.66667V9.33334Z"
|
|
57
|
+
stroke="#061B2D"
|
|
58
|
+
stroke-width="1.5"
|
|
59
|
+
stroke-linecap="round"
|
|
60
|
+
stroke-linejoin="round"
|
|
61
|
+
/>
|
|
16
62
|
</svg>
|
|
17
|
-
</
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</p>
|
|
28
|
-
</figure>
|
|
29
|
-
<div class="media-content">
|
|
30
|
-
<div class="content">
|
|
31
|
-
<p>
|
|
32
|
-
<strong>{{ app.title }}</strong>
|
|
33
|
-
<span>{{ app.sub_title }}</span>
|
|
63
|
+
</template>
|
|
64
|
+
<template #navbar-content>
|
|
65
|
+
<navbar-item-content class="navbar-dropdown-wrapper" style="right: -30px">
|
|
66
|
+
<ul class="ac-scrollbar p-0">
|
|
67
|
+
<li v-for="app in apps" :key="app.url">
|
|
68
|
+
<a :href="app.url">
|
|
69
|
+
<article class="media">
|
|
70
|
+
<figure class="media-left">
|
|
71
|
+
<p class="image">
|
|
72
|
+
<img :src="app.icon_url" />
|
|
34
73
|
</p>
|
|
74
|
+
</figure>
|
|
75
|
+
<div class="media-content">
|
|
76
|
+
<div class="content">
|
|
77
|
+
<p>
|
|
78
|
+
<strong>{{ app.title }}</strong>
|
|
79
|
+
<span>{{ app.sub_title }}</span>
|
|
80
|
+
</p>
|
|
81
|
+
</div>
|
|
35
82
|
</div>
|
|
36
|
-
</
|
|
37
|
-
</
|
|
38
|
-
</
|
|
39
|
-
</
|
|
40
|
-
</
|
|
41
|
-
</
|
|
42
|
-
</
|
|
83
|
+
</article>
|
|
84
|
+
</a>
|
|
85
|
+
</li>
|
|
86
|
+
</ul>
|
|
87
|
+
</navbar-item-content>
|
|
88
|
+
</template>
|
|
89
|
+
</navbar-item>
|
|
43
90
|
</template>
|
|
44
91
|
|
|
45
|
-
<
|
|
46
|
-
|
|
92
|
+
<style lang="scss" scoped>
|
|
93
|
+
.ac-menu-content.app-drawer-dropdown {
|
|
94
|
+
li {
|
|
95
|
+
border-bottom: 1px solid $primary-90;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ac-menu-content {
|
|
100
|
+
ul {
|
|
101
|
+
border-radius: 4px;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
background-color: $white-100;
|
|
104
|
+
border: 1px solid $primary-90;
|
|
105
|
+
// box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.16);
|
|
106
|
+
max-height: calc(100vh - 100px);
|
|
107
|
+
overflow-y: auto;
|
|
108
|
+
|
|
109
|
+
li {
|
|
110
|
+
display: block;
|
|
111
|
+
font-size: 13px;
|
|
112
|
+
a {
|
|
113
|
+
display: block;
|
|
114
|
+
color: $primary-10 !important;
|
|
115
|
+
padding: 10px 20px !important;
|
|
116
|
+
font-size: 13px !important;
|
|
117
|
+
transition: 0.2s;
|
|
118
|
+
border-bottom: 1px solid $primary-90;
|
|
119
|
+
|
|
120
|
+
&:hover {
|
|
121
|
+
background-color: $primary-97 !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
span {
|
|
125
|
+
margin-top: -3px;
|
|
126
|
+
}
|
|
47
127
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
128
|
+
&:hover {
|
|
129
|
+
.media-content {
|
|
130
|
+
.content {
|
|
131
|
+
p {
|
|
132
|
+
color: $primary-20;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.media {
|
|
139
|
+
.media-left {
|
|
140
|
+
.image {
|
|
141
|
+
img {
|
|
142
|
+
height: 24px;
|
|
143
|
+
width: auto;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.media-content {
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
|
|
151
|
+
.content {
|
|
152
|
+
p {
|
|
153
|
+
vertical-align: middle;
|
|
154
|
+
line-height: 1;
|
|
155
|
+
transition: 0.3s;
|
|
156
|
+
|
|
157
|
+
strong {
|
|
158
|
+
font-weight: 600;
|
|
159
|
+
font-size: 14px;
|
|
160
|
+
// font-family: $font-heading;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
span {
|
|
164
|
+
display: block;
|
|
165
|
+
font-size: 13px;
|
|
166
|
+
margin-top: 4px;
|
|
167
|
+
line-height: 150%;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&:hover {
|
|
176
|
+
> a {
|
|
177
|
+
background-color: $white-100;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&:first-child {
|
|
182
|
+
&:hover {
|
|
183
|
+
> a {
|
|
184
|
+
border-radius: 4px 4px 0 0;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&:last-child {
|
|
190
|
+
&:hover {
|
|
191
|
+
> a {
|
|
192
|
+
border-radius: 0 0 4px 4px;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
53
196
|
}
|
|
54
|
-
},
|
|
55
|
-
components: {
|
|
56
|
-
NavbarItemContent: defineAsyncComponent(() =>
|
|
57
|
-
import("../../v2/navbar/NavbarItemContent.vue").then(
|
|
58
|
-
module => module.default
|
|
59
|
-
)
|
|
60
|
-
)
|
|
61
197
|
}
|
|
62
|
-
|
|
63
|
-
|
|
198
|
+
|
|
199
|
+
position: absolute;
|
|
200
|
+
z-index: 99;
|
|
201
|
+
right: -154px;
|
|
202
|
+
top: 50px;
|
|
203
|
+
display: block;
|
|
204
|
+
transition: all 0.3s ease-in-out;
|
|
205
|
+
|
|
206
|
+
hr {
|
|
207
|
+
margin: 0;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
</style>
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
interface Props {
|
|
3
|
+
modifierClasses?: string;
|
|
4
|
+
fullWidth?: boolean;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
withDefaults(defineProps<Props>(), {
|
|
8
|
+
modifierClasses: "",
|
|
9
|
+
fullWidth: false,
|
|
10
|
+
});
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div
|
|
15
|
+
class="ac-navbar-area"
|
|
16
|
+
id="header"
|
|
17
|
+
:class="[modifierClasses, { 'is-full': fullWidth }]"
|
|
18
|
+
>
|
|
19
|
+
<div class="ac-navbar-inner">
|
|
20
|
+
<!-- navbar start -->
|
|
21
|
+
<nav class="ac-navbar">
|
|
22
|
+
<!-- navbar logo start -->
|
|
23
|
+
<div class="ac-navbar-brand" v-if="fullWidth">
|
|
24
|
+
<slot name="navbar-brand-logo" />
|
|
25
|
+
</div>
|
|
26
|
+
<!-- navbar logo end -->
|
|
27
|
+
|
|
28
|
+
<!-- navbar cluster-switcher area start -->
|
|
29
|
+
<div class="ac-navbar-cluster-switcher">
|
|
30
|
+
<slot name="navbar-cluster-switcher" />
|
|
31
|
+
</div>
|
|
32
|
+
<!-- navbar cluster-switcher area end -->
|
|
33
|
+
|
|
34
|
+
<!-- navbar menus start -->
|
|
35
|
+
<div class="ac-navbar-menu">
|
|
36
|
+
<!-- single navbar menu item start -->
|
|
37
|
+
<slot />
|
|
38
|
+
<!-- single navbar menu item end -->
|
|
39
|
+
</div>
|
|
40
|
+
<!-- navbar menus end -->
|
|
41
|
+
</nav>
|
|
42
|
+
<!-- navbar end -->
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<style lang="scss" scoped>
|
|
48
|
+
.ac-navbar-area {
|
|
49
|
+
position: fixed;
|
|
50
|
+
margin-left: 250px;
|
|
51
|
+
width: 100%;
|
|
52
|
+
top: 0;
|
|
53
|
+
z-index: 999;
|
|
54
|
+
background-color: $primary-97;
|
|
55
|
+
border-bottom: 1px solid $primary-90;
|
|
56
|
+
|
|
57
|
+
&.is-full {
|
|
58
|
+
margin-left: 0;
|
|
59
|
+
|
|
60
|
+
.ac-navbar {
|
|
61
|
+
grid-template-columns: 250px auto auto;
|
|
62
|
+
width: 100%;
|
|
63
|
+
gap: 20px;
|
|
64
|
+
.ac-navbar-brand {
|
|
65
|
+
padding-left: 15px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ac-navbar {
|
|
71
|
+
display: inline-grid;
|
|
72
|
+
grid-template-columns: auto auto;
|
|
73
|
+
// margin-left: 255px;
|
|
74
|
+
grid-gap: 0px;
|
|
75
|
+
align-items: center;
|
|
76
|
+
width: calc(100% - 255px);
|
|
77
|
+
height: 50px;
|
|
78
|
+
// padding: 0 15px;
|
|
79
|
+
|
|
80
|
+
.ac-navbar-brand {
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
.logo {
|
|
84
|
+
font-size: 20px;
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
color: $white-100;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
img {
|
|
90
|
+
height: 30px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.ac-navbar-cluster-switcher {
|
|
94
|
+
max-width: 350px;
|
|
95
|
+
}
|
|
96
|
+
.ac-navbar-menu {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: flex-end;
|
|
100
|
+
|
|
101
|
+
.ac-menu-item {
|
|
102
|
+
position: relative;
|
|
103
|
+
z-index: 1;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
// for sidebar-collapsed
|
|
109
|
+
.sidebar-collapsed {
|
|
110
|
+
.ac-navbar {
|
|
111
|
+
.ac-navbar-brand {
|
|
112
|
+
padding-left: 70px !important;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/****************************************
|
|
118
|
+
Responsive Classes
|
|
119
|
+
*****************************************/
|
|
120
|
+
// Extra small devices (portrait phones, less than 576px)
|
|
121
|
+
@media (max-width: 575.98px) {
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Small devices (landscape phones, 576px and up)
|
|
125
|
+
@media (min-width: 576px) and (max-width: 767.98px) {
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Medium devices (tablets, 768px and up)
|
|
129
|
+
@media (min-width: 768px) and (max-width: 991.98px) {
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// Large devices (desktops, 992px and up)
|
|
133
|
+
@media (min-width: 992px) and (max-width: 1199.98px) {
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Extra large devices (large desktops, 1200px and up)
|
|
137
|
+
@media (min-width: 1200px) {
|
|
138
|
+
}
|
|
139
|
+
</style>
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from "vue";
|
|
3
|
+
import { onClickOutside } from "@vueuse/core";
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
modifierClasses?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
withDefaults(defineProps<Props>(), {
|
|
10
|
+
modifierClasses: "",
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const emit = defineEmits(["isActive"]);
|
|
14
|
+
|
|
15
|
+
const navbarItem = ref(null);
|
|
16
|
+
|
|
17
|
+
const isActive = ref("");
|
|
18
|
+
function clickEvent() {
|
|
19
|
+
if (isActive.value) isActive.value = "";
|
|
20
|
+
else isActive.value = " is-active";
|
|
21
|
+
emit("isActive", isActive.value);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
onClickOutside(navbarItem, () => (isActive.value = ""));
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<template>
|
|
28
|
+
<div
|
|
29
|
+
ref="navbarItem"
|
|
30
|
+
class="ac-menu-item"
|
|
31
|
+
:class="modifierClasses + isActive"
|
|
32
|
+
>
|
|
33
|
+
<button class="button ac-nav-button" @click="clickEvent()">
|
|
34
|
+
<slot name="navbar-item" />
|
|
35
|
+
</button>
|
|
36
|
+
<slot name="navbar-content" />
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<style lang="scss" scoped>
|
|
41
|
+
.ac-menu-item {
|
|
42
|
+
margin-left: 8px;
|
|
43
|
+
position: relative;
|
|
44
|
+
|
|
45
|
+
&.is-active {
|
|
46
|
+
.ac-nav-button {
|
|
47
|
+
&::after {
|
|
48
|
+
background-color: $primary-90;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:first-child {
|
|
54
|
+
margin-left: 0;
|
|
55
|
+
}
|
|
56
|
+
&.ac-profile-button {
|
|
57
|
+
button.button.ac-nav-button {
|
|
58
|
+
width: 100%;
|
|
59
|
+
background-color: transparent;
|
|
60
|
+
border-radius: 0;
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
border: none;
|
|
63
|
+
&::after {
|
|
64
|
+
border-radius: 0;
|
|
65
|
+
border: none;
|
|
66
|
+
background-color: transparent;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
.ac-nav-button {
|
|
71
|
+
width: 32px;
|
|
72
|
+
height: 32px;
|
|
73
|
+
border-radius: 50%;
|
|
74
|
+
padding: 5px;
|
|
75
|
+
transition: all 0.3s ease-in-out;
|
|
76
|
+
position: relative;
|
|
77
|
+
z-index: 99;
|
|
78
|
+
user-select: none;
|
|
79
|
+
border: 1px solid $primary-80;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
&:after {
|
|
82
|
+
position: absolute;
|
|
83
|
+
content: "";
|
|
84
|
+
left: 0;
|
|
85
|
+
top: 0;
|
|
86
|
+
opacity: 1;
|
|
87
|
+
z-index: -1;
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: 100%;
|
|
90
|
+
border-radius: 50%;
|
|
91
|
+
transition: 0.3s ease-in-out;
|
|
92
|
+
}
|
|
93
|
+
&:focus {
|
|
94
|
+
box-shadow: none;
|
|
95
|
+
}
|
|
96
|
+
&:hover {
|
|
97
|
+
&:after {
|
|
98
|
+
background-color: $primary-90;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
</style>
|