@redseed/redseed-ui-vue3 2.13.6 → 2.13.8

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-vue3",
3
- "version": "2.13.6",
3
+ "version": "2.13.8",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -88,6 +88,9 @@ function onClick() {
88
88
  }
89
89
  &--clickable {
90
90
  @apply cursor-pointer;
91
+ .rsui-card__image {
92
+ @apply pointer-events-none;
93
+ }
91
94
  .rsui-card__content {
92
95
  @apply pointer-events-none;
93
96
  }
@@ -41,7 +41,14 @@ const cardGroupClasses = computed(() => [
41
41
  }
42
42
  ])
43
43
 
44
- const emit = defineEmits(['pageUpdated', 'firstPageUpdated', 'lastPageUpdated'])
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 @clickPrimaryAction="$emit('clickEmptyAction')">
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>