@explorer-1/vue 0.2.66 → 0.2.69
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/components.d.ts +1 -0
- package/dist/explorer-1-vue.js +4815 -4700
- package/dist/explorer-1-vue.umd.cjs +13 -13
- package/dist/src/components/BlockLinkCard/BlockLinkCard.stories.d.ts +68 -0
- package/dist/src/components/BlockLinkCard/BlockLinkCardCollectionLg.vue.d.ts +47 -0
- package/dist/src/components/BlockText/BlockText.stories.d.ts +11 -1
- package/dist/src/components/MetadataEduResource/MetadataEduResource.vue.d.ts +1 -1
- package/dist/src/components/MetadataEvent/MetadataEvent.vue.d.ts +1 -1
- package/dist/src/components/NavJumpMenu/NavJumpMenu.stories.d.ts +15 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/BlockLinkCard/BlockLinkCard.stories.js +115 -0
- package/src/components/BlockLinkCard/BlockLinkCard.vue +180 -145
- package/src/components/BlockLinkCard/BlockLinkCardCollectionLg.vue +132 -0
- package/src/components/BlockRichTable/BlockRichTable.stories.js +94 -0
- package/src/components/BlockRichTable/BlockRichTable.vue +2 -2
- package/src/components/MetadataEduResource/MetadataEduResource.vue +1 -1
- package/src/components/NavDesktopEdu/NavDesktopEdu.vue +1 -1
- package/src/components/NavSearchForm/NavSearchForm.vue +1 -1
- package/src/components/SearchResultCard/SearchResultCard.vue +1 -0
- package/src/components/SearchResultGridItem/SearchResultGridItem.vue +1 -0
- package/src/constants.ts +6 -0
- package/src/templates/edu/PageEduHome/PageEduHome.vue +2 -2
- package/src/utils/mixins.ts +2 -2
|
@@ -72,3 +72,97 @@ export const BaseStory = {
|
|
|
72
72
|
table: BlockRichTableData
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
+
export const MixedColumnWidths = {
|
|
76
|
+
args: {
|
|
77
|
+
table: {
|
|
78
|
+
blockType: 'RichTableBlock',
|
|
79
|
+
tableCaption:
|
|
80
|
+
'Ut dapibus cursus quam, non dapibus diam pellentesque ac. Maecenas ultrices porta dui eget placerat. Curabitur ornare congue interdum.',
|
|
81
|
+
tableContent: {
|
|
82
|
+
tableHead: [
|
|
83
|
+
[
|
|
84
|
+
{
|
|
85
|
+
text: 'Image'
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
text: 'Type'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
text: 'Description'
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
],
|
|
95
|
+
tableBody: [
|
|
96
|
+
[
|
|
97
|
+
{
|
|
98
|
+
...BlockImageData,
|
|
99
|
+
caption: '<p>Custom ImageCaption</p>',
|
|
100
|
+
displayCaption: true,
|
|
101
|
+
blockType: 'ImageBlock'
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
blockType: 'CharBlock',
|
|
105
|
+
value: 'Internal'
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
blockType: 'RichTextBlock',
|
|
109
|
+
value:
|
|
110
|
+
'<p>Lorem ipsum <a href="/missions/test-mission/">dolor</a> sit amet, consectetur adipiscing elit. Quisque vitae justo quis justo malesuada molestie. Cras sed tincidunt dui.</p>\n'
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
[
|
|
114
|
+
{
|
|
115
|
+
...BlockImageData,
|
|
116
|
+
caption: '<p>Custom ImageCaption</p>',
|
|
117
|
+
displayCaption: true,
|
|
118
|
+
blockType: 'ImageBlock'
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
blockType: 'CharBlock',
|
|
122
|
+
value: 'External'
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
blockType: 'RichTextBlock',
|
|
126
|
+
value:
|
|
127
|
+
'<p>Morbi pretium, massa non convallis facilisis, lectus eros vulputate turpis, et imperdiet eros metus eu enim. Cras consequat iaculis leo eget auctor. Sed bibendum, nulla vel ultricies aliquam, augue mauris sagittis massa, nec malesuada massa justo id sem. In hac habitasse platea dictumst. Sed ullamcorper bibendum libero vitae pellentesque.</p>\n'
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
[
|
|
131
|
+
{
|
|
132
|
+
...BlockImageData,
|
|
133
|
+
caption: '<p>Custom ImageCaption</p>',
|
|
134
|
+
displayCaption: false,
|
|
135
|
+
blockType: 'ImageBlock'
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
blockType: 'CharBlock',
|
|
139
|
+
value: 'N/A'
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
blockType: 'RichTextBlock',
|
|
143
|
+
value:
|
|
144
|
+
'<p>Maecenas vel dapibus ligula, pretium <a href="#">dictum est</a>. Proin venenatis massa vulputate <strong>est rhoncus</strong>, sed ornare ex sagittis. Donec iaculis magna in rhoncus malesuada.</p>\n'
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
[
|
|
148
|
+
{
|
|
149
|
+
...BlockImageData,
|
|
150
|
+
caption: '<p>Custom ImageCaption</p>',
|
|
151
|
+
displayCaption: true,
|
|
152
|
+
blockType: 'ImageBlock'
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
blockType: 'CharBlock',
|
|
156
|
+
value: 'Internal'
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
blockType: 'RichTextBlock',
|
|
160
|
+
value:
|
|
161
|
+
'<p>Lorem ipsum <a href="/missions/test-mission/">dolor</a> sit amet, consectetur adipiscing elit. Quisque vitae justo quis justo malesuada molestie. Cras sed tincidunt dui.</p>\n'
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -33,7 +33,7 @@ export default defineComponent({
|
|
|
33
33
|
v-for="(headCell, headIndex) in table.tableContent.tableHead[0]"
|
|
34
34
|
:key="headIndex"
|
|
35
35
|
scope="col"
|
|
36
|
-
class="min-w-[
|
|
36
|
+
class="min-w-[6rem] bg-jpl-blue-darker edu:bg-jpl-violet-darker text-subtitle text-white border-gray-light-mid lg:p-5 p-3 border-b"
|
|
37
37
|
>
|
|
38
38
|
{{ headCell.text }}
|
|
39
39
|
</th>
|
|
@@ -47,7 +47,7 @@ export default defineComponent({
|
|
|
47
47
|
<td
|
|
48
48
|
v-for="(cell, cellIndex) in row"
|
|
49
49
|
:key="cellIndex"
|
|
50
|
-
class="min-w-[
|
|
50
|
+
class="min-w-[6rem] bg-white text-gray-dark border-gray-light-mid"
|
|
51
51
|
>
|
|
52
52
|
<template v-if="cell.blockType === 'CharBlock'">
|
|
53
53
|
<p class="">
|
|
@@ -23,7 +23,7 @@ const clearSearch = () => {
|
|
|
23
23
|
const submitSearch = () => {
|
|
24
24
|
emit('submitForm')
|
|
25
25
|
router.push({
|
|
26
|
-
path: themeStore.isEdu ? '/
|
|
26
|
+
path: themeStore.isEdu ? '/edubeta/search/' : '/search',
|
|
27
27
|
query: { query: searchQuery.value }
|
|
28
28
|
})
|
|
29
29
|
}
|
package/src/constants.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { PillDictionaryInterface } from './interfaces'
|
|
2
2
|
|
|
3
3
|
export const eduMetadataDictionary: PillDictionaryInterface = {
|
|
4
|
+
EDUNewsPage: {
|
|
5
|
+
label: 'News',
|
|
6
|
+
variant: 'primary',
|
|
7
|
+
icons: 'primary',
|
|
8
|
+
type: undefined
|
|
9
|
+
},
|
|
4
10
|
EDUEventPage: {
|
|
5
11
|
label: 'Event',
|
|
6
12
|
variant: 'primary',
|
|
@@ -33,7 +33,7 @@ const image = computed(() => {
|
|
|
33
33
|
})
|
|
34
34
|
|
|
35
35
|
const submitSearch = () => {
|
|
36
|
-
router.push({ path: '/
|
|
36
|
+
router.push({ path: '/edubeta/resources/', query: { query: searchQuery.value } })
|
|
37
37
|
}
|
|
38
38
|
</script>
|
|
39
39
|
<template>
|
|
@@ -101,7 +101,7 @@ const submitSearch = () => {
|
|
|
101
101
|
>
|
|
102
102
|
<BaseLink
|
|
103
103
|
variant="none"
|
|
104
|
-
:to="`/
|
|
104
|
+
:to="`/edubeta/resources?query=${topic.page?.title}`"
|
|
105
105
|
link-class="text-gray-dark whitespace-nowrap text-sm bg-[#99D1DF] font-extrabold rounded-full inline-block px-3 py-1 text-contrast-none hover:bg-action hover:text-white"
|
|
106
106
|
>
|
|
107
107
|
{{ topic.page?.title }}
|
package/src/utils/mixins.ts
CHANGED
|
@@ -157,9 +157,9 @@ export const mixinIsActivePath = (itemPath: string): Boolean => {
|
|
|
157
157
|
if (currentPath && path && ancestorPath) {
|
|
158
158
|
if (currentPath === path) {
|
|
159
159
|
return true
|
|
160
|
-
} else if (currentPath.startsWith('/
|
|
160
|
+
} else if (currentPath.startsWith('/edubeta/events')) {
|
|
161
161
|
// special treatment since EDU combines News & Events in the main nav
|
|
162
|
-
return path.startsWith('/
|
|
162
|
+
return path.startsWith('/edubeta/news')
|
|
163
163
|
} else {
|
|
164
164
|
return currentPath.startsWith(ancestorPath)
|
|
165
165
|
}
|