@asd20/ui 3.2.451 → 3.2.452

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
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.451",
8
+ "version": "3.2.452",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -11,7 +11,8 @@
11
11
  v-bind="announcementsFeedProps"
12
12
  :loading="!Array.isArray(announcements)"
13
13
  :cards="announcementCards"
14
- :slidesPerView="4"
14
+ :slidesPerView="announcementCards.length < 6 ? 3 : 4"
15
+ cardType="Announcement"
15
16
  ></Asd20SwiperFeed>
16
17
  </intersect>
17
18
 
@@ -23,6 +24,7 @@
23
24
  :cards="eventCards"
24
25
  :slidesPerView="4"
25
26
  @select="onSelectEventCard"
27
+ cardType="Event"
26
28
  ></Asd20SwiperFeed>
27
29
  </intersect>
28
30
 
@@ -33,6 +35,7 @@
33
35
  :loading="!Array.isArray(stories)"
34
36
  :cards="storyCards"
35
37
  :slidesPerView="3"
38
+ cardType="Feature"
36
39
  ></Asd20SwiperFeed>
37
40
  </intersect>
38
41
 
@@ -80,6 +83,8 @@ export default {
80
83
 
81
84
  people: { type: [Array, Promise], default: () => [] },
82
85
  peopleFeedProps: { type: Object, default: () => {} },
86
+
87
+ cardType: { type: String, default: '' },
83
88
  },
84
89
 
85
90
  data: () => ({
@@ -494,9 +494,9 @@ export default {
494
494
  }
495
495
  &__title-content {
496
496
  max-width: space(35);
497
- .asd20-page-header__lead {
498
- margin-right: 25%;
499
- }
497
+ // .asd20-page-header__lead {
498
+ // margin-right: 25%;
499
+ // }
500
500
  }
501
501
 
502
502
  &::v-deep .asd20-organization-picker {
@@ -15,7 +15,11 @@
15
15
  </div>
16
16
  <div class="swiper-slide">
17
17
  <asd20-card
18
- :title="linkLabel"
18
+ :title="
19
+ cards.length >= 10 || cardType === 'Events'
20
+ ? linkLabel
21
+ : `Watch this space for more ${cardType}s.`
22
+ "
19
23
  :link="link"
20
24
  expanded-header
21
25
  zoom
@@ -30,7 +34,7 @@
30
34
  </template>
31
35
  </asd20-swiper>
32
36
  <asd20-button
33
- v-if="link && linkLabel"
37
+ v-if="link && linkLabel && (cards.length >= 10 || cardType === 'Event')"
34
38
  :label="linkLabel"
35
39
  :link="link"
36
40
  size="md"
@@ -65,6 +69,7 @@ export default {
65
69
  link: { type: String, default: '' },
66
70
  linkLabel: { type: String, default: '' },
67
71
  tag: { type: String, default: 'div' },
72
+ cardType: { type: String, default: '' },
68
73
  },
69
74
 
70
75
  computed: {