@redseed/redseed-ui-vue3 2.18.6 → 2.18.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.18.6",
3
+ "version": "2.18.8",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,12 +1,11 @@
1
1
  <script setup>
2
- import { ref } from 'vue'
3
2
  import FormSlot from './FormSlot.vue'
4
- import LogoRedSeedLMS from '../Logo/LogoRedSeedLMS.vue'
5
3
  </script>
6
4
  <template>
7
5
  <FormSlot class="rsui-form-wrapper-lms">
8
- <template #image>
9
- <LogoRedSeedLMS class="rsui-form-wrapper-lms__image"></LogoRedSeedLMS>
6
+
7
+ <template #image v-if="$slots.image">
8
+ <slot name="image"></slot>
10
9
  </template>
11
10
 
12
11
  <template #top v-if="$slots.top">
@@ -7,11 +7,15 @@ const props = defineProps({
7
7
  default: () =>[],
8
8
  }
9
9
  });
10
+
11
+ function isLastItem(item) {
12
+ return props.items.indexOf(item) === props.items.length - 1;
13
+ }
10
14
  </script>
11
15
 
12
16
  <template>
13
17
  <ul class="rsui-linked-list">
14
- <LinkedListItem v-for="item in props.items" :key="item.id" :status="item.status">
18
+ <LinkedListItem v-for="item in props.items" :key="item.id" :status="item.status" :show-line="!isLastItem(item)">
15
19
  <template #title>{{ item.title }}</template>
16
20
  <template #body>{{ item.body }}</template>
17
21
  </LinkedListItem>
@@ -5,6 +5,10 @@ const props = defineProps({
5
5
  status: {
6
6
  type: String,
7
7
  default: 'default',
8
+ },
9
+ showLine: {
10
+ type: Boolean,
11
+ default: true,
8
12
  }
9
13
  });
10
14
 
@@ -13,7 +17,7 @@ const statusClass = computed(() => `rsui-linked-list-item--${props.status}`);
13
17
 
14
18
  <template>
15
19
  <li class="rsui-linked-list-item" :class="statusClass">
16
- <div class="rsui-linked-list-item__line"></div>
20
+ <div v-if="showLine" class="rsui-linked-list-item__line"></div>
17
21
  <div class="rsui-linked-list-item__status"></div>
18
22
  <div class="rsui-linked-list-item__content">
19
23
  <div class="rsui-linked-list-item__title">