@explorer-1/vue 0.3.4 → 0.3.7
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/CHANGELOG.md +19 -0
- package/package.json +2 -2
- package/src/components/AboutTheAuthor/AboutTheAuthor.stories.js +1 -1
- package/src/components/AboutTheAuthor/AboutTheAuthor.vue +9 -9
- package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.stories.js +2 -7
- package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.vue +5 -1
- package/src/components/BackToTop/BackToTop.stories.js +1 -1
- package/src/components/BackToTop/BackToTop.vue +10 -0
- package/src/components/BaseAccordionItem/BaseAccordionItem.stories.js +24 -4
- package/src/components/BaseAccordionItem/BaseAccordionItem.vue +56 -17
- package/src/components/BaseAudio/BaseAudio.stories.js +4 -6
- package/src/components/BaseAudio/BaseAudio.vue +6 -0
- package/src/components/BaseButton/BaseButton.stories.ts +12 -23
- package/src/components/BaseButton/BaseButton.vue +34 -10
- package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.stories.js +2 -1
- package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue +5 -0
- package/src/components/BaseHeading/BaseHeading.stories.js +9 -17
- package/src/components/BaseHeading/BaseHeading.vue +18 -8
- package/src/components/BaseImage/BaseImage.stories.ts +7 -17
- package/src/components/BaseImage/BaseImage.vue +26 -14
- package/src/components/BaseImageCaption/BaseImageCaption.stories.js +11 -0
- package/src/components/BaseImageCaption/BaseImageCaption.vue +10 -6
- package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.stories.js +13 -15
- package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.vue +13 -9
- package/src/components/BaseLink/BaseLink.stories.js +8 -7
- package/src/components/BaseLink/BaseLink.vue +32 -21
- package/src/components/BaseModal/BaseModal.stories.js +4 -7
- package/src/components/BaseModal/BaseModal.vue +1 -0
- package/src/components/BaseModal/BaseModalDialog.vue +1 -6
- package/src/components/BasePill/BasePill.stories.js +8 -22
- package/src/components/BasePill/BasePill.vue +36 -19
- package/src/components/BasePlaceholder/BasePlaceholder.stories.js +4 -7
- package/src/components/BasePlaceholder/BasePlaceholder.vue +1 -1
- package/src/components/BaseRadioGroup/BaseRadioGroup.stories.js +1 -0
- package/src/components/BaseRadioGroup/BaseRadioGroup.vue +9 -2
- package/src/components/BaseSwimlane/BaseSwimlane.stories.js +2 -1
- package/src/components/BaseSwimlane/BaseSwimlane.vue +2 -0
- package/src/components/BaseTimer/BaseTimer.stories.js +7 -2
- package/src/components/BaseTimer/BaseTimer.vue +4 -2
- package/src/components/BaseUnitToggle/BaseUnitToggle.stories.js +1 -16
- package/src/components/BaseUnitToggle/BaseUnitToggle.vue +4 -0
- package/src/components/BaseVideo/BaseVideo.vue +7 -3
- package/src/components/BlockAccordion/BlockAccordion.stories.js +4 -2
- package/src/components/BlockAccordion/BlockAccordion.vue +3 -3
- package/src/components/BlockAudio/BlockAudio.stories.js +1 -0
- package/src/components/BlockAudio/BlockAudio.vue +11 -3
- package/src/components/BlockCardGrid/BlockCardGrid.stories.js +1 -1
- package/src/components/BlockCardGrid/BlockCardGrid.vue +1 -1
- package/src/components/BlockCardGridItem/BlockCardGridItem.stories.js +3 -3
- package/src/components/BlockCardGridItem/BlockCardGridItemElement.vue +1 -1
- package/src/components/BlockCircleImageCard/BlockCircleImageCard.stories.js +3 -9
- package/src/components/BlockCsrTable/BlockCsrTable.stories.js +1 -0
- package/src/components/BlockCsrTable/BlockCsrTable.vue +1 -1
- package/src/components/BlockCta/BlockCta.stories.js +1 -0
- package/src/components/BlockCta/BlockCta.vue +9 -2
- package/src/components/BlockDialog/BlockDialog.stories.js +2 -1
- package/src/components/BlockGist/BlockGist.stories.js +3 -2
- package/src/components/BlockGist/BlockGist.vue +8 -6
- package/src/components/BlockHeading/BlockHeading.stories.js +1 -0
- package/src/components/BlockIframeEmbed/BlockIframeEmbed.stories.js +3 -2
- package/src/components/BlockIframeEmbed/BlockIframeEmbed.vue +9 -2
- package/src/components/BlockImage/BlockImage.stories.js +1 -5
- package/src/components/BlockImage/BlockImage.vue +5 -2
- package/src/components/BlockImageCarousel/BlockImageCarousel.stories.js +3 -15
- package/src/components/BlockImageCarousel/BlockImageCarousel.vue +2 -0
- package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.stories.js +2 -16
- package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.vue +7 -7
- package/src/components/BlockImageComparison/BlockImageComparison.stories.js +5 -3
- package/src/components/BlockImageComparison/BlockImageComparison.vue +11 -2
- package/src/components/BlockImageGallery/BlockImageGallery.stories.js +4 -11
- package/src/components/BlockImageGallery/BlockImageGallery.vue +5 -0
- package/src/components/BlockInlineImage/BlockInlineImage.stories.js +5 -2
- package/src/components/BlockInlineImage/BlockInlineImage.vue +20 -7
- package/src/components/BlockKeyPoints/BlockKeyPoints.stories.js +1 -0
- package/src/components/BlockKeyPoints/BlockKeyPoints.vue +12 -3
- package/src/components/BlockLinkCard/BlockLinkCard.stories.js +24 -34
- package/src/components/BlockLinkCard/BlockLinkCard.vue +28 -9
- package/src/components/BlockLinkCard/BlockLinkCardCollectionLg.vue +2 -2
- package/src/components/BlockLinkCardList/BlockLinkCardList.stories.js +1 -3
- package/src/components/BlockLinkCarousel/BlockLinkCarousel.stories.js +2 -14
- package/src/components/BlockLinkCarousel/BlockLinkCarousel.vue +8 -8
- package/src/components/BlockLinkTile/BlockLinkTile.stories.js +3 -13
- package/src/components/BlockLinkTile/BlockLinkTile.vue +26 -13
- package/src/components/BlockListCards/BlockListCards.stories.js +1 -0
- package/src/components/BlockListCards/BlockListCards.vue +5 -4
- package/src/components/BlockNewsletterSignup/BlockNewsletterSignup.stories.js +1 -0
- package/src/components/BlockNewsletterSignup/BlockNewsletterSignup.vue +3 -2
- package/src/components/BlockQuote/BlockQuote.stories.js +1 -0
- package/src/components/BlockQuote/BlockQuote.vue +3 -2
- package/src/components/BlockRelatedLinks/BlockRelatedLinks.stories.js +1 -0
- package/src/components/BlockRelatedLinks/BlockRelatedLinks.vue +6 -4
- package/src/components/BlockRichTable/BlockRichTable.stories.js +1 -1
- package/src/components/BlockRichTable/BlockRichTable.vue +23 -9
- package/src/components/BlockStreamfield/BlockStreamfield.stories.js +1 -11
- package/src/components/BlockStreamfield/BlockStreamfield.vue +34 -31
- package/src/components/BlockTeaser/BlockTeaser.stories.js +1 -0
- package/src/components/BlockTeaser/BlockTeaser.vue +20 -12
- package/src/components/BlockText/BlockText.stories.js +2 -9
- package/src/components/BlockText/BlockText.vue +21 -9
- package/src/components/BlockVideo/BlockVideo.stories.js +1 -0
- package/src/components/BlockVideo/BlockVideo.vue +14 -3
- package/src/components/BlockVideoEmbed/BlockVideoEmbed.stories.js +1 -0
- package/src/components/BlockVideoEmbed/BlockVideoEmbed.vue +6 -3
- package/src/components/CalendarButton/CalendarButton.vue +7 -0
- package/src/components/DetailHeadline/DetailHeadline.stories.js +2 -20
- package/src/components/DetailHeadline/DetailHeadline.vue +16 -4
- package/src/components/DsnWidget/DsnWidget.stories.js +2 -6
- package/src/components/DsnWidget/DsnWidget.vue +18 -4
- package/src/components/EventDetailHero/EventDetailHero.stories.js +10 -7
- package/src/components/EventDetailHero/EventDetailHero.vue +4 -7
- package/src/components/FormContact/FormContact.stories.js +2 -1
- package/src/components/FormNewsletterSignup/FormNewsletterSignup.stories.js +2 -1
- package/src/components/HeroInlineMedia/HeroInlineMedia.vue +12 -8
- package/src/components/HeroLarge/HeroLarge.stories.js +27 -2
- package/src/components/HeroLarge/HeroLarge.vue +12 -5
- package/src/components/HeroListingIndex/HeroListingIndex.stories.js +1 -0
- package/src/components/HeroListingIndex/HeroListingIndex.vue +18 -13
- package/src/components/HeroMedia/HeroMedia.stories.js +14 -9
- package/src/components/HeroMedia/HeroMedia.vue +9 -8
- package/src/components/HeroMedium/HeroMedium.stories.js +19 -4
- package/src/components/HeroMedium/HeroMedium.vue +32 -14
- package/src/components/HeroMedium/HeroSmall.stories.js +20 -6
- package/src/components/HomepageCarousel/HomepageCarousel.stories.js +1 -1
- package/src/components/HomepageCarouselItem/HomepageCarouselItem.stories.js +2 -2
- package/src/components/HomepageCarouselItem/HomepageCarouselItem.vue +2 -6
- package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.vue +2 -2
- package/src/components/LogoCaltech/LogoCaltech.stories.js +14 -18
- package/src/components/LogoCaltech/LogoCaltech.vue +1 -0
- package/src/components/LogoTribrand/LogoTribrand.stories.js +66 -51
- package/src/components/LogoTribrand/LogoTribrand.vue +4 -2
- package/src/components/MetaPanel/MetaPanel.stories.js +5 -9
- package/src/components/MetaPanel/MetaPanel.vue +3 -0
- package/src/components/MetaPanelItems/MetaPanelItems.stories.js +9 -2
- package/src/components/MetaPanelItems/MetaPanelItems.vue +2 -0
- package/src/components/MetadataEduResource/MetadataEduResource.stories.js +12 -10
- package/src/components/MetadataEduResource/MetadataEduResource.vue +7 -3
- package/src/components/MetadataEvent/MetadataEvent.stories.js +1 -1
- package/src/components/MissionDetailAbout/MissionDetailAbout.vue +1 -1
- package/src/components/MissionDetailHero/MissionDetailHero.stories.js +2 -2
- package/src/components/MissionDetailHighlights/MissionDetailHighlights.stories.js +1 -0
- package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.stories.js +1 -6
- package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.vue +10 -5
- package/src/components/MissionDetailStats/DistanceStats.vue +10 -5
- package/src/components/MissionDetailStats/MissionDetailStats.stories.js +4 -21
- package/src/components/MissionDetailStats/MissionDetailStats.vue +21 -5
- package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.vue +4 -2
- package/src/components/MixinAnimationCaret/MixinAnimationCaret.stories.ts +7 -0
- package/src/components/MixinAnimationCaret/MixinAnimationCaret.vue +12 -6
- package/src/components/MixinCarousel/MixinCarousel.stories.js +2 -8
- package/src/components/MixinCarousel/MixinCarousel.vue +13 -16
- package/src/components/MixinVideoBg/MixinVideoBg.stories.js +1 -1
- package/src/components/MixinVideoBg/MixinVideoBg.vue +4 -7
- package/src/components/NavDesktop/NavDesktop.stories.js +1 -0
- package/src/components/NavDesktop/NavDesktop.vue +4 -4
- package/src/components/NavDesktop/NavDesktopTopHat.vue +4 -4
- package/src/components/NavDesktopEdu/NavDesktopEdu.stories.js +1 -5
- package/src/components/NavDesktopEdu/NavDesktopEdu.vue +4 -4
- package/src/components/NavHeading/NavHeading.stories.js +3 -2
- package/src/components/NavHighlight/NavHighlight.stories.js +3 -2
- package/src/components/NavJumpMenu/NavJumpMenu.stories.js +5 -2
- package/src/components/NavLinkList/NavLinkList.stories.js +3 -2
- package/src/components/NavLinkList/NavLinkList.vue +3 -3
- package/src/components/NavLogoLinks/NavLogoLinks.stories.js +1 -0
- package/src/components/NavMobile/NavMobile.stories.js +13 -2
- package/src/components/NavMobile/NavMobile.vue +18 -5
- package/src/components/NavMobile/NavMobileDropdown.vue +2 -2
- package/src/components/NavMobile/NavMobileEdu.stories.js +11 -4
- package/src/components/NavMobile/NavMobileLink.vue +4 -4
- package/src/components/NavSearchForm/NavSearchForm.stories.js +1 -0
- package/src/components/NavSecondary/NavSecondary.stories.js +1 -0
- package/src/components/NavSecondary/NavSecondary.vue +7 -4
- package/src/components/NavSecondary/NavSecondaryDropdownContent.vue +1 -1
- package/src/components/NavSocial/NavSocial.stories.js +1 -0
- package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.stories.js +2 -1
- package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.vue +1 -1
- package/src/components/ParallaxContainer/ParallaxContainer.stories.js +2 -2
- package/src/components/ParallaxContainer/ParallaxContainer.vue +1 -0
- package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.vue +6 -5
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.stories.js +3 -8
- package/src/components/SearchFilterGroup/SearchFilterGroup.stories.js +1 -0
- package/src/components/SearchInput/SearchInput.stories.js +1 -0
- package/src/components/SearchPagination/SearchPagination.stories.js +1 -0
- package/src/components/SearchResultCard/SearchResultCard.stories.js +1 -10
- package/src/components/SearchResultCard/SearchResultCard.vue +1 -0
- package/src/components/SearchResultGridItem/SearchResultGridItem.stories.js +3 -12
- package/src/components/SearchResultGridItem/SearchResultGridItem.vue +5 -2
- package/src/components/SearchResultsList/SearchResultsList.stories.js +3 -3
- package/src/components/SearchSelectMenu/SearchSelectMenu.stories.js +2 -1
- package/src/components/SwimlaneCTA/SwimlaneCTA.vue +1 -0
- package/src/components/TextArea/TextArea.stories.js +2 -1
- package/src/components/TextInput/TextInput.stories.js +2 -1
- package/src/components/TheFooter/TheFooter.stories.js +1 -0
- package/src/components/TheFooter/TheFooter.vue +30 -4
- package/src/components/ThumbnailCarousel/ThumbnailCarousel.stories.js +1 -1
- package/src/components/ThumbnailCarousel/ThumbnailCarousel.vue +2 -1
- package/src/components/TimelineDialog/TimelineDialog.vue +2 -2
- package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.stories.js +1 -0
- package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.stories.js +2 -2
- package/src/components/TopicDetailMore/TopicDetailMore.stories.js +1 -0
- package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.stories.js +3 -2
- package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.vue +2 -2
- package/src/constants.ts +3 -5
- package/src/docs/foundation/grid_layouthelpers.stories.js +2 -2
- package/src/docs/introduction.docs.mdx +14 -2
- package/src/interfaces.ts +31 -6
- package/src/templates/PageAudioDetail/PageAudioDetail.vue +2 -2
- package/src/templates/PageContent/PageContent.stories.js +1 -1
- package/src/templates/PageEventDetail/PageEventDetail.stories.js +1 -1
- package/src/templates/PageNewsDetail/PageNewsDetail.stories.js +2 -2
- package/src/templates/edu/PageContentEdu.stories.js +2 -2
- package/src/templates/edu/PageEduCollectionsDetail/PageEduCollectionsDetail.stories.js +2 -2
- package/src/templates/edu/PageEduEventDetail/PageEduEventDetail.stories.js +1 -1
- package/src/templates/edu/PageEduExplainerArticle/PageEduExplainerArticle.stories.js +2 -2
- package/src/templates/edu/PageEduGalleryDetail/PageEduGalleryDetail.stories.js +1 -1
- package/src/templates/edu/PageEduGalleryDetail/PageEduGalleryDetail.vue +10 -6
- package/src/templates/edu/PageEduHome/PageEduHome.stories.js +1 -1
- package/src/templates/edu/PageEduLesson/PageEduLesson.stories.js +2 -2
- package/src/templates/edu/PageEduMultimediaDetail/PageEduMultimediaDetail.stories.js +1 -1
- package/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.stories.js +2 -2
- package/src/templates/edu/PageEduStudentProject/PageEduStudentProject.stories.js +2 -2
- package/src/templates/edu/PageEduStudentProject/PageEduStudentProjectSection.vue +10 -6
- package/src/templates/edu/PageEduTeachableMoment/PageEduTeachableMoment.stories.js +2 -2
- package/src/templates/www/PageAsteroidWatchContent/PageAsteroidWatchContent.stories.js +2 -2
- package/src/templates/www/PageAsteroidWatchIndex/PageAsteroidWatchIndex.stories.js +2 -2
- package/src/templates/www/PageGoDirectory/PageGoDirectory.stories.js +2 -2
- package/src/templates/www/PageHomepage/PageHomepage.stories.js +2 -2
- package/src/templates/www/PageMissionDetail/PageMissionDetail.stories.js +2 -2
- package/src/templates/www/PagePodcast/PagePodcast.stories.js +2 -2
- package/src/templates/www/PagePodcastSeason/PagePodcastSeason.stories.js +2 -2
- package/src/templates/www/PagePressKitIndex/PagePressKitIndex.stories.js +2 -2
- package/src/templates/www/PageProfileDetail/PageProfileDetail.stories.js +2 -2
- package/src/templates/www/PageRoboticsDetail/PageRoboticsDetail.stories.js +2 -2
- package/src/templates/www/PageTimeline/PageTimeline.stories.js +2 -2
- package/src/templates/www/PageTopicDetail/PageTopicDetail.stories.js +2 -2
- package/src/templates/www/PageTopicDetail/PageTopicDetail.vue +2 -1
- package/src/utils/mixins.ts +7 -7
|
@@ -55,10 +55,13 @@ import { mixinHighlightPrimary, mixinUpdateSecondary } from './../../utils/mixin
|
|
|
55
55
|
import type { BreadcrumbPathObject } from './../../interfaces'
|
|
56
56
|
|
|
57
57
|
export default defineComponent({
|
|
58
|
-
/**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
/**
|
|
59
|
+
* This component is only visible on large viewports. Mobile secondary nav is handled in the \`NavMobile\` component.
|
|
60
|
+
*
|
|
61
|
+
* The complexity of this component is due to the need for it to be populated from multiple data sources
|
|
62
|
+
* SecondaryNav will first check to see if there is a navigation override from the data fetched for this specific page (data.breadcrumb and store.header.secondaryNav)
|
|
63
|
+
* If there is no breadcrumb override, then it will fallback to using the breadcrumbs derived form the active global nav item (store.header.globalChildren)
|
|
64
|
+
* store.header.secondaryNav reverts to null on route changes, so the breadcrumb override is re-evaluted on every page
|
|
62
65
|
*/
|
|
63
66
|
name: 'NavSecondary',
|
|
64
67
|
components: {
|
|
@@ -2,7 +2,8 @@ import NewsDetailMediaContact from './NewsDetailMediaContact.vue'
|
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Components/WWW/NewsDetail/NewsDetailMediaContact',
|
|
5
|
-
component: NewsDetailMediaContact
|
|
5
|
+
component: NewsDetailMediaContact,
|
|
6
|
+
tags: ['listings']
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
const contacts = [
|
|
@@ -6,12 +6,12 @@ export default {
|
|
|
6
6
|
component: ParallaxContainer,
|
|
7
7
|
decorators: [
|
|
8
8
|
() => ({
|
|
9
|
-
template: `<div id="
|
|
9
|
+
template: `<div id="storyRoot" style="height:3000px"><story/></div>`
|
|
10
10
|
})
|
|
11
11
|
],
|
|
12
12
|
parameters: {
|
|
13
13
|
html: {
|
|
14
|
-
root: '#
|
|
14
|
+
root: '#storyRoot'
|
|
15
15
|
},
|
|
16
16
|
docs: {
|
|
17
17
|
description: {
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
</div>
|
|
53
53
|
</template>
|
|
54
54
|
<script lang="ts">
|
|
55
|
+
/** A tabbed carousel of podcast seasons based on series. If a season `id` is provided, the carousel will default to showing that season. If the user is currently on an episode page within the displayed season, that episode will be the active slide in the carousel. */
|
|
55
56
|
import { defineComponent } from 'vue'
|
|
56
57
|
import { useRoute } from 'vue-router'
|
|
57
58
|
import type { PropType } from 'vue'
|
|
@@ -61,25 +62,25 @@ import ThumbnailCarousel from './../ThumbnailCarousel/ThumbnailCarousel.vue'
|
|
|
61
62
|
|
|
62
63
|
const route = useRoute()
|
|
63
64
|
|
|
64
|
-
interface Slide {
|
|
65
|
+
export interface Slide {
|
|
65
66
|
url: string
|
|
66
67
|
title: string
|
|
67
68
|
thumbnailImage: Partial<ImageObject>
|
|
68
69
|
}
|
|
69
70
|
|
|
70
|
-
interface Episode {
|
|
71
|
+
export interface Episode {
|
|
71
72
|
url: string
|
|
72
73
|
title: string
|
|
73
74
|
publicationDate: any
|
|
74
75
|
thumbnailImage: Partial<ImageObject>
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
interface ActiveTab {
|
|
78
|
+
export interface ActiveTab {
|
|
78
79
|
title?: string
|
|
79
80
|
episodes?: Episode[] | Season
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
interface Season {
|
|
83
|
+
export interface Season {
|
|
83
84
|
id: string
|
|
84
85
|
url?: string
|
|
85
86
|
title?: string
|
|
@@ -87,7 +88,7 @@ interface Season {
|
|
|
87
88
|
episodes?: Episode[]
|
|
88
89
|
}
|
|
89
90
|
|
|
90
|
-
interface Series {
|
|
91
|
+
export interface Series {
|
|
91
92
|
id: string
|
|
92
93
|
title?: string
|
|
93
94
|
url?: string
|
|
@@ -7,20 +7,15 @@ export default {
|
|
|
7
7
|
subcomponents: { RoboticsDetailStatsMini },
|
|
8
8
|
decorators: [
|
|
9
9
|
() => ({
|
|
10
|
-
template: `<div id="
|
|
10
|
+
template: `<div id="storyRoot" class="mt-20"><story/></div>`
|
|
11
11
|
})
|
|
12
12
|
],
|
|
13
13
|
parameters: {
|
|
14
14
|
html: {
|
|
15
|
-
root: '#
|
|
15
|
+
root: '#storyRoot'
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
excludeStories: /.*Data
|
|
19
|
-
argTypes: {
|
|
20
|
-
status: {
|
|
21
|
-
control: { type: 'text' }
|
|
22
|
-
}
|
|
23
|
-
}
|
|
18
|
+
excludeStories: /.*Data$/
|
|
24
19
|
}
|
|
25
20
|
|
|
26
21
|
export const RoboticsDetailStatsData = {
|
|
@@ -3,16 +3,7 @@ import SearchResultCard from './SearchResultCard.vue'
|
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Components/Cards/SearchResultCards',
|
|
5
5
|
component: SearchResultCard,
|
|
6
|
-
|
|
7
|
-
headingLevel: {
|
|
8
|
-
description:
|
|
9
|
-
'Change the heading level for semantic markup. This does not affect the style of the heading.',
|
|
10
|
-
control: {
|
|
11
|
-
type: 'select'
|
|
12
|
-
},
|
|
13
|
-
options: [null, 'h1', 'h2', 'h3', 'h4', 'h5']
|
|
14
|
-
}
|
|
15
|
-
},
|
|
6
|
+
tags: ['cards', 'search'],
|
|
16
7
|
excludeStories: /.*Data$/
|
|
17
8
|
}
|
|
18
9
|
|
|
@@ -289,6 +289,7 @@ export default defineComponent({
|
|
|
289
289
|
required: false,
|
|
290
290
|
default: false
|
|
291
291
|
},
|
|
292
|
+
/** Change the heading level for semantic markup. This does not affect the style of the heading. */
|
|
292
293
|
headingLevel: {
|
|
293
294
|
type: (String as PropType<HeadingLevel>) || null,
|
|
294
295
|
required: false,
|
|
@@ -3,24 +3,15 @@ import SearchResultGridItem from './SearchResultGridItem.vue'
|
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Components/Cards/SearchResultGridItem',
|
|
5
5
|
component: SearchResultGridItem,
|
|
6
|
+
tags: ['search', 'cards'],
|
|
6
7
|
decorators: [
|
|
7
8
|
() => ({
|
|
8
|
-
template: `<div id="
|
|
9
|
+
template: `<div id="storyRoot" class="relative grid grid-cols-2 gap-3 lg:grid-cols-3"><story/></div>`
|
|
9
10
|
})
|
|
10
11
|
],
|
|
11
|
-
argTypes: {
|
|
12
|
-
headingLevel: {
|
|
13
|
-
description:
|
|
14
|
-
'Change the heading level for semantic markup. This does not affect the style of the heading.',
|
|
15
|
-
control: {
|
|
16
|
-
type: 'select',
|
|
17
|
-
options: [null, 'h1', 'h2', 'h3', 'h4', 'h5']
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
12
|
parameters: {
|
|
22
13
|
html: {
|
|
23
|
-
root: '#
|
|
14
|
+
root: '#storyRoot'
|
|
24
15
|
}
|
|
25
16
|
},
|
|
26
17
|
excludeStories: /.*Data$/
|
|
@@ -196,13 +196,16 @@ export default defineComponent({
|
|
|
196
196
|
type: String,
|
|
197
197
|
default: undefined
|
|
198
198
|
},
|
|
199
|
+
/** Change the heading level for semantic markup. This does not affect the style of the heading. */
|
|
199
200
|
headingLevel: {
|
|
200
201
|
type: (String as PropType<HeadingLevel>) || null,
|
|
201
|
-
required: false
|
|
202
|
+
required: false,
|
|
203
|
+
default: undefined
|
|
202
204
|
},
|
|
203
205
|
pageContentType: {
|
|
204
206
|
type: String,
|
|
205
|
-
required: false
|
|
207
|
+
required: false,
|
|
208
|
+
default: undefined
|
|
206
209
|
},
|
|
207
210
|
primarySubject: {
|
|
208
211
|
type: Object as PropType<PrimarySubjectObject>,
|
|
@@ -3,15 +3,15 @@ import SearchResultsList from './SearchResultsList.vue'
|
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Components/Search/SearchResultsList',
|
|
5
5
|
component: SearchResultsList,
|
|
6
|
+
tags: ['search', 'listings'],
|
|
6
7
|
decorators: [
|
|
7
8
|
() => ({
|
|
8
|
-
template: `<div id="
|
|
9
|
+
template: `<div id="storyRoot" class="max-w-screen-xl"><story/></div>`
|
|
9
10
|
})
|
|
10
11
|
],
|
|
11
|
-
tags: ['!autodocs'],
|
|
12
12
|
parameters: {
|
|
13
13
|
html: {
|
|
14
|
-
root: '#
|
|
14
|
+
root: '#storyRoot'
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
excludeStories: /.*Data$/
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
</template>
|
|
123
123
|
|
|
124
124
|
<script lang="ts">
|
|
125
|
+
/** The SwimlaneCTA component combines BaseSwimlane with other elements (JPL logo, links, etc.) to create the component that is used on the WWW homepage. */
|
|
125
126
|
import { defineComponent } from 'vue'
|
|
126
127
|
import jplLogoSFFF from '@explorer-1/common/src/images/png/brand-jpl-logo-FFFFFF-S-94h28w@2x.png'
|
|
127
128
|
import jplLogoFFF from '@explorer-1/common/src/images/png/brand-jpl-logo-FFFFFF-94h28w@2x.png'
|
|
@@ -190,10 +190,10 @@
|
|
|
190
190
|
</template>
|
|
191
191
|
<script lang="ts">
|
|
192
192
|
// @ts-nocheck
|
|
193
|
-
import { defineComponent } from 'vue'
|
|
193
|
+
import { defineComponent, type PropType } from 'vue'
|
|
194
194
|
import { mapStores } from 'pinia'
|
|
195
195
|
import { useThemeStore } from './../../store/theme'
|
|
196
|
-
import { mixinGetRouterLink, mixinGetLinkText } from './../../utils/mixins'
|
|
196
|
+
import { mixinGetRouterLink, mixinGetLinkText, type NavLinkObject } from './../../utils/mixins'
|
|
197
197
|
import IconExternal from './../Icons/IconExternal.vue'
|
|
198
198
|
import BaseLink from './../BaseLink/BaseLink.vue'
|
|
199
199
|
import BaseButton from './../BaseButton/BaseButton.vue'
|
|
@@ -201,6 +201,31 @@ import NavSocial from './../NavSocial/NavSocial.vue'
|
|
|
201
201
|
import TheFooterSignUp from './../TheFooter/TheFooterSignUp.vue'
|
|
202
202
|
import LogoCaltech from './../LogoCaltech/LogoCaltech.vue'
|
|
203
203
|
|
|
204
|
+
export type FooterNavItem = {
|
|
205
|
+
titleLink: {
|
|
206
|
+
linkPage: {
|
|
207
|
+
title: string
|
|
208
|
+
url: string
|
|
209
|
+
}
|
|
210
|
+
title: string
|
|
211
|
+
}
|
|
212
|
+
links: NavLinkObject[]
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export type FooterData = {
|
|
216
|
+
footerMoreFromJpl: NavLinkObject[]
|
|
217
|
+
footerNavigation: FooterNavItem[]
|
|
218
|
+
footerLinks: NavLinkObject[]
|
|
219
|
+
relatedNasaSites: {
|
|
220
|
+
title: string
|
|
221
|
+
path: string
|
|
222
|
+
}[]
|
|
223
|
+
footerMeta: {
|
|
224
|
+
label: string
|
|
225
|
+
text: string
|
|
226
|
+
}[]
|
|
227
|
+
}
|
|
228
|
+
|
|
204
229
|
export default defineComponent({
|
|
205
230
|
name: 'TheFooter',
|
|
206
231
|
components: {
|
|
@@ -213,13 +238,14 @@ export default defineComponent({
|
|
|
213
238
|
},
|
|
214
239
|
props: {
|
|
215
240
|
data: {
|
|
216
|
-
type: Object
|
|
241
|
+
type: Object as PropType<FooterData>,
|
|
217
242
|
required: false,
|
|
218
243
|
default: null
|
|
219
244
|
},
|
|
220
245
|
commitSha: {
|
|
221
246
|
type: String,
|
|
222
|
-
required: false
|
|
247
|
+
required: false,
|
|
248
|
+
default: undefined
|
|
223
249
|
}
|
|
224
250
|
},
|
|
225
251
|
methods: {
|
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
</MixinCarousel>
|
|
18
18
|
</template>
|
|
19
19
|
<script lang="ts">
|
|
20
|
+
/** Ideal for use in a tabbed carousel. See `PodcastSeriesCarousel` and `PageImageDetail` for usage examples. Styled with three cards and a basic card style with a square image. */
|
|
20
21
|
import { defineComponent } from 'vue'
|
|
21
22
|
import type { PropType } from 'vue'
|
|
22
23
|
import type { ImageObject } from '../../interfaces'
|
|
23
24
|
import MixinCarousel from './../MixinCarousel/MixinCarousel.vue'
|
|
24
25
|
import SearchResultGridItem from './../SearchResultGridItem/SearchResultGridItem.vue'
|
|
25
26
|
|
|
26
|
-
interface Slide {
|
|
27
|
+
export interface Slide {
|
|
27
28
|
url: string
|
|
28
29
|
title: string
|
|
29
30
|
thumbnailImage: Partial<ImageObject>
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
/>
|
|
53
53
|
</BaseImagePlaceholder>
|
|
54
54
|
<!-- @ts-ignore -->
|
|
55
|
-
<BlockVideoEmbed :data="data" />
|
|
55
|
+
<BlockVideoEmbed :data="data as unknown as BlockVideoEmbedData" />
|
|
56
56
|
<BlockText
|
|
57
57
|
variant="medium"
|
|
58
58
|
:text="data.description"
|
|
@@ -80,7 +80,7 @@ import BaseImage from './../BaseImage/BaseImage.vue'
|
|
|
80
80
|
import BaseImagePlaceholder from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
|
|
81
81
|
import BaseLink from './../BaseLink/BaseLink.vue'
|
|
82
82
|
import BlockText from './../BlockText/BlockText.vue'
|
|
83
|
-
import BlockVideoEmbed from './../BlockVideoEmbed/BlockVideoEmbed.vue'
|
|
83
|
+
import BlockVideoEmbed, { type BlockVideoEmbedData } from './../BlockVideoEmbed/BlockVideoEmbed.vue'
|
|
84
84
|
|
|
85
85
|
export default defineComponent({
|
|
86
86
|
name: 'TimelineDialog',
|
|
@@ -2,6 +2,7 @@ import TopicDetailMissionCarousel from './TopicDetailMissionCarousel.vue'
|
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Components/WWW/TopicDetail/MissionCarousel/TopicDetailMissionCarousel',
|
|
4
4
|
component: TopicDetailMissionCarousel,
|
|
5
|
+
tags: ['carousel', 'listings'],
|
|
5
6
|
excludeStories: /.*Data$/
|
|
6
7
|
}
|
|
7
8
|
|
package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.stories.js
CHANGED
|
@@ -7,12 +7,12 @@ export default {
|
|
|
7
7
|
component: TopicDetailMissionCarouselItem,
|
|
8
8
|
decorators: [
|
|
9
9
|
() => ({
|
|
10
|
-
template: `<div id="
|
|
10
|
+
template: `<div id="storyRoot" class="relative lg:w-1/3"><story/></div>`
|
|
11
11
|
})
|
|
12
12
|
],
|
|
13
13
|
parameters: {
|
|
14
14
|
html: {
|
|
15
|
-
root: '#
|
|
15
|
+
root: '#storyRoot'
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
excludeStories: /.*Data$/
|
|
@@ -2,14 +2,15 @@ import TopicDetailMoreItem from './TopicDetailMoreItem.vue'
|
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Components/WWW/TopicDetail/TopicDetailMore/TopicDetailMoreItem',
|
|
4
4
|
component: TopicDetailMoreItem,
|
|
5
|
+
tags: ['cards'],
|
|
5
6
|
decorators: [
|
|
6
7
|
() => ({
|
|
7
|
-
template: `<div id="
|
|
8
|
+
template: `<div id="storyRoot" class="lg:w-1/3"><story/></div>`
|
|
8
9
|
})
|
|
9
10
|
],
|
|
10
11
|
parameters: {
|
|
11
12
|
html: {
|
|
12
|
-
root: '#
|
|
13
|
+
root: '#storyRoot'
|
|
13
14
|
}
|
|
14
15
|
},
|
|
15
16
|
excludeStories: /.*Data$/
|
|
@@ -67,7 +67,7 @@ import BlockRelatedLinks, {
|
|
|
67
67
|
} from './../BlockRelatedLinks/BlockRelatedLinks.vue'
|
|
68
68
|
import BlockImageGallery from './../BlockImageGallery/BlockImageGallery.vue'
|
|
69
69
|
|
|
70
|
-
interface
|
|
70
|
+
export interface TopicDetailStreamfieldBlockData {
|
|
71
71
|
blockType: string
|
|
72
72
|
heading: string
|
|
73
73
|
galleryTitle: string
|
|
@@ -86,7 +86,7 @@ export default defineComponent({
|
|
|
86
86
|
},
|
|
87
87
|
props: {
|
|
88
88
|
data: {
|
|
89
|
-
type: Array as PropType<
|
|
89
|
+
type: Array as PropType<TopicDetailStreamfieldBlockData[]>,
|
|
90
90
|
required: false
|
|
91
91
|
},
|
|
92
92
|
topic: {
|
package/src/constants.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export const eduMetadataDictionary: PillDictionaryInterface = {
|
|
1
|
+
export const eduMetadataDictionary = {
|
|
4
2
|
EDUNewsPage: {
|
|
5
3
|
label: 'News',
|
|
6
4
|
variant: 'primary',
|
|
@@ -73,7 +71,7 @@ export const eduMetadataDictionary: PillDictionaryInterface = {
|
|
|
73
71
|
icons: 'secondary',
|
|
74
72
|
type: 'resource'
|
|
75
73
|
}
|
|
76
|
-
}
|
|
74
|
+
} as const
|
|
77
75
|
|
|
78
76
|
interface contentTypeObject {
|
|
79
77
|
model: string
|
|
@@ -230,7 +228,7 @@ export const contentTypes: contentTypeObject[] = [
|
|
|
230
228
|
model: 'edu_resources.EDUVideoDetailPage',
|
|
231
229
|
label: 'EDU Videos'
|
|
232
230
|
}
|
|
233
|
-
]
|
|
231
|
+
] as const
|
|
234
232
|
|
|
235
233
|
interface contentAliasObject extends contentTypeObject {
|
|
236
234
|
interface?: string
|
|
@@ -14,12 +14,12 @@ export default {
|
|
|
14
14
|
},
|
|
15
15
|
parameters: {
|
|
16
16
|
html: {
|
|
17
|
-
root: '#
|
|
17
|
+
root: '#storyRoot'
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
decorators: [
|
|
21
21
|
() => ({
|
|
22
|
-
template: `<div id="
|
|
22
|
+
template: `<div id="storyRoot" class="container mx-auto border border-black"><story/></div>`
|
|
23
23
|
})
|
|
24
24
|
]
|
|
25
25
|
}
|
|
@@ -43,16 +43,22 @@ Maintained by [DesignLab](https://www.behance.net/JPL-DesignLab)
|
|
|
43
43
|
|
|
44
44
|
<div>
|
|
45
45
|
<table
|
|
46
|
-
|
|
46
|
+
className="w-auto text-left"
|
|
47
47
|
style={{ width: 'unset' }}
|
|
48
48
|
>
|
|
49
49
|
<thead>
|
|
50
|
-
<tr
|
|
50
|
+
<tr className="text-left">
|
|
51
51
|
<th>Package</th>
|
|
52
52
|
<th>Version</th>
|
|
53
53
|
</tr>
|
|
54
54
|
</thead>
|
|
55
55
|
<tbody>
|
|
56
|
+
<tr>
|
|
57
|
+
<td>[@nasa-jpl/explorer-1](https://www.npmjs.com/package/@nasa-jpl/explorer-1)</td>
|
|
58
|
+
<td>
|
|
59
|
+
<code>{packageVersions.__VERSION__NASA_JPL_EXPLORER_1__}</code>
|
|
60
|
+
</td>
|
|
61
|
+
</tr>
|
|
56
62
|
<tr>
|
|
57
63
|
<td>[@explorer-1/common](https://www.npmjs.com/package/@explorer-1/common)</td>
|
|
58
64
|
<td>
|
|
@@ -65,6 +71,12 @@ Maintained by [DesignLab](https://www.behance.net/JPL-DesignLab)
|
|
|
65
71
|
<code>{packageVersions.__VERSION__EXPLORER_1_VUE__}</code>
|
|
66
72
|
</td>
|
|
67
73
|
</tr>
|
|
74
|
+
<tr>
|
|
75
|
+
<td>[@explorer-1/html](https://www.npmjs.com/package/@explorer-1/html)</td>
|
|
76
|
+
<td>
|
|
77
|
+
<code>{packageVersions.__VERSION__EXPLORER_1_HTML__}</code>
|
|
78
|
+
</td>
|
|
79
|
+
</tr>
|
|
68
80
|
</tbody>
|
|
69
81
|
</table>
|
|
70
82
|
</div>
|