@appscode/design-system 2.0.59 → 2.0.61
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/package.json +1 -1
- package/plugins/theme.js +2 -5
- package/plugins/time-convert.js +5 -9
- package/plugins/vue-toaster.js +2 -1
- package/vue-components/plugins/time-convert.js +2 -6
- package/vue-components/styles/base/utilities/_colors.scss +19 -25
- package/vue-components/styles/base/utilities/_generate-color-classes.scss +41 -233
- package/vue-components/styles/base/utilities/_global.scss +13 -14
- package/vue-components/styles/base/utilities/_layouts.scss +1 -2
- package/vue-components/styles/base/utilities/_mixin.scss +8 -46
- package/vue-components/styles/base/utilities/_root-variables.scss +1 -1
- package/vue-components/styles/base/utilities/_spacing.scss +1 -1
- package/vue-components/styles/base/utilities/_typography.scss +1 -1
- package/vue-components/styles/components/_ac-drag.scss +1 -1
- package/vue-components/styles/components/_accordion.scss +1 -1
- package/vue-components/styles/components/_badge-tags.scss +75 -0
- package/vue-components/styles/components/_card-body-wrapper.scss +1 -1
- package/vue-components/styles/components/_pagination.scss +2 -2
- package/vue-components/styles/components/_preview-modal.scss +3 -3
- package/vue-components/styles/components/_progress-bar.scss +3 -3
- package/vue-components/styles/components/_table.scss +3 -3
- package/vue-components/styles/components/_tabs.scss +2 -2
- package/vue-components/styles/components/_terminal.scss +3 -3
- package/vue-components/styles/components/_wizard.scss +3 -3
- package/vue-components/styles/components/ac-toaster/_ac-toasted.scss +10 -5
- package/vue-components/styles/components/alert/_alert.scss +2 -12
- package/vue-components/styles/components/alert/_toast.scss +1 -1
- package/vue-components/styles/components/bbum/_all.scss +1 -1
- package/vue-components/styles/components/bbum/_card-team.scss +1 -6
- package/vue-components/styles/components/bbum/_information-center.scss +4 -4
- package/vue-components/styles/components/bbum/_mobile-desktop.scss +10 -5
- package/vue-components/styles/components/bbum/_user-profile.scss +1 -1
- package/vue-components/styles/components/cards/_info.scss +1 -7
- package/vue-components/styles/components/editor/_filtered-file-editor.scss +3 -3
- package/vue-components/styles/components/editor/_monaco-editor.scss +1 -1
- package/vue-components/styles/components/form-fields/_input-card.scss +2 -2
- package/vue-components/styles/components/form-fields/_input.scss +3 -3
- package/vue-components/styles/components/navbar/_menu-content.scss +1 -2
- package/vue-components/styles/components/select-box/_ac-select-box.scss +2 -2
- package/vue-components/styles/components/select-box/_multi-select.scss +4 -9
- package/vue-components/styles/components/sidebar/_left-sidebar.scss +2 -2
- package/vue-components/styles/components/ui-builder/_ui-builder.scss +1 -1
- package/vue-components/styles/components/ui-builder/_vue-open-api.scss +5 -10
- package/vue-components/styles/layouts/_code-preview.scss +2 -2
- package/vue-components/v2/breadcrumbs/Breadcrumb.vue +14 -27
- package/vue-components/v2/button/Button.vue +2 -7
- package/vue-components/v2/button/DownloadBtn.vue +9 -9
- package/vue-components/v2/card/CardContent.vue +1 -1
- package/vue-components/v2/card/CardHeader.vue +2 -4
- package/vue-components/v2/card/PaymentCard.vue +1 -1
- package/vue-components/v2/card/PaymentCardOptionButtons.vue +1 -1
- package/vue-components/v2/card/PaymentCards.vue +15 -11
- package/vue-components/v2/content/ContentHeader.vue +6 -6
- package/vue-components/v2/editor/Editor.vue +2 -11
- package/vue-components/v2/editor/FilteredFileEditor.vue +5 -17
- package/vue-components/v2/editor/MonacoEditor.vue +5 -12
- package/vue-components/v2/editor/ResourceKeyValueEditor.vue +4 -14
- package/vue-components/v2/form/Form.vue +9 -12
- package/vue-components/v2/header/Header.vue +1 -4
- package/vue-components/v2/loaders/ResourceLoader.vue +5 -5
- package/vue-components/v2/loaders/SidebarLoader.vue +5 -5
- package/vue-components/v2/modal/Modal.vue +2 -7
- package/vue-components/v2/modals/DeleteConfirmationModal.vue +1 -6
- package/vue-components/v2/modals/JsonShowModal.vue +3 -15
- package/vue-components/v2/navbar/Appdrawer.vue +2 -10
- package/vue-components/v2/navbar/ThemeMode.vue +12 -18
- package/vue-components/v2/navbar/User.vue +19 -82
- package/vue-components/v2/notification/Notification.vue +3 -12
- package/vue-components/v2/notification/NotificationItem.vue +1 -3
- package/vue-components/v2/pagination/Pagination.vue +5 -26
- package/vue-components/v2/preloader/Preloader.vue +5 -5
- package/vue-components/v2/searchbars/SearchBar.vue +1 -7
- package/vue-components/v2/sidebar/ClusterSwitcher.vue +2 -2
- package/vue-components/v2/sidebar/SidebarItem.vue +2 -10
- package/vue-components/v2/sidebar/SidebarItemWithDropDown.vue +1 -2
- package/vue-components/v2/table/FakeTableCell.vue +1 -2
- package/vue-components/v2/table/InfoTable.vue +4 -10
- package/vue-components/v2/table/Table.vue +16 -64
- package/vue-components/v2/table/TableRow.vue +3 -15
- package/vue-components/v2/table/table-cell/ArrayCell.vue +3 -9
- package/vue-components/v2/table/table-cell/CellValue.vue +1 -2
- package/vue-components/v2/table/table-cell/GenericCell.vue +8 -8
- package/vue-components/v2/table/table-cell/ObjectCell.vue +2 -6
- package/vue-components/v2/table/table-cell/ValueWithModal.vue +1 -6
- package/vue-components/v3/accordion/Accordion.vue +6 -2
- package/vue-components/v3/alert/AlertMessage.vue +1 -5
- package/vue-components/v3/alert/Toast.vue +2 -5
- package/vue-components/v3/badge-tags/Badge.vue +24 -0
- package/vue-components/v3/badge-tags/Tag.vue +26 -0
- package/vue-components/v3/breadcrumbs/Breadcrumb.vue +6 -24
- package/vue-components/v3/button/Button.vue +2 -11
- package/vue-components/v3/cards/CardHeader.vue +1 -3
- package/vue-components/v3/cards/Cluster.vue +3 -9
- package/vue-components/v3/cards/Counter.vue +1 -4
- package/vue-components/v3/cards/FeatureCard.vue +1 -6
- package/vue-components/v3/cards/FeatureCards.vue +1 -5
- package/vue-components/v3/cards/InfoCard.vue +10 -30
- package/vue-components/v3/cards/Monitoring.vue +3 -15
- package/vue-components/v3/cards/OrgCard.vue +7 -26
- package/vue-components/v3/cards/OverviewCards.vue +1 -3
- package/vue-components/v3/cards/Payment.vue +1 -4
- package/vue-components/v3/content/ContentHeader.vue +1 -3
- package/vue-components/v3/content/ContentTable.vue +4 -16
- package/vue-components/v3/dropdown/DropdownAction.vue +1 -5
- package/vue-components/v3/editor/Editor.vue +33 -19
- package/vue-components/v3/editor/FilteredFileEditor.vue +29 -27
- package/vue-components/v3/editor/MonacoEditor.vue +7 -17
- package/vue-components/v3/editor/ResourceKeyValueEditor.vue +5 -17
- package/vue-components/v3/footer/Status.vue +5 -18
- package/vue-components/v3/footer/Usage.vue +1 -5
- package/vue-components/v3/form/Form.vue +1 -3
- package/vue-components/v3/form-fields/FileUpload.vue +3 -11
- package/vue-components/v3/form-fields/FileUploadSmall.vue +1 -3
- package/vue-components/v3/form-fields/Searchbar.vue +5 -21
- package/vue-components/v3/header/Header.vue +1 -4
- package/vue-components/v3/loaders/ClusterSwitcherLoader.vue +1 -6
- package/vue-components/v3/loaders/InfoCardLoader.vue +1 -6
- package/vue-components/v3/loaders/SingleInfoCardLoader.vue +1 -6
- package/vue-components/v3/messages/Message.vue +6 -4
- package/vue-components/v3/modal/Modal.vue +5 -19
- package/vue-components/v3/modals/DeleteConfirmationModal.vue +1 -6
- package/vue-components/v3/modals/JsonShowModal.vue +5 -17
- package/vue-components/v3/navbar/Appdrawer.vue +2 -10
- package/vue-components/v3/navbar/Navbar.vue +2 -10
- package/vue-components/v3/navbar/NavbarItem.vue +1 -5
- package/vue-components/v3/navbar/Notification.vue +7 -31
- package/vue-components/v3/navbar/ThemeMode.vue +5 -17
- package/vue-components/v3/navbar/User.vue +64 -67
- package/vue-components/v3/notification/AlertBox.vue +6 -20
- package/vue-components/v3/notification/Notification.vue +6 -25
- package/vue-components/v3/notification/NotificationItem.vue +3 -9
- package/vue-components/v3/pagination/Pagination.vue +7 -25
- package/vue-components/v3/searchbars/SearchBar.vue +3 -17
- package/vue-components/v3/sidebar/AccentColorPicker.vue +3 -12
- package/vue-components/v3/sidebar/SidebarFooter.vue +3 -17
- package/vue-components/v3/sidebar/SidebarHeader.vue +4 -28
- package/vue-components/v3/sidebar/SidebarItem.vue +3 -11
- package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +3 -7
- package/vue-components/v3/sidebar/Steps.vue +1 -2
- package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +1 -4
- package/vue-components/v3/sidebar/sidebar-tabs/TabsContent.vue +34 -52
- package/vue-components/v3/steps/ColoredSteps.vue +75 -0
- package/vue-components/v3/table/InfoTable.vue +5 -17
- package/vue-components/v3/table/MultiInfoTable.vue +6 -20
- package/vue-components/v3/table/Table.vue +15 -63
- package/vue-components/v3/table/TableContainer.vue +1 -4
- package/vue-components/v3/table/TableRow.vue +5 -24
- package/vue-components/v3/table/table-cell/ArrayCell.vue +6 -20
- package/vue-components/v3/table/table-cell/CellValue.vue +3 -9
- package/vue-components/v3/table/table-cell/GenericCell.vue +2 -5
- package/vue-components/v3/table/table-cell/ObjectCell.vue +5 -17
- package/vue-components/v3/table/table-cell/ValueWithModal.vue +2 -9
- package/vue-components/styles/components/_ac-tags.scss +0 -116
- package/vue-components/v3/badge/Badge.vue +0 -3
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { defineAsyncComponent, ref, watch } from "vue";
|
|
3
3
|
|
|
4
|
-
const AcSingleInput = defineAsyncComponent(
|
|
5
|
-
() => import("../form-fields/AcSingleInput.vue")
|
|
6
|
-
);
|
|
4
|
+
const AcSingleInput = defineAsyncComponent(() => import("../form-fields/AcSingleInput.vue"));
|
|
7
5
|
|
|
8
6
|
const AcInput = defineAsyncComponent(() => import("../form-fields/Input.vue"));
|
|
9
7
|
|
|
@@ -28,12 +26,7 @@ watch(searchText, (n) => {
|
|
|
28
26
|
<ac-single-input modifier-classes="is-extra-small width-auto">
|
|
29
27
|
<template #button>
|
|
30
28
|
<label class="ac-search-button" :for="acInputId">
|
|
31
|
-
<svg
|
|
32
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
33
|
-
viewBox="0 0 20 20"
|
|
34
|
-
fill="currentColor"
|
|
35
|
-
class="w-5 h-5"
|
|
36
|
-
>
|
|
29
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-5 h-5">
|
|
37
30
|
<path
|
|
38
31
|
fill-rule="evenodd"
|
|
39
32
|
d="M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z"
|
|
@@ -42,14 +35,7 @@ watch(searchText, (n) => {
|
|
|
42
35
|
</svg>
|
|
43
36
|
</label>
|
|
44
37
|
</template>
|
|
45
|
-
<ac-input
|
|
46
|
-
name="search"
|
|
47
|
-
placeholder="Search"
|
|
48
|
-
type="search"
|
|
49
|
-
class="ac-search"
|
|
50
|
-
:id="acInputId"
|
|
51
|
-
v-model="searchText"
|
|
52
|
-
/>
|
|
38
|
+
<ac-input name="search" placeholder="Search" type="search" class="ac-search" :id="acInputId" v-model="searchText" />
|
|
53
39
|
</ac-single-input>
|
|
54
40
|
</template>
|
|
55
41
|
|
|
@@ -59,10 +59,7 @@ watch(
|
|
|
59
59
|
const { hue, saturation, lightness } = n || {};
|
|
60
60
|
nextTick(() => {
|
|
61
61
|
document.documentElement.style.setProperty("--hsl-hue", hue);
|
|
62
|
-
document.documentElement.style.setProperty(
|
|
63
|
-
"--hsl-saturation",
|
|
64
|
-
saturation
|
|
65
|
-
);
|
|
62
|
+
document.documentElement.style.setProperty("--hsl-saturation", saturation);
|
|
66
63
|
document.documentElement.style.setProperty("--hsl-lightness", lightness);
|
|
67
64
|
});
|
|
68
65
|
},
|
|
@@ -75,14 +72,8 @@ watch(
|
|
|
75
72
|
const { hue, saturation, lightness } = n || {};
|
|
76
73
|
nextTick(() => {
|
|
77
74
|
document.documentElement.style.setProperty("--font-hsl-hue", hue);
|
|
78
|
-
document.documentElement.style.setProperty(
|
|
79
|
-
|
|
80
|
-
saturation
|
|
81
|
-
);
|
|
82
|
-
document.documentElement.style.setProperty(
|
|
83
|
-
"--font-hsl-lightness",
|
|
84
|
-
lightness
|
|
85
|
-
);
|
|
75
|
+
document.documentElement.style.setProperty("--font-hsl-saturation", saturation);
|
|
76
|
+
document.documentElement.style.setProperty("--font-hsl-lightness", lightness);
|
|
86
77
|
});
|
|
87
78
|
},
|
|
88
79
|
{ deep: true }
|
|
@@ -12,9 +12,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
defineEmits(["toggleSidebar"]);
|
|
15
|
-
const AccentColorPicker = defineAsyncComponent(
|
|
16
|
-
() => import("./AccentColorPicker.vue")
|
|
17
|
-
);
|
|
15
|
+
const AccentColorPicker = defineAsyncComponent(() => import("./AccentColorPicker.vue"));
|
|
18
16
|
</script>
|
|
19
17
|
|
|
20
18
|
<template>
|
|
@@ -26,13 +24,7 @@ const AccentColorPicker = defineAsyncComponent(
|
|
|
26
24
|
data-testid="sidebar-footer-back-button"
|
|
27
25
|
@click="$emit('toggleSidebar')"
|
|
28
26
|
>
|
|
29
|
-
<svg
|
|
30
|
-
width="18"
|
|
31
|
-
height="18"
|
|
32
|
-
viewBox="0 0 18 18"
|
|
33
|
-
fill="none"
|
|
34
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
35
|
-
>
|
|
27
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
36
28
|
<path
|
|
37
29
|
d="M11.25 13.5L6.75 9L11.25 4.5"
|
|
38
30
|
stroke="white"
|
|
@@ -40,13 +32,7 @@ const AccentColorPicker = defineAsyncComponent(
|
|
|
40
32
|
stroke-linecap="round"
|
|
41
33
|
stroke-linejoin="round"
|
|
42
34
|
/>
|
|
43
|
-
<path
|
|
44
|
-
d="M16 14V4"
|
|
45
|
-
stroke="white"
|
|
46
|
-
stroke-width="2"
|
|
47
|
-
stroke-linecap="round"
|
|
48
|
-
stroke-linejoin="round"
|
|
49
|
-
/>
|
|
35
|
+
<path d="M16 14V4" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
50
36
|
</svg>
|
|
51
37
|
</button>
|
|
52
38
|
<!-- back button -->
|
|
@@ -28,34 +28,10 @@ withDefaults(defineProps<Props>(), {
|
|
|
28
28
|
data-testid="sidebar-menu-button"
|
|
29
29
|
@click="$emit('toggleSidebar')"
|
|
30
30
|
>
|
|
31
|
-
<svg
|
|
32
|
-
width="
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
fill="none"
|
|
36
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
37
|
-
>
|
|
38
|
-
<path
|
|
39
|
-
d="M3 13.5L10.5 13.5"
|
|
40
|
-
stroke="white"
|
|
41
|
-
stroke-width="2"
|
|
42
|
-
stroke-linecap="round"
|
|
43
|
-
stroke-linejoin="round"
|
|
44
|
-
/>
|
|
45
|
-
<path
|
|
46
|
-
d="M3 9L15 9"
|
|
47
|
-
stroke="white"
|
|
48
|
-
stroke-width="2"
|
|
49
|
-
stroke-linecap="round"
|
|
50
|
-
stroke-linejoin="round"
|
|
51
|
-
/>
|
|
52
|
-
<path
|
|
53
|
-
d="M3 4.5L7.5 4.5"
|
|
54
|
-
stroke="white"
|
|
55
|
-
stroke-width="2"
|
|
56
|
-
stroke-linecap="round"
|
|
57
|
-
stroke-linejoin="round"
|
|
58
|
-
/>
|
|
31
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
32
|
+
<path d="M3 13.5L10.5 13.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
33
|
+
<path d="M3 9L15 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
34
|
+
<path d="M3 4.5L7.5 4.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
59
35
|
</svg>
|
|
60
36
|
</div>
|
|
61
37
|
<!-- hamburger icon -->
|
|
@@ -25,10 +25,7 @@ watch(
|
|
|
25
25
|
if (n) {
|
|
26
26
|
nextTick(() => {
|
|
27
27
|
setTimeout(() => {
|
|
28
|
-
const top =
|
|
29
|
-
(sidebarItem.value &&
|
|
30
|
-
sidebarItem.value.getBoundingClientRect().top) ||
|
|
31
|
-
0;
|
|
28
|
+
const top = (sidebarItem.value && sidebarItem.value.getBoundingClientRect().top) || 0;
|
|
32
29
|
// preventing scroll to options that are already visible
|
|
33
30
|
if (top > window.innerHeight - 200) {
|
|
34
31
|
// scroll to selected option item
|
|
@@ -37,7 +34,7 @@ watch(
|
|
|
37
34
|
block: "center",
|
|
38
35
|
});
|
|
39
36
|
}
|
|
40
|
-
},
|
|
37
|
+
}, 300);
|
|
41
38
|
});
|
|
42
39
|
}
|
|
43
40
|
},
|
|
@@ -47,12 +44,7 @@ watch(
|
|
|
47
44
|
|
|
48
45
|
<template>
|
|
49
46
|
<li ref="sidebarItem" data-testid="cluster-sidebar-item">
|
|
50
|
-
<router-link
|
|
51
|
-
:id="id"
|
|
52
|
-
:title="title"
|
|
53
|
-
:to="url"
|
|
54
|
-
:class="{ 'is-active': isActive }"
|
|
55
|
-
>
|
|
47
|
+
<router-link :id="id" :title="title" :to="url" :class="{ 'is-active': isActive }">
|
|
56
48
|
<span>
|
|
57
49
|
<img :src="icon" alt="icon" />
|
|
58
50
|
</span>
|
|
@@ -43,7 +43,7 @@ onMounted(() => {
|
|
|
43
43
|
} else {
|
|
44
44
|
setDropdownMaxHeight("close");
|
|
45
45
|
}
|
|
46
|
-
},
|
|
46
|
+
}, 200);
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
watch(
|
|
@@ -85,8 +85,7 @@ watch(dropDownStatus, (n) => {
|
|
|
85
85
|
nextTick(() => {
|
|
86
86
|
const dropDownUl = sectionItems.value;
|
|
87
87
|
// debugger;
|
|
88
|
-
if (dropDownUl)
|
|
89
|
-
dropDownSectionHeight.value = `${dropDownUl.scrollHeight}px`;
|
|
88
|
+
if (dropDownUl) dropDownSectionHeight.value = `${dropDownUl.scrollHeight}px`;
|
|
90
89
|
});
|
|
91
90
|
} else {
|
|
92
91
|
// emit event to close other drop down items
|
|
@@ -107,10 +106,7 @@ watch(dropDownStatus, (n) => {
|
|
|
107
106
|
</span>
|
|
108
107
|
</a>
|
|
109
108
|
|
|
110
|
-
<ul
|
|
111
|
-
ref="sectionItems"
|
|
112
|
-
:style="{ maxHeight: dropDownSectionHeight || undefined }"
|
|
113
|
-
>
|
|
109
|
+
<ul ref="sectionItems" :style="{ maxHeight: dropDownSectionHeight || undefined }">
|
|
114
110
|
<slot />
|
|
115
111
|
</ul>
|
|
116
112
|
</li>
|
|
@@ -55,8 +55,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
55
55
|
<span
|
|
56
56
|
:class="{
|
|
57
57
|
'label-text': true,
|
|
58
|
-
'has-text-weight-semibold':
|
|
59
|
-
substep.identifier <= activeSubStepIdentifier,
|
|
58
|
+
'has-text-weight-semibold': substep.identifier <= activeSubStepIdentifier,
|
|
60
59
|
}"
|
|
61
60
|
>{{ substep.title }}</span
|
|
62
61
|
>
|
|
@@ -15,10 +15,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
15
15
|
</div>
|
|
16
16
|
<!-- sidebar tabs -->
|
|
17
17
|
|
|
18
|
-
<div
|
|
19
|
-
class="content-wrapper"
|
|
20
|
-
:class="isSidebarVisible ? 'pl-220' : 'pl-0 pb-0'"
|
|
21
|
-
>
|
|
18
|
+
<div class="content-wrapper" :class="isSidebarVisible ? 'pl-220' : 'pl-0 pb-0'">
|
|
22
19
|
<!-- sidebar content -->
|
|
23
20
|
<slot name="tabs-content" />
|
|
24
21
|
<!-- sidebar content -->
|
|
@@ -3,91 +3,73 @@
|
|
|
3
3
|
<div class="content pt-10 pl-20 pb-20">
|
|
4
4
|
<h1>Heading One</h1>
|
|
5
5
|
<p>
|
|
6
|
-
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
corporis ex doloremque magnam animi numquam?
|
|
6
|
+
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
|
|
7
|
+
similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
|
|
8
|
+
magnam animi numquam?
|
|
10
9
|
</p>
|
|
11
10
|
<h2>Heading Two</h2>
|
|
12
11
|
<p>
|
|
13
|
-
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
consectetur
|
|
18
|
-
commodi similique perferendis necessitatibus. Praesentium labore
|
|
19
|
-
laudantium assumenda consectetur corporis ex doloremque magnam animi
|
|
20
|
-
numquam?
|
|
12
|
+
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
|
|
13
|
+
similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
|
|
14
|
+
magnam animi numquam? Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque
|
|
15
|
+
voluptatum quos a commodi similique perferendis necessitatibus. Praesentium labore laudantium assumenda
|
|
16
|
+
consectetur corporis ex doloremque magnam animi numquam?
|
|
21
17
|
</p>
|
|
22
18
|
<h3>Heading three</h3>
|
|
23
19
|
<p>
|
|
24
|
-
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
corporis ex doloremque magnam animi numquam?
|
|
20
|
+
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
|
|
21
|
+
similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
|
|
22
|
+
magnam animi numquam?
|
|
28
23
|
</p>
|
|
29
24
|
|
|
30
25
|
<h4>Heading Four</h4>
|
|
31
26
|
<p>
|
|
32
|
-
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
corporis ex doloremque magnam animi numquam?
|
|
27
|
+
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
|
|
28
|
+
similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
|
|
29
|
+
magnam animi numquam?
|
|
36
30
|
</p>
|
|
37
31
|
<h5>Heading Five</h5>
|
|
38
32
|
<p>
|
|
39
|
-
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
consectetur
|
|
44
|
-
commodi similique perferendis necessitatibus. Praesentium labore
|
|
45
|
-
laudantium assumenda consectetur corporis ex doloremque magnam animi
|
|
46
|
-
numquam?
|
|
33
|
+
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
|
|
34
|
+
similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
|
|
35
|
+
magnam animi numquam? Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque
|
|
36
|
+
voluptatum quos a commodi similique perferendis necessitatibus. Praesentium labore laudantium assumenda
|
|
37
|
+
consectetur corporis ex doloremque magnam animi numquam?
|
|
47
38
|
</p>
|
|
48
39
|
<h6>Heading Six</h6>
|
|
49
40
|
<p>
|
|
50
|
-
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
corporis ex doloremque magnam animi numquam?
|
|
41
|
+
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
|
|
42
|
+
similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
|
|
43
|
+
magnam animi numquam?
|
|
54
44
|
</p>
|
|
55
45
|
|
|
56
46
|
<h4>Block Quote</h4>
|
|
57
47
|
|
|
58
48
|
<blockquote>
|
|
59
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et repudiandae
|
|
60
|
-
|
|
61
|
-
officia nostrum, commodi sint saepe delectus itaque vel quae voluptates
|
|
62
|
-
atque.
|
|
49
|
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et repudiandae officiis autem aspernatur. Ab cum quisquam
|
|
50
|
+
dolore pariatur consequuntur officia nostrum, commodi sint saepe delectus itaque vel quae voluptates atque.
|
|
63
51
|
</blockquote>
|
|
64
52
|
|
|
65
53
|
<h5>Heading Five</h5>
|
|
66
54
|
<p>
|
|
67
|
-
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
consectetur
|
|
72
|
-
commodi similique perferendis necessitatibus. Praesentium labore
|
|
73
|
-
laudantium assumenda consectetur corporis ex doloremque magnam animi
|
|
74
|
-
numquam?
|
|
55
|
+
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
|
|
56
|
+
similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
|
|
57
|
+
magnam animi numquam? Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque
|
|
58
|
+
voluptatum quos a commodi similique perferendis necessitatibus. Praesentium labore laudantium assumenda
|
|
59
|
+
consectetur corporis ex doloremque magnam animi numquam?
|
|
75
60
|
</p>
|
|
76
61
|
<h6>Heading Six</h6>
|
|
77
62
|
<p>
|
|
78
|
-
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
corporis ex doloremque magnam animi numquam?
|
|
63
|
+
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
|
|
64
|
+
similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
|
|
65
|
+
magnam animi numquam?
|
|
82
66
|
</p>
|
|
83
67
|
|
|
84
68
|
<h4>Block Quote</h4>
|
|
85
69
|
|
|
86
70
|
<blockquote>
|
|
87
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et repudiandae
|
|
88
|
-
|
|
89
|
-
officia nostrum, commodi sint saepe delectus itaque vel quae voluptates
|
|
90
|
-
atque.
|
|
71
|
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et repudiandae officiis autem aspernatur. Ab cum quisquam
|
|
72
|
+
dolore pariatur consequuntur officia nostrum, commodi sint saepe delectus itaque vel quae voluptates atque.
|
|
91
73
|
</blockquote>
|
|
92
74
|
</div>
|
|
93
75
|
</template>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="colored-steps">
|
|
3
|
+
<ol class="steps">
|
|
4
|
+
<li class="step">
|
|
5
|
+
<div class="step-header bg-primary"></div>
|
|
6
|
+
<p>Step 1</p>
|
|
7
|
+
</li>
|
|
8
|
+
<li class="step">
|
|
9
|
+
<div class="step-header bg-info"></div>
|
|
10
|
+
<p>Step 2</p>
|
|
11
|
+
</li>
|
|
12
|
+
<li class="step">
|
|
13
|
+
<div class="step-header bg-info"></div>
|
|
14
|
+
<p>Step 2</p>
|
|
15
|
+
</li>
|
|
16
|
+
<li class="step">
|
|
17
|
+
<div class="step-header bg-error"></div>
|
|
18
|
+
<p>Step 2</p>
|
|
19
|
+
</li>
|
|
20
|
+
<li class="step">
|
|
21
|
+
<div class="step-header bg-warning"></div>
|
|
22
|
+
<p>Step 2</p>
|
|
23
|
+
</li>
|
|
24
|
+
</ol>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<style lang="scss">
|
|
29
|
+
.colored-steps {
|
|
30
|
+
--size: 8px;
|
|
31
|
+
--line: 1px;
|
|
32
|
+
ol {
|
|
33
|
+
display: flex;
|
|
34
|
+
// gap: 48px;
|
|
35
|
+
|
|
36
|
+
li {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
position: relative;
|
|
41
|
+
width: 100px;
|
|
42
|
+
&:not(&:last-child) {
|
|
43
|
+
&::before {
|
|
44
|
+
position: absolute;
|
|
45
|
+
content: "";
|
|
46
|
+
height: var(--line);
|
|
47
|
+
left: 50%;
|
|
48
|
+
top: calc(var(--size) / 2 - var(--line) / 2);
|
|
49
|
+
order: -1;
|
|
50
|
+
background-color: #333;
|
|
51
|
+
width: calc(100% - var(--size));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.step-header {
|
|
56
|
+
background-color: $ac-primary;
|
|
57
|
+
align-items: center;
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
height: var(--size);
|
|
61
|
+
justify-content: center;
|
|
62
|
+
margin: auto auto var(--size);
|
|
63
|
+
position: relative;
|
|
64
|
+
width: var(--size);
|
|
65
|
+
border-radius: 50%;
|
|
66
|
+
}
|
|
67
|
+
p {
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
margin: 0;
|
|
70
|
+
padding: 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
</style>
|
|
@@ -15,21 +15,15 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
15
15
|
removeContentPadding: false,
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
const TableContainer = defineAsyncComponent(
|
|
19
|
-
() => import("./TableContainer.vue")
|
|
20
|
-
);
|
|
18
|
+
const TableContainer = defineAsyncComponent(() => import("./TableContainer.vue"));
|
|
21
19
|
|
|
22
|
-
const EmptyTableInfo = defineAsyncComponent(
|
|
23
|
-
() => import("./EmptyTableInfo.vue")
|
|
24
|
-
);
|
|
20
|
+
const EmptyTableInfo = defineAsyncComponent(() => import("./EmptyTableInfo.vue"));
|
|
25
21
|
|
|
26
22
|
const TableRow = defineAsyncComponent(() => import("./TableRow.vue"));
|
|
27
23
|
|
|
28
24
|
const TableCell = defineAsyncComponent(() => import("./TableCell.vue"));
|
|
29
25
|
|
|
30
|
-
const CellValue = defineAsyncComponent(
|
|
31
|
-
() => import("./table-cell/CellValue.vue")
|
|
32
|
-
);
|
|
26
|
+
const CellValue = defineAsyncComponent(() => import("./table-cell/CellValue.vue"));
|
|
33
27
|
|
|
34
28
|
const loaderCols = ref(5);
|
|
35
29
|
|
|
@@ -40,10 +34,7 @@ const isFullTableLoaderActive = computed(() => {
|
|
|
40
34
|
|
|
41
35
|
<template>
|
|
42
36
|
<table-container>
|
|
43
|
-
<table
|
|
44
|
-
class="table ac-info-table is-fullwidth"
|
|
45
|
-
:class="{ 'pl-0 pr-0': removeContentPadding }"
|
|
46
|
-
>
|
|
37
|
+
<table class="table ac-info-table is-fullwidth" :class="{ 'pl-0 pr-0': removeContentPadding }">
|
|
47
38
|
<tbody v-if="isFullTableLoaderActive">
|
|
48
39
|
<table-row v-for="i in loaderCols" :key="i">
|
|
49
40
|
<table-cell>
|
|
@@ -62,10 +53,7 @@ const isFullTableLoaderActive = computed(() => {
|
|
|
62
53
|
}"
|
|
63
54
|
>
|
|
64
55
|
<template v-if="!isTableEmpty">
|
|
65
|
-
<table-row
|
|
66
|
-
v-for="(tableHeader, idx) in tableHeaders"
|
|
67
|
-
:key="(tableHeader as string)"
|
|
68
|
-
>
|
|
56
|
+
<table-row v-for="(tableHeader, idx) in tableHeaders" :key="(tableHeader as string)">
|
|
69
57
|
<table-cell>
|
|
70
58
|
<span class="is-flex is-align-items-center">
|
|
71
59
|
<slot :name="`table-cell-icon-${idx}`" />
|
|
@@ -16,17 +16,11 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
16
16
|
removeContentPadding: false,
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
const TableContainer = defineAsyncComponent(
|
|
20
|
-
|
|
21
|
-
);
|
|
22
|
-
const EmptyTableInfo = defineAsyncComponent(
|
|
23
|
-
() => import("../table/EmptyTableInfo.vue")
|
|
24
|
-
);
|
|
19
|
+
const TableContainer = defineAsyncComponent(() => import("../table/TableContainer.vue"));
|
|
20
|
+
const EmptyTableInfo = defineAsyncComponent(() => import("../table/EmptyTableInfo.vue"));
|
|
25
21
|
const TableRow = defineAsyncComponent(() => import("../table/TableRow.vue"));
|
|
26
22
|
const TableCell = defineAsyncComponent(() => import("../table/TableCell.vue"));
|
|
27
|
-
const CellValue = defineAsyncComponent(
|
|
28
|
-
() => import("../table/table-cell/CellValue.vue")
|
|
29
|
-
);
|
|
23
|
+
const CellValue = defineAsyncComponent(() => import("../table/table-cell/CellValue.vue"));
|
|
30
24
|
|
|
31
25
|
const loaderCols = ref(5);
|
|
32
26
|
const headerSortables = ref<Array<{ enabled: boolean; mode: string }>>([]);
|
|
@@ -36,9 +30,7 @@ const isFullTableLoaderActive = computed(() => {
|
|
|
36
30
|
});
|
|
37
31
|
|
|
38
32
|
const headerLabels = computed(() => {
|
|
39
|
-
return props.tableHeaders.map((th) =>
|
|
40
|
-
typeof th === "string" ? th : th?.name || "Label"
|
|
41
|
-
);
|
|
33
|
+
return props.tableHeaders.map((th) => (typeof th === "string" ? th : th?.name || "Label"));
|
|
42
34
|
});
|
|
43
35
|
|
|
44
36
|
watch(
|
|
@@ -72,10 +64,7 @@ watch(
|
|
|
72
64
|
|
|
73
65
|
<template>
|
|
74
66
|
<table-container>
|
|
75
|
-
<table
|
|
76
|
-
class="table ac-info-table is-fullwidth"
|
|
77
|
-
:class="{ 'pl-0 pr-0': removeContentPadding }"
|
|
78
|
-
>
|
|
67
|
+
<table class="table ac-info-table is-fullwidth" :class="{ 'pl-0 pr-0': removeContentPadding }">
|
|
79
68
|
<tbody v-if="isFullTableLoaderActive">
|
|
80
69
|
<table-row v-for="i in loaderCols" :key="i">
|
|
81
70
|
<table-cell>
|
|
@@ -94,10 +83,7 @@ watch(
|
|
|
94
83
|
}"
|
|
95
84
|
>
|
|
96
85
|
<template v-if="!isTableEmpty">
|
|
97
|
-
<table-row
|
|
98
|
-
v-for="(tableHeader, idx) in tableHeaders"
|
|
99
|
-
:key="headerLabels[idx]"
|
|
100
|
-
>
|
|
86
|
+
<table-row v-for="(tableHeader, idx) in tableHeaders" :key="headerLabels[idx]">
|
|
101
87
|
<table-cell>
|
|
102
88
|
<slot :name="`table-cell-icon-${idx}`" />
|
|
103
89
|
{{ headerLabels[idx] }}
|