@explorer-1/vue 0.2.40 → 0.2.42

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.
Files changed (54) hide show
  1. package/components.d.ts +3 -0
  2. package/dist/explorer-1-vue.js +4912 -4553
  3. package/dist/explorer-1-vue.umd.cjs +13 -13
  4. package/dist/src/components/BasePill/BasePill.vue.d.ts +4 -10
  5. package/dist/src/components/BaseSwimlane/BaseSwimlane.vue.d.ts +2 -2
  6. package/dist/src/components/BlockIframeEmbed/BlockIframeEmbed.vue.d.ts +9 -1
  7. package/dist/src/components/BlockImage/BlockImageFullBleed.vue.d.ts +23 -4
  8. package/dist/src/components/BlockImage/BlockImageStandard.vue.d.ts +23 -4
  9. package/dist/src/components/BlockImageComparison/BlockImageComparison.vue.d.ts +11 -1
  10. package/dist/src/components/BlockVideo/BlockVideo.vue.d.ts +19 -1
  11. package/dist/src/components/BlockVideoEmbed/BlockVideoEmbed.vue.d.ts +9 -0
  12. package/dist/src/components/DetailHeadline/DetailHeadline.vue.d.ts +9 -0
  13. package/dist/src/components/HeroListingIndex/HeroListingIndex.stories.d.ts +82 -93
  14. package/dist/src/components/MetadataEduResource/MetadataEduResource.vue.d.ts +4 -0
  15. package/dist/src/components/MetadataEvent/MetadataEvent.stories.d.ts +1 -0
  16. package/dist/src/components/MixinCarousel/MixinCarousel.stories.d.ts +4 -4
  17. package/dist/src/components/MixinCarousel/MixinCarousel.vue.d.ts +2 -2
  18. package/dist/src/components/MixinFancybox/MixinFancybox.vue.d.ts +1 -1
  19. package/dist/src/components/NavDesktop/NavDesktop.stories.d.ts +4 -4
  20. package/dist/src/components/NavDesktop/NavDesktop.vue.d.ts +2 -2
  21. package/dist/src/components/NavDesktopEdu/NavDesktopEdu.stories.d.ts +2 -2
  22. package/dist/src/components/NavMobile/NavMobile.stories.d.ts +3 -3
  23. package/dist/src/components/NavMobile/NavMobile.vue.d.ts +1 -1
  24. package/dist/src/components/NavMobile/NavMobileEdu.stories.d.ts +3 -3
  25. package/dist/src/components/NavSecondary/NavSecondaryDropdown.vue.d.ts +4 -4
  26. package/dist/src/components/NewsDetailMediaContact/NewsDetailMediaContact.vue.d.ts +1 -1
  27. package/dist/src/components/SearchFilterGroup/SearchFilterGroup.vue.d.ts +7 -0
  28. package/dist/src/components/SearchResultCard/SearchResultCard.vue.d.ts +54 -5
  29. package/dist/src/components/SearchResultGridItem/SearchResultGridItem.vue.d.ts +42 -4
  30. package/dist/src/components/TextArea/TextArea.vue.d.ts +9 -9
  31. package/dist/src/components/TextInput/TextInput.vue.d.ts +9 -9
  32. package/dist/src/constants.d.ts +12 -2
  33. package/dist/src/interfaces.d.ts +16 -9
  34. package/dist/src/templates/edu/PageEduGalleryDetail/PageEduGalleryDetail.stories.d.ts +284 -0
  35. package/dist/src/templates/edu/PageEduLesson/PageEduLesson.stories.d.ts +8 -2
  36. package/dist/src/templates/edu/PageEduMultimediaDetail/PageEduMultimediaDetail.stories.d.ts +359 -0
  37. package/dist/src/utils/getHeadingId.d.ts +1 -3
  38. package/dist/src/utils/lookupContentType.d.ts +3 -0
  39. package/dist/src/utils/mixins.d.ts +1 -1
  40. package/dist/style.css +1 -1
  41. package/package.json +2 -2
  42. package/src/components/BaseButton/BaseButton.vue +3 -3
  43. package/src/components/BaseImageCaption/BaseImageCaption.vue +10 -7
  44. package/src/components/BaseLink/BaseLink.vue +10 -2
  45. package/src/components/BlockImage/BlockImageFullBleed.vue +37 -7
  46. package/src/components/BlockImage/BlockImageStandard.vue +36 -8
  47. package/src/components/BlockImageComparison/BlockImageComparison.vue +23 -20
  48. package/src/components/BlockRelatedLinks/RelatedLink.vue +2 -2
  49. package/src/components/BlockVideo/BlockVideo.vue +22 -2
  50. package/src/components/BlockVideoEmbed/BlockVideoEmbed.vue +10 -2
  51. package/src/components/DetailHeadline/DetailHeadline.vue +11 -6
  52. package/src/templates/edu/PageEduGalleryDetail/PageEduGalleryDetail.stories.js +13 -4
  53. package/src/templates/edu/PageEduGalleryDetail/PageEduGalleryDetail.vue +36 -18
  54. package/src/templates/edu/PageEduMultimediaDetail/PageEduMultimediaDetail.vue +1 -0
@@ -16,6 +16,7 @@ import BlockVideoEmbed from './../../../components/BlockVideoEmbed/BlockVideoEmb
16
16
  import BlockRelatedLinks from './../../../components/BlockRelatedLinks/BlockRelatedLinks.vue'
17
17
  import BlockLinkCarousel from './../../../components/BlockLinkCarousel/BlockLinkCarousel.vue'
18
18
  import BlockText from './../../../components/BlockText/BlockText.vue'
19
+ import BlockStreamfield from './../../../components/BlockStreamfield/BlockStreamfield.vue'
19
20
  import NavJumpMenu from './../../../components/NavJumpMenu/NavJumpMenu.vue'
20
21
  import AboutTheAuthor from './../../../components/AboutTheAuthor/AboutTheAuthor.vue'
21
22
  import { getHeadingId } from '../../../utils/getHeadingId'
@@ -25,6 +26,7 @@ interface PageEduGalleryObject extends PageEduResourcesObject {
25
26
  blockId: string
26
27
  heading?: string
27
28
  description?: string
29
+ externalLink?: string
28
30
  media: StreamfieldBlockData[]
29
31
  }[]
30
32
  }
@@ -57,6 +59,7 @@ const jumpMenuHeadings = computed((): BreadcrumbPathObject[] => {
57
59
  }
58
60
  return itemHeadings
59
61
  })
62
+
60
63
  const { data } = reactive(props)
61
64
  </script>
62
65
  <template>
@@ -77,6 +80,7 @@ const { data } = reactive(props)
77
80
  :publication-date="data.publicationDate"
78
81
  schema
79
82
  pill
83
+ hide-date
80
84
  />
81
85
  <ShareButtonsEdu
82
86
  v-if="data?.url"
@@ -104,7 +108,10 @@ const { data } = reactive(props)
104
108
  :key="index"
105
109
  class="PageEduGalleryDetailItem"
106
110
  >
107
- <template v-if="item.media?.length">
111
+ <div
112
+ v-if="item.media?.length"
113
+ class="PageEduGalleryDetailItem__media mb-5 lg:mb-12"
114
+ >
108
115
  <template
109
116
  v-for="(block, _media_index) in item.media"
110
117
  :key="_media_index"
@@ -113,41 +120,41 @@ const { data } = reactive(props)
113
120
  <LayoutHelper
114
121
  v-if="block.image"
115
122
  indent="col-2"
116
- class="mb-5 lg:mb-10"
117
123
  >
118
124
  <BlockImageStandard
119
125
  :data="block.image"
120
126
  :caption="block.caption"
121
127
  :display-caption="block.displayCaption"
128
+ :custom-detail-url="item.externalLink"
122
129
  />
123
130
  </LayoutHelper>
124
131
  </template>
125
132
  <template v-else-if="block.blockType === 'ImageComparisonBlock'">
126
- <LayoutHelper
127
- indent="col-2"
128
- class="mb-5 lg:mb-10"
129
- >
130
- <BlockImageComparison :data="block" />
133
+ <LayoutHelper indent="col-2">
134
+ <BlockImageComparison
135
+ :data="block"
136
+ :custom-detail-url="item.externalLink"
137
+ />
131
138
  </LayoutHelper>
132
139
  </template>
133
140
  <template v-else-if="block.blockType === 'VideoBlock'">
134
- <LayoutHelper
135
- indent="col-2"
136
- class="mb-5 lg:mb-10"
137
- >
138
- <BlockVideo :data="block" />
141
+ <LayoutHelper indent="col-2">
142
+ <BlockVideo
143
+ :data="block"
144
+ :custom-detail-url="item.externalLink"
145
+ />
139
146
  </LayoutHelper>
140
147
  </template>
141
148
  <template v-else-if="block.blockType === 'VideoEmbedBlock'">
142
- <LayoutHelper
143
- indent="col-2"
144
- class="mb-5 lg:mb-10"
145
- >
146
- <BlockVideoEmbed :data="block" />
149
+ <LayoutHelper indent="col-2">
150
+ <BlockVideoEmbed
151
+ :data="block"
152
+ :custom-detail-url="item.externalLink"
153
+ />
147
154
  </LayoutHelper>
148
155
  </template>
149
156
  </template>
150
- </template>
157
+ </div>
151
158
  <LayoutHelper
152
159
  v-if="item.heading || item.description"
153
160
  indent="col-3"
@@ -164,6 +171,7 @@ const { data } = reactive(props)
164
171
  />
165
172
  </LayoutHelper>
166
173
  <LayoutHelper
174
+ v-if="index + 1 !== data.galleryItems?.length"
167
175
  indent="col-2"
168
176
  class="pt-10 lg:pt-18 mb-10 lg:mb-18"
169
177
  >
@@ -171,6 +179,16 @@ const { data } = reactive(props)
171
179
  </LayoutHelper>
172
180
  </div>
173
181
 
182
+ <div
183
+ v-if="data.body?.length"
184
+ class="my-10 lg:my-18"
185
+ >
186
+ <BlockStreamfield
187
+ v-if="data.body?.length"
188
+ :data="data.body"
189
+ />
190
+ </div>
191
+
174
192
  <!-- related links -->
175
193
  <LayoutHelper
176
194
  v-if="data.relatedLinks && data.relatedLinks.length"
@@ -180,6 +180,7 @@ const { data } = reactive(props)
180
180
  :publication-date="data.publicationDate"
181
181
  schema
182
182
  pill
183
+ hide-date
183
184
  />
184
185
  <ShareButtonsEdu
185
186
  v-if="data?.url"