@explorer-1/vue 0.2.64 → 0.2.66
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 -1
- package/dist/explorer-1-vue.js +3787 -3764
- package/dist/explorer-1-vue.umd.cjs +14 -14
- package/dist/src/components/BlockRichTable/BlockRichTable.stories.d.ts +129 -0
- package/dist/src/components/BlockStreamfield/BlockStreamfield.stories.d.ts +125 -1
- package/dist/src/components/SearchFilterGroup/SearchFilterGroup.vue.d.ts +9 -0
- package/dist/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.stories.d.ts +336 -3
- package/dist/src/templates/edu/PageEduStudentProject/PageEduStudentProject.stories.d.ts +195 -2
- package/dist/src/templates/www/PageAsteroidWatchIndex/PageAsteroidWatchIndex.stories.d.ts +112 -1
- package/dist/style.css +1 -1
- package/lib/main.ts +0 -2
- package/package.json +2 -2
- package/src/components/BlockHeading/BlockHeading.vue +1 -1
- package/src/components/BlockKeyPoints/BlockKeyPoints.vue +1 -1
- package/src/components/BlockRichTable/BlockRichTable.stories.js +23 -4
- package/src/components/BlockRichTable/BlockRichTable.vue +10 -10
- package/src/components/BlockStreamfield/BlockStreamfield.stories.js +9 -4
- package/src/components/BlockStreamfield/BlockStreamfield.vue +4 -12
- package/src/components/BlockText/BlockText.stories.js +51 -2
- package/src/components/NavDesktop/NavDesktopTopHat.vue +12 -2
- package/src/components/NavJumpMenu/NavJumpMenu.stories.js +17 -0
- package/src/components/NavJumpMenu/NavJumpMenu.vue +1 -0
- package/src/components/NavSearchForm/NavSearchForm.vue +6 -1
- package/src/components/NavSecondary/NavSecondary.vue +4 -3
- package/src/components/NavSecondary/NavSecondaryDropdownContent.vue +4 -2
- package/src/templates/edu/PageEduExplainerArticle/PageEduExplainerArticle.vue +2 -2
- package/src/templates/edu/PageEduGalleryDetail/PageEduGalleryDetail.vue +2 -2
- package/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.vue +0 -13
- package/src/templates/edu/PageEduStudentProject/PageEduStudentProject.stories.js +13 -2
- package/src/templates/edu/PageEduStudentProject/PageEduStudentProject.vue +2 -2
- package/src/templates/edu/PageEduStudentProject/PageEduStudentProjectSection.vue +25 -4
- package/dist/src/components/BlockTable/BlockTable.stories.d.ts +0 -17
- package/dist/src/components/BlockTable/BlockTable.vue.d.ts +0 -17
- package/src/components/BlockTable/BlockTable.stories.js +0 -20
- package/src/components/BlockTable/BlockTable.vue +0 -69
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import BlockTable from './BlockTable.vue'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Components/Blocks/BlockTable',
|
|
5
|
-
component: BlockTable,
|
|
6
|
-
excludeStories: /.*Data$/
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const BlockTableData = {
|
|
10
|
-
blockType: 'TableBlock',
|
|
11
|
-
table:
|
|
12
|
-
"{'data': [['Header 1', 'Header 2', 'Header 3'], ['Lorem ipsum dolor sit amet', 'Lorem ipsum dolor sit amet', 'Lorem ipsum dolor sit amet'], [None, None, None]], 'cell': [], 'first_row_is_table_header': True, 'first_col_is_header': False, 'table_caption': 'Third row intentionally blank to test parsing.'}"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const BaseStory = {
|
|
16
|
-
name: 'BlockTable',
|
|
17
|
-
args: {
|
|
18
|
-
data: BlockTableData
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
v-if="data"
|
|
4
|
-
class="BlockTable"
|
|
5
|
-
>
|
|
6
|
-
<div class="overflow-x-auto scrolling-touch">
|
|
7
|
-
<table class="border-gray-light-mid w-full border-t border-b border-collapse table-auto">
|
|
8
|
-
<tr
|
|
9
|
-
v-for="(row, index_row) in table.rows"
|
|
10
|
-
:key="index_row"
|
|
11
|
-
>
|
|
12
|
-
<td
|
|
13
|
-
v-for="(col, index_col) in row.cols"
|
|
14
|
-
:key="index_col"
|
|
15
|
-
:class="
|
|
16
|
-
row.header ? 'bg-jpl-blue-darker text-subtitle text-white' : 'bg-white text-gray-dark'
|
|
17
|
-
"
|
|
18
|
-
class="border-gray-light-mid lg:p-5 p-3 border-b"
|
|
19
|
-
>
|
|
20
|
-
{{ col }}
|
|
21
|
-
</td>
|
|
22
|
-
</tr>
|
|
23
|
-
</table>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="text-gray-mid-dark text-body-sm mt-4">{{ table.caption }}</div>
|
|
26
|
-
</div>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script lang="ts">
|
|
30
|
-
// @ts-nocheck
|
|
31
|
-
import { defineComponent } from 'vue'
|
|
32
|
-
|
|
33
|
-
export default defineComponent({
|
|
34
|
-
name: 'BlockTable',
|
|
35
|
-
props: {
|
|
36
|
-
data: {
|
|
37
|
-
type: Object,
|
|
38
|
-
required: false
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
computed: {
|
|
42
|
-
table() {
|
|
43
|
-
let str = this.data.table
|
|
44
|
-
str = str.replace(/'/g, '"')
|
|
45
|
-
str = str.replace(/None,/g, '"",')
|
|
46
|
-
str = str.replace(/, None/g, ',""')
|
|
47
|
-
str = str.replace(/: False/g, ': false')
|
|
48
|
-
str = str.replace(/: True/g, ': true')
|
|
49
|
-
const dict = JSON.parse(str)
|
|
50
|
-
const table = {
|
|
51
|
-
rows: [],
|
|
52
|
-
caption: dict.table_caption
|
|
53
|
-
}
|
|
54
|
-
for (let i = 0; i < dict.data.length; i++) {
|
|
55
|
-
const row = {
|
|
56
|
-
cols: dict.data[i],
|
|
57
|
-
header: i === 0 && dict.first_row_is_table_header
|
|
58
|
-
}
|
|
59
|
-
table.rows.push(row)
|
|
60
|
-
}
|
|
61
|
-
return table
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
})
|
|
65
|
-
</script>
|
|
66
|
-
|
|
67
|
-
<style lang="scss">
|
|
68
|
-
@import '@explorer-1/common/src/scss/components/BlockTable';
|
|
69
|
-
</style>
|