Theme: ← Übersicht Tokens

Zeiterfassung

Anwesenheit mit Profilbild, Tageshinweis, Klappziffern und Logout. Drei native Ansichten; Daten und Buchungen bleiben bei der App.

Components v1.2.2 Desktop AppDesktop component.attendance

Beispiele

Klein
Alex Beispiel
Mittel
Alex Beispiel
Anwesend seit:2:41:34
Groß
Alex Beispiel

Dein Tageshinweis:bin krank

Anwesend seit:2:41:34

Eigenschaften

PropTypDefaultBuilder-Label
sizestring: small | medium | large"medium"size
personNamestring""personName
avatarUrlstring""avatarUrl
presencestring: present | paused | absent | unknown"unknown"presence
elapsedSecondsnumber0elapsedSeconds
observedAtnumber0observedAt
serverNownumber0serverNow
noticestring""notice
previewbooleanfalsepreview
stalebooleanfalsestale
logoutEnabledbooleanfalselogoutEnabled
noticeEnabledbooleanfalsenoticeEnabled
loginEnabledbooleanfalseloginEnabled

* Pflicht-Prop

Events & Slots

Events: ⚡ logout⚡ notice⚡ login — im Surface per on: {<event>: {action, params}} verdrahtbar.

Genutzte Design-Tokens

color.action.primarycolor.status.dangercolor.status.successcolor.surface.overlayduration.fasteasing.standardfont.family.defaultradius.smsize.1size.2size.3size.6text.sm

LLM-Notizen

component.attendance

Framework-owned Zeiterfassung view. Three sizes: small (portrait, presence dot, daily-notice and supplied logout icon), medium (portrait, notice icon, elapsed flip clock, red Logout), large (name, vertical divider, notice text, clock, Logout).

The root is transparent. component.widget owns the existing glass surface. The split clock material lives in _shared/flip-clock.css, also used by the countdown timer. Keep the supplied logout SVG's shape and red/white colors; icon hover changes to the primary framework green without a background disc.

Props: personName, local avatarUrl, presence (present|paused|absent|unknown), elapsedSeconds, observedAt, serverNow (Unix seconds), notice, size, preview, stale, logoutEnabled, noticeEnabled. Missing pictures fall back to initials. Unknown time shows dashes. Preview is frozen; stale/paused/absent snapshots do not tick. One shared display ticker, no provider calls or bookings; business state remains in the owning app. Destroy stops animations and unregisters the view.

Large (2x4) uses a centered name header and fine horizontal rule, then equal portrait/action and notice/clock panels. The vertical rule has a separate gap below the header and above the centered swap control. One two-arrow button appears on card hover or keyboard focus (always visible on touch); both arrows turn framework green together. It swaps both panels without dispatching a business action, respects reduced motion and has no tooltip. The visual preference is stored per rail-widget ID in this browser under invisible-attendance:sides:v1:<id>; preview never persists it. Remounts preserve the preference, and destroy cancels pending swap animations.

Events logout and notice are intentions only. The standard app-widget adapter wires the controls to the existing app navigation using app-validated URLs. Logout URLs must point to the app's confirmation/dialog page, never a state-changing GET. Actual logout is performed and confirmed by the owning app using its normal POST, rights and session checks. The widget never signs the user out of tricoma itself.

Provider contract and three-size manifest: widgets-api/ATTENDANCE.md, widgets.attendance.example.json. The native review page is widgets-api/attendance-preview.html; no installation or saved layout. ?laufend=1 exercises the display ticker using explicit sample data. An optional local avatar query parameter can be used for a visual check; it is not persisted.