@explorer-1/vue 0.0.0

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 (371) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -0
  3. package/components.d.ts +215 -0
  4. package/index.html +18 -0
  5. package/lib/main.ts +78 -0
  6. package/package.json +54 -0
  7. package/postcss.config.js +7 -0
  8. package/public/edu/.gitkeep +0 -0
  9. package/public/edu/explorer-1/bg-stars-edu.png +0 -0
  10. package/public/edu/explorer-1/bg-stars.jpg +0 -0
  11. package/public/explorer-1/bg-stars-edu.png +0 -0
  12. package/public/explorer-1/bg-stars.jpg +0 -0
  13. package/src/App.vue +30 -0
  14. package/src/assets/fonts/README.md +12 -0
  15. package/src/assets/fonts/archivo-narrow/ArchivoNarrow-Bold.woff2 +0 -0
  16. package/src/assets/fonts/archivo-narrow/ArchivoNarrow-BoldItalic.woff2 +0 -0
  17. package/src/assets/fonts/archivo-narrow/ArchivoNarrow-SemiBold.woff2 +0 -0
  18. package/src/assets/fonts/archivo-narrow/ArchivoNarrow-SemiBoldItalic.woff2 +0 -0
  19. package/src/assets/fonts/metropolis/Metropolis-Bold.woff2 +0 -0
  20. package/src/assets/fonts/metropolis/Metropolis-BoldItalic.woff2 +0 -0
  21. package/src/assets/fonts/metropolis/Metropolis-ExtraBold.woff2 +0 -0
  22. package/src/assets/fonts/metropolis/Metropolis-Medium.woff2 +0 -0
  23. package/src/assets/fonts/metropolis/Metropolis-MediumItalic.woff2 +0 -0
  24. package/src/assets/fonts/metropolis/Metropolis-Regular.woff2 +0 -0
  25. package/src/assets/fonts/metropolis/Metropolis-RegularItalic.woff2 +0 -0
  26. package/src/assets/fonts/metropolis/Metropolis-SemiBold.woff2 +0 -0
  27. package/src/assets/fonts/metropolis/Metropolis-SemiBoldItalic.woff2 +0 -0
  28. package/src/assets/scss/styles.scss +1 -0
  29. package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.stories.js +156 -0
  30. package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.vue +156 -0
  31. package/src/components/BackToTop/BackToTop.stories.js +24 -0
  32. package/src/components/BackToTop/BackToTop.vue +76 -0
  33. package/src/components/BaseAudio/BaseAudio.stories.js +29 -0
  34. package/src/components/BaseAudio/BaseAudio.vue +359 -0
  35. package/src/components/BaseButton/BaseButton.stories.ts +65 -0
  36. package/src/components/BaseButton/BaseButton.vue +114 -0
  37. package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.stories.mdx +68 -0
  38. package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue +101 -0
  39. package/src/components/BaseHeading/BaseHeading.stories.js +75 -0
  40. package/src/components/BaseHeading/BaseHeading.vue +58 -0
  41. package/src/components/BaseImage/BaseImage.stories.ts +52 -0
  42. package/src/components/BaseImage/BaseImage.vue +120 -0
  43. package/src/components/BaseImageCaption/BaseImageCaption.stories.js +27 -0
  44. package/src/components/BaseImageCaption/BaseImageCaption.vue +51 -0
  45. package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.stories.js +73 -0
  46. package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.vue +90 -0
  47. package/src/components/BaseLightboxCloseButton/BaseLightboxCloseButton.vue +45 -0
  48. package/src/components/BaseLightboxOpenButton/BaseLightboxOpenButton.vue +46 -0
  49. package/src/components/BaseLink/BaseLink.stories.js +47 -0
  50. package/src/components/BaseLink/BaseLink.vue +227 -0
  51. package/src/components/BaseModal/BaseModal.stories.js +90 -0
  52. package/src/components/BaseModal/BaseModal.vue +54 -0
  53. package/src/components/BaseModal/BaseModalDialog.vue +59 -0
  54. package/src/components/BasePlaceholder/BasePlaceholder.stories.js +29 -0
  55. package/src/components/BasePlaceholder/BasePlaceholder.vue +30 -0
  56. package/src/components/BaseRadioGroup/BaseRadioGroup.stories.mdx +68 -0
  57. package/src/components/BaseRadioGroup/BaseRadioGroup.vue +102 -0
  58. package/src/components/BaseSwimlane/BaseSwimlane.stories.mdx +64 -0
  59. package/src/components/BaseSwimlane/BaseSwimlane.vue +204 -0
  60. package/src/components/BaseTag/BaseTag.stories.js +34 -0
  61. package/src/components/BaseTag/BaseTag.vue +36 -0
  62. package/src/components/BaseTimer/BaseTimer.stories.js +78 -0
  63. package/src/components/BaseTimer/BaseTimer.test.js +15 -0
  64. package/src/components/BaseTimer/BaseTimer.vue +270 -0
  65. package/src/components/BaseUnitToggle/BaseUnitToggle.stories.js +86 -0
  66. package/src/components/BaseUnitToggle/BaseUnitToggle.test.js +26 -0
  67. package/src/components/BaseUnitToggle/BaseUnitToggle.vue +255 -0
  68. package/src/components/BaseVideo/BaseVideo.stories.js +31 -0
  69. package/src/components/BaseVideo/BaseVideo.vue +73 -0
  70. package/src/components/BlockAnchor/BlockAnchor.vue +38 -0
  71. package/src/components/BlockAudio/BlockAudio.stories.js +29 -0
  72. package/src/components/BlockAudio/BlockAudio.vue +78 -0
  73. package/src/components/BlockCard/BlockCard.stories.js +24 -0
  74. package/src/components/BlockCard/BlockCard.vue +88 -0
  75. package/src/components/BlockCardGroup/BlockCardGroup.stories.js +71 -0
  76. package/src/components/BlockCardGroup/BlockCardGroup.vue +61 -0
  77. package/src/components/BlockCircleImageCard/BlockCircleImageCard.stories.js +55 -0
  78. package/src/components/BlockCircleImageCard/BlockCircleImageCard.vue +120 -0
  79. package/src/components/BlockCta/BlockCta.stories.js +35 -0
  80. package/src/components/BlockCta/BlockCta.vue +55 -0
  81. package/src/components/BlockHeading/BlockHeading.stories.js +22 -0
  82. package/src/components/BlockHeading/BlockHeading.vue +27 -0
  83. package/src/components/BlockIframeEmbed/BlockIframeEmbed.stories.js +40 -0
  84. package/src/components/BlockIframeEmbed/BlockIframeEmbed.vue +84 -0
  85. package/src/components/BlockImage/BlockImage.stories.js +137 -0
  86. package/src/components/BlockImage/BlockImage.vue +48 -0
  87. package/src/components/BlockImage/BlockImageFullBleed.vue +119 -0
  88. package/src/components/BlockImage/BlockImageStandard.vue +106 -0
  89. package/src/components/BlockImageCarousel/BlockImageCarousel.stories.js +108 -0
  90. package/src/components/BlockImageCarousel/BlockImageCarousel.vue +201 -0
  91. package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.stories.js +63 -0
  92. package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.vue +120 -0
  93. package/src/components/BlockImageComparison/BlockImageComparison.stories.js +46 -0
  94. package/src/components/BlockImageComparison/BlockImageComparison.vue +59 -0
  95. package/src/components/BlockImageGallery/BlockImageGallery.stories.js +55 -0
  96. package/src/components/BlockImageGallery/BlockImageGallery.vue +128 -0
  97. package/src/components/BlockInlineImage/BlockInlineImage.stories.js +68 -0
  98. package/src/components/BlockInlineImage/BlockInlineImage.vue +124 -0
  99. package/src/components/BlockKeyPoints/BlockKeyPoints.stories.js +28 -0
  100. package/src/components/BlockKeyPoints/BlockKeyPoints.vue +48 -0
  101. package/src/components/BlockLinkCard/BlockLinkCard.stories.js +102 -0
  102. package/src/components/BlockLinkCard/BlockLinkCard.vue +197 -0
  103. package/src/components/BlockLinkCarousel/BlockLinkCarousel.stories.js +217 -0
  104. package/src/components/BlockLinkCarousel/BlockLinkCarousel.vue +68 -0
  105. package/src/components/BlockLinkTile/BlockLinkTile.stories.js +72 -0
  106. package/src/components/BlockLinkTile/BlockLinkTile.vue +193 -0
  107. package/src/components/BlockListCards/BlockListCards.stories.js +69 -0
  108. package/src/components/BlockListCards/BlockListCards.vue +129 -0
  109. package/src/components/BlockQuote/BlockQuote.stories.js +84 -0
  110. package/src/components/BlockQuote/BlockQuote.vue +87 -0
  111. package/src/components/BlockRelatedLinks/BlockRelatedLinks.stories.js +60 -0
  112. package/src/components/BlockRelatedLinks/BlockRelatedLinks.vue +77 -0
  113. package/src/components/BlockRelatedLinks/RelatedLink.vue +85 -0
  114. package/src/components/BlockStreamfield/BlockStreamfield.stories.js +88 -0
  115. package/src/components/BlockStreamfield/BlockStreamfield.vue +333 -0
  116. package/src/components/BlockTable/BlockTable.stories.js +20 -0
  117. package/src/components/BlockTable/BlockTable.vue +73 -0
  118. package/src/components/BlockTeaser/BlockTeaser.stories.js +74 -0
  119. package/src/components/BlockTeaser/BlockTeaser.test.js +12 -0
  120. package/src/components/BlockTeaser/BlockTeaser.vue +174 -0
  121. package/src/components/BlockText/BlockText.stories.js +21 -0
  122. package/src/components/BlockText/BlockText.vue +44 -0
  123. package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.stories.js +19 -0
  124. package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.vue +61 -0
  125. package/src/components/BlockVideo/BlockVideo.stories.js +23 -0
  126. package/src/components/BlockVideo/BlockVideo.vue +41 -0
  127. package/src/components/BlockVideoEmbed/BlockVideoEmbed.stories.js +20 -0
  128. package/src/components/BlockVideoEmbed/BlockVideoEmbed.vue +71 -0
  129. package/src/components/CalendarButton/CalendarButton.stories.js +36 -0
  130. package/src/components/CalendarButton/CalendarButton.vue +86 -0
  131. package/src/components/DetailHeadline/DetailHeadline.stories.js +48 -0
  132. package/src/components/DetailHeadline/DetailHeadline.vue +143 -0
  133. package/src/components/DsnWidget/DsnWidget.stories.js +29 -0
  134. package/src/components/DsnWidget/DsnWidget.vue +96 -0
  135. package/src/components/EventCard/EventCard.vue +188 -0
  136. package/src/components/EventDetailHero/EventDetailHero.stories.js +53 -0
  137. package/src/components/EventDetailHero/EventDetailHero.vue +64 -0
  138. package/src/components/FormContact/FormContact.stories.js +16 -0
  139. package/src/components/FormContact/FormContact.vue +202 -0
  140. package/src/components/FormNewsletterSignup/FormNewsletterSignup.stories.js +16 -0
  141. package/src/components/FormNewsletterSignup/FormNewsletterSignup.vue +355 -0
  142. package/src/components/HeroLarge/HeroLarge.stories.js +46 -0
  143. package/src/components/HeroLarge/HeroLarge.vue +93 -0
  144. package/src/components/HeroListingIndex/HeroListingIndex.stories.js +156 -0
  145. package/src/components/HeroListingIndex/HeroListingIndex.vue +80 -0
  146. package/src/components/HeroMedia/HeroMedia.stories.js +135 -0
  147. package/src/components/HeroMedia/HeroMedia.vue +174 -0
  148. package/src/components/HeroMedium/HeroMedium.stories.js +73 -0
  149. package/src/components/HeroMedium/HeroMedium.vue +166 -0
  150. package/src/components/HomepageCarousel/HomepageCarousel.stories.js +112 -0
  151. package/src/components/HomepageCarousel/HomepageCarousel.vue +382 -0
  152. package/src/components/HomepageCarouselItem/HomepageCarouselItem.stories.js +60 -0
  153. package/src/components/HomepageCarouselItem/HomepageCarouselItem.vue +168 -0
  154. package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.stories.js +35 -0
  155. package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.vue +39 -0
  156. package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.stories.js +93 -0
  157. package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.vue +129 -0
  158. package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.stories.js +153 -0
  159. package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.vue +282 -0
  160. package/src/components/HomepageMissionsCarousel/HomepageMissionsCarouselItem.vue +143 -0
  161. package/src/components/HomepageStats/HomepageStats.stories.js +155 -0
  162. package/src/components/HomepageStats/HomepageStats.vue +362 -0
  163. package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.stories.js +90 -0
  164. package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.vue +156 -0
  165. package/src/components/HomepageTeaserBlock/HomepageTeaserBlockCardImage.vue +58 -0
  166. package/src/components/Icons/Icon360.vue +29 -0
  167. package/src/components/Icons/IconArrow.vue +26 -0
  168. package/src/components/Icons/IconArrows.vue +43 -0
  169. package/src/components/Icons/IconAudio.vue +27 -0
  170. package/src/components/Icons/IconBook.vue +21 -0
  171. package/src/components/Icons/IconBookUser.vue +21 -0
  172. package/src/components/Icons/IconBriefcase.vue +21 -0
  173. package/src/components/Icons/IconCalendar.vue +25 -0
  174. package/src/components/Icons/IconCaret.vue +26 -0
  175. package/src/components/Icons/IconCheckbox.vue +26 -0
  176. package/src/components/Icons/IconCheckboxSelected.vue +35 -0
  177. package/src/components/Icons/IconClose.vue +27 -0
  178. package/src/components/Icons/IconCloseLightbox.vue +25 -0
  179. package/src/components/Icons/IconDownload.vue +31 -0
  180. package/src/components/Icons/IconDropdown.vue +25 -0
  181. package/src/components/Icons/IconEnvelope.vue +21 -0
  182. package/src/components/Icons/IconExpand.vue +28 -0
  183. package/src/components/Icons/IconExternal.vue +25 -0
  184. package/src/components/Icons/IconFilter.vue +25 -0
  185. package/src/components/Icons/IconForwardTen.vue +38 -0
  186. package/src/components/Icons/IconGrid.vue +25 -0
  187. package/src/components/Icons/IconHand.vue +21 -0
  188. package/src/components/Icons/IconInfo.vue +26 -0
  189. package/src/components/Icons/IconLink.vue +27 -0
  190. package/src/components/Icons/IconList.vue +25 -0
  191. package/src/components/Icons/IconLocation.vue +37 -0
  192. package/src/components/Icons/IconMagnifyingGlass.vue +21 -0
  193. package/src/components/Icons/IconMedal.vue +21 -0
  194. package/src/components/Icons/IconMenu.vue +27 -0
  195. package/src/components/Icons/IconMinus.vue +26 -0
  196. package/src/components/Icons/IconMute.vue +27 -0
  197. package/src/components/Icons/IconNext.vue +25 -0
  198. package/src/components/Icons/IconPause.vue +28 -0
  199. package/src/components/Icons/IconPlay.vue +28 -0
  200. package/src/components/Icons/IconPlus.vue +25 -0
  201. package/src/components/Icons/IconPrev.vue +25 -0
  202. package/src/components/Icons/IconRewindTen.vue +42 -0
  203. package/src/components/Icons/IconSearch.vue +25 -0
  204. package/src/components/Icons/IconShare.vue +30 -0
  205. package/src/components/Icons/IconSlideshow.vue +30 -0
  206. package/src/components/Icons/IconSocialEmail.vue +26 -0
  207. package/src/components/Icons/IconSocialFacebook.vue +26 -0
  208. package/src/components/Icons/IconSocialGoogleClassroom.vue +26 -0
  209. package/src/components/Icons/IconSocialInstagram.vue +35 -0
  210. package/src/components/Icons/IconSocialPinterest.vue +26 -0
  211. package/src/components/Icons/IconSocialReddit.vue +25 -0
  212. package/src/components/Icons/IconSocialTwitter.vue +25 -0
  213. package/src/components/Icons/IconSocialYoutube.vue +35 -0
  214. package/src/components/Icons/IconStop.vue +27 -0
  215. package/src/components/Icons/IconTime.vue +25 -0
  216. package/src/components/Icons/IconUniversity.vue +21 -0
  217. package/src/components/Icons/IconUser.vue +26 -0
  218. package/src/components/Icons/IconVolume.vue +27 -0
  219. package/src/components/Icons/Icons.stories.ts +440 -0
  220. package/src/components/ImageDetailContextImage/ImageDetailContextImage.vue +125 -0
  221. package/src/components/LayoutHelper/LayoutHelper.vue +38 -0
  222. package/src/components/LoadingTransition/LoadingTransition.vue +48 -0
  223. package/src/components/LogoCaltech/LogoCaltech.stories.js +39 -0
  224. package/src/components/LogoCaltech/LogoCaltech.vue +29 -0
  225. package/src/components/LogoTribrand/LogoTribrand.stories.js +76 -0
  226. package/src/components/LogoTribrand/LogoTribrand.vue +93 -0
  227. package/src/components/MissionDetailAbout/MissionDetailAbout.stories.js +70 -0
  228. package/src/components/MissionDetailAbout/MissionDetailAbout.vue +204 -0
  229. package/src/components/MissionDetailHero/MissionDetailHero.stories.js +303 -0
  230. package/src/components/MissionDetailHero/MissionDetailHero.vue +292 -0
  231. package/src/components/MissionDetailHighlights/MissionDetailHighlights.stories.js +278 -0
  232. package/src/components/MissionDetailHighlights/MissionDetailHighlights.vue +332 -0
  233. package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarousel.vue +160 -0
  234. package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarouselItem.vue +123 -0
  235. package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.stories.js +43 -0
  236. package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.vue +97 -0
  237. package/src/components/MissionDetailStats/DistanceStats.test.js +133 -0
  238. package/src/components/MissionDetailStats/DistanceStats.vue +250 -0
  239. package/src/components/MissionDetailStats/MissionDetailStats.stories.js +95 -0
  240. package/src/components/MissionDetailStats/MissionDetailStats.test.js +23 -0
  241. package/src/components/MissionDetailStats/MissionDetailStats.vue +187 -0
  242. package/src/components/MissionDetailStats/MissionDetailStatsMicro.vue +52 -0
  243. package/src/components/MissionDetailStats/MissionDetailStatsMini.vue +109 -0
  244. package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.stories.js +55 -0
  245. package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.vue +95 -0
  246. package/src/components/MixinAnimationCaret/MixinAnimationCaret.stories.ts +24 -0
  247. package/src/components/MixinAnimationCaret/MixinAnimationCaret.vue +81 -0
  248. package/src/components/MixinCarousel/MixinCarousel.docs.mdx +33 -0
  249. package/src/components/MixinCarousel/MixinCarousel.stories.js +53 -0
  250. package/src/components/MixinCarousel/MixinCarousel.vue +236 -0
  251. package/src/components/MixinDropdownToggle/MixinDropdownToggle.vue +53 -0
  252. package/src/components/MixinFancybox/MixinFancybox.vue +405 -0
  253. package/src/components/MixinFancybox/MixinFancyboxOpenButton.vue +35 -0
  254. package/src/components/MixinVideoBg/MixinVideoBg.stories.js +23 -0
  255. package/src/components/MixinVideoBg/MixinVideoBg.vue +39 -0
  256. package/src/components/NavDesktop/NavDesktop.stories.js +254 -0
  257. package/src/components/NavDesktop/NavDesktop.vue +355 -0
  258. package/src/components/NavDesktop/NavDesktopDropdown.vue +201 -0
  259. package/src/components/NavDesktop/NavDesktopDropdownContent.vue +87 -0
  260. package/src/components/NavDesktop/NavDesktopDropdownMore.vue +112 -0
  261. package/src/components/NavDesktop/NavDesktopTopHat.vue +56 -0
  262. package/src/components/NavHeading/NavHeading.stories.js +23 -0
  263. package/src/components/NavHeading/NavHeading.vue +40 -0
  264. package/src/components/NavHighlight/NavHighlight.stories.js +42 -0
  265. package/src/components/NavHighlight/NavHighlight.vue +67 -0
  266. package/src/components/NavLinkList/NavLinkList.stories.js +46 -0
  267. package/src/components/NavLinkList/NavLinkList.vue +66 -0
  268. package/src/components/NavLogoLinks/NavLogoLinks.stories.js +22 -0
  269. package/src/components/NavLogoLinks/NavLogoLinks.vue +57 -0
  270. package/src/components/NavMobile/NavMobile.stories.js +231 -0
  271. package/src/components/NavMobile/NavMobile.vue +280 -0
  272. package/src/components/NavMobile/NavMobileDropdown.vue +175 -0
  273. package/src/components/NavMobile/NavMobileLink.vue +69 -0
  274. package/src/components/NavMobile/NavMobileSecondaryDropdown.vue +124 -0
  275. package/src/components/NavSearchForm/NavSearchForm.stories.js +13 -0
  276. package/src/components/NavSearchForm/NavSearchForm.vue +102 -0
  277. package/src/components/NavSecondary/NavSecondary.stories.js +24 -0
  278. package/src/components/NavSecondary/NavSecondary.vue +191 -0
  279. package/src/components/NavSecondary/NavSecondaryDropdown.vue +181 -0
  280. package/src/components/NavSecondary/NavSecondaryDropdownContent.vue +140 -0
  281. package/src/components/NavSecondary/NavSecondaryLink.vue +62 -0
  282. package/src/components/NavSocial/NavSocial.stories.js +20 -0
  283. package/src/components/NavSocial/NavSocial.vue +97 -0
  284. package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.stories.js +60 -0
  285. package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.test.js +30 -0
  286. package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.vue +73 -0
  287. package/src/components/ParallaxContainer/ParallaxContainer.stories.js +47 -0
  288. package/src/components/ParallaxContainer/ParallaxContainer.vue +76 -0
  289. package/src/components/ParallaxElement/ParallaxElement.vue +25 -0
  290. package/src/components/PastEventsCarousel/PastEventsCarousel.vue +86 -0
  291. package/src/components/PodcastEpisodeCard/PodcastEpisodeCard.vue +251 -0
  292. package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.stories.js +235 -0
  293. package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.vue +171 -0
  294. package/src/components/ProfileDetailSectionGroup/ProfileDetailSectionGroup.vue +84 -0
  295. package/src/components/RoboticsDetailStats/RoboticsDetailStats.stories.js +97 -0
  296. package/src/components/RoboticsDetailStats/RoboticsDetailStats.test.js +21 -0
  297. package/src/components/RoboticsDetailStats/RoboticsDetailStats.vue +217 -0
  298. package/src/components/RoboticsDetailStats/RoboticsDetailStatsMini.vue +182 -0
  299. package/src/components/SearchFilterGroup/SearchFilterGroup.stories.js +59 -0
  300. package/src/components/SearchFilterGroup/SearchFilterGroup.vue +221 -0
  301. package/src/components/SearchInput/SearchInput.stories.js +35 -0
  302. package/src/components/SearchInput/SearchInput.vue +93 -0
  303. package/src/components/SearchPagination/SearchPagination.stories.js +55 -0
  304. package/src/components/SearchPagination/SearchPagination.vue +173 -0
  305. package/src/components/SearchResultCard/SearchResultCard.stories.js +57 -0
  306. package/src/components/SearchResultCard/SearchResultCard.vue +282 -0
  307. package/src/components/SearchResultGridItem/SearchResultGridItem.stories.js +70 -0
  308. package/src/components/SearchResultGridItem/SearchResultGridItem.vue +140 -0
  309. package/src/components/SearchResultsList/SearchResultsList.vue +183 -0
  310. package/src/components/SearchSelectMenu/SearchSelectMenu.stories.js +25 -0
  311. package/src/components/SearchSelectMenu/SearchSelectMenu.vue +86 -0
  312. package/src/components/ShareButtons/ShareButtons.stories.js +16 -0
  313. package/src/components/ShareButtons/ShareButtons.vue +132 -0
  314. package/src/components/ShareButtonsEdu/ShareButtonsEdu.stories.js +14 -0
  315. package/src/components/ShareButtonsEdu/ShareButtonsEdu.vue +215 -0
  316. package/src/components/SkipLink/SkipLink.stories.js +9 -0
  317. package/src/components/SkipLink/SkipLink.vue +53 -0
  318. package/src/components/SwimlaneCTA/SwimlaneCTA.stories.mdx +77 -0
  319. package/src/components/SwimlaneCTA/SwimlaneCTA.vue +281 -0
  320. package/src/components/TheFooter/TheFooter.stories.js +602 -0
  321. package/src/components/TheFooter/TheFooter.vue +228 -0
  322. package/src/components/TheFooter/TheFooterSignUp.vue +61 -0
  323. package/src/components/ThumbnailCarousel/ThumbnailCarousel.stories.js +106 -0
  324. package/src/components/ThumbnailCarousel/ThumbnailCarousel.vue +76 -0
  325. package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.stories.js +93 -0
  326. package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.vue +68 -0
  327. package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.stories.js +38 -0
  328. package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.vue +104 -0
  329. package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.stories.js +84 -0
  330. package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.vue +112 -0
  331. package/src/components/TopicDetailMore/TopicDetailMore.stories.js +221 -0
  332. package/src/components/TopicDetailMore/TopicDetailMore.vue +124 -0
  333. package/src/components/TopicDetailMore/TopicDetailMoreVisibility.vue +51 -0
  334. package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.stories.js +116 -0
  335. package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.vue +130 -0
  336. package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.stories.js +34 -0
  337. package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.vue +98 -0
  338. package/src/components/YearTicker/YearTicker.stories.js +37 -0
  339. package/src/components/YearTicker/YearTicker.vue +132 -0
  340. package/src/docs/foundation/DynamicTokens.vue +106 -0
  341. package/src/docs/foundation/FontVariants.vue +80 -0
  342. package/src/docs/foundation/color.docs.mdx +112 -0
  343. package/src/docs/foundation/grid.docs.mdx +189 -0
  344. package/src/docs/foundation/grid.stories.js +263 -0
  345. package/src/docs/foundation/grid_layouthelpers.docs.mdx +78 -0
  346. package/src/docs/foundation/grid_layouthelpers.stories.js +53 -0
  347. package/src/docs/foundation/themes.docs.mdx +71 -0
  348. package/src/docs/foundation/themes.stories.js +63 -0
  349. package/src/docs/foundation/typography.docs.mdx +50 -0
  350. package/src/docs/foundation/typography.stories.js +119 -0
  351. package/src/interfaces.ts +129 -0
  352. package/src/main.ts +34 -0
  353. package/src/store/header.ts +40 -0
  354. package/src/store/theme.ts +27 -0
  355. package/src/templates/PageContent/PageContent.stories.js +92 -0
  356. package/src/templates/PageContent/PageContent.vue +140 -0
  357. package/src/templates/PageEventDetail/PageEventDetail.stories.js +104 -0
  358. package/src/templates/PageEventDetail/PageEventDetail.vue +358 -0
  359. package/src/templates/PageNewsDetail/PageNewsDetail.stories.js +158 -0
  360. package/src/templates/PageNewsDetail/PageNewsDetail.vue +242 -0
  361. package/src/templates/edu/PageEduNewsDetail.stories.js +64 -0
  362. package/src/templates/edu/PageEduNewsDetail.vue +155 -0
  363. package/src/templates/www/HomePage/HomePage.vue +30 -0
  364. package/src/utils/dayjs.js +32 -0
  365. package/src/utils/filters.js +33 -0
  366. package/src/utils/mixins.ts +353 -0
  367. package/src/vite-env.d.ts +1 -0
  368. package/tailwind.config.js +24 -0
  369. package/tsconfig.json +29 -0
  370. package/tsconfig.node.json +11 -0
  371. package/vite.config.ts +55 -0
@@ -0,0 +1,332 @@
1
+ <template>
2
+ <div
3
+ class="MissionDetailHighlights lg:pt-0 lg:overflow-visible relative w-full pt-12 mb-10 overflow-hidden text-white bg-black"
4
+ :class="graphic && animation ? 'lg:mb-36 min-h-mission-highlights' : 'pb-12 lg:mb-18'"
5
+ >
6
+ <div class="max-w-screen-3xl relative mx-auto overflow-hidden">
7
+ <div
8
+ class="mission-highlights-content lg:BaseGrid lg:px-0 container relative z-20 px-4 mx-auto"
9
+ >
10
+ <div class="xl:col-start-6 lg:py-36 lg:col-start-7 xl:col-end-11 lg:col-end-12 relative">
11
+ <div class="relative z-10 w-full">
12
+ <BaseHeading
13
+ level="h2"
14
+ class="mb-8"
15
+ >
16
+ {{ heading || 'Mission Highlights' }}
17
+ </BaseHeading>
18
+ <div class="slides relative overflow-hidden">
19
+ <MissionDetailHighlightsCarousel :items="highlights" />
20
+ </div>
21
+ </div>
22
+ </div>
23
+ <!-- screen to keep carousel area legible when there is a background image -->
24
+ <div
25
+ v-if="!animation && graphic"
26
+ class="lg:flex lg:col-start-5 lg:col-end-12 absolute inset-0 flex hidden"
27
+ >
28
+ <div
29
+ class="bg-gradient-to-t lg:bg-gradient-to-r from-transparent to-black height-full w-1/2"
30
+ ></div>
31
+ </div>
32
+ <!-- /screen -->
33
+ </div>
34
+ <!-- non-animated image -->
35
+ <div
36
+ v-if="!animation && graphic && graphic.src"
37
+ class="lg:absolute inset-0 z-10 w-full"
38
+ >
39
+ <div
40
+ class="lg:block bg-gradient-to-t from-transparent to-black sm:h-40 absolute inset-x-0 top-0 z-20 hidden h-20"
41
+ ></div>
42
+ <div
43
+ class="lg:block bg-gradient-to-b from-transparent to-black sm:h-40 absolute inset-x-0 bottom-0 z-20 hidden h-20"
44
+ ></div>
45
+ <div
46
+ class="lg:absolute lg:mt-0 lg:flex lg:-ml-24 xl:-ml-20 3xl:ml-0 lg:w-3xl lg:inset-y-0 lg:left-0 relative z-10 items-center w-full -mt-24"
47
+ >
48
+ <div class="lg:max-w-none relative max-w-2xl mx-auto">
49
+ <div
50
+ class="bg-gradient-to-t from-transparent to-black sm:h-10 absolute inset-x-0 top-0 h-40"
51
+ ></div>
52
+ <div
53
+ class="bg-gradient-to-b from-transparent to-black sm:h-10 absolute inset-x-0 bottom-0 h-40"
54
+ ></div>
55
+ <div
56
+ class="bg-gradient-to-l from-transparent to-black lg:w-64 absolute inset-y-0 left-0 w-20"
57
+ ></div>
58
+ <div
59
+ class="bg-gradient-to-r from-transparent to-black lg:w-64 absolute inset-y-0 right-0 w-20"
60
+ ></div>
61
+ <picture class="block">
62
+ <source
63
+ :srcset="graphic.webp.url"
64
+ type="image/webp"
65
+ />
66
+ <img
67
+ class="object-contain"
68
+ :src="graphic.src.url"
69
+ :srcset="graphic.srcSet"
70
+ :width="graphic.src.width"
71
+ :height="graphic.src.height"
72
+ :alt="graphic.alt"
73
+ />
74
+ </picture>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ <!-- / non-animated image -->
79
+ </div>
80
+
81
+ <div
82
+ v-if="animation"
83
+ v-observe-visibility="{
84
+ callback: visibilityChanged,
85
+ throttle: 300,
86
+ once: false
87
+ }"
88
+ class="lg:absolute relative inset-0"
89
+ >
90
+ <div class="mission-highlights-animation-container pt-14 relative max-w-screen-xl mx-auto">
91
+ <div
92
+ class="mission-highlights-spherical-body -translate-x-3/7 xl:-translate-x-1/2 lg:w-3xl lg:max-w-3xl relative inset-0 w-full max-w-xl transform"
93
+ >
94
+ <div
95
+ v-if="graphic && graphic.src"
96
+ class="lg:absolute relative inset-x-0 top-0 z-10"
97
+ >
98
+ <picture>
99
+ <source
100
+ :srcset="graphic.webp.url"
101
+ type="image/webp"
102
+ />
103
+ <img
104
+ ref="MissionDetailHighlightsImage"
105
+ class="lg:absolute relative w-full -mt-3"
106
+ :src="graphic.src.url"
107
+ :srcset="graphic.srcSet"
108
+ :width="graphic.src.width"
109
+ :height="graphic.src.height"
110
+ :alt="graphic.alt"
111
+ />
112
+ </picture>
113
+ </div>
114
+ <div
115
+ class="mission-highlights-lines transition-opacity duration-300 ease-linear"
116
+ :class="animationClasses"
117
+ >
118
+ <div
119
+ class="mission-highlights-path text-jpl-red-light absolute inset-x-0 top-0 left-0 z-20"
120
+ >
121
+ <svg
122
+ class="w-auto h-auto transition-opacity duration-200"
123
+ :class="[animationInView ? 'opacity-100' : 'opacity-0']"
124
+ viewBox="0 0 771 500"
125
+ aria-hidden="true"
126
+ >
127
+ <g
128
+ fill="none"
129
+ fill-rule="evenodd"
130
+ >
131
+ <path
132
+ ref="missionHighlightsPath"
133
+ stroke="currentColor"
134
+ stroke-width="2"
135
+ stroke-dasharray="6,10"
136
+ d="M386,1C598.25,1,770,177.27,770,395.11"
137
+ />
138
+ </g>
139
+ </svg>
140
+ </div>
141
+ <div
142
+ ref="missionHighlightsMovingDot"
143
+ class="mission-highlights-dot absolute top-0 z-30"
144
+ >
145
+ <div
146
+ class="border-jpl-red-light sm:w-26 sm:h-26 absolute top-0 left-0 flex items-center justify-center w-12 h-12 transform -translate-x-1/2 -translate-y-1/2 bg-transparent border-2 rounded-full"
147
+ >
148
+ <div class="bg-jpl-red-light w-3 h-3 rounded-full"></div>
149
+ </div>
150
+ <div
151
+ v-if="missionTitle"
152
+ ref="missionHighlightsTitle"
153
+ class="sm:mt-16 relative mt-10 text-white transform -translate-x-1/2 opacity-0"
154
+ >
155
+ {{ missionTitle }}
156
+ </div>
157
+ </div>
158
+ </div>
159
+ </div>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ </template>
164
+ <script lang="ts">
165
+ import { defineComponent } from 'vue'
166
+ import type { PropType } from 'vue'
167
+ import _throttle from 'lodash/throttle'
168
+ import type { DebouncedFunc } from 'lodash'
169
+ import type { Slide } from './MissionDetailHighlightsCarouselItem.vue'
170
+ // @ts-ignore
171
+ import anime from 'animejs'
172
+ import { ObserveVisibility } from 'vue-observe-visibility'
173
+ import MissionDetailHighlightsCarousel from './MissionDetailHighlightsCarousel.vue'
174
+ import BaseHeading from './../BaseHeading/BaseHeading.vue'
175
+
176
+ export default defineComponent({
177
+ name: 'MissionDetailHighlights',
178
+ components: {
179
+ BaseHeading,
180
+ MissionDetailHighlightsCarousel
181
+ },
182
+ directives: {
183
+ ObserveVisibility
184
+ },
185
+ props: {
186
+ missionTitle: {
187
+ type: String,
188
+ required: true
189
+ },
190
+ animation: {
191
+ type: Boolean,
192
+ required: false,
193
+ default: false
194
+ },
195
+ graphic: {
196
+ type: Object,
197
+ required: false
198
+ },
199
+ heading: {
200
+ type: String,
201
+ required: false
202
+ },
203
+ highlights: {
204
+ type: Array as PropType<Slide[]>,
205
+ required: false
206
+ }
207
+ },
208
+ data(): {
209
+ isLoaded: boolean
210
+ animationInView: boolean
211
+ resizeHandler: DebouncedFunc<() => void> | null
212
+ } {
213
+ return {
214
+ isLoaded: false,
215
+ animationInView: false,
216
+ resizeHandler: null
217
+ }
218
+ },
219
+ computed: {
220
+ animationClasses(): string {
221
+ let classes = ''
222
+ if (this.animationInView && this.isLoaded) {
223
+ classes = classes + ' opacity-100'
224
+ } else {
225
+ classes = classes + ' opacity-0'
226
+ }
227
+ if (!this.graphic) {
228
+ classes = classes + ' relative -filler'
229
+ } else {
230
+ classes = classes + ' absolute inset-0'
231
+ }
232
+ return classes
233
+ }
234
+ },
235
+ watch: {
236
+ isLoaded() {
237
+ if (this.animation && this.animationInView) {
238
+ this.animate()
239
+ }
240
+ }
241
+ },
242
+ mounted() {
243
+ this.init()
244
+ },
245
+ methods: {
246
+ visibilityChanged(isVisible: boolean) {
247
+ this.animationInView = isVisible
248
+ if (this.animationInView && this.isLoaded && this.animation) {
249
+ this.resizeHandler = _throttle(this.onResize, 70)
250
+ window.addEventListener('resize', this.resizeHandler, false)
251
+ this.animate()
252
+ } else if (this.resizeHandler) {
253
+ window.removeEventListener('resize', this.resizeHandler)
254
+ }
255
+ },
256
+ animate() {
257
+ this.drawLine()
258
+ this.lineFollower()
259
+ },
260
+ drawLine() {
261
+ anime({
262
+ targets: this.$refs.missionHighlightsPath,
263
+ strokeDashoffset: [anime.setDashoffset, 0],
264
+ easing: 'easeInOutSine',
265
+ duration: 2000,
266
+ delay(_: HTMLElement, i: number) {
267
+ return i * 250
268
+ },
269
+ direction: 'alternate',
270
+ loop: false
271
+ })
272
+ },
273
+ lineFollower() {
274
+ const path = anime.path(this.$refs.missionHighlightsPath as SVGElement)
275
+ const tl = anime.timeline()
276
+ tl.add({
277
+ targets: this.$refs.missionHighlightsMovingDot,
278
+ translateX: path('x'),
279
+ translateY: path('y'),
280
+ easing: 'easeInOutSine',
281
+ duration: 2000,
282
+ loop: false
283
+ })
284
+ tl.add({
285
+ targets: this.$refs.missionHighlightsTitle,
286
+ easing: 'easeInOutSine',
287
+ duration: 250,
288
+ opacity: ['0', '1'],
289
+ loop: false
290
+ })
291
+ },
292
+ onResize() {
293
+ if (this.animationInView) {
294
+ this.animate()
295
+ }
296
+ },
297
+ init() {
298
+ if (this.animation && this.$refs.MissionDetailHighlightsImage) {
299
+ const img = this.$refs.MissionDetailHighlightsImage as HTMLImageElement
300
+ if (!img) {
301
+ this.isLoaded = true
302
+ }
303
+ if (img.complete) {
304
+ this.isLoaded = true
305
+ } else {
306
+ const onLoad = () => {
307
+ this.isLoaded = true
308
+ img.removeEventListener('load', onLoad)
309
+ }
310
+ img.addEventListener('load', onLoad, false)
311
+ }
312
+ } else {
313
+ this.isLoaded = true
314
+ }
315
+ }
316
+ }
317
+ })
318
+ </script>
319
+ <style lang="scss">
320
+ .MissionDetailHighlights {
321
+ &.min-h-mission-highlights {
322
+ min-height: 38rem;
323
+ }
324
+
325
+ .mission-highlights-lines.-filler {
326
+ padding-top: 60%;
327
+ @screen lg {
328
+ @apply pt-0;
329
+ }
330
+ }
331
+ }
332
+ </style>
@@ -0,0 +1,160 @@
1
+ <template>
2
+ <div class="MissionHighlightsCarousel ThemeVariantDark w-full overflow-hidden">
3
+ <div
4
+ ref="MissionHighlightsCarousel"
5
+ class="swiper"
6
+ >
7
+ <div class="swiper-wrapper">
8
+ <MissionDetailHighlightsCarouselItem
9
+ v-for="(item, index) in items"
10
+ :key="index"
11
+ :item="item"
12
+ class="swiper-slide"
13
+ />
14
+ </div>
15
+
16
+ <div
17
+ class="border-jpl-red-light lg:mt-12 flex justify-between w-full mt-5 border-t"
18
+ :class="{ hidden: items.length === 1 }"
19
+ >
20
+ <div class="swiper-dots -mb-2 -ml-2">
21
+ <button
22
+ v-for="(_item, index) in items"
23
+ :key="index"
24
+ class="group inline-block px-2 pt-3 cursor-pointer"
25
+ :aria-label="'Go to slide ' + (index + 1)"
26
+ @click="slideTo(index + 1)"
27
+ >
28
+ <span
29
+ class="can-hover:group-hover:bg-jpl-red-light can-hover:group-hover:opacity-100 inline-block w-3 h-3 rounded-full"
30
+ :class="currentIndex === index ? 'bg-jpl-red-light' : 'bg-white opacity-25'"
31
+ ></span>
32
+ </button>
33
+ </div>
34
+
35
+ <div class="swiper-nav">
36
+ <div class="flex justify-end w-full">
37
+ <div class="flex">
38
+ <BaseButton
39
+ class="swiper-prev xl:text-base text-sm border-collapse"
40
+ aria-label="Previous slide"
41
+ >
42
+ <template #icon>
43
+ <IconPrev />
44
+ </template>
45
+ </BaseButton>
46
+ <BaseButton
47
+ class="swiper-next xl:text-base text-sm border-collapse"
48
+ aria-label="Next slide"
49
+ >
50
+ <template #icon>
51
+ <IconNext />
52
+ </template>
53
+ </BaseButton>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </template>
61
+ <script lang="ts">
62
+ import { defineComponent } from 'vue'
63
+ import type { PropType } from 'vue'
64
+ import type { Slide } from './MissionDetailHighlightsCarouselItem.vue'
65
+ import Swiper from 'swiper'
66
+ import { A11y, Navigation } from 'swiper/modules'
67
+ import type { SwiperOptions } from 'swiper/types'
68
+ import MissionDetailHighlightsCarouselItem from './MissionDetailHighlightsCarouselItem.vue'
69
+ import IconPrev from './../Icons/IconPrev.vue'
70
+ import IconNext from './../Icons/IconNext.vue'
71
+ import BaseButton from './../BaseButton/BaseButton.vue'
72
+
73
+ Swiper.use([Navigation, A11y])
74
+
75
+ export default defineComponent({
76
+ name: 'MissionDetailHighlightsCarousel',
77
+ components: {
78
+ BaseButton,
79
+ IconPrev,
80
+ IconNext,
81
+ MissionDetailHighlightsCarouselItem
82
+ },
83
+ props: {
84
+ items: {
85
+ type: Array as PropType<Slide[]>,
86
+ required: true,
87
+ default: () => []
88
+ }
89
+ },
90
+ data(): {
91
+ currentIndex: number
92
+ slider: Swiper | null
93
+ currentCaption: string
94
+ sliderOptions: SwiperOptions
95
+ } {
96
+ return {
97
+ currentIndex: 0,
98
+ currentCaption: '',
99
+ slider: null,
100
+ sliderOptions: {
101
+ slidesPerView: 1,
102
+ speed: 500,
103
+ threshold: 20, // swipe threshold in px
104
+ loop: true,
105
+ spaceBetween: 20,
106
+ watchSlidesProgress: true,
107
+ navigation: {
108
+ nextEl: '.swiper-next',
109
+ prevEl: '.swiper-prev'
110
+ },
111
+ on: {
112
+ slideChange: (swiper: Swiper) => {
113
+ ;(this as any).updateIndex(swiper.realIndex)
114
+ }
115
+ }
116
+ }
117
+ }
118
+ },
119
+ mounted() {
120
+ this.init()
121
+ },
122
+ methods: {
123
+ init() {
124
+ if (this.items.length > 1) {
125
+ this.slider = new Swiper(
126
+ this.$refs.MissionHighlightsCarousel as HTMLElement,
127
+ this.sliderOptions
128
+ )
129
+ this.currentIndex = this.slider.realIndex
130
+ }
131
+ },
132
+ updateIndex(val: number) {
133
+ this.currentIndex = val
134
+ },
135
+ slideTo(val: number) {
136
+ if (this.slider) {
137
+ this.slider.slideTo(val)
138
+ }
139
+ }
140
+ }
141
+ })
142
+ </script>
143
+ <style lang="scss">
144
+ @import 'swiper/swiper-bundle.css';
145
+
146
+ .MissionHighlightsCarousel {
147
+ .swiper {
148
+ .swiper-prev {
149
+ @apply mr-px;
150
+ }
151
+
152
+ .swiper-prev,
153
+ .swiper-next {
154
+ &.swiper-button-disabled {
155
+ @apply opacity-75 cursor-default bg-none;
156
+ }
157
+ }
158
+ }
159
+ }
160
+ </style>
@@ -0,0 +1,123 @@
1
+ <template>
2
+ <div v-if="item">
3
+ <p
4
+ v-if="item.date"
5
+ class="font-secondary text-jpl-red-light mb-4 font-semibold tracking-wider uppercase"
6
+ >
7
+ {{
8
+ // @ts-ignore
9
+ $filters.displayDate(item.date)
10
+ }}
11
+ </p>
12
+ <p
13
+ v-if="item.dateFreeform"
14
+ class="font-secondary text-jpl-red-light mb-4 font-semibold tracking-wider uppercase"
15
+ >
16
+ {{ item.dateFreeform }}
17
+ </p>
18
+ <BaseHeading
19
+ v-if="theHeading"
20
+ level="h3"
21
+ size="h6"
22
+ class="mb-6"
23
+ >
24
+ {{ theHeading }}
25
+ </BaseHeading>
26
+ <div
27
+ v-if="theSummary || item.highlightLink"
28
+ class="text-body-normal xl:pr-4"
29
+ >
30
+ <span v-if="theSummary">{{ theSummary }}</span>
31
+ <span
32
+ v-if="item.highlightLink"
33
+ class="inline-block"
34
+ >
35
+ <BaseLink
36
+ variant="default"
37
+ external-target-blank
38
+ class="slide-link inline-block font-medium"
39
+ :aria-label="theAriaLabel"
40
+ :href="item.highlightLink.externalLink ? item.highlightLink.externalLink : undefined"
41
+ :to="item.highlightLink.page ? item.highlightLink.page.url : undefined"
42
+ >
43
+ <span class="flex items-center">
44
+ <span
45
+ class="ml-1"
46
+ :class="{ 'mr-1': item.highlightLink.externalLink }"
47
+ >Learn more</span
48
+ >
49
+ <IconExternal v-if="item.highlightLink.externalLink" />
50
+ </span>
51
+ </BaseLink>
52
+ </span>
53
+ </div>
54
+ </div>
55
+ </template>
56
+ <script lang="ts">
57
+ import { defineComponent } from 'vue'
58
+ import type { PropType } from 'vue'
59
+ import BaseHeading from './../BaseHeading/BaseHeading.vue'
60
+ import BaseLink from './../BaseLink/BaseLink.vue'
61
+ import IconExternal from './../Icons/IconExternal.vue'
62
+
63
+ export interface Slide {
64
+ date: string
65
+ heading: string
66
+ dateFreeform: string
67
+ highlightLink: {
68
+ externalLink?: string
69
+ page: {
70
+ title: string
71
+ url: string
72
+ summary: string
73
+ }
74
+ }
75
+ summary: string
76
+ }
77
+
78
+ export default defineComponent({
79
+ name: 'MissionDetailHighlightsCarouselItem',
80
+ components: {
81
+ BaseHeading,
82
+ BaseLink,
83
+ IconExternal
84
+ },
85
+ props: {
86
+ item: {
87
+ type: Object as PropType<Slide>,
88
+ required: true,
89
+ default: () => ({})
90
+ }
91
+ },
92
+ computed: {
93
+ theHeading(): string | boolean {
94
+ const o = this.item
95
+ return o.heading ?? o.highlightLink?.page?.title ?? false
96
+ },
97
+ theSummary(): string | boolean {
98
+ const o = this.item
99
+ if (o.summary) {
100
+ return o.summary
101
+ } else if (o.highlightLink && o.highlightLink.page && o.highlightLink.page.summary) {
102
+ return o.highlightLink.page.summary
103
+ }
104
+ return false
105
+ },
106
+ theAriaLabel(): string {
107
+ if (this.theHeading) {
108
+ return 'Learn more about ' + this.theHeading
109
+ }
110
+ return 'Learn more'
111
+ }
112
+ }
113
+ })
114
+ </script>
115
+ <style lang="scss" scoped>
116
+ .slide-link {
117
+ @apply invisible;
118
+
119
+ .swiper-slide-active & {
120
+ @apply visible;
121
+ }
122
+ }
123
+ </style>
@@ -0,0 +1,43 @@
1
+ import { BaseImageCaptionData } from './../BaseImageCaption/BaseImageCaption.stories'
2
+ import MissionDetailInlineImage from './MissionDetailInlineImage.vue'
3
+
4
+ export default {
5
+ title: 'WWW/MissionDetail/MissionDetailInlineImage',
6
+ component: MissionDetailInlineImage,
7
+ argTypes: {
8
+ alignTo: {
9
+ control: { type: 'select', options: ['left', 'right'] }
10
+ }
11
+ }
12
+ }
13
+
14
+ const MissionDetailInlineImageData = {
15
+ text: `<p>Global surface mass anomalies observed by the GRACE-FO satellites. GRACE-FO provides regular (at least monthly) updates of surface mass anomalies.</p>
16
+ <p>For more information and data access, please visit <a href="https://grace.jpl.nasa.gov" target="_blank">grace.jpl.nasa.gov</a>.</p>`,
17
+ alignTo: 'right',
18
+ image: {
19
+ ...BaseImageCaptionData,
20
+ src: {
21
+ height: 700,
22
+ url: 'https://picsum.photos/700/700',
23
+ width: 700
24
+ },
25
+ screenXs: {
26
+ url: 'https://picsum.photos/320/320',
27
+ width: 320
28
+ },
29
+ screenLg: {
30
+ url: 'https://picsum.photos/1024/1024',
31
+ width: 1024
32
+ },
33
+ alt: ''
34
+ }
35
+ }
36
+
37
+ export const Default = {
38
+ args: {
39
+ alignment: MissionDetailInlineImageData.alignTo,
40
+ text: MissionDetailInlineImageData.text,
41
+ image: MissionDetailInlineImageData.image
42
+ }
43
+ }