@appscode/design-system 2.6.7 → 2.6.8-alpha-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/package.json +1 -1
- package/vue-components/styles/components/cards/_org.scss +2 -3
- package/vue-components/v3/cards/Cluster.vue +1 -1
- package/vue-components/v3/cards/OrgCard.vue +23 -11
- package/vue-components/v3/inbox/Inbox.vue +1 -3
- package/vue-components/v3/inbox/MessageDetails.vue +2 -5
- package/vue-components/v3/inbox/MessageList.vue +1 -1
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ interface Props {
|
|
|
13
13
|
cardLabel?: string;
|
|
14
14
|
noDataAvailable?: boolean;
|
|
15
15
|
hideCreateButton?: boolean;
|
|
16
|
+
noClusterAvailable?: boolean;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
withDefaults(defineProps<Props>(), {
|
|
@@ -20,29 +21,40 @@ withDefaults(defineProps<Props>(), {
|
|
|
20
21
|
type: "organization",
|
|
21
22
|
modifierClasses: "",
|
|
22
23
|
roundedThumbnail: true,
|
|
23
|
-
thumbnail: "https://
|
|
24
|
+
thumbnail: "https://placehold.co/100x100",
|
|
24
25
|
cardLabel: "",
|
|
25
26
|
noDataAvailable: false,
|
|
26
27
|
hideCreateButton: false,
|
|
28
|
+
noClusterAvailable: false,
|
|
27
29
|
});
|
|
28
30
|
</script>
|
|
29
31
|
<template>
|
|
30
32
|
<div
|
|
31
|
-
class="card-details
|
|
32
|
-
:class="[
|
|
33
|
+
class="card-details"
|
|
34
|
+
:class="[
|
|
35
|
+
modifierClasses,
|
|
36
|
+
{
|
|
37
|
+
'has-hover-style': !noClusterAvailable,
|
|
38
|
+
'no-data-available is-justify-content-center': noDataAvailable || noClusterAvailable,
|
|
39
|
+
},
|
|
40
|
+
]"
|
|
33
41
|
>
|
|
34
|
-
<div class="left-content" :class="{ 'is-align-items-center': noDataAvailable }">
|
|
35
|
-
<figure class="image" :class="
|
|
36
|
-
<img :
|
|
42
|
+
<div class="left-content" :class="{ 'is-align-items-center': noDataAvailable || noClusterAvailable }">
|
|
43
|
+
<figure class="image is-clipped" :class="[noClusterAvailable ? 'is-96x96' : 'width-64']">
|
|
44
|
+
<img :src="thumbnail" />
|
|
37
45
|
</figure>
|
|
38
|
-
<h5>{{ title }}</h5>
|
|
39
46
|
|
|
40
|
-
<
|
|
47
|
+
<h5>{{ noClusterAvailable ? "No Cluster Available" : title }}</h5>
|
|
48
|
+
|
|
49
|
+
<AcButton
|
|
50
|
+
v-if="noDataAvailable && !noClusterAvailable && !hideCreateButton"
|
|
51
|
+
:title="cardLabel"
|
|
52
|
+
icon-class="unplugin"
|
|
53
|
+
>
|
|
41
54
|
<template #icon><HeroiconsPlus /></template>
|
|
42
55
|
</AcButton>
|
|
43
|
-
|
|
44
56
|
<AcButton
|
|
45
|
-
v-else
|
|
57
|
+
v-else-if="!noClusterAvailable"
|
|
46
58
|
:title="cardLabel"
|
|
47
59
|
modifier-classes="is-text px-0 is-flex-direction-row-reverse gap-8"
|
|
48
60
|
icon-class="unplugin"
|
|
@@ -50,7 +62,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
50
62
|
<template #icon v-if="!hideCreateButton"><HeroiconsArrowSmallRight /></template>
|
|
51
63
|
</AcButton>
|
|
52
64
|
</div>
|
|
53
|
-
<div class="right-content" v-if="!noDataAvailable">
|
|
65
|
+
<div class="right-content" v-if="!noDataAvailable && !noClusterAvailable">
|
|
54
66
|
<figure class="image is-48x48">
|
|
55
67
|
<img v-if="type === 'organization'" src="../../images/icons/org-icon.svg" />
|
|
56
68
|
<img v-else src="../../images/icons/cluster-icon.svg" />
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { defineAsyncComponent } from "vue";
|
|
3
2
|
import MessageDetails from "./MessageDetails.vue";
|
|
4
|
-
|
|
5
|
-
const MessageList = defineAsyncComponent(() => import("@/components/vue-components/v3/inbox/MessageList.vue"));
|
|
3
|
+
import MessageList from "./MessageList.vue";
|
|
6
4
|
</script>
|
|
7
5
|
|
|
8
6
|
<template>
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import { defineAsyncComponent } from "vue";
|
|
3
|
-
const AlertMessage = defineAsyncComponent(() => import("
|
|
4
|
-
const AcSingleInput = defineAsyncComponent(
|
|
5
|
-
() => import("@/components/vue-components/v3/form-fields/AcSingleInput.vue"),
|
|
6
|
-
);
|
|
7
|
-
|
|
3
|
+
const AlertMessage = defineAsyncComponent(() => import("../alert/AlertMessage.vue"));
|
|
4
|
+
const AcSingleInput = defineAsyncComponent(() => import("../form-fields/AcSingleInput.vue"));
|
|
8
5
|
const EllipsisVertical = defineAsyncComponent(() => import("../icons/EllipsisVertical.vue"));
|
|
9
6
|
const StarIcon = defineAsyncComponent(() => import("../icons/StarIcon.vue"));
|
|
10
7
|
const TrashIcon = defineAsyncComponent(() => import("../icons/TrashIcon.vue"));
|
|
@@ -6,7 +6,7 @@ import RefreshIcon from "../icons/RefreshIcon.vue";
|
|
|
6
6
|
import EllipsisVertical from "../icons/EllipsisVertical.vue";
|
|
7
7
|
import StarIcon from "../icons/StarIcon.vue";
|
|
8
8
|
|
|
9
|
-
const Searchbar = defineAsyncComponent(() => import("
|
|
9
|
+
const Searchbar = defineAsyncComponent(() => import("../form-fields/Searchbar.vue"));
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|