2022-10-31 10:59:53 -07:00
|
|
|
<template>
|
|
|
|
<transition name="fade" mode="out-in">
|
2022-11-15 09:20:54 -08:00
|
|
|
<div
|
|
|
|
v-show="show"
|
|
|
|
:class="['n8n-block-ui', $style.uiBlocker]"
|
|
|
|
role="dialog"
|
|
|
|
:aria-hidden="true"
|
|
|
|
/>
|
2022-10-31 10:59:53 -07:00
|
|
|
</transition>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
type BlockUiProps = {
|
|
|
|
show: boolean;
|
2022-11-15 09:20:54 -08:00
|
|
|
};
|
2022-10-31 10:59:53 -07:00
|
|
|
|
2022-11-15 09:20:54 -08:00
|
|
|
withDefaults(defineProps<BlockUiProps>(), {
|
2022-10-31 10:59:53 -07:00
|
|
|
show: false,
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" module>
|
|
|
|
.uiBlocker {
|
2022-11-15 09:20:54 -08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: var(--color-background-dark);
|
|
|
|
z-index: 10;
|
|
|
|
opacity: 0.6;
|
|
|
|
border-radius: var(--border-radius-large);
|
2022-10-31 10:59:53 -07:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.fade-enter-active,
|
|
|
|
.fade-leave-active {
|
2022-11-15 09:20:54 -08:00
|
|
|
transition: opacity 200ms;
|
2022-10-31 10:59:53 -07:00
|
|
|
}
|
|
|
|
.fade-enter,
|
|
|
|
.fade-leave-to {
|
2022-11-15 09:20:54 -08:00
|
|
|
opacity: 0;
|
2022-10-31 10:59:53 -07:00
|
|
|
}
|
|
|
|
</style>
|