Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ declare module 'vue' {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
ScriptSection: typeof import('./src/components/ScriptSection.vue')['default']
SearchBlock: typeof import('./src/components/SearchBlock.vue')['default']
SectionContainer: typeof import('./src/components/SectionContainer.vue')['default']
SettingItem: typeof import('./src/components/SettingItem.vue')['default']
Sidebar: typeof import('./src/components/AppLayout/Sidebar.vue')['default']
Expand Down
11 changes: 8 additions & 3 deletions frontend/src/components/DraggablePopup.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<!-- Extracted from Builder -->
<template>
<teleport to="body">
<div class="relative" ref="popover">
<div class="fixed z-50" @mousedown.stop>
<div class="relative" v-show="!isHidden" ref="popover">
<div class="fixed" @mousedown.stop>
<div
ref="popoverContent"
class="fixed flex flex-col gap-1 overflow-hidden rounded-lg border border-outline-gray-2 bg-surface-white shadow-2xl"
Expand Down Expand Up @@ -39,6 +38,7 @@
</template>

<script setup lang="ts">
import { useDomAttr } from "@/utils/useDomAttr"
import { useEventListener } from "@vueuse/core"
import { nextTick, onMounted, Ref, ref } from "vue"

Expand Down Expand Up @@ -74,6 +74,11 @@ const props = withDefaults(
},
)

const isHidden = useDomAttr(popover, "data-aria-hidden", {
immediate: true,
transform: (v) => v === "true",
})

const emit = defineEmits(["update:modelValue"])

const popoverContent = ref(null) as Ref<HTMLElement | null>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/OptionToggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
</template>
<script setup lang="ts">
import InputLabel from "@/components/InputLabel.vue"
import { TabButtons } from "frappe-ui"
import { PropType } from "vue"
import { TabButtons, ButtonProps } from "frappe-ui"

type ButtonProps = typeof ButtonProps
defineProps({
modelValue: {
type: [String, Number, Boolean],
},
options: {
type: Array as PropType<{ label: string; value?: string | number; icon?: string; hideLabel?: boolean }[]>,
type: Array<ButtonProps>,
default: () => [],
},
label: {
Expand Down
Loading