Zeiterfassung
Anwesenheit mit Profilbild, Tageshinweis, Klappziffern und Logout. Drei native Ansichten; Daten und Buchungen bleiben bei der App.
Beispiele
Dein Tageshinweis:bin krank
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| size | string: small | medium | large | "medium" | size |
| personName | string | "" | personName |
| avatarUrl | string | "" | avatarUrl |
| presence | string: present | paused | absent | unknown | "unknown" | presence |
| elapsedSeconds | number | 0 | elapsedSeconds |
| observedAt | number | 0 | observedAt |
| serverNow | number | 0 | serverNow |
| notice | string | "" | notice |
| preview | boolean | false | preview |
| stale | boolean | false | stale |
| logoutEnabled | boolean | false | logoutEnabled |
| noticeEnabled | boolean | false | noticeEnabled |
| loginEnabled | boolean | false | loginEnabled |
* Pflicht-Prop
Events & Slots
Events:
⚡ logout⚡ notice⚡ login — im Surface per on: {<event>: {action, params}} verdrahtbar.
Genutzte Design-Tokens
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.