Gantt (Zeitplan) — component.gantt
Projekt-Zeitplan als Balkendiagramm: Zeilen mit Aufgaben, Zeitachse in zwei Stufen (Monate über Tagen/KW, Jahre über Monaten), Raster und Wochenenden, farbige Balken (Ton aus Tokens), Fortschritts-Füllung, Heute-Markierung, Meilenstein-Rauten; opt-in Zeilen-Links, Gruppen und Ebenen; 1.2.0 opt-in Av
Beispiele
Projektplan über 4 Wochen mit Fortschritt, Meilenstein und Heute-Linie
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
start * | string | — |
days | number | 28 |
today | string | "" |
scale | string: day | week | month | "week" |
labelHeading | string | "" |
labelWidth | string: sm | md | lg | "md" |
emptyText | string | "" |
links | array | [] |
editable | boolean | false |
moveUrl | string | "" |
moveOp | string | "gantt.verschieben" |
rows * | array | — |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Events & Slots
Events: select, toggle, move
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--gantt-label-width | calc(var(--size-40) + var(--size-8)) |
--gantt-tone | var(--color-action-primary) |
Genutzte Design-Tokens
border.hairline color.accent color.action.primary color.border.default color.border.subtle color.status.danger color.status.success color.status.warning color.surface.default color.surface.hover color.surface.sunken color.text.default color.text.disabled color.text.link color.text.muted duration.fast easing.standard focus.ring-color focus.ring-offset focus.ring-width font.family.default leading.tight radius.control radius.surface size.05 size.1 size.10 size.2 size.3 size.4 size.40 size.6 size.8 text.2xs text.sm text.xs tracking.wide weight.medium weight.semibold