-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
87 additions
and
81 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
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
2 changes: 1 addition & 1 deletion
2
src/components/FiltersPanel/FiltersPanelSectionFilterTitleToggler.vue
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,20 @@ | ||
<template> | ||
<div class="page-settings"> | ||
<page-settings-title>{{title}}</page-settings-title> | ||
<slot> | ||
</slot> | ||
<div class="d-flex justify-content-between align-items-baseline"> | ||
<page-settings-title class="pb-4">{{ title }}</page-settings-title> | ||
<slot name="closeButton"> </slot> | ||
</div> | ||
<slot> </slot> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import PageSettingsTitle from "@/components/PageSettings/PageSettingsTitle.vue"; | ||
import PageSettingsTitle from '@/components/PageSettings/PageSettingsTitle' | ||
const props = defineProps({ | ||
defineProps({ | ||
title: { | ||
type: String, | ||
required:true | ||
required: true | ||
} | ||
}) | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.page-settings { | ||
& &-title{ | ||
padding-bottom: 1em; | ||
} | ||
} | ||
</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
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 |
---|---|---|
@@ -1,48 +1,49 @@ | ||
<template> | ||
|
||
<b-form-group class="page-settings-group"> | ||
<template #label> | ||
<div class="page-settings-group__label d-flex" | ||
aria-controls="page-settings-group-collapse" | ||
:aria-expanded="modelValue ? 'true' : 'false'" | ||
@click="toggleSection"><phosphor-icon class="d-inline-flex me-2" :name="caretIcon" />{{label}}</div> | ||
<div | ||
class="page-settings-group__label d-flex" | ||
aria-controls="page-settings-group-collapse" | ||
:aria-expanded="modelValue ? 'true' : 'false'" | ||
@click="toggleSection" | ||
> | ||
<phosphor-icon class="d-inline-flex me-2" :name="caretIcon" />{{ label }} | ||
</div> | ||
</template> | ||
<b-collapse id="page-settings-group-collapse" v-model="modelValue" > | ||
<slot v-bind="{open:modelValue}"></slot> | ||
<b-collapse id="page-settings-group-collapse" v-model="modelValue"> | ||
<slot v-bind="{ open: modelValue }"></slot> | ||
</b-collapse> | ||
</b-form-group> | ||
</template> | ||
|
||
<script setup> | ||
import {computed, ref} from "vue"; | ||
import {PhosphorIcon} from "@icij/murmur-next"; | ||
import { computed } from 'vue' | ||
import { PhosphorIcon } from '@icij/murmur-next' | ||
defineOptions({ | ||
name:"PageSettingsSectionGroup" | ||
name: 'PageSettingsSectionGroup' | ||
}) | ||
const props = defineProps({ | ||
defineProps({ | ||
label: { | ||
type: String, | ||
default: 'Settings' | ||
}, | ||
} | ||
}) | ||
const modelValue = defineModel({ | ||
type:Boolean, | ||
default:true | ||
type: Boolean, | ||
default: true | ||
}) | ||
const caretIcon = computed(()=> modelValue.value?'caret-up':'caret-down') | ||
const caretIcon = computed(() => (modelValue.value ? 'caret-up' : 'caret-down')) | ||
function toggleSection(){ | ||
function toggleSection() { | ||
modelValue.value = !modelValue.value | ||
} | ||
</script> | ||
<style lang="scss"> | ||
.page-settings-group{ | ||
.page-settings-group { | ||
&__label { | ||
cursor: pointer; | ||
} | ||
} | ||
</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
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