English
<alta-plan-card>
What a run would do, before anything is written: the title, what gets installed or changed, the cost, the details folded away.
States
The closed list data-state takes on the element.
idleplanningplannedstaleblockedalreadymissingunavailableerror
Other attributes
On the element, or on a part (part: attribute). A list of values is closed.
| Attribute | On | Values |
|---|---|---|
data-going | the element | present or absent |
data-done | row | present or absent |
data-chip | chip | size, duration, resource |
Events
Dispatched on the element, bubbling. Listen with addEventListener.
alta-planalta-plan-erroralta-details-togglealta-install-first
Parts
Every node you can style, as [data-part="…"].
title · note · skeleton · rows · row · row-mark · row-name · row-what · foot · cost · chip · blocked · stale · already · missing · unavailable · error · install-first · retry · details-toggle · details · body · writes · command · copy · undo
Slots
Children with slot="…" replace or add to these places.
before-rows · after-cost · actions
Draws inside itself
Style it
css
[data-aui="plan-card"][data-state="error"] [data-part="title"] { /* … */ }Words it reads
Keys of the string tables (override them on <alta-provider>).
plan. · ui.details · ui.copy · ui.copied
Files
packages/ui/src/elements/plan-card.ts · packages/ui/styles/components/step.css