@explorer-1/vue 0.2.53 → 0.2.55
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/dist/explorer-1-vue.js +6113 -6105
- package/dist/explorer-1-vue.umd.cjs +16 -16
- package/dist/src/components/BackToTop/BackToTop.stories.d.ts +96 -4
- package/dist/src/components/BackToTop/BackToTop.vue.d.ts +96 -4
- package/dist/src/components/BaseAccordionItem/BaseAccordionItem.vue.d.ts +12 -10
- package/dist/src/components/BaseAudio/BaseAudio.vue.d.ts +12 -5
- package/dist/src/components/BaseButton/BaseButton.stories.d.ts +7 -7
- package/dist/src/components/BaseButton/BaseButton.vue.d.ts +7 -7
- package/dist/src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +4 -4
- package/dist/src/components/BaseHeading/BaseHeading.stories.d.ts +9 -9
- package/dist/src/components/BaseHeading/BaseHeading.vue.d.ts +6 -6
- package/dist/src/components/BaseImage/BaseImage.stories.d.ts +4 -4
- package/dist/src/components/BaseImage/BaseImage.vue.d.ts +4 -4
- package/dist/src/components/BaseImagePlaceholder/BaseImagePlaceholder.vue.d.ts +4 -4
- package/dist/src/components/BaseLightboxCloseButton/BaseLightboxCloseButton.vue.d.ts +3 -1
- package/dist/src/components/BaseLightboxOpenButton/BaseLightboxOpenButton.vue.d.ts +3 -1
- package/dist/src/components/BaseLink/BaseLink.vue.d.ts +70 -6
- package/dist/src/components/BaseModal/BaseModal.stories.d.ts +685 -34
- package/dist/src/components/BaseModal/BaseModal.vue.d.ts +141 -4
- package/dist/src/components/BaseModal/BaseModalDialog.vue.d.ts +124 -4
- package/dist/src/components/BasePill/BasePill.vue.d.ts +4 -4
- package/dist/src/components/BasePlaceholder/BasePlaceholder.stories.d.ts +1 -1
- package/dist/src/components/BasePlaceholder/BasePlaceholder.vue.d.ts +1 -1
- package/dist/src/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +4 -4
- package/dist/src/components/BaseSwimlane/BaseSwimlane.vue.d.ts +4 -4
- package/dist/src/components/BaseTimer/BaseTimer.vue.d.ts +6 -6
- package/dist/src/components/BaseUnitToggle/BaseUnitToggle.stories.d.ts +33 -33
- package/dist/src/components/BaseUnitToggle/BaseUnitToggle.vue.d.ts +8 -8
- package/dist/src/components/BaseVideo/BaseVideo.vue.d.ts +61 -4
- package/dist/src/components/BlockAccordion/BlockAccordion.vue.d.ts +4 -4
- package/dist/src/components/BlockAnchor/BlockAnchor.vue.d.ts +3 -3
- package/dist/src/components/BlockAudio/BlockAudio.vue.d.ts +230 -3
- package/dist/src/components/BlockCardGridItem/BlockCardGridItemElement.vue.d.ts +172 -5
- package/dist/src/components/BlockCircleImageCard/BlockCircleImageCard.vue.d.ts +170 -4
- package/dist/src/components/BlockCta/BlockCta.vue.d.ts +96 -4
- package/dist/src/components/BlockDialog/BlockDialog.stories.d.ts +7 -5
- package/dist/src/components/BlockGist/BlockGist.vue.d.ts +1 -1
- package/dist/src/components/BlockGist/GitHub404.vue.d.ts +1 -1
- package/dist/src/components/BlockHeading/BlockHeading.vue.d.ts +35 -5
- package/dist/src/components/BlockKeyPoints/BlockKeyPoints.vue.d.ts +87 -3
- package/dist/src/components/BlockLinkCard/BlockLinkCard.stories.d.ts +60 -23
- package/dist/src/components/BlockLinkCardList/BlockLinkCardList.vue.d.ts +4 -4
- package/dist/src/components/BlockTable/BlockTable.vue.d.ts +3 -3
- package/dist/src/components/BlockTeaser/BlockTeaser.vue.d.ts +175 -4
- package/dist/src/components/BlockText/BlockText.vue.d.ts +4 -4
- package/dist/src/components/CalendarButton/CalendarButton.vue.d.ts +95 -4
- package/dist/src/components/CalendarChip/CalendarChip.vue.d.ts +4 -4
- package/dist/src/components/EventDetailHero/EventDetailHero.vue.d.ts +172 -4
- package/dist/src/components/FormContact/FormContact.stories.d.ts +361 -1
- package/dist/src/components/FormContact/FormContact.vue.d.ts +361 -1
- package/dist/src/components/FormNewsletterSignup/FormNewsletterSignup.stories.d.ts +396 -1
- package/dist/src/components/FormNewsletterSignup/FormNewsletterSignup.vue.d.ts +396 -1
- package/dist/src/components/HeroLarge/HeroLarge.vue.d.ts +51 -4
- package/dist/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.vue.d.ts +281 -3
- package/dist/src/components/HomepageTeaserBlock/HomepageTeaserBlockCardImage.vue.d.ts +141 -3
- package/dist/src/components/Icons/Icon360.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconArrow.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconArrows.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconAudio.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconBook.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconBookUser.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconBriefcase.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconCalendar.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconCaret.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconCheckbox.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconCheckboxSelected.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconClose.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconCloseLightbox.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconDownload.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconDropdown.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconEnvelope.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconExpand.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconExternal.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconFilter.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconForwardTen.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconGrid.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconHand.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconInfo.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconLink.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconList.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconLocation.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconMagnifyingGlass.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconMedal.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconMenu.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconMinus.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconMute.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconNext.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconPause.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconPlay.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconPlus.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconPrev.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconProfile.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconRewindTen.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconSearch.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconShare.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconSlideshow.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconSocialEmail.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconSocialFacebook.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconSocialGoogleClassroom.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconSocialInstagram.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconSocialPinterest.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconSocialReddit.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconSocialTwitter.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconSocialYoutube.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconStop.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconSubject.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconTime.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconUniversity.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconUser.vue.d.ts +1 -1
- package/dist/src/components/Icons/IconVolume.vue.d.ts +1 -1
- package/dist/src/components/Icons/Icons.stories.d.ts +110 -110
- package/dist/src/components/ImageDetailContextImage/ImageDetailContextImage.vue.d.ts +142 -3
- package/dist/src/components/LayoutHelper/LayoutHelper.vue.d.ts +4 -4
- package/dist/src/components/LoadingTransition/LoadingTransition.vue.d.ts +1 -1
- package/dist/src/components/LogoCaltech/LogoCaltech.stories.d.ts +1 -1
- package/dist/src/components/LogoCaltech/LogoCaltech.vue.d.ts +1 -1
- package/dist/src/components/LogoTribrand/LogoTribrand.stories.d.ts +4 -5
- package/dist/src/components/LogoTribrand/LogoTribrand.vue.d.ts +4 -4
- package/dist/src/components/MetadataEduResource/MetadataEduResource.vue.d.ts +4 -4
- package/dist/src/components/MetadataEvent/MetadataEvent.vue.d.ts +4 -4
- package/dist/src/components/MissionDetailAbout/MissionDetailAbout.vue.d.ts +61 -4
- package/dist/src/components/MissionDetailHero/MissionDetailHero.stories.d.ts +0 -1
- package/dist/src/components/MissionDetailHero/MissionDetailHero.vue.d.ts +154 -4
- package/dist/src/components/MissionDetailHighlights/MissionDetailHighlights.stories.d.ts +0 -1
- package/dist/src/components/MissionDetailStats/DistanceStats.vue.d.ts +63 -8
- package/dist/src/components/MissionDetailStats/MissionDetailStats.stories.d.ts +460 -31
- package/dist/src/components/MissionDetailStats/MissionDetailStats.vue.d.ts +199 -12
- package/dist/src/components/MissionDetailStats/MissionDetailStatsMicro.vue.d.ts +63 -6
- package/dist/src/components/MissionDetailStats/MissionDetailStatsMini.vue.d.ts +195 -8
- package/dist/src/components/MixinAnimationCaret/MixinAnimationCaret.stories.d.ts +6 -4
- package/dist/src/components/MixinAnimationCaret/MixinAnimationCaret.vue.d.ts +6 -4
- package/dist/src/components/MixinFancybox/MixinFancybox.vue.d.ts +8 -4
- package/dist/src/components/MixinFancybox/MixinFancyboxOpenButton.vue.d.ts +3 -1
- package/dist/src/components/MixinVideoBg/MixinVideoBg.vue.d.ts +3 -3
- package/dist/src/components/NavDesktop/NavDesktopDropdown.vue.d.ts +44 -4
- package/dist/src/components/NavDropdownToggle/NavDropdownToggle.vue.d.ts +5 -5
- package/dist/src/components/NavSearchForm/NavSearchForm.vue.d.ts +5 -5
- package/dist/src/components/NavSocial/NavSocial.stories.d.ts +99 -4
- package/dist/src/components/NavSocial/NavSocial.vue.d.ts +99 -4
- package/dist/src/components/NewsDetailMediaContact/NewsDetailMediaContact.vue.d.ts +4 -4
- package/dist/src/components/ParallaxContainer/ParallaxContainer.stories.d.ts +8 -8
- package/dist/src/components/ParallaxContainer/ParallaxContainer.vue.d.ts +4 -4
- package/dist/src/components/ParallaxElement/ParallaxElement.vue.d.ts +4 -4
- package/dist/src/components/ProfileDetailSectionGroup/ProfileDetailSectionGroup.vue.d.ts +67 -3
- package/dist/src/components/RoboticsDetailStats/RoboticsDetailStats.stories.d.ts +59 -4
- package/dist/src/components/RoboticsDetailStats/RoboticsDetailStats.vue.d.ts +3 -3
- package/dist/src/components/RoboticsDetailStats/RoboticsDetailStatsMini.vue.d.ts +58 -3
- package/dist/src/components/SearchFilterGroup/SearchFilterGroup.vue.d.ts +5 -5
- package/dist/src/components/SearchInput/SearchInput.vue.d.ts +5 -5
- package/dist/src/components/SearchPagination/SearchPagination.vue.d.ts +96 -3
- package/dist/src/components/SearchResultCard/SearchResultCard.stories.d.ts +19 -1
- package/dist/src/components/SearchSelectMenu/SearchSelectMenu.vue.d.ts +4 -4
- package/dist/src/components/ShareButtons/ShareButtons.vue.d.ts +99 -4
- package/dist/src/components/ShareButtonsEdu/ShareButtonsEdu.vue.d.ts +1 -1
- package/dist/src/components/SkipLink/SkipLink.vue.d.ts +92 -1
- package/dist/src/components/TextArea/TextArea.vue.d.ts +14 -14
- package/dist/src/components/TextInput/TextInput.vue.d.ts +14 -14
- package/dist/src/components/TheFooter/TheFooterSignUp.vue.d.ts +3 -1
- package/dist/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.vue.d.ts +314 -3
- package/dist/src/components/TopicDetailMore/TopicDetailMoreVisibility.vue.d.ts +1 -1
- package/dist/src/components/YearTicker/YearTicker.stories.d.ts +3 -3
- package/dist/src/components/YearTicker/YearTicker.vue.d.ts +3 -3
- package/dist/src/docs/foundation/grid_layouthelpers.stories.d.ts +16 -16
- package/dist/src/docs/foundation/typography.stories.d.ts +7 -7
- package/dist/src/interfaces.d.ts +1 -0
- package/dist/src/templates/edu/PageEduExplainerArticle/PageEduExplainerArticle.stories.d.ts +105 -38
- package/dist/src/templates/edu/PageEduLesson/PageEduLesson.stories.d.ts +112 -34
- package/dist/src/templates/edu/PageEduStudentProject/PageEduStudentProject.stories.d.ts +131 -35
- package/dist/src/templates/edu/PageEduTeachableMoment/PageEduTeachableMoment.stories.d.ts +112 -34
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/BaseImage/BaseImage.vue +2 -28
- package/src/components/BlockHeading/BlockHeading.vue +1 -1
- package/src/components/BlockIframeEmbed/BlockIframeEmbed.vue +4 -28
- package/src/components/BlockLinkCard/BlockLinkCard.stories.js +31 -4
- package/src/components/BlockLinkCard/BlockLinkCard.vue +1 -1
- package/src/components/BlockVideoEmbed/BlockVideoEmbed.vue +0 -2
- package/src/components/HeroMedia/HeroMedia.vue +7 -5
- package/src/components/HeroMedium/HeroMedium.vue +1 -1
- package/src/components/MetaPanel/MetaPanel.vue +6 -6
- package/src/components/MetadataEduResource/MetadataEduResource.vue +7 -2
- package/src/components/MetadataEvent/MetadataEvent.vue +3 -2
- package/src/components/NavJumpMenu/NavJumpMenu.vue +7 -1
- package/src/components/NavJumpMenu/NavJumpMenuContent.vue +6 -1
- package/src/components/SearchFilterGroup/SearchFilterGroup.vue +1 -0
- package/src/components/SearchInput/SearchInput.vue +15 -4
- package/src/components/SearchResultCard/SearchResultCard.stories.js +13 -2
- package/src/components/SearchResultsList/SearchResultsList.vue +8 -2
- package/src/interfaces.ts +1 -0
- package/src/templates/edu/PageEduExplainerArticle/PageEduExplainerArticle.stories.js +16 -0
- package/src/templates/edu/PageEduExplainerArticle/PageEduExplainerArticle.vue +45 -14
- package/src/templates/edu/PageEduHome/PageEduHome.stories.js +99 -0
- package/src/templates/edu/PageEduHome/PageEduHome.vue +154 -0
- package/src/templates/edu/PageEduLesson/PageEduLesson.stories.js +26 -1
- package/src/templates/edu/PageEduLesson/PageEduLesson.vue +57 -19
- package/src/templates/edu/PageEduStudentProject/PageEduStudentProject.stories.js +30 -3
- package/src/templates/edu/PageEduStudentProject/PageEduStudentProject.vue +126 -97
- package/src/templates/edu/PageEduStudentProject/PageEduStudentProjectSection.vue +59 -44
- package/src/templates/edu/PageEduTeachableMoment/PageEduTeachableMoment.stories.js +26 -1
- package/src/templates/edu/PageEduTeachableMoment/PageEduTeachableMoment.vue +44 -16
- package/dist/src/components/AsteroidWatchWidget/AsteroidWatchWidget.vue.d.ts +0 -36
- package/dist/src/components/BaseImageCaption/BaseImageCaption.vue.d.ts +0 -37
- package/dist/src/components/BlockCardGrid/BlockCardGrid.vue.d.ts +0 -33
- package/dist/src/components/BlockCardGridItem/BlockCardGridItem.vue.d.ts +0 -19
- package/dist/src/components/BlockIframeEmbed/BlockIframeEmbed.vue.d.ts +0 -24
- package/dist/src/components/BlockImage/BlockImage.stories.d.ts +0 -345
- package/dist/src/components/BlockImage/BlockImage.vue.d.ts +0 -24
- package/dist/src/components/BlockImage/BlockImageFullBleed.vue.d.ts +0 -68
- package/dist/src/components/BlockImage/BlockImageStandard.vue.d.ts +0 -65
- package/dist/src/components/BlockImageCarousel/BlockImageCarousel.vue.d.ts +0 -74
- package/dist/src/components/BlockImageCarouselItem/BlockImageCarouselItem.vue.d.ts +0 -58
- package/dist/src/components/BlockImageComparison/BlockImageComparison.vue.d.ts +0 -25
- package/dist/src/components/BlockImageGallery/BlockImageGallery.vue.d.ts +0 -57
- package/dist/src/components/BlockInlineImage/BlockInlineImage.vue.d.ts +0 -19
- package/dist/src/components/BlockLinkCard/BlockLinkCard.vue.d.ts +0 -198
- package/dist/src/components/BlockLinkCarousel/BlockLinkCarousel.stories.d.ts +0 -306
- package/dist/src/components/BlockLinkCarousel/BlockLinkCarousel.vue.d.ts +0 -47
- package/dist/src/components/BlockLinkTile/BlockLinkTile.vue.d.ts +0 -93
- package/dist/src/components/BlockListCards/BlockListCards.vue.d.ts +0 -16
- package/dist/src/components/BlockQuote/BlockQuote.stories.d.ts +0 -202
- package/dist/src/components/BlockQuote/BlockQuote.vue.d.ts +0 -32
- package/dist/src/components/BlockRelatedLinks/BlockRelatedLinks.vue.d.ts +0 -36
- package/dist/src/components/BlockRelatedLinks/RelatedLink.vue.d.ts +0 -42
- package/dist/src/components/BlockStreamfield/BlockStreamfield.vue.d.ts +0 -49
- package/dist/src/components/BlockVideo/BlockVideo.vue.d.ts +0 -40
- package/dist/src/components/BlockVideoEmbed/BlockVideoEmbed.vue.d.ts +0 -38
- package/dist/src/components/DetailHeadline/DetailHeadline.vue.d.ts +0 -156
- package/dist/src/components/DsnWidget/DsnWidget.vue.d.ts +0 -15
- package/dist/src/components/EventCard/EventCard.vue.d.ts +0 -111
- package/dist/src/components/HeroListingIndex/HeroListingIndex.vue.d.ts +0 -42
- package/dist/src/components/HeroMedia/HeroMedia.vue.d.ts +0 -66
- package/dist/src/components/HeroMedium/HeroMedium.vue.d.ts +0 -96
- package/dist/src/components/HomepageCarousel/HomepageCarousel.vue.d.ts +0 -45
- package/dist/src/components/HomepageCarouselItem/HomepageCarouselItem.vue.d.ts +0 -33
- package/dist/src/components/HomepageEmbedBlock/HomepageEmbedBlock.vue.d.ts +0 -15
- package/dist/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.stories.d.ts +0 -106
- package/dist/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.vue.d.ts +0 -24
- package/dist/src/components/HomepageMissionsCarousel/HomepageMissionsCarouselItem.vue.d.ts +0 -18
- package/dist/src/components/HomepageStats/HomepageStats.stories.d.ts +0 -565
- package/dist/src/components/HomepageStats/HomepageStats.vue.d.ts +0 -65
- package/dist/src/components/HomepageTeaserBlock/HomepageTeaserBlock.vue.d.ts +0 -21
- package/dist/src/components/MissionDetailHighlights/MissionDetailHighlights.vue.d.ts +0 -65
- package/dist/src/components/MissionDetailHighlights/MissionDetailHighlightsCarousel.vue.d.ts +0 -30
- package/dist/src/components/MissionDetailHighlights/MissionDetailHighlightsCarouselItem.vue.d.ts +0 -36
- package/dist/src/components/MissionDetailInlineImage/MissionDetailInlineImage.vue.d.ts +0 -34
- package/dist/src/components/MissionDetailStreamfield/MissionDetailStreamfield.vue.d.ts +0 -12
- package/dist/src/components/MixinCarousel/MixinCarousel.stories.d.ts +0 -265
- package/dist/src/components/MixinCarousel/MixinCarousel.vue.d.ts +0 -118
- package/dist/src/components/NavDesktop/NavDesktop.stories.d.ts +0 -648
- package/dist/src/components/NavDesktop/NavDesktop.vue.d.ts +0 -94
- package/dist/src/components/NavDesktop/NavDesktopDropdownContent.vue.d.ts +0 -14
- package/dist/src/components/NavDesktop/NavDesktopDropdownMore.vue.d.ts +0 -15
- package/dist/src/components/NavDesktopEdu/NavDesktopEdu.stories.d.ts +0 -338
- package/dist/src/components/NavHeading/NavHeading.vue.d.ts +0 -12
- package/dist/src/components/NavHighlight/NavHighlight.vue.d.ts +0 -20
- package/dist/src/components/NavLinkList/NavLinkList.vue.d.ts +0 -29
- package/dist/src/components/NavLogoLinks/NavLogoLinks.stories.d.ts +0 -18
- package/dist/src/components/NavLogoLinks/NavLogoLinks.vue.d.ts +0 -2
- package/dist/src/components/NavMobile/NavMobile.stories.d.ts +0 -656
- package/dist/src/components/NavMobile/NavMobile.vue.d.ts +0 -94
- package/dist/src/components/NavMobile/NavMobileDropdown.vue.d.ts +0 -54
- package/dist/src/components/NavMobile/NavMobileEdu.stories.d.ts +0 -395
- package/dist/src/components/NavMobile/NavMobileLink.vue.d.ts +0 -46
- package/dist/src/components/NavMobile/NavMobileSecondaryDropdown.vue.d.ts +0 -35
- package/dist/src/components/NavSecondary/NavSecondary.vue.d.ts +0 -75
- package/dist/src/components/NavSecondary/NavSecondaryDropdown.vue.d.ts +0 -70
- package/dist/src/components/NavSecondary/NavSecondaryDropdownContent.vue.d.ts +0 -30
- package/dist/src/components/NavSecondary/NavSecondaryLink.vue.d.ts +0 -40
- package/dist/src/components/PastEventsCarousel/PastEventsCarousel.vue.d.ts +0 -19
- package/dist/src/components/PodcastEpisodeCard/PodcastEpisodeCard.vue.d.ts +0 -82
- package/dist/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.vue.d.ts +0 -55
- package/dist/src/components/SearchResultCard/SearchResultCard.vue.d.ts +0 -287
- package/dist/src/components/SearchResultGridItem/SearchResultGridItem.vue.d.ts +0 -193
- package/dist/src/components/SearchResultsList/SearchResultsList.vue.d.ts +0 -62
- package/dist/src/components/TheFooter/TheFooter.vue.d.ts +0 -35
- package/dist/src/components/ThumbnailCarousel/ThumbnailCarousel.vue.d.ts +0 -32
- package/dist/src/components/TimelineDialog/TimelineDialog.stories.d.ts +0 -75
- package/dist/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.vue.d.ts +0 -33
- package/dist/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.vue.d.ts +0 -27
- package/dist/src/components/TopicDetailMore/TopicDetailMore.stories.d.ts +0 -167
- package/dist/src/components/TopicDetailMore/TopicDetailMore.vue.d.ts +0 -39
- package/dist/src/components/TopicDetailMoreItem/TopicDetailMoreItem.vue.d.ts +0 -22
- package/dist/src/components/TopicDetailStreamfield/TopicDetailStreamfield.vue.d.ts +0 -31
- package/dist/src/templates/PageContent/PageContent.vue.d.ts +0 -28
- package/dist/src/templates/PageEventDetail/PageEventDetail.vue.d.ts +0 -22
- package/dist/src/templates/PageNewsDetail/PageNewsDetail.vue.d.ts +0 -17
package/package.json
CHANGED
|
@@ -53,11 +53,6 @@ export default defineComponent({
|
|
|
53
53
|
default: 'lazy'
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
data() {
|
|
57
|
-
return {
|
|
58
|
-
lazyNative: true
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
56
|
computed: {
|
|
62
57
|
computedClass(): string {
|
|
63
58
|
let classes = ''
|
|
@@ -67,31 +62,10 @@ export default defineComponent({
|
|
|
67
62
|
if (this.objectFitClass) {
|
|
68
63
|
classes = classes + ' ' + objectFitClasses[this.objectFitClass]
|
|
69
64
|
}
|
|
70
|
-
if (!this.lazyNative) {
|
|
71
|
-
classes = classes + ' lazyload'
|
|
72
|
-
}
|
|
73
65
|
return classes
|
|
74
66
|
}
|
|
75
67
|
},
|
|
76
|
-
mounted() {
|
|
77
|
-
this.featureDetectImageLazyLoad()
|
|
78
|
-
},
|
|
79
68
|
methods: {
|
|
80
|
-
featureDetectImageLazyLoad() {
|
|
81
|
-
if ('loading' in HTMLImageElement.prototype) {
|
|
82
|
-
const image = this.$refs.BaseImage ? (this.$refs.BaseImage as HTMLImageElement) : null
|
|
83
|
-
this.lazyNative = true
|
|
84
|
-
// reassign dataset attributes
|
|
85
|
-
if (image && image.dataset.src) {
|
|
86
|
-
image.src = image.dataset.src
|
|
87
|
-
}
|
|
88
|
-
if (image && image.dataset.srcset) {
|
|
89
|
-
image.srcset = image.dataset.srcset
|
|
90
|
-
}
|
|
91
|
-
} else {
|
|
92
|
-
this.lazyNative = false
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
69
|
imageFailed() {
|
|
96
70
|
console.log('Image failed to load.')
|
|
97
71
|
}
|
|
@@ -105,8 +79,8 @@ export default defineComponent({
|
|
|
105
79
|
ref="BaseImage"
|
|
106
80
|
class="BaseImage print:border print:border-gray-mid"
|
|
107
81
|
:class="computedClass"
|
|
108
|
-
:
|
|
109
|
-
:
|
|
82
|
+
:src="src"
|
|
83
|
+
:srcset="srcset"
|
|
110
84
|
:alt="alt"
|
|
111
85
|
:width="width"
|
|
112
86
|
:height="height"
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-if="data">
|
|
2
|
+
<div v-if="data?.url">
|
|
3
3
|
<template v-if="data.height">
|
|
4
4
|
<iframe
|
|
5
5
|
v-if="data.url"
|
|
6
6
|
ref="BlockIframeEmbed"
|
|
7
7
|
loading="lazy"
|
|
8
8
|
class="w-full border-none print:!border print:border-gray-dark"
|
|
9
|
-
:class="{ lazyload: !lazyNative }"
|
|
10
9
|
:title="data.title"
|
|
11
|
-
:
|
|
10
|
+
:src="data.url"
|
|
12
11
|
width="90%"
|
|
13
12
|
:height="data.height"
|
|
14
13
|
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
|
@@ -28,9 +27,8 @@
|
|
|
28
27
|
ref="BlockIframeEmbed"
|
|
29
28
|
loading="lazy"
|
|
30
29
|
class="w-full border-none"
|
|
31
|
-
:class="{ lazyload: !lazyNative }"
|
|
32
30
|
:title="data.title"
|
|
33
|
-
:
|
|
31
|
+
:src="data.url"
|
|
34
32
|
data-chromatic="ignore"
|
|
35
33
|
width="90%"
|
|
36
34
|
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
|
@@ -60,29 +58,7 @@ export default defineComponent({
|
|
|
60
58
|
props: {
|
|
61
59
|
data: {
|
|
62
60
|
type: Object,
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
data() {
|
|
67
|
-
return {
|
|
68
|
-
lazyNative: true
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
mounted() {
|
|
72
|
-
this.featureDetectIframeLazyLoad()
|
|
73
|
-
},
|
|
74
|
-
methods: {
|
|
75
|
-
featureDetectIframeLazyLoad() {
|
|
76
|
-
if ('loading' in HTMLIFrameElement.prototype) {
|
|
77
|
-
const iframe = this.$refs.BlockIframeEmbed as HTMLIFrameElement
|
|
78
|
-
this.lazyNative = true
|
|
79
|
-
// move data-src attribute to src
|
|
80
|
-
if (iframe.dataset.src) {
|
|
81
|
-
iframe.src = iframe.dataset.src
|
|
82
|
-
}
|
|
83
|
-
} else {
|
|
84
|
-
this.lazyNative = false
|
|
85
|
-
}
|
|
61
|
+
default: undefined
|
|
86
62
|
}
|
|
87
63
|
},
|
|
88
64
|
computed: {
|
|
@@ -10,9 +10,9 @@ export default {
|
|
|
10
10
|
argTypes: {
|
|
11
11
|
size: {
|
|
12
12
|
control: {
|
|
13
|
-
type: 'select'
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
type: 'select'
|
|
14
|
+
},
|
|
15
|
+
options: ['sm', 'md', 'lg']
|
|
16
16
|
},
|
|
17
17
|
headingLevel: {
|
|
18
18
|
description:
|
|
@@ -152,6 +152,29 @@ export const EventItemWithChip = {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
+
export const EventWithDateNoTime = {
|
|
156
|
+
decorators: [
|
|
157
|
+
() => ({
|
|
158
|
+
template: `<div id="storyDecorator" class="relative grid grid-cols-2 gap-3"><story/></div>`
|
|
159
|
+
})
|
|
160
|
+
],
|
|
161
|
+
args: {
|
|
162
|
+
...BlockLinkCardData,
|
|
163
|
+
showCalendarChip: true,
|
|
164
|
+
data: {
|
|
165
|
+
page: {
|
|
166
|
+
...BlockLinkCardData.data,
|
|
167
|
+
__typename: 'EDUEventPage',
|
|
168
|
+
startDate: '2021-11-11',
|
|
169
|
+
startDatetime: null,
|
|
170
|
+
endDatetime: null,
|
|
171
|
+
endDate: '2021-11-12',
|
|
172
|
+
ongoing: false,
|
|
173
|
+
eventType: 'Workshop'
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
155
178
|
export const EduLesson = {
|
|
156
179
|
decorators: [
|
|
157
180
|
() => ({
|
|
@@ -160,6 +183,7 @@ export const EduLesson = {
|
|
|
160
183
|
],
|
|
161
184
|
args: {
|
|
162
185
|
...BlockLinkCardData,
|
|
186
|
+
size: 'sm',
|
|
163
187
|
data: {
|
|
164
188
|
page: {
|
|
165
189
|
__typename: 'EDULessonPage',
|
|
@@ -172,7 +196,10 @@ export const EduLesson = {
|
|
|
172
196
|
{ gradeLevel: '1' },
|
|
173
197
|
{ gradeLevel: '2' },
|
|
174
198
|
{ gradeLevel: '8' }
|
|
175
|
-
]
|
|
199
|
+
],
|
|
200
|
+
time: {
|
|
201
|
+
time: '1-2 hrs'
|
|
202
|
+
}
|
|
176
203
|
}
|
|
177
204
|
}
|
|
178
205
|
}
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
</component>
|
|
99
99
|
<p
|
|
100
100
|
v-if="(theItem as EventCardObject).targetAudience"
|
|
101
|
-
:class="{ 'mt-
|
|
101
|
+
:class="{ 'mt-1': !large, 'mt-4': large }"
|
|
102
102
|
>
|
|
103
103
|
<strong>Target Audience:</strong> {{ (theItem as EventCardObject).targetAudience }}
|
|
104
104
|
</p>
|
|
@@ -63,8 +63,6 @@ export default defineComponent({
|
|
|
63
63
|
if (!this.data?.embed) {
|
|
64
64
|
return
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
// TODO: not using feature detect as that would require rewriting the html output from wagtail to set data-src instead of src
|
|
68
66
|
// get the iframe in this component
|
|
69
67
|
const iframe = this.$el.querySelector('iframe')
|
|
70
68
|
if (iframe) {
|
|
@@ -109,7 +109,7 @@ export default defineComponent({
|
|
|
109
109
|
computed: {
|
|
110
110
|
...mapStores(useThemeStore),
|
|
111
111
|
theImageCaption(): string | undefined {
|
|
112
|
-
if (this.image && this.caption && this.caption.length > 2
|
|
112
|
+
if (this.displayCaption && this.image && this.caption && this.caption.length > 2) {
|
|
113
113
|
return this.caption
|
|
114
114
|
} else if (
|
|
115
115
|
this.image &&
|
|
@@ -135,10 +135,12 @@ export default defineComponent({
|
|
|
135
135
|
},
|
|
136
136
|
// to handle captions for videos
|
|
137
137
|
customCaption(): Partial<ImageObject> | undefined {
|
|
138
|
-
if (
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
if (this.displayCaption) {
|
|
139
|
+
if ((this.caption && this.caption.length > 2) || this.credit) {
|
|
140
|
+
return {
|
|
141
|
+
caption: this.caption,
|
|
142
|
+
credit: this.credit
|
|
143
|
+
}
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
146
|
return undefined
|
|
@@ -128,7 +128,7 @@ const standardsIste = computed(() => {
|
|
|
128
128
|
>
|
|
129
129
|
<div class="col-start-container lg:col-start-indent-col-2 col-end-container">
|
|
130
130
|
<div class="MetaPanel-heading lg:grid grid-cols-12 col-end-container container">
|
|
131
|
-
<div class="col-start-1 col-end-
|
|
131
|
+
<div class="col-start-1 col-end-9 xl:col-end-9 pl-4 lg:pl-10 pr-6 py-6 lg:py-10">
|
|
132
132
|
<MetaPanelItems
|
|
133
133
|
:theme="theme"
|
|
134
134
|
:primary-subject="primarySubject"
|
|
@@ -138,8 +138,8 @@ const standardsIste = computed(() => {
|
|
|
138
138
|
/>
|
|
139
139
|
</div>
|
|
140
140
|
<div
|
|
141
|
-
v-if="button"
|
|
142
|
-
class="ThemeVariantLight col-start-
|
|
141
|
+
v-if="button && (standards?.length || $slots.metaInfo)"
|
|
142
|
+
class="ThemeVariantLight col-start-9 col-end-13 pl-4 lg:pl-0 pt-4 pb-6 lg:pr-4 xl:pr-10 2xl:pr-0 lg:py-10 lg:text-right"
|
|
143
143
|
>
|
|
144
144
|
<BaseButton
|
|
145
145
|
variant="secondary"
|
|
@@ -164,7 +164,7 @@ const standardsIste = computed(() => {
|
|
|
164
164
|
</div>
|
|
165
165
|
</div>
|
|
166
166
|
<div
|
|
167
|
-
v-if="standards || $slots.metaInfo"
|
|
167
|
+
v-if="standards?.length || $slots.metaInfo"
|
|
168
168
|
v-show="metaPanelOpen"
|
|
169
169
|
class="MetaPanel-panel col-start-container lg:col-start-indent-col-2 col-end-bleed lg:grid grid-cols-subgrid bg-gray-light pb-3 lg:pb-6"
|
|
170
170
|
>
|
|
@@ -176,11 +176,11 @@ const standardsIste = computed(() => {
|
|
|
176
176
|
<slot name="metaInfo" />
|
|
177
177
|
</div>
|
|
178
178
|
<div
|
|
179
|
-
v-if="standards"
|
|
179
|
+
v-if="standards?.length"
|
|
180
180
|
class="pt-6 lg:pt-7"
|
|
181
181
|
>
|
|
182
182
|
<div
|
|
183
|
-
class="text-subtitle mb-5"
|
|
183
|
+
class="ThemeVariantGray text-subtitle mb-5"
|
|
184
184
|
:class="headingClass"
|
|
185
185
|
>
|
|
186
186
|
Standards
|
|
@@ -42,7 +42,7 @@ const time = computed(() => {
|
|
|
42
42
|
<template>
|
|
43
43
|
<div
|
|
44
44
|
class="MetadataEduResource"
|
|
45
|
-
:class="{ '-compact text-
|
|
45
|
+
:class="{ '-compact text-sm xl:text-base': props.compact, 'text-body-lg': !props.compact }"
|
|
46
46
|
>
|
|
47
47
|
<div
|
|
48
48
|
v-if="primarySubject"
|
|
@@ -69,6 +69,7 @@ const time = computed(() => {
|
|
|
69
69
|
<div
|
|
70
70
|
v-if="time && showTime"
|
|
71
71
|
class="MetadataEduResourceItem"
|
|
72
|
+
:class="primarySubject && audience && time ? '-xlScreensOnly' : ''"
|
|
72
73
|
>
|
|
73
74
|
<IconTime
|
|
74
75
|
class="MetadataEduResourceIcon text-[1.15em]"
|
|
@@ -102,10 +103,14 @@ const time = computed(() => {
|
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
&.-compact {
|
|
105
|
-
@apply flex flex-grow;
|
|
106
|
+
@apply flex flex-grow flex-wrap;
|
|
106
107
|
.MetadataEduResourceItem {
|
|
108
|
+
@apply whitespace-nowrap;
|
|
107
109
|
@apply max-w-none min-w-[4em];
|
|
108
110
|
@apply mr-6 mb-0;
|
|
111
|
+
&.-xlScreensOnly {
|
|
112
|
+
@apply hidden xl:flex;
|
|
113
|
+
}
|
|
109
114
|
}
|
|
110
115
|
}
|
|
111
116
|
}
|
|
@@ -76,7 +76,7 @@ const location = computed(() => {
|
|
|
76
76
|
<div
|
|
77
77
|
class="MetadataEvent"
|
|
78
78
|
:class="{
|
|
79
|
-
'-compact text-
|
|
79
|
+
'-compact text-sm xl:text-base': props.compact,
|
|
80
80
|
'text-body-lg': !props.compact,
|
|
81
81
|
'-allow-break': props.allowBreak
|
|
82
82
|
}"
|
|
@@ -173,8 +173,9 @@ const location = computed(() => {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
&.-compact {
|
|
176
|
-
@apply flex flex-grow;
|
|
176
|
+
@apply flex flex-grow flex-wrap;
|
|
177
177
|
.MetadataEventItem {
|
|
178
|
+
@apply whitespace-nowrap;
|
|
178
179
|
@apply max-w-none min-w-[4em];
|
|
179
180
|
@apply mr-6 mb-0;
|
|
180
181
|
}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
<NavJumpMenuContent
|
|
20
20
|
:key="index"
|
|
21
21
|
:item="item"
|
|
22
|
+
v-bind="$attrs"
|
|
22
23
|
/>
|
|
23
24
|
</NavSecondaryDropdown>
|
|
24
25
|
</template>
|
|
@@ -41,17 +42,20 @@ import NavSecondary from './../NavSecondary/NavSecondary.vue'
|
|
|
41
42
|
import NavSecondaryDropdown from './../NavSecondary/NavSecondaryDropdown.vue'
|
|
42
43
|
import NavSecondaryLink from './../NavSecondary/NavSecondaryLink.vue'
|
|
43
44
|
import NavJumpMenuContent from './../NavJumpMenu/NavJumpMenuContent.vue'
|
|
45
|
+
import type { BlockHeadingObject } from './../BlockHeading/BlockHeading.vue'
|
|
44
46
|
import type { BlockData, BreadcrumbPathObject } from './../../interfaces'
|
|
45
47
|
import { getHeadingId } from '../../utils/getHeadingId'
|
|
46
48
|
|
|
47
49
|
interface NavJumpMenuProps {
|
|
48
50
|
title?: string
|
|
49
51
|
jumpLinks?: BreadcrumbPathObject[]
|
|
50
|
-
blocks?: BlockData[]
|
|
52
|
+
blocks?: BlockData[] | BlockHeadingObject[]
|
|
51
53
|
headingLevel?: string
|
|
52
54
|
invert?: boolean
|
|
53
55
|
enabled?: boolean
|
|
54
56
|
dropdownText?: string
|
|
57
|
+
// stepsNumbering?: boolean
|
|
58
|
+
// stepClasses?: string
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
const props = withDefaults(defineProps<NavJumpMenuProps>(), {
|
|
@@ -63,6 +67,8 @@ const props = withDefaults(defineProps<NavJumpMenuProps>(), {
|
|
|
63
67
|
invert: true,
|
|
64
68
|
hidden: false,
|
|
65
69
|
dropdownText: 'Jump to…'
|
|
70
|
+
// stepsNumbering: false,
|
|
71
|
+
// stepClasses: 'text-primary'
|
|
66
72
|
})
|
|
67
73
|
|
|
68
74
|
const NavJumpMenuRef = ref()
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
:link-class="linkClass(child)"
|
|
12
12
|
>
|
|
13
13
|
<span>
|
|
14
|
+
<span
|
|
15
|
+
v-if="$attrs['steps-numbering']"
|
|
16
|
+
:class="$attrs['steps-classes']"
|
|
17
|
+
aria-hidden
|
|
18
|
+
>{{ `Step ${index + 1}:` }}</span
|
|
19
|
+
>
|
|
14
20
|
{{ child.title }}
|
|
15
21
|
</span>
|
|
16
22
|
</BaseLink>
|
|
@@ -33,7 +39,6 @@ export default defineComponent({
|
|
|
33
39
|
BaseLink
|
|
34
40
|
},
|
|
35
41
|
props: {
|
|
36
|
-
// the tertiary nav item object that includes path, title, and children
|
|
37
42
|
item: {
|
|
38
43
|
type: Object,
|
|
39
44
|
required: true
|
|
@@ -8,6 +8,7 @@ interface SearchInputProps {
|
|
|
8
8
|
placeholder?: string
|
|
9
9
|
autoFocus?: boolean
|
|
10
10
|
defaultColors?: boolean
|
|
11
|
+
withButton?: boolean
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
// define props
|
|
@@ -16,10 +17,11 @@ const props = withDefaults(defineProps<SearchInputProps>(), {
|
|
|
16
17
|
underlinedInputValue: undefined,
|
|
17
18
|
placeholder: '',
|
|
18
19
|
autoFocus: false,
|
|
19
|
-
defaultColors: true
|
|
20
|
+
defaultColors: true,
|
|
21
|
+
withButton: false
|
|
20
22
|
})
|
|
21
23
|
|
|
22
|
-
const emit = defineEmits(['input', 'esc'])
|
|
24
|
+
const emit = defineEmits(['input', 'esc', 'submit'])
|
|
23
25
|
|
|
24
26
|
const model = defineModel()
|
|
25
27
|
const isFocused = ref(false)
|
|
@@ -67,20 +69,29 @@ onMounted(() => {
|
|
|
67
69
|
<input
|
|
68
70
|
ref="searchQueryRef"
|
|
69
71
|
v-model="model"
|
|
70
|
-
class="pl-14 focus:ring-2 relative z-10 w-full
|
|
72
|
+
class="pl-14 h-full focus:ring-2 relative z-10 w-full px-5 text-sm md:text-base lg:text-lg bg-transparent border-0"
|
|
71
73
|
:class="{
|
|
72
74
|
'text-gray-dark': defaultColors,
|
|
73
75
|
'py-1': underlinedInput,
|
|
74
|
-
'py-
|
|
76
|
+
'py-3.5 lg:py-5': !underlinedInput
|
|
75
77
|
}"
|
|
76
78
|
type="search"
|
|
77
79
|
aria-label="Query"
|
|
78
80
|
:placeholder="placeholder"
|
|
79
81
|
@keydown.esc="emit('esc')"
|
|
82
|
+
@keydown.enter="emit('submit')"
|
|
80
83
|
@input="emit('input', $event.target)"
|
|
81
84
|
@focus="isFocused = true"
|
|
82
85
|
@blur="isFocused = false"
|
|
83
86
|
/>
|
|
87
|
+
<button
|
|
88
|
+
v-if="withButton"
|
|
89
|
+
class="z-10 cursor-pointer bg-action p-4 lg:p-5 border border-white"
|
|
90
|
+
aria-label="Search resources"
|
|
91
|
+
@click="emit('submit')"
|
|
92
|
+
>
|
|
93
|
+
<IconSearch class="relative z-10 text-xl sm:text-2xl lg:text-3xl text-white" />
|
|
94
|
+
</button>
|
|
84
95
|
</div>
|
|
85
96
|
</template>
|
|
86
97
|
<style lang="scss" scoped>
|
|
@@ -66,9 +66,20 @@ export const PodcastEpisodeCard = {
|
|
|
66
66
|
export const EduEventCard = {
|
|
67
67
|
args: {
|
|
68
68
|
...SearchResultCardData,
|
|
69
|
-
|
|
69
|
+
__typename: 'EDUEventPage',
|
|
70
|
+
pageType: 'EDUEventPage',
|
|
71
|
+
contentType: 'EDUEventPage',
|
|
72
|
+
topic: null,
|
|
73
|
+
date: null,
|
|
74
|
+
isEvents: true,
|
|
75
|
+
type: 'Event',
|
|
70
76
|
startDate: '2021-11-11',
|
|
71
77
|
endDate: '2021-11-11',
|
|
72
|
-
eventType: 'Internship'
|
|
78
|
+
eventType: 'Internship',
|
|
79
|
+
startTime: '00:00:00-08:00',
|
|
80
|
+
endTime: '23:59:59.999999-08:00',
|
|
81
|
+
location: 'Hybrid',
|
|
82
|
+
targetAudience: 'All ages',
|
|
83
|
+
pageContentType: 'edu_events_edueventpage'
|
|
73
84
|
}
|
|
74
85
|
}
|
|
@@ -150,20 +150,25 @@ export default defineComponent({
|
|
|
150
150
|
: null
|
|
151
151
|
const pageType = page._source[handle + '__label']
|
|
152
152
|
if (handle === 'events_eventpage') {
|
|
153
|
+
// WWW Events
|
|
153
154
|
date = 'Event date: ' + parseDate(page._source[handle + '__start_datetime'])
|
|
154
155
|
} else if (handle === 'edu_events_edueventpage') {
|
|
156
|
+
// EDU Events
|
|
155
157
|
date = null
|
|
156
158
|
location = page._source[handle + '__location_filter']
|
|
157
159
|
} else if (handle === 'missions_mission') {
|
|
160
|
+
// WWW Missions
|
|
158
161
|
date = page._source.display_date_filter
|
|
159
162
|
? 'Launch date: ' + page._source.display_date_filter
|
|
160
163
|
: typeof page._source.publication_date_filter !== 'undefined'
|
|
161
164
|
? 'Published: ' + parseDate(page._source.publication_date_filter)
|
|
162
165
|
: 'Published: ' + parseDate(page._source.first_published_at_filter)
|
|
163
166
|
} else if (handle === 'profiles_profilepage') {
|
|
167
|
+
// WWW Profiles
|
|
164
168
|
topic = page._source[handle + '__go_site_name']
|
|
165
169
|
date = null
|
|
166
170
|
} else if (handle.startsWith('edu_resources')) {
|
|
171
|
+
// EDU Resources
|
|
167
172
|
date = null
|
|
168
173
|
primarySubject = page._source[handle + '__primary_subject'] as PrimarySubjectObject
|
|
169
174
|
if (
|
|
@@ -178,6 +183,7 @@ export default defineComponent({
|
|
|
178
183
|
}
|
|
179
184
|
time = { time: page._source.activity_time_label_filter } as EduResourcesTime
|
|
180
185
|
} else {
|
|
186
|
+
// Fallback publication date
|
|
181
187
|
date =
|
|
182
188
|
typeof page._source.publication_date_filter !== 'undefined'
|
|
183
189
|
? parseDate(page._source.publication_date_filter)
|
|
@@ -195,11 +201,11 @@ export default defineComponent({
|
|
|
195
201
|
handle === 'events_eventpage' ? page._source[handle + '__location'] : location
|
|
196
202
|
page.startDate =
|
|
197
203
|
handle === 'events_eventpage' || handle === 'edu_events_edueventpage'
|
|
198
|
-
? page._source[handle + '
|
|
204
|
+
? page._source[handle + '__start_date']
|
|
199
205
|
: null
|
|
200
206
|
page.endDate =
|
|
201
207
|
handle === 'events_eventpage' || handle === 'edu_events_edueventpage'
|
|
202
|
-
? page._source[handle + '
|
|
208
|
+
? page._source[handle + '__end_date']
|
|
203
209
|
: null
|
|
204
210
|
page.startTime =
|
|
205
211
|
handle === 'events_eventpage' || handle === 'edu_events_edueventpage'
|
package/src/interfaces.ts
CHANGED
|
@@ -109,6 +109,22 @@ export const BaseStory = {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
+
|
|
113
|
+
export const HeroTitle = {
|
|
114
|
+
args: {
|
|
115
|
+
data: {
|
|
116
|
+
...BaseStory.args.data,
|
|
117
|
+
hero: [
|
|
118
|
+
{
|
|
119
|
+
...HeroMediaData,
|
|
120
|
+
heroSummary: 'Text appears below the title',
|
|
121
|
+
blockType: 'HeroTitleBlock'
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
112
128
|
export const InlineHero = {
|
|
113
129
|
args: {
|
|
114
130
|
data: {
|