@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,35 @@
1
+ import SearchInput from './SearchInput.vue'
2
+
3
+ export default {
4
+ title: 'Components/Search/SearchInput',
5
+ component: SearchInput,
6
+ excludeStories: /.*Data$/
7
+ }
8
+
9
+ export const Default = {
10
+ args: {
11
+ searchQuery: '',
12
+ placeholder: '',
13
+ autoFocus: false,
14
+ defaultColors: true
15
+ }
16
+ }
17
+
18
+ export const WithProps = {
19
+ args: {
20
+ searchQuery: '',
21
+ placeholder: 'Placeholder text',
22
+ autoFocus: true,
23
+ defaultColors: false
24
+ }
25
+ }
26
+
27
+ export const UnderlinedInput = {
28
+ args: {
29
+ searchQuery: '',
30
+ placeholder: 'Placeholder text',
31
+ autoFocus: true,
32
+ defaultColors: false,
33
+ underlinedInput: true
34
+ }
35
+ }
@@ -0,0 +1,93 @@
1
+ <template>
2
+ <!--
3
+ A somewhat generic component that can be used for handiling search input
4
+ We do this in at least two places:
5
+ * on pages (such as the search page and listing pages)
6
+ * for site-wide search -->
7
+ <div
8
+ class="relative flex items-center"
9
+ :class="{
10
+ 'border border-gray-mid': defaultColors && !underlinedInput,
11
+ 'custom-focus': underlinedInput
12
+ }"
13
+ >
14
+ <div class="absolute inset-0 flex items-center">
15
+ <IconSearch
16
+ class="relative z-10 ml-6 text-xl"
17
+ :class="{ 'text-gray-mid': defaultColors }"
18
+ />
19
+ </div>
20
+ <div
21
+ v-if="underlinedInput"
22
+ class="underlinedInput ml-14 h-2px absolute inset-x-0 bottom-0 overflow-hidden text-lg text-transparent"
23
+ >
24
+ <span class="border-jpl-red-light absolute z-10 h-0 border-b-2 select-none">
25
+ {{ underlinedInputValue }}
26
+ </span>
27
+ <span
28
+ class="border-gray-light-mid absolute inset-x-0 z-10 h-0 border-b-2 select-none"
29
+ :class="isFocused ? 'border-opacity-100' : 'border-opacity-50'"
30
+ ></span>
31
+ </div>
32
+ <input
33
+ ref="searchQueryRef"
34
+ v-model="model"
35
+ class="pl-14 focus:ring-2 relative z-10 w-full pr-5 text-lg bg-transparent border-0"
36
+ :class="{
37
+ 'text-gray-dark': defaultColors,
38
+ 'py-1': underlinedInput,
39
+ 'py-4': !underlinedInput
40
+ }"
41
+ type="search"
42
+ aria-label="Query"
43
+ :placeholder="placeholder"
44
+ @keydown.esc="emit('esc')"
45
+ @input="emit('input', $event.target)"
46
+ @focus="isFocused = true"
47
+ @blur="isFocused = false"
48
+ />
49
+ </div>
50
+ </template>
51
+ <script setup lang="ts">
52
+ import { ref, onMounted } from 'vue'
53
+ import IconSearch from './../Icons/IconSearch.vue'
54
+
55
+ interface SearchInputProps {
56
+ underlinedInput?: boolean
57
+ underlinedInputValue?: string
58
+ placeholder?: string
59
+ autoFocus?: boolean
60
+ defaultColors?: boolean
61
+ }
62
+
63
+ // define props
64
+ const props = withDefaults(defineProps<SearchInputProps>(), {
65
+ underlinedInput: false,
66
+ underlinedInputValue: undefined,
67
+ placeholder: '',
68
+ autoFocus: false,
69
+ defaultColors: true
70
+ })
71
+
72
+ const emit = defineEmits(['input', 'esc'])
73
+
74
+ const model = defineModel()
75
+ const isFocused = ref(false)
76
+ const searchQueryRef = ref(undefined)
77
+
78
+ onMounted(() => {
79
+ if (props.autoFocus && searchQueryRef.value) {
80
+ const inputField = searchQueryRef.value as HTMLElement
81
+ inputField.focus()
82
+ isFocused.value = true
83
+ }
84
+ })
85
+ </script>
86
+ <style lang="scss" scoped>
87
+ .custom-focus {
88
+ input {
89
+ outline: none;
90
+ box-shadow: none;
91
+ }
92
+ }
93
+ </style>
@@ -0,0 +1,55 @@
1
+ import SearchPagination from './SearchPagination.vue'
2
+
3
+ export default {
4
+ title: 'Components/Search/SearchPagination',
5
+ component: SearchPagination,
6
+ excludeStories: /.*Data$/
7
+ }
8
+
9
+ export const TwoPages = {
10
+ args: {
11
+ totalPages: 2,
12
+ currentPage: 1
13
+ }
14
+ }
15
+ export const ThreePages = {
16
+ args: {
17
+ totalPages: 3,
18
+ currentPage: 2
19
+ }
20
+ }
21
+
22
+ export const FourPages = {
23
+ args: {
24
+ totalPages: 4,
25
+ currentPage: 2
26
+ }
27
+ }
28
+
29
+ export const FivePages = {
30
+ args: {
31
+ totalPages: 5,
32
+ currentPage: 4
33
+ }
34
+ }
35
+
36
+ export const FirstOfMany = {
37
+ args: {
38
+ totalPages: 10,
39
+ currentPage: 1
40
+ }
41
+ }
42
+
43
+ export const MiddleOfMany = {
44
+ args: {
45
+ totalPages: 10,
46
+ currentPage: 5
47
+ }
48
+ }
49
+
50
+ export const LastOfMany = {
51
+ args: {
52
+ totalPages: 10,
53
+ currentPage: 10
54
+ }
55
+ }
@@ -0,0 +1,173 @@
1
+ <template>
2
+ <div
3
+ v-if="totalPages > 0"
4
+ class="SearchPagination flex items-center justify-center"
5
+ >
6
+ <BaseButton
7
+ aria-label="Previous"
8
+ rel="prev"
9
+ :disabled="currentPage === 1"
10
+ @click="previousPage()"
11
+ >
12
+ <template #icon> <IconPrev /> </template
13
+ ></BaseButton>
14
+
15
+ <div class="sm:hidden px-4 pt-1">Page {{ currentPage }} of {{ totalPages }}</div>
16
+ <div class="sm:flex items-center justify-center hidden px-5 pt-1">
17
+ <div
18
+ v-for="(pageNumber, index) in generatePageList"
19
+ :key="index"
20
+ >
21
+ <button
22
+ v-if="pageNumber !== ellipsis"
23
+ class="group min-w-12 can-hover:hover:font-medium block py-3 text-lg leading-normal text-center"
24
+ :class="{ '-current': pageNumber === currentPage }"
25
+ @click="toPage(pageNumber)"
26
+ >
27
+ <span
28
+ class="inline-block px-1 pb-1"
29
+ :class="{
30
+ 'can-hover:group-hover:border-b-2 can-hover:group-hover:border-primary':
31
+ pageNumber !== ellipsis
32
+ }"
33
+ >
34
+ {{ pageNumber }}
35
+ </span>
36
+ </button>
37
+ <span
38
+ v-else
39
+ class="min-w-12 block py-3 text-lg leading-normal text-center cursor-default"
40
+ >
41
+ <span class="inline-block px-1 pb-1">
42
+ {{ pageNumber }}
43
+ </span>
44
+ </span>
45
+ </div>
46
+ </div>
47
+
48
+ <BaseButton
49
+ :disabled="currentPage === totalPages"
50
+ rel="next"
51
+ aria-label="Next"
52
+ @click="nextPage()"
53
+ >
54
+ <template #icon> <IconNext /> </template
55
+ ></BaseButton>
56
+ </div>
57
+ </template>
58
+ <script lang="ts">
59
+ // @ts-nocheck
60
+ import BaseButton from './../BaseButton/BaseButton.vue'
61
+ import IconPrev from './../Icons/IconPrev.vue'
62
+ import IconNext from './../Icons/IconNext.vue'
63
+
64
+ export default {
65
+ name: 'SearchPagination',
66
+ components: {
67
+ BaseButton,
68
+ IconPrev,
69
+ IconNext
70
+ },
71
+ props: {
72
+ totalPages: Number,
73
+ currentPage: Number
74
+ },
75
+ data() {
76
+ return {
77
+ ellipsis: '…'
78
+ }
79
+ },
80
+ computed: {
81
+ generatePageList() {
82
+ const maxLeft = 4
83
+ const maxRight = this.totalPages - maxLeft + 1
84
+ if (this.totalPages > 4) {
85
+ // we're at the begining
86
+ if (this.currentPage <= maxLeft) {
87
+ return [...this.generatePageRange(1, maxLeft), this.ellipsis, this.totalPages]
88
+ }
89
+ // we're at the begining but past the threshold to truncate
90
+ else if (this.currentPage === maxLeft) {
91
+ const end = this.currentPage + maxLeft - 1
92
+ return [...this.generatePageRange(1, end), this.ellipsis, this.totalPages]
93
+ }
94
+ // we're in the 'middle' of the number range
95
+ else if (this.currentPage > maxLeft && this.currentPage < maxRight) {
96
+ const start = this.currentPage - 1
97
+ const end = this.currentPage + 1
98
+ return [
99
+ 1,
100
+ this.ellipsis,
101
+ ...this.generatePageRange(start, end),
102
+ this.ellipsis,
103
+ this.totalPages
104
+ ]
105
+ }
106
+ // we're at the end
107
+ else if (this.currentPage >= maxRight) {
108
+ const start = this.currentPage - 2
109
+ return [1, this.ellipsis, ...this.generatePageRange(start, this.totalPages)]
110
+ }
111
+ // a fallback (this would generate a list of all pages)
112
+ else {
113
+ return [...this.generatePageRange(1, this.totalPages)]
114
+ }
115
+ } else {
116
+ // should be hitting this intentionally if < 4 total pages
117
+ return [...this.generatePageRange(1, this.totalPages)]
118
+ }
119
+ }
120
+ },
121
+ watch: {
122
+ currentPage: {
123
+ handler() {
124
+ const query = {
125
+ ...this.$route.query,
126
+ page: this.currentPage
127
+ }
128
+ // ensures history is saved with each change to filters
129
+ this.$router.push({ query })
130
+ }
131
+ }
132
+ },
133
+ methods: {
134
+ toPage(newPageNumber) {
135
+ this.$emit('update:currentPage', newPageNumber)
136
+ },
137
+ nextPage() {
138
+ const newPageNumber = this.currentPage + 1
139
+ this.$emit('update:currentPage', newPageNumber)
140
+ },
141
+ previousPage() {
142
+ const newPageNumber = this.currentPage - 1
143
+ this.$emit('update:currentPage', newPageNumber)
144
+ },
145
+ generatePageRange(from, to) {
146
+ // utility that generates an array of numbers
147
+ const pageRange = []
148
+
149
+ from = from > 0 ? from : 1
150
+
151
+ // TODO: replace with lodash once that is merged
152
+ // _.range([(start = from)], to)
153
+
154
+ for (let i = from; i <= to; i++) {
155
+ pageRange.push(i)
156
+ }
157
+
158
+ return pageRange
159
+ }
160
+ }
161
+ }
162
+ </script>
163
+ <style lang="scss">
164
+ .SearchPagination {
165
+ .-current {
166
+ @apply font-medium;
167
+
168
+ span {
169
+ @apply border-primary border-b-2;
170
+ }
171
+ }
172
+ }
173
+ </style>
@@ -0,0 +1,57 @@
1
+ import SearchResultCard from './SearchResultCard.vue'
2
+
3
+ export default {
4
+ title: 'Components/Search/SearchResultCard',
5
+ component: SearchResultCard,
6
+ argTypes: {
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
+ },
16
+ excludeStories: /.*Data$/
17
+ }
18
+
19
+ export const SearchResultCardData = {
20
+ url: '/topics/placeholder-slug-1',
21
+ type: 'news',
22
+ topic: 'Moon',
23
+ date: 'May 22, 2018',
24
+ title: 'How engineers at NASA-JPL persevered to develop a ventilator',
25
+ summary:
26
+ "On April 30, the Food and Drug Administration approved VITAL for a ventilator Emergency Use Authorization. Developed in just 37 days by NASA's Jet Propulsion Laboratory in response to the coronavirus pandemic, VITAL (short for Ventilator Intervention Technology Accessible Locally) wouldn't replace current hospital ventilators, which can treat a broader range of medical issues.",
27
+ image: {
28
+ src: {
29
+ url: 'https://picsum.photos/490/490',
30
+ width: 490,
31
+ height: 490
32
+ },
33
+ alt: 'Alt text'
34
+ },
35
+ headingLevel: 'h3',
36
+ featured: false
37
+ }
38
+
39
+ export const StandardResult = { args: SearchResultCardData }
40
+
41
+ export const FeaturedResult = {
42
+ args: { ...SearchResultCardData, featured: true }
43
+ }
44
+
45
+ export const EventResult = {
46
+ args: {
47
+ ...SearchResultCardData,
48
+ isEvents: true,
49
+ type: 'Event',
50
+ startTime: '00:00:00-08:00',
51
+ endTime: '23:59:59.999999-08:00',
52
+ startDate: '2021-11-11',
53
+ endDate: '2021-11-11',
54
+ location: 'On lab',
55
+ compact: false
56
+ }
57
+ }
@@ -0,0 +1,282 @@
1
+ <template>
2
+ <div>
3
+ <EventCard
4
+ v-if="isEvents"
5
+ :url="url"
6
+ :title="title"
7
+ :summary="summary"
8
+ :image="image"
9
+ :location="location"
10
+ :start-time="startTime"
11
+ :start-date="startDate"
12
+ :end-time="endTime"
13
+ :end-date="endDate"
14
+ :heading-level="headingLevel"
15
+ compact
16
+ />
17
+ <PodcastEpisodeCard
18
+ v-else-if="isPodcastSeason"
19
+ :url="url"
20
+ :summary="summary"
21
+ :image="image"
22
+ :heading-level="headingLevel"
23
+ :media="media"
24
+ :type="type"
25
+ :topic="topic"
26
+ :title="title"
27
+ />
28
+ <BaseLink
29
+ v-else
30
+ variant="none"
31
+ :to="url"
32
+ class="SearchResultCard"
33
+ link-class="block"
34
+ >
35
+ <div
36
+ v-if="!featured"
37
+ class="border-gray-light-mid lg:pb-10 lg:mb-10 relative grid grid-cols-9 gap-5 pb-6 mb-6 border-b"
38
+ >
39
+ <div
40
+ v-if="type || topic"
41
+ class="lg:hidden col-span-full text-subtitle"
42
+ >
43
+ <span v-if="type">
44
+ <span aria-hidden="true">{{ type }}</span>
45
+ <span class="sr-only">Category: {{ type }}.</span>
46
+ </span>
47
+ <span
48
+ v-if="type && topic"
49
+ aria-hidden="true"
50
+ class="mx-1"
51
+ >|</span
52
+ >
53
+ <span
54
+ v-if="topic"
55
+ class="text-gray-mid-dark"
56
+ >
57
+ <span aria-hidden="true">{{ topic }}</span>
58
+ <span class="sr-only">Category: {{ topic }}.</span>
59
+ </span>
60
+ </div>
61
+ <div class="sm:col-span-6 md:col-span-6 lg:col-span-7 xl:col-span-7 col-span-6">
62
+ <div
63
+ v-if="type || topic"
64
+ class="text-subtitle lg:block hidden mb-3"
65
+ >
66
+ <span v-if="type">
67
+ <span aria-hidden="true">{{ type }}</span>
68
+ <span class="sr-only">Category: {{ type }}.</span>
69
+ </span>
70
+ <span
71
+ v-if="type && topic"
72
+ aria-hidden="true"
73
+ class="mx-1"
74
+ >|</span
75
+ >
76
+ <span
77
+ v-if="topic"
78
+ class="text-gray-mid-dark"
79
+ >
80
+ <span aria-hidden="true">{{ topic }}</span>
81
+ <span class="sr-only">Category: {{ topic }}.</span>
82
+ </span>
83
+ </div>
84
+
85
+ <BaseHeading
86
+ v-if="title"
87
+ size="h5"
88
+ :level="headingLevel"
89
+ class="mb-3"
90
+ >{{ title }}</BaseHeading
91
+ >
92
+ <p
93
+ v-if="summary"
94
+ class="hidden sm:block text-gray-mid-dark text-body-sm mb-3"
95
+ >
96
+ {{ summary }}
97
+ <span class="sr-only">.</span>
98
+ </p>
99
+ <p
100
+ v-if="date"
101
+ class="text-gray-mid-dark"
102
+ >
103
+ {{ date }}
104
+ </p>
105
+ </div>
106
+ <div
107
+ v-if="image"
108
+ class="SearchResultCard-image xl:pl-14 sm:col-span-3 md:col-span-3 lg:col-span-2 xl:col-span-2 col-span-3"
109
+ >
110
+ <BaseImagePlaceholder aspect-ratio="1:1">
111
+ <BaseImage
112
+ v-if="image.src"
113
+ :src="image.src.url"
114
+ :width="image.src.width"
115
+ :height="image.src.height"
116
+ alt=""
117
+ class="sm:object-cover object-cover"
118
+ loading="lazy"
119
+ />
120
+ </BaseImagePlaceholder>
121
+ </div>
122
+ </div>
123
+ <div
124
+ v-else
125
+ class="bg-dark-blue edu:bg-stars edu:bg-primary xl:grid-cols-9 relative grid grid-cols-5 mb-10 text-white"
126
+ >
127
+ <div class="xl:col-span-7 flex items-center col-span-3 p-10">
128
+ <div class="">
129
+ <div
130
+ v-if="type || topic"
131
+ class="text-subtitle mb-3"
132
+ >
133
+ <span v-if="type">
134
+ <span aria-hidden="true">{{ type }}</span>
135
+ <span class="sr-only">Category: {{ type }}.</span>
136
+ </span>
137
+ <span
138
+ v-if="type && topic"
139
+ aria-hidden="true"
140
+ class="mx-1"
141
+ >|</span
142
+ >
143
+ <span v-if="topic">
144
+ <span aria-hidden="true">{{ topic }}</span>
145
+ <span class="sr-only">Category: {{ topic }}.</span>
146
+ </span>
147
+ </div>
148
+ <BaseHeading
149
+ v-if="title"
150
+ size="h5"
151
+ :level="headingLevel"
152
+ class="mb-4"
153
+ >
154
+ {{ title }}
155
+ </BaseHeading>
156
+ <p
157
+ v-if="summary"
158
+ class="hidden lg:block text-body-sm mb-3"
159
+ >
160
+ {{ summary }}
161
+ </p>
162
+ <p v-if="date">{{ date }}</p>
163
+ </div>
164
+ </div>
165
+ <div
166
+ v-if="image && image.src"
167
+ class="SearchResultCard-image xl:col-span-2 col-span-2"
168
+ >
169
+ <img
170
+ :src="image.src.url"
171
+ :width="image.src.width"
172
+ :height="image.src.height"
173
+ :alt="image.alt"
174
+ class="object-cover w-full h-full"
175
+ loading="lazy"
176
+ />
177
+ </div>
178
+ </div>
179
+ </BaseLink>
180
+ </div>
181
+ </template>
182
+
183
+ <script lang="ts">
184
+ import type { PropType } from 'vue'
185
+ import { defineComponent } from 'vue'
186
+ import PodcastEpisodeCard from './../PodcastEpisodeCard/PodcastEpisodeCard.vue'
187
+ import BaseLink from './../BaseLink/BaseLink.vue'
188
+ import BaseHeading from './../BaseHeading/BaseHeading.vue'
189
+ import BaseImage from './../BaseImage/BaseImage.vue'
190
+ import BaseImagePlaceholder from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
191
+ import EventCard from './../EventCard/EventCard.vue'
192
+ import type { HeadingLevel } from './../BaseHeading/BaseHeading.vue'
193
+
194
+ export default defineComponent({
195
+ name: 'SearchResultCard',
196
+ components: {
197
+ BaseLink,
198
+ BaseHeading,
199
+ BaseImage,
200
+ BaseImagePlaceholder,
201
+ EventCard,
202
+ PodcastEpisodeCard
203
+ },
204
+ props: {
205
+ url: {
206
+ type: String,
207
+ required: false,
208
+ default: '#'
209
+ },
210
+ type: {
211
+ type: String,
212
+ required: false
213
+ },
214
+ topic: {
215
+ type: String,
216
+ required: false
217
+ },
218
+ date: {
219
+ type: String,
220
+ required: false
221
+ },
222
+ title: {
223
+ type: String,
224
+ required: false
225
+ },
226
+ summary: {
227
+ type: String,
228
+ required: false
229
+ },
230
+ image: {
231
+ type: Object,
232
+ required: false
233
+ },
234
+ featured: {
235
+ type: Boolean,
236
+ required: false,
237
+ default: false
238
+ },
239
+ headingLevel: {
240
+ type: (String as PropType<HeadingLevel>) || null,
241
+ required: false,
242
+ default: 'h5'
243
+ },
244
+ isEvents: {
245
+ type: Boolean,
246
+ required: false
247
+ },
248
+ isPodcastSeason: {
249
+ type: Boolean,
250
+ required: false
251
+ },
252
+ isProfiles: {
253
+ type: Boolean,
254
+ default: false
255
+ },
256
+ media: {
257
+ type: String,
258
+ required: false
259
+ },
260
+ startTime: {
261
+ type: String,
262
+ required: false
263
+ },
264
+ startDate: {
265
+ type: String,
266
+ required: false
267
+ },
268
+ endTime: {
269
+ type: String,
270
+ required: false
271
+ },
272
+ endDate: {
273
+ type: String,
274
+ required: false
275
+ },
276
+ location: {
277
+ type: String,
278
+ required: false
279
+ }
280
+ }
281
+ })
282
+ </script>