@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.
- package/components.d.ts +3 -0
- package/dist/explorer-1-vue.js +4912 -4553
- package/dist/explorer-1-vue.umd.cjs +13 -13
- package/dist/src/components/BasePill/BasePill.vue.d.ts +4 -10
- package/dist/src/components/BaseSwimlane/BaseSwimlane.vue.d.ts +2 -2
- package/dist/src/components/BlockIframeEmbed/BlockIframeEmbed.vue.d.ts +9 -1
- package/dist/src/components/BlockImage/BlockImageFullBleed.vue.d.ts +23 -4
- package/dist/src/components/BlockImage/BlockImageStandard.vue.d.ts +23 -4
- package/dist/src/components/BlockImageComparison/BlockImageComparison.vue.d.ts +11 -1
- package/dist/src/components/BlockVideo/BlockVideo.vue.d.ts +19 -1
- package/dist/src/components/BlockVideoEmbed/BlockVideoEmbed.vue.d.ts +9 -0
- package/dist/src/components/DetailHeadline/DetailHeadline.vue.d.ts +9 -0
- package/dist/src/components/HeroListingIndex/HeroListingIndex.stories.d.ts +82 -93
- package/dist/src/components/MetadataEduResource/MetadataEduResource.vue.d.ts +4 -0
- package/dist/src/components/MetadataEvent/MetadataEvent.stories.d.ts +1 -0
- package/dist/src/components/MixinCarousel/MixinCarousel.stories.d.ts +4 -4
- package/dist/src/components/MixinCarousel/MixinCarousel.vue.d.ts +2 -2
- package/dist/src/components/MixinFancybox/MixinFancybox.vue.d.ts +1 -1
- package/dist/src/components/NavDesktop/NavDesktop.stories.d.ts +4 -4
- package/dist/src/components/NavDesktop/NavDesktop.vue.d.ts +2 -2
- package/dist/src/components/NavDesktopEdu/NavDesktopEdu.stories.d.ts +2 -2
- package/dist/src/components/NavMobile/NavMobile.stories.d.ts +3 -3
- package/dist/src/components/NavMobile/NavMobile.vue.d.ts +1 -1
- package/dist/src/components/NavMobile/NavMobileEdu.stories.d.ts +3 -3
- package/dist/src/components/NavSecondary/NavSecondaryDropdown.vue.d.ts +4 -4
- package/dist/src/components/NewsDetailMediaContact/NewsDetailMediaContact.vue.d.ts +1 -1
- package/dist/src/components/SearchFilterGroup/SearchFilterGroup.vue.d.ts +7 -0
- package/dist/src/components/SearchResultCard/SearchResultCard.vue.d.ts +54 -5
- package/dist/src/components/SearchResultGridItem/SearchResultGridItem.vue.d.ts +42 -4
- package/dist/src/components/TextArea/TextArea.vue.d.ts +9 -9
- package/dist/src/components/TextInput/TextInput.vue.d.ts +9 -9
- package/dist/src/constants.d.ts +12 -2
- package/dist/src/interfaces.d.ts +16 -9
- package/dist/src/templates/edu/PageEduGalleryDetail/PageEduGalleryDetail.stories.d.ts +284 -0
- package/dist/src/templates/edu/PageEduLesson/PageEduLesson.stories.d.ts +8 -2
- package/dist/src/templates/edu/PageEduMultimediaDetail/PageEduMultimediaDetail.stories.d.ts +359 -0
- package/dist/src/utils/getHeadingId.d.ts +1 -3
- package/dist/src/utils/lookupContentType.d.ts +3 -0
- package/dist/src/utils/mixins.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/BaseButton/BaseButton.vue +3 -3
- package/src/components/BaseImageCaption/BaseImageCaption.vue +10 -7
- package/src/components/BaseLink/BaseLink.vue +10 -2
- package/src/components/BlockImage/BlockImageFullBleed.vue +37 -7
- package/src/components/BlockImage/BlockImageStandard.vue +36 -8
- package/src/components/BlockImageComparison/BlockImageComparison.vue +23 -20
- package/src/components/BlockRelatedLinks/RelatedLink.vue +2 -2
- package/src/components/BlockVideo/BlockVideo.vue +22 -2
- package/src/components/BlockVideoEmbed/BlockVideoEmbed.vue +10 -2
- package/src/components/DetailHeadline/DetailHeadline.vue +11 -6
- package/src/templates/edu/PageEduGalleryDetail/PageEduGalleryDetail.stories.js +13 -4
- package/src/templates/edu/PageEduGalleryDetail/PageEduGalleryDetail.vue +36 -18
- 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
|
-
<
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
</
|
|
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"
|