@explorer-1/vue 0.2.56 → 0.2.58

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 (31) hide show
  1. package/components.d.ts +2 -0
  2. package/dist/explorer-1-vue.js +5340 -5200
  3. package/dist/explorer-1-vue.umd.cjs +13 -13
  4. package/dist/src/components/BaseImage/BaseImage.stories.d.ts +1 -4
  5. package/dist/src/components/BaseImage/BaseImage.vue.d.ts +1 -4
  6. package/dist/src/components/BlockAudio/BlockAudio.vue.d.ts +1 -4
  7. package/dist/src/components/BlockCardGridItem/BlockCardGridItemElement.vue.d.ts +1 -4
  8. package/dist/src/components/BlockCircleImageCard/BlockCircleImageCard.vue.d.ts +1 -4
  9. package/dist/src/components/BlockTeaser/BlockTeaser.vue.d.ts +1 -4
  10. package/dist/src/components/BlockText/BlockText.stories.d.ts +13 -0
  11. package/dist/src/components/EventDetailHero/EventDetailHero.vue.d.ts +1 -4
  12. package/dist/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.vue.d.ts +1 -4
  13. package/dist/src/components/HomepageTeaserBlock/HomepageTeaserBlockCardImage.vue.d.ts +1 -4
  14. package/dist/src/components/ImageDetailContextImage/ImageDetailContextImage.vue.d.ts +1 -4
  15. package/dist/src/components/SearchFilterGroup/SearchFilterGroup.stories.d.ts +43 -0
  16. package/dist/src/components/SearchFilterGroup/SearchFilterGroup.vue.d.ts +121 -11
  17. package/dist/src/components/SearchFilterGroupAccordionItem/SearchFilterGroupAccordionItem.vue.d.ts +44 -0
  18. package/dist/src/components/SearchInput/SearchInput.vue.d.ts +11 -0
  19. package/dist/src/interfaces.d.ts +18 -0
  20. package/dist/src/templates/edu/PageEduHome/PageEduHome.stories.d.ts +70 -0
  21. package/dist/style.css +1 -1
  22. package/package.json +1 -1
  23. package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.vue +42 -22
  24. package/src/components/SearchFilterGroup/SearchFilterGroup.stories.js +89 -0
  25. package/src/components/SearchFilterGroup/SearchFilterGroup.vue +165 -25
  26. package/src/components/SearchFilterGroupAccordionItem/SearchFilterGroupAccordionItem.vue +88 -0
  27. package/src/interfaces.ts +21 -0
  28. package/src/templates/PageAudioDetail/PageAudioDetail.vue +1 -0
  29. package/src/templates/PageImageDetail/PageImageDetail.vue +14 -37
  30. package/src/templates/www/PagePodcast/PagePodcast.vue +2 -2
  31. package/tsconfig.json +1 -1
@@ -159,7 +159,7 @@
159
159
  <BaseLink
160
160
  variant="none"
161
161
  link-class="font-primary text-jpl-red hover:text-jpl-red-light w-full py-3 text-lg"
162
- to="/missions/?mission_target={{ item.target }}"
162
+ :to="`/missions/?mission_target=${item.target}`"
163
163
  >
164
164
  {{ item.target }}
165
165
  </BaseLink>
@@ -215,9 +215,9 @@
215
215
  </LayoutHelper>
216
216
  <LayoutHelper
217
217
  v-if="
218
- (data.keepExploringMission && data.keepExploringMission.length) ||
219
- (data.keepExploringTarget && data.keepExploringTarget.length) ||
220
- (data.keepExploringInstrument && data.keepExploringInstrument.length)
218
+ data.keepExploringMission?.length ||
219
+ data.keepExploringTarget?.length ||
220
+ data.keepExploringInstrument?.length
221
221
  "
222
222
  indent="col-2"
223
223
  >
@@ -228,12 +228,7 @@
228
228
  </h2>
229
229
  <ul class="TopicTabs flex flex-row flex-wrap justify-start pb-4 mb-5 list-none">
230
230
  <li
231
- v-if="
232
- data.relatedMission &&
233
- data.relatedMission.length &&
234
- data.keepExploringMission &&
235
- data.keepExploringMission.length
236
- "
231
+ v-if="data.relatedMission?.length && data.keepExploringMission?.length"
237
232
  class="last:mr-0 sm:w-auto md:mr-16 w-full mr-10 text-center"
238
233
  >
239
234
  <button
@@ -247,12 +242,7 @@
247
242
  </button>
248
243
  </li>
249
244
  <li
250
- v-if="
251
- data.targets &&
252
- data.targets.length &&
253
- data.keepExploringTarget &&
254
- data.keepExploringTarget.length
255
- "
245
+ v-if="data.targets?.length && data.keepExploringTarget?.length"
256
246
  class="last:mr-0 sm:w-auto md:mr-16 w-full mr-10 text-center"
257
247
  >
258
248
  <button
@@ -265,12 +255,7 @@
265
255
  </button>
266
256
  </li>
267
257
  <li
268
- v-if="
269
- data.instruments &&
270
- data.instruments.length &&
271
- data.keepExploringInstrument &&
272
- data.keepExploringInstrument.length
273
- "
258
+ v-if="data.instruments?.length && data.keepExploringInstrument?.length"
274
259
  class="last:mr-0 sm:w-auto md:mr-16 w-full mr-10 text-center"
275
260
  >
276
261
  <button
@@ -285,9 +270,7 @@
285
270
  </ul>
286
271
  </LayoutHelper>
287
272
  <keep-alive>
288
- <template
289
- v-if="openTab === 1 && data.keepExploringMission && data.keepExploringMission.length"
290
- >
273
+ <template v-if="openTab === 1 && data.keepExploringMission?.length">
291
274
  <ThumbnailCarousel
292
275
  :key="openTab"
293
276
  class="lg:mb-24 mb-12"
@@ -295,9 +278,7 @@
295
278
  :slides="data.keepExploringMission"
296
279
  />
297
280
  </template>
298
- <template
299
- v-else-if="openTab === 2 && data.keepExploringTarget && data.keepExploringTarget.length"
300
- >
281
+ <template v-else-if="openTab === 2 && data.keepExploringTarget?.length">
301
282
  <ThumbnailCarousel
302
283
  :key="openTab"
303
284
  class="lg:mb-24 mb-12"
@@ -305,11 +286,7 @@
305
286
  :slides="data.keepExploringTarget"
306
287
  />
307
288
  </template>
308
- <template
309
- v-else-if="
310
- openTab === 3 && data.keepExploringInstrument && data.keepExploringInstrument.length
311
- "
312
- >
289
+ <template v-else-if="openTab === 3 && data.keepExploringInstrument?.length">
313
290
  <ThumbnailCarousel
314
291
  :key="openTab"
315
292
  class="lg:mb-24 mb-12"
@@ -319,7 +296,7 @@
319
296
  </template>
320
297
  </keep-alive>
321
298
  <div
322
- v-if="data.relatedTopics && data.relatedTopics.length"
299
+ v-if="data.relatedTopics?.length"
323
300
  class="bg-gray-light lg:py-24 py-12"
324
301
  >
325
302
  <BlockLinkCarousel
@@ -386,11 +363,11 @@ export default defineComponent({
386
363
  methods: {
387
364
  initExploreCarousels() {
388
365
  if (this.data) {
389
- if (this.data.keepExploringMission && this.data.keepExploringMission.length) {
366
+ if (this.data.keepExploringMission?.length) {
390
367
  this.openTab = 1
391
- } else if (this.data.keepExploringTarget && this.data.keepExploringTarget.length) {
368
+ } else if (this.data.keepExploringTarget?.length) {
392
369
  this.openTab = 2
393
- } else if (this.data.keepExploringInstrument && this.data.keepExploringInstrument.length) {
370
+ } else if (this.data.keepExploringInstrument?.length) {
394
371
  this.openTab = 3
395
372
  }
396
373
  }
@@ -207,10 +207,10 @@ export default defineComponent({
207
207
  return this.defaultShowGridView
208
208
  },
209
209
  sortedSeasons() {
210
- let seasons = null
210
+ let seasons = undefined
211
211
  if (this.data && this.data.seasons) {
212
212
  seasons = this.data.seasons
213
- return seasons.sort((a, b) => a.seasonNumber - b.seasonNumber)
213
+ seasons = seasons.toSorted((a, b) => a.seasonNumber - b.seasonNumber)
214
214
  }
215
215
  return seasons
216
216
  }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
5
  "module": "ESNext",
6
- "lib": ["ES2021", "DOM", "DOM.Iterable"],
6
+ "lib": ["ES2021", "DOM", "DOM.Iterable", "ESNext.Array"],
7
7
  "skipLibCheck": true,
8
8
 
9
9
  /* Bundler mode */