@redseed/redseed-ui-vue3 5.3.8 → 5.3.10
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
CHANGED
|
@@ -86,42 +86,46 @@ const showNotFoundMessage = computed(() => !props.totalItems && props.controlApp
|
|
|
86
86
|
<slot></slot>
|
|
87
87
|
</div>
|
|
88
88
|
<div v-if="showEmptyMessage" class="rsui-card-group__empty">
|
|
89
|
-
<
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
<
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
89
|
+
<slot name="empty">
|
|
90
|
+
<Empty
|
|
91
|
+
@clickPrimaryAction="$emit('clickEmptyAction')"
|
|
92
|
+
@clickSecondaryAction="$emit('clickSecondaryEmptyAction')"
|
|
93
|
+
@clickTertiaryAction="$emit('clickTertiaryEmptyAction')"
|
|
94
|
+
>
|
|
95
|
+
<template #image>
|
|
96
|
+
<slot name="empty-image"></slot>
|
|
97
|
+
</template>
|
|
98
|
+
|
|
99
|
+
<template #title v-if="$slots['empty-title']">
|
|
100
|
+
<slot name="empty-title"></slot>
|
|
101
|
+
</template>
|
|
102
|
+
|
|
103
|
+
<slot name="empty-description">It looks like there's nothing here yet.</slot>
|
|
104
|
+
|
|
105
|
+
<template #actions="{ isWide }" v-if="$slots['empty-actions']">
|
|
106
|
+
<slot name="empty-actions" :isWide="isWide"></slot>
|
|
107
|
+
</template>
|
|
108
|
+
|
|
109
|
+
<template #primary-action-label v-if="$slots['empty-action-label']">
|
|
110
|
+
<slot name="empty-action-label"></slot>
|
|
111
|
+
</template>
|
|
112
|
+
|
|
113
|
+
<template #secondary-action-label v-if="$slots['empty-secondary-action-label']">
|
|
114
|
+
<slot name="empty-secondary-action-label"></slot>
|
|
115
|
+
</template>
|
|
116
|
+
|
|
117
|
+
<template #tertiary-action-label v-if="$slots['empty-tertiary-action-label']">
|
|
118
|
+
<slot name="empty-tertiary-action-label"></slot>
|
|
119
|
+
</template>
|
|
120
|
+
</Empty>
|
|
121
|
+
</slot>
|
|
120
122
|
</div>
|
|
121
|
-
<div v-if="showNotFoundMessage" class="rsui-card-
|
|
122
|
-
<
|
|
123
|
-
<
|
|
124
|
-
|
|
123
|
+
<div v-if="showNotFoundMessage" class="rsui-card-group__empty">
|
|
124
|
+
<slot name="not-found">
|
|
125
|
+
<Empty>
|
|
126
|
+
<slot name="filter-empty-description">No items meet your filter criteria.</slot>
|
|
127
|
+
</Empty>
|
|
128
|
+
</slot>
|
|
125
129
|
</div>
|
|
126
130
|
</div>
|
|
127
131
|
</template>
|
|
@@ -7,6 +7,13 @@ import BodyText from '../HTML/BodyText.vue'
|
|
|
7
7
|
import { ExclamationCircleIcon } from '@heroicons/vue/24/outline'
|
|
8
8
|
import { useResponsiveWidth } from '../../helpers/ResponsiveWidth'
|
|
9
9
|
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
showImage: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: true,
|
|
14
|
+
},
|
|
15
|
+
})
|
|
16
|
+
|
|
10
17
|
const emit = defineEmits(['clickPrimaryAction', 'clickSecondaryAction', 'clickTertiaryAction'])
|
|
11
18
|
|
|
12
19
|
const emptyElement = ref(null)
|
|
@@ -32,7 +39,9 @@ const emptyClass = computed(() => [
|
|
|
32
39
|
This slot is used to render the image.
|
|
33
40
|
The image is used to display an icon or an image.
|
|
34
41
|
-->
|
|
35
|
-
<div
|
|
42
|
+
<div v-if="showImage"
|
|
43
|
+
class="rsui-empty__image"
|
|
44
|
+
>
|
|
36
45
|
<slot name="image">
|
|
37
46
|
<ExclamationCircleIcon></ExclamationCircleIcon>
|
|
38
47
|
</slot>
|
|
@@ -37,7 +37,7 @@ const emit = defineEmits(['click:more-actions'])
|
|
|
37
37
|
<div ref="sectionHeaderElement"
|
|
38
38
|
:class="[
|
|
39
39
|
'rsui-section-header',
|
|
40
|
-
{ 'rsui-section-header--
|
|
40
|
+
{ 'rsui-section-header--divider': showDivider }
|
|
41
41
|
]"
|
|
42
42
|
>
|
|
43
43
|
<div class="rsui-section-header__header">
|
|
@@ -103,9 +103,8 @@ const emit = defineEmits(['click:more-actions'])
|
|
|
103
103
|
.rsui-section-header {
|
|
104
104
|
@apply flex flex-col gap-x-3 gap-y-5;
|
|
105
105
|
@apply md:flex-row md:justify-between md:items-center;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
@apply border-b-0;
|
|
106
|
+
&--divider {
|
|
107
|
+
@apply border-b border-rsui-grey-400 pb-5;
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
&__header {
|