Files
clientsflow/frontend/app/components/workspace/calendar/lab/CrmCalendarLabWeekRect.vue

42 lines
1.0 KiB
Vue

<script setup lang="ts">
defineProps<{
isActive: boolean;
isLoading: boolean;
isLoaded: boolean;
showContent: boolean;
nextLabel?: string;
pulseScale: number;
}>();
</script>
<template>
<section
class="calendar-lab-rect calendar-lab-week"
:class="isActive ? 'calendar-lab-rect-active' : ''"
:style="{ transform: `scale(${pulseScale})` }"
>
<header class="calendar-lab-header">
<p class="calendar-lab-title">Week</p>
<p class="calendar-lab-subtitle">7 day columns</p>
</header>
<template v-if="showContent">
<p v-if="isLoading" class="calendar-lab-loading">Loading GraphQL week payload</p>
<p v-else-if="isLoaded" class="calendar-lab-meta">Data ready</p>
<div class="calendar-lab-grid-week">
<span
v-for="day in 7"
:key="`lab-week-day-${day}`"
class="calendar-lab-day"
>
D{{ day }}
</span>
</div>
</template>
<p v-else class="calendar-lab-hint">
Zoom into {{ nextLabel ?? "Day" }}
</p>
</section>
</template>