Menü-Editor, farbige Initialen, Seitenköpfe, Favoriten, Vorschaubilder
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m55s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m44s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m25s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m39s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m47s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m51s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m16s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m25s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m55s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m44s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m25s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m39s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m47s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m51s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m16s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m25s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
- Admin → Portal → Menü: Bereiche, Seiten (mit Unterseiten), Links und Gruppen mit Unterpunkten, sortierbar, je Rolle einschränkbar; Kopfzeile misst den Platz und legt Überzähliges unter „Mehr“ - Initialen in fester Farbe je Person, Abteilungsfarben im Organigramm - PageHeader für alle Übersichtsseiten - Dokumente: Favoriten (auch als Startseiten-Kachel), „Häufig genutzt“, Vorschaubilder (Bilder, erste PDF-Seite per pdf.js im Browser) - Platzhalter beim Nachladen Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
114811e6c5
commit
dda250aaad
140 changed files with 1993 additions and 427 deletions
|
|
@ -1,12 +1,14 @@
|
|||
<script setup>
|
||||
import { computed } from 'vue';
|
||||
import { Link } from '@inertiajs/vue3';
|
||||
import { ChevronDown, ChevronUp, LoaderCircle, ScanSearch } from '@lucide/vue';
|
||||
import PersonAvatar from '@/components/PersonAvatar.vue';
|
||||
import { colorFor } from '@/lib/colors';
|
||||
|
||||
/**
|
||||
* Person im Organigramm. „compact“ für Mitarbeitende ohne eigenes Team.
|
||||
*/
|
||||
defineProps({
|
||||
const props = defineProps({
|
||||
person: { type: Object, required: true },
|
||||
compact: { type: Boolean, default: false },
|
||||
highlighted: { type: Boolean, default: false },
|
||||
|
|
@ -15,18 +17,22 @@ defineProps({
|
|||
});
|
||||
|
||||
defineEmits(['toggle', 'focus']);
|
||||
|
||||
// Farbe der Abteilung – als Streifen links und für die Beschriftung.
|
||||
const color = computed(() => colorFor(props.person.department));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
:id="`person-${person.id}`"
|
||||
class="group/card relative rounded-lg border bg-card text-left shadow-xs transition-shadow hover:shadow-sm"
|
||||
class="group/card relative overflow-hidden rounded-lg border bg-card text-left shadow-xs transition-shadow hover:shadow-sm"
|
||||
:class="[compact ? 'w-54' : 'w-56', highlighted ? 'border-brand-400 ring-3 ring-brand-300/50' : '']"
|
||||
>
|
||||
<span class="absolute inset-y-0 left-0 w-1 rounded-l-lg" :class="color.bar" aria-hidden="true" />
|
||||
<div class="flex items-center gap-3" :class="compact ? 'px-3 py-2' : 'px-3.5 pt-3 pb-2.5'">
|
||||
<PersonAvatar :person="person" :class="compact ? 'size-7 text-[10px]' : 'size-10'" />
|
||||
<div class="min-w-0 flex-1">
|
||||
<p v-if="person.department && !compact" class="truncate text-[10.5px] font-semibold tracking-wide text-brand-text uppercase">{{ person.department }}</p>
|
||||
<p v-if="person.department && !compact" class="truncate text-[10.5px] font-semibold tracking-wide uppercase" :class="color.text">{{ person.department }}</p>
|
||||
<Link :href="`/personen/${person.id}`" class="block truncate text-sm leading-tight font-semibold hover:underline">{{ person.name }}</Link>
|
||||
<p class="truncate text-xs leading-tight text-muted-foreground" :title="person.job_title">{{ person.job_title || '–' }}</p>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue