@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-vue3",
3
- "version": "5.3.8",
3
+ "version": "5.3.10",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/redseedtraining/redseed-ui",
@@ -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
- <Empty
90
- @clickPrimaryAction="$emit('clickEmptyAction')"
91
- @clickSecondaryAction="$emit('clickSecondaryEmptyAction')"
92
- @clickTertiaryAction="$emit('clickTertiaryEmptyAction')"
93
- >
94
- <template #image>
95
- <slot name="empty-image"></slot>
96
- </template>
97
-
98
- <template #title v-if="$slots['empty-title']">
99
- <slot name="empty-title"></slot>
100
- </template>
101
-
102
- <slot name="empty-description">It looks like there's nothing here yet.</slot>
103
-
104
- <template #actions="{ isWide }" v-if="$slots['empty-actions']">
105
- <slot name="empty-actions" :isWide="isWide"></slot>
106
- </template>
107
-
108
- <template #primary-action-label v-if="$slots['empty-action-label']">
109
- <slot name="empty-action-label"></slot>
110
- </template>
111
-
112
- <template #secondary-action-label v-if="$slots['empty-secondary-action-label']">
113
- <slot name="empty-secondary-action-label"></slot>
114
- </template>
115
-
116
- <template #tertiary-action-label v-if="$slots['empty-tertiary-action-label']">
117
- <slot name="empty-tertiary-action-label"></slot>
118
- </template>
119
- </Empty>
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-group">
122
- <Empty>
123
- <slot name="filter-empty-description">No items meet your filter criteria.</slot>
124
- </Empty>
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 class="rsui-empty__image">
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--no-divider': !showDivider }
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
- @apply border-b border-rsui-grey-400 pb-5;
107
- &--no-divider {
108
- @apply border-b-0;
106
+ &--divider {
107
+ @apply border-b border-rsui-grey-400 pb-5;
109
108
  }
110
109
 
111
110
  &__header {