@redseed/redseed-ui-vue3 2.13.6 → 2.13.7
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
|
@@ -41,7 +41,14 @@ const cardGroupClasses = computed(() => [
|
|
|
41
41
|
}
|
|
42
42
|
])
|
|
43
43
|
|
|
44
|
-
const emit = defineEmits([
|
|
44
|
+
const emit = defineEmits([
|
|
45
|
+
'pageUpdated',
|
|
46
|
+
'firstPageUpdated',
|
|
47
|
+
'lastPageUpdated',
|
|
48
|
+
'clickEmptyAction',
|
|
49
|
+
'clickSecondaryEmptyAction',
|
|
50
|
+
'clickTertiaryEmptyAction'
|
|
51
|
+
])
|
|
45
52
|
|
|
46
53
|
const pageUpdated = (event) => {
|
|
47
54
|
emit('pageUpdated', event)
|
|
@@ -75,7 +82,11 @@ const showNotFoundMessage = computed(() => !props.totalItems && props.controlApp
|
|
|
75
82
|
<slot></slot>
|
|
76
83
|
</div>
|
|
77
84
|
<div v-if="showEmptyMessage" class="rsui-card-group__empty">
|
|
78
|
-
<Empty
|
|
85
|
+
<Empty
|
|
86
|
+
@clickPrimaryAction="$emit('clickEmptyAction')"
|
|
87
|
+
@clickSecondaryAction="$emit('clickSecondaryEmptyAction')"
|
|
88
|
+
@clickTertiaryAction="$emit('clickTertiaryEmptyAction')"
|
|
89
|
+
>
|
|
79
90
|
<template #image>
|
|
80
91
|
<slot name="empty-image"></slot>
|
|
81
92
|
</template>
|
|
@@ -85,6 +96,12 @@ const showNotFoundMessage = computed(() => !props.totalItems && props.controlApp
|
|
|
85
96
|
<template #primary-action-label v-if="$slots['empty-action-label']">
|
|
86
97
|
<slot name="empty-action-label"></slot>
|
|
87
98
|
</template>
|
|
99
|
+
<template #secondary-action-label v-if="$slots['empty-secondary-action-label']">
|
|
100
|
+
<slot name="empty-secondary-action-label"></slot>
|
|
101
|
+
</template>
|
|
102
|
+
<template #tertiary-action-label v-if="$slots['empty-tertiary-action-label']">
|
|
103
|
+
<slot name="empty-tertiary-action-label"></slot>
|
|
104
|
+
</template>
|
|
88
105
|
|
|
89
106
|
<slot name="empty-description">It looks like there's nothing here yet.</slot>
|
|
90
107
|
</Empty>
|