@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
interface Props {
|
|
3
|
+
modifierClasses?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
withDefaults(defineProps<Props>(), {
|
|
7
|
+
modifierClasses: "",
|
|
8
|
+
});
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<div class="footer-item" :class="modifierClasses">
|
|
13
|
+
<slot />
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<style lang="scss">
|
|
18
|
+
.footer-item {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 4px;
|
|
22
|
+
font-weight: 500;
|
|
23
|
+
color: $primary-90;
|
|
24
|
+
font-size: 12px;
|
|
25
|
+
&.has-text-danger {
|
|
26
|
+
color: $red-80 !important;
|
|
27
|
+
}
|
|
28
|
+
&.has-text-success {
|
|
29
|
+
color: $green-50 !important;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { defineAsyncComponent } from "vue";
|
|
3
|
+
|
|
4
|
+
const FooterItems = defineAsyncComponent(() => import("./FooterItems.vue"));
|
|
5
|
+
const FooterItem = defineAsyncComponent(() => import("./FooterItem.vue"));
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
infoData?: Array<Record<string, string>>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
withDefaults(defineProps<Props>(), {
|
|
12
|
+
infoData: () => [],
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<footer-items>
|
|
18
|
+
<footer-item v-for="(data, idx) in infoData" :key="idx + data.key">
|
|
19
|
+
<span class="">{{ data.key }}:</span>
|
|
20
|
+
<span>{{ data.value }}</span>
|
|
21
|
+
</footer-item>
|
|
22
|
+
</footer-items>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<style lang="scss" scoped></style>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { ref, defineAsyncComponent } from "vue";
|
|
3
|
+
const FooterItems = defineAsyncComponent(() => import("./FooterItems.vue"));
|
|
4
|
+
const FooterItem = defineAsyncComponent(() => import("./FooterItem.vue"));
|
|
5
|
+
const HeroiconsCheckBadge = defineAsyncComponent(
|
|
6
|
+
() => import("~icons/heroicons/check-badge")
|
|
7
|
+
);
|
|
8
|
+
const HeroiconsCrossBadge = defineAsyncComponent(
|
|
9
|
+
() => import("~icons/heroicons/x-circle")
|
|
10
|
+
);
|
|
11
|
+
const HeroiconsLoadingBadge = defineAsyncComponent(
|
|
12
|
+
() => import("~icons/heroicons/arrow-path")
|
|
13
|
+
);
|
|
14
|
+
interface Props {
|
|
15
|
+
statusInfo?: Array<Record<string, string>>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
withDefaults(defineProps<Props>(), {
|
|
19
|
+
statusInfo: () => [],
|
|
20
|
+
});
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<footer-items>
|
|
25
|
+
<footer-item
|
|
26
|
+
v-for="(item, idx) in statusInfo"
|
|
27
|
+
:key="idx + item.label"
|
|
28
|
+
:modifier-classes="item.color"
|
|
29
|
+
>
|
|
30
|
+
<span class="icon">
|
|
31
|
+
<HeroiconsCheckBadge v-if="item.color === `has-text-success`" />
|
|
32
|
+
<i
|
|
33
|
+
v-else-if="item.color === `has-text-warning`"
|
|
34
|
+
class="fa fa-refresh fa-spin fa-fw"
|
|
35
|
+
></i>
|
|
36
|
+
<HeroiconsCrossBadge v-else />
|
|
37
|
+
</span>
|
|
38
|
+
<span>{{ item.label }}</span>
|
|
39
|
+
</footer-item>
|
|
40
|
+
</footer-items>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<style lang="scss" scoped></style>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { defineAsyncComponent } from "vue";
|
|
3
|
+
const FooterItems = defineAsyncComponent(() => import("./FooterItems.vue"));
|
|
4
|
+
const FooterItem = defineAsyncComponent(() => import("./FooterItem.vue"));
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
usages?: Array<{
|
|
8
|
+
icon?: string;
|
|
9
|
+
useData?: {
|
|
10
|
+
limit?: string;
|
|
11
|
+
request?: string;
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
withDefaults(defineProps<Props>(), {
|
|
17
|
+
usages: () => [],
|
|
18
|
+
});
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<footer-items>
|
|
23
|
+
<footer-item v-for="(info, idx) in usages" :key="idx">
|
|
24
|
+
<span class="icon"><img :src="info.icon" /></span
|
|
25
|
+
><span
|
|
26
|
+
>{{ info.useData?.limit || "N" }}/{{
|
|
27
|
+
info.useData?.request || "A"
|
|
28
|
+
}}</span
|
|
29
|
+
>
|
|
30
|
+
</footer-item>
|
|
31
|
+
</footer-items>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<style lang="scss" scoped></style>
|
|
@@ -1,10 +1,27 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineAsyncComponent } from "vue";
|
|
3
|
+
|
|
4
|
+
const FormFooterControl = defineAsyncComponent(
|
|
5
|
+
() => import("./FormFooterControl.vue")
|
|
6
|
+
);
|
|
7
|
+
|
|
8
|
+
interface Props {
|
|
9
|
+
isContainer?: boolean;
|
|
10
|
+
hasFooter?: boolean;
|
|
11
|
+
reducePaddingTop?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
withDefaults(defineProps<Props>(), {
|
|
15
|
+
isContainer: false,
|
|
16
|
+
hasFooter: true,
|
|
17
|
+
reducePaddingTop: false,
|
|
18
|
+
});
|
|
19
|
+
</script>
|
|
20
|
+
|
|
1
21
|
<template>
|
|
2
22
|
<div class="form-wrapper">
|
|
3
23
|
<div
|
|
4
24
|
:class="{
|
|
5
|
-
'pt-20': !reducePaddingTop,
|
|
6
|
-
'pt-10': reducePaddingTop,
|
|
7
|
-
'pl-20': !isContainer,
|
|
8
25
|
'form-content': !isContainer,
|
|
9
26
|
container: isContainer,
|
|
10
27
|
}"
|
|
@@ -22,42 +39,13 @@
|
|
|
22
39
|
container: isContainer,
|
|
23
40
|
}"
|
|
24
41
|
>
|
|
25
|
-
<form-footer-
|
|
42
|
+
<form-footer-control>
|
|
26
43
|
<slot name="form-left-controls" />
|
|
27
|
-
</form-footer-
|
|
28
|
-
<form-footer-
|
|
44
|
+
</form-footer-control>
|
|
45
|
+
<form-footer-control>
|
|
29
46
|
<slot name="form-right-controls" />
|
|
30
|
-
</form-footer-
|
|
47
|
+
</form-footer-control>
|
|
31
48
|
</div>
|
|
32
49
|
</div>
|
|
33
50
|
</div>
|
|
34
51
|
</template>
|
|
35
|
-
|
|
36
|
-
<script>
|
|
37
|
-
import { defineComponent, defineAsyncComponent, h } from "vue";
|
|
38
|
-
|
|
39
|
-
export default defineComponent({
|
|
40
|
-
props: {
|
|
41
|
-
isContainer: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: false,
|
|
44
|
-
},
|
|
45
|
-
hasFooter: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: true,
|
|
48
|
-
},
|
|
49
|
-
reducePaddingTop: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
components: {
|
|
56
|
-
FormFooterControls: defineAsyncComponent(() =>
|
|
57
|
-
import("../../v2/form/FormFooterControl.vue").then(
|
|
58
|
-
(module) => module.default
|
|
59
|
-
)
|
|
60
|
-
),
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
</script>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<template>
|
|
4
|
+
<div class="form-footer">
|
|
5
|
+
<div class="footer-left">
|
|
6
|
+
<slot name="footer-left" />
|
|
7
|
+
</div>
|
|
8
|
+
<div class="footer-right">
|
|
9
|
+
<slot name="footer-right" />
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<style lang="scss" scoped>
|
|
15
|
+
.form-footer {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
margin-left: -20px;
|
|
20
|
+
margin-right: -20px;
|
|
21
|
+
border-top: 1px solid $primary-90;
|
|
22
|
+
padding: 16px 20px;
|
|
23
|
+
}
|
|
24
|
+
</style>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
interface Props {
|
|
3
|
+
modifierClasses?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
withDefaults(defineProps<Props>(), {
|
|
7
|
+
modifierClasses: "",
|
|
8
|
+
});
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<div class="ac-single-input is-small" :class="modifierClasses">
|
|
13
|
+
<slot name="label" />
|
|
14
|
+
<slot name="button" />
|
|
15
|
+
<slot />
|
|
16
|
+
<slot name="eye-switcher" />
|
|
17
|
+
<slot name="error" />
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<style lang="scss"></style>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="file-upload" data-testid="image-upload-drag-section">
|
|
3
|
+
<label
|
|
4
|
+
for="image-upload-with-cropping"
|
|
5
|
+
class="has-text-centered"
|
|
6
|
+
title="Click to upload new avatar"
|
|
7
|
+
>
|
|
8
|
+
<div class="ms-upload-logo" title="Click to upload new avatar">
|
|
9
|
+
<div class="upload-icon">
|
|
10
|
+
<svg
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
fill="none"
|
|
13
|
+
viewBox="0 0 24 24"
|
|
14
|
+
stroke-width="1"
|
|
15
|
+
stroke="currentColor"
|
|
16
|
+
class="w-6 h-6"
|
|
17
|
+
>
|
|
18
|
+
<path
|
|
19
|
+
stroke-linecap="round"
|
|
20
|
+
stroke-linejoin="round"
|
|
21
|
+
d="M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"
|
|
22
|
+
/>
|
|
23
|
+
</svg>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="ms-upload-description">
|
|
27
|
+
<p class="drag-and-drop-msg">
|
|
28
|
+
Drag & Drop here <strong>or</strong> Choose image From Storage
|
|
29
|
+
</p>
|
|
30
|
+
<p class="img-size-msg">
|
|
31
|
+
Size should not a exceed 1MB & Dimension prefarable 4096 X 3072
|
|
32
|
+
</p>
|
|
33
|
+
</div>
|
|
34
|
+
</label>
|
|
35
|
+
<input
|
|
36
|
+
id="image-upload-with-cropping"
|
|
37
|
+
type="file"
|
|
38
|
+
name="image-upload"
|
|
39
|
+
class="is-hidden"
|
|
40
|
+
data-testid="image-upload-input"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<style lang="scss" scoped>
|
|
46
|
+
// file upload large
|
|
47
|
+
.file-upload {
|
|
48
|
+
border: 1px dashed $primary-80;
|
|
49
|
+
border-radius: 4px;
|
|
50
|
+
&:hover {
|
|
51
|
+
background-color: $primary-97;
|
|
52
|
+
|
|
53
|
+
label {
|
|
54
|
+
.upload-icon {
|
|
55
|
+
border: 1px solid $primary-80;
|
|
56
|
+
svg {
|
|
57
|
+
color: $primary-10;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
label {
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
padding: 32px;
|
|
65
|
+
display: block;
|
|
66
|
+
.upload-icon {
|
|
67
|
+
border: 1px solid $primary-90;
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
border-radius: 50%;
|
|
72
|
+
width: 100px;
|
|
73
|
+
height: 100px;
|
|
74
|
+
margin-bottom: 24px;
|
|
75
|
+
padding: 24px;
|
|
76
|
+
|
|
77
|
+
svg {
|
|
78
|
+
color: $primary-30;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
p {
|
|
82
|
+
color: $primary-10;
|
|
83
|
+
strong {
|
|
84
|
+
font-weight: 600;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
</style>
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
interface Props {
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
withDefaults(defineProps<Props>(), {
|
|
7
|
+
modelValue: "",
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
const emit = defineEmits(["update:modelValue"]);
|
|
11
|
+
|
|
12
|
+
const handleInput = (e: Event) => {
|
|
13
|
+
const target = e.target as HTMLInputElement;
|
|
14
|
+
emit("update:modelValue", target.value);
|
|
15
|
+
};
|
|
16
|
+
</script>
|
|
17
|
+
|
|
1
18
|
<template>
|
|
2
19
|
<input
|
|
3
20
|
class="ac-input"
|
|
21
|
+
:class="{ 'width-200': modelValue }"
|
|
4
22
|
data-testid="ac-input"
|
|
5
23
|
:value="modelValue"
|
|
6
|
-
@input="
|
|
24
|
+
@input="handleInput"
|
|
7
25
|
/>
|
|
8
26
|
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import { defineComponent } from "vue";
|
|
12
|
-
|
|
13
|
-
export default defineComponent({
|
|
14
|
-
props: {
|
|
15
|
-
modelValue: {
|
|
16
|
-
type: null,
|
|
17
|
-
default: "",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
emits: ["update:modelValue"],
|
|
21
|
-
});
|
|
22
|
-
</script>
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineAsyncComponent } from "vue";
|
|
3
|
+
|
|
4
|
+
const HeaderItem = defineAsyncComponent(() => import("./HeaderItem.vue"));
|
|
5
|
+
const HeaderItems = defineAsyncComponent(() => import("./HeaderItems.vue"));
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
title?: string;
|
|
9
|
+
isContainer?: boolean;
|
|
10
|
+
topValue?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
withDefaults(defineProps<Props>(), {
|
|
14
|
+
title: "No Title",
|
|
15
|
+
isContainer: false,
|
|
16
|
+
topValue: "86px",
|
|
17
|
+
});
|
|
18
|
+
</script>
|
|
19
|
+
|
|
1
20
|
<template>
|
|
2
|
-
<div class="inner-header">
|
|
21
|
+
<div class="inner-header" :style="{ top: topValue }">
|
|
3
22
|
<div
|
|
4
23
|
class="is-flex is-justify-content-space-between"
|
|
5
24
|
:class="{ container: isContainer }"
|
|
@@ -7,7 +26,7 @@
|
|
|
7
26
|
<header-items>
|
|
8
27
|
<header-item>
|
|
9
28
|
<transition name="fade" mode="out-in" appear>
|
|
10
|
-
<
|
|
29
|
+
<h4 :key="title">{{ title }}</h4>
|
|
11
30
|
</transition>
|
|
12
31
|
</header-item>
|
|
13
32
|
<slot name="header-left-controls" />
|
|
@@ -19,27 +38,102 @@
|
|
|
19
38
|
</div>
|
|
20
39
|
</template>
|
|
21
40
|
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
<style lang="scss" scoped>
|
|
42
|
+
.inner-header {
|
|
43
|
+
padding: 6px 20px;
|
|
44
|
+
border-bottom: 1px solid $primary-95;
|
|
45
|
+
position: sticky;
|
|
46
|
+
background: $white-100;
|
|
47
|
+
z-index: 99;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// footer control start
|
|
51
|
+
// .form-footer-controls {
|
|
52
|
+
// .form-footer-control {
|
|
53
|
+
// display: inline-block;
|
|
54
|
+
// margin-left: 8px;
|
|
55
|
+
// vertical-align: middle;
|
|
56
|
+
|
|
57
|
+
// &:first-child {
|
|
58
|
+
// margin-left: 0;
|
|
59
|
+
// }
|
|
60
|
+
// }
|
|
61
|
+
// }
|
|
62
|
+
|
|
63
|
+
// .dashboard-header {
|
|
64
|
+
// padding: 10px 20px;
|
|
65
|
+
// border-radius: 4px;
|
|
66
|
+
// background-color: $white-100;
|
|
67
|
+
// min-height: 75px;
|
|
68
|
+
// display: table;
|
|
69
|
+
// width: 100%;
|
|
70
|
+
// border-left: 5px solid $primary;
|
|
71
|
+
// border-bottom: 1px solid $primary-90;
|
|
72
|
+
// border-top: 1px solid $primary-90;
|
|
73
|
+
// border-right: 1px solid $primary-90;
|
|
74
|
+
|
|
75
|
+
// .dashboard-header-wrapper {
|
|
76
|
+
// height: 100%;
|
|
77
|
+
// display: table;
|
|
78
|
+
// width: 100%;
|
|
79
|
+
|
|
80
|
+
// .dashboard-header-inner {
|
|
81
|
+
// display: table-cell;
|
|
82
|
+
// vertical-align: middle;
|
|
83
|
+
// }
|
|
84
|
+
// }
|
|
85
|
+
// }
|
|
86
|
+
|
|
87
|
+
// .dashboard-header-inner-top {
|
|
88
|
+
// height: 100%;
|
|
89
|
+
// vertical-align: middle;
|
|
90
|
+
// display: table-cell;
|
|
91
|
+
// }
|
|
92
|
+
|
|
93
|
+
// .dashboard-header.is-chart-available {
|
|
94
|
+
// padding: 10px 30px;
|
|
95
|
+
|
|
96
|
+
// .dashboard-header-wrapper {
|
|
97
|
+
// height: 100%;
|
|
98
|
+
// display: table;
|
|
99
|
+
// width: 100%;
|
|
100
|
+
|
|
101
|
+
// .dashboard-header-inner {
|
|
102
|
+
// display: table-cell;
|
|
103
|
+
// vertical-align: middle;
|
|
104
|
+
// }
|
|
105
|
+
// }
|
|
106
|
+
// }
|
|
107
|
+
|
|
108
|
+
// .resource {
|
|
109
|
+
// display: flex;
|
|
110
|
+
// align-items: center;
|
|
111
|
+
// border-left: 1px solid $primary-90;
|
|
112
|
+
// padding: 0 1.5rem;
|
|
113
|
+
// margin-top: -10px;
|
|
114
|
+
// margin-bottom: -10px;
|
|
115
|
+
// .r-icon {
|
|
116
|
+
// display: flex;
|
|
117
|
+
// align-items: center;
|
|
118
|
+
// max-width: 40px;
|
|
119
|
+
// }
|
|
120
|
+
|
|
121
|
+
// .r-data {
|
|
122
|
+
// margin-left: 0.8rem;
|
|
123
|
+
// .request,
|
|
124
|
+
// .limit {
|
|
125
|
+
// font-weight: 500;
|
|
126
|
+
// min-width: 50px;
|
|
127
|
+
// text-align: center;
|
|
128
|
+
// }
|
|
129
|
+
// .request {
|
|
130
|
+
// font-weight: 300;
|
|
131
|
+
// }
|
|
132
|
+
// hr {
|
|
133
|
+
// margin: 0;
|
|
134
|
+
// padding: 0;
|
|
135
|
+
// background-color: $primary-90;
|
|
136
|
+
// }
|
|
137
|
+
// }
|
|
138
|
+
// }
|
|
139
|
+
</style>
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
+
<script setup lang="ts"></script>
|
|
2
|
+
|
|
1
3
|
<template>
|
|
2
4
|
<div class="header-item">
|
|
3
5
|
<slot />
|
|
4
6
|
</div>
|
|
5
7
|
</template>
|
|
8
|
+
|
|
9
|
+
<style lang="scss" scoped>
|
|
10
|
+
.header-item {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
margin-left: 8px;
|
|
13
|
+
vertical-align: middle;
|
|
14
|
+
|
|
15
|
+
&:first-child {
|
|
16
|
+
margin-left: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.select:not(.is-multiple) {
|
|
20
|
+
height: auto;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ContentLoader } from "vue-content-loader";
|
|
3
|
+
</script>
|
|
4
|
+
<template>
|
|
5
|
+
<content-loader
|
|
6
|
+
viewBox="0 0 300 30"
|
|
7
|
+
:speed="2"
|
|
8
|
+
primaryColor="#ffffff"
|
|
9
|
+
secondaryColor="#ebebf9"
|
|
10
|
+
>
|
|
11
|
+
<rect x="0" y="0" rx="5" ry="5" width="300" height="30" />
|
|
12
|
+
</content-loader>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { ContentLoader } from "vue-content-loader";
|
|
3
|
+
export default { components: { ContentLoader } };
|
|
4
|
+
</script>
|
|
5
|
+
<template>
|
|
6
|
+
<content-loader
|
|
7
|
+
viewBox="0 0 230 115"
|
|
8
|
+
:speed="2"
|
|
9
|
+
primaryColor="#f5f5f5"
|
|
10
|
+
secondaryColor="#ecebeb"
|
|
11
|
+
>
|
|
12
|
+
<rect x="0" y="0" rx="0" ry="0" />
|
|
13
|
+
<rect x="0" y="70" rx="3" ry="3" width="120" height="11" />
|
|
14
|
+
<rect x="0" y="100" rx="3" ry="3" width="120" height="11" />
|
|
15
|
+
<rect x="150" y="100" rx="3" ry="3" width="60" height="11" />
|
|
16
|
+
<rect x="0" y="1" rx="3" ry="3" width="230" height="22" />
|
|
17
|
+
<rect x="0" y="40" rx="3" ry="3" width="120" height="11" />
|
|
18
|
+
</content-loader>
|
|
19
|
+
</template>
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ContentLoader } from "vue-content-loader";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
1
5
|
<template>
|
|
2
6
|
<div>
|
|
3
7
|
<content-loader>
|
|
@@ -69,15 +73,3 @@
|
|
|
69
73
|
</content-loader>
|
|
70
74
|
</div>
|
|
71
75
|
</template>
|
|
72
|
-
|
|
73
|
-
<script>
|
|
74
|
-
import { defineAsyncComponent, defineComponent } from 'vue'
|
|
75
|
-
export default defineComponent({
|
|
76
|
-
name: 'LoaderElement',
|
|
77
|
-
components: {
|
|
78
|
-
ContentLoader: defineAsyncComponent(() =>
|
|
79
|
-
import('vue-content-loader').then((module) => module.ContentLoader)
|
|
80
|
-
),
|
|
81
|
-
},
|
|
82
|
-
})
|
|
83
|
-
</script>
|