@appscode/design-system 1.1.0 → 2.0.1
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 +431 -268
- 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
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
interface Props {
|
|
3
|
+
title?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
modifierClasses?: string;
|
|
6
|
+
roundedThumbnail?: boolean;
|
|
7
|
+
thumbnail?: string;
|
|
8
|
+
url?: string;
|
|
9
|
+
urlLabel?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
withDefaults(defineProps<Props>(), {
|
|
13
|
+
title: "no-title",
|
|
14
|
+
type: "organization",
|
|
15
|
+
modifierClasses: "",
|
|
16
|
+
roundedThumbnail: true,
|
|
17
|
+
thumbnail: "https://via.placeholder.com/80/dddddd/808080",
|
|
18
|
+
url: "#",
|
|
19
|
+
urlLabel: "Details",
|
|
20
|
+
});
|
|
21
|
+
</script>
|
|
22
|
+
<template>
|
|
23
|
+
<div class="card-details is-clickable" :class="modifierClasses">
|
|
24
|
+
<div class="left-content">
|
|
25
|
+
<figure class="image is-64x64">
|
|
26
|
+
<img :class="{ 'is-rounded': roundedThumbnail }" :src="thumbnail" />
|
|
27
|
+
</figure>
|
|
28
|
+
<h5>{{ title }}</h5>
|
|
29
|
+
<a :href="url" class="is-underlined has-text-weight-medium">
|
|
30
|
+
{{ urlLabel }}
|
|
31
|
+
</a>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="right-content">
|
|
34
|
+
<figure class="image is-64x64">
|
|
35
|
+
<img
|
|
36
|
+
v-if="type === 'organization'"
|
|
37
|
+
src="../../images/icons/org-icon.svg"
|
|
38
|
+
/>
|
|
39
|
+
<img v-else src="../../images/icons/cluster-icon.svg" />
|
|
40
|
+
</figure>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
<style lang="scss" scoped>
|
|
45
|
+
.card-details {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: flex-end;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
border: 1px solid $primary-90;
|
|
50
|
+
padding: 32px 20px;
|
|
51
|
+
border-radius: 4px;
|
|
52
|
+
transition: 0.3s ease-in-out;
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
border: 1px solid $primary;
|
|
56
|
+
|
|
57
|
+
.right-content {
|
|
58
|
+
img {
|
|
59
|
+
filter: grayscale(0);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.left-content {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
align-items: flex-start;
|
|
68
|
+
gap: 16px;
|
|
69
|
+
justify-content: space-between;
|
|
70
|
+
|
|
71
|
+
.image {
|
|
72
|
+
border-radius: 50%;
|
|
73
|
+
|
|
74
|
+
&:has(.is-rounded) {
|
|
75
|
+
box-shadow: inset 0 0 0 1px hsla(0, 0%, 0%, 0.1);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.right-content {
|
|
81
|
+
img {
|
|
82
|
+
filter: grayscale(1);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
</style>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script setup lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<template>
|
|
4
|
+
<div class="card-data">
|
|
5
|
+
<p>
|
|
6
|
+
<slot name="card-label" />
|
|
7
|
+
</p>
|
|
8
|
+
<strong>
|
|
9
|
+
<slot name="card-value" />
|
|
10
|
+
</strong>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<style lang="scss" scoped>
|
|
15
|
+
.card-data {
|
|
16
|
+
// min-width: 200px;
|
|
17
|
+
align-items: center;
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
border: 1px solid $primary-90;
|
|
21
|
+
padding: 8px 16px;
|
|
22
|
+
border-radius: 2px;
|
|
23
|
+
strong {
|
|
24
|
+
min-width: 30px;
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineAsyncComponent } from "vue";
|
|
3
|
+
|
|
4
|
+
const ContentHeader = defineAsyncComponent(
|
|
5
|
+
() => import("./../content/ContentHeader.vue")
|
|
6
|
+
);
|
|
7
|
+
|
|
8
|
+
interface Props {
|
|
9
|
+
headerTitle: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
withDefaults(defineProps<Props>(), {
|
|
13
|
+
headerTitle: "",
|
|
14
|
+
});
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<div class="overview-cards-wrapper">
|
|
19
|
+
<!-- title -->
|
|
20
|
+
<content-header :headerTitle="headerTitle"></content-header>
|
|
21
|
+
<!-- title -->
|
|
22
|
+
<div class="overview-cards b-t-1">
|
|
23
|
+
<slot />
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
<style lang="scss" scoped>
|
|
28
|
+
.overview-cards-wrapper {
|
|
29
|
+
border: 1px solid $primary-90;
|
|
30
|
+
margin-right: 20px;
|
|
31
|
+
height: calc(100% - 16px);
|
|
32
|
+
}
|
|
33
|
+
.overview-cards {
|
|
34
|
+
display: grid;
|
|
35
|
+
gap: 8px;
|
|
36
|
+
grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
|
|
37
|
+
padding: 16px;
|
|
38
|
+
}
|
|
39
|
+
</style>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<script setup lang="ts"></script>
|
|
2
|
+
<template>
|
|
3
|
+
<div class="ac-payment-card-wrapper">
|
|
4
|
+
<!-- single card start -->
|
|
5
|
+
<div class="ac-payment-card payment-bg-2">
|
|
6
|
+
<div class="payment-card-inner">
|
|
7
|
+
<!-- card header start -->
|
|
8
|
+
<div class="payment-card-header">
|
|
9
|
+
<div class="card-left">
|
|
10
|
+
<div class="expired-notice">
|
|
11
|
+
<p>Expire Soon</p>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
<!-- header-right start -->
|
|
15
|
+
<div class="card-right">
|
|
16
|
+
<div class="ac-options is-right">
|
|
17
|
+
<div class="option-dots">
|
|
18
|
+
<span></span>
|
|
19
|
+
<span></span>
|
|
20
|
+
<span></span>
|
|
21
|
+
</div>
|
|
22
|
+
<!-- dropdown Item start -->
|
|
23
|
+
<!-- use "is-hidden" class in the line below for hide dropdown element -->
|
|
24
|
+
<ul class="options-items is-hidden">
|
|
25
|
+
<li><a href="#">Make as default</a></li>
|
|
26
|
+
<li><a href="#">Delete card</a></li>
|
|
27
|
+
</ul>
|
|
28
|
+
<!-- dropdown Item end -->
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<!-- header-right end -->
|
|
32
|
+
</div>
|
|
33
|
+
<!-- card header end -->
|
|
34
|
+
<!-- card body start -->
|
|
35
|
+
<div class="payment-card-body">
|
|
36
|
+
<p class="p-card-number is-star">****</p>
|
|
37
|
+
<p class="p-card-number is-star">****</p>
|
|
38
|
+
<p class="p-card-number is-star">****</p>
|
|
39
|
+
<p class="p-card-number">2296</p>
|
|
40
|
+
</div>
|
|
41
|
+
<!-- card body end -->
|
|
42
|
+
<!-- card footer start -->
|
|
43
|
+
<div class="payment-card-footer">
|
|
44
|
+
<div class="left-content">
|
|
45
|
+
<div class="p-card-expiry">
|
|
46
|
+
<p>Expiry Date <span>12/20</span></p>
|
|
47
|
+
</div>
|
|
48
|
+
<p class="user-name">John Smith</p>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="p-card-logo">
|
|
51
|
+
<img
|
|
52
|
+
src="https://bb-developer-v1.web.app/_nuxt/img/visa-card-logo.6a56d8c.svg"
|
|
53
|
+
alt="visa-card"
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
<!-- card footer end -->
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<!-- single card end -->
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
interface Props {
|
|
3
|
+
title?: string;
|
|
4
|
+
subTitle?: string;
|
|
5
|
+
logo?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
withDefaults(defineProps<Props>(), {
|
|
9
|
+
title: "no title",
|
|
10
|
+
subTitle: "",
|
|
11
|
+
logo: "https://bb-developer-v1.web.app/_nuxt/img/azure-logo.4fa9281.svg",
|
|
12
|
+
});
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<!-- use "is-selected" for select item -->
|
|
17
|
+
<div class="ac-single-card has-text-centered">
|
|
18
|
+
<div class="ac-card-logo">
|
|
19
|
+
<div class="card-status" />
|
|
20
|
+
<img :src="logo" alt="vendor logo" />
|
|
21
|
+
</div>
|
|
22
|
+
<div class="ac-card-name">
|
|
23
|
+
<p>{{ title }}</p>
|
|
24
|
+
<p v-if="subTitle" class="has-text-weight-normal mt-8">
|
|
25
|
+
{{ subTitle }}
|
|
26
|
+
</p>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<style lang="scss" scoped>
|
|
32
|
+
.ac-single-card {
|
|
33
|
+
border: 1px solid $primary-90;
|
|
34
|
+
transition: 0.3s ease-in-out;
|
|
35
|
+
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
background-color: $primary-97;
|
|
40
|
+
min-width: 215px;
|
|
41
|
+
padding: 30px 20px 20px;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
|
|
44
|
+
.ac-card-name {
|
|
45
|
+
p {
|
|
46
|
+
font-size: 13px;
|
|
47
|
+
color: $primary-10;
|
|
48
|
+
line-height: 1;
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
|
|
51
|
+
&.free {
|
|
52
|
+
color: $primary;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
.ac-card-logo {
|
|
57
|
+
width: 70px;
|
|
58
|
+
height: 70px;
|
|
59
|
+
border: 1px solid $primary-90;
|
|
60
|
+
background-color: $white-100;
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
padding: 16px;
|
|
63
|
+
margin-inline: auto;
|
|
64
|
+
margin-bottom: 20px;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
|
|
69
|
+
img {
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: auto;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&.is-selected {
|
|
75
|
+
border: 1px solid $primary !important;
|
|
76
|
+
}
|
|
77
|
+
&:hover {
|
|
78
|
+
border: 1px solid $primary;
|
|
79
|
+
|
|
80
|
+
.ac-card-title {
|
|
81
|
+
h4 {
|
|
82
|
+
a {
|
|
83
|
+
color: $primary;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
</style>
|
|
@@ -1,14 +1,34 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineAsyncComponent } from "vue";
|
|
3
|
+
|
|
4
|
+
const HeaderItems = defineAsyncComponent(
|
|
5
|
+
() => import("./../header/HeaderItems.vue")
|
|
6
|
+
);
|
|
7
|
+
|
|
8
|
+
interface Props {
|
|
9
|
+
headerTitle?: string;
|
|
10
|
+
headerSubTitle?: string;
|
|
11
|
+
removeBorderBottom?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
withDefaults(defineProps<Props>(), {
|
|
15
|
+
headerTitle: "Content Header",
|
|
16
|
+
headerSubTitle: "",
|
|
17
|
+
removeBorderBottom: false,
|
|
18
|
+
});
|
|
19
|
+
</script>
|
|
20
|
+
|
|
1
21
|
<template>
|
|
2
|
-
<div class="ac-content-header"
|
|
22
|
+
<div class="ac-content-header">
|
|
3
23
|
<!-- header left start -->
|
|
4
24
|
<div class="ac-cheader-left">
|
|
5
25
|
<!-- title -->
|
|
6
26
|
<div class="ac-content-title">
|
|
7
|
-
<
|
|
27
|
+
<h5 class="is-flex is-align-items-center gap-8">
|
|
8
28
|
<slot name="header-icon" />
|
|
9
29
|
{{ headerTitle }}
|
|
10
30
|
<slot name="title-right-actions" />
|
|
11
|
-
</
|
|
31
|
+
</h5>
|
|
12
32
|
<p v-if="headerSubTitle">{{ headerSubTitle }}</p>
|
|
13
33
|
</div>
|
|
14
34
|
<!-- title -->
|
|
@@ -26,30 +46,19 @@
|
|
|
26
46
|
<!-- header right end -->
|
|
27
47
|
</div>
|
|
28
48
|
</template>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
default: false,
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
components: {
|
|
50
|
-
HeaderItems: defineAsyncComponent(() =>
|
|
51
|
-
import("../../v2/header/HeaderItems.vue").then((module) => module.default)
|
|
52
|
-
),
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
</script>
|
|
49
|
+
<style lang="scss" scoped>
|
|
50
|
+
.ac-content-header {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
padding: 4px 20px;
|
|
55
|
+
min-height: 40px;
|
|
56
|
+
.ac-content-title {
|
|
57
|
+
h4,
|
|
58
|
+
h5,
|
|
59
|
+
h6 {
|
|
60
|
+
color: $primary-10;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
</style>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script setup lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<template>
|
|
4
|
+
<div class="ac-content-layout">
|
|
5
|
+
<slot name="content-header" />
|
|
6
|
+
|
|
7
|
+
<div class="ac-content">
|
|
8
|
+
<slot />
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
<style lang="scss">
|
|
13
|
+
.ac-content-layout {
|
|
14
|
+
// margin: 20px;
|
|
15
|
+
// margin-top: 8px;
|
|
16
|
+
// border: 1px solid $primary-95;
|
|
17
|
+
margin-bottom: 16px;
|
|
18
|
+
border-radius: 4px;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineAsyncComponent, ref } from "vue";
|
|
3
|
+
|
|
4
|
+
const ContentLayout = defineAsyncComponent(() => import("./ContentLayout.vue"));
|
|
5
|
+
const ContentHeader = defineAsyncComponent(() => import("./ContentHeader.vue"));
|
|
6
|
+
const HeaderItem = defineAsyncComponent(
|
|
7
|
+
() => import("./../header/HeaderItem.vue")
|
|
8
|
+
);
|
|
9
|
+
const SearchBar = defineAsyncComponent(
|
|
10
|
+
() => import("./../searchbars/SearchBar.vue")
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
interface Props {
|
|
14
|
+
removeTableHeaderPadding?: boolean;
|
|
15
|
+
tableTitle?: string;
|
|
16
|
+
tableSubTitle?: string;
|
|
17
|
+
searchable?: boolean;
|
|
18
|
+
hideHeader?: boolean;
|
|
19
|
+
removeBorderBottom?: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
23
|
+
removeTableHeaderPadding: false,
|
|
24
|
+
tableTitle: "Table",
|
|
25
|
+
tableSubTitle: "",
|
|
26
|
+
searchable: false,
|
|
27
|
+
hideHeader: false,
|
|
28
|
+
removeBorderBottom: false,
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const acInuptId = props.tableTitle.trim()?.replace(/ /g, "-")?.toLowerCase();
|
|
32
|
+
const searchText = ref("");
|
|
33
|
+
|
|
34
|
+
const updateSearchText = (text: string) => {
|
|
35
|
+
searchText.value = text;
|
|
36
|
+
};
|
|
37
|
+
</script>
|
|
38
|
+
|
|
1
39
|
<template>
|
|
2
40
|
<content-layout>
|
|
3
41
|
<template #content-header>
|
|
@@ -5,6 +43,7 @@
|
|
|
5
43
|
v-if="!hideHeader"
|
|
6
44
|
:header-title="tableTitle"
|
|
7
45
|
:header-sub-title="tableSubTitle"
|
|
46
|
+
:remove-border-bottom="removeBorderBottom"
|
|
8
47
|
:class="{ 'pl-0 pr-0': removeTableHeaderPadding }"
|
|
9
48
|
>
|
|
10
49
|
<template #title-right-actions>
|
|
@@ -12,7 +51,11 @@
|
|
|
12
51
|
</template>
|
|
13
52
|
<slot name="content-left-controls" />
|
|
14
53
|
<header-item>
|
|
15
|
-
<search-bar
|
|
54
|
+
<search-bar
|
|
55
|
+
v-if="searchable"
|
|
56
|
+
@search="updateSearchText"
|
|
57
|
+
:ac-input-id="acInuptId"
|
|
58
|
+
/>
|
|
16
59
|
</header-item>
|
|
17
60
|
<slot name="content-right-controls" />
|
|
18
61
|
</content-header>
|
|
@@ -24,60 +67,3 @@
|
|
|
24
67
|
/>
|
|
25
68
|
</content-layout>
|
|
26
69
|
</template>
|
|
27
|
-
|
|
28
|
-
<script>
|
|
29
|
-
import { defineComponent, defineAsyncComponent } from "vue";
|
|
30
|
-
|
|
31
|
-
export default defineComponent({
|
|
32
|
-
props: {
|
|
33
|
-
removeTableHeaderPadding: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: false,
|
|
36
|
-
},
|
|
37
|
-
tableTitle: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: "Table",
|
|
40
|
-
},
|
|
41
|
-
tableSubTitle: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: "",
|
|
44
|
-
},
|
|
45
|
-
searchable: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: true,
|
|
48
|
-
},
|
|
49
|
-
hideHeader: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
components: {
|
|
55
|
-
ContentLayout: defineAsyncComponent(() =>
|
|
56
|
-
import("../../v2/content/ContentLayout.vue").then(
|
|
57
|
-
(module) => module.default
|
|
58
|
-
)
|
|
59
|
-
),
|
|
60
|
-
ContentHeader: defineAsyncComponent(() =>
|
|
61
|
-
import("./ContentHeader.vue").then((module) => module.default)
|
|
62
|
-
),
|
|
63
|
-
HeaderItem: defineAsyncComponent(() =>
|
|
64
|
-
import("../../v2/header/HeaderItem.vue").then((module) => module.default)
|
|
65
|
-
),
|
|
66
|
-
SearchBar: defineAsyncComponent(() =>
|
|
67
|
-
import("../searchbars/SearchBar.vue").then((module) => module.default)
|
|
68
|
-
),
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
data() {
|
|
72
|
-
return {
|
|
73
|
-
searchText: "",
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
methods: {
|
|
78
|
-
updateSearchText(text) {
|
|
79
|
-
this.searchText = text;
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
});
|
|
83
|
-
</script>
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineAsyncComponent, ref } from "vue";
|
|
3
|
+
import HeroiconsChevronDown from "~icons/heroicons/chevron-down";
|
|
4
|
+
import HeroiconsChevronUp from "~icons/heroicons/chevron-up";
|
|
5
|
+
import { onClickOutside } from "@vueuse/core";
|
|
6
|
+
|
|
7
|
+
const AcButton = defineAsyncComponent(() => import("../button/Button.vue"));
|
|
8
|
+
interface Props {
|
|
9
|
+
modelValue: boolean;
|
|
10
|
+
title?: string;
|
|
11
|
+
buttonModifierClass?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
iconClass: string;
|
|
14
|
+
}
|
|
15
|
+
withDefaults(defineProps<Props>(), {
|
|
16
|
+
modelValue: false,
|
|
17
|
+
title: "",
|
|
18
|
+
buttonModifierClass: "",
|
|
19
|
+
disabled: false,
|
|
20
|
+
iconClass: "",
|
|
21
|
+
});
|
|
22
|
+
const actionDropdown = ref<HTMLElement | null>(null);
|
|
23
|
+
const emit = defineEmits(["update:modelValue"]);
|
|
24
|
+
|
|
25
|
+
onClickOutside(actionDropdown, () => emit("update:modelValue", false));
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
29
|
+
<!-- dropdown start -->
|
|
30
|
+
<div
|
|
31
|
+
ref="actionDropdown"
|
|
32
|
+
class="dropdown-action"
|
|
33
|
+
:class="{ 'dropdown is-active': modelValue }"
|
|
34
|
+
>
|
|
35
|
+
<div class="dropdown-trigger">
|
|
36
|
+
<ac-button
|
|
37
|
+
:modifier-classes="buttonModifierClass"
|
|
38
|
+
aria-haspopup="true"
|
|
39
|
+
aria-controls="dropdown-menu3"
|
|
40
|
+
:disabled="disabled"
|
|
41
|
+
:icon-class="iconClass"
|
|
42
|
+
@click="emit('update:modelValue', !modelValue)"
|
|
43
|
+
>
|
|
44
|
+
<template #icon>
|
|
45
|
+
<slot name="icon" />
|
|
46
|
+
</template>
|
|
47
|
+
<span>{{ title }}</span>
|
|
48
|
+
<span class="icon is-small">
|
|
49
|
+
<HeroiconsChevronDown v-if="!modelValue" />
|
|
50
|
+
<HeroiconsChevronUp v-else />
|
|
51
|
+
</span>
|
|
52
|
+
</ac-button>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="dropdown-menu" id="dropdown-menu3" role="menu">
|
|
55
|
+
<div class="dropdown-content ac-scrollbar p-0">
|
|
56
|
+
<slot name="list" />
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<!-- dropdown end -->
|
|
61
|
+
</template>
|
|
62
|
+
<style lang="scss">
|
|
63
|
+
.dropdown-group {
|
|
64
|
+
margin-bottom: 8px;
|
|
65
|
+
}
|
|
66
|
+
.dropdown-action {
|
|
67
|
+
.dropdown-content {
|
|
68
|
+
min-width: 220px;
|
|
69
|
+
max-width: 500px;
|
|
70
|
+
max-height: calc(100vh - 200px);
|
|
71
|
+
overflow-y: auto;
|
|
72
|
+
border: 1px solid $primary-90;
|
|
73
|
+
|
|
74
|
+
label {
|
|
75
|
+
padding: 8px 16px;
|
|
76
|
+
display: flex;
|
|
77
|
+
border-bottom: 1px solid $primary-95;
|
|
78
|
+
color: $primary-20;
|
|
79
|
+
font-weight: 500;
|
|
80
|
+
}
|
|
81
|
+
.dropdown-item {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: 8px;
|
|
85
|
+
font-size: 13px;
|
|
86
|
+
padding: 8px 16px;
|
|
87
|
+
color: $primary-20;
|
|
88
|
+
&:hover {
|
|
89
|
+
background-color: $primary-97;
|
|
90
|
+
color: $primary;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
</style>
|