-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: APPS-2583-2582 Fix block StaffSubjectLibrarian & Convert Sectio…
…nStaffSubjectLibrarian to vue3 (#494) * fix BlockSubjectLibrarian add SectionSubjectLibrarian * fix BlockSubjectLibrarian add SectionSubjectLibrarian * update typescript * update typescript * update typescript * delete comment * fix staffName * linting * linting
- Loading branch information
1 parent
2c421f0
commit 0d6cb4d
Showing
7 changed files
with
515 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<script | ||
setup | ||
lang="ts" | ||
> | ||
import type { PropType } from 'vue' | ||
// TYPESCRIPT | ||
import type { BlockStaffListItemType } from '@/types/types' | ||
import BlockStaffSubjectLibrarian from '@/lib-components/BlockStaffSubjectLibrarian.vue' | ||
const { items, tableHeaders } = defineProps({ | ||
items: { | ||
type: Array as PropType<BlockStaffListItemType[]>, | ||
default: () => [], | ||
}, | ||
tableHeaders: { | ||
type: Array, | ||
default: () => [], | ||
}, | ||
}) | ||
</script> | ||
|
||
<template> | ||
<table class="section-staff-subject-librarian"> | ||
<caption> | ||
Subject Librarians | ||
</caption> | ||
<thead> | ||
<tr> | ||
<th | ||
v-for="(header, index) in tableHeaders" | ||
:key="index" | ||
> | ||
{{ header }} | ||
</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<BlockStaffSubjectLibrarian | ||
v-for="(item, index) in items" | ||
:key="`${index}-${item.subjectArea}`" | ||
:subject-area="item.subjectArea" | ||
:name-first="item.nameFirst" | ||
:name-last="item.nameLast" | ||
:to="item.to" | ||
:alternative-name="item.alternativeName" | ||
:language="item.language" | ||
:job-title="item.jobTitle" | ||
:departments="item.departments" | ||
:locations="item.locations" | ||
:email="item.email" | ||
:phone="item.phone" | ||
:consultation="item.consultation" | ||
class="subject-librarian-item" | ||
/> | ||
</tbody> | ||
</table> | ||
</template> | ||
|
||
<style | ||
lang="scss" | ||
scoped | ||
> | ||
.section-staff-subject-librarian { | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--space-m); | ||
max-width: $container-l-main + px; | ||
margin: 0 auto var(--space-2xl); | ||
caption { | ||
@include visually-hidden; | ||
} | ||
thead tr { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
gap: var(--space-xl); | ||
width: 100%; | ||
color: var(--color-primary-blue-05); | ||
@include step-0; | ||
font-weight: normal; | ||
border-bottom: 2px dotted var(--color-secondary-grey-02); | ||
padding-bottom: 10px; | ||
th { | ||
display: flex; | ||
flex: 1 1 0px; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
justify-content: flex-start; | ||
align-content: flex-start; | ||
align-items: flex-start; | ||
font-weight: 500; | ||
} | ||
} | ||
.subject-librarian-item { | ||
border-bottom: 2px dotted var(--color-secondary-grey-02); | ||
} | ||
@media #{$small} { | ||
thead { | ||
height: 1px; | ||
width: 1px; | ||
position: absolute; | ||
overflow: hidden; | ||
top: -10px; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
0d6cb4d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://ucla-library-storybook-vue3x.netlify.app as production
🚀 Deployed on https://6616c187149a09110e7e0aef--ucla-library-storybook-vue3x.netlify.app
0d6cb4d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://deploy-preview--ucla-library-storybook-vue3x.netlify.app