Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 14m38s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 14m13s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 11m56s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 11m44s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 56m9s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 1h2m6s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m30s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m16s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m13s
Einstellung interface (classic|app) im Erscheinungsbild; data-ui am Wurzelelement, warme Tokens, Karten mit Schatten, Menüpunkte als Pillen; Startseite dreispaltig. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 line
No EOL
4.7 KiB
JavaScript
1 line
No EOL
4.7 KiB
JavaScript
import{P as e,dt as t}from"./ui-DY0WbyhT.js";import{At as n,C as r,O as i,S as a,T as o,Tt as s,Y as c,_t as l,f as u,i as d,k as f,ot as p,p as m,q as h,rt as g,s as _,st as v,v as y,w as b}from"./framework-Cy4cevSy.js";import{t as x}from"./chevron-left-DIunBPjc.js";import{t as S}from"./search-x-0wR3oofw.js";import{K as C,U as w,d as T,g as E,rt as D,u as O,wt as k}from"./app-C8emkL0O.js";var A={class:`flex w-full flex-col gap-3 sm:w-auto sm:flex-row`},j={class:`relative block sm:w-80`},M=[`value`],N={key:0,class:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},P={class:`min-w-0`},F={class:`truncate text-[15px] font-semibold hover:underline`},I={class:`truncate text-[13px] text-muted-foreground`},L={class:`px-4 pb-3 text-[13px] text-muted-foreground`},R={key:0,class:`font-medium text-brand-text`},z={key:1},B={key:2},V={class:`mt-auto flex border-t text-[13px]`},H=[`href`],U=[`href`],W={key:1,class:`grid place-items-center rounded-lg border border-dashed bg-card px-6 py-16 text-center`},G={key:2,class:`mt-6 flex items-center justify-between`,"aria-label":`Seiten`},K={class:`text-sm text-muted-foreground`},q={class:`flex gap-2`},J={__name:`Index`,props:{people:{type:Object,required:!0},filters:{type:Object,required:!0},departments:{type:Array,required:!0}},setup(J){let Y=J,X=l(Y.filters.q??``),Z=l(Y.filters.abteilung??``);function Q(){let e={};X.value&&(e.q=X.value),Z.value&&(e.abteilung=Z.value),_.get(`/personen`,e,{preserveState:!0,preserveScroll:!0,replace:!0})}return g(X,t(Q,300)),g(Z,Q),(t,l)=>(h(),r(O,{title:`Personen`},{default:p(()=>[f(T,{title:`Personen`},{description:p(()=>[i(n(J.people.meta.total.toLocaleString(`de-DE`))+` `+n(J.people.meta.total===1?`Person`:`Personen`)+n(J.filters.q||J.filters.abteilung?` gefunden`:` im Verzeichnis`)+` · `,1),f(s(d),{href:`/personen/organigramm`,class:`font-medium text-brand-text hover:underline`},{default:p(()=>[...l[4]||=[i(`Organigramm`,-1)]]),_:1})]),actions:p(()=>[a(`div`,A,[a(`label`,j,[l[5]||=a(`span`,{class:`sr-only`},`Suchen`,-1),f(s(w),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),v(a(`input`,{"onUpdate:modelValue":l[0]||=e=>X.value=e,type:`search`,placeholder:`Name, Funktion, Standort …`,class:`h-10 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[m,X.value]])]),v(a(`select`,{"onUpdate:modelValue":l[1]||=e=>Z.value=e,class:`h-10 rounded-md border border-input bg-card px-3 text-sm focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none sm:w-56`,"aria-label":`Abteilung`},[l[6]||=a(`option`,{value:``},`Alle Abteilungen`,-1),(h(!0),o(y,null,c(J.departments,e=>(h(),o(`option`,{key:e,value:e},n(e),9,M))),128))],512),[[u,Z.value]])])]),_:1}),J.people.data.length?(h(),o(`ul`,N,[(h(!0),o(y,null,c(J.people.data,e=>(h(),o(`li`,{key:e.id,class:`flex flex-col rounded-lg border bg-card`},[f(s(d),{href:`/personen/${e.id}`,class:`flex items-center gap-3 p-4 pb-3`},{default:p(()=>[f(E,{person:e,class:`size-12`},null,8,[`person`]),a(`div`,P,[a(`div`,F,n(e.name),1),a(`div`,I,n(e.job_title||`–`),1)])]),_:2},1032,[`href`]),a(`div`,L,[e.department?(h(),o(`span`,R,n(e.department),1)):b(``,!0),e.department&&e.location?(h(),o(`span`,z,` · `)):b(``,!0),e.location?(h(),o(`span`,B,n(e.location),1)):b(``,!0)]),a(`div`,V,[a(`a`,{href:`mailto:${e.email}`,class:`flex flex-1 items-center justify-center gap-1.5 py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[f(s(D),{class:`size-4`}),l[7]||=i(` E-Mail `,-1)],8,H),e.phone?(h(),o(`a`,{key:0,href:`tel:${e.phone}`,class:`flex flex-1 items-center justify-center gap-1.5 border-l py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[f(s(C),{class:`size-4`}),l[8]||=i(` Anrufen `,-1)],8,U)):b(``,!0)])]))),128))])):(h(),o(`div`,W,[f(s(S),{class:`size-8 text-muted-foreground`}),l[9]||=a(`p`,{class:`mt-3 font-medium`},`Niemand gefunden`,-1),l[10]||=a(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Versuchen Sie einen anderen Suchbegriff oder eine andere Abteilung.`,-1)])),J.people.meta.last_page>1?(h(),o(`nav`,G,[a(`p`,K,`Seite `+n(J.people.meta.current_page)+` von `+n(J.people.meta.last_page),1),a(`div`,q,[f(s(e),{variant:`outline`,size:`sm`,disabled:!J.people.links.prev,onClick:l[2]||=e=>s(_).get(J.people.links.prev,{},{preserveScroll:!1})},{default:p(()=>[f(s(x)),l[11]||=i(` Zurück `,-1)]),_:1},8,[`disabled`]),f(s(e),{variant:`outline`,size:`sm`,disabled:!J.people.links.next,onClick:l[3]||=e=>s(_).get(J.people.links.next,{},{preserveScroll:!1})},{default:p(()=>[l[12]||=i(` Weiter `,-1),f(s(k))]),_:1},8,[`disabled`])])])):b(``,!0)]),_:1}))}};export{J as default}; |