<script setup lang="ts">import { computed } from 'vue'; import PageLayout from '../../layouts/PageLayout.vue'; import StandardScreenBoundary from './StandardScreenBoundary.vue'; import type { StandardScreenProps } from '../../contracts/screenContract'; const props=defineProps<StandardScreenProps>(); const sensitiveContentBlocked = computed(() => ['LOADING','ERROR','UNAUTHORIZED','FORBIDDEN','CONFLICT','EXPIRED','READONLY','PROCESSING'].includes(props.state ?? 'READY')); defineEmits<{retry:[]}>()</script>
<template><PageLayout :title="props.title" :subtitle="props.subtitle" :status="props.state" :as-of="props.evidence?.asOf" :version="props.evidence?.version" aside-width="30rem"><template #actions><slot name="actions"/></template><template #filters><slot name="filters"/></template><StandardScreenBoundary :state="props.state" :warning="props.warning" @retry="$emit('retry')"><slot v-if="!sensitiveContentBlocked" name="breaks"/></StandardScreenBoundary><template #aside><section v-if="!sensitiveContentBlocked" class="ks-stack"><div class="ks-card ks-section"><slot name="beforeAfter"/></div><div class="ks-card ks-section"><slot name="correction"/></div><div class="ks-card ks-section"><slot name="audit"/></div></section></template><template v-if="$slots.footer && !sensitiveContentBlocked" #footer><slot name="footer"/></template></PageLayout></template>
<style scoped>.ks-section{padding:var(--ks-space-4)}</style>
