@explorer-1/vue 0.2.72 → 0.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/explorer-1-vue.js +931 -902
- package/dist/explorer-1-vue.umd.cjs +10 -8
- package/dist/src/components/BlockCardGrid/BlockCardGrid.stories.d.ts +51 -0
- package/dist/src/components/BlockLinkCard/BlockLinkCard.stories.d.ts +64 -3
- package/dist/src/components/BlockRichTable/BlockRichTable.stories.d.ts +75 -0
- package/dist/src/components/HomepageCarousel/HomepageCarousel.stories.d.ts +1 -0
- package/dist/src/components/NavSearchForm/NavSearchForm.vue.d.ts +4 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/HeroMedia/HeroMedia.vue +1 -1
- package/src/components/HomepageCarousel/HomepageCarousel.stories.js +1 -0
- package/src/components/HomepageCarousel/HomepageCarousel.vue +15 -12
- package/src/components/HomepageCarouselItem/HomepageCarouselItem.vue +0 -2
- package/src/components/NavDesktopEdu/NavDesktopEdu.vue +1 -0
- package/src/components/NavMobile/NavMobile.vue +1 -0
- package/src/components/NavSearchForm/NavSearchForm.vue +4 -2
- package/src/components/SearchFilterGroupAccordionItem/SearchFilterGroupAccordionItem.vue +2 -2
- package/src/templates/edu/PageEduStudentProject/PageEduStudentProjectSection.vue +3 -1
package/package.json
CHANGED
|
@@ -74,9 +74,11 @@
|
|
|
74
74
|
</transition>
|
|
75
75
|
</div>
|
|
76
76
|
<!-- tabbed navigation -->
|
|
77
|
-
<div
|
|
77
|
+
<div
|
|
78
|
+
class="HomepageCarouselTabs relative container overflow-hidden px-0 mx-auto pt-5 pb-22"
|
|
79
|
+
>
|
|
78
80
|
<!-- offset by one tab to allow for previous slide transitions -->
|
|
79
|
-
<div class="w-full -translate-x-1/5">
|
|
81
|
+
<div class="w-full -translate-x-1/5 ml-10 pr-10 2xl:ml-0 2xl:pr-0">
|
|
80
82
|
<!-- tab container width adjusts automatically according to slide count when there are less than 6 slides -->
|
|
81
83
|
<div :class="tabContainerWidthClass">
|
|
82
84
|
<!-- translate amount depends on tab container width, so the class is applied dynamically -->
|
|
@@ -95,7 +97,7 @@
|
|
|
95
97
|
external-target-blank
|
|
96
98
|
class="pr-5 flex-shrink-0 h-auto translate-x-0"
|
|
97
99
|
:class="tabWidthClass"
|
|
98
|
-
link-class="
|
|
100
|
+
:link-class="`
|
|
99
101
|
group
|
|
100
102
|
border-opacity-30 border-r border-white
|
|
101
103
|
can-hover:hover:text-white
|
|
@@ -107,7 +109,9 @@
|
|
|
107
109
|
-ml-5
|
|
108
110
|
font-semibold
|
|
109
111
|
text-base text-left text-white text-opacity-75
|
|
110
|
-
transition-all duration-200 ease-in
|
|
112
|
+
transition-all duration-200 ease-in
|
|
113
|
+
${index === 0 ? '!text-white' : ''}
|
|
114
|
+
`"
|
|
111
115
|
>
|
|
112
116
|
<span>
|
|
113
117
|
{{ item.slideTitle }}
|
|
@@ -157,6 +161,7 @@ export default defineComponent({
|
|
|
157
161
|
sliderOptions: SwiperOptions
|
|
158
162
|
tabbedItems: Slide[] | undefined
|
|
159
163
|
slideToNext: Boolean
|
|
164
|
+
theIndex: number
|
|
160
165
|
} {
|
|
161
166
|
return {
|
|
162
167
|
slideLoaded: false,
|
|
@@ -195,25 +200,23 @@ export default defineComponent({
|
|
|
195
200
|
}
|
|
196
201
|
},
|
|
197
202
|
slideChange: (swiper: Swiper) => {
|
|
203
|
+
// @ts-ignore
|
|
204
|
+
this.theIndex = swiper.realIndex
|
|
198
205
|
;(this as any).videoHandler(swiper)
|
|
199
206
|
}
|
|
200
207
|
}
|
|
201
208
|
},
|
|
209
|
+
theIndex: 0,
|
|
202
210
|
tabbedItems: undefined,
|
|
203
211
|
slideToNext: true
|
|
204
212
|
}
|
|
205
213
|
},
|
|
206
214
|
computed: {
|
|
207
|
-
theIndex(): number | false {
|
|
208
|
-
if (this.slider) {
|
|
209
|
-
return this.slider.realIndex
|
|
210
|
-
}
|
|
211
|
-
return false
|
|
212
|
-
},
|
|
213
215
|
onlyOneSlide(): boolean {
|
|
214
216
|
return this.items?.length === 1
|
|
215
217
|
},
|
|
216
218
|
loopedTabs(): Array<Slide> {
|
|
219
|
+
// used to "cycle" through tabbed items
|
|
217
220
|
// return a looped array starting at the active slide
|
|
218
221
|
const items = this.items
|
|
219
222
|
// offset by one to avoid slice(0,0) in reorderedItems
|
|
@@ -237,9 +240,9 @@ export default defineComponent({
|
|
|
237
240
|
} else if (this.items?.length === 4) {
|
|
238
241
|
return 'overflow-hidden w-4/5'
|
|
239
242
|
} else if (this.items?.length === 5) {
|
|
240
|
-
return 'overflow-hidden container'
|
|
243
|
+
return 'overflow-hidden container px-0'
|
|
241
244
|
}
|
|
242
|
-
return 'overflow-visible container'
|
|
245
|
+
return 'overflow-visible container px-0'
|
|
243
246
|
},
|
|
244
247
|
tabWidthClass(): string {
|
|
245
248
|
if (this.items?.length === 2) {
|
|
@@ -8,9 +8,11 @@ const themeStore = useThemeStore()
|
|
|
8
8
|
|
|
9
9
|
interface NavSearchFormProps {
|
|
10
10
|
mobile?: boolean
|
|
11
|
+
placeholder?: string
|
|
11
12
|
}
|
|
12
13
|
const props = withDefaults(defineProps<NavSearchFormProps>(), {
|
|
13
|
-
mobile: false
|
|
14
|
+
mobile: false,
|
|
15
|
+
placeholder: 'Search JPL'
|
|
14
16
|
})
|
|
15
17
|
const emit = defineEmits(['clearSearch', 'submitForm'])
|
|
16
18
|
|
|
@@ -35,7 +37,7 @@ const submitSearch = () => {
|
|
|
35
37
|
>
|
|
36
38
|
<SearchInput
|
|
37
39
|
v-model="searchQuery"
|
|
38
|
-
placeholder="
|
|
40
|
+
:placeholder="placeholder"
|
|
39
41
|
:underlined-input="!props.mobile"
|
|
40
42
|
:underlined-input-value="searchQuery"
|
|
41
43
|
:auto-focus="!props.mobile"
|
|
@@ -41,10 +41,10 @@ const emit = defineEmits(['filterGroupAccordionItemOpened', 'filterGroupAccordio
|
|
|
41
41
|
</script>
|
|
42
42
|
<template>
|
|
43
43
|
<div
|
|
44
|
-
class="SearchFilterGroupAccordionItem border-t pt-
|
|
44
|
+
class="SearchFilterGroupAccordionItem border-t pt-[0.4375rem]"
|
|
45
45
|
:class="{
|
|
46
46
|
'-open border-gray-light-mid -mb-px': !isHidden,
|
|
47
|
-
'border-transparent mb-
|
|
47
|
+
'border-transparent mb-2.5': isHidden
|
|
48
48
|
}"
|
|
49
49
|
>
|
|
50
50
|
<div class="SearchFilterGroupAccordionItemHeader flex flex-row w-full content-between">
|
|
@@ -90,7 +90,9 @@ const { heading, blocks, image, steps, stepsNumbering, text } = reactive(props)
|
|
|
90
90
|
class="px-0 lg:px-4"
|
|
91
91
|
indent="col-1"
|
|
92
92
|
>
|
|
93
|
-
<div
|
|
93
|
+
<div
|
|
94
|
+
class="ThemeVariantGray bg-gray-light px-8 py-6 md:px-10 md:py-8 lg:px-18 lg:py-16 overflow-hidden"
|
|
95
|
+
>
|
|
94
96
|
<template v-if="step.media?.length">
|
|
95
97
|
<!-- split 50/50 -->
|
|
96
98
|
<div class="lg:grid grid-cols-2 gap-6 lg:gap-10">
|