-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesigns Portfolio View to help with self-navigation (#167)
- Loading branch information
Showing
14 changed files
with
423 additions
and
123 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,27 @@ | ||
<script setup lang="ts"> | ||
const { t } = useI18n() | ||
const prefix = 'components/BulkActionsDrawer' | ||
const statePrefix = `${prefix}[${useStateIDGenerator().id()}]` | ||
const tt = (s: string) => t(`${prefix}.${s}`) | ||
const open = useState<boolean>(`${statePrefix}.open`, () => false) | ||
const icon = computed(() => open.value ? 'pi pi-chevron-left' : 'pi pi-chevron-right') | ||
const classes = computed(() => open.value ? 'border-2 border-primary' : 'p-button-outlined border-round') | ||
</script> | ||
|
||
<template> | ||
<span class="p-buttonset w-fit"> | ||
<PVButton | ||
:label="tt('Bulk Actions')" | ||
class="p-button-sm" | ||
:class="classes" | ||
:icon="icon" | ||
icon-pos="right" | ||
@click="() => { open = !open}" | ||
/> | ||
<template v-if="open"> | ||
<slot /> | ||
</template> | ||
</span> | ||
</template> |
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,29 @@ | ||
<script setup lang="ts"> | ||
interface Props { | ||
heading: string | ||
subHeading?: string | undefined | ||
icon?: string | undefined | ||
} | ||
const props = defineProps<Props>() | ||
</script> | ||
|
||
<template> | ||
<div class="flex justify-content-between align-items-center w-full flex-wrap px-2"> | ||
<div class="flex gap-1 flex-column"> | ||
<div class="text-lg font-bold"> | ||
{{ props.heading }} | ||
</div> | ||
<div | ||
v-if="props.subHeading" | ||
class="text-sm font-light" | ||
> | ||
{{ props.subHeading }} | ||
</div> | ||
</div> | ||
<i | ||
v-if="props.icon" | ||
:class="props.icon" | ||
/> | ||
<slot /> | ||
</div> | ||
</template> |
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
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.