Loheide-eu-mitarbeiterplatt.../public/build/assets/Search-BjtcKFFk.js
Friederich Loheide 97879ce243
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m34s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m39s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m55s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m36s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 4m28s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 4m19s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 3m34s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 3m29s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m7s
Neue Plugins: Speiseplan und „Gemeinsam feiern, erinnern und willkommen heißen“
- Gemeinsam: Personalnachrichten je Monat in sechs Tabellen; Geburtstage
  aus dem Geburtstags-Plugin (neue Abfrage BirthdayList::inMonth)
- Speiseplan: Wochenbilder im Voraus, PDF → Bild im Browser,
  aktuelle und nächste Woche, Allergie-PDF, randloser A4-Druck,
  Löschen nach zwei Wochen
- Beide optional (zunächst abgeschaltet), eigene Pflegerechte

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 16:42:52 +00:00

1 line
No EOL
3.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,wt as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as m}from"./app-DNFabNcC.js";import{j as h}from"./dist-CleIz2GP.js";import{it as g}from"./AppIcon-DoyAJznh.js";import{t as _}from"./AppLayout-DhUQAEuS.js";import{n as v,r as y}from"./format-CUVSeMK_.js";import{t as b}from"./FileIcon-BUQyIDht.js";import{t as x}from"./search-x-C4tzI22g.js";import{t as S}from"./EmptyState-Ceq4v8mE.js";import{t as C}from"./PageHeader-B0pvFNSF.js";import{t as w}from"./colors-RDOJqd57.js";import{t as T}from"./QmSearchBox-B3BcOGyh.js";var E=h({name:`text-search`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`circle`,{cx:`17`,cy:`15`,r:`3`,key:`1upz2a`}],[`path`,{d:`m21 19-1.9-1.9`,key:`dwi7p8`}]]}),D={key:0,class:`divide-y overflow-hidden rounded-lg border bg-card`},O={key:1,class:`grid size-10 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground`},k={class:`min-w-0 flex-1`},A={class:`flex flex-wrap items-baseline gap-x-2`},j={key:0,class:`text-xs text-muted-foreground`},M={class:`text-xs text-muted-foreground`},N=[`innerHTML`],P={key:1,class:`mt-1 inline-flex items-center gap-1 text-[11px] font-medium text-brand-text`},F={key:1,class:`rounded-lg border bg-card`},I={__name:`Search`,props:{query:{type:String,default:``},results:{type:Array,default:()=>[]}},setup(h){let I=(e,t)=>e.open_kind===`view`?`${e.open_url}?suche=${encodeURIComponent(t)}`:e.open_url;return(L,R)=>(s(),d(_,{title:`Suche: ${h.query}`},{default:l(()=>[e(C,{title:h.query?`Suche: ${h.query}`:`Suche`,breadcrumbs:[{label:`Qualitätsmanagement`,href:`/qm`}],description:h.query?`${h.results.length} ${h.results.length,`Treffer`} im Qualitätsmanagement – in Titeln und im Text der Dokumente`:``},{actions:l(()=>[(s(),d(T,{key:h.query,initial:h.query},null,8,[`initial`]))]),_:1},8,[`title`,`description`]),h.results.length?(s(),a(`ul`,D,[(s(!0),a(c,null,o(h.results,o=>(s(),a(`li`,{key:o.id,class:`flex gap-3 px-4 py-3.5 hover:bg-accent/40`},[o.type===`file`?(s(),d(b,{key:0,extension:o.extension},null,8,[`extension`])):(s(),a(`span`,O,[o.type===`form`?(s(),d(n(g),{key:0,class:`size-5`})):(s(),d(n(y),{key:1,class:`size-5`}))])),i(`div`,k,[i(`div`,A,[(s(),d(f(o.open_kind===`view`?n(m):`a`),{href:I(o,h.query),target:o.open_kind===`link`?`_blank`:void 0,class:`text-[15px] font-semibold hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`,`target`])),o.version?(s(),a(`span`,j,`Version `+u(o.version),1)):p(``,!0),i(`span`,M,`Stand `+u(n(v)(o.valid_from)),1)]),e(n(m),{href:o.folder.url,class:`mt-0.5 inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground hover:underline`},{default:l(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(w)(o.folder.color).dot])},null,2),t(u(o.folder.path),1)]),_:2},1032,[`href`]),o.snippet?(s(),a(`p`,{key:0,class:`qm-snippet mt-1.5 text-[13px] leading-relaxed text-muted-foreground`,innerHTML:o.snippet},null,8,N)):p(``,!0),o.in_content?(s(),a(`p`,P,[e(n(E),{class:`size-3`}),R[0]||=t(` im Text gefunden`,-1)])):p(``,!0)])]))),128))])):h.query?(s(),a(`div`,F,[e(S,{icon:n(x),title:`Nichts gefunden`,text:`Gesucht wird in Titeln, Beschreibungen, Dateinamen und im Text der Dokumente. Eingescannte PDFs sind nur durchsuchbar, wenn die Texterkennung eingerichtet ist.`},null,8,[`icon`])])):p(``,!0)]),_:1},8,[`title`]))}};export{I as default};